2023-05-15 16:21:46 +08:00

1 line
145 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}),isFunction$1(Object.defineProperties)||(Object.defineProperties=function(e,t){function convertToDescriptor(e){function hasProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}d(e)&&throwTypeError("bad desc");var t={};if(hasProperty(e,"enumerable")&&(t.enumerable=!!e.enumerable),hasProperty(e,"configurable")&&(t.configurable=!!e.configurable),hasProperty(e,"value")&&(t.value=e.value),hasProperty(e,"writable")&&(t.writable=!!e.writable),hasProperty(e,"get")){var n=e.get;isFunction$1(n)||isUndefined(n)||throwTypeError("bad get"),t.get=n}if(hasProperty(e,"set")){var i=e.set;isFunction$1(i)||isUndefined(i)||throwTypeError("bad set"),t.set=i}return("get"in t||"set"in t)&&("value"in t||"writable"in t)&&throwTypeError("identity-confused descriptor"),t}d(e)&&throwTypeError("bad obj"),t=Object(t);for(var n=Object.keys(t),i=[],r=0;r<n.length;r++)i.push([n[r],convertToDescriptor(t[n[r]])]);for(var o=0;o<i.length;o++)Object.defineProperty(e,i[o][0],i[o][1]);return e});var h,f="[]",p="",v="!0",g="!1",m={bindTouchStart:p,bindTouchMove:p,bindTouchEnd:p,bindTouchCancel:p,bindLongTap:p},b={animation:p,bindAnimationStart:p,bindAnimationIteration:p,bindAnimationEnd:p,bindTransitionEnd:p};function singleQuote(e){return"'".concat(e,"'")}Object.assign(Object.assign({"hover-class":singleQuote("none"),"hover-stop-propagation":g,"hover-start-time":"50","hover-stay-time":"400"},m),b),Object.assign({longitude:p,latitude:p,scale:"16",markers:f,covers:p,polyline:f,circles:f,controls:f,"include-points":f,"show-location":p,"layer-style":"1",bindMarkerTap:p,bindControlTap:p,bindCalloutTap:p,bindUpdated:p},m),Object.assign({size:singleQuote("default"),type:p,plain:g,disabled:p,loading:g,"form-type":p,"open-type":p,"hover-class":singleQuote("button-hover"),"hover-stop-propagation":g,"hover-start-time":"20","hover-stay-time":"70",name:p},m),Object.assign({"scroll-top":g},m),Object.assign(Object.assign({direction:"none",inertia:g,"out-of-bounds":g,x:p,y:p,damping:"20",friction:"2",disabled:p,scale:g,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:p,bindScale:p,bindHTouchMove:p,bindVTouchMove:p,width:singleQuote("10px"),height:singleQuote("10px")},m),b),Object.assign(Object.assign({"scroll-x":g,"scroll-y":g,"upper-threshold":"50","lower-threshold":"50","scroll-top":p,"scroll-left":p,"scroll-into-view":p,"scroll-with-animation":g,"enable-back-to-top":g,bindScrollToUpper:p,bindScrollToLower:p,bindScroll:p},m),b),Object.assign({"indicator-dots":g,"indicator-color":singleQuote("rgba(0, 0, 0, .3)"),"indicator-active-color":singleQuote("#000000"),autoplay:g,current:"0",interval:"5000",duration:"500",circular:g,vertical:g,"previous-margin":singleQuote("0px"),"next-margin":singleQuote("0px"),"display-multiple-items":"1",bindChange:p,bindTransition:p,bindAnimationFinish:p},m),Object.assign({src:p,mode:singleQuote("scaleToFill"),"lazy-load":g,bindError:p,bindLoad:p},m),Object.assign({src:p,autoplay:g,muted:g,orientation:singleQuote("vertical"),"object-fit":singleQuote("contain"),"background-mute":g,"min-cache":"1","max-cache":"3",bindStateChange:p,bindFullScreenChange:p,bindNetStatus:p},b),Object.assign({src:p,duration:p,controls:v,"danmu-list":p,"danmu-btn":p,"enable-danmu":p,autoplay:g,loop:g,muted:g,"initial-time":"0","page-gesture":g,direction:p,"show-progress":v,"show-fullscreen-btn":v,"show-play-btn":v,"show-center-play-btn":v,"enable-progress-gesture":v,"object-fit":singleQuote("contain"),poster:p,"show-mute-btn":g,bindPlay:p,bindPause:p,bindEnded:p,bindTimeUpdate:p,bindFullScreenChange:p,bindWaiting:p,bindError:p},b),Object.assign({"canvas-id":p,"disable-scroll":g,bindError:p},m),function(e){e.MINI="mini",e.WEB="web",e.RN="rn",e.HARMONY="harmony",e.QUICK="quickapp"}(h||(h={})),h.WEB,h.HARMONY,h.MINI,h.RN,h.QUICK;var y=function(){function Events(e){var t;(0,s.Z)(this,Events),this.callbacks=null!==(t=null==e?void 0:e.callbacks)&&void 0!==t?t:{}}return(0,l.Z)(Events,[{key:"on",value:function on(e,t,n){var i,r,o,a;if(!t)return this;e=e.split(Events.eventSplitter),this.callbacks||(this.callbacks={});for(var s=this.callbacks;i=e.shift();)(r=(a=s[i])?a.tail:{}).next=o={},r.context=n,r.callback=t,s[i]={tail:o,next:a?a.next:r};return this}},{key:"once",value:function once(e,t,n){var i=this;return this.on(e,(function wrapper(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t.apply(i,o),i.off(e,wrapper,n)}),n),this}},{key:"off",value:function off(e,t,n){var i,r,o,a,s,l;if(!(r=this.callbacks))return this;if(!(e||t||n))return delete this.callbacks,this;for(e=e?e.split(Events.eventSplitter):Object.keys(r);i=e.shift();)if(o=r[i],delete r[i],o&&(t||n))for(a=o.tail;(o=o.next)!==a;)s=o.callback,l=o.context,(t&&s!==t||n&&l!==n)&&this.on(i,s,l);return this}},{key:"trigger",value:function trigger(e){var t,n,i,r;if(!(i=this.callbacks))return this;e=e.split(Events.eventSplitter);for(var o=[].slice.call(arguments,1);t=e.shift();)if(n=i[t])for(r=n.tail;(n=n.next)!==r;)n.callback.apply(n.context||this,o);return this}}]),Events}();function isFunction(e){return"function"==typeof e}y.eventSplitter=",";var k;!function(e){e[e.SINGLE=0]="SINGLE",e[e.MULTI=1]="MULTI",e[e.WATERFALL=2]="WATERFALL"}(k||(k={}));var T={app:["onLaunch","onShow","onHide"],page:["onLoad","onUnload","onReady","onShow","onHide",["onPullDownRefresh","onReachBottom","onPageScroll","onResize","onTabItemTap","onTitleClick","onOptionMenuClick","onPopMenuClick","onPullIntercept","onAddToFavorites"],["onShareAppMessage","onShareTimeline"]],component:["attached","detached"]};function TaroHook(e,t){return{type:e,initial:t||null}}var S=function(e){(0,o.Z)(TaroHooks,e);var t=(0,a.Z)(TaroHooks);function TaroHooks(e,n){var i;for(var r in(0,s.Z)(this,TaroHooks),(i=t.call(this,n)).hooks=e,e){var o=e[r].initial;isFunction(o)&&i.on(r,o)}return i}return(0,l.Z)(TaroHooks,[{key:"tapOneOrMany",value:function tapOneOrMany(e,t){var n=this;(isFunction(t)?[t]:t).forEach((function(t){return n.on(e,t)}))}},{key:"tap",value:function tap(e,t){var n=this.hooks[e],i=n.type,r=n.initial;i===k.SINGLE?(this.off(e),this.on(e,isFunction(t)?t:t[t.length-1])):(r&&this.off(e,r),this.tapOneOrMany(e,t))}},{key:"call",value:function call(e){var t,n=this.hooks[e];if(n){var i=n.type,r=this.callbacks;if(r){var o=r[e];if(o){for(var a=o.tail,s=o.next,l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(var d,h=c;s!==a;){if(d=null===(t=s.callback)||void 0===t?void 0:t.apply(s.context||this,h),i===k.WATERFALL)h=[d];s=s.next}return d}}}}},{key:"isExist",value:function isExist(e){var t;return Boolean(null===(t=this.callbacks)||void 0===t?void 0:t[e])}}]),TaroHooks}(y);new S({getMiniLifecycle:TaroHook(k.SINGLE,(function(e){return e})),getMiniLifecycleImpl:TaroHook(k.SINGLE,(function(){return this.call("getMiniLifecycle",T)})),getLifecycle:TaroHook(k.SINGLE,(function(e,t){return e[t]})),getPathIndex:TaroHook(k.SINGLE,(function(e){return"[".concat(e,"]")})),getEventCenter:TaroHook(k.SINGLE,(function(e){return new e})),isBubbleEvents:TaroHook(k.SINGLE,(function(e){return new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]).has(e)})),getSpecialNodes:TaroHook(k.SINGLE,(function(){return["view","text","image"]})),onRemoveAttribute:TaroHook(k.SINGLE),batchedEventUpdates:TaroHook(k.SINGLE),mergePageInstance:TaroHook(k.SINGLE),modifyPageObject:TaroHook(k.SINGLE),createPullDownComponent:TaroHook(k.SINGLE),getDOMNode:TaroHook(k.SINGLE),modifyHydrateData:TaroHook(k.SINGLE),modifySetAttrPayload:TaroHook(k.SINGLE),modifyRmAttrPayload:TaroHook(k.SINGLE),onAddEvent:TaroHook(k.SINGLE),modifyMpEvent:TaroHook(k.MULTI),modifyMpEventImpl:TaroHook(k.SINGLE,(function(e){try{this.call("modifyMpEvent",e)}catch(e){console.warn("[Taro modifyMpEvent hook Error]: "+(null==e?void 0:e.message))}})),injectNewStyleProperties:TaroHook(k.SINGLE),modifyTaroEvent:TaroHook(k.MULTI),modifyDispatchEvent:TaroHook(k.MULTI),initNativeApi:TaroHook(k.MULTI),patchElement:TaroHook(k.MULTI)}),(new Date).getTime().toString();var P={WEAPP:"WEAPP",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",WEB:"WEB",RN:"RN",HARMONY:"HARMONY",QUICKAPP:"QUICKAPP"};var w=function(){function Chain(e,t,n){(0,s.Z)(this,Chain),this.index=n||0,this.requestParams=e,this.interceptors=t||[]}return(0,l.Z)(Chain,[{key:"proceed",value:function proceed(e){if(this.requestParams=e,this.index>=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}(),E=function(){function Link(e){(0,s.Z)(this,Link),this.taroInterceptor=e,this.chain=new w}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 w}}]),Link}();var _={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?_: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:E,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 E((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||_,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 O}});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);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}Object.create;Object.create;var i=n(1515),r=n(7294),o=n.n(r);function convertPX2Int(e){if("string"==typeof e){var t=e.toLowerCase();if(/px$/.test(t))return Number(t.replace(/px$/,""))}return e}function convertNumber2PX(e){return e||0===e?"number"==typeof e?e+"px":e:""}var a=n(1002),s=n(9439),l=n(5671),c=n(3144),u=n(7326),d=n(136),h=n(7277),f=n(845);var p=n(2180);function cancelTimeout(e){(0,p.cancelAnimationFrame)(e.id)}var v=n(2180).document,g=null;function getRTLOffsetType(){if(null===g||arguments.length>0&&void 0!==arguments[0]&&arguments[0]){var e=v.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=v.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),v.body.appendChild(e),e.scrollLeft>0?g="positive-descending":(e.scrollLeft=1,g=0===e.scrollLeft?"negative":"positive-ascending"),v.body.removeChild(e),g}return g}var m=n(3433),b=n(4455),y=n(4165),k=n(5861),T=n(2954),S=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,T.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,k.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,T.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 P=function(){function ListSet(e,t){(0,l.Z)(this,ListSet),this.props=e,this.refresh=t,this.list=[],this.defaultSize=1,this.update(e),this.props.unlimitedSize?this.mode="unlimited":(0,b.mf)(this.props.itemSize)?this.mode="function":this.mode="normal",this.defaultSize=((0,b.mf)(this.props.itemSize)?this.props.itemSize():this.props.itemSize)||1,this.isNormalMode||(this.list=new Array(this.length).fill(-1))}return(0,c.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,i=isHorizontalFunc(this.props),r=i?n:t;return"number"!=typeof r&&console.warn("In mode ".concat(i?"horizontal, width":"vertical, height"," parameter should be a number, but got ").concat((0,a.Z)(r),".")),r}},{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,m.Z)(n))}else this.length<this.list.length&&(this.list.length=this.length)}},{key:"setSize",value:function setSize(){var e,t=arguments.length>0&&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,b.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 n<t?(n+=e.getSize(o),++i):i}),0)-1}},{key:"getStartIndex",value:function getStartIndex(){var e=arguments.length>0&&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 l<Math.ceil(i/2)?0:l>o+Math.floor(i/2)?o:l;default:return n>=s&&n<=a?n:n<s?s:a}}},{key:"compareSize",value:function compareSize(){var e=arguments.length>0&&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<e;n++)t[n]=arguments[n];return t.sort((function(e,t){return e-t}))[Math.floor(t.length/2)]}var w=0,E=function(){function Preset(e,t){(0,l.Z)(this,Preset),this.props=e,this.refresh=t,this.wrapperField={scrollLeft:0,scrollTop:0,scrollHeight:0,scrollWidth:0,clientHeight:0,clientWidth:0,diffOffset:0},this.diffList=[0,0,0],this.getItemStyleCache=(0,f.Z)((function(e,t,n){return{}})),this.init(this.props),this.itemList=new P(e,t)}return(0,c.Z)(Preset,[{key:"init",value:function init(e){this.props=e}},{key:"update",value:function update(e){this.props=e,this.itemList.update(e)}},{key:"id",get:function get(){return"virtual-list-".concat(w++)}},{key:"isHorizontal",get:function get(){return isHorizontalFunc(this.props)}},{key:"isRtl",get:function get(){return function isRtlFunc(e){return"rtl"===e.direction}(this.props)}},{key:"isRelative",get:function get(){return"relative"===this.props.position}},{key:"placeholderCount",get:function get(){return this.props.placeholderCount>=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<e.length-1;i++)getMiddleNumber(e[i],t,e[i+1])===t&&n++;return n===e.length-1}(this.diffList.slice(-4))}},{key:"getItemStyle",value:function getItemStyle(e){var t,n=this.props,i=n.direction,r=n.itemSize,o=n.layout,a=n.shouldResetStyleCacheOnItemSizeChange,s=this.getItemStyleCache(!!a&&r,!!a&&o,!!a&&i),l=convertNumber2PX(this.itemList.getOffsetSize(e)),c=convertNumber2PX(this.itemList.getSize(e)),u=this.isHorizontal,d=this.isRtl;if(s.hasOwnProperty(e))t=Object.assign({},s[e]),u?(t.width=c,this.isRelative||(d?t.right=l:t.left=l)):(t.height=c,this.isRelative||(t.top=l));else if(this.isRelative)s[e]=t={height:u?"100%":c,width:u?c:"100%"};else{var h=u?l:0;s[e]=t={position:"absolute",left:d?void 0:h,right:d?h:void 0,top:u?0:l,height:u?"100%":c,width:u?c:"100%"}}for(var f in t)t.hasOwnProperty(f)&&(t[f]=convertNumber2PX(t[f]));return t}}]),Preset}(),_=n(2180).window,C=null,I=null;void 0!==_&&void 0!==_.WeakSet&&(C=new WeakSet,I=new WeakSet);var x=function(e){(0,d.Z)(List,e);var t=(0,h.Z)(List);function List(e){var n;return(0,l.Z)(this,List),(n=t.call(this,e)).refresh=function(){n.setState((function(e){var t=e.refreshCount;return{refreshCount:++t}}))},n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n._callOnItemsRendered=(0,f.Z)((function(e,t,i,r){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:r})})),n._callOnScroll=(0,f.Z)((function(e,t,i,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i,detail:r})})),n._getSizeUploadSync=function(e,t){var i="#".concat(n.state.id,"-").concat(e);return new Promise((function(r){var o=function success(i){var o=i.width,a=i.height,s=t?o:a;n.itemList.compareSize(e,s)||(n.itemList.setSize(e,s),r(n.itemList.getSize(e)))};getRectSize(i,o,(function fail(){var t=n._getRangeToRender(),r=(0,s.Z)(t,2),a=r[0],l=r[1];e>=a&&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.scrollOffset<c?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,r=void 0===i?n.itemList.wrapperSize:i,o=t.scrollHeight,a=void 0===o?n.itemList.getOffsetSize():o,s=t.scrollWidth,l=t.scrollTop,c=t.scrollLeft;n.setState((function(e){var t=n.preset.field.scrollTop-l;if(e.scrollOffset===l||n.preset.isShaking(t))return null;var i=Math.max(0,Math.min(l,a-r));return n.preset.field={scrollHeight:n.itemList.getOffsetSize(),scrollWidth:s,scrollTop:i,scrollLeft:c,clientHeight:r,clientWidth:s,diffOffset:n.preset.field.scrollTop-i},{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"===(0,a.Z)(t)&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&cancelTimeout(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=function requestTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,p.now)(),i={id:(0,p.requestAnimationFrame)((function tick(){(0,p.now)()-n>=t?e.call(null):i.id=(0,p.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,u.Z)(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1,refreshCount:0},n}return(0,c.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,s.Z)(i,4),o=r[0],a=r[1],l=r[2],c=r[3];this._callOnItemsRendered(o,a,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,s.Z)(t,2),i=n[0],r=n[1],o=e.preset.isHorizontal,a=i;a<=r;a++)e._getSizeUploadSync(a,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.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)}}},{key:"scrollToItem",value:function scrollToItem(e){var t=arguments.length>1&&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,r=t.height,a=t.innerRef,l=t.item,c=t.itemCount,u=t.itemData,d=t.itemKey,h=void 0===d?S:d,f=t.layout,p=t.style,v=t.useIsScrolling,g=t.width,m=t.enhanced,b=void 0!==m&&m,y=t.renderTop,k=t.renderBottom,T=__rest(t,["className","direction","height","innerRef","item","itemCount","itemData","itemKey","layout","style","useIsScrolling","width","enhanced","renderTop","renderBottom"]),P=this.state,w=P.id,E=P.isScrolling,_=P.scrollOffset,C=P.scrollUpdateWasRequested,I=this.preset.isHorizontal,x=this.preset.placeholderCount,L=I?this._onScrollHorizontal:this._onScrollVertical,O=this._getRangeToRender(),R=(0,s.Z)(O,2),N=R[0],A=R[1],F=[];if(c>0){var Z=N<x?N:x;F.push(new Array(Z).fill(-1).map((function(t,n){return o().createElement(e.preset.itemTagName,{key:h(n+N-Z,u),style:{display:"none"}})})));for(var M=N;M<=A;M++){var D=this.preset.getItemStyle(M);F.push(o().createElement(this.preset.itemTagName,{key:h(M,u),style:D},o().createElement(l,{id:"".concat(w,"-").concat(M),data:u,index:M,isScrolling:v?E:void 0})))}var H=c-A,j=(H=H>0?H:0)<x?H:x;F.push(new Array(j).fill(-1).map((function(t,n){return o().createElement(e.preset.itemTagName,{key:h(1+n+A,u),style:{display:"none"}})})))}var B=convertNumber2PX(this.itemList.getOffsetSize()),U=Object.assign(Object.assign({},T),{id:w,className:n,onScroll:L,ref:this._outerRefSetter,layout:f,enhanced:b,style:Object.assign({position:"relative",height:convertNumber2PX(r),width:convertNumber2PX(g),overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},p)});if(b||(I?U.scrollLeft=C?_:this.preset.field.scrollLeft:U.scrollTop=C?_:this.preset.field.scrollTop),this.preset.isRelative){var G=convertNumber2PX(this.itemList.getOffsetSize(N));return o().createElement(this.preset.outerTagName,U,y,o().createElement(this.preset.itemTagName,{key:"".concat(w,"-pre"),id:"".concat(w,"-pre"),style:{height:I?"100%":G,width:I?G:"100%"}}),o().createElement(this.preset.innerTagName,{ref:a,key:"".concat(w,"-inner"),id:"".concat(w,"-inner"),style:{pointerEvents:E?"none":"auto",position:"relative"}},F),k)}return o().createElement(this.preset.outerTagName,U,y,o().createElement(this.preset.innerTagName,{ref:a,key:"".concat(w,"-inner"),id:"".concat(w,"-inner"),style:{height:I?"100%":B,pointerEvents:E?"none":"auto",position:"relative",width:I?B:"100%"}},F),k)}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(e,t){return function validateListProps(e,t){var n=e.item,i=e.direction,r=e.height,o=e.layout,s=e.itemTagName,l=e.innerTagName,c=e.outerTagName,u=e.width,d=e.itemSize,h=t.instance;if(!["number","function"].includes((0,a.Z)(d)))throw Error('An invalid "itemSize" prop has been specified. Value should be a number or function. '+'"'.concat(null===d?"null":(0,a.Z)(d),'" was specified.'));null==l&&null==c&&null==s||I&&!I.has(h)&&(I.add(h),console.warn("The itemTagName、innerTagName and outerTagName props have been deprecated. Please use the itemElementType、innerElementType and outerElementType props instead."));var f="horizontal"===i||"horizontal"===o;switch(i){case"horizontal":case"vertical":C&&!C.has(h)&&(C.add(h),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+'"'.concat(i,'" was specified.'))}switch(o){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+'"'.concat(o,'" was specified.'))}if(null==n)throw Error('An invalid "item" prop has been specified. Value should be a React component. '+'"'.concat(null===n?"null":(0,a.Z)(n),'" was specified.'));if(f&&"number"!=typeof u)throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+'"'.concat(null===u?"null":(0,a.Z)(u),'" was specified.'));if(!f&&"number"!=typeof r)throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+'"'.concat(null===r?"null":(0,a.Z)(r),'" was specified.'));return null}(e,t)}}]),List}(o().PureComponent);x.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1,shouldResetStyleCacheOnItemSizeChange:!0};var L=o().forwardRef((function OuterScrollView(e,t){var n=e,r=n.style,a=n.onScroll,s=n.onScrollNative,l=n.layout,c=__rest(n,["style","onScroll","onScrollNative","layout"]);return o().createElement(i.pf,Object.assign({ref:t,style:r,scrollY:"vertical"===l,scrollX:"horizontal"===l,onScroll:function handleScroll(e){a(Object.assign(Object.assign({},e),{currentTarget:Object.assign(Object.assign({},e.detail),{clientWidth:convertPX2Int(r.width),clientHeight:convertPX2Int(r.height)})})),"function"==typeof s&&s(e)}},c))})),O=o().forwardRef((function VirtualList(e,t){var n=e,r=n.direction,a=void 0===r?"ltr":r,s=n.innerElementType,l=void 0===s?i.G7:s,c=n.itemElementType,u=void 0===c?i.G7:c,d=n.initialScrollOffset,h=void 0===d?0:d,f=n.overscanCount,p=void 0===f?1:f,v=__rest(n,["direction","innerElementType","itemElementType","initialScrollOffset","overscanCount"]);return"children"in v&&(console.warn("Taro(VirtualList): children props have been deprecated. Please use the item props instead."),v.item=v.children),v.item instanceof Array&&(console.warn("Taro(VirtualList): item should not be an array"),v.item=v.item[0]),o().createElement(x,Object.assign(Object.assign({ref:t},v),{itemElementType:u,innerElementType:l,outerElementType:L,direction:a,initialScrollOffset:h,overscanCount:p}))}))},9232:function(e,t,n){var i=n(2919);e.exports=i.default,e.exports.default=e.exports},8744:function(e,t,n){"use strict";n.d(t,{Ox:function(){return createReactApp}});var i=n(4942),r=n(9439),o=n(7326),a=n(5671),s=n(3144),l=n(136),c=n(7277),u=n(3433),d=n(4455),h=n(2180),f={PageContext:d.kT,R:d.kT},p="taro-app";function isClassComponent(e,t){var n,i=t.prototype;return!(null===(n=t.displayName)||void 0===n?void 0:n.includes("Connect"))&&((0,d.mf)(t.render)||!!(null==i?void 0:i.isReactComponent)||i instanceof e.Component)}function setDefaultDescriptor(e){return e.writable=!0,e.enumerable=!0,e}function setRouterParams(e){h.Current.router=Object.assign({params:null==e?void 0:e.query},e)}var v,g,m,b=function createTaroHook(e){return function(t){var n=f.R,i=f.PageContext,r=n.useContext(i)||p,o=n.useRef(),a=n.useRef(t);a.current!==t&&(a.current=t),n.useLayoutEffect((function(){var t=o.current=(0,h.getPageInstance)(r),n=!1;t||(n=!0,o.current=Object.create(null),t=o.current);var i=function callback(){return a.current.apply(a,arguments)};return(0,d.mf)(t[e])?t[e]=[t[e],i]:t[e]=[].concat((0,u.Z)(t[e]||[]),[i]),n&&(0,h.injectPageInstance)(t,r),function(){var t=o.current;if(t){var n=t[e];n===i?t[e]=void 0:(0,d.kJ)(n)&&(t[e]=n.filter((function(e){return e!==i}))),o.current=void 0}}}),[])}},y=b("componentDidHide"),k=b("componentDidShow"),T=b("onError"),S=b("onUnhandledRejection"),P=b("onLaunch"),w=b("onPageNotFound"),E=b("onLoad"),_=b("onPageScroll"),C=b("onPullDownRefresh"),I=b("onPullIntercept"),x=b("onReachBottom"),L=b("onResize"),O=b("onUnload"),R=b("onAddToFavorites"),N=b("onOptionMenuClick"),A=b("onSaveExitState"),F=b("onShareAppMessage"),Z=b("onShareTimeline"),M=b("onTitleClick"),D=b("onReady"),H=b("onTabItemTap"),j=Object.freeze({__proto__:null,useAddToFavorites:R,useDidHide:y,useDidShow:k,useError:T,useLaunch:P,useLoad:E,useOptionMenuClick:N,usePageNotFound:w,usePageScroll:_,usePullDownRefresh:C,usePullIntercept:I,useReachBottom:x,useReady:D,useResize:L,useRouter:function useRouter(){var e=arguments.length>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:H,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 b;(0,d.zx)(!!n,"构建 React/Nerv 项目请把 process.env.FRAMEWORK 设置为 'react'/'nerv' "),f.R=t,v=t.createElement,g=n,m=t.Fragment;var y,k,T=t.createRef(),S=isClassComponent(t,e),P=new Promise((function(e){return k=e}));function getAppInstance(){return T.current}function waitAppWrapper(e){y?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(w))}else null===(n=g.render)||void 0===n||n.call(g,v(w),r)}setReconciler(g);var w=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=[],y=(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){console.warn(e),console.error(t.componentStack)}},{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 E=(0,r.Z)(d.PT.call("getMiniLifecycleImpl").app,3),_=E[0],C=E[1],I=E[2],x=Object.create({render:function render(e){y.forceUpdate(e)},mount:function mount(e,t,n){y?y.mount(e,t,n):P.then((function(i){return i.mount(e,t,n)}))},unmount:function unmount(e,t){y.unmount(e,t)}},(b={config:setDefaultDescriptor({configurable:!0,value:u})},(0,i.Z)(b,_,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)(b,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)(b,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)(b,"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),(null==e?void 0:e.includes("Minified React error"))&&console.warn("React 出现报错,请打开编译配置 mini.debugReact 查看报错详情https://docs.taro.zone/docs/config-detail#minidebugreact")}))}})),(0,i.Z)(b,"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)(b,"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)}))}})),b));function triggerAppHook(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=(0,h.getPageInstance)(p);if(r){var o=getAppInstance(),a=d.PT.call("getLifecycle",r,e);Array.isArray(a)&&a.forEach((function(e){return e.apply(o,n)}))}}return h.Current.app=x,x}(0,h.incrementId)();d.PT.tap("initNativeApi",(function(e){for(var t in j)e[t]=j[t]}))},1515:function(e,t,n){"use strict";n.d(t,{C3:function(){return p},Ee:function(){return v},G7:function(){return i},Ho:function(){return r},II:function(){return s},Xz:function(){return g},cW:function(){return l},fV:function(){return b},gO:function(){return m},gx:function(){return u},pf:function(){return d},rs:function(){return c},t3:function(){return f},tq:function(){return h},xv:function(){return o},zx:function(){return a}});var i="view",r="rich-text",o="text",a="button",s="input",l="picker",c="switch",u="textarea",d="scroll-view",h="swiper",f="swiper-item",p="navigator",v="image",g="canvas",m="block",b="custom-wrapper"},7488:function(e,t,n){"use strict";var i=n(4455),r=new Set(["addFileToFavorites","addVideoToFavorites","authPrivateMessage","checkIsAddedToMyMiniProgram","chooseContact","cropImage","disableAlertBeforeUnload","editImage","enableAlertBeforeUnload","getBackgroundFetchData","getChannelsLiveInfo","getChannelsLiveNoticeInfo","getFuzzyLocation","getGroupEnterInfo","getLocalIPAddress","getShareInfo","getUserProfile","getWeRunData","join1v1Chat","openChannelsActivity","openChannelsEvent","openChannelsLive","openChannelsUserProfile","openCustomerServiceChat","openVideoEditor","saveFileToDisk","scanItem","setEnable1v1Chat","setWindowSize","sendBizRedPacket","startFacialRecognitionVerify"]);var o="true",a="false",s="",l="0",c={Progress:{"border-radius":l,"font-size":"16",duration:"30",bindActiveEnd:s},RichText:{space:s,"user-select":a},Text:{"user-select":a},Map:{polygons:"[]",subkey:s,rotate:l,skew:l,"max-scale":"20","min-scale":"3","enable-3D":a,"show-compass":a,"show-scale":a,"enable-overlooking":a,"enable-zoom":o,"enable-scroll":o,"enable-rotate":a,"enable-satellite":a,"enable-traffic":a,"enable-poi":o,"enable-building":o,setting:"[]",bindLabelTap:s,bindRegionChange:s,bindPoiTap:s,bindAnchorPointTap:s},Button:{lang:"en","session-from":s,"send-message-title":s,"send-message-path":s,"send-message-img":s,"app-parameter":s,"show-message-card":a,"business-id":s,bindGetUserInfo:s,bindContact:s,bindGetPhoneNumber:s,bindChooseAvatar:s,bindError:s,bindOpenSetting:s,bindLaunchApp:s},Form:{"report-submit-timeout":l},Input:{"always-embed":a,"adjust-position":o,"hold-keyboard":a,"safe-password-cert-path":"","safe-password-length":"","safe-password-time-stamp":"","safe-password-nonce":"","safe-password-salt":"","safe-password-custom-hash":"","auto-fill":s,bindKeyboardHeightChange:s,bindNicknameReview:s},Picker:{"header-text":s,level:"region"},PickerView:{"immediate-change":a,bindPickStart:s,bindPickEnd:s},Slider:{color:"'#e9e9e9'","selected-color":"'#1aad19'"},Textarea:{"show-confirm-bar":o,"adjust-position":o,"hold-keyboard":a,"disable-default-padding":a,"confirm-type":"'return'","confirm-hold":a,bindKeyboardHeightChange:s},ScrollView:{type:"'list'","event-passive":a,"enable-flex":a,"scroll-anchoring":a,"refresher-enabled":a,"refresher-threshold":"45","refresher-default-style":"'black'","refresher-background":"'#FFF'","refresher-triggered":a,enhanced:a,bounces:o,"show-scrollbar":o,"paging-enabled":a,"fast-deceleration":a,reverse:a,"cache-extent":l,"scroll-into-view-within-extent":a,"scroll-into-view-alignment":"'start'",bindDragStart:s,bindDragging:s,bindDragEnd:s,bindRefresherPulling:s,bindRefresherRefresh:s,bindRefresherRestore:s,bindRefresherAbort:s,bindScrollStart:s,bindScrollEnd:s,bindRefresherWillRefresh:s},StickySection:{"push-pinned-header":o},GridView:{type:"'aligned'","cross-axis-count":"2","max-cross-axis-extent":l,"main-axis-gap":l,"cross-axis-gap":l},ListView:{},StickyHeader:{},Swiper:{"snap-to-edge":a,"easing-function":"'default'"},SwiperItem:{"skip-hidden-item-layout":a},Navigator:{target:"'self'","app-id":s,path:s,"extra-data":s,version:"'version'"},Camera:{mode:"'normal'",resolution:"'medium'","frame-size":"'medium'",bindInitDone:s,bindScanCode:s},Image:{webp:a,"show-menu-by-longpress":a},LivePlayer:{mode:"'live'","sound-mode":"'speaker'","auto-pause-if-navigate":o,"auto-pause-if-open-native":o,"picture-in-picture-mode":"[]",bindstatechange:s,bindfullscreenchange:s,bindnetstatus:s,bindAudioVolumeNotify:s,bindEnterPictureInPicture:s,bindLeavePictureInPicture:s},Video:{title:s,"play-btn-position":"'bottom'","enable-play-gesture":a,"auto-pause-if-navigate":o,"auto-pause-if-open-native":o,"vslide-gesture":a,"vslide-gesture-in-fullscreen":o,"ad-unit-id":s,"poster-for-crawler":s,"show-casting-button":a,"picture-in-picture-mode":"[]","enable-auto-rotation":a,"show-screen-lock-button":a,"show-snapshot-button":a,"show-background-playback-button":a,"background-poster":s,bindProgress:s,bindLoadedMetadata:s,bindControlsToggle:s,bindEnterPictureInPicture:s,bindLeavePictureInPicture:s,bindSeekComplete:s,bindAdLoad:s,bindAdError:s,bindAdClose:s,bindAdPlay:s},Canvas:{type:s},Ad:{"ad-type":"'banner'","ad-theme":"'white'"},CoverView:{"marker-id":s,slot:s},Editor:{"read-only":a,placeholder:s,"show-img-size":a,"show-img-toolbar":a,"show-img-resize":a,focus:a,bindReady:s,bindFocus:s,bindBlur:s,bindInput:s,bindStatusChange:s,name:s},MatchMedia:{"min-width":s,"max-width":s,width:s,"min-height":s,"max-height":s,height:s,orientation:s},FunctionalPageNavigator:{version:"'release'",name:s,args:s,bindSuccess:s,bindFail:s,bindCancel:s},LivePusher:{url:s,mode:"'RTC'",autopush:a,muted:a,"enable-camera":o,"auto-focus":o,orientation:"'vertical'",beauty:l,whiteness:l,aspect:"'9:16'","min-bitrate":"200","max-bitrate":"1000","audio-quality":"'high'","waiting-image":s,"waiting-image-hash":s,zoom:a,"device-position":"'front'","background-mute":a,mirror:a,"remote-mirror":a,"local-mirror":a,"audio-reverb-type":l,"enable-mic":o,"enable-agc":a,"enable-ans":a,"audio-volume-type":"'voicecall'","video-width":"360","video-height":"640","beauty-style":"'smooth'",filter:"'standard'",animation:s,bindStateChange:s,bindNetStatus:s,bindBgmStart:s,bindBgmProgress:s,bindBgmComplete:s,bindAudioVolumeNotify:s},OfficialAccount:{bindLoad:s,bindError:s},OpenData:{type:s,"open-gid":s,lang:"'en'","default-text":s,"default-avatar":s,bindError:s},NavigationBar:{title:s,loading:a,"front-color":s,"background-color":s,"color-animation-duration":l,"color-animation-timing-func":"'linear'"},PageMeta:{"background-text-style":s,"background-color":s,"background-color-top":s,"background-color-bottom":s,"scroll-top":"''","scroll-duration":"300","page-style":"''","root-font-size":"''",bindResize:s,bindScroll:s,bindScrollDone:s},VoipRoom:{openid:s,mode:"'camera'","device-position":"'front'",bindError:s},AdCustom:{"unit-id":s,"ad-intervals":s,bindLoad:s,bindError:s},PageContainer:{show:a,duration:"300","z-index":"100",overlay:o,position:"'bottom'",round:a,"close-on-slide-down":a,"overlay-style":s,"custom-style":s,bindBeforeEnter:s,bindEnter:s,bindAfterEnter:s,bindBeforeLeave:s,bindLeave:s,bindAfterLeave:s,bindClickOverlay:s},ShareElement:{mapkey:s,transform:a,duration:"300","easing-function":"'ease-out'"},KeyboardAccessory:{},RootPortal:{},ChannelLive:{feedId:s,finderUserName:s},ChannelVideo:{feedId:s,finderUserName:s,autoplay:a,loop:a,muted:a,objectFit:"'contain'",bindError:s}},u={initNativeApi:function initNativeApi(e){(0,i.Ig)(e,wx,{needPromiseApis:r,modifyApis:function modifyApis(e){e.delete("lanDebug")},transformMeta:function transformMeta(e,t){var n;return"showShareMenu"===e&&(t.menus=null===(n=t.showShareItems)||void 0===n?void 0:n.map((function(e){return"wechatFriends"===e?"shareAppMessage":"wechatMoment"===e?"shareTimeline":e}))),{key:e,options:t}}}),e.cloud=wx.cloud,e.getTabBar=function(e){var t;if("function"==typeof(null==e?void 0:e.getTabBar))return null===(t=e.getTabBar())||void 0===t?void 0:t.$taroInstances},e.getRenderer=function(){var t,n,i;return null!==(i=null===(n=null===(t=e.getCurrentInstance())||void 0===t?void 0:t.page)||void 0===n?void 0:n.renderer)&&void 0!==i?i:"webview"}},getMiniLifecycle:function getMiniLifecycle(e){var t=e.page[5];return-1===t.indexOf("onSaveExitState")&&t.push("onSaveExitState"),e}};(0,i.xi)(u),(0,i.ku)(c)},8967:function(e,t,n){"use strict";n.d(t,{ZP:function(){return m},mm:function(){return v}});var i=n(5671),r=n(3144),o=n(4455),a=n(2180),s=n(6525),l=n.n(s),c=n(2576);var u=/aspect|acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function updatePropsByPayload(e,t,n){for(var i=0;i<n.length;i+=2){var r=n[i];setProperty(e,r,n[i+1],t[r])}}function getUpdatePayload(e,t,n){var i,r=null;for(i in t)i in n||(r=r||[]).push(i,null);var o=e instanceof a.FormElement;for(i in n)(t[i]!==n[i]||o&&"value"===i)&&(r=r||[]).push(i,n[i]);return r}function setStyle(e,t,n){"-"!==t[0]?e[t]=(0,o.hj)(n)&&!1===u.test(t)?n+"px":null==n?"":n:e.setProperty(t,n.toString())}function setProperty(e,t,n,i){var r,a;if("key"===(t="className"===t?"class":t)||"children"===t||"ref"===t);else if("style"===t){var s=e.style;if((0,o.HD)(n))s.cssText=n;else{if((0,o.HD)(i)&&(s.cssText="",i=null),(0,o.Kn)(i))for(var l in i)n&&l in n||setStyle(s,l,"");if((0,o.Kn)(n))for(var c in n)i&&n[c]===i[c]||setStyle(s,c,n[c])}}else if(function isEventName(e){return"o"===e[0]&&"n"===e[1]}(t))!function setEvent(e,t,n,i){var r=t.endsWith("Capture"),a=t.toLowerCase().slice(2);r&&(a=a.slice(0,-7));var s=(0,o.kC)((0,o.CA)(e.tagName.toLowerCase()));"click"===a&&s in o.rD&&(a="tap"),(0,o.mf)(n)?i?(e.removeEventListener(a,i,!1),e.addEventListener(a,n,{isCapture:r,sideEffect:!1})):e.addEventListener(a,n,r):e.removeEventListener(a,i)}(e,t,n,i);else if("dangerouslySetInnerHTML"===t){var u=null!==(r=null==n?void 0:n.__html)&&void 0!==r?r:"",d=null!==(a=null==i?void 0:i.__html)&&void 0!==a?a:"";(u||d)&&d!==u&&(e.innerHTML=u)}else(0,o.mf)(n)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}var d={getPublicInstance:function getPublicInstance(e){return e},getRootHostContext:function getRootHostContext(){return{}},getChildHostContext:function getChildHostContext(e){return e},prepareForCommit:function prepareForCommit(){return null},resetAfterCommit:o.ZT,createInstance:function createInstance(e){return a.document.createElement(e)},appendInitialChild:function appendInitialChild(e,t){e.appendChild(t)},finalizeInitialChildren:function finalizeInitialChildren(e,t,n){return function updateProps(e,t,n){var i=getUpdatePayload(e,t,n);i&&updatePropsByPayload(e,t,i)}(e,{},n),!1},prepareUpdate:function prepareUpdate(e,t,n,i){return getUpdatePayload(e,n,i)},shouldSetTextContent:function shouldSetTextContent(){return!1},createTextInstance:function createTextInstance(e){return a.document.createTextNode(e)},scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,isPrimaryRenderer:!0,warnsIfNotActing:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,getInstanceFromNode:function getInstanceFromNode(){return null},beforeActiveInstanceBlur:o.ZT,afterActiveInstanceBlur:o.ZT,preparePortalMount:o.ZT,prepareScopeUpdate:o.ZT,getInstanceFromScope:function getInstanceFromScope(){return null},getCurrentEventPriority:function getCurrentEventPriority(){return c.DefaultEventPriority},detachDeletedInstance:o.ZT,supportsMicrotasks:!0,scheduleMicrotask:(0,o.o8)(Promise)?setTimeout:function(e){return Promise.resolve(null).then(e).catch((function(e){setTimeout((function(){throw e}))}))},appendChild:function appendChild(e,t){e.appendChild(t)},appendChildToContainer:function appendChildToContainer(e,t){e.appendChild(t)},commitTextUpdate:function commitTextUpdate(e,t,n){e.nodeValue=n},commitMount:o.ZT,commitUpdate:function commitUpdate(e,t,n,i){updatePropsByPayload(e,i,t)},insertBefore:function insertBefore(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function insertInContainerBefore(e,t,n){e.insertBefore(t,n)},removeChild:function removeChild(e,t){e.removeChild(t)},removeChildFromContainer:function removeChildFromContainer(e,t){e.removeChild(t)},resetTextContent:o.ZT,hideInstance:function hideInstance(e){e.style.setProperty("display","none")},hideTextInstance:function hideTextInstance(e){e.nodeValue=""},unhideInstance:function unhideInstance(e,t){var n=t.style,i=(null==n?void 0:n.hasOwnProperty("display"))?n.display:null;i=null==i||(0,o.jn)(i)||""===i?"":(""+i).trim(),e.style.display=i},unhideTextInstance:function unhideTextInstance(e,t){e.nodeValue=t},clearContainer:function clearContainer(e){e.childNodes.length>0&&(e.textContent="")}},h=l()(d);h.injectIntoDevTools({bundleType:1,version:"18.0.0",rendererPackageName:"taro-react"})||console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools","font-weight:bold");var 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 Mt},Events:function(){return b.zW},FormElement:function(){return Je},History:function(){return Ct},Location:function(){return Bt},MutationObserver:function(){return oe},SVGElement:function(){return Xt},Style:function(){return Ze},TaroElement:function(){return Me},TaroEvent:function(){return $e},TaroNode:function(){return be},TaroRootElement:function(){return tt},TaroText:function(){return nt},URL:function(){return ft},URLSearchParams:function(){return ht},addLeadingSlash:function(){return addLeadingSlash},cancelAnimationFrame:function(){return $t},createComponentConfig:function(){return createComponentConfig},createEvent:function(){return createEvent},createPageConfig:function(){return createPageConfig},createRecursiveComponentConfig:function(){return createRecursiveComponentConfig},document:function(){return pt},eventCenter:function(){return wt},eventHandler:function(){return eventHandler},eventSource:function(){return fe},getComputedStyle:function(){return getComputedStyle},getCurrentInstance:function(){return Dt},getPageInstance:function(){return getPageInstance},history:function(){return Yt},hooks:function(){return b.PT},hydrate:function(){return hydrate},incrementId:function(){return ae},injectPageInstance:function(){return injectPageInstance},location:function(){return Jt},navigator:function(){return zt},nextTick:function(){return rn},now:function(){return Ut},options:function(){return De},parseUrl:function(){return parseUrl},removePageInstance:function(){return removePageInstance},requestAnimationFrame:function(){return Qt},safeExecute:function(){return safeExecute},stringify:function(){return stringify},window:function(){return Vt}});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),b=n(4455),y=n(2180).window,k=n(2180).document,T=n(2180).requestAnimationFrame,S=n(2180).cancelAnimationFrame,P=2046,w="页面初始化",E="root",_="document-fragment",C="id",I="class",x="style",L="focus",O="view",R="static-view",N="pure-view",A="value",F="input",Z="custom-wrapper",M="target",D="currentTarget",H="type",j="confirm",B="timeStamp",U="keyCode",G="touchmove",W="catchMove",z="catch-view",V="comment",q="onLoad",Q="onReady",$="onShow",K="onHide",J="options",Y="externalClasses",X="e_result",ee="behaviors";!function(e){e.INIT="0",e.RESTORE="1",e.RECOVER="2",e.DESTORY="3"}(i||(i={}));var te=[],ne=function sidMatches(e,t){return!!e&&e.sid===(null==t?void 0:t.sid)},ie=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}},re=!1;function logMutation(e,t){e.records.push(t),re||(re=!0,Promise.resolve().then((function(){re=!1,te.forEach((function(e){return e.callback(e.takeRecords())}))})))}var oe=function(){function MutationObserver(e){(0,g.Z)(this,MutationObserver),console.warn("[Taro Warning] 若要使用 MutationObserver请在 Taro 编译配置中设置 'mini.enableMutationObserver: true'"),this.core={observe:b.ZT,disconnect:b.ZT,takeRecords:b.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){te.forEach((function(t){for(var n=t.options,i=e.target;i;i=i.parentNode){if(ne(t.target,i)&&ie(e,n)){logMutation(t,e);break}if(!n.subtree)break}}))}(e)}}]),MutationObserver}(),ae=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===V}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 x:return"st";case C:return"uid";case I:return"cl";default:return e}}var se,le=new Map;function _extend(e,t,n){(0,b.mf)(n)&&(n={value:n}),Object.defineProperty(e.prototype,t,Object.assign({configurable:!0,enumerable:!0},n))}function getComponentsAlias(){return se||(se=(0,b.W)(b.rD)),se}var ce,ue,de=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<i);t&&this._update()}},{key:"remove",value:function remove(){var e=0,t=!1,n=arguments,i=n.length,r=this.tokenList;do{var o=n[e]+"";if(this.checkTokenIsValid(o)){var a=r.indexOf(o);~r.indexOf(o)&&(r.splice(a,1),t=!0)}}while(++e<i);t&&this._update()}},{key:"contains",value:function contains(e){return!!this.checkTokenIsValid(e)&&!!~this.tokenList.indexOf(e)}},{key:"toggle",value:function toggle(e,t){var n=this.contains(e),i=n?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!n}},{key:"replace",value:function replace(e,t){if(this.checkTokenIsValid(e)&&this.checkTokenIsValid(t)){var n=this.tokenList.indexOf(e);~n&&(this.tokenList.splice(n,1,t),this._update())}}},{key:"toString",value:function toString(){return this.tokenList.filter((function(e){return""!==e})).join(" ")}},{key:"checkTokenIsValid",value:function checkTokenIsValid(e){return""!==e&&!/\s/.test(e)}},{key:"_update",value:function _update(){this.el.className=this.value}}]),ClassList}(),he=function(e){(0,h.Z)(EventSource,e);var t=(0,f.Z)(EventSource);function EventSource(){return(0,g.Z)(this,EventSource),t.apply(this,arguments)}return(0,m.Z)(EventSource,[{key:"removeNode",value:function removeNode(e){var t=e.sid,n=e.uid;this.delete(t),n!==t&&n&&this.delete(n)}},{key:"removeNodeTree",value:function removeNodeTree(e){var t=this;this.removeNode(e),e.childNodes.forEach((function(e){return t.removeNodeTree(e)}))}}]),EventSource}((0,p.Z)(Map)),fe=new he,pe=(0,b.gl)(),ve={window:pe?y:b.kT,document:pe?k:b.kT};function hydrate(e){var t;ue||(ue=getComponentsAlias()),ce||(ce=b.PT.call("getSpecialNodes"));var n,i=e.nodeName;if(function isText(e){return 3===e.nodeType}(e))return n={},(0,d.Z)(n,"v",e.nodeValue),(0,d.Z)(n,"nn",ue[i]._num),n;var r=(t={},(0,d.Z)(t,"nn",i),(0,d.Z)(t,"sid",e.sid),t);e.uid!==e.sid&&(r.uid=e.uid),!e.isAnyEventBinded()&&ce.indexOf(i)>-1&&(r.nn="static-".concat(i),i!==O||isHasExtractProp(e)||(r.nn=N));var o=e.props;for(var a in o){var s=(0,b.CA)(a);a.startsWith("data-")||a===I||a===x||a===C||s===W||(r[s]=o[a]),i===O&&s===W&&!1!==o[a]&&(r.nn=z)}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),b.PT.call("modifyHydrateData",r);var u=r.nn,h=ue[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 ge=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(),b.PT.call("onAddEvent",e,t,n,this),"regionchange"===e)return this.addEventListener("begin",t,n),void this.addEventListener("end",t,n);var i=Boolean(n),r=!1;if((0,b.Kn)(n)&&(i=Boolean(n.capture),r=Boolean(n.once)),r){this.addEventListener(e,(function wrapper(){t.apply(this,arguments),this.removeEventListener(e,wrapper)}),Object.assign(Object.assign({},n),{once:!1}))}else{(0,b.ZK)(i,"Taro 暂未实现 event 的 capture 特性。");var o=t;t=function handler(){return o.apply(this,arguments)},t.oldHandler=o;var a=this.__handlers[e];(0,b.kJ)(a)?a.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,b.kJ)(n)){var i=n.findIndex((function(e){if(e===t||e.oldHandler===t)return!0}));(0,b.ZK)(-1===i,"事件: '".concat(e,"' 没有注册在 DOM 中,因此不会被移除。")),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}(),me=ae(),be=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="_"+me(),e.sid=e.uid,fe.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,b.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=b.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=ve.document.createTextNode(e);n.push(i),this.appendChild(i),this.updateChildNodes()}oe.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 oe.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&&oe.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&&fe.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 ve.document}}],[{key:"extend",value:function extend(e,t){_extend(TaroNode,e,t)}}]),TaroNode}(ge),ye="webkit",ke=["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&&ke.push(e),t.forEach((function(t){ke.push(e+t),e===ye&&ke.push("Webkit"+t)}))}var Te="Color",Se="Style",Pe="Width",we="Image",Ee="Size",_e=[Te,Se,Pe],Ce=["FitLength","FitWidth",we],Ie=[].concat(Ce,["Radius"]),xe=[].concat(_e,Ce),Le=["EndRadius","StartRadius"],Oe=["Bottom","Left","Right","Top"],Re=["End","Start"],Ne=["Content","Items","Self"],Ae=["BlockSize","Height","InlineSize",Pe],Fe=["After","Before"];function recordCss(e){oe.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){(0,b.ZK)((0,b.HD)(e)&&e.length>P,"Style 属性 ".concat(t," 的值数据量过大,可能会影响渲染性能,考虑使用 CSS 类或其它方案替代。")),this[t]!==e&&(!this._pending&&recordCss(this),(0,b.Ft)(e)||(0,b.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,b.Ft)(e)||(0,b.o8)(e)?"":e},set:function set(e){setStyle.call(this,e,i)}}},r=0;r<t.length;r++){var o=i();if("object"===(0,c.Z)(o))return o.v}Object.defineProperties(e.prototype,n)}combine("borderBlock",_e),combine("borderBlockEnd",_e),combine("borderBlockStart",_e),combine("outline",[].concat(_e,["Offset"])),combine("border",[].concat(_e,["Boundary","Break","Collapse","Radius","Spacing"])),combine("borderFit",["Length",Pe]),combine("borderInline",_e),combine("borderInlineEnd",_e),combine("borderInlineStart",_e),combine("borderLeft",xe),combine("borderRight",xe),combine("borderTop",xe),combine("borderBottom",xe),combine("textDecoration",[Te,Se,"Line"]),combine("textEmphasis",[Te,Se,"Position"]),combine("scrollMargin",Oe),combine("scrollPadding",Oe),combine("padding",Oe),combine("margin",[].concat(Oe,["Trim"])),combine("scrollMarginBlock",Re),combine("scrollMarginInline",Re),combine("scrollPaddingBlock",Re),combine("scrollPaddingInline",Re),combine("gridColumn",Re),combine("gridRow",Re),combine("insetBlock",Re),combine("insetInline",Re),combine("marginBlock",Re),combine("marginInline",Re),combine("paddingBlock",Re),combine("paddingInline",Re),combine("pause",Fe),combine("cue",Fe),combine("mask",["Clip","Composite",we,"Mode","Origin","Position","Repeat",Ee,"Type"]),combine("borderImage",["Outset","Repeat","Slice","Source","Transform",Pe]),combine("maskBorder",["Mode","Outset","Repeat","Slice","Source",Pe]),combine("font",["Family","FeatureSettings","Kerning","LanguageOverride","MaxSize","MinSize","OpticalSizing","Palette",Ee,"SizeAdjust","Stretch",Se,"Weight","VariationSettings"]),combine("transform",["Box","Origin",Se]),combine("background",[Te,we,"Attachment","BlendMode","Clip","Origin","Position","Repeat",Ee]),combine("listStyle",[we,"Position","Type"]),combine("scrollSnap",["Align","Stop","Type"]),combine("grid",["Area","AutoColumns","AutoFlow","AutoRows"]),combine("gridTemplate",["Areas","Columns","Rows"]),combine("overflow",["Block","Inline","Wrap","X","Y"]),combine("transition",["Delay","Duration","Property","TimingFunction"]),combine("color",["Adjust","InterpolationFilters","Scheme"]),combine("textAlign",["All","Last"]),combine("page",["BreakAfter","BreakBefore","BreakInside"]),combine("animation",["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"]),combine("flex",["Basis","Direction","Flow","Grow","Shrink","Wrap"]),combine("offset",[].concat(Fe,Re,["Anchor","Distance","Path","Position","Rotate"])),combine("perspective",["Origin"]),combine("clip",["Path","Rule"]),combine("flow",["From","Into"]),combine("align",["Content","Items","Self"],!0),combine("alignment",["Adjust","Baseline"],!0),combine("borderStart",Le,!0),combine("borderEnd",Le,!0),combine("borderCorner",["Fit",we,"ImageTransform"],!0),combine("borderTopLeft",Ie,!0),combine("borderTopRight",Ie,!0),combine("borderBottomLeft",Ie,!0),combine("borderBottomRight",Ie,!0),combine("column",["s","Count","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","Span",Pe],!0),combine("break",[].concat(Fe,["Inside"]),!0),combine("wrap",[].concat(Fe,["Flow","Inside","Through"]),!0),combine("justify",Ne,!0),combine("place",Ne,!0),combine("max",[].concat(Ae,["Lines"]),!0),combine("min",Ae,!0),combine("line",["Break","Clamp","Grid","Height","Padding","Snap"],!0),combine("inline",["BoxAlign",Ee,"Sizing"],!0),combine("text",["CombineUpright","GroupAlign","Height","Indent","Justify","Orientation","Overflow","Shadow","SpaceCollapse","SpaceTrim","Spacing","Transform","UnderlinePosition","Wrap"],!0),combine("shape",["ImageThreshold","Inside","Margin","Outside"],!0),combine("word",["Break","Spacing","Wrap"],!0),combine("object",["Fit","Position"],!0),combine("box",["DecorationBreak","Shadow","Sizing","Snap"],!0),combine(ye,["LineClamp","BoxOrient","TextFillColor","TextStroke","TextStrokeColor","TextStrokeWidth"],!0);var Ze=function(){function Style(e){(0,g.Z)(this,Style),this._element=e,this._usedStyleProp=new Set,this._value={}}return(0,m.Z)(Style,[{key:"setCssVariables",value:function setCssVariables(e){var t=this;this.hasOwnProperty(e)||Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function get(){return t._value[e]||""},set:function set(n){setStyle.call(t,n,e)}})}},{key:"cssText",get:function get(){var e=this;if(!this._usedStyleProp.size)return"";var t=[];return this._usedStyleProp.forEach((function(n){var i=e[n];if(!(0,b.Ft)(i)&&!(0,b.o8)(i)){var r=function isCssVariable(e){return/^--/.test(e)}(n)?n:(0,b.eu)(n);0!==r.indexOf("webkit")&&0!==r.indexOf("Webkit")||(r="-".concat(r)),t.push("".concat(r,": ").concat(i,";"))}})),t.join(" ")},set:function set(e){var t=this;if(this._pending=!0,recordCss(this),this._usedStyleProp.forEach((function(e){t.removeProperty(e)})),""===e||(0,b.o8)(e)||(0,b.Ft)(e))return this._pending=!1,void enqueueUpdate(this);for(var n=e.split(";"),i=0;i<n.length;i++){var r=n[i].trim();if(""!==r){var o=r.split(":"),a=(0,l.Z)(o),s=a[0],c=a.slice(1).join(":");(0,b.o8)(c)||this.setProperty(s.trim(),c.trim())}}this._pending=!1,enqueueUpdate(this)}},{key:"setProperty",value:function setProperty(e,t){"-"===e[0]?this.setCssVariables(e):e=(0,b.CA)(e),(0,b.Ft)(t)||(0,b.o8)(t)?this.removeProperty(e):this[e]=t}},{key:"removeProperty",value:function removeProperty(e){if(e=(0,b.CA)(e),!this._usedStyleProp.has(e))return"";var t=this[e];return this[e]=void 0,t}},{key:"getPropertyValue",value:function getPropertyValue(e){var t=this[e=(0,b.CA)(e)];return t||""}}]),Style}();function returnTrue(){return!0}function treeToArray(e,t){for(var n=[],i=null!=t?t:returnTrue,r=e;r;)1===r.nodeType&&i(r)&&n.push(r),r=following(r,e);return n}function following(e,t){var n=e.firstChild,i=1===e.nodeType||9===e.nodeType;if(n&&i)return n;var r=e;do{if(r===t)return null;var o=r.nextSibling;if(o)return o;r=r.parentElement}while(r);return null}initStyle(Ze,ke),b.PT.tap("injectNewStyleProperties",(function(e){if((0,b.kJ)(e))initStyle(Ze,e);else{if("string"!=typeof e)return;initStyle(Ze,[e])}}));var Me=function(e){(0,h.Z)(TaroElement,e);var t=(0,f.Z)(TaroElement);function TaroElement(){var e;return(0,g.Z)(this,TaroElement),(e=t.call(this)).props={},e.dataset=b.kT,e.nodeType=1,e.style=new Ze((0,u.Z)(e)),b.PT.call("patchElement",(0,u.Z)(e)),e}return(0,m.Z)(TaroElement,[{key:"_stopPropagation",value:function _stopPropagation(e){for(var t=this;t=t.parentNode;){var n=t.__handlers[e.type];if((0,b.kJ)(n))for(var i=n.length;i--;){n[i]._stop=!0}}}},{key:"id",get:function get(){return this.getAttribute(C)},set:function set(e){this.setAttribute(C,e)}},{key:"className",get:function get(){return this.getAttribute(I)||""},set:function set(e){this.setAttribute(I,e)}},{key:"cssText",get:function get(){return this.getAttribute(x)||""}},{key:"classList",get:function get(){return new de(this.className,this)}},{key:"children",get:function get(){return this.childNodes.filter(isElement)}},{key:"attributes",get:function get(){var e=this.props,t=Object.keys(e),n=this.style.cssText;return t.map((function(t){return{name:t,value:e[t]}})).concat(n?{name:x,value:n}:[])}},{key:"textContent",get:function get(){for(var e="",t=this.childNodes,n=0;n<t.length;n++)e+=t[n].textContent;return e},set:function set(e){(0,a.Z)((0,s.Z)(TaroElement.prototype),"textContent",e,this,!0)}},{key:"hasAttribute",value:function hasAttribute(e){return!(0,b.o8)(this.props[e])}},{key:"hasAttributes",value:function hasAttributes(){return this.attributes.length>0}},{key:"focus",get:function get(){return function(){this.setAttribute(L,!0)}},set:function set(e){this.setAttribute(L,e)}},{key:"blur",value:function blur(){this.setAttribute(L,!1)}},{key:"setAttribute",value:function setAttribute(e,t){(0,b.ZK)((0,b.HD)(t)&&t.length>P,"元素 ".concat(this.nodeName," 的 ").concat(e," 属性值数据量过大,可能会影响渲染性能。考虑降低图片转为 base64 的阈值或在 CSS 中使用 base64。"));var n=this.nodeName===O&&!isHasExtractProp(this)&&!this.isAnyEventBinded();switch(e!==x&&oe.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e){case x:this.style.cssText=t;break;case C:this.uid!==this.sid&&fe.delete(this.uid),t=String(t),this.props[e]=this.uid=t,fe.set(t,this);break;default:this.props[e]=t,e.startsWith("data-")&&(this.dataset===b.kT&&(this.dataset=Object.create(null)),this.dataset[(0,b.CA)(e.replace(/^data-/,""))]=t)}if(this._root){var i=getComponentsAlias(),r=i[this.nodeName],o=i[O]._num,a=i[R]._num,s=i[z]._num,l=this._path;e=shortcutAttr(e);var c=(0,b.CA)(e),u={path:"".concat(l,".").concat(c),value:(0,b.mf)(t)?function(){return t}:t};if(b.PT.call("modifySetAttrPayload",this,e,u,i),r){var d=r[c]||e;u.path="".concat(l,".").concat((0,b.CA)(d))}this.enqueueUpdate(u),this.nodeName===O&&(c===W?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===O&&isHasExtractProp(this)&&!this.isAnyEventBinded();if(oe.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e===x)this.style.cssText="";else{if(b.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[O]._num,o=n[R]._num,a=n[N]._num,s=this._path;e=shortcutAttr(e);var l=(0,b.CA)(e),c={path:"".concat(s,".").concat(l),value:""};if(b.PT.call("modifyRmAttrPayload",this,e,c,n),i){var u=i[l]||e;c.path="".concat(s,".").concat((0,b.CA)(u))}this.enqueueUpdate(c),this.nodeName===O&&(l===W?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===x?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,b.kJ)(n))return!1;for(var i=n.length;i--;){var r=n[i],o=void 0;if(r._stop?r._stop=!1:(b.PT.call("modifyDispatchEvent",e,this),o=r.call(this,e)),(!1===o||e._end)&&t&&(e.defaultPrevented=!0),!(0,b.o8)(o)&&e.mpEvent&&(e.mpEvent[X]=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=b.PT.call("getSpecialNodes"),a=!0;if((0,b.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=b.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}(be),De={prerender:!0,debug:!1};function feedPosition(e,t,n){for(var i=e.index,r=e.index=i+n,o=i;o<r;o++){"\n"===t.charAt(o)?(e.line++,e.column=0):e.column++}}function jumpPosition(e,t,n){return feedPosition(e,t,n-e.index)}function copyPosition(e){return{index:e.index,line:e.line,column:e.column}}var He=/\s/;function isWhitespaceChar(e){return He.test(e)}var je=/=/;function isEqualSignChar(e){return je.test(e)}function shouldBeIgnore(e){var t=e.toLowerCase();return!!De.html.skipElements.has(t)}var Be=/[A-Za-z0-9]/;function isWordEnd(e,t,n){if(!isWhitespaceChar(n.charAt(e)))return!1;for(var i=n.length,r=e-1;r>t;r--){var o=n.charAt(r);if(!isWhitespaceChar(o)){if(isEqualSignChar(o))return!1;break}}for(var a=e+1;a<i;a++){var s=n.charAt(a);if(!isWhitespaceChar(s))return!isEqualSignChar(s)}}var Ue=function(){function Scaner(e){(0,g.Z)(this,Scaner),this.tokens=[],this.position={index:0,column:0,line:0},this.html=e}return(0,m.Z)(Scaner,[{key:"scan",value:function scan(){for(var e=this.html,t=this.position,n=e.length;t.index<n;){var i=t.index;if(this.scanText(),t.index===i)if(e.startsWith("!--",i+1))this.scanComment();else{var r=this.scanTag();shouldBeIgnore(r)&&this.scanSkipTag(r)}}return this.tokens}},{key:"scanText",value:function scanText(){var e=this.html,t=this.position,n=function findTextEnd(e,t){for(;;){var n=e.indexOf("<",t);if(-1===n)return n;var i=e.charAt(n+1);if("/"===i||"!"===i||Be.test(i))return n;t=n+1}}(e,t.index);if(n!==t.index){-1===n&&(n=e.length);var i=copyPosition(t),r=e.slice(t.index,n);jumpPosition(t,e,n);var o=copyPosition(t);this.tokens.push({type:"text",content:r,position:{start:i,end:o}})}}},{key:"scanComment",value:function scanComment(){var e=this.html,t=this.position,n=copyPosition(t);feedPosition(t,e,4);var i=e.indexOf("--\x3e",t.index),r=i+3;-1===i&&(i=r=e.length);var o=e.slice(t.index,i);jumpPosition(t,e,r),this.tokens.push({type:"comment",content:o,position:{start:n,end:copyPosition(t)}})}},{key:"scanTag",value:function scanTag(){this.scanTagStart();var e=this.scanTagName();return this.scanAttrs(),this.scanTagEnd(),e}},{key:"scanTagStart",value:function scanTagStart(){var e=this.html,t=this.position,n="/"===e.charAt(t.index+1),i=copyPosition(t);feedPosition(t,e,n?2:1),this.tokens.push({type:"tag-start",close:n,position:{start:i}})}},{key:"scanTagEnd",value:function scanTagEnd(){var e=this.html,t=this.position,n="/"===e.charAt(t.index);feedPosition(t,e,n?2:1);var i=copyPosition(t);this.tokens.push({type:"tag-end",close:n,position:{end:i}})}},{key:"scanTagName",value:function scanTagName(){for(var e=this.html,t=this.position,n=e.length,i=t.index;i<n;){var r=e.charAt(i);if(!(isWhitespaceChar(r)||"/"===r||">"===r))break;i++}for(var o=i+1;o<n;){var a=e.charAt(o);if(!!(isWhitespaceChar(a)||"/"===a||">"===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<s;){var l=e.charAt(i);if(r){l===r&&(r=null),i++}else{if("/"===l||">"===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;d<c;d++){var h=a[d];if(h.includes("=")){var f=a[d+1];if(f&&f.startsWith("=")){if(f.length>1){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 b=h+m;n.push({type:u,content:b}),d+=1;continue}var y=h.slice(0,-1);n.push({type:u,content:y})}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<r;){var o=t.indexOf("</",n.index);if(-1===o){this.scanText();break}if(jumpPosition(n,t,o),i===this.scanTag().toLowerCase())break}}}]),Scaner}();function unquote(e){var t=e.charAt(0),n=e.length-1;return('"'===t||"'"===t)&&t===e.charAt(n)?e.slice(1,n):e}var Ge=function(){function StyleTagParser(){(0,g.Z)(this,StyleTagParser),this.styles=[]}return(0,m.Z)(StyleTagParser,[{key:"extractStyle",value:function extractStyle(e){var t=this,n=e;return n=n.replace(/<style\s?[^>]*>((.|\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;c<l.length-1&&(n[a]+=1)}else u.isChild&&c>0&&(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<n.class.length;r++){var o=n.class[r];if(-1===i.indexOf(o))return!1}if(n.attrs.length)for(var a=0;a<n.attrs.length;a++){var s=n.attrs[a],l=s.all,c=s.key,u=s.value;if(l&&!t.hasAttribute(c))return!1;if(t.getAttribute(c)!==unquote(u||""))return!1}return!0}}]),StyleTagParser}();function getPreviousElement(e){if(!e.parentElement)return null;var t=e.previousSibling;return t?1===t.nodeType?t:getPreviousElement(t):null}function getHundredsWeight(e){return e.reduce((function(e,t){return e+(t.id?1:0)}),0)}function getTensWeight(e){return e.reduce((function(e,t){return e+t.class.length+t.attrs.length}),0)}function getOnesWeight(e){return e.reduce((function(e,t){return e+(t.tag?1:0)}),0)}function makeMap(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return!!n[e.toLowerCase()]}:function(e){return!!n[e]}}var We={img:"image",iframe:"web-view"},ze=makeMap(Object.keys(b.rD).map((function(e){return e.toLowerCase()})).join(","),!0),Ve=makeMap("a,i,abbr,iframe,select,acronym,slot,small,span,bdi,kbd,strong,big,map,sub,sup,br,mark,mark,meter,template,canvas,textarea,cite,object,time,code,output,u,data,picture,tt,datalist,var,dfn,del,q,em,s,embed,samp,b",!0),qe=makeMap("address,fieldset,li,article,figcaption,main,aside,figure,nav,blockquote,footer,ol,details,form,p,dialog,h1,h2,h3,h4,h5,h6,pre,dd,header,section,div,hgroup,table,dl,hr,ul,dt",!0),Qe={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]};function hasTerminalParent(e,t){var n=Qe[e];if(n)for(var i=t.length-1;i>=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,b.mf)(De.html.transformText)&&(o=De.html.transformText(o,e)),null==i||i.appendChild(o),o}var a,s,l=t.createElement(function getTagName(e){return De.html.renderHTMLTag?e:We[e]?We[e]:ze(e)?e:qe(e)?"view":Ve(e)?"text":"view"}(e.tagName));l.h5tagName=e.tagName,null==i||i.appendChild(l),De.html.renderHTMLTag||(l.className="h5-".concat(e.tagName));for(var c=0;c<e.attributes.length;c++){var u=e.attributes[c],d=(s=void 0,-1===(s=(a=u).indexOf("="))?[a]:[a.slice(0,s).trim(),a.slice(s+1).trim()]),h=(0,r.Z)(d,2),f=h[0],p=h[1];if("class"===f)l.className+=" "+unquote(p);else{if("o"===f[0]&&"n"===f[1])continue;l.setAttribute(f,null==p||unquote(p))}}var v=n.styleTagParser,g=n.descendantList.slice(),m=v.matchStyle(e.tagName,l,g);return l.setAttribute("style",m+l.style.cssText),format(e.children,t,{styleTagParser:v,descendantList:g},l),(0,b.mf)(De.html.transformElement)?De.html.transformElement(l,e):l}))}function parser(e,t){var n=new Ge;e=n.extractStyle(e);var i={tagName:"",children:[],type:"element",attributes:[]};return parse({tokens:new Ue(e).scan(),options:De,cursor:0,stack:[i]}),format(i.children,t,{styleTagParser:n,descendantList:Array(n.styles.length).fill(0)})}function parse(e){for(var t=e.tokens,n=e.stack,i=e.cursor,r=t.length,o=n[n.length-1].children;i<r;){var a=t[i];if("tag-start"===a.type){var s=t[++i];i++;var l=s.content.toLowerCase();if(a.close){for(var c=n.length,u=!1;--c>-1;)if(n[c].tagName===l){u=!0;break}for(;i<r;){if("tag-end"!==t[i].type)break;i++}if(u){n.splice(c);break}}else{var d=De.html.closingElements.has(l);if(d&&(d=!hasTerminalParent(l,n)),d)for(var h=n.length-1;h>0;){if(l===n[h].tagName){n.splice(h),o=n[h-1].children;break}h-=1}for(var f=[],p=void 0;i<r&&"tag-end"!==(p=t[i]).type;)f.push(p.content),i++;i++;var v=[],g={type:"element",tagName:s.content,attributes:f,children:v};if(o.push(g),!(p.close||De.html.voidElements.has(l))){n.push({tagName:l,children:v});var m={tokens:t,cursor:i,stack:n};parse(m),i=m.cursor}}}else o.push(a),i++}e.cursor=i}function setInnerHTML(e,t){for(;e.firstChild;)e.removeChild(e.firstChild);for(var n=parser(t,e.ownerDocument),i=0;i<n.length;i++)e.appendChild(n[i])}De.html={skipElements:new Set(["style","script"]),voidElements:new Set(["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),closingElements:new Set(["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"]),renderHTMLTag:!1},(0,b.gl)()||be.extend("innerHTML",{set:function set(e){setInnerHTML.call(this,this,e)},get:function get(){return""}});var $e=function(){function TaroEvent(e,t,n){(0,g.Z)(this,TaroEvent),this._stop=!1,this._end=!1,this.defaultPrevented=!1,this.button=0,this.timeStamp=Date.now(),this.type=e.toLowerCase(),this.mpEvent=n,this.bubbles=Boolean(t&&t.bubbles),this.cancelable=Boolean(t&&t.cancelable)}return(0,m.Z)(TaroEvent,[{key:"stopPropagation",value:function stopPropagation(){this._stop=!0}},{key:"stopImmediatePropagation",value:function stopImmediatePropagation(){this._end=this._stop=!0}},{key:"preventDefault",value:function preventDefault(){this.defaultPrevented=!0}},{key:"target",get:function get(){var e,t,n=this.cacheTarget;if(n)return n;var i=Object.create((null===(e=this.mpEvent)||void 0===e?void 0:e.target)||null),r=ve.document.getElementById(i.id);for(var o in i.dataset=null!==r?r.dataset:b.kT,null===(t=this.mpEvent)||void 0===t?void 0:t.detail)i[o]=this.mpEvent.detail[o];return this.cacheTarget=i,i}},{key:"currentTarget",get:function get(){var e,t,n,i,r=this.cacheCurrentTarget;if(r)return r;var o=ve.document,a=Object.create((null===(e=this.mpEvent)||void 0===e?void 0:e.currentTarget)||null),s=o.getElementById(a.id),l=o.getElementById((null===(n=null===(t=this.mpEvent)||void 0===t?void 0:t.target)||void 0===n?void 0:n.id)||null);if(null===s||s&&s===l)return this.cacheCurrentTarget=this.target,this.target;for(var c in a.dataset=s.dataset,null===(i=this.mpEvent)||void 0===i?void 0:i.detail)a[c]=this.mpEvent.detail[c];return this.cacheCurrentTarget=a,a}}]),TaroEvent}();function createEvent(e,t){if("string"==typeof e)return new $e(e,{bubbles:!0,cancelable:!0});var n=new $e(e.type,{bubbles:!0,cancelable:!0},e);for(var i in e)i!==D&&i!==M&&i!==H&&i!==B&&(n[i]=e[i]);return n.type===j&&(null==t?void 0:t.nodeName)===F&&(n[U]=13),n}var Ke={};function getEventCBResult(e){var t=e[X];return(0,b.o8)(t)||delete e[X],t}function eventHandler(e){var t,n;void 0===e.type&&Object.defineProperty(e,"type",{value:e._type}),void 0===e.detail&&Object.defineProperty(e,"detail",{value:e._detail||Object.assign({},e)}),e.currentTarget=e.currentTarget||e.target||Object.assign({},e),b.PT.call("modifyMpEventImpl",e);var i=e.currentTarget,r=(null===(t=i.dataset)||void 0===t?void 0:t.sid)||i.id||(null===(n=e.detail)||void 0===n?void 0:n.id)||"",o=ve.document.getElementById(r);if(o){var a=function dispatch(){var t=createEvent(e,o);b.PT.call("modifyTaroEvent",t,o),o.dispatchEvent(t)};if(!b.PT.isExist("batchedEventUpdates"))return a(),getEventCBResult(e);var s=e.type;if(!b.PT.call("isBubbleEvents",s)||!function isParentBinded(e,t){for(var n,i=!1;(null==e?void 0:e.parentElement)&&e.parentElement._path!==E;){if(null===(n=e.parentElement.__handlers[t])||void 0===n?void 0:n.length){i=!0;break}e=e.parentElement}return i}(o,s)||s===G&&o.props.catchMove)return b.PT.call("batchedEventUpdates",(function(){Ke[s]&&(Ke[s].forEach((function(e){return e()})),delete Ke[s]),a()})),getEventCBResult(e);(Ke[s]||(Ke[s]=[])).push(a)}}var Je=function(e){(0,h.Z)(FormElement,e);var t=(0,f.Z)(FormElement);function FormElement(){return(0,g.Z)(this,FormElement),t.apply(this,arguments)}return(0,m.Z)(FormElement,[{key:"value",get:function get(){var e=this.props[A];return null==e?"":e},set:function set(e){this.setAttribute(A,e)}},{key:"dispatchEvent",value:function dispatchEvent(e){if(e.mpEvent){var t=e.mpEvent.detail.value;"change"===e.type?this.props.value=t:e.type===F&&(this.value=t)}return(0,o.Z)((0,s.Z)(FormElement.prototype),"dispatchEvent",this).call(this,e)}}]),FormElement}(Me),Ye=function(){function Performance(){(0,g.Z)(this,Performance),this.recorder=new Map}return(0,m.Z)(Performance,[{key:"start",value:function start(e){De.debug&&this.recorder.set(e,Date.now())}},{key:"stop",value:function stop(e){if(De.debug){var t=Date.now(),n=this.recorder.get(e);this.recorder.delete(e);var i=t-n;console.log("".concat(e," 时长: ").concat(i,"ms"))}}}]),Performance}(),Xe=new Ye;function findCustomWrapper(e,t){var n,i=t.slice(1),r=e,o="";if(i.some((function(e,i){var a=e.replace(/^\[(.+)\]$/,"$1").replace(/\bcn\b/g,"childNodes");if(r=r[a],(0,b.kJ)(r)&&(r=r.filter((function(e){return!isComment(e)}))),(0,b.o8)(r))return!0;if(r.nodeName===Z){var s=le.get(r.sid);s&&(n=s,o=t.slice(i+2).join("."))}})),n)return{customWrapper:n,splitedPath:o}}var et,tt=function(e){(0,h.Z)(TaroRootElement,e);var t=(0,f.Z)(TaroRootElement);function TaroRootElement(){var e;return(0,g.Z)(this,TaroRootElement),(e=t.call(this)).updatePayloads=[],e.updateCallbacks=[],e.pendingUpdate=!1,e.ctx=null,e.nodeName=E,e.tagName=E.toUpperCase(),e}return(0,m.Z)(TaroRootElement,[{key:"_path",get:function get(){return E}},{key:"_root",get:function get(){return this}},{key:"enqueueUpdate",value:function enqueueUpdate(e){this.updatePayloads.push(e),!this.pendingUpdate&&this.ctx&&this.performUpdate()}},{key:"performUpdate",value:function performUpdate(){var e=this,t=arguments.length>0&&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());Xe.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,b.mf)(t)&&(o[e]=t())};for(var h in o)u(h);if((0,b.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 y=m.customWrapper,k=m.splitedPath;p.set(y,Object.assign(Object.assign({},p.get(y)||{}),(0,d.Z)({},"i.".concat(k),o[v])))}else f[v]=o[v]}var T=p.size,S=Object.keys(f).length>0,P=T+(S?1:0),E=0,_=function cb(){++E===P&&(Xe.stop(r),e.flushUpdateCallback(),t&&Xe.stop(w))};T&&p.forEach((function(e,t){De.debug&&console.log("custom wrapper setData: ",e),t.setData(e,_)})),S&&(De.debug&&console.log("page setData:",f),i.setData(f,_))}),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<t.length;n++)t[n]()}}}]),TaroRootElement}(Me),nt=function(e){(0,h.Z)(TaroText,e);var t=(0,f.Z)(TaroText);function TaroText(e){var n;return(0,g.Z)(this,TaroText),(n=t.call(this)).nodeType=3,n.nodeName="#text",n._value=e,n}return(0,m.Z)(TaroText,[{key:"textContent",get:function get(){return this._value},set:function set(e){oe.record({target:this,type:"characterData",oldValue:this._value}),this._value=e,this.enqueueUpdate({path:"".concat(this._path,".","v"),value:e})}},{key:"nodeValue",get:function get(){return this._value},set:function set(e){this.textContent=e}},{key:"data",get:function get(){return this._value},set:function set(e){this.textContent=e}}]),TaroText}(be);function __classPrivateFieldGet(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function __classPrivateFieldSet(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}var it=/[!'()~]|%20|%00/g,rt=/\+/g,ot={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};function replacer(e){return ot[e]}function appendTo(e,t,n){var i=(0,b.kJ)(n)?n.join(","):n;t in e?e[t].push(i):e[t]=[i]}function addEach(e,t){appendTo(this,t,e)}function decode(e){return decodeURIComponent(e.replace(rt," "))}function encode(e){return encodeURIComponent(e).replace(it,replacer)}var at,st,lt,ct,ut,dt,ht=function(){function URLSearchParams(e){(0,g.Z)(this,URLSearchParams),et.set(this,Object.create(null)),null!=e||(e="");var t=__classPrivateFieldGet(this,et,"f");if("string"==typeof e){"?"===e.charAt(0)&&(e=e.slice(1));for(var n=e.split("&"),i=0,r=n.length;i<r;i++){var o=n[i],a=o.indexOf("=");a>-1?appendTo(t,decode(o.slice(0,a)),decode(o.slice(a+1))):o.length&&appendTo(t,decode(o),"")}}else if((0,b.kJ)(e))for(var s=0,l=e.length;s<l;s++){var c=e[s];appendTo(t,c[0],c[1])}else if(e.forEach)e.forEach(addEach,t);else for(var u in e)appendTo(t,u,e[u])}return(0,m.Z)(URLSearchParams,[{key:"append",value:function append(e,t){appendTo(__classPrivateFieldGet(this,et,"f"),e,t)}},{key:"delete",value:function _delete(e){delete __classPrivateFieldGet(this,et,"f")[e]}},{key:"get",value:function get(e){var t=__classPrivateFieldGet(this,et,"f");return e in t?t[e][0]:null}},{key:"getAll",value:function getAll(e){var t=__classPrivateFieldGet(this,et,"f");return e in t?t[e].slice(0):[]}},{key:"has",value:function has(e){return e in __classPrivateFieldGet(this,et,"f")}},{key:"keys",value:function keys(){return Object.keys(__classPrivateFieldGet(this,et,"f"))}},{key:"set",value:function set(e,t){__classPrivateFieldGet(this,et,"f")[e]=[""+t]}},{key:"forEach",value:function forEach(e,t){var n=__classPrivateFieldGet(this,et,"f");Object.getOwnPropertyNames(n).forEach((function(i){n[i].forEach((function(n){e.call(t,n,i,this)}),this)}),this)}},{key:"toJSON",value:function toJSON(){return{}}},{key:"toString",value:function toString(){var e=__classPrivateFieldGet(this,et,"f"),t=[];for(var n in e)for(var i=encode(n),r=0,o=e[n];r<o.length;r++)t.push(i+"="+encode(o[r]));return t.join("&")}}]),URLSearchParams}();et=new WeakMap;var ft=function(){function URL(e,t){(0,g.Z)(this,URL),at.set(this,""),st.set(this,""),lt.set(this,""),ct.set(this,""),ut.set(this,""),dt.set(this,void 0),(0,b.HD)(e)||(e=String(e));var n=function parseUrlBase(e,t){var n=/^(https?:)\/\//i,i="",r=null;if(!(0,b.o8)(t)){if(t=String(t).trim(),!n.test(t))throw new TypeError("Failed to construct 'URL': Invalid base URL");r=parseUrl(t)}if(e=String(e).trim(),n.test(e))i=e;else{if(!r)throw new TypeError("Failed to construct 'URL': Invalid URL");i=e?e.startsWith("//")?r.protocol+e:r.origin+(e.startsWith("/")?e:"/".concat(e)):r.href}return parseUrl(i)}(e,t),i=n.hash,r=n.hostname,o=n.pathname,a=n.port,s=n.protocol,l=n.search;__classPrivateFieldSet(this,at,i,"f"),__classPrivateFieldSet(this,st,r,"f"),__classPrivateFieldSet(this,lt,o||"/","f"),__classPrivateFieldSet(this,ct,a,"f"),__classPrivateFieldSet(this,ut,s,"f"),__classPrivateFieldSet(this,dt,new ht(l),"f")}return(0,m.Z)(URL,[{key:"protocol",get:function get(){return __classPrivateFieldGet(this,ut,"f")},set:function set(e){(0,b.HD)(e)&&__classPrivateFieldSet(this,ut,e.trim(),"f")}},{key:"host",get:function get(){return this.hostname+(this.port?":"+this.port:"")},set:function set(e){if(e&&(0,b.HD)(e)){e=e.trim();var t=parseUrl("//".concat(e)),n=t.hostname,i=t.port;this.hostname=n,this.port=i}}},{key:"hostname",get:function get(){return __classPrivateFieldGet(this,st,"f")},set:function set(e){e&&(0,b.HD)(e)&&__classPrivateFieldSet(this,st,e.trim(),"f")}},{key:"port",get:function get(){return __classPrivateFieldGet(this,ct,"f")},set:function set(e){(0,b.HD)(e)&&__classPrivateFieldSet(this,ct,e.trim(),"f")}},{key:"pathname",get:function get(){return __classPrivateFieldGet(this,lt,"f")},set:function set(e){if((0,b.HD)(e)){for(var t=/^(\/|\.\/|\.\.\/)/,n=e=e.trim();t.test(n);)n=n.replace(t,"");__classPrivateFieldSet(this,lt,n?"/"+n:"/","f")}}},{key:"search",get:function get(){var e=__classPrivateFieldGet(this,dt,"f").toString();return 0===e.length||e.startsWith("?")?e:"?".concat(e)},set:function set(e){(0,b.HD)(e)&&(e=e.trim(),__classPrivateFieldSet(this,dt,new ht(e),"f"))}},{key:"hash",get:function get(){return __classPrivateFieldGet(this,at,"f")},set:function set(e){(0,b.HD)(e)&&(e=e.trim(),__classPrivateFieldSet(this,at,e?e.startsWith("#")?e:"#".concat(e):"","f"))}},{key:"href",get:function get(){return"".concat(this.protocol,"//").concat(this.host).concat(this.pathname).concat(this.search).concat(this.hash)},set:function set(e){if(e&&(0,b.HD)(e)){var t=parseUrl(e=e.trim()),n=t.protocol,i=t.hostname,r=t.port,o=t.hash,a=t.search,s=t.pathname;this.protocol=n,this.hostname=i,this.pathname=s,this.port=r,this.hash=o,this.search=a}}},{key:"origin",get:function get(){return"".concat(this.protocol,"//").concat(this.host)},set:function set(e){if(e&&(0,b.HD)(e)){var t=parseUrl(e=e.trim()),n=t.protocol,i=t.hostname,r=t.port;this.protocol=n,this.hostname=i,this.port=r}}},{key:"searchParams",get:function get(){return __classPrivateFieldGet(this,dt,"f")}},{key:"toString",value:function toString(){return this.href}},{key:"toJSON",value:function toJSON(){return this.toString()}},{key:"_toRaw",value:function _toRaw(){return{protocol:this.protocol,port:this.port,host:this.host,hostname:this.hostname,pathname:this.pathname,hash:this.hash,search:this.search,origin:this.origin,href:this.href}}}],[{key:"createObjectURL",value:function createObjectURL(){throw new Error("Oops, not support URL.createObjectURL() in miniprogram.")}},{key:"revokeObjectURL",value:function revokeObjectURL(){throw new Error("Oops, not support URL.revokeObjectURL() in miniprogram.")}}]),URL}();function parseUrl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={href:"",origin:"",protocol:"",hostname:"",host:"",port:"",pathname:"",search:"",hash:""};if(!e||!(0,b.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}at=new WeakMap,st=new WeakMap,lt=new WeakMap,ct=new WeakMap,ut=new WeakMap,dt=new WeakMap;var pt,vt=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}(Me),gt=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)}(Me),mt=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 tt;case b._c.has(n):t=new Je;break;case"a"===n:t=new vt;break;case n===Z:t=new gt;break;default:t=new Me}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 nt(e)}},{key:"getElementById",value:function getElementById(e){var t=fe.get(e);return(0,b.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 nt("");return e.nodeName=V,e}},{key:"defaultView",get:function get(){return ve.window}}]),TaroDocument}(Me);if((0,b.gl)())pt=ve.document;else{pt=ve.document=function createDocument(){var e=new mt,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 bt,yt,kt,Tt,St,Pt,wt=b.PT.call("getEventCenter",b.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"),Ct=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),bt.add((0,u.Z)(r)),yt.set((0,u.Z)(r),void 0),kt.set((0,u.Z)(r),[]),Tt.set((0,u.Z)(r),0),St.set((0,u.Z)(r),void 0),__classPrivateFieldSet((0,u.Z)(r),St,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),Tt,(t=__classPrivateFieldGet((0,u.Z)(r),Tt,"f"),++t),"f"),__classPrivateFieldSet((0,u.Z)(r),kt,__classPrivateFieldGet((0,u.Z)(r),kt,"f").slice(0,__classPrivateFieldGet((0,u.Z)(r),Tt,"f")),"f"),__classPrivateFieldGet((0,u.Z)(r),kt,"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),bt,"m",Pt).call((0,u.Z)(r),e)}),null),r.on(i.INIT,(function(){__classPrivateFieldGet((0,u.Z)(r),bt,"m",Pt).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),kt,"f").slice(),cur:__classPrivateFieldGet((0,u.Z)(r),Tt,"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),kt,t.stack,"f"),__classPrivateFieldSet((0,u.Z)(r),Tt,t.cur,"f")}}),null),r.on(i.DESTORY,(function(e){_t.delete(e)}),null),__classPrivateFieldGet((0,u.Z)(r),bt,"m",Pt).call((0,u.Z)(r)),r}return(0,m.Z)(History,[{key:"length",get:function get(){return __classPrivateFieldGet(this,kt,"f").length}},{key:"state",get:function get(){return __classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,Tt,"f")].state}},{key:"go",value:function go(e){if((0,b.hj)(e)&&!isNaN(e)){var t=__classPrivateFieldGet(this,Tt,"f")+e;t=Math.min(Math.max(t,0),this.length-1),__classPrivateFieldSet(this,Tt,t,"f"),__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",__classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,Tt,"f")].url),__classPrivateFieldGet(this,St,"f").trigger("popstate",__classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,Tt,"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,b.HD)(n)&&(__classPrivateFieldSet(this,kt,__classPrivateFieldGet(this,kt,"f").slice(0,__classPrivateFieldGet(this,Tt,"f")+1),"f"),__classPrivateFieldGet(this,kt,"f").push({state:e,title:t,url:n}),__classPrivateFieldSet(this,Tt,this.length-1,"f"),__classPrivateFieldGet(this,yt,"f").trigger("__set_href_without_history__",n))}},{key:"replaceState",value:function replaceState(e,t,n){n&&(0,b.HD)(n)&&(__classPrivateFieldGet(this,kt,"f")[__classPrivateFieldGet(this,Tt,"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}(b.zW);yt=new WeakMap,kt=new WeakMap,Tt=new WeakMap,St=new WeakMap,bt=new WeakSet,Pt=function _History_reset(){__classPrivateFieldSet(this,kt,[{state:null,title:"",url:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||__classPrivateFieldGet(this,yt,"f").href}],"f"),__classPrivateFieldSet(this,Tt,0,"f")};var It,xt,Lt,Ot,Rt,Nt,At,Ft,Zt,Mt={app:null,router:null,page:null},Dt=function getCurrentInstance(){return Mt},Ht="https://taro.com",jt=new Et("location"),Bt=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),It.add((0,u.Z)(n)),xt.set((0,u.Z)(n),new ft(Ht)),Lt.set((0,u.Z)(n),!1),Ot.set((0,u.Z)(n),void 0),__classPrivateFieldSet((0,u.Z)(n),Ot,e.window,"f"),__classPrivateFieldGet((0,u.Z)(n),It,"m",Rt).call((0,u.Z)(n)),n.on("__set_href_without_history__",(function(e){__classPrivateFieldSet((0,u.Z)(n),Lt,!0,"f");var t=__classPrivateFieldGet((0,u.Z)(n),xt,"f").hash;__classPrivateFieldGet((0,u.Z)(n),xt,"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),xt,"f").hash&&__classPrivateFieldGet((0,u.Z)(n),Ot,"f").trigger("hashchange"),__classPrivateFieldSet((0,u.Z)(n),Lt,!1,"f")}),null),n.on(i.INIT,(function(){__classPrivateFieldGet((0,u.Z)(n),It,"m",Rt).call((0,u.Z)(n))}),null),n.on(i.RESTORE,(function(e){jt.set(e,{lastHref:n.href})}),null),n.on(i.RECOVER,(function(e){if(jt.has(e)){var t=jt.get(e);__classPrivateFieldSet((0,u.Z)(n),Lt,!0,"f"),__classPrivateFieldGet((0,u.Z)(n),xt,"f").href=t.lastHref,__classPrivateFieldSet((0,u.Z)(n),Lt,!1,"f")}}),null),n.on(i.DESTORY,(function(e){jt.delete(e)}),null),n}return(0,m.Z)(Location,[{key:"protocol",get:function get(){return __classPrivateFieldGet(this,xt,"f").protocol},set:function set(e){if(e&&(0,b.HD)(e)&&/^(http|https):$/i.test(e.trim())){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").protocol=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"host",get:function get(){return __classPrivateFieldGet(this,xt,"f").host},set:function set(e){if(e&&(0,b.HD)(e)){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").host=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"hostname",get:function get(){return __classPrivateFieldGet(this,xt,"f").hostname},set:function set(e){if(e&&(0,b.HD)(e)){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").hostname=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"port",get:function get(){return __classPrivateFieldGet(this,xt,"f").port},set:function set(e){var t=Number(e=e.trim());if((0,b.hj)(t)&&!(t<=0)){var n=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").port=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,n)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"pathname",get:function get(){return __classPrivateFieldGet(this,xt,"f").pathname},set:function set(e){if(e&&(0,b.HD)(e)){e=e.trim();var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").pathname=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"search",get:function get(){return __classPrivateFieldGet(this,xt,"f").search},set:function set(e){if(e&&(0,b.HD)(e)){e=(e=e.trim()).startsWith("?")?e:"?".concat(e);var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").search=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"hash",get:function get(){return __classPrivateFieldGet(this,xt,"f").hash},set:function set(e){if(e&&(0,b.HD)(e)){e=(e=e.trim()).startsWith("#")?e:"#".concat(e);var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").hash=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"href",get:function get(){return __classPrivateFieldGet(this,xt,"f").href},set:function set(e){if(e&&(0,b.HD)(e)&&/^(http:|https:)?\/\/.+/.test(e=e.trim())){var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").href=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"origin",get:function get(){return __classPrivateFieldGet(this,xt,"f").origin},set:function set(e){if(e&&(0,b.HD)(e)&&/^(http:|https:)?\/\/.+/.test(e=e.trim())){var t=__classPrivateFieldGet(this,It,"m",Nt).call(this);__classPrivateFieldGet(this,xt,"f").origin=e,__classPrivateFieldGet(this,It,"m",Zt).call(this,t)&&__classPrivateFieldGet(this,It,"m",Ft).call(this)}}},{key:"assign",value:function assign(){(0,b.ZK)(!0,"小程序环境中调用location.assign()无效.")}},{key:"reload",value:function reload(){(0,b.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 jt}}]),Location}(b.zW);xt=new WeakMap,Lt=new WeakMap,Ot=new WeakMap,It=new WeakSet,Rt=function _Location_reset(){var e=Dt().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,xt,new ft(o),"f"),this.trigger("__reset_history__",this.href)}},Nt=function _Location_getPreValue(){return __classPrivateFieldGet(this,xt,"f")._toRaw()},At=function _Location_rollBack(e){__classPrivateFieldGet(this,xt,"f").href=e},Ft=function _Location_recordHistory(){this.trigger("__record_history__",this.href)},Zt=function _Location_checkUrlChange(e){if(__classPrivateFieldGet(this,Lt,"f"))return!1;var t=__classPrivateFieldGet(this,xt,"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,It,"m",At).call(this,e.href),!1):o!==e.pathname||(a!==e.search||(s!==e.hash?(__classPrivateFieldGet(this,Ot,"f").trigger("hashchange"),!0):(__classPrivateFieldGet(this,It,"m",At).call(this,e.href),!1)))};var Ut,Gt,Wt="(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",zt=(0,b.gl)()?ve.window.navigator:{appCodeName:"Mozilla",appName:"Netscape",appVersion:"5.0 "+Wt,cookieEnabled:!0,mimeTypes:[],onLine:!0,platform:"MacIntel",plugins:[],product:"Taro",productSub:"20030107",userAgent:"Mozilla/5.0 "+Wt,vendor:"Joyent",vendorSub:""};"undefined"!=typeof performance&&null!==performance&&performance.now?Ut=function now(){return performance.now()}:Date.now?(Gt=Date.now(),Ut=function now(){return Date.now()-Gt}):(Gt=(new Date).getTime(),Ut=function now(){return(new Date).getTime()-Gt});var Vt,qt=0,Qt=null!=T?T:function(e){var t=Ut(),n=Math.max(qt+16,t);return setTimeout((function(){e(qt=n)}),n-t)},$t=null!=S?S:function(e){clearTimeout(e)};if((0,b.gl)())Vt=ve.window;else{var Kt=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=zt,e.requestAnimationFrame=Qt,e.cancelAnimationFrame=$t,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){console.warn("[Taro warn] window.".concat(String(t)," 在赋值到 window 时报错"))}})),e.Date||(e.Date=Date),e.location=new Bt({window:(0,u.Z)(e)}),e.history=new Ct(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 ve.document}},{key:"addEventListener",value:function addEventListener(e,t){(0,b.HD)(e)&&this.on(e,t,null)}},{key:"removeEventListener",value:function removeEventListener(e,t){(0,b.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}(b.zW);Vt=ve.window=new Kt}var Jt=Vt.location,Yt=Vt.history,Xt=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)}(Me),en=new Map,tn=ae(),nn=(0,b.gl)();function injectPageInstance(e,t){b.PT.call("mergePageInstance",en.get(t),e),en.set(t,e)}function getPageInstance(e){return en.get(e)}function removePageInstance(e){en.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<n;r++)i[r-2]=arguments[r];var o=en.get(e);if(null!=o){var a=b.PT.call("getLifecycle",o,t);if((0,b.kJ)(a))return a.map((function(e){return e.apply(o,i)}))[0];if((0,b.mf)(a))return a.apply(o,i)}}function stringify(e){if(null==e)return"";var t=Object.keys(e).map((function(t){return t+"="+e[t]})).join("&");return""===t?t:"?"+t}function getPath(e,t){var n=e.indexOf("?");return nn?"".concat(n>-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+"."+Q}function getOnShowEventKey(e){return e+"."+$}function getOnHideEventKey(e){return e+"."+K}function createPageConfig(e,t,n,o){var a,s,l,c=null!=t?t:"taro_page_".concat(tn()),u=(0,r.Z)(b.PT.call("getMiniLifecycleImpl").page,7),h=u[0],f=u[1],p=u[2],v=u[3],g=u[4],m=u[5],y=u[6],k=null,T=!1,S=[];function setCurrentRouter(e){var t=nn?e.$taroPath:e.route||e.__route__||e.$taroPath;Mt.router={params:e.$taroParams,path:addLeadingSlash(t),$taroPath:e.$taroPath,onReady:getOnReadyEventKey(c),onShow:getOnShowEventKey(c),onHide:getOnHideEventKey(c)},(0,b.o8)(e.exitState)||(Mt.router.exitState=e.exitState)}var P=(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})),Xe.start(w),Mt.page=this,this.config=o||{};var a=Object.assign({},n,{$taroTimestamp:Date.now()}),u=this.$taroPath=getPath(c,a);nn&&(P.path=u),null==this.$taroParams&&(this.$taroParams=a),setCurrentRouter(this),nn||Vt.trigger(i.INIT,u);var d=function mount(){Mt.app.mount(e,u,(function(){k=ve.document.getElementById(u),(0,b.zx)(null!==k,"没有找到页面实例。"),safeExecute(u,q,t.$taroParams),s(),nn?(0,b.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;nn||Vt.trigger(i.DESTORY,e),safeExecute(e,f),T=!0,Mt.app.unmount(e,(function(){T=!1,en.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,Q),Qt((function(){return wt.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(){Mt.page=e,setCurrentRouter(e),nn||Vt.trigger(i.RECOVER,e.$taroPath),safeExecute(e.$taroPath,$,t),Qt((function(){return wt.trigger(getOnShowEventKey(c))}))}))})),(0,d.Z)(a,g,(function(){nn||Vt.trigger(i.RESTORE,this.$taroPath),Mt.page===this&&(Mt.page=null,Mt.router=null),safeExecute(this.$taroPath,K),wt.trigger(getOnHideEventKey(c))})),a);return m.forEach((function(e){P[e]=function(){return safeExecute.apply(void 0,[this.$taroPath,e].concat(Array.prototype.slice.call(arguments)))}})),y.forEach((function(t){var n;(e[t]||(null===(n=e.prototype)||void 0===n?void 0:n[t])||e[t.replace(/^on/,"enable")])&&(P[t]=function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=null===(e=i[0])||void 0===e?void 0:e.target;if(null==o?void 0:o.id){var a=o.id,s=ve.document.getElementById(a);s&&(o.dataset=s.dataset)}return safeExecute.apply(void 0,[this.$taroPath,t].concat(i))})})),P.eh=eventHandler,(0,b.o8)(n)||(P.data=n),b.PT.call("modifyPageObject",P),P}function createComponentConfig(e,t,n){var i,o=null!=t?t:"taro_component_".concat(tn()),a=null,s=(0,r.Z)(b.PT.call("getMiniLifecycleImpl").component,2),l=s[0],c=s[1],u=(i={},(0,d.Z)(i,l,(function(){var t,n=this;Xe.start(w);var i=getPath(o,{id:(null===(t=this.getPageId)||void 0===t?void 0:t.call(this))||tn()});Mt.app.mount(e,i,(function(){a=ve.document.getElementById(i),(0,b.zx)(null!==a,"没有找到组件实例。"),n.$taroInstances=en.get(i),safeExecute(i,q),nn||(a.ctx=n,a.performUpdate(!0))}))})),(0,d.Z)(i,c,(function(){var e=getPath(o,{id:this.getPageId()});Mt.app.unmount(e,(function(){en.delete(e),a&&(a.ctx=null)}))})),(0,d.Z)(i,"methods",{eh:eventHandler}),i);return(0,b.o8)(n)||(u.data=n),[J,Y,ee].forEach((function(t){var n;u[t]=null!==(n=e[t])&&void 0!==n?n:b.kT})),u}function createRecursiveComponentConfig(e){var t,n=e===Z,i=(0,r.Z)(b.PT.call("getMiniLifecycleImpl").component,2),o=i[0],a=i[1],s=n?(t={},(0,d.Z)(t,o,(function(){var e,t,n=(null===(e=this.data.i)||void 0===e?void 0:e.sid)||(null===(t=this.props.i)||void 0===t?void 0:t.sid);if((0,b.HD)(n)){le.set(n,this);var i=ve.document.getElementById(n);i&&(i.ctx=this)}})),(0,d.Z)(t,a,(function(){var e,t,n=(null===(e=this.data.i)||void 0===e?void 0:e.sid)||(null===(t=this.props.i)||void 0===t?void 0:t.sid);if((0,b.HD)(n)){le.delete(n);var i=ve.document.getElementById(n);i&&(i.ctx=null)}})),t):b.kT;return Object.assign({properties:{i:{type:Object,value:(0,d.Z)({},"nn",(0,b.W)(b.rD)[O]._num)},l:{type:String,value:""}},options:{addGlobalClass:!0,virtualHost:!n},methods:{eh:eventHandler}},s)}var rn=function nextTick(e,t){var n,i,r,o=Mt.router,a=function timerFunc(){setTimeout((function(){t?e.call(t):e()}),1)};if(null!==o){var s=null,l=o.$taroPath;(null==(s=ve.document.getElementById(l))?void 0:s.pendingUpdate)?(0,b.gl)()?null!==(r=null===(i=null===(n=s.firstChild)||void 0===n?void 0:n.componentOnReady)||void 0===i?void 0:i.call(n).then((function(){a()})))&&void 0!==r||a():s.enqueueUpdateCallback(e,t):a()}else a()}},4455:function(e,t,n){"use strict";n.d(t,{CA:function(){return toCamelCase},Ft:function(){return isNull},HD:function(){return isString},Ig:function(){return processApis},Kn:function(){return isObject},PT:function(){return C},W:function(){return getComponentsAlias},ZK:function(){return warn},ZT:function(){return x},_c:function(){return k},eu:function(){return toDashed},gl:function(){return w},hj:function(){return isNumber},jn:function(){return isBoolean},kC:function(){return capitalize},kJ:function(){return P},kT:function(){return I},ku:function(){return mergeInternalComponents},mf:function(){return isFunction},o8:function(){return isUndefined},rD:function(){return y},xi:function(){return mergeReconciler},zW:function(){return T},zx:function(){return ensure}});var i=n(3433),r=n(136),o=n(7277),a=n(1002),s=n(5671),l=n(3144),c="[]",u="",d="!0",h="!1",f={bindTouchStart:u,bindTouchMove:u,bindTouchEnd:u,bindTouchCancel:u,bindLongTap:u},p={animation:u,bindAnimationStart:u,bindAnimationIteration:u,bindAnimationEnd:u,bindTransitionEnd:u};function singleQuote(e){return"'".concat(e,"'")}var v,g=Object.assign(Object.assign({"hover-class":singleQuote("none"),"hover-stop-propagation":h,"hover-start-time":"50","hover-stay-time":"400"},f),p),m={type:u,size:"23",color:u},b=Object.assign({longitude:u,latitude:u,scale:"16",markers:c,covers:u,polyline:c,circles:c,controls:c,"include-points":c,"show-location":u,"layer-style":"1",bindMarkerTap:u,bindControlTap:u,bindCalloutTap:u,bindUpdated:u},f),y={View:g,Icon:m,Progress:{percent:u,"stroke-width":"6",color:singleQuote("#09BB07"),activeColor:singleQuote("#09BB07"),backgroundColor:singleQuote("#EBEBEB"),active:h,"active-mode":singleQuote("backwards"),"show-info":h},RichText:{nodes:c},Text:{selectable:h,space:u,decode:h},Button:Object.assign({size:singleQuote("default"),type:u,plain:h,disabled:u,loading:h,"form-type":u,"open-type":u,"hover-class":singleQuote("button-hover"),"hover-stop-propagation":h,"hover-start-time":"20","hover-stay-time":"70",name:u},f),Checkbox:{value:u,disabled:u,checked:h,color:singleQuote("#09BB07"),name:u},CheckboxGroup:{bindChange:u,name:u},Form:{"report-submit":h,bindSubmit:u,bindReset:u,name:u},Input:{value:u,type:singleQuote(u),password:h,placeholder:u,"placeholder-style":u,"placeholder-class":singleQuote("input-placeholder"),disabled:u,maxlength:"140","cursor-spacing":"0",focus:h,"confirm-type":singleQuote("done"),"confirm-hold":h,cursor:"i.value.length","selection-start":"-1","selection-end":"-1",bindInput:u,bindFocus:u,bindBlur:u,bindConfirm:u,name:u},Label:{for:u,name:u},Picker:{mode:singleQuote("selector"),disabled:u,range:u,"range-key":u,value:u,start:u,end:u,fields:singleQuote("day"),"custom-item":u,name:u,bindCancel:u,bindChange:u,bindColumnChange:u},PickerView:{value:u,"indicator-style":u,"indicator-class":u,"mask-style":u,"mask-class":u,bindChange:u,name:u},PickerViewColumn:{name:u},Radio:{value:u,checked:h,disabled:u,color:singleQuote("#09BB07"),name:u},RadioGroup:{bindChange:u,name:u},Slider:{min:"0",max:"100",step:"1",disabled:u,value:"0",activeColor:singleQuote("#1aad19"),backgroundColor:singleQuote("#e9e9e9"),"block-size":"28","block-color":singleQuote("#ffffff"),"show-value":h,bindChange:u,bindChanging:u,name:u},Switch:{checked:h,disabled:u,type:singleQuote("switch"),color:singleQuote("#04BE02"),bindChange:u,name:u},CoverImage:{src:u,bindLoad:"eh",bindError:"eh"},Textarea:{value:u,placeholder:u,"placeholder-style":u,"placeholder-class":singleQuote("textarea-placeholder"),disabled:u,maxlength:"140","auto-focus":h,focus:h,"auto-height":h,fixed:h,"cursor-spacing":"0",cursor:"-1","selection-start":"-1","selection-end":"-1",bindFocus:u,bindBlur:u,bindLineChange:u,bindInput:u,bindConfirm:u,name:u},CoverView:Object.assign({"scroll-top":h},f),MovableArea:{"scale-area":h},MovableView:Object.assign(Object.assign({direction:"none",inertia:h,"out-of-bounds":h,x:u,y:u,damping:"20",friction:"2",disabled:u,scale:h,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:u,bindScale:u,bindHTouchMove:u,bindVTouchMove:u,width:singleQuote("10px"),height:singleQuote("10px")},f),p),ScrollView:Object.assign(Object.assign({"scroll-x":h,"scroll-y":h,"upper-threshold":"50","lower-threshold":"50","scroll-top":u,"scroll-left":u,"scroll-into-view":u,"scroll-with-animation":h,"enable-back-to-top":h,bindScrollToUpper:u,bindScrollToLower:u,bindScroll:u},f),p),Swiper:Object.assign({"indicator-dots":h,"indicator-color":singleQuote("rgba(0, 0, 0, .3)"),"indicator-active-color":singleQuote("#000000"),autoplay:h,current:"0",interval:"5000",duration:"500",circular:h,vertical:h,"previous-margin":singleQuote("0px"),"next-margin":singleQuote("0px"),"display-multiple-items":"1",bindChange:u,bindTransition:u,bindAnimationFinish:u},f),SwiperItem:{"item-id":u},Navigator:{url:u,"open-type":singleQuote("navigate"),delta:"1","hover-class":singleQuote("navigator-hover"),"hover-stop-propagation":h,"hover-start-time":"50","hover-stay-time":"600",bindSuccess:u,bindFail:u,bindComplete:u},Audio:{id:u,src:u,loop:h,controls:h,poster:u,name:u,author:u,bindError:u,bindPlay:u,bindPause:u,bindTimeUpdate:u,bindEnded:u},Camera:{"device-position":singleQuote("back"),flash:singleQuote("auto"),bindStop:u,bindError:u},Image:Object.assign({src:u,mode:singleQuote("scaleToFill"),"lazy-load":h,bindError:u,bindLoad:u},f),LivePlayer:Object.assign({src:u,autoplay:h,muted:h,orientation:singleQuote("vertical"),"object-fit":singleQuote("contain"),"background-mute":h,"min-cache":"1","max-cache":"3",bindStateChange:u,bindFullScreenChange:u,bindNetStatus:u},p),Video:Object.assign({src:u,duration:u,controls:d,"danmu-list":u,"danmu-btn":u,"enable-danmu":u,autoplay:h,loop:h,muted:h,"initial-time":"0","page-gesture":h,direction:u,"show-progress":d,"show-fullscreen-btn":d,"show-play-btn":d,"show-center-play-btn":d,"enable-progress-gesture":d,"object-fit":singleQuote("contain"),poster:u,"show-mute-btn":h,bindPlay:u,bindPause:u,bindEnded:u,bindTimeUpdate:u,bindFullScreenChange:u,bindWaiting:u,bindError:u},p),Canvas:Object.assign({"canvas-id":u,"disable-scroll":h,bindError:u},f),Ad:{"unit-id":u,"ad-intervals":u,bindLoad:u,bindError:u,bindClose:u},WebView:{src:u,bindMessage:u,bindLoad:u,bindError:u},Block:{},Map:b,Slot:{name:u},SlotView:{name:u},NativeSlot:{name:u}},k=new Set(["input","checkbox","picker","picker-view","radio","slider","switch","textarea"]);new Set(["input","textarea"]),new Set(["progress","icon","rich-text","input","textarea","slider","switch","audio","ad","official-account","open-data","navigation-bar"]),new Map([["view",-1],["catch-view",-1],["cover-view",-1],["static-view",-1],["pure-view",-1],["block",-1],["text",-1],["static-text",6],["slot",8],["slot-view",8],["label",6],["form",4],["scroll-view",4],["swiper",4],["swiper-item",4]]);!function(e){e.MINI="mini",e.WEB="web",e.RN="rn",e.HARMONY="harmony",e.QUICK="quickapp"}(v||(v={}));v.WEB,v.HARMONY,v.MINI,v.RN,v.QUICK;var T=function(){function Events(e){var t;(0,s.Z)(this,Events),this.callbacks=null!==(t=null==e?void 0:e.callbacks)&&void 0!==t?t:{}}return(0,l.Z)(Events,[{key:"on",value:function on(e,t,n){var i,r,o,a;if(!t)return this;e=e.split(Events.eventSplitter),this.callbacks||(this.callbacks={});for(var s=this.callbacks;i=e.shift();)(r=(a=s[i])?a.tail:{}).next=o={},r.context=n,r.callback=t,s[i]={tail:o,next:a?a.next:r};return this}},{key:"once",value:function once(e,t,n){var i=this;return this.on(e,(function wrapper(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t.apply(i,o),i.off(e,wrapper,n)}),n),this}},{key:"off",value:function off(e,t,n){var i,r,o,a,s,l;if(!(r=this.callbacks))return this;if(!(e||t||n))return delete this.callbacks,this;for(e=e?e.split(Events.eventSplitter):Object.keys(r);i=e.shift();)if(o=r[i],delete r[i],o&&(t||n))for(a=o.tail;(o=o.next)!==a;)s=o.callback,l=o.context,(t&&s!==t||n&&l!==n)&&this.on(i,s,l);return this}},{key:"trigger",value:function trigger(e){var t,n,i,r;if(!(i=this.callbacks))return this;e=e.split(Events.eventSplitter);for(var o=[].slice.call(arguments,1);t=e.shift();)if(n=i[t])for(r=n.tail;(n=n.next)!==r;)n.callback.apply(n.context||this,o);return this}}]),Events}();function isString(e){return"string"==typeof e}function isUndefined(e){return void 0===e}function isNull(e){return null===e}function isObject(e){return null!==e&&"object"===(0,a.Z)(e)}function isBoolean(e){return!0===e||!1===e}function isFunction(e){return"function"==typeof e}function isNumber(e){return"number"==typeof e}T.eventSplitter=",";var S,P=Array.isArray,w=function isWebPlatform(){return!1};!function(e){e[e.SINGLE=0]="SINGLE",e[e.MULTI=1]="MULTI",e[e.WATERFALL=2]="WATERFALL"}(S||(S={}));var E={app:["onLaunch","onShow","onHide"],page:["onLoad","onUnload","onReady","onShow","onHide",["onPullDownRefresh","onReachBottom","onPageScroll","onResize","onTabItemTap","onTitleClick","onOptionMenuClick","onPopMenuClick","onPullIntercept","onAddToFavorites"],["onShareAppMessage","onShareTimeline"]],component:["attached","detached"]};function TaroHook(e,t){return{type:e,initial:t||null}}var _=function(e){(0,r.Z)(TaroHooks,e);var t=(0,o.Z)(TaroHooks);function TaroHooks(e,n){var i;for(var r in(0,s.Z)(this,TaroHooks),(i=t.call(this,n)).hooks=e,e){var o=e[r].initial;isFunction(o)&&i.on(r,o)}return i}return(0,l.Z)(TaroHooks,[{key:"tapOneOrMany",value:function tapOneOrMany(e,t){var n=this;(isFunction(t)?[t]:t).forEach((function(t){return n.on(e,t)}))}},{key:"tap",value:function tap(e,t){var n=this.hooks[e],i=n.type,r=n.initial;i===S.SINGLE?(this.off(e),this.on(e,isFunction(t)?t:t[t.length-1])):(r&&this.off(e,r),this.tapOneOrMany(e,t))}},{key:"call",value:function call(e){var t,n=this.hooks[e];if(n){var i=n.type,r=this.callbacks;if(r){var o=r[e];if(o){for(var a=o.tail,s=o.next,l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(var d,h=c;s!==a;){if(d=null===(t=s.callback)||void 0===t?void 0:t.apply(s.context||this,h),i===S.WATERFALL)h=[d];s=s.next}return d}}}}},{key:"isExist",value:function isExist(e){var t;return Boolean(null===(t=this.callbacks)||void 0===t?void 0:t[e])}}]),TaroHooks}(T),C=new _({getMiniLifecycle:TaroHook(S.SINGLE,(function(e){return e})),getMiniLifecycleImpl:TaroHook(S.SINGLE,(function(){return this.call("getMiniLifecycle",E)})),getLifecycle:TaroHook(S.SINGLE,(function(e,t){return e[t]})),getPathIndex:TaroHook(S.SINGLE,(function(e){return"[".concat(e,"]")})),getEventCenter:TaroHook(S.SINGLE,(function(e){return new e})),isBubbleEvents:TaroHook(S.SINGLE,(function(e){return new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]).has(e)})),getSpecialNodes:TaroHook(S.SINGLE,(function(){return["view","text","image"]})),onRemoveAttribute:TaroHook(S.SINGLE),batchedEventUpdates:TaroHook(S.SINGLE),mergePageInstance:TaroHook(S.SINGLE),modifyPageObject:TaroHook(S.SINGLE),createPullDownComponent:TaroHook(S.SINGLE),getDOMNode:TaroHook(S.SINGLE),modifyHydrateData:TaroHook(S.SINGLE),modifySetAttrPayload:TaroHook(S.SINGLE),modifyRmAttrPayload:TaroHook(S.SINGLE),onAddEvent:TaroHook(S.SINGLE),modifyMpEvent:TaroHook(S.MULTI),modifyMpEventImpl:TaroHook(S.SINGLE,(function(e){try{this.call("modifyMpEvent",e)}catch(e){console.warn("[Taro modifyMpEvent hook Error]: "+(null==e?void 0:e.message))}})),injectNewStyleProperties:TaroHook(S.SINGLE),modifyTaroEvent:TaroHook(S.MULTI),modifyDispatchEvent:TaroHook(S.MULTI),initNativeApi:TaroHook(S.MULTI),patchElement:TaroHook(S.MULTI)}),I={},x=function noop(){};function toDashed(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function toCamelCase(e){for(var t="",n=!1,i=0;i<e.length;i++)"-"!==e[i]?(t+=n?e[i].toUpperCase():e[i],n=!1):n=!0;return t}function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}Object.prototype.hasOwnProperty;function ensure(e,t){if(!e){throw new Error(t+"\n如有疑问请提交 issue 至https://github.com/nervjs/taro/issues")}}function warn(e,t){e&&console.warn("[taro warn] ".concat(t))}var L=1,O=(new Date).getTime().toString();function mergeInternalComponents(e){return Object.keys(e).forEach((function(t){t in y?Object.assign(y[t],e[t]):y[t]=e[t]})),y}function getComponentsAlias(e){var t={},n=e.View,i={"#text":{},StaticView:n,StaticImage:e.Image,StaticText:e.Text,PureView:n,CatchView:n};return e=Object.assign(Object.assign({},e),i),Object.keys(e).sort((function(e,t){var n=/^(Static|Pure|Catch)*(View|Image|Text)$/,i=n.test(e),r=n.test(t);return i&&r?e>t?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;a<i;a++)o[a-1]=arguments[a];var s=r;if("string"==typeof e)return o.length?t[s].apply(t,[e].concat(o)):t[s](e);if(n.transformMeta){var l=n.transformMeta(s,e);if(s=l.key,e=l.options,!t.hasOwnProperty(s))return nonsupport(s)()}var c=null,u=Object.assign({},e);setUniqueKeyToRoute(s,e);var d=new Promise((function(i,r){u.success=function(t){var r,o;null===(r=n.modifyAsyncResult)||void 0===r||r.call(n,s,t),null===(o=e.success)||void 0===o||o.call(e,t),i("connectSocket"===s?Promise.resolve().then((function(){return c?Object.assign(c,t):t})):t)},u.fail=function(t){var n;null===(n=e.fail)||void 0===n||n.call(e,t),r(t)},u.complete=function(t){var n;null===(n=e.complete)||void 0===n||n.call(e,t)},c=o.length?t[s].apply(t,[u].concat(o)):t[s](u)}));return["uploadFile","downloadFile"].includes(s)&&(equipTaskMethodsIntoPromise(c,d),d.progress=function(e){return null==c||c.onProgressUpdate(e),d},d.abort=function(e){return null==e||e(),null==c||c.abort(),d}),d}}else{var a=i;if(n.transformMeta&&(a=n.transformMeta(i,{}).key),!t.hasOwnProperty(a))return void(e[i]=nonsupport(i));isFunction(t[i])?e[i]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.handleSyncApis?n.handleSyncApis(i,t,r):t[a].apply(t,r)}:e[i]=t[a]}})),!n.isOnlyPromisify&&function equipCommonApis(e,t){var n=arguments.length>2&&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 console.error("不支持 API canIUseWebp"),!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"))}}]);