@onairosofficial/onairos-capacitor 0.1.4 → 0.1.5
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/OnairosofficialOnairosCapacitor.podspec +1 -1
- package/README.md +1 -1
- package/dist/onairos.capacitor.esm.js +509 -1
- package/dist/onairos.capacitor.esm.turbopack.js +509 -1
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosChatGPTNativePlugin.swift +187 -945
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosRNScrapers.swift +1800 -0
- package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosSpotifyNativePlugin.swift +180 -629
- package/onairos.d.ts +24 -0
- package/package.json +5 -2
- package/src/assets/connectors/Linkedinicon.png +0 -0
- package/src/assets/connectors/Redditicon.png +0 -0
- package/src/assets/connectors/YouTubeicon2.png +0 -0
- package/src/assets/connectors/chatgpt.png +0 -0
- package/src/assets/connectors/claude.png +0 -0
- package/src/assets/connectors/instagram.png +0 -0
- package/src/assets/connectors/netflix.png +0 -0
- package/src/assets/connectors/pinterest.png +0 -0
- package/src/assets/connectors/sephora.png +0 -0
- package/src/assets/connectors/spotify.png +0 -0
- package/src/assets/connectors/tiktok.png +0 -0
- package/src/assets/permissions/onairos.png +0 -0
- package/src/assets/permissions/personalization.png +0 -0
- package/src/assets/permissions/public-profile-person.png +0 -0
- package/src/assets/permissions/raw-memories.png +0 -0
- package/src/capacitorConnectorCatalog.js +2 -6
- package/src/components/DataRequest.jsx +96 -532
- package/src/components/PinSetup.jsx +39 -226
- package/src/components/SDKDesignPreview.jsx +33 -0
- package/src/components/SessionUserBar.jsx +2 -1
- package/src/components/UniversalOnboarding.jsx +190 -423
- package/src/components/WelcomeScreen.jsx +7 -0
- package/src/components/parity/NativeConnections.jsx +136 -0
- package/src/components/parity/NativeScreens.jsx +48 -0
- package/src/components/ui/PageLayout.jsx +7 -3
- package/src/nativeImport/ConnectorLoading.jsx +13 -0
- package/src/nativeImport/CustomImportSession.js +115 -0
- package/src/nativeImport/ImportIcon.jsx +29 -0
- package/src/nativeImport/ImportProgress.jsx +24 -0
- package/src/nativeImport/ImportStatus.jsx +9 -0
- package/src/nativeImport/NativeChatImport.jsx +28 -0
- package/src/nativeImport/NativeImportSession.js +123 -0
- package/src/nativeImport/NativeScraperImport.jsx +57 -0
- package/src/nativeImport/SmartFilter.jsx +28 -0
- package/src/nativeImport/customPayload.js +37 -0
- package/src/nativeImport/netflixExport.js +30 -0
- package/src/nativeImport/netflixHistory.js +28 -0
- package/src/nativeImport/netflixSession.js +59 -0
- package/src/nativeImport/rawHandoff.js +7 -0
- package/src/nativeImport/rn/config/api.js +5 -0
- package/src/nativeImport/rn/services/apiKeyService.js +2 -0
- package/src/nativeImport/rn/services/hingePayload.js +37 -0
- package/src/nativeImport/rn/services/nativeConversationImport.js +138 -0
- package/src/nativeImport/rn/services/nativeFileTransfer.js +127 -0
- package/src/nativeImport/rn/services/nativeRawRedaction.js +136 -0
- package/src/nativeImport/rn/services/netflixPayload.js +70 -0
- package/src/nativeImport/rn/services/rawMemoryPolicy.js +38 -0
- package/src/nativeImport/rn/services/sephoraPayload.js +166 -0
- package/src/nativeImport/rn/services/spotifyPayload.js +99 -0
- package/src/nativeImport/rn/source-manifest.json +45 -0
- package/src/nativeImport/rn/utils/importedFiles.js +74 -0
- package/src/nativeImport/rn/utils/nativeImportDates.js +45 -0
- package/src/nativeImport/rn/utils/nativeImportFileReceiver.js +51 -0
- package/src/nativeImport/rn/utils/nativeImportMetadata.js +74 -0
- package/src/nativeImport/rn/utils/nativeImportTopics.js +56 -0
- package/src/nativeImport/rn/utils/rawExportDelivery.js +12 -0
- package/src/nativeImport/rn/utils/webviewScripts/chatgptDiscovery.js +99 -0
- package/src/nativeImport/rn/utils/webviewScripts/claude.js +349 -0
- package/src/nativeImport/rn/utils/webviewScripts/gemini.js +356 -0
- package/src/nativeImport/rn/utils/webviewScripts/hinge.js +375 -0
- package/src/nativeImport/rn/utils/webviewScripts/instagram.js +152 -0
- package/src/nativeImport/rn/utils/webviewScripts/linkedin.js +825 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeChatGPTImport.js +202 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeChatGPTSession.js +63 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeImportFiles.js +132 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeImportProviders.js +80 -0
- package/src/nativeImport/rn/utils/webviewScripts/nativeLoginViewport.js +28 -0
- package/src/nativeImport/rn/utils/webviewScripts/netflix.js +257 -0
- package/src/nativeImport/rn/utils/webviewScripts/sephora.js +862 -0
- package/src/nativeImport/rn/utils/webviewScripts/sephoraSession.js +160 -0
- package/src/nativeImport/rn/utils/webviewScripts/spotify.js +1868 -0
- package/src/nativeImport/rn/utils/webviewScripts/telegram.js +630 -0
- package/src/nativeImport/rn/utils/webviewScripts/tiktok.js +2920 -0
- package/src/onairos.core.jsx +3 -0
- package/src/onairosButton.jsx +23 -17
- package/src/styles/onairos-rn-parity.css +175 -0
- package/src/styles/tailwind.capacitor.css +4 -0
- package/src/utils/nativeConnectorSession.js +18 -0
- package/src/utils/parityPolicy.js +41 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
// Synced from RN utils/webviewScripts/gemini.ts by scripts/sync-rn-connectors.cjs.
|
|
2
|
+
const GEMINI_EXPORT_SCRIPT = `
|
|
3
|
+
(function() {
|
|
4
|
+
try {
|
|
5
|
+
if (!document.body) {
|
|
6
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
7
|
+
type: 'CONVERSATION_EXPORT_ERROR',
|
|
8
|
+
message: 'Page not ready'
|
|
9
|
+
}));
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
(async () => {
|
|
14
|
+
try {
|
|
15
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
16
|
+
type: 'EXPORT_PROGRESS',
|
|
17
|
+
stage: 'discovering',
|
|
18
|
+
progress: 2,
|
|
19
|
+
message: 'Discovering conversations...'
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
// --- Helper utilities ---
|
|
23
|
+
function cleanText(t) {
|
|
24
|
+
t = (t || '').replace(/\\r/g, '').trim();
|
|
25
|
+
if (!t) return '';
|
|
26
|
+
return t.replace(/\\n{3,}/g, '\\n\\n').trim();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function inBadContainer(el) {
|
|
30
|
+
try {
|
|
31
|
+
return !!(el.closest('nav,aside,mat-sidenav,[role="navigation"],[data-test-id*="sidebar" i],[aria-label*="Chats" i]'));
|
|
32
|
+
} catch (_) { return false; }
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// --- Step 1: Discover sidebar conversation links ---
|
|
36
|
+
function extractChatLinks(max) {
|
|
37
|
+
try {
|
|
38
|
+
var links = Array.prototype.slice.call(
|
|
39
|
+
document.querySelectorAll('a[href*="/app/"]')
|
|
40
|
+
);
|
|
41
|
+
var out = [];
|
|
42
|
+
var seen = {};
|
|
43
|
+
for (var i = 0; i < links.length; i++) {
|
|
44
|
+
var a = links[i];
|
|
45
|
+
var href = a.getAttribute('href') || '';
|
|
46
|
+
var mm = href.match(/\\/app\\/([a-zA-Z0-9_-]{8,64})/);
|
|
47
|
+
if (!mm || !mm[1]) continue;
|
|
48
|
+
if (seen[mm[1]]) continue;
|
|
49
|
+
seen[mm[1]] = true;
|
|
50
|
+
var title = (a.innerText || a.textContent || '').replace(/\\s+/g, ' ').trim();
|
|
51
|
+
if (title.length > 140) title = title.slice(0, 140);
|
|
52
|
+
out.push({ id: mm[1], title: title || 'Untitled', href: href });
|
|
53
|
+
}
|
|
54
|
+
if (typeof max === 'number') out = out.slice(0, max);
|
|
55
|
+
return out;
|
|
56
|
+
} catch (_) { return []; }
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// --- Step 2: Read WIZ_global_data session fields ---
|
|
60
|
+
function readWizGlobalData() {
|
|
61
|
+
var snlm0e = null;
|
|
62
|
+
var fSid = null;
|
|
63
|
+
var bl = null;
|
|
64
|
+
try {
|
|
65
|
+
var wiz = window.WIZ_global_data || {};
|
|
66
|
+
snlm0e = wiz.SNlM0e || null;
|
|
67
|
+
fSid = wiz.FdrFJe || null;
|
|
68
|
+
bl = wiz.cfb2h || null;
|
|
69
|
+
} catch (_) {}
|
|
70
|
+
|
|
71
|
+
// Fallback: scan script tags for SNlM0e / FdrFJe / cfb2h
|
|
72
|
+
if (!snlm0e || !fSid || !bl) {
|
|
73
|
+
try {
|
|
74
|
+
var scripts = document.querySelectorAll('script');
|
|
75
|
+
for (var si = 0; si < scripts.length; si++) {
|
|
76
|
+
var txt = scripts[si].textContent || '';
|
|
77
|
+
if (!snlm0e) {
|
|
78
|
+
var m = txt.match(/['"\\s]SNlM0e['"\\s]*:['"\\s]*['"]([^'"]+)['"]/);
|
|
79
|
+
if (m) snlm0e = m[1];
|
|
80
|
+
}
|
|
81
|
+
if (!fSid) {
|
|
82
|
+
var m2 = txt.match(/['"\\s]FdrFJe['"\\s]*:['"\\s]*['"]([^'"]+)['"]/);
|
|
83
|
+
if (m2) fSid = m2[1];
|
|
84
|
+
}
|
|
85
|
+
if (!bl) {
|
|
86
|
+
var m3 = txt.match(/['"\\s]cfb2h['"\\s]*:['"\\s]*['"]([^'"]+)['"]/);
|
|
87
|
+
if (m3) bl = m3[1];
|
|
88
|
+
}
|
|
89
|
+
if (snlm0e && fSid && bl) break;
|
|
90
|
+
}
|
|
91
|
+
} catch (_) {}
|
|
92
|
+
}
|
|
93
|
+
return { snlm0e: snlm0e, fSid: fSid, bl: bl };
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// --- Step 3: Attempt RPC fetch for a conversation ---
|
|
97
|
+
async function fetchConversationRpc(convId, wizData) {
|
|
98
|
+
try {
|
|
99
|
+
var snlm0e = wizData.snlm0e;
|
|
100
|
+
var fSid = wizData.fSid;
|
|
101
|
+
var bl = wizData.bl;
|
|
102
|
+
|
|
103
|
+
if (!snlm0e) return null;
|
|
104
|
+
|
|
105
|
+
// Build query string matching what Gemini actually sends
|
|
106
|
+
var qs = 'rpcids=hNvQHb&source-path=%2Fapp&hl=en&rt=c';
|
|
107
|
+
if (fSid) qs += '&f.sid=' + encodeURIComponent(fSid);
|
|
108
|
+
if (bl) qs += '&bl=' + encodeURIComponent(bl);
|
|
109
|
+
qs += '&_reqid=' + (Math.floor(Math.random() * 9000000) + 1000000);
|
|
110
|
+
|
|
111
|
+
// Build RPC request
|
|
112
|
+
var reqData = JSON.stringify(['c_' + convId, 100, null, 1, [0], [4], null, 1]);
|
|
113
|
+
var body = 'f.req=' + encodeURIComponent(
|
|
114
|
+
JSON.stringify([[[
|
|
115
|
+
'hNvQHb',
|
|
116
|
+
reqData,
|
|
117
|
+
null,
|
|
118
|
+
'generic'
|
|
119
|
+
]]])
|
|
120
|
+
) + '&at=' + encodeURIComponent(snlm0e);
|
|
121
|
+
|
|
122
|
+
var resp = await fetch('/_/BardChatUi/data/batchexecute?' + qs, {
|
|
123
|
+
method: 'POST',
|
|
124
|
+
credentials: 'include',
|
|
125
|
+
headers: {
|
|
126
|
+
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
|
|
127
|
+
},
|
|
128
|
+
body: body
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
if (!resp.ok) return null;
|
|
132
|
+
|
|
133
|
+
var text = await resp.text();
|
|
134
|
+
// Parse the envelope: lines start with )]}' then JSON arrays
|
|
135
|
+
var lines = text.split('\\n');
|
|
136
|
+
var messages = [];
|
|
137
|
+
|
|
138
|
+
for (var li = 0; li < lines.length; li++) {
|
|
139
|
+
var line = lines[li].trim();
|
|
140
|
+
if (!line || line === ")]}'") continue;
|
|
141
|
+
try {
|
|
142
|
+
var parsed = JSON.parse(line);
|
|
143
|
+
// The response is a nested array; conversation turns
|
|
144
|
+
// are buried several levels deep.
|
|
145
|
+
if (Array.isArray(parsed) && parsed[0] && Array.isArray(parsed[0])) {
|
|
146
|
+
var inner = parsed[0];
|
|
147
|
+
if (inner[2]) {
|
|
148
|
+
try {
|
|
149
|
+
var payload = JSON.parse(inner[2]);
|
|
150
|
+
// Navigate nested structure to find turns
|
|
151
|
+
if (Array.isArray(payload)) {
|
|
152
|
+
extractTurnsFromPayload(payload, messages);
|
|
153
|
+
}
|
|
154
|
+
} catch (_) {}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
} catch (_) {}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return messages.length > 0 ? messages : null;
|
|
161
|
+
} catch (_) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function extractTurnsFromPayload(arr, messages) {
|
|
167
|
+
// Gemini RPC responses have deeply nested conversation turns.
|
|
168
|
+
// Walk the structure looking for string arrays that look like turns.
|
|
169
|
+
try {
|
|
170
|
+
if (!Array.isArray(arr)) return;
|
|
171
|
+
for (var i = 0; i < arr.length; i++) {
|
|
172
|
+
var item = arr[i];
|
|
173
|
+
if (!item) continue;
|
|
174
|
+
// A turn is typically [null, content_text, ...]
|
|
175
|
+
// or deeply nested. Look for arrays containing strings > 20 chars.
|
|
176
|
+
if (Array.isArray(item)) {
|
|
177
|
+
// Check if this looks like a conversation turn array
|
|
178
|
+
if (item.length >= 2) {
|
|
179
|
+
for (var j = 0; j < item.length; j++) {
|
|
180
|
+
if (typeof item[j] === 'string' && item[j].length > 10) {
|
|
181
|
+
var cleaned = cleanText(item[j]);
|
|
182
|
+
if (cleaned.length > 10) {
|
|
183
|
+
messages.push(cleaned);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
// Recurse into sub-arrays (max depth control via call stack)
|
|
189
|
+
extractTurnsFromPayload(item, messages);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
} catch (_) {}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// --- Step 3: DOM fallback extraction ---
|
|
196
|
+
function extractCurrentConversationDOM() {
|
|
197
|
+
var root = document.querySelector('main') ||
|
|
198
|
+
document.querySelector('[role="main"]') ||
|
|
199
|
+
document.body;
|
|
200
|
+
|
|
201
|
+
var selectors = [
|
|
202
|
+
'[role="list"] [role="listitem"]',
|
|
203
|
+
'[role="listitem"]',
|
|
204
|
+
'article',
|
|
205
|
+
'.query-text',
|
|
206
|
+
'.markdown',
|
|
207
|
+
'[data-test-id*="turn" i]',
|
|
208
|
+
'[data-test-id*="message" i]'
|
|
209
|
+
];
|
|
210
|
+
|
|
211
|
+
var texts = [];
|
|
212
|
+
var seen = {};
|
|
213
|
+
|
|
214
|
+
for (var si = 0; si < selectors.length; si++) {
|
|
215
|
+
var nodes = Array.prototype.slice.call(root.querySelectorAll(selectors[si]));
|
|
216
|
+
for (var ni = 0; ni < nodes.length; ni++) {
|
|
217
|
+
var el = nodes[ni];
|
|
218
|
+
if (!el || inBadContainer(el)) continue;
|
|
219
|
+
var t = cleanText(el.innerText || el.textContent || '');
|
|
220
|
+
if (!t || t.length < 2) continue;
|
|
221
|
+
if (/^Chats\\b/i.test(t)) continue;
|
|
222
|
+
if (t.length > 8000) t = t.slice(0, 8000);
|
|
223
|
+
if (!seen[t]) {
|
|
224
|
+
seen[t] = true;
|
|
225
|
+
texts.push(t);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
if (texts.length >= 6) break;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return texts;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// --- Main extraction flow ---
|
|
235
|
+
var wizData = readWizGlobalData();
|
|
236
|
+
var sidebarLinks = extractChatLinks(10);
|
|
237
|
+
var allConversations = [];
|
|
238
|
+
|
|
239
|
+
if (sidebarLinks.length > 0) {
|
|
240
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
241
|
+
type: 'EXPORT_PROGRESS',
|
|
242
|
+
progress: 10,
|
|
243
|
+
message: 'Found ' + sidebarLinks.length + ' conversations'
|
|
244
|
+
}));
|
|
245
|
+
|
|
246
|
+
for (var ci = 0; ci < sidebarLinks.length; ci++) {
|
|
247
|
+
var meta = sidebarLinks[ci];
|
|
248
|
+
var progressPercent = 10 + ((ci / sidebarLinks.length) * 75);
|
|
249
|
+
|
|
250
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
251
|
+
type: 'EXPORT_PROGRESS',
|
|
252
|
+
stage: 'processing_conversation',
|
|
253
|
+
current: ci + 1,
|
|
254
|
+
total: sidebarLinks.length,
|
|
255
|
+
progress: Math.round(progressPercent),
|
|
256
|
+
message: 'Processing ' + (ci + 1) + '/' + sidebarLinks.length + ' conversations'
|
|
257
|
+
}));
|
|
258
|
+
|
|
259
|
+
// Random delay 500-1500ms between requests
|
|
260
|
+
if (ci > 0) {
|
|
261
|
+
await new Promise(function(r) {
|
|
262
|
+
setTimeout(r, 500 + Math.floor(Math.random() * 1000));
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
var rpcMessages = await fetchConversationRpc(meta.id, wizData);
|
|
267
|
+
if (rpcMessages && rpcMessages.length > 0) {
|
|
268
|
+
allConversations.push({
|
|
269
|
+
conversation_id: meta.id,
|
|
270
|
+
title: meta.title,
|
|
271
|
+
user_messages: rpcMessages
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// DOM fallback: extract the currently visible conversation
|
|
278
|
+
if (allConversations.length === 0) {
|
|
279
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
280
|
+
type: 'EXPORT_PROGRESS',
|
|
281
|
+
progress: 85,
|
|
282
|
+
message: 'Extracting visible conversation...'
|
|
283
|
+
}));
|
|
284
|
+
|
|
285
|
+
var domTexts = extractCurrentConversationDOM();
|
|
286
|
+
if (domTexts.length > 0) {
|
|
287
|
+
// Get current chat ID from URL if available
|
|
288
|
+
var chatId = null;
|
|
289
|
+
try {
|
|
290
|
+
var pathMatch = (location.pathname || '').match(
|
|
291
|
+
/^\\/app\\/([a-zA-Z0-9_-]{8,64})/
|
|
292
|
+
);
|
|
293
|
+
if (pathMatch) chatId = pathMatch[1];
|
|
294
|
+
} catch (_) {}
|
|
295
|
+
|
|
296
|
+
allConversations.push({
|
|
297
|
+
conversation_id: chatId || ('gemini_' + Date.now()),
|
|
298
|
+
title: document.title || 'Gemini Conversation',
|
|
299
|
+
user_messages: domTexts
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
var totalMessages = 0;
|
|
305
|
+
for (var ti = 0; ti < allConversations.length; ti++) {
|
|
306
|
+
totalMessages += allConversations[ti].user_messages.length;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
310
|
+
type: 'CONVERSATION_EXPORT_COMPLETE',
|
|
311
|
+
status: 'success',
|
|
312
|
+
data: {
|
|
313
|
+
conversations: allConversations,
|
|
314
|
+
total_conversations: allConversations.length,
|
|
315
|
+
total_messages: totalMessages
|
|
316
|
+
},
|
|
317
|
+
success: true,
|
|
318
|
+
message: allConversations.length > 0
|
|
319
|
+
? 'Extracted ' + allConversations.length + ' conversations'
|
|
320
|
+
: 'Connected! No conversations found.'
|
|
321
|
+
}));
|
|
322
|
+
|
|
323
|
+
} catch (error) {
|
|
324
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
325
|
+
type: 'CONVERSATION_EXPORT_ERROR',
|
|
326
|
+
status: 'error',
|
|
327
|
+
message: 'Fetch failed: ' + error.message,
|
|
328
|
+
success: false
|
|
329
|
+
}));
|
|
330
|
+
}
|
|
331
|
+
})();
|
|
332
|
+
|
|
333
|
+
} catch (error) {
|
|
334
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
335
|
+
type: 'CONVERSATION_EXPORT_ERROR',
|
|
336
|
+
status: 'error',
|
|
337
|
+
message: 'Script error: ' + error.message,
|
|
338
|
+
success: false
|
|
339
|
+
}));
|
|
340
|
+
}
|
|
341
|
+
})();
|
|
342
|
+
true;
|
|
343
|
+
`;
|
|
344
|
+
const GEMINI_SUCCESS_SCRIPT = `
|
|
345
|
+
(function() {})();
|
|
346
|
+
true;
|
|
347
|
+
`;
|
|
348
|
+
const GEMINI_ERROR_SCRIPT = `
|
|
349
|
+
(function() {})();
|
|
350
|
+
true;
|
|
351
|
+
`;
|
|
352
|
+
export {
|
|
353
|
+
GEMINI_ERROR_SCRIPT,
|
|
354
|
+
GEMINI_EXPORT_SCRIPT,
|
|
355
|
+
GEMINI_SUCCESS_SCRIPT
|
|
356
|
+
};
|