(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2107],{9671:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var i=n(1002),r=n(2180),o=n(136),a=n(7277),s=n(5671),l=n(3144),c=n(1413),u=n(4942);function isFunction$1(e){return"function"==typeof e}function isUndefined(e){return void 0===e}function isObject(e){return e&&"object"===(0,i.Z)(e)}var d=function isBadObj(e){return!isObject(e)};function throwTypeError(e){throw new TypeError(e)}isFunction$1(Object.assign)||(Object.assign=function(e){null==e&&throwTypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n1?l-1:0),u=1;u=this.interceptors.length)throw new Error("chain 参数错误, 请勿直接修改 request.chain");var t=this._getNextInterceptor()(this._getNextChain()),n=t.catch((function(e){return Promise.reject(e)}));return Object.keys(t).forEach((function(e){return isFunction$1(t[e])&&(n[e]=t[e])})),n}},{key:"_getNextInterceptor",value:function _getNextInterceptor(){return this.interceptors[this.index]}},{key:"_getNextChain",value:function _getNextChain(){return new Chain(this.requestParams,this.interceptors,this.index+1)}}]),Chain}(),_=function(){function Link(e){(0,s.Z)(this,Link),this.taroInterceptor=e,this.chain=new E}return(0,l.Z)(Link,[{key:"request",value:function request(e){var t=this.chain,n=this.taroInterceptor;return t.interceptors=t.interceptors.filter((function(e){return e!==n})).concat(n),t.proceed((0,c.Z)({},e))}},{key:"addInterceptor",value:function addInterceptor(e){this.chain.interceptors.push(e)}},{key:"cleanInterceptors",value:function cleanInterceptors(){this.chain=new E}}]),Link}();var w={640:1.17,750:1,828:.905};function getInitPxTransform(e){return function(t){var n=t.designWidth,i=void 0===n?750:n,r=t.deviceRatio,o=void 0===r?w:r,a=t.baseFontSize,s=void 0===a?20:a,l=t.targetUnit,c=void 0===l?"rpx":l,u=t.unitPrecision,d=void 0===u?5:u;e.config=e.config||{},e.config.designWidth=i,e.config.deviceRatio=o,e.config.baseFontSize=s,e.config.targetUnit=c,e.config.unitPrecision=d}}var C={Behavior:function Behavior(e){return e},getEnv:function getEnv(){return P.WEAPP},ENV_TYPE:P,Link:_,interceptors:Object.freeze({__proto__:null,timeoutInterceptor:function timeoutInterceptor(e){var t,n=e.requestParams,i=new Promise((function(i,r){var o=setTimeout((function(){o=null,r(new Error("网络链接超时,请稍后再试!"))}),n&&n.timeout||6e4);(t=e.proceed(n)).then((function(e){o&&(clearTimeout(o),i(e))})).catch((function(e){o&&clearTimeout(o),r(e)}))}));return!isUndefined(t)&&isFunction$1(t.abort)&&(i.abort=t.abort),i},logInterceptor:function logInterceptor(e){var t=e.requestParams,n=t.method,i=t.data,r=t.url;console.log("http ".concat(n||"GET"," --\x3e ").concat(r," data: "),i);var o=e.proceed(t),a=o.then((function(e){return console.log("http <-- ".concat(r," result:"),e),e}));return isFunction$1(o.abort)&&(a.abort=o.abort),a}}),Current:r.Current,getCurrentInstance:r.getCurrentInstance,options:r.options,nextTick:r.nextTick,eventCenter:r.eventCenter,Events:r.Events,getInitPxTransform:getInitPxTransform,interceptorify:function interceptorify(e){return new _((function(t){return e(t.requestParams)}))}};C.initPxTransform=getInitPxTransform(C),C.preload=function getPreload(e){return function(t,n){e.preloadData=isObject(t)?t:(0,u.Z)({},t,n)}}(r.Current),C.pxTransform=function getPxTransform(e){return function(t){var n=e.config||{},i=n.deviceRatio||w,r=n.baseFontSize,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return isFunction$1(n.designWidth)?n.designWidth(e):n.designWidth||750}(t);if(!(o in i))throw new Error("deviceRatio 配置中不存在 ".concat(o," 的设置!"));var a=~~t,s=1/n.deviceRatio[o];switch(n.targetUnit){case"rem":s*=2*r;break;case"px":s*=2}var l=a/s;return n.unitPrecision>=0&&n.unitPrecision<=100&&(l=Number(l.toFixed(n.unitPrecision))),l+n.targetUnit}}(C)},2919:function(e,t,n){"use strict";n.r(t),n.d(t,{VirtualList:function(){return i},default:function(){return i}});var i=n(8469).Z},8469:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0&&void 0!==arguments[0]&&arguments[0]){var e=p.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=p.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),p.body.appendChild(e),e.scrollLeft>0?v="positive-descending":(e.scrollLeft=1,v=0===e.scrollLeft?"negative":"positive-ascending"),p.body.removeChild(e),v}return v}var g=n(3433),m=n(4455),y=n(4165),b=n(5861),k=n(2954),T=function defaultItemKey(e,t){return e};function isHorizontalFunc(e){var t=e.direction,n=e.layout;return"horizontal"===t||"horizontal"===n}function getRectSize(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=(0,k.createSelectorQuery)();try{r.select(e).boundingClientRect((function(e){e?null==t||t(e):null==n||n()})).exec()}catch(r){setTimeout((function(){getRectSize(e,t,n,i)}),i)}}function _getScrollViewContextNode(){return(_getScrollViewContextNode=(0,b.Z)((0,y.Z)().mark((function _callee(e){var t;return(0,y.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return t=(0,k.createSelectorQuery)(),n.abrupt("return",new Promise((function(n){return t.select(e).node((function(e){var t=e.node;return n(t)})).exec()})));case 2:case"end":return n.stop()}}),_callee)})))).apply(this,arguments)}var S=function(){function ListSet(e,t){(0,s.Z)(this,ListSet),this.props=e,this.refresh=t,this.list=[],this.defaultSize=1,this.update(e),this.props.unlimitedSize?this.mode="unlimited":(0,m.mf)(this.props.itemSize)?this.mode="function":this.mode="normal",this.defaultSize=((0,m.mf)(this.props.itemSize)?this.props.itemSize():this.props.itemSize)||1,this.isNormalMode||(this.list=new Array(this.length).fill(-1))}return(0,l.Z)(ListSet,[{key:"isNormalMode",get:function get(){return"normal"===this.mode}},{key:"isFunctionMode",get:function get(){return"function"===this.mode}},{key:"isUnlimitedMode",get:function get(){return"unlimited"===this.mode}},{key:"length",get:function get(){return this.props.itemCount||100}},{key:"overscan",get:function get(){return this.props.overscanCount||0}},{key:"wrapperSize",get:function get(){var e=this.props,t=e.height,n=e.width;return isHorizontalFunc(this.props)?n:t}},{key:"update",value:function update(e){if(this.props=e,this.length>this.list.length){var t,n=new Array(this.length-this.list.length).fill(-1);(t=this.list).push.apply(t,(0,g.Z)(n))}else this.length0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultSize;this.list[t]=n,null===(e=this.refresh)||void 0===e||e.call(this)}},{key:"getSize",value:function getSize(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.props.itemSize,n=this.list[e];if(n>=0)return n;if(this.isFunctionMode&&(0,m.mf)(t)){var i=t(e,this.props.itemData);return this.setSize(e,i),i}return this.defaultSize}},{key:"getOffsetSize",value:function getOffsetSize(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.length;return this.isNormalMode?t*this.defaultSize:this.list.slice(0,t).reduce((function(t,n,i){return t+e.getSize(i)}),0)}},{key:"getSizeCount",value:function getSizeCount(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0===t)return 0;var n=0;return this.list.reduce((function(i,r,o){return n0&&void 0!==arguments[0]?arguments[0]:0;return Math.max(0,this.getSizeCount(e)-1)}},{key:"getStopIndex",value:function getStopIndex(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(n,Math.min(this.length-1,this.getSizeCount(e+t)))}},{key:"getRangeToRender",value:function getRangeToRender(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(0===this.length)return[0,0,0,0];var i=this.wrapperSize,r=this.getStartIndex(t),o=this.getStopIndex(i,t,r),a=n&&"backward"!==e?1:Math.max(1,this.overscan),s=n&&"forward"!==e?1:Math.max(1,this.overscan);return[Math.max(0,r-a),Math.max(0,Math.min(this.length-1,o+s)),r,o]}},{key:"getOffsetForIndexAndAlignment",value:function getOffsetForIndexAndAlignment(e,t,n){var i=this.wrapperSize,r=this.getSize(e),o=Math.max(0,this.getOffsetSize(this.props.itemCount)-i),a=Math.min(o,this.getOffsetSize(e)),s=Math.max(0,this.getOffsetSize(e)-i+r);switch("smart"===t&&(t=n>=s-i&&n<=a+i?"auto":"center"),t){case"start":return a;case"end":return s;case"center":var l=Math.round(s+(a-s)/2);return lo+Math.floor(i/2)?o:l;default:return n>=s&&n<=a?n:n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!!this.isNormalMode||this.getSize(e)===t}}]),ListSet}();function getMiddleNumber(){for(var e=arguments.length,t=new Array(e),n=0;n=0?this.props.placeholderCount:this.props.overscanCount}},{key:"outerTagName",get:function get(){return this.props.outerElementType||this.props.outerTagName||"div"}},{key:"innerTagName",get:function get(){return this.props.innerElementType||this.props.innerTagName||"div"}},{key:"itemTagName",get:function get(){return this.props.itemElementType||this.props.itemTagName||"div"}},{key:"field",get:function get(){return this.wrapperField},set:function set(e){Object.assign(this.wrapperField,e)}},{key:"isShaking",value:function isShaking(e){var t=this.diffList.slice(-3);return this.diffList.push(e),-1!==t.findIndex((function(t){return Math.abs(t)===Math.abs(e)}))||function isCosDistributing(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0,i=0;i=s&&e<=l&&setTimeout((function(){getRectSize(i,o,fail)}),100)}))}))},n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,r=void 0===i?n.itemList.wrapperSize:i,o=t.scrollHeight,a=t.scrollWidth,s=void 0===a?n.itemList.getOffsetSize():a,l=t.scrollTop,c=t.scrollLeft;n.preset.field={scrollHeight:o,scrollWidth:n.itemList.getOffsetSize(),scrollTop:l,scrollLeft:c,clientHeight:o,clientWidth:s},n.setState((function(e){var t=n.preset.field.scrollLeft-c;if(e.scrollOffset===c||n.preset.isShaking(t))return null;var i=c;if(n.preset.isRtl)switch(getRTLOffsetType()){case"negative":i=-c;break;case"positive-descending":i=s-r-c}return n.preset.field={scrollWidth:i},{isScrolling:!0,scrollDirection:e.scrollOffset1&&void 0!==arguments[1]?arguments[1]:0,n=(0,f.now)(),i={id:(0,f.requestAnimationFrame)((function tick(){(0,f.now)()-n>=t?e.call(null):i.id=(0,f.requestAnimationFrame)(tick)}))};return i}(n._resetIsScrolling,200)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n.preset.getItemStyleCache(-1,null)}))},n.preset=new E(e,n.refresh),n.itemList=n.preset.itemList,n.state={id:n.props.id||n.preset.id,instance:(0,c.Z)(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1,refreshCount:0},n}return(0,l.Z)(List,[{key:"_callPropsCallbacks",value:function _callPropsCallbacks(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0&&t&&t.itemCount!==this.props.itemCount){var i=this._getRangeToRender(),r=(0,a.Z)(i,4),o=r[0],s=r[1],l=r[2],c=r[3];this._callOnItemsRendered(o,s,l,c)}"function"==typeof this.props.onScroll&&(n&&n.scrollDirection===this.state.scrollDirection&&n.scrollOffset===this.state.scrollOffset&&n.scrollUpdateWasRequested===this.state.scrollUpdateWasRequested||this._callOnScroll(this.state.scrollDirection,this.state.scrollOffset,this.state.scrollUpdateWasRequested,this.preset.field)),setTimeout((function(){for(var t=e._getRangeToRender(),n=(0,a.Z)(t,2),i=n[0],r=n[1],o=e.preset.isHorizontal,s=i;s<=r;s++)e._getSizeUploadSync(s,o)}),0)}},{key:"_getRangeToRender",value:function _getRangeToRender(){return this.itemList.getRangeToRender(this.state.scrollDirection,this.state.scrollOffset,this.state.isScrolling)}},{key:"scrollTo",value:function scrollTo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.props.enhanced;if(e=Math.max(0,e),this.state.scrollOffset!==e){if(t){var n=this.preset.isHorizontal,i={animated:!0,duration:500};return n?i.left=e:i.top=e,function getScrollViewContextNode(e){return _getScrollViewContextNode.apply(this,arguments)}("#".concat(this.state.id)).then((function(e){return e.scrollTo(i)}))}this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset1&&void 0!==arguments[1]?arguments[1]:"auto",n=this.props.itemCount,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(this.itemList.getOffsetForIndexAndAlignment(e,t,i))}},{key:"componentDidMount",value:function componentDidMount(){var e=this.props.initialScrollOffset;if("number"==typeof e&&null!=this._outerRef){var t=this._outerRef;this.preset.isHorizontal?t.scrollLeft=e:t.scrollTop=e}this._callPropsCallbacks()}},{key:"componentDidUpdate",value:function componentDidUpdate(e,t){var n=this.state,i=n.scrollOffset,r=n.scrollUpdateWasRequested;if(this.preset.update(this.props),r&&null!=this._outerRef){var o=this._outerRef;if(this.preset.isHorizontal)if(this.preset.isRtl)switch(getRTLOffsetType()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:o.scrollLeft=o.scrollWidth-o.clientWidth-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks(e,t)}},{key:"componentWillUnmount",value:function componentWillUnmount(){null!==this._resetIsScrollingTimeoutId&&cancelTimeout(this._resetIsScrollingTimeoutId)}},{key:"render",value:function render(){var e=this,t=function omit(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}(this.props,["innerElementType","innerTagName","itemElementType","itemTagName","outerElementType","outerTagName","position"]),n=t.className,i=t.direction,o=t.height,s=t.innerRef,l=t.item,c=t.itemCount,u=t.itemData,d=t.itemKey,h=void 0===d?T:d,f=t.layout,p=t.style,v=t.useIsScrolling,g=t.width,m=t.enhanced,y=void 0!==m&&m,b=t.renderTop,k=t.renderBottom,S=__rest(t,["className","direction","height","innerRef","item","itemCount","itemData","itemKey","layout","style","useIsScrolling","width","enhanced","renderTop","renderBottom"]),P=this.state,E=P.id,_=P.isScrolling,w=P.scrollOffset,C=P.scrollUpdateWasRequested,I=this.preset.isHorizontal,x=this.preset.placeholderCount,L=I?this._onScrollHorizontal:this._onScrollVertical,O=this._getRangeToRender(),R=(0,a.Z)(O,2),N=R[0],A=R[1],F=[];if(c>0){var Z=N0?D:0)0&&void 0!==arguments[0]&&arguments[0],t=f.R;return e?h.Current.router:t.useMemo((function(){return h.Current.router}),[])},useSaveExitState:A,useScope:function useScope(){},useShareAppMessage:F,useShareTimeline:Z,useTabItemTap:D,useTitleClick:M,useUnhandledRejection:S,useUnload:O}),B=(0,h.incrementId)(),U=(0,d.gl)();function setReconciler(e){d.PT.tap("getLifecycle",(function(e,t){return e[t=t.replace(/^on(Show|Hide)$/,"componentDid$1")]})),d.PT.tap("modifyMpEvent",(function(e){Object.defineProperty(e,"type",{value:e.type.replace(/-/g,"")})})),d.PT.tap("batchedEventUpdates",(function(t){e.unstable_batchedUpdates(t)})),d.PT.tap("mergePageInstance",(function(e,t){e&&t&&("constructor"in e||Object.keys(e).forEach((function(n){var i=e[n],r=function ensureIsArray(e){return(0,d.kJ)(e)?e:e?[e]:[]}(t[n]);t[n]=r.concat(i)})))})),U&&(d.PT.tap("createPullDownComponent",(function(e,t,n,i){var r=isClassComponent(n,e);return n.forwardRef((function(t,n){var o=Object.assign({},t),a=r?{ref:n}:{forwardedRef:n,reactReduxForwardedRef:n};return v(i||"taro-pull-to-refresh",null,v(e,Object.assign(Object.assign({},o),a)))}))})),d.PT.tap("getDOMNode",(function(t){return e.findDOMNode(t)})))}function createReactApp(e,t,n,u){var y;f.R=t,v=t.createElement,g=n,m=t.Fragment;var b,k,T=t.createRef(),S=isClassComponent(t,e),P=new Promise((function(e){return k=e}));function getAppInstance(){return T.current}function waitAppWrapper(e){b?e():P.then((function(){return e()}))}function renderReactRoot(){var e,n,i="app";U&&(i=(null==u?void 0:u.appId)||i);var r=h.document.getElementById(i);if((t.version||"").startsWith("18")){var o=g.createRoot(r);null===(e=o.render)||void 0===e||e.call(o,v(E))}else null===(n=g.render)||void 0===n||n.call(g,v(E),r)}setReconciler(g);var E=function(n){(0,l.Z)(AppWrapper,n);var i=(0,c.Z)(AppWrapper);function AppWrapper(e){var t;return(0,a.Z)(this,AppWrapper),(t=i.call(this,e)).pages=[],t.elements=[],b=(0,o.Z)(t),k((0,o.Z)(t)),t}return(0,s.Z)(AppWrapper,[{key:"mount",value:function mount(e,n,i){var r=function connectReactPage(e,t){return function(n){var i=function inject(e){return e&&(0,h.injectPageInstance)(e,t)},r=isClassComponent(e,n)?{ref:i}:{forwardedRef:i,reactReduxForwardedRef:i};return f.PageContext===d.kT&&(f.PageContext=e.createContext("")),function(e){(0,l.Z)(PageWrapper,e);var i=(0,c.Z)(PageWrapper);function PageWrapper(){var e;return(0,a.Z)(this,PageWrapper),(e=i.apply(this,arguments)).state={hasError:!1},e}return(0,s.Z)(PageWrapper,[{key:"componentDidCatch",value:function componentDidCatch(e,t){}},{key:"render",value:function render(){var e=this.state.hasError?[]:v(f.PageContext.Provider,{value:t},v(n,Object.assign(Object.assign({},this.props),r)));return U?v("div",{id:t,className:"taro_page"},e):v("root",{id:t},e)}}],[{key:"getDerivedStateFromError",value:function getDerivedStateFromError(e){var t,n;return null===(n=null===(t=h.Current.app)||void 0===t?void 0:t.onError)||void 0===n||n.call(t,e.message+e.stack),{hasError:!0}}}]),PageWrapper}(e.Component)}}(t,n)(e),o=n+B();this.pages.push((function page(){return v(r,{key:o,tid:n})})),this.forceUpdate(i)}},{key:"unmount",value:function unmount(e,t){var n=this.elements,i=n.findIndex((function(t){return t.props.tid===e}));n.splice(i,1),this.forceUpdate(t)}},{key:"render",value:function render(){for(var t=this.pages,n=this.elements;t.length>0;){var i=t.pop();n.push(i())}var r=null;return S&&(r={ref:T}),v(e,r,U?v(null!=m?m:"div",null,n.slice()):n.slice())}}]),AppWrapper}(t.Component);U||renderReactRoot();var _=(0,r.Z)(d.PT.call("getMiniLifecycleImpl").app,3),w=_[0],C=_[1],I=_[2],x=Object.create({render:function render(e){b.forceUpdate(e)},mount:function mount(e,t,n){b?b.mount(e,t,n):P.then((function(i){return i.mount(e,t,n)}))},unmount:function unmount(e,t){b.unmount(e,t)}},(y={config:setDefaultDescriptor({configurable:!0,value:u})},(0,i.Z)(y,w,setDefaultDescriptor({value:function value(e){var t=this;setRouterParams(e),U&&renderReactRoot();waitAppWrapper((function onLaunch(){var n,i=getAppInstance();if(t.$app=i,i){if(i.taroGlobalData){var r=i.taroGlobalData,o=Object.keys(r),a=Object.getOwnPropertyDescriptors(r);o.forEach((function(e){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function get(){return r[e]},set:function set(t){r[e]=t}})})),Object.defineProperties(t,a)}null===(n=i.onLaunch)||void 0===n||n.call(i,e)}triggerAppHook("onLaunch",e)}))}})),(0,i.Z)(y,C,setDefaultDescriptor({value:function value(e){setRouterParams(e);waitAppWrapper((function onShow(){var t,n=getAppInstance();null===(t=null==n?void 0:n.componentDidShow)||void 0===t||t.call(n,e),triggerAppHook("onShow",e)}))}})),(0,i.Z)(y,I,setDefaultDescriptor({value:function value(){waitAppWrapper((function onHide(){var e,t=getAppInstance();null===(e=null==t?void 0:t.componentDidHide)||void 0===e||e.call(t),triggerAppHook("onHide")}))}})),(0,i.Z)(y,"onError",setDefaultDescriptor({value:function value(e){waitAppWrapper((function onError(){var t,n=getAppInstance();null===(t=null==n?void 0:n.onError)||void 0===t||t.call(n,e),triggerAppHook("onError",e)}))}})),(0,i.Z)(y,"onUnhandledRejection",setDefaultDescriptor({value:function value(e){waitAppWrapper((function onUnhandledRejection(){var t,n=getAppInstance();null===(t=null==n?void 0:n.onUnhandledRejection)||void 0===t||t.call(n,e),triggerAppHook("onUnhandledRejection",e)}))}})),(0,i.Z)(y,"onPageNotFound",setDefaultDescriptor({value:function value(e){waitAppWrapper((function onPageNotFound(){var t,n=getAppInstance();null===(t=null==n?void 0:n.onPageNotFound)||void 0===t||t.call(n,e),triggerAppHook("onPageNotFound",e)}))}})),y));function triggerAppHook(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e.textContent="")}},h=l()(d),f=new WeakMap,p=function(){function Root(e,t,n){(0,i.Z)(this,Root),this.renderer=e,this.initInternalRoot(e,t,n)}return(0,r.Z)(Root,[{key:"initInternalRoot",value:function initInternalRoot(e,t,n){var i=t;if(n){var r=!1,o="",a=function onRecoverableError(e){return console.error(e)},s=null;!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&(s=n.unstable_transitionCallbacks),this.internalRoot=e.createContainer(i,1,null,r,!1,o,a,s)}else{this.internalRoot=e.createContainer(i,0,null,!1,!1,"",(function(){}),null)}}},{key:"render",value:function render(e,t){var n=this.renderer,i=this.internalRoot;return n.updateContainer(e,i,null,t),n.getPublicRootInstance(i)}},{key:"unmount",value:function unmount(e){this.renderer.updateContainer(null,this.internalRoot,null,e)}}]),Root}();var v=h.batchedUpdates;var g=(0,o.mf)(Symbol)&&Symbol.for?Symbol.for("react.portal"):60106;var m={render:function render(e,t,n){var i=f.get(t);if(null!=i)return i.render(e,n);var r=new p(h,t);return f.set(t,r),r.render(e,n)},createRoot:function createRoot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f.get(e);if(null!=n)return n;var i=new p(h,e,t);return f.set(e,i),i},unstable_batchedUpdates:v,unmountComponentAtNode:function unmountComponentAtNode(e){(0,o.zx)(e&&[1,8,9,11].includes(e.nodeType),"unmountComponentAtNode(...): Target container is not a DOM element.");var t=f.get(e);return!!t&&(v((function(){t.unmount((function(){f.delete(e)}))}),null),!0)},findDOMNode:function findDOMNode(e){if(null==e)return null;var t=e.nodeType;return 1===t||3===t?e:h.findHostInstance(e)},createPortal:function createPortal(e,t,n){return{$$typeof:g,key:null==n?null:String(n),children:e,containerInfo:t,implementation:null}}}},2180:function(e,t,n){"use strict";n.r(t),n.d(t,{Current:function(){return Zt},Events:function(){return y.zW},FormElement:function(){return Ke},History:function(){return wt},Location:function(){return jt},MutationObserver:function(){return re},SVGElement:function(){return Yt},Style:function(){return Fe},TaroElement:function(){return Ze},TaroEvent:function(){return Qe},TaroNode:function(){return me},TaroRootElement:function(){return et},TaroText:function(){return tt},URL:function(){return ht},URLSearchParams:function(){return dt},addLeadingSlash:function(){return addLeadingSlash},cancelAnimationFrame:function(){return Qt},createComponentConfig:function(){return createComponentConfig},createEvent:function(){return createEvent},createPageConfig:function(){return createPageConfig},createRecursiveComponentConfig:function(){return createRecursiveComponentConfig},document:function(){return ft},eventCenter:function(){return Pt},eventHandler:function(){return eventHandler},eventSource:function(){return he},getComputedStyle:function(){return getComputedStyle},getCurrentInstance:function(){return Mt},getPageInstance:function(){return getPageInstance},history:function(){return Jt},hooks:function(){return y.PT},hydrate:function(){return hydrate},incrementId:function(){return oe},injectPageInstance:function(){return injectPageInstance},location:function(){return Kt},navigator:function(){return Wt},nextTick:function(){return nn},now:function(){return Bt},options:function(){return Me},parseUrl:function(){return parseUrl},removePageInstance:function(){return removePageInstance},requestAnimationFrame:function(){return Vt},safeExecute:function(){return safeExecute},stringify:function(){return stringify},window:function(){return zt}});var i,r=n(9439),o=n(8301),a=n(4433),s=n(1120),l=n(4506),c=n(1002),u=n(7326),d=n(4942),h=n(136),f=n(7277),p=n(8737),v=n(3433),g=n(5671),m=n(3144),y=n(4455),b=n(2180).window,k=n(2180).document,T=n(2180).requestAnimationFrame,S=n(2180).cancelAnimationFrame,P="页面初始化",E="root",_="document-fragment",w="id",C="class",I="style",x="focus",L="view",O="static-view",R="pure-view",N="value",A="input",F="custom-wrapper",Z="target",M="currentTarget",H="type",D="confirm",j="timeStamp",B="keyCode",U="touchmove",G="catchMove",W="catch-view",z="comment",q="onLoad",V="onReady",Q="onShow",$="onHide",K="options",J="externalClasses",Y="e_result",X="behaviors";!function(e){e.INIT="0",e.RESTORE="1",e.RECOVER="2",e.DESTORY="3"}(i||(i={}));var ee=[],te=function sidMatches(e,t){return!!e&&e.sid===(null==t?void 0:t.sid)},ne=function isConcerned(e,t){var n=t.characterData,i=t.characterDataOldValue,r=t.attributes,o=t.attributeOldValue,a=t.childList;switch(e.type){case"characterData":return!!n&&(i||(e.oldValue=null),!0);case"attributes":return!!r&&(o||(e.oldValue=null),!0);case"childList":return!!a}},ie=!1;function logMutation(e,t){e.records.push(t),ie||(ie=!0,Promise.resolve().then((function(){ie=!1,ee.forEach((function(e){return e.callback(e.takeRecords())}))})))}var re=function(){function MutationObserver(e){(0,g.Z)(this,MutationObserver),this.core={observe:y.ZT,disconnect:y.ZT,takeRecords:y.ZT}}return(0,m.Z)(MutationObserver,[{key:"observe",value:function observe(){var e;(e=this.core).observe.apply(e,arguments)}},{key:"disconnect",value:function disconnect(){this.core.disconnect()}},{key:"takeRecords",value:function takeRecords(){return this.core.takeRecords()}}],[{key:"record",value:function record(e){!function recordMutation(e){ee.forEach((function(t){for(var n=t.options,i=e.target;i;i=i.parentNode){if(te(t.target,i)&&ne(e,n)){logMutation(t,e);break}if(!n.subtree)break}}))}(e)}}]),MutationObserver}(),oe=function incrementId(){for(var e=[],t=65;t<=90;t++)e.push(t);for(var n=97;n<=122;n++)e.push(n);var i=e.length-1,r=[0,0];return function(){var t=r.map((function(t){return e[t]})),n=String.fromCharCode.apply(String,(0,v.Z)(t)),o=r.length-1;for(r[o]++;r[o]>i;){if(r[o]=0,(o-=1)<0){r.push(0);break}r[o]++}return n}};function isElement(e){return 1===e.nodeType}function isComment(e){return e.nodeName===z}function isHasExtractProp(e){var t=Object.keys(e.props).find((function(e){return!(/^(class|style|id)$/.test(e)||e.startsWith("data-"))}));return Boolean(t)}function shortcutAttr(e){switch(e){case I:return"st";case w:return"uid";case C:return"cl";default:return e}}var ae,se=new Map;function _extend(e,t,n){(0,y.mf)(n)&&(n={value:n}),Object.defineProperty(e.prototype,t,Object.assign({configurable:!0,enumerable:!0},n))}function getComponentsAlias(){return ae||(ae=(0,y.W)(y.rD)),ae}var le,ce,ue=function(){function ClassList(e,t){var n=this;(0,g.Z)(this,ClassList),this.tokenList=[],this.el=t,e.trim().split(/\s+/).forEach((function(e){return n.tokenList.push(e)}))}return(0,m.Z)(ClassList,[{key:"value",get:function get(){return this.toString()}},{key:"length",get:function get(){return this.tokenList.length}},{key:"add",value:function add(){var e=0,t=!1,n=arguments,i=n.length,r=this.tokenList;do{var o=n[e];this.checkTokenIsValid(o)&&!~r.indexOf(o)&&(r.push(o),t=!0)}while(++e-1&&(r.nn="static-".concat(i),i!==L||isHasExtractProp(e)||(r.nn=R));var o=e.props;for(var a in o){var s=(0,y.CA)(a);a.startsWith("data-")||a===C||a===I||a===w||s===G||(r[s]=o[a]),i===L&&s===G&&!1!==o[a]&&(r.nn=W)}var l=e.childNodes;l=l.filter((function(e){return!isComment(e)})),l.length>0?r.cn=l.map(hydrate):r.cn=[],""!==e.className&&(r.cl=e.className);var c=e.cssText;""!==c&&"swiper-item"!==i&&(r.st=c),y.PT.call("modifyHydrateData",r);var u=r.nn,h=ce[u];if(h)for(var f in r.nn=h._num,r)f in h&&(r[h[f]]=r[f],delete r[f]);return r}var ve=function(){function TaroEventTarget(){(0,g.Z)(this,TaroEventTarget),this.__handlers={}}return(0,m.Z)(TaroEventTarget,[{key:"addEventListener",value:function addEventListener(e,t,n){if(e=e.toLowerCase(),y.PT.call("onAddEvent",e,t,n,this),"regionchange"===e)return this.addEventListener("begin",t,n),void this.addEventListener("end",t,n);Boolean(n);var i=!1;if((0,y.Kn)(n)&&(Boolean(n.capture),i=Boolean(n.once)),i){this.addEventListener(e,(function wrapper(){t.apply(this,arguments),this.removeEventListener(e,wrapper)}),Object.assign(Object.assign({},n),{once:!1}))}else{var r=t;t=function handler(){return r.apply(this,arguments)},t.oldHandler=r;var o=this.__handlers[e];(0,y.kJ)(o)?o.push(t):this.__handlers[e]=[t]}}},{key:"removeEventListener",value:function removeEventListener(e,t){if("regionchange"===(e=e.toLowerCase()))return this.removeEventListener("begin",t),void this.removeEventListener("end",t);if(t){var n=this.__handlers[e];if((0,y.kJ)(n)){var i=n.findIndex((function(e){if(e===t||e.oldHandler===t)return!0}));n.splice(i,1)}}}},{key:"isAnyEventBinded",value:function isAnyEventBinded(){var e=this.__handlers,isAnyEventBinded=Object.keys(e).find((function(t){return e[t].length}));return Boolean(isAnyEventBinded)}}]),TaroEventTarget}(),ge=oe(),me=function(e){(0,h.Z)(TaroNode,e);var t=(0,f.Z)(TaroNode);function TaroNode(){var e;return(0,g.Z)(this,TaroNode),(e=t.call(this)).parentNode=null,e.childNodes=[],e.hydrate=function(e){return function(){return hydrate(e)}},e.uid="_"+ge(),e.sid=e.uid,he.set(e.sid,(0,u.Z)(e)),e}return(0,m.Z)(TaroNode,[{key:"updateChildNodes",value:function updateChildNodes(e){var t=this;this.enqueueUpdate({path:"".concat(this._path,".").concat("cn"),value:e?function cleanChildNodes(){return[]}:function rerenderChildNodes(){return t.childNodes.filter((function(e){return!isComment(e)})).map(hydrate)}})}},{key:"_root",get:function get(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e._root)||null}},{key:"findIndex",value:function findIndex(e){var t=this.childNodes.indexOf(e);return(0,y.zx)(-1!==t,"The node to be replaced is not a child of this node."),t}},{key:"_path",get:function get(){var e=this.parentNode;if(e){var t=e.childNodes.filter((function(e){return!isComment(e)})).indexOf(this),n=y.PT.call("getPathIndex",t);return"".concat(e._path,".").concat("cn",".").concat(n)}return""}},{key:"nextSibling",get:function get(){var e=this.parentNode;return(null==e?void 0:e.childNodes[e.findIndex(this)+1])||null}},{key:"previousSibling",get:function get(){var e=this.parentNode;return(null==e?void 0:e.childNodes[e.findIndex(this)-1])||null}},{key:"parentElement",get:function get(){var e=this.parentNode;return 1===(null==e?void 0:e.nodeType)?e:null}},{key:"firstChild",get:function get(){return this.childNodes[0]||null}},{key:"lastChild",get:function get(){var e=this.childNodes;return e[e.length-1]||null}},{key:"textContent",set:function set(e){for(var t=this.childNodes.slice(),n=[];this.firstChild;)this.removeChild(this.firstChild,{doUpdate:!1});if(""===e)this.updateChildNodes(!0);else{var i=pe.document.createTextNode(e);n.push(i),this.appendChild(i),this.updateChildNodes()}re.record({type:"childList",target:this,removedNodes:t,addedNodes:n})}},{key:"insertBefore",value:function insertBefore(e,t,n){var i=this;if(e.nodeName===_)return e.childNodes.reduceRight((function(e,t){return i.insertBefore(t,e),t}),t),e;if(e.remove({cleanRef:!1}),e.parentNode=this,t){var r=this.findIndex(t);this.childNodes.splice(r,0,e)}else this.childNodes.push(e);this._root&&(t?n?this.enqueueUpdate({path:e._path,value:this.hydrate(e)}):this.updateChildNodes():1===this.childNodes.length?this.updateChildNodes():this.enqueueUpdate({path:e._path,value:this.hydrate(e)}));return re.record({type:"childList",target:this,addedNodes:[e],removedNodes:n?[t]:[],nextSibling:n?t.nextSibling:t||null,previousSibling:e.previousSibling}),e}},{key:"appendChild",value:function appendChild(e){return this.insertBefore(e)}},{key:"replaceChild",value:function replaceChild(e,t){if(t.parentNode===this)return this.insertBefore(e,t,!0),t.remove({doUpdate:!1}),t}},{key:"removeChild",value:function removeChild(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.cleanRef,i=t.doUpdate;!1!==n&&!1!==i&&re.record({type:"childList",target:this,removedNodes:[e],nextSibling:e.nextSibling,previousSibling:e.previousSibling});var r=this.findIndex(e);return this.childNodes.splice(r,1),e.parentNode=null,!1!==n&&he.removeNodeTree(e),this._root&&!1!==i&&this.updateChildNodes(),e}},{key:"remove",value:function remove(e){var t;null===(t=this.parentNode)||void 0===t||t.removeChild(this,e)}},{key:"hasChildNodes",value:function hasChildNodes(){return this.childNodes.length>0}},{key:"enqueueUpdate",value:function enqueueUpdate(e){var t;null===(t=this._root)||void 0===t||t.enqueueUpdate(e)}},{key:"ownerDocument",get:function get(){return pe.document}}],[{key:"extend",value:function extend(e,t){_extend(TaroNode,e,t)}}]),TaroNode}(ve),ye="webkit",be=["all","appearance","blockOverflow","blockSize","bottom","clear","contain","content","continue","cursor","direction","display","filter","float","gap","height","inset","isolation","left","letterSpacing","lightingColor","markerSide","mixBlendMode","opacity","order","position","quotes","resize","right","rowGap","tabSize","tableLayout","top","userSelect","verticalAlign","visibility","voiceFamily","volume","whiteSpace","widows","width","zIndex","pointerEvents","aspectRatio"];function combine(e,t,n){!n&&be.push(e),t.forEach((function(t){be.push(e+t),e===ye&&be.push("Webkit"+t)}))}var ke="Color",Te="Style",Se="Width",Pe="Image",Ee="Size",_e=[ke,Te,Se],we=["FitLength","FitWidth",Pe],Ce=[].concat(we,["Radius"]),Ie=[].concat(_e,we),xe=["EndRadius","StartRadius"],Le=["Bottom","Left","Right","Top"],Oe=["End","Start"],Re=["Content","Items","Self"],Ne=["BlockSize","Height","InlineSize",Se],Ae=["After","Before"];function recordCss(e){re.record({type:"attributes",target:e._element,attributeName:"style",oldValue:e.cssText})}function enqueueUpdate(e){var t=e._element;t._root&&t.enqueueUpdate({path:"".concat(t._path,".","st"),value:e.cssText})}function setStyle(e,t){this[t]!==e&&(!this._pending&&recordCss(this),(0,y.Ft)(e)||(0,y.o8)(e)?(this._usedStyleProp.delete(t),delete this._value[t]):(this._usedStyleProp.add(t),this._value[t]=e),!this._pending&&enqueueUpdate(this))}function initStyle(e,t){for(var n={},i=function _loop(){var i=t[r];if(e[i])return{v:void 0};n[i]={get:function get(){var e=this._value[i];return(0,y.Ft)(e)||(0,y.o8)(e)?"":e},set:function set(e){setStyle.call(this,e,i)}}},r=0;r0}},{key:"focus",get:function get(){return function(){this.setAttribute(x,!0)}},set:function set(e){this.setAttribute(x,e)}},{key:"blur",value:function blur(){this.setAttribute(x,!1)}},{key:"setAttribute",value:function setAttribute(e,t){var n=this.nodeName===L&&!isHasExtractProp(this)&&!this.isAnyEventBinded();switch(e!==I&&re.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e){case I:this.style.cssText=t;break;case w:this.uid!==this.sid&&he.delete(this.uid),t=String(t),this.props[e]=this.uid=t,he.set(t,this);break;default:this.props[e]=t,e.startsWith("data-")&&(this.dataset===y.kT&&(this.dataset=Object.create(null)),this.dataset[(0,y.CA)(e.replace(/^data-/,""))]=t)}if(this._root){var i=getComponentsAlias(),r=i[this.nodeName],o=i[L]._num,a=i[O]._num,s=i[W]._num,l=this._path;e=shortcutAttr(e);var c=(0,y.CA)(e),u={path:"".concat(l,".").concat(c),value:(0,y.mf)(t)?function(){return t}:t};if(y.PT.call("modifySetAttrPayload",this,e,u,i),r){var d=r[c]||e;u.path="".concat(l,".").concat((0,y.CA)(d))}this.enqueueUpdate(u),this.nodeName===L&&(c===G?this.enqueueUpdate({path:"".concat(l,".","nn"),value:t?s:this.isAnyEventBinded()?o:a}):n&&isHasExtractProp(this)&&this.enqueueUpdate({path:"".concat(l,".","nn"),value:a}))}}},{key:"removeAttribute",value:function removeAttribute(e){var t=this.nodeName===L&&isHasExtractProp(this)&&!this.isAnyEventBinded();if(re.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e===I)this.style.cssText="";else{if(y.PT.call("onRemoveAttribute",this,e))return;if(!this.props.hasOwnProperty(e))return;delete this.props[e]}if(this._root){var n=getComponentsAlias(),i=n[this.nodeName],r=n[L]._num,o=n[O]._num,a=n[R]._num,s=this._path;e=shortcutAttr(e);var l=(0,y.CA)(e),c={path:"".concat(s,".").concat(l),value:""};if(y.PT.call("modifyRmAttrPayload",this,e,c,n),i){var u=i[l]||e;c.path="".concat(s,".").concat((0,y.CA)(u))}this.enqueueUpdate(c),this.nodeName===L&&(l===G?this.enqueueUpdate({path:"".concat(s,".","nn"),value:this.isAnyEventBinded()?r:isHasExtractProp(this)?o:a}):t&&!isHasExtractProp(this)&&this.enqueueUpdate({path:"".concat(s,".","nn"),value:a}))}}},{key:"getAttribute",value:function getAttribute(e){var t=e===I?this.style.cssText:this.props[e];return null!=t?t:""}},{key:"getElementsByTagName",value:function getElementsByTagName(e){var t=this;return treeToArray(this,(function(n){return n.nodeName===e||"*"===e&&t!==n}))}},{key:"getElementsByClassName",value:function getElementsByClassName(e){var t=e.trim().split(/\s+/);return treeToArray(this,(function(e){var n=e.classList;return t.every((function(e){return n.contains(e)}))}))}},{key:"dispatchEvent",value:function dispatchEvent(e){var t=e.cancelable,n=this.__handlers[e.type];if(!(0,y.kJ)(n))return!1;for(var i=n.length;i--;){var r=n[i],o=void 0;if(r._stop?r._stop=!1:(y.PT.call("modifyDispatchEvent",e,this),o=r.call(this,e)),(!1===o||e._end)&&t&&(e.defaultPrevented=!0),!(0,y.o8)(o)&&e.mpEvent&&(e.mpEvent[Y]=o),e._end&&e._stop)break}return e._stop?this._stopPropagation(e):e._stop=!0,null!=n}},{key:"addEventListener",value:function addEventListener(e,t,n){var i=this.nodeName,r=y.PT.call("getSpecialNodes"),a=!0;if((0,y.Kn)(n)&&!1===n.sideEffect&&(a=!1,delete n.sideEffect),!1!==a&&!this.isAnyEventBinded()&&r.indexOf(i)>-1){var l=getComponentsAlias()[i]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:l})}(0,o.Z)((0,s.Z)(TaroElement.prototype),"addEventListener",this).call(this,e,t,n)}},{key:"removeEventListener",value:function removeEventListener(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,o.Z)((0,s.Z)(TaroElement.prototype),"removeEventListener",this).call(this,e,t);var i=this.nodeName,r=y.PT.call("getSpecialNodes");if(!1!==n&&!this.isAnyEventBinded()&&r.indexOf(i)>-1){var a=getComponentsAlias()[isHasExtractProp(this)?"static-".concat(i):"pure-".concat(i)]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:a})}}}],[{key:"extend",value:function extend(e,t){_extend(TaroElement,e,t)}}]),TaroElement}(me),Me={prerender:!0,debug:!1};function feedPosition(e,t,n){for(var i=e.index,r=e.index=i+n,o=i;ot;r--){var o=n.charAt(r);if(!isWhitespaceChar(o)){if(isEqualSignChar(o))return!1;break}}for(var a=e+1;a"===r))break;i++}for(var o=i+1;o"===a))break;o++}jumpPosition(t,e,o);var s=e.slice(i,o);return this.tokens.push({type:"tag",content:s}),s}},{key:"scanAttrs",value:function scanAttrs(){for(var e=this.html,t=this.position,n=this.tokens,i=t.index,r=null,o=i,a=[],s=e.length;i"===l){i!==o&&a.push(e.slice(o,i));break}if(isWordEnd(i,o,e))i!==o&&a.push(e.slice(o,i)),o=i+1,i++;else"'"===l||'"'===l?(r=l,i++):i++}}jumpPosition(t,e,i);for(var c=a.length,u="attribute",d=0;d1){var p=h+f;n.push({type:u,content:p}),d+=1;continue}var v=a[d+2];if(d+=1,v){var g=h+"="+v;n.push({type:u,content:g}),d+=1;continue}}}if(h.endsWith("=")){var m=a[d+1];if(m&&!m.includes("=")){var y=h+m;n.push({type:u,content:y}),d+=1;continue}var b=h.slice(0,-1);n.push({type:u,content:b})}else n.push({type:u,content:h})}}},{key:"scanSkipTag",value:function scanSkipTag(e){for(var t=this.html,n=this.position,i=e.toLowerCase(),r=t.length;n.index]*>((.|\n|\s)+?)<\/style>/g,(function(e,n){var i=n.trim();return t.stringToSelector(i),""})),n.trim()}},{key:"stringToSelector",value:function stringToSelector(e){for(var t=this,n=e.indexOf("{"),i=function _loop2(){var i=e.indexOf("}"),r=e.slice(0,n).trim(),o=e.slice(n+1,i);o=(o=(o=o.replace(/:(.*);/g,(function(e,t){var n=t.trim().replace(/ +/g,"+++");return":".concat(n,";")}))).replace(/ /g,"")).replace(/\+\+\+/g," "),/;$/.test(o)||(o+=";"),r.split(",").forEach((function(e){var n=t.parseSelector(e);t.styles.push({content:o,selectorList:n})})),e=e.slice(i+1),n=e.indexOf("{")};n>-1;)i()}},{key:"parseSelector",value:function parseSelector(e){return e.trim().replace(/ *([>~+]) */g," $1").replace(/ +/g," ").replace(/\[\s*([^[\]=\s]+)\s*=\s*([^[\]=\s]+)\s*\]/g,"[$1=$2]").split(" ").map((function(e){var t=e.charAt(0),n={isChild:">"===t,isGeneralSibling:"~"===t,isAdjacentSibling:"+"===t,tag:null,id:null,class:[],attrs:[]};return""!==(e=(e=(e=e.replace(/^[>~+]/,"")).replace(/\[(.+?)\]/g,(function(e,t){var i=t.split("="),o=(0,r.Z)(i,2),a=o[0],s=o[1],l=-1===t.indexOf("="),c={all:l,key:a,value:l?null:s};return n.attrs.push(c),""}))).replace(/([.#][A-Za-z0-9-_]+)/g,(function(e,t){return"#"===t[0]?n.id=t.substr(1):"."===t[0]&&n.class.push(t.substr(1)),""})))&&(n.tag=e),n}))}},{key:"matchStyle",value:function matchStyle(e,t,n){var i=this;return function sortStyles(e){return e.sort((function(e,t){var n=getHundredsWeight(e.selectorList),i=getHundredsWeight(t.selectorList);if(n!==i)return n-i;var r=getTensWeight(e.selectorList),o=getTensWeight(t.selectorList);return r!==o?r-o:getOnesWeight(e.selectorList)-getOnesWeight(t.selectorList)}))}(this.styles).reduce((function(r,o,a){var s=o.content,l=o.selectorList,c=n[a],u=l[c],d=l[c+1];((null==d?void 0:d.isGeneralSibling)||(null==d?void 0:d.isAdjacentSibling))&&(u=d,c+=1,n[a]+=1);var h=i.matchCurrent(e,t,u);if(h&&u.isGeneralSibling)for(var f=getPreviousElement(t);f;){if(f.h5tagName&&i.matchCurrent(f.h5tagName,f,l[c-1])){h=!0;break}f=getPreviousElement(f),h=!1}if(h&&u.isAdjacentSibling){var p=getPreviousElement(t);if(p&&p.h5tagName)i.matchCurrent(p.h5tagName,p,l[c-1])||(h=!1);else h=!1}if(h){if(c===l.length-1)return r+s;c0&&(n[a]-=1,i.matchCurrent(e,t,l[n[a]])&&(n[a]+=1));return r}),"")}},{key:"matchCurrent",value:function matchCurrent(e,t,n){if(n.tag&&n.tag!==e)return!1;if(n.id&&n.id!==t.id)return!1;if(n.class.length)for(var i=t.className.split(" "),r=0;r=0;){var r=t[i].tagName;if(r===e)break;if(n&&n.includes(r))return!0;i--}return!1}function format(e,t,n,i){return e.filter((function(e){return"comment"!==e.type&&("text"!==e.type||""!==e.content)})).map((function(e){if("text"===e.type){var o=t.createTextNode(e.content);return(0,y.mf)(Me.html.transformText)&&(o=Me.html.transformText(o,e)),null==i||i.appendChild(o),o}var a,s,l=t.createElement(function getTagName(e){return Me.html.renderHTMLTag?e:Ge[e]?Ge[e]:We(e)?e:qe(e)?"view":ze(e)?"text":"view"}(e.tagName));l.h5tagName=e.tagName,null==i||i.appendChild(l),Me.html.renderHTMLTag||(l.className="h5-".concat(e.tagName));for(var c=0;c-1;)if(n[c].tagName===l){u=!0;break}for(;i0;){if(l===n[h].tagName){n.splice(h),o=n[h-1].children;break}h-=1}for(var f=[],p=void 0;i0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;this.pendingUpdate=!0;var i=this.ctx;setTimeout((function(){var r="".concat("小程序 setData"," 开始时间戳 ").concat(Date.now());Ye.start(r);for(var o=Object.create(null),a=new Set(t?["root.cn.[0]","root.cn[0]"]:[]);e.updatePayloads.length>0;){var s=e.updatePayloads.shift(),l=s.path,c=s.value;l.endsWith("cn")&&a.add(l),o[l]=c}var u=function _loop3(e){a.forEach((function(t){e.includes(t)&&e!==t&&delete o[e]}));var t=o[e];(0,y.mf)(t)&&(o[e]=t())};for(var h in o)u(h);if((0,y.mf)(n))return n(o);e.pendingUpdate=!1;var f={},p=new Map;if(t)f=o;else for(var v in o){var g=v.split("."),m=findCustomWrapper(e,g);if(m){var b=m.customWrapper,k=m.splitedPath;p.set(b,Object.assign(Object.assign({},p.get(b)||{}),(0,d.Z)({},"i.".concat(k),o[v])))}else f[v]=o[v]}var T=p.size,S=Object.keys(f).length>0,E=T+(S?1:0),_=0,w=function cb(){++_===E&&(Ye.stop(r),e.flushUpdateCallback(),t&&Ye.stop(P))};T&&p.forEach((function(e,t){t.setData(e,w)})),S&&i.setData(f,w)}),0)}},{key:"enqueueUpdateCallback",value:function enqueueUpdateCallback(e,t){this.updateCallbacks.push((function(){t?e.call(t):e()}))}},{key:"flushUpdateCallback",value:function flushUpdateCallback(){var e=this.updateCallbacks;if(e.length){var t=e.slice(0);this.updateCallbacks.length=0;for(var n=0;n-1?appendTo(t,decode(o.slice(0,a)),decode(o.slice(a+1))):o.length&&appendTo(t,decode(o),"")}}else if((0,y.kJ)(e))for(var s=0,l=e.length;s0&&void 0!==arguments[0]?arguments[0]:"",t={href:"",origin:"",protocol:"",hostname:"",host:"",port:"",pathname:"",search:"",hash:""};if(!e||!(0,y.HD)(e))return t;var n=(e=e.trim()).match(/^(([^:/?#]+):)?\/\/(([^/?#]+):(.+)@)?([^/?#:]*)(:(\d+))?([^?#]*)(\?([^#]*))?(#(.*))?/);return n?(t.protocol=n[1]||"https:",t.hostname=n[6]||"taro.com",t.port=n[8]||"",t.pathname=n[9]||"/",t.search=n[10]||"",t.hash=n[12]||"",t.href=e,t.origin=t.protocol+"//"+t.hostname,t.host=t.hostname+(t.port?":".concat(t.port):""),t):t}ot=new WeakMap,at=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ut=new WeakMap;var ft,pt=function(e){(0,h.Z)(AnchorElement,e);var t=(0,f.Z)(AnchorElement);function AnchorElement(){return(0,g.Z)(this,AnchorElement),t.apply(this,arguments)}return(0,m.Z)(AnchorElement,[{key:"href",get:function get(){var e;return null!==(e=this.props.href)&&void 0!==e?e:""},set:function set(e){this.setAttribute("href",e)}},{key:"protocol",get:function get(){var e;return null!==(e=this.props.protocol)&&void 0!==e?e:""}},{key:"host",get:function get(){var e;return null!==(e=this.props.host)&&void 0!==e?e:""}},{key:"search",get:function get(){var e;return null!==(e=this.props.search)&&void 0!==e?e:""}},{key:"hash",get:function get(){var e;return null!==(e=this.props.hash)&&void 0!==e?e:""}},{key:"hostname",get:function get(){var e;return null!==(e=this.props.hostname)&&void 0!==e?e:""}},{key:"port",get:function get(){var e;return null!==(e=this.props.port)&&void 0!==e?e:""}},{key:"pathname",get:function get(){var e;return null!==(e=this.props.pathname)&&void 0!==e?e:""}},{key:"setAttribute",value:function setAttribute(e,t){if("href"===e){var n=parseUrl(t);for(var i in n)(0,o.Z)((0,s.Z)(AnchorElement.prototype),"setAttribute",this).call(this,i,n[i])}else(0,o.Z)((0,s.Z)(AnchorElement.prototype),"setAttribute",this).call(this,e,t)}}]),AnchorElement}(Ze),vt=function(e){(0,h.Z)(CustomWrapperElement,e);var t=(0,f.Z)(CustomWrapperElement);function CustomWrapperElement(){return(0,g.Z)(this,CustomWrapperElement),t.apply(this,arguments)}return(0,m.Z)(CustomWrapperElement)}(Ze),gt=function(e){(0,h.Z)(TaroDocument,e);var t=(0,f.Z)(TaroDocument);function TaroDocument(){var e;return(0,g.Z)(this,TaroDocument),(e=t.call(this)).createEvent=createEvent,e.nodeType=9,e.nodeName="#document",e}return(0,m.Z)(TaroDocument,[{key:"createElement",value:function createElement(e){var t,n=e.toLowerCase();switch(!0){case n===E:return t=new et;case y._c.has(n):t=new Ke;break;case"a"===n:t=new pt;break;case n===F:t=new vt;break;default:t=new Ze}return t.nodeName=n,t.tagName=e.toUpperCase(),t}},{key:"createElementNS",value:function createElementNS(e,t){return this.createElement(t)}},{key:"createTextNode",value:function createTextNode(e){return new tt(e)}},{key:"getElementById",value:function getElementById(e){var t=he.get(e);return(0,y.o8)(t)?null:t}},{key:"querySelector",value:function querySelector(e){return/^#/.test(e)?this.getElementById(e.slice(1)):null}},{key:"querySelectorAll",value:function querySelectorAll(){return[]}},{key:"createComment",value:function createComment(){var e=new tt("");return e.nodeName=z,e}},{key:"defaultView",get:function get(){return pe.window}}]),TaroDocument}(Ze);if((0,y.gl)())ft=pe.document;else{ft=pe.document=function createDocument(){var e=new gt,t=e.createElement.bind(e),n=t("html"),i=t("head"),r=t("body"),o=t("app");o.id="app";var a=t("container");return e.appendChild(n),n.appendChild(i),n.appendChild(r),r.appendChild(a),a.appendChild(o),e.documentElement=n,e.head=i,e.body=r,e}()}function getComputedStyle(e){return e.style}var mt,yt,bt,kt,Tt,St,Pt=y.PT.call("getEventCenter",y.zW),Et=function(){function RuntimeCache(e){(0,g.Z)(this,RuntimeCache),this.cache=new Map,this.name=e}return(0,m.Z)(RuntimeCache,[{key:"has",value:function has(e){return this.cache.has(e)}},{key:"set",value:function set(e,t){e&&t&&this.cache.set(e,t)}},{key:"get",value:function get(e){if(this.has(e))return this.cache.get(e)}},{key:"delete",value:function _delete(e){this.cache.delete(e)}}]),RuntimeCache}(),_t=new Et("history"),wt=function(e){(0,h.Z)(History,e);var t=(0,f.Z)(History);function History(e,n){var r;return(0,g.Z)(this,History),r=t.call(this),mt.add((0,u.Z)(r)),yt.set((0,u.Z)(r),void 0),bt.set((0,u.Z)(r),[]),kt.set((0,u.Z)(r),0),Tt.set((0,u.Z)(r),void 0),__classPrivateFieldSet((0,u.Z)(r),Tt,n.window,"f"),__classPrivateFieldSet((0,u.Z)(r),yt,e,"f"),__classPrivateFieldGet((0,u.Z)(r),yt,"f").on("__record_history__",(function(e){var t;__classPrivateFieldSet((0,u.Z)(r),kt,(t=__classPrivateFieldGet((0,u.Z)(r),kt,"f"),++t),"f"),__classPrivateFieldSet((0,u.Z)(r),bt,__classPrivateFieldGet((0,u.Z)(r),bt,"f").slice(0,__classPrivateFieldGet((0,u.Z)(r),kt,"f")),"f"),__classPrivateFieldGet((0,u.Z)(r),bt,"f").push({state:null,title:"",url:e})}),null),__classPrivateFieldGet((0,u.Z)(r),yt,"f").on("__reset_history__",(function(e){__classPrivateFieldGet((0,u.Z)(r),mt,"m",St).call((0,u.Z)(r),e)}),null),r.on(i.INIT,(function(){__classPrivateFieldGet((0,u.Z)(r),mt,"m",St).call((0,u.Z)(r))}),null),r.on(i.RESTORE,(function(e){_t.set(e,{location:__classPrivateFieldGet((0,u.Z)(r),yt,"f"),stack:__classPrivateFieldGet((0,u.Z)(r),bt,"f").slice(),cur:__classPrivateFieldGet((0,u.Z)(r),kt,"f")})}),null),r.on(i.RECOVER,(function(e){if(_t.has(e)){var t=_t.get(e);__classPrivateFieldSet((0,u.Z)(r),yt,t.location,"f"),__classPrivateFieldSet((0,u.Z)(r),bt,t.stack,"f"),__classPrivateFieldSet((0,u.Z)(r),kt,t.cur,"f")}}),null),r.on(i.DESTORY,(function(e){_t.delete(e)}),null),__classPrivateFieldGet((0,u.Z)(r),mt,"m",St).call((0,u.Z)(r)),r}return(0,m.Z)(History,[{key:"length",get:function get(){return __classPrivateFieldGet(this,bt,"f").length}},{key:"state",get:function get(){return __classPrivateFieldGet(this,bt,"f")[__classPrivateFieldGet(this,kt,"f")].state}},{key:"go",value:function go(e){if((0,y.hj)(e)&&!isNaN(e)){var t=__classPrivateFieldGet(this,kt,"f")+e;t=Math.min(Math.max(t,0),this.length-1),__classPrivateFieldSet(this,kt,t,"f"),__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",__classPrivateFieldGet(this,bt,"f")[__classPrivateFieldGet(this,kt,"f")].url),__classPrivateFieldGet(this,Tt,"f").trigger("popstate",__classPrivateFieldGet(this,bt,"f")[__classPrivateFieldGet(this,kt,"f")])}}},{key:"back",value:function back(){this.go(-1)}},{key:"forward",value:function forward(){this.go(1)}},{key:"pushState",value:function pushState(e,t,n){n&&(0,y.HD)(n)&&(__classPrivateFieldSet(this,bt,__classPrivateFieldGet(this,bt,"f").slice(0,__classPrivateFieldGet(this,kt,"f")+1),"f"),__classPrivateFieldGet(this,bt,"f").push({state:e,title:t,url:n}),__classPrivateFieldSet(this,kt,this.length-1,"f"),__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",n))}},{key:"replaceState",value:function replaceState(e,t,n){n&&(0,y.HD)(n)&&(__classPrivateFieldGet(this,bt,"f")[__classPrivateFieldGet(this,kt,"f")]={state:e,title:t,url:n},__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",n))}},{key:"cache",get:function get(){return _t}}]),History}(y.zW);yt=new WeakMap,bt=new WeakMap,kt=new WeakMap,Tt=new WeakMap,mt=new WeakSet,St=function _History_reset(){__classPrivateFieldSet(this,bt,[{state:null,title:"",url:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||__classPrivateFieldGet(this,yt,"f").href}],"f"),__classPrivateFieldSet(this,kt,0,"f")};var Ct,It,xt,Lt,Ot,Rt,Nt,At,Ft,Zt={app:null,router:null,page:null},Mt=function getCurrentInstance(){return Zt},Ht="https://taro.com",Dt=new Et("location"),jt=function(e){(0,h.Z)(Location,e);var t=(0,f.Z)(Location);function Location(e){var n;return(0,g.Z)(this,Location),n=t.call(this),Ct.add((0,u.Z)(n)),It.set((0,u.Z)(n),new ht(Ht)),xt.set((0,u.Z)(n),!1),Lt.set((0,u.Z)(n),void 0),__classPrivateFieldSet((0,u.Z)(n),Lt,e.window,"f"),__classPrivateFieldGet((0,u.Z)(n),Ct,"m",Ot).call((0,u.Z)(n)),n.on("__set_href_without_history__",(function(e){__classPrivateFieldSet((0,u.Z)(n),xt,!0,"f");var t=__classPrivateFieldGet((0,u.Z)(n),It,"f").hash;__classPrivateFieldGet((0,u.Z)(n),It,"f").href=function generateFullUrl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Ht;if(/^[/?#]/.test(e))return t+e;return e}(e),t!==__classPrivateFieldGet((0,u.Z)(n),It,"f").hash&&__classPrivateFieldGet((0,u.Z)(n),Lt,"f").trigger("hashchange"),__classPrivateFieldSet((0,u.Z)(n),xt,!1,"f")}),null),n.on(i.INIT,(function(){__classPrivateFieldGet((0,u.Z)(n),Ct,"m",Ot).call((0,u.Z)(n))}),null),n.on(i.RESTORE,(function(e){Dt.set(e,{lastHref:n.href})}),null),n.on(i.RECOVER,(function(e){if(Dt.has(e)){var t=Dt.get(e);__classPrivateFieldSet((0,u.Z)(n),xt,!0,"f"),__classPrivateFieldGet((0,u.Z)(n),It,"f").href=t.lastHref,__classPrivateFieldSet((0,u.Z)(n),xt,!1,"f")}}),null),n.on(i.DESTORY,(function(e){Dt.delete(e)}),null),n}return(0,m.Z)(Location,[{key:"protocol",get:function get(){return __classPrivateFieldGet(this,It,"f").protocol},set:function set(e){if(e&&(0,y.HD)(e)&&/^(http|https):$/i.test(e.trim())){e=e.trim();var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").protocol=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"host",get:function get(){return __classPrivateFieldGet(this,It,"f").host},set:function set(e){if(e&&(0,y.HD)(e)){e=e.trim();var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").host=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"hostname",get:function get(){return __classPrivateFieldGet(this,It,"f").hostname},set:function set(e){if(e&&(0,y.HD)(e)){e=e.trim();var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").hostname=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"port",get:function get(){return __classPrivateFieldGet(this,It,"f").port},set:function set(e){var t=Number(e=e.trim());if((0,y.hj)(t)&&!(t<=0)){var n=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").port=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,n)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"pathname",get:function get(){return __classPrivateFieldGet(this,It,"f").pathname},set:function set(e){if(e&&(0,y.HD)(e)){e=e.trim();var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").pathname=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"search",get:function get(){return __classPrivateFieldGet(this,It,"f").search},set:function set(e){if(e&&(0,y.HD)(e)){e=(e=e.trim()).startsWith("?")?e:"?".concat(e);var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").search=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"hash",get:function get(){return __classPrivateFieldGet(this,It,"f").hash},set:function set(e){if(e&&(0,y.HD)(e)){e=(e=e.trim()).startsWith("#")?e:"#".concat(e);var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").hash=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"href",get:function get(){return __classPrivateFieldGet(this,It,"f").href},set:function set(e){if(e&&(0,y.HD)(e)&&/^(http:|https:)?\/\/.+/.test(e=e.trim())){var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").href=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"origin",get:function get(){return __classPrivateFieldGet(this,It,"f").origin},set:function set(e){if(e&&(0,y.HD)(e)&&/^(http:|https:)?\/\/.+/.test(e=e.trim())){var t=__classPrivateFieldGet(this,Ct,"m",Rt).call(this);__classPrivateFieldGet(this,It,"f").origin=e,__classPrivateFieldGet(this,Ct,"m",Ft).call(this,t)&&__classPrivateFieldGet(this,Ct,"m",At).call(this)}}},{key:"assign",value:function assign(){(0,y.ZK)(!0,"小程序环境中调用location.assign()无效.")}},{key:"reload",value:function reload(){(0,y.ZK)(!0,"小程序环境中调用location.reload()无效.")}},{key:"replace",value:function replace(e){this.trigger("__set_href_without_history__",e)}},{key:"toString",value:function toString(){return this.href}},{key:"cache",get:function get(){return Dt}}]),Location}(y.zW);It=new WeakMap,xt=new WeakMap,Lt=new WeakMap,Ct=new WeakSet,Ot=function _Location_reset(){var e=Mt().router;if(e){var t=e.path,n=e.params,i=Object.keys(n).map((function(e){return"".concat(e,"=").concat(n[e])})),r=i.length>0?"?"+i.join("&"):"",o="".concat(Ht).concat(t.startsWith("/")?t:"/"+t).concat(r);__classPrivateFieldSet(this,It,new ht(o),"f"),this.trigger("__reset_history__",this.href)}},Rt=function _Location_getPreValue(){return __classPrivateFieldGet(this,It,"f")._toRaw()},Nt=function _Location_rollBack(e){__classPrivateFieldGet(this,It,"f").href=e},At=function _Location_recordHistory(){this.trigger("__record_history__",this.href)},Ft=function _Location_checkUrlChange(e){if(__classPrivateFieldGet(this,xt,"f"))return!1;var t=__classPrivateFieldGet(this,It,"f")._toRaw(),n=t.protocol,i=t.hostname,r=t.port,o=t.pathname,a=t.search,s=t.hash;return n!==e.protocol||i!==e.hostname||r!==e.port?(__classPrivateFieldGet(this,Ct,"m",Nt).call(this,e.href),!1):o!==e.pathname||(a!==e.search||(s!==e.hash?(__classPrivateFieldGet(this,Lt,"f").trigger("hashchange"),!0):(__classPrivateFieldGet(this,Ct,"m",Nt).call(this,e.href),!1)))};var Bt,Ut,Gt="(Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/534.36 (KHTML, like Gecko) NodeJS/v4.1.0 Chrome/76.0.3809.132 Safari/534.36",Wt=(0,y.gl)()?pe.window.navigator:{appCodeName:"Mozilla",appName:"Netscape",appVersion:"5.0 "+Gt,cookieEnabled:!0,mimeTypes:[],onLine:!0,platform:"MacIntel",plugins:[],product:"Taro",productSub:"20030107",userAgent:"Mozilla/5.0 "+Gt,vendor:"Joyent",vendorSub:""};"undefined"!=typeof performance&&null!==performance&&performance.now?Bt=function now(){return performance.now()}:Date.now?(Ut=Date.now(),Bt=function now(){return Date.now()-Ut}):(Ut=(new Date).getTime(),Bt=function now(){return(new Date).getTime()-Ut});var zt,qt=0,Vt=null!=T?T:function(e){var t=Bt(),n=Math.max(qt+16,t);return setTimeout((function(){e(qt=n)}),n-t)},Qt=null!=S?S:function(e){clearTimeout(e)};if((0,y.gl)())zt=pe.window;else{var $t=function(e){(0,h.Z)(Window,e);var t=(0,f.Z)(Window);function Window(){var e;return(0,g.Z)(this,Window),(e=t.call(this)).navigator=Wt,e.requestAnimationFrame=Vt,e.cancelAnimationFrame=Qt,e.getComputedStyle=getComputedStyle,[].concat((0,v.Z)(Object.getOwnPropertyNames(n.g||{})),(0,v.Z)(Object.getOwnPropertySymbols(n.g||{}))).forEach((function(t){if("atob"!==t&&"document"!==t&&!Object.prototype.hasOwnProperty.call((0,u.Z)(e),t))try{e[t]=n.g[t]}catch(e){0}})),e.Date||(e.Date=Date),e.location=new jt({window:(0,u.Z)(e)}),e.history=new wt(e.location,{window:(0,u.Z)(e)}),e.initEvent(),e}return(0,m.Z)(Window,[{key:"initEvent",value:function initEvent(){var e=this.location,t=this.history;this.on(i.INIT,(function(t){e.trigger(i.INIT,t)}),null),this.on(i.RECOVER,(function(n){e.trigger(i.RECOVER,n),t.trigger(i.RECOVER,n)}),null),this.on(i.RESTORE,(function(n){e.trigger(i.RESTORE,n),t.trigger(i.RESTORE,n)}),null),this.on(i.DESTORY,(function(n){e.trigger(i.DESTORY,n),t.trigger(i.DESTORY,n)}),null)}},{key:"document",get:function get(){return pe.document}},{key:"addEventListener",value:function addEventListener(e,t){(0,y.HD)(e)&&this.on(e,t,null)}},{key:"removeEventListener",value:function removeEventListener(e,t){(0,y.HD)(e)&&this.off(e,t,null)}},{key:"setTimeout",value:function(e){function setTimeout(){return e.apply(this,arguments)}return setTimeout.toString=function(){return e.toString()},setTimeout}((function(){return setTimeout.apply(void 0,arguments)}))},{key:"clearTimeout",value:function(e){function clearTimeout(){return e.apply(this,arguments)}return clearTimeout.toString=function(){return e.toString()},clearTimeout}((function(){return clearTimeout.apply(void 0,arguments)}))}]),Window}(y.zW);zt=pe.window=new $t}var Kt=zt.location,Jt=zt.history,Yt=function(e){(0,h.Z)(SVGElement,e);var t=(0,f.Z)(SVGElement);function SVGElement(){return(0,g.Z)(this,SVGElement),t.apply(this,arguments)}return(0,m.Z)(SVGElement)}(Ze),Xt=new Map,en=oe(),tn=(0,y.gl)();function injectPageInstance(e,t){y.PT.call("mergePageInstance",Xt.get(t),e),Xt.set(t,e)}function getPageInstance(e){return Xt.get(e)}function removePageInstance(e){Xt.delete(e)}function addLeadingSlash(e){return null==e?"":"/"===e.charAt(0)?e:"/"+e}function safeExecute(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r-1?e.substring(0,n):e).concat(stringify((null==t?void 0:t.stamp)?{stamp:t.stamp}:{})):"".concat(n>-1?e.substring(0,n):e).concat(stringify(t))}function getOnReadyEventKey(e){return e+"."+V}function getOnShowEventKey(e){return e+"."+Q}function getOnHideEventKey(e){return e+"."+$}function createPageConfig(e,t,n,o){var a,s,l,c=null!=t?t:"taro_page_".concat(en()),u=(0,r.Z)(y.PT.call("getMiniLifecycleImpl").page,7),h=u[0],f=u[1],p=u[2],v=u[3],g=u[4],m=u[5],b=u[6],k=null,T=!1,S=[];function setCurrentRouter(e){var t=tn?e.$taroPath:e.route||e.__route__||e.$taroPath;Zt.router={params:e.$taroParams,path:addLeadingSlash(t),$taroPath:e.$taroPath,onReady:getOnReadyEventKey(c),onShow:getOnShowEventKey(c),onHide:getOnHideEventKey(c)},(0,y.o8)(e.exitState)||(Zt.router.exitState=e.exitState)}var E=(a={},(0,d.Z)(a,h,(function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;l=new Promise((function(e){s=e})),Ye.start(P),Zt.page=this,this.config=o||{};var a=Object.assign({},n,{$taroTimestamp:Date.now()}),u=this.$taroPath=getPath(c,a);tn&&(E.path=u),null==this.$taroParams&&(this.$taroParams=a),setCurrentRouter(this),tn||zt.trigger(i.INIT,u);var d=function mount(){Zt.app.mount(e,u,(function(){k=pe.document.getElementById(u),(0,y.zx)(null!==k,"没有找到页面实例。"),safeExecute(u,q,t.$taroParams),s(),tn?(0,y.mf)(r)&&r():(k.ctx=t,k.performUpdate(!0,r))}))};T?S.push(d):d()})),(0,d.Z)(a,f,(function(){var e=this.$taroPath;tn||zt.trigger(i.DESTORY,e),safeExecute(e,f),T=!0,Zt.app.unmount(e,(function(){T=!1,Xt.delete(e),k&&(k.ctx=null,k=null),S.length&&(S.forEach((function(e){return e()})),S=[])}))})),(0,d.Z)(a,p,(function(){var e=this;l.then((function(){safeExecute(e.$taroPath,V),Vt((function(){return Pt.trigger(getOnReadyEventKey(c))})),e.onReady.called=!0}))})),(0,d.Z)(a,v,(function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.then((function(){Zt.page=e,setCurrentRouter(e),tn||zt.trigger(i.RECOVER,e.$taroPath),safeExecute(e.$taroPath,Q,t),Vt((function(){return Pt.trigger(getOnShowEventKey(c))}))}))})),(0,d.Z)(a,g,(function(){tn||zt.trigger(i.RESTORE,this.$taroPath),Zt.page===this&&(Zt.page=null,Zt.router=null),safeExecute(this.$taroPath,$),Pt.trigger(getOnHideEventKey(c))})),a);return m.forEach((function(e){E[e]=function(){return safeExecute.apply(void 0,[this.$taroPath,e].concat(Array.prototype.slice.call(arguments)))}})),b.forEach((function(t){var n;(e[t]||(null===(n=e.prototype)||void 0===n?void 0:n[t])||e[t.replace(/^on/,"enable")])&&(E[t]=function(){for(var e,n=arguments.length,i=new Array(n),r=0;r1?l-1:0),u=1;ut?1:-1:i?-1:r||e>=t?1:-1})).forEach((function(n,i){var r={_num:String(i)};Object.keys(e[n]).filter((function(e){return!/^bind/.test(e)&&!["focus","blur"].includes(e)})).sort().forEach((function(e,t){r[toCamelCase(e)]="p"+t})),t[toDashed(n)]=r})),t}function mergeReconciler(e,t){var n=t||C;Object.keys(e).forEach((function(t){n.tap(t,e[t])}))}function nonsupport(e){return function(){console.warn("小程序暂不支持 ".concat(e))}}function setUniqueKeyToRoute(e,t){if(["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(e)>-1){var n=(t.url=t.url||"").indexOf("?")>-1,i=function getUniqueKey(){return O+L++}();t.url+=(n?"&":"?")+"".concat("__key_","=").concat(i)}}var R=new Set(["addPhoneContact","authorize","canvasGetImageData","canvasPutImageData","canvasToTempFilePath","checkSession","chooseAddress","chooseImage","chooseInvoiceTitle","chooseLocation","chooseVideo","clearStorage","closeBLEConnection","closeBluetoothAdapter","closeSocket","compressImage","connectSocket","createBLEConnection","downloadFile","exitMiniProgram","getAvailableAudioSources","getBLEDeviceCharacteristics","getBLEDeviceServices","getBatteryInfo","getBeacons","getBluetoothAdapterState","getBluetoothDevices","getClipboardData","getConnectedBluetoothDevices","getConnectedWifi","getExtConfig","getFileInfo","getImageInfo","getLocation","getNetworkType","getSavedFileInfo","getSavedFileList","getScreenBrightness","getSetting","getStorage","getStorageInfo","getSystemInfo","getUserInfo","getWifiList","hideHomeButton","hideShareMenu","hideTabBar","hideTabBarRedDot","loadFontFace","login","makePhoneCall","navigateBack","navigateBackMiniProgram","navigateTo","navigateToBookshelf","navigateToMiniProgram","notifyBLECharacteristicValueChange","hideKeyboard","hideLoading","hideNavigationBarLoading","hideToast","openBluetoothAdapter","openDocument","openLocation","openSetting","pageScrollTo","previewImage","queryBookshelf","reLaunch","readBLECharacteristicValue","redirectTo","removeSavedFile","removeStorage","removeTabBarBadge","requestSubscribeMessage","saveFile","saveImageToPhotosAlbum","saveVideoToPhotosAlbum","scanCode","sendSocketMessage","setBackgroundColor","setBackgroundTextStyle","setClipboardData","setEnableDebug","setInnerAudioOption","setKeepScreenOn","setNavigationBarColor","setNavigationBarTitle","setScreenBrightness","setStorage","setTabBarBadge","setTabBarItem","setTabBarStyle","showActionSheet","showFavoriteGuide","showLoading","showModal","showShareMenu","showTabBar","showTabBarRedDot","showToast","startBeaconDiscovery","startBluetoothDevicesDiscovery","startDeviceMotionListening","startPullDownRefresh","stopBeaconDiscovery","stopBluetoothDevicesDiscovery","stopCompass","startCompass","startAccelerometer","stopAccelerometer","showNavigationBarLoading","stopDeviceMotionListening","stopPullDownRefresh","switchTab","uploadFile","vibrateLong","vibrateShort","writeBLECharacteristicValue"]);function processApis(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.needPromiseApis||[],o=new Set([].concat((0,i.Z)(r),(0,i.Z)(R))),a=["getEnv","interceptors","Current","getCurrentInstance","options","nextTick","eventCenter","Events","preload","webpackJsonp"],s=new Set(n.isOnlyPromisify?r:Object.keys(t).filter((function(e){return-1===a.indexOf(e)})));n.modifyApis&&n.modifyApis(s),s.forEach((function(i){if(o.has(i)){var r=i;e[r]=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length,o=new Array(i>1?i-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{};e.canIUseWebp=function getCanIUseWebp(e){return function(){var t,n=null===(t=e.getSystemInfoSync)||void 0===t?void 0:t.call(e);if(!n)return!1;var i=n.platform.toLowerCase();return"android"===i||"devtools"===i}}(e),e.getCurrentPages=getCurrentPages||nonsupport("getCurrentPages"),e.getApp=getApp||nonsupport("getApp"),e.env=t.env||{};try{e.requirePlugin=requirePlugin||nonsupport("requirePlugin")}catch(t){e.requirePlugin=nonsupport("requirePlugin")}var i=n.request||function getNormalRequest(e){return function request(t){var n,i=(t=t?isString(t)?{url:t}:t:{}).success,r=t.fail,o=t.complete,a=new Promise((function(a,s){t.success=function(e){i&&i(e),a(e)},t.fail=function(e){r&&r(e),s(e)},t.complete=function(e){o&&o(e)},n=e.request(t)}));return equipTaskMethodsIntoPromise(n,a),a.abort=function(e){return e&&e(),n&&n.abort(),a},a}}(t);function taroInterceptor(e){return i(e.requestParams)}var r=new e.Link(taroInterceptor);e.request=r.request.bind(r),e.addInterceptor=r.addInterceptor.bind(r),e.cleanInterceptors=r.cleanInterceptors.bind(r),e.miniGlobal=e.options.miniGlobal=t,e.initAppInfo=function(t){"function"==typeof e.getAppInfo&&(e.getAppInfo=function(){return t})}}(e,t,n)}function equipTaskMethodsIntoPromise(e,t){if(e&&t){e&&["abort","onHeadersReceived","offHeadersReceived","onProgressUpdate","offProgressUpdate","onChunkReceived","offChunkReceived"].forEach((function(n){n in e&&(t[n]=e[n].bind(e))}))}}},2954:function(e,t,n){var i=n(2180).hooks,r=n(9671).Z;i.isExist("initNativeApi")&&i.call("initNativeApi",r),e.exports=r,e.exports.default=e.exports},4560:function(e,t,n){"use strict";var i=n(2180);Component((0,i.createRecursiveComponentConfig)())},9313:function(e,t,n){"use strict";var i=n(2180);Component((0,i.createRecursiveComponentConfig)("custom-wrapper"))}}]);