vendors-node_modules_taro_weapp_prebundle_chunk-77KB62LY_js.js 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304
  1. "use strict";
  2. (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_chunk-77KB62LY_js"],{
  3. /***/ "./node_modules/.taro/weapp/prebundle/chunk-77KB62LY.js":
  4. /*!**************************************************************!*\
  5. !*** ./node_modules/.taro/weapp/prebundle/chunk-77KB62LY.js ***!
  6. \**************************************************************/
  7. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  8. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  9. /* harmony export */ EMPTY_OBJ: function() { return /* binding */ EMPTY_OBJ; },
  10. /* harmony export */ Events: function() { return /* binding */ Events; },
  11. /* harmony export */ capitalize: function() { return /* binding */ capitalize; },
  12. /* harmony export */ controlledComponent: function() { return /* binding */ controlledComponent; },
  13. /* harmony export */ ensure: function() { return /* binding */ ensure; },
  14. /* harmony export */ getComponentsAlias: function() { return /* binding */ getComponentsAlias; },
  15. /* harmony export */ hooks: function() { return /* binding */ hooks; },
  16. /* harmony export */ init_shared_esm: function() { return /* binding */ init_shared_esm; },
  17. /* harmony export */ internalComponents: function() { return /* binding */ internalComponents; },
  18. /* harmony export */ isArray: function() { return /* binding */ isArray; },
  19. /* harmony export */ isBoolean: function() { return /* binding */ isBoolean; },
  20. /* harmony export */ isFunction: function() { return /* binding */ isFunction; },
  21. /* harmony export */ isNull: function() { return /* binding */ isNull; },
  22. /* harmony export */ isNumber: function() { return /* binding */ isNumber; },
  23. /* harmony export */ isObject: function() { return /* binding */ isObject; },
  24. /* harmony export */ isString: function() { return /* binding */ isString; },
  25. /* harmony export */ isUndefined: function() { return /* binding */ isUndefined; },
  26. /* harmony export */ isWebPlatform: function() { return /* binding */ isWebPlatform; },
  27. /* harmony export */ mergeInternalComponents: function() { return /* binding */ mergeInternalComponents; },
  28. /* harmony export */ mergeReconciler: function() { return /* binding */ mergeReconciler; },
  29. /* harmony export */ noop: function() { return /* binding */ noop; },
  30. /* harmony export */ processApis: function() { return /* binding */ processApis; },
  31. /* harmony export */ toCamelCase: function() { return /* binding */ toCamelCase; },
  32. /* harmony export */ toDashed: function() { return /* binding */ toDashed; },
  33. /* harmony export */ warn: function() { return /* binding */ warn; }
  34. /* harmony export */ });
  35. /* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
  36. // node_modules/@tarojs/shared/dist/shared.esm.js
  37. function singleQuote(s) {
  38. return `'${s}'`;
  39. }
  40. function isString(o) {
  41. return typeof o === "string";
  42. }
  43. function isUndefined(o) {
  44. return typeof o === "undefined";
  45. }
  46. function isNull(o) {
  47. return o === null;
  48. }
  49. function isObject(o) {
  50. return o !== null && typeof o === "object";
  51. }
  52. function isBoolean(o) {
  53. return o === true || o === false;
  54. }
  55. function isFunction(o) {
  56. return typeof o === "function";
  57. }
  58. function isNumber(o) {
  59. return typeof o === "number";
  60. }
  61. function TaroHook(type, initial) {
  62. return {
  63. type,
  64. initial: initial || null
  65. };
  66. }
  67. function toDashed(s) {
  68. return s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
  69. }
  70. function toCamelCase(s) {
  71. let camel = "";
  72. let nextCap = false;
  73. for(let i = 0; i < s.length; i++){
  74. if (s[i] !== "-") {
  75. camel += nextCap ? s[i].toUpperCase() : s[i];
  76. nextCap = false;
  77. } else {
  78. nextCap = true;
  79. }
  80. }
  81. return camel;
  82. }
  83. function capitalize(s) {
  84. return s.charAt(0).toUpperCase() + s.slice(1);
  85. }
  86. function ensure(condition, msg) {
  87. if (!condition) {
  88. if (true) {
  89. const reportIssue = "\n\u5982\u6709\u7591\u95EE\uFF0C\u8BF7\u63D0\u4EA4 issue \u81F3\uFF1Ahttps://github.com/nervjs/taro/issues";
  90. throw new Error(msg + reportIssue);
  91. } else {}
  92. }
  93. }
  94. function warn(condition, msg) {
  95. if (true) {
  96. if (condition) {
  97. console.warn(`[taro warn] ${msg}`);
  98. }
  99. }
  100. }
  101. function getUniqueKey() {
  102. return _loadTime + _uniqueId++;
  103. }
  104. function mergeInternalComponents(components) {
  105. Object.keys(components).forEach((name)=>{
  106. if (name in internalComponents) {
  107. Object.assign(internalComponents[name], components[name]);
  108. } else {
  109. internalComponents[name] = components[name];
  110. }
  111. });
  112. return internalComponents;
  113. }
  114. function getComponentsAlias(origin) {
  115. const mapping = {};
  116. const viewAttrs = origin.View;
  117. const extraList = {
  118. "#text": {},
  119. StaticView: viewAttrs,
  120. StaticImage: origin.Image,
  121. StaticText: origin.Text,
  122. PureView: viewAttrs,
  123. CatchView: viewAttrs
  124. };
  125. origin = Object.assign(Object.assign({}, origin), extraList);
  126. Object.keys(origin).sort((a, b)=>{
  127. const reg = /^(Static|Pure|Catch)*(View|Image|Text)$/;
  128. const isACommonly = reg.test(a);
  129. const isBCommonly = reg.test(b);
  130. if (isACommonly && isBCommonly) {
  131. return a > b ? 1 : -1;
  132. } else if (isACommonly) {
  133. return -1;
  134. } else if (isBCommonly) {
  135. return 1;
  136. } else {
  137. return a >= b ? 1 : -1;
  138. }
  139. }).forEach((key, num)=>{
  140. const obj = {
  141. _num: String(num)
  142. };
  143. Object.keys(origin[key]).filter((attr)=>!/^bind/.test(attr) && ![
  144. "focus",
  145. "blur"
  146. ].includes(attr)).sort().forEach((attr, index)=>{
  147. obj[toCamelCase(attr)] = "p" + index;
  148. });
  149. mapping[toDashed(key)] = obj;
  150. });
  151. return mapping;
  152. }
  153. function mergeReconciler(hostConfig, hooksForTest) {
  154. const obj = hooksForTest || hooks;
  155. const keys = Object.keys(hostConfig);
  156. keys.forEach((key)=>{
  157. obj.tap(key, hostConfig[key]);
  158. });
  159. }
  160. function nonsupport(api) {
  161. return function() {
  162. console.warn(`\u5C0F\u7A0B\u5E8F\u6682\u4E0D\u652F\u6301 ${api}`);
  163. };
  164. }
  165. function setUniqueKeyToRoute(key, obj) {
  166. const routerParamsPrivateKey = "__key_";
  167. const useDataCacheApis = [
  168. "navigateTo",
  169. "redirectTo",
  170. "reLaunch",
  171. "switchTab"
  172. ];
  173. if (useDataCacheApis.indexOf(key) > -1) {
  174. const url = obj.url = obj.url || "";
  175. const hasMark = url.indexOf("?") > -1;
  176. const cacheKey = getUniqueKey();
  177. obj.url += (hasMark ? "&" : "?") + `${routerParamsPrivateKey}=${cacheKey}`;
  178. }
  179. }
  180. function getCanIUseWebp(taro) {
  181. return function() {
  182. var _a;
  183. const res = (_a = taro.getSystemInfoSync) === null || _a === void 0 ? void 0 : _a.call(taro);
  184. if (!res) {
  185. if (true) {
  186. console.error("\u4E0D\u652F\u6301 API canIUseWebp");
  187. }
  188. return false;
  189. }
  190. const { platform } = res;
  191. const platformLower = platform.toLowerCase();
  192. if (platformLower === "android" || platformLower === "devtools") {
  193. return true;
  194. }
  195. return false;
  196. };
  197. }
  198. function getNormalRequest(global) {
  199. return function request(options) {
  200. options = options ? isString(options) ? {
  201. url: options
  202. } : options : {};
  203. const originSuccess = options.success;
  204. const originFail = options.fail;
  205. const originComplete = options.complete;
  206. let requestTask;
  207. const p = new Promise((resolve, reject)=>{
  208. options.success = (res)=>{
  209. originSuccess && originSuccess(res);
  210. resolve(res);
  211. };
  212. options.fail = (res)=>{
  213. originFail && originFail(res);
  214. reject(res);
  215. };
  216. options.complete = (res)=>{
  217. originComplete && originComplete(res);
  218. };
  219. requestTask = global.request(options);
  220. });
  221. equipTaskMethodsIntoPromise(requestTask, p);
  222. p.abort = (cb)=>{
  223. cb && cb();
  224. if (requestTask) {
  225. requestTask.abort();
  226. }
  227. return p;
  228. };
  229. return p;
  230. };
  231. }
  232. function processApis(taro, global, config = {}) {
  233. const patchNeedPromiseApis = config.needPromiseApis || [];
  234. const _needPromiseApis = /* @__PURE__ */ new Set([
  235. ...patchNeedPromiseApis,
  236. ...needPromiseApis
  237. ]);
  238. const preserved = [
  239. "getEnv",
  240. "interceptors",
  241. "Current",
  242. "getCurrentInstance",
  243. "options",
  244. "nextTick",
  245. "eventCenter",
  246. "Events",
  247. "preload",
  248. "webpackJsonp"
  249. ];
  250. const apis = new Set(!config.isOnlyPromisify ? Object.keys(global).filter((api)=>preserved.indexOf(api) === -1) : patchNeedPromiseApis);
  251. if (config.modifyApis) {
  252. config.modifyApis(apis);
  253. }
  254. apis.forEach((key)=>{
  255. if (_needPromiseApis.has(key)) {
  256. const originKey = key;
  257. taro[originKey] = (options = {}, ...args)=>{
  258. let key2 = originKey;
  259. if (typeof options === "string") {
  260. if (args.length) {
  261. return global[key2](options, ...args);
  262. }
  263. return global[key2](options);
  264. }
  265. if (config.transformMeta) {
  266. const transformResult = config.transformMeta(key2, options);
  267. key2 = transformResult.key;
  268. options = transformResult.options;
  269. if (!global.hasOwnProperty(key2)) {
  270. return nonsupport(key2)();
  271. }
  272. }
  273. let task = null;
  274. const obj = Object.assign({}, options);
  275. setUniqueKeyToRoute(key2, options);
  276. const p = new Promise((resolve, reject)=>{
  277. obj.success = (res)=>{
  278. var _a, _b;
  279. (_a = config.modifyAsyncResult) === null || _a === void 0 ? void 0 : _a.call(config, key2, res);
  280. (_b = options.success) === null || _b === void 0 ? void 0 : _b.call(options, res);
  281. if (key2 === "connectSocket") {
  282. resolve(Promise.resolve().then(()=>task ? Object.assign(task, res) : res));
  283. } else {
  284. resolve(res);
  285. }
  286. };
  287. obj.fail = (res)=>{
  288. var _a;
  289. (_a = options.fail) === null || _a === void 0 ? void 0 : _a.call(options, res);
  290. reject(res);
  291. };
  292. obj.complete = (res)=>{
  293. var _a;
  294. (_a = options.complete) === null || _a === void 0 ? void 0 : _a.call(options, res);
  295. };
  296. if (args.length) {
  297. task = global[key2](obj, ...args);
  298. } else {
  299. task = global[key2](obj);
  300. }
  301. });
  302. if ([
  303. "uploadFile",
  304. "downloadFile"
  305. ].includes(key2)) {
  306. equipTaskMethodsIntoPromise(task, p);
  307. p.progress = (cb)=>{
  308. task === null || task === void 0 ? void 0 : task.onProgressUpdate(cb);
  309. return p;
  310. };
  311. p.abort = (cb)=>{
  312. cb === null || cb === void 0 ? void 0 : cb();
  313. task === null || task === void 0 ? void 0 : task.abort();
  314. return p;
  315. };
  316. }
  317. return p;
  318. };
  319. } else {
  320. let platformKey = key;
  321. if (config.transformMeta) {
  322. platformKey = config.transformMeta(key, {}).key;
  323. }
  324. if (!global.hasOwnProperty(platformKey)) {
  325. taro[key] = nonsupport(key);
  326. return;
  327. }
  328. if (isFunction(global[key])) {
  329. taro[key] = (...args)=>{
  330. if (config.handleSyncApis) {
  331. return config.handleSyncApis(key, global, args);
  332. } else {
  333. return global[platformKey].apply(global, args);
  334. }
  335. };
  336. } else {
  337. taro[key] = global[platformKey];
  338. }
  339. }
  340. });
  341. !config.isOnlyPromisify && equipCommonApis(taro, global, config);
  342. }
  343. function equipCommonApis(taro, global, apis = {}) {
  344. taro.canIUseWebp = getCanIUseWebp(taro);
  345. taro.getCurrentPages = getCurrentPages || nonsupport("getCurrentPages");
  346. taro.getApp = getApp || nonsupport("getApp");
  347. taro.env = global.env || {};
  348. try {
  349. taro.requirePlugin = requirePlugin || nonsupport("requirePlugin");
  350. } catch (error) {
  351. taro.requirePlugin = nonsupport("requirePlugin");
  352. }
  353. const request = apis.request || getNormalRequest(global);
  354. function taroInterceptor(chain) {
  355. return request(chain.requestParams);
  356. }
  357. const link = new taro.Link(taroInterceptor);
  358. taro.request = link.request.bind(link);
  359. taro.addInterceptor = link.addInterceptor.bind(link);
  360. taro.cleanInterceptors = link.cleanInterceptors.bind(link);
  361. taro.miniGlobal = taro.options.miniGlobal = global;
  362. taro.getAppInfo = function() {
  363. return {
  364. platform: "mini",
  365. taroVersion: "3.6.16",
  366. designWidth: taro.config.designWidth
  367. };
  368. };
  369. taro.createSelectorQuery = delayRef(taro, global, "createSelectorQuery", "exec");
  370. taro.createIntersectionObserver = delayRef(taro, global, "createIntersectionObserver", "observe");
  371. }
  372. function equipTaskMethodsIntoPromise(task, promise) {
  373. if (!task || !promise) return;
  374. const taskMethods = [
  375. "abort",
  376. "onHeadersReceived",
  377. "offHeadersReceived",
  378. "onProgressUpdate",
  379. "offProgressUpdate",
  380. "onChunkReceived",
  381. "offChunkReceived"
  382. ];
  383. task && taskMethods.forEach((method)=>{
  384. if (method in task) {
  385. promise[method] = task[method].bind(task);
  386. }
  387. });
  388. }
  389. function delayRef(taro, global, name, method) {
  390. return function() {
  391. const res = global[name]();
  392. const raw = res[method].bind(res);
  393. res[method] = function(...args) {
  394. taro.nextTick(()=>raw(...args));
  395. };
  396. return res;
  397. };
  398. }
  399. var DEFAULT_EMPTY_ARRAY, NO_DEFAULT_VALUE, DEFAULT_TRUE, DEFAULT_FALSE, touchEvents, animation, View, Icon, MapComp, Progress, RichText, Text, Button, Checkbox, CheckboxGroup, Form, Input, Label, Picker, PickerView, PickerViewColumn, Radio, RadioGroup, Slider, Switch, Textarea, CoverImage, CoverView, MovableArea, MovableView, ScrollView, Swiper, SwiperItem, Navigator, Audio, Camera, Image, LivePlayer, Video, Canvas, Ad, WebView, Block, SlotView, Slot, NativeSlot, internalComponents, controlledComponent, PLATFORM_TYPE, PLATFORM_CONFIG_MAP, Events, isArray, isWebPlatform, HOOK_TYPE, defaultMiniLifecycle, TaroHooks, hooks, EMPTY_OBJ, noop, _uniqueId, _loadTime, needPromiseApis;
  400. var init_shared_esm = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__.__esm)({
  401. "node_modules/@tarojs/shared/dist/shared.esm.js" () {
  402. DEFAULT_EMPTY_ARRAY = "[]";
  403. NO_DEFAULT_VALUE = "";
  404. DEFAULT_TRUE = "!0";
  405. DEFAULT_FALSE = "!1";
  406. touchEvents = {
  407. bindTouchStart: NO_DEFAULT_VALUE,
  408. bindTouchMove: NO_DEFAULT_VALUE,
  409. bindTouchEnd: NO_DEFAULT_VALUE,
  410. bindTouchCancel: NO_DEFAULT_VALUE,
  411. bindLongTap: NO_DEFAULT_VALUE
  412. };
  413. animation = {
  414. animation: NO_DEFAULT_VALUE,
  415. bindAnimationStart: NO_DEFAULT_VALUE,
  416. bindAnimationIteration: NO_DEFAULT_VALUE,
  417. bindAnimationEnd: NO_DEFAULT_VALUE,
  418. bindTransitionEnd: NO_DEFAULT_VALUE
  419. };
  420. View = Object.assign(Object.assign({
  421. "hover-class": singleQuote("none"),
  422. "hover-stop-propagation": DEFAULT_FALSE,
  423. "hover-start-time": "50",
  424. "hover-stay-time": "400"
  425. }, touchEvents), animation);
  426. Icon = {
  427. type: NO_DEFAULT_VALUE,
  428. size: "23",
  429. color: NO_DEFAULT_VALUE
  430. };
  431. MapComp = Object.assign({
  432. longitude: NO_DEFAULT_VALUE,
  433. latitude: NO_DEFAULT_VALUE,
  434. scale: "16",
  435. markers: DEFAULT_EMPTY_ARRAY,
  436. covers: NO_DEFAULT_VALUE,
  437. polyline: DEFAULT_EMPTY_ARRAY,
  438. circles: DEFAULT_EMPTY_ARRAY,
  439. controls: DEFAULT_EMPTY_ARRAY,
  440. "include-points": DEFAULT_EMPTY_ARRAY,
  441. "show-location": NO_DEFAULT_VALUE,
  442. "layer-style": "1",
  443. bindMarkerTap: NO_DEFAULT_VALUE,
  444. bindControlTap: NO_DEFAULT_VALUE,
  445. bindCalloutTap: NO_DEFAULT_VALUE,
  446. bindUpdated: NO_DEFAULT_VALUE
  447. }, touchEvents);
  448. Progress = {
  449. percent: NO_DEFAULT_VALUE,
  450. "stroke-width": "6",
  451. color: singleQuote("#09BB07"),
  452. activeColor: singleQuote("#09BB07"),
  453. backgroundColor: singleQuote("#EBEBEB"),
  454. active: DEFAULT_FALSE,
  455. "active-mode": singleQuote("backwards"),
  456. "show-info": DEFAULT_FALSE
  457. };
  458. RichText = {
  459. nodes: DEFAULT_EMPTY_ARRAY
  460. };
  461. Text = {
  462. selectable: DEFAULT_FALSE,
  463. space: NO_DEFAULT_VALUE,
  464. decode: DEFAULT_FALSE
  465. };
  466. Button = Object.assign({
  467. size: singleQuote("default"),
  468. type: NO_DEFAULT_VALUE,
  469. plain: DEFAULT_FALSE,
  470. disabled: NO_DEFAULT_VALUE,
  471. loading: DEFAULT_FALSE,
  472. "form-type": NO_DEFAULT_VALUE,
  473. "open-type": NO_DEFAULT_VALUE,
  474. "hover-class": singleQuote("button-hover"),
  475. "hover-stop-propagation": DEFAULT_FALSE,
  476. "hover-start-time": "20",
  477. "hover-stay-time": "70",
  478. name: NO_DEFAULT_VALUE,
  479. bindagreeprivacyauthorization: NO_DEFAULT_VALUE
  480. }, touchEvents);
  481. Checkbox = {
  482. value: NO_DEFAULT_VALUE,
  483. disabled: NO_DEFAULT_VALUE,
  484. checked: DEFAULT_FALSE,
  485. color: singleQuote("#09BB07"),
  486. name: NO_DEFAULT_VALUE
  487. };
  488. CheckboxGroup = {
  489. bindChange: NO_DEFAULT_VALUE,
  490. name: NO_DEFAULT_VALUE
  491. };
  492. Form = {
  493. "report-submit": DEFAULT_FALSE,
  494. bindSubmit: NO_DEFAULT_VALUE,
  495. bindReset: NO_DEFAULT_VALUE,
  496. name: NO_DEFAULT_VALUE
  497. };
  498. Input = {
  499. value: NO_DEFAULT_VALUE,
  500. type: singleQuote(NO_DEFAULT_VALUE),
  501. password: DEFAULT_FALSE,
  502. placeholder: NO_DEFAULT_VALUE,
  503. "placeholder-style": NO_DEFAULT_VALUE,
  504. "placeholder-class": singleQuote("input-placeholder"),
  505. disabled: NO_DEFAULT_VALUE,
  506. maxlength: "140",
  507. "cursor-spacing": "0",
  508. focus: DEFAULT_FALSE,
  509. "confirm-type": singleQuote("done"),
  510. "confirm-hold": DEFAULT_FALSE,
  511. cursor: "-1",
  512. "selection-start": "-1",
  513. "selection-end": "-1",
  514. bindInput: NO_DEFAULT_VALUE,
  515. bindFocus: NO_DEFAULT_VALUE,
  516. bindBlur: NO_DEFAULT_VALUE,
  517. bindConfirm: NO_DEFAULT_VALUE,
  518. name: NO_DEFAULT_VALUE
  519. };
  520. Label = {
  521. for: NO_DEFAULT_VALUE,
  522. name: NO_DEFAULT_VALUE
  523. };
  524. Picker = {
  525. mode: singleQuote("selector"),
  526. disabled: NO_DEFAULT_VALUE,
  527. range: NO_DEFAULT_VALUE,
  528. "range-key": NO_DEFAULT_VALUE,
  529. value: NO_DEFAULT_VALUE,
  530. start: NO_DEFAULT_VALUE,
  531. end: NO_DEFAULT_VALUE,
  532. fields: singleQuote("day"),
  533. "custom-item": NO_DEFAULT_VALUE,
  534. name: NO_DEFAULT_VALUE,
  535. bindCancel: NO_DEFAULT_VALUE,
  536. bindChange: NO_DEFAULT_VALUE,
  537. bindColumnChange: NO_DEFAULT_VALUE
  538. };
  539. PickerView = {
  540. value: NO_DEFAULT_VALUE,
  541. "indicator-style": NO_DEFAULT_VALUE,
  542. "indicator-class": NO_DEFAULT_VALUE,
  543. "mask-style": NO_DEFAULT_VALUE,
  544. "mask-class": NO_DEFAULT_VALUE,
  545. bindChange: NO_DEFAULT_VALUE,
  546. name: NO_DEFAULT_VALUE
  547. };
  548. PickerViewColumn = {
  549. name: NO_DEFAULT_VALUE
  550. };
  551. Radio = {
  552. value: NO_DEFAULT_VALUE,
  553. checked: DEFAULT_FALSE,
  554. disabled: NO_DEFAULT_VALUE,
  555. color: singleQuote("#09BB07"),
  556. name: NO_DEFAULT_VALUE
  557. };
  558. RadioGroup = {
  559. bindChange: NO_DEFAULT_VALUE,
  560. name: NO_DEFAULT_VALUE
  561. };
  562. Slider = {
  563. min: "0",
  564. max: "100",
  565. step: "1",
  566. disabled: NO_DEFAULT_VALUE,
  567. value: "0",
  568. activeColor: singleQuote("#1aad19"),
  569. backgroundColor: singleQuote("#e9e9e9"),
  570. "block-size": "28",
  571. "block-color": singleQuote("#ffffff"),
  572. "show-value": DEFAULT_FALSE,
  573. bindChange: NO_DEFAULT_VALUE,
  574. bindChanging: NO_DEFAULT_VALUE,
  575. name: NO_DEFAULT_VALUE
  576. };
  577. Switch = {
  578. checked: DEFAULT_FALSE,
  579. disabled: NO_DEFAULT_VALUE,
  580. type: singleQuote("switch"),
  581. color: singleQuote("#04BE02"),
  582. bindChange: NO_DEFAULT_VALUE,
  583. name: NO_DEFAULT_VALUE
  584. };
  585. Textarea = {
  586. value: NO_DEFAULT_VALUE,
  587. placeholder: NO_DEFAULT_VALUE,
  588. "placeholder-style": NO_DEFAULT_VALUE,
  589. "placeholder-class": singleQuote("textarea-placeholder"),
  590. disabled: NO_DEFAULT_VALUE,
  591. maxlength: "140",
  592. "auto-focus": DEFAULT_FALSE,
  593. focus: DEFAULT_FALSE,
  594. "auto-height": DEFAULT_FALSE,
  595. fixed: DEFAULT_FALSE,
  596. "cursor-spacing": "0",
  597. cursor: "-1",
  598. "selection-start": "-1",
  599. "selection-end": "-1",
  600. bindFocus: NO_DEFAULT_VALUE,
  601. bindBlur: NO_DEFAULT_VALUE,
  602. bindLineChange: NO_DEFAULT_VALUE,
  603. bindInput: NO_DEFAULT_VALUE,
  604. bindConfirm: NO_DEFAULT_VALUE,
  605. name: NO_DEFAULT_VALUE
  606. };
  607. CoverImage = {
  608. src: NO_DEFAULT_VALUE,
  609. bindLoad: "eh",
  610. bindError: "eh"
  611. };
  612. CoverView = Object.assign({
  613. "scroll-top": DEFAULT_FALSE
  614. }, touchEvents);
  615. MovableArea = {
  616. "scale-area": DEFAULT_FALSE
  617. };
  618. MovableView = Object.assign(Object.assign({
  619. direction: "none",
  620. inertia: DEFAULT_FALSE,
  621. "out-of-bounds": DEFAULT_FALSE,
  622. x: NO_DEFAULT_VALUE,
  623. y: NO_DEFAULT_VALUE,
  624. damping: "20",
  625. friction: "2",
  626. disabled: NO_DEFAULT_VALUE,
  627. scale: DEFAULT_FALSE,
  628. "scale-min": "0.5",
  629. "scale-max": "10",
  630. "scale-value": "1",
  631. bindChange: NO_DEFAULT_VALUE,
  632. bindScale: NO_DEFAULT_VALUE,
  633. bindHTouchMove: NO_DEFAULT_VALUE,
  634. bindVTouchMove: NO_DEFAULT_VALUE,
  635. width: singleQuote("10px"),
  636. height: singleQuote("10px")
  637. }, touchEvents), animation);
  638. ScrollView = Object.assign(Object.assign({
  639. "scroll-x": DEFAULT_FALSE,
  640. "scroll-y": DEFAULT_FALSE,
  641. "upper-threshold": "50",
  642. "lower-threshold": "50",
  643. "scroll-top": NO_DEFAULT_VALUE,
  644. "scroll-left": NO_DEFAULT_VALUE,
  645. "scroll-into-view": NO_DEFAULT_VALUE,
  646. "scroll-with-animation": DEFAULT_FALSE,
  647. "enable-back-to-top": DEFAULT_FALSE,
  648. bindScrollToUpper: NO_DEFAULT_VALUE,
  649. bindScrollToLower: NO_DEFAULT_VALUE,
  650. bindScroll: NO_DEFAULT_VALUE
  651. }, touchEvents), animation);
  652. Swiper = Object.assign({
  653. "indicator-dots": DEFAULT_FALSE,
  654. "indicator-color": singleQuote("rgba(0, 0, 0, .3)"),
  655. "indicator-active-color": singleQuote("#000000"),
  656. autoplay: DEFAULT_FALSE,
  657. current: "0",
  658. interval: "5000",
  659. duration: "500",
  660. circular: DEFAULT_FALSE,
  661. vertical: DEFAULT_FALSE,
  662. "previous-margin": singleQuote("0px"),
  663. "next-margin": singleQuote("0px"),
  664. "display-multiple-items": "1",
  665. bindChange: NO_DEFAULT_VALUE,
  666. bindTransition: NO_DEFAULT_VALUE,
  667. bindAnimationFinish: NO_DEFAULT_VALUE
  668. }, touchEvents);
  669. SwiperItem = {
  670. "item-id": NO_DEFAULT_VALUE
  671. };
  672. Navigator = {
  673. url: NO_DEFAULT_VALUE,
  674. "open-type": singleQuote("navigate"),
  675. delta: "1",
  676. "hover-class": singleQuote("navigator-hover"),
  677. "hover-stop-propagation": DEFAULT_FALSE,
  678. "hover-start-time": "50",
  679. "hover-stay-time": "600",
  680. bindSuccess: NO_DEFAULT_VALUE,
  681. bindFail: NO_DEFAULT_VALUE,
  682. bindComplete: NO_DEFAULT_VALUE
  683. };
  684. Audio = {
  685. id: NO_DEFAULT_VALUE,
  686. src: NO_DEFAULT_VALUE,
  687. loop: DEFAULT_FALSE,
  688. controls: DEFAULT_FALSE,
  689. poster: NO_DEFAULT_VALUE,
  690. name: NO_DEFAULT_VALUE,
  691. author: NO_DEFAULT_VALUE,
  692. bindError: NO_DEFAULT_VALUE,
  693. bindPlay: NO_DEFAULT_VALUE,
  694. bindPause: NO_DEFAULT_VALUE,
  695. bindTimeUpdate: NO_DEFAULT_VALUE,
  696. bindEnded: NO_DEFAULT_VALUE
  697. };
  698. Camera = {
  699. "device-position": singleQuote("back"),
  700. flash: singleQuote("auto"),
  701. bindStop: NO_DEFAULT_VALUE,
  702. bindError: NO_DEFAULT_VALUE
  703. };
  704. Image = Object.assign({
  705. src: NO_DEFAULT_VALUE,
  706. mode: singleQuote("scaleToFill"),
  707. "lazy-load": DEFAULT_FALSE,
  708. bindError: NO_DEFAULT_VALUE,
  709. bindLoad: NO_DEFAULT_VALUE
  710. }, touchEvents);
  711. LivePlayer = Object.assign({
  712. src: NO_DEFAULT_VALUE,
  713. autoplay: DEFAULT_FALSE,
  714. muted: DEFAULT_FALSE,
  715. orientation: singleQuote("vertical"),
  716. "object-fit": singleQuote("contain"),
  717. "background-mute": DEFAULT_FALSE,
  718. "min-cache": "1",
  719. "max-cache": "3",
  720. bindStateChange: NO_DEFAULT_VALUE,
  721. bindFullScreenChange: NO_DEFAULT_VALUE,
  722. bindNetStatus: NO_DEFAULT_VALUE
  723. }, animation);
  724. Video = Object.assign({
  725. src: NO_DEFAULT_VALUE,
  726. duration: NO_DEFAULT_VALUE,
  727. controls: DEFAULT_TRUE,
  728. "danmu-list": NO_DEFAULT_VALUE,
  729. "danmu-btn": NO_DEFAULT_VALUE,
  730. "enable-danmu": NO_DEFAULT_VALUE,
  731. autoplay: DEFAULT_FALSE,
  732. loop: DEFAULT_FALSE,
  733. muted: DEFAULT_FALSE,
  734. "initial-time": "0",
  735. "page-gesture": DEFAULT_FALSE,
  736. direction: NO_DEFAULT_VALUE,
  737. "show-progress": DEFAULT_TRUE,
  738. "show-fullscreen-btn": DEFAULT_TRUE,
  739. "show-play-btn": DEFAULT_TRUE,
  740. "show-center-play-btn": DEFAULT_TRUE,
  741. "enable-progress-gesture": DEFAULT_TRUE,
  742. "object-fit": singleQuote("contain"),
  743. poster: NO_DEFAULT_VALUE,
  744. "show-mute-btn": DEFAULT_FALSE,
  745. bindPlay: NO_DEFAULT_VALUE,
  746. bindPause: NO_DEFAULT_VALUE,
  747. bindEnded: NO_DEFAULT_VALUE,
  748. bindTimeUpdate: NO_DEFAULT_VALUE,
  749. bindFullScreenChange: NO_DEFAULT_VALUE,
  750. bindWaiting: NO_DEFAULT_VALUE,
  751. bindError: NO_DEFAULT_VALUE
  752. }, animation);
  753. Canvas = Object.assign({
  754. "canvas-id": NO_DEFAULT_VALUE,
  755. "disable-scroll": DEFAULT_FALSE,
  756. bindError: NO_DEFAULT_VALUE
  757. }, touchEvents);
  758. Ad = {
  759. "unit-id": NO_DEFAULT_VALUE,
  760. "ad-intervals": NO_DEFAULT_VALUE,
  761. bindLoad: NO_DEFAULT_VALUE,
  762. bindError: NO_DEFAULT_VALUE,
  763. bindClose: NO_DEFAULT_VALUE
  764. };
  765. WebView = {
  766. src: NO_DEFAULT_VALUE,
  767. bindMessage: NO_DEFAULT_VALUE,
  768. bindLoad: NO_DEFAULT_VALUE,
  769. bindError: NO_DEFAULT_VALUE
  770. };
  771. Block = {};
  772. SlotView = {
  773. name: NO_DEFAULT_VALUE
  774. };
  775. Slot = {
  776. name: NO_DEFAULT_VALUE
  777. };
  778. NativeSlot = {
  779. name: NO_DEFAULT_VALUE
  780. };
  781. internalComponents = {
  782. View,
  783. Icon,
  784. Progress,
  785. RichText,
  786. Text,
  787. Button,
  788. Checkbox,
  789. CheckboxGroup,
  790. Form,
  791. Input,
  792. Label,
  793. Picker,
  794. PickerView,
  795. PickerViewColumn,
  796. Radio,
  797. RadioGroup,
  798. Slider,
  799. Switch,
  800. CoverImage,
  801. Textarea,
  802. CoverView,
  803. MovableArea,
  804. MovableView,
  805. ScrollView,
  806. Swiper,
  807. SwiperItem,
  808. Navigator,
  809. Audio,
  810. Camera,
  811. Image,
  812. LivePlayer,
  813. Video,
  814. Canvas,
  815. Ad,
  816. WebView,
  817. Block,
  818. Map: MapComp,
  819. Slot,
  820. SlotView,
  821. NativeSlot
  822. };
  823. controlledComponent = /* @__PURE__ */ new Set([
  824. "input",
  825. "checkbox",
  826. "picker",
  827. "picker-view",
  828. "radio",
  829. "slider",
  830. "switch",
  831. "textarea"
  832. ]);
  833. (function(PLATFORM_TYPE2) {
  834. PLATFORM_TYPE2["MINI"] = "mini";
  835. PLATFORM_TYPE2["WEB"] = "web";
  836. PLATFORM_TYPE2["RN"] = "rn";
  837. PLATFORM_TYPE2["HARMONY"] = "harmony";
  838. PLATFORM_TYPE2["QUICK"] = "quickapp";
  839. })(PLATFORM_TYPE || (PLATFORM_TYPE = {}));
  840. PLATFORM_CONFIG_MAP = {
  841. h5: {
  842. type: PLATFORM_TYPE.WEB
  843. },
  844. harmony: {
  845. type: PLATFORM_TYPE.HARMONY
  846. },
  847. mini: {
  848. type: PLATFORM_TYPE.MINI
  849. },
  850. rn: {
  851. type: PLATFORM_TYPE.RN
  852. },
  853. quickapp: {
  854. type: PLATFORM_TYPE.QUICK
  855. }
  856. };
  857. Events = class {
  858. on(eventName, callback, context) {
  859. let event, tail, _eventName;
  860. if (!callback) {
  861. return this;
  862. }
  863. if (typeof eventName === "symbol") {
  864. _eventName = [
  865. eventName
  866. ];
  867. } else {
  868. _eventName = eventName.split(Events.eventSplitter);
  869. }
  870. this.callbacks || (this.callbacks = {});
  871. const calls = this.callbacks;
  872. while(event = _eventName.shift()){
  873. const list = calls[event];
  874. const node = list ? list.tail : {};
  875. node.next = tail = {};
  876. node.context = context;
  877. node.callback = callback;
  878. calls[event] = {
  879. tail,
  880. next: list ? list.next : node
  881. };
  882. }
  883. return this;
  884. }
  885. once(events, callback, context) {
  886. const wrapper = (...args)=>{
  887. callback.apply(this, args);
  888. this.off(events, wrapper, context);
  889. };
  890. this.on(events, wrapper, context);
  891. return this;
  892. }
  893. off(events, callback, context) {
  894. let event, calls, _events;
  895. if (!(calls = this.callbacks)) {
  896. return this;
  897. }
  898. if (!(events || callback || context)) {
  899. delete this.callbacks;
  900. return this;
  901. }
  902. if (typeof events === "symbol") {
  903. _events = [
  904. events
  905. ];
  906. } else {
  907. _events = events ? events.split(Events.eventSplitter) : Object.keys(calls);
  908. }
  909. while(event = _events.shift()){
  910. let node = calls[event];
  911. delete calls[event];
  912. if (!node || !(callback || context)) {
  913. continue;
  914. }
  915. const tail = node.tail;
  916. while((node = node.next) !== tail){
  917. const cb = node.callback;
  918. const ctx = node.context;
  919. if (callback && cb !== callback || context && ctx !== context) {
  920. this.on(event, cb, ctx);
  921. }
  922. }
  923. }
  924. return this;
  925. }
  926. trigger(events, ...args) {
  927. let event, node, calls, _events;
  928. if (!(calls = this.callbacks)) {
  929. return this;
  930. }
  931. if (typeof events === "symbol") {
  932. _events = [
  933. events
  934. ];
  935. } else {
  936. _events = events.split(Events.eventSplitter);
  937. }
  938. while(event = _events.shift()){
  939. if (node = calls[event]) {
  940. const tail = node.tail;
  941. while((node = node.next) !== tail){
  942. node.callback.apply(node.context || this, args);
  943. }
  944. }
  945. }
  946. return this;
  947. }
  948. constructor(opts){
  949. var _a;
  950. this.callbacks = (_a = opts === null || opts === void 0 ? void 0 : opts.callbacks) !== null && _a !== void 0 ? _a : {};
  951. }
  952. };
  953. Events.eventSplitter = ",";
  954. isArray = Array.isArray;
  955. isWebPlatform = ()=>false;
  956. (function(HOOK_TYPE2) {
  957. HOOK_TYPE2[HOOK_TYPE2["SINGLE"] = 0] = "SINGLE";
  958. HOOK_TYPE2[HOOK_TYPE2["MULTI"] = 1] = "MULTI";
  959. HOOK_TYPE2[HOOK_TYPE2["WATERFALL"] = 2] = "WATERFALL";
  960. })(HOOK_TYPE || (HOOK_TYPE = {}));
  961. defaultMiniLifecycle = {
  962. app: [
  963. "onLaunch",
  964. "onShow",
  965. "onHide"
  966. ],
  967. page: [
  968. "onLoad",
  969. "onUnload",
  970. "onReady",
  971. "onShow",
  972. "onHide",
  973. [
  974. "onPullDownRefresh",
  975. "onReachBottom",
  976. "onPageScroll",
  977. "onResize",
  978. "defer:onTabItemTap",
  979. "onTitleClick",
  980. "onOptionMenuClick",
  981. "onPopMenuClick",
  982. "onPullIntercept",
  983. "onAddToFavorites"
  984. ],
  985. [
  986. "onShareAppMessage",
  987. "onShareTimeline"
  988. ]
  989. ],
  990. component: [
  991. "attached",
  992. "detached"
  993. ]
  994. };
  995. TaroHooks = class extends Events {
  996. tapOneOrMany(hookName, callback) {
  997. const list = isFunction(callback) ? [
  998. callback
  999. ] : callback;
  1000. list.forEach((cb)=>this.on(hookName, cb));
  1001. }
  1002. tap(hookName, callback) {
  1003. const hooks2 = this.hooks;
  1004. const { type , initial } = hooks2[hookName];
  1005. if (type === HOOK_TYPE.SINGLE) {
  1006. this.off(hookName);
  1007. this.on(hookName, isFunction(callback) ? callback : callback[callback.length - 1]);
  1008. } else {
  1009. initial && this.off(hookName, initial);
  1010. this.tapOneOrMany(hookName, callback);
  1011. }
  1012. }
  1013. call(hookName, ...rest) {
  1014. var _a;
  1015. const hook = this.hooks[hookName];
  1016. if (!hook) return;
  1017. const { type } = hook;
  1018. const calls = this.callbacks;
  1019. if (!calls) return;
  1020. const list = calls[hookName];
  1021. if (list) {
  1022. const tail = list.tail;
  1023. let node = list.next;
  1024. let args = rest;
  1025. let res;
  1026. while(node !== tail){
  1027. res = (_a = node.callback) === null || _a === void 0 ? void 0 : _a.apply(node.context || this, args);
  1028. if (type === HOOK_TYPE.WATERFALL) {
  1029. const params = [
  1030. res
  1031. ];
  1032. args = params;
  1033. }
  1034. node = node.next;
  1035. }
  1036. return res;
  1037. }
  1038. }
  1039. isExist(hookName) {
  1040. var _a;
  1041. return Boolean((_a = this.callbacks) === null || _a === void 0 ? void 0 : _a[hookName]);
  1042. }
  1043. constructor(hooks2, opts){
  1044. super(opts);
  1045. this.hooks = hooks2;
  1046. for(const hookName in hooks2){
  1047. const { initial } = hooks2[hookName];
  1048. if (isFunction(initial)) {
  1049. this.on(hookName, initial);
  1050. }
  1051. }
  1052. }
  1053. };
  1054. hooks = new TaroHooks({
  1055. getMiniLifecycle: TaroHook(HOOK_TYPE.SINGLE, (defaultConfig)=>defaultConfig),
  1056. getMiniLifecycleImpl: TaroHook(HOOK_TYPE.SINGLE, function() {
  1057. return this.call("getMiniLifecycle", defaultMiniLifecycle);
  1058. }),
  1059. getLifecycle: TaroHook(HOOK_TYPE.SINGLE, (instance, lifecycle)=>instance[lifecycle]),
  1060. getPathIndex: TaroHook(HOOK_TYPE.SINGLE, (indexOfNode)=>`[${indexOfNode}]`),
  1061. getEventCenter: TaroHook(HOOK_TYPE.SINGLE, (Events2)=>new Events2()),
  1062. isBubbleEvents: TaroHook(HOOK_TYPE.SINGLE, (eventName)=>{
  1063. const BUBBLE_EVENTS = /* @__PURE__ */ new Set([
  1064. "touchstart",
  1065. "touchmove",
  1066. "touchcancel",
  1067. "touchend",
  1068. "touchforcechange",
  1069. "tap",
  1070. "longpress",
  1071. "longtap",
  1072. "transitionend",
  1073. "animationstart",
  1074. "animationiteration",
  1075. "animationend"
  1076. ]);
  1077. return BUBBLE_EVENTS.has(eventName);
  1078. }),
  1079. getSpecialNodes: TaroHook(HOOK_TYPE.SINGLE, ()=>[
  1080. "view",
  1081. "text",
  1082. "image"
  1083. ]),
  1084. onRemoveAttribute: TaroHook(HOOK_TYPE.SINGLE),
  1085. batchedEventUpdates: TaroHook(HOOK_TYPE.SINGLE),
  1086. mergePageInstance: TaroHook(HOOK_TYPE.SINGLE),
  1087. modifyPageObject: TaroHook(HOOK_TYPE.SINGLE),
  1088. createPullDownComponent: TaroHook(HOOK_TYPE.SINGLE),
  1089. getDOMNode: TaroHook(HOOK_TYPE.SINGLE),
  1090. modifyHydrateData: TaroHook(HOOK_TYPE.SINGLE),
  1091. modifySetAttrPayload: TaroHook(HOOK_TYPE.SINGLE),
  1092. modifyRmAttrPayload: TaroHook(HOOK_TYPE.SINGLE),
  1093. onAddEvent: TaroHook(HOOK_TYPE.SINGLE),
  1094. proxyToRaw: TaroHook(HOOK_TYPE.SINGLE, function(proxyObj) {
  1095. return proxyObj;
  1096. }),
  1097. modifyMpEvent: TaroHook(HOOK_TYPE.MULTI),
  1098. modifyMpEventImpl: TaroHook(HOOK_TYPE.SINGLE, function(e) {
  1099. try {
  1100. this.call("modifyMpEvent", e);
  1101. } catch (error) {
  1102. console.warn("[Taro modifyMpEvent hook Error]: " + (error === null || error === void 0 ? void 0 : error.message));
  1103. }
  1104. }),
  1105. injectNewStyleProperties: TaroHook(HOOK_TYPE.SINGLE),
  1106. modifyTaroEvent: TaroHook(HOOK_TYPE.MULTI),
  1107. dispatchTaroEvent: TaroHook(HOOK_TYPE.SINGLE, (e, node)=>{
  1108. node.dispatchEvent(e);
  1109. }),
  1110. dispatchTaroEventFinish: TaroHook(HOOK_TYPE.MULTI),
  1111. modifyDispatchEvent: TaroHook(HOOK_TYPE.MULTI),
  1112. initNativeApi: TaroHook(HOOK_TYPE.MULTI),
  1113. patchElement: TaroHook(HOOK_TYPE.MULTI)
  1114. });
  1115. EMPTY_OBJ = {};
  1116. noop = (..._)=>{};
  1117. _uniqueId = 1;
  1118. _loadTime = new Date().getTime().toString();
  1119. needPromiseApis = /* @__PURE__ */ new Set([
  1120. "addPhoneContact",
  1121. "authorize",
  1122. "canvasGetImageData",
  1123. "canvasPutImageData",
  1124. "canvasToTempFilePath",
  1125. "checkSession",
  1126. "chooseAddress",
  1127. "chooseImage",
  1128. "chooseInvoiceTitle",
  1129. "chooseLocation",
  1130. "chooseVideo",
  1131. "clearStorage",
  1132. "closeBLEConnection",
  1133. "closeBluetoothAdapter",
  1134. "closeSocket",
  1135. "compressImage",
  1136. "connectSocket",
  1137. "createBLEConnection",
  1138. "downloadFile",
  1139. "exitMiniProgram",
  1140. "getAvailableAudioSources",
  1141. "getBLEDeviceCharacteristics",
  1142. "getBLEDeviceServices",
  1143. "getBatteryInfo",
  1144. "getBeacons",
  1145. "getBluetoothAdapterState",
  1146. "getBluetoothDevices",
  1147. "getClipboardData",
  1148. "getConnectedBluetoothDevices",
  1149. "getConnectedWifi",
  1150. "getExtConfig",
  1151. "getFileInfo",
  1152. "getImageInfo",
  1153. "getLocation",
  1154. "getNetworkType",
  1155. "getSavedFileInfo",
  1156. "getSavedFileList",
  1157. "getScreenBrightness",
  1158. "getSetting",
  1159. "getStorage",
  1160. "getStorageInfo",
  1161. "getSystemInfo",
  1162. "getUserInfo",
  1163. "getWifiList",
  1164. "hideHomeButton",
  1165. "hideShareMenu",
  1166. "hideTabBar",
  1167. "hideTabBarRedDot",
  1168. "loadFontFace",
  1169. "login",
  1170. "makePhoneCall",
  1171. "navigateBack",
  1172. "navigateBackMiniProgram",
  1173. "navigateTo",
  1174. "navigateToBookshelf",
  1175. "navigateToMiniProgram",
  1176. "notifyBLECharacteristicValueChange",
  1177. "hideKeyboard",
  1178. "hideLoading",
  1179. "hideNavigationBarLoading",
  1180. "hideToast",
  1181. "openBluetoothAdapter",
  1182. "openDocument",
  1183. "openLocation",
  1184. "openSetting",
  1185. "pageScrollTo",
  1186. "previewImage",
  1187. "queryBookshelf",
  1188. "reLaunch",
  1189. "readBLECharacteristicValue",
  1190. "redirectTo",
  1191. "removeSavedFile",
  1192. "removeStorage",
  1193. "removeTabBarBadge",
  1194. "requestSubscribeMessage",
  1195. "saveFile",
  1196. "saveImageToPhotosAlbum",
  1197. "saveVideoToPhotosAlbum",
  1198. "scanCode",
  1199. "sendSocketMessage",
  1200. "setBackgroundColor",
  1201. "setBackgroundTextStyle",
  1202. "setClipboardData",
  1203. "setEnableDebug",
  1204. "setInnerAudioOption",
  1205. "setKeepScreenOn",
  1206. "setNavigationBarColor",
  1207. "setNavigationBarTitle",
  1208. "setScreenBrightness",
  1209. "setStorage",
  1210. "setTabBarBadge",
  1211. "setTabBarItem",
  1212. "setTabBarStyle",
  1213. "showActionSheet",
  1214. "showFavoriteGuide",
  1215. "showLoading",
  1216. "showModal",
  1217. "showShareMenu",
  1218. "showTabBar",
  1219. "showTabBarRedDot",
  1220. "showToast",
  1221. "startBeaconDiscovery",
  1222. "startBluetoothDevicesDiscovery",
  1223. "startDeviceMotionListening",
  1224. "startPullDownRefresh",
  1225. "stopBeaconDiscovery",
  1226. "stopBluetoothDevicesDiscovery",
  1227. "stopCompass",
  1228. "startCompass",
  1229. "startAccelerometer",
  1230. "stopAccelerometer",
  1231. "showNavigationBarLoading",
  1232. "stopDeviceMotionListening",
  1233. "stopPullDownRefresh",
  1234. "switchTab",
  1235. "uploadFile",
  1236. "vibrateLong",
  1237. "vibrateShort",
  1238. "writeBLECharacteristicValue"
  1239. ]);
  1240. }
  1241. });
  1242. /***/ }),
  1243. /***/ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js":
  1244. /*!**************************************************************!*\
  1245. !*** ./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js ***!
  1246. \**************************************************************/
  1247. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  1248. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  1249. /* harmony export */ __commonJS: function() { return /* binding */ __commonJS; },
  1250. /* harmony export */ __esm: function() { return /* binding */ __esm; },
  1251. /* harmony export */ __export: function() { return /* binding */ __export; },
  1252. /* harmony export */ __toCommonJS: function() { return /* binding */ __toCommonJS; },
  1253. /* harmony export */ __toESM: function() { return /* binding */ __toESM; }
  1254. /* harmony export */ });
  1255. var __create = Object.create;
  1256. var __defProp = Object.defineProperty;
  1257. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  1258. var __getOwnPropNames = Object.getOwnPropertyNames;
  1259. var __getProtoOf = Object.getPrototypeOf;
  1260. var __hasOwnProp = Object.prototype.hasOwnProperty;
  1261. var __esm = (fn, res)=>function __init() {
  1262. return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
  1263. };
  1264. var __commonJS = (cb, mod)=>function __require() {
  1265. return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
  1266. exports: {}
  1267. }).exports, mod), mod.exports;
  1268. };
  1269. var __export = (target, all)=>{
  1270. for(var name in all)__defProp(target, name, {
  1271. get: all[name],
  1272. enumerable: true
  1273. });
  1274. };
  1275. var __copyProps = (to, from, except, desc)=>{
  1276. if (from && typeof from === "object" || typeof from === "function") {
  1277. for (let key of __getOwnPropNames(from))if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
  1278. get: ()=>from[key],
  1279. enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
  1280. });
  1281. }
  1282. return to;
  1283. };
  1284. var __toESM = (mod, isNodeMode, target)=>(target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
  1285. value: mod,
  1286. enumerable: true
  1287. }) : target, mod));
  1288. var __toCommonJS = (mod)=>__copyProps(__defProp({}, "__esModule", {
  1289. value: true
  1290. }), mod);
  1291. /***/ })
  1292. }]);