| 1234567 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0029":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-swiper-item",e._g({},e.$listeners),[e._t("default")],2)},r=[]},"00de":function(e,t,n){"use strict";n.r(t);var i=n("498d"),o=n("d25e");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"00ee":function(e,t,n){var i=n("b622"),o=i("toStringTag"),r={};r[o]="z",e.exports="[object z]"===String(r)},"0138":function(e,t,n){"use strict";function i(e,t,n){return e>t-n&&e<t+n}function o(e,t){return i(e,0,t)}function r(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Spring=r,r.prototype._solve=function(e,t){var n=this._c,i=this._m,o=this._k,r=n*n-4*i*o;if(0===r){var a=-n/(2*i),s=e,c=t/(a*e);return{x:function(e){return(s+c*e)*Math.pow(Math.E,a*e)},dx:function(e){var t=Math.pow(Math.E,a*e);return a*(s+c*e)*t+c*t}}}if(r>0){var u=(-n-Math.sqrt(r))/(2*i),l=(-n+Math.sqrt(r))/(2*i),d=(t-u*e)/(l-u),f=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*u*t+d*l*n}}}var p=Math.sqrt(4*i*o-n*n)/(2*i),h=-n/2*i,g=e,m=(t-h*e)/p;return{x:function(e){return Math.pow(Math.E,h*e)*(g*Math.cos(p*e)+m*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,h*e),n=Math.cos(p*e),i=Math.sin(p*e);return t*(m*p*n-g*p*i)+h*t*(m*i+g*n)}}},r.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},r.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},r.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!o(t,.4)){t=t||0;var i=this._endPosition;this._solution&&(o(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),o(t,.4)&&(t=0),o(i,.4)&&(i=0),i+=this._endPosition),this._solution&&o(i-e,.4)&&o(t,.4)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},r.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},r.prototype.done=function(e){return e||(e=(new Date).getTime()),i(this.x(),this._endPosition,.4)&&o(this.dx(),.4)},r.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},r.prototype.springConstant=function(){return this._k},r.prototype.damping=function(){return this._c},r.prototype.configuration=function(){function e(e,t){e.reconfigure(1,t,e.damping())}function t(e,t){e.reconfigure(1,e.springConstant(),t)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]}},"0179":function(e,t,n){"use strict";(function(e){function i(t){var n=t.options,i=t.callbackId,o=n.family,r=n.source,a=n.desc,s=void 0===a?{}:a,c=document.fonts;if(c){var u=new FontFace(o,r,s);u.load().then((function(){c.add(u),e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})})).catch((function(t){e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:fail ".concat(t)}})}))}else{var l=document.createElement("style");l.innerText='@font-face{font-family:"'.concat(o,'";src:').concat(r,";font-style:").concat(s.style,";font-weight:").concat(s.weight,";font-stretch:").concat(s.stretch,";unicode-range:").concat(s.unicodeRange,";font-variant:").concat(s.variant,";font-feature-settings:").concat(s.featureSettings,";}"),document.head.appendChild(l),e.publishHandler("onLoadFontFaceCallback",{callbackId:i,data:{errMsg:"loadFontFace:ok"}})}}n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.loadFontFace=i}).call(this,n("c5c3"))},"0206":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.upx2px=l;var i=1e-4,o=750,r=!1,a=0,s=0;function c(){var e=uni.getSystemInfoSync(),t=e.platform,n=e.pixelRatio,i=e.windowWidth;a=i,s=n,r="ios"===t}function u(e,t){return e=Number(e),isNaN(e)?t:e}function l(e,t){if(0===a&&c(),e=Number(e),0===e)return 0;var n=__uniConfig.globalStyle||__uniConfig.window||{},l=u(n.rpxCalcMaxDeviceWidth,960),d=u(n.rpxCalcBaseDeviceWidth,375),f=u(n.rpxCalcIncludeWidth,750),p=t||a;p=e===f||p<=l?p:d;var h=e/o*p;return h<0&&(h=-h),h=Math.floor(h+i),0===h&&(h=1!==s&&r?.5:1),e<0?-h:h}},"02d2":function(e,t,n){"use strict";n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.setNavigationBarTitle=t.setNavigationBarColor=void 0;var i=["#ffffff","#000000"],o={frontColor:{type:String,required:!0,validator:function(e,t){if(-1===i.indexOf(e))return'invalid frontColor "'.concat(e,'"')}},backgroundColor:{type:String,required:!0},animation:{type:Object,default:function(){return{duration:0,timingFunc:"linear"}},validator:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}};t.setNavigationBarColor=o;var r={title:{type:String,required:!0}};t.setNavigationBarTitle=r},"0319":function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("c975"),n("d81d"),n("ac1f"),n("466d"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n("db6a"),r=i(n("2497")),a=n("987d");a.interact.addInteractListener();var s="*";function c(){var e=window.navigator.userAgent.toLowerCase();return!(!e.match(/MicroMessenger/i)||"micromessenger"!==e.match(/MicroMessenger/i)[0])}function u(e){var t=e.count,n=e.sourceType,i=e.type,a=e.extension,u=document.createElement("input");return u.type="file",(0,o.updateElementStyle)(u,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),u.accept=a.map((function(e){if(i!==s){var t=e.replace(".","");return"".concat(i,"/").concat(r.default[i][t]||t)}return c()?".":0===e.indexOf(".")?e:".".concat(e)})).join(","),t>1&&(u.multiple="multiple"),1===n.length&&"camera"===n[0]&&(u.capture="camera"),u}},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},"0538":function(e,t,n){"use strict";var i=n("1c0b"),o=n("861d"),r=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";a[t]=Function("C,a","return new C("+i.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=r.call(arguments,1),a=function(){var i=n.concat(r.call(arguments));return this instanceof a?s(t,i.length,i):t.apply(e,i)};return o(t.prototype)&&(a.prototype=t.prototype),a}},"057f":function(e,t,n){var i=n("fc6a"),o=n("241c").f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?s(e):o(i(e))}},"06b9":function(e,t,n){"use strict";(function(e,t,i){var o=n("4ea4");n("4160");var r=o(n("d4ec")),a=o(n("bee2")),s=o(n("e143")),c=o(n("3117")),u=function(){function o(){(0,r.default)(this,o),this._init()}return(0,a.default)(o,[{key:"_init",value:function(){t.UniViewJSBridge={subscribe:e.subscribe,publishHandler:e.publishHandler,subscribeHandler:e.subscribeHandler},t.UniServiceJSBridge={subscribe:i.subscribe,publishHandler:i.publishHandler,subscribeHandler:i.subscribeHandler};var o=n("35d0"),r=o.default,a=o.getApp,u=o.getCurrentPages,l=["chooseImage"];l.forEach((function(e){Object.defineProperty(r,e,{writable:!1,configurable:!1})})),t.uni=r,t.wx=t.uni,t.getApp=a,t.getCurrentPages=u,s.default.use(n("d66d").default,{routes:__uniRoutes}),s.default.use(n("7abb").default,{routes:__uniRoutes}),(0,c.default)(s.default),n("d66a"),n("c1dd")}}]),o}();t.UniApp=u,t.__uniConfig&&new u}).call(this,n("c5c3"),n("c8ba"),n("a9aa"))},"06c5":function(e,t,n){"use strict";n("a630"),n("fb6a"),n("d3b7"),n("25f0"),n("3ca3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=o(n("6b75"));function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(e){if("string"===typeof e)return(0,i.default)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(e,t):void 0}}},"06cf":function(e,t,n){var i=n("83ab"),o=n("d1e7"),r=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),u=n("0cfb"),l=Object.getOwnPropertyDescriptor;t.f=i?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(n){}if(c(e,t))return r(!o.f.call(e,t),e[t])}},"0735":function(e,t,n){"use strict";var i=n("4ea4");n("c975"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.showActionSheet=t.showLoading=t.showToast=t.showModal=void 0;var o=n("81e8"),r=i(n("f1ca")),a={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:function(){return(0,o.t)("uni.showModal.cancel")}},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:function(){return(0,o.t)("uni.showModal.confirm")}},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}};t.showModal=a;var s={title:{type:String,default:""},icon:{default:"success",validator:function(e,t){-1===["success","loading","error","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator:function(e,t){e&&(t.image=(0,r.default)(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}};t.showToast=s;var c={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}};t.showLoading=c;var u={itemList:{type:Array,required:!0,validator:function(e,t){if(!e.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!0},popover:{type:Object}};t.showActionSheet=u},"075a":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-head",{attrs:{"uni-page-head-type":e.type}},[n("div",{staticClass:"uni-page-head",class:e.headClass,style:{transitionDuration:e.duration,transitionTimingFunction:e.timingFunc,backgroundColor:e.bgColor,color:e.textColor}},[n("div",{staticClass:"uni-page-head-hd"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.backButton,expression:"backButton"}],staticClass:"uni-page-head-btn",on:{click:e._back}},[n("i",{staticClass:"uni-btn-icon",style:{color:e.color,fontSize:"27px"}},[e._v("")])]),n("div",{staticClass:"uni-page-head-ft"},[e._l(e.btns,(function(t,i){return["left"===t.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":t.redDot||t.badgeText,"uni-page-head-btn-select":t.select},style:{backgroundColor:"transparent"===e.type?t.background:"transparent",width:t.width},attrs:{"badge-text":t.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:e._formatBtnStyle(t),domProps:{innerHTML:e._s(e._formatBtnFontText(t))},on:{click:function(t){return e._onBtnClick(i)}}})]):e._e()]}))],2)]),e.searchInput?e._e():n("div",{staticClass:"uni-page-head-bd"},[n("div",{staticClass:"uni-page-head__title",style:{fontSize:e.titleSize,opacity:"transparent"===e.type?0:1}},[e.loading?n("i",{staticClass:"uni-loading"}):e._e(),""!==e.titleImage?n("img",{staticClass:"uni-page-head__title_image",attrs:{src:e.titleImage}}):[e._v("\n "+e._s(e.titleText)+"\n ")]],2)]),e.searchInput?n("div",{staticClass:"uni-page-head-search",style:{"border-radius":e.searchInput.borderRadius,"background-color":e.searchInput.backgroundColor}},[n("div",{staticClass:"uni-page-head-search-placeholder",class:["uni-page-head-search-placeholder-"+(e.focus||e.showPlaceholder?"left":e.searchInput.align)],style:{color:e.searchInput.placeholderColor},domProps:{textContent:e._s(e.showPlaceholder||e.composing?"":e.searchInput.placeholder)}}),n("v-uni-input",{ref:"input",staticClass:"uni-page-head-search-input",style:{color:e.searchInput.color},attrs:{focus:e.searchInput.autoFocus,disabled:e.searchInput.disabled,"placeholder-style":"color:"+e.searchInput.placeholderColor,"confirm-type":"search"},on:{focus:e._focus,blur:e._blur,"update:value":e._input},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}}),e.text?n("i",{staticClass:"uni-icon-clear",on:{click:e._clearInput}}):e._e()],1):e._e(),n("div",{staticClass:"uni-page-head-ft"},[e._l(e.btns,(function(t,i){return["left"!==t.float?n("div",{key:i,staticClass:"uni-page-head-btn",class:{"uni-page-head-btn-red-dot":t.redDot||t.badgeText,"uni-page-head-btn-select":t.select},style:{backgroundColor:"transparent"===e.type?t.background:"transparent",width:t.width},attrs:{"badge-text":t.badgeText}},[n("i",{staticClass:"uni-btn-icon",style:e._formatBtnStyle(t),domProps:{innerHTML:e._s(e._formatBtnFontText(t))},on:{click:function(t){return e._onBtnClick(i)}}})]):e._e()]}))],2)]),"transparent"!==e.type&&"float"!==e.type?n("div",{staticClass:"uni-placeholder",class:{"uni-placeholder-titlePenetrate":e.titlePenetrate}}):e._e()])},r=[]},"07a6":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.disableScroll=r,t.pageScrollTo=a,t.createScrollListener=c;var i,o=n("b65e");function r(e){e.preventDefault()}function a(e){var t=e.scrollTop,n=e.selector,i=e.duration;if("undefined"===typeof t){var o=document.querySelector(n);if(o){var r=o.getBoundingClientRect(),a=r.top,s=r.height;t=a+window.pageYOffset,t-=s}}var c=document.documentElement,u=c.clientHeight,l=c.scrollHeight;function d(e){if(e<=0)window.scrollTo(0,t);else{var n=t-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/e*10),d(e-10)}))}}t=Math.min(t,l-u),0!==i?window.scrollY!==t&&d(i):c.scrollTop=document.body.scrollTop=t}var s=0;function c(t,n){var r=n.enablePageScroll,a=n.enablePageReachBottom,c=n.onReachBottomDistance,u=n.enableTransparentTitleNView,l=!1,d=!1,f=!0;function p(){var e=document.documentElement.scrollHeight,t=window.innerHeight,n=window.scrollY,i=n>0&&e>t&&n+t+c>=e,o=Math.abs(e-s)>c;return!i||d&&!o?(!i&&d&&(d=!1),!1):(s=e,d=!0,!0)}function h(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===t){var s=window.pageYOffset;r&&(0,o.publishHandler)("onPageScroll",{scrollTop:s},t),u&&e.emit("onPageScroll",{scrollTop:s}),a&&f&&(c()||(i=setTimeout(c,300))),l=!1}function c(){if(p())return(0,o.publishHandler)("onReachBottom",{},t),f=!1,setTimeout((function(){f=!0}),350),!0}}return function(){clearTimeout(i),l||requestAnimationFrame(h),l=!0}}}).call(this,n("c5c3"))},"07ac":function(e,t,n){var i=n("23e7"),o=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return o(e)}})},"0857":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setClipboardData=void 0;var i=n("81e8"),o={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess:function(e,t){if(t.showToast){var n=(0,i.t)("uni.setClipboardData.success");n&&uni.showToast({title:n,icon:"success",mask:!1,style:{width:void 0}})}}};t.setClipboardData=o},"08c5":function(e,t,n){"use strict";(function(e){function i(t,n){return n?t?t.$el:n.$el:e.error("page is not ready")}function o(e){return e.matches||(e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;while(--n>=0&&t.item(n)!==this);return n>-1}),e}n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.findElm=i,t.elementMatchesPolyfill=o}).call(this,n("5a52")["default"])},"094d":function(e,t,n){"use strict";n.r(t);var i=n("6cbd"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"09f0":function(e,t,n){"use strict";function i(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){o=!0,r=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(o)throw r}}return n}}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"0a71":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("4de4"),n("c740"),n("4160"),n("caad"),n("c975"),n("a434"),n("ac1f"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("f1ca")),r=n("db6a"),a=n("9a89"),s=n("0179");function c(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}var u="UniTabbarIconFont",l={name:"TabBar",props:{position:{default:"bottom",validator:function(e){return-1!==["bottom","top"].indexOf(e)}},color:{type:String,default:"#999"},selectedColor:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderStyle:{type:String,default:"black"},iconfontSrc:{type:String,default:""},list:{type:Array,default:function(){return[]}},matchMedia:{type:Object,default:function(){return{}}},blurEffect:{type:String,default:"none"},fontSize:{type:String,default:"10px"},iconWidth:{type:String,default:"24px"},spacing:{type:String,default:"3px"},height:{type:String,default:"50px"},midButton:{type:Object,default:null}},data:function(){return{selectedIndex:0,visibleList:[]}},computed:{tabbarBackgroundColor:function(){var e="#f7f7fa";if(this.backgroundColor)return this.backgroundColor;if(c("backdrop-filter:blur(10px)")&&"none"!==this.blurEffect){if("dark"===this.blurEffect)return"rgb(0, 0, 0, 0.8)";if(["light","extralight"].includes(this.blurEffect))return"rgb(250, 250, 250, 0.8)"}return e},borderColor:function(){return"white"===this.borderStyle?"rgba(255, 255, 255, 0.33)":"black"===this.borderStyle?"rgba(0, 0, 0, 0.33)":this.borderStyle}},watch:{$route:{immediate:!0,handler:function(){this.visibleList.length||this._initVisibleList(),this.setSelectedIndex()}},list:{deep:!0,handler:function(){this._initVisibleList(),this.setSelectedIndex()}}},created:function(){var e=this;this.list.forEach((function(t){void 0===t.visible&&e.$set(t,"visible",!0)})),this.iconfontSrc&&(0,s.loadFontFace)({options:{family:u,source:'url("'.concat(this.iconfontSrc,'")')}})},beforeCreate:function(){this.__path__=this.$route.path},methods:{getIconPath:function(e,t){return this.selectedIndex===t&&e.selectedIconPath||e.iconPath||""},setSelectedIndex:function(){var e=this;if(this.$route.meta.isTabBar){this.__path__=this.$route.path;var t=this.visibleList.findIndex((function(t){return e.$route.meta.pagePath===t.pagePath}));this.selectedIndex=t}},_initVisibleList:function(){this.visibleList=this._initMidButton(this.list.filter((function(e){return!1!==e.visible})))},_getRealPath:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=/^([a-z-]+:)?\/\//i,n=/^data:.*,.*/;return t.test(e)||n.test(e)||0===e.indexOf("/")||(e="/"+e),(0,o.default)(e)},_switchTab:function(t,n){var i=t.text,o=t.pagePath,r=t.isMidButton,s=void 0!==r&&r;if(s)(0,a.publish)("onTabBarMidButtonTap");else{this.selectedIndex=n;var c="/"+o;c===__uniRoutes[0].alias&&(c="/");var u={index:n,text:i,pagePath:o};this.$route.path!==c?(this.__path__=this.$route.path,uni.switchTab({from:"tabBar",url:c,detail:u})):e.emit("onTabItemTap",u)}},_initMidButton:function(e){var t=e.length;if(t%2===0&&(0,r.isPlainObject)(this.midButton)){var n={width:"50px",height:"50px",iconWidth:"24px"};for(var i in n)this.midButton[i]=this.midButton[i]||n[i];e.splice(~~(t/2),0,Object.assign({},this.midButton,{isMidButton:!0}))}return e},_uniTabbarBdStyle:function(e){return Object.assign({},{width:e.width,height:e.height,backgroundImage:e.backgroundImage?"url('"+this._getRealPath(e.backgroundImage)+"')":""})}}};t.default=l}).call(this,n("a9aa"))},"0a75":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("c975"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("5897")),r={name:"Toast",mixins:[o.default],props:{title:{type:String,default:""},icon:{default:"success",validator:function(e){return-1!==["success","loading","error","none"].indexOf(e)}},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},computed:{iconClass:function(){return"success"===this.icon?"uni-icon-success-no-circle":"loading"===this.icon?"uni-loading":"error"===this.icon?"uni-icon-error":""}},beforeUpdate:function(){this.visible&&(this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){e.emit("onHideToast")}),this.duration))}};t.default=r}).call(this,n("a9aa"))},"0a87":function(e,t,n){"use strict";n.r(t);var i=n("7e36"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"0b25":function(e,t,n){var i=n("a691"),o=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0c47":function(e,t,n){var i=n("da84"),o=n("d44e");o(i.JSON,"JSON",!0)},"0c9e":function(e,t,n){"use strict";n.r(t);var i=n("ecc9"),o=n("7baa");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"0ccb":function(e,t,n){var i=n("50c4"),o=n("1148"),r=n("1d80"),a=Math.ceil,s=function(e){return function(t,n,s){var c,u,l=String(r(t)),d=l.length,f=void 0===s?" ":String(s),p=i(n);return p<=d||""==f?l:(c=p-d,u=o.call(f,a(c/f.length)),u.length>c&&(u=u.slice(0,c)),e?l+u:u+l)}};e.exports={start:s(!1),end:s(!0)}},"0cf0":function(e,t,n){"use strict";(function(e,i){var o=n("4ea4");n("d81d"),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseImage=f;var r=n("b286"),a=n("81e8"),s=o(n("0319")),c=n("987d"),u=e,l=u.invokeCallbackHandler,d=null;function f(e,t){var n=e.count,o=e.sourceType,u=e.extension;d&&(document.body.removeChild(d),d=null),d=(0,s.default)({count:n,sourceType:o,extension:u,type:"image"}),document.body.appendChild(d),d.addEventListener("change",(function(e){for(var i=[],o=e.target.files.length,a=function(t){var o=e.target.files[t],a=void 0;Object.defineProperty(o,"path",{get:function(){return a=a||(0,r.fileToUrl)(o),a}}),t<n&&i.push(o)},s=0;s<o;s++)a(s);var c={errMsg:"chooseImage:ok",get tempFilePaths(){return i.map((function(e){var t=e.path;return t}))},tempFiles:i};l(t,c)})),d.click(),c.interact.getStatus()||i.warn("".concat((0,a.t)("uni.chooseFile.notUserActivation")))}}).call(this,n("a9aa"),n("5a52")["default"])},"0cfb":function(e,t,n){var i=n("83ab"),o=n("d039"),r=n("cc12");e.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"0d04":function(e,t,n){"use strict";var i=n("4ea4");n("4de4"),n("c740"),n("4160"),n("c975"),n("d81d"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("2909")),r=n("db6a"),a={name:"PickerView",props:{value:{type:Array,default:function(){return[]},validator:function(e){return Array.isArray(e)&&e.filter((function(e){return"number"===typeof e})).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},data:function(){return{valueSync:(0,o.default)(this.value),height:34,items:[],changeSource:""}},watch:{value:function(e,t){var n=this;this.valueSync.length=e.length,e.forEach((function(e,t){e!==n.valueSync[t]&&n.$set(n.valueSync,t,e)}))},valueSync:{deep:!0,handler:function(e,t){if(""===this.changeSource)this._valueChanged(e);else{this.changeSource="";var n=e.map((function(e){return e}));this.$emit("update:value",n),this.$trigger("change",{},{value:n})}}}},methods:{getItemIndex:function(e){return this.items.indexOf(e)},getItemValue:function(e){return this.valueSync[this.getItemIndex(e.$vnode)]||0},setItemValue:function(e,t){var n=this.getItemIndex(e.$vnode),i=this.valueSync[n];i!==t&&(this.changeSource="touch",this.$set(this.valueSync,n,t))},_valueChanged:function(e){this.items.forEach((function(t,n){t.componentInstance.setCurrent(e[n]||0)}))},_resize:function(e){var t=e.height;this.height=t}},render:function(e){var t=[];return this.$slots.default&&(0,r.deepClone)(this.$slots.default,e).forEach((function(e){e.componentOptions&&"v-uni-picker-view-column"===e.componentOptions.tag&&t.push(e)})),this.items=t,e("uni-picker-view",{on:this.$listeners},[e("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}}),e("div",{ref:"wrapper",class:"uni-picker-view-wrapper"},t)])}};t.default=a},"0d21":function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"0d3b":function(e,t,n){var i=n("d039"),o=n("b622"),r=n("c430"),a=o("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),r&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0ebb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeStorageSync=t.removeStorage=t.setStorageSync=t.setStorage=t.getStorageSync=t.getStorage=void 0;var i={key:{type:String,required:!0}};t.getStorage=i;var o=[{name:"key",type:String,required:!0}];t.getStorageSync=o;var r={key:{type:String,required:!0},data:{required:!0}};t.setStorage=r;var a=[{name:"key",type:String,required:!0},{name:"data",required:!0}];t.setStorageSync=a;var s=i;t.removeStorage=s;var c=o;t.removeStorageSync=c},"0fbe":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UNI_STORAGE_LOCALE=t.RESPONSIVE_MIN_WIDTH=t.TABBAR_HEIGHT=t.NAVBAR_HEIGHT=void 0;var i=44;t.NAVBAR_HEIGHT=i;var o=50;t.TABBAR_HEIGHT=o;var r=768;t.RESPONSIVE_MIN_WIDTH=r;var a="UNI_LOCALE";t.UNI_STORAGE_LOCALE=a},"10d1":function(e,t,n){"use strict";var i,o=n("da84"),r=n("e2cc"),a=n("f183"),s=n("6d61"),c=n("acac"),u=n("861d"),l=n("69f3").enforce,d=n("7f9a"),f=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,h=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",h,c);if(d&&f){i=c.getConstructor(h,"WeakMap",!0),a.REQUIRED=!0;var m=g.prototype,v=m["delete"],_=m.has,y=m.get,b=m.set;r(m,{delete:function(e){if(u(e)&&!p(e)){var t=l(this);return t.frozen||(t.frozen=new i),v.call(this,e)||t.frozen["delete"](e)}return v.call(this,e)},has:function(e){if(u(e)&&!p(e)){var t=l(this);return t.frozen||(t.frozen=new i),_.call(this,e)||t.frozen.has(e)}return _.call(this,e)},get:function(e){if(u(e)&&!p(e)){var t=l(this);return t.frozen||(t.frozen=new i),_.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(u(e)&&!p(e)){var n=l(this);n.frozen||(n.frozen=new i),_.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},1108:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("c740"),n("c975"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("f1ca")),r=n("631a"),a={name:"CustomTabBar",props:{selected:{type:Number,default:0},showIcon:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},data:function(){return{selectedIndex:this.selected}},computed:{tabBarOptions:function(){return r.tabBar},hasTabBar:function(){return r.tabBar.list&&r.tabBar.list.length},showTabBar:function(){var e=getApp();return!e||!e.$children[0].hideTabBar}},watch:{selected:function(e){this.selectedIndex=e;var t=getApp().$children[0].$refs.tabBar;t&&(t.selectedIndex=e)},$route:function(e,t){if(e.meta.isTabBar){var n=r.tabBar.list.findIndex((function(t){return e.meta.pagePath===t.pagePath}));n>-1&&(this.selectedIndex=n)}}},methods:{_getRealPath:function(e){var t=/^([a-z-]+:)?\/\//i,n=/^data:.*,.*/;return t.test(e)||n.test(e)||0===e.indexOf("/")||(e="/"+e),(0,o.default)(e)},_switchTab:function(t,n){var i=t.text,o=t.pagePath;this.selectedIndex=n;var r="/"+o;r===__uniRoutes[0].alias&&(r="/");var a={index:n,text:i,pagePath:o};this.$emit("onTabItemTap",a),this.$route.path===r&&e.emit("onTabItemTap",a)}}};t.default=a}).call(this,n("a9aa"))},1148:function(e,t,n){"use strict";var i=n("a691"),o=n("1d80");e.exports="".repeat||function(e){var t=String(o(this)),n="",r=i(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},1239:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("339f")),r={name:"View",mixins:[o.default],listeners:{"label-click":"clickHandler"}};t.default=r},1276:function(e,t,n){"use strict";var i=n("d784"),o=n("44e7"),r=n("825a"),a=n("1d80"),s=n("4840"),c=n("8aa5"),u=n("50c4"),l=n("14c3"),d=n("9263"),f=n("d039"),p=[].push,h=Math.min,g=4294967295,m=!f((function(){return!RegExp(g,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),r=void 0===n?g:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!o(e))return t.call(i,e,r);var s,c,u,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,f+"g");while(s=d.call(m,i)){if(c=m.lastIndex,c>h&&(l.push(i.slice(h,s.index)),s.length>1&&s.index<i.length&&p.apply(l,s.slice(1)),u=s[0].length,h=c,l.length>=r))break;m.lastIndex===s.index&&m.lastIndex++}return h===i.length?!u&&m.test("")||l.push(""):l.push(i.slice(h)),l.length>r?l.slice(0,r):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,o,n):i.call(String(o),t,n)},function(e,o){var a=n(i,e,this,o,i!==t);if(a.done)return a.value;var d=r(e),f=String(this),p=s(d,RegExp),v=d.unicode,_=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(m?"y":"g"),y=new p(m?d:"^(?:"+d.source+")",_),b=void 0===o?g:o>>>0;if(0===b)return[];if(0===f.length)return null===l(y,f)?[f]:[];var M=0,S=0,C=[];while(S<f.length){y.lastIndex=m?S:0;var k,T=l(y,m?f:f.slice(S));if(null===T||(k=h(u(y.lastIndex+(m?0:S)),f.length))===M)S=c(f,S,v);else{if(C.push(f.slice(M,S)),C.length===b)return C;for(var I=1;I<=T.length-1;I++)if(C.push(T[I]),C.length===b)return C;S=M=k}}return C.push(f.slice(M)),C}]}),!m)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"131a":function(e,t,n){var i=n("23e7"),o=n("d2bb");i({target:"Object",stat:!0},{setPrototypeOf:o})},1387:function(e,t,n){"use strict";function i(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Friction=i,i.prototype.set=function(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()},i.prototype.setVelocityByEnd=function(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},i.prototype.x=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog},i.prototype.dx=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._v*t},i.prototype.done=function(){return Math.abs(this.dx())<3},i.prototype.reconfigure=function(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)},i.prototype.configuration=function(){var e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}},"13d5":function(e,t,n){"use strict";var i=n("23e7"),o=n("d58f").left,r=n("a640"),a=n("ae40"),s=r("reduce"),c=a("reduce",{1:0});i({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"13f1":function(e,t,n){"use strict";n.r(t);var i=n("5a8d"),o=n("e330");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"145e":function(e,t,n){"use strict";var i=n("7b0b"),o=n("23cb"),r=n("50c4"),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),s=r(n.length),c=o(e,s),u=o(t,s),l=arguments.length>2?arguments[2]:void 0,d=a((void 0===l?s:o(l,s))-u,s-c),f=1;u<c&&c<u+d&&(f=-1,u+=d-1,c+=d-1);while(d-- >0)u in n?n[c]=n[u]:delete n[c],c+=f,u+=f;return n}},"14bc":function(e,t,n){"use strict";var i;n("c975"),n("d81d"),n("fb6a"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.uniIdMixin=c;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function a(e){return decodeURIComponent(i(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function s(){var e,t=uni.getStorageSync("uni_id_token")||"",n=t.split(".");if(!t||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse(a(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function c(e){e.prototype.uniIDHasRole=function(e){var t=s(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=s(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=s(),t=e.tokenExpired;return t>Date.now()}}i="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!r.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,a="",s=0;s<e.length;)t=o.indexOf(e.charAt(s++))<<18|o.indexOf(e.charAt(s++))<<12|(n=o.indexOf(e.charAt(s++)))<<6|(i=o.indexOf(e.charAt(s++))),a+=64===n?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob},"14c2":function(e,t,n){"use strict";n.r(t);var i=n("8bd0"),o=n("a53c");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"14c3":function(e,t,n){var i=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var r=n.call(e,t);if("object"!==typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},1521:function(e,t,n){"use strict";var i=n("4ea4");n("c975"),n("a9e3"),n("acd8"),n("e25e"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("db6a");var o,r=i(n("64b2"));function a(){}var s={name:"Keyboard",mixins:[r.default],props:{cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},computed:{isApple:function(){return 0===String(navigator.vendor).indexOf("Apple")}},directives:{keyboard:{inserted:function(e,t,n){n.context.initKeyboard(e)}}},methods:{initKeyboard:function(e){var t=this;e.addEventListener("focus",(function(){!0,clearTimeout(o),document.addEventListener("click",a,!1)}));var n=function(){document.removeEventListener("click",a,!1),t.isApple&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};e.addEventListener("blur",(function(){t.isApple&&e.blur(),!1,n()}))}}};t.default=s},"159b":function(e,t,n){var i=n("da84"),o=n("fdbc"),r=n("17c2"),a=n("9112");for(var s in o){var c=i[s],u=c&&c.prototype;if(u&&u.forEach!==r)try{a(u,"forEach",r)}catch(l){u.forEach=r}}},"170f":function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("caad"),n("c975"),n("d81d"),n("b64b"),n("acd8"),n("ac1f"),n("2532"),n("5319"),n("2ca0"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.startAnimation=c,t.default=void 0;var o=i(n("2909"));function r(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(function(e,t){return"".concat(uni.upx2px(parseFloat(t)),"px")})):/^-?[\d\.]+$/.test(e)?"".concat(e,"px"):e||""}function a(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})).replace("webkit","-webkit")}function s(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],i=["opacity","background-color"],s=["width","height","left","right","top","bottom"],c=e.animates,u=e.option,l=u.transition,d={},f=[];return c.forEach((function(e){var a=e.type,c=(0,o.default)(e.args);if(t.concat(n).includes(a))a.startsWith("rotate")||a.startsWith("skew")?c=c.map((function(e){return parseFloat(e)+"deg"})):a.startsWith("translate")&&(c=c.map(r)),n.indexOf(a)>=0&&(c.length=1),f.push("".concat(a,"(").concat(c.join(","),")"));else if(i.concat(s).includes(c[0])){a=c[0];var u=c[1];d[a]=s.includes(a)?r(u):u}})),d.transform=d.webkitTransform=f.join(" "),d.transition=d.webkitTransition=Object.keys(d).map((function(e){return"".concat(a(e)," ").concat(l.duration,"ms ").concat(l.timingFunction," ").concat(l.delay,"ms")})).join(","),d.transformOrigin=d.webkitTransformOrigin=u.transformOrigin,d}function c(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,i=t.actions,o=t.actions.length;setTimeout((function(){r()}),0)}function r(){var t=i[n],a=t.option.transition,c=s(t);Object.keys(c).forEach((function(t){e.$el.style[t]=c[t]})),n+=1,n<o&&setTimeout(r,a.duration+a.delay)}}var u={props:["animation"],watch:{animation:function(){c(this)}},mounted:function(){c(this)}};t.default=u},1768:function(e,t,n){"use strict";n.r(t);var i=n("4dc9"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,o=n("a640"),r=n("ae40"),a=o("forEach"),s=r("forEach");e.exports=a&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var i=n("f8cd");e.exports=function(e,t){var n=i(e);if(n%t)throw RangeError("Wrong offset");return n}},1863:function(e,t,n){"use strict";n.r(t);var i=n("b32d"),o=n("dfbd");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"186c":function(e,t,n){"use strict";var i=n("4ea4");n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("aecf")),r={name:"SystemPreviewImage",components:{imageView:o.default},data:function(){var e=this.$route.params,t=e.urls,n=e.current;return{urls:t||[],current:n,index:0}},created:function(){var e="number"===typeof this.current?this.current:this.urls.indexOf(this.current);this.index=e<0?0:e},mounted:function(){var e=this,t=20,n=0,i=0;this.$el.addEventListener("mousedown",(function(t){e.preventDefault=!1,n=t.clientX,i=t.clientY})),this.$el.addEventListener("mouseup",(function(o){(Math.abs(o.clientX-n)>t||Math.abs(o.clientY-i)>t)&&(e.preventDefault=!0)}))},methods:{_click:function(){this.preventDefault||getApp().$router.back()}}};t.default=r},1876:function(e,t,n){"use strict";n.r(t);var i=n("7b0e"),o=n("2457");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},1896:function(e,t,n){"use strict";n.r(t);var i=n("fe81"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19bf":function(e,t,n){"use strict";var i=n("4ea4");n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.initEventChannel=c,t.getEventChannel=u,t.default=void 0;var o=i(n("5e13")),r={},a=[],s=0;function c(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s++;var n=new o.default(s,e);return t&&(r[s]=n,a.push(n)),n}function u(e){if(e){var t=r[e];return delete r[e],t}return a.shift()}var l={args:function(e,t){var n=c(e.events).id;e.url&&(e.url=e.url+(-1===e.url.indexOf("?")?"?":"&")+"__id__="+n)},returnValue:function(e,t){e.eventChannel=u()}};t.default=l},"1a14":function(e,t,n){"use strict";n("4de4"),n("caad"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseImage=void 0;var i=["original","compressed"],o=["album","camera"],r={count:{type:Number,required:!1,default:9,validator:function(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:i,validator:function(e,t){e="string"===typeof e?[e]:e,e=e.filter((function(e){return i.includes(e)})),t.sizeType=e.length?e:i}},sourceType:{type:Array,required:!1,default:o,validator:function(e,t){e=e.filter((function(e){return o.includes(e)})),t.sourceType=e.length?e:o}},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}};t.chooseImage=r},"1a39":function(e,t,n){"use strict";(function(e,i){n("7db0"),n("4160"),n("d81d"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.requestComponentObserver=u,t.destroyComponentObserver=l,n("5abe");var o=n("f4f0"),r=n("08c5");function a(e){return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function s(e){var t=e.intersectionRatio,n=e.boundingClientRect,i=n.height,o=n.width,r=e.intersectionRect,a=r.height,s=r.width;return 0!==t?t:a===i?s/o:a/i}var c={};function u(t,n){var u,l=t.reqId,d=t.component,f=t.options;if(n._isVue)u=n;else{var p=getCurrentPages(),h=p.find((function(e){return e.$page.id===n}));if(!h)throw new Error("Not Found:Page[".concat(n,"]"));u=h.$vm}var g=(0,r.findElm)(d,u),m=f.relativeToSelector?g.querySelector(f.relativeToSelector):null,v=c[l]=new IntersectionObserver((function(t,n){t.forEach((function(t){e.publishHandler("onRequestComponentObserver",{reqId:l,res:{intersectionRatio:s(t),intersectionRect:a(t.intersectionRect),boundingClientRect:a(t.boundingClientRect),relativeRect:a(t.rootBounds),time:Date.now(),dataset:(0,o.getTargetDataset)(t.target),id:t.target.id}})}))}),{root:m,rootMargin:f.rootMargin,threshold:f.thresholds});if(f.observeAll)v.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(g.querySelectorAll(f.selector),(function(e){e?v.observe(e):i.warn("Node ".concat(f.selector," is not found. Intersection observer will not trigger."))}));else{v.USE_MUTATION_OBSERVER=!1;var _=g.querySelector(f.selector);if(!_)return void i.warn("Node ".concat(f.selector," is not found. Intersection observer will not trigger."));v.observe(_)}}function l(t){var n=t.reqId,i=c[n];i&&(i.disconnect(),delete c[n],e.publishHandler("onRequestComponentObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("c5c3"),n("5a52")["default"])},"1a3c":function(e,t,n){"use strict";n("4160"),n("c975"),n("a434"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("987d"),o={name:"RadioGroup",mixins:[i.emitter,i.listeners],props:{name:{type:String,default:""}},data:function(){return{radioList:[]}},listeners:{"@radio-change":"_changeHandler","@radio-group-update":"_radioGroupUpdateHandler"},mounted:function(){this._resetRadioGroupValue(this.radioList.length-1)},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_changeHandler:function(e,t){var n=this.radioList.indexOf(t);this._resetRadioGroupValue(n,!0),this.$trigger("change",e,{value:t.radioValue})},_radioGroupUpdateHandler:function(e){if("add"===e.type)this.radioList.push(e.vm);else{var t=this.radioList.indexOf(e.vm);this.radioList.splice(t,1)}},_resetRadioGroupValue:function(e,t){var n=this;this.radioList.forEach((function(i,o){o!==e&&(t?n.radioList[o].radioChecked=!1:n.radioList.forEach((function(e,t){o>=t||n.radioList[t].radioChecked&&(n.radioList[o].radioChecked=!1)})))}))},_getFormData:function(){var e={};if(""!==this.name){var t="";this.radioList.forEach((function(e){e.radioChecked&&(t=e.value)})),e.value=t,e.key=this.name}return e}}};t.default=o},"1b71":function(e,t,n){"use strict";n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("db6a"),o=n("987d");function r(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})}function a(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})}var s={name:"uni://form-field",init:function(e,t){t.constructor.options.props&&t.constructor.options.props.name&&t.constructor.options.props.value||(t.constructor.options.props||(t.constructor.options.props={}),t.constructor.options.props.name||(t.constructor.options.props.name=e.props.name={type:String}),t.constructor.options.props.value||(t.constructor.options.props.value=e.props.value={type:null})),e.propsData||(e.propsData={});var n=t.$vnode;if(n&&n.data&&n.data.attrs&&((0,i.hasOwn)(n.data.attrs,"name")&&(e.propsData.name=n.data.attrs.name),(0,i.hasOwn)(n.data.attrs,"value")&&(e.propsData.value=n.data.attrs.value)),!t.constructor.options.methods||!t.constructor.options.methods._getFormData){t.constructor.options.methods||(t.constructor.options.methods={}),e.methods||(e.methods={});var s={_getFormData:function(){return this.name?{key:this.name,value:this.value}:{}},_resetFormData:function(){this.value=""}};Object.assign(t.constructor.options.methods,s),Object.assign(e.methods,s),Object.assign(t.constructor.options.methods,o.emitter.methods),Object.assign(e.methods,o.emitter.methods);var c=e.created;t.constructor.options.created=e.created=c?[].concat(r,c):[r];var u=e.beforeDestroy;t.constructor.options.beforeDestroy=e.beforeDestroy=u?[].concat(a,u):[a]}}};t.default=s},"1b9c":function(e,t,n){"use strict";n.r(t);var i=n("3d46");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var r,a,s,c,u=n("f0c5"),l=Object(u["a"])(i["default"],r,a,!1,null,null,null,!1,s,c);t["default"]=l.exports},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c2c":function(e,t,n){"use strict";n("99af"),n("4de4"),n("7db0"),n("4160"),n("c975"),n("d81d"),n("45fc"),n("c19f"),n("ace4"),n("a9e3"),n("b64b"),n("d3b7"),n("07ac"),n("ac1f"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.configMTLS=t.request=void 0;var i=n("db6a"),o={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT",PATCH:"PATCH"},r={JSON:"json"},a={TEXT:"text",ARRAYBUFFER:"arraybuffer"},s=encodeURIComponent;function c(e,t){var n=e.split("#"),o=n[1]||"";n=n[0].split("?");var r=n[1]||"";e=n[0];var a=r.split("&").filter((function(e){return e}));for(var c in r={},a.forEach((function(e){e=e.split("="),r[e[0]]=e[1]})),t)if((0,i.hasOwn)(t,c)){var u=t[c];"undefined"===typeof u||null===u?u="":(0,i.isPlainObject)(u)&&(u=JSON.stringify(u)),r[s(c)]=s(u)}return r=Object.keys(r).map((function(e){return"".concat(e,"=").concat(r[e])})).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}var u={method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(o).indexOf(e)<0?o.GET:e}},data:{type:[Object,String,Array,ArrayBuffer],validator:function(e,t){t.data=e||""}},url:{type:String,required:!0,validator:function(e,t){t.method===o.GET&&(0,i.isPlainObject)(t.data)&&Object.keys(t.data).length&&(t.url=c(e,t.data))}},header:{type:Object,validator:function(e,t){var n=t.header=e||{};t.method!==o.GET&&(Object.keys(n).find((function(e){return"content-type"===e.toLowerCase()}))||(n["Content-Type"]="application/json"))}},dataType:{type:String,validator:function(e,t){t.dataType=(e||r.JSON).toLowerCase()}},responseType:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values(a).indexOf(e)<0?a.TEXT:e}},withCredentials:{type:Boolean},timeout:{type:Number}};t.request=u;var l={certificates:{type:Array,required:!0,validator:function(e){if(e.some((function(e){return"String"!==(0,i.toRawType)(e.host)})))return"参数配置错误,请确认后重试"}}};t.configMTLS=l},"1c7e":function(e,t,n){var i=n("b622"),o=i("iterator"),r=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){r=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},"1ccc":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("7ee7")),r=i(n("1863")),a=i(n("4552")),s={Toast:o.default,ActionSheet:r.default,Modal:a.default};t.default=s},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),o=n("b622"),r=n("2d00"),a=o("species");e.exports=function(e){return r>=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1de0":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-refresh",[n("div",{staticClass:"uni-page-refresh",style:{"margin-top":e.offset+"px"}},[n("div",{staticClass:"uni-page-refresh-inner"},[n("svg",{staticClass:"uni-page-refresh__icon",attrs:{fill:e.color,width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]),n("svg",{staticClass:"uni-page-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticClass:"uni-page-refresh__path",attrs:{stroke:e.color,cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}})])])])])},r=[]},"1ead":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("caad"),n("c975"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("db6a"),r=i(n("64b2")),a=i(n("1521")),s=i(n("6b87"));e.subscribe("getSelectedTextRange",(function(t){var n=t.pageId,i=t.callbackId,o=document.activeElement,r=o.tagName.toLowerCase(),a=["input","textarea"],s={};a.includes(r)?(s.errMsg="getSelectedTextRange:ok",s.start=o.selectionStart,s.end=o.selectionEnd):s.errMsg="getSelectedTextRange:fail no focused",e.publishHandler("onGetSelectedTextRange",{callbackId:i,data:s},n)}));var c,u={name:"Field",mixins:[r.default,a.default,s.default],model:{prop:"value",event:"update:value"},props:{value:{type:[String,Number],default:""},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0}},data:function(){return{composing:!1,valueSync:this._getValueString(this.value,this.type),focusSync:this.focus,fixColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image")}},watch:{focus:function(e){e?this._focus():this._blur()},focusSync:function(e){this.$emit("update:focus",e)},cursorNumber:function(){this._checkCursor()},selectionStartNumber:function(){this._checkSelection()},selectionEndNumber:function(){this._checkSelection()}},computed:{needFocus:function(){return this.autoFocus||this.focus},cursorNumber:function(){var e=Number(this.cursor);return isNaN(e)?-1:e},selectionStartNumber:function(){var e=Number(this.selectionStart);return isNaN(e)?-1:e},selectionEndNumber:function(){var e=Number(this.selectionEnd);return isNaN(e)?-1:e}},created:function(){var e=this,t=this.__valueChange=(0,o.debounce)((function(t){e.valueSync=e._getValueString(t,e.type)}),100);this.$watch("value",t),this.__triggerInput=(0,o.throttle)((function(t,n){e.__valueChange.cancel(),e.$emit("update:value",n.value),e.$trigger("input",t,n)}),100),this.$triggerInput=function(t,n,i){e.__valueChange.cancel(),e.__triggerInput(t,n),i&&e.__triggerInput.flush()}},beforeDestroy:function(){this.__valueChange.cancel(),this.__triggerInput.cancel()},directives:{field:{inserted:function(e,t,n){n.context._initField(e)}}},methods:{_getValueString:function(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)},_initField:function(e){var t=this;this._field=e,c=c||Date.now(),this.needFocus&&setTimeout((function(){t._focus()}))},_focus:function(){if(this.needFocus){var e=this._field;if(e)e.focus();else setTimeout(this._focus.bind(this),100)}},_blur:function(){var e=this._field;e&&e.blur()},_onFocus:function(e){this.focusSync=!0,this.$trigger("focus",e,{value:this.valueSync}),this._checkSelection(),this._checkCursor()},_onBlur:function(e){this.composing&&(this.composing=!1,this._onInput(e,!0)),this.focusSync=!1;var t,n=e.target;"number"===n.type?(n.type="text",t=n.selectionEnd,n.type="number"):t=n.selectionEnd,this.$trigger("blur",e,{value:this.valueSync,cursor:t})},_checkSelection:function(){var e=this._field;this.focusSync&&this.selectionStartNumber>-1&&this.selectionEndNumber>-1&&"number"!==e.type&&(e.selectionStart=this.selectionStartNumber,e.selectionEnd=this.selectionEndNumber)},_checkCursor:function(){var e=this._field;this.focusSync&&this.selectionStartNumber<0&&this.selectionEndNumber<0&&this.cursorNumber>-1&&"number"!==e.type&&(e.selectionEnd=e.selectionStart=this.cursorNumber)}}};t.default=u}).call(this,n("c5c3"))},"1ef1":function(e,t,n){"use strict";function i(e){return"Google Inc."===navigator.vendor&&e>10&&(e=2*Math.round(e/2)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={name:"Image",props:{src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},data:function(){return{originalWidth:0,originalHeight:0,originalStyle:{width:"",height:""},contentPath:""}},computed:{ratio:function(){return this.originalWidth&&this.originalHeight?this.originalWidth/this.originalHeight:0},style:function(){var e="auto",t="",n="no-repeat";switch(this.mode){case"aspectFit":e="contain",t="center center";break;case"aspectFill":e="cover",t="center center";break;case"widthFix":case"heightFix":e="100% 100%";break;case"top":t="center top";break;case"bottom":t="center bottom";break;case"center":t="center center";break;case"left":t="left center";break;case"right":t="right center";break;case"top left":t="left top";break;case"top right":t="right top";break;case"bottom left":t="left bottom";break;case"bottom right":t="right bottom";break;default:e="100% 100%",t="0% 0%";break}return{"background-image":this.contentPath?'url("'.concat(this.contentPath,'")'):"none","background-position":t,"background-size":e,"background-repeat":n}}},watch:{src:function(e,t){this._loadImage()},mode:function(e,t){"widthFix"!==t&&"heightFix"!==t||this._resetSize(),"widthFix"!==e&&"heightFix"!==e||this._fixSize()},contentPath:function(e){!e&&this.__img&&(this.__img.remove(),delete this.__img)}},mounted:function(){this.originalStyle.width=this.$el.style.width||"",this.originalStyle.height=this.$el.style.height||"",this._loadImage()},beforeDestroy:function(){this._clearImage()},methods:{_fixSize:function(){if(this.ratio){var e=this.$el;if("widthFix"===this.mode){var t=e.offsetWidth;t&&(e.style.height=i(t/this.ratio)+"px")}else if("heightFix"===this.mode){var n=e.offsetHeight;n&&(e.style.width=i(n*this.ratio)+"px")}}window.dispatchEvent(new CustomEvent("updateview"))},_resetSize:function(){this.$el.style.width=this.originalStyle.width,this.$el.style.height=this.originalStyle.height},_resetData:function(){this.originalWidth=0,this.originalHeight=0,this.contentPath=""},_loadImage:function(){var e=this,t=this.$getRealPath(this.src);if(t){var n=this._img=this._img||new Image;n.onload=function(i){e._img=null;var o=e.originalWidth=n.width,r=e.originalHeight=n.height;e._fixSize(),e.contentPath=t,n.draggable=e.draggable,e.__img&&e.__img.remove(),e.__img=n,e.$el.appendChild(n),e.$trigger("load",i,{width:o,height:r})},n.onerror=function(t){e._img=null,e._resetData(),e.$trigger("error",t,{errMsg:"GET ".concat(e.src," 404 (Not Found)")})},n.src=t}else this._clearImage(),this._resetData()},_clearImage:function(){var e=this._img;e&&(e.onload=null,e.onerror=null,this._img=null)}}};t.default=o},"1fe2":function(e,t,n){"use strict";var i=n("6d61"),o=n("acac");i("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"20b1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("81e8"),o={name:"AsyncError",mixins:[i.i18nMixin],methods:{_onClick:function(){window.location.reload()}}};t.default=o},"215f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"ImageView",props:{src:{type:String,default:""}},data:function(){return{direction:"none"}},created:function(){this.scale=1,this.imgWidth=0,this.imgHeight=0,this.width=0,this.height=0},methods:{onScale:function(e){var t=e.detail.scale;this.scale=t},onImgLoad:function(e){var t=e.target,n=t.getBoundingClientRect();this.imgWidth=n.width,this.imgHeight=n.height},onTouchStart:function(e){var t=this.$el,n=t.getBoundingClientRect();this.width=n.width,this.height=n.height,this.checkDirection(e)},onTouchEnd:function(e){var t=this.scale,n=t*this.imgWidth>this.width,i=t*this.imgHeight>this.height;this.direction=n&&i?"all":n?"horizontal":i?"vertical":"none",this.checkDirection(e)},checkDirection:function(e){var t=this.direction;"all"!==t&&"horizontal"!==t||e.stopPropagation()}}};t.default=i},"219c":function(e,t,n){"use strict";var i=n("ebb5"),o=i.aTypedArray,r=i.exportTypedArrayMethod,a=[].sort;r("sort",(function(e){return a.call(o(this),e)}))},2266:function(e,t,n){var i=n("825a"),o=n("e95a"),r=n("50c4"),a=n("0366"),s=n("35a1"),c=n("9bdd"),u=function(e,t){this.stopped=e,this.result=t},l=e.exports=function(e,t,n,l,d){var f,p,h,g,m,v,_,y=a(t,n,l?2:1);if(d)f=e;else{if(p=s(e),"function"!=typeof p)throw TypeError("Target is not iterable");if(o(p)){for(h=0,g=r(e.length);g>h;h++)if(m=l?y(i(_=e[h])[0],_[1]):y(e[h]),m&&m instanceof u)return m;return new u(!1)}f=p.call(e)}v=f.next;while(!(_=v.call(f)).done)if(m=c(f,y,_.value,l),"object"==typeof m&&m&&m instanceof u)return m;return new u(!1)};l.stop=function(e){return new u(!0,e)}},2274:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-picker",e._g({attrs:{disabled:e.disabled},on:{click:e._show}},e.$listeners),[n("div",{ref:"picker",staticClass:"uni-picker-container",class:"uni-"+e.mode+"-"+e.selectorTypeComputed,on:{wheel:function(e){e.preventDefault()},touchmove:function(e){e.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"uni-mask uni-picker-mask",on:{click:e._cancel,mousemove:e._fixInputPosition}})]),e.system?e._e():n("div",{staticClass:"uni-picker-custom",class:{"uni-picker-toggle":e.visible},style:e.popupStyle.content},[n("div",{staticClass:"uni-picker-header",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-picker-action uni-picker-action-cancel",on:{click:e._cancel}},[e._v("\n "+e._s(e.$$t("uni.picker.cancel"))+"\n ")]),n("div",{staticClass:"uni-picker-action uni-picker-action-confirm",on:{click:e._change}},[e._v("\n "+e._s(e.$$t("uni.picker.done"))+"\n ")])]),e.contentVisible?n("v-uni-picker-view",{staticClass:"uni-picker-content",attrs:{value:e._l10nColumn(e.valueArray)},on:{change:e._pickerViewChange}},e._l(e._l10nColumn(e.rangeArray),(function(t,i){return n("v-uni-picker-view-column",{key:i},e._l(t,(function(t,o){return n("div",{key:o,staticClass:"uni-picker-item"},[e._v("\n "+e._s("object"===typeof t?t[e.rangeKey]||"":e._l10nItem(t,i))+"\n ")])})),0)})),1):e._e(),n("div",{ref:"select",staticClass:"uni-picker-select",on:{wheel:function(e){e.stopPropagation()},touchmove:function(e){e.stopPropagation()}}},e._l(e.rangeArray[0],(function(t,i){return n("div",{key:i,staticClass:"uni-picker-item",class:{selected:e.valueArray[0]===i},on:{click:function(t){e.valueArray[0]=i,e._change()}}},[e._v("\n "+e._s("object"===typeof t?t[e.rangeKey]||"":t)+"\n ")])})),0),n("div",{style:e.popupStyle.triangle})],1)],1),n("div",[e._t("default")],2),e.system?n("div",{staticClass:"uni-picker-system",on:{mousemove:e._fixInputPosition}},[n("input",{ref:"input",class:[e.system,e.popupStyle.dock],attrs:{type:e.mode,tabindex:"-1",min:e.start,max:e.end},domProps:{value:e.valueSync},on:{change:function(t){return t.stopPropagation(),e._input(t)}}})]):e._e(),n("keypress",{attrs:{disable:!e.visible},on:{esc:e._cancel,enter:e._change}})],1)},r=[]},"231e":function(e,t,n){"use strict";n("99af"),n("c975"),n("4e82"),n("a434"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("987d"),o=n("db6a"),r=n("81e8"),a=!!o.supportsPassive&&{passive:!1},s={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},c={name:"Video",filters:{time:function(e){e=e>0&&e<1/0?e:0;var t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%3600%60);t=(t<10?"0":"")+t,n=(n<10?"0":"")+n,i=(i<10?"0":"")+i;var o=n+":"+i;return"00"!==t&&(o=t+":"+o),o}},mixins:[r.i18nMixin,i.subscriber,i.interact],props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:function(){return[]}},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},data:function(){return{start:!1,playing:!1,currentTime:0,durationTime:0,progress:0,touching:!1,enableDanmuSync:Boolean(this.enableDanmu),controlsVisible:!0,fullscreen:!1,controlsTouching:!1,touchStartOrigin:{x:0,y:0},gestureType:s.NONE,currentTimeOld:0,currentTimeNew:0,volumeOld:null,volumeNew:null,buffered:0,isSafari:/^Apple/.test(navigator.vendor)}},computed:{centerPlayBtnShow:function(){return this.showCenterPlayBtn&&!this.start},controlsShow:function(){return!this.centerPlayBtnShow&&this.controls&&this.controlsVisible},autoHideContorls:function(){return this.controlsShow&&this.playing&&!this.controlsTouching},srcSync:function(){return this.$getRealPath(this.src)}},watch:{enableDanmuSync:function(e){this.$emit("update:enableDanmu",e)},autoHideContorls:function(e){e?this.autoHideStart():this.autoHideEnd()},srcSync:function(e){this.playing=!1,this.currentTime=0},currentTime:function(){this.updateProgress()},duration:function(){this.updateProgress()},buffered:function(e){0!==e&&this.$trigger("progress",{},{buffered:e})}},created:function(){this.otherData={danmuList:[],danmuIndex:{time:0,index:-1},hideTiming:null};var e=this.otherData.danmuList=JSON.parse(JSON.stringify(this.danmuList||[]));e.sort((function(e,t){return(e.time||0)-(t.time||0)}))},mounted:function(){var e,t,n,i=this,o=this,r=!0,s=this.$refs.ball;function c(i){var a=i.targetTouches[0],s=a.pageX,c=a.pageY;if(r&&Math.abs(s-e)<Math.abs(c-t))u();else{r=!1;var l=o.$refs.progress.offsetWidth,d=n+(s-e)/l*100;d<0?d=0:d>100&&(d=100),o.progress=d,i.preventDefault(),i.stopPropagation()}}function u(e){o.controlsTouching=!1,o.touching&&(s.removeEventListener("touchmove",c,a),r||(e.preventDefault(),e.stopPropagation(),o.seek(o.$refs.video.duration*o.progress/100)),o.touching=!1)}s.addEventListener("touchstart",(function(o){i.controlsTouching=!0;var u=o.targetTouches[0];e=u.pageX,t=u.pageY,n=i.progress,r=!0,i.touching=!0,s.addEventListener("touchmove",c,a)})),s.addEventListener("touchend",u),s.addEventListener("touchcancel",u)},beforeDestroy:function(){this.triggerFullscreen(!1),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(e){var t,n=e.type,i=e.data,o=void 0===i?{}:i,r=["play","pause","seek","sendDanmu","playbackRate","requestFullScreen","exitFullScreen"];switch(n){case"seek":t=o.position;break;case"sendDanmu":t=o;break;case"playbackRate":t=o.rate;break}r.indexOf(n)>=0&&this[n](t)},trigger:function(){this.playing?this.$refs.video.pause():this.$refs.video.play()},play:function(){this.start=!0,this.$refs.video.play()},pause:function(){this.$refs.video.pause()},seek:function(e){e=Number(e),"number"!==typeof e||isNaN(e)||(this.$refs.video.currentTime=e)},clickProgress:function(e){var t=this.$refs.progress,n=e.target,i=e.offsetX;while(n!==t)i+=n.offsetLeft,n=n.parentNode;var o=t.offsetWidth,r=0;i>=0&&i<=o&&(r=i/o,this.seek(this.$refs.video.duration*r))},triggerDanmu:function(){this.enableDanmuSync=!this.enableDanmuSync},playDanmu:function(e){var t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;var n="bottom: ".concat(100*Math.random(),"%;color: ").concat(e.color,";");t.setAttribute("style",n),this.$refs.danmu.appendChild(t),setTimeout((function(){n+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",n),setTimeout((function(){t.remove()}),4e3)}),17)},sendDanmu:function(e){var t=this.otherData;t.danmuList.splice(t.danmuIndex.index+1,0,{text:String(e.text),color:e.color,time:this.$refs.video.currentTime||0})},playbackRate:function(e){this.$refs.video.playbackRate=e},triggerFullscreen:function(e){var t,n=this.$refs.container,i=this.$refs.video;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||this.isSafari&&!this.userInteract?i.webkitEnterFullScreen?i.webkitEnterFullScreen():(t=!0,n.remove(),n.classList.add("uni-video-type-fullscreen"),document.body.appendChild(n)):n[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():i.webkitExitFullScreen?i.webkitExitFullScreen():(t=!0,n.remove(),n.classList.remove("uni-video-type-fullscreen"),this.$el.appendChild(n)),t&&this.emitFullscreenChange(e)},onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||this.emitFullscreenChange(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:function(e){this.fullscreen=e,this.$trigger("fullscreenchange",{},{fullScreen:e,direction:"vertical"})},requestFullScreen:function(){this.triggerFullscreen(!0)},exitFullScreen:function(){this.triggerFullscreen(!1)},onDurationChange:function(e){var t=e.target;this.durationTime=t.duration},onLoadedMetadata:function(e){var t=Number(this.initialTime)||0,n=e.target;t>0&&(n.currentTime=t),this.$trigger("loadedmetadata",e,{width:n.videoWidth,height:n.videoHeight,duration:n.duration}),this.onProgress(e)},onProgress:function(e){var t=e.target,n=t.buffered;n.length&&(this.buffered=n.end(n.length-1)/t.duration*100)},onWaiting:function(e){this.$trigger("waiting",e,{})},onVideoError:function(e){this.playing=!1,this.$trigger("error",e,{})},onPlay:function(e){this.start=!0,this.playing=!0,this.$trigger("play",e,{})},onPause:function(e){this.playing=!1,this.$trigger("pause",e,{})},onEnded:function(e){this.playing=!1,this.$trigger("ended",e,{})},onTimeUpdate:function(e){var t=e.target,n=this.otherData,i=this.currentTime=t.currentTime,o=n.danmuIndex,r={time:i,index:o.index},a=n.danmuList;if(i>o.time)for(var s=o.index+1;s<a.length;s++){var c=a[s];if(!(i>=(c.time||0)))break;r.index=s,this.playing&&this.enableDanmuSync&&this.playDanmu(c)}else if(i<o.time)for(var u=o.index-1;u>-1;u--){var l=a[u];if(!(i<=(l.time||0)))break;r.index=u-1}n.danmuIndex=r,this.$trigger("timeupdate",e,{currentTime:i,duration:t.duration})},triggerControls:function(){this.controlsVisible=!this.controlsVisible},touchstart:function(e){var t=e.targetTouches[0];this.touchStartOrigin={x:t.pageX,y:t.pageY},this.gestureType=s.NONE,this.volumeOld=null,this.currentTimeOld=this.currentTimeNew=0},touchmove:function(e){function t(){e.stopPropagation(),e.preventDefault()}this.fullscreen&&t();var n=this.gestureType;if(n!==s.STOP){var i=e.targetTouches[0],o=i.pageX,r=i.pageY,a=this.touchStartOrigin;if(n===s.PROGRESS?this.changeProgress(o-a.x):n===s.VOLUME&&this.changeVolume(r-a.y),n===s.NONE)if(Math.abs(o-a.x)>Math.abs(r-a.y)){if(!this.enableProgressGesture)return void(this.gestureType=s.STOP);this.gestureType=s.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||t()}else{if(!this.pageGesture)return void(this.gestureType=s.STOP);this.gestureType=s.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||t()}}},touchend:function(e){this.gestureType!==s.NONE&&this.gestureType!==s.STOP&&(e.stopPropagation(),e.preventDefault()),this.gestureType===s.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=s.NONE},changeProgress:function(e){var t=this.$refs.video.duration,n=e/600*t+this.currentTimeOld;n<0?n=0:n>t&&(n=t),this.currentTimeNew=n},changeVolume:function(e){var t,n=this.volumeOld;"number"===typeof n&&(t=n-e/200,t<0?t=0:t>1&&(t=1),this.$refs.video.volume=t,this.volumeNew=t)},autoHideStart:function(){var e=this;this.otherData.hideTiming=setTimeout((function(){e.controlsVisible=!1}),3e3)},autoHideEnd:function(){var e=this.otherData;e.hideTiming&&(clearTimeout(e.hideTiming),e.hideTiming=null)},updateProgress:function(){this.touching||(this.progress=this.currentTime/this.durationTime*100)}}};t.default=c},2381:function(e,t,n){"use strict";function i(){var e=document.getElementById("#clipboard"),t=e?e.value:void 0;return t?{data:t,errMsg:"getClipboardData:ok"}:{errMsg:"getClipboardData:fail"}}function o(e){var t=e.data,n=document.getElementById("#clipboard");n&&n.remove();var i=document.createElement("textarea");i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=t,i.select(),i.setSelectionRange(0,i.value.length);var o=document.execCommand("Copy",!1,null);return i.blur(),o?{errMsg:"setClipboardData:ok"}:{errMsg:"setClipboardData:fail"}}Object.defineProperty(t,"__esModule",{value:!0}),t.getClipboardData=i,t.setClipboardData=o},2398:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("4160"),Object.defineProperty(t,"__esModule",{value:!0}),t.EditorContext=void 0;var o=i(n("d4ec")),r=i(n("bee2")),a=n("db6a");function s(t,n,i,o){e.publishHandler(n+"-editor-"+t,{componentId:t,type:i,data:o},n)}e.subscribe("onEditorMethodCallback",(function(e){var t=e.callbackId,n=e.data;a.callback.invoke(t,n)}));var c=["insertDivider","insertImage","insertText","setContents","getContents","clear","removeFormat","undo","redo","blur","getSelectionText","scrollIntoView"],u=function(){function e(t,n){(0,o.default)(this,e),this.id=t,this.pageId=n}return(0,r.default)(e,[{key:"format",value:function(e,t){s(this.id,this.pageId,"format",{options:{name:e,value:t}})}}]),e}();t.EditorContext=u,c.forEach((function(e){u.prototype[e]=a.callback.warp((function(t,n){s(this.id,this.pageId,e,{options:t,callbackId:n})}))}))}).call(this,n("a9aa"))},"23cb":function(e,t,n){var i=n("a691"),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},"23dc":function(e,t,n){var i=n("d44e");i(Math,"Math",!0)},"23e7":function(e,t,n){var i=n("da84"),o=n("06cf").f,r=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),u=n("94ca");e.exports=function(e,t){var n,l,d,f,p,h,g=e.target,m=e.global,v=e.stat;if(l=m?i:v?i[g]||s(g,{}):(i[g]||{}).prototype,l)for(d in t){if(p=t[d],e.noTargetGet?(h=o(l,d),f=h&&h.value):f=l[d],n=u(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&r(p,"sham",!0),a(l,d,p,e)}}},2412:function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.invokeMethod=r,t.onMethod=a,t.getCurrentPageVm=s,t.getCurrentPageId=c;var o=i(n("b01b"));function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return o.default[e].apply(null,n)}function a(t,n){return e.on("api."+t,n)}function s(t){var n=getCurrentPages(),i=n.length;i||e.emit("onError","".concat(t,":fail"));var o=n[i-1];return o.$vm}function c(){var e=getCurrentPages(),t=e[e.length-1];return t&&t.$page.id}}).call(this,n("a9aa"))},"241c":function(e,t,n){var i=n("ca84"),o=n("7839"),r=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},2457:function(e,t,n){"use strict";n.r(t);var i=n("917f"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},2497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};t.default=i},"24fb":function(e,t,n){"use strict";function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"===typeof btoa){var r=o(i),a=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=i(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"===typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},2526:function(e){e.exports=JSON.parse('{"uni.app.quit":"再按一次退出應用","uni.async.error":"連接服務器超時,點擊屏幕重試","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"請注意 showToast 與 hideToast 必須配對使用","uni.showLoading.unpaired":"請注意 showLoading 與 hideLoading 必須配對使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"確定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"從相冊選擇","uni.chooseImage.sourceType.camera":"拍攝","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"從相冊選擇","uni.chooseVideo.sourceType.camera":"拍攝","uni.chooseFile.notUserActivation":"文件選擇器對話框只能在由用戶激活時顯示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存圖像","uni.previewImage.save.success":"保存圖像到相冊成功","uni.previewImage.save.fail":"保存圖像到相冊失敗","uni.setClipboardData.success":"內容已復制","uni.scanCode.title":"掃碼","uni.scanCode.album":"相冊","uni.scanCode.fail":"識別失敗","uni.scanCode.flash.on":"輕觸照亮","uni.scanCode.flash.off":"輕觸關閉","uni.startSoterAuthentication.authContent":"指紋識別中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"彈幕","uni.video.volume":"音量","uni.button.feedback.title":"問題反饋","uni.button.feedback.send":"發送","uni.chooseLocation.search":"搜索地點","uni.chooseLocation.cancel":"取消"}')},2532:function(e,t,n){"use strict";var i=n("23e7"),o=n("5a34"),r=n("1d80"),a=n("ab13");i({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(r(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var i=n("ebb5"),o=n("d58f").right,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduceRight",(function(e){return o(r(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var i=n("6eeb"),o=n("825a"),r=n("d039"),a=n("ad6d"),s="toString",c=RegExp.prototype,u=c[s],l=r((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=s;(l||d)&&i(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags,i=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),o=n("9bf2"),r=n("b622"),a=n("83ab"),s=r("species");e.exports=function(e){var t=i(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"266e":function(e,t,n){"use strict";n("99af"),n("4160"),n("c975"),n("a9e3"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("81e8");var i=n("987d"),o={name:"Button",mixins:[i.hover,i.emitter,i.listeners],props:{hoverClass:{type:String,default:"button-hover"},disabled:{type:[Boolean,String],default:!1},id:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},formType:{type:String,default:"",validator:function(e){return~["","submit","reset"].indexOf(e)}},openType:{type:String,default:""}},data:function(){return{clickFunction:null}},methods:{_onClick:function(e,t){this.disabled||(t&&this.$el.click(),this.formType?this.$dispatch("Form","submit"===this.formType?"uni-form-submit":"uni-form-reset",{type:this.formType}):this.openType)},_bindObjectListeners:function(e,t){if(t)for(var n in t){var i=e.on[n],o=t[n];e.on[n]=i?[].concat(i,o):o}return e}},render:function(e){var t=this,n=Object.create(null);return this.$listeners&&Object.keys(this.$listeners).forEach((function(e){(!t.disabled||"click"!==e&&"tap"!==e)&&(n[e]=t.$listeners[e])})),this.hoverClass&&"none"!==this.hoverClass?e("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{touchstart:this._hoverTouchStart,touchend:this._hoverTouchEnd,touchcancel:this._hoverTouchCancel,mousedown:this._hoverMousedown,mouseup:this._hoverMouseup,click:this._onClick}},n),this.$slots.default):e("uni-button",this._bindObjectListeners({class:[this.hovering?this.hoverClass:""],attrs:{disabled:this.disabled},on:{click:this._onClick}},n),this.$slots.default)},listeners:{"label-click":"_onClick","@label-click":"_onClick"}};t.default=o},"268a":function(e,t,n){"use strict";n.r(t);var i=n("6a60"),o=n("7b03");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"26e9":function(e,t,n){"use strict";var i=n("23e7"),o=n("e8b5"),r=[].reverse,a=[1,2];i({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),r.call(this)}})},"279f":function(e,t,n){"use strict";n.r(t);var i=n("215f"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},2861:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.showModal=r,t.showToast=a,t.hideToast=s,t.showLoading=c,t.hideLoading=u,t.showActionSheet=l;var n=e,i=n.emit,o=n.invokeCallbackHandler;function r(e,t){i("onShowModal",e,(function(e){o(t,e)}))}function a(e){return i("onShowToast",e),{}}function s(){return i("onHideToast"),{}}function c(e){return i("onShowLoading",e),{}}function u(){return i("onHideLoading"),{}}function l(e,t){i("onShowActionSheet",e,(function(e){o(t,-1===e?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:e})}))}}).call(this,n("a9aa"))},"289b":function(e,t,n){"use strict";(function(e){function i(e,t,n){var i=Array.prototype.slice.call(e.changedTouches).filter((function(e){return e.identifier===t}))[0];return!!i&&(e.deltaY=i.pageY-n,!0)}n("4de4"),n("c975"),n("fb6a"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o="pulling",r="reached",a="aborting",s="refreshing",c="restoring",u={mounted:function(){var t=this;this.enablePullDownRefresh&&(this.refreshContainerElem=this.$refs.refresh.$el,this.refreshControllerElem=this.refreshContainerElem.querySelector(".uni-page-refresh"),this.refreshInnerElemStyle=this.refreshControllerElem.querySelector(".uni-page-refresh-inner").style,e.on(this.$route.params.__id__+".startPullDownRefresh",(function(){t.state||(t.state=s,t._addClass(),setTimeout((function(){t._refreshing()}),50))})),e.on(this.$route.params.__id__+".stopPullDownRefresh",(function(){t.state===s&&(t._removeClass(),t.state=c,t._addClass(),t._restoring((function(){t._removeClass(),t.state=t.distance=t.offset=null})))})))},methods:{_touchstart:function(e){var t=e.changedTouches[0];this.touchId=t.identifier,this.startY=t.pageY,[a,s,c].indexOf(this.state)>=0?this.canRefresh=!1:this.canRefresh=!0},_touchmove:function(e){if(this.canRefresh&&i(e,this.touchId,this.startY)){var t=e.deltaY;if(0===(document.documentElement.scrollTop||document.body.scrollTop)){if(!(t<0)||this.state){e.preventDefault(),null==this.distance&&(this.offset=t,this.state=o,this._addClass()),t-=this.offset,t<0&&(t=0),this.distance=t;var n=t>=this.refreshOptions.range&&this.state!==r,a=t<this.refreshOptions.range&&this.state!==o;(n||a)&&(this._removeClass(),this.state=this.state===r?o:r,this._addClass()),this._pulling(t)}}else this.touchId=null}},_touchend:function(e){var t=this;i(e,this.touchId,this.startY)&&null!==this.state&&(this.state===o?(this._removeClass(),this.state=a,this._addClass(),this._aborting((function(){t._removeClass(),t.state=t.distance=t.offset=null}))):this.state===r&&(this._removeClass(),this.state=s,this._addClass(),this._refreshing()))},_toggleClass:function(e){if(this.state){var t=this.refreshContainerElem;t&&t.classList[e]("uni-page-refresh--"+this.state)}},_addClass:function(){this._toggleClass("add")},_removeClass:function(){this._toggleClass("remove")},_pulling:function(e){var t=this.refreshControllerElem;if(t){var n=t.style,i=e/this.refreshOptions.range;i>1?i=1:i*=i*i;var o=Math.round(e/(this.refreshOptions.range/this.refreshOptions.height)),r=o?"translate3d(-50%, "+o+"px, 0)":0;n.webkitTransform=r,n.clip="rect("+(45-o)+"px,45px,45px,-5px)",this.refreshInnerElemStyle.webkitTransform="rotate("+360*i+"deg)"}},_aborting:function(e){var t=this.refreshControllerElem;if(t){var n=t.style;if(n.webkitTransform){n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform="translate3d(-50%, 0, 0)";var i=function i(){o&&clearTimeout(o),t.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",e()};t.addEventListener("webkitTransitionEnd",i);var o=setTimeout(i,350)}else e()}},_refreshing:function(){var t=this.refreshControllerElem;if(t){var n=t.style;n.webkitTransition="-webkit-transform 0.2s",n.webkitTransform="translate3d(-50%, "+this.refreshOptions.height+"px, 0)",e.emit("onPullDownRefresh",{},this.$route.params.__id__)}},_restoring:function(e){var t=this.refreshControllerElem;if(t){var n=t.style;n.webkitTransition="-webkit-transform 0.3s",n.webkitTransform+=" scale(0.01)";var i=function i(){o&&clearTimeout(o),t.removeEventListener("webkitTransitionEnd",i),n.webkitTransition="",n.webkitTransform="translate3d(-50%, 0, 0)",e()};t.addEventListener("webkitTransitionEnd",i);var o=setTimeout(i,350)}}}};t.default=u}).call(this,n("a9aa"))},2909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var i=s(n("6005")),o=s(n("db90")),r=s(n("06c5")),a=s(n("3427"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return(0,i.default)(e)||(0,o.default)(e)||(0,r.default)(e)||(0,a.default)()}},2954:function(e,t,n){"use strict";var i=n("ebb5"),o=n("4840"),r=n("d039"),a=i.aTypedArray,s=i.aTypedArrayConstructor,c=i.exportTypedArrayMethod,u=[].slice,l=r((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=u.call(a(this),e,t),i=o(this,this.constructor),r=0,c=n.length,l=new(s(i))(c);while(c>r)l[r]=n[r++];return l}),l)},2967:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMapInfo=a,t.IS_AMAP=t.MapType=t.ICON_PATH_TARGET=t.ICON_PATH_ORIGIN=void 0;var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII=";t.ICON_PATH_ORIGIN=i;var o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC";t.ICON_PATH_TARGET=o;var r={QQ:"qq",GOOGLE:"google",AMAP:"AMap",UNKNOWN:""};function a(){return __uniConfig.qqMapKey?{type:r.QQ,key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:r.GOOGLE,key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:r.AMAP,key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:r.UNKNOWN,key:""}}t.MapType=r;var s=a().type===r.AMAP;t.IS_AMAP=s},"2abe":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.canIUse=s;var o=n("db6a"),r=i(n("2ee2")),a=i(n("8330"));function s(e){return(0,o.hasOwn)(r.default,e)?r.default[e]:!!(0,o.hasOwn)(a.default,e)}},"2b3d":function(e,t,n){"use strict";n("3ca3");var i,o=n("23e7"),r=n("83ab"),a=n("0d3b"),s=n("da84"),c=n("37e8"),u=n("6eeb"),l=n("19aa"),d=n("5135"),f=n("60da"),p=n("4df4"),h=n("6547").codeAt,g=n("5fb2"),m=n("d44e"),v=n("9861"),_=n("69f3"),y=s.URL,b=v.URLSearchParams,M=v.getState,S=_.set,C=_.getterFor("URL"),k=Math.floor,T=Math.pow,I="Invalid authority",w="Invalid scheme",A="Invalid host",E="Invalid port",O=/[A-Za-z]/,x=/[\d+-.A-Za-z]/,D=/\d/,N=/^(0x|0X)/,R=/^[0-7]+$/,L=/^\d+$/,P=/^[\dA-Fa-f]+$/,U=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,G=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,q=function(e,t){var n,i,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=$(t.slice(1,-1)),!n)return A;e.host=n}else if(Q(e)){if(t=g(t),U.test(t))return A;if(n=j(t),null===n)return A;e.host=n}else{if(G.test(t))return A;for(n="",i=p(t),o=0;o<i.length;o++)n+=X(i[o],z);e.host=n}},j=function(e){var t,n,i,o,r,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),t=c.length,t>4)return e;for(n=[],i=0;i<t;i++){if(o=c[i],""==o)return e;if(r=10,o.length>1&&"0"==o.charAt(0)&&(r=N.test(o)?16:8,o=o.slice(8==r?1:2)),""===o)a=0;else{if(!(10==r?L:8==r?R:P).test(o))return e;a=parseInt(o,r)}n.push(a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=T(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*T(256,3-i);return s},$=function(e){var t,n,i,o,r,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,f=function(){return e.charAt(d)};if(":"==f()){if(":"!=e.charAt(1))return;d+=2,u++,l=u}while(f()){if(8==u)return;if(":"!=f()){t=n=0;while(n<4&&P.test(f()))t=16*t+parseInt(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,u>6)return;i=0;while(f()){if(o=null,i>0){if(!("."==f()&&i<4))return;d++}if(!D.test(f()))return;while(D.test(f())){if(r=parseInt(f(),10),null===o)o=r;else{if(0==o)return;o=10*o+r}if(o>255)return;d++}c[u]=256*c[u]+o,i++,2!=i&&4!=i||u++}if(4!=i)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;d++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!=u&&a>0)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s}else if(8!=u)return;return c},H=function(e){for(var t=null,n=1,i=null,o=0,r=0;r<8;r++)0!==e[r]?(o>n&&(t=i,n=o),i=null,o=0):(null===i&&(i=r),++o);return o>n&&(t=i,n=o),t},V=function(e){var t,n,i,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=H(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),i===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},z={},K=f({},z,{" ":1,'"':1,"<":1,">":1,"`":1}),W=f({},K,{"#":1,"?":1,"{":1,"}":1}),Y=f({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=h(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(J,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&O.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ie=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},oe=function(e){return"."===e||"%2e"===e.toLowerCase()},re=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},ce={},ue={},le={},de={},fe={},pe={},he={},ge={},me={},ve={},_e={},ye={},be={},Me={},Se={},Ce={},ke={},Te={},Ie={},we=function(e,t,n,o){var r,a,s,c,u=n||ae,l=0,f="",h=!1,g=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(B,""),r=p(t);while(l<=r.length){switch(a=r[l],u){case ae:if(!a||!O.test(a)){if(n)return w;u=ce;continue}f+=a.toLowerCase(),u=se;break;case se:if(a&&(x.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(n)return w;f="",u=ce,l=0;continue}if(n&&(Q(e)!=d(J,f)||"file"==f&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(Q(e)&&J[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=ye:Q(e)&&o&&o.scheme==e.scheme?u=ue:Q(e)?u=pe:"/"==r[l+1]?(u=le,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=ke)}break;case ce:if(!o||o.cannotBeABaseURL&&"#"!=a)return w;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=Ie;break}u="file"==o.scheme?ye:de;continue;case ue:if("/"!=a||"/"!=r[l+1]){u=de;continue}u=he,l++;break;case le:if("/"==a){u=ge;break}u=Ce;continue;case de:if(e.scheme=o.scheme,a==i)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&Q(e))u=fe;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",u=Te;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),u=Ce;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=Ie}break;case fe:if(!Q(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=Ce;continue}u=ge}else u=he;break;case pe:if(u=he,"/"!=a||"/"!=f.charAt(l+1))continue;l++;break;case he:if("/"!=a&&"\\"!=a){u=ge;continue}break;case ge:if("@"==a){h&&(f="%40"+f),h=!0,s=p(f);for(var v=0;v<s.length;v++){var _=s[v];if(":"!=_||m){var y=X(_,Y);m?e.password+=y:e.username+=y}else m=!0}f=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(h&&""==f)return I;l-=p(f).length+1,f="",u=me}else f+=a;break;case me:case ve:if(n&&"file"==e.scheme){u=Me;continue}if(":"!=a||g){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(Q(e)&&""==f)return A;if(n&&""==f&&(Z(e)||null!==e.port))return;if(c=q(e,f),c)return c;if(f="",u=Se,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),f+=a}else{if(""==f)return A;if(c=q(e,f),c)return c;if(f="",u=_e,n==ve)return}break;case _e:if(!D.test(a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)||n){if(""!=f){var b=parseInt(f,10);if(b>65535)return E;e.port=Q(e)&&b===J[e.scheme]?null:b,f=""}if(n)return;u=Se;continue}return E}f+=a;break;case ye:if(e.scheme="file","/"==a||"\\"==a)u=be;else{if(!o||"file"!=o.scheme){u=Ce;continue}if(a==i)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",u=Te;else{if("#"!=a){ne(r.slice(l).join(""))||(e.host=o.host,e.path=o.path.slice(),ie(e)),u=Ce;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=Ie}}break;case be:if("/"==a||"\\"==a){u=Me;break}o&&"file"==o.scheme&&!ne(r.slice(l).join(""))&&(te(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=Ce;continue;case Me:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(f))u=Ce;else if(""==f){if(e.host="",n)return;u=Se}else{if(c=q(e,f),c)return c;if("localhost"==e.host&&(e.host=""),n)return;f="",u=Se}continue}f+=a;break;case Se:if(Q(e)){if(u=Ce,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(u=Ce,"/"!=a))continue}else e.fragment="",u=Ie;else e.query="",u=Te;break;case Ce:if(a==i||"/"==a||"\\"==a&&Q(e)||!n&&("?"==a||"#"==a)){if(re(f)?(ie(e),"/"==a||"\\"==a&&Q(e)||e.path.push("")):oe(f)?"/"==a||"\\"==a&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(a==i||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",u=Te):"#"==a&&(e.fragment="",u=Ie)}else f+=X(a,W);break;case ke:"?"==a?(e.query="",u=Te):"#"==a?(e.fragment="",u=Ie):a!=i&&(e.path[0]+=X(a,z));break;case Te:n||"#"!=a?a!=i&&("'"==a&&Q(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,z)):(e.fragment="",u=Ie);break;case Ie:a!=i&&(e.fragment+=X(a,K));break}l++}},Ae=function(e){var t,n,i=l(this,Ae,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=S(i,{type:"URL"});if(void 0!==o)if(o instanceof Ae)t=C(o);else if(n=we(t={},String(o)),n)throw TypeError(n);if(n=we(s,a,null,t),n)throw TypeError(n);var c=s.searchParams=new b,u=M(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},r||(i.href=Oe.call(i),i.origin=xe.call(i),i.protocol=De.call(i),i.username=Ne.call(i),i.password=Re.call(i),i.host=Le.call(i),i.hostname=Pe.call(i),i.port=Ue.call(i),i.pathname=Ge.call(i),i.search=Fe.call(i),i.searchParams=Be.call(i),i.hash=qe.call(i))},Ee=Ae.prototype,Oe=function(){var e=C(this),t=e.scheme,n=e.username,i=e.password,o=e.host,r=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",Z(e)&&(u+=n+(i?":"+i:"")+"@"),u+=V(o),null!==r&&(u+=":"+r)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},xe=function(){var e=C(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(i){return"null"}return"file"!=t&&Q(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},De=function(){return C(this).scheme+":"},Ne=function(){return C(this).username},Re=function(){return C(this).password},Le=function(){var e=C(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},Pe=function(){var e=C(this).host;return null===e?"":V(e)},Ue=function(){var e=C(this).port;return null===e?"":String(e)},Ge=function(){var e=C(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Fe=function(){var e=C(this).query;return e?"?"+e:""},Be=function(){return C(this).searchParams},qe=function(){var e=C(this).fragment;return e?"#"+e:""},je=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(r&&c(Ee,{href:je(Oe,(function(e){var t=C(this),n=String(e),i=we(t,n);if(i)throw TypeError(i);M(t.searchParams).updateSearchParams(t.query)})),origin:je(xe),protocol:je(De,(function(e){var t=C(this);we(t,String(e)+":",ae)})),username:je(Ne,(function(e){var t=C(this),n=p(String(e));if(!ee(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=X(n[i],Y)}})),password:je(Re,(function(e){var t=C(this),n=p(String(e));if(!ee(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=X(n[i],Y)}})),host:je(Le,(function(e){var t=C(this);t.cannotBeABaseURL||we(t,String(e),me)})),hostname:je(Pe,(function(e){var t=C(this);t.cannotBeABaseURL||we(t,String(e),ve)})),port:je(Ue,(function(e){var t=C(this);ee(t)||(e=String(e),""==e?t.port=null:we(t,e,_e))})),pathname:je(Ge,(function(e){var t=C(this);t.cannotBeABaseURL||(t.path=[],we(t,e+"",Se))})),search:je(Fe,(function(e){var t=C(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",we(t,e,Te)),M(t.searchParams).updateSearchParams(t.query)})),searchParams:je(Be),hash:je(qe,(function(e){var t=C(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",we(t,e,Ie)):t.fragment=null}))}),u(Ee,"toJSON",(function(){return Oe.call(this)}),{enumerable:!0}),u(Ee,"toString",(function(){return Oe.call(this)}),{enumerable:!0}),y){var $e=y.createObjectURL,He=y.revokeObjectURL;$e&&u(Ae,"createObjectURL",(function(e){return $e.apply(y,arguments)})),He&&u(Ae,"revokeObjectURL",(function(e){return He.apply(y,arguments)}))}m(Ae,"URL"),o({global:!0,forced:!a,sham:!r},{URL:Ae})},"2ca0":function(e,t,n){"use strict";var i=n("23e7"),o=n("06cf").f,r=n("50c4"),a=n("5a34"),s=n("1d80"),c=n("ab13"),u=n("c430"),l="".startsWith,d=Math.min,f=c("startsWith"),p=!u&&!f&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!p&&!f},{startsWith:function(e){var t=String(s(this));a(e);var n=r(d(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return l?l.call(t,i,n):t.slice(n,n+i.length)===i}})},"2ca3":function(e,t,n){"use strict";var i=n("4ea4");n("caad"),n("2ca0"),Object.defineProperty(t,"__esModule",{value:!0}),t.processEvent=d,t.initEvents=M;var o=n("db6a"),r=n("f4f0"),a=n("60f6"),s=i(n("4fcb"));function c(e,t){var n={id:e.id,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,dataset:(0,r.getTargetDataset)(e)};return t&&Object.assign(n,t),n}function u(e){if(e){for(var t=[],n=(0,s.default)(),i=n.top,o=0;o<e.length;o++){var r=e[o];t.push({identifier:r.identifier,pageX:r.pageX,pageY:r.pageY-i,clientX:r.clientX,clientY:r.clientY-i,force:r.force||0})}return t}return[]}function l(e){return e.startsWith("mouse")||["contextmenu"].includes(e)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t._processed)return t.type=n.type||e,t;if("click"===e){var r=(0,s.default)(),d=r.top;n={x:t.x,y:t.y-d},t.touches=t.changedTouches=[{force:1,identifier:0,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}]}var f=(0,a.wrapperMPEvent)({type:n.type||e,timeStamp:t.timeStamp||0,detail:n,target:c(i,n),currentTarget:c(o,!1,!0),touches:t instanceof Event||t instanceof CustomEvent?u(t.touches):t.touches,changedTouches:t instanceof Event||t instanceof CustomEvent?u(t.changedTouches):t.changedTouches,preventDefault:function(){},stopPropagation:function(){}});if(l(e)){var p=(0,s.default)(),h=p.top;f.pageX=t.pageX,f.pageY=t.pageY-h,f.clientX=t.clientX,f.clientY=t.clientY-h}return f}var f=350,p=10,h=!!o.supportsPassive&&{passive:!0},g=!1;function m(){g&&(clearTimeout(g),g=!1)}var v=0,_=0;function y(e){if(m(),1===e.touches.length){var t=e.touches[0],n=t.pageX,i=t.pageY;v=n,_=i,g=setTimeout((function(){var t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),f)}}function b(e){if(g){if(1!==e.touches.length)return m();var t=e.touches[0],n=t.pageX,i=t.pageY;return Math.abs(n-v)>p||Math.abs(i-_)>p?m():void 0}}function M(){window.addEventListener("touchstart",y,h),window.addEventListener("touchmove",b,h),window.addEventListener("touchend",m,h),window.addEventListener("touchcancel",m,h)}},"2cea":function(e,t,n){"use strict";n("45fc"),n("a9e3"),n("d3b7"),n("ac1f"),n("25f0"),n("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n("db6a");function o(e,t,n){var o=t[e],a=!(0,i.hasOwn)(n,e),s=n[e],c=l(Boolean,o.type);if(c>-1&&a&&!(0,i.hasOwn)(o,"default")&&(s=!1),void 0===s&&(0,i.hasOwn)(o,"default")){var u=o.default;s=(0,i.isFn)(u)?u():u,n[e]=s}return r(o,e,s,a,n)}function r(e,t,n,i,o){if(e.required&&i)return"Missing required parameter `".concat(t,"`");if(null==n&&!e.required){var r=e.validator;return r?r(n,o):void 0}var a=e.type,c=!a||!0===a,u=[];if(a){Array.isArray(a)||(a=[a]);for(var l=0;l<a.length&&!c;l++){var f=s(n,a[l]);u.push(f.expectedType||""),c=f.valid}}if(!c)return d(t,n,u);var p=e.validator;return p?p(n,o):void 0}var a=/^(String|Number|Boolean|Function|Symbol)$/;function s(e,t){var n,o=c(t);if(a.test(o)){var r=typeof e;n=r===o.toLowerCase(),n||"object"!==r||(n=e instanceof t)}else n=e.byteLength>=0||("Object"===o?(0,i.isPlainObject)(e):"Array"===o?Array.isArray(e):e instanceof t||(0,i.toRawType)(e)===c(t));return{valid:n,expectedType:o}}function c(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function u(e,t){return c(e)===c(t)}function l(e,t){if(!Array.isArray(t))return u(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(u(t[n],e))return n;return-1}function d(e,t,n){var o="parameter `".concat(e,"`.")+" Expected ".concat(n.join(", ")),r=n[0],a=(0,i.toRawType)(t),s=f(t,r),c=f(t,a);return 1===n.length&&h(r)&&!g(r,a)&&(o+=" with value ".concat(s)),o+=", got ".concat(a," "),h(a)&&(o+="with value ".concat(c,".")),o}function f(e,t){return"String"===t?'"'.concat(e,'"'):"".concat("Number"===t?Number(e):e)}var p=["string","number","boolean"];function h(e){return p.some((function(t){return e.toLowerCase()===t}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return"boolean"===e.toLowerCase()}))}},"2cf4":function(e,t,n){var i,o,r,a=n("da84"),s=n("d039"),c=n("c6b6"),u=n("0366"),l=n("1be4"),d=n("cc12"),f=n("1cdc"),p=a.location,h=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,_=a.Dispatch,y=0,b={},M="onreadystatechange",S=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},C=function(e){return function(){S(e)}},k=function(e){S(e.data)},T=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&g||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},g=function(e){delete b[e]},"process"==c(m)?i=function(e){m.nextTick(C(e))}:_&&_.now?i=function(e){_.now(C(e))}:v&&!f?(o=new v,r=o.port2,o.port1.onmessage=k,i=u(r.postMessage,r,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(T)||"file:"===p.protocol?i=M in d("script")?function(e){l.appendChild(d("script"))[M]=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(C(e),0)}:(i=T,a.addEventListener("message",k,!1))),e.exports={set:h,clear:g}},"2d00":function(e,t,n){var i,o,r=n("da84"),a=n("342f"),s=r.process,c=s&&s.versions,u=c&&c.v8;u?(i=u.split("."),o=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(o=i[1]))),e.exports=o&&+o},"2ee2":function(e,t,n){"use strict";function i(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}n("ac1f"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={"css.var":i("--a:0"),"css.env":i("top:env(a)"),"css.constant":i("top:constant(a)")};t.default=o},"2f1b":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-label",e._g({class:{"uni-label-pointer":e.pointer},on:{click:e._onClick}},e.$listeners),[e._t("default")],2)},r=[]},"301b":function(e,t,n){"use strict";n.r(t);var i=n("e33e"),o=n("9adf");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},3117:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("99af"),n("c975"),n("d3b7"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o=i(n("4cac")),r=n("f4f0"),a=n("db6a");function s(t){t.config.errorHandler=function(n,i,o){var s=(0,a.toRawType)(n);t.util.warn("Error in ".concat(o,': "').concat("Error"===s?n.toString():n,'"'),i);var c="function"===typeof getApp&&getApp();c&&(0,r.hasLifecycleHook)(c.$options,"onError")?c.__call_hook("onError",n):e.error(n)};var n=t.config.isReservedTag;t.config.isReservedTag=function(e){return-1!==o.default.indexOf(e)||n(e)},t.config.ignoredElements=o.default;var i=t.config.getTagNamespace,s=["switch","image","text","view"];t.config.getTagNamespace=function(e){return!~s.indexOf(e)&&i(e)}}}).call(this,n("5a52")["default"])},3152:function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}};t.default=i},3193:function(e,t,n){"use strict";n.r(t);var i=n("7666"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"31ef":function(e,t,n){"use strict";n.r(t);var i=n("c331"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"320d":function(e,t,n){"use strict";(function(e){n("99af"),n("acd8"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=n("db6a"),o=n("f4f0"),r=n("0fbe"),a=n("07a6"),s=!!i.supportsPassive&&{passive:!1};function c(t){if(uni.canIUse("css.var")){var n=parseFloat(__uniConfig.tabBar.height),i=t.$parent.$parent,o=i.navigationBar.type,a="default"===o||"float"===o?r.NAVBAR_HEIGHT:0,s=getApp().$children[0].showTabBar?isNaN(n)?r.TABBAR_HEIGHT:n:0,c=uni.canIUse("css.env")?"env":uni.canIUse("css.constant")?"constant":"",u=a&&c?"calc(".concat(a,"px + ").concat(c,"(safe-area-inset-top))"):"".concat(a,"px"),l=s&&c?"calc(".concat(s,"px + ").concat(c,"(safe-area-inset-bottom))"):"".concat(s,"px"),d=document.documentElement.style;d.setProperty("--window-top","calc(var(--top-window-height) + ".concat(u,")")),d.setProperty("--window-bottom",l),e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:--window-top=").concat(u)),e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:--window-bottom=").concat(l))}}function u(e){var t=!1,n=!1;e("onPageLoad",(function(e){c(e)})),e("onPageShow",(function(e){var r=e.$parent.$parent;e._isMounted&&c(e),n&&document.removeEventListener("touchmove",n,s),r.disableScroll&&(n=a.disableScroll,document.addEventListener("touchmove",n,s));var u=(0,o.hasLifecycleHook)(e.$options,"onPageScroll"),l=(0,o.hasLifecycleHook)(e.$options,"onReachBottom"),d=r.onReachBottomDistance,f=(0,i.isPlainObject)(r.titleNView)&&"transparent"===r.titleNView.type||(0,i.isPlainObject)(r.navigationBar)&&"transparent"===r.navigationBar.type;t&&document.removeEventListener("scroll",t),(f||u||l)&&(t=(0,a.createScrollListener)(e.$page.id,{enablePageScroll:u,enablePageReachBottom:l,onReachBottomDistance:d,enableTransparentTitleNView:f}),requestAnimationFrame((function(){document.addEventListener("scroll",t)})))}))}}).call(this,n("5a52")["default"])},3280:function(e,t,n){"use strict";var i=n("ebb5"),o=n("e58c"),r=i.aTypedArray,a=i.exportTypedArrayMethod;a("lastIndexOf",(function(e){return o.apply(r(this),arguments)}))},3296:function(e,t,n){"use strict";n.r(t);var i=n("afc6"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"32cc":function(e,t,n){"use strict";n.r(t);var i=n("d1ce"),o=n("c5e7");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},3316:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-textarea",e._g({},e.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-textarea-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.composing||e.valueSync.length),expression:"!(composing || valueSync.length)"}],ref:"placeholder",staticClass:"uni-textarea-placeholder",class:e.placeholderClass,style:e.placeholderStyle,domProps:{textContent:e._s(e.placeholder)}}),n("div",{ref:"line",staticClass:"uni-textarea-line",domProps:{textContent:e._s(" ")}}),n("div",{staticClass:"uni-textarea-compute"},[e._l(e.valueCompute,(function(t,i){return n("div",{key:i,domProps:{textContent:e._s(t.trim()?t:".")}})})),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],2),e.disabled&&e.fixColor?e._e():n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":e.fixMargin},style:{"overflow-y":e.autoHeight?"hidden":"auto"},attrs:{disabled:e.disabled,maxlength:e.maxlengthNumber,enterkeyhint:e.confirmType},domProps:{value:e.valueSync},on:{change:function(e){e.stopPropagation()},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},input:[function(t){t.target.composing||(e.valueSync=t.target.value)},function(t){return t.stopPropagation(),e._onInput(t)}],focus:e._onFocus,blur:e._onBlur,"&touchstart":function(t){return e._onTouchstart(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onKeyUpEnter(t)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e._onKeyDownEnter(t)}}}),e.disabled&&e.fixColor?n("textarea",{ref:"textarea",staticClass:"uni-textarea-textarea",class:{"uni-textarea-textarea-fix-margin":e.fixMargin},style:{"overflow-y":e.autoHeight?"hidden":"auto"},attrs:{tabindex:"-1",readonly:e.disabled,maxlength:e.maxlengthNumber},domProps:{value:e.valueSync},on:{focus:function(e){return e.target.blur()}}}):e._e()])])},r=[]},3319:function(e,t,n){"use strict";var i=n("4ea4");n("d81d"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.previewImage=void 0;var o=i(n("f1ca")),r={urls:{type:Array,required:!0,validator:function(e,t){var n;if(t.urls=e.map((function(e){if("string"===typeof e)return(0,o.default)(e);n=!0})),n)return"url is not string"}},current:{type:[String,Number],validator:function(e,t){"number"===typeof e?t.current=e>0&&e<t.urls.length?e:0:"string"===typeof e&&e&&(t.current=(0,o.default)(e))},default:0}};t.previewImage=r},3377:function(e,t,n){"use strict";n.r(t);var i=n("fa21");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var r,a,s,c,u=n("f0c5"),l=Object(u["a"])(i["default"],r,a,!1,null,null,null,!1,s,c);t["default"]=l.exports},"339f":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{hovering:!1}},props:{hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}},methods:{_hoverTouchStart:function(e){e.touches.length>1||this._handleHoverStart(e)},_hoverMousedown:function(e){this._hoverTouch||(this._handleHoverStart(e),window.addEventListener("mouseup",this._hoverMouseup))},_handleHoverStart:function(e){var t=this;e._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(this.hoverStopPropagation&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){t.hovering=!0,t._hoverTouch||t._hoverReset()}),this.hoverStartTime))},_hoverMouseup:function(){this._hoverTouch&&(this._handleHoverEnd(),window.removeEventListener("mouseup",this._hoverMouseup))},_hoverTouchEnd:function(){this._handleHoverEnd()},_handleHoverEnd:function(){this._hoverTouch=!1,this.hovering&&this._hoverReset()},_hoverReset:function(){var e=this;requestAnimationFrame((function(){clearTimeout(e._hoverStayTimer),e._hoverStayTimer=setTimeout((function(){e.hovering=!1}),e.hoverStayTime)}))},_hoverTouchCancel:function(){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}};t.default=i},3410:function(e,t,n){var i=n("23e7"),o=n("d039"),r=n("7b0b"),a=n("e163"),s=n("e177"),c=o((function(){a(1)}));i({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return a(r(e))}})},3427:function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"350a":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("5530")),r=i(n("f19e")),a=i(n("a524")),s=i(n("1ccc")),c=(0,o.default)({TabBar:r.default,Layout:a.default},s.default);t.default=c},"35a1":function(e,t,n){var i=n("f5df"),o=n("3f8c"),r=n("b622"),a=r("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[i(e)]}},"35be":function(e,t,n){"use strict";n("a623"),n("4160"),n("d81d"),n("fb6a"),n("4e82"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0});var i={isFn:!0,isStr:!0,isObject:!0,isPlainObject:!0,hasOwn:!0,noop:!0,toRawType:!0,cached:!0,camelize:!0,capitalize:!0,setProperties:!0,getLen:!0,formatDateTime:!0,updateElementStyle:!0,guid:!0,debounce:!0,throttle:!0,kebabCase:!0,looseEqual:!0,deepClone:!0,sortObject:!0};t.isFn=c,t.isStr=u,t.isObject=l,t.isPlainObject=d,t.hasOwn=f,t.noop=p,t.toRawType=h,t.cached=g,t.setProperties=y,t.getLen=b,t.formatDateTime=M,t.updateElementStyle=S,t.guid=C,t.debounce=k,t.throttle=T,t.kebabCase=I,t.looseEqual=w,t.deepClone=A,t.sortObject=E,t.capitalize=t.camelize=void 0;var o=n("14bc");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var r=Object.prototype.toString,a=Object.prototype.hasOwnProperty,s=function(e){return e>9?e:"0"+e};function c(e){return"function"===typeof e}function u(e){return"string"===typeof e}function l(e){return null!==e&&"object"===typeof e}function d(e){return"[object Object]"===r.call(e)}function f(e,t){return a.call(e,t)}function p(){}function h(e){return r.call(e).slice(8,-1)}function g(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var m=/-(\w)/g,v=g((function(e){return e.replace(m,(function(e,t){return t?t.toUpperCase():""}))}));t.camelize=v;var _=g((function(e){return e.charAt(0).toUpperCase()+e.slice(1)}));function y(e,t,n){t.forEach((function(t){f(n,t)&&(e[t]=n[t])}))}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+e).replace(/[^\x00-\xff]/g,"**").length}function M(e){var t=e.date,n=void 0===t?new Date:t,i=e.mode,o=void 0===i?"date":i;return"time"===o?s(n.getHours())+":"+s(n.getMinutes()):n.getFullYear()+"-"+s(n.getMonth()+1)+"-"+s(n.getDate())}function S(e,t){for(var n in t)e.style[n]=t[n]}function C(){return Math.floor(4294967296*(1+Math.random())).toString(16).slice(1)}function k(e,t){var n,i=function(){var i=arguments,o=this;clearTimeout(n);var r=function(){return e.apply(o,i)};n=setTimeout(r,t)};return i.cancel=function(){clearTimeout(n)},i}function T(e,t){var n,i,o=0,r=function(){for(var r=this,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var u=Date.now();clearTimeout(n),i=function(){i=null,o=u,e.apply(r,s)},u-o<t?n=setTimeout(i,t-(u-o)):i()};return r.cancel=function(){clearTimeout(n),i=null},r.flush=function(){clearTimeout(n),i&&i()},r}function I(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}function w(e,t){if(e===t)return!0;var n=l(e),i=l(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var o=Array.isArray(e),r=Array.isArray(t);if(o&&r)return e.length===t.length&&e.every((function(e,n){return w(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||r)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return w(e[n],t[n])}))}catch(c){return!1}}function A(e,t){function n(e){var i=e.children&&e.children.map(n),o=t(e.tag,e.data,i);return o.text=e.text,o.isComment=e.isComment,o.componentOptions=e.componentOptions,o.elm=e.elm,o.context=e.context,o.ns=e.ns,o.isStatic=e.isStatic,o.key=e.key,o}return e.map(n)}function E(e){var t={};return d(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}t.capitalize=_},"35d0":function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getApp",{enumerable:!0,get:function(){return s.getApp}}),Object.defineProperty(t,"getCurrentPages",{enumerable:!0,get:function(){return s.getCurrentPages}}),t.default=void 0;var o=i(n("945c")),r=i(n("b46f")),a=n("c558"),s=n("41ae");(0,o.default)(e.on,{getApp:s.getApp,getCurrentPages:s.getCurrentPages}),(0,r.default)(e.subscribe,{getApp:s.getApp,getCurrentPages:s.getCurrentPages});var c=a.uni;t.default=c}).call(this,n("a9aa"))},"35d06":function(e,t,n){"use strict";n.r(t);var i=n("1de0"),o=n("c2b1");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"36ef":function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.createMediaQueryObserver=d;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ff22")),s=n("2412"),c=n("9d8c"),u=(0,a.default)("requestMediaQueryObserver"),l=function(){function t(e,n){(0,o.default)(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=n}return(0,r.default)(t,[{key:"observe",value:function(t,n){"function"===typeof n&&(this.options=t,this.reqId=u.push(n),e.publishHandler("requestMediaQueryObserver",{reqId:this.reqId,component:this.component,options:this.options},(0,c.checkInWindows)(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyMediaQueryObserver",{reqId:this.reqId},(0,c.checkInWindows)(this.component)?this.component:this.pageId)}}]),t}();function d(e,t){return e._isVue||(t=e,e=null),new l(e||(0,s.getCurrentPageVm)("createMediaQueryObserver"),t)}}).call(this,n("a9aa"))},"377e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.previewImage=o,t.closePreviewImage=r;var n=e,i=n.invokeCallbackHandler;function o(e,t){var n=e.urls,o=e.current;getApp().$router.push({type:"navigateTo",path:"/preview-image",params:{urls:n,current:o}},(function(){i(t,{errMsg:"previewImage:ok"})}),(function(){i(t,{errMsg:"previewImage:fail"})}))}function r(e,t){var n=getApp().$router;"/preview-image"===n.history.current.path?(n.back(),i(t,{errMsg:"closePreviewImage:ok"})):i(t,{errMsg:"closePreviewImage:fail"})}}).call(this,n("a9aa"))},"377f2":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page-wrapper",[n("uni-page-body",[e._t("default")],2)],1)},r=[]},"37dc":function(e,t,n){"use strict";(function(e,i){var o=n("4ea4");n("99af"),n("7db0"),n("4160"),n("c975"),n("a434"),n("b64b"),n("d3b7"),n("e25e"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.compileI18nJsonStr=L,t.hasI18nJson=N,t.initVueI18n=O,t.isI18nStr=P,t.normalizeLocale=I,t.parseI18nJson=R,t.resolveLocale=q,t.isString=t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0;var r=o(n("3835")),a=o(n("d4ec")),s=o(n("bee2")),c=Array.isArray,u=function(e){return null!==e&&"object"===typeof e},l=["{","}"],d=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var i=this._caches[e];return i||(i=h(e,n),this._caches[e]=i),g(i,t)}}]),e}();t.Formatter=d;var f=/^(?:\d)+/,p=/^(?:\w)+/;function h(e,t){var n=(0,r.default)(t,2),i=n[0],o=n[1],a=[],s=0,c="";while(s<e.length){var u=e[s++];if(u===i){c&&a.push({type:"text",value:c}),c="";var l="";u=e[s++];while(void 0!==u&&u!==o)l+=u,u=e[s++];var d=u===o,h=f.test(l)?"list":d&&p.test(l)?"named":"unknown";a.push({value:l,type:h})}else c+=u}return c&&a.push({type:"text",value:c}),a}function g(e,t){var n=[],i=0,o=c(t)?"list":u(t)?"named":"unknown";if("unknown"===o)return n;while(i<e.length){var r=e[i];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":"named"===o&&n.push(t[r.value]);break;case"unknown":0;break}i++}return n}var m="zh-Hans";t.LOCALE_ZH_HANS=m;var v="zh-Hant";t.LOCALE_ZH_HANT=v;var _="en";t.LOCALE_EN=_;var y="fr";t.LOCALE_FR=y;var b="es";t.LOCALE_ES=b;var M=Object.prototype.hasOwnProperty,S=function(e,t){return M.call(e,t)},C=new d;function k(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function T(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function I(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),0===e.indexOf("zh"))return e.indexOf("-hans")>-1?m:e.indexOf("-hant")>-1||k(e,["-tw","-hk","-mo","-cht"])?v:m;var n=T(e,[_,y,b]);return n||void 0}}var w=function(){function t(e){var n=e.locale,i=e.fallbackLocale,o=e.messages,r=e.watcher,s=e.formater;(0,a.default)(this,t),this.locale=_,this.fallbackLocale=_,this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=s||C,this.messages=o||{},this.setLocale(n||_),r&&this.watchLocale(r)}return(0,s.default)(t,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=I(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((function(e){S(i,e)||(i[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(t,n,i){var o=this.message;return"string"===typeof n?(n=I(n,this.messages),n&&(o=this.messages[n])):i=n,S(o,t)?this.formater.interpolate(o[t],i).join(""):(e.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function A(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function E(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof i&&i.getLocale?i.getLocale():_}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var o=[t,e];e=o[0],t=o[1]}"string"!==typeof e&&(e=E()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||_);var r=new w({locale:e,fallbackLocale:n,messages:t,watcher:i}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return r.t(e,t)};else{var n=!1;a=function(e,t){var i=getApp().$vm;return i&&(i.$locale,n||(n=!0,A(i,r))),r.t(e,t)}}return a(e,t)};return{i18n:r,f:function(e,t,n){return r.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.add(e,t,n)},watch:function(e){return r.watchLocale(e)},getLocale:function(){return r.getLocale()},setLocale:function(e){return r.setLocale(e)}}}t.I18n=w;var x,D=function(e){return"string"===typeof e};function N(e,t){return x||(x=new d),B(e,(function(e,n){var i=e[n];return D(i)?!!P(i,t)||void 0:N(i,t)}))}function R(e,t,n){return x||(x=new d),B(e,(function(e,i){var o=e[i];D(o)?P(o,n)&&(e[i]=U(o,t,n)):R(o,t,n)})),e}function L(e,t){var n=t.locale,i=t.locales,o=t.delimiters;if(!P(e,o))return e;x||(x=new d);var r=[];Object.keys(i).forEach((function(e){e!==n&&r.push({locale:e,values:i[e]})})),r.unshift({locale:n,values:i[n]});try{return JSON.stringify(F(JSON.parse(e),r,o),null,2)}catch(a){}return e}function P(e,t){return e.indexOf(t[0])>-1}function U(e,t,n){return x.interpolate(e,t,n).join("")}function G(e,t,n,i){var o=e[t];if(D(o)){if(P(o,i)&&(e[t]=U(o,n[0].values,i),n.length>1)){var r=e[t+"Locales"]={};n.forEach((function(e){r[e.locale]=U(o,e.values,i)}))}}else F(o,n,i)}function F(e,t,n){return B(e,(function(e,i){G(e,i,t,n)})),e}function B(e,t){if(c(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(u(e))for(var i in e)if(t(e,i))return!0;return!1}function q(e){return function(t){return t?(t=I(t)||t,j(t).find((function(t){return e.indexOf(t)>-1}))):t}}function j(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=D}).call(this,n("5a52")["default"],n("c8ba"))},"37e8":function(e,t,n){var i=n("83ab"),o=n("9bf2"),r=n("825a"),a=n("df75");e.exports=i?Object.defineProperties:function(e,t){r(e);var n,i=a(t),s=i.length,c=0;while(s>c)o.f(e,n=i[c++],t[n]);return e}},"37fa":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.upx2px=void 0;var i=[{name:"upx",type:[Number,String],required:!0}];t.upx2px=i},3835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var i=s(n("0d21")),o=s(n("09f0")),r=s(n("06c5")),a=s(n("3d8c"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return(0,i.default)(e)||(0,o.default)(e,t)||(0,r.default)(e,t)||(0,a.default)()}},"39a7":function(e,t,n){"use strict";n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"SwiperItem",props:{itemId:{type:String,default:""}},mounted:function(){var e=this.$el;e.style.position="absolute",e.style.width="100%",e.style.height="100%";var t=this.$vnode._callbacks;t&&t.forEach((function(e){e()}))}};t.default=i},"3a7b":function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").findIndex,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("findIndex",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},"3a7e":function(e,t,n){"use strict";n("4d63"),n("ac1f"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.callback=void 0;var i=0,o={};function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(i++);o[n]={success:t.success,fail:t.fail,complete:t.complete};var r=Object.assign({},t),s=e.bind(this)(r,n);s&&a(n,s)}}function a(e,t){var n=o[e]||{};delete o[e];var i=t.errMsg||"";new RegExp("\\:\\s*fail").test(i)?n.fail&&n.fail(t):n.success&&n.success(t),n.complete&&n.complete(t)}var s={warp:r,invoke:a};t.callback=s},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3bea":function(e,t,n){"use strict";var i=n("4ea4");n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.createVideoContext=l,t.VideoContext=void 0;var o=i(n("d4ec")),r=i(n("bee2")),a=n("2412"),s=[.5,.8,1,1.25,1.5,2];function c(e,t,n,i){(0,a.invokeMethod)("operateVideoPlayer",e,t,n,i)}var u=function(){function e(t,n){(0,o.default)(this,e),this.id=t,this.pageVm=n}return(0,r.default)(e,[{key:"play",value:function(){c(this.id,this.pageVm,"play")}},{key:"pause",value:function(){c(this.id,this.pageVm,"pause")}},{key:"stop",value:function(){c(this.id,this.pageVm,"stop")}},{key:"seek",value:function(e){c(this.id,this.pageVm,"seek",{position:e})}},{key:"sendDanmu",value:function(e){c(this.id,this.pageVm,"sendDanmu",e)}},{key:"playbackRate",value:function(e){~s.indexOf(e)||(e=1),c(this.id,this.pageVm,"playbackRate",{rate:e})}},{key:"requestFullScreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this.id,this.pageVm,"requestFullScreen",e)}},{key:"exitFullScreen",value:function(){c(this.id,this.pageVm,"exitFullScreen")}},{key:"showStatusBar",value:function(){c(this.id,this.pageVm,"showStatusBar")}},{key:"hideStatusBar",value:function(){c(this.id,this.pageVm,"hideStatusBar")}}]),e}();function l(e,t){return new u(e,t||(0,a.getCurrentPageVm)("createVideoContext"))}t.VideoContext=u},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,o=n("69f3"),r=n("7dd0"),a="String Iterator",s=o.set,c=o.getterFor(a);r(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=i(n,o),t.index+=e.length,{value:e,done:!1})}))},"3d46":function(e,t,n){"use strict";n.r(t);var i=n("8b91"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"3d8c":function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"3e24":function(e,t,n){"use strict";n.r(t);var i=n("87d6"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").map,r=n("4840"),a=i.aTypedArray,s=i.aTypedArrayConstructor,c=i.exportTypedArrayMethod;c("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(r(e,e.constructor)))(t)}))}))},"40da":function(e,t,n){"use strict";function i(e){if("function"===typeof e)return window.plus?e():void document.addEventListener("plusready",e)}Object.defineProperty(t,"__esModule",{value:!0}),t.plusReady=i},4160:function(e,t,n){"use strict";var i=n("23e7"),o=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"41ae":function(e,t,n){"use strict";(function(e){var i=n("dbce");Object.defineProperty(t,"__esModule",{value:!0}),t.getLaunchOptions=l,t.getEnterOptions=d,t.initLaunchOptions=f,t.createAppMixin=p,Object.defineProperty(t,"getApp",{enumerable:!0,get:function(){return r.getApp}}),Object.defineProperty(t,"getCurrentPages",{enumerable:!0,get:function(){return r.getCurrentPages}});var o=n("559a"),r=i(n("c19e")),a=Object.assign;function s(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}var c=s(),u=s();function l(){return u}function d(){return c}function f(e){var t=e.path,n=e.query,i=e.referrerInfo;return a(u,{path:t,query:n||{},referrerInfo:i||{}}),a(c,u),u}function p(t,n,i){return{created:function(){(0,r.default)(t,this,n),i.meta.name||e.emit("onPageNotFound",{path:i.path,query:i.query,isEntryPage:!0})},beforeMount:function(){this.$el=document.getElementById("app")},mounted:function(){f({path:this.$route.meta&&this.$route.meta.pagePath,query:this.$route.query}),(0,o.callAppHook)(this,"onLaunch",u),(0,o.callAppHook)(this,"onShow",c)}}}}).call(this,n("a9aa"))},"428f":function(e,t,n){var i=n("da84");e.exports=i},4403:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("7db0"),n("4160"),n("d81d"),n("ac1f"),n("5319"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.requestComponentInfo=l;var o=n("f4f0"),r=i(n("4fcb")),a=n("08c5");function s(e){var t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){var n=document.documentElement,i=document.body;t.scrollLeft=n.scrollLeft||i.scrollLeft||0,t.scrollTop=n.scrollTop||i.scrollTop||0,t.scrollHeight=n.scrollHeight||i.scrollHeight||0,t.scrollWidth=n.scrollWidth||i.scrollWidth||0}return t}function c(e,t){var n={},i=(0,r.default)(),a=i.top;if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=(0,o.getTargetDataset)(e)),t.rect||t.size){var s=e.getBoundingClientRect();t.rect&&(n.left=s.left,n.right=s.right,n.top=s.top-a,n.bottom=s.bottom-a),t.size&&(n.width=s.width,n.height=s.height)}if(Array.isArray(t.properties)&&t.properties.forEach((function(e){e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset&&("UNI-SCROLL-VIEW"===e.tagName&&e.__vue__&&e.__vue__.getScrollPosition?Object.assign(n,e.__vue__.getScrollPosition()):(n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0)),Array.isArray(t.computedStyle)){var c=getComputedStyle(e);t.computedStyle.forEach((function(e){n[e]=c[e]}))}return t.context&&e.__vue__&&e.__vue__._getContextInfo&&(n.context=e.__vue__._getContextInfo()),n}function u(e,t,n,i,o){var r=(0,a.elementMatchesPolyfill)((0,a.findElm)(t,e));if(!r||r&&8===r.nodeType)return i?null:[];if(i){var s=r.matches(n)?r:r.querySelector(n);return s?c(s,o):null}var u=[],l=r.querySelectorAll(n);return l&&l.length&&(u=[].map.call(l,(function(e){return c(e,o)}))),r.matches(n)&&u.unshift(c(r,o)),u}function l(t,n){var i,o=t.reqId,r=t.reqs;if(n._isVue)i=n;else{var a=getCurrentPages(),c=a.find((function(e){return e.$page.id===n}));if(!c)throw new Error("Not Found:Page[".concat(n,"]"));i=c.$vm}var l=[];r.forEach((function(e){var t=e.component,n=e.selector,o=e.single,r=e.fields;0===t?l.push(s(r)):l.push(u(i,t,n,o,r))})),e.publishHandler("onRequestComponentInfo",{reqId:o,res:l})}}).call(this,n("c5c3"))},4492:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("a434"),n("a9e3"),n("ac1f"),n("5319"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.createInnerAudioContext=d;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ade3")),s=i(n("f1ca")),c=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],u=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],l=function(){function e(){var t=this;(0,o.default)(this,e),(0,a.default)(this,"_audio",void 0),(0,a.default)(this,"_stoping",void 0),(0,a.default)(this,"startTime",void 0),(0,a.default)(this,"_events",void 0),(0,a.default)(this,"_src",void 0);var n=this._audio=new Audio;this._stoping=!1;var i=["src","autoplay","loop","duration","currentTime","paused","volume"];i.forEach((function(e){Object.defineProperty(t,e,{set:"src"===e?function(e){return n.src=(0,s.default)(e),t._src=e,e}:function(t){return n[e]=t,t},get:"src"===e?function(){return t._src}:function(){return n[e]}})})),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:function(e){return!1},get:function(){return!1}}),Object.defineProperty(this,"buffered",{get:function(){var e=n.buffered;return e.length?e.end(e.length-1):0}}),this._events={},c.forEach((function(e){t._events[e]=[]})),n.addEventListener("loadedmetadata",(function(){var e=Number(t.startTime)||0;e>0&&(n.currentTime=e)}));var r=["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"],u=["canplay","pause","seeking","seeked","timeUpdate"];r.forEach((function(e){n.addEventListener(e.toLowerCase(),(function(){t._stoping&&u.indexOf(e)>=0||t._events["on".concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))].forEach((function(e){e()}))}),!1)}))}return(0,r.default)(e,[{key:"play",value:function(){this._stoping=!1,this._audio.play()}},{key:"pause",value:function(){this._audio.pause()}},{key:"stop",value:function(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((function(e){e()}))}},{key:"seek",value:function(e){this._stoping=!1,e=Number(e),"number"!==typeof e||isNaN(e)||(this._audio.currentTime=e)}},{key:"destroy",value:function(){this.stop()}}]),e}();function d(){return new l}c.forEach((function(e){l.prototype[e]=function(t){"function"===typeof t&&this._events[e].push(t)}})),u.forEach((function(e){l.prototype[e]=function(t){var n=this._events[e.replace("off","on")],i=n.indexOf(t);i>=0&&n.splice(i,1)}}))},"44ad":function(e,t,n){var i=n("d039"),o=n("c6b6"),r="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?r.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),o=n("7c73"),r=n("9bf2"),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&r.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var i=n("861d"),o=n("c6b6"),r=n("b622"),a=r("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},4552:function(e,t,n){"use strict";n.r(t);var i=n("bca3"),o=n("af20");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"457d":function(e,t,n){"use strict";n("c975"),n("fb6a"),n("a9e3"),n("e25e"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("987d"),o=n("db6a"),r=["text","number","idcard","digit","password","tel"],a=["number","digit"],s=["off","one-time-code"],c={name:"Input",mixins:[i.field],props:{name:{type:String,default:""},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:"input-placeholder"},disabled:{type:[Boolean,String],default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},textContentType:{type:String,default:""},step:{type:String,default:"0.000000000000000001"}},data:function(){return{wrapperHeight:0,cachedValue:""}},computed:{inputType:function(){var e="";switch(this.type){case"text":"search"===this.confirmType&&(e="search");break;case"idcard":e="text";break;case"digit":e="number";break;default:e=~r.indexOf(this.type)?this.type:"text";break}return this.password?"password":e},_step:function(){return~a.indexOf(this.type)?this.step:""},autocomplete:function(){var e=s.indexOf(this.textContentType),t=s.indexOf((0,o.kebabCase)(this.textContentType)),n=-1!==e?e:-1!==t?t:0;return s[n]}},watch:{maxlength:function(e){var t=this.valueSync.slice(0,parseInt(e,10));t!==this.valueSync&&(this.valueSync=t)},valueSync:function(e){"number"!==this.type||"-"===this.cachedValue&&""===e||(this.cachedValue=e)}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){if("search"===this.confirmType){var e=document.createElement("form");e.action="",e.onsubmit=function(){return!1},e.className="uni-input-form",e.appendChild(this.$refs.input),this.$refs.wrapper.appendChild(e)}var t=this;while(t){var n=t.$options._scopeId;n&&this.$refs.placeholder.setAttribute(n,""),t=t.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyup:function(e){var t=e.target;this.$trigger("confirm",e,{value:t.value}),this.confirmHold||t.blur()},_onInput:function(e,t){var n=this,i=!1;if(!this.composing||!this.ignoreCompositionEvent){if("number"===this.inputType){var o=parseInt(this.maxlength,10);if(o>0&&e.target.value.length>o&&(this.cachedValue.length===o?(this.valueSync=this.cachedValue,i=!0):(e.target.value=e.target.value.slice(0,o),this.valueSync=e.target.value)),this.__clearCachedValue&&e.target.removeEventListener("blur",this.__clearCachedValue),e.target.validity&&!e.target.validity.valid){if(!this.cachedValue&&"-"===e.data||"-"===this.cachedValue[0]&&"deleteContentBackward"===e.inputType){this.cachedValue="-";var r=this.__clearCachedValue=function(){n.cachedValue=""};return void e.target.addEventListener("blur",r)}return void(this.cachedValue=this.valueSync=e.target.value="-"===this.cachedValue?"":this.cachedValue)}this.cachedValue=this.valueSync}i||(this.ignoreCompositionEvent||(this.valueSync=this.$refs.input.value),this.$triggerInput(e,{value:this.valueSync},t))}},_onComposition:function(e){switch(e.type){case"compositionstart":this.composing=!0;break;case"compositionend":this.composing&&(this.composing=!1,this._onInput(e));break}!this.ignoreCompositionEvent&&this.$trigger(e.type,e,{data:e.data})},_resetFormData:function(){this.valueSync=""},_getFormData:function(){return this.name?{value:this.valueSync,key:this.name}:{}}}};t.default=c},"45fc":function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").some,r=n("a640"),a=n("ae40"),s=r("some"),c=a("some");i({target:"Array",proto:!0,forced:!s||!c},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"465d":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"uni-fade"}},[e.visible?n("uni-toast",{attrs:{"data-duration":e.duration}},[e.mask?n("div",{staticClass:"uni-mask",staticStyle:{background:"transparent"},on:{touchmove:function(e){e.preventDefault()}}}):e._e(),e.image||e.iconClass?n("div",{staticClass:"uni-toast"},[e.image?n("img",{staticClass:"uni-toast__icon",attrs:{src:e.image}}):n("i",{staticClass:"uni-icon_toast",class:e.iconClass}),n("p",{staticClass:"uni-toast__content"},[e._v("\n "+e._s(e.title)+"\n ")])]):n("div",{staticClass:"uni-sample-toast"},[n("p",{staticClass:"uni-simple-toast__text"},[e._v("\n "+e._s(e.title)+"\n ")])])]):e._e()],1)},r=[]},"466d":function(e,t,n){"use strict";var i=n("d784"),o=n("825a"),r=n("50c4"),a=n("1d80"),s=n("8aa5"),c=n("14c3");i("match",1,(function(e,t,n){return[function(t){var n=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var a=o(e),u=String(this);if(!a.global)return c(a,u);var l=a.unicode;a.lastIndex=0;var d,f=[],p=0;while(null!==(d=c(a,u))){var h=String(d[0]);f[p]=h,""===h&&(a.lastIndex=s(u,r(a.lastIndex),l)),p++}return 0===p?null:f}]}))},4688:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.downloadFile=void 0;var i={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}}};t.downloadFile=i},"47db":function(e,t,n){"use strict";(function(e){n("99af"),n("4160"),n("e25e"),n("ac1f"),n("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("db6a"),o={mounted:function(){var t=this;if("transparent"===this.type){for(var n=this.$el.querySelector(".uni-page-head-transparent").style,i=this.$el.querySelector(".uni-page-head__title"),o=this.$el.querySelectorAll(".uni-btn-icon"),r=[],a=this.textColor,s=0;s<o.length;s++)r.push(o[s].style);for(var c=this.$el.querySelectorAll(".uni-page-head-btn"),u=[],l=[],d=0;d<c.length;d++){var f=c[d];u.push(getComputedStyle(f).backgroundColor),l.push(f.style)}this._A=0,e.on("onPageScroll",(function(e){var o=e.scrollTop,s=Math.min(o/t.offset,1);1===s&&1===t._A||(s>.5&&t._A<=.5?r.forEach((function(e){e.color=a})):s<=.5&&t._A>.5&&r.forEach((function(e){e.color="#fff"})),t._A=s,i&&(i.style.opacity=s),n.backgroundColor="rgba(".concat(t._R,",").concat(t._G,",").concat(t._B,",").concat(s,")"),l.forEach((function(e,t){var n=u[t],i=n.match(/[\d+\.]+/g);i[3]=(1-s)*(4===i.length?i[3]:1),e.backgroundColor="rgba(".concat(i,")")})))}))}else if("float"===this.type){for(var p=this.$el.querySelectorAll(".uni-btn-icon"),h=[],g=0;g<p.length;g++)h.push(p[g].style);for(var m=this.$el.querySelectorAll(".uni-page-head-btn"),v=[],_=[],y=0;y<m.length;y++){var b=m[y];v.push(getComputedStyle(b).backgroundColor),_.push(b.style)}}},computed:{color:function(){return"transparent"===this.type?"#fff":this.textColor},offset:function(){return parseInt(this.coverage)},bgColor:function(){if("transparent"===this.type){var e=(0,i.hexToRgba)(this.backgroundColor),t=e.r,n=e.g,o=e.b;return this._R=t,this._G=n,this._B=o,"rgba(".concat(t,",").concat(n,",").concat(o,",0)")}return this.backgroundColor}}};t.default=o}).call(this,n("c5c3"))},4840:function(e,t,n){var i=n("825a"),o=n("1c0b"),r=n("b622"),a=r("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||void 0==(n=i(r)[a])?t:o(n)}},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},4963:function(e,t,n){"use strict";n.r(t);var i=n("ac5b"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"498a":function(e,t,n){"use strict";var i=n("23e7"),o=n("58a8").trim,r=n("c8d2");i({target:"String",proto:!0,forced:r("trim")},{trim:function(){return o(this)}})},"498d":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-app",{class:{"uni-app--showtabbar":e.showTabBar,"uni-app--maxwidth":e.showMaxWidth}},[n("layout",{ref:"layout",attrs:{"router-key":e.key,"keep-alive-include":e.keepAliveInclude},on:{maxWidth:e.onMaxWidth,layout:e.onLayout}}),e.hasTabBar?n("tab-bar",e._b({directives:[{name:"show",rawName:"v-show",value:e.showTabBar,expression:"showTabBar"}],ref:"tabBar"},"tab-bar",e.tabBarOptions,!1)):e._e(),e.$options.components.Toast?n("toast",e._b({},"toast",e.showToast,!1)):e._e(),e.$options.components.ActionSheet?n("action-sheet",e._b({on:{close:e._onActionSheetClose}},"action-sheet",e.showActionSheet,!1)):e._e(),e.$options.components.Modal?n("modal",e._b({on:{close:e._onModalClose}},"modal",e.showModal,!1)):e._e(),e.sysComponents&&e.sysComponents.length?e._l(e.sysComponents,(function(e,t){return n(e,{key:t,tag:"component"})})):e._e()],2)},r=[]},"49b4":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("4160"),Object.defineProperty(t,"__esModule",{value:!0}),t.createMapContext=d,t.MapContext=void 0;var o=i(n("d4ec")),r=i(n("bee2")),a=n("2412"),s=n("db6a");function c(e,t,n,i){(0,a.invokeMethod)("operateMapPlayer",e,t,n,i)}e.subscribe("onMapMethodCallback",(function(e){var t=e.callbackId,n=e.data;s.callback.invoke(t,n)}));var u=["getCenterLocation","moveToLocation","getScale","getRegion","includePoints","translateMarker","addCustomLayer","removeCustomLayer","addGroundOverlay","removeGroundOverlay","updateGroundOverlay","initMarkerCluster","addMarkers","removeMarkers","moveAlong","openMapApp"],l=function(){function e(t,n){(0,o.default)(this,e),this.id=t,this.pageVm=n}return(0,r.default)(e,[{key:"on",value:function(e,t){c(this.id,this.pageVm,"on",{name:e,callback:t})}}]),e}();function d(e,t){return new l(e,t||(0,a.getCurrentPageVm)("createMapContext"))}t.MapContext=l,l.prototype.$getAppMap=function(){0},u.forEach((function(e){l.prototype[e]=s.callback.warp((function(t,n){t.callbackId=n,c(this.id,this.pageVm,e,t)}))}))}).call(this,n("a9aa"))},"49b6":function(e,t,n){"use strict";function i(){var e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,i=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){var o=new RegExp("MSIE (\\d+\\.\\d+);");o.test(e);var r=parseFloat(RegExp.$1);return r>6?r:6}return n?-1:i?11:-1}n("99af"),n("c975"),n("acd8"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("1276"),n("498a"),Object.defineProperty(t,"__esModule",{value:!0}),t.getBrowserInfo=d;var o=navigator.userAgent,r=/android/i.test(o),a=/iphone|ipad|ipod/i.test(o),s=o.match(/Windows NT ([\d|\d.\d]*)/i),c=/Macintosh|Mac/i.test(o),u=/Linux|X11/i.test(o),l=c&&navigator.maxTouchPoints>0;function d(){var e,t,n,d=navigator.language,f="phone";if(a){e="iOS";var p=o.match(/OS\s([\w_]+)\slike/);p&&(t=p[1].replace(/_/g,"."));var h=o.match(/\(([a-zA-Z]+);/);h&&(n=h[1])}else if(r){e="Android";var g=o.match(/Android[\s/]([\w\.]+)[;\s]/);g&&(t=g[1]);for(var m=o.match(/\((.+?)\)/),v=m?m[1].split(";"):o.split(" "),_=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i],y=0;y<v.length;y++){var b=v[y];if(b.indexOf("Build")>0){n=b.split("Build")[0].trim();break}for(var M=void 0,S=0;S<_.length;S++)if(_[S].test(b)){M=!0;break}if(!M){n=b.trim();break}}}else if(l)n="iPad",e="iOS",t="function"===typeof window.BigInt?"14.0":"13.0",f="pad";else if(s||c||u){n="PC",e="PC",f="pc";var C=o.match(/\((.+?)\)/)[1];if(s){switch(e="Windows",t="",s[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10";break}var k=C.match(/[Win|WOW]([\d]+)/);k&&(t+=" x".concat(k[1]))}else c?(e="macOS",t=C.match(/Mac OS X (.+)/)||"",t&&(t=t[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))):u&&(e="Linux",t=C.match(/Linux (.*)/)||"",t&&(t=t[1],-1!==t.indexOf(";")&&(t=t.split(";")[0])))}else e="Other",t="0",f="unknown";var T="".concat(e," ").concat(t),I=e.toLocaleLowerCase(),w="",A=String(i());if("-1"!==A)w="IE";else for(var E=["Version","Firefox","Chrome","Edge{0,1}"],O=["Safari","Firefox","Chrome","Edge"],x=0;x<E.length;x++){var D=E[x],N=new RegExp("(".concat(D,")/(\\S*)\\b"));N.test(o)&&(w=O[x],A=o.match(N)[2])}var R="portrait",L="undefined"===typeof window.screen.orientation?window.orientation:window.screen.orientation.angle;return R=90===Math.abs(L)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:R,model:n,system:T,platform:I,browserName:w.toLocaleLowerCase(),browserVersion:A,language:d,deviceType:f,ua:o,osname:e,osversion:t,theme:void 0}}},"4ae1":function(e,t,n){var i=n("23e7"),o=n("d066"),r=n("1c0b"),a=n("825a"),s=n("861d"),c=n("7c73"),u=n("0538"),l=n("d039"),d=o("Reflect","construct"),f=l((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),p=!l((function(){d((function(){}))})),h=f||p;i({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){r(e),a(t);var n=arguments.length<3?e:r(arguments[2]);if(p&&!f)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(u.apply(e,i))}var o=n.prototype,l=c(s(o)?o:Object.prototype),h=Function.apply.call(e,l,t);return s(h)?h:l}})},"4ae2":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("4160"),n("c975"),n("c19f"),n("ace4"),n("d3b7"),n("ac1f"),n("25f0"),n("466d"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.request=l;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ade3")),s=n("db6a"),c=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"_xhr",void 0),this._xhr=t}return(0,r.default)(e,[{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function u(e){var t={},n=e.split("\n");return n.forEach((function(e){var n=e.match(/(\S+\s*):\s*(.*)/);if(n&&3===n.length){var i=n[1],o=n[2];t[i]=o}})),t}function l(t,n){var i,o=t.url,r=t.data,a=t.header,l=t.method,d=t.dataType,f=t.responseType,p=t.withCredentials,h=t.timeout,g=void 0===h?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:h,m=e,v=m.invokeCallbackHandler,_=null;for(var y in a)if((0,s.hasOwn)(a,y)&&"content-type"===y.toLowerCase()){i=a[y],i=0===i.indexOf("application/json")?"json":0===i.indexOf("application/x-www-form-urlencoded")?"urlencoded":"string";break}if("GET"!==l)if("string"===typeof r||r instanceof ArrayBuffer)_=r;else if("json"===i)try{_=JSON.stringify(r)}catch(I){_=r.toString()}else if("urlencoded"===i){var b=[];for(var M in r)(0,s.hasOwn)(r,M)&&b.push(encodeURIComponent(M)+"="+encodeURIComponent(r[M]));_=b.join("&")}else _=r.toString();var S=new XMLHttpRequest,C=new c(S);for(var k in S.open(l,o),a)(0,s.hasOwn)(a,k)&&S.setRequestHeader(k,a[k]);var T=setTimeout((function(){S.onload=S.onabort=S.onerror=null,C.abort(),v(n,{errMsg:"request:fail timeout"})}),g);return S.responseType=f,S.onload=function(){clearTimeout(T);var e=S.status,t="text"===f?S.responseText:S.response;if("text"===f&&"json"===d)try{t=JSON.parse(t)}catch(I){}v(n,{data:t,statusCode:e,header:u(S.getAllResponseHeaders()),errMsg:"request:ok"})},S.onabort=function(){clearTimeout(T),v(n,{errMsg:"request:fail abort"})},S.onerror=function(){clearTimeout(T),v(n,{errMsg:"request:fail"})},S.withCredentials=p,S.send(_),C}}).call(this,n("a9aa"))},"4baf":function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("5fe7")),r=i(n("c7ff")),a=n("1387"),s=n("0138"),c=n("64fe");function u(e){var t=20,n=0,i=0;e.addEventListener("touchstart",(function(e){var t=e.changedTouches[0];n=t.clientX,i=t.clientY})),e.addEventListener("touchend",(function(e){var o=e.changedTouches[0];if(Math.abs(o.clientX-n)<t&&Math.abs(o.clientY-i)<t){var r=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){r[e]=o[e]})),e.target.dispatchEvent(r)}}))}var l={name:"PickerViewColumn",mixins:[o.default,r.default],data:function(){return{scope:"picker-view-column-".concat(Date.now()),inited:!1,indicatorStyle:"",indicatorClass:"",indicatorHeight:34,maskStyle:"",maskClass:"",current:this.$parent.getItemValue(this),length:0}},computed:{height:function(){return this.$parent.height},maskSize:function(){return(this.height-this.indicatorHeight)/2}},watch:{indicatorHeight:function(e){this._setItemHeight(e),this.inited&&this.update()},current:function(e){this.$parent.setItemValue(this,e)},length:function(e){this.inited&&this.update(e)}},created:function(){var e=this.$parent;this.indicatorStyle=e.indicatorStyle,this.indicatorClass=e.indicatorClass,this.maskStyle=e.maskStyle,this.maskClass=e.maskClass,this.deltaY=0},mounted:function(){var e=this;this.touchtrack(this.$refs.main,"_handleTrack",!0),this.setCurrent(this.current),this.$nextTick((function(){e.init(),e.update()})),u(this.$el),(0,c.initScrollBounce)();var t=this;while(t){var n=t.$options._scopeId;n&&this.$refs.indicator.setAttribute(n,""),t=t.$parent}},methods:{_setItemHeight:function(e){var t=document.createElement("style");t.innerText=".uni-picker-view-content.".concat(this.scope,">*{height: ").concat(e,"px;overflow: hidden;}"),document.head.appendChild(t)},_handleTrack:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e),(0,c.disableScrollBounce)({disable:!0});break;case"move":this._handleTouchMove(e),e.stopPropagation();break;case"end":case"cancel":this._handleTouchEnd(e),(0,c.disableScrollBounce)({disable:!1})}},_handleTap:function(e){var t=e.clientY;if(!this._scroller.isScrolling()){var n=this.$el.getBoundingClientRect(),i=t-n.top-this.height/2,o=this.indicatorHeight/2;if(!(Math.abs(i)<=o)){var r=Math.ceil((Math.abs(i)-o)/this.indicatorHeight),a=i<0?-r:r,s=Math.min(this.current+a,this.length-1);this.current=s=Math.max(s,0),this._scroller.scrollTo(s*this.indicatorHeight)}}},_handleWheel:function(e){var t=this.deltaY+e.deltaY;if(Math.abs(t)>10){this.deltaY=0;var n=Math.min(this.current+(t<0?-1:1),this.length-1);this.current=n=Math.max(n,0),this._scroller.scrollTo(n*this.indicatorHeight)}else this.deltaY=t;e.preventDefault()},setCurrent:function(e){e!==this.current&&(this.current=e,this.inited&&this.update())},init:function(){var e=this;this.initScroller(this.$refs.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this.indicatorHeight,friction:new a.Friction(1e-4),spring:new s.Spring(2,90,20),onSnap:function(t){isNaN(t)||t===e.current||(e.current=t)}}),this.inited=!0},update:function(){var e=this;this.$nextTick((function(){var t=Math.min(e.current,e.length-1);t=Math.max(t,0),e._scroller.update(t*e.indicatorHeight,void 0,e.indicatorHeight)}))},_resize:function(e){var t=e.height;this.indicatorHeight=t}},render:function(e){return this.length=this.$slots.default&&this.$slots.default.length||0,e("uni-picker-view-column",{on:{on:this.$listeners}},[e("div",{ref:"main",staticClass:"uni-picker-view-group",on:{wheel:this._handleWheel,click:this._handleTap}},[e("div",{ref:"mask",staticClass:"uni-picker-view-mask",class:this.maskClass,style:"background-size: 100% ".concat(this.maskSize,"px;").concat(this.maskStyle)}),e("div",{ref:"indicator",staticClass:"uni-picker-view-indicator",class:this.indicatorClass,style:this.indicatorStyle},[e("v-uni-resize-sensor",{attrs:{initial:!0},on:{resize:this._resize}})]),e("div",{ref:"content",staticClass:"uni-picker-view-content",class:this.scope,style:"padding: ".concat(this.maskSize,"px 0;")},[this.$slots.default])])])}};t.default=l},"4cac":function(e,t){e.exports=["uni-app","uni-layout","uni-content","uni-main","uni-top-window","uni-left-window","uni-right-window","uni-tabbar","uni-page","uni-page-head","uni-page-wrapper","uni-page-body","uni-page-refresh","uni-actionsheet","uni-modal","uni-toast","uni-resize-sensor","uni-shadow-root","uni-ad","uni-audio","uni-button","uni-camera","uni-canvas","uni-checkbox","uni-checkbox-group","uni-cover-image","uni-cover-view","uni-editor","uni-form","uni-functional-page-navigator","uni-icon","uni-image","uni-input","uni-label","uni-live-player","uni-live-pusher","uni-map","uni-movable-area","uni-movable-view","uni-navigator","uni-official-account","uni-open-data","uni-picker","uni-picker-view","uni-picker-view-column","uni-progress","uni-radio","uni-radio-group","uni-rich-text","uni-scroll-view","uni-slider","uni-swiper","uni-swiper-item","uni-switch","uni-text","uni-textarea","uni-video","uni-view","uni-web-view"]},"4d63":function(e,t,n){var i=n("83ab"),o=n("da84"),r=n("94ca"),a=n("7156"),s=n("9bf2").f,c=n("241c").f,u=n("44e7"),l=n("ad6d"),d=n("9f7f"),f=n("6eeb"),p=n("d039"),h=n("69f3").set,g=n("2626"),m=n("b622"),v=m("match"),_=o.RegExp,y=_.prototype,b=/a/g,M=/a/g,S=new _(b)!==b,C=d.UNSUPPORTED_Y,k=i&&r("RegExp",!S||C||p((function(){return M[v]=!1,_(b)!=b||_(M)==M||"/a/i"!=_(b,"i")})));if(k){var T=function(e,t){var n,i=this instanceof T,o=u(e),r=void 0===t;if(!i&&o&&e.constructor===T&&r)return e;S?o&&!r&&(e=e.source):e instanceof T&&(r&&(t=l.call(e)),e=e.source),C&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(S?new _(e,t):_(e,t),i?this:y,T);return C&&n&&h(s,{sticky:n}),s},I=function(e){e in T||s(T,e,{configurable:!0,get:function(){return _[e]},set:function(t){_[e]=t}})},w=c(_),A=0;while(w.length>A)I(w[A++]);y.constructor=T,T.prototype=y,f(o,"RegExp",T)}g("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),o=n("50c4"),r=n("23cb"),a=function(e){return function(t,n,a){var s,c=i(t),u=o(c.length),l=r(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d90":function(e,t,n){"use strict";var i=n("23e7"),o=n("0ccb").start,r=n("9a0c");i({target:"String",proto:!0,forced:r},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4dc9":function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("13d5"),n("a9e3"),n("d3b7"),n("e25e"),n("ac1f"),n("25f0"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ade3")),s=n("987d"),c=function(){function e(){(0,o.default)(this,e),this._instance=null,this._adConfig=null,this._isLoading=!1,this._lastError=null,this._callbacks=[]}return(0,r.default)(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),(0,r.default)(e,[{key:"_init",value:function(){var e=this._getConfig();null!==e&&e.last&&(this.isExpired||(this._adConfig=e.data))}},{key:"get",value:function(t,n,i){if(e.IC++,null!=this._adConfig)return this._doCallback(t,n,i),void(this.isExpired&&this._loadAdConfig(t));this._callbacks.push({adpid:t,success:n,fail:i}),this._loadAdConfig(t)}},{key:"_doCallback",value:function(t,n,i){e.IS++;var o=this._adConfig,r=o.a,a=o.b;r[t]?n(a,r[t]):i(this.ERROR_INVALID_ADPID)}},{key:"_loadAdConfig",value:function(e){var t=this;!0!==this._isLoading&&(this._isLoading=!0,uni.request({url:this.URL,method:"GET",timeout:8e3,data:{d:location.hostname,a:e},dataType:"json",success:function(e){var n=e.data;if(0===n.ret){var i=n.data;t._adConfig=i,t._setConfig(i),t._callbacks.forEach((function(e){var n=e.adpid,i=e.success,o=e.fail;t._doCallback(n,i,o)}))}else t._callbacks.forEach((function(e){e.fail({errCode:n.ret,errMsg:n.msg})}));t._callbacks=[]},fail:function(e){t._callbacks.forEach((function(t){t.fail(e)})),t._callbacks=[]},complete:function(e){t._isLoading=!1}}))}},{key:"_getConfig",value:function(){if(!navigator.cookieEnabled||!window.localStorage)return null;var e=localStorage.getItem(this.KEY);return e?JSON.parse(e):null}},{key:"_setConfig",value:function(e){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(this.KEY,JSON.stringify({last:Date.now(),data:e}))}},{key:"adConfig",get:function(){return this._adConfig}},{key:"isExpired",get:function(){return null==this._adConfig||Math.abs(Date.now()-this._adConfig.last)>this.CACHE_TIME}}]),e}();(0,a.default)(c,"IC",0),(0,a.default)(c,"IS",0),Object.assign(c.prototype,{URL:"https://hac1.dcloud.net.cn/ah5",KEY:"uni_app_ad_config",CACHE_TIME:6e5,ERROR_INVALID_ADPID:{"-5002":"invalid adpid"}});var u=function(){function e(){(0,o.default)(this,e),this._instance=null,this._adConfig=null,this._guid=null}return(0,r.default)(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),(0,r.default)(e,[{key:"_init",value:function(){var e=this._getConfig();null!==e&&e.guid?this._guid=e.guid:(this._guid=this._newGUID(),this._setConfig(this._guid))}},{key:"get",value:function(e){this._process(Object.assign(e,{d:location.hostname,i:this._guid}))}},{key:"_process",value:function(e){uni.request({url:this.URL,method:"GET",data:e,dataType:"json",success:function(){}})}},{key:"_newGUID",value:function(){for(var e="",t="xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx",n=0;n<t.length;n++)"x"===t[n]?e+=(16*Math.random()|0).toString(16):e+=t[n];return e.toUpperCase()}},{key:"_getConfig",value:function(){if(!navigator.cookieEnabled||!window.localStorage)return null;var e=localStorage.getItem(this.KEY);return e?JSON.parse(e):null}},{key:"_setConfig",value:function(e){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(this.KEY,JSON.stringify({last:Date.now(),guid:e}))}}]),e}();Object.assign(u.prototype,{URL:"https://has1.dcloud.net.cn/ahl",KEY:"uni_app_ad_guid"});var l=function(){function e(){(0,o.default)(this,e),this._instance=null,this._callback={},this._cache={}}return(0,r.default)(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),(0,r.default)(e,[{key:"load",value:function(e,t,n,i){void 0===this._cache[e]&&this.loadScript(e,t),1===this._cache[e]?n():(this._callback[e]||(this._callback[e]=[]),this._callback[e].push({success:n,fail:i}))}},{key:"loadScript",value:function(e,t){var n=this;this._cache[e]=0;var i=document.createElement("script");for(var o in i.setAttribute("id","uniad_provider"+e),t)i.setAttribute(o,t[o]);i.onload=function(){n._cache[e]=1,n._callback[e].forEach((function(e){var t=e.success;t()})),n._callback[e].length=0},i.onerror=function(t){n._cache[e]=void 0,n._callback[e].forEach((function(e){var n=e.fail;n(t)})),n._callback[e].length=0},document.body.append(i)}}]),e}(),d=function(){function e(){(0,o.default)(this,e),this._instance=null,this._callback={},this._cache={},window.TencentGDT=window.TencentGDT||[]}return(0,r.default)(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),(0,r.default)(e,[{key:"load",value:function(e,t,n,i){var o=this;this._callback[t]||(this._callback[t]=[]),this._callback[t].push({success:n,fail:i}),this._cache[t]||(this._cache[t]={isReady:!1},window.TencentGDT.push({app_id:e,placement_id:t,type:"native",count:1,onComplete:function(e){o._cache[t].isReady=!0,o._callback[t].forEach((function(n){var i=n.success,r=n.fail;e&&Array.isArray(e)&&e.length?i(e[0]):r(e),o._callback[t].length=0}))}})),!0===this._cache[t].isReady&&window.TencentGDT.NATIVE.loadAd(t)}}]),e}(),f=1e3,p=5,h=750,g={name:"Ad",mixins:[s.subscriber],props:{adpid:{type:[Number,String],default:""},adpidWidescreen:{type:[Number,String],default:""},widescreenWidth:{type:[Number,String],default:h}},watch:{adpid:function(e){e&&this._loadData(e)},adpidWidescreen:function(e){e&&this._loadData(e)}},mounted:function(){this._p={},this._pl=[],this._pi=0,this._checkTimer=null,this._checkTimerCount=0,this._isWidescreen=this.$refs.container.clientWidth>parseInt(this.widescreenWidth),this._loadData(),u.instance.get({h:__uniConfig.compilerVersion,a:this.adpid,at:-3,ic:c.IC,is:c.IS})},beforeDestroy:function(){this._clearCheckTimer(),this.$refs.container.innerHTML="",this._shanhuAd&&delete this._shanhuAd},methods:{_onhandle:function(e){this._report(41)},_reset:function(){this._p={},this._pl=[],this._pi=0,this._clearCheckTimer(),this.$refs.container.innerHTML="",this._isReady=!1},_loadData:function(e){var t=this;this._reset();var n=e||this.adpid,i=this._isWidescreen&&this.adpidWidescreen||n;c.instance.get(i,(function(e,n){t._b=e,t._pl=n,t._renderAd()}),(function(e){t.$trigger("error",{},e)}))},_renderAd:function(){var e=this;if(!(this._pi>this._pl.length-1)){var t=this._pl[this._pi],n=this._b[t.a1][t.t],i=n.script;this._currentChannel=t.a1;var o=this._randomId(),r=this._createView(o);"10010"===t.a1?l.instance.load(t.t,i,(function(){e._renderBaidu(o,t.a2)}),(function(t){e.$trigger("error",{},t)})):"10011"===t.a1?(d.instance.load(t.a3,t.a2,(function(e){window.TencentGDT.NATIVE.renderAd(e,o)})),this._startCheckTimer()):"10012"===t.a1?this._renderScript(r,i):"10014"===t.a1?l.instance.load(t.t,i,(function(){e._renderShanhu(o,t.tt,t.tar)}),(function(t){e.$trigger("error",{},t)})):l.instance.load(t.t,i,(function(){e._renderAdView(o,i.s,t)}),(function(t){e.$trigger("error",{},t)}))}},_createView:function(e){var t=document.createElement("div");return t.setAttribute("id",e),t.setAttribute("class",e),this.$refs.container.innerHTML="",this.$refs.container.append(t),t},_renderScript:function(e,t){var n=document.createElement("script");for(var i in t)n.setAttribute(i,t[i]);e.appendChild(n),this._startCheckTimer()},_renderBaidu:function(e,t){(window.slotbydup=window.slotbydup||[]).push({id:t,container:e,async:!0}),this._startCheckTimer()},_renderAdView:function(e,t,n){var i=window;t.split(".").reduce((function(e,t){return i=e,e[t]}),window).bind(i)(n.a2,e,2),this._startCheckTimer()},_renderShanhu:function(e,t,n){var i=this;this._shanhuAd=new window.CoralTBSAdv(e,{type:t,target:n,advShowCb:function(){i._report(42),i.$trigger("load",{},{})},advClickCb:function(){i._report(43),i.$trigger("adclicked",{},{})},advCloseCb:function(){i.$trigger("close",{},{})},advErrorCb:function(e){i.$trigger("error",{},e)}}),this._startCheckTimer()},_renderNext:function(){this._pi>=this._pl.length-1||(this._pi++,this._renderAd())},_checkRender:function(){var e=this.$refs.container.children.length>0&&this.$refs.container.clientHeight>40;return e&&this._report(40,this._currentChannel),e},_startCheckTimer:function(){var e=this;this._clearCheckTimer(),this._checkTimer=setInterval((function(){if(e._checkTimerCount++,e._checkTimerCount>=p)return e._clearCheckTimer(),void e._renderNext();e._checkRender()&&e._clearCheckTimer()}),f)},_clearCheckTimer:function(){this._checkTimerCount=0,null!=this._checkTimer&&(window.clearInterval(this._checkTimer),this._checkTimer=null)},_report:function(e,t){var n={h:__uniConfig.compilerVersion,a:this.adpid,at:e};t&&(n.t=t),u.instance.get(n)},_randomId:function(){for(var e="",t=0;t<4;t++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return"_u"+e}}};t.default=g},"4de4":function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").filter,r=n("1dde"),a=n("ae40"),s=r("filter"),c=a("filter");i({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),o=n("7b0b"),r=n("9bdd"),a=n("e95a"),s=n("50c4"),c=n("8418"),u=n("35a1");e.exports=function(e){var t,n,l,d,f,p,h=o(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,_=void 0!==v,y=u(h),b=0;if(_&&(v=i(v,m>2?arguments[2]:void 0,2)),void 0==y||g==Array&&a(y))for(t=s(h.length),n=new g(t);t>b;b++)p=_?v(h[b],b):h[b],c(n,b,p);else for(d=y.call(h),f=d.next,n=new g;!(l=f.call(d)).done;b++)p=_?r(d,v,[l.value,b],!0):l.value,c(n,b,p);return n.length=b,n}},"4e82":function(e,t,n){"use strict";var i=n("23e7"),o=n("1c0b"),r=n("7b0b"),a=n("d039"),s=n("a640"),c=[],u=c.sort,l=a((function(){c.sort(void 0)})),d=a((function(){c.sort(null)})),f=s("sort"),p=l||!d||!f;i({target:"Array",proto:!0,forced:p},{sort:function(e){return void 0===e?u.call(r(this)):u.call(r(this),o(e))}})},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},"4ec9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makePhoneCall=void 0;var i={phoneNumber:{type:String,required:!0,validator:function(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}};t.makePhoneCall=i},"4ec92":function(e,t,n){"use strict";var i=n("6d61"),o=n("6566");e.exports=i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"4f06":function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},o=0;o<t.length;o++){var r=t[o],a=r[0],s=r[1],c=r[2],u=r[3],l={id:e+":"+o,css:s,media:c,sourceMap:u};i[a]?i[a].parts.push(l):n.push(i[a]={id:a,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return h}));var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){u=n,d=o||{};var a=i(e,t);return g(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o],c=r[s.id];c.refs--,n.push(c)}t?(a=i(e,t),g(a)):a=[];for(o=0;o<n.length;o++){c=n[o];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete r[c.id]}}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],i=r[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(v(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(v(n.parts[o]));r[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,i=document.querySelector("style["+f+'~="'+e.id+'"]');if(i){if(u)return l;i.parentNode.removeChild(i)}if(p){var o=c++;i=s||(s=m()),t=y.bind(null,i,o,!1),n=y.bind(null,i,o,!0)}else i=m(),t=b.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,i){var o=n?"":O(i.css);if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function b(e,t){var n=O(t.css),i=t.media,o=t.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute(f,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var M=/%\?([+-]?\d+(\.\d+)?)\?%/g,S=/\.\?%PAGE\?%/g,C=/\?%PAGE\?%\[data-v-[a-z0-9]{8}\]/g,k=/uni-page-body\[data-v-[a-z0-9]{8}\]/g,T=/var\(--status-bar-height\)/gi,I=/var\(--window-top\)/gi,w=/var\(--window-bottom\)/gi,A=/var\(--window-left\)/gi,E=/var\(--window-right\)/gi;function O(e){var t=x();if("undefined"!==typeof uni&&!uni.canIUse("css.var")){var n=D();e=e.replace(T,"0px").replace(I,n.top+"px").replace(w,n.bottom+"px").replace(A,"0px").replace(E,"0px")}return e.replace(C,t).replace(S,"").replace(k,"body."+t+" uni-page-body").replace(/\{[\s\S]+?\}|@media.+?\{/g,(function(e){return"undefined"===typeof uni?e:e.replace(M,(function(e,t){return uni.upx2px(t)+"px"}))}))}function x(){var e="function"===typeof getApp&&getApp();return e&&e.$route&&e.$route.meta&&e.$route.meta.name||""}function D(){var e="function"===typeof getApp&&getApp();return e&&e.$route&&e.$route.meta&&e.$route.meta.name?{top:e.$route.meta.windowTop,bottom:e.$route.meta.isTabBar?50:0}:{top:0,bottom:0}}},"4f1f":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("a9e3"),n("b64b"),n("ac1f"),n("5319"),n("2ca0"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.invokeCallbackHandler=b,t.removeCallbackHandler=M,t.wrapperUnimplemented=S,t.wrapper=T;var o=n("db6a"),r=n("9f49"),a=n("a5e0"),s=n("90fe"),c=i(n("cca8")),u=i(n("2cea"));function l(e,t,n){var i="".concat(t,":fail ").concat(e);if(-1===n)throw new Error(i);return"number"===typeof n&&b(n,{errMsg:i}),!1}var d=[{name:"callback",type:Function,required:!0}],f=["beforeValidate","beforeAll","beforeSuccess"];function p(e,t,n){var i=c.default[e];if(!i&&(0,a.isCallbackApi)(e)&&(i=d),i){if(Array.isArray(i)&&Array.isArray(t)){var r=Object.create(null),s=Object.create(null),p=t.length;i.forEach((function(e,n){r[e.name]=e,p>n&&(s[e.name]=t[n])})),i=r,t=s}if((0,o.isFn)(i.beforeValidate)){var h=i.beforeValidate(t);if(h)return l(h,e,n)}for(var g=Object.keys(i),m=0;m<g.length;m++)if(-1===f.indexOf(g[m])){var v=(0,u.default)(g[m],i,t);if(v)return l(v,e,n)}}return!0}var h=1,g={};function m(e,t){var n=h++,i="api."+e+"."+n;return g[n]={name:i,keepAlive:!0,callback:t},n}function v(e,t){for(var n in g){var i=g[n];if(i.name.startsWith("api."+e.replace(/^off/,"on"))&&i.callback===t)return delete g[n],Number(n)}return"fail"}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,o.isPlainObject)(t))return{params:t};t=Object.assign({},t);var i=(0,s.getApiCallbacks)(t),a=i.success,c=i.fail,u=i.cancel,l=i.complete,d=(0,o.isFn)(a),f=(0,o.isFn)(c),p=(0,o.isFn)(u),m=(0,o.isFn)(l);if(!d&&!f&&!p&&!m)return{params:t};var v={};for(var _ in n){var y=n[_];(0,o.isFn)(y)&&(v[_]=(0,r.tryCatchFramework)(y))}var b=v.beforeSuccess,M=v.afterSuccess,S=v.beforeFail,C=v.afterFail,k=v.beforeCancel,T=v.afterCancel,I=v.beforeAll,w=v.afterAll,A=h++,E="api."+e+"."+A,O=function(n){if(n.errMsg=n.errMsg||e+":ok",-1!==n.errMsg.indexOf(":ok"))n.errMsg=e+":ok";else if(-1!==n.errMsg.indexOf(":cancel"))n.errMsg=e+":cancel";else if(-1!==n.errMsg.indexOf(":fail")){var i="",r=n.errMsg.indexOf(" ");r>-1&&(i=n.errMsg.substr(r)),n.errMsg=e+":fail"+i}(0,o.isFn)(I)&&I(n);var s=n.errMsg;0===s.indexOf(e+":ok")?((0,o.isFn)(b)&&b(n,t),d&&a(n),(0,o.isFn)(M)&&M(n)):0===s.indexOf(e+":cancel")?(n.errMsg=n.errMsg.replace(e+":cancel",e+":fail cancel"),f&&c(n),(0,o.isFn)(k)&&k(n),p&&u(n),(0,o.isFn)(T)&&T(n)):0===s.indexOf(e+":fail")&&((0,o.isFn)(S)&&S(n),f&&c(n),(0,o.isFn)(C)&&C(n)),m&&l(n),(0,o.isFn)(w)&&w(n)};return g[A]={name:E,callback:O},{params:t,callbackId:A}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=_(e,t,n),r=i.params,a=i.callbackId;return(0,o.isPlainObject)(r)&&!p(e,r,a)?{params:r,callbackId:!1}:{params:r,callbackId:a}}function b(e,t,n){if("number"===typeof e){var i=g[e];if(i)return i.keepAlive||delete g[e],i.callback(t,n)}return t}function M(e){delete g[e]}function S(t){return function(n){e.error("API `"+t+"` is not yet implemented")}}function C(e,t){var n=c.default[e];n&&((0,o.isFn)(n.beforeAll)&&(t.beforeAll=n.beforeAll),(0,o.isFn)(n.beforeSuccess)&&(t.beforeSuccess=n.beforeSuccess))}var k=["getPushClientId","onPushMessage","offPushMessage"];function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k.indexOf(e)>-1||!(0,o.isFn)(t)?t:(C(e,n),function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];if((0,a.isSyncApi)(e)){if(p(e,r,-1))return t.apply(null,r)}else if((0,a.isCallbackApi)(e)){if(p(e,r,-1))return t((e.startsWith("off")?v:m)(e,r[0]))}else{var c={};r.length&&(c=r[0]);var u,l=y(e,c,n),d=l.params,f=l.callbackId;if(!1!==f)return u=(0,o.isFn)(d)?t(f):t(d,f),u&&!(0,a.isTaskApi)(e)&&(u=b(f,u),(0,o.isPlainObject)(u)&&(u.errMsg=u.errMsg||e+":ok")),u}})}}).call(this,n("5a52")["default"])},"4fcb":function(e,t,n){"use strict";var i=n("4ea4");n("e25e"),n("ac1f"),n("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=n("0fbe"),r=i(n("d8c8"));function a(){if(uni.canIUse("css.var")){var e=document.documentElement.style,t=parseInt((e.getPropertyValue("--window-top").match(/\d+/)||["0"])[0]),n=parseInt((e.getPropertyValue("--window-bottom").match(/\d+/)||["0"])[0]),i=parseInt((e.getPropertyValue("--window-left").match(/\d+/)||["0"])[0]),a=parseInt((e.getPropertyValue("--window-right").match(/\d+/)||["0"])[0]),s=parseInt((e.getPropertyValue("--top-window-height").match(/\d+/)||["0"])[0]);return{top:(t?t+r.default.top:0)+(s||0),bottom:n?n+r.default.bottom:0,left:i?i+r.default.left:0,right:a?a+r.default.right:0}}var c=0,u=0,l=getCurrentPages();if(l.length){var d=l[l.length-1].$parent.$parent,f=d.navigationBar.type;c="default"===f||"float"===f?o.NAVBAR_HEIGHT:0}var p=getApp();return p&&(u=p.$children[0]&&p.$children[0].showTabBar?o.TABBAR_HEIGHT:0),{top:c,bottom:u,left:0,right:0}}},"50c4":function(e,t,n){var i=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},"50ff":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-movable-view",e._g({},e.$listeners),[n("v-uni-resize-sensor",{on:{resize:e.setParent}}),e._t("default")],2)},r=[]},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"528a":function(e,t,n){"use strict";n.r(t);var i=n("9617"),o=n("b89d");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},5319:function(e,t,n){"use strict";var i=n("d784"),o=n("825a"),r=n("7b0b"),a=n("50c4"),s=n("a691"),c=n("1d80"),u=n("8aa5"),l=n("14c3"),d=Math.max,f=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,n,i){var v=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,_=i.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(n,i){var o=c(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,o,i):t.call(String(o),n,i)},function(e,i){if(!v&&_||"string"===typeof i&&-1===i.indexOf(y)){var r=n(t,e,this,i);if(r.done)return r.value}var c=o(e),p=String(this),h="function"===typeof i;h||(i=String(i));var g=c.global;if(g){var M=c.unicode;c.lastIndex=0}var S=[];while(1){var C=l(c,p);if(null===C)break;if(S.push(C),!g)break;var k=String(C[0]);""===k&&(c.lastIndex=u(p,a(c.lastIndex),M))}for(var T="",I=0,w=0;w<S.length;w++){C=S[w];for(var A=String(C[0]),E=d(f(s(C.index),p.length),0),O=[],x=1;x<C.length;x++)O.push(m(C[x]));var D=C.groups;if(h){var N=[A].concat(O,E,p);void 0!==D&&N.push(D);var R=String(i.apply(void 0,N))}else R=b(A,p,E,O,D,i);E>=I&&(T+=p.slice(I,E)+R,I=E+A.length)}return T+p.slice(I)}];function b(e,n,i,o,a,s){var c=i+e.length,u=o.length,l=g;return void 0!==a&&(a=r(a),l=h),t.call(s,l,(function(t,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(c);case"<":s=a[r.slice(1,-1)];break;default:var l=+r;if(0===l)return t;if(l>u){var d=p(l/10);return 0===d?t:d<=u?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}))},5349:function(e,t,n){"use strict";function i(e){var t=e.service;return{service:t,provider:[]}}Object.defineProperty(t,"__esModule",{value:!0}),t.getProvider=i},5509:function(e,t,n){"use strict";n.r(t);var i=n("7465");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var r,a,s,c,u=n("f0c5"),l=Object(u["a"])(i["default"],r,a,!1,null,null,null,!1,s,c);t["default"]=l.exports},5530:function(e,t,n){"use strict";n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i=o(n("ade3"));function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"559a":function(e,t,n){"use strict";(function(e,i){function o(e,t,n){return e=e.$vm||e,e.__call_hook&&e.__call_hook(t,n)}function r(t,n,i){return"onError"!==n&&e.debug("App:".concat(n," have been invoked")+(i?" ".concat(JSON.stringify(i)):"")),t=t.$vm||t,t.__call_hook&&t.__call_hook(n,i)}function a(t,n,r){return"onLoad"===n&&(t.$mp.query=r,i.publishHandler("onPageLoad",t,t.$page.id)),"onShow"===n&&(t.$route.meta.isTabBar&&t.$route.params.detail&&setTimeout((function(){i.emit("onTabItemTap",t.$route.params.detail)}),0),i.publishHandler("onPageShow",t,t.$page.id)),"onPageScroll"!==n&&e.debug("".concat(t.$page.route,"[").concat(t.$page.id,"]:").concat(n," have been invoked")),o(t,n,r)}n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.callAppHook=r,t.callPageHook=a}).call(this,n("5a52")["default"],n("a9aa"))},5692:function(e,t,n){var i=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56b6":function(e,t,n){"use strict";n.r(t);var i=n("8347"),o=n("31ef");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"56ef":function(e,t,n){var i=n("d066"),o=n("241c"),r=n("7418"),a=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},5760:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scroller=r;var i=n("d138");function o(e,t,n){function i(e,t,n,o){if(!e||!e.cancelled){n(t);var r=t.done();r||e.cancelled||(e.id=requestAnimationFrame(i.bind(null,e,t,n,o))),r&&o&&o(t)}}function o(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}var r={id:0,cancelled:!1};return i(r,e,t,n),{cancel:o.bind(null,r),model:e}}function r(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new i.Scroll(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}r.prototype.onTouchStart=function(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()},r.prototype.onTouchMove=function(e,t){var n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()},r.prototype.onTouchEnd=function(e,t,n){var i=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var r=this._scroll._friction.x(100),a=r%this._itemSize,s=Math.abs(a)>this._itemSize/2?r-(this._itemSize-Math.abs(a)):r-a;s<=0&&s>=-this._extent&&this._scroll.setVelocityByEnd(s)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=o(this._scroll,(function(){var e=Date.now(),t=(e-i._scroll._startTime)/1e3,n=i._scroll.x(t);i._position=n,i.updatePosition();var o=i._scroll.dx(t);i._shouldDispatchScrollEvent&&e-i._lastTime>i._lastDelay&&(i.dispatchScroll(),i._lastDelay=Math.abs(2e3/o),i._lastTime=e)}),(function(){i._enableSnap&&(s<=0&&s>=-i._extent&&(i._position=s,i.updatePosition()),"function"===typeof i._options.onSnap&&i._options.onSnap(Math.floor(Math.abs(i._position)/i._itemSize))),i._shouldDispatchScrollEvent&&i.dispatchScroll(),i._scrolling=!1}))},r.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},r.prototype.snap=function(){var e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},r.prototype.scrollTo=function(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"===typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0),this._element.style.transition="transform "+(t||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(t||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},r.prototype.dispatchScroll=function(){if("function"===typeof this._options.onScroll&&Math.round(this._lastPos)!==Math.round(this._position)){this._lastPos=this._position;var e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}},r.prototype.update=function(e,t,n){var i=0,o=this._position;this._enableX?(i=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(i=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"===typeof e&&(this._position=-e),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),o!==this._position&&(this.dispatchScroll(),"function"===typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},r.prototype.updatePosition=function(){var e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e},r.prototype.isScrolling=function(){return this._scrolling||this._snapping}},5897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={methods:{beforeTransition:function(){},afterTransition:function(){}}};t.default=i},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a7":function(e){e.exports=JSON.parse('{"uni.app.quit":"Press back button again to exit","uni.async.error":"The connection timed out, click the screen to try again.","uni.showActionSheet.cancel":"Cancel","uni.showToast.unpaired":"Please note showToast must be paired with hideToast","uni.showLoading.unpaired":"Please note showLoading must be paired with hideLoading","uni.showModal.cancel":"Cancel","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancel","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Camera","uni.chooseVideo.cancel":"Cancel","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Camera","uni.chooseFile.notUserActivation":"File chooser dialog can only be shown with a user activation","uni.previewImage.cancel":"Cancel","uni.previewImage.button.save":"Save Image","uni.previewImage.save.success":"Saved successfully","uni.previewImage.save.fail":"Save failed","uni.setClipboardData.success":"Content copied","uni.scanCode.title":"Scan code","uni.scanCode.album":"Album","uni.scanCode.fail":"Recognition failure","uni.scanCode.flash.on":"Tap to turn light on","uni.scanCode.flash.off":"Tap to turn light off","uni.startSoterAuthentication.authContent":"Fingerprint recognition","uni.picker.done":"Done","uni.picker.cancel":"Cancel","uni.video.danmu":"Danmu","uni.video.volume":"Volume","uni.button.feedback.title":"feedback","uni.button.feedback.send":"send","uni.chooseLocation.search":"Find Place","uni.chooseLocation.cancel":"Cancel"}')},"58a8":function(e,t,n){var i=n("1d80"),o=n("5899"),r="["+o+"]",a=RegExp("^"+r+r+"*"),s=RegExp(r+r+"*$"),c=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"5a34":function(e,t,n){var i=n("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a52":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Array.prototype.unshift;function i(e){return n.call(e,"[system]"),e}function o(t){return function(){var n=!0;"debug"!==t||__uniConfig.debug||(n=!1),n&&e.console[t].apply(e.console,i(arguments))}}var r={log:o("log"),info:o("info"),warn:o("warn"),debug:o("debug"),error:o("error")};t.default=r}).call(this,n("c8ba"))},"5a8d":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasTabBar?n("uni-tabbar",{directives:[{name:"show",rawName:"v-show",value:e.showTabBar,expression:"showTabBar"}]},[n("div",{staticClass:"uni-tabbar",style:{"flex-direction":"vertical"===e.direction?"column":"row",backgroundColor:e.tabBarOptions.backgroundColor}},[e._l(e.tabBarOptions.list,(function(t,i){return[!1!==t.visible?n("div",{key:t.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){return e._switchTab(t,i)}}},[n("div",{staticClass:"uni-tabbar__bd"},[e.showIcon&&t.iconPath?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!t.text}},[n("img",{attrs:{src:e._getRealPath(e.selectedIndex===i?t.selectedIconPath:t.iconPath)}}),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v("\n "+e._s(t.badge)+"\n ")]):e._e()]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===i?e.tabBarOptions.selectedColor:e.tabBarOptions.color,fontSize:e.showIcon&&t.iconPath?"10px":"14px"}},[e._v("\n "+e._s(t.text)+"\n "),!t.redDot||e.showIcon&&t.iconPath?e._e():n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v("\n "+e._s(t.badge)+"\n ")])]):e._e()])]):e._e()]}))],2)]):e._e()},r=[]},"5abe":function(e,t){(function(){"use strict";if("object"===typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(e){var t=this._observationTargets.some((function(t){return t.element==e}));if(!t){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=e||"0px",n=t.split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return n[1]=n[1]||n[0],n[2]=n[2]||n[0],n[3]=n[3]||n[1],n},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(a(window,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(window,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():l();this._observationTargets.forEach((function(i){var r=i.element,a=u(r),s=this._rootContainsTarget(r),c=i.entry,l=e&&s&&this._computeTargetAndRootIntersection(r,t),d=i.entry=new n({time:o(),target:r,boundingClientRect:a,rootBounds:t,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){var i=u(t),o=i,r=f(t),a=!1;while(!a){var s=null,l=1==r.nodeType?window.getComputedStyle(r):{};if("none"==l.display)return;if(r==this.root||r==e?(a=!0,s=n):r!=e.body&&r!=e.documentElement&&"visible"!=l.overflow&&(s=u(r)),s&&(o=c(s,o),!o))break;r=f(r)}return o}},i.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,i=e.body;t={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==i)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==n||r==i||r<n!==r<i)return!0}},i.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},i.prototype._rootContainsTarget=function(t){return d(this.root||e,t)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=n}function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||l(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,i=this.intersectionRect,o=i.width*i.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=r(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function o(){return window.performance&&performance.now&&performance.now()}function r(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function a(e,t,n,i){"function"==typeof e.addEventListener?e.addEventListener(t,n,i||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,i){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,i||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e,t){var n=Math.max(e.top,t.top),i=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),r=Math.min(e.right,t.right),a=r-o,s=i-n;return a>=0&&s>=0&&{top:n,bottom:i,left:o,right:r,width:a,height:s}}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e,t){var n=t;while(n){if(n==e)return!0;n=f(n)}return!1}function f(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}})()},"5b80":function(e,t,n){"use strict";function i(e,t){if(t){if(0===t.indexOf("/"))return t}else{if(t=e,0===t.indexOf("/"))return t;var n=getCurrentPages();e=n.length?n[n.length-1].$page.route:""}if(0===t.indexOf("./"))return i(e,t.substr(2));for(var o=t.split("/"),r=o.length,a=0;a<r&&".."===o[a];a++);o.splice(0,a),t=o.join("/");var s=e.length>0?e.split("/"):[];return s.splice(s.length-a-1,a+1),"/"+s.concat(o).join("/")}n("99af"),n("c975"),n("a434"),n("ac1f"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"5bdf":function(e,t,n){"use strict";var i=n("4ea4");n("a9e3"),n("d3b7"),n("e25e"),n("ac1f"),n("25f0"),n("5319"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("987d"),r=i(n("5fe7")),a={add:function(e){var t,n,i;try{t=this.toString().split(".")[1].length}catch(o){t=0}try{n=e.toString().split(".")[1].length}catch(o){n=0}return i=Math.pow(10,Math.max(t,n)),(this*i+e*i)/i},sub:function(e){return this.add(-e)},mul:function(e){var t=0,n=this.toString(),i=e.toString();try{t+=n.split(".")[1].length}catch(o){}try{t+=i.split(".")[1].length}catch(o){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,t)},div:function(e){var t,n,i=0,o=0;try{i=this.toString().split(".")[1].length}catch(r){}try{o=e.toString().split(".")[1].length}catch(r){}return t=Number(this.toString().replace(".","")),n=Number(e.toString().replace(".","")),t/n*Math.pow(10,o-i)},mod:function(e){var t,n,i=0,o=0;try{i=this.toString().split(".")[1].length}catch(s){}try{o=e.toString().split(".")[1].length}catch(s){}var r=Math.pow(10,Math.abs(i-o));1==r&&(r=Math.pow(10,i)),t=(this*r).toString().split(".")[0],n=e*r;var a=(this*r).toString().split(".")[1]?(this*r).toString().split(".")[1]:"";return(t%n+a)/r}},s={name:"Slider",mixins:[o.emitter,o.listeners,r.default],props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},data:function(){return{sliderValue:Number(this.value)}},computed:{setBlockStyle:function(){return{width:this.blockSize+"px",height:this.blockSize+"px",marginLeft:-this.blockSize/2+"px",marginTop:-this.blockSize/2+"px",left:this._getValueWidth(),backgroundColor:this.blockColor}},setBgColor:function(){return{backgroundColor:this._getBgColor()}},setBlockBg:function(){return{left:this._getValueWidth()}},setActiveColor:function(){return{backgroundColor:this._getActiveColor(),width:this._getValueWidth()}}},watch:{value:function(e){this.sliderValue=Number(e)}},mounted:function(){this.touchtrack(this.$refs["uni-slider-handle"],"_onTrack")},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onUserChangedValue:function(e){var t=this.$refs["uni-slider-value"],n=getComputedStyle(t,null).marginLeft,i=t.offsetWidth;i+=parseInt(n);var o=this.$refs["uni-slider"],r=o.offsetWidth-(this.showValue?i:0),a=o.getBoundingClientRect().left,s=(e.x-a)*(this.max-this.min)/r+Number(this.min);this.sliderValue=this._filterValue(s)},_filterValue:function(e){var t=Number(this.max),n=Number(this.min);return e<n?n:e>t?t:a.mul.call(Math.round((e-n)/this.step),this.step)+n},_getValueWidth:function(){return 100*(this.sliderValue-this.min)/(this.max-this.min)+"%"},_getBgColor:function(){return"#e9e9e9"!==this.backgroundColor?this.backgroundColor:"#007aff"!==this.color?this.color:"#007aff"},_getActiveColor:function(){return"#007aff"!==this.activeColor?this.activeColor:"#e9e9e9"!==this.selectedColor?this.selectedColor:"#e9e9e9"},_onTrack:function(e){if(!this.disabled)return"move"===e.detail.state?(this._onUserChangedValue({x:e.detail.x}),this.$trigger("changing",e,{value:this.sliderValue}),!1):"end"===e.detail.state&&this.$trigger("change",e,{value:this.sliderValue})},_onClick:function(e){this.disabled||(this._onUserChangedValue(e),this.$trigger("change",e,{value:this.sliderValue}))},_resetFormData:function(){this.sliderValue=this.min},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.sliderValue,e.key=this.name),e}}};t.default=s},"5c5c":function(e,t,n){"use strict";n("c975"),n("a9e3"),n("b64b"),Object.defineProperty(t,"__esModule",{value:!0}),t.setStorage=r,t.setStorageSync=a,t.getStorage=s,t.getStorageSync=c,t.removeStorage=u,t.removeStorageSync=l,t.clearStorage=d,t.clearStorageSync=f,t.getStorageInfo=p,t.getStorageInfoSync=h;var i="uni-storage-keys";function o(e){var t=["object","string","number","boolean","undefined"];try{var n="string"===typeof e?JSON.parse(e):e,i=n.type;if(t.indexOf(i)>=0){var o=Object.keys(n);if(2===o.length&&"data"in n){if(typeof n.data===i)return n.data;if("object"===i&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===o.length)return""}}catch(r){}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,i=typeof n,o="string"===i?n:JSON.stringify({type:i,data:n});try{localStorage.setItem(t,o)}catch(r){return{errMsg:"setStorage:fail ".concat(r)}}return{errMsg:"setStorage:ok"}}function a(e,t){r({key:e,data:t})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=localStorage&&localStorage.getItem(t);if("string"!==typeof n)return{data:"",errMsg:"getStorage:fail"};var i=n;try{var r=JSON.parse(n),a=o(r);void 0!==a&&(i=a)}catch(s){}return{data:i,errMsg:"getStorage:ok"}}function c(e){var t=s({key:e});return t.data}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key;return localStorage&&localStorage.removeItem(t),{errMsg:"removeStorage:ok"}}function l(e){u({key:e})}function d(){return localStorage&&localStorage.clear(),{errMsg:"clearStorage:ok"}}function f(){d()}function p(){for(var e=localStorage&&localStorage.length||0,t=[],n=0,o=0;o<e;o++){var r=localStorage.key(o),a=localStorage.getItem(r);n+=r.length+a.length,r!==i&&t.push(r)}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE,errMsg:"getStorageInfo:ok"}}function h(){var e=p();return delete e.errMsg,e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"5e13":function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4de4"),n("4160"),n("a434"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("d4ec")),r=i(n("bee2")),a=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.id=t,this.listener={},this.emitCache={},n&&Object.keys(n).forEach((function(e){i.on(e,n[e])}))}return(0,r.default)(e,[{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=this.listener[e];if(!o)return(this.emitCache[e]||(this.emitCache[e]=[])).push(n);o.forEach((function(e){e.fn.apply(e.fn,n)})),this.listener[e]=o.filter((function(e){return"once"!==e.type}))}},{key:"on",value:function(e,t){this._addListener(e,"on",t),this._clearCache(e)}},{key:"once",value:function(e,t){this._addListener(e,"once",t),this._clearCache(e)}},{key:"off",value:function(e,t){var n=this.listener[e];if(n)if(t)for(var i=0;i<n.length;)n[i].fn===t&&(n.splice(i,1),i--),i++;else delete this.listener[e]}},{key:"_clearCache",value:function(e){var t=this.emitCache[e];if(t)for(;t.length>0;)this.emit.apply(this,[e].concat(t.shift()))}},{key:"_addListener",value:function(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}]),e}();t.default=a},"5e7a":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("4160"),n("c975"),n("a434"),n("b64b"),n("ac1f"),n("466d"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.downloadFile=u;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ade3")),s=n("b286"),c=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"_xhr",void 0),(0,a.default)(this,"_callbacks",[]),this._xhr=t}return(0,r.default)(e,[{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"abort",value:function(){this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function u(t,n){var i,o=t.url,r=t.header,a=t.timeout,u=void 0===a?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:a,l=e,d=l.invokeCallbackHandler,f=new XMLHttpRequest,p=new c(f);return f.open("GET",o,!0),Object.keys(r).forEach((function(e){f.setRequestHeader(e,r[e])})),f.responseType="blob",f.onload=function(){clearTimeout(i);var e,t=f.status,r=this.response,a=f.getResponseHeader("content-disposition");if(a){var c=a.match(/filename="?(\S+)"?\b/);c&&(e=c[1])}r.name=e||(0,s.getFileName)(o),d(n,{errMsg:"downloadFile:ok",statusCode:t,tempFilePath:(0,s.fileToUrl)(r)})},f.onabort=function(){clearTimeout(i),d(n,{errMsg:"downloadFile:fail abort"})},f.onerror=function(){clearTimeout(i),d(n,{errMsg:"downloadFile:fail"})},f.onprogress=function(e){p._callbacks.forEach((function(t){var n=e.loaded,i=e.total,o=Math.round(n/i*100);t({progress:o,totalBytesWritten:n,totalBytesExpectedToWrite:i})}))},f.send(),i=setTimeout((function(){f.onprogress=f.onload=f.onabort=f.onerror=null,p.abort(),d(n,{errMsg:"downloadFile:fail timeout"})}),u),p}}).call(this,n("a9aa"))},"5eee":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.$emit=t.$off=t.$once=t.$on=void 0;var i=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}];t.$on=i;var o=i;t.$once=o;var r=[{name:"event",type:[String,Array]},{name:"callback",type:Function}];t.$off=r;var a=[{name:"event",type:String,required:!0}];t.$emit=a},"5f13":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var i,o="__DC_STAT_UUID",r=window.localStorage||window.sessionStorage||{};function a(){if(i=i||r[o],!i){i=Date.now()+""+Math.floor(1e7*Math.random());try{r[o]=i}catch(e){}}return i}},"5f96":function(e,t,n){"use strict";var i=n("ebb5"),o=i.aTypedArray,r=i.exportTypedArrayMethod,a=[].join;r("join",(function(e){return a.apply(o(this),arguments)}))},"5fb2":function(e,t,n){"use strict";var i=2147483647,o=36,r=1,a=26,s=38,c=700,u=72,l=128,d="-",f=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,h="Overflow: input needs wider integers to process",g=o-r,m=Math.floor,v=String.fromCharCode,_=function(e){var t=[],n=0,i=e.length;while(n<i){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){var r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t},y=function(e){return e+22+75*(e<26)},b=function(e,t,n){var i=0;for(e=n?m(e/c):e>>1,e+=m(e/t);e>g*a>>1;i+=o)e=m(e/g);return m(i+(g+1)*e/(e+s))},M=function(e){var t=[];e=_(e);var n,s,c=e.length,f=l,p=0,g=u;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(v(s));var M=t.length,S=M;M&&t.push(d);while(S<c){var C=i;for(n=0;n<e.length;n++)s=e[n],s>=f&&s<C&&(C=s);var k=S+1;if(C-f>m((i-p)/k))throw RangeError(h);for(p+=(C-f)*k,f=C,n=0;n<e.length;n++){if(s=e[n],s<f&&++p>i)throw RangeError(h);if(s==f){for(var T=p,I=o;;I+=o){var w=I<=g?r:I>=g+a?a:I-g;if(T<w)break;var A=T-w,E=o-w;t.push(v(y(w+A%E))),T=m(A/E)}t.push(v(y(T))),g=b(p,k,S==M),p=0,++S}}++p,++f}return t.join("")};e.exports=function(e){var t,n,i=[],o=e.toLowerCase().replace(p,".").split(".");for(t=0;t<o.length;t++)n=o[t],i.push(f.test(n)?"xn--"+M(n):n);return i.join(".")}},"5fe7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e,t,n,i){e.addEventListener(t,(function(e){"function"===typeof n&&!1===n(e)&&(e.preventDefault(),e.stopPropagation())}),{capture:i,passive:!1})},o={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(e,t,n){var o,r,a,s=this,c=this,u=0,l=0,d=0,f=0,p=function(e,n,i,o){if(!1===c[t]({target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:i,y:o,dx:i-u,dy:o-l,ddx:i-d,ddy:o-f,timeStamp:e.timeStamp}}))return!1},h=null;i(e,"touchstart",(function(e){if(r=!0,1===e.touches.length&&!h)return h=e,u=d=e.touches[0].pageX,l=f=e.touches[0].pageY,p(e,"start",u,l)})),i(e,"mousedown",(function(e){if(a=!0,!r&&!h)return h=e,u=d=e.pageX,l=f=e.pageY,p(e,"start",u,l)})),i(e,"touchmove",(function(e){if(1===e.touches.length&&h){var t=p(e,"move",e.touches[0].pageX,e.touches[0].pageY);return d=e.touches[0].pageX,f=e.touches[0].pageY,t}}));var g=this.__clickEventListener=function(e){e.preventDefault(),e.stopPropagation()},m=this.__mouseMoveEventListener=function(e){if(!r&&a&&h){!o&&(Math.abs(d-u)>2||Math.abs(f-l)>2)&&(document.addEventListener("click",g,!0),o=!0);var t=p(e,"move",e.pageX,e.pageY);return d=e.pageX,f=e.pageY,t}};document.addEventListener("mousemove",m),i(e,"touchend",(function(e){if(0===e.touches.length&&h)return r=!1,h=null,p(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));var v=this.__mouseUpEventListener=function(e){if(a=!1,!r&&h)return o&&setTimeout((function(){document.removeEventListener("click",s.__clickEventListener,!0),o=!1}),0),h=null,p(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",v),i(e,"touchcancel",(function(e){if(h){r=!1;var t=h;return h=null,p(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}}};t.default=o},6005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=o(n("6b75"));function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e))return(0,i.default)(e)}},6062:function(e,t,n){"use strict";var i=n("6d61"),o=n("6566");e.exports=i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"60bd":function(e,t,n){"use strict";var i=n("da84"),o=n("ebb5"),r=n("e260"),a=n("b622"),s=a("iterator"),c=i.Uint8Array,u=r.values,l=r.keys,d=r.entries,f=o.aTypedArray,p=o.exportTypedArrayMethod,h=c&&c.prototype[s],g=!!h&&("values"==h.name||void 0==h.name),m=function(){return u.call(f(this))};p("entries",(function(){return d.call(f(this))})),p("keys",(function(){return l.call(f(this))})),p("values",m,!g),p(s,m,!g)},"60da":function(e,t,n){"use strict";var i=n("83ab"),o=n("d039"),r=n("df75"),a=n("7418"),s=n("d1e7"),c=n("7b0b"),u=n("44ad"),l=Object.assign,d=Object.defineProperty;e.exports=!l||o((function(){if(i&&1!==l({b:1},l(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||r(l({},t)).join("")!=o}))?function(e,t){var n=c(e),o=arguments.length,l=1,d=a.f,f=s.f;while(o>l){var p,h=u(arguments[l++]),g=d?r(h).concat(d(h)):r(h),m=g.length,v=0;while(m>v)p=g[v++],i&&!f.call(h,p)||(n[p]=h[p])}return n}:l},"60f6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapperMPEvent=o,t.mergeTitleNView=r;var i=n("db6a");function o(e){return e.mp=Object.assign({"@warning":"mp is deprecated"},e),e._processed=!0,e}function r(e,t){return(0,i.isPlainObject)(t)&&((0,i.hasOwn)(t,"backgroundColor")&&(e.backgroundColor=t.backgroundColor),(0,i.hasOwn)(t,"buttons")&&(e.buttons=t.buttons),(0,i.hasOwn)(t,"titleColor")&&(e.textColor=t.titleColor),(0,i.hasOwn)(t,"titleText")&&(e.titleText=t.titleText),(0,i.hasOwn)(t,"titleSize")&&(e.titleSize=t.titleSize),(0,i.hasOwn)(t,"type")&&(e.type=t.type),(0,i.hasOwn)(t,"searchInput")&&"object"===typeof t.searchInput&&(e.searchInput=Object.assign({autoFocus:!1,align:"center",color:"#000000",backgroundColor:"rgba(255,255,255,0.5)",borderRadius:"0px",placeholder:"",placeholderColor:"#CCCCCC",disabled:!1},t.searchInput))),e}},6180:function(e,t,n){"use strict";n("7db0"),n("caad"),n("b64b"),n("2532"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted:function(){var e=this,t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},n=function(n){if(!e.disable){var i=Object.keys(t).find((function(e){var i=n.key,o=t[e];return o===i||Array.isArray(o)&&o.includes(i)}));i&&setTimeout((function(){e.$emit(i,n)}),0)}};document.addEventListener("keyup",n),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("keyup",n)}))},render:function(){return null}};t.default=i},6186:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.uploadFile=void 0;var o=i(n("f1ca")),r={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator:function(e,t){e&&(t.filePath=(0,o.default)(e))}},name:{type:String},header:{type:Object,validator:function(e,t){t.header=e||{}}},formData:{type:Object,validator:function(e,t){t.formData=e||{}}}};t.uploadFile=r},"621a":function(e,t,n){"use strict";var i=n("da84"),o=n("83ab"),r=n("a981"),a=n("9112"),s=n("e2cc"),c=n("d039"),u=n("19aa"),l=n("a691"),d=n("50c4"),f=n("0b25"),p=n("77a7"),h=n("e163"),g=n("d2bb"),m=n("241c").f,v=n("9bf2").f,_=n("81d5"),y=n("d44e"),b=n("69f3"),M=b.get,S=b.set,C="ArrayBuffer",k="DataView",T="prototype",I="Wrong length",w="Wrong index",A=i[C],E=A,O=i[k],x=O&&O[T],D=Object.prototype,N=i.RangeError,R=p.pack,L=p.unpack,P=function(e){return[255&e]},U=function(e){return[255&e,e>>8&255]},G=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},F=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return R(e,23,4)},q=function(e){return R(e,52,8)},j=function(e,t){v(e[T],t,{get:function(){return M(this)[t]}})},$=function(e,t,n,i){var o=f(n),r=M(e);if(o+t>r.byteLength)throw N(w);var a=M(r.buffer).bytes,s=o+r.byteOffset,c=a.slice(s,s+t);return i?c:c.reverse()},H=function(e,t,n,i,o,r){var a=f(n),s=M(e);if(a+t>s.byteLength)throw N(w);for(var c=M(s.buffer).bytes,u=a+s.byteOffset,l=i(+o),d=0;d<t;d++)c[u+d]=l[r?d:t-d-1]};if(r){if(!c((function(){A(1)}))||!c((function(){new A(-1)}))||c((function(){return new A,new A(1.5),new A(NaN),A.name!=C}))){E=function(e){return u(this,E),new A(f(e))};for(var V,z=E[T]=A[T],K=m(A),W=0;K.length>W;)(V=K[W++])in E||a(E,V,A[V]);z.constructor=E}g&&h(x)!==D&&g(x,D);var Y=new O(new E(2)),X=x.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||s(x,{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},{unsafe:!0})}else E=function(e){u(this,E,C);var t=f(e);S(this,{bytes:_.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},O=function(e,t,n){u(this,O,k),u(e,E,k);var i=M(e).byteLength,r=l(t);if(r<0||r>i)throw N("Wrong offset");if(n=void 0===n?i-r:d(n),r+n>i)throw N(I);S(this,{buffer:e,byteLength:n,byteOffset:r}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=r)},o&&(j(E,"byteLength"),j(O,"buffer"),j(O,"byteLength"),j(O,"byteOffset")),s(O[T],{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return F($(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return F($(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return L($(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return L($(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){H(this,1,e,P,t)},setUint8:function(e,t){H(this,1,e,P,t)},setInt16:function(e,t){H(this,2,e,U,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){H(this,2,e,U,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){H(this,4,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){H(this,4,e,G,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){H(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){H(this,8,e,q,t,arguments.length>2?arguments[2]:void 0)}});y(E,C),y(O,k),e.exports={ArrayBuffer:E,DataView:O}},"62d9":function(e,t,n){"use strict";(function(e,i){var o=n("4ea4");n("c740"),n("4160"),n("c975"),n("a434"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.parseStyleText=d,t.createComponentDescriptor=p,t.ComponentDescriptor=void 0;var r=o(n("d4ec")),a=o(n("bee2")),s=n("db6a"),c=/^\s+|\s+$/g,u=/\s+/;function l(e,t,n){var i=[],o=function(e){return o=n?function(e){return!t.contains(e)}:function(e){return t.contains(e)},o(e)};return e.forEach((function(e){e=e.replace(c,""),o(e)&&i.push(e)})),i}function d(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}var f=function(){function t(e){(0,r.default)(this,t),this.$vm=e,Object.defineProperty(this,"$el",{get:function(){return e.$el}})}return(0,a.default)(t,[{key:"selectComponent",value:function(e){if(this.$el&&e){var t=this.$el.querySelector(e),n=t.__vue__||t;return n.$getComponentDescriptor&&n.$getComponentDescriptor(n,!1)}}},{key:"selectAllComponents",value:function(e){if(!this.$el||!e)return[];for(var t=[],n=this.$el.querySelectorAll(e),i=0;i<n.length;i++){var o=n[i],r=o.__vue__||o;r.$getComponentDescriptor&&t.push(r.$getComponentDescriptor(r,!1))}return t}},{key:"setStyle",value:function(e){return this.$el&&e?("string"===typeof e&&(e=d(e)),(0,s.isPlainObject)(e)&&(this.$el.__wxsStyle=e,this.$vm.$forceUpdate()),this):this}},{key:"addClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.$el||!t.length)return this;var i=l(t,this.$el.classList,!0);if(i.length){var o=this.$el.__wxsAddClass||"";this.$el.__wxsAddClass=o+(o?" ":"")+i.join(" "),this.$vm.$forceUpdate()}return this}},{key:"removeClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!this.$el||!t.length)return this;var i=this.$el.classList,o=this.$el.__wxsAddClass?this.$el.__wxsAddClass.split(u):[],r=l(t,i,!1);if(r.length){var a=[];r.forEach((function(e){var t=o.findIndex((function(t){return t===e}));-1!==t&&o.splice(t,1),a.push(e)})),this.$el.__wxsRemoveClass=a,this.$el.__wxsAddClass=o.join(" "),this.$vm.$forceUpdate()}return this}},{key:"hasClass",value:function(e){return this.$el&&this.$el.classList.contains(e)}},{key:"getComputedStyle",value:function(){return this.$el?window.getComputedStyle(this.$el):{}}},{key:"getDataset",value:function(){return this.$el&&this.$el.dataset}},{key:"callMethod",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t in this.$vm?this.$vm[t](JSON.parse(JSON.stringify(n))):this.$vm._$id&&e.publishHandler("onWxsInvokeCallMethod",{cid:this.$vm._$id,method:t,args:n})}},{key:"requestAnimationFrame",value:function(e){return i.requestAnimationFrame(e),this}},{key:"getState",value:function(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}},{key:"triggerEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$vm.$emit(e,t),this}},{key:"setTimeout",value:function(e,t){return window.setTimeout(e,t)}},{key:"clearTimeout",value:function(e){return window.clearTimeout(e)}},{key:"getBoundingClientRect",value:function(){return this.$el.getBoundingClientRect()}}]),t}();function p(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&e&&e.$options.name&&0===e.$options.name.indexOf("VUni")&&(e=e.$parent),e)return"__wxsComponentDescriptor"in e||(e.__wxsComponentDescriptor=new f(e)),e.__wxsComponentDescriptor}t.ComponentDescriptor=f}).call(this,n("c5c3"),n("c8ba"))},"631a":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.tabBar=void 0;var o=i(n("e143")),r=n("81e8");__uniConfig.tabBar=o.default.observable((0,r.initTabBarI18n)(__uniConfig.tabBar||{}));var a=__uniConfig.tabBar;t.tabBar=a},"633d":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.setNavigationBarColor=r,t.showNavigationBarLoading=a,t.hideNavigationBarLoading=s,t.setNavigationBarTitle=c;var i=n("c15f");function o(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(0,i.getPageHolder)(n.__page__);if(o)switch(t){case"setNavigationBarColor":var r=n.frontColor,a=n.backgroundColor,s=n.animation,c=s.duration,u=s.timingFunc;r&&(o.navigationBar.textColor="#000000"===r?"black":"white"),a&&(o.navigationBar.backgroundColor=a),e.emit("onNavigationBarChange",{textColor:"#000000"===r?"#000":"#fff",backgroundColor:o.navigationBar.backgroundColor}),o.navigationBar.duration=c+"ms",o.navigationBar.timingFunc=u;break;case"showNavigationBarLoading":o.navigationBar.loading=!0;break;case"hideNavigationBarLoading":o.navigationBar.loading=!1;break;case"setNavigationBarTitle":var l=n.title;o.navigationBar.titleText=l,(0,i.isCurrentPage)(o)&&(document.title=l),e.emit("onNavigationBarChange",{titleText:l});break}return{}}function r(e){return o("setNavigationBarColor",e)}function a(e){return o("showNavigationBarLoading",e)}function s(e){return o("hideNavigationBarLoading",e)}function c(e){return o("setNavigationBarTitle",e)}}).call(this,n("a9aa"))},"649e":function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").some,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("some",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},"64b2":function(e,t,n){"use strict";function i(e,t){for(var n=this.$children,o=n.length,r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];for(var c=0;c<o;c++){var u=n[c],l=u.$options.name&&u.$options.name.substr(4);if(~e.indexOf(l))return u.$emit.apply(u,[t].concat(a)),!1;if(!1===i.apply(u,[e,t].concat([a])))return!1}}n("99af"),n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={methods:{$dispatch:function(e,t){"string"===typeof e&&(e=[e]);var n=this.$parent||this.$root,i=n.$options.name&&n.$options.name.substr(4);while(n&&(!i||!~e.indexOf(i)))n=n.$parent,n&&(i=n.$options.name&&n.$options.name.substr(4));if(n){for(var o=arguments.length,r=new Array(o>2?o-2:0),a=2;a<o;a++)r[a-2]=arguments[a];n.$emit.apply(n,[t].concat(r))}},$broadcast:function(e,t){"string"===typeof e&&(e=[e]);for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];i.apply(this,[e,t].concat(o))}}};t.default=o},"64d4":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-input",e._g({},e.$listeners),[n("div",{ref:"wrapper",staticClass:"uni-input-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.composing||e.valueSync.length||"-"===e.cachedValue),expression:"!(composing || valueSync.length || cachedValue === '-')"}],ref:"placeholder",staticClass:"uni-input-placeholder",class:e.placeholderClass,style:e.placeholderStyle,domProps:{textContent:e._s(e.placeholder)}}),"checkbox"!==e.inputType||e.disabled&&e.fixColor?"radio"!==e.inputType||e.disabled&&e.fixColor?e.disabled&&e.fixColor?e._e():n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e._step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,type:e.inputType},domProps:{value:e.valueSync},on:{change:function(e){e.stopPropagation()},focus:e._onFocus,blur:e._onBlur,input:[function(t){t.target.composing||(e.valueSync=t.target.value)},function(t){return t.stopPropagation(),e._onInput(t)}],compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e._step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,type:"radio"},domProps:{checked:e._q(e.valueSync,null)},on:{change:[function(t){e.valueSync=null},function(e){e.stopPropagation()}],focus:e._onFocus,blur:e._onBlur,input:function(t){return t.stopPropagation(),e._onInput(t)},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.valueSync,expression:"valueSync"},{name:"keyboard",rawName:"v-keyboard"},{name:"field",rawName:"v-field"}],ref:"input",staticClass:"uni-input-input",attrs:{disabled:e.disabled,maxlength:e.maxlength,step:e._step,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":null,autocomplete:e.autocomplete,type:"checkbox"},domProps:{checked:Array.isArray(e.valueSync)?e._i(e.valueSync,null)>-1:e.valueSync},on:{change:[function(t){var n=e.valueSync,i=t.target,o=!!i.checked;if(Array.isArray(n)){var r=null,a=e._i(n,r);i.checked?a<0&&(e.valueSync=n.concat([r])):a>-1&&(e.valueSync=n.slice(0,a).concat(n.slice(a+1)))}else e.valueSync=o},function(e){e.stopPropagation()}],focus:e._onFocus,blur:e._onBlur,input:function(t){return t.stopPropagation(),e._onInput(t)},compositionstart:function(t){return t.stopPropagation(),e._onComposition(t)},compositionend:function(t){return t.stopPropagation(),e._onComposition(t)},compositionupdate:function(t){return t.stopPropagation(),e._onComposition(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e._onKeyup(t))}}}),e.disabled&&e.fixColor?n("input",{ref:"input",staticClass:"uni-input-input",attrs:{tabindex:"-1",readonly:e.disabled,type:e.inputType,maxlength:e.maxlength,step:e._step},domProps:{value:e.valueSync},on:{focus:function(e){return e.target.blur()}}}):e._e()])])},r=[]},"64fe":function(e,t,n){"use strict";function i(){}function o(e){e.disable}Object.defineProperty(t,"__esModule",{value:!0}),t.initScrollBounce=i,t.disableScrollBounce=o},6504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openDocument=void 0;var i={filePath:{type:String,required:!0},fileType:{type:String}};t.openDocument=i},6536:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-movable-area",{staticClass:"image-view-area",nativeOn:{touchstart:function(t){return e.onTouchStart(t)},touchmove:function(t){return e.checkDirection(t)},touchend:function(t){return e.onTouchEnd(t)}}},[n("v-uni-movable-view",{staticClass:"image-view-view",attrs:{direction:e.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4"},on:{scale:e.onScale}},[n("img",{staticClass:"image-view-img",attrs:{src:e.src},on:{load:e.onImgLoad}})])],1)},r=[]},6547:function(e,t,n){var i=n("a691"),o=n("1d80"),r=function(e){return function(t,n){var r,a,s=String(o(t)),c=i(n),u=s.length;return c<0||c>=u?e?"":void 0:(r=s.charCodeAt(c),r<55296||r>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):r:e?s.slice(c,c+2):a-56320+(r-55296<<10)+65536)}};e.exports={codeAt:r(!1),charAt:r(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,o=n("7c73"),r=n("e2cc"),a=n("0366"),s=n("19aa"),c=n("2266"),u=n("7dd0"),l=n("2626"),d=n("83ab"),f=n("f183").fastKey,p=n("69f3"),h=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,i){s(e,l,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&c(i,e[u],e,n)})),p=g(t),m=function(e,t,n){var i,o,r=p(e),a=v(e,t);return a?a.value=n:(r.last=a={index:o=f(t,!0),key:t,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=a),i&&(i.next=a),d?r.size++:e.size++,"F"!==o&&(r.index[o]=a)),e},v=function(e,t){var n,i=p(e),o=f(t);if("F"!==o)return i.index[o];for(n=i.first;n;n=n.next)if(n.key==t)return n};return r(l.prototype,{clear:function(){var e=this,t=p(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=p(t),i=v(t,e);if(i){var o=i.next,r=i.previous;delete n.index[i.index],i.removed=!0,r&&(r.next=o),o&&(o.previous=r),n.first==i&&(n.first=o),n.last==i&&(n.last=r),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=p(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),r(l.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&i(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,t,n){var i=t+" Iterator",o=g(t),r=g(i);u(e,t,(function(e,t){h(this,{type:i,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=r(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},"65f0":function(e,t,n){var i=n("861d"),o=n("e8b5"),r=n("b622"),a=r("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var i,o,r,a=n("7f9a"),s=n("da84"),c=n("861d"),u=n("9112"),l=n("5135"),d=n("f772"),f=n("d012"),p=s.WeakMap,h=function(e){return r(e)?o(e):i(e,{})},g=function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var m=new p,v=m.get,_=m.has,y=m.set;i=function(e,t){return y.call(m,e,t),t},o=function(e){return v.call(m,e)||{}},r=function(e){return _.call(m,e)}}else{var b=d("state");f[b]=!0,i=function(e,t){return u(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},r=function(e){return l(e,b)}}e.exports={set:i,get:o,has:r,enforce:h,getterFor:g}},"6a60":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-radio-group",e._g({},e.$listeners),[e._t("default")],2)},r=[]},"6ae0":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowInfo=a;var o=i(n("4fcb")),r=i(n("d8c8"));function a(){var e=window.screen,t=window.devicePixelRatio,n=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,i=n&&90===Math.abs(window.orientation),a=n?Math[i?"max":"min"](e.width,e.height):e.width,s=n?Math[i?"min":"max"](e.height,e.width):e.height,c=Math.min(window.innerWidth,document.documentElement.clientWidth,a)||a,u=window.innerHeight,l=r.default.top,d={left:r.default.left,right:c-r.default.right,top:r.default.top,bottom:u-r.default.bottom,width:c-r.default.left-r.default.right,height:u-r.default.top-r.default.bottom},f=(0,o.default)(),p=f.top,h=f.bottom;return u-=p,u-=h,{windowTop:p,windowBottom:h,windowWidth:c,windowHeight:u,pixelRatio:t,screenWidth:a,screenHeight:s,statusBarHeight:l,safeArea:d,safeAreaInsets:{top:r.default.top,right:r.default.right,bottom:r.default.bottom,left:r.default.left},screenTop:s-u}}},"6b69":function(e,t,n){"use strict";(function(e){n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("db6a"),o={mounted:function(){var e=this;this._toggleListeners("subscribe",this.id),this.$watch("id",(function(t,n){e._toggleListeners("unsubscribe",n,!0),e._toggleListeners("subscribe",t,!0)}))},beforeDestroy:function(){this._toggleListeners("unsubscribe",this.id),this._contextId&&this._toggleListeners("unsubscribe",this._contextId)},methods:{_toggleListeners:function(t,n,o){o&&!n||(0,i.isFn)(this._handleSubscribe)&&e[t](this.$page.id+"-"+this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase()+"-"+n,this._handleSubscribe)},_getContextInfo:function(){var e="context-".concat(this._uid);return this._contextId||(this._toggleListeners("subscribe",e),this._contextId=e),{name:this.$options.name.replace(/VUni([A-Z])/,"$1").toLowerCase(),id:e,page:this.$page.id}}}};t.default=o}).call(this,n("c5c3"))},"6b75":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"6b87":function(e,t,n){"use strict";n("4160"),n("c975"),n("a434"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n("db6a"),r=!o.supportsPassive||{passive:!0,capture:!0},a=[],s=0;function c(e){a.forEach((function(t){return t.userInteract=e}))}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i){var t=["touchstart","touchmove","touchend","mousedown","mouseup"];t.forEach((function(e){document.addEventListener(e,(function(){!s&&c(!0),s++,setTimeout((function(){!--s&&c(!1)}),0)}),r)})),i=!0}a.push(e)}function l(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)}var d={data:function(){return{userInteract:!1}},mounted:function(){u(this)},beforeDestroy:function(){l(this)},addInteractListener:u,getStatus:function(){return!!s}};t.default=d},"6c57":function(e,t,n){var i=n("23e7"),o=n("da84");i({global:!0},{globalThis:o})},"6ca7":function(e,t,n){"use strict";n.r(t);var i=n("20b1"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"6cbd":function(e,t,n){"use strict";n("99af"),n("caad"),n("c975"),n("a9e3"),n("acd8"),n("ac1f"),n("2532"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("987d"),o="(prefers-color-scheme: dark)",r=["done","go","next","search","send"],a={name:"Textarea",mixins:[i.field],props:{name:{type:String,default:""},maxlength:{type:[Number,String],default:140},placeholder:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},placeholderClass:{type:String,default:"textarea-placeholder"},placeholderStyle:{type:String,default:""},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:function(e){return r.concat("return").includes(e)}}},data:function(){return{valueComposition:"",height:0,focusChangeSource:"",fixMargin:0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(o).media!==o}},computed:{maxlengthNumber:function(){var e=Number(this.maxlength);return isNaN(e)?140:e},valueCompute:function(){return(this.composing?this.valueComposition:this.valueSync).split("\n")},isDone:function(){return r.includes(this.confirmType)}},watch:{focus:function(e){e&&(this.focusChangeSource="focus")},height:function(e){var t=parseFloat(getComputedStyle(this.$el).lineHeight);isNaN(t)&&(t=this.$refs.line.offsetHeight);var n=Math.round(e/t);this.$trigger("linechange",{},{height:e,heightRpx:750/window.innerWidth*e,lineCount:n}),this.autoHeight&&(this.$el.style.height="auto",this.$refs.wrapper.style.height=this.height+"px")}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},mounted:function(){this._resize({height:this.$refs.sensor.$el.offsetHeight});var e=this;while(e){var t=e.$options._scopeId;t&&this.$refs.placeholder.setAttribute(t,""),e=e.$parent}},beforeDestroy:function(){this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onKeyDownEnter:function(e){this.isDone&&e.preventDefault()},_onKeyUpEnter:function(e){this.isDone&&(this._confirm(e),!this.confirmHold&&this.$refs.textarea.blur())},_onComposition:function(e){switch(e.type){case"compositionstart":this.composing=!0;break;case"compositionend":this.composing&&(this.composing=!1,this._onInput(e));break}!this.ignoreCompositionEvent&&this.$trigger(e.type,e,{data:e.data})},_confirm:function(e){this.$trigger("confirm",e,{value:this.valueSync})},_linechange:function(e){this.$trigger("linechange",e,{value:this.valueSync})},_onTouchstart:function(){this.focusChangeSource="touch"},_resize:function(e){var t=e.height;this.height=t},_onInput:function(e,t){this.composing&&this.ignoreCompositionEvent?this.valueComposition=e.target.value:(this.ignoreCompositionEvent||(this.valueSync=this.$refs.textarea.value),this.$triggerInput(e,{value:this.valueSync,cursor:this.$refs.textarea.selectionEnd},t))},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){this.valueSync=""}}};t.default=a},"6d61":function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("94ca"),a=n("6eeb"),s=n("f183"),c=n("2266"),u=n("19aa"),l=n("861d"),d=n("d039"),f=n("1c7e"),p=n("d44e"),h=n("7156");e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",_=o[e],y=_&&_.prototype,b=_,M={},S=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(r(e,"function"!=typeof _||!(m||y.forEach&&!d((function(){(new _).entries().next()})))))b=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(r(e,!0)){var C=new b,k=C[v](m?{}:-0,1)!=C,T=d((function(){C.has(1)})),I=f((function(e){new _(e)})),w=!m&&d((function(){var e=new _,t=5;while(t--)e[v](t,t);return!e.has(-0)}));I||(b=t((function(t,n){u(t,b,e);var i=h(new _,t,b);return void 0!=n&&c(n,i[v],i,g),i})),b.prototype=y,y.constructor=b),(T||w)&&(S("delete"),S("has"),g&&S("get")),(w||k)&&S(v),m&&y.clear&&delete y.clear}return M[e]=b,i({global:!0,forced:b!=_},M),p(b,e),m||n.setStrong(b,e,g),b}},"6eeb":function(e,t,n){var i=n("da84"),o=n("9112"),r=n("5135"),a=n("ce4e"),s=n("8925"),c=n("69f3"),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||r(n,"name")||o(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==i?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:o(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"6f53":function(e,t,n){var i=n("83ab"),o=n("df75"),r=n("fc6a"),a=n("d1e7").f,s=function(e){return function(t){var n,s=r(t),c=o(s),u=c.length,l=0,d=[];while(u>l)n=c[l++],i&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},7037:function(e,t,n){function i(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=i=function(e){return typeof e}:e.exports=i=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=i},7039:function(e,t,n){var i=n("23e7"),o=n("d039"),r=n("057f").f,a=o((function(){return!Object.getOwnPropertyNames(1)}));i({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:r})},7156:function(e,t,n){var i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var r,a;return o&&"function"==typeof(r=t.constructor)&&r!==n&&i(a=r.prototype)&&a!==n.prototype&&o(e,a),e}},"72f7":function(e,t,n){"use strict";var i=n("ebb5").exportTypedArrayMethod,o=n("d039"),r=n("da84"),a=r.Uint8Array,s=a&&a.prototype||{},c=[].toString,u=[].join;o((function(){c.call({})}))&&(c=function(){return u.call(this)});var l=s.toString!=c;i("toString",c,l)},7329:function(e,t,n){"use strict";(function(e){function n(e){return e}function i(e){return e}function o(){var t;return(t=e).invokeCallbackHandler.apply(t,arguments)}function r(t){return e.removeCallbackHandler(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.pack=n,t.unpack=i,t.invoke=o,t.remove=r}).call(this,n("a9aa"))},"735e":function(e,t,n){"use strict";var i=n("ebb5"),o=n("81d5"),r=i.aTypedArray,a=i.exportTypedArrayMethod;a("fill",(function(e){return o.apply(r(this),arguments)}))},"73bf":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("db6a"),o={data:function(){return{showModal:{visible:!1}}},created:function(){var t=this;e.on("onShowModal",(function(e,n){t.showModal=e,t.onModalCloseCallback=n})),e.on("onHidePopup",(function(e){t.showModal.visible=!1}))},methods:{_onModalClose:function(e){this.showModal.visible=!1,(0,i.isFn)(this.onModalCloseCallback)&&this.onModalCloseCallback(e)}}};t.default=o}).call(this,n("a9aa"))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7465:function(e,t,n){"use strict";n.r(t);var i=n("99e0"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"746f":function(e,t,n){var i=n("428f"),o=n("5135"),r=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||a(t,e,{value:r.f(e)})}},"74e8":function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("83ab"),a=n("8aa7"),s=n("ebb5"),c=n("621a"),u=n("19aa"),l=n("5c6c"),d=n("9112"),f=n("50c4"),p=n("0b25"),h=n("182d"),g=n("c04e"),m=n("5135"),v=n("f5df"),_=n("861d"),y=n("7c73"),b=n("d2bb"),M=n("241c").f,S=n("a078"),C=n("b727").forEach,k=n("2626"),T=n("9bf2"),I=n("06cf"),w=n("69f3"),A=n("7156"),E=w.get,O=w.set,x=T.f,D=I.f,N=Math.round,R=o.RangeError,L=c.ArrayBuffer,P=c.DataView,U=s.NATIVE_ARRAY_BUFFER_VIEWS,G=s.TYPED_ARRAY_TAG,F=s.TypedArray,B=s.TypedArrayPrototype,q=s.aTypedArrayConstructor,j=s.isTypedArray,$="BYTES_PER_ELEMENT",H="Wrong length",V=function(e,t){var n=0,i=t.length,o=new(q(e))(i);while(i>n)o[n]=t[n++];return o},z=function(e,t){x(e,t,{get:function(){return E(this)[t]}})},K=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},W=function(e,t){return j(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Y=function(e,t){return W(e,t=g(t,!0))?l(2,e[t]):D(e,t)},X=function(e,t,n){return!(W(e,t=g(t,!0))&&_(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?x(e,t,n):(e[t]=n.value,e)};r?(U||(I.f=Y,T.f=X,z(B,"buffer"),z(B,"byteOffset"),z(B,"byteLength"),z(B,"length")),i({target:"Object",stat:!0,forced:!U},{getOwnPropertyDescriptor:Y,defineProperty:X}),e.exports=function(e,t,n){var r=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,l="set"+e,g=o[s],m=g,v=m&&m.prototype,T={},I=function(e,t){var n=E(e);return n.view[c](t*r+n.byteOffset,!0)},w=function(e,t,i){var o=E(e);n&&(i=(i=N(i))<0?0:i>255?255:255&i),o.view[l](t*r+o.byteOffset,i,!0)},D=function(e,t){x(e,t,{get:function(){return I(this,t)},set:function(e){return w(this,t,e)},enumerable:!0})};U?a&&(m=t((function(e,t,n,i){return u(e,m,s),A(function(){return _(t)?K(t)?void 0!==i?new g(t,h(n,r),i):void 0!==n?new g(t,h(n,r)):new g(t):j(t)?V(m,t):S.call(m,t):new g(p(t))}(),e,m)})),b&&b(m,F),C(M(g),(function(e){e in m||d(m,e,g[e])})),m.prototype=v):(m=t((function(e,t,n,i){u(e,m,s);var o,a,c,l=0,d=0;if(_(t)){if(!K(t))return j(t)?V(m,t):S.call(m,t);o=t,d=h(n,r);var g=t.byteLength;if(void 0===i){if(g%r)throw R(H);if(a=g-d,a<0)throw R(H)}else if(a=f(i)*r,a+d>g)throw R(H);c=a/r}else c=p(t),a=c*r,o=new L(a);O(e,{buffer:o,byteOffset:d,byteLength:a,length:c,view:new P(o)});while(l<c)D(e,l++)})),b&&b(m,F),v=m.prototype=y(B)),v.constructor!==m&&d(v,"constructor",m),G&&d(v,G,s),T[s]=m,i({global:!0,forced:m!=g,sham:!U},T),$ in m||d(m,$,r),$ in v||d(v,$,r),k(s)}):e.exports=function(){}},7551:function(e,t,n){"use strict";(function(e){n("7db0"),n("4160"),n("c975"),n("d81d"),n("26e9"),n("a434"),n("e25e"),n("ac1f"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.getTabBarScrollPosition=c,t.default=g;var i=n("559a");function o(e){-1===this.keepAliveInclude.indexOf(e)&&this.keepAliveInclude.push(e)}var r=[];function a(e){if("number"===typeof e)r=this.keepAliveInclude.splice(-(e-1)).map((function(e){return parseInt(e.split("-").pop())}));else{var t=this.keepAliveInclude.indexOf(e);-1!==t&&this.keepAliveInclude.splice(t,1)}}var s=Object.create(null);function c(e){return s[e]}function u(e){s[e]={x:window.pageXOffset,y:window.pageYOffset}}function l(e,t,n){t&&n&&t.meta.isTabBar&&n.meta.isTabBar&&u(n.params.__id__);for(var o=getCurrentPages(),r=o.length-1;r>=0;r--){var s=o[r],c=s.$page.meta;c.isTabBar||(a.call(this,c.name+"-"+s.$page.id),(0,i.callPageHook)(s,"onUnload"))}}function d(e){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var t=getCurrentPages(!0),n=t.length-1;n>=0;n--)(0,i.callPageHook)(t[n],"onUnload"),t[n].$destroy();this.keepAliveInclude=[],s=Object.create(null)}var f=[];function p(e,t,n,i){f=getCurrentPages(!0);var r=t.params.__id__,s=e.params.__id__,c=e.meta.name+"-"+s;if(s===r&&"reLaunch"!==e.type)e.fullPath!==t.fullPath?(o.call(this,c),n()):n(!1);else if(e.meta.id&&e.meta.id!==s)n({path:e.path,replace:!0});else{var u=t.meta.name+"-"+r;switch(e.type){case"navigateTo":break;case"redirectTo":a.call(this,u),t.meta&&t.meta.isQuit&&(e.meta.isQuit=!0,e.meta.isEntry=!!t.meta.isEntry);break;case"switchTab":l.call(this,i,e,t);break;case"reLaunch":d.call(this,c),e.meta.isQuit=!0;break;default:r&&r>s&&(a.call(this,u),this.$router._$delta>1&&a.call(this,this.$router._$delta));break}if("reLaunch"!==e.type&&"redirectTo"!==e.type&&t.meta.id&&o.call(this,u),o.call(this,c),e.meta&&e.meta.name){document.body.className="uni-body "+e.meta.name;var p="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(p,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(p))}n()}}function h(t,n){var o=n.params.__id__,a=t.params.__id__,s=f.find((function(e){return e.$page.id===o}));function c(e){if(e){(0,i.callPageHook)(e,"onUnload");var t=f.indexOf(e);t>=0&&f.splice(t,1)}}switch(t.type){case"navigateTo":s&&(0,i.callPageHook)(s,"onHide");break;case"redirectTo":c(s);break;case"switchTab":n.meta.isTabBar&&s&&(0,i.callPageHook)(s,"onHide");break;case"reLaunch":break;default:o&&o>a&&(c(s),this.$router._$delta>1&&r.reverse().forEach((function(e){var t=f.find((function(t){return t.$page.id===e}));c(t)})));break}if(delete this.$router._$delta,r.length=0,"reLaunch"!==t.type){var u=getCurrentPages(!0).find((function(e){return e.$page.id===a}));u&&(setTimeout((function(){e.emit("onNavigationBarChange",u.$parent.$parent.navigationBar),(0,i.callPageHook)(u,"onShow")}),0),document.title=u.$parent.$parent.navigationBar.titleText)}}function g(e,t){e.$router.beforeEach((function(n,i,o){p.call(e,n,i,o,t)})),e.$router.afterEach((function(t,n){h.call(e,t,n)}))}}).call(this,n("a9aa"))},7666:function(e,t,n){"use strict";var i=n("4ea4");n("a9e3"),n("d3b7"),n("acd8"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("5fe7")),r=n("9f04"),a=n("64fe"),s=!1;function c(e){s||(s=!0,requestAnimationFrame((function(){e(),s=!1})))}function u(e,t){if(e===t)return 0;var n=e.offsetLeft;return e.offsetParent?n+=u(e.offsetParent,t):0}function l(e,t){if(e===t)return 0;var n=e.offsetTop;return e.offsetParent?n+=l(e.offsetParent,t):0}function d(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function f(e,t,n){var i=function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)},o={id:0,cancelled:!1};function r(t,n,i,o){if(!t||!t.cancelled){i(n);var a=e.done();a||t.cancelled||(t.id=requestAnimationFrame(r.bind(null,t,n,i,o))),a&&o&&o(n)}}return r(o,e,t,n),{cancel:i.bind(null,o),model:e}}var p={name:"MovableView",mixins:[o.default],props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},data:function(){return{xSync:this._getPx(this.x),ySync:this._getPx(this.y),scaleValueSync:Number(this.scaleValue)||1,width:0,height:0,minX:0,minY:0,maxX:0,maxY:0}},computed:{dampingNumber:function(){var e=Number(this.damping);return isNaN(e)?20:e},frictionNumber:function(){var e=Number(this.friction);return isNaN(e)||e<=0?2:e},scaleMinNumber:function(){var e=Number(this.scaleMin);return isNaN(e)?.5:e},scaleMaxNumber:function(){var e=Number(this.scaleMax);return isNaN(e)?10:e},xMove:function(){return"all"===this.direction||"horizontal"===this.direction},yMove:function(){return"all"===this.direction||"vertical"===this.direction}},watch:{x:function(e){this.xSync=this._getPx(e)},xSync:function(e){this._setX(e)},y:function(e){this.ySync=this._getPx(e)},ySync:function(e){this._setY(e)},disabled:function(){this.__handleTouchStart()},scaleValue:function(e){this.scaleValueSync=Number(e)||0},scaleValueSync:function(e){this._setScaleValue(e)},scaleMinNumber:function(){this._setScaleMinOrMax()},scaleMaxNumber:function(){this._setScaleMinOrMax()}},created:function(){this._offset={x:0,y:0},this._scaleOffset={x:0,y:0},this._translateX=0,this._translateY=0,this._scale=1,this._oldScale=1,this._STD=new r.STD(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new r.Friction(1,this.frictionNumber),this._declineX=new r.Decline,this._declineY=new r.Decline,this.__touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]}},mounted:function(){this.touchtrack(this.$el,"_onTrack"),this.setParent(),this._friction.reconfigure(1,this.frictionNumber),this._STD.reconfigure(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this.$el.style.transformOrigin="center",(0,a.initScrollBounce)()},methods:{_getPx:function(e){return/\d+[ur]px$/i.test(e)?uni.upx2px(parseFloat(e)):Number(e)||0},_setX:function(e){if(this.xMove){if(e+this._scaleOffset.x===this._translateX)return this._translateX;this._SFA&&this._SFA.cancel(),this._animationTo(e+this._scaleOffset.x,this.ySync+this._scaleOffset.y,this._scale)}return e},_setY:function(e){if(this.yMove){if(e+this._scaleOffset.y===this._translateY)return this._translateY;this._SFA&&this._SFA.cancel(),this._animationTo(this.xSync+this._scaleOffset.x,e+this._scaleOffset.y,this._scale)}return e},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(e){return!!this.scale&&(e=this._adjustScale(e),this._updateScale(e,!0),this._updateOldScale(e),e)},__handleTouchStart:function(){this._isScaling||this.disabled||((0,a.disableScrollBounce)({disable:!0}),this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.__touchInfo.historyX=[0,0],this.__touchInfo.historyY=[0,0],this.__touchInfo.historyT=[0,0],this.xMove&&(this.__baseX=this._translateX),this.yMove&&(this.__baseY=this._translateY),this.$el.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},__handleTouchMove:function(e){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(e.detail.dx/e.detail.dy)>1?"htouchmove":"vtouchmove"),this.xMove&&(n=e.detail.dx+this.__baseX,this.__touchInfo.historyX.shift(),this.__touchInfo.historyX.push(n),this.yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dx/e.detail.dy)<1)),this.yMove&&(i=e.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(i),this.xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dy/e.detail.dx)<1)),this.__touchInfo.historyT.shift(),this.__touchInfo.historyT.push(e.detail.timeStamp),!this._checkCanMove){e.preventDefault();var o="touch";n<this.minX?this.outOfBounds?(o="touch-out-of-bounds",n=this.minX-this._declineX.x(this.minX-n)):n=this.minX:n>this.maxX&&(this.outOfBounds?(o="touch-out-of-bounds",n=this.maxX+this._declineX.x(n-this.maxX)):n=this.maxX),i<this.minY?this.outOfBounds?(o="touch-out-of-bounds",i=this.minY-this._declineY.x(this.minY-i)):i=this.minY:i>this.maxY&&(this.outOfBounds?(o="touch-out-of-bounds",i=this.maxY+this._declineY.x(i-this.maxY)):i=this.maxY),c((function(){t._setTransform(n,i,t._scale,o)}))}}},__handleTouchEnd:function(){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&((0,a.disableScrollBounce)({disable:!1}),this.$el.style.willChange="auto",this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var t=1e3*(this.__touchInfo.historyX[1]-this.__touchInfo.historyX[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]),n=1e3*(this.__touchInfo.historyY[1]-this.__touchInfo.historyY[0])/(this.__touchInfo.historyT[1]-this.__touchInfo.historyT[0]);this._friction.setV(t,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,o=this._friction.delta().y,r=i+this._translateX,s=o+this._translateY;r<this.minX?(r=this.minX,s=this._translateY+(this.minX-this._translateX)*o/i):r>this.maxX&&(r=this.maxX,s=this._translateY+(this.maxX-this._translateX)*o/i),s<this.minY?(s=this.minY,r=this._translateX+(this.minY-this._translateY)*i/o):s>this.maxY&&(s=this.maxY,r=this._translateX+(this.maxY-this._translateY)*i/o),this._friction.setEnd(r,s),this._FA=f(this._friction,(function(){var t=e._friction.s(),n=t.x,i=t.y;e._setTransform(n,i,e._scale,"friction")}),(function(){e._FA.cancel()}))}},_onTrack:function(e){switch(e.detail.state){case"start":this.__handleTouchStart();break;case"move":this.__handleTouchMove(e);break;case"end":this.__handleTouchEnd()}},_getLimitXY:function(e,t){var n=!1;return e>this.maxX?(e=this.maxX,n=!0):e<this.minX&&(e=this.minX,n=!0),t>this.maxY?(t=this.maxY,n=!0):t<this.minY&&(t=this.minY,n=!0),{x:e,y:t,outOfBounds:n}},setParent:function(){if(this.$parent._isMounted){this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel();var e=this.scale?this.scaleValueSync:1;this._updateOffset(),this._updateWH(e),this._updateBoundary(),this._translateX=this.xSync+this._scaleOffset.x,this._translateY=this.ySync+this._scaleOffset.y;var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y;this._setTransform(n,i,e,"",!0),this._updateOldScale(e)}},_updateOffset:function(){this._offset.x=u(this.$el,this.$parent.$el),this._offset.y=l(this.$el,this.$parent.$el)},_updateWH:function(e){e=e||this._scale,e=this._adjustScale(e);var t=this.$el.getBoundingClientRect();this.height=t.height/this._scale,this.width=t.width/this._scale;var n=this.height*e,i=this.width*e;this._scaleOffset.x=(i-this.width)/2,this._scaleOffset.y=(n-this.height)/2},_updateBoundary:function(){var e=0-this._offset.x+this._scaleOffset.x,t=this.$parent.width-this.width-this._offset.x-this._scaleOffset.x;this.minX=Math.min(e,t),this.maxX=Math.max(e,t);var n=0-this._offset.y+this._scaleOffset.y,i=this.$parent.height-this.height-this._offset.y-this._scaleOffset.y;this.minY=Math.min(n,i),this.maxY=Math.max(n,i)},_beginScale:function(){this._isScaling=!0},_endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},_setScale:function(e){this.scale&&(e=this._oldScale*e,this._beginScale(),this._updateScale(e))},_updateScale:function(e,t){var n=this;if(this.scale){e=this._adjustScale(e),this._updateWH(e),this._updateBoundary();var i=this._getLimitXY(this._translateX,this._translateY),o=i.x,r=i.y;t?this._animationTo(o,r,e,"",!0,!0):c((function(){n._setTransform(o,r,e,"",!0,!0)}))}},_updateOldScale:function(e){this._oldScale=e},_adjustScale:function(e){return e=Math.max(.5,this.scaleMinNumber,e),e=Math.min(10,this.scaleMaxNumber,e),e},_animationTo:function(e,t,n,i,o,r){var a=this;this._FA&&this._FA.cancel(),this._SFA&&this._SFA.cancel(),this.xMove||(e=this._translateX),this.yMove||(t=this._translateY),this.scale||(n=this._scale);var s=this._getLimitXY(e,t);e=s.x,t=s.y,this.animation?(this._STD._springX._solution=null,this._STD._springY._solution=null,this._STD._springScale._solution=null,this._STD._springX._endPosition=this._translateX,this._STD._springY._endPosition=this._translateY,this._STD._springScale._endPosition=this._scale,this._STD.setEnd(e,t,n,1),this._SFA=f(this._STD,(function(){var e=a._STD.x(),t=e.x,n=e.y,s=e.scale;a._setTransform(t,n,s,i,o,r)}),(function(){a._SFA.cancel()}))):this._setTransform(e,t,n,i,o,r)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y,o=t.outOfBounds;return o&&this._animationTo(n,i,this._scale,e),o},_setTransform:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;null!==e&&"NaN"!==e.toString()&&"number"===typeof e||(e=this._translateX||0),null!==t&&"NaN"!==t.toString()&&"number"===typeof t||(t=this._translateY||0),e=Number(e.toFixed(1)),t=Number(t.toFixed(1)),n=Number(n.toFixed(1)),this._translateX===e&&this._translateY===t||o||this.$trigger("change",{},{x:d(e,this._scaleOffset.x),y:d(t,this._scaleOffset.y),source:i}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),r&&n!==this._scale&&this.$trigger("scale",{},{x:e,y:t,scale:n});var a="translateX("+e+"px) translateY("+t+"px) translateZ(0px) scale("+n+")";this.$el.style.transform=a,this.$el.style.webkitTransform=a,this._translateX=e,this._translateY=t,this._scale=n}}};t.default=p},"77a0":function(e,t,n){"use strict";n.r(t);var i=n("50ff"),o=n("3193");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"77a7":function(e,t){var n=1/0,i=Math.abs,o=Math.pow,r=Math.floor,a=Math.log,s=Math.LN2,c=function(e,t,c){var u,l,d,f=new Array(c),p=8*c-t-1,h=(1<<p)-1,g=h>>1,m=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,_=0;for(e=i(e),e!=e||e===n?(l=e!=e?1:0,u=h):(u=r(a(e)/s),e*(d=o(2,-u))<1&&(u--,d*=2),e+=u+g>=1?m/d:m*o(2,1-g),e*d>=2&&(u++,d/=2),u+g>=h?(l=0,u=h):u+g>=1?(l=(e*d-1)*o(2,t),u+=g):(l=e*o(2,g-1)*o(2,t),u=0));t>=8;f[_++]=255&l,l/=256,t-=8);for(u=u<<t|l,p+=t;p>0;f[_++]=255&u,u/=256,p-=8);return f[--_]|=128*v,f},u=function(e,t){var i,r=e.length,a=8*r-t-1,s=(1<<a)-1,c=s>>1,u=a-7,l=r-1,d=e[l--],f=127&d;for(d>>=7;u>0;f=256*f+e[l],l--,u-=8);for(i=f&(1<<-u)-1,f>>=-u,u+=t;u>0;i=256*i+e[l],l--,u-=8);if(0===f)f=1-c;else{if(f===s)return i?NaN:d?-n:n;i+=o(2,t),f-=c}return(d?-1:1)*i*o(2,f-t)};e.exports={pack:c,unpack:u}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7896:function(e,t,n){"use strict";n.r(t);var i=n("075a"),o=n("1896");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"79ae":function(e,t,n){"use strict";n.r(t);var i=n("c6c2"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"79fe":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("9235")),r={PreviewImage:o.default};t.default=r},"7abb":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("f4f0"),r=n("2ca3"),a=i(n("af90")),s=n("62d9");function c(){e.publishHandler("onPageReady",{},this.$page.id)}var u={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.routes;(0,r.initEvents)();var n=function(e,t){for(var n=e.target;n&&n!==t;n=n.parentNode)if(n.tagName&&0===n.tagName.indexOf("UNI-"))break;return n};e.prototype.$handleEvent=function(e){if(e instanceof Event){var t=n(e,this.$el);e=r.processEvent.call(this,e.type,e,{},t||e.target,e.currentTarget)}return e},e.prototype.$getComponentDescriptor=function(e,t){return(0,s.createComponentDescriptor)(e||this,t)},Object.defineProperty(e.prototype,"$ownerInstance",{get:function(){return this.$getComponentDescriptor(this)}}),e.prototype.$handleWxsEvent=function(e){if(e instanceof Event){var t=e.currentTarget,i=t&&(t.__vue__||t),o=t&&i.$getComponentDescriptor&&i.$getComponentDescriptor(i,!1),a=e;e=r.processEvent.call(this,a.type,a,{},n(a,this.$el)||a.target,a.currentTarget),e.instance=o,e.preventDefault=function(){return a.preventDefault()},e.stopPropagation=function(){return a.stopPropagation()}}return e},e.mixin({beforeCreate:function(){var e=this,t=this.$options,n=t.wxs;n&&Object.keys(n).forEach((function(t){e[t]=n[t]})),t.behaviors&&t.behaviors.length&&(0,a.default)(t,this),(0,o.isPage)(this)&&(t.mounted=t.mounted?[].concat(c,t.mounted):[c])}})}};t.default=u}).call(this,n("c5c3"))},"7b03":function(e,t,n){"use strict";n.r(t);var i=n("1a3c"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7b0e":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-web-view",e._g({ref:"webviewContainer",class:{"uni-webview--fullscreen":e.fullscreen}},e.$listeners),[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],1)},r=[]},"7baa":function(e,t,n){"use strict";n.r(t);var i=n("d3f0"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"7bbf":function(e,t,n){"use strict";n.r(t);var i=n("e0cd"),o=n("6ca7");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"7c73":function(e,t,n){var i,o=n("825a"),r=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),u=n("cc12"),l=n("f772"),d=">",f="<",p="prototype",h="script",g=l("IE_PROTO"),m=function(){},v=function(e){return f+h+d+e+f+"/"+h+d},_=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=u("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},b=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=i?_(i):y();var e=a.length;while(e--)delete b[p][a[e]];return b()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=o(e),n=new m,m[p]=null,n[g]=e):n=b(),void 0===t?n:r(n,t)}},"7d2c":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.pageScrollTo=void 0;var i={scrollTop:{type:Number},duration:{type:Number,default:300,validator:function(e,t){t.duration=Math.max(0,e)}}};t.pageScrollTo=i},"7db0":function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").find,r=n("44d2"),a=n("ae40"),s="find",c=!0,u=a(s);s in[]&&Array(1)[s]((function(){c=!1})),i({target:"Array",proto:!0,forced:c||!u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r(s)},"7db4":function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectorQuery=m;var o=i(n("d4ec")),r=i(n("bee2")),a=n("db6a"),s=n("2412"),c=n("8959"),u=n("49b4"),l=n("3bea"),d=n("2398"),f={canvas:c.CanvasContext,map:u.MapContext,video:l.VideoContext,editor:d.EditorContext};function p(e){if(e&&e.context){var t=e.context,n=t.id,i=t.name,o=t.page,r=f[i];e.context=r&&new r(n,o)}}var h=function(){function e(t,n,i,r){(0,o.default)(this,e),this._selectorQuery=t,this._component=n,this._selector=i,this._single=r}return(0,r.default)(e,[{key:"boundingClientRect",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}},{key:"fields",value:function(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}},{key:"scrollOffset",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}},{key:"context",value:function(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}}]),e}(),g=function(){function e(t){(0,o.default)(this,e),this._page=t,this._queue=[],this._queueCb=[],this._nodesRef=null}return(0,r.default)(e,[{key:"exec",value:function(e){var t=this;return(0,s.invokeMethod)("requestComponentInfo",this._page,this._queue,(function(n){var i=t._queueCb;n.forEach((function(e,n){Array.isArray(e)?e.forEach(p):p(e);var o=i[n];(0,a.isFn)(o)&&o.call(t,e)})),(0,a.isFn)(e)&&e.call(t,n)})),this._nodesRef}},{key:"in",value:function(e){return this._component=e._$id||e,this}},{key:"select",value:function(e){return this._nodesRef=new h(this,this._component,e,!0)}},{key:"selectAll",value:function(e){return this._nodesRef=new h(this,this._component,e,!1)}},{key:"selectViewport",value:function(){return this._nodesRef=new h(this,0,"",!0)}},{key:"_push",value:function(e,t,n,i,o){this._queue.push({component:t,selector:e,single:n,fields:i}),this._queueCb.push(o)}}]),e}();function m(e){return new g(e||(0,s.getCurrentPageVm)("createSelectorQuery"))}},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),o=n("9ed3"),r=n("e163"),a=n("d2bb"),s=n("d44e"),c=n("9112"),u=n("6eeb"),l=n("b622"),d=n("c430"),f=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),v="keys",_="values",y="entries",b=function(){return this};e.exports=function(e,t,n,l,p,M,S){o(n,t,l);var C,k,T,I=function(e){if(e===p&&x)return x;if(!g&&e in E)return E[e];switch(e){case v:return function(){return new n(this,e)};case _:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",A=!1,E=e.prototype,O=E[m]||E["@@iterator"]||p&&E[p],x=!g&&O||I(p),D="Array"==t&&E.entries||O;if(D&&(C=r(D.call(new e)),h!==Object.prototype&&C.next&&(d||r(C)===h||(a?a(C,h):"function"!=typeof C[m]&&c(C,m,b)),s(C,w,!0,!0),d&&(f[w]=b))),p==_&&O&&O.name!==_&&(A=!0,x=function(){return O.call(this)}),d&&!S||E[m]===x||c(E,m,x),f[t]=x,p)if(k={values:I(_),keys:M?x:I(v),entries:I(y)},S)for(T in k)(g||A||!(T in E))&&u(E,T,k[T]);else i({target:t,proto:!0,forced:g||A},k);return k}},"7e12":function(e,t,n){var i=n("da84"),o=n("58a8").trim,r=n("5899"),a=i.parseFloat,s=1/a(r+"-0")!==-1/0;e.exports=s?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},"7e36":function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("c975"),n("a9e3"),n("acd8"),n("ac1f"),n("5319"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("5fe7")),r=n("db6a"),a={name:"Swiper",mixins:[o.default],props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1}},data:function(){return{currentSync:Math.round(this.current)||0,currentItemIdSync:this.currentItemId||"",userTracking:!1,currentChangeSource:"",items:[]}},computed:{intervalNumber:function(){var e=Number(this.interval);return isNaN(e)?5e3:e},durationNumber:function(){var e=Number(this.duration);return isNaN(e)?500:e},displayMultipleItemsNumber:function(){var e=Math.round(this.displayMultipleItems);return isNaN(e)?1:e},slidesStyle:function(){var e={};return(this.nextMargin||this.previousMargin)&&(e=this.vertical?{left:0,right:0,top:this._upx2px(this.previousMargin),bottom:this._upx2px(this.nextMargin)}:{top:0,bottom:0,left:this._upx2px(this.previousMargin),right:this._upx2px(this.nextMargin)}),e},slideFrameStyle:function(){var e=Math.abs(100/this.displayMultipleItemsNumber)+"%";return{width:this.vertical?"100%":e,height:this.vertical?e:"100%"}},circularEnabled:function(){return this.circular&&this.items.length>this.displayMultipleItemsNumber}},watch:{vertical:function(){this._resetLayout()},circular:function(){this._resetLayout()},intervalNumber:function(e){this._timer&&(this._cancelSchedule(),this._scheduleAutoplay())},current:function(e){this._currentCheck()},currentSync:function(e,t){this._currentChanged(e,t),this.$emit("update:current",e)},currentItemId:function(e){this._currentCheck()},currentItemIdSync:function(e){this.$emit("update:currentItemId",e)},displayMultipleItemsNumber:function(){this._resetLayout()}},created:function(){this._invalid=!0,this._viewportPosition=0,this._viewportMoveRatio=1,this._animating=null,this._requestedAnimation=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._contentTrackSpeed=0,this._contentTrackT=0},mounted:function(){var e=this;this._currentCheck(),this.touchtrack(this.$refs.slidesWrapper,"_handleContentTrack",!0),this._resetLayout(),this.$watch((function(){return e.autoplay&&!e.userTracking}),this._inintAutoplay),this._inintAutoplay(this.autoplay&&!this.userTracking),this.$watch("items.length",this._resetLayout)},beforeDestroy:function(){this._cancelSchedule(),cancelAnimationFrame(this._animationFrame)},methods:{_inintAutoplay:function(e){e?this._scheduleAutoplay():this._cancelSchedule()},_currentCheck:function(){var e=-1;if(this.currentItemId)for(var t=0,n=this.items;t<n.length;t++){var i=n[t].componentInstance;if(i&&i.itemId===this.currentItemId){e=t;break}}e<0&&(e=Math.round(this.current)||0),e=e<0?0:e,this.currentSync!==e&&(this.currentChangeSource="",this.currentSync=e)},_itemReady:function(e,t){e.componentInstance&&e.componentInstance._isMounted?t():(e._callbacks=e._callbacks||[],e._callbacks.push(t))},_currentChanged:function(e,t){var n=this,i=this.currentChangeSource;if(this.currentChangeSource="",!i){var o=this.items.length;this._animateViewport(e,"",this.circularEnabled&&t+(o-e)%o>o/2?1:0)}var r=this.items[e];r&&this._itemReady(r,(function(){var e=n.currentItemIdSync=r.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:e,source:i})}))},_scheduleAutoplay:function(){var e=this;function t(){e._timer=null,e.currentChangeSource="autoplay",e.circularEnabled?e.currentSync=e._normalizeCurrentValue(e.currentSync+1):e.currentSync=e.currentSync+e.displayMultipleItemsNumber<e.items.length?e.currentSync+1:0,e._animateViewport(e.currentSync,"autoplay",e.circularEnabled?1:0),e._timer=setTimeout(t,e.intervalNumber)}this._cancelSchedule(),!this._isMounted||this._invalid||this.items.length<=this.displayMultipleItemsNumber||(this._timer=setTimeout(t,this.intervalNumber))},_cancelSchedule:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_normalizeCurrentValue:function(e){var t=this.items.length;if(!t)return-1;var n=(Math.round(e)%t+t)%t;if(this.circularEnabled){if(t<=this.displayMultipleItemsNumber)return 0}else if(n>t-this.displayMultipleItemsNumber)return t-this.displayMultipleItemsNumber;return n},_upx2px:function(e){return/\d+[ur]px$/i.test(e)&&e.replace(/\d+[ur]px$/i,(function(e){return"".concat(uni.upx2px(parseFloat(e)),"px")})),e||""},_resetLayout:function(){if(this._isMounted){this._cancelSchedule(),this._endViewportAnimation();for(var e=this.items,t=0;t<e.length;t++)this._updateItemPos(t,t);if(this._viewportMoveRatio=1,1===this.displayMultipleItemsNumber&&e.length){var n=e[0].componentInstance.$el.getBoundingClientRect(),i=this.$refs.slideFrame.getBoundingClientRect();this._viewportMoveRatio=n.width/i.width,this._viewportMoveRatio>0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var o=this._viewportPosition;this._viewportPosition=-2;var r=this.currentSync;r>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(o+r-this._contentTrackViewport),this._contentTrackViewport=r):(this._updateViewport(r),this.autoplay&&this._scheduleAutoplay())):(this._invalid=!0,this._updateViewport(-this.displayMultipleItemsNumber-1))}},_checkCircularLayout:function(e){if(!this._invalid)for(var t=this.items,n=t.length,i=e+this.displayMultipleItemsNumber,o=0;o<n;o++){var r=t[o],a=r._position,s=Math.floor(e/n)*n+o,c=s+n,u=s-n,l=Math.max(e-(s+1),s-i,0),d=Math.max(e-(c+1),c-i,0),f=Math.max(e-(u+1),u-i,0),p=Math.min(l,d,f),h=[s,c,u][[l,d,f].indexOf(p)];a!==h&&this._updateItemPos(o,h)}},_updateItemPos:function(e,t){var n=this.vertical?"0":100*t+"%",i=this.vertical?100*t+"%":"0",o="translate("+n+", "+i+") translateZ(0)",r=this.items[e];this._itemReady(r,(function(){var e=r.componentInstance.$el;e.style["-webkit-transform"]=o,e.style.transform=o,e._position=t}))},_updateViewport:function(e){Math.floor(2*this._viewportPosition)===Math.floor(2*e)&&Math.ceil(2*this._viewportPosition)===Math.ceil(2*e)||this.circularEnabled&&this._checkCircularLayout(e);var t=this.vertical?"0":100*-e*this._viewportMoveRatio+"%",n=this.vertical?100*-e*this._viewportMoveRatio+"%":"0",i="translate("+t+", "+n+") translateZ(0)",o=this.$refs.slideFrame;if(o&&(o.style["-webkit-transform"]=i,o.style.transform=i),this._viewportPosition=e,!this._transitionStart){if(e%1===0)return;this._transitionStart=e}e-=Math.floor(this._transitionStart),e<=-(this.items.length-1)?e+=this.items.length:e>=this.items.length&&(e-=this.items.length),e=this._transitionStart%1>.5||this._transitionStart<0?e-1:e,this.$trigger("transition",{},{dx:this.vertical?0:e*o.offsetWidth,dy:this.vertical?e*o.offsetHeight:0})},_animateFrameFuncProto:function(){var e=this;if(this._animating){var t=this._animating,n=t.toPos,i=t.acc,o=t.endTime,r=t.source,a=o-Date.now();if(a<=0){this._updateViewport(n),this._animating=null,this._requestedAnimation=!1,this._transitionStart=null;var s=this.items[this.currentSync];s&&this._itemReady(s,(function(){var t=s.componentInstance.itemId||"";e.$trigger("animationfinish",{},{current:e.currentSync,currentItemId:t,source:r})}))}else{var c=i*a*a/2,u=n+c;this._updateViewport(u),this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this))}}else this._requestedAnimation=!1},_animateViewport:function(e,t,n){this._cancelViewportAnimation();var i=this.durationNumber,o=this.items.length,r=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;r<e;)r+=o;for(;r-o>e;)r-=o}else if(n>0){for(;r>e;)r-=o;for(;r+o<e;)r+=o;r+o-e<e-r&&(r+=o)}else{for(;r+o<e;)r+=o;for(;r-o>e;)r-=o;r+o-e<e-r&&(r+=o)}this._animating={toPos:e,acc:2*(r-e)/(i*i),endTime:Date.now()+i,source:t},this._requestedAnimation||(this._requestedAnimation=!0,this._animationFrame=requestAnimationFrame(this._animateFrameFuncProto.bind(this)))},_cancelViewportAnimation:function(){this._animating=null},_endViewportAnimation:function(){this._animating&&(this._updateViewport(this._animating.toPos),this._animating=null)},_handleTrackStart:function(){this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=Date.now(),this._cancelViewportAnimation()},_handleTrackMove:function(e){var t=this,n=this._contentTrackT;this._contentTrackT=Date.now();var i=this.items.length,o=i-this.displayMultipleItemsNumber;function r(e){return.5-.25/(e+.5)}function a(e,n){var i=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,t.circularEnabled||(i<0||i>o)&&(i<0?i=-r(-i):i>o&&(i=o+r(i-o)),t._contentTrackSpeed=0),t._updateViewport(i)}var s=this._contentTrackT-n||1;this.vertical?a(-e.dy/this.$refs.slideFrame.offsetHeight,-e.ddy/s):a(-e.dx/this.$refs.slideFrame.offsetWidth,-e.ddx/s)},_handleTrackEnd:function(e){this.userTracking=!1;var t=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!e&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*t);var i=this._normalizeCurrentValue(this._viewportPosition+n);e?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=i,this._animateViewport(i,"touch",0!==n?n:0===i&&this.circularEnabled&&this._viewportPosition>=1?1:0))},_handleContentTrack:function(e){if(!this.disableTouch&&this.items.length&&!this._invalid){if("start"===e.detail.state)return this.userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if("end"===e.detail.state)return this._handleTrackEnd(!1);if("cancel"===e.detail.state)return this._handleTrackEnd(!0);if(this.userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var t=Math.abs(e.detail.dx),n=Math.abs(e.detail.dy);if((t>=n&&this.vertical||t<=n&&!this.vertical)&&(this.userTracking=!1),!this.userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return this._handleTrackMove(e.detail),!1}}}},render:function(e){var t=this,n=[],i=[];this.$slots.default&&(0,r.deepClone)(this.$slots.default,e).forEach((function(e){e.componentOptions&&"v-uni-swiper-item"===e.componentOptions.tag&&i.push(e)}));for(var o=function(i,o){var r=t.currentSync;n.push(e("div",{on:{click:function(){t._animateViewport(t.currentSync=i,t.currentChangeSource="click",t.circularEnabled?1:0)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":i<r+t.displayMultipleItemsNumber&&i>=r||i<r+t.displayMultipleItemsNumber-o},style:{background:i===r?t.indicatorActiveColor:t.indicatorColor}}))},a=0,s=i.length;a<s;a++)o(a,s);this.items=i;var c=[e("div",{ref:"slides",style:this.slidesStyle,class:"uni-swiper-slides"},[e("div",{ref:"slideFrame",class:"uni-swiper-slide-frame",style:this.slideFrameStyle},i)])];return this.indicatorDots&&c.push(e("div",{ref:"slidesDots",class:["uni-swiper-dots",this.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},n)),e("uni-swiper",{on:this.$listeners},[e("div",{ref:"slidesWrapper",class:"uni-swiper-wrapper"},c)])}};t.default=a},"7ee7":function(e,t,n){"use strict";n.r(t);var i=n("465d"),o=n("8421");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"7f9a":function(e,t,n){var i=n("da84"),o=n("8925"),r=i.WeakMap;e.exports="function"===typeof r&&/native code/.test(o(r))},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),o=n("23cb"),r=n("50c4");e.exports=function(e){var t=i(this),n=r(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:o(c,n);while(u>s)t[s++]=e;return t}},"81e8":function(e,t,n){"use strict";var i=n("4ea4");n("7db0"),n("4160"),n("c975"),n("d81d"),n("b64b"),n("ac1f"),n("5319"),n("498a"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.initAppLocale=w,t.formatI18n=O,t.defineI18nProperties=D,t.defineI18nProperty=N,t.initNavigationBarI18n=L,t.initPullToRefreshI18n=P,t.initTabBarI18n=U,t.normalizeLocale=B,t.I18N_JSON_DELIMITERS=t.getLocale=t.setLocale=t.i18nMixin=t.t=t.i18n=t.LOCALE_ES=t.LOCALE_FR=t.LOCALE_EN=t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=void 0;var o=i(n("ade3")),r=n("37dc"),a=n("db6a"),s=n("0fbe"),c=i(n("58a7")),u=i(n("866e")),l=i(n("e8c3")),d=i(n("b479")),f=i(n("2526")),p="zh-Hans";t.LOCALE_ZH_HANS=p;var h="zh-Hant";t.LOCALE_ZH_HANT=h;var g="en";t.LOCALE_EN=g;var m="fr";t.LOCALE_FR=m;var v="es";t.LOCALE_ES=v;var _,y,b={};function M(){if(R()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=b[e],n=__uniConfig.locales[e];t?Object.assign(t,n):b[e]=n}))}}Object.assign(b,(_={},(0,o.default)(_,g,c.default),(0,o.default)(_,v,u.default),(0,o.default)(_,m,l.default),(0,o.default)(_,p,d.default),(0,o.default)(_,h,f.default),_)),y=window.localStorage&&localStorage[s.UNI_STORAGE_LOCALE]||__uniConfig.locale||navigator.language,M();var S=(0,r.initVueI18n)(y,b);t.i18n=S;var C=S.t;t.t=C;var k=S.mixin={beforeCreate:function(){var e=this,t=S.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return C(e,t)}}};t.i18nMixin=k;var T=S.setLocale;t.setLocale=T;var I=S.getLocale;function w(e,t,n){var i=e.observable({locale:n||S.getLocale()}),o=[];t.$watchLocale=function(e){o.push(e)},Object.defineProperty(t,"$locale",{get:function(){return i.locale},set:function(e){i.locale=e,o.forEach((function(t){return t(e)}))}})}t.getLocale=I;var A=["%","%"];function E(){var e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t[g]||{}}function O(e){return(0,r.isI18nStr)(e,A)?S.f(e,E(),A):e}function x(e,t){if(1!==t.length){var n=t.shift();return x(e&&e[n],t)}if(e){var i=e[t[0]];if((0,a.isStr)(i)&&(0,r.isI18nStr)(i,A))return e}}function D(e,t){return t.map((function(t){return N(e,t)}))}function N(e,t){var n=x(e,t);if(!n)return!1;var i=t[t.length-1],o=n[i];return Object.defineProperty(n,i,{get:function(){return O(o)},set:function(e){o=e}}),!0}function R(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function L(e){if(R())return D(e,[["titleText"],["searchInput","placeholder"]])}function P(e){if(R()){var t="caption";return D(e,[["contentdown",t],["contentover",t],["contentrefresh",t]])}}function U(e){return R()&&e.list&&e.list.forEach((function(e){N(e,["text"])})),e}function G(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function F(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function B(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return p;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?p:e.indexOf("-hant")>-1||G(e,["-tw","-hk","-mo","-cht"])?h:p;var n=F(e,[g,m,v]);return n||void 0}}t.I18N_JSON_DELIMITERS=A},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"825b":function(e,t,n){"use strict";n.r(t);var i=n("377f2"),o=n("c381");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"825f":function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var o=i(n("e6b0")),r=n("07a6"),a=n("0179"),s=i(n("320d"));function c(e){Object.keys(o.default).forEach((function(t){e(t,o.default[t])})),e("pageScrollTo",r.pageScrollTo),e("loadFontFace",a.loadFontFace),(0,s.default)(e)}},8294:function(e,t,n){"use strict";n.r(t);var i=n("9910");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var r,a,s,c,u=n("f0c5"),l=Object(u["a"])(i["default"],r,a,!1,null,null,null,!1,s,c);t["default"]=l.exports},"82da":function(e,t,n){var i=n("23e7"),o=n("ebb5"),r=o.NATIVE_ARRAY_BUFFER_VIEWS;i({target:"ArrayBuffer",stat:!0,forced:!r},{isView:o.isView})},"82f8":function(e,t,n){"use strict";var i=n("ebb5"),o=n("4d64").includes,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("includes",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},8330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("e467"),o=n("2abe"),r=n("0cf0"),a=n("e2e5"),s=n("4492"),c=n("8deb"),u=n("36ef"),l=n("7db4"),d=n("5e7a"),f=n("c4fe"),p=n("c343"),h=n("4ae2"),g=n("5349"),m=n("5c5c"),v=n("f861"),_=n("2861"),y=n("9cfb"),b=n("a49f"),M=n("8bae"),S=n("b334"),C=n("377e"),k=n("2381"),T=n("633d"),I=n("be9c"),w=n("e2ec"),A=n("0206"),E={$emit:i.$emit,$off:i.$off,$on:i.$on,canIUse:o.canIUse,chooseImage:r.chooseImage,chooseVideo:a.chooseVideo,createInnerAudioContext:s.createInnerAudioContext,createIntersectionObserver:c.createIntersectionObserver,createMediaQueryObserver:u.createMediaQueryObserver,createSelectorQuery:l.createSelectorQuery,downloadFile:d.downloadFile,getLocale:f.getLocale,getLocation:p.getLocation,request:h.request,getProvider:g.getProvider,getStorageSync:m.getStorageSync,getSystemInfo:v.getSystemInfo,getSystemInfoSync:v.getSystemInfoSync,hideLoading:_.hideLoading,makePhoneCall:y.makePhoneCall,navigateBack:b.navigateBack,navigateTo:b.navigateTo,openDocument:M.openDocument,pageScrollTo:S.pageScrollTo,previewImage:C.previewImage,reLaunch:b.reLaunch,redirectTo:b.redirectTo,setClipboardData:k.setClipboardData,setNavigationBarTitle:T.setNavigationBarTitle,setStorageSync:m.setStorageSync,showActionSheet:_.showActionSheet,showLoading:_.showLoading,showModal:_.showModal,showToast:_.showToast,startPullDownRefresh:I.startPullDownRefresh,stopPullDownRefresh:I.stopPullDownRefresh,switchTab:b.switchTab,uploadFile:w.uploadFile,upx2px:A.upx2px};t.default=E},8347:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-checkbox",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-checkbox-wrapper"},[n("div",{staticClass:"uni-checkbox-input",class:{"uni-checkbox-input-checked":e.checkboxChecked,"uni-checkbox-input-disabled":e.disabled},style:{color:e.color}}),e._t("default")],2)])},r=[]},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var i=n("c04e"),o=n("9bf2"),r=n("5c6c");e.exports=function(e,t,n){var a=i(t);a in e?o.f(e,a,r(0,n)):e[a]=n}},"841c":function(e,t,n){"use strict";var i=n("d784"),o=n("825a"),r=n("1d80"),a=n("129f"),s=n("14c3");i("search",1,(function(e,t,n){return[function(t){var n=r(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=o(e),c=String(this),u=r.lastIndex;a(u,0)||(r.lastIndex=0);var l=s(r,c);return a(r.lastIndex,u)||(r.lastIndex=u),null===l?-1:l.index}]}))},8421:function(e,t,n){"use strict";n.r(t);var i=n("0a75"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"866e":function(e){e.exports=JSON.parse('{"uni.app.quit":"Pulse otra vez para salir","uni.async.error":"Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo.","uni.showActionSheet.cancel":"Cancelar","uni.showToast.unpaired":"Tenga en cuenta que showToast debe estar emparejado con hideToast","uni.showLoading.unpaired":"Tenga en cuenta que showLoading debe estar emparejado con hideLoading","uni.showModal.cancel":"Cancelar","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Cancelar","uni.chooseImage.sourceType.album":"Álbum","uni.chooseImage.sourceType.camera":"Cámara","uni.chooseVideo.cancel":"Cancelar","uni.chooseVideo.sourceType.album":"Álbum","uni.chooseVideo.sourceType.camera":"Cámara","uni.chooseFile.notUserActivation":"El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario","uni.previewImage.cancel":"Cancelar","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Guardado exitosamente","uni.previewImage.save.fail":"Error al guardar","uni.setClipboardData.success":"Contenido copiado","uni.scanCode.title":"Código de escaneo","uni.scanCode.album":"Álbum","uni.scanCode.fail":"Échec de la reconnaissance","uni.scanCode.flash.on":"Toque para encender la luz","uni.scanCode.flash.off":"Toque para apagar la luz","uni.startSoterAuthentication.authContent":"Reconocimiento de huellas dactilares","uni.picker.done":"OK","uni.picker.cancel":"Cancelar","uni.video.danmu":"Danmu","uni.video.volume":"Volumen","uni.button.feedback.title":"realimentación","uni.button.feedback.send":"enviar","uni.chooseLocation.search":"Encontrar","uni.chooseLocation.cancel":"Cancelar"}')},8751:function(e,t,n){"use strict";function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.getElementById(t);i&&n&&(i.parentNode.removeChild(i),i=null),i||(i=document.createElement("style"),i.type="text/css",t&&(i.id=t),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},"87d6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"AsyncLoading"};t.default=i},8925:function(e,t,n){var i=n("c6cd"),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return o.call(e)}),e.exports=i.inspectSource},8959:function(e,t,n){"use strict";(function(e,i){var o=n("4ea4");n("99af"),n("7db0"),n("4160"),n("c975"),n("d81d"),n("fb6a"),n("ace4"),n("a9e3"),n("d3b7"),n("acd8"),n("e25e"),n("ac1f"),n("25f0"),n("8a79"),n("466d"),n("5319"),n("1276"),n("498a"),n("8a59"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.createCanvasContext=T,t.canvasGetImageData=I,t.canvasPutImageData=w,t.canvasToTempFilePath=A,t.CanvasContext=void 0;var r=o(n("2909")),a=o(n("d4ec")),s=o(n("bee2")),c=n("db6a"),u=o(n("ff22")),l=n("2412"),d=n("7329"),f=n("9066"),p=(0,u.default)("canvasEvent");function h(t,n,i,o){e.publishHandler(n+"-canvas-"+t,{canvasId:t,type:i,data:o},n)}e.subscribe("onCanvasMethodCallback",(function(e){var t=e.callbackId,n=e.data,i=p.pop(t);i&&i(n)}));var g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function m(e){e=e||"#000000";var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e))){var n=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4),16);return[n,o,r,255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){var a=t[1].slice(0,1),s=t[1].slice(1,2),u=t[1].slice(2,3);return a=parseInt(a+a,16),s=parseInt(s+s,16),u=parseInt(u+u,16),[a,s,u,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var l=e.toLowerCase();if((0,c.hasOwn)(g,l)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(g[l]);var d=parseInt(t[1].slice(0,2),16),f=parseInt(t[1].slice(2,4),16),p=parseInt(t[1].slice(4,6),16),h=parseInt(t[1].slice(6,8),16);return h=h>=0?h:255,[d,f,p,h]}return i.error("unsupported color:"+e),[0,0,0,255]}function v(e,t){this.type="pattern",this.data=e,this.colorStop=t}var _=function(){function e(t,n){(0,a.default)(this,e),this.type=t,this.data=n,this.colorStop=[]}return(0,s.default)(e,[{key:"addColorStop",value:function(e,t){this.colorStop.push([e,m(t)])}}]),e}(),y=["scale","rotate","translate","setTransform","transform"],b=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],M=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function S(e,t){var n=document.createElement("canvas"),i=n.getContext("2d");return i.font=t,i.measureText(e).width||0}function C(e){this.width=e}var k=function(){function e(t,n){(0,a.default)(this,e),this.id=t,this.pageId=n,this.actions=[],this.path=[],this.subpath=[],this.currentTransform=[],this.currentStepAnimates=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}return(0,s.default)(e,[{key:"draw",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=(0,r.default)(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(e=p.push(n)),h(this.id,this.pageId,"actionsChanged",{actions:i,reserve:t,callbackId:e})}},{key:"createLinearGradient",value:function(e,t,n,i){return new _("linear",[e,t,n,i])}},{key:"createCircularGradient",value:function(e,t,n){return new _("radial",[e,t,n])}},{key:"createPattern",value:function(e,t){if(void 0===t)i.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new v(e,t);i.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}},{key:"measureText",value:function(e){var t=this.state.font,n=0;return n=S(e,t),new C(n)}},{key:"save",value:function(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}},{key:"restore",value:function(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}},{key:"beginPath",value:function(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}},{key:"moveTo",value:function(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}},{key:"lineTo",value:function(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}},{key:"quadraticCurveTo",value:function(e,t,n,i){this.path.push({method:"quadraticCurveTo",data:[e,t,n,i]}),this.subpath.push([n,i])}},{key:"bezierCurveTo",value:function(e,t,n,i,o,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,i,o,r]}),this.subpath.push([o,r])}},{key:"arc",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[e,t,n,i,o,r]}),this.subpath.push([e,t])}},{key:"rect",value:function(e,t,n,i){this.path.push({method:"rect",data:[e,t,n,i]}),this.subpath=[[e,t]]}},{key:"arcTo",value:function(e,t,n,i,o){this.path.push({method:"arcTo",data:[e,t,n,i,o]}),this.subpath.push([n,i])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:(0,r.default)(this.path)})}},{key:"closePath",value:function(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}},{key:"clearActions",value:function(){this.actions=[],this.path=[],this.subpath=[]}},{key:"getActions",value:function(){var e=(0,r.default)(this.actions);return this.clearActions(),e}},{key:"lineDashOffset",set:function(e){this.actions.push({method:"setLineDashOffset",data:[e]})}},{key:"globalCompositeOperation",set:function(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}},{key:"shadowBlur",set:function(e){this.actions.push({method:"setShadowBlur",data:[e]})}},{key:"shadowColor",set:function(e){this.actions.push({method:"setShadowColor",data:[e]})}},{key:"shadowOffsetX",set:function(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}},{key:"shadowOffsetY",set:function(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}},{key:"font",set:function(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),r=parseFloat(n[3]),a=n[7],s=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&c()})),1===o.length&&c(),o=s.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=r,this.state.fontFamily=a,this.actions.push({method:"setFont",data:["".concat(o," ").concat(r,"px ").concat(a)]})}else i.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function c(){s.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}},get:function(){return this.state.font}},{key:"fillStyle",set:function(e){this.setFillStyle(e)}},{key:"strokeStyle",set:function(e){this.setStrokeStyle(e)}},{key:"globalAlpha",set:function(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}},{key:"textAlign",set:function(e){this.actions.push({method:"setTextAlign",data:[e]})}},{key:"lineCap",set:function(e){this.actions.push({method:"setLineCap",data:[e]})}},{key:"lineJoin",set:function(e){this.actions.push({method:"setLineJoin",data:[e]})}},{key:"lineWidth",set:function(e){this.actions.push({method:"setLineWidth",data:[e]})}},{key:"miterLimit",set:function(e){this.actions.push({method:"setMiterLimit",data:[e]})}},{key:"textBaseline",set:function(e){this.actions.push({method:"setTextBaseline",data:[e]})}}]),e}();function T(t,n){if(n)return new k(t,n.$page.id);var i=(0,l.getCurrentPageId)();if(i)return new k(t,i);e.emit("onError","createCanvasContext:fail")}function I(e,t){var n=e.canvasId,i=e.x,o=e.y,r=e.width,a=e.height,s=(0,l.getCurrentPageId)();if(s){var c=p.push((function(e){var n=e.data;n&&n.length&&(e.data=new Uint8ClampedArray(n));(0,d.invoke)(t,e)}));h(n,s,"getImageData",{x:i,y:o,width:r,height:a,callbackId:c})}else(0,d.invoke)(t,{errMsg:"canvasGetImageData:fail"})}function w(e,t){var n=e.canvasId,i=e.data,o=e.x,r=e.y,a=e.width,s=e.height,c=(0,l.getCurrentPageId)();if(c){var u,f=p.push((function(e){(0,d.invoke)(t,e)}));i=Array.prototype.slice.call(i),h(n,c,"putImageData",{data:i,x:o,y:r,width:a,height:s,compressed:u,callbackId:f})}else(0,d.invoke)(t,{errMsg:"canvasPutImageData:fail"})}function A(e,t){var n=e.x,i=void 0===n?0:n,o=e.y,r=void 0===o?0:o,a=e.width,s=e.height,c=e.destWidth,u=e.destHeight,g=e.canvasId,m=e.fileType,v=e.quality,_=(0,l.getCurrentPageId)();if(_){var y=p.push((function(e){(0,d.invoke)(t,e)})),b="".concat(f.TEMP_PATH,"/canvas");h(g,_,"toTempFilePath",{x:i,y:r,width:a,height:s,destWidth:c,destHeight:u,fileType:m,quality:v,dirname:b,callbackId:y})}else(0,d.invoke)(t,{errMsg:"canvasToTempFilePath:fail"})}t.CanvasContext=k,[].concat(y,b).forEach((function(e){function t(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:(0,r.default)(this.path)})};case"fillRect":return function(e,t,n,i){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,i]}]})};case"strokeRect":return function(e,t,n,i){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,i]}]})};case"fillText":case"strokeText":return function(t,n,i,o){var r=[t.toString(),n,i];"number"===typeof o&&r.push(o),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,i,o,r,a,s,c,u){var l;function d(e){return"number"===typeof e}void 0===u&&(a=n,s=i,c=o,u=r,n=void 0,i=void 0,o=void 0,r=void 0),l=d(n)&&d(i)&&d(o)&&d(r)?[t,a,s,c,u,n,i,o,r]:d(c)&&d(u)?[t,a,s,c,u]:[t,a,s],this.actions.push({method:e,data:l})};default:return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.actions.push({method:e,data:n})}}}k.prototype[e]=t(e)})),M.forEach((function(e){function t(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!==typeof t?this.actions.push({method:e,data:["normal",m(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,i,o){o=m(o),this.actions.push({method:e,data:[t,n,i,o]}),this.state.shadowBlur=i,this.state.shadowColor=o,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this.actions.push({method:e,data:n})}}}k.prototype[e]=t(e)}))}).call(this,n("a9aa"),n("5a52")["default"])},"8a50":function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.requestComponentInfo=s;var o=i(n("ff22")),r=n("9d8c"),a=(0,o.default)("requestComponentInfo");function s(t,n,i){e.publishHandler("requestComponentInfo",{reqId:a.push(i),reqs:n},(0,r.checkInWindows)(t)?t:t.$page.id)}}).call(this,n("a9aa"))},"8a59":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},"8a79":function(e,t,n){"use strict";var i=n("23e7"),o=n("06cf").f,r=n("50c4"),a=n("5a34"),s=n("1d80"),c=n("ab13"),u=n("c430"),l="".endsWith,d=Math.min,f=c("endsWith"),p=!u&&!f&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!p&&!f},{endsWith:function(e){var t=String(s(this));a(e);var n=arguments.length>1?arguments[1]:void 0,i=r(t.length),o=void 0===n?i:d(r(n),i),c=String(e);return l?l.call(t,c,o):t.slice(o-c.length,o)===c}})},"8a9b":function(e,t,n){n("4160"),n("fb6a"),n("f4b3"),n("6c57"),n("a9e3"),n("d3b7"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("1276"),n("bf19"),function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,i="millisecond",o="second",r="minute",a="hour",s="day",c="week",u="month",l="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},_={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(i,u),r=n-o<0,a=t.clone().add(i+(r?-1:1),u);return+(-(i+(n-o)/(r?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:c,d:s,D:f,h:a,m:r,s:o,ms:i,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",b={};b[y]=m;var M=function(e){return e instanceof T},S=function e(t,n,i){var o;if(!t)return y;if("string"==typeof t){var r=t.toLowerCase();b[r]&&(o=r),n&&(b[r]=n,o=r);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!i&&o&&(y=o),o||!i&&y},C=function(e,t){if(M(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},k=_;k.l=S,k.i=M,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e)}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(h);if(i){var o=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return C(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<C(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,i=!!k.u(t)||t,l=k.p(e),p=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?o:o.endOf(s)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,_="set"+(this.$u?"UTC":"");switch(l){case d:return i?p(1,0):p(31,11);case u:return i?p(1,m):p(0,m+1);case c:var y=this.$locale().weekStart||0,b=(g<y?g+7:g)-y;return p(i?v-b:v+(6-b),m);case s:case f:return h(_+"Hours",0);case a:return h(_+"Minutes",1);case r:return h(_+"Seconds",2);case o:return h(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,c=k.p(e),l="set"+(this.$u?"UTC":""),p=(n={},n[s]=l+"Date",n[f]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[a]=l+"Hours",n[r]=l+"Minutes",n[o]=l+"Seconds",n[i]=l+"Milliseconds",n)[c],h=c===s?this.$D+(t-this.$W):t;if(c===u||c===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(i,l){var f,p=this;i=Number(i);var h=k.p(l),g=function(e){var t=C(p);return k.w(t.date(t.date()+Math.round(e*i)),p)};if(h===u)return this.set(u,this.$M+i);if(h===d)return this.set(d,this.$y+i);if(h===s)return g(1);if(h===c)return g(7);var m=(f={},f[r]=t,f[a]=n,f[o]=e,f)[h]||1,v=this.$d.getTime()+i*m;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var i=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),r=this.$H,a=this.$m,s=this.$M,c=n.weekdays,u=n.months,l=function(e,n,o,r){return e&&(e[n]||e(t,i))||o[n].slice(0,r)},d=function(e){return k.s(r%12||12,e,"0")},f=n.meridiem||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:k.s(s+1,2,"0"),MMM:l(n.monthsShort,s,u,3),MMMM:l(u,s),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:k.s(r,2,"0"),h:d(1),hh:d(2),a:f(r,a,!0),A:f(r,a,!1),m:String(a),mm:k.s(a,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:o};return i.replace(g,(function(e,t){return t||h[e]||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,f,p){var h,g=k.p(f),m=C(i),v=(m.utcOffset()-this.utcOffset())*t,_=this-m,y=k.m(this,m);return y=(h={},h[d]=y/12,h[u]=y,h[l]=y/3,h[c]=(_-v)/6048e5,h[s]=(_-v)/864e5,h[a]=_/n,h[r]=_/t,h[o]=_/e,h)[g]||_,p?y:k.a(y)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=S(e,t,!0);return i&&(n.$L=i),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),I=T.prototype;return C.prototype=I,[["$ms",i],["$s",o],["$m",r],["$H",a],["$W",s],["$M",u],["$y",d],["$D",f]].forEach((function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=S,C.isDayjs=M,C.unix=function(e){return C(1e3*e)},C.en=b[y],C.Ls=b,C.p={},C}))},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8aa7":function(e,t,n){var i=n("da84"),o=n("d039"),r=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,c=i.Int8Array;e.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!r((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(new s(2),1,void 0).length}))},"8b91":function(e,t,n){"use strict";n("99af"),n("4160"),n("13d5"),n("acd8"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("db6a"),o=n("64fe");function r(e){return Math.sqrt(e.x*e.x+e.y*e.y)}var a={name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},data:function(){return{width:0,height:0,items:[]}},created:function(){this.gapV={x:null,y:null},this.pinchStartLen=null},mounted:function(){this._resize(),(0,o.initScrollBounce)()},methods:{_resize:function(){this._getWH(),this.items.forEach((function(e,t){e.componentInstance.setParent()}))},_find:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.items,n=this.$el;function i(e){for(var o=0;o<t.length;o++){var r=t[o];if(e===r.componentInstance.$el)return r}return e===n||e===document.body||e===document?null:i(e.parentNode)}return i(e)},_touchstart:function(e){(0,o.disableScrollBounce)({disable:!0});var t=e.touches;if(t&&t.length>1){var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(this.pinchStartLen=r(n),this.gapV=n,!this.scaleArea){var i=this._find(t[0].target),a=this._find(t[1].target);this._scaleMovableView=i&&i===a?i:null}}},_touchmove:function(e){var t=e.touches;if(t&&t.length>1){e.preventDefault();var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==this.gapV.x&&this.pinchStartLen>0){var i=r(n)/this.pinchStartLen;this._updateScale(i)}this.gapV=n}},_touchend:function(e){(0,o.disableScrollBounce)({disable:!1});var t=e.touches;t&&t.length||e.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this.items.forEach((function(e){e.componentInstance._endScale()})):this._scaleMovableView&&this._scaleMovableView.componentInstance._endScale())},_updateScale:function(e){e&&1!==e&&(this.scaleArea?this.items.forEach((function(t){t.componentInstance._setScale(e)})):this._scaleMovableView&&this._scaleMovableView.componentInstance._setScale(e))},_getWH:function(){var e=window.getComputedStyle(this.$el),t=this.$el.getBoundingClientRect();this.width=t.width-["Left","Right"].reduce((function(t,n){return t+parseFloat(e["border"+n+"Width"])+parseFloat(e["padding"+n])}),0),this.height=t.height-["Top","Bottom"].reduce((function(t,n){return t+parseFloat(e["border"+n+"Width"])+parseFloat(e["padding"+n])}),0)}},render:function(e){var t=this,n=[],o=this.$slots.default&&(0,i.deepClone)(this.$slots.default,e);o&&o.forEach((function(e){e.componentOptions&&"v-uni-movable-view"===e.componentOptions.tag&&n.push(e)})),this.items=n;var r=Object.assign({},this.$listeners),a=["touchstart","touchmove","touchend"];return a.forEach((function(e){var n=r[e],i=t["_".concat(e)];r[e]=n?[].concat(n,i):i})),e("uni-movable-area",{on:r},[e("v-uni-resize-sensor",{on:{resize:this._resize}}),o])}};t.default=a},"8bae":function(e,t,n){"use strict";(function(e){function n(t,n){var i=t.filePath,o=e,r=o.invokeCallbackHandler;window.open(i),r(n,{errMsg:"openDocument:ok"})}Object.defineProperty(t,"__esModule",{value:!0}),t.openDocument=n}).call(this,n("a9aa"))},"8bd0":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-resize-sensor",{on:{"~animationstart":function(t){return e.update(t)}}},[n("div",{on:{scroll:e.update}},[n("div")]),n("div",{on:{scroll:e.update}},[n("div")])])},r=[]},"8cd0":function(e,t,n){"use strict";n.r(t);var i=n("3316"),o=n("094d");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"8deb":function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("d81d"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.createIntersectionObserver=f;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ff22")),s=n("9d8c"),c=n("2412"),u=(0,a.default)("requestComponentObserver"),l={thresholds:[0],initialRatio:0,observeAll:!1},d=function(){function t(e,n){(0,o.default)(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=Object.assign({},l,n)}return(0,r.default)(t,[{key:"_makeRootMargin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options.rootMargin=["top","right","bottom","left"].map((function(t){return"".concat(Number(e[t])||0,"px")})).join(" ")}},{key:"relativeTo",value:function(e,t){return this.options.relativeToSelector=e,this._makeRootMargin(t),this}},{key:"relativeToViewport",value:function(e){return this.options.relativeToSelector=null,this._makeRootMargin(e),this}},{key:"observe",value:function(t,n){"function"===typeof n&&(this.options.selector=t,this.reqId=u.push(n),e.publishHandler("requestComponentObserver",{reqId:this.reqId,component:this.component,options:this.options},(0,s.checkInWindows)(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyComponentObserver",{reqId:this.reqId},(0,s.checkInWindows)(this.component)?this.component:this.pageId)}}]),t}();function f(e,t){return e._isVue||(t=e,e=null),new d(e||(0,c.getCurrentPageVm)("createIntersectionObserver"),t)}}).call(this,n("a9aa"))},9066:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TEMP_PATH=void 0;var i="";t.TEMP_PATH=i},"90de":function(e,t,n){"use strict";n.r(t);var i=n("457d"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},"90fe":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getApiCallbacks=r;var i=n("db6a"),o=n("9f49");function r(e){var t={};for(var n in e){var r=e[n];(0,i.isFn)(r)&&(t[n]=(0,o.tryCatch)(r),delete e[n])}return t}},9112:function(e,t,n){var i=n("83ab"),o=n("9bf2"),r=n("5c6c");e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"917f":function(e,t,n){"use strict";n("4160"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},watch:{src:function(e,t){this.iframe&&(this.iframe.src=this.$getRealPath(this.src))}},mounted:function(){var e=this;this.iframe=document.createElement("iframe"),Object.keys(this.$attrs).forEach((function(t){e.iframe[t]=e.$attrs[t]})),this.iframe.src=this.$getRealPath(this.src),this.fullscreen?document.body.appendChild(this.iframe):this.$refs.webviewContainer.appendChild(this.iframe),this._resize()},activated:function(){this.fullscreen&&(this.iframe.style.display="block")},deactivated:function(){this.fullscreen&&(this.iframe.style.display="none")},beforeDestroy:function(){this.fullscreen&&document.body.removeChild(this.iframe)},methods:{_resize:function(){if(this.fullscreen){var e=this.$el.getBoundingClientRect(),t=e.top,n=e.left,i=e.width,o=e.height;this.iframe.style.position="absolute",this.iframe.style.display="block",this.iframe.style.border=0,this.iframe.style.top=t+"px",this.iframe.style.left=n+"px",this.iframe.style.width=i+"px",this.iframe.style.height=o+"px"}else this.iframe.style.width=this.$refs.webviewContainer.style.width||"300px",this.iframe.style.height=this.$refs.webviewContainer.style.height||"150px"}}};t.default=i},"91e0":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.responsive?n("uni-layout",{class:{"uni-app--showlayout":e.showLayout,"uni-app--showtopwindow":e.showTopWindow,"uni-app--showleftwindow":e.showLeftWindow,"uni-app--showrightwindow":e.showRightWindow}},[e.topWindow?n("uni-top-window",{directives:[{name:"show",rawName:"v-show",value:e.showTopWindow||e.apiShowTopWindow,expression:"showTopWindow || apiShowTopWindow"}]},[n("div",{ref:"topWindow",staticClass:"uni-top-window",style:e.topWindowStyle},[n("v-uni-top-window",e._b({ref:"top",attrs:{"navigation-bar-title-text":e.navigationBarTitleText},on:{"hook:mounted":e.onTopWindowInit}},"v-uni-top-window",e.bindWindow,!1))],1),n("div",{staticClass:"uni-top-window--placeholder",style:{height:e.topWindowHeight}})]):e._e(),n("uni-content",[n("uni-main",[n("keep-alive",{attrs:{include:e.keepAliveInclude}},[n("router-view",{key:e.routerKey})],1)],1),e.leftWindow?n("uni-left-window",{directives:[{name:"show",rawName:"v-show",value:e.showLeftWindow||e.apiShowLeftWindow,expression:"showLeftWindow || apiShowLeftWindow"}],ref:"leftWindow",style:e.leftWindowStyle,attrs:{"data-show":e.apiShowLeftWindow}},[e.apiShowLeftWindow?n("div",{staticClass:"uni-mask",on:{click:function(t){e.apiShowLeftWindow=!1}}}):e._e(),n("div",{staticClass:"uni-left-window"},[n("v-uni-left-window",e._b({ref:"left",on:{"hook:mounted":e.onLeftWindowInit}},"v-uni-left-window",e.bindWindow,!1))],1)]):e._e(),e.rightWindow?n("uni-right-window",{directives:[{name:"show",rawName:"v-show",value:e.showRightWindow||e.apiShowRightWindow,expression:"showRightWindow || apiShowRightWindow"}],ref:"rightWindow",style:e.rightWindowStyle,attrs:{"data-show":e.apiShowRightWindow}},[e.apiShowRightWindow?n("div",{staticClass:"uni-mask",on:{click:function(t){e.apiShowRightWindow=!1}}}):e._e(),n("div",{staticClass:"uni-right-window"},[n("v-uni-right-window",e._b({ref:"right",on:{"hook:mounted":e.onRightWindowInit}},"v-uni-right-window",e.bindWindow,!1))],1)]):e._e()],1)],1):n("keep-alive",{attrs:{include:e.keepAliveInclude}},[n("router-view",{key:e.routerKey})],1)},r=[]},9235:function(e,t,n){"use strict";n.r(t);var i=n("d687"),o=n("9b91");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},9263:function(e,t,n){"use strict";var i=n("ad6d"),o=n("9f7f"),r=RegExp.prototype.exec,a=String.prototype.replace,s=r,c=function(){var e=/a/,t=/b*/g;return r.call(e,"a"),r.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),u=o.UNSUPPORTED_Y||o.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],d=c||l||u;d&&(s=function(e){var t,n,o,s,d=this,f=u&&d.sticky,p=i.call(d),h=d.source,g=0,m=e;return f&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),m=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,g++),n=new RegExp("^(?:"+h+")",p)),l&&(n=new RegExp("^"+h+"$(?!\\s)",p)),c&&(t=d.lastIndex),o=r.call(f?n:d,m),f?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:c&&o&&(d.lastIndex=d.global?o.index+o[0].length:t),l&&o&&o.length>1&&a.call(o[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(o[s]=void 0)})),o}),e.exports=s},"944a":function(e,t,n){var i=n("746f");i("toStringTag")},"945c":function(e,t,n){"use strict";var i=n("4ea4");n("7db0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o=n("559a"),r=n("be9c"),a=i(n("f638"));function s(e,t){var n=t.getApp,i=t.getCurrentPages;function s(e){(0,o.callAppHook)(n(),"onError",e)}function c(e){(0,o.callAppHook)(n(),"onPageNotFound",e)}function u(e,t){var n=i().find((function(e){return e.$page.id===t}));n&&(0,o.callPageHook)(n,"onResize",e)}function l(e,t){var n=i().find((function(e){return e.$page.id===t}));n&&((0,r.setPullDownRefreshPageId)(t),(0,o.callPageHook)(n,"onPullDownRefresh"))}function d(e,t){var n=i();n.length&&(0,o.callPageHook)(n[n.length-1],e,t)}function f(e){return function(t){d(e,t)}}function p(){(0,o.callAppHook)(n(),"onHide"),d("onHide")}function h(e){(0,o.callAppHook)(n(),"onShow",e);var t=i();0!==t.length&&d("onShow")}e("onError",s),e("onPageNotFound",c),e("onAppEnterBackground",p),e("onAppEnterForeground",h),e("onResize",u),e("onPullDownRefresh",l),e("onTabItemTap",f("onTabItemTap")),e("onNavigationBarButtonTap",f("onNavigationBarButtonTap")),e("onNavigationBarSearchInputChanged",f("onNavigationBarSearchInputChanged")),e("onNavigationBarSearchInputConfirmed",f("onNavigationBarSearchInputConfirmed")),e("onNavigationBarSearchInputClicked",f("onNavigationBarSearchInputClicked")),e("onNavigationBarSearchInputFocusChanged",f("onNavigationBarSearchInputFocusChanged")),e("onWebInvokeAppService",a.default)}},"94ca":function(e,t,n){var i=n("d039"),o=/#|\.prototype\./,r=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?i(t):!!t)},a=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=r.data={},c=r.NATIVE="N",u=r.POLYFILL="P";e.exports=r},9582:function(e,t,n){"use strict";var i=n("4ea4");n("7db0"),n("4160"),n("c975"),n("a9e3"),n("e25e"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.unPreloadPage=t.preloadPage=t.navigateBack=t.switchTab=t.navigateTo=t.reLaunch=t.redirectTo=void 0;var o,r=i(n("5b80"));function a(e){if("string"!==typeof e)return e;var t=e.indexOf("?");if(-1===t)return e;var n=e.substr(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.substr(0,t);var i=[];return n.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),o=t.length>0?t.join("="):"";i.push(n+"="+encodeURIComponent(o))})),i.length?e+"?"+i.join("&"):e}function s(e){return function(t,n){t=(0,r.default)(t);var i=t.split("?")[0],s=__uniRoutes.find((function(e){var t=e.path,n=e.alias;return t===i||n===i}));if(!s)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(s.meta.isTabBar)return"can not ".concat(e," a tabbar page")}else if("switchTab"===e&&!s.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!s.meta.isTabBar||"appLaunch"===n.openType||(t=i),s.meta.isEntry&&(t=t.replace(s.alias,"/")),n.url=a(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(o===t&&"appLaunch"!==n.openType)return"".concat(o," locked");__uniConfig.ready&&!1!==__uniConfig.enableNavigatorLock&&(o=t)}else if(s.meta.isTabBar){var c=getCurrentPages(!0),u=(s.alias||s.path).substr(1);if(c.find((function(e){return e.route===u})))return"tabBar page `"+u+"` already exists"}}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:s(e)},beforeAll:function(){o=""}},t)}function u(e){return{animationType:{type:String,validator:function(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}var l=c("redirectTo");t.redirectTo=l;var d=c("reLaunch");t.reLaunch=d;var f=c("navigateTo",u(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]));t.navigateTo=f;var p=c("switchTab");t.switchTab=p;var h=Object.assign({delta:{type:Number,validator:function(e,t){e=parseInt(e)||1,t.delta=Math.min(getCurrentPages().length-1,e)}}},u(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]));t.navigateBack=h;var g={url:{type:String,required:!0,validator:s("preloadPage")}};t.preloadPage=g;var m={url:{type:String,required:!0,validator:s("unPreloadPage")}};t.unPreloadPage=m},9617:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-image",e._g({},e.$listeners),[n("div",{ref:"content",style:e.style}),"widthFix"===e.mode||"heightFix"===e.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(t){return e._fixSize()}}}):e._e()],1)},r=[]},9805:function(e,t,n){"use strict";n("4de4"),n("4160"),n("d81d"),n("b64b"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276"),n("498a"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=c,t.stringifyQuery=u,t.decodedQuery=l;var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},r=/%2C/g,a=function(e){return encodeURIComponent(e).replace(i,o).replace(r,",")},s=decodeURIComponent;function c(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=s(n.shift()),o=n.length>0?s(n.join("=")):null;void 0===t[i]?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]})),t):t}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=e?Object.keys(e).map((function(n){var i=e[n];if(void 0===i)return"";if(null===i)return t(n);if(Array.isArray(i)){var o=[];return i.forEach((function(e){void 0!==e&&(null===e?o.push(t(n)):o.push(t(n)+"="+t(e)))})),o.join("&")}return t(n)+"="+t(i)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){try{t[n]=s(e[n])}catch(i){t[n]=e[n]}})),t}},"983e":function(e,t,n){n("99af");var i=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor","interceptors"],o=["request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","getUpdateManager","configMTLS"],r=["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],a=["setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync"],s=["getLocation","chooseLocation","openLocation","createMapContext"],c=["chooseImage","chooseFile","previewImage","closePreviewImage","getImageInfo","getVideoInfo","saveImageToPhotosAlbum","compressImage","compressVideo","getRecorderManager","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext"],u=["getSystemInfo","getSystemInfoSync","getWindowInfo","getDeviceInfo","getAppBaseInfo","canIUse","onMemoryWarning","getNetworkType","onNetworkStatusChange","offNetworkStatusChange","onAccelerometerChange","offAccelerometerChange","startAccelerometer","stopAccelerometer","onCompassChange","offCompassChange","startCompass","stopCompass","onGyroscopeChange","startGyroscope","stopGyroscope","makePhoneCall","scanCode","setClipboardData","getClipboardData","setScreenBrightness","getScreenBrightness","setKeepScreenOn","onUserCaptureScreen","vibrateLong","vibrateShort","addPhoneContact","openBluetoothAdapter","startBluetoothDevicesDiscovery","onBluetoothDeviceFound","stopBluetoothDevicesDiscovery","onBluetoothAdapterStateChange","getConnectedBluetoothDevices","getBluetoothDevices","getBluetoothAdapterState","closeBluetoothAdapter","writeBLECharacteristicValue","readBLECharacteristicValue","onBLEConnectionStateChange","onBLECharacteristicValueChange","notifyBLECharacteristicValueChange","getBLEDeviceServices","getBLEDeviceCharacteristics","createBLEConnection","closeBLEConnection","setBLEMTU","getBLEDeviceRSSI","onBeaconServiceChange","onBeaconUpdate","getBeacons","startBeaconDiscovery","stopBeaconDiscovery","checkIsSupportSoterAuthentication","checkIsSoterEnrolledInDevice","startSoterAuthentication","onThemeChange","onUIStyleChange","getSystemSetting","getAppAuthorizeSetting","openAppAuthorizeSetting"],l=["hideKeyboard","onKeyboardHeightChange","offKeyboardHeightChange","getSelectedTextRange"],d=["showToast","hideToast","showLoading","hideLoading","showModal","showActionSheet","setNavigationBarTitle","setNavigationBarColor","showNavigationBarLoading","hideNavigationBarLoading","setTabBarItem","setTabBarStyle","hideTabBar","showTabBar","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot","onTabBarMidButtonTap","setBackgroundColor","setBackgroundTextStyle","createAnimation","pageScrollTo","onWindowResize","offWindowResize","loadFontFace","startPullDownRefresh","stopPullDownRefresh","createSelectorQuery","createIntersectionObserver","createMediaQueryObserver","getMenuButtonBoundingClientRect","showTopWindow","showLeftWindow","showRightWindow","hideTopWindow","hideLeftWindow","hideRightWindow","getTopWindowStyle","getLeftWindowStyle","getRightWindowStyle","setTopWindowStyle","setLeftWindowStyle","setRightWindowStyle","getLocale","setLocale","onLocaleChange"],f=["$emit","$on","$once","$off"],p=["saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager"],h=["createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData"],g=["getProvider","login","checkSession","getUserInfo","getUserProfile","preLogin","closeAuthView","getCheckBoxState","getUniverifyManager","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","requireGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onHostEventReceive","onNativeEventReceive","sendNativeEvent","preloadPage","unPreloadPage","loadSubPackage","sendHostEvent","navigateToMiniProgram","getLaunchOptionsSync","getEnterOptionsSync"],m=["createRewardedVideoAd","createFullScreenVideoAd","createInterstitialAd","createInteractiveAd"],v=["invokePushCallback","getPushClientId","onPushMessage","offPushMessage","createPushMessage"],_=[].concat(i,o,r,a,s,c,u,l,d,f,p,h,g,m,v);e.exports=_},9861:function(e,t,n){"use strict";n("e260");var i=n("23e7"),o=n("d066"),r=n("0d3b"),a=n("6eeb"),s=n("e2cc"),c=n("d44e"),u=n("9ed3"),l=n("69f3"),d=n("19aa"),f=n("5135"),p=n("0366"),h=n("f5df"),g=n("825a"),m=n("861d"),v=n("7c73"),_=n("5c6c"),y=n("9a1f"),b=n("35a1"),M=n("b622"),S=o("fetch"),C=o("Headers"),k=M("iterator"),T="URLSearchParams",I=T+"Iterator",w=l.set,A=l.getterFor(T),E=l.getterFor(I),O=/\+/g,x=Array(4),D=function(e){return x[e-1]||(x[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},N=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(O," "),n=4;try{return decodeURIComponent(t)}catch(i){while(n)t=t.replace(D(n--),N);return t}},L=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},U=function(e){return P[e]},G=function(e){return encodeURIComponent(e).replace(L,U)},F=function(e,t){if(t){var n,i,o=t.split("&"),r=0;while(r<o.length)n=o[r++],n.length&&(i=n.split("="),e.push({key:R(i.shift()),value:R(i.join("="))}))}},B=function(e){this.entries.length=0,F(this.entries,e)},q=function(e,t){if(e<t)throw TypeError("Not enough arguments")},j=u((function(e,t){w(this,{type:I,iterator:y(A(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),$=function(){d(this,$,T);var e,t,n,i,o,r,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,p=[];if(w(l,{type:T,entries:p,updateURL:function(){},updateSearchParams:B}),void 0!==u)if(m(u))if(e=b(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(i=n.call(t)).done){if(o=y(g(i.value)),r=o.next,(a=r.call(o)).done||(s=r.call(o)).done||!r.call(o).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:s.value+""})}}else for(c in u)f(u,c)&&p.push({key:c,value:u[c]+""});else F(p,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},H=$.prototype;s(H,{append:function(e,t){q(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){q(arguments.length,1);var t=A(this),n=t.entries,i=e+"",o=0;while(o<n.length)n[o].key===i?n.splice(o,1):o++;t.updateURL()},get:function(e){q(arguments.length,1);for(var t=A(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){q(arguments.length,1);for(var t=A(this).entries,n=e+"",i=[],o=0;o<t.length;o++)t[o].key===n&&i.push(t[o].value);return i},has:function(e){q(arguments.length,1);var t=A(this).entries,n=e+"",i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){q(arguments.length,1);for(var n,i=A(this),o=i.entries,r=!1,a=e+"",s=t+"",c=0;c<o.length;c++)n=o[c],n.key===a&&(r?o.splice(c--,1):(r=!0,n.value=s));r||o.push({key:a,value:s}),i.updateURL()},sort:function(){var e,t,n,i=A(this),o=i.entries,r=o.slice();for(o.length=0,n=0;n<r.length;n++){for(e=r[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}i.updateURL()},forEach:function(e){var t,n=A(this).entries,i=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;while(o<n.length)t=n[o++],i(t.value,t.key,this)},keys:function(){return new j(this,"keys")},values:function(){return new j(this,"values")},entries:function(){return new j(this,"entries")}},{enumerable:!0}),a(H,k,H.entries),a(H,"toString",(function(){var e,t=A(this).entries,n=[],i=0;while(i<t.length)e=t[i++],n.push(G(e.key)+"="+G(e.value));return n.join("&")}),{enumerable:!0}),c($,T),i({global:!0,forced:!r},{URLSearchParams:$}),r||"function"!=typeof S||"function"!=typeof C||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,o=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,h(n)===T&&(i=t.headers?new C(t.headers):new C,i.has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:_(0,String(n)),headers:_(0,i)}))),o.push(t)),S.apply(this,o)}}),e.exports={URLSearchParams:$,getState:A}},"987d":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"emitter",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"listeners",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"hover",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"subscriber",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"keyboard",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"field",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"interact",{enumerable:!0,get:function(){return l.default}});var o=i(n("64b2")),r=i(n("d8c3")),a=i(n("339f")),s=i(n("6b69")),c=i(n("1521")),u=i(n("1ead")),l=i(n("6b87"))},9910:function(e,t,n){"use strict";n.r(t);var i=n("0d04"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"99af":function(e,t,n){"use strict";var i=n("23e7"),o=n("d039"),r=n("e8b5"),a=n("861d"),s=n("7b0b"),c=n("50c4"),u=n("8418"),l=n("65f0"),d=n("1dde"),f=n("b622"),p=n("2d00"),h=f("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),_=d("concat"),y=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:r(e)},b=!v||!_;i({target:"Array",proto:!0,forced:b},{concat:function(e){var t,n,i,o,r,a=s(this),d=l(a,0),f=0;for(t=-1,i=arguments.length;t<i;t++)if(r=-1===t?a:arguments[t],y(r)){if(o=c(r.length),f+o>g)throw TypeError(m);for(n=0;n<o;n++,f++)n in r&&u(d,f,r[n])}else{if(f>=g)throw TypeError(m);u(d,f++,r)}return d.length=f,d}})},"99e0":function(e,t,n){"use strict";(function(e){n("4160"),n("ac1f"),n("5319"),n("1276"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={ensp:" ",emsp:" ",nbsp:" "},o={name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},methods:{_decodeHtml:function(e){return this.space&&i[this.space]&&(e=e.replace(/ /g,i[this.space])),this.decode&&(e=e.replace(/ /g,i.nbsp).replace(/ /g,i.ensp).replace(/ /g,i.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")),e}},render:function(t){var n=this,i=[];return this.$slots.default&&this.$slots.default.forEach((function(o){if(o.text){var r=o.text.replace(/\\n/g,"\n"),a=r.split("\n");a.forEach((function(e,o){i.push(n._decodeHtml(e)),o!==a.length-1&&i.push(t("br"))}))}else o.componentOptions&&"v-uni-text"!==o.componentOptions.tag&&e.warn("Do not nest other components in the text component, as there may be display differences on different platforms."),i.push(o)})),t("uni-text",{on:this.$listeners,attrs:{selectable:!!this.selectable}},[t("span",{},i)])}};t.default=o}).call(this,n("5a52")["default"])},"9a0c":function(e,t,n){var i=n("342f");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},"9a1f":function(e,t,n){var i=n("825a"),o=n("35a1");e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},"9a89":function(e,t,n){"use strict";(function(e,n){function i(t,n){return e.emit("api."+t,n)}function o(e,t,i){n.UniViewJSBridge.subscribeHandler(e,t,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.publish=i,t.publishHandler=o}).call(this,n("a9aa"),n("c8ba"))},"9a8c":function(e,t,n){"use strict";var i=n("ebb5"),o=n("145e"),r=i.aTypedArray,a=i.exportTypedArrayMethod;a("copyWithin",(function(e,t){return o.call(r(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9aa8":function(e,t,n){"use strict";n.r(t);var i=n("64d4"),o=n("90de");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"9adf":function(e,t,n){"use strict";n.r(t);var i=n("c3ab"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"9b91":function(e,t,n){"use strict";n.r(t);var i=n("186c"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"9bdd":function(e,t,n){var i=n("825a");e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(a){var r=e["return"];throw void 0!==r&&i(r.call(e)),a}}},"9bf2":function(e,t,n){var i=n("83ab"),o=n("0cfb"),r=n("825a"),a=n("c04e"),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return s(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c5e":function(e,t,n){"use strict";n.r(t);var i=n("bf94"),o=n("cb09");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"9c92":function(e,t,n){"use strict";(function(e,i){var o=n("4ea4");n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("db6a"),a=n("0fbe"),s=o(n("350a")),c=o(n("f262")),u=n("631a"),l={name:"App",components:s.default,mixins:c.default,props:{keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{transitionName:"fade",hideTabBar:!1,sysComponents:this.$sysComponents,showLayout:!1,showMaxWidth:!1,tabBarMediaQuery:!1}},computed:{key:function(){return this.$route.meta.name+"-"+this.$route.params.__id__+"-"+(__uniConfig.reLaunch||1)},tabBarOptions:function(){return u.tabBar},hasTabBar:function(){return u.tabBar.list&&u.tabBar.list.length},showTabBar:function(){return!this.hideTabBar&&(this.$route.meta.isTabBar||this.tabBarMediaQuery)}},watch:{$route:function(t,n){e.emit("onHidePopup")},hideTabBar:function(e,t){if(uni.canIUse("css.var")){var n=e?0:a.TABBAR_HEIGHT,o=uni.canIUse("css.env")?"env":uni.canIUse("css.constant")?"constant":"",r=n&&o?"calc(".concat(n,"px + ").concat(o,"(safe-area-inset-bottom))"):"".concat(n,"px");document.documentElement.style.setProperty("--window-bottom",r),i.debug("uni.".concat(r?"showTabBar":"hideTabBar",":--window-bottom=").concat(r))}window.dispatchEvent(new CustomEvent("resize"))}},created:function(){uni.canIUse("css.var")&&document.documentElement.style.setProperty("--status-bar-height","0px"),this.initMediaQuery()},mounted:function(){window.addEventListener("message",(function(t){(0,r.isPlainObject)(t.data)&&"WEB_INVOKE_APPSERVICE"===t.data.type&&e.emit("onWebInvokeAppService",t.data.data,t.data.pageId)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?e.emit("onAppEnterForeground",{}):e.emit("onAppEnterBackground")}))},methods:{onLayout:function(e){this.showLayout=e},onMaxWidth:function(e){this.showMaxWidth=e},initMediaQuery:function(){var e=this;if(window.matchMedia&&u.tabBar.matchMedia&&(0,r.hasOwn)(u.tabBar.matchMedia,"minWidth")){var t=window.matchMedia("(min-width: "+u.tabBar.matchMedia.minWidth+"px)");t.addListener((function(t){e.tabBarMediaQuery=t.matches})),this.tabBarMediaQuery=t.matches}}}};t.default=l}).call(this,n("a9aa"),n("5a52")["default"])},"9cfb":function(e,t,n){"use strict";function i(e){var t=e.phoneNumber;return window.location.href="tel:".concat(t),{errMsg:"makePhoneCall:ok"}}Object.defineProperty(t,"__esModule",{value:!0}),t.makePhoneCall=i},"9d8c":function(e,t,n){"use strict";n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.checkInWindows=o;var i=["VUniLeftWindow","VUniTopWindow","VUniRightWindow"];function o(e){while(e){if(-1!==i.indexOf(e.$options.name))return!0;e=e.$parent}}},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,o=n("7c73"),r=n("5c6c"),a=n("d44e"),s=n("3f8c"),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(i,{next:r(1,n)}),a(e,u,!1,!0),s[u]=c,e}},"9f04":function(e,t,n){"use strict";function i(e,t,n){return e>t-n&&e<t+n}function o(e,t){return i(e,0,t)}function r(){}function a(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function s(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function c(e,t,n){this._springX=new s(e,t,n),this._springY=new s(e,t,n),this._springScale=new s(e,t,n),this._startTime=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Decline=r,t.Friction=a,t.Spring=s,t.STD=c,r.prototype.x=function(e){return Math.sqrt(e)},a.prototype.setV=function(e,t){var n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},a.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},a.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);var t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},a.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},a.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},a.prototype.dt=function(){return-this._x_v/this._x_a},a.prototype.done=function(){var e=i(this.s().x,this._endPositionX)||i(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},a.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},a.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},s.prototype._solve=function(e,t){var n=this._c,i=this._m,o=this._k,r=n*n-4*i*o;if(0===r){var a=-n/(2*i),s=e,c=t/(a*e);return{x:function(e){return(s+c*e)*Math.pow(Math.E,a*e)},dx:function(e){var t=Math.pow(Math.E,a*e);return a*(s+c*e)*t+c*t}}}if(r>0){var u=(-n-Math.sqrt(r))/(2*i),l=(-n+Math.sqrt(r))/(2*i),d=(t-u*e)/(l-u),f=e-d;return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*t+d*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,u*e)),n||(n=this._powER2T=Math.pow(Math.E,l*e)),f*u*t+d*l*n}}}var p=Math.sqrt(4*i*o-n*n)/(2*i),h=-n/2*i,g=e,m=(t-h*e)/p;return{x:function(e){return Math.pow(Math.E,h*e)*(g*Math.cos(p*e)+m*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,h*e),n=Math.cos(p*e),i=Math.sin(p*e);return t*(m*p*n-g*p*i)+h*t*(m*i+g*n)}}},s.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},s.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},s.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!o(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(o(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),o(t,.1)&&(t=0),o(i,.1)&&(i=0),i+=this._endPosition),this._solution&&o(i-e,.1)&&o(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},s.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},s.prototype.done=function(e){return e||(e=(new Date).getTime()),i(this.x(),this._endPosition,.1)&&o(this.dx(),.1)},s.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},s.prototype.springConstant=function(){return this._k},s.prototype.damping=function(){return this._c},s.prototype.configuration=function(){function e(e,t){e.reconfigure(1,t,e.damping())}function t(e,t){e.reconfigure(1,e.springConstant(),t)}return[{label:"Spring Constant",read:this.springConstant.bind(this),write:e.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:t.bind(this,this),min:1,max:500}]},c.prototype.setEnd=function(e,t,n,i){var o=(new Date).getTime();this._springX.setEnd(e,i,o),this._springY.setEnd(t,i,o),this._springScale.setEnd(n,i,o),this._startTime=o},c.prototype.x=function(){var e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},c.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},c.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)}},"9f48":function(e,t,n){"use strict";n.r(t);var i=n("1239"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},"9f49":function(e,t,n){"use strict";(function(e){function n(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}function i(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.tryCatchFramework=n,t.tryCatch=i}).call(this,n("5a52")["default"])},"9f7f":function(e,t,n){"use strict";var i=n("d039");function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a078:function(e,t,n){var i=n("7b0b"),o=n("50c4"),r=n("35a1"),a=n("e95a"),s=n("0366"),c=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,u,l,d,f,p=i(e),h=arguments.length,g=h>1?arguments[1]:void 0,m=void 0!==g,v=r(p);if(void 0!=v&&!a(v)){d=v.call(p),f=d.next,p=[];while(!(l=f.call(d)).done)p.push(l.value)}for(m&&h>2&&(g=s(g,arguments[2],2)),n=o(p.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=m?g(p[t],t):p[t];return u}},a377:function(e,t,n){"use strict";n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=void 0;var i=["wgs84","gcj02"],o={type:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.type=i.indexOf(e)<0?i[0]:e}},altitude:{type:Boolean,default:!1}};t.getLocation=o},a434:function(e,t,n){"use strict";var i=n("23e7"),o=n("23cb"),r=n("a691"),a=n("50c4"),s=n("7b0b"),c=n("65f0"),u=n("8418"),l=n("1dde"),d=n("ae40"),f=l("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f||!p},{splice:function(e,t){var n,i,l,d,f,p,_=s(this),y=a(_.length),b=o(e,y),M=arguments.length;if(0===M?n=i=0:1===M?(n=0,i=y-b):(n=M-2,i=g(h(r(t),0),y-b)),y+n-i>m)throw TypeError(v);for(l=c(_,i),d=0;d<i;d++)f=b+d,f in _&&u(l,d,_[f]);if(l.length=i,n<i){for(d=b;d<y-i;d++)f=d+i,p=d+n,f in _?_[p]=_[f]:delete _[p];for(d=y;d>y-i+n;d--)delete _[d-1]}else if(n>i)for(d=y-i;d>b;d--)f=d+i-1,p=d+n-1,f in _?_[p]=_[f]:delete _[p];for(d=0;d<n;d++)_[d+b]=arguments[d+2];return _.length=y-i+n,l}})},a49f:function(e,t,n){"use strict";(function(e){n("ac1f"),n("5319"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.redirectTo=c,t.navigateTo=u,t.navigateBack=l,t.reLaunch=d,t.switchTab=f,t.preloadPage=p;var i=n("f4f0"),o=n("19bf"),r=e,a=r.invokeCallbackHandler;function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=t.delta,a=t.events,c=t.exists,u=t.animationType,l=t.animationDuration,d=t.from,f=void 0===d?"navigateBack":d,p=t.detail,h=getApp().$router;switch(delete h.$eventChannel,e){case"redirectTo":if("back"===c){var g=(0,i.findExistsPageIndex)(n);if(-1!==g){var m=getCurrentPages().length-1-g;if(m>0)return s("navigateBack",{delta:m})}}h.replace({type:e,path:n});break;case"navigateTo":return h.$eventChannel=(0,o.initEventChannel)(a),h.push({type:e,path:n,animationType:u,animationDuration:l}),{errMsg:e+":ok",eventChannel:h.$eventChannel};case"navigateBack":var v=!0,_=getCurrentPages();if(_.length){var y=_[_.length-1];(0,i.hasLifecycleHook)(y.$options,"onBackPress")&&!0===y.__call_hook("onBackPress",{from:f})&&(v=!1)}v&&(r>1&&(h._$delta=r),h.go(-r,{animationType:u,animationDuration:l}));break;case"reLaunch":h.replace({type:e,path:n});break;case"switchTab":h.replace({type:e,path:n,params:{detail:p}});break}return{errMsg:e+":ok"}}function c(e){return s("redirectTo",e)}function u(e){return s("navigateTo",e)}function l(e){return s("navigateBack",e)}function d(e){return s("reLaunch",e)}function f(e){return s("switchTab",e)}function p(e,t){var n=e.url,i=n.split("?")[0].replace(/\//g,"-");__uniConfig.__webpack_chunk_load__(i.substr(1)).then((function(){a(t,{url:n,errMsg:"preloadPage:ok"})})).catch((function(e){a(t,{url:n,errMsg:"preloadPage:fail "+e})}))}}).call(this,n("a9aa"))},a4bf:function(e,t,n){"use strict";n.r(t);var i=n("d961"),o=n("1768");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},a4d3:function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("d066"),a=n("c430"),s=n("83ab"),c=n("4930"),u=n("fdbf"),l=n("d039"),d=n("5135"),f=n("e8b5"),p=n("861d"),h=n("825a"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),_=n("5c6c"),y=n("7c73"),b=n("df75"),M=n("241c"),S=n("057f"),C=n("7418"),k=n("06cf"),T=n("9bf2"),I=n("d1e7"),w=n("9112"),A=n("6eeb"),E=n("5692"),O=n("f772"),x=n("d012"),D=n("90e3"),N=n("b622"),R=n("e538"),L=n("746f"),P=n("d44e"),U=n("69f3"),G=n("b727").forEach,F=O("hidden"),B="Symbol",q="prototype",j=N("toPrimitive"),$=U.set,H=U.getterFor(B),V=Object[q],z=o.Symbol,K=r("JSON","stringify"),W=k.f,Y=T.f,X=S.f,J=I.f,Q=E("symbols"),Z=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),ne=E("wks"),ie=o.QObject,oe=!ie||!ie[q]||!ie[q].findChild,re=s&&l((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=W(V,t);i&&delete V[t],Y(e,t,n),i&&e!==V&&Y(V,t,i)}:Y,ae=function(e,t){var n=Q[e]=y(z[q]);return $(n,{type:B,tag:e,description:t}),s||(n.description=t),n},se=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},ce=function(e,t,n){e===V&&ce(Z,t,n),h(e);var i=v(t,!0);return h(n),d(Q,i)?(n.enumerable?(d(e,F)&&e[F][i]&&(e[F][i]=!1),n=y(n,{enumerable:_(0,!1)})):(d(e,F)||Y(e,F,_(1,{})),e[F][i]=!0),re(e,i,n)):Y(e,i,n)},ue=function(e,t){h(e);var n=m(t),i=b(n).concat(he(n));return G(i,(function(t){s&&!de.call(n,t)||ce(e,t,n[t])})),e},le=function(e,t){return void 0===t?y(e):ue(y(e),t)},de=function(e){var t=v(e,!0),n=J.call(this,t);return!(this===V&&d(Q,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,F)&&this[F][t])||n)},fe=function(e,t){var n=m(e),i=v(t,!0);if(n!==V||!d(Q,i)||d(Z,i)){var o=W(n,i);return!o||!d(Q,i)||d(n,F)&&n[F][i]||(o.enumerable=!0),o}},pe=function(e){var t=X(m(e)),n=[];return G(t,(function(e){d(Q,e)||d(x,e)||n.push(e)})),n},he=function(e){var t=e===V,n=X(t?Z:m(e)),i=[];return G(n,(function(e){!d(Q,e)||t&&!d(V,e)||i.push(Q[e])})),i};if(c||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=D(e),n=function(e){this===V&&n.call(Z,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),re(this,t,_(1,e))};return s&&oe&&re(V,t,{configurable:!0,set:n}),ae(t,e)},A(z[q],"toString",(function(){return H(this).tag})),A(z,"withoutSetter",(function(e){return ae(D(e),e)})),I.f=de,T.f=ce,k.f=fe,M.f=S.f=pe,C.f=he,R.f=function(e){return ae(N(e),e)},s&&(Y(z[q],"description",{configurable:!0,get:function(){return H(this).description}}),a||A(V,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),G(b(ne),(function(e){L(e)})),i({target:B,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=z(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!s},{create:le,defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:fe}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),i({target:"Object",stat:!0,forced:l((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(g(e))}}),K){var ge=!c||l((function(){var e=z();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}));i({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var i,o=[e],r=1;while(arguments.length>r)o.push(arguments[r++]);if(i=t,(p(t)||void 0!==e)&&!se(e))return f(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!se(t))return t}),o[1]=t,K.apply(null,o)}})}z[q][j]||w(z[q],j,z[q].valueOf),P(z,B),x[F]=!0},a524:function(e,t,n){"use strict";n.r(t);var i=n("91e0"),o=n("79ae");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},a53c:function(e,t,n){"use strict";n.r(t);var i=n("abf4"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},a55c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canIUse=void 0;var i=[{name:"schema",type:String,required:!0}];t.canIUse=i},a5e0:function(e,t,n){"use strict";n("99af"),n("c975"),n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.isContextApi=d,t.isSyncApi=f,t.isCallbackApi=p,t.isTaskApi=h,t.shouldPromise=m,t.promisify=v;var i=n("db6a"),o=n("fe67"),r=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting/,a=/^create|Manager$/,s=["createBLEConnection"],c=["request","downloadFile","uploadFile","connectSocket"],u=["createBLEConnection","createPushMessage"],l=/^on|^off/;function d(e){return a.test(e)&&-1===s.indexOf(e)}function f(e){return r.test(e)&&-1===u.indexOf(e)}function p(e){return l.test(e)&&"onPush"!==e}function h(e){return-1!==c.indexOf(e)}function g(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function m(e){return!(d(e)||f(e)||p(e))}function v(e,t){return m(e)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return(0,i.isFn)(n.success)||(0,i.isFn)(n.fail)||(0,i.isFn)(n.complete)?(0,o.wrapperReturnValue)(e,o.invokeApi.apply(void 0,[e,t,n].concat(a))):(0,o.wrapperReturnValue)(e,g(new Promise((function(i,r){o.invokeApi.apply(void 0,[e,t,Object.assign({},n,{success:i,fail:r})].concat(a))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))})},a623:function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").every,r=n("a640"),a=n("ae40"),s=r("every"),c=a("every");i({target:"Array",proto:!0,forced:!s||!c},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var i=n("23e7"),o=n("4df4"),r=n("1c7e"),a=!r((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:a},{from:o})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a68d:function(e,t,n){"use strict";n("c975"),n("07ac"),Object.defineProperty(t,"__esModule",{value:!0}),t.getProvider=void 0;var i={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},o={service:{type:String,required:!0,validator:function(e,t){if(e=(e||"").toUpperCase(),e&&Object.values(i).indexOf(e)<0)return"service error"}}};t.getProvider=o},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a79d:function(e,t,n){"use strict";var i=n("23e7"),o=n("c430"),r=n("fea9"),a=n("d039"),s=n("d066"),c=n("4840"),u=n("cdf9"),l=n("6eeb"),d=!!r&&a((function(){r.prototype["finally"].call({then:function(){}},(function(){}))}));i({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof r||r.prototype["finally"]||l(r.prototype,"finally",s("Promise").prototype["finally"])},a7a7:function(e,t,n){"use strict";n.r(t),function(e){function n(e,t){0}function i(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function o(e,t){for(var n in t)e[n]=t[n];return e}var r={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,r=t.parent,s=t.data;s.routerView=!0;var c=r.$createElement,u=n.name,l=r.$route,d=r._routerViewCache||(r._routerViewCache={}),f=0,p=!1;while(r&&r._routerRoot!==r)r.$vnode&&r.$vnode.data.routerView&&f++,r._inactive&&(p=!0),r=r.$parent;if(s.routerViewDepth=f,p)return c(d[u],s,i);var h=l.matched[f];if(!h)return d[u]=null,c();var g=d[u]=h.components[u];s.registerRouteInstance=function(e,t){var n=h.instances[u];(t&&n!==e||!t&&n===e)&&(h.instances[u]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){h.instances[u]=t.componentInstance};var m=s.props=a(l,h.props&&h.props[u]);if(m){m=s.props=o({},m);var v=s.attrs=s.attrs||{};for(var _ in m)g.props&&_ in g.props||(v[_]=m[_],delete m[_])}return c(g,s,i)}};function a(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}var s=/[!'()*]/g,c=function(e){return"%"+e.charCodeAt(0).toString(16)},u=/%2C/g,l=function(e){return encodeURIComponent(e).replace(s,c).replace(u,",")},d=decodeURIComponent;function f(e,t,n){void 0===t&&(t={});var i,o=n||p;try{i=o(e||"")}catch(a){i={}}for(var r in t)i[r]=t[r];return i}function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=d(n.shift()),o=n.length>0?d(n.join("=")):null;void 0===t[i]?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(l(t)):i.push(l(t)+"="+l(e)))})),i.join("&")}return l(t)+"="+l(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var g=/\/?$/;function m(e,t,n,i){var o=i&&i.options.stringifyQuery,r=t.query||{};try{r=v(r)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",type:t.type,query:r,params:t.params||{},fullPath:b(t,o),matched:e?y(e):[]};return n&&(a.redirectedFrom=b(n,o)),Object.freeze(a)}function v(e){if(Array.isArray(e))return e.map(v);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=v(e[n]);return t}return e}var _=m(null,{path:"/"});function y(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var o=e.hash;void 0===o&&(o="");var r=t||h;return(n||"/")+r(i)+o}function M(e,t){return t===_?e===t:!!t&&(e.path&&t.path?e.path.replace(g,"")===t.path.replace(g,"")&&e.hash===t.hash&&S(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&S(e.query,t.query)&&S(e.params,t.params)))}function S(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every((function(n){var i=e[n],o=t[n];return"object"===typeof i&&"object"===typeof o?S(i,o):String(i)===String(o)}))}function C(e,t){return 0===e.path.replace(g,"/").indexOf(t.path.replace(g,"/"))&&(!t.hash||e.hash===t.hash)&&k(e.query,t.query)}function k(e,t){for(var n in t)if(!(n in e))return!1;return!0}var T,I=[String,Object],w=[String,Array],A={name:"RouterLink",props:{to:{type:I,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:w,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),a=r.location,s=r.route,c=r.href,u={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,f=null==l?"router-link-active":l,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?f:this.activeClass,g=null==this.exactActiveClass?p:this.exactActiveClass,v=a.path?m(null,a,null,n):s;u[g]=M(i,v),u[h]=this.exact?u[g]:C(i,v);var _=function(e){E(e)&&(t.replace?n.replace(a):n.push(a))},y={click:E};Array.isArray(this.event)?this.event.forEach((function(e){y[e]=_})):y[this.event]=_;var b={class:u};if("a"===this.tag)b.on=y,b.attrs={href:c};else{var S=O(this.$slots.default);if(S){S.isStatic=!1;var k=S.data=o({},S.data);k.on=y;var T=S.data.attrs=o({},S.data.attrs);T.href=c}else b.on=y}return e(this.tag,b,this.$slots.default)}};function E(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function O(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=O(t.children)))return t}}function x(e){if(!x.installed||T!==e){x.installed=!0,T=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",r),e.component("RouterLink",A);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var D="undefined"!==typeof window;function N(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var o=t.split("/");n&&o[o.length-1]||o.pop();for(var r=e.replace(/^\//,"").split("/"),a=0;a<r.length;a++){var s=r[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}function R(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:t}}function L(e){return e.replace(/\/\//g,"/")}var P=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},U=ne,G=$,F=H,B=K,q=te,j=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e,t){var n,i=[],o=0,r=0,a="",s=t&&t.delimiter||"/";while(null!=(n=j.exec(e))){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(r,l),r=l+c.length,u)a+=u[1];else{var d=e[r],f=n[2],p=n[3],h=n[4],g=n[5],m=n[6],v=n[7];a&&(i.push(a),a="");var _=null!=f&&null!=d&&d!==f,y="+"===m||"*"===m,b="?"===m||"*"===m,M=n[2]||s,S=h||g;i.push({name:p||o++,prefix:f||"",delimiter:M,optional:b,repeat:y,partial:_,asterisk:!!v,pattern:S?Y(S):v?".*":"[^"+W(M)+"]+?"})}}return r<e.length&&(a+=e.substr(r)),a&&i.push(a),i}function H(e,t){return K($(e,t))}function V(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function z(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function K(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,i){for(var o="",r=n||{},a=i||{},s=a.pretty?V:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var l,d=r[u.name];if(null==d){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(P(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(l=s(d[f]),!t[c].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");o+=(0===f?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?z(d):s(d),!t[c].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');o+=u.prefix+l}}else o+=u}return o}}function W(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Y(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function X(e,t){return e.keys=t,e}function J(e){return e.sensitive?"":"i"}function Q(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return X(e,t)}function Z(e,t,n){for(var i=[],o=0;o<e.length;o++)i.push(ne(e[o],t,n).source);var r=new RegExp("(?:"+i.join("|")+")",J(n));return X(r,t)}function ee(e,t,n){return te($(e,n),t,n)}function te(e,t,n){P(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,o=!1!==n.end,r="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)r+=W(s);else{var c=W(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+c+u+")*"),u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",r+=u}}var l=W(n.delimiter||"/"),d=r.slice(-l.length)===l;return i||(r=(d?r.slice(0,-l.length):r)+"(?:"+l+"(?=$))?"),r+=o?"$":i&&d?"":"(?="+l+"|$)",X(new RegExp("^"+r,J(n)),t)}function ne(e,t,n){return P(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Q(e,t):P(e)?Z(e,t,n):ee(e,t,n)}U.parse=G,U.compile=F,U.tokensToFunction=B,U.tokensToRegExp=q;var ie=Object.create(null);function oe(e,t,n){try{var i=ie[e]||(ie[e]=U.compile(e));return i(t||{},{pretty:!0})}catch(o){return""}}function re(e,t,n,i){var o=t||[],r=n||Object.create(null),a=i||Object.create(null);e.forEach((function(e){ae(o,r,a,e)}));for(var s=0,c=o.length;s<c;s++)"*"===o[s]&&(o.push(o.splice(s,1)[0]),c--,s--);return{pathList:o,pathMap:r,nameMap:a}}function ae(e,t,n,i,o,r){var a=i.path,s=i.name;var c=i.pathToRegexpOptions||{},u=ce(a,o,c.strict);"boolean"===typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var l={path:u,regex:se(u,c),components:i.components||{default:i.component},instances:{},name:s,parent:o,matchAs:r,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var o=r?L(r+"/"+i.path):void 0;ae(e,t,n,i,l,o)})),void 0!==i.alias){var d=Array.isArray(i.alias)?i.alias:[i.alias];d.forEach((function(r){var a={path:r,children:i.children};ae(e,t,n,a,o,l.path||"/")}))}t[l.path]||(e.push(l.path),t[l.path]=l),s&&(n[s]||(n[s]=l))}function se(e,t){var n=U(e,[],t);return n}function ce(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:L(t.path+"/"+e)}function ue(e,t,n,i){var r="string"===typeof e?{path:e}:e;if(r.name||r._normalized)return r;if(!r.path&&r.params&&t){r=o({},r),r._normalized=!0;var a=o(o({},t.params),r.params);if(t.name)r.name=t.name,r.params=a;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;r.path=oe(s,a,"path "+t.path)}else 0;return r}var c=R(r.path||""),u=t&&t.path||"/",l=c.path?N(c.path,u,n||r.append):u,d=f(c.query,r.query,i&&i.options.parseQuery),p=r.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,type:r.type,params:r.params||{},path:l,query:d,hash:p}}function le(e,t){var n=re(e),i=n.pathList,r=n.pathMap,a=n.nameMap;function s(e){re(e,i,r,a)}function c(e,n,o){var s=ue(e,n,!1,t),c=s.name;if(c){var u=a[c];if(!u)return d(null,s);var l=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&l.indexOf(f)>-1&&(s.params[f]=n.params[f]);if(u)return s.path=oe(u.path,s.params,'named route "'+c+'"'),d(u,s,o)}else if(s.path){s.params=s.params||{};for(var p=0;p<i.length;p++){var h=i[p],g=r[h];if(de(g.regex,s.path,s.params))return d(g,s,o)}}return d(null,s)}function u(e,n){var i=e.redirect,o="function"===typeof i?i(m(e,n,null,t)):i;if("string"===typeof o&&(o={path:o}),!o||"object"!==typeof o)return d(null,n);var r=o,s=r.name,u=r.path,l=n.query,f=n.hash,p=n.params;if(l=r.hasOwnProperty("query")?r.query:l,f=r.hasOwnProperty("hash")?r.hash:f,p=r.hasOwnProperty("params")?r.params:p,s){a[s];return c({_normalized:!0,name:s,query:l,hash:f,params:p},void 0,n)}if(u){var h=fe(u,e),g=oe(h,p,'redirect route with path "'+h+'"');return c({_normalized:!0,path:g,query:l,hash:f},void 0,n)}return d(null,n)}function l(e,t,n){var i=oe(n,t.params,'aliased route with path "'+n+'"'),o=c({_normalized:!0,path:i});if(o){var r=o.matched,a=r[r.length-1];return t.params=o.params,d(a,t)}return d(null,t)}function d(e,n,i){return e&&e.redirect?u(e,i||n):e&&e.matchAs?l(e,n,e.matchAs):(n.params=n.params||{},e&&e.meta&&e.meta.id?n.params.__id__=e.meta.id:n.params.__id__||(n.params.__id__=t.id),e&&e.meta&&e.meta.name&&(e.meta.id?e.components.default.name=e.meta.name+"-"+n.params.__id__:(e=o({},e),e.components={default:{name:e.meta.name+"-"+n.params.__id__,render:e.components["default"].render}})),m(e,n,i,t))}return{match:c,addRoutes:s}}function de(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var o=1,r=i.length;o<r;++o){var a=e.keys[o-1],s="string"===typeof i[o]?decodeURIComponent(i[o]):i[o];a&&(n[a.name||"pathMatch"]=s)}return!0}function fe(e,t){return N(e,t.parent?t.parent.path:"/",!0)}var pe=Object.create(null);function he(e){window.history.replaceState({key:Ae(),id:e.currentRoute&&e.currentRoute.params.__id__||e.id},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(e){me(),e.state&&e.state.key&&Ee(e.state.key)}))}function ge(e,t,n,i){if(e.app){var o=e.options.scrollBehavior;o&&e.app.$nextTick((function(){var r=ve(),a=o.call(e,t,n,i?r:null);a&&("function"===typeof a.then?a.then((function(e){Ce(e,r)})).catch((function(e){0})):Ce(a,r))}))}}function me(){var e=Ae();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ve(){var e=Ae();if(e)return pe[e]}function _e(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),o=e.getBoundingClientRect();return{x:o.left-i.left-t.x,y:o.top-i.top-t.y}}function ye(e){return Se(e.x)||Se(e.y)}function be(e){return{x:Se(e.x)?e.x:window.pageXOffset,y:Se(e.y)?e.y:window.pageYOffset}}function Me(e){return{x:Se(e.x)?e.x:0,y:Se(e.y)?e.y:0}}function Se(e){return"number"===typeof e}function Ce(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=document.querySelector(e.selector);if(i){var o=e.offset&&"object"===typeof e.offset?e.offset:{};o=Me(o),t=_e(i,o)}else ye(e)&&(t=be(e))}else n&&ye(e)&&(t=be(e));t&&window.scrollTo(t.x,t.y)}var ke=D&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),Te=D&&window.performance&&window.performance.now?window.performance:Date,Ie=we();function we(){return Te.now().toFixed(3)}function Ae(){return Ie}function Ee(e){Ie=e}function Oe(e,t,n){me();var i=window.history;try{n?i.replaceState({id:t,key:Ie},"",e):(Ie=we(),i.pushState({id:t,key:Ie},"",e))}catch(o){window.location[n?"replace":"assign"](e)}}function xe(e,t){Oe(e,t,!0)}function De(e,t,n){var i=function(o){o>=e.length?n():e[o]?t(e[o],(function(){i(o+1)})):i(o+1)};i(0)}function Ne(e){return function(t,n,o){var r=!1,a=0,s=null;Re(e,(function(e,t,n,c){if("function"===typeof e&&void 0===e.cid){r=!0,a++;var u,l=Ge((function(t){Ue(t)&&(t=t.default),e.resolved="function"===typeof t?t:T.extend(t),n.components[c]=t,a--,a<=0&&o()})),d=Ge((function(e){var t="Failed to resolve async component "+c+": "+e;s||(s=i(e)?e:new Error(t),o(s))}));try{u=e(l,d)}catch(p){d(p)}if(u)if("function"===typeof u.then)u.then(l,d);else{var f=u.component;f&&"function"===typeof f.then&&f.then(l,d)}}})),r||o()}}function Re(e,t){return Le(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Le(e){return Array.prototype.concat.apply([],e)}var Pe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ue(e){return e.__esModule||Pe&&"Module"===e[Symbol.toStringTag]}function Ge(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var Fe=function(e,t){this.router=e,this.base=Be(t),this.current=_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Be(e){if(!e)if(D){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function qe(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function je(e,t,n,i){var o=Re(e,(function(e,i,o,r){var a=$e(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,i,o,r)})):n(a,i,o,r)}));return Le(i?o.reverse():o)}function $e(e,t){return"function"!==typeof e&&(e=T.extend(e)),e.options[t]}function He(e){return je(e,"beforeRouteLeave",ze,!0)}function Ve(e){return je(e,"beforeRouteUpdate",ze)}function ze(e,t){if(t)return function(){return e.apply(t,arguments)}}function Ke(e,t,n){return je(e,"beforeRouteEnter",(function(e,i,o,r){return We(e,o,r,t,n)}))}function We(e,t,n,i,o){return function(r,a,s){return e(r,a,(function(e){s(e),"function"===typeof e&&i.push((function(){Ye(e,t.instances,n,o)}))}))}}function Ye(e,t,n,i){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):i()&&setTimeout((function(){Ye(e,t,n,i)}),16)}Fe.prototype.listen=function(e){this.cb=e},Fe.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Fe.prototype.onError=function(e){this.errorCbs.push(e)},Fe.prototype.transitionTo=function(e,t,n){var i=this,o=this.router.match(e,this.current);this.confirmTransition(o,(function(){i.updateRoute(o),t&&t(o),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(o)})))}),(function(e){n&&n(e),e&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)})))}))},Fe.prototype.confirmTransition=function(t,o,r){var a=this,s=this.current,c=function(t){i(t)&&(a.errorCbs.length?a.errorCbs.forEach((function(e){e(t)})):(n(!1,"uncaught error during route navigation:"),e.error(t))),r&&r(t)},u=qe(this.current.matched,t.matched),l=u.updated,d=u.deactivated,f=u.activated,p=[].concat(He(d),this.router.beforeHooks,Ve(l),f.map((function(e){return e.beforeEnter})),Ne(f));this.pending=t;var h=function(e,n){if(a.pending!==t)return c();try{e(t,s,(function(e){!1===e||i(e)?(a.ensureURL(!0),c(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(c(),"object"===typeof e&&e.replace?a.replace(e):a.push(e)):n(e)}))}catch(o){c(o)}};De(p,h,(function(){var e=[],n=function(){return a.current===t},i=Ke(f,e,n),r=i.concat(a.router.resolveHooks);De(r,h,(function(){if(a.pending!==t)return c();a.pending=null,o(t),a.router.app&&a.router.app.$nextTick((function(){e.forEach((function(e){e()}))}))}))}))},Fe.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach((function(n){n&&n(e,t)}))};var Xe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,i=ke&&n;i&&he(t);var o=Je(this.base);window.addEventListener("popstate",(function(n){var r=e.current,a=Je(e.base);if(e.current!==_||a!==o){var s=n.state&&n.state.id;if(!s)return window.location.reload();e.transitionTo({path:a,params:{__id__:s}},(function(e){i&&ge(t,e,r,!0)}))}}))},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this;if("object"===typeof e){e.params=e.params||{};var o=e.params.__id__;switch(e.type){case"navigateTo":o||this.router.id++;break;case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}o||(e.params.__id__=this.router.id)}var r=this,a=r.current;this.transitionTo(e,(function(n){Oe(L(i.base+n.fullPath),e.params.__id__),ge(i.router,n,a,!1),t&&t(n)}),n)},t.prototype.replace=function(e,t,n){var i=this;if("object"===typeof e){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}e.params=e.params||{},e.params.__id__=this.router.id}var o=this,r=o.current;this.transitionTo(e,(function(n){xe(L(i.base+n.fullPath),e.params.__id__),ge(i.router,n,r,!1),t&&t(n)}),n)},t.prototype.ensureURL=function(e){if(Je(this.base)!==this.current.fullPath){var t=L(this.base+this.current.fullPath),n=this.current.params.__id__;e?Oe(t,n):xe(t,n)}},t.prototype.getCurrentLocation=function(){return{path:Je(this.base),params:{__id__:++this.router.id}}},t}(Fe);function Je(e){var t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+h(f(window.location.search))+window.location.hash}var Qe=function(e){function t(t,n,i){e.call(this,t,n),i&&Ze(this.base)||et()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,i=ke&&n;i&&he(t),window.addEventListener(ke?"popstate":"hashchange",(function(t){var n=e.current;if(et()){var o=t.state&&t.state.id;if(!o)return window.location.reload();e.transitionTo({path:tt(),params:{__id__:o}},(function(t){i&&ge(e.router,t,n,!0),ke||ot(t.fullPath,t.params.__id__)}))}}))},t.prototype.push=function(e,t,n){var i=this;if("object"===typeof e){e.params=e.params||{};var o=e.params.__id__;switch(e.type){case"navigateTo":o||this.router.id++;break;case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}o||(e.params.__id__=this.router.id)}var r=this,a=r.current,s=this.router.id;this.transitionTo(e,(function(e){it(e.fullPath,s),ge(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;if("object"===typeof e){switch(e.type){case"navigateTo":case"redirectTo":case"reLaunch":this.router.id++;break;case"switchTab":break}e.params=e.params||{},e.params.__id__=this.router.id}var o=this,r=o.current,a=this.router.id;this.transitionTo(e,(function(e){ot(e.fullPath,a),ge(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;tt()!==t&&(e?it(t,this.current.params.__id__):ot(t,this.current.params.__id__))},t.prototype.getCurrentLocation=function(){return{path:tt(),params:{__id__:++this.router.id}}},t}(Fe);function Ze(e){var t=Je(e);if(!/^\/#/.test(t))return window.location.replace(L(e+"/#"+t)),!0}function et(){var e=tt();return"/"===e.charAt(0)||(ot("/"+e),!1)}function tt(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function nt(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function it(e,t){ke?Oe(nt(e),t):window.location.hash=e}function ot(e,t){ke?xe(nt(e),t):window.location.replace(nt(e))}var rt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){t.index=n,t.updateRoute(i)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Fe),at=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=le(e.routes||[],this),this.id=e.id||1,this.minId=e.id||1;var t=e.mode||"hash";switch(this.fallback="history"===t&&!ke&&!1!==e.fallback,this.fallback&&(t="hash"),D||(t="abstract"),this.mode=t,t){case"history":this.history=new Xe(this,e.base);break;case"hash":this.history=new Qe(this,e.base,this.fallback);break;case"abstract":this.history=new rt(this,e.base);break;default:0}},st={currentRoute:{configurable:!0}};function ct(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function ut(e,t,n){var i="hash"===n?"#"+t:t;return e?L(e+"/"+i):i}at.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},st.currentRoute.get=function(){return this.history&&this.history.current},at.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof Xe){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}else if(n instanceof Qe){var o=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),o,o)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},at.prototype.beforeEach=function(e){return ct(this.beforeHooks,e)},at.prototype.beforeResolve=function(e){return ct(this.resolveHooks,e)},at.prototype.afterEach=function(e){return ct(this.afterHooks,e)},at.prototype.onReady=function(e,t){this.history.onReady(e,t)},at.prototype.onError=function(e){this.history.onError(e)},at.prototype.push=function(e,t,n){this.history.push(e,t,n)},at.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},at.prototype.go=function(e){this.history.go(e)},at.prototype.back=function(){this.go(-1)},at.prototype.forward=function(){this.go(1)},at.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},at.prototype.resolve=function(e,t,n){var i=ue(e,t||this.history.current,n,this),o=this.match(i,t),r=o.redirectedFrom||o.fullPath,a=this.history.base,s=ut(a,r,this.mode);return{location:i,route:o,href:s,normalizedTo:i,resolved:o}},at.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==_&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(at.prototype,st),at.install=x,at.version="3.0.1",t["default"]=at}.call(this,n("5a52")["default"])},a975:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").every,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("every",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9aa:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=f,t.unsubscribe=p,t.subscribeHandler=h,Object.defineProperty(t,"invokeCallbackHandler",{enumerable:!0,get:function(){return r.invokeCallbackHandler}}),Object.defineProperty(t,"removeCallbackHandler",{enumerable:!0,get:function(){return r.removeCallbackHandler}}),Object.defineProperty(t,"publishHandler",{enumerable:!0,get:function(){return a.publishHandler}}),t.emit=t.once=t.off=t.on=void 0;var o=i(n("e143")),r=n("4f1f"),a=n("9a89"),s=new o.default,c=s.$on.bind(s);t.on=c;var u=s.$off.bind(s);t.off=u;var l=s.$once.bind(s);t.once=l;var d=s.$emit.bind(s);function f(e,t){return c("view."+e,t)}function p(e,t){return u("view."+e,t)}function h(e,t,n){return d("view."+e,t,n)}t.emit=d},a9e3:function(e,t,n){"use strict";var i=n("83ab"),o=n("da84"),r=n("94ca"),a=n("6eeb"),s=n("5135"),c=n("c6b6"),u=n("7156"),l=n("c04e"),d=n("d039"),f=n("7c73"),p=n("241c").f,h=n("06cf").f,g=n("9bf2").f,m=n("58a8").trim,v="Number",_=o[v],y=_.prototype,b=c(f(y))==v,M=function(e){var t,n,i,o,r,a,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(u=m(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+u}for(r=u.slice(2),a=r.length,s=0;s<a;s++)if(c=r.charCodeAt(s),c<48||c>o)return NaN;return parseInt(r,i)}return+u};if(r(v,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var S,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(b?d((function(){y.valueOf.call(n)})):c(n)!=v)?u(new _(M(t)),n,C):M(t)},k=i?p(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;k.length>T;T++)s(_,S=k[T])&&!s(C,S)&&g(C,S,h(_,S));C.prototype=y,y.constructor=C,a(o,v,C)}},aac7:function(e,t,n){"use strict";var i=n("4ea4");n("c975"),n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=n("db6a"),r=i(n("5e13"));function a(e,t){var n=e.$route;e.route=n.meta.pagePath,e.options||(e.options=t);var i=(0,o.hasOwn)(n.params,"__id__")?n.params.__id__:n.meta.id,a=n.fullPath;n.meta.isEntry&&-1===a.indexOf(n.meta.pagePath)&&(a="/"+n.meta.pagePath+a.replace("/","")),e.__page__={id:i,path:n.path,route:n.meta.pagePath,fullPath:a,options:t,meta:Object.assign({},n.meta)};var s=e.$router.$eventChannel||new r.default;e.getOpenerEventChannel=function(){return s},e.$vm=e,e.$root=e,e.$holder=e.$parent.$parent,e.$mp={mpType:"page",page:e,query:{},status:""}}},ab13:function(e,t,n){var i=n("b622"),o=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(i){}}return!1}},abf4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=1e5,o={name:"ResizeSensor",props:{initial:{type:[Boolean,String],default:!1}},data:function(){return{size:{width:-1,height:-1}}},watch:{size:{deep:!0,handler:function(e){this.$emit("resize",Object.assign({},e))}}},mounted:function(){!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"AnimationEvent"in window||this.reset()},activated:function(){this.reset()},methods:{reset:function(){var e=this.$el.firstChild;e.scrollLeft=i,e.scrollTop=i;var t=this.$el.lastChild;t.scrollLeft=i,t.scrollTop=i},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight,this.reset()}}};t.default=o},ac1f:function(e,t,n){"use strict";var i=n("23e7"),o=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ac5b:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("caad"),n("c975"),n("d81d"),n("a434"),n("a9e3"),n("d3b7"),n("07ac"),n("ac1f"),n("25f0"),n("2532"),n("1276"),n("2ca0"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("2909")),r=n("987d"),a=n("db6a"),s=i(n("bb41")),c=i(n("6180")),u=n("81e8");function l(){if(this.mode===f.TIME)return"00:00";if(this.mode===f.DATE){var e=(new Date).getFullYear()-100;switch(this.fields){case p.YEAR:return e.toString();case p.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function d(){if(this.mode===f.TIME)return"23:59";if(this.mode===f.DATE){var e=(new Date).getFullYear()+100;switch(this.fields){case p.YEAR:return e.toString();case p.MONTH:return e+"-12";default:return e+"-12-31"}}return""}var f={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},p={YEAR:"year",MONTH:"month",DAY:"day"},h={PICKER:"picker",SELECT:"select"},g={name:"Picker",components:{keypress:c.default},mixins:[u.i18nMixin,r.emitter,s.default],props:{name:{type:String,default:""},range:{type:Array,default:function(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:f.SELECTOR,validator:function(e){return Object.values(f).includes(e)}},fields:{type:String,default:""},start:{type:String,default:l},end:{type:String,default:d},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},data:function(){return{valueSync:null,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[]}},computed:{rangeArray:function(){var e=this.range;switch(this.mode){case f.SELECTOR:return[e];case f.MULTISELECTOR:return e;case f.TIME:return this.timeArray;case f.DATE:var t=this.dateArray;switch(this.fields){case p.YEAR:return[t[0]];case p.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}return[]},startArray:function(){return this._getDateValueArray(this.start,l.bind(this)())},endArray:function(){return this._getDateValueArray(this.end,d.bind(this)())},selectorTypeComputed:function(){var e=this.selectorType;return Object.values(h).includes(e)?e:0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0?h.PICKER:h.SELECT},system:function(){if(this.mode===f.DATE&&!Object.values(p).includes(this.fields)&&this.isDesktop&&/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""}},watch:{visible:function(e){var t=this;e?(clearTimeout(this.__contentVisibleDelay),this.contentVisible=e,this._select()):this.__contentVisibleDelay=setTimeout((function(){t.contentVisible=e}),300)},value:function(){this._setValueSync()},mode:function(){this._setValueSync()},range:function(){this._setValueSync()},valueSync:function(){this._setValueArray()},valueArray:function(e){var t=this;if(this.mode===f.TIME||this.mode===f.DATE){var n=this.mode===f.TIME?this._getTimeValue:this._getDateValue,i=this.valueArray,o=this.startArray,r=this.endArray;if(this.mode===f.DATE){var a=this.dateArray,s=a[2].length,c=Number(a[2][i[2]])||1,u=new Date("".concat(a[0][i[0]],"/").concat(a[1][i[1]],"/").concat(c)).getDate();u<c&&(i[2]-=u+s-c)}n(i)<n(o)?this._cloneArray(i,o):n(i)>n(r)&&this._cloneArray(i,r)}e.forEach((function(e,n){e!==t.oldValueArray[n]&&(t.oldValueArray[n]=e,t.mode===f.MULTISELECTOR&&t.$trigger("columnchange",{},{column:n,value:e}))}))}},created:function(){this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this}),this._createTime(),this._createDate(),this._setValueSync()},beforeDestroy:function(){this.$refs.picker.remove(),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_show:function(e){var t=this;if(!this.disabled){this.valueChangeSource="";var n=this.$refs.picker;n.remove(),(document.querySelector("uni-app")||document.body).appendChild(n),n.style.display="block";var i=e.currentTarget.getBoundingClientRect();this.popover={top:i.top,left:i.left,width:i.width,height:i.height},setTimeout((function(){t.visible=!0}),20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case f.SELECTOR:this.valueSync=0;break;case f.MULTISELECTOR:this.valueSync=this.value.map((function(e){return 0}));break;case f.DATE:case f.TIME:this.valueSync="";break;default:break}},_createTime:function(){var e=[],t=[];e.splice(0,e.length);for(var n=0;n<24;n++)e.push((n<10?"0":"")+n);t.splice(0,t.length);for(var i=0;i<60;i++)t.push((i<10?"0":"")+i);this.timeArray.push(e,t)},_createDate:function(){for(var e=[],t=(new Date).getFullYear(),n=t-150,i=t+150;n<=i;n++)e.push(String(n));for(var o=[],r=1;r<=12;r++)o.push((r<10?"0":"")+r);for(var a=[],s=1;s<=31;s++)a.push((s<10?"0":"")+s);this.dateArray.push(e,o,a)},_getTimeValue:function(e){return 60*e[0]+e[1]},_getDateValue:function(e){var t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)},_cloneArray:function(e,t){for(var n=0;n<e.length&&n<t.length;n++)e[n]=t[n]},_setValueSync:function(){var e=this.value;switch(this.mode){case f.MULTISELECTOR:Array.isArray(e)||(e=this.valueArray),Array.isArray(this.valueSync)||(this.valueSync=[]);for(var t=this.valueSync.length=Math.max(e.length,this.range.length),n=0;n<t;n++){var i=Number(e[n]),o=Number(this.valueSync[n]),r=isNaN(i)?isNaN(o)?0:o:i,a=this.range[n]?this.range[n].length-1:0;this.valueSync.splice(n,1,r<0||r>a?0:r)}break;case f.TIME:case f.DATE:this.valueSync=String(e);break;default:var s=Number(e);this.valueSync=s<0?0:s;break}},_setValueArray:function(){var e,t=this.valueSync;switch(this.mode){case f.MULTISELECTOR:e=(0,o.default)(t);break;case f.TIME:e=this._getDateValueArray(t,(0,a.formatDateTime)({mode:f.TIME}));break;case f.DATE:e=this._getDateValueArray(t,(0,a.formatDateTime)({mode:f.DATE}));break;default:e=[t];break}this.oldValueArray=(0,o.default)(e),this.valueArray=(0,o.default)(e)},_getValue:function(){var e=this,t=this.valueArray;switch(this.mode){case f.SELECTOR:return t[0];case f.MULTISELECTOR:return t.map((function(e){return e}));case f.TIME:return this.valueArray.map((function(t,n){return e.timeArray[n][t]})).join(":");case f.DATE:return this.valueArray.map((function(t,n){return e.dateArray[n][t]})).join("-")}},_getDateValueArray:function(e,t){var n,i=this.mode===f.DATE?"-":":",o=this.mode===f.DATE?this.dateArray:this.timeArray;if(this.mode===f.TIME)n=2;else switch(this.fields){case p.YEAR:n=1;break;case p.MONTH:n=2;break;default:n=3;break}for(var r=String(e).split(i),a=[],s=0;s<n;s++){var c=r[s];a.push(o[s].indexOf(c))}return a.indexOf(-1)>=0&&(a=t?this._getDateValueArray(t):a.map((function(){return 0}))),a},_change:function(){this._close(),this.valueChangeSource="click";var e=this._getValue();this.valueSync=Array.isArray(e)?e.map((function(e){return e})):e,this.$trigger("change",{},{value:e})},_cancel:function(e){if("firefox"===this.system){var t=this.popover,n=t.top,i=t.left,o=t.width,r=t.height,a=e.pageX,s=e.pageY;if(a>i&&a<i+o&&s>n&&s<n+r)return}this._close(),this.$trigger("cancel",{},{})},_close:function(){var e=this;this.visible=!1,setTimeout((function(){var t=e.$refs.picker;t.remove(),e.$el.prepend(t),t.style.display="none"}),260)},_select:function(){this.mode===f.SELECTOR&&this.selectorTypeComputed===h.SELECT&&(this.$refs.select.scrollTop=34*this.valueArray[0])},_input:function(e){var t=this;this.valueSync=e.target.value,this.$nextTick((function(){t._change()}))},_fixInputPosition:function(e){if("chrome"===this.system){var t=this.$el.getBoundingClientRect(),n=this.$refs.input.style,i=32;n.left="".concat(e.clientX-t.left-1.5*i,"px"),n.top="".concat(e.clientY-t.top-.5*i,"px")}},_pickerViewChange:function(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn:function(e,t){if(this.mode===f.DATE){var n=(0,u.getLocale)();if(!n.startsWith("zh"))switch(this.fields){case p.YEAR:return e;case p.MONTH:return[e[1],e[0]];default:switch(n){case"es":case"fr":return[e[2],e[1],e[0]];default:return t?[e[2],e[0],e[1]]:[e[1],e[2],e[0]]}}}return e},_l10nItem:function(e,t){if(this.mode===f.DATE){var n=(0,u.getLocale)();if(n.startsWith("zh")){var i=["年","月","日"];return e+i[t]}if(this.fields!==p.YEAR&&t===(this.fields===p.MONTH||"es"!==n&&"fr"!==n?0:1)){var o;switch(n){case"es":o=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":o=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:o=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return o[Number(e)-1]}}return e}}};t.default=g},aca7:function(e,t,n){"use strict";n.r(t);var i=n("0a87");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var r,a,s,c,u=n("f0c5"),l=Object(u["a"])(i["default"],r,a,!1,null,null,null,!1,s,c);t["default"]=l.exports},acac:function(e,t,n){"use strict";var i=n("e2cc"),o=n("f183").getWeakData,r=n("825a"),a=n("861d"),s=n("19aa"),c=n("2266"),u=n("b727"),l=n("5135"),d=n("69f3"),f=d.set,p=d.getterFor,h=u.find,g=u.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},y=function(e,t){return h(e.entries,(function(e){return e[0]===t}))};_.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,i){s(e,d,t),f(e,{type:t,id:m++,frozen:void 0}),void 0!=i&&c(i,e[u],e,n)})),h=p(t),g=function(e,t,n){var i=h(e),a=o(r(t),!0);return!0===a?v(i).set(t,n):a[i.id]=n,e};return i(d.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var n=o(e);return!0===n?v(t)["delete"](e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=o(e);return!0===n?v(t).has(e):n&&l(n,t.id)}}),i(d.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=o(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},acd8:function(e,t,n){var i=n("23e7"),o=n("7e12");i({global:!0,forced:parseFloat!=o},{parseFloat:o})},ace4:function(e,t,n){"use strict";var i=n("23e7"),o=n("d039"),r=n("621a"),a=n("825a"),s=n("23cb"),c=n("50c4"),u=n("4840"),l=r.ArrayBuffer,d=r.DataView,f=l.prototype.slice,p=o((function(){return!new l(2).slice(1,void 0).byteLength}));i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:p},{slice:function(e,t){if(void 0!==f&&void 0===t)return f.call(a(this),e);var n=a(this).byteLength,i=s(e,n),o=s(void 0===t?n:t,n),r=new(u(this,l))(c(o-i)),p=new d(this),h=new d(r),g=0;while(i<o)h.setUint8(g++,p.getUint8(i++));return r}})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ade3:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},ae40:function(e,t,n){var i=n("83ab"),o=n("d039"),r=n("5135"),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(r(s,e))return s[e];t||(t={});var n=[][e],u=!!r(t,"ACCESSORS")&&t.ACCESSORS,l=r(t,0)?t[0]:c,d=r(t,1)?t[1]:void 0;return s[e]=!!n&&!o((function(){if(u&&!i)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,l,d)}))}},ae93:function(e,t,n){"use strict";var i,o,r,a=n("e163"),s=n("9112"),c=n("5135"),u=n("b622"),l=n("c430"),d=u("iterator"),f=!1,p=function(){return this};[].keys&&(r=[].keys(),"next"in r?(o=a(a(r)),o!==Object.prototype&&(i=o)):f=!0),void 0==i&&(i={}),l||c(i,d)||s(i,d,p),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:f}},aea7:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("db6a"),o={data:function(){return{showActionSheet:{visible:!1}}},created:function(){var t=this;e.on("onShowActionSheet",(function(e,n){t.showActionSheet=e,t.onActionSheetCloseCallback=n})),e.on("onHidePopup",(function(e){t.showActionSheet.visible=!1}))},methods:{_onActionSheetClose:function(e){this.showActionSheet.visible=!1,(0,i.isFn)(this.onActionSheetCloseCallback)&&this.onActionSheetCloseCallback(e)}}};t.default=o}).call(this,n("a9aa"))},aecf:function(e,t,n){"use strict";n.r(t);var i=n("6536"),o=n("279f");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},af20:function(e,t,n){"use strict";n.r(t);var i=n("c77b"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},af90:function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o=i(n("ade3")),r=i(n("1b71")),a=(0,o.default)({},r.default.name,r.default);function s(e,t){e.behaviors.forEach((function(n){var i=a[n];i&&i.init(e,t)}))}},afc6:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("987d"),o={name:"Label",mixins:[i.emitter],props:{for:{type:String,default:""}},computed:{pointer:function(){return this.for||this.$slots.default&&this.$slots.default.length}},methods:{_onClick:function(t){var n=/^uni-(checkbox|radio|switch)-/.test(t.target.className);n||(n=/^uni-(checkbox|radio|switch|button)$/i.test(t.target.tagName)),n||(this.for?e.emit("uni-label-click-"+this.$page.id+"-"+this.for,t,!0):this.$broadcast(["Checkbox","Radio","Switch","Button"],"uni-label-click",t,!0))}}};t.default=o}).call(this,n("c5c3"))},aff3:function(e,t,n){"use strict";(function(t,i){n("a4d3"),n("e01a"),n("d28b"),n("944a"),n("99af"),n("4de4"),n("7db0"),n("c740"),n("4160"),n("a630"),n("caad"),n("c975"),n("baa5"),n("d81d"),n("fb6a"),n("4e82"),n("ace4"),n("6c57"),n("0c47"),n("4ec92"),n("23dc"),n("a9e3"),n("e439"),n("dbb4"),n("7039"),n("3410"),n("b64b"),n("131a"),n("d3b7"),n("07ac"),n("acd8"),n("e25e"),n("4ae1"),n("4d63"),n("ac1f"),n("25f0"),n("6062"),n("f5b2"),n("f6d6"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("2ca0"),n("498a"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("10d1"),n("1fe2"),n("159b"),n("ddb0"),n("2b3d"),function(t,n){e.exports=n()}(0,(function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return(p=f()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&d(o,n.prototype),o}).apply(null,arguments)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return p(e,arguments,l(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,e)})(e)}function g(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?m(e):t}function _(e){return function(){var t,n=l(e);if(f()){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return v(this,t)}}function y(e,t){return M(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(e,t)||C(e,t)||T()}function b(e){return function(e){if(Array.isArray(e))return k(e)}(e)||S(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e){if(Array.isArray(e))return e}function S(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function C(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function T(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=C(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,r=!0,a=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return r=e.done,e},e:function(e){a=!0,o=e},f:function(){try{r||null==i.return||i.return()}finally{if(a)throw o}}}}var w={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",PROFILE_UPDATED:"onProfileUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},A={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage"},E=function(){function e(){n(this,e),this.cache=[],this.options=null}return r(e,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function x(e,t){return e(t={exports:{}},t.exports),t.exports}var D=x((function(e,t){var n,i,o,r,a,s,c,u,l,d,f,p,h,g,m,v,_,y;e.exports=(n="function"==typeof Promise,i="object"==typeof self?self:O,o="undefined"!=typeof Symbol,r="undefined"!=typeof Map,a="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,c="undefined"!=typeof WeakSet,u="undefined"!=typeof DataView,l=o&&void 0!==Symbol.iterator,d=o&&void 0!==Symbol.toStringTag,f=a&&"function"==typeof Set.prototype.entries,p=r&&"function"==typeof Map.prototype.entries,h=f&&Object.getPrototypeOf((new Set).entries()),g=p&&Object.getPrototypeOf((new Map).entries()),m=l&&"function"==typeof Array.prototype[Symbol.iterator],v=m&&Object.getPrototypeOf([][Symbol.iterator]()),_=l&&"function"==typeof String.prototype[Symbol.iterator],y=_&&Object.getPrototypeOf(""[Symbol.iterator]()),function(e){var t=typeof e;if("object"!==t)return t;if(null===e)return"null";if(e===i)return"global";if(Array.isArray(e)&&(!1===d||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var o=d&&e[Symbol.toStringTag];if("string"==typeof o)return o;var l=Object.getPrototypeOf(e);return l===RegExp.prototype?"RegExp":l===Date.prototype?"Date":n&&l===Promise.prototype?"Promise":a&&l===Set.prototype?"Set":r&&l===Map.prototype?"Map":c&&l===WeakSet.prototype?"WeakSet":s&&l===WeakMap.prototype?"WeakMap":u&&l===DataView.prototype?"DataView":r&&l===g?"Map Iterator":a&&l===h?"Set Iterator":m&&l===v?"Array Iterator":_&&l===y?"String Iterator":null===l?"Object":Object.prototype.toString.call(e).slice(8,-1)})})),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n(this,e),this.high=t,this.low=i}return r(e,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),e}(),R={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://api.im.qcloud.com"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com"},IND:{DEFAULT:"wss://wssind.im.qcloud.com",BACKUP:"wss://wssind.my-imcloud.com",STAT:"https://apiind.my-imcloud.com"}}},L={WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,UNI_NATIVE_APP:15},P="1.7.3",U=537048168,G="CHINA",F="OVERSEA",B="SINGAPORE",q="KOREA",j="GERMANY",$="IND",H={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://api.im.qcloud.com"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G;this.CURRENT=R.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",GROUP:"group_open_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush"},CMD:{ACCESS_LAYER:"accesslayer",LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_list",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"delete",PIN_CONVERSATION:"top",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",SEND_READ_RECEIPT:"group_msg_receipt",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCEOFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},V={SEARCH_MSG:new N(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new N(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new N(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new N(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new N(0,Math.pow(2,4)).toString()};H.HOST.setCurrent(G);var z,K,W,Y,X="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),J="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),Q="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),ee="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),te="undefined"!=typeof uni&&"undefined"==typeof window,ne="undefined"!=typeof uni,ie=X||J||Q||Z||ee||te,oe=("undefined"!=typeof uni||"undefined"!=typeof window)&&!ie,re=J?qq:Q?tt:Z?swan:ee?my:X?wx:te?uni:{},ae=(z="WEB",be?z="WEB":J?z="QQ_MP":Q?z="TT_MP":Z?z="BAIDU_MP":ee?z="ALI_MP":X?z="WX_MP":te&&(z="UNI_NATIVE_APP"),L[z]),se=oe&&window&&window.navigator&&window.navigator.userAgent||"",ce=/AppleWebKit\/([\d.]+)/i.exec(se),ue=(ce&&parseFloat(ce.pop()),/iPad/i.test(se)),le=/iPhone/i.test(se)&&!ue,de=/iPod/i.test(se),fe=le||ue||de,pe=(K=se.match(/OS (\d+)_/i))&&K[1]?K[1]:null,he=/Android/i.test(se),ge=function(){var e=se.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),me=(he&&/webkit/i.test(se),/Firefox/i.test(se),/Edge/i.test(se)),ve=(!me&&/Chrome/i.test(se),function(){var e=se.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),/MSIE/.test(se)||se.indexOf("Trident")>-1&&se.indexOf("rv:11.0")>-1),_e=(/MSIE\s8\.0/.test(se),function(){var e=/MSIE\s(\d+)\.\d/.exec(se),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(se)&&/rv:11.0/.test(se)&&(t=11),t}()),ye=(/Safari/i.test(se),/TBS\/\d+/i.test(se)),be=(function(){var e=se.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}(),!ye&&/MQQBrowser\/\d+/i.test(se),!ye&&/ QQBrowser\/\d+/i.test(se),/(micromessenger|webbrowser)/i.test(se)),Me=/Windows/i.test(se),Se=/MAC OS X/i.test(se),Ce=(/MicroMessenger/i.test(se),oe&&"undefined"!=typeof Worker&&!ve),ke="undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};W="undefined"!=typeof i?i:void 0!==ke&&ke.console?ke.console:"undefined"!=typeof window&&window.console?window.console:{};for(var Te=function(){},Ie=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],we=Ie.length;we--;)Y=Ie[we],i[Y]||(W[Y]=Te);W.methods=Ie;var Ae=W,Ee=0,Oe=function(){return(new Date).getTime()+Ee},xe=function(){Ee=0},De=function(){return Math.floor(Oe()/1e3)},Ne=0,Re=new Map;function Le(){var e,t=((e=new Date).setTime(Oe()),e);return"TIM "+t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(t.getMilliseconds())+":"}var Pe={arguments2String:function(e){var t;if(1===e.length)t=Le()+e[0];else{t=Le();for(var n=0,i=e.length;n<i;n++)Qe(e[n])?et(e[n])?t+=st(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug:function(){if(Ne<=-1){var e=this.arguments2String(arguments);Ae.debug(e)}},log:function(){if(Ne<=0){var e=this.arguments2String(arguments);Ae.log(e)}},info:function(){if(Ne<=1){var e=this.arguments2String(arguments);Ae.info(e)}},warn:function(){if(Ne<=2){var e=this.arguments2String(arguments);Ae.warn(e)}},error:function(){if(Ne<=3){var e=this.arguments2String(arguments);Ae.error(e)}},time:function(e){Re.set(e,rt.now())},timeEnd:function(e){if(Re.has(e)){var t=rt.now()-Re.get(e);return Re.delete(e),t}return Ae.warn("未找到对应label: ".concat(e,", 请在调用 logger.timeEnd 前,调用 logger.time")),0},setLevel:function(e){e<4&&Ae.log(Le()+"set level from "+Ne+" to "+e),Ne=e},getLevel:function(){return Ne}},Ue={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},Ge={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},Fe={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},Be={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},qe={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},je="JoinedSuccess",$e="WaitAdminApproval",He="@TGS#_",Ve=function(e){return"file"===nt(e)},ze=function(t){return null!==t&&("number"==typeof t&&!isNaN(t-0)||"object"===e(t)&&t.constructor===Number)},Ke=function(e){return"string"==typeof e},We=function(t){return null!==t&&"object"===e(t)},Ye=function(t){if("object"!==e(t)||null===t)return!1;var n=Object.getPrototypeOf(t);if(null===n)return!0;for(var i=n;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return n===i},Xe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===nt(e)},Je=function(e){return void 0===e},Qe=function(e){return Xe(e)||We(e)},Ze=function(e){return"function"==typeof e},et=function(e){return e instanceof Error},nt=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},it=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)},ot=0;Date.now||(Date.now=function(){return(new Date).getTime()});var rt={now:function(){0===ot&&(ot=Date.now()-1);var e=Date.now()-ot;return e>4294967295?(ot+=4294967295,Date.now()-ot):e},utc:function(){return Math.round(Date.now()/1e3)}},at=function e(t,n,i,o){if(!Qe(t)||!Qe(n))return 0;for(var r,a=0,s=Object.keys(n),c=0,u=s.length;c<u;c++)if(r=s[c],!(Je(n[r])||i&&i.includes(r)))if(Qe(t[r])&&Qe(n[r]))a+=e(t[r],n[r],i,o);else{if(o&&o.includes(n[r]))continue;t[r]!==n[r]&&(t[r]=n[r],a+=1)}return a},st=function(e){return JSON.stringify(e,["message","code"])},ct=function(e){if(0===e.length)return 0;for(var t=0,n=0,i="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===i?3:2;return n},ut=function(e){var t=e||99999999;return Math.round(Math.random()*t)},lt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",dt=lt.length,ft=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},pt={},ht=function(){if(ie)return"https:";if(oe&&"undefined"==typeof window)return"https:";var e=window.location.protocol;return["http:","https:"].indexOf(e)<0&&(e="http:"),e},gt=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},mt=function t(n){if(0===Object.getOwnPropertyNames(n).length)return Object.create(null);var i=Array.isArray(n)?[]:Object.create(null),o="";for(var r in n)null!==n[r]?void 0!==n[r]?(o=e(n[r]),["string","number","function","boolean"].indexOf(o)>=0?i[r]=n[r]:i[r]=t(n[r])):i[r]=void 0:i[r]=null;return i};function vt(e,t){Xe(e)&&Xe(t)?t.forEach((function(t){var n=t.key,i=t.value,o=e.find((function(e){return e.key===n}));o?o.value=i:e.push({key:n,value:i})})):Pe.warn("updateCustomField target 或 source 不是数组,忽略此次更新。")}var _t=function(e){return e===A.GRP_PUBLIC},yt=function(e){return e===A.GRP_AVCHATROOM},bt=function(e){var t=e.type,n=e.groupID;return t===A.GRP_COMMUNITY||"".concat(n).startsWith(He)},Mt=function(e){return Ke(e)&&e.slice(0,3)===A.CONV_C2C},St=function(e){return Ke(e)&&e.slice(0,5)===A.CONV_GROUP},Ct=function(e){return Ke(e)&&e===A.CONV_SYSTEM};function kt(e,t){var n={};return Object.keys(e).forEach((function(i){n[i]=t(e[i],i)})),n}function Tt(e){return ie?new Promise((function(t,n){re.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):ve&&9===_e?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var i=new Image;i.onload=function(){t({width:this.width,height:this.height}),i=null},i.onerror=function(){t({width:0,height:0}),i=null},i.src=e}))}function It(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function wt(){var e="unknown";if(Se&&(e="mac"),Me&&(e="windows"),fe&&(e="ios"),he&&(e="android"),ie)try{var t=re.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(o){}return e}function At(e){var t=e.originUrl,n=void 0===t?void 0:t,i=e.originWidth,o=e.originHeight,r=e.min,a=void 0===r?198:r,s=parseInt(i),c=parseInt(o),u={url:void 0,width:0,height:0};if((s<=c?s:c)<=a)u.url=n,u.width=s,u.height=c;else{c<=s?(u.width=Math.ceil(s*a/c),u.height=a):(u.width=a,u.height=Math.ceil(c*a/s));var l=n&&n.indexOf("?")>-1?"".concat(n,"&"):"".concat(n,"?");u.url="".concat(l,198===a?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")}return Je(n)?g(u,["url"]):u}function Et(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Ot(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function xt(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function Dt(e,t){return e.includes(t)}function Nt(e,t){return e.includes(t)}var Rt=Object.prototype.hasOwnProperty;function Lt(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(Ye(e)){for(var t in e)if(Rt.call(e,t))return!1;return!0}return!("map"!==nt(e)&&!function(e){return"set"===nt(e)}(e)&&!Ve(e))&&0===e.size}function Pt(e,t,n){if(void 0===t)return!0;var i=!0;if("object"===D(t).toLowerCase())Object.keys(t).forEach((function(o){var r=1===e.length?e[0][o]:void 0;i=!!Ut(r,t[o],n,o)&&i}));else if("array"===D(t).toLowerCase())for(var o=0;o<t.length;o++)i=!!Ut(e[o],t[o],n,t[o].name)&&i;if(i)return i;throw new Error("Params validate failed.")}function Ut(e,t,n,i){if(void 0===t)return!0;var o=!0;return t.required&&Lt(e)&&(Ae.error("TIM [".concat(n,'] Missing required params: "').concat(i,'".')),o=!1),Lt(e)||D(e).toLowerCase()===t.type.toLowerCase()||(Ae.error("TIM [".concat(n,'] Invalid params: type check failed for "').concat(i,'".Expected ').concat(t.type,".")),o=!1),t.validator&&!t.validator(e)&&(Ae.error("TIM [".concat(n,"] Invalid params: custom validator check failed for params.")),o=!1),o}var Gt,Ft={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},Bt={NOT_START:"notStart",PENDING:"pengding",RESOLVED:"resolved",REJECTED:"rejected"},qt=function(e){return!!e&&(!!(Mt(e)||St(e)||Ct(e))||(i.warn("非法的会话 ID:".concat(e,"。会话 ID 组成方式:C2C + userID(单聊)GROUP + groupID(群聊)@TIM#SYSTEM(系统通知会话)")),!1))},jt="请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#",$t=function(e){return e.param?"".concat(e.api," ").concat(e.param," ").concat(e.desc,"。").concat(jt).concat(e.api):"".concat(e.api," ").concat(e.desc,"。").concat(jt).concat(e.api)},Ht={type:"String",required:!0},Vt={type:"Array",required:!0},zt={type:"Object",required:!0},Kt={login:{userID:Ht,userSig:Ht},addToBlacklist:{userIDList:Vt},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(i.warn($t({api:"on",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(i.warn($t({api:"on",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&i.warn("on 接口的 handler 参数推荐使用具名函数。具名函数可以使用 off 接口取消订阅,匿名函数无法取消订阅。"),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(i.warn($t({api:"once",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(i.warn($t({api:"once",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&i.warn("once 接口的 handler 参数推荐使用具名函数。"),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(i.warn($t({api:"off",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(i.warn($t({api:"off",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&i.warn("off 接口无法为匿名函数取消监听事件。"),!0)}}],sendMessage:[c({name:"message"},zt)],getMessageList:{conversationID:c({},Ht,{validator:function(e){return qt(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!Je(e)&&!/^[1-9][0-9]*$/.test(e))||(i.warn($t({api:"getMessageList",param:"count",desc:"必须为正整数"})),!1)}}},setMessageRead:{conversationID:c({},Ht,{validator:function(e){return qt(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[A.READ_ALL_C2C_MSG,A.READ_ALL_GROUP_MSG,A.READ_ALL_MSG].indexOf(e)||(i.warn($t({api:"setAllMessageRead",param:"scope",desc:"取值必须为 TIM.TYPES.READ_ALL_C2C_MSG, TIM.TYPES.READ_ALL_GROUP_MSG 或 TIM.TYPES.READ_ALL_MSG"})),!1)}}},getConversationProfile:[c({name:"conversationID"},Ht,{validator:function(e){return qt(e)}})],deleteConversation:[c({name:"conversationID"},Ht,{validator:function(e){return qt(e)}})],pinConversation:{conversationID:c({},Ht,{validator:function(e){return qt(e)}}),isPinned:c({},{type:"Boolean",required:!0})},getConversationList:[{name:"options",type:"Array",validator:function(e){return!!Je(e)||0!==e.length||(i.warn($t({api:"getConversationList",desc:"获取指定会话时不能传入空数组"})),!1)}}],getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:Ht,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:Vt},createGroup:{name:Ht},joinGroup:{groupID:Ht,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[c({name:"groupID"},Ht)],handleApplication:{message:zt,handleAction:Ht,handleMessage:{type:"String"}},changeGroupOwner:{groupID:Ht,newOwnerID:Ht},updateGroupProfile:{groupID:Ht,muteAllMembers:{type:"Boolean"}},dismissGroup:[c({name:"groupID"},Ht)],searchGroupByID:[c({name:"groupID"},Ht)],initGroupAttributes:{groupID:Ht,groupAttributes:c({},zt,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!Ke(e[n]))return i.warn($t({api:"initGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},setGroupAttributes:{groupID:Ht,groupAttributes:c({},zt,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!Ke(e[n]))return i.warn($t({api:"setGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},deleteGroupAttributes:{groupID:Ht,keyList:{type:"Array",validator:function(e){if(Je(e))return i.warn($t({api:"deleteGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!Xe(e))return!1;if(!Lt(e)){var t=!0;return e.forEach((function(e){if(!Ke(e))return i.warn($t({api:"deleteGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupAttributes:{groupID:Ht,keyList:{type:"Array",validator:function(e){if(Je(e))return i.warn($t({api:"getGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!Xe(e))return!1;if(!Lt(e)){var t=!0;return e.forEach((function(e){if(!Ke(e))return i.warn($t({api:"getGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupMemberList:{groupID:Ht,count:{type:"Number"}},getGroupMemberProfile:{groupID:Ht,userIDList:Vt,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:Ht,userIDList:Vt},setGroupMemberRole:{groupID:Ht,userID:Ht,role:Ht},setGroupMemberMuteTime:{groupID:Ht,userID:Ht,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:Ht,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return Ke(e)?(e.length,!0):(i.warn($t({api:"setGroupMemberNameCard",param:"nameCard",desc:"类型必须为 String"})),!1)}}},setGroupMemberCustomField:{groupID:Ht,userID:{type:"String"},memberCustomField:Vt},deleteGroupMember:{groupID:Ht},createTextMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){return Ye(e)?Ke(e.text)?0!==e.text.length||(i.warn($t({api:"createTextMessage",desc:"消息内容不能为空"})),!1):(i.warn($t({api:"createTextMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(i.warn($t({api:"createTextMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createTextAtMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){return Ye(e)?Ke(e.text)?0===e.text.length?(i.warn($t({api:"createTextAtMessage",desc:"消息内容不能为空"})),!1):!(e.atUserList&&!Xe(e.atUserList))||(i.warn($t({api:"createTextAtMessage",desc:"payload.atUserList 类型必须为数组"})),!1):(i.warn($t({api:"createTextAtMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(i.warn($t({api:"createTextAtMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createCustomMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){return Ye(e)?e.data&&!Ke(e.data)?(i.warn($t({api:"createCustomMessage",param:"payload.data",desc:"类型必须为 String"})),!1):e.description&&!Ke(e.description)?(i.warn($t({api:"createCustomMessage",param:"payload.description",desc:"类型必须为 String"})),!1):!(e.extension&&!Ke(e.extension))||(i.warn($t({api:"createCustomMessage",param:"payload.extension",desc:"类型必须为 String"})),!1):(i.warn($t({api:"createCustomMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createImageMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){if(!Ye(e))return i.warn($t({api:"createImageMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(Je(e.file))return i.warn($t({api:"createImageMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(oe){if(!(e.file instanceof HTMLInputElement||Ve(e.file)))return Ye(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(i.warn($t({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(i.warn($t({api:"createImageMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return i.warn($t({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return Je(e)&&i.warn($t({api:"createImageMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}})},createAudioMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){return!!Ye(e)||(i.warn($t({api:"createAudioMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return Je(e)&&i.warn($t({api:"createAudioMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createVideoMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){if(!Ye(e))return i.warn($t({api:"createVideoMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(Je(e.file))return i.warn($t({api:"createVideoMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(oe){if(!(e.file instanceof HTMLInputElement||Ve(e.file)))return Ye(e.file)&&"undefined"!=typeof uni?!!Ve(e.file.tempFile)||(i.warn($t({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(i.warn($t({api:"createVideoMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return i.warn($t({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return Je(e)&&i.warn($t({api:"createVideoMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createFaceMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){return Ye(e)?ze(e.index)?!!Ke(e.data)||(i.warn($t({api:"createFaceMessage",param:"payload.data",desc:"类型必须为 String"})),!1):(i.warn($t({api:"createFaceMessage",param:"payload.index",desc:"类型必须为 Number"})),!1):(i.warn($t({api:"createFaceMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createFileMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){if(!Ye(e))return i.warn($t({api:"createFileMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(Je(e.file))return i.warn($t({api:"createFileMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(oe){if(!(e.file instanceof HTMLInputElement||Ve(e.file)))return Ye(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(i.warn($t({api:"createFileMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(i.warn($t({api:"createFileMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return i.warn($t({api:"createFileMessage",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return Je(e)&&i.warn($t({api:"createFileMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createLocationMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){return Ye(e)?Ke(e.description)?ze(e.longitude)?!!ze(e.latitude)||(i.warn($t({api:"createLocationMessage",param:"payload.latitude",desc:"类型必须为 Number"})),!1):(i.warn($t({api:"createLocationMessage",param:"payload.longitude",desc:"类型必须为 Number"})),!1):(i.warn($t({api:"createLocationMessage",param:"payload.description",desc:"类型必须为 String"})),!1):(i.warn($t({api:"createLocationMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createMergerMessage:{to:Ht,conversationType:Ht,payload:c({},zt,{validator:function(e){if(Lt(e.messageList))return i.warn($t({api:"createMergerMessage",desc:"不能为空数组"})),!1;if(Lt(e.compatibleText))return i.warn($t({api:"createMergerMessage",desc:"类型必须为 String,且不能为空"})),!1;var t=!1;return e.messageList.forEach((function(e){e.status===Ft.FAIL&&(t=!0)})),!t||(i.warn($t({api:"createMergerMessage",desc:"不支持合并已发送失败的消息"})),!1)}})},revokeMessage:[c({name:"message"},zt,{validator:function(e){return Lt(e)?(i.warn("revokeMessage 请传入消息(Message)实例"),!1):e.conversationType===A.CONV_SYSTEM?(i.warn("revokeMessage 不能撤回系统会话消息,只能撤回单聊消息或群消息"),!1):!0!==e.isRevoked||(i.warn("revokeMessage 消息已经被撤回,请勿重复操作"),!1)}})],deleteMessage:[c({name:"messageList"},Vt,{validator:function(e){return!Lt(e)||(i.warn($t({api:"deleteMessage",param:"messageList",desc:"不能为空数组"})),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return Xe(e)?(0===e.length&&i.warn($t({api:"getUserProfile",param:"userIDList",desc:"不能为空数组"})),!0):(i.warn($t({api:"getUserProfile",param:"userIDList",desc:"必须为数组"})),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!Je(e)||!!Xe(e)||(i.warn($t({api:"updateMyProfile",param:"profileCustomField",desc:"必须为数组"})),!1)}}},addFriend:{to:Ht,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(i.warn($t({api:"addFriend",desc:"加好友来源字段的关键字长度不得超过8字节"})),!1):(i.warn($t({api:"addFriend",desc:"加好友来源字段的前缀必须是:AddSource_Type_"})),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(Ke(e)&&e.length>96)||(i.warn($t({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}}},deleteFriend:{userIDList:Vt},checkFriend:{userIDList:Vt},getFriendProfile:{userIDList:Vt},updateFriend:{userID:Ht,remark:{type:"String",required:!1,validator:function(e){return!(Ke(e)&&e.length>96)||(i.warn($t({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!Xe(e))return i.warn($t({api:"updateFriend",param:"friendCustomField",desc:"必须为数组"})),!1;var t=!0;return e.forEach((function(e){return Ke(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?Ke(e.value)?e.value.length>8?(i.warn($t({api:"updateFriend",desc:"好友自定义字段的关键字长度不得超过8字节"})),t=!1):void 0:(i.warn($t({api:"updateFriend",desc:"类型必须为 String"})),t=!1):(i.warn($t({api:"updateFriend",desc:"好友自定义字段的前缀必须是 Tag_SNS_Custom"})),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:Ht},refuseFriendApplication:{userID:Ht},deleteFriendApplication:{userID:Ht},createFriendGroup:{name:Ht},deleteFriendGroup:{name:Ht},addToFriendGroup:{name:Ht,userIDList:Vt},removeFromFriendGroup:{name:Ht,userIDList:Vt},renameFriendGroup:{oldName:Ht,newName:Ht},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function(e){return Xe(e)?0===e.length?(i.warn($t({api:"sendMessageReadReceipt",param:"messageList",desc:"不能为空数组"})),!1):(e.forEach((function(e){if(e.conversationType===A.CONV_C2C)return i.warn($t({api:"sendMessageReadReceipt",param:"messageList",desc:"仅支持群消息"})),!1})),!0):(i.warn($t({api:"sendMessageReadReceipt",param:"messageList",desc:"必须为数组"})),!1)}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function(e){return Xe(e)?0===e.length?(i.warn($t({api:"getMessageReadReceiptList",param:"messageList",desc:"不能为空数组"})),!1):(e.forEach((function(e){if(e.conversationType===A.CONV_C2C)return i.warn($t({api:"getMessageReadReceiptList",param:"messageList",desc:"仅支持群消息"})),!1})),!0):(i.warn($t({api:"getMessageReadReceiptList",param:"messageList",desc:"必须为数组"})),!1)}}]},Wt={login:"login",logout:"logout",on:"on",once:"once",off:"off",setLogLevel:"setLogLevel",registerPlugin:"registerPlugin",destroy:"destroy",createTextMessage:"createTextMessage",createTextAtMessage:"createTextAtMessage",createImageMessage:"createImageMessage",createAudioMessage:"createAudioMessage",createVideoMessage:"createVideoMessage",createCustomMessage:"createCustomMessage",createFaceMessage:"createFaceMessage",createFileMessage:"createFileMessage",createLocationMessage:"createLocationMessage",createMergerMessage:"createMergerMessage",downloadMergerMessage:"downloadMergerMessage",createForwardMessage:"createForwardMessage",sendMessage:"sendMessage",resendMessage:"resendMessage",revokeMessage:"revokeMessage",deleteMessage:"deleteMessage",sendMessageReadReceipt:"sendMessageReadReceipt",getGroupMessageReadMemberList:"getGroupMessageReadMemberList",getMessageReadReceiptList:"getMessageReadReceiptList",getMessageList:"getMessageList",findMessage:"findMessage",setMessageRead:"setMessageRead",setAllMessageRead:"setAllMessageRead",getConversationList:"getConversationList",getConversationProfile:"getConversationProfile",deleteConversation:"deleteConversation",pinConversation:"pinConversation",getGroupList:"getGroupList",getGroupProfile:"getGroupProfile",createGroup:"createGroup",joinGroup:"joinGroup",updateGroupProfile:"updateGroupProfile",quitGroup:"quitGroup",dismissGroup:"dismissGroup",changeGroupOwner:"changeGroupOwner",searchGroupByID:"searchGroupByID",setMessageRemindType:"setMessageRemindType",handleGroupApplication:"handleGroupApplication",initGroupAttributes:"initGroupAttributes",setGroupAttributes:"setGroupAttributes",deleteGroupAttributes:"deleteGroupAttributes",getGroupAttributes:"getGroupAttributes",getGroupMemberProfile:"getGroupMemberProfile",getGroupMemberList:"getGroupMemberList",addGroupMember:"addGroupMember",deleteGroupMember:"deleteGroupMember",setGroupMemberNameCard:"setGroupMemberNameCard",setGroupMemberMuteTime:"setGroupMemberMuteTime",setGroupMemberRole:"setGroupMemberRole",setGroupMemberCustomField:"setGroupMemberCustomField",getGroupOnlineMemberCount:"getGroupOnlineMemberCount",getMyProfile:"getMyProfile",getUserProfile:"getUserProfile",updateMyProfile:"updateMyProfile",getBlacklist:"getBlacklist",addToBlacklist:"addToBlacklist",removeFromBlacklist:"removeFromBlacklist",getFriendList:"getFriendList",addFriend:"addFriend",deleteFriend:"deleteFriend",checkFriend:"checkFriend",updateFriend:"updateFriend",getFriendProfile:"getFriendProfile",getFriendApplicationList:"getFriendApplicationList",refuseFriendApplication:"refuseFriendApplication",deleteFriendApplication:"deleteFriendApplication",acceptFriendApplication:"acceptFriendApplication",setFriendApplicationRead:"setFriendApplicationRead",getFriendGroupList:"getFriendGroupList",createFriendGroup:"createFriendGroup",renameFriendGroup:"renameFriendGroup",deleteFriendGroup:"deleteFriendGroup",addToFriendGroup:"addToFriendGroup",removeFromFriendGroup:"removeFromFriendGroup",callExperimentalAPI:"callExperimentalAPI"},Yt="sign",Xt="message",Jt="user",Qt="c2c",Zt="group",en="sns",tn="groupMember",nn="conversation",on="context",rn="storage",an="eventStat",sn="netMonitor",cn="bigDataChannel",un="upload",ln="plugin",dn="syncUnreadMessage",fn="session",pn="channel",hn="message_loss_detection",gn="cloudControl",mn="workerTimer",vn="pullGroupMessage",_n="qualityStat",yn="commercialConfig",bn=function(){function e(t){n(this,e),this._moduleManager=t,this._className=""}return r(e,[{key:"isLoggedIn",value:function(){return this._moduleManager.getModule(on).isLoggedIn()}},{key:"isOversea",value:function(){return this._moduleManager.getModule(on).isOversea()}},{key:"getMyUserID",value:function(){return this._moduleManager.getModule(on).getUserID()}},{key:"getMyTinyID",value:function(){return this._moduleManager.getModule(on).getTinyID()}},{key:"getModule",value:function(e){return this._moduleManager.getModule(e)}},{key:"getPlatform",value:function(){return ae}},{key:"getNetworkType",value:function(){return this._moduleManager.getModule(sn).getNetworkType()}},{key:"probeNetwork",value:function(){return this._moduleManager.getModule(sn).probe()}},{key:"getCloudConfig",value:function(e){return this._moduleManager.getModule(gn).getCloudConfig(e)}},{key:"emitOuterEvent",value:function(e,t){this._moduleManager.getOuterEmitterInstance().emit(e,t)}},{key:"emitInnerEvent",value:function(e,t){this._moduleManager.getInnerEmitterInstance().emit(e,t)}},{key:"getInnerEmitterInstance",value:function(){return this._moduleManager.getInnerEmitterInstance()}},{key:"generateTjgID",value:function(e){return this._moduleManager.getModule(on).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!Lt(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(w.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return Lt(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._moduleManager.getModule(fn).request(e)}},{key:"canIUse",value:function(e){return this._moduleManager.getModule(yn).hasPurchasedFeature(e)}}]),e}(),Mn="wslogin",Sn="wslogout",Cn="wshello",kn="KickOther",Tn="getmsg",In="authkey",wn="sendmsg",An="send_group_msg",En="portrait_get_all",On="portrait_set",xn="black_list_get",Dn="black_list_add",Nn="black_list_delete",Rn="msgwithdraw",Ln="msgreaded",Pn="set_c2c_peer_mute_notifications",Un="get_c2c_peer_mute_notifications",Gn="getroammsg",Fn="get_peer_read_time",Bn="delete_c2c_msg_ramble",qn="page_get",jn="get",$n="delete",Hn="top",Vn="deletemsg",zn="get_joined_group_list",Kn="get_group_self_member_info",Wn="create_group",Yn="destroy_group",Xn="modify_group_base_info",Jn="apply_join_group",Qn="apply_join_group_noauth",Zn="quit_group",ei="get_group_public_info",ti="change_group_owner",ni="handle_apply_join_group",ii="handle_invite_join_group",oi="group_msg_recall",ri="msg_read_report",ai="read_all_unread_msg",si="group_msg_get",ci="get_group_msg_receipt",ui="group_msg_receipt",li="get_group_msg_receipt_detail",di="get_pendency",fi="deletemsg",pi="get_msg",hi="get_msg_noauth",gi="get_online_member_num",mi="delete_group_ramble_msg_by_seq",vi="set_group_attr",_i="modify_group_attr",yi="delete_group_attr",bi="clear_group_attr",Mi="get_group_attr",Si="get_group_member_info",Ci="get_specified_group_member_info",ki="add_group_member",Ti="delete_group_member",Ii="modify_group_member_info",wi="cos",Ai="pre_sig",Ei="video_cover",Oi="tim_web_report_v2",xi="alive",Di="msg_push",Ni="multi_msg_push_ws",Ri="ws_msg_push_ack",Li="stat_forceoffline",Pi="save_relay_json_msg",Ui="get_relay_json_msg",Gi="fetch_config",Fi="push_configv2",Bi="fetch_imsdk_purchase_bitsv2",qi="push_imsdk_purchase_bitsv2",ji="notify2",$i={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_LIST_CONSTRUCTOR_NEED_OPTIONS:2103,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,MESSAGE_CONTROL_INFO_FAIL:2113,READ_RECEIPT_SEQUENCE_LIST_EMPTY:2114,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_AT_TYPE_INVALID:2454,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_Work:2622,MEMBER_NOT_IN_GROUP:2623,CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM:2641,CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN:2642,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,CANNOT_KICK_MEMBER_IN_AVCHATROOM:2680,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,ADD_BLACKLIST_INVALID_PARAM:2740,DEL_BLACKLIST_INVALID_PARAM:2741,CANNOT_ADD_SELF_TO_BLACKLIST:2742,ADD_FRIEND_INVALID_PARAM:2760,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NETWORK_BASE_OPTIONS_NO_URL:2802,NETWORK_UNDEFINED_SERVER_NAME:2803,NETWORK_PACKAGE_UNDEFINED:2804,NO_NETWORK:2805,CONVERTOR_IRREGULAR_PARAMS:2900,NOTICE_RUNLOOP_UNEXPECTED_CONDITION:2901,NOTICE_RUNLOOP_OFFSET_LOST:2902,UNCAUGHT_ERROR:2903,GET_LONGPOLL_ID_FAILED:2904,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,LONG_POLL_KICK_OUT:91101,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,LONG_POLL_API_PARAM_ERROR:90001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},Hi={NO_SDKAPPID:"无 SDKAppID",NO_ACCOUNT_TYPE:"无 accountType",NO_IDENTIFIER:"无 userID",NO_USERSIG:"无 userSig",NO_TINYID:"无 tinyID",NO_A2KEY:"无 a2key",USER_NOT_LOGGED_IN:"用户未登录",REPEAT_LOGIN:"重复登录",COS_UNDETECTED:"未检测到 COS 上传插件",COS_GET_SIG_FAIL:"获取 COS 预签名 URL 失败",MESSAGE_SEND_FAIL:"消息发送失败",MESSAGE_LIST_CONSTRUCTOR_NEED_OPTIONS:"MessageController.constructor() 需要参数 options",MESSAGE_SEND_NEED_MESSAGE_INSTANCE:"需要 Message 的实例",MESSAGE_SEND_INVALID_CONVERSATION_TYPE:'Message.conversationType 只能为 "C2C" 或 "GROUP"',MESSAGE_FILE_IS_EMPTY:"无法发送空文件",MESSAGE_ONPROGRESS_FUNCTION_ERROR:"回调函数运行时遇到错误,请检查接入侧代码",MESSAGE_REVOKE_FAIL:"消息撤回失败",MESSAGE_DELETE_FAIL:"消息删除失败",MESSAGE_UNREAD_ALL_FAIL:"设置所有未读消息为已读处理失败",MESSAGE_CONTROL_INFO_FAIL:"社群不支持消息发送控制选项",READ_RECEIPT_SEQUENCE_LIST_EMPTY:"发送群已读回执时 sequenceList 为空",MESSAGE_IMAGE_SELECT_FILE_FIRST:"请先选择一个图片",MESSAGE_IMAGE_TYPES_LIMIT:"只允许上传 jpg png jpeg gif bmp image webp 格式的图片",MESSAGE_IMAGE_SIZE_LIMIT:"图片大小超过20M,无法发送",MESSAGE_AUDIO_UPLOAD_FAIL:"语音上传失败",MESSAGE_AUDIO_SIZE_LIMIT:"语音大小大于20M,无法发送",MESSAGE_VIDEO_UPLOAD_FAIL:"视频上传失败",MESSAGE_VIDEO_SIZE_LIMIT:"视频大小超过100M,无法发送",MESSAGE_VIDEO_TYPES_LIMIT:"只允许上传 mp4 格式的视频",MESSAGE_FILE_UPLOAD_FAIL:"文件上传失败",MESSAGE_FILE_SELECT_FILE_FIRST:"请先选择一个文件",MESSAGE_FILE_SIZE_LIMIT:"文件大小超过100M,无法发送 ",MESSAGE_FILE_URL_IS_EMPTY:"缺少必要的参数文件 URL",MESSAGE_MERGER_TYPE_INVALID:"非合并消息",MESSAGE_MERGER_KEY_INVALID:"合并消息的 messageKey 无效",MESSAGE_MERGER_DOWNLOAD_FAIL:"下载合并消息失败",MESSAGE_FORWARD_TYPE_INVALID:"选择的消息类型(如群提示消息)不可以转发",MESSAGE_AT_TYPE_INVALID:"社群不支持 @ 所有人",CONVERSATION_NOT_FOUND:"没有找到相应的会话,请检查传入参数",USER_OR_GROUP_NOT_FOUND:"没有找到相应的用户或群组,请检查传入参数",CONVERSATION_UN_RECORDED_TYPE:"未记录的会话类型",ILLEGAL_GROUP_TYPE:"非法的群类型,请检查传入参数",CANNOT_JOIN_WORK:"不能加入 Work 类型的群组",ILLEGAL_GROUP_ID:"群组 ID 非法,Public/Work/Meeting/AVChatRoom 类型群组不能以 @TGS#_ 为前缀,社群必须以 @TGS#_ 为前缀",CANNOT_CHANGE_OWNER_IN_AVCHATROOM:"AVChatRoom 类型的群组不能转让群主",CANNOT_CHANGE_OWNER_TO_SELF:"不能把群主转让给自己",CANNOT_DISMISS_WORK:"不能解散 Work 类型的群组",MEMBER_NOT_IN_GROUP:"用户不在该群组内",JOIN_GROUP_FAIL:"加群失败,请检查传入参数或重试",CANNOT_ADD_MEMBER_IN_AVCHATROOM:"AVChatRoom 类型的群不支持邀请群成员",CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:"非 AVChatRoom 类型的群组不允许匿名加群,请先登录后再加群",CANNOT_KICK_MEMBER_IN_AVCHATROOM:"不能在 AVChatRoom 类型的群组踢人",NOT_OWNER:"你不是群主,只有群主才有权限操作",CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:"不能在 Work / AVChatRoom 类型的群中设置群成员身份",INVALID_MEMBER_ROLE:"不合法的群成员身份,请检查传入参数",CANNOT_SET_SELF_MEMBER_ROLE:"不能设置自己的群成员身份,请检查传入参数",CANNOT_MUTE_SELF:"不能将自己禁言,请检查传入参数",NOT_MY_FRIEND:"非好友关系",ALREADY_MY_FRIEND:"已经是好友关系",FRIEND_GROUP_EXISTED:"好友分组已存在",FRIEND_GROUP_NOT_EXIST:"好友分组不存在",FRIEND_APPLICATION_NOT_EXIST:"好友申请不存在",UPDATE_PROFILE_INVALID_PARAM:"传入 updateMyProfile 接口的参数无效",UPDATE_PROFILE_NO_KEY:"updateMyProfile 无标配资料字段或自定义资料字段",ADD_BLACKLIST_INVALID_PARAM:"传入 addToBlacklist 接口的参数无效",DEL_BLACKLIST_INVALID_PARAM:"传入 removeFromBlacklist 接口的参数无效",CANNOT_ADD_SELF_TO_BLACKLIST:"不能拉黑自己",ADD_FRIEND_INVALID_PARAM:"传入 addFriend 接口的参数无效",NETWORK_ERROR:"网络错误",NETWORK_TIMEOUT:"请求超时",NETWORK_BASE_OPTIONS_NO_URL:"网络层初始化错误,缺少 URL 参数",NETWORK_UNDEFINED_SERVER_NAME:"打包错误,未定义的 serverName",NETWORK_PACKAGE_UNDEFINED:"未定义的 packageConfig",NO_NETWORK:"未连接到网络",CONVERTOR_IRREGULAR_PARAMS:"不规范的参数名称",NOTICE_RUNLOOP_UNEXPECTED_CONDITION:"意料外的通知条件",NOTICE_RUNLOOP_OFFSET_LOST:"_syncOffset 丢失",GET_LONGPOLL_ID_FAILED:"获取 longpolling id 失败",UNCAUGHT_ERROR:"未经明确定义的错误",INVALID_OPERATION:"无效操作,如调用了未定义或者未实现的方法等",CANNOT_FIND_PROTOCOL:"无法找到协议",CANNOT_FIND_MODULE:"无法找到模块,请参考:https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-03-sns.html",SDK_IS_NOT_READY:"接口需要 SDK 处于 ready 状态后才能调用",LOGGING:"用户正在登录中",LOGIN_FAILED:"用户登录失败",KICKED_OUT_MULT_DEVICE:"用户多终端登录被踢出",KICKED_OUT_MULT_ACCOUNT:"用户多实例登录被踢出",KICKED_OUT_USERSIG_EXPIRED:"用户 userSig 过期被踢出",LOGGED_OUT:"用户已登出",OVER_FREQUENCY_LIMIT:"超出 SDK 频率控制",LONG_POLL_KICK_OUT:"检测到多个 web 实例登录,消息通道下线",OPEN_SERVICE_OVERLOAD_ERROR:"后台服务正忙,请稍后再试",MESSAGE_A2KEY_EXPIRED:"消息错误码:UserSig 或 A2 失效。",ACCOUNT_A2KEY_EXPIRED:"帐号错误码:UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",LONG_POLL_API_PARAM_ERROR:"longPoll API parameters error"},Vi="networkRTT",zi="messageE2EDelay",Ki="sendMessageC2C",Wi="sendMessageGroup",Yi="sendMessageGroupAV",Xi="sendMessageRichMedia",Ji="cosUpload",Qi="messageReceivedGroup",Zi="messageReceivedGroupAVPush",eo="messageReceivedGroupAVPull",to=(a(Gt={},Vi,2),a(Gt,zi,3),a(Gt,Ki,4),a(Gt,Wi,5),a(Gt,Yi,6),a(Gt,Xi,7),a(Gt,Qi,8),a(Gt,Zi,9),a(Gt,eo,10),a(Gt,Ji,11),Gt),no={info:4,warning:5,error:6},io={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},oo={login:4},ro=function(){function t(e){n(this,t),this.eventType=oo[e]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=e,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=Oe()}return r(t,[{key:"updateTimeStamp",value:function(){this.timestamp=Oe()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=Oe();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:"setError",value:function(e,t,n){return e instanceof Error?(this._sentFlag||(this.setNetworkType(n),t?(e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message)):(this.setCode($i.NO_NETWORK),this.setMoreMessage(Hi.NO_NETWORK)),this.setLevel("error")),this):(Pe.warn("SSOLogData.setError value not instanceof Error, please check!"),this)}},{key:"setCode",value:function(t){return Je(t)||this._sentFlag||("ECONNABORTED"===t&&(this.code=103),ze(t)?this.code=t:Pe.warn("SSOLogData.setCode value not a number, please check!",t,e(t))),this}},{key:"setMessage",value:function(e){return Je(e)||this._sentFlag||(ze(e)&&(this.message=e.toString()),Ke(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return Je(e)||this._sentFlag||(this.level=no[e]),this}},{key:"setMoreMessage",value:function(e){return Lt(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(Je(e))Pe.warn("SSOLogData.setNetworkType value is undefined, please check!");else{var t=io[e.toLowerCase()];Je(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setUIPlatform",value:function(e){this.uiPlatform=e}}],[{key:"bindEventStatModule",value:function(e){t.prototype._eventStatModule=e}}]),t}(),ao="sdkConstruct",so="sdkReady",co="login",uo="logout",lo="kickedOut",fo="registerPlugin",po="kickOther",ho="wsConnect",go="wsOnOpen",mo="wsOnClose",vo="wsOnError",_o="networkChange",yo="getCosAuthKey",bo="getCosPreSigUrl",Mo="getSnapshotInfo",So="upload",Co="sendMessage",ko="sendMessageWithReceipt",To="getC2CRoamingMessages",Io="getGroupRoamingMessages",wo="getReadReceipt",Ao="getReadReceiptDetail",Eo="sendReadReceipt",Oo="revokeMessage",xo="deleteMessage",Do="setC2CMessageRead",No="setGroupMessageRead",Ro="emptyMessageBody",Lo="getPeerReadTime",Po="uploadMergerMessage",Uo="downloadMergerMessage",Go="jsonParseError",Fo="messageE2EDelayException",Bo="getConversationList",qo="getConversationProfile",jo="deleteConversation",$o="pinConversation",Ho="getConversationListInStorage",Vo="syncConversationList",zo="setAllMessageRead",Ko="createGroup",Wo="applyJoinGroup",Yo="quitGroup",Xo="searchGroupByID",Jo="changeGroupOwner",Qo="handleGroupApplication",Zo="handleGroupInvitation",er="setMessageRemindType",tr="dismissGroup",nr="updateGroupProfile",ir="getGroupList",or="getGroupProfile",rr="getGroupListInStorage",ar="getGroupLastSequence",sr="getGroupMissingMessage",cr="pagingGetGroupList",ur="getGroupSimplifiedInfo",lr="joinWithoutAuth",dr="initGroupAttributes",fr="setGroupAttributes",pr="deleteGroupAttributes",hr="getGroupAttributes",gr="getGroupMemberList",mr="getGroupMemberProfile",vr="addGroupMember",_r="deleteGroupMember",yr="setGroupMemberMuteTime",br="setGroupMemberNameCard",Mr="setGroupMemberRole",Sr="setGroupMemberCustomField",Cr="getGroupOnlineMemberCount",kr="longPollingAVError",Tr="messageLoss",Ir="messageStacked",wr="getUserProfile",Ar="updateMyProfile",Er="getBlacklist",Or="addToBlacklist",xr="removeFromBlacklist",Dr="callbackFunctionError",Nr="fetchCloudControlConfig",Rr="pushedCloudControlConfig",Lr="fetchCommercialConfig",Pr="pushedCommercialConfig",Ur="error",Gr="lastMessageNotExist",Fr=function(){function e(t){n(this,e),this.type=A.MSG_TEXT,this.content={text:t.text||""}}return r(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),Br=function(){function e(t){n(this,e),this._imageMemoryURL="",ie?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=A.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Ue.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._defaultImage="http://imgcache.qq.com/open/qcloud/video/act/webim-images/default.jpg",this._autoFixUrl()}return r(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=ut(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=t.url||e._imageMemoryURL||e._defaultImage},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t=0,n=null,i=null;t<=2;)i=Je(e)||Je(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(i)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,i=0;i<n;i++)t=this.content.imageInfoArray[i],e[i].size&&(t.size=e[i].size),e[i].url&&t.setImageUrl(e[i].url),e[i].width&&(t.width=e[i].width),e[i].height&&(t.height=e[i].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",i=["http","https"],o=null,r=0;r<e;r++)this.content.imageInfoArray[r].url&&""!==(o=this.content.imageInfoArray[r]).imageUrl&&(n=o.imageUrl.slice(0,o.imageUrl.indexOf("://")+1),t=o.imageUrl.slice(o.imageUrl.indexOf("://")+1),i.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[r].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=Ue[e.toUpperCase()]||Ue.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURLInWXMiniApp",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,i=void 0===n?0:n,o=t.height,r=void 0===o?0:o;0!==i&&0!==r&&(Et(e),Object.assign(e[2],At({originWidth:i,originHeight:r,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),qr=function(){function e(t){n(this,e),this.type=A.MSG_FACE,this.content=t||null}return r(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),jr=function(){function e(t){n(this,e),this.type=A.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:t.url,remoteAudioUrl:t.url||"",uuid:t.uuid}}return r(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),e}(),$r={from:!0,groupID:!0,groupName:!0,to:!0},Hr=function(){function e(t){n(this,e),this.type=A.MSG_GRP_TIP,this.content={},this._initContent(t)}return r(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"onlineMemberInfo":break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];$r[i]&&(this.content.groupProfile[i]=e[i])}}},{key:"_updateMemberList",value:function(e){Lt(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}}]),e}(),Vr={from:!0,groupID:!0,groupName:!0,to:!0},zr=function(){function e(t){n(this,e),this.type=A.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return r(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];Vr[i]&&("groupName"===i?this.content.groupProfile.name=e[i]:this.content.groupProfile[i]=e[i])}}}]),e}(),Kr=function(){function e(t){n(this,e),this.type=A.MSG_FILE,this._percent=0;var i=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:t.url||"",uuid:t.uuid,fileName:i.name||"",fileSize:i.size||0}}return r(e,[{key:"_getFileInfo",value:function(e){if(!Je(e.fileName)&&!Je(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(te){if(t.path&&-1!==t.path.indexOf(".")){var n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=n,t.name||(t.name="".concat(ut(999999),".").concat(n))}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),e}(),Wr=function(){function e(t){n(this,e),this.type=A.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return r(e,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),Yr=function(){function e(t){n(this,e),this.type=A.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:t.videoUrl,videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:t.thumbUrl,snapshotUrl:t.thumbUrl}}return r(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,i=e.snapshotHeight;Lt(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),Lt(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),Lt(i)||(this.content.thumbHeight=this.content.snapshotHeight=Number(i))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),Xr=function(){function e(t){n(this,e),this.type=A.MSG_LOCATION;var i=t.description,o=t.longitude,r=t.latitude;this.content={description:i,longitude:o,latitude:r}}return r(e,[{key:"sendable",value:function(){return!0}}]),e}(),Jr=function(){function e(t){if(n(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",t.ID)this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(A.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(A.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var i=t.elements[0].type,o=t.elements[0].content;this._patchRichMediaPayload(i,o),i===A.MSG_MERGER?this.messageBody.push({type:i,payload:new Qr(o).content}):this.messageBody.push({type:i,payload:o}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to)}}return r(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===A.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===A.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===A.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===A.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}}]),e}(),Qr=function(){function e(t){if(n(this,e),this.type=A.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var i=t.downloadKey,o=t.pbDownloadKey,r=t.title,a=t.abstractList,s=t.compatibleText,c=t.version;this.content.downloadKey=i,this.content.pbDownloadKey=o,this.content.title=r,this.content.abstractList=a,this.content.compatibleText=s,this.content.version=c||0}else if(Lt(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var u=t.messageList,l=t.title,d=t.abstractList,f=t.compatibleText,p=t.version,h=[];u.forEach((function(e){if(!Lt(e)){var t=new Jr(e);h.push(t)}})),this.content.messageList=h,this.content.title=l,this.content.abstractList=d,this.content.compatibleText=f,this.content.version=p||0}Pe.debug("MergerElement.content:",this.content)}return r(e,[{key:"sendable",value:function(){return!Lt(this.content.messageList)||!Lt(this.content.downloadKey)}}]),e}(),Zr={1:A.MSG_PRIORITY_HIGH,2:A.MSG_PRIORITY_NORMAL,3:A.MSG_PRIORITY_LOW,4:A.MSG_PRIORITY_LOWEST},ea=function(){function e(t){n(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||A.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:ut(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||Ft.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||De()||0,this.senderTinyID=t.senderTinyID||t.tinyID||"",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t)}return r(e,[{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){Ke(e.nick)&&(this.nick=e.nick),Ke(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;Ye(t)&&Ke(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==A.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(A.MSG_AT_ALL))})),Xe(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(A.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?Ft.SUCCESS:Ft.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:"isSendable",value:function(){return 0!==this._elements.length&&("function"!=typeof this._elements[0].sendable?(Pe.warn("".concat(this._elements[0].type,' need "boolean : sendable()" method')),!1):this._elements[0].sendable())}},{key:"_initTo",value:function(e){this.conversationType===A.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return Pe.error("autoIncrementIndex(string: key) need key parameter"),!1;if(void 0===pt[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),i="0".concat(t.getMinutes()).slice(-2),o="0".concat(t.getSeconds()).slice(-2);pt[e]=parseInt([n,i,o,"0001"].join("")),n=null,i=null,o=null,Pe.log("autoIncrementIndex start index:".concat(pt[e]))}return pt[e]++}(e)),0===this.sequence&&this.conversationType===A.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(){this.from===A.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n="",i=this.conversationType;i!==A.CONV_SYSTEM?(n=i===A.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID="".concat(i).concat(n)):this.conversationID=A.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof Fr||e instanceof Br||e instanceof qr||e instanceof jr||e instanceof Kr||e instanceof Yr||e instanceof Hr||e instanceof zr||e instanceof Wr||e instanceof Xr||e instanceof Qr}},{key:"setElement",value:function(e){var t=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var n=function(e){if(e.type&&e.content)switch(e.type){case A.MSG_TEXT:t.setTextElement(e.content);break;case A.MSG_IMAGE:t.setImageElement(e.content);break;case A.MSG_AUDIO:t.setAudioElement(e.content);break;case A.MSG_FILE:t.setFileElement(e.content);break;case A.MSG_VIDEO:t.setVideoElement(e.content);break;case A.MSG_CUSTOM:t.setCustomElement(e.content);break;case A.MSG_LOCATION:t.setLocationElement(e.content);break;case A.MSG_GRP_TIP:t.setGroupTipElement(e.content);break;case A.MSG_GRP_SYS_NOTICE:t.setGroupSystemNoticeElement(e.content);break;case A.MSG_FACE:t.setFaceElement(e.content);break;case A.MSG_MERGER:t.setMergerElement(e.content);break;default:Pe.warn(e.type,e.content,"no operation......")}};if(Xe(e))for(var i=0;i<e.length;i++)n(e[i]);else n(e);this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){var t="string"==typeof e?e:e.text,n=new Fr({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e){var t=new Br(e);this._elements.push(t)}},{key:"setAudioElement",value:function(e){var t=new jr(e);this._elements.push(t)}},{key:"setFileElement",value:function(e){var t=new Kr(e);this._elements.push(t)}},{key:"setVideoElement",value:function(e){var t=new Yr(e);this._elements.push(t)}},{key:"setLocationElement",value:function(e){var t=new Xr(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new Wr(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;Lt(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==A.GRP_TIP_MBR_JOIN&&n!==A.GRP_TIP_MBR_KICKED_OUT&&n!==A.GRP_TIP_MBR_SET_ADMIN&&n!==A.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]);var i=t,o=i.nick,r=i.avatar;Ke(o)&&(this.nick=o),Ke(r)&&(this.avatar=r);var a=new Hr(e);this._elements.push(a)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new zr(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new qr(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e){var t=new Qr(e);this._elements.push(t)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"getRelayFlag",value:function(){return this._relayFlag}},{key:"_computePriority",value:function(e){if(Je(e))return A.MSG_PRIORITY_NORMAL;if(Ke(e)&&-1!==Object.values(Zr).indexOf(e))return e;if(ze(e)){var t=""+e;if(-1!==Object.keys(Zr).indexOf(t))return Zr[t]}return A.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;Ke(t)&&(this.nick=t),Ke(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){Ke(e)&&(this.nameCard=e)}},{key:"elements",get:function(){return Pe.warn("!!!Message 实例的 elements 属性即将废弃,请尽快修改。使用 type 和 payload 属性处理单条消息,兼容组合消息使用 _elements 属性!!!"),this._elements}}]),e}(),ta=function(e){return{code:0,data:e||{}}},na="https://cloud.tencent.com/document/product/",ia="您可以在即时通信 IM 控制台的【开发辅助工具(https://console.cloud.tencent.com/im-detail/tool-usersig)】 页面校验 UserSig。",oa="UserSig 非法,请使用官网提供的 API 重新生成 UserSig(".concat(na,"269/32688)。"),ra="#.E6.B6.88.E6.81.AF.E5.85.83.E7.B4.A0-timmsgelement",aa={70001:"UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",70002:"UserSig 长度为0,请检查传入的 UserSig 是否正确。",70003:oa,70005:oa,70009:"UserSig 验证失败,可能因为生成 UserSig 时混用了其他 SDKAppID 的私钥或密钥导致,请使用对应 SDKAppID 下的私钥或密钥重新生成 UserSig(".concat(na,"269/32688)。"),70013:"请求中的 UserID 与生成 UserSig 时使用的 UserID 不匹配。".concat(ia),70014:"请求中的 SDKAppID 与生成 UserSig 时使用的 SDKAppID 不匹配。".concat(ia),70016:"密钥不存在,UserSig 验证失败,请在即时通信 IM 控制台获取密钥(".concat(na,"269/32578#.E8.8E.B7.E5.8F.96.E5.AF.86.E9.92.A5)。"),70020:"SDKAppID 未找到,请在即时通信 IM 控制台确认应用信息。",70050:"UserSig 验证次数过于频繁。请检查 UserSig 是否正确,并于1分钟后重新验证。".concat(ia),70051:"帐号被拉入黑名单。",70052:"UserSig 已经失效,请重新生成,再次尝试。",70107:"因安全原因被限制登录,请不要频繁登录。",70169:"请求的用户帐号不存在。",70114:"".concat("服务端内部超时,请稍后重试。"),70202:"".concat("服务端内部超时,请稍后重试。"),70206:"请求中批量数量不合法。",70402:"参数非法,请检查必填字段是否填充,或者字段的填充是否满足协议要求。",70403:"请求失败,需要 App 管理员权限。",70398:"帐号数超限。如需创建多于100个帐号,请将应用升级为专业版,具体操作指引请参见购买指引(".concat(na,"269/32458)。"),70500:"".concat("服务端内部错误,请重试。"),71e3:"删除帐号失败。仅支持删除体验版帐号,您当前应用为专业版,暂不支持帐号删除。",20001:"请求包非法。",20002:"UserSig 或 A2 失效。",20003:"消息发送方或接收方 UserID 无效或不存在,请检查 UserID 是否已导入即时通信 IM。",20004:"网络异常,请重试。",20005:"".concat("服务端内部错误,请重试。"),20006:"触发发送".concat("单聊消息","之前回调,App 后台返回禁止下发该消息。"),20007:"发送".concat("单聊消息",",被对方拉黑,禁止发送。消息发送状态默认展示为失败,您可以登录控制台修改该场景下的消息发送状态展示结果,具体操作请参见消息保留设置(").concat(na,"269/38656)。"),20009:"消息发送双方互相不是好友,禁止发送(配置".concat("单聊消息","校验好友关系才会出现)。"),20010:"发送".concat("单聊消息",",自己不是对方的好友(单向关系),禁止发送。"),20011:"发送".concat("单聊消息",",对方不是自己的好友(单向关系),禁止发送。"),20012:"发送方被禁言,该条消息被禁止发送。",20016:"消息撤回超过了时间限制(默认2分钟)。",20018:"删除漫游内部错误。",90001:"JSON 格式解析失败,请检查请求包是否符合 JSON 规范。",90002:"".concat("JSON 格式请求包体","中 MsgBody 不符合消息格式描述,或者 MsgBody 不是 Array 类型,请参考 TIMMsgElement 对象的定义(").concat(na,"269/2720").concat(ra,")。"),90003:"".concat("JSON 格式请求包体","中缺少 To_Account 字段或者 To_Account 帐号不存在。"),90005:"".concat("JSON 格式请求包体","中缺少 MsgRandom 字段或者 MsgRandom 字段不是 Integer 类型。"),90006:"".concat("JSON 格式请求包体","中缺少 MsgTimeStamp 字段或者 MsgTimeStamp 字段不是 Integer 类型。"),90007:"".concat("JSON 格式请求包体","中 MsgBody 类型不是 Array 类型,请将其修改为 Array 类型。"),90008:"".concat("JSON 格式请求包体","中缺少 From_Account 字段或者 From_Account 帐号不存在。"),90009:"请求需要 App 管理员权限。",90010:"".concat("JSON 格式请求包体","不符合消息格式描述,请参考 TIMMsgElement 对象的定义(").concat(na,"269/2720").concat(ra,")。"),90011:"批量发消息目标帐号超过500,请减少 To_Account 中目标帐号数量。",90012:"To_Account 没有注册或不存在,请确认 To_Account 是否导入即时通信 IM 或者是否拼写错误。",90026:"消息离线存储时间错误(最多不能超过7天)。",90031:"".concat("JSON 格式请求包体","中 SyncOtherMachine 字段不是 Integer 类型。"),90044:"".concat("JSON 格式请求包体","中 MsgLifeTime 字段不是 Integer 类型。"),90048:"请求的用户帐号不存在。",90054:"撤回请求中的 MsgKey 不合法。",90994:"".concat("服务端内部错误,请重试。"),90995:"".concat("服务端内部错误,请重试。"),91e3:"".concat("服务端内部错误,请重试。"),90992:"".concat("服务端内部错误,请重试。","如果所有请求都返回该错误码,且 App 配置了第三方回调,请检查 App 服务端是否正常向即时通信 IM 后台服务端返回回调结果。"),93e3:"JSON 数据包超长,消息包体请不要超过8k。",91101:"Web 端长轮询被踢(Web 端同时在线实例个数超出限制)。",10002:"".concat("服务端内部错误,请重试。"),10003:"请求中的接口名称错误,请核对接口名称并重试。",10004:"参数非法,请根据错误描述检查请求是否正确。",10005:"请求包体中携带的帐号数量过多。",10006:"操作频率限制,请尝试降低调用的频率。",10007:"操作权限不足,例如 Work ".concat("群组","中普通成员尝试执行踢人操作,但只有 App 管理员才有权限。"),10008:"请求非法,可能是请求中携带的签名信息验证不正确,请再次尝试。",10009:"该群不允许群主主动退出。",10010:"".concat("群组","不存在,或者曾经存在过,但是目前已经被解散。"),10011:"解析 JSON 包体失败,请检查包体的格式是否符合 JSON 格式。",10012:"发起操作的 UserID 非法,请检查发起操作的用户 UserID 是否填写正确。",10013:"被邀请加入的用户已经是群成员。",10014:"群已满员,无法将请求中的用户加入".concat("群组",",如果是批量加人,可以尝试减少加入用户的数量。"),10015:"找不到指定 ID 的".concat("群组","。"),10016:"App 后台通过第三方回调拒绝本次操作。",10017:"因被禁言而不能发送消息,请检查发送者是否被设置禁言。",10018:"应答包长度超过最大包长(1MB),请求的内容过多,请尝试减少单次请求的数据量。",10019:"请求的用户帐号不存在。",10021:"".concat("群组"," ID 已被使用,请选择其他的").concat("群组"," ID。"),10023:"发消息的频率超限,请延长两次发消息时间的间隔。",10024:"此邀请或者申请请求已经被处理。",10025:"".concat("群组"," ID 已被使用,并且操作者为群主,可以直接使用。"),10026:"该 SDKAppID 请求的命令字已被禁用。",10030:"请求撤回的消息不存在。",10031:"消息撤回超过了时间限制(默认2分钟)。",10032:"请求撤回的消息不支持撤回操作。",10033:"".concat("群组","类型不支持消息撤回操作。"),10034:"该消息类型不支持删除操作。",10035:"直播群和在线成员广播大群不支持删除消息。",10036:"直播群创建数量超过了限制,请参考价格说明(".concat(na,"269/11673)购买预付费套餐“IM直播群”。"),10037:"单个用户可创建和加入的".concat("群组","数量超过了限制,请参考价格说明(").concat(na,"269/11673)购买或升级预付费套餐“单人可创建与加入").concat("群组","数”。"),10038:"群成员数量超过限制,请参考价格说明(".concat(na,"269/11673)购买或升级预付费套餐“扩展群人数上限”。"),10041:"该应用(SDKAppID)已配置不支持群消息撤回。",10050:"群属性 key 不存在",10056:"请在写入群属性前先使用 getGroupAttributes 接口更新本地群属性,避免冲突。",10059:"非旗舰版",10060:"群人数超过已读回执人数上限",10061:"在线消息不支持已读回执",10062:"找不到群消息的已读回执信息",30001:"请求参数错误,请根据错误描述检查请求参数",30002:"SDKAppID 不匹配",30003:"请求的用户帐号不存在",30004:"请求需要 App 管理员权限",30005:"关系链字段中包含敏感词",30006:"".concat("服务端内部错误,请重试。"),30007:"".concat("网络超时,请稍后重试. "),30008:"并发写导致写冲突,建议使用批量方式",30009:"后台禁止该用户发起加好友请求",30010:"自己的好友数已达系统上限",30011:"分组已达系统上限",30012:"未决数已达系统上限",30014:"对方的好友数已达系统上限",30515:"请求添加好友时,对方在自己的黑名单中,不允许加好友",30516:"请求添加好友时,对方的加好友验证方式是不允许任何人添加自己为好友",30525:"请求添加好友时,自己在对方的黑名单中,不允许加好友",30539:"等待对方同意",30540:"添加好友请求被安全策略打击,请勿频繁发起添加好友请求",31704:"与请求删除的帐号之间不存在好友关系",31707:"删除好友请求被安全策略打击,请勿频繁发起删除好友请求"},sa=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this)).code=e.code,o.message=aa[e.code]||e.message,o.data=e.data||{},o}return i}(h(Error)),ca=null,ua=function(e){ca=e},la=function(e){return Promise.resolve(ta(e))},da=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof sa)return t&&null!==ca&&ca.emit(w.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new sa({code:$i.UNCAUGHT_ERROR,message:e.message});return t&&null!==ca&&ca.emit(w.ERROR,n),Promise.reject(n)}if(Je(e)||Je(e.code)||Je(e.message))Pe.error("IMPromise.reject 必须指定code(错误码)和message(错误信息)!!!");else{if(ze(e.code)&&Ke(e.message)){var i=new sa(e);return t&&null!==ca&&ca.emit(w.ERROR,i),Promise.reject(i)}Pe.error("IMPromise.reject code(错误码)必须为数字,message(错误信息)必须为字符串!!!")}},fa=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="C2CModule",o}return r(i,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,i=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList;Pe.debug("".concat(this._className,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var r=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:i,C2CPairUnreadList:o,isInstantMessage:n}),a=r.conversationOptionsList,s=r.messageList,c=r.isUnreadC2CMessage;this.filterModifiedMessage(s),a.length>0&&this.getModule(nn).onNewMessage({conversationOptionsList:a,isInstantMessage:n,isUnreadC2CMessage:c});var u=this.filterUnmodifiedMessage(s);n&&u.length>0&&this.emitOuterEvent(w.MESSAGE_RECEIVED,u),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,i=e.C2CPairUnreadList,o=e.isInstantMessage,r=null,a=[],s=[],c={},u=this.getModule(cn),l=this.getModule(_n),d=!1,f=0,p=t.length;f<p;f++){var h=t[f];h.currentUser=this.getMyUserID(),h.conversationType=A.CONV_C2C,h.isSystemMessage=!!h.isSystemMessage,(Je(h.nick)||Je(h.avatar))&&(d=!0,Pe.debug("".concat(this._className,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),r=new ea(h),h.elements=u.parseElements(h.elements,h.from),r.setElement(h.elements),r.setNickAndAvatar({nick:h.nick,avatar:h.avatar});var g=r.conversationID;if(o){var m=!1,v=this.getModule(nn);if(r.from!==this.getMyUserID()){var _=v.getLatestMessageSentByPeer(g);if(_){var y=_.nick,b=_.avatar;d?r.setNickAndAvatar({nick:y,avatar:b}):y===r.nick&&b===r.avatar||(m=!0)}}else{var M=v.getLatestMessageSentByMe(g);if(M){var S=M.nick,C=M.avatar;S===r.nick&&C===r.avatar||v.modifyMessageSentByMe({conversationID:g,latestNick:r.nick,latestAvatar:r.avatar})}}var k=1===t[f].isModified;if(v.isMessageSentByCurrentInstance(r)?r.isModified=k:k=!1,0===h.msgLifeTime)r._onlineOnlyFlag=!0,s.push(r);else{if(!v.pushIntoMessageList(s,r,k))continue;m&&(v.modifyMessageSentByPeer({conversationID:g,latestNick:r.nick,latestAvatar:r.avatar}),v.updateUserProfileSpecifiedKey({conversationID:g,nick:r.nick,avatar:r.avatar}))}o&&r.clientTime>0&&l.addMessageDelay(r.clientTime)}if(0!==h.msgLifeTime){if(!1===r._onlineOnlyFlag)if(Je(c[g])){var T=0;"in"===r.flow&&(r._isExcludedFromUnreadCount||(T=1)),c[g]=a.push({conversationID:g,unreadCount:T,type:r.conversationType,subType:r.conversationSubType,lastMessage:r._isExcludedFromLastMessage?"":r})-1}else{var I=c[g];a[I].type=r.conversationType,a[I].subType=r.conversationSubType,a[I].lastMessage=r._isExcludedFromLastMessage?"":r,"in"===r.flow&&(r._isExcludedFromUnreadCount||a[I].unreadCount++)}}else r._onlineOnlyFlag=!0}var w=!1;if(Xe(i))for(var E=function(e,t){if(i[e].unreadCount>0){w=!0;var n=a.find((function(t){return t.conversationID==="C2C".concat(i[e].from)}));n?n.unreadCount=i[e].unreadCount:a.push({conversationID:"C2C".concat(i[e].from),unreadCount:i[e].unreadCount,type:A.CONV_C2C})}},O=0,x=i.length;O<x;O++)E(O);if(Xe(n))for(var D=function(e,t){a.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||a.push({conversationID:"C2C".concat(n[e].from),type:A.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},N=0,R=n.length;N<R;N++)D(N);return{conversationOptionsList:a,messageList:s,isUnreadC2CMessage:w}}},{key:"onC2CMessageRevoked",value:function(e){var t=this;Pe.debug("".concat(this._className,".onC2CMessageRevoked count:").concat(e.dataList.length));var n=this.getModule(nn),i=[],o=null;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var r=e.c2cMessageRevokedNotify.revokedInfos;Je(r)||r.forEach((function(e){var r=t.getMyUserID()===e.from?"".concat(A.CONV_C2C).concat(e.to):"".concat(A.CONV_C2C).concat(e.from);(o=n.revoke(r,e.sequence,e.random))&&i.push(o)}))}})),0!==i.length&&(n.onMessageRevoked(i),this.emitOuterEvent(w.MESSAGE_REVOKED,i))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Lt(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var i=e.peerReadTime;Pe.debug("".concat(t._className,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(i));var o="".concat(A.CONV_C2C).concat(n),r=t.getModule(nn);r.recordPeerReadTime(o,i),r.updateMessageIsPeerReadProperty(o,i)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Lt(e.c2cMessageReadNotice)){var n=t.getModule(nn);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var i=e.from,o=e.peerReadTime;Pe.debug("".concat(t._className,".onC2CMessageReadNotice from:").concat(i," lastReadTime:").concat(o));var r="".concat(A.CONV_C2C).concat(i);n.updateIsReadAfterReadReport({conversationID:r,lastMessageTime:o}),n.updateUnreadCount(r)}))}}))}},{key:"sendMessage",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var i="";Ke(e.cloudCustomData)&&e.cloudCustomData.length>0&&(i=e.cloudCustomData);var o=[];if(Ye(t)&&Ye(t.messageControlInfo)){var r=t.messageControlInfo,a=r.excludedFromUnreadCount,s=r.excludedFromLastMessage;!0===a&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg")}return{protocolName:wn,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:i,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:this.isOnlineMessage(e,t)?0:void 0,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:o,clientTime:e.clientTime}}}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:Rn,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Pe.log("".concat(this._className,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:Bn,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,i=e.lastMessageTime,o="".concat(this._className,".setMessageRead");Pe.log("".concat(o," conversationID:").concat(n," lastMessageTime:").concat(i)),ze(i)||Pe.warn("".concat(o," 请勿修改 Conversation.lastMessage.lastTime,否则可能会导致已读上报结果不准确"));var r=new ro(Do);return r.setMessage("conversationID:".concat(n," lastMessageTime:").concat(i)),this.request({protocolName:Ln,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:i,receipt:1}]}}}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(o," ok"));var e=t.getModule(nn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:i}),e.updateUnreadCount(n),ta()})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Pe.log("".concat(o," failed. error:"),e),da(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),i=e.peerAccount,o=e.conversationID,r=e.count,a=e.lastMessageTime,s=e.messageKey,c="peerAccount:".concat(i," count:").concat(r||15," lastMessageTime:").concat(a||0," messageKey:").concat(s);Pe.log("".concat(n," ").concat(c));var u=new ro(To);return this.request({protocolName:Gn,requestData:{peerAccount:i,count:r||15,lastMessageTime:a||0,messageKey:s}}).then((function(e){var i=e.data,r=i.complete,a=i.messageList,s=i.messageKey,l=i.lastMessageTime;Je(a)?Pe.log("".concat(n," ok. complete:").concat(r," but messageList is undefined!")):Pe.log("".concat(n," ok. complete:").concat(r," count:").concat(a.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(r," length:").concat(a.length)).end();var d=t.getModule(nn);1===r&&d.setCompleted(o);var f=d.storeRoamingMessage(a,o);d.modifyMessageList(o),d.updateIsRead(o),d.updateRoamingMessageKeyAndTime(o,s,l);var p=d.getPeerReadTime(o);if(Pe.log("".concat(n," update isPeerRead property. conversationID:").concat(o," peerReadTime:").concat(p)),p)d.updateMessageIsPeerReadProperty(o,p);else{var h=o.replace(A.CONV_C2C,"");t.getRemotePeerReadTime([h]).then((function(){d.updateMessageIsPeerReadProperty(o,d.getPeerReadTime(o))}))}return f})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];u.setMessage(c).setError(e,i,o).end()})),Pe.warn("".concat(n," failed. error:"),e),da(e)}))}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._className,".getRemotePeerReadTime");if(Lt(e))return Pe.warn("".concat(n," userIDList is empty!")),Promise.resolve();var i=new ro(Lo);return Pe.log("".concat(n," userIDList:").concat(e)),this.request({protocolName:Fn,requestData:{userIDList:e}}).then((function(o){var r=o.data.peerReadTimeList;Pe.log("".concat(n," ok. peerReadTimeList:").concat(r));for(var a="",s=t.getModule(nn),c=0;c<e.length;c++)a+="".concat(e[c],"-").concat(r[c]," "),r[c]>0&&s.recordPeerReadTime("C2C".concat(e[c]),r[c]);i.setNetworkType(t.getNetworkType()).setMessage(a).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.warn("".concat(n," failed. error:"),e)}))}}]),i}(bn),pa=function(){function e(t){n(this,e),this.list=new Map,this._className="MessageListHandler",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map,this._groupLocalLastMessageSequenceMap=new Map}return r(e,[{key:"getLocalOldestMessageByConversationID",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:"pushIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,i=e.ID,o=!0;this.list.has(n)||this.list.set(n,new Map);var r=this.list.get(n).has(i);if(r){var a=this.list.get(n).get(i);if(!t||!0===a.isModified)return!1}return this.list.get(n).set(i,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),this._setGroupLocalLastMessageSequence(n,e),o}},{key:"unshift",value:function(e){var t;if(Xe(e)){if(e.length>0){t=e[0].conversationID;var n=e.length;this._unshiftMultipleMessages(e),this._setGroupLocalLastMessageSequence(t,e[n-1])}}else t=e.conversationID,this._unshiftSingleMessage(e),this._setGroupLocalLastMessageSequence(t,e);if(t&&t.startsWith(A.CONV_C2C)){var i=Array.from(this.list.get(t).values()),o=i.length;if(0===o)return;for(var r=o-1;r>=0;r--)if("out"===i[r].flow){this._setLatestMessageSentByMe(t,i[r]);break}for(var a=o-1;a>=0;a--)if("in"===i[a].flow){this._setLatestMessageSentByPeer(t,i[a]);break}}}},{key:"_unshiftSingleMessage",value:function(e){var t=e.conversationID,n=e.ID;if(!this.list.has(t))return this.list.set(t,new Map),void this.list.get(t).set(n,e);var i=Array.from(this.list.get(t));i.unshift([n,e]),this.list.set(t,new Map(i))}},{key:"_unshiftMultipleMessages",value:function(e){for(var t=e.length,n=[],i=e[0].conversationID,o=this.list.has(i)?Array.from(this.list.get(i)):[],r=0;r<t;r++)n.push([e[r].ID,e[r]]);this.list.set(i,new Map(n.concat(o)))}},{key:"remove",value:function(e){var t=e.conversationID,n=e.ID;this.list.has(t)&&this.list.get(t).delete(n)}},{key:"revoke",value:function(e,t,n){if(Pe.debug("revoke message",e,t,n),this.list.has(e)){var i,o=I(this.list.get(e));try{for(o.s();!(i=o.n()).done;){var r=y(i.value,2)[1];if(r.sequence===t&&!r.isRevoked&&(Je(n)||r.random===n))return r.isRevoked=!0,r}}catch(c){o.e(c)}finally{o.f()}}return null}},{key:"removeByConversationID",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:"findMessage",value:function(e){var t,n=null,i=I(this.list);try{for(i.s();!(t=i.n()).done;){var o=y(t.value,2)[1];o.has(e)&&(n=o.get(e))}}catch(s){i.e(s)}finally{i.f()}return n}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var i,o=I(this.list.get(e));try{for(o.s();!(i=o.n()).done;){var r=y(i.value,2)[1];r.time<=t&&!r.isPeerRead&&"out"===r.flow&&(r.isPeerRead=!0,n.push(r))}}catch(c){o.e(c)}finally{o.f()}Pe.log("".concat(this._className,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(n.length))}return n}},{key:"updateMessageIsModifiedProperty",value:function(e){var t=e.conversationID,n=e.ID;if(this.list.has(t)){var i=this.list.get(t).get(n);i&&(i.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?b(this.list.get(e).values()):[]}},{key:"hasLocalMessage",value:function(e,t){return!!this.hasLocalMessageList(e)&&this.list.get(e).has(t)}},{key:"getLocalMessage",value:function(e,t){return this.hasLocalMessage(e,t)?this.list.get(e).get(t):null}},{key:"getLocalLastMessage",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:"_setLatestMessageSentByPeer",value:function(e,t){e.startsWith(A.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(A.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"_setGroupLocalLastMessageSequence",value:function(e,t){e.startsWith(A.CONV_GROUP)&&this._groupLocalLastMessageSequenceMap.set(e,t.sequence)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:"getGroupLocalLastMessageSequence",value:function(e){return this._groupLocalLastMessageSequenceMap.get(e)||0}},{key:"modifyMessageSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,i=e.latestAvatar,o=this.list.get(t);if(!Lt(o)){var r=Array.from(o.values()),a=r.length;if(0!==a){for(var s=null,c=0,u=!1,l=a-1;l>=0;l--)"in"===r[l].flow&&((s=r[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),u=!0),s.avatar!==i&&(s.setNickAndAvatar({avatar:i}),u=!0),u&&(c+=1));Pe.log("".concat(this._className,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,i=e.latestAvatar,o=this.list.get(t);if(!Lt(o)){var r=Array.from(o.values()),a=r.length;if(0!==a){for(var s=null,c=0,u=!1,l=a-1;l>=0;l--)"out"===r[l].flow&&((s=r[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),u=!0),s.avatar!==i&&(s.setNickAndAvatar({avatar:i}),u=!0),u&&(c+=1));Pe.log("".concat(this._className,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c))}}}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===Pe.getLevel()){i.group("conversationID-messageCount");var e,t=I(this.list);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2),o=n[0],r=n[1];i.log("".concat(o,"-").concat(r.size))}}catch(s){t.e(s)}finally{t.f()}i.groupEnd()}}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear(),this._groupLocalLastMessageSequenceMap.clear()}}]),e}(),ha="_a2KeyAndTinyIDUpdated",ga="_cloudConfigUpdated",ma="_profileUpdated";function va(e){this.mixin(e)}va.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var _a=["jpg","jpeg","gif","png","bmp","image","webp"],ya=["mp4"],ba=1,Ma=2,Sa=3,Ca=255,ka=function(){function e(t){var i=this;n(this,e),Lt(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||A.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||A.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],Lt(t.profileCustomField)||t.profileCustomField.forEach((function(e){i.profileCustomField.push({key:e.key,value:e.value})})))}return r(e,[{key:"validate",value:function(e){var t=!0,n="";if(Lt(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var i=e.profileCustomField.length,o=null,r=0;r<i;r++){if(o=e.profileCustomField[r],!Ke(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"自定义资料字段的前缀必须是 Tag_Profile_Custom"};if(!Ke(o.value))return{valid:!1,tips:"自定义资料字段的 value 必须是字符串"}}for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if("profileCustomField"===a)continue;if(Lt(e[a])&&!Ke(e[a])&&!ze(e[a])){n="key:"+a+", invalid value:"+e[a],t=!1;continue}switch(a){case"nick":Ke(e[a])||(n="nick should be a string",t=!1),ct(e[a])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(ct(e[a])," bytes"),t=!1);break;case"gender":ft(Fe,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":ze(e.birthday)||(n="birthday should be a number",t=!1);break;case"location":Ke(e.location)||(n="location should be a string",t=!1);break;case"selfSignature":Ke(e.selfSignature)||(n="selfSignature should be a string",t=!1);break;case"allowType":ft(qe,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":ze(e.language)||(n="language should be a number",t=!1);break;case"avatar":Ke(e.avatar)||(n="avatar should be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings should be 0 or 1",t=!1);break;case"adminForbidType":ft(Be,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":ze(e.level)||(n="level should be a number",t=!1);break;case"role":ze(e.role)||(n="role should be a number",t=!1);break;default:n="unknown key:"+a+" "+e[a],t=!1}}return{valid:t,tips:n}}}]),e}(),Ta=function e(t){n(this,e),this.value=t,this.next=null},Ia=function(){function e(t){n(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map,Pe.debug("SinglyLinkedList init MAX_LENGTH:".concat(this.MAX_LENGTH))}return r(e,[{key:"set",value:function(e){var t=new Ta(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"tail",value:function(){return this.pTail}},{key:"size",value:function(){return this.map.size}},{key:"data",value:function(){return Array.from(this.map.keys())}},{key:"reset",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),wa=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers"],Aa=function(){function e(t){n(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.groupCustomField=[],this.muteAllMembers=void 0,this._initGroup(t)}return r(e,[{key:"_initGroup",value:function(e){for(var t in e)wa.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),this[t]=e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this,n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),Je(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&vt(this.groupCustomField,n.groupCustomField),Je(n.memberNum)||(this.memberCount=n.memberNum),Je(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),at(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum"]),Xe(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&at(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t=e.nameCard,n=e.joinTime,i=e.role,o=e.messageRemindType,r=e.readedSequence,a=e.excludedUnreadSequenceList;at(this.selfInfo,{nameCard:t,joinTime:n,role:i,messageRemindType:o,readedSequence:r,excludedUnreadSequenceList:a},[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}},{key:"memberNum",set:function(e){},get:function(){return Pe.warn("!!!v2.8.0起弃用memberNum,请使用 memberCount"),this.memberCount}},{key:"maxMemberNum",set:function(e){},get:function(){return Pe.warn("!!!v2.8.0起弃用maxMemberNum,请使用 maxMemberCount"),this.maxMemberCount}}]),e}(),Ea=function(e,t){if(Je(t))return"";switch(e){case A.MSG_TEXT:return t.text;case A.MSG_IMAGE:return"[图片]";case A.MSG_LOCATION:return"[位置]";case A.MSG_AUDIO:return"[语音]";case A.MSG_VIDEO:return"[视频]";case A.MSG_FILE:return"[文件]";case A.MSG_CUSTOM:return"[自定义消息]";case A.MSG_GRP_TIP:return"[群提示消息]";case A.MSG_GRP_SYS_NOTICE:return"[群系统通知]";case A.MSG_FACE:return"[动画表情]";case A.MSG_MERGER:return"[聊天记录]";default:return""}},Oa=function(e){return Je(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:""}:e instanceof ea?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Ea(e.type,e.payload),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||""}:c({},e,{messageForShow:Ea(e.type,e.payload)})},xa=function(){function e(t){n(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=Oa(t.lastMessage),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this._initProfile(t)}return r(e,[{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),Je(this.userProfile)&&this.type===A.CONV_C2C?this.userProfile=new ka({userID:e.conversationID.replace("C2C","")}):Je(this.groupProfile)&&this.type===A.CONV_GROUP&&(this.groupProfile=new Aa({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,i=e.isUnreadC2CMessage;Je(t)||(yt(this.subType)?this.unreadCount=0:n&&this.type===A.CONV_GROUP||i&&this.type===A.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=Oa(e)}},{key:"updateGroupAtInfoList",value:function(e){var t,n=(M(t=e.groupAtType)||S(t)||C(t)||T()).slice(0);-1!==n.indexOf(A.CONV_AT_ME)&&-1!==n.indexOf(A.CONV_AT_ALL)&&(n=[A.CONV_AT_ALL_AT_ME]);var i={from:e.from,groupID:e.groupID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(i),Pe.debug("Conversation.updateGroupAtInfoList conversationID:".concat(this.conversationID),this.groupAtInfoList)}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){this.unreadCount>=1&&(this.unreadCount-=1)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence,n=e.time;return this.type===A.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===A.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"toAccount",get:function(){return this.conversationID.startsWith(A.CONV_C2C)?this.conversationID.replace(A.CONV_C2C,""):this.conversationID.startsWith(A.CONV_GROUP)?this.conversationID.replace(A.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}}]),e}(),Da=function(){function e(t){n(this,e),this._conversationModule=t,this._className="MessageRemindHandler",this._updateSequence=0}return r(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._className,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:Un,updateSequence:this._updateSequence}).then((function(n){Pe.log("".concat(t," ok"));var i=n.data,o=i.updateSequence,r=i.muteFlagList;e._updateSequence=o,e._patchC2CMessageRemindType(r)})).catch((function(e){Pe.error("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,i="";Xe(e)&&e.length>0&&e.forEach((function(e){var o=e.userID,r=e.muteFlag;0===r?i=A.MSG_REMIND_ACPT_AND_NOTE:1===r?i=A.MSG_REMIND_DISCARD:2===r&&(i=A.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:i})&&(n+=1)})),Pe.log("".concat(this._className,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):Xe(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setGroupMessageRemindType"),i=e.groupID,o=e.messageRemindType,r="groupID:".concat(i," messageRemindType:").concat(o),a=new ro(er);return a.setMessage(r),this._getModule(tn).modifyGroupMemberInfo({groupID:i,messageRemindType:o,userID:this._conversationModule.getMyUserID()}).then((function(){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Pe.log("".concat(n," ok. ").concat(r));var e=t._getModule(Zt).getLocalGroupProfile(i);return e&&(e.selfInfo.messageRemindType=o),t._conversationModule.patchMessageRemindType({ID:i,isC2CConversation:!1,messageRemindType:o})&&t._emitConversationUpdate(),ta({group:e})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];a.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setC2CMessageRemindType"),i=e.userIDList,o=e.messageRemindType,r=i.slice(0,30),a=0;o===A.MSG_REMIND_DISCARD?a=1:o===A.MSG_REMIND_ACPT_NOT_NOTE&&(a=2);var s="userIDList:".concat(r," messageRemindType:").concat(o),c=new ro(er);return c.setMessage(s),this._conversationModule.request({protocolName:Pn,requestData:{userIDList:r,muteFlag:a}}).then((function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var i=e.data,a=i.updateSequence,s=i.errorList;t._updateSequence=a;var u=[],l=[];Xe(s)&&s.forEach((function(e){u.push(e.userID),l.push({userID:e.userID,code:e.errorCode})}));var d=r.filter((function(e){return-1===u.indexOf(e)}));Pe.log("".concat(n," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(l)));var f=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:o})&&(f+=1)})),f>=1&&t._emitConversationUpdate(),r.length=u.length=0,la({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:l})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];c.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"_getModule",value:function(e){return this._conversationModule.getModule(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"setUpdateSequence",value:function(e){this._updateSequence=e}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._updateSequence=0}}]),e}(),Na=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="ConversationModule",va.mixin(m(o)),o._messageListHandler=new pa,o._messageRemindHandler=new Da(m(o)),o.singlyLinkedList=new Ia(100),o._pagingStatus=Bt.NOT_START,o._pagingTimeStamp=0,o._pagingStartIndex=0,o._pagingPinnedTimeStamp=0,o._pagingPinnedStartIndex=0,o._conversationMap=new Map,o._tmpGroupList=[],o._tmpGroupAtTipsList=[],o._peerReadTimeMap=new Map,o._completedMap=new Map,o._roamingMessageKeyAndTimeMap=new Map,o._remoteGroupReadSequenceMap=new Map,o._initListeners(),o}return r(i,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(ha,this._initLocalConversationList,this),e.on(ma,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new ro(Ho);Pe.log("".concat(this._className,"._initLocalConversationList."));var n="",i=this._getStorageConversationList();if(i){for(var o=i.length,r=0;r<o;r++){var a=i[r];if(a){if(a.conversationID==="".concat(A.CONV_C2C,"@TLS#ERROR")||a.conversationID==="".concat(A.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(a.groupProfile){var s=a.groupProfile.type;if(yt(s))continue}}this._conversationMap.set(i[r].conversationID,new xa(i[r]))}this.emitConversationUpdate(!0,!1),n="count:".concat(o)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Qt)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this._syncConversationList()}},{key:"onMessageSent",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrReceiveMessage(e)}},{key:"_onSendOrReceiveMessage",value:function(e){var t=this,n=e.conversationOptionsList,i=e.isInstantMessage,o=void 0===i||i,r=e.isUnreadC2CMessage,a=void 0!==r&&r;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:o,isUnreadC2CMessage:a,isFromGetConversations:!1}),this._setStorageConversationList(),this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:"updateConversationGroupProfile",value:function(e){var t=this;Xe(e)&&0===e.length||(0!==this._conversationMap.size?(e.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var i=t._conversationMap.get(n);i.groupProfile=JSON.parse(JSON.stringify(e)),i.lastMessage.lastSequence<e.nextMessageSeq&&(i.lastMessage.lastSequence=e.nextMessageSeq-1),i.subType||(i.subType=e.type)}})),this.emitConversationUpdate(!0,!1)):this._tmpGroupList=e)}},{key:"_updateConversationUserProfile",value:function(e){var t=this;e.data.forEach((function(e){var n="C2C".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,i=!1;e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.reduceUnreadCount(),n.isLastMessageRevoked(e)&&(i=!0,n.setLastMessageRevoked(!0)))})),i&&this.emitConversationUpdate(!0,!1)}}},{key:"onMessageDeleted",value:function(e){if(0!==e.length){e.forEach((function(e){e.isDeleted=!0}));for(var t=e[0].conversationID,n=this._messageListHandler.getLocalMessageList(t),i={},o=n.length-1;o>=0;o--)if(!n[o].isDeleted){i=n[o];break}var r=this._conversationMap.get(t);if(r){var a=!1;r.lastMessage.lastSequence===i.sequence&&r.lastMessage.lastTime===i.time||(Lt(i)&&(i=void 0),r.updateLastMessage(i),a=!0,Pe.log("".concat(this._className,".onMessageDeleted. update conversationID:").concat(t," with lastMessage:"),r.lastMessage)),t.startsWith(A.CONV_C2C)&&this.updateUnreadCount(t),a&&this.emitConversationUpdate(!0,!1)}}}},{key:"onNewGroupAtTips",value:function(e){var t=this,n=e.dataList,i=null;n.forEach((function(e){e.groupAtTips?i=e.groupAtTips:e.elements&&(i=e.elements),i.__random=e.random,i.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(i)})),Pe.debug("".concat(this._className,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var i=n.groupID;if(n.from!==e.getMyUserID()){var o=e._conversationMap.get("".concat(A.CONV_GROUP).concat(i));o&&(o.updateGroupAtInfoList(n),t=!0)}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:"_getC2CPeerReadTime",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==A.CONV_C2C||n.push(e.conversationID.replace(A.CONV_C2C,""))})),n.length>0){Pe.debug("".concat(this._className,"._getC2CPeerReadTime userIDList:").concat(n));var i=this.getModule(Qt);i&&i.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(rn).getItem("conversationMap")}},{key:"_setStorageConversationList",value:function(){var e=this.getLocalConversationList().slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(rn).setItem("conversationMap",e)}},{key:"emitConversationUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=b(this._conversationMap.values());if(t){var i=this.getModule(Zt);i&&i.updateGroupLastMessage(n)}e&&this.emitOuterEvent(w.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return b(this._conversationMap.values())}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"_syncConversationList",value:function(){var e=this,t=new ro(Vo);return this._pagingStatus===Bt.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=Bt.RESOLVED,e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=Bt.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var i=y(e,2),o=i[0],r=i[1];t.setError(n,o,r).end()})),da(n)}))}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),i=this._messageRemindHandler.getC2CMessageRemindType(),o=this.getModule(Zt).getGroupList();Promise.all([n,i,o]).then((function(){var n=Date.now()-t;Pe.log("".concat(e._className,"._patchConversationProperties ok. cost ").concat(n," ms")),e.emitConversationUpdate(!0,!1)}))}},{key:"_pagingGetConversationList",value:function(){var e=this,t="".concat(this._className,"._pagingGetConversationList");return Pe.log("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=Bt.PENDING,this.request({protocolName:qn,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingStartIndex,orderType:1}}).then((function(n){var i=n.data,o=i.completeFlag,r=i.conversations,a=void 0===r?[]:r,s=i.timeStamp,c=i.startIndex,u=i.pinnedTimeStamp,l=i.pinnedStartIndex;if(Pe.log("".concat(t," ok. completeFlag:").concat(o," count:").concat(a.length," isReady:").concat(e._isReady)),a.length>0){var d=e._getConversationOptions(a);e._updateLocalConversationList({conversationOptionsList:d,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return la();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=u,e._pagingPinnedStartIndex=l,1!==o?e._pagingGetConversationList():(e._handleGroupAtTipsList(),la())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Pe.warn("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,i=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(b(t.toBeUpdatedConversationList),b(this._conversationMap)))),n||this._updateUserOrGroupProfile(t.newConversationList),Pe.debug("".concat(this._className,"._updateLocalConversationList cost ").concat(Date.now()-i," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,i=e.isInstantMessage,o=e.isUnreadC2CMessage,r=void 0!==o&&o,a=[],s=[],c=this.getModule(Zt),u=this.getModule(en),l=0,d=t.length;l<d;l++){var f=new xa(t[l]),p=f.conversationID;if(p!=="".concat(A.CONV_C2C,"@TLS#ERROR")&&p!=="".concat(A.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(p)){var h=this._conversationMap.get(p),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===i&&g.push("lastMessage");var m=t[l].lastMessage,v=!Je(m);v||this._onLastMessageNotExist(t[l]),Je(i)&&v&&null===h.lastMessage.payload&&(h.lastMessage.payload=m.payload),at(h,f,g,[null,void 0,"",0,NaN]),h.updateUnreadCount({nextUnreadCount:f.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:r}),i&&v&&(h.lastMessage.payload=m.payload,h.type===A.CONV_GROUP&&(h.lastMessage.nameCard=m.nameCard,h.lastMessage.nick=m.nick)),v&&h.lastMessage.cloudCustomData!==m.cloudCustomData&&(h.lastMessage.cloudCustomData=m.cloudCustomData||""),this._conversationMap.delete(p),a.push([p,h])}else{if(f.type===A.CONV_GROUP&&c){var _=f.groupProfile.groupID,y=c.getLocalGroupProfile(_);y&&(f.groupProfile=y,f.updateUnreadCount({nextUnreadCount:0}))}else if(f.type===A.CONV_C2C){var b=p.replace(A.CONV_C2C,"");u&&u.isMyFriend(b)&&(f.remark=u.getFriendRemark(b))}s.push(f),a.push([p,f])}}return{toBeUpdatedConversationList:a,newConversationList:s}}},{key:"_onLastMessageNotExist",value:function(e){new ro(Gr).setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:"_sortConversationList",value:function(e){var t=[],n=[];return e.forEach((function(e){!0===e[1].isPinned?t.push(e):n.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})))}},{key:"_sortConversationListAndEmitEvent",value:function(){this._conversationMap=new Map(this._sortConversationList(b(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],i=[],o=this.getModule(Jt),r=this.getModule(Zt);e.forEach((function(e){if(e.type===A.CONV_C2C)n.push(e.toAccount);else if(e.type===A.CONV_GROUP){var t=e.toAccount;r.hasLocalGroup(t)?e.groupProfile=r.getLocalGroupProfile(t):i.push(t)}})),Pe.log("".concat(this._className,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(i)),n.length>0&&o.getUserProfile({userIDList:n}).then((function(e){var n=e.data;Xe(n)?n.forEach((function(e){t._conversationMap.get("C2C".concat(e.userID)).userProfile=e})):t._conversationMap.get("C2C".concat(n.userID)).userProfile=n})),i.length>0&&r.getGroupProfileAdvance({groupIDList:i,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var i=t._conversationMap.get(n);at(i.groupProfile,e,[],[null,void 0,"",0,NaN]),!i.subType&&e.type&&(i.subType=e.type)}}))}))}}},{key:"_getConversationOptions",value:function(e){var t=this,n=[],i=e.filter((function(e){var t=e.lastMsg;return Ye(t)})).filter((function(e){var t=e.type,n=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==n&&"@TLS#ERROR"!==n||2===t})).map((function(e){if(1===e.type){var i={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return n.push(i),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:""},userProfile:new ka(i),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:""}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:c({lastTime:e.time,lastSequence:e.messageReadSeq+e.unreadCount,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},t._patchTypeAndPayload(e),{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||""}),groupProfile:new Aa({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:""}}));return n.length>0&&this.getModule(Jt).onConversationsProfileUpdated(n),i}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,n=t.event,i=void 0===n?void 0:n,o=t.elements,r=void 0===o?[]:o,a=t.groupTips,s=void 0===a?{}:a;if(!Je(i)&&!Lt(s)){var u=new ea(s);u.setElement({type:A.MSG_GRP_TIP,content:c({},s.elements,{groupProfile:s.groupProfile})});var l=JSON.parse(JSON.stringify(u.payload));return u=null,{type:A.MSG_GRP_TIP,payload:l}}return{type:r[0]?r[0].type:null,payload:r[0]?r[0].content:null}}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof ea&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){var t=this;Pe.log("".concat(this._className,".onConversationDeleted")),Xe(e)&&e.forEach((function(e){var n=e.type,i=e.userID,o=e.groupID,r="";1===n?r="".concat(A.CONV_C2C).concat(i):2===n&&(r="".concat(A.CONV_GROUP).concat(o)),t.deleteLocalConversation(r)}))}},{key:"onConversationPinned",value:function(e){var t=this;if(Xe(e)){var n=!1;e.forEach((function(e){var i,o=e.type,r=e.userID,a=e.groupID;1===o?i=t.getLocalConversation("".concat(A.CONV_C2C).concat(r)):2===o&&(i=t.getLocalConversation("".concat(A.CONV_GROUP).concat(a))),i&&(Pe.log("".concat(t._className,".onConversationPinned conversationID:").concat(i.conversationID," isPinned:").concat(i.isPinned)),i.isPinned||(i.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(Xe(e)){var n=!1;e.forEach((function(e){var i,o=e.type,r=e.userID,a=e.groupID;1===o?i=t.getLocalConversation("".concat(A.CONV_C2C).concat(r)):2===o&&(i=t.getLocalConversation("".concat(A.CONV_GROUP).concat(a))),i&&(Pe.log("".concat(t._className,".onConversationUnpinned conversationID:").concat(i.conversationID," isPinned:").concat(i.isPinned)),i.isPinned&&(i.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,i=e.nextReqMessageID,o=e.count,r="".concat(this._className,".getMessageList"),a=this.getLocalConversation(n),s="";if(a&&a.groupProfile&&(s=a.groupProfile.type),yt(s))return Pe.log("".concat(r," not available in avchatroom. conversationID:").concat(n)),la({messageList:[],nextReqMessageID:"",isCompleted:!0});(Je(o)||o>15)&&(o=15);var c=this._computeLeftCount({conversationID:n,nextReqMessageID:i});return Pe.log("".concat(r," conversationID:").concat(n," leftCount:").concat(c," count:").concat(o," nextReqMessageID:").concat(i)),this._needGetHistory({conversationID:n,leftCount:c,count:o})?this.getHistoryMessages({conversationID:n,nextReqMessageID:i,count:20}).then((function(){return c=t._computeLeftCount({conversationID:n,nextReqMessageID:i}),ta(t._computeResult({conversationID:n,nextReqMessageID:i,count:o,leftCount:c}))})):(Pe.log("".concat(r,".getMessageList get message list from memory")),this.modifyMessageList(n),la(this._computeResult({conversationID:n,nextReqMessageID:i,count:o,leftCount:c})))}},{key:"_computeLeftCount",value:function(e){var t=e.conversationID,n=e.nextReqMessageID;return n?this._messageListHandler.getLocalMessageList(t).findIndex((function(e){return e.ID===n})):this._getMessageListSize(t)}},{key:"_getMessageListSize",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.leftCount,i=e.count,o=this.getLocalConversation(t),r="";return o&&o.groupProfile&&(r=o.groupProfile.type),!Ct(t)&&!yt(r)&&n<i&&!this._completedMap.has(t)}},{key:"_computeResult",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,i=e.count,o=e.leftCount,r=this._computeMessageList({conversationID:t,nextReqMessageID:n,count:i}),a=this._computeIsCompleted({conversationID:t,leftCount:o,count:i}),s=this._computeNextReqMessageID({messageList:r,isCompleted:a,conversationID:t}),c="".concat(this._className,"._computeResult. conversationID:").concat(t);return Pe.log("".concat(c," leftCount:").concat(o," count:").concat(i," nextReqMessageID:").concat(s," isCompleted:").concat(a)),{messageList:r,nextReqMessageID:s,isCompleted:a}}},{key:"_computeMessageList",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,i=e.count,o=this._messageListHandler.getLocalMessageList(t),r=this._computeIndexEnd({nextReqMessageID:n,messageList:o}),a=this._computeIndexStart({indexEnd:r,count:i});return o.slice(a,r)}},{key:"_computeNextReqMessageID",value:function(e){var t=e.messageList,n=e.isCompleted,i=e.conversationID;if(!n)return 0===t.length?"":t[0].ID;var o=this._messageListHandler.getLocalMessageList(i);return 0===o.length?"":o[0].ID}},{key:"_computeIndexEnd",value:function(e){var t=e.messageList,n=void 0===t?[]:t,i=e.nextReqMessageID;return i?n.findIndex((function(e){return e.ID===i})):n.length}},{key:"_computeIndexStart",value:function(e){var t=e.indexEnd,n=e.count;return t>n?t-n:0}},{key:"_computeIsCompleted",value:function(e){var t=e.conversationID;return!!(e.leftCount<=e.count&&this._completedMap.has(t))}},{key:"getHistoryMessages",value:function(e){var t=e.conversationID,n=e.nextReqMessageID;if(t===A.CONV_SYSTEM)return la();e.count?e.count>20&&(e.count=20):e.count=15;var i=this._messageListHandler.getLocalOldestMessageByConversationID(t);i||((i={}).time=0,i.sequence=0,0===t.indexOf(A.CONV_C2C)?(i.to=t.replace(A.CONV_C2C,""),i.conversationType=A.CONV_C2C):0===t.indexOf(A.CONV_GROUP)&&(i.to=t.replace(A.CONV_GROUP,""),i.conversationType=A.CONV_GROUP));var o="",r=null,a=this._roamingMessageKeyAndTimeMap.has(t);switch(i.conversationType){case A.CONV_C2C:return o=t.replace(A.CONV_C2C,""),(r=this.getModule(Qt))?r.getRoamingMessage({conversationID:e.conversationID,peerAccount:o,count:e.count,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE});case A.CONV_GROUP:return(r=this.getModule(Zt))?r.getRoamingMessage({conversationID:e.conversationID,groupID:i.to,count:e.count,sequence:n&&!1===i._onlineOnlyFlag?i.sequence-1:i.sequence}):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE});default:return la()}}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,i=n.messageForShow,o=n.payload;if(Lt(i)||Lt(o)){var r=this._messageListHandler.getLocalMessageList(e);if(0===r.length)return;var a=r[r.length-1];Pe.log("".concat(this._className,".patchConversationLastMessage conversationID:").concat(e," payload:"),a.payload),t.updateLastMessage(a)}}}},{key:"storeRoamingMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.startsWith(A.CONV_C2C)?A.CONV_C2C:A.CONV_GROUP,i=null,o=[],r=0,a=e.length,s=null,u=n===A.CONV_GROUP,l=this.getModule(cn),d=function(){r=u?e.length-1:0,a=u?0:e.length},f=function(){u?--r:++r},p=function(){return u?r>=a:r<a};for(d();p();f())if(u&&1===e[r].sequence&&this.setCompleted(t),1!==e[r].isPlaceMessage)if((i=new ea(e[r])).to=e[r].to,i.isSystemMessage=!!e[r].isSystemMessage,i.conversationType=n,4===e[r].event?s={type:A.MSG_GRP_TIP,content:c({},e[r].elements,{groupProfile:e[r].groupProfile})}:(e[r].elements=l.parseElements(e[r].elements,e[r].from),s=e[r].elements),u||i.setNickAndAvatar({nick:e[r].nick,avatar:e[r].avatar}),Lt(s)){var h=new ro(Ro);h.setMessage("from:".concat(i.from," to:").concat(i.to," sequence:").concat(i.sequence," event:").concat(e[r].event)),h.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else i.setElement(s),i.reInitialize(this.getMyUserID()),o.push(i);return this._messageListHandler.unshift(o),d=f=p=null,o}},{key:"findMessage",value:function(e){return this._messageListHandler.findMessage(e)}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=(e.messageID,this.getLocalConversation(t));if(Pe.log("".concat(this._className,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return la();if(n.type!==A.CONV_GROUP||Lt(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return la();var i=this._messageListHandler.getLocalLastMessage(t),o=n.lastMessage.lastTime;i&&o<i.time&&(o=i.time);var r=n.lastMessage.lastSequence;i&&r<i.sequence&&(r=i.sequence);var a=null;switch(n.type){case A.CONV_C2C:return(a=this.getModule(Qt))?a.setMessageRead({conversationID:t,lastMessageTime:o}):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE});case A.CONV_GROUP:return(a=this._moduleManager.getModule(Zt))?a.setMessageRead({conversationID:t,lastMessageSeq:r}):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE});case A.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),la();default:return la()}}},{key:"setAllMessageRead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="".concat(this._className,".setAllMessageRead");t.scope||(t.scope=A.READ_ALL_MSG),Pe.log("".concat(n," options:"),t);var i=this._createSetAllMessageReadPack(t);if(0===i.readAllC2CMessage&&0===i.groupMessageReadInfoList.length)return la();var o=new ro(zo);return this.request({protocolName:ai,requestData:i}).then((function(n){var i=n.data,r=e._handleAllMessageRead(i);return o.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(r))).setNetworkType(e.getNetworkType()).end(),la()})).catch((function(t){return e.probeNetwork().then((function(e){var n=y(e,2),i=n[0],r=n[1];o.setError(t,i,r).end()})),Pe.warn("".concat(n," failed. error:"),t),da({code:t&&t.code?t.code:$i.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:Hi.MESSAGE_UNREAD_ALL_FAIL})}))}},{key:"_getConversationLastMessageSequence",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:"_getConversationLastMessageTime",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},i=e.scope,o=I(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var r=y(t.value,2)[1];if(r.unreadCount>0)if(r.type===A.CONV_C2C&&0===n.readAllC2CMessage){if(i===A.READ_ALL_MSG)n.readAllC2CMessage=1;else if(i===A.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(r.type===A.CONV_GROUP&&(i===A.READ_ALL_GROUP_MSG||i===A.READ_ALL_MSG)){var a=this._getConversationLastMessageSequence(r);n.groupMessageReadInfoList.push({groupID:r.groupProfile.groupID,messageSequence:a})}}}catch(u){o.e(u)}finally{o.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMessageRead(e)}},{key:"_handleAllMessageRead",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,i=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&this.emitConversationUpdate(!0,!1),i}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,i=e.length;n<i;n++){var o=e[n],r=o.groupID,a=o.sequence,s=o.retCode,c=o.lastMessageSeq;Je(s)?this._remoteGroupReadSequenceMap.set(r,c):(this._remoteGroupReadSequenceMap.set(r,a),0!==s&&t.push("".concat(r,"-").concat(a,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,i=0,o=I(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var r=y(t.value,2),a=r[0],s=r[1];if(s.unreadCount>=1){if(1===n&&s.type===A.CONV_C2C){var c=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:c})}else if(s.type===A.CONV_GROUP){var u=a.replace(A.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(u)){var l=this._remoteGroupReadSequenceMap.get(u),d=this._getConversationLastMessageSequence(s);this.updateIsReadAfterReadReport({conversationID:a,remoteReadSequence:l}),d>=l&&this._remoteGroupReadSequenceMap.delete(u)}}this.updateUnreadCount(a,!1)&&(i+=1)}}}catch(h){o.e(h)}finally{o.f()}return i}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,i=t.replace(A.CONV_GROUP,""),o=!1;if(this._remoteGroupReadSequenceMap.has(i)){var r=this._remoteGroupReadSequenceMap.get(i);n<=r&&(o=!0,Pe.log("".concat(this._className,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(r))),n>=r+10&&this._remoteGroupReadSequenceMap.delete(i)}return o}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,i=e.lastMessageTime,o=this._messageListHandler.getLocalMessageList(t);if(0!==o.length)for(var r,a=o.length-1;a>=0;a--)if(r=o[a],!(i&&r.time>i||n&&r.sequence>n)){if("in"===r.flow&&r.isRead)break;r.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,i=this.getLocalConversation(e),o=this._messageListHandler.getLocalMessageList(e);if(i){var r=i.unreadCount,a=o.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;return r!==a&&(i.unreadCount=a,n=!0,Pe.log("".concat(this._className,".updateUnreadCount from ").concat(r," to ").concat(a,", conversationID:").concat(e)),!0===t&&this.emitConversationUpdate(!0,!1)),n}}},{key:"updateReadReceiptInfo",value:function(e,t){var n=this;if(!Lt(t)){var i=[],o="".concat(A.CONV_GROUP).concat(e);t.forEach((function(t){var r=t.tinyID,a=t.clientTime,s=t.random,c=t.readCount,u=t.unreadCount,l="".concat(r,"-").concat(a,"-").concat(s),d=n._messageListHandler.getLocalMessage(o,l),f={groupID:e,messageID:l,readCount:0,unreadCount:0};d&&(ze(c)&&(d.readReceiptInfo.readCount=c,f.readCount=c),ze(u)&&(d.readReceiptInfo.unreadCount=u,f.unreadCount=u),i.push(f))})),i.length>0&&this.emitOuterEvent(w.MESSAGE_READ_RECEIPT_RECEIVED,i)}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,i=this.getLocalConversation(t);if(i){var o=i.unreadCount,r=o-n;r<0&&(r=0),i.unreadCount=r,Pe.log("".concat(this._className,".recomputeGroupUnreadCount from ").concat(o," to ").concat(r,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!Ct(t.type)){for(var i=[],o=0,r=n.length;o<r;o++)"in"!==n[o].flow?"out"!==n[o].flow||n[o].isRead||n[o].setIsRead(!0):i.push(n[o]);var a=0;if(t.type===A.CONV_C2C){var s=i.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;a=i.length-t.unreadCount-s}else a=i.length-t.unreadCount;for(var c=0;c<a&&!i[c].isRead;c++)i[c].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t="".concat(this._className,".deleteGroupAtTips");Pe.log("".concat(t));var n=this._conversationMap.get(e);if(!n)return Promise.resolve();var i=n.groupAtInfoList;if(0===i.length)return Promise.resolve();var o=this.getMyUserID();return this.request({protocolName:Vn,requestData:{messageListToDelete:i.map((function(e){return{from:e.from,to:o,messageSeq:e.__sequence,messageRandom:e.__random,groupID:e.groupID}}))}}).then((function(){return Pe.log("".concat(t," ok. count:").concat(i.length)),n.clearGroupAtInfoList(),Promise.resolve()})).catch((function(e){return Pe.error("".concat(t," failed. error:"),e),da(e)}))}},{key:"appendToMessageList",value:function(e){this._messageListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this.singlyLinkedList.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:"_isMessageFromCurrentInstance",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:"revoke",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){if(e.startsWith(A.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);n.length>0&&this.emitOuterEvent(w.MESSAGE_READ_BY_PEER,n)}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){Pe.log("".concat(this._className,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMessageKeyAndTime",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"getConversationList",value:function(e){var t=this,n="".concat(this._className,".getConversationList"),i="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(Pe.log("".concat(n,". ").concat(i)),this._pagingStatus===Bt.REJECTED){var o=new ro(Bo);return o.setMessage(i),this._syncConversationList().then((function(){o.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return ta({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];o.setError(e,i,r).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}if(0===this._conversationMap.size){var r=new ro(Bo);return r.setMessage(i),this._syncConversationList().then((function(){r.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return ta({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}var a=this._getConversationList(e);return Pe.log("".concat(n,". returned conversation count:").concat(a.length)),la({conversationList:a})}},{key:"_getConversationList",value:function(e){var t=this;if(Je(e))return this.getLocalConversationList();if(Xe(e)){var n=[];return e.forEach((function(e){if(t._conversationMap.has(e)){var i=t.getLocalConversation(e);n.push(i)}})),n}}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=I(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2),i=n[0],o=n[1];o.type===A.CONV_C2C&&(Pe.debug("".concat(this._className,"._handleC2CPeerReadTime conversationID:").concat(i," peerReadTime:").concat(o.peerReadTime)),this.recordPeerReadTime(i,o.peerReadTime))}}catch(s){t.e(s)}finally{t.f()}}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new xa({conversationID:e,type:e.slice(0,3)===A.CONV_C2C?A.CONV_C2C:A.CONV_GROUP}))._isInfoCompleted||t.type===A.CONV_SYSTEM)return la({conversation:t});var i=new ro(qo),o="".concat(this._className,".getConversationProfile");return Pe.log("".concat(o,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(r){i.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(r.data.conversation.unreadCount)).end();var a=n.getModule(en);if(a&&t.type===A.CONV_C2C){var s=e.replace(A.CONV_C2C,"");if(a.isMyFriend(s)){var c=a.getFriendRemark(s);t.remark!==c&&(t.remark=c,Pe.log("".concat(o,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return Pe.log("".concat(o," ok. conversationID:").concat(e)),r})).catch((function(t){return n.probeNetwork().then((function(n){var o=y(n,2),r=o[0],a=o[1];i.setError(t,r,a).setMessage("conversationID:".concat(e)).end()})),Pe.error("".concat(o," failed. error:"),t),da(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===A.CONV_C2C?this.getModule(Jt).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var i=n.data;return 0===i.length?da(new sa({code:$i.USER_OR_GROUP_NOT_FOUND,message:Hi.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=i[0],e._isInfoCompleted=!0,t._unshiftConversation(e),la({conversation:e}))})):this.getModule(Zt).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),la({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof xa&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(b(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var i=t._conversationMap.get("".concat(A.CONV_C2C).concat(n));i&&(i.userProfile=e)}}))}},{key:"deleteConversation",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0};if(!this._conversationMap.has(e)){var i=new sa({code:$i.CONVERSATION_NOT_FOUND,message:Hi.CONVERSATION_NOT_FOUND});return da(i)}switch(this._conversationMap.get(e).type){case A.CONV_C2C:n.type=1,n.toAccount=e.replace(A.CONV_C2C,"");break;case A.CONV_GROUP:n.type=2,n.toGroupID=e.replace(A.CONV_GROUP,"");break;case A.CONV_SYSTEM:return this.getModule(Zt).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),this.deleteLocalConversation(e),la({conversationID:e});default:var o=new sa({code:$i.CONVERSATION_UN_RECORDED_TYPE,message:Hi.CONVERSATION_UN_RECORDED_TYPE});return da(o)}var r=new ro(jo);r.setMessage("conversationID:".concat(e));var a="".concat(this._className,".deleteConversation");return Pe.log("".concat(a,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:$n,requestData:n})})).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(a," ok")),t.deleteLocalConversation(e),la({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Pe.error("".concat(a," failed. error:"),e),da(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,i=e.isPinned;if(!this._conversationMap.has(n))return da({code:$i.CONVERSATION_NOT_FOUND,message:Hi.CONVERSATION_NOT_FOUND});var o=this.getLocalConversation(n);if(o.isPinned===i)return la({conversationID:n});var r=new ro($o);r.setMessage("conversationID:".concat(n," isPinned:").concat(i));var a="".concat(this._className,".pinConversation");Pe.log("".concat(a,". conversationID:").concat(n," isPinned:").concat(i));var s=null;return Mt(n)?s={type:1,toAccount:n.replace(A.CONV_C2C,"")}:St(n)&&(s={type:2,groupID:n.replace(A.CONV_GROUP,"")}),this.request({protocolName:Hn,requestData:{fromAccount:this.getMyUserID(),operationType:!0===i?1:2,itemList:[s]}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(a," ok")),o.isPinned!==i&&(o.isPinned=i,t._sortConversationListAndEmitEvent()),ta({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Pe.error("".concat(a," failed. error:"),e),da(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,i=e.messageRemindType,o=!1,r=this.getLocalConversation(n?"".concat(A.CONV_C2C).concat(t):"".concat(A.CONV_GROUP).concat(t));return r&&r.messageRemindType!==i&&(r.messageRemindType=i,o=!0),o}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this;Pe.debug("".concat(this._className,".onC2CMessageRemindTypeSynced options:"),e),e.dataList.forEach((function(e){if(!Lt(e.muteNotificationsSync)){var n,i=e.muteNotificationsSync,o=i.to,r=i.updateSequence,a=i.muteFlag;t._messageRemindHandler.setUpdateSequence(r),0===a?n=A.MSG_REMIND_ACPT_AND_NOTE:1===a?n=A.MSG_REMIND_DISCARD:2===a&&(n=A.MSG_REMIND_ACPT_NOT_NOTE);var s=0;t.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:n})&&(s+=1),Pe.log("".concat(t._className,".onC2CMessageRemindTypeSynced updateCount:").concat(s)),s>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:"deleteLocalConversation",value:function(e){var t=this._conversationMap.has(e);Pe.log("".concat(this._className,".deleteLocalConversation conversationID:").concat(e," has:").concat(t)),t&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),this.emitConversationUpdate(!0,!1))}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:"modifyMessageList",value:function(e){if(e.startsWith(A.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var i=this.getModule(Jt).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:i.nick,latestAvatar:i.avatar}),Pe.log("".concat(this._className,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){Pe.log("".concat(this._className,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,i=e.avatar;if(this._conversationMap.has(t)){var o=this._conversationMap.get(t).userProfile;Ke(n)&&o.nick!==n&&(o.nick=n),Ke(i)&&o.avatar!==i&&(o.avatar=i),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,n=this.getLocalConversationList(),i=Date.now();n.forEach((function(n){t.modifyMessageSentByMe(c({conversationID:n.conversationID},e))})),Pe.log("".concat(this._className,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-i," ms"))}},{key:"modifyMessageSentByMe",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:"getGroupLocalLastMessageSequence",value:function(e){return this._messageListHandler.getGroupLocalLastMessageSequence(e)}},{key:"checkAndPatchRemark",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(en);if(!t)return e;var n=b(this._conversationMap.values()).filter((function(e){return e.type===A.CONV_C2C}));if(0===n.length)return e;var i=0;return n.forEach((function(e){var n=e.conversationID.replace(A.CONV_C2C,"");if(t.isMyFriend(n)){var o=t.getFriendRemark(n);e.remark!==o&&(e.remark=o,i+=1)}})),Pe.log("".concat(this._className,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(i)),e}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._pagingStatus=Bt.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this.resetReady()}}]),i}(bn),Ra=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4}return r(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:"_checkCachedGroupTips",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var i=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Pe.log("".concat(e._className,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(i)),o?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):i>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(i++,e._checkCountMap.set(n,i))}))}},{key:"onNewGroupTips",value:function(e){Pe.debug("".concat(this._className,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,i=t.result,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),n.length>0&&(this._groupModule.getModule(nn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n)),i.length>0&&(this._groupModule.emitOuterEvent(w.MESSAGE_RECEIVED,i),this.handleMessageList(i))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=e.event,n=e.dataList,i=null,o=[],r=[],a={},s=[],u=0,l=n.length;u<l;u++){var d=n[u],f=d.groupProfile.groupID,p=this._groupModule.hasLocalGroup(f);if(p||!this._groupModule.isUnjoinedAVChatRoom(f))if(p)if(this._groupModule.isMessageFromOrToAVChatroom(f)){var h=mt(d);h.event=t,s.push(h)}else{d.currentUser=this._groupModule.getMyUserID(),d.conversationType=A.CONV_GROUP,(i=new ea(d)).setElement({type:A.MSG_GRP_TIP,content:c({},d.elements,{groupProfile:d.groupProfile})}),i.isSystemMessage=!1;var g=this._groupModule.getModule(nn),m=i,v=m.conversationID,_=m.sequence;if(6===t)i._onlineOnlyFlag=!0,r.push(i);else if(!g.pushIntoNoticeResult(r,i))continue;if(6!==t||!g.getLocalConversation(v)){6!==t&&this._groupModule.getModule(_n).addMessageSequence({key:Qi,message:i});var y=g.isRemoteRead({conversationID:v,sequence:_});if(Je(a[v]))a[v]=o.push({conversationID:v,unreadCount:"in"!==i.flow||i._onlineOnlyFlag||y?0:1,type:i.conversationType,subType:i.conversationSubType,lastMessage:i})-1;else{var b=a[v];o[b].type=i.conversationType,o[b].subType=i.conversationSubType,o[b].lastMessage=i,"in"!==i.flow||i._onlineOnlyFlag||y||o[b].unreadCount++}}}else this._cacheGroupTipsAndProbe({groupID:f,event:t,item:d})}return{eventDataList:o,result:r,AVChatRoomMessageList:s}}},{key:"handleMessageList",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;default:Pe.warn("".concat(t._className,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,i=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(i);o&&ze(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o))}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,i=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(i);o&&ze(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(tn).deleteLocalGroupMembers(i,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,i=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(i);o&&ze(n)&&o.memberCount!==n&&(o.memberCount=n,this._updateConversationGroupProfile(o)),this._groupModule.getModule(tn).deleteLocalGroupMembers(i,e.payload.userIDList)}},{key:"_updateConversationGroupProfile",value:function(e){this._groupModule.getModule(nn).updateConversationGroupProfile([e])}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,i=this._groupModule.getModule(tn);n.forEach((function(e){var n=i.getLocalGroupMemberInfo(t,e);n&&n.updateRole(A.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,i=this._groupModule.getModule(tn);n.forEach((function(e){var n=i.getLocalGroupMemberInfo(t,e);n&&n.updateRole(A.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,i=n.newGroupProfile,o=n.groupProfile.groupID,r=this._groupModule.getLocalGroupProfile(o);Object.keys(i).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(r,i);break;default:r[e]=i[e]}})),this._groupModule.emitGroupListUpdate(!0,!0)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,i=this._groupModule.getLocalGroupProfile(n),o=this._groupModule.getMyUserID();if(o===t.ownerID){i.updateGroup({selfInfo:{role:A.GRP_MBR_ROLE_OWNER}});var r=this._groupModule.getModule(tn),a=r.getLocalGroupMemberInfo(n,o),s=this._groupModule.getLocalGroupProfile(n).ownerID,c=r.getLocalGroupMemberInfo(n,s);a&&a.updateRole(A.GRP_MBR_ROLE_OWNER),c&&c.updateRole(A.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.payload.groupProfile.groupID,n=this._groupModule.getModule(tn);e.payload.memberList.forEach((function(e){var i=n.getLocalGroupMemberInfo(t,e.userID);i&&ze(e.muteTime)&&i.updateMuteUntil(e.muteTime)}))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),Pe.log("".concat(this._className,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,i=e.event,o=e.item;this._cacheGroupTips(n,{event:i,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===A.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Pe.log("".concat(this._className,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear()}}]),e}(),La=function(){function e(t){n(this,e),this._groupModule=t,this._className="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,t.getInnerEmitterInstance().once(ha,this._initGroupList,this)}return r(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:"_checkCachedGroupMessage",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var i=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Pe.log("".concat(e._className,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(i)),o?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):i>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(i++,e._checkCountMap.set(n,i))}))}},{key:"_initGroupList",value:function(){var e=this;Pe.log("".concat(this._className,"._initGroupList"));var t=new ro(rr),n=this._groupModule.getStorageGroupList();if(Xe(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var i=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(i)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();Pe.log("".concat(this._className,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._className,".handleUpdateGroupLastMessage");if(Pe.debug("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var n,i,o,r=!1,a=0,s=e.length;a<s;a++)(n=e[a]).type===A.CONV_GROUP&&(i=n.conversationID.split(/^GROUP/)[1],(o=this._groupModule.getLocalGroupProfile(i))&&(o.lastMessage=n.lastMessage,r=!0));r&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){Pe.debug("".concat(this._className,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,i=t.messageList,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),this._groupModule.filterModifiedMessage(i),n.length>0&&(this._groupModule.getModule(nn).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n));var r=this._groupModule.filterUnmodifiedMessage(i);r.length>0&&this._groupModule.emitOuterEvent(w.MESSAGE_RECEIVED,r),i.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=e.dataList,n=e.event,i=e.isInstantMessage,o=null,r=[],a=[],s=[],c={},u=A.CONV_GROUP,l=this._groupModule.getModule(cn),d=this._groupModule.getModule(_n),f=t.length;f>1&&t.sort((function(e,t){return e.sequence-t.sequence}));for(var p=0;p<f;p++){var h=t[p],g=h.groupProfile.groupID,m=this._groupModule.hasLocalGroup(g);if(m||!this._groupModule.isUnjoinedAVChatRoom(g))if(m)if(this._groupModule.isMessageFromOrToAVChatroom(g)){var v=mt(h);v.event=n,s.push(v)}else{h.currentUser=this._groupModule.getMyUserID(),h.conversationType=u,h.isSystemMessage=!!h.isSystemMessage,o=new ea(h),h.elements=l.parseElements(h.elements,h.from),o.setElement(h.elements);var _=1===t[p].isModified,y=this._groupModule.getModule(nn);if(y.isMessageSentByCurrentInstance(o)?o.isModified=_:_=!1,1===h.onlineOnlyFlag)o._onlineOnlyFlag=!0,a.push(o);else{if(!y.pushIntoMessageList(a,o,_))continue;d.addMessageSequence({key:Qi,message:o}),i&&o.clientTime>0&&d.addMessageDelay(o.clientTime);var b=o,M=b.conversationID,S=b.sequence,C=y.isRemoteRead({conversationID:M,sequence:S});if(Je(c[M])){var k=0;"in"===o.flow&&(o._isExcludedFromUnreadCount||C||(k=1)),c[M]=r.push({conversationID:M,unreadCount:k,type:o.conversationType,subType:o.conversationSubType,lastMessage:o._isExcludedFromLastMessage?"":o})-1}else{var T=c[M];r[T].type=o.conversationType,r[T].subType=o.conversationSubType,r[T].lastMessage=o._isExcludedFromLastMessage?"":o,"in"===o.flow&&(o._isExcludedFromUnreadCount||C||r[T].unreadCount++)}}}else this._cacheGroupMessageAndProbe({groupID:g,event:n,item:h})}return{conversationOptionsList:r,messageList:a,AVChatRoomMessageList:s}}},{key:"onGroupMessageRevoked",value:function(e){Pe.debug("".concat(this._className,".onGroupMessageRevoked nums:").concat(e.dataList.length));var t=this._groupModule.getModule(nn),n=[],i=null;e.dataList.forEach((function(e){var o=e.elements.revokedInfos;Je(o)||o.forEach((function(e){(i=t.revoke("GROUP".concat(e.groupID),e.sequence,e.random))&&n.push(i)}))})),0!==n.length&&(t.onMessageRevoked(n),this._groupModule.emitOuterEvent(w.MESSAGE_REVOKED,n))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(b(this._groupModule.getGroupMap())),n=0,i=e.length;n<i;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)}));for(var o=b(t.keys()),r=0,a=o.length;r<a;r++)this._groupModule.deleteGroup(o[r])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._className,".getGroupList"),i=new ro(ir);Pe.log("".concat(n));var o={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",muteAllMembers:"ShutUpAllMember"},r=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime"],a=[];return e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){o[e]&&r.push(o[e])})),this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:r,groupList:a}).then((function(){Pe.log("".concat(n," ok. count:").concat(a.length)),t._groupListTreeShaking(a),t._groupModule.updateGroupMap(a);var e=t._groupModule.getLocalGroupList().length;return i.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(a.length,", after tree shaking, local count:").concat(e)).end(),t.tempConversationList&&(Pe.log("".concat(n," update last message with tempConversationList, count:").concat(t.tempConversationList.length)),t.handleUpdateGroupLastMessage({data:t.tempConversationList}),t.tempConversationList=null),t._groupModule.emitGroupListUpdate(),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),ta({groupList:t._groupModule.getLocalGroupList()})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._className,"._pagingGetGroupList"),i=e.isCommunityRelay,o=void 0!==i&&i,r=e.limit,a=e.offset,s=e.groupBaseInfoFilter,c=e.groupList,u=new ro(cr);return this._groupModule.request({protocolName:zn,requestData:{type:o?A.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:r,offset:a,responseFilter:{groupBaseInfoFilter:s,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var i=e.data,l=i.groups,d=void 0===l?[]:l,f=i.totalCount;c.push.apply(c,b(d));var p=a+r,h=!(f>p),g="offset:".concat(a," totalCount:").concat(f," isCompleted:").concat(h," ")+"currentCount:".concat(c.length," isCommunityRelay:").concat(o);return u.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(g)).end(),o||h?!o&&h?(Pe.log("".concat(n," start to get community list")),a=0,t._pagingGetGroupList({limit:r,offset:a,groupBaseInfoFilter:s,groupList:c,isCommunityRelay:!0})):o&&!h?(a=p,t._pagingGetGroupList({limit:r,offset:a,groupBaseInfoFilter:s,groupList:c,isCommunityRelay:!0})):(Pe.log("".concat(n," ok. totalCount:").concat(c.length)),ta({groupList:c})):(a=p,t._pagingGetGroupList({limit:r,offset:a,groupBaseInfoFilter:s,groupList:c}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];u.setMessage("isCommunityRelay:".concat(o)).setError(e,i,r).end()})),o?(11e3===e.code&&(u=null,Pe.log("".concat(n," ok. community unavailable"))),la({groupList:c})):da(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),Pe.log("".concat(this._className,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,i=e.event,o=e.item;this._cacheGroupMessage(n,{event:i,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===A.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Pe.log("".concat(this._className,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._groupModule.getInnerEmitterInstance().once(ha,this._initGroupList,this)}}]),e}(),Pa={1:"init",2:"modify",3:"clear",4:"delete"},Ua=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupAttributesHandler",this._groupAttributesMap=new Map,this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(ga,this._onCloudConfigUpdated,this)}return r(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");Je(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"onGroupAttributesUpdated",value:function(e){var t=this,n=e.groupID,i=e.groupAttributeOption,o=i.mainSequence,r=i.hasChangedAttributeInfo,a=i.groupAttributeList,s=void 0===a?[]:a,c=i.operationType;if(Pe.log("".concat(this._className,".onGroupAttributesUpdated. hasChangedAttributeInfo:").concat(r," operationType:").concat(c)),!Je(c)){if(1===r){if(4===c){var u=[];s.forEach((function(e){u.push(e.key)})),s=b(u),u=null}return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:s,operationType:Pa[c]}),void this._emitGroupAttributesUpdated(n)}if(this._groupAttributesMap.has(n)){var l=this._groupAttributesMap.get(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:l}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:n}),Pe.log("".concat(this._className,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,i=e.groupAttributes,o=this._checkCachedGroupAttributes({groupID:n,funcName:"initGroupAttributes"});if(!0!==o)return da(o);var r=this._groupAttributesMap.get(n),a=r.remoteMainSequence,s=r.avChatRoomKey,c=new ro(dr);return c.setMessage("groupID:".concat(n," mainSequence:").concat(a," groupAttributes:").concat(JSON.stringify(i))),this._groupModule.request({protocolName:vi,requestData:{groupID:n,avChatRoomKey:s,mainSequence:a,groupAttributeList:this._transformGroupAttributes(i)}}).then((function(e){var o=e.data,r=o.mainSequence,a=b(o.groupAttributeList);return a.forEach((function(e){e.value=i[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:a,operationType:"init"}),c.setNetworkType(t._groupModule.getNetworkType()).end(),Pe.log("".concat(t._className,".initGroupAttributes ok. groupID:").concat(n)),ta({groupAttributes:i})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];c.setError(e,i,o).end()})),da(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n=e.groupID,i=e.groupAttributes,o=this._checkCachedGroupAttributes({groupID:n,funcName:"setGroupAttributes"});if(!0!==o)return da(o);var r=this._groupAttributesMap.get(n),a=r.remoteMainSequence,s=r.avChatRoomKey,c=r.attributes,u=this._transformGroupAttributes(i);u.forEach((function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence)}));var l=new ro(fr);return l.setMessage("groupID:".concat(n," mainSequence:").concat(a," groupAttributes:").concat(JSON.stringify(i))),this._groupModule.request({protocolName:_i,requestData:{groupID:n,avChatRoomKey:s,mainSequence:a,groupAttributeList:u}}).then((function(e){var o=e.data,r=o.mainSequence,a=b(o.groupAttributeList);return a.forEach((function(e){e.value=i[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:a,operationType:"modify"}),l.setNetworkType(t._groupModule.getNetworkType()).end(),Pe.log("".concat(t._className,".setGroupAttributes ok. groupID:").concat(n)),ta({groupAttributes:i})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];l.setError(e,i,o).end()})),da(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,i=e.keyList,o=void 0===i?[]:i,r=this._checkCachedGroupAttributes({groupID:n,funcName:"deleteGroupAttributes"});if(!0!==r)return da(r);var a=this._groupAttributesMap.get(n),s=a.remoteMainSequence,c=a.avChatRoomKey,u=a.attributes,l=b(u.keys()),d=bi,f="clear",p={groupID:n,avChatRoomKey:c,mainSequence:s};if(o.length>0){var h=[];l=[],d=yi,f="delete",o.forEach((function(e){var t=0;u.has(e)&&(t=u.get(e).sequence,l.push(e)),h.push({key:e,sequence:t})})),p.groupAttributeList=h}var g=new ro(pr);return g.setMessage("groupID:".concat(n," mainSequence:").concat(s," keyList:").concat(o," protocolName:").concat(d)),this._groupModule.request({protocolName:d,requestData:p}).then((function(e){var i=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:i,groupAttributeList:o,operationType:f}),g.setNetworkType(t._groupModule.getNetworkType()).end(),Pe.log("".concat(t._className,".deleteGroupAttributes ok. groupID:").concat(n)),ta({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];g.setError(e,i,o).end()})),da(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n=e.groupID,i=this._checkCachedGroupAttributes({groupID:n,funcName:"getGroupAttributes"});if(!0!==i)return da(i);var o=this._groupAttributesMap.get(n),r=o.avChatRoomKey,a=o.lastUpdateTime,s=o.localMainSequence,c=o.remoteMainSequence,u=new ro(hr);if(u.setMessage("groupID:".concat(n," localMainSequence:").concat(s," remoteMainSequence:").concat(c," keyList:").concat(e.keyList)),Date.now()-a>=this.CACHE_EXPIRE_TIME||s<c)return this._getGroupAttributes({groupID:n,avChatRoomKey:r}).then((function(i){u.setMoreMessage("get attributes from remote. count:".concat(i.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Pe.log("".concat(t._className,".getGroupAttributes from remote. groupID:").concat(n));var o=t._getLocalGroupAttributes(e);return ta({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];u.setError(e,i,o).end()})),da(e)}));u.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),Pe.log("".concat(this._className,".getGroupAttributes from cache. groupID:").concat(n));var l=this._getLocalGroupAttributes(e);return la({groupAttributes:l})}},{key:"_getGroupAttributes",value:function(e){var t=this;return this._groupModule.request({protocolName:Mi,requestData:c({},e)}).then((function(n){var i=n.data,o=i.mainSequence,r=i.groupAttributeList,a=b(r);return Je(o)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:o,groupAttributeList:a,operationType:"get"}),Pe.log("".concat(t._className,"._getGroupAttributes ok. groupID:").concat(e.groupID)),r})).catch((function(e){return da(e)}))}},{key:"_getLocalGroupAttributes",value:function(e){var t=e.groupID,n=e.keyList,i=void 0===n?[]:n,o={};if(!this._groupAttributesMap.has(t))return o;var r=this._groupAttributesMap.get(t).attributes;if(i.length>0)i.forEach((function(e){r.has(e)&&(o[e]=r.get(e).value)}));else{var a,s=I(r.keys());try{for(s.s();!(a=s.n()).done;){var c=a.value;o[c]=r.get(c).value}}catch(d){s.e(d)}finally{s.f()}}return o}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,i=e.groupAttributeList,o=e.operationType;if(this._groupAttributesMap.has(t)){var r=this._groupAttributesMap.get(t),a=r.localMainSequence;if("get"===o||n-a==1)r.remoteMainSequence=n,r.localMainSequence=n,r.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:r,groupAttributeList:i,operationType:o});else{if(a===n)return;r.remoteMainSequence=n}this._groupAttributesMap.set(t,r);var s="operationType:".concat(o," localMainSequence:").concat(a," remoteMainSequence:").concat(n);Pe.log("".concat(this._className,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,i=e.operationType;"clear"!==i?"delete"!==i?("init"===i&&t.attributes.clear(),n.forEach((function(e){var n=e.key,i=e.value,o=e.sequence;t.attributes.set(n,{value:i,sequence:o})}))):n.forEach((function(e){t.attributes.delete(e)})):t.attributes.clear()}},{key:"_checkCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.funcName;if(this._groupModule.hasLocalGroup(t)&&this._groupModule.getLocalGroupProfile(t).type!==A.GRP_AVCHATROOM)return Pe.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat("非直播群不能使用群属性 API")),new sa({code:$i.CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM,message:"非直播群不能使用群属性 API"});var i=this._groupAttributesMap.get(t);if(Je(i)){var o="如果 groupID:".concat(t," 是直播群,使用 ").concat(n," 前先使用 joinGroup 接口申请加入群组,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return Pe.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat(o)),new sa({code:$i.CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN,message:o})}return!0}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getLocalGroupAttributes({groupID:e});this._groupModule.emitOuterEvent(w.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t})}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this.CACHE_EXPIRE_TIME=3e4}}]),e}(),Ga=function(){function e(t){n(this,e);var i=t.manager,o=t.groupID,r=t.onInit,a=t.onSuccess,s=t.onFail;this._className="Polling",this._manager=i,this._groupModule=i._groupModule,this._onInit=r,this._onSuccess=a,this._onFail=s,this._groupID=o,this._timeoutID=-1,this._isRunning=!1,this._protocolName=pi}return r(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=hi),Pe.log("".concat(this._className,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){Pe.log("".concat(this._className,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),Fa={3:!0,4:!0,5:!0,6:!0},Ba=function(){function e(t){n(this,e),this._groupModule=t,this._className="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new Ia(100),this.messageIDLinkedList=new Ia(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL}return r(e,[{key:"hasJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0?b(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){return c({},this._pollingRequestInfoMap.get(e))}},{key:"_handleSuccess",value:function(e,t){var n=t.data,i=n.key,o=n.nextSeq,r=n.rspMsgList;if(0!==n.errorCode){var a=this._pollingRequestInfoMap.get(e),s=new ro(kr),c=a?"".concat(a.key,"-").concat(a.startSeq):"requestInfo is undefined";s.setMessage("".concat(e,"-").concat(c,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;Ke(i)&&ze(o)&&this._pollingRequestInfoMap.set(e,{key:i,startSeq:o}),Xe(r)&&r.length>0&&(r.forEach((function(e){e.to=e.groupID})),this.onMessage(r))}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(Xe(e)&&0!==e.length){var t=null,n=[],i=this._getModule(nn),o=this._getModule(_n),r=e.length;r>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var a=this._getModule(on),s=0;s<r;s++)if(Fa[e[s].event]){this.receivedMessageCount+=1,t=this.packMessage(e[s],e[s].event);var c=1===e[s].isModified,u=1===e[s].isHistoryMessage;if((a.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var l=t.conversationID;if(this.receivedMessageCount%40==0&&this._getModule(hn).detectMessageLoss(l,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var d=this.sequencesLinkedList.tail().value,f=t.sequence-d;f>1&&f<=20?this._getModule(hn).onMessageMaybeLost(l,d+1,f-1):f<-1&&f>=-20&&this._getModule(hn).onMessageMaybeLost(l,t.sequence+1,Math.abs(f)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var p=!1;if(this._isMessageSentByCurrentInstance(t)?c&&(p=!0,t.isModified=c,i.updateMessageIsModifiedProperty(t)):p=!0,p){if(t.conversationType,A.CONV_SYSTEM,!u&&t.conversationType!==A.CONV_SYSTEM){var h=t.conversationID.replace(A.CONV_GROUP,"");this._pollingInstanceMap.has(h)?o.addMessageSequence({key:eo,message:t}):(t.type!==A.MSG_GRP_TIP&&t.clientTime>0&&o.addMessageDelay(t.clientTime),o.addMessageSequence({key:Zi,message:t}))}n.push(t)}}}else Pe.warn("".concat(this._className,".onMessage 未处理的 event 类型: ").concat(e[s].event));if(0!==n.length){this._groupModule.filterModifiedMessage(n);var g=this.packConversationOption(n);g.length>0&&this._getModule(nn).onNewMessage({conversationOptionsList:g,isInstantMessage:!0}),Pe.debug("".concat(this._className,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var m=this._groupModule.filterUnmodifiedMessage(n);m.length>0&&this._groupModule.emitOuterEvent(w.MESSAGE_RECEIVED,m),n.length=0}}}},{key:"_checkMessageStacked",value:function(e){var t=e.length;t>=100&&(Pe.warn("".concat(this._className,"._checkMessageStacked 直播群消息堆积数:").concat(e.length,'!可能会导致微信小程序渲染时遇到 "Dom limit exceeded" 的错误,建议接入侧此时只渲染最近的10条消息')),this._reportMessageStackedCount<5&&(new ro(Ir).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(t," groupID:").concat(b(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(nn).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?A.CONV_SYSTEM:A.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new ea(e),i=this.packElements(e,t);return n.setElement(i),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),this._onGroupAttributesUpdated(e),{type:A.MSG_GRP_TIP,content:c({},e.elements,{groupProfile:e.groupProfile})}):5===t?{type:A.MSG_GRP_SYS_NOTICE,content:c({},e.elements,{groupProfile:e.groupProfile})}:this._getModule(cn).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var i=e[n],o=i.conversationID;if(t.has(o)){var r=t.get(o);r.lastMessage=i,"in"===i.flow&&r.unreadCount++}else t.set(o,{conversationID:i.conversationID,unreadCount:"out"===i.flow?0:1,type:i.conversationType,subType:i.conversationSubType,lastMessage:i})}return b(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,i=void 0===n?void 0:n;if(!Lt(i)){var o=i.onlineMemberNum,r=void 0===o?0:o,a=i.expireTime,s=void 0===a?this.DEFAULT_EXPIRE_TIME:a,c=this._onlineMemberCountMap.get(t)||{},u=Date.now();Lt(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:u,memberCount:r,expireTime:s}):(c.latestUpdateTime=u,c.memberCount=r),Pe.debug("".concat(this._className,"._updateMemberCountByGroupTips info:"),c),this._onlineMemberCountMap.set(t,c)}}},{key:"start",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new Ga({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),Pe.log("".concat(this._className,".start groupID:").concat(e))}}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,i=e.group,o=i.groupID;return t._joinedGroupMap.set(o,i),t._groupModule.updateGroupMap([i]),t._groupModule.deleteUnjoinedAVChatRoom(o),t._groupModule.emitGroupListUpdate(!0,!1),Je(n)?la({status:je,group:i}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,i=e.group,o=i.groupID;return t._pollingRequestInfoMap.set(o,{key:n,startSeq:0}),t.start(o),t._groupModule.isLoggedIn()?la({status:je,group:i}):la({status:je})}))}},{key:"_preCheck",value:function(){if(this._getModule(on).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=y(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==A.GRP_MBR_ROLE_OWNER&&n.ownerID!==this._groupModule.getMyUserID())return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,i="".concat(this._className,".joinWithoutAuth"),o=new ro(lr);return this._groupModule.request({protocolName:Qn,requestData:e}).then((function(e){var r=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=y(e,2),i=(t[0],t[1]);o.setNetworkType(i).setMessage("groupID:".concat(n," longPollingKey:").concat(r)).end(!0)})),Je(r))return da(new sa({code:$i.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN,message:Hi.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN}));Pe.log("".concat(i," ok. groupID:").concat(n)),t._getModule(nn).setCompleted("".concat(A.CONV_GROUP).concat(n));var a=new Aa({groupID:n});return t.startRunLoop({group:a,longPollingKey:r}),ta({status:je})})).catch((function(e){return Pe.error("".concat(i," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var i=y(t,2),r=i[0],a=i[1];o.setError(e,r,a).setMessage("groupID:".concat(n)).end(!0)})),da(e)})).finally((function(){t._groupModule.getModule(an).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return Lt(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return ta({memberCount:e.memberCount})})).catch((function(e){return da(e)}))):la({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._className,"._getGroupOnlineMemberCount");return this._groupModule.request({protocolName:gi,requestData:{groupID:e}}).then((function(i){var o=t._onlineMemberCountMap.get(e)||{},r=i.data,a=r.onlineMemberNum,s=void 0===a?0:a,c=r.expireTime,u=void 0===c?t.DEFAULT_EXPIRE_TIME:c;Pe.log("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(u));var l=Date.now();return Lt(o)&&(o.lastReqTime=l),t._onlineMemberCountMap.set(e,Object.assign(o,{lastSyncTime:l,latestUpdateTime:l,memberCount:s,expireTime:u})),{memberCount:s}})).catch((function(i){return Pe.warn("".concat(n," failed. error:"),i),new ro(Cr).setCode(i.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(i))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(i)}))}},{key:"_onGroupAttributesUpdated",value:function(e){var t=e.groupProfile.groupID,n=e.elements,i=n.operationType,o=n.newGroupProfile;if(6===i){var r=(void 0===o?void 0:o).groupAttributeOption;Lt(r)||this._groupModule.onGroupAttributesUpdated({groupID:t,groupAttributeOption:r})}}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){Je(e)||ze(e)||(this._pollingInterval=parseInt(e,10),Pe.log("".concat(this._className,".setPollingInterval value:").concat(this._pollingInterval)))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"reset",value:function(e){if(e){Pe.log("".concat(this._className,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Pe.log("".concat(this._className,".reset all"));var n,i=I(this._pollingInstanceMap.values());try{for(i.s();!(n=i.n()).done;)n.value.stop()}catch(a){i.e(a)}finally{i.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL}}]),e}(),qa=1,ja=15,$a=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupSystemNoticeHandler",this.pendencyMap=new Map}return r(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,i=e.isInstantMessage;Pe.debug("".concat(this._className,".onReceiveSystemNotice count:").concat(t.length));var o=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:i}),r=o.eventDataList,a=o.result;r.length>0&&(this._groupModule.getModule(nn).onNewMessage({conversationOptionsList:r,isInstantMessage:i}),this._onReceivedGroupSystemNotice({result:a,isInstantMessage:i})),i?a.length>0&&this._groupModule.emitOuterEvent(w.MESSAGE_RECEIVED,a):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,n=e.isInstantMessage,i=null,o=t.length,r=0,a=[],s={conversationID:A.CONV_SYSTEM,unreadCount:0,type:A.CONV_SYSTEM,subType:null,lastMessage:null};for(r=0;r<o;r++){var u=t[r];u.elements.operationType!==ja&&(u.currentUser=this._groupModule.getMyUserID(),u.conversationType=A.CONV_SYSTEM,u.conversationID=A.CONV_SYSTEM,(i=new ea(u)).setElement({type:A.MSG_GRP_SYS_NOTICE,content:c({},u.elements,{groupProfile:u.groupProfile})}),i.isSystemMessage=!0,(1===i.sequence&&1===i.random||2===i.sequence&&2===i.random)&&(i.sequence=ut(),i.random=ut(),i.generateMessageID(),Pe.log("".concat(this._className,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(i.ID))),this._groupModule.getModule(nn).pushIntoNoticeResult(a,i)&&(n?s.unreadCount++:i.setIsRead(!0),s.subType=i.conversationSubType))}return s.lastMessage=a[a.length-1],{eventDataList:a.length>0?[s]:[],result:a}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this.getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)}));var n=e._groupModule.getModule(nn).getLocalMessageList(A.CONV_SYSTEM),i=[];n.forEach((function(t){var n=t.payload,o=n.operatorID,r=n.operationType,a=n.groupProfile;if(r===qa){var s="".concat(o,"_").concat(a.groupID,"_").concat(a.to),c=e.pendencyMap.get(s);c&&ze(c.handled)&&0!==c.handled&&i.push(t)}})),e.deleteGroupSystemNotice({messageList:i})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._className,".deleteGroupSystemNotice");return Xe(e.messageList)&&0!==e.messageList.length?(Pe.log("".concat(n)+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:fi,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:A.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Pe.log("".concat(n," ok"));var i=t._groupModule.getModule(nn);return e.messageList.forEach((function(e){i.deleteLocalMessage(e)})),ta()})).catch((function(e){return Pe.error("".concat(n," error:"),e),da(e)}))):la()}},{key:"getPendencyList",value:function(e){var t=this;return this._groupModule.request({protocolName:di,requestData:{startTime:e&&e.startTime?e.startTime:0,limit:e&&e.limit?e.limit:10,handleAccount:this._groupModule.getMyUserID()}}).then((function(e){var n=e.data.pendencyList;return 0!==e.data.nextStartTime?t.getPendencyList({startTime:e.data.nextStartTime}).then((function(e){return[].concat(b(n),b(e))})):n}))}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e)}}))}},{key:"_onApplyGroupRequestAgreed",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onMemberKicked",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onGroupDismissed",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onQuitGroup",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=e.payload.groupProfile,n=t.to,i=t.groupID,o=this._groupModule.getModule(tn).getLocalGroupMemberInfo(i,n);o&&o.updateRole(A.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,i=t.groupID,o=this._groupModule.getModule(tn).getLocalGroupMemberInfo(i,n);o&&o.updateRole(A.GRP_MBR_ROLE_MEMBER)}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),Ha=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="GroupModule",o._commonGroupHandler=null,o._AVChatRoomHandler=null,o._groupSystemNoticeHandler=null,o._commonGroupHandler=new La(m(o)),o._groupAttributesHandler=new Ua(m(o)),o._AVChatRoomHandler=new Ba(m(o)),o._groupTipsHandler=new Ra(m(o)),o._groupSystemNoticeHandler=new $a(m(o)),o.groupMap=new Map,o._unjoinedAVChatRoomList=new Map,o._receiptDetailCompleteMap=new Map,o.getInnerEmitterInstance().on(ga,o._onCloudConfigUpdated,m(o)),o}return r(i,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("polling_interval");this._AVChatRoomHandler&&this._AVChatRoomHandler.setPollingInterval(e)}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t=this;if(e.conversationType===A.CONV_GROUP){var n=e.to;return this.hasLocalGroup(n)?la():this.getGroupProfile({groupID:n}).then((function(i){var o=i.data.group.type;if(Pe.log("".concat(t._className,".guardForAVChatRoom. groupID:").concat(n," type:").concat(o)),o===A.GRP_AVCHATROOM){var r="userId:".concat(e.from," 未加入群 groupID:").concat(n,"。发消息前先使用 joinGroup 接口申请加群,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return Pe.warn("".concat(t._className,".guardForAVChatRoom sendMessage not allowed. ").concat(r)),da(new sa({code:$i.MESSAGE_SEND_FAIL,message:r,data:{message:e}}))}return la()}))}return la()}},{key:"checkJoinedAVChatRoomByID",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewGroupMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t=this;Xe(e)&&e.forEach((function(e){var n=e.conversationID.replace(A.CONV_GROUP,"");t.groupMap.has(n)&&(t.groupMap.get(n).nextMessageSeq=e.lastMessage.sequence+1)}))}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:"onGroupMessageRevoked",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onGroupMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!Je(n)){var i=t.getModule(nn);n.forEach((function(e){var n=e.groupID,o=e.lastMessageSeq;Pe.debug("".concat(t._className,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(o));var r="".concat(A.CONV_GROUP).concat(n);i.updateIsReadAfterReadReport({conversationID:r,lastMessageSeq:o}),i.updateUnreadCount(r)}))}}))}},{key:"onReadReceiptList",value:function(e){var t=this;Pe.debug("".concat(this._className,".onReadReceiptList options:"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,i=e.elements,o=n.groupID,r=t.getModule(nn),a=i.readReceiptList;r.updateReadReceiptInfo(o,a)}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new Aa(e))}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t=this;e.forEach((function(e){t.groupMap.has(e.groupID)?t.groupMap.get(e.groupID).updateGroup(e):t.groupMap.set(e.groupID,new Aa(e))}));var n,i=this.getMyUserID(),o=I(this.groupMap);try{for(o.s();!(n=o.n()).done;)y(n.value,2)[1].selfInfo.userID=i}catch(s){o.e(s)}finally{o.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(rn).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!yt(t)})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(rn).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return b(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=b(this.groupMap).filter((function(e){var t=y(e,2);return t[0],!Lt(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(b(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent(w.GROUP_LIST_UPDATED),t){var i=JSON.parse(JSON.stringify(n)),o=this.getModule(nn);o.updateConversationGroupProfile(i)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(nn),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Pe.log("".concat(this._className,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(nn);e.forEach((function(e){var n=e.groupID,i=e.selfInfo,o=i.excludedUnreadSequenceList,r=i.readedSequence;if(Xe(o)){var a=0;o.forEach((function(t){t>=r&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(A.CONV_GROUP).concat(n),count:a})}}))}},{key:"getMyNameCardByGroupID",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:""}},{key:"getGroupList",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):la()}},{key:"getGroupProfile",value:function(e){var t=this,n=new ro(or),i="".concat(this._className,".getGroupProfile"),o=e.groupID,r=e.groupCustomFieldFilter;Pe.log("".concat(i," groupID:").concat(o));var a={groupIDList:[o],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:r,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(a).then((function(e){var r,a=e.data,s=a.successGroupList,c=a.failureGroupList;return Pe.log("".concat(i," ok")),c.length>0?da(c[0]):(yt(s[0].type)&&!t.hasLocalGroup(o)?r=new Aa(s[0]):(t.updateGroupMap(s),r=t.getLocalGroupProfile(o)),t.getModule(nn).updateConversationGroupProfile([r]),n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," type:").concat(r.type," muteAllMembers:").concat(r.muteAllMembers," ownerID:").concat(r.ownerID)).end(),ta({group:r}))})).catch((function(o){return t.probeNetwork().then((function(t){var i=y(t,2),r=i[0],a=i[1];n.setError(o,r,a).setMessage("groupID:".concat(e.groupID)).end()})),Pe.error("".concat(i," failed. error:"),o),da(o)}))}},{key:"getGroupProfileAdvance",value:function(e){var t=this,n="".concat(this._className,".getGroupProfileAdvance"),i=e.groupIDList;Xe(i)&&i.length>50&&(Pe.warn("".concat(n," 获取群资料的数量不能超过50个")),i.length=50);var o=[],r=[];i.forEach((function(e){bt({groupID:e})?r.push(e):o.push(e)}));var a=[];if(o.length>0){var s=this._getGroupProfileAdvance(c({},e,{groupIDList:o}));a.push(s)}if(r.length>0){var u=this._getGroupProfileAdvance(c({},e,{groupIDList:r,relayFlag:o.length>0}));a.push(u)}return Promise.all(a).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,b(e.successGroupList)),n.push.apply(n,b(e.failureGroupList))})),ta({successGroupList:t,failureGroupList:n})})).catch((function(e){return Pe.error("".concat(t._className,"._getGroupProfileAdvance failed. error:"),e),da(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,i=void 0!==n&&n,o=g(e,["relayFlag"]);return this.request({protocolName:Kn,requestData:o}).then((function(e){Pe.log("".concat(t._className,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return Je(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new sa({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return i&&bt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:da(t)}))}},{key:"createGroup",value:function(e){var t=this,n="".concat(this._className,".createGroup"),i=e.type,o=e.groupID;if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(i))return da({code:$i.ILLEGAL_GROUP_TYPE,message:Hi.ILLEGAL_GROUP_TYPE});if(!bt({type:i})&&!Lt(o)&&bt({groupID:o}))return da({code:$i.ILLEGAL_GROUP_ID,message:Hi.ILLEGAL_GROUP_ID});if(yt(i)&&!Je(e.memberList)&&e.memberList.length>0&&(Pe.warn("".concat(n," 创建 AVChatRoom 时不能添加群成员,自动忽略该字段")),e.memberList=void 0),_t(i)||Je(e.joinOption)||(Pe.warn("".concat(n," 创建 Work/Meeting/AVChatRoom/Community 群时不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),bt({type:i})&&!Lt(o)&&!bt({groupID:o}))return da({code:$i.ILLEGAL_GROUP_ID,message:Hi.ILLEGAL_GROUP_ID});var r=new ro(Ko);Pe.log("".concat(n," options:"),e);var a=[];return this.request({protocolName:Wn,requestData:c({},e,{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(i){var o=i.data,s=o.groupID,u=o.overLimitUserIDList,l=void 0===u?[]:u;if(a=l,r.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(s," overLimitUserIDList=").concat(l)).end(),Pe.log("".concat(n," ok groupID:").concat(s," overLimitUserIDList:"),l),e.type===A.GRP_AVCHATROOM)return t.getGroupProfile({groupID:s});Lt(e.memberList)||Lt(l)||(e.memberList=e.memberList.filter((function(e){return-1===l.indexOf(e.userID)}))),t.updateGroupMap([c({},e,{groupID:s})]);var d=t.getModule(Xt),f=d.createCustomMessage({to:s,conversationType:A.CONV_GROUP,payload:{data:"group_create",extension:"".concat(t.getMyUserID(),"创建群组")}});return d.sendMessageInstance(f),t.emitGroupListUpdate(),t.getGroupProfile({groupID:s})})).then((function(e){var t=e.data.group,n=t.selfInfo,i=n.nameCard,o=n.joinTime;return t.updateSelfInfo({nameCard:i,joinTime:o,messageRemindType:A.MSG_REMIND_ACPT_AND_NOTE,role:A.GRP_MBR_ROLE_OWNER}),ta({group:t,overLimitUserIDList:a})})).catch((function(i){return r.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=y(e,2),n=t[0],o=t[1];r.setError(i,n,o).end()})),Pe.error("".concat(n," failed. error:"),i),da(i)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._className,".dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===A.GRP_WORK)return da(new sa({code:$i.CANNOT_DISMISS_WORK,message:Hi.CANNOT_DISMISS_WORK}));var i=new ro(tr);return i.setMessage("groupID:".concat(e)),Pe.log("".concat(n," groupID:").concat(e)),this.request({protocolName:Yn,requestData:{groupID:e}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),ta({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._className,".updateGroupProfile");!this.hasLocalGroup(e.groupID)||_t(this.getLocalGroupProfile(e.groupID).type)||Je(e.joinOption)||(Pe.warn("".concat(n," Work/Meeting/AVChatRoom/Community 群不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),Je(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off");var i=new ro(nr);return i.setMessage(JSON.stringify(e)),Pe.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:Xn,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),ta({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.log("".concat(n," failed. error:"),e),da(e)}))}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,i=e.type,o="".concat(this._className,".joinGroup");if(i===A.GRP_WORK){var r=new sa({code:$i.CANNOT_JOIN_WORK,message:Hi.CANNOT_JOIN_WORK});return da(r)}if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return la({status:A.JOIN_STATUS_ALREADY_IN_GROUP});var a=new ro(Wo);return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(A.JOIN_STATUS_ALREADY_IN_GROUP)).end(),la({status:A.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(i){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),Pe.warn("".concat(o," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Pe.log("".concat(o," groupID:").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:"applyJoinGroup",value:function(e){var t=this,n="".concat(this._className,".applyJoinGroup"),i=e.groupID,o=new ro(Wo),r=c({},e),a=this.canIUse(V.AVCHATROOM_HISTORY_MSG);return a&&(r.historyMessageFlag=1),this.request({protocolName:Jn,requestData:r}).then((function(e){var r=e.data,s=r.joinedStatus,c=r.longPollingKey,u=r.avChatRoomFlag,l=r.avChatRoomKey,d=r.messageList,f="groupID:".concat(i," joinedStatus:").concat(s," longPollingKey:").concat(c)+" avChatRoomFlag:".concat(u," canGetAVChatRoomHistoryMessage:").concat(a);switch(o.setNetworkType(t.getNetworkType()).setMessage("".concat(f)).end(),Pe.log("".concat(n," ok. ").concat(f)),s){case $e:return ta({status:$e});case je:return t.getGroupProfile({groupID:i}).then((function(e){var n,o=e.data.group,r={status:je,group:o};return 1===u?(t.getModule(nn).setCompleted("".concat(A.CONV_GROUP).concat(i)),t._groupAttributesHandler.initGroupAttributesCache({groupID:i,avChatRoomKey:l}),(n=Je(c)?t._AVChatRoomHandler.handleJoinResult({group:o}):t._AVChatRoomHandler.startRunLoop({longPollingKey:c,group:o})).then((function(){t._onAVChatRoomHistoryMessage(d)})),n):(t.emitGroupListUpdate(!0,!1),ta(r))}));default:var p=new sa({code:$i.JOIN_GROUP_FAIL,message:Hi.JOIN_GROUP_FAIL});return Pe.error("".concat(n," error:"),p),da(p)}})).catch((function(i){return o.setMessage("groupID:".concat(e.groupID)),t.probeNetwork().then((function(e){var t=y(e,2),n=t[0],r=t[1];o.setError(i,n,r).end()})),Pe.error("".concat(n," error:"),i),da(i)}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._className,".quitGroup");Pe.log("".concat(n," groupID:").concat(e));var i=this.checkJoinedAVChatRoomByID(e);if(!i&&!this.hasLocalGroup(e)){var o=new sa({code:$i.MEMBER_NOT_IN_GROUP,message:Hi.MEMBER_NOT_IN_GROUP});return da(o)}if(i&&!this.isLoggedIn())return Pe.log("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),la({groupID:e});var r=new ro(Yo);return r.setMessage("groupID:".concat(e)),this.request({protocolName:Zn,requestData:{groupID:e}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),i&&t._AVChatRoomHandler.reset(e),t.deleteLocalGroupAndConversation(e),ta({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._className,".searchGroupByID"),i={groupIDList:[e]},o=new ro(Xo);return o.setMessage("groupID:".concat(e)),Pe.log("".concat(n," groupID:").concat(e)),this.request({protocolName:ei,requestData:i}).then((function(e){var i=e.data.groupProfile;if(0!==i[0].errorCode)throw new sa({code:i[0].errorCode,message:i[0].errorInfo});return o.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),ta({group:new Aa(i[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],r=n[1];o.setError(e,i,r).end()})),Pe.warn("".concat(n," failed. error:"),e),da(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._className,".changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===A.GRP_AVCHATROOM)return da(new sa({code:$i.CANNOT_CHANGE_OWNER_IN_AVCHATROOM,message:Hi.CANNOT_CHANGE_OWNER_IN_AVCHATROOM}));if(e.newOwnerID===this.getMyUserID())return da(new sa({code:$i.CANNOT_CHANGE_OWNER_TO_SELF,message:Hi.CANNOT_CHANGE_OWNER_TO_SELF}));var i=new ro(Jo);return i.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Pe.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:ti,requestData:e}).then((function(){i.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok"));var o=e.groupID,r=e.newOwnerID;t.groupMap.get(o).ownerID=r;var a=t.getModule(tn).getLocalGroupMemberList(o);if(a instanceof Map){var s=a.get(t.getMyUserID());Je(s)||(s.updateRole("Member"),t.groupMap.get(o).selfInfo.role="Member");var c=a.get(r);Je(c)||c.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),ta({group:t.groupMap.get(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"handleGroupApplication",value:function(e){var t=this,n="".concat(this._className,".handleGroupApplication"),i=e.message.payload,o=i.groupProfile.groupID,r=i.authentication,a=i.messageKey,s=i.operatorID,u=new ro(Qo);return u.setMessage("groupID:".concat(o)),Pe.log("".concat(n," groupID:").concat(o)),this.request({protocolName:ni,requestData:c({},e,{applicant:s,groupID:o,authentication:r,messageKey:a})}).then((function(){return u.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),ta({group:t.getLocalGroupProfile(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];u.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error"),e),da(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,n="".concat(this._className,".handleGroupInvitation"),i=e.message.payload,o=i.groupProfile.groupID,r=i.authentication,a=i.messageKey,s=i.operatorID,u=e.handleAction,l=new ro(Zo);return l.setMessage("groupID:".concat(o," inviter:").concat(s," handleAction:").concat(u)),Pe.log("".concat(n," groupID:").concat(o," inviter:").concat(s," handleAction:").concat(u)),this.request({protocolName:ii,requestData:c({},e,{inviter:s,groupID:o,authentication:r,messageKey:a})}).then((function(){return l.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),ta({group:t.getLocalGroupProfile(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];l.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error"),e),da(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):la({memberCount:0}):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){this._deleteLocalGroup(e),this.getModule(nn).deleteLocalConversation("GROUP".concat(e)),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(tn).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:"sendMessage",value:function(e,t){var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:"createGroupMessagePack",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var i="";Ke(e.cloudCustomData)&&e.cloudCustomData.length>0&&(i=e.cloudCustomData);var o=[];if(Ye(t)&&Ye(t.messageControlInfo)){var r=t.messageControlInfo,a=r.excludedFromUnreadCount,s=r.excludedFromLastMessage;!0===a&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg")}var c=e.getGroupAtInfoList();return{protocolName:An,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:i,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==A.MSG_TEXT||Lt(c)?void 0:c,onlineOnlyFlag:this.isOnlineMessage(e,t)?1:0,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:o,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1}}}},{key:"revokeMessage",value:function(e){return this.request({protocolName:oi,requestData:{groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Pe.log("".concat(this._className,".deleteMessage groupID:").concat(t," count:").concat(n.length)),this.request({protocolName:mi,requestData:{groupID:t,deleter:this.getMyUserID(),keyList:n}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),i=new ro(Io),o=0;return this._computeLastSequence(e).then((function(i){return o=i,Pe.log("".concat(n," groupID:").concat(e.groupID," lastSequence:").concat(o)),t.request({protocolName:si,requestData:{groupID:e.groupID,count:21,sequence:o}})})).then((function(r){var a=r.data,s=a.messageList,c=a.complete;Je(s)?Pe.log("".concat(n," ok. complete:").concat(c," but messageList is undefined!")):Pe.log("".concat(n," ok. complete:").concat(c," count:").concat(s.length)),i.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e.groupID," lastSequence:").concat(o," complete:").concat(c," count:").concat(s?s.length:"undefined")).end();var u="GROUP".concat(e.groupID),l=t.getModule(nn);if(2===c||Lt(s))return l.setCompleted(u),[];var d=l.storeRoamingMessage(s,u);return l.updateIsRead(u),l.patchConversationLastMessage(u),d})).catch((function(r){return t.probeNetwork().then((function(t){var n=y(t,2),a=n[0],s=n[1];i.setError(r,a,s).setMessage("groupID:".concat(e.groupID," lastSequence:").concat(o)).end()})),Pe.warn("".concat(n," failed. error:"),r),da(r)}))}},{key:"_getGroupIDOfMessage",value:function(e){return e.conversationID.replace(A.CONV_GROUP,"")}},{key:"getReadReceiptList",value:function(e){var t=this,n="".concat(this._className,".getReadReceiptList"),i=this._getGroupIDOfMessage(e[0]),o=this.getMyUserID(),r=e.filter((function(e){return e.from===o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(Pe.log("".concat(n," groupID:").concat(i," sequenceList:").concat(JSON.stringify(r))),0===r.length)return la({messageList:e});var a=new ro(wo);return a.setMessage("groupID:".concat(i)),this.request({protocolName:ci,requestData:{groupID:i,sequenceList:r}}).then((function(t){a.end(),Pe.log("".concat(n," ok"));var i=t.data.readReceiptList;return Xe(i)&&i.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),ta({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];a.setError(e,i,o).end()})),Pe.warn("".concat(n," failed. error:"),e),da(e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n=this._getGroupIDOfMessage(e[0]),i=new ro(Eo);i.setMessage("groupID:".concat(n));var o=this.getMyUserID(),r=e.filter((function(e){return e.from!==o&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(0===r.length)return da({code:$i.READ_RECEIPT_SEQUENCE_LIST_EMPTY,message:Hi.READ_RECEIPT_SEQUENCE_LIST_EMPTY});var a="".concat(this._className,".sendReadReceipt");return Pe.log("".concat(a,". sequenceList:").concat(JSON.stringify(r))),this.request({protocolName:ui,requestData:{groupID:n,sequenceList:r}}).then((function(e){return i.end(),Pe.log("".concat(a," ok")),ta()})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.warn("".concat(a," failed. error:"),e),da(e)}))}},{key:"getReadReceiptDetail",value:function(e){var t=this,n=e.message,i=e.filter,o=e.cursor,r=e.count,a=this._getGroupIDOfMessage(n),s=n.ID,c=n.sequence,u="".concat(this._className,".getReadReceiptDetail"),l=this._receiptDetailCompleteMap.get(s)||!1,d=0!==i&&1!==i?0:i,f=Ke(o)?o:"",p=!ze(r)||r<=0||r>=100?100:r,h="groupID:".concat(a," sequence:").concat(c," cursor:").concat(f," filter:").concat(d," completeFlag:").concat(l);Pe.log("".concat(u," ").concat(h));var g={cursor:"",isCompleted:!1,messageID:s,unreadUserIDList:[],readUserIDList:[]};if(!0===l)return g.isCompleted=!0,la(g);var m=new ro(Ao);return m.setMessage(h),this.request({protocolName:li,requestData:{groupID:a,sequence:c,flag:d,cursor:f,count:p}}).then((function(e){m.end();var n=e.data,i=n.cursor,o=n.isCompleted,r=n.unreadUserIDList,a=n.readUserIDList;return g.cursor=i,1===o&&(g.isCompleted=!0,t._receiptDetailCompleteMap.set(s,!0)),0===d?g.readUserIDList=a.map((function(e){return e.userID})):1===d&&(g.unreadUserIDList=r.map((function(e){return e.userID}))),Pe.log("".concat(u," ok")),ta(g)})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];m.setError(e,i,o).end()})),Pe.warn("".concat(u," failed. error:"),e),da(e)}))}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,i=e.lastMessageSeq,o="".concat(this._className,".setMessageRead");Pe.log("".concat(o," conversationID:").concat(n," lastMessageSeq:").concat(i)),ze(i)||Pe.warn("".concat(o," 请勿修改 Conversation.lastMessage.lastSequence,否则可能会导致已读上报结果不准确"));var r=new ro(No);return r.setMessage("".concat(n,"-").concat(i)),this.request({protocolName:ri,requestData:{groupID:n.replace(A.CONV_GROUP,""),messageReadSeq:i}}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(o," ok."));var e=t.getModule(nn);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:i}),e.updateUnreadCount(n),ta()})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Pe.log("".concat(o," failed. error:"),e),da(e)}))}},{key:"_computeLastSequence",value:function(e){return e.sequence>0?Promise.resolve(e.sequence):this.getGroupLastSequence(e.groupID)}},{key:"getGroupLastSequence",value:function(e){var t=this,n="".concat(this._className,".getGroupLastSequence"),i=new ro(ar),o=0,r="";if(this.hasLocalGroup(e)){var a=this.getLocalGroupProfile(e),s=a.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return o=s.lastSequence,r="got lastSequence:".concat(o," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),Pe.log("".concat(n," ").concat(r)),i.setNetworkType(this.getNetworkType()).setMessage("".concat(r)).end(),Promise.resolve(o);if(a.nextMessageSeq>1)return o=a.nextMessageSeq-1,r="got lastSequence:".concat(o," from local group profile[nextMessageSeq]. groupID:").concat(e),Pe.log("".concat(n," ").concat(r)),i.setNetworkType(this.getNetworkType()).setMessage("".concat(r)).end(),Promise.resolve(o)}var c="GROUP".concat(e),u=this.getModule(nn).getLocalConversation(c);if(u&&u.lastMessage.lastSequence&&!1===u.lastMessage.onlineOnlyFlag)return o=u.lastMessage.lastSequence,r="got lastSequence:".concat(o," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),Pe.log("".concat(n," ").concat(r)),i.setNetworkType(this.getNetworkType()).setMessage("".concat(r)).end(),Promise.resolve(o);var l={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(l).then((function(a){var s=a.data.successGroupList;return Lt(s)?Pe.log("".concat(n," successGroupList is empty. groupID:").concat(e)):(o=s[0].nextMessageSeq-1,r="got lastSequence:".concat(o," from getGroupProfileAdvance. groupID:").concat(e),Pe.log("".concat(n," ").concat(r))),i.setNetworkType(t.getNetworkType()).setMessage("".concat(r)).end(),o})).catch((function(o){return t.probeNetwork().then((function(t){var n=y(t,2),r=n[0],a=n[1];i.setError(o,r,a).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),Pe.warn("".concat(n," failed. error:"),o),da(o)}))}},{key:"isMessageFromOrToAVChatroom",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==A.CONV_GROUP}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!Lt(e)){Pe.log("".concat(this._className,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(c({},e,{isHistoryMessage:1}))})),this.onAVChatRoomMessage(t)}}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:"getGroupSimplifiedInfo",value:function(e){var t=this,n=new ro(ur),i={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(i).then((function(i){var o=i.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(o[0].type)).end(),o[0]})).catch((function(i){t.probeNetwork().then((function(t){var o=y(t,2),r=o[0],a=o[1];n.setError(i,r,a).setMessage("groupID:".concat(e)).end()}))}))}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"onGroupAttributesUpdated",value:function(e){this._groupAttributesHandler&&this._groupAttributesHandler.onGroupAttributesUpdated(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler&&this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),i}(bn),Va=function(){function e(t){n(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return r(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&vt(this.memberCustomField,e.memberCustomField),at(this,e,["memberCustomField"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){Je(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){Je(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&vt(this.memberCustomField,e)}}]),e}(),za=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="GroupMemberModule",o.groupMemberListMap=new Map,o.getInnerEmitterInstance().on(ma,o._onProfileUpdated,m(o)),o}return r(i,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,i=function(e){var i=n[e];t.groupMemberListMap.forEach((function(e){e.has(i.userID)&&e.get(i.userID).updateMember({nick:i.nick,avatar:i.avatar})}))},o=0;o<n.length;o++)i(o)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,i=e.offset,o=void 0===i?0:i,r=e.count,a=void 0===r?15:r,s="".concat(this._className,".getGroupMemberList"),c=new ro(gr);Pe.log("".concat(s," groupID:").concat(n," offset:").concat(o," count:").concat(a));var u=0,l={groupID:n,limit:a>100?100:a};bt({groupID:n})?l.next="".concat(o):(l.offset=o,u=o+1);var d=[];return this.request({protocolName:Si,requestData:l}).then((function(e){var i=e.data,o=i.members,r=i.memberNum,a=i.next,s=void 0===a?void 0:a;if(Je(s)||(u=Lt(s)?0:s),!Xe(o)||0===o.length)return u=0,Promise.resolve([]);var c=t.getModule(Zt);return c.hasLocalGroup(n)&&(c.getLocalGroupProfile(n).memberNum=r),d=t._updateLocalGroupMemberMap(n,o),t.getModule(Jt).getUserProfile({userIDList:o.map((function(e){return e.userID})),tagList:[Ge.NICK,Ge.AVATAR]})})).then((function(e){var i=e.data;if(!Xe(i)||0===i.length)return la({memberList:[],offset:u});var o=i.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,o),c.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," offset:").concat(u," count:").concat(a)).end(),Pe.log("".concat(s," ok.")),ta({memberList:d,offset:u})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];c.setError(e,i,o).end()})),Pe.error("".concat(s," failed. error:"),e),da(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,n="".concat(this._className,".getGroupMemberProfile"),i=new ro(mr);i.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),Pe.log("".concat(n," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var o=e.groupID,r=e.userIDList;return this._getGroupMemberProfileAdvance(c({},e,{userIDList:r})).then((function(e){var n=e.data.members;return Xe(n)&&0!==n.length?(t._updateLocalGroupMemberMap(o,n),t.getModule(Jt).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[Ge.NICK,Ge.AVATAR]})):la([])})).then((function(e){var n=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));t._updateLocalGroupMemberMap(o,n);var a=r.filter((function(e){return t.hasLocalGroupMember(o,e)})).map((function(e){return t.getLocalGroupMemberInfo(o,e)}));return i.setNetworkType(t.getNetworkType()).end(),ta({memberList:a})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._className,".addGroupMember"),i=e.groupID,o=this.getModule(Zt).getLocalGroupProfile(i),r=o.type,a=new ro(vr);if(a.setMessage("groupID:".concat(i," groupType:").concat(r)),yt(r)){var s=new sa({code:$i.CANNOT_ADD_MEMBER_IN_AVCHATROOM,message:Hi.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return a.setCode($i.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setError(Hi.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setNetworkType(this.getNetworkType()).end(),da(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Pe.log("".concat(n," groupID:").concat(i)),this.request({protocolName:ki,requestData:e}).then((function(i){var r=i.data.members;Pe.log("".concat(n," ok"));var s=r.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),c=r.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),u=r.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),l=r.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(s,", ")+"failureUserIDList:".concat(c,", ")+"existedUserIDList:".concat(u,", ")+"overLimitUserIDList:".concat(l);return a.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===s.length?ta({successUserIDList:s,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l}):(o.memberCount+=s.length,t._updateConversationGroupProfile(o),ta({successUserIDList:s,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l,group:o}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];a.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._className,".deleteGroupMember"),i=e.groupID,o=e.userIDList,r=new ro(_r),a="groupID:".concat(i," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o));r.setMessage(a),Pe.log("".concat(n," groupID:").concat(i," userIDList:"),o);var s=this.getModule(Zt).getLocalGroupProfile(i);return yt(s.type)?da(new sa({code:$i.CANNOT_KICK_MEMBER_IN_AVCHATROOM,message:Hi.CANNOT_KICK_MEMBER_IN_AVCHATROOM})):this.request({protocolName:Ti,requestData:e}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),s.memberCount-=1,t._updateConversationGroupProfile(s),t.deleteLocalGroupMembers(i,o),ta({group:s,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"_updateConversationGroupProfile",value:function(e){this.getModule(nn).updateConversationGroupProfile([e])}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,i=e.userID,o=e.muteTime,r="".concat(this._className,".setGroupMemberMuteTime");if(i===this.getMyUserID())return da(new sa({code:$i.CANNOT_MUTE_SELF,message:Hi.CANNOT_MUTE_SELF}));Pe.log("".concat(r," groupID:").concat(n," userID:").concat(i));var a=new ro(yr);return a.setMessage("groupID:".concat(n," userID:").concat(i," muteTime:").concat(o)),this.modifyGroupMemberInfo({groupID:n,userID:i,muteTime:o}).then((function(e){a.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(r," ok"));var i=t.getModule(Zt);return ta({group:i.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];a.setError(e,i,o).end()})),Pe.error("".concat(r," failed. error:"),e),da(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberRole"),i=e.groupID,o=e.userID,r=e.role,a=this.getModule(Zt).getLocalGroupProfile(i);if(a.selfInfo.role!==A.GRP_MBR_ROLE_OWNER)return da({code:$i.NOT_OWNER,message:Hi.NOT_OWNER});if([A.GRP_WORK,A.GRP_AVCHATROOM].includes(a.type))return da({code:$i.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM,message:Hi.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var s=[A.GRP_MBR_ROLE_ADMIN,A.GRP_MBR_ROLE_MEMBER];if(bt({groupID:i})&&s.push(A.GRP_MBR_ROLE_CUSTOM),s.indexOf(r)<0)return da({code:$i.INVALID_MEMBER_ROLE,message:Hi.INVALID_MEMBER_ROLE});if(o===this.getMyUserID())return da({code:$i.CANNOT_SET_SELF_MEMBER_ROLE,message:Hi.CANNOT_SET_SELF_MEMBER_ROLE});var c=new ro(Mr);return c.setMessage("groupID:".concat(i," userID:").concat(o," role:").concat(r)),Pe.log("".concat(n," groupID:").concat(i," userID:").concat(o)),this.modifyGroupMemberInfo({groupID:i,userID:o,role:r}).then((function(e){return c.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok")),ta({group:a,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];c.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberNameCard"),i=e.groupID,o=e.userID,r=void 0===o?this.getMyUserID():o,a=e.nameCard;Pe.log("".concat(n," groupID:").concat(i," userID:").concat(r));var s=new ro(br);return s.setMessage("groupID:".concat(i," userID:").concat(r," nameCard:").concat(a)),this.modifyGroupMemberInfo({groupID:i,userID:r,nameCard:a}).then((function(e){Pe.log("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var o=t.getModule(Zt).getLocalGroupProfile(i);return r===t.getMyUserID()&&o&&o.setSelfNameCard(a),ta({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];s.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberCustomField"),i=e.groupID,o=e.userID,r=void 0===o?this.getMyUserID():o,a=e.memberCustomField;Pe.log("".concat(n," groupID:").concat(i," userID:").concat(r));var s=new ro(Sr);return s.setMessage("groupID:".concat(i," userID:").concat(r," memberCustomField:").concat(JSON.stringify(a))),this.modifyGroupMemberInfo({groupID:i,userID:r,memberCustomField:a}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),Pe.log("".concat(n," ok"));var o=t.getModule(Zt).getLocalGroupProfile(i);return ta({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];s.setError(e,i,o).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,n=e.groupID,i=e.userID;return this.request({protocolName:Ii,requestData:e}).then((function(){if(t.hasLocalGroupMember(n,i)){var o=t.getLocalGroupMemberInfo(n,i);return Je(e.muteTime)||o.updateMuteUntil(e.muteTime),Je(e.role)||o.updateRole(e.role),Je(e.nameCard)||o.updateNameCard(e.nameCard),Je(e.memberCustomField)||o.updateMemberCustomField(e.memberCustomField),o}return t.getGroupMemberProfile({groupID:n,userIDList:[i]}).then((function(e){return y(e.data.memberList,1)[0]}))}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:Ci,requestData:c({},e,{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return Xe(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new Va(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),i}(bn),Ka=function(){function e(t){n(this,e),this._userModule=t,this._className="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return r(e,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),n.length>100&&(Pe.warn("".concat(this._className,".getUserProfile 获取用户资料人数不能超过100人")),n.length=100);for(var i,o=[],r=[],a=0,s=n.length;a<s;a++)i=n[a],this._userModule.isMyFriend(i)&&this._containsAccount(i)?r.push(this._getProfileFromMap(i)):o.push(i);if(0===o.length)return la(r);e.toAccount=o;var c=e.bFromGetMyProfile||!1,u=[];e.toAccount.forEach((function(e){u.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=u;var l=new ro(wr);return l.setMessage(n.length>5?"userIDList.length:".concat(n.length):"userIDList:".concat(n)),this._userModule.request({protocolName:En,requestData:e}).then((function(e){l.setNetworkType(t._userModule.getNetworkType()).end(),Pe.info("".concat(t._className,".getUserProfile ok"));var n=t._handleResponse(e).concat(r);return ta(c?n[0]:n)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];l.setError(e,i,o).end()})),Pe.error("".concat(t._className,".getUserProfile failed. error:"),e),da(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount();if(Pe.log("".concat(this._className,".getMyProfile myAccount:").concat(e)),this._fillMap(),this._containsAccount(e)){var t=this._getProfileFromMap(e);return Pe.debug("".concat(this._className,".getMyProfile from cache, myProfile:")+JSON.stringify(t)),la(t)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){for(var t,n,i=rt.now(),o=e.data.userProfileItem,r=[],a=0,s=o.length;a<s;a++)"@TLS#NOT_FOUND"!==o[a].to&&""!==o[a].to&&(t=o[a].to,n=this._updateMap(t,this._getLatestProfileFromResponse(t,o[a].profileItem)),r.push(n));return Pe.log("".concat(this._className,"._handleResponse cost ").concat(rt.now()-i," ms")),r}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={};if(n.userID=e,n.profileCustomField=[],!Lt(t))for(var i=0,o=t.length;i<o;i++)if(t[i].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[i].tag,value:t[i].value});else switch(t[i].tag){case Ge.NICK:n.nick=t[i].value;break;case Ge.GENDER:n.gender=t[i].value;break;case Ge.BIRTHDAY:n.birthday=t[i].value;break;case Ge.LOCATION:n.location=t[i].value;break;case Ge.SELFSIGNATURE:n.selfSignature=t[i].value;break;case Ge.ALLOWTYPE:n.allowType=t[i].value;break;case Ge.LANGUAGE:n.language=t[i].value;break;case Ge.AVATAR:n.avatar=t[i].value;break;case Ge.MESSAGESETTINGS:n.messageSettings=t[i].value;break;case Ge.ADMINFORBIDTYPE:n.adminForbidType=t[i].value;break;case Ge.LEVEL:n.level=t[i].value;break;case Ge.ROLE:n.role=t[i].value;break;default:Pe.warn("".concat(this._className,"._handleResponse unknown tag:"),t[i].tag,t[i].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._className,".updateMyProfile"),i=new ro(Ar);i.setMessage(JSON.stringify(e));var o=(new ka).validate(e);if(!o.valid)return i.setCode($i.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("".concat(n," info:").concat(o.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Pe.error("".concat(n," info:").concat(o.tips,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),da({code:$i.UPDATE_PROFILE_INVALID_PARAM,message:Hi.UPDATE_PROFILE_INVALID_PARAM});var r=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&("profileCustomField"===a?e.profileCustomField.forEach((function(e){r.push({tag:e.key,value:e.value})})):r.push({tag:Ge[a.toUpperCase()],value:e[a]}));return 0===r.length?(i.setCode($i.UPDATE_PROFILE_NO_KEY).setMoreMessage(Hi.UPDATE_PROFILE_NO_KEY).setNetworkType(this._userModule.getNetworkType()).end(),Pe.error("".concat(n," info:").concat(Hi.UPDATE_PROFILE_NO_KEY,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),da({code:$i.UPDATE_PROFILE_NO_KEY,message:Hi.UPDATE_PROFILE_NO_KEY})):this._userModule.request({protocolName:On,requestData:{fromAccount:this._userModule.getMyAccount(),profileItem:r}}).then((function(o){i.setNetworkType(t._userModule.getNetworkType()).end(),Pe.info("".concat(n," ok"));var r=t._updateMap(t._userModule.getMyAccount(),e);return t._userModule.emitOuterEvent(w.PROFILE_UPDATED,[r]),la(r)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!Lt(t)){var n,i,o=t.length;Pe.debug("".concat(this._className,".onProfileModified count:").concat(o," dataList:"),e.dataList);for(var r=[],a=0;a<o;a++)n=t[a].userID,i=this._updateMap(n,this._getLatestProfileFromResponse(n,t[a].profileList)),r.push(i);r.length>0&&(this._userModule.emitInnerEvent(ma,r),this._userModule.emitOuterEvent(w.PROFILE_UPDATED,r))}}},{key:"_fillMap",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,i=e.length;n<i;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Pe.log("".concat(this._className,"._fillMap from cache, map.size:").concat(this.accountProfileMap.size))}}},{key:"_updateMap",value:function(e,t){var n,i=Date.now();return this._containsAccount(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&vt(n.profileCustomField,t.profileCustomField),at(n,t,["profileCustomField"]),n.lastUpdatedTime=i):(n=new ka(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=i,this.accountProfileMap.set(e,n))),this._flushMap(e===this._userModule.getMyAccount()),n}},{key:"_flushMap",value:function(e){var t=b(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Pe.debug("".concat(this._className,"._flushMap length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_containsAccount",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return Lt(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,i,o=[],r=0,a=e.length;r<a;r++)n=(t=e[r]).userID,this._userModule.isMyFriend(n)||(this._containsAccount(n)?(i=this._getProfileFromMap(n),at(i,t)>0&&o.push(n)):o.push(t.userID));0!==o.length&&(Pe.info("".concat(this._className,".onConversationsProfileUpdated toAccountList:").concat(o)),this.getUserProfile({userIDList:o}))}},{key:"getNickAndAvatarByUserID",value:function(e){if(this._containsAccount(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:"",avatar:""}}},{key:"reset",value:function(){this._flushMap(!0),this.accountProfileMap.clear()}}]),e}(),Wa=function e(t){n(this,e),Lt||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)},Ya=function(){function e(t){n(this,e),this._userModule=t,this._className="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return r(e,[{key:"getLocalBlacklist",value:function(){return b(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._className,".getBlacklist"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},i=new ro(Er);return this._userModule.request({protocolName:xn,requestData:n}).then((function(n){var o=n.data,r=o.blackListItem,a=o.currentSequence,s=Lt(r)?0:r.length;i.setNetworkType(e._userModule.getNetworkType()).setMessage("blackList count:".concat(s)).end(),Pe.info("".concat(t," ok")),e.currentSequence=a,e._handleResponse(r,!0),e._userModule.emitOuterEvent(w.BLACKLIST_UPDATED,b(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=y(e,2),o=t[0],r=t[1];i.setError(n,o,r).end()})),Pe.error("".concat(t," failed. error:"),n),da(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n="".concat(this._className,".addBlacklist"),i=new ro(Or);if(!Xe(e.userIDList))return i.setCode($i.ADD_BLACKLIST_INVALID_PARAM).setMessage(Hi.ADD_BLACKLIST_INVALID_PARAM).setNetworkType(this._userModule.getNetworkType()).end(),Pe.error("".concat(n," options.userIDList 必需是数组")),da({code:$i.ADD_BLACKLIST_INVALID_PARAM,message:Hi.ADD_BLACKLIST_INVALID_PARAM});var o=this._userModule.getMyAccount();return 1===e.userIDList.length&&e.userIDList[0]===o?(i.setCode($i.CANNOT_ADD_SELF_TO_BLACKLIST).setMessage(Hi.CANNOT_ADD_SELF_TO_BLACKLIST).setNetworkType(this._userModule.getNetworkType()).end(),Pe.error("".concat(n," 不能把自己拉黑")),da({code:$i.CANNOT_ADD_SELF_TO_BLACKLIST,message:Hi.CANNOT_ADD_SELF_TO_BLACKLIST})):(e.userIDList.includes(o)&&(e.userIDList=e.userIDList.filter((function(e){return e!==o})),Pe.warn("".concat(n," 不能把自己拉黑,已过滤"))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Dn,requestData:e}).then((function(o){return i.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Pe.info("".concat(n," ok")),t._handleResponse(o.resultItem,!0),ta(b(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)})))}},{key:"_handleResponse",value:function(e,t){if(!Lt(e))for(var n,i,o,r=0,a=e.length;r<a;r++)i=e[r].to,o=e[r].resultCode,(Je(o)||0===o)&&(t?((n=this._blacklistMap.has(i)?this._blacklistMap.get(i):new Wa).userID=i,!Lt(e[r].addBlackTimeStamp)&&(n.timeStamp=e[r].addBlackTimeStamp),this._blacklistMap.set(i,n)):this._blacklistMap.has(i)&&(n=this._blacklistMap.get(i),this._blacklistMap.delete(i)));Pe.log("".concat(this._className,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._className,".deleteBlacklist"),i=new ro(xr);return Xe(e.userIDList)?(e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Nn,requestData:e}).then((function(o){return i.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Pe.info("".concat(n," ok")),t._handleResponse(o.data.resultItem,!1),ta(b(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),Pe.error("".concat(n," failed. error:"),e),da(e)}))):(i.setCode($i.DEL_BLACKLIST_INVALID_PARAM).setMessage(Hi.DEL_BLACKLIST_INVALID_PARAM).setNetworkType(this._userModule.getNetworkType()).end(),Pe.error("".concat(n," options.userIDList 必需是数组")),da({code:$i.DEL_BLACKLIST_INVALID_PARAM,message:Hi.DEL_BLACKLIST_INVALID_PARAM}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],i=0,o=e.length;i<o;i++)t=e[i],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Pe.log("".concat(this._className,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(w.BLACKLIST_UPDATED,b(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],i=0,o=e.length;i<o;i++)t=e[i],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new Wa({userID:t})),n.push(t));n.length>0&&(Pe.log("".concat(this._className,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(w.BLACKLIST_UPDATED,b(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),Xa=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="UserModule",o._profileHandler=new Ka(m(o)),o._blacklistHandler=new Ya(m(o)),o.getInnerEmitterInstance().on(ha,o.onContextUpdated,m(o)),o}return r(i,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t=e.dataList;if(!Lt(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,b(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var i=[];t.forEach((function(e){e.blackListAddAccount&&i.push.apply(i,b(e.blackListAddAccount))})),i.length>0&&this._blacklistHandler.onAccountAdded(i)}}},{key:"onConversationsProfileUpdated",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.getModule(rn)}},{key:"isMyFriend",value:function(e){var t=this.getModule(en);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getLocalBlacklist",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return la(e)}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset()}}]),i}(bn),Ja=function(){function e(t,i){n(this,e),this._moduleManager=t,this._isLoggedIn=!1,this._SDKAppID=i.SDKAppID,this._userID=i.userID||"",this._userSig=i.userSig||"",this._version="2.18.0",this._a2Key="",this._tinyID="",this._contentType="json",this._unlimitedAVChatRoom=i.unlimitedAVChatRoom,this._scene=i.scene||"",this._oversea=i.oversea,this._instanceID=i.instanceID,this._statusInstanceID=0,this._isDevMode=i.devMode,this._proxyServer=i.proxyServer}return r(e,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isSingaporeSite",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7}},{key:"isKoreaSite",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7}},{key:"isGermanySite",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7}},{key:"isIndiaSite",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserID",value:function(e){this._userID=e}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getScene",value:function(){return this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,i=!1,o=[];ie&&(o=Object.keys(re)),oe&&(o=ne?Object.keys(uni):Object.keys(window));for(var r=0,a=o.length;r<a;r++)if(o[r].toLowerCase().includes("uikit")){e=!0;break}if(o=null,ie&&Ze(getApp)){var s=getApp().globalData;Ye(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._moduleManager.getModule(rn).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var c=null;if(X&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),J&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),Xe(c)&&c.length>0){for(var u=0,l=c.length;u<l;u++)if(c[u].toLowerCase().includes("tui")){i=!0;break}c=null}return e||t||n||i}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._statusInstanceID=0}}]),e}(),Qa=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="SignModule",o._helloInterval=120,o._lastLoginTs=0,o._lastWsHelloTs=0,va.mixin(m(o)),o}return r(i,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"login",value:function(e){if(this.isLoggedIn()){var t="您已经登录账号".concat(e.userID,"!如需切换账号登录,请先调用 logout 接口登出,再调用 login 接口登录。");return Pe.warn(t),la({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return Pe.warn("您正在尝试登录账号".concat(e.userID,"!请勿重复登录。")),da({code:$i.REPEAT_LOGIN,message:Hi.REPEAT_LOGIN});Pe.log("".concat(this._className,".login userID:").concat(e.userID));var n=this._checkLoginInfo(e);if(0!==n.code)return da(n);var i=this.getModule(on),o=e.userID,r=e.userSig;return i.setUserID(o),i.setUserSig(r),this.getModule(fn).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(on),n=t.getScene(),i=new ro(co);return i.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),ne?"tuikit"===n?i.setUIPlatform(4):i.setUIPlatform(3):ie?"tuikit"===n?i.setUIPlatform(12):i.setUIPlatform(11):oe&&("tuikit"===n?i.setUIPlatform(14):i.setUIPlatform(13)),this._lastLoginTs=Date.now(),this.request({protocolName:Mn}).then((function(o){e._lastLoginTs=0;var r=Date.now(),a=null,s=o.data,c=s.a2Key,u=s.tinyID,l=s.helloInterval,d=s.instanceID,f=s.timeStamp;Pe.log("".concat(e._className,".login ok. scene:").concat(n," helloInterval:").concat(l," instanceID:").concat(d," timeStamp:").concat(f));var p=1e3*f,h=r-i.getStartTs(),g=p+parseInt(h/2)-r,m=i.getStartTs()+g;if(i.start(m),function(e,t){Ee=t;var n=new Date;n.setTime(e),Pe.info("baseTime from server: ".concat(n," offset: ").concat(Ee))}(p,g),!u)throw a=new sa({code:$i.NO_TINYID,message:Hi.NO_TINYID}),i.setError(a,!0,e.getNetworkType()).end(),a;if(!c)throw a=new sa({code:$i.NO_A2KEY,message:Hi.NO_A2KEY}),i.setError(a,!0,e.getNetworkType()).end(),a;return i.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(l," instanceID:").concat(d," offset:").concat(g)).end(),t.setA2Key(c),t.setTinyID(u),t.setStatusInstanceID(d),e.getModule(fn).updateProtocolConfig(),e.emitInnerEvent(ha),e._helloInterval=l,e.triggerReady(),e._fetchCloudControlConfig(),o})).catch((function(t){return e.probeNetwork().then((function(e){var n=y(e,2),o=n[0],r=n[1];i.setError(t,o,r).end(!0)})),e._moduleManager.setNotReadyReason($i.LOGIN_FAILED),Pe.error("".concat(e._className,".login failed. error:"),t),e._lastLoginTs=0,e._moduleManager.onLoginFailed(),da(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return da({code:$i.USER_NOT_LOGGED_IN,message:Hi.USER_NOT_LOGGED_IN});var n=new ro(uo);return n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0),Pe.info("".concat(this._className,".logout type:").concat(t)),0===t&&this._moduleManager.setNotReadyReason($i.LOGGED_OUT),this.request({protocolName:Sn,requestData:{type:t}}).then((function(){return e.resetReady(),la({})})).catch((function(t){return Pe.error("".concat(e._className,"._logout error:"),t),e.resetReady(),la({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(gn).fetchConfig()}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:Cn}).catch((function(t){Pe.warn("".concat(e._className,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0,n="";return Lt(this.getModule(on).getSDKAppID())?(t=$i.NO_SDKAPPID,n=Hi.NO_SDKAPPID):Lt(e.userID)?(t=$i.NO_IDENTIFIER,n=Hi.NO_IDENTIFIER):Lt(e.userSig)&&(t=$i.NO_USERSIG,n=Hi.NO_USERSIG),{code:t,message:n}}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new ro(lo).setNetworkType(this.getNetworkType()).setMessage("type:".concat(A.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Pe.warn("".concat(this._className,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(w.KICKED_OUT,{type:A.KICKED_OUT_MULT_ACCOUNT}),t._moduleManager.setNotReadyReason($i.KICKED_OUT_MULT_ACCOUNT),t._moduleManager.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new ro(lo).setNetworkType(this.getNetworkType()).setMessage("type:".concat(A.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Pe.warn("".concat(this._className,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(w.KICKED_OUT,{type:A.KICKED_OUT_MULT_DEVICE}),t._moduleManager.setNotReadyReason($i.KICKED_OUT_MULT_DEVICE),t._moduleManager.reset()}))}},{key:"onUserSigExpired",value:function(){new ro(lo).setNetworkType(this.getNetworkType()).setMessage(A.KICKED_OUT_USERSIG_EXPIRED).end(!0),Pe.warn("".concat(this._className,".onUserSigExpired: userSig 签名过期被踢下线")),0!==this.getModule(on).getStatusInstanceID()&&(this.emitOuterEvent(w.KICKED_OUT,{type:A.KICKED_OUT_USERSIG_EXPIRED}),this._moduleManager.setNotReadyReason($i.KICKED_OUT_USERSIG_EXPIRED),this._moduleManager.reset())}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0}}]),i}(bn);function Za(){return null}var es=function(){function e(t){n(this,e),this._moduleManager=t,this._className="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return r(e,[{key:"_errorTolerantHandle",value:function(){ie||!Je(window)&&!Je(window.localStorage)||(this.getItem=Za,this.setItem=Za,this.removeItem=Za,this.clear=Za)}},{key:"onCheckTimer",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:"_doFlush",value:function(){try{var e,t=I(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2),i=n[0],o=n[1];this._setStorageSync(this._getKey(i),o)}}catch(s){t.e(s)}finally{t.f()}this._storageQueue.clear()}catch(c){Pe.warn("".concat(this._className,"._doFlush error:"),c)}}},{key:"_getPrefix",value:function(){var e=this._moduleManager.getModule(on);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(r){return Pe.warn("".concat(this._className,".getItem error:"),r),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var o=i?this._getKey(e):e;this._setStorageSync(o,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{ie?re.clearStorageSync():localStorage&&localStorage.clear()}catch(e){Pe.warn("".concat(this._className,".clear error:"),e)}}},{key:"removeItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(r){Pe.warn("".concat(this._className,".removeItem error:"),r)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var i={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(i,"leftSize",{enumerable:!0,get:function(){return i.limitSize-i.size}}),ie&&(i.limitSize=1024*re.getStorageInfoSync().limitSize),e)i.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(ie){var o=re.getStorageInfoSync(),r=o.keys;r.forEach((function(e){i.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(localStorage)for(var a in localStorage)localStorage.hasOwnProperty(a)&&(i.size+=localStorage.getItem(a).length+a.length);return this._convertUnit(i)}catch(u){Pe.warn("".concat(this._className," error:"),u)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var i in t.unit=n,e)"number"==typeof e[i]&&("kb"===n.toLowerCase()?t[i]=Math.round(e[i]/1024):"mb"===n.toLowerCase()?t[i]=Math.round(e[i]/1024/1024):t[i]=e[i]);return t}},{key:"_setStorageSync",value:function(e,t){ie?ee?my.setStorageSync({key:e,data:t}):re.setStorageSync(e,t):localStorage&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return ie?ee?my.getStorageSync({key:e}).data:re.getStorageSync(e):localStorage?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){ie?ee?my.removeStorageSync({key:e}):re.removeStorageSync(e):localStorage&&localStorage.removeItem(e)}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._doFlush()}}]),e}(),ts=function(){function e(t){n(this,e),this._className="SSOLogBody",this._report=[]}return r(e,[{key:"pushIn",value:function(e){Pe.debug("".concat(this._className,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;Xe(e)&&0!==e.length&&(Pe.debug("".concat(this._className,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,b(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),ns=function(e){var t=e.getModule(on);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Oe()}},is=function(e){u(i,e);var t=_(i);function i(e){var o;n(this,i),(o=t.call(this,e))._className="EventStatModule",o.TAG="im-ssolog-event",o._reportBody=new ts,o.MIN_THRESHOLD=20,o.MAX_THRESHOLD=100,o.WAITING_TIME=6e4,o.REPORT_LEVEL=[4,5,6],o.REPORT_SDKAPPID_BLACKLIST=[],o.REPORT_TINYID_WHITELIST=[],o._lastReportTime=Date.now();var r=o.getInnerEmitterInstance();return r.on(ha,o._onLoginSuccess,m(o)),r.on(ga,o._onCloudConfigUpdated,m(o)),o}return r(i,[{key:"reportAtOnce",value:function(){Pe.debug("".concat(this._className,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(rn),n=t.getItem(this.TAG,!1);!Lt(n)&&Ze(n.forEach)&&(Pe.log("".concat(this._className,"._onLoginSuccess get ssolog in storage, count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),i=this.getCloudConfig("evt_rpt_sdkappid_bl"),o=this.getCloudConfig("evt_rpt_tinyid_wl");Je(e)||(this.MIN_THRESHOLD=Number(e)),Je(t)||(this.WAITING_TIME=Number(t)),Je(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),Je(i)||(this.REPORT_SDKAPPID_BLACKLIST=i.split(",").map((function(e){return Number(e)}))),Je(o)||(this.REPORT_TINYID_WHITELIST=o.split(","))}},{key:"pushIn",value:function(e){e instanceof ro&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=this.getModule(on),i=n.getSDKAppID(),o=n.getTinyID();return Dt(this.REPORT_SDKAPPID_BLACKLIST,i)&&!Nt(this.REPORT_TINYID_WHITELIST,o)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e=this;if(!this._reportBody.isEmpty()){var t=this._reportBody.getLogsInMemory(),n=this._filterLogs(t);if(0!==n.length){var i={header:ns(this),event:n};this.request({protocolName:Oi,requestData:c({},i)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){Pe.warn("".concat(e._className,".report failed. networkType:").concat(e.getNetworkType()," error:"),n),e._reportBody.backfill(t),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:"_flushAtOnce",value:function(){var e=this.getModule(rn),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory();if(Lt(t))Pe.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var i=n.concat(t);i.length>this.MAX_THRESHOLD&&(i=i.slice(0,this.MAX_THRESHOLD)),Pe.log("".concat(this._className,"._flushAtOnce count:").concat(i.length)),e.setItem(this.TAG,i,!0,!1)}}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),i}(bn),os="none",rs="online",as=function(){function e(t){n(this,e),this._moduleManager=t,this._networkType="",this._className="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return r(e,[{key:"start",value:function(){var e=this;ie?(re.getNetworkType({success:function(t){e._networkType=t.networkType,t.networkType===os?Pe.warn("".concat(e._className,".start no network, please check!")):Pe.info("".concat(e._className,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),re.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=rs,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:rs})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:os})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,i=!1;t?(Pe.info("".concat(this._className,"._onNetworkStatusChange previousNetworkType:").concat(this._networkType," currentNetworkType:").concat(n)),this._networkType!==n&&(i=!0,this._moduleManager.getModule(pn).reConnect(!0))):this._networkType!==n&&(i=!0,Pe.warn("".concat(this._className,"._onNetworkStatusChange no network, please check!"))),i&&(new ro(_o).setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(n)).end(),this._networkType=n)}},{key:"probe",value:function(){var e=this;return new Promise((function(t,n){if(ie)re.getNetworkType({success:function(n){e._networkType=n.networkType,n.networkType===os?(Pe.warn("".concat(e._className,".probe no network, please check!")),t([!1,n.networkType])):(Pe.info("".concat(e._className,".probe networkType:").concat(n.networkType)),t([!0,n.networkType]))}});else if(window&&window.fetch)fetch("".concat(ht(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())).then((function(e){e.ok?t([!0,rs]):t([!1,os])})).catch((function(e){t([!1,os])}));else{var i=new XMLHttpRequest,o=setTimeout((function(){Pe.warn("".concat(e._className,".probe fetch timeout. Probably no network, please check!")),i.abort(),e._networkType=os,t([!1,os])}),e.MAX_WAIT_TIME);i.onreadystatechange=function(){4===i.readyState&&(clearTimeout(o),200===i.status||304===i.status||514===i.status?(this._networkType=rs,t([!0,rs])):(Pe.warn("".concat(this.className,".probe fetch status:").concat(i.status,". Probably no network, please check!")),this._networkType=os,t([!1,os])))},i.open("GET","".concat(ht(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())),i.send()}}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),ie?null!==this._mpNetworkStatusCallback&&(re.offNetworkStatusChange&&(te||Q?re.offNetworkStatusChange(this._mpNetworkStatusCallback):re.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}(),ss=x((function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function r(e,t,i,r,a){if("function"!=typeof i)throw new TypeError("The listener must be a function");var s=new o(i,r||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,i,o=[];if(0===this._eventsCount)return o;for(i in e=this._events)t.call(e,i)&&o.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,r=i.length,a=new Array(r);o<r;o++)a[o]=i[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},s.prototype.emit=function(e,t,i,o,r,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,i),!0;case 4:return l.fn.call(l.context,t,i,o),!0;case 5:return l.fn.call(l.context,t,i,o,r),!0;case 6:return l.fn.call(l.context,t,i,o,r,a),!0}for(u=1,c=new Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var f,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,i);break;case 4:l[u].fn.call(l[u].context,t,i,o);break;default:if(!c)for(f=1,c=new Array(d-1);f<d;f++)c[f-1]=arguments[f];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return r(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return r(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,i,o){var r=n?n+e:e;if(!this._events[r])return this;if(!t)return a(this,r),this;var s=this._events[r];if(s.fn)s.fn!==t||o&&!s.once||i&&s.context!==i||a(this,r);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||i&&s[c].context!==i)&&u.push(s[c]);u.length?this._events[r]=1===u.length?u[0]:u:a(this,r)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),cs=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="BigDataChannelModule",o.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},o._bdh_download_server="grouptalk.c2c.qq.com",o._BDHBizID=10001,o._authKey="",o._expireTime=0,o.getInnerEmitterInstance().on(ha,o._getAuthKey,m(o)),o}return r(i,[{key:"_getAuthKey",value:function(){var e=this;this.request({protocolName:In}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:"_isFromOlderVersion",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:"parseElements",value:function(e,t){if(!Xe(e)||!t)return[];for(var n=[],i=null,o=0;o<e.length;o++)i=e[o],this._needParse(i)?n.push(this._parseElement(i,t)):n.push(e[o]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==A.MSG_AUDIO&&e.type!==A.MSG_FILE&&e.type!==A.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case A.MSG_AUDIO:return this._parseAudioElement(e,t);case A.MSG_FILE:return this._parseFileElement(e,t);case A.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:"_parseAudioElement",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:"_parseFileElement",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:"_parseVideoElement",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:"_genAudioUrl",value:function(e,t){if(""===this._authKey)return Pe.warn("".concat(this._className,"._genAudioUrl no authKey!")),"";var n=this.getModule(on).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0")}},{key:"_genFileUrl",value:function(e,t,n){if(""===this._authKey)return Pe.warn("".concat(this._className,"._genFileUrl no authKey!")),"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var i=this.getModule(on).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(i,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(n))}},{key:"_genVideoUrl",value:function(e,t){if(""===this._authKey)return Pe.warn("".concat(this._className,"._genVideoUrl no authKey!")),"";var n=this.getModule(on).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0")}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._authKey="",this.expireTime=0}}]),i}(bn),us=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="UploadModule",o.TIMUploadPlugin=null,o.timUploadPlugin=null,o.COSSDK=null,o._cosUploadMethod=null,o.expiredTimeLimit=600,o.appid=0,o.bucketName="",o.ciUrl="",o.directory="",o.downloadUrl="",o.uploadUrl="",o.region="ap-shanghai",o.cos=null,o.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},o.uploadFileType="",o.duration=900,o.tryCount=0,o.getInnerEmitterInstance().on(ha,o._init,m(o)),o}return r(i,[{key:"_init",value:function(){var e="".concat(this._className,"._init"),t=this.getModule(ln);if(this.TIMUploadPlugin=t.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var n=ie?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=t.getPlugin(n),this.COSSDK?(this._getAuthorizationKey(),Pe.warn("".concat(e," v2.9.2起推荐使用 tim-upload-plugin 代替 ").concat(n,",上传更快更安全。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))):Pe.warn("".concat(e," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))}}},{key:"_getAuthorizationKey",value:function(){var e=this,t=new ro(yo),n=Math.ceil(Date.now()/1e3);this.request({protocolName:wi,requestData:{duration:this.expiredTimeLimit}}).then((function(i){var o=i.data;Pe.log("".concat(e._className,"._getAuthorizationKey ok. data:"),o);var r=o.expiredTime-n;t.setMessage("requestId:".concat(o.requestId," requestTime:").concat(n," expiredTime:").concat(o.expiredTime," diff:").concat(r,"s")).setNetworkType(e.getNetworkType()).end(),!ie&&o.region&&(e.region=o.region),e.appid=o.appid,e.bucketName=o.bucketName,e.ciUrl=o.ciUrl,e.directory=o.directory,e.downloadUrl=o.downloadUrl,e.uploadUrl=o.uploadUrl,e.cosOptions={secretId:o.secretId,secretKey:o.secretKey,sessionToken:o.sessionToken,expiredTime:o.expiredTime},Pe.log("".concat(e._className,"._getAuthorizationKey ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(n){e.probeNetwork().then((function(e){var i=y(e,2),o=i[0],r=i[1];t.setError(n,o,r).end()})),Pe.warn("".concat(e._className,"._getAuthorizationKey failed. error:"),n)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._getCosPreSigUrl"),i=Math.ceil(Date.now()/1e3),o=new ro(bo);return this.request({protocolName:Ai,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var r=e.data||{},a=r.expiredTime-i;return Pe.log("".concat(n," ok. data:"),r),o.setMessage("requestId:".concat(r.requestId," expiredTime:").concat(r.expiredTime," diff:").concat(a,"s")).setNetworkType(t.getNetworkType()).end(),r})).catch((function(i){return-1===i.code&&(i.code=$i.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=y(e,2),n=t[0],r=t[1];o.setError(i,n,r).end()})),Pe.warn("".concat(n," failed. error:"),i),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,da({code:$i.COS_GET_SIG_FAIL,message:Hi.COS_GET_SIG_FAIL}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=ie?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=ie?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(_n);switch(e.type){case A.MSG_IMAGE:return t.addTotalCount(Ji),this._uploadImage(e);case A.MSG_FILE:return t.addTotalCount(Ji),this._uploadFile(e);case A.MSG_AUDIO:return t.addTotalCount(Ji),this._uploadAudio(e);case A.MSG_VIDEO:return t.addTotalCount(Ji),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this.getModule(Xt),n=e.getElements()[0],i=t.getMessageOption(e.clientSequence);return this.doUploadImage({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ze(i.onProgress))try{i.onProgress(e)}catch(t){return da({code:$i.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Hi.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var i=t.location,o=t.fileType,r=t.fileSize,a=t.width,s=t.height,u=gt(i);n.updateImageFormat(o);var l=At({originUrl:u,originWidth:a,originHeight:s,min:198}),d=At({originUrl:u,originWidth:a,originHeight:s,min:720});return n.updateImageInfoArray([{size:r,url:u,width:a,height:s},c({},d),c({},l)]),e}))}},{key:"_uploadFile",value:function(e){var t=this.getModule(Xt),n=e.getElements()[0],i=t.getMessageOption(e.clientSequence);return this.doUploadFile({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ze(i.onProgress))try{i.onProgress(e)}catch(t){return da({code:$i.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Hi.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var i=t.location,o=gt(i);return n.updateFileUrl(o),e}))}},{key:"_uploadAudio",value:function(e){var t=this.getModule(Xt),n=e.getElements()[0],i=t.getMessageOption(e.clientSequence);return this.doUploadAudio({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ze(i.onProgress))try{i.onProgress(e)}catch(t){return da({code:$i.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Hi.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var i=t.location,o=gt(i);return n.updateAudioUrl(o),e}))}},{key:"_uploadVideo",value:function(e){var t=this.getModule(Xt),n=e.getElements()[0],i=t.getMessageOption(e.clientSequence);return this.doUploadVideo({file:i.payload.file,to:i.to,onProgress:function(e){if(n.updatePercent(e),Ze(i.onProgress))try{i.onProgress(e)}catch(t){return da({code:$i.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Hi.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var i=t.location,o=t.snapshotInfo,r=gt(i);return n.updateVideoUrl(r),Lt(o)||n.updateSnapshotInfo(o),e}))}},{key:"doUploadImage",value:function(e){if(!e.file)return da({code:$i.MESSAGE_IMAGE_SELECT_FILE_FIRST,message:Hi.MESSAGE_IMAGE_SELECT_FILE_FIRST});var t=this._checkImageType(e.file);if(!0!==t)return t;var n=this._checkImageSize(e.file);if(!0!==n)return n;var i=null;return this._setUploadFileType(ba),this.uploadByCOS(e).then((function(e){return i=e,Tt("https://".concat(e.location))})).then((function(e){return i.width=e.width,i.height=e.height,Promise.resolve(i)}))}},{key:"_checkImageType",value:function(e){var t="";return t=ie?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),_a.indexOf(t.toLowerCase())>=0||da({code:$i.MESSAGE_IMAGE_TYPES_LIMIT,message:Hi.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=ie?e.size:e.files[0].size)?da({code:$i.MESSAGE_FILE_IS_EMPTY,message:"".concat(Hi.MESSAGE_FILE_IS_EMPTY)}):t<20971520||da({code:$i.MESSAGE_IMAGE_SIZE_LIMIT,message:"".concat(Hi.MESSAGE_IMAGE_SIZE_LIMIT)})}},{key:"doUploadFile",value:function(e){var t=null;return e.file?e.file.files[0].size>104857600?da(t={code:$i.MESSAGE_FILE_SIZE_LIMIT,message:Hi.MESSAGE_FILE_SIZE_LIMIT}):0===e.file.files[0].size?(t={code:$i.MESSAGE_FILE_IS_EMPTY,message:"".concat(Hi.MESSAGE_FILE_IS_EMPTY)},da(t)):(this._setUploadFileType(Ca),this.uploadByCOS(e)):da(t={code:$i.MESSAGE_FILE_SELECT_FILE_FIRST,message:Hi.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>104857600?da({code:$i.MESSAGE_VIDEO_SIZE_LIMIT,message:"".concat(Hi.MESSAGE_VIDEO_SIZE_LIMIT)}):0===e.file.videoFile.size?da({code:$i.MESSAGE_FILE_IS_EMPTY,message:"".concat(Hi.MESSAGE_FILE_IS_EMPTY)}):-1===ya.indexOf(e.file.videoFile.type)?da({code:$i.MESSAGE_VIDEO_TYPES_LIMIT,message:"".concat(Hi.MESSAGE_VIDEO_TYPES_LIMIT)}):(this._setUploadFileType(Ma),ie?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):oe?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,i){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){i(new sa({code:$i.MESSAGE_VIDEO_UPLOAD_FAIL,message:Hi.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>20971520?da(new sa({code:$i.MESSAGE_AUDIO_SIZE_LIMIT,message:"".concat(Hi.MESSAGE_AUDIO_SIZE_LIMIT)})):0===e.file.size?da(new sa({code:$i.MESSAGE_FILE_IS_EMPTY,message:"".concat(Hi.MESSAGE_FILE_IS_EMPTY)})):(this._setUploadFileType(Sa),this.uploadByCOS(e)):da(new sa({code:$i.MESSAGE_AUDIO_UPLOAD_FAIL,message:Hi.MESSAGE_AUDIO_UPLOAD_FAIL}))}},{key:"uploadByCOS",value:function(e){var t=this,n="".concat(this._className,".uploadByCOS");if(!Ze(this._cosUploadMethod))return Pe.warn("".concat(n," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin")),da({code:$i.COS_UNDETECTED,message:Hi.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var i=new ro(So),o=Date.now(),r=this._getFile(e);return new Promise((function(a,s){var c=ie?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),u=t;t._cosUploadMethod(c,(function(e,c){var l=Object.create(null);if(c){if(e||Xe(c.files)&&c.files[0].error){var d=new sa({code:$i.MESSAGE_FILE_UPLOAD_FAIL,message:Hi.MESSAGE_FILE_UPLOAD_FAIL});return i.setError(d,!0,t.getNetworkType()).end(),Pe.log("".concat(n," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(Pe.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}l.fileName=r.name,l.fileSize=r.size,l.fileType=r.type.slice(r.type.indexOf("/")+1).toLowerCase(),l.location=ie?c.Location:c.files[0].data.Location;var f=Date.now()-o,p=u._formatFileSize(r.size),h=u._formatSpeed(1e3*r.size/f),g="size:".concat(p," time:").concat(f,"ms speed:").concat(h);Pe.log("".concat(n," success. name:").concat(r.name," ").concat(g)),a(l);var m=t.getModule(_n);return m.addCost(Ji,f),m.addFileSize(Ji,r.size),void i.setNetworkType(t.getNetworkType()).setMessage(g).end()}var v=new sa({code:$i.MESSAGE_FILE_UPLOAD_FAIL,message:Hi.MESSAGE_FILE_UPLOAD_FAIL});i.setError(v,!0,u.getNetworkType()).end(),Pe.warn("".concat(n," failed. error:"),e),403===e.statusCode&&(Pe.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(v)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._uploadWithPreSigUrl"),i=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(o,r){var a=new ro(So),s=e.requestSnapshotUrl,c=void 0===s?void 0:s,u=g(e,["requestSnapshotUrl"]),l=Date.now();t._cosUploadMethod(u,(function(e,s){var u=Object.create(null);if(e||403===s.statusCode){var d=new sa({code:$i.MESSAGE_FILE_UPLOAD_FAIL,message:Hi.MESSAGE_FILE_UPLOAD_FAIL});return a.setError(d,!0,t.getNetworkType()).end(),Pe.log("".concat(n," failed, error:"),e),void r(d)}var f=s.data.location||"";0!==f.indexOf("https://")&&0!==f.indexOf("http://")||(f=f.split("//")[1]),u.fileName=i.name,u.fileSize=i.size,u.fileType=i.type.slice(i.type.indexOf("/")+1).toLowerCase(),u.location=f;var p=Date.now()-l,h=t._formatFileSize(i.size),g=t._formatSpeed(1e3*i.size/p),m="size:".concat(h,",time:").concat(p,"ms,speed:").concat(g," res:").concat(JSON.stringify(s.data));Pe.log("".concat(n," success name:").concat(i.name,",").concat(m)),a.setNetworkType(t.getNetworkType()).setMessage(m).end();var v=t.getModule(_n);if(v.addCost(Ji,p),v.addFileSize(Ji,i.size),!Lt(c))return t._getSnapshotInfoByUrl(c).then((function(e){u.snapshotInfo=e,o(u)}));o(u)}))}))}))}},{key:"_getFile",value:function(e){var t=null;return ie?t=te&&Xe(e.file.files)?e.file.files[0]:e.file:oe&&(t=e.file.files[0]),t}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?xt(e/1024,1)+"KB/s":xt(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=e.file.files[0].name,n=t.slice(t.lastIndexOf(".")),i=this._genFileName("".concat(ut(999999)).concat(n));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(i),Body:e.file.files[0]}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Pe.warn("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),i=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:i,onProgress:function(t){if(Pe.log(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Pe.warn("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",i="",o=0;if(ie){var r=this._getFile(e);n=this._genFileName(r.name),i=r.url,o=1}else{var a=e.file.files[0].name,s=a.slice(a.lastIndexOf("."));n=this._genFileName("".concat(ut(999999)).concat(s)),i=e.file.files[0],o=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:o,duration:this.duration}).then((function(o){var r=o.uploadUrl,a=o.downloadUrl,s=o.requestSnapshotUrl,c=void 0===s?void 0:s;return{url:r,fileType:t.uploadFileType,fileName:n,resources:i,downloadUrl:a,requestSnapshotUrl:c,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Pe.warn("onProgress callback error:",n),Pe.error(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(It(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e){var t=this,n=new ro(Mo);return this.request({protocolName:Ei,requestData:{platform:this.getPlatform(),coverName:this._genFileName(ut(99999)),requestSnapshotUrl:e}}).then((function(e){var t=(e.data||{}).snapshotUrl;return n.setMessage("snapshotUrl:".concat(t)).end(),Lt(t)?{}:Tt(t).then((function(e){return{snapshotUrl:t,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Pe.warn("".concat(t._className,"._getSnapshotInfoByUrl failed. error:"),e),n.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset"))}}]),i}(bn),ls=function(){function e(t){n(this,e),this._className="MergerMessageHandler",this._messageModule=t}return r(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this;Pe.debug("".concat(this._className,".uploadMergerMessage message:"),e,"messageBytes:".concat(t));var i=e.payload.messageList,o=i.length,r=new ro(Po);return this._messageModule.request({protocolName:Pi,requestData:{messageList:i}}).then((function(e){Pe.debug("".concat(n._className,".uploadMergerMessage ok. response:"),e.data);var i=e.data,a=i.pbDownloadKey,s=i.downloadKey,c={pbDownloadKey:a,downloadKey:s,messageNumber:o};return r.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(o,"-").concat(t,"-").concat(s)).end(),c})).catch((function(e){throw Pe.warn("".concat(n._className,".uploadMergerMessage failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this;Pe.debug("".concat(this._className,".downloadMergerMessage message:"),e);var n=e.payload.downloadKey,i=new ro(Uo);return i.setMessage("downloadKey:".concat(n)),this._messageModule.request({protocolName:Ui,requestData:{downloadKey:n}}).then((function(n){if(Pe.debug("".concat(t._className,".downloadMergerMessage ok. response:"),n.data),Ze(e.clearElement)){var o=e.payload,r=(o.downloadKey,o.pbDownloadKey,o.messageList,g(o,["downloadKey","pbDownloadKey","messageList"]));e.clearElement(),e.setElement({type:e.type,content:c({messageList:n.data.messageList},r)})}else{var a=[];n.data.messageList.forEach((function(e){if(!Lt(e)){var t=new Jr(e);a.push(t)}})),e.payload.messageList=a,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return i.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Pe.warn("".concat(t._className,".downloadMergerMessage failed. key:").concat(n," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=y(t,2),o=n[0],r=n[1];i.setError(e,o,r).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===A.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var i=null;t&&(t.offlinePushInfo&&(i=t.offlinePushInfo),!0===t.onlineUserOnly&&(i?i.disablePush=!0:i={disablePush:!0}));var o="";Ke(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var r=n.pbDownloadKey,a=n.downloadKey,s=n.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,f=this._messageModule.getModule(Qt);return{protocolName:wn,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:r,downloadKey:a,title:u,abstractList:l,compatibleText:d,messageNumber:s}}],cloudCustomData:o,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:f&&f.isOnlineMessage(e,t)?0:void 0,offlinePushInfo:i?{pushFlag:!0===i.disablePush?1:0,title:i.title||"",desc:i.description||"",ext:i.extension||"",apnsInfo:{badgeMode:!0===i.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:i.androidOPPOChannelID||""}}:void 0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var i=null;t&&t.offlinePushInfo&&(i=t.offlinePushInfo);var o="";Ke(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var r=n.pbDownloadKey,a=n.downloadKey,s=n.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,f=this._messageModule.getModule(Zt);return{protocolName:An,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:r,downloadKey:a,title:u,abstractList:l,compatibleText:d,messageNumber:s}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:o,onlineOnlyFlag:f&&f.isOnlineMessage(e,t)?1:0,offlinePushInfo:i?{pushFlag:!0===i.disablePush?1:0,title:i.title||"",desc:i.description||"",ext:i.extension||"",apnsInfo:{badgeMode:!0===i.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:i.androidOPPOChannelID||""}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||f.isMessageFromOrToAVChatroom(e.to)?0:1}}}}]),e}(),ds={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},fs=[$i.MESSAGE_ONPROGRESS_FUNCTION_ERROR,$i.MESSAGE_IMAGE_SELECT_FILE_FIRST,$i.MESSAGE_IMAGE_TYPES_LIMIT,$i.MESSAGE_FILE_IS_EMPTY,$i.MESSAGE_IMAGE_SIZE_LIMIT,$i.MESSAGE_FILE_SELECT_FILE_FIRST,$i.MESSAGE_FILE_SIZE_LIMIT,$i.MESSAGE_VIDEO_SIZE_LIMIT,$i.MESSAGE_VIDEO_TYPES_LIMIT,$i.MESSAGE_AUDIO_UPLOAD_FAIL,$i.MESSAGE_AUDIO_SIZE_LIMIT,$i.COS_UNDETECTED],ps=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="MessageModule",o._messageOptionsMap=new Map,o._mergerMessageHandler=new ls(m(o)),o}return r(i,[{key:"createTextMessage",value:function(e){var t=e.to,n=e.payload.atUserList,i=void 0===n?[]:n;if(bt({groupID:t})&&i.includes(A.MSG_AT_ALL))return da({code:$i.MESSAGE_AT_TYPE_INVALID,message:Hi.MESSAGE_AT_TYPE_INVALID});var o=this.getMyUserID();e.currentUser=o,e.senderTinyID=this.getMyTinyID();var r=new ea(e),a="string"==typeof e.payload?e.payload:e.payload.text,s=new Fr({text:a}),c=this._getNickAndAvatarByUserID(o);return r.setElement(s),r.setNickAndAvatar(c),r.setNameCard(this._getNameCardByGroupID(r)),r}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ea(e);if(ie){var i=e.payload.file;if(Ve(i))return void Pe.warn("小程序环境下调用 createImageMessage 接口时,payload.file 不支持传入 File 对象");var o=i.tempFilePaths[0],r={url:o,name:o.slice(o.lastIndexOf("/")+1),size:i.tempFiles&&i.tempFiles[0].size||1,type:o.slice(o.lastIndexOf(".")+1).toLowerCase()};e.payload.file=r}else if(oe)if(Ve(e.payload.file)){var a=e.payload.file;e.payload.file={files:[a]}}else if(Ye(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var c=new Br({imageFormat:Ue.UNKNOWN,uuid:this._generateUUID(),file:e.payload.file}),u=this._getNickAndAvatarByUserID(t);return n.setElement(c),n.setNickAndAvatar(u),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:"createAudioMessage",value:function(e){if(ie){var t=e.payload.file;if(ie){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=n}var i=this.getMyUserID();e.currentUser=i,e.senderTinyID=this.getMyTinyID();var o=new ea(e),r=new jr({second:Math.floor(t.duration/1e3),size:t.fileSize,url:t.tempFilePath,uuid:this._generateUUID()}),a=this._getNickAndAvatarByUserID(i);return o.setElement(r),o.setNickAndAvatar(a),o.setNameCard(this._getNameCardByGroupID(o)),this._messageOptionsMap.set(o.clientSequence,e),o}Pe.warn("createAudioMessage 目前只支持小程序环境下发语音消息")}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="https://web.sdk.qcloud.com/im/assets/images/transparent.png",e.payload.file.thumbSize=1668;var n={};if(ie){if(ee)return void Pe.warn("createVideoMessage 不支持在支付宝小程序环境下使用");if(Ve(e.payload.file))return void Pe.warn("小程序环境下调用 createVideoMessage 接口时,payload.file 不支持传入 File 对象");var i=e.payload.file;n.url=i.tempFilePath,n.name=i.tempFilePath.slice(i.tempFilePath.lastIndexOf("/")+1),n.size=i.size,n.second=i.duration,n.type=i.tempFilePath.slice(i.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(oe){if(Ve(e.payload.file)){var o=e.payload.file;e.payload.file.files=[o]}else if(Ye(e.payload.file)&&"undefined"!=typeof uni){var r=e.payload.file.tempFile;e.payload.file.files=[r]}var a=e.payload.file;n.url=window.URL.createObjectURL(a.files[0]),n.name=a.files[0].name,n.size=a.files[0].size,n.second=a.files[0].duration||0,n.type=a.files[0].type.split("/")[1]}e.payload.file.videoFile=n;var s=new ea(e),c=new Yr({videoFormat:n.type,videoSecond:xt(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(),thumbUUID:this._generateUUID(),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),u=this._getNickAndAvatarByUserID(t);return s.setElement(c),s.setNickAndAvatar(u),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ea(e),i=new Wr({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),o=this._getNickAndAvatarByUserID(t);return n.setElement(i),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ea(e),i=new qr(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(i),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),i=new ea(e),o=new Qr(e.payload);return i.setElement(o),i.setNickAndAvatar(n),i.setNameCard(this._getNameCardByGroupID(i)),i.setRelayFlag(!0),i}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,i=e.priority,o=e.payload,r=e.needReadReceipt,a=this.getMyUserID(),s=this._getNickAndAvatarByUserID(a);if(o.type===A.MSG_GRP_TIP)return da(new sa({code:$i.MESSAGE_FORWARD_TYPE_INVALID,message:Hi.MESSAGE_FORWARD_TYPE_INVALID}));var c={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:i,isPlaceMessage:0,status:Ft.UNSEND,currentUser:a,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||o.cloudCustomData||"",needReadReceipt:r},u=new ea(c);return u.setElement(o.getElements()[0]),u.setNickAndAvatar(s),u.setNameCard(this._getNameCardByGroupID(o)),u.setRelayFlag(!0),u}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(!ie||te){if(oe||te)if(Ve(e.payload.file)){var t=e.payload.file;e.payload.file={files:[t]}}else if(Ye(e.payload.file)&&"undefined"!=typeof uni){var n=e.payload.file,i=n.tempFiles,o=n.files,r=null;Xe(i)?r=i[0]:Xe(o)&&(r=o[0]),e.payload.file={files:[r]}}var a=this.getMyUserID();e.currentUser=a,e.senderTinyID=this.getMyTinyID();var s=new ea(e),c=new Kr({uuid:this._generateUUID(),file:e.payload.file}),u=this._getNickAndAvatarByUserID(a);return s.setElement(c),s.setNickAndAvatar(u),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}Pe.warn("小程序目前不支持选择文件, createFileMessage 接口不可用!")}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new ea(e),i=new Xr(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(i),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"_onCannotFindModule",value:function(){return da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"sendMessageInstance",value:function(e,t){var n,i=this,o=null;switch(e.conversationType){case A.CONV_C2C:if(!(o=this.getModule(Qt)))return this._onCannotFindModule();break;case A.CONV_GROUP:if(!(o=this.getModule(Zt)))return this._onCannotFindModule();if(bt({groupID:e.to})&&!Je(t)&&!Je(t.messageControlInfo))return da({code:$i.MESSAGE_CONTROL_INFO_FAIL,message:Hi.MESSAGE_CONTROL_INFO_FAIL});break;default:return da({code:$i.MESSAGE_SEND_INVALID_CONVERSATION_TYPE,message:Hi.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var r=this.getModule(un),a=this.getModule(Zt);return r.upload(e).then((function(){return i._getSendMessageSpecifiedKey(e)===Xi&&i.getModule(_n).addSuccessCount(Ji),a.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return da({code:$i.MESSAGE_FILE_URL_IS_EMPTY,message:Hi.MESSAGE_FILE_URL_IS_EMPTY});i._addSendMessageTotalCount(e),n=Date.now();var r=function(e){var t="utf-8";oe&&document&&(t=document.charset.toLowerCase());var n,i,o=0;if(i=e.length,"utf-8"===t||"utf8"===t)for(var r=0;r<i;r++)(n=e.codePointAt(r))<=127?o+=1:n<=2047?o+=2:n<=65535?o+=3:(o+=4,r++);else if("utf-16"===t||"utf16"===t)for(var a=0;a<i;a++)(n=e.codePointAt(a))<=65535?o+=2:(o+=4,a++);else o=e.replace(/[^\x00-\xff]/g,"aa").length;return o}(JSON.stringify(e));return e.type===A.MSG_MERGER&&r>7e3?i._mergerMessageHandler.uploadMergerMessage(e,r).then((function(n){var o=i._mergerMessageHandler.createMergerMessagePack(e,t,n);return i.request(o)})):(i.getModule(nn).setMessageRandom(e),e.conversationType===A.CONV_C2C||e.conversationType===A.CONV_GROUP?o.sendMessage(e,t):void 0)})).then((function(r){var a=r.data,s=a.time,c=a.sequence,u=a.readReceiptCode;ze(u)&&0!==u&&(new ro(ko).setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(c," readReceiptCode:").concat(u)).end(),Pe.warn("".concat(i._className,".sendMessageInstance readReceiptCode:").concat(u," message:").concat(aa[u]))),i._addSendMessageSuccessCount(e,n),i._messageOptionsMap.delete(e.clientSequence);var l=i.getModule(nn);e.status=Ft.SUCCESS,e.time=s;var d=!1;if(e.conversationType===A.CONV_GROUP)e.sequence=c;else if(e.conversationType===A.CONV_C2C){var f=l.getLatestMessageSentByMe(e.conversationID);if(f){var p=f.nick,h=f.avatar;p===e.nick&&h===e.avatar||(d=!0)}}if(l.appendToMessageList(e),d&&l.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),o.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{var g=e;Ye(t)&&Ye(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,g=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0)),l.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:e.conversationType,subType:e.conversationSubType,lastMessage:g}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||Et(e.payload.imageInfoArray),ta({message:e})}))})).catch((function(t){return i._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Ft.FAIL,this.getModule(nn).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new ro(Co);return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var i=y(e,2),o=i[0],r=i[1];n.setError(t,o,r).end()})),Pe.error("".concat(this._className,"._onSendMessageFailed error:"),t),da(new sa({code:t&&t.code?t.code:$i.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:Hi.MESSAGE_SEND_FAIL,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([A.MSG_IMAGE,A.MSG_AUDIO,A.MSG_VIDEO,A.MSG_FILE].includes(e.type))return Xi;if(e.conversationType===A.CONV_C2C)return Ki;if(e.conversationType===A.CONV_GROUP){var t=this.getModule(Zt).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return yt(n)?Yi:Wi}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(_n).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),i=this._getSendMessageSpecifiedKey(e);if(i){var o=this.getModule(_n);o.addSuccessCount(i),o.addCost(i,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,i,o=t.code,r=void 0===o?-1:o,a=this.getModule(_n),s=this._getSendMessageSpecifiedKey(e);s===Xi&&(n=r,i=!1,fs.includes(n)&&(i=!0),i)?a.addFailedCountOfUserSide(Ji):function(e){var t=!1;return Object.values(ds).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}(r)&&s&&a.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=Ft.UNSEND,e.random=ut(),e.clientTime=De(),e.generateMessageID(),this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===A.CONV_C2C){if(!(n=this.getModule(Qt)))return this._onCannotFindModule()}else if(e.conversationType===A.CONV_GROUP&&!(n=this.getModule(Zt)))return this._onCannotFindModule();var i=new ro(Oo);return i.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),n.revokeMessage(e).then((function(n){var o=n.data.recallRetList;if(!Lt(o)&&0!==o[0].retCode){var r=new sa({code:o[0].retCode,message:aa[o[0].retCode]||Hi.MESSAGE_REVOKE_FAIL,data:{message:e}});return i.setCode(r.code).setMoreMessage(r.message).end(),da(r)}return Pe.info("".concat(t._className,".revokeMessage ok. ID:").concat(e.ID)),e.isRevoked=!0,i.end(),t.getModule(nn).onMessageRevoked([e]),ta({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=y(e,2),o=t[0],r=t[1];i.setError(n,o,r).end()}));var o=new sa({code:n&&n.code?n.code:$i.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:Hi.MESSAGE_REVOKE_FAIL,data:{message:e}});return Pe.warn("".concat(t._className,".revokeMessage failed. error:"),n),da(o)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,i=e[0],o=i.conversationID,r="",a=[],s=[];if(i.conversationType===A.CONV_C2C?(n=this.getModule(Qt),r=o.replace(A.CONV_C2C,""),e.forEach((function(e){e&&e.status===Ft.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||a.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}))):i.conversationType===A.CONV_GROUP&&(n=this.getModule(Zt),r=o.replace(A.CONV_GROUP,""),e.forEach((function(e){e&&e.status===Ft.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||a.push("".concat(e.sequence)),s.push(e))}))),!n)return this._onCannotFindModule();if(0===a.length)return this._onMessageDeleted(s);a.length>30&&(a=a.slice(0,30),s=s.slice(0,30));var c=new ro(xo);return c.setMessage("to:".concat(r," count:").concat(a.length)),n.deleteMessage({to:r,keyList:a}).then((function(e){return c.end(),Pe.info("".concat(t._className,".deleteMessage ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];c.setError(e,i,o).end()})),Pe.warn("".concat(t._className,".deleteMessage failed. error:"),e);var n=new sa({code:e&&e.code?e.code:$i.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:Hi.MESSAGE_DELETE_FAIL});return da(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(nn).onMessageDeleted(e),la({messageList:e})}},{key:"_generateUUID",value:function(){var e=this.getModule(on);return"".concat(e.getSDKAppID(),"-").concat(e.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=lt[Math.floor(Math.random()*dt)];return e}())}},{key:"getMessageOption",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(Jt).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===A.CONV_GROUP){var t=this.getModule(Zt);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._messageOptionsMap.clear()}}]),i}(bn),hs=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="PluginModule",o.plugins={},o}return r(i,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new ro(fo).setMessage("key=".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset"))}}]),i}(bn),gs=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="SyncUnreadMessageModule",o._cookie="",o._onlineSyncFlag=!1,o.getInnerEmitterInstance().on(ha,o._onLoginSuccess,m(o)),o}return r(i,[{key:"_onLoginSuccess",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var t=this,n=e.cookie,i=e.syncFlag,o=e.isOnlineSync;Pe.log("".concat(this._className,"._startSync cookie:").concat(n," syncFlag:").concat(i," isOnlineSync:").concat(o)),this.request({protocolName:Tn,requestData:{cookie:n,syncFlag:i,isOnlineSync:o}}).then((function(e){var n=e.data,i=n.cookie,o=n.syncFlag,r=n.eventArray,a=n.messageList,s=n.C2CRemainingUnreadList,c=n.C2CPairUnreadList;t._cookie=i,Lt(i)||(0===o||1===o?(r&&t.getModule(fn).onMessage({head:{},body:{eventArray:r,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!1}}),t.getModule(Qt).onNewC2CMessage({dataList:a,isInstantMessage:!1,C2CRemainingUnreadList:s,C2CPairUnreadList:c}),t._startSync({cookie:i,syncFlag:o,isOnlineSync:0})):2===o&&(r&&t.getModule(fn).onMessage({head:{},body:{eventArray:r,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!0}}),t.getModule(Qt).onNewC2CMessage({dataList:a,isInstantMessage:t._onlineSyncFlag,C2CRemainingUnreadList:s,C2CPairUnreadList:c})))})).catch((function(e){Pe.error("".concat(t._className,"._startSync failed. error:"),e)}))}},{key:"startOnlineSync",value:function(){Pe.log("".concat(this._className,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){Pe.log("".concat(this._className,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),i}(bn),ms={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"hasChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount"},ignoreKeyWord:["C2C","ID","USP"]};function vs(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=_s(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}var _s=function(e){for(var t=!1,n=!1,i=!1,o=0;o<e.length;o++){var r=e[o];t&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(e=e.slice(0,o)+"-"+e.slice(o),t=!1,i=n,n=!0,o++):n&&i&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(e=e.slice(0,o-1)+"-"+e.slice(o-1),i=n,n=!1,t=!0):(t=r.toLowerCase()===r&&r.toUpperCase()!==r,i=n,n=r.toUpperCase()===r&&r.toLowerCase()!==r)}return e};function ys(e,t){var n=0;return function e(t,i){if(++n>100)return n--,t;if(Xe(t)){var o=t.map((function(t){return We(t)?e(t,i):t}));return n--,o}if(We(t)){var r=(a=t,s=function(e,t){if(!it(t))return!1;if((o=t)!==vs(o))for(var n=0;n<ms.ignoreKeyWord.length&&!t.includes(ms.ignoreKeyWord[n]);n++);var o;return Je(i[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+vs(e).slice(1)}(t):i[t]},c=Object.create(null),Object.keys(a).forEach((function(e){var t=s(a[e],e);t&&(c[t]=a[e])})),c);return r=kt(r,(function(t,n){return Xe(t)||We(t)?e(t,i):t})),n--,r}var a,s,c}(e,t)}function bs(e,t){if(Xe(e))return e.map((function(e){return We(e)?bs(e,t):e}));if(We(e)){var n=(i=e,o=function(e,n){return Je(t[n])?vs(n):t[n]},r={},Object.keys(i).forEach((function(e){r[o(i[e],e)]=i[e]})),r);return kt(n,(function(e){return Xe(e)||We(e)?bs(e,t):e}))}var i,o,r}var Ms=String.fromCharCode,Ss=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Ms(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Ms(192|t>>>6,128|63&t):Ms(224|t>>>12,128|t>>>6&63,128|63&t)},Cs=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,Ss),n=0|t.length,i=new Uint8Array(n),o=0;o<n;o=o+1|0)i[o]=0|t.charCodeAt(o);return i},ks=function(e){for(var t=new Uint8Array(e),n="",i=0,o=t.length;i<o;){var r=t[i],a=0,s=0;if(r<=127?(a=0,s=255&r):r<=223?(a=1,s=31&r):r<=239?(a=2,s=15&r):r<=244&&(a=3,s=7&r),o-i-a>0)for(var c=0;c<a;)s=s<<6|63&(r=t[i+c+1]),c+=1;else s=65533,a=o-i;n+=String.fromCodePoint(s),i+=a+1}return n},Ts=function(){function e(t){n(this,e),this._handler=t;var i=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=ut(),this._handler.getIsWorkerEnabled()){var o=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) { if (event.data.cmd === "start") { const url = event.data.url; _socket = new WebSocket(url); _socket.binaryType = "arraybuffer"; _socket.onopen = function() { postMessage({ callback: "onOpen" }); }; _socket.onclose = function(e) { postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } }); }; _socket.onmessage = function(e) { postMessage({ callback: "onMessage", data: e.data }); }; _socket.onerror = function(e) { postMessage({ callback: "onError", e: { isTrusted: "true" } }); }; } else if (event.data.cmd === "sendMessage") { if (_socket !== null) { _socket.send(event.data.data); } } else if (event.data.cmd === "stop") { if (_socket !== null) { _socket.close(event.data.code); _socket = null; } }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(o);var r=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,i=t.e;"onOpen"===n?r._onOpen():"onClose"===n?r._onClose(i):"onError"===n?r._onError(i):"onMessage"===n&&r._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:i})}else ie?ee?(re.connectSocket({url:i,header:{"content-type":"application/json"}}),re.onSocketClose(this._onClose.bind(this)),re.onSocketOpen(this._onOpen.bind(this)),re.onSocketMessage(this._onMessage.bind(this)),re.onSocketError(this._onError.bind(this))):(this._socket=re.connectSocket({url:i,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):oe&&(this._socket=new WebSocket(i),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return r(e,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(){this._handler.onOpen({id:this._id})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?ks(e.data):e.data})}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),ee)return re.offSocketClose(),re.offSocketMessage(),re.offSocketOpen(),re.offSocketError(),void re.closeSocket();this._socket&&(ie?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):oe&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),Z?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?Cs(e.data).buffer:e.data});else{if(ee)return void re.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(ie?this._socket.send({data:this._canIUseBinaryFrame?Cs(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):oe&&this._socket.send(this._canIUseBinaryFrame?Cs(e.data).buffer:e.data))}}}]),e}(),Is=4e3,ws=4001,As="connected",Es="connecting",Os="disconnected",xs=function(){function e(t){n(this,e),this._channelModule=t,this._className="SocketHandler",this._promiseMap=new Map,this._readyState=Os,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=ut(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return r(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(on),t=G;this._channelModule.isOversea()&&(t=F),e.isSingaporeSite()?t=B:e.isKoreaSite()?t=q:e.isGermanySite()?t=j:e.isIndiaSite()&&(t=$),H.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){Je(H.HOST.CURRENT.BACKUP)||""===this._url?this._url=H.HOST.CURRENT.DEFAULT:this._url===H.HOST.CURRENT.DEFAULT?this._url=H.HOST.CURRENT.BACKUP:this._url===H.HOST.CURRENT.BACKUP&&(this._url=H.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(on).getProxyServer();Lt(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:"onCheckTimer",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var i=t.reject,o=t.timestamp;Date.now()-o>=15e3&&(Pe.log("".concat(e._className,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),i(new sa({code:$i.NETWORK_TIMEOUT,message:Hi.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:"onOpen",value:function(e){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;Pe.log("".concat(this._className,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new ro(go).setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=As,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}},{key:"onClose",value:function(e){var t=new ro(mo),n=e.id,i=e.e,o="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(i.code," reason:").concat(i.reason),r=0;0!==this._onOpenTs&&(r=Date.now()-this._onOpenTs),t.setMessage(r).setCostTime(r).setMoreMessage(o).setCode(i.code).end(),Pe.log("".concat(this._className,"._onClose ").concat(o," onlineTime:").concat(r)),n===this._socketID&&(this._readyState=Os,r<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,i="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new ro(vo).setMessage(n.errMsg||st(n)).setMoreMessage(i).setLevel("error").end(),Pe.warn("".concat(this._className,"._onError"),n,i),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(d){new ro(Go).setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),i=Ot(t.head),o=bs(t.body,this._getResponseKeyMap(i));if(Pe.debug("".concat(this._className,".onMessage ret:").concat(JSON.stringify(o)," requestID:").concat(n," has:").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var r=this._promiseMap.get(n),a=r.resolve,s=r.reject,c=r.timestamp;return this._promiseMap.delete(n),this._calcRTT(c),void(o.errorCode&&0!==o.errorCode?(this._channelModule.onErrorCodeNotZero(o),s(new sa({code:o.errorCode,message:o.errorInfo||""}))):a(ta(o)))}this._channelModule.onMessage({head:t.head,body:o})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(_n).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Ts(this),this._socketID=this._socket.getID(),this._readyState=Es,Pe.log("".concat(this._className,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new ro(ho).setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){var e=this._channelModule.getModule(on);e.isDevMode()&&(this._canIUseBinaryFrame=!1);var t=wt();(ee||X&&"windows"===t||te)&&(this._canIUseBinaryFrame=!1);var n=-1;"ios"===t?n=pe||-1:"android"===t&&(n=ge||-1);var i=this._channelModule.getPlatform(),o=e.getSDKAppID(),r=e.getInstanceID();return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?sdkappid=").concat(o,"&instanceid=").concat(r,"&random=").concat(this._getRandom(),"&platform=").concat(i,"&host=").concat(t,"&version=").concat(n):"".concat(this._url,"/info?sdkappid=").concat(o,"&instanceid=").concat(r,"&random=").concat(this._getRandom(),"&platform=").concat(i,"&host=").concat(t,"&version=").concat(n)}},{key:"_closeConnection",value:function(e){Pe.log("".concat(this._className,"._closeConnection")),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=Os)}},{key:"_resend",value:function(){var e=this;if(Pe.log("".concat(this._className,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var i=t.uplinkData,o=t.resolve,r=t.reject;e._promiseMap.set(n,{resolve:o,reject:r,timestamp:Date.now(),uplinkData:i}),e._execute(n,i)})),this._simpleRequestMap.size>0){var t,n=I(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var i=y(t.value,2),o=i[0],r=i[1];this._execute(o,r)}}catch(c){n.e(c)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=g(e,["keyMap"]),i=this._getRequestIDFromHead(e.head),o=JSON.stringify(n);return new Promise((function(e,r){t._promiseMap.set(i,{resolve:e,reject:r,timestamp:Date.now(),uplinkData:o}),Pe.debug("".concat(t._className,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(i," readyState:").concat(t._readyState)),t._readyState!==As?t._reConnect():(t._execute(i,o),t._channelModule.getModule(_n).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=g(e,["keyMap"]),n=this._getRequestIDFromHead(e.head),i=JSON.stringify(t);this._readyState!==As?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,i):Pe.log("".concat(this._className,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,i)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:ie?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Pe.log("".concat(this._className,"._onSendFail requestID:").concat(e))}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=ut()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return c({},ms.response,{},t.response)}},{key:"_reConnect",value:function(){this._readyState!==As&&this._readyState!==Es&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this;Pe.log("".concat(this._className,".forcedReconnect count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(ws),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(t){var n=y(t,2),i=n[0];n[1],i?(Pe.warn("".concat(e._className,".forcedReconnect disconnected from wsserver but network is ok, continue...")),e._closeConnection(ws),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===As}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){Pe.log("".concat(this._className,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&Ce}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){Pe.log("".concat(this._className,".close")),this._closeConnection(Is),this._promiseMap.clear(),this._startSequence=ut(),this._readyState=Os,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),Ds=function(e){u(i,e);var t=_(i);function i(e){var o;if(n(this,i),(o=t.call(this,e))._className="ChannelModule",o._socketHandler=new xs(m(o)),o._probing=!1,o._isAppShowing=!0,o._previousState=A.NET_STATE_CONNECTED,ie&&"function"==typeof re.onAppShow&&"function"==typeof re.onAppHide){var r=o._onAppHide.bind(m(o)),a=o._onAppShow.bind(m(o));"function"==typeof re.offAppHide&&re.offAppHide(r),"function"==typeof re.offAppShow&&re.offAppShow(a),re.onAppHide(r),re.onAppShow(a)}return o._timerForNotLoggedIn=-1,o._timerForNotLoggedIn=setInterval(o.onCheckTimer.bind(m(o)),1e3),o._fatalErrorFlag=!1,o}return r(i,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.getModule(fn).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(fn).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==A.NET_STATE_CONNECTED&&e.head.servcmd.includes(Oi)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=H.HOST.CURRENT.STAT;return new Promise((function(n,i){var o="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),r=JSON.stringify(e.body),a="application/x-www-form-urlencoded;charset=UTF-8";if(ie)re.request({url:o,data:r,method:"POST",timeout:3e3,header:{"content-type":a},success:function(){n()},fail:function(){i(new sa({code:$i.NETWORK_ERROR,message:Hi.NETWORK_ERROR}))}});else{var s=new XMLHttpRequest,c=setTimeout((function(){s.abort(),i(new sa({code:$i.NETWORK_TIMEOUT,message:Hi.NETWORK_TIMEOUT}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(c),200===s.status||304===s.status?n():i(new sa({code:$i.NETWORK_ERROR,message:Hi.NETWORK_ERROR})))},s.open("POST",o,!0),s.setRequestHeader("Content-type",a),s.send(r)}}))}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(A.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){ie&&Pe.error("".concat(this._className,".onError 从v2.11.2起,SDK 支持了 WebSocket,如您未添加相关受信域名,请先添加!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html"))}},{key:"getKeyMap",value:function(e){return this.getModule(fn).getKeyMap(e)}},{key:"_onAppHide",value:function(){this._isAppShowing=!1}},{key:"_onAppShow",value:function(){this._isAppShowing=!0}},{key:"onRequestTimeout",value:function(e){}},{key:"onReconnected",value:function(){Pe.log("".concat(this._className,".onReconnected")),this.getModule(fn).onReconnected(),this._emitNetStateChangeEvent(A.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Pe.log("".concat(this._className,".onReconnectFailed")),this._emitNetStateChangeEvent(A.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"reConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(Pe.log("".concat(this._className,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===A.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(A.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Pe.log("".concat(this._className,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(w.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(fn).getProtocolData({protocolName:xi});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Pe.warn("".concat(e._className,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new ro(Ur).setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule(sn).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(A.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=y(t,2),i=n[0],o=n[1];Pe.log("".concat(e._className,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(i," networkType:").concat(o)),i?e.reConnect():e._emitNetStateChangeEvent(A.NET_STATE_DISCONNECTED)}))}))}}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._previousState=A.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),i}(bn),Ns=function(){function t(e){n(this,t),this._className="ProtocolHandler",this._sessionModule=e,this._configMap=new Map,this._fillConfigMap()}return r(t,[{key:"_fillConfigMap",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),t=this._sessionModule.genCosSpecifiedHead(),n=this._sessionModule.genSSOReportHead();this._configMap.set(Mn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_OPEN_STATUS,".").concat(H.CMD.LOGIN)}),body:{state:"Online"},keyMap:{response:{InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(Sn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_OPEN_STATUS,".").concat(H.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(Cn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_OPEN_STATUS,".").concat(H.CMD.HELLO)}),body:{},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(kn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.STAT_SERVICE,".").concat(H.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(wi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_COS_SIGN,".").concat(H.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}}(t)),this._configMap.set(Ai,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.CUSTOM_UPLOAD,".").concat(H.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}}(t)),this._configMap.set(Ei,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.CUSTOM_UPLOAD,".").concat(H.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}}(t)),this._configMap.set(Bi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_CONFIG_MANAGER,".").concat(H.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(qi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_CONFIG_MANAGER,".").concat(H.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(Gi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_CONFIG_MANAGER,".").concat(H.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Fi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_CONFIG_MANAGER,".").concat(H.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(ji,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OVERLOAD_PUSH,".").concat(H.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(Tn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"groupID",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}}(e)),this._configMap.set(In,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(wn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e)),this._configMap.set(An,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(Rn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}}(e)),this._configMap.set(oi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(Gn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg"},response:{LastMsgTime:"lastMessageTime"}}}}(e)),this._configMap.set(si,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:""},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(Ln,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(Pn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(Un,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(ri,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(ai,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}}(e)),this._configMap.set(Bn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(mi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(ci,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequence:"MsgSeq"}}}}(e)),this._configMap.set(ui,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}}}(e)),this._configMap.set(li,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:"MsgSeq",count:"Num"},response:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}}}(e)),this._configMap.set(Fn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(jn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.RECENT_CONTACT,".").concat(H.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}}}(e)),this._configMap.set(qn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.RECENT_CONTACT,".").concat(H.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex"}}}}(e)),this._configMap.set($n,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.RECENT_CONTACT,".").concat(H.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0,clearHistoryMessage:1},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble"}}}}(e)),this._configMap.set(Hn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.RECENT_CONTACT,".").concat(H.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set(Vn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(En,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.PROFILE,".").concat(H.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(On,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.PROFILE,".").concat(H.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:Ge.NICK,value:""},{tag:Ge.GENDER,value:""},{tag:Ge.ALLOWTYPE,value:""},{tag:Ge.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(xn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.FRIEND,".").concat(H.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(Dn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.FRIEND,".").concat(H.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(Nn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.FRIEND,".").concat(H.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(zn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0}},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",MsgFlag:"messageRemindType",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence"}}}}(e)),this._configMap.set(Kn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",MsgFlag:"messageRemindType",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers",ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(Wn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"FaceUrl"},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}}(e)),this._configMap.set(Yn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Xn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,maxMemberNum:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0},keyMap:{request:{maxMemberNum:"MaxMemberCount",groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers",ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(Jn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}}(e)),this._configMap.set(Qn,function(e){return e.a2,e.tinyid,{head:c({},g(e,["a2","tinyid"]),{servcmd:"".concat(H.NAME.BIG_GROUP_NO_AUTH,".").concat(H.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}}}(e)),this._configMap.set(Zn,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(ei,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption"]}},keyMap:{response:{ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(ti,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(ni,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(ii,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(di,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"}}}}(e)),this._configMap.set(fi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(pi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.BIG_GROUP_LONG_POLLING,".").concat(H.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID"}}}}(e)),this._configMap.set(hi,function(e){return e.a2,e.tinyid,{head:c({},g(e,["a2","tinyid"]),{servcmd:"".concat(H.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(H.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID"}}}}(e)),this._configMap.set(gi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(vi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(_i,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(yi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}}}(e)),this._configMap.set(bi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(Mi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP_ATTR,".").concat(H.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(Si,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}}(e)),this._configMap.set(Ci,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}}(e)),this._configMap.set(ki,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}}}(e)),this._configMap.set(Ti,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(Ii,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.GROUP,".").concat(H.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}}(e)),this._configMap.set(Oi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_OPEN_STAT,".").concat(H.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}}}(n)),this._configMap.set(xi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.HEARTBEAT,".").concat(H.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(Di,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_OPEN_PUSH,".").concat(H.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage"}}}}(e)),this._configMap.set(Ni,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_OPEN_PUSH,".").concat(H.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}}(e)),this._configMap.set(Ri,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.OPEN_IM,".").concat(H.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(Li,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_OPEN_STATUS,".").concat(H.CMD.STATUS_FORCEOFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(Ui,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_LONG_MESSAGE,".").concat(H.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(Pi,function(e){return{head:c({},e,{servcmd:"".concat(H.NAME.IM_LONG_MESSAGE,".").concat(H.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e))}},{key:"has",value:function(e){return this._configMap.has(e)}},{key:"get",value:function(e){return this._configMap.get(e)}},{key:"update",value:function(){this._fillConfigMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Pe.warn("".concat(this._className,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,i=this.get(t),o=null;if(n){var r=this._simpleDeepCopy(i),a=this._updateService(n,r),s=a.body,c=Object.create(null);for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){if(c[u]=s[u],void 0===n[u])continue;c[u]=n[u]}a.body=c,o=this._getUplinkData(a)}else o=this._getUplinkData(i);return o}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=Ot(t.head),i=ys(t.body,this._getRequestKeyMap(n));return t.body=i,t}},{key:"_updateService",value:function(e,t){var n=Ot(t.head);if(t.head.servcmd.includes(H.NAME.GROUP)){var i=e.type,o=e.groupID,r=void 0===o?void 0:o,a=e.groupIDList,s=void 0===a?[]:a;Je(r)&&(r=s[0]||""),bt({type:i,groupID:r})&&(t.head.servcmd="".concat(H.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return c({},ms.request,{},t.request)}},{key:"_requestDataCleaner",value:function(t){var n=Array.isArray(t)?[]:Object.create(null);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&it(i)&&null!==t[i]&&void 0!==t[i]&&("object"!==e(t[i])?n[i]=t[i]:n[i]=this._requestDataCleaner.bind(this)(t[i]));return n}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),i={},o=0,r=n.length;o<r;o++)t=n[o],Xe(e[t])?i[t]=Array.from(e[t]):We(e[t])?i[t]=this._simpleDeepCopy(e[t]):i[t]=e[t];return i}}]),t}(),Rs=[Ri],Ls=function(){function e(t){n(this,e),this._sessionModule=t,this._className="DownlinkHandler",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._keys=b(this._eventHandlerMap.keys())}return r(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Qt);t&&(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync&&this._sessionModule.getModule(dn).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Zt);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(Zt);if(t){var n=e.event,i=e.dataList,o=e.isInstantMessage,r=void 0===o||o,a=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:i});break;case 5:i.forEach((function(e){Xe(e.elements.revokedInfos)?t.onGroupMessageRevoked({dataList:i}):Xe(e.elements.groupMessageReadNotice)?t.onGroupMessageReadNotice({dataList:i}):Xe(e.elements.readReceiptList)?t.onReadReceiptList({dataList:i}):t.onNewGroupSystemNotice({dataList:i,isInstantMessage:r,isSyncingEnded:a})}));break;case 12:this._sessionModule.getModule(nn).onNewGroupAtTips({dataList:i});break;default:Pe.log("".concat(this._className,"._groupTipsHandler unknown event:").concat(n," dataList:"),i)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(Xe(n)){var i=this._sessionModule.getModule(Qt);n.forEach((function(e){if(Ye(e))if(e.hasOwnProperty("kickoutMsgNotify")){var o=e.kickoutMsgNotify,r=o.kickType,a=o.newInstanceInfo,s=void 0===a?{}:a;1===r?t._sessionModule.onMultipleAccountKickedOut(s):2===r&&t._sessionModule.onMultipleDeviceKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?i&&i.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?i&&i.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?i&&i.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(nn).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(Jt).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(en);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(Jt).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(en);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(Xe(t)){var n=this._sessionModule.getModule(nn);n&&t.forEach((function(e){var t=e.pushType,i=e.recentContactTopItem,o=e.recentContactDeleteItem;1===t?n.onConversationDeleted(o.recentContactList):2===t?n.onConversationPinned(i.recentContactList):3===t&&n.onConversationUnpinned(i.recentContactList)}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(nn);n&&n.onPushedAllMessageRead(t)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var i=n.eventArray,o=n.isInstantMessage,r=n.isSyncingEnded,a=n.needSync;if(Xe(i))for(var s=null,c=null,u=0,l=0,d=i.length;l<d;l++){u=(s=i[l]).event;var f=Object.keys(s).find((function(e){return-1!==t._keys.indexOf(e)}));f?(c=14!==u?s[f]:{readAllC2CMessage:s[f],groupMessageReadInfoList:s.groupMessageReadNotice||[]},this._eventHandlerMap.get(f)({event:u,dataList:c,isInstantMessage:o,isSyncingEnded:r,needSync:a})):Pe.log("".concat(this._className,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,i=t.servcmd,o=!1;if(Je(i)||(o=i.includes(H.NAME.IM_CONFIG_MANAGER)||i.includes(H.NAME.OVERLOAD_PUSH)||i.includes(H.NAME.STAT_SERVICE)),!o)return!0;if(i.includes(H.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(gn).onPushedCloudControlConfig(n);else if(i.includes(H.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(yn).onPushedConfig(n);else if(i.includes(H.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(i.includes(H.CMD.KICK_OTHER)){var r=Date.now();this._sessionModule.reLoginOnKickOther();var a=new ro(po),s=this._sessionModule.getModule(Yt).getLastWsHelloTs(),c=r-s;a.setMessage("last wshello time:".concat(s," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),Ps=[{cmd:H.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:H.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:H.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:H.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:H.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:H.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:H.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1}],Us=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="SessionModule",o._platform=o.getPlatform(),o._protocolHandler=new Ns(m(o)),o._messageDispatcher=new Ls(m(o)),o._commandFrequencyLimitMap=new Map,o._commandRequestInfoMap=new Map,o._serverOverloadInfoMap=new Map,o._init(),o.getInnerEmitterInstance().on(ga,o._onCloudConfigUpdated,m(o)),o}return r(i,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(Ps)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");Je(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:"_updateCommandFrequencyLimitMap",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._protocolHandler.update()}},{key:"request",value:function(e){Pe.debug("".concat(this._className,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Pe.warn("".concat(this._className,".request unknown protocol:").concat(t)),da({code:$i.CANNOT_FIND_PROTOCOL,message:Hi.CANNOT_FIND_PROTOCOL});var i=this.getProtocolData(e),o=i.head.servcmd;if(this._isFrequencyOverLimit(o))return da({code:$i.OVER_FREQUENCY_LIMIT,message:Hi.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(o))return da({code:$i.OPEN_SERVICE_OVERLOAD_ERROR,message:Hi.OPEN_SERVICE_OVERLOAD_ERROR});Lt(n)||(i.head.tjgID=n);var r=this.getModule(pn);return Rs.includes(t)?r.simplySend(i):r.send(i)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(on);return{ver:"v4",platform:this._platform,websdkappid:U,websdkversion:P,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:51,tjgID:""}}},{key:"genCosSpecifiedHead",value:function(){var e=this.getModule(on);return{ver:"v4",platform:this._platform,websdkappid:U,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:51}}},{key:"genSSOReportHead",value:function(){var e=this.getModule(on);return{ver:"v4",platform:this._platform,websdkappid:U,websdkversion:P,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:51}}},{key:"getProtocolData",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:"onErrorCodeNotZero",value:function(e){var t=e.errorCode;if(t===$i.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,i=e.newInstanceInfo,o=void 0===i?{}:i;1===n?this.onMultipleAccountKickedOut(o):2===n&&this.onMultipleDeviceKickedOut(o)}t!==$i.MESSAGE_A2KEY_EXPIRED&&t!==$i.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(pn).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,i=void 0===n?0:n,o=t.sessionData;1===i&&this._sendACK(o),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Pe.log("".concat(this._className,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Pe.log("".concat(this._className,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e=this;this.isLoggedIn()&&this.request({protocolName:Mn}).then((function(t){var n=t.data.instanceID;e.getModule(on).setStatusInstanceID(n),Pe.log("".concat(e._className,"._reLogin ok. start to sync unread messages")),e.getModule(dn).startSyncOnReconnected(),e.getModule(vn).startPull(),e.getModule(Zt).updateLocalMainSequenceOnReconnected()}))}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule(Yt).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule(Yt).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule(Yt).onUserSigExpired()}},{key:"_sendACK",value:function(e){this.request({protocolName:Ri,requestData:{sessionData:e}})}},{key:"_isFrequencyOverLimit",value:function(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),i=n.count,o=n.interval,r=this._commandRequestInfoMap.get(t),a=r.startTime,s=r.requestCount;if(Date.now()-a>1e3*o)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;s+=1,this._commandRequestInfoMap.set(t,{startTime:a,requestCount:s});var c=!1;return s>i&&(c=!0),c}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,i=t.waitingTime,o=!1;return Date.now()-n<=1e3*i?o=!0:(this._serverOverloadInfoMap.delete(e),o=!1),o}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),Pe.warn("".concat(this._className,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._updateCommandFrequencyLimitMap(Ps),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),i}(bn),Gs=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="MessageLossDetectionModule",o._maybeLostSequencesMap=new Map,o}return r(i,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var i=this._maybeLostSequencesMap.get(e),o=0;o<n;o++)i.push(t+o);Pe.debug("".concat(this._className,".onMessageMaybeLost. maybeLostSequences:").concat(i))}},{key:"detectMessageLoss",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!Lt(n)&&!Lt(t)){var i=t.filter((function(e){return-1!==n.indexOf(e)}));if(Pe.debug("".concat(this._className,".detectMessageLoss. matchedSequences:").concat(i)),n.length===i.length)Pe.info("".concat(this._className,".detectMessageLoss no message loss. conversationID:").concat(e));else{var o,r=n.filter((function(e){return-1===i.indexOf(e)})),a=r.length;a<=5?o=e+"-"+r.join("-"):(r.sort((function(e,t){return e-t})),o=e+" start:"+r[0]+" end:"+r[a-1]+" count:"+a),new ro(Tr).setMessage(o).setNetworkType(this.getNetworkType()).setLevel("warning").end(),Pe.warn("".concat(this._className,".detectMessageLoss message loss detected. conversationID:").concat(e," lostSequences:").concat(r))}n.length=0}}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._maybeLostSequencesMap.clear()}}]),i}(bn),Fs=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="CloudControlModule",o._cloudConfig=new Map,o._expiredTime=0,o._version=0,o._isFetching=!1,o}return r(i,[{key:"getCloudConfig",value:function(e){return Je(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"_canFetchConfig",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetchConfig();if(Pe.log("".concat(this._className,".fetchConfig canFetchConfig:").concat(t)),t){var n=new ro(Nr),i=this.getModule(on).getSDKAppID();this._isFetching=!0,this.request({protocolName:Gi,requestData:{SDKAppID:i,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),Pe.log("".concat(e._className,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var i=y(e,2),o=i[0],r=i[1];n.setError(t,o,r).end()})),Pe.log("".concat(e._className,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){Pe.log("".concat(this._className,".onPushedCloudControlConfig")),new ro(Rr).setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:"onCheckTimer",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:"_parseCloudControlConfig",value:function(e){var t=this,n="".concat(this._className,"._parseCloudControlConfig"),i=e.errorCode,o=e.errorMessage,r=e.cloudControlConfig,a=e.version,s=e.expiredTime;if(0===i){if(this._version!==a){var c=null;try{c=JSON.parse(r)}catch(d){Pe.error("".concat(n," JSON parse error:").concat(r))}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=a,this.emitInnerEvent(ga))}this._expiredTime=Date.now()+1e3*s}else Je(i)?(Pe.log("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Pe.error("".concat(n," errorCode:").concat(i," errorMessage:").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),i}(bn),Bs=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="PullGroupMessageModule",o._remoteLastMessageSequenceMap=new Map,o.PULL_LIMIT_COUNT=15,o}return r(i,[{key:"startPull",value:function(){var e=this,t=this._getNeedPullConversationList();this._getRemoteLastMessageSequenceList().then((function(){var n=e.getModule(nn);t.forEach((function(t){var i=t.conversationID,o=i.replace(A.CONV_GROUP,""),r=n.getGroupLocalLastMessageSequence(i),a=e._remoteLastMessageSequenceMap.get(o)||0,s=a-r;Pe.log("".concat(e._className,".startPull groupID:").concat(o," localLastMessageSequence:").concat(r," ")+"remoteLastMessageSequence:".concat(a," diff:").concat(s)),r>0&&s>=1&&s<300&&e._pullMissingMessage({groupID:o,localLastMessageSequence:r,remoteLastMessageSequence:a,diff:s})}))}))}},{key:"_getNeedPullConversationList",value:function(){return this.getModule(nn).getLocalConversationList().filter((function(e){return e.type===A.CONV_GROUP&&e.groupProfile.type!==A.GRP_AVCHATROOM}))}},{key:"_getRemoteLastMessageSequenceList",value:function(){var e=this;return this.getModule(Zt).getGroupList().then((function(t){for(var n=t.data.groupList,i=void 0===n?[]:n,o=0;o<i.length;o++){var r=i[o],a=r.groupID,s=r.nextMessageSeq;if(r.type!==A.GRP_AVCHATROOM){var c=s-1;e._remoteLastMessageSequenceMap.set(a,c)}}}))}},{key:"_pullMissingMessage",value:function(e){var t=this,n=e.localLastMessageSequence,i=e.remoteLastMessageSequence,o=e.diff;e.count=o>this.PULL_LIMIT_COUNT?this.PULL_LIMIT_COUNT:o,e.sequence=o>this.PULL_LIMIT_COUNT?n+this.PULL_LIMIT_COUNT:n+o,this._getGroupMissingMessage(e).then((function(r){r.length>0&&(r[0].sequence+1<=i&&(e.localLastMessageSequence=n+t.PULL_LIMIT_COUNT,e.diff=o-t.PULL_LIMIT_COUNT,t._pullMissingMessage(e)),t.getModule(Zt).onNewGroupMessage({dataList:r,isInstantMessage:!1}))}))}},{key:"_getGroupMissingMessage",value:function(e){var t=this,n=new ro(sr);return this.request({protocolName:si,requestData:{groupID:e.groupID,count:e.count,sequence:e.sequence}}).then((function(i){var o=i.data.messageList,r=void 0===o?[]:o;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e.groupID," count:").concat(e.count," sequence:").concat(e.sequence," messageList length:").concat(r.length)).end(),r})).catch((function(e){t.probeNetwork().then((function(t){var i=y(t,2),o=i[0],r=i[1];n.setError(e,o,r).end()}))}))}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._remoteLastMessageSequenceMap.clear()}}]),i}(bn),qs=function(){function e(){n(this,e),this._className="AvgE2EDelay",this._e2eDelayArray=[]}return r(e,[{key:"addMessageDelay",value:function(e){var t=De()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),xt(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,i=e.max;return t.filter((function(e){return n<=e&&e<i})).length}},{key:"_calcPercent",value:function(e,t){var n=xt(e/t*100,2);return n>100&&(n=100),n}},{key:"_checkE2EDelayException",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var i=n.length,o=Math.min.apply(Math,b(n)),r=Math.max.apply(Math,b(n)),a=this._calcAvg(n,i),s=xt(i/e.length*100,2);s>50&&new ro(Fo).setMessage("message e2e delay exception. count:".concat(i," min:").concat(o," max:").concat(r," avg:").concat(a," percent:").concat(s)).setLevel("warning").end()}}},{key:"getStatResult",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=b(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),i=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),o=this._calcPercent(n,e),r=this._calcPercent(i,e),a=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:o,countLessThan3Second:i,percentOfCountLessThan3Second:r,avgDelay:a}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),js=function(){function e(){n(this,e),this._className="AvgRTT",this._requestCount=0,this._rttArray=[]}return r(e,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){if(0===t)return 0;var n=xt(e/t*100,2);return n>100&&(n=100),n}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcMax",value:function(){return Math.max.apply(Math,b(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,b(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=b(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),i=this._calcSuccessRateOfRequest(n,e),o=this._calcAvg(t,n);return Pe.log("".concat(this._className,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(o)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:i,avgRTT:o}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),$s=function(){function e(){n(this,e),this._map=new Map}return r(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(Je(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(Je(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(Je(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(Je(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(Je(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(Je(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=xt(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(Je(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=xt(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return Je(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return Je(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(Je(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return Je(e)||!this._map.has(e)?-1:e===Ji?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),i=this._calcSuccessRateOfBusiness(e),o=this._calcSuccessCountOfPlatform(e),r=this._calcSuccessRateOfPlatform(e),a=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:i,successCountOfPlatform:o,successRateOfPlatform:r,avgValue:a}}},{key:"reset",value:function(e){Je(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),Hs=function(){function e(){n(this,e),this._lastMap=new Map,this._currentMap=new Map}return r(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t=e.key,n=e.message;if(Je(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var i=n.conversationID,o=n.sequence,r=i.replace(A.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(r)){var a=this._lastMap.get(t).get(r),s=a.length-1;o>a[0]&&o<a[s]?(a.push(o),a.sort(),this._lastMap.get(t).set(r,a)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,i=n.conversationID,o=n.sequence,r=i.replace(A.CONV_GROUP,"");this._currentMap.get(t).has(r)||this._currentMap.get(t).set(r,[]),this._currentMap.get(t).get(r).push(o)}},{key:"_copyData",value:function(e){if(!Je(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),i=I(this._currentMap.get(e));try{for(i.s();!(t=i.n()).done;){var o=y(t.value,2),r=o[0],a=o[1];n.set(r,a)}}catch(u){i.e(u)}finally{i.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(Je(this._currentMap.get(e))||Je(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,i){var o=b(e.values()),r=o.length,a=o[r-1]-o[0]+1;t+=a,n+=r})),0===t)return null;var i=xt(n/t*100,2);return i>100&&(i=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:i}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),Vs=function(e){u(i,e);var t=_(i);function i(e){var o;n(this,i),(o=t.call(this,e))._className="QualityStatModule",o.TAG="im-ssolog-quality-stat",o.reportIndex=0,o.wholePeriod=!1,o._qualityItems=[Vi,zi,Ki,Wi,Yi,Xi,Ji,Qi,Zi,eo],o._messageSentItems=[Ki,Wi,Yi,Xi,Ji],o._messageReceivedItems=[Qi,Zi,eo],o.REPORT_INTERVAL=120,o.REPORT_SDKAPPID_BLACKLIST=[],o.REPORT_TINYID_WHITELIST=[],o._statInfoArr=[],o._avgRTT=new js,o._avgE2EDelay=new qs,o._rateMessageSent=new $s,o._rateMessageReceived=new Hs;var r=o.getInnerEmitterInstance();return r.on(ha,o._onLoginSuccess,m(o)),r.on(ga,o._onCloudConfigUpdated,m(o)),o}return r(i,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(rn),n=t.getItem(this.TAG,!1);!Lt(n)&&Ze(n.forEach)&&(Pe.log("".concat(this._className,"._onLoginSuccess.get quality stat log in storage, nums=").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");Je(e)||(this.REPORT_INTERVAL=Number(e)),Je(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),Je(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||Pe.warn("".concat(this._className,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Pe.warn("".concat(this._className,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Pe.warn("".concat(this._className,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Pe.warn("".concat(this._className,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Pe.warn("".concat(this._className,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Pe.warn("".concat(this._className,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},n=io[this.getNetworkType()];Je(n)&&(n=8);var i={qualityType:to[e],timestamp:Oe(),networkType:n,extension:""};switch(e){case Vi:t=this._avgRTT.getStatResult();break;case zi:t=this._avgE2EDelay.getStatResult();break;case Ki:case Wi:case Yi:case Xi:case Ji:t=this._rateMessageSent.getStatResult(e);break;case Qi:case Zi:case eo:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:c({},i,{},t)}},{key:"_report",value:function(e){var t=this,n=[],i=null;Je(e)?this._qualityItems.forEach((function(e){null!==(i=t._getQualityItem(e))&&(i.reportIndex=t.reportIndex,i.wholePeriod=t.wholePeriod,n.push(i))})):null!==(i=this._getQualityItem(e))&&(i.reportIndex=this.reportIndex,i.wholePeriod=this.wholePeriod,n.push(i)),Pe.debug("".concat(this._className,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var o=this.getModule(on),r=o.getSDKAppID(),a=o.getTinyID();Dt(this.REPORT_SDKAPPID_BLACKLIST,r)&&!Nt(this.REPORT_TINYID_WHITELIST,a)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,n={header:ns(this),quality:e};this.request({protocolName:Oi,requestData:c({},n)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){Pe.warn("".concat(t._className,"._doReport, online:").concat(t.getNetworkType()," error:"),n),t._statInfoArr=t._statInfoArr.concat(e),t._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.getModule(rn),t=e.getItem(this.TAG,!1),n=this._statInfoArr;if(Lt(t))Pe.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var i=n.concat(t);i.length>10&&(i=i.slice(0,10)),Pe.log("".concat(this.className,"._flushAtOnce count:").concat(i.length)),e.setItem(this.TAG,i,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),i}(bn),zs=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="WorkerTimerModule",o._isWorkerEnabled=!0,o._workerTimer=null,o._init(),o.getInnerEmitterInstance().on(ga,o._onCloudConfigUpdated,m(o)),o}return r(i,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&Ce}},{key:"startWorkerTimer",value:function(){Pe.log("".concat(this._className,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Pe.log("".concat(this._className,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(Ce){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) { if (event.data === "start") { if (interval > 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000) } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(){t._moduleManager.onCheckTimer()}}}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("enable_worker");Pe.log("".concat(this._className,"._onCloudConfigUpdated enableWorker:").concat(e)),"1"===e?!this._isWorkerEnabled&&Ce&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._moduleManager.onWorkerTimerEnabled()):this._isWorkerEnabled&&Ce&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._moduleManager.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Pe.log("".concat(this._className,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null)}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset"))}}]),i}(bn),Ks=function(){function e(){n(this,e),this._className="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return r(e,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){var t="".concat(this._className,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var n=Object.values(V),i=null,o=e.length-1,r=0;o>=0;o--,r++)i=r<32?new N(0,Math.pow(2,r)).toString():new N(Math.pow(2,r-32),0).toString(),-1!==n.indexOf(i)&&("1"===e[o]?this._purchasedFeatureMap.set(i,!0):this._purchasedFeatureMap.set(i,!1))}else Pe.warn("".concat(t," invalid purchase bits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:"clear",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),Ws=function(e){u(i,e);var t=_(i);function i(e){var o;return n(this,i),(o=t.call(this,e))._className="CommercialConfigModule",o._expiredTime=0,o._isFetching=!1,o._purchasedFeatureHandler=new Ks,o}return r(i,[{key:"_canFetch",value:function(){return this.isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetch(),n="".concat(this._className,".fetchConfig");if(Pe.log("".concat(n," canFetch:").concat(t)),t){var i=new ro(Lr);i.setNetworkType(this.getNetworkType());var o=this.getModule(on).getSDKAppID();this._isFetching=!0,this.request({protocolName:Bi,requestData:{SDKAppID:o}}).then((function(t){i.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Pe.log("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){e.probeNetwork().then((function(e){var n=y(e,2),o=n[0],r=n[1];i.setError(t,o,r).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._className,".onPushedConfig");Pe.log("".concat(t)),new ro(Pr).setNetworkType(this.getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._className,"._parseConfig"),n=e.errorCode,i=e.errorMessage,o=e.purchaseBits,r=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(o),this._expiredTime=Date.now()+1e3*r):Je(n)?(Pe.log("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Pe.error("".concat(t," errorCode:").concat(n," errorMessage:").concat(i)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"hasPurchasedFeature",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),i}(bn),Ys=function(){function e(t){n(this,e);var i=new ro(ao);this._className="ModuleManager",this._isReady=!1,this._reason=$i.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(on,new Ja(this,t)),this._moduleMap.set(yn,new Ws(this)),this._moduleMap.set(gn,new Fs(this)),this._moduleMap.set(mn,new zs(this)),this._moduleMap.set(_n,new Vs(this)),this._moduleMap.set(pn,new Ds(this)),this._moduleMap.set(fn,new Us(this)),this._moduleMap.set(Yt,new Qa(this)),this._moduleMap.set(Xt,new ps(this)),this._moduleMap.set(Jt,new Xa(this)),this._moduleMap.set(Qt,new fa(this)),this._moduleMap.set(nn,new Na(this)),this._moduleMap.set(Zt,new Ha(this)),this._moduleMap.set(tn,new za(this)),this._moduleMap.set(rn,new es(this)),this._moduleMap.set(an,new is(this)),this._moduleMap.set(sn,new as(this)),this._moduleMap.set(cn,new cs(this)),this._moduleMap.set(un,new us(this)),this._moduleMap.set(ln,new hs(this)),this._moduleMap.set(dn,new gs(this)),this._moduleMap.set(hn,new Gs(this)),this._moduleMap.set(vn,new Bs(this)),this._eventThrottleMap=new Map;var o=t.instanceID,r=t.oversea,a=t.SDKAppID,s="instanceID:".concat(o," SDKAppID:").concat(a," host:").concat(wt()," oversea:").concat(r," inBrowser:").concat(oe," inMiniApp:").concat(ie)+" workerAvailable:".concat(Ce," UserAgent:").concat(se);ro.bindEventStatModule(this._moduleMap.get(an)),i.setMessage("".concat(s," ").concat(function(){var e="";if(ie)try{var t=re.getSystemInfoSync(),n=t.model,i=t.version,o=t.system,r=t.platform,a=t.SDKVersion;e="model:".concat(n," version:").concat(i," system:").concat(o," platform:").concat(r," SDKVersion:").concat(a)}catch(s){e=""}return e}())).end(),Pe.info("SDK ".concat(s)),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return r(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(mn),t=e.isWorkerEnabled();Pe.log("".concat(this._className,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){Pe.log("".concat(this._className,"._startMainThreadTimer")),this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3))}},{key:"stopTimer",value:function(){var e=this._moduleMap.get(mn),t=e.isWorkerEnabled();Pe.log("".concat(this._className,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Pe.log("".concat(this._className,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Pe.log("".concat(this._className,"._stopMainThreadSocket"));var e=this._moduleMap.get(pn);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Pe.log("".concat(this._className,"._startMainThreadSocket"));var e=this._moduleMap.get(pn);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Pe.log("".concat(this._className,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Pe.log("".concat(this._className,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=I(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(r){t.e(r)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get(Yt),this._moduleMap.get(nn)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit(w.SDK_READY);var t=Date.now()-this._startLoginTs;Pe.warn("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get(sn).getNetworkType(),i=this._ssoLogForReady.getStartTs()+Ee;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(i).end()}}},{key:"login",value:function(){0===this._startLoginTs&&(xe(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(sn).start(),this._ssoLogForReady=new ro(so),this._reason=$i.LOGGING_IN)}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new ss,ua(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===w.CONVERSATION_LIST_UPDATED||e===w.FRIEND_LIST_UPDATED||e===w.GROUP_LIST_UPDATED)if(this._eventThrottleMap.has(e)){var i=Date.now(),o=this._eventThrottleMap.get(e);i-o.last<1e3?(o.timeoutID&&clearTimeout(o.timeoutID),o.timeoutID=setTimeout((function(){o.last=i,n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),500)):(o.last=i,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:"_getEventData",value:function(e){return e===w.CONVERSATION_LIST_UPDATED?this._moduleMap.get(nn).getLocalConversationList():e===w.FRIEND_LIST_UPDATED?this._moduleMap.get(en).getLocalFriendList(!1):e===w.GROUP_LIST_UPDATED?this._moduleMap.get(Zt).getLocalGroupList():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new ss,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;Ye(arguments[1])&&arguments[1].data?(Pe.warn("inner eventData has data property, please check!"),n=[e,{name:arguments[0],data:arguments[1].data}]):n=[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:"hasModule",value:function(e){return this._moduleMap.has(e)}},{key:"getModule",value:function(e){return this._moduleMap.get(e)}},{key:"isReady",value:function(){return this._isReady}},{key:"getNotReadyReason",value:function(){return this._reason}},{key:"setNotReadyReason",value:function(e){this._reason=e}},{key:"onError",value:function(e){Pe.warn("Oops! code:".concat(e.code," message:").concat(e.message)),new ro(Ur).setMessage("code:".concat(e.code," message:").concat(e.message)).setNetworkType(this.getModule(sn).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(w.ERROR,e)}},{key:"reset",value:function(){Pe.log("".concat(this._className,".reset")),xe();var e,t=I(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=y(e.value,2)[1];n.reset&&n.reset()}}catch(c){t.e(c)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(w.SDK_NOT_READY);var i,o=I(this._eventThrottleMap);try{for(o.s();!(i=o.n()).done;){var r=y(i.value,2)[1];r.timeoutID&&clearTimeout(r.timeoutID)}}catch(c){o.e(c)}finally{o.f()}this._eventThrottleMap.clear()}}]),e}(),Xs=function(){function e(){n(this,e),this._funcMap=new Map}return r(e,[{key:"defense",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var i=null;return this._funcMap.get(e).has(t)?i=this._funcMap.get(e).get(t):(i=this._pack(e,t,n),this._funcMap.get(e).set(t,i)),i}},{key:"defenseOnce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,n)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)?this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(Pe.log("SafetyCallback.find: 找不到 func —— ".concat(e,"/").concat(""!==t.name?t.name:"[anonymous]")),null):(Pe.log("SafetyCallback.find: 找不到 eventName-".concat(e," 对应的 func")),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){return function(){try{t.apply(n,Array.from(arguments))}catch(c){var i=Object.values(w).indexOf(e);if(-1!==i){var o=Object.keys(w)[i];Pe.warn("接入侧事件 TIM.EVENT.".concat(o," 对应的回调函数逻辑存在问题,请检查!"),c)}var r=new ro(Dr);r.setMessage("eventName:".concat(e)).setMoreMessage(c.message).end()}}}}]),e}(),Js=function(){function e(t){n(this,e);var i={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:It(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0};this._moduleManager=new Ys(i),this._safetyCallbackFactory=new Xs}return r(e,[{key:"onError",value:function(e){this._moduleManager.onError(e)}},{key:"login",value:function(e){return this._moduleManager.login(),this._moduleManager.getModule(Yt).login(e)}},{key:"logout",value:function(){var e=this;return this._moduleManager.getModule(Yt).logout().then((function(t){return e._moduleManager.reset(),t}))}},{key:"isReady",value:function(){return this._moduleManager.isReady()}},{key:"getNotReadyReason",value:function(){return this._moduleManager.getNotReadyReason()}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._moduleManager.stopTimer(),e._moduleManager.getModule(mn).terminate(),e._moduleManager.getModule(pn).dealloc();var t=e._moduleManager.getOuterEmitterInstance(),n=e._moduleManager.getModule(on);t.emit(w.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){e===w.GROUP_SYSTEM_NOTICE_RECEIVED&&Pe.warn("!!!TIM.EVENT.GROUP_SYSTEM_NOTICE_RECEIVED v2.6.0起弃用,为了更好的体验,请在 TIM.EVENT.MESSAGE_RECEIVED 事件回调内接收处理群系统通知,详细请参考:https://web.sdk.qcloud.com/im/doc/zh-cn/Message.html#.GroupSystemNoticePayload"),Pe.debug("on","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Pe.debug("once","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,i){Pe.debug("off","eventName:".concat(e));var o=this._safetyCallbackFactory.find(e,t);null!==o&&(this._moduleManager.getOuterEmitterInstance().off(e,o,n,i),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){this._moduleManager.getModule(ln).registerPlugin(e)}},{key:"setLogLevel",value:function(e){e<=0&&(i.log([""," ________ ______ __ __ __ __ ________ _______","| \\| \\| \\ / \\| \\ _ | \\| \\| \\"," \\$$$$$$$$ \\$$$$$$| $$\\ / $$| $$ / \\ | $$| $$$$$$$$| $$$$$$$\\"," | $$ | $$ | $$$\\ / $$$| $$/ $\\| $$| $$__ | $$__/ $$"," | $$ | $$ | $$$$\\ $$$$| $$ $$$\\ $$| $$ \\ | $$ $$"," | $$ | $$ | $$\\$$ $$ $$| $$ $$\\$$\\$$| $$$$$ | $$$$$$$\\"," | $$ _| $$_ | $$ \\$$$| $$| $$$$ \\$$$$| $$_____ | $$__/ $$"," | $$ | $$ \\| $$ \\$ | $$| $$$ \\$$$| $$ \\| $$ $$"," \\$$ \\$$$$$$ \\$$ \\$$ \\$$ \\$$ \\$$$$$$$$ \\$$$$$$$","",""].join("\n")),i.log("%cIM 智能客服,随时随地解决您的问题 →_→ https://cloud.tencent.com/act/event/smarty-service?from=im-doc","color:#006eff"),i.log("%c从v2.11.2起,SDK 支持了 WebSocket,小程序需要添加受信域名!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html","color:#ff0000"),i.log(["","参考以下文档,会更快解决问题哦!(#^.^#)\n","SDK 更新日志: https://cloud.tencent.com/document/product/269/38492\n","SDK 接口文档: https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html\n","常见问题: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-01-faq.html\n","反馈问题?戳我提 issue: https://github.com/tencentyun/TIMSDK/issues\n","如果您需要在生产环境关闭上面的日志,请 tim.setLogLevel(1)\n"].join("\n"))),Pe.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._moduleManager.getModule(Xt).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._moduleManager.getModule(Xt).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._moduleManager.getModule(Xt).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._moduleManager.getModule(Xt).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._moduleManager.getModule(Xt).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._moduleManager.getModule(Xt).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._moduleManager.getModule(Xt).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._moduleManager.getModule(Xt).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._moduleManager.getModule(Xt).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._moduleManager.getModule(Xt).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==A.MSG_MERGER?da(new sa({code:$i.MESSAGE_MERGER_TYPE_INVALID,message:Hi.MESSAGE_MERGER_TYPE_INVALID})):Lt(e.payload.downloadKey)?da(new sa({code:$i.MESSAGE_MERGER_KEY_INVALID,message:Hi.MESSAGE_MERGER_KEY_INVALID})):this._moduleManager.getModule(Xt).downloadMergerMessage(e).catch((function(e){return da(new sa({code:$i.MESSAGE_MERGER_DOWNLOAD_FAIL,message:Hi.MESSAGE_MERGER_DOWNLOAD_FAIL}))}))}},{key:"createForwardMessage",value:function(e){return this._moduleManager.getModule(Xt).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof ea?this._moduleManager.getModule(Xt).sendMessageInstance(e,t):da(new sa({code:$i.MESSAGE_SEND_NEED_MESSAGE_INSTANCE,message:Hi.MESSAGE_SEND_NEED_MESSAGE_INSTANCE}))}},{key:"callExperimentalAPI",value:function(e,t){return"handleGroupInvitation"===e?this._moduleManager.getModule(Zt).handleGroupInvitation(t):da(new sa({code:$i.INVALID_OPERATION,message:Hi.INVALID_OPERATION}))}},{key:"revokeMessage",value:function(e){return this._moduleManager.getModule(Xt).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._moduleManager.getModule(Xt).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._moduleManager.getModule(Xt).deleteMessage(e)}},{key:"getMessageList",value:function(e){return this._moduleManager.getModule(nn).getMessageList(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._moduleManager.getModule(Zt).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._moduleManager.getModule(Zt).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){return this._moduleManager.getModule(Zt).getReadReceiptDetail(e)}},{key:"findMessage",value:function(e){return this._moduleManager.getModule(nn).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._moduleManager.getModule(nn).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._moduleManager.getModule(nn).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._moduleManager.getModule(nn).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._moduleManager.getModule(nn).deleteConversation(e)}},{key:"pinConversation",value:function(e){return this._moduleManager.getModule(nn).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._moduleManager.getModule(nn).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._moduleManager.getModule(nn).setMessageRemindType(e)}},{key:"getMyProfile",value:function(){return this._moduleManager.getModule(Jt).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._moduleManager.getModule(Jt).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._moduleManager.getModule(Jt).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._moduleManager.getModule(Jt).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._moduleManager.getModule(Jt).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._moduleManager.getModule(Jt).deleteBlacklist(e)}},{key:"getFriendList",value:function(){var e=this._moduleManager.getModule(en);return e?e.getLocalFriendList():da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"addFriend",value:function(e){var t=this._moduleManager.getModule(en);return t?t.addFriend(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._moduleManager.getModule(en);return t?t.deleteFriend(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"checkFriend",value:function(e){var t=this._moduleManager.getModule(en);return t?t.checkFriend(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._moduleManager.getModule(en);return t?t.getFriendProfile(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"updateFriend",value:function(e){var t=this._moduleManager.getModule(en);return t?t.updateFriend(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._moduleManager.getModule(en);return e?e.getLocalFriendApplicationList():da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._moduleManager.getModule(en);return t?t.acceptFriendApplication(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._moduleManager.getModule(en);return t?t.refuseFriendApplication(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._moduleManager.getModule(en);return t?t.deleteFriendApplication(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._moduleManager.getModule(en);return e?e.setFriendApplicationRead():da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._moduleManager.getModule(en);return e?e.getLocalFriendGroupList():da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._moduleManager.getModule(en);return t?t.createFriendGroup(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._moduleManager.getModule(en);return t?t.deleteFriendGroup(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._moduleManager.getModule(en);return t?t.addToFriendGroup(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._moduleManager.getModule(en);return t?t.removeFromFriendGroup(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._moduleManager.getModule(en);return t?t.renameFriendGroup(e):da({code:$i.CANNOT_FIND_MODULE,message:Hi.CANNOT_FIND_MODULE})}},{key:"getGroupList",value:function(e){return this._moduleManager.getModule(Zt).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._moduleManager.getModule(Zt).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._moduleManager.getModule(Zt).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._moduleManager.getModule(Zt).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._moduleManager.getModule(Zt).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._moduleManager.getModule(Zt).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._moduleManager.getModule(Zt).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._moduleManager.getModule(Zt).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._moduleManager.getModule(Zt).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._moduleManager.getModule(Zt).changeGroupOwner(e)}},{key:"handleGroupApplication",value:function(e){return this._moduleManager.getModule(Zt).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._moduleManager.getModule(Zt).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._moduleManager.getModule(Zt).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._moduleManager.getModule(Zt).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._moduleManager.getModule(Zt).getGroupAttributes(e)}},{key:"getGroupMemberList",value:function(e){return this._moduleManager.getModule(tn).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._moduleManager.getModule(tn).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._moduleManager.getModule(tn).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._moduleManager.getModule(tn).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._moduleManager.getModule(tn).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._moduleManager.getModule(tn).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._moduleManager.getModule(tn).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._moduleManager.getModule(tn).setGroupMemberCustomField(e)}}]),e}(),Qs={login:"login",logout:"logout",destroy:"destroy",on:"on",off:"off",ready:"ready",setLogLevel:"setLogLevel",joinGroup:"joinGroup",quitGroup:"quitGroup",registerPlugin:"registerPlugin",getGroupOnlineMemberCount:"getGroupOnlineMemberCount"};function Zs(e,t){if(e.isReady()||void 0!==Qs[t])return!0;var n=e.getNotReadyReason(),i="";Object.getOwnPropertyNames($i).forEach((function(e){$i[e]===n&&(i=Hi[e])}));var o={code:n,message:"".concat(i,"导致 sdk not ready。").concat(t," ").concat(Hi.SDK_IS_NOT_READY,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/module-EVENT.html#.SDK_READY")};return e.onError(o),o}var ec={},tc={create:function(e){var t=0;if(ze(e.SDKAppID))t=e.SDKAppID;else if(Pe.warn("TIM.create SDKAppID 的类型应该为 Number,请修改!"),t=parseInt(e.SDKAppID),isNaN(t))return Pe.error("TIM.create failed. 解析 SDKAppID 失败,请检查传参!"),null;if(t&&ec[t])return ec[t];Pe.log("TIM.create");var n=new Js(c({},e,{SDKAppID:t}));n.on(w.SDK_DESTROY,(function(e){ec[e.data.SDKAppID]=null,delete ec[e.data.SDKAppID]}));var i=function(e){var t=Object.create(null);return Object.keys(Wt).forEach((function(n){if(e[n]){var i=Wt[n],o=new E;t[i]=function(){var t=Array.from(arguments);return o.use((function(t,i){var o=Zs(e,n);return!0===o?i():da(o)})).use((function(e,t){if(!0===Pt(e,Kt[n],i))return t()})).use((function(t,i){return e[n].apply(e,t)})),o.run(t)}}})),t}(n);return ec[t]=i,Pe.log("TIM.create ok"),i}};return tc.TYPES=A,tc.EVENT=w,tc.VERSION="2.18.0",Pe.log("TIM.VERSION: ".concat(tc.VERSION)),tc}))}).call(this,n("c8ba"),n("5a52")["default"])},b01b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("8a50"),o={requestComponentInfo:i.requestComponentInfo};t.default=o},b041:function(e,t,n){"use strict";var i=n("00ee"),o=n("f5df");e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},b242:function(e,t,n){"use strict";(function(e){n("99af"),n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.loadMaps=c;var i,o=n("2967"),r=n("e12d"),a={},s="__map_callback__";function c(t,n){var c=(0,o.getMapInfo)();if(c.key){var d=a[c.type]=a[c.type]||[];if(i)n(i);else if(window[c.type]&&window[c.type].maps)i=o.IS_AMAP?window[c.type]:window[c.type].maps,i.Callout=i.Callout||(0,r.createCallout)(i),n(i);else if(d.length)d.push(n);else{d.push(n);var f=window,p=s+c.type;f[p]=function(){delete f[p],i=o.IS_AMAP?window[c.type]:window[c.type].maps,i.Callout=(0,r.createCallout)(i),d.forEach((function(e){return e(i)})),d.length=0};var h=document.createElement("script"),g=u(c.type);c.type===o.MapType.QQ&&t.push("geometry"),t.length&&(g+="libraries=".concat(t.join("%2C"),"&")),o.IS_AMAP&&l(c),h.src="".concat(g,"key=").concat(c.key,"&callback=").concat(p),h.onerror=function(){e.error("Map load failed.")},document.body.appendChild(h)}}else e.error("Map key not configured.")}function u(e){var t={qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&"};return t[e]}function l(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}}).call(this,n("5a52")["default"])},b286:function(e,t,n){"use strict";n("99af"),n("ace4"),n("d3b7"),n("ac1f"),n("3ca3"),n("466d"),n("1276"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("ddb0"),n("2b3d"),Object.defineProperty(t,"__esModule",{value:!0}),t.urlToFile=r,t.base64ToFile=a,t.getFileName=c,t.blobToFile=u,t.fileToUrl=l,t.getSameOriginUrl=d,t.revokeObjectURL=f;var i=n("db6a"),o={};function r(e,t){var n=o[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(a(e)):t?Promise.reject(new Error("not find")):new Promise((function(t,n){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){t(this.response)},i.onerror=n,i.send()}))}function a(e){e=e.split(",");var t=e[0].match(/:(.*?);/)[1],n=atob(e[1]),i=n.length,o=new Uint8Array(i);while(i--)o[i]=n.charCodeAt(i);return u(o,t)}function s(e){var t=e.split("/")[1];return t?".".concat(t):""}function c(e){e=e.split("#")[0].split("?")[0];var t=e.split("/");return t[t.length-1]}function u(e,t){if(!(e instanceof File)){t=t||e.type||"";var n="".concat(Date.now()).concat(s(t));try{e=new File([e],n,{type:t})}catch(i){e=e instanceof Blob?e:new Blob([e],{type:t}),e.name=e.name||n}}return e}function l(e){for(var t in o)if((0,i.hasOwn)(o,t)){var n=o[t];if(n===e)return t}var r=(window.URL||window.webkitURL).createObjectURL(e);return o[r]=e,r}function d(e){var t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):r(e).then(l)}function f(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete o[e]}},b32d:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-actionsheet",{on:{touchmove:function(e){e.preventDefault()}}},[n("transition",{attrs:{name:"uni-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"uni-mask uni-actionsheet__mask",on:{click:function(t){return e._close(-1)}}})]),n("div",{staticClass:"uni-actionsheet",class:{"uni-actionsheet_toggle":e.visible},style:e.popupStyle.content},[n("div",{ref:"main",staticClass:"uni-actionsheet__menu",on:{wheel:e._handleWheel}},[e.title?n("div",{staticClass:"uni-actionsheet__cell",style:{height:e.titleHeight+"px"}}):e._e(),e.title?n("div",{staticClass:"uni-actionsheet__title"},[e._v("\n "+e._s(e.title)+"\n ")]):e._e(),n("div",{style:{maxHeight:e.HEIGHT+"px",overflow:"hidden"}},[n("div",{ref:"content"},e._l(e.itemList,(function(t,i){return n("div",{key:i,staticClass:"uni-actionsheet__cell",style:{color:e.itemColor},on:{click:function(t){return e._close(i)}}},[e._v("\n "+e._s(t)+"\n ")])})),0)])]),n("div",{staticClass:"uni-actionsheet__action"},[n("div",{staticClass:"uni-actionsheet__cell",style:{color:e.itemColor},on:{click:function(t){return e._close(-1)}}},[e._v("\n "+e._s(e.$$t("uni.showActionSheet.cancel"))+"\n ")])]),n("div",{style:e.popupStyle.triangle})]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close(-1)}}})],1)},r=[]},b334:function(e,t,n){"use strict";(function(e){function n(t){var n=getCurrentPages();return n.length&&e.publishHandler("pageScrollTo",t,n[n.length-1].$page.id),{}}Object.defineProperty(t,"__esModule",{value:!0}),t.pageScrollTo=n}).call(this,n("a9aa"))},b39a:function(e,t,n){"use strict";var i=n("da84"),o=n("ebb5"),r=n("d039"),a=i.Int8Array,s=o.aTypedArray,c=o.exportTypedArrayMethod,u=[].toLocaleString,l=[].slice,d=!!a&&r((function(){u.call(new a(1))})),f=r((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!r((function(){a.prototype.toLocaleString.call([1,2])}));c("toLocaleString",(function(){return u.apply(d?l.call(s(this)):s(this),arguments)}),f)},b46f:function(e,t,n){"use strict";var i=n("4ea4");n("7db0"),n("e25e"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var o=i(n("ff22")),r=n("559a");function a(e,t){t.getApp;var n=t.getCurrentPages;function i(e){return function(t,i){i=parseInt(i);var o=n(),a=o.find((function(e){return e.$page.id===i}));a&&(0,r.callPageHook)(a,e,t)}}var a=(0,o.default)("requestComponentInfo");function s(e){var t=e.reqId,n=e.res,i=a.pop(t);i&&i(n)}var c=(0,o.default)("requestComponentObserver");function u(e){var t=e.reqId,n=e.reqEnd,i=e.res,o=c.get(t);if(o){if(n)return void c.pop(t);o(i)}}var l=(0,o.default)("requestMediaQueryObserver");function d(e){var t=e.reqId,n=e.reqEnd,i=e.res,o=l.get(t);if(o){if(n)return void l.pop(t);o(i)}}e("onPageReady",i("onReady")),e("onPageScroll",i("onPageScroll")),e("onReachBottom",i("onReachBottom")),e("onRequestComponentInfo",s),e("onRequestComponentObserver",u),e("onRequestMediaQueryObserver",d)}},b479:function(e){e.exports=JSON.parse('{"uni.app.quit":"再按一次退出应用","uni.async.error":"连接服务器超时,点击屏幕重试","uni.showActionSheet.cancel":"取消","uni.showToast.unpaired":"请注意 showToast 与 hideToast 必须配对使用","uni.showLoading.unpaired":"请注意 showLoading 与 hideLoading 必须配对使用","uni.showModal.cancel":"取消","uni.showModal.confirm":"确定","uni.chooseImage.cancel":"取消","uni.chooseImage.sourceType.album":"从相册选择","uni.chooseImage.sourceType.camera":"拍摄","uni.chooseVideo.cancel":"取消","uni.chooseVideo.sourceType.album":"从相册选择","uni.chooseVideo.sourceType.camera":"拍摄","uni.chooseFile.notUserActivation":"文件选择器对话框只能在由用户激活时显示","uni.previewImage.cancel":"取消","uni.previewImage.button.save":"保存图像","uni.previewImage.save.success":"保存图像到相册成功","uni.previewImage.save.fail":"保存图像到相册失败","uni.setClipboardData.success":"内容已复制","uni.scanCode.title":"扫码","uni.scanCode.album":"相册","uni.scanCode.fail":"识别失败","uni.scanCode.flash.on":"轻触照亮","uni.scanCode.flash.off":"轻触关闭","uni.startSoterAuthentication.authContent":"指纹识别中...","uni.picker.done":"完成","uni.picker.cancel":"取消","uni.video.danmu":"弹幕","uni.video.volume":"音量","uni.button.feedback.title":"问题反馈","uni.button.feedback.send":"发送","uni.chooseLocation.search":"搜索地点","uni.chooseLocation.cancel":"取消"}')},b575:function(e,t,n){var i,o,r,a,s,c,u,l,d=n("da84"),f=n("06cf").f,p=n("c6b6"),h=n("2cf4").set,g=n("1cdc"),m=d.MutationObserver||d.WebKitMutationObserver,v=d.process,_=d.Promise,y="process"==p(v),b=f(d,"queueMicrotask"),M=b&&b.value;M||(i=function(){var e,t;y&&(e=v.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():r=void 0,n}}r=void 0,e&&e.enter()},y?a=function(){v.nextTick(i)}:m&&!g?(s=!0,c=document.createTextNode(""),new m(i).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):_&&_.resolve?(u=_.resolve(void 0),l=u.then,a=function(){l.call(u,i)}):a=function(){h.call(d,i)}),e.exports=M||function(e){var t={fn:e,next:void 0};r&&(r.next=t),o||(o=t,a()),r=t}},b622:function(e,t,n){var i=n("da84"),o=n("5692"),r=n("5135"),a=n("90e3"),s=n("4930"),c=n("fdbf"),u=o("wks"),l=i.Symbol,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){return r(u,e)||(s&&r(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},b64b:function(e,t,n){var i=n("23e7"),o=n("7b0b"),r=n("df75"),a=n("d039"),s=a((function(){r(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return r(o(e))}})},b65e:function(e,t,n){"use strict";(function(e){function n(t,n,i){e.UniServiceJSBridge.subscribeHandler(t,n,i)}Object.defineProperty(t,"__esModule",{value:!0}),t.publishHandler=n}).call(this,n("c8ba"))},b727:function(e,t,n){var i=n("0366"),o=n("44ad"),r=n("7b0b"),a=n("50c4"),s=n("65f0"),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d;return function(p,h,g,m){for(var v,_,y=r(p),b=o(y),M=i(h,g,3),S=a(b.length),C=0,k=m||s,T=t?k(p,S):n?k(p,0):void 0;S>C;C++)if((f||C in b)&&(v=b[C],_=M(v,C,y),e))if(t)T[C]=_;else if(_)switch(e){case 3:return!0;case 5:return v;case 6:return C;case 2:c.call(T,v)}else if(l)return!1;return d?-1:u||l?l:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},b853:function(module,exports,__webpack_require__){(function(console){__webpack_require__("a4d3"),__webpack_require__("e01a"),__webpack_require__("d28b"),__webpack_require__("99af"),__webpack_require__("4de4"),__webpack_require__("4160"),__webpack_require__("c975"),__webpack_require__("baa5"),__webpack_require__("d81d"),__webpack_require__("26e9"),__webpack_require__("fb6a"),__webpack_require__("4e82"),__webpack_require__("a434"),__webpack_require__("c19f"),__webpack_require__("82da"),__webpack_require__("ace4"),__webpack_require__("f4b3"),__webpack_require__("a9e3"),__webpack_require__("b64b"),__webpack_require__("d3b7"),__webpack_require__("e25e"),__webpack_require__("4d63"),__webpack_require__("ac1f"),__webpack_require__("25f0"),__webpack_require__("3ca3"),__webpack_require__("466d"),__webpack_require__("5319"),__webpack_require__("1276"),__webpack_require__("498a"),__webpack_require__("5cc6"),__webpack_require__("fb2c"),__webpack_require__("9a8c"),__webpack_require__("a975"),__webpack_require__("735e"),__webpack_require__("c1ac"),__webpack_require__("d139"),__webpack_require__("3a7b"),__webpack_require__("d5d6"),__webpack_require__("82f8"),__webpack_require__("e91f"),__webpack_require__("60bd"),__webpack_require__("5f96"),__webpack_require__("3280"),__webpack_require__("3fcc"),__webpack_require__("ca91"),__webpack_require__("25a1"),__webpack_require__("cd26"),__webpack_require__("2954"),__webpack_require__("649e"),__webpack_require__("219c"),__webpack_require__("b39a"),__webpack_require__("72f7"),__webpack_require__("159b"),__webpack_require__("ddb0"),__webpack_require__("bf19"),function(e,t){module.exports=t()}("undefined"!=typeof self&&self,(function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/Users/tianfeng/Documents/项目/sdk/cos-wx-sdk-v5/demo/lib",t(t.s=6)}([function(e,t,n){"use strict";(function(t){function i(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function o(e,t){var n=[];for(var o in e)e.hasOwnProperty(o)&&n.push(t?i(o).toLowerCase():o);return n.sort((function(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e===t?0:e>t?1:-1}))}function r(e){return f(e,(function(e){return"object"===(void 0===e?"undefined":h(e))&&null!==e?r(e):e}))}function a(e,t,n){return e&&t in e?e[t]:n}function s(e,t){return d(t,(function(n,i){e[i]=t[i]})),e}function c(e){return e instanceof Array}function u(e,t){for(var n=!1,i=0;i<e.length;i++)if(t===e[i]){n=!0;break}return n}function l(e){return c(e)?e:[e]}function d(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function f(e,t){var n=c(e)?[]:{};for(var i in e)e.hasOwnProperty(i)&&(n[i]=t(e[i],i));return n}function p(e,t){var n=c(e),i=n?[]:{};for(var o in e)e.hasOwnProperty(o)&&t(e[o],o)&&(n?i.push(e[o]):i[o]=e[o]);return i}var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g=n(8),m=n(12),v=n(13),_=n(16),y=n(3),b=y.btoa,M=wx.getFileSystemManager(),S=function(e,t){var n,r,a,s=[],c=o(e);for(n=0;n<c.length;n++)r=c[n],a=void 0===e[r]||null===e[r]?"":""+e[r],r=t?i(r).toLowerCase():i(r),a=i(a)||"",s.push(r+"="+a);return s.join("&")},C=["content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","response-cache-control","response-content-disposition","response-content-encoding","response-content-language","response-content-type","response-expires","transfer-encoding","versionid"],k=function(e){var t={};for(var n in e){var i=n.toLowerCase();(i.indexOf("x-cos-")>-1||C.indexOf(i)>-1)&&(t[n]=e[n])}return t},T=function(e){e=e||{};var t,n=e.SecretId,i=e.SecretKey,a=e.KeyTime,s=(e.method||e.Method||"get").toLowerCase(),c=r(e.Query||e.params||{}),u=k(r(e.Headers||e.headers||{})),l=e.Key||"";if(e.UseRawKey?t=e.Pathname||e.pathname||"/"+l:(t=e.Pathname||e.pathname||l,0!==t.indexOf("/")&&(t="/"+t)),!u.Host&&!u.host&&e.Bucket&&e.Region&&(u.Host=e.Bucket+".cos."+e.Region+".myqcloud.com"),!n)return console.error("missing param SecretId");if(!i)return console.error("missing param SecretKey");var d=Math.round(G(e.SystemClockOffset)/1e3)-1,f=d,p=e.Expires||e.expires;f+=void 0===p?900:1*p||0;var h=n,g=a||d+";"+f,v=a||d+";"+f,_=o(u,!0).join(";").toLowerCase(),y=o(c,!0).join(";").toLowerCase(),b=m.HmacSHA1(v,i).toString(),M=[s,t,j.obj2str(c,!0),j.obj2str(u,!0),""].join("\n"),S=["sha1",g,m.SHA1(M).toString(),""].join("\n");return["q-sign-algorithm=sha1","q-ak="+h,"q-sign-time="+g,"q-key-time="+v,"q-header-list="+_,"q-url-param-list="+y,"q-signature="+m.HmacSHA1(S,b).toString()].join("&")},I=function(){},w=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&null!==e[n]&&(t[n]=e[n]);return t},A=function(e,t,n,i){e?M.readFile({filePath:e,position:t,length:n-t,success:function(e){i(e.data)},fail:function(){i(null)}}):i(null)},E=function(e,t,n){n=n||I,e&&t&&t instanceof ArrayBuffer?j.getFileMd5(t,(function(e,t){n(t)})):n()},O=function(e,t){var n=g(e);return t&&t(n),n},x=function(e){var t,n,i,o="";for(t=0,n=e.length/2;t<n;t++)i=parseInt(e[2*t]+e[2*t+1],16),o+=String.fromCharCode(i);return b(o)},D=function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},N=function(e,t){var n=t.Bucket,i=t.Region,o=t.Key;if(e.indexOf("Bucket")>-1||"deleteMultipleObject"===e||"multipartList"===e||"listObjectVersions"===e){if(!n)return"Bucket";if(!i)return"Region"}else if(e.indexOf("Object")>-1||e.indexOf("multipart")>-1||"sliceUploadFile"===e||"abortUploadTask"===e){if(!n)return"Bucket";if(!i)return"Region";if(!o)return"Key"}return!1},R=function(e,t){if(t=s({},t),"getAuth"!==e&&"getV4Auth"!==e&&"getObjectUrl"!==e){var n=t.Headers||{};if(t&&"object"===(void 0===t?"undefined":h(t))){!function(){for(var e in t)t.hasOwnProperty(e)&&e.indexOf("x-cos-")>-1&&(n[e]=t[e])}();var i={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext"};j.each(i,(function(e,i){void 0!==t[e]&&(n[i]=t[e])})),t.Headers=w(n)}}return t},L=function(e,n){return function(i,o){var r=this;"function"==typeof i&&(o=i,i={}),i=R(e,i);var a=function(e){return e&&e.headers&&(e.headers["x-cos-version-id"]&&(e.VersionId=e.headers["x-cos-version-id"]),e.headers["x-cos-delete-marker"]&&(e.DeleteMarker=e.headers["x-cos-delete-marker"])),e},s=function(e,t){o&&o(a(e),a(t))},c=function(){if("getService"!==e&&"abortUploadTask"!==e){var t=N(e,i);if(t)return"missing param "+t;if(i.Region){if(i.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(i.Region))return"Region format error.";r.options.CompatibilityMode||-1!==i.Region.indexOf("-")||"yfb"===i.Region||"default"===i.Region||"accelerate"===i.Region||console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(i.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(i.Bucket))if(i.AppId)i.Bucket=i.Bucket+"-"+i.AppId;else{if(!r.options.AppId)return'Bucket should format as "test-1250000000".';i.Bucket=i.Bucket+"-"+r.options.AppId}i.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete i.AppId)}i.Key&&"/"===i.Key.substr(0,1)&&(i.Key=i.Key.substr(1))}}(),u="getAuth"===e||"getObjectUrl"===e,l=t.Promise;if(!u&&l&&!o)return new l((function(e,t){if(o=function(n,i){n?t(n):e(i)},c)return s({error:c});n.call(r,i,s)}));if(c)return s({error:c});var d=n.call(r,i,s);return u?d:void 0}},P=function(e,t){function n(){if(o=0,t&&"function"==typeof t){i=Date.now();var n,r=Math.max(0,Math.round((s-a)/((i-c)/1e3)*100)/100)||0;n=0===s&&0===e?1:Math.floor(s/e*100)/100||0,c=i,a=s;try{t({loaded:s,total:e,speed:r,percent:n})}catch(e){}}}var i,o,r=this,a=0,s=0,c=Date.now();return function(t,i){if(t&&(s=t.loaded,e=t.total),i)clearTimeout(o),n();else{if(o)return;o=setTimeout(n,r.options.ProgressInterval)}}},U=function(e,t,n){"postObject"===e?n():"putObject"===e?void 0!==t.Body?(t.ContentLength=t.Body.byteLength,n(null,t.ContentLength)):n({error:"missing param Body"}):t.FilePath?M.stat({path:t.FilePath,success:function(e){var i=e.stats;t.FileStat=i,t.FileStat.FilePath=t.FilePath;var o=i.isDirectory()?0:i.size;t.ContentLength=o=o||0,n(null,o)},fail:function(e){n(e)}}):n({error:"missing param FilePath"})},G=function(e){return Date.now()+(e||0)},F=function(e,t){e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length);e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(var i=0;i<n;i++){var o=parseInt(e[i]),r=parseInt(t[i]);if(o>r)return 1;if(o<r)return-1}return 0},B=function(){var e=wx.getSystemInfoSync(),t=F(e.SDKVersion,"2.10.0")>=0,n=!t&&"devtools"===e.platform;return function(){return n&&console.warn("当前小程序版本小于 2.10.0,不支持分片上传,请更新软件。"),n=!1,t}}(),q=function(e){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(e)},j={noop:I,formatParams:R,apiWrapper:L,xml2json:v,json2xml:_,md5:g,clearKey:w,fileSlice:A,getBodyMd5:E,getFileMd5:O,binaryBase64:x,extend:s,isArray:c,isInArray:u,makeArray:l,each:d,map:f,filter:p,clone:r,attr:a,uuid:D,camSafeUrlEncode:i,throttleOnProgress:P,getFileSize:U,getSkewTime:G,obj2str:S,getAuth:T,compareVersion:F,canFileSlice:B,isCIHost:q};e.exports=j}).call(t,n(1))},function(e,t,n){"use strict";var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t){var n=e.prototype;if(Object.create){var o=Object.create(t.prototype);n.__proto__=o}if(!(n instanceof t)){var r=function(){};r.prototype=t.prototype,r=new r,i(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),n.constructor=e)}function r(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,re[e]),this.message=re[e],Error.captureStackTrace&&Error.captureStackTrace(this,r);return n.code=e,t&&(this.message=this.message+": "+t),n}function a(){}function s(e,t){this._node=e,this._refresh=t,c(this)}function c(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);j(e,"length",n.length),i(n,e),e._inc=t}}function u(){}function l(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function d(e,t,n,i){if(i?t[l(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var o=e.ownerDocument;o&&(i&&y(o,e,i),_(o,e,n))}}function f(e,t,n){var i=l(t,n);if(!(i>=0))throw r(se,new Error(e.tagName+"@"+n));for(var o=t.length-1;i<o;)t[i]=t[++i];if(t.length=o,e){var a=e.ownerDocument;a&&(y(a,e,n),n.ownerElement=null)}}function p(e){if(this._features={},e)for(var t in e)this._features=e[t]}function h(){}function g(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function m(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(m(e,t))return!0}while(e=e.nextSibling)}function v(){}function _(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function y(e,t,n,i){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function b(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var o=t.firstChild,r=0;o;)i[r++]=o,o=o.nextSibling;i.length=r}}}function M(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,b(e.ownerDocument,e),t}function S(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===ne){var o=t.firstChild;if(null==o)return t;var r=t.lastChild}else o=r=t;var a=n?n.previousSibling:e.lastChild;o.previousSibling=a,r.nextSibling=n,a?a.nextSibling=o:e.firstChild=o,null==n?e.lastChild=r:n.previousSibling=r;do{o.parentNode=e}while(o!==r&&(o=o.nextSibling));return b(e.ownerDocument||e,e),t.nodeType==ne&&(t.firstChild=t.lastChild=null),t}function C(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);i=e.lastChild}i=e.lastChild;return t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,b(e.ownerDocument,e,t),t}function k(){this._nsMap={}}function T(){}function I(){}function w(){}function A(){}function E(){}function O(){}function x(){}function D(){}function N(){}function R(){}function L(){}function P(){}function U(e,t){var n=[],i=9==this.nodeType?this.documentElement:this,o=i.prefix,r=i.namespaceURI;if(r&&null==o){o=i.lookupPrefix(r);if(null==o)var a=[{namespace:r,prefix:null}]}return F(this,n,e,t,a),n.join("")}function G(e,t,n){var i=e.prefix||"",o=e.namespaceURI;if(!i&&!o)return!1;if("xml"===i&&"http://www.w3.org/XML/1998/namespace"===o||"http://www.w3.org/2000/xmlns/"==o)return!1;for(var r=n.length;r--;){var a=n[r];if(a.prefix==i)return a.namespace!=o}return!0}function F(e,t,n,i,o){if(i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case z:o||(o=[]);var r=(o.length,e.attributes),a=r.length,s=e.firstChild,c=e.tagName;n=H===e.namespaceURI||n,t.push("<",c);for(var u=0;u<a;u++){var l=r.item(u);"xmlns"==l.prefix?o.push({prefix:l.localName,namespace:l.value}):"xmlns"==l.nodeName&&o.push({prefix:"",namespace:l.value})}for(u=0;u<a;u++){l=r.item(u);if(G(l,n,o)){var d=l.prefix||"",f=l.namespaceURI,p=d?" xmlns:"+d:" xmlns";t.push(p,'="',f,'"'),o.push({prefix:d,namespace:f})}F(l,t,n,i,o)}if(G(e,n,o)){d=e.prefix||"",f=e.namespaceURI,p=d?" xmlns:"+d:" xmlns";t.push(p,'="',f,'"'),o.push({prefix:d,namespace:f})}if(s||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),n&&/^script$/i.test(c))for(;s;)s.data?t.push(s.data):F(s,t,n,i,o),s=s.nextSibling;else for(;s;)F(s,t,n,i,o),s=s.nextSibling;t.push("</",c,">")}else t.push("/>");return;case ee:case ne:for(s=e.firstChild;s;)F(s,t,n,i,o),s=s.nextSibling;return;case K:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,g),'"');case W:return t.push(e.data.replace(/[<&]/g,g));case Y:return t.push("<![CDATA[",e.data,"]]>");case Z:return t.push("\x3c!--",e.data,"--\x3e");case te:var h=e.publicId,m=e.systemId;if(t.push("<!DOCTYPE ",e.name),h)t.push(' PUBLIC "',h),m&&"."!=m&&t.push('" "',m),t.push('">');else if(m&&"."!=m)t.push(' SYSTEM "',m,'">');else{var v=e.internalSubset;v&&t.push(" [",v,"]"),t.push(">")}return;case Q:return t.push("<?",e.target," ",e.data,"?>");case X:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function B(e,t,n){var i;switch(t.nodeType){case z:i=t.cloneNode(!1),i.ownerDocument=e;case ne:break;case K:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var o=t.firstChild;o;)i.appendChild(B(e,o,n)),o=o.nextSibling;return i}function q(e,t,n){var i=new t.constructor;for(var o in t){var r=t[o];"object"!=(void 0===r?"undefined":$(r))&&r!=i[o]&&(i[o]=r)}switch(t.childNodes&&(i.childNodes=new a),i.ownerDocument=e,i.nodeType){case z:var s=t.attributes,c=i.attributes=new u,l=s.length;c._ownerElement=i;for(var d=0;d<l;d++)i.setAttributeNode(q(e,s.item(d),!0));break;case K:n=!0}if(n)for(var f=t.firstChild;f;)i.appendChild(q(e,f,n)),f=f.nextSibling;return i}function j(e,t,n){e[t]=n}var $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H="http://www.w3.org/1999/xhtml",V={},z=V.ELEMENT_NODE=1,K=V.ATTRIBUTE_NODE=2,W=V.TEXT_NODE=3,Y=V.CDATA_SECTION_NODE=4,X=V.ENTITY_REFERENCE_NODE=5,J=V.ENTITY_NODE=6,Q=V.PROCESSING_INSTRUCTION_NODE=7,Z=V.COMMENT_NODE=8,ee=V.DOCUMENT_NODE=9,te=V.DOCUMENT_TYPE_NODE=10,ne=V.DOCUMENT_FRAGMENT_NODE=11,ie=V.NOTATION_NODE=12,oe={},re={},ae=(oe.INDEX_SIZE_ERR=(re[1]="Index size error",1),oe.DOMSTRING_SIZE_ERR=(re[2]="DOMString size error",2),oe.HIERARCHY_REQUEST_ERR=(re[3]="Hierarchy request error",3)),se=(oe.WRONG_DOCUMENT_ERR=(re[4]="Wrong document",4),oe.INVALID_CHARACTER_ERR=(re[5]="Invalid character",5),oe.NO_DATA_ALLOWED_ERR=(re[6]="No data allowed",6),oe.NO_MODIFICATION_ALLOWED_ERR=(re[7]="No modification allowed",7),oe.NOT_FOUND_ERR=(re[8]="Not found",8)),ce=(oe.NOT_SUPPORTED_ERR=(re[9]="Not supported",9),oe.INUSE_ATTRIBUTE_ERR=(re[10]="Attribute in use",10));oe.INVALID_STATE_ERR=(re[11]="Invalid state",11),oe.SYNTAX_ERR=(re[12]="Syntax error",12),oe.INVALID_MODIFICATION_ERR=(re[13]="Invalid modification",13),oe.NAMESPACE_ERR=(re[14]="Invalid namespace",14),oe.INVALID_ACCESS_ERR=(re[15]="Invalid access",15),r.prototype=Error.prototype,i(oe,r),a.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)F(this[i],n,e,t);return n.join("")}},s.prototype.item=function(e){return c(this),this[e]},o(s,a),u.prototype={length:0,item:a.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new r(ce);var n=this.getNamedItem(e.nodeName);return d(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new r(ce);return t=this.getNamedItemNS(e.namespaceURI,e.localName),d(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return f(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return f(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},p.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var i=new v;if(i.implementation=this,i.childNodes=new a,i.doctype=n,n&&i.appendChild(n),t){var o=i.createElementNS(e,t);i.appendChild(o)}return i},createDocumentType:function(e,t,n){var i=new O;return i.name=e,i.nodeName=e,i.publicId=t,i.systemId=n,i}},h.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return S(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return M(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return q(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==W&&e.nodeType==W?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==K?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==K?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},i(V,h),i(V,h.prototype),v.prototype={nodeName:"#document",nodeType:ee,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==ne){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==z&&(this.documentElement=e),S(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),M(this,e)},importNode:function(e,t){return B(this,e,t)},getElementById:function(e){var t=null;return m(this.documentElement,(function(n){if(n.nodeType==z&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new k;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new a,(t.attributes=new u)._ownerElement=t,t},createDocumentFragment:function(){var e=new R;return e.ownerDocument=this,e.childNodes=new a,e},createTextNode:function(e){var t=new w;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new A;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new E;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new L;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new T;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new N;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new k,i=t.split(":"),o=n.attributes=new u;return n.childNodes=new a,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,o._ownerElement=n,n},createAttributeNS:function(e,t){var n=new T,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},o(v,h),k.prototype={nodeType:z,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===ne?this.insertBefore(e,null):C(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new s(this,(function(t){var n=[];return m(t,(function(i){i===t||i.nodeType!=z||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new s(this,(function(n){var i=[];return m(n,(function(o){o===n||o.nodeType!==z||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||i.push(o)})),i}))}},v.prototype.getElementsByTagName=k.prototype.getElementsByTagName,v.prototype.getElementsByTagNameNS=k.prototype.getElementsByTagNameNS,o(k,h),T.prototype.nodeType=K,o(T,h),I.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(re[ae])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},o(I,h),w.prototype={nodeName:"#text",nodeType:W,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},o(w,I),A.prototype={nodeName:"#comment",nodeType:Z},o(A,I),E.prototype={nodeName:"#cdata-section",nodeType:Y},o(E,I),O.prototype.nodeType=te,o(O,h),x.prototype.nodeType=ie,o(x,h),D.prototype.nodeType=J,o(D,h),N.prototype.nodeType=X,o(N,h),R.prototype.nodeName="#document-fragment",R.prototype.nodeType=ne,o(R,h),L.prototype.nodeType=Q,o(L,h),P.prototype.serializeToString=function(e,t,n){return U.call(e,t,n)},h.prototype.toString=U;try{if(Object.defineProperty){var ue=function e(t){switch(t.nodeType){case z:case ne:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};Object.defineProperty(s.prototype,"length",{get:function(){return c(this),this.$$length}}),Object.defineProperty(h.prototype,"textContent",{get:function(){return ue(this)},set:function(e){switch(this.nodeType){case z:case ne:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),j=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=p,t.XMLSerializer=P},function(e,t,n){"use strict";var i=function(e){e=e||{};var t,n=e.Base64,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(e){for(var t={},n=0,i=e.length;n<i;n++)t[e.charAt(n)]=n;return t}(i),r=String.fromCharCode,a=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?r(192|t>>>6)+r(128|63&t):r(224|t>>>12&15)+r(128|t>>>6&63)+r(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return r(240|t>>>18&7)+r(128|t>>>12&63)+r(128|t>>>6&63)+r(128|63&t)},s=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,c=function(e){return e.replace(s,a)},u=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(n>>>18),i.charAt(n>>>12&63),t>=2?"=":i.charAt(n>>>6&63),t>=1?"=":i.charAt(63&n)].join("")},l=e.btoa?function(t){return e.btoa(t)}:function(e){return e.replace(/[\s\S]{1,3}/g,u)},d=t?function(e){return(e.constructor===t.constructor?e:new t(e)).toString("base64")}:function(e){return l(c(e))},f=function(e,t){return t?d(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):d(String(e))},p=function(e){return f(e,!0)},h=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),g=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return r(55296+(n>>>10))+r(56320+(1023&n));case 3:return r((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return r((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},m=function(e){return e.replace(h,g)},v=function(e){var t=e.length,n=t%4,i=(t>0?o[e.charAt(0)]<<18:0)|(t>1?o[e.charAt(1)]<<12:0)|(t>2?o[e.charAt(2)]<<6:0)|(t>3?o[e.charAt(3)]:0),a=[r(i>>>16),r(i>>>8&255),r(255&i)];return a.length-=[0,0,2,1][n],a.join("")},_=e.atob?function(t){return e.atob(t)}:function(e){return e.replace(/[\s\S]{1,4}/g,v)},y=t?function(e){return(e.constructor===t.constructor?e:new t(e,"base64")).toString()}:function(e){return m(_(e))},b=function(e){return y(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))};return{VERSION:"2.1.9",atob:_,btoa:l,fromBase64:b,toBase64:f,utob:c,encode:f,encodeURI:p,btou:m,decode:b,noConflict:function(){var t=e.Base64;return e.Base64=n,t}}}();e.exports=i},function(e,t,n){"use strict";var i=function(e){var t={},n=function(e){return!t[e]&&(t[e]=[]),t[e]};e.on=function(e,t){n(e).push(t)},e.off=function(e,t){for(var i=n(e),o=i.length-1;o>=0;o--)t===i[o]&&i.splice(o,1)},e.emit=function(e,t){for(var i=n(e).map((function(e){return e})),o=0;o<i.length;o++)i[o](t)}},o=function(){i(this)};e.exports.init=i,e.exports.EventProxy=o},function(e,t,n){"use strict";var i,o,r=n(0),a=function(){try{var e=JSON.parse(wx.getStorageSync("cos_sdk_upload_cache"))}catch(e){}return e||(e=[]),e},s=function(){try{wx.setStorageSync("cos_sdk_upload_cache",JSON.stringify(i))}catch(e){}},c=function(){if(!i){i=a();for(var e=!1,t=Math.round(Date.now()/1e3),n=i.length-1;n>=0;n--){var o=i[n][2];(!o||o+2592e3<t)&&(i.splice(n,1),e=!0)}e&&s()}},u=function(){o||(o=setTimeout((function(){s(),o=null}),400))},l={using:{},setUsing:function(e){l.using[e]=!0},removeUsing:function(e){delete l.using[e]},getFileId:function(e,t,n,i){return e.FilePath&&e.size&&e.lastModifiedTime&&t?r.md5([e.FilePath].join("::"))+"-"+r.md5([e.size,e.mode,e.lastAccessedTime,e.lastModifiedTime,t,n,i].join("::")):null},getUploadIdList:function(e){if(!e)return null;c();for(var t=[],n=0;n<i.length;n++)i[n][0]===e&&t.push(i[n][1]);return t.length?t:null},saveUploadId:function(e,t,n){if(c(),e){for(var o=e.substr(0,e.indexOf("-")+1),r=i.length-1;r>=0;r--){var a=i[r];(a[0]===e&&a[1]===t||e!==a[0]&&0===a[0].indexOf(o))&&i.splice(r,1)}i.unshift([e,t,Math.round(Date.now()/1e3)]),i.length>n&&i.splice(n),u()}},removeUploadId:function(e){c(),delete l.using[e];for(var t=i.length-1;t>=0;t--)i[t][1]===e&&i.splice(t,1);u()}};e.exports=l},function(e,t,n){"use strict";var i=n(7);e.exports=i},function(e,t,n){"use strict";var i=n(0),o=n(4),r=n(17),a=n(18),s=n(24),c={SecretId:"",SecretKey:"",XCosSecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1048576,SliceSize:1048576,CopyChunkParallelLimit:20,CopyChunkSize:10485760,CopySliceSize:10485760,MaxPartNumber:1e4,ProgressInterval:1e3,UploadQueueSize:1e4,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1},u=function(e){this.options=i.extend(i.clone(c),e||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1048576,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1048576,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),o.init(this),r.init(this)};a.init(u,r),s.init(u,r),u.getAuthorization=i.getAuth,u.version="1.1.5",e.exports=u},function(module,exports,__webpack_require__){"use strict";(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}var ERROR="input is invalid type",WINDOW="object"===("undefined"==typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"==typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===(void 0===process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(11),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===(void 0===e?"undefined":_typeof(e))&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.getCtx=e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};Md5.prototype.update=function(e){if(!this.finalized){var t,n=void 0===e?"undefined":_typeof(e);if("string"!==n){if("object"!==n)throw ERROR;if(null===e)throw ERROR;if(!ARRAY_BUFFER||e.constructor!==ArrayBuffer&&"ArrayBuffer"!==e.constructor.name){if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw ERROR}else e=new Uint8Array(e);t=!0}for(var i,o,r=0,a=e.length,s=this.blocks,c=this.buffer8;r<a;){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)if(ARRAY_BUFFER)for(o=this.start;r<a&&o<64;++r)c[o++]=e[r];else for(o=this.start;r<a&&o<64;++r)s[o>>2]|=e[r]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;r<a&&o<64;++r)i=e.charCodeAt(r),i<128?c[o++]=i:i<2048?(c[o++]=192|i>>6,c[o++]=128|63&i):i<55296||i>=57344?(c[o++]=224|i>>12,c[o++]=128|i>>6&63,c[o++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),c[o++]=240|i>>18,c[o++]=128|i>>12&63,c[o++]=128|i>>6&63,c[o++]=128|63&i);else for(o=this.start;r<a&&o<64;++r)i=e.charCodeAt(r),i<128?s[o>>2]|=i<<SHIFT[3&o++]:i<2048?(s[o>>2]|=(192|i>>6)<<SHIFT[3&o++],s[o>>2]|=(128|63&i)<<SHIFT[3&o++]):i<55296||i>=57344?(s[o>>2]|=(224|i>>12)<<SHIFT[3&o++],s[o>>2]|=(128|i>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&i)<<SHIFT[3&o++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),s[o>>2]|=(240|i>>18)<<SHIFT[3&o++],s[o>>2]|=(128|i>>12&63)<<SHIFT[3&o++],s[o>>2]|=(128|i>>6&63)<<SHIFT[3&o++],s[o>>2]|=(128|63&i)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,i,o,r,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,i=(-1732584194^2004318071&e)+a[1]-117830708,i=(i<<12|i>>>20)+e<<0,n=(-271733879^i&(-271733879^e))+a[2]-1126478375,n=(n<<17|n>>>15)+i<<0,t=(e^n&(i^e))+a[3]-1316259209,t=(t<<22|t>>>10)+n<<0):(e=this.h0,t=this.h1,n=this.h2,i=this.h3,e+=(i^t&(n^i))+a[0]-680876936,e=(e<<7|e>>>25)+t<<0,i+=(n^e&(t^n))+a[1]-389564586,i=(i<<12|i>>>20)+e<<0,n+=(t^i&(e^t))+a[2]+606105819,n=(n<<17|n>>>15)+i<<0,t+=(e^n&(i^e))+a[3]-1044525330,t=(t<<22|t>>>10)+n<<0),e+=(i^t&(n^i))+a[4]-176418897,e=(e<<7|e>>>25)+t<<0,i+=(n^e&(t^n))+a[5]+1200080426,i=(i<<12|i>>>20)+e<<0,n+=(t^i&(e^t))+a[6]-1473231341,n=(n<<17|n>>>15)+i<<0,t+=(e^n&(i^e))+a[7]-45705983,t=(t<<22|t>>>10)+n<<0,e+=(i^t&(n^i))+a[8]+1770035416,e=(e<<7|e>>>25)+t<<0,i+=(n^e&(t^n))+a[9]-1958414417,i=(i<<12|i>>>20)+e<<0,n+=(t^i&(e^t))+a[10]-42063,n=(n<<17|n>>>15)+i<<0,t+=(e^n&(i^e))+a[11]-1990404162,t=(t<<22|t>>>10)+n<<0,e+=(i^t&(n^i))+a[12]+1804603682,e=(e<<7|e>>>25)+t<<0,i+=(n^e&(t^n))+a[13]-40341101,i=(i<<12|i>>>20)+e<<0,n+=(t^i&(e^t))+a[14]-1502002290,n=(n<<17|n>>>15)+i<<0,t+=(e^n&(i^e))+a[15]+1236535329,t=(t<<22|t>>>10)+n<<0,e+=(n^i&(t^n))+a[1]-165796510,e=(e<<5|e>>>27)+t<<0,i+=(t^n&(e^t))+a[6]-1069501632,i=(i<<9|i>>>23)+e<<0,n+=(e^t&(i^e))+a[11]+643717713,n=(n<<14|n>>>18)+i<<0,t+=(i^e&(n^i))+a[0]-373897302,t=(t<<20|t>>>12)+n<<0,e+=(n^i&(t^n))+a[5]-701558691,e=(e<<5|e>>>27)+t<<0,i+=(t^n&(e^t))+a[10]+38016083,i=(i<<9|i>>>23)+e<<0,n+=(e^t&(i^e))+a[15]-660478335,n=(n<<14|n>>>18)+i<<0,t+=(i^e&(n^i))+a[4]-405537848,t=(t<<20|t>>>12)+n<<0,e+=(n^i&(t^n))+a[9]+568446438,e=(e<<5|e>>>27)+t<<0,i+=(t^n&(e^t))+a[14]-1019803690,i=(i<<9|i>>>23)+e<<0,n+=(e^t&(i^e))+a[3]-187363961,n=(n<<14|n>>>18)+i<<0,t+=(i^e&(n^i))+a[8]+1163531501,t=(t<<20|t>>>12)+n<<0,e+=(n^i&(t^n))+a[13]-1444681467,e=(e<<5|e>>>27)+t<<0,i+=(t^n&(e^t))+a[2]-51403784,i=(i<<9|i>>>23)+e<<0,n+=(e^t&(i^e))+a[7]+1735328473,n=(n<<14|n>>>18)+i<<0,t+=(i^e&(n^i))+a[12]-1926607734,t=(t<<20|t>>>12)+n<<0,o=t^n,e+=(o^i)+a[5]-378558,e=(e<<4|e>>>28)+t<<0,i+=(o^e)+a[8]-2022574463,i=(i<<11|i>>>21)+e<<0,r=i^e,n+=(r^t)+a[11]+1839030562,n=(n<<16|n>>>16)+i<<0,t+=(r^n)+a[14]-35309556,t=(t<<23|t>>>9)+n<<0,o=t^n,e+=(o^i)+a[1]-1530992060,e=(e<<4|e>>>28)+t<<0,i+=(o^e)+a[4]+1272893353,i=(i<<11|i>>>21)+e<<0,r=i^e,n+=(r^t)+a[7]-155497632,n=(n<<16|n>>>16)+i<<0,t+=(r^n)+a[10]-1094730640,t=(t<<23|t>>>9)+n<<0,o=t^n,e+=(o^i)+a[13]+681279174,e=(e<<4|e>>>28)+t<<0,i+=(o^e)+a[0]-358537222,i=(i<<11|i>>>21)+e<<0,r=i^e,n+=(r^t)+a[3]-722521979,n=(n<<16|n>>>16)+i<<0,t+=(r^n)+a[6]+76029189,t=(t<<23|t>>>9)+n<<0,o=t^n,e+=(o^i)+a[9]-640364487,e=(e<<4|e>>>28)+t<<0,i+=(o^e)+a[12]-421815835,i=(i<<11|i>>>21)+e<<0,r=i^e,n+=(r^t)+a[15]+530742520,n=(n<<16|n>>>16)+i<<0,t+=(r^n)+a[2]-995338651,t=(t<<23|t>>>9)+n<<0,e+=(n^(t|~i))+a[0]-198630844,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~n))+a[7]+1126891415,i=(i<<10|i>>>22)+e<<0,n+=(e^(i|~t))+a[14]-1416354905,n=(n<<15|n>>>17)+i<<0,t+=(i^(n|~e))+a[5]-57434055,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~i))+a[12]+1700485571,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~n))+a[3]-1894986606,i=(i<<10|i>>>22)+e<<0,n+=(e^(i|~t))+a[10]-1051523,n=(n<<15|n>>>17)+i<<0,t+=(i^(n|~e))+a[1]-2054922799,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~i))+a[8]+1873313359,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~n))+a[15]-30611744,i=(i<<10|i>>>22)+e<<0,n+=(e^(i|~t))+a[6]-1560198380,n=(n<<15|n>>>17)+i<<0,t+=(i^(n|~e))+a[13]+1309151649,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~i))+a[4]-145523070,e=(e<<6|e>>>26)+t<<0,i+=(t^(e|~n))+a[11]-1120210379,i=(i<<10|i>>>22)+e<<0,n+=(e^(i|~t))+a[2]+718787259,n=(n<<15|n>>>17)+i<<0,t+=(i^(n|~e))+a[9]-343485551,t=(t<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+i<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,i="",o=this.array(),r=0;r<15;)e=o[r++],t=o[r++],n=o[r++],i+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=o[r],i+(BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==")};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}()}).call(exports,__webpack_require__(9),__webpack_require__(1),__webpack_require__(10)(module))},function(e,t,n){"use strict";function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(d===setTimeout)return setTimeout(e,0);if((d===i||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){m&&h&&(m=!1,h.length?g=h.concat(g):v=-1,g.length&&c())}function c(){if(!m){var e=r(s);m=!0;for(var t=g.length;t;){for(h=g,g=[];++v<t;)h&&h[v].run();v=-1,t=g.length}h=null,m=!1,a(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var d,f,p=e.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:i}catch(e){d=i}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(e){f=o}}();var h,g=[],m=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new u(e,t)),1!==g.length||m||r(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.prependListener=l,p.prependOnceListener=l,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";var i=i||function(e,t){var n={},i=n.lib={},o=function(){},r=i.Base={extend:function(e){o.prototype=this;var t=new o;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes;if(e=e.sigBytes,this.clamp(),i%4)for(var o=0;o<e;o++)t[i+o>>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(i+o)%4*8;else if(65535<n.length)for(o=0;o<e;o+=4)t[i+o>>>2]=n[o>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],i=0;i<t;i+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],i=0;i<e;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,o=n.sigBytes,r=this.blockSize,s=o/(4*r);s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0);if(t=s*r,o=e.min(4*t,o),t){for(var c=0;c<t;c+=r)this._doProcessBlock(i,c);c=i.splice(0,t),n.sigBytes-=o}return new a.init(c,o)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=n.algo={};return n}(Math);!function(){var e=i,t=e.lib,n=t.WordArray,o=t.Hasher,r=[];t=e.algo.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],a=n[2],s=n[3],c=n[4],u=0;80>u;u++){if(16>u)r[u]=0|e[t+u];else{var l=r[u-3]^r[u-8]^r[u-14]^r[u-16];r[u]=l<<1|l>>>31}l=(i<<5|i>>>27)+c+r[u],l=20>u?l+(1518500249+(o&a|~o&s)):40>u?l+(1859775393+(o^a^s)):60>u?l+((o&a|o&s|a&s)-1894007588):l+((o^a^s)-899497514),c=s,s=a,a=o<<30|o>>>2,o=i,i=l}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=o._createHelper(t),e.HmacSHA1=o._createHmacHelper(t)}(),function(){var e=i,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var i=e.blockSize,o=4*i;n.sigBytes>o&&(n=e.finalize(n)),n.clamp();for(var r=this._oKey=n.clone(),a=this._iKey=n.clone(),s=r.words,c=a.words,u=0;u<i;u++)s[u]^=1549556828,c[u]^=909522486;r.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e=i,t=e.lib,n=t.WordArray,o=e.enc;o.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var o=[],r=0;r<n;r+=3)for(var a=t[r>>>2]>>>24-r%4*8&255,s=t[r+1>>>2]>>>24-(r+1)%4*8&255,c=t[r+2>>>2]>>>24-(r+2)%4*8&255,u=a<<16|s<<8|c,l=0;l<4&&r+.75*l<n;l++)o.push(i.charAt(u>>>6*(3-l)&63));var d=i.charAt(64);if(d)for(;o.length%4;)o.push(d);return o.join("")},parse:function(e){var t=e.length,i=this._map,o=i.charAt(64);if(o){var r=e.indexOf(o);-1!=r&&(t=r)}for(var a=[],s=0,c=0;c<t;c++)if(c%4){var u=i.indexOf(e.charAt(c-1))<<c%4*2,l=i.indexOf(e.charAt(c))>>>6-c%4*2;a[s>>>2]|=(u|l)<<24-s%4*8,s++}return n.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.exports=i},function(e,t,n){"use strict";var i=n(14).DOMParser,o=function(e){function t(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function n(e){return e.prefix}function o(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function r(e,t,n,i){for(var o=0;o<e.length;o++){var r=e[o];if("string"==typeof r){if(r==i)break}else if(r instanceof RegExp){if(r.test(i))break}else if("function"==typeof r&&r(t,n,i))break}return o!=e.length}function a(t,n,i){switch(e.arrayAccessForm){case"property":t[n]instanceof Array?t[n+"_asArray"]=t[n]:t[n+"_asArray"]=[t[n]]}!(t[n]instanceof Array)&&e.arrayAccessFormPaths.length>0&&r(e.arrayAccessFormPaths,t,n,i)&&(t[n]=[t[n]])}function s(e){var t=e.split(/[-T:+Z]/g),n=new Date(t[0],t[1]-1,t[2]),i=t[5].split(".");if(n.setHours(t[3],t[4],i[0]),i.length>1&&n.setMilliseconds(i[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),n.setMinutes(n.getMinutes()-o-n.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())));return n}function c(t,n,i){if(e.datetimeAccessFormPaths.length>0){var o=i.split(".#")[0];return r(e.datetimeAccessFormPaths,t,n,o)?s(t):t}return t}function u(t,n,i,o){return!(n==C.ELEMENT_NODE&&e.xmlElementsFilter.length>0)||r(e.xmlElementsFilter,t,i,o)}function l(i,o){if(i.nodeType==C.DOCUMENT_NODE){for(var r=new Object,s=i.childNodes,d=0;d<s.length;d++){var f=s.item(d);if(f.nodeType==C.ELEMENT_NODE){var p=t(f);r[p]=l(f,p)}}return r}if(i.nodeType==C.ELEMENT_NODE){r=new Object;r.__cnt=0;for(s=i.childNodes,d=0;d<s.length;d++){f=s.item(d),p=t(f);if(f.nodeType!=C.COMMENT_NODE){var h=o+"."+p;u(r,f.nodeType,p,h)&&(r.__cnt++,null==r[p]?(r[p]=l(f,h),a(r,p,h)):(null!=r[p]&&(r[p]instanceof Array||(r[p]=[r[p]],a(r,p,h))),r[p][r[p].length]=l(f,h)))}}for(var g=0;g<i.attributes.length;g++){var m=i.attributes.item(g);r.__cnt++,r[e.attributePrefix+m.name]=m.value}var v=n(i);return null!=v&&""!=v&&(r.__cnt++,r.__prefix=v),null!=r["#text"]&&(r.__text=r["#text"],r.__text instanceof Array&&(r.__text=r.__text.join("\n")),e.stripWhitespaces&&(r.__text=r.__text.trim()),delete r["#text"],"property"==e.arrayAccessForm&&delete r["#text_asArray"],r.__text=c(r.__text,p,o+"."+p)),null!=r["#cdata-section"]&&(r.__cdata=r["#cdata-section"],delete r["#cdata-section"],"property"==e.arrayAccessForm&&delete r["#cdata-section_asArray"]),0==r.__cnt&&"text"==e.emptyNodeForm?r="":1==r.__cnt&&null!=r.__text?r=r.__text:1!=r.__cnt||null==r.__cdata||e.keepCData?r.__cnt>1&&null!=r.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""==r.__text||""==r.__text.trim())&&delete r.__text:r=r.__cdata,delete r.__cnt,!e.enableToStringFunc||null==r.__text&&null==r.__cdata||(r.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),r}if(i.nodeType==C.TEXT_NODE||i.nodeType==C.CDATA_SECTION_NODE)return i.nodeValue}function d(t,n,i,r){var a="<"+(null!=t&&null!=t.__prefix?t.__prefix+":":"")+n;if(null!=i)for(var s=0;s<i.length;s++){var c=i[s],u=t[c];e.escapeMode&&(u=o(u)),a+=" "+c.substr(e.attributePrefix.length)+"=",e.useDoubleQuotes?a+='"'+u+'"':a+="'"+u+"'"}return a+(r?"/>":">")}function f(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function p(e,t){return-1!==e.indexOf(t,e.length-t.length)}function h(t,n){return!!("property"==e.arrayAccessForm&&p(n.toString(),"_asArray")||0==n.toString().indexOf(e.attributePrefix)||0==n.toString().indexOf("__")||t[n]instanceof Function)}function g(e){var t=0;if(e instanceof Object)for(var n in e)h(e,n)||t++;return t}function m(t,n,i){return 0==e.jsonPropertiesFilter.length||""==i||r(e.jsonPropertiesFilter,t,n,i)}function v(t){var n=[];if(t instanceof Object)for(var i in t)-1==i.toString().indexOf("__")&&0==i.toString().indexOf(e.attributePrefix)&&n.push(i);return n}function _(t){var n="";return null!=t.__cdata&&(n+="<![CDATA["+t.__cdata+"]]>"),null!=t.__text&&(e.escapeMode?n+=o(t.__text):n+=t.__text),n}function y(t){var n="";return t instanceof Object?n+=_(t):null!=t&&(e.escapeMode?n+=o(t):n+=t),n}function b(e,t){return""===e?t:e+"."+t}function M(e,t,n,i){var o="";if(0==e.length)o+=d(e,t,n,!0);else for(var r=0;r<e.length;r++)o+=d(e[r],t,v(e[r]),!1),o+=S(e[r],b(i,t)),o+=f(e[r],t);return o}function S(e,t){var n="";if(g(e)>0)for(var i in e)if(!h(e,i)&&(""==t||m(e,i,b(t,i)))){var o=e[i],r=v(o);if(null==o||void 0==o)n+=d(o,i,r,!0);else if(o instanceof Object)if(o instanceof Array)n+=M(o,i,r,t);else if(o instanceof Date)n+=d(o,i,r,!1),n+=o.toISOString(),n+=f(o,i);else{var a=g(o);a>0||null!=o.__text||null!=o.__cdata?(n+=d(o,i,r,!1),n+=S(o,b(t,i)),n+=f(o,i)):n+=d(o,i,r,!0)}else n+=d(o,i,r,!1),n+=y(o),n+=f(o,i)}return n+y(e)}e=e||{},function(){void 0===e.escapeMode&&(e.escapeMode=!0),e.attributePrefix=e.attributePrefix||"_",e.arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0),e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0),void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0),e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!1),e.xmlElementsFilter=e.xmlElementsFilter||[],e.jsonPropertiesFilter=e.jsonPropertiesFilter||[],void 0===e.keepCData&&(e.keepCData=!1)}();var C={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};this.parseXmlString=function(e){if(void 0===e)return null;var t;if(i){var n=new i,o=null;try{o=n.parseFromString("INVALID","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(e){o=null}try{t=n.parseFromString(e,"text/xml"),null!=o&&t.getElementsByTagNameNS(o,"parsererror").length>0&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?s(e):e},this.xml2json=function(e){return l(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return S(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}},r=function(e){if(!e)return null;var t=new i,n=t.parseFromString(e,"text/xml"),r=new o,a=r.xml2json(n);return a.html&&a.getElementsByTagName("parsererror").length?null:a};e.exports=r},function(e,t,n){"use strict";function i(e){this.options=e||{locator:{}}}function o(e,t,n){function i(t){var i=e[t];!i&&a&&(i=2==e.length?function(n){e(t,n)}:e),o[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+s(n))}||function(){}}if(!e){if(t instanceof r)return t;e=t}var o={},a=e instanceof Function;return n=n||{},i("warning"),i("error"),i("fatalError"),o}function r(){this.cdata=!1}function a(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function s(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function c(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function u(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}i.prototype.parseFromString=function(e,t){var n=this.options,i=new l,a=n.domBuilder||new r,s=n.errorHandler,c=n.locator,u=n.xmlns||{},d={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&a.setDocumentLocator(c),i.errorHandler=o(s,a,c),i.domBuilder=n.domBuilder||a,/\/x?html?$/.test(t)&&(d.nbsp=" ",d.copy="©",u[""]="http://www.w3.org/1999/xhtml"),u.xml=u.xml||"http://www.w3.org/XML/1998/namespace",e?i.parse(e,u,d):i.errorHandler.error("invalid doc source"),a.doc},r.prototype={startDocument:function(){this.doc=(new d).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var o=this.doc,r=o.createElementNS(e,n||t),s=i.length;u(this,r),this.currentElement=r,this.locator&&a(this.locator,r);for(var c=0;c<s;c++){e=i.getURI(c);var l=i.getValue(c),d=(n=i.getQName(c),o.createAttributeNS(e,n));this.locator&&a(i.getLocator(c),d),d.value=d.nodeValue=l,r.setAttributeNode(d)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&a(this.locator,n),u(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=c.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&a(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=c.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&a(this.locator,i),u(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var o=i.createDocumentType(e,t,n);this.locator&&a(this.locator,o),u(this,o)}},warning:function(e){console.warn("[xmldom warning]\t"+e,s(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,s(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,s(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){r.prototype[e]=function(){return null}}));var l=n(15).XMLReader,d=t.DOMImplementation=n(2).DOMImplementation;t.XMLSerializer=n(2).XMLSerializer,t.DOMParser=i},function(e,t,n){"use strict";function i(){}function o(e,t,n,i,o){function l(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function h(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?l(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function g(t){if(t>C){var n=e.substring(C,t).replace(/&#?\w+;/g,h);b&&m(C),i.characters(n,0,t-C),C=t}}function m(t,n){for(;t>=_&&(n=y.exec(e));)v=n.index,_=v+n[0].length,b.lineNumber++;b.columnNumber=t-v+1}for(var v=0,_=0,y=/.*(?:\r\n?|\n)|.*$/g,b=i.locator,M=[{currentNSMap:t}],S={},C=0;;){try{var k=e.indexOf("<",C);if(k<0){if(!e.substr(C).match(/^\s*$/)){var T=i.doc,I=T.createTextNode(e.substr(C));T.appendChild(I),i.currentElement=I}return}switch(k>C&&g(k),e.charAt(k+1)){case"/":var w=e.indexOf(">",k+3),A=e.substring(k+2,w),E=M.pop();w<0?(A=e.substring(k+2).replace(/[\s<].*/,""),o.error("end tag name: "+A+" is not complete:"+E.tagName),w=k+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),o.error("end tag name: "+A+" maybe not complete"),w=k+1+A.length);var O=E.localNSMap,x=E.tagName==A;if(x||E.tagName&&E.tagName.toLowerCase()==A.toLowerCase()){if(i.endElement(E.uri,E.localName,A),O)for(var D in O)i.endPrefixMapping(D);x||o.fatalError("end tag name: "+A+" is not match the current start tagName:"+E.tagName)}else M.push(E);w++;break;case"?":b&&m(k),w=f(e,k,i);break;case"!":b&&m(k),w=d(e,k,i,o);break;default:b&&m(k);var N=new p,R=M[M.length-1].currentNSMap,L=(w=a(e,k,N,R,h,o),N.length);if(!N.closed&&u(e,w,N.tagName,S)&&(N.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),b&&L){for(var P=r(b,{}),U=0;U<L;U++){var G=N[U];m(G.offset),G.locator=r(b,{})}i.locator=P,s(N,i,R)&&M.push(N),i.locator=b}else s(N,i,R)&&M.push(N);"http://www.w3.org/1999/xhtml"!==N.uri||N.closed?w++:w=c(e,w,N.tagName,h,i)}}catch(e){o.error("element parse error: "+e),w=-1}w>C?C=w:g(Math.max(k,C)+1)}}function r(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function a(e,t,n,i,o,r){for(var a,s=++t,c=y;;){var u=e.charAt(s);switch(u){case"=":if(c===b)a=e.slice(t,s),c=S;else{if(c!==M)throw new Error("attribute equal must after attrName");c=S}break;case"'":case'"':if(c===S||c===b){if(c===b&&(r.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");l=e.slice(t,s).replace(/&#?\w+;/g,o),n.add(a,l,t-1),c=k}else{if(c!=C)throw new Error('attribute value must after "="');l=e.slice(t,s).replace(/&#?\w+;/g,o),n.add(a,l,t),r.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=s+1,c=k}break;case"/":switch(c){case y:n.setTagName(e.slice(t,s));case k:case T:case I:c=I,n.closed=!0;case C:case b:case M:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return r.error("unexpected end of input"),c==y&&n.setTagName(e.slice(t,s)),s;case">":switch(c){case y:n.setTagName(e.slice(t,s));case k:case T:case I:break;case C:case b:l=e.slice(t,s),"/"===l.slice(-1)&&(n.closed=!0,l=l.slice(0,-1));case M:c===M&&(l=a),c==C?(r.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l.replace(/&#?\w+;/g,o),t)):("http://www.w3.org/1999/xhtml"===i[""]&&l.match(/^(?:disabled|checked|selected)$/i)||r.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),n.add(l,l,t));break;case S:throw new Error("attribute value missed!!")}return s;case"":u=" ";default:if(u<=" ")switch(c){case y:n.setTagName(e.slice(t,s)),c=T;break;case b:a=e.slice(t,s),c=M;break;case C:var l=e.slice(t,s).replace(/&#?\w+;/g,o);r.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l,t);case k:c=T}else switch(c){case M:n.tagName,"http://www.w3.org/1999/xhtml"===i[""]&&a.match(/^(?:disabled|checked|selected)$/i)||r.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,c=b;break;case k:r.warning('attribute space is required"'+a+'"!!');case T:c=b,t=s;break;case S:c=C,t=s;break;case I:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function s(e,t,n){for(var i=e.tagName,o=null,r=e.length;r--;){var a=e[r],s=a.qName,c=a.value,u=s.indexOf(":");if(u>0)var d=a.prefix=s.slice(0,u),f=s.slice(u+1),p="xmlns"===d&&f;else f=s,d=null,p="xmlns"===s&&"";a.localName=f,!1!==p&&(null==o&&(o={},l(n,n={})),n[p]=o[p]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(p,c))}for(r=e.length;r--;){a=e[r];d=a.prefix;d&&("xml"===d&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==d&&(a.uri=n[d||""]))}u=i.indexOf(":");u>0?(d=e.prefix=i.slice(0,u),f=e.localName=i.slice(u+1)):(d=null,f=e.localName=i);var h=e.uri=n[d||""];if(t.startElement(h,f,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(h,f,i),o)for(d in o)t.endPrefixMapping(d)}function c(e,t,n,i,o){if(/^(?:script|textarea)$/i.test(n)){var r=e.indexOf("</"+n+">",t),a=e.substring(t+1,r);if(/[&<]/.test(a))return/^script$/i.test(n)?(o.characters(a,0,a.length),r):(a=a.replace(/&#?\w+;/g,i),o.characters(a,0,a.length),r)}return t+1}function u(e,t,n,i){var o=i[n];return null==o&&(o=e.lastIndexOf("</"+n+">"),o<t&&(o=e.lastIndexOf("</"+n)),i[n]=o),o<t}function l(e,t){for(var n in e)t[n]=e[n]}function d(e,t,n,i){switch(e.charAt(t+2)){case"-":if("-"===e.charAt(t+3)){var o=e.indexOf("--\x3e",t+4);return o>t?(n.comment(e,t+4,o-t-4),o+3):(i.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var r=g(e,t),a=r.length;if(a>1&&/!doctype/i.test(r[0][0])){var s=r[1][0],c=a>3&&/^public$/i.test(r[2][0])&&r[3][0],u=a>4&&r[4][0],l=r[a-1];return n.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}}return-1}function f(e,t,n){var i=e.indexOf("?>",t);if(i){var o=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return o?(o[0].length,n.processingInstruction(o[1],o[2]),i+2):-1}return-1}function p(e){}function h(e,t){return e.__proto__=t,e}function g(e,t){var n,i=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(o.lastIndex=t,o.exec(e);n=o.exec(e);)if(i.push(n),n[1])return i}var m=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=new RegExp("[\\-\\.0-9"+m.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),_=new RegExp("^"+m.source+v.source+"*(?::"+m.source+v.source+"*)?$"),y=0,b=1,M=2,S=3,C=4,k=5,T=6,I=7;i.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),l(t,t={}),o(e,t,n,i,this.errorHandler),i.endDocument()}},p.prototype={setTagName:function(e){if(!_.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!_.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},h({},h.prototype)instanceof h||(h=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=i},function(e,t,n){"use strict";function i(e){return(""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(a,"")}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=new RegExp("^([^a-zA-Z_À-ÖØ-öø-ÿͰ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�])|^((x|X)(m|M)(l|L))|([^a-zA-Z_À-ÖØ-öø-ÿͰ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�-.0-9·̀-ͯ‿⁀])","g"),a=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,s=function(e){var t=[];if(e instanceof Object)for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},c=function(e,t){var n=function(e,n,i,o,a){var s=void 0!==t.indent?t.indent:"\t",c=t.prettyPrint?"\n"+new Array(o).join(s):"";t.removeIllegalNameCharacters&&(e=e.replace(r,"_"));var u=[c,"<",e,i||""];return n&&n.length>0?(u.push(">"),u.push(n),a&&u.push(c),u.push("</"),u.push(e),u.push(">")):u.push("/>"),u.join("")};return function e(r,a,c){var u=void 0===r?"undefined":o(r);switch((Array.isArray?Array.isArray(r):r instanceof Array)?u="array":r instanceof Date&&(u="date"),u){case"array":var l=[];return r.map((function(t){l.push(e(t,1,c+1))})),t.prettyPrint&&l.push("\n"),l.join("");case"date":return r.toJSON?r.toJSON():r+"";case"object":var d=[];for(var f in r)if(r.hasOwnProperty(f))if(r[f]instanceof Array)for(var p in r[f])r[f].hasOwnProperty(p)&&d.push(n(f,e(r[f][p],0,c+1),null,c+1,s(r[f][p]).length));else d.push(n(f,e(r[f],0,c+1),null,c+1));return t.prettyPrint&&d.length>0&&d.push("\n"),d.join("");case"function":return r();default:return t.escape?i(r):""+r}}(e,0,0)},u=function(e){var t=['<?xml version="1.0" encoding="UTF-8"'];return e&&t.push(' standalone="yes"'),t.push("?>"),t.join("")},l=function(e,t){if(t||(t={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" "}),"string"==typeof e)try{e=JSON.parse(e.toString())}catch(e){return!1}var n="",i="";return t&&("object"==(void 0===t?"undefined":o(t))?(t.xmlHeader&&(n=u(!!t.xmlHeader.standalone)),void 0!==t.docType&&(i="<!DOCTYPE "+t.docType+">")):n=u()),t=t||{},[n,t.prettyPrint&&i?"\n":"",i,c(e,t)].join("").replace(/\n{2,}/g,"\n").replace(/\s+$/g,"")};e.exports=l},function(e,t,n){"use strict";var i=n(5),o=n(0),r={},a=function(e,t){r[t]=e[t],e[t]=function(e,n){e.SkipTask?r[t].call(this,e,n):this._addTask(t,e,n)}},s=function(e){var t=[],n={},a=0,s=0,c=function(e){var t={id:e.id,Bucket:e.Bucket,Region:e.Region,Key:e.Key,FilePath:e.FilePath,state:e.state,loaded:e.loaded,size:e.size,speed:e.speed,percent:e.percent,hashPercent:e.hashPercent,error:e.error};return e.FilePath&&(t.FilePath=e.FilePath),t},u=function(){var n,i=function(){n=0,e.emit("task-list-update",{list:o.map(t,c)}),e.emit("list-update",{list:o.map(t,c)})};return function(){n||(n=setTimeout(i))}}(),l=function(){if(!(t.length<=e.options.UploadQueueSize)){for(var i=0;i<s&&i<t.length&&t.length>e.options.UploadQueueSize;){var o="waiting"===t[i].state||"checking"===t[i].state||"uploading"===t[i].state;t[i]&&o?i++:(n[t[i].id]&&delete n[t[i].id],t.splice(i,1),s--)}u()}},d=function n(){if(!(a>=e.options.FileParallelLimit)){for(;t[s]&&"waiting"!==t[s].state;)s++;if(!(s>=t.length)){var i=t[s];s++,a++,i.state="checking",i.params.onTaskStart&&i.params.onTaskStart(c(i)),!i.params.UploadData&&(i.params.UploadData={});var d=o.formatParams(i.api,i.params);r[i.api].call(e,d,(function(t,o){e._isRunningTask(i.id)&&("checking"!==i.state&&"uploading"!==i.state||(i.state=t?"error":"success",t&&(i.error=t),a--,u(),n(),i.callback&&i.callback(t,o),"success"===i.state&&(i.params&&(delete i.params.UploadData,delete i.params.Body,delete i.params),delete i.callback)),l())})),u(),setTimeout(n)}}},f=function(t,o){var r=n[t];if(r){var s=r&&"waiting"===r.state,c=r&&("checking"===r.state||"uploading"===r.state);if("canceled"===o&&"canceled"!==r.state||"paused"===o&&s||"paused"===o&&c){if("paused"===o&&r.params.Body&&"function"==typeof r.params.Body.pipe)return void console.error("stream not support pause");r.state=o,e.emit("inner-kill-task",{TaskId:t,toState:o});try{var f=r&&r.params&&r.params.UploadData.UploadId}catch(e){}"canceled"===o&&f&&i.removeUsing(f),u(),c&&(a--,d()),"canceled"===o&&(r.params&&(delete r.params.UploadData,delete r.params.Body,delete r.params),delete r.callback)}l()}};e._addTasks=function(t){o.each(t,(function(t){e._addTask(t.api,t.params,t.callback,!0)})),u()},e._addTask=function(i,r,a,s){"sliceUploadFile"!==i||o.canFileSlice()||(i="postObject"),r=o.formatParams(i,r);var c=o.uuid();r.TaskId=c,r.onTaskReady&&r.onTaskReady(c);var f={params:r,callback:a,api:i,index:t.length,id:c,Bucket:r.Bucket,Region:r.Region,Key:r.Key,FilePath:r.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null},p=r.onHashProgress;r.onHashProgress=function(t){e._isRunningTask(f.id)&&(f.hashPercent=t.percent,p&&p(t),u())};var h=r.onProgress;return r.onProgress=function(t){e._isRunningTask(f.id)&&("checking"===f.state&&(f.state="uploading"),f.loaded=t.loaded,f.size=t.total,f.speed=t.speed,f.percent=t.percent,h&&h(t),u())},o.getFileSize(i,r,(function(e,i){e?a(e):(n[c]=f,t.push(f),f.size=i,!s&&u(),d(),l())})),c},e._isRunningTask=function(e){var t=n[e];return!(!t||"checking"!==t.state&&"uploading"!==t.state)},e.getTaskList=function(){return o.map(t,c)},e.cancelTask=function(e){f(e,"canceled")},e.pauseTask=function(e){f(e,"paused")},e.restartTask=function(e){var t=n[e];!t||"paused"!==t.state&&"error"!==t.state||(t.state="waiting",u(),s=Math.min(s,t.index),d())},e.isUploadRunning=function(){return a||s<t.length}};e.exports.transferToTaskMethod=a,e.exports.init=s},function(e,t,n){"use strict";function i(e,t){"function"==typeof e&&(t=e,e={});var n=this.options.ServiceDomain,i=e.Region;n?(n=n.replace(/\{\{Region\}\}/gi,i||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(n)||(n="https://"+n),"/"===n.slice(-1)&&(n=n.slice(0,-1))):n=i?"https://cos."+i+".myqcloud.com":"https://service.cos.myqcloud.com";n.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),ke.call(this,{Action:"name/cos:GetService",url:n,method:"GET",headers:e.Headers},(function(e,n){if(e)return t(e);var i=n&&n.ListAllMyBucketsResult&&n.ListAllMyBucketsResult.Buckets&&n.ListAllMyBucketsResult.Buckets.Bucket||[];i=Ae.isArray(i)?i:[i];var o=n&&n.ListAllMyBucketsResult&&n.ListAllMyBucketsResult.Owner||{};t(null,{Buckets:i,Owner:o,statusCode:n.statusCode,headers:n.headers})}))}function o(e,t){var n=this,i="";if(e.BucketAZConfig){var o={BucketAZConfig:e.BucketAZConfig};i=Ae.json2xml({CreateBucketConfiguration:o})}ke.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,body:i},(function(i,o){if(i)return t(i);var r=Me({protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:e.Region,isLocation:!0});t(null,{Location:r,statusCode:o.statusCode,headers:o.headers})}))}function r(e,t){ke.call(this,{Action:"name/cos:HeadBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"HEAD"},(function(e,n){t(e,n)}))}function a(e,t){var n={};n.prefix=e.Prefix||"",n.delimiter=e.Delimiter,n.marker=e.Marker,n["max-keys"]=e.MaxKeys,n["encoding-type"]=e.EncodingType,ke.call(this,{Action:"name/cos:GetBucket",ResourceKey:n.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:n},(function(e,n){if(e)return t(e);var i=n.ListBucketResult||{},o=i.Contents||[],r=i.CommonPrefixes||[];o=Ae.isArray(o)?o:[o],r=Ae.isArray(r)?r:[r];var a=Ae.clone(i);Ae.extend(a,{Contents:o,CommonPrefixes:r,statusCode:n.statusCode,headers:n.headers}),t(null,a)}))}function s(e,t){ke.call(this,{Action:"name/cos:DeleteBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"DELETE"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function c(e,t){var n=e.Headers,i="";if(e.AccessControlPolicy){var o=Ae.clone(e.AccessControlPolicy||{}),r=o.Grants||o.Grant;r=Ae.isArray(r)?r:[r],delete o.Grant,delete o.Grants,o.AccessControlList={Grant:r},i=Ae.json2xml({AccessControlPolicy:o}),n["Content-Type"]="application/xml",n["Content-MD5"]=Ae.binaryBase64(Ae.md5(i))}Ae.each(n,(function(e,t){0===t.indexOf("x-cos-grant-")&&(n[t]=be(n[t]))})),ke.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:n,action:"acl",body:i},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function u(e,t){ke.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"acl"},(function(e,n){if(e)return t(e);var i=n.AccessControlPolicy||{},o=i.Owner||{},r=i.AccessControlList.Grant||[];r=Ae.isArray(r)?r:[r];var a=ye(i);n.headers&&n.headers["x-cos-acl"]&&(a.ACL=n.headers["x-cos-acl"]),a=Ae.extend(a,{Owner:o,Grants:r,statusCode:n.statusCode,headers:n.headers}),t(null,a)}))}function l(e,t){var n=e.CORSConfiguration||{},i=n.CORSRules||e.CORSRules||[];i=Ae.clone(Ae.isArray(i)?i:[i]),Ae.each(i,(function(e){Ae.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],(function(t){var n=t+"s",i=e[n]||e[t]||[];delete e[n],e[t]=Ae.isArray(i)?i:[i]}))}));var o=Ae.json2xml({CORSConfiguration:{CORSRule:i}}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"cors",headers:r},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function d(e,t){ke.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors"},(function(e,n){if(e)if(404===e.statusCode&&e.error&&"NoSuchCORSConfiguration"===e.error.Code){var i={CORSRules:[],statusCode:e.statusCode};e.headers&&(i.headers=e.headers),t(null,i)}else t(e);else{var o=n.CORSConfiguration||{},r=o.CORSRules||o.CORSRule||[];r=Ae.clone(Ae.isArray(r)?r:[r]),Ae.each(r,(function(e){Ae.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],(function(t){var n=t+"s",i=e[n]||e[t]||[];delete e[t],e[n]=Ae.isArray(i)?i:[i]}))})),t(null,{CORSRules:r,statusCode:n.statusCode,headers:n.headers})}}))}function f(e,t){ke.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode||e.statusCode,headers:n.headers})}))}function p(e,t){ke.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"location"},(function(e,n){if(e)return t(e);t(null,n)}))}function h(e,t){var n=e.Policy,i=n;try{"string"==typeof n?n=JSON.parse(i):i=JSON.stringify(n)}catch(e){t({error:"Policy format error"})}var o=e.Headers;o["Content-Type"]="application/json",o["Content-MD5"]=Ae.binaryBase64(Ae.md5(i)),ke.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:e.Bucket,Region:e.Region,action:"policy",body:i,headers:o,json:!0},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function g(e,t){ke.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy",rawBody:!0},(function(e,n){if(e)return t(e.statusCode&&403===e.statusCode?{ErrorStatus:"Access Denied"}:e.statusCode&&405===e.statusCode?{ErrorStatus:"Method Not Allowed"}:e.statusCode&&404===e.statusCode?{ErrorStatus:"Policy Not Found"}:e);var i={};try{i=JSON.parse(n.body)}catch(e){}t(null,{Policy:i,statusCode:n.statusCode,headers:n.headers})}))}function m(e,t){ke.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode||e.statusCode,headers:n.headers})}))}function v(e,t){var n=e.Tagging||{},i=n.TagSet||n.Tags||e.Tags||[];i=Ae.clone(Ae.isArray(i)?i:[i]);var o=Ae.json2xml({Tagging:{TagSet:{Tag:i}}}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"tagging",headers:r},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function _(e,t){ke.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging"},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var i={Tags:[],statusCode:e.statusCode};e.headers&&(i.headers=e.headers),t(null,i)}else{var o=[];try{o=n.Tagging.TagSet.Tag||[]}catch(e){}o=Ae.clone(Ae.isArray(o)?o:[o]),t(null,{Tags:o,statusCode:n.statusCode,headers:n.headers})}}))}function y(e,t){ke.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function b(e,t){var n=e.LifecycleConfiguration||{},i=n.Rules||e.Rules||[];i=Ae.clone(i);var o=Ae.json2xml({LifecycleConfiguration:{Rule:i}}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"lifecycle",headers:r},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function M(e,t){ke.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle"},(function(e,n){if(e)if(404===e.statusCode&&e.error&&"NoSuchLifecycleConfiguration"===e.error.Code){var i={Rules:[],statusCode:e.statusCode};e.headers&&(i.headers=e.headers),t(null,i)}else t(e);else{var o=[];try{o=n.LifecycleConfiguration.Rule||[]}catch(e){}o=Ae.clone(Ae.isArray(o)?o:[o]),t(null,{Rules:o,statusCode:n.statusCode,headers:n.headers})}}))}function S(e,t){ke.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function C(e,t){if(e.VersioningConfiguration){var n=e.VersioningConfiguration||{},i=Ae.json2xml({VersioningConfiguration:n}),o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=Ae.binaryBase64(Ae.md5(i)),ke.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"versioning",headers:o},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t({error:"missing param VersioningConfiguration"})}function k(e,t){ke.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"versioning"},(function(e,n){e||!n.VersioningConfiguration&&(n.VersioningConfiguration={}),t(e,n)}))}function T(e,t){var n=Ae.clone(e.ReplicationConfiguration),i=Ae.json2xml({ReplicationConfiguration:n});i=i.replace(/<(\/?)Rules>/gi,"<$1Rule>"),i=i.replace(/<(\/?)Tags>/gi,"<$1Tag>");var o=e.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=Ae.binaryBase64(Ae.md5(i)),ke.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"replication",headers:o},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function I(e,t){ke.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"ReplicationConfigurationnotFoundError"!==e.error.Code)t(e);else{var i={ReplicationConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(i.headers=e.headers),t(null,i)}else e||!n.ReplicationConfiguration&&(n.ReplicationConfiguration={}),n.ReplicationConfiguration.Rule&&(n.ReplicationConfiguration.Rules=n.ReplicationConfiguration.Rule,delete n.ReplicationConfiguration.Rule),t(e,n)}))}function w(e,t){ke.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function A(e,t){if(e.WebsiteConfiguration){var n=Ae.clone(e.WebsiteConfiguration||{}),i=n.RoutingRules||n.RoutingRule||[];i=Ae.isArray(i)?i:[i],delete n.RoutingRule,delete n.RoutingRules,i.length&&(n.RoutingRules={RoutingRule:i});var o=Ae.json2xml({WebsiteConfiguration:n}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"website",headers:r},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t({error:"missing param WebsiteConfiguration"})}function E(e,t){ke.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website"},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchWebsiteConfiguration"===e.error.Code){var i={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(i.headers=e.headers),t(null,i)}else t(e);else{var o=n.WebsiteConfiguration||{};if(o.RoutingRules){var r=Ae.clone(o.RoutingRules.RoutingRule||[]);r=Ae.makeArray(r),o.RoutingRules=r}t(null,{WebsiteConfiguration:o,statusCode:n.statusCode,headers:n.headers})}}))}function O(e,t){ke.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function x(e,t){if(e.RefererConfiguration){var n=Ae.clone(e.RefererConfiguration||{}),i=n.DomainList||{},o=i.Domains||i.Domain||[];o=Ae.isArray(o)?o:[o],o.length&&(n.DomainList={Domain:o});var r=Ae.json2xml({RefererConfiguration:n}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=Ae.binaryBase64(Ae.md5(r)),ke.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"referer",headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t({error:"missing param RefererConfiguration"})}function D(e,t){ke.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer"},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchRefererConfiguration"===e.error.Code){var i={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(i.headers=e.headers),t(null,i)}else t(e);else{var o=n.RefererConfiguration||{};if(o.DomainList){var r=Ae.makeArray(o.DomainList.Domain||[]);o.DomainList={Domains:r}}t(null,{RefererConfiguration:o,statusCode:n.statusCode,headers:n.headers})}}))}function N(e,t){var n=e.DomainConfiguration||{},i=n.DomainRule||e.DomainRule||[];i=Ae.clone(i);var o=Ae.json2xml({DomainConfiguration:{DomainRule:i}}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"domain",headers:r},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function R(e,t){ke.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},(function(e,n){if(e)return t(e);var i=[];try{i=n.DomainConfiguration.DomainRule||[]}catch(e){}i=Ae.clone(Ae.isArray(i)?i:[i]),t(null,{DomainRule:i,statusCode:n.statusCode,headers:n.headers})}))}function L(e,t){ke.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function P(e,t){var n=e.OriginConfiguration||{},i=n.OriginRule||e.OriginRule||[];i=Ae.clone(i);var o=Ae.json2xml({OriginConfiguration:{OriginRule:i}}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"origin",headers:r},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function U(e,t){ke.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},(function(e,n){if(e)return t(e);var i=[];try{i=n.OriginConfiguration.OriginRule||[]}catch(e){}i=Ae.clone(Ae.isArray(i)?i:[i]),t(null,{OriginRule:i,statusCode:n.statusCode,headers:n.headers})}))}function G(e,t){ke.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function F(e,t){var n=Ae.json2xml({BucketLoggingStatus:e.BucketLoggingStatus||""}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=Ae.binaryBase64(Ae.md5(n)),ke.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"logging",headers:i},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function B(e,t){ke.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging"},(function(e,n){if(e)return t(e);delete n.BucketLoggingStatus._xmlns,t(null,{BucketLoggingStatus:n.BucketLoggingStatus,statusCode:n.statusCode,headers:n.headers})}))}function q(e,t){var n=Ae.clone(e.InventoryConfiguration);if(n.OptionalFields){var i=n.OptionalFields||[];n.OptionalFields={Field:i}}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var o=n.Destination.COSBucketDestination.Encryption;Object.keys(o).indexOf("SSECOS")>-1&&(o["SSE-COS"]=o.SSECOS,delete o.SSECOS)}var r=Ae.json2xml({InventoryConfiguration:n}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=Ae.binaryBase64(Ae.md5(r)),ke.call(this,{Action:"name/cos:PutBucketInventory",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"inventory",qs:{id:e.Id},headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function j(e,t){ke.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},(function(e,n){if(e)return t(e);var i=n.InventoryConfiguration;if(i&&i.OptionalFields&&i.OptionalFields.Field){var o=i.OptionalFields.Field;Ae.isArray(o)||(o=[o]),i.OptionalFields=o}if(i.Destination&&i.Destination.COSBucketDestination&&i.Destination.COSBucketDestination.Encryption){var r=i.Destination.COSBucketDestination.Encryption;Object.keys(r).indexOf("SSE-COS")>-1&&(r.SSECOS=r["SSE-COS"],delete r["SSE-COS"])}t(null,{InventoryConfiguration:i,statusCode:n.statusCode,headers:n.headers})}))}function $(e,t){ke.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e.ContinuationToken}},(function(e,n){if(e)return t(e);var i=n.ListInventoryConfigurationResult,o=i.InventoryConfiguration||[];o=Ae.isArray(o)?o:[o],delete i.InventoryConfiguration,Ae.each(o,(function(e){if(e&&e.OptionalFields&&e.OptionalFields.Field){var t=e.OptionalFields.Field;Ae.isArray(t)||(t=[t]),e.OptionalFields=t}if(e.Destination&&e.Destination.COSBucketDestination&&e.Destination.COSBucketDestination.Encryption){var n=e.Destination.COSBucketDestination.Encryption;Object.keys(n).indexOf("SSE-COS")>-1&&(n.SSECOS=n["SSE-COS"],delete n["SSE-COS"])}})),i.InventoryConfigurations=o,Ae.extend(i,{statusCode:n.statusCode,headers:n.headers}),t(null,i)}))}function H(e,t){ke.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function V(e,t){if(e.AccelerateConfiguration){var n={AccelerateConfiguration:e.AccelerateConfiguration||{}},i=Ae.json2xml(n),o={"Content-Type":"application/xml"};o["Content-MD5"]=Ae.binaryBase64(Ae.md5(i)),ke.call(this,{Interface:"putBucketAccelerate",Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"accelerate",headers:o},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t({error:"missing param AccelerateConfiguration"})}function z(e,t){ke.call(this,{Interface:"getBucketAccelerate",Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate"},(function(e,n){e||!n.AccelerateConfiguration&&(n.AccelerateConfiguration={}),t(e,n)}))}function K(e,t){ke.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},(function(n,i){if(n){var o=n.statusCode;return e.Headers["If-Modified-Since"]&&o&&304===o?t(null,{NotModified:!0,statusCode:o}):t(n)}i.ETag=Ae.attr(i.headers,"etag",""),t(null,i)}))}function W(e,t){var n={};n.prefix=e.Prefix||"",n.delimiter=e.Delimiter,n["key-marker"]=e.KeyMarker,n["version-id-marker"]=e.VersionIdMarker,n["max-keys"]=e.MaxKeys,n["encoding-type"]=e.EncodingType,ke.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:n.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:n,action:"versions"},(function(e,n){if(e)return t(e);var i=n.ListVersionsResult||{},o=i.DeleteMarker||[];o=Ae.isArray(o)?o:[o];var r=i.Version||[];r=Ae.isArray(r)?r:[r];var a=Ae.clone(i);delete a.DeleteMarker,delete a.Version,Ae.extend(a,{DeleteMarkers:o,Versions:r,statusCode:n.statusCode,headers:n.headers}),t(null,a)}))}function Y(e,t){var n=e.Query||{},i=e.QueryString||"";n["response-content-type"]=e.ResponseContentType,n["response-content-language"]=e.ResponseContentLanguage,n["response-expires"]=e.ResponseExpires,n["response-cache-control"]=e.ResponseCacheControl,n["response-content-disposition"]=e.ResponseContentDisposition,n["response-content-encoding"]=e.ResponseContentEncoding,ke.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers,qs:n,qsStr:i,rawBody:!0},(function(n,i){if(n){var o=n.statusCode;return e.Headers["If-Modified-Since"]&&o&&304===o?t(null,{NotModified:!0}):t(n)}t(null,{Body:i.body,ETag:Ae.attr(i.headers,"etag",""),statusCode:i.statusCode,headers:i.headers})}))}function X(e,t){var n=this,i=e.ContentLength,o=Ae.throttleOnProgress.call(n,i,e.onProgress),r=e.Headers;r["Cache-Control"]||r["cache-control"]||(r["Cache-Control"]=""),r["Content-Type"]||r["content-type"]||(r["Content-Type"]=Ee.getType(e.Key)||"application/octet-stream"),Ae.getBodyMd5(n.options.UploadCheckContentMd5,e.Body,(function(a){a&&(r["Content-MD5"]=Ae.binaryBase64(a)),void 0!==e.ContentLength&&(r["Content-Length"]=e.ContentLength),o(null,!0),ke.call(n,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:o},(function(r,a){if(r)return o(null,!0),t(r);o({loaded:i,total:i},!0);var s=Me({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:n.options.UseAccelerate?"accelerate":e.Region,object:e.Key});s=s.substr(s.indexOf("://")+3),a.Location=s,a.ETag=Ae.attr(a.headers,"etag",""),t(null,a)}))}))}function J(e,t){var n=this,i={},o=e.FilePath;if(o){for(var r in i["Cache-Control"]=e.CacheControl,i["Content-Disposition"]=e.ContentDisposition,i["Content-Encoding"]=e.ContentEncoding,i["Content-MD5"]=e.ContentMD5,i["Content-Length"]=e.ContentLength,i["Content-Type"]=e.ContentType,i.Expect=e.Expect,i.Expires=e.Expires,i["x-cos-acl"]=e.ACL,i["x-cos-grant-read"]=e.GrantRead,i["x-cos-grant-write"]=e.GrantWrite,i["x-cos-grant-full-control"]=e.GrantFullControl,i["x-cos-storage-class"]=e.StorageClass,i["x-cos-mime-limit"]=e.MimeLimit,i["x-cos-traffic-limit"]=e.TrafficLimit,i["x-cos-server-side-encryption-customer-algorithm"]=e.SSECustomerAlgorithm,i["x-cos-server-side-encryption-customer-key"]=e.SSECustomerKey,i["x-cos-server-side-encryption-customer-key-MD5"]=e.SSECustomerKeyMD5,i["x-cos-server-side-encryption"]=e.ServerSideEncryption,i["x-cos-server-side-encryption-cos-kms-key-id"]=e.SSEKMSKeyId,i["x-cos-server-side-encryption-context"]=e.SSEContext,delete i["Content-Length"],delete i["content-length"],e)r.indexOf("x-cos-meta-")>-1&&(i[r]=e[r]);var a=Ae.throttleOnProgress.call(n,i["Content-Length"],e.onProgress);ke.call(this,{Action:"name/cos:PostObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:i,qs:e.Query,filePath:o,onProgress:a},(function(i,r){if(a(null,!0),i)return t(i);if(r&&r.headers){var s=r.headers,c=s.etag||s.Etag||s.ETag||"",u=o.substr(o.lastIndexOf("/")+1),l=Me({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key.replace(/\$\{filename\}/g,u),isLocation:!0});return t(null,{Location:l,statusCode:r.statusCode,headers:s,ETag:c})}t(null,r)}))}else t({error:"missing param FilePath"})}function Q(e,t){ke.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId},(function(e,n){if(e){var i=e.statusCode;return i&&204===i?t(null,{statusCode:i}):i&&404===i?t(null,{BucketNotFound:!0,statusCode:i}):t(e)}t(null,{statusCode:n.statusCode,headers:n.headers})}))}function Z(e,t){ke.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"acl"},(function(e,n){if(e)return t(e);var i=n.AccessControlPolicy||{},o=i.Owner||{},r=i.AccessControlList&&i.AccessControlList.Grant||[];r=Ae.isArray(r)?r:[r];var a=ye(i);n.headers&&n.headers["x-cos-acl"]&&(a.ACL=n.headers["x-cos-acl"]),a=Ae.extend(a,{Owner:o,Grants:r,statusCode:n.statusCode,headers:n.headers}),t(null,a)}))}function ee(e,t){var n=e.Headers,i="";if(e.AccessControlPolicy){var o=Ae.clone(e.AccessControlPolicy||{}),r=o.Grants||o.Grant;r=Ae.isArray(r)?r:[r],delete o.Grant,delete o.Grants,o.AccessControlList={Grant:r},i=Ae.json2xml({AccessControlPolicy:o}),n["Content-Type"]="application/xml",n["Content-MD5"]=Ae.binaryBase64(Ae.md5(i))}Ae.each(n,(function(e,t){0===t.indexOf("x-cos-grant-")&&(n[t]=be(n[t]))})),ke.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:n,body:i},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function te(e,t){var n=e.Headers;n.Origin=e.Origin,n["Access-Control-Request-Method"]=e.AccessControlRequestMethod,n["Access-Control-Request-Headers"]=e.AccessControlRequestHeaders,ke.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:n},(function(e,n){if(e)return e.statusCode&&403===e.statusCode?t(null,{OptionsForbidden:!0,statusCode:e.statusCode}):t(e);var i=n.headers||{};t(null,{AccessControlAllowOrigin:i["access-control-allow-origin"],AccessControlAllowMethods:i["access-control-allow-methods"],AccessControlAllowHeaders:i["access-control-allow-headers"],AccessControlExposeHeaders:i["access-control-expose-headers"],AccessControlMaxAge:i["access-control-max-age"],statusCode:n.statusCode,headers:n.headers})}))}function ne(e,t){var n=e.Headers;!n["Cache-Control"]&&n["cache-control"]&&(n["Cache-Control"]="");var i=e.CopySource||"",o=i.match(/^([^.]+-\d+)\.cos(v6)?\.([^.]+)\.[^/]+\/(.+)$/);if(o){var r=o[1],a=o[3],s=decodeURIComponent(o[4]);ke.call(this,{Scope:[{action:"name/cos:GetObject",bucket:r,region:a,prefix:s},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},(function(e,n){if(e)return t(e);var i=Ae.clone(n.CopyObjectResult||{});Ae.extend(i,{statusCode:n.statusCode,headers:n.headers}),t(null,i)}))}else t({error:"CopySource format error"})}function ie(e,t){var n=e.CopySource||"",i=n.match(/^([^.]+-\d+)\.cos(v6)?\.([^.]+)\.[^/]+\/(.+)$/);if(i){var o=i[1],r=i[3],a=decodeURIComponent(i[4]);ke.call(this,{Scope:[{action:"name/cos:GetObject",bucket:o,region:r,prefix:a},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers},(function(e,n){if(e)return t(e);var i=Ae.clone(n.CopyPartResult||{});Ae.extend(i,{statusCode:n.statusCode,headers:n.headers}),t(null,i)}))}else t({error:"CopySource format error"})}function oe(e,t){var n=e.Objects||[],i=e.Quiet;n=Ae.isArray(n)?n:[n];var o=Ae.json2xml({Delete:{Object:n,Quiet:i||!1}}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o));var a=Ae.map(n,(function(t){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:t.Key}}));ke.call(this,{Scope:a,method:"POST",Bucket:e.Bucket,Region:e.Region,body:o,action:"delete",headers:r},(function(e,n){if(e)return t(e);var i=n.DeleteResult||{},o=i.Deleted||[],r=i.Error||[];o=Ae.isArray(o)?o:[o],r=Ae.isArray(r)?r:[r];var a=Ae.clone(i);Ae.extend(a,{Error:r,Deleted:o,statusCode:n.statusCode,headers:n.headers}),t(null,a)}))}function re(e,t){var n=e.Headers;if(e.RestoreRequest){var i=e.RestoreRequest||{},o=Ae.json2xml({RestoreRequest:i});n["Content-Type"]="application/xml",n["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:o,action:"restore",headers:n},(function(e,n){t(e,n)}))}else t({error:"missing param RestoreRequest"})}function ae(e,t){var n=e.Tagging||{},i=n.TagSet||n.Tags||e.Tags||[];i=Ae.clone(Ae.isArray(i)?i:[i]);var o=Ae.json2xml({Tagging:{TagSet:{Tag:i}}}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=Ae.binaryBase64(Ae.md5(o)),ke.call(this,{Interface:"putObjectTagging",Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:o,action:"tagging",headers:r,VersionId:e.VersionId},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function se(e,t){ke.call(this,{Interface:"getObjectTagging",Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var i={Tags:[],statusCode:e.statusCode};e.headers&&(i.headers=e.headers),t(null,i)}else{var o=[];try{o=n.Tagging.TagSet.Tag||[]}catch(e){}o=Ae.clone(Ae.isArray(o)?o:[o]),t(null,{Tags:o,statusCode:n.statusCode,headers:n.headers})}}))}function ce(e,t){ke.call(this,{Interface:"deleteObjectTagging",Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function ue(e,t){var n=this,i=e.Headers;i["Cache-Control"]||i["cache-control"]||(i["Cache-Control"]=""),i["Content-Type"]||i["content-type"]||(i["Content-Type"]=Ee.getType(e.Key)||"application/octet-stream"),ke.call(n,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query},(function(e,n){return e?t(e):(n=Ae.clone(n||{}))&&n.InitiateMultipartUploadResult?t(null,Ae.extend(n.InitiateMultipartUploadResult,{statusCode:n.statusCode,headers:n.headers})):void t(null,n)}))}function le(e,t){var n=this;Ae.getFileSize("multipartUpload",e,(function(){Ae.getBodyMd5(n.options.UploadCheckContentMd5,e.Body,(function(i){i&&(e.Headers["Content-MD5"]=Ae.binaryBase64(i)),ke.call(n,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null},(function(e,n){if(e)return t(e);t(null,{ETag:Ae.attr(n.headers,"etag",{}),statusCode:n.statusCode,headers:n.headers})}))}))}))}function de(e,t){for(var n=this,i=e.UploadId,o=e.Parts,r=0,a=o.length;r<a;r++)0!==o[r].ETag.indexOf('"')&&(o[r].ETag='"'+o[r].ETag+'"');var s=Ae.json2xml({CompleteMultipartUpload:{Part:o}}),c=e.Headers;c["Content-Type"]="application/xml",c["Content-MD5"]=Ae.binaryBase64(Ae.md5(s)),ke.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{uploadId:i},body:s,headers:c},(function(i,o){if(i)return t(i);var r=Me({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0}),a=o.CompleteMultipartUploadResult||{},s=Ae.extend(a,{Location:r,statusCode:o.statusCode,headers:o.headers});t(null,s)}))}function fe(e,t){var n={};n.delimiter=e.Delimiter,n["encoding-type"]=e.EncodingType,n.prefix=e.Prefix||"",n["max-uploads"]=e.MaxUploads,n["key-marker"]=e.KeyMarker,n["upload-id-marker"]=e.UploadIdMarker,n=Ae.clearKey(n),ke.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:n.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:n,action:"uploads"},(function(e,n){if(e)return t(e);if(n&&n.ListMultipartUploadsResult){var i=n.ListMultipartUploadsResult.Upload||[],o=n.ListMultipartUploadsResult.CommonPrefixes||[];o=Ae.isArray(o)?o:[o],i=Ae.isArray(i)?i:[i],n.ListMultipartUploadsResult.Upload=i,n.ListMultipartUploadsResult.CommonPrefixes=o}var r=Ae.clone(n.ListMultipartUploadsResult||{});Ae.extend(r,{statusCode:n.statusCode,headers:n.headers}),t(null,r)}))}function pe(e,t){var n={};n.uploadId=e.UploadId,n["encoding-type"]=e.EncodingType,n["max-parts"]=e.MaxParts,n["part-number-marker"]=e.PartNumberMarker,ke.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:n},(function(e,n){if(e)return t(e);var i=n.ListPartsResult||{},o=i.Part||[];o=Ae.isArray(o)?o:[o],i.Part=o;var r=Ae.clone(i);Ae.extend(r,{statusCode:n.statusCode,headers:n.headers}),t(null,r)}))}function he(e,t){var n={};n.uploadId=e.UploadId,ke.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:n},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function ge(e,t){ke.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:e.Bucket,Region:e.Region,action:"append",Key:e.Key,body:e.Body,qs:{position:e.Position},headers:e.Headers},(function(e,n){if(e)return t(e);t(null,n)}))}function me(e,t){ke.call(this,{method:e.Method,Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:e.Action,headers:e.Headers,qs:e.Query,body:e.Body,Url:e.Url,rawBody:e.RawBody},(function(e,n){if(e)return t(e);n&&n.body&&(n.Body=n.body,delete n.body),t(e,n)}))}function ve(e){var t=this;return Ae.getAuth({SecretId:e.SecretId||this.options.SecretId||"",SecretKey:e.SecretKey||this.options.SecretKey||"",Bucket:e.Bucket,Region:e.Region,Method:e.Method,Key:e.Key,Query:e.Query,Headers:e.Headers,Expires:e.Expires,SystemClockOffset:t.options.SystemClockOffset})}function _e(e,t){var n=this,i=Me({ForcePathStyle:n.options.ForcePathStyle,protocol:e.Protocol||n.options.Protocol,domain:e.Domain||n.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key}),o="";e.Query&&(o+=Ae.obj2str(e.Query)),e.QueryString&&(o+=(o?"&":"")+e.QueryString);var r=i;if(void 0!==e.Sign&&!e.Sign)return o&&(r+="?"+o),t(null,{Url:r}),r;var a=Oe.call(this,{Bucket:e.Bucket,Region:e.Region,Url:i}),s=Se.call(this,{Action:"PUT"===(e.Method||"").toUpperCase()?"name/cos:PutObject":"name/cos:GetObject",Bucket:e.Bucket||"",Region:e.Region||"",Method:e.Method||"get",Key:e.Key,Expires:e.Expires,Headers:e.Headers,Query:e.Query,SignHost:a},(function(e,n){if(t){if(e)return void t(e);var r=i;r+="?"+(n.Authorization.indexOf("q-signature")>-1?function(e){var t=e.match(/q-url-param-list.*?(?=&)/g)[0],n="q-url-param-list="+encodeURIComponent(t.replace(/q-url-param-list=/,"")).toLowerCase(),i=new RegExp(t,"g");return e.replace(i,n)}(n.Authorization):"sign="+encodeURIComponent(n.Authorization)),n.XCosSecurityToken&&(r+="&x-cos-security-token="+n.XCosSecurityToken),n.ClientIP&&(r+="&clientIP="+n.ClientIP),n.ClientUA&&(r+="&clientUA="+n.ClientUA),n.Token&&(r+="&token="+n.Token),o&&(r+="&"+o),setTimeout((function(){t(null,{Url:r})}))}}));return s?(r+="?"+s.Authorization+(s.XCosSecurityToken?"&x-cos-security-token="+s.XCosSecurityToken:""),o&&(r+="&"+o)):o&&(r+="?"+o),r}function ye(e){var t={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},n={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},i=e&&e.AccessControlList||{},o=i.Grant;o&&(o=Ae.isArray(o)?o:[o]);var r={READ:0,WRITE:0,FULL_CONTROL:0};return o&&o.length&&Ae.each(o,(function(i){"qcs::cam::anyone:anyone"===i.Grantee.ID||"http://cam.qcloud.com/groups/global/AllUsers"===i.Grantee.URI?r[i.Permission]=1:i.Grantee.ID!==e.Owner.ID&&t[n[i.Permission]].push('id="'+i.Grantee.ID+'"')})),r.FULL_CONTROL||r.WRITE&&r.READ?t.ACL="public-read-write":r.READ?t.ACL="public-read":t.ACL="private",Ae.each(n,(function(e){t[e]=be(t[e].join(","))})),t}function be(e){var t,n,i=e.split(","),o={};for(t=0;t<i.length;)n=i[t].trim(),o[n]?i.splice(t,1):(o[n]=!0,i[t]=n,t++);return i.join(",")}function Me(e){var t=e.bucket,n=t.substr(0,t.lastIndexOf("-")),i=t.substr(t.lastIndexOf("-")+1),o=e.domain,r=e.region,a=e.object;o||(o=["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(r)>-1?"{Region}.myqcloud.com":"cos.{Region}.myqcloud.com",e.ForcePathStyle||(o="{Bucket}."+o)),o=o.replace(/\{\{AppId\}\}/gi,i).replace(/\{\{Bucket\}\}/gi,n).replace(/\{\{Region\}\}/gi,r).replace(/\{\{.*?\}\}/gi,""),o=o.replace(/\{AppId\}/gi,i).replace(/\{BucketName\}/gi,n).replace(/\{Bucket\}/gi,t).replace(/\{Region\}/gi,r).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(o)||(o="https://"+o),"/"===o.slice(-1)&&(o=o.slice(0,-1));var s=o;return e.ForcePathStyle&&(s+="/"+t),s+="/",a&&(s+=Ae.camSafeUrlEncode(a).replace(/%2F/g,"/")),e.isLocation&&(s=s.replace(/^https?:\/\//,"")),s}function Se(e,t){var n=Ae.clone(e.Headers),i="";Ae.each(n,(function(e,t){(""===e||["content-type","cache-control"].indexOf(t.toLowerCase())>-1)&&delete n[t],"host"===t.toLowerCase()&&(i=e)})),!i&&e.SignHost&&(n.Host=e.SignHost);var o=function(e){var n=!1,i=e.Authorization;if(i)if(i.indexOf(" ")>-1)n=!1;else if(i.indexOf("q-sign-algorithm=")>-1&&i.indexOf("q-ak=")>-1&&i.indexOf("q-sign-time=")>-1&&i.indexOf("q-key-time=")>-1&&i.indexOf("q-url-param-list=")>-1)n=!0;else try{i=we.atob(i),i.indexOf("a=")>-1&&i.indexOf("k=")>-1&&i.indexOf("t=")>-1&&i.indexOf("r=")>-1&&i.indexOf("b=")>-1&&(n=!0)}catch(e){}n?t&&t(null,e):t&&t("authorization error")},r=this,a=e.Bucket||"",s=e.Region||"",c="name/cos:PostObject"!==e.Action&&e.Key?e.Key:"";r.options.ForcePathStyle&&a&&(c=a+"/"+c);var u="/"+c,l={},d=e.Scope;if(!d){var f=e.Action||"",p=e.ResourceKey||e.Key||"";d=e.Scope||[{action:f,bucket:a,region:s,prefix:p}]}var h=Ae.md5(JSON.stringify(d));r._StsCache=r._StsCache||[],function(){var e,t;for(e=r._StsCache.length-1;e>=0;e--){t=r._StsCache[e];var n=Math.round(Ae.getSkewTime(r.options.SystemClockOffset)/1e3)+30;if(t.StartTime&&n<t.StartTime||n>=t.ExpiredTime)r._StsCache.splice(e,1);else if(!t.ScopeLimit||t.ScopeLimit&&t.ScopeKey===h){l=t;break}}}();var g=function(){var t=l.StartTime&&l.ExpiredTime?l.StartTime+";"+l.ExpiredTime:"",i=Ae.getAuth({SecretId:l.TmpSecretId,SecretKey:l.TmpSecretKey,Method:e.Method,Pathname:u,Query:e.Query,Headers:n,Expires:e.Expires,SystemClockOffset:r.options.SystemClockOffset,KeyTime:t}),a={Authorization:i,XCosSecurityToken:l.XCosSecurityToken||"",Token:l.Token||"",ClientIP:l.ClientIP||"",ClientUA:l.ClientUA||""};o(a)};if(l.ExpiredTime&&l.ExpiredTime-Ae.getSkewTime(r.options.SystemClockOffset)/1e3>60)g();else if(r.options.getAuthorization)r.options.getAuthorization.call(r,{Bucket:a,Region:s,Method:e.Method,Key:c,Pathname:u,Query:e.Query,Headers:n,Scope:d,SystemClockOffset:r.options.SystemClockOffset},(function(e){"string"==typeof e&&(e={Authorization:e}),e.TmpSecretId&&e.TmpSecretKey&&e.XCosSecurityToken&&e.ExpiredTime?(l=e||{},l.Scope=d,l.ScopeKey=h,r._StsCache.push(l),g()):o(e)}));else{if(!r.options.getSTS)return function(){var t=Ae.getAuth({SecretId:e.SecretId||r.options.SecretId,SecretKey:e.SecretKey||r.options.SecretKey,Method:e.Method,Pathname:u,Query:e.Query,Headers:n,Expires:e.Expires,SystemClockOffset:r.options.SystemClockOffset}),i={Authorization:t,XCosSecurityToken:r.options.XCosSecurityToken};return o(i),i}();r.options.getSTS.call(r,{Bucket:a,Region:s},(function(e){l=e||{},l.Scope=d,l.ScopeKey=h,l.TmpSecretId=l.SecretId,l.TmpSecretKey=l.SecretKey,r._StsCache.push(l),g()}))}return""}function Ce(e){var t=!1,n=!1,i=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var o=e.error.Code,r=e.error.Message;("RequestTimeTooSkewed"===o||"AccessDenied"===o&&"Request has expired"===r)&&(n=!0)}catch(e){}if(e)if(n&&i){var a=Date.parse(i);this.options.CorrectClockSkew&&Math.abs(Ae.getSkewTime(this.options.SystemClockOffset)-a)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=a-Date.now(),t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0);return t}function ke(e,t){var n=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=Ae.clearKey(e.qs),e.headers&&(e.headers=Ae.clearKey(e.headers)),e.qs&&(e.qs=Ae.clearKey(e.qs));var i=Ae.clone(e.qs);e.action&&(i[e.action]="");var o=e.url||e.Url,r=e.SignHost||Oe.call(this,{Bucket:e.Bucket,Region:e.Region,Url:o});!function o(a){var s=n.options.SystemClockOffset;Se.call(n,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:i,Headers:e.headers,SignHost:r,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope},(function(i,r){i?t(i):(e.AuthData=r,Te.call(n,e,(function(i,r){i&&a<2&&(s!==n.options.SystemClockOffset||Ce.call(n,i))?(e.headers&&(delete e.headers.Authorization,delete e.headers.token,delete e.headers.clientIP,delete e.headers.clientUA,delete e.headers["x-cos-security-token"]),o(a+1)):t(i,r)})))}))}(1)}function Te(e,t){var n=this,i=e.TaskId;if(!i||n._isRunningTask(i)){var o=e.Bucket,r=e.Region,a=e.Key,s=e.method||"GET",c=e.url||e.Url,u=e.body,l=e.json,d=e.rawBody;n.options.UseAccelerate&&(r="accelerate"),c=c||Me({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:o,region:r,object:a}),e.action&&(c=c+"?"+e.action),e.qsStr&&(c=c.indexOf("?")>-1?c+"&"+e.qsStr:c+"?"+e.qsStr);var f={method:s,url:c,headers:e.headers,qs:e.qs,filePath:e.filePath,body:u,json:l},p="x-cos-security-token";Ae.isCIHost(c)&&(p="x-ci-security-token"),f.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(f.headers.token=e.AuthData.Token),e.AuthData.ClientIP&&(f.headers.clientIP=e.AuthData.ClientIP),e.AuthData.ClientUA&&(f.headers.clientUA=e.AuthData.ClientUA),e.AuthData.XCosSecurityToken&&(f.headers[p]=e.AuthData.XCosSecurityToken),f.headers&&(f.headers=Ae.clearKey(f.headers)),f=Ae.clearKey(f),e.onProgress&&"function"==typeof e.onProgress&&(f.onProgress=function(t){if(!i||n._isRunningTask(i)){var o=t?t.loaded:0;e.onProgress({loaded:o,total:t.total})}}),this.options.Timeout&&(f.timeout=this.options.Timeout),n.options.ForcePathStyle&&(f.pathStyle=n.options.ForcePathStyle),n.emit("before-send",f);var h=Ie(f,(function(e,o,r){if("abort"!==e){var a,s,c=function(e,r){if(i&&n.off("inner-kill-task",g),!a){a=!0;var s={};o&&o.statusCode&&(s.statusCode=o.statusCode),o&&o.headers&&(s.headers=o.headers),e?(e=Ae.extend(e||{},s),t(e,null)):(r=Ae.extend(r||{},s),t(null,r)),h=null}};if(e)return void c({error:e});if(d)s={},s.body=r;else try{s=r&&r.indexOf("<")>-1&&r.indexOf(">")>-1&&Ae.xml2json(r)||{}}catch(e){s=r||{}}var u=o.statusCode;return 2===Math.floor(u/100)?s.Error?void c({error:s.Error}):void c(null,s):void c({error:s.Error||s})}})),g=function e(t){t.TaskId===i&&(h&&h.abort&&h.abort(),n.off("inner-kill-task",e))};i&&n.on("inner-kill-task",g)}}var Ie=n(19),we=n(3),Ae=n(0),Ee=n(20),Oe=function(e){if(!e.Bucket||!e.Region)return"";var t=e.Url||Me({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:e.Bucket,region:this.options.UseAccelerate?"accelerate":e.Region}),n=t.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$").test(n)?n:""},xe={getService:i,putBucket:o,headBucket:r,getBucket:a,deleteBucket:s,putBucketAcl:c,getBucketAcl:u,putBucketCors:l,getBucketCors:d,deleteBucketCors:f,getBucketLocation:p,getBucketPolicy:g,putBucketPolicy:h,deleteBucketPolicy:m,putBucketTagging:v,getBucketTagging:_,deleteBucketTagging:y,putBucketLifecycle:b,getBucketLifecycle:M,deleteBucketLifecycle:S,putBucketVersioning:C,getBucketVersioning:k,putBucketReplication:T,getBucketReplication:I,deleteBucketReplication:w,putBucketWebsite:A,getBucketWebsite:E,deleteBucketWebsite:O,putBucketReferer:x,getBucketReferer:D,putBucketDomain:N,getBucketDomain:R,deleteBucketDomain:L,putBucketOrigin:P,getBucketOrigin:U,deleteBucketOrigin:G,putBucketLogging:F,getBucketLogging:B,putBucketInventory:q,getBucketInventory:j,listBucketInventory:$,deleteBucketInventory:H,putBucketAccelerate:V,getBucketAccelerate:z,getObject:Y,headObject:K,listObjectVersions:W,putObject:X,postObject:J,deleteObject:Q,getObjectAcl:Z,putObjectAcl:ee,optionsObject:te,putObjectCopy:ne,deleteMultipleObject:oe,restoreObject:re,putObjectTagging:ae,getObjectTagging:se,deleteObjectTagging:ce,appendObject:ge,uploadPartCopy:ie,multipartInit:ue,multipartUpload:le,multipartComplete:de,multipartList:fe,multipartListPart:pe,multipartAbort:he,request:me,getObjectUrl:_e,getAuth:ve};e.exports.init=function(e,t){t.transferToTaskMethod(xe,"postObject"),t.transferToTaskMethod(xe,"putObject"),Ae.each(xe,(function(t,n){e.prototype[n]=Ae.apiWrapper(n,t)}))}},function(e,t,n){"use strict";function i(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function o(e,t){var n=[];for(var o in e)e.hasOwnProperty(o)&&n.push(t?i(o).toLowerCase():o);return n.sort((function(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e===t?0:e>t?1:-1}))}var r=function(e,t){var n,r,a,s=[],c=o(e);for(n=0;n<c.length;n++)r=c[n],a=void 0===e[r]||null===e[r]?"":""+e[r],r=t?i(r).toLowerCase():i(r),a=i(a)||"",s.push(r+"="+a);return s.join("&")},a=function(e,t){var n,i=e.filePath,o=e.headers||{},a=e.url||e.Url,s=e.method,c=e.onProgress,u=function(e,n){var i=n.header,o={};if(i)for(var r in i)i.hasOwnProperty(r)&&(o[r.toLowerCase()]=i[r]);t(e,{statusCode:n.statusCode,headers:o},n.data)};if(i){var l,d=a.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/);e.pathStyle?(l=decodeURIComponent(d[3]||""),a=d[1]+d[2]):(l=decodeURIComponent(d[2]+d[3]||""),a=d[1]);var f={key:l,success_action_status:200,Signature:o.Authorization},p=["Cache-Control","Content-Type","Content-Disposition","Content-Encoding","Expires","x-cos-storage-class","x-cos-security-token","x-ci-security-token"];for(var h in e.headers)e.headers.hasOwnProperty(h)&&(h.indexOf("x-cos-meta-")>-1||p.indexOf(h)>-1)&&(f[h]=e.headers[h]);o["x-cos-acl"]&&(f.acl=o["x-cos-acl"]),!f["Content-Type"]&&(f["Content-Type"]=""),n=wx.uploadFile({url:a,method:s,name:"file",header:o,filePath:i,formData:f,timeout:e.timeout,success:function(e){u(null,e)},fail:function(e){u(e.errMsg,e)}}),n.onProgressUpdate((function(e){c&&c({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend,progress:e.progress/100})}))}else{var g=e.qs&&r(e.qs)||"";g&&(a+=(a.indexOf("?")>-1?"&":"?")+g),o["Content-Length"]&&delete o["Content-Length"],n=wx.request({url:a,method:s,header:o,dataType:"text",data:e.body,timeout:e.timeout,success:function(e){u(null,e)},fail:function(e){u(e.errMsg,e)}})}return n};e.exports=a},function(e,t,n){"use strict";var i=n(21);e.exports=new i(n(22),n(23))},function(e,t,n){"use strict";function i(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}i.prototype.define=function(e,t){for(var n in e){var i=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(var o=0;o<i.length;o++){var r=i[o];if("*"!==r[0]){if(!t&&r in this._types)throw new Error('Attempt to change mapping for "'+r+'" extension from "'+this._types[r]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+r+'" from the list of extensions for "'+n+'".');this._types[r]=n}}if(t||!this._extensions[n]){var a=i[0];this._extensions[n]="*"!==a[0]?a:a.substr(1)}}},i.prototype.getType=function(e){e=String(e);var t=e.replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),i=t.length<e.length;return(n.length<t.length-1||!i)&&this._types[n]||null},i.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=i},function(e,t,n){"use strict";e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},function(e,t,n){"use strict";e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},function(e,t,n){"use strict";function i(e,t){var n=this;if(!b.canFileSlice())return e.SkipTask=!0,void n.postObject(e,t);var i,r,a=new y,c=e.TaskId,l=e.Bucket,d=e.Region,f=e.Key,p=e.FilePath,h=e.ChunkSize||e.SliceSize||n.options.ChunkSize,g=e.AsyncLimit,m=e.StorageClass,_=e.ServerSideEncryption,M=e.onHashProgress;a.on("error",(function(i){if(n._isRunningTask(c)){var o={UploadId:e.UploadData.UploadId||"",err:i};return t(o)}})),a.on("upload_complete",(function(n){var i=b.extend({UploadId:e.UploadData.UploadId||""},n);t(null,i)})),a.on("upload_slice_complete",(function(e){u.call(n,{Bucket:l,Region:d,Key:f,UploadId:e.UploadId,SliceList:e.SliceList},(function(t,o){if(n._isRunningTask(c)){if(v.removeUsing(e.UploadId),t)return r(null,!0),a.emit("error",t);v.removeUploadId(e.UploadId),r({loaded:i,total:i},!0),a.emit("upload_complete",o)}}))})),a.on("get_upload_data_finish",(function(t){var o=v.getFileId(e.FileStat,e.ChunkSize,l,f);o&&v.saveUploadId(o,t.UploadId,n.options.UploadIdCacheLimit),v.setUsing(t.UploadId),r(null,!0),s.call(n,{TaskId:c,Bucket:l,Region:d,Key:f,FilePath:p,FileSize:i,SliceSize:h,AsyncLimit:g,ServerSideEncryption:_,UploadData:t,onProgress:r},(function(e,t){if(n._isRunningTask(c))return e?(r(null,!0),a.emit("error",e)):void a.emit("upload_slice_complete",t)}))})),a.on("get_file_size_finish",(function(){if(r=b.throttleOnProgress.call(n,i,e.onProgress),e.UploadData.UploadId)a.emit("get_upload_data_finish",e.UploadData);else{var t=b.extend({TaskId:c,Bucket:l,Region:d,Key:f,Headers:e.Headers,StorageClass:m,FilePath:p,FileSize:i,SliceSize:h,onHashProgress:M},e);o.call(n,t,(function(t,i){if(n._isRunningTask(c)){if(t)return a.emit("error",t);e.UploadData.UploadId=i.UploadId,e.UploadData.PartList=i.PartList,a.emit("get_upload_data_finish",e.UploadData)}}))}})),i=e.ContentLength,delete e.ContentLength,!e.Headers&&(e.Headers={}),b.each(e.Headers,(function(t,n){"content-length"===n.toLowerCase()&&delete e.Headers[n]})),function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],o=1048576,r=0;r<t.length&&(o=1024*t[r]*1024,!(i/o<=n.options.MaxPartNumber));r++);e.ChunkSize=e.SliceSize=h=Math.max(h,o)}(),0===i?(e.Body="",e.ContentLength=0,e.SkipTask=!0,n.putObject(e,(function(e,n){if(e)return t(e);t(null,n)}))):a.emit("get_file_size_finish")}function o(e,t){var n=e.TaskId,i=e.Bucket,o=e.Region,s=e.Key,c=e.StorageClass,u=this,l={},d=e.FileSize,f=e.SliceSize,p=Math.ceil(d/f),h=0,g=b.throttleOnProgress.call(u,d,e.onHashProgress),m=function(t,n){var i=f*(t-1),o=Math.min(i+f,d),r=o-i;l[t]?n(null,{PartNumber:t,ETag:l[t],Size:r}):b.fileSlice(e.FilePath,i,o,(function(e){try{var i=b.getFileMd5(e)}catch(e){return n(e)}var o='"'+i+'"';l[t]=o,1,h+=r,n(null,{PartNumber:t,ETag:o,Size:r}),g({loaded:h,total:d})}))},M=function(e,t){var n=e.length;return 0===n?t(null,!0):n>p||n>1&&Math.max(e[0].Size,e[1].Size)!==f?t(null,!1):void function i(o){if(o<n){var r=e[o];m(r.PartNumber,(function(e,n){n&&n.ETag===r.ETag&&n.Size===r.Size?i(o+1):t(null,!1)}))}else t(null,!0)}(0)},S=new y;S.on("error",(function(e){if(u._isRunningTask(n))return t(e)})),S.on("upload_id_available",(function(e){var n={},i=[];b.each(e.PartList,(function(e){n[e.PartNumber]=e}));for(var o=1;o<=p;o++){var r=n[o];r?(r.PartNumber=o,r.Uploaded=!0):r={PartNumber:o,ETag:null,Uploaded:!1},i.push(r)}e.PartList=i,t(null,e)})),S.on("no_available_upload_id",(function(){if(u._isRunningTask(n)){var r=b.extend({Bucket:i,Region:o,Key:s,Headers:b.clone(e.Headers),Query:b.clone(e.Query),StorageClass:c},e);u.multipartInit(r,(function(e,i){if(u._isRunningTask(n)){if(e)return S.emit("error",e);var o=i.UploadId;if(!o)return t({Message:"no upload id"});S.emit("upload_id_available",{UploadId:o,PartList:[]})}}))}})),S.on("has_and_check_upload_id",(function(e){e=e.reverse(),_.eachLimit(e,1,(function(e,t){if(u._isRunningTask(n))return v.using[e]?void t():void a.call(u,{Bucket:i,Region:o,Key:s,UploadId:e},(function(i,o){if(u._isRunningTask(n)){if(i)return v.removeUsing(e),S.emit("error",i);var r=o.PartList;r.forEach((function(e){e.PartNumber*=1,e.Size*=1,e.ETag=e.ETag||""})),M(r,(function(i,o){if(u._isRunningTask(n))return i?S.emit("error",i):void(o?t({UploadId:e,PartList:r}):t())}))}}))}),(function(e){u._isRunningTask(n)&&(g(null,!0),e&&e.UploadId?S.emit("upload_id_available",e):S.emit("no_available_upload_id"))}))})),S.on("seek_local_avail_upload_id",(function(t){var r=v.getFileId(e.FileStat,e.ChunkSize,i,s),c=v.getUploadIdList(r);r&&c?function e(r){if(!(r>=c.length)){var l=c[r];return b.isInArray(t,l)?v.using[l]?void e(r+1):void a.call(u,{Bucket:i,Region:o,Key:s,UploadId:l},(function(t,i){u._isRunningTask(n)&&(t?(v.removeUploadId(l),e(r+1)):S.emit("upload_id_available",{UploadId:l,PartList:i.PartList}))})):(v.removeUploadId(l),void e(r+1))}S.emit("has_and_check_upload_id",t)}(0):S.emit("has_and_check_upload_id",t)})),S.on("get_remote_upload_id_list",(function(){r.call(u,{Bucket:i,Region:o,Key:s},(function(t,o){if(u._isRunningTask(n)){if(t)return S.emit("error",t);var r=b.filter(o.UploadList,(function(e){return e.Key===s&&(!c||e.StorageClass.toUpperCase()===c.toUpperCase())})).reverse().map((function(e){return e.UploadId||e.UploadID}));if(r.length)S.emit("seek_local_avail_upload_id",r);else{var a,l=v.getFileId(e.FileStat,e.ChunkSize,i,s);l&&(a=v.getUploadIdList(l))&&b.each(a,(function(e){v.removeUploadId(e)})),S.emit("no_available_upload_id")}}}))})),S.emit("get_remote_upload_id_list")}function r(e,t){var n=this,i=[],o={Bucket:e.Bucket,Region:e.Region,Prefix:e.Key};!function e(){n.multipartList(o,(function(n,r){if(n)return t(n);i.push.apply(i,r.Upload||[]),"true"===r.IsTruncated?(o.KeyMarker=r.NextKeyMarker,o.UploadIdMarker=r.NextUploadIdMarker,e()):t(null,{UploadList:i})}))}()}function a(e,t){var n=this,i=[],o={Bucket:e.Bucket,Region:e.Region,Key:e.Key,UploadId:e.UploadId};!function e(){n.multipartListPart(o,(function(n,r){if(n)return t(n);i.push.apply(i,r.Part||[]),"true"===r.IsTruncated?(o.PartNumberMarker=r.NextPartNumberMarker,e()):t(null,{PartList:i})}))}()}function s(e,t){var n=this,i=e.TaskId,o=e.Bucket,r=e.Region,a=e.Key,s=e.UploadData,u=e.FileSize,l=e.SliceSize,d=Math.min(e.AsyncLimit||n.options.ChunkParallelLimit||1,256),f=e.FilePath,p=Math.ceil(u/l),h=0,g=e.ServerSideEncryption,m=b.filter(s.PartList,(function(e){return e.Uploaded&&(h+=e.PartNumber>=p&&u%l||l),!e.Uploaded})),v=e.onProgress;_.eachLimit(m,d,(function(e,t){if(n._isRunningTask(i)){var d=e.PartNumber,p=Math.min(u,e.PartNumber*l)-(e.PartNumber-1)*l,m=0;c.call(n,{TaskId:i,Bucket:o,Region:r,Key:a,SliceSize:l,FileSize:u,PartNumber:d,ServerSideEncryption:g,FilePath:f,UploadData:s,onProgress:function(e){h+=e.loaded-m,m=e.loaded,v({loaded:h,total:u})}},(function(o,r){n._isRunningTask(i)&&(o?h-=m:(h+=p-m,e.ETag=r.ETag),v({loaded:h,total:u}),t(o||null,r))}))}}),(function(e){if(n._isRunningTask(i))return e?t(e):void t(null,{UploadId:s.UploadId,SliceList:s.PartList})}))}function c(e,t){var n=this,i=e.TaskId,o=e.Bucket,r=e.Region,a=e.Key,s=e.FileSize,c=e.FilePath,u=1*e.PartNumber,l=e.SliceSize,d=e.ServerSideEncryption,f=e.UploadData,p=n.options.ChunkRetryTimes+1,h=e.Headers||{},g=l*(u-1),m=l,v=g+l;v>s&&(v=s,m=v-g);var y=["x-cos-traffic-limit","x-cos-mime-limit"],M={};b.each(h,(function(e,t){y.indexOf(t)>-1&&(M[t]=e)})),b.fileSlice(c,g,v,(function(s){var c=b.getFileMd5(s),l=c?b.binaryBase64(c):null,h=f.PartList[u-1];_.retry(p,(function(t){n._isRunningTask(i)&&n.multipartUpload({TaskId:i,Bucket:o,Region:r,Key:a,ContentLength:m,PartNumber:u,UploadId:f.UploadId,ServerSideEncryption:d,Body:s,Headers:M,onProgress:e.onProgress,ContentMD5:l},(function(e,o){if(n._isRunningTask(i))return e?t(e):(h.Uploaded=!0,t(null,o))}))}),(function(e,o){if(n._isRunningTask(i))return t(e,o)}))}))}function u(e,t){var n=e.Bucket,i=e.Region,o=e.Key,r=e.UploadId,a=e.SliceList,s=this,c=this.options.ChunkRetryTimes+1,u=a.map((function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));_.retry(c,(function(e){s.multipartComplete({Bucket:n,Region:i,Key:o,UploadId:r,Parts:u},e)}),(function(e,n){t(e,n)}))}function l(e,t){var n=e.Bucket,i=e.Region,o=e.Key,a=e.UploadId,s=e.Level||"task",c=e.AsyncLimit,u=this,l=new y;if(l.on("error",(function(e){return t(e)})),l.on("get_abort_array",(function(r){d.call(u,{Bucket:n,Region:i,Key:o,Headers:e.Headers,AsyncLimit:c,AbortArray:r},(function(e,n){if(e)return t(e);t(null,n)}))})),"bucket"===s)r.call(u,{Bucket:n,Region:i},(function(e,n){if(e)return t(e);l.emit("get_abort_array",n.UploadList||[])}));else if("file"===s){if(!o)return t({error:"abort_upload_task_no_key"});r.call(u,{Bucket:n,Region:i,Key:o},(function(e,n){if(e)return t(e);l.emit("get_abort_array",n.UploadList||[])}))}else{if("task"!==s)return t({error:"abort_unknown_level"});if(!a)return t({error:"abort_upload_task_no_id"});if(!o)return t({error:"abort_upload_task_no_key"});l.emit("get_abort_array",[{Key:o,UploadId:a}])}}function d(e,t){var n=e.Bucket,i=e.Region,o=e.Key,r=e.AbortArray,a=e.AsyncLimit||1,s=this,c=0,u=new Array(r.length);_.eachLimit(r,a,(function(t,r){var a=c;if(o&&o!==t.Key)return u[a]={error:{KeyNotMatch:!0}},void r(null);var l=t.UploadId||t.UploadID;s.multipartAbort({Bucket:n,Region:i,Key:t.Key,Headers:e.Headers,UploadId:l},(function(e){var o={Bucket:n,Region:i,Key:t.Key,UploadId:l};u[a]={error:e,task:o},r(null)})),c++}),(function(e){if(e)return t(e);for(var n=[],i=[],o=0,r=u.length;o<r;o++){var a=u[o];a.task&&(a.error?i.push(a.task):n.push(a.task))}return t(null,{successList:n,errorList:i})}))}function f(e,t){var n=this,i=void 0===e.SliceSize?n.options.SliceSize:e.SliceSize,o=[],r=e.FileSize,a={TaskId:""};b.each(e,(function(e,t){"object"!==(void 0===e?"undefined":m(e))&&"function"!=typeof e&&(a[t]=e)}));var s=e.onTaskReady;e.onTaskReady=function(e){a.TaskId=e,s&&s(e)};var c=e.onFileFinish,u=function(e,n){c&&c(e,n,a),t&&t(e,n)},l=r>i?"sliceUploadFile":"postObject";o.push({api:l,params:e,callback:u}),n._addTasks(o)}function p(e,t){var n=this,i=void 0===e.SliceSize?n.options.SliceSize:e.SliceSize,o=0,r=0,a=b.throttleOnProgress.call(n,r,e.onProgress),s=e.files.length,c=e.onFileFinish,u=Array(s),l=function(e,n,i){a(null,!0),c&&c(e,n,i),u[i.Index]={options:i,error:e,data:n},--s<=0&&t&&t(null,{files:u})},d=[];b.each(e.files,(function(e,t){var n=e.FileSize,s={Index:t,TaskId:""};o+=n,b.each(e,(function(e,t){"object"!==(void 0===e?"undefined":m(e))&&"function"!=typeof e&&(s[t]=e)}));var c=e.onTaskReady;e.onTaskReady=function(e){s.TaskId=e,c&&c(e)};var u=0,f=e.onProgress;e.onProgress=function(e){r=r-u+e.loaded,u=e.loaded,f&&f(e),a({loaded:r,total:o})};var p=e.onFileFinish,h=function(e,t){p&&p(e,t),l&&l(e,t,s)},g=n>i?"sliceUploadFile":"postObject";d.push({api:g,params:e,callback:h})})),n._addTasks(d)}function h(e,t){var n=new y,i=this,o=e.Bucket,r=e.Region,a=e.Key,s=e.CopySource,c=s.match(/^([^.]+-\d+)\.cos(v6)?\.([^.]+)\.[^/]+\/(.+)$/);if(c){var u=c[1],l=c[3],d=decodeURIComponent(c[4]),f=void 0===e.CopySliceSize?i.options.CopySliceSize:e.CopySliceSize;f=Math.max(0,f);var p,h,m=e.CopyChunkSize||this.options.CopyChunkSize,v=this.options.CopyChunkParallelLimit,M=0;n.on("copy_slice_complete",(function(e){i.multipartComplete({Bucket:o,Region:r,Key:a,UploadId:e.UploadId,Parts:e.PartList},(function(e,n){if(e)return h(null,!0),t(e);h({loaded:p,total:p},!0),t(null,n)}))})),n.on("get_copy_data_finish",(function(e){_.eachLimit(e.PartList,v,(function(t,n){var c=t.PartNumber,u=t.CopySourceRange,l=t.end-t.start,d=0;g.call(i,{Bucket:o,Region:r,Key:a,CopySource:s,UploadId:e.UploadId,PartNumber:c,CopySourceRange:u,onProgress:function(e){M+=e.loaded-d,d=e.loaded,h({loaded:M,total:p})}},(function(e,i){if(e)return n(e);h({loaded:M,total:p}),M+=l-d,t.ETag=i.ETag,n(e||null,i)}))}),(function(i){if(i)return h(null,!0),t(i);n.emit("copy_slice_complete",e)}))})),n.on("get_file_size_finish",(function(s){var c;if(function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],n=1048576,o=0;o<t.length&&(n=1024*t[o]*1024,!(p/n<=i.options.MaxPartNumber));o++);e.ChunkSize=m=Math.max(m,n);for(var r=Math.ceil(p/m),a=[],s=1;s<=r;s++){var c=(s-1)*m,u=s*m<p?s*m-1:p-1,l={PartNumber:s,start:c,end:u,CopySourceRange:"bytes="+c+"-"+u};a.push(l)}e.PartList=a}(),c="Replaced"===e.Headers["x-cos-metadata-directive"]?e.Headers:s,c["x-cos-storage-class"]=e.Headers["x-cos-storage-class"]||s["x-cos-storage-class"],c=b.clearKey(c),"ARCHIVE"===s["x-cos-storage-class"]||"DEEP_ARCHIVE"===s["x-cos-storage-class"]){var u=s["x-cos-restore"];if(!u||'ongoing-request="true"'===u)return void t({error:"Unrestored archive object is not allowed to be copied"})}delete c["x-cos-copy-source"],delete c["x-cos-metadata-directive"],delete c["x-cos-copy-source-If-Modified-Since"],delete c["x-cos-copy-source-If-Unmodified-Since"],delete c["x-cos-copy-source-If-Match"],delete c["x-cos-copy-source-If-None-Match"],i.multipartInit({Bucket:o,Region:r,Key:a,Headers:c},(function(i,o){if(i)return t(i);e.UploadId=o.UploadId,n.emit("get_copy_data_finish",e)}))})),i.headObject({Bucket:u,Region:l,Key:d},(function(o,r){if(o)t(o.statusCode&&404===o.statusCode?{ErrorStatus:d+" Not Exist"}:o);else if(void 0!==(p=e.FileSize=r.headers["content-length"])&&p)if(h=b.throttleOnProgress.call(i,p,e.onProgress),p<=f)e.Headers["x-cos-metadata-directive"]||(e.Headers["x-cos-metadata-directive"]="Copy"),i.putObjectCopy(e,(function(e,n){if(e)return h(null,!0),t(e);h({loaded:p,total:p},!0),t(e,n)}));else{var a=r.headers,s={"Cache-Control":a["cache-control"],"Content-Disposition":a["content-disposition"],"Content-Encoding":a["content-encoding"],"Content-Type":a["content-type"],Expires:a.expires,"x-cos-storage-class":a["x-cos-storage-class"]};b.each(a,(function(e,t){0===t.indexOf("x-cos-meta-")&&t.length>"x-cos-meta-".length&&(s[t]=e)})),n.emit("get_file_size_finish",s)}else t({error:'get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.'})}))}else t({error:"CopySource format error"})}function g(e,t){var n=e.TaskId,i=e.Bucket,o=e.Region,r=e.Key,a=e.CopySource,s=e.UploadId,c=1*e.PartNumber,u=e.CopySourceRange,l=this.options.ChunkRetryTimes+1,d=this;_.retry(l,(function(t){d.uploadPartCopy({TaskId:n,Bucket:i,Region:o,Key:r,CopySource:a,UploadId:s,PartNumber:c,CopySourceRange:u,onProgress:e.onProgress},(function(e,n){t(e||null,n)}))}),(function(e,n){return t(e,n)}))}var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=n(5),_=n(25),y=n(4).EventProxy,b=n(0),M={sliceUploadFile:i,abortUploadTask:l,uploadFile:f,uploadFiles:p,sliceCopyFile:h};e.exports.init=function(e,t){t.transferToTaskMethod(M,"sliceUploadFile"),b.each(M,(function(t,n){e.prototype[n]=b.apiWrapper(n,t)}))}},function(e,t,n){"use strict";var i=function(e,t,n,i){if(i=i||function(){},!e.length||t<=0)return i();var o=0,r=0,a=0;!function s(){if(o>=e.length)return i();for(;a<t&&r<e.length;)r+=1,a+=1,n(e[r-1],(function(t){t?(i(t),i=function(){}):(o+=1,a-=1,o>=e.length?i():s())}))}()},o=function(e,t,n){e<1?n():function i(o){t((function(t,r){t&&o<e?i(o+1):n(t,r)}))}(1)},r={eachLimit:i,retry:o};e.exports=r}])}))}).call(this,__webpack_require__("5a52")["default"])},b89d:function(e,t,n){"use strict";n.r(t);var i=n("1ef1"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},b9a9:function(e,t,n){"use strict";n.r(t);var i=n("bb1e");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var r,a,s,c,u=n("f0c5"),l=Object(u["a"])(i["default"],r,a,!1,null,null,null,!1,s,c);t["default"]=l.exports},b9b1:function(e,t,n){"use strict";function i(e){if(0===e.indexOf("#")){var t=e.substr(1);return function(e){return!(!e.componentInstance||e.componentInstance.id!==t)||!(!e.data||!e.data.attrs||e.data.attrs.id!==t)}}if(0===e.indexOf(".")){var n=e.substr(1);return function(e){return e.data&&r(n,e.data.staticClass,e.data.class)}}}n("c975"),n("ac1f"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.initPolyfill=c;var o=/\s+/;function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?-1!==t.split(o).indexOf(e):n&&"string"===typeof n?-1!==n.split(o).indexOf(e):void 0}function a(e,t){if(t(e.$vnode||e._vnode))return e;for(var n=e.$children,i=0;i<n.length;i++){var o=a(n[i],t);if(o)return o}}function s(e,t,n){t(e.$vnode||e._vnode)&&n.push(e);for(var i=e.$children,o=0;o<i.length;o++)s(i[o],t,n);return n}function c(e){e.prototype.createIntersectionObserver=function(e){return uni.createIntersectionObserver(this,e)},e.prototype.createMediaQueryObserver=function(e){return uni.createMediaQueryObserver(this,e)},e.prototype.selectComponent=function(e){return a(this,i(e))},e.prototype.selectAllComponents=function(e){return s(this,i(e),[])}}},b9b1c:function(e,t,n){"use strict";n.r(t);var i=n("0029"),o=n("d5fa");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},baa5:function(e,t,n){var i=n("23e7"),o=n("e58c");i({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},bb1e:function(e,t,n){"use strict";n.r(t);var i=n("266e"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb41:function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{popupWidth:0,popupHeight:0}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},popupStyle:function(){var e={},t=e.content={},n=e.triangle={},i=this.popover;function o(e){return Number(e)||0}if(this.isDesktop&&i){Object.assign(n,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});var r=o(i.left),a=o(i.width),s=o(i.top),c=o(i.height),u=r+a/2;t.transform="none !important";var l=Math.max(0,u-150);t.left="".concat(l,"px");var d=Math.max(12,u-l);d=Math.min(288,d),n.left="".concat(d,"px");var f=this.popupHeight/2;s+c-f>f-s?(t.top="auto",t.bottom="".concat(this.popupHeight-s+6,"px"),n.bottom="-6px",n["border-width"]="6px 6px 0 6px",n["border-color"]="#fcfcfd transparent transparent transparent"):(t.top="".concat(s+c+6,"px"),n.top="-6px",n["border-width"]="0 6px 6px 6px",n["border-color"]="transparent transparent #fcfcfd transparent")}return e}},mounted:function(){var e=this,t=function(){var t=uni.getSystemInfoSync(),n=t.windowWidth,i=t.windowHeight,o=t.windowTop;e.popupWidth=n,e.popupHeight=i+o};window.addEventListener("resize",t),t(),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("resize",t)}))}};t.default=i},bc94:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.createPageMixin=s;var o=n("db6a"),r=n("559a"),a=i(n("aac7"));function s(){return{created:function(){var e=(0,o.decodedQuery)(this.$route.query);(0,a.default)(this,e),(0,r.callPageHook)(this,"onLoad",e),(0,r.callPageHook)(this,"onShow")}}}},bca3:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"uni-fade"}},[n("uni-modal",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],on:{touchmove:function(e){e.preventDefault()}}},[n("div",{staticClass:"uni-mask"}),n("div",{staticClass:"uni-modal"},[e.title?n("div",{staticClass:"uni-modal__hd"},[n("strong",{staticClass:"uni-modal__title",domProps:{textContent:e._s(e.title)}})]):e._e(),e.editable?n("textarea",{ref:"editContent",staticClass:"uni-modal__textarea",attrs:{rows:"1",placeholder:e.placeholderText},domProps:{value:e.content}}):n("div",{staticClass:"uni-modal__bd",domProps:{textContent:e._s(e.content)},on:{touchmove:function(e){e.stopPropagation()}}}),n("div",{staticClass:"uni-modal__ft"},[e.showCancel?n("div",{staticClass:"uni-modal__btn uni-modal__btn_default",style:{color:e.cancelColor},on:{click:function(t){return e._close("cancel")}}},[e._v("\n "+e._s(e.cancelText)+"\n ")]):e._e(),n("div",{staticClass:"uni-modal__btn uni-modal__btn_primary",style:{color:e.confirmColor},on:{click:function(t){return e._close("confirm")}}},[e._v("\n "+e._s(e.confirmText)+"\n ")])])]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close("cancel")},enter:function(t){!e.editable&&e._close("confirm")}}})],1)],1)},r=[]},be9c:function(e,t,n){"use strict";(function(e){var n;function i(e){n=e}function o(){n&&e.emit(n+".stopPullDownRefresh",{},n);var t=getCurrentPages();return t.length&&(n=t[t.length-1].$page.id,e.emit(n+".startPullDownRefresh",{},n)),{}}function r(){if(n)e.emit(n+".stopPullDownRefresh",{},n),n=null;else{var t=getCurrentPages();t.length&&(n=t[t.length-1].$page.id,e.emit(n+".stopPullDownRefresh",{},n))}return{}}Object.defineProperty(t,"__esModule",{value:!0}),t.setPullDownRefreshPageId=i,t.startPullDownRefresh=o,t.stopPullDownRefresh=r}).call(this,n("a9aa"))},bee2:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},bf19:function(e,t,n){"use strict";var i=n("23e7");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},bf94:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-slider",e._g({ref:"uni-slider",on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-slider-wrapper"},[n("div",{staticClass:"uni-slider-tap-area"},[n("div",{staticClass:"uni-slider-handle-wrapper",style:e.setBgColor},[n("div",{ref:"uni-slider-handle",staticClass:"uni-slider-handle",style:e.setBlockBg}),n("div",{staticClass:"uni-slider-thumb",style:e.setBlockStyle}),n("div",{staticClass:"uni-slider-track",style:e.setActiveColor})])]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showValue,expression:"showValue"}],ref:"uni-slider-value",staticClass:"uni-slider-value"},[e._v(e._s(e.sliderValue))])]),e._t("default")],2)},r=[]},c04e:function(e,t,n){var i=n("861d");e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},c11e:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hoverClass&&"none"!==e.hoverClass?n("uni-view",e._g({class:[e.hovering?e.hoverClass:""],on:{touchstart:e._hoverTouchStart,touchend:e._hoverTouchEnd,touchcancel:e._hoverTouchCancel,mousedown:e._hoverMousedown,mouseup:e._hoverMouseup}},e.$listeners),[e._t("default")],2):n("uni-view",e._g({},e.$listeners),[e._t("default")],2)},r=[]},c15f:function(e,t,n){"use strict";function i(e){if(e)return e.$holder;var t=getCurrentPages(),n=t.length;return n?t[n-1].$holder:void 0}function o(e){var t=getCurrentPages(),n=t.length;return!!n&&t[n-1].$holder===e}Object.defineProperty(t,"__esModule",{value:!0}),t.getPageHolder=i,t.isCurrentPage=o},c19e:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("7db0"),n("4160"),n("a434"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.getApp=s,t.getCurrentPages=c,t.default=u;var o=n("81e8"),r=i(n("7551")),a=!1;function s(){return a}function c(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[],o=s();if(!o)return n&&e.error("app is not ready"),[];var r=o.$children[0];if(r&&r.$children.length){var a=r.$children.find((function(e){return"TabBar"===e.$options.name})),c=r.$children.find((function(e){return"Layout"===e.$options.name}));c&&(r=c),r.$children.forEach((function(e){if(a!==e&&e.$children.length&&"Page"===e.$children[0].$options.name&&e.$children[0].$slots.page){var n=e.$children[0].$children.find((function(e){return"PageBody"===e.$options.name})),r=n&&n.$children.find((function(e){return!!e.$page}));if(r){var s=!0;!t&&a&&r.$page&&r.$page.meta.isTabBar&&(o.$route.meta&&o.$route.meta.isTabBar?o.$route.path!==r.$page.path&&(s=!1):a.__path__!==r.$page.path&&(s=!1)),s&&i.push(r)}}}))}var u=i.length;if(u>1){var l=i[u-1];l.$page.path!==o.$route.path&&i.splice(u-1,1)}return i}function u(e,t,n){a=t,a.$vm=t,a.globalData=a.$options.globalData||{},(0,o.initAppLocale)(e,a),(0,r.default)(a,n)}}).call(this,n("5a52")["default"])},c19f:function(e,t,n){"use strict";var i=n("23e7"),o=n("da84"),r=n("621a"),a=n("2626"),s="ArrayBuffer",c=r[s],u=o[s];i({global:!0,forced:u!==c},{ArrayBuffer:c}),a(s)},c1ac:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").filter,r=n("4840"),a=i.aTypedArray,s=i.aTypedArrayConstructor,c=i.exportTypedArrayMethod;c("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0),n=r(this,this.constructor),i=0,c=t.length,u=new(s(n))(c);while(c>i)u[i]=t[i++];return u}))},c1dd:function(e,t,n){"use strict";var i=n("4ea4");n("99af");var o=i(n("e143")),r=i(n("c2b15")),a=i(n("170f")),s=i(n("a4bf")),c=i(n("b9a9")),u=i(n("56b6")),l=i(n("528a")),d=i(n("9aa8")),f=i(n("ee05")),p=i(n("1b9c")),h=i(n("77a0")),g=i(n("cab0")),m=i(n("8294")),v=i(n("3377")),_=i(n("0c9e")),y=i(n("268a")),b=i(n("14c2")),M=i(n("301b")),S=i(n("9c5e")),C=i(n("aca7")),k=i(n("b9b1c")),T=i(n("5509")),I=i(n("8cd0")),w=i(n("32cc")),A=i(n("c2a5")),E=i(n("1876"));s.default.name="VUniAd",s.default.mixins=s.default.mixins?[].concat(r.default,s.default.mixins):[r.default],s.default.mixins.push(a.default),o.default.component(s.default.name,s.default),c.default.name="VUniButton",c.default.mixins=c.default.mixins?[].concat(r.default,c.default.mixins):[r.default],c.default.mixins.push(a.default),o.default.component(c.default.name,c.default),u.default.name="VUniCheckbox",u.default.mixins=u.default.mixins?[].concat(r.default,u.default.mixins):[r.default],u.default.mixins.push(a.default),o.default.component(u.default.name,u.default),l.default.name="VUniImage",l.default.mixins=l.default.mixins?[].concat(r.default,l.default.mixins):[r.default],l.default.mixins.push(a.default),o.default.component(l.default.name,l.default),d.default.name="VUniInput",d.default.mixins=d.default.mixins?[].concat(r.default,d.default.mixins):[r.default],d.default.mixins.push(a.default),o.default.component(d.default.name,d.default),f.default.name="VUniLabel",f.default.mixins=f.default.mixins?[].concat(r.default,f.default.mixins):[r.default],f.default.mixins.push(a.default),o.default.component(f.default.name,f.default),p.default.name="VUniMovableArea",p.default.mixins=p.default.mixins?[].concat(r.default,p.default.mixins):[r.default],p.default.mixins.push(a.default),o.default.component(p.default.name,p.default),h.default.name="VUniMovableView",h.default.mixins=h.default.mixins?[].concat(r.default,h.default.mixins):[r.default],h.default.mixins.push(a.default),o.default.component(h.default.name,h.default),g.default.name="VUniPicker",g.default.mixins=g.default.mixins?[].concat(r.default,g.default.mixins):[r.default],g.default.mixins.push(a.default),o.default.component(g.default.name,g.default),m.default.name="VUniPickerView",m.default.mixins=m.default.mixins?[].concat(r.default,m.default.mixins):[r.default],m.default.mixins.push(a.default),o.default.component(m.default.name,m.default),v.default.name="VUniPickerViewColumn",v.default.mixins=v.default.mixins?[].concat(r.default,v.default.mixins):[r.default],v.default.mixins.push(a.default),o.default.component(v.default.name,v.default),_.default.name="VUniRadio",_.default.mixins=_.default.mixins?[].concat(r.default,_.default.mixins):[r.default],_.default.mixins.push(a.default),o.default.component(_.default.name,_.default),y.default.name="VUniRadioGroup",y.default.mixins=y.default.mixins?[].concat(r.default,y.default.mixins):[r.default],y.default.mixins.push(a.default),o.default.component(y.default.name,y.default),b.default.name="VUniResizeSensor",b.default.mixins=b.default.mixins?[].concat(r.default,b.default.mixins):[r.default],b.default.mixins.push(a.default),o.default.component(b.default.name,b.default),M.default.name="VUniScrollView",M.default.mixins=M.default.mixins?[].concat(r.default,M.default.mixins):[r.default],M.default.mixins.push(a.default),o.default.component(M.default.name,M.default),S.default.name="VUniSlider",S.default.mixins=S.default.mixins?[].concat(r.default,S.default.mixins):[r.default],S.default.mixins.push(a.default),o.default.component(S.default.name,S.default),C.default.name="VUniSwiper",C.default.mixins=C.default.mixins?[].concat(r.default,C.default.mixins):[r.default],C.default.mixins.push(a.default),o.default.component(C.default.name,C.default),k.default.name="VUniSwiperItem",k.default.mixins=k.default.mixins?[].concat(r.default,k.default.mixins):[r.default],k.default.mixins.push(a.default),o.default.component(k.default.name,k.default),T.default.name="VUniText",T.default.mixins=T.default.mixins?[].concat(r.default,T.default.mixins):[r.default],T.default.mixins.push(a.default),o.default.component(T.default.name,T.default),I.default.name="VUniTextarea",I.default.mixins=I.default.mixins?[].concat(r.default,I.default.mixins):[r.default],I.default.mixins.push(a.default),o.default.component(I.default.name,I.default),w.default.name="VUniVideo",w.default.mixins=w.default.mixins?[].concat(r.default,w.default.mixins):[r.default],w.default.mixins.push(a.default),o.default.component(w.default.name,w.default),A.default.name="VUniView",A.default.mixins=A.default.mixins?[].concat(r.default,A.default.mixins):[r.default],A.default.mixins.push(a.default),o.default.component(A.default.name,A.default),E.default.name="VUniWebView",E.default.mixins=E.default.mixins?[].concat(r.default,E.default.mixins):[r.default],E.default.mixins.push(a.default),o.default.component(E.default.name,E.default)},c20d:function(e,t,n){var i=n("da84"),o=n("58a8").trim,r=n("5899"),a=i.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(r+"08")||22!==a(r+"0x16");e.exports=c?function(e,t){var n=o(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},c2a5:function(e,t,n){"use strict";n.r(t);var i=n("c11e"),o=n("9f48");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},c2b1:function(e,t,n){"use strict";n.r(t);var i=n("3152"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},c2b15:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("f1ca")),r=n("2ca3"),a={methods:{$getRealPath:function(e){return e?(0,o.default)(e):e},$trigger:function(e,t,n){this.$emit(e,r.processEvent.call(this,e,t,n,this.$el,this.$el))}}};t.default=a},c2cb:function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("bb41")),r=i(n("6180")),a=n("81e8"),s=i(n("5fe7")),c=i(n("c7ff")),u=n("1387"),l=n("0138"),d=n("64fe");function f(e){var t=20,n=0,i=0;e.addEventListener("touchstart",(function(e){var t=e.changedTouches[0];n=t.clientX,i=t.clientY})),e.addEventListener("touchend",(function(e){var o=e.changedTouches[0];if(Math.abs(o.clientX-n)<t&&Math.abs(o.clientY-i)<t){var r=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){r[e]=o[e]})),e.target.dispatchEvent(r)}}))}var p={name:"ActionSheet",components:{keypress:r.default},mixins:[a.i18nMixin,o.default,s.default,c.default],props:{title:{type:String,default:""},itemList:{type:Array,default:function(){return[]}},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},data:function(){return{HEIGHT:260,contentHeight:0,titleHeight:0,deltaY:0,scrollTop:0}},watch:{visible:function(e){var t=this;e&&this.$nextTick((function(){t.title&&(t.titleHeight=document.querySelector(".uni-actionsheet__title").offsetHeight),t._scroller.update(),t.contentHeight=t.$refs.content.clientHeight-t.HEIGHT,document.querySelectorAll(".uni-actionsheet__cell").forEach((function(e){f(e)}))}))}},mounted:function(){var e=this;this.touchtrack(this.$refs.content,"_handleTrack",!0),this.$nextTick((function(){e.initScroller(e.$refs.content,{enableY:!0,friction:new u.Friction(1e-4),spring:new l.Spring(2,90,20),onScroll:function(t){e.scrollTop=t.target.scrollTop}})})),(0,d.initScrollBounce)()},methods:{_close:function(e){this.$emit("close",e)},_handleTrack:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e),(0,d.disableScrollBounce)({disable:!0});break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e),(0,d.disableScrollBounce)({disable:!1})}},_handleWheel:function(e){var t=this.deltaY+e.deltaY;Math.abs(t)>10?(this.scrollTop+=t/3,this.scrollTop=this.scrollTop>=this.contentHeight?this.contentHeight:this.scrollTop<=0?0:this.scrollTop,this._scroller.scrollTo(this.scrollTop)):this.deltaY=t,e.preventDefault()}}};t.default=p},c2e0:function(e,t,n){"use strict";n.r(t);var i=n("f650"),o=n("3e24");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},c331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("987d"),o={name:"Checkbox",mixins:[i.emitter,i.listeners],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"},value:{type:String,default:""}},data:function(){return{checkboxChecked:this.checked,checkboxValue:this.value}},watch:{checked:function(e){this.checkboxChecked=e},value:function(e){this.checkboxValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("CheckboxGroup","uni-checkbox-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||(this.checkboxChecked=!this.checkboxChecked,this.$dispatch("CheckboxGroup","uni-checkbox-change",e))},_resetFormData:function(){this.checkboxChecked=!1}}};t.default=o},c343:function(e,t,n){"use strict";(function(e){n("99af"),n("caad"),n("d3b7"),n("2532"),Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=a;var i=n("e3f5"),o=n("2967"),r=n("b242");function a(t,n){var a=t.type,s=t.altitude,c=t.isHighAccuracy,u=t.highAccuracyExpireTime,l=e,d=l.invokeCallbackHandler,f=(0,o.getMapInfo)();new Promise((function(e,t){navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){return e(t.coords)}),t,{enableHighAccuracy:c||s,timeout:u||1e5}):t(new Error("device nonsupport geolocation"))})).catch((function(){return new Promise((function(e,t){f.type===o.MapType.QQ?(0,i.getJSONP)("https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=".concat(f.key),{callback:"callback"},(function(n){if("result"in n&&n.result.location){var i=n.result.location;e({latitude:i.lat,longitude:i.lng},!0)}else t(new Error(n.message||JSON.stringify(n)))}),(function(){return t(new Error("network error"))})):f.type===o.MapType.GOOGLE?uni.request({method:"POST",url:"https://www.googleapis.com/geolocation/v1/geolocate?key=".concat(f.key),success:function(n){var i=n.data;"location"in i?e({latitude:i.location.lat,longitude:i.location.lng,accuracy:i.accuracy}):t(new Error(i.error&&i.error.message||JSON.stringify(n)))},fail:function(){t(new Error("network error"))}}):t(new Error("network error"))}))})).then((function(e,t){var n=[o.MapType.GOOGLE];return"WGS84"===a.toUpperCase()||n.includes(f.type)||t?e:f.type===o.MapType.QQ?new Promise((function(t){(0,i.getJSONP)("https://apis.map.qq.com/jsapi?qt=translate&type=1&points=".concat(e.longitude,",").concat(e.latitude,"&key=").concat(f.key,"&output=jsonp&pf=jsapi&ref=jsapi"),{callback:"cb"},(function(n){if("detail"in n&&"points"in n.detail&&n.detail.points.length){var i=n.detail.points[0];t(Object.assign({},e,{longitude:i.lng,latitude:i.lat}))}else t(e)}),(function(){return t(e)}))})):f.type===o.MapType.AMAP?new Promise((function(t){(0,r.loadMaps)([],(function(){window.AMap.convertFrom([e.longitude,e.latitude],"gps",(function(n,i){if("ok"===i.info&&i.locations.length){var o=i.locations[0],r=o.lat,a=o.lng;t(Object.assign({},e,{longitude:a,latitude:r}))}else t(e)}))}))})):void 0})).then((function(e){d(n,Object.assign(e,{errMsg:"getLocation:ok",verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy}))})).catch((function(e){d(n,{errMsg:"getLocation:fail "+e.message})}))}}).call(this,n("a9aa"))},c381:function(e,t,n){"use strict";n.r(t);var i=n("e574"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},c3ab:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("c7ff")),r=n("db6a"),a=n("64fe"),s=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!!r.supportsPassive&&{passive:e}},c=s(),u={name:"ScrollView",mixins:[o.default],props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},data:function(){return{lastScrollTop:this.scrollTopNumber,lastScrollLeft:this.scrollLeftNumber,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}},computed:{upperThresholdNumber:function(){var e=Number(this.upperThreshold);return isNaN(e)?50:e},lowerThresholdNumber:function(){var e=Number(this.lowerThreshold);return isNaN(e)?50:e},scrollTopNumber:function(){return Number(this.scrollTop)||0},scrollLeftNumber:function(){return Number(this.scrollLeft)||0}},watch:{scrollTopNumber:function(e){this._scrollTopChanged(e)},scrollLeftNumber:function(e){this._scrollLeftChanged(e)},scrollIntoView:function(e){this._scrollIntoViewChanged(e)},refresherTriggered:function(e){!0===e?this._setRefreshState("refreshing"):!1===e&&this._setRefreshState("restore")}},mounted:function(){var e=this,t=null,n=null;this._attached=!0,this.toUpperNumber=0,this.triggerAbort=!1,this.beforeRefreshing=!1,this._scrollTopChanged(this.scrollTopNumber),this._scrollLeftChanged(this.scrollLeftNumber),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=function(t){t.preventDefault(),t.stopPropagation(),e._handleScroll.bind(e,t)()},this.__handleTouchMove=function(i){if(null!==t){var o=i.touches[0].pageX,r=i.touches[0].pageY,a=e.$refs.main;if(Math.abs(o-t.x)>Math.abs(r-t.y))if(e.scrollX){if(0===a.scrollLeft&&o>t.x)return void(n=!1);if(a.scrollWidth===a.offsetWidth+a.scrollLeft&&o<t.x)return void(n=!1);n=!0}else n=!1;else if(e.scrollY)if(0===a.scrollTop&&r>t.y)n=!1,e.refresherEnabled&&!1!==i.cancelable&&i.preventDefault();else{if(a.scrollHeight===a.offsetHeight+a.scrollTop&&r<t.y)return void(n=!1);n=!0}else n=!1;if(n&&i.stopPropagation(),0===a.scrollTop&&1===i.touches.length&&(e.refreshState="pulling"),e.refresherEnabled&&"pulling"===e.refreshState){var s=r-t.y;0===e.toUpperNumber&&(e.toUpperNumber=r),e.beforeRefreshing?(e.refresherHeight=s+e.refresherThreshold,e.triggerAbort=!1):(e.refresherHeight=r-e.toUpperNumber,e.refresherHeight>0&&(e.triggerAbort=!0,e.$trigger("refresherpulling",i,{deltaY:s})));var c=e.refresherHeight/e.refresherThreshold;e.refreshRotate=360*(c>1?1:c)}}},this.__handleTouchStart=function(e){1===e.touches.length&&((0,a.disableScrollBounce)({disable:!0}),t={x:e.touches[0].pageX,y:e.touches[0].pageY})},this.__handleTouchEnd=function(n){t=null,(0,a.disableScrollBounce)({disable:!1}),e.refresherHeight>=e.refresherThreshold?e._setRefreshState("refreshing"):e._setRefreshState("refresherabort")},this.$refs.main.addEventListener("touchstart",this.__handleTouchStart,c),this.$refs.main.addEventListener("touchmove",this.__handleTouchMove,s(!1)),this.$refs.main.addEventListener("scroll",this.__handleScroll,s(!1)),this.$refs.main.addEventListener("touchend",this.__handleTouchEnd,c),(0,a.initScrollBounce)()},activated:function(){this.scrollY&&(this.$refs.main.scrollTop=this.lastScrollTop),this.scrollX&&(this.$refs.main.scrollLeft=this.lastScrollLeft)},beforeDestroy:function(){this.$refs.main.removeEventListener("touchstart",this.__handleTouchStart,c),this.$refs.main.removeEventListener("touchmove",this.__handleTouchMove,c),this.$refs.main.removeEventListener("scroll",this.__handleScroll,s(!1)),this.$refs.main.removeEventListener("touchend",this.__handleTouchEnd,c)},methods:{scrollTo:function(e,t){var n=this.$refs.main;e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight);var i=0,o="";"x"===t?i=n.scrollLeft-e:"y"===t&&(i=n.scrollTop-e),0!==i&&(this.$refs.content.style.transition="transform .3s ease-out",this.$refs.content.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?o="translateX("+i+"px) translateZ(0)":"y"===t&&(o="translateY("+i+"px) translateZ(0)"),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,e,t),this.$refs.content.addEventListener("transitionend",this.__transitionEnd),this.$refs.content.addEventListener("webkitTransitionEnd",this.__transitionEnd),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),this.$refs.content.style.transform=o,this.$refs.content.style.webkitTransform=o)},_handleTrack:function(e){if("start"===e.detail.state)return this._x=e.detail.x,this._y=e.detail.y,void(this._noBubble=null);"end"===e.detail.state&&(this._noBubble=!1),null===this._noBubble&&this.scrollY&&(Math.abs(this._y-e.detail.y)/Math.abs(this._x-e.detail.x)>1?this._noBubble=!0:this._noBubble=!1),null===this._noBubble&&this.scrollX&&(Math.abs(this._x-e.detail.x)/Math.abs(this._y-e.detail.y)>1?this._noBubble=!0:this._noBubble=!1),this._x=e.detail.x,this._y=e.detail.y,this._noBubble&&e.stopPropagation()},_handleScroll:function(e){var t=e.target;this.$trigger("scroll",e,{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,deltaX:this.lastScrollLeft-t.scrollLeft,deltaY:this.lastScrollTop-t.scrollTop}),this.scrollY&&(t.scrollTop<=this.upperThresholdNumber&&this.lastScrollTop-t.scrollTop>0&&e.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",e,{direction:"top"}),this.lastScrollToUpperTime=e.timeStamp),t.scrollTop+t.offsetHeight+this.lowerThresholdNumber>=t.scrollHeight&&this.lastScrollTop-t.scrollTop<0&&e.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",e,{direction:"bottom"}),this.lastScrollToLowerTime=e.timeStamp)),this.scrollX&&(t.scrollLeft<=this.upperThresholdNumber&&this.lastScrollLeft-t.scrollLeft>0&&e.timeStamp-this.lastScrollToUpperTime>200&&(this.$trigger("scrolltoupper",e,{direction:"left"}),this.lastScrollToUpperTime=e.timeStamp),t.scrollLeft+t.offsetWidth+this.lowerThresholdNumber>=t.scrollWidth&&this.lastScrollLeft-t.scrollLeft<0&&e.timeStamp-this.lastScrollToLowerTime>200&&(this.$trigger("scrolltolower",e,{direction:"right"}),this.lastScrollToLowerTime=e.timeStamp)),this.lastScrollTop=t.scrollTop,this.lastScrollLeft=t.scrollLeft},_scrollTopChanged:function(e){this.scrollY&&(this._innerSetScrollTop?this._innerSetScrollTop=!1:this.scrollWithAnimation?this.scrollTo(e,"y"):this.$refs.main.scrollTop=e)},_scrollLeftChanged:function(e){this.scrollX&&(this._innerSetScrollLeft?this._innerSetScrollLeft=!1:this.scrollWithAnimation?this.scrollTo(e,"x"):this.$refs.main.scrollLeft=e)},_scrollIntoViewChanged:function(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void e.error("id error: scroll-into-view=".concat(t));var n=this.$el.querySelector("#"+t);if(n){var i=this.$refs.main.getBoundingClientRect(),o=n.getBoundingClientRect();if(this.scrollX){var r=o.left-i.left,a=this.$refs.main.scrollLeft,s=a+r;this.scrollWithAnimation?this.scrollTo(s,"x"):this.$refs.main.scrollLeft=s}if(this.scrollY){var c=o.top-i.top,u=this.$refs.main.scrollTop,l=u+c;this.scrollWithAnimation?this.scrollTo(l,"y"):this.$refs.main.scrollTop=l}}}},_transitionEnd:function(e,t){this.$refs.content.style.transition="",this.$refs.content.style.webkitTransition="",this.$refs.content.style.transform="",this.$refs.content.style.webkitTransform="";var n=this.$refs.main;"x"===t?(n.style.overflowX=this.scrollX?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=this.scrollY?"auto":"hidden",n.scrollTop=e),this.$refs.content.removeEventListener("transitionend",this.__transitionEnd),this.$refs.content.removeEventListener("webkitTransitionEnd",this.__transitionEnd)},_setRefreshState:function(e){switch(e){case"refreshing":this.refresherHeight=this.refresherThreshold,this.beforeRefreshing||(this.beforeRefreshing=!0,this.$trigger("refresherrefresh",{},{}));break;case"restore":case"refresherabort":this.beforeRefreshing=!1,this.refresherHeight=this.toUpperNumber=0,"restore"===e&&(this.triggerAbort=!1,this.$trigger("refresherrestore",{},{})),"refresherabort"===e&&this.triggerAbort&&(this.triggerAbort=!1,this.$trigger("refresherabort",{},{}));break}this.refreshState=e},getScrollPosition:function(){var e=this.$refs.main;return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth}}}};t.default=u}).call(this,n("5a52")["default"])},c411:function(e,t,n){"use strict";n("4de4"),n("caad"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.chooseVideo=void 0;var i=["album","camera"],o={sourceType:{type:Array,required:!1,default:i,validator:function(e,t){e=e.filter((function(e){return i.includes(e)})),t.sourceType=e.length?e:i}},compressed:{type:Boolean,default:!0},maxDuration:{type:Number,default:60},camera:{type:String,default:"back"},extension:{type:Array,default:["*"],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}};t.chooseVideo=o},c430:function(e,t){e.exports=!1},c4fe:function(e,t,n){"use strict";n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.getLocale=a,t.setLocale=s,t.onLocaleChange=u;var i=n("7329"),o=n("81e8"),r=n("0fbe");function a(){var e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:o.i18n.getLocale()}function s(e){var t=getApp().$vm.$locale;return t!==e&&(getApp().$vm.$locale=e,window.localStorage&&(localStorage[r.UNI_STORAGE_LOCALE]=e),c.forEach((function(t){(0,i.invoke)(t,{locale:e})})),!0)}var c=[];function u(e){c.push(e)}},c558:function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.uni=void 0;var o=i(n("983e")),r=n("4f1f"),a=n("a5e0"),s=i(n("8330")),c=Object.create(null);t.uni=c,o.default.forEach((function(e){s.default[e]?c[e]=(0,a.promisify)(e,(0,r.wrapper)(e,s.default[e])):c[e]=(0,r.wrapperUnimplemented)(e)}))},c5c3:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=f,t.unsubscribe=p,t.subscribeHandler=h,Object.defineProperty(t,"publishHandler",{enumerable:!0,get:function(){return a.publishHandler}}),t.emit=t.once=t.off=t.on=void 0;var o=i(n("e143")),r=i(n("825f")),a=n("b65e"),s=new o.default,c=s.$on.bind(s);t.on=c;var u=s.$off.bind(s);t.off=u;var l=s.$once.bind(s);t.once=l;var d=s.$emit.bind(s);function f(e,t){return c("service."+e,t)}function p(e,t){return u("service."+e,t)}function h(e,t,n){d("service."+e,t,n)}t.emit=d,(0,r.default)(f)},c5e7:function(e,t,n){"use strict";n.r(t);var i=n("231e"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6c2:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("4160"),n("e25e"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,r=i(n("e143")),a=n("db6a"),s=n("0fbe"),c=["top","left","right"],u=document.documentElement;function l(e,t){o||(o=u.style),o.setProperty(e,t)}function d(e){var t=window.screen,n=[window.outerWidth,window.outerHeight,t.width,t.height,u.clientWidth,u.clientHeight];return Math.max.apply(null,n)>e}var f={name:"Layout",props:{routerKey:{type:String,default:""},keepAliveInclude:{type:Array,default:function(){return[]}}},data:function(){return{marginWidth:0,leftWindowStyle:"",rightWindowStyle:"",topWindowStyle:"",topWindowMediaQuery:!1,leftWindowMediaQuery:!1,rightWindowMediaQuery:!1,topWindowHeight:"0px",apiShowTopWindow:!1,apiShowLeftWindow:!1,apiShowRightWindow:!1,navigationBarTitleText:"",maxWidthMeidaQuery:!1}},computed:{bindWindow:function(){return{matchTopWindow:this.topWindowMediaQuery,showTopWindow:this.showTopWindow||this.apiShowTopWindow,matchLeftWindow:this.leftWindowMediaQuery,showLeftWindow:this.showLeftWindow||this.apiShowLeftWindow,matchRightWindow:this.rightWindowMediaQuery,showRightWindow:this.showRightWindow||this.apiShowRightWindow}},showLayout:function(){return this.showTopWindow||this.showLeftWindow||this.showRightWindow},showTopWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.topWindow&&this.topWindowMediaQuery},showLeftWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.leftWindow&&this.leftWindowMediaQuery},showRightWindow:function(){return this.resetApiShowWindow(),!1!==this.$route.meta.rightWindow&&this.rightWindowMediaQuery}},watch:{$route:function(){this.checkMaxWidth()},showLayout:function(){this.checkLayout()},showTopWindow:function(e,t){e?this.$nextTick(this.onTopWindowInit):l("--top-window-height","0px")},showLeftWindow:function(e,t){e?this.$nextTick(this.onLeftWindowInit):l("--window-left","0px")},showRightWindow:function(e,t){e?this.$nextTick(this.onRightWindowInit):l("--window-right","0px")},marginWidth:function(e){l("--window-margin",e+"px")}},beforeCreate:function(){l("--top-window-height","0px"),l("--window-left","0px"),l("--window-right","0px"),l("--window-margin","0px")},created:function(){var t=this;this.topWindow=r.default.component("VUniTopWindow"),this.leftWindow=r.default.component("VUniLeftWindow"),this.rightWindow=r.default.component("VUniRightWindow"),(this.topWindow||this.leftWindow||this.rightWindow)&&uni.canIUse("css.var")&&window.matchMedia&&(c.forEach((function(e){return t.initWindowMinWidth(e)})),this.responsive=d(this.minWidth),this.responsive&&(this.topWindow&&this.topWindow.options.style&&(this.topWindowStyle=this.topWindow.options.style),this.leftWindow&&this.leftWindow.options.style&&(this.leftWindowStyle=this.leftWindow.options.style),this.rightWindow&&this.rightWindow.options.style&&(this.rightWindowStyle=this.rightWindow.options.style),c.forEach((function(e){return t.initMediaQuery(e)})),e.on("onNavigationBarChange",(function(e){t.navigationBarTitleText=e.titleText})))),this.initMaxWidth()},mounted:function(){this.checkLayout(),this.checkMaxWidth()},methods:{resetApiShowWindow:function(){this.apiShowLeftWindow=!1,this.apiShowRightWindow=!1},showWindow:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this[e+"Window"])return e+"Window not found";var n=(0,a.capitalize)(e);if(!this["show"+n+"Window"]){var i="apiShow"+n+"Window";this[i]!==t&&(this[i]=t,"top"===e&&(t?this.$nextTick(this.onTopWindowInit):l("--top-window-height","0px")))}},getWindowStyle:function(e){if(!this[e+"Window"])return e+"Window not found";var t=Object.assign({},this[e+"WindowStyle"]);return t},setWindowStyle:function(e,t){if(!this[e+"Window"])return e+"Window not found";t&&(this[e+"WindowStyle"]=t,this.$nextTick(this["on"+(0,a.capitalize)(e)+"WindowInit"]))},initMaxWidth:function(){var e=this;window.addEventListener("resize",(function(){e.checkMaxWidth()}))},checkLayout:function(){this.$emit("layout",this.showLayout)},checkMaxWidth:function(){var e=this,t=document.body.clientWidth,n=parseInt(this.$route.meta.maxWidth),i=!1;i=t>n,this.$emit("maxWidth",i),this.$containerElem||(this.$containerElem=document.querySelector("uni-app")),this.$containerElem&&(i&&n?(this.marginWidth=(t-n)/2,this.$nextTick((function(){e.onLeftWindowInit(),e.onRightWindowInit(),e.$containerElem.setAttribute("style","max-width:"+n+"px;margin:0 auto;")}))):(this.marginWidth=0,this.$nextTick((function(){e.onLeftWindowInit(),e.onRightWindowInit(),e.$containerElem.removeAttribute("style")}))))},initWindowMinWidth:function(e){var t=e+"Window";if(this[t]){var n=e+"WindowMinWidth";this[n]=s.RESPONSIVE_MIN_WIDTH;var i=__uniConfig[t];i&&i.matchMedia&&(0,a.hasOwn)(i.matchMedia,"minWidth")&&(this[n]=i.matchMedia.minWidth),("undefined"===typeof this.minWidth||this.minWidth>this[n])&&(this.minWidth=this[n])}},initMediaQuery:function(e){var t=this;if(this[e+"Window"]){var n=e+"WindowMediaQuery",i=window.matchMedia("(min-width: "+this[e+"WindowMinWidth"]+"px)");i.addListener((function(i){t[n]=i.matches,t.$nextTick((function(){t["on"+(0,a.capitalize)(e)+"WindowInit"]()}))})),this[n]=i.matches}},onTopWindowInit:function(){if(this.responsive&&this.topWindow){var e="0px";e=this.topWindowStyle&&this.topWindowStyle.height?this.$refs.topWindow.offsetHeight+"px":this.$refs.top.$el.offsetHeight+"px",this.topWindowHeight=e,l("--top-window-height",e)}},onLeftWindowInit:function(){this.responsive&&this.leftWindow?this.leftWindowStyle&&this.leftWindowStyle.width?l("--window-left",this.$refs.leftWindow.offsetWidth+this.marginWidth+"px"):l("--window-left",this.$refs.left.$el.offsetWidth+this.marginWidth+"px"):l("--window-left",this.marginWidth+"px")},onRightWindowInit:function(){this.responsive&&this.rightWindow?this.rightWindowStyle&&this.rightWindowStyle.width?l("--window-right",this.$refs.rightWindow.offsetWidth+this.marginWidth+"px"):l("--window-right",this.$refs.right.$el.offsetWidth+this.marginWidth+"px"):l("--window-right",this.marginWidth+"px")}}};t.default=f}).call(this,n("a9aa"))},c6cd:function(e,t,n){var i=n("da84"),o=n("ce4e"),r="__core-js_shared__",a=i[r]||o(r,{});e.exports=a},c740:function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").findIndex,r=n("44d2"),a=n("ae40"),s="findIndex",c=!0,u=a(s);s in[]&&Array(1)[s]((function(){c=!1})),i({target:"Array",proto:!0,forced:c||!u},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r(s)},c77b:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("ade3")),r=i(n("5897")),a=i(n("6180")),s={name:"Modal",components:{keypress:a.default},mixins:[r.default],props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},methods:{_close:function(e){var t=(0,o.default)({},e,!0);this.editable&&"confirm"===e&&(t.content=this.$refs.editContent.value),this.$emit("close",t)}}};t.default=s},c7ff:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5760"),o={methods:{initScroller:function(e,t){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new i.Scroller(e,t),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0},_findDelta:function(e){var t=this._touchInfo;return"move"===e.detail.state||"end"===e.detail.state?{x:e.detail.dx,y:e.detail.dy}:{x:e.screenX-t.x,y:e.screenY-t.y}},_handleTouchStart:function(e){var t=this._touchInfo,n=this._scroller;n&&("start"===e.detail.state?(t.trackingID="touch",t.x=e.detail.x,t.y=e.detail.y):(t.trackingID="mouse",t.x=e.screenX,t.y=e.screenY),t.maxDx=0,t.maxDy=0,t.historyX=[0],t.historyY=[0],t.historyTime=[e.detail.timeStamp],t.listener=n,n.onTouchStart&&n.onTouchStart(),e.preventDefault())},_handleTouchMove:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){for(t.maxDy=Math.max(t.maxDy,Math.abs(n.y)),t.maxDx=Math.max(t.maxDx,Math.abs(n.x)),t.historyX.push(n.x),t.historyY.push(n.y),t.historyTime.push(e.detail.timeStamp);t.historyTime.length>10;)t.historyTime.shift(),t.historyX.shift(),t.historyY.shift();t.listener&&t.listener.onTouchMove&&t.listener.onTouchMove(n.x,n.y,e.detail.timeStamp)}}},_handleTouchEnd:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){var i=t.listener;t.trackingID=-1,t.listener=null;var o=t.historyTime.length,r={x:0,y:0};if(o>2)for(var a=t.historyTime.length-1,s=t.historyTime[a],c=t.historyX[a],u=t.historyY[a];a>0;){a--;var l=t.historyTime[a],d=s-l;if(d>30&&d<50){r.x=(c-t.historyX[a])/(d/1e3),r.y=(u-t.historyY[a])/(d/1e3);break}}t.historyTime=[],t.historyX=[],t.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,r)}}}}};t.default=o},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("d039"),o=n("5899"),r="
";e.exports=function(e){return i((function(){return!!o[e]()||r[e]()!=r||o[e].name!==e}))}},c975:function(e,t,n){"use strict";var i=n("23e7"),o=n("4d64").indexOf,r=n("a640"),a=n("ae40"),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,u=r("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:c||!u||!l},{indexOf:function(e){return c?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},ca06:function(e,t,n){"use strict";var i=n("4ea4");n("caad"),n("fb6a"),n("e25e"),n("ac1f"),n("466d"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgba=r;var o=i(n("3835"));function r(e){if(!e)return{r:0,g:0,b:0,a:0};var t=e.slice(1),n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));var i=t.match(/(\w{2})/g),r=(0,o.default)(i,4),a=r[0],s=r[1],c=r[2],u=r[3],l=parseInt(a,16),d=parseInt(s,16),f=parseInt(c,16);return u?{r:l,g:d,b:f,a:("0x100".concat(u)-65536)/255}:{r:l,g:d,b:f,a:1}}},ca84:function(e,t,n){var i=n("5135"),o=n("fc6a"),r=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)!i(a,n)&&i(s,n)&&u.push(n);while(t.length>c)i(s,n=t[c++])&&(~r(u,n)||u.push(n));return u}},ca91:function(e,t,n){"use strict";var i=n("ebb5"),o=n("d58f").left,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduce",(function(e){return o(r(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var i=n("23e7"),o=n("4d64").includes,r=n("44d2"),a=n("ae40"),s=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!s},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},cab0:function(e,t,n){"use strict";n.r(t);var i=n("2274"),o=n("4963");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},cb09:function(e,t,n){"use strict";n.r(t);var i=n("5bdf"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},cc12:function(e,t,n){var i=n("da84"),o=n("861d"),r=i.document,a=o(r)&&o(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},cca6:function(e,t,n){var i=n("23e7"),o=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cca8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5eee"),o=n("a55c"),r=n("1a14"),a=n("c411"),s=n("4688"),c=n("a377"),u=n("a68d"),l=n("0ebb"),d=n("4ec9"),f=n("9582"),p=n("6504"),h=n("7d2c"),g=n("3319"),m=n("1c2c"),v=n("0857"),_=n("02d2"),y=n("0735"),b=n("6186"),M=n("37fa"),S={$emit:i.$emit,$off:i.$off,$on:i.$on,canIUse:o.canIUse,chooseImage:r.chooseImage,chooseVideo:a.chooseVideo,downloadFile:s.downloadFile,getLocation:c.getLocation,getProvider:u.getProvider,getStorageSync:l.getStorageSync,makePhoneCall:d.makePhoneCall,navigateBack:f.navigateBack,navigateTo:f.navigateTo,openDocument:p.openDocument,pageScrollTo:h.pageScrollTo,previewImage:g.previewImage,reLaunch:f.reLaunch,redirectTo:f.redirectTo,request:m.request,setClipboardData:v.setClipboardData,setNavigationBarTitle:_.setNavigationBarTitle,setStorageSync:l.setStorageSync,showActionSheet:y.showActionSheet,showLoading:y.showLoading,showModal:y.showModal,showToast:y.showToast,switchTab:f.switchTab,uploadFile:b.uploadFile,upx2px:M.upx2px};t.default=S},cd26:function(e,t,n){"use strict";var i=n("ebb5"),o=i.aTypedArray,r=i.exportTypedArrayMethod,a=Math.floor;r("reverse",(function(){var e,t=this,n=o(t).length,i=a(n/2),r=0;while(r<i)e=t[r],t[r++]=t[--n],t[n]=e;return t}))},cdf9:function(e,t,n){var i=n("825a"),o=n("861d"),r=n("f069");e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;var n=r.f(e),a=n.resolve;return a(t),n.promise}},ce4e:function(e,t,n){var i=n("da84"),o=n("9112");e.exports=function(e,t){try{o(i,e,t)}catch(n){i[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("428f"),o=n("da84"),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},d138:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scroll=r;var i=n("1387"),o=n("0138");function r(e,t,n){this._extent=e,this._friction=t||new i.Friction(.01),this._spring=n||new o.Spring(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}r.prototype.snap=function(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)},r.prototype.set=function(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},r.prototype.x=function(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t},r.prototype.dx=function(e){var t=0;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t},r.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},r.prototype.setVelocityByEnd=function(e){this._friction.setVelocityByEnd(e)},r.prototype.configuration=function(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}},d139:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").find,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("find",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d1ce:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-video",e._g({attrs:{id:e.id}},e.$listeners),[n("div",{ref:"container",staticClass:"uni-video-container",on:{touchstart:e.touchstart,touchend:e.touchend,touchmove:e.touchmove,fullscreenchange:function(t){return t.stopPropagation(),e.onFullscreenChange(t)},webkitfullscreenchange:function(t){return t.stopPropagation(),e.onFullscreenChange(t,!0)}}},[n("video",e._b({ref:"video",staticClass:"uni-video-video",style:{objectFit:e.objectFit},attrs:{loop:e.loop,src:e.srcSync,poster:e.poster,autoplay:e.autoplay,"webkit-playsinline":!0,playsinline:!0},domProps:{muted:e.muted},on:{click:e.triggerControls,durationchange:e.onDurationChange,loadedmetadata:e.onLoadedMetadata,progress:e.onProgress,waiting:e.onWaiting,error:e.onVideoError,play:e.onPlay,pause:e.onPause,ended:e.onEnded,timeupdate:e.onTimeUpdate,webkitbeginfullscreen:function(t){return e.emitFullscreenChange(!0)},x5videoenterfullscreen:function(t){return e.emitFullscreenChange(!0)},webkitendfullscreen:function(t){return e.emitFullscreenChange(!1)},x5videoexitfullscreen:function(t){return e.emitFullscreenChange(!1)}}},"video",e.$attrs,!1)),n("div",{directives:[{name:"show",rawName:"v-show",value:e.controlsShow,expression:"controlsShow"}],staticClass:"uni-video-bar uni-video-bar-full",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-video-controls"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPlayBtn,expression:"showPlayBtn"}],staticClass:"uni-video-control-button",class:{"uni-video-control-button-play":!e.playing,"uni-video-control-button-pause":e.playing},on:{click:function(t){return t.stopPropagation(),e.trigger(t)}}}),n("div",{staticClass:"uni-video-current-time"},[e._v("\n "+e._s(e._f("time")(e.currentTime))+"\n ")]),n("div",{ref:"progress",staticClass:"uni-video-progress-container",on:{click:function(t){return t.stopPropagation(),e.clickProgress(t)}}},[n("div",{staticClass:"uni-video-progress"},[n("div",{staticClass:"uni-video-progress-buffered",style:{width:e.buffered+"%"}}),n("div",{ref:"ball",staticClass:"uni-video-ball",style:{left:e.progress+"%"}},[n("div",{staticClass:"uni-video-inner"})])])]),n("div",{staticClass:"uni-video-duration"},[e._v("\n "+e._s(e._f("time")(e.duration||e.durationTime))+"\n ")])]),e.danmuBtn?n("div",{staticClass:"uni-video-danmu-button",class:{"uni-video-danmu-button-active":e.enableDanmuSync},on:{click:function(t){return t.stopPropagation(),e.triggerDanmu(t)}}},[e._v("\n "+e._s(e.$$t("uni.video.danmu"))+"\n ")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showFullscreenBtn,expression:"showFullscreenBtn"}],staticClass:"uni-video-fullscreen",class:{"uni-video-type-fullscreen":e.fullscreen},on:{click:function(t){return t.stopPropagation(),e.triggerFullscreen(!e.fullscreen)}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.start&&e.enableDanmuSync,expression:"start&&enableDanmuSync"}],ref:"danmu",staticClass:"uni-video-danmu",staticStyle:{"z-index":"0"}}),e.centerPlayBtnShow?n("div",{staticClass:"uni-video-cover",on:{click:function(e){e.stopPropagation()}}},[n("div",{staticClass:"uni-video-cover-play-button",on:{click:function(t){return t.stopPropagation(),e.play(t)}}}),n("p",{staticClass:"uni-video-cover-duration"},[e._v("\n "+e._s(e._f("time")(e.duration||e.durationTime))+"\n ")])]):e._e(),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-volume":"volume"===e.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[e._v("\n "+e._s(e.$$t("uni.video.volume"))+"\n ")]),n("svg",{staticClass:"uni-video-toast-icon",attrs:{width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"}})]),n("div",{staticClass:"uni-video-toast-value"},[n("div",{staticClass:"uni-video-toast-value-content",style:{width:100*e.volumeNew+"%"}},[n("div",{staticClass:"uni-video-toast-volume-grids"},e._l(10,(function(e,t){return n("div",{key:t,staticClass:"uni-video-toast-volume-grids-item"})})),0)])])]),n("div",{staticClass:"uni-video-toast",class:{"uni-video-toast-progress":"progress"==e.gestureType}},[n("div",{staticClass:"uni-video-toast-title"},[e._v("\n "+e._s(e._f("time")(e.currentTimeNew))+" / "+e._s(e._f("time")(e.durationTime))+"\n ")])]),n("div",{staticClass:"uni-video-slots"},[e._t("default")],2)])])},r=[]},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:i},d25e:function(e,t,n){"use strict";n.r(t);var i=n("9c92"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return i(n),o(r),t?e.call(n,r):n.__proto__=r,n}}():void 0)},d37c:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-tabbar",{class:["uni-tabbar-"+e.position]},[n("div",{staticClass:"uni-tabbar",style:{backgroundColor:e.tabbarBackgroundColor,"backdrop-filter":"none"!==e.blurEffect?"blur(10px)":e.blurEffect}},[n("div",{staticClass:"uni-tabbar-border",style:{backgroundColor:e.borderColor}}),e._l(e.visibleList,(function(t,i){return n("div",{key:t.isMidButton?i:t.pagePath,staticClass:"uni-tabbar__item",style:t.isMidButton?{flex:"0 0 "+t.width,position:"relative"}:{},on:{click:function(n){return e._switchTab(t,i)}}},[t.isMidButton?n("div",{staticClass:"uni-tabbar__mid",style:e._uniTabbarBdStyle(t)},[t.iconPath?n("img",{style:{width:t.iconWidth,height:t.iconWidth},attrs:{src:e._getRealPath(t.iconPath)}}):e._e()]):e._e(),n("div",{staticClass:"uni-tabbar__bd",style:{height:e.height}},[e.getIconPath(t,i)||t.iconfont||t.iconPath||t.isMidButton?n("div",{staticClass:"uni-tabbar__icon",class:{"uni-tabbar__icon__diff":!t.text},style:{width:e.iconWidth,height:e.iconWidth}},[t.iconfont?n("div",{staticClass:"uni-tabbar__iconfont",style:{color:e.selectedIndex===i?t.iconfont.selectedColor:t.iconfont.color,fontSize:t.iconfont.fontSize||e.iconWidth}},[e._v("\n "+e._s(e.selectedIndex===i?t.iconfont.selectedText:t.iconfont.text)+"\n ")]):t.isMidButton?e._e():n("img",{attrs:{src:e._getRealPath(e.getIconPath(t,i))}}),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v("\n "+e._s(t.badge)+"\n ")]):e._e()]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===i?e.selectedColor:e.color,fontSize:e.fontSize,lineHeight:t.iconPath?"normal":1.8,marginTop:t.iconPath?e.spacing:"inherit"}},[e._v("\n "+e._s(t.text)+"\n "),t.redDot&&!t.iconPath?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v("\n "+e._s(t.badge)+"\n ")]):e._e()]):e._e()])])}))],2),n("div",{staticClass:"uni-placeholder",style:{height:e.height}})])},r=[]},d3b7:function(e,t,n){var i=n("00ee"),o=n("6eeb"),r=n("b041");i||o(Object.prototype,"toString",r,{unsafe:!0})},d3f0:function(e,t,n){"use strict";n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("987d"),o={name:"Radio",mixins:[i.emitter,i.listeners],props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007AFF"},value:{type:String,default:""}},data:function(){return{radioChecked:this.checked,radioValue:this.value}},computed:{checkedStyle:function(){return"background-color: ".concat(this.color,";border-color: ").concat(this.color,";")}},watch:{checked:function(e){this.radioChecked=e},value:function(e){this.radioValue=e}},listeners:{"label-click":"_onClick","@label-click":"_onClick"},created:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"add",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"add",vm:this})},beforeDestroy:function(){this.$dispatch("RadioGroup","uni-radio-group-update",{type:"remove",vm:this}),this.$dispatch("Form","uni-form-group-update",{type:"remove",vm:this})},methods:{_onClick:function(e){this.disabled||this.radioChecked||(this.radioChecked=!0,this.$dispatch("RadioGroup","uni-radio-change",e,this))},_resetFormData:function(){this.radioChecked=this.min}}};t.default=o},d44e:function(e,t,n){var i=n("9bf2").f,o=n("5135"),r=n("b622"),a=r("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},d4ec:function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},d58f:function(e,t,n){var i=n("1c0b"),o=n("7b0b"),r=n("44ad"),a=n("50c4"),s=function(e){return function(t,n,s,c){i(n);var u=o(t),l=r(u),d=a(u.length),f=e?d-1:0,p=e?-1:1;if(s<2)while(1){if(f in l){c=l[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in l&&(c=n(c,l[f],f,u));return c}};e.exports={left:s(!1),right:s(!0)}},d5d6:function(e,t,n){"use strict";var i=n("ebb5"),o=n("b727").forEach,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("forEach",(function(e){o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},d5fa:function(e,t,n){"use strict";n.r(t);var i=n("39a7"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},d61e:function(e,t,n){"use strict";(function(e){n("99af"),n("a9e3"),n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.requestMediaQueryObserver=s,t.destroyMediaQueryObserver=c;var i={},o={};function r(e){for(var t=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"],i=0,o=n;i<o.length;i++){var r=o[i];"orientation"!==r&&""!==e[r]&&Number(e[r])>=0&&t.push("(".concat(a(r),": ").concat(Number(e[r]),"px)")),"orientation"===r&&e[r]&&t.push("(".concat(a(r),": ").concat(e[r],")"))}return t=t.join(" and "),t}function a(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function s(t){var n=t.reqId,a=t.options,s=i[n]=window.matchMedia(r(a)),c=o[n]=function(t){e.publishHandler("onRequestMediaQueryObserver",{reqId:n,res:t.matches})};c(s),s.addListener(c)}function c(t){var n=t.reqId,r=o[n],a=i[n];a&&(a.removeListener(r),delete i[n],e.publishHandler("onRequestMediaQueryObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("c5c3"))},d66a:function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("b64b"),n("159b");var o=i(n("e143")),r=i(n("00de")),a=i(n("e52a")),s=i(n("7bbf")),c=i(n("c2e0")),u=i(n("13f1")),l=i(n("79fe"));o.default.component(r.default.name,r.default),o.default.component(a.default.name,a.default),o.default.component(s.default.name,s.default),o.default.component(c.default.name,c.default),o.default.component(u.default.name,u.default),Object.keys(l.default).forEach((function(e){var t=l.default[e];o.default.component(t.name,t)}))},d66d:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("fb6a"),n("b64b"),n("ac1f"),n("466d"),n("841c"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("a7a7")),r=n("f4f0"),a=n("41ae"),s=n("bc94"),c=n("f0b1"),u=n("b9b1"),l=n("7551"),d=n("db6a");function f(e){var t=0;return e.forEach((function(e){e.meta.id&&t++})),t}function p(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var g={install:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.routes;t.config.devtools&&"undefined"!==typeof window&&-1!==window.navigator.userAgent.toLowerCase().indexOf("hbuilderx")&&(t.config.devtools=!1),(0,u.initPolyfill)(t),(0,c.lifecycleMixin)(t),(0,d.uniIdMixin)(t),"undefined"!==typeof __UNI_ROUTER_BASE__&&(__uniConfig.router.base=__UNI_ROUTER_BASE__);var g=f(i),m=new o.default({id:g,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:i,scrollBehavior:function(e,t,n){if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){var i=(0,l.getTabBarScrollPosition)(e.params.__id__);if(i)return i}return{x:0,y:0}}}),v=[],_=m.match("history"===__uniConfig.router.mode?h(__uniConfig.router.base):p());if(_.meta.name&&(_.meta.id?v.push(_.meta.name+"-"+_.meta.id):v.push(_.meta.name+"-"+(g+1))),_.meta&&_.meta.name&&(document.body.className="uni-body "+_.meta.name,_.meta.isNVue)){var y="nvue-dir-"+__uniConfig.nvue["flex-direction"];document.body.setAttribute("nvue",""),document.body.setAttribute(y,"")}t.mixin({beforeCreate:function(){var n=this.$options;if("app"===n.mpType){n.data=function(){return{keepAliveInclude:v}};var o=(0,a.createAppMixin)(t,i,_);Object.keys(o).forEach((function(e){n[e]=n[e]?[].concat(o[e],n[e]):[o[e]]})),n.router=m,Array.isArray(n.onError)&&0!==n.onError.length||(n.onError=[function(t){e.error(t)}])}else if((0,r.isPage)(this)){var c=(0,s.createPageMixin)();Object.keys(c).forEach((function(e){n.mpOptions?n[e]=n[e]?[].concat(n[e],c[e]):[c[e]]:n[e]=n[e]?[].concat(c[e],n[e]):[c[e]]}))}else this.$parent&&this.$parent.__page__&&(this.__page__=this.$parent.__page__)}}),Object.defineProperty(t.prototype,"$page",{get:function(){return this.__page__}}),t.prototype.createSelectorQuery=function(){return uni.createSelectorQuery().in(this)},t.prototype.createIntersectionObserver=function(e){return uni.createIntersectionObserver(this,e)},t.prototype.createMediaQueryObserver=function(e){return uni.createMediaQueryObserver(this,e)},t.use(o.default)}};t.default=g}).call(this,n("5a52")["default"])},d687:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-preview-image",on:{click:e._click}},[n("v-uni-swiper",{staticClass:"uni-system-preview-image-swiper",attrs:{current:e.index,"indicator-dots":!1,autoplay:!1},on:{"update:current":function(t){e.index=t}}},e._l(e.urls,(function(e,t){return n("v-uni-swiper-item",{key:t},[n("image-view",{attrs:{src:e}})],1)})),1)],1)},r=[]},d784:function(e,t,n){"use strict";n("ac1f");var i=n("6eeb"),o=n("d039"),r=n("b622"),a=n("9263"),s=n("9112"),c=r("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l=function(){return"$0"==="a".replace(/./,"$0")}(),d=r("replace"),f=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var h=r(e),g=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=g&&!o((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!g||!m||"replace"===e&&(!u||!l||f)||"split"===e&&!p){var v=/./[h],_=n(h,""[e],(function(e,t,n,i,o){return t.exec===a?g&&!o?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=_[0],b=_[1];i(String.prototype,e,y),i(RegExp.prototype,h,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),o=n("b727").map,r=n("1dde"),a=n("ae40"),s=r("map"),c=a("map");i({target:"Array",proto:!0,forced:!s||!c},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},d8c3:function(e,t,n){"use strict";(function(e){n("99af"),n("4160"),n("c975"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("db6a"),o={props:{id:{type:String,default:""}},created:function(){var e=this;this._addListeners(this.id),this.$watch("id",(function(t,n){e._removeListeners(n,!0),e._addListeners(t,!0)}))},beforeDestroy:function(){this._removeListeners(this.id)},methods:{_addListeners:function(t,n){var o=this;if(!n||t){var r=this.$options.listeners;(0,i.isPlainObject)(r)&&Object.keys(r).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&e.on("uni-".concat(i,"-").concat(o.$page.id,"-").concat(t),o[r[i]]):0===i.indexOf("@")?o.$on("uni-".concat(i.substr(1)),o[r[i]]):0===i.indexOf("uni-")?e.on(i,o[r[i]]):t&&e.on("uni-".concat(i,"-").concat(o.$page.id,"-").concat(t),o[r[i]])}))}},_removeListeners:function(t,n){var o=this;if(!n||t){var r=this.$options.listeners;(0,i.isPlainObject)(r)&&Object.keys(r).forEach((function(i){n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&e.off("uni-".concat(i,"-").concat(o.$page.id,"-").concat(t),o[r[i]]):0===i.indexOf("@")?o.$off("uni-".concat(i.substr(1)),o[r[i]]):0===i.indexOf("uni-")?e.off(i,o[r[i]]):t&&e.off("uni-".concat(i,"-").concat(o.$page.id,"-").concat(t),o[r[i]])}))}}}};t.default=o}).call(this,n("c5c3"))},d8c8:function(e,t,n){"use strict";var i,o,r=["top","left","right","bottom"],a={};function s(){return o="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":"",o}function c(){if(o="string"===typeof o?o:s(),o){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(p){}var c=document.createElement("div");u(c,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),r.forEach((function(e){f(c,e)})),document.body.appendChild(c),l(),i=!0}else r.forEach((function(e){a[e]=0}));function u(e,t){var n=e.style;Object.keys(t).forEach((function(e){var i=t[e];n[e]=i}))}function l(t){t?e.push(t):e.forEach((function(e){e()}))}function f(e,n){var i=document.createElement("div"),r=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div"),f=100,p=1e4,h={position:"absolute",width:f+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:o+"(safe-area-inset-"+n+")"};u(i,h),u(r,h),u(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),u(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(s),r.appendChild(c),e.appendChild(i),e.appendChild(r),l((function(){i.scrollTop=r.scrollTop=p;var e=i.scrollTop,o=r.scrollTop;function a(){this.scrollTop!==(this===i?e:o)&&(i.scrollTop=r.scrollTop=p,e=i.scrollTop,o=r.scrollTop,d(n))}i.addEventListener("scroll",a,t),r.addEventListener("scroll",a,t)}));var g=getComputedStyle(i);Object.defineProperty(a,n,{configurable:!0,get:function(){return parseFloat(g.paddingBottom)}})}}function u(e){return i||c(),a[e]}var l=[];function d(e){l.length||setTimeout((function(){var e={};l.forEach((function(t){e[t]=a[t]})),l.length=0,f.forEach((function(t){t(e)}))}),0),l.push(e)}var f=[];function p(e){s()&&(i||c(),"function"===typeof e&&f.push(e))}function h(e){var t=f.indexOf(e);t>=0&&f.splice(t,1)}var g={get support(){return 0!=("string"===typeof o?o:s()).length},get top(){return u("top")},get left(){return u("left")},get right(){return u("right")},get bottom(){return u("bottom")},onChange:p,offChange:h};e.exports=g},d961:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-ad",e._g(e._b({},"uni-ad",e.attrs,!1),e.$listeners),[n("div",{ref:"container",staticClass:"uni-ad-container",on:{click:e._onhandle}})])},r=[]},da5c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsPassive=void 0;var i=!1;t.supportsPassive=i;try{var o={};Object.defineProperty(o,"passive",{get:function(){t.supportsPassive=i=!0}}),window.addEventListener("test-passive",null,o)}catch(r){}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},db6a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("da5c");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var o=n("35be");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var r=n("ca06");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var a=n("9805");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var s=n("40da");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var c=n("3a7e");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}))},db90:function(e,t,n){"use strict";function i(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},dbb4:function(e,t,n){var i=n("23e7"),o=n("83ab"),r=n("56ef"),a=n("fc6a"),s=n("06cf"),c=n("8418");i({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,i=a(e),o=s.f,u=r(i),l={},d=0;while(u.length>d)n=o(i,t=u[d++]),void 0!==n&&c(l,t,n);return l}})},dbce:function(e,t,n){n("e439"),n("d3b7"),n("3ca3"),n("10d1"),n("ddb0");var i=n("7037");function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function r(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}e.exports=r},ddb0:function(e,t,n){var i=n("da84"),o=n("fdbc"),r=n("e260"),a=n("9112"),s=n("b622"),c=s("iterator"),u=s("toStringTag"),l=r.values;for(var d in o){var f=i[d],p=f&&f.prototype;if(p){if(p[c]!==l)try{a(p,c,l)}catch(g){p[c]=l}if(p[u]||a(p,u,d),o[d])for(var h in r)if(p[h]!==r[h])try{a(p,h,r[h])}catch(g){p[h]=r[h]}}}},df75:function(e,t,n){var i=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return i(e,o)}},dfbd:function(e,t,n){"use strict";n.r(t);var i=n("c2cb"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},e01a:function(e,t,n){"use strict";var i=n("23e7"),o=n("83ab"),r=n("da84"),a=n("5135"),s=n("861d"),c=n("9bf2").f,u=n("e893"),l=r.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new l(e):void 0===e?l():l(e);return""===e&&(d[t]=!0),t};u(f,l);var p=f.prototype=l.prototype;p.constructor=f;var h=p.toString,g="Symbol(test)"==String(l("test")),m=/^Symbol\((.*)\)[^)]+$/;c(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=h.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:f})}},e04c:function(e,t,n){"use strict";n.r(t);var i=n("f522"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},e0cd:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-async-error",on:{click:e._onClick}},[e._v("\n "+e._s(e.$$t("uni.async.error"))+"\n")])},r=[]},e12d:function(e,t,n){"use strict";var i=n("4ea4");n("d81d"),Object.defineProperty(t,"__esModule",{value:!0}),t.createCallout=c;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ade3")),s=n("2967");function c(e){function t(){var e=this.div,t=this.getPanes();t.floatPane.appendChild(e)}function n(){var e=this.div.parentNode;e&&e.removeChild(this.div)}function i(){var t=this,n=this.option;this.Text=new e.Text({text:n.content,anchor:"bottom-center",offset:new e.Pixel(0,n.offsetY-16),style:{padding:(n.padding||8)+"px","line-height":(n.fontSize||14)+"px","border-radius":(n.borderRadius||0)+"px","border-color":"".concat(n.bgColor||"#fff"," transparent transparent"),"background-color":n.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(n.fontSize||14)+"px",color:n.color||"#000"},position:n.position}),this.Text.dom.addEventListener("click",(function(e){c(t,e)})),this.Text.dom.addEventListener("touchend",(function(e){c(t,e)})),this.Text.setMap(n.map)}function c(e,t){e.callback(t,e.parent),t.stopPropagation()}function u(){this.Text&&this.option.map.remove(this.Text)}var l=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;if((0,o.default)(this,e),(0,a.default)(this,"option",void 0),(0,a.default)(this,"position",void 0),(0,a.default)(this,"index",void 0),(0,a.default)(this,"visible",void 0),(0,a.default)(this,"alwaysVisible",void 0),(0,a.default)(this,"div",void 0),(0,a.default)(this,"triangle",void 0),(0,a.default)(this,"callback",void 0),(0,a.default)(this,"parent",void 0),(0,a.default)(this,"Text",void 0),(0,a.default)(this,"createAMapText",i),(0,a.default)(this,"removeAMapText",u),(0,a.default)(this,"onAdd",t),(0,a.default)(this,"construct",t),(0,a.default)(this,"onRemove",n),(0,a.default)(this,"destroy",n),this.option=r||{},this.visible=this.alwaysVisible="ALWAYS"===r.display,s.IS_AMAP)this.callback=c,this.parent=l,this.visible&&this.createAMapText();else{var d=r.map;this.position=r.position,this.index=1;var f=this.div=document.createElement("div"),p=f.style;p.position="absolute",p.whiteSpace="nowrap",p.transform="translateX(-50%) translateY(-100%)",p.zIndex="1",p.boxShadow=r.boxShadow||"none",p.display=this.visible?"block":"none";var h=this.triangle=document.createElement("div");h.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(r),f.appendChild(h),d&&this.setMap(d)}}return(0,r.default)(e,[{key:"onclick",set:function(e){this.div.onclick=e},get:function(){return this.div.onclick}}]),(0,r.default)(e,[{key:"setOption",value:function(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,s.IS_AMAP?this.visible&&this.createAMapText():(this.setPosition(e.position),this.setStyle(e))}},{key:"setStyle",value:function(e){var t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor="".concat(e.bgColor||"#fff"," transparent transparent")}},{key:"setPosition",value:function(e){this.position=e,this.draw()}},{key:"draw",value:function(){var e=this.getProjection();if(this.position&&this.div&&e){var t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}}},{key:"changed",value:function(){var e=this.div.style;e.display=this.visible?"block":"none"}}]),e}();if(!s.IS_AMAP){var d=l.prototype,f=new(e.OverlayView||e.Overlay);for(var p in f)p in d||(d[p]=f[p])}return l}},e143:function(e,t,n){"use strict";n.r(t),function(e,n){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2022 Evan You
- * Released under the MIT License.
- */
- var i=Object.freeze({});function o(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function a(e){return!0===e}function s(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function d(e){return"[object Object]"===l.call(e)}function f(e){return"[object RegExp]"===l.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),i=e.split(","),o=0;o<i.length;o++)n[i[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}v("slot,component",!0);var _=v("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function M(e,t){return b.call(e,t)}function S(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var C=/-(\w)/g,k=S((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),T=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),I=/\B([A-Z])/g,w=S((function(e){return e.replace(I,"-$1").toLowerCase()}));function A(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function E(e,t){return e.bind(t)}var O=Function.prototype.bind?E:A;function x(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function D(e,t){for(var n in t)e[n]=t[n];return e}function N(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function R(e,t,n){}var L=function(e,t,n){return!1},P=function(e){return e};function U(e,t){if(e===t)return!0;var n=u(e),i=u(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var o=Array.isArray(e),r=Array.isArray(t);if(o&&r)return e.length===t.length&&e.every((function(e,n){return U(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||r)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return U(e[n],t[n])}))}catch(c){return!1}}function G(e,t){for(var n=0;n<e.length;n++)if(U(e[n],t))return n;return-1}function F(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var B="data-server-rendered",q=["component","directive","filter"],j=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:R,parsePlatformTagName:P,mustUseProp:L,async:!0,_lifecycleHooks:j},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function z(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var K=new RegExp("[^"+H.source+".$_\\d]");function W(e){if(!K.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Y,X="__proto__"in{},J="undefined"!==typeof window,Q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Z=Q&&WXEnvironment.platform.toLowerCase(),ee=J&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=ee&&ee.indexOf("msie 9.0")>0,ie=ee&&ee.indexOf("edge/")>0,oe=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Z),re=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/)),ae={}.watch,se=!1;if(J)try{var ce={};Object.defineProperty(ce,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,ce)}catch(Da){}var ue=function(){return void 0===Y&&(Y=!J&&!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},le=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function de(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,pe="undefined"!==typeof Symbol&&de(Symbol)&&"undefined"!==typeof Reflect&&de(Reflect.ownKeys);fe="undefined"!==typeof Set&&de(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var he=R,ge=0,me=function(){this.id=ge++,this.subs=[]};function ve(e){me.SharedObject.targetStack.push(e),me.SharedObject.target=e,me.target=e}function _e(){me.SharedObject.targetStack.pop(),me.SharedObject.target=me.SharedObject.targetStack[me.SharedObject.targetStack.length-1],me.target=me.SharedObject.target}me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.SharedObject.target&&me.SharedObject.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},me.SharedObject={},me.SharedObject.target=null,me.SharedObject.targetStack=[];var ye=function(e,t,n,i,o,r,a,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=o,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},be={child:{configurable:!0}};be.child.get=function(){return this.componentInstance},Object.defineProperties(ye.prototype,be);var Me=function(e){void 0===e&&(e="");var t=new ye;return t.text=e,t.isComment=!0,t};function Se(e){return new ye(void 0,void 0,void 0,String(e))}function Ce(e){var t=new ye(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ke=Array.prototype,Te=Object.create(ke),Ie=["push","pop","shift","unshift","splice","sort","reverse"];Ie.forEach((function(e){var t=ke[e];z(Te,e,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var o,r=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2);break}return o&&a.observeArray(o),a.dep.notify(),r}))}));var we=Object.getOwnPropertyNames(Te),Ae=!0;function Ee(e){Ae=e}var Oe=function(e){this.value=e,this.dep=new me,this.vmCount=0,z(e,"__ob__",this),Array.isArray(e)?(X?xe(e,Te):De(e,Te,we),this.observeArray(e)):this.walk(e)};function xe(e,t){e.__proto__=t}function De(e,t,n){for(var i=0,o=n.length;i<o;i++){var r=n[i];z(e,r,t[r])}}function Ne(e,t){var n;if(u(e)&&!(e instanceof ye))return M(e,"__ob__")&&e.__ob__ instanceof Oe?n=e.__ob__:Ae&&!ue()&&(Array.isArray(e)||d(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Oe(e)),t&&n&&n.vmCount++,n}function Re(e,t,n,i,o){var r=new me,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!o&&Ne(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return me.SharedObject.target&&(r.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ue(t))),t},set:function(t){var i=s?s.call(e):n;t===i||t!==t&&i!==i||s&&!c||(c?c.call(e,t):n=t,u=!o&&Ne(t),r.notify())}})}}function Le(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(Re(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Pe(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||M(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ue(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ue(t)}Oe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Re(e,t[n])},Oe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ne(e[t])};var Ge=$.optionMergeStrategies;function Fe(e,t){if(!t)return e;for(var n,i,o,r=pe?Reflect.ownKeys(t):Object.keys(t),a=0;a<r.length;a++)n=r[a],"__ob__"!==n&&(i=e[n],o=t[n],M(e,n)?i!==o&&d(i)&&d(o)&&Fe(i,o):Le(e,n,o));return e}function Be(e,t,n){return n?function(){var i="function"===typeof t?t.call(n,n):t,o="function"===typeof e?e.call(n,n):e;return i?Fe(i,o):o}:t?e?function(){return Fe("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?je(n):n}function je(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function $e(e,t,n,i){var o=Object.create(e||null);return t?D(o,t):o}Ge.data=function(e,t,n){return n?Be(e,t,n):t&&"function"!==typeof t?e:Be(e,t)},j.forEach((function(e){Ge[e]=qe})),q.forEach((function(e){Ge[e+"s"]=$e})),Ge.watch=function(e,t,n,i){if(e===ae&&(e=void 0),t===ae&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var r in D(o,e),t){var a=o[r],s=t[r];a&&!Array.isArray(a)&&(a=[a]),o[r]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,i){if(!e)return t;var o=Object.create(null);return D(o,e),t&&D(o,t),o},Ge.provide=Be;var He=function(e,t){return void 0===t?e:t};function Ve(e,t){var n=e.props;if(n){var i,o,r,a={};if(Array.isArray(n)){i=n.length;while(i--)o=n[i],"string"===typeof o&&(r=k(o),a[r]={type:null})}else if(d(n))for(var s in n)o=n[s],r=k(s),a[r]=d(o)?o:{type:o};else 0;e.props=a}}function ze(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)i[n[o]]={from:n[o]};else if(d(n))for(var r in n){var a=n[r];i[r]=d(a)?D({from:r},a):{from:a}}else 0}}function Ke(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"===typeof i&&(t[n]={bind:i,update:i})}}function We(e,t,n){if("function"===typeof t&&(t=t.options),Ve(t,n),ze(t,n),Ke(t),!t._base&&(t.extends&&(e=We(e,t.extends,n)),t.mixins))for(var i=0,o=t.mixins.length;i<o;i++)e=We(e,t.mixins[i],n);var r,a={};for(r in e)s(r);for(r in t)M(e,r)||s(r);function s(i){var o=Ge[i]||He;a[i]=o(e[i],t[i],n,i)}return a}function Ye(e,t,n,i){if("string"===typeof n){var o=e[t];if(M(o,n))return o[n];var r=k(n);if(M(o,r))return o[r];var a=T(r);if(M(o,a))return o[a];var s=o[n]||o[r]||o[a];return s}}function Xe(e,t,n,i){var o=t[e],r=!M(n,e),a=n[e],s=et(Boolean,o.type);if(s>-1)if(r&&!M(o,"default"))a=!1;else if(""===a||a===w(e)){var c=et(String,o.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Je(i,o,e);var u=Ae;Ee(!0),Ne(a),Ee(u)}return a}function Je(e,t,n){if(M(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof i&&"Function"!==Qe(t.type)?i.call(e):i}}function Qe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ze(e,t){return Qe(e)===Qe(t)}function et(e,t){if(!Array.isArray(t))return Ze(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Ze(t[n],e))return n;return-1}function tt(e,t,n){ve();try{if(t){var i=t;while(i=i.$parent){var o=i.$options.errorCaptured;if(o)for(var r=0;r<o.length;r++)try{var a=!1===o[r].call(i,e,t,n);if(a)return}catch(Da){it(Da,i,"errorCaptured hook")}}}it(e,t,n)}finally{_e()}}function nt(e,t,n,i,o){var r;try{r=n?e.apply(t,n):e.call(t),r&&!r._isVue&&h(r)&&!r._handled&&(r.catch((function(e){return tt(e,i,o+" (Promise/async)")})),r._handled=!0)}catch(Da){tt(Da,i,o)}return r}function it(e,t,n){if($.errorHandler)try{return $.errorHandler.call(null,e,t,n)}catch(Da){Da!==e&&ot(Da,null,"config.errorHandler")}ot(e,t,n)}function ot(e,t,i){if(!J&&!Q||"undefined"===typeof n)throw e;n.error(e)}var rt,at=!1,st=[],ct=!1;function ut(){ct=!1;var e=st.slice(0);st.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&de(Promise)){var lt=Promise.resolve();rt=function(){lt.then(ut),oe&&setTimeout(R)},at=!0}else if(te||"undefined"===typeof MutationObserver||!de(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())rt="undefined"!==typeof setImmediate&&de(setImmediate)?function(){setImmediate(ut)}:function(){setTimeout(ut,0)};else{var dt=1,ft=new MutationObserver(ut),pt=document.createTextNode(String(dt));ft.observe(pt,{characterData:!0}),rt=function(){dt=(dt+1)%2,pt.data=String(dt)},at=!0}function ht(e,t){var n;if(st.push((function(){if(e)try{e.call(t)}catch(Da){tt(Da,t,"nextTick")}else n&&n(t)})),ct||(ct=!0,rt()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var gt=new fe;function mt(e){vt(e,gt),gt.clear()}function vt(e,t){var n,i,o=Array.isArray(e);if(!(!o&&!u(e)||Object.isFrozen(e)||e instanceof ye)){if(e.__ob__){var r=e.__ob__.dep.id;if(t.has(r))return;t.add(r)}if(o){n=e.length;while(n--)vt(e[n],t)}else{i=Object.keys(e),n=i.length;while(n--)vt(e[i[n]],t)}}}var _t=S((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function yt(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return nt(i,null,arguments,t,"v-on handler");for(var o=i.slice(),r=0;r<o.length;r++)nt(o[r],null,e,t,"v-on handler")}return n.fns=e,n}function bt(e,t,n,i,r,s){var c,u,l,d;for(c in e)u=e[c],l=t[c],d=_t(c),o(u)||(o(l)?(o(u.fns)&&(u=e[c]=yt(u,s)),a(d.once)&&(u=e[c]=r(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)o(e[c])&&(d=_t(c),i(d.name,t[c],d.capture))}function Mt(e,t,n){var i;e instanceof ye&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),y(i.fns,c)}o(s)?i=yt([c]):r(s.fns)&&a(s.merged)?(i=s,i.fns.push(c)):i=yt([s,c]),i.merged=!0,e[t]=i}function St(e,t,n,i){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(o(a))return n;var s=t.options.mpOptions.externalClasses||[],c=e.attrs,u=e.props;if(r(c)||r(u))for(var l in a){var d=w(l),f=kt(n,u,l,d,!0)||kt(n,c,l,d,!1);f&&n[l]&&-1!==s.indexOf(d)&&i[k(n[l])]&&(n[l]=i[k(n[l])])}return n}function Ct(e,t,n,i){var a=t.options.props;if(o(a))return St(e,t,{},i);var s={},c=e.attrs,u=e.props;if(r(c)||r(u))for(var l in a){var d=w(l);kt(s,u,l,d,!0)||kt(s,c,l,d,!1)}return St(e,t,s,i)}function kt(e,t,n,i,o){if(r(t)){if(M(t,n))return e[n]=t[n],o||delete t[n],!0;if(M(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function Tt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function It(e){return c(e)?[Se(e)]:Array.isArray(e)?At(e):void 0}function wt(e){return r(e)&&r(e.text)&&s(e.isComment)}function At(e,t){var n,i,s,u,l=[];for(n=0;n<e.length;n++)i=e[n],o(i)||"boolean"===typeof i||(s=l.length-1,u=l[s],Array.isArray(i)?i.length>0&&(i=At(i,(t||"")+"_"+n),wt(i[0])&&wt(u)&&(l[s]=Se(u.text+i[0].text),i.shift()),l.push.apply(l,i)):c(i)?wt(u)?l[s]=Se(u.text+i):""!==i&&l.push(Se(i)):wt(i)&&wt(u)?l[s]=Se(u.text+i.text):(a(e._isVList)&&r(i.tag)&&o(i.key)&&r(t)&&(i.key="__vlist"+t+"_"+n+"__"),l.push(i)));return l}function Et(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Ot(e){var t=xt(e.$options.inject,e);t&&(Ee(!1),Object.keys(t).forEach((function(n){Re(e,n,t[n])})),Ee(!0))}function xt(e,t){if(e){for(var n=Object.create(null),i=pe?Reflect.ownKeys(e):Object.keys(e),o=0;o<i.length;o++){var r=i[o];if("__ob__"!==r){var a=e[r].from,s=t;while(s){if(s._provided&&M(s._provided,a)){n[r]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[r]){var c=e[r].default;n[r]="function"===typeof c?c.call(t):c}else 0}}return n}}function Dt(e,t){if(!e||!e.length)return{};for(var n={},i=0,o=e.length;i<o;i++){var r=e[i],a=r.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,r.context!==t&&r.fnContext!==t||!a||null==a.slot)r.asyncMeta&&r.asyncMeta.data&&"page"===r.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(r):(n.default||(n.default=[])).push(r);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===r.tag?c.push.apply(c,r.children||[]):c.push(r)}}for(var u in n)n[u].every(Nt)&&delete n[u];return n}function Nt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Rt(e,t,n){var o,r=Object.keys(t).length>0,a=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==i&&s===n.$key&&!r&&!n.$hasNormal)return n;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=Lt(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=Pt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),z(o,"$stable",a),z(o,"$key",s),z(o,"$hasNormal",r),o}function Lt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:It(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Pt(e,t){return function(){return e[t]}}function Ut(e,t){var n,i,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i,i,i);else if("number"===typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i,i,i);else if(u(e))if(pe&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),l=c.next();while(!l.done)n.push(t(l.value,n.length,i,i++)),l=c.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,o=a.length;i<o;i++)s=a[i],n[i]=t(e[s],s,i,i);return r(n)||(n=[]),n._isVList=!0,n}function Gt(e,t,n,i){var o,r=this.$scopedSlots[e];r?(n=n||{},i&&(n=D(D({},i),n)),o=r(n,this,n._i)||t):o=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},o):o}function Ft(e){return Ye(this.$options,"filters",e,!0)||P}function Bt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function qt(e,t,n,i,o){var r=$.keyCodes[t]||n;return o&&i&&!$.keyCodes[t]?Bt(o,i):r?Bt(r,e):i?w(i)!==t:void 0}function jt(e,t,n,i,o){if(n)if(u(n)){var r;Array.isArray(n)&&(n=N(n));var a=function(a){if("class"===a||"style"===a||_(a))r=e;else{var s=e.attrs&&e.attrs.type;r=i||$.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=k(a),u=w(a);if(!(c in r)&&!(u in r)&&(r[a]=n[a],o)){var l=e.on||(e.on={});l["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function $t(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Vt(i,"__static__"+e,!1)),i}function Ht(e,t,n){return Vt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Vt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&zt(e[i],t+"_"+i,n);else zt(e,t,n)}function zt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Kt(e,t){if(t)if(d(t)){var n=e.on=e.on?D({},e.on):{};for(var i in t){var o=n[i],r=t[i];n[i]=o?[].concat(o,r):r}}else;return e}function Wt(e,t,n,i){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var r=e[o];Array.isArray(r)?Wt(r,t,n):r&&(r.proxy&&(r.fn.proxy=!0),t[r.key]=r.fn)}return i&&(t.$key=i),t}function Yt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"===typeof e?t+e:e}function Jt(e){e._o=Ht,e._n=m,e._s=g,e._l=Ut,e._t=Gt,e._q=U,e._i=G,e._m=$t,e._f=Ft,e._k=qt,e._b=jt,e._v=Se,e._e=Me,e._u=Wt,e._g=Kt,e._d=Yt,e._p=Xt}function Qt(e,t,n,o,r){var s,c=this,u=r.options;M(o,"_uid")?(s=Object.create(o),s._original=o):(s=o,o=o._original);var l=a(u._compiled),d=!l;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||i,this.injections=xt(u.inject,o),this.slots=function(){return c.$slots||Rt(e.scopedSlots,c.$slots=Dt(n,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Rt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Rt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,i){var r=fn(s,e,t,n,i,d);return r&&!Array.isArray(r)&&(r.fnScopeId=u._scopeId,r.fnContext=o),r}:this._c=function(e,t,n,i){return fn(s,e,t,n,i,d)}}function Zt(e,t,n,o,a){var s=e.options,c={},u=s.props;if(r(u))for(var l in u)c[l]=Xe(l,u,t||i);else r(n.attrs)&&tn(c,n.attrs),r(n.props)&&tn(c,n.props);var d=new Qt(n,c,a,o,e),f=s.render.call(null,d._c,d);if(f instanceof ye)return en(f,n,d.parent,s,d);if(Array.isArray(f)){for(var p=It(f)||[],h=new Array(p.length),g=0;g<p.length;g++)h[g]=en(p[g],n,d.parent,s,d);return h}}function en(e,t,n,i,o){var r=Ce(e);return r.fnContext=n,r.fnOptions=i,t.slot&&((r.data||(r.data={})).slot=t.slot),r}function tn(e,t){for(var n in t)e[k(n)]=t[n]}Jt(Qt.prototype);var nn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;nn.prepatch(n,n)}else{var i=e.componentInstance=an(e,xn);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;Pn(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Bn(n,"onServiceCreated"),Bn(n,"onServiceAttached"),n._isMounted=!0,Bn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Zn(n):Gn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Fn(t,!0):t.$destroy())}},on=Object.keys(nn);function rn(e,t,n,i,s){if(!o(e)){var c=n.$options._base;if(u(e)&&(e=c.extend(e)),"function"===typeof e){var l;if(o(e.cid)&&(l=e,e=Sn(l,c),void 0===e))return Mn(l,t,n,i,s);t=t||{},Si(e),r(t.model)&&un(e.options,t);var d=Ct(t,e,s,n);if(a(e.options.functional))return Zt(e,d,t,n,i);var f=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}sn(t);var h=e.options.name||s,g=new ye("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:f,tag:s,children:i},l);return g}}}function an(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function sn(e){for(var t=e.hook||(e.hook={}),n=0;n<on.length;n++){var i=on[n],o=t[i],r=nn[i];o===r||o&&o._merged||(t[i]=o?cn(r,o):r)}}function cn(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function un(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}var ln=1,dn=2;function fn(e,t,n,i,o,r){return(Array.isArray(n)||c(n))&&(o=i,i=n,n=void 0),a(r)&&(o=dn),pn(e,t,n,i,o)}function pn(e,t,n,i,o){if(r(n)&&r(n.__ob__))return Me();if(r(n)&&r(n.is)&&(t=n.is),!t)return Me();var a,s,c;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),o===dn?i=It(i):o===ln&&(i=Tt(i)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||$.getTagNamespace(t),a=$.isReservedTag(t)?new ye($.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(c=Ye(e.$options,"components",t))?new ye(t,n,i,void 0,void 0,e):rn(c,n,e,i,t)):a=rn(t,n,e,i);return Array.isArray(a)?a:r(a)?(r(s)&&hn(a,s),r(n)&&gn(n),a):Me()}function hn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),r(e.children))for(var i=0,s=e.children.length;i<s;i++){var c=e.children[i];r(c.tag)&&(o(c.ns)||a(n)&&"svg"!==c.tag)&&hn(c,t,n)}}function gn(e){u(e.style)&&mt(e.style),u(e.class)&&mt(e.class)}function mn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=Dt(t._renderChildren,o),e.$scopedSlots=i,e._c=function(t,n,i,o){return fn(e,t,n,i,o,!1)},e.$createElement=function(t,n,i,o){return fn(e,t,n,i,o,!0)};var r=n&&n.data;Re(e,"$attrs",r&&r.attrs||i,null,!0),Re(e,"$listeners",t._parentListeners||i,null,!0)}var vn,_n=null;function yn(e){Jt(e.prototype),e.prototype.$nextTick=function(e){return ht(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,o=n._parentVnode;o&&(t.$scopedSlots=Rt(o.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=o;try{_n=t,e=i.call(t._renderProxy,t.$createElement)}catch(Da){tt(Da,t,"render"),e=t._vnode}finally{_n=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ye||(e=Me()),e.parent=o,e}}function bn(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function Mn(e,t,n,i,o){var r=Me();return r.asyncFactory=e,r.asyncMeta={data:t,context:n,children:i,tag:o},r}function Sn(e,t){if(a(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=_n;if(n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var i=e.owners=[n],s=!0,c=null,l=null;n.$on("hook:destroyed",(function(){return y(i,n)}));var d=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},f=F((function(n){e.resolved=bn(n,t),s?i.length=0:d(!0)})),p=F((function(t){r(e.errorComp)&&(e.error=!0,d(!0))})),g=e(f,p);return u(g)&&(h(g)?o(e.resolved)&&g.then(f,p):h(g.component)&&(g.component.then(f,p),r(g.error)&&(e.errorComp=bn(g.error,t)),r(g.loading)&&(e.loadingComp=bn(g.loading,t),0===g.delay?e.loading=!0:c=setTimeout((function(){c=null,o(e.resolved)&&o(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),r(g.timeout)&&(l=setTimeout((function(){l=null,o(e.resolved)&&p(null)}),g.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Cn(e){return e.isComment&&e.asyncFactory}function kn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||Cn(n)))return n}}function Tn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&En(e,t)}function In(e,t){vn.$on(e,t)}function wn(e,t){vn.$off(e,t)}function An(e,t){var n=vn;return function i(){var o=t.apply(null,arguments);null!==o&&n.$off(e,i)}}function En(e,t,n){vn=e,bt(t,n||{},In,wn,An,e),vn=void 0}function On(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var o=0,r=e.length;o<r;o++)i.$on(e[o],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,o=e.length;i<o;i++)n.$off(e[i],t);return n}var r,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(r=a[s],r===t||r.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?x(n):n;for(var i=x(arguments,1),o='event handler for "'+e+'"',r=0,a=n.length;r<a;r++)nt(n[r],t,i,t,o)}return t}}var xn=null;function Dn(e){var t=xn;return xn=e,function(){xn=t}}function Nn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Rn(e){e.prototype._update=function(e,t){var n=this,i=n.$el,o=n._vnode,r=Dn(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),r(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Bn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Bn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Ln(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=Me),Bn(e,"beforeMount"),i=function(){e._update(e._render(),n)},new ii(e,i,R,{before:function(){e._isMounted&&!e._isDestroyed&&Bn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(Bn(e,"onServiceCreated"),Bn(e,"onServiceAttached"),e._isMounted=!0,Bn(e,"mounted")),e}function Pn(e,t,n,o,r){var a=o.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(r||e.$options._renderChildren||c);if(e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=r,e.$attrs=o.data.attrs||i,e.$listeners=n||i,t&&e.$options.props){Ee(!1);for(var l=e._props,d=e.$options._propKeys||[],f=0;f<d.length;f++){var p=d[f],h=e.$options.props;l[p]=Xe(p,h,t,e)}Ee(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),n=n||i;var g=e.$options._parentListeners;e.$options._parentListeners=n,En(e,n,g),u&&(e.$slots=Dt(r,o.context),e.$forceUpdate())}function Un(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Gn(e,t){if(t){if(e._directInactive=!1,Un(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Gn(e.$children[n]);Bn(e,"activated")}}function Fn(e,t){if((!t||(e._directInactive=!0,!Un(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Fn(e.$children[n]);Bn(e,"deactivated")}}function Bn(e,t){ve();var n=e.$options[t],i=t+" hook";if(n)for(var o=0,r=n.length;o<r;o++)nt(n[o],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),_e()}var qn=[],jn=[],$n={},Hn=!1,Vn=!1,zn=0;function Kn(){zn=qn.length=jn.length=0,$n={},Hn=Vn=!1}var Wn=0,Yn=Date.now;if(J&&!te){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function Jn(){var e,t;for(Wn=Yn(),Vn=!0,qn.sort((function(e,t){return e.id-t.id})),zn=0;zn<qn.length;zn++)e=qn[zn],e.before&&e.before(),t=e.id,$n[t]=null,e.run();var n=jn.slice(),i=qn.slice();Kn(),ei(n),Qn(i),le&&$.devtools&&le.emit("flush")}function Qn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Bn(i,"updated")}}function Zn(e){e._inactive=!1,jn.push(e)}function ei(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Gn(e[t],!0)}function ti(e){var t=e.id;if(null==$n[t]){if($n[t]=!0,Vn){var n=qn.length-1;while(n>zn&&qn[n].id>e.id)n--;qn.splice(n+1,0,e)}else qn.push(e);Hn||(Hn=!0,ht(Jn))}}var ni=0,ii=function(e,t,n,i,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ni,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=W(t),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()};ii.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Da){if(!this.user)throw Da;tt(Da,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&mt(e),_e(),this.cleanupDeps()}return e},ii.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ii.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ii.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ti(this)},ii.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Da){tt(Da,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ii.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ii.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ii.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var oi={enumerable:!0,configurable:!0,get:R,set:R};function ri(e,t,n){oi.get=function(){return this[t][n]},oi.set=function(e){this[t][n]=e},Object.defineProperty(e,n,oi)}function ai(e){e._watchers=[];var t=e.$options;t.props&&si(e,t.props),t.methods&&gi(e,t.methods),t.data?ci(e):Ne(e._data={},!0),t.computed&&di(e,t.computed),t.watch&&t.watch!==ae&&mi(e,t.watch)}function si(e,t){var n=e.$options.propsData||{},i=e._props={},o=e.$options._propKeys=[],r=!e.$parent;r||Ee(!1);var a=function(r){o.push(r);var a=Xe(r,t,n,e);Re(i,r,a),r in e||ri(e,"_props",r)};for(var s in t)a(s);Ee(!0)}function ci(e){var t=e.$options.data;t=e._data="function"===typeof t?ui(t,e):t||{},d(t)||(t={});var n=Object.keys(t),i=e.$options.props,o=(e.$options.methods,n.length);while(o--){var r=n[o];0,i&&M(i,r)||V(r)||ri(e,"_data",r)}Ne(t,!0)}function ui(e,t){ve();try{return e.call(t,t)}catch(Da){return tt(Da,t,"data()"),{}}finally{_e()}}var li={lazy:!0};function di(e,t){var n=e._computedWatchers=Object.create(null),i=ue();for(var o in t){var r=t[o],a="function"===typeof r?r:r.get;0,i||(n[o]=new ii(e,a||R,R,li)),o in e||fi(e,o,r)}}function fi(e,t,n){var i=!ue();"function"===typeof n?(oi.get=i?pi(t):hi(n),oi.set=R):(oi.get=n.get?i&&!1!==n.cache?pi(t):hi(n.get):R,oi.set=n.set||R),Object.defineProperty(e,t,oi)}function pi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.SharedObject.target&&t.depend(),t.value}}function hi(e){return function(){return e.call(this,this)}}function gi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?R:O(t[n],e)}function mi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var o=0;o<i.length;o++)vi(e,n,i[o]);else vi(e,n,i)}}function vi(e,t,n,i){return d(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function _i(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Le,e.prototype.$delete=Pe,e.prototype.$watch=function(e,t,n){var i=this;if(d(t))return vi(i,e,t,n);n=n||{},n.user=!0;var o=new ii(i,e,t,n);if(n.immediate)try{t.call(i,o.value)}catch(r){tt(r,i,'callback for immediate watcher "'+o.expression+'"')}return function(){o.teardown()}}}var yi=0;function bi(e){e.prototype._init=function(e){var t=this;t._uid=yi++,t._isVue=!0,e&&e._isComponent?Mi(t,e):t.$options=We(Si(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Nn(t),Tn(t),mn(t),Bn(t,"beforeCreate"),!t._$fallback&&Ot(t),ai(t),!t._$fallback&&Et(t),!t._$fallback&&Bn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Mi(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var o=i.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Si(e){var t=e.options;if(e.super){var n=Si(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var o=Ci(e);o&&D(e.extendOptions,o),t=e.options=We(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Ci(e){var t,n=e.options,i=e.sealedOptions;for(var o in n)n[o]!==i[o]&&(t||(t={}),t[o]=n[o]);return t}function ki(e){this._init(e)}function Ti(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Ii(e){e.mixin=function(e){return this.options=We(this.options,e),this}}function wi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,o=e._Ctor||(e._Ctor={});if(o[i])return o[i];var r=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=We(n.options,e),a["super"]=n,a.options.props&&Ai(a),a.options.computed&&Ei(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,q.forEach((function(e){a[e]=n[e]})),r&&(a.options.components[r]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),o[i]=a,a}}function Ai(e){var t=e.options.props;for(var n in t)ri(e.prototype,"_props",n)}function Ei(e){var t=e.options.computed;for(var n in t)fi(e.prototype,n,t[n])}function Oi(e){q.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function xi(e){return e&&(e.Ctor.options.name||e.tag)}function Di(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Ni(e,t){var n=e.cache,i=e.keys,o=e._vnode;for(var r in n){var a=n[r];if(a){var s=xi(a.componentOptions);s&&!t(s)&&Ri(n,r,i,o)}}}function Ri(e,t,n,i){var o=e[t];!o||i&&o.tag===i.tag||o.componentInstance.$destroy(),e[t]=null,y(n,t)}bi(ki),_i(ki),On(ki),Rn(ki),yn(ki);var Li=[String,RegExp,Array],Pi={name:"keep-alive",abstract:!0,props:{include:Li,exclude:Li,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ri(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Ni(e,(function(e){return Di(t,e)}))})),this.$watch("exclude",(function(t){Ni(e,(function(e){return!Di(t,e)}))}))},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var i=xi(n),o=this,r=o.include,a=o.exclude;if(r&&(!i||!Di(r,i))||a&&i&&Di(a,i))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,y(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&Ri(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Ui={KeepAlive:Pi};function Gi(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:he,extend:D,mergeOptions:We,defineReactive:Re},e.set=Le,e.delete=Pe,e.nextTick=ht,e.observable=function(e){return Ne(e),e},e.options=Object.create(null),q.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Ui),Ti(e),Ii(e),wi(e),Oi(e)}Gi(ki),Object.defineProperty(ki.prototype,"$isServer",{get:ue}),Object.defineProperty(ki.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ki,"FunctionalRenderContext",{value:Qt}),ki.version="2.6.11";var Fi=v("style,class"),Bi=v("input,textarea,option,select,progress"),qi=function(e,t,n){return"value"===n&&Bi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},ji=v("contenteditable,draggable,spellcheck"),$i=v("events,caret,typing,plaintext-only"),Hi=function(e,t){return Yi(t)||"false"===t?"false":"contenteditable"===e&&$i(t)?t:"true"},Vi=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),zi="http://www.w3.org/1999/xlink",Ki=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Wi=function(e){return Ki(e)?e.slice(6,e.length):""},Yi=function(e){return null==e||!1===e};function Xi(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Ji(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Ji(t,n.data));return Qi(t.staticClass,t.class)}function Ji(e,t){return{staticClass:Zi(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Qi(e,t){return r(e)||r(t)?Zi(e,eo(t)):""}function Zi(e,t){return e?t?e+" "+t:e:t||""}function eo(e){return Array.isArray(e)?to(e):u(e)?no(e):"string"===typeof e?e:""}function to(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=eo(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function no(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var io={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},oo=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ro=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ao=function(e){return oo(e)||ro(e)};function so(e){return ro(e)?"svg":"math"===e?"math":void 0}var co=Object.create(null);function uo(e){if(!J)return!0;if(ao(e))return!1;if(e=e.toLowerCase(),null!=co[e])return co[e];var t=document.createElement(e);return e.indexOf("-")>-1?co[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:co[e]=/HTMLUnknownElement/.test(t.toString())}var lo=v("text,number,password,search,email,tel,url");function fo(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function po(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function ho(e,t){return document.createElementNS(io[e],t)}function go(e){return document.createTextNode(e)}function mo(e){return document.createComment(e)}function vo(e,t,n){e.insertBefore(t,n)}function _o(e,t){e.removeChild(t)}function yo(e,t){e.appendChild(t)}function bo(e){return e.parentNode}function Mo(e){return e.nextSibling}function So(e){return e.tagName}function Co(e,t){e.textContent=t}function ko(e,t){e.setAttribute(t,"")}var To=Object.freeze({createElement:po,createElementNS:ho,createTextNode:go,createComment:mo,insertBefore:vo,removeChild:_o,appendChild:yo,parentNode:bo,nextSibling:Mo,tagName:So,setTextContent:Co,setStyleScope:ko}),Io={create:function(e,t){wo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(wo(e,!0),wo(t))},destroy:function(e){wo(e,!0)}};function wo(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ao=new ye("",{},[]),Eo=["create","activate","update","remove","destroy"];function Oo(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&xo(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&o(t.asyncFactory.error))}function xo(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||lo(i)&&lo(o)}function Do(e,t,n){var i,o,a={};for(i=t;i<=n;++i)o=e[i].key,r(o)&&(a[o]=i);return a}function No(e){var t,n,i={},s=e.modules,u=e.nodeOps;for(t=0;t<Eo.length;++t)for(i[Eo[t]]=[],n=0;n<s.length;++n)r(s[n][Eo[t]])&&i[Eo[t]].push(s[n][Eo[t]]);function l(e){return new ye(u.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&f(e)}return n.listeners=t,n}function f(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function p(e,t,n,i,o,s,c){if(r(e.elm)&&r(s)&&(e=s[c]=Ce(e)),e.isRootInsert=!o,!h(e,t,n,i)){var l=e.data,d=e.children,f=e.tag;r(f)?(e.elm=e.ns?u.createElementNS(e.ns,f):u.createElement(f,e),S(e),y(e,d,t),r(l)&&M(e,t),_(n,e.elm,i)):a(e.isComment)?(e.elm=u.createComment(e.text),_(n,e.elm,i)):(e.elm=u.createTextNode(e.text),_(n,e.elm,i))}}function h(e,t,n,i){var o=e.data;if(r(o)){var s=r(e.componentInstance)&&o.keepAlive;if(r(o=o.hook)&&r(o=o.init)&&o(e,!1),r(e.componentInstance))return g(e,t),_(n,e.elm,i),a(s)&&m(e,t,n,i),!0}}function g(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,b(e)?(M(e,t),S(e)):(wo(e),t.push(e))}function m(e,t,n,o){var a,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,r(a=s.data)&&r(a=a.transition)){for(a=0;a<i.activate.length;++a)i.activate[a](Ao,s);t.push(s);break}_(n,e.elm,o)}function _(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function y(e,t,n){if(Array.isArray(t)){0;for(var i=0;i<t.length;++i)p(t[i],n,e.elm,null,!0,t,i)}else c(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function b(e){while(e.componentInstance)e=e.componentInstance._vnode;return r(e.tag)}function M(e,n){for(var o=0;o<i.create.length;++o)i.create[o](Ao,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create(Ao,e),r(t.insert)&&n.push(e))}function S(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}r(t=xn)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&!xn._vnode.elm.__uniDataset&&u.setStyleScope(e.elm,t)}function C(e,t,n,i,o,r){for(;i<=o;++i)p(n[i],r,e,t,!1,n,i)}function k(e){var t,n,o=e.data;if(r(o))for(r(t=o.hook)&&r(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function T(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(I(i),k(i)):f(i.elm))}}function I(e,t){if(r(t)||r(e.data)){var n,o=i.remove.length+1;for(r(t)?t.listeners+=o:t=d(e.elm,o),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&I(n,t),n=0;n<i.remove.length;++n)i.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else f(e.elm)}function w(e,t,n,i,a){var s,c,l,d,f=0,h=0,g=t.length-1,m=t[0],v=t[g],_=n.length-1,y=n[0],b=n[_],M=!a;while(f<=g&&h<=_)o(m)?m=t[++f]:o(v)?v=t[--g]:Oo(m,y)?(E(m,y,i,n,h),m=t[++f],y=n[++h]):Oo(v,b)?(E(v,b,i,n,_),v=t[--g],b=n[--_]):Oo(m,b)?(E(m,b,i,n,_),M&&u.insertBefore(e,m.elm,u.nextSibling(v.elm)),m=t[++f],b=n[--_]):Oo(v,y)?(E(v,y,i,n,h),M&&u.insertBefore(e,v.elm,m.elm),v=t[--g],y=n[++h]):(o(s)&&(s=Do(t,f,g)),c=r(y.key)?s[y.key]:A(y,t,f,g),o(c)?p(y,i,e,m.elm,!1,n,h):(l=t[c],Oo(l,y)?(E(l,y,i,n,h),t[c]=void 0,M&&u.insertBefore(e,l.elm,m.elm)):p(y,i,e,m.elm,!1,n,h)),y=n[++h]);f>g?(d=o(n[_+1])?null:n[_+1].elm,C(e,d,n,h,_,i)):h>_&&T(t,f,g)}function A(e,t,n,i){for(var o=n;o<i;o++){var a=t[o];if(r(a)&&Oo(e,a))return o}}function E(e,t,n,s,c,l){if(e!==t){r(t.elm)&&r(s)&&(t=s[c]=Ce(t));var d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?D(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,p=t.data;r(p)&&r(f=p.hook)&&r(f=f.prepatch)&&f(e,t);var h=e.children,g=t.children;if(r(p)&&b(t)){for(f=0;f<i.update.length;++f)i.update[f](e,t);r(f=p.hook)&&r(f=f.update)&&f(e,t)}o(t.text)?r(h)&&r(g)?h!==g&&w(d,h,g,n,l):r(g)?(r(e.text)&&u.setTextContent(d,""),C(d,null,g,0,g.length-1,n)):r(h)?T(h,0,h.length-1):r(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),r(p)&&r(f=p.hook)&&r(f=f.postpatch)&&f(e,t)}}}function O(e,t,n){if(a(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var x=v("attrs,class,staticClass,staticStyle,key");function D(e,t,n,i){var o,s=t.tag,c=t.data,u=t.children;if(i=i||c&&c.pre,t.elm=e,a(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(c)&&(r(o=c.hook)&&r(o=o.init)&&o(t,!0),r(o=t.componentInstance)))return g(t,n),!0;if(r(s)){if(r(u))if(e.hasChildNodes())if(r(o=c)&&r(o=o.domProps)&&r(o=o.innerHTML)){if(o!==e.innerHTML)return!1}else{for(var l=!0,d=e.firstChild,f=0;f<u.length;f++){if(!d||!D(d,u[f],n,i)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else y(t,u,n);if(r(c)){var p=!1;for(var h in c)if(!x(h)){p=!0,M(t,n);break}!p&&c["class"]&&mt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!o(t)){var c=!1,d=[];if(o(e))c=!0,p(t,d);else{var f=r(e.nodeType);if(!f&&Oo(e,t))E(e,t,d,null,null,s);else{if(f){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),n=!0),a(n)&&D(e,t,d))return O(t,d,!0),e;e=l(e)}var h=e.elm,g=u.parentNode(h);if(p(t,d,h._leaveCb?null:g,u.nextSibling(h)),r(t.parent)){var m=t.parent,v=b(t);while(m){for(var _=0;_<i.destroy.length;++_)i.destroy[_](m);if(m.elm=t.elm,v){for(var y=0;y<i.create.length;++y)i.create[y](Ao,m);var M=m.data.hook.insert;if(M.merged)for(var S=1;S<M.fns.length;S++)M.fns[S]()}else wo(m);m=m.parent}}r(g)?T([e],0,0):r(e.tag)&&k(e)}}return O(t,d,c),t.elm}r(e)&&k(e)}}var Ro={create:Lo,update:Lo,destroy:function(e){Lo(e,Ao)}};function Lo(e,t){(e.data.directives||t.data.directives)&&Po(e,t)}function Po(e,t){var n,i,o,r=e===Ao,a=t===Ao,s=Go(e.data.directives,e.context),c=Go(t.data.directives,t.context),u=[],l=[];for(n in c)i=s[n],o=c[n],i?(o.oldValue=i.value,o.oldArg=i.arg,Bo(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Bo(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var d=function(){for(var n=0;n<u.length;n++)Bo(u[n],"inserted",t,e)};r?Mt(t,"insert",d):d()}if(l.length&&Mt(t,"postpatch",(function(){for(var n=0;n<l.length;n++)Bo(l[n],"componentUpdated",t,e)})),!r)for(n in s)c[n]||Bo(s[n],"unbind",e,e,a)}var Uo=Object.create(null);function Go(e,t){var n,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)i=e[n],i.modifiers||(i.modifiers=Uo),o[Fo(i)]=i,i.def=Ye(t.$options,"directives",i.name,!0);return o}function Fo(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Bo(e,t,n,i,o){var r=e.def&&e.def[t];if(r)try{r(n.elm,e,n,i,o)}catch(Da){tt(Da,n.context,"directive "+e.name+" "+t+" hook")}}var qo=[Io,Ro];function jo(e,t){var n={};return Object.keys(e).forEach((function(i){t[i]&&(n[e[i]]=t[i],delete t[i])})),n}function $o(e,t){if(!o(e.data.wxsProps)||!o(t.data.wxsProps)){var n=e.$wxsWatches,i=Object.keys(t.data.wxsProps);if(n||i.length){n||(n={});var r=jo(t.data.wxsProps,t.data.attrs),a=t.context;t.$wxsWatches={},Object.keys(r).forEach((function(e){var i=e;t.context.wxsProps&&(i="wxsProps."+e),t.$wxsWatches[e]=n[e]||t.context.$watch(i,(function(n,i){var o=t.elm.__vue__||t.elm;r[e](n,i,a.$getComponentDescriptor(a,!0),o.$getComponentDescriptor&&o.$getComponentDescriptor(o,!1))}),{immediate:!0,deep:!0})})),Object.keys(n).forEach((function(e){t.$wxsWatches[e]||(n[e](),delete n[e])}))}}}var Ho={create:$o,update:$o};function Vo(e,t){var n=t.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!o(e.data.attrs)||!o(t.data.attrs))){var i,a,s,c=t.elm,u=e.data.attrs||{},l=t.data.attrs||{};for(i in r(l.__ob__)&&(l=t.data.attrs=D({},l)),l)a=l[i],s=u[i],s!==a&&zo(c,i,a);for(i in(te||ie)&&l.value!==u.value&&zo(c,"value",l.value),u)o(l[i])&&(Ki(i)?c.removeAttributeNS(zi,Wi(i)):ji(i)||c.removeAttribute(i))}}function zo(e,t,n){e.tagName.indexOf("-")>-1?Ko(e,t,n):Vi(t)?Yi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):ji(t)?e.setAttribute(t,Hi(t,n)):Ki(t)?Yi(n)?e.removeAttributeNS(zi,Wi(t)):e.setAttributeNS(zi,t,n):Ko(e,t,n)}function Ko(e,t,n){if(Yi(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Wo={create:Vo,update:Vo};function Yo(e,t){var n=t.elm,i=t.data,a=e.data;if(!(o(i.staticClass)&&o(i.class)&&(o(a)||o(a.staticClass)&&o(a.class))&&o(n.__wxsAddClass)&&o(n.__wxsRemoveClass))){var s=Xi(t),c=n._transitionClasses;if(r(c)&&(s=Zi(s,eo(c))),Array.isArray(n.__wxsRemoveClass)&&n.__wxsRemoveClass.length){var u=s.split(/\s+/);n.__wxsRemoveClass.forEach((function(e){var t=u.findIndex((function(t){return t===e}));-1!==t&&u.splice(t,1)})),s=u.join(" "),n.__wxsRemoveClass.length=0}if(n.__wxsAddClass){var l=s.split(/\s+/).concat(n.__wxsAddClass.split(/\s+/)),d=Object.create(null);l.forEach((function(e){e&&(d[e]=1)})),s=Object.keys(d).join(" ")}var f=t.context,p=f.$options.mpOptions&&f.$options.mpOptions.externalClasses;Array.isArray(p)&&p.forEach((function(e){var t=f[k(e)];t&&(s=s.replace(e,t))})),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Xo,Jo={create:Yo,update:Yo},Qo="__r",Zo="__c";function er(e){if(r(e[Qo])){var t=te?"change":"input";e[t]=[].concat(e[Qo],e[t]||[]),delete e[Qo]}r(e[Zo])&&(e.change=[].concat(e[Zo],e.change||[]),delete e[Zo])}function tr(e,t,n){var i=Xo;return function o(){var r=t.apply(null,arguments);null!==r&&or(e,o,n,i)}}var nr=at&&!(re&&Number(re[1])<=53);function ir(e,t,n,i){if(nr){var o=Wn,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}Xo.addEventListener(e,t,se?{capture:n,passive:i}:n)}function or(e,t,n,i){(i||Xo).removeEventListener(e,t._wrapper||t,n)}function rr(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Xo=t.elm,er(n),bt(n,i,ir,or,tr,t.context),Xo=void 0}}var ar,sr={create:rr,update:rr};function cr(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,i,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in r(c.__ob__)&&(c=t.data.domProps=D({},c)),s)n in c||(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var u=o(i)?"":String(i);ur(a,u)&&(a.value=u)}else if("innerHTML"===n&&ro(a.tagName)&&o(a.innerHTML)){ar=ar||document.createElement("div"),ar.innerHTML="<svg>"+i+"</svg>";var l=ar.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(i!==s[n])try{a[n]=i}catch(Da){}}}}function ur(e,t){return!e.composing&&("OPTION"===e.tagName||lr(e,t)||dr(e,t))}function lr(e,t){var n=!0;try{n=document.activeElement!==e}catch(Da){}return n&&e.value!==t}function dr(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return m(n)!==m(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var fr={create:cr,update:cr},pr=S((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function hr(e){var t=gr(e.style);return e.staticStyle?D(e.staticStyle,t):t}function gr(e){return Array.isArray(e)?N(e):"string"===typeof e?pr(e):e}function mr(e,t){var n,i={};if(t){var o=e;while(o.componentInstance)o=o.componentInstance._vnode,o&&o.data&&(n=hr(o.data))&&D(i,n)}(n=hr(e.data))&&D(i,n);var r=e;while(r=r.parent)r.data&&(n=hr(r.data))&&D(i,n);return i}var vr,_r=/^--/,yr=/\s*!important$/,br=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,Mr=function(e){return"string"===typeof e?e.replace(br,(function(e,t){return uni.upx2px(t)+"px"})):e},Sr=/url\(\s*['"](.+?\.(jpg|gif|png))['"]\s*\)/,Cr=/url\(\s*([a-zA-Z0-9\.\-\_\/]+?\.(jpg|gif|png))\s*\)/,kr=function(e,t){if("string"===typeof e&&-1!==e.indexOf("url(")){var n=e.match(Sr)||e.match(Cr);n&&3===n.length&&(e=e.replace(n[1],t._$getRealPath(n[1])))}return e},Tr=function(e,t,n,i){if(i&&i._$getRealPath&&n&&(n=kr(n,i)),_r.test(t))e.style.setProperty(t,n);else if(yr.test(n))e.style.setProperty(w(t),n.replace(yr,""),"important");else{var o=wr(t);if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)e.style[o]=Mr(n[r]);else e.style[o]=Mr(n)}},Ir=["Webkit","Moz","ms"],wr=S((function(e){if(vr=vr||document.createElement("div").style,e=k(e),"filter"!==e&&e in vr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ir.length;n++){var i=Ir[n]+t;if(i in vr)return i}}));function Ar(e,t){var n=t.data,i=e.data,a=t.elm;if(!(o(n.staticStyle)&&o(n.style)&&o(i.staticStyle)&&o(i.style)&&o(a.__wxsStyle))){var s,c,u=i.staticStyle,l=i.normalizedStyle||i.style||{},d=u||l,f=gr(t.data.style)||{};t.data.normalizedStyle=r(f.__ob__)?D({},f):f;var p=mr(t,!0);for(c in a.__wxsStyle&&(Object.assign(t.data.normalizedStyle,a.__wxsStyle),Object.assign(p,a.__wxsStyle)),d)o(p[c])&&Tr(a,c,"");for(c in p)s=p[c],s!==d[c]&&Tr(a,c,null==s?"":s,t.context)}}var Er={create:Ar,update:Ar},Or=/\s+/;function xr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Or).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Dr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Or).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Nr(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,Rr(e.name||"v")),D(t,e),t}return"string"===typeof e?Rr(e):void 0}}var Rr=S((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Lr=J&&!ne,Pr="transition",Ur="animation",Gr="transition",Fr="transitionend",Br="animation",qr="animationend";Lr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Gr="WebkitTransition",Fr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Br="WebkitAnimation",qr="webkitAnimationEnd"));var jr=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function $r(e){jr((function(){jr(e)}))}function Hr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),xr(e,t))}function Vr(e,t){e._transitionClasses&&y(e._transitionClasses,t),Dr(e,t)}function zr(e,t,n){var i=Wr(e,t),o=i.type,r=i.timeout,a=i.propCount;if(!o)return n();var s=o===Pr?Fr:qr,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),r+1),e.addEventListener(s,l)}var Kr=/\b(transform|all)(,|$)/;function Wr(e,t){var n,i=window.getComputedStyle(e),o=(i[Gr+"Delay"]||"").split(", "),r=(i[Gr+"Duration"]||"").split(", "),a=Yr(o,r),s=(i[Br+"Delay"]||"").split(", "),c=(i[Br+"Duration"]||"").split(", "),u=Yr(s,c),l=0,d=0;t===Pr?a>0&&(n=Pr,l=a,d=r.length):t===Ur?u>0&&(n=Ur,l=u,d=c.length):(l=Math.max(a,u),n=l>0?a>u?Pr:Ur:null,d=n?n===Pr?r.length:c.length:0);var f=n===Pr&&Kr.test(i[Gr+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:f}}function Yr(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Xr(t)+Xr(e[n])})))}function Xr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Jr(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=Nr(e.data.transition);if(!o(i)&&!r(n._enterCb)&&1===n.nodeType){var a=i.css,s=i.type,c=i.enterClass,l=i.enterToClass,d=i.enterActiveClass,f=i.appearClass,p=i.appearToClass,h=i.appearActiveClass,g=i.beforeEnter,v=i.enter,_=i.afterEnter,y=i.enterCancelled,b=i.beforeAppear,M=i.appear,S=i.afterAppear,C=i.appearCancelled,k=i.duration,T=xn,I=xn.$vnode;while(I&&I.parent)T=I.context,I=I.parent;var w=!T._isMounted||!e.isRootInsert;if(!w||M||""===M){var A=w&&f?f:c,E=w&&h?h:d,O=w&&p?p:l,x=w&&b||g,D=w&&"function"===typeof M?M:v,N=w&&S||_,R=w&&C||y,L=m(u(k)?k.enter:k);0;var P=!1!==a&&!ne,U=ea(D),G=n._enterCb=F((function(){P&&(Vr(n,O),Vr(n,E)),G.cancelled?(P&&Vr(n,A),R&&R(n)):N&&N(n),n._enterCb=null}));e.data.show||Mt(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),D&&D(n,G)})),x&&x(n),P&&(Hr(n,A),Hr(n,E),$r((function(){Vr(n,A),G.cancelled||(Hr(n,O),U||(Zr(L)?setTimeout(G,L):zr(n,s,G)))}))),e.data.show&&(t&&t(),D&&D(n,G)),P||U||G()}}}function Qr(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=Nr(e.data.transition);if(o(i)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var a=i.css,s=i.type,c=i.leaveClass,l=i.leaveToClass,d=i.leaveActiveClass,f=i.beforeLeave,p=i.leave,h=i.afterLeave,g=i.leaveCancelled,v=i.delayLeave,_=i.duration,y=!1!==a&&!ne,b=ea(p),M=m(u(_)?_.leave:_);0;var S=n._leaveCb=F((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Vr(n,l),Vr(n,d)),S.cancelled?(y&&Vr(n,c),g&&g(n)):(t(),h&&h(n)),n._leaveCb=null}));v?v(C):C()}function C(){S.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),y&&(Hr(n,c),Hr(n,d),$r((function(){Vr(n,c),S.cancelled||(Hr(n,l),b||(Zr(M)?setTimeout(S,M):zr(n,s,S)))}))),p&&p(n,S),y||b||S())}}function Zr(e){return"number"===typeof e&&!isNaN(e)}function ea(e){if(o(e))return!1;var t=e.fns;return r(t)?ea(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ta(e,t){!0!==t.data.show&&Jr(t)}var na=J?{create:ta,activate:ta,remove:function(e,t){!0!==e.data.show?Qr(e,t):t()}}:{},ia=[Ho,Wo,Jo,sr,fr,Er,na],oa=ia.concat(qo),ra=No({nodeOps:To,modules:oa});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&pa(e,"input")}));var aa={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?Mt(n,"postpatch",(function(){aa.componentUpdated(e,t,n)})):sa(e,t,n.context),e._vOptions=[].map.call(e.options,la)):("textarea"===n.tag||lo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",da),e.addEventListener("compositionend",fa),e.addEventListener("change",fa),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){sa(e,t,n.context);var i=e._vOptions,o=e._vOptions=[].map.call(e.options,la);if(o.some((function(e,t){return!U(e,i[t])}))){var r=e.multiple?t.value.some((function(e){return ua(e,o)})):t.value!==t.oldValue&&ua(t.value,o);r&&pa(e,"change")}}}};function sa(e,t,n){ca(e,t,n),(te||ie)&&setTimeout((function(){ca(e,t,n)}),0)}function ca(e,t,n){var i=t.value,o=e.multiple;if(!o||Array.isArray(i)){for(var r,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],o)r=G(i,la(a))>-1,a.selected!==r&&(a.selected=r);else if(U(la(a),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function ua(e,t){return t.every((function(t){return!U(t,e)}))}function la(e){return"_value"in e?e._value:e.value}function da(e){e.target.composing=!0}function fa(e){e.target.composing&&(e.target.composing=!1,pa(e.target,"input"))}function pa(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ha(e){return!e.componentInstance||e.data&&e.data.transition?e:ha(e.componentInstance._vnode)}var ga={bind:function(e,t,n){var i=t.value;n=ha(n);var o=n.data&&n.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&o?(n.data.show=!0,Jr(n,(function(){e.style.display=r}))):e.style.display=i?r:"none"},update:function(e,t,n){var i=t.value,o=t.oldValue;if(!i!==!o){n=ha(n);var r=n.data&&n.data.transition;r?(n.data.show=!0,i?Jr(n,(function(){e.style.display=e.__vOriginalDisplay})):Qr(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,o){o||(e.style.display=e.__vOriginalDisplay)}},ma={model:aa,show:ga},va={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function _a(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?_a(kn(t.children)):e}function ya(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var o=n._parentListeners;for(var r in o)t[k(r)]=o[r];return t}function ba(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Ma(e){while(e=e.parent)if(e.data.transition)return!0}function Sa(e,t){return t.key===e.key&&t.tag===e.tag}var Ca=function(e){return e.tag||Cn(e)},ka=function(e){return"show"===e.name},Ta={name:"transition",props:va,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ca),n.length)){0;var i=this.mode;0;var o=n[0];if(Ma(this.$vnode))return o;var r=_a(o);if(!r)return o;if(this._leaving)return ba(e,o);var a="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?a+"comment":a+r.tag:c(r.key)?0===String(r.key).indexOf(a)?r.key:a+r.key:r.key;var s=(r.data||(r.data={})).transition=ya(this),u=this._vnode,l=_a(u);if(r.data.directives&&r.data.directives.some(ka)&&(r.data.show=!0),l&&l.data&&!Sa(r,l)&&!Cn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=D({},s);if("out-in"===i)return this._leaving=!0,Mt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ba(e,o);if("in-out"===i){if(Cn(r))return u;var f,p=function(){f()};Mt(s,"afterEnter",p),Mt(s,"enterCancelled",p),Mt(d,"delayLeave",(function(e){f=e}))}}return o}}},Ia=D({tag:String,moveClass:String},va);delete Ia.mode;var wa={props:Ia,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var o=Dn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,o=this.$slots.default||[],r=this.children=[],a=ya(this),s=0;s<o.length;s++){var c=o[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))r.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(i){for(var u=[],l=[],d=0;d<i.length;d++){var f=i[d];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?u.push(f):l.push(f)}this.kept=e(t,null,u),this.removed=l}return e(t,null,r)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Aa),e.forEach(Ea),e.forEach(Oa),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;Hr(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Fr,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Fr,e),n._moveCb=null,Vr(n,t))})}})))},methods:{hasMove:function(e,t){if(!Lr)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Dr(n,e)})),xr(n,t),n.style.display="none",this.$el.appendChild(n);var i=Wr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function Aa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ea(e){e.data.newPos=e.elm.getBoundingClientRect()}function Oa(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,o=t.top-n.top;if(i||o){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+i+"px,"+o+"px)",r.transitionDuration="0s"}}var xa={Transition:Ta,TransitionGroup:wa};ki.config.mustUseProp=qi,ki.config.isReservedTag=ao,ki.config.isReservedAttr=Fi,ki.config.getTagNamespace=so,ki.config.isUnknownElement=uo,D(ki.options.directives,ma),D(ki.options.components,xa),ki.prototype.__patch__=J?ra:R,ki.prototype.__call_hook=function(e,t){var n=this;ve();var i,o=n.$options[e],r=e+" hook";if(o)for(var a=0,s=o.length;a<s;a++)i=nt(o[a],n,t?[t]:null,n,r);return n._hasHookEvent&&n.$emit("hook:"+e,t),_e(),i},ki.prototype.$mount=function(e,t){return e=e&&J?fo(e):void 0,Ln(this,e,t)},J&&setTimeout((function(){$.devtools&&le&&le.emit("init",ki)}),0),t["default"]=ki}.call(this,n("c8ba"),n("5a52")["default"])},e163:function(e,t,n){var i=n("5135"),o=n("7b0b"),r=n("f772"),a=n("e177"),s=r("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e25e:function(e,t,n){var i=n("23e7"),o=n("c20d");i({global:!0,forced:parseInt!=o},{parseInt:o})},e260:function(e,t,n){"use strict";var i=n("fc6a"),o=n("44d2"),r=n("3f8c"),a=n("69f3"),s=n("7dd0"),c="Array Iterator",u=a.set,l=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:i(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},e2e5:function(e,t,n){"use strict";(function(e,i){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.chooseVideo=f;var r=n("b286"),a=n("81e8"),s=o(n("0319")),c=n("987d"),u=e,l=u.invokeCallbackHandler,d=null;function f(e,t){var n=e.sourceType,o=e.extension;d&&(document.body.removeChild(d),d=null),d=(0,s.default)({sourceType:n,extension:o,type:"video"}),document.body.appendChild(d),d.addEventListener("change",(function(e){var n,i=e.target.files[0],o={errMsg:"chooseVideo:ok",tempFile:i,size:i.size,duration:0,width:0,height:0,name:i.name};Object.defineProperty(o,"tempFilePath",{get:function(){return n=n||(0,r.fileToUrl)(this.tempFile),n}});var a=document.createElement("video");if(void 0!==a.onloadedmetadata){var s=(0,r.fileToUrl)(i);a.onloadedmetadata=function(){(0,r.revokeObjectURL)(s),l(t,Object.assign(o,{duration:a.duration||0,width:a.videoWidth||0,height:a.videoHeight||0}))},setTimeout((function(){a.onloadedmetadata=null,(0,r.revokeObjectURL)(s),l(t,o)}),300),a.src=s}else l(t,o)})),d.click(),c.interact.getStatus()||i.warn("".concat((0,a.t)("uni.chooseFile.notUserActivation")))}}).call(this,n("a9aa"),n("5a52")["default"])},e2ec:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("4160"),n("c975"),n("d81d"),n("a434"),n("b64b"),n("d3b7"),n("07ac"),n("3ca3"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.uploadFile=u;var o=i(n("d4ec")),r=i(n("bee2")),a=i(n("ade3")),s=n("b286"),c=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"_xhr",void 0),(0,a.default)(this,"_isAbort",void 0),(0,a.default)(this,"_callbacks",[]),this._xhr=t,this._callbackId=n}return(0,r.default)(e,[{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"abort",value:function(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}}]),e}();function u(t,n){var i=t.url,o=t.file,r=t.filePath,a=t.name,u=t.files,l=t.header,d=t.formData,f=t.timeout,p=void 0===f?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4:f,h=e,g=h.invokeCallbackHandler,m=new c(null,n);function v(e){var t,o=new XMLHttpRequest,r=new FormData;Object.keys(d).forEach((function(e){r.append(e,d[e])})),Object.values(u).forEach((function(t,n){var i=t.name,o=e[n];r.append(i||"file",o,o.name||"file-".concat(Date.now()))})),o.open("POST",i),Object.keys(l).forEach((function(e){o.setRequestHeader(e,l[e])})),o.upload.onprogress=function(e){m._callbacks.forEach((function(t){var n=e.loaded,i=e.total,o=Math.round(n/i*100);t({progress:o,totalBytesSent:n,totalBytesExpectedToSend:i})}))},o.onerror=function(){clearTimeout(t),g(n,{errMsg:"uploadFile:fail"})},o.onabort=function(){clearTimeout(t),g(n,{errMsg:"uploadFile:fail abort"})},o.onload=function(){clearTimeout(t);var e=o.status;g(n,{errMsg:"uploadFile:ok",statusCode:e,data:o.responseText||o.response})},m._isAbort?g(n,{errMsg:"uploadFile:fail abort"}):(t=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,m.abort(),g(n,{errMsg:"uploadFile:fail timeout"})}),p),o.send(r),m._xhr=o)}return Array.isArray(u)&&u.length||(u=[{name:a,file:o,uri:r}]),Promise.all(u.map((function(e){var t=e.file,n=e.uri;return t instanceof Blob?Promise.resolve((0,s.blobToFile)(t)):(0,s.urlToFile)(n)}))).then(v).catch((function(){setTimeout((function(){g(n,{errMsg:"uploadFile:fail file error"})}),0)})),m}}).call(this,n("a9aa"))},e330:function(e,t,n){"use strict";n.r(t);var i=n("1108"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},e33e:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-scroll-view",e._g({},e.$listeners),[n("div",{ref:"wrap",staticClass:"uni-scroll-view"},[n("div",{ref:"main",staticClass:"uni-scroll-view",style:{"overflow-x":e.scrollX?"auto":"hidden","overflow-y":e.scrollY?"auto":"hidden"}},[n("div",{ref:"content",staticClass:"uni-scroll-view-content"},[e.refresherEnabled?n("div",{ref:"refresherinner",staticClass:"uni-scroll-view-refresher",style:{"background-color":e.refresherBackground,height:e.refresherHeight+"px"}},["none"!==e.refresherDefaultStyle?n("div",{staticClass:"uni-scroll-view-refresh"},[n("div",{staticClass:"uni-scroll-view-refresh-inner"},["pulling"==e.refreshState?n("svg",{key:"refresh__icon",staticClass:"uni-scroll-view-refresh__icon",style:{transform:"rotate("+e.refreshRotate+"deg)"},attrs:{fill:"#2BD009",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}}),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})]):e._e(),"refreshing"==e.refreshState?n("svg",{key:"refresh__spinner",staticClass:"uni-scroll-view-refresh__spinner",attrs:{width:"24",height:"24",viewBox:"25 25 50 50"}},[n("circle",{staticStyle:{color:"#2bd009"},attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3"}})]):e._e()])]):e._e(),"none"==e.refresherDefaultStyle?e._t("refresher"):e._e()],2):e._e(),e._t("default")],2)])])])},r=[]},e3f5:function(e,t,n){"use strict";function i(e,t,n,i){var o,r=document.createElement("script"),a=t.callback||"callback",s="__callback"+Date.now()+Math.random().toString().slice(2),c=t.timeout||3e4;function u(){clearTimeout(o),delete window[s],r.remove()}window[s]=function(e){"function"===typeof n&&n(e),u()},r.onerror=function(){"function"===typeof i&&i(),u()},o=setTimeout((function(){"function"===typeof i&&i(),u()}),c),r.src=e+(e.indexOf("?")>=0?"&":"?")+a+"="+s,document.body.appendChild(r)}n("c975"),n("fb6a"),n("d3b7"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.getJSONP=i},e439:function(e,t,n){var i=n("23e7"),o=n("d039"),r=n("fc6a"),a=n("06cf").f,s=n("83ab"),c=o((function(){a(1)})),u=!s||c;i({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(r(e),t)}})},e467:function(e,t,n){"use strict";var i=n("4ea4");n("fb6a"),Object.defineProperty(t,"__esModule",{value:!0}),t.$on=s,t.$off=c,t.$once=u,t.$emit=l;var o=i(n("e143")),r=new o.default;function a(e,t,n){return e[t].apply(e,n)}function s(){return a(r,"$on",Array.prototype.slice.call(arguments))}function c(){return a(r,"$off",Array.prototype.slice.call(arguments))}function u(){return a(r,"$once",Array.prototype.slice.call(arguments))}function l(){return a(r,"$emit",Array.prototype.slice.call(arguments))}},e52a:function(e,t,n){"use strict";n.r(t);var i=n("ec3c"),o=n("e04c");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},e538:function(e,t,n){var i=n("b622");t.f=i},e574:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("8751")),r=n("631a"),a={name:"PageBody",mounted:function(){var e=r.tabBar.height||"50px",t=".uni-app--showtabbar uni-page-wrapper {\n display: block;\n height: calc(100% - ".concat(e,");\n height: calc(100% - ").concat(e," - constant(safe-area-inset-bottom));\n height: calc(100% - ").concat(e," - env(safe-area-inset-bottom));\n }");t+="\n",t+='.uni-app--showtabbar uni-page-wrapper::after {\n content: "";\n display: block;\n width: 100%;\n height: '.concat(e,";\n height: calc(").concat(e," + constant(safe-area-inset-bottom));\n height: calc(").concat(e," + env(safe-area-inset-bottom));\n }"),t+="\n",t+='.uni-app--showtabbar uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {\n height: calc(100% - 44px - '.concat(e,");\n height: calc(100% - 44px - constant(safe-area-inset-top) - ").concat(e," - constant(safe-area-inset-bottom));\n height: calc(100% - 44px - env(safe-area-inset-top) - ").concat(e," - env(safe-area-inset-bottom));\n }"),(0,o.default)(t)}};t.default=a},e58c:function(e,t,n){"use strict";var i=n("fc6a"),o=n("a691"),r=n("50c4"),a=n("a640"),s=n("ae40"),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),f=s("indexOf",{ACCESSORS:!0,1:0}),p=l||!d||!f;e.exports=p?function(e){if(l)return u.apply(this,arguments)||0;var t=i(this),n=r(t.length),a=n-1;for(arguments.length>1&&(a=c(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:u},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6b0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("1a39"),o=n("d61e"),r=n("4403"),a={requestComponentObserver:i.requestComponentObserver,destroyComponentObserver:i.destroyComponentObserver,requestMediaQueryObserver:o.requestMediaQueryObserver,destroyMediaQueryObserver:o.destroyMediaQueryObserver,requestComponentInfo:r.requestComponentInfo};t.default=a},e6cf:function(e,t,n){"use strict";var i,o,r,a,s=n("23e7"),c=n("c430"),u=n("da84"),l=n("d066"),d=n("fea9"),f=n("6eeb"),p=n("e2cc"),h=n("d44e"),g=n("2626"),m=n("861d"),v=n("1c0b"),_=n("19aa"),y=n("c6b6"),b=n("8925"),M=n("2266"),S=n("1c7e"),C=n("4840"),k=n("2cf4").set,T=n("b575"),I=n("cdf9"),w=n("44de"),A=n("f069"),E=n("e667"),O=n("69f3"),x=n("94ca"),D=n("b622"),N=n("2d00"),R=D("species"),L="Promise",P=O.get,U=O.set,G=O.getterFor(L),F=d,B=u.TypeError,q=u.document,j=u.process,$=l("fetch"),H=A.f,V=H,z="process"==y(j),K=!!(q&&q.createEvent&&u.dispatchEvent),W="unhandledrejection",Y="rejectionhandled",X=0,J=1,Q=2,Z=1,ee=2,te=x(L,(function(){var e=b(F)!==String(F);if(!e){if(66===N)return!0;if(!z&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!F.prototype["finally"])return!0;if(N>=51&&/native code/.test(F))return!1;var t=F.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[R]=n,!(t.then((function(){}))instanceof n)})),ne=te||!S((function(e){F.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},oe=function(e,t,n){if(!t.notified){t.notified=!0;var i=t.reactions;T((function(){var o=t.value,r=t.state==J,a=0;while(i.length>a){var s,c,u,l=i[a++],d=r?l.ok:l.fail,f=l.resolve,p=l.reject,h=l.domain;try{d?(r||(t.rejection===ee&&ce(e,t),t.rejection=Z),!0===d?s=o:(h&&h.enter(),s=d(o),h&&(h.exit(),u=!0)),s===l.promise?p(B("Promise-chain cycle")):(c=ie(s))?c.call(s,f,p):f(s)):p(o)}catch(g){h&&!u&&h.exit(),p(g)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ae(e,t)}))}},re=function(e,t,n){var i,o;K?(i=q.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},(o=u["on"+e])?o(i):e===W&&w("Unhandled promise rejection",n)},ae=function(e,t){k.call(u,(function(){var n,i=t.value,o=se(t);if(o&&(n=E((function(){z?j.emit("unhandledRejection",i,e):re(W,e,i)})),t.rejection=z||se(t)?ee:Z,n.error))throw n.value}))},se=function(e){return e.rejection!==Z&&!e.parent},ce=function(e,t){k.call(u,(function(){z?j.emit("rejectionHandled",e):re(Y,e,t.value)}))},ue=function(e,t,n,i){return function(o){e(t,n,o,i)}},le=function(e,t,n,i){t.done||(t.done=!0,i&&(t=i),t.value=n,t.state=Q,oe(e,t,!0))},de=function(e,t,n,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===n)throw B("Promise can't be resolved itself");var o=ie(n);o?T((function(){var i={done:!1};try{o.call(n,ue(de,e,i,t),ue(le,e,i,t))}catch(r){le(e,i,r,t)}})):(t.value=n,t.state=J,oe(e,t,!1))}catch(r){le(e,{done:!1},r,t)}}};te&&(F=function(e){_(this,F,L),v(e),i.call(this);var t=P(this);try{e(ue(de,this,t),ue(le,this,t))}catch(n){le(this,t,n)}},i=function(e){U(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},i.prototype=p(F.prototype,{then:function(e,t){var n=G(this),i=H(C(this,F));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=z?j.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=X&&oe(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i,t=P(e);this.promise=e,this.resolve=ue(de,e,t),this.reject=ue(le,e,t)},A.f=H=function(e){return e===F||e===r?new o(e):V(e)},c||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof $&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return I(F,$.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:F}),h(F,L,!1,!0),g(L),r=l(L),s({target:L,stat:!0,forced:te},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:c||te},{resolve:function(e){return I(c&&this===r?F:this,e)}}),s({target:L,stat:!0,forced:ne},{all:function(e){var t=this,n=H(t),i=n.resolve,o=n.reject,r=E((function(){var n=v(t.resolve),r=[],a=0,s=1;M(e,(function(e){var c=a++,u=!1;r.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,r[c]=e,--s||i(r))}),o)})),--s||i(r)}));return r.error&&o(r.value),n.promise},race:function(e){var t=this,n=H(t),i=n.reject,o=E((function(){var o=v(t.resolve);M(e,(function(e){o.call(t,e).then(n.resolve,i)}))}));return o.error&&i(o.value),n.promise}})},e742:function(e,t,n){"use strict";n.r(t);var i=n("0a71"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},e893:function(e,t,n){var i=n("5135"),o=n("56ef"),r=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=o(t),s=a.f,c=r.f,u=0;u<n.length;u++){var l=n[u];i(e,l)||s(e,l,c(t,l))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e8c3:function(e){e.exports=JSON.parse('{"uni.app.quit":"Appuyez à nouveau pour quitter l\'application","uni.async.error":"La connexion a expiré, cliquez sur l\'écran pour réessayer.","uni.showActionSheet.cancel":"Annuler","uni.showToast.unpaired":"Veuillez noter que showToast doit être associé à hideToast","uni.showLoading.unpaired":"Veuillez noter que showLoading doit être associé à hideLoading","uni.showModal.cancel":"Annuler","uni.showModal.confirm":"OK","uni.chooseImage.cancel":"Annuler","uni.chooseImage.sourceType.album":"Album","uni.chooseImage.sourceType.camera":"Caméra","uni.chooseVideo.cancel":"Annuler","uni.chooseVideo.sourceType.album":"Album","uni.chooseVideo.sourceType.camera":"Caméra","uni.chooseFile.notUserActivation":"La boîte de dialogue du sélecteur de fichier ne peut être affichée qu\'avec une activation par l\'utilisateur","uni.previewImage.cancel":"Annuler","uni.previewImage.button.save":"Guardar imagen","uni.previewImage.save.success":"Enregistré avec succès","uni.previewImage.save.fail":"Échec de la sauvegarde","uni.setClipboardData.success":"Contenu copié","uni.scanCode.title":"Code d’analyse","uni.scanCode.album":"Album","uni.scanCode.fail":"Fallo de reconocimiento","uni.scanCode.flash.on":"Appuyez pour activer l\'éclairage","uni.scanCode.flash.off":"Appuyez pour désactiver l\'éclairage","uni.startSoterAuthentication.authContent":"Reconnaissance de l\'empreinte digitale","uni.picker.done":"OK","uni.picker.cancel":"Annuler","uni.video.danmu":"Danmu","uni.video.volume":"Le Volume","uni.button.feedback.title":"retour d\'information","uni.button.feedback.send":"envoyer","uni.chooseLocation.search":"Trouve","uni.chooseLocation.cancel":"Annuler"}')},e91f:function(e,t,n){"use strict";var i=n("ebb5"),o=n("4d64").indexOf,r=i.aTypedArray,a=i.exportTypedArrayMethod;a("indexOf",(function(e){return o(r(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,n){var i=n("b622"),o=n("3f8c"),r=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[r]===e)}},ebb5:function(e,t,n){"use strict";var i,o=n("a981"),r=n("83ab"),a=n("da84"),s=n("861d"),c=n("5135"),u=n("f5df"),l=n("9112"),d=n("6eeb"),f=n("9bf2").f,p=n("e163"),h=n("d2bb"),g=n("b622"),m=n("90e3"),v=a.Int8Array,_=v&&v.prototype,y=a.Uint8ClampedArray,b=y&&y.prototype,M=v&&p(v),S=_&&p(_),C=Object.prototype,k=C.isPrototypeOf,T=g("toStringTag"),I=m("TYPED_ARRAY_TAG"),w=o&&!!h&&"Opera"!==u(a.opera),A=!1,E={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O=function(e){var t=u(e);return"DataView"===t||c(E,t)},x=function(e){return s(e)&&c(E,u(e))},D=function(e){if(x(e))return e;throw TypeError("Target is not a typed array")},N=function(e){if(h){if(k.call(M,e))return e}else for(var t in E)if(c(E,i)){var n=a[t];if(n&&(e===n||k.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},R=function(e,t,n){if(r){if(n)for(var i in E){var o=a[i];o&&c(o.prototype,e)&&delete o.prototype[e]}S[e]&&!n||d(S,e,n?t:w&&_[e]||t)}},L=function(e,t,n){var i,o;if(r){if(h){if(n)for(i in E)o=a[i],o&&c(o,e)&&delete o[e];if(M[e]&&!n)return;try{return d(M,e,n?t:w&&v[e]||t)}catch(s){}}for(i in E)o=a[i],!o||o[e]&&!n||d(o,e,t)}};for(i in E)a[i]||(w=!1);if((!w||"function"!=typeof M||M===Function.prototype)&&(M=function(){throw TypeError("Incorrect invocation")},w))for(i in E)a[i]&&h(a[i],M);if((!w||!S||S===C)&&(S=M.prototype,w))for(i in E)a[i]&&h(a[i].prototype,S);if(w&&p(b)!==S&&h(b,S),r&&!c(S,T))for(i in A=!0,f(S,T,{get:function(){return s(this)?this[I]:void 0}}),E)a[i]&&l(a[i],I,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:w,TYPED_ARRAY_TAG:A&&I,aTypedArray:D,aTypedArrayConstructor:N,exportTypedArrayMethod:R,exportTypedArrayStaticMethod:L,isView:O,isTypedArray:x,TypedArray:M,TypedArrayPrototype:S}},ec3c:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-page",{attrs:{"data-page":e.$route.meta.pagePath}},["none"!==e.navigationBar.type?n("page-head",e._b({},"page-head",e.navigationBar,!1)):e._e(),e.enablePullDownRefresh?n("page-refresh",{ref:"refresh",attrs:{color:e.refreshOptions.color,offset:e.refreshOptions.offset}}):e._e(),e.enablePullDownRefresh?n("page-body",{nativeOn:{touchstart:function(t){return e._touchstart(t)},touchmove:function(t){return e._touchmove(t)},touchend:function(t){return e._touchend(t)},touchcancel:function(t){return e._touchend(t)}}},[e._t("page")],2):n("page-body",[e._t("page")],2)],1)},r=[]},ecc9:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-radio",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-radio-wrapper"},[n("div",{staticClass:"uni-radio-input",class:e.radioChecked?"uni-radio-input-checked":"",style:e.radioChecked?e.checkedStyle:""}),e._t("default")],2)])},r=[]},ee05:function(e,t,n){"use strict";n.r(t);var i=n("2f1b"),o=n("3296");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},f069:function(e,t,n){"use strict";var i=n("1c0b"),o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new o(e)}},f0b1:function(e,t,n){"use strict";var i=n("4ea4");n("4160"),n("c975"),n("b64b"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.lifecycleMixin=l;var o=i(n("2909")),r=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onNavigationBarSearchInputFocusChanged","onPageShow","onPageHide","onPageResize","onServiceCreated","onServiceAttached"],a=["data","properties","options","relations"];function s(e,t,n){t[n]&&Object.assign(e[n]||(e[n]={}),t[n])}function c(e,t){e.push.apply(e,(0,o.default)(t))}function u(e,t){a.forEach((function(n){s(e,t,n)})),t.externalClasses&&c(e.externalClasses||(e.externalClasses=[]),t.externalClasses),t.path&&(e.path=t.path)}function l(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==r.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,i=n.created;r.forEach((function(e){n[e]=i})),n.mpOptions=function(e,t){if(!e)return t;var n=Object.create(null);return u(n,e),t&&u(n,t),n}}},f0c5:function(e,t,n){"use strict";function i(e,t,n,i,o,r,a,s,c,u){var l,d="function"===typeof e?e.options:e;if(c){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in c)f.call(c,p)&&!f.call(d.components,p)&&(d.components[p]=c[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(d.mixins||(d.mixins=[])).push(u)),t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(d.functional){d._injectStyles=l;var h=d.render;d.render=function(e,t){return l.call(t),h(e,t)}}else{var g=d.beforeCreate;d.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:d}}n.d(t,"a",(function(){return i}))},f183:function(e,t,n){var i=n("d012"),o=n("861d"),r=n("5135"),a=n("9bf2").f,s=n("90e3"),c=n("bb2f"),u=s("meta"),l=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,u)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[u].objectID},h=function(e,t){if(!r(e,u)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[u].weakData},g=function(e){return c&&m.REQUIRED&&d(e)&&!r(e,u)&&f(e),e},m=e.exports={REQUIRED:!1,fastKey:p,getWeakData:h,onFreeze:g};i[u]=!0},f19e:function(e,t,n){"use strict";n.r(t);var i=n("d37c"),o=n("e742");for(var r in o)"default"!==r&&function(e){n.d(t,e,(function(){return o[e]}))}(r);var a,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},f1ca:function(e,t,n){"use strict";var i=n("4ea4");n("c975"),n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var o=i(n("5b80")),r=/^([a-z-]+:)?\/\//i,a=/^data:.*,.*/;function s(e){var t=__uniConfig.router.base;return t?"/"!==t&&0===("/"+e).indexOf(t)?"/"+e:t+e:e}function c(e){if("./"===__uniConfig.router.base&&(e=e.replace(/^\.\/static\//,"/static/")),0===e.indexOf("/")){if(0!==e.indexOf("//"))return s(e.substr(1));e="https:"+e}if(r.test(e)||a.test(e)||0===e.indexOf("blob:"))return e;var t=getCurrentPages();return t.length?s((0,o.default)(t[t.length-1].$page.route,e).substr(1)):e}},f262:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("f5f1")),r=i(n("aea7")),a=i(n("73bf")),s=[o.default,r.default,a.default];t.default=s},f4b3:function(e,t,n){"use strict";var i=n("23e7"),o=n("d039"),r=n("7b0b"),a=n("c04e"),s=o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));i({target:"Date",proto:!0,forced:s},{toJSON:function(e){var t=r(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f4f0:function(e,t,n){"use strict";n("c975"),n("b64b"),n("e25e"),n("2ca0"),Object.defineProperty(t,"__esModule",{value:!0}),t.isPage=r,t.hasLifecycleHook=a,t.normalizeDataset=s,t.getTargetDataset=c,t.upx2px=u,t.findExistsPageIndex=l;var i=n("db6a"),o=["SystemAsyncLoading","SystemAsyncError"];function r(e){return!(!e.$parent||"PageBody"!==e.$parent.$options.name)&&-1===o.indexOf(e.$options.name)}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Array.isArray(e[t])&&e[t].length}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e)),n=Object.keys(t),i=n.length;if(i)for(var o=0;o<i;o++){var r=n[o],a=r.length;"v"!==r.substr(0,1)||9!==a&&10!==a||delete t[r]}return t}function c(e){var t={},n=e.__vue__;function o(e,n){var o=e.$attrs;for(var r in o)if(r.startsWith("data-")){var a=(0,i.camelize)(r.substr(5).toLowerCase()),s=o[r];t[a]=n?s:t[a]||s}}if(n){var r=n;while(r&&r.$el===e)o(r),r=r.$children[0];var a=n.$parent;while(a&&a.$el===e)o(a,!0),a=a.$parent}else t=Object.assign({},e.dataset,e.__uniDataset);return s(t)}function u(e){return e+="",-1!==e.indexOf("upx")?uni.upx2px(parseInt(e)||0):parseInt(e)||0}function l(e){var t=getCurrentPages(),n=t.length;while(n--){var i=t[n];if(i.$page&&i.$page.fullPath===e)return n}return-1}},f522:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("c975"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("f4f0"),r=n("81e8"),a=n("0fbe"),s=n("db6a"),c=n("60f6"),u=i(n("7896")),l=i(n("825b")),d=i(n("35d06")),f=i(n("289b")),p=i(n("d8c8")),h={name:"Page",mpType:"page",components:{PageHead:u.default,PageBody:l.default,PageRefresh:d.default},mixins:[f.default],props:{isQuit:{type:Boolean,default:!1},isEntry:{type:Boolean,default:!1},isTabBar:{type:Boolean,default:!1},tabBarIndex:{type:Number,default:-1},navigationBarBackgroundColor:{type:String,default:"#000"},navigationBarTextStyle:{default:"white",validator:function(e){return-1!==["white","black"].indexOf(e)}},navigationBarTitleText:{type:String,default:""},navigationStyle:{default:"default",validator:function(e){return-1!==["default","custom"].indexOf(e)}},backgroundColor:{type:String,default:"#ffffff"},backgroundTextStyle:{default:"dark",validator:function(e){return-1!==["dark","light"].indexOf(e)}},backgroundColorTop:{type:String,default:"#fff"},backgroundColorBottom:{type:String,default:"#fff"},enablePullDownRefresh:{type:Boolean,default:!1},onReachBottomDistance:{type:Number,default:50},disableScroll:{type:Boolean,default:!1},titleNView:{type:[Boolean,Object,String],default:""},pullToRefresh:{type:Object,default:function(){return{}}},titleImage:{type:String,default:""},transparentTitle:{type:String,default:""},titlePenetrate:{type:String,default:"NO"},navigationBarShadow:{type:Object,default:function(){return{}}},topWindow:{type:Boolean,default:!0}},data:function(){var e={},t={none:"default",auto:"transparent",always:"float"},n=this.titleNView;n=!1===n||"false"===n||"custom"===this.navigationStyle&&!(0,s.isPlainObject)(n)||"always"===this.transparentTitle&&!(0,s.isPlainObject)(n)?{type:"none"}:Object.assign({},{type:"custom"===this.navigationStyle?"none":"default"},this.transparentTitle in t?{type:t[this.transparentTitle]}:null,"object"===typeof n?n:"boolean"===typeof n?{type:n?"default":"none"}:null);var i={YES:!0,NO:!1};e=(0,c.mergeTitleNView)({loading:!1,backButton:!this.isQuit&&!this.$route.meta.isQuit,backgroundColor:this.navigationBarBackgroundColor,textColor:"black"===this.navigationBarTextStyle?"#000":"#fff",titleText:this.navigationBarTitleText,titleImage:this.titleImage,duration:"0",timingFunc:"",titlePenetrate:i[this.titlePenetrate]},n),e.shadow=this.navigationBarShadow,(0,r.initNavigationBarI18n)(e);var u=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),l=(0,o.upx2px)(u.offset);return"none"!==n.type&&"transparent"!==n.type&&(l+=a.NAVBAR_HEIGHT+p.default.top),u.offset=l,u.height=(0,o.upx2px)(u.height),u.range=(0,o.upx2px)(u.range),{navigationBar:e,refreshOptions:u}},created:function(){var t=this.navigationBar;document.title=t.titleText,e.emit("onNavigationBarChange",t)}};t.default=h}).call(this,n("a9aa"))},f5b2:function(e,t,n){"use strict";var i=n("23e7"),o=n("6547").codeAt;i({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},f5df:function(e,t,n){var i=n("00ee"),o=n("c6b6"),r=n("b622"),a=r("toStringTag"),s="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),a))?n:s?o(t):"Object"==(i=o(t))&&"function"==typeof t.callee?"Arguments":i}},f5f1:function(e,t,n){"use strict";(function(e,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("81e8"),r={data:function(){return{showToast:{visible:!1}}},created:function(){var t=this,n="",r=function(e){return function(i){n=e,setTimeout((function(){t.showToast=i}),10)}};e.on("onShowToast",r("onShowToast")),e.on("onShowLoading",r("onShowLoading"));var a=function(e){return function(){if(n){var r="";if("onHideToast"===e&&"onShowToast"!==n?r=(0,o.t)("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==n&&(r=(0,o.t)("uni.showLoading.unpaired")),r)return i.warn(r);n="",setTimeout((function(){t.showToast.visible=!1}),10)}}};e.on("onHidePopup",a("onHidePopup")),e.on("onHideToast",a("onHideToast")),e.on("onHideLoading",a("onHideLoading"))}};t.default=r}).call(this,n("a9aa"),n("5a52")["default"])},f638:function(e,t,n){"use strict";function i(e,t){var n=e.name,i=e.arg;"postMessage"===n||uni[n](i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},f650:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var o=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-async-loading"},[n("i",{staticClass:"uni-loading"})])}]},f6d6:function(e,t,n){var i=n("23e7"),o=n("23cb"),r=String.fromCharCode,a=String.fromCodePoint,s=!!a&&1!=a.length;i({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,n=[],i=arguments.length,a=0;while(i>a){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?r(t):r(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},f772:function(e,t,n){var i=n("5692"),o=n("90e3"),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},f861:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getDeviceInfo=d,t.getAppBaseInfo=f,t.getSystemInfoSync=p,t.getSystemInfo=h;var o=n("6ae0"),r=i(n("5f13")),a=n("49b6"),s=n("db6a"),c={},u=!0;function l(){u&&(c=(0,a.getBrowserInfo)())}function d(){l();var e=c,t=e.deviceBrand,n=e.deviceModel,i=e.brand,o=e.model,a=e.platform,s=e.system,u=e.deviceOrientation,d=e.deviceType;return{brand:i,deviceBrand:t,deviceModel:n,devicePixelRatio:window.devicePixelRatio,deviceId:(0,r.default)(),deviceOrientation:u,deviceType:d,model:o,platform:a,system:s}}function f(){l();var e=c,t=e.theme,n=e.language,i=e.browserName,o=e.browserVersion,r=uni&&uni.getLocale?uni.getLocale():n;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:r,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:i,hostVersion:o,hostTheme:t,hostLanguage:n,language:n,SDKVersion:"",theme:t,version:""}}function p(){u=!0,l(),u=!1;var e=(0,o.getWindowInfo)(),t=d(),n=f();u=!0;var i=c,r=i.ua,a=i.browserName,p=i.browserVersion,h=i.osname,g=i.osversion,m=Object.assign({},e,t,n,{browserName:a,browserVersion:p,fontSizeSetting:n.hostFontSizeSetting,osName:h.toLocaleLowerCase(),osVersion:g,osLanguage:void 0,osTheme:void 0,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,ua:r});return delete m.screenTop,delete m.enableDebug,delete m.theme,(0,s.sortObject)(m)}function h(){return p()}},f8cd:function(e,t,n){var i=n("a691");e.exports=function(e){var t=i(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},fa21:function(e,t,n){"use strict";n.r(t);var i=n("4baf"),o=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},fb2c:function(e,t,n){var i=n("74e8");i("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fb6a:function(e,t,n){"use strict";var i=n("23e7"),o=n("861d"),r=n("e8b5"),a=n("23cb"),s=n("50c4"),c=n("fc6a"),u=n("8418"),l=n("b622"),d=n("1dde"),f=n("ae40"),p=d("slice"),h=f("slice",{ACCESSORS:!0,0:0,1:2}),g=l("species"),m=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,i,l,d=c(this),f=s(d.length),p=a(e,f),h=a(void 0===t?f:t,f);if(r(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?o(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(d,p,h);for(i=new(void 0===n?Array:n)(v(h-p,0)),l=0;p<h;p++,l++)p in d&&u(i,l,d[p]);return i.length=l,i}})},fc6a:function(e,t,n){var i=n("44ad"),o=n("1d80");e.exports=function(e){return i(o(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe67:function(e,t,n){"use strict";var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("fb6a"),n("a434"),n("b64b"),n("d3b7"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.addInterceptor=h,t.removeInterceptor=g,t.wrapperReturnValue=b,t.invokeApi=S,t.promiseInterceptor=void 0;var o=i(n("2909")),r=n("db6a"),a=["invoke","success","fail","complete","returnValue"],s={},c={};function u(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?l(n):n}function l(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function f(e,t){Object.keys(t).forEach((function(n){-1!==a.indexOf(n)&&(0,r.isFn)(t[n])&&(e[n]=u(e[n],t[n]))}))}function p(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==a.indexOf(n)&&(0,r.isFn)(t[n])&&d(e[n],t[n])}))}function h(e,t){"string"===typeof e&&(0,r.isPlainObject)(t)?f(c[e]||(c[e]={}),t):(0,r.isPlainObject)(e)&&f(s,e)}function g(e,t){"string"===typeof e?(0,r.isPlainObject)(t)?p(c[e],t):delete c[e]:(0,r.isPlainObject)(e)&&p(s,e)}function m(e){return function(t){return e(t)||t}}function v(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}function _(e,t){for(var n=!1,i=0;i<e.length;i++){var o=e[i];if(n)n=Promise.resolve(m(o));else{var r=o(t);if(v(r)&&(n=Promise.resolve(r)),!1===r)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var i=t[n];t[n]=function(t){_(e[n],t).then((function(e){return(0,r.isFn)(i)&&i(e)||e}))}}})),t}function b(e,t){var n=[];Array.isArray(s.returnValue)&&n.push.apply(n,(0,o.default)(s.returnValue));var i=c[e];return i&&Array.isArray(i.returnValue)&&n.push.apply(n,(0,o.default)(i.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function M(e){var t=Object.create(null);Object.keys(s).forEach((function(e){"returnValue"!==e&&(t[e]=s[e].slice())}));var n=c[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function S(e,t,n){for(var i=arguments.length,o=new Array(i>3?i-3:0),r=3;r<i;r++)o[r-3]=arguments[r];var a=M(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=_(a.invoke,n);return s.then((function(e){return t.apply(void 0,[y(a,e)].concat(o))}))}return t.apply(void 0,[y(a,n)].concat(o))}return t.apply(void 0,[n].concat(o))}var C={returnValue:function(e){return v(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}};t.promiseInterceptor=C},fe81:function(e,t,n){"use strict";(function(e){var i=n("4ea4");n("99af"),n("4160"),n("c975"),n("ac1f"),n("5319"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("8751")),r=i(n("f1ca")),a=i(n("47db")),s={forward:"",back:"",share:"",favorite:"",home:"",menu:"",close:""},c={name:"PageHead",mixins:[a.default],props:{backButton:{type:Boolean,default:!0},backgroundColor:{type:String,default:function(){return"transparent"===this.type?"#000":"#F8F8F8"}},textColor:{type:String,default:"#fff"},titleText:{type:String,default:""},duration:{type:String,default:"0"},timingFunc:{type:String,default:""},loading:{type:Boolean,default:!1},titleSize:{type:String,default:"16px"},type:{default:"default",validator:function(e){return-1!==["default","transparent","float"].indexOf(e)}},coverage:{type:String,default:"132px"},buttons:{type:Array,default:function(){return[]}},searchInput:{type:[Object,Boolean],default:function(){return!1}},titleImage:{type:String,default:""},titlePenetrate:{type:Boolean,default:!1},shadow:{type:Object,default:function(){return{}}}},data:function(){return{focus:!1,text:"",composing:!1,showPlaceholder:!1}},computed:{btns:function(){var e=this,t=[],n={};return this.buttons.length&&this.buttons.forEach((function(i){var a=Object.assign({},i);if(a.fontSrc&&!a.fontFamily){var s,c=a.fontSrc=(0,r.default)(a.fontSrc);if(c in n)s=n[c];else{s="font".concat(Date.now()),n[c]=s;var u='@font-face{font-family: "'.concat(s,'";src: url("').concat(c,'") format("truetype")}');(0,o.default)(u,"uni-btn-font-"+s)}a.fontFamily=s}a.color="transparent"===e.type?"#fff":a.color||e.textColor;var l=a.fontSize||("transparent"===e.type||/\\u/.test(a.text)?"22px":"27px");/\d$/.test(l)&&(l+="px"),a.fontSize=l,a.fontWeight=a.fontWeight||"normal",t.push(a)})),t},headClass:function(){var e=this.shadow.colorType,t={"uni-page-head-transparent":"transparent"===this.type,"uni-page-head-titlePenetrate":this.titlePenetrate,"uni-page-head-shadow":e};return e&&(t["uni-page-head-shadow-".concat(e)]=e),t}},mounted:function(){var t=this;if(this.searchInput){var n=this.$refs.input;n.$watch("composing",(function(e){t.composing=e})),n.$watch("valueSync",(function(e){t.showPlaceholder=!!e})),this.searchInput.disabled?n.$el.addEventListener("click",(function(){e.emit("onNavigationBarSearchInputClicked","")})):(n.$refs.input.addEventListener("keyup",(function(n){"ENTER"===n.key.toUpperCase()&&e.emit("onNavigationBarSearchInputConfirmed",{text:t.text})})),n.$refs.input.addEventListener("focus",(function(){e.emit("onNavigationBarSearchInputFocusChanged",{focus:!0})})),n.$refs.input.addEventListener("blur",(function(){e.emit("onNavigationBarSearchInputFocusChanged",{focus:!1})})))}},methods:{_back:function(){1===getCurrentPages().length?uni.reLaunch({url:"/"}):uni.navigateBack({from:"backbutton"})},_onBtnClick:function(t){e.emit("onNavigationBarButtonTap",Object.assign({},this.btns[t],{index:t}))},_formatBtnFontText:function(e){return e.fontSrc&&e.fontFamily?e.text.replace("\\u","&#x"):s[e.type]?s[e.type]:e.text||""},_formatBtnStyle:function(e){var t={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight};return e.fontFamily&&(t.fontFamily=e.fontFamily),t},_focus:function(){this.focus=!0},_blur:function(){this.focus=!1},_input:function(t){e.emit("onNavigationBarSearchInputChanged",{text:t})},_clearInput:function(){this.text="",this._input(this.text)}}};t.default=c}).call(this,n("a9aa"))},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise},ff22:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i={};function o(e){var t=i[e];return t||(t={id:1,callbacks:Object.create(null)},i[e]=t),{get:function(e){return t.callbacks[e]},pop:function(e){var n=t.callbacks[e];return n&&delete t.callbacks[e],n},push:function(e){var n=t.id++;return t.callbacks[n]=e,n}}}}}]);
|