jsbridge-mini.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698
  1. /*20240528*/ ! function(e, n) {
  2. if ("object" == typeof module && "object" == typeof module.exports) module.exports = n(e);
  3. else {
  4. var t = n(e),
  5. i = e.jsBridge;
  6. if ("object" == typeof i)
  7. for (var o in i) {
  8. var r = i[o];
  9. t[o] || "function" != typeof r || (t[o] = function() {
  10. r.apply(i, arguments)
  11. })
  12. }
  13. e.jsBridge = t
  14. }
  15. }("object" == typeof window ? window : this, function(e) {
  16. var n = !1,
  17. t = {
  18. isReady: function() {
  19. return !!e.WebViewJavascriptBridge
  20. },
  21. ready: function(e) {
  22. p(e)
  23. },
  24. audioPlayer: {
  25. play: function(e, n) {
  26. c("10.play", "object" == typeof e ? e : {}, "function" == typeof e ? e : n)
  27. },
  28. pause: function(e) {
  29. c("10.pause", {}, e)
  30. },
  31. resume: function(e) {
  32. c("10.resume", {}, e)
  33. },
  34. stop: function(e) {
  35. c("10.stop", {}, e)
  36. },
  37. add: function(e, n) {
  38. c("10.add", e, n)
  39. },
  40. list: function(e) {
  41. c("10.list", {}, e)
  42. },
  43. remove: function(e, n) {
  44. c("10.remove", e, n)
  45. },
  46. clear: function(e) {
  47. c("10.clear", {}, e)
  48. },
  49. setListener: function(e) {
  50. o("10.setListener", {}, function(n, t) {
  51. if (e && t) {
  52. var i = JSON.parse(t);
  53. e(i.event, i.data)
  54. }
  55. })
  56. },
  57. removeListener: function(e) {
  58. o("10.removeListener")
  59. }
  60. },
  61. umanalytics: {
  62. getDeviceInfo: function(e) {
  63. u("8.getDeviceInfo", {}, e)
  64. },
  65. onEvent: function(e, n) {
  66. c("8.onEvent", e, n)
  67. }
  68. },
  69. txVideo: {
  70. play: function(e) {
  71. o("7.play", "string" == typeof e ? {
  72. url: e
  73. } : e)
  74. },
  75. playList: function(e) {
  76. o("7.playList", e)
  77. },
  78. addPlayer: function(e, n) {
  79. e.e = "function" == typeof e.onEvent, o("7.addPlayer", e, function(t, i) {
  80. if (/^\d+$/.test(i)) n && n(parseInt(i));
  81. else if (e.e) {
  82. var o = JSON.parse(i);
  83. e.onEvent(o.p, o.e, o.d ? o.d : null)
  84. }
  85. })
  86. },
  87. removePlayer: function(e) {
  88. o("7.removePlayer", {
  89. p: e
  90. })
  91. }
  92. },
  93. network: {
  94. wifiInfo: function(e) {
  95. c("6.wifiInfo", {}, e)
  96. },
  97. active: function(e) {
  98. c("6.active", {}, e)
  99. },
  100. setConnectionListener: function(e) {
  101. u("6.scl", {}, e)
  102. }
  103. },
  104. ble: {
  105. getState: function(e) {
  106. a("5.getState", {}, e)
  107. },
  108. requestPermission: function(e) {
  109. s("5.requestPermission", {}, e)
  110. },
  111. requestEnable: function(e) {
  112. s("5.requestEnable", {}, e)
  113. },
  114. getBondedDevices: function(e) {
  115. u("5.getBondedDevices", {}, e)
  116. },
  117. getName: function(e) {
  118. r("5.getName", {}, e)
  119. },
  120. getPeripheral: function(e) {
  121. u("5.getPeripheral", {}, e)
  122. },
  123. isScanning: function(e) {
  124. s("5.isScanning", {}, e)
  125. },
  126. isConnected: function(e, n) {
  127. s("5.isConnected", e, n)
  128. },
  129. scan: function(e) {
  130. c("5.scan", {}, e)
  131. },
  132. stopScan: function(e) {
  133. s("5.stopScan", {}, e)
  134. },
  135. connect: function(e, n) {
  136. o("5.connect", e, n)
  137. },
  138. disconnect: function(e, n) {
  139. o("5.disconnect", e, n)
  140. },
  141. requestMtu: function(e, n) {
  142. c("5.requestMtu", e, n)
  143. },
  144. discoverServices: function(e, n) {
  145. c("5.discoverServices", e, n)
  146. },
  147. discoverCharacteristics: function(e, n) {
  148. c("5.discoverCharacteristics", e, n)
  149. },
  150. discoverDescriptors: function(e, n) {
  151. c("5.discoverDescriptors", e, n)
  152. },
  153. setNotify: function(e, n) {
  154. c("5.setNotify", e, n)
  155. },
  156. read: function(e, n) {
  157. c("5.read", e, n)
  158. },
  159. write: function(e, n) {
  160. c("5.write", e, n)
  161. }
  162. },
  163. fs: {
  164. exist: function(e, n) {
  165. o("3.exist", {
  166. s: e
  167. }, n)
  168. },
  169. mkdir: function(e, n) {
  170. o("3.mkdir", {
  171. s: e
  172. }, n)
  173. },
  174. list: function(e, n) {
  175. c("3.list", {
  176. s: e
  177. }, n)
  178. },
  179. size: function(e, n) {
  180. o("3.size", {
  181. s: e
  182. }, function(e, t) {
  183. "function" == typeof n && n(e, e ? parseInt(t) : t)
  184. })
  185. },
  186. delete: function(e, n) {
  187. o("3.delete", {
  188. s: e
  189. }, n)
  190. },
  191. copy: function(e, n, t) {
  192. o("3.copy", {
  193. s: e,
  194. d: n
  195. }, t)
  196. },
  197. writeText: function(e, n, t) {
  198. o("3.writeText", {
  199. s: e,
  200. a: n
  201. }, t)
  202. },
  203. appendText: function(e, n, t) {
  204. o("3.appendText", {
  205. s: e,
  206. a: n
  207. }, t)
  208. },
  209. readText: function(e, n) {
  210. o("3.readText", {
  211. s: e
  212. }, n)
  213. },
  214. writeBinary: function(e, n, t) {
  215. o("3.writeBinary", {
  216. s: e,
  217. a: n
  218. }, t)
  219. },
  220. appendBinary: function(e, n, t) {
  221. o("3.appendBinary", {
  222. s: e,
  223. a: n
  224. }, t)
  225. },
  226. readBinary: function(e, n) {
  227. o("3.readBinary", {
  228. s: e
  229. }, n)
  230. },
  231. toUri: function(e, n) {
  232. o("3.toUri", {
  233. s: e
  234. }, n)
  235. },
  236. toAbsolute: function(e, n) {
  237. o("3.toAbsolute", {
  238. s: e
  239. }, n)
  240. },
  241. share: function(e, n) {
  242. o("3.share", {
  243. s: e
  244. }, n)
  245. },
  246. open: function(e, n) {
  247. o("3.open", {
  248. s: e
  249. }, n)
  250. },
  251. unzip: function(e, n, t) {
  252. var i = {
  253. s: e,
  254. d: n
  255. };
  256. "object" == typeof e && (i.s = e.src, i.d = e.dst, i.pwd = e.pwd, t = n), o("3.unzip", i, t)
  257. },
  258. md5: function(e, n) {
  259. o("3.md5", {
  260. s: e
  261. }, n)
  262. },
  263. sha1: function(e, n) {
  264. o("3.sha1", {
  265. s: e
  266. }, n)
  267. },
  268. sha256: function(e, n) {
  269. o("3.sha256", {
  270. s: e
  271. }, n)
  272. },
  273. download: function(e, n) {
  274. r("3.download", e, function(t) {
  275. var i = JSON.parse(t);
  276. 0 == i.a ? "function" == typeof e.progress && e.progress(i.t, i.d) :
  277. "function" == typeof n && n(1 == i.a, i.m)
  278. })
  279. }
  280. },
  281. rc: {
  282. init: function(e, n) {
  283. s("s.init", e, n)
  284. },
  285. setUserInfoListener: function(e) {
  286. r("s.setUserInfoListener", {}, e)
  287. },
  288. setUserInfo: function(e) {
  289. o("s.setUserInfo", e, null)
  290. },
  291. connect: function(e, n) {
  292. o("s.connect", e, n)
  293. },
  294. disconnect: function(e) {
  295. s("s.disconnect", {}, e)
  296. },
  297. logout: function(e) {
  298. s("s.logout", {}, e)
  299. }
  300. },
  301. rcIM: {
  302. startConversationList: function(e, n) {
  303. s("q.startConversationList", e, n)
  304. },
  305. startConversation: function(e, n) {
  306. s("q.startConversation", e, n)
  307. },
  308. startSubConversationList: function(e, n) {
  309. s("q.startSubConversationList", e, n)
  310. },
  311. unreadMessageCount: function(e) {
  312. a("q.unreadMessageCount", {}, e)
  313. }
  314. },
  315. rcCall: {
  316. startSingleCall: function(e, n) {
  317. s("r.startSingleCall", e, n)
  318. },
  319. startMultiCall: function(e, n) {
  320. s("r.startMultiCall", e, n)
  321. }
  322. },
  323. video: {
  324. play: function(e) {
  325. o("x.play", "string" == typeof e ? {
  326. url: e
  327. } : e)
  328. },
  329. addPlayer: function(e, n) {
  330. e.e = "function" == typeof e.onEvent, o("x.addPlayer", e, function(t, i) {
  331. if (/^\d+$/.test(i)) n && n(parseInt(i));
  332. else if (e.e) {
  333. var o = JSON.parse(i);
  334. e.onEvent(o.p, o.e, o.d ? o.d : null)
  335. }
  336. })
  337. },
  338. removePlayer: function(e) {
  339. o("x.removePlayer", {
  340. p: e
  341. })
  342. },
  343. resource: function(e) {
  344. o("x.resource", e)
  345. },
  346. start: function(e) {
  347. o("x.start", {
  348. p: e
  349. })
  350. },
  351. pause: function(e) {
  352. o("x.pause", {
  353. p: e
  354. })
  355. },
  356. stop: function(e) {
  357. o("x.stop", {
  358. p: e
  359. })
  360. },
  361. fullScreen: function(e) {
  362. o("x.fullScreen", {
  363. p: e
  364. })
  365. }
  366. },
  367. displays: {
  368. getDisplays: function(e) {
  369. u("z.getDisplays", {}, e)
  370. },
  371. show: function(e, n) {
  372. s("z.show", e, n)
  373. },
  374. dismiss: function(e) {
  375. o("z.dismiss", {
  376. x: e
  377. })
  378. }
  379. },
  380. iap: {
  381. canMakePayments: function(e) {
  382. s("i.canMakePayments", {}, e)
  383. },
  384. getProducts: function(e, n) {
  385. c("i.getProducts", e, n)
  386. },
  387. setTransanctionListener: function(e) {
  388. c("i.setTransanctionListener", {}, e)
  389. },
  390. getUnfinishedTransactions: function() {
  391. c("i.getUnfinishedTransactions", {})
  392. },
  393. purchase: function(e) {
  394. c("i.purchase", e)
  395. },
  396. restoreTransactions: function(e) {
  397. c("i.restoreTransactions", e)
  398. },
  399. finishTransaction: function(e) {
  400. o("i.finishTransaction", e)
  401. },
  402. setDownloadListener: function(e) {
  403. c("i.setDownloadListener", {}, e)
  404. },
  405. startDownloads: function(e) {
  406. c("i.startDownloads", e)
  407. },
  408. pauseDownloads: function(e) {
  409. o("i.pauseDownloads", e)
  410. },
  411. resumeDownloads: function(e) {
  412. o("i.resumeDownloads", e)
  413. },
  414. cancelDownloads: function(e) {
  415. o("i.cancelDownloads", e)
  416. }
  417. },
  418. doc: {
  419. canOpen: function(e, n) {
  420. s("c.canOpen", {
  421. url: e
  422. }, n)
  423. },
  424. open: function(e) {
  425. o("c.open", e)
  426. }
  427. },
  428. bc: {
  429. login: function(e) {
  430. o("b.login", {}, e)
  431. },
  432. logout: function(e) {
  433. o("b.logout", {}, e)
  434. },
  435. setShouldUseAlipay: function(e) {
  436. o("b.setShouldUseAlipay", {
  437. b: e
  438. })
  439. },
  440. setSyncForTaoke: function(e) {
  441. o("b.setSyncForTaoke", {
  442. b: e
  443. })
  444. },
  445. setForceH5: function(e) {
  446. o("b.setForceH5", {
  447. b: e
  448. })
  449. },
  450. setTaokeParams: function(e) {
  451. o("b.setTaokeParams", e)
  452. },
  453. setChannel: function(e) {
  454. o("b.setChannel", e)
  455. },
  456. setISVCode: function(e) {
  457. o("b.setISVCode", {
  458. s: e
  459. })
  460. },
  461. setISVVersion: function(e) {
  462. o("b.setISVVersion", {
  463. s: e
  464. })
  465. },
  466. detail: function(e, n) {
  467. o("b.detail", e, n)
  468. },
  469. shop: function(e, n) {
  470. o("b.shop", e, n)
  471. },
  472. url: function(e, n) {
  473. o("b.url", e, n)
  474. },
  475. addCart: function(e, n) {
  476. o("b.addCart", e, n)
  477. },
  478. cart: function(e, n) {
  479. o("b.cart", e, n)
  480. },
  481. order: function(e, n) {
  482. o("b.order", e, n)
  483. }
  484. },
  485. getui: {
  486. setListener: function(e) {
  487. u("g.setListener", {}, e)
  488. },
  489. turnOffPush: function() {
  490. o("g.turnOffPush")
  491. },
  492. turnOnPush: function() {
  493. o("g.turnOnPush")
  494. },
  495. setBadge: function(e, n) {
  496. s("g.setBadge", e, n)
  497. },
  498. isPushTurnedOn: function(e) {
  499. s("g.isPushTurnedOn", {}, e)
  500. },
  501. getClientid: function(e) {
  502. r("g.getClientid", {}, e)
  503. },
  504. bindAlias: function(e, n) {
  505. s("g.bindAlias", {
  506. alias: e
  507. }, n)
  508. },
  509. unBindAlias: function(e, n) {
  510. s("g.unBindAlias", e, n)
  511. },
  512. setTag: function(e, n) {
  513. s("g.setTag", {
  514. tags: e
  515. }, n)
  516. },
  517. setSilentTime: function(e, n) {
  518. s("g.setSilentTime", e, n)
  519. }
  520. },
  521. jiguang: {
  522. setListener: function(e) {
  523. u("j.setListener", {}, e)
  524. },
  525. stopPush: function() {
  526. o("j.stopPush")
  527. },
  528. resumePush: function() {
  529. o("j.resumePush")
  530. },
  531. isPushStopped: function(e) {
  532. s("j.isPushStopped", {}, e)
  533. },
  534. getRegistrationID: function(e) {
  535. r("j.getRegistrationID", {}, e)
  536. },
  537. setAlias: function(e, n) {
  538. r("j.setAlias", {
  539. alias: e
  540. }, n)
  541. },
  542. deleteAlias: function(e) {
  543. r("j.deleteAlias", {}, e)
  544. },
  545. getAlias: function(e) {
  546. r("j.getAlias", {}, e)
  547. },
  548. setBadge: function(e) {
  549. o("j.setBadge", {
  550. b: e
  551. })
  552. },
  553. setTags: function(e, n) {
  554. u("j.setTags", {
  555. tags: e
  556. }, n)
  557. },
  558. addTags: function(e, n) {
  559. u("j.addTags", {
  560. tags: e
  561. }, n)
  562. },
  563. deleteTags: function(e, n) {
  564. u("j.deleteTags", {
  565. tags: e
  566. }, n)
  567. },
  568. cleanTags: function(e) {
  569. u("j.cleanTags", {}, e)
  570. },
  571. getAllTags: function(e) {
  572. u("j.getAllTags", {}, e)
  573. }
  574. },
  575. notification: {
  576. getBadge: function(e) {
  577. r("n.getBadge", {}, function(n) {
  578. e && e(parseInt(n))
  579. })
  580. },
  581. setBadge: function(e) {
  582. o("n.setBadge", {
  583. badge: e
  584. })
  585. },
  586. requestAuth: function(e) {
  587. s("n.requestAuth", {}, e)
  588. },
  589. notify: function(e, n) {
  590. c("n.notify", e, n)
  591. },
  592. cancelAll: function() {
  593. o("n.cancelAll")
  594. }
  595. },
  596. x5: {
  597. videoCacheSize: function(e) {
  598. t.ios ? e && e(0) : o("x5.videoCacheSize", {}, function(n, t) {
  599. e && e(n && t ? parseInt(t) : 0)
  600. })
  601. },
  602. clearVideoCache: function(e) {
  603. t.ios ? e && e() : r("x5.clearVideoCache", {}, e)
  604. },
  605. playVideo: function(e, n) {
  606. t.ios ? n && n(!1) : s("x5.playVideo", {
  607. url: e
  608. }, n)
  609. },
  610. getEnabledState: function(e) {
  611. t.ios ? e && e(-1) : a("x5.getEnabledState", {}, e)
  612. },
  613. setEnabledState: function(e, n) {
  614. t.ios ? n && n(!1) : s("x5.setEnabledState", {
  615. s: e
  616. }, n)
  617. }
  618. },
  619. weibo: {
  620. login: function(e) {
  621. o("w.login", {}, function(n, t) {
  622. var i = t ? JSON.parse(t) : null;
  623. if ("function" == typeof e) e(n, i);
  624. else if (n && "string" == typeof e) {
  625. var o = e + (e.indexOf("?") >= 0 ? "&" : "?") + "uid=" + encodeURIComponent(
  626. i.uid) + "&expiresTime=" + encodeURIComponent(i.expiresTime) +
  627. "&phoneNum=" + encodeURIComponent(i.phoneNum) + "&refreshToken=" +
  628. encodeURIComponent(i.refreshToken) + "&token=" + encodeURIComponent(i
  629. .token);
  630. location.href = o
  631. }
  632. })
  633. },
  634. installed: function(e) {
  635. s("w.installed", {}, e)
  636. },
  637. shareText: function(e, n) {
  638. i(e, n)
  639. },
  640. shareImage: function(e, n) {
  641. i(e, n, "i")
  642. },
  643. shareVideo: function(e, n) {
  644. i(e, n, "v")
  645. },
  646. shareWebPage: function(e, n) {
  647. i(e, n, "w")
  648. },
  649. shareImages: function(e, n) {
  650. i(e, n, "j")
  651. },
  652. shareStory: function(e, n) {
  653. i(e, n, "s")
  654. }
  655. },
  656. accelerometer: {
  657. support: function(e) {
  658. s("sa.support", {}, e)
  659. },
  660. start: function(e) {
  661. o("sa.start", {}, e ? function(n, t) {
  662. if (n && t) {
  663. var i = JSON.parse(t);
  664. e(i[0], i[1], i[2])
  665. }
  666. } : null)
  667. },
  668. stop: function(e) {
  669. o("sa.stop")
  670. }
  671. },
  672. gyroscope: {
  673. support: function(e) {
  674. s("sg.support", {}, e)
  675. },
  676. start: function(e) {
  677. o("sg.start", {}, e ? function(n, t) {
  678. if (n && t) {
  679. var i = JSON.parse(t);
  680. e(i[0], i[1], i[2])
  681. }
  682. } : null)
  683. },
  684. stop: function(e) {
  685. o("sg.stop")
  686. }
  687. },
  688. checkCamera: function(e) {
  689. t.ios ? e && e({
  690. count: 2,
  691. front: !0,
  692. back: !0
  693. }) : u("checkCamera", {}, e)
  694. },
  695. appDownloads: function() {
  696. t.ios || o("appDownloads")
  697. },
  698. openSetting: function(e) {
  699. o("openSetting", {
  700. w: e
  701. })
  702. },
  703. getSettingState: function(e, n) {
  704. s("getSettingState", {
  705. w: e
  706. }, n)
  707. },
  708. getIMEI: function(e) {
  709. t.ios ? e && e("unknown") : r("1.imei", {}, e)
  710. },
  711. getOAID: function(e) {
  712. t.ios ? e && e("unknown") : r("1.oaid", {}, e)
  713. },
  714. getIDFA: function(e) {
  715. t.ios ? r("1.idfa", {}, e) : e && e("unknown")
  716. },
  717. requestPermissions: function(e, n) {
  718. u("requestPermissions", {
  719. p: e
  720. }, n)
  721. },
  722. action: function(e) {
  723. o("action", e ? {
  724. btns: e
  725. } : {}, null)
  726. },
  727. uiNavigation: function(e) {
  728. o("uiNavigation", {
  729. b: e
  730. })
  731. },
  732. uiShare: function(e) {
  733. o("uiShare", {
  734. b: e
  735. })
  736. },
  737. uiActions: function(e) {
  738. o("uiActions", {
  739. b: e
  740. })
  741. },
  742. uiRefresh: function(e) {
  743. o("uiRefresh", {
  744. b: e
  745. })
  746. },
  747. saveImageToAlbum: function(e, n) {
  748. s("saveImageToAlbum", {
  749. i: e
  750. }, n)
  751. },
  752. saveImagesToAlbum: function(e, n) {
  753. s("saveImagesToAlbum", {
  754. i: e
  755. }, n)
  756. },
  757. saveVideoToAlbum: function(e, n) {
  758. s("saveVideoToAlbum", {
  759. i: e
  760. }, n)
  761. },
  762. backToHome: function(e) {
  763. o("backToHome", {
  764. loadHomePage: !!e
  765. })
  766. },
  767. setClipboardText: function(e) {
  768. o("setClipboardText", {
  769. text: e
  770. })
  771. },
  772. debug: function() {
  773. o("debug", {}), n = !0
  774. },
  775. qqLogin: function(e) {
  776. e ? o("qqLogin", {}, function(n, t) {
  777. if ("function" == typeof e) e(n, t ? JSON.parse(t) : null);
  778. else if (n && "string" == typeof e) {
  779. var i = JSON.parse(t),
  780. o = e + (e.indexOf("?") >= 0 ? "&" : "?") + "openid=" + encodeURIComponent(i
  781. .openid) + "&access_token=" + encodeURIComponent(i.access_token);
  782. i.userinfo && (o += "&userinfo=" + JSON.stringify(i.userinfo)), location.href =
  783. o
  784. }
  785. }) : alert("Missing Parameter")
  786. },
  787. wxLogin: function(e) {
  788. e ? o("wxLogin", {}, function(n, t) {
  789. if ("function" == typeof e) e(n, t ? JSON.parse(t) : null);
  790. else if (n && "string" == typeof e) {
  791. var i = JSON.parse(t),
  792. o = e + (e.indexOf("?") >= 0 ? "&" : "?") + "code=" + encodeURIComponent(i
  793. .code);
  794. i.openid && (o += "&openid=" + encodeURIComponent(i.openid)), i.access_token &&
  795. (o += "&access_token=" + encodeURIComponent(i.access_token)), i.userinfo &&
  796. (o += "&userinfo=" + JSON.stringify(i.userinfo)), location.href = o
  797. }
  798. }) : alert("Missing Parameter")
  799. },
  800. unionPay: function(e, n) {
  801. o("v.pay", e, n)
  802. },
  803. unionSeInfo: function(e) {
  804. t.ios ? "function" == typeof e && e(!1, "not supported") : o("v.seInfo", {}, e)
  805. },
  806. unionPayAppInstalled: function(e) {
  807. s("v.unionPayAppInstalled", {}, e)
  808. },
  809. abcPay: function(e, n) {
  810. o("u.abcPay", e, n)
  811. },
  812. abcPayAppInstalled: function(e) {
  813. s("u.abcPayAppInstalled", {}, e)
  814. },
  815. icbcPay: function(e, n) {
  816. o("0.icbcPay", e, n)
  817. },
  818. net: function(e, n) {
  819. o("net", e, function(e, t) {
  820. var i = JSON.parse(t);
  821. n && "function" == typeof n && n(1 == i.a, i.b)
  822. })
  823. },
  824. netUploadFile: function(e) {
  825. o("netUploadFile", e, function(n, t) {
  826. var i = JSON.parse(t);
  827. 0 == i.a && "function" == typeof e.onProgress && e.onProgress(i.b, i.c), 1 == i.a &&
  828. "function" == typeof e.onSuccess && e.onSuccess(i.b), 2 == i.a && "function" ==
  829. typeof e.onFail && e.onFail(i.b)
  830. })
  831. },
  832. http: {
  833. get: function(e, n, i) {
  834. var o = {
  835. url: e,
  836. method: "GET"
  837. };
  838. n && "object" == typeof n && (o.params = n), t.net(o, function(e, t) {
  839. if (e) {
  840. var o = "function" == typeof n ? n : "function" == typeof i ? i : null;
  841. o && o(JSON.parse(t))
  842. }
  843. })
  844. },
  845. post: function(e, n, i) {
  846. var o = {
  847. url: e,
  848. method: "POST"
  849. };
  850. n && "object" == typeof n && (o.params = n), t.net(o, function(e, t) {
  851. if (e) {
  852. var o = "function" == typeof n ? n : "function" == typeof i ? i : null;
  853. o && o(JSON.parse(t))
  854. }
  855. })
  856. }
  857. },
  858. onMenuScan: function(e) {
  859. f("onMenuScan", function(n) {
  860. t.scan({
  861. needResult: !0
  862. }, e)
  863. })
  864. },
  865. cacheSize: function(e) {
  866. o("cacheSize", {}, function(n, t) {
  867. e && e(n && t ? parseInt(t) : 0)
  868. })
  869. },
  870. toast: function(e) {
  871. o("toast", {
  872. s: "string" == typeof e ? e : JSON.stringify(e)
  873. })
  874. },
  875. exit: function(e) {
  876. o("exit", {
  877. k: !!e
  878. })
  879. },
  880. upgrade: function(e) {
  881. o("upgrade", e, function(n, t) {
  882. if (e && "function" == typeof e.progress && t) {
  883. var i = JSON.parse(t);
  884. e.progress(i.a, i.b)
  885. }
  886. })
  887. },
  888. home: function() {
  889. t.ios ? t.exit() : o("home")
  890. },
  891. openInBrowser: function(e) {
  892. o("openInBrowser", {
  893. s: e
  894. })
  895. },
  896. miniProgram: function(e) {
  897. r("miniProgram", e, function(n) {
  898. "function" == typeof e.onResult && e.onResult(n)
  899. })
  900. },
  901. setMiniProgramResult: function(e) {
  902. o("setMiniProgramResult", {
  903. r: "string" != typeof e ? JSON.stringify(e) : e
  904. })
  905. },
  906. open: function(e) {
  907. o("open", "string" == typeof e ? {
  908. url: e
  909. } : e)
  910. },
  911. setOptions: function(e) {
  912. o("setOptions", e)
  913. },
  914. close: function(e) {
  915. t.version > 35 && t.isRoot || o("close", e ? {
  916. f: e
  917. } : {})
  918. },
  919. evalInNavbar: function(e) {
  920. o("evalInNavbar", {
  921. j: e
  922. })
  923. },
  924. evalInNavbarAction: function(e, n) {
  925. t.evalInNavbar("action(" + JSON.stringify({
  926. action: e,
  927. data: n
  928. }) + ")")
  929. },
  930. evalInToolbar: function(e) {
  931. o("evalInToolbar", {
  932. j: e
  933. })
  934. },
  935. launch: function(e, n) {
  936. "string" == typeof e ? s("launch", {
  937. a: e
  938. }, n) : a("launch", {
  939. b: e
  940. }, n)
  941. },
  942. canLaunch: function(e, n) {
  943. s("canLaunch", {
  944. u: e
  945. }, n)
  946. },
  947. launchPackage: function(e, n) {
  948. s("launchPackage", {
  949. s: e
  950. }, n)
  951. },
  952. onMenuAction: function(e) {
  953. f("onMenuAction", function(n) {
  954. t.action(e)
  955. })
  956. },
  957. onClose: function(e) {
  958. f("onClose", e)
  959. },
  960. onBackPressed: function(e) {
  961. f("onBackPressed", e)
  962. },
  963. onMenuShareTimeline: function(e) {
  964. d("onMenuShareTimeline", 0, e)
  965. },
  966. onMenuShareFriend: function(e) {
  967. d("onMenuShareFriend", 1, e)
  968. },
  969. onMenuShareQQ: function(e) {
  970. d("onMenuShareQQ", 2, e)
  971. },
  972. onMenuShareQZone: function(e) {
  973. d("onMenuShareQZone", 3, e)
  974. }
  975. };
  976. function i(e, n, t) {
  977. e = e || {};
  978. var i = {};
  979. t && (i[t] = e), e.text && (i.text = e.text), r("w.share", i, n)
  980. }
  981. function o(t, i, r) {
  982. l() ? e.WebViewJavascriptBridge.callHandler(t, i || {}, function(e) {
  983. if (n && alert("js back\n\n" + e), r && "function" == typeof r) {
  984. var t = JSON.parse(e);
  985. return r(!!t.success, t.text)
  986. }
  987. }) : p(function() {
  988. o(t, i, r)
  989. })
  990. }
  991. function r(e, n, t) {
  992. return o(e, n, t ? function(e, n) {
  993. if (t) return t(n)
  994. } : null)
  995. }
  996. function a(e, n, t) {
  997. return o(e, n, t ? function(e, n) {
  998. if (t) return t(parseInt(n))
  999. } : null)
  1000. }
  1001. function s(e, n, t) {
  1002. return o(e, n, t ? function(e, n) {
  1003. if (t) return t("true" == n)
  1004. } : null)
  1005. }
  1006. function c(e, n, t) {
  1007. return o(e, n, "function" == typeof t ? function(e, n) {
  1008. var i = null;
  1009. if (n) try {
  1010. i = JSON.parse(n)
  1011. } catch (e) {}
  1012. return t(e, i)
  1013. } : null)
  1014. }
  1015. function u(e, n, t) {
  1016. return o(e, n, t ? function(e, n) {
  1017. if (t) return t(n ? JSON.parse(n) : null)
  1018. } : null)
  1019. }
  1020. function f(n, t) {
  1021. l() ? e.WebViewJavascriptBridge.registerHandler(n, function(e, n) {
  1022. var i = {
  1023. ok: !0
  1024. };
  1025. if (t) {
  1026. var o = t(e);
  1027. null != o && (i.data = o)
  1028. }
  1029. n(i)
  1030. }) : p(function() {
  1031. f(n, t)
  1032. })
  1033. }
  1034. function l() {
  1035. return t.inApp || console.log("jsBridge can only used in App"), !!t.isReady() || (console.log(
  1036. "jsBridge is not ready\nUsage:\njsBridge.ready(function(){\n //do something\n});"), !1)
  1037. }
  1038. function d(e, n, i) {
  1039. f(e, function(e) {
  1040. "function" == typeof i ? i() : (i = i || {}, t.share({
  1041. to: n,
  1042. title: i.title || document.title,
  1043. link: i.link || location.href,
  1044. imgUrl: i.imgUrl || "",
  1045. desc: i.desc || ""
  1046. }, function(e) {
  1047. e && i.success && i.success(), e || i.cancel && i.cancel()
  1048. }))
  1049. })
  1050. }
  1051. function p(n) {
  1052. var t = e;
  1053. if (t && t.navigator &&
  1054. /MicroMessenger.*miniProgram|Alipay.*MiniProgram|toutiaomicroapp|QQ.*miniProgram|swan\/|JD.*miniProgram/i
  1055. .test(t.navigator.userAgent)) console.error("not support miniPrograme");
  1056. else {
  1057. if (t.WebViewJavascriptBridge) return n(WebViewJavascriptBridge);
  1058. if (t.WVJBCallbacks) return t.WVJBCallbacks.push(n);
  1059. t.WVJBCallbacks = [n];
  1060. var i = document,
  1061. o = i.createElement("iframe");
  1062. o.style.display = "none", o.src = "wvjbscheme://__BRIDGE_LOADED__";
  1063. var r = i.body ? i.body : i.documentElement;
  1064. r.appendChild(o), setTimeout(function() {
  1065. r.removeChild(o)
  1066. }, 3e3)
  1067. }
  1068. }
  1069. for (var g = [{
  1070. f: "wxOpenCustomerServiceChat|wxLaunchMiniProgram|wxSubscribeMsg|showImages|showSplash|appSettings|sidebarOpen|sidebarClose|sidebarHeader|captureWebPage|sysShare|share|shareText|shareMusic|shareImage|shareVideo|shareWxMiniProgram|shareImages|shareQqMiniProgram|wxOpenLaunchAppExtinfo|clearCache|clearCookie|vibrate|onAppEnterBackground|onAppEnterForeground|progress|print|presentBrowser|restart|actionButton"
  1071. }, {
  1072. f: "pay|wxPay|aliPay",
  1073. j: 1
  1074. }, {
  1075. f: "appInfo|deviceInfo|contactOne|contactAll",
  1076. j: 3
  1077. }, {
  1078. f: "wxAppInstalled|sidebarIsOpen|saveScreenshotToAlbum|canGoBack|canGoForward",
  1079. j: 4
  1080. }, {
  1081. f: "scanFromUrl|scanFromAlbum|scan|getClipboardText|getDeviceId|getInstallId",
  1082. j: 2
  1083. }, {
  1084. i: "d",
  1085. n: "d",
  1086. f: "deviceOwnerAuth|deviceOwnerAuthAvailable|",
  1087. j: 4
  1088. }, {
  1089. i: 2,
  1090. f: "agreed|agreement|userAgreement|userPrivacy",
  1091. o: {
  1092. onAgree: function(e) {
  1093. t.ios ? e && e(!0) : o("2.onAgree", {}, e)
  1094. }
  1095. },
  1096. j: 1
  1097. }, {
  1098. i: 4,
  1099. n: "db",
  1100. f: "tables",
  1101. o: {
  1102. execSQL: function(e, n, t) {
  1103. c("4.execSQL", {
  1104. s: e,
  1105. a: n
  1106. }, t)
  1107. },
  1108. query: function(e, n, t) {
  1109. c("4.query", {
  1110. s: e,
  1111. a: n
  1112. }, t)
  1113. }
  1114. }
  1115. }, {
  1116. i: 9,
  1117. n: "audioRecorder",
  1118. f: "startRecord|stopRecord|play|pause|resume|stop|duration|remove|upload",
  1119. e: 1
  1120. }, {
  1121. i: 9,
  1122. n: "audioRecorder",
  1123. f: "read",
  1124. j: 2
  1125. }, {
  1126. i: "a",
  1127. n: "bdloc",
  1128. f: "getCurrentPosition",
  1129. j: 3
  1130. }, {
  1131. i: "a",
  1132. n: "bdloc",
  1133. f: "stop",
  1134. j: 1
  1135. }, {
  1136. i: "y",
  1137. n: "bdface",
  1138. f: "detect|liveness",
  1139. j: 3
  1140. }, {
  1141. i: "y",
  1142. n: "bdface",
  1143. f: "config",
  1144. j: 1
  1145. }, {
  1146. i: 11,
  1147. n: "ttStat",
  1148. f: "init|eventRegister|eventPurchase|eventAccessAccount|eventAccessPaymentChannel|eventAddCart|eventAddToFavorite|eventCheckOut|eventCreateGameRole|eventLogin|eventUpdateLevel|eventQuest|eventViewContent|eventV3|setUserUniqueID"
  1149. }, {
  1150. i: 12,
  1151. n: "ttAd",
  1152. f: "init|bannerExpressAd|interactionExpressAd|rewardVideoAd|fullScreenVideoAd|interactionAd2|testTool",
  1153. e: 1
  1154. }, {
  1155. i: 13,
  1156. n: "xlx",
  1157. f: "init|refreshMediaUserId|refreshAppSecret|open"
  1158. }, {
  1159. i: 14,
  1160. n: "hyAd",
  1161. f: "init|openMotivateVideoAd",
  1162. e: 1
  1163. }, {
  1164. i: 15,
  1165. n: "fm",
  1166. f: "rewardVideoAd",
  1167. e: 1
  1168. }, {
  1169. i: 16,
  1170. n: "hx",
  1171. f: "init|rewardVideoAD|fullscreenVideoAD|interstitialAD|nativeAD|isAdOpen|gameList",
  1172. e: 1
  1173. }, {
  1174. i: 17,
  1175. n: "yuemeng",
  1176. f: "openReader|setOutUserId"
  1177. }, {
  1178. i: 18,
  1179. n: "txRtc",
  1180. f: "login|logout|getLoginStatus|setUserInfo|requestPermission|setListener|removeListener|getSDKVersion|enableFloatWindow|enableMuteMode|setCallingBell|call|groupCall|setCallListener|removeCallListener|createChatRoom|enterChatRoom|destroyChatRoom|setChatRoomListener|removeChatRoomListener|createVideoLiveRoom|enterVideoLiveRoom|setVideoLiveRoomListener|removeVideoLiveRoomListener|enterRoom|startLocalAudio|stopLocalAudio|exitRoom"
  1181. }, {
  1182. i: 19,
  1183. n: "leto",
  1184. f: "syncUserInfo|jumpMiniGame|startGameCenter",
  1185. e: 1
  1186. }, {
  1187. i: 20,
  1188. n: "yhad",
  1189. f: "rewardAdvert",
  1190. e: 1
  1191. }, {
  1192. i: 21,
  1193. f: "alipayLogin"
  1194. }, {
  1195. i: 22,
  1196. n: "dyad",
  1197. f: "jumpAdList|jumpAdDetail|jumpMine"
  1198. }, {
  1199. i: 23,
  1200. n: "mid",
  1201. f: "init|commonTask|weChatTask|cplTask|newsTask|novelTask|uiPreference|rewardVideo",
  1202. e: 1
  1203. }, {
  1204. i: 24,
  1205. n: "xw",
  1206. f: "jumpToList|jumpToDetail"
  1207. }, {
  1208. i: 25,
  1209. n: "yilan",
  1210. f: "init|shortVideo|littleTiktokVideo|littleKuaishouVideo|play|login|logout|getToken",
  1211. e: 1
  1212. }, {
  1213. i: 26,
  1214. n: "nfc",
  1215. f: "isSupported|isEnabled|openSettings|enableForegroundDispatch|disableForegroundDispatch|writeNdefUri|writeNdefText|writeNdefMime|cancelWriteNdef|makeReadOnlyNdef|cancelMakeReadOnlyNdef|writeMifareUltralightPage|cancelWriteMifareUltralightPage|transceiveMifareUltralight|cancelTransceiveMifareUltralight",
  1216. e: 1
  1217. }, {
  1218. i: 27,
  1219. n: "pcg",
  1220. f: "load|loadDetail"
  1221. }, {
  1222. i: 28,
  1223. n: "bh",
  1224. f: "rewardVideo|fullVideo|interactionAd|nativeAd",
  1225. e: 1
  1226. }, {
  1227. i: 29,
  1228. n: "xprinter",
  1229. f: "init|connectBtPort|connectNetPort|connectUsbPort|disconnectCurrentPort|disconnetNetPort|checkLinkedState|getBtAvailableDevice|onDiscovery|writeDataByUSB|writeSendData|write|writeTSC|writePos58|writePos76|writePos80",
  1230. e: 1
  1231. }, {
  1232. i: 30,
  1233. n: "sms",
  1234. f: "list",
  1235. e: 1
  1236. }, {
  1237. i: 31,
  1238. f: "appList",
  1239. j: 3
  1240. }, {
  1241. i: 32,
  1242. n: "bm",
  1243. f: "config|rewardVideoAd|interstitialAd|bannerAd|feedVideo|hVideo|interactive|cpa|setUserId",
  1244. e: 1
  1245. }, {
  1246. i: 33,
  1247. f: "callLog"
  1248. }, {
  1249. i: 34,
  1250. n: "dlna",
  1251. f: "search|videoResource|audioResource|imageResource|play|pause|stop|seek|devices|mediaInfo|positionInfo"
  1252. }, {
  1253. i: 35,
  1254. n: "qmf",
  1255. f: "wxPay|aliPay|unionPay|pay|seInfo|unionPayAppInstalled"
  1256. }, {
  1257. i: 36,
  1258. n: "wch",
  1259. f: "info"
  1260. }, {
  1261. i: 37,
  1262. n: "push",
  1263. f: "getPushId|getDeviceToken|bindTag|bindAlias|isOnline",
  1264. e: 1
  1265. }, {
  1266. i: 38,
  1267. n: "cncb",
  1268. f: "pay"
  1269. }, {
  1270. i: 39,
  1271. n: "gdtAction",
  1272. f: "logAction|setUserUniqueId|onRegister|onLogin|onBindAccount|onQuestFinish|onCreateRole|onUpdateLevel|onShare|onRateApp|onViewContent|onAddToCart|onCheckout|onPurchase|onAddPaymentChannel"
  1273. }, {
  1274. i: 40,
  1275. n: "netum",
  1276. f: "setMode|getBlueToothList|connectSppBlueTooth|sendCommand",
  1277. e: 1
  1278. }, {
  1279. i: 41,
  1280. n: "fusion",
  1281. f: "setUserId|bannerAd|interactionAd|rewardVideoAd",
  1282. e: 1
  1283. }, {
  1284. i: 42,
  1285. n: "game321",
  1286. f: "platformLogin|openSuit",
  1287. e: 1
  1288. }, {
  1289. i: 43,
  1290. n: "gdt",
  1291. f: "setChannel|interaction|interactionFullScreen|rewardVideo",
  1292. e: 1
  1293. }, {
  1294. i: 44,
  1295. n: "topflow",
  1296. f: "banner|rewardVideo",
  1297. e: 1
  1298. }, {
  1299. i: 45,
  1300. n: "tel",
  1301. f: "call"
  1302. }, {
  1303. i: 46,
  1304. n: "qs",
  1305. f: "scan",
  1306. e: 1
  1307. }, {
  1308. i: 47,
  1309. n: "amapLoc",
  1310. f: "getCurrentPosition|stop"
  1311. }, {
  1312. i: 48,
  1313. n: "amapNavi",
  1314. f: "showRoute",
  1315. e: 1
  1316. }, {
  1317. i: 49,
  1318. n: "amapTrack",
  1319. f: "startTrack|stopTrack",
  1320. e: 1
  1321. }, {
  1322. i: 50,
  1323. n: "pns",
  1324. f: "setAuthSDKInfo|checkAuthEnvEnable|getLoginToken"
  1325. }, {
  1326. i: 51,
  1327. n: "sia",
  1328. f: "checkSupport|request"
  1329. }, {
  1330. i: 52,
  1331. n: "zj",
  1332. f: "rewardVideo|interstitial|fullScreenVideo|banner|contentVideo|h5|task|setUserId|getMedia|setMedia",
  1333. e: 1
  1334. }, {
  1335. i: 53,
  1336. n: "serialPort",
  1337. f: "getDevices|open|send|close",
  1338. e: 1
  1339. }, {
  1340. i: 54,
  1341. n: "prt",
  1342. f: "getUsbPrinters|open|close|sendBytesData|printText|printImage|printTable|initPrinter|setFont|setPrinter|setLeftMargin|cutPaper|ringBuzzer|blackLableFind|resetFeedDistance"
  1343. }, {
  1344. i: 55,
  1345. n: "bmNews",
  1346. f: "config|show|setUserId|startCountDown|setRewardResult",
  1347. e: 1
  1348. }, {
  1349. i: 56,
  1350. n: "uhf",
  1351. f: "open|close|isOpen|getFirmwareVersion|getTemperature|getPower|setPower|getRegion|setRegion|inventoryOnce|inventoryStart|inventoryStop|getTagIDCount|getTagIDs|readTagData|writeTagData|blockWriteTagData|blockEraseTagData|lockTag|killTag|setParameters|setParamBytes|readTagLED|readTagTemperature|registerReadTags|unregisterReadTags"
  1352. }, {
  1353. i: 57,
  1354. n: "hkc",
  1355. f: "addDevice|getDevices|addPreview|removePreview|startPreview|stopPreview|snapshot"
  1356. }, {
  1357. i: 58,
  1358. n: "ob",
  1359. f: "preview|removePreview|snapshot"
  1360. }, {
  1361. i: 59,
  1362. n: "bmVideo",
  1363. f: "config|show|setUserId",
  1364. e: 1
  1365. }, {
  1366. i: 60,
  1367. n: "bmGame",
  1368. f: "config|show|setUserId",
  1369. e: 1
  1370. }, {
  1371. i: 61,
  1372. n: "bmNovel",
  1373. f: "config|show|setUserId",
  1374. e: 1
  1375. }, {
  1376. i: 62,
  1377. n: "xyAd",
  1378. f: "config|rewardVideoAd|interstitialAd|bannerAd|feedVideo|hVideo|interactive|cpa|setUserId",
  1379. e: 1
  1380. }, {
  1381. i: 63,
  1382. n: "xyNews",
  1383. f: "config|show|startCountDown|setRewardResult|setUserId",
  1384. e: 1
  1385. }, {
  1386. i: 64,
  1387. n: "xyVideo",
  1388. f: "config|show|setUserId",
  1389. e: 1
  1390. }, {
  1391. i: 65,
  1392. n: "xyGame",
  1393. f: "config|show|setUserId",
  1394. e: 1
  1395. }, {
  1396. i: 66,
  1397. n: "xyNovel",
  1398. f: "config|show|setUserId",
  1399. e: 1
  1400. }, {
  1401. i: 67,
  1402. n: "qqLoc",
  1403. f: "getCurrentPosition|stop"
  1404. }, {
  1405. i: 68,
  1406. n: "flyer",
  1407. f: "logEvent|setAdditionalData|setMinTimeBetweenSessions|logSession|setResolveDeepLinkURLs|sendPushNotificationData|getAppsFlyerUID|setCustomerUserId|setCollect|setCollectData|stop|start|anonymizeUser",
  1408. e: 1
  1409. }, {
  1410. i: 69,
  1411. n: "topVpn",
  1412. f: "setConfigInfo|loginVOne|requestVPNResInfo|startService|closeService|logoutVOne|requestCaptcha|getStatus|modifyPassword",
  1413. e: 1
  1414. }, {
  1415. i: 70,
  1416. n: "fbEvent",
  1417. f: "logEvent|setAutoLogAppEventsEnabled|setAdvertiserIDCollectionEnabled"
  1418. }, {
  1419. i: 71,
  1420. n: "fbLogin",
  1421. f: "login|logout"
  1422. }, {
  1423. i: 72,
  1424. n: "fbShare",
  1425. f: "shareLink|sharePhoto|shareVideo|shareMedia"
  1426. }, {
  1427. i: 73,
  1428. n: "tb",
  1429. f: "requestPermissionIfNecessary|interaction|banner|rewardVideo|shortVideo",
  1430. e: 1
  1431. }, {
  1432. i: 74,
  1433. n: "aliRpVerify",
  1434. f: "start"
  1435. }, {
  1436. i: 75,
  1437. n: "aliSmartVerify",
  1438. f: "getMetaInfo|start"
  1439. }, {
  1440. i: 76,
  1441. n: "aliZimVerify",
  1442. f: "getMetaInfo|getSession|verify"
  1443. }, {
  1444. i: 77,
  1445. n: "kc",
  1446. f: "banner|insert|fullVideo|rewardVideo|videoContent|news|novel|dial|constellatory|almanac|oneiromancy|weather|study|xm",
  1447. e: 1
  1448. }, {
  1449. i: 78,
  1450. n: "adjust",
  1451. f: "registerAdjustBridge|trackEvent|setSessionParameter|trackThirdPartySharing|trackAdRevenue|trackPlayStoreSubscription|getGoogleAdId|getAmazonAdId|getAdjustAdId",
  1452. e: 1
  1453. }, {
  1454. i: 79,
  1455. n: "vpn",
  1456. f: "start|stop|status"
  1457. }, {
  1458. i: 80,
  1459. n: "floater",
  1460. f: "open|close|status|hasPermission|requestPermission|setWindowBackground"
  1461. }, {
  1462. i: 81,
  1463. n: "yh",
  1464. f: "startScan|stopScan|connect|disconnect|write",
  1465. e: 1
  1466. }, {
  1467. i: 82,
  1468. n: "tz",
  1469. f: "requestPermissionIfNecessary|reward|fullscreen|dialog|banner|contentVideo",
  1470. e: 1
  1471. }, {
  1472. i: 83,
  1473. n: "txIm",
  1474. f: "login|logout|getLoginStatus|getSDKVersion|getUnreadMessageCount|setListener|removeListener|setMessageListener|removeMessageListener|chat|conversation|contact"
  1475. }, {
  1476. i: 84,
  1477. n: "easeIm",
  1478. f: "init|login|status|logout|userInfo|unreadMessageCount|chat"
  1479. }, {
  1480. i: 85,
  1481. n: "ttGm",
  1482. f: "reward|interstitialFull|banner|requestPermissionIfNecessary|testTool",
  1483. e: 1
  1484. }, {
  1485. i: 86,
  1486. n: "ttDp",
  1487. f: "init|video|grid|userProfile|requestPermissionIfNecessary",
  1488. e: 1
  1489. }, {
  1490. i: 87,
  1491. n: "contact",
  1492. f: "pick|all|add|delete"
  1493. }, {
  1494. i: 88,
  1495. n: "fn",
  1496. f: "interaction|fullscreenVideo|banner|reward",
  1497. e: 1
  1498. }, {
  1499. i: 89,
  1500. n: "yk",
  1501. f: "requestPermission|requestEnable|scan|stopScan|connect|disconnect|getPrinterInfo|setAutoOffTime|setPaperSize|printImage|printBlankLine|cut"
  1502. }, {
  1503. i: 90,
  1504. n: "qy",
  1505. f: "start"
  1506. }, {
  1507. i: 91,
  1508. n: "bdNavi",
  1509. f: "showRoute",
  1510. e: 1
  1511. }, {
  1512. i: 92,
  1513. n: "bp",
  1514. f: "print",
  1515. e: 1
  1516. }, {
  1517. i: 93,
  1518. n: "txDoc",
  1519. f: "isSupportExt|open"
  1520. }, {
  1521. i: 94,
  1522. n: "wwx",
  1523. f: "register|isInstalled|login|shareText|shareLink|shareFile|shareVideo|shareImage|shareMiniProgram|shareLocation"
  1524. }, {
  1525. i: 95,
  1526. n: "wj",
  1527. f: "requestPermissionIfNecessary|reward|fullscreen|dialog|banner",
  1528. e: 1
  1529. }, {
  1530. i: 96,
  1531. n: "yxIm",
  1532. f: "init|login|logout|info|setCallkitUserNickname|setCallkitUserAvatar|setUserInfo|setGlobalOptions|getGlobalOptions|navigate",
  1533. e: 1
  1534. }, {
  1535. i: 97,
  1536. n: "gid",
  1537. f: "signIn|signIn2|signOut|googlePlayServicesAvailable"
  1538. }, {
  1539. i: 98,
  1540. n: "yxRtc",
  1541. f: "init|login|logout|info|setCallkitUserNickname|setCallkitUserAvatar|singleCall",
  1542. e: 1
  1543. }, {
  1544. i: 99,
  1545. n: "dy",
  1546. f: "initSdk|isAppInstalled|authorize|share|shareToContacts|openRecordPage"
  1547. }, {
  1548. i: 100,
  1549. n: "wallpaper",
  1550. f: "info|clear|setWallpaper"
  1551. }, {
  1552. i: 101,
  1553. n: "ewg",
  1554. f: "connect|disconnect|status|startCheck|stopCheck",
  1555. e: 1
  1556. }, {
  1557. i: 102,
  1558. n: "msa",
  1559. f: "request"
  1560. }, {
  1561. i: 103,
  1562. n: "battery",
  1563. f: "status",
  1564. e: 1
  1565. }, {
  1566. i: 104,
  1567. n: "imei",
  1568. f: "request"
  1569. }, {
  1570. i: 105,
  1571. n: "emulator",
  1572. f: "check"
  1573. }, {
  1574. i: 106,
  1575. n: "tobid",
  1576. f: "requestPermissionIfNecessary|reward|interstitial|banner",
  1577. e: 1
  1578. }, {
  1579. i: 107,
  1580. n: "hj",
  1581. f: "requestPermissionIfNecessary|reward|interstitial|banner",
  1582. e: 1
  1583. }, {
  1584. i: 108,
  1585. n: "audio",
  1586. f: "getVolume|setVolume"
  1587. }, {
  1588. i: 109,
  1589. n: "screen",
  1590. f: "getBrightness|setBrightness"
  1591. }, {
  1592. i: 110,
  1593. n: "usb",
  1594. f: "devices|serialPorts|openSerialPort|closeSerialPort|writeSerialPort|readSerialPort|breakSerialPort",
  1595. e: 1
  1596. }, {
  1597. i: 111,
  1598. n: "topOn",
  1599. f: "reward|interstitial|banner",
  1600. e: 1
  1601. }, {
  1602. i: "t",
  1603. n: "bdocr",
  1604. f: "general|generalBasic|accurate|accurateBasic|generalEnhanced|webImage|idCardFront|idCardFrontAuto|idCardBack|idCardBackAuto|bankCard|vehicleLicense|drivingLicense|licensePlate|businessLicense|receipt|passport|vatInvoice|qrcode|numbers|lottery|businessCard|handWriting|custom",
  1605. j: 3
  1606. }, {
  1607. i: "zq",
  1608. n: "zqprinter",
  1609. f: "SDK_Version|Prn_GetPortList|Prn_Connect|Prn_Disconnect|Prn_PrinterInit|Prn_Status|Prn_PowerStatus|Prn_PrintText|Prn_PrintEscText|Prn_PrintString|Prn_PrintBarcode|Prn_PrintQRCode|Prn_PrintBitmap|Prn_PrintBmp|Prn_CutPaper|Prn_OpenCashbox|Prn_LineFeed|Prn_MarkFeed|Prn_SetCharacterSet|Prn_SetInterCharacterSet|Prn_SetLineSpacing|Prn_SetFontStyle|Prn_SetFontSize|Prn_SetAlignment|Prn_SendData|Prn_ReadData|Prn_BeginTransaction|Prn_EndTransaction|Prn_GetMsrTrack",
  1610. j: 2
  1611. }], m = function(e, n, t) {
  1612. Object.defineProperty(e, n, {
  1613. configurable: !1,
  1614. writable: !1,
  1615. value: t
  1616. })
  1617. }, v = function(e, n) {
  1618. for (var t = n.f.split("|"), i = 0, a = t.length; i < a; i++) {
  1619. var f = t[i];
  1620. f && m(e, f, function(e, n) {
  1621. var t = (e.i ? e.i + "." : "") + n;
  1622. return function(n, i) {
  1623. var a = "function" == typeof n;
  1624. return (1 == e.j ? o : 2 == e.j ? r : 3 == e.j ? u : 4 == e.j ? s : c)(t,
  1625. a ? {} : n, a ? n : i)
  1626. }
  1627. }(n, f))
  1628. }
  1629. if ("object" == typeof n.o)
  1630. for (var l in n.o) m(e, l, n.o[l])
  1631. }, h = 0, y = g.length; h < y; h++) {
  1632. var b = g[h];
  1633. b.n ? t[b.n] ? v(t[b.n], b) : m(t, b.n, function() {
  1634. var e, n = {};
  1635. return v(n, b), b.e && (m(n, "setListener", (e = b.i, function(n) {
  1636. return o(e + ".setListener", {}, function(e, t) {
  1637. if (n && t) {
  1638. var i = JSON.parse(t);
  1639. return n(i.event, i.data)
  1640. }
  1641. })
  1642. })), m(n, "removeListener", function(e) {
  1643. return function() {
  1644. return o(e + ".removeListener")
  1645. }
  1646. }(b.i))), n
  1647. }()) : v(t, b)
  1648. }
  1649. var P = /LT-APP\/(\d+)/,
  1650. S = navigator ? navigator.userAgent : "",
  1651. w = P.test(S);
  1652. if (!w) {
  1653. var I = e.WebViewJavascriptBridgeInterface;
  1654. w = !!I, I && I.ltApp && (S += I.ltApp())
  1655. }
  1656. Object.defineProperty(t, "inApp", {
  1657. configurable: !1,
  1658. writable: !1,
  1659. value: w
  1660. }), Object.defineProperty(t, "version", {
  1661. configurable: !1,
  1662. writable: !1,
  1663. value: P.test(S) ? parseInt(P.exec(S)[1]) : 0
  1664. });
  1665. var A = /LT-APP\/(\d+)\/(\d+)/;
  1666. Object.defineProperty(t, "appVersion", {
  1667. configurable: !1,
  1668. writable: !1,
  1669. value: A.test(S) ? parseInt(A.exec(S)[2]) : 0
  1670. }), Object.defineProperty(t, "ios", {
  1671. configurable: !1,
  1672. writable: !1,
  1673. value: /(iPhone|iPad|iPod|iOS)/i.test(S) || navigator && "MacIntel" == navigator.platform &&
  1674. navigator.maxTouchPoints > 0
  1675. });
  1676. var C = /YM-RT/.test(S);
  1677. return Object.defineProperty(t, "isRoot", {
  1678. configurable: !1,
  1679. get: function() {
  1680. return C
  1681. }
  1682. }), t.inApp && t.ready(function() {
  1683. t.version > 35 && t.version < 41 && s("_isRoot", {}, function(e) {
  1684. C = e
  1685. })
  1686. }), t
  1687. });