@feedmepos/mf-payment 1.0.28 → 1.1.0-beta.1
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/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
- package/dist/{PayoutAccount-QybE7meK.js → PayoutAccount-BHJpjUqD.js} +5 -5
- package/dist/{PayoutAccount-C53rv89t.js → PayoutAccount-DCkf_1yL.js} +5 -4
- package/dist/PayoutAccountSetting-Bk-g7ucZ.js +723 -0
- package/dist/{Restaurant-B1ed_oVp.js → Restaurant-D2qq84VL.js} +56 -54
- package/dist/{RestaurantSetting-CKG5jn2J.js → RestaurantSetting-DAtrtX6S.js} +3 -3
- package/dist/{Settlement-SeGVEdZj.js → Settlement-BVIsszEJ.js} +37 -34
- package/dist/{Settlement-Fh86ozFD.js → Settlement-Cx1tc5wt.js} +9 -8
- package/dist/{SettlementTransactions-BSF2Jw-L.js → SettlementTransactions-C82DyYlO.js} +14 -14
- package/dist/{SettlementTransactions-CHRsIcoh.js → SettlementTransactions-CeN4SRWa.js} +39 -39
- package/dist/{Terminal-BUBkiYYw.js → Terminal-Az2k8E6F.js} +323 -342
- package/dist/{TerminalSetting-CfCa-6pK.js → TerminalSetting-C-xlLYXa.js} +27 -27
- package/dist/Transaction-CC8hc8_r.js +250 -0
- package/dist/{Transaction-DWzZ31qR.js → Transaction-Y_mc0yQv.js} +123 -105
- package/dist/{TransactionOld-Pj412ujb.js → TransactionOld-BxhI-wwm.js} +7 -7
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-dwwesT4_.js +304 -0
- package/dist/api/payout/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +6 -10
- package/dist/api/transaction/index.d.ts +12 -11
- package/dist/{app-DC4HbItX.js → app-OBp4HaEY.js} +853 -791
- package/dist/app.js +1 -1
- package/dist/{assets-BySnqkmr.js → assets-pLBp82yE.js} +208 -56
- package/dist/components/SourceSelector.vue.d.ts +12 -0
- package/dist/{grafana-b2ht7XmY.js → grafana-hv7inD36.js} +2 -2
- package/dist/{index-d3nubgyT.js → index-1xF00w89.js} +1 -1
- package/dist/{index-CvJ2nft4.js → index-CFYD8Dv4.js} +1 -1
- package/dist/index-Cqq3p9PP.js +66 -0
- package/dist/{index-DXV5GQaF.js → index-DD5mEX0D.js} +1 -1
- package/dist/{index-iiG_kivD.js → index-DGKxdJVj.js} +8163 -8081
- package/dist/index-oM4Z9ffu.js +45 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Du3twb8U.js → index.vue_vue_type_script_setup_true_lang-C9tnqgzY.js} +8 -7
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +13 -5
- package/dist/package.json +2 -2
- package/dist/{payout-account-DPdwKVTr.js → payout-account-DPaS3dIs.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
- package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/Terminal.vue.d.ts +4 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
- package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
- package/package.json +2 -2
- package/dist/PayoutAccountSetting-Zhkm_GN8.js +0 -426
- package/dist/TerminalTransaction-DIM7WO_C.js +0 -589
- package/dist/TerminalTransaction-DQZnx7dy.js +0 -333
- package/dist/Transaction-DRYwBnHK.js +0 -247
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-B3FGhKjA.js +0 -159
- package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
- package/dist/index-BJpE0YhF.js +0 -52
- package/dist/index-BqzuW2qa.js +0 -40
- package/dist/index-Dwv1hbHU.js +0 -77
- package/dist/transaction-CzLoSCVe.js +0 -136
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -1,16 +1,17 @@
|
|
1
|
-
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as
|
3
|
-
import { useCoreStore as
|
4
|
-
import { defineStore as
|
5
|
-
import { components as
|
6
|
-
const
|
1
|
+
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as Fn } from "vue-router";
|
2
|
+
import { computed as Lt, watch as $, defineComponent as Ut, ref as jn, resolveComponent as Bt, openBlock as Ft, createBlock as jt, h as xn, onMounted as Vn, onBeforeMount as Hn, unref as Gn } from "vue";
|
3
|
+
import { useCoreStore as Ge } from "@feedmepos/mf-common";
|
4
|
+
import { defineStore as Wn } from "pinia";
|
5
|
+
import { components as zn } from "@feedmepos/ui-library";
|
6
|
+
const le = [
|
7
7
|
{
|
8
8
|
path: "/admin/restaurants",
|
9
9
|
name: "mf-payment-admin.restaurant",
|
10
10
|
meta: {
|
11
|
-
sidebarDisplay: "Restaurants"
|
11
|
+
sidebarDisplay: "Restaurants",
|
12
|
+
section: "payment-gateway"
|
12
13
|
},
|
13
|
-
component: () => import("./Restaurant-
|
14
|
+
component: () => import("./Restaurant-D2qq84VL.js")
|
14
15
|
},
|
15
16
|
{
|
16
17
|
path: "/admin/restaurants/:restaurantId",
|
@@ -19,15 +20,16 @@ const je = [
|
|
19
20
|
meta: {
|
20
21
|
parent: "mf-payment-admin.restaurant"
|
21
22
|
},
|
22
|
-
component: () => import("./RestaurantSetting-
|
23
|
+
component: () => import("./RestaurantSetting-DAtrtX6S.js")
|
23
24
|
},
|
24
25
|
{
|
25
26
|
path: "/admin/payout-accounts",
|
26
27
|
name: "mf-payment-admin.payout-account",
|
27
28
|
meta: {
|
28
|
-
sidebarDisplay: "Payout Accounts"
|
29
|
+
sidebarDisplay: "Payout Accounts",
|
30
|
+
section: "payment-gateway"
|
29
31
|
},
|
30
|
-
component: () => import("./PayoutAccount-
|
32
|
+
component: () => import("./PayoutAccount-BHJpjUqD.js")
|
31
33
|
},
|
32
34
|
{
|
33
35
|
path: "/admin/payout-accounts/:accountId",
|
@@ -36,40 +38,78 @@ const je = [
|
|
36
38
|
meta: {
|
37
39
|
parent: "mf-payment-admin.payout-account"
|
38
40
|
},
|
39
|
-
component: () => import("./PayoutAccountSetting-
|
41
|
+
component: () => import("./PayoutAccountSetting-Bk-g7ucZ.js")
|
42
|
+
},
|
43
|
+
{
|
44
|
+
path: "/admin/terminal/pos",
|
45
|
+
name: "mf-payment-admin.pos",
|
46
|
+
meta: {
|
47
|
+
sidebarDisplay: "POS",
|
48
|
+
section: "device"
|
49
|
+
},
|
50
|
+
component: () => import("./Terminal-Az2k8E6F.js"),
|
51
|
+
props: {
|
52
|
+
type: "POS"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
{
|
56
|
+
path: "/admin/terminal/kiosk",
|
57
|
+
name: "mf-payment-admin.kiosk",
|
58
|
+
meta: {
|
59
|
+
sidebarDisplay: "Kiosks",
|
60
|
+
section: "device"
|
61
|
+
},
|
62
|
+
component: () => import("./Terminal-Az2k8E6F.js"),
|
63
|
+
props: {
|
64
|
+
type: "KIOSK"
|
65
|
+
}
|
40
66
|
},
|
41
67
|
{
|
42
|
-
path: "/admin/terminal",
|
68
|
+
path: "/admin/terminal/terminal",
|
43
69
|
name: "mf-payment-admin.terminal",
|
44
70
|
meta: {
|
45
|
-
sidebarDisplay: "Terminals"
|
71
|
+
sidebarDisplay: "Terminals",
|
72
|
+
section: "device"
|
73
|
+
},
|
74
|
+
component: () => import("./Terminal-Az2k8E6F.js"),
|
75
|
+
props: {
|
76
|
+
type: "TERMINAL"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
{
|
80
|
+
path: "/admin/terminal/pos/:terminalId",
|
81
|
+
name: "mf-payment-admin.pos-setting",
|
82
|
+
props: !0,
|
83
|
+
meta: {
|
84
|
+
parent: "mf-payment-admin.pos"
|
46
85
|
},
|
47
|
-
component: () => import("./
|
86
|
+
component: () => import("./TerminalSetting-C-xlLYXa.js")
|
48
87
|
},
|
49
88
|
{
|
50
|
-
path: "/admin/terminal/:terminalId",
|
51
|
-
name: "mf-payment-admin.
|
89
|
+
path: "/admin/terminal/kiosk/:terminalId",
|
90
|
+
name: "mf-payment-admin.kiosk-setting",
|
52
91
|
props: !0,
|
53
92
|
meta: {
|
54
|
-
parent: "mf-payment-admin.
|
93
|
+
parent: "mf-payment-admin.kiosk"
|
55
94
|
},
|
56
|
-
component: () => import("./TerminalSetting-
|
95
|
+
component: () => import("./TerminalSetting-C-xlLYXa.js")
|
57
96
|
},
|
58
97
|
{
|
59
|
-
path: "/admin/terminal
|
60
|
-
name: "mf-payment-admin.terminal-
|
98
|
+
path: "/admin/terminal/terminal/:terminalId",
|
99
|
+
name: "mf-payment-admin.terminal-setting",
|
100
|
+
props: !0,
|
61
101
|
meta: {
|
62
|
-
|
102
|
+
parent: "mf-payment-admin.terminal"
|
63
103
|
},
|
64
|
-
component: () => import("./
|
104
|
+
component: () => import("./TerminalSetting-C-xlLYXa.js")
|
65
105
|
},
|
66
106
|
{
|
67
107
|
path: "/admin/transaction",
|
68
108
|
name: "mf-payment-admin.transaction",
|
69
109
|
meta: {
|
70
|
-
sidebarDisplay: "
|
110
|
+
sidebarDisplay: "Transactions"
|
71
111
|
},
|
72
|
-
component: () => import("./Transaction-
|
112
|
+
component: () => import("./Transaction-Y_mc0yQv.js")
|
73
113
|
},
|
74
114
|
{
|
75
115
|
path: "/admin/settlement",
|
@@ -77,7 +117,7 @@ const je = [
|
|
77
117
|
meta: {
|
78
118
|
sidebarDisplay: "Settlements"
|
79
119
|
},
|
80
|
-
component: () => import("./Settlement-
|
120
|
+
component: () => import("./Settlement-Cx1tc5wt.js")
|
81
121
|
},
|
82
122
|
{
|
83
123
|
path: "/admin/settlement/:settlementId",
|
@@ -86,9 +126,9 @@ const je = [
|
|
86
126
|
meta: {
|
87
127
|
parent: "mf-payment-admin.settlement"
|
88
128
|
},
|
89
|
-
component: () => import("./SettlementTransactions-
|
129
|
+
component: () => import("./SettlementTransactions-C82DyYlO.js")
|
90
130
|
}
|
91
|
-
],
|
131
|
+
], We = [
|
92
132
|
{
|
93
133
|
path: "",
|
94
134
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -96,7 +136,7 @@ const je = [
|
|
96
136
|
{
|
97
137
|
path: "/payout-account",
|
98
138
|
name: "mf-payment-payout-account",
|
99
|
-
component: () => import("./PayoutAccount-
|
139
|
+
component: () => import("./PayoutAccount-DCkf_1yL.js"),
|
100
140
|
meta: {
|
101
141
|
sidebarDisplay: "Payout Accounts"
|
102
142
|
}
|
@@ -104,33 +144,24 @@ const je = [
|
|
104
144
|
{
|
105
145
|
path: "/transaction-old",
|
106
146
|
name: "mf-payment-old-transaction",
|
107
|
-
component: () => import("./TransactionOld-
|
147
|
+
component: () => import("./TransactionOld-BxhI-wwm.js"),
|
108
148
|
meta: {
|
109
149
|
sidebarDisplay: "Transactions"
|
110
150
|
}
|
111
151
|
},
|
112
|
-
{
|
113
|
-
path: "/terminal-tranasction",
|
114
|
-
name: "mf-payment-terminal-transaction",
|
115
|
-
meta: {
|
116
|
-
sidebarDisplay: "Terminal Transactions",
|
117
|
-
sidebarNew: !0
|
118
|
-
},
|
119
|
-
component: () => import("./TerminalTransaction-DQZnx7dy.js")
|
120
|
-
},
|
121
152
|
{
|
122
153
|
path: "/transaction",
|
123
154
|
name: "mf-payment-transaction",
|
124
|
-
component: () => import("./Transaction-
|
155
|
+
component: () => import("./Transaction-CC8hc8_r.js"),
|
125
156
|
meta: {
|
126
|
-
sidebarDisplay: "
|
157
|
+
sidebarDisplay: "Transactions",
|
127
158
|
sidebarNew: !0
|
128
159
|
}
|
129
160
|
},
|
130
161
|
{
|
131
162
|
path: "/settlement",
|
132
163
|
name: "mf-payment-settlement",
|
133
|
-
component: () => import("./Settlement-
|
164
|
+
component: () => import("./Settlement-BVIsszEJ.js"),
|
134
165
|
meta: {
|
135
166
|
sidebarDisplay: "Settlements"
|
136
167
|
}
|
@@ -139,12 +170,12 @@ const je = [
|
|
139
170
|
path: "/settlement/:settlementId",
|
140
171
|
name: "mf-payment-settlement-transaction",
|
141
172
|
props: !0,
|
142
|
-
component: () => import("./SettlementTransactions-
|
173
|
+
component: () => import("./SettlementTransactions-CeN4SRWa.js"),
|
143
174
|
meta: {
|
144
175
|
parent: "mf-payment-settlement"
|
145
176
|
}
|
146
177
|
}
|
147
|
-
],
|
178
|
+
], Zn = Wn("mf-payment-iframe", () => {
|
148
179
|
const n = {
|
149
180
|
isIframe: !1
|
150
181
|
}, e = Lt(() => n);
|
@@ -156,7 +187,7 @@ const je = [
|
|
156
187
|
init: t
|
157
188
|
};
|
158
189
|
});
|
159
|
-
var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6a8d4127-5745-4e17-bd52-458211776bcf", 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_6a8d4127-5745-4e17-bd52-458211776bcf", 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_IRBh4cWmTf69EJVpilfYtAExvah2DF2vDNXF", 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.8.21", 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: "709", 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: "20250302.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.6/x64", JOURNAL_STREAM: "8:6677", GITHUB_WORKFLOW: "payment-mf-portal-prod", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13755889568", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "1dae7fedd8a001a16e7e8a126686b34d407e371d", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-prod.yaml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NGJlOTYyOWEtOGY0MC00YjlkLThiOTktZjg2NWI3MDAwYzgyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMjc3IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NGJlOTYyOWEtOGY0MC00YjlkLThiOTktZjg2NWI3MDAwYzgyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMjc3IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiOTA3NGE1MTktZGQzYS00MDU3LWJiNTEtZTVhZmZlMjE4NmNkIiwic2lkIjoiZGEyNTk3MzQtMmE1OC00ZTQ3LWFkNmEtN2EwZTk5NjEzZjFiIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjN9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwic2hhXCI6XCIxZGFlN2ZlZGQ4YTAwMWExNmU3ZThhMTI2Njg2YjM0ZDQwN2UzNzFkXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJydW5faWRcIjpcIjEzNzU1ODg5NTY4XCIsXCJydW5fbnVtYmVyXCI6XCIzNVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLXByb2RcIixcImhlYWRfcmVmXCI6XCJcIixcImJhc2VfcmVmXCI6XCJcIixcImV2ZW50X25hbWVcIjpcInB1c2hcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcGF5bWVudC1tZi1wb3J0YWwtcHJvZC55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCIxZGFlN2ZlZGQ4YTAwMWExNmU3ZThhMTI2Njg2YjM0ZDQwN2UzNzFkXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLXByb2QueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjFkYWU3ZmVkZDhhMDAxYTE2ZTdlOGExMjY2ODZiMzRkNDA3ZTM3MWRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoaWQiOiI0YmU5NjI5YS04ZjQwLTRiOWQtOGI5OS1mODY1YjcwMDBjODIuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDE1NzUwNTcsImV4cCI6MTc0MTU5Nzg1N30.WO2qYcH6Kvgivh37GrBQoM5Bdx_EMLotNFQqmRle8C7zVQlW_6NS4YhY4Q0R_GQ_-HEr2B9PTc58_UtLksNIS5nNkmRgOnB9Fpa2-omLOAT21xbb0ESXZD8nsqIdZ9pLUmSVCzUD1JRT6Ka7RHWo7Ny0KPK-Ka9RRMa80zUniU2PRc1_f9BqyXu38bX8CWwisOZVH2EvbFY5kwjgsPGQgMAHO7Pu-0-aDfjo41PsyznfiYM-ifFpcOgYytwtgzgJrPFqiTO2IypbCBgX3MLTtROkQ8gcGyd7mnLx5Y8l6_rkjlcVJ7Bg1eyT5xQBw2e1fYGQSdpjPc9Do8EdGQgQMg", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1741575711492-0.5506468694480524:/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--1741575711335-0.8551803500222142:/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--1741575711178-0.936011109601893:/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_589e2f63-8947-490e-a49a-c7df60f44b1e", INVOCATION_ID: "c93cdd995a5f48b7826be66f8c1eb9c6", 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: "35", 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 63", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:prod", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:prod", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.0.28", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:prod"],"original":["deploy:prod"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_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: "1dae7fedd8a001a16e7e8a126686b34d407e371d", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6a8d4127-5745-4e17-bd52-458211776bcf", 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/4be9629a-8f40-4b9d-8b99-f865b7000c82/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_6a8d4127-5745-4e17-bd52-458211776bcf", 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_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.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_6a8d4127-5745-4e17-bd52-458211776bcf", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.16", NODE_ENV: "production", ENVIRONMENT: "production", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
190
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d2b46566-cdd2-4da6-a553-5df2367d87be", 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_d2b46566-cdd2-4da6-a553-5df2367d87be", 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_Si6zxALdUInjVjAyY9zrXWiOEC8Atp3tDB54", 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.8.21", 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: "710", 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:6624", 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: "13918490302", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c4165d4c72a7ad82b94b35ff46ac6e777165eb43", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NTM4M2U5MGUtNDYyMC00YTQyLWFmMTMtYjQwOWIzZjU1MTAyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI2IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NTM4M2U5MGUtNDYyMC00YTQyLWFmMTMtYjQwOWIzZjU1MTAyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI2IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiMzM5MWI0NjItZmVlYS00YWYwLTkwYjktNzY3ODdmZjU5ZWNlIiwic2lkIjoiMjI5YjJlZTYtYTZhMS00MjVlLTgyYTktZWVjMzc5NDkxMTgzIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImM0MTY1ZDRjNzJhN2FkODJiOTRiMzVmZjQ2YWM2ZTc3NzE2NWViNDNcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5MTg0OTAzMDJcIixcInJ1bl9udW1iZXJcIjpcIjE0NFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJjNDE2NWQ0YzcyYTdhZDgyYjk0YjM1ZmY0NmFjNmU3NzcxNjVlYjQzXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJjNDE2NWQ0YzcyYTdhZDgyYjk0YjM1ZmY0NmFjNmU3NzcxNjVlYjQzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI1MzgzZTkwZS00NjIwLTRhNDItYWYxMy1iNDA5YjNmNTUxMDIuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIyODU0MzcsImV4cCI6MTc0MjMwODIzN30.Fg9aOzjU68ptUSHqLPkyxAWV3UeFRF5kVrFQC0PFogHN9TzZmdp5tQiuj0yvWhjk82VvU5Tq13Sh38y4QENiNrGm0Iw1ZonmOxD43eEieVqGTPNfZdj2BxJliM7WoFepKdARPi7MQ2-pymTMMxSFSeuikygGy_QgP7zNjuca39cKi7BJwjp03kZif91v_vCjAZMFEq96vOG6BiGlQcmn6Uk9HvLL4qSXc1-AAxQf1U-UxxkwXhS3CDYuQFQc0DkvlJsde071KDZq7lEEYyTRJMpXi3WLx96-cff7DA-jVGvxjJ8rIDBahXJS6kFyMZ2jezVm6IAQ7DLlN2pRb1uBAA", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742286092160-0.3080656005895879:/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--1742286092001-0.4653794616059381:/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--1742286091844-0.3528187099226008:/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_9871439e-09c6-41dc-b4b1-cef0f24f64ac", INVOCATION_ID: "504e351c509844a7b7b135861919a925", 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: "144", 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 489", 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.1", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_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: "c4165d4c72a7ad82b94b35ff46ac6e777165eb43", 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_d2b46566-cdd2-4da6-a553-5df2367d87be", 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/5383e90e-4620-4a42-af13-b409b3f55102/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_d2b46566-cdd2-4da6-a553-5df2367d87be", 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_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.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_d2b46566-cdd2-4da6-a553-5df2367d87be", 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" };
|
160
191
|
/**
|
161
192
|
* @license
|
162
193
|
* Copyright 2017 Google LLC
|
@@ -173,7 +204,7 @@ var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
173
204
|
* See the License for the specific language governing permissions and
|
174
205
|
* limitations under the License.
|
175
206
|
*/
|
176
|
-
const
|
207
|
+
const xt = function(n) {
|
177
208
|
const e = [];
|
178
209
|
let t = 0;
|
179
210
|
for (let r = 0; r < n.length; r++) {
|
@@ -181,7 +212,7 @@ const Ht = function(n) {
|
|
181
212
|
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);
|
182
213
|
}
|
183
214
|
return e;
|
184
|
-
},
|
215
|
+
}, $n = function(n) {
|
185
216
|
const e = [];
|
186
217
|
let t = 0, r = 0;
|
187
218
|
for (; t < n.length; ) {
|
@@ -192,15 +223,15 @@ const Ht = function(n) {
|
|
192
223
|
const s = n[t++];
|
193
224
|
e[r++] = String.fromCharCode((i & 31) << 6 | s & 63);
|
194
225
|
} else if (i > 239 && i < 365) {
|
195
|
-
const s = n[t++],
|
196
|
-
e[r++] = String.fromCharCode(55296 + (
|
226
|
+
const s = n[t++], a = n[t++], c = n[t++], o = ((i & 7) << 18 | (s & 63) << 12 | (a & 63) << 6 | c & 63) - 65536;
|
227
|
+
e[r++] = String.fromCharCode(55296 + (o >> 10)), e[r++] = String.fromCharCode(56320 + (o & 1023));
|
197
228
|
} else {
|
198
|
-
const s = n[t++],
|
199
|
-
e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 |
|
229
|
+
const s = n[t++], a = n[t++];
|
230
|
+
e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 | a & 63);
|
200
231
|
}
|
201
232
|
}
|
202
233
|
return e.join("");
|
203
|
-
},
|
234
|
+
}, Vt = {
|
204
235
|
/**
|
205
236
|
* Maps bytes to characters.
|
206
237
|
*/
|
@@ -259,9 +290,9 @@ const Ht = function(n) {
|
|
259
290
|
this.init_();
|
260
291
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
261
292
|
for (let i = 0; i < n.length; i += 3) {
|
262
|
-
const s = n[i],
|
263
|
-
let m = (
|
264
|
-
|
293
|
+
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, u = s >> 2, p = (s & 3) << 4 | c >> 4;
|
294
|
+
let m = (c & 15) << 2 | l >> 6, v = l & 63;
|
295
|
+
o || (v = 64, a || (m = 64)), r.push(t[u], t[p], t[m], t[v]);
|
265
296
|
}
|
266
297
|
return r.join("");
|
267
298
|
},
|
@@ -274,7 +305,7 @@ const Ht = function(n) {
|
|
274
305
|
* @return The base64 encoded string.
|
275
306
|
*/
|
276
307
|
encodeString(n, e) {
|
277
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
308
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(xt(n), e);
|
278
309
|
},
|
279
310
|
/**
|
280
311
|
* Base64-decode a string.
|
@@ -285,7 +316,7 @@ const Ht = function(n) {
|
|
285
316
|
* @return string representing the decoded value.
|
286
317
|
*/
|
287
318
|
decodeString(n, e) {
|
288
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
319
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : $n(this.decodeStringToByteArray(n, e));
|
289
320
|
},
|
290
321
|
/**
|
291
322
|
* Base64-decode a string.
|
@@ -306,16 +337,16 @@ const Ht = function(n) {
|
|
306
337
|
this.init_();
|
307
338
|
const t = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
|
308
339
|
for (let i = 0; i < n.length; ) {
|
309
|
-
const s = t[n.charAt(i++)],
|
340
|
+
const s = t[n.charAt(i++)], c = i < n.length ? t[n.charAt(i)] : 0;
|
310
341
|
++i;
|
311
342
|
const l = i < n.length ? t[n.charAt(i)] : 64;
|
312
343
|
++i;
|
313
344
|
const p = i < n.length ? t[n.charAt(i)] : 64;
|
314
|
-
if (++i, s == null ||
|
315
|
-
throw new
|
316
|
-
const m = s << 2 |
|
345
|
+
if (++i, s == null || c == null || l == null || p == null)
|
346
|
+
throw new Jn();
|
347
|
+
const m = s << 2 | c >> 4;
|
317
348
|
if (r.push(m), l !== 64) {
|
318
|
-
const v =
|
349
|
+
const v = c << 4 & 240 | l >> 2;
|
319
350
|
if (r.push(v), p !== 64) {
|
320
351
|
const F = l << 6 & 192 | p;
|
321
352
|
r.push(F);
|
@@ -337,19 +368,19 @@ const Ht = function(n) {
|
|
337
368
|
}
|
338
369
|
}
|
339
370
|
};
|
340
|
-
class
|
371
|
+
class Jn extends Error {
|
341
372
|
constructor() {
|
342
373
|
super(...arguments), this.name = "DecodeBase64StringError";
|
343
374
|
}
|
344
375
|
}
|
345
|
-
const
|
346
|
-
const e =
|
347
|
-
return
|
348
|
-
},
|
349
|
-
return
|
350
|
-
},
|
376
|
+
const Yn = function(n) {
|
377
|
+
const e = xt(n);
|
378
|
+
return Vt.encodeByteArray(e, !0);
|
379
|
+
}, de = function(n) {
|
380
|
+
return Yn(n).replace(/\./g, "");
|
381
|
+
}, Ht = function(n) {
|
351
382
|
try {
|
352
|
-
return
|
383
|
+
return Vt.decodeString(n, !0);
|
353
384
|
} catch (e) {
|
354
385
|
console.error("base64Decode failed: ", e);
|
355
386
|
}
|
@@ -371,7 +402,7 @@ const Zn = function(n) {
|
|
371
402
|
* See the License for the specific language governing permissions and
|
372
403
|
* limitations under the License.
|
373
404
|
*/
|
374
|
-
function
|
405
|
+
function Xn() {
|
375
406
|
if (typeof self < "u")
|
376
407
|
return self;
|
377
408
|
if (typeof window < "u")
|
@@ -396,13 +427,13 @@ function Jn() {
|
|
396
427
|
* See the License for the specific language governing permissions and
|
397
428
|
* limitations under the License.
|
398
429
|
*/
|
399
|
-
const
|
400
|
-
if (typeof process > "u" || typeof
|
430
|
+
const Kn = () => Xn().__FIREBASE_DEFAULTS__, qn = () => {
|
431
|
+
if (typeof process > "u" || typeof ot > "u")
|
401
432
|
return;
|
402
|
-
const n =
|
433
|
+
const n = ot.__FIREBASE_DEFAULTS__;
|
403
434
|
if (n)
|
404
435
|
return JSON.parse(n);
|
405
|
-
},
|
436
|
+
}, Qn = () => {
|
406
437
|
if (typeof document > "u")
|
407
438
|
return;
|
408
439
|
let n;
|
@@ -411,20 +442,20 @@ const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
411
442
|
} catch {
|
412
443
|
return;
|
413
444
|
}
|
414
|
-
const e = n &&
|
445
|
+
const e = n && Ht(n[1]);
|
415
446
|
return e && JSON.parse(e);
|
416
447
|
}, ze = () => {
|
417
448
|
try {
|
418
|
-
return
|
449
|
+
return Kn() || qn() || Qn();
|
419
450
|
} catch (n) {
|
420
451
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
421
452
|
return;
|
422
453
|
}
|
423
|
-
},
|
454
|
+
}, Gt = (n) => {
|
424
455
|
var e, t;
|
425
456
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
426
|
-
},
|
427
|
-
const e =
|
457
|
+
}, Na = (n) => {
|
458
|
+
const e = Gt(n);
|
428
459
|
if (!e)
|
429
460
|
return;
|
430
461
|
const t = e.lastIndexOf(":");
|
@@ -432,7 +463,7 @@ const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
432
463
|
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
433
464
|
const r = parseInt(e.substring(t + 1), 10);
|
434
465
|
return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
|
435
|
-
},
|
466
|
+
}, Wt = () => {
|
436
467
|
var n;
|
437
468
|
return (n = ze()) === null || n === void 0 ? void 0 : n.config;
|
438
469
|
}, zt = (n) => {
|
@@ -455,7 +486,7 @@ const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
455
486
|
* See the License for the specific language governing permissions and
|
456
487
|
* limitations under the License.
|
457
488
|
*/
|
458
|
-
class
|
489
|
+
class er {
|
459
490
|
constructor() {
|
460
491
|
this.reject = () => {
|
461
492
|
}, this.resolve = () => {
|
@@ -491,7 +522,7 @@ class qn {
|
|
491
522
|
* See the License for the specific language governing permissions and
|
492
523
|
* limitations under the License.
|
493
524
|
*/
|
494
|
-
function
|
525
|
+
function Da(n, e) {
|
495
526
|
if (n.uid)
|
496
527
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
497
528
|
const t = {
|
@@ -500,7 +531,7 @@ function No(n, e) {
|
|
500
531
|
}, r = e || "demo-project", i = n.iat || 0, s = n.sub || n.user_id;
|
501
532
|
if (!s)
|
502
533
|
throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
|
503
|
-
const
|
534
|
+
const a = Object.assign({
|
504
535
|
// Set all required fields to decent defaults
|
505
536
|
iss: `https://securetoken.google.com/${r}`,
|
506
537
|
aud: r,
|
@@ -515,8 +546,8 @@ function No(n, e) {
|
|
515
546
|
}
|
516
547
|
}, n);
|
517
548
|
return [
|
518
|
-
|
519
|
-
|
549
|
+
de(JSON.stringify(t)),
|
550
|
+
de(JSON.stringify(a)),
|
520
551
|
""
|
521
552
|
].join(".");
|
522
553
|
}
|
@@ -539,33 +570,33 @@ function No(n, e) {
|
|
539
570
|
function f() {
|
540
571
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
541
572
|
}
|
542
|
-
function
|
573
|
+
function tr() {
|
543
574
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
544
575
|
// just to deal with this case would probably be a bad idea.
|
545
576
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
546
577
|
}
|
547
|
-
function
|
578
|
+
function nr() {
|
548
579
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
549
580
|
}
|
550
|
-
function
|
581
|
+
function rr() {
|
551
582
|
const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
552
583
|
return typeof n == "object" && n.id !== void 0;
|
553
584
|
}
|
554
|
-
function
|
585
|
+
function ir() {
|
555
586
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
556
587
|
}
|
557
|
-
function
|
588
|
+
function sr() {
|
558
589
|
const n = f();
|
559
590
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
560
591
|
}
|
561
|
-
function
|
592
|
+
function ar() {
|
562
593
|
try {
|
563
594
|
return typeof indexedDB == "object";
|
564
595
|
} catch {
|
565
596
|
return !1;
|
566
597
|
}
|
567
598
|
}
|
568
|
-
function
|
599
|
+
function or() {
|
569
600
|
return new Promise((n, e) => {
|
570
601
|
try {
|
571
602
|
let t = !0;
|
@@ -599,10 +630,10 @@ function sr() {
|
|
599
630
|
* See the License for the specific language governing permissions and
|
600
631
|
* limitations under the License.
|
601
632
|
*/
|
602
|
-
const
|
633
|
+
const cr = "FirebaseError";
|
603
634
|
class M extends Error {
|
604
635
|
constructor(e, t, r) {
|
605
|
-
super(t), this.code = e, this.customData = r, this.name =
|
636
|
+
super(t), this.code = e, this.customData = r, this.name = cr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
|
606
637
|
}
|
607
638
|
}
|
608
639
|
class q {
|
@@ -610,35 +641,35 @@ class q {
|
|
610
641
|
this.service = e, this.serviceName = t, this.errors = r;
|
611
642
|
}
|
612
643
|
create(e, ...t) {
|
613
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e],
|
614
|
-
return new M(i,
|
644
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? lr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
645
|
+
return new M(i, c, r);
|
615
646
|
}
|
616
647
|
}
|
617
|
-
function
|
618
|
-
return n.replace(
|
648
|
+
function lr(n, e) {
|
649
|
+
return n.replace(dr, (t, r) => {
|
619
650
|
const i = e[r];
|
620
651
|
return i != null ? String(i) : `<${r}?>`;
|
621
652
|
});
|
622
653
|
}
|
623
|
-
const
|
624
|
-
function
|
654
|
+
const dr = /\{\$([^}]+)}/g;
|
655
|
+
function ur(n) {
|
625
656
|
for (const e in n)
|
626
657
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
627
658
|
return !1;
|
628
659
|
return !0;
|
629
660
|
}
|
630
|
-
function
|
661
|
+
function ue(n, e) {
|
631
662
|
if (n === e)
|
632
663
|
return !0;
|
633
664
|
const t = Object.keys(n), r = Object.keys(e);
|
634
665
|
for (const i of t) {
|
635
666
|
if (!r.includes(i))
|
636
667
|
return !1;
|
637
|
-
const s = n[i],
|
638
|
-
if (ct(s) && ct(
|
639
|
-
if (!
|
668
|
+
const s = n[i], a = e[i];
|
669
|
+
if (ct(s) && ct(a)) {
|
670
|
+
if (!ue(s, a))
|
640
671
|
return !1;
|
641
|
-
} else if (s !==
|
672
|
+
} else if (s !== a)
|
642
673
|
return !1;
|
643
674
|
}
|
644
675
|
for (const i of r)
|
@@ -673,11 +704,11 @@ function Q(n) {
|
|
673
704
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
674
705
|
return e.length ? "&" + e.join("&") : "";
|
675
706
|
}
|
676
|
-
function
|
677
|
-
const t = new
|
707
|
+
function hr(n, e) {
|
708
|
+
const t = new pr(n, e);
|
678
709
|
return t.subscribe.bind(t);
|
679
710
|
}
|
680
|
-
class
|
711
|
+
class pr {
|
681
712
|
/**
|
682
713
|
* @param executor Function which can make calls to a single Observer
|
683
714
|
* as a proxy.
|
@@ -715,7 +746,7 @@ class ur {
|
|
715
746
|
let i;
|
716
747
|
if (e === void 0 && t === void 0 && r === void 0)
|
717
748
|
throw new Error("Missing Observer.");
|
718
|
-
|
749
|
+
fr(e, [
|
719
750
|
"next",
|
720
751
|
"error",
|
721
752
|
"complete"
|
@@ -723,7 +754,7 @@ class ur {
|
|
723
754
|
next: e,
|
724
755
|
error: t,
|
725
756
|
complete: r
|
726
|
-
}, i.next === void 0 && (i.next =
|
757
|
+
}, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
|
727
758
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
728
759
|
return this.finalized && this.task.then(() => {
|
729
760
|
try {
|
@@ -761,7 +792,7 @@ class ur {
|
|
761
792
|
}));
|
762
793
|
}
|
763
794
|
}
|
764
|
-
function
|
795
|
+
function fr(n, e) {
|
765
796
|
if (typeof n != "object" || n === null)
|
766
797
|
return !1;
|
767
798
|
for (const t of e)
|
@@ -769,7 +800,7 @@ function hr(n, e) {
|
|
769
800
|
return !0;
|
770
801
|
return !1;
|
771
802
|
}
|
772
|
-
function
|
803
|
+
function ke() {
|
773
804
|
}
|
774
805
|
/**
|
775
806
|
* @license
|
@@ -790,7 +821,7 @@ function Re() {
|
|
790
821
|
function z(n) {
|
791
822
|
return n && n._delegate ? n._delegate : n;
|
792
823
|
}
|
793
|
-
class
|
824
|
+
class W {
|
794
825
|
/**
|
795
826
|
*
|
796
827
|
* @param name The public service name, e.g. app, auth, firestore, database
|
@@ -846,7 +877,7 @@ const L = "[DEFAULT]";
|
|
846
877
|
* See the License for the specific language governing permissions and
|
847
878
|
* limitations under the License.
|
848
879
|
*/
|
849
|
-
class
|
880
|
+
class mr {
|
850
881
|
constructor(e, t) {
|
851
882
|
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();
|
852
883
|
}
|
@@ -857,7 +888,7 @@ class pr {
|
|
857
888
|
get(e) {
|
858
889
|
const t = this.normalizeInstanceIdentifier(e);
|
859
890
|
if (!this.instancesDeferred.has(t)) {
|
860
|
-
const r = new
|
891
|
+
const r = new er();
|
861
892
|
if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
|
862
893
|
try {
|
863
894
|
const i = this.getOrInitializeService({
|
@@ -897,7 +928,7 @@ class pr {
|
|
897
928
|
if (this.component)
|
898
929
|
throw Error(`Component for ${this.name} has already been provided`);
|
899
930
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
900
|
-
if (
|
931
|
+
if (gr(e))
|
901
932
|
try {
|
902
933
|
this.getOrInitializeService({ instanceIdentifier: L });
|
903
934
|
} catch {
|
@@ -945,9 +976,9 @@ class pr {
|
|
945
976
|
instanceIdentifier: r,
|
946
977
|
options: t
|
947
978
|
});
|
948
|
-
for (const [s,
|
949
|
-
const
|
950
|
-
r ===
|
979
|
+
for (const [s, a] of this.instancesDeferred.entries()) {
|
980
|
+
const c = this.normalizeInstanceIdentifier(s);
|
981
|
+
r === c && a.resolve(i);
|
951
982
|
}
|
952
983
|
return i;
|
953
984
|
}
|
@@ -963,8 +994,8 @@ class pr {
|
|
963
994
|
var r;
|
964
995
|
const i = this.normalizeInstanceIdentifier(t), s = (r = this.onInitCallbacks.get(i)) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set();
|
965
996
|
s.add(e), this.onInitCallbacks.set(i, s);
|
966
|
-
const
|
967
|
-
return
|
997
|
+
const a = this.instances.get(i);
|
998
|
+
return a && e(a, i), () => {
|
968
999
|
s.delete(e);
|
969
1000
|
};
|
970
1001
|
}
|
@@ -984,7 +1015,7 @@ class pr {
|
|
984
1015
|
getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
|
985
1016
|
let r = this.instances.get(e);
|
986
1017
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
987
|
-
instanceIdentifier:
|
1018
|
+
instanceIdentifier: _r(e),
|
988
1019
|
options: t
|
989
1020
|
}), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
990
1021
|
try {
|
@@ -1000,10 +1031,10 @@ class pr {
|
|
1000
1031
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
1001
1032
|
}
|
1002
1033
|
}
|
1003
|
-
function
|
1034
|
+
function _r(n) {
|
1004
1035
|
return n === L ? void 0 : n;
|
1005
1036
|
}
|
1006
|
-
function
|
1037
|
+
function gr(n) {
|
1007
1038
|
return n.instantiationMode === "EAGER";
|
1008
1039
|
}
|
1009
1040
|
/**
|
@@ -1022,7 +1053,7 @@ function mr(n) {
|
|
1022
1053
|
* See the License for the specific language governing permissions and
|
1023
1054
|
* limitations under the License.
|
1024
1055
|
*/
|
1025
|
-
class
|
1056
|
+
class vr {
|
1026
1057
|
constructor(e) {
|
1027
1058
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
1028
1059
|
}
|
@@ -1054,7 +1085,7 @@ class _r {
|
|
1054
1085
|
getProvider(e) {
|
1055
1086
|
if (this.providers.has(e))
|
1056
1087
|
return this.providers.get(e);
|
1057
|
-
const t = new
|
1088
|
+
const t = new mr(e, this);
|
1058
1089
|
return this.providers.set(e, t), t;
|
1059
1090
|
}
|
1060
1091
|
getProviders() {
|
@@ -1081,29 +1112,29 @@ var h;
|
|
1081
1112
|
(function(n) {
|
1082
1113
|
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";
|
1083
1114
|
})(h || (h = {}));
|
1084
|
-
const
|
1115
|
+
const Ir = {
|
1085
1116
|
debug: h.DEBUG,
|
1086
1117
|
verbose: h.VERBOSE,
|
1087
1118
|
info: h.INFO,
|
1088
1119
|
warn: h.WARN,
|
1089
1120
|
error: h.ERROR,
|
1090
1121
|
silent: h.SILENT
|
1091
|
-
},
|
1122
|
+
}, br = h.INFO, yr = {
|
1092
1123
|
[h.DEBUG]: "log",
|
1093
1124
|
[h.VERBOSE]: "log",
|
1094
1125
|
[h.INFO]: "info",
|
1095
1126
|
[h.WARN]: "warn",
|
1096
1127
|
[h.ERROR]: "error"
|
1097
|
-
},
|
1128
|
+
}, Er = (n, e, ...t) => {
|
1098
1129
|
if (e < n.logLevel)
|
1099
1130
|
return;
|
1100
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
1131
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = yr[e];
|
1101
1132
|
if (i)
|
1102
1133
|
console[i](`[${r}] ${n.name}:`, ...t);
|
1103
1134
|
else
|
1104
1135
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1105
1136
|
};
|
1106
|
-
class
|
1137
|
+
class Zt {
|
1107
1138
|
/**
|
1108
1139
|
* Gives you an instance of a Logger to capture messages according to
|
1109
1140
|
* Firebase's logging scheme.
|
@@ -1111,7 +1142,7 @@ class $t {
|
|
1111
1142
|
* @param name The name that the logs will be associated with
|
1112
1143
|
*/
|
1113
1144
|
constructor(e) {
|
1114
|
-
this.name = e, this._logLevel =
|
1145
|
+
this.name = e, this._logLevel = br, this._logHandler = Er, this._userLogHandler = null;
|
1115
1146
|
}
|
1116
1147
|
get logLevel() {
|
1117
1148
|
return this._logLevel;
|
@@ -1123,7 +1154,7 @@ class $t {
|
|
1123
1154
|
}
|
1124
1155
|
// Workaround for setter/getter having to be the same type.
|
1125
1156
|
setLogLevel(e) {
|
1126
|
-
this._logLevel = typeof e == "string" ?
|
1157
|
+
this._logLevel = typeof e == "string" ? Ir[e] : e;
|
1127
1158
|
}
|
1128
1159
|
get logHandler() {
|
1129
1160
|
return this._logHandler;
|
@@ -1158,9 +1189,9 @@ class $t {
|
|
1158
1189
|
this._userLogHandler && this._userLogHandler(this, h.ERROR, ...e), this._logHandler(this, h.ERROR, ...e);
|
1159
1190
|
}
|
1160
1191
|
}
|
1161
|
-
const
|
1192
|
+
const Tr = (n, e) => e.some((t) => n instanceof t);
|
1162
1193
|
let lt, dt;
|
1163
|
-
function
|
1194
|
+
function wr() {
|
1164
1195
|
return lt || (lt = [
|
1165
1196
|
IDBDatabase,
|
1166
1197
|
IDBObjectStore,
|
@@ -1169,50 +1200,50 @@ function Er() {
|
|
1169
1200
|
IDBTransaction
|
1170
1201
|
]);
|
1171
1202
|
}
|
1172
|
-
function
|
1203
|
+
function Rr() {
|
1173
1204
|
return dt || (dt = [
|
1174
1205
|
IDBCursor.prototype.advance,
|
1175
1206
|
IDBCursor.prototype.continue,
|
1176
1207
|
IDBCursor.prototype.continuePrimaryKey
|
1177
1208
|
]);
|
1178
1209
|
}
|
1179
|
-
const
|
1180
|
-
function
|
1210
|
+
const $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap();
|
1211
|
+
function kr(n) {
|
1181
1212
|
const e = new Promise((t, r) => {
|
1182
1213
|
const i = () => {
|
1183
|
-
n.removeEventListener("success", s), n.removeEventListener("error",
|
1214
|
+
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
1184
1215
|
}, s = () => {
|
1185
1216
|
t(N(n.result)), i();
|
1186
|
-
},
|
1217
|
+
}, a = () => {
|
1187
1218
|
r(n.error), i();
|
1188
1219
|
};
|
1189
|
-
n.addEventListener("success", s), n.addEventListener("error",
|
1220
|
+
n.addEventListener("success", s), n.addEventListener("error", a);
|
1190
1221
|
});
|
1191
1222
|
return e.then((t) => {
|
1192
|
-
t instanceof IDBCursor &&
|
1223
|
+
t instanceof IDBCursor && $t.set(t, n);
|
1193
1224
|
}).catch(() => {
|
1194
|
-
}),
|
1225
|
+
}), Ze.set(e, n), e;
|
1195
1226
|
}
|
1196
|
-
function
|
1197
|
-
if (
|
1227
|
+
function Sr(n) {
|
1228
|
+
if (Le.has(n))
|
1198
1229
|
return;
|
1199
1230
|
const e = new Promise((t, r) => {
|
1200
1231
|
const i = () => {
|
1201
|
-
n.removeEventListener("complete", s), n.removeEventListener("error",
|
1232
|
+
n.removeEventListener("complete", s), n.removeEventListener("error", a), n.removeEventListener("abort", a);
|
1202
1233
|
}, s = () => {
|
1203
1234
|
t(), i();
|
1204
|
-
},
|
1235
|
+
}, a = () => {
|
1205
1236
|
r(n.error || new DOMException("AbortError", "AbortError")), i();
|
1206
1237
|
};
|
1207
|
-
n.addEventListener("complete", s), n.addEventListener("error",
|
1238
|
+
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
1208
1239
|
});
|
1209
|
-
|
1240
|
+
Le.set(n, e);
|
1210
1241
|
}
|
1211
|
-
let
|
1242
|
+
let Ue = {
|
1212
1243
|
get(n, e, t) {
|
1213
1244
|
if (n instanceof IDBTransaction) {
|
1214
1245
|
if (e === "done")
|
1215
|
-
return
|
1246
|
+
return Le.get(n);
|
1216
1247
|
if (e === "objectStoreNames")
|
1217
1248
|
return n.objectStoreNames || Jt.get(n);
|
1218
1249
|
if (e === "store")
|
@@ -1227,68 +1258,68 @@ let Le = {
|
|
1227
1258
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1228
1259
|
}
|
1229
1260
|
};
|
1230
|
-
function
|
1231
|
-
|
1261
|
+
function Ar(n) {
|
1262
|
+
Ue = n(Ue);
|
1232
1263
|
}
|
1233
|
-
function
|
1264
|
+
function Or(n) {
|
1234
1265
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1235
|
-
const r = n.call(
|
1266
|
+
const r = n.call(Ae(this), e, ...t);
|
1236
1267
|
return Jt.set(r, e.sort ? e.sort() : [e]), N(r);
|
1237
|
-
} :
|
1238
|
-
return n.apply(
|
1268
|
+
} : Rr().includes(n) ? function(...e) {
|
1269
|
+
return n.apply(Ae(this), e), N($t.get(this));
|
1239
1270
|
} : function(...e) {
|
1240
|
-
return N(n.apply(
|
1271
|
+
return N(n.apply(Ae(this), e));
|
1241
1272
|
};
|
1242
1273
|
}
|
1243
|
-
function
|
1244
|
-
return typeof n == "function" ?
|
1274
|
+
function Cr(n) {
|
1275
|
+
return typeof n == "function" ? Or(n) : (n instanceof IDBTransaction && Sr(n), Tr(n, wr()) ? new Proxy(n, Ue) : n);
|
1245
1276
|
}
|
1246
1277
|
function N(n) {
|
1247
1278
|
if (n instanceof IDBRequest)
|
1248
|
-
return
|
1249
|
-
if (
|
1250
|
-
return
|
1251
|
-
const e =
|
1252
|
-
return e !== n && (
|
1253
|
-
}
|
1254
|
-
const
|
1255
|
-
function
|
1256
|
-
const
|
1257
|
-
return r &&
|
1258
|
-
r(N(
|
1259
|
-
}), t &&
|
1279
|
+
return kr(n);
|
1280
|
+
if (Se.has(n))
|
1281
|
+
return Se.get(n);
|
1282
|
+
const e = Cr(n);
|
1283
|
+
return e !== n && (Se.set(n, e), Ze.set(e, n)), e;
|
1284
|
+
}
|
1285
|
+
const Ae = (n) => Ze.get(n);
|
1286
|
+
function Nr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1287
|
+
const a = indexedDB.open(n, e), c = N(a);
|
1288
|
+
return r && a.addEventListener("upgradeneeded", (o) => {
|
1289
|
+
r(N(a.result), o.oldVersion, o.newVersion, N(a.transaction), o);
|
1290
|
+
}), t && a.addEventListener("blocked", (o) => t(
|
1260
1291
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
)),
|
1265
|
-
s &&
|
1292
|
+
o.oldVersion,
|
1293
|
+
o.newVersion,
|
1294
|
+
o
|
1295
|
+
)), c.then((o) => {
|
1296
|
+
s && o.addEventListener("close", () => s()), i && o.addEventListener("versionchange", (l) => i(l.oldVersion, l.newVersion, l));
|
1266
1297
|
}).catch(() => {
|
1267
|
-
}),
|
1298
|
+
}), c;
|
1268
1299
|
}
|
1269
|
-
const
|
1300
|
+
const Dr = ["get", "getKey", "getAll", "getAllKeys", "count"], Pr = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1270
1301
|
function ut(n, e) {
|
1271
1302
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1272
1303
|
return;
|
1273
|
-
if (
|
1274
|
-
return
|
1275
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1304
|
+
if (Oe.get(e))
|
1305
|
+
return Oe.get(e);
|
1306
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Pr.includes(t);
|
1276
1307
|
if (
|
1277
1308
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1278
|
-
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
1309
|
+
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Dr.includes(t))
|
1279
1310
|
)
|
1280
1311
|
return;
|
1281
|
-
const s = async function(
|
1282
|
-
const
|
1283
|
-
let l =
|
1284
|
-
return r && (l = l.index(
|
1285
|
-
l[t](...
|
1286
|
-
i &&
|
1312
|
+
const s = async function(a, ...c) {
|
1313
|
+
const o = this.transaction(a, i ? "readwrite" : "readonly");
|
1314
|
+
let l = o.store;
|
1315
|
+
return r && (l = l.index(c.shift())), (await Promise.all([
|
1316
|
+
l[t](...c),
|
1317
|
+
i && o.done
|
1287
1318
|
]))[0];
|
1288
1319
|
};
|
1289
|
-
return
|
1320
|
+
return Oe.set(e, s), s;
|
1290
1321
|
}
|
1291
|
-
|
1322
|
+
Ar((n) => ({
|
1292
1323
|
...n,
|
1293
1324
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1294
1325
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1309,7 +1340,7 @@ kr((n) => ({
|
|
1309
1340
|
* See the License for the specific language governing permissions and
|
1310
1341
|
* limitations under the License.
|
1311
1342
|
*/
|
1312
|
-
class
|
1343
|
+
class Mr {
|
1313
1344
|
constructor(e) {
|
1314
1345
|
this.container = e;
|
1315
1346
|
}
|
@@ -1317,7 +1348,7 @@ class Dr {
|
|
1317
1348
|
// auth token refresh, and installations will send this string.
|
1318
1349
|
getPlatformInfoString() {
|
1319
1350
|
return this.container.getProviders().map((t) => {
|
1320
|
-
if (
|
1351
|
+
if (Lr(t)) {
|
1321
1352
|
const r = t.getImmediate();
|
1322
1353
|
return `${r.library}/${r.version}`;
|
1323
1354
|
} else
|
@@ -1325,11 +1356,11 @@ class Dr {
|
|
1325
1356
|
}).filter((t) => t).join(" ");
|
1326
1357
|
}
|
1327
1358
|
}
|
1328
|
-
function
|
1359
|
+
function Lr(n) {
|
1329
1360
|
const e = n.getComponent();
|
1330
1361
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1331
1362
|
}
|
1332
|
-
const
|
1363
|
+
const Be = "@firebase/app", ht = "0.10.13";
|
1333
1364
|
/**
|
1334
1365
|
* @license
|
1335
1366
|
* Copyright 2019 Google LLC
|
@@ -1346,7 +1377,7 @@ const Ue = "@firebase/app", ht = "0.10.13";
|
|
1346
1377
|
* See the License for the specific language governing permissions and
|
1347
1378
|
* limitations under the License.
|
1348
1379
|
*/
|
1349
|
-
const T = new
|
1380
|
+
const T = new Zt("@firebase/app"), Ur = "@firebase/app-compat", Br = "@firebase/analytics-compat", Fr = "@firebase/analytics", jr = "@firebase/app-check-compat", xr = "@firebase/app-check", Vr = "@firebase/auth", Hr = "@firebase/auth-compat", Gr = "@firebase/database", Wr = "@firebase/data-connect", zr = "@firebase/database-compat", Zr = "@firebase/functions", $r = "@firebase/functions-compat", Jr = "@firebase/installations", Yr = "@firebase/installations-compat", Xr = "@firebase/messaging", Kr = "@firebase/messaging-compat", qr = "@firebase/performance", Qr = "@firebase/performance-compat", ei = "@firebase/remote-config", ti = "@firebase/remote-config-compat", ni = "@firebase/storage", ri = "@firebase/storage-compat", ii = "@firebase/firestore", si = "@firebase/vertexai-preview", ai = "@firebase/firestore-compat", oi = "firebase", ci = "10.14.1";
|
1350
1381
|
/**
|
1351
1382
|
* @license
|
1352
1383
|
* Copyright 2019 Google LLC
|
@@ -1363,35 +1394,35 @@ const T = new $t("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/
|
|
1363
1394
|
* See the License for the specific language governing permissions and
|
1364
1395
|
* limitations under the License.
|
1365
1396
|
*/
|
1366
|
-
const
|
1367
|
-
[
|
1368
|
-
[
|
1369
|
-
[
|
1370
|
-
[
|
1371
|
-
[
|
1372
|
-
[
|
1373
|
-
[
|
1397
|
+
const Fe = "[DEFAULT]", li = {
|
1398
|
+
[Be]: "fire-core",
|
1399
|
+
[Ur]: "fire-core-compat",
|
1400
|
+
[Fr]: "fire-analytics",
|
1401
|
+
[Br]: "fire-analytics-compat",
|
1402
|
+
[xr]: "fire-app-check",
|
1403
|
+
[jr]: "fire-app-check-compat",
|
1404
|
+
[Vr]: "fire-auth",
|
1374
1405
|
[Hr]: "fire-auth-compat",
|
1375
|
-
[
|
1376
|
-
[
|
1377
|
-
[
|
1378
|
-
[
|
1379
|
-
[
|
1380
|
-
[
|
1381
|
-
[
|
1382
|
-
[
|
1383
|
-
[
|
1384
|
-
[
|
1385
|
-
[
|
1386
|
-
[
|
1387
|
-
[
|
1388
|
-
[
|
1389
|
-
[
|
1390
|
-
[
|
1391
|
-
[
|
1392
|
-
[
|
1406
|
+
[Gr]: "fire-rtdb",
|
1407
|
+
[Wr]: "fire-data-connect",
|
1408
|
+
[zr]: "fire-rtdb-compat",
|
1409
|
+
[Zr]: "fire-fn",
|
1410
|
+
[$r]: "fire-fn-compat",
|
1411
|
+
[Jr]: "fire-iid",
|
1412
|
+
[Yr]: "fire-iid-compat",
|
1413
|
+
[Xr]: "fire-fcm",
|
1414
|
+
[Kr]: "fire-fcm-compat",
|
1415
|
+
[qr]: "fire-perf",
|
1416
|
+
[Qr]: "fire-perf-compat",
|
1417
|
+
[ei]: "fire-rc",
|
1418
|
+
[ti]: "fire-rc-compat",
|
1419
|
+
[ni]: "fire-gcs",
|
1420
|
+
[ri]: "fire-gcs-compat",
|
1421
|
+
[ii]: "fire-fst",
|
1422
|
+
[ai]: "fire-fst-compat",
|
1423
|
+
[si]: "fire-vertex",
|
1393
1424
|
"fire-js": "fire-js",
|
1394
|
-
[
|
1425
|
+
[oi]: "fire-js-all"
|
1395
1426
|
};
|
1396
1427
|
/**
|
1397
1428
|
* @license
|
@@ -1409,7 +1440,7 @@ const Be = "[DEFAULT]", ai = {
|
|
1409
1440
|
* See the License for the specific language governing permissions and
|
1410
1441
|
* limitations under the License.
|
1411
1442
|
*/
|
1412
|
-
const
|
1443
|
+
const he = /* @__PURE__ */ new Map(), di = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Map();
|
1413
1444
|
function pt(n, e) {
|
1414
1445
|
try {
|
1415
1446
|
n.container.addComponent(e);
|
@@ -1417,18 +1448,18 @@ function pt(n, e) {
|
|
1417
1448
|
T.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
|
1418
1449
|
}
|
1419
1450
|
}
|
1420
|
-
function
|
1451
|
+
function Y(n) {
|
1421
1452
|
const e = n.name;
|
1422
|
-
if (
|
1453
|
+
if (je.has(e))
|
1423
1454
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1424
|
-
|
1425
|
-
for (const t of
|
1455
|
+
je.set(e, n);
|
1456
|
+
for (const t of he.values())
|
1426
1457
|
pt(t, n);
|
1427
|
-
for (const t of
|
1458
|
+
for (const t of di.values())
|
1428
1459
|
pt(t, n);
|
1429
1460
|
return !0;
|
1430
1461
|
}
|
1431
|
-
function
|
1462
|
+
function Yt(n, e) {
|
1432
1463
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
1433
1464
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
1434
1465
|
}
|
@@ -1451,7 +1482,7 @@ function I(n) {
|
|
1451
1482
|
* See the License for the specific language governing permissions and
|
1452
1483
|
* limitations under the License.
|
1453
1484
|
*/
|
1454
|
-
const
|
1485
|
+
const ui = {
|
1455
1486
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1456
1487
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1457
1488
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1466,7 +1497,7 @@ const li = {
|
|
1466
1497
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1467
1498
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1468
1499
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1469
|
-
}, D = new q("app", "Firebase",
|
1500
|
+
}, D = new q("app", "Firebase", ui);
|
1470
1501
|
/**
|
1471
1502
|
* @license
|
1472
1503
|
* Copyright 2019 Google LLC
|
@@ -1483,9 +1514,9 @@ const li = {
|
|
1483
1514
|
* See the License for the specific language governing permissions and
|
1484
1515
|
* limitations under the License.
|
1485
1516
|
*/
|
1486
|
-
class
|
1517
|
+
class hi {
|
1487
1518
|
constructor(e, t, r) {
|
1488
|
-
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
|
1519
|
+
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(
|
1489
1520
|
"app",
|
1490
1521
|
() => this,
|
1491
1522
|
"PUBLIC"
|
@@ -1541,53 +1572,53 @@ class di {
|
|
1541
1572
|
* See the License for the specific language governing permissions and
|
1542
1573
|
* limitations under the License.
|
1543
1574
|
*/
|
1544
|
-
const ee =
|
1545
|
-
function
|
1575
|
+
const ee = ci;
|
1576
|
+
function Xt(n, e = {}) {
|
1546
1577
|
let t = n;
|
1547
1578
|
typeof e != "object" && (e = { name: e });
|
1548
|
-
const r = Object.assign({ name:
|
1579
|
+
const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
1549
1580
|
if (typeof i != "string" || !i)
|
1550
1581
|
throw D.create("bad-app-name", {
|
1551
1582
|
appName: String(i)
|
1552
1583
|
});
|
1553
|
-
if (t || (t =
|
1584
|
+
if (t || (t = Wt()), !t)
|
1554
1585
|
throw D.create(
|
1555
1586
|
"no-options"
|
1556
1587
|
/* AppError.NO_OPTIONS */
|
1557
1588
|
);
|
1558
|
-
const s =
|
1589
|
+
const s = he.get(i);
|
1559
1590
|
if (s) {
|
1560
|
-
if (
|
1591
|
+
if (ue(t, s.options) && ue(r, s.config))
|
1561
1592
|
return s;
|
1562
1593
|
throw D.create("duplicate-app", { appName: i });
|
1563
1594
|
}
|
1564
|
-
const
|
1565
|
-
for (const
|
1566
|
-
|
1567
|
-
const
|
1568
|
-
return
|
1595
|
+
const a = new vr(i);
|
1596
|
+
for (const o of je.values())
|
1597
|
+
a.addComponent(o);
|
1598
|
+
const c = new hi(t, r, a);
|
1599
|
+
return he.set(i, c), c;
|
1569
1600
|
}
|
1570
|
-
function
|
1571
|
-
const e =
|
1572
|
-
if (!e && n ===
|
1573
|
-
return
|
1601
|
+
function pi(n = Fe) {
|
1602
|
+
const e = he.get(n);
|
1603
|
+
if (!e && n === Fe && Wt())
|
1604
|
+
return Xt();
|
1574
1605
|
if (!e)
|
1575
1606
|
throw D.create("no-app", { appName: n });
|
1576
1607
|
return e;
|
1577
1608
|
}
|
1578
|
-
function
|
1609
|
+
function x(n, e, t) {
|
1579
1610
|
var r;
|
1580
|
-
let i = (r =
|
1611
|
+
let i = (r = li[n]) !== null && r !== void 0 ? r : n;
|
1581
1612
|
t && (i += `-${t}`);
|
1582
|
-
const s = i.match(/\s|\//),
|
1583
|
-
if (s ||
|
1584
|
-
const
|
1613
|
+
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
1614
|
+
if (s || a) {
|
1615
|
+
const c = [
|
1585
1616
|
`Unable to register library "${i}" with version "${e}":`
|
1586
1617
|
];
|
1587
|
-
s &&
|
1618
|
+
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(" "));
|
1588
1619
|
return;
|
1589
1620
|
}
|
1590
|
-
|
1621
|
+
Y(new W(
|
1591
1622
|
`${i}-version`,
|
1592
1623
|
() => ({ library: i, version: e }),
|
1593
1624
|
"VERSION"
|
@@ -1610,15 +1641,15 @@ function H(n, e, t) {
|
|
1610
1641
|
* See the License for the specific language governing permissions and
|
1611
1642
|
* limitations under the License.
|
1612
1643
|
*/
|
1613
|
-
const
|
1614
|
-
let
|
1644
|
+
const fi = "firebase-heartbeat-database", mi = 1, X = "firebase-heartbeat-store";
|
1645
|
+
let Ce = null;
|
1615
1646
|
function Kt() {
|
1616
|
-
return
|
1647
|
+
return Ce || (Ce = Nr(fi, mi, {
|
1617
1648
|
upgrade: (n, e) => {
|
1618
1649
|
switch (e) {
|
1619
1650
|
case 0:
|
1620
1651
|
try {
|
1621
|
-
n.createObjectStore(
|
1652
|
+
n.createObjectStore(X);
|
1622
1653
|
} catch (t) {
|
1623
1654
|
console.warn(t);
|
1624
1655
|
}
|
@@ -1628,11 +1659,11 @@ function Kt() {
|
|
1628
1659
|
throw D.create("idb-open", {
|
1629
1660
|
originalErrorMessage: n.message
|
1630
1661
|
});
|
1631
|
-
})),
|
1662
|
+
})), Ce;
|
1632
1663
|
}
|
1633
|
-
async function
|
1664
|
+
async function _i(n) {
|
1634
1665
|
try {
|
1635
|
-
const t = (await Kt()).transaction(
|
1666
|
+
const t = (await Kt()).transaction(X), r = await t.objectStore(X).get(qt(n));
|
1636
1667
|
return await t.done, r;
|
1637
1668
|
} catch (e) {
|
1638
1669
|
if (e instanceof M)
|
@@ -1647,8 +1678,8 @@ async function fi(n) {
|
|
1647
1678
|
}
|
1648
1679
|
async function ft(n, e) {
|
1649
1680
|
try {
|
1650
|
-
const r = (await Kt()).transaction(
|
1651
|
-
await r.objectStore(
|
1681
|
+
const r = (await Kt()).transaction(X, "readwrite");
|
1682
|
+
await r.objectStore(X).put(e, qt(n)), await r.done;
|
1652
1683
|
} catch (t) {
|
1653
1684
|
if (t instanceof M)
|
1654
1685
|
T.warn(t.message);
|
@@ -1679,12 +1710,12 @@ function qt(n) {
|
|
1679
1710
|
* See the License for the specific language governing permissions and
|
1680
1711
|
* limitations under the License.
|
1681
1712
|
*/
|
1682
|
-
const
|
1683
|
-
class
|
1713
|
+
const gi = 1024, vi = 30 * 24 * 60 * 60 * 1e3;
|
1714
|
+
class Ii {
|
1684
1715
|
constructor(e) {
|
1685
1716
|
this.container = e, this._heartbeatsCache = null;
|
1686
1717
|
const t = this.container.getProvider("app").getImmediate();
|
1687
|
-
this._storage = new
|
1718
|
+
this._storage = new yi(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
1688
1719
|
}
|
1689
1720
|
/**
|
1690
1721
|
* Called to report a heartbeat. The function will generate
|
@@ -1697,9 +1728,9 @@ class gi {
|
|
1697
1728
|
var e, t;
|
1698
1729
|
try {
|
1699
1730
|
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = mt();
|
1700
|
-
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((
|
1701
|
-
const
|
1702
|
-
return Date.now() -
|
1731
|
+
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) => {
|
1732
|
+
const c = new Date(a.date).valueOf();
|
1733
|
+
return Date.now() - c <= vi;
|
1703
1734
|
}), this._storage.overwrite(this._heartbeatsCache));
|
1704
1735
|
} catch (r) {
|
1705
1736
|
T.warn(r);
|
@@ -1717,7 +1748,7 @@ class gi {
|
|
1717
1748
|
try {
|
1718
1749
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
1719
1750
|
return "";
|
1720
|
-
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } =
|
1751
|
+
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } = bi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
1721
1752
|
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;
|
1722
1753
|
} catch (t) {
|
1723
1754
|
return T.warn(t), "";
|
@@ -1727,11 +1758,11 @@ class gi {
|
|
1727
1758
|
function mt() {
|
1728
1759
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
1729
1760
|
}
|
1730
|
-
function
|
1761
|
+
function bi(n, e = gi) {
|
1731
1762
|
const t = [];
|
1732
1763
|
let r = n.slice();
|
1733
1764
|
for (const i of n) {
|
1734
|
-
const s = t.find((
|
1765
|
+
const s = t.find((a) => a.agent === i.agent);
|
1735
1766
|
if (s) {
|
1736
1767
|
if (s.dates.push(i.date), _t(t) > e) {
|
1737
1768
|
s.dates.pop();
|
@@ -1751,19 +1782,19 @@ function vi(n, e = mi) {
|
|
1751
1782
|
unsentEntries: r
|
1752
1783
|
};
|
1753
1784
|
}
|
1754
|
-
class
|
1785
|
+
class yi {
|
1755
1786
|
constructor(e) {
|
1756
1787
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
1757
1788
|
}
|
1758
1789
|
async runIndexedDBEnvironmentCheck() {
|
1759
|
-
return
|
1790
|
+
return ar() ? or().then(() => !0).catch(() => !1) : !1;
|
1760
1791
|
}
|
1761
1792
|
/**
|
1762
1793
|
* Read all heartbeats.
|
1763
1794
|
*/
|
1764
1795
|
async read() {
|
1765
1796
|
if (await this._canUseIndexedDBPromise) {
|
1766
|
-
const t = await
|
1797
|
+
const t = await _i(this.app);
|
1767
1798
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
1768
1799
|
} else
|
1769
1800
|
return { heartbeats: [] };
|
@@ -1797,7 +1828,7 @@ class Ii {
|
|
1797
1828
|
}
|
1798
1829
|
}
|
1799
1830
|
function _t(n) {
|
1800
|
-
return
|
1831
|
+
return de(
|
1801
1832
|
// heartbeatsCache wrapper properties
|
1802
1833
|
JSON.stringify({ version: 2, heartbeats: n })
|
1803
1834
|
).length;
|
@@ -1818,21 +1849,21 @@ function _t(n) {
|
|
1818
1849
|
* See the License for the specific language governing permissions and
|
1819
1850
|
* limitations under the License.
|
1820
1851
|
*/
|
1821
|
-
function
|
1822
|
-
|
1852
|
+
function Ei(n) {
|
1853
|
+
Y(new W(
|
1823
1854
|
"platform-logger",
|
1824
|
-
(e) => new
|
1855
|
+
(e) => new Mr(e),
|
1825
1856
|
"PRIVATE"
|
1826
1857
|
/* ComponentType.PRIVATE */
|
1827
|
-
)),
|
1858
|
+
)), Y(new W(
|
1828
1859
|
"heartbeat",
|
1829
|
-
(e) => new
|
1860
|
+
(e) => new Ii(e),
|
1830
1861
|
"PRIVATE"
|
1831
1862
|
/* ComponentType.PRIVATE */
|
1832
|
-
)),
|
1863
|
+
)), x(Be, ht, n), x(Be, ht, "esm2017"), x("fire-js", "");
|
1833
1864
|
}
|
1834
|
-
|
1835
|
-
var
|
1865
|
+
Ei("");
|
1866
|
+
var Ti = "firebase", wi = "10.14.1";
|
1836
1867
|
/**
|
1837
1868
|
* @license
|
1838
1869
|
* Copyright 2020 Google LLC
|
@@ -1849,7 +1880,7 @@ var yi = "firebase", Ei = "10.14.1";
|
|
1849
1880
|
* See the License for the specific language governing permissions and
|
1850
1881
|
* limitations under the License.
|
1851
1882
|
*/
|
1852
|
-
|
1883
|
+
x(Ti, wi, "app");
|
1853
1884
|
var gt = function() {
|
1854
1885
|
return gt = Object.assign || function(e) {
|
1855
1886
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -1859,7 +1890,7 @@ var gt = function() {
|
|
1859
1890
|
return e;
|
1860
1891
|
}, gt.apply(this, arguments);
|
1861
1892
|
};
|
1862
|
-
function
|
1893
|
+
function $e(n, e) {
|
1863
1894
|
var t = {};
|
1864
1895
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
1865
1896
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -1872,7 +1903,7 @@ function Qt() {
|
|
1872
1903
|
"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."
|
1873
1904
|
};
|
1874
1905
|
}
|
1875
|
-
const
|
1906
|
+
const Ri = Qt, en = new q("auth", "Firebase", Qt());
|
1876
1907
|
/**
|
1877
1908
|
* @license
|
1878
1909
|
* Copyright 2020 Google LLC
|
@@ -1889,12 +1920,12 @@ const Ti = Qt, en = new q("auth", "Firebase", Qt());
|
|
1889
1920
|
* See the License for the specific language governing permissions and
|
1890
1921
|
* limitations under the License.
|
1891
1922
|
*/
|
1892
|
-
const
|
1893
|
-
function
|
1894
|
-
|
1923
|
+
const pe = new Zt("@firebase/auth");
|
1924
|
+
function ki(n, ...e) {
|
1925
|
+
pe.logLevel <= h.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
1895
1926
|
}
|
1896
1927
|
function se(n, ...e) {
|
1897
|
-
|
1928
|
+
pe.logLevel <= h.ERROR && pe.error(`Auth (${ee}): ${n}`, ...e);
|
1898
1929
|
}
|
1899
1930
|
/**
|
1900
1931
|
* @license
|
@@ -1919,7 +1950,7 @@ function _(n, ...e) {
|
|
1919
1950
|
return Je(n, ...e);
|
1920
1951
|
}
|
1921
1952
|
function tn(n, e, t) {
|
1922
|
-
const r = Object.assign(Object.assign({},
|
1953
|
+
const r = Object.assign(Object.assign({}, Ri()), { [e]: t });
|
1923
1954
|
return new q("auth", "Firebase", r).create(e, {
|
1924
1955
|
appName: n.name
|
1925
1956
|
});
|
@@ -1965,7 +1996,7 @@ function xe() {
|
|
1965
1996
|
var n;
|
1966
1997
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
1967
1998
|
}
|
1968
|
-
function
|
1999
|
+
function Si() {
|
1969
2000
|
return vt() === "http:" || vt() === "https:";
|
1970
2001
|
}
|
1971
2002
|
function vt() {
|
@@ -1988,15 +2019,15 @@ function vt() {
|
|
1988
2019
|
* See the License for the specific language governing permissions and
|
1989
2020
|
* limitations under the License.
|
1990
2021
|
*/
|
1991
|
-
function
|
2022
|
+
function Ai() {
|
1992
2023
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
1993
2024
|
// This is especially true for Cordova apps which have unreliable
|
1994
2025
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
1995
2026
|
// installed which overwrites the native navigator.onLine value and
|
1996
2027
|
// defines navigator.connection.
|
1997
|
-
(
|
2028
|
+
(Si() || rr() || "connection" in navigator) ? navigator.onLine : !0;
|
1998
2029
|
}
|
1999
|
-
function
|
2030
|
+
function Oi() {
|
2000
2031
|
if (typeof navigator > "u")
|
2001
2032
|
return null;
|
2002
2033
|
const n = navigator;
|
@@ -2026,10 +2057,10 @@ function Si() {
|
|
2026
2057
|
*/
|
2027
2058
|
class te {
|
2028
2059
|
constructor(e, t) {
|
2029
|
-
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
2060
|
+
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = tr() || ir();
|
2030
2061
|
}
|
2031
2062
|
get() {
|
2032
|
-
return
|
2063
|
+
return Ai() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2033
2064
|
}
|
2034
2065
|
}
|
2035
2066
|
/**
|
@@ -2048,7 +2079,7 @@ class te {
|
|
2048
2079
|
* See the License for the specific language governing permissions and
|
2049
2080
|
* limitations under the License.
|
2050
2081
|
*/
|
2051
|
-
function
|
2082
|
+
function Ye(n, e) {
|
2052
2083
|
R(n.emulator, "Emulator should always be set here");
|
2053
2084
|
const { url: t } = n.emulator;
|
2054
2085
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
@@ -2123,7 +2154,7 @@ class nn {
|
|
2123
2154
|
* See the License for the specific language governing permissions and
|
2124
2155
|
* limitations under the License.
|
2125
2156
|
*/
|
2126
|
-
const
|
2157
|
+
const Ci = {
|
2127
2158
|
// Custom token errors.
|
2128
2159
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2129
2160
|
// This can only happen if the SDK sends a bad request.
|
@@ -2214,54 +2245,54 @@ const Ai = {
|
|
2214
2245
|
* See the License for the specific language governing permissions and
|
2215
2246
|
* limitations under the License.
|
2216
2247
|
*/
|
2217
|
-
const
|
2218
|
-
function
|
2248
|
+
const Ni = new te(3e4, 6e4);
|
2249
|
+
function ve(n, e) {
|
2219
2250
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2220
2251
|
}
|
2221
|
-
async function
|
2252
|
+
async function Z(n, e, t, r, i = {}) {
|
2222
2253
|
return rn(n, i, async () => {
|
2223
|
-
let s = {},
|
2224
|
-
r && (e === "GET" ?
|
2254
|
+
let s = {}, a = {};
|
2255
|
+
r && (e === "GET" ? a = r : s = {
|
2225
2256
|
body: JSON.stringify(r)
|
2226
2257
|
});
|
2227
|
-
const
|
2228
|
-
|
2258
|
+
const c = Q(Object.assign({ key: n.config.apiKey }, a)).slice(1), o = await n._getAdditionalHeaders();
|
2259
|
+
o[
|
2229
2260
|
"Content-Type"
|
2230
2261
|
/* HttpHeader.CONTENT_TYPE */
|
2231
|
-
] = "application/json", n.languageCode && (
|
2262
|
+
] = "application/json", n.languageCode && (o[
|
2232
2263
|
"X-Firebase-Locale"
|
2233
2264
|
/* HttpHeader.X_FIREBASE_LOCALE */
|
2234
2265
|
] = n.languageCode);
|
2235
2266
|
const l = Object.assign({
|
2236
2267
|
method: e,
|
2237
|
-
headers:
|
2268
|
+
headers: o
|
2238
2269
|
}, s);
|
2239
|
-
return
|
2270
|
+
return nr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2240
2271
|
});
|
2241
2272
|
}
|
2242
2273
|
async function rn(n, e, t) {
|
2243
2274
|
n._canInitEmulator = !1;
|
2244
|
-
const r = Object.assign(Object.assign({},
|
2275
|
+
const r = Object.assign(Object.assign({}, Ci), e);
|
2245
2276
|
try {
|
2246
|
-
const i = new
|
2277
|
+
const i = new Di(n), s = await Promise.race([
|
2247
2278
|
t(),
|
2248
2279
|
i.promise
|
2249
2280
|
]);
|
2250
2281
|
i.clearNetworkTimeout();
|
2251
|
-
const
|
2252
|
-
if ("needConfirmation" in
|
2253
|
-
throw ie(n, "account-exists-with-different-credential",
|
2254
|
-
if (s.ok && !("errorMessage" in
|
2255
|
-
return
|
2282
|
+
const a = await s.json();
|
2283
|
+
if ("needConfirmation" in a)
|
2284
|
+
throw ie(n, "account-exists-with-different-credential", a);
|
2285
|
+
if (s.ok && !("errorMessage" in a))
|
2286
|
+
return a;
|
2256
2287
|
{
|
2257
|
-
const
|
2258
|
-
if (
|
2259
|
-
throw ie(n, "credential-already-in-use",
|
2260
|
-
if (
|
2261
|
-
throw ie(n, "email-already-in-use",
|
2262
|
-
if (
|
2263
|
-
throw ie(n, "user-disabled",
|
2264
|
-
const u = r[
|
2288
|
+
const c = s.ok ? a.errorMessage : a.error.message, [o, l] = c.split(" : ");
|
2289
|
+
if (o === "FEDERATED_USER_ID_ALREADY_LINKED")
|
2290
|
+
throw ie(n, "credential-already-in-use", a);
|
2291
|
+
if (o === "EMAIL_EXISTS")
|
2292
|
+
throw ie(n, "email-already-in-use", a);
|
2293
|
+
if (o === "USER_DISABLED")
|
2294
|
+
throw ie(n, "user-disabled", a);
|
2295
|
+
const u = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
2265
2296
|
if (l)
|
2266
2297
|
throw tn(n, u, l);
|
2267
2298
|
w(n, u);
|
@@ -2273,23 +2304,23 @@ async function rn(n, e, t) {
|
|
2273
2304
|
}
|
2274
2305
|
}
|
2275
2306
|
async function sn(n, e, t, r, i = {}) {
|
2276
|
-
const s = await
|
2307
|
+
const s = await Z(n, e, t, r, i);
|
2277
2308
|
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2278
2309
|
_serverResponse: s
|
2279
2310
|
}), s;
|
2280
2311
|
}
|
2281
|
-
function
|
2312
|
+
function an(n, e, t, r) {
|
2282
2313
|
const i = `${e}${t}?${r}`;
|
2283
|
-
return n.config.emulator ?
|
2314
|
+
return n.config.emulator ? Ye(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2284
2315
|
}
|
2285
|
-
class
|
2316
|
+
class Di {
|
2286
2317
|
constructor(e) {
|
2287
2318
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
2288
2319
|
this.timer = setTimeout(() => r(_(
|
2289
2320
|
this.auth,
|
2290
2321
|
"network-request-failed"
|
2291
2322
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2292
|
-
)),
|
2323
|
+
)), Ni.get());
|
2293
2324
|
});
|
2294
2325
|
}
|
2295
2326
|
clearNetworkTimeout() {
|
@@ -2320,11 +2351,11 @@ function ie(n, e, t) {
|
|
2320
2351
|
* See the License for the specific language governing permissions and
|
2321
2352
|
* limitations under the License.
|
2322
2353
|
*/
|
2323
|
-
async function
|
2324
|
-
return
|
2354
|
+
async function Pi(n, e) {
|
2355
|
+
return Z(n, "POST", "/v1/accounts:delete", e);
|
2325
2356
|
}
|
2326
|
-
async function
|
2327
|
-
return
|
2357
|
+
async function on(n, e) {
|
2358
|
+
return Z(n, "POST", "/v1/accounts:lookup", e);
|
2328
2359
|
}
|
2329
2360
|
/**
|
2330
2361
|
* @license
|
@@ -2351,41 +2382,41 @@ function J(n) {
|
|
2351
2382
|
} catch {
|
2352
2383
|
}
|
2353
2384
|
}
|
2354
|
-
async function
|
2355
|
-
const t = z(n), r = await t.getIdToken(e), i =
|
2385
|
+
async function Mi(n, e = !1) {
|
2386
|
+
const t = z(n), r = await t.getIdToken(e), i = Xe(r);
|
2356
2387
|
d(
|
2357
2388
|
i && i.exp && i.auth_time && i.iat,
|
2358
2389
|
t.auth,
|
2359
2390
|
"internal-error"
|
2360
2391
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2361
2392
|
);
|
2362
|
-
const s = typeof i.firebase == "object" ? i.firebase : void 0,
|
2393
|
+
const s = typeof i.firebase == "object" ? i.firebase : void 0, a = s == null ? void 0 : s.sign_in_provider;
|
2363
2394
|
return {
|
2364
2395
|
claims: i,
|
2365
2396
|
token: r,
|
2366
|
-
authTime: J(
|
2367
|
-
issuedAtTime: J(
|
2368
|
-
expirationTime: J(
|
2369
|
-
signInProvider:
|
2397
|
+
authTime: J(Ne(i.auth_time)),
|
2398
|
+
issuedAtTime: J(Ne(i.iat)),
|
2399
|
+
expirationTime: J(Ne(i.exp)),
|
2400
|
+
signInProvider: a || null,
|
2370
2401
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2371
2402
|
};
|
2372
2403
|
}
|
2373
|
-
function
|
2404
|
+
function Ne(n) {
|
2374
2405
|
return Number(n) * 1e3;
|
2375
2406
|
}
|
2376
|
-
function
|
2407
|
+
function Xe(n) {
|
2377
2408
|
const [e, t, r] = n.split(".");
|
2378
2409
|
if (e === void 0 || t === void 0 || r === void 0)
|
2379
2410
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2380
2411
|
try {
|
2381
|
-
const i =
|
2412
|
+
const i = Ht(t);
|
2382
2413
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2383
2414
|
} catch (i) {
|
2384
2415
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
2385
2416
|
}
|
2386
2417
|
}
|
2387
2418
|
function It(n) {
|
2388
|
-
const e =
|
2419
|
+
const e = Xe(n);
|
2389
2420
|
return d(
|
2390
2421
|
e,
|
2391
2422
|
"internal-error"
|
@@ -2422,10 +2453,10 @@ async function K(n, e, t = !1) {
|
|
2422
2453
|
try {
|
2423
2454
|
return await e;
|
2424
2455
|
} catch (r) {
|
2425
|
-
throw r instanceof M &&
|
2456
|
+
throw r instanceof M && Li(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2426
2457
|
}
|
2427
2458
|
}
|
2428
|
-
function
|
2459
|
+
function Li({ code: n }) {
|
2429
2460
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2430
2461
|
}
|
2431
2462
|
/**
|
@@ -2444,7 +2475,7 @@ function Pi({ code: n }) {
|
|
2444
2475
|
* See the License for the specific language governing permissions and
|
2445
2476
|
* limitations under the License.
|
2446
2477
|
*/
|
2447
|
-
class
|
2478
|
+
class Ui {
|
2448
2479
|
constructor(e) {
|
2449
2480
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
2450
2481
|
}
|
@@ -2506,7 +2537,7 @@ class Mi {
|
|
2506
2537
|
* See the License for the specific language governing permissions and
|
2507
2538
|
* limitations under the License.
|
2508
2539
|
*/
|
2509
|
-
class
|
2540
|
+
class Ve {
|
2510
2541
|
constructor(e, t) {
|
2511
2542
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2512
2543
|
}
|
@@ -2539,9 +2570,9 @@ class He {
|
|
2539
2570
|
* See the License for the specific language governing permissions and
|
2540
2571
|
* limitations under the License.
|
2541
2572
|
*/
|
2542
|
-
async function
|
2573
|
+
async function fe(n) {
|
2543
2574
|
var e;
|
2544
|
-
const t = n.auth, r = await n.getIdToken(), i = await K(n,
|
2575
|
+
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2545
2576
|
d(
|
2546
2577
|
i == null ? void 0 : i.users.length,
|
2547
2578
|
t,
|
@@ -2550,7 +2581,7 @@ async function pe(n) {
|
|
2550
2581
|
);
|
2551
2582
|
const s = i.users[0];
|
2552
2583
|
n._notifyReloadListener(s);
|
2553
|
-
const
|
2584
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c = Fi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, p = {
|
2554
2585
|
uid: s.localId,
|
2555
2586
|
displayName: s.displayName || null,
|
2556
2587
|
photoURL: s.photoUrl || null,
|
@@ -2558,22 +2589,22 @@ async function pe(n) {
|
|
2558
2589
|
emailVerified: s.emailVerified || !1,
|
2559
2590
|
phoneNumber: s.phoneNumber || null,
|
2560
2591
|
tenantId: s.tenantId || null,
|
2561
|
-
providerData:
|
2562
|
-
metadata: new
|
2592
|
+
providerData: c,
|
2593
|
+
metadata: new Ve(s.createdAt, s.lastLoginAt),
|
2563
2594
|
isAnonymous: u
|
2564
2595
|
};
|
2565
2596
|
Object.assign(n, p);
|
2566
2597
|
}
|
2567
|
-
async function
|
2598
|
+
async function Bi(n) {
|
2568
2599
|
const e = z(n);
|
2569
|
-
await
|
2600
|
+
await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2570
2601
|
}
|
2571
|
-
function
|
2602
|
+
function Fi(n, e) {
|
2572
2603
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2573
2604
|
}
|
2574
2605
|
function cn(n) {
|
2575
2606
|
return n.map((e) => {
|
2576
|
-
var { providerId: t } = e, r =
|
2607
|
+
var { providerId: t } = e, r = $e(e, ["providerId"]);
|
2577
2608
|
return {
|
2578
2609
|
providerId: t,
|
2579
2610
|
uid: r.rawId || "",
|
@@ -2600,18 +2631,18 @@ function cn(n) {
|
|
2600
2631
|
* See the License for the specific language governing permissions and
|
2601
2632
|
* limitations under the License.
|
2602
2633
|
*/
|
2603
|
-
async function
|
2634
|
+
async function ji(n, e) {
|
2604
2635
|
const t = await rn(n, {}, async () => {
|
2605
2636
|
const r = Q({
|
2606
2637
|
grant_type: "refresh_token",
|
2607
2638
|
refresh_token: e
|
2608
|
-
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config,
|
2609
|
-
return
|
2639
|
+
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a = an(n, i, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
|
2640
|
+
return c[
|
2610
2641
|
"Content-Type"
|
2611
2642
|
/* HttpHeader.CONTENT_TYPE */
|
2612
|
-
] = "application/x-www-form-urlencoded", nn.fetch()(
|
2643
|
+
] = "application/x-www-form-urlencoded", nn.fetch()(a, {
|
2613
2644
|
method: "POST",
|
2614
|
-
headers:
|
2645
|
+
headers: c,
|
2615
2646
|
body: r
|
2616
2647
|
});
|
2617
2648
|
});
|
@@ -2621,8 +2652,8 @@ async function Bi(n, e) {
|
|
2621
2652
|
refreshToken: t.refresh_token
|
2622
2653
|
};
|
2623
2654
|
}
|
2624
|
-
async function
|
2625
|
-
return
|
2655
|
+
async function xi(n, e) {
|
2656
|
+
return Z(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2626
2657
|
}
|
2627
2658
|
/**
|
2628
2659
|
* @license
|
@@ -2640,7 +2671,7 @@ async function Fi(n, e) {
|
|
2640
2671
|
* See the License for the specific language governing permissions and
|
2641
2672
|
* limitations under the License.
|
2642
2673
|
*/
|
2643
|
-
class
|
2674
|
+
class V {
|
2644
2675
|
constructor() {
|
2645
2676
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2646
2677
|
}
|
@@ -2685,21 +2716,21 @@ class W {
|
|
2685
2716
|
this.refreshToken = null;
|
2686
2717
|
}
|
2687
2718
|
async refresh(e, t) {
|
2688
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
2719
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await ji(e, t);
|
2689
2720
|
this.updateTokensAndExpiration(r, i, Number(s));
|
2690
2721
|
}
|
2691
2722
|
updateTokensAndExpiration(e, t, r) {
|
2692
2723
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
2693
2724
|
}
|
2694
2725
|
static fromJSON(e, t) {
|
2695
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t,
|
2726
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new V();
|
2696
2727
|
return r && (d(typeof r == "string", "internal-error", {
|
2697
2728
|
appName: e
|
2698
|
-
}),
|
2729
|
+
}), a.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
|
2699
2730
|
appName: e
|
2700
|
-
}),
|
2731
|
+
}), a.accessToken = i), s && (d(typeof s == "number", "internal-error", {
|
2701
2732
|
appName: e
|
2702
|
-
}),
|
2733
|
+
}), a.expirationTime = s), a;
|
2703
2734
|
}
|
2704
2735
|
toJSON() {
|
2705
2736
|
return {
|
@@ -2712,7 +2743,7 @@ class W {
|
|
2712
2743
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
2713
2744
|
}
|
2714
2745
|
_clone() {
|
2715
|
-
return Object.assign(new
|
2746
|
+
return Object.assign(new V(), this.toJSON());
|
2716
2747
|
}
|
2717
2748
|
_performRefresh() {
|
2718
2749
|
return b("not implemented");
|
@@ -2739,8 +2770,8 @@ function k(n, e) {
|
|
2739
2770
|
}
|
2740
2771
|
class y {
|
2741
2772
|
constructor(e) {
|
2742
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
2743
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
2773
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
2774
|
+
this.providerId = "firebase", this.proactiveRefresh = new Ui(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 Ve(s.createdAt || void 0, s.lastLoginAt || void 0);
|
2744
2775
|
}
|
2745
2776
|
async getIdToken(e) {
|
2746
2777
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
@@ -2752,10 +2783,10 @@ class y {
|
|
2752
2783
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
2753
2784
|
}
|
2754
2785
|
getIdTokenResult(e) {
|
2755
|
-
return
|
2786
|
+
return Mi(this, e);
|
2756
2787
|
}
|
2757
2788
|
reload() {
|
2758
|
-
return
|
2789
|
+
return Bi(this);
|
2759
2790
|
}
|
2760
2791
|
_assign(e) {
|
2761
2792
|
this !== e && (d(
|
@@ -2788,13 +2819,13 @@ class y {
|
|
2788
2819
|
}
|
2789
2820
|
async _updateTokensIfNecessary(e, t = !1) {
|
2790
2821
|
let r = !1;
|
2791
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
2822
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
2792
2823
|
}
|
2793
2824
|
async delete() {
|
2794
2825
|
if (I(this.auth.app))
|
2795
2826
|
return Promise.reject(P(this.auth));
|
2796
2827
|
const e = await this.getIdToken();
|
2797
|
-
return await K(this,
|
2828
|
+
return await K(this, Pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
2798
2829
|
}
|
2799
2830
|
toJSON() {
|
2800
2831
|
return Object.assign(Object.assign({
|
@@ -2821,17 +2852,17 @@ class y {
|
|
2821
2852
|
return this.stsTokenManager.refreshToken || "";
|
2822
2853
|
}
|
2823
2854
|
static _fromJSON(e, t) {
|
2824
|
-
var r, i, s,
|
2825
|
-
const p = (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 = (
|
2855
|
+
var r, i, s, a, c, o, l, u;
|
2856
|
+
const p = (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 = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Te, emailVerified: it, isAnonymous: st, providerData: we, stsTokenManager: at } = t;
|
2826
2857
|
d(
|
2827
|
-
|
2858
|
+
Te && at,
|
2828
2859
|
e,
|
2829
2860
|
"internal-error"
|
2830
2861
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2831
2862
|
);
|
2832
|
-
const Pn =
|
2863
|
+
const Pn = V.fromJSON(this.name, at);
|
2833
2864
|
d(
|
2834
|
-
typeof
|
2865
|
+
typeof Te == "string",
|
2835
2866
|
e,
|
2836
2867
|
"internal-error"
|
2837
2868
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2845,9 +2876,9 @@ class y {
|
|
2845
2876
|
e,
|
2846
2877
|
"internal-error"
|
2847
2878
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2848
|
-
), k(v, e.name), k(F, e.name), k(tt, e.name), k(
|
2849
|
-
const
|
2850
|
-
uid:
|
2879
|
+
), k(v, e.name), k(F, e.name), k(tt, e.name), k(Ee, e.name), k(nt, e.name), k(rt, e.name);
|
2880
|
+
const Re = new y({
|
2881
|
+
uid: Te,
|
2851
2882
|
auth: e,
|
2852
2883
|
email: m,
|
2853
2884
|
emailVerified: it,
|
@@ -2860,7 +2891,7 @@ class y {
|
|
2860
2891
|
createdAt: nt,
|
2861
2892
|
lastLoginAt: rt
|
2862
2893
|
});
|
2863
|
-
return
|
2894
|
+
return we && Array.isArray(we) && (Re.providerData = we.map((Mn) => Object.assign({}, Mn))), Ee && (Re._redirectEventId = Ee), Re;
|
2864
2895
|
}
|
2865
2896
|
/**
|
2866
2897
|
* Initialize a User from an idToken server response
|
@@ -2868,7 +2899,7 @@ class y {
|
|
2868
2899
|
* @param idTokenResponse
|
2869
2900
|
*/
|
2870
2901
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
2871
|
-
const i = new
|
2902
|
+
const i = new V();
|
2872
2903
|
i.updateFromServerResponse(t);
|
2873
2904
|
const s = new y({
|
2874
2905
|
uid: t.localId,
|
@@ -2876,7 +2907,7 @@ class y {
|
|
2876
2907
|
stsTokenManager: i,
|
2877
2908
|
isAnonymous: r
|
2878
2909
|
});
|
2879
|
-
return await
|
2910
|
+
return await fe(s), s;
|
2880
2911
|
}
|
2881
2912
|
/**
|
2882
2913
|
* Initialize a User from an idToken server response
|
@@ -2890,13 +2921,13 @@ class y {
|
|
2890
2921
|
"internal-error"
|
2891
2922
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2892
2923
|
);
|
2893
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [],
|
2894
|
-
|
2895
|
-
const
|
2924
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new V();
|
2925
|
+
c.updateFromIdToken(r);
|
2926
|
+
const o = new y({
|
2896
2927
|
uid: i.localId,
|
2897
2928
|
auth: e,
|
2898
|
-
stsTokenManager:
|
2899
|
-
isAnonymous:
|
2929
|
+
stsTokenManager: c,
|
2930
|
+
isAnonymous: a
|
2900
2931
|
}), l = {
|
2901
2932
|
uid: i.localId,
|
2902
2933
|
displayName: i.displayName || null,
|
@@ -2906,10 +2937,10 @@ class y {
|
|
2906
2937
|
phoneNumber: i.phoneNumber || null,
|
2907
2938
|
tenantId: i.tenantId || null,
|
2908
2939
|
providerData: s,
|
2909
|
-
metadata: new
|
2940
|
+
metadata: new Ve(i.createdAt, i.lastLoginAt),
|
2910
2941
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
2911
2942
|
};
|
2912
|
-
return Object.assign(
|
2943
|
+
return Object.assign(o, l), o;
|
2913
2944
|
}
|
2914
2945
|
}
|
2915
2946
|
/**
|
@@ -2990,14 +3021,14 @@ const yt = ln;
|
|
2990
3021
|
* See the License for the specific language governing permissions and
|
2991
3022
|
* limitations under the License.
|
2992
3023
|
*/
|
2993
|
-
function
|
3024
|
+
function ae(n, e, t) {
|
2994
3025
|
return `firebase:${n}:${e}:${t}`;
|
2995
3026
|
}
|
2996
|
-
class
|
3027
|
+
class H {
|
2997
3028
|
constructor(e, t, r) {
|
2998
3029
|
this.persistence = e, this.auth = t, this.userKey = r;
|
2999
3030
|
const { config: i, name: s } = this.auth;
|
3000
|
-
this.fullUserKey =
|
3031
|
+
this.fullUserKey = ae(this.userKey, i.apiKey, s), this.fullPersistenceKey = ae("persistence", i.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
3001
3032
|
}
|
3002
3033
|
setCurrentUser(e) {
|
3003
3034
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
@@ -3024,32 +3055,32 @@ class V {
|
|
3024
3055
|
}
|
3025
3056
|
static async create(e, t, r = "authUser") {
|
3026
3057
|
if (!t.length)
|
3027
|
-
return new
|
3058
|
+
return new H(E(yt), e, r);
|
3028
3059
|
const i = (await Promise.all(t.map(async (l) => {
|
3029
3060
|
if (await l._isAvailable())
|
3030
3061
|
return l;
|
3031
3062
|
}))).filter((l) => l);
|
3032
3063
|
let s = i[0] || E(yt);
|
3033
|
-
const
|
3034
|
-
let
|
3064
|
+
const a = ae(r, e.config.apiKey, e.name);
|
3065
|
+
let c = null;
|
3035
3066
|
for (const l of t)
|
3036
3067
|
try {
|
3037
|
-
const u = await l._get(
|
3068
|
+
const u = await l._get(a);
|
3038
3069
|
if (u) {
|
3039
3070
|
const p = y._fromJSON(e, u);
|
3040
|
-
l !== s && (
|
3071
|
+
l !== s && (c = p), s = l;
|
3041
3072
|
break;
|
3042
3073
|
}
|
3043
3074
|
} catch {
|
3044
3075
|
}
|
3045
|
-
const
|
3046
|
-
return !s._shouldAllowMigration || !
|
3076
|
+
const o = i.filter((l) => l._shouldAllowMigration);
|
3077
|
+
return !s._shouldAllowMigration || !o.length ? new H(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
|
3047
3078
|
if (l !== s)
|
3048
3079
|
try {
|
3049
|
-
await l._remove(
|
3080
|
+
await l._remove(a);
|
3050
3081
|
} catch {
|
3051
3082
|
}
|
3052
|
-
})), new
|
3083
|
+
})), new H(s, e, r));
|
3053
3084
|
}
|
3054
3085
|
}
|
3055
3086
|
/**
|
@@ -3124,12 +3155,12 @@ function _n(n = f()) {
|
|
3124
3155
|
function Ke(n = f()) {
|
3125
3156
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3126
3157
|
}
|
3127
|
-
function
|
3158
|
+
function Vi(n = f()) {
|
3128
3159
|
var e;
|
3129
3160
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3130
3161
|
}
|
3131
3162
|
function Hi() {
|
3132
|
-
return
|
3163
|
+
return sr() && document.documentMode === 10;
|
3133
3164
|
}
|
3134
3165
|
function gn(n = f()) {
|
3135
3166
|
return Ke(n) || fn(n) || _n(n) || mn(n) || /windows phone/i.test(n) || pn(n);
|
@@ -3181,17 +3212,17 @@ function vn(n, e = []) {
|
|
3181
3212
|
* See the License for the specific language governing permissions and
|
3182
3213
|
* limitations under the License.
|
3183
3214
|
*/
|
3184
|
-
class
|
3215
|
+
class Gi {
|
3185
3216
|
constructor(e) {
|
3186
3217
|
this.auth = e, this.queue = [];
|
3187
3218
|
}
|
3188
3219
|
pushCallback(e, t) {
|
3189
|
-
const r = (s) => new Promise((
|
3220
|
+
const r = (s) => new Promise((a, c) => {
|
3190
3221
|
try {
|
3191
|
-
const
|
3192
|
-
o
|
3193
|
-
} catch (
|
3194
|
-
|
3222
|
+
const o = e(s);
|
3223
|
+
a(o);
|
3224
|
+
} catch (o) {
|
3225
|
+
c(o);
|
3195
3226
|
}
|
3196
3227
|
});
|
3197
3228
|
r.onAbort = t, this.queue.push(r);
|
@@ -3236,8 +3267,8 @@ class Wi {
|
|
3236
3267
|
* See the License for the specific language governing permissions and
|
3237
3268
|
* limitations under the License.
|
3238
3269
|
*/
|
3239
|
-
async function
|
3240
|
-
return
|
3270
|
+
async function Wi(n, e = {}) {
|
3271
|
+
return Z(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3241
3272
|
}
|
3242
3273
|
/**
|
3243
3274
|
* @license
|
@@ -3255,20 +3286,20 @@ async function Vi(n, e = {}) {
|
|
3255
3286
|
* See the License for the specific language governing permissions and
|
3256
3287
|
* limitations under the License.
|
3257
3288
|
*/
|
3258
|
-
const
|
3259
|
-
class
|
3289
|
+
const zi = 6;
|
3290
|
+
class Zi {
|
3260
3291
|
constructor(e) {
|
3261
3292
|
var t, r, i, s;
|
3262
|
-
const
|
3263
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t =
|
3293
|
+
const a = e.customStrengthOptions;
|
3294
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : zi, 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;
|
3264
3295
|
}
|
3265
3296
|
validatePassword(e) {
|
3266
|
-
var t, r, i, s,
|
3267
|
-
const
|
3297
|
+
var t, r, i, s, a, c;
|
3298
|
+
const o = {
|
3268
3299
|
isValid: !0,
|
3269
3300
|
passwordPolicy: this
|
3270
3301
|
};
|
3271
|
-
return this.validatePasswordLengthOptions(e,
|
3302
|
+
return this.validatePasswordLengthOptions(e, o), this.validatePasswordCharacterOptions(e, o), o.isValid && (o.isValid = (t = o.meetsMinPasswordLength) !== null && t !== void 0 ? t : !0), o.isValid && (o.isValid = (r = o.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), o.isValid && (o.isValid = (i = o.containsLowercaseLetter) !== null && i !== void 0 ? i : !0), o.isValid && (o.isValid = (s = o.containsUppercaseLetter) !== null && s !== void 0 ? s : !0), o.isValid && (o.isValid = (a = o.containsNumericCharacter) !== null && a !== void 0 ? a : !0), o.isValid && (o.isValid = (c = o.containsNonAlphanumericCharacter) !== null && c !== void 0 ? c : !0), o;
|
3272
3303
|
}
|
3273
3304
|
/**
|
3274
3305
|
* Validates that the password meets the length options for the policy.
|
@@ -3343,14 +3374,14 @@ class Gi {
|
|
3343
3374
|
* See the License for the specific language governing permissions and
|
3344
3375
|
* limitations under the License.
|
3345
3376
|
*/
|
3346
|
-
class
|
3377
|
+
class $i {
|
3347
3378
|
constructor(e, t, r, i) {
|
3348
|
-
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
|
3379
|
+
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 Gi(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;
|
3349
3380
|
}
|
3350
3381
|
_initializeWithPersistence(e, t) {
|
3351
3382
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3352
3383
|
var r, i;
|
3353
|
-
if (!this._deleted && (this.persistenceManager = await
|
3384
|
+
if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
|
3354
3385
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3355
3386
|
try {
|
3356
3387
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3381,7 +3412,7 @@ class zi {
|
|
3381
3412
|
}
|
3382
3413
|
async initializeCurrentUserFromIdToken(e) {
|
3383
3414
|
try {
|
3384
|
-
const t = await
|
3415
|
+
const t = await on(this, { idToken: e }), r = await y._fromGetAccountInfoResponse(this, t, e);
|
3385
3416
|
await this.directlySetCurrentUser(r);
|
3386
3417
|
} catch (t) {
|
3387
3418
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
|
@@ -3390,17 +3421,17 @@ class zi {
|
|
3390
3421
|
async initializeCurrentUser(e) {
|
3391
3422
|
var t;
|
3392
3423
|
if (I(this.app)) {
|
3393
|
-
const
|
3394
|
-
return
|
3395
|
-
setTimeout(() => this.initializeCurrentUserFromIdToken(
|
3424
|
+
const a = this.app.settings.authIdToken;
|
3425
|
+
return a ? new Promise((c) => {
|
3426
|
+
setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
|
3396
3427
|
}) : this.directlySetCurrentUser(null);
|
3397
3428
|
}
|
3398
3429
|
const r = await this.assertedPersistence.getCurrentUser();
|
3399
3430
|
let i = r, s = !1;
|
3400
3431
|
if (e && this.config.authDomain) {
|
3401
3432
|
await this.getOrInitRedirectPersistenceManager();
|
3402
|
-
const
|
3403
|
-
(!
|
3433
|
+
const a = (t = this.redirectUser) === null || t === void 0 ? void 0 : t._redirectEventId, c = i == null ? void 0 : i._redirectEventId, o = await this.tryRedirectSignIn(e);
|
3434
|
+
(!a || a === c) && (o != null && o.user) && (i = o.user, s = !0);
|
3404
3435
|
}
|
3405
3436
|
if (!i)
|
3406
3437
|
return this.directlySetCurrentUser(null);
|
@@ -3408,8 +3439,8 @@ class zi {
|
|
3408
3439
|
if (s)
|
3409
3440
|
try {
|
3410
3441
|
await this.beforeStateQueue.runMiddleware(i);
|
3411
|
-
} catch (
|
3412
|
-
i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(
|
3442
|
+
} catch (a) {
|
3443
|
+
i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(a));
|
3413
3444
|
}
|
3414
3445
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
3415
3446
|
}
|
@@ -3431,7 +3462,7 @@ class zi {
|
|
3431
3462
|
}
|
3432
3463
|
async reloadAndSetCurrentUserOrClear(e) {
|
3433
3464
|
try {
|
3434
|
-
await
|
3465
|
+
await fe(e);
|
3435
3466
|
} catch (t) {
|
3436
3467
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3437
3468
|
return this.directlySetCurrentUser(null);
|
@@ -3439,7 +3470,7 @@ class zi {
|
|
3439
3470
|
return this.directlySetCurrentUser(e);
|
3440
3471
|
}
|
3441
3472
|
useDeviceLanguage() {
|
3442
|
-
this.languageCode =
|
3473
|
+
this.languageCode = Oi();
|
3443
3474
|
}
|
3444
3475
|
async _delete() {
|
3445
3476
|
this._deleted = !0;
|
@@ -3490,7 +3521,7 @@ class zi {
|
|
3490
3521
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3491
3522
|
}
|
3492
3523
|
async _updatePasswordPolicy() {
|
3493
|
-
const e = await
|
3524
|
+
const e = await Wi(this), t = new Zi(e);
|
3494
3525
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3495
3526
|
}
|
3496
3527
|
_getPersistence() {
|
@@ -3530,7 +3561,7 @@ class zi {
|
|
3530
3561
|
token: e,
|
3531
3562
|
idToken: t
|
3532
3563
|
};
|
3533
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
3564
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await xi(this, r);
|
3534
3565
|
}
|
3535
3566
|
}
|
3536
3567
|
toJSON() {
|
@@ -3554,7 +3585,7 @@ class zi {
|
|
3554
3585
|
this,
|
3555
3586
|
"argument-error"
|
3556
3587
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3557
|
-
), this.redirectPersistenceManager = await
|
3588
|
+
), this.redirectPersistenceManager = await H.create(
|
3558
3589
|
this,
|
3559
3590
|
[E(t._redirectPersistence)],
|
3560
3591
|
"redirectUser"
|
@@ -3602,24 +3633,24 @@ class zi {
|
|
3602
3633
|
return () => {
|
3603
3634
|
};
|
3604
3635
|
const s = typeof t == "function" ? t : t.next.bind(t);
|
3605
|
-
let
|
3606
|
-
const
|
3636
|
+
let a = !1;
|
3637
|
+
const c = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
3607
3638
|
if (d(
|
3608
|
-
|
3639
|
+
c,
|
3609
3640
|
this,
|
3610
3641
|
"internal-error"
|
3611
3642
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3612
|
-
),
|
3613
|
-
|
3643
|
+
), c.then(() => {
|
3644
|
+
a || s(this.currentUser);
|
3614
3645
|
}), typeof t == "function") {
|
3615
|
-
const
|
3646
|
+
const o = e.addObserver(t, r, i);
|
3616
3647
|
return () => {
|
3617
|
-
|
3648
|
+
a = !0, o();
|
3618
3649
|
};
|
3619
3650
|
} else {
|
3620
|
-
const
|
3651
|
+
const o = e.addObserver(t);
|
3621
3652
|
return () => {
|
3622
|
-
|
3653
|
+
a = !0, o();
|
3623
3654
|
};
|
3624
3655
|
}
|
3625
3656
|
}
|
@@ -3673,15 +3704,15 @@ class zi {
|
|
3673
3704
|
async _getAppCheckToken() {
|
3674
3705
|
var e;
|
3675
3706
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
3676
|
-
return t != null && t.error &&
|
3707
|
+
return t != null && t.error && ki(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3677
3708
|
}
|
3678
3709
|
}
|
3679
|
-
function
|
3710
|
+
function Ie(n) {
|
3680
3711
|
return z(n);
|
3681
3712
|
}
|
3682
3713
|
class Tt {
|
3683
3714
|
constructor(e) {
|
3684
|
-
this.auth = e, this.observer = null, this.addObserver =
|
3715
|
+
this.auth = e, this.observer = null, this.addObserver = hr((t) => this.observer = t);
|
3685
3716
|
}
|
3686
3717
|
get next() {
|
3687
3718
|
return d(
|
@@ -3716,16 +3747,16 @@ let qe = {
|
|
3716
3747
|
recaptchaEnterpriseScript: "",
|
3717
3748
|
gapiScript: ""
|
3718
3749
|
};
|
3719
|
-
function
|
3750
|
+
function Ji(n) {
|
3720
3751
|
qe = n;
|
3721
3752
|
}
|
3722
|
-
function
|
3753
|
+
function Yi(n) {
|
3723
3754
|
return qe.loadJS(n);
|
3724
3755
|
}
|
3725
|
-
function
|
3756
|
+
function Xi() {
|
3726
3757
|
return qe.gapiScript;
|
3727
3758
|
}
|
3728
|
-
function
|
3759
|
+
function Ki(n) {
|
3729
3760
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
3730
3761
|
}
|
3731
3762
|
/**
|
@@ -3744,11 +3775,11 @@ function Xi(n) {
|
|
3744
3775
|
* See the License for the specific language governing permissions and
|
3745
3776
|
* limitations under the License.
|
3746
3777
|
*/
|
3747
|
-
function
|
3748
|
-
const t =
|
3778
|
+
function qi(n, e) {
|
3779
|
+
const t = Yt(n, "auth");
|
3749
3780
|
if (t.isInitialized()) {
|
3750
3781
|
const i = t.getImmediate(), s = t.getOptions();
|
3751
|
-
if (
|
3782
|
+
if (ue(s, e ?? {}))
|
3752
3783
|
return i;
|
3753
3784
|
w(
|
3754
3785
|
i,
|
@@ -3758,12 +3789,12 @@ function Yi(n, e) {
|
|
3758
3789
|
}
|
3759
3790
|
return t.initialize({ options: e });
|
3760
3791
|
}
|
3761
|
-
function
|
3792
|
+
function Qi(n, e) {
|
3762
3793
|
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(E);
|
3763
3794
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
3764
3795
|
}
|
3765
|
-
function
|
3766
|
-
const r =
|
3796
|
+
function es(n, e, t) {
|
3797
|
+
const r = Ie(n);
|
3767
3798
|
d(
|
3768
3799
|
r._canInitEmulator,
|
3769
3800
|
r,
|
@@ -3775,19 +3806,19 @@ function qi(n, e, t) {
|
|
3775
3806
|
"invalid-emulator-scheme"
|
3776
3807
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
3777
3808
|
);
|
3778
|
-
const i = !1, s = In(e), { host:
|
3779
|
-
r.config.emulator = { url: `${s}//${
|
3780
|
-
host:
|
3781
|
-
port:
|
3809
|
+
const i = !1, s = In(e), { host: a, port: c } = ts(e), o = c === null ? "" : `:${c}`;
|
3810
|
+
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
3811
|
+
host: a,
|
3812
|
+
port: c,
|
3782
3813
|
protocol: s.replace(":", ""),
|
3783
3814
|
options: Object.freeze({ disableWarnings: i })
|
3784
|
-
}),
|
3815
|
+
}), ns();
|
3785
3816
|
}
|
3786
3817
|
function In(n) {
|
3787
3818
|
const e = n.indexOf(":");
|
3788
3819
|
return e < 0 ? "" : n.substr(0, e + 1);
|
3789
3820
|
}
|
3790
|
-
function
|
3821
|
+
function ts(n) {
|
3791
3822
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
3792
3823
|
if (!t)
|
3793
3824
|
return { host: "", port: null };
|
@@ -3796,8 +3827,8 @@ function Qi(n) {
|
|
3796
3827
|
const s = i[1];
|
3797
3828
|
return { host: s, port: wt(r.substr(s.length + 1)) };
|
3798
3829
|
} else {
|
3799
|
-
const [s,
|
3800
|
-
return { host: s, port: wt(
|
3830
|
+
const [s, a] = r.split(":");
|
3831
|
+
return { host: s, port: wt(a) };
|
3801
3832
|
}
|
3802
3833
|
}
|
3803
3834
|
function wt(n) {
|
@@ -3806,7 +3837,7 @@ function wt(n) {
|
|
3806
3837
|
const e = Number(n);
|
3807
3838
|
return isNaN(e) ? null : e;
|
3808
3839
|
}
|
3809
|
-
function
|
3840
|
+
function ns() {
|
3810
3841
|
function n() {
|
3811
3842
|
const e = document.createElement("p"), t = e.style;
|
3812
3843
|
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);
|
@@ -3871,8 +3902,8 @@ class bn {
|
|
3871
3902
|
* See the License for the specific language governing permissions and
|
3872
3903
|
* limitations under the License.
|
3873
3904
|
*/
|
3874
|
-
async function
|
3875
|
-
return sn(n, "POST", "/v1/accounts:signInWithIdp",
|
3905
|
+
async function G(n, e) {
|
3906
|
+
return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
|
3876
3907
|
}
|
3877
3908
|
/**
|
3878
3909
|
* @license
|
@@ -3890,7 +3921,7 @@ async function j(n, e) {
|
|
3890
3921
|
* See the License for the specific language governing permissions and
|
3891
3922
|
* limitations under the License.
|
3892
3923
|
*/
|
3893
|
-
const
|
3924
|
+
const rs = "http://localhost";
|
3894
3925
|
class U extends bn {
|
3895
3926
|
constructor() {
|
3896
3927
|
super(...arguments), this.pendingToken = null;
|
@@ -3925,30 +3956,30 @@ class U extends bn {
|
|
3925
3956
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
3926
3957
|
*/
|
3927
3958
|
static fromJSON(e) {
|
3928
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
3959
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
|
3929
3960
|
if (!r || !i)
|
3930
3961
|
return null;
|
3931
|
-
const
|
3932
|
-
return
|
3962
|
+
const a = new U(r, i);
|
3963
|
+
return a.idToken = s.idToken || void 0, a.accessToken = s.accessToken || void 0, a.secret = s.secret, a.nonce = s.nonce, a.pendingToken = s.pendingToken || null, a;
|
3933
3964
|
}
|
3934
3965
|
/** @internal */
|
3935
3966
|
_getIdTokenResponse(e) {
|
3936
3967
|
const t = this.buildRequest();
|
3937
|
-
return
|
3968
|
+
return G(e, t);
|
3938
3969
|
}
|
3939
3970
|
/** @internal */
|
3940
3971
|
_linkToIdToken(e, t) {
|
3941
3972
|
const r = this.buildRequest();
|
3942
|
-
return r.idToken = t,
|
3973
|
+
return r.idToken = t, G(e, r);
|
3943
3974
|
}
|
3944
3975
|
/** @internal */
|
3945
3976
|
_getReauthenticationResolver(e) {
|
3946
3977
|
const t = this.buildRequest();
|
3947
|
-
return t.autoCreate = !1,
|
3978
|
+
return t.autoCreate = !1, G(e, t);
|
3948
3979
|
}
|
3949
3980
|
buildRequest() {
|
3950
3981
|
const e = {
|
3951
|
-
requestUri:
|
3982
|
+
requestUri: rs,
|
3952
3983
|
returnSecureToken: !0
|
3953
3984
|
};
|
3954
3985
|
if (this.pendingToken)
|
@@ -4349,10 +4380,10 @@ class B {
|
|
4349
4380
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4350
4381
|
}
|
4351
4382
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4352
|
-
const s = await y._fromIdTokenResponse(e, r, i),
|
4383
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = Rt(r);
|
4353
4384
|
return new B({
|
4354
4385
|
user: s,
|
4355
|
-
providerId:
|
4386
|
+
providerId: a,
|
4356
4387
|
_tokenResponse: r,
|
4357
4388
|
operationType: t
|
4358
4389
|
});
|
@@ -4391,10 +4422,10 @@ function Rt(n) {
|
|
4391
4422
|
* See the License for the specific language governing permissions and
|
4392
4423
|
* limitations under the License.
|
4393
4424
|
*/
|
4394
|
-
class
|
4425
|
+
class me extends M {
|
4395
4426
|
constructor(e, t, r, i) {
|
4396
4427
|
var s;
|
4397
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4428
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
|
4398
4429
|
appName: e.name,
|
4399
4430
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4400
4431
|
_serverResponse: t.customData._serverResponse,
|
@@ -4402,15 +4433,15 @@ class fe extends M {
|
|
4402
4433
|
};
|
4403
4434
|
}
|
4404
4435
|
static _fromErrorAndOperation(e, t, r, i) {
|
4405
|
-
return new
|
4436
|
+
return new me(e, t, r, i);
|
4406
4437
|
}
|
4407
4438
|
}
|
4408
4439
|
function En(n, e, t, r) {
|
4409
4440
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4410
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4441
|
+
throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
|
4411
4442
|
});
|
4412
4443
|
}
|
4413
|
-
async function
|
4444
|
+
async function is(n, e, t = !1) {
|
4414
4445
|
const r = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
4415
4446
|
return B._forOperation(n, "link", r);
|
4416
4447
|
}
|
@@ -4430,7 +4461,7 @@ async function ns(n, e, t = !1) {
|
|
4430
4461
|
* See the License for the specific language governing permissions and
|
4431
4462
|
* limitations under the License.
|
4432
4463
|
*/
|
4433
|
-
async function
|
4464
|
+
async function ss(n, e, t = !1) {
|
4434
4465
|
const { auth: r } = n;
|
4435
4466
|
if (I(r.app))
|
4436
4467
|
return Promise.reject(P(r));
|
@@ -4443,16 +4474,16 @@ async function rs(n, e, t = !1) {
|
|
4443
4474
|
"internal-error"
|
4444
4475
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4445
4476
|
);
|
4446
|
-
const
|
4477
|
+
const a = Xe(s.idToken);
|
4447
4478
|
d(
|
4448
|
-
|
4479
|
+
a,
|
4449
4480
|
r,
|
4450
4481
|
"internal-error"
|
4451
4482
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4452
4483
|
);
|
4453
|
-
const { sub:
|
4484
|
+
const { sub: c } = a;
|
4454
4485
|
return d(
|
4455
|
-
n.uid ===
|
4486
|
+
n.uid === c,
|
4456
4487
|
r,
|
4457
4488
|
"user-mismatch"
|
4458
4489
|
/* AuthErrorCode.USER_MISMATCH */
|
@@ -4481,7 +4512,7 @@ async function rs(n, e, t = !1) {
|
|
4481
4512
|
* See the License for the specific language governing permissions and
|
4482
4513
|
* limitations under the License.
|
4483
4514
|
*/
|
4484
|
-
async function
|
4515
|
+
async function as(n, e, t = !1) {
|
4485
4516
|
if (I(n.app))
|
4486
4517
|
return Promise.reject(P(n));
|
4487
4518
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
@@ -4503,8 +4534,8 @@ async function is(n, e, t = !1) {
|
|
4503
4534
|
* See the License for the specific language governing permissions and
|
4504
4535
|
* limitations under the License.
|
4505
4536
|
*/
|
4506
|
-
async function
|
4507
|
-
return sn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
4537
|
+
async function os(n, e) {
|
4538
|
+
return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
|
4508
4539
|
}
|
4509
4540
|
/**
|
4510
4541
|
* @license
|
@@ -4522,22 +4553,22 @@ async function ss(n, e) {
|
|
4522
4553
|
* See the License for the specific language governing permissions and
|
4523
4554
|
* limitations under the License.
|
4524
4555
|
*/
|
4525
|
-
async function
|
4556
|
+
async function cs(n, e) {
|
4526
4557
|
if (I(n.app))
|
4527
4558
|
return Promise.reject(P(n));
|
4528
|
-
const t =
|
4559
|
+
const t = Ie(n), r = await os(t, {
|
4529
4560
|
token: e,
|
4530
4561
|
returnSecureToken: !0
|
4531
4562
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4532
4563
|
return await t._updateCurrentUser(i.user), i;
|
4533
4564
|
}
|
4534
|
-
function
|
4565
|
+
function ls(n, e, t, r) {
|
4535
4566
|
return z(n).onIdTokenChanged(e, t, r);
|
4536
4567
|
}
|
4537
|
-
function
|
4568
|
+
function ds(n, e, t) {
|
4538
4569
|
return z(n).beforeAuthStateChanged(e, t);
|
4539
4570
|
}
|
4540
|
-
const
|
4571
|
+
const _e = "__sak";
|
4541
4572
|
/**
|
4542
4573
|
* @license
|
4543
4574
|
* Copyright 2019 Google LLC
|
@@ -4560,7 +4591,7 @@ class Tn {
|
|
4560
4591
|
}
|
4561
4592
|
_isAvailable() {
|
4562
4593
|
try {
|
4563
|
-
return this.storage ? (this.storage.setItem(
|
4594
|
+
return this.storage ? (this.storage.setItem(_e, "1"), this.storage.removeItem(_e), Promise.resolve(!0)) : Promise.resolve(!1);
|
4564
4595
|
} catch {
|
4565
4596
|
return Promise.resolve(!1);
|
4566
4597
|
}
|
@@ -4595,7 +4626,7 @@ class Tn {
|
|
4595
4626
|
* See the License for the specific language governing permissions and
|
4596
4627
|
* limitations under the License.
|
4597
4628
|
*/
|
4598
|
-
const
|
4629
|
+
const us = 1e3, hs = 10;
|
4599
4630
|
class wn extends Tn {
|
4600
4631
|
constructor() {
|
4601
4632
|
super(
|
@@ -4612,18 +4643,18 @@ class wn extends Tn {
|
|
4612
4643
|
}
|
4613
4644
|
onStorageEvent(e, t = !1) {
|
4614
4645
|
if (!e.key) {
|
4615
|
-
this.forAllChangedKeys((
|
4616
|
-
this.notifyListeners(
|
4646
|
+
this.forAllChangedKeys((a, c, o) => {
|
4647
|
+
this.notifyListeners(a, o);
|
4617
4648
|
});
|
4618
4649
|
return;
|
4619
4650
|
}
|
4620
4651
|
const r = e.key;
|
4621
4652
|
t ? this.detachListener() : this.stopPolling();
|
4622
4653
|
const i = () => {
|
4623
|
-
const
|
4624
|
-
!t && this.localCache[r] ===
|
4654
|
+
const a = this.storage.getItem(r);
|
4655
|
+
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4625
4656
|
}, s = this.storage.getItem(r);
|
4626
|
-
Hi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i,
|
4657
|
+
Hi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, hs) : i();
|
4627
4658
|
}
|
4628
4659
|
notifyListeners(e, t) {
|
4629
4660
|
this.localCache[e] = t;
|
@@ -4645,7 +4676,7 @@ class wn extends Tn {
|
|
4645
4676
|
!0
|
4646
4677
|
);
|
4647
4678
|
});
|
4648
|
-
},
|
4679
|
+
}, us);
|
4649
4680
|
}
|
4650
4681
|
stopPolling() {
|
4651
4682
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4675,7 +4706,7 @@ class wn extends Tn {
|
|
4675
4706
|
}
|
4676
4707
|
}
|
4677
4708
|
wn.type = "LOCAL";
|
4678
|
-
const
|
4709
|
+
const ps = wn;
|
4679
4710
|
/**
|
4680
4711
|
* @license
|
4681
4712
|
* Copyright 2020 Google LLC
|
@@ -4723,7 +4754,7 @@ const kn = Rn;
|
|
4723
4754
|
* See the License for the specific language governing permissions and
|
4724
4755
|
* limitations under the License.
|
4725
4756
|
*/
|
4726
|
-
function
|
4757
|
+
function fs(n) {
|
4727
4758
|
return Promise.all(n.map(async (e) => {
|
4728
4759
|
try {
|
4729
4760
|
return {
|
@@ -4754,7 +4785,7 @@ function hs(n) {
|
|
4754
4785
|
* See the License for the specific language governing permissions and
|
4755
4786
|
* limitations under the License.
|
4756
4787
|
*/
|
4757
|
-
class
|
4788
|
+
class be {
|
4758
4789
|
constructor(e) {
|
4759
4790
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
4760
4791
|
}
|
@@ -4768,7 +4799,7 @@ class Ie {
|
|
4768
4799
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
4769
4800
|
if (t)
|
4770
4801
|
return t;
|
4771
|
-
const r = new
|
4802
|
+
const r = new be(e);
|
4772
4803
|
return this.receivers.push(r), r;
|
4773
4804
|
}
|
4774
4805
|
isListeningto(e) {
|
@@ -4785,20 +4816,20 @@ class Ie {
|
|
4785
4816
|
*
|
4786
4817
|
*/
|
4787
4818
|
async handleEvent(e) {
|
4788
|
-
const t = e, { eventId: r, eventType: i, data: s } = t.data,
|
4789
|
-
if (!(
|
4819
|
+
const t = e, { eventId: r, eventType: i, data: s } = t.data, a = this.handlersMap[i];
|
4820
|
+
if (!(a != null && a.size))
|
4790
4821
|
return;
|
4791
4822
|
t.ports[0].postMessage({
|
4792
4823
|
status: "ack",
|
4793
4824
|
eventId: r,
|
4794
4825
|
eventType: i
|
4795
4826
|
});
|
4796
|
-
const
|
4827
|
+
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await fs(c);
|
4797
4828
|
t.ports[0].postMessage({
|
4798
4829
|
status: "done",
|
4799
4830
|
eventId: r,
|
4800
4831
|
eventType: i,
|
4801
|
-
response:
|
4832
|
+
response: o
|
4802
4833
|
});
|
4803
4834
|
}
|
4804
4835
|
/**
|
@@ -4822,7 +4853,7 @@ class Ie {
|
|
4822
4853
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
4823
4854
|
}
|
4824
4855
|
}
|
4825
|
-
|
4856
|
+
be.receivers = [];
|
4826
4857
|
/**
|
4827
4858
|
* @license
|
4828
4859
|
* Copyright 2020 Google LLC
|
@@ -4861,7 +4892,7 @@ function Qe(n = "", e = 10) {
|
|
4861
4892
|
* See the License for the specific language governing permissions and
|
4862
4893
|
* limitations under the License.
|
4863
4894
|
*/
|
4864
|
-
class
|
4895
|
+
class ms {
|
4865
4896
|
constructor(e) {
|
4866
4897
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
4867
4898
|
}
|
@@ -4893,17 +4924,17 @@ class ps {
|
|
4893
4924
|
"connection_unavailable"
|
4894
4925
|
/* _MessageError.CONNECTION_UNAVAILABLE */
|
4895
4926
|
);
|
4896
|
-
let s,
|
4897
|
-
return new Promise((
|
4927
|
+
let s, a;
|
4928
|
+
return new Promise((c, o) => {
|
4898
4929
|
const l = Qe("", 20);
|
4899
4930
|
i.port1.start();
|
4900
4931
|
const u = setTimeout(() => {
|
4901
|
-
|
4932
|
+
o(new Error(
|
4902
4933
|
"unsupported_event"
|
4903
4934
|
/* _MessageError.UNSUPPORTED_EVENT */
|
4904
4935
|
));
|
4905
4936
|
}, r);
|
4906
|
-
|
4937
|
+
a = {
|
4907
4938
|
messageChannel: i,
|
4908
4939
|
onMessage(p) {
|
4909
4940
|
const m = p;
|
@@ -4912,7 +4943,7 @@ class ps {
|
|
4912
4943
|
case "ack":
|
4913
4944
|
clearTimeout(u), s = setTimeout(
|
4914
4945
|
() => {
|
4915
|
-
|
4946
|
+
o(new Error(
|
4916
4947
|
"timeout"
|
4917
4948
|
/* _MessageError.TIMEOUT */
|
4918
4949
|
));
|
@@ -4922,23 +4953,23 @@ class ps {
|
|
4922
4953
|
);
|
4923
4954
|
break;
|
4924
4955
|
case "done":
|
4925
|
-
clearTimeout(s),
|
4956
|
+
clearTimeout(s), c(m.data.response);
|
4926
4957
|
break;
|
4927
4958
|
default:
|
4928
|
-
clearTimeout(u), clearTimeout(s),
|
4959
|
+
clearTimeout(u), clearTimeout(s), o(new Error(
|
4929
4960
|
"invalid_response"
|
4930
4961
|
/* _MessageError.INVALID_RESPONSE */
|
4931
4962
|
));
|
4932
4963
|
break;
|
4933
4964
|
}
|
4934
4965
|
}
|
4935
|
-
}, this.handlers.add(
|
4966
|
+
}, this.handlers.add(a), i.port1.addEventListener("message", a.onMessage), this.target.postMessage({
|
4936
4967
|
eventType: e,
|
4937
4968
|
eventId: l,
|
4938
4969
|
data: t
|
4939
4970
|
}, [i.port2]);
|
4940
4971
|
}).finally(() => {
|
4941
|
-
|
4972
|
+
a && this.removeMessageHandler(a);
|
4942
4973
|
});
|
4943
4974
|
}
|
4944
4975
|
}
|
@@ -4961,7 +4992,7 @@ class ps {
|
|
4961
4992
|
function g() {
|
4962
4993
|
return window;
|
4963
4994
|
}
|
4964
|
-
function
|
4995
|
+
function _s(n) {
|
4965
4996
|
g().location.href = n;
|
4966
4997
|
}
|
4967
4998
|
/**
|
@@ -4983,7 +5014,7 @@ function fs(n) {
|
|
4983
5014
|
function Sn() {
|
4984
5015
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
4985
5016
|
}
|
4986
|
-
async function
|
5017
|
+
async function gs() {
|
4987
5018
|
if (!(navigator != null && navigator.serviceWorker))
|
4988
5019
|
return null;
|
4989
5020
|
try {
|
@@ -4992,11 +5023,11 @@ async function ms() {
|
|
4992
5023
|
return null;
|
4993
5024
|
}
|
4994
5025
|
}
|
4995
|
-
function
|
5026
|
+
function vs() {
|
4996
5027
|
var n;
|
4997
5028
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
4998
5029
|
}
|
4999
|
-
function
|
5030
|
+
function Is() {
|
5000
5031
|
return Sn() ? self : null;
|
5001
5032
|
}
|
5002
5033
|
/**
|
@@ -5015,7 +5046,7 @@ function gs() {
|
|
5015
5046
|
* See the License for the specific language governing permissions and
|
5016
5047
|
* limitations under the License.
|
5017
5048
|
*/
|
5018
|
-
const An = "firebaseLocalStorageDb",
|
5049
|
+
const An = "firebaseLocalStorageDb", bs = 1, ge = "firebaseLocalStorage", On = "fbase_key";
|
5019
5050
|
class re {
|
5020
5051
|
constructor(e) {
|
5021
5052
|
this.request = e;
|
@@ -5030,47 +5061,47 @@ class re {
|
|
5030
5061
|
});
|
5031
5062
|
}
|
5032
5063
|
}
|
5033
|
-
function
|
5034
|
-
return n.transaction([
|
5064
|
+
function ye(n, e) {
|
5065
|
+
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
5035
5066
|
}
|
5036
|
-
function
|
5067
|
+
function ys() {
|
5037
5068
|
const n = indexedDB.deleteDatabase(An);
|
5038
5069
|
return new re(n).toPromise();
|
5039
5070
|
}
|
5040
|
-
function
|
5041
|
-
const n = indexedDB.open(An,
|
5071
|
+
function He() {
|
5072
|
+
const n = indexedDB.open(An, bs);
|
5042
5073
|
return new Promise((e, t) => {
|
5043
5074
|
n.addEventListener("error", () => {
|
5044
5075
|
t(n.error);
|
5045
5076
|
}), n.addEventListener("upgradeneeded", () => {
|
5046
5077
|
const r = n.result;
|
5047
5078
|
try {
|
5048
|
-
r.createObjectStore(
|
5079
|
+
r.createObjectStore(ge, { keyPath: On });
|
5049
5080
|
} catch (i) {
|
5050
5081
|
t(i);
|
5051
5082
|
}
|
5052
5083
|
}), n.addEventListener("success", async () => {
|
5053
5084
|
const r = n.result;
|
5054
|
-
r.objectStoreNames.contains(
|
5085
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await ys(), e(await He()));
|
5055
5086
|
});
|
5056
5087
|
});
|
5057
5088
|
}
|
5058
5089
|
async function kt(n, e, t) {
|
5059
|
-
const r =
|
5090
|
+
const r = ye(n, !0).put({
|
5060
5091
|
[On]: e,
|
5061
5092
|
value: t
|
5062
5093
|
});
|
5063
5094
|
return new re(r).toPromise();
|
5064
5095
|
}
|
5065
|
-
async function
|
5066
|
-
const t =
|
5096
|
+
async function Es(n, e) {
|
5097
|
+
const t = ye(n, !1).get(e), r = await new re(t).toPromise();
|
5067
5098
|
return r === void 0 ? null : r.value;
|
5068
5099
|
}
|
5069
5100
|
function St(n, e) {
|
5070
|
-
const t =
|
5101
|
+
const t = ye(n, !0).delete(e);
|
5071
5102
|
return new re(t).toPromise();
|
5072
5103
|
}
|
5073
|
-
const
|
5104
|
+
const Ts = 800, ws = 3;
|
5074
5105
|
class Cn {
|
5075
5106
|
constructor() {
|
5076
5107
|
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(() => {
|
@@ -5078,7 +5109,7 @@ class Cn {
|
|
5078
5109
|
});
|
5079
5110
|
}
|
5080
5111
|
async _openDb() {
|
5081
|
-
return this.db ? this.db : (this.db = await
|
5112
|
+
return this.db ? this.db : (this.db = await He(), this.db);
|
5082
5113
|
}
|
5083
5114
|
async _withRetries(e) {
|
5084
5115
|
let t = 0;
|
@@ -5087,7 +5118,7 @@ class Cn {
|
|
5087
5118
|
const r = await this._openDb();
|
5088
5119
|
return await e(r);
|
5089
5120
|
} catch (r) {
|
5090
|
-
if (t++ >
|
5121
|
+
if (t++ > ws)
|
5091
5122
|
throw r;
|
5092
5123
|
this.db && (this.db.close(), this.db = void 0);
|
5093
5124
|
}
|
@@ -5103,7 +5134,7 @@ class Cn {
|
|
5103
5134
|
* As the worker we should listen to events from the main window.
|
5104
5135
|
*/
|
5105
5136
|
async initializeReceiver() {
|
5106
|
-
this.receiver =
|
5137
|
+
this.receiver = be._getInstance(Is()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5107
5138
|
keyProcessed: (await this._poll()).includes(t.key)
|
5108
5139
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5109
5140
|
"keyChanged"
|
@@ -5119,9 +5150,9 @@ class Cn {
|
|
5119
5150
|
*/
|
5120
5151
|
async initializeSender() {
|
5121
5152
|
var e, t;
|
5122
|
-
if (this.activeServiceWorker = await
|
5153
|
+
if (this.activeServiceWorker = await gs(), !this.activeServiceWorker)
|
5123
5154
|
return;
|
5124
|
-
this.sender = new
|
5155
|
+
this.sender = new ms(this.activeServiceWorker);
|
5125
5156
|
const r = await this.sender._send(
|
5126
5157
|
"ping",
|
5127
5158
|
{},
|
@@ -5143,7 +5174,7 @@ class Cn {
|
|
5143
5174
|
* @param key - Storage key which changed.
|
5144
5175
|
*/
|
5145
5176
|
async notifyServiceWorker(e) {
|
5146
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
5177
|
+
if (!(!this.sender || !this.activeServiceWorker || vs() !== this.activeServiceWorker))
|
5147
5178
|
try {
|
5148
5179
|
await this.sender._send(
|
5149
5180
|
"keyChanged",
|
@@ -5159,8 +5190,8 @@ class Cn {
|
|
5159
5190
|
try {
|
5160
5191
|
if (!indexedDB)
|
5161
5192
|
return !1;
|
5162
|
-
const e = await
|
5163
|
-
return await kt(e,
|
5193
|
+
const e = await He();
|
5194
|
+
return await kt(e, _e, "1"), await St(e, _e), !0;
|
5164
5195
|
} catch {
|
5165
5196
|
}
|
5166
5197
|
return !1;
|
@@ -5177,7 +5208,7 @@ class Cn {
|
|
5177
5208
|
return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5178
5209
|
}
|
5179
5210
|
async _get(e) {
|
5180
|
-
const t = await this._withRetries((r) =>
|
5211
|
+
const t = await this._withRetries((r) => Es(r, e));
|
5181
5212
|
return this.localCache[e] = t, t;
|
5182
5213
|
}
|
5183
5214
|
async _remove(e) {
|
@@ -5185,7 +5216,7 @@ class Cn {
|
|
5185
5216
|
}
|
5186
5217
|
async _poll() {
|
5187
5218
|
const e = await this._withRetries((i) => {
|
5188
|
-
const s =
|
5219
|
+
const s = ye(i, !1).getAll();
|
5189
5220
|
return new re(s).toPromise();
|
5190
5221
|
});
|
5191
5222
|
if (!e)
|
@@ -5208,7 +5239,7 @@ class Cn {
|
|
5208
5239
|
i(t);
|
5209
5240
|
}
|
5210
5241
|
startPolling() {
|
5211
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
5242
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ts);
|
5212
5243
|
}
|
5213
5244
|
stopPolling() {
|
5214
5245
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -5221,7 +5252,7 @@ class Cn {
|
|
5221
5252
|
}
|
5222
5253
|
}
|
5223
5254
|
Cn.type = "LOCAL";
|
5224
|
-
const
|
5255
|
+
const Rs = Cn;
|
5225
5256
|
new te(3e4, 6e4);
|
5226
5257
|
/**
|
5227
5258
|
* @license
|
@@ -5239,7 +5270,7 @@ new te(3e4, 6e4);
|
|
5239
5270
|
* See the License for the specific language governing permissions and
|
5240
5271
|
* limitations under the License.
|
5241
5272
|
*/
|
5242
|
-
function
|
5273
|
+
function ks(n, e) {
|
5243
5274
|
return e ? E(e) : (d(
|
5244
5275
|
n._popupRedirectResolver,
|
5245
5276
|
n,
|
@@ -5272,13 +5303,13 @@ class et extends bn {
|
|
5272
5303
|
), this.params = e;
|
5273
5304
|
}
|
5274
5305
|
_getIdTokenResponse(e) {
|
5275
|
-
return
|
5306
|
+
return G(e, this._buildIdpRequest());
|
5276
5307
|
}
|
5277
5308
|
_linkToIdToken(e, t) {
|
5278
|
-
return
|
5309
|
+
return G(e, this._buildIdpRequest(t));
|
5279
5310
|
}
|
5280
5311
|
_getReauthenticationResolver(e) {
|
5281
|
-
return
|
5312
|
+
return G(e, this._buildIdpRequest());
|
5282
5313
|
}
|
5283
5314
|
_buildIdpRequest(e) {
|
5284
5315
|
const t = {
|
@@ -5293,26 +5324,26 @@ class et extends bn {
|
|
5293
5324
|
return e && (t.idToken = e), t;
|
5294
5325
|
}
|
5295
5326
|
}
|
5296
|
-
function
|
5297
|
-
return
|
5327
|
+
function Ss(n) {
|
5328
|
+
return as(n.auth, new et(n), n.bypassAuthState);
|
5298
5329
|
}
|
5299
|
-
function
|
5330
|
+
function As(n) {
|
5300
5331
|
const { auth: e, user: t } = n;
|
5301
5332
|
return d(
|
5302
5333
|
t,
|
5303
5334
|
e,
|
5304
5335
|
"internal-error"
|
5305
5336
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5306
|
-
),
|
5337
|
+
), ss(t, new et(n), n.bypassAuthState);
|
5307
5338
|
}
|
5308
|
-
async function
|
5339
|
+
async function Os(n) {
|
5309
5340
|
const { auth: e, user: t } = n;
|
5310
5341
|
return d(
|
5311
5342
|
t,
|
5312
5343
|
e,
|
5313
5344
|
"internal-error"
|
5314
5345
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5315
|
-
),
|
5346
|
+
), is(t, new et(n), n.bypassAuthState);
|
5316
5347
|
}
|
5317
5348
|
/**
|
5318
5349
|
* @license
|
@@ -5345,12 +5376,12 @@ class Nn {
|
|
5345
5376
|
});
|
5346
5377
|
}
|
5347
5378
|
async onAuthEvent(e) {
|
5348
|
-
const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error:
|
5349
|
-
if (
|
5350
|
-
this.reject(
|
5379
|
+
const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error: a, type: c } = e;
|
5380
|
+
if (a) {
|
5381
|
+
this.reject(a);
|
5351
5382
|
return;
|
5352
5383
|
}
|
5353
|
-
const
|
5384
|
+
const o = {
|
5354
5385
|
auth: this.auth,
|
5355
5386
|
requestUri: t,
|
5356
5387
|
sessionId: r,
|
@@ -5360,7 +5391,7 @@ class Nn {
|
|
5360
5391
|
bypassAuthState: this.bypassAuthState
|
5361
5392
|
};
|
5362
5393
|
try {
|
5363
|
-
this.resolve(await this.getIdpTask(
|
5394
|
+
this.resolve(await this.getIdpTask(c)(o));
|
5364
5395
|
} catch (l) {
|
5365
5396
|
this.reject(l);
|
5366
5397
|
}
|
@@ -5372,13 +5403,13 @@ class Nn {
|
|
5372
5403
|
switch (e) {
|
5373
5404
|
case "signInViaPopup":
|
5374
5405
|
case "signInViaRedirect":
|
5375
|
-
return
|
5406
|
+
return Ss;
|
5376
5407
|
case "linkViaPopup":
|
5377
5408
|
case "linkViaRedirect":
|
5378
|
-
return
|
5409
|
+
return Os;
|
5379
5410
|
case "reauthViaPopup":
|
5380
5411
|
case "reauthViaRedirect":
|
5381
|
-
return
|
5412
|
+
return As;
|
5382
5413
|
default:
|
5383
5414
|
w(
|
5384
5415
|
this.auth,
|
@@ -5413,10 +5444,10 @@ class Nn {
|
|
5413
5444
|
* See the License for the specific language governing permissions and
|
5414
5445
|
* limitations under the License.
|
5415
5446
|
*/
|
5416
|
-
const
|
5417
|
-
class
|
5447
|
+
const Cs = new te(2e3, 1e4);
|
5448
|
+
class j extends Nn {
|
5418
5449
|
constructor(e, t, r, i, s) {
|
5419
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
5450
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, j.currentPopupAction && j.currentPopupAction.cancel(), j.currentPopupAction = this;
|
5420
5451
|
}
|
5421
5452
|
async executeNotNull() {
|
5422
5453
|
const e = await this.execute();
|
@@ -5458,7 +5489,7 @@ class x extends Nn {
|
|
5458
5489
|
));
|
5459
5490
|
}
|
5460
5491
|
cleanUp() {
|
5461
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
5492
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, j.currentPopupAction = null;
|
5462
5493
|
}
|
5463
5494
|
pollUserCancellation() {
|
5464
5495
|
const e = () => {
|
@@ -5477,12 +5508,12 @@ class x extends Nn {
|
|
5477
5508
|
);
|
5478
5509
|
return;
|
5479
5510
|
}
|
5480
|
-
this.pollId = window.setTimeout(e,
|
5511
|
+
this.pollId = window.setTimeout(e, Cs.get());
|
5481
5512
|
};
|
5482
5513
|
e();
|
5483
5514
|
}
|
5484
5515
|
}
|
5485
|
-
|
5516
|
+
j.currentPopupAction = null;
|
5486
5517
|
/**
|
5487
5518
|
* @license
|
5488
5519
|
* Copyright 2020 Google LLC
|
@@ -5499,8 +5530,8 @@ x.currentPopupAction = null;
|
|
5499
5530
|
* See the License for the specific language governing permissions and
|
5500
5531
|
* limitations under the License.
|
5501
5532
|
*/
|
5502
|
-
const
|
5503
|
-
class
|
5533
|
+
const Ns = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5534
|
+
class Ds extends Nn {
|
5504
5535
|
constructor(e, t, r = !1) {
|
5505
5536
|
super(e, [
|
5506
5537
|
"signInViaRedirect",
|
@@ -5515,17 +5546,17 @@ class Cs extends Nn {
|
|
5515
5546
|
* just return it.
|
5516
5547
|
*/
|
5517
5548
|
async execute() {
|
5518
|
-
let e =
|
5549
|
+
let e = oe.get(this.auth._key());
|
5519
5550
|
if (!e) {
|
5520
5551
|
try {
|
5521
|
-
const r = await
|
5552
|
+
const r = await Ps(this.resolver, this.auth) ? await super.execute() : null;
|
5522
5553
|
e = () => Promise.resolve(r);
|
5523
5554
|
} catch (t) {
|
5524
5555
|
e = () => Promise.reject(t);
|
5525
5556
|
}
|
5526
|
-
|
5557
|
+
oe.set(this.auth._key(), e);
|
5527
5558
|
}
|
5528
|
-
return this.bypassAuthState ||
|
5559
|
+
return this.bypassAuthState || oe.set(this.auth._key(), () => Promise.resolve(null)), e();
|
5529
5560
|
}
|
5530
5561
|
async onAuthEvent(e) {
|
5531
5562
|
if (e.type === "signInViaRedirect")
|
@@ -5546,27 +5577,27 @@ class Cs extends Nn {
|
|
5546
5577
|
cleanUp() {
|
5547
5578
|
}
|
5548
5579
|
}
|
5549
|
-
async function
|
5550
|
-
const t =
|
5580
|
+
async function Ps(n, e) {
|
5581
|
+
const t = Us(e), r = Ls(n);
|
5551
5582
|
if (!await r._isAvailable())
|
5552
5583
|
return !1;
|
5553
5584
|
const i = await r._get(t) === "true";
|
5554
5585
|
return await r._remove(t), i;
|
5555
5586
|
}
|
5556
|
-
function
|
5557
|
-
|
5587
|
+
function Ms(n, e) {
|
5588
|
+
oe.set(n._key(), e);
|
5558
5589
|
}
|
5559
|
-
function
|
5590
|
+
function Ls(n) {
|
5560
5591
|
return E(n._redirectPersistence);
|
5561
5592
|
}
|
5562
|
-
function
|
5563
|
-
return
|
5593
|
+
function Us(n) {
|
5594
|
+
return ae(Ns, n.config.apiKey, n.name);
|
5564
5595
|
}
|
5565
|
-
async function
|
5596
|
+
async function Bs(n, e, t = !1) {
|
5566
5597
|
if (I(n.app))
|
5567
5598
|
return Promise.reject(P(n));
|
5568
|
-
const r =
|
5569
|
-
return
|
5599
|
+
const r = Ie(n), i = ks(r, e), a = await new Ds(r, i, t).execute();
|
5600
|
+
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5570
5601
|
}
|
5571
5602
|
/**
|
5572
5603
|
* @license
|
@@ -5584,8 +5615,8 @@ async function Ls(n, e, t = !1) {
|
|
5584
5615
|
* See the License for the specific language governing permissions and
|
5585
5616
|
* limitations under the License.
|
5586
5617
|
*/
|
5587
|
-
const
|
5588
|
-
class
|
5618
|
+
const Fs = 10 * 60 * 1e3;
|
5619
|
+
class js {
|
5589
5620
|
constructor(e) {
|
5590
5621
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
5591
5622
|
}
|
@@ -5601,7 +5632,7 @@ class Bs {
|
|
5601
5632
|
let t = !1;
|
5602
5633
|
return this.consumers.forEach((r) => {
|
5603
5634
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
5604
|
-
}), this.hasHandledPotentialRedirect || !
|
5635
|
+
}), this.hasHandledPotentialRedirect || !xs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5605
5636
|
}
|
5606
5637
|
sendToConsumer(e, t) {
|
5607
5638
|
var r;
|
@@ -5616,7 +5647,7 @@ class Bs {
|
|
5616
5647
|
return t.filter.includes(e.type) && r;
|
5617
5648
|
}
|
5618
5649
|
hasEventBeenHandled(e) {
|
5619
|
-
return Date.now() - this.lastProcessedEventTime >=
|
5650
|
+
return Date.now() - this.lastProcessedEventTime >= Fs && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
|
5620
5651
|
}
|
5621
5652
|
saveEventToCache(e) {
|
5622
5653
|
this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
|
@@ -5628,7 +5659,7 @@ function At(n) {
|
|
5628
5659
|
function Dn({ type: n, error: e }) {
|
5629
5660
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5630
5661
|
}
|
5631
|
-
function
|
5662
|
+
function xs(n) {
|
5632
5663
|
switch (n.type) {
|
5633
5664
|
case "signInViaRedirect":
|
5634
5665
|
case "linkViaRedirect":
|
@@ -5656,8 +5687,8 @@ function Fs(n) {
|
|
5656
5687
|
* See the License for the specific language governing permissions and
|
5657
5688
|
* limitations under the License.
|
5658
5689
|
*/
|
5659
|
-
async function
|
5660
|
-
return
|
5690
|
+
async function Vs(n, e = {}) {
|
5691
|
+
return Z(n, "GET", "/v1/projects", e);
|
5661
5692
|
}
|
5662
5693
|
/**
|
5663
5694
|
* @license
|
@@ -5675,14 +5706,14 @@ async function xs(n, e = {}) {
|
|
5675
5706
|
* See the License for the specific language governing permissions and
|
5676
5707
|
* limitations under the License.
|
5677
5708
|
*/
|
5678
|
-
const Hs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,
|
5679
|
-
async function
|
5709
|
+
const Hs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Gs = /^https?/;
|
5710
|
+
async function Ws(n) {
|
5680
5711
|
if (n.config.emulator)
|
5681
5712
|
return;
|
5682
|
-
const { authorizedDomains: e } = await
|
5713
|
+
const { authorizedDomains: e } = await Vs(n);
|
5683
5714
|
for (const t of e)
|
5684
5715
|
try {
|
5685
|
-
if (
|
5716
|
+
if (zs(t))
|
5686
5717
|
return;
|
5687
5718
|
} catch {
|
5688
5719
|
}
|
@@ -5692,13 +5723,13 @@ async function Vs(n) {
|
|
5692
5723
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5693
5724
|
);
|
5694
5725
|
}
|
5695
|
-
function
|
5726
|
+
function zs(n) {
|
5696
5727
|
const e = xe(), { protocol: t, hostname: r } = new URL(e);
|
5697
5728
|
if (n.startsWith("chrome-extension://")) {
|
5698
|
-
const
|
5699
|
-
return
|
5729
|
+
const a = new URL(n);
|
5730
|
+
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
5700
5731
|
}
|
5701
|
-
if (!
|
5732
|
+
if (!Gs.test(t))
|
5702
5733
|
return !1;
|
5703
5734
|
if (Hs.test(n))
|
5704
5735
|
return r === n;
|
@@ -5721,7 +5752,7 @@ function js(n) {
|
|
5721
5752
|
* See the License for the specific language governing permissions and
|
5722
5753
|
* limitations under the License.
|
5723
5754
|
*/
|
5724
|
-
const
|
5755
|
+
const Zs = new te(3e4, 6e4);
|
5725
5756
|
function Ot() {
|
5726
5757
|
const n = g().___jsl;
|
5727
5758
|
if (n != null && n.H) {
|
@@ -5731,10 +5762,10 @@ function Ot() {
|
|
5731
5762
|
n.CP[t] = null;
|
5732
5763
|
}
|
5733
5764
|
}
|
5734
|
-
function
|
5765
|
+
function $s(n) {
|
5735
5766
|
return new Promise((e, t) => {
|
5736
5767
|
var r, i, s;
|
5737
|
-
function
|
5768
|
+
function a() {
|
5738
5769
|
Ot(), gapi.load("gapi.iframes", {
|
5739
5770
|
callback: () => {
|
5740
5771
|
e(gapi.iframes.getContext());
|
@@ -5746,30 +5777,30 @@ function zs(n) {
|
|
5746
5777
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5747
5778
|
));
|
5748
5779
|
},
|
5749
|
-
timeout:
|
5780
|
+
timeout: Zs.get()
|
5750
5781
|
});
|
5751
5782
|
}
|
5752
5783
|
if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
5753
5784
|
e(gapi.iframes.getContext());
|
5754
5785
|
else if (!((s = g().gapi) === null || s === void 0) && s.load)
|
5755
|
-
|
5786
|
+
a();
|
5756
5787
|
else {
|
5757
|
-
const
|
5758
|
-
return g()[
|
5759
|
-
gapi.load ?
|
5788
|
+
const c = Ki("iframefcb");
|
5789
|
+
return g()[c] = () => {
|
5790
|
+
gapi.load ? a() : t(_(
|
5760
5791
|
n,
|
5761
5792
|
"network-request-failed"
|
5762
5793
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5763
5794
|
));
|
5764
|
-
},
|
5795
|
+
}, Yi(`${Xi()}?onload=${c}`).catch((o) => t(o));
|
5765
5796
|
}
|
5766
5797
|
}).catch((e) => {
|
5767
5798
|
throw ce = null, e;
|
5768
5799
|
});
|
5769
5800
|
}
|
5770
5801
|
let ce = null;
|
5771
|
-
function
|
5772
|
-
return ce = ce ||
|
5802
|
+
function Js(n) {
|
5803
|
+
return ce = ce || $s(n), ce;
|
5773
5804
|
}
|
5774
5805
|
/**
|
5775
5806
|
* @license
|
@@ -5787,7 +5818,7 @@ function $s(n) {
|
|
5787
5818
|
* See the License for the specific language governing permissions and
|
5788
5819
|
* limitations under the License.
|
5789
5820
|
*/
|
5790
|
-
const
|
5821
|
+
const Ys = new te(5e3, 15e3), Xs = "__/auth/iframe", Ks = "emulator/auth/iframe", qs = {
|
5791
5822
|
style: {
|
5792
5823
|
position: "absolute",
|
5793
5824
|
top: "-100px",
|
@@ -5796,13 +5827,13 @@ const Zs = new te(5e3, 15e3), Js = "__/auth/iframe", Xs = "emulator/auth/iframe"
|
|
5796
5827
|
},
|
5797
5828
|
"aria-hidden": "true",
|
5798
5829
|
tabindex: "-1"
|
5799
|
-
},
|
5830
|
+
}, Qs = /* @__PURE__ */ new Map([
|
5800
5831
|
["identitytoolkit.googleapis.com", "p"],
|
5801
5832
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
5802
5833
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
5803
5834
|
// test
|
5804
5835
|
]);
|
5805
|
-
function
|
5836
|
+
function ea(n) {
|
5806
5837
|
const e = n.config;
|
5807
5838
|
d(
|
5808
5839
|
e.authDomain,
|
@@ -5810,17 +5841,17 @@ function qs(n) {
|
|
5810
5841
|
"auth-domain-config-required"
|
5811
5842
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
5812
5843
|
);
|
5813
|
-
const t = e.emulator ?
|
5844
|
+
const t = e.emulator ? Ye(e, Ks) : `https://${n.config.authDomain}/${Xs}`, r = {
|
5814
5845
|
apiKey: e.apiKey,
|
5815
5846
|
appName: n.name,
|
5816
5847
|
v: ee
|
5817
|
-
}, i =
|
5848
|
+
}, i = Qs.get(n.config.apiHost);
|
5818
5849
|
i && (r.eid = i);
|
5819
5850
|
const s = n._getFrameworks();
|
5820
5851
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
5821
5852
|
}
|
5822
|
-
async function
|
5823
|
-
const e = await
|
5853
|
+
async function ta(n) {
|
5854
|
+
const e = await Js(n), t = g().gapi;
|
5824
5855
|
return d(
|
5825
5856
|
t,
|
5826
5857
|
n,
|
@@ -5828,27 +5859,27 @@ async function Qs(n) {
|
|
5828
5859
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5829
5860
|
), e.open({
|
5830
5861
|
where: document.body,
|
5831
|
-
url:
|
5862
|
+
url: ea(n),
|
5832
5863
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
5833
|
-
attributes:
|
5864
|
+
attributes: qs,
|
5834
5865
|
dontclear: !0
|
5835
5866
|
}, (r) => new Promise(async (i, s) => {
|
5836
5867
|
await r.restyle({
|
5837
5868
|
// Prevent iframe from closing on mouse out.
|
5838
5869
|
setHideOnLeave: !1
|
5839
5870
|
});
|
5840
|
-
const
|
5871
|
+
const a = _(
|
5841
5872
|
n,
|
5842
5873
|
"network-request-failed"
|
5843
5874
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5844
|
-
),
|
5845
|
-
s(
|
5846
|
-
},
|
5847
|
-
function
|
5848
|
-
g().clearTimeout(
|
5875
|
+
), c = g().setTimeout(() => {
|
5876
|
+
s(a);
|
5877
|
+
}, Ys.get());
|
5878
|
+
function o() {
|
5879
|
+
g().clearTimeout(c), i(r);
|
5849
5880
|
}
|
5850
|
-
r.ping(
|
5851
|
-
s(
|
5881
|
+
r.ping(o).then(o, () => {
|
5882
|
+
s(a);
|
5852
5883
|
});
|
5853
5884
|
}));
|
5854
5885
|
}
|
@@ -5868,12 +5899,12 @@ async function Qs(n) {
|
|
5868
5899
|
* See the License for the specific language governing permissions and
|
5869
5900
|
* limitations under the License.
|
5870
5901
|
*/
|
5871
|
-
const
|
5902
|
+
const na = {
|
5872
5903
|
location: "yes",
|
5873
5904
|
resizable: "yes",
|
5874
5905
|
statusbar: "yes",
|
5875
5906
|
toolbar: "no"
|
5876
|
-
},
|
5907
|
+
}, ra = 500, ia = 600, sa = "_blank", aa = "http://localhost";
|
5877
5908
|
class Ct {
|
5878
5909
|
constructor(e) {
|
5879
5910
|
this.window = e, this.associatedEvent = null;
|
@@ -5886,20 +5917,20 @@ class Ct {
|
|
5886
5917
|
}
|
5887
5918
|
}
|
5888
5919
|
}
|
5889
|
-
function
|
5890
|
-
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(),
|
5891
|
-
let
|
5892
|
-
const
|
5920
|
+
function oa(n, e, t, r = ra, i = ia) {
|
5921
|
+
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
5922
|
+
let c = "";
|
5923
|
+
const o = Object.assign(Object.assign({}, na), {
|
5893
5924
|
width: r.toString(),
|
5894
5925
|
height: i.toString(),
|
5895
5926
|
top: s,
|
5896
|
-
left:
|
5927
|
+
left: a
|
5897
5928
|
}), l = f().toLowerCase();
|
5898
|
-
t && (
|
5899
|
-
const u = Object.entries(
|
5900
|
-
if (
|
5901
|
-
return
|
5902
|
-
const p = window.open(e || "",
|
5929
|
+
t && (c = hn(l) ? sa : t), dn(l) && (e = e || aa, o.scrollbars = "yes");
|
5930
|
+
const u = Object.entries(o).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
5931
|
+
if (Vi(l) && c !== "_self")
|
5932
|
+
return ca(e || "", c), new Ct(null);
|
5933
|
+
const p = window.open(e || "", c, u);
|
5903
5934
|
d(
|
5904
5935
|
p,
|
5905
5936
|
n,
|
@@ -5912,7 +5943,7 @@ function so(n, e, t, r = to, i = no) {
|
|
5912
5943
|
}
|
5913
5944
|
return new Ct(p);
|
5914
5945
|
}
|
5915
|
-
function
|
5946
|
+
function ca(n, e) {
|
5916
5947
|
const t = document.createElement("a");
|
5917
5948
|
t.href = n, t.target = e;
|
5918
5949
|
const r = document.createEvent("MouseEvent");
|
@@ -5934,7 +5965,7 @@ function oo(n, e) {
|
|
5934
5965
|
* See the License for the specific language governing permissions and
|
5935
5966
|
* limitations under the License.
|
5936
5967
|
*/
|
5937
|
-
const
|
5968
|
+
const la = "__/auth/handler", da = "emulator/auth/handler", ua = encodeURIComponent("fac");
|
5938
5969
|
async function Nt(n, e, t, r, i, s) {
|
5939
5970
|
d(
|
5940
5971
|
n.config.authDomain,
|
@@ -5947,7 +5978,7 @@ async function Nt(n, e, t, r, i, s) {
|
|
5947
5978
|
"invalid-api-key"
|
5948
5979
|
/* AuthErrorCode.INVALID_API_KEY */
|
5949
5980
|
);
|
5950
|
-
const
|
5981
|
+
const a = {
|
5951
5982
|
apiKey: n.config.apiKey,
|
5952
5983
|
appName: n.name,
|
5953
5984
|
authType: t,
|
@@ -5956,23 +5987,23 @@ async function Nt(n, e, t, r, i, s) {
|
|
5956
5987
|
eventId: i
|
5957
5988
|
};
|
5958
5989
|
if (e instanceof yn) {
|
5959
|
-
e.setDefaultLanguage(n.languageCode),
|
5990
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", ur(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
5960
5991
|
for (const [u, p] of Object.entries({}))
|
5961
|
-
|
5992
|
+
a[u] = p;
|
5962
5993
|
}
|
5963
5994
|
if (e instanceof ne) {
|
5964
5995
|
const u = e.getScopes().filter((p) => p !== "");
|
5965
|
-
u.length > 0 && (
|
5996
|
+
u.length > 0 && (a.scopes = u.join(","));
|
5966
5997
|
}
|
5967
|
-
n.tenantId && (
|
5968
|
-
const
|
5969
|
-
for (const u of Object.keys(
|
5970
|
-
|
5971
|
-
const
|
5972
|
-
return `${
|
5998
|
+
n.tenantId && (a.tid = n.tenantId);
|
5999
|
+
const c = a;
|
6000
|
+
for (const u of Object.keys(c))
|
6001
|
+
c[u] === void 0 && delete c[u];
|
6002
|
+
const o = await n._getAppCheckToken(), l = o ? `#${ua}=${encodeURIComponent(o)}` : "";
|
6003
|
+
return `${ha(n)}?${Q(c).slice(1)}${l}`;
|
5973
6004
|
}
|
5974
|
-
function
|
5975
|
-
return n.emulator ?
|
6005
|
+
function ha({ config: n }) {
|
6006
|
+
return n.emulator ? Ye(n, da) : `https://${n.authDomain}/${la}`;
|
5976
6007
|
}
|
5977
6008
|
/**
|
5978
6009
|
* @license
|
@@ -5990,23 +6021,23 @@ function uo({ config: n }) {
|
|
5990
6021
|
* See the License for the specific language governing permissions and
|
5991
6022
|
* limitations under the License.
|
5992
6023
|
*/
|
5993
|
-
const
|
5994
|
-
class
|
6024
|
+
const De = "webStorageSupport";
|
6025
|
+
class pa {
|
5995
6026
|
constructor() {
|
5996
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn =
|
6027
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Bs, this._overrideRedirectResult = Ms;
|
5997
6028
|
}
|
5998
6029
|
// Wrapping in async even though we don't await anywhere in order
|
5999
6030
|
// to make sure errors are raised as promise rejections
|
6000
6031
|
async _openPopup(e, t, r, i) {
|
6001
6032
|
var s;
|
6002
6033
|
R((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6003
|
-
const
|
6004
|
-
return
|
6034
|
+
const a = await Nt(e, t, r, xe(), i);
|
6035
|
+
return oa(e, a, Qe());
|
6005
6036
|
}
|
6006
6037
|
async _openRedirect(e, t, r, i) {
|
6007
6038
|
await this._originValidation(e);
|
6008
6039
|
const s = await Nt(e, t, r, xe(), i);
|
6009
|
-
return
|
6040
|
+
return _s(s), new Promise(() => {
|
6010
6041
|
});
|
6011
6042
|
}
|
6012
6043
|
_initialize(e) {
|
@@ -6021,7 +6052,7 @@ class ho {
|
|
6021
6052
|
}), r;
|
6022
6053
|
}
|
6023
6054
|
async initAndGetManager(e) {
|
6024
|
-
const t = await
|
6055
|
+
const t = await ta(e), r = new js(e);
|
6025
6056
|
return t.register("authEvent", (i) => (d(
|
6026
6057
|
i == null ? void 0 : i.authEvent,
|
6027
6058
|
e,
|
@@ -6033,10 +6064,10 @@ class ho {
|
|
6033
6064
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
6034
6065
|
}
|
6035
6066
|
_isIframeWebStorageSupported(e, t) {
|
6036
|
-
this.iframes[e._key()].send(
|
6067
|
+
this.iframes[e._key()].send(De, { type: De }, (i) => {
|
6037
6068
|
var s;
|
6038
|
-
const
|
6039
|
-
|
6069
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
|
6070
|
+
a !== void 0 && t(!!a), w(
|
6040
6071
|
e,
|
6041
6072
|
"internal-error"
|
6042
6073
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -6045,13 +6076,13 @@ class ho {
|
|
6045
6076
|
}
|
6046
6077
|
_originValidation(e) {
|
6047
6078
|
const t = e._key();
|
6048
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6079
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ws(e)), this.originValidationPromises[t];
|
6049
6080
|
}
|
6050
6081
|
get _shouldInitProactively() {
|
6051
6082
|
return gn() || un() || Ke();
|
6052
6083
|
}
|
6053
6084
|
}
|
6054
|
-
const
|
6085
|
+
const fa = pa;
|
6055
6086
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6056
6087
|
/**
|
6057
6088
|
* @license
|
@@ -6069,7 +6100,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
|
|
6069
6100
|
* See the License for the specific language governing permissions and
|
6070
6101
|
* limitations under the License.
|
6071
6102
|
*/
|
6072
|
-
class
|
6103
|
+
class ma {
|
6073
6104
|
constructor(e) {
|
6074
6105
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6075
6106
|
}
|
@@ -6120,7 +6151,7 @@ class fo {
|
|
6120
6151
|
* See the License for the specific language governing permissions and
|
6121
6152
|
* limitations under the License.
|
6122
6153
|
*/
|
6123
|
-
function
|
6154
|
+
function _a(n) {
|
6124
6155
|
switch (n) {
|
6125
6156
|
case "Node":
|
6126
6157
|
return "node";
|
@@ -6136,22 +6167,22 @@ function mo(n) {
|
|
6136
6167
|
return;
|
6137
6168
|
}
|
6138
6169
|
}
|
6139
|
-
function
|
6140
|
-
|
6170
|
+
function ga(n) {
|
6171
|
+
Y(new W(
|
6141
6172
|
"auth",
|
6142
6173
|
(e, { options: t }) => {
|
6143
|
-
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey:
|
6144
|
-
d(
|
6145
|
-
const
|
6146
|
-
apiKey:
|
6147
|
-
authDomain:
|
6174
|
+
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
6175
|
+
d(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
|
6176
|
+
const o = {
|
6177
|
+
apiKey: a,
|
6178
|
+
authDomain: c,
|
6148
6179
|
clientPlatform: n,
|
6149
6180
|
apiHost: "identitytoolkit.googleapis.com",
|
6150
6181
|
tokenApiHost: "securetoken.googleapis.com",
|
6151
6182
|
apiScheme: "https",
|
6152
6183
|
sdkClientVersion: vn(n)
|
6153
|
-
}, l = new
|
6154
|
-
return
|
6184
|
+
}, l = new $i(r, i, s, o);
|
6185
|
+
return Qi(l, t), l;
|
6155
6186
|
},
|
6156
6187
|
"PUBLIC"
|
6157
6188
|
/* ComponentType.PUBLIC */
|
@@ -6163,21 +6194,21 @@ function _o(n) {
|
|
6163
6194
|
"auth-internal"
|
6164
6195
|
/* _ComponentName.AUTH_INTERNAL */
|
6165
6196
|
).initialize();
|
6166
|
-
})),
|
6197
|
+
})), Y(new W(
|
6167
6198
|
"auth-internal",
|
6168
6199
|
(e) => {
|
6169
|
-
const t =
|
6200
|
+
const t = Ie(e.getProvider(
|
6170
6201
|
"auth"
|
6171
6202
|
/* _ComponentName.AUTH */
|
6172
6203
|
).getImmediate());
|
6173
|
-
return ((r) => new
|
6204
|
+
return ((r) => new ma(r))(t);
|
6174
6205
|
},
|
6175
6206
|
"PRIVATE"
|
6176
6207
|
/* ComponentType.PRIVATE */
|
6177
6208
|
).setInstantiationMode(
|
6178
6209
|
"EXPLICIT"
|
6179
6210
|
/* InstantiationMode.EXPLICIT */
|
6180
|
-
)),
|
6211
|
+
)), x(Dt, Pt, _a(n)), x(Dt, Pt, "esm2017");
|
6181
6212
|
}
|
6182
6213
|
/**
|
6183
6214
|
* @license
|
@@ -6195,11 +6226,11 @@ function _o(n) {
|
|
6195
6226
|
* See the License for the specific language governing permissions and
|
6196
6227
|
* limitations under the License.
|
6197
6228
|
*/
|
6198
|
-
const
|
6229
|
+
const va = 5 * 60, Ia = zt("authIdTokenMaxAge") || va;
|
6199
6230
|
let Mt = null;
|
6200
|
-
const
|
6231
|
+
const ba = (n) => async (e) => {
|
6201
6232
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6202
|
-
if (r && r >
|
6233
|
+
if (r && r > Ia)
|
6203
6234
|
return;
|
6204
6235
|
const i = t == null ? void 0 : t.token;
|
6205
6236
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6209,33 +6240,33 @@ const Io = (n) => async (e) => {
|
|
6209
6240
|
} : {}
|
6210
6241
|
}));
|
6211
6242
|
};
|
6212
|
-
function
|
6213
|
-
const e =
|
6243
|
+
function ya(n = pi()) {
|
6244
|
+
const e = Yt(n, "auth");
|
6214
6245
|
if (e.isInitialized())
|
6215
6246
|
return e.getImmediate();
|
6216
|
-
const t =
|
6217
|
-
popupRedirectResolver:
|
6247
|
+
const t = qi(n, {
|
6248
|
+
popupRedirectResolver: fa,
|
6218
6249
|
persistence: [
|
6219
|
-
|
6220
|
-
|
6250
|
+
Rs,
|
6251
|
+
ps,
|
6221
6252
|
kn
|
6222
6253
|
]
|
6223
6254
|
}), r = zt("authTokenSyncURL");
|
6224
6255
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6225
6256
|
const s = new URL(r, location.origin);
|
6226
6257
|
if (location.origin === s.origin) {
|
6227
|
-
const
|
6228
|
-
|
6258
|
+
const a = ba(s.toString());
|
6259
|
+
ds(t, a, () => a(t.currentUser)), ls(t, (c) => a(c));
|
6229
6260
|
}
|
6230
6261
|
}
|
6231
|
-
const i =
|
6232
|
-
return i &&
|
6262
|
+
const i = Gt("auth");
|
6263
|
+
return i && es(t, `http://${i}`), t;
|
6233
6264
|
}
|
6234
|
-
function
|
6265
|
+
function Ea() {
|
6235
6266
|
var n, e;
|
6236
6267
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
6237
6268
|
}
|
6238
|
-
|
6269
|
+
Ji({
|
6239
6270
|
loadJS(n) {
|
6240
6271
|
return new Promise((e, t) => {
|
6241
6272
|
const r = document.createElement("script");
|
@@ -6245,142 +6276,173 @@ $i({
|
|
6245
6276
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6246
6277
|
);
|
6247
6278
|
s.customData = i, t(s);
|
6248
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
6279
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", Ea().appendChild(r);
|
6249
6280
|
});
|
6250
6281
|
},
|
6251
6282
|
gapiScript: "https://apis.google.com/js/api.js",
|
6252
6283
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6253
6284
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6254
6285
|
});
|
6255
|
-
|
6286
|
+
ga(
|
6256
6287
|
"Browser"
|
6257
6288
|
/* ClientPlatform.BROWSER */
|
6258
6289
|
);
|
6259
|
-
const
|
6290
|
+
const Ta = Ln({
|
6260
6291
|
history: Un(),
|
6261
|
-
routes: [...
|
6292
|
+
routes: [...We, ...le]
|
6262
6293
|
});
|
6263
|
-
let
|
6264
|
-
|
6294
|
+
let Pe, Me;
|
6295
|
+
Ta.beforeEach(async (n) => {
|
6265
6296
|
const {
|
6266
6297
|
sessionUser: e,
|
6267
6298
|
currentRestaurant: t,
|
6268
6299
|
currentBusiness: r,
|
6269
6300
|
readRestaurants: i,
|
6270
6301
|
changeRestaurant: s
|
6271
|
-
} =
|
6272
|
-
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (
|
6273
|
-
const
|
6302
|
+
} = Ge();
|
6303
|
+
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6304
|
+
const c = $(e, (o) => {
|
6274
6305
|
var l;
|
6275
|
-
|
6306
|
+
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6276
6307
|
});
|
6277
|
-
})),
|
6278
|
-
new Promise(async (
|
6279
|
-
const
|
6280
|
-
|
6308
|
+
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6309
|
+
new Promise(async (a) => {
|
6310
|
+
const c = $(r, (o) => {
|
6311
|
+
o && (c(), a(!0));
|
6281
6312
|
});
|
6282
6313
|
}),
|
6283
|
-
new Promise(async (
|
6284
|
-
const
|
6285
|
-
l && (
|
6286
|
-
}),
|
6287
|
-
await s(
|
6314
|
+
new Promise(async (a) => {
|
6315
|
+
const c = $(t, (l) => {
|
6316
|
+
l && (c(), a(!0));
|
6317
|
+
}), o = await i();
|
6318
|
+
await s(o == null ? void 0 : o.at(0));
|
6288
6319
|
})
|
6289
|
-
]).then((
|
6320
|
+
]).then((a) => !0)), Me) : !0;
|
6290
6321
|
});
|
6291
|
-
const
|
6322
|
+
const wa = /* @__PURE__ */ Ut({
|
6292
6323
|
__name: "AppSidebar",
|
6293
6324
|
setup(n) {
|
6294
|
-
const e =
|
6295
|
-
|
6296
|
-
let
|
6297
|
-
t.currentRoute.value.meta.parent && (
|
6325
|
+
const e = Ge(), t = Bn(), r = jn(t.currentRoute.value.name);
|
6326
|
+
$(t.currentRoute, () => {
|
6327
|
+
let o = t.currentRoute.value.name;
|
6328
|
+
t.currentRoute.value.meta.parent && (o = t.currentRoute.value.meta.parent), r.value = o;
|
6298
6329
|
});
|
6299
|
-
const i =
|
6300
|
-
var
|
6301
|
-
if (!((
|
6330
|
+
const i = We.map((o) => {
|
6331
|
+
var u;
|
6332
|
+
if (!((u = o.meta) != null && u.sidebarDisplay))
|
6302
6333
|
return;
|
6303
|
-
const
|
6304
|
-
label:
|
6305
|
-
value:
|
6334
|
+
const l = {
|
6335
|
+
label: o.meta.sidebarDisplay,
|
6336
|
+
value: o.name,
|
6306
6337
|
action: () => {
|
6307
|
-
if (t.currentRoute.value.name !==
|
6308
|
-
return t.push({ name:
|
6338
|
+
if (t.currentRoute.value.name !== o.name)
|
6339
|
+
return t.push({ name: o.name });
|
6309
6340
|
}
|
6310
6341
|
};
|
6311
|
-
return
|
6312
|
-
}).filter((
|
6313
|
-
var
|
6314
|
-
if ((
|
6342
|
+
return o.meta.sidebarNew && (l.badge = () => xn(zn.FmPill, { label: "New" })), l;
|
6343
|
+
}).filter((o) => !!o), s = le.map((o) => {
|
6344
|
+
var l;
|
6345
|
+
if ((l = o.meta) != null && l.sidebarDisplay && !o.meta.section)
|
6346
|
+
return {
|
6347
|
+
label: o.meta.sidebarDisplay,
|
6348
|
+
value: o.name,
|
6349
|
+
action: () => {
|
6350
|
+
if (t.currentRoute.value.name !== o.name)
|
6351
|
+
return t.push({ name: o.name });
|
6352
|
+
}
|
6353
|
+
};
|
6354
|
+
}).filter((o) => !!o), a = (o) => le.map((l) => {
|
6355
|
+
var u;
|
6356
|
+
if ((u = l.meta) != null && u.sidebarDisplay && l.meta.section === o)
|
6315
6357
|
return {
|
6316
|
-
label:
|
6317
|
-
value:
|
6358
|
+
label: l.meta.sidebarDisplay,
|
6359
|
+
value: l.name,
|
6318
6360
|
action: () => {
|
6319
|
-
if (t.currentRoute.value.name !==
|
6320
|
-
return t.push({ name:
|
6361
|
+
if (t.currentRoute.value.name !== l.name)
|
6362
|
+
return t.push({ name: l.name });
|
6321
6363
|
}
|
6322
6364
|
};
|
6323
|
-
}).filter((
|
6324
|
-
var
|
6325
|
-
const
|
6326
|
-
return (
|
6365
|
+
}).filter((l) => !!l), c = Lt(() => {
|
6366
|
+
var l;
|
6367
|
+
const o = [...i];
|
6368
|
+
return (l = e.sessionUser.value) != null && l.isInternal && (o.push({
|
6327
6369
|
label: "",
|
6328
6370
|
value: "divider",
|
6329
6371
|
disabled: !0
|
6330
|
-
}),
|
6331
|
-
label: "
|
6372
|
+
}), o.push({
|
6373
|
+
label: "Devices",
|
6374
|
+
icon: "desktop_windows",
|
6375
|
+
value: "divider",
|
6376
|
+
disabled: !0
|
6377
|
+
}), o.push(...a("device")), o.push({
|
6378
|
+
label: "",
|
6379
|
+
value: "divider",
|
6380
|
+
disabled: !0
|
6381
|
+
}), o.push({
|
6382
|
+
label: "Payment Gateway",
|
6383
|
+
icon: "account_balance",
|
6384
|
+
value: "divider",
|
6385
|
+
disabled: !0
|
6386
|
+
}), o.push(...a("payment-gateway")), o.push({
|
6387
|
+
label: "",
|
6388
|
+
value: "divider",
|
6389
|
+
disabled: !0
|
6390
|
+
}), o.push({
|
6391
|
+
label: "General",
|
6332
6392
|
icon: "admin_panel_settings",
|
6333
6393
|
value: "divider",
|
6334
6394
|
disabled: !0
|
6335
|
-
}),
|
6395
|
+
}), o.push(...s)), o;
|
6336
6396
|
});
|
6337
|
-
return (
|
6338
|
-
const
|
6339
|
-
return Ft(),
|
6397
|
+
return (o, l) => {
|
6398
|
+
const u = Bt("FmCollapsibleTabs");
|
6399
|
+
return Ft(), jt(u, {
|
6340
6400
|
modelValue: r.value,
|
6341
|
-
"onUpdate:modelValue":
|
6342
|
-
items:
|
6401
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => r.value = p),
|
6402
|
+
items: c.value,
|
6343
6403
|
class: "py-16 px-8 w-[240px]"
|
6344
6404
|
}, null, 8, ["modelValue", "items"]);
|
6345
6405
|
};
|
6346
6406
|
}
|
6347
6407
|
});
|
6348
|
-
var
|
6349
|
-
const
|
6408
|
+
var Ra = { 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" };
|
6409
|
+
const Pa = /* @__PURE__ */ Ut({
|
6350
6410
|
__name: "App",
|
6351
6411
|
setup(n) {
|
6352
|
-
const { state: e } =
|
6353
|
-
async function
|
6354
|
-
const
|
6355
|
-
if (!
|
6356
|
-
const
|
6357
|
-
await
|
6412
|
+
const { state: e } = Zn(), t = Ge(), r = Fn(), i = Xt(Ra.firebase);
|
6413
|
+
async function s() {
|
6414
|
+
const a = t.sessionUser.value;
|
6415
|
+
if (!a || !a.token) return;
|
6416
|
+
const c = await a.getCustomToken(), o = ya(i);
|
6417
|
+
await cs(o, c);
|
6358
6418
|
}
|
6359
|
-
return
|
6419
|
+
return s(), $(t.sessionUser, s), Vn(() => {
|
6360
6420
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6361
|
-
}),
|
6362
|
-
t.registerSidebarComponent(
|
6363
|
-
}), (
|
6364
|
-
const
|
6365
|
-
return Ft(),
|
6421
|
+
}), Hn(() => {
|
6422
|
+
t.registerSidebarComponent(wa);
|
6423
|
+
}), (a, c) => {
|
6424
|
+
const o = Bt("RouterView");
|
6425
|
+
return Ft(), jt(o, {
|
6426
|
+
key: Gn(r).path
|
6427
|
+
});
|
6366
6428
|
};
|
6367
6429
|
}
|
6368
|
-
}),
|
6369
|
-
...
|
6370
|
-
...
|
6430
|
+
}), Ma = [
|
6431
|
+
...le,
|
6432
|
+
...We
|
6371
6433
|
];
|
6372
6434
|
export {
|
6373
|
-
|
6435
|
+
W as C,
|
6374
6436
|
M as F,
|
6375
6437
|
ee as S,
|
6376
|
-
|
6377
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6438
|
+
Y as _,
|
6439
|
+
Yt as a,
|
6440
|
+
Na as b,
|
6441
|
+
pi as c,
|
6442
|
+
Da as d,
|
6381
6443
|
gt as e,
|
6382
|
-
|
6444
|
+
Ma as f,
|
6383
6445
|
z as g,
|
6384
|
-
|
6385
|
-
|
6446
|
+
Pa as h,
|
6447
|
+
x as r
|
6386
6448
|
};
|