@feedmepos/mf-payment 1.1.8-beta.1 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PayoutAccount-8i57shlX.js → PayoutAccount-BuYnCwX0.js} +3 -3
- package/dist/{PayoutAccount-D7-wVu54.js → PayoutAccount-D-UAfJmx.js} +5 -5
- package/dist/{PayoutAccountSetting-CMKwrL4M.js → PayoutAccountSetting-P3EEdPd8.js} +3 -3
- package/dist/{Restaurant-CRacG00G.js → Restaurant-DVfQgRDa.js} +4 -4
- package/dist/{RestaurantSetting-D8gT0OLI.js → RestaurantSetting-v4X04iUd.js} +3 -3
- package/dist/{Settlement-HpncV_wh.js → Settlement-B7E4lpuy.js} +3 -3
- package/dist/{Settlement-ChZcWUR2.js → Settlement-BvOHdyd-.js} +3 -3
- package/dist/{SettlementTransactions-B4foya_u.js → SettlementTransactions-C_QiVAAT.js} +3 -3
- package/dist/{SettlementTransactions-Qi1y0ELt.js → SettlementTransactions-XWF6lcgO.js} +3 -3
- package/dist/{Terminal-CPxZpDko.js → Terminal-uiqG_SS0.js} +6 -6
- package/dist/{TerminalSetting-BTjY6R2k.js → TerminalSetting-BZ13kPwS.js} +3 -3
- package/dist/{Transaction-DOJeGqKs.js → Transaction-73ONBoa8.js} +5 -5
- package/dist/{Transaction-BRsEkW-X.js → Transaction-Do-cIw77.js} +6 -6
- package/dist/{TransactionOld-ytcLv_RQ.js → TransactionOld-CImEq3E_.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BadRdWve.js → TransactionTable.vue_vue_type_script_setup_true_lang-Ba83O4G-.js} +3 -3
- package/dist/{app-BTvVE_p8.js → app-BboGv5bA.js} +362 -362
- package/dist/app.js +1 -1
- package/dist/{assets-D3eyomsS.js → assets-SBx-FS2c.js} +1 -1
- package/dist/grafana-DKPCmS74.js +62 -0
- package/dist/helpers/grafana.d.ts +2 -1
- package/dist/{index-Qf0lEeEt.js → index-BMI-n_D8.js} +1456 -1456
- package/dist/{index-DztkVnZ_.js → index-CUXRAwm_.js} +1 -1
- package/dist/{index-DcXXLPgu.js → index-Cc3tk2uy.js} +1 -1
- package/dist/{index-GGA88cxn.js → index-DChD3CMr.js} +1 -1
- package/dist/{index-C3jOMHIB.js → index-DNVOx0Qk.js} +1 -1
- package/dist/{index-DgF6PpqL.js → index-DitA7AGz.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BfPw3DTP.js → index.vue_vue_type_script_setup_true_lang-Bk00_8Zw.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-G2OxuB1T.js → payout-account-DEWX726j.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/grafana-pHGBuON2.js +0 -54
@@ -1,14 +1,14 @@
|
|
1
|
-
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as
|
2
|
-
import { computed as Lt, watch as
|
3
|
-
import { useCoreStore as
|
1
|
+
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as xn } from "vue-router";
|
2
|
+
import { computed as Lt, watch as J, defineComponent as Ut, ref as Fn, resolveComponent as Bt, openBlock as xt, createBlock as Ft, h as Wn, onMounted as jn, onBeforeMount as Hn, unref as Vn } from "vue";
|
3
|
+
import { useCoreStore as Ve, useI18n as Gn } from "@feedmepos/mf-common";
|
4
4
|
import { defineStore as zn } from "pinia";
|
5
|
-
import { components as
|
6
|
-
const
|
5
|
+
import { components as $n } from "@feedmepos/ui-library";
|
6
|
+
const Jn = {
|
7
7
|
select: "Select filter entity",
|
8
8
|
restaurant: "Restaurant",
|
9
9
|
device: "Device",
|
10
10
|
payout_account: "Payout Account"
|
11
|
-
},
|
11
|
+
}, Zn = {
|
12
12
|
payout_account: "Payout Account",
|
13
13
|
transaction: "Transactions",
|
14
14
|
"transaction-new": "Transactions",
|
@@ -145,8 +145,8 @@ const $n = {
|
|
145
145
|
}
|
146
146
|
}
|
147
147
|
}, qn = {
|
148
|
-
components:
|
149
|
-
routes:
|
148
|
+
components: Jn,
|
149
|
+
routes: Zn,
|
150
150
|
settlements: Yn,
|
151
151
|
transactions: Xn,
|
152
152
|
payout_account: Kn
|
@@ -305,7 +305,7 @@ const $n = {
|
|
305
305
|
sidebarDisplay: "Restaurants",
|
306
306
|
section: "payment-gateway"
|
307
307
|
},
|
308
|
-
component: () => import("./Restaurant-
|
308
|
+
component: () => import("./Restaurant-DVfQgRDa.js")
|
309
309
|
},
|
310
310
|
{
|
311
311
|
path: "/admin/restaurants/:restaurantId",
|
@@ -314,7 +314,7 @@ const $n = {
|
|
314
314
|
meta: {
|
315
315
|
parent: "mf-payment-admin.restaurant"
|
316
316
|
},
|
317
|
-
component: () => import("./RestaurantSetting-
|
317
|
+
component: () => import("./RestaurantSetting-v4X04iUd.js")
|
318
318
|
},
|
319
319
|
{
|
320
320
|
path: "/admin/payout-accounts",
|
@@ -323,7 +323,7 @@ const $n = {
|
|
323
323
|
sidebarDisplay: "Payout Accounts",
|
324
324
|
section: "payment-gateway"
|
325
325
|
},
|
326
|
-
component: () => import("./PayoutAccount-
|
326
|
+
component: () => import("./PayoutAccount-D-UAfJmx.js")
|
327
327
|
},
|
328
328
|
{
|
329
329
|
path: "/admin/payout-accounts/:accountId",
|
@@ -332,7 +332,7 @@ const $n = {
|
|
332
332
|
meta: {
|
333
333
|
parent: "mf-payment-admin.payout-account"
|
334
334
|
},
|
335
|
-
component: () => import("./PayoutAccountSetting-
|
335
|
+
component: () => import("./PayoutAccountSetting-P3EEdPd8.js")
|
336
336
|
},
|
337
337
|
{
|
338
338
|
path: "/admin/terminal/pos",
|
@@ -341,7 +341,7 @@ const $n = {
|
|
341
341
|
sidebarDisplay: "POS",
|
342
342
|
section: "device"
|
343
343
|
},
|
344
|
-
component: () => import("./Terminal-
|
344
|
+
component: () => import("./Terminal-uiqG_SS0.js"),
|
345
345
|
props: {
|
346
346
|
type: "POS"
|
347
347
|
}
|
@@ -353,7 +353,7 @@ const $n = {
|
|
353
353
|
sidebarDisplay: "Kiosks",
|
354
354
|
section: "device"
|
355
355
|
},
|
356
|
-
component: () => import("./Terminal-
|
356
|
+
component: () => import("./Terminal-uiqG_SS0.js"),
|
357
357
|
props: {
|
358
358
|
type: "KIOSK"
|
359
359
|
}
|
@@ -365,7 +365,7 @@ const $n = {
|
|
365
365
|
sidebarDisplay: "Terminals",
|
366
366
|
section: "device"
|
367
367
|
},
|
368
|
-
component: () => import("./Terminal-
|
368
|
+
component: () => import("./Terminal-uiqG_SS0.js"),
|
369
369
|
props: {
|
370
370
|
type: "TERMINAL"
|
371
371
|
}
|
@@ -377,7 +377,7 @@ const $n = {
|
|
377
377
|
meta: {
|
378
378
|
parent: "mf-payment-admin.pos"
|
379
379
|
},
|
380
|
-
component: () => import("./TerminalSetting-
|
380
|
+
component: () => import("./TerminalSetting-BZ13kPwS.js")
|
381
381
|
},
|
382
382
|
{
|
383
383
|
path: "/admin/terminal/kiosk/:terminalId",
|
@@ -386,7 +386,7 @@ const $n = {
|
|
386
386
|
meta: {
|
387
387
|
parent: "mf-payment-admin.kiosk"
|
388
388
|
},
|
389
|
-
component: () => import("./TerminalSetting-
|
389
|
+
component: () => import("./TerminalSetting-BZ13kPwS.js")
|
390
390
|
},
|
391
391
|
{
|
392
392
|
path: "/admin/terminal/terminal/:terminalId",
|
@@ -395,7 +395,7 @@ const $n = {
|
|
395
395
|
meta: {
|
396
396
|
parent: "mf-payment-admin.terminal"
|
397
397
|
},
|
398
|
-
component: () => import("./TerminalSetting-
|
398
|
+
component: () => import("./TerminalSetting-BZ13kPwS.js")
|
399
399
|
},
|
400
400
|
{
|
401
401
|
path: "/admin/transaction",
|
@@ -403,7 +403,7 @@ const $n = {
|
|
403
403
|
meta: {
|
404
404
|
sidebarDisplay: "Transactions"
|
405
405
|
},
|
406
|
-
component: () => import("./Transaction-
|
406
|
+
component: () => import("./Transaction-73ONBoa8.js")
|
407
407
|
},
|
408
408
|
{
|
409
409
|
path: "/admin/settlement",
|
@@ -411,7 +411,7 @@ const $n = {
|
|
411
411
|
meta: {
|
412
412
|
sidebarDisplay: "Settlements"
|
413
413
|
},
|
414
|
-
component: () => import("./Settlement-
|
414
|
+
component: () => import("./Settlement-B7E4lpuy.js")
|
415
415
|
},
|
416
416
|
{
|
417
417
|
path: "/admin/settlement/:settlementId",
|
@@ -420,9 +420,9 @@ const $n = {
|
|
420
420
|
meta: {
|
421
421
|
parent: "mf-payment-admin.settlement"
|
422
422
|
},
|
423
|
-
component: () => import("./SettlementTransactions-
|
423
|
+
component: () => import("./SettlementTransactions-XWF6lcgO.js")
|
424
424
|
}
|
425
|
-
],
|
425
|
+
], Ge = [
|
426
426
|
{
|
427
427
|
path: "",
|
428
428
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -430,7 +430,7 @@ const $n = {
|
|
430
430
|
{
|
431
431
|
path: "/payout-account",
|
432
432
|
name: "mf-payment-payout-account",
|
433
|
-
component: () => import("./PayoutAccount-
|
433
|
+
component: () => import("./PayoutAccount-BuYnCwX0.js"),
|
434
434
|
meta: {
|
435
435
|
sidebarDisplay: "i18n:routes.payout_account"
|
436
436
|
}
|
@@ -438,7 +438,7 @@ const $n = {
|
|
438
438
|
{
|
439
439
|
path: "/transaction-old",
|
440
440
|
name: "mf-payment-old-transaction",
|
441
|
-
component: () => import("./TransactionOld-
|
441
|
+
component: () => import("./TransactionOld-CImEq3E_.js"),
|
442
442
|
meta: {
|
443
443
|
sidebarDisplay: "i18n:routes.transaction"
|
444
444
|
}
|
@@ -446,7 +446,7 @@ const $n = {
|
|
446
446
|
{
|
447
447
|
path: "/transaction",
|
448
448
|
name: "mf-payment-transaction",
|
449
|
-
component: () => import("./Transaction-
|
449
|
+
component: () => import("./Transaction-Do-cIw77.js"),
|
450
450
|
meta: {
|
451
451
|
sidebarDisplay: "i18n:routes.transaction-new",
|
452
452
|
sidebarNew: !0
|
@@ -455,7 +455,7 @@ const $n = {
|
|
455
455
|
{
|
456
456
|
path: "/settlement",
|
457
457
|
name: "mf-payment-settlement",
|
458
|
-
component: () => import("./Settlement-
|
458
|
+
component: () => import("./Settlement-BvOHdyd-.js"),
|
459
459
|
meta: {
|
460
460
|
sidebarDisplay: "i18n:routes.settlement"
|
461
461
|
}
|
@@ -464,7 +464,7 @@ const $n = {
|
|
464
464
|
path: "/settlement/:settlementId",
|
465
465
|
name: "mf-payment-settlement-transaction",
|
466
466
|
props: !0,
|
467
|
-
component: () => import("./SettlementTransactions-
|
467
|
+
component: () => import("./SettlementTransactions-C_QiVAAT.js"),
|
468
468
|
meta: {
|
469
469
|
parent: "mf-payment-settlement"
|
470
470
|
}
|
@@ -481,7 +481,7 @@ const $n = {
|
|
481
481
|
init: t
|
482
482
|
};
|
483
483
|
});
|
484
|
-
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_befd0351-0282-4042-99fa-baf2e6617042", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_befd0351-0282-4042-99fa-baf2e6617042", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_PMWfXVhtR0dIWABN79EYv2RSIk7uUZ08zQvM", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.11.6", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "707", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250413.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.8/x64", JOURNAL_STREAM: "8:5803", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "14568152020", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "164acc58e40ca57ad3575085080561e6e05cf85b", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NWQ2ZGMwNDktZTBmYS00M2U1LWE2YTMtYmE2YTExZmU0OWUwOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDg2IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NWQ2ZGMwNDktZTBmYS00M2U1LWE2YTMtYmE2YTExZmU0OWUwOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDg2IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiMzRhNDYwYzEtNWQ0ZS00ZjU0LThlZDYtYTlmNWE4YTU2Mjc2Iiwic2lkIjoiZWY0OThkZmEtNmMyMS00YjFlLWJkMTktNjhjZmI3MGUwYzE3IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjE2NGFjYzU4ZTQwY2E1N2FkMzU3NTA4NTA4MDU2MWU2ZTA1Y2Y4NWJcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTQ1NjgxNTIwMjBcIixcInJ1bl9udW1iZXJcIjpcIjE2OVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCIxNjRhY2M1OGU0MGNhNTdhZDM1NzUwODUwODA1NjFlNmUwNWNmODViXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIxNjRhY2M1OGU0MGNhNTdhZDM1NzUwODUwODA1NjFlNmUwNWNmODViXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI1ZDZkYzA0OS1lMGZhLTQzZTUtYTZhMy1iYTZhMTFmZTQ5ZTAuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDUyMTM4NzUsImV4cCI6MTc0NTIzNjY3NX0.UibkZUJIiHq1P8fIzHtMLrAzzGx5CuakQ2SFJxtCNcaZ492wQ43uESTy8uvuTZA4f2WnZ9liZDyvvjILVouwRvII6Ezqj06Pjp_21UiD8Lw_2HOFweFBR60Zt_qkKCysF8B7d2ZMlqJy46YC0SGlveek-qaat1QfhZZ5BQQBOqg-YtwDCjIw-q34xmZeJ3odNPjn5F-xuVVfz03qKgT7Q32MAIk7Gng_2by8H0cng8Bs1aiyH0gz6S7UtwlFdjKdaLt_60gLvcwBLpxmFFxq8Ft8EqGSs6bBpnilUbbxc5M1zqQWDEFaCnDABBYfC8M7NATwU5oHf2B8SJpsN98Ylw", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1745214525119-0.5485530735761259:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1745214524954-0.8142685117134834:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1745214524788-0.23056283635059338:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f2451148-1cfd-45ff-80ba-a74ee4ae8175", INVOCATION_ID: "7667fe764cb641e1b7256e17a09ed69e", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "169", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 340", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.8-beta.1", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_package_dependencies_vue_i18n: "10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "164acc58e40ca57ad3575085080561e6e05cf85b", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_befd0351-0282-4042-99fa-baf2e6617042", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/5d6dc049-e0fa-43e5-a6a3-ba6a11fe49e0/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_befd0351-0282-4042-99fa-baf2e6617042", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_befd0351-0282-4042-99fa-baf2e6617042", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.1.0", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
484
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a6a7fc93-c432-41b6-b4ed-4fa621521e8c", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a6a7fc93-c432-41b6-b4ed-4fa621521e8c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_3Wdq4skJt1Lz4mAMRO6ILXSn25T53Q0hwCx1", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.11.6", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "716", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250413.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.8/x64", JOURNAL_STREAM: "8:6677", GITHUB_WORKFLOW: "payment-mf-portal-prod", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "14572125345", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "33a793f5b423d5b3dfa9f7739d97fec26b79bc2c", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-prod.yaml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6YzExNjRkNGItNGRjZS00N2QyLWJmZDctOGYyY2EwZmY1MmI5OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDg5IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46YzExNjRkNGItNGRjZS00N2QyLWJmZDctOGYyY2EwZmY1MmI5OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDg5IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiODM2Y2Y5ZTEtN2U1Ny00YjFiLTk5NTItZmYxNDdhYmUyY2Y1Iiwic2lkIjoiN2U4MDU2OGYtMWM3OS00NjY3LWEwOWItN2JhNTY5OGY4ZmM2IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjN9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwic2hhXCI6XCIzM2E3OTNmNWI0MjNkNWIzZGZhOWY3NzM5ZDk3ZmVjMjZiNzliYzJjXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJydW5faWRcIjpcIjE0NTcyMTI1MzQ1XCIsXCJydW5fbnVtYmVyXCI6XCI0NlwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLXByb2RcIixcImhlYWRfcmVmXCI6XCJcIixcImJhc2VfcmVmXCI6XCJcIixcImV2ZW50X25hbWVcIjpcInB1c2hcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcGF5bWVudC1tZi1wb3J0YWwtcHJvZC55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCIzM2E3OTNmNWI0MjNkNWIzZGZhOWY3NzM5ZDk3ZmVjMjZiNzliYzJjXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLXByb2QueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjMzYTc5M2Y1YjQyM2Q1YjNkZmE5Zjc3MzlkOTdmZWMyNmI3OWJjMmNcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoaWQiOiJjMTE2NGQ0Yi00ZGNlLTQ3ZDItYmZkNy04ZjJjYTBmZjUyYjkuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDUyMzE2NjgsImV4cCI6MTc0NTI1NDQ2OH0.s042rzazeKEXVm_zx7ReAj5i0dUUe9gwG5YGh1Dno6Tlld6rvJYzOTIb5LdtWjYi7mv_A0w_h_vycenmYuRH3eTsbum0A8f8SEa10pplzXCWf0a6j0e-jszIc7I0S1kDlSvVPi7znwJXWzisj7EutEOa3GUSjjOYVI7wG-E3MGo4Fc0FQlmYNITNS6M6e-ZwNX0ZdJDPxJ-2CxV87ZrRVcJI9lchJ_D2lAg4Iy3sRVMC9leROx2_uf0jEzCAh2WmPfQx7L5hVmNdwiaJSmR122Lafpvc9ki2EWvuTxhGQB5cuq5dCshYHcJSkTlafa-O8w8cJFWlsyohYIAI1sxq1A", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1745232316491-0.20803941376293666:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1745232316335-0.03144825957162234:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1745232316179-0.5506960002161332:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_725a7975-b288-4bf3-8e77-fec5079832fd", INVOCATION_ID: "f27154bc3604409aa7950f50452f6915", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "46", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 245", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:prod", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:prod", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.9", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:prod"],"original":["deploy:prod"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_package_dependencies_vue_i18n: "10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "33a793f5b423d5b3dfa9f7739d97fec26b79bc2c", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_a6a7fc93-c432-41b6-b4ed-4fa621521e8c", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/c1164d4b-4dce-47d2-bfd7-8f2ca0ff52b9/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_a6a7fc93-c432-41b6-b4ed-4fa621521e8c", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a6a7fc93-c432-41b6-b4ed-4fa621521e8c", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.1.0", NODE_ENV: "production", ENVIRONMENT: "production", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
485
485
|
/**
|
486
486
|
* @license
|
487
487
|
* Copyright 2017 Google LLC
|
@@ -498,7 +498,7 @@ var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
498
498
|
* See the License for the specific language governing permissions and
|
499
499
|
* limitations under the License.
|
500
500
|
*/
|
501
|
-
const
|
501
|
+
const Wt = function(n) {
|
502
502
|
const e = [];
|
503
503
|
let t = 0;
|
504
504
|
for (let r = 0; r < n.length; r++) {
|
@@ -525,7 +525,7 @@ const Ht = function(n) {
|
|
525
525
|
}
|
526
526
|
}
|
527
527
|
return e.join("");
|
528
|
-
},
|
528
|
+
}, jt = {
|
529
529
|
/**
|
530
530
|
* Maps bytes to characters.
|
531
531
|
*/
|
@@ -585,8 +585,8 @@ const Ht = function(n) {
|
|
585
585
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
586
586
|
for (let i = 0; i < n.length; i += 3) {
|
587
587
|
const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0, d = s >> 2, h = (s & 3) << 4 | c >> 4;
|
588
|
-
let
|
589
|
-
o || (v = 64, a || (
|
588
|
+
let m = (c & 15) << 2 | l >> 6, v = l & 63;
|
589
|
+
o || (v = 64, a || (m = 64)), r.push(t[d], t[h], t[m], t[v]);
|
590
590
|
}
|
591
591
|
return r.join("");
|
592
592
|
},
|
@@ -599,7 +599,7 @@ const Ht = function(n) {
|
|
599
599
|
* @return The base64 encoded string.
|
600
600
|
*/
|
601
601
|
encodeString(n, e) {
|
602
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
602
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Wt(n), e);
|
603
603
|
},
|
604
604
|
/**
|
605
605
|
* Base64-decode a string.
|
@@ -638,12 +638,12 @@ const Ht = function(n) {
|
|
638
638
|
const h = i < n.length ? t[n.charAt(i)] : 64;
|
639
639
|
if (++i, s == null || c == null || l == null || h == null)
|
640
640
|
throw new or();
|
641
|
-
const
|
642
|
-
if (r.push(
|
641
|
+
const m = s << 2 | c >> 4;
|
642
|
+
if (r.push(m), l !== 64) {
|
643
643
|
const v = c << 4 & 240 | l >> 2;
|
644
644
|
if (r.push(v), h !== 64) {
|
645
|
-
const
|
646
|
-
r.push(
|
645
|
+
const x = l << 6 & 192 | h;
|
646
|
+
r.push(x);
|
647
647
|
}
|
648
648
|
}
|
649
649
|
}
|
@@ -668,13 +668,13 @@ class or extends Error {
|
|
668
668
|
}
|
669
669
|
}
|
670
670
|
const cr = function(n) {
|
671
|
-
const e =
|
672
|
-
return
|
671
|
+
const e = Wt(n);
|
672
|
+
return jt.encodeByteArray(e, !0);
|
673
673
|
}, de = function(n) {
|
674
674
|
return cr(n).replace(/\./g, "");
|
675
|
-
},
|
675
|
+
}, Ht = function(n) {
|
676
676
|
try {
|
677
|
-
return
|
677
|
+
return jt.decodeString(n, !0);
|
678
678
|
} catch (e) {
|
679
679
|
console.error("base64Decode failed: ", e);
|
680
680
|
}
|
@@ -736,7 +736,7 @@ const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
|
736
736
|
} catch {
|
737
737
|
return;
|
738
738
|
}
|
739
|
-
const e = n &&
|
739
|
+
const e = n && Ht(n[1]);
|
740
740
|
return e && JSON.parse(e);
|
741
741
|
}, ze = () => {
|
742
742
|
try {
|
@@ -745,11 +745,11 @@ const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
|
745
745
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
746
746
|
return;
|
747
747
|
}
|
748
|
-
},
|
748
|
+
}, Vt = (n) => {
|
749
749
|
var e, t;
|
750
750
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
751
|
-
},
|
752
|
-
const e =
|
751
|
+
}, Ga = (n) => {
|
752
|
+
const e = Vt(n);
|
753
753
|
if (!e)
|
754
754
|
return;
|
755
755
|
const t = e.lastIndexOf(":");
|
@@ -757,7 +757,7 @@ const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
|
757
757
|
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
758
758
|
const r = parseInt(e.substring(t + 1), 10);
|
759
759
|
return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
|
760
|
-
},
|
760
|
+
}, Gt = () => {
|
761
761
|
var n;
|
762
762
|
return (n = ze()) === null || n === void 0 ? void 0 : n.config;
|
763
763
|
}, zt = (n) => {
|
@@ -861,15 +861,15 @@ function za(n, e) {
|
|
861
861
|
* See the License for the specific language governing permissions and
|
862
862
|
* limitations under the License.
|
863
863
|
*/
|
864
|
-
function
|
864
|
+
function f() {
|
865
865
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
866
866
|
}
|
867
|
-
function
|
867
|
+
function mr() {
|
868
868
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
869
869
|
// just to deal with this case would probably be a bad idea.
|
870
|
-
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(
|
870
|
+
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
871
871
|
}
|
872
|
-
function
|
872
|
+
function fr() {
|
873
873
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
874
874
|
}
|
875
875
|
function _r() {
|
@@ -880,7 +880,7 @@ function gr() {
|
|
880
880
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
881
881
|
}
|
882
882
|
function vr() {
|
883
|
-
const n =
|
883
|
+
const n = f();
|
884
884
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
885
885
|
}
|
886
886
|
function Ir() {
|
@@ -940,13 +940,13 @@ class q {
|
|
940
940
|
}
|
941
941
|
}
|
942
942
|
function Er(n, e) {
|
943
|
-
return n.replace(
|
943
|
+
return n.replace(Tr, (t, r) => {
|
944
944
|
const i = e[r];
|
945
945
|
return i != null ? String(i) : `<${r}?>`;
|
946
946
|
});
|
947
947
|
}
|
948
|
-
const
|
949
|
-
function
|
948
|
+
const Tr = /\{\$([^}]+)}/g;
|
949
|
+
function wr(n) {
|
950
950
|
for (const e in n)
|
951
951
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
952
952
|
return !1;
|
@@ -998,11 +998,11 @@ function Q(n) {
|
|
998
998
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
999
999
|
return e.length ? "&" + e.join("&") : "";
|
1000
1000
|
}
|
1001
|
-
function
|
1002
|
-
const t = new
|
1001
|
+
function Rr(n, e) {
|
1002
|
+
const t = new kr(n, e);
|
1003
1003
|
return t.subscribe.bind(t);
|
1004
1004
|
}
|
1005
|
-
class
|
1005
|
+
class kr {
|
1006
1006
|
/**
|
1007
1007
|
* @param executor Function which can make calls to a single Observer
|
1008
1008
|
* as a proxy.
|
@@ -1048,7 +1048,7 @@ class Rr {
|
|
1048
1048
|
next: e,
|
1049
1049
|
error: t,
|
1050
1050
|
complete: r
|
1051
|
-
}, i.next === void 0 && (i.next =
|
1051
|
+
}, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
|
1052
1052
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
1053
1053
|
return this.finalized && this.task.then(() => {
|
1054
1054
|
try {
|
@@ -1094,7 +1094,7 @@ function Sr(n, e) {
|
|
1094
1094
|
return !0;
|
1095
1095
|
return !1;
|
1096
1096
|
}
|
1097
|
-
function
|
1097
|
+
function ke() {
|
1098
1098
|
}
|
1099
1099
|
/**
|
1100
1100
|
* @license
|
@@ -1115,7 +1115,7 @@ function Re() {
|
|
1115
1115
|
function z(n) {
|
1116
1116
|
return n && n._delegate ? n._delegate : n;
|
1117
1117
|
}
|
1118
|
-
class
|
1118
|
+
class G {
|
1119
1119
|
/**
|
1120
1120
|
*
|
1121
1121
|
* @param name The public service name, e.g. app, auth, firestore, database
|
@@ -1428,7 +1428,7 @@ const Dr = {
|
|
1428
1428
|
else
|
1429
1429
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1430
1430
|
};
|
1431
|
-
class
|
1431
|
+
class $t {
|
1432
1432
|
/**
|
1433
1433
|
* Gives you an instance of a Logger to capture messages according to
|
1434
1434
|
* Firebase's logging scheme.
|
@@ -1494,15 +1494,15 @@ function Br() {
|
|
1494
1494
|
IDBTransaction
|
1495
1495
|
]);
|
1496
1496
|
}
|
1497
|
-
function
|
1497
|
+
function xr() {
|
1498
1498
|
return dt || (dt = [
|
1499
1499
|
IDBCursor.prototype.advance,
|
1500
1500
|
IDBCursor.prototype.continue,
|
1501
1501
|
IDBCursor.prototype.continuePrimaryKey
|
1502
1502
|
]);
|
1503
1503
|
}
|
1504
|
-
const
|
1505
|
-
function
|
1504
|
+
const Jt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap();
|
1505
|
+
function Fr(n) {
|
1506
1506
|
const e = new Promise((t, r) => {
|
1507
1507
|
const i = () => {
|
1508
1508
|
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
@@ -1514,11 +1514,11 @@ function xr(n) {
|
|
1514
1514
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
1515
1515
|
});
|
1516
1516
|
return e.then((t) => {
|
1517
|
-
t instanceof IDBCursor &&
|
1517
|
+
t instanceof IDBCursor && Jt.set(t, n);
|
1518
1518
|
}).catch(() => {
|
1519
|
-
}),
|
1519
|
+
}), $e.set(e, n), e;
|
1520
1520
|
}
|
1521
|
-
function
|
1521
|
+
function Wr(n) {
|
1522
1522
|
if (Le.has(n))
|
1523
1523
|
return;
|
1524
1524
|
const e = new Promise((t, r) => {
|
@@ -1539,7 +1539,7 @@ let Ue = {
|
|
1539
1539
|
if (e === "done")
|
1540
1540
|
return Le.get(n);
|
1541
1541
|
if (e === "objectStoreNames")
|
1542
|
-
return n.objectStoreNames ||
|
1542
|
+
return n.objectStoreNames || Zt.get(n);
|
1543
1543
|
if (e === "store")
|
1544
1544
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1545
1545
|
}
|
@@ -1552,32 +1552,32 @@ let Ue = {
|
|
1552
1552
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1553
1553
|
}
|
1554
1554
|
};
|
1555
|
-
function
|
1555
|
+
function jr(n) {
|
1556
1556
|
Ue = n(Ue);
|
1557
1557
|
}
|
1558
|
-
function
|
1558
|
+
function Hr(n) {
|
1559
1559
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1560
1560
|
const r = n.call(Ae(this), e, ...t);
|
1561
|
-
return
|
1562
|
-
} :
|
1563
|
-
return n.apply(Ae(this), e), C(
|
1561
|
+
return Zt.set(r, e.sort ? e.sort() : [e]), C(r);
|
1562
|
+
} : xr().includes(n) ? function(...e) {
|
1563
|
+
return n.apply(Ae(this), e), C(Jt.get(this));
|
1564
1564
|
} : function(...e) {
|
1565
1565
|
return C(n.apply(Ae(this), e));
|
1566
1566
|
};
|
1567
1567
|
}
|
1568
|
-
function
|
1569
|
-
return typeof n == "function" ?
|
1568
|
+
function Vr(n) {
|
1569
|
+
return typeof n == "function" ? Hr(n) : (n instanceof IDBTransaction && Wr(n), Ur(n, Br()) ? new Proxy(n, Ue) : n);
|
1570
1570
|
}
|
1571
1571
|
function C(n) {
|
1572
1572
|
if (n instanceof IDBRequest)
|
1573
|
-
return
|
1573
|
+
return Fr(n);
|
1574
1574
|
if (Se.has(n))
|
1575
1575
|
return Se.get(n);
|
1576
|
-
const e =
|
1577
|
-
return e !== n && (Se.set(n, e),
|
1576
|
+
const e = Vr(n);
|
1577
|
+
return e !== n && (Se.set(n, e), $e.set(e, n)), e;
|
1578
1578
|
}
|
1579
|
-
const Ae = (n) =>
|
1580
|
-
function
|
1579
|
+
const Ae = (n) => $e.get(n);
|
1580
|
+
function Gr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1581
1581
|
const a = indexedDB.open(n, e), c = C(a);
|
1582
1582
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
1583
1583
|
r(C(a.result), o.oldVersion, o.newVersion, C(a.transaction), o);
|
@@ -1591,13 +1591,13 @@ function Wr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1591
1591
|
}).catch(() => {
|
1592
1592
|
}), c;
|
1593
1593
|
}
|
1594
|
-
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"],
|
1594
|
+
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1595
1595
|
function ut(n, e) {
|
1596
1596
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1597
1597
|
return;
|
1598
1598
|
if (Oe.get(e))
|
1599
1599
|
return Oe.get(e);
|
1600
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1600
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
1601
1601
|
if (
|
1602
1602
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1603
1603
|
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || zr.includes(t))
|
@@ -1613,7 +1613,7 @@ function ut(n, e) {
|
|
1613
1613
|
};
|
1614
1614
|
return Oe.set(e, s), s;
|
1615
1615
|
}
|
1616
|
-
|
1616
|
+
jr((n) => ({
|
1617
1617
|
...n,
|
1618
1618
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1619
1619
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1634,7 +1634,7 @@ Gr((n) => ({
|
|
1634
1634
|
* See the License for the specific language governing permissions and
|
1635
1635
|
* limitations under the License.
|
1636
1636
|
*/
|
1637
|
-
class
|
1637
|
+
class Jr {
|
1638
1638
|
constructor(e) {
|
1639
1639
|
this.container = e;
|
1640
1640
|
}
|
@@ -1642,7 +1642,7 @@ class $r {
|
|
1642
1642
|
// auth token refresh, and installations will send this string.
|
1643
1643
|
getPlatformInfoString() {
|
1644
1644
|
return this.container.getProviders().map((t) => {
|
1645
|
-
if (
|
1645
|
+
if (Zr(t)) {
|
1646
1646
|
const r = t.getImmediate();
|
1647
1647
|
return `${r.library}/${r.version}`;
|
1648
1648
|
} else
|
@@ -1650,7 +1650,7 @@ class $r {
|
|
1650
1650
|
}).filter((t) => t).join(" ");
|
1651
1651
|
}
|
1652
1652
|
}
|
1653
|
-
function
|
1653
|
+
function Zr(n) {
|
1654
1654
|
const e = n.getComponent();
|
1655
1655
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1656
1656
|
}
|
@@ -1671,7 +1671,7 @@ const Be = "@firebase/app", ht = "0.10.13";
|
|
1671
1671
|
* See the License for the specific language governing permissions and
|
1672
1672
|
* limitations under the License.
|
1673
1673
|
*/
|
1674
|
-
const
|
1674
|
+
const T = new $t("@firebase/app"), Yr = "@firebase/app-compat", Xr = "@firebase/analytics-compat", Kr = "@firebase/analytics", qr = "@firebase/app-check-compat", Qr = "@firebase/app-check", ei = "@firebase/auth", ti = "@firebase/auth-compat", ni = "@firebase/database", ri = "@firebase/data-connect", ii = "@firebase/database-compat", si = "@firebase/functions", ai = "@firebase/functions-compat", oi = "@firebase/installations", ci = "@firebase/installations-compat", li = "@firebase/messaging", di = "@firebase/messaging-compat", ui = "@firebase/performance", hi = "@firebase/performance-compat", pi = "@firebase/remote-config", mi = "@firebase/remote-config-compat", fi = "@firebase/storage", _i = "@firebase/storage-compat", gi = "@firebase/firestore", vi = "@firebase/vertexai-preview", Ii = "@firebase/firestore-compat", bi = "firebase", yi = "10.14.1";
|
1675
1675
|
/**
|
1676
1676
|
* @license
|
1677
1677
|
* Copyright 2019 Google LLC
|
@@ -1688,7 +1688,7 @@ const w = new Zt("@firebase/app"), Yr = "@firebase/app-compat", Xr = "@firebase/
|
|
1688
1688
|
* See the License for the specific language governing permissions and
|
1689
1689
|
* limitations under the License.
|
1690
1690
|
*/
|
1691
|
-
const
|
1691
|
+
const xe = "[DEFAULT]", Ei = {
|
1692
1692
|
[Be]: "fire-core",
|
1693
1693
|
[Yr]: "fire-core-compat",
|
1694
1694
|
[Kr]: "fire-analytics",
|
@@ -1709,8 +1709,8 @@ const Fe = "[DEFAULT]", Ei = {
|
|
1709
1709
|
[ui]: "fire-perf",
|
1710
1710
|
[hi]: "fire-perf-compat",
|
1711
1711
|
[pi]: "fire-rc",
|
1712
|
-
[
|
1713
|
-
[
|
1712
|
+
[mi]: "fire-rc-compat",
|
1713
|
+
[fi]: "fire-gcs",
|
1714
1714
|
[_i]: "fire-gcs-compat",
|
1715
1715
|
[gi]: "fire-fst",
|
1716
1716
|
[Ii]: "fire-fst-compat",
|
@@ -1734,22 +1734,22 @@ const Fe = "[DEFAULT]", Ei = {
|
|
1734
1734
|
* See the License for the specific language governing permissions and
|
1735
1735
|
* limitations under the License.
|
1736
1736
|
*/
|
1737
|
-
const he = /* @__PURE__ */ new Map(),
|
1737
|
+
const he = /* @__PURE__ */ new Map(), Ti = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
|
1738
1738
|
function pt(n, e) {
|
1739
1739
|
try {
|
1740
1740
|
n.container.addComponent(e);
|
1741
1741
|
} catch (t) {
|
1742
|
-
|
1742
|
+
T.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
|
1743
1743
|
}
|
1744
1744
|
}
|
1745
1745
|
function Y(n) {
|
1746
1746
|
const e = n.name;
|
1747
|
-
if (
|
1748
|
-
return
|
1749
|
-
|
1747
|
+
if (Fe.has(e))
|
1748
|
+
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1749
|
+
Fe.set(e, n);
|
1750
1750
|
for (const t of he.values())
|
1751
1751
|
pt(t, n);
|
1752
|
-
for (const t of
|
1752
|
+
for (const t of Ti.values())
|
1753
1753
|
pt(t, n);
|
1754
1754
|
return !0;
|
1755
1755
|
}
|
@@ -1776,7 +1776,7 @@ function I(n) {
|
|
1776
1776
|
* See the License for the specific language governing permissions and
|
1777
1777
|
* limitations under the License.
|
1778
1778
|
*/
|
1779
|
-
const
|
1779
|
+
const wi = {
|
1780
1780
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1781
1781
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1782
1782
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1791,7 +1791,7 @@ const Ti = {
|
|
1791
1791
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1792
1792
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1793
1793
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1794
|
-
}, D = new q("app", "Firebase",
|
1794
|
+
}, D = new q("app", "Firebase", wi);
|
1795
1795
|
/**
|
1796
1796
|
* @license
|
1797
1797
|
* Copyright 2019 Google LLC
|
@@ -1808,9 +1808,9 @@ const Ti = {
|
|
1808
1808
|
* See the License for the specific language governing permissions and
|
1809
1809
|
* limitations under the License.
|
1810
1810
|
*/
|
1811
|
-
class
|
1811
|
+
class Ri {
|
1812
1812
|
constructor(e, t, r) {
|
1813
|
-
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new
|
1813
|
+
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new G(
|
1814
1814
|
"app",
|
1815
1815
|
() => this,
|
1816
1816
|
"PUBLIC"
|
@@ -1870,12 +1870,12 @@ const ee = yi;
|
|
1870
1870
|
function Xt(n, e = {}) {
|
1871
1871
|
let t = n;
|
1872
1872
|
typeof e != "object" && (e = { name: e });
|
1873
|
-
const r = Object.assign({ name:
|
1873
|
+
const r = Object.assign({ name: xe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
1874
1874
|
if (typeof i != "string" || !i)
|
1875
1875
|
throw D.create("bad-app-name", {
|
1876
1876
|
appName: String(i)
|
1877
1877
|
});
|
1878
|
-
if (t || (t =
|
1878
|
+
if (t || (t = Gt()), !t)
|
1879
1879
|
throw D.create(
|
1880
1880
|
"no-options"
|
1881
1881
|
/* AppError.NO_OPTIONS */
|
@@ -1887,20 +1887,20 @@ function Xt(n, e = {}) {
|
|
1887
1887
|
throw D.create("duplicate-app", { appName: i });
|
1888
1888
|
}
|
1889
1889
|
const a = new Cr(i);
|
1890
|
-
for (const o of
|
1890
|
+
for (const o of Fe.values())
|
1891
1891
|
a.addComponent(o);
|
1892
|
-
const c = new
|
1892
|
+
const c = new Ri(t, r, a);
|
1893
1893
|
return he.set(i, c), c;
|
1894
1894
|
}
|
1895
|
-
function
|
1895
|
+
function ki(n = xe) {
|
1896
1896
|
const e = he.get(n);
|
1897
|
-
if (!e && n ===
|
1897
|
+
if (!e && n === xe && Gt())
|
1898
1898
|
return Xt();
|
1899
1899
|
if (!e)
|
1900
1900
|
throw D.create("no-app", { appName: n });
|
1901
1901
|
return e;
|
1902
1902
|
}
|
1903
|
-
function
|
1903
|
+
function W(n, e, t) {
|
1904
1904
|
var r;
|
1905
1905
|
let i = (r = Ei[n]) !== null && r !== void 0 ? r : n;
|
1906
1906
|
t && (i += `-${t}`);
|
@@ -1909,10 +1909,10 @@ function H(n, e, t) {
|
|
1909
1909
|
const c = [
|
1910
1910
|
`Unable to register library "${i}" with version "${e}":`
|
1911
1911
|
];
|
1912
|
-
s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),
|
1912
|
+
s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), T.warn(c.join(" "));
|
1913
1913
|
return;
|
1914
1914
|
}
|
1915
|
-
Y(new
|
1915
|
+
Y(new G(
|
1916
1916
|
`${i}-version`,
|
1917
1917
|
() => ({ library: i, version: e }),
|
1918
1918
|
"VERSION"
|
@@ -1938,7 +1938,7 @@ function H(n, e, t) {
|
|
1938
1938
|
const Si = "firebase-heartbeat-database", Ai = 1, X = "firebase-heartbeat-store";
|
1939
1939
|
let Ne = null;
|
1940
1940
|
function Kt() {
|
1941
|
-
return Ne || (Ne =
|
1941
|
+
return Ne || (Ne = Gr(Si, Ai, {
|
1942
1942
|
upgrade: (n, e) => {
|
1943
1943
|
switch (e) {
|
1944
1944
|
case 0:
|
@@ -1961,27 +1961,27 @@ async function Oi(n) {
|
|
1961
1961
|
return await t.done, r;
|
1962
1962
|
} catch (e) {
|
1963
1963
|
if (e instanceof M)
|
1964
|
-
|
1964
|
+
T.warn(e.message);
|
1965
1965
|
else {
|
1966
1966
|
const t = D.create("idb-get", {
|
1967
1967
|
originalErrorMessage: e == null ? void 0 : e.message
|
1968
1968
|
});
|
1969
|
-
|
1969
|
+
T.warn(t.message);
|
1970
1970
|
}
|
1971
1971
|
}
|
1972
1972
|
}
|
1973
|
-
async function
|
1973
|
+
async function mt(n, e) {
|
1974
1974
|
try {
|
1975
1975
|
const r = (await Kt()).transaction(X, "readwrite");
|
1976
1976
|
await r.objectStore(X).put(e, qt(n)), await r.done;
|
1977
1977
|
} catch (t) {
|
1978
1978
|
if (t instanceof M)
|
1979
|
-
|
1979
|
+
T.warn(t.message);
|
1980
1980
|
else {
|
1981
1981
|
const r = D.create("idb-set", {
|
1982
1982
|
originalErrorMessage: t == null ? void 0 : t.message
|
1983
1983
|
});
|
1984
|
-
|
1984
|
+
T.warn(r.message);
|
1985
1985
|
}
|
1986
1986
|
}
|
1987
1987
|
}
|
@@ -2021,13 +2021,13 @@ class Di {
|
|
2021
2021
|
async triggerHeartbeat() {
|
2022
2022
|
var e, t;
|
2023
2023
|
try {
|
2024
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
2024
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
|
2025
2025
|
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
2026
2026
|
const c = new Date(a.date).valueOf();
|
2027
2027
|
return Date.now() - c <= Ci;
|
2028
2028
|
}), this._storage.overwrite(this._heartbeatsCache));
|
2029
2029
|
} catch (r) {
|
2030
|
-
|
2030
|
+
T.warn(r);
|
2031
2031
|
}
|
2032
2032
|
}
|
2033
2033
|
/**
|
@@ -2042,14 +2042,14 @@ class Di {
|
|
2042
2042
|
try {
|
2043
2043
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
2044
2044
|
return "";
|
2045
|
-
const t =
|
2045
|
+
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Pi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
2046
2046
|
return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
|
2047
2047
|
} catch (t) {
|
2048
|
-
return
|
2048
|
+
return T.warn(t), "";
|
2049
2049
|
}
|
2050
2050
|
}
|
2051
2051
|
}
|
2052
|
-
function
|
2052
|
+
function ft() {
|
2053
2053
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
2054
2054
|
}
|
2055
2055
|
function Pi(n, e = Ni) {
|
@@ -2098,7 +2098,7 @@ class Mi {
|
|
2098
2098
|
var t;
|
2099
2099
|
if (await this._canUseIndexedDBPromise) {
|
2100
2100
|
const i = await this.read();
|
2101
|
-
return
|
2101
|
+
return mt(this.app, {
|
2102
2102
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2103
2103
|
heartbeats: e.heartbeats
|
2104
2104
|
});
|
@@ -2110,7 +2110,7 @@ class Mi {
|
|
2110
2110
|
var t;
|
2111
2111
|
if (await this._canUseIndexedDBPromise) {
|
2112
2112
|
const i = await this.read();
|
2113
|
-
return
|
2113
|
+
return mt(this.app, {
|
2114
2114
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2115
2115
|
heartbeats: [
|
2116
2116
|
...i.heartbeats,
|
@@ -2144,17 +2144,17 @@ function _t(n) {
|
|
2144
2144
|
* limitations under the License.
|
2145
2145
|
*/
|
2146
2146
|
function Li(n) {
|
2147
|
-
Y(new
|
2147
|
+
Y(new G(
|
2148
2148
|
"platform-logger",
|
2149
|
-
(e) => new
|
2149
|
+
(e) => new Jr(e),
|
2150
2150
|
"PRIVATE"
|
2151
2151
|
/* ComponentType.PRIVATE */
|
2152
|
-
)), Y(new
|
2152
|
+
)), Y(new G(
|
2153
2153
|
"heartbeat",
|
2154
2154
|
(e) => new Di(e),
|
2155
2155
|
"PRIVATE"
|
2156
2156
|
/* ComponentType.PRIVATE */
|
2157
|
-
)),
|
2157
|
+
)), W(Be, ht, n), W(Be, ht, "esm2017"), W("fire-js", "");
|
2158
2158
|
}
|
2159
2159
|
Li("");
|
2160
2160
|
var Ui = "firebase", Bi = "10.14.1";
|
@@ -2174,7 +2174,7 @@ var Ui = "firebase", Bi = "10.14.1";
|
|
2174
2174
|
* See the License for the specific language governing permissions and
|
2175
2175
|
* limitations under the License.
|
2176
2176
|
*/
|
2177
|
-
|
2177
|
+
W(Ui, Bi, "app");
|
2178
2178
|
var gt = function() {
|
2179
2179
|
return gt = Object.assign || function(e) {
|
2180
2180
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -2184,7 +2184,7 @@ var gt = function() {
|
|
2184
2184
|
return e;
|
2185
2185
|
}, gt.apply(this, arguments);
|
2186
2186
|
};
|
2187
|
-
function
|
2187
|
+
function Je(n, e) {
|
2188
2188
|
var t = {};
|
2189
2189
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
2190
2190
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -2197,7 +2197,7 @@ function Qt() {
|
|
2197
2197
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
2198
2198
|
};
|
2199
2199
|
}
|
2200
|
-
const
|
2200
|
+
const xi = Qt, en = new q("auth", "Firebase", Qt());
|
2201
2201
|
/**
|
2202
2202
|
* @license
|
2203
2203
|
* Copyright 2020 Google LLC
|
@@ -2214,8 +2214,8 @@ const Fi = Qt, en = new q("auth", "Firebase", Qt());
|
|
2214
2214
|
* See the License for the specific language governing permissions and
|
2215
2215
|
* limitations under the License.
|
2216
2216
|
*/
|
2217
|
-
const pe = new
|
2218
|
-
function
|
2217
|
+
const pe = new $t("@firebase/auth");
|
2218
|
+
function Fi(n, ...e) {
|
2219
2219
|
pe.logLevel <= p.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
2220
2220
|
}
|
2221
2221
|
function se(n, ...e) {
|
@@ -2237,14 +2237,14 @@ function se(n, ...e) {
|
|
2237
2237
|
* See the License for the specific language governing permissions and
|
2238
2238
|
* limitations under the License.
|
2239
2239
|
*/
|
2240
|
-
function
|
2241
|
-
throw
|
2240
|
+
function w(n, ...e) {
|
2241
|
+
throw Ze(n, ...e);
|
2242
2242
|
}
|
2243
2243
|
function _(n, ...e) {
|
2244
|
-
return
|
2244
|
+
return Ze(n, ...e);
|
2245
2245
|
}
|
2246
2246
|
function tn(n, e, t) {
|
2247
|
-
const r = Object.assign(Object.assign({},
|
2247
|
+
const r = Object.assign(Object.assign({}, xi()), { [e]: t });
|
2248
2248
|
return new q("auth", "Firebase", r).create(e, {
|
2249
2249
|
appName: n.name
|
2250
2250
|
});
|
@@ -2252,7 +2252,7 @@ function tn(n, e, t) {
|
|
2252
2252
|
function P(n) {
|
2253
2253
|
return tn(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
2254
2254
|
}
|
2255
|
-
function
|
2255
|
+
function Ze(n, ...e) {
|
2256
2256
|
if (typeof n != "string") {
|
2257
2257
|
const t = e[0], r = [...e.slice(1)];
|
2258
2258
|
return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
|
@@ -2261,13 +2261,13 @@ function Je(n, ...e) {
|
|
2261
2261
|
}
|
2262
2262
|
function u(n, e, ...t) {
|
2263
2263
|
if (!n)
|
2264
|
-
throw
|
2264
|
+
throw Ze(e, ...t);
|
2265
2265
|
}
|
2266
2266
|
function b(n) {
|
2267
2267
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
2268
2268
|
throw se(e), new Error(e);
|
2269
2269
|
}
|
2270
|
-
function
|
2270
|
+
function R(n, e) {
|
2271
2271
|
n || b(e);
|
2272
2272
|
}
|
2273
2273
|
/**
|
@@ -2286,11 +2286,11 @@ function k(n, e) {
|
|
2286
2286
|
* See the License for the specific language governing permissions and
|
2287
2287
|
* limitations under the License.
|
2288
2288
|
*/
|
2289
|
-
function
|
2289
|
+
function We() {
|
2290
2290
|
var n;
|
2291
2291
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
2292
2292
|
}
|
2293
|
-
function
|
2293
|
+
function Wi() {
|
2294
2294
|
return vt() === "http:" || vt() === "https:";
|
2295
2295
|
}
|
2296
2296
|
function vt() {
|
@@ -2313,15 +2313,15 @@ function vt() {
|
|
2313
2313
|
* See the License for the specific language governing permissions and
|
2314
2314
|
* limitations under the License.
|
2315
2315
|
*/
|
2316
|
-
function
|
2316
|
+
function ji() {
|
2317
2317
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
2318
2318
|
// This is especially true for Cordova apps which have unreliable
|
2319
2319
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
2320
2320
|
// installed which overwrites the native navigator.onLine value and
|
2321
2321
|
// defines navigator.connection.
|
2322
|
-
(
|
2322
|
+
(Wi() || _r() || "connection" in navigator) ? navigator.onLine : !0;
|
2323
2323
|
}
|
2324
|
-
function
|
2324
|
+
function Hi() {
|
2325
2325
|
if (typeof navigator > "u")
|
2326
2326
|
return null;
|
2327
2327
|
const n = navigator;
|
@@ -2351,10 +2351,10 @@ function Vi() {
|
|
2351
2351
|
*/
|
2352
2352
|
class te {
|
2353
2353
|
constructor(e, t) {
|
2354
|
-
this.shortDelay = e, this.longDelay = t,
|
2354
|
+
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = mr() || gr();
|
2355
2355
|
}
|
2356
2356
|
get() {
|
2357
|
-
return
|
2357
|
+
return ji() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2358
2358
|
}
|
2359
2359
|
}
|
2360
2360
|
/**
|
@@ -2374,7 +2374,7 @@ class te {
|
|
2374
2374
|
* limitations under the License.
|
2375
2375
|
*/
|
2376
2376
|
function Ye(n, e) {
|
2377
|
-
|
2377
|
+
R(n.emulator, "Emulator should always be set here");
|
2378
2378
|
const { url: t } = n.emulator;
|
2379
2379
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
2380
2380
|
}
|
@@ -2448,7 +2448,7 @@ class nn {
|
|
2448
2448
|
* See the License for the specific language governing permissions and
|
2449
2449
|
* limitations under the License.
|
2450
2450
|
*/
|
2451
|
-
const
|
2451
|
+
const Vi = {
|
2452
2452
|
// Custom token errors.
|
2453
2453
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2454
2454
|
// This can only happen if the SDK sends a bad request.
|
@@ -2539,11 +2539,11 @@ const ji = {
|
|
2539
2539
|
* See the License for the specific language governing permissions and
|
2540
2540
|
* limitations under the License.
|
2541
2541
|
*/
|
2542
|
-
const
|
2542
|
+
const Gi = new te(3e4, 6e4);
|
2543
2543
|
function ve(n, e) {
|
2544
2544
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2545
2545
|
}
|
2546
|
-
async function
|
2546
|
+
async function $(n, e, t, r, i = {}) {
|
2547
2547
|
return rn(n, i, async () => {
|
2548
2548
|
let s = {}, a = {};
|
2549
2549
|
r && (e === "GET" ? a = r : s = {
|
@@ -2561,12 +2561,12 @@ async function Z(n, e, t, r, i = {}) {
|
|
2561
2561
|
method: e,
|
2562
2562
|
headers: o
|
2563
2563
|
}, s);
|
2564
|
-
return
|
2564
|
+
return fr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2565
2565
|
});
|
2566
2566
|
}
|
2567
2567
|
async function rn(n, e, t) {
|
2568
2568
|
n._canInitEmulator = !1;
|
2569
|
-
const r = Object.assign(Object.assign({},
|
2569
|
+
const r = Object.assign(Object.assign({}, Vi), e);
|
2570
2570
|
try {
|
2571
2571
|
const i = new zi(n), s = await Promise.race([
|
2572
2572
|
t(),
|
@@ -2589,17 +2589,17 @@ async function rn(n, e, t) {
|
|
2589
2589
|
const d = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
2590
2590
|
if (l)
|
2591
2591
|
throw tn(n, d, l);
|
2592
|
-
|
2592
|
+
w(n, d);
|
2593
2593
|
}
|
2594
2594
|
} catch (i) {
|
2595
2595
|
if (i instanceof M)
|
2596
2596
|
throw i;
|
2597
|
-
|
2597
|
+
w(n, "network-request-failed", { message: String(i) });
|
2598
2598
|
}
|
2599
2599
|
}
|
2600
2600
|
async function sn(n, e, t, r, i = {}) {
|
2601
|
-
const s = await
|
2602
|
-
return "mfaPendingCredential" in s &&
|
2601
|
+
const s = await $(n, e, t, r, i);
|
2602
|
+
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2603
2603
|
_serverResponse: s
|
2604
2604
|
}), s;
|
2605
2605
|
}
|
@@ -2614,7 +2614,7 @@ class zi {
|
|
2614
2614
|
this.auth,
|
2615
2615
|
"network-request-failed"
|
2616
2616
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2617
|
-
)),
|
2617
|
+
)), Gi.get());
|
2618
2618
|
});
|
2619
2619
|
}
|
2620
2620
|
clearNetworkTimeout() {
|
@@ -2645,11 +2645,11 @@ function ie(n, e, t) {
|
|
2645
2645
|
* See the License for the specific language governing permissions and
|
2646
2646
|
* limitations under the License.
|
2647
2647
|
*/
|
2648
|
-
async function
|
2649
|
-
return
|
2648
|
+
async function $i(n, e) {
|
2649
|
+
return $(n, "POST", "/v1/accounts:delete", e);
|
2650
2650
|
}
|
2651
2651
|
async function on(n, e) {
|
2652
|
-
return
|
2652
|
+
return $(n, "POST", "/v1/accounts:lookup", e);
|
2653
2653
|
}
|
2654
2654
|
/**
|
2655
2655
|
* @license
|
@@ -2667,7 +2667,7 @@ async function on(n, e) {
|
|
2667
2667
|
* See the License for the specific language governing permissions and
|
2668
2668
|
* limitations under the License.
|
2669
2669
|
*/
|
2670
|
-
function
|
2670
|
+
function Z(n) {
|
2671
2671
|
if (n)
|
2672
2672
|
try {
|
2673
2673
|
const e = new Date(Number(n));
|
@@ -2676,7 +2676,7 @@ function J(n) {
|
|
2676
2676
|
} catch {
|
2677
2677
|
}
|
2678
2678
|
}
|
2679
|
-
async function
|
2679
|
+
async function Ji(n, e = !1) {
|
2680
2680
|
const t = z(n), r = await t.getIdToken(e), i = Xe(r);
|
2681
2681
|
u(
|
2682
2682
|
i && i.exp && i.auth_time && i.iat,
|
@@ -2688,9 +2688,9 @@ async function $i(n, e = !1) {
|
|
2688
2688
|
return {
|
2689
2689
|
claims: i,
|
2690
2690
|
token: r,
|
2691
|
-
authTime:
|
2692
|
-
issuedAtTime:
|
2693
|
-
expirationTime:
|
2691
|
+
authTime: Z(Ce(i.auth_time)),
|
2692
|
+
issuedAtTime: Z(Ce(i.iat)),
|
2693
|
+
expirationTime: Z(Ce(i.exp)),
|
2694
2694
|
signInProvider: a || null,
|
2695
2695
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2696
2696
|
};
|
@@ -2703,7 +2703,7 @@ function Xe(n) {
|
|
2703
2703
|
if (e === void 0 || t === void 0 || r === void 0)
|
2704
2704
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2705
2705
|
try {
|
2706
|
-
const i =
|
2706
|
+
const i = Ht(t);
|
2707
2707
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2708
2708
|
} catch (i) {
|
2709
2709
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
@@ -2747,10 +2747,10 @@ async function K(n, e, t = !1) {
|
|
2747
2747
|
try {
|
2748
2748
|
return await e;
|
2749
2749
|
} catch (r) {
|
2750
|
-
throw r instanceof M &&
|
2750
|
+
throw r instanceof M && Zi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2751
2751
|
}
|
2752
2752
|
}
|
2753
|
-
function
|
2753
|
+
function Zi({ code: n }) {
|
2754
2754
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2755
2755
|
}
|
2756
2756
|
/**
|
@@ -2831,12 +2831,12 @@ class Yi {
|
|
2831
2831
|
* See the License for the specific language governing permissions and
|
2832
2832
|
* limitations under the License.
|
2833
2833
|
*/
|
2834
|
-
class
|
2834
|
+
class je {
|
2835
2835
|
constructor(e, t) {
|
2836
2836
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2837
2837
|
}
|
2838
2838
|
_initializeTime() {
|
2839
|
-
this.lastSignInTime =
|
2839
|
+
this.lastSignInTime = Z(this.lastLoginAt), this.creationTime = Z(this.createdAt);
|
2840
2840
|
}
|
2841
2841
|
_copy(e) {
|
2842
2842
|
this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
|
@@ -2864,7 +2864,7 @@ class Ge {
|
|
2864
2864
|
* See the License for the specific language governing permissions and
|
2865
2865
|
* limitations under the License.
|
2866
2866
|
*/
|
2867
|
-
async function
|
2867
|
+
async function me(n) {
|
2868
2868
|
var e;
|
2869
2869
|
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2870
2870
|
u(
|
@@ -2884,21 +2884,21 @@ async function fe(n) {
|
|
2884
2884
|
phoneNumber: s.phoneNumber || null,
|
2885
2885
|
tenantId: s.tenantId || null,
|
2886
2886
|
providerData: c,
|
2887
|
-
metadata: new
|
2887
|
+
metadata: new je(s.createdAt, s.lastLoginAt),
|
2888
2888
|
isAnonymous: d
|
2889
2889
|
};
|
2890
2890
|
Object.assign(n, h);
|
2891
2891
|
}
|
2892
2892
|
async function Xi(n) {
|
2893
2893
|
const e = z(n);
|
2894
|
-
await
|
2894
|
+
await me(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2895
2895
|
}
|
2896
2896
|
function Ki(n, e) {
|
2897
2897
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2898
2898
|
}
|
2899
2899
|
function cn(n) {
|
2900
2900
|
return n.map((e) => {
|
2901
|
-
var { providerId: t } = e, r =
|
2901
|
+
var { providerId: t } = e, r = Je(e, ["providerId"]);
|
2902
2902
|
return {
|
2903
2903
|
providerId: t,
|
2904
2904
|
uid: r.rawId || "",
|
@@ -2947,7 +2947,7 @@ async function qi(n, e) {
|
|
2947
2947
|
};
|
2948
2948
|
}
|
2949
2949
|
async function Qi(n, e) {
|
2950
|
-
return
|
2950
|
+
return $(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2951
2951
|
}
|
2952
2952
|
/**
|
2953
2953
|
* @license
|
@@ -2965,7 +2965,7 @@ async function Qi(n, e) {
|
|
2965
2965
|
* See the License for the specific language governing permissions and
|
2966
2966
|
* limitations under the License.
|
2967
2967
|
*/
|
2968
|
-
class
|
2968
|
+
class j {
|
2969
2969
|
constructor() {
|
2970
2970
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2971
2971
|
}
|
@@ -3017,7 +3017,7 @@ class G {
|
|
3017
3017
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
3018
3018
|
}
|
3019
3019
|
static fromJSON(e, t) {
|
3020
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new
|
3020
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new j();
|
3021
3021
|
return r && (u(typeof r == "string", "internal-error", {
|
3022
3022
|
appName: e
|
3023
3023
|
}), a.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
|
@@ -3037,7 +3037,7 @@ class G {
|
|
3037
3037
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
3038
3038
|
}
|
3039
3039
|
_clone() {
|
3040
|
-
return Object.assign(new
|
3040
|
+
return Object.assign(new j(), this.toJSON());
|
3041
3041
|
}
|
3042
3042
|
_performRefresh() {
|
3043
3043
|
return b("not implemented");
|
@@ -3059,13 +3059,13 @@ class G {
|
|
3059
3059
|
* See the License for the specific language governing permissions and
|
3060
3060
|
* limitations under the License.
|
3061
3061
|
*/
|
3062
|
-
function
|
3062
|
+
function k(n, e) {
|
3063
3063
|
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
3064
3064
|
}
|
3065
3065
|
class y {
|
3066
3066
|
constructor(e) {
|
3067
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
3068
|
-
this.providerId = "firebase", this.proactiveRefresh = new Yi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new
|
3067
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = Je(e, ["uid", "auth", "stsTokenManager"]);
|
3068
|
+
this.providerId = "firebase", this.proactiveRefresh = new Yi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new je(s.createdAt || void 0, s.lastLoginAt || void 0);
|
3069
3069
|
}
|
3070
3070
|
async getIdToken(e) {
|
3071
3071
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
@@ -3077,7 +3077,7 @@ class y {
|
|
3077
3077
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
3078
3078
|
}
|
3079
3079
|
getIdTokenResult(e) {
|
3080
|
-
return
|
3080
|
+
return Ji(this, e);
|
3081
3081
|
}
|
3082
3082
|
reload() {
|
3083
3083
|
return Xi(this);
|
@@ -3113,13 +3113,13 @@ class y {
|
|
3113
3113
|
}
|
3114
3114
|
async _updateTokensIfNecessary(e, t = !1) {
|
3115
3115
|
let r = !1;
|
3116
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
3116
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await me(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
3117
3117
|
}
|
3118
3118
|
async delete() {
|
3119
3119
|
if (I(this.auth.app))
|
3120
3120
|
return Promise.reject(P(this.auth));
|
3121
3121
|
const e = await this.getIdToken();
|
3122
|
-
return await K(this,
|
3122
|
+
return await K(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
3123
3123
|
}
|
3124
3124
|
toJSON() {
|
3125
3125
|
return Object.assign(Object.assign({
|
@@ -3147,20 +3147,20 @@ class y {
|
|
3147
3147
|
}
|
3148
3148
|
static _fromJSON(e, t) {
|
3149
3149
|
var r, i, s, a, c, o, l, d;
|
3150
|
-
const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0,
|
3150
|
+
const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, x = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, tt = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Ee = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: Te, emailVerified: it, isAnonymous: st, providerData: we, stsTokenManager: at } = t;
|
3151
3151
|
u(
|
3152
|
-
|
3152
|
+
Te && at,
|
3153
3153
|
e,
|
3154
3154
|
"internal-error"
|
3155
3155
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3156
3156
|
);
|
3157
|
-
const Pn =
|
3157
|
+
const Pn = j.fromJSON(this.name, at);
|
3158
3158
|
u(
|
3159
|
-
typeof
|
3159
|
+
typeof Te == "string",
|
3160
3160
|
e,
|
3161
3161
|
"internal-error"
|
3162
3162
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3163
|
-
),
|
3163
|
+
), k(h, e.name), k(m, e.name), u(
|
3164
3164
|
typeof it == "boolean",
|
3165
3165
|
e,
|
3166
3166
|
"internal-error"
|
@@ -3170,22 +3170,22 @@ class y {
|
|
3170
3170
|
e,
|
3171
3171
|
"internal-error"
|
3172
3172
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3173
|
-
),
|
3174
|
-
const
|
3175
|
-
uid:
|
3173
|
+
), k(v, e.name), k(x, e.name), k(tt, e.name), k(Ee, e.name), k(nt, e.name), k(rt, e.name);
|
3174
|
+
const Re = new y({
|
3175
|
+
uid: Te,
|
3176
3176
|
auth: e,
|
3177
|
-
email:
|
3177
|
+
email: m,
|
3178
3178
|
emailVerified: it,
|
3179
3179
|
displayName: h,
|
3180
3180
|
isAnonymous: st,
|
3181
|
-
photoURL:
|
3181
|
+
photoURL: x,
|
3182
3182
|
phoneNumber: v,
|
3183
3183
|
tenantId: tt,
|
3184
3184
|
stsTokenManager: Pn,
|
3185
3185
|
createdAt: nt,
|
3186
3186
|
lastLoginAt: rt
|
3187
3187
|
});
|
3188
|
-
return
|
3188
|
+
return we && Array.isArray(we) && (Re.providerData = we.map((Mn) => Object.assign({}, Mn))), Ee && (Re._redirectEventId = Ee), Re;
|
3189
3189
|
}
|
3190
3190
|
/**
|
3191
3191
|
* Initialize a User from an idToken server response
|
@@ -3193,7 +3193,7 @@ class y {
|
|
3193
3193
|
* @param idTokenResponse
|
3194
3194
|
*/
|
3195
3195
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
3196
|
-
const i = new
|
3196
|
+
const i = new j();
|
3197
3197
|
i.updateFromServerResponse(t);
|
3198
3198
|
const s = new y({
|
3199
3199
|
uid: t.localId,
|
@@ -3201,7 +3201,7 @@ class y {
|
|
3201
3201
|
stsTokenManager: i,
|
3202
3202
|
isAnonymous: r
|
3203
3203
|
});
|
3204
|
-
return await
|
3204
|
+
return await me(s), s;
|
3205
3205
|
}
|
3206
3206
|
/**
|
3207
3207
|
* Initialize a User from an idToken server response
|
@@ -3215,7 +3215,7 @@ class y {
|
|
3215
3215
|
"internal-error"
|
3216
3216
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3217
3217
|
);
|
3218
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new
|
3218
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new j();
|
3219
3219
|
c.updateFromIdToken(r);
|
3220
3220
|
const o = new y({
|
3221
3221
|
uid: i.localId,
|
@@ -3231,7 +3231,7 @@ class y {
|
|
3231
3231
|
phoneNumber: i.phoneNumber || null,
|
3232
3232
|
tenantId: i.tenantId || null,
|
3233
3233
|
providerData: s,
|
3234
|
-
metadata: new
|
3234
|
+
metadata: new je(i.createdAt, i.lastLoginAt),
|
3235
3235
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
3236
3236
|
};
|
3237
3237
|
return Object.assign(o, l), o;
|
@@ -3255,9 +3255,9 @@ class y {
|
|
3255
3255
|
*/
|
3256
3256
|
const bt = /* @__PURE__ */ new Map();
|
3257
3257
|
function E(n) {
|
3258
|
-
|
3258
|
+
R(n instanceof Function, "Expected a class definition");
|
3259
3259
|
let e = bt.get(n);
|
3260
|
-
return e ? (
|
3260
|
+
return e ? (R(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
|
3261
3261
|
}
|
3262
3262
|
/**
|
3263
3263
|
* @license
|
@@ -3318,7 +3318,7 @@ const yt = ln;
|
|
3318
3318
|
function ae(n, e, t) {
|
3319
3319
|
return `firebase:${n}:${e}:${t}`;
|
3320
3320
|
}
|
3321
|
-
class
|
3321
|
+
class H {
|
3322
3322
|
constructor(e, t, r) {
|
3323
3323
|
this.persistence = e, this.auth = t, this.userKey = r;
|
3324
3324
|
const { config: i, name: s } = this.auth;
|
@@ -3349,7 +3349,7 @@ class V {
|
|
3349
3349
|
}
|
3350
3350
|
static async create(e, t, r = "authUser") {
|
3351
3351
|
if (!t.length)
|
3352
|
-
return new
|
3352
|
+
return new H(E(yt), e, r);
|
3353
3353
|
const i = (await Promise.all(t.map(async (l) => {
|
3354
3354
|
if (await l._isAvailable())
|
3355
3355
|
return l;
|
@@ -3368,13 +3368,13 @@ class V {
|
|
3368
3368
|
} catch {
|
3369
3369
|
}
|
3370
3370
|
const o = i.filter((l) => l._shouldAllowMigration);
|
3371
|
-
return !s._shouldAllowMigration || !o.length ? new
|
3371
|
+
return !s._shouldAllowMigration || !o.length ? new H(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
|
3372
3372
|
if (l !== s)
|
3373
3373
|
try {
|
3374
3374
|
await l._remove(a);
|
3375
3375
|
} catch {
|
3376
3376
|
}
|
3377
|
-
})), new
|
3377
|
+
})), new H(s, e, r));
|
3378
3378
|
}
|
3379
3379
|
}
|
3380
3380
|
/**
|
@@ -3407,7 +3407,7 @@ function Et(n) {
|
|
3407
3407
|
return "Firefox";
|
3408
3408
|
if (e.includes("silk/"))
|
3409
3409
|
return "Silk";
|
3410
|
-
if (
|
3410
|
+
if (fn(e))
|
3411
3411
|
return "Blackberry";
|
3412
3412
|
if (_n(e))
|
3413
3413
|
return "Webos";
|
@@ -3415,7 +3415,7 @@ function Et(n) {
|
|
3415
3415
|
return "Safari";
|
3416
3416
|
if ((e.includes("chrome/") || hn(e)) && !e.includes("edge/"))
|
3417
3417
|
return "Chrome";
|
3418
|
-
if (
|
3418
|
+
if (mn(e))
|
3419
3419
|
return "Android";
|
3420
3420
|
{
|
3421
3421
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
@@ -3424,40 +3424,40 @@ function Et(n) {
|
|
3424
3424
|
}
|
3425
3425
|
return "Other";
|
3426
3426
|
}
|
3427
|
-
function dn(n =
|
3427
|
+
function dn(n = f()) {
|
3428
3428
|
return /firefox\//i.test(n);
|
3429
3429
|
}
|
3430
|
-
function un(n =
|
3430
|
+
function un(n = f()) {
|
3431
3431
|
const e = n.toLowerCase();
|
3432
3432
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
3433
3433
|
}
|
3434
|
-
function hn(n =
|
3434
|
+
function hn(n = f()) {
|
3435
3435
|
return /crios\//i.test(n);
|
3436
3436
|
}
|
3437
|
-
function pn(n =
|
3437
|
+
function pn(n = f()) {
|
3438
3438
|
return /iemobile/i.test(n);
|
3439
3439
|
}
|
3440
|
-
function
|
3440
|
+
function mn(n = f()) {
|
3441
3441
|
return /android/i.test(n);
|
3442
3442
|
}
|
3443
|
-
function
|
3443
|
+
function fn(n = f()) {
|
3444
3444
|
return /blackberry/i.test(n);
|
3445
3445
|
}
|
3446
|
-
function _n(n =
|
3446
|
+
function _n(n = f()) {
|
3447
3447
|
return /webos/i.test(n);
|
3448
3448
|
}
|
3449
|
-
function Ke(n =
|
3449
|
+
function Ke(n = f()) {
|
3450
3450
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3451
3451
|
}
|
3452
|
-
function es(n =
|
3452
|
+
function es(n = f()) {
|
3453
3453
|
var e;
|
3454
3454
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3455
3455
|
}
|
3456
3456
|
function ts() {
|
3457
3457
|
return vr() && document.documentMode === 10;
|
3458
3458
|
}
|
3459
|
-
function gn(n =
|
3460
|
-
return Ke(n) ||
|
3459
|
+
function gn(n = f()) {
|
3460
|
+
return Ke(n) || mn(n) || _n(n) || fn(n) || /windows phone/i.test(n) || pn(n);
|
3461
3461
|
}
|
3462
3462
|
/**
|
3463
3463
|
* @license
|
@@ -3479,10 +3479,10 @@ function vn(n, e = []) {
|
|
3479
3479
|
let t;
|
3480
3480
|
switch (n) {
|
3481
3481
|
case "Browser":
|
3482
|
-
t = Et(
|
3482
|
+
t = Et(f());
|
3483
3483
|
break;
|
3484
3484
|
case "Worker":
|
3485
|
-
t = `${Et(
|
3485
|
+
t = `${Et(f())}-${n}`;
|
3486
3486
|
break;
|
3487
3487
|
default:
|
3488
3488
|
t = n;
|
@@ -3562,7 +3562,7 @@ class ns {
|
|
3562
3562
|
* limitations under the License.
|
3563
3563
|
*/
|
3564
3564
|
async function rs(n, e = {}) {
|
3565
|
-
return
|
3565
|
+
return $(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3566
3566
|
}
|
3567
3567
|
/**
|
3568
3568
|
* @license
|
@@ -3670,12 +3670,12 @@ class ss {
|
|
3670
3670
|
*/
|
3671
3671
|
class as {
|
3672
3672
|
constructor(e, t, r, i) {
|
3673
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new
|
3673
|
+
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new ns(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = en, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
|
3674
3674
|
}
|
3675
3675
|
_initializeWithPersistence(e, t) {
|
3676
3676
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3677
3677
|
var r, i;
|
3678
|
-
if (!this._deleted && (this.persistenceManager = await
|
3678
|
+
if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
|
3679
3679
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3680
3680
|
try {
|
3681
3681
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3756,7 +3756,7 @@ class as {
|
|
3756
3756
|
}
|
3757
3757
|
async reloadAndSetCurrentUserOrClear(e) {
|
3758
3758
|
try {
|
3759
|
-
await
|
3759
|
+
await me(e);
|
3760
3760
|
} catch (t) {
|
3761
3761
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3762
3762
|
return this.directlySetCurrentUser(null);
|
@@ -3764,7 +3764,7 @@ class as {
|
|
3764
3764
|
return this.directlySetCurrentUser(e);
|
3765
3765
|
}
|
3766
3766
|
useDeviceLanguage() {
|
3767
|
-
this.languageCode =
|
3767
|
+
this.languageCode = Hi();
|
3768
3768
|
}
|
3769
3769
|
async _delete() {
|
3770
3770
|
this._deleted = !0;
|
@@ -3879,7 +3879,7 @@ class as {
|
|
3879
3879
|
this,
|
3880
3880
|
"argument-error"
|
3881
3881
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3882
|
-
), this.redirectPersistenceManager = await
|
3882
|
+
), this.redirectPersistenceManager = await H.create(
|
3883
3883
|
this,
|
3884
3884
|
[E(t._redirectPersistence)],
|
3885
3885
|
"redirectUser"
|
@@ -3998,15 +3998,15 @@ class as {
|
|
3998
3998
|
async _getAppCheckToken() {
|
3999
3999
|
var e;
|
4000
4000
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
4001
|
-
return t != null && t.error &&
|
4001
|
+
return t != null && t.error && Fi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
4002
4002
|
}
|
4003
4003
|
}
|
4004
4004
|
function Ie(n) {
|
4005
4005
|
return z(n);
|
4006
4006
|
}
|
4007
|
-
class
|
4007
|
+
class Tt {
|
4008
4008
|
constructor(e) {
|
4009
|
-
this.auth = e, this.observer = null, this.addObserver =
|
4009
|
+
this.auth = e, this.observer = null, this.addObserver = Rr((t) => this.observer = t);
|
4010
4010
|
}
|
4011
4011
|
get next() {
|
4012
4012
|
return u(
|
@@ -4075,7 +4075,7 @@ function us(n, e) {
|
|
4075
4075
|
const i = t.getImmediate(), s = t.getOptions();
|
4076
4076
|
if (ue(s, e ?? {}))
|
4077
4077
|
return i;
|
4078
|
-
|
4078
|
+
w(
|
4079
4079
|
i,
|
4080
4080
|
"already-initialized"
|
4081
4081
|
/* AuthErrorCode.ALREADY_INITIALIZED */
|
@@ -4100,38 +4100,38 @@ function ps(n, e, t) {
|
|
4100
4100
|
"invalid-emulator-scheme"
|
4101
4101
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
4102
4102
|
);
|
4103
|
-
const i = !1, s = In(e), { host: a, port: c } =
|
4103
|
+
const i = !1, s = In(e), { host: a, port: c } = ms(e), o = c === null ? "" : `:${c}`;
|
4104
4104
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
4105
4105
|
host: a,
|
4106
4106
|
port: c,
|
4107
4107
|
protocol: s.replace(":", ""),
|
4108
4108
|
options: Object.freeze({ disableWarnings: i })
|
4109
|
-
}),
|
4109
|
+
}), fs();
|
4110
4110
|
}
|
4111
4111
|
function In(n) {
|
4112
4112
|
const e = n.indexOf(":");
|
4113
4113
|
return e < 0 ? "" : n.substr(0, e + 1);
|
4114
4114
|
}
|
4115
|
-
function
|
4115
|
+
function ms(n) {
|
4116
4116
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
4117
4117
|
if (!t)
|
4118
4118
|
return { host: "", port: null };
|
4119
4119
|
const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
|
4120
4120
|
if (i) {
|
4121
4121
|
const s = i[1];
|
4122
|
-
return { host: s, port:
|
4122
|
+
return { host: s, port: wt(r.substr(s.length + 1)) };
|
4123
4123
|
} else {
|
4124
4124
|
const [s, a] = r.split(":");
|
4125
|
-
return { host: s, port:
|
4125
|
+
return { host: s, port: wt(a) };
|
4126
4126
|
}
|
4127
4127
|
}
|
4128
|
-
function
|
4128
|
+
function wt(n) {
|
4129
4129
|
if (!n)
|
4130
4130
|
return null;
|
4131
4131
|
const e = Number(n);
|
4132
4132
|
return isNaN(e) ? null : e;
|
4133
4133
|
}
|
4134
|
-
function
|
4134
|
+
function fs() {
|
4135
4135
|
function n() {
|
4136
4136
|
const e = document.createElement("p"), t = e.style;
|
4137
4137
|
e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
|
@@ -4196,7 +4196,7 @@ class bn {
|
|
4196
4196
|
* See the License for the specific language governing permissions and
|
4197
4197
|
* limitations under the License.
|
4198
4198
|
*/
|
4199
|
-
async function
|
4199
|
+
async function V(n, e) {
|
4200
4200
|
return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
|
4201
4201
|
}
|
4202
4202
|
/**
|
@@ -4223,7 +4223,7 @@ class U extends bn {
|
|
4223
4223
|
/** @internal */
|
4224
4224
|
static _fromParams(e) {
|
4225
4225
|
const t = new U(e.providerId, e.signInMethod);
|
4226
|
-
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) :
|
4226
|
+
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : w(
|
4227
4227
|
"argument-error"
|
4228
4228
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
4229
4229
|
), t;
|
@@ -4250,7 +4250,7 @@ class U extends bn {
|
|
4250
4250
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
4251
4251
|
*/
|
4252
4252
|
static fromJSON(e) {
|
4253
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4253
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Je(t, ["providerId", "signInMethod"]);
|
4254
4254
|
if (!r || !i)
|
4255
4255
|
return null;
|
4256
4256
|
const a = new U(r, i);
|
@@ -4259,17 +4259,17 @@ class U extends bn {
|
|
4259
4259
|
/** @internal */
|
4260
4260
|
_getIdTokenResponse(e) {
|
4261
4261
|
const t = this.buildRequest();
|
4262
|
-
return
|
4262
|
+
return V(e, t);
|
4263
4263
|
}
|
4264
4264
|
/** @internal */
|
4265
4265
|
_linkToIdToken(e, t) {
|
4266
4266
|
const r = this.buildRequest();
|
4267
|
-
return r.idToken = t,
|
4267
|
+
return r.idToken = t, V(e, r);
|
4268
4268
|
}
|
4269
4269
|
/** @internal */
|
4270
4270
|
_getReauthenticationResolver(e) {
|
4271
4271
|
const t = this.buildRequest();
|
4272
|
-
return t.autoCreate = !1,
|
4272
|
+
return t.autoCreate = !1, V(e, t);
|
4273
4273
|
}
|
4274
4274
|
buildRequest() {
|
4275
4275
|
const e = {
|
@@ -4674,7 +4674,7 @@ class B {
|
|
4674
4674
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4675
4675
|
}
|
4676
4676
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4677
|
-
const s = await y._fromIdTokenResponse(e, r, i), a =
|
4677
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = Rt(r);
|
4678
4678
|
return new B({
|
4679
4679
|
user: s,
|
4680
4680
|
providerId: a,
|
@@ -4688,7 +4688,7 @@ class B {
|
|
4688
4688
|
/* reload */
|
4689
4689
|
!0
|
4690
4690
|
);
|
4691
|
-
const i =
|
4691
|
+
const i = Rt(r);
|
4692
4692
|
return new B({
|
4693
4693
|
user: e,
|
4694
4694
|
providerId: i,
|
@@ -4697,7 +4697,7 @@ class B {
|
|
4697
4697
|
});
|
4698
4698
|
}
|
4699
4699
|
}
|
4700
|
-
function
|
4700
|
+
function Rt(n) {
|
4701
4701
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
4702
4702
|
}
|
4703
4703
|
/**
|
@@ -4716,10 +4716,10 @@ function kt(n) {
|
|
4716
4716
|
* See the License for the specific language governing permissions and
|
4717
4717
|
* limitations under the License.
|
4718
4718
|
*/
|
4719
|
-
class
|
4719
|
+
class fe extends M {
|
4720
4720
|
constructor(e, t, r, i) {
|
4721
4721
|
var s;
|
4722
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4722
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
|
4723
4723
|
appName: e.name,
|
4724
4724
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4725
4725
|
_serverResponse: t.customData._serverResponse,
|
@@ -4727,12 +4727,12 @@ class me extends M {
|
|
4727
4727
|
};
|
4728
4728
|
}
|
4729
4729
|
static _fromErrorAndOperation(e, t, r, i) {
|
4730
|
-
return new
|
4730
|
+
return new fe(e, t, r, i);
|
4731
4731
|
}
|
4732
4732
|
}
|
4733
4733
|
function En(n, e, t, r) {
|
4734
4734
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4735
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4735
|
+
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
4736
4736
|
});
|
4737
4737
|
}
|
4738
4738
|
async function gs(n, e, t = !1) {
|
@@ -4783,7 +4783,7 @@ async function vs(n, e, t = !1) {
|
|
4783
4783
|
/* AuthErrorCode.USER_MISMATCH */
|
4784
4784
|
), B._forOperation(n, i, s);
|
4785
4785
|
} catch (s) {
|
4786
|
-
throw (s == null ? void 0 : s.code) === "auth/user-not-found" &&
|
4786
|
+
throw (s == null ? void 0 : s.code) === "auth/user-not-found" && w(
|
4787
4787
|
r,
|
4788
4788
|
"user-mismatch"
|
4789
4789
|
/* AuthErrorCode.USER_MISMATCH */
|
@@ -4859,7 +4859,7 @@ async function ys(n, e) {
|
|
4859
4859
|
function Es(n, e, t, r) {
|
4860
4860
|
return z(n).onIdTokenChanged(e, t, r);
|
4861
4861
|
}
|
4862
|
-
function
|
4862
|
+
function Ts(n, e, t) {
|
4863
4863
|
return z(n).beforeAuthStateChanged(e, t);
|
4864
4864
|
}
|
4865
4865
|
const _e = "__sak";
|
@@ -4879,7 +4879,7 @@ const _e = "__sak";
|
|
4879
4879
|
* See the License for the specific language governing permissions and
|
4880
4880
|
* limitations under the License.
|
4881
4881
|
*/
|
4882
|
-
class
|
4882
|
+
class Tn {
|
4883
4883
|
constructor(e, t) {
|
4884
4884
|
this.storageRetriever = e, this.type = t;
|
4885
4885
|
}
|
@@ -4920,8 +4920,8 @@ class wn {
|
|
4920
4920
|
* See the License for the specific language governing permissions and
|
4921
4921
|
* limitations under the License.
|
4922
4922
|
*/
|
4923
|
-
const
|
4924
|
-
class
|
4923
|
+
const ws = 1e3, Rs = 10;
|
4924
|
+
class wn extends Tn {
|
4925
4925
|
constructor() {
|
4926
4926
|
super(
|
4927
4927
|
() => window.localStorage,
|
@@ -4948,7 +4948,7 @@ class Tn extends wn {
|
|
4948
4948
|
const a = this.storage.getItem(r);
|
4949
4949
|
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4950
4950
|
}, s = this.storage.getItem(r);
|
4951
|
-
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i,
|
4951
|
+
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, Rs) : i();
|
4952
4952
|
}
|
4953
4953
|
notifyListeners(e, t) {
|
4954
4954
|
this.localCache[e] = t;
|
@@ -4970,7 +4970,7 @@ class Tn extends wn {
|
|
4970
4970
|
!0
|
4971
4971
|
);
|
4972
4972
|
});
|
4973
|
-
},
|
4973
|
+
}, ws);
|
4974
4974
|
}
|
4975
4975
|
stopPolling() {
|
4976
4976
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4999,8 +4999,8 @@ class Tn extends wn {
|
|
4999
4999
|
await super._remove(e), delete this.localCache[e];
|
5000
5000
|
}
|
5001
5001
|
}
|
5002
|
-
|
5003
|
-
const
|
5002
|
+
wn.type = "LOCAL";
|
5003
|
+
const ks = wn;
|
5004
5004
|
/**
|
5005
5005
|
* @license
|
5006
5006
|
* Copyright 2020 Google LLC
|
@@ -5017,7 +5017,7 @@ const Rs = Tn;
|
|
5017
5017
|
* See the License for the specific language governing permissions and
|
5018
5018
|
* limitations under the License.
|
5019
5019
|
*/
|
5020
|
-
class
|
5020
|
+
class Rn extends Tn {
|
5021
5021
|
constructor() {
|
5022
5022
|
super(
|
5023
5023
|
() => window.sessionStorage,
|
@@ -5030,8 +5030,8 @@ class kn extends wn {
|
|
5030
5030
|
_removeListener(e, t) {
|
5031
5031
|
}
|
5032
5032
|
}
|
5033
|
-
|
5034
|
-
const
|
5033
|
+
Rn.type = "SESSION";
|
5034
|
+
const kn = Rn;
|
5035
5035
|
/**
|
5036
5036
|
* @license
|
5037
5037
|
* Copyright 2019 Google LLC
|
@@ -5231,9 +5231,9 @@ class As {
|
|
5231
5231
|
a = {
|
5232
5232
|
messageChannel: i,
|
5233
5233
|
onMessage(h) {
|
5234
|
-
const
|
5235
|
-
if (
|
5236
|
-
switch (
|
5234
|
+
const m = h;
|
5235
|
+
if (m.data.eventId === l)
|
5236
|
+
switch (m.data.status) {
|
5237
5237
|
case "ack":
|
5238
5238
|
clearTimeout(d), s = setTimeout(
|
5239
5239
|
() => {
|
@@ -5247,7 +5247,7 @@ class As {
|
|
5247
5247
|
);
|
5248
5248
|
break;
|
5249
5249
|
case "done":
|
5250
|
-
clearTimeout(s), c(
|
5250
|
+
clearTimeout(s), c(m.data.response);
|
5251
5251
|
break;
|
5252
5252
|
default:
|
5253
5253
|
clearTimeout(d), clearTimeout(s), o(new Error(
|
@@ -5362,7 +5362,7 @@ function Ms() {
|
|
5362
5362
|
const n = indexedDB.deleteDatabase(An);
|
5363
5363
|
return new re(n).toPromise();
|
5364
5364
|
}
|
5365
|
-
function
|
5365
|
+
function He() {
|
5366
5366
|
const n = indexedDB.open(An, Ps);
|
5367
5367
|
return new Promise((e, t) => {
|
5368
5368
|
n.addEventListener("error", () => {
|
@@ -5376,11 +5376,11 @@ function Ve() {
|
|
5376
5376
|
}
|
5377
5377
|
}), n.addEventListener("success", async () => {
|
5378
5378
|
const r = n.result;
|
5379
|
-
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await
|
5379
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await He()));
|
5380
5380
|
});
|
5381
5381
|
});
|
5382
5382
|
}
|
5383
|
-
async function
|
5383
|
+
async function kt(n, e, t) {
|
5384
5384
|
const r = ye(n, !0).put({
|
5385
5385
|
[On]: e,
|
5386
5386
|
value: t
|
@@ -5403,7 +5403,7 @@ class Nn {
|
|
5403
5403
|
});
|
5404
5404
|
}
|
5405
5405
|
async _openDb() {
|
5406
|
-
return this.db ? this.db : (this.db = await
|
5406
|
+
return this.db ? this.db : (this.db = await He(), this.db);
|
5407
5407
|
}
|
5408
5408
|
async _withRetries(e) {
|
5409
5409
|
let t = 0;
|
@@ -5484,8 +5484,8 @@ class Nn {
|
|
5484
5484
|
try {
|
5485
5485
|
if (!indexedDB)
|
5486
5486
|
return !1;
|
5487
|
-
const e = await
|
5488
|
-
return await
|
5487
|
+
const e = await He();
|
5488
|
+
return await kt(e, _e, "1"), await St(e, _e), !0;
|
5489
5489
|
} catch {
|
5490
5490
|
}
|
5491
5491
|
return !1;
|
@@ -5499,7 +5499,7 @@ class Nn {
|
|
5499
5499
|
}
|
5500
5500
|
}
|
5501
5501
|
async _set(e, t) {
|
5502
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5502
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5503
5503
|
}
|
5504
5504
|
async _get(e) {
|
5505
5505
|
const t = await this._withRetries((r) => Ls(r, e));
|
@@ -5546,7 +5546,7 @@ class Nn {
|
|
5546
5546
|
}
|
5547
5547
|
}
|
5548
5548
|
Nn.type = "LOCAL";
|
5549
|
-
const
|
5549
|
+
const xs = Nn;
|
5550
5550
|
new te(3e4, 6e4);
|
5551
5551
|
/**
|
5552
5552
|
* @license
|
@@ -5564,7 +5564,7 @@ new te(3e4, 6e4);
|
|
5564
5564
|
* See the License for the specific language governing permissions and
|
5565
5565
|
* limitations under the License.
|
5566
5566
|
*/
|
5567
|
-
function
|
5567
|
+
function Fs(n, e) {
|
5568
5568
|
return e ? E(e) : (u(
|
5569
5569
|
n._popupRedirectResolver,
|
5570
5570
|
n,
|
@@ -5597,13 +5597,13 @@ class et extends bn {
|
|
5597
5597
|
), this.params = e;
|
5598
5598
|
}
|
5599
5599
|
_getIdTokenResponse(e) {
|
5600
|
-
return
|
5600
|
+
return V(e, this._buildIdpRequest());
|
5601
5601
|
}
|
5602
5602
|
_linkToIdToken(e, t) {
|
5603
|
-
return
|
5603
|
+
return V(e, this._buildIdpRequest(t));
|
5604
5604
|
}
|
5605
5605
|
_getReauthenticationResolver(e) {
|
5606
|
-
return
|
5606
|
+
return V(e, this._buildIdpRequest());
|
5607
5607
|
}
|
5608
5608
|
_buildIdpRequest(e) {
|
5609
5609
|
const t = {
|
@@ -5618,10 +5618,10 @@ class et extends bn {
|
|
5618
5618
|
return e && (t.idToken = e), t;
|
5619
5619
|
}
|
5620
5620
|
}
|
5621
|
-
function
|
5621
|
+
function Ws(n) {
|
5622
5622
|
return Is(n.auth, new et(n), n.bypassAuthState);
|
5623
5623
|
}
|
5624
|
-
function
|
5624
|
+
function js(n) {
|
5625
5625
|
const { auth: e, user: t } = n;
|
5626
5626
|
return u(
|
5627
5627
|
t,
|
@@ -5630,7 +5630,7 @@ function Gs(n) {
|
|
5630
5630
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5631
5631
|
), vs(t, new et(n), n.bypassAuthState);
|
5632
5632
|
}
|
5633
|
-
async function
|
5633
|
+
async function Hs(n) {
|
5634
5634
|
const { auth: e, user: t } = n;
|
5635
5635
|
return u(
|
5636
5636
|
t,
|
@@ -5697,15 +5697,15 @@ class Cn {
|
|
5697
5697
|
switch (e) {
|
5698
5698
|
case "signInViaPopup":
|
5699
5699
|
case "signInViaRedirect":
|
5700
|
-
return
|
5700
|
+
return Ws;
|
5701
5701
|
case "linkViaPopup":
|
5702
5702
|
case "linkViaRedirect":
|
5703
|
-
return
|
5703
|
+
return Hs;
|
5704
5704
|
case "reauthViaPopup":
|
5705
5705
|
case "reauthViaRedirect":
|
5706
|
-
return
|
5706
|
+
return js;
|
5707
5707
|
default:
|
5708
|
-
|
5708
|
+
w(
|
5709
5709
|
this.auth,
|
5710
5710
|
"internal-error"
|
5711
5711
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -5713,10 +5713,10 @@ class Cn {
|
|
5713
5713
|
}
|
5714
5714
|
}
|
5715
5715
|
resolve(e) {
|
5716
|
-
|
5716
|
+
R(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
5717
5717
|
}
|
5718
5718
|
reject(e) {
|
5719
|
-
|
5719
|
+
R(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
5720
5720
|
}
|
5721
5721
|
unregisterAndCleanUp() {
|
5722
5722
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
@@ -5738,10 +5738,10 @@ class Cn {
|
|
5738
5738
|
* See the License for the specific language governing permissions and
|
5739
5739
|
* limitations under the License.
|
5740
5740
|
*/
|
5741
|
-
const
|
5742
|
-
class
|
5741
|
+
const Vs = new te(2e3, 1e4);
|
5742
|
+
class F extends Cn {
|
5743
5743
|
constructor(e, t, r, i, s) {
|
5744
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
5744
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, F.currentPopupAction && F.currentPopupAction.cancel(), F.currentPopupAction = this;
|
5745
5745
|
}
|
5746
5746
|
async executeNotNull() {
|
5747
5747
|
const e = await this.execute();
|
@@ -5753,7 +5753,7 @@ class x extends Cn {
|
|
5753
5753
|
), e;
|
5754
5754
|
}
|
5755
5755
|
async onExecution() {
|
5756
|
-
|
5756
|
+
R(this.filter.length === 1, "Popup operations only handle one event");
|
5757
5757
|
const e = Qe();
|
5758
5758
|
this.authWindow = await this.resolver._openPopup(
|
5759
5759
|
this.auth,
|
@@ -5783,7 +5783,7 @@ class x extends Cn {
|
|
5783
5783
|
));
|
5784
5784
|
}
|
5785
5785
|
cleanUp() {
|
5786
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
5786
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, F.currentPopupAction = null;
|
5787
5787
|
}
|
5788
5788
|
pollUserCancellation() {
|
5789
5789
|
const e = () => {
|
@@ -5802,12 +5802,12 @@ class x extends Cn {
|
|
5802
5802
|
);
|
5803
5803
|
return;
|
5804
5804
|
}
|
5805
|
-
this.pollId = window.setTimeout(e,
|
5805
|
+
this.pollId = window.setTimeout(e, Vs.get());
|
5806
5806
|
};
|
5807
5807
|
e();
|
5808
5808
|
}
|
5809
5809
|
}
|
5810
|
-
|
5810
|
+
F.currentPopupAction = null;
|
5811
5811
|
/**
|
5812
5812
|
* @license
|
5813
5813
|
* Copyright 2020 Google LLC
|
@@ -5824,7 +5824,7 @@ x.currentPopupAction = null;
|
|
5824
5824
|
* See the License for the specific language governing permissions and
|
5825
5825
|
* limitations under the License.
|
5826
5826
|
*/
|
5827
|
-
const
|
5827
|
+
const Gs = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5828
5828
|
class zs extends Cn {
|
5829
5829
|
constructor(e, t, r = !1) {
|
5830
5830
|
super(e, [
|
@@ -5843,7 +5843,7 @@ class zs extends Cn {
|
|
5843
5843
|
let e = oe.get(this.auth._key());
|
5844
5844
|
if (!e) {
|
5845
5845
|
try {
|
5846
|
-
const r = await
|
5846
|
+
const r = await $s(this.resolver, this.auth) ? await super.execute() : null;
|
5847
5847
|
e = () => Promise.resolve(r);
|
5848
5848
|
} catch (t) {
|
5849
5849
|
e = () => Promise.reject(t);
|
@@ -5871,26 +5871,26 @@ class zs extends Cn {
|
|
5871
5871
|
cleanUp() {
|
5872
5872
|
}
|
5873
5873
|
}
|
5874
|
-
async function
|
5875
|
-
const t = Ys(e), r =
|
5874
|
+
async function $s(n, e) {
|
5875
|
+
const t = Ys(e), r = Zs(n);
|
5876
5876
|
if (!await r._isAvailable())
|
5877
5877
|
return !1;
|
5878
5878
|
const i = await r._get(t) === "true";
|
5879
5879
|
return await r._remove(t), i;
|
5880
5880
|
}
|
5881
|
-
function
|
5881
|
+
function Js(n, e) {
|
5882
5882
|
oe.set(n._key(), e);
|
5883
5883
|
}
|
5884
|
-
function
|
5884
|
+
function Zs(n) {
|
5885
5885
|
return E(n._redirectPersistence);
|
5886
5886
|
}
|
5887
5887
|
function Ys(n) {
|
5888
|
-
return ae(
|
5888
|
+
return ae(Gs, n.config.apiKey, n.name);
|
5889
5889
|
}
|
5890
5890
|
async function Xs(n, e, t = !1) {
|
5891
5891
|
if (I(n.app))
|
5892
5892
|
return Promise.reject(P(n));
|
5893
|
-
const r = Ie(n), i =
|
5893
|
+
const r = Ie(n), i = Fs(r, e), a = await new zs(r, i, t).execute();
|
5894
5894
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5895
5895
|
}
|
5896
5896
|
/**
|
@@ -5982,7 +5982,7 @@ function Qs(n) {
|
|
5982
5982
|
* limitations under the License.
|
5983
5983
|
*/
|
5984
5984
|
async function ea(n, e = {}) {
|
5985
|
-
return
|
5985
|
+
return $(n, "GET", "/v1/projects", e);
|
5986
5986
|
}
|
5987
5987
|
/**
|
5988
5988
|
* @license
|
@@ -6011,14 +6011,14 @@ async function ra(n) {
|
|
6011
6011
|
return;
|
6012
6012
|
} catch {
|
6013
6013
|
}
|
6014
|
-
|
6014
|
+
w(
|
6015
6015
|
n,
|
6016
6016
|
"unauthorized-domain"
|
6017
6017
|
/* AuthErrorCode.INVALID_ORIGIN */
|
6018
6018
|
);
|
6019
6019
|
}
|
6020
6020
|
function ia(n) {
|
6021
|
-
const e =
|
6021
|
+
const e = We(), { protocol: t, hostname: r } = new URL(e);
|
6022
6022
|
if (n.startsWith("chrome-extension://")) {
|
6023
6023
|
const a = new URL(n);
|
6024
6024
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
@@ -6144,7 +6144,7 @@ function pa(n) {
|
|
6144
6144
|
const s = n._getFrameworks();
|
6145
6145
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
6146
6146
|
}
|
6147
|
-
async function
|
6147
|
+
async function ma(n) {
|
6148
6148
|
const e = await oa(n), t = g().gapi;
|
6149
6149
|
return u(
|
6150
6150
|
t,
|
@@ -6193,7 +6193,7 @@ async function fa(n) {
|
|
6193
6193
|
* See the License for the specific language governing permissions and
|
6194
6194
|
* limitations under the License.
|
6195
6195
|
*/
|
6196
|
-
const
|
6196
|
+
const fa = {
|
6197
6197
|
location: "yes",
|
6198
6198
|
resizable: "yes",
|
6199
6199
|
statusbar: "yes",
|
@@ -6214,14 +6214,14 @@ class Nt {
|
|
6214
6214
|
function ba(n, e, t, r = _a, i = ga) {
|
6215
6215
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
6216
6216
|
let c = "";
|
6217
|
-
const o = Object.assign(Object.assign({},
|
6217
|
+
const o = Object.assign(Object.assign({}, fa), {
|
6218
6218
|
width: r.toString(),
|
6219
6219
|
height: i.toString(),
|
6220
6220
|
top: s,
|
6221
6221
|
left: a
|
6222
|
-
}), l =
|
6222
|
+
}), l = f().toLowerCase();
|
6223
6223
|
t && (c = hn(l) ? va : t), dn(l) && (e = e || Ia, o.scrollbars = "yes");
|
6224
|
-
const d = Object.entries(o).reduce((
|
6224
|
+
const d = Object.entries(o).reduce((m, [v, x]) => `${m}${v}=${x},`, "");
|
6225
6225
|
if (es(l) && c !== "_self")
|
6226
6226
|
return ya(e || "", c), new Nt(null);
|
6227
6227
|
const h = window.open(e || "", c, d);
|
@@ -6259,7 +6259,7 @@ function ya(n, e) {
|
|
6259
6259
|
* See the License for the specific language governing permissions and
|
6260
6260
|
* limitations under the License.
|
6261
6261
|
*/
|
6262
|
-
const Ea = "__/auth/handler",
|
6262
|
+
const Ea = "__/auth/handler", Ta = "emulator/auth/handler", wa = encodeURIComponent("fac");
|
6263
6263
|
async function Ct(n, e, t, r, i, s) {
|
6264
6264
|
u(
|
6265
6265
|
n.config.authDomain,
|
@@ -6281,7 +6281,7 @@ async function Ct(n, e, t, r, i, s) {
|
|
6281
6281
|
eventId: i
|
6282
6282
|
};
|
6283
6283
|
if (e instanceof yn) {
|
6284
|
-
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "",
|
6284
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", wr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
6285
6285
|
for (const [d, h] of Object.entries({}))
|
6286
6286
|
a[d] = h;
|
6287
6287
|
}
|
@@ -6293,11 +6293,11 @@ async function Ct(n, e, t, r, i, s) {
|
|
6293
6293
|
const c = a;
|
6294
6294
|
for (const d of Object.keys(c))
|
6295
6295
|
c[d] === void 0 && delete c[d];
|
6296
|
-
const o = await n._getAppCheckToken(), l = o ? `#${
|
6297
|
-
return `${
|
6296
|
+
const o = await n._getAppCheckToken(), l = o ? `#${wa}=${encodeURIComponent(o)}` : "";
|
6297
|
+
return `${Ra(n)}?${Q(c).slice(1)}${l}`;
|
6298
6298
|
}
|
6299
|
-
function
|
6300
|
-
return n.emulator ? Ye(n,
|
6299
|
+
function Ra({ config: n }) {
|
6300
|
+
return n.emulator ? Ye(n, Ta) : `https://${n.authDomain}/${Ea}`;
|
6301
6301
|
}
|
6302
6302
|
/**
|
6303
6303
|
* @license
|
@@ -6316,21 +6316,21 @@ function ka({ config: n }) {
|
|
6316
6316
|
* limitations under the License.
|
6317
6317
|
*/
|
6318
6318
|
const De = "webStorageSupport";
|
6319
|
-
class
|
6319
|
+
class ka {
|
6320
6320
|
constructor() {
|
6321
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
6321
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Xs, this._overrideRedirectResult = Js;
|
6322
6322
|
}
|
6323
6323
|
// Wrapping in async even though we don't await anywhere in order
|
6324
6324
|
// to make sure errors are raised as promise rejections
|
6325
6325
|
async _openPopup(e, t, r, i) {
|
6326
6326
|
var s;
|
6327
|
-
|
6328
|
-
const a = await Ct(e, t, r,
|
6327
|
+
R((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6328
|
+
const a = await Ct(e, t, r, We(), i);
|
6329
6329
|
return ba(e, a, Qe());
|
6330
6330
|
}
|
6331
6331
|
async _openRedirect(e, t, r, i) {
|
6332
6332
|
await this._originValidation(e);
|
6333
|
-
const s = await Ct(e, t, r,
|
6333
|
+
const s = await Ct(e, t, r, We(), i);
|
6334
6334
|
return Os(s), new Promise(() => {
|
6335
6335
|
});
|
6336
6336
|
}
|
@@ -6338,7 +6338,7 @@ class Ra {
|
|
6338
6338
|
const t = e._key();
|
6339
6339
|
if (this.eventManagers[t]) {
|
6340
6340
|
const { manager: i, promise: s } = this.eventManagers[t];
|
6341
|
-
return i ? Promise.resolve(i) : (
|
6341
|
+
return i ? Promise.resolve(i) : (R(s, "If manager is not set, promise should be"), s);
|
6342
6342
|
}
|
6343
6343
|
const r = this.initAndGetManager(e);
|
6344
6344
|
return this.eventManagers[t] = { promise: r }, r.catch(() => {
|
@@ -6346,7 +6346,7 @@ class Ra {
|
|
6346
6346
|
}), r;
|
6347
6347
|
}
|
6348
6348
|
async initAndGetManager(e) {
|
6349
|
-
const t = await
|
6349
|
+
const t = await ma(e), r = new qs(e);
|
6350
6350
|
return t.register("authEvent", (i) => (u(
|
6351
6351
|
i == null ? void 0 : i.authEvent,
|
6352
6352
|
e,
|
@@ -6361,7 +6361,7 @@ class Ra {
|
|
6361
6361
|
this.iframes[e._key()].send(De, { type: De }, (i) => {
|
6362
6362
|
var s;
|
6363
6363
|
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
|
6364
|
-
a !== void 0 && t(!!a),
|
6364
|
+
a !== void 0 && t(!!a), w(
|
6365
6365
|
e,
|
6366
6366
|
"internal-error"
|
6367
6367
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -6376,7 +6376,7 @@ class Ra {
|
|
6376
6376
|
return gn() || un() || Ke();
|
6377
6377
|
}
|
6378
6378
|
}
|
6379
|
-
const Sa =
|
6379
|
+
const Sa = ka;
|
6380
6380
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6381
6381
|
/**
|
6382
6382
|
* @license
|
@@ -6462,7 +6462,7 @@ function Oa(n) {
|
|
6462
6462
|
}
|
6463
6463
|
}
|
6464
6464
|
function Na(n) {
|
6465
|
-
Y(new
|
6465
|
+
Y(new G(
|
6466
6466
|
"auth",
|
6467
6467
|
(e, { options: t }) => {
|
6468
6468
|
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
@@ -6488,7 +6488,7 @@ function Na(n) {
|
|
6488
6488
|
"auth-internal"
|
6489
6489
|
/* _ComponentName.AUTH_INTERNAL */
|
6490
6490
|
).initialize();
|
6491
|
-
})), Y(new
|
6491
|
+
})), Y(new G(
|
6492
6492
|
"auth-internal",
|
6493
6493
|
(e) => {
|
6494
6494
|
const t = Ie(e.getProvider(
|
@@ -6502,7 +6502,7 @@ function Na(n) {
|
|
6502
6502
|
).setInstantiationMode(
|
6503
6503
|
"EXPLICIT"
|
6504
6504
|
/* InstantiationMode.EXPLICIT */
|
6505
|
-
)),
|
6505
|
+
)), W(Dt, Pt, Oa(n)), W(Dt, Pt, "esm2017");
|
6506
6506
|
}
|
6507
6507
|
/**
|
6508
6508
|
* @license
|
@@ -6534,26 +6534,26 @@ const Pa = (n) => async (e) => {
|
|
6534
6534
|
} : {}
|
6535
6535
|
}));
|
6536
6536
|
};
|
6537
|
-
function Ma(n =
|
6537
|
+
function Ma(n = ki()) {
|
6538
6538
|
const e = Yt(n, "auth");
|
6539
6539
|
if (e.isInitialized())
|
6540
6540
|
return e.getImmediate();
|
6541
6541
|
const t = us(n, {
|
6542
6542
|
popupRedirectResolver: Sa,
|
6543
6543
|
persistence: [
|
6544
|
-
|
6545
|
-
|
6546
|
-
|
6544
|
+
xs,
|
6545
|
+
ks,
|
6546
|
+
kn
|
6547
6547
|
]
|
6548
6548
|
}), r = zt("authTokenSyncURL");
|
6549
6549
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6550
6550
|
const s = new URL(r, location.origin);
|
6551
6551
|
if (location.origin === s.origin) {
|
6552
6552
|
const a = Pa(s.toString());
|
6553
|
-
|
6553
|
+
Ts(t, a, () => a(t.currentUser)), Es(t, (c) => a(c));
|
6554
6554
|
}
|
6555
6555
|
}
|
6556
|
-
const i =
|
6556
|
+
const i = Vt("auth");
|
6557
6557
|
return i && ps(t, `http://${i}`), t;
|
6558
6558
|
}
|
6559
6559
|
function La() {
|
@@ -6583,7 +6583,7 @@ Na(
|
|
6583
6583
|
);
|
6584
6584
|
const Ua = Ln({
|
6585
6585
|
history: Un(),
|
6586
|
-
routes: [...
|
6586
|
+
routes: [...Ge, ...le]
|
6587
6587
|
});
|
6588
6588
|
let Pe, Me;
|
6589
6589
|
Ua.beforeEach(async (n) => {
|
@@ -6593,20 +6593,20 @@ Ua.beforeEach(async (n) => {
|
|
6593
6593
|
currentBusiness: r,
|
6594
6594
|
readRestaurants: i,
|
6595
6595
|
changeRestaurant: s
|
6596
|
-
} =
|
6596
|
+
} = Ve();
|
6597
6597
|
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6598
|
-
const c =
|
6598
|
+
const c = J(e, (o) => {
|
6599
6599
|
var l;
|
6600
6600
|
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6601
6601
|
});
|
6602
6602
|
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6603
6603
|
new Promise(async (a) => {
|
6604
|
-
const c =
|
6604
|
+
const c = J(r, (o) => {
|
6605
6605
|
o && (c(), a(!0));
|
6606
6606
|
});
|
6607
6607
|
}),
|
6608
6608
|
new Promise(async (a) => {
|
6609
|
-
const c =
|
6609
|
+
const c = J(t, (l) => {
|
6610
6610
|
l && (c(), a(!0));
|
6611
6611
|
}), o = await i();
|
6612
6612
|
await s(o == null ? void 0 : o.at(0));
|
@@ -6616,14 +6616,14 @@ Ua.beforeEach(async (n) => {
|
|
6616
6616
|
const Ba = /* @__PURE__ */ Ut({
|
6617
6617
|
__name: "AppSidebar",
|
6618
6618
|
setup(n) {
|
6619
|
-
const e =
|
6620
|
-
|
6619
|
+
const e = Ve(), t = Bn(), { t: r } = Gn(), i = Fn(t.currentRoute.value.name);
|
6620
|
+
J(t.currentRoute, () => {
|
6621
6621
|
let l = t.currentRoute.value.name;
|
6622
6622
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
6623
6623
|
});
|
6624
|
-
const s =
|
6625
|
-
var
|
6626
|
-
if (!((
|
6624
|
+
const s = Ge.map((l) => {
|
6625
|
+
var m;
|
6626
|
+
if (!((m = l.meta) != null && m.sidebarDisplay))
|
6627
6627
|
return;
|
6628
6628
|
const d = l.meta.sidebarDisplay, h = {
|
6629
6629
|
label: d.startsWith("i18n:") ? r(d.replaceAll("i18n:", "")) : d,
|
@@ -6633,7 +6633,7 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6633
6633
|
return t.push({ name: l.name });
|
6634
6634
|
}
|
6635
6635
|
};
|
6636
|
-
return l.meta.sidebarNew && (h.badge = () =>
|
6636
|
+
return l.meta.sidebarNew && (h.badge = () => Wn($n.FmPill, { label: "New" })), h;
|
6637
6637
|
}).filter((l) => !!l), a = le.map((l) => {
|
6638
6638
|
var d;
|
6639
6639
|
if ((d = l.meta) != null && d.sidebarDisplay && !l.meta.section)
|
@@ -6690,54 +6690,54 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6690
6690
|
});
|
6691
6691
|
return (l, d) => {
|
6692
6692
|
const h = Bt("FmCollapsibleTabs");
|
6693
|
-
return
|
6693
|
+
return xt(), Ft(h, {
|
6694
6694
|
modelValue: i.value,
|
6695
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
6695
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => i.value = m),
|
6696
6696
|
items: o.value,
|
6697
6697
|
class: "py-16 px-8 w-[240px]"
|
6698
6698
|
}, null, 8, ["modelValue", "items"]);
|
6699
6699
|
};
|
6700
6700
|
}
|
6701
6701
|
});
|
6702
|
-
var
|
6703
|
-
const
|
6702
|
+
var xa = { authClientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc" };
|
6703
|
+
const $a = /* @__PURE__ */ Ut({
|
6704
6704
|
__name: "App",
|
6705
6705
|
setup(n) {
|
6706
|
-
const { state: e } = sr(), t =
|
6706
|
+
const { state: e } = sr(), t = Ve(), r = xn(), i = Xt(xa.firebase);
|
6707
6707
|
async function s() {
|
6708
6708
|
const a = t.sessionUser.value;
|
6709
6709
|
if (!a || !a.token) return;
|
6710
6710
|
const c = await a.getCustomToken(), o = Ma(i);
|
6711
6711
|
await ys(o, c);
|
6712
6712
|
}
|
6713
|
-
return s(),
|
6713
|
+
return s(), J(t.sessionUser, s), jn(() => {
|
6714
6714
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6715
|
-
}),
|
6715
|
+
}), Hn(() => {
|
6716
6716
|
t.registerSidebarComponent(Ba);
|
6717
6717
|
}), (a, c) => {
|
6718
6718
|
const o = Bt("RouterView");
|
6719
|
-
return
|
6720
|
-
key:
|
6719
|
+
return xt(), Ft(o, {
|
6720
|
+
key: Vn(r).path
|
6721
6721
|
});
|
6722
6722
|
};
|
6723
6723
|
}
|
6724
|
-
}),
|
6724
|
+
}), Ja = {
|
6725
6725
|
"en-US": qn,
|
6726
6726
|
"zh-CN": ir
|
6727
|
-
},
|
6727
|
+
}, Za = [...le, ...Ge];
|
6728
6728
|
export {
|
6729
|
-
|
6729
|
+
G as C,
|
6730
6730
|
M as F,
|
6731
6731
|
ee as S,
|
6732
6732
|
Y as _,
|
6733
6733
|
Yt as a,
|
6734
|
-
|
6735
|
-
|
6734
|
+
Ga as b,
|
6735
|
+
ki as c,
|
6736
6736
|
za as d,
|
6737
6737
|
gt as e,
|
6738
|
-
|
6738
|
+
Za as f,
|
6739
6739
|
z as g,
|
6740
|
-
|
6741
|
-
|
6742
|
-
|
6740
|
+
$a as h,
|
6741
|
+
Ja as i,
|
6742
|
+
W as r
|
6743
6743
|
};
|