@feedmepos/mf-payment 1.1.0-beta.2 → 1.1.0-beta.3
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-BpMu58oE.js → PayoutAccount-Dm__V5FS.js} +5 -5
- package/dist/{PayoutAccount-z-gdodfR.js → PayoutAccount-aXUZqVC4.js} +3 -3
- package/dist/{PayoutAccountSetting-jZJu4WWL.js → PayoutAccountSetting-EbYjEXDF.js} +3 -3
- package/dist/{Restaurant-DfBX5uPS.js → Restaurant-DLM9C8nc.js} +4 -4
- package/dist/{RestaurantSetting-KPtRoif-.js → RestaurantSetting-GoDOJmXC.js} +3 -3
- package/dist/{Settlement-DbMQAA0_.js → Settlement-BCGCz02p.js} +3 -3
- package/dist/{Settlement-smC2PDKA.js → Settlement-CsLlypA1.js} +3 -3
- package/dist/{SettlementTransactions-Bs8Il-GO.js → SettlementTransactions-BXDX1-4U.js} +3 -3
- package/dist/{SettlementTransactions-Cw9DnODr.js → SettlementTransactions-DtbZ2BMA.js} +3 -3
- package/dist/{Terminal-HLOGtr0x.js → Terminal-BhZitu-W.js} +5 -5
- package/dist/{TerminalSetting-DraCszpQ.js → TerminalSetting-lTAsTN8h.js} +3 -3
- package/dist/{Transaction-_CB4VTT9.js → Transaction-AwhwSbRY.js} +5 -5
- package/dist/{Transaction-B8cHQbbP.js → Transaction-CCTdVAZg.js} +6 -6
- package/dist/{TransactionOld-BhzUSu5h.js → TransactionOld-DLjym0JG.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-UcnQKwQ5.js → TransactionTable.vue_vue_type_script_setup_true_lang-xSb40MKu.js} +57 -52
- package/dist/{app-DWRPKvx2.js → app-348rfspt.js} +669 -655
- package/dist/app.d.ts +14 -0
- package/dist/app.js +1 -1
- package/dist/{assets-BImh8bhR.js → assets-CizBCu1u.js} +57 -43
- package/dist/{grafana-CPOGSE20.js → grafana-NU2yqPXT.js} +1 -1
- package/dist/{index-D5DlMaeB.js → index-BDCzfWFu.js} +1 -1
- package/dist/{index-DtT3I2PI.js → index-D9Cv_ZfD.js} +1 -1
- package/dist/{index-CNZFZxie.js → index-DEvTHjDK.js} +2812 -2814
- package/dist/{index-eznEOmAe.js → index-Dvg8rPAD.js} +1 -1
- package/dist/{index-DuSw-EaU.js → index-GlBLcdqs.js} +1 -1
- package/dist/{index-8eCaI4jI.js → index-OD8n4-_f.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DNXWZt8k.js → index.vue_vue_type_script_setup_true_lang-D-xbKBxe.js} +1 -1
- package/dist/model/transaction.d.ts +2 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-CjDkY3wf.js → payout-account-5sqoL9UC.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,14 +1,19 @@
|
|
1
1
|
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as Fn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as
|
3
|
-
import { useCoreStore as
|
4
|
-
import { defineStore as
|
5
|
-
import { components as
|
2
|
+
import { computed as Lt, watch as Z, defineComponent as Ut, ref as xn, resolveComponent as Bt, openBlock as Ft, createBlock as xt, h as Hn, onMounted as jn, onBeforeMount as Gn, unref as Vn } from "vue";
|
3
|
+
import { useCoreStore as Ve, useI18n as Wn } from "@feedmepos/mf-common";
|
4
|
+
import { defineStore as zn } from "pinia";
|
5
|
+
import { components as $n } from "@feedmepos/ui-library";
|
6
6
|
const Zn = {
|
7
7
|
select: "Select filter entity",
|
8
8
|
restaurant: "Restaurant",
|
9
9
|
device: "Device",
|
10
10
|
payout_account: "Payout Account"
|
11
|
-
},
|
11
|
+
}, Jn = {
|
12
|
+
payout_account: "Payout Account",
|
13
|
+
transaction: "Transactions",
|
14
|
+
"transaction-new": "Transactions",
|
15
|
+
settlement: "Settlements"
|
16
|
+
}, Yn = {
|
12
17
|
title: "Settlements",
|
13
18
|
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
14
19
|
export: "Export",
|
@@ -65,7 +70,7 @@ const Zn = {
|
|
65
70
|
settlement_amount: "Settlement Amount"
|
66
71
|
}
|
67
72
|
}
|
68
|
-
},
|
73
|
+
}, Xn = {
|
69
74
|
title: "Transactions",
|
70
75
|
description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
|
71
76
|
restaurant: "Restaurant",
|
@@ -85,11 +90,12 @@ const Zn = {
|
|
85
90
|
method: "Method",
|
86
91
|
type: "Type",
|
87
92
|
status: "Status",
|
93
|
+
source: "Source",
|
88
94
|
transaction_at: "Transaction At",
|
89
95
|
sales_amount: "Sales Amount",
|
90
96
|
actions: "Actions"
|
91
97
|
}
|
92
|
-
},
|
98
|
+
}, Kn = {
|
93
99
|
title: "Payout Account",
|
94
100
|
description: "A Payout Account is an account used to receive payments or disbursements, such as earnings or refunds, typically linked to a bank.",
|
95
101
|
button: {
|
@@ -134,17 +140,23 @@ const Zn = {
|
|
134
140
|
document: "Legal Documents"
|
135
141
|
}
|
136
142
|
}
|
137
|
-
},
|
143
|
+
}, qn = {
|
138
144
|
components: Zn,
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
145
|
+
routes: Jn,
|
146
|
+
settlements: Yn,
|
147
|
+
transactions: Xn,
|
148
|
+
payout_account: Kn
|
149
|
+
}, Qn = {
|
143
150
|
select: "选择筛选对象",
|
144
151
|
restaurant: "餐厅",
|
145
152
|
device: "设备",
|
146
153
|
payout_account: "结算账户"
|
147
|
-
},
|
154
|
+
}, er = {
|
155
|
+
payout_account: "结算账户",
|
156
|
+
transaction: "交易订单",
|
157
|
+
"transaction-new": "交易订单",
|
158
|
+
settlement: "交易结算"
|
159
|
+
}, tr = {
|
148
160
|
title: "交易结算",
|
149
161
|
description: "交易结算是金融交易的最终处理,交易流水的详细,完成付款的资金转移。",
|
150
162
|
export: "导出",
|
@@ -201,7 +213,7 @@ const Zn = {
|
|
201
213
|
settlement_amount: "结算金额"
|
202
214
|
}
|
203
215
|
}
|
204
|
-
},
|
216
|
+
}, nr = {
|
205
217
|
title: "交易订单",
|
206
218
|
description: "交易订单是使用卡或数字钱包等电子方式通过互联网进行的购买或付款。",
|
207
219
|
restaurant: "餐厅",
|
@@ -221,11 +233,12 @@ const Zn = {
|
|
221
233
|
method: "支付方法",
|
222
234
|
type: "支付类型",
|
223
235
|
status: "状态",
|
236
|
+
source: "源",
|
224
237
|
transaction_at: "交易时间",
|
225
238
|
sales_amount: "交易金额",
|
226
239
|
actions: "操作"
|
227
240
|
}
|
228
|
-
},
|
241
|
+
}, rr = {
|
229
242
|
title: "结算账户",
|
230
243
|
description: "结算账户是用于接收付款或支出的账户,例如收入或退款,通常与银行关联。",
|
231
244
|
button: {
|
@@ -270,11 +283,12 @@ const Zn = {
|
|
270
283
|
document: "法律文件"
|
271
284
|
}
|
272
285
|
}
|
273
|
-
},
|
274
|
-
components:
|
275
|
-
|
276
|
-
|
277
|
-
|
286
|
+
}, ir = {
|
287
|
+
components: Qn,
|
288
|
+
routes: er,
|
289
|
+
settlements: tr,
|
290
|
+
transactions: nr,
|
291
|
+
payout_account: rr
|
278
292
|
}, le = [
|
279
293
|
{
|
280
294
|
path: "/admin/restaurants",
|
@@ -283,7 +297,7 @@ const Zn = {
|
|
283
297
|
sidebarDisplay: "Restaurants",
|
284
298
|
section: "payment-gateway"
|
285
299
|
},
|
286
|
-
component: () => import("./Restaurant-
|
300
|
+
component: () => import("./Restaurant-DLM9C8nc.js")
|
287
301
|
},
|
288
302
|
{
|
289
303
|
path: "/admin/restaurants/:restaurantId",
|
@@ -292,7 +306,7 @@ const Zn = {
|
|
292
306
|
meta: {
|
293
307
|
parent: "mf-payment-admin.restaurant"
|
294
308
|
},
|
295
|
-
component: () => import("./RestaurantSetting-
|
309
|
+
component: () => import("./RestaurantSetting-GoDOJmXC.js")
|
296
310
|
},
|
297
311
|
{
|
298
312
|
path: "/admin/payout-accounts",
|
@@ -301,7 +315,7 @@ const Zn = {
|
|
301
315
|
sidebarDisplay: "Payout Accounts",
|
302
316
|
section: "payment-gateway"
|
303
317
|
},
|
304
|
-
component: () => import("./PayoutAccount-
|
318
|
+
component: () => import("./PayoutAccount-Dm__V5FS.js")
|
305
319
|
},
|
306
320
|
{
|
307
321
|
path: "/admin/payout-accounts/:accountId",
|
@@ -310,7 +324,7 @@ const Zn = {
|
|
310
324
|
meta: {
|
311
325
|
parent: "mf-payment-admin.payout-account"
|
312
326
|
},
|
313
|
-
component: () => import("./PayoutAccountSetting-
|
327
|
+
component: () => import("./PayoutAccountSetting-EbYjEXDF.js")
|
314
328
|
},
|
315
329
|
{
|
316
330
|
path: "/admin/terminal/pos",
|
@@ -319,7 +333,7 @@ const Zn = {
|
|
319
333
|
sidebarDisplay: "POS",
|
320
334
|
section: "device"
|
321
335
|
},
|
322
|
-
component: () => import("./Terminal-
|
336
|
+
component: () => import("./Terminal-BhZitu-W.js"),
|
323
337
|
props: {
|
324
338
|
type: "POS"
|
325
339
|
}
|
@@ -331,7 +345,7 @@ const Zn = {
|
|
331
345
|
sidebarDisplay: "Kiosks",
|
332
346
|
section: "device"
|
333
347
|
},
|
334
|
-
component: () => import("./Terminal-
|
348
|
+
component: () => import("./Terminal-BhZitu-W.js"),
|
335
349
|
props: {
|
336
350
|
type: "KIOSK"
|
337
351
|
}
|
@@ -343,7 +357,7 @@ const Zn = {
|
|
343
357
|
sidebarDisplay: "Terminals",
|
344
358
|
section: "device"
|
345
359
|
},
|
346
|
-
component: () => import("./Terminal-
|
360
|
+
component: () => import("./Terminal-BhZitu-W.js"),
|
347
361
|
props: {
|
348
362
|
type: "TERMINAL"
|
349
363
|
}
|
@@ -355,7 +369,7 @@ const Zn = {
|
|
355
369
|
meta: {
|
356
370
|
parent: "mf-payment-admin.pos"
|
357
371
|
},
|
358
|
-
component: () => import("./TerminalSetting-
|
372
|
+
component: () => import("./TerminalSetting-lTAsTN8h.js")
|
359
373
|
},
|
360
374
|
{
|
361
375
|
path: "/admin/terminal/kiosk/:terminalId",
|
@@ -364,7 +378,7 @@ const Zn = {
|
|
364
378
|
meta: {
|
365
379
|
parent: "mf-payment-admin.kiosk"
|
366
380
|
},
|
367
|
-
component: () => import("./TerminalSetting-
|
381
|
+
component: () => import("./TerminalSetting-lTAsTN8h.js")
|
368
382
|
},
|
369
383
|
{
|
370
384
|
path: "/admin/terminal/terminal/:terminalId",
|
@@ -373,7 +387,7 @@ const Zn = {
|
|
373
387
|
meta: {
|
374
388
|
parent: "mf-payment-admin.terminal"
|
375
389
|
},
|
376
|
-
component: () => import("./TerminalSetting-
|
390
|
+
component: () => import("./TerminalSetting-lTAsTN8h.js")
|
377
391
|
},
|
378
392
|
{
|
379
393
|
path: "/admin/transaction",
|
@@ -381,7 +395,7 @@ const Zn = {
|
|
381
395
|
meta: {
|
382
396
|
sidebarDisplay: "Transactions"
|
383
397
|
},
|
384
|
-
component: () => import("./Transaction-
|
398
|
+
component: () => import("./Transaction-AwhwSbRY.js")
|
385
399
|
},
|
386
400
|
{
|
387
401
|
path: "/admin/settlement",
|
@@ -389,7 +403,7 @@ const Zn = {
|
|
389
403
|
meta: {
|
390
404
|
sidebarDisplay: "Settlements"
|
391
405
|
},
|
392
|
-
component: () => import("./Settlement-
|
406
|
+
component: () => import("./Settlement-BCGCz02p.js")
|
393
407
|
},
|
394
408
|
{
|
395
409
|
path: "/admin/settlement/:settlementId",
|
@@ -398,7 +412,7 @@ const Zn = {
|
|
398
412
|
meta: {
|
399
413
|
parent: "mf-payment-admin.settlement"
|
400
414
|
},
|
401
|
-
component: () => import("./SettlementTransactions-
|
415
|
+
component: () => import("./SettlementTransactions-BXDX1-4U.js")
|
402
416
|
}
|
403
417
|
], We = [
|
404
418
|
{
|
@@ -408,46 +422,46 @@ const Zn = {
|
|
408
422
|
{
|
409
423
|
path: "/payout-account",
|
410
424
|
name: "mf-payment-payout-account",
|
411
|
-
component: () => import("./PayoutAccount-
|
425
|
+
component: () => import("./PayoutAccount-aXUZqVC4.js"),
|
412
426
|
meta: {
|
413
|
-
sidebarDisplay: "
|
427
|
+
sidebarDisplay: "i18n:routes.payout_account"
|
414
428
|
}
|
415
429
|
},
|
416
430
|
{
|
417
431
|
path: "/transaction-old",
|
418
432
|
name: "mf-payment-old-transaction",
|
419
|
-
component: () => import("./TransactionOld-
|
433
|
+
component: () => import("./TransactionOld-DLjym0JG.js"),
|
420
434
|
meta: {
|
421
|
-
sidebarDisplay: "
|
435
|
+
sidebarDisplay: "i18n:routes.transaction"
|
422
436
|
}
|
423
437
|
},
|
424
438
|
{
|
425
439
|
path: "/transaction",
|
426
440
|
name: "mf-payment-transaction",
|
427
|
-
component: () => import("./Transaction-
|
441
|
+
component: () => import("./Transaction-CCTdVAZg.js"),
|
428
442
|
meta: {
|
429
|
-
sidebarDisplay: "
|
443
|
+
sidebarDisplay: "i18n:routes.transaction-new",
|
430
444
|
sidebarNew: !0
|
431
445
|
}
|
432
446
|
},
|
433
447
|
{
|
434
448
|
path: "/settlement",
|
435
449
|
name: "mf-payment-settlement",
|
436
|
-
component: () => import("./Settlement-
|
450
|
+
component: () => import("./Settlement-CsLlypA1.js"),
|
437
451
|
meta: {
|
438
|
-
sidebarDisplay: "
|
452
|
+
sidebarDisplay: "i18n:routes.settlement"
|
439
453
|
}
|
440
454
|
},
|
441
455
|
{
|
442
456
|
path: "/settlement/:settlementId",
|
443
457
|
name: "mf-payment-settlement-transaction",
|
444
458
|
props: !0,
|
445
|
-
component: () => import("./SettlementTransactions-
|
459
|
+
component: () => import("./SettlementTransactions-DtbZ2BMA.js"),
|
446
460
|
meta: {
|
447
461
|
parent: "mf-payment-settlement"
|
448
462
|
}
|
449
463
|
}
|
450
|
-
],
|
464
|
+
], sr = zn("mf-payment-iframe", () => {
|
451
465
|
const n = {
|
452
466
|
isIframe: !1
|
453
467
|
}, e = Lt(() => n);
|
@@ -459,7 +473,7 @@ const Zn = {
|
|
459
473
|
init: t
|
460
474
|
};
|
461
475
|
});
|
462
|
-
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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_AfQtBhC9yphVOmKZeH0pJdxjLcHRqc1bc4es", 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: "714", 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: "20250309.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.7/x64", JOURNAL_STREAM: "8:6138", 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: "13922172776", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "767e7afb433e255e9404dd55eccc04cc9f009b48", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6N2YwMDhiMzQtZjBjYi00ZDg1LTgzNjctMzEyZjgxODg5MzE2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI5IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46N2YwMDhiMzQtZjBjYi00ZDg1LTgzNjctMzEyZjgxODg5MzE2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI5IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNmVjYmIwZjktMWE2Yy00NDU1LWFjOGUtNGMwNDc0NDg5ODRhIiwic2lkIjoiN2FlYmIzODUtNzgzZi00ZmJlLThmOWEtZjIzOTZhNzc1MWI2IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjc2N2U3YWZiNDMzZTI1NWU5NDA0ZGQ1NWVjY2MwNGNjOWYwMDliNDhcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5MjIxNzI3NzZcIixcInJ1bl9udW1iZXJcIjpcIjE0NlwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI3NjdlN2FmYjQzM2UyNTVlOTQwNGRkNTVlY2NjMDRjYzlmMDA5YjQ4XCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3NjdlN2FmYjQzM2UyNTVlOTQwNGRkNTVlY2NjMDRjYzlmMDA5YjQ4XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI3ZjAwOGIzNC1mMGNiLTRkODUtODM2Ny0zMTJmODE4ODkzMTYuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIyOTY5NzcsImV4cCI6MTc0MjMxOTc3N30.OOKMNsFraeUCJlpmZD3gTAxTdf9lHCZlfj_HEtzA2tRA4bGdidLdMlsXmORBZ5j06lB4MVjBv-ZQQOVCMvu5wx5lqBPUMiYUxzTGKG20liT23NW58a8CGKaEjv_Vq4w3YZVIniaP9PS2qHvzBmvwofdmUh_eVv4-LQhMOw7JWCArqDWgwsSa2C63A1xIS-ZFUuPlsX60sypeQ7_0jhRnLG3xKVyLAgQyTHcZY0nheUx2MXCmaeA26Uy8uMxdTLqHzAQHwciBp1TzHob7PEqFlLJauiQzxUf6v6TfaSJEx2rRk9OV4kAZNHeYLPGECI_q8Hhod2L9zDBWDr6tZ4YjtQ", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742297629522-0.3002916058976224:/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--1742297629366-0.5060425940480151:/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--1742297629205-0.3115261064996848:/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_df4fcce8-fcd8-4515-9a1f-056ea32ebc67", INVOCATION_ID: "a2f68627a15c4711a18929f7f7a1ad40", 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: "146", 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 39", 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.0-beta.2", 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: "767e7afb433e255e9404dd55eccc04cc9f009b48", 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_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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/7f008b34-f0cb-4d85-8367-312f81889316/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_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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_87b15eec-8de8-4c91-819c-f9fbabc7691f", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.23", 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" };
|
476
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_20c3b992-0c0b-48f4-b338-8135edda858a", 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_20c3b992-0c0b-48f4-b338-8135edda858a", 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_H8wAiyKR2krVZ68F529PuvlSQb9ph8253aox", 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: "711", 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: "20250309.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.7/x64", JOURNAL_STREAM: "8:6112", 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: "13941013784", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "30c75d63971e098a18ad08904b77de0678baf9a2", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NDEwNjdlMjQtMmJmOS00YmNkLWJkMzktNDhhYjNhOWI3M2IxOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzMxIERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NDEwNjdlMjQtMmJmOS00YmNkLWJkMzktNDhhYjNhOWI3M2IxOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzMxIiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiYzkzNmZkZTItNjE3Ni00YTYzLWIwMjAtNDdiNDg0MmQwYmVlIiwic2lkIjoiM2QxYzdlMmMtNWRmMi00ZjJiLWJhODctYmI2N2Q1NDUyNzY1IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjMwYzc1ZDYzOTcxZTA5OGExOGFkMDg5MDRiNzdkZTA2NzhiYWY5YTJcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5NDEwMTM3ODRcIixcInJ1bl9udW1iZXJcIjpcIjE0OFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCIzMGM3NWQ2Mzk3MWUwOThhMThhZDA4OTA0Yjc3ZGUwNjc4YmFmOWEyXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIzMGM3NWQ2Mzk3MWUwOThhMThhZDA4OTA0Yjc3ZGUwNjc4YmFmOWEyXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI0MTA2N2UyNC0yYmY5LTRiY2QtYmQzOS00OGFiM2E5YjczYjEuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIzNjgzMjcsImV4cCI6MTc0MjM5MTEyN30.XC7CZ_VGNrLq55bYEEq7e-ojhCf1lF446YSE6C2vtd1wXvNjObNYeqdAugQF6kKj_t2ZQJ8OE9y9I91teFpl6fHF0hxsYNqfB9r2cPRquG9SsZNRWwIBmE0YLb4l6ysY0OTIbqhACBhuF-QyX5_iP1T3ibqV-z5_pivOikRNd-qwtmTXE6sxkzNZSR7arkoW4EGpuSuYdJiiIS8gG7qur6M2ThYDzjz8eYKbJQuSkQImfYj_HU4Zyq18Vmrulh-VoEOo2k0bYAACuP-ccZB4JCNBTtxJDf1DsMe0eszwsuGJ_QHtu-nPDNHYiWP33RqcNKjZZHZsSi4FFwVdGVTZQQ", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742368971170-0.652880635143968:/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--1742368971012-0.383490901966258:/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--1742368970853-0.8311704939347975:/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_fd81da49-e087-4a82-a12e-d6911575529d", INVOCATION_ID: "f796425da39547be8f810ee2f7dc6277", 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: "148", 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 404", 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.0-beta.3", 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: "30c75d63971e098a18ad08904b77de0678baf9a2", 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_20c3b992-0c0b-48f4-b338-8135edda858a", 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/41067e24-2bf9-4bcd-bd39-48ab3a9b73b1/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_20c3b992-0c0b-48f4-b338-8135edda858a", 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_20c3b992-0c0b-48f4-b338-8135edda858a", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.23", 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" };
|
463
477
|
/**
|
464
478
|
* @license
|
465
479
|
* Copyright 2017 Google LLC
|
@@ -476,7 +490,7 @@ var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
476
490
|
* See the License for the specific language governing permissions and
|
477
491
|
* limitations under the License.
|
478
492
|
*/
|
479
|
-
const
|
493
|
+
const Ht = function(n) {
|
480
494
|
const e = [];
|
481
495
|
let t = 0;
|
482
496
|
for (let r = 0; r < n.length; r++) {
|
@@ -484,7 +498,7 @@ const jt = function(n) {
|
|
484
498
|
i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
|
485
499
|
}
|
486
500
|
return e;
|
487
|
-
},
|
501
|
+
}, ar = function(n) {
|
488
502
|
const e = [];
|
489
503
|
let t = 0, r = 0;
|
490
504
|
for (; t < n.length; ) {
|
@@ -503,7 +517,7 @@ const jt = function(n) {
|
|
503
517
|
}
|
504
518
|
}
|
505
519
|
return e.join("");
|
506
|
-
},
|
520
|
+
}, jt = {
|
507
521
|
/**
|
508
522
|
* Maps bytes to characters.
|
509
523
|
*/
|
@@ -562,9 +576,9 @@ const jt = function(n) {
|
|
562
576
|
this.init_();
|
563
577
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
564
578
|
for (let i = 0; i < n.length; i += 3) {
|
565
|
-
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,
|
579
|
+
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;
|
566
580
|
let m = (c & 15) << 2 | l >> 6, v = l & 63;
|
567
|
-
o || (v = 64, a || (m = 64)), r.push(t[
|
581
|
+
o || (v = 64, a || (m = 64)), r.push(t[d], t[h], t[m], t[v]);
|
568
582
|
}
|
569
583
|
return r.join("");
|
570
584
|
},
|
@@ -577,7 +591,7 @@ const jt = function(n) {
|
|
577
591
|
* @return The base64 encoded string.
|
578
592
|
*/
|
579
593
|
encodeString(n, e) {
|
580
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
594
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Ht(n), e);
|
581
595
|
},
|
582
596
|
/**
|
583
597
|
* Base64-decode a string.
|
@@ -588,7 +602,7 @@ const jt = function(n) {
|
|
588
602
|
* @return string representing the decoded value.
|
589
603
|
*/
|
590
604
|
decodeString(n, e) {
|
591
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
605
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : ar(this.decodeStringToByteArray(n, e));
|
592
606
|
},
|
593
607
|
/**
|
594
608
|
* Base64-decode a string.
|
@@ -613,14 +627,14 @@ const jt = function(n) {
|
|
613
627
|
++i;
|
614
628
|
const l = i < n.length ? t[n.charAt(i)] : 64;
|
615
629
|
++i;
|
616
|
-
const
|
617
|
-
if (++i, s == null || c == null || l == null ||
|
618
|
-
throw new
|
630
|
+
const h = i < n.length ? t[n.charAt(i)] : 64;
|
631
|
+
if (++i, s == null || c == null || l == null || h == null)
|
632
|
+
throw new or();
|
619
633
|
const m = s << 2 | c >> 4;
|
620
634
|
if (r.push(m), l !== 64) {
|
621
635
|
const v = c << 4 & 240 | l >> 2;
|
622
|
-
if (r.push(v),
|
623
|
-
const F = l << 6 & 192 |
|
636
|
+
if (r.push(v), h !== 64) {
|
637
|
+
const F = l << 6 & 192 | h;
|
624
638
|
r.push(F);
|
625
639
|
}
|
626
640
|
}
|
@@ -640,19 +654,19 @@ const jt = function(n) {
|
|
640
654
|
}
|
641
655
|
}
|
642
656
|
};
|
643
|
-
class
|
657
|
+
class or extends Error {
|
644
658
|
constructor() {
|
645
659
|
super(...arguments), this.name = "DecodeBase64StringError";
|
646
660
|
}
|
647
661
|
}
|
648
|
-
const
|
649
|
-
const e =
|
650
|
-
return
|
662
|
+
const cr = function(n) {
|
663
|
+
const e = Ht(n);
|
664
|
+
return jt.encodeByteArray(e, !0);
|
651
665
|
}, de = function(n) {
|
652
|
-
return
|
653
|
-
},
|
666
|
+
return cr(n).replace(/\./g, "");
|
667
|
+
}, Gt = function(n) {
|
654
668
|
try {
|
655
|
-
return
|
669
|
+
return jt.decodeString(n, !0);
|
656
670
|
} catch (e) {
|
657
671
|
console.error("base64Decode failed: ", e);
|
658
672
|
}
|
@@ -674,7 +688,7 @@ const sr = function(n) {
|
|
674
688
|
* See the License for the specific language governing permissions and
|
675
689
|
* limitations under the License.
|
676
690
|
*/
|
677
|
-
function
|
691
|
+
function lr() {
|
678
692
|
if (typeof self < "u")
|
679
693
|
return self;
|
680
694
|
if (typeof window < "u")
|
@@ -699,13 +713,13 @@ function ar() {
|
|
699
713
|
* See the License for the specific language governing permissions and
|
700
714
|
* limitations under the License.
|
701
715
|
*/
|
702
|
-
const
|
716
|
+
const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
703
717
|
if (typeof process > "u" || typeof ot > "u")
|
704
718
|
return;
|
705
719
|
const n = ot.__FIREBASE_DEFAULTS__;
|
706
720
|
if (n)
|
707
721
|
return JSON.parse(n);
|
708
|
-
},
|
722
|
+
}, hr = () => {
|
709
723
|
if (typeof document > "u")
|
710
724
|
return;
|
711
725
|
let n;
|
@@ -714,20 +728,20 @@ const or = () => ar().__FIREBASE_DEFAULTS__, cr = () => {
|
|
714
728
|
} catch {
|
715
729
|
return;
|
716
730
|
}
|
717
|
-
const e = n &&
|
731
|
+
const e = n && Gt(n[1]);
|
718
732
|
return e && JSON.parse(e);
|
719
733
|
}, ze = () => {
|
720
734
|
try {
|
721
|
-
return
|
735
|
+
return dr() || ur() || hr();
|
722
736
|
} catch (n) {
|
723
737
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
724
738
|
return;
|
725
739
|
}
|
726
|
-
},
|
740
|
+
}, Vt = (n) => {
|
727
741
|
var e, t;
|
728
742
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
729
|
-
},
|
730
|
-
const e =
|
743
|
+
}, Wa = (n) => {
|
744
|
+
const e = Vt(n);
|
731
745
|
if (!e)
|
732
746
|
return;
|
733
747
|
const t = e.lastIndexOf(":");
|
@@ -758,7 +772,7 @@ const or = () => ar().__FIREBASE_DEFAULTS__, cr = () => {
|
|
758
772
|
* See the License for the specific language governing permissions and
|
759
773
|
* limitations under the License.
|
760
774
|
*/
|
761
|
-
class
|
775
|
+
class pr {
|
762
776
|
constructor() {
|
763
777
|
this.reject = () => {
|
764
778
|
}, this.resolve = () => {
|
@@ -794,7 +808,7 @@ class dr {
|
|
794
808
|
* See the License for the specific language governing permissions and
|
795
809
|
* limitations under the License.
|
796
810
|
*/
|
797
|
-
function
|
811
|
+
function za(n, e) {
|
798
812
|
if (n.uid)
|
799
813
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
800
814
|
const t = {
|
@@ -842,33 +856,33 @@ function Va(n, e) {
|
|
842
856
|
function f() {
|
843
857
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
844
858
|
}
|
845
|
-
function
|
859
|
+
function mr() {
|
846
860
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
847
861
|
// just to deal with this case would probably be a bad idea.
|
848
862
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
849
863
|
}
|
850
|
-
function
|
864
|
+
function fr() {
|
851
865
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
852
866
|
}
|
853
|
-
function
|
867
|
+
function _r() {
|
854
868
|
const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
855
869
|
return typeof n == "object" && n.id !== void 0;
|
856
870
|
}
|
857
|
-
function
|
871
|
+
function gr() {
|
858
872
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
859
873
|
}
|
860
|
-
function
|
874
|
+
function vr() {
|
861
875
|
const n = f();
|
862
876
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
863
877
|
}
|
864
|
-
function
|
878
|
+
function Ir() {
|
865
879
|
try {
|
866
880
|
return typeof indexedDB == "object";
|
867
881
|
} catch {
|
868
882
|
return !1;
|
869
883
|
}
|
870
884
|
}
|
871
|
-
function
|
885
|
+
function br() {
|
872
886
|
return new Promise((n, e) => {
|
873
887
|
try {
|
874
888
|
let t = !0;
|
@@ -902,10 +916,10 @@ function gr() {
|
|
902
916
|
* See the License for the specific language governing permissions and
|
903
917
|
* limitations under the License.
|
904
918
|
*/
|
905
|
-
const
|
919
|
+
const yr = "FirebaseError";
|
906
920
|
class M extends Error {
|
907
921
|
constructor(e, t, r) {
|
908
|
-
super(t), this.code = e, this.customData = r, this.name =
|
922
|
+
super(t), this.code = e, this.customData = r, this.name = yr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
|
909
923
|
}
|
910
924
|
}
|
911
925
|
class q {
|
@@ -913,18 +927,18 @@ class q {
|
|
913
927
|
this.service = e, this.serviceName = t, this.errors = r;
|
914
928
|
}
|
915
929
|
create(e, ...t) {
|
916
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ?
|
930
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? Er(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
917
931
|
return new M(i, c, r);
|
918
932
|
}
|
919
933
|
}
|
920
|
-
function
|
921
|
-
return n.replace(
|
934
|
+
function Er(n, e) {
|
935
|
+
return n.replace(Tr, (t, r) => {
|
922
936
|
const i = e[r];
|
923
937
|
return i != null ? String(i) : `<${r}?>`;
|
924
938
|
});
|
925
939
|
}
|
926
|
-
const
|
927
|
-
function
|
940
|
+
const Tr = /\{\$([^}]+)}/g;
|
941
|
+
function wr(n) {
|
928
942
|
for (const e in n)
|
929
943
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
930
944
|
return !1;
|
@@ -976,11 +990,11 @@ function Q(n) {
|
|
976
990
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
977
991
|
return e.length ? "&" + e.join("&") : "";
|
978
992
|
}
|
979
|
-
function
|
980
|
-
const t = new
|
993
|
+
function kr(n, e) {
|
994
|
+
const t = new Rr(n, e);
|
981
995
|
return t.subscribe.bind(t);
|
982
996
|
}
|
983
|
-
class
|
997
|
+
class Rr {
|
984
998
|
/**
|
985
999
|
* @param executor Function which can make calls to a single Observer
|
986
1000
|
* as a proxy.
|
@@ -1018,7 +1032,7 @@ class Tr {
|
|
1018
1032
|
let i;
|
1019
1033
|
if (e === void 0 && t === void 0 && r === void 0)
|
1020
1034
|
throw new Error("Missing Observer.");
|
1021
|
-
|
1035
|
+
Sr(e, [
|
1022
1036
|
"next",
|
1023
1037
|
"error",
|
1024
1038
|
"complete"
|
@@ -1026,7 +1040,7 @@ class Tr {
|
|
1026
1040
|
next: e,
|
1027
1041
|
error: t,
|
1028
1042
|
complete: r
|
1029
|
-
}, i.next === void 0 && (i.next =
|
1043
|
+
}, i.next === void 0 && (i.next = Re), i.error === void 0 && (i.error = Re), i.complete === void 0 && (i.complete = Re);
|
1030
1044
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
1031
1045
|
return this.finalized && this.task.then(() => {
|
1032
1046
|
try {
|
@@ -1064,7 +1078,7 @@ class Tr {
|
|
1064
1078
|
}));
|
1065
1079
|
}
|
1066
1080
|
}
|
1067
|
-
function
|
1081
|
+
function Sr(n, e) {
|
1068
1082
|
if (typeof n != "object" || n === null)
|
1069
1083
|
return !1;
|
1070
1084
|
for (const t of e)
|
@@ -1072,7 +1086,7 @@ function wr(n, e) {
|
|
1072
1086
|
return !0;
|
1073
1087
|
return !1;
|
1074
1088
|
}
|
1075
|
-
function
|
1089
|
+
function Re() {
|
1076
1090
|
}
|
1077
1091
|
/**
|
1078
1092
|
* @license
|
@@ -1149,7 +1163,7 @@ const L = "[DEFAULT]";
|
|
1149
1163
|
* See the License for the specific language governing permissions and
|
1150
1164
|
* limitations under the License.
|
1151
1165
|
*/
|
1152
|
-
class
|
1166
|
+
class Ar {
|
1153
1167
|
constructor(e, t) {
|
1154
1168
|
this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
|
1155
1169
|
}
|
@@ -1160,7 +1174,7 @@ class Rr {
|
|
1160
1174
|
get(e) {
|
1161
1175
|
const t = this.normalizeInstanceIdentifier(e);
|
1162
1176
|
if (!this.instancesDeferred.has(t)) {
|
1163
|
-
const r = new
|
1177
|
+
const r = new pr();
|
1164
1178
|
if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
|
1165
1179
|
try {
|
1166
1180
|
const i = this.getOrInitializeService({
|
@@ -1200,7 +1214,7 @@ class Rr {
|
|
1200
1214
|
if (this.component)
|
1201
1215
|
throw Error(`Component for ${this.name} has already been provided`);
|
1202
1216
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
1203
|
-
if (
|
1217
|
+
if (Nr(e))
|
1204
1218
|
try {
|
1205
1219
|
this.getOrInitializeService({ instanceIdentifier: L });
|
1206
1220
|
} catch {
|
@@ -1287,7 +1301,7 @@ class Rr {
|
|
1287
1301
|
getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
|
1288
1302
|
let r = this.instances.get(e);
|
1289
1303
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
1290
|
-
instanceIdentifier:
|
1304
|
+
instanceIdentifier: Or(e),
|
1291
1305
|
options: t
|
1292
1306
|
}), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
1293
1307
|
try {
|
@@ -1303,10 +1317,10 @@ class Rr {
|
|
1303
1317
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
1304
1318
|
}
|
1305
1319
|
}
|
1306
|
-
function
|
1320
|
+
function Or(n) {
|
1307
1321
|
return n === L ? void 0 : n;
|
1308
1322
|
}
|
1309
|
-
function
|
1323
|
+
function Nr(n) {
|
1310
1324
|
return n.instantiationMode === "EAGER";
|
1311
1325
|
}
|
1312
1326
|
/**
|
@@ -1325,7 +1339,7 @@ function Sr(n) {
|
|
1325
1339
|
* See the License for the specific language governing permissions and
|
1326
1340
|
* limitations under the License.
|
1327
1341
|
*/
|
1328
|
-
class
|
1342
|
+
class Cr {
|
1329
1343
|
constructor(e) {
|
1330
1344
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
1331
1345
|
}
|
@@ -1357,7 +1371,7 @@ class Ar {
|
|
1357
1371
|
getProvider(e) {
|
1358
1372
|
if (this.providers.has(e))
|
1359
1373
|
return this.providers.get(e);
|
1360
|
-
const t = new
|
1374
|
+
const t = new Ar(e, this);
|
1361
1375
|
return this.providers.set(e, t), t;
|
1362
1376
|
}
|
1363
1377
|
getProviders() {
|
@@ -1380,33 +1394,33 @@ class Ar {
|
|
1380
1394
|
* See the License for the specific language governing permissions and
|
1381
1395
|
* limitations under the License.
|
1382
1396
|
*/
|
1383
|
-
var
|
1397
|
+
var p;
|
1384
1398
|
(function(n) {
|
1385
1399
|
n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
|
1386
|
-
})(
|
1387
|
-
const
|
1388
|
-
debug:
|
1389
|
-
verbose:
|
1390
|
-
info:
|
1391
|
-
warn:
|
1392
|
-
error:
|
1393
|
-
silent:
|
1394
|
-
},
|
1395
|
-
[
|
1396
|
-
[
|
1397
|
-
[
|
1398
|
-
[
|
1399
|
-
[
|
1400
|
-
},
|
1400
|
+
})(p || (p = {}));
|
1401
|
+
const Dr = {
|
1402
|
+
debug: p.DEBUG,
|
1403
|
+
verbose: p.VERBOSE,
|
1404
|
+
info: p.INFO,
|
1405
|
+
warn: p.WARN,
|
1406
|
+
error: p.ERROR,
|
1407
|
+
silent: p.SILENT
|
1408
|
+
}, Pr = p.INFO, Mr = {
|
1409
|
+
[p.DEBUG]: "log",
|
1410
|
+
[p.VERBOSE]: "log",
|
1411
|
+
[p.INFO]: "info",
|
1412
|
+
[p.WARN]: "warn",
|
1413
|
+
[p.ERROR]: "error"
|
1414
|
+
}, Lr = (n, e, ...t) => {
|
1401
1415
|
if (e < n.logLevel)
|
1402
1416
|
return;
|
1403
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
1417
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = Mr[e];
|
1404
1418
|
if (i)
|
1405
1419
|
console[i](`[${r}] ${n.name}:`, ...t);
|
1406
1420
|
else
|
1407
1421
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1408
1422
|
};
|
1409
|
-
class
|
1423
|
+
class $t {
|
1410
1424
|
/**
|
1411
1425
|
* Gives you an instance of a Logger to capture messages according to
|
1412
1426
|
* Firebase's logging scheme.
|
@@ -1414,19 +1428,19 @@ class Zt {
|
|
1414
1428
|
* @param name The name that the logs will be associated with
|
1415
1429
|
*/
|
1416
1430
|
constructor(e) {
|
1417
|
-
this.name = e, this._logLevel =
|
1431
|
+
this.name = e, this._logLevel = Pr, this._logHandler = Lr, this._userLogHandler = null;
|
1418
1432
|
}
|
1419
1433
|
get logLevel() {
|
1420
1434
|
return this._logLevel;
|
1421
1435
|
}
|
1422
1436
|
set logLevel(e) {
|
1423
|
-
if (!(e in
|
1437
|
+
if (!(e in p))
|
1424
1438
|
throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
|
1425
1439
|
this._logLevel = e;
|
1426
1440
|
}
|
1427
1441
|
// Workaround for setter/getter having to be the same type.
|
1428
1442
|
setLogLevel(e) {
|
1429
|
-
this._logLevel = typeof e == "string" ?
|
1443
|
+
this._logLevel = typeof e == "string" ? Dr[e] : e;
|
1430
1444
|
}
|
1431
1445
|
get logHandler() {
|
1432
1446
|
return this._logHandler;
|
@@ -1446,24 +1460,24 @@ class Zt {
|
|
1446
1460
|
* The functions below are all based on the `console` interface
|
1447
1461
|
*/
|
1448
1462
|
debug(...e) {
|
1449
|
-
this._userLogHandler && this._userLogHandler(this,
|
1463
|
+
this._userLogHandler && this._userLogHandler(this, p.DEBUG, ...e), this._logHandler(this, p.DEBUG, ...e);
|
1450
1464
|
}
|
1451
1465
|
log(...e) {
|
1452
|
-
this._userLogHandler && this._userLogHandler(this,
|
1466
|
+
this._userLogHandler && this._userLogHandler(this, p.VERBOSE, ...e), this._logHandler(this, p.VERBOSE, ...e);
|
1453
1467
|
}
|
1454
1468
|
info(...e) {
|
1455
|
-
this._userLogHandler && this._userLogHandler(this,
|
1469
|
+
this._userLogHandler && this._userLogHandler(this, p.INFO, ...e), this._logHandler(this, p.INFO, ...e);
|
1456
1470
|
}
|
1457
1471
|
warn(...e) {
|
1458
|
-
this._userLogHandler && this._userLogHandler(this,
|
1472
|
+
this._userLogHandler && this._userLogHandler(this, p.WARN, ...e), this._logHandler(this, p.WARN, ...e);
|
1459
1473
|
}
|
1460
1474
|
error(...e) {
|
1461
|
-
this._userLogHandler && this._userLogHandler(this,
|
1475
|
+
this._userLogHandler && this._userLogHandler(this, p.ERROR, ...e), this._logHandler(this, p.ERROR, ...e);
|
1462
1476
|
}
|
1463
1477
|
}
|
1464
|
-
const
|
1478
|
+
const Ur = (n, e) => e.some((t) => n instanceof t);
|
1465
1479
|
let lt, dt;
|
1466
|
-
function
|
1480
|
+
function Br() {
|
1467
1481
|
return lt || (lt = [
|
1468
1482
|
IDBDatabase,
|
1469
1483
|
IDBObjectStore,
|
@@ -1472,15 +1486,15 @@ function Mr() {
|
|
1472
1486
|
IDBTransaction
|
1473
1487
|
]);
|
1474
1488
|
}
|
1475
|
-
function
|
1489
|
+
function Fr() {
|
1476
1490
|
return dt || (dt = [
|
1477
1491
|
IDBCursor.prototype.advance,
|
1478
1492
|
IDBCursor.prototype.continue,
|
1479
1493
|
IDBCursor.prototype.continuePrimaryKey
|
1480
1494
|
]);
|
1481
1495
|
}
|
1482
|
-
const
|
1483
|
-
function
|
1496
|
+
const Zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap();
|
1497
|
+
function xr(n) {
|
1484
1498
|
const e = new Promise((t, r) => {
|
1485
1499
|
const i = () => {
|
1486
1500
|
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
@@ -1492,11 +1506,11 @@ function Ur(n) {
|
|
1492
1506
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
1493
1507
|
});
|
1494
1508
|
return e.then((t) => {
|
1495
|
-
t instanceof IDBCursor &&
|
1509
|
+
t instanceof IDBCursor && Zt.set(t, n);
|
1496
1510
|
}).catch(() => {
|
1497
|
-
}),
|
1511
|
+
}), $e.set(e, n), e;
|
1498
1512
|
}
|
1499
|
-
function
|
1513
|
+
function Hr(n) {
|
1500
1514
|
if (Le.has(n))
|
1501
1515
|
return;
|
1502
1516
|
const e = new Promise((t, r) => {
|
@@ -1530,32 +1544,32 @@ let Ue = {
|
|
1530
1544
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1531
1545
|
}
|
1532
1546
|
};
|
1533
|
-
function
|
1547
|
+
function jr(n) {
|
1534
1548
|
Ue = n(Ue);
|
1535
1549
|
}
|
1536
|
-
function
|
1550
|
+
function Gr(n) {
|
1537
1551
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1538
1552
|
const r = n.call(Ae(this), e, ...t);
|
1539
1553
|
return Jt.set(r, e.sort ? e.sort() : [e]), C(r);
|
1540
|
-
} :
|
1541
|
-
return n.apply(Ae(this), e), C(
|
1554
|
+
} : Fr().includes(n) ? function(...e) {
|
1555
|
+
return n.apply(Ae(this), e), C(Zt.get(this));
|
1542
1556
|
} : function(...e) {
|
1543
1557
|
return C(n.apply(Ae(this), e));
|
1544
1558
|
};
|
1545
1559
|
}
|
1546
|
-
function
|
1547
|
-
return typeof n == "function" ?
|
1560
|
+
function Vr(n) {
|
1561
|
+
return typeof n == "function" ? Gr(n) : (n instanceof IDBTransaction && Hr(n), Ur(n, Br()) ? new Proxy(n, Ue) : n);
|
1548
1562
|
}
|
1549
1563
|
function C(n) {
|
1550
1564
|
if (n instanceof IDBRequest)
|
1551
|
-
return
|
1565
|
+
return xr(n);
|
1552
1566
|
if (Se.has(n))
|
1553
1567
|
return Se.get(n);
|
1554
|
-
const e =
|
1555
|
-
return e !== n && (Se.set(n, e),
|
1568
|
+
const e = Vr(n);
|
1569
|
+
return e !== n && (Se.set(n, e), $e.set(e, n)), e;
|
1556
1570
|
}
|
1557
|
-
const Ae = (n) =>
|
1558
|
-
function
|
1571
|
+
const Ae = (n) => $e.get(n);
|
1572
|
+
function Wr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1559
1573
|
const a = indexedDB.open(n, e), c = C(a);
|
1560
1574
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
1561
1575
|
r(C(a.result), o.oldVersion, o.newVersion, C(a.transaction), o);
|
@@ -1569,16 +1583,16 @@ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1569
1583
|
}).catch(() => {
|
1570
1584
|
}), c;
|
1571
1585
|
}
|
1572
|
-
const
|
1586
|
+
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1573
1587
|
function ut(n, e) {
|
1574
1588
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1575
1589
|
return;
|
1576
1590
|
if (Oe.get(e))
|
1577
1591
|
return Oe.get(e);
|
1578
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1592
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
1579
1593
|
if (
|
1580
1594
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1581
|
-
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
1595
|
+
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || zr.includes(t))
|
1582
1596
|
)
|
1583
1597
|
return;
|
1584
1598
|
const s = async function(a, ...c) {
|
@@ -1591,7 +1605,7 @@ function ut(n, e) {
|
|
1591
1605
|
};
|
1592
1606
|
return Oe.set(e, s), s;
|
1593
1607
|
}
|
1594
|
-
|
1608
|
+
jr((n) => ({
|
1595
1609
|
...n,
|
1596
1610
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1597
1611
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1612,7 +1626,7 @@ Fr((n) => ({
|
|
1612
1626
|
* See the License for the specific language governing permissions and
|
1613
1627
|
* limitations under the License.
|
1614
1628
|
*/
|
1615
|
-
class
|
1629
|
+
class Zr {
|
1616
1630
|
constructor(e) {
|
1617
1631
|
this.container = e;
|
1618
1632
|
}
|
@@ -1620,7 +1634,7 @@ class Wr {
|
|
1620
1634
|
// auth token refresh, and installations will send this string.
|
1621
1635
|
getPlatformInfoString() {
|
1622
1636
|
return this.container.getProviders().map((t) => {
|
1623
|
-
if (
|
1637
|
+
if (Jr(t)) {
|
1624
1638
|
const r = t.getImmediate();
|
1625
1639
|
return `${r.library}/${r.version}`;
|
1626
1640
|
} else
|
@@ -1628,7 +1642,7 @@ class Wr {
|
|
1628
1642
|
}).filter((t) => t).join(" ");
|
1629
1643
|
}
|
1630
1644
|
}
|
1631
|
-
function
|
1645
|
+
function Jr(n) {
|
1632
1646
|
const e = n.getComponent();
|
1633
1647
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1634
1648
|
}
|
@@ -1649,7 +1663,7 @@ const Be = "@firebase/app", ht = "0.10.13";
|
|
1649
1663
|
* See the License for the specific language governing permissions and
|
1650
1664
|
* limitations under the License.
|
1651
1665
|
*/
|
1652
|
-
const T = new
|
1666
|
+
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";
|
1653
1667
|
/**
|
1654
1668
|
* @license
|
1655
1669
|
* Copyright 2019 Google LLC
|
@@ -1666,35 +1680,35 @@ const T = new Zt("@firebase/app"), Zr = "@firebase/app-compat", $r = "@firebase/
|
|
1666
1680
|
* See the License for the specific language governing permissions and
|
1667
1681
|
* limitations under the License.
|
1668
1682
|
*/
|
1669
|
-
const Fe = "[DEFAULT]",
|
1683
|
+
const Fe = "[DEFAULT]", Ei = {
|
1670
1684
|
[Be]: "fire-core",
|
1671
|
-
[
|
1672
|
-
[
|
1673
|
-
[
|
1674
|
-
[
|
1675
|
-
[
|
1676
|
-
[
|
1677
|
-
[
|
1678
|
-
[
|
1679
|
-
[
|
1680
|
-
[
|
1681
|
-
[
|
1682
|
-
[
|
1683
|
-
[
|
1684
|
-
[
|
1685
|
-
[
|
1686
|
-
[
|
1687
|
-
[
|
1688
|
-
[
|
1689
|
-
[
|
1690
|
-
[
|
1691
|
-
[
|
1692
|
-
[
|
1693
|
-
[
|
1694
|
-
[
|
1695
|
-
[
|
1685
|
+
[Yr]: "fire-core-compat",
|
1686
|
+
[Kr]: "fire-analytics",
|
1687
|
+
[Xr]: "fire-analytics-compat",
|
1688
|
+
[Qr]: "fire-app-check",
|
1689
|
+
[qr]: "fire-app-check-compat",
|
1690
|
+
[ei]: "fire-auth",
|
1691
|
+
[ti]: "fire-auth-compat",
|
1692
|
+
[ni]: "fire-rtdb",
|
1693
|
+
[ri]: "fire-data-connect",
|
1694
|
+
[ii]: "fire-rtdb-compat",
|
1695
|
+
[si]: "fire-fn",
|
1696
|
+
[ai]: "fire-fn-compat",
|
1697
|
+
[oi]: "fire-iid",
|
1698
|
+
[ci]: "fire-iid-compat",
|
1699
|
+
[li]: "fire-fcm",
|
1700
|
+
[di]: "fire-fcm-compat",
|
1701
|
+
[ui]: "fire-perf",
|
1702
|
+
[hi]: "fire-perf-compat",
|
1703
|
+
[pi]: "fire-rc",
|
1704
|
+
[mi]: "fire-rc-compat",
|
1705
|
+
[fi]: "fire-gcs",
|
1706
|
+
[_i]: "fire-gcs-compat",
|
1707
|
+
[gi]: "fire-fst",
|
1708
|
+
[Ii]: "fire-fst-compat",
|
1709
|
+
[vi]: "fire-vertex",
|
1696
1710
|
"fire-js": "fire-js",
|
1697
|
-
[
|
1711
|
+
[bi]: "fire-js-all"
|
1698
1712
|
};
|
1699
1713
|
/**
|
1700
1714
|
* @license
|
@@ -1712,7 +1726,7 @@ const Fe = "[DEFAULT]", Ii = {
|
|
1712
1726
|
* See the License for the specific language governing permissions and
|
1713
1727
|
* limitations under the License.
|
1714
1728
|
*/
|
1715
|
-
const he = /* @__PURE__ */ new Map(),
|
1729
|
+
const he = /* @__PURE__ */ new Map(), Ti = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
|
1716
1730
|
function pt(n, e) {
|
1717
1731
|
try {
|
1718
1732
|
n.container.addComponent(e);
|
@@ -1720,18 +1734,18 @@ function pt(n, e) {
|
|
1720
1734
|
T.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
|
1721
1735
|
}
|
1722
1736
|
}
|
1723
|
-
function
|
1737
|
+
function Y(n) {
|
1724
1738
|
const e = n.name;
|
1725
1739
|
if (xe.has(e))
|
1726
1740
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1727
1741
|
xe.set(e, n);
|
1728
1742
|
for (const t of he.values())
|
1729
1743
|
pt(t, n);
|
1730
|
-
for (const t of
|
1744
|
+
for (const t of Ti.values())
|
1731
1745
|
pt(t, n);
|
1732
1746
|
return !0;
|
1733
1747
|
}
|
1734
|
-
function
|
1748
|
+
function Yt(n, e) {
|
1735
1749
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
1736
1750
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
1737
1751
|
}
|
@@ -1754,7 +1768,7 @@ function I(n) {
|
|
1754
1768
|
* See the License for the specific language governing permissions and
|
1755
1769
|
* limitations under the License.
|
1756
1770
|
*/
|
1757
|
-
const
|
1771
|
+
const wi = {
|
1758
1772
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1759
1773
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1760
1774
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1769,7 +1783,7 @@ const yi = {
|
|
1769
1783
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1770
1784
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1771
1785
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1772
|
-
}, D = new q("app", "Firebase",
|
1786
|
+
}, D = new q("app", "Firebase", wi);
|
1773
1787
|
/**
|
1774
1788
|
* @license
|
1775
1789
|
* Copyright 2019 Google LLC
|
@@ -1786,7 +1800,7 @@ const yi = {
|
|
1786
1800
|
* See the License for the specific language governing permissions and
|
1787
1801
|
* limitations under the License.
|
1788
1802
|
*/
|
1789
|
-
class
|
1803
|
+
class ki {
|
1790
1804
|
constructor(e, t, r) {
|
1791
1805
|
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 W(
|
1792
1806
|
"app",
|
@@ -1844,8 +1858,8 @@ class Ei {
|
|
1844
1858
|
* See the License for the specific language governing permissions and
|
1845
1859
|
* limitations under the License.
|
1846
1860
|
*/
|
1847
|
-
const ee =
|
1848
|
-
function
|
1861
|
+
const ee = yi;
|
1862
|
+
function Xt(n, e = {}) {
|
1849
1863
|
let t = n;
|
1850
1864
|
typeof e != "object" && (e = { name: e });
|
1851
1865
|
const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
@@ -1864,23 +1878,23 @@ function Yt(n, e = {}) {
|
|
1864
1878
|
return s;
|
1865
1879
|
throw D.create("duplicate-app", { appName: i });
|
1866
1880
|
}
|
1867
|
-
const a = new
|
1881
|
+
const a = new Cr(i);
|
1868
1882
|
for (const o of xe.values())
|
1869
1883
|
a.addComponent(o);
|
1870
|
-
const c = new
|
1884
|
+
const c = new ki(t, r, a);
|
1871
1885
|
return he.set(i, c), c;
|
1872
1886
|
}
|
1873
|
-
function
|
1887
|
+
function Ri(n = Fe) {
|
1874
1888
|
const e = he.get(n);
|
1875
1889
|
if (!e && n === Fe && Wt())
|
1876
|
-
return
|
1890
|
+
return Xt();
|
1877
1891
|
if (!e)
|
1878
1892
|
throw D.create("no-app", { appName: n });
|
1879
1893
|
return e;
|
1880
1894
|
}
|
1881
|
-
function
|
1895
|
+
function H(n, e, t) {
|
1882
1896
|
var r;
|
1883
|
-
let i = (r =
|
1897
|
+
let i = (r = Ei[n]) !== null && r !== void 0 ? r : n;
|
1884
1898
|
t && (i += `-${t}`);
|
1885
1899
|
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
1886
1900
|
if (s || a) {
|
@@ -1890,7 +1904,7 @@ function j(n, e, t) {
|
|
1890
1904
|
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(" "));
|
1891
1905
|
return;
|
1892
1906
|
}
|
1893
|
-
|
1907
|
+
Y(new W(
|
1894
1908
|
`${i}-version`,
|
1895
1909
|
() => ({ library: i, version: e }),
|
1896
1910
|
"VERSION"
|
@@ -1913,15 +1927,15 @@ function j(n, e, t) {
|
|
1913
1927
|
* See the License for the specific language governing permissions and
|
1914
1928
|
* limitations under the License.
|
1915
1929
|
*/
|
1916
|
-
const
|
1930
|
+
const Si = "firebase-heartbeat-database", Ai = 1, X = "firebase-heartbeat-store";
|
1917
1931
|
let Ne = null;
|
1918
1932
|
function Kt() {
|
1919
|
-
return Ne || (Ne =
|
1933
|
+
return Ne || (Ne = Wr(Si, Ai, {
|
1920
1934
|
upgrade: (n, e) => {
|
1921
1935
|
switch (e) {
|
1922
1936
|
case 0:
|
1923
1937
|
try {
|
1924
|
-
n.createObjectStore(
|
1938
|
+
n.createObjectStore(X);
|
1925
1939
|
} catch (t) {
|
1926
1940
|
console.warn(t);
|
1927
1941
|
}
|
@@ -1933,9 +1947,9 @@ function Kt() {
|
|
1933
1947
|
});
|
1934
1948
|
})), Ne;
|
1935
1949
|
}
|
1936
|
-
async function
|
1950
|
+
async function Oi(n) {
|
1937
1951
|
try {
|
1938
|
-
const t = (await Kt()).transaction(
|
1952
|
+
const t = (await Kt()).transaction(X), r = await t.objectStore(X).get(qt(n));
|
1939
1953
|
return await t.done, r;
|
1940
1954
|
} catch (e) {
|
1941
1955
|
if (e instanceof M)
|
@@ -1948,10 +1962,10 @@ async function ki(n) {
|
|
1948
1962
|
}
|
1949
1963
|
}
|
1950
1964
|
}
|
1951
|
-
async function
|
1965
|
+
async function mt(n, e) {
|
1952
1966
|
try {
|
1953
|
-
const r = (await Kt()).transaction(
|
1954
|
-
await r.objectStore(
|
1967
|
+
const r = (await Kt()).transaction(X, "readwrite");
|
1968
|
+
await r.objectStore(X).put(e, qt(n)), await r.done;
|
1955
1969
|
} catch (t) {
|
1956
1970
|
if (t instanceof M)
|
1957
1971
|
T.warn(t.message);
|
@@ -1982,12 +1996,12 @@ function qt(n) {
|
|
1982
1996
|
* See the License for the specific language governing permissions and
|
1983
1997
|
* limitations under the License.
|
1984
1998
|
*/
|
1985
|
-
const
|
1986
|
-
class
|
1999
|
+
const Ni = 1024, Ci = 30 * 24 * 60 * 60 * 1e3;
|
2000
|
+
class Di {
|
1987
2001
|
constructor(e) {
|
1988
2002
|
this.container = e, this._heartbeatsCache = null;
|
1989
2003
|
const t = this.container.getProvider("app").getImmediate();
|
1990
|
-
this._storage = new
|
2004
|
+
this._storage = new Mi(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
1991
2005
|
}
|
1992
2006
|
/**
|
1993
2007
|
* Called to report a heartbeat. The function will generate
|
@@ -1999,10 +2013,10 @@ class Oi {
|
|
1999
2013
|
async triggerHeartbeat() {
|
2000
2014
|
var e, t;
|
2001
2015
|
try {
|
2002
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
2016
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
|
2003
2017
|
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) => {
|
2004
2018
|
const c = new Date(a.date).valueOf();
|
2005
|
-
return Date.now() - c <=
|
2019
|
+
return Date.now() - c <= Ci;
|
2006
2020
|
}), this._storage.overwrite(this._heartbeatsCache));
|
2007
2021
|
} catch (r) {
|
2008
2022
|
T.warn(r);
|
@@ -2020,17 +2034,17 @@ class Oi {
|
|
2020
2034
|
try {
|
2021
2035
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
2022
2036
|
return "";
|
2023
|
-
const t =
|
2037
|
+
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Pi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
2024
2038
|
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;
|
2025
2039
|
} catch (t) {
|
2026
2040
|
return T.warn(t), "";
|
2027
2041
|
}
|
2028
2042
|
}
|
2029
2043
|
}
|
2030
|
-
function
|
2044
|
+
function ft() {
|
2031
2045
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
2032
2046
|
}
|
2033
|
-
function
|
2047
|
+
function Pi(n, e = Ni) {
|
2034
2048
|
const t = [];
|
2035
2049
|
let r = n.slice();
|
2036
2050
|
for (const i of n) {
|
@@ -2054,19 +2068,19 @@ function Ni(n, e = Si) {
|
|
2054
2068
|
unsentEntries: r
|
2055
2069
|
};
|
2056
2070
|
}
|
2057
|
-
class
|
2071
|
+
class Mi {
|
2058
2072
|
constructor(e) {
|
2059
2073
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
2060
2074
|
}
|
2061
2075
|
async runIndexedDBEnvironmentCheck() {
|
2062
|
-
return
|
2076
|
+
return Ir() ? br().then(() => !0).catch(() => !1) : !1;
|
2063
2077
|
}
|
2064
2078
|
/**
|
2065
2079
|
* Read all heartbeats.
|
2066
2080
|
*/
|
2067
2081
|
async read() {
|
2068
2082
|
if (await this._canUseIndexedDBPromise) {
|
2069
|
-
const t = await
|
2083
|
+
const t = await Oi(this.app);
|
2070
2084
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
2071
2085
|
} else
|
2072
2086
|
return { heartbeats: [] };
|
@@ -2076,7 +2090,7 @@ class Ci {
|
|
2076
2090
|
var t;
|
2077
2091
|
if (await this._canUseIndexedDBPromise) {
|
2078
2092
|
const i = await this.read();
|
2079
|
-
return
|
2093
|
+
return mt(this.app, {
|
2080
2094
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2081
2095
|
heartbeats: e.heartbeats
|
2082
2096
|
});
|
@@ -2088,7 +2102,7 @@ class Ci {
|
|
2088
2102
|
var t;
|
2089
2103
|
if (await this._canUseIndexedDBPromise) {
|
2090
2104
|
const i = await this.read();
|
2091
|
-
return
|
2105
|
+
return mt(this.app, {
|
2092
2106
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2093
2107
|
heartbeats: [
|
2094
2108
|
...i.heartbeats,
|
@@ -2121,21 +2135,21 @@ function _t(n) {
|
|
2121
2135
|
* See the License for the specific language governing permissions and
|
2122
2136
|
* limitations under the License.
|
2123
2137
|
*/
|
2124
|
-
function
|
2125
|
-
|
2138
|
+
function Li(n) {
|
2139
|
+
Y(new W(
|
2126
2140
|
"platform-logger",
|
2127
|
-
(e) => new
|
2141
|
+
(e) => new Zr(e),
|
2128
2142
|
"PRIVATE"
|
2129
2143
|
/* ComponentType.PRIVATE */
|
2130
|
-
)),
|
2144
|
+
)), Y(new W(
|
2131
2145
|
"heartbeat",
|
2132
|
-
(e) => new
|
2146
|
+
(e) => new Di(e),
|
2133
2147
|
"PRIVATE"
|
2134
2148
|
/* ComponentType.PRIVATE */
|
2135
|
-
)),
|
2149
|
+
)), H(Be, ht, n), H(Be, ht, "esm2017"), H("fire-js", "");
|
2136
2150
|
}
|
2137
|
-
|
2138
|
-
var
|
2151
|
+
Li("");
|
2152
|
+
var Ui = "firebase", Bi = "10.14.1";
|
2139
2153
|
/**
|
2140
2154
|
* @license
|
2141
2155
|
* Copyright 2020 Google LLC
|
@@ -2152,7 +2166,7 @@ var Pi = "firebase", Mi = "10.14.1";
|
|
2152
2166
|
* See the License for the specific language governing permissions and
|
2153
2167
|
* limitations under the License.
|
2154
2168
|
*/
|
2155
|
-
|
2169
|
+
H(Ui, Bi, "app");
|
2156
2170
|
var gt = function() {
|
2157
2171
|
return gt = Object.assign || function(e) {
|
2158
2172
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -2162,7 +2176,7 @@ var gt = function() {
|
|
2162
2176
|
return e;
|
2163
2177
|
}, gt.apply(this, arguments);
|
2164
2178
|
};
|
2165
|
-
function
|
2179
|
+
function Ze(n, e) {
|
2166
2180
|
var t = {};
|
2167
2181
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
2168
2182
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -2175,7 +2189,7 @@ function Qt() {
|
|
2175
2189
|
"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."
|
2176
2190
|
};
|
2177
2191
|
}
|
2178
|
-
const
|
2192
|
+
const Fi = Qt, en = new q("auth", "Firebase", Qt());
|
2179
2193
|
/**
|
2180
2194
|
* @license
|
2181
2195
|
* Copyright 2020 Google LLC
|
@@ -2192,12 +2206,12 @@ const Li = Qt, en = new q("auth", "Firebase", Qt());
|
|
2192
2206
|
* See the License for the specific language governing permissions and
|
2193
2207
|
* limitations under the License.
|
2194
2208
|
*/
|
2195
|
-
const pe = new
|
2196
|
-
function
|
2197
|
-
pe.logLevel <=
|
2209
|
+
const pe = new $t("@firebase/auth");
|
2210
|
+
function xi(n, ...e) {
|
2211
|
+
pe.logLevel <= p.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
2198
2212
|
}
|
2199
2213
|
function se(n, ...e) {
|
2200
|
-
pe.logLevel <=
|
2214
|
+
pe.logLevel <= p.ERROR && pe.error(`Auth (${ee}): ${n}`, ...e);
|
2201
2215
|
}
|
2202
2216
|
/**
|
2203
2217
|
* @license
|
@@ -2222,7 +2236,7 @@ function _(n, ...e) {
|
|
2222
2236
|
return Je(n, ...e);
|
2223
2237
|
}
|
2224
2238
|
function tn(n, e, t) {
|
2225
|
-
const r = Object.assign(Object.assign({},
|
2239
|
+
const r = Object.assign(Object.assign({}, Fi()), { [e]: t });
|
2226
2240
|
return new q("auth", "Firebase", r).create(e, {
|
2227
2241
|
appName: n.name
|
2228
2242
|
});
|
@@ -2237,7 +2251,7 @@ function Je(n, ...e) {
|
|
2237
2251
|
}
|
2238
2252
|
return en.create(n, ...e);
|
2239
2253
|
}
|
2240
|
-
function
|
2254
|
+
function u(n, e, ...t) {
|
2241
2255
|
if (!n)
|
2242
2256
|
throw Je(e, ...t);
|
2243
2257
|
}
|
@@ -2245,7 +2259,7 @@ function b(n) {
|
|
2245
2259
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
2246
2260
|
throw se(e), new Error(e);
|
2247
2261
|
}
|
2248
|
-
function
|
2262
|
+
function k(n, e) {
|
2249
2263
|
n || b(e);
|
2250
2264
|
}
|
2251
2265
|
/**
|
@@ -2264,11 +2278,11 @@ function R(n, e) {
|
|
2264
2278
|
* See the License for the specific language governing permissions and
|
2265
2279
|
* limitations under the License.
|
2266
2280
|
*/
|
2267
|
-
function
|
2281
|
+
function He() {
|
2268
2282
|
var n;
|
2269
2283
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
2270
2284
|
}
|
2271
|
-
function
|
2285
|
+
function Hi() {
|
2272
2286
|
return vt() === "http:" || vt() === "https:";
|
2273
2287
|
}
|
2274
2288
|
function vt() {
|
@@ -2291,15 +2305,15 @@ function vt() {
|
|
2291
2305
|
* See the License for the specific language governing permissions and
|
2292
2306
|
* limitations under the License.
|
2293
2307
|
*/
|
2294
|
-
function
|
2308
|
+
function ji() {
|
2295
2309
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
2296
2310
|
// This is especially true for Cordova apps which have unreliable
|
2297
2311
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
2298
2312
|
// installed which overwrites the native navigator.onLine value and
|
2299
2313
|
// defines navigator.connection.
|
2300
|
-
(
|
2314
|
+
(Hi() || _r() || "connection" in navigator) ? navigator.onLine : !0;
|
2301
2315
|
}
|
2302
|
-
function
|
2316
|
+
function Gi() {
|
2303
2317
|
if (typeof navigator > "u")
|
2304
2318
|
return null;
|
2305
2319
|
const n = navigator;
|
@@ -2329,10 +2343,10 @@ function xi() {
|
|
2329
2343
|
*/
|
2330
2344
|
class te {
|
2331
2345
|
constructor(e, t) {
|
2332
|
-
this.shortDelay = e, this.longDelay = t,
|
2346
|
+
this.shortDelay = e, this.longDelay = t, k(t > e, "Short delay should be less than long delay!"), this.isMobile = mr() || gr();
|
2333
2347
|
}
|
2334
2348
|
get() {
|
2335
|
-
return
|
2349
|
+
return ji() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2336
2350
|
}
|
2337
2351
|
}
|
2338
2352
|
/**
|
@@ -2351,8 +2365,8 @@ class te {
|
|
2351
2365
|
* See the License for the specific language governing permissions and
|
2352
2366
|
* limitations under the License.
|
2353
2367
|
*/
|
2354
|
-
function
|
2355
|
-
|
2368
|
+
function Ye(n, e) {
|
2369
|
+
k(n.emulator, "Emulator should always be set here");
|
2356
2370
|
const { url: t } = n.emulator;
|
2357
2371
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
2358
2372
|
}
|
@@ -2426,7 +2440,7 @@ class nn {
|
|
2426
2440
|
* See the License for the specific language governing permissions and
|
2427
2441
|
* limitations under the License.
|
2428
2442
|
*/
|
2429
|
-
const
|
2443
|
+
const Vi = {
|
2430
2444
|
// Custom token errors.
|
2431
2445
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2432
2446
|
// This can only happen if the SDK sends a bad request.
|
@@ -2517,11 +2531,11 @@ const ji = {
|
|
2517
2531
|
* See the License for the specific language governing permissions and
|
2518
2532
|
* limitations under the License.
|
2519
2533
|
*/
|
2520
|
-
const
|
2534
|
+
const Wi = new te(3e4, 6e4);
|
2521
2535
|
function ve(n, e) {
|
2522
2536
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2523
2537
|
}
|
2524
|
-
async function
|
2538
|
+
async function $(n, e, t, r, i = {}) {
|
2525
2539
|
return rn(n, i, async () => {
|
2526
2540
|
let s = {}, a = {};
|
2527
2541
|
r && (e === "GET" ? a = r : s = {
|
@@ -2539,14 +2553,14 @@ async function Z(n, e, t, r, i = {}) {
|
|
2539
2553
|
method: e,
|
2540
2554
|
headers: o
|
2541
2555
|
}, s);
|
2542
|
-
return
|
2556
|
+
return fr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2543
2557
|
});
|
2544
2558
|
}
|
2545
2559
|
async function rn(n, e, t) {
|
2546
2560
|
n._canInitEmulator = !1;
|
2547
|
-
const r = Object.assign(Object.assign({},
|
2561
|
+
const r = Object.assign(Object.assign({}, Vi), e);
|
2548
2562
|
try {
|
2549
|
-
const i = new
|
2563
|
+
const i = new zi(n), s = await Promise.race([
|
2550
2564
|
t(),
|
2551
2565
|
i.promise
|
2552
2566
|
]);
|
@@ -2564,10 +2578,10 @@ async function rn(n, e, t) {
|
|
2564
2578
|
throw ie(n, "email-already-in-use", a);
|
2565
2579
|
if (o === "USER_DISABLED")
|
2566
2580
|
throw ie(n, "user-disabled", a);
|
2567
|
-
const
|
2581
|
+
const d = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
2568
2582
|
if (l)
|
2569
|
-
throw tn(n,
|
2570
|
-
w(n,
|
2583
|
+
throw tn(n, d, l);
|
2584
|
+
w(n, d);
|
2571
2585
|
}
|
2572
2586
|
} catch (i) {
|
2573
2587
|
if (i instanceof M)
|
@@ -2576,23 +2590,23 @@ async function rn(n, e, t) {
|
|
2576
2590
|
}
|
2577
2591
|
}
|
2578
2592
|
async function sn(n, e, t, r, i = {}) {
|
2579
|
-
const s = await
|
2593
|
+
const s = await $(n, e, t, r, i);
|
2580
2594
|
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2581
2595
|
_serverResponse: s
|
2582
2596
|
}), s;
|
2583
2597
|
}
|
2584
2598
|
function an(n, e, t, r) {
|
2585
2599
|
const i = `${e}${t}?${r}`;
|
2586
|
-
return n.config.emulator ?
|
2600
|
+
return n.config.emulator ? Ye(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2587
2601
|
}
|
2588
|
-
class
|
2602
|
+
class zi {
|
2589
2603
|
constructor(e) {
|
2590
2604
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
2591
2605
|
this.timer = setTimeout(() => r(_(
|
2592
2606
|
this.auth,
|
2593
2607
|
"network-request-failed"
|
2594
2608
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2595
|
-
)),
|
2609
|
+
)), Wi.get());
|
2596
2610
|
});
|
2597
2611
|
}
|
2598
2612
|
clearNetworkTimeout() {
|
@@ -2623,11 +2637,11 @@ function ie(n, e, t) {
|
|
2623
2637
|
* See the License for the specific language governing permissions and
|
2624
2638
|
* limitations under the License.
|
2625
2639
|
*/
|
2626
|
-
async function
|
2627
|
-
return
|
2640
|
+
async function $i(n, e) {
|
2641
|
+
return $(n, "POST", "/v1/accounts:delete", e);
|
2628
2642
|
}
|
2629
2643
|
async function on(n, e) {
|
2630
|
-
return
|
2644
|
+
return $(n, "POST", "/v1/accounts:lookup", e);
|
2631
2645
|
}
|
2632
2646
|
/**
|
2633
2647
|
* @license
|
@@ -2654,9 +2668,9 @@ function J(n) {
|
|
2654
2668
|
} catch {
|
2655
2669
|
}
|
2656
2670
|
}
|
2657
|
-
async function
|
2658
|
-
const t = z(n), r = await t.getIdToken(e), i =
|
2659
|
-
|
2671
|
+
async function Zi(n, e = !1) {
|
2672
|
+
const t = z(n), r = await t.getIdToken(e), i = Xe(r);
|
2673
|
+
u(
|
2660
2674
|
i && i.exp && i.auth_time && i.iat,
|
2661
2675
|
t.auth,
|
2662
2676
|
"internal-error"
|
@@ -2676,28 +2690,28 @@ async function Wi(n, e = !1) {
|
|
2676
2690
|
function Ce(n) {
|
2677
2691
|
return Number(n) * 1e3;
|
2678
2692
|
}
|
2679
|
-
function
|
2693
|
+
function Xe(n) {
|
2680
2694
|
const [e, t, r] = n.split(".");
|
2681
2695
|
if (e === void 0 || t === void 0 || r === void 0)
|
2682
2696
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2683
2697
|
try {
|
2684
|
-
const i =
|
2698
|
+
const i = Gt(t);
|
2685
2699
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2686
2700
|
} catch (i) {
|
2687
2701
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
2688
2702
|
}
|
2689
2703
|
}
|
2690
2704
|
function It(n) {
|
2691
|
-
const e =
|
2692
|
-
return
|
2705
|
+
const e = Xe(n);
|
2706
|
+
return u(
|
2693
2707
|
e,
|
2694
2708
|
"internal-error"
|
2695
2709
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2696
|
-
),
|
2710
|
+
), u(
|
2697
2711
|
typeof e.exp < "u",
|
2698
2712
|
"internal-error"
|
2699
2713
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2700
|
-
),
|
2714
|
+
), u(
|
2701
2715
|
typeof e.iat < "u",
|
2702
2716
|
"internal-error"
|
2703
2717
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2725,10 +2739,10 @@ async function K(n, e, t = !1) {
|
|
2725
2739
|
try {
|
2726
2740
|
return await e;
|
2727
2741
|
} catch (r) {
|
2728
|
-
throw r instanceof M &&
|
2742
|
+
throw r instanceof M && Ji(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2729
2743
|
}
|
2730
2744
|
}
|
2731
|
-
function
|
2745
|
+
function Ji({ code: n }) {
|
2732
2746
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2733
2747
|
}
|
2734
2748
|
/**
|
@@ -2747,7 +2761,7 @@ function zi({ code: n }) {
|
|
2747
2761
|
* See the License for the specific language governing permissions and
|
2748
2762
|
* limitations under the License.
|
2749
2763
|
*/
|
2750
|
-
class
|
2764
|
+
class Yi {
|
2751
2765
|
constructor(e) {
|
2752
2766
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
2753
2767
|
}
|
@@ -2809,7 +2823,7 @@ class Zi {
|
|
2809
2823
|
* See the License for the specific language governing permissions and
|
2810
2824
|
* limitations under the License.
|
2811
2825
|
*/
|
2812
|
-
class
|
2826
|
+
class je {
|
2813
2827
|
constructor(e, t) {
|
2814
2828
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2815
2829
|
}
|
@@ -2842,10 +2856,10 @@ class He {
|
|
2842
2856
|
* See the License for the specific language governing permissions and
|
2843
2857
|
* limitations under the License.
|
2844
2858
|
*/
|
2845
|
-
async function
|
2859
|
+
async function me(n) {
|
2846
2860
|
var e;
|
2847
2861
|
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2848
|
-
|
2862
|
+
u(
|
2849
2863
|
i == null ? void 0 : i.users.length,
|
2850
2864
|
t,
|
2851
2865
|
"internal-error"
|
@@ -2853,7 +2867,7 @@ async function fe(n) {
|
|
2853
2867
|
);
|
2854
2868
|
const s = i.users[0];
|
2855
2869
|
n._notifyReloadListener(s);
|
2856
|
-
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c =
|
2870
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c = Ki(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = o ? l : !1, h = {
|
2857
2871
|
uid: s.localId,
|
2858
2872
|
displayName: s.displayName || null,
|
2859
2873
|
photoURL: s.photoUrl || null,
|
@@ -2862,21 +2876,21 @@ async function fe(n) {
|
|
2862
2876
|
phoneNumber: s.phoneNumber || null,
|
2863
2877
|
tenantId: s.tenantId || null,
|
2864
2878
|
providerData: c,
|
2865
|
-
metadata: new
|
2866
|
-
isAnonymous:
|
2879
|
+
metadata: new je(s.createdAt, s.lastLoginAt),
|
2880
|
+
isAnonymous: d
|
2867
2881
|
};
|
2868
|
-
Object.assign(n,
|
2882
|
+
Object.assign(n, h);
|
2869
2883
|
}
|
2870
|
-
async function
|
2884
|
+
async function Xi(n) {
|
2871
2885
|
const e = z(n);
|
2872
|
-
await
|
2886
|
+
await me(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2873
2887
|
}
|
2874
|
-
function
|
2888
|
+
function Ki(n, e) {
|
2875
2889
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2876
2890
|
}
|
2877
2891
|
function cn(n) {
|
2878
2892
|
return n.map((e) => {
|
2879
|
-
var { providerId: t } = e, r =
|
2893
|
+
var { providerId: t } = e, r = Ze(e, ["providerId"]);
|
2880
2894
|
return {
|
2881
2895
|
providerId: t,
|
2882
2896
|
uid: r.rawId || "",
|
@@ -2903,7 +2917,7 @@ function cn(n) {
|
|
2903
2917
|
* See the License for the specific language governing permissions and
|
2904
2918
|
* limitations under the License.
|
2905
2919
|
*/
|
2906
|
-
async function
|
2920
|
+
async function qi(n, e) {
|
2907
2921
|
const t = await rn(n, {}, async () => {
|
2908
2922
|
const r = Q({
|
2909
2923
|
grant_type: "refresh_token",
|
@@ -2924,8 +2938,8 @@ async function Xi(n, e) {
|
|
2924
2938
|
refreshToken: t.refresh_token
|
2925
2939
|
};
|
2926
2940
|
}
|
2927
|
-
async function
|
2928
|
-
return
|
2941
|
+
async function Qi(n, e) {
|
2942
|
+
return $(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2929
2943
|
}
|
2930
2944
|
/**
|
2931
2945
|
* @license
|
@@ -2943,7 +2957,7 @@ async function Yi(n, e) {
|
|
2943
2957
|
* See the License for the specific language governing permissions and
|
2944
2958
|
* limitations under the License.
|
2945
2959
|
*/
|
2946
|
-
class
|
2960
|
+
class j {
|
2947
2961
|
constructor() {
|
2948
2962
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2949
2963
|
}
|
@@ -2951,15 +2965,15 @@ class H {
|
|
2951
2965
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
2952
2966
|
}
|
2953
2967
|
updateFromServerResponse(e) {
|
2954
|
-
|
2968
|
+
u(
|
2955
2969
|
e.idToken,
|
2956
2970
|
"internal-error"
|
2957
2971
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2958
|
-
),
|
2972
|
+
), u(
|
2959
2973
|
typeof e.idToken < "u",
|
2960
2974
|
"internal-error"
|
2961
2975
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2962
|
-
),
|
2976
|
+
), u(
|
2963
2977
|
typeof e.refreshToken < "u",
|
2964
2978
|
"internal-error"
|
2965
2979
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2968,7 +2982,7 @@ class H {
|
|
2968
2982
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
|
2969
2983
|
}
|
2970
2984
|
updateFromIdToken(e) {
|
2971
|
-
|
2985
|
+
u(
|
2972
2986
|
e.length !== 0,
|
2973
2987
|
"internal-error"
|
2974
2988
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2977,7 +2991,7 @@ class H {
|
|
2977
2991
|
this.updateTokensAndExpiration(e, null, t);
|
2978
2992
|
}
|
2979
2993
|
async getToken(e, t = !1) {
|
2980
|
-
return !t && this.accessToken && !this.isExpired ? this.accessToken : (
|
2994
|
+
return !t && this.accessToken && !this.isExpired ? this.accessToken : (u(
|
2981
2995
|
this.refreshToken,
|
2982
2996
|
e,
|
2983
2997
|
"user-token-expired"
|
@@ -2988,19 +3002,19 @@ class H {
|
|
2988
3002
|
this.refreshToken = null;
|
2989
3003
|
}
|
2990
3004
|
async refresh(e, t) {
|
2991
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
3005
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await qi(e, t);
|
2992
3006
|
this.updateTokensAndExpiration(r, i, Number(s));
|
2993
3007
|
}
|
2994
3008
|
updateTokensAndExpiration(e, t, r) {
|
2995
3009
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
2996
3010
|
}
|
2997
3011
|
static fromJSON(e, t) {
|
2998
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new
|
2999
|
-
return r && (
|
3012
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new j();
|
3013
|
+
return r && (u(typeof r == "string", "internal-error", {
|
3000
3014
|
appName: e
|
3001
|
-
}), a.refreshToken = r), i && (
|
3015
|
+
}), a.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
|
3002
3016
|
appName: e
|
3003
|
-
}), a.accessToken = i), s && (
|
3017
|
+
}), a.accessToken = i), s && (u(typeof s == "number", "internal-error", {
|
3004
3018
|
appName: e
|
3005
3019
|
}), a.expirationTime = s), a;
|
3006
3020
|
}
|
@@ -3015,7 +3029,7 @@ class H {
|
|
3015
3029
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
3016
3030
|
}
|
3017
3031
|
_clone() {
|
3018
|
-
return Object.assign(new
|
3032
|
+
return Object.assign(new j(), this.toJSON());
|
3019
3033
|
}
|
3020
3034
|
_performRefresh() {
|
3021
3035
|
return b("not implemented");
|
@@ -3037,17 +3051,17 @@ class H {
|
|
3037
3051
|
* See the License for the specific language governing permissions and
|
3038
3052
|
* limitations under the License.
|
3039
3053
|
*/
|
3040
|
-
function
|
3041
|
-
|
3054
|
+
function R(n, e) {
|
3055
|
+
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
3042
3056
|
}
|
3043
3057
|
class y {
|
3044
3058
|
constructor(e) {
|
3045
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
3046
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
3059
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = Ze(e, ["uid", "auth", "stsTokenManager"]);
|
3060
|
+
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);
|
3047
3061
|
}
|
3048
3062
|
async getIdToken(e) {
|
3049
3063
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
3050
|
-
return
|
3064
|
+
return u(
|
3051
3065
|
t,
|
3052
3066
|
this.auth,
|
3053
3067
|
"internal-error"
|
@@ -3055,13 +3069,13 @@ class y {
|
|
3055
3069
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
3056
3070
|
}
|
3057
3071
|
getIdTokenResult(e) {
|
3058
|
-
return
|
3072
|
+
return Zi(this, e);
|
3059
3073
|
}
|
3060
3074
|
reload() {
|
3061
|
-
return
|
3075
|
+
return Xi(this);
|
3062
3076
|
}
|
3063
3077
|
_assign(e) {
|
3064
|
-
this !== e && (
|
3078
|
+
this !== e && (u(
|
3065
3079
|
this.uid === e.uid,
|
3066
3080
|
this.auth,
|
3067
3081
|
"internal-error"
|
@@ -3073,7 +3087,7 @@ class y {
|
|
3073
3087
|
return t.metadata._copy(this.metadata), t;
|
3074
3088
|
}
|
3075
3089
|
_onReload(e) {
|
3076
|
-
|
3090
|
+
u(
|
3077
3091
|
!this.reloadListener,
|
3078
3092
|
this.auth,
|
3079
3093
|
"internal-error"
|
@@ -3091,13 +3105,13 @@ class y {
|
|
3091
3105
|
}
|
3092
3106
|
async _updateTokensIfNecessary(e, t = !1) {
|
3093
3107
|
let r = !1;
|
3094
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
3108
|
+
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);
|
3095
3109
|
}
|
3096
3110
|
async delete() {
|
3097
3111
|
if (I(this.auth.app))
|
3098
3112
|
return Promise.reject(P(this.auth));
|
3099
3113
|
const e = await this.getIdToken();
|
3100
|
-
return await K(this,
|
3114
|
+
return await K(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
3101
3115
|
}
|
3102
3116
|
toJSON() {
|
3103
3117
|
return Object.assign(Object.assign({
|
@@ -3124,37 +3138,37 @@ class y {
|
|
3124
3138
|
return this.stsTokenManager.refreshToken || "";
|
3125
3139
|
}
|
3126
3140
|
static _fromJSON(e, t) {
|
3127
|
-
var r, i, s, a, c, o, l,
|
3128
|
-
const
|
3129
|
-
|
3141
|
+
var r, i, s, a, c, o, l, d;
|
3142
|
+
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, F = (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;
|
3143
|
+
u(
|
3130
3144
|
Te && at,
|
3131
3145
|
e,
|
3132
3146
|
"internal-error"
|
3133
3147
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3134
3148
|
);
|
3135
|
-
const Pn =
|
3136
|
-
|
3149
|
+
const Pn = j.fromJSON(this.name, at);
|
3150
|
+
u(
|
3137
3151
|
typeof Te == "string",
|
3138
3152
|
e,
|
3139
3153
|
"internal-error"
|
3140
3154
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3141
|
-
),
|
3155
|
+
), R(h, e.name), R(m, e.name), u(
|
3142
3156
|
typeof it == "boolean",
|
3143
3157
|
e,
|
3144
3158
|
"internal-error"
|
3145
3159
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3146
|
-
),
|
3160
|
+
), u(
|
3147
3161
|
typeof st == "boolean",
|
3148
3162
|
e,
|
3149
3163
|
"internal-error"
|
3150
3164
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3151
|
-
),
|
3152
|
-
const
|
3165
|
+
), R(v, e.name), R(F, e.name), R(tt, e.name), R(Ee, e.name), R(nt, e.name), R(rt, e.name);
|
3166
|
+
const ke = new y({
|
3153
3167
|
uid: Te,
|
3154
3168
|
auth: e,
|
3155
3169
|
email: m,
|
3156
3170
|
emailVerified: it,
|
3157
|
-
displayName:
|
3171
|
+
displayName: h,
|
3158
3172
|
isAnonymous: st,
|
3159
3173
|
photoURL: F,
|
3160
3174
|
phoneNumber: v,
|
@@ -3163,7 +3177,7 @@ class y {
|
|
3163
3177
|
createdAt: nt,
|
3164
3178
|
lastLoginAt: rt
|
3165
3179
|
});
|
3166
|
-
return we && Array.isArray(we) && (
|
3180
|
+
return we && Array.isArray(we) && (ke.providerData = we.map((Mn) => Object.assign({}, Mn))), Ee && (ke._redirectEventId = Ee), ke;
|
3167
3181
|
}
|
3168
3182
|
/**
|
3169
3183
|
* Initialize a User from an idToken server response
|
@@ -3171,7 +3185,7 @@ class y {
|
|
3171
3185
|
* @param idTokenResponse
|
3172
3186
|
*/
|
3173
3187
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
3174
|
-
const i = new
|
3188
|
+
const i = new j();
|
3175
3189
|
i.updateFromServerResponse(t);
|
3176
3190
|
const s = new y({
|
3177
3191
|
uid: t.localId,
|
@@ -3179,7 +3193,7 @@ class y {
|
|
3179
3193
|
stsTokenManager: i,
|
3180
3194
|
isAnonymous: r
|
3181
3195
|
});
|
3182
|
-
return await
|
3196
|
+
return await me(s), s;
|
3183
3197
|
}
|
3184
3198
|
/**
|
3185
3199
|
* Initialize a User from an idToken server response
|
@@ -3188,12 +3202,12 @@ class y {
|
|
3188
3202
|
*/
|
3189
3203
|
static async _fromGetAccountInfoResponse(e, t, r) {
|
3190
3204
|
const i = t.users[0];
|
3191
|
-
|
3205
|
+
u(
|
3192
3206
|
i.localId !== void 0,
|
3193
3207
|
"internal-error"
|
3194
3208
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3195
3209
|
);
|
3196
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new
|
3210
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new j();
|
3197
3211
|
c.updateFromIdToken(r);
|
3198
3212
|
const o = new y({
|
3199
3213
|
uid: i.localId,
|
@@ -3209,7 +3223,7 @@ class y {
|
|
3209
3223
|
phoneNumber: i.phoneNumber || null,
|
3210
3224
|
tenantId: i.tenantId || null,
|
3211
3225
|
providerData: s,
|
3212
|
-
metadata: new
|
3226
|
+
metadata: new je(i.createdAt, i.lastLoginAt),
|
3213
3227
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
3214
3228
|
};
|
3215
3229
|
return Object.assign(o, l), o;
|
@@ -3233,9 +3247,9 @@ class y {
|
|
3233
3247
|
*/
|
3234
3248
|
const bt = /* @__PURE__ */ new Map();
|
3235
3249
|
function E(n) {
|
3236
|
-
|
3250
|
+
k(n instanceof Function, "Expected a class definition");
|
3237
3251
|
let e = bt.get(n);
|
3238
|
-
return e ? (
|
3252
|
+
return e ? (k(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
|
3239
3253
|
}
|
3240
3254
|
/**
|
3241
3255
|
* @license
|
@@ -3296,7 +3310,7 @@ const yt = ln;
|
|
3296
3310
|
function ae(n, e, t) {
|
3297
3311
|
return `firebase:${n}:${e}:${t}`;
|
3298
3312
|
}
|
3299
|
-
class
|
3313
|
+
class G {
|
3300
3314
|
constructor(e, t, r) {
|
3301
3315
|
this.persistence = e, this.auth = t, this.userKey = r;
|
3302
3316
|
const { config: i, name: s } = this.auth;
|
@@ -3327,7 +3341,7 @@ class V {
|
|
3327
3341
|
}
|
3328
3342
|
static async create(e, t, r = "authUser") {
|
3329
3343
|
if (!t.length)
|
3330
|
-
return new
|
3344
|
+
return new G(E(yt), e, r);
|
3331
3345
|
const i = (await Promise.all(t.map(async (l) => {
|
3332
3346
|
if (await l._isAvailable())
|
3333
3347
|
return l;
|
@@ -3337,22 +3351,22 @@ class V {
|
|
3337
3351
|
let c = null;
|
3338
3352
|
for (const l of t)
|
3339
3353
|
try {
|
3340
|
-
const
|
3341
|
-
if (
|
3342
|
-
const
|
3343
|
-
l !== s && (c =
|
3354
|
+
const d = await l._get(a);
|
3355
|
+
if (d) {
|
3356
|
+
const h = y._fromJSON(e, d);
|
3357
|
+
l !== s && (c = h), s = l;
|
3344
3358
|
break;
|
3345
3359
|
}
|
3346
3360
|
} catch {
|
3347
3361
|
}
|
3348
3362
|
const o = i.filter((l) => l._shouldAllowMigration);
|
3349
|
-
return !s._shouldAllowMigration || !o.length ? new
|
3363
|
+
return !s._shouldAllowMigration || !o.length ? new G(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
|
3350
3364
|
if (l !== s)
|
3351
3365
|
try {
|
3352
3366
|
await l._remove(a);
|
3353
3367
|
} catch {
|
3354
3368
|
}
|
3355
|
-
})), new
|
3369
|
+
})), new G(s, e, r));
|
3356
3370
|
}
|
3357
3371
|
}
|
3358
3372
|
/**
|
@@ -3385,7 +3399,7 @@ function Et(n) {
|
|
3385
3399
|
return "Firefox";
|
3386
3400
|
if (e.includes("silk/"))
|
3387
3401
|
return "Silk";
|
3388
|
-
if (
|
3402
|
+
if (fn(e))
|
3389
3403
|
return "Blackberry";
|
3390
3404
|
if (_n(e))
|
3391
3405
|
return "Webos";
|
@@ -3393,7 +3407,7 @@ function Et(n) {
|
|
3393
3407
|
return "Safari";
|
3394
3408
|
if ((e.includes("chrome/") || hn(e)) && !e.includes("edge/"))
|
3395
3409
|
return "Chrome";
|
3396
|
-
if (
|
3410
|
+
if (mn(e))
|
3397
3411
|
return "Android";
|
3398
3412
|
{
|
3399
3413
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
@@ -3415,10 +3429,10 @@ function hn(n = f()) {
|
|
3415
3429
|
function pn(n = f()) {
|
3416
3430
|
return /iemobile/i.test(n);
|
3417
3431
|
}
|
3418
|
-
function
|
3432
|
+
function mn(n = f()) {
|
3419
3433
|
return /android/i.test(n);
|
3420
3434
|
}
|
3421
|
-
function
|
3435
|
+
function fn(n = f()) {
|
3422
3436
|
return /blackberry/i.test(n);
|
3423
3437
|
}
|
3424
3438
|
function _n(n = f()) {
|
@@ -3427,15 +3441,15 @@ function _n(n = f()) {
|
|
3427
3441
|
function Ke(n = f()) {
|
3428
3442
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3429
3443
|
}
|
3430
|
-
function
|
3444
|
+
function es(n = f()) {
|
3431
3445
|
var e;
|
3432
3446
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3433
3447
|
}
|
3434
|
-
function
|
3435
|
-
return
|
3448
|
+
function ts() {
|
3449
|
+
return vr() && document.documentMode === 10;
|
3436
3450
|
}
|
3437
3451
|
function gn(n = f()) {
|
3438
|
-
return Ke(n) ||
|
3452
|
+
return Ke(n) || mn(n) || _n(n) || fn(n) || /windows phone/i.test(n) || pn(n);
|
3439
3453
|
}
|
3440
3454
|
/**
|
3441
3455
|
* @license
|
@@ -3484,7 +3498,7 @@ function vn(n, e = []) {
|
|
3484
3498
|
* See the License for the specific language governing permissions and
|
3485
3499
|
* limitations under the License.
|
3486
3500
|
*/
|
3487
|
-
class
|
3501
|
+
class ns {
|
3488
3502
|
constructor(e) {
|
3489
3503
|
this.auth = e, this.queue = [];
|
3490
3504
|
}
|
@@ -3539,8 +3553,8 @@ class Qi {
|
|
3539
3553
|
* See the License for the specific language governing permissions and
|
3540
3554
|
* limitations under the License.
|
3541
3555
|
*/
|
3542
|
-
async function
|
3543
|
-
return
|
3556
|
+
async function rs(n, e = {}) {
|
3557
|
+
return $(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3544
3558
|
}
|
3545
3559
|
/**
|
3546
3560
|
* @license
|
@@ -3558,12 +3572,12 @@ async function es(n, e = {}) {
|
|
3558
3572
|
* See the License for the specific language governing permissions and
|
3559
3573
|
* limitations under the License.
|
3560
3574
|
*/
|
3561
|
-
const
|
3562
|
-
class
|
3575
|
+
const is = 6;
|
3576
|
+
class ss {
|
3563
3577
|
constructor(e) {
|
3564
3578
|
var t, r, i, s;
|
3565
3579
|
const a = e.customStrengthOptions;
|
3566
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t :
|
3580
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : is, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
|
3567
3581
|
}
|
3568
3582
|
validatePassword(e) {
|
3569
3583
|
var t, r, i, s, a, c;
|
@@ -3646,14 +3660,14 @@ class ns {
|
|
3646
3660
|
* See the License for the specific language governing permissions and
|
3647
3661
|
* limitations under the License.
|
3648
3662
|
*/
|
3649
|
-
class
|
3663
|
+
class as {
|
3650
3664
|
constructor(e, t, r, i) {
|
3651
|
-
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
|
3665
|
+
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;
|
3652
3666
|
}
|
3653
3667
|
_initializeWithPersistence(e, t) {
|
3654
3668
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3655
3669
|
var r, i;
|
3656
|
-
if (!this._deleted && (this.persistenceManager = await
|
3670
|
+
if (!this._deleted && (this.persistenceManager = await G.create(this, e), !this._deleted)) {
|
3657
3671
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3658
3672
|
try {
|
3659
3673
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3716,7 +3730,7 @@ class rs {
|
|
3716
3730
|
}
|
3717
3731
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
3718
3732
|
}
|
3719
|
-
return
|
3733
|
+
return u(
|
3720
3734
|
this._popupRedirectResolver,
|
3721
3735
|
this,
|
3722
3736
|
"argument-error"
|
@@ -3734,7 +3748,7 @@ class rs {
|
|
3734
3748
|
}
|
3735
3749
|
async reloadAndSetCurrentUserOrClear(e) {
|
3736
3750
|
try {
|
3737
|
-
await
|
3751
|
+
await me(e);
|
3738
3752
|
} catch (t) {
|
3739
3753
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3740
3754
|
return this.directlySetCurrentUser(null);
|
@@ -3742,7 +3756,7 @@ class rs {
|
|
3742
3756
|
return this.directlySetCurrentUser(e);
|
3743
3757
|
}
|
3744
3758
|
useDeviceLanguage() {
|
3745
|
-
this.languageCode =
|
3759
|
+
this.languageCode = Gi();
|
3746
3760
|
}
|
3747
3761
|
async _delete() {
|
3748
3762
|
this._deleted = !0;
|
@@ -3751,7 +3765,7 @@ class rs {
|
|
3751
3765
|
if (I(this.app))
|
3752
3766
|
return Promise.reject(P(this));
|
3753
3767
|
const t = e ? z(e) : null;
|
3754
|
-
return t &&
|
3768
|
+
return t && u(
|
3755
3769
|
t.auth.config.apiKey === this.config.apiKey,
|
3756
3770
|
this,
|
3757
3771
|
"invalid-user-token"
|
@@ -3760,7 +3774,7 @@ class rs {
|
|
3760
3774
|
}
|
3761
3775
|
async _updateCurrentUser(e, t = !1) {
|
3762
3776
|
if (!this._deleted)
|
3763
|
-
return e &&
|
3777
|
+
return e && u(
|
3764
3778
|
this.tenantId === e.tenantId,
|
3765
3779
|
this,
|
3766
3780
|
"tenant-id-mismatch"
|
@@ -3793,7 +3807,7 @@ class rs {
|
|
3793
3807
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3794
3808
|
}
|
3795
3809
|
async _updatePasswordPolicy() {
|
3796
|
-
const e = await
|
3810
|
+
const e = await rs(this), t = new ss(e);
|
3797
3811
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3798
3812
|
}
|
3799
3813
|
_getPersistence() {
|
@@ -3833,7 +3847,7 @@ class rs {
|
|
3833
3847
|
token: e,
|
3834
3848
|
idToken: t
|
3835
3849
|
};
|
3836
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
3850
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Qi(this, r);
|
3837
3851
|
}
|
3838
3852
|
}
|
3839
3853
|
toJSON() {
|
@@ -3852,12 +3866,12 @@ class rs {
|
|
3852
3866
|
async getOrInitRedirectPersistenceManager(e) {
|
3853
3867
|
if (!this.redirectPersistenceManager) {
|
3854
3868
|
const t = e && E(e) || this._popupRedirectResolver;
|
3855
|
-
|
3869
|
+
u(
|
3856
3870
|
t,
|
3857
3871
|
this,
|
3858
3872
|
"argument-error"
|
3859
3873
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3860
|
-
), this.redirectPersistenceManager = await
|
3874
|
+
), this.redirectPersistenceManager = await G.create(
|
3861
3875
|
this,
|
3862
3876
|
[E(t._redirectPersistence)],
|
3863
3877
|
"redirectUser"
|
@@ -3907,7 +3921,7 @@ class rs {
|
|
3907
3921
|
const s = typeof t == "function" ? t : t.next.bind(t);
|
3908
3922
|
let a = !1;
|
3909
3923
|
const c = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
3910
|
-
if (
|
3924
|
+
if (u(
|
3911
3925
|
c,
|
3912
3926
|
this,
|
3913
3927
|
"internal-error"
|
@@ -3938,7 +3952,7 @@ class rs {
|
|
3938
3952
|
return this.operations = this.operations.then(e, e), this.operations;
|
3939
3953
|
}
|
3940
3954
|
get assertedPersistence() {
|
3941
|
-
return
|
3955
|
+
return u(
|
3942
3956
|
this.persistenceManager,
|
3943
3957
|
this,
|
3944
3958
|
"internal-error"
|
@@ -3976,7 +3990,7 @@ class rs {
|
|
3976
3990
|
async _getAppCheckToken() {
|
3977
3991
|
var e;
|
3978
3992
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
3979
|
-
return t != null && t.error &&
|
3993
|
+
return t != null && t.error && xi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3980
3994
|
}
|
3981
3995
|
}
|
3982
3996
|
function Ie(n) {
|
@@ -3984,10 +3998,10 @@ function Ie(n) {
|
|
3984
3998
|
}
|
3985
3999
|
class Tt {
|
3986
4000
|
constructor(e) {
|
3987
|
-
this.auth = e, this.observer = null, this.addObserver =
|
4001
|
+
this.auth = e, this.observer = null, this.addObserver = kr((t) => this.observer = t);
|
3988
4002
|
}
|
3989
4003
|
get next() {
|
3990
|
-
return
|
4004
|
+
return u(
|
3991
4005
|
this.observer,
|
3992
4006
|
this.auth,
|
3993
4007
|
"internal-error"
|
@@ -4019,16 +4033,16 @@ let qe = {
|
|
4019
4033
|
recaptchaEnterpriseScript: "",
|
4020
4034
|
gapiScript: ""
|
4021
4035
|
};
|
4022
|
-
function
|
4036
|
+
function os(n) {
|
4023
4037
|
qe = n;
|
4024
4038
|
}
|
4025
|
-
function
|
4039
|
+
function cs(n) {
|
4026
4040
|
return qe.loadJS(n);
|
4027
4041
|
}
|
4028
|
-
function
|
4042
|
+
function ls() {
|
4029
4043
|
return qe.gapiScript;
|
4030
4044
|
}
|
4031
|
-
function
|
4045
|
+
function ds(n) {
|
4032
4046
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
4033
4047
|
}
|
4034
4048
|
/**
|
@@ -4047,8 +4061,8 @@ function os(n) {
|
|
4047
4061
|
* See the License for the specific language governing permissions and
|
4048
4062
|
* limitations under the License.
|
4049
4063
|
*/
|
4050
|
-
function
|
4051
|
-
const t =
|
4064
|
+
function us(n, e) {
|
4065
|
+
const t = Yt(n, "auth");
|
4052
4066
|
if (t.isInitialized()) {
|
4053
4067
|
const i = t.getImmediate(), s = t.getOptions();
|
4054
4068
|
if (ue(s, e ?? {}))
|
@@ -4061,36 +4075,36 @@ function cs(n, e) {
|
|
4061
4075
|
}
|
4062
4076
|
return t.initialize({ options: e });
|
4063
4077
|
}
|
4064
|
-
function
|
4078
|
+
function hs(n, e) {
|
4065
4079
|
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(E);
|
4066
4080
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
4067
4081
|
}
|
4068
|
-
function
|
4082
|
+
function ps(n, e, t) {
|
4069
4083
|
const r = Ie(n);
|
4070
|
-
|
4084
|
+
u(
|
4071
4085
|
r._canInitEmulator,
|
4072
4086
|
r,
|
4073
4087
|
"emulator-config-failed"
|
4074
4088
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
4075
|
-
),
|
4089
|
+
), u(
|
4076
4090
|
/^https?:\/\//.test(e),
|
4077
4091
|
r,
|
4078
4092
|
"invalid-emulator-scheme"
|
4079
4093
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
4080
4094
|
);
|
4081
|
-
const i = !1, s = In(e), { host: a, port: c } =
|
4095
|
+
const i = !1, s = In(e), { host: a, port: c } = ms(e), o = c === null ? "" : `:${c}`;
|
4082
4096
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
4083
4097
|
host: a,
|
4084
4098
|
port: c,
|
4085
4099
|
protocol: s.replace(":", ""),
|
4086
4100
|
options: Object.freeze({ disableWarnings: i })
|
4087
|
-
}),
|
4101
|
+
}), fs();
|
4088
4102
|
}
|
4089
4103
|
function In(n) {
|
4090
4104
|
const e = n.indexOf(":");
|
4091
4105
|
return e < 0 ? "" : n.substr(0, e + 1);
|
4092
4106
|
}
|
4093
|
-
function
|
4107
|
+
function ms(n) {
|
4094
4108
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
4095
4109
|
if (!t)
|
4096
4110
|
return { host: "", port: null };
|
@@ -4109,7 +4123,7 @@ function wt(n) {
|
|
4109
4123
|
const e = Number(n);
|
4110
4124
|
return isNaN(e) ? null : e;
|
4111
4125
|
}
|
4112
|
-
function
|
4126
|
+
function fs() {
|
4113
4127
|
function n() {
|
4114
4128
|
const e = document.createElement("p"), t = e.style;
|
4115
4129
|
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);
|
@@ -4174,7 +4188,7 @@ class bn {
|
|
4174
4188
|
* See the License for the specific language governing permissions and
|
4175
4189
|
* limitations under the License.
|
4176
4190
|
*/
|
4177
|
-
async function
|
4191
|
+
async function V(n, e) {
|
4178
4192
|
return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
|
4179
4193
|
}
|
4180
4194
|
/**
|
@@ -4193,7 +4207,7 @@ async function G(n, e) {
|
|
4193
4207
|
* See the License for the specific language governing permissions and
|
4194
4208
|
* limitations under the License.
|
4195
4209
|
*/
|
4196
|
-
const
|
4210
|
+
const _s = "http://localhost";
|
4197
4211
|
class U extends bn {
|
4198
4212
|
constructor() {
|
4199
4213
|
super(...arguments), this.pendingToken = null;
|
@@ -4228,7 +4242,7 @@ class U extends bn {
|
|
4228
4242
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
4229
4243
|
*/
|
4230
4244
|
static fromJSON(e) {
|
4231
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4245
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ze(t, ["providerId", "signInMethod"]);
|
4232
4246
|
if (!r || !i)
|
4233
4247
|
return null;
|
4234
4248
|
const a = new U(r, i);
|
@@ -4237,21 +4251,21 @@ class U extends bn {
|
|
4237
4251
|
/** @internal */
|
4238
4252
|
_getIdTokenResponse(e) {
|
4239
4253
|
const t = this.buildRequest();
|
4240
|
-
return
|
4254
|
+
return V(e, t);
|
4241
4255
|
}
|
4242
4256
|
/** @internal */
|
4243
4257
|
_linkToIdToken(e, t) {
|
4244
4258
|
const r = this.buildRequest();
|
4245
|
-
return r.idToken = t,
|
4259
|
+
return r.idToken = t, V(e, r);
|
4246
4260
|
}
|
4247
4261
|
/** @internal */
|
4248
4262
|
_getReauthenticationResolver(e) {
|
4249
4263
|
const t = this.buildRequest();
|
4250
|
-
return t.autoCreate = !1,
|
4264
|
+
return t.autoCreate = !1, V(e, t);
|
4251
4265
|
}
|
4252
4266
|
buildRequest() {
|
4253
4267
|
const e = {
|
4254
|
-
requestUri:
|
4268
|
+
requestUri: _s,
|
4255
4269
|
returnSecureToken: !0
|
4256
4270
|
};
|
4257
4271
|
if (this.pendingToken)
|
@@ -4652,7 +4666,7 @@ class B {
|
|
4652
4666
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4653
4667
|
}
|
4654
4668
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4655
|
-
const s = await y._fromIdTokenResponse(e, r, i), a =
|
4669
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = kt(r);
|
4656
4670
|
return new B({
|
4657
4671
|
user: s,
|
4658
4672
|
providerId: a,
|
@@ -4666,7 +4680,7 @@ class B {
|
|
4666
4680
|
/* reload */
|
4667
4681
|
!0
|
4668
4682
|
);
|
4669
|
-
const i =
|
4683
|
+
const i = kt(r);
|
4670
4684
|
return new B({
|
4671
4685
|
user: e,
|
4672
4686
|
providerId: i,
|
@@ -4675,7 +4689,7 @@ class B {
|
|
4675
4689
|
});
|
4676
4690
|
}
|
4677
4691
|
}
|
4678
|
-
function
|
4692
|
+
function kt(n) {
|
4679
4693
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
4680
4694
|
}
|
4681
4695
|
/**
|
@@ -4694,10 +4708,10 @@ function Rt(n) {
|
|
4694
4708
|
* See the License for the specific language governing permissions and
|
4695
4709
|
* limitations under the License.
|
4696
4710
|
*/
|
4697
|
-
class
|
4711
|
+
class fe extends M {
|
4698
4712
|
constructor(e, t, r, i) {
|
4699
4713
|
var s;
|
4700
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4714
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
|
4701
4715
|
appName: e.name,
|
4702
4716
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4703
4717
|
_serverResponse: t.customData._serverResponse,
|
@@ -4705,15 +4719,15 @@ class me extends M {
|
|
4705
4719
|
};
|
4706
4720
|
}
|
4707
4721
|
static _fromErrorAndOperation(e, t, r, i) {
|
4708
|
-
return new
|
4722
|
+
return new fe(e, t, r, i);
|
4709
4723
|
}
|
4710
4724
|
}
|
4711
4725
|
function En(n, e, t, r) {
|
4712
4726
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4713
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4727
|
+
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
4714
4728
|
});
|
4715
4729
|
}
|
4716
|
-
async function
|
4730
|
+
async function gs(n, e, t = !1) {
|
4717
4731
|
const r = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
4718
4732
|
return B._forOperation(n, "link", r);
|
4719
4733
|
}
|
@@ -4733,28 +4747,28 @@ async function fs(n, e, t = !1) {
|
|
4733
4747
|
* See the License for the specific language governing permissions and
|
4734
4748
|
* limitations under the License.
|
4735
4749
|
*/
|
4736
|
-
async function
|
4750
|
+
async function vs(n, e, t = !1) {
|
4737
4751
|
const { auth: r } = n;
|
4738
4752
|
if (I(r.app))
|
4739
4753
|
return Promise.reject(P(r));
|
4740
4754
|
const i = "reauthenticate";
|
4741
4755
|
try {
|
4742
4756
|
const s = await K(n, En(r, i, e, n), t);
|
4743
|
-
|
4757
|
+
u(
|
4744
4758
|
s.idToken,
|
4745
4759
|
r,
|
4746
4760
|
"internal-error"
|
4747
4761
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4748
4762
|
);
|
4749
|
-
const a =
|
4750
|
-
|
4763
|
+
const a = Xe(s.idToken);
|
4764
|
+
u(
|
4751
4765
|
a,
|
4752
4766
|
r,
|
4753
4767
|
"internal-error"
|
4754
4768
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4755
4769
|
);
|
4756
4770
|
const { sub: c } = a;
|
4757
|
-
return
|
4771
|
+
return u(
|
4758
4772
|
n.uid === c,
|
4759
4773
|
r,
|
4760
4774
|
"user-mismatch"
|
@@ -4784,7 +4798,7 @@ async function ms(n, e, t = !1) {
|
|
4784
4798
|
* See the License for the specific language governing permissions and
|
4785
4799
|
* limitations under the License.
|
4786
4800
|
*/
|
4787
|
-
async function
|
4801
|
+
async function Is(n, e, t = !1) {
|
4788
4802
|
if (I(n.app))
|
4789
4803
|
return Promise.reject(P(n));
|
4790
4804
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
@@ -4806,7 +4820,7 @@ async function _s(n, e, t = !1) {
|
|
4806
4820
|
* See the License for the specific language governing permissions and
|
4807
4821
|
* limitations under the License.
|
4808
4822
|
*/
|
4809
|
-
async function
|
4823
|
+
async function bs(n, e) {
|
4810
4824
|
return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
|
4811
4825
|
}
|
4812
4826
|
/**
|
@@ -4825,19 +4839,19 @@ async function gs(n, e) {
|
|
4825
4839
|
* See the License for the specific language governing permissions and
|
4826
4840
|
* limitations under the License.
|
4827
4841
|
*/
|
4828
|
-
async function
|
4842
|
+
async function ys(n, e) {
|
4829
4843
|
if (I(n.app))
|
4830
4844
|
return Promise.reject(P(n));
|
4831
|
-
const t = Ie(n), r = await
|
4845
|
+
const t = Ie(n), r = await bs(t, {
|
4832
4846
|
token: e,
|
4833
4847
|
returnSecureToken: !0
|
4834
4848
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4835
4849
|
return await t._updateCurrentUser(i.user), i;
|
4836
4850
|
}
|
4837
|
-
function
|
4851
|
+
function Es(n, e, t, r) {
|
4838
4852
|
return z(n).onIdTokenChanged(e, t, r);
|
4839
4853
|
}
|
4840
|
-
function
|
4854
|
+
function Ts(n, e, t) {
|
4841
4855
|
return z(n).beforeAuthStateChanged(e, t);
|
4842
4856
|
}
|
4843
4857
|
const _e = "__sak";
|
@@ -4898,7 +4912,7 @@ class Tn {
|
|
4898
4912
|
* See the License for the specific language governing permissions and
|
4899
4913
|
* limitations under the License.
|
4900
4914
|
*/
|
4901
|
-
const
|
4915
|
+
const ws = 1e3, ks = 10;
|
4902
4916
|
class wn extends Tn {
|
4903
4917
|
constructor() {
|
4904
4918
|
super(
|
@@ -4926,7 +4940,7 @@ class wn extends Tn {
|
|
4926
4940
|
const a = this.storage.getItem(r);
|
4927
4941
|
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4928
4942
|
}, s = this.storage.getItem(r);
|
4929
|
-
|
4943
|
+
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ks) : i();
|
4930
4944
|
}
|
4931
4945
|
notifyListeners(e, t) {
|
4932
4946
|
this.localCache[e] = t;
|
@@ -4948,7 +4962,7 @@ class wn extends Tn {
|
|
4948
4962
|
!0
|
4949
4963
|
);
|
4950
4964
|
});
|
4951
|
-
},
|
4965
|
+
}, ws);
|
4952
4966
|
}
|
4953
4967
|
stopPolling() {
|
4954
4968
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4978,7 +4992,7 @@ class wn extends Tn {
|
|
4978
4992
|
}
|
4979
4993
|
}
|
4980
4994
|
wn.type = "LOCAL";
|
4981
|
-
const
|
4995
|
+
const Rs = wn;
|
4982
4996
|
/**
|
4983
4997
|
* @license
|
4984
4998
|
* Copyright 2020 Google LLC
|
@@ -4995,7 +5009,7 @@ const Ts = wn;
|
|
4995
5009
|
* See the License for the specific language governing permissions and
|
4996
5010
|
* limitations under the License.
|
4997
5011
|
*/
|
4998
|
-
class
|
5012
|
+
class kn extends Tn {
|
4999
5013
|
constructor() {
|
5000
5014
|
super(
|
5001
5015
|
() => window.sessionStorage,
|
@@ -5008,8 +5022,8 @@ class Rn extends Tn {
|
|
5008
5022
|
_removeListener(e, t) {
|
5009
5023
|
}
|
5010
5024
|
}
|
5011
|
-
|
5012
|
-
const
|
5025
|
+
kn.type = "SESSION";
|
5026
|
+
const Rn = kn;
|
5013
5027
|
/**
|
5014
5028
|
* @license
|
5015
5029
|
* Copyright 2019 Google LLC
|
@@ -5026,7 +5040,7 @@ const kn = Rn;
|
|
5026
5040
|
* See the License for the specific language governing permissions and
|
5027
5041
|
* limitations under the License.
|
5028
5042
|
*/
|
5029
|
-
function
|
5043
|
+
function Ss(n) {
|
5030
5044
|
return Promise.all(n.map(async (e) => {
|
5031
5045
|
try {
|
5032
5046
|
return {
|
@@ -5096,7 +5110,7 @@ class be {
|
|
5096
5110
|
eventId: r,
|
5097
5111
|
eventType: i
|
5098
5112
|
});
|
5099
|
-
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await
|
5113
|
+
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await Ss(c);
|
5100
5114
|
t.ports[0].postMessage({
|
5101
5115
|
status: "done",
|
5102
5116
|
eventId: r,
|
@@ -5164,7 +5178,7 @@ function Qe(n = "", e = 10) {
|
|
5164
5178
|
* See the License for the specific language governing permissions and
|
5165
5179
|
* limitations under the License.
|
5166
5180
|
*/
|
5167
|
-
class
|
5181
|
+
class As {
|
5168
5182
|
constructor(e) {
|
5169
5183
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
5170
5184
|
}
|
@@ -5200,7 +5214,7 @@ class Rs {
|
|
5200
5214
|
return new Promise((c, o) => {
|
5201
5215
|
const l = Qe("", 20);
|
5202
5216
|
i.port1.start();
|
5203
|
-
const
|
5217
|
+
const d = setTimeout(() => {
|
5204
5218
|
o(new Error(
|
5205
5219
|
"unsupported_event"
|
5206
5220
|
/* _MessageError.UNSUPPORTED_EVENT */
|
@@ -5208,12 +5222,12 @@ class Rs {
|
|
5208
5222
|
}, r);
|
5209
5223
|
a = {
|
5210
5224
|
messageChannel: i,
|
5211
|
-
onMessage(
|
5212
|
-
const m =
|
5225
|
+
onMessage(h) {
|
5226
|
+
const m = h;
|
5213
5227
|
if (m.data.eventId === l)
|
5214
5228
|
switch (m.data.status) {
|
5215
5229
|
case "ack":
|
5216
|
-
clearTimeout(
|
5230
|
+
clearTimeout(d), s = setTimeout(
|
5217
5231
|
() => {
|
5218
5232
|
o(new Error(
|
5219
5233
|
"timeout"
|
@@ -5228,7 +5242,7 @@ class Rs {
|
|
5228
5242
|
clearTimeout(s), c(m.data.response);
|
5229
5243
|
break;
|
5230
5244
|
default:
|
5231
|
-
clearTimeout(
|
5245
|
+
clearTimeout(d), clearTimeout(s), o(new Error(
|
5232
5246
|
"invalid_response"
|
5233
5247
|
/* _MessageError.INVALID_RESPONSE */
|
5234
5248
|
));
|
@@ -5264,7 +5278,7 @@ class Rs {
|
|
5264
5278
|
function g() {
|
5265
5279
|
return window;
|
5266
5280
|
}
|
5267
|
-
function
|
5281
|
+
function Os(n) {
|
5268
5282
|
g().location.href = n;
|
5269
5283
|
}
|
5270
5284
|
/**
|
@@ -5286,7 +5300,7 @@ function ks(n) {
|
|
5286
5300
|
function Sn() {
|
5287
5301
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
5288
5302
|
}
|
5289
|
-
async function
|
5303
|
+
async function Ns() {
|
5290
5304
|
if (!(navigator != null && navigator.serviceWorker))
|
5291
5305
|
return null;
|
5292
5306
|
try {
|
@@ -5295,11 +5309,11 @@ async function Ss() {
|
|
5295
5309
|
return null;
|
5296
5310
|
}
|
5297
5311
|
}
|
5298
|
-
function
|
5312
|
+
function Cs() {
|
5299
5313
|
var n;
|
5300
5314
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
5301
5315
|
}
|
5302
|
-
function
|
5316
|
+
function Ds() {
|
5303
5317
|
return Sn() ? self : null;
|
5304
5318
|
}
|
5305
5319
|
/**
|
@@ -5318,7 +5332,7 @@ function Os() {
|
|
5318
5332
|
* See the License for the specific language governing permissions and
|
5319
5333
|
* limitations under the License.
|
5320
5334
|
*/
|
5321
|
-
const An = "firebaseLocalStorageDb",
|
5335
|
+
const An = "firebaseLocalStorageDb", Ps = 1, ge = "firebaseLocalStorage", On = "fbase_key";
|
5322
5336
|
class re {
|
5323
5337
|
constructor(e) {
|
5324
5338
|
this.request = e;
|
@@ -5336,12 +5350,12 @@ class re {
|
|
5336
5350
|
function ye(n, e) {
|
5337
5351
|
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
5338
5352
|
}
|
5339
|
-
function
|
5353
|
+
function Ms() {
|
5340
5354
|
const n = indexedDB.deleteDatabase(An);
|
5341
5355
|
return new re(n).toPromise();
|
5342
5356
|
}
|
5343
|
-
function
|
5344
|
-
const n = indexedDB.open(An,
|
5357
|
+
function Ge() {
|
5358
|
+
const n = indexedDB.open(An, Ps);
|
5345
5359
|
return new Promise((e, t) => {
|
5346
5360
|
n.addEventListener("error", () => {
|
5347
5361
|
t(n.error);
|
@@ -5354,18 +5368,18 @@ function Ve() {
|
|
5354
5368
|
}
|
5355
5369
|
}), n.addEventListener("success", async () => {
|
5356
5370
|
const r = n.result;
|
5357
|
-
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await
|
5371
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await Ge()));
|
5358
5372
|
});
|
5359
5373
|
});
|
5360
5374
|
}
|
5361
|
-
async function
|
5375
|
+
async function Rt(n, e, t) {
|
5362
5376
|
const r = ye(n, !0).put({
|
5363
5377
|
[On]: e,
|
5364
5378
|
value: t
|
5365
5379
|
});
|
5366
5380
|
return new re(r).toPromise();
|
5367
5381
|
}
|
5368
|
-
async function
|
5382
|
+
async function Ls(n, e) {
|
5369
5383
|
const t = ye(n, !1).get(e), r = await new re(t).toPromise();
|
5370
5384
|
return r === void 0 ? null : r.value;
|
5371
5385
|
}
|
@@ -5373,7 +5387,7 @@ function St(n, e) {
|
|
5373
5387
|
const t = ye(n, !0).delete(e);
|
5374
5388
|
return new re(t).toPromise();
|
5375
5389
|
}
|
5376
|
-
const
|
5390
|
+
const Us = 800, Bs = 3;
|
5377
5391
|
class Nn {
|
5378
5392
|
constructor() {
|
5379
5393
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
@@ -5381,7 +5395,7 @@ class Nn {
|
|
5381
5395
|
});
|
5382
5396
|
}
|
5383
5397
|
async _openDb() {
|
5384
|
-
return this.db ? this.db : (this.db = await
|
5398
|
+
return this.db ? this.db : (this.db = await Ge(), this.db);
|
5385
5399
|
}
|
5386
5400
|
async _withRetries(e) {
|
5387
5401
|
let t = 0;
|
@@ -5390,7 +5404,7 @@ class Nn {
|
|
5390
5404
|
const r = await this._openDb();
|
5391
5405
|
return await e(r);
|
5392
5406
|
} catch (r) {
|
5393
|
-
if (t++ >
|
5407
|
+
if (t++ > Bs)
|
5394
5408
|
throw r;
|
5395
5409
|
this.db && (this.db.close(), this.db = void 0);
|
5396
5410
|
}
|
@@ -5406,7 +5420,7 @@ class Nn {
|
|
5406
5420
|
* As the worker we should listen to events from the main window.
|
5407
5421
|
*/
|
5408
5422
|
async initializeReceiver() {
|
5409
|
-
this.receiver = be._getInstance(
|
5423
|
+
this.receiver = be._getInstance(Ds()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5410
5424
|
keyProcessed: (await this._poll()).includes(t.key)
|
5411
5425
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5412
5426
|
"keyChanged"
|
@@ -5422,9 +5436,9 @@ class Nn {
|
|
5422
5436
|
*/
|
5423
5437
|
async initializeSender() {
|
5424
5438
|
var e, t;
|
5425
|
-
if (this.activeServiceWorker = await
|
5439
|
+
if (this.activeServiceWorker = await Ns(), !this.activeServiceWorker)
|
5426
5440
|
return;
|
5427
|
-
this.sender = new
|
5441
|
+
this.sender = new As(this.activeServiceWorker);
|
5428
5442
|
const r = await this.sender._send(
|
5429
5443
|
"ping",
|
5430
5444
|
{},
|
@@ -5446,7 +5460,7 @@ class Nn {
|
|
5446
5460
|
* @param key - Storage key which changed.
|
5447
5461
|
*/
|
5448
5462
|
async notifyServiceWorker(e) {
|
5449
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
5463
|
+
if (!(!this.sender || !this.activeServiceWorker || Cs() !== this.activeServiceWorker))
|
5450
5464
|
try {
|
5451
5465
|
await this.sender._send(
|
5452
5466
|
"keyChanged",
|
@@ -5462,8 +5476,8 @@ class Nn {
|
|
5462
5476
|
try {
|
5463
5477
|
if (!indexedDB)
|
5464
5478
|
return !1;
|
5465
|
-
const e = await
|
5466
|
-
return await
|
5479
|
+
const e = await Ge();
|
5480
|
+
return await Rt(e, _e, "1"), await St(e, _e), !0;
|
5467
5481
|
} catch {
|
5468
5482
|
}
|
5469
5483
|
return !1;
|
@@ -5477,10 +5491,10 @@ class Nn {
|
|
5477
5491
|
}
|
5478
5492
|
}
|
5479
5493
|
async _set(e, t) {
|
5480
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5494
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => Rt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5481
5495
|
}
|
5482
5496
|
async _get(e) {
|
5483
|
-
const t = await this._withRetries((r) =>
|
5497
|
+
const t = await this._withRetries((r) => Ls(r, e));
|
5484
5498
|
return this.localCache[e] = t, t;
|
5485
5499
|
}
|
5486
5500
|
async _remove(e) {
|
@@ -5511,7 +5525,7 @@ class Nn {
|
|
5511
5525
|
i(t);
|
5512
5526
|
}
|
5513
5527
|
startPolling() {
|
5514
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
5528
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Us);
|
5515
5529
|
}
|
5516
5530
|
stopPolling() {
|
5517
5531
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -5524,7 +5538,7 @@ class Nn {
|
|
5524
5538
|
}
|
5525
5539
|
}
|
5526
5540
|
Nn.type = "LOCAL";
|
5527
|
-
const
|
5541
|
+
const Fs = Nn;
|
5528
5542
|
new te(3e4, 6e4);
|
5529
5543
|
/**
|
5530
5544
|
* @license
|
@@ -5542,8 +5556,8 @@ new te(3e4, 6e4);
|
|
5542
5556
|
* See the License for the specific language governing permissions and
|
5543
5557
|
* limitations under the License.
|
5544
5558
|
*/
|
5545
|
-
function
|
5546
|
-
return e ? E(e) : (
|
5559
|
+
function xs(n, e) {
|
5560
|
+
return e ? E(e) : (u(
|
5547
5561
|
n._popupRedirectResolver,
|
5548
5562
|
n,
|
5549
5563
|
"argument-error"
|
@@ -5575,13 +5589,13 @@ class et extends bn {
|
|
5575
5589
|
), this.params = e;
|
5576
5590
|
}
|
5577
5591
|
_getIdTokenResponse(e) {
|
5578
|
-
return
|
5592
|
+
return V(e, this._buildIdpRequest());
|
5579
5593
|
}
|
5580
5594
|
_linkToIdToken(e, t) {
|
5581
|
-
return
|
5595
|
+
return V(e, this._buildIdpRequest(t));
|
5582
5596
|
}
|
5583
5597
|
_getReauthenticationResolver(e) {
|
5584
|
-
return
|
5598
|
+
return V(e, this._buildIdpRequest());
|
5585
5599
|
}
|
5586
5600
|
_buildIdpRequest(e) {
|
5587
5601
|
const t = {
|
@@ -5596,26 +5610,26 @@ class et extends bn {
|
|
5596
5610
|
return e && (t.idToken = e), t;
|
5597
5611
|
}
|
5598
5612
|
}
|
5599
|
-
function
|
5600
|
-
return
|
5613
|
+
function Hs(n) {
|
5614
|
+
return Is(n.auth, new et(n), n.bypassAuthState);
|
5601
5615
|
}
|
5602
|
-
function
|
5616
|
+
function js(n) {
|
5603
5617
|
const { auth: e, user: t } = n;
|
5604
|
-
return
|
5618
|
+
return u(
|
5605
5619
|
t,
|
5606
5620
|
e,
|
5607
5621
|
"internal-error"
|
5608
5622
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5609
|
-
),
|
5623
|
+
), vs(t, new et(n), n.bypassAuthState);
|
5610
5624
|
}
|
5611
|
-
async function
|
5625
|
+
async function Gs(n) {
|
5612
5626
|
const { auth: e, user: t } = n;
|
5613
|
-
return
|
5627
|
+
return u(
|
5614
5628
|
t,
|
5615
5629
|
e,
|
5616
5630
|
"internal-error"
|
5617
5631
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5618
|
-
),
|
5632
|
+
), gs(t, new et(n), n.bypassAuthState);
|
5619
5633
|
}
|
5620
5634
|
/**
|
5621
5635
|
* @license
|
@@ -5675,13 +5689,13 @@ class Cn {
|
|
5675
5689
|
switch (e) {
|
5676
5690
|
case "signInViaPopup":
|
5677
5691
|
case "signInViaRedirect":
|
5678
|
-
return
|
5692
|
+
return Hs;
|
5679
5693
|
case "linkViaPopup":
|
5680
5694
|
case "linkViaRedirect":
|
5681
|
-
return
|
5695
|
+
return Gs;
|
5682
5696
|
case "reauthViaPopup":
|
5683
5697
|
case "reauthViaRedirect":
|
5684
|
-
return
|
5698
|
+
return js;
|
5685
5699
|
default:
|
5686
5700
|
w(
|
5687
5701
|
this.auth,
|
@@ -5691,10 +5705,10 @@ class Cn {
|
|
5691
5705
|
}
|
5692
5706
|
}
|
5693
5707
|
resolve(e) {
|
5694
|
-
|
5708
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
5695
5709
|
}
|
5696
5710
|
reject(e) {
|
5697
|
-
|
5711
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
5698
5712
|
}
|
5699
5713
|
unregisterAndCleanUp() {
|
5700
5714
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
@@ -5716,14 +5730,14 @@ class Cn {
|
|
5716
5730
|
* See the License for the specific language governing permissions and
|
5717
5731
|
* limitations under the License.
|
5718
5732
|
*/
|
5719
|
-
const
|
5733
|
+
const Vs = new te(2e3, 1e4);
|
5720
5734
|
class x extends Cn {
|
5721
5735
|
constructor(e, t, r, i, s) {
|
5722
5736
|
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, x.currentPopupAction && x.currentPopupAction.cancel(), x.currentPopupAction = this;
|
5723
5737
|
}
|
5724
5738
|
async executeNotNull() {
|
5725
5739
|
const e = await this.execute();
|
5726
|
-
return
|
5740
|
+
return u(
|
5727
5741
|
e,
|
5728
5742
|
this.auth,
|
5729
5743
|
"internal-error"
|
@@ -5731,7 +5745,7 @@ class x extends Cn {
|
|
5731
5745
|
), e;
|
5732
5746
|
}
|
5733
5747
|
async onExecution() {
|
5734
|
-
|
5748
|
+
k(this.filter.length === 1, "Popup operations only handle one event");
|
5735
5749
|
const e = Qe();
|
5736
5750
|
this.authWindow = await this.resolver._openPopup(
|
5737
5751
|
this.auth,
|
@@ -5780,7 +5794,7 @@ class x extends Cn {
|
|
5780
5794
|
);
|
5781
5795
|
return;
|
5782
5796
|
}
|
5783
|
-
this.pollId = window.setTimeout(e,
|
5797
|
+
this.pollId = window.setTimeout(e, Vs.get());
|
5784
5798
|
};
|
5785
5799
|
e();
|
5786
5800
|
}
|
@@ -5802,8 +5816,8 @@ x.currentPopupAction = null;
|
|
5802
5816
|
* See the License for the specific language governing permissions and
|
5803
5817
|
* limitations under the License.
|
5804
5818
|
*/
|
5805
|
-
const
|
5806
|
-
class
|
5819
|
+
const Ws = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5820
|
+
class zs extends Cn {
|
5807
5821
|
constructor(e, t, r = !1) {
|
5808
5822
|
super(e, [
|
5809
5823
|
"signInViaRedirect",
|
@@ -5821,7 +5835,7 @@ class Vs extends Cn {
|
|
5821
5835
|
let e = oe.get(this.auth._key());
|
5822
5836
|
if (!e) {
|
5823
5837
|
try {
|
5824
|
-
const r = await
|
5838
|
+
const r = await $s(this.resolver, this.auth) ? await super.execute() : null;
|
5825
5839
|
e = () => Promise.resolve(r);
|
5826
5840
|
} catch (t) {
|
5827
5841
|
e = () => Promise.reject(t);
|
@@ -5849,26 +5863,26 @@ class Vs extends Cn {
|
|
5849
5863
|
cleanUp() {
|
5850
5864
|
}
|
5851
5865
|
}
|
5852
|
-
async function
|
5853
|
-
const t =
|
5866
|
+
async function $s(n, e) {
|
5867
|
+
const t = Ys(e), r = Js(n);
|
5854
5868
|
if (!await r._isAvailable())
|
5855
5869
|
return !1;
|
5856
5870
|
const i = await r._get(t) === "true";
|
5857
5871
|
return await r._remove(t), i;
|
5858
5872
|
}
|
5859
|
-
function
|
5873
|
+
function Zs(n, e) {
|
5860
5874
|
oe.set(n._key(), e);
|
5861
5875
|
}
|
5862
|
-
function
|
5876
|
+
function Js(n) {
|
5863
5877
|
return E(n._redirectPersistence);
|
5864
5878
|
}
|
5865
|
-
function
|
5866
|
-
return ae(
|
5879
|
+
function Ys(n) {
|
5880
|
+
return ae(Ws, n.config.apiKey, n.name);
|
5867
5881
|
}
|
5868
|
-
async function
|
5882
|
+
async function Xs(n, e, t = !1) {
|
5869
5883
|
if (I(n.app))
|
5870
5884
|
return Promise.reject(P(n));
|
5871
|
-
const r = Ie(n), i =
|
5885
|
+
const r = Ie(n), i = xs(r, e), a = await new zs(r, i, t).execute();
|
5872
5886
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5873
5887
|
}
|
5874
5888
|
/**
|
@@ -5887,8 +5901,8 @@ async function $s(n, e, t = !1) {
|
|
5887
5901
|
* See the License for the specific language governing permissions and
|
5888
5902
|
* limitations under the License.
|
5889
5903
|
*/
|
5890
|
-
const
|
5891
|
-
class
|
5904
|
+
const Ks = 10 * 60 * 1e3;
|
5905
|
+
class qs {
|
5892
5906
|
constructor(e) {
|
5893
5907
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
5894
5908
|
}
|
@@ -5904,7 +5918,7 @@ class Xs {
|
|
5904
5918
|
let t = !1;
|
5905
5919
|
return this.consumers.forEach((r) => {
|
5906
5920
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
5907
|
-
}), this.hasHandledPotentialRedirect || !
|
5921
|
+
}), this.hasHandledPotentialRedirect || !Qs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5908
5922
|
}
|
5909
5923
|
sendToConsumer(e, t) {
|
5910
5924
|
var r;
|
@@ -5919,7 +5933,7 @@ class Xs {
|
|
5919
5933
|
return t.filter.includes(e.type) && r;
|
5920
5934
|
}
|
5921
5935
|
hasEventBeenHandled(e) {
|
5922
|
-
return Date.now() - this.lastProcessedEventTime >=
|
5936
|
+
return Date.now() - this.lastProcessedEventTime >= Ks && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
|
5923
5937
|
}
|
5924
5938
|
saveEventToCache(e) {
|
5925
5939
|
this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
|
@@ -5931,7 +5945,7 @@ function At(n) {
|
|
5931
5945
|
function Dn({ type: n, error: e }) {
|
5932
5946
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5933
5947
|
}
|
5934
|
-
function
|
5948
|
+
function Qs(n) {
|
5935
5949
|
switch (n.type) {
|
5936
5950
|
case "signInViaRedirect":
|
5937
5951
|
case "linkViaRedirect":
|
@@ -5959,8 +5973,8 @@ function Ys(n) {
|
|
5959
5973
|
* See the License for the specific language governing permissions and
|
5960
5974
|
* limitations under the License.
|
5961
5975
|
*/
|
5962
|
-
async function
|
5963
|
-
return
|
5976
|
+
async function ea(n, e = {}) {
|
5977
|
+
return $(n, "GET", "/v1/projects", e);
|
5964
5978
|
}
|
5965
5979
|
/**
|
5966
5980
|
* @license
|
@@ -5978,14 +5992,14 @@ async function Ks(n, e = {}) {
|
|
5978
5992
|
* See the License for the specific language governing permissions and
|
5979
5993
|
* limitations under the License.
|
5980
5994
|
*/
|
5981
|
-
const
|
5982
|
-
async function
|
5995
|
+
const ta = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, na = /^https?/;
|
5996
|
+
async function ra(n) {
|
5983
5997
|
if (n.config.emulator)
|
5984
5998
|
return;
|
5985
|
-
const { authorizedDomains: e } = await
|
5999
|
+
const { authorizedDomains: e } = await ea(n);
|
5986
6000
|
for (const t of e)
|
5987
6001
|
try {
|
5988
|
-
if (
|
6002
|
+
if (ia(t))
|
5989
6003
|
return;
|
5990
6004
|
} catch {
|
5991
6005
|
}
|
@@ -5995,15 +6009,15 @@ async function ea(n) {
|
|
5995
6009
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5996
6010
|
);
|
5997
6011
|
}
|
5998
|
-
function
|
5999
|
-
const e =
|
6012
|
+
function ia(n) {
|
6013
|
+
const e = He(), { protocol: t, hostname: r } = new URL(e);
|
6000
6014
|
if (n.startsWith("chrome-extension://")) {
|
6001
6015
|
const a = new URL(n);
|
6002
6016
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
6003
6017
|
}
|
6004
|
-
if (!
|
6018
|
+
if (!na.test(t))
|
6005
6019
|
return !1;
|
6006
|
-
if (
|
6020
|
+
if (ta.test(n))
|
6007
6021
|
return r === n;
|
6008
6022
|
const i = n.replace(/\./g, "\\.");
|
6009
6023
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
@@ -6024,7 +6038,7 @@ function ta(n) {
|
|
6024
6038
|
* See the License for the specific language governing permissions and
|
6025
6039
|
* limitations under the License.
|
6026
6040
|
*/
|
6027
|
-
const
|
6041
|
+
const sa = new te(3e4, 6e4);
|
6028
6042
|
function Ot() {
|
6029
6043
|
const n = g().___jsl;
|
6030
6044
|
if (n != null && n.H) {
|
@@ -6034,7 +6048,7 @@ function Ot() {
|
|
6034
6048
|
n.CP[t] = null;
|
6035
6049
|
}
|
6036
6050
|
}
|
6037
|
-
function
|
6051
|
+
function aa(n) {
|
6038
6052
|
return new Promise((e, t) => {
|
6039
6053
|
var r, i, s;
|
6040
6054
|
function a() {
|
@@ -6049,7 +6063,7 @@ function ra(n) {
|
|
6049
6063
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
6050
6064
|
));
|
6051
6065
|
},
|
6052
|
-
timeout:
|
6066
|
+
timeout: sa.get()
|
6053
6067
|
});
|
6054
6068
|
}
|
6055
6069
|
if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
@@ -6057,22 +6071,22 @@ function ra(n) {
|
|
6057
6071
|
else if (!((s = g().gapi) === null || s === void 0) && s.load)
|
6058
6072
|
a();
|
6059
6073
|
else {
|
6060
|
-
const c =
|
6074
|
+
const c = ds("iframefcb");
|
6061
6075
|
return g()[c] = () => {
|
6062
6076
|
gapi.load ? a() : t(_(
|
6063
6077
|
n,
|
6064
6078
|
"network-request-failed"
|
6065
6079
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
6066
6080
|
));
|
6067
|
-
},
|
6081
|
+
}, cs(`${ls()}?onload=${c}`).catch((o) => t(o));
|
6068
6082
|
}
|
6069
6083
|
}).catch((e) => {
|
6070
6084
|
throw ce = null, e;
|
6071
6085
|
});
|
6072
6086
|
}
|
6073
6087
|
let ce = null;
|
6074
|
-
function
|
6075
|
-
return ce = ce ||
|
6088
|
+
function oa(n) {
|
6089
|
+
return ce = ce || aa(n), ce;
|
6076
6090
|
}
|
6077
6091
|
/**
|
6078
6092
|
* @license
|
@@ -6090,7 +6104,7 @@ function ia(n) {
|
|
6090
6104
|
* See the License for the specific language governing permissions and
|
6091
6105
|
* limitations under the License.
|
6092
6106
|
*/
|
6093
|
-
const
|
6107
|
+
const ca = new te(5e3, 15e3), la = "__/auth/iframe", da = "emulator/auth/iframe", ua = {
|
6094
6108
|
style: {
|
6095
6109
|
position: "absolute",
|
6096
6110
|
top: "-100px",
|
@@ -6099,41 +6113,41 @@ const sa = new te(5e3, 15e3), aa = "__/auth/iframe", oa = "emulator/auth/iframe"
|
|
6099
6113
|
},
|
6100
6114
|
"aria-hidden": "true",
|
6101
6115
|
tabindex: "-1"
|
6102
|
-
},
|
6116
|
+
}, ha = /* @__PURE__ */ new Map([
|
6103
6117
|
["identitytoolkit.googleapis.com", "p"],
|
6104
6118
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
6105
6119
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
6106
6120
|
// test
|
6107
6121
|
]);
|
6108
|
-
function
|
6122
|
+
function pa(n) {
|
6109
6123
|
const e = n.config;
|
6110
|
-
|
6124
|
+
u(
|
6111
6125
|
e.authDomain,
|
6112
6126
|
n,
|
6113
6127
|
"auth-domain-config-required"
|
6114
6128
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
6115
6129
|
);
|
6116
|
-
const t = e.emulator ?
|
6130
|
+
const t = e.emulator ? Ye(e, da) : `https://${n.config.authDomain}/${la}`, r = {
|
6117
6131
|
apiKey: e.apiKey,
|
6118
6132
|
appName: n.name,
|
6119
6133
|
v: ee
|
6120
|
-
}, i =
|
6134
|
+
}, i = ha.get(n.config.apiHost);
|
6121
6135
|
i && (r.eid = i);
|
6122
6136
|
const s = n._getFrameworks();
|
6123
6137
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
6124
6138
|
}
|
6125
|
-
async function
|
6126
|
-
const e = await
|
6127
|
-
return
|
6139
|
+
async function ma(n) {
|
6140
|
+
const e = await oa(n), t = g().gapi;
|
6141
|
+
return u(
|
6128
6142
|
t,
|
6129
6143
|
n,
|
6130
6144
|
"internal-error"
|
6131
6145
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6132
6146
|
), e.open({
|
6133
6147
|
where: document.body,
|
6134
|
-
url:
|
6148
|
+
url: pa(n),
|
6135
6149
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
6136
|
-
attributes:
|
6150
|
+
attributes: ua,
|
6137
6151
|
dontclear: !0
|
6138
6152
|
}, (r) => new Promise(async (i, s) => {
|
6139
6153
|
await r.restyle({
|
@@ -6146,7 +6160,7 @@ async function ua(n) {
|
|
6146
6160
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
6147
6161
|
), c = g().setTimeout(() => {
|
6148
6162
|
s(a);
|
6149
|
-
},
|
6163
|
+
}, ca.get());
|
6150
6164
|
function o() {
|
6151
6165
|
g().clearTimeout(c), i(r);
|
6152
6166
|
}
|
@@ -6171,12 +6185,12 @@ async function ua(n) {
|
|
6171
6185
|
* See the License for the specific language governing permissions and
|
6172
6186
|
* limitations under the License.
|
6173
6187
|
*/
|
6174
|
-
const
|
6188
|
+
const fa = {
|
6175
6189
|
location: "yes",
|
6176
6190
|
resizable: "yes",
|
6177
6191
|
statusbar: "yes",
|
6178
6192
|
toolbar: "no"
|
6179
|
-
},
|
6193
|
+
}, _a = 500, ga = 600, va = "_blank", Ia = "http://localhost";
|
6180
6194
|
class Nt {
|
6181
6195
|
constructor(e) {
|
6182
6196
|
this.window = e, this.associatedEvent = null;
|
@@ -6189,33 +6203,33 @@ class Nt {
|
|
6189
6203
|
}
|
6190
6204
|
}
|
6191
6205
|
}
|
6192
|
-
function
|
6206
|
+
function ba(n, e, t, r = _a, i = ga) {
|
6193
6207
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
6194
6208
|
let c = "";
|
6195
|
-
const o = Object.assign(Object.assign({},
|
6209
|
+
const o = Object.assign(Object.assign({}, fa), {
|
6196
6210
|
width: r.toString(),
|
6197
6211
|
height: i.toString(),
|
6198
6212
|
top: s,
|
6199
6213
|
left: a
|
6200
6214
|
}), l = f().toLowerCase();
|
6201
|
-
t && (c = hn(l) ?
|
6202
|
-
const
|
6203
|
-
if (
|
6204
|
-
return
|
6205
|
-
const
|
6206
|
-
|
6207
|
-
|
6215
|
+
t && (c = hn(l) ? va : t), dn(l) && (e = e || Ia, o.scrollbars = "yes");
|
6216
|
+
const d = Object.entries(o).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
6217
|
+
if (es(l) && c !== "_self")
|
6218
|
+
return ya(e || "", c), new Nt(null);
|
6219
|
+
const h = window.open(e || "", c, d);
|
6220
|
+
u(
|
6221
|
+
h,
|
6208
6222
|
n,
|
6209
6223
|
"popup-blocked"
|
6210
6224
|
/* AuthErrorCode.POPUP_BLOCKED */
|
6211
6225
|
);
|
6212
6226
|
try {
|
6213
|
-
|
6227
|
+
h.focus();
|
6214
6228
|
} catch {
|
6215
6229
|
}
|
6216
|
-
return new Nt(
|
6230
|
+
return new Nt(h);
|
6217
6231
|
}
|
6218
|
-
function
|
6232
|
+
function ya(n, e) {
|
6219
6233
|
const t = document.createElement("a");
|
6220
6234
|
t.href = n, t.target = e;
|
6221
6235
|
const r = document.createEvent("MouseEvent");
|
@@ -6237,14 +6251,14 @@ function va(n, e) {
|
|
6237
6251
|
* See the License for the specific language governing permissions and
|
6238
6252
|
* limitations under the License.
|
6239
6253
|
*/
|
6240
|
-
const
|
6254
|
+
const Ea = "__/auth/handler", Ta = "emulator/auth/handler", wa = encodeURIComponent("fac");
|
6241
6255
|
async function Ct(n, e, t, r, i, s) {
|
6242
|
-
|
6256
|
+
u(
|
6243
6257
|
n.config.authDomain,
|
6244
6258
|
n,
|
6245
6259
|
"auth-domain-config-required"
|
6246
6260
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
6247
|
-
),
|
6261
|
+
), u(
|
6248
6262
|
n.config.apiKey,
|
6249
6263
|
n,
|
6250
6264
|
"invalid-api-key"
|
@@ -6259,23 +6273,23 @@ async function Ct(n, e, t, r, i, s) {
|
|
6259
6273
|
eventId: i
|
6260
6274
|
};
|
6261
6275
|
if (e instanceof yn) {
|
6262
|
-
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "",
|
6263
|
-
for (const [
|
6264
|
-
a[
|
6276
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", wr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
6277
|
+
for (const [d, h] of Object.entries({}))
|
6278
|
+
a[d] = h;
|
6265
6279
|
}
|
6266
6280
|
if (e instanceof ne) {
|
6267
|
-
const
|
6268
|
-
|
6281
|
+
const d = e.getScopes().filter((h) => h !== "");
|
6282
|
+
d.length > 0 && (a.scopes = d.join(","));
|
6269
6283
|
}
|
6270
6284
|
n.tenantId && (a.tid = n.tenantId);
|
6271
6285
|
const c = a;
|
6272
|
-
for (const
|
6273
|
-
c[
|
6274
|
-
const o = await n._getAppCheckToken(), l = o ? `#${
|
6275
|
-
return `${
|
6286
|
+
for (const d of Object.keys(c))
|
6287
|
+
c[d] === void 0 && delete c[d];
|
6288
|
+
const o = await n._getAppCheckToken(), l = o ? `#${wa}=${encodeURIComponent(o)}` : "";
|
6289
|
+
return `${ka(n)}?${Q(c).slice(1)}${l}`;
|
6276
6290
|
}
|
6277
|
-
function
|
6278
|
-
return n.emulator ?
|
6291
|
+
function ka({ config: n }) {
|
6292
|
+
return n.emulator ? Ye(n, Ta) : `https://${n.authDomain}/${Ea}`;
|
6279
6293
|
}
|
6280
6294
|
/**
|
6281
6295
|
* @license
|
@@ -6294,29 +6308,29 @@ function Ea({ config: n }) {
|
|
6294
6308
|
* limitations under the License.
|
6295
6309
|
*/
|
6296
6310
|
const De = "webStorageSupport";
|
6297
|
-
class
|
6311
|
+
class Ra {
|
6298
6312
|
constructor() {
|
6299
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
6313
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Rn, this._completeRedirectFn = Xs, this._overrideRedirectResult = Zs;
|
6300
6314
|
}
|
6301
6315
|
// Wrapping in async even though we don't await anywhere in order
|
6302
6316
|
// to make sure errors are raised as promise rejections
|
6303
6317
|
async _openPopup(e, t, r, i) {
|
6304
6318
|
var s;
|
6305
|
-
|
6306
|
-
const a = await Ct(e, t, r,
|
6307
|
-
return
|
6319
|
+
k((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6320
|
+
const a = await Ct(e, t, r, He(), i);
|
6321
|
+
return ba(e, a, Qe());
|
6308
6322
|
}
|
6309
6323
|
async _openRedirect(e, t, r, i) {
|
6310
6324
|
await this._originValidation(e);
|
6311
|
-
const s = await Ct(e, t, r,
|
6312
|
-
return
|
6325
|
+
const s = await Ct(e, t, r, He(), i);
|
6326
|
+
return Os(s), new Promise(() => {
|
6313
6327
|
});
|
6314
6328
|
}
|
6315
6329
|
_initialize(e) {
|
6316
6330
|
const t = e._key();
|
6317
6331
|
if (this.eventManagers[t]) {
|
6318
6332
|
const { manager: i, promise: s } = this.eventManagers[t];
|
6319
|
-
return i ? Promise.resolve(i) : (
|
6333
|
+
return i ? Promise.resolve(i) : (k(s, "If manager is not set, promise should be"), s);
|
6320
6334
|
}
|
6321
6335
|
const r = this.initAndGetManager(e);
|
6322
6336
|
return this.eventManagers[t] = { promise: r }, r.catch(() => {
|
@@ -6324,8 +6338,8 @@ class Ta {
|
|
6324
6338
|
}), r;
|
6325
6339
|
}
|
6326
6340
|
async initAndGetManager(e) {
|
6327
|
-
const t = await
|
6328
|
-
return t.register("authEvent", (i) => (
|
6341
|
+
const t = await ma(e), r = new qs(e);
|
6342
|
+
return t.register("authEvent", (i) => (u(
|
6329
6343
|
i == null ? void 0 : i.authEvent,
|
6330
6344
|
e,
|
6331
6345
|
"invalid-auth-event"
|
@@ -6348,13 +6362,13 @@ class Ta {
|
|
6348
6362
|
}
|
6349
6363
|
_originValidation(e) {
|
6350
6364
|
const t = e._key();
|
6351
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6365
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = ra(e)), this.originValidationPromises[t];
|
6352
6366
|
}
|
6353
6367
|
get _shouldInitProactively() {
|
6354
6368
|
return gn() || un() || Ke();
|
6355
6369
|
}
|
6356
6370
|
}
|
6357
|
-
const
|
6371
|
+
const Sa = Ra;
|
6358
6372
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6359
6373
|
/**
|
6360
6374
|
* @license
|
@@ -6372,7 +6386,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
|
|
6372
6386
|
* See the License for the specific language governing permissions and
|
6373
6387
|
* limitations under the License.
|
6374
6388
|
*/
|
6375
|
-
class
|
6389
|
+
class Aa {
|
6376
6390
|
constructor(e) {
|
6377
6391
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6378
6392
|
}
|
@@ -6397,7 +6411,7 @@ class Ra {
|
|
6397
6411
|
t && (this.internalListeners.delete(e), t(), this.updateProactiveRefresh());
|
6398
6412
|
}
|
6399
6413
|
assertAuthConfigured() {
|
6400
|
-
|
6414
|
+
u(
|
6401
6415
|
this.auth._initializationPromise,
|
6402
6416
|
"dependent-sdk-initialized-before-auth"
|
6403
6417
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
@@ -6423,7 +6437,7 @@ class Ra {
|
|
6423
6437
|
* See the License for the specific language governing permissions and
|
6424
6438
|
* limitations under the License.
|
6425
6439
|
*/
|
6426
|
-
function
|
6440
|
+
function Oa(n) {
|
6427
6441
|
switch (n) {
|
6428
6442
|
case "Node":
|
6429
6443
|
return "node";
|
@@ -6439,12 +6453,12 @@ function ka(n) {
|
|
6439
6453
|
return;
|
6440
6454
|
}
|
6441
6455
|
}
|
6442
|
-
function
|
6443
|
-
|
6456
|
+
function Na(n) {
|
6457
|
+
Y(new W(
|
6444
6458
|
"auth",
|
6445
6459
|
(e, { options: t }) => {
|
6446
6460
|
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
6447
|
-
|
6461
|
+
u(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
|
6448
6462
|
const o = {
|
6449
6463
|
apiKey: a,
|
6450
6464
|
authDomain: c,
|
@@ -6453,8 +6467,8 @@ function Sa(n) {
|
|
6453
6467
|
tokenApiHost: "securetoken.googleapis.com",
|
6454
6468
|
apiScheme: "https",
|
6455
6469
|
sdkClientVersion: vn(n)
|
6456
|
-
}, l = new
|
6457
|
-
return
|
6470
|
+
}, l = new as(r, i, s, o);
|
6471
|
+
return hs(l, t), l;
|
6458
6472
|
},
|
6459
6473
|
"PUBLIC"
|
6460
6474
|
/* ComponentType.PUBLIC */
|
@@ -6466,21 +6480,21 @@ function Sa(n) {
|
|
6466
6480
|
"auth-internal"
|
6467
6481
|
/* _ComponentName.AUTH_INTERNAL */
|
6468
6482
|
).initialize();
|
6469
|
-
})),
|
6483
|
+
})), Y(new W(
|
6470
6484
|
"auth-internal",
|
6471
6485
|
(e) => {
|
6472
6486
|
const t = Ie(e.getProvider(
|
6473
6487
|
"auth"
|
6474
6488
|
/* _ComponentName.AUTH */
|
6475
6489
|
).getImmediate());
|
6476
|
-
return ((r) => new
|
6490
|
+
return ((r) => new Aa(r))(t);
|
6477
6491
|
},
|
6478
6492
|
"PRIVATE"
|
6479
6493
|
/* ComponentType.PRIVATE */
|
6480
6494
|
).setInstantiationMode(
|
6481
6495
|
"EXPLICIT"
|
6482
6496
|
/* InstantiationMode.EXPLICIT */
|
6483
|
-
)),
|
6497
|
+
)), H(Dt, Pt, Oa(n)), H(Dt, Pt, "esm2017");
|
6484
6498
|
}
|
6485
6499
|
/**
|
6486
6500
|
* @license
|
@@ -6498,11 +6512,11 @@ function Sa(n) {
|
|
6498
6512
|
* See the License for the specific language governing permissions and
|
6499
6513
|
* limitations under the License.
|
6500
6514
|
*/
|
6501
|
-
const
|
6515
|
+
const Ca = 5 * 60, Da = zt("authIdTokenMaxAge") || Ca;
|
6502
6516
|
let Mt = null;
|
6503
|
-
const
|
6517
|
+
const Pa = (n) => async (e) => {
|
6504
6518
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6505
|
-
if (r && r >
|
6519
|
+
if (r && r > Da)
|
6506
6520
|
return;
|
6507
6521
|
const i = t == null ? void 0 : t.token;
|
6508
6522
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6512,33 +6526,33 @@ const Na = (n) => async (e) => {
|
|
6512
6526
|
} : {}
|
6513
6527
|
}));
|
6514
6528
|
};
|
6515
|
-
function
|
6516
|
-
const e =
|
6529
|
+
function Ma(n = Ri()) {
|
6530
|
+
const e = Yt(n, "auth");
|
6517
6531
|
if (e.isInitialized())
|
6518
6532
|
return e.getImmediate();
|
6519
|
-
const t =
|
6520
|
-
popupRedirectResolver:
|
6533
|
+
const t = us(n, {
|
6534
|
+
popupRedirectResolver: Sa,
|
6521
6535
|
persistence: [
|
6522
|
-
|
6523
|
-
|
6524
|
-
|
6536
|
+
Fs,
|
6537
|
+
Rs,
|
6538
|
+
Rn
|
6525
6539
|
]
|
6526
6540
|
}), r = zt("authTokenSyncURL");
|
6527
6541
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6528
6542
|
const s = new URL(r, location.origin);
|
6529
6543
|
if (location.origin === s.origin) {
|
6530
|
-
const a =
|
6531
|
-
|
6544
|
+
const a = Pa(s.toString());
|
6545
|
+
Ts(t, a, () => a(t.currentUser)), Es(t, (c) => a(c));
|
6532
6546
|
}
|
6533
6547
|
}
|
6534
|
-
const i =
|
6535
|
-
return i &&
|
6548
|
+
const i = Vt("auth");
|
6549
|
+
return i && ps(t, `http://${i}`), t;
|
6536
6550
|
}
|
6537
|
-
function
|
6551
|
+
function La() {
|
6538
6552
|
var n, e;
|
6539
6553
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
6540
6554
|
}
|
6541
|
-
|
6555
|
+
os({
|
6542
6556
|
loadJS(n) {
|
6543
6557
|
return new Promise((e, t) => {
|
6544
6558
|
const r = document.createElement("script");
|
@@ -6548,84 +6562,73 @@ is({
|
|
6548
6562
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6549
6563
|
);
|
6550
6564
|
s.customData = i, t(s);
|
6551
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
6565
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", La().appendChild(r);
|
6552
6566
|
});
|
6553
6567
|
},
|
6554
6568
|
gapiScript: "https://apis.google.com/js/api.js",
|
6555
6569
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6556
6570
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6557
6571
|
});
|
6558
|
-
|
6572
|
+
Na(
|
6559
6573
|
"Browser"
|
6560
6574
|
/* ClientPlatform.BROWSER */
|
6561
6575
|
);
|
6562
|
-
const
|
6576
|
+
const Ua = Ln({
|
6563
6577
|
history: Un(),
|
6564
6578
|
routes: [...We, ...le]
|
6565
6579
|
});
|
6566
6580
|
let Pe, Me;
|
6567
|
-
|
6581
|
+
Ua.beforeEach(async (n) => {
|
6568
6582
|
const {
|
6569
6583
|
sessionUser: e,
|
6570
6584
|
currentRestaurant: t,
|
6571
6585
|
currentBusiness: r,
|
6572
6586
|
readRestaurants: i,
|
6573
6587
|
changeRestaurant: s
|
6574
|
-
} =
|
6588
|
+
} = Ve();
|
6575
6589
|
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6576
|
-
const c =
|
6590
|
+
const c = Z(e, (o) => {
|
6577
6591
|
var l;
|
6578
6592
|
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6579
6593
|
});
|
6580
6594
|
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6581
6595
|
new Promise(async (a) => {
|
6582
|
-
const c =
|
6596
|
+
const c = Z(r, (o) => {
|
6583
6597
|
o && (c(), a(!0));
|
6584
6598
|
});
|
6585
6599
|
}),
|
6586
6600
|
new Promise(async (a) => {
|
6587
|
-
const c =
|
6601
|
+
const c = Z(t, (l) => {
|
6588
6602
|
l && (c(), a(!0));
|
6589
6603
|
}), o = await i();
|
6590
6604
|
await s(o == null ? void 0 : o.at(0));
|
6591
6605
|
})
|
6592
6606
|
]).then((a) => !0)), Me) : !0;
|
6593
6607
|
});
|
6594
|
-
const
|
6608
|
+
const Ba = /* @__PURE__ */ Ut({
|
6595
6609
|
__name: "AppSidebar",
|
6596
6610
|
setup(n) {
|
6597
|
-
const e =
|
6598
|
-
|
6599
|
-
let
|
6600
|
-
t.currentRoute.value.meta.parent && (
|
6611
|
+
const e = Ve(), t = Bn(), { t: r } = Wn(), i = xn(t.currentRoute.value.name);
|
6612
|
+
Z(t.currentRoute, () => {
|
6613
|
+
let l = t.currentRoute.value.name;
|
6614
|
+
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
6601
6615
|
});
|
6602
|
-
const
|
6603
|
-
var
|
6604
|
-
if (!((
|
6616
|
+
const s = We.map((l) => {
|
6617
|
+
var m;
|
6618
|
+
if (!((m = l.meta) != null && m.sidebarDisplay))
|
6605
6619
|
return;
|
6606
|
-
const l = {
|
6607
|
-
label:
|
6608
|
-
value:
|
6620
|
+
const d = l.meta.sidebarDisplay, h = {
|
6621
|
+
label: d.startsWith("i18n:") ? r(d.replaceAll("i18n:", "")) : d,
|
6622
|
+
value: l.name,
|
6609
6623
|
action: () => {
|
6610
|
-
if (t.currentRoute.value.name !==
|
6611
|
-
return t.push({ name:
|
6624
|
+
if (t.currentRoute.value.name !== l.name)
|
6625
|
+
return t.push({ name: l.name });
|
6612
6626
|
}
|
6613
6627
|
};
|
6614
|
-
return
|
6615
|
-
}).filter((
|
6616
|
-
var
|
6617
|
-
if ((
|
6618
|
-
return {
|
6619
|
-
label: o.meta.sidebarDisplay,
|
6620
|
-
value: o.name,
|
6621
|
-
action: () => {
|
6622
|
-
if (t.currentRoute.value.name !== o.name)
|
6623
|
-
return t.push({ name: o.name });
|
6624
|
-
}
|
6625
|
-
};
|
6626
|
-
}).filter((o) => !!o), a = (o) => le.map((l) => {
|
6627
|
-
var u;
|
6628
|
-
if ((u = l.meta) != null && u.sidebarDisplay && l.meta.section === o)
|
6628
|
+
return l.meta.sidebarNew && (h.badge = () => Hn($n.FmPill, { label: "New" })), h;
|
6629
|
+
}).filter((l) => !!l), a = le.map((l) => {
|
6630
|
+
var d;
|
6631
|
+
if ((d = l.meta) != null && d.sidebarDisplay && !l.meta.section)
|
6629
6632
|
return {
|
6630
6633
|
label: l.meta.sidebarDisplay,
|
6631
6634
|
value: l.name,
|
@@ -6634,88 +6637,99 @@ const Ma = /* @__PURE__ */ Ut({
|
|
6634
6637
|
return t.push({ name: l.name });
|
6635
6638
|
}
|
6636
6639
|
};
|
6637
|
-
}).filter((l) => !!l), c =
|
6638
|
-
var
|
6639
|
-
|
6640
|
-
|
6640
|
+
}).filter((l) => !!l), c = (l) => le.map((d) => {
|
6641
|
+
var h;
|
6642
|
+
if ((h = d.meta) != null && h.sidebarDisplay && d.meta.section === l)
|
6643
|
+
return {
|
6644
|
+
label: d.meta.sidebarDisplay,
|
6645
|
+
value: d.name,
|
6646
|
+
action: () => {
|
6647
|
+
if (t.currentRoute.value.name !== d.name)
|
6648
|
+
return t.push({ name: d.name });
|
6649
|
+
}
|
6650
|
+
};
|
6651
|
+
}).filter((d) => !!d), o = Lt(() => {
|
6652
|
+
var d;
|
6653
|
+
const l = [...s];
|
6654
|
+
return (d = e.sessionUser.value) != null && d.isInternal && (l.push({
|
6641
6655
|
label: "",
|
6642
6656
|
value: "divider",
|
6643
6657
|
disabled: !0
|
6644
|
-
}),
|
6658
|
+
}), l.push({
|
6645
6659
|
label: "Devices",
|
6646
6660
|
icon: "desktop_windows",
|
6647
6661
|
value: "divider",
|
6648
6662
|
disabled: !0
|
6649
|
-
}),
|
6663
|
+
}), l.push(...c("device")), l.push({
|
6650
6664
|
label: "",
|
6651
6665
|
value: "divider",
|
6652
6666
|
disabled: !0
|
6653
|
-
}),
|
6667
|
+
}), l.push({
|
6654
6668
|
label: "Payment Gateway",
|
6655
6669
|
icon: "account_balance",
|
6656
6670
|
value: "divider",
|
6657
6671
|
disabled: !0
|
6658
|
-
}),
|
6672
|
+
}), l.push(...c("payment-gateway")), l.push({
|
6659
6673
|
label: "",
|
6660
6674
|
value: "divider",
|
6661
6675
|
disabled: !0
|
6662
|
-
}),
|
6676
|
+
}), l.push({
|
6663
6677
|
label: "General",
|
6664
6678
|
icon: "admin_panel_settings",
|
6665
6679
|
value: "divider",
|
6666
6680
|
disabled: !0
|
6667
|
-
}),
|
6681
|
+
}), l.push(...a)), l;
|
6668
6682
|
});
|
6669
|
-
return (
|
6670
|
-
const
|
6671
|
-
return Ft(), xt(
|
6672
|
-
modelValue:
|
6673
|
-
"onUpdate:modelValue":
|
6674
|
-
items:
|
6683
|
+
return (l, d) => {
|
6684
|
+
const h = Bt("FmCollapsibleTabs");
|
6685
|
+
return Ft(), xt(h, {
|
6686
|
+
modelValue: i.value,
|
6687
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => i.value = m),
|
6688
|
+
items: o.value,
|
6675
6689
|
class: "py-16 px-8 w-[240px]"
|
6676
6690
|
}, null, 8, ["modelValue", "items"]);
|
6677
6691
|
};
|
6678
6692
|
}
|
6679
6693
|
});
|
6680
|
-
var
|
6681
|
-
const
|
6694
|
+
var Fa = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com" };
|
6695
|
+
const $a = /* @__PURE__ */ Ut({
|
6682
6696
|
__name: "App",
|
6683
6697
|
setup(n) {
|
6684
|
-
const { state: e } =
|
6698
|
+
const { state: e } = sr(), t = Ve(), r = Fn(), i = Xt(Fa.firebase);
|
6685
6699
|
async function s() {
|
6686
6700
|
const a = t.sessionUser.value;
|
6687
6701
|
if (!a || !a.token) return;
|
6688
|
-
const c = await a.getCustomToken(), o =
|
6689
|
-
await
|
6702
|
+
const c = await a.getCustomToken(), o = Ma(i);
|
6703
|
+
await ys(o, c);
|
6690
6704
|
}
|
6691
|
-
return s(),
|
6705
|
+
return s(), Z(t.sessionUser, s), jn(() => {
|
6692
6706
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6693
|
-
}),
|
6694
|
-
t.registerSidebarComponent(
|
6707
|
+
}), Gn(() => {
|
6708
|
+
t.registerSidebarComponent(Ba);
|
6695
6709
|
}), (a, c) => {
|
6696
6710
|
const o = Bt("RouterView");
|
6697
6711
|
return Ft(), xt(o, {
|
6698
|
-
key:
|
6712
|
+
key: Vn(r).path
|
6699
6713
|
});
|
6700
6714
|
};
|
6701
6715
|
}
|
6702
|
-
}),
|
6703
|
-
"en-US":
|
6704
|
-
"zh-CN":
|
6705
|
-
},
|
6716
|
+
}), Za = {
|
6717
|
+
"en-US": qn,
|
6718
|
+
"zh-CN": ir
|
6719
|
+
}, Ja = [...le, ...We];
|
6706
6720
|
export {
|
6707
6721
|
W as C,
|
6708
6722
|
M as F,
|
6709
6723
|
ee as S,
|
6710
|
-
|
6711
|
-
|
6712
|
-
|
6713
|
-
|
6714
|
-
|
6724
|
+
Y as _,
|
6725
|
+
Yt as a,
|
6726
|
+
Wa as b,
|
6727
|
+
Ri as c,
|
6728
|
+
za as d,
|
6715
6729
|
gt as e,
|
6716
|
-
|
6730
|
+
Ja as f,
|
6717
6731
|
z as g,
|
6718
|
-
|
6719
|
-
|
6720
|
-
|
6732
|
+
$a as h,
|
6733
|
+
Za as i,
|
6734
|
+
H as r
|
6721
6735
|
};
|