diff --git a/dist/app.json b/dist/app.json
index aa51d1d..c92a0a5 100644
--- a/dist/app.json
+++ b/dist/app.json
@@ -1 +1 @@
-{"pages":["pages/home/index","pages/activityList/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
\ No newline at end of file
+{"pages":["pages/home/index","pages/activityList/index","pages/mountainPeak/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}
\ No newline at end of file
diff --git a/dist/pages/home/index.js b/dist/pages/home/index.js
index a3a93f4..947d0e8 100644
--- a/dist/pages/home/index.js
+++ b/dist/pages/home/index.js
@@ -1720,6 +1720,262 @@ var Swiper_ = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(Swi
/***/ }),
+/***/ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js":
+/*!*************************************************************!*\
+ !*** ./node_modules/@antmjs/vantui/es/tabbar-item/index.js ***!
+ \*************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export TabbarItem */
+/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
+/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
+/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
+/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
+/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./node_modules/@antmjs/vantui/es/icon/index.js");
+/* harmony import */ var _info__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info */ "./node_modules/@antmjs/vantui/es/info/index.js");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
+
+
+var _excluded = ["icon", "name", "iconPrefix", "dot", "info", "renderIconActive", "renderIcon", "index", "active", "activeColor", "inactiveColor", "onChange", "children", "style", "className", "onClick"];
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
+
+
+
+
+
+
+
+
+function TabbarItem(props) {
+ var icon = props.icon,
+ name = props.name,
+ _props$iconPrefix = props.iconPrefix,
+ iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,
+ dot = props.dot,
+ info = props.info,
+ renderIconActive = props.renderIconActive,
+ renderIcon = props.renderIcon,
+ index = props.index,
+ active = props.active,
+ activeColor = props.activeColor,
+ inactiveColor = props.inactiveColor,
+ onChange = props.onChange,
+ children = props.children,
+ style = props.style,
+ className = props.className,
+ onClick = props.onClick,
+ others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
+
+ var _click = function _click() {
+ if (onChange) {
+ var _active = name !== null && name !== void 0 ? name : index;
+
+ if (_active !== active) {
+ onChange(_active);
+ }
+ }
+
+ onClick === null || onClick === void 0 ? void 0 : onClick(name !== null && name !== void 0 ? name : index);
+ };
+
+ return onChange ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, _objectSpread(_objectSpread({
+ className: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.bem('tabbar-item', {
+ active: active === (name !== null && name !== void 0 ? name : index)
+ }) + ' custom-class' + " ".concat(className || ''),
+ style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([{
+ color: active === (name !== null && name !== void 0 ? name : index) ? activeColor : inactiveColor
+ }, style])
+ }, others), {}, {
+ onClick: _click,
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
+ className: "van-tabbar-item__icon",
+ children: [icon ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, {
+ size: 38,
+ name: icon,
+ classPrefix: iconPrefix,
+ className: "van-tabbar-item__icon__inner"
+ }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
+ children: active === (name !== null && name !== void 0 ? name : index) ? renderIconActive : renderIcon
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info__WEBPACK_IMPORTED_MODULE_3__.Info, {
+ dot: dot,
+ info: info,
+ className: "van-tabbar-item__info"
+ })]
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
+ className: "van-tabbar-item__text",
+ children: children
+ })]
+ })) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {});
+}
+/* harmony default export */ __webpack_exports__["default"] = (TabbarItem);
+
+/***/ }),
+
+/***/ "./node_modules/@antmjs/vantui/es/tabbar/index.js":
+/*!********************************************************!*\
+ !*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***!
+ \********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export Tabbar */
+/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
+/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
+/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
+/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
+/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
+/* harmony import */ var rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js");
+/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
+/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
+/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/utils */ "./node_modules/@antmjs/vantui/es/common/utils.js");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__);
+
+
+
+var _excluded = ["active", "activeColor", "inactiveColor", "border", "fixed", "safeAreaInsetBottom", "zIndex", "placeholder", "onChange", "style", "className", "children"];
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
+
+
+
+
+
+
+
+
+
+
+
+function parseTabList(children) {
+ return (0,rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(children).map(function (node) {
+ if ( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.isValidElement)(node)) {
+ var key = node.key !== undefined ? String(node.key) : undefined;
+ return _objectSpread(_objectSpread({
+ key: key
+ }, node.props), {}, {
+ node: node
+ });
+ }
+
+ return null;
+ }).filter(function (tab) {
+ return tab;
+ });
+}
+
+function Tabbar(props) {
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({
+ height: 50,
+ current: 0
+ }),
+ _useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__["default"])(_useState, 2),
+ state = _useState2[0],
+ setState = _useState2[1];
+
+ var height = state.height,
+ current = state.current;
+
+ var active = props.active,
+ activeColor = props.activeColor,
+ inactiveColor = props.inactiveColor,
+ _props$border = props.border,
+ border = _props$border === void 0 ? true : _props$border,
+ _props$fixed = props.fixed,
+ fixed = _props$fixed === void 0 ? true : _props$fixed,
+ _props$safeAreaInsetB = props.safeAreaInsetBottom,
+ safeAreaInsetBottom = _props$safeAreaInsetB === void 0 ? true : _props$safeAreaInsetB,
+ zIndex = props.zIndex,
+ placeholder = props.placeholder,
+ onChange = props.onChange,
+ style = props.style,
+ className = props.className,
+ children = props.children,
+ others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__["default"])(props, _excluded);
+
+ var _change = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (data) {
+ setState(function (pre) {
+ return _objectSpread(_objectSpread({}, pre), {}, {
+ current: data
+ });
+ });
+ onChange === null || onChange === void 0 ? void 0 : onChange({
+ detail: data
+ });
+ }, [onChange]);
+
+ var newChildren = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
+ var tabs = parseTabList(children);
+ return tabs.map(function (tab, index) {
+ return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(tab.node, {
+ key: index,
+ index: index,
+ active: current,
+ activeColor: activeColor,
+ inactiveColor: inactiveColor,
+ onChange: _change
+ });
+ });
+ }, [children, current, activeColor, inactiveColor, _change]);
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ setState(function (pre) {
+ return _objectSpread(_objectSpread({}, pre), {}, {
+ current: active
+ });
+ });
+ }, [active]);
+ (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
+ if (!fixed || !placeholder) {
+ return;
+ }
+
+ (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__.nextTick)(function () {
+ (0,_common_utils__WEBPACK_IMPORTED_MODULE_5__.getRect)(null, '.van-tabbar').then(function (res) {
+ setState(function (pre) {
+ return _objectSpread(_objectSpread({}, pre), {}, {
+ height: res.height
+ });
+ });
+ });
+ });
+ }, [fixed, placeholder]); // useEffect(
+ // function () {
+ // if (!Array.isArray(children) || !children.length) {
+ // return
+ // }
+ // children.forEach((child) => child.updateFromParent())
+ // },
+ // // eslint-disable-next-line react-hooks/exhaustive-deps
+ // [active, activeColor, inactiveColor],
+ // )
+
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, _objectSpread(_objectSpread({
+ className: (border ? 'van-hairline--top-bottom' : '') + ' ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.bem('tabbar', {
+ fixed: fixed,
+ safe: safeAreaInsetBottom
+ }) + ' custom-class' + " ".concat(className || ''),
+ style: _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.style([zIndex ? 'zIndex: ' + zIndex : '', style])
+ }, others), {}, {
+ children: newChildren
+ })), fixed && placeholder && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, {
+ style: 'height: ' + height + 'px;'
+ })]
+ });
+}
+/* harmony default export */ __webpack_exports__["default"] = (Tabbar);
+
+/***/ }),
+
/***/ "./node_modules/@antmjs/vantui/es/tag/index.js":
/*!*****************************************************!*\
!*** ./node_modules/@antmjs/vantui/es/tag/index.js ***!
@@ -1822,23 +2078,29 @@ function rootStyle(data) {
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
-/* harmony import */ var _antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/card */ "./node_modules/@antmjs/vantui/es/card/index.js");
-/* harmony import */ var _antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/divider */ "./node_modules/@antmjs/vantui/es/divider/index.js");
-/* harmony import */ var _antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @antmjs/vantui/es/grid */ "./node_modules/@antmjs/vantui/es/grid/index.js");
-/* harmony import */ var _antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @antmjs/vantui/es/grid-item */ "./node_modules/@antmjs/vantui/es/grid-item/index.js");
-/* harmony import */ var _antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @antmjs/vantui/es/swiper */ "./node_modules/@antmjs/vantui/es/swiper/index.js");
-/* harmony import */ var _antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @antmjs/vantui/es/swiper-item */ "./node_modules/@antmjs/vantui/es/swiper-item/index.js");
-/* harmony import */ var _antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @antmjs/vantui/es/image */ "./node_modules/@antmjs/vantui/es/image/index.js");
-/* harmony import */ var _antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @antmjs/vantui/es/tag */ "./node_modules/@antmjs/vantui/es/tag/index.js");
-/* harmony import */ var _antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @antmjs/vantui/es/notice-bar */ "./node_modules/@antmjs/vantui/es/notice-bar/index.js");
-/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
-/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
-/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
-/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_10__);
-/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
-/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__);
+/* harmony import */ var _antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar */ "./node_modules/@antmjs/vantui/es/tabbar/index.js");
+/* harmony import */ var _antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/tabbar-item */ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js");
+/* harmony import */ var _antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @antmjs/vantui/es/card */ "./node_modules/@antmjs/vantui/es/card/index.js");
+/* harmony import */ var _antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @antmjs/vantui/es/divider */ "./node_modules/@antmjs/vantui/es/divider/index.js");
+/* harmony import */ var _antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @antmjs/vantui/es/grid */ "./node_modules/@antmjs/vantui/es/grid/index.js");
+/* harmony import */ var _antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @antmjs/vantui/es/grid-item */ "./node_modules/@antmjs/vantui/es/grid-item/index.js");
+/* harmony import */ var _antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @antmjs/vantui/es/swiper */ "./node_modules/@antmjs/vantui/es/swiper/index.js");
+/* harmony import */ var _antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @antmjs/vantui/es/swiper-item */ "./node_modules/@antmjs/vantui/es/swiper-item/index.js");
+/* harmony import */ var _antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @antmjs/vantui/es/image */ "./node_modules/@antmjs/vantui/es/image/index.js");
+/* harmony import */ var _antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @antmjs/vantui/es/tag */ "./node_modules/@antmjs/vantui/es/tag/index.js");
+/* harmony import */ var _antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @antmjs/vantui/es/notice-bar */ "./node_modules/@antmjs/vantui/es/notice-bar/index.js");
+/* harmony import */ var _Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
+/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
+/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
+/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_12__);
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__);
+
+
+
+
@@ -1865,25 +2127,29 @@ function rootStyle(data) {
var Home = function Home() {
// const { images } = COMMON
- var _react$useState = react__WEBPACK_IMPORTED_MODULE_9___default().useState(0),
- _react$useState2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__["default"])(_react$useState, 2),
+ var _react$useState = react__WEBPACK_IMPORTED_MODULE_11___default().useState(0),
+ _react$useState2 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_react$useState, 2),
initPage1 = _react$useState2[0],
setInitPage1 = _react$useState2[1];
+ var _react$useState3 = react__WEBPACK_IMPORTED_MODULE_11___default().useState(0),
+ _react$useState4 = (0,_Users_eric_Desktop_citynew_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_14__["default"])(_react$useState3, 2),
+ active = _react$useState4[0],
+ setActive = _react$useState4[1];
var onChange = function onChange(e) {};
var images = ["cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg", "cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg"];
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_8__["default"], {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_notice_bar__WEBPACK_IMPORTED_MODULE_10__["default"], {
leftIcon: "volume-o",
text: "\u5728\u4EE3\u7801\u9605\u8BFB\u8FC7\u7A0B\u4E2D\u4EBA\u4EEC\u8BF4\u810F\u8BDD\u7684\u9891\u7387\u662F\u8861\u91CF\u4EE3\u7801\u8D28\u91CF\u7684\u552F\u4E00\u6807\u51C6\u3002"
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_7__["default"], {
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tag__WEBPACK_IMPORTED_MODULE_9__["default"], {
plain: true,
type: "primary",
children: "\u6DF1\u5733"
})
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
className: "demo-box",
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_4__["default"], {
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_swiper__WEBPACK_IMPORTED_MODULE_6__["default"], {
height: 200,
paginationColor: "#426543",
autoPlay: "3000",
@@ -1891,8 +2157,8 @@ var Home = function Home() {
paginationVisible: true,
onChange: onChange,
children: images.map(function (item, index) {
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_6__["default"], {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_swiper_item__WEBPACK_IMPORTED_MODULE_7__["default"], {
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_image__WEBPACK_IMPORTED_MODULE_8__["default"], {
src: item,
fit: "cover",
width: "100%",
@@ -1901,30 +2167,36 @@ var Home = function Home() {
}, "swiper#demo1".concat(index));
})
})
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_2__["default"], {
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_antmjs_vantui_es_grid__WEBPACK_IMPORTED_MODULE_4__["default"], {
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
+ icon: "photo-o",
+ text: "\u5341\u5CF0",
+ onClick: function onClick() {
+ // 跳转到目的页面,打开新页面
+ _tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default().navigateTo({
+ url: "/pages/mountainPeak/index"
+ });
+ }
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
icon: "photo-o",
text: "\u6D3B\u52A8",
onClick: function onClick() {
// 跳转到目的页面,打开新页面
- _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default().navigateTo({
+ _tarojs_taro__WEBPACK_IMPORTED_MODULE_12___default().navigateTo({
url: "/pages/activityList/index"
});
}
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
icon: "photo-o",
text: "\u6D3B\u52A8"
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
- icon: "photo-o",
- text: "\u6D3B\u52A8"
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_3__["default"], {
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_grid_item__WEBPACK_IMPORTED_MODULE_5__["default"], {
icon: "photo-o",
text: "\u6D3B\u52A8"
})]
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_1__["default"], {})
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_15__.View, {
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_divider__WEBPACK_IMPORTED_MODULE_3__["default"], {})
}), [1, 2].map(function (item) {
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_0__["default"], {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_card__WEBPACK_IMPORTED_MODULE_2__["default"], {
num: "",
price: "",
desc: "\u62A5\u540D\u4E2D",
@@ -1937,10 +2209,25 @@ var Home = function Home() {
//
// }
});
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(_antmjs_vantui_es_tabbar__WEBPACK_IMPORTED_MODULE_0__["default"], {
+ active: active
+ // onChange={(e) => setActive(e?.detail)}
+ ,
+
+ safeAreaInsetBottom: false,
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ icon: "home-o",
+ children: "\u9996\u9875"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ icon: "friends-o",
+ children: "\u6D3B\u52A8"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_antmjs_vantui_es_tabbar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ icon: "setting-o",
+ children: "\u6211\u7684"
+ })]
})]
});
};
-
/* harmony default export */ __webpack_exports__["default"] = (Home);
/***/ }),
@@ -2034,6 +2321,273 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
}());
+/***/ }),
+
+/***/ "./node_modules/rc-util/lib/Children/toArray.js":
+/*!******************************************************!*\
+ !*** ./node_modules/rc-util/lib/Children/toArray.js ***!
+ \******************************************************/
+/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
+
+"use strict";
+var __webpack_unused_export__;
+
+
+var _interopRequireDefault = (__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js")["default"]);
+
+__webpack_unused_export__ = ({
+ value: true
+});
+exports["default"] = toArray;
+
+var _react = _interopRequireDefault(__webpack_require__(/*! react */ "webpack/container/remote/react"));
+
+var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
+
+function toArray(children) {
+ var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+ var ret = [];
+
+ _react.default.Children.forEach(children, function (child) {
+ if ((child === undefined || child === null) && !option.keepEmpty) {
+ return;
+ }
+
+ if (Array.isArray(child)) {
+ ret = ret.concat(toArray(child));
+ } else if ((0, _reactIs.isFragment)(child) && child.props) {
+ ret = ret.concat(toArray(child.props.children, option));
+ } else {
+ ret.push(child);
+ }
+ });
+
+ return ret;
+}
+
+/***/ }),
+
+/***/ "./node_modules/react-is/cjs/react-is.development.js":
+/*!***********************************************************!*\
+ !*** ./node_modules/react-is/cjs/react-is.development.js ***!
+ \***********************************************************/
+/***/ (function(__unused_webpack_module, exports) {
+
+"use strict";
+/** @license React v16.13.1
+ * react-is.development.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+
+
+
+
+if (true) {
+ (function() {
+'use strict';
+
+// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
+// nor polyfill, then a plain number is used for performance.
+var hasSymbol = typeof Symbol === 'function' && Symbol.for;
+var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
+var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
+var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
+var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
+var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
+var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
+var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
+// (unstable) APIs that have been removed. Can we remove the symbols?
+
+var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
+var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
+var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
+var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
+var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
+var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
+var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
+var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
+var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
+var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
+var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
+
+function isValidElementType(type) {
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
+}
+
+function typeOf(object) {
+ if (typeof object === 'object' && object !== null) {
+ var $$typeof = object.$$typeof;
+
+ switch ($$typeof) {
+ case REACT_ELEMENT_TYPE:
+ var type = object.type;
+
+ switch (type) {
+ case REACT_ASYNC_MODE_TYPE:
+ case REACT_CONCURRENT_MODE_TYPE:
+ case REACT_FRAGMENT_TYPE:
+ case REACT_PROFILER_TYPE:
+ case REACT_STRICT_MODE_TYPE:
+ case REACT_SUSPENSE_TYPE:
+ return type;
+
+ default:
+ var $$typeofType = type && type.$$typeof;
+
+ switch ($$typeofType) {
+ case REACT_CONTEXT_TYPE:
+ case REACT_FORWARD_REF_TYPE:
+ case REACT_LAZY_TYPE:
+ case REACT_MEMO_TYPE:
+ case REACT_PROVIDER_TYPE:
+ return $$typeofType;
+
+ default:
+ return $$typeof;
+ }
+
+ }
+
+ case REACT_PORTAL_TYPE:
+ return $$typeof;
+ }
+ }
+
+ return undefined;
+} // AsyncMode is deprecated along with isAsyncMode
+
+var AsyncMode = REACT_ASYNC_MODE_TYPE;
+var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
+var ContextConsumer = REACT_CONTEXT_TYPE;
+var ContextProvider = REACT_PROVIDER_TYPE;
+var Element = REACT_ELEMENT_TYPE;
+var ForwardRef = REACT_FORWARD_REF_TYPE;
+var Fragment = REACT_FRAGMENT_TYPE;
+var Lazy = REACT_LAZY_TYPE;
+var Memo = REACT_MEMO_TYPE;
+var Portal = REACT_PORTAL_TYPE;
+var Profiler = REACT_PROFILER_TYPE;
+var StrictMode = REACT_STRICT_MODE_TYPE;
+var Suspense = REACT_SUSPENSE_TYPE;
+var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
+
+function isAsyncMode(object) {
+ {
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
+
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
+ }
+ }
+
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
+}
+function isConcurrentMode(object) {
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
+}
+function isContextConsumer(object) {
+ return typeOf(object) === REACT_CONTEXT_TYPE;
+}
+function isContextProvider(object) {
+ return typeOf(object) === REACT_PROVIDER_TYPE;
+}
+function isElement(object) {
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
+}
+function isForwardRef(object) {
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
+}
+function isFragment(object) {
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
+}
+function isLazy(object) {
+ return typeOf(object) === REACT_LAZY_TYPE;
+}
+function isMemo(object) {
+ return typeOf(object) === REACT_MEMO_TYPE;
+}
+function isPortal(object) {
+ return typeOf(object) === REACT_PORTAL_TYPE;
+}
+function isProfiler(object) {
+ return typeOf(object) === REACT_PROFILER_TYPE;
+}
+function isStrictMode(object) {
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
+}
+function isSuspense(object) {
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
+}
+
+exports.AsyncMode = AsyncMode;
+exports.ConcurrentMode = ConcurrentMode;
+exports.ContextConsumer = ContextConsumer;
+exports.ContextProvider = ContextProvider;
+exports.Element = Element;
+exports.ForwardRef = ForwardRef;
+exports.Fragment = Fragment;
+exports.Lazy = Lazy;
+exports.Memo = Memo;
+exports.Portal = Portal;
+exports.Profiler = Profiler;
+exports.StrictMode = StrictMode;
+exports.Suspense = Suspense;
+exports.isAsyncMode = isAsyncMode;
+exports.isConcurrentMode = isConcurrentMode;
+exports.isContextConsumer = isContextConsumer;
+exports.isContextProvider = isContextProvider;
+exports.isElement = isElement;
+exports.isForwardRef = isForwardRef;
+exports.isFragment = isFragment;
+exports.isLazy = isLazy;
+exports.isMemo = isMemo;
+exports.isPortal = isPortal;
+exports.isProfiler = isProfiler;
+exports.isStrictMode = isStrictMode;
+exports.isSuspense = isSuspense;
+exports.isValidElementType = isValidElementType;
+exports.typeOf = typeOf;
+ })();
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/react-is/index.js":
+/*!****************************************!*\
+ !*** ./node_modules/react-is/index.js ***!
+ \****************************************/
+/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
+
+"use strict";
+
+
+if (false) {} else {
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
+}
+
+
+/***/ }),
+
+/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
+/*!**********************************************************************!*\
+ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
+ \**********************************************************************/
+/***/ (function(module) {
+
+function _interopRequireDefault(obj) {
+ return obj && obj.__esModule ? obj : {
+ "default": obj
+ };
+}
+module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
+
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
diff --git a/dist/pages/home/index.js.map b/dist/pages/home/index.js.map
index fad1e79..6e8313e 100644
--- a/dist/pages/home/index.js.map
+++ b/dist/pages/home/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"pages/home/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACnNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC3CA;AACA;;;;;;;;;;;;ACDA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;AC/mBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACEA;AAGA;AAEA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAKA;AACA;AAGA;AACA;AAAA;AAUA;AAEA;AAAA;AAAA;AAAA;AAEA;AAGA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAIA;AACA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AAAA;AAGA;;AAEA;;;;;;;;;;;;;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;;;;;;;;;;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC1TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/._node_modules_@antmjs_vantui_es_card_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_divider_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_divider_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid-item_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid-item_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_image_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_image_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_notice-bar_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_notice-bar_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper-item_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper_context.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper_swiper.js","webpack://myApp/._node_modules_@antmjs_vantui_es_tag_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_tag_wxs.js","webpack://myApp/._src_pages_home_index.tsx","webpack://myApp/./src/pages/home/index.tsx?e8ed","webpack://myApp/._node_modules_classnames_index.js","webpack://myApp/._node_modules_@babel_runtime_helpers_regeneratorRuntime.js","webpack://myApp/._node_modules_@babel_runtime_helpers_typeof.js","webpack://myApp/._node_modules_@babel_runtime_regenerator_index.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_asyncToGenerator.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"tag\", \"num\", \"desc\", \"thumb\", \"title\", \"price\", \"centered\", \"lazyLoad\", \"thumbLink\", \"originPrice\", \"thumbMode\", \"currency\", \"renderFooter\", \"renderBottom\", \"renderNum\", \"renderOriginPrice\", \"renderPriceTop\", \"renderThumb\", \"renderPrice\", \"renderDesc\", \"renderTag\", \"renderTitle\", \"renderTags\", \"style\", \"className\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View, Text, Image } from '@tarojs/components';\nimport { useEffect, useState } from 'react';\nimport * as utils from '../wxs/utils';\nimport { jumpLink } from '../common/jumpLink';\nimport { Tag } from '../tag';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Card(props) {\n var tag = props.tag,\n num = props.num,\n desc = props.desc,\n thumb = props.thumb,\n title = props.title,\n price = props.price,\n centered = props.centered,\n lazyLoad = props.lazyLoad,\n thumbLink = props.thumbLink,\n originPrice = props.originPrice,\n _props$thumbMode = props.thumbMode,\n thumbMode = _props$thumbMode === void 0 ? 'aspectFit' : _props$thumbMode,\n _props$currency = props.currency,\n currency = _props$currency === void 0 ? '¥' : _props$currency,\n renderFooter = props.renderFooter,\n renderBottom = props.renderBottom,\n renderNum = props.renderNum,\n renderOriginPrice = props.renderOriginPrice,\n renderPriceTop = props.renderPriceTop,\n renderThumb = props.renderThumb,\n renderPrice = props.renderPrice,\n renderDesc = props.renderDesc,\n renderTag = props.renderTag,\n renderTitle = props.renderTitle,\n renderTags = props.renderTags,\n style = props.style,\n className = props.className,\n others = _objectWithoutProperties(props, _excluded);\n\n var _useState = useState({\n integerStr: '',\n decimalStr: ''\n }),\n _useState2 = _slicedToArray(_useState, 2),\n state = _useState2[0],\n setState = _useState2[1];\n\n var integerStr = state.integerStr,\n decimalStr = state.decimalStr;\n useEffect(function () {\n var priceArr = price.toString().split('.');\n setState(function (pre) {\n return _objectSpread(_objectSpread({}, pre), {}, {\n integerStr: priceArr[0],\n decimalStr: priceArr[1] ? \".\".concat(priceArr[1]) : ''\n });\n });\n }, [price]);\n return /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: \"van-card \".concat(className || ''),\n style: style\n }, others), {}, {\n children: [/*#__PURE__*/_jsxs(View, {\n className: utils.bem('card__header', {\n center: centered\n }),\n children: [/*#__PURE__*/_jsxs(View, {\n className: \"van-card__thumb\",\n onClick: function onClick() {\n thumbLink && jumpLink(thumbLink);\n },\n children: [thumb ? /*#__PURE__*/_jsx(Image, {\n src: thumb,\n mode: thumbMode,\n lazyLoad: lazyLoad,\n className: \"van-card__img thumb-class\"\n }) : renderThumb, /*#__PURE__*/_jsx(View, {\n children: tag ? /*#__PURE__*/_jsx(Tag, {\n mark: true,\n type: \"danger\",\n className: \"van-card__tag\",\n children: tag\n }) : renderTag\n })]\n }), /*#__PURE__*/_jsxs(View, {\n className: 'van-card__content ' + utils.bem('card__content', {\n center: centered\n }),\n children: [/*#__PURE__*/_jsxs(View, {\n children: [/*#__PURE__*/_jsx(View, {\n children: title ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__title title-class\",\n children: title\n }) : renderTitle\n }), /*#__PURE__*/_jsx(View, {\n children: desc ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__desc desc-class\",\n children: desc\n }) : renderDesc\n }), renderTags]\n }), /*#__PURE__*/_jsxs(View, {\n className: \"van-card__bottom\",\n children: [renderPriceTop, /*#__PURE__*/_jsx(View, {\n children: price ? /*#__PURE__*/_jsxs(View, {\n className: \"van-card__price price-class\",\n children: [/*#__PURE__*/_jsx(Text, {\n children: currency\n }), /*#__PURE__*/_jsx(Text, {\n className: \"van-card__price-integer\",\n children: integerStr\n }), /*#__PURE__*/_jsx(Text, {\n className: \"van-card__price-decimal\",\n children: decimalStr\n })]\n }) : renderPrice\n }), /*#__PURE__*/_jsx(View, {\n children: originPrice ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__origin-price origin-price-class\",\n children: currency + ' ' + originPrice\n }) : renderOriginPrice\n }), /*#__PURE__*/_jsx(View, {\n children: num ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__num num-class\",\n children: 'x ' + num\n }) : renderNum\n }), renderBottom]\n })]\n })]\n }), /*#__PURE__*/_jsx(View, {\n className: \"van-card__footer\",\n children: renderFooter\n })]\n }));\n}\nexport default Card;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"dashed\", \"hairline\", \"contentPosition\", \"borderColor\", \"textColor\", \"fontSize\", \"style\", \"className\", \"children\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Divider(props) {\n var _props$dashed = props.dashed,\n dashed = _props$dashed === void 0 ? false : _props$dashed,\n _props$hairline = props.hairline,\n hairline = _props$hairline === void 0 ? false : _props$hairline,\n contentPosition = props.contentPosition,\n borderColor = props.borderColor,\n textColor = props.textColor,\n fontSize = props.fontSize,\n style = props.style,\n className = props.className,\n children = props.children,\n others = _objectWithoutProperties(props, _excluded);\n\n return /*#__PURE__*/_jsx(View, _objectSpread(_objectSpread({\n className: ' ' + utils.bem('divider', [{\n dashed: dashed,\n hairline: hairline\n }, contentPosition]) + \" \".concat(className || ''),\n style: utils.style([computed.rootStyle({\n borderColor: borderColor,\n textColor: textColor,\n fontSize: fontSize\n }), style])\n }, others), {}, {\n children: children\n }));\n}\nexport default Divider;","import { style } from '../wxs/style';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction rootStyle(data) {\n return style([{\n 'border-color': data.borderColor,\n color: data.textColor,\n 'font-size': addUnit(data.fontSize)\n }]);\n}\n\nexport { rootStyle };","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"icon\", \"iconColor\", \"iconPrefix\", \"dot\", \"info\", \"badge\", \"text\", \"setChildrenInstance\", \"parentInstance\", \"index\", \"url\", \"linkType\", \"style\", \"className\"];\nimport { View, Text } from '@tarojs/components';\nimport { useState, useEffect, useCallback } from 'react';\nimport { jumpLink } from '../common/jumpLink';\nimport * as utils from '../wxs/utils';\nimport VanIcon from '../icon/index';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function GridItem(props) {\n var icon = props.icon,\n iconColor = props.iconColor,\n _props$iconPrefix = props.iconPrefix,\n iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,\n dot = props.dot,\n info = props.info,\n badge = props.badge,\n text = props.text,\n setChildrenInstance = props.setChildrenInstance,\n parentInstance = props.parentInstance,\n index = props.index,\n url = props.url,\n linkType = props.linkType,\n style = props.style,\n className = props.className,\n others = _objectWithoutProperties(props, _excluded);\n\n var _useState = useState({}),\n _useState2 = _slicedToArray(_useState, 2),\n parentState = _useState2[0],\n setParentState = _useState2[1];\n\n useEffect(function () {\n setChildrenInstance(index, {\n updateStyle: updateStyle\n });\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [index, setChildrenInstance]);\n useEffect(function () {\n updateStyle(); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [parentInstance.columnNum]);\n var updateStyle = useCallback(function () {\n var columnNum = parentInstance.columnNum,\n border = parentInstance.border,\n square = parentInstance.square,\n gutter = parentInstance.gutter,\n clickable = parentInstance.clickable,\n center = parentInstance.center,\n direction = parentInstance.direction,\n reverse = parentInstance.reverse,\n iconSize = parentInstance.iconSize;\n setParentState({\n center: center,\n border: border,\n square: square,\n gutter: gutter,\n clickable: clickable,\n direction: direction,\n reverse: reverse,\n iconSize: iconSize,\n index: index,\n columnNum: columnNum\n });\n }, [parentInstance, index]);\n return /*#__PURE__*/_jsx(View, {\n className: ' ' + utils.bem('grid-item', {\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square\n }) + ' ' + className,\n style: utils.style([computed.wrapperStyle({\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square,\n gutter: parentState === null || parentState === void 0 ? void 0 : parentState.gutter,\n columnNum: parentState === null || parentState === void 0 ? void 0 : parentState.columnNum,\n index: parentState === null || parentState === void 0 ? void 0 : parentState.index\n }), style]),\n onClick: function onClick(e) {\n var _others$onClick;\n\n url && jumpLink(url, linkType);\n others === null || others === void 0 ? void 0 : (_others$onClick = others.onClick) === null || _others$onClick === void 0 ? void 0 : _others$onClick.call(others, e);\n },\n children: /*#__PURE__*/_jsx(View, {\n className: 'content-class ' + utils.bem('grid-item__content', [parentState === null || parentState === void 0 ? void 0 : parentState.direction, {\n center: parentState === null || parentState === void 0 ? void 0 : parentState.center,\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square,\n reverse: parentState === null || parentState === void 0 ? void 0 : parentState.reverse,\n clickable: parentState === null || parentState === void 0 ? void 0 : parentState.clickable,\n surround: (parentState === null || parentState === void 0 ? void 0 : parentState.border) && (parentState === null || parentState === void 0 ? void 0 : parentState.gutter)\n }]) + ' ' + (parentState !== null && parentState !== void 0 && parentState.border ? 'van-hairline--surround' : ''),\n style: computed.contentStyle({\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square,\n gutter: parentState === null || parentState === void 0 ? void 0 : parentState.gutter\n }),\n children: others.children || /*#__PURE__*/_jsxs(_Fragment, {\n children: [/*#__PURE__*/_jsx(View, {\n className: \"van-grid-item__icon icon-class\",\n children: icon ? /*#__PURE__*/_jsx(VanIcon, {\n name: icon,\n color: iconColor,\n classPrefix: iconPrefix,\n dot: dot,\n info: badge || info,\n size: parentState === null || parentState === void 0 ? void 0 : parentState.iconSize\n }) : parentState.renderIcon\n }), /*#__PURE__*/_jsx(View, {\n className: \"van-grid-item__text text-class\",\n children: text ? /*#__PURE__*/_jsx(Text, {\n children: text\n }) : parentState.renderText\n })]\n })\n })\n });\n}\nexport default GridItem;","import { style } from '../wxs/style';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction wrapperStyle(data) {\n var width = 100 / data.columnNum + '%';\n return style({\n width: width,\n 'padding-top': data.square ? width : null,\n 'padding-right': addUnit(data.gutter),\n 'margin-top': data.index >= data.columnNum && !data.square ? addUnit(data.gutter) : null\n });\n}\n\nfunction contentStyle(data) {\n return data.square ? style({\n right: addUnit(data.gutter),\n bottom: addUnit(data.gutter),\n height: 'auto'\n }) : '';\n}\n\nexport { wrapperStyle, contentStyle };","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"gutter\", \"clickable\", \"columnNum\", \"center\", \"border\", \"direction\", \"iconSize\", \"square\", \"reverse\", \"className\", \"style\"];\nimport { View } from '@tarojs/components';\nimport { cloneElement, useCallback, useMemo, useRef, useEffect } from 'react';\nimport * as utils from '../wxs/utils';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Grid(props) {\n var _props$gutter = props.gutter,\n gutter = _props$gutter === void 0 ? null : _props$gutter,\n clickable = props.clickable,\n _props$columnNum = props.columnNum,\n columnNum = _props$columnNum === void 0 ? 4 : _props$columnNum,\n _props$center = props.center,\n center = _props$center === void 0 ? true : _props$center,\n _props$border = props.border,\n border = _props$border === void 0 ? true : _props$border,\n direction = props.direction,\n _props$iconSize = props.iconSize,\n iconSize = _props$iconSize === void 0 ? '48' : _props$iconSize,\n square = props.square,\n _props$reverse = props.reverse,\n reverse = _props$reverse === void 0 ? false : _props$reverse,\n _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n _props$style = props.style,\n style = _props$style === void 0 ? {} : _props$style,\n others = _objectWithoutProperties(props, _excluded);\n\n var childrenInstance = useRef([]);\n var updateChildren = useCallback(function () {\n childrenInstance.current.forEach(function (child) {\n child.updateStyle();\n });\n }, []);\n useEffect(function () {\n updateChildren();\n }, [updateChildren]);\n var setChildrenInstance = useCallback(function (index, instance) {\n childrenInstance.current[index] = instance;\n }, []);\n var ResetChildren = useMemo(function () {\n var res = [];\n\n if (others.children && Array.isArray(others.children)) {\n others.children.forEach(function (child, index) {\n res.push( /*#__PURE__*/cloneElement(child, {\n setChildrenInstance: setChildrenInstance,\n key: index,\n index: index,\n parentInstance: {\n columnNum: columnNum,\n border: border,\n square: square,\n gutter: gutter,\n clickable: clickable,\n center: center,\n direction: direction,\n reverse: reverse,\n iconSize: iconSize\n }\n }));\n });\n }\n\n return res;\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [others.children, columnNum]);\n return /*#__PURE__*/_jsx(View, {\n className: 'van-grid ' + (border && !gutter ? 'van-hairline--top' : '') + ' ' + className,\n style: utils.style([computed.rootStyle({\n gutter: gutter\n }), style]),\n children: ResetChildren\n });\n}\nexport default Grid;","import { style } from '../wxs/style';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction rootStyle(data) {\n return style({\n 'padding-left': addUnit(data.gutter)\n });\n}\n\nexport { rootStyle };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"src\", \"round\", \"width\", \"height\", \"radius\", \"lazyLoad\", \"showMenuByLongpress\", \"fit\", \"showError\", \"showLoading\", \"className\", \"style\", \"renderError\", \"renderLoading\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { useEffect, useState, useCallback, useMemo } from 'react';\nimport { View, Image as TaroImage } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport VanIcon from '../icon/index';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Image(props) {\n var src = props.src,\n round = props.round,\n width = props.width,\n height = props.height,\n radius = props.radius,\n lazyLoad = props.lazyLoad,\n showMenuByLongpress = props.showMenuByLongpress,\n fit = props.fit,\n _props$showError = props.showError,\n showError = _props$showError === void 0 ? true : _props$showError,\n _props$showLoading = props.showLoading,\n showLoading = _props$showLoading === void 0 ? true : _props$showLoading,\n className = props.className,\n style = props.style,\n renderError = props.renderError,\n renderLoading = props.renderLoading,\n others = _objectWithoutProperties(props, _excluded);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n loading = _useState2[0],\n setLoading = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n error = _useState4[0],\n setError = _useState4[1];\n\n useEffect(function () {\n if (loading === undefined) setLoading(true);\n setError(false);\n }, [loading]);\n var onLoad = useCallback(function () {\n setLoading(false);\n }, []);\n var onError = useCallback(function () {\n setError(true);\n }, []); //样式挂在给img外层的webCompoent\n\n var styleH5 = useMemo(function () {\n var style = {};\n\n if (process.env.TARO_ENV === 'h5') {\n if (fit === 'heightFix' || fit === 'widthFix') {\n style = {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n };\n }\n }\n\n return style;\n }, [fit]);\n return /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n style: utils.style([computed.rootStyle({\n width: width,\n height: height,\n radius: radius\n }), style]),\n className: ' ' + utils.bem('image', {\n round: round\n }) + ' ' + className,\n onClick: others.onClick\n }, others), {}, {\n children: [!error && /*#__PURE__*/_jsx(TaroImage, {\n src: src,\n mode: computed.mode(fit || 'none'),\n lazyLoad: lazyLoad,\n className: \"image-class van-image__img\",\n showMenuByLongpress: showMenuByLongpress,\n onLoad: onLoad,\n onError: onError,\n style: styleH5\n }), loading && showLoading && /*#__PURE__*/_jsx(View, {\n className: \"loading-class van-image__loading\",\n children: renderLoading || /*#__PURE__*/_jsx(VanIcon, {\n name: \"photo\",\n className: \"van-image__loading-icon\"\n })\n }), error && showError && /*#__PURE__*/_jsx(View, {\n className: \"error-class van-image__error\",\n children: renderError || /*#__PURE__*/_jsx(VanIcon, {\n name: \"photo-fail\",\n className: \"van-image__error-icon\"\n })\n })]\n }));\n}\nexport default Image;","import { style } from '../wxs/utils';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction rootStyle(data) {\n return style([{\n width: addUnit(data.width),\n height: addUnit(data.height),\n 'border-radius': addUnit(data.radius)\n }, data.radius ? 'overflow: hidden' : null]);\n}\n\nvar FIT_MODE_MAP = {\n none: 'scaleToFill',\n fill: 'scaleToFill',\n cover: 'aspectFill',\n contain: 'aspectFit',\n widthFix: 'widthFix',\n heightFix: 'heightFix',\n scaleDown: 'aspectFit'\n};\n\nfunction mode(fit) {\n return FIT_MODE_MAP[fit];\n}\n\nexport { rootStyle, mode };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nvar _excluded = [\"text\", \"mode\", \"url\", \"openType\", \"delay\", \"speed\", \"scrollable\", \"leftIcon\", \"color\", \"backgroundColor\", \"background\", \"wrapable\", \"renderLeftIcon\", \"renderRightIcon\", \"onClick\", \"onClose\", \"style\", \"className\", \"children\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { createAnimation, useReady, nextTick } from '@tarojs/taro';\nimport { useState, useEffect, useRef, useCallback } from 'react';\nimport { View, Navigator } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport { getRect, requestAnimationFrame } from '../common/utils';\nimport VanIcon from '../icon/index';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar NOTICE_BAR_INDEX = 0;\nexport function NoticeBar(props) {\n var _useState = useState({\n ready: false,\n show: true,\n animationData: {\n actions: []\n },\n unitag: 0\n }),\n _useState2 = _slicedToArray(_useState, 2),\n state = _useState2[0],\n setState = _useState2[1];\n\n var params = {\n animation: null,\n resetAnimation: null,\n timer: null,\n wrapWidth: undefined,\n contentWidth: undefined,\n duration: undefined\n };\n var ref = useRef(params);\n\n var _props$text = props.text,\n text = _props$text === void 0 ? '' : _props$text,\n _props$mode = props.mode,\n mode = _props$mode === void 0 ? '' : _props$mode,\n _props$url = props.url,\n url = _props$url === void 0 ? '' : _props$url,\n _props$openType = props.openType,\n openType = _props$openType === void 0 ? 'navigate' : _props$openType,\n _props$delay = props.delay,\n delay = _props$delay === void 0 ? 1 : _props$delay,\n _props$speed = props.speed,\n speed = _props$speed === void 0 ? 60 : _props$speed,\n _props$scrollable = props.scrollable,\n scrollable = _props$scrollable === void 0 ? null : _props$scrollable,\n _props$leftIcon = props.leftIcon,\n leftIcon = _props$leftIcon === void 0 ? '' : _props$leftIcon,\n _props$color = props.color,\n color = _props$color === void 0 ? '#ed6a0c' : _props$color,\n _props$backgroundColo = props.backgroundColor,\n backgroundColor = _props$backgroundColo === void 0 ? '#fffbe8' : _props$backgroundColo,\n background = props.background,\n wrapable = props.wrapable,\n renderLeftIcon = props.renderLeftIcon,\n renderRightIcon = props.renderRightIcon,\n onClick = props.onClick,\n onClose = props.onClose,\n style = props.style,\n className = props.className,\n children = props.children,\n others = _objectWithoutProperties(props, _excluded);\n\n useEffect(function () {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n unitag: NOTICE_BAR_INDEX++\n });\n });\n }, []);\n useReady(function () {\n if (process.env.TARO_ENV !== 'h5') {\n ref.current.resetAnimation = createAnimation({\n duration: 0,\n timingFunction: 'linear'\n });\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n ready: true\n });\n });\n }\n });\n useEffect(function () {\n ref.current.resetAnimation = createAnimation({\n duration: 0,\n timingFunction: 'linear'\n });\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n ready: true\n });\n });\n }, []);\n useEffect(function () {\n if (text && state.ready) {\n init();\n }\n\n return function () {\n /* eslint-disable-next-line */\n ref.current.timer && clearTimeout(ref.current.timer);\n };\n /* eslint-disable-next-line */\n }, [text, speed, state.ready]);\n var scroll = useCallback(function () {\n var isInit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n ref.current.timer && clearTimeout(ref.current.timer);\n ref.current.timer = null;\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n animationData: ref.current.resetAnimation.translateX(isInit ? 0 : ref.current.wrapWidth).step().export()\n });\n });\n setTimeout(function () {\n requestAnimationFrame(function () {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n animationData: ref.current.animation.translateX(-ref.current.contentWidth).step().export()\n });\n });\n });\n }, 10);\n ref.current.timer = setTimeout(function () {\n scroll();\n }, ref.current.duration);\n }, []);\n var init = useCallback(function () {\n requestAnimationFrame(function () {\n Promise.all([getRect(null, \".van-notice-bar__content_\".concat(state.unitag)), getRect(null, \".van-notice-bar__wrap_\".concat(state.unitag))]).then(function (rects) {\n var contentRect = rects[0];\n var wrapRect = rects[1];\n\n if (contentRect == null || wrapRect == null || !contentRect.width || !wrapRect.width || scrollable === false) {\n return;\n }\n\n nextTick(function () {\n if (scrollable || wrapRect.width <= contentRect.width) {\n ref.current.wrapWidth = wrapRect.width;\n ref.current.contentWidth = contentRect.width;\n ref.current.duration = (wrapRect.width + contentRect.width) / speed * 1000;\n ref.current.animation = createAnimation({\n duration: ref.current.duration,\n timingFunction: 'linear',\n delay: delay\n });\n scroll(true);\n }\n });\n });\n });\n }, [state.unitag, scrollable, speed, delay, scroll]);\n var onClickIcon = useCallback(function (event) {\n if (mode === 'closeable') {\n ref.current.timer && clearTimeout(ref.current.timer);\n ref.current.timer = null;\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n show: false\n });\n });\n onClose === null || onClose === void 0 ? void 0 : onClose(event);\n }\n }, [mode, onClose]);\n return state.show && /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: utils.bem('notice-bar', {\n withicon: mode,\n wrapable: wrapable\n }) + \" \".concat(className || ''),\n style: utils.style([computed.rootStyle({\n color: color,\n backgroundColor: backgroundColor,\n background: background\n }), style])\n }, others), {}, {\n onClick: onClick,\n children: [leftIcon ? /*#__PURE__*/_jsx(VanIcon, {\n name: leftIcon,\n className: \"van-notice-bar__left-icon\"\n }) : renderLeftIcon, /*#__PURE__*/_jsx(View, {\n className: \"van-notice-bar__wrap van-notice-bar__wrap_\".concat(state.unitag),\n children: /*#__PURE__*/_jsxs(View, {\n className: \"van-notice-bar__content van-notice-bar__content_\".concat(state.unitag, \" \") + (scrollable === false && !wrapable ? 'van-ellipsis' : ''),\n animation: state.animationData,\n children: [text, !text && children]\n })\n }), mode === 'closeable' ? /*#__PURE__*/_jsx(VanIcon, {\n className: \"van-notice-bar__right-icon\",\n name: \"cross\",\n onClick: onClickIcon\n }) : mode === 'link' ? /*#__PURE__*/_jsx(Navigator, {\n url: url,\n openType: openType,\n children: /*#__PURE__*/_jsx(VanIcon, {\n className: \"van-notice-bar__right-icon\",\n name: \"arrow\"\n })\n }) : renderRightIcon]\n }));\n}\nexport default NoticeBar;","import { style } from '../wxs/style';\n\nfunction rootStyle(data) {\n return style({\n color: data.color,\n 'background-color': data.backgroundColor,\n background: data.background\n });\n}\n\nexport { rootStyle };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { useContext } from 'react';\nimport { View } from '@tarojs/components';\nimport { DataContext } from '../swiper/context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defaultProps = {\n direction: 'horizontal',\n className: ''\n};\nexport var SwiperItem = function SwiperItem(props) {\n var _props = _objectSpread(_objectSpread({}, defaultProps), props);\n\n var children = _props.children,\n direction = _props.direction,\n size = _props.size,\n className = _props.className;\n var parent = useContext(DataContext);\n\n var style = function style() {\n var style = {};\n\n var _direction = (parent === null || parent === void 0 ? void 0 : parent.propSwiper.direction) || direction;\n\n var _size = (parent === null || parent === void 0 ? void 0 : parent.size) || size;\n\n if (_size) {\n style[_direction === 'horizontal' ? 'width' : 'height'] = \"\".concat(_size, \"px\");\n }\n\n return style;\n };\n\n return /*#__PURE__*/_jsx(View, {\n className: \"van-swiper-item \".concat(className),\n style: style(),\n children: children\n });\n};\nexport default SwiperItem;","import { createContext } from 'react';\nexport var DataContext = /*#__PURE__*/createContext({});","import Swiper from './swiper';\nexport { Swiper };\nexport default Swiper;","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nvar _excluded = [\"children\", \"direction\", \"className\", \"pageContent\", \"onChange\", \"initPage\", \"paginationColor\", \"paginationVisible\", \"touchable\", \"isPreventDefault\", \"isStopPropagation\", \"autoPlay\", \"isCenter\", \"style\"];\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { useState, useEffect, useRef, useMemo, Children, forwardRef, useImperativeHandle, isValidElement } from 'react';\nimport classNames from 'classnames';\nimport Taro, { useReady, createSelectorQuery } from '@tarojs/taro';\nimport { View, Text } from '@tarojs/components';\nimport { DataContext } from './context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar defaultProps = {\n width: (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === 'object' ? window.innerWidth : 375,\n height: 0,\n duration: 500,\n initPage: 0,\n autoPlay: 0,\n direction: 'horizontal',\n paginationColor: '#fff',\n paginationVisible: false,\n loop: true,\n touchable: true,\n isPreventDefault: true,\n isStopPropagation: true,\n isCenter: false,\n className: ''\n};\nvar DISTANCE = 5;\n\nvar Swiper = function Swiper(props, ref) {\n var _classNames, _classNames2;\n\n var propSwiper = _objectSpread(_objectSpread({}, defaultProps), props);\n\n var children = propSwiper.children,\n direction = propSwiper.direction,\n className = propSwiper.className,\n pageContent = propSwiper.pageContent,\n onChange = propSwiper.onChange,\n initPage = propSwiper.initPage,\n paginationColor = propSwiper.paginationColor,\n paginationVisible = propSwiper.paginationVisible,\n touchable = propSwiper.touchable,\n isPreventDefault = propSwiper.isPreventDefault,\n isStopPropagation = propSwiper.isStopPropagation,\n autoPlay = propSwiper.autoPlay,\n isCenter = propSwiper.isCenter,\n style = propSwiper.style,\n rest = _objectWithoutProperties(propSwiper, _excluded);\n\n var container = useRef(null);\n var innerRef = useRef(null);\n\n var _swiper = useRef({\n moving: false,\n autoplayTimer: null,\n width: 0,\n height: 0,\n offset: 0,\n size: 0\n });\n\n var _useState = useState(Math.random().toString(36).slice(-8)),\n _useState2 = _slicedToArray(_useState, 1),\n refRandomId = _useState2[0];\n\n var isVertical = direction === 'vertical';\n\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n rect = _useState4[0],\n setRect = _useState4[1]; // eslint-disable-next-line prefer-const\n\n\n var _useState5 = useState(0),\n _useState6 = _slicedToArray(_useState5, 2),\n active = _useState6[0],\n setActive = _useState6[1];\n\n var _useState7 = useState(0),\n _useState8 = _slicedToArray(_useState7, 2),\n width = _useState8[0],\n setWidth = _useState8[1];\n\n var _useState9 = useState(0),\n _useState10 = _slicedToArray(_useState9, 2),\n height = _useState10[0],\n setHeight = _useState10[1];\n\n var _useState11 = useState(0),\n _useState12 = _slicedToArray(_useState11, 2),\n offset = _useState12[0],\n setOffset = _useState12[1];\n\n var _useState13 = useState([]),\n _useState14 = _slicedToArray(_useState13, 2),\n childOffset = _useState14[0],\n setChildOffset = _useState14[1];\n\n var _useState15 = useState(false),\n _useState16 = _slicedToArray(_useState15, 2),\n ready = _useState16[0],\n setReady = _useState16[1];\n\n var size = isVertical ? height : width;\n\n var _useState17 = useState({\n startX: 0,\n startY: 0,\n deltaX: 0,\n deltaY: 0,\n offsetX: 0,\n offsetY: 0,\n stateDirection: '',\n delta: 0,\n touchTime: 0\n }),\n _useState18 = _slicedToArray(_useState17, 1),\n touch = _useState18[0];\n\n var _useMemo = useMemo(function () {\n var childCount = 0;\n var childs = Children.map(propSwiper.children, function (child) {\n if (! /*#__PURE__*/isValidElement(child)) return null;\n childCount++;\n return child;\n });\n return {\n childs: childs,\n childCount: childCount\n };\n }, [propSwiper.children]),\n childs = _useMemo.childs,\n childCount = _useMemo.childCount;\n\n var trackSize = childCount * Number(size); // 父组件参数传入子组件item\n\n var parent = {\n propSwiper: propSwiper,\n size: size\n };\n\n var minOffset = function () {\n if (rect) {\n var base = isVertical ? rect === null || rect === void 0 ? void 0 : rect.height : rect === null || rect === void 0 ? void 0 : rect.width;\n return base - Number(size) * childCount;\n }\n\n return 0;\n }(); // 清除定时器\n\n\n var stopAutoPlay = function stopAutoPlay() {\n clearTimeout(_swiper.current.autoplayTimer);\n _swiper.current.autoplayTimer = null;\n }; // 定时轮播\n\n\n var autoplay = function autoplay() {\n if (propSwiper.autoPlay <= 0 || childCount <= 1) return;\n stopAutoPlay();\n _swiper.current.autoplayTimer = setTimeout(function () {\n next();\n autoplay();\n }, Number(propSwiper.autoPlay));\n }; // 重置首尾位置信息\n\n\n var resettPosition = function resettPosition() {\n _swiper.current.moving = true;\n\n if (active <= -1) {\n move({\n pace: childCount\n });\n }\n\n if (active >= childCount) {\n move({\n pace: -childCount\n });\n }\n }; // 上一页\n\n\n var prev = function prev() {\n resettPosition();\n touchReset();\n requestFrame(function () {\n requestFrame(function () {\n _swiper.current.moving = false;\n move({\n pace: -1,\n isEmit: true\n });\n });\n });\n }; // 下一页\n\n\n var next = function next() {\n resettPosition();\n touchReset();\n requestFrame(function () {\n requestFrame(function () {\n _swiper.current.moving = false;\n move({\n pace: 1,\n isEmit: true\n });\n });\n });\n }; // 前往指定页\n\n\n var to = function to(index) {\n resettPosition();\n touchReset();\n requestFrame(function () {\n requestFrame(function () {\n _swiper.current.moving = false;\n var targetIndex;\n\n if (propSwiper.loop && childCount === index) {\n targetIndex = active === 0 ? 0 : index;\n } else {\n targetIndex = index % childCount;\n }\n\n move({\n pace: targetIndex - active,\n isEmit: true\n });\n });\n });\n }; // 切换方法\n\n\n var move = function move(_ref) {\n var _ref$pace = _ref.pace,\n pace = _ref$pace === void 0 ? 0 : _ref$pace,\n _ref$offset = _ref.offset,\n offset = _ref$offset === void 0 ? 0 : _ref$offset,\n _ref$isEmit = _ref.isEmit,\n isEmit = _ref$isEmit === void 0 ? false : _ref$isEmit;\n if (childCount <= 1) return;\n var targetActive = getActive(pace); // 父级容器偏移量\n\n var targetOffset = getOffset(targetActive, offset); // 如果循环,调整开头结尾图片位置\n\n if (propSwiper.loop) {\n if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {\n var rightBound = targetOffset < minOffset;\n childOffset[0] = rightBound ? trackSize : 0;\n }\n\n if (Array.isArray(children) && children[childCount - 1] && targetOffset !== 0) {\n var leftBound = targetOffset > 0;\n childOffset[childCount - 1] = leftBound ? -trackSize : 0;\n }\n\n setChildOffset(childOffset);\n }\n\n if (isEmit && active !== targetActive) {\n propSwiper.onChange && propSwiper.onChange((targetActive + childCount) % childCount);\n }\n\n active = targetActive;\n setActive(targetActive);\n setOffset(targetOffset);\n getStyle(targetOffset);\n }; // 确定当前active 元素\n\n\n var getActive = function getActive(pace) {\n if (pace) {\n var _active = active + pace;\n\n if (propSwiper.loop) {\n return range(_active, -1, childCount);\n }\n\n return range(_active, 0, childCount - 1);\n }\n\n return active;\n }; // 计算位移\n\n\n var getOffset = function getOffset(active) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var currentPosition = active * Number(size);\n\n if (!propSwiper.loop) {\n currentPosition = Math.min(currentPosition, -minOffset);\n }\n\n var targetOffset = offset - currentPosition;\n\n if (!propSwiper.loop) {\n targetOffset = range(targetOffset, minOffset, 0);\n }\n\n return targetOffset;\n }; // 浏览器 帧 事件\n\n\n var requestFrame = function requestFrame(fn) {\n window.requestAnimationFrame.call(window, fn);\n }; // 取值 方法\n\n\n var range = function range(num, min, max) {\n return Math.min(Math.max(num, min), max);\n };\n\n var getDirection = function getDirection(x, y) {\n if (x > y && x > DISTANCE) return 'horizontal';\n if (y > x && y > DISTANCE) return 'vertical';\n return '';\n }; // 重置 全部位移信息\n\n\n var touchReset = function touchReset() {\n touch.startX = 0;\n touch.startY = 0;\n touch.deltaX = 0;\n touch.deltaY = 0;\n touch.offsetX = 0;\n touch.offsetY = 0;\n touch.delta = 0;\n touch.stateDirection = '';\n touch.touchTime = 0;\n }; // 触摸事件开始\n\n\n var touchStart = function touchStart(e) {\n var _e$touches$, _e$touches$2;\n\n touchReset();\n touch.startX = (e === null || e === void 0 ? void 0 : (_e$touches$ = e.touches[0]) === null || _e$touches$ === void 0 ? void 0 : _e$touches$.clientX) || 0;\n touch.startY = (e === null || e === void 0 ? void 0 : (_e$touches$2 = e.touches[0]) === null || _e$touches$2 === void 0 ? void 0 : _e$touches$2.clientY) || 0;\n }; // 触摸事件移动\n\n\n var touchMove = function touchMove(e) {\n var _e$touches$3, _e$touches$4;\n\n touch.deltaX = ((e === null || e === void 0 ? void 0 : (_e$touches$3 = e.touches[0]) === null || _e$touches$3 === void 0 ? void 0 : _e$touches$3.clientX) || 0) - touch.startX;\n touch.deltaY = ((e === null || e === void 0 ? void 0 : (_e$touches$4 = e.touches[0]) === null || _e$touches$4 === void 0 ? void 0 : _e$touches$4.clientY) || 0) - touch.startY;\n touch.offsetX = Math.abs(touch.deltaX);\n touch.offsetY = Math.abs(touch.deltaY);\n touch.delta = isVertical ? touch.deltaY : touch.deltaX;\n\n if (!touch.stateDirection) {\n touch.stateDirection = getDirection(touch.offsetX, touch.offsetY);\n }\n };\n\n var contentClass = classNames((_classNames = {}, _defineProperty(_classNames, 'van-swiper__inner', true), _defineProperty(_classNames, 'van-swiper__vertical', isVertical), _classNames));\n\n var getStyle = function getStyle() {\n var moveOffset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : offset;\n var target = innerRef.current;\n var _offset = 0;\n\n if (!isCenter) {\n _offset = moveOffset;\n } else {\n var _size = isVertical ? height : width;\n\n var val = isVertical ? (rect === null || rect === void 0 ? void 0 : rect.height) - _size : (rect === null || rect === void 0 ? void 0 : rect.width) - _size;\n _offset = moveOffset + (active === childCount - 1 && !propSwiper.loop ? -val / 2 : val / 2);\n }\n\n target.style.transitionDuration = \"\".concat(_swiper.current.moving ? 0 : propSwiper.duration, \"ms\");\n target.style[isVertical ? 'height' : 'width'] = \"\".concat(Number(size) * childCount, \"px\");\n target.style[isVertical ? 'width' : 'height'] = \"\".concat(isVertical ? width : height, \"px\");\n target.style.transform = \"translate3D\".concat(!isVertical ? \"(\".concat(_offset, \"px,0,0)\") : \"(0,\".concat(_offset, \"px,0)\"));\n };\n\n var onTouchStart = function onTouchStart(e) {\n if (propSwiper.isPreventDefault) e.preventDefault();\n if (propSwiper.isStopPropagation) e.stopPropagation();\n if (!propSwiper.touchable) return;\n touchStart(e);\n touch.touchTime = Date.now();\n stopAutoPlay();\n resettPosition();\n };\n\n var onTouchMove = function onTouchMove(e) {\n if (propSwiper.touchable && _swiper.current.moving) {\n touchMove(e);\n\n if (touch.stateDirection === propSwiper.direction) {\n move({\n offset: touch.delta\n });\n }\n }\n };\n\n var onTouchEnd = function onTouchEnd() {\n if (!propSwiper.touchable || !_swiper.current.moving) return;\n var speed = touch.delta / (Date.now() - touch.touchTime);\n var isShouldMove = Math.abs(speed) > 0.3 || Math.abs(touch.delta) > +(size / 2).toFixed(2);\n var pace = 0;\n _swiper.current.moving = false;\n\n if (isShouldMove && touch.stateDirection === propSwiper.direction) {\n var _offset2 = isVertical ? touch.offsetY : touch.offsetX;\n\n if (propSwiper.loop) {\n if (_offset2 > 0) {\n pace = touch.delta > 0 ? -1 : 1;\n } else {\n pace = 0;\n }\n } else {\n pace = -Math[touch.delta > 0 ? 'ceil' : 'floor'](touch.delta / size);\n }\n\n move({\n pace: pace,\n isEmit: true\n });\n } else if (touch.delta) {\n move({\n pace: 0\n });\n } else {\n getStyle();\n }\n\n autoplay();\n };\n\n useEffect(function () {\n _swiper.current.activePagination = (active + childCount) % childCount; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active]);\n\n var queryRect = function queryRect(element) {\n return new Promise(function (resolve) {\n var query = createSelectorQuery();\n query.select(\"#\".concat(element.id)) && query.select(\"#\".concat(element.id)).boundingClientRect();\n query.exec(function (res) {\n resolve(res[0]);\n });\n });\n };\n\n var init = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var active,\n rect,\n _active,\n _width,\n _height,\n targetOffset,\n _args = arguments;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n active = _args.length > 0 && _args[0] !== undefined ? _args[0] : +propSwiper.initPage;\n _context.next = 3;\n return queryRect(container.current);\n\n case 3:\n rect = _context.sent;\n _active = Math.max(Math.min(childCount - 1, active), 0);\n _width = propSwiper.width ? +propSwiper.width : rect === null || rect === void 0 ? void 0 : rect.width;\n _height = propSwiper.height ? +propSwiper.height : rect === null || rect === void 0 ? void 0 : rect.height;\n size = isVertical ? _height : _width;\n trackSize = childCount * Number(size);\n targetOffset = getOffset(_active);\n _swiper.current.moving = true;\n\n if (ready) {\n _swiper.current.moving = false;\n }\n\n setRect(rect);\n setActive(_active);\n setWidth(_width);\n setHeight(_height);\n setOffset(targetOffset);\n setReady(true);\n\n case 18:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function init() {\n return _ref2.apply(this, arguments);\n };\n }();\n\n useEffect(function () {\n if (ready) {\n getStyle();\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, [isVertical, width, height, offset, ready]);\n useEffect(function () {\n return function () {\n setReady(false);\n }; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n useEffect(function () {\n stopAutoPlay();\n autoplay(); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children]);\n useEffect(function () {\n init(); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [propSwiper.initPage]);\n useEffect(function () {\n return function () {\n stopAutoPlay();\n };\n }, []);\n useReady(function () {\n init();\n Taro.nextTick(function () {\n setTimeout(function () {\n stopAutoPlay();\n autoplay();\n }, 16);\n });\n });\n\n var itemStyle = function itemStyle(index) {\n var style = {};\n\n var _direction = propSwiper.direction || direction;\n\n var _size = size;\n\n if (_size) {\n style[_direction === 'horizontal' ? 'width' : 'height'] = \"\".concat(_size, \"px\");\n }\n\n var offset = childOffset[index];\n\n if (offset) {\n style.transform = \"translate3D\".concat(_direction === 'horizontal' ? \"(\".concat(offset, \"px,0,0)\") : \"(0,\".concat(offset, \"px,0)\"));\n }\n\n return style;\n };\n\n useImperativeHandle(ref, function () {\n return {\n to: to,\n next: next,\n prev: prev\n };\n });\n return /*#__PURE__*/_jsx(DataContext.Provider, {\n value: parent,\n children: /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: \"van-swiper \".concat(className),\n ref: container\n }, rest), {}, {\n id: 'container-' + refRandomId,\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd // @ts-ignore\n ,\n catchMove: isVertical,\n style: _objectSpread(_objectSpread({}, style), {}, {\n height: height\n }),\n children: [/*#__PURE__*/_jsxs(View, {\n className: contentClass,\n ref: innerRef,\n children: [Children.map(childs, function (child, index) {\n return /*#__PURE__*/_jsx(View, {\n className: 'van-swiper-item-wrapper',\n style: itemStyle(index),\n children: child\n }, index);\n }), process.env.TARO_ENV !== 'h5' && /*#__PURE__*/_jsx(View, {\n className: 'van-swiper-item-wrapper',\n style: itemStyle(0),\n children: childs && childs.length ? childs[0] : ''\n })]\n }), propSwiper.paginationVisible && !('pageContent' in propSwiper) ? /*#__PURE__*/_jsx(View, {\n className: classNames((_classNames2 = {}, _defineProperty(_classNames2, 'van-swiper__pagination', true), _defineProperty(_classNames2, 'van-swiper__pagination-vertical', isVertical), _classNames2)),\n children: Children.map(childs, function (_, index) {\n var _classNames3;\n\n return /*#__PURE__*/_jsx(Text, {\n style: (active + childCount) % childCount === index ? {\n backgroundColor: propSwiper.paginationColor\n } : undefined,\n className: classNames((_classNames3 = {}, _defineProperty(_classNames3, 'van-swiper__pagination-item', true), _defineProperty(_classNames3, \"active\", (active + childCount) % childCount === index), _classNames3))\n }, index);\n })\n }) : /*#__PURE__*/_jsx(View, {\n children: pageContent\n })]\n }))\n });\n};\n\nexport var Swiper_ = /*#__PURE__*/forwardRef(Swiper);\nexport default Swiper_;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"type\", \"size\", \"mark\", \"plain\", \"round\", \"color\", \"textColor\", \"closeable\", \"children\", \"onClose\", \"style\", \"className\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport { Icon } from '../icon';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Tag(props) {\n var _props$type = props.type,\n type = _props$type === void 0 ? 'default' : _props$type,\n size = props.size,\n mark = props.mark,\n plain = props.plain,\n round = props.round,\n color = props.color,\n textColor = props.textColor,\n closeable = props.closeable,\n children = props.children,\n onClose = props.onClose,\n style = props.style,\n className = props.className,\n others = _objectWithoutProperties(props, _excluded);\n\n return /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: ' ' + utils.bem('tag', [type, size, {\n mark: mark,\n plain: plain,\n round: round\n }]) + \" \".concat(className || ''),\n style: utils.style([computed.rootStyle({\n plain: plain,\n color: color,\n textColor: textColor\n }), style])\n }, others), {}, {\n children: [children, closeable && /*#__PURE__*/_jsx(Icon, {\n name: \"cross\",\n className: \"van-tag__close\",\n onClick: onClose\n })]\n }));\n}\nexport default Tag;","import { style } from '../wxs/style';\n\nfunction rootStyle(data) {\n return style({\n 'background-color': data.plain ? '' : data.color,\n color: data.textColor || data.plain ? data.textColor || data.color : ''\n });\n}\n\nexport { rootStyle };","import {\n Button,\n Card,\n Col,\n Divider,\n Grid,\n GridItem,\n Row,\n Tag,\n} from \"@antmjs/vantui\";\nimport { View } from \"@tarojs/components\";\nimport React, { useCallback } from \"react\";\nimport { Swiper, SwiperItem, Image } from \"@antmjs/vantui\";\nimport react from \"react\";\nimport { NoticeBar } from \"@antmjs/vantui\";\nimport Taro from \"@tarojs/taro\";\n\nconst Home = () => {\n // const { images } = COMMON\n const [initPage1, setInitPage1] = react.useState(0);\n const onChange = (e) => {};\n const images = [\n \"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg\",\n \"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg\",\n ];\n\n return (\n \n {/* 通知条 */}\n \n {/* 顶部 */}\n {/* \n \n \n 深圳\n \n
\n */}\n \n {/* 深圳 */}\n \n 深圳\n \n \n {/* 轮播图 */}\n \n \n {images.map((item, index) => (\n \n \n \n ))}\n \n \n\n {/* 模块 */}\n \n {\n // 跳转到目的页面,打开新页面\n Taro.navigateTo({\n url: \"/pages/activityList/index\",\n });\n }}\n />\n \n \n \n \n\n {/* 分割线 */}\n \n \n \n\n {[1, 2].map((item: any) => {\n return (\n \n // \n // \n // \n // }\n />\n );\n })}\n \n );\n};\n\nexport default Home;\n","import { createPageConfig } from '@tarojs/runtime'\nimport component from \"../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx\"\nvar config = {};\n\n\nvar inst = Page(createPageConfig(component, 'pages/home/index', {root:{cn:[]}}, config || {}))\n\n\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return exports;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var exports = {},\n Op = Object.prototype,\n hasOwn = Op.hasOwnProperty,\n defineProperty = Object.defineProperty || function (obj, key, desc) {\n obj[key] = desc.value;\n },\n $Symbol = \"function\" == typeof Symbol ? Symbol : {},\n iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n function define(obj, key, value) {\n return Object.defineProperty(obj, key, {\n value: value,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), obj[key];\n }\n try {\n define({}, \"\");\n } catch (err) {\n define = function define(obj, key, value) {\n return obj[key] = value;\n };\n }\n function wrap(innerFn, outerFn, self, tryLocsList) {\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n generator = Object.create(protoGenerator.prototype),\n context = new Context(tryLocsList || []);\n return defineProperty(generator, \"_invoke\", {\n value: makeInvokeMethod(innerFn, self, context)\n }), generator;\n }\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n exports.wrap = wrap;\n var ContinueSentinel = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n var getProto = Object.getPrototypeOf,\n NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (\"throw\" !== record.type) {\n var result = record.arg,\n value = result.value;\n return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n result.value = unwrapped, resolve(result);\n }, function (error) {\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n reject(record.arg);\n }\n var previousPromise;\n defineProperty(this, \"_invoke\", {\n value: function value(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(innerFn, self, context) {\n var state = \"suspendedStart\";\n return function (method, arg) {\n if (\"executing\" === state) throw new Error(\"Generator is already running\");\n if (\"completed\" === state) {\n if (\"throw\" === method) throw arg;\n return doneResult();\n }\n for (context.method = method, context.arg = arg;;) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n context.dispatchException(context.arg);\n } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n state = \"executing\";\n var record = tryCatch(innerFn, self, context);\n if (\"normal\" === record.type) {\n if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n return {\n value: record.arg,\n done: context.done\n };\n }\n \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n }\n };\n }\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (undefined === method) {\n if (context.delegate = null, \"throw\" === context.method) {\n if (delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method)) return ContinueSentinel;\n context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a 'throw' method\");\n }\n return ContinueSentinel;\n }\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n var info = record.arg;\n return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n }\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\", delete record.arg, entry.completion = record;\n }\n function Context(tryLocsList) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) return iteratorMethod.call(iterable);\n if (\"function\" == typeof iterable.next) return iterable;\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n for (; ++i < iterable.length;) {\n if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n }\n return next.value = undefined, next.done = !0, next;\n };\n return next.next = next;\n }\n }\n return {\n next: doneResult\n };\n }\n function doneResult() {\n return {\n value: undefined,\n done: !0\n };\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n var ctor = \"function\" == typeof genFun && genFun.constructor;\n return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n }, exports.mark = function (genFun) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun;\n }, exports.awrap = function (arg) {\n return {\n __await: arg\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n void 0 === PromiseImpl && (PromiseImpl = Promise);\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n return this;\n }), define(Gp, \"toString\", function () {\n return \"[object Generator]\";\n }), exports.keys = function (val) {\n var object = Object(val),\n keys = [];\n for (var key in object) {\n keys.push(key);\n }\n return keys.reverse(), function next() {\n for (; keys.length;) {\n var key = keys.pop();\n if (key in object) return next.value = key, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, exports.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(skipTempReset) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {\n \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);\n }\n },\n stop: function stop() {\n this.done = !0;\n var rootRecord = this.tryEntries[0].completion;\n if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(exception) {\n if (this.done) throw exception;\n var context = this;\n function handle(loc, caught) {\n return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i],\n record = entry.completion;\n if (\"root\" === entry.tryLoc) return handle(\"end\");\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n } else {\n if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n var record = finallyEntry ? finallyEntry.completion : {};\n return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n },\n complete: function complete(record, afterLoc) {\n if (\"throw\" === record.type) throw record.arg;\n return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n },\n finish: function finish(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n }\n },\n \"catch\": function _catch(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (\"throw\" === record.type) {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n return this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n }\n }, exports;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// TODO(Babel 8): Remove this file.\n\nvar runtime = require(\"../helpers/regeneratorRuntime\")();\nmodule.exports = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"pages/home/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACnNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;AC3CA;AACA;;;;;;;;;;;;ACDA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;AC/mBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACEA;AAGA;AAEA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAKA;AACA;AAGA;AACA;AAAA;AAUA;AAEA;AAAA;AAAA;AAAA;AAEA;AAGA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAIA;AACA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AAGA;AACA;AAAA;;AACA;AAAA;AAIA;AAAA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AAGA;AAEA;;;;;;;;;;;;;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;;;;;;;;;;;;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpLA;AACA;AACA;AAGA;AACA;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC1TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/._node_modules_@antmjs_vantui_es_card_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_divider_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_divider_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid-item_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid-item_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_grid_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_image_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_image_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_notice-bar_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_notice-bar_wxs.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper-item_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper_context.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_swiper_swiper.js","webpack://myApp/._node_modules_@antmjs_vantui_es_tabbar-item_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_tabbar_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_tag_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_tag_wxs.js","webpack://myApp/._src_pages_home_index.tsx","webpack://myApp/./src/pages/home/index.tsx?e8ed","webpack://myApp/._node_modules_classnames_index.js","webpack://myApp/._node_modules_rc-util_lib_Children_toArray.js","webpack://myApp/._node_modules_react-is_cjs_react-is.development.js","webpack://myApp/._node_modules_react-is_index.js","webpack://myApp/._node_modules_@babel_runtime_helpers_interopRequireDefault.js","webpack://myApp/._node_modules_@babel_runtime_helpers_regeneratorRuntime.js","webpack://myApp/._node_modules_@babel_runtime_helpers_typeof.js","webpack://myApp/._node_modules_@babel_runtime_regenerator_index.js","webpack://myApp/._node_modules_@babel_runtime_helpers_esm_asyncToGenerator.js"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"tag\", \"num\", \"desc\", \"thumb\", \"title\", \"price\", \"centered\", \"lazyLoad\", \"thumbLink\", \"originPrice\", \"thumbMode\", \"currency\", \"renderFooter\", \"renderBottom\", \"renderNum\", \"renderOriginPrice\", \"renderPriceTop\", \"renderThumb\", \"renderPrice\", \"renderDesc\", \"renderTag\", \"renderTitle\", \"renderTags\", \"style\", \"className\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View, Text, Image } from '@tarojs/components';\nimport { useEffect, useState } from 'react';\nimport * as utils from '../wxs/utils';\nimport { jumpLink } from '../common/jumpLink';\nimport { Tag } from '../tag';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Card(props) {\n var tag = props.tag,\n num = props.num,\n desc = props.desc,\n thumb = props.thumb,\n title = props.title,\n price = props.price,\n centered = props.centered,\n lazyLoad = props.lazyLoad,\n thumbLink = props.thumbLink,\n originPrice = props.originPrice,\n _props$thumbMode = props.thumbMode,\n thumbMode = _props$thumbMode === void 0 ? 'aspectFit' : _props$thumbMode,\n _props$currency = props.currency,\n currency = _props$currency === void 0 ? '¥' : _props$currency,\n renderFooter = props.renderFooter,\n renderBottom = props.renderBottom,\n renderNum = props.renderNum,\n renderOriginPrice = props.renderOriginPrice,\n renderPriceTop = props.renderPriceTop,\n renderThumb = props.renderThumb,\n renderPrice = props.renderPrice,\n renderDesc = props.renderDesc,\n renderTag = props.renderTag,\n renderTitle = props.renderTitle,\n renderTags = props.renderTags,\n style = props.style,\n className = props.className,\n others = _objectWithoutProperties(props, _excluded);\n\n var _useState = useState({\n integerStr: '',\n decimalStr: ''\n }),\n _useState2 = _slicedToArray(_useState, 2),\n state = _useState2[0],\n setState = _useState2[1];\n\n var integerStr = state.integerStr,\n decimalStr = state.decimalStr;\n useEffect(function () {\n var priceArr = price.toString().split('.');\n setState(function (pre) {\n return _objectSpread(_objectSpread({}, pre), {}, {\n integerStr: priceArr[0],\n decimalStr: priceArr[1] ? \".\".concat(priceArr[1]) : ''\n });\n });\n }, [price]);\n return /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: \"van-card \".concat(className || ''),\n style: style\n }, others), {}, {\n children: [/*#__PURE__*/_jsxs(View, {\n className: utils.bem('card__header', {\n center: centered\n }),\n children: [/*#__PURE__*/_jsxs(View, {\n className: \"van-card__thumb\",\n onClick: function onClick() {\n thumbLink && jumpLink(thumbLink);\n },\n children: [thumb ? /*#__PURE__*/_jsx(Image, {\n src: thumb,\n mode: thumbMode,\n lazyLoad: lazyLoad,\n className: \"van-card__img thumb-class\"\n }) : renderThumb, /*#__PURE__*/_jsx(View, {\n children: tag ? /*#__PURE__*/_jsx(Tag, {\n mark: true,\n type: \"danger\",\n className: \"van-card__tag\",\n children: tag\n }) : renderTag\n })]\n }), /*#__PURE__*/_jsxs(View, {\n className: 'van-card__content ' + utils.bem('card__content', {\n center: centered\n }),\n children: [/*#__PURE__*/_jsxs(View, {\n children: [/*#__PURE__*/_jsx(View, {\n children: title ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__title title-class\",\n children: title\n }) : renderTitle\n }), /*#__PURE__*/_jsx(View, {\n children: desc ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__desc desc-class\",\n children: desc\n }) : renderDesc\n }), renderTags]\n }), /*#__PURE__*/_jsxs(View, {\n className: \"van-card__bottom\",\n children: [renderPriceTop, /*#__PURE__*/_jsx(View, {\n children: price ? /*#__PURE__*/_jsxs(View, {\n className: \"van-card__price price-class\",\n children: [/*#__PURE__*/_jsx(Text, {\n children: currency\n }), /*#__PURE__*/_jsx(Text, {\n className: \"van-card__price-integer\",\n children: integerStr\n }), /*#__PURE__*/_jsx(Text, {\n className: \"van-card__price-decimal\",\n children: decimalStr\n })]\n }) : renderPrice\n }), /*#__PURE__*/_jsx(View, {\n children: originPrice ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__origin-price origin-price-class\",\n children: currency + ' ' + originPrice\n }) : renderOriginPrice\n }), /*#__PURE__*/_jsx(View, {\n children: num ? /*#__PURE__*/_jsx(View, {\n className: \"van-card__num num-class\",\n children: 'x ' + num\n }) : renderNum\n }), renderBottom]\n })]\n })]\n }), /*#__PURE__*/_jsx(View, {\n className: \"van-card__footer\",\n children: renderFooter\n })]\n }));\n}\nexport default Card;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"dashed\", \"hairline\", \"contentPosition\", \"borderColor\", \"textColor\", \"fontSize\", \"style\", \"className\", \"children\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Divider(props) {\n var _props$dashed = props.dashed,\n dashed = _props$dashed === void 0 ? false : _props$dashed,\n _props$hairline = props.hairline,\n hairline = _props$hairline === void 0 ? false : _props$hairline,\n contentPosition = props.contentPosition,\n borderColor = props.borderColor,\n textColor = props.textColor,\n fontSize = props.fontSize,\n style = props.style,\n className = props.className,\n children = props.children,\n others = _objectWithoutProperties(props, _excluded);\n\n return /*#__PURE__*/_jsx(View, _objectSpread(_objectSpread({\n className: ' ' + utils.bem('divider', [{\n dashed: dashed,\n hairline: hairline\n }, contentPosition]) + \" \".concat(className || ''),\n style: utils.style([computed.rootStyle({\n borderColor: borderColor,\n textColor: textColor,\n fontSize: fontSize\n }), style])\n }, others), {}, {\n children: children\n }));\n}\nexport default Divider;","import { style } from '../wxs/style';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction rootStyle(data) {\n return style([{\n 'border-color': data.borderColor,\n color: data.textColor,\n 'font-size': addUnit(data.fontSize)\n }]);\n}\n\nexport { rootStyle };","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"icon\", \"iconColor\", \"iconPrefix\", \"dot\", \"info\", \"badge\", \"text\", \"setChildrenInstance\", \"parentInstance\", \"index\", \"url\", \"linkType\", \"style\", \"className\"];\nimport { View, Text } from '@tarojs/components';\nimport { useState, useEffect, useCallback } from 'react';\nimport { jumpLink } from '../common/jumpLink';\nimport * as utils from '../wxs/utils';\nimport VanIcon from '../icon/index';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function GridItem(props) {\n var icon = props.icon,\n iconColor = props.iconColor,\n _props$iconPrefix = props.iconPrefix,\n iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,\n dot = props.dot,\n info = props.info,\n badge = props.badge,\n text = props.text,\n setChildrenInstance = props.setChildrenInstance,\n parentInstance = props.parentInstance,\n index = props.index,\n url = props.url,\n linkType = props.linkType,\n style = props.style,\n className = props.className,\n others = _objectWithoutProperties(props, _excluded);\n\n var _useState = useState({}),\n _useState2 = _slicedToArray(_useState, 2),\n parentState = _useState2[0],\n setParentState = _useState2[1];\n\n useEffect(function () {\n setChildrenInstance(index, {\n updateStyle: updateStyle\n });\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [index, setChildrenInstance]);\n useEffect(function () {\n updateStyle(); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [parentInstance.columnNum]);\n var updateStyle = useCallback(function () {\n var columnNum = parentInstance.columnNum,\n border = parentInstance.border,\n square = parentInstance.square,\n gutter = parentInstance.gutter,\n clickable = parentInstance.clickable,\n center = parentInstance.center,\n direction = parentInstance.direction,\n reverse = parentInstance.reverse,\n iconSize = parentInstance.iconSize;\n setParentState({\n center: center,\n border: border,\n square: square,\n gutter: gutter,\n clickable: clickable,\n direction: direction,\n reverse: reverse,\n iconSize: iconSize,\n index: index,\n columnNum: columnNum\n });\n }, [parentInstance, index]);\n return /*#__PURE__*/_jsx(View, {\n className: ' ' + utils.bem('grid-item', {\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square\n }) + ' ' + className,\n style: utils.style([computed.wrapperStyle({\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square,\n gutter: parentState === null || parentState === void 0 ? void 0 : parentState.gutter,\n columnNum: parentState === null || parentState === void 0 ? void 0 : parentState.columnNum,\n index: parentState === null || parentState === void 0 ? void 0 : parentState.index\n }), style]),\n onClick: function onClick(e) {\n var _others$onClick;\n\n url && jumpLink(url, linkType);\n others === null || others === void 0 ? void 0 : (_others$onClick = others.onClick) === null || _others$onClick === void 0 ? void 0 : _others$onClick.call(others, e);\n },\n children: /*#__PURE__*/_jsx(View, {\n className: 'content-class ' + utils.bem('grid-item__content', [parentState === null || parentState === void 0 ? void 0 : parentState.direction, {\n center: parentState === null || parentState === void 0 ? void 0 : parentState.center,\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square,\n reverse: parentState === null || parentState === void 0 ? void 0 : parentState.reverse,\n clickable: parentState === null || parentState === void 0 ? void 0 : parentState.clickable,\n surround: (parentState === null || parentState === void 0 ? void 0 : parentState.border) && (parentState === null || parentState === void 0 ? void 0 : parentState.gutter)\n }]) + ' ' + (parentState !== null && parentState !== void 0 && parentState.border ? 'van-hairline--surround' : ''),\n style: computed.contentStyle({\n square: parentState === null || parentState === void 0 ? void 0 : parentState.square,\n gutter: parentState === null || parentState === void 0 ? void 0 : parentState.gutter\n }),\n children: others.children || /*#__PURE__*/_jsxs(_Fragment, {\n children: [/*#__PURE__*/_jsx(View, {\n className: \"van-grid-item__icon icon-class\",\n children: icon ? /*#__PURE__*/_jsx(VanIcon, {\n name: icon,\n color: iconColor,\n classPrefix: iconPrefix,\n dot: dot,\n info: badge || info,\n size: parentState === null || parentState === void 0 ? void 0 : parentState.iconSize\n }) : parentState.renderIcon\n }), /*#__PURE__*/_jsx(View, {\n className: \"van-grid-item__text text-class\",\n children: text ? /*#__PURE__*/_jsx(Text, {\n children: text\n }) : parentState.renderText\n })]\n })\n })\n });\n}\nexport default GridItem;","import { style } from '../wxs/style';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction wrapperStyle(data) {\n var width = 100 / data.columnNum + '%';\n return style({\n width: width,\n 'padding-top': data.square ? width : null,\n 'padding-right': addUnit(data.gutter),\n 'margin-top': data.index >= data.columnNum && !data.square ? addUnit(data.gutter) : null\n });\n}\n\nfunction contentStyle(data) {\n return data.square ? style({\n right: addUnit(data.gutter),\n bottom: addUnit(data.gutter),\n height: 'auto'\n }) : '';\n}\n\nexport { wrapperStyle, contentStyle };","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"gutter\", \"clickable\", \"columnNum\", \"center\", \"border\", \"direction\", \"iconSize\", \"square\", \"reverse\", \"className\", \"style\"];\nimport { View } from '@tarojs/components';\nimport { cloneElement, useCallback, useMemo, useRef, useEffect } from 'react';\nimport * as utils from '../wxs/utils';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Grid(props) {\n var _props$gutter = props.gutter,\n gutter = _props$gutter === void 0 ? null : _props$gutter,\n clickable = props.clickable,\n _props$columnNum = props.columnNum,\n columnNum = _props$columnNum === void 0 ? 4 : _props$columnNum,\n _props$center = props.center,\n center = _props$center === void 0 ? true : _props$center,\n _props$border = props.border,\n border = _props$border === void 0 ? true : _props$border,\n direction = props.direction,\n _props$iconSize = props.iconSize,\n iconSize = _props$iconSize === void 0 ? '48' : _props$iconSize,\n square = props.square,\n _props$reverse = props.reverse,\n reverse = _props$reverse === void 0 ? false : _props$reverse,\n _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n _props$style = props.style,\n style = _props$style === void 0 ? {} : _props$style,\n others = _objectWithoutProperties(props, _excluded);\n\n var childrenInstance = useRef([]);\n var updateChildren = useCallback(function () {\n childrenInstance.current.forEach(function (child) {\n child.updateStyle();\n });\n }, []);\n useEffect(function () {\n updateChildren();\n }, [updateChildren]);\n var setChildrenInstance = useCallback(function (index, instance) {\n childrenInstance.current[index] = instance;\n }, []);\n var ResetChildren = useMemo(function () {\n var res = [];\n\n if (others.children && Array.isArray(others.children)) {\n others.children.forEach(function (child, index) {\n res.push( /*#__PURE__*/cloneElement(child, {\n setChildrenInstance: setChildrenInstance,\n key: index,\n index: index,\n parentInstance: {\n columnNum: columnNum,\n border: border,\n square: square,\n gutter: gutter,\n clickable: clickable,\n center: center,\n direction: direction,\n reverse: reverse,\n iconSize: iconSize\n }\n }));\n });\n }\n\n return res;\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [others.children, columnNum]);\n return /*#__PURE__*/_jsx(View, {\n className: 'van-grid ' + (border && !gutter ? 'van-hairline--top' : '') + ' ' + className,\n style: utils.style([computed.rootStyle({\n gutter: gutter\n }), style]),\n children: ResetChildren\n });\n}\nexport default Grid;","import { style } from '../wxs/style';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction rootStyle(data) {\n return style({\n 'padding-left': addUnit(data.gutter)\n });\n}\n\nexport { rootStyle };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"src\", \"round\", \"width\", \"height\", \"radius\", \"lazyLoad\", \"showMenuByLongpress\", \"fit\", \"showError\", \"showLoading\", \"className\", \"style\", \"renderError\", \"renderLoading\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { useEffect, useState, useCallback, useMemo } from 'react';\nimport { View, Image as TaroImage } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport VanIcon from '../icon/index';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Image(props) {\n var src = props.src,\n round = props.round,\n width = props.width,\n height = props.height,\n radius = props.radius,\n lazyLoad = props.lazyLoad,\n showMenuByLongpress = props.showMenuByLongpress,\n fit = props.fit,\n _props$showError = props.showError,\n showError = _props$showError === void 0 ? true : _props$showError,\n _props$showLoading = props.showLoading,\n showLoading = _props$showLoading === void 0 ? true : _props$showLoading,\n className = props.className,\n style = props.style,\n renderError = props.renderError,\n renderLoading = props.renderLoading,\n others = _objectWithoutProperties(props, _excluded);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n loading = _useState2[0],\n setLoading = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n error = _useState4[0],\n setError = _useState4[1];\n\n useEffect(function () {\n if (loading === undefined) setLoading(true);\n setError(false);\n }, [loading]);\n var onLoad = useCallback(function () {\n setLoading(false);\n }, []);\n var onError = useCallback(function () {\n setError(true);\n }, []); //样式挂在给img外层的webCompoent\n\n var styleH5 = useMemo(function () {\n var style = {};\n\n if (process.env.TARO_ENV === 'h5') {\n if (fit === 'heightFix' || fit === 'widthFix') {\n style = {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center'\n };\n }\n }\n\n return style;\n }, [fit]);\n return /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n style: utils.style([computed.rootStyle({\n width: width,\n height: height,\n radius: radius\n }), style]),\n className: ' ' + utils.bem('image', {\n round: round\n }) + ' ' + className,\n onClick: others.onClick\n }, others), {}, {\n children: [!error && /*#__PURE__*/_jsx(TaroImage, {\n src: src,\n mode: computed.mode(fit || 'none'),\n lazyLoad: lazyLoad,\n className: \"image-class van-image__img\",\n showMenuByLongpress: showMenuByLongpress,\n onLoad: onLoad,\n onError: onError,\n style: styleH5\n }), loading && showLoading && /*#__PURE__*/_jsx(View, {\n className: \"loading-class van-image__loading\",\n children: renderLoading || /*#__PURE__*/_jsx(VanIcon, {\n name: \"photo\",\n className: \"van-image__loading-icon\"\n })\n }), error && showError && /*#__PURE__*/_jsx(View, {\n className: \"error-class van-image__error\",\n children: renderError || /*#__PURE__*/_jsx(VanIcon, {\n name: \"photo-fail\",\n className: \"van-image__error-icon\"\n })\n })]\n }));\n}\nexport default Image;","import { style } from '../wxs/utils';\nimport { addUnit } from '../wxs/add-unit';\n\nfunction rootStyle(data) {\n return style([{\n width: addUnit(data.width),\n height: addUnit(data.height),\n 'border-radius': addUnit(data.radius)\n }, data.radius ? 'overflow: hidden' : null]);\n}\n\nvar FIT_MODE_MAP = {\n none: 'scaleToFill',\n fill: 'scaleToFill',\n cover: 'aspectFill',\n contain: 'aspectFit',\n widthFix: 'widthFix',\n heightFix: 'heightFix',\n scaleDown: 'aspectFit'\n};\n\nfunction mode(fit) {\n return FIT_MODE_MAP[fit];\n}\n\nexport { rootStyle, mode };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nvar _excluded = [\"text\", \"mode\", \"url\", \"openType\", \"delay\", \"speed\", \"scrollable\", \"leftIcon\", \"color\", \"backgroundColor\", \"background\", \"wrapable\", \"renderLeftIcon\", \"renderRightIcon\", \"onClick\", \"onClose\", \"style\", \"className\", \"children\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { createAnimation, useReady, nextTick } from '@tarojs/taro';\nimport { useState, useEffect, useRef, useCallback } from 'react';\nimport { View, Navigator } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport { getRect, requestAnimationFrame } from '../common/utils';\nimport VanIcon from '../icon/index';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar NOTICE_BAR_INDEX = 0;\nexport function NoticeBar(props) {\n var _useState = useState({\n ready: false,\n show: true,\n animationData: {\n actions: []\n },\n unitag: 0\n }),\n _useState2 = _slicedToArray(_useState, 2),\n state = _useState2[0],\n setState = _useState2[1];\n\n var params = {\n animation: null,\n resetAnimation: null,\n timer: null,\n wrapWidth: undefined,\n contentWidth: undefined,\n duration: undefined\n };\n var ref = useRef(params);\n\n var _props$text = props.text,\n text = _props$text === void 0 ? '' : _props$text,\n _props$mode = props.mode,\n mode = _props$mode === void 0 ? '' : _props$mode,\n _props$url = props.url,\n url = _props$url === void 0 ? '' : _props$url,\n _props$openType = props.openType,\n openType = _props$openType === void 0 ? 'navigate' : _props$openType,\n _props$delay = props.delay,\n delay = _props$delay === void 0 ? 1 : _props$delay,\n _props$speed = props.speed,\n speed = _props$speed === void 0 ? 60 : _props$speed,\n _props$scrollable = props.scrollable,\n scrollable = _props$scrollable === void 0 ? null : _props$scrollable,\n _props$leftIcon = props.leftIcon,\n leftIcon = _props$leftIcon === void 0 ? '' : _props$leftIcon,\n _props$color = props.color,\n color = _props$color === void 0 ? '#ed6a0c' : _props$color,\n _props$backgroundColo = props.backgroundColor,\n backgroundColor = _props$backgroundColo === void 0 ? '#fffbe8' : _props$backgroundColo,\n background = props.background,\n wrapable = props.wrapable,\n renderLeftIcon = props.renderLeftIcon,\n renderRightIcon = props.renderRightIcon,\n onClick = props.onClick,\n onClose = props.onClose,\n style = props.style,\n className = props.className,\n children = props.children,\n others = _objectWithoutProperties(props, _excluded);\n\n useEffect(function () {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n unitag: NOTICE_BAR_INDEX++\n });\n });\n }, []);\n useReady(function () {\n if (process.env.TARO_ENV !== 'h5') {\n ref.current.resetAnimation = createAnimation({\n duration: 0,\n timingFunction: 'linear'\n });\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n ready: true\n });\n });\n }\n });\n useEffect(function () {\n ref.current.resetAnimation = createAnimation({\n duration: 0,\n timingFunction: 'linear'\n });\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n ready: true\n });\n });\n }, []);\n useEffect(function () {\n if (text && state.ready) {\n init();\n }\n\n return function () {\n /* eslint-disable-next-line */\n ref.current.timer && clearTimeout(ref.current.timer);\n };\n /* eslint-disable-next-line */\n }, [text, speed, state.ready]);\n var scroll = useCallback(function () {\n var isInit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n ref.current.timer && clearTimeout(ref.current.timer);\n ref.current.timer = null;\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n animationData: ref.current.resetAnimation.translateX(isInit ? 0 : ref.current.wrapWidth).step().export()\n });\n });\n setTimeout(function () {\n requestAnimationFrame(function () {\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n animationData: ref.current.animation.translateX(-ref.current.contentWidth).step().export()\n });\n });\n });\n }, 10);\n ref.current.timer = setTimeout(function () {\n scroll();\n }, ref.current.duration);\n }, []);\n var init = useCallback(function () {\n requestAnimationFrame(function () {\n Promise.all([getRect(null, \".van-notice-bar__content_\".concat(state.unitag)), getRect(null, \".van-notice-bar__wrap_\".concat(state.unitag))]).then(function (rects) {\n var contentRect = rects[0];\n var wrapRect = rects[1];\n\n if (contentRect == null || wrapRect == null || !contentRect.width || !wrapRect.width || scrollable === false) {\n return;\n }\n\n nextTick(function () {\n if (scrollable || wrapRect.width <= contentRect.width) {\n ref.current.wrapWidth = wrapRect.width;\n ref.current.contentWidth = contentRect.width;\n ref.current.duration = (wrapRect.width + contentRect.width) / speed * 1000;\n ref.current.animation = createAnimation({\n duration: ref.current.duration,\n timingFunction: 'linear',\n delay: delay\n });\n scroll(true);\n }\n });\n });\n });\n }, [state.unitag, scrollable, speed, delay, scroll]);\n var onClickIcon = useCallback(function (event) {\n if (mode === 'closeable') {\n ref.current.timer && clearTimeout(ref.current.timer);\n ref.current.timer = null;\n setState(function (state) {\n return _objectSpread(_objectSpread({}, state), {}, {\n show: false\n });\n });\n onClose === null || onClose === void 0 ? void 0 : onClose(event);\n }\n }, [mode, onClose]);\n return state.show && /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: utils.bem('notice-bar', {\n withicon: mode,\n wrapable: wrapable\n }) + \" \".concat(className || ''),\n style: utils.style([computed.rootStyle({\n color: color,\n backgroundColor: backgroundColor,\n background: background\n }), style])\n }, others), {}, {\n onClick: onClick,\n children: [leftIcon ? /*#__PURE__*/_jsx(VanIcon, {\n name: leftIcon,\n className: \"van-notice-bar__left-icon\"\n }) : renderLeftIcon, /*#__PURE__*/_jsx(View, {\n className: \"van-notice-bar__wrap van-notice-bar__wrap_\".concat(state.unitag),\n children: /*#__PURE__*/_jsxs(View, {\n className: \"van-notice-bar__content van-notice-bar__content_\".concat(state.unitag, \" \") + (scrollable === false && !wrapable ? 'van-ellipsis' : ''),\n animation: state.animationData,\n children: [text, !text && children]\n })\n }), mode === 'closeable' ? /*#__PURE__*/_jsx(VanIcon, {\n className: \"van-notice-bar__right-icon\",\n name: \"cross\",\n onClick: onClickIcon\n }) : mode === 'link' ? /*#__PURE__*/_jsx(Navigator, {\n url: url,\n openType: openType,\n children: /*#__PURE__*/_jsx(VanIcon, {\n className: \"van-notice-bar__right-icon\",\n name: \"arrow\"\n })\n }) : renderRightIcon]\n }));\n}\nexport default NoticeBar;","import { style } from '../wxs/style';\n\nfunction rootStyle(data) {\n return style({\n color: data.color,\n 'background-color': data.backgroundColor,\n background: data.background\n });\n}\n\nexport { rootStyle };","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { useContext } from 'react';\nimport { View } from '@tarojs/components';\nimport { DataContext } from '../swiper/context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar defaultProps = {\n direction: 'horizontal',\n className: ''\n};\nexport var SwiperItem = function SwiperItem(props) {\n var _props = _objectSpread(_objectSpread({}, defaultProps), props);\n\n var children = _props.children,\n direction = _props.direction,\n size = _props.size,\n className = _props.className;\n var parent = useContext(DataContext);\n\n var style = function style() {\n var style = {};\n\n var _direction = (parent === null || parent === void 0 ? void 0 : parent.propSwiper.direction) || direction;\n\n var _size = (parent === null || parent === void 0 ? void 0 : parent.size) || size;\n\n if (_size) {\n style[_direction === 'horizontal' ? 'width' : 'height'] = \"\".concat(_size, \"px\");\n }\n\n return style;\n };\n\n return /*#__PURE__*/_jsx(View, {\n className: \"van-swiper-item \".concat(className),\n style: style(),\n children: children\n });\n};\nexport default SwiperItem;","import { createContext } from 'react';\nexport var DataContext = /*#__PURE__*/createContext({});","import Swiper from './swiper';\nexport { Swiper };\nexport default Swiper;","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\nvar _excluded = [\"children\", \"direction\", \"className\", \"pageContent\", \"onChange\", \"initPage\", \"paginationColor\", \"paginationVisible\", \"touchable\", \"isPreventDefault\", \"isStopPropagation\", \"autoPlay\", \"isCenter\", \"style\"];\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { useState, useEffect, useRef, useMemo, Children, forwardRef, useImperativeHandle, isValidElement } from 'react';\nimport classNames from 'classnames';\nimport Taro, { useReady, createSelectorQuery } from '@tarojs/taro';\nimport { View, Text } from '@tarojs/components';\nimport { DataContext } from './context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar defaultProps = {\n width: (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === 'object' ? window.innerWidth : 375,\n height: 0,\n duration: 500,\n initPage: 0,\n autoPlay: 0,\n direction: 'horizontal',\n paginationColor: '#fff',\n paginationVisible: false,\n loop: true,\n touchable: true,\n isPreventDefault: true,\n isStopPropagation: true,\n isCenter: false,\n className: ''\n};\nvar DISTANCE = 5;\n\nvar Swiper = function Swiper(props, ref) {\n var _classNames, _classNames2;\n\n var propSwiper = _objectSpread(_objectSpread({}, defaultProps), props);\n\n var children = propSwiper.children,\n direction = propSwiper.direction,\n className = propSwiper.className,\n pageContent = propSwiper.pageContent,\n onChange = propSwiper.onChange,\n initPage = propSwiper.initPage,\n paginationColor = propSwiper.paginationColor,\n paginationVisible = propSwiper.paginationVisible,\n touchable = propSwiper.touchable,\n isPreventDefault = propSwiper.isPreventDefault,\n isStopPropagation = propSwiper.isStopPropagation,\n autoPlay = propSwiper.autoPlay,\n isCenter = propSwiper.isCenter,\n style = propSwiper.style,\n rest = _objectWithoutProperties(propSwiper, _excluded);\n\n var container = useRef(null);\n var innerRef = useRef(null);\n\n var _swiper = useRef({\n moving: false,\n autoplayTimer: null,\n width: 0,\n height: 0,\n offset: 0,\n size: 0\n });\n\n var _useState = useState(Math.random().toString(36).slice(-8)),\n _useState2 = _slicedToArray(_useState, 1),\n refRandomId = _useState2[0];\n\n var isVertical = direction === 'vertical';\n\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n rect = _useState4[0],\n setRect = _useState4[1]; // eslint-disable-next-line prefer-const\n\n\n var _useState5 = useState(0),\n _useState6 = _slicedToArray(_useState5, 2),\n active = _useState6[0],\n setActive = _useState6[1];\n\n var _useState7 = useState(0),\n _useState8 = _slicedToArray(_useState7, 2),\n width = _useState8[0],\n setWidth = _useState8[1];\n\n var _useState9 = useState(0),\n _useState10 = _slicedToArray(_useState9, 2),\n height = _useState10[0],\n setHeight = _useState10[1];\n\n var _useState11 = useState(0),\n _useState12 = _slicedToArray(_useState11, 2),\n offset = _useState12[0],\n setOffset = _useState12[1];\n\n var _useState13 = useState([]),\n _useState14 = _slicedToArray(_useState13, 2),\n childOffset = _useState14[0],\n setChildOffset = _useState14[1];\n\n var _useState15 = useState(false),\n _useState16 = _slicedToArray(_useState15, 2),\n ready = _useState16[0],\n setReady = _useState16[1];\n\n var size = isVertical ? height : width;\n\n var _useState17 = useState({\n startX: 0,\n startY: 0,\n deltaX: 0,\n deltaY: 0,\n offsetX: 0,\n offsetY: 0,\n stateDirection: '',\n delta: 0,\n touchTime: 0\n }),\n _useState18 = _slicedToArray(_useState17, 1),\n touch = _useState18[0];\n\n var _useMemo = useMemo(function () {\n var childCount = 0;\n var childs = Children.map(propSwiper.children, function (child) {\n if (! /*#__PURE__*/isValidElement(child)) return null;\n childCount++;\n return child;\n });\n return {\n childs: childs,\n childCount: childCount\n };\n }, [propSwiper.children]),\n childs = _useMemo.childs,\n childCount = _useMemo.childCount;\n\n var trackSize = childCount * Number(size); // 父组件参数传入子组件item\n\n var parent = {\n propSwiper: propSwiper,\n size: size\n };\n\n var minOffset = function () {\n if (rect) {\n var base = isVertical ? rect === null || rect === void 0 ? void 0 : rect.height : rect === null || rect === void 0 ? void 0 : rect.width;\n return base - Number(size) * childCount;\n }\n\n return 0;\n }(); // 清除定时器\n\n\n var stopAutoPlay = function stopAutoPlay() {\n clearTimeout(_swiper.current.autoplayTimer);\n _swiper.current.autoplayTimer = null;\n }; // 定时轮播\n\n\n var autoplay = function autoplay() {\n if (propSwiper.autoPlay <= 0 || childCount <= 1) return;\n stopAutoPlay();\n _swiper.current.autoplayTimer = setTimeout(function () {\n next();\n autoplay();\n }, Number(propSwiper.autoPlay));\n }; // 重置首尾位置信息\n\n\n var resettPosition = function resettPosition() {\n _swiper.current.moving = true;\n\n if (active <= -1) {\n move({\n pace: childCount\n });\n }\n\n if (active >= childCount) {\n move({\n pace: -childCount\n });\n }\n }; // 上一页\n\n\n var prev = function prev() {\n resettPosition();\n touchReset();\n requestFrame(function () {\n requestFrame(function () {\n _swiper.current.moving = false;\n move({\n pace: -1,\n isEmit: true\n });\n });\n });\n }; // 下一页\n\n\n var next = function next() {\n resettPosition();\n touchReset();\n requestFrame(function () {\n requestFrame(function () {\n _swiper.current.moving = false;\n move({\n pace: 1,\n isEmit: true\n });\n });\n });\n }; // 前往指定页\n\n\n var to = function to(index) {\n resettPosition();\n touchReset();\n requestFrame(function () {\n requestFrame(function () {\n _swiper.current.moving = false;\n var targetIndex;\n\n if (propSwiper.loop && childCount === index) {\n targetIndex = active === 0 ? 0 : index;\n } else {\n targetIndex = index % childCount;\n }\n\n move({\n pace: targetIndex - active,\n isEmit: true\n });\n });\n });\n }; // 切换方法\n\n\n var move = function move(_ref) {\n var _ref$pace = _ref.pace,\n pace = _ref$pace === void 0 ? 0 : _ref$pace,\n _ref$offset = _ref.offset,\n offset = _ref$offset === void 0 ? 0 : _ref$offset,\n _ref$isEmit = _ref.isEmit,\n isEmit = _ref$isEmit === void 0 ? false : _ref$isEmit;\n if (childCount <= 1) return;\n var targetActive = getActive(pace); // 父级容器偏移量\n\n var targetOffset = getOffset(targetActive, offset); // 如果循环,调整开头结尾图片位置\n\n if (propSwiper.loop) {\n if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {\n var rightBound = targetOffset < minOffset;\n childOffset[0] = rightBound ? trackSize : 0;\n }\n\n if (Array.isArray(children) && children[childCount - 1] && targetOffset !== 0) {\n var leftBound = targetOffset > 0;\n childOffset[childCount - 1] = leftBound ? -trackSize : 0;\n }\n\n setChildOffset(childOffset);\n }\n\n if (isEmit && active !== targetActive) {\n propSwiper.onChange && propSwiper.onChange((targetActive + childCount) % childCount);\n }\n\n active = targetActive;\n setActive(targetActive);\n setOffset(targetOffset);\n getStyle(targetOffset);\n }; // 确定当前active 元素\n\n\n var getActive = function getActive(pace) {\n if (pace) {\n var _active = active + pace;\n\n if (propSwiper.loop) {\n return range(_active, -1, childCount);\n }\n\n return range(_active, 0, childCount - 1);\n }\n\n return active;\n }; // 计算位移\n\n\n var getOffset = function getOffset(active) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var currentPosition = active * Number(size);\n\n if (!propSwiper.loop) {\n currentPosition = Math.min(currentPosition, -minOffset);\n }\n\n var targetOffset = offset - currentPosition;\n\n if (!propSwiper.loop) {\n targetOffset = range(targetOffset, minOffset, 0);\n }\n\n return targetOffset;\n }; // 浏览器 帧 事件\n\n\n var requestFrame = function requestFrame(fn) {\n window.requestAnimationFrame.call(window, fn);\n }; // 取值 方法\n\n\n var range = function range(num, min, max) {\n return Math.min(Math.max(num, min), max);\n };\n\n var getDirection = function getDirection(x, y) {\n if (x > y && x > DISTANCE) return 'horizontal';\n if (y > x && y > DISTANCE) return 'vertical';\n return '';\n }; // 重置 全部位移信息\n\n\n var touchReset = function touchReset() {\n touch.startX = 0;\n touch.startY = 0;\n touch.deltaX = 0;\n touch.deltaY = 0;\n touch.offsetX = 0;\n touch.offsetY = 0;\n touch.delta = 0;\n touch.stateDirection = '';\n touch.touchTime = 0;\n }; // 触摸事件开始\n\n\n var touchStart = function touchStart(e) {\n var _e$touches$, _e$touches$2;\n\n touchReset();\n touch.startX = (e === null || e === void 0 ? void 0 : (_e$touches$ = e.touches[0]) === null || _e$touches$ === void 0 ? void 0 : _e$touches$.clientX) || 0;\n touch.startY = (e === null || e === void 0 ? void 0 : (_e$touches$2 = e.touches[0]) === null || _e$touches$2 === void 0 ? void 0 : _e$touches$2.clientY) || 0;\n }; // 触摸事件移动\n\n\n var touchMove = function touchMove(e) {\n var _e$touches$3, _e$touches$4;\n\n touch.deltaX = ((e === null || e === void 0 ? void 0 : (_e$touches$3 = e.touches[0]) === null || _e$touches$3 === void 0 ? void 0 : _e$touches$3.clientX) || 0) - touch.startX;\n touch.deltaY = ((e === null || e === void 0 ? void 0 : (_e$touches$4 = e.touches[0]) === null || _e$touches$4 === void 0 ? void 0 : _e$touches$4.clientY) || 0) - touch.startY;\n touch.offsetX = Math.abs(touch.deltaX);\n touch.offsetY = Math.abs(touch.deltaY);\n touch.delta = isVertical ? touch.deltaY : touch.deltaX;\n\n if (!touch.stateDirection) {\n touch.stateDirection = getDirection(touch.offsetX, touch.offsetY);\n }\n };\n\n var contentClass = classNames((_classNames = {}, _defineProperty(_classNames, 'van-swiper__inner', true), _defineProperty(_classNames, 'van-swiper__vertical', isVertical), _classNames));\n\n var getStyle = function getStyle() {\n var moveOffset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : offset;\n var target = innerRef.current;\n var _offset = 0;\n\n if (!isCenter) {\n _offset = moveOffset;\n } else {\n var _size = isVertical ? height : width;\n\n var val = isVertical ? (rect === null || rect === void 0 ? void 0 : rect.height) - _size : (rect === null || rect === void 0 ? void 0 : rect.width) - _size;\n _offset = moveOffset + (active === childCount - 1 && !propSwiper.loop ? -val / 2 : val / 2);\n }\n\n target.style.transitionDuration = \"\".concat(_swiper.current.moving ? 0 : propSwiper.duration, \"ms\");\n target.style[isVertical ? 'height' : 'width'] = \"\".concat(Number(size) * childCount, \"px\");\n target.style[isVertical ? 'width' : 'height'] = \"\".concat(isVertical ? width : height, \"px\");\n target.style.transform = \"translate3D\".concat(!isVertical ? \"(\".concat(_offset, \"px,0,0)\") : \"(0,\".concat(_offset, \"px,0)\"));\n };\n\n var onTouchStart = function onTouchStart(e) {\n if (propSwiper.isPreventDefault) e.preventDefault();\n if (propSwiper.isStopPropagation) e.stopPropagation();\n if (!propSwiper.touchable) return;\n touchStart(e);\n touch.touchTime = Date.now();\n stopAutoPlay();\n resettPosition();\n };\n\n var onTouchMove = function onTouchMove(e) {\n if (propSwiper.touchable && _swiper.current.moving) {\n touchMove(e);\n\n if (touch.stateDirection === propSwiper.direction) {\n move({\n offset: touch.delta\n });\n }\n }\n };\n\n var onTouchEnd = function onTouchEnd() {\n if (!propSwiper.touchable || !_swiper.current.moving) return;\n var speed = touch.delta / (Date.now() - touch.touchTime);\n var isShouldMove = Math.abs(speed) > 0.3 || Math.abs(touch.delta) > +(size / 2).toFixed(2);\n var pace = 0;\n _swiper.current.moving = false;\n\n if (isShouldMove && touch.stateDirection === propSwiper.direction) {\n var _offset2 = isVertical ? touch.offsetY : touch.offsetX;\n\n if (propSwiper.loop) {\n if (_offset2 > 0) {\n pace = touch.delta > 0 ? -1 : 1;\n } else {\n pace = 0;\n }\n } else {\n pace = -Math[touch.delta > 0 ? 'ceil' : 'floor'](touch.delta / size);\n }\n\n move({\n pace: pace,\n isEmit: true\n });\n } else if (touch.delta) {\n move({\n pace: 0\n });\n } else {\n getStyle();\n }\n\n autoplay();\n };\n\n useEffect(function () {\n _swiper.current.activePagination = (active + childCount) % childCount; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active]);\n\n var queryRect = function queryRect(element) {\n return new Promise(function (resolve) {\n var query = createSelectorQuery();\n query.select(\"#\".concat(element.id)) && query.select(\"#\".concat(element.id)).boundingClientRect();\n query.exec(function (res) {\n resolve(res[0]);\n });\n });\n };\n\n var init = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var active,\n rect,\n _active,\n _width,\n _height,\n targetOffset,\n _args = arguments;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n active = _args.length > 0 && _args[0] !== undefined ? _args[0] : +propSwiper.initPage;\n _context.next = 3;\n return queryRect(container.current);\n\n case 3:\n rect = _context.sent;\n _active = Math.max(Math.min(childCount - 1, active), 0);\n _width = propSwiper.width ? +propSwiper.width : rect === null || rect === void 0 ? void 0 : rect.width;\n _height = propSwiper.height ? +propSwiper.height : rect === null || rect === void 0 ? void 0 : rect.height;\n size = isVertical ? _height : _width;\n trackSize = childCount * Number(size);\n targetOffset = getOffset(_active);\n _swiper.current.moving = true;\n\n if (ready) {\n _swiper.current.moving = false;\n }\n\n setRect(rect);\n setActive(_active);\n setWidth(_width);\n setHeight(_height);\n setOffset(targetOffset);\n setReady(true);\n\n case 18:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function init() {\n return _ref2.apply(this, arguments);\n };\n }();\n\n useEffect(function () {\n if (ready) {\n getStyle();\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, [isVertical, width, height, offset, ready]);\n useEffect(function () {\n return function () {\n setReady(false);\n }; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n useEffect(function () {\n stopAutoPlay();\n autoplay(); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [children]);\n useEffect(function () {\n init(); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [propSwiper.initPage]);\n useEffect(function () {\n return function () {\n stopAutoPlay();\n };\n }, []);\n useReady(function () {\n init();\n Taro.nextTick(function () {\n setTimeout(function () {\n stopAutoPlay();\n autoplay();\n }, 16);\n });\n });\n\n var itemStyle = function itemStyle(index) {\n var style = {};\n\n var _direction = propSwiper.direction || direction;\n\n var _size = size;\n\n if (_size) {\n style[_direction === 'horizontal' ? 'width' : 'height'] = \"\".concat(_size, \"px\");\n }\n\n var offset = childOffset[index];\n\n if (offset) {\n style.transform = \"translate3D\".concat(_direction === 'horizontal' ? \"(\".concat(offset, \"px,0,0)\") : \"(0,\".concat(offset, \"px,0)\"));\n }\n\n return style;\n };\n\n useImperativeHandle(ref, function () {\n return {\n to: to,\n next: next,\n prev: prev\n };\n });\n return /*#__PURE__*/_jsx(DataContext.Provider, {\n value: parent,\n children: /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: \"van-swiper \".concat(className),\n ref: container\n }, rest), {}, {\n id: 'container-' + refRandomId,\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd // @ts-ignore\n ,\n catchMove: isVertical,\n style: _objectSpread(_objectSpread({}, style), {}, {\n height: height\n }),\n children: [/*#__PURE__*/_jsxs(View, {\n className: contentClass,\n ref: innerRef,\n children: [Children.map(childs, function (child, index) {\n return /*#__PURE__*/_jsx(View, {\n className: 'van-swiper-item-wrapper',\n style: itemStyle(index),\n children: child\n }, index);\n }), process.env.TARO_ENV !== 'h5' && /*#__PURE__*/_jsx(View, {\n className: 'van-swiper-item-wrapper',\n style: itemStyle(0),\n children: childs && childs.length ? childs[0] : ''\n })]\n }), propSwiper.paginationVisible && !('pageContent' in propSwiper) ? /*#__PURE__*/_jsx(View, {\n className: classNames((_classNames2 = {}, _defineProperty(_classNames2, 'van-swiper__pagination', true), _defineProperty(_classNames2, 'van-swiper__pagination-vertical', isVertical), _classNames2)),\n children: Children.map(childs, function (_, index) {\n var _classNames3;\n\n return /*#__PURE__*/_jsx(Text, {\n style: (active + childCount) % childCount === index ? {\n backgroundColor: propSwiper.paginationColor\n } : undefined,\n className: classNames((_classNames3 = {}, _defineProperty(_classNames3, 'van-swiper__pagination-item', true), _defineProperty(_classNames3, \"active\", (active + childCount) % childCount === index), _classNames3))\n }, index);\n })\n }) : /*#__PURE__*/_jsx(View, {\n children: pageContent\n })]\n }))\n });\n};\n\nexport var Swiper_ = /*#__PURE__*/forwardRef(Swiper);\nexport default Swiper_;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"icon\", \"name\", \"iconPrefix\", \"dot\", \"info\", \"renderIconActive\", \"renderIcon\", \"index\", \"active\", \"activeColor\", \"inactiveColor\", \"onChange\", \"children\", \"style\", \"className\", \"onClick\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport { Icon } from '../icon';\nimport { Info } from '../info';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function TabbarItem(props) {\n var icon = props.icon,\n name = props.name,\n _props$iconPrefix = props.iconPrefix,\n iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,\n dot = props.dot,\n info = props.info,\n renderIconActive = props.renderIconActive,\n renderIcon = props.renderIcon,\n index = props.index,\n active = props.active,\n activeColor = props.activeColor,\n inactiveColor = props.inactiveColor,\n onChange = props.onChange,\n children = props.children,\n style = props.style,\n className = props.className,\n onClick = props.onClick,\n others = _objectWithoutProperties(props, _excluded);\n\n var _click = function _click() {\n if (onChange) {\n var _active = name !== null && name !== void 0 ? name : index;\n\n if (_active !== active) {\n onChange(_active);\n }\n }\n\n onClick === null || onClick === void 0 ? void 0 : onClick(name !== null && name !== void 0 ? name : index);\n };\n\n return onChange ? /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: utils.bem('tabbar-item', {\n active: active === (name !== null && name !== void 0 ? name : index)\n }) + ' custom-class' + \" \".concat(className || ''),\n style: utils.style([{\n color: active === (name !== null && name !== void 0 ? name : index) ? activeColor : inactiveColor\n }, style])\n }, others), {}, {\n onClick: _click,\n children: [/*#__PURE__*/_jsxs(View, {\n className: \"van-tabbar-item__icon\",\n children: [icon ? /*#__PURE__*/_jsx(Icon, {\n size: 38,\n name: icon,\n classPrefix: iconPrefix,\n className: \"van-tabbar-item__icon__inner\"\n }) : /*#__PURE__*/_jsx(_Fragment, {\n children: active === (name !== null && name !== void 0 ? name : index) ? renderIconActive : renderIcon\n }), /*#__PURE__*/_jsx(Info, {\n dot: dot,\n info: info,\n className: \"van-tabbar-item__info\"\n })]\n }), /*#__PURE__*/_jsx(View, {\n className: \"van-tabbar-item__text\",\n children: children\n })]\n })) : /*#__PURE__*/_jsx(_Fragment, {});\n}\nexport default TabbarItem;","import _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nvar _excluded = [\"active\", \"activeColor\", \"inactiveColor\", \"border\", \"fixed\", \"safeAreaInsetBottom\", \"zIndex\", \"placeholder\", \"onChange\", \"style\", \"className\", \"children\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { nextTick } from '@tarojs/taro';\nimport { useState, isValidElement, cloneElement, useEffect, useCallback, useMemo } from 'react';\nimport toArray from 'rc-util/lib/Children/toArray';\nimport { View } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport { getRect } from '../common/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n\nfunction parseTabList(children) {\n return toArray(children).map(function (node) {\n if ( /*#__PURE__*/isValidElement(node)) {\n var key = node.key !== undefined ? String(node.key) : undefined;\n return _objectSpread(_objectSpread({\n key: key\n }, node.props), {}, {\n node: node\n });\n }\n\n return null;\n }).filter(function (tab) {\n return tab;\n });\n}\n\nexport function Tabbar(props) {\n var _useState = useState({\n height: 50,\n current: 0\n }),\n _useState2 = _slicedToArray(_useState, 2),\n state = _useState2[0],\n setState = _useState2[1];\n\n var height = state.height,\n current = state.current;\n\n var active = props.active,\n activeColor = props.activeColor,\n inactiveColor = props.inactiveColor,\n _props$border = props.border,\n border = _props$border === void 0 ? true : _props$border,\n _props$fixed = props.fixed,\n fixed = _props$fixed === void 0 ? true : _props$fixed,\n _props$safeAreaInsetB = props.safeAreaInsetBottom,\n safeAreaInsetBottom = _props$safeAreaInsetB === void 0 ? true : _props$safeAreaInsetB,\n zIndex = props.zIndex,\n placeholder = props.placeholder,\n onChange = props.onChange,\n style = props.style,\n className = props.className,\n children = props.children,\n others = _objectWithoutProperties(props, _excluded);\n\n var _change = useCallback(function (data) {\n setState(function (pre) {\n return _objectSpread(_objectSpread({}, pre), {}, {\n current: data\n });\n });\n onChange === null || onChange === void 0 ? void 0 : onChange({\n detail: data\n });\n }, [onChange]);\n\n var newChildren = useMemo(function () {\n var tabs = parseTabList(children);\n return tabs.map(function (tab, index) {\n return /*#__PURE__*/cloneElement(tab.node, {\n key: index,\n index: index,\n active: current,\n activeColor: activeColor,\n inactiveColor: inactiveColor,\n onChange: _change\n });\n });\n }, [children, current, activeColor, inactiveColor, _change]);\n useEffect(function () {\n setState(function (pre) {\n return _objectSpread(_objectSpread({}, pre), {}, {\n current: active\n });\n });\n }, [active]);\n useEffect(function () {\n if (!fixed || !placeholder) {\n return;\n }\n\n nextTick(function () {\n getRect(null, '.van-tabbar').then(function (res) {\n setState(function (pre) {\n return _objectSpread(_objectSpread({}, pre), {}, {\n height: res.height\n });\n });\n });\n });\n }, [fixed, placeholder]); // useEffect(\n // function () {\n // if (!Array.isArray(children) || !children.length) {\n // return\n // }\n // children.forEach((child) => child.updateFromParent())\n // },\n // // eslint-disable-next-line react-hooks/exhaustive-deps\n // [active, activeColor, inactiveColor],\n // )\n\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [/*#__PURE__*/_jsx(View, _objectSpread(_objectSpread({\n className: (border ? 'van-hairline--top-bottom' : '') + ' ' + utils.bem('tabbar', {\n fixed: fixed,\n safe: safeAreaInsetBottom\n }) + ' custom-class' + \" \".concat(className || ''),\n style: utils.style([zIndex ? 'zIndex: ' + zIndex : '', style])\n }, others), {}, {\n children: newChildren\n })), fixed && placeholder && /*#__PURE__*/_jsx(View, {\n style: 'height: ' + height + 'px;'\n })]\n });\n}\nexport default Tabbar;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"type\", \"size\", \"mark\", \"plain\", \"round\", \"color\", \"textColor\", \"closeable\", \"children\", \"onClose\", \"style\", \"className\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View } from '@tarojs/components';\nimport * as utils from '../wxs/utils';\nimport { Icon } from '../icon';\nimport * as computed from './wxs';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function Tag(props) {\n var _props$type = props.type,\n type = _props$type === void 0 ? 'default' : _props$type,\n size = props.size,\n mark = props.mark,\n plain = props.plain,\n round = props.round,\n color = props.color,\n textColor = props.textColor,\n closeable = props.closeable,\n children = props.children,\n onClose = props.onClose,\n style = props.style,\n className = props.className,\n others = _objectWithoutProperties(props, _excluded);\n\n return /*#__PURE__*/_jsxs(View, _objectSpread(_objectSpread({\n className: ' ' + utils.bem('tag', [type, size, {\n mark: mark,\n plain: plain,\n round: round\n }]) + \" \".concat(className || ''),\n style: utils.style([computed.rootStyle({\n plain: plain,\n color: color,\n textColor: textColor\n }), style])\n }, others), {}, {\n children: [children, closeable && /*#__PURE__*/_jsx(Icon, {\n name: \"cross\",\n className: \"van-tag__close\",\n onClick: onClose\n })]\n }));\n}\nexport default Tag;","import { style } from '../wxs/style';\n\nfunction rootStyle(data) {\n return style({\n 'background-color': data.plain ? '' : data.color,\n color: data.textColor || data.plain ? data.textColor || data.color : ''\n });\n}\n\nexport { rootStyle };","import {\n Button,\n Card,\n Col,\n Divider,\n Grid,\n GridItem,\n Row,\n Tag,\n} from \"@antmjs/vantui\";\nimport { View } from \"@tarojs/components\";\nimport React, { useCallback } from \"react\";\nimport { Swiper, SwiperItem, Image } from \"@antmjs/vantui\";\nimport react from \"react\";\nimport { NoticeBar } from \"@antmjs/vantui\";\nimport Taro from \"@tarojs/taro\";\nimport { Tabbar, TabbarItem } from \"@antmjs/vantui\";\n\nconst Home = () => {\n // const { images } = COMMON\n const [initPage1, setInitPage1] = react.useState(0);\n const [active, setActive] = react.useState(0);\n const onChange = (e) => {};\n const images = [\n \"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg\",\n \"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images.jpg\",\n ];\n\n return (\n \n {/* 通知条 */}\n \n {/* 顶部 */}\n {/* \n \n \n 深圳\n \n
\n */}\n \n {/* 深圳 */}\n \n 深圳\n \n \n {/* 轮播图 */}\n \n \n {images.map((item, index) => (\n \n \n \n ))}\n \n \n\n {/* 模块 */}\n \n {\n // 跳转到目的页面,打开新页面\n Taro.navigateTo({\n url: \"/pages/mountainPeak/index\",\n });\n }}\n />\n {\n // 跳转到目的页面,打开新页面\n Taro.navigateTo({\n url: \"/pages/activityList/index\",\n });\n }}\n />\n \n \n \n\n {/* 分割线 */}\n \n \n \n\n {[1, 2].map((item: any) => {\n return (\n \n // \n // \n // \n // }\n />\n );\n })}\n\n setActive(e?.detail)}\n safeAreaInsetBottom={false}\n\n\n >\n 首页\n {/* 标签 */}\n 活动\n 我的\n \n \n );\n};\n\nexport default Home;\n","import { createPageConfig } from '@tarojs/runtime'\nimport component from \"../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx\"\nvar config = {};\n\n\nvar inst = Page(createPageConfig(component, 'pages/home/index', {root:{cn:[]}}, config || {}))\n\n\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = toArray;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactIs = require(\"react-is\");\n\nfunction toArray(children) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var ret = [];\n\n _react.default.Children.forEach(children, function (child) {\n if ((child === undefined || child === null) && !option.keepEmpty) {\n return;\n }\n\n if (Array.isArray(child)) {\n ret = ret.concat(toArray(child));\n } else if ((0, _reactIs.isFragment)(child) && child.props) {\n ret = ret.concat(toArray(child.props.children, option));\n } else {\n ret.push(child);\n }\n });\n\n return ret;\n}","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n return exports;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n var exports = {},\n Op = Object.prototype,\n hasOwn = Op.hasOwnProperty,\n defineProperty = Object.defineProperty || function (obj, key, desc) {\n obj[key] = desc.value;\n },\n $Symbol = \"function\" == typeof Symbol ? Symbol : {},\n iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n function define(obj, key, value) {\n return Object.defineProperty(obj, key, {\n value: value,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), obj[key];\n }\n try {\n define({}, \"\");\n } catch (err) {\n define = function define(obj, key, value) {\n return obj[key] = value;\n };\n }\n function wrap(innerFn, outerFn, self, tryLocsList) {\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n generator = Object.create(protoGenerator.prototype),\n context = new Context(tryLocsList || []);\n return defineProperty(generator, \"_invoke\", {\n value: makeInvokeMethod(innerFn, self, context)\n }), generator;\n }\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n exports.wrap = wrap;\n var ContinueSentinel = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n var getProto = Object.getPrototypeOf,\n NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (\"throw\" !== record.type) {\n var result = record.arg,\n value = result.value;\n return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n result.value = unwrapped, resolve(result);\n }, function (error) {\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n reject(record.arg);\n }\n var previousPromise;\n defineProperty(this, \"_invoke\", {\n value: function value(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(innerFn, self, context) {\n var state = \"suspendedStart\";\n return function (method, arg) {\n if (\"executing\" === state) throw new Error(\"Generator is already running\");\n if (\"completed\" === state) {\n if (\"throw\" === method) throw arg;\n return doneResult();\n }\n for (context.method = method, context.arg = arg;;) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n context.dispatchException(context.arg);\n } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n state = \"executing\";\n var record = tryCatch(innerFn, self, context);\n if (\"normal\" === record.type) {\n if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n return {\n value: record.arg,\n done: context.done\n };\n }\n \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n }\n };\n }\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (undefined === method) {\n if (context.delegate = null, \"throw\" === context.method) {\n if (delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method)) return ContinueSentinel;\n context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a 'throw' method\");\n }\n return ContinueSentinel;\n }\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n var info = record.arg;\n return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n }\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\", delete record.arg, entry.completion = record;\n }\n function Context(tryLocsList) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) return iteratorMethod.call(iterable);\n if (\"function\" == typeof iterable.next) return iterable;\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n for (; ++i < iterable.length;) {\n if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n }\n return next.value = undefined, next.done = !0, next;\n };\n return next.next = next;\n }\n }\n return {\n next: doneResult\n };\n }\n function doneResult() {\n return {\n value: undefined,\n done: !0\n };\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n var ctor = \"function\" == typeof genFun && genFun.constructor;\n return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n }, exports.mark = function (genFun) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun;\n }, exports.awrap = function (arg) {\n return {\n __await: arg\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n void 0 === PromiseImpl && (PromiseImpl = Promise);\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n return this;\n }), define(Gp, \"toString\", function () {\n return \"[object Generator]\";\n }), exports.keys = function (val) {\n var object = Object(val),\n keys = [];\n for (var key in object) {\n keys.push(key);\n }\n return keys.reverse(), function next() {\n for (; keys.length;) {\n var key = keys.pop();\n if (key in object) return next.value = key, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, exports.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(skipTempReset) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {\n \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);\n }\n },\n stop: function stop() {\n this.done = !0;\n var rootRecord = this.tryEntries[0].completion;\n if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(exception) {\n if (this.done) throw exception;\n var context = this;\n function handle(loc, caught) {\n return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i],\n record = entry.completion;\n if (\"root\" === entry.tryLoc) return handle(\"end\");\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n } else {\n if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n var record = finallyEntry ? finallyEntry.completion : {};\n return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n },\n complete: function complete(record, afterLoc) {\n if (\"throw\" === record.type) throw record.arg;\n return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n },\n finish: function finish(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n }\n },\n \"catch\": function _catch(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (\"throw\" === record.type) {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n return this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n }\n }, exports;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// TODO(Babel 8): Remove this file.\n\nvar runtime = require(\"../helpers/regeneratorRuntime\")();\nmodule.exports = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n}\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/pages/home/index.wxss b/dist/pages/home/index.wxss
index b402c66..a404ca7 100644
--- a/dist/pages/home/index.wxss
+++ b/dist/pages/home/index.wxss
@@ -1,3 +1,11 @@
+/*!***********************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tabbar/index.css ***!
+ \***********************************************************************************************************************************************************************************************************************/
+.van-tabbar{display:-webkit-flex;display:flex;box-sizing:content-box;width:100%;z-index:805;height:100rpx;height:var(--tabbar-height,100rpx);background-color:#fff;background-color:var(--tabbar-background-color,#fff)}.van-tabbar--fixed{position:fixed!important;bottom:0;left:0}.van-tabbar--safe{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}
+/*!****************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tabbar-item/index.css ***!
+ \****************************************************************************************************************************************************************************************************************************/
+.van-tabbar-item{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;-webkit-flex:1;flex:1;height:100%;color:#646566;color:var(--tabbar-item-text-color,#646566);font-size:24rpx;font-size:var(--tabbar-item-font-size, 24rpx);line-height:1;line-height:var(--tabbar-item-line-height, 1)}.van-tabbar-item__icon{position:relative;margin-bottom:8rpx;margin-bottom:var(--tabbar-item-margin-bottom,8rpx);font-size:44rpx;font-size:var(--tabbar-item-icon-size, 44rpx)}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:#1989fa;color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:4rpx}
/*!********************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/tag/index.css ***!
\********************************************************************************************************************************************************************************************************************/
diff --git a/dist/pages/mountainPeak/index.js b/dist/pages/mountainPeak/index.js
new file mode 100644
index 0000000..2e5a10c
--- /dev/null
+++ b/dist/pages/mountainPeak/index.js
@@ -0,0 +1,269 @@
+"use strict";
+(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/mountainPeak/index"],{
+
+/***/ "./node_modules/@antmjs/vantui/es/sidebar-item/index.js":
+/*!**************************************************************!*\
+ !*** ./node_modules/@antmjs/vantui/es/sidebar-item/index.js ***!
+ \**************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* unused harmony export SidebarItem */
+/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
+/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
+/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
+/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
+/* harmony import */ var _info_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info/index */ "./node_modules/@antmjs/vantui/es/info/index.js");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
+
+
+
+var _excluded = ["dot", "badge", "index", "renderTitle", "setChildren", "setAction", "onClick", "onChange", "info", "title", "disabled", "className", "style"];
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
+
+
+
+
+
+
+
+
+function SidebarItem(props) {
+ var dot = props.dot,
+ badge = props.badge,
+ index = props.index,
+ renderTitle = props.renderTitle,
+ setChildren = props.setChildren,
+ setAction = props.setAction,
+ onClick = props.onClick,
+ onChange = props.onChange,
+ info = props.info,
+ title = props.title,
+ disabled = props.disabled,
+ className = props.className,
+ style = props.style,
+ others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
+
+ var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),
+ _useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__["default"])(_useState, 2),
+ selected = _useState2[0],
+ setselected = _useState2[1];
+
+ var setActive = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (selected) {
+ return setselected(selected);
+ }, []);
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
+ setChildren === null || setChildren === void 0 ? void 0 : setChildren(index, {
+ setActive: setActive,
+ selected: selected
+ });
+ }, [setActive, index, setChildren, selected]);
+ var onClick_ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
+ if (disabled) return;
+ setAction(index).then(function () {
+ onChange === null || onChange === void 0 ? void 0 : onChange({
+ detail: index
+ });
+ onClick === null || onClick === void 0 ? void 0 : onClick(index);
+ });
+ }, [disabled, index, onChange, onClick, setAction]);
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, _objectSpread(_objectSpread({
+ className: _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.bem('sidebar-item', {
+ selected: selected,
+ disabled: disabled
+ }) + ' ' + (selected ? 'active-class' : '') + ' ' + (disabled ? 'disabled-class' : '') + ' custom-class' + ' ' + className,
+ hoverClass: "van-sidebar-item--hover",
+ hoverStayTime: 70,
+ onClick: onClick_,
+ style: _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.style([style])
+ }, others), {}, {
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
+ className: "van-sidebar-item__text",
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
+ children: [(badge != null || info !== null || dot) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info_index__WEBPACK_IMPORTED_MODULE_3__["default"], {
+ dot: dot,
+ info: badge != null ? badge : info
+ }), title ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_7__.View, {
+ children: title
+ }) : renderTitle]
+ })
+ })
+ }));
+}
+/* harmony default export */ __webpack_exports__["default"] = (SidebarItem);
+
+/***/ }),
+
+/***/ "./node_modules/@antmjs/vantui/es/sidebar/index.js":
+/*!*********************************************************!*\
+ !*** ./node_modules/@antmjs/vantui/es/sidebar/index.js ***!
+ \*********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* unused harmony export Sidebar */
+/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
+/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
+/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
+/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
+
+
+var _excluded = ["activeKey", "onChange", "className", "children", "style"];
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
+
+
+
+
+
+function Sidebar(props) {
+ var activeKey = props.activeKey,
+ onChange = props.onChange,
+ className = props.className,
+ children = props.children,
+ style = props.style,
+ others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4__["default"])(props, _excluded);
+
+ var childrenInstance = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)([]);
+ var setAction = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (activeKey) {
+ var childrenInstance_ = childrenInstance.current;
+
+ if (!childrenInstance_ || !childrenInstance_.length) {
+ return Promise.resolve();
+ } // setcurrentActive(activeKey)
+
+
+ childrenInstance_.forEach(function (item) {
+ item.setActive(false);
+ });
+
+ if (childrenInstance_[activeKey]) {
+ childrenInstance_[activeKey].setActive(true);
+ }
+
+ return Promise.resolve();
+ }, []);
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
+ setAction(activeKey);
+ }, [setAction, activeKey]);
+ var setChildren = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (index, instance) {
+ childrenInstance.current[index] = instance;
+ }, []);
+ var ResetChildren = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
+ var res = [];
+
+ if (children && Array.isArray(children)) {
+ children.forEach(function (child, index) {
+ res.push( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(child, {
+ key: index,
+ setChildren: setChildren,
+ index: index,
+ setAction: setAction,
+ onChange: onChange
+ }));
+ });
+ }
+
+ return res;
+ }, [children, onChange, setAction, setChildren]);
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_5__.View, _objectSpread(_objectSpread({
+ style: _wxs_utils__WEBPACK_IMPORTED_MODULE_2__.style([style]),
+ className: "van-sidebar ".concat(className)
+ }, others), {}, {
+ children: ResetChildren
+ }));
+}
+/* harmony default export */ __webpack_exports__["default"] = (Sidebar);
+
+/***/ }),
+
+/***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/mountainPeak/index.tsx":
+/*!***************************************************************************************************************!*\
+ !*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/mountainPeak/index.tsx ***!
+ \***************************************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _antmjs_vantui_es_sidebar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @antmjs/vantui/es/sidebar */ "./node_modules/@antmjs/vantui/es/sidebar/index.js");
+/* harmony import */ var _antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @antmjs/vantui/es/sidebar-item */ "./node_modules/@antmjs/vantui/es/sidebar-item/index.js");
+/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
+/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
+
+
+
+
+
+
+
+var mountainPeak = function mountainPeak() {
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
+ children: [" ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_antmjs_vantui_es_sidebar__WEBPACK_IMPORTED_MODULE_0__["default"], {
+ activeKey: 0,
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u68A7\u6850\u5C71"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u6807\u7B7E\u540D"
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_antmjs_vantui_es_sidebar_item__WEBPACK_IMPORTED_MODULE_1__["default"], {
+ title: "\u6807\u7B7E\u540D"
+ })]
+ })]
+ });
+};
+/* harmony default export */ __webpack_exports__["default"] = (mountainPeak);
+
+/***/ }),
+
+/***/ "./src/pages/mountainPeak/index.tsx":
+/*!******************************************!*\
+ !*** ./src/pages/mountainPeak/index.tsx ***!
+ \******************************************/
+/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
+/* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/mountainPeak/index.tsx");
+
+
+var config = {};
+
+
+var inst = Page((0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_index_tsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/mountainPeak/index', {root:{cn:[]}}, config || {}))
+
+
+
+
+/***/ })
+
+},
+/******/ function(__webpack_require__) { // webpackRuntimeModules
+/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
+/******/ __webpack_require__.O(0, ["taro","vendors","common"], function() { return __webpack_exec__("./src/pages/mountainPeak/index.tsx"); });
+/******/ var __webpack_exports__ = __webpack_require__.O();
+/******/ }
+]);
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/dist/pages/mountainPeak/index.js.map b/dist/pages/mountainPeak/index.js.map
new file mode 100644
index 0000000..24714f2
--- /dev/null
+++ b/dist/pages/mountainPeak/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"pages/mountainPeak/index.js","mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACrEA;AAAA;AAAA;AAIA;AACA;AACA;AAEA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAGA;AAEA;;;;;;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/._node_modules_@antmjs_vantui_es_sidebar-item_index.js","webpack://myApp/._node_modules_@antmjs_vantui_es_sidebar_index.js","webpack://myApp/._src_pages_mountainPeak_index.tsx","webpack://myApp/./src/pages/mountainPeak/index.tsx?81ce"],"sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"dot\", \"badge\", \"index\", \"renderTitle\", \"setChildren\", \"setAction\", \"onClick\", \"onChange\", \"info\", \"title\", \"disabled\", \"className\", \"style\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View } from '@tarojs/components';\nimport { useCallback, useState, useEffect } from 'react';\nimport * as utils from '../wxs/utils';\nimport VanInfo from '../info/index';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function SidebarItem(props) {\n var dot = props.dot,\n badge = props.badge,\n index = props.index,\n renderTitle = props.renderTitle,\n setChildren = props.setChildren,\n setAction = props.setAction,\n onClick = props.onClick,\n onChange = props.onChange,\n info = props.info,\n title = props.title,\n disabled = props.disabled,\n className = props.className,\n style = props.style,\n others = _objectWithoutProperties(props, _excluded);\n\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n selected = _useState2[0],\n setselected = _useState2[1];\n\n var setActive = useCallback(function (selected) {\n return setselected(selected);\n }, []);\n useEffect(function () {\n setChildren === null || setChildren === void 0 ? void 0 : setChildren(index, {\n setActive: setActive,\n selected: selected\n });\n }, [setActive, index, setChildren, selected]);\n var onClick_ = useCallback(function () {\n if (disabled) return;\n setAction(index).then(function () {\n onChange === null || onChange === void 0 ? void 0 : onChange({\n detail: index\n });\n onClick === null || onClick === void 0 ? void 0 : onClick(index);\n });\n }, [disabled, index, onChange, onClick, setAction]);\n return /*#__PURE__*/_jsx(View, _objectSpread(_objectSpread({\n className: utils.bem('sidebar-item', {\n selected: selected,\n disabled: disabled\n }) + ' ' + (selected ? 'active-class' : '') + ' ' + (disabled ? 'disabled-class' : '') + ' custom-class' + ' ' + className,\n hoverClass: \"van-sidebar-item--hover\",\n hoverStayTime: 70,\n onClick: onClick_,\n style: utils.style([style])\n }, others), {}, {\n children: /*#__PURE__*/_jsx(View, {\n className: \"van-sidebar-item__text\",\n children: /*#__PURE__*/_jsxs(_Fragment, {\n children: [(badge != null || info !== null || dot) && /*#__PURE__*/_jsx(VanInfo, {\n dot: dot,\n info: badge != null ? badge : info\n }), title ? /*#__PURE__*/_jsx(View, {\n children: title\n }) : renderTitle]\n })\n })\n }));\n}\nexport default SidebarItem;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"activeKey\", \"onChange\", \"className\", \"children\", \"style\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport { View } from '@tarojs/components';\nimport { useCallback, useRef, useEffect, useMemo, cloneElement } from 'react';\nimport * as utils from '../wxs/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function Sidebar(props) {\n var activeKey = props.activeKey,\n onChange = props.onChange,\n className = props.className,\n children = props.children,\n style = props.style,\n others = _objectWithoutProperties(props, _excluded);\n\n var childrenInstance = useRef([]);\n var setAction = useCallback(function (activeKey) {\n var childrenInstance_ = childrenInstance.current;\n\n if (!childrenInstance_ || !childrenInstance_.length) {\n return Promise.resolve();\n } // setcurrentActive(activeKey)\n\n\n childrenInstance_.forEach(function (item) {\n item.setActive(false);\n });\n\n if (childrenInstance_[activeKey]) {\n childrenInstance_[activeKey].setActive(true);\n }\n\n return Promise.resolve();\n }, []);\n useEffect(function () {\n setAction(activeKey);\n }, [setAction, activeKey]);\n var setChildren = useCallback(function (index, instance) {\n childrenInstance.current[index] = instance;\n }, []);\n var ResetChildren = useMemo(function () {\n var res = [];\n\n if (children && Array.isArray(children)) {\n children.forEach(function (child, index) {\n res.push( /*#__PURE__*/cloneElement(child, {\n key: index,\n setChildren: setChildren,\n index: index,\n setAction: setAction,\n onChange: onChange\n }));\n });\n }\n\n return res;\n }, [children, onChange, setAction, setChildren]);\n return /*#__PURE__*/_jsx(View, _objectSpread(_objectSpread({\n style: utils.style([style]),\n className: \"van-sidebar \".concat(className)\n }, others), {}, {\n children: ResetChildren\n }));\n}\nexport default Sidebar;","import { View } from \"@tarojs/components\";\nimport react from \"react\";\nimport { Sidebar, SidebarItem } from \"@antmjs/vantui\";\n\nconst mountainPeak = () => {\n return (\n \n {\" \"}\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default mountainPeak;\n","import { createPageConfig } from '@tarojs/runtime'\nimport component from \"../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx\"\nvar config = {};\n\n\nvar inst = Page(createPageConfig(component, 'pages/mountainPeak/index', {root:{cn:[]}}, config || {}))\n\n\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/pages/mountainPeak/index.json b/dist/pages/mountainPeak/index.json
new file mode 100644
index 0000000..c63841a
--- /dev/null
+++ b/dist/pages/mountainPeak/index.json
@@ -0,0 +1 @@
+{"usingComponents":{"comp":"../../comp"}}
\ No newline at end of file
diff --git a/dist/pages/mountainPeak/index.wxml b/dist/pages/mountainPeak/index.wxml
new file mode 100644
index 0000000..181a491
--- /dev/null
+++ b/dist/pages/mountainPeak/index.wxml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/dist/pages/mountainPeak/index.wxss b/dist/pages/mountainPeak/index.wxss
new file mode 100644
index 0000000..1824468
--- /dev/null
+++ b/dist/pages/mountainPeak/index.wxss
@@ -0,0 +1,8 @@
+/*!************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/sidebar/index.css ***!
+ \************************************************************************************************************************************************************************************************************************/
+.van-sidebar{width:160rpx;width:var(--sidebar-width,160rpx)}
+/*!*****************************************************************************************************************************************************************************************************************************!*\
+ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/sidebar-item/index.css ***!
+ \*****************************************************************************************************************************************************************************************************************************/
+.van-sidebar-item{display:block;box-sizing:border-box;overflow:hidden;border-left:6rpx solid transparent;-webkit-user-select:none;user-select:none;padding:40rpx 24rpx 40rpx 16rpx;padding:var(--sidebar-padding,40rpx 24rpx 40rpx 16rpx);font-size:28rpx;font-size:var(--sidebar-font-size, 28rpx);line-height:40rpx;line-height:var(--sidebar-line-height, 40rpx);color:#323233;color:var(--sidebar-text-color,#323233);background-color:#f7f8fa;background-color:var(--sidebar-background-color,#f7f8fa)}.van-sidebar-item__text{position:relative;display:inline-block;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:#f2f3f5;background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item::after{border-bottom-width:2rpx}.van-sidebar-item--selected{color:#323233;color:var(--sidebar-selected-text-color,#323233);font-weight:500;font-weight:var(--sidebar-selected-font-weight,500);border-color:#ee0a24;border-color:var(--sidebar-selected-border-color,#ee0a24)}.van-sidebar-item--selected::after{border-right-width:2rpx}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:#fff;background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:#c8c9cc;color:var(--sidebar-disabled-text-color,#c8c9cc)}
diff --git a/dist/runtime.js b/dist/runtime.js
index b18b62a..a3dbea6 100644
--- a/dist/runtime.js
+++ b/dist/runtime.js
@@ -203,8 +203,8 @@
/******/ ],
/******/ "common": [
/******/ "webpack/container/remote/@tarojs/runtime",
-/******/ "webpack/container/remote/react",
/******/ "webpack/container/remote/@tarojs/taro",
+/******/ "webpack/container/remote/react",
/******/ "webpack/container/remote/react/jsx-runtime"
/******/ ]
/******/ };
@@ -229,16 +229,16 @@
/******/ "./@tarojs/runtime",
/******/ null
/******/ ],
-/******/ "webpack/container/remote/react": [
-/******/ "default",
-/******/ "./react",
-/******/ null
-/******/ ],
/******/ "webpack/container/remote/@tarojs/taro": [
/******/ "default",
/******/ "./@tarojs/taro",
/******/ null
/******/ ],
+/******/ "webpack/container/remote/react": [
+/******/ "default",
+/******/ "./react",
+/******/ null
+/******/ ],
/******/ "webpack/container/remote/react/jsx-runtime": [
/******/ "default",
/******/ "./react/jsx-runtime",
diff --git a/dist/runtime.js.map b/dist/runtime.js.map
index a510a8f..744d9e3 100644
--- a/dist/runtime.js.map
+++ b/dist/runtime.js.map
@@ -1 +1 @@
-{"version":3,"file":"runtime.js","mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACRA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC5DA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/webpack_bootstrap","webpack://myApp/webpack_runtime_chunk loaded","webpack://myApp/webpack_runtime_compat get default export","webpack://myApp/webpack_runtime_define property getters","webpack://myApp/webpack_runtime_ensure chunk","webpack://myApp/webpack_runtime_get javascript chunk filename","webpack://myApp/webpack_runtime_get mini-css chunk filename","webpack://myApp/webpack_runtime_global","webpack://myApp/webpack_runtime_hasOwnProperty shorthand","webpack://myApp/webpack_runtime_load script","webpack://myApp/webpack_runtime_make namespace object","webpack://myApp/webpack_runtime_remotes loading","webpack://myApp/webpack_runtime_publicPath","webpack://myApp/webpack_runtime_jsonp chunk loading","webpack://myApp/webpack_before-startup","webpack://myApp/webpack_startup","webpack://myApp/webpack_after-startup"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"myApp:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var chunkMapping = {\n\t\"app\": [\n\t\t\"webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime\",\n\t\t\"webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime\",\n\t\t\"webpack/container/remote/react-dom\"\n\t],\n\t\"common\": [\n\t\t\"webpack/container/remote/@tarojs/runtime\",\n\t\t\"webpack/container/remote/react\",\n\t\t\"webpack/container/remote/@tarojs/taro\",\n\t\t\"webpack/container/remote/react/jsx-runtime\"\n\t]\n};\nvar idToExternalAndNameMapping = {\n\t\"webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime\": [\n\t\t\"default\",\n\t\t\"./@tarojs/plugin-platform-weapp/dist/runtime\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime\": [\n\t\t\"default\",\n\t\t\"./@tarojs/plugin-framework-react/dist/runtime\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/react-dom\": [\n\t\t\"default\",\n\t\t\"./react-dom\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/@tarojs/runtime\": [\n\t\t\"default\",\n\t\t\"./@tarojs/runtime\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/react\": [\n\t\t\"default\",\n\t\t\"./react\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/@tarojs/taro\": [\n\t\t\"default\",\n\t\t\"./@tarojs/taro\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/react/jsx-runtime\": [\n\t\t\"default\",\n\t\t\"./react/jsx-runtime\",\n\t\tnull\n\t]\n};\n__webpack_require__.taro = function(get) {\n\tfor (var id in idToExternalAndNameMapping) {\n\t\tvar mappedName = idToExternalAndNameMapping[id][1];\n\t\tvar factory = get(mappedName);\n\t\t__webpack_modules__[id] = (function(factory) {\n\t\t\treturn function(module) {\n\t\t\t\tmodule.exports = factory();\n\t\t\t}\n\t\t})(factory);\n\t}\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"runtime\": 0,\n\t\"common\": 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(common|runtime)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = wx[\"webpackJsonp\"] = wx[\"webpackJsonp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","",""],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"runtime.js","mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACRA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC5DA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://myApp/webpack_bootstrap","webpack://myApp/webpack_runtime_chunk loaded","webpack://myApp/webpack_runtime_compat get default export","webpack://myApp/webpack_runtime_define property getters","webpack://myApp/webpack_runtime_ensure chunk","webpack://myApp/webpack_runtime_get javascript chunk filename","webpack://myApp/webpack_runtime_get mini-css chunk filename","webpack://myApp/webpack_runtime_global","webpack://myApp/webpack_runtime_hasOwnProperty shorthand","webpack://myApp/webpack_runtime_load script","webpack://myApp/webpack_runtime_make namespace object","webpack://myApp/webpack_runtime_remotes loading","webpack://myApp/webpack_runtime_publicPath","webpack://myApp/webpack_runtime_jsonp chunk loading","webpack://myApp/webpack_before-startup","webpack://myApp/webpack_startup","webpack://myApp/webpack_after-startup"],"sourcesContent":["// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"myApp:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var chunkMapping = {\n\t\"app\": [\n\t\t\"webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime\",\n\t\t\"webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime\",\n\t\t\"webpack/container/remote/react-dom\"\n\t],\n\t\"common\": [\n\t\t\"webpack/container/remote/@tarojs/runtime\",\n\t\t\"webpack/container/remote/@tarojs/taro\",\n\t\t\"webpack/container/remote/react\",\n\t\t\"webpack/container/remote/react/jsx-runtime\"\n\t]\n};\nvar idToExternalAndNameMapping = {\n\t\"webpack/container/remote/@tarojs/plugin-platform-weapp/dist/runtime\": [\n\t\t\"default\",\n\t\t\"./@tarojs/plugin-platform-weapp/dist/runtime\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/@tarojs/plugin-framework-react/dist/runtime\": [\n\t\t\"default\",\n\t\t\"./@tarojs/plugin-framework-react/dist/runtime\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/react-dom\": [\n\t\t\"default\",\n\t\t\"./react-dom\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/@tarojs/runtime\": [\n\t\t\"default\",\n\t\t\"./@tarojs/runtime\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/@tarojs/taro\": [\n\t\t\"default\",\n\t\t\"./@tarojs/taro\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/react\": [\n\t\t\"default\",\n\t\t\"./react\",\n\t\tnull\n\t],\n\t\"webpack/container/remote/react/jsx-runtime\": [\n\t\t\"default\",\n\t\t\"./react/jsx-runtime\",\n\t\tnull\n\t]\n};\n__webpack_require__.taro = function(get) {\n\tfor (var id in idToExternalAndNameMapping) {\n\t\tvar mappedName = idToExternalAndNameMapping[id][1];\n\t\tvar factory = get(mappedName);\n\t\t__webpack_modules__[id] = (function(factory) {\n\t\t\treturn function(module) {\n\t\t\t\tmodule.exports = factory();\n\t\t\t}\n\t\t})(factory);\n\t}\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"runtime\": 0,\n\t\"common\": 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(common|runtime)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = wx[\"webpackJsonp\"] = wx[\"webpackJsonp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","",""],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/vendors.js b/dist/vendors.js
index a97b842..493ffcf 100644
--- a/dist/vendors.js
+++ b/dist/vendors.js
@@ -467,7 +467,7 @@ function Info(props) {
}))
});
}
-/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (Info);
+/* harmony default export */ __webpack_exports__["default"] = (Info);
/***/ }),
diff --git a/src/app.config.ts b/src/app.config.ts
index 0a98701..1a1822c 100644
--- a/src/app.config.ts
+++ b/src/app.config.ts
@@ -3,6 +3,8 @@ export default {
// "pages/index/index",
"pages/home/index",
"pages/activityList/index",
+ "pages/mountainPeak/index",
+
],
diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx
index 2385fca..c497ddc 100644
--- a/src/pages/home/index.tsx
+++ b/src/pages/home/index.tsx
@@ -14,10 +14,12 @@ import { Swiper, SwiperItem, Image } from "@antmjs/vantui";
import react from "react";
import { NoticeBar } from "@antmjs/vantui";
import Taro from "@tarojs/taro";
+import { Tabbar, TabbarItem } from "@antmjs/vantui";
const Home = () => {
// const { images } = COMMON
const [initPage1, setInitPage1] = react.useState(0);
+ const [active, setActive] = react.useState(0);
const onChange = (e) => {};
const images = [
"cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/download.jpg",
@@ -65,6 +67,16 @@ const Home = () => {
{/* 模块 */}
+ {
+ // 跳转到目的页面,打开新页面
+ Taro.navigateTo({
+ url: "/pages/mountainPeak/index",
+ });
+ }}
+ />
{
/>
-
{/* 分割线 */}
@@ -102,6 +113,19 @@ const Home = () => {
/>
);
})}
+
+ setActive(e?.detail)}
+ safeAreaInsetBottom={false}
+
+
+ >
+ 首页
+ {/* 标签 */}
+ 活动
+ 我的
+
);
};
diff --git a/src/pages/mountainPeak/index.tsx b/src/pages/mountainPeak/index.tsx
new file mode 100644
index 0000000..5d131d9
--- /dev/null
+++ b/src/pages/mountainPeak/index.tsx
@@ -0,0 +1,25 @@
+import { View } from "@tarojs/components";
+import react from "react";
+import { Sidebar, SidebarItem } from "@antmjs/vantui";
+
+const mountainPeak = () => {
+ return (
+
+ {" "}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default mountainPeak;