2 lines
183 KiB
JavaScript
2 lines
183 KiB
JavaScript
/*! For license information please see taro.js.LICENSE.txt */
|
||
(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["taro"],{"./node_modules/@tarojs/api/dist/index.esm.js":function(e,t,n){"use strict";n.d(t,{default:function(){return L}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");var i=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");var a=n("./node_modules/@babel/runtime/helpers/esm/inherits.js");var o=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js");var s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var u=n("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");var c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function isFunction$1(e){return typeof e==="function"}function isUndefined(e){return typeof e==="undefined"}function isObject(e){return e&&(0,r["default"])(e)==="object"}var d=function isBadObj(e){return!isObject(e)};function throwTypeError(e){throw new TypeError(e)}if(!isFunction$1(Object.assign)){Object.assign=function(e){if(e==null){throwTypeError("Cannot convert undefined or null to object")}var t=Object(e);for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null){for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){t[i]=r[i]}}}}return t}}if(!isFunction$1(Object.defineProperties)){Object.defineProperties=function(e,t){function convertToDescriptor(e){function hasProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}if(d(e)){throwTypeError("bad desc")}var t={};if(hasProperty(e,"enumerable"))t.enumerable=!!e.enumerable;if(hasProperty(e,"configurable")){t.configurable=!!e.configurable}if(hasProperty(e,"value"))t.value=e.value;if(hasProperty(e,"writable"))t.writable=!!e.writable;if(hasProperty(e,"get")){var n=e.get;if(!isFunction$1(n)&&!isUndefined(n)){throwTypeError("bad get")}t.get=n}if(hasProperty(e,"set")){var r=e.set;if(!isFunction$1(r)&&!isUndefined(r)){throwTypeError("bad set")}t.set=r}if(("get"in t||"set"in t)&&("value"in t||"writable"in t)){throwTypeError("identity-confused descriptor")}return t}if(d(e))throwTypeError("bad obj");t=Object(t);var n=Object.keys(t);var r=[];for(var i=0;i<n.length;i++){r.push([n[i],convertToDescriptor(t[n[i]])])}for(var a=0;a<r.length;a++){Object.defineProperty(e,r[a][0],r[a][1])}return e}}var f="[]";var v="";var h="!0";var p="!1";var m={bindTouchStart:v,bindTouchMove:v,bindTouchEnd:v,bindTouchCancel:v,bindLongTap:v};var g={animation:v,bindAnimationStart:v,bindAnimationIteration:v,bindAnimationEnd:v,bindTransitionEnd:v};function singleQuote(e){return"'".concat(e,"'")}Object.assign(Object.assign({"hover-class":singleQuote("none"),"hover-stop-propagation":p,"hover-start-time":"50","hover-stay-time":"400"},m),g);Object.assign({longitude:v,latitude:v,scale:"16",markers:f,covers:v,polyline:f,circles:f,controls:f,"include-points":f,"show-location":v,"layer-style":"1",bindMarkerTap:v,bindControlTap:v,bindCalloutTap:v,bindUpdated:v},m);Object.assign({size:singleQuote("default"),type:v,plain:p,disabled:v,loading:p,"form-type":v,"open-type":v,"hover-class":singleQuote("button-hover"),"hover-stop-propagation":p,"hover-start-time":"20","hover-stay-time":"70",name:v},m);Object.assign({"scroll-top":p},m);Object.assign(Object.assign({direction:"none",inertia:p,"out-of-bounds":p,x:v,y:v,damping:"20",friction:"2",disabled:v,scale:p,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:v,bindScale:v,bindHTouchMove:v,bindVTouchMove:v,width:singleQuote("10px"),height:singleQuote("10px")},m),g);Object.assign(Object.assign({"scroll-x":p,"scroll-y":p,"upper-threshold":"50","lower-threshold":"50","scroll-top":v,"scroll-left":v,"scroll-into-view":v,"scroll-with-animation":p,"enable-back-to-top":p,bindScrollToUpper:v,bindScrollToLower:v,bindScroll:v},m),g);Object.assign({"indicator-dots":p,"indicator-color":singleQuote("rgba(0, 0, 0, .3)"),"indicator-active-color":singleQuote("#000000"),autoplay:p,current:"0",interval:"5000",duration:"500",circular:p,vertical:p,"previous-margin":singleQuote("0px"),"next-margin":singleQuote("0px"),"display-multiple-items":"1",bindChange:v,bindTransition:v,bindAnimationFinish:v},m);Object.assign({src:v,mode:singleQuote("scaleToFill"),"lazy-load":p,bindError:v,bindLoad:v},m);Object.assign({src:v,autoplay:p,muted:p,orientation:singleQuote("vertical"),"object-fit":singleQuote("contain"),"background-mute":p,"min-cache":"1","max-cache":"3",bindStateChange:v,bindFullScreenChange:v,bindNetStatus:v},g);Object.assign({src:v,duration:v,controls:h,"danmu-list":v,"danmu-btn":v,"enable-danmu":v,autoplay:p,loop:p,muted:p,"initial-time":"0","page-gesture":p,direction:v,"show-progress":h,"show-fullscreen-btn":h,"show-play-btn":h,"show-center-play-btn":h,"enable-progress-gesture":h,"object-fit":singleQuote("contain"),poster:v,"show-mute-btn":p,bindPlay:v,bindPause:v,bindEnded:v,bindTimeUpdate:v,bindFullScreenChange:v,bindWaiting:v,bindError:v},g);Object.assign({"canvas-id":v,"disable-scroll":p,bindError:v},m);var b;(function(e){e["MINI"]="mini";e["WEB"]="web";e["RN"]="rn";e["HARMONY"]="harmony";e["QUICK"]="quickapp"})(b||(b={}));({h5:{type:b.WEB},harmony:{type:b.HARMONY},mini:{type:b.MINI},rn:{type:b.RN},quickapp:{type:b.QUICK}});var y=function(){function Events(e){(0,s["default"])(this,Events);var t;this.callbacks=(t=e===null||e===void 0?void 0:e.callbacks)!==null&&t!==void 0?t:{}}(0,l["default"])(Events,[{key:"on",value:function on(e,t,n){var r,i,a,o;if(!t){return this}e=e.split(Events.eventSplitter);this.callbacks||(this.callbacks={});var s=this.callbacks;while(r=e.shift()){o=s[r];i=o?o.tail:{};i.next=a={};i.context=n;i.callback=t;s[r]={tail:a,next:o?o.next:i}}return this}},{key:"once",value:function once(e,t,n){var r=this;var i=function wrapper(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++){a[o]=arguments[o]}t.apply(r,a);r.off(e,wrapper,n)};this.on(e,i,n);return this}},{key:"off",value:function off(e,t,n){var r,i,a,o,s,l;if(!(i=this.callbacks)){return this}if(!(e||t||n)){delete this.callbacks;return this}e=e?e.split(Events.eventSplitter):Object.keys(i);while(r=e.shift()){a=i[r];delete i[r];if(!a||!(t||n)){continue}o=a.tail;while((a=a.next)!==o){s=a.callback;l=a.context;if(t&&s!==t||n&&l!==n){this.on(r,s,l)}}}return this}},{key:"trigger",value:function trigger(e){var t,n,r,i;if(!(r=this.callbacks)){return this}e=e.split(Events.eventSplitter);var a=[].slice.call(arguments,1);while(t=e.shift()){if(n=r[t]){i=n.tail;while((n=n.next)!==i){n.callback.apply(n.context||this,a)}}}return this}}]);return Events}();y.eventSplitter=",";function isFunction(e){return typeof e==="function"}var _=function isWebPlatform(){return false||"mini"==="web"};var k;(function(e){e[e["SINGLE"]=0]="SINGLE";e[e["MULTI"]=1]="MULTI";e[e["WATERFALL"]=2]="WATERFALL"})(k||(k={}));var S={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 w=function(e){(0,a["default"])(TaroHooks,e);var t=(0,o["default"])(TaroHooks);function TaroHooks(e,n){var r;(0,s["default"])(this,TaroHooks);r=t.call(this,n);r.hooks=e;for(var i in e){var a=e[i].initial;if(isFunction(a)){r.on(i,a)}}return r}(0,l["default"])(TaroHooks,[{key:"tapOneOrMany",value:function tapOneOrMany(e,t){var n=this;var r=isFunction(t)?[t]:t;r.forEach((function(t){return n.on(e,t)}))}},{key:"tap",value:function tap(e,t){var n=this.hooks;var r=n[e],i=r.type,a=r.initial;if(i===k.SINGLE){this.off(e);this.on(e,isFunction(t)?t:t[t.length-1])}else{a&&this.off(e,a);this.tapOneOrMany(e,t)}}},{key:"call",value:function call(e){var t;var n=this.hooks[e];if(!n)return;var r=n.type;var i=this.callbacks;if(!i)return;var a=i[e];if(a){var o=a.tail;var s=a.next;for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++){u[c-1]=arguments[c]}var d=u;var f;while(s!==o){f=(t=s.callback)===null||t===void 0?void 0:t.apply(s.context||this,d);if(r===k.WATERFALL){var v=[f];d=v}s=s.next}return f}}},{key:"isExist",value:function isExist(e){var t;return Boolean((t=this.callbacks)===null||t===void 0?void 0:t[e])}}]);return TaroHooks}(y);new w({getMiniLifecycle:TaroHook(k.SINGLE,(function(e){return e})),getMiniLifecycleImpl:TaroHook(k.SINGLE,(function(){return this.call("getMiniLifecycle",S)})),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){var t=new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]);return t.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]: "+(e===null||e===void 0?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 T={WEAPP:"WEAPP",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",WEB:"WEB",RN:"RN",HARMONY:"HARMONY",QUICKAPP:"QUICKAPP"};var P=_();function getEnv(){if(true){return T.WEAPP}else{}}var E=function(){function Chain(e,t,n){(0,s["default"])(this,Chain);this.index=n||0;this.requestParams=e;this.interceptors=t||[]}(0,l["default"])(Chain,[{key:"proceed",value:function proceed(e){this.requestParams=e;if(this.index>=this.interceptors.length){throw new Error("chain 参数错误, 请勿直接修改 request.chain")}var t=this._getNextInterceptor();var n=this._getNextChain();var r=t(n);var i=r.catch((function(e){return Promise.reject(e)}));Object.keys(r).forEach((function(e){return isFunction$1(r[e])&&(i[e]=r[e])}));return i}},{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)}}]);return Chain}();var C=function(){function Link(e){(0,s["default"])(this,Link);this.taroInterceptor=e;this.chain=new E}(0,l["default"])(Link,[{key:"request",value:function request(e){var t=this.chain;var n=this.taroInterceptor;t.interceptors=t.interceptors.filter((function(e){return e!==n})).concat(n);return t.proceed((0,u["default"])({},e))}},{key:"addInterceptor",value:function addInterceptor(e){this.chain.interceptors.push(e)}},{key:"cleanInterceptors",value:function cleanInterceptors(){this.chain=new E}}]);return Link}();function interceptorify(e){return new C((function(t){return e(t.requestParams)}))}function timeoutInterceptor(e){var t=e.requestParams;var n;var r=new Promise((function(r,i){var a=setTimeout((function(){a=null;i(new Error("网络链接超时,请稍后再试!"))}),t&&t.timeout||6e4);n=e.proceed(t);n.then((function(e){if(!a)return;clearTimeout(a);r(e)})).catch((function(e){a&&clearTimeout(a);i(e)}))}));if(!isUndefined(n)&&isFunction$1(n.abort))r.abort=n.abort;return r}function logInterceptor(e){var t=e.requestParams;var n=t.method,r=t.data,i=t.url;console.log("http ".concat(n||"GET"," --\x3e ").concat(i," data: "),r);var a=e.proceed(t);var o=a.then((function(e){console.log("http <-- ".concat(i," result:"),e);return e}));if(isFunction$1(a.abort))o.abort=a.abort;return o}var I=Object.freeze({__proto__:null,timeoutInterceptor:timeoutInterceptor,logInterceptor:logInterceptor});function Behavior(e){return e}function getPreload(e){return function(t,n){e.preloadData=isObject(t)?t:(0,c["default"])({},t,n)}}var x=750;var j={640:2.34/2,750:1,828:1.81/2};var O=20;var N=5;var R="rpx";function getInitPxTransform(e){return function(t){var n=t.designWidth,r=n===void 0?x:n,i=t.deviceRatio,a=i===void 0?j:i,o=t.baseFontSize,s=o===void 0?O:o,l=t.targetUnit,u=l===void 0?R:l,c=t.unitPrecision,d=c===void 0?N:c;e.config=e.config||{};e.config.designWidth=r;e.config.deviceRatio=a;e.config.baseFontSize=s;e.config.targetUnit=u;e.config.unitPrecision=d}}function getPxTransform(e){return function(t){var n=e.config||{};var r=n.deviceRatio||j;var i=n.baseFontSize;var a=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;return isFunction$1(n.designWidth)?n.designWidth(e):n.designWidth||x}(t);if(!(a in r)){throw new Error("deviceRatio 配置中不存在 ".concat(a," 的设置!"))}var o=~~t;var s=1/n.deviceRatio[a];switch(n.targetUnit){case"rem":s*=i*2;break;case"px":s*=2;break}var l=o/s;if(n.unitPrecision>=0&&n.unitPrecision<=100){l=Number(l.toFixed(n.unitPrecision))}return l+n.targetUnit}}var L={Behavior:Behavior,getEnv:getEnv,ENV_TYPE:T,Link:C,interceptors:I,Current:i.Current,getCurrentInstance:i.getCurrentInstance,options:i.options,nextTick:i.nextTick,eventCenter:i.eventCenter,Events:i.Events,getInitPxTransform:getInitPxTransform,interceptorify:interceptorify};L.initPxTransform=getInitPxTransform(L);L.preload=getPreload(i.Current);L.pxTransform=getPxTransform(L)},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/constants.js":function(e,t,n){"use strict";n.d(t,{IS_SCROLLING_DEBOUNCE_INTERVAL:function(){return r}});var r=200},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/dom-helpers.js":function(e,t,n){"use strict";n.d(t,{getRTLOffsetType:function(){return getRTLOffsetType}});var r=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js")["document"];var i=null;function getRTLOffsetType(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(i===null||e){var t=r.createElement("div");var n=t.style;n.width="50px";n.height="50px";n.overflow="scroll";n.direction="rtl";var a=r.createElement("div");var o=a.style;o.width="100px";o.height="100px";t.appendChild(a);r.body.appendChild(t);if(t.scrollLeft>0){i="positive-descending"}else{t.scrollLeft=1;if(t.scrollLeft===0){i="negative"}else{i="positive-ascending"}}r.body.removeChild(t);return i}return i}},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/index.js":function(e,t,n){"use strict";n.r(t);n.d(t,{VirtualList:function(){return r},default:function(){return r}});var r=false?0:n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/react/index.js")["default"]},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/list-set.js":function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var r=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");var i=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");var a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var o=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var s=n("./node_modules/@tarojs/shared/dist/shared.esm.js");var l=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/utils.js");var u=function(){function ListSet(e,t){(0,a["default"])(this,ListSet);this.props=e;this.refresh=t;this.list=[];this.defaultSize=1;this.update(e);if(this.props.unlimitedSize){this.mode="unlimited"}else if((0,s.isFunction)(this.props.itemSize)){this.mode="function"}else{this.mode="normal"}this.defaultSize=((0,s.isFunction)(this.props.itemSize)?this.props.itemSize():this.props.itemSize)||1;if(!this.isNormalMode){this.list=new Array(this.length).fill(-1)}}(0,o["default"])(ListSet,[{key:"isNormalMode",get:function get(){return this.mode==="normal"}},{key:"isFunctionMode",get:function get(){return this.mode==="function"}},{key:"isUnlimitedMode",get:function get(){return this.mode==="unlimited"}},{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;var r=(0,l.isHorizontalFunc)(this.props);var a=r?n:t;if(true&&typeof a!=="number"){console.warn("In mode ".concat(r?"horizontal, width":"vertical, height"," parameter should be a number, but got ").concat((0,i["default"])(a),"."))}return a}},{key:"update",value:function update(e){this.props=e;if(this.length>this.list.length){var t;var n=new Array(this.length-this.list.length).fill(-1);(t=this.list).push.apply(t,(0,r["default"])(n))}else if(this.length<this.list.length){this.list.length=this.length}}},{key:"setSize",value:function setSize(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.defaultSize;var n;this.list[e]=t;(n=this.refresh)===null||n===void 0?void 0:n.call(this)}},{key:"getSize",value:function getSize(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=this.props.itemSize;var n=this.list[e];if(n>=0)return n;if(this.isFunctionMode&&(0,s.isFunction)(t)){var r=t(e,this.props.itemData);this.setSize(e,r);return r}return this.defaultSize}},{key:"getOffsetSize",value:function getOffsetSize(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.list.length;if(this.isNormalMode)return t*this.defaultSize;return this.list.slice(0,t).reduce((function(t,n,r){return t+e.getSize(r)}),0)}},{key:"getSizeCount",value:function getSizeCount(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(t===0){return 0}var n=0;var r=this.list.reduce((function(r,i,a){if(n<t){n+=e.getSize(a);return++r}return r}),0);return r-1}},{key:"getStartIndex",value:function getStartIndex(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;return Math.max(0,this.getSizeCount(e)-1)}},{key:"getStopIndex",value:function getStopIndex(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?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&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(this.length===0){return[0,0,0,0]}var r=this.wrapperSize;var i=this.getStartIndex(t);var a=this.getStopIndex(r,t,i);var o=!n||e==="backward"?Math.max(1,this.overscan):1;var s=!n||e==="forward"?Math.max(1,this.overscan):1;return[Math.max(0,i-o),Math.max(0,Math.min(this.length-1,a+s)),i,a]}},{key:"getOffsetForIndexAndAlignment",value:function getOffsetForIndexAndAlignment(e,t,n){var r=this.wrapperSize;var i=this.getSize(e);var a=Math.max(0,this.getOffsetSize(this.props.itemCount)-r);var o=Math.min(a,this.getOffsetSize(e));var s=Math.max(0,this.getOffsetSize(e)-r+i);if(t==="smart"){if(n>=s-r&&n<=o+r){t="auto"}else{t="center"}}switch(t){case"start":return o;case"end":return s;case"center":{var l=Math.round(s+(o-s)/2);if(l<Math.ceil(r/2)){return 0}else if(l>a+Math.floor(r/2)){return a}else{return l}}case"auto":default:if(n>=s&&n<=o){return n}else if(n<s){return s}else{return o}}}},{key:"compareSize",value:function compareSize(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this.isNormalMode)return true;return this.getSize(e)===t}}]);return ListSet}()},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/preset.js":function(e,t,n){"use strict";n.d(t,{default:function(){return d}});var r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var a=n("./node_modules/memoize-one/dist/memoize-one.esm.js");var o=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/list-set.js");var s=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/utils.js");var l=n("./node_modules/@tarojs/components-advanced/dist/utils/math.js");var u=n("./node_modules/@tarojs/components-advanced/dist/utils/convert.js");var c=0;var d=function(){function Preset(e,t){(0,r["default"])(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,a["default"])((function(e,t,n){return{}}));this.init(this.props);this.itemList=new o["default"](e,t)}(0,i["default"])(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(c++)}},{key:"isHorizontal",get:function get(){return(0,s.isHorizontalFunc)(this.props)}},{key:"isRtl",get:function get(){return(0,s.isRtlFunc)(this.props)}},{key:"isRelative",get:function get(){return this.props.position==="relative"}},{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);this.diffList.push(e);return t.findIndex((function(t){return Math.abs(t)===Math.abs(e)}))!==-1||(0,l.isCosDistributing)(this.diffList.slice(-4))}},{key:"getItemStyle",value:function getItemStyle(e){var t=this.props,n=t.direction,r=t.itemSize,i=t.layout,a=t.shouldResetStyleCacheOnItemSizeChange;var o=this.getItemStyleCache(a?r:false,a?i:false,a?n:false);var s;var l=(0,u.convertNumber2PX)(this.itemList.getOffsetSize(e));var c=(0,u.convertNumber2PX)(this.itemList.getSize(e));var d=this.isHorizontal;var f=this.isRtl;if(o.hasOwnProperty(e)){s=Object.assign({},o[e]);if(d){s.width=c;if(!this.isRelative){if(f){s.right=l}else{s.left=l}}}else{s.height=c;if(!this.isRelative){s.top=l}}}else{if(this.isRelative){o[e]=s={height:!d?c:"100%",width:d?c:"100%"}}else{var v=d?l:0;o[e]=s={position:"absolute",left:!f?v:undefined,right:f?v:undefined,top:!d?l:0,height:!d?c:"100%",width:d?c:"100%"}}}for(var h in s){if(s.hasOwnProperty(h)){s[h]=(0,u.convertNumber2PX)(s[h])}}return s}}]);return Preset}()},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/react/index.js":function(e,t,n){"use strict";n.d(t,{default:function(){return u}});var r=n("./node_modules/@tarojs/components-advanced/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js");var i=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");var a=n("./node_modules/react/cjs/react.production.min.js");var o=n("./node_modules/@tarojs/components-advanced/dist/utils/convert.js");var s=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/react/list.js");var l=a.forwardRef((function OuterScrollView(e,t){var n=e,s=n.style,l=n.onScroll,u=n.onScrollNative,c=n.layout,d=(0,r.__rest)(n,["style","onScroll","onScrollNative","layout"]);var f=function handleScroll(e){l(Object.assign(Object.assign({},e),{currentTarget:Object.assign(Object.assign({},e.detail),{clientWidth:(0,o.convertPX2Int)(s.width),clientHeight:(0,o.convertPX2Int)(s.height)})}));if(typeof u==="function"){u(e)}};return a.createElement(i.ScrollView,Object.assign({ref:t,style:s,scrollY:c==="vertical",scrollX:c==="horizontal",onScroll:f},d))}));var u=a.forwardRef((function VirtualList(e,t){var n=e,o=n.direction,u=o===void 0?"ltr":o,c=n.innerElementType,d=c===void 0?i.View:c,f=n.itemElementType,v=f===void 0?i.View:f,h=n.initialScrollOffset,p=h===void 0?0:h,m=n.overscanCount,g=m===void 0?1:m,b=(0,r.__rest)(n,["direction","innerElementType","itemElementType","initialScrollOffset","overscanCount"]);if("children"in b){console.warn("Taro(VirtualList): children props have been deprecated. "+"Please use the item props instead.");b.item=b.children}if(b.item instanceof Array){console.warn("Taro(VirtualList): item should not be an array");b.item=b.item[0]}return a.createElement(s["default"],Object.assign(Object.assign({ref:t},b),{itemElementType:v,innerElementType:d,outerElementType:l,direction:u,initialScrollOffset:p,overscanCount:g}))}))},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/react/list.js":function(e,t,n){"use strict";n.d(t,{default:function(){return k}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");var i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");var a=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var o=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var s=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");var l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js");var u=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js");var c=n("./node_modules/@tarojs/components-advanced/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js");var d=n("./node_modules/memoize-one/dist/memoize-one.esm.js");var f=n("./node_modules/react/cjs/react.production.min.js");var v=n("./node_modules/@tarojs/components-advanced/dist/utils/convert.js");var h=n("./node_modules/@tarojs/components-advanced/dist/utils/lodash.js");var p=n("./node_modules/@tarojs/components-advanced/dist/utils/timer.js");var m=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/constants.js");var g=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/dom-helpers.js");var b=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/preset.js");var y=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/utils.js");var _=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/react/validate.js");var k=function(e){(0,l["default"])(List,e);var t=(0,u["default"])(List);function List(e){var n;(0,a["default"])(this,List);n=t.call(this,e);n.refresh=function(){if(false){}else{n.setState((function(e){var t=e.refreshCount;return{refreshCount:++t}}))}};n._outerRef=undefined;n._resetIsScrollingTimeoutId=null;n._callOnItemsRendered=(0,d["default"])((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})}));n._callOnScroll=(0,d["default"])((function(e,t,r,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r,detail:i})}));n._getSizeUploadSync=function(e,t){var r="#".concat(n.state.id,"-").concat(e);return new Promise((function(a){var o=function success(r){var i=r.width,o=r.height;var s=t?i:o;if(!n.itemList.compareSize(e,s)){n.itemList.setSize(e,s);a(n.itemList.getSize(e))}};var s=function fail(){var t=n._getRangeToRender(),a=(0,i["default"])(t,2),s=a[0],l=a[1];if(e>=s&&e<=l){setTimeout((function(){(0,y.getRectSize)(r,o,fail)}),100)}};(0,y.getRectSize)(r,o,s)}))};n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=r===void 0?n.itemList.wrapperSize:r,a=t.scrollHeight,o=t.scrollWidth,s=o===void 0?n.itemList.getOffsetSize():o,l=t.scrollTop,u=t.scrollLeft;n.preset.field={scrollHeight:a,scrollWidth:n.itemList.getOffsetSize(),scrollTop:l,scrollLeft:u,clientHeight:a,clientWidth:s};n.setState((function(e){var t=n.preset.field.scrollLeft-u;if(e.scrollOffset===u||n.preset.isShaking(t)){return null}var r=u;if(n.preset.isRtl){switch((0,g.getRTLOffsetType)()){case"negative":r=-u;break;case"positive-descending":r=s-i-u;break}}n.preset.field={scrollWidth:r};return{isScrolling:true,scrollDirection:e.scrollOffset<u?"forward":"backward",scrollOffset:r,scrollUpdateWasRequested:false}}),n._resetIsScrollingDebounced)};n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=r===void 0?n.itemList.wrapperSize:r,a=t.scrollHeight,o=a===void 0?n.itemList.getOffsetSize():a,s=t.scrollWidth,l=t.scrollTop,u=t.scrollLeft;n.setState((function(e){var t=n.preset.field.scrollTop-l;if(e.scrollOffset===l||n.preset.isShaking(t)){return null}var r=Math.max(0,Math.min(l,o-i));n.preset.field={scrollHeight:n.itemList.getOffsetSize(),scrollWidth:s,scrollTop:r,scrollLeft:u,clientHeight:i,clientWidth:s,diffOffset:n.preset.field.scrollTop-r};return{isScrolling:true,scrollDirection:e.scrollOffset<r?"forward":"backward",scrollOffset:r,scrollUpdateWasRequested:false}}),n._resetIsScrollingDebounced)};n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e;if(typeof t==="function"){t(e)}else if(t!=null&&(0,r["default"])(t)==="object"&&t.hasOwnProperty("current")){t.current=e}};n._resetIsScrollingDebounced=function(){if(n._resetIsScrollingTimeoutId!==null){(0,p.cancelTimeout)(n._resetIsScrollingTimeoutId)}n._resetIsScrollingTimeoutId=(0,p.requestTimeout)(n._resetIsScrolling,m.IS_SCROLLING_DEBOUNCE_INTERVAL)};n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null;n.setState({isScrolling:false},(function(){n.preset.getItemStyleCache(-1,null)}))};n.preset=new b["default"](e,n.refresh);n.itemList=n.preset.itemList;n.state={id:n.props.id||n.preset.id,instance:(0,s["default"])(n),isScrolling:false,scrollDirection:"forward",scrollOffset:typeof n.props.initialScrollOffset==="number"?n.props.initialScrollOffset:0,scrollUpdateWasRequested:false,refreshCount:0};return n}(0,o["default"])(List,[{key:"_callPropsCallbacks",value:function _callPropsCallbacks(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(typeof this.props.onItemsRendered==="function"){if(this.props.itemCount>0){if(t&&t.itemCount!==this.props.itemCount){var r=this._getRangeToRender(),a=(0,i["default"])(r,4),o=a[0],s=a[1],l=a[2],u=a[3];this._callOnItemsRendered(o,s,l,u)}}}if(typeof this.props.onScroll==="function"){if(!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(){var t=e._getRangeToRender(),n=(0,i["default"])(t,2),r=n[0],a=n[1];var o=e.preset.isHorizontal;for(var s=r;s<=a;s++){e._getSizeUploadSync(s,o)}}),0)}},{key:"_getRangeToRender",value:function _getRangeToRender(){return this.itemList.getRangeToRender(this.state.scrollDirection,this.state.scrollOffset,this.state.isScrolling)}},{key:"scrollTo",value:function scrollTo(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=this.props.enhanced;e=Math.max(0,e);if(this.state.scrollOffset===e)return;if(t){var n=this.preset.isHorizontal;var r={animated:true,duration:500};if(n){r.left=e}else{r.top=e}return(0,y.getScrollViewContextNode)("#".concat(this.state.id)).then((function(e){return e.scrollTo(r)}))}this.setState((function(t){if(t.scrollOffset===e){return null}return{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:true}}),this._resetIsScrollingDebounced)}},{key:"scrollToItem",value:function scrollToItem(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"auto";var n=this.props.itemCount;var r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));this.scrollTo(this.itemList.getOffsetForIndexAndAlignment(e,t,r))}},{key:"componentDidMount",value:function componentDidMount(){var e=this.props.initialScrollOffset;if(typeof e==="number"&&this._outerRef!=null){var t=this._outerRef;if(this.preset.isHorizontal){t.scrollLeft=e}else{t.scrollTop=e}}this._callPropsCallbacks()}},{key:"componentDidUpdate",value:function componentDidUpdate(e,t){var n=this.state,r=n.scrollOffset,i=n.scrollUpdateWasRequested;this.preset.update(this.props);if(i&&this._outerRef!=null){var a=this._outerRef;if(this.preset.isHorizontal){if(this.preset.isRtl){switch((0,g.getRTLOffsetType)()){case"negative":a.scrollLeft=-r;break;case"positive-ascending":a.scrollLeft=r;break;default:a.scrollLeft=a.scrollWidth-a.clientWidth-r;break}}else{a.scrollLeft=r}}else{a.scrollTop=r}}this._callPropsCallbacks(e,t)}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this._resetIsScrollingTimeoutId!==null){(0,p.cancelTimeout)(this._resetIsScrollingTimeoutId)}}},{key:"render",value:function render(){var e=this;var t=(0,h.omit)(this.props,["innerElementType","innerTagName","itemElementType","itemTagName","outerElementType","outerTagName","position"]),n=t.className,r=t.direction,a=t.height,o=t.innerRef,s=t.item,l=t.itemCount,u=t.itemData,d=t.itemKey,p=d===void 0?y.defaultItemKey:d,m=t.layout,g=t.style,b=t.useIsScrolling,_=t.width,k=t.enhanced,S=k===void 0?false:k,w=t.renderTop,T=t.renderBottom,P=(0,c.__rest)(t,["className","direction","height","innerRef","item","itemCount","itemData","itemKey","layout","style","useIsScrolling","width","enhanced","renderTop","renderBottom"]);var E=this.state,C=E.id,I=E.isScrolling,x=E.scrollOffset,j=E.scrollUpdateWasRequested;var O=this.preset.isHorizontal;var N=this.preset.placeholderCount;var R=O?this._onScrollHorizontal:this._onScrollVertical;var L=this._getRangeToRender(),A=(0,i["default"])(L,2),F=A[0],M=A[1];var U=[];if(l>0){var B=F<N?F:N;U.push(new Array(B).fill(-1).map((function(t,n){return f.createElement(e.preset.itemTagName,{key:p(n+F-B,u),style:{display:"none"}})})));for(var D=F;D<=M;D++){var G=this.preset.getItemStyle(D);U.push(f.createElement(this.preset.itemTagName,{key:p(D,u),style:G},f.createElement(s,{id:"".concat(C,"-").concat(D),data:u,index:D,isScrolling:b?I:undefined})))}var H=l-M;H=H>0?H:0;var W=H<N?H:N;U.push(new Array(W).fill(-1).map((function(t,n){return f.createElement(e.preset.itemTagName,{key:p(1+n+M,u),style:{display:"none"}})})))}var z=(0,v.convertNumber2PX)(this.itemList.getOffsetSize());var V=Object.assign(Object.assign({},P),{id:C,className:n,onScroll:R,ref:this._outerRefSetter,layout:m,enhanced:S,style:Object.assign({position:"relative",height:(0,v.convertNumber2PX)(a),width:(0,v.convertNumber2PX)(_),overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},g)});if(!S){if(O){V.scrollLeft=j?x:this.preset.field.scrollLeft}else{V.scrollTop=j?x:this.preset.field.scrollTop}}if(this.preset.isRelative){var q=(0,v.convertNumber2PX)(this.itemList.getOffsetSize(F));return f.createElement(this.preset.outerTagName,V,w,f.createElement(this.preset.itemTagName,{key:"".concat(C,"-pre"),id:"".concat(C,"-pre"),style:{height:O?"100%":q,width:!O?"100%":q}}),f.createElement(this.preset.innerTagName,{ref:o,key:"".concat(C,"-inner"),id:"".concat(C,"-inner"),style:{pointerEvents:I?"none":"auto",position:"relative"}},U),T)}else{return f.createElement(this.preset.outerTagName,V,w,f.createElement(this.preset.innerTagName,{ref:o,key:"".concat(C,"-inner"),id:"".concat(C,"-inner"),style:{height:O?"100%":z,pointerEvents:I?"none":"auto",position:"relative",width:!O?"100%":z}},U),T)}}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(e,t){return(0,_.validateListProps)(e,t)}}]);return List}(f.PureComponent);k.defaultProps={direction:"ltr",itemData:undefined,layout:"vertical",overscanCount:2,useIsScrolling:false,shouldResetStyleCacheOnItemSizeChange:true}},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/react/validate.js":function(e,t,n){"use strict";n.d(t,{validateListProps:function(){return s}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");var i=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js")["window"];var a=null;var o=null;if(true){if(typeof i!=="undefined"&&typeof i.WeakSet!=="undefined"){a=new WeakSet;o=new WeakSet}}var s=function validateListProps(e,t){var n=e.item,i=e.direction,s=e.height,l=e.layout,u=e.itemTagName,c=e.innerTagName,d=e.outerTagName,f=e.width,v=e.itemSize;var h=t.instance;if(true){if(!["number","function"].includes((0,r["default"])(v))){throw Error('An invalid "itemSize" prop has been specified. '+"Value should be a number or function. "+'"'.concat(v===null?"null":(0,r["default"])(v),'" was specified.'))}}if(true){if(c!=null||d!=null||u!=null){if(o&&!o.has(h)){o.add(h);console.warn("The itemTagName、innerTagName and outerTagName props have been deprecated. "+"Please use the itemElementType、innerElementType and outerElementType props instead.")}}var p=i==="horizontal"||l==="horizontal";switch(i){case"horizontal":case"vertical":if(a&&!a.has(h)){a.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(l){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. '+'Value should be either "horizontal" or "vertical". '+'"'.concat(l,'" was specified.'))}if(n==null){throw Error('An invalid "item" prop has been specified. '+"Value should be a React component. "+'"'.concat(n===null?"null":(0,r["default"])(n),'" was specified.'))}if(p&&typeof f!=="number"){throw Error('An invalid "width" prop has been specified. '+"Horizontal lists must specify a number for width. "+'"'.concat(f===null?"null":(0,r["default"])(f),'" was specified.'))}else if(!p&&typeof s!=="number"){throw Error('An invalid "height" prop has been specified. '+"Vertical lists must specify a number for height. "+'"'.concat(s===null?"null":(0,r["default"])(s),'" was specified.'))}}return null}},"./node_modules/@tarojs/components-advanced/dist/components/virtual-list/utils.js":function(e,t,n){"use strict";n.d(t,{defaultItemKey:function(){return s},getRectSize:function(){return getRectSize},getScrollViewContextNode:function(){return getScrollViewContextNode},isHorizontalFunc:function(){return isHorizontalFunc},isRtlFunc:function(){return isRtlFunc}});var r=n("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");var i=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");var a=n("./node_modules/@tarojs/taro/index.js");var o=n.n(a);var s=function defaultItemKey(e,t){return e};function isHorizontalFunc(e){var t=e.direction,n=e.layout;return t==="horizontal"||n==="horizontal"}function isRtlFunc(e){var t=e.direction;return t==="rtl"}function getRectSize(e,t,n){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:500;var i=(0,a.createSelectorQuery)();try{i.select(e).boundingClientRect((function(e){if(e){t===null||t===void 0?void 0:t(e)}else{n===null||n===void 0?void 0:n()}})).exec()}catch(i){setTimeout((function(){getRectSize(e,t,n,r)}),r)}}function getScrollViewContextNode(e){return _getScrollViewContextNode.apply(this,arguments)}function _getScrollViewContextNode(){_getScrollViewContextNode=(0,i["default"])((0,r["default"])().mark((function _callee(e){var t;return(0,r["default"])().wrap((function _callee$(n){while(1)switch(n.prev=n.next){case 0:t=(0,a.createSelectorQuery)();return 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)})));return _getScrollViewContextNode.apply(this,arguments)}},"./node_modules/@tarojs/components-advanced/dist/node_modules/.pnpm/registry.npmjs.org_tslib@2.5.0/node_modules/tslib/tslib.es6.js":function(e,t,n){"use strict";n.d(t,{__rest:function(){return __rest}});var r=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");var i=function extendStatics(e,t){i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return i(e,t)};function __extends(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}var a=function __assign(){a=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return a.apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n}function __decorate(e,t,n,i){var a=arguments.length,o=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if((typeof Reflect==="undefined"?"undefined":(0,r["default"])(Reflect))==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)if(s=e[l])o=(a<3?s(o):a>3?s(t,n,o):s(t,n))||o;return a>3&&o&&Object.defineProperty(t,n,o),o}function __param(e,t){return function(n,r){t(n,r,e)}}function __esDecorate(e,t,n,i,a,o){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var s=i.kind,l=s==="getter"?"get":s==="setter"?"set":"value";var u=!t&&e?i["static"]?e:e.prototype:null;var c=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{});var d,f=false;for(var v=n.length-1;v>=0;v--){var h={};for(var p in i)h[p]=p==="access"?{}:i[p];for(var p in i.access)h.access[p]=i.access[p];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var m=(0,n[v])(s==="accessor"?{get:c.get,set:c.set}:c[l],h);if(s==="accessor"){if(m===void 0)continue;if(m===null||(0,r["default"])(m)!=="object")throw new TypeError("Object expected");if(d=accept(m.get))c.get=d;if(d=accept(m.set))c.set=d;if(d=accept(m.init))a.push(d)}else if(d=accept(m)){if(s==="field")a.push(d);else c[l]=d}}if(u)Object.defineProperty(u,i.name,c);f=true}function __runInitializers(e,t,n){var r=arguments.length>2;for(var i=0;i<t.length;i++){n=r?t[i].call(e,n):t[i].call(e)}return r?n:void 0}function __propKey(e){return(0,r["default"])(e)==="symbol"?e:"".concat(e)}function __setFunctionName(e,t,n){if((0,r["default"])(t)==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})}function __metadata(e,t){if((typeof Reflect==="undefined"?"undefined":(0,r["default"])(Reflect))==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function __awaiter(e,t,n,r){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n={label:0,sent:function sent(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}var o=Object.create?function(e,t,n,r){if(r===undefined)r=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function get(){return t[n]}}}Object.defineProperty(e,r,i)}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]};function __exportStar(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)}function __values(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function next(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{while((t===void 0||t-- >0)&&!(i=r.next()).done)a.push(i.value)}catch(e){o={error:e}}finally{try{if(i&&!i.done&&(n=r["return"]))n.call(r)}finally{if(o)throw o.error}}return a}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function __spreadArray(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++){if(a||!(r in t)){if(!a)a=Array.prototype.slice.call(t,0,r);a[r]=t[r]}}return e.concat(a||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(e){if(r[e])i[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||resume(e,t)}))}}function resume(e,t){try{step(r[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}}function __asyncDelegator(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:__await(e[r](t)),done:false}:i?i(t):t}:i}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(r,i){n=e[t](n),settle(r,i,n.done,n.value)}))}}function settle(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function __makeTemplateObject(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e}var s=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);s(t,e);return t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function __classPrivateFieldSet(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function __classPrivateFieldIn(e,t){if(t===null||(0,r["default"])(t)!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)}},"./node_modules/@tarojs/components-advanced/dist/utils/convert.js":function(e,t,n){"use strict";n.d(t,{convertNumber2PX:function(){return convertNumber2PX},convertPX2Int:function(){return convertPX2Int}});function convertPX2Int(e){if(typeof e==="string"){var t=e.toLowerCase();if(/px$/.test(t)){return Number(t.replace(/px$/,""))}}return e}function convertNumber2PX(e){if(!e&&e!==0)return"";return typeof e==="number"?e+"px":e}},"./node_modules/@tarojs/components-advanced/dist/utils/lodash.js":function(e,t,n){"use strict";n.d(t,{omit:function(){return omit}});function omit(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=Object.assign({},e);t.forEach((function(e){delete n[e]}));return n}},"./node_modules/@tarojs/components-advanced/dist/utils/math.js":function(e,t,n){"use strict";n.d(t,{isCosDistributing:function(){return isCosDistributing}});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)]}function isCosDistributing(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=0;for(var r=0;r<e.length-1;r++){if(getMiddleNumber(e[r],t,e[r+1])===t){n++}}return n===e.length-1}},"./node_modules/@tarojs/components-advanced/dist/utils/timer.js":function(e,t,n){"use strict";n.d(t,{cancelTimeout:function(){return cancelTimeout},requestTimeout:function(){return requestTimeout}});var r=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");function cancelTimeout(e){(0,r.cancelAnimationFrame)(e.id)}function requestTimeout(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=(0,r.now)();var i={id:(0,r.requestAnimationFrame)(tick)};function tick(){if((0,r.now)()-n>=t){e.call(null)}else{i.id=(0,r.requestAnimationFrame)(tick)}}return i}},"./node_modules/@tarojs/components/virtual-list/index.js":function(e,t,n){var r=n("./node_modules/@tarojs/components-advanced/dist/components/virtual-list/index.js");e.exports=r.default;e.exports["default"]=e.exports},"./node_modules/@tarojs/plugin-framework-react/dist/runtime.js":function(e,t,n){"use strict";n.d(t,{createReactApp:function(){return createReactApp}});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");var i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");var a=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var s=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var l=n("./node_modules/@babel/runtime/helpers/esm/inherits.js");var u=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js");var c=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");var d=n("./node_modules/@tarojs/shared/dist/shared.esm.js");var f=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");var v={PageContext:d.EMPTY_OBJ,R:d.EMPTY_OBJ};var h="taro-app";function isClassComponent(e,t){var n;var r=t.prototype;if((n=t.displayName)===null||n===void 0?void 0:n.includes("Connect"))return false;return(0,d.isFunction)(t.render)||!!(r===null||r===void 0?void 0:r.isReactComponent)||r instanceof e.Component}function ensureIsArray(e){if((0,d.isArray)(e)){return e}else{return e?[e]:[]}}function setDefaultDescriptor(e){e.writable=true;e.enumerable=true;return e}function setRouterParams(e){f.Current.router=Object.assign({params:e===null||e===void 0?void 0:e.query},e)}var p=function createTaroHook(e){return function(t){var n=v.R,r=v.PageContext;var i=n.useContext(r)||h;var a=n.useRef();var o=n.useRef(t);if(o.current!==t)o.current=t;n.useLayoutEffect((function(){var t=a.current=(0,f.getPageInstance)(i);var n=false;if(!t){n=true;a.current=Object.create(null);t=a.current}var r=function callback(){return o.current.apply(o,arguments)};if((0,d.isFunction)(t[e])){t[e]=[t[e],r]}else{t[e]=[].concat((0,c["default"])(t[e]||[]),[r])}if(n){(0,f.injectPageInstance)(t,i)}return function(){var t=a.current;if(!t)return;var n=t[e];if(n===r){t[e]=undefined}else if((0,d.isArray)(n)){t[e]=n.filter((function(e){return e!==r}))}a.current=undefined}}),[])}};var m=p("componentDidHide");var g=p("componentDidShow");var b=p("onError");var y=p("onUnhandledRejection");var _=p("onLaunch");var k=p("onPageNotFound");var S=p("onLoad");var w=p("onPageScroll");var T=p("onPullDownRefresh");var P=p("onPullIntercept");var E=p("onReachBottom");var C=p("onResize");var I=p("onUnload");var x=p("onAddToFavorites");var j=p("onOptionMenuClick");var O=p("onSaveExitState");var N=p("onShareAppMessage");var R=p("onShareTimeline");var L=p("onTitleClick");var A=p("onReady");var F=function useRouter(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=v.R;return e?f.Current.router:t.useMemo((function(){return f.Current.router}),[])};var M=p("onTabItemTap");var U=function useScope(){return undefined};var B=Object.freeze({__proto__:null,useAddToFavorites:x,useDidHide:m,useDidShow:g,useError:b,useLaunch:_,useLoad:S,useOptionMenuClick:j,usePageNotFound:k,usePageScroll:w,usePullDownRefresh:T,usePullIntercept:P,useReachBottom:E,useReady:A,useResize:C,useRouter:F,useSaveExitState:O,useScope:U,useShareAppMessage:N,useShareTimeline:R,useTabItemTap:M,useTitleClick:L,useUnhandledRejection:y,useUnload:I});var D;var G;var H;var W=(0,f.incrementId)();var z=(0,d.isWebPlatform)();function setReconciler(e){d.hooks.tap("getLifecycle",(function(e,t){t=t.replace(/^on(Show|Hide)$/,"componentDid$1");return e[t]}));d.hooks.tap("modifyMpEvent",(function(e){Object.defineProperty(e,"type",{value:e.type.replace(/-/g,"")})}));d.hooks.tap("batchedEventUpdates",(function(t){e.unstable_batchedUpdates(t)}));d.hooks.tap("mergePageInstance",(function(e,t){if(!e||!t)return;if("constructor"in e)return;Object.keys(e).forEach((function(n){var r=e[n];var i=ensureIsArray(t[n]);t[n]=i.concat(r)}))}));if(z){d.hooks.tap("createPullDownComponent",(function(e,t,n,r){var i=isClassComponent(n,e);return n.forwardRef((function(t,n){var a=Object.assign({},t);var o=i?{ref:n}:{forwardedRef:n,reactReduxForwardedRef:n};return D(r||"taro-pull-to-refresh",null,D(e,Object.assign(Object.assign({},a),o)))}))}));d.hooks.tap("getDOMNode",(function(t){return e.findDOMNode(t)}))}}function connectReactPage(e,t){return function(n){var r=isClassComponent(e,n);var i=function inject(e){return e&&(0,f.injectPageInstance)(e,t)};var a=r?{ref:i}:{forwardedRef:i,reactReduxForwardedRef:i};if(v.PageContext===d.EMPTY_OBJ){v.PageContext=e.createContext("")}return function(e){(0,l["default"])(PageWrapper,e);var r=(0,u["default"])(PageWrapper);function PageWrapper(){var e;(0,o["default"])(this,PageWrapper);e=r.apply(this,arguments);e.state={hasError:false};return e}(0,s["default"])(PageWrapper,[{key:"componentDidCatch",value:function componentDidCatch(e,t){if(true){console.warn(e);console.error(t.componentStack)}}},{key:"render",value:function render(){var e=this.state.hasError?[]:D(v.PageContext.Provider,{value:t},D(n,Object.assign(Object.assign({},this.props),a)));if(z){return D("div",{id:t,className:"taro_page"},e)}else{return D("root",{id:t},e)}}}],[{key:"getDerivedStateFromError",value:function getDerivedStateFromError(e){var t,n;(n=(t=f.Current.app)===null||t===void 0?void 0:t.onError)===null||n===void 0?void 0:n.call(t,e.message+e.stack);return{hasError:true}}}]);return PageWrapper}(e.Component)}}function createReactApp(e,t,n,c){var p;if(true){(0,d.ensure)(!!n,"构建 React/Nerv 项目请把 process.env.FRAMEWORK 设置为 'react'/'nerv' ")}v.R=t;D=t.createElement;G=n;H=t.Fragment;var m=t.createRef();var g=isClassComponent(t,e);var b;var y;var _=new Promise((function(e){return y=e}));setReconciler(G);function getAppInstance(){return m.current}function waitAppWrapper(e){b?e():_.then((function(){return e()}))}function renderReactRoot(){var e,n;var r="app";if(z){r=(c===null||c===void 0?void 0:c.appId)||r}var i=f.document.getElementById(r);if((t.version||"").startsWith("18")){var a=G.createRoot(i);(e=a.render)===null||e===void 0?void 0:e.call(a,D(k))}else{(n=G.render)===null||n===void 0?void 0:n.call(G,D(k),i)}}var k=function(n){(0,l["default"])(AppWrapper,n);var r=(0,u["default"])(AppWrapper);function AppWrapper(e){var t;(0,o["default"])(this,AppWrapper);t=r.call(this,e);t.pages=[];t.elements=[];b=(0,a["default"])(t);y((0,a["default"])(t));return t}(0,s["default"])(AppWrapper,[{key:"mount",value:function mount(e,n,r){var i=connectReactPage(t,n)(e);var a=n+W();var o=function page(){return D(i,{key:a,tid:n})};this.pages.push(o);this.forceUpdate(r)}},{key:"unmount",value:function unmount(e,t){var n=this.elements;var r=n.findIndex((function(t){return t.props.tid===e}));n.splice(r,1);this.forceUpdate(t)}},{key:"render",value:function render(){var t=this.pages,n=this.elements;while(t.length>0){var r=t.pop();n.push(r())}var i=null;if(g){i={ref:m}}return D(e,i,z?D(H!==null&&H!==void 0?H:"div",null,n.slice()):n.slice())}}]);return AppWrapper}(t.Component);if(!z){renderReactRoot()}var S=(0,i["default"])(d.hooks.call("getMiniLifecycleImpl").app,3),w=S[0],T=S[1],P=S[2];var E=Object.create({render:function render(e){b.forceUpdate(e)},mount:function mount(e,t,n){if(b){b.mount(e,t,n)}else{_.then((function(r){return r.mount(e,t,n)}))}},unmount:function unmount(e,t){b.unmount(e,t)}},(p={config:setDefaultDescriptor({configurable:true,value:c})},(0,r["default"])(p,w,setDefaultDescriptor({value:function value(e){var t=this;setRouterParams(e);if(z){renderReactRoot()}var n=function onLaunch(){var n;var r=getAppInstance();t.$app=r;if(r){if(r.taroGlobalData){var i=r.taroGlobalData;var a=Object.keys(i);var o=Object.getOwnPropertyDescriptors(i);a.forEach((function(e){Object.defineProperty(t,e,{configurable:true,enumerable:true,get:function get(){return i[e]},set:function set(t){i[e]=t}})}));Object.defineProperties(t,o)}(n=r.onLaunch)===null||n===void 0?void 0:n.call(r,e)}triggerAppHook("onLaunch",e)};waitAppWrapper(n)}})),(0,r["default"])(p,T,setDefaultDescriptor({value:function value(e){setRouterParams(e);var t=function onShow(){var t;var n=getAppInstance();(t=n===null||n===void 0?void 0:n.componentDidShow)===null||t===void 0?void 0:t.call(n,e);triggerAppHook("onShow",e)};waitAppWrapper(t)}})),(0,r["default"])(p,P,setDefaultDescriptor({value:function value(){var e=function onHide(){var e;var t=getAppInstance();(e=t===null||t===void 0?void 0:t.componentDidHide)===null||e===void 0?void 0:e.call(t);triggerAppHook("onHide")};waitAppWrapper(e)}})),(0,r["default"])(p,"onError",setDefaultDescriptor({value:function value(e){var t=function onError(){var t;var n=getAppInstance();(t=n===null||n===void 0?void 0:n.onError)===null||t===void 0?void 0:t.call(n,e);triggerAppHook("onError",e);if(true&&(e===null||e===void 0?void 0:e.includes("Minified React error"))){console.warn("React 出现报错,请打开编译配置 mini.debugReact 查看报错详情:https://docs.taro.zone/docs/config-detail#minidebugreact")}};waitAppWrapper(t)}})),(0,r["default"])(p,"onUnhandledRejection",setDefaultDescriptor({value:function value(e){var t=function onUnhandledRejection(){var t;var n=getAppInstance();(t=n===null||n===void 0?void 0:n.onUnhandledRejection)===null||t===void 0?void 0:t.call(n,e);triggerAppHook("onUnhandledRejection",e)};waitAppWrapper(t)}})),(0,r["default"])(p,"onPageNotFound",setDefaultDescriptor({value:function value(e){var t=function onPageNotFound(){var t;var n=getAppInstance();(t=n===null||n===void 0?void 0:n.onPageNotFound)===null||t===void 0?void 0:t.call(n,e);triggerAppHook("onPageNotFound",e)};waitAppWrapper(t)}})),p));function triggerAppHook(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var i=(0,f.getPageInstance)(h);if(i){var a=getAppInstance();var o=d.hooks.call("getLifecycle",i,e);if(Array.isArray(o)){o.forEach((function(e){return e.apply(a,n)}))}}}f.Current.app=E;return E}var V=(0,f.incrementId)();var q;var Q;function initNativeComponentEntry(e,t){var n=function(t){(0,l["default"])(NativeComponentWrapper,t);var n=(0,u["default"])(NativeComponentWrapper);function NativeComponentWrapper(){var t;(0,o["default"])(this,NativeComponentWrapper);t=n.apply(this,arguments);t.root=e.createRef();t.ctx=t.props.getCtx();return t}(0,s["default"])(NativeComponentWrapper,[{key:"componentDidMount",value:function componentDidMount(){this.ctx.component=this;var e=this.root.current;e.ctx=this.ctx;e.performUpdate(true)}},{key:"render",value:function render(){return q("root",{ref:this.root},this.props.renderComponent(this.ctx))}}]);return NativeComponentWrapper}(e.Component);var r=function(t){(0,l["default"])(Entry,t);var r=(0,u["default"])(Entry);function Entry(){var e;(0,o["default"])(this,Entry);e=r.apply(this,arguments);e.state={components:[]};return e}(0,s["default"])(Entry,[{key:"componentDidMount",value:function componentDidMount(){f.Current.app=this}},{key:"mount",value:function mount(t,r,i){var a=isClassComponent(e,t);var o=function inject(e){return e&&(0,f.injectPageInstance)(e,r)};var s=a?{ref:o}:{forwardedRef:o,reactReduxForwardedRef:o};if(v.PageContext===d.EMPTY_OBJ){v.PageContext=e.createContext("")}var l={compId:r,element:q(n,{key:r,getCtx:i,renderComponent:function renderComponent(e){return q(v.PageContext.Provider,{value:r},q(t,Object.assign(Object.assign(Object.assign({},(e.data||(e.data={})).props),s),{$scope:e})))}})};this.setState({components:[].concat((0,c["default"])(this.state.components),[l])})}},{key:"unmount",value:function unmount(e){var t=this.state.components;var n=t.findIndex((function(t){return t.compId===e}));var r=[].concat((0,c["default"])(t.slice(0,n)),(0,c["default"])(t.slice(n+1)));this.setState({components:r},(function(){(0,f.removePageInstance)(e)}))}},{key:"render",value:function render(){var e=this.state.components;return e.map((function(e){var t=e.element;return t}))}}]);return Entry}(e.Component);setReconciler(t);var i=f.document.getElementById("app");t.render(q(r,{}),i)}function createNativeComponentConfig(e,t,n,r){var i,a;v.R=t;q=t.createElement;Q=n;setReconciler(Q);var o={options:r,properties:{props:{type:null,value:null,observer:function observer(e,t){var n;t&&((n=this.component)===null||n===void 0?void 0:n.forceUpdate())}}},created:function created(){if(!f.Current.app){initNativeComponentEntry(t,Q)}},attached:function attached(){var t=this;var n=this.compId=V();setCurrent(n);this.config=r;f.Current.app.mount(e,n,(function(){return t}))},ready:function ready(){(0,f.safeExecute)(this.compId,"onReady")},detached:function detached(){resetCurrent();f.Current.app.unmount(this.compId)},pageLifetimes:{show:function show(e){(0,f.safeExecute)(this.compId,"onShow",e)},hide:function hide(){(0,f.safeExecute)(this.compId,"onHide")}},methods:{eh:f.eventHandler,onLoad:function onLoad(e){(0,f.safeExecute)(this.compId,"onLoad",e)},onUnload:function onUnload(){(0,f.safeExecute)(this.compId,"onUnload")}}};function resetCurrent(){f.Current.page=null;f.Current.router=null}function setCurrent(e){var t=getCurrentPages();var n=t[t.length-1];if(f.Current.page===n)return;f.Current.page=n;var r=n.route||n.__route__;var i={params:n.options||{},path:(0,f.addLeadingSlash)(r),$taroPath:e,onReady:"",onHide:"",onShow:""};f.Current.router=i;if(!n.options){Object.defineProperty(n,"options",{enumerable:true,configurable:true,get:function get(){return this._optionsValue},set:function set(e){i.params=e;this._optionsValue=e}})}}if(e.onShareAppMessage||((i=e.prototype)===null||i===void 0?void 0:i.onShareAppMessage)||e.enableShareAppMessage){o.methods.onShareAppMessage=function(e){var t=e===null||e===void 0?void 0:e.target;if(t){var n=t.id;var r=f.document.getElementById(n);if(r){t.dataset=r.dataset}}return(0,f.safeExecute)(this.compId,"onShareAppMessage",e)}}if(e.onShareTimeline||((a=e.prototype)===null||a===void 0?void 0:a.onShareTimeline)||e.enableShareTimeline){o.methods.onShareTimeline=function(){return(0,f.safeExecute)(this.compId,"onShareTimeline")}}return o}d.hooks.tap("initNativeApi",(function(e){for(var t in B){e[t]=B[t]}}));if(false){var $,K,Y}},"./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js":function(e,t,n){"use strict";n.d(t,{Block:function(){return U},Button:function(){return l},Canvas:function(){return A},CustomWrapper:function(){return H},Image:function(){return N},Input:function(){return f},Navigator:function(){return x},Picker:function(){return h},RichText:function(){return o},ScrollView:function(){return E},Swiper:function(){return C},SwiperItem:function(){return I},Switch:function(){return _},Text:function(){return s},Textarea:function(){return S},View:function(){return r}});var r="view";var i="icon";var a="progress";var o="rich-text";var s="text";var l="button";var u="checkbox";var c="checkbox-group";var d="form";var f="input";var v="label";var h="picker";var p="picker-view";var m="picker-view-column";var g="radio";var b="radio-group";var y="slider";var _="switch";var k="cover-image";var S="textarea";var w="cover-view";var T="movable-area";var P="movable-view";var E="scroll-view";var C="swiper";var I="swiper-item";var x="navigator";var j="audio";var O="camera";var N="image";var R="live-player";var L="video";var A="canvas";var F="ad";var M="web-view";var U="block";var B="map";var D="slot";var G="native-slot";var H="custom-wrapper";var W="editor";var z="match-media";var V="functional-page-navigator";var q="live-pusher";var Q="official-account";var $="open-data";var K="navigation-bar";var Y="page-meta";var J="voip-room";var X="ad-custom";var Z="page-container";var ee="share-element";var te="keyboard-accessory";var ne="root-portal";var re="channel-live";var ie="channel-video";var ae="list-view";var oe="grid-view";var se="sticky-header";var le="sticky-section"},"./node_modules/@tarojs/plugin-platform-weapp/dist/runtime.js":function(e,t,n){"use strict";var r=n("./node_modules/@tarojs/shared/dist/shared.esm.js");var i=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"]);function initNativeApi(e){(0,r.processApis)(e,wx,{needPromiseApis:i,modifyApis:function modifyApis(e){e.delete("lanDebug")},transformMeta:function transformMeta(e,t){var n;if(e==="showShareMenu"){t.menus=(n=t.showShareItems)===null||n===void 0?void 0:n.map((function(e){return e==="wechatFriends"?"shareAppMessage":e==="wechatMoment"?"shareTimeline":e}))}return{key:e,options:t}}});e.cloud=wx.cloud;e.getTabBar=function(e){var t;if(typeof(e===null||e===void 0?void 0:e.getTabBar)==="function"){return(t=e.getTabBar())===null||t===void 0?void 0:t.$taroInstances}};e.getRenderer=function(){var t,n,r;return(r=(n=(t=e.getCurrentInstance())===null||t===void 0?void 0:t.page)===null||n===void 0?void 0:n.renderer)!==null&&r!==void 0?r:"webview"}}var a="true";var o="false";var s="";var l="0";var u={Progress:{"border-radius":l,"font-size":"16",duration:"30",bindActiveEnd:s},RichText:{space:s,"user-select":o},Text:{"user-select":o},Map:{polygons:"[]",subkey:s,rotate:l,skew:l,"max-scale":"20","min-scale":"3","enable-3D":o,"show-compass":o,"show-scale":o,"enable-overlooking":o,"enable-zoom":a,"enable-scroll":a,"enable-rotate":o,"enable-satellite":o,"enable-traffic":o,"enable-poi":a,"enable-building":a,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":o,"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":o,"adjust-position":a,"hold-keyboard":o,"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":o,bindPickStart:s,bindPickEnd:s},Slider:{color:"'#e9e9e9'","selected-color":"'#1aad19'"},Textarea:{"show-confirm-bar":a,"adjust-position":a,"hold-keyboard":o,"disable-default-padding":o,"confirm-type":"'return'","confirm-hold":o,bindKeyboardHeightChange:s},ScrollView:{type:"'list'","event-passive":o,"enable-flex":o,"scroll-anchoring":o,"refresher-enabled":o,"refresher-threshold":"45","refresher-default-style":"'black'","refresher-background":"'#FFF'","refresher-triggered":o,enhanced:o,bounces:a,"show-scrollbar":a,"paging-enabled":o,"fast-deceleration":o,reverse:o,"cache-extent":l,"scroll-into-view-within-extent":o,"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":a},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":o,"easing-function":"'default'"},SwiperItem:{"skip-hidden-item-layout":o},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:o,"show-menu-by-longpress":o},LivePlayer:{mode:"'live'","sound-mode":"'speaker'","auto-pause-if-navigate":a,"auto-pause-if-open-native":a,"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":o,"auto-pause-if-navigate":a,"auto-pause-if-open-native":a,"vslide-gesture":o,"vslide-gesture-in-fullscreen":a,"ad-unit-id":s,"poster-for-crawler":s,"show-casting-button":o,"picture-in-picture-mode":"[]","enable-auto-rotation":o,"show-screen-lock-button":o,"show-snapshot-button":o,"show-background-playback-button":o,"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":o,placeholder:s,"show-img-size":o,"show-img-toolbar":o,"show-img-resize":o,focus:o,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:o,muted:o,"enable-camera":a,"auto-focus":a,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:o,"device-position":"'front'","background-mute":o,mirror:o,"remote-mirror":o,"local-mirror":o,"audio-reverb-type":l,"enable-mic":a,"enable-agc":o,"enable-ans":o,"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:o,"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:o,duration:"300","z-index":"100",overlay:a,position:"'bottom'",round:o,"close-on-slide-down":o,"overlay-style":s,"custom-style":s,bindBeforeEnter:s,bindEnter:s,bindAfterEnter:s,bindBeforeLeave:s,bindLeave:s,bindAfterLeave:s,bindClickOverlay:s},ShareElement:{mapkey:s,transform:o,duration:"300","easing-function":"'ease-out'"},KeyboardAccessory:{},RootPortal:{},ChannelLive:{feedId:s,finderUserName:s},ChannelVideo:{feedId:s,finderUserName:s,autoplay:o,loop:o,muted:o,objectFit:"'contain'",bindError:s}};var c={initNativeApi:initNativeApi,getMiniLifecycle:function getMiniLifecycle(e){var t=e.page[5];if(t.indexOf("onSaveExitState")===-1){t.push("onSaveExitState")}return e}};(0,r.mergeReconciler)(c);(0,r.mergeInternalComponents)(u)},"./node_modules/@tarojs/react/dist/react.esm.js":function(e,t,n){"use strict";n.d(t,{default:function(){return b},unstable_batchedUpdates:function(){return m}});var r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var i=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var a=n("./node_modules/@tarojs/shared/dist/shared.esm.js");var o=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");var s=n("./node_modules/react-reconciler/cjs/react-reconciler.production.min.js");var l=n.n(s);var u=n("./node_modules/react-reconciler/constants.js");function isEventName(e){return e[0]==="o"&&e[1]==="n"}var c=/aspect|acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function updateProps(e,t,n){var r=getUpdatePayload(e,t,n);if(r){updatePropsByPayload(e,t,r)}}function updatePropsByPayload(e,t,n){for(var r=0;r<n.length;r+=2){var i=n[r];var a=n[r+1];var o=t[i];setProperty(e,i,a,o)}}function getUpdatePayload(e,t,n){var r;var i=null;for(r in t){if(!(r in n)){(i=i||[]).push(r,null)}}var a=e instanceof o.FormElement;for(r in n){if(t[r]!==n[r]||a&&r==="value"){(i=i||[]).push(r,n[r])}}return i}function setEvent(e,t,n,r){var i=t.endsWith("Capture");var o=t.toLowerCase().slice(2);if(i){o=o.slice(0,-7)}var s=(0,a.capitalize)((0,a.toCamelCase)(e.tagName.toLowerCase()));if(o==="click"&&s in a.internalComponents){o="tap"}if((0,a.isFunction)(n)){if(r){e.removeEventListener(o,r,false);e.addEventListener(o,n,{isCapture:i,sideEffect:false})}else{e.addEventListener(o,n,i)}}else{e.removeEventListener(o,r)}}function setStyle(e,t,n){if(t[0]==="-"){e.setProperty(t,n.toString());return}e[t]=(0,a.isNumber)(n)&&c.test(t)===false?n+"px":n==null?"":n}function setProperty(e,t,n,r){var i,o;t=t==="className"?"class":t;if(t==="key"||t==="children"||t==="ref");else if(t==="style"){var s=e.style;if((0,a.isString)(n)){s.cssText=n}else{if((0,a.isString)(r)){s.cssText="";r=null}if((0,a.isObject)(r)){for(var l in r){if(!(n&&l in n)){setStyle(s,l,"")}}}if((0,a.isObject)(n)){for(var u in n){if(!r||n[u]!==r[u]){setStyle(s,u,n[u])}}}}}else if(isEventName(t)){setEvent(e,t,n,r)}else if(t==="dangerouslySetInnerHTML"){var c=(i=n===null||n===void 0?void 0:n.__html)!==null&&i!==void 0?i:"";var d=(o=r===null||r===void 0?void 0:r.__html)!==null&&o!==void 0?o:"";if(c||d){if(d!==c){e.innerHTML=c}}}else if(!(0,a.isFunction)(n)){if(n==null){e.removeAttribute(t)}else{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:a.noop,createInstance:function createInstance(e){return o.document.createElement(e)},appendInitialChild:function appendInitialChild(e,t){e.appendChild(t)},finalizeInitialChildren:function finalizeInitialChildren(e,t,n){updateProps(e,{},n);return false},prepareUpdate:function prepareUpdate(e,t,n,r){return getUpdatePayload(e,n,r)},shouldSetTextContent:function shouldSetTextContent(){return false},createTextInstance:function createTextInstance(e){return o.document.createTextNode(e)},scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,isPrimaryRenderer:true,warnsIfNotActing:true,supportsMutation:true,supportsPersistence:false,supportsHydration:false,getInstanceFromNode:function getInstanceFromNode(){return null},beforeActiveInstanceBlur:a.noop,afterActiveInstanceBlur:a.noop,preparePortalMount:a.noop,prepareScopeUpdate:a.noop,getInstanceFromScope:function getInstanceFromScope(){return null},getCurrentEventPriority:function getCurrentEventPriority(){return u.DefaultEventPriority},detachDeletedInstance:a.noop,supportsMicrotasks:true,scheduleMicrotask:(0,a.isUndefined)(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:a.noop,commitUpdate:function commitUpdate(e,t,n,r){updatePropsByPayload(e,r,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:a.noop,hideInstance:function hideInstance(e){var t=e.style;t.setProperty("display","none")},hideTextInstance:function hideTextInstance(e){e.nodeValue=""},unhideInstance:function unhideInstance(e,t){var n=t.style;var r=(n===null||n===void 0?void 0:n.hasOwnProperty("display"))?n.display:null;r=r==null||(0,a.isBoolean)(r)||r===""?"":(""+r).trim();e.style["display"]=r},unhideTextInstance:function unhideTextInstance(e,t){e.nodeValue=t},clearContainer:function clearContainer(e){if(e.childNodes.length>0){e.textContent=""}}};var f=l()(d);if(true){var v=f.injectIntoDevTools({bundleType:1,version:"18.0.0",rendererPackageName:"taro-react"});if(!v){console.info("%cDownload the React DevTools "+"for a better development experience: "+"https://reactjs.org/link/react-devtools","font-weight:bold")}}var h=new WeakMap;var p=function(){function Root(e,t,n){(0,r["default"])(this,Root);this.renderer=e;this.initInternalRoot(e,t,n)}(0,i["default"])(Root,[{key:"initInternalRoot",value:function initInternalRoot(e,t,n){var r=t;if(n){var i=1;var a=false;var o=false;var s="";var l=function onRecoverableError(e){return console.error(e)};var u=null;if(n.unstable_strictMode===true){o=true}if(n.identifierPrefix!==undefined){s=n.identifierPrefix}if(n.onRecoverableError!==undefined){l=n.onRecoverableError}if(n.unstable_transitionCallbacks!==undefined){u=n.unstable_transitionCallbacks}this.internalRoot=e.createContainer(r,i,null,o,a,s,l,u)}else{var c=0;this.internalRoot=e.createContainer(r,c,null,false,false,"",(function(){}),null)}}},{key:"render",value:function render(e,t){var n=this.renderer,r=this.internalRoot;n.updateContainer(e,r,null,t);return n.getPublicRootInstance(r)}},{key:"unmount",value:function unmount(e){this.renderer.updateContainer(null,this.internalRoot,null,e)}}]);return Root}();function render(e,t,n){var r=h.get(t);if(r!=null){return r.render(e,n)}var i=new p(f,t);h.set(t,i);return i.render(e,n)}function createRoot(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=h.get(e);if(n!=null){return n}var r=new p(f,e,t);h.set(e,r);return r}var m=f.batchedUpdates;function unmountComponentAtNode(e){(0,a.ensure)(e&&[1,8,9,11].includes(e.nodeType),"unmountComponentAtNode(...): Target container is not a DOM element.");var t=h.get(e);if(!t)return false;m((function(){t.unmount((function(){h.delete(e)}))}),null);return true}function findDOMNode(e){if(e==null){return null}var t=e.nodeType;if(t===1||t===3){return e}return f.findHostInstance(e)}var g=(0,a.isFunction)(Symbol)&&Symbol.for?Symbol.for("react.portal"):60106;function createPortal(e,t,n){return{$$typeof:g,key:n==null?null:String(n),children:e,containerInfo:t,implementation:null}}var b={render:render,createRoot:createRoot,unstable_batchedUpdates:m,unmountComponentAtNode:unmountComponentAtNode,findDOMNode:findDOMNode,createPortal:createPortal}},"./node_modules/@tarojs/runtime/dist/runtime.esm.js":function(e,t,n){"use strict";n.r(t);n.d(t,{Current:function(){return Xt},Events:function(){return g.Events},FormElement:function(){return _t},History:function(){return Jt},Location:function(){return vn},MutationObserver:function(){return ye},SVGElement:function(){return Cn},Style:function(){return Je},TaroElement:function(){return Xe},TaroEvent:function(){return bt},TaroNode:function(){return Re},TaroRootElement:function(){return wt},TaroText:function(){return Tt},URL:function(){return Ft},URLSearchParams:function(){return xt},addLeadingSlash:function(){return addLeadingSlash},cancelAnimationFrame:function(){return Sn},createComponentConfig:function(){return createComponentConfig},createEvent:function(){return createEvent},createPageConfig:function(){return createPageConfig},createRecursiveComponentConfig:function(){return createRecursiveComponentConfig},document:function(){return Dt},eventCenter:function(){return Ht},eventHandler:function(){return eventHandler},eventSource:function(){return Pe},getComputedStyle:function(){return getComputedStyle},getCurrentInstance:function(){return Zt},getPageInstance:function(){return getPageInstance},history:function(){return En},hooks:function(){return g.hooks},hydrate:function(){return hydrate},incrementId:function(){return _e},injectPageInstance:function(){return injectPageInstance},location:function(){return Pn},navigator:function(){return bn},nextTick:function(){return On},now:function(){return yn},options:function(){return Ze},parseUrl:function(){return parseUrl},removePageInstance:function(){return removePageInstance},requestAnimationFrame:function(){return kn},safeExecute:function(){return safeExecute},stringify:function(){return stringify},window:function(){return wn}});var r=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");var i=n("./node_modules/@babel/runtime/helpers/esm/get.js");var a=n("./node_modules/@babel/runtime/helpers/esm/set.js");var o=n("./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js");var s=n("./node_modules/@babel/runtime/helpers/esm/toArray.js");var l=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");var u=n("./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js");var c=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");var d=n("./node_modules/@babel/runtime/helpers/esm/inherits.js");var f=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js");var v=n("./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js");var h=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");var p=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var m=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var g=n("./node_modules/@tarojs/shared/dist/shared.esm.js");var b=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js")["window"];var y=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js")["document"];var _=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js")["requestAnimationFrame"];var k=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js")["cancelAnimationFrame"];var S=2046;var w="小程序 setData";var T="页面初始化";var P="root";var E="html";var C="head";var I="body";var x="app";var j="container";var O="#document";var N="document-fragment";var R="id";var L="uid";var A="class";var F="style";var M="focus";var U="view";var B="static-view";var D="pure-view";var G="props";var H="dataset";var W="object";var z="value";var V="input";var q="change";var Q="custom-wrapper";var $="target";var K="currentTarget";var Y="type";var J="confirm";var X="timeStamp";var Z="keyCode";var ee="touchmove";var te="catchMove";var ne="catch-view";var re="comment";var ie="onLoad";var ae="onReady";var oe="onShow";var se="onHide";var le="options";var ue="externalClasses";var ce="e_result";var de="behaviors";var fe="a";var ve;(function(e){e["INIT"]="0";e["RESTORE"]="1";e["RECOVER"]="2";e["DESTORY"]="3"})(ve||(ve={}));var he=[];var pe=function(){function MutationObserverImpl(e){(0,p["default"])(this,MutationObserverImpl);this.records=[];this.callback=e}(0,m["default"])(MutationObserverImpl,[{key:"observe",value:function observe(e,t){this.disconnect();this.target=e;this.options=t||{};he.push(this)}},{key:"disconnect",value:function disconnect(){this.target=null;var e=he.indexOf(this);if(e>=0){he.splice(e,1)}}},{key:"takeRecords",value:function takeRecords(){return this.records.splice(0,this.records.length)}}]);return MutationObserverImpl}();var me=function sidMatches(e,t){return!!e&&e.sid===(t===null||t===void 0?void 0:t.sid)};var ge=function isConcerned(e,t){var n=t.characterData,r=t.characterDataOldValue,i=t.attributes,a=t.attributeOldValue,o=t.childList;switch(e.type){case"characterData":if(n){if(!r)e.oldValue=null;return true}return false;case"attributes":if(i){if(!a)e.oldValue=null;return true}return false;case"childList":if(o){return true}return false}};var be=false;function logMutation(e,t){e.records.push(t);if(!be){be=true;Promise.resolve().then((function(){be=false;he.forEach((function(e){return e.callback(e.takeRecords())}))}))}}function recordMutation(e){he.forEach((function(t){var n=t.options;for(var r=e.target;r;r=r.parentNode){if(me(t.target,r)&&ge(e,n)){logMutation(t,e);break}if(!n.subtree)break}}))}var ye=function(){function MutationObserver(e){(0,p["default"])(this,MutationObserver);if(false){}else{if(true){console.warn("[Taro Warning] 若要使用 MutationObserver,请在 Taro 编译配置中设置 'mini.enableMutationObserver: true'")}this.core={observe:g.noop,disconnect:g.noop,takeRecords:g.noop}}}(0,m["default"])(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){recordMutation(e)}}]);return MutationObserver}();var _e=function incrementId(){var e=[];for(var t=65;t<=90;t++){e.push(t)}for(var n=97;n<=122;n++){e.push(n)}var r=e.length-1;var i=[0,0];return function(){var t=i.map((function(t){return e[t]}));var n=String.fromCharCode.apply(String,(0,h["default"])(t));var a=i.length-1;i[a]++;while(i[a]>r){i[a]=0;a=a-1;if(a<0){i.push(0);break}i[a]++}return n}};function isElement(e){return e.nodeType===1}function isText(e){return e.nodeType===3}function isComment(e){return e.nodeName===re}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 isParentBinded(e,t){var n;var r=false;while((e===null||e===void 0?void 0:e.parentElement)&&e.parentElement._path!==P){if((n=e.parentElement.__handlers[t])===null||n===void 0?void 0:n.length){r=true;break}e=e.parentElement}return r}function shortcutAttr(e){switch(e){case F:return"st";case R:return L;case A:return"cl";default:return e}}var ke=new Map;function _extend(e,t,n){if((0,g.isFunction)(n)){n={value:n}}Object.defineProperty(e.prototype,t,Object.assign({configurable:true,enumerable:true},n))}var Se;function getComponentsAlias(){if(!Se){Se=(0,g.getComponentsAlias)(g.internalComponents)}return Se}var we=function(){function ClassList(e,t){var n=this;(0,p["default"])(this,ClassList);this.tokenList=[];this.el=t;e.trim().split(/\s+/).forEach((function(e){return n.tokenList.push(e)}))}(0,m["default"])(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;var t=false;var n=arguments;var r=n.length;var i=this.tokenList;do{var a=n[e];if(this.checkTokenIsValid(a)&&!~i.indexOf(a)){i.push(a);t=true}}while(++e<r);if(t){this._update()}}},{key:"remove",value:function remove(){var e=0;var t=false;var n=arguments;var r=n.length;var i=this.tokenList;do{var a=n[e]+"";if(!this.checkTokenIsValid(a))continue;var o=i.indexOf(a);if(~i.indexOf(a)){i.splice(o,1);t=true}}while(++e<r);if(t){this._update()}}},{key:"contains",value:function contains(e){if(!this.checkTokenIsValid(e))return false;return!!~this.tokenList.indexOf(e)}},{key:"toggle",value:function toggle(e,t){var n=this.contains(e);var r=n?t!==true&&"remove":t!==false&&"add";if(r){this[r](e)}if(t===true||t===false){return t}else{return!n}}},{key:"replace",value:function replace(e,t){if(!this.checkTokenIsValid(e)||!this.checkTokenIsValid(t))return;var n=this.tokenList.indexOf(e);if(~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){if(e===""||/\s/.test(e))return false;return true}},{key:"_update",value:function _update(){this.el.className=this.value}}]);return ClassList}();var Te=function(e){(0,d["default"])(EventSource,e);var t=(0,f["default"])(EventSource);function EventSource(){(0,p["default"])(this,EventSource);return t.apply(this,arguments)}(0,m["default"])(EventSource,[{key:"removeNode",value:function removeNode(e){var t=e.sid,n=e.uid;this.delete(t);if(n!==t&&n)this.delete(n)}},{key:"removeNodeTree",value:function removeNodeTree(e){var t=this;this.removeNode(e);var n=e.childNodes;n.forEach((function(e){return t.removeNodeTree(e)}))}}]);return EventSource}((0,v["default"])(Map));var Pe=new Te;var Ee=(0,g.isWebPlatform)();var Ce={window:Ee?b:g.EMPTY_OBJ,document:Ee?y:g.EMPTY_OBJ};var Ie;var xe;function hydrate(e){var t;if(!xe){xe=getComponentsAlias()}if(!Ie){Ie=g.hooks.call("getSpecialNodes")}var n=e.nodeName;if(isText(e)){var r;return r={},(0,c["default"])(r,"v",e.nodeValue),(0,c["default"])(r,"nn",xe[n]._num),r}var i=(t={},(0,c["default"])(t,"nn",n),(0,c["default"])(t,"sid",e.sid),t);if(e.uid!==e.sid){i.uid=e.uid}if(!e.isAnyEventBinded()&&Ie.indexOf(n)>-1){i["nn"]="static-".concat(n);if(n===U&&!isHasExtractProp(e)){i["nn"]=D}}var a=e.props;for(var o in a){var s=(0,g.toCamelCase)(o);if(!o.startsWith("data-")&&o!==A&&o!==F&&o!==R&&s!==te){i[s]=a[o]}if(n===U&&s===te&&a[o]!==false){i["nn"]=ne}}var l=e.childNodes;l=l.filter((function(e){return!isComment(e)}));if(l.length>0){i["cn"]=l.map(hydrate)}else{i["cn"]=[]}if(e.className!==""){i["cl"]=e.className}var u=e.cssText;if(u!==""&&n!=="swiper-item"){i["st"]=u}g.hooks.call("modifyHydrateData",i);var d=i["nn"];var f=xe[d];if(f){i["nn"]=f._num;for(var v in i){if(v in f){i[f[v]]=i[v];delete i[v]}}}return i}var je=function(){function TaroEventTarget(){(0,p["default"])(this,TaroEventTarget);this.__handlers={}}(0,m["default"])(TaroEventTarget,[{key:"addEventListener",value:function addEventListener(e,t,n){e=e.toLowerCase();g.hooks.call("onAddEvent",e,t,n,this);if(e==="regionchange"){this.addEventListener("begin",t,n);this.addEventListener("end",t,n);return}var r=Boolean(n);var i=false;if((0,g.isObject)(n)){r=Boolean(n.capture);i=Boolean(n.once)}if(i){var a=function wrapper(){t.apply(this,arguments);this.removeEventListener(e,wrapper)};this.addEventListener(e,a,Object.assign(Object.assign({},n),{once:false}));return}true&&(0,g.warn)(r,"Taro 暂未实现 event 的 capture 特性。");var o=t;t=function handler(){return o.apply(this,arguments)};t.oldHandler=o;var s=this.__handlers[e];if((0,g.isArray)(s)){s.push(t)}else{this.__handlers[e]=[t]}}},{key:"removeEventListener",value:function removeEventListener(e,t){e=e.toLowerCase();if(e==="regionchange"){this.removeEventListener("begin",t);this.removeEventListener("end",t);return}if(!t){return}var n=this.__handlers[e];if(!(0,g.isArray)(n)){return}var r=n.findIndex((function(e){if(e===t||e.oldHandler===t)return true}));true&&(0,g.warn)(r===-1,"事件: '".concat(e,"' 没有注册在 DOM 中,因此不会被移除。"));n.splice(r,1)}},{key:"isAnyEventBinded",value:function isAnyEventBinded(){var e=this.__handlers;var isAnyEventBinded=Object.keys(e).find((function(t){return e[t].length}));return Boolean(isAnyEventBinded)}}]);return TaroEventTarget}();var Oe="cn";var Ne=_e();var Re=function(e){(0,d["default"])(TaroNode,e);var t=(0,f["default"])(TaroNode);function TaroNode(){var e;(0,p["default"])(this,TaroNode);e=t.call(this);e.parentNode=null;e.childNodes=[];e.hydrate=function(e){return function(){return hydrate(e)}};e.uid="_"+Ne();e.sid=e.uid;Pe.set(e.sid,(0,u["default"])(e));return e}(0,m["default"])(TaroNode,[{key:"updateChildNodes",value:function updateChildNodes(e){var t=this;var n=function cleanChildNodes(){return[]};var r=function rerenderChildNodes(){var e=t.childNodes.filter((function(e){return!isComment(e)}));return e.map(hydrate)};this.enqueueUpdate({path:"".concat(this._path,".").concat(Oe),value:e?n:r})}},{key:"_root",get:function get(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e._root)||null}},{key:"findIndex",value:function findIndex(e){var t=this.childNodes.indexOf(e);(0,g.ensure)(t!==-1,"The node to be replaced is not a child of this node.");return t}},{key:"_path",get:function get(){var e=this.parentNode;if(e){var t=e.childNodes.filter((function(e){return!isComment(e)}));var n=t.indexOf(this);var r=g.hooks.call("getPathIndex",n);return"".concat(e._path,".").concat(Oe,".").concat(r)}return""}},{key:"nextSibling",get:function get(){var e=this.parentNode;return(e===null||e===void 0?void 0:e.childNodes[e.findIndex(this)+1])||null}},{key:"previousSibling",get:function get(){var e=this.parentNode;return(e===null||e===void 0?void 0:e.childNodes[e.findIndex(this)-1])||null}},{key:"parentElement",get:function get(){var e=this.parentNode;if((e===null||e===void 0?void 0:e.nodeType)===1){return e}return 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){var t=this.childNodes.slice();var n=[];while(this.firstChild){this.removeChild(this.firstChild,{doUpdate:false})}if(e===""){this.updateChildNodes(true)}else{var r=Ce.document.createTextNode(e);n.push(r);this.appendChild(r);this.updateChildNodes()}ye.record({type:"childList",target:this,removedNodes:t,addedNodes:n})}},{key:"insertBefore",value:function insertBefore(e,t,n){var r=this;if(e.nodeName===N){e.childNodes.reduceRight((function(e,t){r.insertBefore(t,e);return t}),t);return e}e.remove({cleanRef:false});e.parentNode=this;if(t){var i=this.findIndex(t);this.childNodes.splice(i,0,e)}else{this.childNodes.push(e)}if(this._root){if(!t){var a=this.childNodes.length===1;if(a){this.updateChildNodes()}else{this.enqueueUpdate({path:e._path,value:this.hydrate(e)})}}else if(n){this.enqueueUpdate({path:e._path,value:this.hydrate(e)})}else{this.updateChildNodes()}}ye.record({type:"childList",target:this,addedNodes:[e],removedNodes:n?[t]:[],nextSibling:n?t.nextSibling:t||null,previousSibling:e.previousSibling});return 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,true);t.remove({doUpdate:false});return t}},{key:"removeChild",value:function removeChild(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=t.cleanRef,r=t.doUpdate;if(n!==false&&r!==false){ye.record({type:"childList",target:this,removedNodes:[e],nextSibling:e.nextSibling,previousSibling:e.previousSibling})}var i=this.findIndex(e);this.childNodes.splice(i,1);e.parentNode=null;if(n!==false){Pe.removeNodeTree(e)}if(this._root&&r!==false){this.updateChildNodes()}return e}},{key:"remove",value:function remove(e){var t;(t=this.parentNode)===null||t===void 0?void 0:t.removeChild(this,e)}},{key:"hasChildNodes",value:function hasChildNodes(){return this.childNodes.length>0}},{key:"enqueueUpdate",value:function enqueueUpdate(e){var t;(t=this._root)===null||t===void 0?void 0:t.enqueueUpdate(e)}},{key:"ownerDocument",get:function get(){return Ce.document}}],[{key:"extend",value:function extend(e,t){_extend(TaroNode,e,t)}}]);return TaroNode}(je);var Le="webkit";var Ae=["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&&Ae.push(e);t.forEach((function(t){Ae.push(e+t);if(e===Le){Ae.push("Webkit"+t)}}))}var Fe="Color";var Me="Style";var Ue="Width";var Be="Image";var De="Size";var Ge=[Fe,Me,Ue];var He=["FitLength","FitWidth",Be];var We=[].concat(He,["Radius"]);var ze=[].concat(Ge,He);var Ve=["EndRadius","StartRadius"];var qe=["Bottom","Left","Right","Top"];var Qe=["End","Start"];var $e=["Content","Items","Self"];var Ke=["BlockSize","Height","InlineSize",Ue];var Ye=["After","Before"];combine("borderBlock",Ge);combine("borderBlockEnd",Ge);combine("borderBlockStart",Ge);combine("outline",[].concat(Ge,["Offset"]));combine("border",[].concat(Ge,["Boundary","Break","Collapse","Radius","Spacing"]));combine("borderFit",["Length",Ue]);combine("borderInline",Ge);combine("borderInlineEnd",Ge);combine("borderInlineStart",Ge);combine("borderLeft",ze);combine("borderRight",ze);combine("borderTop",ze);combine("borderBottom",ze);combine("textDecoration",[Fe,Me,"Line"]);combine("textEmphasis",[Fe,Me,"Position"]);combine("scrollMargin",qe);combine("scrollPadding",qe);combine("padding",qe);combine("margin",[].concat(qe,["Trim"]));combine("scrollMarginBlock",Qe);combine("scrollMarginInline",Qe);combine("scrollPaddingBlock",Qe);combine("scrollPaddingInline",Qe);combine("gridColumn",Qe);combine("gridRow",Qe);combine("insetBlock",Qe);combine("insetInline",Qe);combine("marginBlock",Qe);combine("marginInline",Qe);combine("paddingBlock",Qe);combine("paddingInline",Qe);combine("pause",Ye);combine("cue",Ye);combine("mask",["Clip","Composite",Be,"Mode","Origin","Position","Repeat",De,"Type"]);combine("borderImage",["Outset","Repeat","Slice","Source","Transform",Ue]);combine("maskBorder",["Mode","Outset","Repeat","Slice","Source",Ue]);combine("font",["Family","FeatureSettings","Kerning","LanguageOverride","MaxSize","MinSize","OpticalSizing","Palette",De,"SizeAdjust","Stretch",Me,"Weight","VariationSettings"]);combine("transform",["Box","Origin",Me]);combine("background",[Fe,Be,"Attachment","BlendMode","Clip","Origin","Position","Repeat",De]);combine("listStyle",[Be,"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(Ye,Qe,["Anchor","Distance","Path","Position","Rotate"]));combine("perspective",["Origin"]);combine("clip",["Path","Rule"]);combine("flow",["From","Into"]);combine("align",["Content","Items","Self"],true);combine("alignment",["Adjust","Baseline"],true);combine("borderStart",Ve,true);combine("borderEnd",Ve,true);combine("borderCorner",["Fit",Be,"ImageTransform"],true);combine("borderTopLeft",We,true);combine("borderTopRight",We,true);combine("borderBottomLeft",We,true);combine("borderBottomRight",We,true);combine("column",["s","Count","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","Span",Ue],true);combine("break",[].concat(Ye,["Inside"]),true);combine("wrap",[].concat(Ye,["Flow","Inside","Through"]),true);combine("justify",$e,true);combine("place",$e,true);combine("max",[].concat(Ke,["Lines"]),true);combine("min",Ke,true);combine("line",["Break","Clamp","Grid","Height","Padding","Snap"],true);combine("inline",["BoxAlign",De,"Sizing"],true);combine("text",["CombineUpright","GroupAlign","Height","Indent","Justify","Orientation","Overflow","Shadow","SpaceCollapse","SpaceTrim","Spacing","Transform","UnderlinePosition","Wrap"],true);combine("shape",["ImageThreshold","Inside","Margin","Outside"],true);combine("word",["Break","Spacing","Wrap"],true);combine("object",["Fit","Position"],true);combine("box",["DecorationBreak","Shadow","Sizing","Snap"],true);combine(Le,["LineClamp","BoxOrient","TextFillColor","TextStroke","TextStrokeColor","TextStrokeWidth"],true);function recordCss(e){ye.record({type:"attributes",target:e._element,attributeName:"style",oldValue:e.cssText})}function enqueueUpdate(e){var t=e._element;if(t._root){t.enqueueUpdate({path:"".concat(t._path,".","st"),value:e.cssText})}}function setStyle(e,t){true&&(0,g.warn)((0,g.isString)(e)&&e.length>S,"Style 属性 ".concat(t," 的值数据量过大,可能会影响渲染性能,考虑使用 CSS 类或其它方案替代。"));var n=this[t];if(n===e)return;!this._pending&&recordCss(this);if((0,g.isNull)(e)||(0,g.isUndefined)(e)){this._usedStyleProp.delete(t);delete this._value[t]}else{this._usedStyleProp.add(t);this._value[t]=e}!this._pending&&enqueueUpdate(this)}function initStyle(e,t){var n={};var r=function _loop(){var r=t[i];if(e[r])return{v:void 0};n[r]={get:function get(){var e=this._value[r];return(0,g.isNull)(e)||(0,g.isUndefined)(e)?"":e},set:function set(e){setStyle.call(this,e,r)}}};for(var i=0;i<t.length;i++){var a=r();if((0,l["default"])(a)==="object")return a.v}Object.defineProperties(e.prototype,n)}function isCssVariable(e){return/^--/.test(e)}var Je=function(){function Style(e){(0,p["default"])(this,Style);this._element=e;this._usedStyleProp=new Set;this._value={}}(0,m["default"])(Style,[{key:"setCssVariables",value:function setCssVariables(e){var t=this;this.hasOwnProperty(e)||Object.defineProperty(this,e,{enumerable:true,configurable:true,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=[];this._usedStyleProp.forEach((function(n){var r=e[n];if((0,g.isNull)(r)||(0,g.isUndefined)(r))return;var i=isCssVariable(n)?n:(0,g.toDashed)(n);if(i.indexOf("webkit")===0||i.indexOf("Webkit")===0){i="-".concat(i)}t.push("".concat(i,": ").concat(r,";"))}));return t.join(" ")},set:function set(e){var t=this;this._pending=true;recordCss(this);this._usedStyleProp.forEach((function(e){t.removeProperty(e)}));if(e===""||(0,g.isUndefined)(e)||(0,g.isNull)(e)){this._pending=false;enqueueUpdate(this);return}var n=e.split(";");for(var r=0;r<n.length;r++){var i=n[r].trim();if(i===""){continue}var a=i.split(":"),o=(0,s["default"])(a),l=o[0],u=o.slice(1);var c=u.join(":");if((0,g.isUndefined)(c)){continue}this.setProperty(l.trim(),c.trim())}this._pending=false;enqueueUpdate(this)}},{key:"setProperty",value:function setProperty(e,t){if(e[0]==="-"){this.setCssVariables(e)}else{e=(0,g.toCamelCase)(e)}if((0,g.isNull)(t)||(0,g.isUndefined)(t)){this.removeProperty(e)}else{this[e]=t}}},{key:"removeProperty",value:function removeProperty(e){e=(0,g.toCamelCase)(e);if(!this._usedStyleProp.has(e)){return""}var t=this[e];this[e]=undefined;return t}},{key:"getPropertyValue",value:function getPropertyValue(e){e=(0,g.toCamelCase)(e);var t=this[e];if(!t){return""}return t}}]);return Style}();initStyle(Je,Ae);g.hooks.tap("injectNewStyleProperties",(function(e){if((0,g.isArray)(e)){initStyle(Je,e)}else{if(typeof e!=="string")return;initStyle(Je,[e])}}));function returnTrue(){return true}function treeToArray(e,t){var n=[];var r=t!==null&&t!==void 0?t:returnTrue;var i=e;while(i){if(i.nodeType===1&&r(i)){n.push(i)}i=following(i,e)}return n}function following(e,t){var n=e.firstChild;var r=e.nodeType===1||e.nodeType===9;if(n&&r){return n}var i=e;do{if(i===t){return null}var a=i.nextSibling;if(a){return a}i=i.parentElement}while(i);return null}var Xe=function(e){(0,d["default"])(TaroElement,e);var t=(0,f["default"])(TaroElement);function TaroElement(){var e;(0,p["default"])(this,TaroElement);e=t.call(this);e.props={};e.dataset=g.EMPTY_OBJ;e.nodeType=1;e.style=new Je((0,u["default"])(e));g.hooks.call("patchElement",(0,u["default"])(e));return e}(0,m["default"])(TaroElement,[{key:"_stopPropagation",value:function _stopPropagation(e){var t=this;while(t=t.parentNode){var n=t.__handlers[e.type];if(!(0,g.isArray)(n)){continue}for(var r=n.length;r--;){var i=n[r];i._stop=true}}}},{key:"id",get:function get(){return this.getAttribute(R)},set:function set(e){this.setAttribute(R,e)}},{key:"className",get:function get(){return this.getAttribute(A)||""},set:function set(e){this.setAttribute(A,e)}},{key:"cssText",get:function get(){return this.getAttribute(F)||""}},{key:"classList",get:function get(){return new we(this.className,this)}},{key:"children",get:function get(){return this.childNodes.filter(isElement)}},{key:"attributes",get:function get(){var e=this.props;var t=Object.keys(e);var n=this.style.cssText;var r=t.map((function(t){return{name:t,value:e[t]}}));return r.concat(n?{name:F,value:n}:[])}},{key:"textContent",get:function get(){var e="";var t=this.childNodes;for(var n=0;n<t.length;n++){e+=t[n].textContent}return e},set:function set(e){(0,a["default"])((0,o["default"])(TaroElement.prototype),"textContent",e,this,true)}},{key:"hasAttribute",value:function hasAttribute(e){return!(0,g.isUndefined)(this.props[e])}},{key:"hasAttributes",value:function hasAttributes(){return this.attributes.length>0}},{key:"focus",get:function get(){return function(){this.setAttribute(M,true)}},set:function set(e){this.setAttribute(M,e)}},{key:"blur",value:function blur(){this.setAttribute(M,false)}},{key:"setAttribute",value:function setAttribute(e,t){true&&(0,g.warn)((0,g.isString)(t)&&t.length>S,"元素 ".concat(this.nodeName," 的 ").concat(e," 属性值数据量过大,可能会影响渲染性能。考虑降低图片转为 base64 的阈值或在 CSS 中使用 base64。"));var n=this.nodeName===U&&!isHasExtractProp(this)&&!this.isAnyEventBinded();if(e!==F){ye.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)})}switch(e){case F:this.style.cssText=t;break;case R:if(this.uid!==this.sid){Pe.delete(this.uid)}t=String(t);this.props[e]=this.uid=t;Pe.set(t,this);break;default:this.props[e]=t;if(e.startsWith("data-")){if(this.dataset===g.EMPTY_OBJ){this.dataset=Object.create(null)}this.dataset[(0,g.toCamelCase)(e.replace(/^data-/,""))]=t}break}if(!this._root)return;var r=getComponentsAlias();var i=r[this.nodeName];var a=r[U]._num;var o=r[B]._num;var s=r[ne]._num;var l=this._path;e=shortcutAttr(e);var u=(0,g.toCamelCase)(e);var c={path:"".concat(l,".").concat(u),value:(0,g.isFunction)(t)?function(){return t}:t};g.hooks.call("modifySetAttrPayload",this,e,c,r);if(i){var d=i[u]||e;c.path="".concat(l,".").concat((0,g.toCamelCase)(d))}this.enqueueUpdate(c);if(this.nodeName===U){if(u===te){this.enqueueUpdate({path:"".concat(l,".","nn"),value:t?s:this.isAnyEventBinded()?a:o})}else if(n&&isHasExtractProp(this)){this.enqueueUpdate({path:"".concat(l,".","nn"),value:o})}}}},{key:"removeAttribute",value:function removeAttribute(e){var t=this.nodeName===U&&isHasExtractProp(this)&&!this.isAnyEventBinded();ye.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)});if(e===F){this.style.cssText=""}else{var n=g.hooks.call("onRemoveAttribute",this,e);if(n){return}if(!this.props.hasOwnProperty(e)){return}delete this.props[e]}if(!this._root)return;var r=getComponentsAlias();var i=r[this.nodeName];var a=r[U]._num;var o=r[B]._num;var s=r[D]._num;var l=this._path;e=shortcutAttr(e);var u=(0,g.toCamelCase)(e);var c={path:"".concat(l,".").concat(u),value:""};g.hooks.call("modifyRmAttrPayload",this,e,c,r);if(i){var d=i[u]||e;c.path="".concat(l,".").concat((0,g.toCamelCase)(d))}this.enqueueUpdate(c);if(this.nodeName===U){if(u===te){this.enqueueUpdate({path:"".concat(l,".","nn"),value:this.isAnyEventBinded()?a:isHasExtractProp(this)?o:s})}else if(t&&!isHasExtractProp(this)){this.enqueueUpdate({path:"".concat(l,".","nn"),value:s})}}}},{key:"getAttribute",value:function getAttribute(e){var t=e===F?this.style.cssText:this.props[e];return t!==null&&t!==void 0?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;var n=this.__handlers[e.type];if(!(0,g.isArray)(n)){return false}for(var r=n.length;r--;){var i=n[r];var a=void 0;if(i._stop){i._stop=false}else{g.hooks.call("modifyDispatchEvent",e,this);a=i.call(this,e)}if((a===false||e._end)&&t){e.defaultPrevented=true}if(!(0,g.isUndefined)(a)&&e.mpEvent){e.mpEvent[ce]=a}if(e._end&&e._stop){break}}if(e._stop){this._stopPropagation(e)}else{e._stop=true}return n!=null}},{key:"addEventListener",value:function addEventListener(e,t,n){var r=this.nodeName;var a=g.hooks.call("getSpecialNodes");var s=true;if((0,g.isObject)(n)&&n.sideEffect===false){s=false;delete n.sideEffect}if(s!==false&&!this.isAnyEventBinded()&&a.indexOf(r)>-1){var l=getComponentsAlias();var u=l[r]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:u})}(0,i["default"])((0,o["default"])(TaroElement.prototype),"addEventListener",this).call(this,e,t,n)}},{key:"removeEventListener",value:function removeEventListener(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;(0,i["default"])((0,o["default"])(TaroElement.prototype),"removeEventListener",this).call(this,e,t);var r=this.nodeName;var a=g.hooks.call("getSpecialNodes");if(n!==false&&!this.isAnyEventBinded()&&a.indexOf(r)>-1){var s=getComponentsAlias();var l=isHasExtractProp(this)?"static-".concat(r):"pure-".concat(r);var u=s[l]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:u})}}}],[{key:"extend",value:function extend(e,t){_extend(TaroElement,e,t)}}]);return TaroElement}(Re);var Ze={prerender:true,debug:false};function initPosition(){return{index:0,column:0,line:0}}function feedPosition(e,t,n){var r=e.index;var i=e.index=r+n;for(var a=r;a<i;a++){var o=t.charAt(a);if(o==="\n"){e.line++;e.column=0}else{e.column++}}}function jumpPosition(e,t,n){var r=n-e.index;return feedPosition(e,t,r)}function copyPosition(e){return{index:e.index,line:e.line,column:e.column}}var et=/\s/;function isWhitespaceChar(e){return et.test(e)}var tt=/=/;function isEqualSignChar(e){return tt.test(e)}function shouldBeIgnore(e){var t=e.toLowerCase();if(Ze.html.skipElements.has(t)){return true}return false}var nt=/[A-Za-z0-9]/;function findTextEnd(e,t){while(true){var n=e.indexOf("<",t);if(n===-1){return n}var r=e.charAt(n+1);if(r==="/"||r==="!"||nt.test(r)){return n}t=n+1}}function isWordEnd(e,t,n){if(!isWhitespaceChar(n.charAt(e)))return false;var r=n.length;for(var i=e-1;i>t;i--){var a=n.charAt(i);if(!isWhitespaceChar(a)){if(isEqualSignChar(a))return false;break}}for(var o=e+1;o<r;o++){var s=n.charAt(o);if(!isWhitespaceChar(s)){if(isEqualSignChar(s))return false;return true}}}var rt=function(){function Scaner(e){(0,p["default"])(this,Scaner);this.tokens=[];this.position=initPosition();this.html=e}(0,m["default"])(Scaner,[{key:"scan",value:function scan(){var e=this.html,t=this.position;var n=e.length;while(t.index<n){var r=t.index;this.scanText();if(t.index===r){var i=e.startsWith("!--",r+1);if(i){this.scanComment()}else{var a=this.scanTag();if(shouldBeIgnore(a)){this.scanSkipTag(a)}}}}return this.tokens}},{key:"scanText",value:function scanText(){var e="text";var t=this.html,n=this.position;var r=findTextEnd(t,n.index);if(r===n.index){return}if(r===-1){r=t.length}var i=copyPosition(n);var a=t.slice(n.index,r);jumpPosition(n,t,r);var o=copyPosition(n);this.tokens.push({type:e,content:a,position:{start:i,end:o}})}},{key:"scanComment",value:function scanComment(){var e="comment";var t=this.html,n=this.position;var r=copyPosition(n);feedPosition(n,t,4);var i=t.indexOf("--\x3e",n.index);var a=i+3;if(i===-1){i=a=t.length}var o=t.slice(n.index,i);jumpPosition(n,t,a);this.tokens.push({type:e,content:o,position:{start:r,end:copyPosition(n)}})}},{key:"scanTag",value:function scanTag(){this.scanTagStart();var e=this.scanTagName();this.scanAttrs();this.scanTagEnd();return e}},{key:"scanTagStart",value:function scanTagStart(){var e="tag-start";var t=this.html,n=this.position;var r=t.charAt(n.index+1);var i=r==="/";var a=copyPosition(n);feedPosition(n,t,i?2:1);this.tokens.push({type:e,close:i,position:{start:a}})}},{key:"scanTagEnd",value:function scanTagEnd(){var e="tag-end";var t=this.html,n=this.position;var r=t.charAt(n.index);var i=r==="/";feedPosition(n,t,i?2:1);var a=copyPosition(n);this.tokens.push({type:e,close:i,position:{end:a}})}},{key:"scanTagName",value:function scanTagName(){var e="tag";var t=this.html,n=this.position;var r=t.length;var i=n.index;while(i<r){var a=t.charAt(i);var o=!(isWhitespaceChar(a)||a==="/"||a===">");if(o)break;i++}var s=i+1;while(s<r){var l=t.charAt(s);var u=!(isWhitespaceChar(l)||l==="/"||l===">");if(!u)break;s++}jumpPosition(n,t,s);var c=t.slice(i,s);this.tokens.push({type:e,content:c});return c}},{key:"scanAttrs",value:function scanAttrs(){var e=this.html,t=this.position,n=this.tokens;var r=t.index;var i=null;var a=r;var o=[];var s=e.length;while(r<s){var l=e.charAt(r);if(i){var u=l===i;if(u){i=null}r++;continue}var c=l==="/"||l===">";if(c){if(r!==a){o.push(e.slice(a,r))}break}if(isWordEnd(r,a,e)){if(r!==a){o.push(e.slice(a,r))}a=r+1;r++;continue}var d=l==="'"||l==='"';if(d){i=l;r++;continue}r++}jumpPosition(t,e,r);var f=o.length;var v="attribute";for(var h=0;h<f;h++){var p=o[h];var m=p.includes("=");if(m){var g=o[h+1];if(g&&g.startsWith("=")){if(g.length>1){var b=p+g;n.push({type:v,content:b});h+=1;continue}var y=o[h+2];h+=1;if(y){var _=p+"="+y;n.push({type:v,content:_});h+=1;continue}}}if(p.endsWith("=")){var k=o[h+1];if(k&&!k.includes("=")){var S=p+k;n.push({type:v,content:S});h+=1;continue}var w=p.slice(0,-1);n.push({type:v,content:w});continue}n.push({type:v,content:p})}}},{key:"scanSkipTag",value:function scanSkipTag(e){var t=this.html,n=this.position;var r=e.toLowerCase();var i=t.length;while(n.index<i){var a=t.indexOf("</",n.index);if(a===-1){this.scanText();break}jumpPosition(n,t,a);var o=this.scanTag();if(r===o.toLowerCase()){break}}}}]);return Scaner}();function unquote(e){var t=e.charAt(0);var n=e.length-1;var r=t==='"'||t==="'";if(r&&t===e.charAt(n)){return e.slice(1,n)}return e}var it="{";var at="}";var ot=".";var st="#";var lt=">";var ut="~";var ct="+";var dt=function(){function StyleTagParser(){(0,p["default"])(this,StyleTagParser);this.styles=[]}(0,m["default"])(StyleTagParser,[{key:"extractStyle",value:function extractStyle(e){var t=this;var n=/<style\s?[^>]*>((.|\n|\s)+?)<\/style>/g;var r=e;r=r.replace(n,(function(e,n){var r=n.trim();t.stringToSelector(r);return""}));return r.trim()}},{key:"stringToSelector",value:function stringToSelector(e){var t=this;var n=e.indexOf(it);var r=function _loop2(){var r=e.indexOf(at);var i=e.slice(0,n).trim();var a=e.slice(n+1,r);a=a.replace(/:(.*);/g,(function(e,t){var n=t.trim().replace(/ +/g,"+++");return":".concat(n,";")}));a=a.replace(/ /g,"");a=a.replace(/\+\+\+/g," ");if(!/;$/.test(a)){a+=";"}i.split(",").forEach((function(e){var n=t.parseSelector(e);t.styles.push({content:a,selectorList:n})}));e=e.slice(r+1);n=e.indexOf(it)};while(n>-1){r()}}},{key:"parseSelector",value:function parseSelector(e){var t=e.trim().replace(/ *([>~+]) */g," $1").replace(/ +/g," ").replace(/\[\s*([^[\]=\s]+)\s*=\s*([^[\]=\s]+)\s*\]/g,"[$1=$2]").split(" ");var n=t.map((function(e){var t=e.charAt(0);var n={isChild:t===lt,isGeneralSibling:t===ut,isAdjacentSibling:t===ct,tag:null,id:null,class:[],attrs:[]};e=e.replace(/^[>~+]/,"");e=e.replace(/\[(.+?)\]/g,(function(e,t){var i=t.split("="),a=(0,r["default"])(i,2),o=a[0],s=a[1];var l=t.indexOf("=")===-1;var u={all:l,key:o,value:l?null:s};n.attrs.push(u);return""}));e=e.replace(/([.#][A-Za-z0-9-_]+)/g,(function(e,t){if(t[0]===st){n.id=t.substr(1)}else if(t[0]===ot){n.class.push(t.substr(1))}return""}));if(e!==""){n.tag=e}return n}));return n}},{key:"matchStyle",value:function matchStyle(e,t,n){var r=this;var i=sortStyles(this.styles).reduce((function(i,a,o){var s=a.content,l=a.selectorList;var u=n[o];var c=l[u];var d=l[u+1];if((d===null||d===void 0?void 0:d.isGeneralSibling)||(d===null||d===void 0?void 0:d.isAdjacentSibling)){c=d;u+=1;n[o]+=1}var f=r.matchCurrent(e,t,c);if(f&&c.isGeneralSibling){var v=getPreviousElement(t);while(v){if(v.h5tagName&&r.matchCurrent(v.h5tagName,v,l[u-1])){f=true;break}v=getPreviousElement(v);f=false}}if(f&&c.isAdjacentSibling){var h=getPreviousElement(t);if(!h||!h.h5tagName){f=false}else{var p=r.matchCurrent(h.h5tagName,h,l[u-1]);if(!p){f=false}}}if(f){if(u===l.length-1){return i+s}else if(u<l.length-1){n[o]+=1}}else{if(c.isChild&&u>0){n[o]-=1;if(r.matchCurrent(e,t,l[n[o]])){n[o]+=1}}}return i}),"");return i}},{key:"matchCurrent",value:function matchCurrent(e,t,n){if(n.tag&&n.tag!==e)return false;if(n.id&&n.id!==t.id)return false;if(n.class.length){var r=t.className.split(" ");for(var i=0;i<n.class.length;i++){var a=n.class[i];if(r.indexOf(a)===-1){return false}}}if(n.attrs.length){for(var o=0;o<n.attrs.length;o++){var s=n.attrs[o],l=s.all,u=s.key,c=s.value;if(l&&!t.hasAttribute(u)){return false}else{var d=t.getAttribute(u);if(d!==unquote(c||"")){return false}}}}return true}}]);return StyleTagParser}();function getPreviousElement(e){var t=e.parentElement;if(!t)return null;var n=e.previousSibling;if(!n)return null;if(n.nodeType===1){return n}else{return getPreviousElement(n)}}function sortStyles(e){return e.sort((function(e,t){var n=getHundredsWeight(e.selectorList);var r=getHundredsWeight(t.selectorList);if(n!==r)return n-r;var i=getTensWeight(e.selectorList);var a=getTensWeight(t.selectorList);if(i!==a)return i-a;var o=getOnesWeight(e.selectorList);var s=getOnesWeight(t.selectorList);return o-s}))}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){var n=Object.create(null);var r=e.split(",");for(var i=0;i<r.length;i++){n[r[i]]=true}return t?function(e){return!!n[e.toLowerCase()]}:function(e){return!!n[e]}}var ft={img:"image",iframe:"web-view"};var vt=Object.keys(g.internalComponents).map((function(e){return e.toLowerCase()})).join(",");var ht=makeMap(vt,true);var pt=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",true);var mt=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",true);var gt={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]};function hasTerminalParent(e,t){var n=gt[e];if(n){var r=t.length-1;while(r>=0){var i=t[r].tagName;if(i===e){break}if(n&&n.includes(i)){return true}r--}}return false}function getTagName(e){if(Ze.html.renderHTMLTag){return e}if(ft[e]){return ft[e]}else if(ht(e)){return e}else if(mt(e)){return"view"}else if(pt(e)){return"text"}return"view"}function splitEqual(e){var t="=";var n=e.indexOf(t);if(n===-1)return[e];var r=e.slice(0,n).trim();var i=e.slice(n+t.length).trim();return[r,i]}function format(e,t,n,i){return e.filter((function(e){if(e.type==="comment"){return false}else if(e.type==="text"){return e.content!==""}return true})).map((function(e){if(e.type==="text"){var a=t.createTextNode(e.content);if((0,g.isFunction)(Ze.html.transformText)){a=Ze.html.transformText(a,e)}i===null||i===void 0?void 0:i.appendChild(a);return a}var o=t.createElement(getTagName(e.tagName));o.h5tagName=e.tagName;i===null||i===void 0?void 0:i.appendChild(o);if(!Ze.html.renderHTMLTag){o.className="h5-".concat(e.tagName)}for(var s=0;s<e.attributes.length;s++){var l=e.attributes[s];var u=splitEqual(l),c=(0,r["default"])(u,2),d=c[0],f=c[1];if(d==="class"){o.className+=" "+unquote(f)}else if(d[0]==="o"&&d[1]==="n"){continue}else{o.setAttribute(d,f==null?true:unquote(f))}}var v=n.styleTagParser,h=n.descendantList;var p=h.slice();var m=v.matchStyle(e.tagName,o,p);o.setAttribute("style",m+o.style.cssText);format(e.children,t,{styleTagParser:v,descendantList:p},o);if((0,g.isFunction)(Ze.html.transformElement)){return Ze.html.transformElement(o,e)}return o}))}function parser(e,t){var n=new dt;e=n.extractStyle(e);var r=new rt(e).scan();var i={tagName:"",children:[],type:"element",attributes:[]};var a={tokens:r,options:Ze,cursor:0,stack:[i]};parse(a);return format(i.children,t,{styleTagParser:n,descendantList:Array(n.styles.length).fill(0)})}function parse(e){var t=e.tokens,n=e.stack;var r=e.cursor;var i=t.length;var a=n[n.length-1].children;while(r<i){var o=t[r];if(o.type!=="tag-start"){a.push(o);r++;continue}var s=t[++r];r++;var l=s.content.toLowerCase();if(o.close){var u=n.length;var c=false;while(--u>-1){if(n[u].tagName===l){c=true;break}}while(r<i){var d=t[r];if(d.type!=="tag-end")break;r++}if(c){n.splice(u);break}else{continue}}var f=Ze.html.closingElements.has(l);var v=f;if(v){v=!hasTerminalParent(l,n)}if(v){var h=n.length-1;while(h>0){if(l===n[h].tagName){n.splice(h);var p=h-1;a=n[p].children;break}h=h-1}}var m=[];var g=void 0;while(r<i){g=t[r];if(g.type==="tag-end")break;m.push(g.content);r++}r++;var b=[];var y={type:"element",tagName:s.content,attributes:m,children:b};a.push(y);var _=!(g.close||Ze.html.voidElements.has(l));if(_){n.push({tagName:l,children:b});var k={tokens:t,cursor:r,stack:n};parse(k);r=k.cursor}}e.cursor=r}Ze.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:false};function setInnerHTML(e,t){while(e.firstChild){e.removeChild(e.firstChild)}var n=parser(t,e.ownerDocument);for(var r=0;r<n.length;r++){e.appendChild(n[r])}}function getBoundingClientRectImpl(){var e=this;if(!Ze.miniGlobal)return Promise.resolve(null);return new Promise((function(t){var n=Ze.miniGlobal.createSelectorQuery();n.select("#".concat(e.uid)).boundingClientRect((function(e){t(e)})).exec()}))}function getTemplateContent(e){if(e.nodeName==="template"){var t=e.ownerDocument;var n=t.createElement(N);n.childNodes=e.childNodes;e.childNodes=[n];n.parentNode=e;n.childNodes.forEach((function(e){e.parentNode=n}));return n}}function insertAdjacentHTML(e,t){var n,r;var i=parser(t,this.ownerDocument);for(var a=0;a<i.length;a++){var o=i[a];switch(e){case"beforebegin":(n=this.parentNode)===null||n===void 0?void 0:n.insertBefore(o,this);break;case"afterbegin":if(this.hasChildNodes()){this.insertBefore(o,this.childNodes[0])}else{this.appendChild(o)}break;case"beforeend":this.appendChild(o);break;case"afterend":(r=this.parentNode)===null||r===void 0?void 0:r.appendChild(o);break}}}function cloneNode(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=this.ownerDocument;var n;if(this.nodeType===1){n=t.createElement(this.nodeName)}else if(this.nodeType===3){n=t.createTextNode("")}for(var r in this){var i=this[r];if([G,H].includes(r)&&(0,l["default"])(i)===W){n[r]=Object.assign({},i)}else if(r==="_value"){n[r]=i}else if(r===F){n.style._value=Object.assign({},i._value);n.style._usedStyleProp=new Set(Array.from(i._usedStyleProp))}}if(e){n.childNodes=this.childNodes.map((function(e){return e.cloneNode(true)}))}return n}function contains(e){var t=false;this.childNodes.some((function(n){var r=n.uid;if(r===e.uid||r===e.id||n.contains(e)){t=true;return true}}));return t}if(!(0,g.isWebPlatform)()){if(true){Re.extend("innerHTML",{set:function set(e){setInnerHTML.call(this,this,e)},get:function get(){return""}});if(false){}}if(false){}if(false){}if(false){}if(false){}}var bt=function(){function TaroEvent(e,t,n){(0,p["default"])(this,TaroEvent);this._stop=false;this._end=false;this.defaultPrevented=false;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)}(0,m["default"])(TaroEvent,[{key:"stopPropagation",value:function stopPropagation(){this._stop=true}},{key:"stopImmediatePropagation",value:function stopImmediatePropagation(){this._end=this._stop=true}},{key:"preventDefault",value:function preventDefault(){this.defaultPrevented=true}},{key:"target",get:function get(){var e,t;var n=this.cacheTarget;if(!n){var r=Object.create(((e=this.mpEvent)===null||e===void 0?void 0:e.target)||null);var i=Ce.document.getElementById(r.id);r.dataset=i!==null?i.dataset:g.EMPTY_OBJ;for(var a in(t=this.mpEvent)===null||t===void 0?void 0:t.detail){r[a]=this.mpEvent.detail[a]}this.cacheTarget=r;return r}else{return n}}},{key:"currentTarget",get:function get(){var e,t,n,r;var i=this.cacheCurrentTarget;if(!i){var a=Ce.document;var o=Object.create(((e=this.mpEvent)===null||e===void 0?void 0:e.currentTarget)||null);var s=a.getElementById(o.id);var l=a.getElementById(((n=(t=this.mpEvent)===null||t===void 0?void 0:t.target)===null||n===void 0?void 0:n.id)||null);if(s===null||s&&s===l){this.cacheCurrentTarget=this.target;return this.target}o.dataset=s.dataset;for(var u in(r=this.mpEvent)===null||r===void 0?void 0:r.detail){o[u]=this.mpEvent.detail[u]}this.cacheCurrentTarget=o;return o}else{return i}}}]);return TaroEvent}();function createEvent(e,t){if(typeof e==="string"){return new bt(e,{bubbles:true,cancelable:true})}var n=new bt(e.type,{bubbles:true,cancelable:true},e);for(var r in e){if(r===K||r===$||r===Y||r===X){continue}else{n[r]=e[r]}}if(n.type===J&&(t===null||t===void 0?void 0:t.nodeName)===V){n[Z]=13}return n}var yt={};function getEventCBResult(e){var t=e[ce];if(!(0,g.isUndefined)(t)){delete e[ce]}return t}function eventHandler(e){var t,n;e.type===undefined&&Object.defineProperty(e,"type",{value:e._type});e.detail===undefined&&Object.defineProperty(e,"detail",{value:e._detail||Object.assign({},e)});e.currentTarget=e.currentTarget||e.target||Object.assign({},e);g.hooks.call("modifyMpEventImpl",e);var r=e.currentTarget;var i=((t=r.dataset)===null||t===void 0?void 0:t.sid)||r.id||((n=e.detail)===null||n===void 0?void 0:n.id)||"";var a=Ce.document.getElementById(i);if(a){var o=function dispatch(){var t=createEvent(e,a);g.hooks.call("modifyTaroEvent",t,a);a.dispatchEvent(t)};if(g.hooks.isExist("batchedEventUpdates")){var s=e.type;if(!g.hooks.call("isBubbleEvents",s)||!isParentBinded(a,s)||s===ee&&!!a.props.catchMove){g.hooks.call("batchedEventUpdates",(function(){if(yt[s]){yt[s].forEach((function(e){return e()}));delete yt[s]}o()}));return getEventCBResult(e)}else{(yt[s]||(yt[s]=[])).push(o)}}else{o();return getEventCBResult(e)}}}var _t=function(e){(0,d["default"])(FormElement,e);var t=(0,f["default"])(FormElement);function FormElement(){(0,p["default"])(this,FormElement);return t.apply(this,arguments)}(0,m["default"])(FormElement,[{key:"value",get:function get(){var e=this.props[z];return e==null?"":e},set:function set(e){this.setAttribute(z,e)}},{key:"dispatchEvent",value:function dispatchEvent(e){if(e.mpEvent){var t=e.mpEvent.detail.value;if(e.type===q){this.props.value=t}else if(e.type===V){this.value=t}}return(0,i["default"])((0,o["default"])(FormElement.prototype),"dispatchEvent",this).call(this,e)}}]);return FormElement}(Xe);var kt=function(){function Performance(){(0,p["default"])(this,Performance);this.recorder=new Map}(0,m["default"])(Performance,[{key:"start",value:function start(e){if(!Ze.debug){return}this.recorder.set(e,Date.now())}},{key:"stop",value:function stop(e){if(!Ze.debug){return}var t=Date.now();var n=this.recorder.get(e);this.recorder.delete(e);var r=t-n;console.log("".concat(e," 时长: ").concat(r,"ms"))}}]);return Performance}();var St=new kt;function findCustomWrapper(e,t){var n=t.slice(1);var r=e;var i;var a="";n.some((function(e,n){var o=e.replace(/^\[(.+)\]$/,"$1").replace(/\bcn\b/g,"childNodes");r=r[o];if((0,g.isArray)(r)){r=r.filter((function(e){return!isComment(e)}))}if((0,g.isUndefined)(r))return true;if(r.nodeName===Q){var s=ke.get(r.sid);if(s){i=s;a=t.slice(n+2).join(".")}}}));if(i){return{customWrapper:i,splitedPath:a}}}var wt=function(e){(0,d["default"])(TaroRootElement,e);var t=(0,f["default"])(TaroRootElement);function TaroRootElement(){var e;(0,p["default"])(this,TaroRootElement);e=t.call(this);e.updatePayloads=[];e.updateCallbacks=[];e.pendingUpdate=false;e.ctx=null;e.nodeName=P;e.tagName=P.toUpperCase();return e}(0,m["default"])(TaroRootElement,[{key:"_path",get:function get(){return P}},{key:"_root",get:function get(){return this}},{key:"enqueueUpdate",value:function enqueueUpdate(e){this.updatePayloads.push(e);if(!this.pendingUpdate&&this.ctx){this.performUpdate()}}},{key:"performUpdate",value:function performUpdate(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var n=arguments.length>1?arguments[1]:undefined;this.pendingUpdate=true;var r=this.ctx;setTimeout((function(){var i="".concat(w," 开始时间戳 ").concat(Date.now());St.start(i);var a=Object.create(null);var o=new Set(t?["root.cn.[0]","root.cn[0]"]:[]);while(e.updatePayloads.length>0){var s=e.updatePayloads.shift(),l=s.path,u=s.value;if(l.endsWith("cn")){o.add(l)}a[l]=u}var d=function _loop3(e){o.forEach((function(t){if(e.includes(t)&&e!==t){delete a[e]}}));var t=a[e];if((0,g.isFunction)(t)){a[e]=t()}};for(var f in a){d(f)}if((0,g.isFunction)(n))return n(a);e.pendingUpdate=false;var v={};var h=new Map;if(t){v=a}else{for(var p in a){var m=p.split(".");var b=findCustomWrapper(e,m);if(b){var y=b.customWrapper,_=b.splitedPath;h.set(y,Object.assign(Object.assign({},h.get(y)||{}),(0,c["default"])({},"i.".concat(_),a[p])))}else{v[p]=a[p]}}}var k=h.size;var S=Object.keys(v).length>0;var P=k+(S?1:0);var E=0;var C=function cb(){if(++E===P){St.stop(i);e.flushUpdateCallback();t&&St.stop(T)}};if(k){h.forEach((function(e,t){if(true&&Ze.debug){console.log("custom wrapper setData: ",e)}t.setData(e,C)}))}if(S){if(true&&Ze.debug){console.log("page setData:",v)}r.setData(v,C)}}),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)return;var t=e.slice(0);this.updateCallbacks.length=0;for(var n=0;n<t.length;n++){t[n]()}}}]);return TaroRootElement}(Xe);var Tt=function(e){(0,d["default"])(TaroText,e);var t=(0,f["default"])(TaroText);function TaroText(e){var n;(0,p["default"])(this,TaroText);n=t.call(this);n.nodeType=3;n.nodeName="#text";n._value=e;return n}(0,m["default"])(TaroText,[{key:"textContent",get:function get(){return this._value},set:function set(e){ye.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}}]);return TaroText}(Re);function __classPrivateFieldGet(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function __classPrivateFieldSet(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}var Pt;var Et=/[!'()~]|%20|%00/g;var Ct=/\+/g;var It={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};function replacer(e){return It[e]}function appendTo(e,t,n){var r=(0,g.isArray)(n)?n.join(","):n;if(t in e)e[t].push(r);else e[t]=[r]}function addEach(e,t){appendTo(this,t,e)}function decode(e){return decodeURIComponent(e.replace(Ct," "))}function encode(e){return encodeURIComponent(e).replace(Et,replacer)}var xt=function(){function URLSearchParams(e){(0,p["default"])(this,URLSearchParams);Pt.set(this,Object.create(null));e!==null&&e!==void 0?e:e="";var t=__classPrivateFieldGet(this,Pt,"f");if(typeof e==="string"){if(e.charAt(0)==="?"){e=e.slice(1)}for(var n=e.split("&"),r=0,i=n.length;r<i;r++){var a=n[r];var o=a.indexOf("=");if(o>-1){appendTo(t,decode(a.slice(0,o)),decode(a.slice(o+1)))}else if(a.length){appendTo(t,decode(a),"")}}}else{if((0,g.isArray)(e)){for(var s=0,l=e.length;s<l;s++){var u=e[s];appendTo(t,u[0],u[1])}}else if(e.forEach){e.forEach(addEach,t)}else{for(var c in e){appendTo(t,c,e[c])}}}}(0,m["default"])(URLSearchParams,[{key:"append",value:function append(e,t){appendTo(__classPrivateFieldGet(this,Pt,"f"),e,t)}},{key:"delete",value:function _delete(e){delete __classPrivateFieldGet(this,Pt,"f")[e]}},{key:"get",value:function get(e){var t=__classPrivateFieldGet(this,Pt,"f");return e in t?t[e][0]:null}},{key:"getAll",value:function getAll(e){var t=__classPrivateFieldGet(this,Pt,"f");return e in t?t[e].slice(0):[]}},{key:"has",value:function has(e){return e in __classPrivateFieldGet(this,Pt,"f")}},{key:"keys",value:function keys(){return Object.keys(__classPrivateFieldGet(this,Pt,"f"))}},{key:"set",value:function set(e,t){__classPrivateFieldGet(this,Pt,"f")[e]=[""+t]}},{key:"forEach",value:function forEach(e,t){var n=__classPrivateFieldGet(this,Pt,"f");Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)}},{key:"toJSON",value:function toJSON(){return{}}},{key:"toString",value:function toString(){var e=__classPrivateFieldGet(this,Pt,"f");var t=[];for(var n in e){var r=encode(n);for(var i=0,a=e[n];i<a.length;i++){t.push(r+"="+encode(a[i]))}}return t.join("&")}}]);return URLSearchParams}();Pt=new WeakMap;var jt,Ot,Nt,Rt,Lt,At;var Ft=function(){function URL(e,t){(0,p["default"])(this,URL);jt.set(this,"");Ot.set(this,"");Nt.set(this,"");Rt.set(this,"");Lt.set(this,"");At.set(this,void 0);if(!(0,g.isString)(e))e=String(e);var n=parseUrlBase(e,t);var r=n.hash,i=n.hostname,a=n.pathname,o=n.port,s=n.protocol,l=n.search;__classPrivateFieldSet(this,jt,r,"f");__classPrivateFieldSet(this,Ot,i,"f");__classPrivateFieldSet(this,Nt,a||"/","f");__classPrivateFieldSet(this,Rt,o,"f");__classPrivateFieldSet(this,Lt,s,"f");__classPrivateFieldSet(this,At,new xt(l),"f")}(0,m["default"])(URL,[{key:"protocol",get:function get(){return __classPrivateFieldGet(this,Lt,"f")},set:function set(e){(0,g.isString)(e)&&__classPrivateFieldSet(this,Lt,e.trim(),"f")}},{key:"host",get:function get(){return this.hostname+(this.port?":"+this.port:"")},set:function set(e){if(e&&(0,g.isString)(e)){e=e.trim();var t=parseUrl("//".concat(e)),n=t.hostname,r=t.port;this.hostname=n;this.port=r}}},{key:"hostname",get:function get(){return __classPrivateFieldGet(this,Ot,"f")},set:function set(e){e&&(0,g.isString)(e)&&__classPrivateFieldSet(this,Ot,e.trim(),"f")}},{key:"port",get:function get(){return __classPrivateFieldGet(this,Rt,"f")},set:function set(e){(0,g.isString)(e)&&__classPrivateFieldSet(this,Rt,e.trim(),"f")}},{key:"pathname",get:function get(){return __classPrivateFieldGet(this,Nt,"f")},set:function set(e){if((0,g.isString)(e)){e=e.trim();var t=/^(\/|\.\/|\.\.\/)/;var n=e;while(t.test(n)){n=n.replace(t,"")}if(n)__classPrivateFieldSet(this,Nt,"/"+n,"f");else __classPrivateFieldSet(this,Nt,"/","f")}}},{key:"search",get:function get(){var e=__classPrivateFieldGet(this,At,"f").toString();return e.length===0||e.startsWith("?")?e:"?".concat(e)},set:function set(e){if((0,g.isString)(e)){e=e.trim();__classPrivateFieldSet(this,At,new xt(e),"f")}}},{key:"hash",get:function get(){return __classPrivateFieldGet(this,jt,"f")},set:function set(e){if((0,g.isString)(e)){e=e.trim();if(e)__classPrivateFieldSet(this,jt,e.startsWith("#")?e:"#".concat(e),"f");else __classPrivateFieldSet(this,jt,"","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,g.isString)(e)){e=e.trim();var t=parseUrl(e),n=t.protocol,r=t.hostname,i=t.port,a=t.hash,o=t.search,s=t.pathname;this.protocol=n;this.hostname=r;this.pathname=s;this.port=i;this.hash=a;this.search=o}}},{key:"origin",get:function get(){return"".concat(this.protocol,"//").concat(this.host)},set:function set(e){if(e&&(0,g.isString)(e)){e=e.trim();var t=parseUrl(e),n=t.protocol,r=t.hostname,i=t.port;this.protocol=n;this.hostname=r;this.port=i}}},{key:"searchParams",get:function get(){return __classPrivateFieldGet(this,At,"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.")}}]);return URL}();jt=new WeakMap,Ot=new WeakMap,Nt=new WeakMap,Rt=new WeakMap,Lt=new WeakMap,At=new WeakMap;function parseUrl(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var t={href:"",origin:"",protocol:"",hostname:"",host:"",port:"",pathname:"",search:"",hash:""};if(!e||!(0,g.isString)(e))return t;e=e.trim();var n=/^(([^:/?#]+):)?\/\/(([^/?#]+):(.+)@)?([^/?#:]*)(:(\d+))?([^?#]*)(\?([^#]*))?(#(.*))?/;var r=e.match(n);if(!r)return t;t.protocol=r[1]||"https:";t.hostname=r[6]||"taro.com";t.port=r[8]||"";t.pathname=r[9]||"/";t.search=r[10]||"";t.hash=r[12]||"";t.href=e;t.origin=t.protocol+"//"+t.hostname;t.host=t.hostname+(t.port?":".concat(t.port):"");return t}function parseUrlBase(e,t){var n=/^(https?:)\/\//i;var r="";var i=null;if(!(0,g.isUndefined)(t)){t=String(t).trim();if(!n.test(t))throw new TypeError("Failed to construct 'URL': Invalid base URL");i=parseUrl(t)}e=String(e).trim();if(n.test(e)){r=e}else if(i){if(e){if(e.startsWith("//")){r=i.protocol+e}else{r=i.origin+(e.startsWith("/")?e:"/".concat(e))}}else{r=i.href}}else{throw new TypeError("Failed to construct 'URL': Invalid URL")}return parseUrl(r)}var Mt=function(e){(0,d["default"])(AnchorElement,e);var t=(0,f["default"])(AnchorElement);function AnchorElement(){(0,p["default"])(this,AnchorElement);return t.apply(this,arguments)}(0,m["default"])(AnchorElement,[{key:"href",get:function get(){var e;return(e=this.props["href"])!==null&&e!==void 0?e:""},set:function set(e){this.setAttribute("href",e)}},{key:"protocol",get:function get(){var e;return(e=this.props["protocol"])!==null&&e!==void 0?e:""}},{key:"host",get:function get(){var e;return(e=this.props["host"])!==null&&e!==void 0?e:""}},{key:"search",get:function get(){var e;return(e=this.props["search"])!==null&&e!==void 0?e:""}},{key:"hash",get:function get(){var e;return(e=this.props["hash"])!==null&&e!==void 0?e:""}},{key:"hostname",get:function get(){var e;return(e=this.props["hostname"])!==null&&e!==void 0?e:""}},{key:"port",get:function get(){var e;return(e=this.props["port"])!==null&&e!==void 0?e:""}},{key:"pathname",get:function get(){var e;return(e=this.props["pathname"])!==null&&e!==void 0?e:""}},{key:"setAttribute",value:function setAttribute(e,t){if(e==="href"){var n=parseUrl(t);for(var r in n){(0,i["default"])((0,o["default"])(AnchorElement.prototype),"setAttribute",this).call(this,r,n[r])}}else{(0,i["default"])((0,o["default"])(AnchorElement.prototype),"setAttribute",this).call(this,e,t)}}}]);return AnchorElement}(Xe);var Ut=function(e){(0,d["default"])(CustomWrapperElement,e);var t=(0,f["default"])(CustomWrapperElement);function CustomWrapperElement(){(0,p["default"])(this,CustomWrapperElement);return t.apply(this,arguments)}return(0,m["default"])(CustomWrapperElement)}(Xe);var Bt=function(e){(0,d["default"])(TaroDocument,e);var t=(0,f["default"])(TaroDocument);function TaroDocument(){var e;(0,p["default"])(this,TaroDocument);e=t.call(this);e.createEvent=createEvent;e.nodeType=9;e.nodeName=O;return e}(0,m["default"])(TaroDocument,[{key:"createElement",value:function createElement(e){var t=e.toLowerCase();var n;switch(true){case t===P:n=new wt;return n;case g.controlledComponent.has(t):n=new _t;break;case t===fe:n=new Mt;break;case t===Q:n=new Ut;break;default:n=new Xe;break}n.nodeName=t;n.tagName=e.toUpperCase();return n}},{key:"createElementNS",value:function createElementNS(e,t){return this.createElement(t)}},{key:"createTextNode",value:function createTextNode(e){return new Tt(e)}},{key:"getElementById",value:function getElementById(e){var t=Pe.get(e);return(0,g.isUndefined)(t)?null:t}},{key:"querySelector",value:function querySelector(e){if(/^#/.test(e)){return this.getElementById(e.slice(1))}return null}},{key:"querySelectorAll",value:function querySelectorAll(){return[]}},{key:"createComment",value:function createComment(){var e=new Tt("");e.nodeName=re;return e}},{key:"defaultView",get:function get(){return Ce.window}}]);return TaroDocument}(Xe);var Dt;if(true&&!(0,g.isWebPlatform)()){var Gt=function createDocument(){var e=new Bt;var t=e.createElement.bind(e);var n=t(E);var r=t(C);var i=t(I);var a=t(x);a.id=x;var o=t(j);e.appendChild(n);n.appendChild(r);n.appendChild(i);i.appendChild(o);o.appendChild(a);e.documentElement=n;e.head=r;e.body=i;return e};Dt=Ce.document=Gt()}else{Dt=Ce.document}function getComputedStyle(e){return e.style}var Ht=g.hooks.call("getEventCenter",g.Events);var Wt=function(){function RuntimeCache(e){(0,p["default"])(this,RuntimeCache);this.cache=new Map;this.name=e}(0,m["default"])(RuntimeCache,[{key:"has",value:function has(e){return this.cache.has(e)}},{key:"set",value:function set(e,t){if(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)}}]);return RuntimeCache}();var zt,Vt,qt,Qt,$t,Kt;var Yt=new Wt("history");var Jt=function(e){(0,d["default"])(History,e);var t=(0,f["default"])(History);function History(e,n){var r;(0,p["default"])(this,History);r=t.call(this);zt.add((0,u["default"])(r));Vt.set((0,u["default"])(r),void 0);qt.set((0,u["default"])(r),[]);Qt.set((0,u["default"])(r),0);$t.set((0,u["default"])(r),void 0);__classPrivateFieldSet((0,u["default"])(r),$t,n.window,"f");__classPrivateFieldSet((0,u["default"])(r),Vt,e,"f");__classPrivateFieldGet((0,u["default"])(r),Vt,"f").on("__record_history__",(function(e){var t;__classPrivateFieldSet((0,u["default"])(r),Qt,(t=__classPrivateFieldGet((0,u["default"])(r),Qt,"f"),t++,t),"f");__classPrivateFieldSet((0,u["default"])(r),qt,__classPrivateFieldGet((0,u["default"])(r),qt,"f").slice(0,__classPrivateFieldGet((0,u["default"])(r),Qt,"f")),"f");__classPrivateFieldGet((0,u["default"])(r),qt,"f").push({state:null,title:"",url:e})}),null);__classPrivateFieldGet((0,u["default"])(r),Vt,"f").on("__reset_history__",(function(e){__classPrivateFieldGet((0,u["default"])(r),zt,"m",Kt).call((0,u["default"])(r),e)}),null);r.on(ve.INIT,(function(){__classPrivateFieldGet((0,u["default"])(r),zt,"m",Kt).call((0,u["default"])(r))}),null);r.on(ve.RESTORE,(function(e){Yt.set(e,{location:__classPrivateFieldGet((0,u["default"])(r),Vt,"f"),stack:__classPrivateFieldGet((0,u["default"])(r),qt,"f").slice(),cur:__classPrivateFieldGet((0,u["default"])(r),Qt,"f")})}),null);r.on(ve.RECOVER,(function(e){if(Yt.has(e)){var t=Yt.get(e);__classPrivateFieldSet((0,u["default"])(r),Vt,t.location,"f");__classPrivateFieldSet((0,u["default"])(r),qt,t.stack,"f");__classPrivateFieldSet((0,u["default"])(r),Qt,t.cur,"f")}}),null);r.on(ve.DESTORY,(function(e){Yt.delete(e)}),null);__classPrivateFieldGet((0,u["default"])(r),zt,"m",Kt).call((0,u["default"])(r));return r}(0,m["default"])(History,[{key:"length",get:function get(){return __classPrivateFieldGet(this,qt,"f").length}},{key:"state",get:function get(){return __classPrivateFieldGet(this,qt,"f")[__classPrivateFieldGet(this,Qt,"f")].state}},{key:"go",value:function go(e){if(!(0,g.isNumber)(e)||isNaN(e))return;var t=__classPrivateFieldGet(this,Qt,"f")+e;t=Math.min(Math.max(t,0),this.length-1);__classPrivateFieldSet(this,Qt,t,"f");__classPrivateFieldGet(this,Vt,"f").trigger("__set_href_without_history__",__classPrivateFieldGet(this,qt,"f")[__classPrivateFieldGet(this,Qt,"f")].url);__classPrivateFieldGet(this,$t,"f").trigger("popstate",__classPrivateFieldGet(this,qt,"f")[__classPrivateFieldGet(this,Qt,"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){if(!n||!(0,g.isString)(n))return;__classPrivateFieldSet(this,qt,__classPrivateFieldGet(this,qt,"f").slice(0,__classPrivateFieldGet(this,Qt,"f")+1),"f");__classPrivateFieldGet(this,qt,"f").push({state:e,title:t,url:n});__classPrivateFieldSet(this,Qt,this.length-1,"f");__classPrivateFieldGet(this,Vt,"f").trigger("__set_href_without_history__",n)}},{key:"replaceState",value:function replaceState(e,t,n){if(!n||!(0,g.isString)(n))return;__classPrivateFieldGet(this,qt,"f")[__classPrivateFieldGet(this,Qt,"f")]={state:e,title:t,url:n};__classPrivateFieldGet(this,Vt,"f").trigger("__set_href_without_history__",n)}},{key:"cache",get:function get(){return Yt}}]);return History}(g.Events);Vt=new WeakMap,qt=new WeakMap,Qt=new WeakMap,$t=new WeakMap,zt=new WeakSet,Kt=function _History_reset(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";__classPrivateFieldSet(this,qt,[{state:null,title:"",url:e||__classPrivateFieldGet(this,Vt,"f").href}],"f");__classPrivateFieldSet(this,Qt,0,"f")};var Xt={app:null,router:null,page:null};var Zt=function getCurrentInstance(){return Xt};var en,tn,nn,rn,an,sn,ln,un,cn;var dn="https://taro.com";var fn=new Wt("location");var vn=function(e){(0,d["default"])(Location,e);var t=(0,f["default"])(Location);function Location(e){var n;(0,p["default"])(this,Location);n=t.call(this);en.add((0,u["default"])(n));tn.set((0,u["default"])(n),new Ft(dn));nn.set((0,u["default"])(n),false);rn.set((0,u["default"])(n),void 0);__classPrivateFieldSet((0,u["default"])(n),rn,e.window,"f");__classPrivateFieldGet((0,u["default"])(n),en,"m",an).call((0,u["default"])(n));n.on("__set_href_without_history__",(function(e){__classPrivateFieldSet((0,u["default"])(n),nn,true,"f");var t=__classPrivateFieldGet((0,u["default"])(n),tn,"f").hash;__classPrivateFieldGet((0,u["default"])(n),tn,"f").href=generateFullUrl(e);if(t!==__classPrivateFieldGet((0,u["default"])(n),tn,"f").hash){__classPrivateFieldGet((0,u["default"])(n),rn,"f").trigger("hashchange")}__classPrivateFieldSet((0,u["default"])(n),nn,false,"f")}),null);n.on(ve.INIT,(function(){__classPrivateFieldGet((0,u["default"])(n),en,"m",an).call((0,u["default"])(n))}),null);n.on(ve.RESTORE,(function(e){fn.set(e,{lastHref:n.href})}),null);n.on(ve.RECOVER,(function(e){if(fn.has(e)){var t=fn.get(e);__classPrivateFieldSet((0,u["default"])(n),nn,true,"f");__classPrivateFieldGet((0,u["default"])(n),tn,"f").href=t.lastHref;__classPrivateFieldSet((0,u["default"])(n),nn,false,"f")}}),null);n.on(ve.DESTORY,(function(e){fn.delete(e)}),null);return n}(0,m["default"])(Location,[{key:"protocol",get:function get(){return __classPrivateFieldGet(this,tn,"f").protocol},set:function set(e){var t=/^(http|https):$/i;if(!e||!(0,g.isString)(e)||!t.test(e.trim()))return;e=e.trim();var n=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").protocol=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,n))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"host",get:function get(){return __classPrivateFieldGet(this,tn,"f").host},set:function set(e){if(!e||!(0,g.isString)(e))return;e=e.trim();var t=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").host=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,t))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"hostname",get:function get(){return __classPrivateFieldGet(this,tn,"f").hostname},set:function set(e){if(!e||!(0,g.isString)(e))return;e=e.trim();var t=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").hostname=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,t))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"port",get:function get(){return __classPrivateFieldGet(this,tn,"f").port},set:function set(e){var t=Number(e=e.trim());if(!(0,g.isNumber)(t)||t<=0)return;var n=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").port=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,n))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"pathname",get:function get(){return __classPrivateFieldGet(this,tn,"f").pathname},set:function set(e){if(!e||!(0,g.isString)(e))return;e=e.trim();var t=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").pathname=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,t))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"search",get:function get(){return __classPrivateFieldGet(this,tn,"f").search},set:function set(e){if(!e||!(0,g.isString)(e))return;e=e.trim();e=e.startsWith("?")?e:"?".concat(e);var t=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").search=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,t))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"hash",get:function get(){return __classPrivateFieldGet(this,tn,"f").hash},set:function set(e){if(!e||!(0,g.isString)(e))return;e=e.trim();e=e.startsWith("#")?e:"#".concat(e);var t=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").hash=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,t))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"href",get:function get(){return __classPrivateFieldGet(this,tn,"f").href},set:function set(e){var t=/^(http:|https:)?\/\/.+/;if(!e||!(0,g.isString)(e)||!t.test(e=e.trim()))return;var n=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").href=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,n))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"origin",get:function get(){return __classPrivateFieldGet(this,tn,"f").origin},set:function set(e){var t=/^(http:|https:)?\/\/.+/;if(!e||!(0,g.isString)(e)||!t.test(e=e.trim()))return;var n=__classPrivateFieldGet(this,en,"m",sn).call(this);__classPrivateFieldGet(this,tn,"f").origin=e;if(__classPrivateFieldGet(this,en,"m",cn).call(this,n))__classPrivateFieldGet(this,en,"m",un).call(this)}},{key:"assign",value:function assign(){(0,g.warn)(true,"小程序环境中调用location.assign()无效.")}},{key:"reload",value:function reload(){(0,g.warn)(true,"小程序环境中调用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 fn}}]);return Location}(g.Events);tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,en=new WeakSet,an=function _Location_reset(){var e=Zt();var t=e.router;if(t){var n=t.path,r=t.params;var i=Object.keys(r).map((function(e){return"".concat(e,"=").concat(r[e])}));var a=i.length>0?"?"+i.join("&"):"";var o="".concat(dn).concat(n.startsWith("/")?n:"/"+n).concat(a);__classPrivateFieldSet(this,tn,new Ft(o),"f");this.trigger("__reset_history__",this.href)}},sn=function _Location_getPreValue(){return __classPrivateFieldGet(this,tn,"f")._toRaw()},ln=function _Location_rollBack(e){__classPrivateFieldGet(this,tn,"f").href=e},un=function _Location_recordHistory(){this.trigger("__record_history__",this.href)},cn=function _Location_checkUrlChange(e){if(__classPrivateFieldGet(this,nn,"f")){return false}var t=__classPrivateFieldGet(this,tn,"f")._toRaw(),n=t.protocol,r=t.hostname,i=t.port,a=t.pathname,o=t.search,s=t.hash;if(n!==e.protocol||r!==e.hostname||i!==e.port){__classPrivateFieldGet(this,en,"m",ln).call(this,e.href);return false}if(a!==e.pathname){return true}if(o!==e.search){return true}if(s!==e.hash){__classPrivateFieldGet(this,rn,"f").trigger("hashchange");return true}__classPrivateFieldGet(this,en,"m",ln).call(this,e.href);return false};function generateFullUrl(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var t=dn;if(/^[/?#]/.test(e)){return t+e}return e}var hn="Macintosh";var pn="Intel Mac OS X 10_14_5";var mn="AppleWebKit/534.36 (KHTML, like Gecko) NodeJS/v4.1.0 Chrome/76.0.3809.132 Safari/534.36";var gn="("+hn+"; "+pn+") "+mn;var bn=(0,g.isWebPlatform)()?Ce.window.navigator:{appCodeName:"Mozilla",appName:"Netscape",appVersion:"5.0 "+gn,cookieEnabled:true,mimeTypes:[],onLine:true,platform:"MacIntel",plugins:[],product:"Taro",productSub:"20030107",userAgent:"Mozilla/5.0 "+gn,vendor:"Joyent",vendorSub:""};var yn;(function(){var e;if(typeof performance!=="undefined"&&performance!==null&&performance.now){yn=function now(){return performance.now()}}else if(Date.now){e=Date.now();yn=function now(){return Date.now()-e}}else{e=(new Date).getTime();yn=function now(){return(new Date).getTime()-e}}})();var _n=0;var kn=typeof _!=="undefined"&&_!==null?_:function(e){var t=yn();var n=Math.max(_n+16,t);return setTimeout((function(){e(_n=n)}),n-t)};var Sn=typeof k!=="undefined"&&k!==null?k:function(e){clearTimeout(e)};var wn;if(true&&!(0,g.isWebPlatform)()){var Tn=function(e){(0,d["default"])(Window,e);var t=(0,f["default"])(Window);function Window(){var e;(0,p["default"])(this,Window);e=t.call(this);e.navigator=bn;e.requestAnimationFrame=kn;e.cancelAnimationFrame=Sn;e.getComputedStyle=getComputedStyle;var r=[].concat((0,h["default"])(Object.getOwnPropertyNames(n.g||{})),(0,h["default"])(Object.getOwnPropertySymbols(n.g||{})));r.forEach((function(t){if(t==="atob"||t==="document")return;if(!Object.prototype.hasOwnProperty.call((0,u["default"])(e),t)){try{e[t]=n.g[t]}catch(e){if(true){console.warn("[Taro warn] window.".concat(String(t)," 在赋值到 window 时报错"))}}}}));e.Date||(e.Date=Date);e.location=new vn({window:(0,u["default"])(e)});e.history=new Jt(e.location,{window:(0,u["default"])(e)});e.initEvent();return e}(0,m["default"])(Window,[{key:"initEvent",value:function initEvent(){var e=this.location;var t=this.history;this.on(ve.INIT,(function(t){e.trigger(ve.INIT,t)}),null);this.on(ve.RECOVER,(function(n){e.trigger(ve.RECOVER,n);t.trigger(ve.RECOVER,n)}),null);this.on(ve.RESTORE,(function(n){e.trigger(ve.RESTORE,n);t.trigger(ve.RESTORE,n)}),null);this.on(ve.DESTORY,(function(n){e.trigger(ve.DESTORY,n);t.trigger(ve.DESTORY,n)}),null)}},{key:"document",get:function get(){return Ce.document}},{key:"addEventListener",value:function addEventListener(e,t){if(!(0,g.isString)(e))return;this.on(e,t,null)}},{key:"removeEventListener",value:function removeEventListener(e,t){if(!(0,g.isString)(e))return;this.off(e,t,null)}},{key:"setTimeout",value:function(e){function setTimeout(){return e.apply(this,arguments)}setTimeout.toString=function(){return e.toString()};return setTimeout}((function(){return setTimeout.apply(void 0,arguments)}))},{key:"clearTimeout",value:function(e){function clearTimeout(){return e.apply(this,arguments)}clearTimeout.toString=function(){return e.toString()};return clearTimeout}((function(){return clearTimeout.apply(void 0,arguments)}))}]);return Window}(g.Events);wn=Ce.window=new Tn}else{wn=Ce.window}var Pn=wn.location;var En=wn.history;var Cn=function(e){(0,d["default"])(SVGElement,e);var t=(0,f["default"])(SVGElement);function SVGElement(){(0,p["default"])(this,SVGElement);return t.apply(this,arguments)}return(0,m["default"])(SVGElement)}(Xe);var In=new Map;var xn=_e();var jn=(0,g.isWebPlatform)();function injectPageInstance(e,t){g.hooks.call("mergePageInstance",In.get(t),e);In.set(t,e)}function getPageInstance(e){return In.get(e)}function removePageInstance(e){In.delete(e)}function addLeadingSlash(e){if(e==null){return""}return e.charAt(0)==="/"?e:"/"+e}function safeExecute(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++){r[i-2]=arguments[i]}var a=In.get(e);if(a==null){return}var o=g.hooks.call("getLifecycle",a,t);if((0,g.isArray)(o)){var s=o.map((function(e){return e.apply(a,r)}));return s[0]}if(!(0,g.isFunction)(o)){return}return o.apply(a,r)}function stringify(e){if(e==null){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("?");if(jn){return"".concat(n>-1?e.substring(0,n):e).concat(stringify((t===null||t===void 0?void 0:t.stamp)?{stamp:t.stamp}:{}))}else{return"".concat(n>-1?e.substring(0,n):e).concat(stringify(t))}}function getOnReadyEventKey(e){return e+"."+ae}function getOnShowEventKey(e){return e+"."+oe}function getOnHideEventKey(e){return e+"."+se}function createPageConfig(e,t,n,i){var a;var o=t!==null&&t!==void 0?t:"taro_page_".concat(xn());var s=(0,r["default"])(g.hooks.call("getMiniLifecycleImpl").page,7),l=s[0],u=s[1],d=s[2],f=s[3],v=s[4],h=s[5],p=s[6];var m=null;var b=false;var y=[];function setCurrentRouter(e){var t=jn?e.$taroPath:e.route||e.__route__||e.$taroPath;Xt.router={params:e.$taroParams,path:addLeadingSlash(t),$taroPath:e.$taroPath,onReady:getOnReadyEventKey(o),onShow:getOnShowEventKey(o),onHide:getOnHideEventKey(o)};if(!(0,g.isUndefined)(e.exitState)){Xt.router.exitState=e.exitState}}var _;var k;var S=(a={},(0,c["default"])(a,l,(function(){var t=this;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=arguments.length>1?arguments[1]:undefined;k=new Promise((function(e){_=e}));St.start(T);Xt.page=this;this.config=i||{};var a=Object.assign({},n,{$taroTimestamp:Date.now()});var s=this.$taroPath=getPath(o,a);if(jn){S.path=s}if(this.$taroParams==null){this.$taroParams=a}setCurrentRouter(this);if(!jn){wn.trigger(ve.INIT,s)}var l=function mount(){Xt.app.mount(e,s,(function(){m=Ce.document.getElementById(s);(0,g.ensure)(m!==null,"没有找到页面实例。");safeExecute(s,ie,t.$taroParams);_();if(!jn){m.ctx=t;m.performUpdate(true,r)}else{(0,g.isFunction)(r)&&r()}}))};if(b){y.push(l)}else{l()}})),(0,c["default"])(a,u,(function(){var e=this.$taroPath;if(!jn){wn.trigger(ve.DESTORY,e)}safeExecute(e,u);b=true;Xt.app.unmount(e,(function(){b=false;In.delete(e);if(m){m.ctx=null;m=null}if(y.length){y.forEach((function(e){return e()}));y=[]}}))})),(0,c["default"])(a,d,(function(){var e=this;k.then((function(){safeExecute(e.$taroPath,ae);kn((function(){return Ht.trigger(getOnReadyEventKey(o))}));e.onReady.called=true}))})),(0,c["default"])(a,f,(function(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};k.then((function(){Xt.page=e;setCurrentRouter(e);if(!jn){wn.trigger(ve.RECOVER,e.$taroPath)}safeExecute(e.$taroPath,oe,t);kn((function(){return Ht.trigger(getOnShowEventKey(o))}))}))})),(0,c["default"])(a,v,(function(){if(!jn){wn.trigger(ve.RESTORE,this.$taroPath)}if(Xt.page===this){Xt.page=null;Xt.router=null}safeExecute(this.$taroPath,se);Ht.trigger(getOnHideEventKey(o))})),a);h.forEach((function(e){S[e]=function(){return safeExecute.apply(void 0,[this.$taroPath,e].concat(Array.prototype.slice.call(arguments)))}}));p.forEach((function(t){var n;if(e[t]||((n=e.prototype)===null||n===void 0?void 0:n[t])||e[t.replace(/^on/,"enable")]){S[t]=function(){var e;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++){r[i]=arguments[i]}var a=(e=r[0])===null||e===void 0?void 0:e.target;if(a===null||a===void 0?void 0:a.id){var o=a.id;var s=Ce.document.getElementById(o);if(s){a.dataset=s.dataset}}return safeExecute.apply(void 0,[this.$taroPath,t].concat(r))}}}));S.eh=eventHandler;if(!(0,g.isUndefined)(n)){S.data=n}g.hooks.call("modifyPageObject",S);return S}function createComponentConfig(e,t,n){var i;var a=t!==null&&t!==void 0?t:"taro_component_".concat(xn());var o=null;var s=(0,r["default"])(g.hooks.call("getMiniLifecycleImpl").component,2),l=s[0],u=s[1];var d=(i={},(0,c["default"])(i,l,(function(){var t=this;var n;St.start(T);var r=getPath(a,{id:((n=this.getPageId)===null||n===void 0?void 0:n.call(this))||xn()});Xt.app.mount(e,r,(function(){o=Ce.document.getElementById(r);(0,g.ensure)(o!==null,"没有找到组件实例。");t.$taroInstances=In.get(r);safeExecute(r,ie);if(!jn){o.ctx=t;o.performUpdate(true)}}))})),(0,c["default"])(i,u,(function(){var e=getPath(a,{id:this.getPageId()});Xt.app.unmount(e,(function(){In.delete(e);if(o){o.ctx=null}}))})),(0,c["default"])(i,"methods",{eh:eventHandler}),i);if(!(0,g.isUndefined)(n)){d.data=n}[le,ue,de].forEach((function(t){var n;d[t]=(n=e[t])!==null&&n!==void 0?n:g.EMPTY_OBJ}));return d}function createRecursiveComponentConfig(e){var t;var n=e===Q;var i=(0,r["default"])(g.hooks.call("getMiniLifecycleImpl").component,2),a=i[0],o=i[1];var s=n?(t={},(0,c["default"])(t,a,(function(){var e,t;var n=((e=this.data.i)===null||e===void 0?void 0:e.sid)||((t=this.props.i)===null||t===void 0?void 0:t.sid);if((0,g.isString)(n)){ke.set(n,this);var r=Ce.document.getElementById(n);if(r){r.ctx=this}}})),(0,c["default"])(t,o,(function(){var e,t;var n=((e=this.data.i)===null||e===void 0?void 0:e.sid)||((t=this.props.i)===null||t===void 0?void 0:t.sid);if((0,g.isString)(n)){ke.delete(n);var r=Ce.document.getElementById(n);if(r){r.ctx=null}}})),t):g.EMPTY_OBJ;return Object.assign({properties:{i:{type:Object,value:(0,c["default"])({},"nn",(0,g.getComponentsAlias)(g.internalComponents)[U]._num)},l:{type:String,value:""}},options:{addGlobalClass:true,virtualHost:!n},methods:{eh:eventHandler}},s)}var On=function nextTick(e,t){var n,r,i;var a=Xt.router;var o=function timerFunc(){setTimeout((function(){t?e.call(t):e()}),1)};if(a!==null){var s=null;var l=a.$taroPath;s=Ce.document.getElementById(l);if(s===null||s===void 0?void 0:s.pendingUpdate){if((0,g.isWebPlatform)()){(i=(r=(n=s.firstChild)===null||n===void 0?void 0:n["componentOnReady"])===null||r===void 0?void 0:r.call(n).then((function(){o()})))!==null&&i!==void 0?i:o()}else{s.enqueueUpdateCallback(e,t)}}else{o()}}else{o()}}},"./node_modules/@tarojs/shared/dist/shared.esm.js":function(e,t,n){"use strict";n.d(t,{EMPTY_OBJ:function(){return pe},Events:function(){return le},capitalize:function(){return capitalize},controlledComponent:function(){return ne},ensure:function(){return ensure},getComponentsAlias:function(){return getComponentsAlias},hooks:function(){return he},internalComponents:function(){return te},isArray:function(){return ue},isBoolean:function(){return isBoolean},isFunction:function(){return isFunction},isNull:function(){return isNull},isNumber:function(){return isNumber},isObject:function(){return isObject},isString:function(){return isString},isUndefined:function(){return isUndefined},isWebPlatform:function(){return ce},mergeInternalComponents:function(){return mergeInternalComponents},mergeReconciler:function(){return mergeReconciler},noop:function(){return ge},processApis:function(){return processApis},toCamelCase:function(){return toCamelCase},toDashed:function(){return toDashed},warn:function(){return warn}});var r=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");var i=n("./node_modules/@babel/runtime/helpers/esm/inherits.js");var a=n("./node_modules/@babel/runtime/helpers/esm/createSuper.js");var o=n("./node_modules/@babel/runtime/helpers/esm/typeof.js");var s=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");var l=n("./node_modules/@babel/runtime/helpers/esm/createClass.js");var u="[]";var c="";var d="!0";var f="!1";var v={bindTouchStart:c,bindTouchMove:c,bindTouchEnd:c,bindTouchCancel:c,bindLongTap:c};var h={animation:c,bindAnimationStart:c,bindAnimationIteration:c,bindAnimationEnd:c,bindTransitionEnd:c};function singleQuote(e){return"'".concat(e,"'")}var p=Object.assign(Object.assign({"hover-class":singleQuote("none"),"hover-stop-propagation":f,"hover-start-time":"50","hover-stay-time":"400"},v),h);var m={type:c,size:"23",color:c};var g=Object.assign({longitude:c,latitude:c,scale:"16",markers:u,covers:c,polyline:u,circles:u,controls:u,"include-points":u,"show-location":c,"layer-style":"1",bindMarkerTap:c,bindControlTap:c,bindCalloutTap:c,bindUpdated:c},v);var b={percent:c,"stroke-width":"6",color:singleQuote("#09BB07"),activeColor:singleQuote("#09BB07"),backgroundColor:singleQuote("#EBEBEB"),active:f,"active-mode":singleQuote("backwards"),"show-info":f};var y={nodes:u};var _={selectable:f,space:c,decode:f};var k=Object.assign({size:singleQuote("default"),type:c,plain:f,disabled:c,loading:f,"form-type":c,"open-type":c,"hover-class":singleQuote("button-hover"),"hover-stop-propagation":f,"hover-start-time":"20","hover-stay-time":"70",name:c},v);var S={value:c,disabled:c,checked:f,color:singleQuote("#09BB07"),name:c};var w={bindChange:c,name:c};var T={"report-submit":f,bindSubmit:c,bindReset:c,name:c};var P={value:c,type:singleQuote(c),password:f,placeholder:c,"placeholder-style":c,"placeholder-class":singleQuote("input-placeholder"),disabled:c,maxlength:"140","cursor-spacing":"0",focus:f,"confirm-type":singleQuote("done"),"confirm-hold":f,cursor:"i.value.length","selection-start":"-1","selection-end":"-1",bindInput:c,bindFocus:c,bindBlur:c,bindConfirm:c,name:c};var E={for:c,name:c};var C={mode:singleQuote("selector"),disabled:c,range:c,"range-key":c,value:c,start:c,end:c,fields:singleQuote("day"),"custom-item":c,name:c,bindCancel:c,bindChange:c,bindColumnChange:c};var I={value:c,"indicator-style":c,"indicator-class":c,"mask-style":c,"mask-class":c,bindChange:c,name:c};var x={name:c};var j={value:c,checked:f,disabled:c,color:singleQuote("#09BB07"),name:c};var O={bindChange:c,name:c};var N={min:"0",max:"100",step:"1",disabled:c,value:"0",activeColor:singleQuote("#1aad19"),backgroundColor:singleQuote("#e9e9e9"),"block-size":"28","block-color":singleQuote("#ffffff"),"show-value":f,bindChange:c,bindChanging:c,name:c};var R={checked:f,disabled:c,type:singleQuote("switch"),color:singleQuote("#04BE02"),bindChange:c,name:c};var L={value:c,placeholder:c,"placeholder-style":c,"placeholder-class":singleQuote("textarea-placeholder"),disabled:c,maxlength:"140","auto-focus":f,focus:f,"auto-height":f,fixed:f,"cursor-spacing":"0",cursor:"-1","selection-start":"-1","selection-end":"-1",bindFocus:c,bindBlur:c,bindLineChange:c,bindInput:c,bindConfirm:c,name:c};var A={src:c,bindLoad:"eh",bindError:"eh"};var F=Object.assign({"scroll-top":f},v);var M={"scale-area":f};var U=Object.assign(Object.assign({direction:"none",inertia:f,"out-of-bounds":f,x:c,y:c,damping:"20",friction:"2",disabled:c,scale:f,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:c,bindScale:c,bindHTouchMove:c,bindVTouchMove:c,width:singleQuote("10px"),height:singleQuote("10px")},v),h);var B=Object.assign(Object.assign({"scroll-x":f,"scroll-y":f,"upper-threshold":"50","lower-threshold":"50","scroll-top":c,"scroll-left":c,"scroll-into-view":c,"scroll-with-animation":f,"enable-back-to-top":f,bindScrollToUpper:c,bindScrollToLower:c,bindScroll:c},v),h);var D=Object.assign({"indicator-dots":f,"indicator-color":singleQuote("rgba(0, 0, 0, .3)"),"indicator-active-color":singleQuote("#000000"),autoplay:f,current:"0",interval:"5000",duration:"500",circular:f,vertical:f,"previous-margin":singleQuote("0px"),"next-margin":singleQuote("0px"),"display-multiple-items":"1",bindChange:c,bindTransition:c,bindAnimationFinish:c},v);var G={"item-id":c};var H={url:c,"open-type":singleQuote("navigate"),delta:"1","hover-class":singleQuote("navigator-hover"),"hover-stop-propagation":f,"hover-start-time":"50","hover-stay-time":"600",bindSuccess:c,bindFail:c,bindComplete:c};var W={id:c,src:c,loop:f,controls:f,poster:c,name:c,author:c,bindError:c,bindPlay:c,bindPause:c,bindTimeUpdate:c,bindEnded:c};var z={"device-position":singleQuote("back"),flash:singleQuote("auto"),bindStop:c,bindError:c};var V=Object.assign({src:c,mode:singleQuote("scaleToFill"),"lazy-load":f,bindError:c,bindLoad:c},v);var q=Object.assign({src:c,autoplay:f,muted:f,orientation:singleQuote("vertical"),"object-fit":singleQuote("contain"),"background-mute":f,"min-cache":"1","max-cache":"3",bindStateChange:c,bindFullScreenChange:c,bindNetStatus:c},h);var Q=Object.assign({src:c,duration:c,controls:d,"danmu-list":c,"danmu-btn":c,"enable-danmu":c,autoplay:f,loop:f,muted:f,"initial-time":"0","page-gesture":f,direction:c,"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:c,"show-mute-btn":f,bindPlay:c,bindPause:c,bindEnded:c,bindTimeUpdate:c,bindFullScreenChange:c,bindWaiting:c,bindError:c},h);var $=Object.assign({"canvas-id":c,"disable-scroll":f,bindError:c},v);var K={"unit-id":c,"ad-intervals":c,bindLoad:c,bindError:c,bindClose:c};var Y={src:c,bindMessage:c,bindLoad:c,bindError:c};var J={};var X={name:c};var Z={name:c};var ee={name:c};var te={View:p,Icon:m,Progress:b,RichText:y,Text:_,Button:k,Checkbox:S,CheckboxGroup:w,Form:T,Input:P,Label:E,Picker:C,PickerView:I,PickerViewColumn:x,Radio:j,RadioGroup:O,Slider:N,Switch:R,CoverImage:A,Textarea:L,CoverView:F,MovableArea:M,MovableView:U,ScrollView:B,Swiper:D,SwiperItem:G,Navigator:H,Audio:W,Camera:z,Image:V,LivePlayer:q,Video:Q,Canvas:$,Ad:K,WebView:Y,Block:J,Map:g,Slot:Z,SlotView:X,NativeSlot:ee};var ne=new Set(["input","checkbox","picker","picker-view","radio","slider","switch","textarea"]);var re=new Set(["input","textarea"]);var ie=new Set(["progress","icon","rich-text","input","textarea","slider","switch","audio","ad","official-account","open-data","navigation-bar"]);var ae=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]]);var oe;(function(e){e["MINI"]="mini";e["WEB"]="web";e["RN"]="rn";e["HARMONY"]="harmony";e["QUICK"]="quickapp"})(oe||(oe={}));var se={h5:{type:oe.WEB},harmony:{type:oe.HARMONY},mini:{type:oe.MINI},rn:{type:oe.RN},quickapp:{type:oe.QUICK}};var le=function(){function Events(e){(0,s["default"])(this,Events);var t;this.callbacks=(t=e===null||e===void 0?void 0:e.callbacks)!==null&&t!==void 0?t:{}}(0,l["default"])(Events,[{key:"on",value:function on(e,t,n){var r,i,a,o;if(!t){return this}e=e.split(Events.eventSplitter);this.callbacks||(this.callbacks={});var s=this.callbacks;while(r=e.shift()){o=s[r];i=o?o.tail:{};i.next=a={};i.context=n;i.callback=t;s[r]={tail:a,next:o?o.next:i}}return this}},{key:"once",value:function once(e,t,n){var r=this;var i=function wrapper(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++){a[o]=arguments[o]}t.apply(r,a);r.off(e,wrapper,n)};this.on(e,i,n);return this}},{key:"off",value:function off(e,t,n){var r,i,a,o,s,l;if(!(i=this.callbacks)){return this}if(!(e||t||n)){delete this.callbacks;return this}e=e?e.split(Events.eventSplitter):Object.keys(i);while(r=e.shift()){a=i[r];delete i[r];if(!a||!(t||n)){continue}o=a.tail;while((a=a.next)!==o){s=a.callback;l=a.context;if(t&&s!==t||n&&l!==n){this.on(r,s,l)}}}return this}},{key:"trigger",value:function trigger(e){var t,n,r,i;if(!(r=this.callbacks)){return this}e=e.split(Events.eventSplitter);var a=[].slice.call(arguments,1);while(t=e.shift()){if(n=r[t]){i=n.tail;while((n=n.next)!==i){n.callback.apply(n.context||this,a)}}}return this}}]);return Events}();le.eventSplitter=",";function isString(e){return typeof e==="string"}function isUndefined(e){return typeof e==="undefined"}function isNull(e){return e===null}function isObject(e){return e!==null&&(0,o["default"])(e)==="object"}function isBoolean(e){return e===true||e===false}function isFunction(e){return typeof e==="function"}function isNumber(e){return typeof e==="number"}function isBooleanStringLiteral(e){return e==="true"||e==="false"}var ue=Array.isArray;var ce=function isWebPlatform(){return false||"mini"==="web"};var de;(function(e){e[e["SINGLE"]=0]="SINGLE";e[e["MULTI"]=1]="MULTI";e[e["WATERFALL"]=2]="WATERFALL"})(de||(de={}));var fe={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 ve=function(e){(0,i["default"])(TaroHooks,e);var t=(0,a["default"])(TaroHooks);function TaroHooks(e,n){var r;(0,s["default"])(this,TaroHooks);r=t.call(this,n);r.hooks=e;for(var i in e){var a=e[i].initial;if(isFunction(a)){r.on(i,a)}}return r}(0,l["default"])(TaroHooks,[{key:"tapOneOrMany",value:function tapOneOrMany(e,t){var n=this;var r=isFunction(t)?[t]:t;r.forEach((function(t){return n.on(e,t)}))}},{key:"tap",value:function tap(e,t){var n=this.hooks;var r=n[e],i=r.type,a=r.initial;if(i===de.SINGLE){this.off(e);this.on(e,isFunction(t)?t:t[t.length-1])}else{a&&this.off(e,a);this.tapOneOrMany(e,t)}}},{key:"call",value:function call(e){var t;var n=this.hooks[e];if(!n)return;var r=n.type;var i=this.callbacks;if(!i)return;var a=i[e];if(a){var o=a.tail;var s=a.next;for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++){u[c-1]=arguments[c]}var d=u;var f;while(s!==o){f=(t=s.callback)===null||t===void 0?void 0:t.apply(s.context||this,d);if(r===de.WATERFALL){var v=[f];d=v}s=s.next}return f}}},{key:"isExist",value:function isExist(e){var t;return Boolean((t=this.callbacks)===null||t===void 0?void 0:t[e])}}]);return TaroHooks}(le);var he=new ve({getMiniLifecycle:TaroHook(de.SINGLE,(function(e){return e})),getMiniLifecycleImpl:TaroHook(de.SINGLE,(function(){return this.call("getMiniLifecycle",fe)})),getLifecycle:TaroHook(de.SINGLE,(function(e,t){return e[t]})),getPathIndex:TaroHook(de.SINGLE,(function(e){return"[".concat(e,"]")})),getEventCenter:TaroHook(de.SINGLE,(function(e){return new e})),isBubbleEvents:TaroHook(de.SINGLE,(function(e){var t=new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]);return t.has(e)})),getSpecialNodes:TaroHook(de.SINGLE,(function(){return["view","text","image"]})),onRemoveAttribute:TaroHook(de.SINGLE),batchedEventUpdates:TaroHook(de.SINGLE),mergePageInstance:TaroHook(de.SINGLE),modifyPageObject:TaroHook(de.SINGLE),createPullDownComponent:TaroHook(de.SINGLE),getDOMNode:TaroHook(de.SINGLE),modifyHydrateData:TaroHook(de.SINGLE),modifySetAttrPayload:TaroHook(de.SINGLE),modifyRmAttrPayload:TaroHook(de.SINGLE),onAddEvent:TaroHook(de.SINGLE),modifyMpEvent:TaroHook(de.MULTI),modifyMpEventImpl:TaroHook(de.SINGLE,(function(e){try{this.call("modifyMpEvent",e)}catch(e){console.warn("[Taro modifyMpEvent hook Error]: "+(e===null||e===void 0?void 0:e.message))}})),injectNewStyleProperties:TaroHook(de.SINGLE),modifyTaroEvent:TaroHook(de.MULTI),modifyDispatchEvent:TaroHook(de.MULTI),initNativeApi:TaroHook(de.MULTI),patchElement:TaroHook(de.MULTI)});var pe={};var me=[];var ge=function noop(){};var be=function box(e){return{v:e}};var ye=function unbox(e){return e.v};function toDashed(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function toCamelCase(e){var t="";var n=false;for(var r=0;r<e.length;r++){if(e[r]!=="-"){t+=n?e[r].toUpperCase():e[r];n=false}else{n=true}}return t}var _e=function toKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ke=Object.prototype.hasOwnProperty;var Se=function hasOwn(e,t){return ke.call(e,t)};function ensure(e,t){if(!e){if(true){var n="\n如有疑问,请提交 issue 至:https://github.com/nervjs/taro/issues";throw new Error(t+n)}else{}}}function warn(e,t){if(true){if(e){console.warn("[taro warn] ".concat(t))}}}function queryToJson(e){var t=decodeURIComponent;var n=e.split("&");var r={};var i;var a;for(var o=0,s=n.length,l;o<s;++o){l=n[o];if(l.length){var u=l.indexOf("=");if(u<0){i=t(l);a=""}else{i=t(l.slice(0,u));a=t(l.slice(u+1))}if(typeof r[i]==="string"){r[i]=[r[i]]}if(Array.isArray(r[i])){r[i].push(a)}else{r[i]=a}}}return r}var we=1;var Te=(new Date).getTime().toString();function getUniqueKey(){return Te+we++}var Pe={};function cacheDataSet(e,t){Pe[e]=t}function cacheDataGet(e,t){var n=Pe[e];t&&delete Pe[e];return n}function cacheDataHas(e){return e in Pe}function mergeInternalComponents(e){Object.keys(e).forEach((function(t){if(t in te){Object.assign(te[t],e[t])}else{te[t]=e[t]}}));return te}function getComponentsAlias(e){var t={};var n=e.View;var r={"#text":{},StaticView:n,StaticImage:e.Image,StaticText:e.Text,PureView:n,CatchView:n};e=Object.assign(Object.assign({},e),r);Object.keys(e).sort((function(e,t){var n=/^(Static|Pure|Catch)*(View|Image|Text)$/;var r=n.test(e);var i=n.test(t);if(r&&i){return e>t?1:-1}else if(r){return-1}else if(i){return 1}else{return e>=t?1:-1}})).forEach((function(n,r){var i={_num:String(r)};Object.keys(e[n]).filter((function(e){return!/^bind/.test(e)&&!["focus","blur"].includes(e)})).sort().forEach((function(e,t){i[toCamelCase(e)]="p"+t}));t[toDashed(n)]=i}));return t}function getPlatformType(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"weapp";var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:oe.MINI;if(Object.keys(se).includes(e)){t=e}var n=se[t]||{};return n.type||t}function mergeReconciler(e,t){var n=t||he;var r=Object.keys(e);r.forEach((function(t){n.tap(t,e[t])}))}function nonsupport(e){return function(){console.warn("小程序暂不支持 ".concat(e))}}function setUniqueKeyToRoute(e,t){var n="__key_";var r=["navigateTo","redirectTo","reLaunch","switchTab"];if(r.indexOf(e)>-1){var i=t.url=t.url||"";var a=i.indexOf("?")>-1;var o=getUniqueKey();t.url+=(a?"&":"?")+"".concat(n,"=").concat(o)}}function indent(e,t){return e.split("\n").map((function(e,n){var r=n===0?"":Array(t).fill(" ").join("");return r+e})).join("\n")}var Ee=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 getCanIUseWebp(e){return function(){var t;var n=(t=e.getSystemInfoSync)===null||t===void 0?void 0:t.call(e);if(!n){if(true){console.error("不支持 API canIUseWebp")}return false}var r=n.platform;var i=r.toLowerCase();if(i==="android"||i==="devtools"){return true}return false}}function getNormalRequest(e){return function request(t){t=t?isString(t)?{url:t}:t:{};var n=t.success;var r=t.fail;var i=t.complete;var a;var o=new Promise((function(o,s){t.success=function(e){n&&n(e);o(e)};t.fail=function(e){r&&r(e);s(e)};t.complete=function(e){i&&i(e)};a=e.request(t)}));equipTaskMethodsIntoPromise(a,o);o.abort=function(e){e&&e();if(a){a.abort()}return o};return o}}function processApis(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i=n.needPromiseApis||[];var a=new Set([].concat((0,r["default"])(i),(0,r["default"])(Ee)));var o=["getEnv","interceptors","Current","getCurrentInstance","options","nextTick","eventCenter","Events","preload","webpackJsonp"];var s=new Set(!n.isOnlyPromisify?Object.keys(t).filter((function(e){return o.indexOf(e)===-1})):i);if(n.modifyApis){n.modifyApis(s)}s.forEach((function(r){if(a.has(r)){var i=r;e[i]=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++){a[o-1]=arguments[o]}var s=i;if(typeof e==="string"){if(a.length){return t[s].apply(t,[e].concat(a))}return t[s](e)}if(n.transformMeta){var l=n.transformMeta(s,e);s=l.key;e=l.options;if(!t.hasOwnProperty(s)){return nonsupport(s)()}}var u=null;var c=Object.assign({},e);setUniqueKeyToRoute(s,e);var d=new Promise((function(r,i){c.success=function(t){var i,a;(i=n.modifyAsyncResult)===null||i===void 0?void 0:i.call(n,s,t);(a=e.success)===null||a===void 0?void 0:a.call(e,t);if(s==="connectSocket"){r(Promise.resolve().then((function(){return u?Object.assign(u,t):t})))}else{r(t)}};c.fail=function(t){var n;(n=e.fail)===null||n===void 0?void 0:n.call(e,t);i(t)};c.complete=function(t){var n;(n=e.complete)===null||n===void 0?void 0:n.call(e,t)};if(a.length){u=t[s].apply(t,[c].concat(a))}else{u=t[s](c)}}));if(["uploadFile","downloadFile"].includes(s)){equipTaskMethodsIntoPromise(u,d);d.progress=function(e){u===null||u===void 0?void 0:u.onProgressUpdate(e);return d};d.abort=function(e){e===null||e===void 0?void 0:e();u===null||u===void 0?void 0:u.abort();return d}}return d}}else{var o=r;if(n.transformMeta){o=n.transformMeta(r,{}).key}if(!t.hasOwnProperty(o)){e[r]=nonsupport(r);return}if(isFunction(t[r])){e[r]=function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++){i[a]=arguments[a]}if(n.handleSyncApis){return n.handleSyncApis(r,t,i)}else{return t[o].apply(t,i)}}}else{e[r]=t[o]}}}));!n.isOnlyPromisify&&equipCommonApis(e,t,n)}function equipCommonApis(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};e.canIUseWebp=getCanIUseWebp(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 r=n.request||getNormalRequest(t);function taroInterceptor(e){return r(e.requestParams)}var i=new e.Link(taroInterceptor);e.request=i.request.bind(i);e.addInterceptor=i.addInterceptor.bind(i);e.cleanInterceptors=i.cleanInterceptors.bind(i);e.miniGlobal=e.options.miniGlobal=t;e.initAppInfo=function(t){if(typeof e.getAppInfo!=="function")return;e.getAppInfo=function(){return t}}}function equipTaskMethodsIntoPromise(e,t){if(!e||!t)return;var n=["abort","onHeadersReceived","offHeadersReceived","onProgressUpdate","offProgressUpdate","onChunkReceived","offChunkReceived"];e&&n.forEach((function(n){if(n in e){t[n]=e[n].bind(e)}}))}},"./node_modules/@tarojs/taro/index.js":function(e,t,n){var r=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),i=r.hooks;var a=n("./node_modules/@tarojs/api/dist/index.esm.js")["default"];if(i.isExist("initNativeApi")){i.call("initNativeApi",a)}e.exports=a;e.exports["default"]=e.exports},"./node_modules/@tarojs/webpack5-runner/dist/template/comp.js":function(e,t,n){"use strict";var r=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");Component((0,r.createRecursiveComponentConfig)())},"./node_modules/@tarojs/webpack5-runner/dist/template/custom-wrapper.js":function(e,t,n){"use strict";var r;r={value:true};var i=n("./node_modules/@tarojs/runtime/dist/runtime.esm.js");Component((0,i.createRecursiveComponentConfig)("custom-wrapper"))}}]); |