(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[907],{3114:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r={};n.r(r),n.d(r,{logInterceptor:function(){return v},timeoutInterceptor:function(){return f}});var i=n(7842),o=n(1186),a={WEAPP:"WEAPP",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD",WEB:"WEB",RN:"RN",HARMONY:"HARMONY",QUICKAPP:"QUICKAPP",HARMONYHYBRID:"HARMONYHYBRID"};function s(){return a.WEAPP}var u=n(3029),c=n(2901),l=function(){function e(t,n,r){(0,u.A)(this,e),this.index=r||0,this.requestParams=t||{},this.interceptors=n||[]}return(0,c.A)(e,[{key:"proceed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.requestParams=e,this.index>=this.interceptors.length)throw new Error("chain \u53c2\u6570\u9519\u8bef, \u8bf7\u52ff\u76f4\u63a5\u4fee\u6539 request.chain");var t=this._getNextInterceptor(),n=this._getNextChain(),r=t(n),i=r.catch(function(e){return Promise.reject(e)});return Object.keys(r).forEach(function(e){return(0,o.Tn)(r[e])&&(i[e]=r[e])}),i}},{key:"_getNextInterceptor",value:function(){return this.interceptors[this.index]}},{key:"_getNextChain",value:function(){return new e(this.requestParams,this.interceptors,this.index+1)}}])}(),d=function(){function e(t){(0,u.A)(this,e),this.taroInterceptor=t,this.chain=new l}return(0,c.A)(e,[{key:"request",value:function(e){var t=this.chain,n=this.taroInterceptor;return t.interceptors=t.interceptors.filter(function(e){return e!==n}).concat(n),t.proceed(Object.assign({},e))}},{key:"addInterceptor",value:function(e){this.chain.interceptors.push(e)}},{key:"cleanInterceptors",value:function(){this.chain=new l}}])}();function h(e){return new d(function(t){return e(t.requestParams)})}function f(e){var t,n=e.requestParams,r=new Promise(function(r,i){var o=setTimeout(function(){clearTimeout(o),i(new Error("\u7f51\u7edc\u94fe\u63a5\u8d85\u65f6,\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"))},n&&n.timeout||6e4);t=e.proceed(n),t.then(function(e){o&&(clearTimeout(o),r(e))}).catch(function(e){o&&clearTimeout(o),i(e)})});return!(0,o.b0)(t)&&(0,o.Tn)(t.abort)&&(r.abort=t.abort),r}function v(e){var t=e.requestParams,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),s=a.then(function(e){return console.log("http <-- ".concat(i," result:"),e),e});return(0,o.Tn)(a.abort)&&(s.abort=a.abort),s}var p=n(4467);function g(e){return e}function m(e){return function(t,n){e.preloadData=(0,o.Gv)(t)?t:(0,p.A)({},t,n)}}var b=750,y={640:1.17,750:1,828:.905},k=20,w=5,E="rpx";function A(e){return function(t){var n=t.designWidth,r=void 0===n?b:n,i=t.deviceRatio,o=void 0===i?y:i,a=t.baseFontSize,s=void 0===a?k:a,u=t.targetUnit,c=void 0===u?E:u,l=t.unitPrecision,d=void 0===l?w:l;e.config=e.config||{},e.config.designWidth=r,e.config.deviceRatio=o,e.config.baseFontSize=s,e.config.targetUnit=c,e.config.unitPrecision=d}}function S(e){return function(t){var n=e.config||{},r=n.baseFontSize,i=n.deviceRatio||y,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,o.Tn)(n.designWidth)?n.designWidth(e):n.designWidth||b}(t);if(!(a in i))throw new Error("deviceRatio \u914d\u7f6e\u4e2d\u4e0d\u5b58\u5728 ".concat(a," \u7684\u8bbe\u7f6e\uff01"));var s=n.targetUnit||E,u=n.unitPrecision||w,c=~~t,l=1/i[a];switch(s){case"rem":l*=2*r;break;case"px":l*=2;break}var d=c/l;return u>=0&&u<=100&&(d=Number(d.toFixed(u))),d+s}}var C={Behavior:g,getEnv:s,ENV_TYPE:a,Link:d,interceptors:r,Current:i.Current,getCurrentInstance:i.getCurrentInstance,options:i.options,nextTick:i.nextTick,eventCenter:i.eventCenter,Events:o.sV,getInitPxTransform:A,interceptorify:h};C.initPxTransform=A(C),C.preload=m(i.Current),C.pxTransform=S(C)},1291:function(e,t,n){"use strict";n.d(t,{ND:function(){return K}});var r=n(4467),i=n(5544),o=n(3029),a=n(2901),s=n(6919),u=n(5501),c=n(436),l=n(1186),d=n(7842),h={PageContext:l.MZ,R:l.MZ},f="taro-app";function v(e,t){var n,r=t.prototype;return!(null===(n=t.displayName)||void 0===n?void 0:n.includes("Connect"))&&((0,l.Tn)(t.render)||!!(null===r||void 0===r?void 0:r.isReactComponent)||r instanceof e.Component)}function p(e){return(0,l.cy)(e)?e:e?[e]:[]}function g(e){return e.writable=!0,e.enumerable=!0,e}function m(e){d.Current.router=Object.assign({params:null===e||void 0===e?void 0:e.query},e)}var b,y,k=function(e){return function(t){var n=h.R,r=h.PageContext,i=n.useContext(r)||f,o=n.useRef(),a=n.useRef(t);a.current!==t&&(a.current=t),n.useLayoutEffect(function(){var t=o.current=(0,d.getPageInstance)(i),n=!1;t||(n=!0,o.current=Object.create(null),t=o.current);var r=function(){return a.current.apply(a,arguments)};return(0,l.Tn)(t[e])?t[e]=[t[e],r]:t[e]=[].concat((0,c.A)(t[e]||[]),[r]),n&&(0,d.injectPageInstance)(t,i),function(){var t=o.current;if(t){var n=t[e];n===r?t[e]=void 0:(0,l.cy)(n)&&(t[e]=n.filter(function(e){return e!==r})),o.current=void 0}}},[])}},w=k("componentDidHide"),E=k("componentDidShow"),A=k("onError"),S=k("onUnhandledRejection"),C=k("onLaunch"),T=k("onPageNotFound"),x=k("onLoad"),L=k("onPageScroll"),P=k("onPullDownRefresh"),I=k("onPullIntercept"),N=k("onReachBottom"),O=k("onResize"),_=k("onUnload"),R=k("onAddToFavorites"),B=k("onOptionMenuClick"),M=k("onSaveExitState"),j=k("onShareAppMessage"),D=k("onShareTimeline"),G=k("onTitleClick"),U=k("onReady"),F=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=h.R;return e?d.Current.router:t.useMemo(function(){return d.Current.router},[])},V=k("onTabItemTap"),W=function(){},H=Object.freeze({__proto__:null,useAddToFavorites:R,useDidHide:w,useDidShow:E,useError:A,useLaunch:C,useLoad:x,useOptionMenuClick:B,usePageNotFound:T,usePageScroll:L,usePullDownRefresh:P,usePullIntercept:I,useReachBottom:N,useReady:U,useResize:O,useRouter:F,useSaveExitState:M,useScope:W,useShareAppMessage:j,useShareTimeline:D,useTabItemTap:V,useTitleClick:G,useUnhandledRejection:S,useUnload:_}),z=(0,d.incrementId)();function J(e){l.JL.tap("getLifecycle",function(e,t){return t=t.replace(/^on(Show|Hide)$/,"componentDid$1"),e[t]}),l.JL.tap("modifyMpEvent",function(e){Object.defineProperty(e,"type",{value:e.type.replace(/-/g,"")})}),l.JL.tap("batchedEventUpdates",function(t){e.unstable_batchedUpdates(t)}),l.JL.tap("mergePageInstance",function(e,t){e&&t&&("constructor"in e||Object.keys(e).forEach(function(n){var r=e[n],i=p(t[n]);t[n]=i.concat(r)}))})}function q(e,t){return function(n){var r=v(e,n),i=function(e){return e&&(0,d.injectPageInstance)(e,t)},c=r?{ref:i}:{forwardedRef:i,reactReduxForwardedRef:i};return h.PageContext===l.MZ&&(h.PageContext=e.createContext("")),function(e){function r(){var e;return(0,o.A)(this,r),e=(0,s.A)(this,r,arguments),e.state={hasError:!1},e}return(0,u.A)(r,e),(0,a.A)(r,[{key:"componentDidCatch",value:function(e,t){0}},{key:"render",value:function(){var e=this.state.hasError?[]:b(h.PageContext.Provider,{value:t},b(n,Object.assign(Object.assign({},this.props),c)));return b("root",{id:t},e)}}],[{key:"getDerivedStateFromError",value:function(e){var t,n;return null===(n=null===(t=d.Current.app)||void 0===t?void 0:t.onError)||void 0===n||n.call(t,e.message+e.stack),{hasError:!0}}}])}(e.Component)}}function K(e,t,n,c){h.R=t,b=t.createElement,y=n,t.Fragment;var p,k,w=t.createRef(),E=v(t,e),A=new Promise(function(e){return k=e});function S(){return w.current}function C(e){A.then(function(){return e()})}function T(){var e,n,r="app";var i=d.document.getElementById(r);if((t.version||"").startsWith("18")){var o=y.createRoot(i);null===(e=o.render)||void 0===e||e.call(o,b(x))}else null===(n=y.render)||void 0===n||n.call(y,b(x),i)}J(y);var x=function(n){function r(e){var t;return(0,o.A)(this,r),t=(0,s.A)(this,r,[e]),t.pages=[],t.elements=[],p=t,k(t),t}return(0,u.A)(r,n),(0,a.A)(r,[{key:"mount",value:function(e,n,r){var i=q(t,n)(e),o=n+z(),a=function(){return b(i,{key:o,tid:n})};this.pages.push(a),this.forceUpdate(r)}},{key:"unmount",value:function(e,t){var n=this.elements,r=n.findIndex(function(t){return t.props.tid===e});n.splice(r,1),this.forceUpdate(t)}},{key:"render",value:function(){var t=this.pages,n=this.elements;while(t.length>0){var r=t.pop();n.push(r())}var i=null;return E&&(i={ref:w}),b(e,i,n.slice())}}])}(t.Component);T();var L=(0,i.A)(l.JL.call("getMiniLifecycleImpl").app,3),P=L[0],I=L[1],N=L[2],O=Object.create({render:function(e){p.forceUpdate(e)},mount:function(e,t,n){p?p.mount(e,t,n):A.then(function(r){return r.mount(e,t,n)})},unmount:function(e,t){p?p.unmount(e,t):A.then(function(n){return n.unmount(e,t)})}},(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({config:g({configurable:!0,value:c})},P,g({value:function(e){var t=this;m(e);var n=function(){var n,r=S();if(t.$app=r,r){if(r.taroGlobalData){var i=r.taroGlobalData,o=Object.keys(i),a=Object.getOwnPropertyDescriptors(i);o.forEach(function(e){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return i[e]},set:function(t){i[e]=t}})}),Object.defineProperties(t,a)}null===(n=r.onLaunch)||void 0===n||n.call(r,e)}_("onLaunch",e)};C(n)}})),I,g({value:function(e){m(e);var t=function(){var t,n=S();null===(t=null===n||void 0===n?void 0:n.componentDidShow)||void 0===t||t.call(n,e),_("onShow",e)};C(t)}})),N,g({value:function(){var e=function(){var e,t=S();null===(e=null===t||void 0===t?void 0:t.componentDidHide)||void 0===e||e.call(t),_("onHide")};C(e)}})),"onError",g({value:function(e){var t=function(){var t,n=S();null===(t=null===n||void 0===n?void 0:n.onError)||void 0===t||t.call(n,e),_("onError",e)};C(t)}})),"onUnhandledRejection",g({value:function(e){var t=function(){var t,n=S();null===(t=null===n||void 0===n?void 0:n.onUnhandledRejection)||void 0===t||t.call(n,e),_("onUnhandledRejection",e)};C(t)}})),"onPageNotFound",g({value:function(e){var t=function(){var t,n=S();null===(t=null===n||void 0===n?void 0:n.onPageNotFound)||void 0===t||t.call(n,e),_("onPageNotFound",e)};C(t)}})));function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r3&&void 0!==arguments[3]?arguments[3]:"string";null!=n?"number"===r?(0===n&&""===e.value||t!=n)&&(e.value=D(n)):t!==D(n)&&(e.value=D(n)):"submit"!==r&&"reset"!==r||e.removeAttribute("value")}function F(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();if("input"===t){var n=e.type;return!n||!!f[n]}return"textarea"===t}var V=G,W=B;function H(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function z(e){return e._valueTracker}function J(e){e._valueTracker=null}function q(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,enumerable:n.enumerable,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}});var a={getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){J(e),delete e[t]}};return a}}function K(e){z(e)||(e._valueTracker=q(e))}function $(e,t){if(!e)return!1;var n=z(e);if(!n)return!0;var r=n.getValue();return t!==r&&(n.setValue(t),!0)}function Y(e){return"o"===e[0]&&"n"===e[1]}var Z=/aspect|acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Q(e,t,n){var r=ee(e,t,n);r&&X(e,t,r)}function X(e,t,n){for(var r=0;r0&&(e.textContent="")}},oe=d()(ie),ae=null;function se(e,t){var n,r,i=N(t),o=e.type;if(i&&F(t)&&("input"===o||"change"===o)){var a=D(null===(r=null===(n=e.mpEvent)||void 0===n?void 0:n.detail)||void 0===r?void 0:r.value);return ue(i,a)}}function ue(e,t){var n=O(e);return!!n&&($(n,t)?e:void 0)}function ce(e){ae?ae.push(e):ae=[e]}function le(){return null!==ae}function de(){var e=le();e&&(oe.flushSync(),he())}function he(){if(ae){var e=ae;ae=null;for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},r=pe.get(e);if(null!=r)return r;var i=new ge(oe,e,n);return pe.set(e,i),I(null===(t=null===i||void 0===i?void 0:i.internalRoot)||void 0===t?void 0:t.current,e),u.JL.tap("dispatchTaroEvent",function(e,t){var n=k(e.type);oe.runWithPriority(n,function(){t.dispatchEvent(e)})}),u.JL.tap("modifyTaroEvent",function(e,t){var n,r,i=se(e,t);if(i){var o=null===(r=null===(n=e.mpEvent)||void 0===n?void 0:n.detail)||void 0===r?void 0:r.value;ce({target:t,value:o})}}),i}var ye=!1,ke=function(e,t){if(ye)return e(t);ye=!0;try{return oe.batchedUpdates(e,t)}finally{ye=!1,de()}};function we(e){(0,u.D8)(e&&[1,8,9,11].includes(e.nodeType),"unmountComponentAtNode(...): Target container is not a DOM element.");var t=pe.get(e);return!!t&&(ke(function(){t.unmount(function(){pe.delete(e)})},null),!0)}function Ee(e){if(null==e)return null;var t=e.nodeType;return 1===t||3===t?e:oe.findHostInstance(e)}var Ae=(0,u.Tn)(Symbol)&&Symbol.for?Symbol.for("react.portal"):60106;function Se(e,t,n){return{$$typeof:Ae,key:null==n?null:String(n),children:e,containerInfo:t,implementation:null}}var Ce={render:me,createRoot:be,unstable_batchedUpdates:ke,unmountComponentAtNode:we,findDOMNode:Ee,createPortal:Se}},7842:function(e,t,n){"use strict";n.r(t),n.d(t,{A:function(){return pe},APP:function(){return P},BEHAVIORS:function(){return ve},BODY:function(){return L},CATCHMOVE:function(){return ie},CATCH_VIEW:function(){return oe},CHANGE:function(){return J},CLASS:function(){return B},COMMENT:function(){return ae},COMPILE_MODE:function(){return re},CONFIRM:function(){return Z},CONTAINER:function(){return I},CONTEXT_ACTIONS:function(){return r},CURRENT_TARGET:function(){return $},CUSTOM_WRAPPER:function(){return q},Current:function(){return hr},DATASET:function(){return V},DATE:function(){return te},DOCUMENT_ELEMENT_NAME:function(){return N},DOCUMENT_FRAGMENT:function(){return O},EVENT_CALLBACK_RESULT:function(){return fe},EXTERNAL_CLASSES:function(){return he},Events:function(){return g.sV},FOCUS:function(){return j},FormElement:function(){return fn},HEAD:function(){return x},HOOKS_APP_ID:function(){return E},HTML:function(){return T},History:function(){return dr},ID:function(){return _},INPUT:function(){return z},KEY_CODE:function(){return X},Location:function(){return mr},MutationObserver:function(){return Ee},OBJECT:function(){return W},ON_HIDE:function(){return le},ON_LOAD:function(){return se},ON_READY:function(){return ue},ON_SHOW:function(){return ce},OPTIONS:function(){return de},PAGE_INIT:function(){return S},PROPERTY_THRESHOLD:function(){return k},PROPS:function(){return F},PURE_VIEW:function(){return U},ROOT_STR:function(){return C},SET_DATA:function(){return A},SET_TIMEOUT:function(){return ne},STATIC_VIEW:function(){return G},STYLE:function(){return M},SVGElement:function(){return Or},Style:function(){return vt},TARGET:function(){return K},TARO_RUNTIME:function(){return w},TIME_STAMP:function(){return Q},TOUCHMOVE:function(){return ee},TYPE:function(){return Y},TaroElement:function(){return bt},TaroEvent:function(){return un},TaroNode:function(){return He},TaroRootElement:function(){return yn},TaroText:function(){return kn},UID:function(){return R},URL:function(){return jn},URLSearchParams:function(){return Bn},VALUE:function(){return H},VIEW:function(){return D},addLeadingSlash:function(){return _r},cancelAnimationFrame:function(){return xr},createComponentConfig:function(){return Qr},createEvent:function(){return cn},createPageConfig:function(){return Zr},createRecursiveComponentConfig:function(){return Xr},document:function(){return Yn},env:function(){return Ge},eventCenter:function(){return Qn},eventHandler:function(){return hn},eventSource:function(){return De},getComputedStyle:function(){return Zn},getCurrentInstance:function(){return fr},getCurrentPage:function(){return Gr},getHomePage:function(){return Dr},getOnHideEventKey:function(){return Yr},getOnReadyEventKey:function(){return Kr},getOnShowEventKey:function(){return $r},getPageInstance:function(){return Wr},getPath:function(){return qr},handlePolyfill:function(){return si},hasBasename:function(){return Rr},history:function(){return Nr},hooks:function(){return g.JL},hydrate:function(){return Ue},incrementId:function(){return Ae},injectPageInstance:function(){return Vr},isHasExtractProp:function(){return xe},location:function(){return Ir},navigator:function(){return Sr},nextTick:function(){return ti},now:function(){return yr},options:function(){return yt},parseUrl:function(){return Dn},removePageInstance:function(){return Hr},requestAnimationFrame:function(){return Tr},safeExecute:function(){return zr},stringify:function(){return Jr},stripBasename:function(){return Br},stripSuffix:function(){return jr},stripTrailing:function(){return Mr},window:function(){return Pr}});var r,i=n(5544),o=n(5311),a=n(9413),s=n(3145),u=n(7695),c=n(4467),l=n(6919),d=n(5501),h=n(3437),f=n(436),v=n(3029),p=n(2901),g=n(1186),m=n(1635),b=n(7842)["requestAnimationFrame"],y=n(7842)["cancelAnimationFrame"],k=(n(7842)["window"],n(7842)["MutationObserver"],2046),w="Taro runtime",E="taro-app",A="\u5c0f\u7a0b\u5e8f setData",S="\u9875\u9762\u521d\u59cb\u5316",C="root",T="html",x="head",L="body",P="app",I="container",N="#document",O="document-fragment",_="id",R="uid",B="class",M="style",j="focus",D="view",G="static-view",U="pure-view",F="props",V="dataset",W="object",H="value",z="input",J="change",q="custom-wrapper",K="target",$="currentTarget",Y="type",Z="confirm",Q="timeStamp",X="keyCode",ee="touchmove",te="Date",ne="setTimeout",re="compileMode",ie="catchMove",oe="catch-view",ae="comment",se="onLoad",ue="onReady",ce="onShow",le="onHide",de="options",he="externalClasses",fe="e_result",ve="behaviors",pe="a";(function(e){e["INIT"]="0",e["RESTORE"]="1",e["RECOVER"]="2",e["DESTORY"]="3"})(r||(r={}));var ge=[],me=function(e,t){return!!e&&e.sid===(null===t||void 0===t?void 0:t.sid)},be=function(e,t){var n=t.characterData,r=t.characterDataOldValue,i=t.attributes,o=t.attributeOldValue,a=t.childList;switch(e.type){case"characterData":return!!n&&(r||(e.oldValue=null),!0);case"attributes":return!!i&&(o||(e.oldValue=null),!0);case"childList":return!!a}},ye=!1;function ke(e,t){e.records.push(t),ye||(ye=!0,Promise.resolve().then(function(){ye=!1,ge.forEach(function(e){return e.callback(e.takeRecords())})}))}function we(e){ge.forEach(function(t){for(var n=t.options,r=e.target;r;r=r.parentNode){if(me(t.target,r)&&be(e,n)){ke(t,e);break}if(!n.subtree)break}})}var Ee=function(){function e(t){(0,v.A)(this,e),this.core={observe:g.lQ,disconnect:g.lQ,takeRecords:g.lQ}}return(0,p.A)(e,[{key:"observe",value:function(){var e;(e=this.core).observe.apply(e,arguments)}},{key:"disconnect",value:function(){this.core.disconnect()}},{key:"takeRecords",value:function(){return this.core.takeRecords()}}],[{key:"record",value:function(e){we(e)}}])}();var Ae=function(){for(var e=[],t=65;t<=90;t++)e.push(t);for(var n=97;n<=122;n++)e.push(n);var r=e.length-1,i=[0,0];return function(){var t=i.map(function(t){return e[t]}),n=String.fromCharCode.apply(String,(0,f.A)(t)),o=i.length-1;i[o]++;while(i[o]>r){if(i[o]=0,o-=1,o<0){i.push(0);break}i[o]++}return n}};function Se(e){return 1===e.nodeType}function Ce(e){return 3===e.nodeType}function Te(e){return e.nodeName===ae}function xe(e){var t=Object.keys(e.props).find(function(e){return!(/^(class|style|id)$/.test(e)||e.startsWith("data-"))});return Boolean(t)}function Le(e,t){var n;while(e=(null===e||void 0===e?void 0:e.parentElement)||null){if(!e||e.nodeName===C||"root-portal"===e.nodeName)return!1;if(null===(n=e.__handlers[t])||void 0===n?void 0:n.length)return!0}return!1}function Pe(e){switch(e){case M:return"st";case _:return R;case B:return"cl";default:return e}}var Ie,Ne=new Map;function Oe(e,t,n){(0,g.Tn)(n)&&(n={value:n}),Object.defineProperty(e.prototype,t,Object.assign({configurable:!0,enumerable:!0},n))}function _e(){return Ie||(Ie=(0,g.dg)(g.YN)),Ie}var Re,Be,Me=function(){function e(t,n){var r=this;(0,v.A)(this,e),this.tokenList=[],this.el=n,t.trim().split(/\s+/).forEach(function(e){return r.tokenList.push(e)})}return(0,p.A)(e,[{key:"value",get:function(){return this.toString()}},{key:"length",get:function(){return this.tokenList.length}},{key:"add",value:function(){var e=0,t=!1,n=arguments,r=n.length,i=this.tokenList;do{var o=n[e];this.checkTokenIsValid(o)&&!~i.indexOf(o)&&(i.push(o),t=!0)}while(++e-1&&(i["nn"]="static-".concat(n),n!==D||xe(e)||(i["nn"]=U));var o=e.props;for(var a in o){var s=(0,g.Cb)(a);a.startsWith("data-")||a===B||a===M||a===_||s===ie||s===re||(i[s]=o[a]),n===D&&s===ie&&!1!==o[a]&&(i["nn"]=oe),s===re&&(r=o[a])}i["cn"]=e.childNodes.filter(function(e){return!Te(e)}).map(Ue),""!==e.className&&(i["cl"]=e.className);var u=e.cssText;""!==u&&"swiper-item"!==n&&(i["st"]=u),g.JL.call("modifyHydrateData",i,e);var l=i["nn"],d=Be[l];if(d)for(var h in i["nn"]=d._num,i)h in d&&(i[d[h]]=i[h],delete i[h]);null!==r&&(i["nn"]=r);var f=g.JL.call("transferHydrateData",i,e,d);return f||i}var Fe=function(){function e(){(0,v.A)(this,e),this.__handlers={}}return(0,p.A)(e,[{key:"addEventListener",value:function(e,t,n){if(e=e.toLowerCase(),g.JL.call("onAddEvent",e,t,n,this),"regionchange"===e)return this.addEventListener("begin",t,n),void this.addEventListener("end",t,n);Boolean(n);var r=!1;if((0,g.Gv)(n)&&(Boolean(n.capture),r=Boolean(n.once)),r){var i=function(){t.apply(this,arguments),this.removeEventListener(e,i)};this.addEventListener(e,i,Object.assign(Object.assign({},n),{once:!1}))}else{var o=t;t=function(){return o.apply(this,arguments)},t.oldHandler=o;var a=this.__handlers[e];(0,g.cy)(a)?a.push(t):this.__handlers[e]=[t]}}},{key:"removeEventListener",value:function(e,t){if(e=e.toLowerCase(),"regionchange"===e)return this.removeEventListener("begin",t),void this.removeEventListener("end",t);if(t){var n=this.__handlers[e];if((0,g.cy)(n)){var r=n.findIndex(function(e){if(e===t||e.oldHandler===t)return!0});n.splice(r,1)}}}},{key:"isAnyEventBinded",value:function(){var e=this.__handlers,t=Object.keys(e).find(function(t){return e[t].length});return Boolean(t)}}])}(),Ve="cn",We=Ae(),He=function(e){function t(){var e;return(0,v.A)(this,t),e=(0,l.A)(this,t),e.parentNode=null,e.childNodes=[],e.hydrate=function(e){return function(){return Ue(e)}},e.uid="_"+We(),e.sid=e.uid,De.set(e.sid,e),e}return(0,d.A)(t,e),(0,p.A)(t,[{key:"updateChildNodes",value:function(e){var t=this,n=function(){return[]},r=function(){var e=t.childNodes.filter(function(e){return!Te(e)});return e.map(Ue)};this.enqueueUpdate({path:"".concat(this._path,".").concat(Ve),value:e?n:r})}},{key:"updateSingleChild",value:function(e){var t=this;this.childNodes.forEach(function(n,r){Te(n)||e&&ri?this.updateChildNodes():this.updateSingleChild(i)}else{var s=1===o;s?this.updateChildNodes():this.enqueueUpdate({path:e._path,value:this.hydrate(e)})}return Ee.record({type:"childList",target:this,addedNodes:[e],removedNodes:n?[t]:[],nextSibling:n?t.nextSibling:t||null,previousSibling:e.previousSibling}),e}},{key:"appendChild",value:function(e){return this.insertBefore(e)}},{key:"replaceChild",value:function(e,t){if(t.parentNode===this)return this.insertBefore(e,t,!0),t.remove({doUpdate:!1}),t}},{key:"removeChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.cleanRef,r=t.doUpdate;!1!==n&&!1!==r&&Ee.record({type:"childList",target:this,removedNodes:[e],nextSibling:e.nextSibling,previousSibling:e.previousSibling});var i=this.findIndex(e);return this.childNodes.splice(i,1),e.parentNode=null,!1!==n&&De.removeNodeTree(e),this._root&&!1!==r&&this.updateChildNodes(),e}},{key:"remove",value:function(e){var t;null===(t=this.parentNode)||void 0===t||t.removeChild(this,e)}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"enqueueUpdate",value:function(e){var t;null===(t=this._root)||void 0===t||t.enqueueUpdate(e)}},{key:"ownerDocument",get:function(){return Ge.document}}],[{key:"extend",value:function(e,n){Oe(t,e,n)}}])}(Fe),ze="webkit",Je=["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 qe(e,t,n){!n&&Je.push(e),t.forEach(function(t){Je.push(e+t),e===ze&&Je.push("Webkit"+t)})}var Ke="Color",$e="Style",Ye="Width",Ze="Image",Qe="Size",Xe=[Ke,$e,Ye],et=["FitLength","FitWidth",Ze],tt=[].concat(et,["Radius"]),nt=[].concat(Xe,et),rt=["EndRadius","StartRadius"],it=["Bottom","Left","Right","Top"],ot=["End","Start"],at=["Content","Items","Self"],st=["BlockSize","Height","InlineSize",Ye],ut=["After","Before"];function ct(e){Ee.record({type:"attributes",target:e._element,attributeName:"style",oldValue:e.cssText})}function lt(e){var t=e._element;t._root&&t.enqueueUpdate({path:"".concat(t._path,".","st"),value:e.cssText})}function dt(e,t){var n=this[t];n!==e&&(!this._pending&&ct(this),(0,g.kZ)(e)||(0,g.b0)(e)||""===e?(this._usedStyleProp.delete(t),delete this._value[t]):(this._usedStyleProp.add(t),this._value[t]=e),!this._pending&<(this))}function ht(e,t){for(var n,r={},i=function(){var n=t[o];if(e[n])return{v:void 0};r[n]={get:function(){var e=this._value[n];return(0,g.kZ)(e)||(0,g.b0)(e)?"":e},set:function(e){dt.call(this,e,n)}}},o=0;o0}},{key:"focus",get:function(){return function(){this.setAttribute(j,!0)}},set:function(e){this.setAttribute(j,e)}},{key:"blur",value:function(){this.setAttribute(j,!1)}},{key:"setAttribute",value:function(e,t){var n=this.nodeName===D&&!xe(this)&&!this.isAnyEventBinded();switch(e!==M&&Ee.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e){case M:this.style.cssText=t;break;case _:this.uid!==this.sid&&De.delete(this.uid),t=String(t),this.props[e]=this.uid=t,De.set(t,this);break;default:this.props[e]=t,e.startsWith("data-")&&(this.dataset===g.MZ&&(this.dataset=Object.create(null)),this.dataset[(0,g.Cb)(e.replace(/^data-/,""))]=t);break}if(this._root){var r=_e(),i=r[this.nodeName],o=r[D]._num,a=r[G]._num,s=r[oe]._num,u=this._path;e=Pe(e);var c=(0,g.Cb)(e),l={path:"".concat(u,".").concat(c),value:(0,g.Tn)(t)?function(){return t}:t};if(g.JL.call("modifySetAttrPayload",this,e,l,r),i){var d=i[c]||e;l.path="".concat(u,".").concat((0,g.Cb)(d))}this.enqueueUpdate(l),this.nodeName===D&&(c===ie?this.enqueueUpdate({path:"".concat(u,".","nn"),value:t?s:this.isAnyEventBinded()?o:a}):n&&xe(this)&&this.enqueueUpdate({path:"".concat(u,".","nn"),value:a}))}}},{key:"removeAttribute",value:function(e){var t=this.nodeName===D&&xe(this)&&!this.isAnyEventBinded();if(Ee.record({target:this,type:"attributes",attributeName:e,oldValue:this.getAttribute(e)}),e===M)this.style.cssText="";else{var n=g.JL.call("onRemoveAttribute",this,e);if(n)return;if(!this.props.hasOwnProperty(e))return;delete this.props[e]}if(this._root){var r=_e(),i=r[this.nodeName],o=r[D]._num,a=r[G]._num,s=r[U]._num,u=this._path;e=Pe(e);var c=(0,g.Cb)(e),l={path:"".concat(u,".").concat(c),value:""};if(g.JL.call("modifyRmAttrPayload",this,e,l,r),i){var d=i[c]||e;l.path="".concat(u,".").concat((0,g.Cb)(d))}this.enqueueUpdate(l),this.nodeName===D&&(c===ie?this.enqueueUpdate({path:"".concat(u,".","nn"),value:this.isAnyEventBinded()?o:xe(this)?a:s}):t&&!xe(this)&&this.enqueueUpdate({path:"".concat(u,".","nn"),value:s}))}}},{key:"getAttribute",value:function(e){var t=e===M?this.style.cssText:this.props[e];return null!==t&&void 0!==t?t:""}},{key:"getElementsByTagName",value:function(e){var t=this;return gt(this,function(n){return n.nodeName===e||"*"===e&&t!==n})}},{key:"getElementsByClassName",value:function(e){var t=e.trim().split(/\s+/);return gt(this,function(e){var n=e.classList;return t.every(function(e){return n.contains(e)})})}},{key:"dispatchEvent",value:function(e){var t=e.cancelable,n=this.__handlers[e.type];if(!(0,g.cy)(n))return!1;for(var r=n.length;r--;){var i=n[r],o=void 0;if(i._stop?i._stop=!1:(g.JL.call("modifyDispatchEvent",e,this),o=i.call(this,e)),(!1===o||e._end)&&t&&(e.defaultPrevented=!0),!(0,g.b0)(o)&&e.mpEvent){var a=g.JL.call("modifyTaroEventReturn",this,e,o);a&&(e.mpEvent[fe]=o)}if(e._end&&e._stop)break}return e._stop?this._stopPropagation(e):e._stop=!0,null!=n}},{key:"addEventListener",value:function(e,n,r){var i=this.nodeName,a=g.JL.call("getSpecialNodes"),s=!0;if((0,g.Gv)(r)&&!1===r.sideEffect&&(s=!1,delete r.sideEffect),g.JL.call("modifyAddEventListener",this,s,_e),!1!==s&&!this.isAnyEventBinded()&&a.indexOf(i)>-1){var u=_e(),c=u[i]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:c})}(0,o.A)(t,"addEventListener",this,3)([e,n,r])}},{key:"removeEventListener",value:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,o.A)(t,"removeEventListener",this,3)([e,n]);var i=this.nodeName,a=g.JL.call("getSpecialNodes");if(g.JL.call("modifyRemoveEventListener",this,r,_e),!1!==r&&!this.isAnyEventBinded()&&a.indexOf(i)>-1){var s=_e(),u=xe(this)?"static-".concat(i):"pure-".concat(i),c=s[u]._num;this.enqueueUpdate({path:"".concat(this._path,".","nn"),value:c})}}}],[{key:"extend",value:function(e,n){Oe(t,e,n)}}])}(He),yt={prerender:!0,debug:!1};function kt(){return{index:0,column:0,line:0}}function wt(e,t,n){for(var r=e.index,i=e.index=r+n,o=r;ot;i--){var o=n.charAt(i);if(!Ct(o)){if(xt(o))return!1;break}}for(var a=e+1;a"===o);if(a)break;i++}var s=i+1;while(s"===u);if(!c)break;s++}Et(n,t,s);var l=t.slice(i,s);return this.tokens.push({type:e,content:l}),l}},{key:"scanAttrs",value:function(){var e=this.html,t=this.position,n=this.tokens,r=t.index,i=null,o=r,a=[],s=e.length;while(r"===u;if(l){r!==o&&a.push(e.slice(o,r));break}if(Nt(r,o,e))r!==o&&a.push(e.slice(o,r)),o=r+1,r++;else{var d="'"===u||'"'===u;d?(i=u,r++):r++}}}Et(t,e,r);for(var h=a.length,f="attribute",v=0;v1){var b=p+m;n.push({type:f,content:b}),v+=1;continue}var y=a[v+2];if(v+=1,y){var k=p+"="+y;n.push({type:f,content:k}),v+=1;continue}}}if(p.endsWith("=")){var w=a[v+1];if(w&&!w.includes("=")){var E=p+w;n.push({type:f,content:E}),v+=1;continue}var A=p.slice(0,-1);n.push({type:f,content:A})}else n.push({type:f,content:p})}}},{key:"scanSkipTag",value:function(e){var t=this.html,n=this.position,r=e.toLowerCase(),i=t.length;while(n.index]*>((.|\n|\s)+?)<\/style>/g,r=e;return r=r.replace(n,function(e,n){var r=n.trim();return t.stringToSelector(r),""}),r.trim()}},{key:"stringToSelector",value:function(e){var t=this,n=e.indexOf(Rt),r=function(){var r=e.indexOf(Bt),i=e.slice(0,n).trim(),o=e.slice(n+1,r);o=o.replace(/:(.*);/g,function(e,t){var n=t.trim().replace(/ +/g,"+++");return":".concat(n,";")}),o=o.replace(/ /g,""),o=o.replace(/\+\+\+/g," "),/;$/.test(o)||(o+=";"),i.split(",").forEach(function(e){var n=t.parseSelector(e);t.styles.push({content:o,selectorList:n})}),e=e.slice(r+1),n=e.indexOf(Rt)};while(n>-1)r()}},{key:"parseSelector",value:function(e){var t=e.trim().replace(/ *([>~+]) */g," $1").replace(/ +/g," ").replace(/\[\s*([^[\]=\s]+)\s*=\s*([^[\]=\s]+)\s*\]/g,"[$1=$2]").split(" "),n=t.map(function(e){var t=e.charAt(0),n={isChild:t===Dt,isGeneralSibling:t===Gt,isAdjacentSibling:t===Ut,tag:null,id:null,class:[],attrs:[]};return e=e.replace(/^[>~+]/,""),e=e.replace(/\[(.+?)\]/g,function(e,t){var r=t.split("="),o=(0,i.A)(r,2),a=o[0],s=o[1],u=-1===t.indexOf("="),c={all:u,key:a,value:u?null:s};return n.attrs.push(c),""}),e=e.replace(/([.#][A-Za-z0-9-_]+)/g,function(e,t){return t[0]===jt?n.id=t.substr(1):t[0]===Mt&&n.class.push(t.substr(1)),""}),""!==e&&(n.tag=e),n});return n}},{key:"matchStyle",value:function(e,t,n){var r=this,i=Wt(this.styles).reduce(function(i,o,a){var s=o.content,u=o.selectorList,c=n[a],l=u[c],d=u[c+1];((null===d||void 0===d?void 0:d.isGeneralSibling)||(null===d||void 0===d?void 0:d.isAdjacentSibling))&&(l=d,c+=1,n[a]+=1);var h=r.matchCurrent(e,t,l);if(h&&l.isGeneralSibling){var f=Vt(t);while(f){if(f.h5tagName&&r.matchCurrent(f.h5tagName,f,u[c-1])){h=!0;break}f=Vt(f),h=!1}}if(h&&l.isAdjacentSibling){var v=Vt(t);if(v&&v.h5tagName){var p=r.matchCurrent(v.h5tagName,v,u[c-1]);p||(h=!1)}else h=!1}if(h){if(c===u.length-1)return i+s;c0&&(n[a]-=1,r.matchCurrent(e,t,u[n[a]])&&(n[a]+=1));return i},"");return i}},{key:"matchCurrent",value:function(e,t,n){if(n.tag&&n.tag!==e)return!1;if(n.id&&n.id!==t.id)return!1;if(n.class.length)for(var r=t.className.split(" "),i=0;i=0){var i=t[r].tagName;if(i===e)break;if(n&&n.includes(i))return!0;r--}}return!1}function tn(e){return yt.html.renderHTMLTag?e:Kt[e]?Kt[e]:Yt(e)?e:Qt(e)?"view":Zt(e)?"text":"view"}function nn(e){var t="=",n=e.indexOf(t);if(-1===n)return[e];var r=e.slice(0,n).trim(),i=e.slice(n+t.length).trim();return[r,i]}function rn(e,t,n,r){return e.filter(function(e){return"comment"!==e.type&&("text"!==e.type||""!==e.content)}).map(function(e){if("text"===e.type){var o=t.createTextNode(e.content);return(0,g.Tn)(yt.html.transformText)&&(o=yt.html.transformText(o,e)),null===r||void 0===r||r.appendChild(o),o}var a=t.createElement(tn(e.tagName));a.h5tagName=e.tagName,null===r||void 0===r||r.appendChild(a),yt.html.renderHTMLTag||(a.className="h5-".concat(e.tagName));for(var s=0;s-1)if(n[c].tagName===u){l=!0;break}while(r0){if(u===n[v].tagName){n.splice(v);var p=v-1;o=n[p].children;break}v-=1}}var g=[],m=void 0;while(r0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;this.pendingUpdate=!0;var r=g.JL.call("proxyToRaw",this.ctx);setTimeout(function(){var i="".concat(A," \u5f00\u59cb\u65f6\u95f4\u6233 ").concat(Date.now());pn.start(i);var o=Object.create(null),a=new Set(t?["root.cn.[0]","root.cn[0]"]:[]);while(e.updatePayloads.length>0){var s=e.updatePayloads.shift(),u=s.path,l=s.value;u.endsWith("cn")&&a.add(u),o[u]=l}var d=function(e){a.forEach(function(t){e.includes(t)&&e!==t&&delete o[e]});var t=o[e];(0,g.Tn)(t)&&(o[e]=t())};for(var h in o)d(h);if((0,g.Tn)(n))return n(o);e.pendingUpdate=!1;var f={},v=new Map;if(t)f=o;else for(var p in o){var m=p.split("."),b=gn(e,m);if(b){var y=b.customWrapper,k=b.splitedPath;v.set(y,Object.assign(Object.assign({},v.get(y)||{}),(0,c.A)({},"i.".concat(k),o[p])))}else f[p]=o[p]}var w=v.size,E=Object.keys(f).length>0,C=w+(E?1:0),T=0,x=function(){++T===C&&(pn.stop(i),e.flushUpdateCallback(),t&&pn.stop(S))};w&&v.forEach(function(e,t){t.setData(e,x)}),E&&r.setData(f,x)},0)}},{key:"enqueueUpdateCallback",value:function(e,t){this.updateCallbacks.push(function(){t?e.call(t):e()})}},{key:"flushUpdateCallback",value:function(){var e=this.updateCallbacks;if(e.length){var t=e.slice(0);this.updateCallbacks.length=0;for(var n=0;n-1?Cn(n,xn(a.slice(0,s)),xn(a.slice(s+1))):a.length&&Cn(n,xn(a),"")}}else if((0,g.cy)(t))for(var u=0,c=t.length;u0&&void 0!==arguments[0]?arguments[0]:"",t={href:"",origin:"",protocol:"",hostname:"",host:"",port:"",pathname:"",search:"",hash:""};if(!e||!(0,g.Kg)(e))return t;e=e.trim();var n=/^(([^:/?#]+):)?\/\/(([^/?#]+):(.+)@)?([^/?#:]*)(:(\d+))?([^?#]*)(\?([^#]*))?(#(.*))?/,r=e.match(n);return r?(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):""),t):t}function Gn(e,t){var n=/^(https?:)\/\//i,r="",i=null;if(!(0,g.b0)(t)){if(t=String(t).trim(),!n.test(t))throw new TypeError("Failed to construct 'URL': Invalid base URL");i=Dn(t)}if(e=String(e).trim(),n.test(e))r=e;else{if(!i)throw new TypeError("Failed to construct 'URL': Invalid URL");r=e?e.startsWith("//")?i.protocol+e:i.origin+(e.startsWith("/")?e:"/".concat(e)):i.href}return Dn(r)}var Un=function(e){function t(){return(0,v.A)(this,t),(0,l.A)(this,t,arguments)}return(0,d.A)(t,e),(0,p.A)(t,[{key:"href",get:function(){var e;return null!==(e=this.props["href"])&&void 0!==e?e:""},set:function(e){this.setAttribute("href",e)}},{key:"protocol",get:function(){var e;return null!==(e=this.props["protocol"])&&void 0!==e?e:""}},{key:"host",get:function(){var e;return null!==(e=this.props["host"])&&void 0!==e?e:""}},{key:"search",get:function(){var e;return null!==(e=this.props["search"])&&void 0!==e?e:""}},{key:"hash",get:function(){var e;return null!==(e=this.props["hash"])&&void 0!==e?e:""}},{key:"hostname",get:function(){var e;return null!==(e=this.props["hostname"])&&void 0!==e?e:""}},{key:"port",get:function(){var e;return null!==(e=this.props["port"])&&void 0!==e?e:""}},{key:"pathname",get:function(){var e;return null!==(e=this.props["pathname"])&&void 0!==e?e:""}},{key:"setAttribute",value:function(e,n){if("href"===e){var r=Dn(n);for(var i in r)(0,o.A)(t,"setAttribute",this,3)([i,r[i]])}else(0,o.A)(t,"setAttribute",this,3)([e,n])}}])}(bt),Fn=function(e){function t(e){var n;return(0,v.A)(this,t),n=(0,l.A)(this,t),n.dataName=e,n.isTransferElement=!0,n}return(0,d.A)(t,e),(0,p.A)(t,[{key:"_path",get:function(){return this.dataName}}])}(bt),Vn=function(e){function t(){var e;return(0,v.A)(this,t),e=(0,l.A)(this,t),e.createEvent=cn,e.nodeType=9,e.nodeName=N,e}return(0,d.A)(t,e),(0,p.A)(t,[{key:"createElement",value:function(e){var t,n=e.toLowerCase();switch(!0){case n===C:return t=new yn,t;case g.Ig.has(n):t=new fn;break;case n===pe:t=new Un;break;case"page-meta"===n:case"navigation-bar"===n:t=new Fn((0,g.Cb)(n));break;default:t=new bt;break}return t.nodeName=n,t.tagName=e.toUpperCase(),t}},{key:"createElementNS",value:function(e,t){return this.createElement(t)}},{key:"createTextNode",value:function(e){return new kn(e)}},{key:"getElementById",value:function(e){var t=De.get(e);return(0,g.b0)(t)?null:t}},{key:"querySelector",value:function(e){return/^#/.test(e)?this.getElementById(e.slice(1)):null}},{key:"querySelectorAll",value:function(){return[]}},{key:"createComment",value:function(){var e=new kn("");return e.nodeName=ae,e}},{key:"defaultView",get:function(){return Ge.window}}])}(bt);function Wn(){var e=new Vn,t=e.createElement.bind(e),n=t(T),r=t(x),i=t(L),o=t(P);o.id=P;var a=t(I);return e.appendChild(n),n.appendChild(r),n.appendChild(i),i.appendChild(a),a.appendChild(o),e.documentElement=n,e.head=r,e.body=i,e}var Hn,zn,Jn,qn,Kn,$n,Yn=Ge.document=Wn(),Zn=function(e){return e.style},Qn=g.JL.call("getEventCenter",g.sV),Xn=function(){function e(t){(0,v.A)(this,e),this.cache=new Map,this.name=t}return(0,p.A)(e,[{key:"has",value:function(e){return this.cache.has(e)}},{key:"set",value:function(e,t){e&&t&&this.cache.set(e,t)}},{key:"get",value:function(e){if(this.has(e))return this.cache.get(e)}},{key:"delete",value:function(e){this.cache.delete(e)}}])}(),er=new Xn("history"),tr=function(e){function t(e,n){var i;return(0,v.A)(this,t),i=(0,l.A)(this,t),Hn.add(i),zn.set(i,void 0),Jn.set(i,[]),qn.set(i,0),Kn.set(i,void 0),(0,m.GG)(i,Kn,n.window,"f"),(0,m.GG)(i,zn,e,"f"),(0,m.gn)(i,zn,"f").on("__record_history__",function(e){var t;(0,m.GG)(i,qn,(t=(0,m.gn)(i,qn,"f"),t++,t),"f"),(0,m.GG)(i,Jn,(0,m.gn)(i,Jn,"f").slice(0,(0,m.gn)(i,qn,"f")),"f"),(0,m.gn)(i,Jn,"f").push({state:null,title:"",url:e})},null),(0,m.gn)(i,zn,"f").on("__reset_history__",function(e){(0,m.gn)(i,Hn,"m",$n).call(i,e)},null),i.on(r.INIT,function(){(0,m.gn)(i,Hn,"m",$n).call(i)},null),i.on(r.RESTORE,function(e){er.set(e,{location:(0,m.gn)(i,zn,"f"),stack:(0,m.gn)(i,Jn,"f").slice(),cur:(0,m.gn)(i,qn,"f")})},null),i.on(r.RECOVER,function(e){if(er.has(e)){var t=er.get(e);(0,m.GG)(i,zn,t.location,"f"),(0,m.GG)(i,Jn,t.stack,"f"),(0,m.GG)(i,qn,t.cur,"f")}},null),i.on(r.DESTORY,function(e){er.delete(e)},null),(0,m.gn)(i,Hn,"m",$n).call(i),i}return(0,d.A)(t,e),(0,p.A)(t,[{key:"length",get:function(){return(0,m.gn)(this,Jn,"f").length}},{key:"state",get:function(){return(0,m.gn)(this,Jn,"f")[(0,m.gn)(this,qn,"f")].state}},{key:"go",value:function(e){if((0,g.Et)(e)&&!isNaN(e)){var t=(0,m.gn)(this,qn,"f")+e;t=Math.min(Math.max(t,0),this.length-1),(0,m.GG)(this,qn,t,"f"),(0,m.gn)(this,zn,"f").trigger("__set_href_without_history__",(0,m.gn)(this,Jn,"f")[(0,m.gn)(this,qn,"f")].url),(0,m.gn)(this,Kn,"f").trigger("popstate",(0,m.gn)(this,Jn,"f")[(0,m.gn)(this,qn,"f")])}}},{key:"back",value:function(){this.go(-1)}},{key:"forward",value:function(){this.go(1)}},{key:"pushState",value:function(e,t,n){n&&(0,g.Kg)(n)&&((0,m.GG)(this,Jn,(0,m.gn)(this,Jn,"f").slice(0,(0,m.gn)(this,qn,"f")+1),"f"),(0,m.gn)(this,Jn,"f").push({state:e,title:t,url:n}),(0,m.GG)(this,qn,this.length-1,"f"),(0,m.gn)(this,zn,"f").trigger("__set_href_without_history__",n))}},{key:"replaceState",value:function(e,t,n){n&&(0,g.Kg)(n)&&((0,m.gn)(this,Jn,"f")[(0,m.gn)(this,qn,"f")]={state:e,title:t,url:n},(0,m.gn)(this,zn,"f").trigger("__set_href_without_history__",n))}},{key:"cache",get:function(){return er}}])}(g.sV);zn=new WeakMap,Jn=new WeakMap,qn=new WeakMap,Kn=new WeakMap,Hn=new WeakSet,$n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(0,m.GG)(this,Jn,[{state:null,title:"",url:e||(0,m.gn)(this,zn,"f").href}],"f"),(0,m.GG)(this,qn,0,"f")};var nr,rr,ir,or,ar,sr,ur,cr,lr,dr=tr,hr={app:null,router:null,page:null},fr=function(){return hr},vr="https://taro.com",pr=new Xn("location"),gr=function(e){function t(e){var n;return(0,v.A)(this,t),n=(0,l.A)(this,t),nr.add(n),rr.set(n,new jn(vr)),ir.set(n,!1),or.set(n,void 0),(0,m.GG)(n,or,e.window,"f"),(0,m.gn)(n,nr,"m",ar).call(n),n.on("__set_href_without_history__",function(e){(0,m.GG)(n,ir,!0,"f");var t=(0,m.gn)(n,rr,"f").hash;(0,m.gn)(n,rr,"f").href=br(e),t!==(0,m.gn)(n,rr,"f").hash&&(0,m.gn)(n,or,"f").trigger("hashchange"),(0,m.GG)(n,ir,!1,"f")},null),n.on(r.INIT,function(){(0,m.gn)(n,nr,"m",ar).call(n)},null),n.on(r.RESTORE,function(e){pr.set(e,{lastHref:n.href})},null),n.on(r.RECOVER,function(e){if(pr.has(e)){var t=pr.get(e);(0,m.GG)(n,ir,!0,"f"),(0,m.gn)(n,rr,"f").href=t.lastHref,(0,m.GG)(n,ir,!1,"f")}},null),n.on(r.DESTORY,function(e){pr.delete(e)},null),n}return(0,d.A)(t,e),(0,p.A)(t,[{key:"protocol",get:function(){return(0,m.gn)(this,rr,"f").protocol},set:function(e){var t=/^(http|https):$/i;if(e&&(0,g.Kg)(e)&&t.test(e.trim())){e=e.trim();var n=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").protocol=e,(0,m.gn)(this,nr,"m",lr).call(this,n)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"host",get:function(){return(0,m.gn)(this,rr,"f").host},set:function(e){if(e&&(0,g.Kg)(e)){e=e.trim();var t=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").host=e,(0,m.gn)(this,nr,"m",lr).call(this,t)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"hostname",get:function(){return(0,m.gn)(this,rr,"f").hostname},set:function(e){if(e&&(0,g.Kg)(e)){e=e.trim();var t=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").hostname=e,(0,m.gn)(this,nr,"m",lr).call(this,t)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"port",get:function(){return(0,m.gn)(this,rr,"f").port},set:function(e){var t=Number(e=e.trim());if((0,g.Et)(t)&&!(t<=0)){var n=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").port=e,(0,m.gn)(this,nr,"m",lr).call(this,n)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"pathname",get:function(){return(0,m.gn)(this,rr,"f").pathname},set:function(e){if(e&&(0,g.Kg)(e)){e=e.trim();var t=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").pathname=e,(0,m.gn)(this,nr,"m",lr).call(this,t)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"search",get:function(){return(0,m.gn)(this,rr,"f").search},set:function(e){if(e&&(0,g.Kg)(e)){e=e.trim(),e=e.startsWith("?")?e:"?".concat(e);var t=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").search=e,(0,m.gn)(this,nr,"m",lr).call(this,t)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"hash",get:function(){return(0,m.gn)(this,rr,"f").hash},set:function(e){if(e&&(0,g.Kg)(e)){e=e.trim(),e=e.startsWith("#")?e:"#".concat(e);var t=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").hash=e,(0,m.gn)(this,nr,"m",lr).call(this,t)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"href",get:function(){return(0,m.gn)(this,rr,"f").href},set:function(e){var t=/^(http:|https:)?\/\/.+/;if(e&&(0,g.Kg)(e)&&t.test(e=e.trim())){var n=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").href=e,(0,m.gn)(this,nr,"m",lr).call(this,n)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"origin",get:function(){return(0,m.gn)(this,rr,"f").origin},set:function(e){var t=/^(http:|https:)?\/\/.+/;if(e&&(0,g.Kg)(e)&&t.test(e=e.trim())){var n=(0,m.gn)(this,nr,"m",sr).call(this);(0,m.gn)(this,rr,"f").origin=e,(0,m.gn)(this,nr,"m",lr).call(this,n)&&(0,m.gn)(this,nr,"m",cr).call(this)}}},{key:"assign",value:function(){(0,g.R8)(!0,"\u5c0f\u7a0b\u5e8f\u73af\u5883\u4e2d\u8c03\u7528location.assign()\u65e0\u6548.")}},{key:"reload",value:function(){(0,g.R8)(!0,"\u5c0f\u7a0b\u5e8f\u73af\u5883\u4e2d\u8c03\u7528location.reload()\u65e0\u6548.")}},{key:"replace",value:function(e){this.trigger("__set_href_without_history__",e)}},{key:"toString",value:function(){return this.href}},{key:"cache",get:function(){return pr}}])}(g.sV);rr=new WeakMap,ir=new WeakMap,or=new WeakMap,nr=new WeakSet,ar=function(){var e=fr(),t=e.router;if(t){var n=t.path,r=t.params,i=Object.keys(r).map(function(e){return"".concat(e,"=").concat(r[e])}),o=i.length>0?"?"+i.join("&"):"",a="".concat(vr).concat(n.startsWith("/")?n:"/"+n).concat(o);(0,m.GG)(this,rr,new jn(a),"f"),this.trigger("__reset_history__",this.href)}},sr=function(){return(0,m.gn)(this,rr,"f")._toRaw()},ur=function(e){(0,m.gn)(this,rr,"f").href=e},cr=function(){this.trigger("__record_history__",this.href)},lr=function(e){if((0,m.gn)(this,ir,"f"))return!1;var t=(0,m.gn)(this,rr,"f")._toRaw(),n=t.protocol,r=t.hostname,i=t.port,o=t.pathname,a=t.search,s=t.hash;return n!==e.protocol||r!==e.hostname||i!==e.port?((0,m.gn)(this,nr,"m",ur).call(this,e.href),!1):o!==e.pathname||(a!==e.search||(s!==e.hash?((0,m.gn)(this,or,"f").trigger("hashchange"),!0):((0,m.gn)(this,nr,"m",ur).call(this,e.href),!1)))};var mr=gr;function br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=vr;return/^[/?#]/.test(e)?t+e:e}var yr,kr="Macintosh",wr="Intel Mac OS X 10_14_5",Er="AppleWebKit/534.36 (KHTML, like Gecko) NodeJS/v4.1.0 Chrome/76.0.3809.132 Safari/534.36",Ar="("+kr+"; "+wr+") "+Er,Sr={appCodeName:"Mozilla",appName:"Netscape",appVersion:"5.0 "+Ar,cookieEnabled:!0,mimeTypes:[],onLine:!0,platform:"MacIntel",plugins:[],product:"Taro",productSub:"20030107",userAgent:"Mozilla/5.0 "+Ar,vendor:"Joyent",vendorSub:""};(function(){var e;"undefined"!==typeof performance&&null!==performance&&performance.now?yr=function(){return performance.now()}:Date.now?(e=Date.now(),yr=function(){return Date.now()-e}):(e=(new Date).getTime(),yr=function(){return(new Date).getTime()-e})})();var Cr=0,Tr="undefined"!==typeof b&&null!==b?b:function(e){var t=yr(),n=Math.max(Cr+16,t);return setTimeout(function(){e(Cr=n)},n-t)},xr="undefined"!==typeof y&&null!==y?y:function(e){clearTimeout(e)},Lr=function(e){function t(){var e;(0,v.A)(this,t),e=(0,l.A)(this,t),e.navigator=Sr,e.requestAnimationFrame=Tr,e.cancelAnimationFrame=xr,e.getComputedStyle=Zn;var r=[].concat((0,f.A)(Object.getOwnPropertyNames(n.g||{})),(0,f.A)(Object.getOwnPropertySymbols(n.g||{})));return r.forEach(function(t){if("atob"!==t&&"document"!==t&&!Object.prototype.hasOwnProperty.call(e,t))try{e[t]=n.g[t]}catch(e){0}}),e.Date||(e.Date=Date),e.location=new mr({window:e}),e.history=new dr(e.location,{window:e}),e.initEvent(),e}return(0,d.A)(t,e),(0,p.A)(t,[{key:"initEvent",value:function(){var e=this.location,t=this.history;this.on(r.INIT,function(t){e.trigger(r.INIT,t)},null),this.on(r.RECOVER,function(n){e.trigger(r.RECOVER,n),t.trigger(r.RECOVER,n)},null),this.on(r.RESTORE,function(n){e.trigger(r.RESTORE,n),t.trigger(r.RESTORE,n)},null),this.on(r.DESTORY,function(n){e.trigger(r.DESTORY,n),t.trigger(r.DESTORY,n)},null)}},{key:"document",get:function(){return Ge.document}},{key:"addEventListener",value:function(e,t){(0,g.Kg)(e)&&this.on(e,t,null)}},{key:"removeEventListener",value:function(e,t){(0,g.Kg)(e)&&this.off(e,t,null)}},{key:"setTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return setTimeout.apply(void 0,arguments)})},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return clearTimeout.apply(void 0,arguments)})}])}(g.sV),Pr=Ge.window=new Lr,Ir=Pr.location,Nr=Pr.history,Or=function(e){function t(){return(0,v.A)(this,t),(0,l.A)(this,t,arguments)}return(0,d.A)(t,e),(0,p.A)(t)}(bt),_r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"/"===e.charAt(0)?e:"/"+e},Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)||e===t},Br=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Rr(e,t)?e.substring(t.length):e},Mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[?#][\s\S]*$/,"")},jr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.includes(t)?e.substring(0,e.length-t.length):e},Dr=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=_r(Br(t,n)),s=(null===(e=Object.entries(r).find(function(e){var t=(0,i.A)(e,1),n=t[0];return n===a}))||void 0===e?void 0:e[1])||a;return o||("string"===typeof s?s:s[0])||n},Gr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hash",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n="hash"===e?Ir.hash.slice(1).split("?")[0]:Ir.pathname;return _r(Br(n,t))},Ur=new Map,Fr=Ae();function Vr(e,t){g.JL.call("mergePageInstance",Ur.get(t),e),Ur.set(t,e)}function Wr(e){return Ur.get(e)}function Hr(e){Ur.delete(e)}function zr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1?e.substring(0,n):e).concat(Jr(t))}function Kr(e){return e+"."+ue}function $r(e){return e+"."+ce}function Yr(e){return e+"."+le}function Zr(e,t,n,o){var a,s,u=null!==t&&void 0!==t?t:"taro_page_".concat(Fr()),l=(0,i.A)(g.JL.call("getMiniLifecycleImpl").page,7),d=l[0],h=l[1],v=l[2],p=l[3],m=l[4],b=l[5],y=l[6],k=null,w=!1,E=[];function A(e){var t=e.route||e.__route__||e.$taroPath;hr.router={params:e.$taroParams,path:_r(t),$taroPath:e.$taroPath,onReady:Kr(u),onShow:$r(u),onHide:Yr(u)},(0,g.b0)(e.exitState)||(hr.router.exitState=e.exitState)}var C=(0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)({},d,function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;s=new Promise(function(e){a=e}),pn.start(S),hr.page=this,this.config=o||{};var c=Object.assign({},n,{$taroTimestamp:Date.now()}),l=this.$taroPath=qr(u,c);null==this.$taroParams&&(this.$taroParams=c),A(this),Pr.trigger(r.INIT,l);var d=function(){hr.app.mount(e,l,function(){k=Ge.document.getElementById(l),(0,g.D8)(null!==k,"\u6ca1\u6709\u627e\u5230\u9875\u9762\u5b9e\u4f8b\u3002"),zr(l,se,t.$taroParams),a(),k.ctx=t,k.performUpdate(!0,i)})};w?E.push(d):d()}),h,function(){var e=this.$taroPath;Pr.trigger(r.DESTORY,e),zr(e,h),w=!0,hr.app.unmount(e,function(){w=!1,Ur.delete(e),k&&(k.ctx=null,k=null),E.length&&(E.forEach(function(e){return e()}),E=[])})}),v,function(){var e=this;s.then(function(){zr(e.$taroPath,ue),Tr(function(){return Qn.trigger(Kr(u))}),e.onReady.called=!0})}),p,function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.then(function(){hr.page=e,A(e),Pr.trigger(r.RECOVER,e.$taroPath),zr(e.$taroPath,ce,t),Tr(function(){return Qn.trigger($r(u))})})}),m,function(){Pr.trigger(r.RESTORE,this.$taroPath),hr.page===this&&(hr.page=null,hr.router=null),zr(this.$taroPath,le),Qn.trigger(Yr(u))});return b.forEach(function(e){var t=!1;e=e.replace(/^defer:/,function(){return t=!0,""}),C[e]=function(){var n=arguments,r=this,i=function(){return zr.apply(void 0,[r.$taroPath,e].concat((0,f.A)(n)))};if(!t)return i();s.then(i)}}),y.forEach(function(t){var n;(e[t]||(null===(n=e.prototype)||void 0===n?void 0:n[t])||e[t.replace(/^on/,"enable")]||(null===o||void 0===o?void 0:o[t.replace(/^on/,"enable")]))&&(C[t]=function(){for(var e,n=arguments.length,r=new Array(n),i=0;iei?i():setTimeout(function(){return a()},20)}a()};function ni(){(0,g.Tn)(Array.prototype.find)||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if(!(0,g.Tn)(e))throw new TypeError("predicate must be a function");var r=arguments[1],i=0;while(i>>0;if(0===r)return!1;var i=0|t,o=Math.max(i>=0?i:r-Math.abs(i),0);while(o1?a-1:0),c=1;c1?u-1:0),l=1;lt?1:-1:r?-1:i||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[Le(e)]="p"+t}),t[xe(n)]=i}),t}function je(e,t){var n=t||Se,r=Object.keys(e);r.forEach(function(t){n.tap(t,e[t])})}function De(e){return function(){console.warn("\u5c0f\u7a0b\u5e8f\u6682\u4e0d\u652f\u6301 ".concat(e))}}function Ge(e,t){var n="__key_",r=["navigateTo","redirectTo","reLaunch","switchTab"];if(r.indexOf(e)>-1){var i=t.url=t.url||"",o=i.indexOf("?")>-1,a=Re();t.url+=(o?"&":"?")+"".concat(n,"=").concat(a)}}var Ue,Fe=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 Ve(e){return function(){var t,n=null===(t=e.getSystemInfoSync)||void 0===t?void 0:t.call(e);if(!n)return!1;var r=n.platform,i=r.toLowerCase();return"android"===i||"devtools"===i}}function We(e){return function(t){t=t?he(t)?{url:t}:t:{};var n,r=t.success,i=t.fail,o=t.complete,a=new Promise(function(a,s){t.success=function(e){r&&r(e),a(e)},t.fail=function(e){i&&i(e),s(e)},t.complete=function(e){o&&o(e)},n=e.request(t)});return Je(n,a),a.abort=function(e){return e&&e(),n&&n.abort(),a},a}}function He(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.needPromiseApis||[],o=new Set([].concat((0,r.A)(i),(0,r.A)(Fe))),a=["getEnv","interceptors","Current","getCurrentInstance","options","nextTick","eventCenter","Events","preload","webpackJsonp"],s=new Set(n.isOnlyPromisify?i:Object.keys(t).filter(function(e){return-1===a.indexOf(e)}));n.modifyApis&&n.modifyApis(s),s.forEach(function(r){if(o.has(r)){var i=r;e[i]=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,o=new Array(r>1?r-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{};e.canIUseWebp=Ve(e),e.getCurrentPages=getCurrentPages||De("getCurrentPages"),e.getApp=getApp||De("getApp"),e.env=t.env||{};try{e.requirePlugin=requirePlugin||De("requirePlugin")}catch(t){e.requirePlugin=De("requirePlugin")}var r=n.request||We(t);function i(e){return r(e.requestParams)}var o=new e.Link(i);e.request=o.request.bind(o),e.addInterceptor=o.addInterceptor.bind(o),e.cleanInterceptors=o.cleanInterceptors.bind(o),e.miniGlobal=e.options.miniGlobal=t,e.getAppInfo=function(){return{platform:"mini",taroVersion:"3.6.31",designWidth:e.config.designWidth}},e.createSelectorQuery=qe(e,t,"createSelectorQuery","exec"),e.createIntersectionObserver=qe(e,t,"createIntersectionObserver","observe")}function Je(e,t){if(e&&t){var n=["abort","onHeadersReceived","offHeadersReceived","onProgressUpdate","offProgressUpdate","onChunkReceived","offChunkReceived"];e&&n.forEach(function(n){n in e&&(t[n]=e[n].bind(e))})}}function qe(e,t,n,r){return function(){var i=t[n].apply(t,arguments),o=i[r].bind(i);return i[r]=function(){for(var t=arguments.length,n=new Array(t),r=0;r