chunk-vendors.3f3965d5.js 1.1 MB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(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,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"0538":function(e,t,n){"use strict";var r=n("1c0b"),o=n("861d"),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},"057f":function(e,t,n){var r=n("fc6a"),o=n("241c").f,i={}.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]"==i.call(e)?s(e):o(r(e))}},"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=i;var r=o(n("6b75"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(e){if("string"===typeof e)return(0,r.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,r.default)(e,t):void 0}}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),u=n("0cfb"),l=Object.getOwnPropertyDescriptor;t.f=r?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 i(!o.f.call(e,t),e[t])}},"07ac":function(e,t,n){var r=n("23e7"),o=n("6f53").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},"082e":function(e,t,n){"use strict";n("fb6a"),n("c19f"),n("82da"),n("ace4"),n("3410"),n("d3b7"),n("ac1f"),n("25f0"),n("3ca3"),n("5319"),n("498a"),n("ddb0"),n("2b3d");var r=n("1030"),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return"undefined"!==typeof FormData&&e instanceof FormData}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function f(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===o.call(e)}function v(e){return"[object File]"===o.call(e)}function m(e){return"[object Blob]"===o.call(e)}function _(e){return"[object Function]"===o.call(e)}function y(e){return h(e)&&_(e.pipe)}function b(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function M(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function w(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=w(e[n],t):p(t)?e[n]=w({},t):i(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)k(arguments[n],t);return e}function C(e,t,n){return k(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e}function T(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:i,isArrayBuffer:c,isBuffer:s,isFormData:u,isArrayBufferView:l,isString:d,isNumber:f,isObject:h,isPlainObject:p,isUndefined:a,isDate:g,isFile:v,isBlob:m,isFunction:_,isStream:y,isURLSearchParams:b,isStandardBrowserEnv:S,forEach:k,merge:w,extend:C,trim:M,stripBOM:T}},"093e":function(e,t,n){"use strict";n("4160"),n("c975"),n("d3b7"),n("159b");var r=n("082e"),o=n("d1ee"),i=n("ceeb"),a=n("2e2b"),s=n("803f"),c=n("ffd9"),u=n("4b3d"),l=n("b76f"),d=n("51a2"),f=n("1cb4");e.exports=function(e){return new Promise((function(t,n){var h,p=e.data,g=e.headers,v=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(p)&&delete g["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+b)}var M=s(e.baseURL,e.url);function S(){if(_){var r="getAllResponseHeaders"in _?c(_.getAllResponseHeaders()):null,i=v&&"text"!==v&&"json"!==v?_.response:_.responseText,a={data:i,status:_.status,statusText:_.statusText,headers:r,config:e,request:_};o((function(e){t(e),m()}),(function(e){n(e),m()}),a),_=null}}if(_.open(e.method.toUpperCase(),a(M,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,"onloadend"in _?_.onloadend=S:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(S)},_.onabort=function(){_&&(n(l("Request aborted",e,"ECONNABORTED",_)),_=null)},_.onerror=function(){n(l("Network Error",e,null,_)),_=null},_.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(M))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(g[e.xsrfHeaderName]=k)}"setRequestHeader"in _&&r.forEach(g,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete g[t]:_.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),v&&"json"!==v&&(_.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){_&&(n(!e||e&&e.type?new f("canceled"):e),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),p||(p=null),_.send(p)}))}},"09f0":function(e,t,n){"use strict";function r(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){o=!0,i=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(o)throw i}}return n}}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"0b25":function(e,t,n){var r=n("a691"),o=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0c47":function(e,t,n){var r=n("da84"),o=n("d44e");o(r.JSON,"JSON",!0)},"0ccb":function(e,t,n){var r=n("50c4"),o=n("1148"),i=n("1d80"),a=Math.ceil,s=function(e){return function(t,n,s){var c,u,l=String(i(t)),d=l.length,f=void 0===s?" ":String(s),h=r(n);return h<=d||""==f?l:(c=h-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)}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d21":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"0d3b":function(e,t,n){var r=n("d039"),o=n("b622"),i=n("c430"),a=o("iterator");e.exports=!r((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,r){t["delete"]("b"),n+=r+e})),i&&!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}))},1030:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"105c":function(e,t,n){"use strict";n("4160"),n("159b");var r=n("082e"),o=n("51a2");e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},"10d1":function(e,t,n){"use strict";var r,o=n("da84"),i=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,h=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,c);if(d&&f){r=c.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var v=g.prototype,m=v["delete"],_=v.has,y=v.get,b=v.set;i(v,{delete:function(e){if(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),m.call(this,e)||t.frozen["delete"](e)}return m.call(this,e)},has:function(e){if(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),_.call(this,e)||t.frozen.has(e)}return _.call(this,e)},get:function(e){if(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),_.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(u(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),_.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},1148:function(e,t,n){"use strict";var r=n("a691"),o=n("1d80");e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},1276:function(e,t,n){"use strict";var r=n("d784"),o=n("44e7"),i=n("825a"),a=n("1d80"),s=n("4840"),c=n("8aa5"),u=n("50c4"),l=n("14c3"),d=n("9263"),f=n("d039"),h=[].push,p=Math.min,g=4294967295,v=!f((function(){return!RegExp(g,"y")}));r("split",2,(function(e,t,n){var r;return r="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 r=String(a(this)),i=void 0===n?g:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);var s,c,u,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,v=new RegExp(e.source,f+"g");while(s=d.call(v,r)){if(c=v.lastIndex,c>p&&(l.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(l,s.slice(1)),u=s[0].length,p=c,l.length>=i))break;v.lastIndex===s.index&&v.lastIndex++}return p===r.length?!u&&v.test("")||l.push(""):l.push(r.slice(p)),l.length>i?l.slice(0,i):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),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var d=i(e),f=String(this),h=s(d,RegExp),m=d.unicode,_=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(v?"y":"g"),y=new h(v?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,k=[];while(S<f.length){y.lastIndex=v?S:0;var w,C=l(y,v?f:f.slice(S));if(null===C||(w=p(u(y.lastIndex+(v?0:S)),f.length))===M)S=c(f,S,m);else{if(k.push(f.slice(M,S)),k.length===b)return k;for(var T=1;T<=C.length-1;T++)if(k.push(C[T]),k.length===b)return k;S=M=w}}return k.push(f.slice(M)),k}]}),!v)},"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 r=n("23e7"),o=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:o})},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,i=n("a640"),a=n("ae40"),s=i("reduce"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"143c":function(e,t,n){var r=n("74e8");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"145e":function(e,t,n){"use strict";var r=n("7b0b"),o=n("23cb"),i=n("50c4"),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(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}},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),a=n("9112");for(var s in o){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==i)try{a(u,"forEach",i)}catch(l){u.forEach=i}}},1649:function(e,t){e.exports={version:"0.24.0"}},1750:function(e,t,n){"use strict";n("ac1f"),n("5319"),e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),a=o("forEach"),s=i("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var r=n("f8cd");e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19b0":function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("f4b3"),n("bf19"),e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1bf2":function(e,t,n){var r=n("23e7"),o=n("56ef");r({target:"Reflect",stat:!0},{ownKeys:o})},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c31":function(e,t,n){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("d81d"),n("13d5"),n("26e9"),n("fb6a"),n("45fc"),n("4e82"),n("a434"),n("c19f"),n("ace4"),n("0c47"),n("23dc"),n("a9e3"),n("e439"),n("dbb4"),n("3410"),n("b64b"),n("131a"),n("d3b7"),n("07ac"),n("acd8"),n("e25e"),n("4ae1"),n("5d41"),n("4d63"),n("ac1f"),n("25f0"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("5cc6"),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"),n("ddb0"),n("2b3d"),function(t,r){e.exports=r(n("a7a7"),n("e143"),n("37dc"))}("undefined"!==typeof self&&self,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"0001":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"loadFontFace",(function(){return i}));var r=n("a118"),o=n("db70");function i(t,n){var r=Object(o["a"])();if(!r)return{errMsg:"loadFontFace:fail not font page"};e.publishHandler("loadFontFace",{options:t,callbackId:n},r)}e.subscribe("onLoadFontFaceCallback",(function(e){var t=e.callbackId,n=e.data;Object(r["a"])(t,n)}))}.call(this,n("0dd1"))},"00b2":function(e,t,n){},"0138":function(e,t,n){"use strict";n.r(t),function(e){var r=n("052f"),o=n("3d1f"),i=n("98be"),a=n("abbf");n.d(t,"getApp",(function(){return a["b"]})),n.d(t,"getCurrentPages",(function(){return a["c"]})),Object(r["a"])(e.on,{getApp:a["b"],getCurrentPages:a["c"]}),Object(o["a"])(e.subscribe,{getApp:a["b"],getCurrentPages:a["c"]}),t["default"]=i["a"]}.call(this,n("0dd1"))},"01d0":function(e,t,n){},"02b5":function(e,t,n){"use strict";var r=n("8e72"),o=n.n(r);o.a},"02c9":function(e,t,n){"use strict";function r(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&&i(n,e.data.staticClass,e.data.class)}}}n.d(t,"a",(function(){return c}));var o=/\s+/;function i(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,r=0;r<n.length;r++){var o=a(n[r],t);if(o)return o}}function s(e,t,n){t(e.$vnode||e._vnode)&&n.push(e);for(var r=e.$children,o=0;o<r.length;o++)s(r[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,r(e))},e.prototype.selectAllComponents=function(e){return s(this,r(e),[])}}},"02ed":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":"取消"}')},"052f":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("a741"),o=n("45db");function i(e,t){var n=e.name,r=e.arg;"postMessage"===n||uni[n](r)}function a(e,t){var n=t.getApp,a=t.getCurrentPages;function s(e){Object(r["a"])(n(),"onError",e)}function c(e){Object(r["a"])(n(),"onPageNotFound",e)}function u(e,t){var n=a().find((function(e){return e.$page.id===t}));n&&Object(r["b"])(n,"onResize",e)}function l(e,t){var n=a().find((function(e){return e.$page.id===t}));n&&(Object(o["setPullDownRefreshPageId"])(t),Object(r["b"])(n,"onPullDownRefresh"))}function d(e,t){var n=a();n.length&&Object(r["b"])(n[n.length-1],e,t)}function f(e){return function(t){d(e,t)}}function h(){Object(r["a"])(n(),"onHide"),d("onHide")}function p(e){Object(r["a"])(n(),"onShow",e);var t=a();0!==t.length&&d("onShow")}e("onError",s),e("onPageNotFound",c),e("onAppEnterBackground",h),e("onAppEnterForeground",p),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",i)}},"0554":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getLocation",(function(){return i}));var r=n("ffdc"),o=n("636c");function i(t,n){var i=t.type,a=t.altitude,s=t.isHighAccuracy,c=t.highAccuracyExpireTime,u=e,l=u.invokeCallbackHandler,d=Object(o["d"])();new Promise((function(e,t){navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){return e(t.coords)}),t,{enableHighAccuracy:s||a,timeout:c||1e5}):t(new Error("device nonsupport geolocation"))})).catch((function(){return new Promise((function(e,t){d.type===o["c"].QQ?Object(r["a"])("https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=".concat(d.key),{callback:"callback"},(function(n){if("result"in n&&n.result.location){var r=n.result.location;e({latitude:r.lat,longitude:r.lng},!0)}else t(new Error(n.message||JSON.stringify(n)))}),(function(){return t(new Error("network error"))})):d.type===o["c"].GOOGLE?uni.request({method:"POST",url:"https://www.googleapis.com/geolocation/v1/geolocate?key=".concat(d.key),success:function(n){var r=n.data;"location"in r?e({latitude:r.location.lat,longitude:r.location.lng,accuracy:r.accuracy}):t(new Error(r.error&&r.error.message||JSON.stringify(n)))},fail:function(){t(new Error("network error"))}}):t(new Error("network error"))}))})).then((function(e,t){return"WGS84"===i.toUpperCase()||d.type!==o["c"].QQ||t?e:new Promise((function(t,n){Object(r["a"])("https://apis.map.qq.com/jsapi?qt=translate&type=1&points=".concat(e.longitude,",").concat(e.latitude,"&key=").concat(d.key,"&output=jsonp&pf=jsapi&ref=jsapi"),{callback:"cb"},(function(n){if("detail"in n&&"points"in n.detail&&n.detail.points.length){var r=n.detail.points[0];t(Object.assign({},e,{longitude:r.lng,latitude:r.lat}))}else t(e)}),(function(){return t(e)}))}))})).then((function(e){l(n,Object.assign(e,{errMsg:"getLocation:ok",verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy}))})).catch((function(e){l(n,{errMsg:"getLocation:fail "+e.message})}))}}.call(this,n("0dd1"))},"0741":function(e,t,n){"use strict";var r=n("3c79"),o=n.n(r);o.a},"0758":function(e,t,n){"use strict";n.r(t),function(e){function r(t,n,r,o){var i=n.$page.id;e.publishHandler(i+"-map-"+t,{mapId:t,type:r,data:o},i)}n.d(t,"operateMapPlayer",(function(){return r}))}.call(this,n("0dd1"))},"0784":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("f2b3"),o=n("a741"),i=n("28c0");function a(e,t){var n=e.$route;e.route=n.meta.pagePath,e.options||(e.options=t);var o=Object(r["i"])(n.params,"__id__")?n.params.__id__:n.meta.id;e.__page__={id:o,path:n.path,route:n.meta.pagePath,fullPath:n.meta.isEntry?n.meta.pagePath:n.fullPath,options:t,meta:Object.assign({},n.meta)};var a=e.$router.$eventChannel||new i["a"];e.getOpenerEventChannel=function(){return a},e.$vm=e,e.$root=e,e.$holder=e.$parent.$parent,e.$mp={mpType:"page",page:e,query:{},status:""}}function s(){return{created:function(){var e=Object(r["e"])(this.$route.query);a(this,e),Object(o["b"])(this,"onLoad",e),Object(o["b"])(this,"onShow")}}}},"091a":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createIntersectionObserver",(function(){return f}));var r=n("62b5"),o=n("1634"),i=n("db70");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var u=Object(r["a"])("requestComponentObserver"),l={thresholds:[0],initialRatio:0,observeAll:!1},d=function(){function t(e,n){a(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=Object.assign({},l,n)}return c(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},Object(o["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyComponentObserver",{reqId:this.reqId},Object(o["a"])(this.component)?this.component:this.pageId)}}]),t}();function f(e,t){return e._isVue||(t=e,e=null),new d(e||Object(i["b"])("createIntersectionObserver"),t)}}.call(this,n("0dd1"))},"0998":function(e,t,n){"use strict";var r=n("927d"),o=n.n(r);o.a},"09e5":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"requestComponentInfo",(function(){return a}));var r=n("62b5"),o=n("1634"),i=Object(r["a"])("requestComponentInfo");function a(t,n,r){e.publishHandler("requestComponentInfo",{reqId:i.push(r),reqs:n},Object(o["a"])(t)?t:t.$page.id)}}.call(this,n("0dd1"))},"0baa":function(e,t,n){"use strict";n.r(t),n.d(t,"chooseFile",(function(){return i}));var r=["all","image","video"],o=["album","camera"],i={count:{type:Number,required:!1,default:100,validator:function(e,t){e<=0&&(t.count=100)}},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}},type:{type:String,required:!1,default:"all",validator:function(e,t){r.includes(e)||(t.type=r[0]),t.type="all"===t.type?t.type="*":t.type}},extension:{type:Array,default:[""],validator:function(e,t){if(0===e.length)return"param extension should not be empty."}}}},"0dd1":function(e,t,n){"use strict";n.r(t),n.d(t,"on",(function(){return c})),n.d(t,"off",(function(){return u})),n.d(t,"once",(function(){return l})),n.d(t,"emit",(function(){return d})),n.d(t,"subscribe",(function(){return f})),n.d(t,"unsubscribe",(function(){return h})),n.d(t,"subscribeHandler",(function(){return p}));var r=n("8bbf"),o=n.n(r),i=n("27a7");n.d(t,"invokeCallbackHandler",(function(){return i["a"]})),n.d(t,"removeCallbackHandler",(function(){return i["b"]}));var a=n("b865");n.d(t,"publishHandler",(function(){return a["b"]}));var s=new o.a,c=s.$on.bind(s),u=s.$off.bind(s),l=s.$once.bind(s),d=s.$emit.bind(s);function f(e,t){return c("view."+e,t)}function h(e,t){return u("view."+e,t)}function p(e,t,n){return d("view."+e,t,n)}},"0e5c":function(e,t,n){"use strict";n.r(t),n.d(t,"showTopWindow",(function(){return i})),n.d(t,"hideTopWindow",(function(){return a})),n.d(t,"showLeftWindow",(function(){return s})),n.d(t,"hideLeftWindow",(function(){return c})),n.d(t,"showRightWindow",(function(){return u})),n.d(t,"hideRightWindow",(function(){return l})),n.d(t,"getTopWindowStyle",(function(){return f})),n.d(t,"getLeftWindowStyle",(function(){return h})),n.d(t,"getRightWindowStyle",(function(){return p})),n.d(t,"setTopWindowStyle",(function(){return v})),n.d(t,"setLeftWindowStyle",(function(){return m})),n.d(t,"setRightWindowStyle",(function(){return _}));var r=n("f2b3");function o(e,t){var n=t?"show":"hide"+Object(r["c"])(e)+"Window",o=getApp();if(o){var i=o.$children[0].$refs.layout.showWindow(e,t);return i?{errMsg:"".concat(n,":fail ").concat(i)}:{}}return{errMsg:"".concat(n,":fail app not ready")}}function i(){return o("top",!0)}function a(){return o("top",!1)}function s(){return o("left",!0)}function c(){return o("left",!1)}function u(){return o("right",!0)}function l(){return o("right",!1)}function d(e){var t="get"+Object(r["c"])(e)+"WindowStyle",n=getApp();if(!n)return{errMsg:"".concat(t,":fail app not ready")};var o=n.$children[0].$refs.layout.getWindowStyle(e);return"string"===typeof o&&-1!==o.indexOf("Window not found")?{errMsg:"".concat(t,":fail ").concat(o)}:o}function f(e){return d("top")}function h(e){return d("left")}function p(e){return d("right")}function g(e,t){var n="set"+Object(r["c"])(e)+"WindowStyle",o=getApp();if(!o)return{errMsg:"".concat(n,":fail app not ready")};var i=o.$children[0].$refs.layout.setWindowStyle(e,t);return i?{errMsg:"".concat(n,":fail ").concat(i)}:{}}function v(e){return g("top",e)}function m(e){return g("left",e)}function _(e){return g("right",e)}},"0f55":function(e,t,n){"use strict";var r=n("2190"),o=n.n(r);o.a},"0f74":function(e,t,n){"use strict";function r(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 r(e,t.substr(2));for(var o=t.split("/"),i=o.length,a=0;a<i&&".."===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.d(t,"a",(function(){return r}))},1082:function(e,t,n){"use strict";n.r(t);var r=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}),e.contentPath?n("img",{attrs:{src:e.contentPath,draggable:e.draggable}}):e._e(),"widthFix"===e.mode||"heightFix"===e.mode?n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(t){return e._fixSize()}}}):e._e()],1)},o=[];function i(e){return i="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(e)}function a(e){return("undefined"===typeof navigator||i(navigator))&&"Google Inc."===navigator.vendor&&e>10&&(e=2*Math.round(e/2)),e}var s={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()}},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=a(t/this.ratio)+"px")}else if("heightFix"===this.mode){var n=e.offsetHeight;n&&(e.style.width=a(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(r){e._img=null,e.originalWidth=n.width,e.originalHeight=n.height,e._fixSize(),e.contentPath=t,e.$trigger("load",r,{width:n.width,height:n.height})},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)}}},c=s,u=(n("db18"),n("2877")),l=Object(u["a"])(c,r,o,!1,null,null,null);t["default"]=l.exports},"10a3":function(e,t,n){"use strict";n.r(t);var r=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}})])},o=[],i=n("8af1");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(){function e(){a(this,e),this._instance=null,this._adConfig=null,this._isLoading=!1,this._lastError=null,this._callbacks=[]}return c(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),c(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,r){if(e.IC++,null!=this._adConfig)return this._doCallback(t,n,r),void(this.isExpired&&this._loadAdConfig(t));this._callbacks.push({adpid:t,success:n,fail:r}),this._loadAdConfig(t)}},{key:"_doCallback",value:function(t,n,r){e.IS++;var o=this._adConfig,i=o.a,a=o.b;i[t]?n(a,i[t]):r(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 r=n.data;t._adConfig=r,t._setConfig(r),t._callbacks.forEach((function(e){var n=e.adpid,r=e.success,o=e.fail;t._doCallback(n,r,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}();u(l,"IC",0),u(l,"IS",0),Object.assign(l.prototype,{URL:"https://hac1.dcloud.net.cn/ah5",KEY:"uni_app_ad_config",CACHE_TIME:6e5,ERROR_INVALID_ADPID:{"-5002":"invalid adpid"}});var d=function(){function e(){a(this,e),this._instance=null,this._adConfig=null,this._guid=null}return c(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e,this._instance._init()),this._instance}}]),c(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(d.prototype,{URL:"https://has1.dcloud.net.cn/ahl",KEY:"uni_app_ad_guid"});var f=function(){function e(){a(this,e),this._instance=null,this._callback={},this._cache={}}return c(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),c(e,[{key:"load",value:function(e,t,n,r){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:r}))}},{key:"loadScript",value:function(e,t){var n=this;this._cache[e]=0;var r=document.createElement("script");for(var o in r.setAttribute("id","uniad_provider"+e),t)r.setAttribute(o,t[o]);r.onload=function(){n._cache[e]=1,n._callback[e].forEach((function(e){var t=e.success;t()})),n._callback[e].length=0},r.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(r)}}]),e}(),h=function(){function e(){a(this,e),this._instance=null,this._callback={},this._cache={},window.TencentGDT=window.TencentGDT||[]}return c(e,null,[{key:"instance",get:function(){return null==this._instance&&(this._instance=new e),this._instance}}]),c(e,[{key:"load",value:function(e,t,n,r){var o=this;this._callback[t]||(this._callback[t]=[]),this._callback[t].push({success:n,fail:r}),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 r=n.success,i=n.fail;e&&Array.isArray(e)&&e.length?r(e[0]):i(e),o._callback[t].length=0}))}})),!0===this._cache[t].isReady&&window.TencentGDT.NATIVE.loadAd(t)}}]),e}(),p=1e3,g=5,v=750,m={name:"Ad",mixins:[i["g"]],props:{adpid:{type:[Number,String],default:""},adpidWidescreen:{type:[Number,String],default:""},widescreenWidth:{type:[Number,String],default:v}},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(),d.instance.get({h:__uniConfig.compilerVersion,a:this.adpid,at:-3,ic:l.IC,is:l.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,r=this._isWidescreen&&this.adpidWidescreen||n;l.instance.get(r,(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],r=n.script;this._currentChannel=t.a1;var o=this._randomId(),i=this._createView(o);"10010"===t.a1?f.instance.load(t.t,r,(function(){e._renderBaidu(o,t.a2)}),(function(t){e.$trigger("error",{},t)})):"10011"===t.a1?(h.instance.load(t.a3,t.a2,(function(e){window.TencentGDT.NATIVE.renderAd(e,o)})),this._startCheckTimer()):"10012"===t.a1?this._renderScript(i,r):"10014"===t.a1?f.instance.load(t.t,r,(function(){e._renderShanhu(o,t.tt,t.tar)}),(function(t){e.$trigger("error",{},t)})):f.instance.load(t.t,r,(function(){e._renderAdView(o,r.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 r in t)n.setAttribute(r,t[r]);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 r=window;t.split(".").reduce((function(e,t){return r=e,e[t]}),window).bind(r)(n.a2,e,2),this._startCheckTimer()},_renderShanhu:function(e,t,n){var r=this;this._shanhuAd=new window.CoralTBSAdv(e,{type:t,target:n,advShowCb:function(){r._report(42),r.$trigger("load",{},{})},advClickCb:function(){r._report(43),r.$trigger("adclicked",{},{})},advCloseCb:function(){r.$trigger("close",{},{})},advErrorCb:function(e){r.$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>=g)return e._clearCheckTimer(),void e._renderNext();e._checkRender()&&e._clearCheckTimer()}),p)},_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),d.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}}},_=m,y=(n("e4bc"),n("2877")),b=Object(y["a"])(_,r,o,!1,null,null,null);t["default"]=b.exports},1164:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n("a6b0"),o=n("23e5"),i=!1;function a(){return i}function s(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],o=a();if(!o)return n&&e.error("app is not ready"),[];var i=o.$children[0];if(i&&i.$children.length){var s=i.$children.find((function(e){return"TabBar"===e.$options.name})),c=i.$children.find((function(e){return"Layout"===e.$options.name}));c&&(i=c),i.$children.forEach((function(e){if(s!==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})),i=n&&n.$children.find((function(e){return!!e.$page}));if(i){var a=!0;!t&&s&&i.$page&&i.$page.meta.isTabBar&&(o.$route.meta&&o.$route.meta.isTabBar?o.$route.path!==i.$page.path&&(a=!1):s.__path__!==i.$page.path&&(a=!1)),a&&r.push(i)}}}))}var u=r.length;if(u>1){var l=r[u-1];l.$page.path!==o.$route.path&&r.splice(u-1,1)}return r}function c(e,t,n){i=t,i.$vm=t,i.globalData=i.$options.globalData||{},Object(r["d"])(e,i),Object(o["a"])(i,n)}}).call(this,n("3ad9")["default"])},"11fb":function(e,t,n){"use strict";n.r(t),n.d(t,"previewImage",(function(){return o}));var r=n("cb0f"),o={urls:{type:Array,required:!0,validator:function(e,t){var n;if(t.urls=e.map((function(e){if("string"===typeof e)return Object(r["a"])(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=Object(r["a"])(e))},default:0}}},1307:function(e,t,n){},1348:function(e,t,n){"use strict";(function(e){var r=n("8af1"),o=["navigate","redirect","switchTab","reLaunch","navigateBack"];t["a"]={name:"Navigator",mixins:[r["c"]],props:{hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:function(e){return~o.indexOf(e)}},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""}},methods:{_onClick:function(t){if("navigateBack"===this.openType||this.url)switch(this.openType){case"navigate":uni.navigateTo({url:this.url});break;case"redirect":uni.redirectTo({url:this.url,exists:this.exists});break;case"switchTab":uni.switchTab({url:this.url});break;case"reLaunch":uni.reLaunch({url:this.url});break;case"navigateBack":uni.navigateBack({delta:this.delta});break;default:break}else e.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab")}}}}).call(this,n("3ad9")["default"])},"15bb":function(e,t,n){"use strict";(function(e){var r=n("f2b3");t["a"]={mounted:function(){var t=this;if("transparent"===this.type){for(var n=this.$el.querySelector(".uni-page-head-transparent").style,r=this.$el.querySelector(".uni-page-head__title"),o=this.$el.querySelectorAll(".uni-btn-icon"),i=[],a=this.textColor,s=0;s<o.length;s++)i.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?i.forEach((function(e){e.color=a})):s<=.5&&t._A>.5&&i.forEach((function(e){e.color="#fff"})),t._A=s,r&&(r.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],r=n.match(/[\d+\.]+/g);r[3]=(1-s)*(4===r.length?r[3]:1),e.backgroundColor="rgba(".concat(r,")")})))}))}else if("float"===this.type){for(var h=this.$el.querySelectorAll(".uni-btn-icon"),p=[],g=0;g<h.length;g++)p.push(h[g].style);for(var v=this.$el.querySelectorAll(".uni-page-head-btn"),m=[],_=[],y=0;y<v.length;y++){var b=v[y];m.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=Object(r["j"])(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}}}}).call(this,n("501c"))},"15ff":function(e,t,n){},1634:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["VUniLeftWindow","VUniTopWindow","VUniRightWindow"];function o(e){while(e){if(-1!==r.indexOf(e.$options.name))return!0;e=e.$parent}}},"167a":function(e,t,n){"use strict";var r=n("5d70"),o=n.n(r);o.a},"17fd":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hoverClass&&"none"!==e.hoverClass?n("uni-navigator",e._g({class:[e.hovering?e.hoverClass:""],on:{touchstart:e._hoverTouchStart,touchend:e._hoverTouchEnd,touchcancel:e._hoverTouchCancel,click:e._onClick}},e.$listeners),[e._t("default")],2):n("uni-navigator",e._g({on:{click:e._onClick}},e.$listeners),[e._t("default")],2)},o=[],i=n("1348"),a=i["a"],s=(n("f7fd"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},"18fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,o=/^<\/([-A-Za-z0-9_]+)[^>]*>/,i=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,a=h("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),s=h("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),c=h("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),u=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),l=h("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),d=h("script,style");function f(e,t){var n,f,h,p=[],g=e;p.last=function(){return this[this.length-1]};while(e){if(f=!0,p.last()&&d[p.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+p.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),_("",p.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"),n>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),f=!1)):0==e.indexOf("</")?(h=e.match(o),h&&(e=e.substring(h[0].length),h[0].replace(o,_),f=!1)):0==e.indexOf("<")&&(h=e.match(r),h&&(e=e.substring(h[0].length),h[0].replace(r,m),f=!1)),f){n=e.indexOf("<");var v=n<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(v)}if(e==g)throw"Parse Error: "+e;g=e}function m(e,n,r,o){if(n=n.toLowerCase(),s[n])while(p.last()&&c[p.last()])_("",p.last());if(u[n]&&p.last()==n&&_("",n),o=a[n]||!!o,o||p.push(n),t.start){var d=[];r.replace(i,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:l[t]?t:"";d.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,d,o)}}function _(e,n){if(n){for(r=p.length-1;r>=0;r--)if(p[r]==n)break}else var r=0;if(r>=0){for(var o=p.length-1;o>=r;o--)t.end&&t.end(p[o]);p.length=r}}_()}function h(e){for(var t={},n=e.split(","),r=0;r<n.length;r++)t[n[r]]=!0;return t}},1934:function(e,t,n){"use strict";n.r(t),n.d(t,"setNavigationBarColor",(function(){return o})),n.d(t,"setNavigationBarTitle",(function(){return i}));var r=["#ffffff","#000000"],o={frontColor:{type:String,required:!0,validator:function(e,t){if(-1===r.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"}}}},i={title:{type:String,required:!0}}},1955:function(e,t,n){"use strict";n.r(t);var r=n("ba15"),o=n("8aec"),i=n("5363"),a=n("72b3"),s=n("d4cd");function c(e){var t=20,n=0,r=0;e.addEventListener("touchstart",(function(e){var t=e.changedTouches[0];n=t.clientX,r=t.clientY})),e.addEventListener("touchend",(function(e){var o=e.changedTouches[0];if(Math.abs(o.clientX-n)<t&&Math.abs(o.clientY-r)<t){var i=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){i[e]=o[e]})),e.target.dispatchEvent(i)}}))}var u,l,d={name:"PickerViewColumn",mixins:[r["a"],o["a"]],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()})),c(this.$el),Object(s["b"])();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),Object(s["a"])({disable:!0});break;case"move":this._handleTouchMove(e),e.stopPropagation();break;case"end":case"cancel":this._handleTouchEnd(e),Object(s["a"])({disable:!1})}},_handleTap:function(e){var t=e.clientY;if(!this._scroller.isScrolling()){var n=this.$el.getBoundingClientRect(),r=t-n.top-this.height/2,o=this.indicatorHeight/2;if(!(Math.abs(r)<=o)){var i=Math.ceil((Math.abs(r)-o)/this.indicatorHeight),a=r<0?-i:i,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 i["a"](1e-4),spring:new a["a"](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])])])}},f=d,h=(n("edfa"),n("2877")),p=Object(h["a"])(f,u,l,!1,null,null,null);t["default"]=p.exports},"19c4":function(e,t,n){var r={"./base/base64.js":"6481","./base/can-i-use.js":"957a","./base/event-bus.js":"b0ef","./base/interceptor.js":"a954","./base/upx2px.js":"2289","./context/canvas.js":"82b9","./context/context.js":"3bfb","./device/make-phone-call.js":"f102","./device/scan-code.js":"ea0f","./device/set-clipboard-data.js":"b501","./file/file.js":"2da2","./file/open-document.js":"2604","./location/choose-location.js":"e5bb","./location/get-location.js":"19d9","./location/open-location.js":"70bb","./media/choose-file.js":"0baa","./media/choose-image.js":"f1b2","./media/choose-video.js":"ed9f","./media/compress-image.js":"dc12","./media/compress-video.js":"5243","./media/get-image-info.js":"b866","./media/get-video-info.js":"3f15","./media/preview-image.js":"11fb","./media/save-image-to-photos-album.js":"4f53","./network/download-file.js":"439a","./network/request.js":"a201","./network/socket.js":"abb2","./network/upload-file.js":"9a3e","./plugin/get-provider.js":"4e7c","./plugin/load-sub-package.js":"d013","./plugin/pre-login.js":"f68f","./route/route.js":"332a","./storage/storage.js":"ec33","./ui/load-font-face.js":"5ff9","./ui/navigation-bar.js":"1934","./ui/page-scroll-to.js":"232e","./ui/popup.js":"2246","./ui/tab-bar.js":"5621"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="19c4"},"19d9":function(e,t,n){"use strict";n.r(t),n.d(t,"getLocation",(function(){return o}));var r=["wgs84","gcj02"],o={type:{type:String,validator:function(e,t){e=(e||"").toLowerCase(),t.type=r.indexOf(e)<0?r[0]:e}},altitude:{type:Boolean,default:!1}}},"1a12":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"request",(function(){return l}));var r=n("f2b3");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){function e(t){o(this,e),s(this,"_xhr",void 0),this._xhr=t}return a(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 r=n[1],o=n[2];t[r]=o}})),t}function l(t,n){var o,i=t.url,a=t.data,s=t.header,l=t.method,d=t.dataType,f=t.responseType,h=t.withCredentials,p=t.timeout,g=void 0===p?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:p,v=e,m=v.invokeCallbackHandler,_=null;for(var y in s)if(Object(r["i"])(s,y)&&"content-type"===y.toLowerCase()){o=s[y],o=0===o.indexOf("application/json")?"json":0===o.indexOf("application/x-www-form-urlencoded")?"urlencoded":"string";break}if("GET"!==l)if("string"===typeof a||a instanceof ArrayBuffer)_=a;else if("json"===o)try{_=JSON.stringify(a)}catch(T){_=a.toString()}else if("urlencoded"===o){var b=[];for(var M in a)Object(r["i"])(a,M)&&b.push(encodeURIComponent(M)+"="+encodeURIComponent(a[M]));_=b.join("&")}else _=a.toString();var S=new XMLHttpRequest,k=new c(S);for(var w in S.open(l,i),s)Object(r["i"])(s,w)&&S.setRequestHeader(w,s[w]);var C=setTimeout((function(){S.onload=S.onabort=S.onerror=null,k.abort(),m(n,{errMsg:"request:fail timeout"})}),g);return S.responseType=f,S.onload=function(){clearTimeout(C);var e=S.status,t="text"===f?S.responseText:S.response;if("text"===f&&"json"===d)try{t=JSON.parse(t)}catch(T){}m(n,{data:t,statusCode:e,header:u(S.getAllResponseHeaders()),errMsg:"request:ok"})},S.onabort=function(){clearTimeout(C),m(n,{errMsg:"request:fail abort"})},S.onerror=function(){clearTimeout(C),m(n,{errMsg:"request:fail"})},S.withCredentials=h,S.send(_),k}}.call(this,n("0dd1"))},"1a8c":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"redirectTo",(function(){return c})),n.d(t,"navigateTo",(function(){return u})),n.d(t,"navigateBack",(function(){return l})),n.d(t,"reLaunch",(function(){return d})),n.d(t,"switchTab",(function(){return f})),n.d(t,"preloadPage",(function(){return h}));var r=n("85b6"),o=n("d65e"),i=e,a=i.invokeCallbackHandler;function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,i=t.delta,a=t.events,c=t.exists,u=t.animationType,l=t.animationDuration,d=t.from,f=void 0===d?"navigateBack":d,h=t.detail,p=getApp().$router;switch(delete p.$eventChannel,e){case"redirectTo":if("back"===c){var g=Object(r["a"])(n);if(-1!==g){var v=getCurrentPages().length-1-g;if(v>0)return s("navigateBack",{delta:v})}}p.replace({type:e,path:n});break;case"navigateTo":return p.$eventChannel=Object(o["a"])(a),p.push({type:e,path:n,animationType:u,animationDuration:l}),{errMsg:e+":ok",eventChannel:p.$eventChannel};case"navigateBack":var m=!0,_=getCurrentPages();if(_.length){var y=_[_.length-1];Object(r["c"])(y.$options,"onBackPress")&&!0===y.__call_hook("onBackPress",{from:f})&&(m=!1)}m&&(i>1&&(p._$delta=i),p.go(-i,{animationType:u,animationDuration:l}));break;case"reLaunch":p.replace({type:e,path:n});break;case"switchTab":p.replace({type:e,path:n,params:{detail:h}});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 h(e,t){var n=e.url,r=n.split("?")[0].replace(/\//g,"-");__uniConfig.__webpack_chunk_load__(r.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("0dd1"))},"1b6f":function(e,t,n){"use strict";(function(e){var r=n("f2b3");t["a"]={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||Object(r["k"])(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}}}}}).call(this,n("501c"))},"1c64":function(e,t,n){"use strict";var r=n("60ee"),o=n.n(r);o.a},"1c73":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r={},o={};function i(e){for(var t=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"],r=0,o=n;r<o.length;r++){var i=o[r];"orientation"!==i&&""!==e[i]&&Number(e[i])>=0&&t.push("(".concat(a(i),": ").concat(Number(e[i]),"px)")),"orientation"===i&&e[i]&&t.push("(".concat(a(i),": ").concat(e[i],")"))}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=r[n]=window.matchMedia(i(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,i=o[n],a=r[n];a&&(a.removeListener(i),delete r[n],e.publishHandler("onRequestMediaQueryObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"))},"1ca3":function(e,t,n){"use strict";n.r(t),n.d(t,"base64ToArrayBuffer",(function(){return o})),n.d(t,"arrayBufferToBase64",(function(){return i}));var r=n("8390");function o(e){return Object(r["decode"])(e)}function i(e){return Object(r["encode"])(e)}},"1e4d":function(e,t,n){"use strict";function r(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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.r(t),n.d(t,"createAnimation",(function(){return d}));var a={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"},s=function(){function e(t){r(this,e),this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=Object.assign({},a,t)}return i(e,[{key:"_getOption",value:function(e){var t={transition:Object.assign({},this.option,e)};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}},{key:"_pushAnimates",value:function(e,t){this.currentStepAnimates.push({type:e,args:t})}},{key:"_converType",value:function(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())}))}},{key:"_getValue",value:function(e){return"number"===typeof e?"".concat(e,"px"):e}},{key:"export",value:function(){var e=this.actions;return this.actions=[],{actions:e}}},{key:"step",value:function(e){var t=this;return this.currentStepAnimates.forEach((function(e){"style"!==e.type?t.currentTransform[e.type]=e:t.currentTransform["".concat(e.type,".").concat(e.args[0])]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}]),e}(),c=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],u=["opacity","backgroundColor"],l=["width","height","left","right","top","bottom"];function d(e){return new s(e)}c.concat(u,l).forEach((function(e){s.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u.concat(l).includes(e)?this._pushAnimates("style",[this._converType(e),l.includes(e)?this._getValue(n[0]):n[0]]):this._pushAnimates(e,n),this}}))},"1efd":function(e,t,n){"use strict";n.r(t);var r=n("8bbf"),o=n.n(r),i=n("cb0f"),a=n("d4b6"),s={methods:{$getRealPath:function(e){return e?Object(i["a"])(e):e},$trigger:function(e,t,n){this.$emit(e,a["b"].call(this,e,t,n,this.$el,this.$el))}}};function c(e){return f(e)||d(e)||l(e)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return h(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)?h(e,t):void 0}}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(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 g(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})).replace("webkit","-webkit")}function v(e){var t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],r=["opacity","background-color"],o=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,u={},l=[];return i.forEach((function(e){var i=e.type,a=c(e.args);if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((function(e){return parseFloat(e)+"deg"})):i.startsWith("translate")&&(a=a.map(p)),n.indexOf(i)>=0&&(a.length=1),l.push("".concat(i,"(").concat(a.join(","),")"));else if(r.concat(o).includes(a[0])){i=a[0];var s=a[1];u[i]=o.includes(i)?p(s):s}})),u.transform=u.webkitTransform=l.join(" "),u.transition=u.webkitTransition=Object.keys(u).map((function(e){return"".concat(g(e)," ").concat(s.duration,"ms ").concat(s.timingFunction," ").concat(s.delay,"ms")})).join(","),u.transformOrigin=u.webkitTransformOrigin=a.transformOrigin,u}function m(e){var t=e.animation;if(t&&t.actions&&t.actions.length){var n=0,r=t.actions,o=t.actions.length;setTimeout((function(){i()}),0)}function i(){var t=r[n],a=t.option.transition,s=v(t);Object.keys(s).forEach((function(t){e.$el.style[t]=s[t]})),n+=1,n<o&&setTimeout(i,a.duration+a.delay)}}var _={props:["animation"],watch:{animation:function(){m(this)}},mounted:function(){m(this)}},y=[n("5408"),n("93a5")];y.forEach((function(e,t){e.keys().forEach((function(t){var n=e(t),r=n.default||n;r.mixins=r.mixins?[].concat(s,r.mixins):[s],r.mixins.push(_),r.name="VUni"+r.name,r.isReserved=!0,o.a.component(r.name,r)}))}))},"1ff3":function(e,t,n){"use strict";n.r(t),n.d(t,"uploadFile",(function(){return l}));var r=n("a118"),o=n("db70");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var c=function(){function e(t,n){i(this,e),this.id=t,this._callbackId=n,this._callbacks=[]}return s(e,[{key:"abort",value:function(){Object(o["c"])("operateUploadTask",{uploadTaskId:this.id,operationType:"abort"})}},{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"onHeadersReceived",value:function(){}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"offHeadersReceived",value:function(){}}]),e}(),u=Object.create(null);function l(e,t){var n=Object(o["c"])("createUploadTask",e),r=n.uploadTaskId,i=new c(r,t);return u[r]=i,i}Object(o["d"])("onUploadTaskStateChange",(function(e){var t=e.uploadTaskId,n=e.state,o=e.data,i=e.statusCode,a=e.progress,s=e.totalBytesSent,c=e.totalBytesExpectedToSend,l=e.errMsg,d=u[t],f=d._callbackId;switch(n){case"progressUpdate":d._callbacks.forEach((function(e){e({progress:a,totalBytesSent:s,totalBytesExpectedToSend:c})}));break;case"success":Object(r["a"])(f,{data:o,statusCode:i,errMsg:"request:ok"});case"fail":Object(r["a"])(f,{errMsg:"request:fail "+l});default:setTimeout((function(){delete u[t]}),100);break}}))},2190:function(e,t,n){},2209: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":"取消"}')},2246:function(e,t,n){"use strict";n.r(t),n.d(t,"showModal",(function(){return i})),n.d(t,"showToast",(function(){return a})),n.d(t,"showLoading",(function(){return s})),n.d(t,"showActionSheet",(function(){return c}));var r=n("a6b0"),o=n("cb0f"),i={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:function(){return Object(r["g"])("uni.showModal.cancel")}},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:function(){return Object(r["g"])("uni.showModal.confirm")}},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},a={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=Object(o["a"])(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},s={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},c={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}}},2289:function(e,t,n){"use strict";n.r(t),n.d(t,"upx2px",(function(){return r}));var r=[{name:"upx",type:[Number,String],required:!0}]},"232e":function(e,t,n){"use strict";n.r(t),n.d(t,"pageScrollTo",(function(){return r}));var r={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator:function(e,t){t.duration=Math.max(0,e)}}}},2399:function(e,t,n){},"23e5":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return g}));var r=n("a741");function o(e){-1===this.keepAliveInclude.indexOf(e)&&this.keepAliveInclude.push(e)}var i=[];function a(e){if("number"===typeof e)i=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(),i=o.length-1;i>=0;i--){var s=o[i],c=s.$page.meta;c.isTabBar||(a.call(this,c.name+"-"+s.$page.id),Object(r["b"])(s,"onUnload"))}}function d(e){__uniConfig.reLaunch=(__uniConfig.reLaunch||1)+1;for(var t=getCurrentPages(!0),n=t.length-1;n>=0;n--)Object(r["b"])(t[n],"onUnload"),t[n].$destroy();this.keepAliveInclude=[],s=Object.create(null)}var f=[];function h(e,t,n,r){f=getCurrentPages(!0);var i=t.params.__id__,s=e.params.__id__,c=e.meta.name+"-"+s;if(s===i&&"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+"-"+i;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,r,e,t);break;case"reLaunch":d.call(this,c),e.meta.isQuit=!0;break;default:i&&i>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 h="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.meta.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(h,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(h))}n()}}function p(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){Object(r["b"])(e,"onUnload");var t=f.indexOf(e);t>=0&&f.splice(t,1)}}switch(t.type){case"navigateTo":s&&Object(r["b"])(s,"onHide");break;case"redirectTo":c(s);break;case"switchTab":n.meta.isTabBar&&s&&Object(r["b"])(s,"onHide");break;case"reLaunch":break;default:o&&o>a&&(c(s),this.$router._$delta>1&&i.reverse().forEach((function(e){var t=f.find((function(t){return t.$page.id===e}));c(t)})));break}if(delete this.$router._$delta,i.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),Object(r["b"])(u,"onShow")}),0),document.title=u.$parent.$parent.navigationBar.titleText)}}function g(e,t){e.$router.beforeEach((function(n,r,o){h.call(e,n,r,o,t)})),e.$router.afterEach((function(t,n){p.call(e,t,n)}))}}).call(this,n("0dd1"))},"24d9":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=n("f2b3");function o(e){return 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},o(e)}function i(e){return e.mp=Object.assign({"@warning":"mp is deprecated"},e),e._processed=!0,e}function a(e,t){return Object(r["l"])(t)&&(Object(r["i"])(t,"backgroundColor")&&(e.backgroundColor=t.backgroundColor),Object(r["i"])(t,"buttons")&&(e.buttons=t.buttons),Object(r["i"])(t,"titleColor")&&(e.textColor=t.titleColor),Object(r["i"])(t,"titleText")&&(e.titleText=t.titleText),Object(r["i"])(t,"titleSize")&&(e.titleSize=t.titleSize),Object(r["i"])(t,"type")&&(e.type=t.type),Object(r["i"])(t,"searchInput")&&"object"===o(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}},"250d":function(e,t,n){"use strict";n.r(t);var r=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)},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)},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,r=t.target,o=!!r.checked;if(Array.isArray(n)){var i=null,a=e._i(n,i);r.checked?a<0&&(e.valueSync=n.concat([i])):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)},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()])])},o=[],i=n("8af1"),a=n("f2b3"),s=["text","number","idcard","digit","password","tel"],c=["number","digit"],u=["off","one-time-code"],l={name:"Input",mixins:[i["b"]],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:""}},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=~s.indexOf(this.type)?this.type:"text";break}return this.password?"password":e},step:function(){return~c.indexOf(this.type)?"0.000000000000000001":""},autocomplete:function(){var e=u.indexOf(this.textContentType),t=u.indexOf(Object(a["n"])(this.textContentType)),n=-1!==e?e:-1!==t?t:0;return u[n]}},watch:{maxlength:function(e){var t=this.valueSync.slice(0,parseInt(e,10));t!==this.valueSync&&(this.valueSync=t)}},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,r=!1;if(!this.composing){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,r=!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 i=this.__clearCachedValue=function(){n.cachedValue=""};return void e.target.addEventListener("blur",i)}return void(this.cachedValue=this.valueSync=e.target.value="-"===this.cachedValue?"":this.cachedValue)}this.cachedValue=this.valueSync}r||this.$triggerInput(e,{value:this.valueSync},t)}},_onComposition:function(e){"compositionstart"===e.type?this.composing=!0:this.composing&&(this.composing=!1,this._onInput(e))},_resetFormData:function(){this.valueSync=""},_getFormData:function(){return this.name?{value:this.valueSync,key:this.name}:{}}}},d=l,f=(n("0f55"),n("2877")),h=Object(f["a"])(d,r,o,!1,null,null,null);t["default"]=h.exports},"25ce":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-checkbox-group",e._g({},e.$listeners),[e._t("default")],2)},o=[],i=n("8af1"),a={name:"CheckboxGroup",mixins:[i["a"],i["f"]],props:{name:{type:String,default:""}},data:function(){return{checkboxList:[]}},listeners:{"@checkbox-change":"_changeHandler","@checkbox-group-update":"_checkboxGroupUpdateHandler"},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){var t=[];this.checkboxList.forEach((function(e){e.checkboxChecked&&t.push(e.value)})),this.$trigger("change",e,{value:t})},_checkboxGroupUpdateHandler:function(e){if("add"===e.type)this.checkboxList.push(e.vm);else{var t=this.checkboxList.indexOf(e.vm);this.checkboxList.splice(t,1)}},_getFormData:function(){var e={};if(""!==this.name){var t=[];this.checkboxList.forEach((function(e){e.checkboxChecked&&t.push(e.value)})),e.value=t,e.key=this.name}return e}}},s=a,c=(n("0998"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},2604:function(e,t,n){"use strict";n.r(t),n.d(t,"openDocument",(function(){return r}));var r={filePath:{type:String,required:!0},fileType:{type:String}}},2608:function(e,t,n){"use strict";(function(e){function r(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}function o(t){return function(){try{return t.apply(t,arguments)}catch(n){e.error(n)}}}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))}).call(this,n("3ad9")["default"])},2765:function(e,t,n){"use strict";var r=n("3590"),o=n.n(r);o.a},"27a7":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return S}));var r=n("f2b3"),o=n("2608"),i=n("ed1a"),a=n("cc76"),s=n("de29");function c(e,t,n){var r="".concat(t,":fail ").concat(e);if(-1===n)throw new Error(r);return"number"===typeof n&&_(n,{errMsg:r}),!1}var u=[{name:"callback",type:Function,required:!0}],l=["beforeValidate","beforeAll","beforeSuccess"];function d(e,t,n){var o=a["a"][e];if(!o&&Object(i["a"])(e)&&(o=u),o){if(Array.isArray(o)&&Array.isArray(t)){var d=Object.create(null),f=Object.create(null),h=t.length;o.forEach((function(e,n){d[e.name]=e,h>n&&(f[e.name]=t[n])})),o=d,t=f}if(Object(r["k"])(o.beforeValidate)){var p=o.beforeValidate(t);if(p)return c(p,e,n)}for(var g=Object.keys(o),v=0;v<g.length;v++)if(-1===l.indexOf(g[v])){var m=Object(s["a"])(g[v],o,t);if(m)return c(m,e,n)}}return!0}var f=1,h={};function p(e,t){var n=f++,r="api."+e+"."+n;return h[n]={name:r,keepAlive:!0,callback:t},n}function g(e,t){for(var n in h){var r=h[n];if(r.name.startsWith("api."+e.replace(/^off/,"on"))&&r.callback===t)return delete h[n],Number(n)}return"fail"}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Object(r["l"])(t))return{params:t};t=Object.assign({},t);var i={};for(var a in t){var s=t[a];Object(r["k"])(s)&&(i[a]=Object(o["a"])(s),delete t[a])}var c=i.success,u=i.fail,l=i.cancel,d=i.complete,p=Object(r["k"])(c),g=Object(r["k"])(u),v=Object(r["k"])(l),m=Object(r["k"])(d);if(!p&&!g&&!v&&!m)return{params:t};var _={};for(var y in n){var b=n[y];Object(r["k"])(b)&&(_[y]=Object(o["b"])(b))}var M=_.beforeSuccess,S=_.afterSuccess,k=_.beforeFail,w=_.afterFail,C=_.beforeCancel,T=_.afterCancel,I=_.beforeAll,A=_.afterAll,E=f++,O="api."+e+"."+E,D=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 o="",i=n.errMsg.indexOf(" ");i>-1&&(o=n.errMsg.substr(i)),n.errMsg=e+":fail"+o}Object(r["k"])(I)&&I(n);var a=n.errMsg;0===a.indexOf(e+":ok")?(Object(r["k"])(M)&&M(n,t),p&&c(n),Object(r["k"])(S)&&S(n)):0===a.indexOf(e+":cancel")?(n.errMsg=n.errMsg.replace(e+":cancel",e+":fail cancel"),g&&u(n),Object(r["k"])(C)&&C(n),v&&l(n),Object(r["k"])(T)&&T(n)):0===a.indexOf(e+":fail")&&(Object(r["k"])(k)&&k(n),g&&u(n),Object(r["k"])(w)&&w(n)),m&&d(n),Object(r["k"])(A)&&A(n)};return h[E]={name:O,callback:D},{params:t,callbackId:E}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=v(e,t,n),i=o.params,a=o.callbackId;return Object(r["l"])(i)&&!d(e,i,a)?{params:i,callbackId:!1}:{params:i,callbackId:a}}function _(e,t,n){if("number"===typeof e){var r=h[e];if(r)return r.keepAlive||delete h[e],r.callback(t,n)}return t}function y(e){delete h[e]}function b(t){return function(n){e.error("API `"+t+"` is not yet implemented")}}function M(e,t){var n=a["a"][e];n&&(Object(r["k"])(n.beforeAll)&&(t.beforeAll=n.beforeAll),Object(r["k"])(n.beforeSuccess)&&(t.beforeSuccess=n.beforeSuccess))}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(r["k"])(t)?(M(e,n),function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];if(Object(i["b"])(e)){if(d(e,a,-1))return t.apply(null,a)}else if(Object(i["a"])(e)){if(d(e,a,-1))return t((e.startsWith("off")?g:p)(e,a[0]))}else{var c={};a.length&&(c=a[0]);var u,l=m(e,c,n),f=l.params,h=l.callbackId;if(!1!==h)return u=Object(r["k"])(f)?t(h):t(f,h),u&&!Object(i["c"])(e)&&(u=_(h,u),Object(r["l"])(u)&&(u.errMsg=u.errMsg||e+":ok")),u}}):t}}).call(this,n("3ad9")["default"])},"27ab":function(e,t,n){"use strict";n.r(t);var r=n("f2b3");function o(e){return c(e)||s(e)||a(e)||i()}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.")}function a(e,t){if(e){if("string"===typeof e)return u(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)?u(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,d,f={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:o(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),r=this.valueSync[n];r!==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&&Object(r["f"])(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)])}},h=f,p=(n("6062"),n("2877")),g=Object(p["a"])(h,l,d,!1,null,null,null);t["default"]=g.exports},"27c2":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-editor",e._g({staticClass:"ql-container",attrs:{id:e.id}},e.$listeners))},o=[],i=n("8188"),a=i["a"],s=(n("e298"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},"27d0":function(e,t,n){"use strict";(function(e){var r=n("85b6"),o=n("a6b0"),i=n("65a8"),a=n("f2b3"),s=n("24d9"),c=n("2d02"),u=n("a402"),l=n("90f7"),d=n("be12"),f=n("d8c8"),h=n.n(f);function p(e){return p="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},p(e)}t["a"]={name:"Page",mpType:"page",components:{PageHead:c["a"],PageBody:u["a"],PageRefresh:l["a"]},mixins:[d["a"]],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&&!Object(a["l"])(n)||"always"===this.transparentTitle&&!Object(a["l"])(n)?{type:"none"}:Object.assign({},{type:"custom"===this.navigationStyle?"none":"default"},this.transparentTitle in t?{type:t[this.transparentTitle]}:null,"object"===p(n)?n:"boolean"===typeof n?{type:n?"default":"none"}:null);var c={YES:!0,NO:!1};e=Object(s["a"])({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:c[this.titlePenetrate]},n),e.shadow=this.navigationBarShadow,Object(o["e"])(e);var u=Object.assign({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},this.pullToRefresh),l=Object(r["e"])(u.offset);return"none"!==n.type&&"transparent"!==n.type&&(l+=i["a"]+h.a.top),u.offset=l,u.height=Object(r["e"])(u.height),u.range=Object(r["e"])(u.range),{navigationBar:e,refreshOptions:u}},created:function(){var t=this.navigationBar;document.title=t.titleText,e.emit("onNavigationBarChange",t)}}}).call(this,n("0dd1"))},2877:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=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)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},2883:function(e,t,n){},"28c0":function(e,t,n){"use strict";function r(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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,"a",(function(){return a}));var a=function(){function e(t,n){var o=this;r(this,e),this.id=t,this.listener={},this.emitCache={},n&&Object.keys(n).forEach((function(e){o.on(e,n[e])}))}return i(e,[{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var 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 r=0;r<n.length;)n[r].fn===t&&(n.splice(r,1),r--),r++;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}()},"28da":function(e,t,n){},"29a2":function(e,t,n){},"2bbe":function(e,t,n){"use strict";n.r(t);var r=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}},e.$listeners),[e._t("default")],2):n("uni-view",e._g({},e.$listeners),[e._t("default")],2)},o=[],i=n("83a6"),a={name:"View",mixins:[i["a"]],listeners:{"label-click":"clickHandler"}},s=a,c=(n("e865"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},"2bdd":function(e,t,n){"use strict";n.r(t),function(e){var r;n.d(t,"startAccelerometer",(function(){return i})),n.d(t,"stopAccelerometer",(function(){return a})),n.d(t,"onAccelerometerChange",(function(){return s})),n.d(t,"offAccelerometerChange",(function(){return c}));var o=[];function i(t,n){var i=e,a=i.invokeCallbackHandler;if(!window.DeviceMotionEvent)return{errMsg:"startAccelerometer:fail"};function s(){r=function(e){var t=e.acceleration||e.accelerationIncludingGravity;o.forEach((function(e){a(e,{x:t.x||0,y:t.y||0,z:t.z||0})}))},window.addEventListener("devicemotion",r,!1)}if(!r){if(DeviceMotionEvent.requestPermission)return void DeviceMotionEvent.requestPermission().then((function(e){"granted"===e?(s(),a(n,{errMsg:"startAccelerometer:ok"})):a(n,{errMsg:"startAccelerometer:fail ".concat(e)})})).catch((function(e){a(n,{errMsg:"startAccelerometer:fail ".concat(e)})}));s()}return{}}function a(){return r&&(window.removeEventListener("devicemotion",r,!1),r=null),{}}function s(e){o.length||i(),o.push(e)}function c(e){if(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)}o.length||a()}}.call(this,n("0dd1"))},"2c45":function(e,t,n){},"2c67":function(e,t,n){"use strict";n.r(t),function(e){function r(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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function a(t,n,r,o){e.publishHandler(n+"-audio-"+t,{audioId:t,type:r,data:o},n)}n.d(t,"createAudioContext",(function(){return c}));var s=function(){function e(t,n){r(this,e),this.id=t,this.pageId=n}return i(e,[{key:"setSrc",value:function(e){a(this.id,this.pageId,"setSrc",{src:e})}},{key:"play",value:function(){a(this.id,this.pageId,"play")}},{key:"pause",value:function(){a(this.id,this.pageId,"pause")}},{key:"seek",value:function(e){a(this.id,this.pageId,"seek",{position:e})}}]),e}();function c(t,n){if(n)return new s(t,n.$page.id);var r=getApp();if(r.$route&&r.$route.params.__id__)return new s(t,r.$route.params.__id__);e.emit("onError","createAudioContext:fail")}}.call(this,n("0dd1"))},"2d02":function(e,t,n){"use strict";var r=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,r){return["left"===t.float?n("div",{key:r,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(r)}}})]):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(" "+e._s(e.titleText)+" ")]],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,r){return["left"!==t.float?n("div",{key:r,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(r)}}})]):e._e()]}))],2)]),"transparent"!==e.type&&"float"!==e.type?n("div",{staticClass:"uni-placeholder",class:{"uni-placeholder-titlePenetrate":e.titlePenetrate}}):e._e()])},o=[],i=n("dd35"),a=i["a"],s=(n("8e16"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["a"]=c.exports},"2d89":function(e,t,n){"use strict";var r=n("d29c"),o=n.n(r);o.a},"2da2":function(e,t,n){"use strict";n.r(t),n.d(t,"saveFile",(function(){return o})),n.d(t,"getFileInfo",(function(){return a})),n.d(t,"getSavedFileInfo",(function(){return s})),n.d(t,"removeSavedFile",(function(){return c}));var r=n("cb0f"),o={tempFilePath:{type:String,required:!0,validator:function(e,t){t.tempFilePath=Object(r["a"])(e)}}},i=["md5","sha1"],a={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(r["a"])(e)}},digestAlgorithm:{type:String,validator:function(e,t){t.digestAlgorithm=i.includes(e)?e:i[0]},default:i[0]}},s={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(r["a"])(e)}}},c={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(r["a"])(e)}}}},"2eae":function(e,t,n){"use strict";n.r(t),n.d(t,"interceptors",(function(){return o}));var r=n("8542");n.d(t,"addInterceptor",(function(){return r["a"]})),n.d(t,"removeInterceptor",(function(){return r["d"]}));var o={promiseInterceptor:r["c"]}},"2ec6":function(e,t,n){"use strict";n.r(t),function(e){function r(t){var n=getCurrentPages();return n.length&&e.publishHandler("setPageMeta",t,n[n.length-1].$page.id),{}}n.d(t,"setPageMeta",(function(){return r}))}.call(this,n("0dd1"))},"2ef3":function(e,t,n){"use strict";(function(e,t,r){var o=n("8bbf"),i=n.n(o),a=n("442e");function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}var l=function(){function o(){s(this,o),this._init()}return u(o,[{key:"_init",value:function(){t.UniViewJSBridge={subscribe:e.subscribe,publishHandler:e.publishHandler,subscribeHandler:e.subscribeHandler},t.UniServiceJSBridge={subscribe:r.subscribe,publishHandler:r.publishHandler,subscribeHandler:r.subscribeHandler};var o=n("0138"),s=o.default,c=o.getApp,u=o.getCurrentPages,l=["chooseImage"];l.forEach((function(e){Object.defineProperty(s,e,{writable:!1,configurable:!1})})),t.uni=s,t.wx=t.uni,t.getApp=c,t.getCurrentPages=u,i.a.use(n("4ca9").default,{routes:__uniRoutes}),i.a.use(n("8c15").default,{routes:__uniRoutes}),Object(a["a"])(i.a),n("8f7e"),n("1efd")}}]),o}();t.UniApp=l,t.__uniConfig&&new l}).call(this,n("501c"),n("c8ba"),n("0dd1"))},"303f":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"CanvasContext",(function(){return O})),n.d(t,"createCanvasContext",(function(){return D})),n.d(t,"canvasGetImageData",(function(){return N})),n.d(t,"canvasPutImageData",(function(){return L})),n.d(t,"canvasToTempFilePath",(function(){return x}));var o=n("f2b3"),i=n("62b5"),a=n("db70"),s=n("a118"),c=n("8b67");function u(e){return u="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},u(e)}function l(e){return p(e)||h(e)||f(e)||d()}function d(){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 f(e,t){if(e){if("string"===typeof e)return g(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)?g(e,t):void 0}}function h(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return g(e)}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}var y=Object(i["a"])("canvasEvent");function b(t,n,r,o){e.publishHandler(n+"-canvas-"+t,{canvasId:t,type:r,data:o},n)}e.subscribe("onCanvasMethodCallback",(function(e){var t=e.callbackId,n=e.data,r=y.pop(t);r&&r(n)}));var M={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 S(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),i=parseInt(t[1].slice(2,4),16),a=parseInt(t[1].slice(4),16);return[n,i,a,255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){var s=t[1].slice(0,1),c=t[1].slice(1,2),u=t[1].slice(2,3);return s=parseInt(s+s,16),c=parseInt(c+c,16),u=parseInt(u+u,16),[s,c,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(Object(o["i"])(M,l)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(M[l]);var d=parseInt(t[1].slice(0,2),16),f=parseInt(t[1].slice(2,4),16),h=parseInt(t[1].slice(4,6),16),p=parseInt(t[1].slice(6,8),16);return p=p>=0?p:255,[d,f,h,p]}return r.error("unsupported color:"+e),[0,0,0,255]}function k(e,t){this.type="pattern",this.data=e,this.colorStop=t}var w=function(){function e(t,n){v(this,e),this.type=t,this.data=n,this.colorStop=[]}return _(e,[{key:"addColorStop",value:function(e,t){this.colorStop.push([e,S(t)])}}]),e}(),C=["scale","rotate","translate","setTransform","transform"],T=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],I=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function A(e,t){var n=document.createElement("canvas"),r=n.getContext("2d");return r.font=t,r.measureText(e).width||0}function E(e){this.width=e}var O=function(){function e(t,n){v(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 _(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,r=l(this.actions);this.actions=[],this.path=[],"function"===typeof n&&(e=y.push(n)),b(this.id,this.pageId,"actionsChanged",{actions:r,reserve:t,callbackId:e})}},{key:"createLinearGradient",value:function(e,t,n,r){return new w("linear",[e,t,n,r])}},{key:"createCircularGradient",value:function(e,t,n){return new w("radial",[e,t,n])}},{key:"createPattern",value:function(e,t){if(void 0===t)r.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 k(e,t);r.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=A(e,t),new E(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=[]}},{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,r){this.path.push({method:"quadraticCurveTo",data:[e,t,n,r]}),this.subpath.push([n,r])}},{key:"bezierCurveTo",value:function(e,t,n,r,o,i){this.path.push({method:"bezierCurveTo",data:[e,t,n,r,o,i]}),this.subpath.push([o,i])}},{key:"arc",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.path.push({method:"arc",data:[e,t,n,r,o,i]}),this.subpath.push([e,t])}},{key:"rect",value:function(e,t,n,r){this.path.push({method:"rect",data:[e,t,n,r]}),this.subpath=[[e,t]]}},{key:"arcTo",value:function(e,t,n,r,o){this.path.push({method:"arcTo",data:[e,t,n,r,o]}),this.subpath.push([n,r])}},{key:"clip",value:function(){this.actions.push({method:"clip",data:l(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=l(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/),i=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=i,this.state.fontFamily=a,this.actions.push({method:"setFont",data:["".concat(o," ").concat(i,"px ").concat(a)]})}else r.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 D(t,n){if(n)return new O(t,n.$page.id);var r=Object(a["a"])();if(r)return new O(t,r);e.emit("onError","createCanvasContext:fail")}function N(e,t){var n=e.canvasId,r=e.x,o=e.y,i=e.width,c=e.height,u=Object(a["a"])();if(u){var l=y.push((function(e){var n=e.data;n&&n.length&&(e.data=new Uint8ClampedArray(n)),Object(s["a"])(t,e)}));b(n,u,"getImageData",{x:r,y:o,width:i,height:c,callbackId:l})}else Object(s["a"])(t,{errMsg:"canvasGetImageData:fail"})}function L(e,t){var n=e.canvasId,r=e.data,o=e.x,i=e.y,c=e.width,u=e.height,l=Object(a["a"])();if(l){var d,f=y.push((function(e){Object(s["a"])(t,e)}));r=Array.prototype.slice.call(r),b(n,l,"putImageData",{data:r,x:o,y:i,width:c,height:u,compressed:d,callbackId:f})}else Object(s["a"])(t,{errMsg:"canvasPutImageData:fail"})}function x(e,t){var n=e.x,r=void 0===n?0:n,o=e.y,i=void 0===o?0:o,u=e.width,l=e.height,d=e.destWidth,f=e.destHeight,h=e.canvasId,p=e.fileType,g=e.quality,v=Object(a["a"])();if(v){var m=y.push((function(e){Object(s["a"])(t,e)})),_="".concat(c["TEMP_PATH"],"/canvas");b(h,v,"toTempFilePath",{x:r,y:i,width:u,height:l,destWidth:d,destHeight:f,fileType:p,quality:g,dirname:_,callbackId:m})}else Object(s["a"])(t,{errMsg:"canvasToTempFilePath:fail"})}[].concat(C,T).forEach((function(e){function t(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:l(this.path)})};case"fillRect":return function(e,t,n,r){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,r]}]})};case"strokeRect":return function(e,t,n,r){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,r]}]})};case"fillText":case"strokeText":return function(t,n,r,o){var i=[t.toString(),n,r];"number"===typeof o&&i.push(o),this.actions.push({method:e,data:i})};case"drawImage":return function(t,n,r,o,i,a,s,c,u){var l;function d(e){return"number"===typeof e}void 0===u&&(a=n,s=r,c=o,u=i,n=void 0,r=void 0,o=void 0,i=void 0),l=d(n)&&d(r)&&d(o)&&d(i)?[t,a,s,c,u,n,r,o,i]: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),r=0;r<t;r++)n[r]=arguments[r];this.actions.push({method:e,data:n})}}}O.prototype[e]=t(e)})),I.forEach((function(e){function t(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!==u(t)?this.actions.push({method:e,data:["normal",S(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,r,o){o=S(o),this.actions.push({method:e,data:[t,n,r,o]}),this.state.shadowBlur=r,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),r=0;r<t;r++)n[r]=arguments[r];this.actions.push({method:e,data:n})}}}O.prototype[e]=t(e)}))}.call(this,n("0dd1"),n("3ad9")["default"])},"31c6":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r,o=n("636c"),i=n("3b51"),a={},s="__map_callback__";function c(t,n){var c=Object(o["d"])();if(c.key){var u=a[c.type]=a[c.type]||[];if(r)n(r);else if(window[c.type]&&window[c.type].maps)r=window[c.type].maps,r.Callout=r.Callout||Object(i["a"])(r),n(r);else if(u.length)u.push(n);else{u.push(n);var l=window,d=s+c.type;l[d]=function(){delete l[d],r=window[c.type].maps,r.Callout=Object(i["a"])(r),u.forEach((function(e){return e(r)})),u.length=0};var f=document.createElement("script"),h=c.type===o["c"].GOOGLE?"https://maps.googleapis.com/maps/api/js?":"https://map.qq.com/api/js?v=2.exp&";c.type===o["c"].QQ&&t.push("geometry"),t.length&&(h+="libraries=".concat(t.join("%2C"),"&")),f.src="".concat(h,"key=").concat(c.key,"&callback=").concat(d),f.onerror=function(){e.error("Map load failed.")},document.body.appendChild(f)}}else e.error("Map key not configured.")}}).call(this,n("3ad9")["default"])},"31e2":function(e,t,n){"use strict";n.r(t);var r=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":"",playsinline:""},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(" "+e._s(e._f("time")(e.currentTime))+" ")]),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(" "+e._s(e._f("time")(e.duration||e.durationTime))+" ")])]),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(" "+e._s(e.$$t("uni.video.danmu"))+" ")]):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(" "+e._s(e._f("time")(e.duration||e.durationTime))+" ")])]):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(" "+e._s(e.$$t("uni.video.volume"))+" ")]),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(" "+e._s(e._f("time")(e.currentTimeNew))+" / "+e._s(e._f("time")(e.durationTime))+" ")])]),n("div",{staticClass:"uni-video-slots"},[e._t("default")],2)])])},o=[],i=n("8af1"),a=n("f2b3"),s=n("a6b0"),c=!!a["q"]&&{passive:!1},u={NONE:"none",STOP:"stop",VOLUME:"volume",PROGRESS:"progress"},l={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),r=Math.floor(e%3600%60);t=(t<10?"0":"")+t,n=(n<10?"0":"")+n,r=(r<10?"0":"")+r;var o=n+":"+r;return"00"!==t&&(o=t+":"+o),o}},mixins:[s["c"],i["g"],i["d"]],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:u.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,r=this,o=this,i=!0,a=this.$refs.ball;function s(r){var a=r.targetTouches[0],s=a.pageX,c=a.pageY;if(i&&Math.abs(s-e)<Math.abs(c-t))u();else{i=!1;var l=o.$refs.progress.offsetWidth,d=n+(s-e)/l*100;d<0?d=0:d>100&&(d=100),o.progress=d,r.preventDefault(),r.stopPropagation()}}function u(e){o.controlsTouching=!1,o.touching&&(a.removeEventListener("touchmove",s,c),i||(e.preventDefault(),e.stopPropagation(),o.seek(o.$refs.video.duration*o.progress/100)),o.touching=!1)}a.addEventListener("touchstart",(function(o){r.controlsTouching=!0;var u=o.targetTouches[0];e=u.pageX,t=u.pageY,n=r.progress,i=!0,r.touching=!0,a.addEventListener("touchmove",s,c)})),a.addEventListener("touchend",u),a.addEventListener("touchcancel",u)},beforeDestroy:function(){this.triggerFullscreen(!1),clearTimeout(this.otherData.hideTiming)},methods:{_handleSubscribe:function(e){var t,n=e.type,r=e.data,o=void 0===r?{}:r,i=["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}i.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,r=e.offsetX;while(n!==t)r+=n.offsetLeft,n=n.parentNode;var o=t.offsetWidth,i=0;r>=0&&r<=o&&(i=r/o,this.seek(this.$refs.video.duration*i))},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,r=this.$refs.video;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||this.isSafari&&!this.userInteract?r.webkitEnterFullScreen?r.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():r.webkitExitFullScreen?r.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,r=this.currentTime=t.currentTime,o=n.danmuIndex,i={time:r,index:o.index},a=n.danmuList;if(r>o.time)for(var s=o.index+1;s<a.length;s++){var c=a[s];if(!(r>=(c.time||0)))break;i.index=s,this.playing&&this.enableDanmuSync&&this.playDanmu(c)}else if(r<o.time)for(var u=o.index-1;u>-1;u--){var l=a[u];if(!(r<=(l.time||0)))break;i.index=u-1}n.danmuIndex=i,this.$trigger("timeupdate",e,{currentTime:r,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=u.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!==u.STOP){var r=e.targetTouches[0],o=r.pageX,i=r.pageY,a=this.touchStartOrigin;if(n===u.PROGRESS?this.changeProgress(o-a.x):n===u.VOLUME&&this.changeVolume(i-a.y),n===u.NONE)if(Math.abs(o-a.x)>Math.abs(i-a.y)){if(!this.enableProgressGesture)return void(this.gestureType=u.STOP);this.gestureType=u.PROGRESS,this.currentTimeOld=this.currentTimeNew=this.$refs.video.currentTime,this.fullscreen||t()}else{if(!this.pageGesture)return void(this.gestureType=u.STOP);this.gestureType=u.VOLUME,this.volumeOld=this.$refs.video.volume,this.fullscreen||t()}}},touchend:function(e){this.gestureType!==u.NONE&&this.gestureType!==u.STOP&&(e.stopPropagation(),e.preventDefault()),this.gestureType===u.PROGRESS&&this.currentTimeOld!==this.currentTimeNew&&(this.$refs.video.currentTime=this.currentTimeNew),this.gestureType=u.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)}}},d=l,f=(n("856e"),n("2877")),h=Object(f["a"])(d,r,o,!1,null,null,null);t["default"]=h.exports},"324c":function(e,t,n){},"332a":function(e,t,n){"use strict";n.r(t),n.d(t,"redirectTo",(function(){return u})),n.d(t,"reLaunch",(function(){return l})),n.d(t,"navigateTo",(function(){return d})),n.d(t,"switchTab",(function(){return f})),n.d(t,"navigateBack",(function(){return h})),n.d(t,"preloadPage",(function(){return p})),n.d(t,"unPreloadPage",(function(){return g}));var r,o=n("0f74");function i(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 r=[];return n.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),n=t.shift(),o=t.length>0?t.join("="):"";r.push(n+"="+encodeURIComponent(o))})),r.length?e+"?"+r.join("&"):e}function a(e){return function(t,n){t=Object(o["a"])(t);var a=t.split("?")[0],s=__uniRoutes.find((function(e){var t=e.path,n=e.alias;return t===a||n===a}));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=a),s.meta.isEntry&&(t=t.replace(s.alias,"/")),n.url=i(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(r===t&&"appLaunch"!==n.openType)return"".concat(r," locked");__uniConfig.ready&&!1!==__uniConfig.enableNavigatorLock&&(r=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 s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({url:{type:String,required:!0,validator:a(e)},beforeAll:function(){r=""}},t)}function c(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 u=s("redirectTo"),l=s("reLaunch"),d=s("navigateTo",c(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),f=s("switchTab"),h=Object.assign({delta:{type:Number,validator:function(e,t){e=parseInt(e)||1,t.delta=Math.min(getCurrentPages().length-1,e)}}},c(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"])),p={url:{type:String,required:!0,validator:a("preloadPage")}},g={url:{type:String,required:!0,validator:a("unPreloadPage")}}},"33b4":function(e,t,n){},"33ed":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c}));var r,o=n("4a59");function i(e){e.preventDefault()}function a(e){var t=e.scrollTop,n=e.duration,r=document.documentElement,o=r.clientHeight,i=r.scrollHeight;function a(e){if(e<=0)window.scrollTo(0,t);else{var n=t-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/e*10),a(e-10)}))}}t=Math.min(t,i-o),0!==n?window.scrollY!==t&&a(n):r.scrollTop=document.body.scrollTop=t}var s=0;function c(t,n){var i=n.enablePageScroll,a=n.enablePageReachBottom,c=n.onReachBottomDistance,u=n.enableTransparentTitleNView,l=!1,d=!1,f=!0;function h(){var e=document.documentElement.scrollHeight,t=window.innerHeight,n=window.scrollY,r=n>0&&e>t&&n+t+c>=e,o=Math.abs(e-s)>c;return!r||d&&!o?(!r&&d&&(d=!1),!1):(s=e,d=!0,!0)}function p(){var n=getCurrentPages();if(n.length&&n[n.length-1].$page.id===t){var s=window.pageYOffset;i&&Object(o["a"])("onPageScroll",{scrollTop:s},t),u&&e.emit("onPageScroll",{scrollTop:s}),a&&f&&(c()||(r=setTimeout(c,300))),l=!1}function c(){if(h())return Object(o["a"])("onReachBottom",{},t),f=!1,setTimeout((function(){f=!0}),350),!0}}return function(){clearTimeout(r),l||requestAnimationFrame(p),l=!0}}}).call(this,n("501c"))},"34b2":function(e,t,n){"use strict";n.r(t),function(e){function r(){return window.location.protocol+"//"+window.location.host}function o(t,n){var o=t.src,i=e,a=i.invokeCallbackHandler,s=new Image,c=o;s.onload=function(){a(n,{errMsg:"getImageInfo:ok",width:s.naturalWidth,height:s.naturalHeight,path:0===c.indexOf("/")?r()+c:c})},s.onerror=function(e){a(n,{errMsg:"getImageInfo:fail"})},s.src=o}n.d(t,"getImageInfo",(function(){return o}))}.call(this,n("0dd1"))},3563:function(e,t,n){"use strict";n.r(t);var r=n("f2b3"),o=n("bd97"),i=n("8af1");i["d"].addInteractListener();var a="*";function s(){var e=window.navigator.userAgent.toLowerCase();return!(!e.match(/MicroMessenger/i)||"micromessenger"!==e.match(/MicroMessenger/i)[0])}t["default"]=function(e){var t=e.count,n=e.sourceType,i=e.type,c=e.extension,u=document.createElement("input");return u.type="file",Object(r["u"])(u,{position:"absolute",visibility:"hidden","z-index":-999,width:0,height:0,top:0,left:0}),u.accept=c.map((function(e){if(i!==a){var t=e.replace(".","");return"".concat(i,"/").concat(o["default"][i][t]||t)}return s()?".":0===e.indexOf(".")?e:".".concat(e)})).join(","),t>1&&(u.multiple="multiple"),1===n.length&&"camera"===n[0]&&(u.capture="camera"),u}},3590:function(e,t,n){},3648:function(e,t,n){"use strict";n.r(t),n.d(t,"canIUse",(function(){return a}));var r=n("f2b3");function o(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}var i={"css.var":o("--a:0"),"css.env":o("top:env(a)"),"css.constant":o("top:constant(a)")};function a(e){return!Object(r["i"])(i,e)||i[e]}},3676:function(e,t,n){"use strict";n.r(t),n.d(t,"getRecorderManager",(function(){return l}));var r=n("db70");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var s,c={pause:null,resume:null,start:null,stop:null,error:null},u=function(){function e(){o(this,e),Object(r["d"])("onRecorderStateChange",(function(e){var t=e.state;delete e.state,delete e.errMsg,"function"===typeof c[t]&&c[t](e)}))}return a(e,[{key:"onError",value:function(e){c.error=e}},{key:"onFrameRecorded",value:function(e){}},{key:"onInterruptionBegin",value:function(e){}},{key:"onInterruptionEnd",value:function(e){}},{key:"onPause",value:function(e){c.pause=e}},{key:"onResume",value:function(e){c.resume=e}},{key:"onStart",value:function(e){c.start=e}},{key:"onStop",value:function(e){c.stop=e}},{key:"pause",value:function(){Object(r["c"])("operateRecorder",{operationType:"pause"})}},{key:"resume",value:function(){Object(r["c"])("operateRecorder",{operationType:"resume"})}},{key:"start",value:function(e){Object(r["c"])("operateRecorder",Object.assign({},e,{operationType:"start"}))}},{key:"stop",value:function(){Object(r["c"])("operateRecorder",{operationType:"stop"})}}]),e}();function l(){return s||(s=new u)}},3898:function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"chooseFile",(function(){return d}));var o=n("e2e2"),i=n("a6b0"),a=n("3563"),s=n("8af1"),c=e,u=c.invokeCallbackHandler,l=null;function d(e,t){var n=e.count,c=e.sourceType,d=e.type,f=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:c,type:d,extension:f}),document.body.appendChild(l),l.addEventListener("change",(function(e){for(var r=[],i=e.target.files.length,a=function(t){var i=e.target.files[t],a=void 0;Object.defineProperty(i,"path",{get:function(){return a=a||Object(o["b"])(i),a}}),t<n&&r.push(i)},s=0;s<i;s++)a(s);var c={errMsg:"chooseFile:ok",get tempFilePaths(){return r.map((function(e){var t=e.path;return t}))},tempFiles:r};u(t,c)})),l.click(),s["d"].getStatus()||r.warn("".concat(Object(i["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},"39aa":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"}')},"3ad9":function(e,t,n){"use strict";n.r(t),function(e){var n=Array.prototype.unshift;function r(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,r(arguments))}}t["default"]={log:o("log"),info:o("info"),warn:o("warn"),debug:o("debug"),error:o("error")}}.call(this,n("c8ba"))},"3b51":function(e,t,n){"use strict";function r(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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(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){var t=new(e.OverlayView||e.Overlay);function n(){var e=this.div,t=this.getPanes();t.floatPane.appendChild(e)}function o(){var e=this.div.parentNode;e&&e.removeChild(this.div)}var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),a(this,"option",void 0),a(this,"position",void 0),a(this,"index",void 0),a(this,"visible",void 0),a(this,"alwaysVisible",void 0),a(this,"div",void 0),a(this,"triangle",void 0),a(this,"onAdd",n),a(this,"construct",n),a(this,"onRemove",o),a(this,"destroy",o),this.option=t||{};var i=t.map;this.position=t.position,this.index=1;var s=this.visible=this.alwaysVisible="ALWAYS"===t.display,c=this.div=document.createElement("div"),u=c.style;u.position="absolute",u.whiteSpace="nowrap",u.transform="translateX(-50%) translateY(-100%)",u.zIndex="1",u.boxShadow=t.boxShadow||"none",u.display=s?"block":"none";var l=this.triangle=document.createElement("div");l.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(t),c.appendChild(l),i&&this.setMap(i)}return i(e,[{key:"onclick",set:function(e){this.div.onclick=e},get:function(){return this.div.onclick}}]),i(e,[{key:"setOption",value:function(e){this.option=e,this.setPosition(e.position),"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,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}(),c=s.prototype;for(var u in t)u in c||(c[u]=t[u]);return s}n.d(t,"a",(function(){return s}))},"3b54":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getFileInfo",(function(){return a}));var r=n("e2e2"),o=e,i=o.invokeCallbackHandler;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filePath,n=arguments.length>1?arguments[1]:void 0;Object(r["f"])(t).then((function(e){i(n,{errMsg:"getFileInfo:ok",size:e.size})})).catch((function(e){i(n,{errMsg:"getFileInfo:fail "+e.message})}))}}.call(this,n("0dd1"))},"3b67":function(e,t,n){"use strict";var r=Object.create(null),o=n("e3a7");o.keys().forEach((function(e){Object.assign(r,o(e))})),t["a"]=r},"3bfb":function(e,t,n){"use strict";n.r(t),n.d(t,"createAudioContext",(function(){return o})),n.d(t,"createVideoContext",(function(){return i})),n.d(t,"createMapContext",(function(){return a})),n.d(t,"createCanvasContext",(function(){return s}));var r=[{name:"id",type:String,required:!0}],o=r,i=r,a=r,s=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}]},"3c79":function(e,t,n){},"3d1f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("62b5"),o=n("a741");function i(e,t){t.getApp;var n=t.getCurrentPages;function i(e){return function(t,r){r=parseInt(r);var i=n(),a=i.find((function(e){return e.$page.id===r}));a&&Object(o["b"])(a,e,t)}}var a=Object(r["a"])("requestComponentInfo");function s(e){var t=e.reqId,n=e.res,r=a.pop(t);r&&r(n)}var c=Object(r["a"])("requestComponentObserver");function u(e){var t=e.reqId,n=e.reqEnd,r=e.res,o=c.get(t);if(o){if(n)return void c.pop(t);o(r)}}var l=Object(r["a"])("requestMediaQueryObserver");function d(e){var t=e.reqId,n=e.reqEnd,r=e.res,o=l.get(t);if(o){if(n)return void l.pop(t);o(r)}}e("onPageReady",i("onReady")),e("onPageScroll",i("onPageScroll")),e("onReachBottom",i("onReachBottom")),e("onRequestComponentInfo",s),e("onRequestComponentObserver",u),e("onRequestMediaQueryObserver",d)}},"3d64":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onNetworkStatusChange",(function(){return s})),n.d(t,"offNetworkStatusChange",(function(){return c})),n.d(t,"getNetworkType",(function(){return u}));var r=e,o=r.invokeCallbackHandler,i=[];function a(){var e=u(),t=e.networkType;i.forEach((function(e){o(e,{errMsg:"onNetworkStatusChange:ok",isConnected:"none"!==t,networkType:t})}))}function s(e){var t=navigator.connection||navigator.webkitConnection;i.push(e),t?t.addEventListener("change",a):(window.addEventListener("offline",a),window.addEventListener("online",a))}function c(e){if(e){var t=i.indexOf(e);t>=0&&i.splice(t,1)}if(!i.length){var n=navigator.connection||navigator.webkitConnection;n?n.removeEventListener("change",a):(window.removeEventListener("offline",a),window.removeEventListener("online",a))}}function u(){var e=navigator.connection||navigator.webkitConnection,t="unknown";return e?(t=e.type,"cellular"===t&&e.effectiveType?t=e.effectiveType.replace("slow-",""):["none","wifi"].includes(t)||(t="unknown")):!1===navigator.onLine&&(t="none"),{errMsg:"getNetworkType:ok",networkType:t}}}.call(this,n("0dd1"))},"3da9":function(e,t,n){"use strict";var r=n("bfbd"),o=n.n(r);o.a},"3e8c":function(e,t,n){"use strict";n.r(t);var r=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")])])},o=[],i=1e5,a={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()}}},s=a,c=(n("64d0"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},"3f15":function(e,t,n){"use strict";n.r(t),n.d(t,"getVideoInfo",(function(){return o}));var r=n("cb0f"),o={src:{type:String,required:!0,validator:function(e,t){t.src=Object(r["a"])(e)}}}},"3f7e":function(e,t,n){"use strict";var r=n("e692"),o=n.n(r);o.a},"439a":function(e,t,n){"use strict";n.r(t),n.d(t,"downloadFile",(function(){return r}));var r={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}}}},"43a1":function(e,t,n){},"442e":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n("5129"),o=n.n(r),i=n("85b6"),a=n("f2b3");function s(t){t.config.errorHandler=function(n,r,o){var s=Object(a["s"])(n);t.util.warn("Error in ".concat(o,': "').concat("Error"===s?n.toString():n,'"'),r);var c="function"===typeof getApp&&getApp();c&&Object(i["c"])(c.$options,"onError")?c.__call_hook("onError",n):e.error(n)};var n=t.config.isReservedTag;t.config.isReservedTag=function(e){return-1!==o.a.indexOf(e)||n(e)},t.config.ignoredElements=o.a;var r=t.config.getTagNamespace,s=["switch","image","text","view"];t.config.getTagNamespace=function(e){return!~s.indexOf(e)&&r(e)}}}).call(this,n("3ad9")["default"])},"44de":function(e,t,n){"use strict";n.r(t),n.d(t,"vibrateLong",(function(){return o})),n.d(t,"vibrateShort",(function(){return i}));var r=!!window.navigator.vibrate;function o(){return r&&window.navigator.vibrate(400)?{errMsg:"vibrateLong:ok"}:{errMsg:"vibrateLong:fail"}}function i(){return r&&window.navigator.vibrate(15)?{errMsg:"vibrateShort:ok"}:{errMsg:"vibrateShort:fail"}}},"453f":function(e,t,n){"use strict";(function(e){var r=n("cb0f");t["a"]={props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},mounted:function(){var e=this,t=this.$parent;t.mapReady((function(){e._maps=t._maps,e._map=t._map,e.addMarker(e.$props),Object.keys(e.$props).forEach((function(t){e.$watch(t,(function(){e.updateMarker(e.$props)}))}))}))},beforeDestroy:function(){this.removeMarker()},methods:{addMarker:function(e){var t=this,n=this._maps,r=this._map,o=this._marker=new n.Marker({map:r,flat:!0,autoRotation:!1});this.$parent._markers[this.id]=o,this.updateMarker(e),n.event.addListener(o,"click",(function(){var e=o.callout;if(e){var n=e.div,r=n.parentNode;e.alwaysVisible||e.set("visible",!e.visible),e.visible&&(r.removeChild(n),r.appendChild(n))}t.id&&t.$parent.$trigger("markertap",{},{markerId:t.id})}))},updateMarker:function(t){var n=this,o=this._map,i=this._maps,a=this._marker,s=t.title,c=new i.LatLng(t.latitude,t.longitude),u=new Image;u.onload=function(){var e,r,l,d=t.anchor||{},f="number"===typeof d.x?d.x:.5,h="number"===typeof d.y?d.y:1;t.iconPath&&(t.width||t.height)?(r=t.width||u.width/u.height*t.height,l=t.height||u.height/u.width*t.width):(r=u.width/2,l=u.height/2);var p=l-(l-h*l);e="MarkerImage"in i?new i.MarkerImage(u.src,null,null,new i.Point(f*r,h*l),new i.Size(r,l)):{url:u.src,anchor:new i.Point(f,h),size:new i.Size(r,l)},a.setPosition(c),a.setIcon(e),"setRotation"in a&&a.setRotation(t.rotate||0);var g,v=t.label||{};if("label"in a&&(a.label.setMap(null),delete a.label),v.content){var m={borderColor:v.borderColor,borderWidth:(Number(v.borderWidth)||0)+"px",padding:(Number(v.padding)||0)+"px",borderRadius:(Number(v.borderRadius)||0)+"px",backgroundColor:v.bgColor,color:v.color,fontSize:(v.fontSize||14)+"px",lineHeight:(v.fontSize||14)+"px",marginLeft:(Number(v.anchorX||v.x)||0)+"px",marginTop:(Number(v.anchorY||v.y)||0)+"px"};if("Label"in i)g=new i.Label({position:c,map:o,clickable:!1,content:v.content,style:m}),a.label=g;else if("setLabel"in a){var _=n.updateMarkerLabelStyle(n.id,m);a.setLabel({text:v.content,color:m.color,fontSize:m.fontSize,className:_})}}var y,b=t.callout||{},M=a.callout;if(b.content||s){var S="0px 0px 3px 1px rgba(0,0,0,0.5)";y=b.content?{position:c,map:o,top:p,content:b.content,color:b.color,fontSize:b.fontSize,borderRadius:b.borderRadius,bgColor:b.bgColor,padding:b.padding,boxShadow:b.boxShadow||S,display:b.display}:{position:c,map:o,top:p,content:s,boxShadow:S},M?M.setOption(y):(M=a.callout=new i.Callout(y),M.div.onclick=function(e){""!==n.id&&n.$parent.$trigger("callouttap",e,{markerId:n.id}),e.stopPropagation(),e.preventDefault()})}else M&&(M.setMap(null),delete a.callout)},t.iconPath?u.src=Object(r["a"])(t.iconPath):e.error("Marker.iconPath is required.")},updateMarkerLabelStyle:function(e,t){var n="uni-map-marker-label-"+e,r=document.getElementById(n);r||(r=document.createElement("style"),r.id=n,document.head.appendChild(r),this.$once("hook:destroyed",(function(){r.remove()})));var o=Object.assign({},t,{position:"absolute",top:"70px",borderStyle:"solid"}),i=document.createElement("div");return Object.keys(o).forEach((function(e){i.style[e]=o[e]||""})),r.innerText=".".concat(n,"{").concat(i.getAttribute("style"),"}"),n},removeMarker:function(){var e=this._marker;e&&(e.label&&"setMap"in e.label&&e.label.setMap(null),e.callout&&e.callout.setMap(null),e.setMap(null)),delete this.$parent._markers[this.id],this._marker=null}},render:function(){return null}}}).call(this,n("3ad9")["default"])},"454d":function(e,t,n){"use strict";n.r(t),n.d(t,"removeTabBarBadge",(function(){return i})),n.d(t,"showTabBarRedDot",(function(){return a})),n.d(t,"hideTabBarRedDot",(function(){return s})),n.d(t,"onTabBarMidButtonTap",(function(){return u}));var r=n("db70"),o=n("a118");function i(e){var t=e.index;return Object(r["c"])("setTabBarBadge",{index:t,type:"none"})}function a(e){var t=e.index;return Object(r["c"])("setTabBarBadge",{index:t,type:"redDot"})}var s=i,c=[];function u(e){c.push(e)}Object(r["d"])("onTabBarMidButtonTap",(function(e){c.forEach((function(t){Object(o["a"])(t,e)}))}))},"45d2":function(e,t,n){"use strict";n.r(t),n.d(t,"upx2px",(function(){return l}));var r=1e-4,o=750,i=!1,a=0,s=0;function c(){var e=uni.getSystemInfoSync(),t=e.platform,n=e.pixelRatio,r=e.windowWidth;a=r,s=n,i="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),h=t||a;h=e===f||h<=l?h:d;var p=e/o*h;return p<0&&(p=-p),p=Math.floor(p+r),0===p&&(p=1!==s&&i?.5:1),e<0?-p:p}},"45db":function(e,t,n){"use strict";n.r(t),function(e){var r;function o(e){r=e}function i(){r&&e.emit(r+".stopPullDownRefresh",{},r);var t=getCurrentPages();return t.length&&(r=t[t.length-1].$page.id,e.emit(r+".startPullDownRefresh",{},r)),{}}function a(){if(r)e.emit(r+".stopPullDownRefresh",{},r),r=null;else{var t=getCurrentPages();t.length&&(r=t[t.length-1].$page.id,e.emit(r+".stopPullDownRefresh",{},r))}return{}}n.d(t,"setPullDownRefreshPageId",(function(){return o})),n.d(t,"startPullDownRefresh",(function(){return i})),n.d(t,"stopPullDownRefresh",(function(){return a}))}.call(this,n("0dd1"))},"4a59":function(e,t,n){"use strict";(function(e){function r(t,n,r){e.UniServiceJSBridge.subscribeHandler(t,n,r)}n.d(t,"a",(function(){return r}))}).call(this,n("c8ba"))},"4ca9":function(e,t,n){"use strict";n.r(t),function(e){var r=n("6389"),o=n.n(r),i=n("85b6"),a=n("abbf"),s=n("0784"),c=n("aa92"),u=n("02c9"),l=n("23e5"),d=n("f2b3");function f(e){var t=0;return e.forEach((function(e){e.meta.id&&t++})),t}function h(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function p(){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}t["default"]={install:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.routes;t.config.devtools&&"undefined"!==typeof window&&-1!==window.navigator.userAgent.toLowerCase().indexOf("hbuilderx")&&(t.config.devtools=!1),Object(u["a"])(t),Object(c["a"])(t),Object(d["t"])(t),"undefined"!==typeof __UNI_ROUTER_BASE__&&(__uniConfig.router.base=__UNI_ROUTER_BASE__);var g=f(r),v=new o.a({id:g,mode:__uniConfig.router.mode,base:__uniConfig.router.base,routes:r,scrollBehavior:function(e,t,n){if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){var r=Object(l["b"])(e.params.__id__);if(r)return r}return{x:0,y:0}}}),m=[],_=v.match("history"===__uniConfig.router.mode?p(__uniConfig.router.base):h());if(_.meta.name&&(_.meta.id?m.push(_.meta.name+"-"+_.meta.id):m.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:m}};var o=Object(a["a"])(t,r,_);Object.keys(o).forEach((function(e){n[e]=n[e]?[].concat(o[e],n[e]):[o[e]]})),n.router=v,Array.isArray(n.onError)&&0!==n.onError.length||(n.onError=[function(t){e.error(t)}])}else if(Object(i["d"])(this)){var c=Object(s["a"])();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.a)}}}.call(this,n("3ad9")["default"])},"4ccd":function(e,t,n){"use strict";n.r(t),t["default"]={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={},r=this.popover;function o(e){return Number(e)||0}if(this.isDesktop&&r){Object.assign(n,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});var i=o(r.left),a=o(r.width),s=o(r.top),c=o(r.height),u=i+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,r=t.windowHeight,o=t.windowTop;e.popupWidth=n,e.popupHeight=r+o};window.addEventListener("resize",t),t(),this.$once("hook:beforeDestroy",(function(){window.removeEventListener("resize",t)}))}}},"4da7":function(e,t,n){"use strict";n.r(t);var r,o,i=n("5881"),a=i["a"],s=(n("c8ed"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},"4e0b":function(e,t,n){},"4e7c":function(e,t,n){"use strict";n.r(t),n.d(t,"getProvider",(function(){return o}));var r={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(r).indexOf(e)<0)return"service error"}}}},"4f1c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-switch",e._g({attrs:{disabled:e.disabled},on:{click:e._onClick}},e.$listeners),[n("div",{staticClass:"uni-switch-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"switch"===e.type,expression:"type === 'switch'"}],staticClass:"uni-switch-input",class:[e.switchChecked?"uni-switch-input-checked":""],style:{backgroundColor:e.switchChecked?e.color:"#DFDFDF",borderColor:e.switchChecked?e.color:"#DFDFDF"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:"checkbox"===e.type,expression:"type === 'checkbox'"}],staticClass:"uni-checkbox-input",class:[e.switchChecked?"uni-checkbox-input-checked":""],style:{color:e.color}})])])},o=[],i=n("8af1"),a={name:"Switch",mixins:[i["a"],i["f"]],props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#007aff"}},data:function(){return{switchChecked:this.checked}},watch:{checked:function(e){this.switchChecked=e}},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})},listeners:{"label-click":"_onClick","@label-click":"_onClick"},methods:{_onClick:function(e){this.disabled||(this.switchChecked=!this.switchChecked,this.$trigger("change",e,{value:this.switchChecked}))},_resetFormData:function(){this.switchChecked=!1},_getFormData:function(){var e={};return""!==this.name&&(e.value=this.switchChecked,e.key=this.name),e}}},s=a,c=(n("a5ec"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},"4f43":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"downloadFile",(function(){return u}));var r=n("e2e2");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){function e(t){o(this,e),s(this,"_xhr",void 0),s(this,"_callbacks",[]),this._xhr=t}return a(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 o,i=t.url,a=t.header,s=t.timeout,u=void 0===s?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.request||6e4:s,l=e,d=l.invokeCallbackHandler,f=new XMLHttpRequest,h=new c(f);return f.open("GET",i,!0),Object.keys(a).forEach((function(e){f.setRequestHeader(e,a[e])})),f.responseType="blob",f.onload=function(){clearTimeout(o);var e,t=f.status,a=this.response,s=f.getResponseHeader("content-disposition");if(s){var c=s.match(/filename="?(\S+)"?\b/);c&&(e=c[1])}a.name=e||Object(r["c"])(i),d(n,{errMsg:"downloadFile:ok",statusCode:t,tempFilePath:Object(r["b"])(a)})},f.onabort=function(){clearTimeout(o),d(n,{errMsg:"downloadFile:fail abort"})},f.onerror=function(){clearTimeout(o),d(n,{errMsg:"downloadFile:fail"})},f.onprogress=function(e){h._callbacks.forEach((function(t){var n=e.loaded,r=e.total,o=Math.round(n/r*100);t({progress:o,totalBytesWritten:n,totalBytesExpectedToWrite:r})}))},f.send(),o=setTimeout((function(){f.onprogress=f.onload=f.onabort=f.onerror=null,h.abort(),d(n,{errMsg:"downloadFile:fail timeout"})}),u),h}}.call(this,n("0dd1"))},"4f53":function(e,t,n){"use strict";n.r(t),n.d(t,"saveImageToPhotosAlbum",(function(){return o}));var r=n("cb0f"),o={filePath:{type:String,required:!0,validator:function(e,t){t.filePath=Object(r["a"])(e)}}}},"4fef":function(e,t,n){"use strict";var r=n("7572"),o=n.n(r);o.a},"501c":function(e,t,n){"use strict";n.r(t),n.d(t,"on",(function(){return v})),n.d(t,"off",(function(){return m})),n.d(t,"once",(function(){return _})),n.d(t,"emit",(function(){return y})),n.d(t,"subscribe",(function(){return b})),n.d(t,"unsubscribe",(function(){return M})),n.d(t,"subscribeHandler",(function(){return S})),n.d(t,"publishHandler",(function(){return p["a"]}));var r=n("8bbf"),o=n.n(r);function i(e){var t=e.pageStyle,n=e.rootFontSize,r=document.querySelector("uni-page-body")||document.body;r.setAttribute("style",t),n&&document.documentElement.style.fontSize!==n&&(document.documentElement.style.fontSize=n)}var a=n("6bdf"),s=n("5dc1"),c=n("1c73"),u={setPageMeta:i,requestComponentInfo:a["a"],requestComponentObserver:s["b"],destroyComponentObserver:s["a"],requestMediaQueryObserver:c["b"],destroyMediaQueryObserver:c["a"]},l=n("33ed"),d=n("7107"),f=n("764a");function h(e){Object.keys(u).forEach((function(t){e(t,u[t])})),e("pageScrollTo",l["c"]),e("loadFontFace",d["a"]),Object(f["a"])(e)}var p=n("4a59"),g=new o.a,v=g.$on.bind(g),m=g.$off.bind(g),_=g.$once.bind(g),y=g.$emit.bind(g);function b(e,t){return v("service."+e,t)}function M(e,t){return m("service."+e,t)}function S(e,t,n){y("service."+e,t,n)}h(b)},"50c5":function(e,t,n){},5129: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"]},"515d":function(e,t,n){},5222:function(e,t,n){"use strict";(function(e){var r=n("5a56");t["a"]={name:"Toast",mixins:[r["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))}}}).call(this,n("0dd1"))},5243:function(e,t,n){"use strict";n.r(t),n.d(t,"compressVideo",(function(){return o}));var r=n("cb0f"),o={src:{type:String,required:!0,validator:function(e,t){t.src=Object(r["a"])(e)}},quality:{type:String},bitrate:{type:Number},fps:{type:Number},resolution:{type:Number}}},5363:function(e,t,n){"use strict";function r(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}n.d(t,"a",(function(){return r})),r.prototype.set=function(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()},r.prototype.setVelocityByEnd=function(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},r.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},r.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},r.prototype.done=function(){return Math.abs(this.dx())<3},r.prototype.reconfigure=function(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)},r.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}]}},5378:function(e,t,n){"use strict";var r=n("43a1"),o=n.n(r);o.a},5408:function(e,t,n){var r={"./audio/index.vue":"6150","./button/index.vue":"d3bd","./canvas/index.vue":"bacd","./checkbox-group/index.vue":"25ce","./checkbox/index.vue":"7bb3","./editor/index.vue":"27c2","./form/index.vue":"b34d","./icon/index.vue":"9a8b","./image/index.vue":"1082","./input/index.vue":"250d","./label/index.vue":"70f4","./movable-area/index.vue":"c61c","./movable-view/index.vue":"8842","./navigator/index.vue":"17fd","./picker-view-column/index.vue":"1955","./picker-view/index.vue":"27ab","./progress/index.vue":"9b1f","./radio-group/index.vue":"d5ec","./radio/index.vue":"6491","./resize-sensor/index.vue":"3e8c","./rich-text/index.vue":"b705","./scroll-view/index.vue":"f1ef","./slider/index.vue":"9f96","./swiper-item/index.vue":"9213","./swiper/index.vue":"5513","./switch/index.vue":"4f1c","./text/index.vue":"4da7","./textarea/index.vue":"5768","./view/index.vue":"2bbe"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="5408"},"54bc":function(e,t,n){},"54f4":function(e,t,n){"use strict";function r(){var e=document.activeElement;!e||"TEXTAREA"!==e.tagName&&"INPUT"!==e.tagName||e.blur()}n.r(t),n.d(t,"hideKeyboard",(function(){return r}))},5513:function(e,t,n){"use strict";n.r(t);var r,o,i=n("ba15"),a=n("f2b3"),s={name:"Swiper",mixins:[i["a"]],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 r=n[t].componentInstance;if(r&&r.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,r=this.currentChangeSource;if(this.currentChangeSource="",!r){var o=this.items.length;this._animateViewport(e,"",this.circularEnabled&&t+(o-e)%o>o/2?1:0)}var i=this.items[e];i&&this._itemReady(i,(function(){var e=n.currentItemIdSync=i.componentInstance.itemId||"";n.$trigger("change",{},{current:n.currentSync,currentItemId:e,source:r})}))},_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(),r=this.$refs.slideFrame.getBoundingClientRect();this._viewportMoveRatio=n.width/r.width,this._viewportMoveRatio>0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}var o=this._viewportPosition;this._viewportPosition=-2;var i=this.currentSync;i>=0?(this._invalid=!1,this.userTracking?(this._updateViewport(o+i-this._contentTrackViewport),this._contentTrackViewport=i):(this._updateViewport(i),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,r=e+this.displayMultipleItemsNumber,o=0;o<n;o++){var i=t[o],a=i._position,s=Math.floor(e/n)*n+o,c=s+n,u=s-n,l=Math.max(e-(s+1),s-r,0),d=Math.max(e-(c+1),c-r,0),f=Math.max(e-(u+1),u-r,0),h=Math.min(l,d,f),p=[s,c,u][[l,d,f].indexOf(h)];a!==p&&this._updateItemPos(o,p)}},_updateItemPos:function(e,t){var n=this.vertical?"0":100*t+"%",r=this.vertical?100*t+"%":"0",o="translate("+n+", "+r+") translateZ(0)",i=this.items[e];this._itemReady(i,(function(){var e=i.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",r="translate("+t+", "+n+") translateZ(0)",o=this.$refs.slideFrame;if(o&&(o.style["-webkit-transform"]=r,o.style.transform=r),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,r=t.acc,o=t.endTime,i=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:i})}))}else{var c=r*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 r=this.durationNumber,o=this.items.length,i=this._viewportPosition;if(this.circularEnabled)if(n<0){for(;i<e;)i+=o;for(;i-o>e;)i-=o}else if(n>0){for(;i>e;)i-=o;for(;i+o<e;)i+=o;i+o-e<e-i&&(i+=o)}else{for(;i+o<e;)i+=o;for(;i-o>e;)i-=o;i+o-e<e-i&&(i+=o)}this._animating={toPos:e,acc:2*(i-e)/(r*r),endTime:Date.now()+r,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.items.length&&(this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=Date.now(),this._cancelViewportAnimation())},_handleTrackMove:function(e){if(this.items.length){var t=this,n=this._contentTrackT;this._contentTrackT=Date.now();var r=this.items.length,o=r-this.displayMultipleItemsNumber,i=this._contentTrackT-n||1;this.vertical?s(-e.dy/this.$refs.slideFrame.offsetHeight,-e.ddy/i):s(-e.dx/this.$refs.slideFrame.offsetWidth,-e.ddx/i)}function a(e){return.5-.25/(e+.5)}function s(e,n){var r=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,t.circularEnabled||(r<0||r>o)&&(r<0?r=-a(-r):r>o&&(r=o+a(r-o)),t._contentTrackSpeed=0),t._updateViewport(r)}},_handleTrackEnd:function(e){if(this.items.length){this.userTracking=!1;var t=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!e&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*t);var r=this._normalizeCurrentValue(this._viewportPosition+n);e?this._updateViewport(this._contentTrackViewport):(this.currentChangeSource="touch",this.currentSync=r,this._animateViewport(r,"touch",0!==n?n:0===r&&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=[],r=[];this.$slots.default&&Object(a["f"])(this.$slots.default,e).forEach((function(e){e.componentOptions&&"v-uni-swiper-item"===e.componentOptions.tag&&r.push(e)}));for(var o=function(r,o){var i=t.currentSync;n.push(e("div",{on:{click:function(){t._animateViewport(t.currentSync=r,t.currentChangeSource="click",t.circularEnabled?1:0)}},class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":r<i+t.displayMultipleItemsNumber&&r>=i||r<i+t.displayMultipleItemsNumber-o},style:{background:r===i?t.indicatorActiveColor:t.indicatorColor}}))},i=0,s=r.length;i<s;i++)o(i,s);this.items=r;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},r)])];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)])}},c=s,u=(n("1c64"),n("2877")),l=Object(u["a"])(c,r,o,!1,null,null,null);t["default"]=l.exports},5621:function(e,t,n){"use strict";n.r(t),n.d(t,"setTabBarItem",(function(){return a})),n.d(t,"setTabBarStyle",(function(){return s})),n.d(t,"hideTabBar",(function(){return c})),n.d(t,"showTabBar",(function(){return u})),n.d(t,"hideTabBarRedDot",(function(){return l})),n.d(t,"showTabBarRedDot",(function(){return d})),n.d(t,"removeTabBarBadge",(function(){return f})),n.d(t,"setTabBarBadge",(function(){return h}));var r=n("f2b3"),o=n("cb0f"),i={type:Number,required:!0},a={index:i,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String},pagePath:{type:String}},s={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},backgroundImage:{type:String,validator:function(e,t){e&&!/^(linear|radial)-gradient\(.+?\);?$/.test(e)&&(t.backgroundImage=Object(o["a"])(e))}},backgroundRepeat:{type:String},borderStyle:{type:String,validator:function(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},c={animation:{type:Boolean,default:!1}},u={animation:{type:Boolean,default:!1}},l={index:i},d={index:i},f={index:i},h={index:i,text:{type:String,required:!0,validator:function(e,t){Object(r["h"])(e)>=4&&(t.text="...")}}}},5676:function(e,t,n){"use strict";var r=n("c33a"),o=n.n(r);o.a},"56e9":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"showModal",(function(){return a})),n.d(t,"showToast",(function(){return s})),n.d(t,"hideToast",(function(){return c})),n.d(t,"showLoading",(function(){return u})),n.d(t,"hideLoading",(function(){return l})),n.d(t,"showActionSheet",(function(){return d}));var r=e,o=r.emit,i=r.invokeCallbackHandler;function a(e,t){o("onShowModal",e,(function(e){i(t,e)}))}function s(e){return o("onShowToast",e),{}}function c(){return o("onHideToast"),{}}function u(e){return o("onShowLoading",e),{}}function l(){return o("onHideLoading"),{}}function d(e,t){o("onShowActionSheet",e,(function(e){i(t,-1===e?{errMsg:"showActionSheet:fail cancel"}:{tapIndex:e})}))}}.call(this,n("0dd1"))},5727:function(e,t,n){"use strict";var r=n("28da"),o=n.n(r);o.a},5768:function(e,t,n){"use strict";n.r(t);var r=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,r){return n("div",{key:r,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._onCompositionstart(t)},compositionend:function(t){return t.stopPropagation(),e._onCompositionend(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._v(" "),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()])])},o=[],i=n("8af1"),a="(prefers-color-scheme: dark)",s={name:"Textarea",mixins:[i["b"]],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:""}},data:function(){return{valueComposition:"",height:0,focusChangeSource:"",fixMargin:0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(a).media!==a}},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["done","go","next","search","send"].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())},_onCompositionstart:function(e){this.composing=!0},_onCompositionend:function(e){this.composing&&(this.composing=!1,this._onInput(e))},_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.valueComposition=e.target.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=""}}},c=s,u=(n("9400"),n("2877")),l=Object(u["a"])(c,r,o,!1,null,null,null);t["default"]=l.exports},"57a7":function(e,t,n){"use strict";n.r(t),n.d(t,"createInnerAudioContext",(function(){return f}));var r=n("db70");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var s=["canplay","play","pause","stop","ended","timeUpdate","error","waiting","seeking","seeked"],c=[{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"autoplay",default:!1,cache:!0},{name:"loop",default:!1,cache:!0},{name:"obeyMuteSwitch",default:!0,readonly:!0,cache:!0},{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"buffered",readonly:!0},{name:"volume"},{name:"sessionCategory"}],u=function(){function e(t){var n=this;o(this,e),this.id=t,this._callbacks={},this._options={},s.forEach((function(e){n._callbacks[e.toLowerCase()]=[]})),c.forEach((function(e){var t=e.name,o={get:function(){var n=e.cache?this._options:Object(r["c"])("getAudioState",{audioId:this.id}),o=t in n?n[t]:e.default;return"number"===typeof o&&"volume"!==t?o/1e3:o}};e.readonly||(o.set=function(e){this._options[t]=e,Object(r["c"])("setAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(n,t,o)}))}return a(e,[{key:"play",value:function(){this._operate("play")}},{key:"pause",value:function(){this._operate("pause")}},{key:"stop",value:function(){this._operate("stop")}},{key:"seek",value:function(e){this._operate("seek",{currentTime:1e3*e})}},{key:"destroy",value:function(){clearInterval(this.__timing),Object(r["c"])("destroyAudioInstance",{audioId:this.id}),delete d[this.id]}},{key:"_operate",value:function(e,t){Object(r["c"])("operateAudio",Object.assign({},t,{audioId:this.id,operationType:e}))}}]),e}();function l(e,t,n,r){e._callbacks[t].forEach((function(e){"function"===typeof e&&e("error"===t?{errMsg:n,errCode:r}:{})}))}s.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);e=e.toLowerCase(),u.prototype["on".concat(t)]=function(t){this._callbacks[e].push(t)},u.prototype["off".concat(t)]=function(t){var n=this._callbacks[e],r=n.indexOf(t);r>=0&&n.splice(r,1)}})),Object(r["d"])("onAudioStateChange",(function(e){var t=e.state,n=e.audioId,r=e.errMsg,o=e.errCode,i=d[n];if(i)if(l(i,t,r,o),"play"===t){var a=i.currentTime;i.__timing=setInterval((function(){var e=i.currentTime;e!==a&&l(i,"timeupdate")}),200)}else"pause"!==t&&"stop"!==t&&"error"!==t||clearInterval(i.__timing)}));var d=Object.create(null);function f(){var e=Object(r["c"])("createAudioInstance"),t=e.audioId,n=new u(t);return d[t]=n,n}},"581a":function(e,t,n){},5881:function(e,t,n){"use strict";(function(e){var n={ensp:" ",emsp:" ",nbsp:" "};t["a"]={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&&n[this.space]&&(e=e.replace(/ /g,n[this.space])),this.decode&&(e=e.replace(/&nbsp;/g,n.nbsp).replace(/&ensp;/g,n.ensp).replace(/&emsp;/g,n.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'")),e}},render:function(t){var n=this,r=[];return this.$slots.default&&this.$slots.default.forEach((function(o){if(o.text){var i=o.text.replace(/\\n/g,"\n"),a=i.split("\n");a.forEach((function(e,o){r.push(n._decodeHtml(e)),o!==a.length-1&&r.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."),r.push(o)})),t("uni-text",{on:this.$listeners,attrs:{selectable:!!this.selectable}},[t("span",{},r)])}}}).call(this,n("3ad9")["default"])},"594d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-map",e._g({attrs:{id:e.id}},e.$listeners),[e._l(e.markers,(function(t){return n("map-marker",e._b({key:t.id},"map-marker",t,!1))})),n("div",{ref:"map",staticStyle:{width:"100%",height:"100%",position:"relative",overflow:"hidden"}}),n("div",{staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}},[e._t("default")],2)],2)},o=[],i=n("738e"),a=i["a"],s=(n("3f7e"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},5964:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"setNavigationBarColor",(function(){return i})),n.d(t,"showNavigationBarLoading",(function(){return a})),n.d(t,"hideNavigationBarLoading",(function(){return s})),n.d(t,"setNavigationBarTitle",(function(){return c}));var r=n("79d5");function o(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object(r["getPageHolder"])(n.__page__);if(o)switch(t){case"setNavigationBarColor":var i=n.frontColor,a=n.backgroundColor,s=n.animation,c=s.duration,u=s.timingFunc;i&&(o.navigationBar.textColor="#000000"===i?"black":"white"),a&&(o.navigationBar.backgroundColor=a),e.emit("onNavigationBarChange",{textColor:"#000000"===i?"#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,Object(r["isCurrentPage"])(o)&&(document.title=l),e.emit("onNavigationBarChange",{titleText:l});break}return{}}function i(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("0dd1"))},"5a23":function(e,t,n){"use strict";n("f2b3");var r,o=n("5cf8");function i(){}t["a"]={name:"Keyboard",mixins:[o["a"]],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}},directives:{keyboard:{inserted:function(e,t,n){n.context.initKeyboard(e)}}},methods:{initKeyboard:function(e){e.addEventListener("focus",(function(){clearTimeout(r),document.addEventListener("click",i,!1)}));var t=function(){document.removeEventListener("click",i,!1),0===String(navigator.vendor).indexOf("Apple")&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)};e.addEventListener("blur",(function(){e.blur(),t()}))}}}},"5a56":function(e,t,n){"use strict";n.r(t),t["default"]={methods:{beforeTransition:function(){},afterTransition:function(){}}}},"5ab3":function(e,t,n){"use strict";var r=n("b2bb"),o=n.n(r);o.a},"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=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.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()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.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]}))},r.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},r.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}))))},r.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))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():l();this._observationTargets.forEach((function(r){var i=r.element,a=u(i),s=this._rootContainsTarget(i),c=r.entry,l=e&&s&&this._computeTargetAndRootIntersection(i,t),d=r.entry=new n({time:o(),target:i,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)},r.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){var r=u(t),o=r,i=f(t),a=!1;while(!a){var s=null,l=1==i.nodeType?window.getComputedStyle(i):{};if("none"==l.display)return;if(i==this.root||i==e?(a=!0,s=n):i!=e.body&&i!=e.documentElement&&"visible"!=l.overflow&&(s=u(i)),s&&(o=c(s,o),!o))break;i=f(i)}return o}},r.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},r.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},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!==i<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},r.prototype._rootContainsTarget=function(t){return d(this.root||e,t)},r.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},r.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=r,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,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function r(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=i(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 i(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function a(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function s(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-o,s=r-n;return a>=0&&s>=0&&{top:n,bottom:r,left:o,right:i,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}})()},"5cf8":function(e,t,n){"use strict";function r(e,t){for(var n=this.$children,o=n.length,i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;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===r.apply(u,[e,t].concat([a])))return!1}}t["a"]={methods:{$dispatch:function(e,t){"string"===typeof e&&(e=[e]);var n=this.$parent||this.$root,r=n.$options.name&&n.$options.name.substr(4);while(n&&(!r||!~e.indexOf(r)))n=n.$parent,n&&(r=n.$options.name&&n.$options.name.substr(4));if(n){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];n.$emit.apply(n,[t].concat(i))}},$broadcast:function(e,t){"string"===typeof e&&(e=[e]);for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(this,[e,t].concat(o))}}}},"5d1d":function(e,t,n){"use strict";var r=n("50c5"),o=n.n(r);o.a},"5d70":function(e,t,n){},"5dc1":function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l})),n("5abe");var o=n("85b6"),i=n("db8e");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,r=n.height,o=n.width,i=e.intersectionRect,a=i.height,s=i.width;return 0!==t?t:a===r?s/o:a/r}var c={};function u(t,n){var u,l=t.reqId,d=t.component,f=t.options;if(n._isVue)u=n;else{var h=getCurrentPages(),p=h.find((function(e){return e.$page.id===n}));if(!p)throw new Error("Not Found:Page[".concat(n,"]"));u=p.$vm}var g=Object(i["b"])(d,u),v=f.relativeToSelector?g.querySelector(f.relativeToSelector):null,m=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:Object(o["b"])(t.target),id:t.target.id}})}))}),{root:v,rootMargin:f.rootMargin,threshold:f.thresholds});if(f.observeAll)m.USE_MUTATION_OBSERVER=!0,Array.prototype.map.call(g.querySelectorAll(f.selector),(function(e){e?m.observe(e):r.warn("Node ".concat(f.selector," is not found. Intersection observer will not trigger."))}));else{m.USE_MUTATION_OBSERVER=!1;var _=g.querySelector(f.selector);if(!_)return void r.warn("Node ".concat(f.selector," is not found. Intersection observer will not trigger."));m.observe(_)}}function l(t){var n=t.reqId,r=c[n];r&&(r.disconnect(),delete c[n],e.publishHandler("onRequestComponentObserver",{reqId:n,reqEnd:!0}))}}).call(this,n("501c"),n("3ad9")["default"])},"5dc4":function(e,t,n){},"5ff9":function(e,t,n){"use strict";n.r(t),n.d(t,"loadFontFace",(function(){return r}));var r={family:{type:String,required:!0},source:{type:String,required:!0},desc:{type:Object,required:!1},success:{type:Function,required:!1},fail:{type:Function,required:!1},complete:{type:Function,required:!1}}},6062:function(e,t,n){"use strict";var r=n("ef36"),o=n.n(r);o.a},"60db":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EditorContext",(function(){return u}));var r=n("f2b3");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(t,n,r,o){e.publishHandler(n+"-editor-"+t,{componentId:t,type:r,data:o},n)}e.subscribe("onEditorMethodCallback",(function(e){var t=e.callbackId,n=e.data;r["a"].invoke(t,n)}));var c=["insertDivider","insertImage","insertText","setContents","getContents","clear","removeFormat","undo","redo","blur","getSelectionText","scrollIntoView"],u=function(){function e(t,n){o(this,e),this.id=t,this.pageId=n}return a(e,[{key:"format",value:function(e,t){s(this.id,this.pageId,"format",{options:{name:e,value:t}})}}]),e}();c.forEach((function(e){u.prototype[e]=r["a"].warp((function(t,n){s(this.id,this.pageId,e,{options:t,callbackId:n})}))}))}.call(this,n("0dd1"))},"60ee":function(e,t,n){},6150:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-audio",e._g({attrs:{id:e.id,controls:!!e.controls}},e.$listeners),[n("audio",{ref:"audio",staticStyle:{display:"none"},attrs:{loop:e.loop}}),n("div",{staticClass:"uni-audio-default"},[n("div",{staticClass:"uni-audio-left",style:"background-image: url("+e.$getRealPath(e.poster)+");"},[n("div",{staticClass:"uni-audio-button",class:{play:!e.playing,pause:e.playing},on:{click:e.trigger}})]),n("div",{staticClass:"uni-audio-right"},[n("div",{staticClass:"uni-audio-time"},[e._v(" "+e._s(e.currentTime)+" ")]),n("div",{staticClass:"uni-audio-info"},[n("div",{staticClass:"uni-audio-name"},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"uni-audio-author"},[e._v(" "+e._s(e.author)+" ")])])])])])},o=[],i=n("8af1"),a={name:"Audio",mixins:[i["g"]],props:{id:{type:String,default:""},src:{type:String,default:""},loop:{type:[Boolean,String],default:!1},controls:{type:[Boolean,String],default:!1},poster:{type:String,default:""},name:{type:String,default:""},author:{type:String,default:""}},data:function(){return{playing:!1,currentTime:this.getTime(0)}},watch:{src:function(e){this.$refs.audio&&(this.$refs.audio.src=this.$getRealPath(e))}},mounted:function(){var e=this,t=this.$refs.audio;t.addEventListener("error",(function(t){e.playing=!1,e.$trigger("error",t,{})})),t.addEventListener("play",(function(t){e.playing=!0,e.$trigger("play",t,{})})),t.addEventListener("pause",(function(t){e.playing=!1,e.$trigger("pause",t,{})})),t.addEventListener("ended",(function(t){e.playing=!1,e.$trigger("ended",t,{})})),t.addEventListener("timeupdate",(function(n){var r=t.currentTime;e.currentTime=e.getTime(r);var o=t.duration;e.$trigger("timeupdate",n,{currentTime:r,duration:o})})),t.src=this.$getRealPath(this.src)},methods:{_handleSubscribe:function(e){var t=e.type,n=e.data,r=void 0===n?{}:n,o=this.$refs.audio;switch(t){case"setSrc":o.src=this.$getRealPath(r.src),this.$emit("update:src",r.src);break;case"play":o.play();break;case"pause":o.pause();break;case"seek":o.currentTime=r.position;break}},trigger:function(){this.playing?this.$refs.audio.pause():this.$refs.audio.play()},getTime:function(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60);t=(t<10?"0":"")+t,n=(n<10?"0":"")+n,r=(r<10?"0":"")+r;var o=n+":"+r;return"00"!==t&&(o=t+":"+o),o}}},s=a,c=(n("02b5"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},"61c2":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("f2b3"),o=n("8af1");function i(){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&&(Object(r["i"])(n.data.attrs,"name")&&(e.propsData.name=n.data.attrs.name),Object(r["i"])(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["a"].methods),Object.assign(e.methods,o["a"].methods);var c=e.created;t.constructor.options.created=e.created=c?[].concat(i,c):[i];var u=e.beforeDestroy;t.constructor.options.beforeDestroy=e.beforeDestroy=u?[].concat(a,u):[a]}}};function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=c({},s.name,s);function l(e,t){e.behaviors.forEach((function(n){var r=u[n];r&&r.init(e,t)}))}},6226:function(e,t,n){"use strict";var r=n("77d5"),o=n.n(r);o.a},"626d":function(e,t,n){"use strict";n.r(t),function(e){var r=n("f2b3");t["default"]={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,Object(r["k"])(this.onActionSheetCloseCallback)&&this.onActionSheetCloseCallback(e)}}}}.call(this,n("0dd1"))},"62b5":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={};function o(e){var t=r[e];return t||(t={id:1,callbacks:Object.create(null)},r[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}}}},"636c":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}));var r="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=",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",i={QQ:"qq",GOOGLE:"google",UNKNOWN:""};function a(){var e=i.UNKNOWN,t="";return __uniConfig.qqMapKey?(e=i.QQ,t=__uniConfig.qqMapKey):__uniConfig.googleMapKey&&(e=i.GOOGLE,t=__uniConfig.googleMapKey),{type:e,key:t}}},6389:function(t,n){t.exports=e},"639e":function(e,t,n){"use strict";var r=n("15ff"),o=n.n(r);o.a},6428:function(e,t,n){"use strict";var r=n("f756"),o=n.n(r);o.a},6481:function(e,t,n){"use strict";n.r(t),n.d(t,"base64ToArrayBuffer",(function(){return r})),n.d(t,"arrayBufferToBase64",(function(){return o}));var r=[{name:"base64",type:String,required:!0}],o=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}]},6491:function(e,t,n){"use strict";n.r(t);var r=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)])},o=[],i=n("8af1"),a={name:"Radio",mixins:[i["a"],i["f"]],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}}},s=a,c=(n("c96e"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},"64d0":function(e,t,n){"use strict";var r=n("c0e5"),o=n.n(r);o.a},6575:function(e,t,n){"use strict";n.r(t),function(e){function r(t,n){var r=t.latitude,o=t.longitude,i=t.scale,a=t.name,s=t.address,c=e,u=c.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/open-location",query:{latitude:r,longitude:o,scale:i,name:a,address:s}},(function(){u(n,{errMsg:"openLocation:ok"})}),(function(){u(n,{errMsg:"openLocation:fail"})}))}n.d(t,"openLocation",(function(){return r}))}.call(this,n("0dd1"))},"65a8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a}));var r=44,o=50,i=768,a="UNI_LOCALE"},6730:function(e,t,n){"use strict";var r=n("00b2"),o=n.n(r);o.a},"68fb":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createMediaQueryObserver",(function(){return d}));var r=n("62b5"),o=n("db70"),i=n("1634");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var u=Object(r["a"])("requestMediaQueryObserver"),l=function(){function t(e,n){a(this,t),this.pageId=e.$page&&e.$page.id,this.component=e._$id||e,this.options=n}return c(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},Object(i["a"])(this.component)?this.component:this.pageId))}},{key:"disconnect",value:function(){e.publishHandler("destroyMediaQueryObserver",{reqId:this.reqId},Object(i["a"])(this.component)?this.component:this.pageId)}}]),t}();function d(e,t){return e._isVue||(t=e,e=null),new l(e||Object(o["b"])("createMediaQueryObserver"),t)}}.call(this,n("0dd1"))},"69c3":function(e,t,n){},"6bdf":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n("85b6"),o=n("a470"),i=n("db8e");function a(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,r=document.body;t.scrollLeft=n.scrollLeft||r.scrollLeft||0,t.scrollTop=n.scrollTop||r.scrollTop||0,t.scrollHeight=n.scrollHeight||r.scrollHeight||0,t.scrollWidth=n.scrollWidth||r.scrollWidth||0}return t}function s(e,t){var n={},i=Object(o["a"])(),a=i.top;if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Object(r["b"])(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 c(e,t,n,r,o){var a=Object(i["a"])(Object(i["b"])(t,e));if(!a||a&&8===a.nodeType)return r?null:[];if(r){var c=a.matches(n)?a:a.querySelector(n);return c?s(c,o):null}var u=[],l=a.querySelectorAll(n);return l&&l.length&&(u=[].map.call(l,(function(e){return s(e,o)}))),a.matches(n)&&u.unshift(s(a,o)),u}function u(t,n){var r,o=t.reqId,i=t.reqs;if(n._isVue)r=n;else{var s=getCurrentPages(),u=s.find((function(e){return e.$page.id===n}));if(!u)throw new Error("Not Found:Page[".concat(n,"]"));r=u.$vm}var l=[];i.forEach((function(e){var t=e.component,n=e.selector,o=e.single,i=e.fields;0===t?l.push(a(i)):l.push(c(r,t,n,o,i))})),e.publishHandler("onRequestComponentInfo",{reqId:o,res:l})}}).call(this,n("501c"))},"6e0c":function(e,t,n){"use strict";n.r(t),n.d(t,"$on",(function(){return s})),n.d(t,"$off",(function(){return c})),n.d(t,"$once",(function(){return u})),n.d(t,"$emit",(function(){return l}));var r=n("8bbf"),o=n.n(r),i=new o.a;function a(e,t,n){return e[t].apply(e,n)}function s(){return a(i,"$on",Array.prototype.slice.call(arguments))}function c(){return a(i,"$off",Array.prototype.slice.call(arguments))}function u(){return a(i,"$once",Array.prototype.slice.call(arguments))}function l(){return a(i,"$emit",Array.prototype.slice.call(arguments))}},"6fa7":function(e,t,n){"use strict";n.r(t);var r=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(" "+e._s(e.$$t("uni.picker.cancel"))+" ")]),n("div",{staticClass:"uni-picker-action uni-picker-action-confirm",on:{click:e._change}},[e._v(" "+e._s(e.$$t("uni.picker.done"))+" ")])]),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,r){return n("v-uni-picker-view-column",{key:r},e._l(t,(function(t,o){return n("div",{key:o,staticClass:"uni-picker-item"},[e._v(" "+e._s("object"===typeof t?t[e.rangeKey]||"":e._l10nItem(t,r))+" ")])})),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,r){return n("div",{key:r,staticClass:"uni-picker-item",class:{selected:e.valueArray[0]===r},on:{click:function(t){e.valueArray[0]=r,e._change()}}},[e._v(" "+e._s("object"===typeof t?t[e.rangeKey]||"":t)+" ")])})),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)},o=[],i=n("8af1"),a=n("f2b3"),s=n("4ccd"),c=n("da71"),u=n("a6b0");function l(e){return p(e)||h(e)||f(e)||d()}function d(){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 f(e,t){if(e){if("string"===typeof e)return g(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)?g(e,t):void 0}}function h(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return g(e)}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){if(this.mode===_.TIME)return"00:00";if(this.mode===_.DATE){var e=(new Date).getFullYear()-100;switch(this.fields){case y.YEAR:return e.toString();case y.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function m(){if(this.mode===_.TIME)return"23:59";if(this.mode===_.DATE){var e=(new Date).getFullYear()+100;switch(this.fields){case y.YEAR:return e.toString();case y.MONTH:return e+"-12";default:return e+"-12-31"}}return""}var _={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},y={YEAR:"year",MONTH:"month",DAY:"day"},b={PICKER:"picker",SELECT:"select"},M={name:"Picker",components:{keypress:c["a"]},mixins:[u["c"],i["a"],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:_.SELECTOR,validator:function(e){return Object.values(_).includes(e)}},fields:{type:String,default:""},start:{type:String,default:v},end:{type:String,default:m},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 _.SELECTOR:return[e];case _.MULTISELECTOR:return e;case _.TIME:return this.timeArray;case _.DATE:var t=this.dateArray;switch(this.fields){case y.YEAR:return[t[0]];case y.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}return[]},startArray:function(){return this._getDateValueArray(this.start,v.bind(this)())},endArray:function(){return this._getDateValueArray(this.end,m.bind(this)())},selectorTypeComputed:function(){var e=this.selectorType;return Object.values(b).includes(e)?e:0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0?b.PICKER:b.SELECT},system:function(){if(this.mode===_.DATE&&!Object.values(y).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===_.TIME||this.mode===_.DATE){var n=this.mode===_.TIME?this._getTimeValue:this._getDateValue,r=this.valueArray,o=this.startArray,i=this.endArray;if(this.mode===_.DATE){var a=this.dateArray,s=a[2].length,c=Number(a[2][r[2]])||1,u=new Date("".concat(a[0][r[0]],"/").concat(a[1][r[1]],"/").concat(c)).getDate();u<c&&(r[2]-=u+s-c)}n(r)<n(o)?this._cloneArray(r,o):n(r)>n(i)&&this._cloneArray(r,i)}e.forEach((function(e,n){e!==t.oldValueArray[n]&&(t.oldValueArray[n]=e,t.mode===_.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 r=e.currentTarget.getBoundingClientRect();this.popover={top:r.top,left:r.left,width:r.width,height:r.height},setTimeout((function(){t.visible=!0}),20)}},_getFormData:function(){return{value:this.valueSync,key:this.name}},_resetFormData:function(){switch(this.mode){case _.SELECTOR:this.valueSync=0;break;case _.MULTISELECTOR:this.valueSync=this.value.map((function(e){return 0}));break;case _.DATE:case _.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 r=0;r<60;r++)t.push((r<10?"0":"")+r);this.timeArray.push(e,t)},_createDate:function(){for(var e=[],t=(new Date).getFullYear(),n=t-150,r=t+150;n<=r;n++)e.push(String(n));for(var o=[],i=1;i<=12;i++)o.push((i<10?"0":"")+i);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 _.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 r=Number(e[n]),o=Number(this.valueSync[n]),i=isNaN(r)?isNaN(o)?0:o:r,a=this.range[n]?this.range[n].length-1:0;this.valueSync.splice(n,1,i<0||i>a?0:i)}break;case _.TIME:case _.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 _.MULTISELECTOR:e=l(t);break;case _.TIME:e=this._getDateValueArray(t,Object(a["g"])({mode:_.TIME}));break;case _.DATE:e=this._getDateValueArray(t,Object(a["g"])({mode:_.DATE}));break;default:e=[t];break}this.oldValueArray=l(e),this.valueArray=l(e)},_getValue:function(){var e=this,t=this.valueArray;switch(this.mode){case _.SELECTOR:return t[0];case _.MULTISELECTOR:return t.map((function(e){return e}));case _.TIME:return this.valueArray.map((function(t,n){return e.timeArray[n][t]})).join(":");case _.DATE:return this.valueArray.map((function(t,n){return e.dateArray[n][t]})).join("-")}},_getDateValueArray:function(e,t){var n,r=this.mode===_.DATE?"-":":",o=this.mode===_.DATE?this.dateArray:this.timeArray;if(this.mode===_.TIME)n=2;else switch(this.fields){case y.YEAR:n=1;break;case y.MONTH:n=2;break;default:n=3;break}for(var i=String(e).split(r),a=[],s=0;s<n;s++){var c=i[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,r=t.left,o=t.width,i=t.height,a=e.pageX,s=e.pageY;if(a>r&&a<r+o&&s>n&&s<n+i)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===_.SELECTOR&&this.selectorTypeComputed===b.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,r=32;n.left="".concat(e.clientX-t.left-1.5*r,"px"),n.top="".concat(e.clientY-t.top-.5*r,"px")}},_pickerViewChange:function(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn:function(e,t){if(this.mode===_.DATE){var n=Object(u["a"])();if(!n.startsWith("zh"))switch(this.fields){case y.YEAR:return e;case y.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===_.DATE){var n=Object(u["a"])();if(n.startsWith("zh")){var r=["年","月","日"];return e+r[t]}if(this.fields!==y.YEAR&&t===(this.fields===y.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}}},S=M,k=(n("2d89"),n("2877")),w=Object(k["a"])(S,r,o,!1,null,null,null);t["default"]=w.exports},"70bb":function(e,t,n){"use strict";n.r(t),n.d(t,"openLocation",(function(){return r}));var r={latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},scale:{type:Number,validator:function(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18},default:18},name:{type:String},address:{type:String}}},"70f4":function(e,t,n){"use strict";n.r(t);var r=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)},o=[],i=n("f2ce"),a=i["a"],s=(n("6730"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},7107:function(e,t,n){"use strict";(function(e){function r(t){var n=t.options,r=t.callbackId,o=n.family,i=n.source,a=n.desc,s=void 0===a?{}:a,c=document.fonts;if(c){var u=new FontFace(o,i,s);u.load().then((function(){c.add(u),e.publishHandler("onLoadFontFaceCallback",{callbackId:r,data:{errMsg:"loadFontFace:ok"}})})).catch((function(t){e.publishHandler("onLoadFontFaceCallback",{callbackId:r,data:{errMsg:"loadFontFace:fail ".concat(t)}})}))}else{var l=document.createElement("style");l.innerText='@font-face{font-family:"'.concat(o,'";src:').concat(i,";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:r,data:{errMsg:"loadFontFace:ok"}})}}n.d(t,"a",(function(){return r}))}).call(this,n("501c"))},"72ad":function(e,t,n){},"72b3":function(e,t,n){"use strict";function r(e,t,n){return e>t-n&&e<t+n}function o(e,t){return r(e,0,t)}function i(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}n.d(t,"a",(function(){return i})),i.prototype._solve=function(e,t){var n=this._c,r=this._m,o=this._k,i=n*n-4*r*o;if(0===i){var a=-n/(2*r),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(i>0){var u=(-n-Math.sqrt(i))/(2*r),l=(-n+Math.sqrt(i))/(2*r),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 h=Math.sqrt(4*r*o-n*n)/(2*r),p=-n/2*r,g=e,v=(t-p*e)/h;return{x:function(e){return Math.pow(Math.E,p*e)*(g*Math.cos(h*e)+v*Math.sin(h*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(h*e),r=Math.sin(h*e);return t*(v*h*n-g*h*r)+p*t*(v*r+g*n)}}},i.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},i.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},i.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!o(t,.4)){t=t||0;var r=this._endPosition;this._solution&&(o(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),o(t,.4)&&(t=0),o(r,.4)&&(r=0),r+=this._endPosition),this._solution&&o(r-e,.4)&&o(t,.4)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}},i.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},i.prototype.done=function(e){return e||(e=(new Date).getTime()),r(this.x(),this._endPosition,.4)&&o(this.dx(),.4)},i.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())},i.prototype.springConstant=function(){return this._k},i.prototype.damping=function(){return this._c},i.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}]}},"738e":function(e,t,n){"use strict";(function(e){var r=n("8af1"),o=n("31c6"),i=n("453f"),a=n("636c");function s(e){return"getLat"in e?e.getLat():e.lat()}function c(e){return"getLng"in e?e.getLng():e.lng()}t["a"]={name:"Map",components:{mapMarker:i["a"]},mixins:[r["g"]],props:{id:{type:String,default:""},latitude:{type:[String,Number],default:39.92},longitude:{type:[String,Number],default:116.46},scale:{type:[String,Number],default:16},markers:{type:Array,default:function(){return[]}},covers:{type:Array,default:function(){return[]}},includePoints:{type:Array,default:function(){return[]}},polyline:{type:Array,default:function(){return[]}},circles:{type:Array,default:function(){return[]}},controls:{type:Array,default:function(){return[]}},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:function(){return[]}}},data:function(){return{center:{latitude:116.46,longitude:116.46},isMapReady:!1,isBoundsReady:!1,polylineSync:[],circlesSync:[],controlsSync:[]}},watch:{latitude:function(){this.centerChange()},longitude:function(){this.centerChange()},scale:function(e){var t=this;this.mapReady((function(){t._map.setZoom(Number(e)||16)}))},polyline:function(e){var t=this;this.mapReady((function(){t.createPolyline()}))},circles:function(){var e=this;this.mapReady((function(){e.createCircles()}))},controls:function(){var e=this;this.mapReady((function(){e.createControls()}))},includePoints:function(){var e=this;this.mapReady((function(){e.fitBounds(e.includePoints)}))},showLocation:function(e){var t=this;this.mapReady((function(){t[e?"createLocation":"removeLocation"]()}))}},created:function(){this._markers={};var e=this.latitude,t=this.longitude;e&&t&&(this.center.latitude=e,this.center.longitude=t)},mounted:function(){var e=this;Object(o["a"])(this.libraries,(function(t){e._maps=t,e.init()}))},beforeDestroy:function(){this.removePolyline(),this.removeCircles(),this.removeControls(),this.removeLocation()},methods:{_handleSubscribe:function(e){var t=this,n=e.type,r=e.data,o=void 0===r?{}:r,i=this._maps;function a(e,t){e=e||{},e.errMsg="".concat(n,":").concat(t?"fail"+t:"ok");var r=t?o.fail:o.success;"function"===typeof r&&r(e),"function"===typeof o.complete&&o.complete(e)}switch(n){case"getCenterLocation":this.mapReady((function(){var e,n,r=t._map.getCenter();e=s(r),n=c(r),a({latitude:e,longitude:n})}));break;case"moveToLocation":var u=o.latitude,l=o.longitude,d=u&&l?new i.LatLng(u,l):this._locationPosition;d&&(this._map.setCenter(d),a({}));break;case"translateMarker":this.mapReady((function(){try{var e=t.getMarker(o.markerId),n=o.destination,r=o.duration,s=!!o.autoRotate,c=Number(o.rotate)?o.rotate:0,u=0;"getRotation"in e&&(u=e.getRotation());var l=e.getPosition(),d=new i.LatLng(n.latitude,n.longitude),f=i.geometry.spherical.computeDistanceBetween(l,d)/1e3,h=("number"===typeof r?r:1e3)/36e5,p=f/h,g=i.event.addListener(e,"moving",(function(t){var n=t.latLng,r=e.label;r&&r.setPosition(n);var o=e.callout;o&&o.setPosition(n)})),v=i.event.addListener(e,"moveend",(function(t){v.remove(),g.remove(),e.lastPosition=l,e.setPosition(d);var n=e.label;n&&n.setPosition(d);var r=e.callout;r&&r.setPosition(d);var i=o.animationEnd;"function"===typeof i&&i()})),m=0;s&&(e.lastPosition&&(m=i.geometry.spherical.computeHeading(e.lastPosition,l)),c=i.geometry.spherical.computeHeading(l,d)-m),"setRotation"in e&&e.setRotation(u+c),"moveTo"in e?e.moveTo(d,p):(e.setPosition(d),i.event.trigger(e,"moveend",{}))}catch(_){a(null,_)}}));break;case"includePoints":this.fitBounds(o.points);break;case"getRegion":this.boundsReady((function(){var e=t._map.getBounds(),n=e.getSouthWest(),r=e.getNorthEast();a({southwest:{latitude:s(n),longitude:c(n)},northeast:{latitude:s(r),longitude:c(r)}})}));break;case"getScale":this.mapReady((function(){a({scale:t._map.getZoom()})}));break}},init:function(){var e=this,t=this._maps,n=new t.LatLng(this.center.latitude,this.center.longitude),r=this._map=new t.Map(this.$refs.map,{center:n,zoom:Number(this.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0}),o=t.event.addListener(r,"bounds_changed",(function(t){o.remove(),e.isBoundsReady=!0,e.$emit("boundsready")}));function i(){var e=r.getCenter();return{scale:r.getZoom(),centerLocation:{latitude:s(e),longitude:c(e)}}}t.event.addListener(r,"click",(function(){e.$trigger("click",{},{})})),t.event.addListener(r,"dragstart",(function(){e.$trigger("regionchange",{},{type:"begin",causedBy:"gesture"})})),t.event.addListener(r,"dragend",(function(){e.$trigger("regionchange",{},Object.assign({type:"end",causedBy:"drag"},i()))})),t.event.addListener(r,"zoom_changed",(function(){e.$emit("update:scale",r.getZoom()),e.$trigger("regionchange",{},Object.assign({type:"end",causedBy:"scale"},i()))})),t.event.addListener(r,"center_changed",(function(){var t,n,o=r.getCenter();t=s(o),n=c(o),e.$emit("update:latitude",t),e.$emit("update:longitude",n)})),this.polyline&&Array.isArray(this.polyline)&&this.polyline.length&&this.createPolyline(),this.circles&&Array.isArray(this.circles)&&this.circles.length&&this.createCircles(),this.controls&&Array.isArray(this.controls)&&this.controls.length&&this.createControls(),this.showLocation&&this.createLocation(),this.includePoints&&Array.isArray(this.includePoints)&&this.includePoints.length&&this.fitBounds(this.includePoints,(function(){r.setCenter(n)})),this.isMapReady=!0,this.$emit("mapready"),this.$trigger("updated",{},{})},centerChange:function(){var e=this,t=this._maps,n=Number(this.latitude),r=Number(this.longitude);n===this.center.latitude&&r===this.center.longitude||(this.center.latitude=n,this.center.longitude=r,this._map&&this.mapReady((function(){e._map.setCenter(new t.LatLng(n,r))})))},createPolyline:function(){var e=this._maps,t=this._map,n=this.polylineSync;this.removePolyline(),this.polyline.forEach((function(r){var o=[];if(r.points.forEach((function(t){o.push(new e.LatLng(t.latitude,t.longitude))})),r.borderWidth){var i=new e.Polyline({map:t,clickable:!1,path:o,strokeWeight:r.width+r.borderWidth,strokeColor:r.borderColor,strokeDashStyle:r.dottedLine?"dash":"solid"});n.push(i)}var a=new e.Polyline({map:t,clickable:!1,path:o,strokeWeight:r.width,strokeColor:r.color,strokeDashStyle:r.dottedLine?"dash":"solid"});n.push(a)}))},removePolyline:function(){var e=this.polylineSync;e.forEach((function(e){e.setMap(null)})),e.splice(0,e.length)},createCircles:function(){var e=this._maps,t=this._map,n=this.circlesSync;this.removeCircles(),this.circles.forEach((function(r){var o=new e.LatLng(r.latitude,r.longitude);function i(t){var n=t&&t.match(/#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?/);return"Color"in e?n&&n.length?e.Color.fromHex(n[0],Number("0x"+n[1]||!1)/255):void 0:t}var a=new e.Circle({map:t,center:o,clickable:!1,radius:r.radius,strokeWeight:Number(r.strokeWidth)||1,fillColor:i(r.fillColor)||i("#00000001"),strokeColor:i(r.color)||"#000000",strokeDashStyle:"solid"});n.push(a)}))},removeCircles:function(){var e=this.circlesSync;e.forEach((function(e){e.setMap(null)})),e.splice(0,e.length)},createControls:function(){var e=this,t=this._maps,n=this,r=this._map,o=this.controlsSync;this.removeControls(),this.controls.forEach((function(i){var a=i.position||{},s=document.createElement("div"),c=new Image;s.appendChild(c);var u=s.style;u.position="absolute",u.width=0,u.height=0,c.onload=function(){i.position.width&&(c.width=i.position.width),i.position.height&&(c.height=i.position.height);var e=c.style;e.position="absolute",e.left=(a.left||0)+"px",e.top=(a.top||0)+"px",e.maxWidth="initial"},c.src=e.$getRealPath(i.iconPath),c.onclick=function(e){i.clickable&&n.$trigger("controltap",e,{controlId:i.id})},r.controls[t.ControlPosition.TOP_LEFT].push(s),o.push(s)}))},removeControls:function(){var e=this.controlsSync;e.forEach((function(e){e.remove()})),e.splice(0,e.length)},createLocation:function(){var t=this,n=this._maps,r=this._map,o=this._location;o&&this.removeLocation(),uni.getLocation({type:"gcj02",success:function(e){if(o===t._location){var i=new n.LatLng(e.latitude,e.longitude);o=new n.Marker({position:i,map:r,icon:new n.MarkerImage(a["a"],null,null,new n.Point(22,22),new n.Size(44,44)),flat:!0,rotation:0}),t._location=o,s(),t.__onCompassChange=function(e){o.setRotation(e.direction)},uni.onCompassChange(t.__onCompassChange)}},fail:function(t){e.error(t)}});var i=this;function s(){o===i._location&&setTimeout((function(){uni.getLocation({type:"gcj02",success:function(e){var t=i._locationPosition=new n.LatLng(e.latitude,e.longitude);o.setPosition(t)},fail:function(t){e.error(t)},complete:function(){s()}})}),3e4)}},removeLocation:function(){var e=this._location;e&&(e.setMap(null),this._location=null,this._locationPosition=null,uni.offCompassChange(this.__onCompassChange))},fitBounds:function(e,t){var n=this,r=this._maps;this.boundsReady((function(){var o=n._map,i=new r.LatLngBounds;e.forEach((function(e){var t=e.longitude,n=e.latitude,o=new r.LatLng(n,t);i.extend(o)})),o.fitBounds(i),"function"===typeof t&&t()}))},mapReady:function(e){this.isMapReady?e():this.$once("mapready",(function(){e()}))},boundsReady:function(e){this.isBoundsReady?e():this.$once("boundsready",(function(){e()}))},getMarker:function(e){var t=this._markers[e];if(!t)throw new Error("translateMarker: fail cannot find marker with id "+e);return t}}}}).call(this,n("3ad9")["default"])},7572:function(e,t,n){},"764a":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n("f2b3"),o=n("85b6"),i=n("65a8"),a=n("33ed"),s=!!r["q"]&&{passive:!1};function c(t){if(uni.canIUse("css.var")){var n=parseFloat(__uniConfig.tabBar.height),r=t.$parent.$parent,o=r.navigationBar.type,a="default"===o||"float"===o?i["a"]:0,s=getApp().$children[0].showTabBar?isNaN(n)?i["c"]: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 i=e.$parent.$parent;e._isMounted&&c(e),n&&document.removeEventListener("touchmove",n,s),i.disableScroll&&(n=a["b"],document.addEventListener("touchmove",n,s));var u=Object(o["c"])(e.$options,"onPageScroll"),l=Object(o["c"])(e.$options,"onReachBottom"),d=i.onReachBottomDistance,f=Object(r["l"])(i.titleNView)&&"transparent"===i.titleNView.type||Object(r["l"])(i.navigationBar)&&"transparent"===i.navigationBar.type;t&&document.removeEventListener("scroll",t),(f||u||l)&&(t=Object(a["a"])(e.$page.id,{enablePageScroll:u,enablePageReachBottom:l,onReachBottomDistance:d,enableTransparentTitleNView:f}),requestAnimationFrame((function(){document.addEventListener("scroll",t)})))}))}}).call(this,n("3ad9")["default"])},"77d5":function(e,t,n){},"77e0":function(e,t,n){"use strict";n.r(t),function(e,r){var o=n("a6b0");t["default"]={data:function(){return{showToast:{visible:!1}}},created:function(){var t=this,n="",i=function(e){return function(r){n=e,setTimeout((function(){t.showToast=r}),10)}};e.on("onShowToast",i("onShowToast")),e.on("onShowLoading",i("onShowLoading"));var a=function(e){return function(){if(n){var i="";if("onHideToast"===e&&"onShowToast"!==n?i=Object(o["g"])("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==n&&(i=Object(o["g"])("uni.showLoading.unpaired")),i)return r.warn(i);n="",setTimeout((function(){t.showToast.visible=!1}),10)}}};e.on("onHidePopup",a("onHidePopup")),e.on("onHideToast",a("onHideToast")),e.on("onHideLoading",a("onHideLoading"))}}}.call(this,n("0dd1"),n("3ad9")["default"])},"78c8":function(e,t,n){"use strict";n.r(t),n.d(t,"getSystemInfoSync",(function(){return m})),n.d(t,"getSystemInfo",(function(){return _}));var r,o=n("a470"),i="__DC_STAT_UUID",a=window.localStorage||window.sessionStorage||{},s=function(){if(r=r||a[i],!r){r=Date.now()+""+Math.floor(1e7*Math.random());try{a[i]=r}catch(e){}}return r},c=n("d8c8"),u=n.n(c),l=navigator.userAgent,d=/android/i.test(l),f=/iphone|ipad|ipod/i.test(l),h=l.match(/Windows NT ([\d|\d.\d]*)/i),p=/Macintosh|Mac/i.test(l),g=/Linux|X11/i.test(l),v=p&&navigator.maxTouchPoints>0;function m(){var e,t,n,r=window.screen,i=window.devicePixelRatio,a=/^Apple/.test(navigator.vendor)&&"number"===typeof window.orientation,c=a&&90===Math.abs(window.orientation),m=a?Math[c?"max":"min"](r.width,r.height):r.width,_=a?Math[c?"min":"max"](r.height,r.width):r.height,y=Math.min(window.innerWidth,document.documentElement.clientWidth,m)||m,b=window.innerHeight,M=navigator.language,S=u.a.top;if(f){e="iOS";var k=l.match(/OS\s([\w_]+)\slike/);k&&(t=k[1].replace(/_/g,"."));var w=l.match(/\(([a-zA-Z]+);/);w&&(n=w[1])}else if(d){e="Android";var C=l.match(/Android[\s/]([\w\.]+)[;\s]/);C&&(t=C[1]);for(var T=l.match(/\((.+?)\)/),I=T?T[1].split(";"):l.split(" "),A=[/\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],E=0;E<I.length;E++){var O=I[E];if(O.indexOf("Build")>0){n=O.split("Build")[0].trim();break}for(var D=void 0,N=0;N<A.length;N++)if(A[N].test(O)){D=!0;break}if(!D){n=O.trim();break}}}else if(v)n="iPad",e="iOS",t="function"===typeof window.BigInt?"14.0":"13.0";else if(h||p||g){n="PC";var L=l.match(/\((.+?)\)/)[1];if(h){switch(e="Windows",t="",h[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 x=L.match(/[Win|WOW]([\d]+)/);x&&(t+=" x".concat(x[1]))}else p?(e="Mac",t=L.match(/Mac OS X (.+)/)||"",t&&(t=t[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))):g&&(e="Linux",t=L.match(/Linux (.*)/)||"",t&&(t=t[1],-1!==t.indexOf(";")&&(t=t.split(";")[0])))}else e="Other",t="0";var R="".concat(e," ").concat(t),P=e.toLocaleLowerCase(),G={left:u.a.left,right:y-u.a.right,top:u.a.top,bottom:b-u.a.bottom,width:y-u.a.left-u.a.right,height:b-u.a.top-u.a.bottom},U=Object(o["a"])(),F=U.top,j=U.bottom;return b-=F,b-=j,{windowTop:F,windowBottom:j,windowWidth:y,windowHeight:b,pixelRatio:i,screenWidth:m,screenHeight:_,language:M,statusBarHeight:S,system:R,platform:P,model:n,safeArea:G,safeAreaInsets:{top:u.a.top,right:u.a.right,bottom:u.a.bottom,left:u.a.left},deviceId:s()}}function _(){return m()}},"79d5":function(e,t,n){"use strict";function r(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}n.r(t),n.d(t,"getPageHolder",(function(){return r})),n.d(t,"isCurrentPage",(function(){return o}))},"7ac7":function(e,t,n){"use strict";(function(e){var r,o=n("8bbf"),i=n.n(o),a=n("f2b3"),s=n("65a8"),c=["top","left","right"],u=document.documentElement;function l(e,t){r||(r=u.style),r.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}t["a"]={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=i.a.component("VUniTopWindow"),this.leftWindow=i.a.component("VUniLeftWindow"),this.rightWindow=i.a.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=Object(a["c"])(e);if(!this["show"+n+"Window"]){var r="apiShow"+n+"Window";this[r]!==t&&(this[r]=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"+Object(a["c"])(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),r=!1;r=t>n,this.$emit("maxWidth",r),this.$containerElem||(this.$containerElem=document.querySelector("uni-app")),this.$containerElem&&(r&&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["b"];var r=__uniConfig[t];r&&r.matchMedia&&Object(a["i"])(r.matchMedia,"minWidth")&&(this[n]=r.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",r=window.matchMedia("(min-width: "+this[e+"WindowMinWidth"]+"px)");r.addListener((function(r){t[n]=r.matches,t.$nextTick((function(){t["on"+Object(a["c"])(e)+"WindowInit"]()}))})),this[n]=r.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")}}}}).call(this,n("0dd1"))},"7bab":function(e,t,n){"use strict";function r(){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 r=document.createElement("textarea");r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=t,r.focus(),r.select();var o=document.execCommand("Copy",!1,null);return r.blur(),o?{errMsg:"setClipboardData:ok"}:{errMsg:"setClipboardData:fail"}}n.r(t),n.d(t,"getClipboardData",(function(){return r})),n.d(t,"setClipboardData",(function(){return o}))},"7bb3":function(e,t,n){"use strict";n.r(t);var r=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)])},o=[],i=n("8af1"),a={name:"Checkbox",mixins:[i["a"],i["f"]],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}}},s=a,c=(n("f53a"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},"7c2b":function(e,t,n){"use strict";var r=n("2c45"),o=n.n(r);o.a},"7d18":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"uploadFile",(function(){return u}));var r=n("e2e2");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){function e(t,n){o(this,e),s(this,"_xhr",void 0),s(this,"_isAbort",void 0),s(this,"_callbacks",[]),this._xhr=t,this._callbackId=n}return a(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 o=t.url,i=t.file,a=t.filePath,s=t.name,u=t.files,l=t.header,d=t.formData,f=t.timeout,h=void 0===f?__uniConfig.networkTimeout&&__uniConfig.networkTimeout.uploadFile||6e4:f,p=e,g=p.invokeCallbackHandler,v=new c(null,n);function m(e){var t,r=new XMLHttpRequest,i=new FormData;Object.keys(d).forEach((function(e){i.append(e,d[e])})),Object.values(u).forEach((function(t,n){var r=t.name,o=e[n];i.append(r||"file",o,o.name||"file-".concat(Date.now()))})),r.open("POST",o),Object.keys(l).forEach((function(e){r.setRequestHeader(e,l[e])})),r.upload.onprogress=function(e){v._callbacks.forEach((function(t){var n=e.loaded,r=e.total,o=Math.round(n/r*100);t({progress:o,totalBytesSent:n,totalBytesExpectedToSend:r})}))},r.onerror=function(){clearTimeout(t),g(n,{errMsg:"uploadFile:fail"})},r.onabort=function(){clearTimeout(t),g(n,{errMsg:"uploadFile:fail abort"})},r.onload=function(){clearTimeout(t);var e=r.status;g(n,{errMsg:"uploadFile:ok",statusCode:e,data:r.responseText||r.response})},v._isAbort?g(n,{errMsg:"uploadFile:fail abort"}):(t=setTimeout((function(){r.upload.onprogress=r.onload=r.onabort=r.onerror=null,v.abort(),g(n,{errMsg:"uploadFile:fail timeout"})}),h),r.send(i),v._xhr=r)}return Array.isArray(u)&&u.length||(u=[{name:s,file:i,uri:a}]),Promise.all(u.map((function(e){var t=e.file,n=e.uri;return t instanceof Blob?Promise.resolve(Object(r["a"])(t)):Object(r["f"])(n)}))).then(m).catch((function(){setTimeout((function(){g(n,{errMsg:"uploadFile:fail file error"})}),0)})),v}}.call(this,n("0dd1"))},"7df2":function(e,t,n){},"7e6a":function(e,t,n){"use strict";var r=n("515d"),o=n.n(r);o.a},"7f4e":function(e,t,n){"use strict";function r(e){var t=e.phoneNumber;return window.location.href="tel:".concat(t),{errMsg:"makePhoneCall:ok"}}n.r(t),n.d(t,"makePhoneCall",(function(){return r}))},"80e5":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"}')},"811a":function(e,t,n){"use strict";n.r(t),n.d(t,"connectSocket",(function(){return f})),n.d(t,"sendSocketMessage",(function(){return h})),n.d(t,"closeSocket",(function(){return p})),n.d(t,"onSocketOpen",(function(){return g})),n.d(t,"onSocketError",(function(){return v})),n.d(t,"onSocketMessage",(function(){return m})),n.d(t,"onSocketClose",(function(){return _}));var r=n("a118"),o=n("db70");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var c=function(){function e(t){i(this,e),this.id=t,this._callbacks={open:[],close:[],error:[],message:[]},this.CLOSED=3,this.CLOSING=2,this.CONNECTING=0,this.OPEN=1,this.readyState=this.CLOSED}return s(e,[{key:"send",value:function(e){this.readyState!==this.OPEN&&this._callback(e,"sendSocketMessage:fail WebSocket is not connected");var t=Object(o["c"])("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:this.id})),n=t.errMsg;this._callback(e,n.replace("operateSocketTask","sendSocketMessage"))}},{key:"close",value:function(e){this.readyState=this.CLOSING;var t=Object(o["c"])("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:this.id})),n=t.errMsg;this._callback(e,n.replace("operateSocketTask","closeSocket"))}},{key:"onOpen",value:function(e){this._callbacks.open.push(e)}},{key:"onClose",value:function(e){this._callbacks.close.push(e)}},{key:"onError",value:function(e){this._callbacks.error.push(e)}},{key:"onMessage",value:function(e){this._callbacks.message.push(e)}},{key:"_callback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.success,n=e.fail,r=e.complete,o=arguments.length>1?arguments[1]:void 0,i={errMsg:o};/:ok$/.test(o)?"function"===typeof t&&t(i):"function"===typeof n&&n(i),"function"===typeof r&&r(i)}}]),e}(),u=Object.create(null),l=[],d=Object.create(null);function f(e,t){var n=Object(o["c"])("createSocketTask",e),i=n.socketTaskId,a=new c(i);return u[i]=a,l.push(a),setTimeout((function(){Object(r["a"])(t,{errMsg:"connectSocket:ok"})}),0),a}function h(e,t){var n=l[0];if(n&&n.readyState===n.OPEN)return Object(o["c"])("operateSocketTask",Object.assign({},e,{operationType:"send",socketTaskId:n.id}));Object(r["a"])(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected"})}function p(e,t){var n=l[0];if(n)return n.readyState=n.CLOSING,Object(o["c"])("operateSocketTask",Object.assign({},e,{operationType:"close",socketTaskId:n.id}));Object(r["a"])(t,{errMsg:"closeSocket:fail WebSocket is not connected"})}function g(e){d.open=e}function v(e){d.error=e}function m(e){d.message=e}function _(e){d.close=e}Object(o["d"])("onSocketTaskStateChange",(function(e){var t=e.socketTaskId,n=e.state,o=e.data,i=(e.errMsg,u[t]);if(i){if("open"===n&&(i.readyState=i.OPEN),i===l[0]&&d[n]&&Object(r["a"])(d[n],"message"===n?{data:o}:{}),"error"===n||"close"===n){i.readyState=i.CLOSED,delete u[t];var a=l.indexOf(i);a>=0&&l.splice(a,1)}i._callbacks[n].forEach((function(e){"function"===typeof e&&e("message"===n?{data:o}:{})}))}}))},8188:function(e,t,n){"use strict";(function(e){var r=n("8af1"),o=n("18fd"),i=n("b253"),a=n("93ab");function s(e){return s="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},s(e)}function c(){var e=navigator.userAgent,t=/iphone|ipad|ipod/i.test(e),n=/Macintosh|Mac/i.test(e),r=n&&navigator.maxTouchPoints>0;return t||r}var u=!1;t["a"]={name:"Editor",mixins:[r["g"],r["a"],r["e"]],props:{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}},data:function(){return{quillReady:!1}},computed:{},watch:{readOnly:function(e){if(this.quillReady){var t=this.quill;t.enable(!e),e||t.blur()}},placeholder:function(e){this.quillReady&&this.setPlaceHolder(e)}},mounted:function(){var e=this,t=[];this.showImgSize&&t.push("DisplaySize"),this.showImgToolbar&&t.push("Toolbar"),this.showImgResize&&t.push("Resize");var n="https://unpkg.com/quill@1.3.7/dist/quill.min.js";Object(a["a"])(window.Quill,n,(function(){if(t.length){var n="https://unpkg.com/quill-image-resize-mp@3.0.1/image-resize.min.js";Object(a["a"])(window.ImageResize,n,(function(){e.initQuill(t)}))}else e.initQuill(t)}))},methods:{_handleSubscribe:function(t){var n,r,o,i=t.type,a=t.data,c=a.options,l=a.callbackId,d=this.quill,f=window.Quill;if(this.quillReady){switch(i){case"format":var h=c.name,p=void 0===h?"":h,g=c.value,v=void 0!==g&&g;r=d.getSelection(!0);var m=d.getFormat(r)[p]||!1;if(["bold","italic","underline","strike","ins"].includes(p))v=!m;else if("direction"===p){v=("rtl"!==v||!m)&&v;var _=d.getFormat(r).align;"rtl"!==v||_?v||"right"!==_||d.format("align",!1,f.sources.USER):d.format("align","right",f.sources.USER)}else if("indent"===p){var y="rtl"===d.getFormat(r).direction;v="+1"===v,y&&(v=!v),v=v?"+1":"-1"}else"list"===p&&(v="check"===v?"unchecked":v,m="checked"===m?"unchecked":m),v=m&&m!==(v||!1)||!m&&v?v:!m;d.format(p,v,f.sources.USER);break;case"insertDivider":r=d.getSelection(!0),d.insertText(r.index,"\n",f.sources.USER),d.insertEmbed(r.index+1,"divider",!0,f.sources.USER),d.setSelection(r.index+2,f.sources.SILENT);break;case"insertImage":r=d.getSelection(!0);var b=c.src,M=void 0===b?"":b,S=c.alt,k=void 0===S?"":S,w=c.width,C=void 0===w?"":w,T=c.height,I=void 0===T?"":T,A=c.extClass,E=void 0===A?"":A,O=c.data,D=void 0===O?{}:O,N=this.$getRealPath(M);d.insertEmbed(r.index,"image",N,f.sources.USER);var L=!!/^(file|blob):/.test(N)&&N;u=!0,d.formatText(r.index,1,"data-local",L),d.formatText(r.index,1,"alt",k),d.formatText(r.index,1,"width",C),d.formatText(r.index,1,"height",I),d.formatText(r.index,1,"class",E),u=!1,d.formatText(r.index,1,"data-custom",Object.keys(D).map((function(e){return"".concat(e,"=").concat(D[e])})).join("&")),d.setSelection(r.index+1,f.sources.SILENT);break;case"insertText":r=d.getSelection(!0);var x=c.text,R=void 0===x?"":x;d.insertText(r.index,R,f.sources.USER),d.setSelection(r.index+R.length,0,f.sources.SILENT);break;case"setContents":var P=c.delta,G=c.html;"object"===s(P)?d.setContents(P,f.sources.SILENT):"string"===typeof G?d.setContents(this.html2delta(G),f.sources.SILENT):o="contents is missing";break;case"getContents":n=this.getContents();break;case"clear":d.setContents([]);break;case"removeFormat":r=d.getSelection(!0);var U=f.import("parchment");r.length?d.removeFormat(r,f.sources.USER):Object.keys(d.getFormat(r)).forEach((function(e){U.query(e,U.Scope.INLINE)&&d.format(e,!1)}));break;case"undo":d.history.undo();break;case"redo":d.history.redo();break;case"blur":d.blur();break;case"getSelectionText":r=d.selection.savedRange,n={text:""},r&&0!==r.length&&(n.text=d.getText(r.index,r.length));break;case"scrollIntoView":d.scrollIntoView();break;default:break}this.updateStatus(r)}else o="not ready";l&&e.publishHandler("onEditorMethodCallback",{callbackId:l,data:Object.assign({},n,{errMsg:"".concat(i,":").concat(o?"fail "+o:"ok")})},this.$page.id)},setPlaceHolder:function(e){var t="data-placeholder",n=this.quill.root;n.getAttribute(t)!==e&&n.setAttribute(t,e)},initQuill:function(e){var t=this,n=window.Quill;i["a"](n);var r={toolbar:!1,readOnly:this.readOnly,placeholder:this.placeholder,modules:{}};e.length&&(n.register("modules/ImageResize",window.ImageResize.default),r.modules.ImageResize={modules:e});var o=this.quill=new n(this.$el,r),a=o.root,s=["focus","blur","input"];s.forEach((function(e){a.addEventListener(e,(function(n){var r=t.getContents();if("input"===e){if(c()){var o=(r.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1],i=o&&o.replace(/\s/g,"")?"":t.placeholder;t.setPlaceHolder(i)}n.stopPropagation()}else t.$trigger(e,n,r)}))})),o.on(n.events.TEXT_CHANGE,(function(){u||t.$trigger("input",{},t.getContents())})),o.on(n.events.SELECTION_CHANGE,this.updateStatus.bind(this)),o.on(n.events.SCROLL_OPTIMIZE,(function(){var e=o.selection.getRange()[0];t.updateStatus(e)})),o.clipboard.addMatcher(Node.ELEMENT_NODE,(function(e,n){return t.skipMatcher||(n.ops=n.ops.filter((function(e){var t=e.insert;return"string"===typeof t})).map((function(e){var t=e.insert;return{insert:t}}))),n})),this.initKeyboard(a),this.quillReady=!0,this.$trigger("ready",event,{})},getContents:function(){var e=this.quill,t=e.root.innerHTML,n=e.getText(),r=e.getContents();return{html:t,text:n,delta:r}},html2delta:function(e){var t,n=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"],r="";Object(o["a"])(e,{start:function(e,o,i){if(n.includes(e)){t=!1;var a=o.map((function(e){var t=e.name,n=e.value;return"".concat(t,'="').concat(n,'"')})).join(" "),s="<".concat(e," ").concat(a," ").concat(i?"/":"",">");r+=s}else t=!i},end:function(e){t||(r+="</".concat(e,">"))},chars:function(e){t||(r+=e)}}),this.skipMatcher=!0;var i=this.quill.clipboard.convert(r);return this.skipMatcher=!1,i},updateStatus:function(e){var t=this,n=e?this.quill.getFormat(e):{},r=Object.keys(n);(r.length!==Object.keys(this.__status||{}).length||r.find((function(e){return n[e]!==t.__status[e]})))&&(this.__status=n,this.$trigger("statuschange",{},n))}}}}).call(this,n("501c"))},"81ea":function(e,t,n){"use strict";var r=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,r){return n("div",{key:t.isMidButton?r:t.pagePath,staticClass:"uni-tabbar__item",style:t.isMidButton?{flex:"0 0 "+t.width,position:"relative"}:{},on:{click:function(n){return e._switchTab(t,r)}}},[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,r)||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.isMidButton?e._e():n("img",{attrs:{src:e._getRealPath(e.getIconPath(t,r))}}),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===r?e.selectedColor:e.color,fontSize:e.fontSize,lineHeight:t.iconPath?"normal":1.8,marginTop:t.iconPath?e.spacing:"inherit"}},[e._v(" "+e._s(t.text)+" "),t.redDot&&!t.iconPath?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()]):e._e()])])}))],2),n("div",{staticClass:"uni-placeholder",style:{height:e.height}})])},o=[],i=n("a919"),a=i["a"],s=(n("f4e0"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null),u=c.exports,l=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)},d=[],f=n("7ac7"),h=f["a"],p=(n("639e"),Object(s["a"])(h,l,d,!1,null,null,null)),g=p.exports,v=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(" "+e._s(e.title)+" ")])]):n("div",{staticClass:"uni-sample-toast"},[n("p",{staticClass:"uni-simple-toast__text"},[e._v(" "+e._s(e.title)+" ")])])]):e._e()],1)},m=[],_=n("5222"),y=_["a"],b=(n("ff28"),Object(s["a"])(y,v,m,!1,null,null,null)),M=b.exports,S=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(" "+e._s(e.cancelText)+" ")]):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(" "+e._s(e.confirmText)+" ")])])]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close("cancel")},enter:function(t){!e.editable&&e._close("confirm")}}})],1)],1)},k=[],w=n("5a56"),C=n("da71");function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={name:"Modal",components:{keypress:C["a"]},mixins:[w["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=T({},e,!0);this.editable&&"confirm"===e&&(t.content=this.$refs.editContent.value),this.$emit("close",t)}}},A=I,E=(n("2765"),Object(s["a"])(A,S,k,!1,null,null,null)),O=E.exports,D=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(" "+e._s(e.title)+" ")]):e._e(),n("div",{style:{maxHeight:e.HEIGHT+"px",overflow:"hidden"}},[n("div",{ref:"content"},e._l(e.itemList,(function(t,r){return n("div",{key:r,staticClass:"uni-actionsheet__cell",style:{color:e.itemColor},on:{click:function(t){return e._close(r)}}},[e._v(" "+e._s(t)+" ")])})),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(" "+e._s(e.$$t("uni.showActionSheet.cancel"))+" ")])]),n("div",{style:e.popupStyle.triangle})]),n("keypress",{attrs:{disable:!e.visible},on:{esc:function(t){return e._close(-1)}}})],1)},N=[],L=n("4ccd"),x=n("a6b0"),R=n("ba15"),P=n("8aec"),G=n("5363"),U=n("72b3"),F=n("d4cd");function j(e){var t=20,n=0,r=0;e.addEventListener("touchstart",(function(e){var t=e.changedTouches[0];n=t.clientX,r=t.clientY})),e.addEventListener("touchend",(function(e){var o=e.changedTouches[0];if(Math.abs(o.clientX-n)<t&&Math.abs(o.clientY-r)<t){var i=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((function(e){i[e]=o[e]})),e.target.dispatchEvent(i)}}))}var $={name:"ActionSheet",components:{keypress:C["a"]},mixins:[x["c"],L["default"],R["a"],P["a"]],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){j(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 G["a"](1e-4),spring:new U["a"](2,90,20),onScroll:function(t){e.scrollTop=t.target.scrollTop}})})),Object(F["b"])()},methods:{_close:function(e){this.$emit("close",e)},_handleTrack:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e),Object(F["a"])({disable:!0});break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e),Object(F["a"])({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()}}},q=$,B=(n("4fef"),Object(s["a"])(q,D,N,!1,null,null,null)),V=B.exports,H={Toast:M,Modal:O,ActionSheet:V};function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t["a"]=z({TabBar:u,Layout:g},H)},"82b9":function(e,t,n){"use strict";function r(e){return function(t,n){t&&(n[e]=Math.round(t))}}n.r(t),n.d(t,"canvasGetImageData",(function(){return o})),n.d(t,"canvasPutImageData",(function(){return i})),n.d(t,"canvasToTempFilePath",(function(){return s})),n.d(t,"drawCanvas",(function(){return c}));var o={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:r("x")},y:{type:Number,required:!0,validator:r("y")},width:{type:Number,required:!0,validator:r("width")},height:{type:Number,required:!0,validator:r("height")}},i={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:r("x")},y:{type:Number,required:!0,validator:r("y")},width:{type:Number,required:!0,validator:r("width")},height:{type:Number,validator:r("height")}},a={PNG:"png",JPG:"jpg",JPEG:"jpg"},s={x:{type:Number,default:0,validator:r("x")},y:{type:Number,default:0,validator:r("y")},width:{type:Number,validator:r("width")},height:{type:Number,validator:r("height")},destWidth:{type:Number,validator:r("destWidth")},destHeight:{type:Number,validator:r("destHeight")},canvasId:{type:String,required:!0},fileType:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.fileType=e in a?a[e]:a.PNG}},quality:{type:Number,validator:function(e,t){t.quality=e>0&&e<1?e:1}}},c={canvasId:{type:String,required:!0},actions:{type:Array,required:!0},reserve:{type:Boolean,default:!1}}},"82c2":function(e,t,n){"use strict";n.r(t),n.d(t,"request",(function(){return f}));var r=n("f2b3"),o=n("a118"),i=n("db70");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var u=Object.create(null);function l(e,t){if("string"===typeof e.data&&65279===e.data.charCodeAt(0)&&(e.data=e.data.substr(1)),e.statusCode=parseInt(e.statusCode,10),Object(r["l"])(e.header)&&(e.header=Object.keys(e.header).reduce((function(t,n){var r=e.header[n];return Array.isArray(r)?t[n]=r.join(","):"string"===typeof r&&(t[n]=r),t}),{})),t.dataType&&"json"===t.dataType.toLowerCase())try{e.data=JSON.parse(e.data)}catch(n){}return e}Object(i["d"])("onRequestTaskStateChange",(function(e){var t=e.requestTaskId,n=e.state,r=e.data,i=e.statusCode,a=e.header,s=e.errMsg,c=e.cookies,d=u[t]||{},f=d.args,h=d.callbackId;if(h)switch(delete u[t],n){case"success":Object(o["a"])(h,l({data:r,statusCode:i,header:a,errMsg:"request:ok",cookies:c},f));break;case"fail":Object(o["a"])(h,{errMsg:"request:fail "+s});break}}));var d=function(){function e(t){a(this,e),this.id=t}return c(e,[{key:"abort",value:function(){Object(i["c"])("operateRequestTask",{requestTaskId:this.id,operationType:"abort"})}},{key:"offHeadersReceived",value:function(){}},{key:"onHeadersReceived",value:function(){}}]),e}();function f(e,t){var n;for(var o in e.header)if("content-type"===o.toLowerCase()){n=e.header[o];break}"GET"!==e.method&&0===n.indexOf("application/json")&&Object(r["l"])(e.data)&&(e.data=JSON.stringify(e.data));var a=Object(i["c"])("createRequestTask",e),s=a.requestTaskId;return u[s]={args:e,callbackId:t},new d(s)}},8390:function(e,t){(function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<e.length;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,i="";for(n=0;n<o;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,r,o,i,a,s=.75*e.length,c=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),d=new Uint8Array(l);for(t=0;t<c;t+=4)r=n[e.charCodeAt(t)],o=n[e.charCodeAt(t+1)],i=n[e.charCodeAt(t+2)],a=n[e.charCodeAt(t+3)],d[u++]=r<<2|o>>4,d[u++]=(15&o)<<4|i>>2,d[u++]=(3&i)<<6|63&a;return l}})()},"83a6":function(e,t,n){"use strict";t["a"]={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){var t=this;e._hoverPropagationStopped||this.hoverClass&&"none"!==this.hoverClass&&!this.disabled&&(e.touches.length>1||(this.hoverStopPropagation&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,this._hoverStartTimer=setTimeout((function(){t.hovering=!0,t._hoverTouch||t._hoverReset()}),this.hoverStartTime)))},_hoverTouchEnd:function(e){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(e){this._hoverTouch=!1,this.hovering=!1,clearTimeout(this._hoverStartTimer)}}}},"84e0":function(e,t,n){"use strict";n.r(t),function(e){function r(t){var n=getCurrentPages();return n.length&&e.publishHandler("pageScrollTo",t,n[n.length-1].$page.id),{}}n.d(t,"pageScrollTo",(function(){return r}))}.call(this,n("0dd1"))},8542:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return C})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return A}));var r=n("f2b3");function o(e){return c(e)||s(e)||a(e)||i()}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.")}function a(e,t){if(e){if("string"===typeof e)return u(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)?u(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return l="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},l(e)}var d=["invoke","success","fail","complete","returnValue"],f={},h={};function p(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?g(n):n}function g(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function v(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function m(e,t){Object.keys(t).forEach((function(n){-1!==d.indexOf(n)&&Object(r["k"])(t[n])&&(e[n]=p(e[n],t[n]))}))}function _(e,t){e&&t&&Object.keys(t).forEach((function(n){-1!==d.indexOf(n)&&Object(r["k"])(t[n])&&v(e[n],t[n])}))}function y(e,t){"string"===typeof e&&Object(r["l"])(t)?m(h[e]||(h[e]={}),t):Object(r["l"])(e)&&m(f,e)}function b(e,t){"string"===typeof e?Object(r["l"])(t)?_(h[e],t):delete h[e]:Object(r["l"])(e)&&_(f,e)}function M(e){return function(t){return e(t)||t}}function S(e){return!!e&&("object"===l(e)||"function"===typeof e)&&"function"===typeof e.then}function k(e,t){for(var n=!1,r=0;r<e.length;r++){var o=e[r];if(n)n=Promise.resolve(M(o));else{var i=o(t);if(S(i)&&(n=Promise.resolve(i)),!1===i)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function w(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 o=t[n];t[n]=function(t){k(e[n],t).then((function(e){return Object(r["k"])(o)&&o(e)||e}))}}})),t}function C(e,t){var n=[];Array.isArray(f.returnValue)&&n.push.apply(n,o(f.returnValue));var r=h[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,o(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function T(e){var t=Object.create(null);Object.keys(f).forEach((function(e){"returnValue"!==e&&(t[e]=f[e].slice())}));var n=h[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function I(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=T(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=k(a.invoke,n);return s.then((function(e){return t.apply(void 0,[w(a,e)].concat(o))}))}return t.apply(void 0,[w(a,n)].concat(o))}return t.apply(void 0,[n].concat(o))}var A={returnValue:function(e){return S(e)?new Promise((function(t,n){e.then((function(e){e[0]?n(e[0]):t(e[1])}))})):e}}},"854d":function(e,t,n){"use strict";var r=n("2883"),o=n.n(r);o.a},"856e":function(e,t,n){"use strict";var r=n("01d0"),o=n.n(r);o.a},"85b6":function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n("f2b3"),o=["SystemAsyncLoading","SystemAsyncError"];function i(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),r=n.length;if(r)for(var o=0;o<r;o++){var i=n[o],a=i.length;"v"!==i.substr(0,1)||9!==a&&10!==a||delete t[i]}return t}function c(e){var t={},n=e.__vue__;function o(e,n){var o=e.$attrs;for(var i in o)if(i.startsWith("data-")){var a=Object(r["b"])(i.substr(5).toLowerCase()),s=o[i];t[a]=n?s:t[a]||s}}if(n){var i=n;while(i&&i.$el===e)o(i),i=i.$children[0];var a=n.$parent;while(a&&a.$el===e)o(a,!0),a=a.$parent}else t=e.dataset||{};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 r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}},8793:function(e,t,n){var r={"./action-sheet.js":"626d","./index.js":"f1ea","./modal.js":"ee4f","./popup.js":"4ccd","./toast.js":"77e0","./transition.js":"5a56"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="8793"},8842:function(e,t,n){"use strict";n.r(t);var r=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)},o=[],i=n("ba15");function a(e,t,n){return e>t-n&&e<t+n}function s(e,t){return a(e,0,t)}function c(){}function u(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function l(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function d(e,t,n){this._springX=new l(e,t,n),this._springY=new l(e,t,n),this._springScale=new l(e,t,n),this._startTime=0}c.prototype.x=function(e){return Math.sqrt(e)},u.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()},u.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},u.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}},u.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}},u.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}},u.prototype.dt=function(){return-this._x_v/this._x_a},u.prototype.done=function(){var e=a(this.s().x,this._endPositionX)||a(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},u.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},u.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},l.prototype._solve=function(e,t){var n=this._c,r=this._m,o=this._k,i=n*n-4*r*o;if(0===i){var a=-n/(2*r),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(i>0){var u=(-n-Math.sqrt(i))/(2*r),l=(-n+Math.sqrt(i))/(2*r),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 h=Math.sqrt(4*r*o-n*n)/(2*r),p=-n/2*r,g=e,v=(t-p*e)/h;return{x:function(e){return Math.pow(Math.E,p*e)*(g*Math.cos(h*e)+v*Math.sin(h*e))},dx:function(e){var t=Math.pow(Math.E,p*e),n=Math.cos(h*e),r=Math.sin(h*e);return t*(v*h*n-g*h*r)+p*t*(v*r+g*n)}}},l.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},l.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},l.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!s(t,.1)){t=t||0;var r=this._endPosition;this._solution&&(s(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),s(t,.1)&&(t=0),s(r,.1)&&(r=0),r+=this._endPosition),this._solution&&s(r-e,.1)&&s(t,.1)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}},l.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},l.prototype.done=function(e){return e||(e=(new Date).getTime()),a(this.x(),this._endPosition,.1)&&s(this.dx(),.1)},l.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())},l.prototype.springConstant=function(){return this._k},l.prototype.damping=function(){return this._c},l.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}]},d.prototype.setEnd=function(e,t,n,r){var o=(new Date).getTime();this._springX.setEnd(e,r,o),this._springY.setEnd(t,r,o),this._springScale.setEnd(n,r,o),this._startTime=o},d.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)}},d.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},d.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};var f=n("d4cd"),h=!1;function p(e){h||(h=!0,requestAnimationFrame((function(){e(),h=!1})))}function g(e,t){if(e===t)return 0;var n=e.offsetLeft;return e.offsetParent?n+=g(e.offsetParent,t):0}function v(e,t){if(e===t)return 0;var n=e.offsetTop;return e.offsetParent?n+=v(e.offsetParent,t):0}function m(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function _(e,t,n){var r=function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)},o={id:0,cancelled:!1};function i(t,n,r,o){if(!t||!t.cancelled){r(n);var a=e.done();a||t.cancelled||(t.id=requestAnimationFrame(i.bind(null,t,n,r,o))),a&&o&&o(n)}}return i(o,e,t,n),{cancel:r.bind(null,o),model:e}}var y={name:"MovableView",mixins:[i["a"]],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)},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 d(1,9*Math.pow(this.dampingNumber,2)/40,this.dampingNumber),this._friction=new u(1,this.frictionNumber),this._declineX=new c,this._declineY=new c,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",Object(f["b"])()},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||(Object(f["a"])({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,r=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&&(r=e.detail.dy+this.__baseY,this.__touchInfo.historyY.shift(),this.__touchInfo.historyY.push(r),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),r<this.minY?this.outOfBounds?(o="touch-out-of-bounds",r=this.minY-this._declineY.x(this.minY-r)):r=this.minY:r>this.maxY&&(this.outOfBounds?(o="touch-out-of-bounds",r=this.maxY+this._declineY.x(r-this.maxY)):r=this.maxY),p((function(){t._setTransform(n,r,t._scale,o)}))}}},__handleTouchEnd:function(){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(Object(f["a"])({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 r=this._friction.delta().x,o=this._friction.delta().y,i=r+this._translateX,a=o+this._translateY;i<this.minX?(i=this.minX,a=this._translateY+(this.minX-this._translateX)*o/r):i>this.maxX&&(i=this.maxX,a=this._translateY+(this.maxX-this._translateX)*o/r),a<this.minY?(a=this.minY,i=this._translateX+(this.minY-this._translateY)*r/o):a>this.maxY&&(a=this.maxY,i=this._translateX+(this.maxY-this._translateY)*r/o),this._friction.setEnd(i,a),this._FA=_(this._friction,(function(){var t=e._friction.s(),n=t.x,r=t.y;e._setTransform(n,r,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,r=t.y;this._setTransform(n,r,e,"",!0),this._updateOldScale(e)}},_updateOffset:function(){this._offset.x=g(this.$el,this.$parent.$el),this._offset.y=v(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,r=this.width*e;this._scaleOffset.x=(r-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,r=this.$parent.height-this.height-this._offset.y-this._scaleOffset.y;this.minY=Math.min(n,r),this.maxY=Math.max(n,r)},_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 r=this._getLimitXY(this._translateX,this._translateY),o=r.x,i=r.y;t?this._animationTo(o,i,e,"",!0,!0):p((function(){n._setTransform(o,i,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,r,o,i){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=_(this._STD,(function(){var e=a._STD.x(),t=e.x,n=e.y,s=e.scale;a._setTransform(t,n,s,r,o,i)}),(function(){a._SFA.cancel()}))):this._setTransform(e,t,n,r,o,i)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,r=t.y,o=t.outOfBounds;return o&&this._animationTo(n,r,this._scale,e),o},_setTransform:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0,i=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:m(e,this._scaleOffset.x),y:m(t,this._scaleOffset.y),source:r}),this.scale||(n=this._scale),n=this._adjustScale(n),n=+n.toFixed(3),i&&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}}},b=y,M=(n("7c2b"),n("2877")),S=Object(M["a"])(b,r,o,!1,null,null,null);t["default"]=S.exports},8875:function(e,t,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,i=r.exec(d.stack)||o.exec(d.stack),a=i&&i[1]||!1,s=i&&i[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===c&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var l=0;l<u.length;l++){if("interactive"===u[l].readyState)return u[l];if(u[l].src===a)return u[l];if(a===c&&u[l].innerHTML&&u[l].innerHTML.trim()===n)return u[l]}return null}}return e}))},"893e":function(e,t,n){"use strict";n.r(t),function(e,r){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"connectSocket",(function(){return p})),n.d(t,"sendSocketMessage",(function(){return g})),n.d(t,"closeSocket",(function(){return v})),n.d(t,"onSocketOpen",(function(){return _})),n.d(t,"onSocketError",(function(){return y})),n.d(t,"onSocketMessage",(function(){return b})),n.d(t,"onSocketClose",(function(){return M}));var c=e,u=c.invokeCallbackHandler,l=["open","close","error","message"],d={},f=[],h=function(){function e(t,n,i){var a,c=this;o(this,e),s(this,"_webSocket",void 0);try{var h=this._webSocket=new WebSocket(t,n);h.binaryType="arraybuffer",this._callbacks={},l.forEach((function(e){c._callbacks[e]=[],h.addEventListener(e,(function(t){var n="message"===e?{data:t.data}:{};if(c._callbacks[e].forEach((function(t){try{t(n)}catch(o){r.error("thirdScriptError\n".concat(o,";at socketTask.on").concat(e[0].toUpperCase()+e.substr(1)," callback function\n"),o)}})),c===f[0]&&d[e]&&u(d[e],n),"error"===e||"close"===e){var o=f.indexOf(c);o>=0&&f.splice(o,1)}}))}));var p=["CLOSED","CLOSING","CONNECTING","OPEN","readyState"];p.forEach((function(e){Object.defineProperty(c,e,{get:function(){return h[e]}})}))}catch(g){a=g}i(a,this)}return a(e,[{key:"send",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw new Error("SocketTask.readyState is not OPEN");n.send(t),this._callback(e,"sendSocketMessage:ok")}catch(r){this._callback(e,"sendSocketMessage:fail ".concat(r))}}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._webSocket,n=[];n.push(e.code||1e3),"string"===typeof e.reason&&n.push(e.reason);try{t.close.apply(t,n),this._callback(e,"closeSocket:ok")}catch(r){this._callback(e,"closeSocket:fail ".concat(r))}}},{key:"_callback",value:function(e,t){var n=e.success,r=e.fail,o=e.complete,i={errMsg:t};/:ok$/.test(t)?"function"===typeof n&&n(i):"function"===typeof r&&r(i),"function"===typeof o&&o(i)}}]),e}();function p(e,t){var n=e.url,r=e.protocols;return new h(n,r,(function(e,n){e||f.push(n),u(t,{errMsg:"connectSocket:"+(e?"fail ".concat(e):"ok")})}))}function g(e,t){var n=f[0];n&&n.readyState===n.OPEN?n.send(Object.assign({},e,{complete:function(e){u(t,e)}})):u(t,{errMsg:"sendSocketMessage:fail WebSocket is not connected "})}function v(e,t){var n=f[0];n?n.close(Object.assign({},e,{complete:function(e){u(t,e)}})):u(t,{errMsg:"closeSocket:fail WebSocket is not connected"})}function m(e){return function(t){d[e]=t}}l.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);h.prototype["on".concat(t)]=function(t){this._callbacks[e].push(t)}}));var _=m("open"),y=m("error"),b=m("message"),M=m("close")}.call(this,n("0dd1"),n("3ad9")["default"])},"898f":function(e,t,n){"use strict";n.r(t),n.d(t,"previewImage",(function(){return a})),n.d(t,"closePreviewImage",(function(){return s}));var r=n("db70"),o="longPressActionsCallback",i={};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i=e.longPressActions||{},(i.success||i.fail||i.complete)&&(i.callbackId=o),Object(r["c"])("previewImagePlus",e)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r["c"])("closePreviewImagePlus",e)}Object(r["d"])(o,(function(e){var t=e.errMsg||"";new RegExp("\\:\\s*fail").test(t)?i.fail&&i.fail(e):i.success&&i.success(e),i.complete&&i.complete(e)}))},"8a36":function(e,t,n){"use strict";(function(e){var r=n("f2b3");t["a"]={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 i=this.$options.listeners;Object(r["l"])(i)&&Object.keys(i).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&e.on("uni-".concat(r,"-").concat(o.$page.id,"-").concat(t),o[i[r]]):0===r.indexOf("@")?o.$on("uni-".concat(r.substr(1)),o[i[r]]):0===r.indexOf("uni-")?e.on(r,o[i[r]]):t&&e.on("uni-".concat(r,"-").concat(o.$page.id,"-").concat(t),o[i[r]])}))}},_removeListeners:function(t,n){var o=this;if(!n||t){var i=this.$options.listeners;Object(r["l"])(i)&&Object.keys(i).forEach((function(r){n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&e.off("uni-".concat(r,"-").concat(o.$page.id,"-").concat(t),o[i[r]]):0===r.indexOf("@")?o.$off("uni-".concat(r.substr(1)),o[i[r]]):0===r.indexOf("uni-")?e.off(r,o[i[r]]):t&&e.off("uni-".concat(r,"-").concat(o.$page.id,"-").concat(t),o[i[r]])}))}}}}}).call(this,n("501c"))},"8aec":function(e,t,n){"use strict";var r=n("5363"),o=n("72b3");function i(e,t,n){this._extent=e,this._friction=t||new r["a"](.01),this._spring=n||new o["a"](1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function a(e,t,n){function r(e,t,n,o){if(!e||!e.cancelled){n(t);var i=t.done();i||e.cancelled||(e.id=requestAnimationFrame(r.bind(null,e,t,n,o))),i&&o&&o(t)}}function o(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}var i={id:0,cancelled:!1};return r(i,e,t,n),{cancel:o.bind(null,i),model:e}}function s(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(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}i.prototype.snap=function(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)},i.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()},i.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},i.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},i.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},i.prototype.setVelocityByEnd=function(e){this._friction.setVelocityByEnd(e)},i.prototype.configuration=function(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e},s.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()},s.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()},s.prototype.onTouchEnd=function(e,t,n){var r=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 o=this._scroll._friction.x(100),i=o%this._itemSize,s=Math.abs(i)>this._itemSize/2?o-(this._itemSize-Math.abs(i)):o-i;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=a(this._scroll,(function(){var e=Date.now(),t=(e-r._scroll._startTime)/1e3,n=r._scroll.x(t);r._position=n,r.updatePosition();var o=r._scroll.dx(t);r._shouldDispatchScrollEvent&&e-r._lastTime>r._lastDelay&&(r.dispatchScroll(),r._lastDelay=Math.abs(2e3/o),r._lastTime=e)}),(function(){r._enableSnap&&(s<=0&&s>=-r._extent&&(r._position=s,r.updatePosition()),"function"===typeof r._options.onSnap&&r._options.onSnap(Math.floor(Math.abs(r._position)/r._itemSize))),r._shouldDispatchScrollEvent&&r.dispatchScroll(),r._scrolling=!1}))},s.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()},s.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)))},s.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)},s.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)}},s.prototype.update=function(e,t,n){var r=0,o=this._position;this._enableX?(r=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(r=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"===typeof e&&(this._position=-e),this._position<-r?this._position=-r: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=r,this._scroll._extent=r},s.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},s.prototype.isScrolling=function(){return this._scrolling||this._snapping},t["a"]={methods:{initScroller:function(e,t){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new s(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 r=t.listener;t.trackingID=-1,t.listener=null;var o=t.historyTime.length,i={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){i.x=(c-t.historyX[a])/(d/1e3),i.y=(u-t.historyY[a])/(d/1e3);break}}t.historyTime=[],t.historyX=[],t.historyY=[],r&&r.onTouchEnd&&r.onTouchEnd(n.x,n.y,i)}}}}}},"8af1":function(e,t,n){"use strict";var r=n("5cf8");n.d(t,"a",(function(){return r["a"]}));var o=n("8a36");n.d(t,"f",(function(){return o["a"]}));var i=n("83a6");n.d(t,"c",(function(){return i["a"]}));var a=n("1b6f");n.d(t,"g",(function(){return a["a"]}));var s=n("5a23");n.d(t,"e",(function(){return s["a"]}));var c=n("b282");n.d(t,"b",(function(){return c["a"]}));var u=n("a878");n.d(t,"d",(function(){return u["a"]}))},"8b18":function(e,t,n){},"8b3f":function(e,t,n){"use strict";n.r(t),n.d(t,"onNetworkStatusChange",(function(){return a})),n.d(t,"offNetworkStatusChange",(function(){return s}));var r=n("a118"),o=n("db70"),i=[];function a(e){i.push(e)}function s(e){if(e){var t=i.indexOf(e);t>=0&&i.splice(t,1)}}Object(o["d"])("onNetworkStatusChange",(function(e){i.forEach((function(t){Object(r["a"])(t,e)}))}))},"8b61":function(e,t,n){},"8b67":function(e,t,n){"use strict";n.r(t),n.d(t,"TEMP_PATH",(function(){return r}));var r=""},"8bbf":function(e,n){e.exports=t},"8c15":function(e,t,n){"use strict";n.r(t),function(e){var r=n("85b6"),o=n("d4b6"),i=n("61c2"),a=n("c4c5");function s(){e.publishHandler("onPageReady",{},this.$page.id)}t["default"]={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.routes,Object(o["a"])();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=o["b"].call(this,e.type,e,{},t||e.target,e.currentTarget)}return e},e.prototype.$getComponentDescriptor=function(e,t){return Object(a["a"])(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,r=t&&t.__vue__&&t.__vue__.$getComponentDescriptor(t.__vue__,!1),i=e;e=o["b"].call(this,i.type,i,{},n(i,this.$el)||i.target,i.currentTarget),e.instance=r,e.preventDefault=function(){return i.preventDefault()},e.stopPropagation=function(){return i.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&&Object(i["a"])(t,this),Object(r["d"])(this)&&(t.mounted=t.mounted?[].concat(s,t.mounted):[s])}})}}}.call(this,n("501c"))},"8ce3":function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"chooseVideo",(function(){return d}));var o=n("e2e2"),i=n("a6b0"),a=n("3563"),s=n("8af1"),c=e,u=c.invokeCallbackHandler,l=null;function d(e,t){var n=e.sourceType,c=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({sourceType:n,extension:c,type:"video"}),document.body.appendChild(l),l.addEventListener("change",(function(e){var n,r=e.target.files[0],i={errMsg:"chooseVideo:ok",tempFile:r,size:r.size,duration:0,width:0,height:0,name:r.name};Object.defineProperty(i,"tempFilePath",{get:function(){return n=n||Object(o["b"])(this.tempFile),n}});var a=document.createElement("video");if(void 0!==a.onloadedmetadata){var s=Object(o["b"])(r);a.onloadedmetadata=function(){Object(o["e"])(s),u(t,Object.assign(i,{duration:a.duration||0,width:a.videoWidth||0,height:a.videoHeight||0}))},setTimeout((function(){a.onloadedmetadata=null,Object(o["e"])(s),u(t,i)}),300),a.src=s}else u(t,i)})),l.click(),s["d"].getStatus()||r.warn("".concat(Object(i["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},"8e16":function(e,t,n){"use strict";var r=n("ea49"),o=n.n(r);o.a},"8e72":function(e,t,n){},"8f7e":function(e,t,n){"use strict";n.r(t);var r=n("8bbf"),o=n.n(r),i=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)},a=[],s=n("cdc1"),c=s["a"],u=(n("854d"),n("2877")),l=Object(u["a"])(c,i,a,!1,null,null,null),d=l.exports,f=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)},h=[],p=n("27d0"),g=p["a"],v=(n("6226"),Object(u["a"])(g,f,h,!1,null,null,null)),m=v.exports,_=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(" "+e._s(e.$$t("uni.async.error"))+" ")])},y=[],b=n("a6b0"),M={name:"AsyncError",mixins:[b["c"]],methods:{_onClick:function(){window.location.reload()}}},S=M,k=(n("b628"),Object(u["a"])(S,_,y,!1,null,null,null)),w=k.exports,C=function(){var e=this;e.$createElement;return e._self._c,e._m(0)},T=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-async-loading"},[n("i",{staticClass:"uni-loading"})])}],I={name:"AsyncLoading"},A=I,E=(n("5727"),Object(u["a"])(A,C,T,!1,null,null,null)),O=E.exports,D=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,r){return n("div",{key:t.pagePath,staticClass:"uni-tabbar__item",on:{click:function(n){return e._switchTab(t,r)}}},[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===r?t.selectedIconPath:t.iconPath)}}),t.redDot?n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")]):e._e()]):e._e(),t.text?n("div",{staticClass:"uni-tabbar__label",style:{color:e.selectedIndex===r?e.tabBarOptions.selectedColor:e.tabBarOptions.color,fontSize:e.showIcon&&t.iconPath?"10px":"14px"}},[e._v(" "+e._s(t.text)+" "),!t.redDot||e.showIcon&&t.iconPath?e._e():n("div",{staticClass:"uni-tabbar__reddot",class:{"uni-tabbar__badge":!!t.badge}},[e._v(" "+e._s(t.badge)+" ")])]):e._e()])])})),0)]):e._e()},N=[],L=n("e243"),x=L["a"],R=Object(u["a"])(x,D,N,!1,null,null,null),P=R.exports,G=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-choose-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:e.latitude,longitude:e.longitude,"show-location":"",libraries:["places"]},on:{updated:e.getList,regionchange:e.onRegionChange}},[n("div",{staticClass:"map-location",style:e.locationStyle}),n("div",{staticClass:"map-move",on:{click:e.moveToLocation}},[n("i",[e._v("")])])]),n("div",{staticClass:"nav"},[n("div",{staticClass:"nav-btn back",on:{click:e.back}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])]),n("div",{staticClass:"nav-btn confirm",class:{disable:!e.selected},on:{click:e.choose}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])])]),n("div",{staticClass:"menu"},[n("div",{staticClass:"search"},[n("v-uni-input",{staticClass:"search-input",attrs:{placeholder:e.$$t("uni.chooseLocation.search")},on:{focus:function(t){e.searching=!0},input:e.input},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}),e.searching?n("div",{staticClass:"search-btn",on:{click:function(t){e.searching=!1,e.keyword=""}}},[e._v(" "+e._s(e.$$t("uni.chooseLocation.cancel"))+" ")]):e._e()],1),n("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":""},on:{scrolltolower:e.loadMore}},[e.loading?n("div",{staticClass:"list-loading"},[n("i",{staticClass:"uni-loading"})]):e._e(),e._l(e.list,(function(t,r){return n("div",{key:r,staticClass:"list-item",class:{selected:e.selectedIndex===r},on:{click:function(n){e.selectedIndex=r,e.latitude=t.latitude,e.longitude=t.longitude}}},[n("div",{staticClass:"list-item-title"},[e._v(" "+e._s(t.name)+" ")]),n("div",{staticClass:"list-item-detail"},[e._v(" "+e._s(e._f("distance")(t.distance))+e._s(t.address)+" ")])])}))],2)],1)],1)},U=[],F=n("fda5"),j=F["a"],$=(n("9470"),Object(u["a"])(j,G,U,!1,null,null,null)),q=$.exports,B=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uni-system-open-location"},[n("v-uni-map",{staticClass:"map",attrs:{latitude:e.center.latitude,longitude:e.center.longitude,markers:[e.marker,e.location]},on:{regionchange:e.onRegionChange}},[n("div",{staticClass:"map-move",on:{click:e.moveToLocation}},[n("i",[e._v("")])])]),n("div",{staticClass:"info"},[n("div",{staticClass:"name",on:{click:function(t){return e.setCenter(e.marker)}}},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"address",on:{click:function(t){return e.setCenter(e.marker)}}},[e._v(" "+e._s(e.address)+" ")]),n("div",{staticClass:"nav",on:{click:e.nav}},[n("svg",{attrs:{width:"26",height:"26",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M896 544c-207.807 0-388.391 82.253-480 203.149V173.136l201.555 201.555c12.412 12.412 32.723 12.412 45.136 0 12.412-12.412 12.412-32.723 0-45.136L408.913 75.777a31.93 31.93 0 0 0-2.222-2.468c-6.222-6.222-14.429-9.324-22.631-9.308l-0.059-0.002-0.059 0.002c-8.202-0.016-16.409 3.085-22.631 9.308a31.93 31.93 0 0 0-2.222 2.468l-253.78 253.778c-12.412 12.412-12.412 32.723 0 45.136 12.412 12.412 32.723 12.412 45.136 0L352 173.136V928c0 17.6 14.4 32 32 32s32-14.4 32-32c0-176.731 214.903-320 480-320 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z",fill:"#ffffff"}})])])]),n("div",{staticClass:"nav-btn-back",on:{click:e.back}},[n("i",{staticClass:"uni-btn-icon"},[e._v("")])])],1)},V=[],H=n("636c"),W={name:"SystemOpenLocation",data:function(){var e=this.$route.query,t=e.latitude,n=e.longitude,r=e.scale,o=void 0===r?18:r,i=e.name,a=void 0===i?"":i,s=e.address,c=void 0===s?"":s;return{latitude:t,longitude:n,scale:o,name:a,address:c,center:{latitude:t,longitude:n},marker:{id:1,latitude:t,longitude:n,iconPath:H["b"],width:32,height:52},location:{id:2,latitude:0,longitude:0,iconPath:H["a"],width:44,height:44}}},methods:{onRegionChange:function(e){var t=e.detail.centerLocation;t&&(this.center.latitude=t.latitude,this.center.longitude=t.longitude)},setCenter:function(e){var t=e.latitude,n=e.longitude;this.center.latitude=t,this.center.longitude=n},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},move:function(e){var t=e.latitude,n=e.longitude;this.location.latitude=t,this.location.longitude=n,this.setCenter({latitude:t,longitude:n})},back:function(){getApp().$router.back()},nav:function(){var e=Object(H["d"])(),t="";if(e.type===H["c"].GOOGLE){var n=this.location.latitude?"&origin=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";t="https://www.google.com/maps/dir/?api=1".concat(n,"&destination=").concat(this.latitude,"%2C").concat(this.longitude)}else if(e.type===H["c"].QQ){var r=this.location.latitude?"&fromcoord=".concat(this.location.latitude,"%2C").concat(this.location.longitude):"";t="https://apis.map.qq.com/uri/v1/routeplan?type=drive".concat(r,"&tocoord=").concat(this.latitude,"%2C").concat(this.longitude,"&from=").concat(encodeURIComponent("我的位置"),"&to=").concat(encodeURIComponent(this.name||"目的地"),"&ref=").concat(e.key)}window.open(t)}}},z=W,K=(n("3da9"),Object(u["a"])(z,B,V,!1,null,null,null)),Y=K.exports,X=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)},J=[],Q=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:"",scale:"","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)},Z=[],ee={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,r=t*this.imgHeight>this.height;this.direction=n&&r?"all":n?"horizontal":r?"vertical":"none",this.checkDirection(e)},checkDirection:function(e){var t=this.direction;"all"!==t&&"horizontal"!==t||e.stopPropagation()}}},te=ee,ne=(n("5378"),Object(u["a"])(te,Q,Z,!1,null,null,null)),re=ne.exports,oe={name:"SystemPreviewImage",components:{imageView:re},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,r=0;this.$el.addEventListener("mousedown",(function(t){e.preventDefault=!1,n=t.clientX,r=t.clientY})),this.$el.addEventListener("mouseup",(function(o){(Math.abs(o.clientX-n)>t||Math.abs(o.clientY-r)>t)&&(e.preventDefault=!0)}))},methods:{_click:function(){this.preventDefault||getApp().$router.back()}}},ie=oe,ae=(n("f10e"),Object(u["a"])(ie,X,J,!1,null,null,null)),se=ae.exports,ce={ChooseLocation:q,OpenLocation:Y,PreviewImage:se};o.a.component(d.name,d),o.a.component(m.name,m),o.a.component(w.name,w),o.a.component(O.name,O),o.a.component(P.name,P),Object.keys(ce).forEach((function(e){var t=ce[e];o.a.component(t.name,t)}))},"90f7":function(e,t,n){"use strict";var r=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"}})])])])])},o=[],i={name:"PageRefresh",props:{color:{type:String,default:"#2BD009"},offset:{type:Number,default:0}}},a=i,s=(n("9b5b"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["a"]=c.exports},9213:function(e,t,n){"use strict";n.r(t);var r=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)},o=[],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()}))}},a=i,s=(n("bfea"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},9250:function(e,t){var n=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor","interceptors"],r=["request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","getUpdateManager","configMTLS"],o=["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],i=["setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync"],a=["getLocation","chooseLocation","openLocation","createMapContext"],s=["chooseImage","chooseFile","previewImage","closePreviewImage","getImageInfo","getVideoInfo","saveImageToPhotosAlbum","compressImage","compressVideo","getRecorderManager","getBackgroundAudioManager","createAudioContext","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext"],c=["getSystemInfo","getSystemInfoSync","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"],u=["hideKeyboard","onKeyboardHeightChange","offKeyboardHeightChange","getSelectedTextRange"],l=["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"],d=["$emit","$on","$once","$off"],f=["saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager"],h=["createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData"],p=["getProvider","login","checkSession","getUserInfo","getUserProfile","preLogin","closeAuthView","getCheckBoxState","getUniverifyManager","share","shareWithSystem","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","onHostEventReceive","onNativeEventReceive","sendNativeEvent","preloadPage","unPreloadPage","loadSubPackage","sendHostEvent","navigateToMiniProgram"],g=["createRewardedVideoAd","createFullScreenVideoAd","createInterstitialAd","createInteractiveAd"],v=[].concat(n,r,o,i,a,s,c,u,l,d,f,h,p,g);e.exports=v},"927d":function(e,t,n){},"93a5":function(e,t,n){var r={"./ad/index.vue":"10a3","./cover-image/index.vue":"d677","./cover-view/index.vue":"c41f","./map/index.vue":"594d","./picker/index.vue":"6fa7","./video/index.vue":"31e2","./web-view/index.vue":"9980"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="93a5"},"93ab":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={};function o(e,t,n){var o="string"===typeof e?window[e]:e;if(o)n();else{var i=r[t];if(!i){i=r[t]=[];var a=document.createElement("script");a.src=t,document.body.appendChild(a),a.onload=function(){i.forEach((function(e){return e()})),delete r[t]}}i.push(n)}}},9400:function(e,t,n){"use strict";var r=n("cc89"),o=n.n(r);o.a},"944e":function(e,t,n){"use strict";var r=n("a6bb"),o=n.n(r);o.a},9470:function(e,t,n){"use strict";var r=n("69c3"),o=n.n(r);o.a},"956d":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getVideoInfo",(function(){return o}));var r=n("e2e2");function o(t,n){var o=t.src,i=e,a=i.invokeCallbackHandler;Object(r["f"])(o,!0).then((function(e){return e})).catch((function(){return{}})).then((function(e){var t=e.size?{size:e.size,errMsg:"getVideoInfo:ok"}:{errMsg:"getVideoInfo:fail"},r=document.createElement("video");if(void 0!==r.onloadedmetadata){var i=setTimeout((function(){r.onloadedmetadata=null,r.onerror=null,a(n,t)}),o.startsWith("data:")||o.startsWith("blob:")?300:3e3);r.onloadedmetadata=function(){clearTimeout(i),r.onerror=null,a(n,Object.assign(t,{size:e.size,duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0,errMsg:"getVideoInfo:ok"}))},r.onerror=function(){clearTimeout(i),r.onloadedmetadata=null,a(n,t)},r.src=o}else a(n,t)}))}}.call(this,n("0dd1"))},"957a":function(e,t,n){"use strict";n.r(t),n.d(t,"canIUse",(function(){return r}));var r=[{name:"schema",type:String,required:!0}]},9776:function(e,t,n){"use strict";n.r(t),n.d(t,"getLocale",(function(){return a})),n.d(t,"setLocale",(function(){return s})),n.d(t,"onLocaleChange",(function(){return u}));var r=n("a118"),o=n("a6b0"),i=n("65a8");function a(){var e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:o["b"].getLocale()}function s(e){var t=getApp().$vm.$locale;return t!==e&&(getApp().$vm.$locale=e,window.localStorage&&(localStorage[i["d"]]=e),c.forEach((function(t){Object(r["a"])(t,{locale:e})})),!0)}var c=[];function u(e){c.push(e)}},"98be":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n("9250"),o=n.n(r),i=n("27a7"),a=n("ed1a"),s=Object.create(null),c=n("bdb1");c.keys().forEach((function(e){Object.assign(s,c(e))}));var u=s,l=n("3b67"),d=Object.assign(Object.create(null),u,l["a"]),f=Object.create(null);o.a.forEach((function(e){d[e]?f[e]=Object(a["d"])(e,Object(i["c"])(e,d[e])):f[e]=Object(i["d"])(e)}))},9980:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-web-view",e._g({},e.$listeners),[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],1)},o=[],i={name:"WebView",props:{src:{type:String,default:""}},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),document.body.appendChild(this.iframe),this._resize()},activated:function(){this.iframe.style.display="block"},deactivated:function(){this.iframe.style.display="none"},beforeDestroy:function(){document.body.removeChild(this.iframe)},methods:{_resize:function(){var e=this.$el.getBoundingClientRect(),t=e.top,n=e.left,r=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=r+"px",this.iframe.style.height=o+"px"}}},a=i,s=(n("c33f"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},"9a3e":function(e,t,n){"use strict";n.r(t),n.d(t,"uploadFile",(function(){return o}));var r=n("cb0f"),o={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator:function(e,t){e&&(t.filePath=Object(r["a"])(e))}},name:{type:String},header:{type:Object,validator:function(e,t){t.header=e||{}}},formData:{type:Object,validator:function(e,t){t.formData=e||{}}}}},"9a8b":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-icon",e._g({},e.$listeners),[n("i",{class:"uni-icon-"+e.type,style:{"font-size":e._converPx(e.size),color:e.color},attrs:{role:"img"}})])},o=[],i={name:"Icon",props:{type:{type:String,required:!0,default:""},size:{type:[String,Number],default:23},color:{type:String,default:""}},methods:{_converPx:function(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||""}}},a=i,s=(n("7e6a"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},"9b1b":function(e,t,n){"use strict";n.r(t),n.d(t,"onWindowResize",(function(){return a})),n.d(t,"offWindowResize",(function(){return s}));var r=n("a118"),o=n("db70"),i=[];function a(e){i.push(e)}function s(e){i.splice(i.indexOf(e),1)}Object(o["d"])("onViewDidResize",(function(e){i.forEach((function(t){Object(r["a"])(t,e)}))}))},"9b1f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-progress",e._g({staticClass:"uni-progress"},e.$listeners),[n("div",{staticClass:"uni-progress-bar",style:e.outerBarStyle},[n("div",{staticClass:"uni-progress-inner-bar",style:e.innerBarStyle})]),e.showInfo?[n("p",{staticClass:"uni-progress-info"},[e._v(" "+e._s(e.currentPercent)+"% ")])]:e._e()],2)},o=[],i={activeColor:"#007AFF",backgroundColor:"#EBEBEB",activeMode:"backwards"},a={name:"Progress",props:{percent:{type:[Number,String],default:0,validator:function(e){return!isNaN(parseFloat(e,10))}},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:function(e){return!isNaN(parseFloat(e,10))}},color:{type:String,default:i.activeColor},activeColor:{type:String,default:i.activeColor},backgroundColor:{type:String,default:i.backgroundColor},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:i.activeMode},duration:{type:[Number,String],default:30,validator:function(e){return!isNaN(parseFloat(e,10))}}},data:function(){return{currentPercent:0,strokeTimer:0,lastPercent:0}},computed:{outerBarStyle:function(){return"background-color: ".concat(this.backgroundColor,"; height: ").concat(this.strokeWidth,"px;")},innerBarStyle:function(){var e="";return e=this.color!==i.activeColor&&this.activeColor===i.activeColor?this.color:this.activeColor,"width: ".concat(this.currentPercent,"%;background-color: ").concat(e)},realPercent:function(){var e=parseFloat(this.percent,10);return e<0&&(e=0),e>100&&(e=100),e}},watch:{realPercent:function(e,t){this.strokeTimer&&clearInterval(this.strokeTimer),this.lastPercent=t||0,this._activeAnimation()}},created:function(){this._activeAnimation()},methods:{_activeAnimation:function(){var e=this;this.active?(this.currentPercent=this.activeMode===i.activeMode?0:this.lastPercent,this.strokeTimer=setInterval((function(){e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(this.duration))):this.currentPercent=this.realPercent}}},s=a,c=(n("944e"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},"9b5b":function(e,t,n){"use strict";var r=n("8b61"),o=n.n(r);o.a},"9e56":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"previewImage",(function(){return i})),n.d(t,"closePreviewImage",(function(){return a}));var r=e,o=r.invokeCallbackHandler;function i(e,t){var n=e.urls,r=e.current;getApp().$router.push({type:"navigateTo",path:"/preview-image",params:{urls:n,current:r}},(function(){o(t,{errMsg:"previewImage:ok"})}),(function(){o(t,{errMsg:"previewImage:fail"})}))}function a(e,t){var n=getApp().$router;"/preview-image"===n.history.current.path?(n.back(),o(t,{errMsg:"closePreviewImage:ok"})):o(t,{errMsg:"closePreviewImage:fail"})}}.call(this,n("0dd1"))},"9f96":function(e,t,n){"use strict";n.r(t);var r=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)},o=[],i=n("8af1"),a=n("ba15"),s={add:function(e){var t,n,r;try{t=this.toString().split(".")[1].length}catch(o){t=0}try{n=e.toString().split(".")[1].length}catch(o){n=0}return r=Math.pow(10,Math.max(t,n)),(this*r+e*r)/r},sub:function(e){return this.add(-e)},mul:function(e){var t=0,n=this.toString(),r=e.toString();try{t+=n.split(".")[1].length}catch(o){}try{t+=r.split(".")[1].length}catch(o){}return Number(n.replace(".",""))*Number(r.replace(".",""))/Math.pow(10,t)},div:function(e){var t,n,r=0,o=0;try{r=this.toString().split(".")[1].length}catch(i){}try{o=e.toString().split(".")[1].length}catch(i){}return t=Number(this.toString().replace(".","")),n=Number(e.toString().replace(".","")),t/n*Math.pow(10,o-r)},mod:function(e){var t,n,r=0,o=0;try{r=this.toString().split(".")[1].length}catch(s){}try{o=e.toString().split(".")[1].length}catch(s){}var i=Math.pow(10,Math.abs(r-o));1==i&&(i=Math.pow(10,r)),t=(this*i).toString().split(".")[0],n=e*i;var a=(this*i).toString().split(".")[1]?(this*i).toString().split(".")[1]:"";return(t%n+a)/i}},c={name:"Slider",mixins:[i["a"],i["f"],a["a"]],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,r=t.offsetWidth;r+=parseInt(n);var o=this.$refs["uni-slider"],i=o.offsetWidth-(this.showValue?r:0),a=o.getBoundingClientRect().left,s=(e.x-a)*(this.max-this.min)/i+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:s.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}}},u=c,l=(n("6428"),n("2877")),d=Object(l["a"])(u,r,o,!1,null,null,null);t["default"]=d.exports},a118:function(e,t,n){"use strict";(function(e){function r(){var t;return(t=e).invokeCallbackHandler.apply(t,arguments)}function o(t){return e.removeCallbackHandler(t)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))}).call(this,n("0dd1"))},a201:function(e,t,n){"use strict";n.r(t),n.d(t,"request",(function(){return u})),n.d(t,"configMTLS",(function(){return l}));var r=n("f2b3"),o={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT",PATCH:"PATCH"},i={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 i=n[1]||"";e=n[0];var a=i.split("&").filter((function(e){return e}));for(var c in i={},a.forEach((function(e){e=e.split("="),i[e[0]]=e[1]})),t)if(Object(r["i"])(t,c)){var u=t[c];"undefined"===typeof u||null===u?u="":Object(r["l"])(u)&&(u=JSON.stringify(u)),i[s(c)]=s(u)}return i=Object.keys(i).map((function(e){return"".concat(e,"=").concat(i[e])})).join("&"),e+(i?"?"+i:"")+(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&&Object(r["l"])(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||i.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}},l={certificates:{type:Array,required:!0,validator:function(e){if(e.some((function(e){return"String"!==Object(r["s"])(e.host)})))return"参数配置错误,请确认后重试"}}}},a20f:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n("f2b3"),o=function(){var e=document.createElement("canvas");e.height=e.width=0;var t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}(),i=function(e,t){for(var n in e)Object(r["i"])(e,n)&&t(e[n],n)},a={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",setTransform:[4,5]},s=CanvasRenderingContext2D.prototype;function c(e){e.width=e.offsetWidth*o,e.height=e.offsetHeight*o,e.__hidpi__=!0,e.__context2d__=e.getContext("2d"),e.__context2d__.__hidpi__=!0}s.drawImageByCanvas=function(e){return function(t,n,r,i,a,s,c,u,l,d){if(!this.__hidpi__)return e.apply(this,arguments);n*=o,r*=o,i*=o,a*=o,s*=o,c*=o,u=d?u*o:u,l=d?l*o:l,e.call(this,t,n,r,i,a,s,c,u,l)}}(s.drawImage),1!==o&&(i(a,(function(e,t){s[t]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);var n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*o}));else if(Array.isArray(e))for(var r=0;r<e.length;r++)n[e[r]]*=o;return t.apply(this,n)}}(s[t])})),s.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=o,e.apply(this,arguments),this.lineWidth/=o}}(s.stroke),s.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=o,t[2]*=o;var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*o+n})),e.apply(this,t),this.font=n}}(s.fillText),s.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=o,t[2]*=o;var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*o+n})),e.apply(this,t),this.font=n}}(s.strokeText),s.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(o,o),e.apply(this,arguments),this.scale(1/o,1/o)}}(s.drawImage))},a3e5:function(e,t,n){"use strict";var r=n("df1e"),o=n.n(r);o.a},a402:function(e,t,n){"use strict";var r=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)},o=[],i=n("e949"),a=n("bdbe"),s={name:"PageBody",mounted:function(){var e=a["a"].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                }"),Object(i["a"])(t)}},c=s,u=(n("167a"),n("2877")),l=Object(u["a"])(c,r,o,!1,null,null,null);t["a"]=l.exports},a470:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("65a8"),o=n("d8c8"),i=n.n(o);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]),o=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+i.a.top:0)+(s||0),bottom:n?n+i.a.bottom:0,left:o?o+i.a.left:0,right:a?a+i.a.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?r["a"]:0}var h=getApp();return h&&(u=h.$children[0]&&h.$children[0].showTabBar?r["c"]:0),{top:c,bottom:u,left:0,right:0}}},a5ec:function(e,t,n){"use strict";var r=n("54bc"),o=n.n(r);o.a},a6b0:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return T})),n.d(t,"f",(function(){return I}));var r,o=n("d46d"),i=n("f2b3"),a=n("65a8"),s=n("39aa"),c=n("80e5"),u=n("b3b1"),l=n("2209"),d=n("02ed"),f={};function h(){if(C()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=f[e],n=__uniConfig.locales[e];t?Object.assign(t,n):f[e]=n}))}}Object.assign(f,{en:s,es:c,fr:u,"zh-Hans":l,"zh-Hant":d}),r=window.localStorage&&localStorage[a["d"]]||__uniConfig.locale||navigator.language,h();var p=Object(o["initVueI18n"])(r,f),g=p.t,v=p.mixin={beforeCreate:function(){var e=this,t=p.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return g(e,t)}}},m=(p.setLocale,p.getLocale);function _(e,t,n){var r=e.observable({locale:n||p.getLocale()}),o=[];t.$watchLocale=function(e){o.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,o.forEach((function(t){return t(e)}))}})}var y=["%","%"];function b(){var e=uni.getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function M(e){return Object(o["isI18nStr"])(e,y)?p.f(e,b(),y):e}function S(e,t){if(1!==t.length){var n=t.shift();return S(e&&e[n],t)}if(e){var r=e[t[0]];if(Object(i["m"])(r)&&Object(o["isI18nStr"])(r,y))return e}}function k(e,t){return t.map((function(t){return w(e,t)}))}function w(e,t){var n=S(e,t);if(!n)return!1;var r=t[t.length-1],o=n[r];return Object.defineProperty(n,r,{get:function(){return M(o)},set:function(e){o=e}}),!0}function C(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}function T(e){if(C())return k(e,[["titleText"],["searchInput","placeholder"]])}function I(e){return C()&&e.list&&e.list.forEach((function(e){w(e,["text"])})),e}},a6bb:function(e,t,n){},a741:function(e,t,n){"use strict";(function(e,r){function o(e,t,n){return e=e.$vm||e,e.__call_hook&&e.__call_hook(t,n)}function i(t,n,r){return"onError"!==n&&e.debug("App:".concat(n," have been invoked")+(r?" ".concat(JSON.stringify(r)):"")),t=t.$vm||t,t.__call_hook&&t.__call_hook(n,r)}function a(t,n,i){return"onLoad"===n&&(t.$mp.query=i,r.publishHandler("onPageLoad",t,t.$page.id)),"onShow"===n&&(t.$route.meta.isTabBar&&t.$route.params.detail&&setTimeout((function(){r.emit("onTabItemTap",t.$route.params.detail)}),0),r.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,i)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))}).call(this,n("3ad9")["default"],n("0dd1"))},a878:function(e,t,n){"use strict";var r,o=n("f2b3"),i=!o["q"]||{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(!r){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)}),i)})),r=!0}a.push(e)}function l(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)}t["a"]={data:function(){return{userInteract:!1}},mounted:function(){u(this)},beforeDestroy:function(){l(this)},addInteractListener:u,getStatus:function(){return!!s}}},a919:function(e,t,n){"use strict";(function(e){var r=n("cb0f"),o=n("f2b3"),i=n("b865");function a(e){return window.CSS&&CSS.supports&&(CSS.supports(e)||CSS.supports.apply(CSS,e.split(":")))}t["a"]={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"},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(a("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)}))},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),Object(r["a"])(e)},_switchTab:function(t,n){var r=t.text,o=t.pagePath,a=t.isMidButton,s=void 0!==a&&a;if(s)Object(i["a"])("onTabBarMidButtonTap");else{this.selectedIndex=n;var c="/"+o;c===__uniRoutes[0].alias&&(c="/");var u={index:n,text:r,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&&Object(o["l"])(this.midButton)){var n={width:"50px",height:"50px",iconWidth:"24px"};for(var r in n)this.midButton[r]=this.midButton[r]||n[r];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)+"')":""})}}}}).call(this,n("0dd1"))},a954:function(e,t,n){"use strict";n.r(t),n.d(t,"addInterceptor",(function(){return r})),n.d(t,"removeInterceptor",(function(){return o}));var r=[{name:"method",type:[String,Object],required:!0}],o=r},aa92:function(e,t,n){"use strict";function r(e){return s(e)||a(e)||i(e)||o()}function o(){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 i(e,t){if(e){if("string"===typeof e)return c(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)?c(e,t):void 0}}function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return p}));var u=["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"],l=["data","properties","options","relations"];function d(e,t,n){t[n]&&Object.assign(e[n]||(e[n]={}),t[n])}function f(e,t){e.push.apply(e,r(t))}function h(e,t){l.forEach((function(n){d(e,t,n)})),t.externalClasses&&f(e.externalClasses||(e.externalClasses=[]),t.externalClasses),t.path&&(e.path=t.path)}function p(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==u.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;u.forEach((function(e){n[e]=r})),n.mpOptions=function(e,t){if(!e)return t;var n=Object.create(null);return h(n,e),t&&h(n,t),n}}},abb2:function(e,t,n){"use strict";n.r(t),n.d(t,"connectSocket",(function(){return o})),n.d(t,"sendSocketMessage",(function(){return i})),n.d(t,"closeSocket",(function(){return a}));var r={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},o={url:{type:String,required:!0},header:{type:Object,validator:function(e,t){t.header=e||{}}},method:{type:String,validator:function(e,t){e=(e||"").toUpperCase(),t.method=Object.values(r).indexOf(e)<0?r.GET:e}},protocols:{type:[Array,String],validator:function(e,t){"string"===typeof e&&(e=[e]),t.protocols=(e||[]).filter((function(e){return"string"===typeof e}))}}},i={data:{type:[String,ArrayBuffer]}},a={code:{type:Number},reason:{type:String}}},abbf:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n("a741"),o=n("1164");function i(t,n,i){return{created:function(){Object(o["a"])(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(){var e={path:this.$route.meta&&this.$route.meta.pagePath,query:this.$route.query,scene:1001};Object(r["a"])(this,"onLaunch",e),Object(r["a"])(this,"onShow",e)}}}n.d(t,"b",(function(){return o["b"]})),n.d(t,"c",(function(){return o["c"]}))}).call(this,n("0dd1"))},abea:function(e,t,n){"use strict";function r(e){var t=e.service;return{service:t,provider:[]}}n.r(t),n.d(t,"getProvider",(function(){return r}))},add1:function(e,t,n){},af33:function(e,t,n){"use strict";n.r(t),n.d(t,"createSelectorQuery",(function(){return v}));var r=n("f2b3"),o=n("db70"),i=n("303f"),a=n("bfa6"),s=n("ee03"),c=n("60db");function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var f={canvas:i["CanvasContext"],map:a["MapContext"],video:s["VideoContext"],editor:c["EditorContext"]};function h(e){if(e&&e.context){var t=e.context,n=t.id,r=t.name,o=t.page,i=f[r];e.context=i&&new i(n,o)}}var p=function(){function e(t,n,r,o){u(this,e),this._selectorQuery=t,this._component=n,this._selector=r,this._single=o}return d(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){u(this,e),this._page=t,this._queue=[],this._queueCb=[]}return d(e,[{key:"exec",value:function(e){var t=this;Object(o["c"])("requestComponentInfo",this._page,this._queue,(function(n){var o=t._queueCb;n.forEach((function(e,n){Array.isArray(e)?e.forEach(h):h(e);var i=o[n];Object(r["k"])(i)&&i.call(t,e)})),Object(r["k"])(e)&&e.call(t,n)}))}},{key:"in",value:function(e){return this._component=e._$id||e,this}},{key:"select",value:function(e){return new p(this,this._component,e,!0)}},{key:"selectAll",value:function(e){return new p(this,this._component,e,!1)}},{key:"selectViewport",value:function(){return new p(this,0,"",!0)}},{key:"_push",value:function(e,t,n,r,o){this._queue.push({component:t,selector:e,single:n,fields:r}),this._queueCb.push(o)}}]),e}();function v(e){return new g(e||Object(o["b"])("createSelectorQuery"))}},b0ef:function(e,t,n){"use strict";n.r(t),n.d(t,"$on",(function(){return r})),n.d(t,"$once",(function(){return o})),n.d(t,"$off",(function(){return i})),n.d(t,"$emit",(function(){return a}));var r=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],o=r,i=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],a=[{name:"event",type:String,required:!0}]},b10a:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n("18fd");function o(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}function i(e){return e.reduce((function(e,t){var n=t.value,r=t.name;return n.match(/ /)&&"style"!==r&&(n=n.split(" ")),e[r]?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n,e}),{})}function a(t){t=o(t);var n=[],a={node:"root",children:[]};return Object(r["a"])(t,{start:function(e,t,r){var o={name:e};if(0!==t.length&&(o.attrs=i(t)),r){var s=n[0]||a;s.children||(s.children=[]),s.children.push(o)}else n.unshift(o)},end:function(t){var r=n.shift();if(r.name!==t&&e.error("invalid state: mismatch end tag"),0===n.length)a.children.push(r);else{var o=n[0];o.children||(o.children=[]),o.children.push(r)}},chars:function(e){var t={type:"text",text:e};if(0===n.length)a.children.push(t);else{var r=n[0];r.children||(r.children=[]),r.children.push(t)}},comment:function(e){var t={node:"comment",text:e},r=n[0];r.children||(r.children=[]),r.children.push(t)}}),a.children}}).call(this,n("3ad9")["default"])},b253:function(e,t,n){"use strict";function r(e){return r="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(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){return function(){var t,n=d(e);if(l()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return c(this,t)}}function c(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}n.d(t,"a",(function(){return K}));var f=function(e){var t=e.import("blots/block/embed"),n=function(e){i(n,e);var t=s(n);function n(){return o(this,n),t.apply(this,arguments)}return n}(t);return n.blotName="divider",n.tagName="HR",{"formats/divider":n}};function h(e){return 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},h(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){return function(){var t,n=M(e);if(b()){var r=M(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return _(this,t)}}function _(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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 M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var S=function(e){var t=e.import("blots/inline"),n=function(e){g(n,e);var t=m(n);function n(){return p(this,n),t.apply(this,arguments)}return n}(t);return n.blotName="ins",n.tagName="INS",{"formats/ins":n}},k=function(e){var t=e.import("parchment"),n=t.Scope,r=t.Attributor,o={scope:n.BLOCK,whitelist:["left","right","center","justify"]},i=new r.Style("align","text-align",o);return{"formats/align":i}},w=function(e){var t=e.import("parchment"),n=t.Scope,r=t.Attributor,o={scope:n.BLOCK,whitelist:["rtl"]},i=new r.Style("direction","direction",o);return{"formats/direction":i}};function C(e){return C="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},C(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&A(e.prototype,t),n&&A(e,n),e}function O(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 D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function N(e){return function(){var t,n=U(e);if(R()){var r=U(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return L(this,t)}}function L(e,t){return!t||"object"!==C(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){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="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=G(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},P(e,t,n||e)}function G(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=U(e),null===e)break;return e}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var F=function(e){var t=e.import("parchment"),n=e.import("blots/container"),r=e.import("formats/list/item"),o=function(e){O(o,e);var n=N(o);function o(e){var r;I(this,o),r=n.call(this,e);var i=function(n){if(n.target.parentNode===e){var o=r.statics.formats(e),i=t.find(n.target);"checked"===o?i.format("list","unchecked"):"unchecked"===o&&i.format("list","checked")}};return e.addEventListener("click",i),r}return E(o,null,[{key:"create",value:function(e){var t="ordered"===e?"OL":"UL",n=P(U(o),"create",this).call(this,t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),E(o,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return T({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,t){if(e instanceof r)P(U(o.prototype),"insertBefore",this).call(this,e,t);else{var n=null==t?this.length():t.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){P(U(o.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}P(U(o.prototype),"replace",this).call(this,e)}}]),o}(n);return o.blotName="list",o.scope=t.Scope.BLOCK_BLOT,o.tagName=["OL","UL"],o.defaultChild="list-item",o.allowedChildren=[r],{"formats/list":o}},j=function(e){var t=e.import("parchment"),n=t.Scope,r=e.import("formats/background"),o=new r.constructor("backgroundColor","background-color",{scope:n.INLINE});return{"formats/backgroundColor":o}},$=n("f2b3"),q=function(e){var t=e.import("parchment"),n=t.Scope,r=t.Attributor,o={scope:n.BLOCK},i=["margin","marginTop","marginBottom","marginLeft","marginRight"],a=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],s={};return i.concat(a).forEach((function(e){s["formats/".concat(e)]=new r.Style(e,Object($["n"])(e),o)})),s},B=function(e){var t=e.import("parchment"),n=t.Scope,r=t.Attributor,o={scope:n.INLINE},i=["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"],a={};return i.forEach((function(e){a["formats/".concat(e)]=new r.Style(e,Object($["n"])(e),o)})),a},V=function(e){var t=e.import("parchment"),n=t.Scope,r=t.Attributor,o=[{name:"lineHeight",scope:n.BLOCK},{name:"letterSpacing",scope:n.INLINE},{name:"textDecoration",scope:n.INLINE},{name:"textIndent",scope:n.BLOCK}],i={};return o.forEach((function(e){var t=e.name,n=e.scope;i["formats/".concat(t)]=new r.Style(t,Object($["n"])(t),{scope:n})})),i},H=n("cb0f"),W=function(e){var t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=function(e){return e?Object(H["a"])(e):e},t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};var r=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):r.call(this,e,t)}},z=function(e){var t=e.import("formats/link");t.sanitize=function(e){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(r)>-1?e:t.SANITIZED_URL}};function K(e){var t={divider:f,ins:S,align:k,direction:w,list:F,background:j,box:q,font:B,text:V,image:W,link:z},n={};Object.values(t).forEach((function(t){return Object.assign(n,t(e))})),e.register(n,!0)}},b282:function(e,t,n){"use strict";(function(e){var r,o=n("f2b3"),i=n("5cf8"),a=n("5a23"),s=n("a878");e.subscribe("getSelectedTextRange",(function(t){var n=t.pageId,r=t.callbackId,o=document.activeElement,i=o.tagName.toLowerCase(),a=["input","textarea"],s={};a.includes(i)?(s.errMsg="getSelectedTextRange:ok",s.start=o.selectionStart,s.end=o.selectionEnd):s.errMsg="getSelectedTextRange:fail no focused",e.publishHandler("onGetSelectedTextRange",{callbackId:r,data:s},n)})),t["a"]={name:"Field",mixins:[i["a"],a["a"],s["a"]],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}},data:function(){return{composing:!1,valueSync:this._getValueString(this.value),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=Object(o["d"])((function(t){e.valueSync=e._getValueString(t)}),100);this.$watch("value",t),this.__triggerInput=Object(o["r"])((function(t,n){e.__valueChange.cancel(),e.$emit("update:value",n.value),e.$trigger("input",t,n)}),100),this.$triggerInput=function(t,n,r){e.__valueChange.cancel(),e.__triggerInput(t,n),r&&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){return null===e?"":String(e)},_initField:function(e){var t=this;this._field=e,r=r||Date.now(),this.needFocus&&setTimeout((function(){t._focus()}))},_focus:function(){if(this.needFocus){var e=this._field;e?e.focus():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)}}}}).call(this,n("501c"))},b2bb:function(e,t,n){},b34d:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-form",e._g({},e.$listeners),[n("span",[e._t("default")],2)])},o=[],i=n("8af1"),a={name:"Form",mixins:[i["f"]],data:function(){return{childrenList:[]}},listeners:{"@form-submit":"_onSubmit","@form-reset":"_onReset","@form-group-update":"_formGroupUpdateHandler"},methods:{_onSubmit:function(e){var t={};this.childrenList.forEach((function(e){e._getFormData&&e._getFormData().key&&(t[e._getFormData().key]=e._getFormData().value)})),this.$trigger("submit",e,{value:t})},_onReset:function(e){this.$trigger("reset",e,{}),this.childrenList.forEach((function(e){e._resetFormData&&e._resetFormData()}))},_formGroupUpdateHandler:function(e){if("add"===e.type)this.childrenList.push(e.vm);else{var t=this.childrenList.indexOf(e.vm);this.childrenList.splice(t,1)}}}},s=a,c=n("2877"),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},b3b1: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"}')},b501:function(e,t,n){"use strict";n.r(t),n.d(t,"setClipboardData",(function(){return o}));var r=n("a6b0"),o={data:{type:String,required:!0},showToast:{type:Boolean,default:!0},beforeSuccess:function(e,t){if(t.showToast){var n=Object(r["g"])("uni.setClipboardData.success");n&&uni.showToast({title:n,icon:"success",mask:!1,style:{width:void 0}})}}}},b628:function(e,t,n){"use strict";var r=n("8b18"),o=n.n(r);o.a},b705:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-rich-text",e._g({},e.$listeners),[n("div",{ref:"content"},[n("v-uni-resize-sensor",{ref:"sensor",on:{resize:function(t){return e._updateView()}}})],1)])},o=[],i=n("b10a"),a=n("f2b3"),s=n("cb0f"),c={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},u={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"};function l(e){return e.replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){if(Object(a["i"])(u,t)&&u[t])return u[t];if(/^#[0-9]{1,4}$/.test(t))return String.fromCharCode(t.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(t))return String.fromCharCode("0"+t.slice(1));var n=document.createElement("div");return n.innerHTML=e,n.innerText||n.textContent}))}function d(e,t,n){return"img"===e&&"src"===t?Object(s["a"])(n):n}function f(e,t,n,r){return e.forEach((function(e){if(Object(a["l"])(e))if(Object(a["i"])(e,"type")&&"node"!==e.type)"text"===e.type&&"string"===typeof e.text&&""!==e.text&&t.appendChild(document.createTextNode(l(e.text)));else{if("string"!==typeof e.name||!e.name)return;var o=e.name.toLowerCase();if(!Object(a["i"])(c,o))return;var i=document.createElement(o);if(!i)return;var s=e.attrs;if(Object(a["l"])(s)){var u=c[o]||[];Object.keys(s).forEach((function(e){var t=s[e];switch(e){case"class":Array.isArray(t)&&(t=t.join(" "));case"style":i.setAttribute(e,t),n&&i.setAttribute(n,"");break;default:-1!==u.indexOf(e)&&i.setAttribute(e,d(o,e,t))}}))}h(e,i,r);var p=e.children;Array.isArray(p)&&p.length&&f(e.children,i,n,r),t.appendChild(i)}})),t}function h(e,t,n){["a","img"].includes(e.name)&&n&&(t.setAttribute("onClick","return false;"),t.addEventListener("click",(function(t){n(t,{node:e}),t.stopPropagation()}),!0))}var p={name:"RichText",props:{nodes:{type:[Array,String],default:function(){return[]}}},watch:{nodes:function(e){this._renderNodes(e)}},mounted:function(){this._renderNodes(this.nodes)},methods:{_renderNodes:function(e){var t="",n=this;while(n)!t&&(t=n.$options._scopeId),n=n.$parent;var r=!!this.$listeners.itemclick;if(this._isMounted){"string"===typeof e&&(e=Object(i["a"])(e));var o=f(e,document.createDocumentFragment(),t,r&&this.triggerItemClick);o.appendChild(this.$refs.sensor.$el);var a=this.$refs.content;a.innerHTML="",a.appendChild(o)}},_updateView:function(){window.dispatchEvent(new CustomEvent("updateview"))},triggerItemClick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$trigger("itemclick",e,t)}}},g=p,v=n("2877"),m=Object(v["a"])(g,r,o,!1,null,null,null);t["default"]=m.exports},b865:function(e,t,n){"use strict";(function(e,r){function o(t,n){return e.emit("api."+t,n)}function i(e,t,n){r.UniViewJSBridge.subscribeHandler(e,t,n)}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}))}).call(this,n("0dd1"),n("c8ba"))},b866:function(e,t,n){"use strict";n.r(t),n.d(t,"getImageInfo",(function(){return o}));var r=n("cb0f"),o={src:{type:String,required:!0,validator:function(e,t){t.src=Object(r["a"])(e)}}}},ba15:function(e,t,n){"use strict";var r=function(e,t,n,r){e.addEventListener(t,(function(e){"function"===typeof n&&!1===n(e)&&(e.preventDefault(),e.stopPropagation())}),{capture:r,passive:!1})};t["a"]={beforeDestroy:function(){document.removeEventListener("mousemove",this.__mouseMoveEventListener),document.removeEventListener("mouseup",this.__mouseUpEventListener)},methods:{touchtrack:function(e,t,n){var o,i,a,s=this,c=this,u=0,l=0,d=0,f=0,h=function(e,n,r,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:r,y:o,dx:r-u,dy:o-l,ddx:r-d,ddy:o-f,timeStamp:e.timeStamp}}))return!1},p=null;r(e,"touchstart",(function(e){if(i=!0,1===e.touches.length&&!p)return p=e,u=d=e.touches[0].pageX,l=f=e.touches[0].pageY,h(e,"start",u,l)})),r(e,"mousedown",(function(e){if(a=!0,!i&&!p)return p=e,u=d=e.pageX,l=f=e.pageY,h(e,"start",u,l)})),r(e,"touchmove",(function(e){if(1===e.touches.length&&p){var t=h(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()},v=this.__mouseMoveEventListener=function(e){if(!i&&a&&p){!o&&(Math.abs(d-u)>2||Math.abs(f-l)>2)&&(document.addEventListener("click",g,!0),o=!0);var t=h(e,"move",e.pageX,e.pageY);return d=e.pageX,f=e.pageY,t}};document.addEventListener("mousemove",v),r(e,"touchend",(function(e){if(0===e.touches.length&&p)return i=!1,p=null,h(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));var m=this.__mouseUpEventListener=function(e){if(a=!1,!i&&p)return o&&setTimeout((function(){document.removeEventListener("click",s.__clickEventListener,!0),o=!1}),0),p=null,h(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",m),r(e,"touchcancel",(function(e){if(p){i=!1;var t=p;return p=null,h(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}}}},bacd:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-canvas",e._g({attrs:{"canvas-id":e.canvasId,"disable-scroll":e.disableScroll}},e._listeners),[n("canvas",{ref:"canvas",attrs:{width:"300",height:"150"}}),n("div",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}},[e._t("default")],2),n("v-uni-resize-sensor",{ref:"sensor",on:{resize:e._resize}})],1)},o=[],i=n("d8ca"),a=i["a"],s=(n("0741"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},bb00:function(e,t,n){"use strict";n.r(t),n.d(t,"onKeyboardHeightChange",(function(){return a})),n.d(t,"offKeyboardHeightChange",(function(){return s}));var r,o=n("a118"),i=n("db70");function a(e){Object(o["b"])(r),r=e}function s(){r=null}Object(i["d"])("onKeyboardHeightChange",(function(e){r&&Object(o["a"])(r,e)}))},bd97:function(e,t,n){"use strict";n.r(t),t["default"]={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"}}},bdb1:function(e,t,n){var r={"./base/base64.js":"1ca3","./base/can-i-use.js":"3648","./base/interceptor.js":"2eae","./base/upx2px.js":"45d2","./context/audio.js":"2c67","./context/background-audio.js":"c3f2","./context/canvas.js":"303f","./context/create-map-context.js":"bfa6","./context/create-video-context.js":"ee03","./context/editor.js":"60db","./context/inner-audio.js":"57a7","./device/network.js":"8b3f","./device/theme.js":"d001","./keyboard/get-selected-text-range.js":"d502","./keyboard/keyboard.js":"bb00","./media/preview-image.js":"898f","./media/recorder.js":"3676","./network/download-file.js":"f0c3","./network/request.js":"82c2","./network/socket.js":"811a","./network/update.js":"c7d8","./network/upload-file.js":"1ff3","./ui/create-animation.js":"1e4d","./ui/create-intersection-observer.js":"091a","./ui/create-media-query-observer.js":"68fb","./ui/create-selector-query.js":"af33","./ui/load-font-face.js":"0001","./ui/locale.js":"9776","./ui/page-scroll-to.js":"84e0","./ui/set-page-meta.js":"2ec6","./ui/tab-bar.js":"454d","./ui/window.js":"9b1b"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="bdb1"},bdbe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("8bbf"),o=n.n(r),i=n("a6b0");__uniConfig.tabBar=o.a.observable(Object(i["f"])(__uniConfig.tabBar||{}));var a=__uniConfig.tabBar},be12:function(e,t,n){"use strict";(function(e){function n(e,t,n){var r=Array.prototype.slice.call(e.changedTouches).filter((function(e){return e.identifier===t}))[0];return!!r&&(e.deltaY=r.pageY-n,!0)}var r="pulling",o="reached",i="aborting",a="refreshing",s="restoring";t["a"]={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=a,t._addClass(),setTimeout((function(){t._refreshing()}),50))})),e.on(this.$route.params.__id__+".stopPullDownRefresh",(function(){t.state===a&&(t._removeClass(),t.state=s,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,[i,a,s].indexOf(this.state)>=0?this.canRefresh=!1:this.canRefresh=!0},_touchmove:function(e){if(this.canRefresh&&n(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=r,this._addClass()),t-=this.offset,t<0&&(t=0),this.distance=t;var i=t>=this.refreshOptions.range&&this.state!==o,a=t<this.refreshOptions.range&&this.state!==r;(i||a)&&(this._removeClass(),this.state=this.state===o?r:o,this._addClass()),this._pulling(t)}}else this.touchId=null}},_touchend:function(e){var t=this;n(e,this.touchId,this.startY)&&null!==this.state&&(this.state===r?(this._removeClass(),this.state=i,this._addClass(),this._aborting((function(){t._removeClass(),t.state=t.distance=t.offset=null}))):this.state===o&&(this._removeClass(),this.state=a,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,r=e/this.refreshOptions.range;r>1?r=1:r*=r*r;var o=Math.round(e/(this.refreshOptions.range/this.refreshOptions.height)),i=o?"translate3d(-50%, "+o+"px, 0)":0;n.webkitTransform=i,n.clip="rect("+(45-o)+"px,45px,45px,-5px)",this.refreshInnerElemStyle.webkitTransform="rotate("+360*r+"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 r=function r(){o&&clearTimeout(o),t.removeEventListener("webkitTransitionEnd",r),n.webkitTransition="",e()};t.addEventListener("webkitTransitionEnd",r);var o=setTimeout(r,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 r=function r(){o&&clearTimeout(o),t.removeEventListener("webkitTransitionEnd",r),n.webkitTransition="",n.webkitTransform="translate3d(-50%, 0, 0)",e()};t.addEventListener("webkitTransitionEnd",r);var o=setTimeout(r,350)}}}}}).call(this,n("0dd1"))},be14:function(e,t,n){"use strict";n.r(t),function(e){function r(t,n){var r=e,o=r.invokeCallbackHandler;getApp().$router.push({type:"navigateTo",path:"/choose-location",query:t},(function(){var t=function t(r){e.unsubscribe("onChooseLocation",t),o(n,r?Object.assign(r,{errMsg:"chooseLocation:ok"}):{errMsg:"chooseLocation:fail"})};e.subscribe("onChooseLocation",t)}),(function(){o(n,{errMsg:"chooseLocation:fail"})}))}n.d(t,"chooseLocation",(function(){return r}))}.call(this,n("0dd1"))},bfa6:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"MapContext",(function(){return l})),n.d(t,"createMapContext",(function(){return d}));var r=n("db70"),o=n("f2b3");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e,t,n,o){Object(r["c"])("operateMapPlayer",e,t,n,o)}e.subscribe("onMapMethodCallback",(function(e){var t=e.callbackId,n=e.data;o["a"].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){i(this,e),this.id=t,this.pageVm=n}return s(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||Object(r["b"])("createMapContext"))}l.prototype.$getAppMap=function(){},u.forEach((function(e){l.prototype[e]=o["a"].warp((function(t,n){t.callbackId=n,c(this.id,this.pageVm,e,t)}))}))}.call(this,n("0dd1"))},bfbd:function(e,t,n){},bfea:function(e,t,n){"use strict";var r=n("4e0b"),o=n.n(r);o.a},c0e5:function(e,t,n){},c195:function(e,t,n){},c2aa:function(e,t,n){},c33a:function(e,t,n){},c33f:function(e,t,n){"use strict";var r=n("c195"),o=n.n(r);o.a},c3f2:function(e,t,n){"use strict";n.r(t),n.d(t,"getBackgroundAudioManager",(function(){return f}));var r=n("db70");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var s=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],c={};s.forEach((function(e){c[e]=[]}));var u,l=[{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"buffered",readonly:!0},{name:"title",cache:!0},{name:"epname",cache:!0},{name:"singer",cache:!0},{name:"coverImgUrl",cache:!0},{name:"webUrl",cache:!0},{name:"protocol",readonly:!0,default:"http"}],d=function(){function e(){var t=this;o(this,e),this._options={},Object(r["d"])("onBackgroundAudioStateChange",(function(e){var t=e.state,n=e.errMsg,r=e.errCode;c[t].forEach((function(e){"function"===typeof e&&e("error"===t?{errMsg:n,errCode:r}:{})}))})),l.forEach((function(e){var n=e.name,o={get:function(){var t=e.cache?this._options:Object(r["c"])("getBackgroundAudioState");return n in t?t[n]:e.default}};e.readonly||(o.set=function(e){this._options[n]=e,Object(r["c"])("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(t,n,o)}))}return a(e,[{key:"play",value:function(){this._operate("play")}},{key:"pause",value:function(){this._operate("pause")}},{key:"stop",value:function(){this._operate("stop")}},{key:"seek",value:function(e){this._operate("seek",{currentTime:e})}},{key:"_operate",value:function(e,t){Object(r["c"])("operateBackgroundAudio",Object.assign({},t,{operationType:e}))}}]),e}();function f(){return u||(u=new d)}s.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);d.prototype["on".concat(t)]=function(t){c[e].push(t)}}))},c418:function(e,t,n){},c41f:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-cover-view",e._g({attrs:{"scroll-top":e.scrollTop}},e.$listeners),[n("div",{ref:"content",staticClass:"uni-cover-view"},[e._t("default")],2)])},o=[],i={name:"CoverView",props:{scrollTop:{type:[String,Number],default:0}},watch:{scrollTop:function(e){this.setScrollTop(e)}},mounted:function(){this.setScrollTop(this.scrollTop)},methods:{setScrollTop:function(e){var t=this.$refs.content;"scroll"===getComputedStyle(t).overflowY&&(t.scrollTop=this._upx2pxNum(e))},_upx2pxNum:function(e){return/\d+[ur]px$/i.test(e)&&e.replace(/\d+[ur]px$/i,(function(e){return uni.upx2px(parseFloat(e))})),parseFloat(e)||0}}},a=i,s=(n("cc5f"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},c4c5:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return h}));var o=n("f2b3");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var c=/^\s+|\s+$/g,u=/\s+/;function l(e,t,n){var r=[],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)&&r.push(e)})),r}function d(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}var f=function(){function t(e){i(this,t),this.$vm=e,this.$el=e.$el}return s(t,[{key:"selectComponent",value:function(e){if(this.$el&&e){var t=this.$el.querySelector(e);return t&&t.__vue__&&h(t.__vue__,!1)}}},{key:"selectAllComponents",value:function(e){if(!this.$el||!e)return[];for(var t=[],n=this.$el.querySelectorAll(e),r=0;r<n.length;r++){var o=n[r];o.__vue__&&t.push(h(o.__vue__,!1))}return t}},{key:"setStyle",value:function(e){return this.$el&&e?("string"===typeof e&&(e=d(e)),Object(o["l"])(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 r=l(t,this.$el.classList,!0);if(r.length){var o=this.$el.__wxsAddClass||"";this.$el.__wxsAddClass=o+(o?" ":"")+r.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 r=this.$el.classList,o=this.$el.__wxsAddClass?this.$el.__wxsAddClass.split(u):[],i=l(t,r,!1);if(i.length){var a=[];i.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 r.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 h(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}}).call(this,n("501c"),n("c8ba"))},c61c:function(e,t,n){"use strict";n.r(t);var r=n("f2b3"),o=n("d4cd");function i(e){return Math.sqrt(e.x*e.x+e.y*e.y)}var a,s,c={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(),Object(o["b"])()},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 r(e){for(var o=0;o<t.length;o++){var i=t[o];if(e===i.componentInstance.$el)return i}return e===n||e===document.body||e===document?null:r(e.parentNode)}return r(e)},_touchstart:function(e){Object(o["a"])({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=i(n),this.gapV=n,!this.scaleArea){var r=this._find(t[0].target),a=this._find(t[1].target);this._scaleMovableView=r&&r===a?r: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 r=i(n)/this.pinchStartLen;this._updateScale(r)}this.gapV=n}},_touchend:function(e){Object(o["a"])({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&&Object(r["f"])(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 i=Object.assign({},this.$listeners),a=["touchstart","touchmove","touchend"];return a.forEach((function(e){var n=i[e],r=t["_".concat(e)];i[e]=n?[].concat(n,r):r})),e("uni-movable-area",{on:i},[e("v-uni-resize-sensor",{on:{resize:this._resize}}),o])}},u=c,l=(n("a3e5"),n("2877")),d=Object(l["a"])(u,a,s,!1,null,null,null);t["default"]=d.exports},c7d8:function(e,t,n){"use strict";function r(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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.r(t),n.d(t,"getUpdateManager",(function(){return c}));var a,s=function(){function e(){r(this,e)}return i(e,[{key:"onCheckForUpdate",value:function(){}},{key:"onUpdateReady",value:function(){}},{key:"onUpdateFailed",value:function(){}},{key:"applyUpdate",value:function(){}}]),e}();function c(){return a||(a=new s)}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8ed:function(e,t,n){"use strict";var r=n("72ad"),o=n.n(r);o.a},c96e:function(e,t,n){"use strict";var r=n("1307"),o=n.n(r);o.a},cb0f:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("0f74"),o=/^([a-z-]+:)?\/\//i,i=/^data:.*,.*/;function a(e){var t=__uniConfig.router.base;return t?"/"!==t&&0===("/"+e).indexOf(t)?"/"+e:t+e:e}function s(e){if("./"===__uniConfig.router.base&&(e=e.replace(/^\.\/static\//,"/static/")),0===e.indexOf("/")){if(0!==e.indexOf("//"))return a(e.substr(1));e="https:"+e}if(o.test(e)||i.test(e)||0===e.indexOf("blob:"))return e;var t=getCurrentPages();return t.length?a(Object(r["a"])(t[t.length-1].$page.route,e).substr(1)):e}},cc5f:function(e,t,n){"use strict";var r=n("324c"),o=n.n(r);o.a},cc76:function(e,t,n){"use strict";var r=Object.create(null),o=n("19c4");o.keys().forEach((function(e){Object.assign(r,o(e))})),t["a"]=r},cc89:function(e,t,n){},cdc1:function(e,t,n){"use strict";(function(e,r){var o=n("f2b3"),i=n("65a8"),a=n("81ea"),s=n("f1ea"),c=n("bdbe");t["a"]={name:"App",components:a["a"],mixins:s["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 c["a"]},hasTabBar:function(){return c["a"].list&&c["a"].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:i["c"],o=uni.canIUse("css.env")?"env":uni.canIUse("css.constant")?"constant":"",a=n&&o?"calc(".concat(n,"px + ").concat(o,"(safe-area-inset-bottom))"):"".concat(n,"px");document.documentElement.style.setProperty("--window-bottom",a),r.debug("uni.".concat(a?"showTabBar":"hideTabBar",":--window-bottom=").concat(a))}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){Object(o["l"])(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&&c["a"].matchMedia&&Object(o["i"])(c["a"].matchMedia,"minWidth")){var t=window.matchMedia("(min-width: "+c["a"].matchMedia.minWidth+"px)");t.addListener((function(t){e.tabBarMediaQuery=t.matches})),this.tabBarMediaQuery=t.matches}}}}}).call(this,n("0dd1"),n("3ad9")["default"])},cf6f:function(e,t,n){"use strict";function r(e,t,n){n(null,e)}n.d(t,"a",(function(){return r}))},d001:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onThemeChange",(function(){return a})),n.d(t,"onUIStyleChange",(function(){return s}));var r=n("a118"),o=n("db70"),i=[];function a(e){i.push(e)}function s(t){i.push(t),e.warn('The "uni.onUIStyleChange" API is deprecated, please use "uni.onThemeChange". Learn more: https://uniapp.dcloud.net.cn/api/system/theme.')}Object(o["d"])("onThemeChange",(function(e){i.forEach((function(t){Object(r["a"])(t,e)}))})),Object(o["d"])("onUIStyleChange",(function(e){i.forEach((function(t){Object(r["a"])(t,e)}))}))}.call(this,n("3ad9")["default"])},d013:function(e,t,n){"use strict";n.r(t),n.d(t,"loadSubPackage",(function(){return r}));var r={root:{type:String,required:!0,validator:function(e,t){var n=__uniConfig.subPackages;return Array.isArray(n)&&0!==n.length?n.find((function(t){return t.root===e}))?void 0:"root `"+e+"` is not found":"no subPackages"}}}},d218:function(e,t){},d29c:function(e,t,n){},d3bd:function(e,t,n){"use strict";n.r(t),n("a6b0");var r,o,i=n("8af1"),a={name:"Button",mixins:[i["c"],i["a"],i["f"]],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 r=e.on[n],o=t[n];e.on[n]=r?[].concat(r,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,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"}},s=a,c=(n("5676"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},d46d:function(e,t){e.exports=n},d4b6:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return b}));var r=n("f2b3"),o=n("85b6"),i=n("24d9"),a=n("a470");function s(e,t){var n={id:e.id,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,dataset:Object(o["b"])(e)};return t&&Object.assign(n,t),n}function c(e){if(e){for(var t=[],n=Object(a["a"])(),r=n.top,o=0;o<e.length;o++){var i=e[o];t.push({identifier:i.identifier,pageX:i.pageX,pageY:i.pageY-r,clientX:i.clientX,clientY:i.clientY-r,force:i.force||0})}return t}return[]}function u(e){return e.startsWith("mouse")||["contextmenu"].includes(e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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 l=Object(a["a"])(),d=l.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=Object(i["b"])({type:n.type||e,timeStamp:t.timeStamp||0,detail:n,target:s(r,n),currentTarget:s(o,!1,!0),touches:t instanceof Event||t instanceof CustomEvent?c(t.touches):t.touches,changedTouches:t instanceof Event||t instanceof CustomEvent?c(t.changedTouches):t.changedTouches,preventDefault:function(){},stopPropagation:function(){}});if(u(e)){var h=Object(a["a"])(),p=h.top;f.pageX=t.pageX,f.pageY=t.pageY-p,f.clientX=t.clientX,f.clientY=t.clientY-p}return f}var d=350,f=10,h=!!r["q"]&&{passive:!0},p=!1;function g(){p&&(clearTimeout(p),p=!1)}var v=0,m=0;function _(e){if(g(),1===e.touches.length){var t=e.touches[0],n=t.pageX,r=t.pageY;v=n,m=r,p=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)}),d)}}function y(e){if(p){if(1!==e.touches.length)return g();var t=e.touches[0],n=t.pageX,r=t.pageY;return Math.abs(n-v)>f||Math.abs(r-m)>f?g():void 0}}function b(){window.addEventListener("touchstart",_,h),window.addEventListener("touchmove",y,h),window.addEventListener("touchend",g,h),window.addEventListener("touchcancel",g,h)}},d4cd:function(e,t,n){"use strict";function r(){}function o(e){e.disable}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},d502:function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"getSelectedTextRange",(function(){return c}));var o=n("62b5"),i=n("db70"),a=n("a118"),s=Object(o["a"])("getSelectedTextRangeEvent");function c(t,n){var r=Object(i["a"])();e.publishHandler("getSelectedTextRange",{pageId:r,callbackId:s.push((function(e){Object(a["a"])(n,e)}))},r)}e.subscribe("onGetSelectedTextRange",(function(e){var t=e.callbackId,n=e.data;r.log("onGetSelectedTextRange");var o=s.pop(t);o&&o(n)}))}.call(this,n("0dd1"),n("3ad9")["default"])},d5be:function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"chooseImage",(function(){return d}));var o=n("e2e2"),i=n("a6b0"),a=n("3563"),s=n("8af1"),c=e,u=c.invokeCallbackHandler,l=null;function d(e,t){var n=e.count,c=e.sourceType,d=e.extension;l&&(document.body.removeChild(l),l=null),l=Object(a["default"])({count:n,sourceType:c,extension:d,type:"image"}),document.body.appendChild(l),l.addEventListener("change",(function(e){for(var r=[],i=e.target.files.length,a=function(t){var i=e.target.files[t],a=void 0;Object.defineProperty(i,"path",{get:function(){return a=a||Object(o["b"])(i),a}}),t<n&&r.push(i)},s=0;s<i;s++)a(s);var c={errMsg:"chooseImage:ok",get tempFilePaths(){return r.map((function(e){var t=e.path;return t}))},tempFiles:r};u(t,c)})),l.click(),s["d"].getStatus()||r.warn("".concat(Object(i["g"])("uni.chooseFile.notUserActivation")))}}.call(this,n("0dd1"),n("3ad9")["default"])},d5ec:function(e,t,n){"use strict";n.r(t);var r=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)},o=[],i=n("8af1"),a={name:"RadioGroup",mixins:[i["a"],i["f"]],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(r,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}}},s=a,c=(n("fb61"),n("2877")),u=Object(c["a"])(s,r,o,!1,null,null,null);t["default"]=u.exports},d65e:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("28c0"),o={},i=[],a=0;function s(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a++;var n=new r["a"](a,e);return t&&(o[a]=n,i.push(n)),n}},d677:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uni-cover-image",e._g({attrs:{src:e.src}},e.$listeners),[n("div",{staticClass:"uni-cover-image"},[e.src?n("img",{attrs:{src:e.$getRealPath(e.src)},on:{load:e._load,error:e._error}}):e._e()])])},o=[],i={name:"CoverImage",props:{src:{type:String,default:""}},methods:{_load:function(e){this.$trigger("load",e)},_error:function(e){this.$trigger("error",e)}}},a=i,s=(n("5d1d"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},d8c8:function(e,t,n){"use strict";var r,o,i=["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(h){}var c=document.createElement("div");u(c,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),i.forEach((function(e){f(c,e)})),document.body.appendChild(c),l(),r=!0}else i.forEach((function(e){a[e]=0}));function u(e,t){var n=e.style;Object.keys(t).forEach((function(e){var r=t[e];n[e]=r}))}function l(t){t?e.push(t):e.forEach((function(e){e()}))}function f(e,n){var r=document.createElement("div"),i=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div"),f=100,h=1e4,p={position:"absolute",width:f+"px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:o+"(safe-area-inset-"+n+")"};u(r,p),u(i,p),u(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),u(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),r.appendChild(s),i.appendChild(c),e.appendChild(r),e.appendChild(i),l((function(){r.scrollTop=i.scrollTop=h;var e=r.scrollTop,o=i.scrollTop;function a(){this.scrollTop!==(this===r?e:o)&&(r.scrollTop=i.scrollTop=h,e=r.scrollTop,o=i.scrollTop,d(n))}r.addEventListener("scroll",a,t),i.addEventListener("scroll",a,t)}));var g=getComputedStyle(r);Object.defineProperty(a,n,{configurable:!0,get:function(){return parseFloat(g.paddingBottom)}})}}function u(e){return r||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 h(e){s()&&(r||c(),"function"===typeof e&&f.push(e))}function p(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:h,offChange:p};e.exports=g},d8ca:function(e,t,n){"use strict";(function(e){var r,o=n("8af1"),i=n("a20f"),a=n("cf6f"),s=n("e2e2");function c(e){return f(e)||d(e)||l(e)||u()}function u(){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 l(e,t){if(e){if("string"===typeof e)return h(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)?h(e,t):void 0}}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return e=e.slice(0),e[3]=e[3]/255,"rgba("+e.join(",")+")"}function g(e,t){return[].map.call(t,(function(t){var n=e.getBoundingClientRect();return{identifier:t.identifier,x:t.clientX-n.left,y:t.clientY-n.top}}))}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r||(r=document.createElement("canvas")),r.width=e,r.height=t,r}t["a"]={name:"Canvas",mixins:[o["g"]],props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1}},data:function(){return{actionsWaiting:!1}},computed:{id:function(){return this.canvasId},_listeners:function(){var e=this,t=Object.assign({},this.$listeners),n=["touchstart","touchmove","touchend"];return n.forEach((function(n){var r=t[n],o=[];r&&o.push((function(t){e.$trigger(n,Object.assign({},t,{touches:g(t.currentTarget,t.touches),changedTouches:g(t.currentTarget,t.changedTouches)}))})),e.disableScroll&&"touchmove"===n&&o.push(e._touchmove),t[n]=o})),t}},created:function(){this._actionsDefer=[],this._images={}},mounted:function(){this._resize()},beforeDestroy:function(){var e=this.$refs.canvas;e.height=e.width=0},methods:{_handleSubscribe:function(e){var t=e.type,n=e.data,r=void 0===n?{}:n,o=this[t];0!==t.indexOf("_")&&"function"===typeof o&&o(r)},_resize:function(e){var t=this.$refs.canvas,n=!e||t.width!==Math.floor(e.width*i["a"])||t.height!==Math.floor(e.height*i["a"]);if(n)if(t.width>0&&t.height>0){var r=t.getContext("2d"),o=r.getImageData(0,0,t.width,t.height);Object(i["b"])(t),r.putImageData(o,0,0)}else Object(i["b"])(t)},_touchmove:function(e){e.preventDefault()},actionsChanged:function(t){var n=this,r=t.actions,o=t.reserve,i=t.callbackId,a=this;if(r)if(this.actionsWaiting)this._actionsDefer.push([r,o,i]);else{var s=this.$refs.canvas,u=s.getContext("2d");o||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,s.width,s.height)),this.preloadImage(r);var l=function(e){var t=r[e],o=t.method,s=t.data;if(/^set/.test(o)&&"setTransform"!==o){var l,d=o[3].toLowerCase()+o.slice(4);if("fillStyle"===d||"strokeStyle"===d){if("normal"===s[0])l=p(s[1]);else if("linear"===s[0]){var g=u.createLinearGradient.apply(u,c(s[1]));s[2].forEach((function(e){var t=e[0],n=p(e[1]);g.addColorStop(t,n)})),l=g}else if("radial"===s[0]){var v=s[1][0],m=s[1][1],_=s[1][2],y=u.createRadialGradient(v,m,0,v,m,_);s[2].forEach((function(e){var t=e[0],n=p(e[1]);y.addColorStop(t,n)})),l=y}else if("pattern"===s[0]){var b=n.checkImageLoaded(s[1],r.slice(e+1),i,(function(e){e&&(u[d]=u.createPattern(e,s[2]))}));return b?"continue":"break"}u[d]=l}else if("globalAlpha"===d)u[d]=s[0]/255;else if("shadow"===d)f=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"],s.forEach((function(e,t){u[f[t]]="shadowColor"===f[t]?p(e):e}));else if("fontSize"===d){var M=u.__font__||u.font;u.__font__=u.font=M.replace(/\d+\.?\d*px/,s[0]+"px")}else"lineDash"===d?(u.setLineDash(s[0]),u.lineDashOffset=s[1]||0):"textBaseline"===d?("normal"===s[0]&&(s[0]="alphabetic"),u[d]=s[0]):"font"===d?u.__font__=u.font=s[0]:u[d]=s[0]}else if("fillPath"===o||"strokePath"===o)o=o.replace(/Path/,""),u.beginPath(),s.forEach((function(e){u[e.method].apply(u,e.data)})),u[o]();else if("fillText"===o)u.fillText.apply(u,s);else if("drawImage"===o){if(h=function(){var t=c(s),n=t[0],o=t.slice(1);if(a._images=a._images||{},!a.checkImageLoaded(n,r.slice(e+1),i,(function(e){e&&u.drawImage.apply(u,[e].concat(c(o.slice(4,8)),c(o.slice(0,4))))})))return"break"}(),"break"===h)return"break"}else"clip"===o?(s.forEach((function(e){u[e.method].apply(u,e.data)})),u.clip()):u[o].apply(u,s)};e:for(var d=0;d<r.length;d++){var f,h,g=l(d);switch(g){case"break":break e;case"continue":continue}}!this.actionsWaiting&&i&&e.publishHandler("onCanvasMethodCallback",{callbackId:i,data:{errMsg:"drawCanvas:ok"}},this.$page.id)}},preloadImage:function(e){var t=this;e.forEach((function(e){var n=e.method,r=e.data,o="";function i(){var e=t._images[o]=new Image;e.onload=function(){e.ready=!0},Object(s["d"])(o).then((function(t){e.src=t})).catch((function(){e.src=o}))}"drawImage"===n?(o=r[0],o=t.$getRealPath(o),r[0]=o):"setFillStyle"===n&&"pattern"===r[0]&&(o=r[1],o=t.$getRealPath(o),r[1]=o),o&&!t._images[o]&&i()}))},checkImageLoaded:function(e,t,n,r){var o=this,i=this._images[e];return i.ready?(r(i),!0):(this._actionsDefer.unshift([t,!0]),this.actionsWaiting=!0,i.onload=function(){i.ready=!0,r(i),o.actionsWaiting=!1;var e=o._actionsDefer.slice(0);o._actionsDefer=[];for(var t=e.shift();t;)o.actionsChanged({actions:t[0],reserve:t[1],callbackId:n}),t=e.shift()},!1)},getImageData:function(t){var n,r=t.x,o=void 0===r?0:r,a=t.y,s=void 0===a?0:a,c=t.width,u=t.height,l=t.destWidth,d=t.destHeight,f=t.hidpi,h=void 0===f||f,p=t.dataType,g=t.quality,m=void 0===g?1:g,_=t.type,y=void 0===_?"png":_,b=t.callbackId,M=this.$refs.canvas,S=M.offsetWidth-o;c=c?Math.min(c,S):S;var k=M.offsetHeight-s;u=u?Math.min(u,k):k,h?(l=c,d=u):l||d?l?d||(d=Math.round(u/c*l)):l=Math.round(c/u*d):(l=Math.round(c*i["a"]),d=Math.round(u*i["a"]));var w,C=v(l,d),T=C.getContext("2d");"jpeg"!==y&&"jpg"!==y||(y="jpeg",T.fillStyle="#fff",T.fillRect(0,0,l,d)),T.__hidpi__=!0,T.drawImageByCanvas(M,o,s,c,u,0,0,l,d,!1);try{var I;if("base64"===p)n=C.toDataURL("image/".concat(y),m);else{var A=T.getImageData(0,0,l,d);n=Array.prototype.slice.call(A.data)}w={errMsg:"canvasGetImageData:ok",data:n,compressed:I,width:l,height:d}}catch(E){w={errMsg:"canvasGetImageData:fail ".concat(E)}}if(C.height=C.width=0,T.__hidpi__=!1,!b)return w;e.publishHandler("onCanvasMethodCallback",{callbackId:b,data:w},this.$page.id)},putImageData:function(t){var n=t.data,r=t.x,o=t.y,i=t.width,a=t.height,s=(t.compressed,t.callbackId);try{a||(a=Math.round(n.length/4/i));var c=v(i,a),u=c.getContext("2d");u.putImageData(new ImageData(new Uint8ClampedArray(n),i,a),0,0),this.$refs.canvas.getContext("2d").drawImage(c,r,o,i,a),c.height=c.width=0}catch(l){return void e.publishHandler("onCanvasMethodCallback",{callbackId:s,data:{errMsg:"canvasPutImageData:fail"}},this.$page.id)}e.publishHandler("onCanvasMethodCallback",{callbackId:s,data:{errMsg:"canvasPutImageData:ok"}},this.$page.id)},toTempFilePath:function(t){var n=this,r=t.x,o=void 0===r?0:r,i=t.y,s=void 0===i?0:i,c=t.width,u=t.height,l=t.destWidth,d=t.destHeight,f=t.fileType,h=t.quality,p=t.dirname,g=t.callbackId,v=this.getImageData({x:o,y:s,width:c,height:u,destWidth:l,destHeight:d,hidpi:!1,dataType:"base64",type:f,quality:h});v.data&&v.data.length?Object(a["a"])(v.data,p,(function(t,r){var o="toTempFilePath:".concat(t?"fail":"ok");t&&(o+=" ".concat(t.message)),e.publishHandler("onCanvasMethodCallback",{callbackId:g,data:{errMsg:o,tempFilePath:r}},n.$page.id)})):e.publishHandler("onCanvasMethodCallback",{callbackId:g,data:{errMsg:v.errMsg.replace("canvasPutImageData","toTempFilePath")}},this.$page.id)}}}}).call(this,n("501c"))},da71:function(e,t,n){"use strict";t["a"]={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 r=Object.keys(t).find((function(e){var r=n.key,o=t[e];return o===r||Array.isArray(o)&&o.includes(r)}));r&&setTimeout((function(){e.$emit(r,n)}),0)}};document.addEventListener("keyup",n),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("keyup",n)}))},render:function(){return null}}},db18:function(e,t,n){"use strict";var r=n("db76"),o=n.n(r);o.a},db70:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("3b67");function o(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r["a"][e].apply(null,n)}function i(t,n){return e.on("api."+t,n)}function a(t){var n=getCurrentPages(),r=n.length;r||e.emit("onError","".concat(t,":fail"));var o=n[r-1];return o.$vm}function s(){var e=getCurrentPages(),t=e[e.length-1];return t&&t.$page.id}}).call(this,n("0dd1"))},db76:function(e,t,n){},db8e:function(e,t,n){"use strict";(function(e){function r(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.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))}).call(this,n("3ad9")["default"])},dc12:function(e,t,n){"use strict";n.r(t),n.d(t,"compressImage",(function(){return o}));var r=n("cb0f"),o={src:{type:String,required:!0,validator:function(e,t){t.src=Object(r["a"])(e)}}}},dd35:function(e,t,n){"use strict";(function(e){var r=n("e949"),o=n("cb0f"),i=n("15bb"),a={forward:"&#xe600;",back:"&#xe601;",share:"&#xe602;",favorite:"&#xe604;",home:"&#xe605;",menu:"&#xe606;",close:"&#xe650;"};t["a"]={name:"PageHead",mixins:[i["a"]],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=Object(o["a"])(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")}');Object(r["a"])(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"):a[e.type]?a[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)}}}}).call(this,n("0dd1"))},de29:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("f2b3");function o(e){return 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},o(e)}function i(e,t,n){var o=t[e],i=!Object(r["i"])(n,e),s=n[e],c=d(Boolean,o.type);if(c>-1&&i&&!Object(r["i"])(o,"default")&&(s=!1),void 0===s&&Object(r["i"])(o,"default")){var u=o.default;s=Object(r["k"])(u)?u():u,n[e]=s}return a(o,e,s,i,n)}function a(e,t,n,r,o){if(e.required&&r)return"Missing required parameter `".concat(t,"`");if(null==n&&!e.required){var i=e.validator;return i?i(n,o):void 0}var a=e.type,s=!a||!0===a,u=[];if(a){Array.isArray(a)||(a=[a]);for(var l=0;l<a.length&&!s;l++){var d=c(n,a[l]);u.push(d.expectedType||""),s=d.valid}}if(!s)return f(t,n,u);var h=e.validator;return h?h(n,o):void 0}var s=/^(String|Number|Boolean|Function|Symbol)$/;function c(e,t){var n,i=u(t);if(s.test(i)){var a=o(e);n=a===i.toLowerCase(),n||"object"!==a||(n=e instanceof t)}else n=e.byteLength>=0||("Object"===i?Object(r["l"])(e):"Array"===i?Array.isArray(e):e instanceof t||Object(r["s"])(e)===u(t));return{valid:n,expectedType:i}}function u(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function l(e,t){return u(e)===u(t)}function d(e,t){if(!Array.isArray(t))return l(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(l(t[n],e))return n;return-1}function f(e,t,n){var o="parameter `".concat(e,"`.")+" Expected ".concat(n.join(", ")),i=n[0],a=Object(r["s"])(t),s=h(t,i),c=h(t,a);return 1===n.length&&g(i)&&!v(i,a)&&(o+=" with value ".concat(s)),o+=", got ".concat(a," "),g(a)&&(o+="with value ".concat(c,".")),o}function h(e,t){return"String"===t?'"'.concat(e,'"'):"".concat("Number"===t?Number(e):e)}var p=["string","number","boolean"];function g(e){return p.some((function(t){return e.toLowerCase()===t}))}function v(){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()}))}},df1e:function(e,t,n){},e243:function(e,t,n){"use strict";(function(e){var r=n("cb0f"),o=n("bdbe");t["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 o["a"]},hasTabBar:function(){return o["a"].list&&o["a"].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=o["a"].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),Object(r["a"])(e)},_switchTab:function(t,n){var r=t.text,o=t.pagePath;this.selectedIndex=n;var i="/"+o;i===__uniRoutes[0].alias&&(i="/");var a={index:n,text:r,pagePath:o};this.$emit("onTabItemTap",a),this.$route.path===i&&e.emit("onTabItemTap",a)}}}}).call(this,n("0dd1"))},e298:function(e,t,n){"use strict";var r=n("add1"),o=n.n(r);o.a},e2e2:function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f}));var r=n("f2b3"),o={};function i(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 r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="blob",r.onload=function(){t(this.response)},r.onerror=n,r.send()}))}function a(e){e=e.split(",");var t=e[0].match(/:(.*?);/)[1],n=atob(e[1]),r=n.length,o=new Uint8Array(r);while(r--)o[r]=n.charCodeAt(r);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(r){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(Object(r["i"])(o,t)){var n=o[t];if(n===e)return t}var i=(window.URL||window.webkitURL).createObjectURL(e);return o[i]=e,i}function d(e){var t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):i(e).then(l)}function f(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete o[e]}},e3a7:function(e,t,n){var r={"./base/event-bus.js":"6e0c","./constants.js":"8b67","./context/inner-audio.js":"f9d2","./context/operate-map-player.js":"0758","./context/operate-video-player.js":"f941","./device/accelerometer.js":"2bdd","./device/clipboard.js":"7bab","./device/compass.js":"f7b4","./device/get-system-info.js":"78c8","./device/make-phone-call.js":"7f4e","./device/network-info.js":"3d64","./device/vibrate.js":"44de","./file/file.js":"3b54","./file/open-document.js":"e826","./index.js":"d218","./keyboard/keyboard.js":"54f4","./location/choose-location.js":"be14","./location/get-location.js":"0554","./location/open-location.js":"6575","./media/MIMEType.js":"bd97","./media/choose-file.js":"3898","./media/choose-image.js":"d5be","./media/choose-video.js":"8ce3","./media/create_input.js":"3563","./media/get-image-info.js":"34b2","./media/get-video-info.js":"956d","./media/preview-image.js":"9e56","./network/download-file.js":"4f43","./network/request.js":"1a12","./network/socket.js":"893e","./network/upload-file.js":"7d18","./plugin/get-provider.js":"abea","./route/route.js":"1a8c","./storage/storage.js":"e649","./ui/navigation-bar.js":"5964","./ui/popup.js":"56e9","./ui/pull-down-refresh.js":"45db","./ui/request-component-info.js":"09e5","./ui/tab-bar.js":"fcd1","./ui/window.js":"e8b5","./ui/windows.js":"0e5c","./util.js":"79d5"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="e3a7"},e4bc:function(e,t,n){"use strict";var r=n("581a"),o=n.n(r);o.a},e5bb:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseLocation",(function(){return r}));var r={keyword:{type:String}}},e649:function(e,t,n){"use strict";function r(e){return r="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(e)}n.r(t),n.d(t,"setStorage",(function(){return a})),n.d(t,"setStorageSync",(function(){return s})),n.d(t,"getStorage",(function(){return c})),n.d(t,"getStorageSync",(function(){return u})),n.d(t,"removeStorage",(function(){return l})),n.d(t,"removeStorageSync",(function(){return d})),n.d(t,"clearStorage",(function(){return f})),n.d(t,"clearStorageSync",(function(){return h})),n.d(t,"getStorageInfo",(function(){return p})),n.d(t,"getStorageInfoSync",(function(){return g}));var o="uni-storage-keys";function i(e){var t=["object","string","number","boolean","undefined"];try{var n="string"===typeof e?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){var i=Object.keys(n);if(2===i.length&&"data"in n){if(r(n.data)===o)return n.data;if("object"===o&&/^\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===i.length)return""}}catch(a){}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.data,o=r(n),i="string"===o?n:JSON.stringify({type:o,data:n});try{localStorage.setItem(t,i)}catch(a){return{errMsg:"setStorage:fail ".concat(a)}}return{errMsg:"setStorage:ok"}}function s(e,t){a({key:e,data:t})}function c(){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 r=n;try{var o=JSON.parse(n),a=i(o);void 0!==a&&(r=a)}catch(s){}return{data:r,errMsg:"getStorage:ok"}}function u(e){var t=c({key:e});return t.data}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key;return localStorage&&localStorage.removeItem(t),{errMsg:"removeStorage:ok"}}function d(e){l({key:e})}function f(){return localStorage&&localStorage.clear(),{errMsg:"clearStorage:ok"}}function h(){f()}function p(){for(var e=localStorage&&localStorage.length||0,t=[],n=0,r=0;r<e;r++){var i=localStorage.key(r),a=localStorage.getItem(i);n+=i.length+a.length,i!==o&&t.push(i)}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE,errMsg:"getStorageInfo:ok"}}function g(){var e=p();return delete e.errMsg,e}},e692:function(e,t,n){},e826:function(e,t,n){"use strict";n.r(t),function(e){function r(t,n){var r=t.filePath,o=e,i=o.invokeCallbackHandler;window.open(r),i(n,{errMsg:"openDocument:ok"})}n.d(t,"openDocument",(function(){return r}))}.call(this,n("0dd1"))},e865:function(e,t,n){"use strict";var r=n("5dc4"),o=n.n(r);o.a},e8b5:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"onWindowResize",(function(){return a})),n.d(t,"offWindowResize",(function(){return s}));var r=[],o=[];function i(){o.push(setTimeout((function(){o.forEach((function(e){return clearTimeout(e)})),o.length=0;var t=e,n=t.invokeCallbackHandler,i=uni.getSystemInfoSync(),a=i.windowWidth,s=i.windowHeight,c=i.screenWidth,u=i.screenHeight,l=90===Math.abs(window.orientation),d=l?"landscape":"portrait";r.forEach((function(e){n(e,{deviceOrientation:d,size:{windowWidth:a,windowHeight:s,screenWidth:c,screenHeight:u}})}))}),20))}function a(e){r.length||window.addEventListener("resize",i),r.push(e)}function s(e){r.splice(r.indexOf(e),1),r.length||window.removeEventListener("resize",i)}}.call(this,n("0dd1"))},e949:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.getElementById(t);r&&n&&(r.parentNode.removeChild(r),r=null),r||(r=document.createElement("style"),r.type="text/css",t&&(r.id=t),document.getElementsByTagName("head")[0].appendChild(r)),r.appendChild(document.createTextNode(e))}n.d(t,"a",(function(){return r}))},ea0f:function(e,t,n){"use strict";n.r(t),n.d(t,"scanCode",(function(){return r}));var r={onlyFromCamera:{type:Boolean},scanType:{type:Array},autoDecodeCharSet:{type:Boolean}}},ea49:function(e,t,n){},ec33:function(e,t,n){"use strict";n.r(t),n.d(t,"getStorage",(function(){return r})),n.d(t,"getStorageSync",(function(){return o})),n.d(t,"setStorage",(function(){return i})),n.d(t,"setStorageSync",(function(){return a})),n.d(t,"removeStorage",(function(){return s})),n.d(t,"removeStorageSync",(function(){return c}));var r={key:{type:String,required:!0}},o=[{name:"key",type:String,required:!0}],i={key:{type:String,required:!0},data:{required:!0}},a=[{name:"key",type:String,required:!0},{name:"data",required:!0}],s=r,c=o},ed1a:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return m}));var r=n("f2b3"),o=n("8542"),i=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/,a=/^create|Manager$/,s=["createBLEConnection"],c=["request","downloadFile","uploadFile","connectSocket"],u=["createBLEConnection"],l=/^on|^off/;function d(e){return a.test(e)&&-1===s.indexOf(e)}function f(e){return i.test(e)&&-1===u.indexOf(e)}function h(e){return l.test(e)&&"onPush"!==e}function p(e){return-1!==c.indexOf(e)}function g(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function v(e){return!(d(e)||f(e)||h(e))}function m(e,t){return v(e)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return Object(r["k"])(n.success)||Object(r["k"])(n.fail)||Object(r["k"])(n.complete)?Object(o["e"])(e,o["b"].apply(void 0,[e,t,n].concat(a))):Object(o["e"])(e,g(new Promise((function(r,i){o["b"].apply(void 0,[e,t,Object.assign({},n,{success:r,fail:i})].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}))}))})},ed78:function(e,t,n){"use strict";(function(e){var r=n("8aec"),o=n("f2b3"),i=n("d4cd"),a=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!!o["q"]&&{passive:e}},s=a();t["a"]={name:"ScrollView",mixins:[r["a"]],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(r){if(null!==t){var o=r.touches[0].pageX,i=r.touches[0].pageY,a=e.$refs.main;if(Math.abs(o-t.x)>Math.abs(i-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&&i>t.y)n=!1,e.refresherEnabled&&!1!==r.cancelable&&r.preventDefault();else{if(a.scrollHeight===a.offsetHeight+a.scrollTop&&i<t.y)return void(n=!1);n=!0}else n=!1;if(n&&r.stopPropagation(),0===a.scrollTop&&1===r.touches.length&&(e.refreshState="pulling"),e.refresherEnabled&&"pulling"===e.refreshState){var s=i-t.y;0===e.toUpperNumber&&(e.toUpperNumber=i),e.beforeRefreshing?(e.refresherHeight=s+e.refresherThreshold,e.triggerAbort=!1):(e.refresherHeight=i-e.toUpperNumber,e.refresherHeight>0&&(e.triggerAbort=!0,e.$trigger("refresherpulling",r,{deltaY:s})));var c=e.refresherHeight/e.refresherThreshold;e.refreshRotate=360*(c>1?1:c)}}},this.__handleTouchStart=function(e){1===e.touches.length&&(Object(i["a"])({disable:!0}),t={x:e.touches[0].pageX,y:e.touches[0].pageY})},this.__handleTouchEnd=function(n){t=null,Object(i["a"])({disable:!1}),e.refresherHeight>=e.refresherThreshold?e._setRefreshState("refreshing"):e._setRefreshState("refresherabort")},this.$refs.main.addEventListener("touchstart",this.__handleTouchStart,s),this.$refs.main.addEventListener("touchmove",this.__handleTouchMove,a(!1)),this.$refs.main.addEventListener("scroll",this.__handleScroll,a(!1)),this.$refs.main.addEventListener("touchend",this.__handleTouchEnd,s),Object(i["b"])()},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,s),this.$refs.main.removeEventListener("touchmove",this.__handleTouchMove,s),this.$refs.main.removeEventListener("scroll",this.__handleScroll,a(!1)),this.$refs.main.removeEventListener("touchend",this.__handleTouchEnd,s)},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 r=0,o="";"x"===t?r=n.scrollLeft-e:"y"===t&&(r=n.scrollTop-e),0!==r&&(this.$refs.content.style.transition="transform .3s ease-out",this.$refs.content.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?o="translateX("+r+"px) translateZ(0)":"y"===t&&(o="translateY("+r+"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 r=this.$refs.main.getBoundingClientRect(),o=n.getBoundingClientRect();if(this.scrollX){var i=o.left-r.left,a=this.$refs.main.scrollLeft,s=a+i;this.scrollWithAnimation?this.scrollTo(s,"x"):this.$refs.main.scrollLeft=s}if(this.scrollY){var c=o.top-r.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}}}}}).call(this,n("3ad9")["default"])},ed9f:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseVideo",(function(){return o}));var r=["album","camera"],o={sourceType:{type:Array,required:!1,default:r,validator:function(e,t){e=e.filter((function(e){return r.includes(e)})),t.sourceType=e.length?e:r}},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."}}}},edfa:function(e,t,n){"use strict";var r=n("c418"),o=n.n(r);o.a},ee03:function(e,t,n){"use strict";n.r(t),n.d(t,"VideoContext",(function(){return u})),n.d(t,"createVideoContext",(function(){return l}));var r=n("db70");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var s=[.5,.8,1,1.25,1.5,2];function c(e,t,n,o){Object(r["c"])("operateVideoPlayer",e,t,n,o)}var u=function(){function e(t,n){o(this,e),this.id=t,this.pageVm=n}return a(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||Object(r["b"])("createVideoContext"))}},ee4f:function(e,t,n){"use strict";n.r(t),function(e){var r=n("f2b3");t["default"]={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,Object(r["k"])(this.onModalCloseCallback)&&this.onModalCloseCallback(e)}}}}.call(this,n("0dd1"))},ef36:function(e,t,n){},f0c3:function(e,t,n){"use strict";n.r(t),n.d(t,"downloadFile",(function(){return l}));var r=n("a118"),o=n("db70");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var c=function(){function e(t,n){i(this,e),this.id=t,this._callbackId=n,this._callbacks=[]}return s(e,[{key:"abort",value:function(){Object(o["c"])("operateDownloadTask",{downloadTaskId:this.id,operationType:"abort"})}},{key:"onProgressUpdate",value:function(e){"function"===typeof e&&this._callbacks.push(e)}},{key:"onHeadersReceived",value:function(){}},{key:"offProgressUpdate",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"offHeadersReceived",value:function(){}}]),e}(),u=Object.create(null);function l(e,t){var n=Object(o["c"])("createDownloadTask",e),r=n.downloadTaskId,i=new c(r,t);return u[r]=i,i}Object(o["d"])("onDownloadTaskStateChange",(function(e){var t=e.downloadTaskId,n=e.state,o=e.tempFilePath,i=e.statusCode,a=e.progress,s=e.totalBytesWritten,c=e.totalBytesExpectedToWrite,l=e.errMsg,d=u[t],f=d._callbackId;switch(n){case"progressUpdate":d._callbacks.forEach((function(e){e({progress:a,totalBytesWritten:s,totalBytesExpectedToWrite:c})}));break;case"success":Object(r["a"])(f,{tempFilePath:o,statusCode:i,errMsg:"request:ok"});case"fail":Object(r["a"])(f,{errMsg:"request:fail "+l});default:setTimeout((function(){delete u[t]}),100);break}}))},f102:function(e,t,n){"use strict";n.r(t),n.d(t,"makePhoneCall",(function(){return r}));var r={phoneNumber:{type:String,required:!0,validator:function(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}}},f10e:function(e,t,n){"use strict";var r=n("29a2"),o=n.n(r);o.a},f1b2:function(e,t,n){"use strict";n.r(t),n.d(t,"chooseImage",(function(){return i}));var r=["original","compressed"],o=["album","camera"],i={count:{type:Number,required:!1,default:9,validator:function(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:r,validator:function(e,t){e="string"===typeof e?[e]:e,e=e.filter((function(e){return r.includes(e)})),t.sizeType=e.length?e:r}},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."}}}},f1ea:function(e,t,n){"use strict";n.r(t);var r=[],o=n("8793");o.keys().forEach((function(e){"./index.js"!==e&&r.push(o(e).default)})),t["default"]=r},f1ef:function(e,t,n){"use strict";n.r(t);var r=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)])])])},o=[],i=n("ed78"),a=i["a"],s=(n("5ab3"),n("2877")),c=Object(s["a"])(a,r,o,!1,null,null,null);t["default"]=c.exports},f2b3:function(e,t,n){"use strict";n.d(t,"q",(function(){return o})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"i",(function(){return m})),n.d(t,"s",(function(){return _})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return S})),n.d(t,"p",(function(){return k})),n.d(t,"h",(function(){return w})),n.d(t,"g",(function(){return C})),n.d(t,"u",(function(){return T})),n.d(t,"d",(function(){return I})),n.d(t,"r",(function(){return A})),n.d(t,"n",(function(){return E})),n.d(t,"f",(function(){return O})),n.d(t,"t",(function(){return l})),n.d(t,"j",(function(){return D})),n.d(t,"e",(function(){return L})),n.d(t,"o",(function(){return x})),n.d(t,"a",(function(){return F}));var r,o=!1;try{var i={};Object.defineProperty(i,"passive",{get:function(){o=!0}}),window.addEventListener("test-passive",null,i)}catch(j){}var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function c(e){return decodeURIComponent(r(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function u(){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(c(n[1]))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}function l(e){e.prototype.uniIDHasRole=function(e){var t=u(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=u(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=u(),t=e.tokenExpired;return t>Date.now()}}r="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!s.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,r,o="",i=0;i<e.length;)t=a.indexOf(e.charAt(i++))<<18|a.indexOf(e.charAt(i++))<<12|(n=a.indexOf(e.charAt(i++)))<<6|(r=a.indexOf(e.charAt(i++))),o+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var d=Object.prototype.toString,f=Object.prototype.hasOwnProperty,h=function(e){return e>9?e:"0"+e};function p(e){return"function"===typeof e}function g(e){return"string"===typeof e}function v(e){return"[object Object]"===d.call(e)}function m(e,t){return f.call(e,t)}function _(e){return d.call(e).slice(8,-1)}function y(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var b=/-(\w)/g,M=y((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),S=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)}));function k(e,t,n){t.forEach((function(t){m(n,t)&&(e[t]=n[t])}))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(""+e).replace(/[^\x00-\xff]/g,"**").length}function C(e){var t=e.date,n=void 0===t?new Date:t,r=e.mode,o=void 0===r?"date":r;return"time"===o?h(n.getHours())+":"+h(n.getMinutes()):n.getFullYear()+"-"+h(n.getMonth()+1)+"-"+h(n.getDate())}function T(e,t){for(var n in t)e.style[n]=t[n]}function I(e,t){var n,r=function(){var r=arguments,o=this;clearTimeout(n);var i=function(){return e.apply(o,r)};n=setTimeout(i,t)};return r.cancel=function(){clearTimeout(n)},r}function A(e,t){var n,r,o=0,i=function(){for(var i=this,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var u=Date.now();clearTimeout(n),r=function(){r=null,o=u,e.apply(i,s)},u-o<t?n=setTimeout(r,t-(u-o)):r()};return i.cancel=function(){clearTimeout(n),r=null},i.flush=function(){clearTimeout(n),r&&r()},i}function E(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}function O(e,t){function n(e){var r=e.children&&e.children.map(n),o=t(e.tag,e.data,r);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 D(e){var t,n,r;if(e=e.replace("#",""),6===e.length)t=e.substring(0,2),n=e.substring(2,4),r=e.substring(4,6);else{if(3!==e.length)return!1;t=e.substring(0,1),n=e.substring(1,2),r=e.substring(2,3)}return 1===t.length&&(t+=t),1===n.length&&(n+=n),1===r.length&&(r+=r),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16),{r:t,g:n,b:r}}var N=decodeURIComponent;function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){try{t[n]=N(e[n])}catch(j){t[n]=e[n]}})),t}function x(e){if("function"===typeof e)return window.plus?e():void document.addEventListener("plusready",e)}var R=0,P={};function G(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=String(R++);P[n]={success:t.success,fail:t.fail,complete:t.complete};var r=Object.assign({},t),o=e.bind(this)(r,n);o&&U(n,o)}}function U(e,t){var n=P[e]||{};delete P[e];var r=t.errMsg||"";new RegExp("\\:\\s*fail").test(r)?n.fail&&n.fail(t):n.success&&n.success(t),n.complete&&n.complete(t)}var F={warp:G,invoke:U}},f2ce:function(e,t,n){"use strict";(function(e){var r=n("8af1");t["a"]={name:"Label",mixins:[r["a"]],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))}}}}).call(this,n("501c"))},f4e0:function(e,t,n){"use strict";var r=n("c2aa"),o=n.n(r);o.a},f53a:function(e,t,n){"use strict";var r=n("f735"),o=n.n(r);o.a},f68f:function(e,t,n){"use strict";n.r(t),n.d(t,"preLogin",(function(){return o}));var r={UNIVERIFY:"univerify"},o={provider:{type:String,required:!0,default:r.UNIVERIFY,validator:function(e,t){if(Object.values(r).indexOf(e)<0)return"provider error"}}}},f735:function(e,t,n){},f756:function(e,t,n){},f7b4:function(e,t,n){"use strict";n.r(t),function(e){var r;n.d(t,"startCompass",(function(){return i})),n.d(t,"stopCompass",(function(){return a})),n.d(t,"onCompassChange",(function(){return s})),n.d(t,"offCompassChange",(function(){return c}));var o=[];function i(t,n){var i=e,a=i.invokeCallbackHandler;if(!window.DeviceOrientationEvent)return{errMsg:"startCompass:fail"};function s(){r=function(e){var t=360-e.alpha;o.forEach((function(e){a(e,{direction:t||0})}))},window.addEventListener("deviceorientation",r,!1)}if(!r){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then((function(e){"granted"===e?(s(),a(n,{errMsg:"startCompass:ok"})):a(n,{errMsg:"startCompass:fail ".concat(e)})})).catch((function(e){a(n,{errMsg:"startCompass:fail ".concat(e)})}));s()}return{}}function a(){return r&&(window.removeEventListener("deviceorientation",r,!1),r=null),{}}function s(e){o.length||i(),o.push(e)}function c(e){if(e){var t=o.indexOf(e);t>=0&&o.splice(t,1)}o.length||a()}}.call(this,n("0dd1"))},f7fd:function(e,t,n){"use strict";var r=n("33b4"),o=n.n(r);o.a},f941:function(e,t,n){"use strict";n.r(t),function(e){function r(t,n,r,o){var i=n.$page.id;e.publishHandler(i+"-video-"+t,{videoId:t,type:r,data:o},i)}n.d(t,"operateVideoPlayer",(function(){return r}))}.call(this,n("0dd1"))},f9d2:function(e,t,n){"use strict";n.r(t),n.d(t,"createInnerAudioContext",(function(){return d}));var r=n("cb0f");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var 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;o(this,e),s(this,"_audio",void 0),s(this,"_stoping",void 0),s(this,"startTime",void 0),s(this,"_events",void 0),s(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=Object(r["a"])(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 a=["canplay","play","pause","ended","timeUpdate","error","waiting","seeking","seeked"],u=["canplay","pause","seeking","seeked","timeUpdate"];a.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 a(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")],r=n.indexOf(t);r>=0&&n.splice(r,1)}}))},fae3:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("2ef3")},fb61:function(e,t,n){"use strict";var r=n("7df2"),o=n.n(r);o.a},fcd1:function(e,t,n){"use strict";n.r(t),n.d(t,"setTabBarItem",(function(){return c})),n.d(t,"setTabBarStyle",(function(){return u})),n.d(t,"hideTabBar",(function(){return l})),n.d(t,"showTabBar",(function(){return d})),n.d(t,"hideTabBarRedDot",(function(){return f})),n.d(t,"showTabBarRedDot",(function(){return h})),n.d(t,"removeTabBarBadge",(function(){return p})),n.d(t,"setTabBarBadge",(function(){return g}));var r=n("f2b3"),o=["text","iconPath","selectedIconPath","visible"],i=["color","selectedColor","backgroundColor","borderStyle"],a=["badge","redDot"];function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=getApp();if(n){var s=!1,c=getCurrentPages();if(c.length?c[c.length-1].$page.meta.isTabBar&&(s=!0):n.$children[0].hasTabBar&&(s=!0),!s)return{errMsg:"".concat(e,":fail not TabBar page")};var u=t.index,l=__uniConfig.tabBar;if(u>=__uniConfig.tabBar.list.length)return{errMsg:"".concat(e,":fail tabbar item not found")};switch(e){case"showTabBar":n.$children[0].hideTabBar=!1;break;case"hideTabBar":n.$children[0].hideTabBar=!0;break;case"setTabBarItem":Object(r["p"])(l.list[u],o,t);var d=t.pagePath,f=d&&__uniRoutes.find((function(e){var t=e.path;return t===d}));if(f){var h=f.meta;h.isTabBar=!0,h.tabBarIndex=u,h.isQuit=!0;var p=__uniConfig.tabBar;p&&p.list&&p.list[u]&&(p.list[u].pagePath=d.startsWith("/")?d.substring(1):d)}break;case"setTabBarStyle":Object(r["p"])(l,i,t);break;case"showTabBarRedDot":Object(r["p"])(l.list[u],a,{badge:"",redDot:!0});break;case"setTabBarBadge":Object(r["p"])(l.list[u],a,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Object(r["p"])(l.list[u],a,{badge:"",redDot:!1});break}}return{}}function c(e){return s("setTabBarItem",e)}function u(e){return s("setTabBarStyle",e)}function l(e){return s("hideTabBar",e)}function d(e){return s("showTabBar",e)}function f(e){return s("hideTabBarRedDot",e)}function h(e){return s("showTabBarRedDot",e)}function p(e){return s("removeTabBarBadge",e)}function g(e){return s("setTabBarBadge",e)}},fda5:function(e,t,n){"use strict";(function(e){var r=n("f2b3"),o=n("ffdc"),i=n("a6b0"),a=n("636c");t["a"]={name:"SystemChooseLocation",filters:{distance:function(e){return e>100?"".concat(e>1e3?(e/1e3).toFixed(1)+"k":e.toFixed(0),"m | "):e>0?"<100m | ":""}},mixins:[i["c"]],data:function(){var e=this.$route.query,t=e.latitude,n=e.longitude;return{latitude:t,longitude:n,pageSize:20,pageIndex:1,hasNextPage:!0,nextPage:null,selectedIndex:-1,list:[],keyword:"",searching:!1,loading:!0,adcode:"",locationStyle:'background-image: url("'.concat(a["b"],'")')}},computed:{selected:function(){return this.list[this.selectedIndex]},boundary:function(){return this.adcode?"region(".concat(this.adcode,",1,").concat(this.latitude,",").concat(this.longitude,")"):"nearby(".concat(this.latitude,",").concat(this.longitude,",5000)")}},created:function(){var e=this;this.latitude&&this.longitude||this.moveToLocation(),this.search=Object(r["d"])((function(){e.reset(),e.keyword&&e.getList()}),1e3),this.$watch("searching",(function(t){e.reset(),t||e.getList()}))},methods:{choose:function(){this.selected&&(e.publishHandler("onChooseLocation",Object.assign({},this.selected)),getApp().$router.back())},back:function(){e.publishHandler("onChooseLocation",null),getApp().$router.back()},moveToLocation:function(){uni.getLocation({type:"gcj02",success:this.move.bind(this),fail:function(){}})},onRegionChange:function(e){var t=e.detail.centerLocation;t&&this.move(t)},pushData:function(e){var t=this;e.forEach((function(e){t.list.push({name:e.title,address:e.address,distance:e._distance,latitude:e.location.lat,longitude:e.location.lng})}))},getList:function(){var e=this;this.loading=!0;var t=Object(a["d"])();if(t.type===a["c"].GOOGLE){if(this.pageIndex>1&&this.nextPage)return void this.nextPage();var n=new window.google.maps.places.PlacesService(document.createElement("div"));n[this.searching?"textSearch":"nearbySearch"]({location:{lat:this.latitude,lng:this.longitude},query:this.keyword,radius:5e3},(function(t,n,r){e.loading=!1,t&&t.length&&t.forEach((function(t){e.list.push({name:t.name||"",address:t.vicinity||t.formatted_address||"",distance:0,latitude:t.geometry.location.lat(),longitude:t.geometry.location.lng()})})),r&&(r.hasNextPage?e.nextPage=function(){r.nextPage()}:e.hasNextPage=!1)}))}else if(t.type===a["c"].QQ){var r=this.searching?"https://apis.map.qq.com/ws/place/v1/search?output=jsonp&key=".concat(t.key,"&boundary=").concat(this.boundary,"&keyword=").concat(this.keyword,"&page_size=").concat(this.pageSize,"&page_index=").concat(this.pageIndex):"https://apis.map.qq.com/ws/geocoder/v1/?output=jsonp&key=".concat(t.key,"&location=").concat(this.latitude,",").concat(this.longitude,"&get_poi=1&poi_options=page_size=").concat(this.pageSize,";page_index=").concat(this.pageIndex);Object(o["a"])(r,{callback:"callback"},(function(t){if(e.loading=!1,e.searching&&"data"in t&&t.data.length)e.pushData(t.data);else if("result"in t){var n=t.result;e.adcode=n.ad_info?n.ad_info.adcode:"",n.pois&&e.pushData(n.pois),e.list.length===e.pageSize*e.pageIndex&&(e.hasNextPage=!1)}}),(function(){e.loading=!1}))}},loadMore:function(){!this.loading&&this.hasNextPage&&(this.pageIndex++,this.getList())},reset:function(){this.selectedIndex=-1,this.pageIndex=1,this.hasNextPage=!0,this.nextPage=null,this.list=[]},move:function(e){var t=e.latitude,n=e.longitude;this.latitude=t,this.longitude=n,this.searching||(this.reset(),this.getList())},input:function(){this.search()}}}}).call(this,n("501c"))},ff28:function(e,t,n){"use strict";var r=n("2399"),o=n.n(r);o.a},ffdc:function(e,t,n){"use strict";function r(e,t,n,r){var o,i=document.createElement("script"),a=t.callback||"callback",s="__callback"+Date.now(),c=t.timeout||3e4;function u(){clearTimeout(o),delete window[s],i.remove()}window[s]=function(e){"function"===typeof n&&n(e),u()},i.onerror=function(){"function"===typeof r&&r(),u()},o=setTimeout((function(){"function"===typeof r&&r(),u()}),c),i.src=e+(e.indexOf("?")>=0?"&":"?")+a+"="+s,document.body.appendChild(i)}n.d(t,"a",(function(){return r}))}})}))},"1c7e":function(e,t,n){var r=n("b622"),o=r("iterator"),i=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){i=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1cb4":function(e,t,n){"use strict";function r(e){this.message=e}n("d3b7"),n("25f0"),r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,c,"next",e)}function c(e){r(a,o,i,s,c,"throw",e)}s(void 0)}))}}n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},"1dde":function(e,t,n){var r=n("d039"),o=n("b622"),i=n("2d00"),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e94":function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}n("4e82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},"1fe2":function(e,t,n){"use strict";var r=n("6d61"),o=n("acac");r("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"219c":function(e,t,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(o(this),e)}))},2266:function(e,t,n){var r=n("825a"),o=n("e95a"),i=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,h,p,g,v,m,_,y=a(t,n,l?2:1);if(d)f=e;else{if(h=s(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(o(h)){for(p=0,g=i(e.length);g>p;p++)if(v=l?y(r(_=e[p])[0],_[1]):y(e[p]),v&&v instanceof u)return v;return new u(!1)}f=h.call(e)}m=f.next;while(!(_=m.call(f)).done)if(v=c(f,y,_.value,l),"object"==typeof v&&v&&v instanceof u)return v;return new u(!1)};l.stop=function(e){return new u(!0,e)}},"22ee":function(e,t,n){e.exports=n("adf7")},"232b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="1.8.5",o={v:r,version:r,type:["primary","success","info","error","warning"]};t.default=o},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23dc":function(e,t,n){var r=n("d44e");r(Math,"Math",!0)},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),u=n("94ca");e.exports=function(e,t){var n,l,d,f,h,p,g=e.target,v=e.global,m=e.stat;if(l=v?r:m?r[g]||s(g,{}):(r[g]||{}).prototype,l)for(d in t){if(h=t[d],e.noTargetGet?(p=o(l,d),f=p&&p.value):f=l[d],n=u(v?d:g+(m?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;c(h,f)}(e.sham||f&&f.sham)&&i(h,"sham",!0),a(l,d,h,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var i=o(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).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=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"===typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},2532:function(e,t,n){"use strict";var r=n("23e7"),o=n("5a34"),i=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var r=n("ebb5"),o=n("d58f").right,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),s="toString",c=RegExp.prototype,u=c[s],l=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=s;(l||d)&&r(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),o=n("9bf2"),i=n("b622"),a=n("83ab"),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},2629:function(e,t,n){"use strict";n("4160"),n("159b");var r=n("082e");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},"26e9":function(e,t,n){"use strict";var r=n("23e7"),o=n("e8b5"),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},2954:function(e,t,n){"use strict";var r=n("ebb5"),o=n("4840"),i=n("d039"),a=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,u=[].slice,l=i((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=u.call(a(this),e,t),r=o(this,this.constructor),i=0,c=n.length,l=new(s(r))(c);while(c>i)l[i]=n[i++];return l}),l)},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,o=n("23e7"),i=n("83ab"),a=n("0d3b"),s=n("da84"),c=n("37e8"),u=n("6eeb"),l=n("19aa"),d=n("5135"),f=n("60da"),h=n("4df4"),p=n("6547").codeAt,g=n("5fb2"),v=n("d44e"),m=n("9861"),_=n("69f3"),y=s.URL,b=m.URLSearchParams,M=m.getState,S=_.set,k=_.getterFor("URL"),w=Math.floor,C=Math.pow,T="Invalid authority",I="Invalid scheme",A="Invalid host",E="Invalid port",O=/[A-Za-z]/,D=/[\d+-.A-Za-z]/,N=/\d/,L=/^(0x|0X)/,x=/^[0-7]+$/,R=/^\d+$/,P=/^[\dA-Fa-f]+$/,G=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,U=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,$=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=B(t.slice(1,-1)),!n)return A;e.host=n}else if(Q(e)){if(t=g(t),G.test(t))return A;if(n=q(t),null===n)return A;e.host=n}else{if(U.test(t))return A;for(n="",r=h(t),o=0;o<r.length;o++)n+=X(r[o],W);e.host=n}},q=function(e){var t,n,r,o,i,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),t=c.length,t>4)return e;for(n=[],r=0;r<t;r++){if(o=c[r],""==o)return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=L.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?R:8==i?x:P).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=C(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*C(256,3-r);return s},B=function(e){var t,n,r,o,i,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;r=0;while(f()){if(o=null,r>0){if(!("."==f()&&r<4))return;d++}if(!N.test(f()))return;while(N.test(f())){if(i=parseInt(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}c[u]=256*c[u]+o,r++,2!=r&&4!=r||u++}if(4!=r)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},V=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t},H=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=w(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=V(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},W={},z=f({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),K=f({},z,{"#":1,"?":1,"{":1,"}":1}),Y=f({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=p(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)},re=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()},ie=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},ce={},ue={},le={},de={},fe={},he={},pe={},ge={},ve={},me={},_e={},ye={},be={},Me={},Se={},ke={},we={},Ce={},Te={},Ie=function(e,t,n,o){var i,a,s,c,u=n||ae,l=0,f="",p=!1,g=!1,v=!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(j,""),i=h(t);while(l<=i.length){switch(a=i[l],u){case ae:if(!a||!O.test(a)){if(n)return I;u=ce;continue}f+=a.toLowerCase(),u=se;break;case se:if(a&&(D.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(n)return I;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=he:"/"==i[l+1]?(u=le,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=we)}break;case ce:if(!o||o.cannotBeABaseURL&&"#"!=a)return I;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=Te;break}u="file"==o.scheme?ye:de;continue;case ue:if("/"!=a||"/"!=i[l+1]){u=de;continue}u=pe,l++;break;case le:if("/"==a){u=ge;break}u=ke;continue;case de:if(e.scheme=o.scheme,a==r)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=Ce;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=ke;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=Te}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=ke;continue}u=ge}else u=pe;break;case he:if(u=pe,"/"!=a||"/"!=f.charAt(l+1))continue;l++;break;case pe:if("/"!=a&&"\\"!=a){u=ge;continue}break;case ge:if("@"==a){p&&(f="%40"+f),p=!0,s=h(f);for(var m=0;m<s.length;m++){var _=s[m];if(":"!=_||v){var y=X(_,Y);v?e.password+=y:e.username+=y}else v=!0}f=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(p&&""==f)return T;l-=h(f).length+1,f="",u=ve}else f+=a;break;case ve:case me:if(n&&"file"==e.scheme){u=Me;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(Q(e)&&""==f)return A;if(n&&""==f&&(Z(e)||null!==e.port))return;if(c=$(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=$(e,f),c)return c;if(f="",u=_e,n==me)return}break;case _e:if(!N.test(a)){if(a==r||"/"==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=ke;continue}if(a==r)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=Ce;else{if("#"!=a){ne(i.slice(l).join(""))||(e.host=o.host,e.path=o.path.slice(),re(e)),u=ke;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=Te}}break;case be:if("/"==a||"\\"==a){u=Me;break}o&&"file"==o.scheme&&!ne(i.slice(l).join(""))&&(te(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=ke;continue;case Me:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(f))u=ke;else if(""==f){if(e.host="",n)return;u=Se}else{if(c=$(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=ke,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=ke,"/"!=a))continue}else e.fragment="",u=Te;else e.query="",u=Ce;break;case ke:if(a==r||"/"==a||"\\"==a&&Q(e)||!n&&("?"==a||"#"==a)){if(ie(f)?(re(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==r||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",u=Ce):"#"==a&&(e.fragment="",u=Te)}else f+=X(a,K);break;case we:"?"==a?(e.query="",u=Ce):"#"==a?(e.fragment="",u=Te):a!=r&&(e.path[0]+=X(a,W));break;case Ce:n||"#"!=a?a!=r&&("'"==a&&Q(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,W)):(e.fragment="",u=Te);break;case Te:a!=r&&(e.fragment+=X(a,z));break}l++}},Ae=function(e){var t,n,r=l(this,Ae,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=S(r,{type:"URL"});if(void 0!==o)if(o instanceof Ae)t=k(o);else if(n=Ie(t={},String(o)),n)throw TypeError(n);if(n=Ie(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},i||(r.href=Oe.call(r),r.origin=De.call(r),r.protocol=Ne.call(r),r.username=Le.call(r),r.password=xe.call(r),r.host=Re.call(r),r.hostname=Pe.call(r),r.port=Ge.call(r),r.pathname=Ue.call(r),r.search=Fe.call(r),r.searchParams=je.call(r),r.hash=$e.call(r))},Ee=Ae.prototype,Oe=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",Z(e)&&(u+=n+(r?":"+r:"")+"@"),u+=H(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},De=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Q(e)?t+"://"+H(e.host)+(null!==n?":"+n:""):"null"},Ne=function(){return k(this).scheme+":"},Le=function(){return k(this).username},xe=function(){return k(this).password},Re=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?H(t):H(t)+":"+n},Pe=function(){var e=k(this).host;return null===e?"":H(e)},Ge=function(){var e=k(this).port;return null===e?"":String(e)},Ue=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Fe=function(){var e=k(this).query;return e?"?"+e:""},je=function(){return k(this).searchParams},$e=function(){var e=k(this).fragment;return e?"#"+e:""},qe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Ee,{href:qe(Oe,(function(e){var t=k(this),n=String(e),r=Ie(t,n);if(r)throw TypeError(r);M(t.searchParams).updateSearchParams(t.query)})),origin:qe(De),protocol:qe(Ne,(function(e){var t=k(this);Ie(t,String(e)+":",ae)})),username:qe(Le,(function(e){var t=k(this),n=h(String(e));if(!ee(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=X(n[r],Y)}})),password:qe(xe,(function(e){var t=k(this),n=h(String(e));if(!ee(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=X(n[r],Y)}})),host:qe(Re,(function(e){var t=k(this);t.cannotBeABaseURL||Ie(t,String(e),ve)})),hostname:qe(Pe,(function(e){var t=k(this);t.cannotBeABaseURL||Ie(t,String(e),me)})),port:qe(Ge,(function(e){var t=k(this);ee(t)||(e=String(e),""==e?t.port=null:Ie(t,e,_e))})),pathname:qe(Ue,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Ie(t,e+"",Se))})),search:qe(Fe,(function(e){var t=k(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ie(t,e,Ce)),M(t.searchParams).updateSearchParams(t.query)})),searchParams:qe(je),hash:qe($e,(function(e){var t=k(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ie(t,e,Te)):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 Be=y.createObjectURL,Ve=y.revokeObjectURL;Be&&u(Ae,"createObjectURL",(function(e){return Be.apply(y,arguments)})),Ve&&u(Ae,"revokeObjectURL",(function(e){return Ve.apply(y,arguments)}))}v(Ae,"URL"),o({global:!0,forced:!a,sham:!i},{URL:Ae})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),o=n("06cf").f,i=n("50c4"),a=n("5a34"),s=n("1d80"),c=n("ab13"),u=n("c430"),l="".startsWith,d=Math.min,f=c("startsWith"),h=!u&&!f&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!h&&!f},{startsWith:function(e){var t=String(s(this));a(e);var n=i(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return l?l.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cf4":function(e,t,n){var r,o,i,a=n("da84"),s=n("d039"),c=n("c6b6"),u=n("0366"),l=n("1be4"),d=n("cc12"),f=n("1cdc"),h=a.location,p=a.setImmediate,g=a.clearImmediate,v=a.process,m=a.MessageChannel,_=a.Dispatch,y=0,b={},M="onreadystatechange",S=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},k=function(e){return function(){S(e)}},w=function(e){S(e.data)},C=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&g||(p=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)},r(y),y},g=function(e){delete b[e]},"process"==c(v)?r=function(e){v.nextTick(k(e))}:_&&_.now?r=function(e){_.now(k(e))}:m&&!f?(o=new m,i=o.port2,o.port1.onmessage=w,r=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(C)||"file:"===h.protocol?r=M in d("script")?function(e){l.appendChild(d("script"))[M]=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(k(e),0)}:(r=C,a.addEventListener("message",w,!1))),e.exports={set:p,clear:g}},"2d00":function(e,t,n){var r,o,i=n("da84"),a=n("342f"),s=i.process,c=s&&s.versions,u=c&&c.v8;u?(r=u.split("."),o=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},"2e2b":function(e,t,n){"use strict";n("4160"),n("c975"),n("fb6a"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("159b");var r=n("082e");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"31cf":function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(n=n||r.length,e)for(var i=0;i<e;i++)o[i]=r[0|Math.random()*n];else{var a;o[8]=o[13]=o[18]=o[23]="-",o[14]="4";for(var s=0;s<36;s++)o[s]||(a=0|16*Math.random(),o[s]=r[19==s?3&a|8:a])}return t?(o.shift(),"u"+o.join("")):o.join("")}n("ac1f"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},3280:function(e,t,n){"use strict";var r=n("ebb5"),o=n("e58c"),i=r.aTypedArray,a=r.exportTypedArrayMethod;a("lastIndexOf",(function(e){return o.apply(i(this),arguments)}))},"336a":function(e,t,n){"use strict";function r(e,t){var n=this.$parent;while(n)if(n.$options.name!==e)n=n.$parent;else{var r=function(){var e={};if(Array.isArray(t))t.map((function(t){e[t]=n[t]?n[t]:""}));else for(var r in t)Array.isArray(t[r])?t[r].length?e[r]=t[r]:e[r]=n[r]:t[r].constructor===Object?Object.keys(t[r]).length?e[r]=t[r]:e[r]=n[r]:e[r]=t[r]||!1===t[r]?t[r]:n[r];return{v:e}}();if("object"===typeof r)return r.v}return{}}n("d81d"),n("b64b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"33c6":function(e,t,n){"use strict";var r=n("4ea4");n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("5a98"));function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=(0,o.default)(e),"object"!==typeof e||"object"!==typeof t)return!1;for(var n in t)t.hasOwnProperty(n)&&(n in e?"object"!==typeof e[n]||"object"!==typeof t[n]?e[n]=t[n]:e[n].concat&&t[n].concat?e[n]=e[n].concat(t[n]):e[n]=i(e[n],t[n]):e[n]=t[n]);return e}var a=i;t.default=a},3410:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("e163"),s=n("e177"),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),a=i("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[r(e)]}},"37dc":function(e,t,n){"use strict";(function(e){var r=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=x,t.hasI18nJson=N,t.initVueI18n=E,t.isI18nStr=R,t.normalizeLocale=C,t.parseI18nJson=L,t.resolveLocale=j,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 o=r(n("3835")),i=r(n("d4ec")),a=r(n("bee2")),s=Array.isArray,c=function(e){return null!==e&&"object"===typeof e},u=["{","}"],l=function(){function e(){(0,i.default)(this,e),this._caches=Object.create(null)}return(0,a.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(!t)return[e];var r=this._caches[e];return r||(r=h(e,n),this._caches[e]=r),p(r,t)}}]),e}();t.Formatter=l;var d=/^(?:\d)+/,f=/^(?:\w)+/;function h(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=[],s=0,c="";while(s<e.length){var u=e[s++];if(u===r){c&&a.push({type:"text",value:c}),c="";var l="";u=e[s++];while(void 0!==u&&u!==i)l+=u,u=e[s++];var h=u===i,p=d.test(l)?"list":h&&f.test(l)?"named":"unknown";a.push({value:l,type:p})}else c+=u}return c&&a.push({type:"text",value:c}),a}function p(e,t){var n=[],r=0,o=s(t)?"list":c(t)?"named":"unknown";if("unknown"===o)return n;while(r<e.length){var i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===o&&n.push(t[i.value]);break;case"unknown":0;break}r++}return n}var g="zh-Hans";t.LOCALE_ZH_HANS=g;var v="zh-Hant";t.LOCALE_ZH_HANT=v;var m="en";t.LOCALE_EN=m;var _="fr";t.LOCALE_FR=_;var y="es";t.LOCALE_ES=y;var b=Object.prototype.hasOwnProperty,M=function(e,t){return b.call(e,t)},S=new l;function k(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}function w(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}function C(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?g:e.indexOf("-hant")>-1||k(e,["-tw","-hk","-mo","-cht"])?v:g;var n=w(e,[m,_,y]);return n||void 0}}var T=function(){function e(t){var n=t.locale,r=t.fallbackLocale,o=t.messages,a=t.watcher,s=t.formater;(0,i.default)(this,e),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||S,this.messages=o||{},this.setLocale(n||m),a&&this.watchLocale(a)}return(0,a.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=C(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],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){M(r,e)||(r[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(e,t,n){var r=this.message;return"string"===typeof t?(t=C(t,this.messages),t&&(r=this.messages[t])):n=t,M(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function I(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function A(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof e&&e.getLocale?e.getLocale():m}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=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=A()),"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var i=new T({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return i.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,I(r,i))),i.t(e,t)}}return a(e,t)};return{i18n:i,f:function(e,t,n){return i.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 i.add(e,t,n)},watch:function(e){return i.watchLocale(e)},getLocale:function(){return i.getLocale()},setLocale:function(e){return i.setLocale(e)}}}t.I18n=T;var O,D=function(e){return"string"===typeof e};function N(e,t){return O||(O=new l),F(e,(function(e,n){var r=e[n];return D(r)?!!R(r,t)||void 0:N(r,t)}))}function L(e,t,n){return O||(O=new l),F(e,(function(e,r){var o=e[r];D(o)?R(o,n)&&(e[r]=P(o,t,n)):L(o,t,n)})),e}function x(e,t){var n=t.locale,r=t.locales,o=t.delimiters;if(!R(e,o))return e;O||(O=new l);var i=[];Object.keys(r).forEach((function(e){e!==n&&i.push({locale:e,values:r[e]})})),i.unshift({locale:n,values:r[n]});try{return JSON.stringify(U(JSON.parse(e),i,o),null,2)}catch(a){}return e}function R(e,t){return e.indexOf(t[0])>-1}function P(e,t,n){return O.interpolate(e,t,n).join("")}function G(e,t,n,r){var o=e[t];if(D(o)){if(R(o,r)&&(e[t]=P(o,n[0].values,r),n.length>1)){var i=e[t+"Locales"]={};n.forEach((function(e){i[e.locale]=P(o,e.values,r)}))}}else U(o,n,r)}function U(e,t,n){return F(e,(function(e,r){G(e,r,t,n)})),e}function F(e,t){if(s(e)){for(var n=0;n<e.length;n++)if(t(e,n))return!0}else if(c(e))for(var r in e)if(t(e,r))return!0;return!1}function j(e){return function(t){return t?(t=C(t)||t,$(t).find((function(t){return e.indexOf(t)>-1}))):t}}function $(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}t.isString=D}).call(this,n("c8ba"))},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);var n,r=a(t),s=r.length,c=0;while(s>c)o.f(e,n=r[c++],t[n]);return e}},3835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=s(n("0d21")),o=s(n("09f0")),i=s(n("06c5")),a=s(n("3d8c"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return(0,r.default)(e)||(0,o.default)(e,t)||(0,i.default)(e,t)||(0,a.default)()}},"3a7b":function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").findIndex,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),a="String Iterator",s=o.set,c=o.getterFor(a);i(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=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3d8c":function(e,t,n){"use strict";function r(){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=r},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").map,i=n("4840"),a=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod;c("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(i(e,e.constructor)))(t)}))}))},4160:function(e,t,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),a=i("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},"45fc":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").some,i=n("a640"),a=n("ae40"),s=i("some"),c=a("some");r({target:"Array",proto:!0,forced:!s||!c},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),i=n("50c4"),a=n("1d80"),s=n("8aa5"),c=n("14c3");r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.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=[],h=0;while(null!==(d=c(a,u))){var p=String(d[0]);f[h]=p,""===p&&(a.lastIndex=s(u,i(a.lastIndex),l)),h++}return 0===h?null:f}]}))},4793:function(e,t,n){"use strict";n("99af"),n("4160"),n("fb6a"),n("b64b"),n("159b");var r=n("082e");e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},4840:function(e,t,n){var r=n("825a"),o=n("1c0b"),i=n("b622"),a=i("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||void 0==(n=r(i)[a])?t:o(n)}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"498a":function(e,t,n){"use strict";var r=n("23e7"),o=n("58a8").trim,i=n("c8d2");r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return o(this)}})},"499d":function(e,t,n){"use strict";function r(e,t){if(e>=0&&t>0&&t>=e){var n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},"4a9b":function(e,t,n){var r=n("74e8");r("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"4ae1":function(e,t,n){var r=n("23e7"),o=n("d066"),i=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)})),h=!l((function(){d((function(){}))})),p=f||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(h&&!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 r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var o=n.prototype,l=c(s(o)?o:Object.prototype),p=Function.apply.call(e,l,t);return s(p)?p:l}})},"4b3d":function(e,t,n){"use strict";n("ac1f"),n("5319"),n("841c");var r=n("082e");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"4cbd":function(e,t,n){"use strict";var r=n("4ea4");n("c975"),n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("d4ec")),i=r(n("bee2")),a=r(n("33c6")),s=r(n("b328")),c=function(){function e(){var t=this;(0,o.default)(this,e),this.config={baseUrl:"",header:{},method:"POST",dataType:"json",responseType:"text",showLoading:!0,loadingText:"请求中...",loadingTime:800,timer:null,originalData:!1,loadingMask:!0},this.interceptor={request:null,response:null},this.get=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.request({method:"GET",url:e,header:r,data:n})},this.post=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.request({url:e,method:"POST",header:r,data:n})},this.put=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.request({url:e,method:"PUT",header:r,data:n})},this.delete=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.request({url:e,method:"DELETE",header:r,data:n})}}return(0,i.default)(e,[{key:"setConfig",value:function(e){this.config=(0,a.default)(this.config,e)}},{key:"request",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.interceptor.request&&"function"===typeof this.interceptor.request){var n=this.interceptor.request(t);if(!1===n)return new Promise((function(){}));this.options=n}return t.dataType=t.dataType||this.config.dataType,t.responseType=t.responseType||this.config.responseType,t.url=t.url||"",t.params=t.params||{},t.header=Object.assign({},this.config.header,t.header),t.method=t.method||this.config.method,new Promise((function(n,r){t.complete=function(t){if(uni.hideLoading(),clearTimeout(e.config.timer),e.config.timer=null,e.config.originalData)if(e.interceptor.response&&"function"===typeof e.interceptor.response){var o=e.interceptor.response(t);!1!==o?n(o):r(t)}else n(t);else if(200==t.statusCode)if(e.interceptor.response&&"function"===typeof e.interceptor.response){var i=e.interceptor.response(t.data);!1!==i?n(i):r(t.data)}else n(t.data);else r(t)},t.url=s.default.url(t.url)?t.url:e.config.baseUrl+(0==t.url.indexOf("/")?t.url:"/"+t.url),e.config.showLoading&&!e.config.timer&&(e.config.timer=setTimeout((function(){uni.showLoading({title:e.config.loadingText,mask:e.config.loadingMask}),e.config.timer=null}),e.config.loadingTime)),uni.request(t)}))}}]),e}(),u=new c;t.default=u},"4d63":function(e,t,n){var r=n("83ab"),o=n("da84"),i=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"),h=n("d039"),p=n("69f3").set,g=n("2626"),v=n("b622"),m=v("match"),_=o.RegExp,y=_.prototype,b=/a/g,M=/a/g,S=new _(b)!==b,k=d.UNSUPPORTED_Y,w=r&&i("RegExp",!S||k||h((function(){return M[m]=!1,_(b)!=b||_(M)==M||"/a/i"!=_(b,"i")})));if(w){var C=function(e,t){var n,r=this instanceof C,o=u(e),i=void 0===t;if(!r&&o&&e.constructor===C&&i)return e;S?o&&!i&&(e=e.source):e instanceof C&&(i&&(t=l.call(e)),e=e.source),k&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(S?new _(e,t):_(e,t),r?this:y,C);return k&&n&&p(s,{sticky:n}),s},T=function(e){e in C||s(C,e,{configurable:!0,get:function(){return _[e]},set:function(t){_[e]=t}})},I=c(_),A=0;while(I.length>A)T(I[A++]);y.constructor=C,C.prototype=y,f(o,"RegExp",C)}g("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(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 r=n("23e7"),o=n("0ccb").start,i=n("9a0c");r({target:"String",proto:!0,forced:i},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),s=i("filter"),c=a("filter");r({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 r=n("0366"),o=n("7b0b"),i=n("9bdd"),a=n("e95a"),s=n("50c4"),c=n("8418"),u=n("35a1");e.exports=function(e){var t,n,l,d,f,h,p=o(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,_=void 0!==m,y=u(p),b=0;if(_&&(m=r(m,v>2?arguments[2]:void 0,2)),void 0==y||g==Array&&a(y))for(t=s(p.length),n=new g(t);t>b;b++)h=_?m(p[b],b):p[b],c(n,b,h);else for(d=y.call(p),f=d.next,n=new g;!(l=f.call(d)).done;b++)h=_?i(d,m,[l.value,b],!0):l.value,c(n,b,h);return n.length=b,n}},"4e82":function(e,t,n){"use strict";var r=n("23e7"),o=n("1c0b"),i=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"),h=l||!d||!f;r({target:"Array",proto:!0,forced:h},{sort:function(e){return void 0===e?u.call(i(this)):u.call(i(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";var r=n("6d61"),o=n("6566");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"4f06":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s=i[1],c=i[2],u=i[3],l={id:e+":"+o,css:s,media:c,sourceMap:u};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return p}));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 i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,f="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,o){u=n,d=o||{};var a=r(e,t);return g(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o],c=i[s.id];c.refs--,n.push(c)}t?(a=r(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 i[c.id]}}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(m(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(m(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function m(e){var t,n,r=document.querySelector("style["+f+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(h){var o=c++;r=s||(s=v()),t=y.bind(null,r,o,!1),n=y.bind(null,r,o,!0)}else r=v(),t=b.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var o=n?"":O(r.css);if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function b(e,t){var n=O(t.css),r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),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,k=/\?%PAGE\?%\[data-v-[a-z0-9]{8}\]/g,w=/uni-page-body\[data-v-[a-z0-9]{8}\]/g,C=/var\(--status-bar-height\)/gi,T=/var\(--window-top\)/gi,I=/var\(--window-bottom\)/gi,A=/var\(--window-left\)/gi,E=/var\(--window-right\)/gi;function O(e){var t=D();if("undefined"!==typeof uni&&!uni.canIUse("css.var")){var n=N();e=e.replace(C,"0px").replace(T,n.top+"px").replace(I,n.bottom+"px").replace(A,"0px").replace(E,"0px")}return e.replace(k,t).replace(S,"").replace(w,"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 D(){var e="function"===typeof getApp&&getApp();return e&&e.$route&&e.$route.meta&&e.$route.meta.name||""}function N(){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}}},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"51a2":function(e,t,n){"use strict";(function(t){n("4160"),n("d3b7"),n("25f0"),n("498a"),n("159b");var r=n("082e"),o=n("2629"),i=n("19b0"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("093e")),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw i(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,n("4362"))},5282:function(e,t,n){"use strict";n("4160"),n("159b");var r=n("082e");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},5319:function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),i=n("7b0b"),a=n("50c4"),s=n("a691"),c=n("1d80"),u=n("8aa5"),l=n("14c3"),d=Math.max,f=Math.min,h=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,v=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,_=r.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,r){var o=c(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!m&&_||"string"===typeof r&&-1===r.indexOf(y)){var i=n(t,e,this,r);if(i.done)return i.value}var c=o(e),h=String(this),p="function"===typeof r;p||(r=String(r));var g=c.global;if(g){var M=c.unicode;c.lastIndex=0}var S=[];while(1){var k=l(c,h);if(null===k)break;if(S.push(k),!g)break;var w=String(k[0]);""===w&&(c.lastIndex=u(h,a(c.lastIndex),M))}for(var C="",T=0,I=0;I<S.length;I++){k=S[I];for(var A=String(k[0]),E=d(f(s(k.index),h.length),0),O=[],D=1;D<k.length;D++)O.push(v(k[D]));var N=k.groups;if(p){var L=[A].concat(O,E,h);void 0!==N&&L.push(N);var x=String(r.apply(void 0,L))}else x=b(A,h,E,O,N,r);E>=T&&(C+=h.slice(T,E)+x,T=E+A.length)}return C+h.slice(T)}];function b(e,n,r,o,a,s){var c=r+e.length,u=o.length,l=g;return void 0!==a&&(a=i(a),l=p),t.call(s,l,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return t;if(l>u){var d=h(l/10);return 0===d?t:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}))},5377:function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("ad6d"),a=n("9f7f").UNSUPPORTED_Y;r&&("g"!=/./g.flags||a)&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},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 r=o(n("ade3"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5692:function(e,t,n){var r=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:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),o=n("5899"),i="["+o+"]",a=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),c=function(e){return function(t){var n=String(r(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)}},5932:function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a7d":function(e,t,n){"use strict";var r=n("4ea4");n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var o=r(n("1da1")),i=r(n("d4ec")),a=r(n("bee2")),s=function(){function e(){(0,i.default)(this,e),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}return(0,a.default)(e,[{key:"addRootPath",value:function(e){return"/"===e[0]?e:"/".concat(e)}},{key:"mixinParam",value:function(e,t){e=e&&this.addRootPath(e);var n="";return/.*\/.*\?.*=.*/.test(e)?(n=uni.$u.queryParams(t,!1),e+"&"+n):(n=uni.$u.queryParams(t),e+n)}},{key:"route",value:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t,n,r,o,i=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=i.length>1&&void 0!==i[1]?i[1]:{},r={},"string"===typeof t?(r.url=this.mixinParam(t,n),r.type="navigateTo"):(r=uni.$u.deepClone(t,this.config),r.url=this.mixinParam(t.url,t.params)),n.intercept&&(this.config.intercept=n.intercept),r.params=n,r=uni.$u.deepMerge(this.config,r),"function"!==typeof uni.$u.routeIntercept){e.next=14;break}return e.next=10,new Promise((function(e,t){uni.$u.routeIntercept(r,e)}));case 10:o=e.sent,o&&this.openPage(r),e.next=15;break;case 14:this.openPage(r);case 15:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"openPage",value:function(e){var t=e.url,n=(e.type,e.delta),r=e.animationType,o=e.animationDuration;"navigateTo"!=e.type&&"to"!=e.type||uni.navigateTo({url:t,animationType:r,animationDuration:o}),"redirectTo"!=e.type&&"redirect"!=e.type||uni.redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||uni.switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||uni.reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||uni.navigateBack({delta:n})}}]),e}(),c=(new s).route;t.default=c},"5a98":function(e,t,n){"use strict";function r(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!==typeof e&&"function"!==typeof e)return e;var t=r(e)?[]:{};for(var n in e)e.hasOwnProperty(n)&&(t[n]="object"===typeof e[n]?o(e[n]):e[n]);return t}n("caad"),n("d3b7"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o;t.default=i},"5bc3":function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}e.exports=r},"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 r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"5cdc":function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var n,r=new Date(e),o={"y+":r.getFullYear().toString(),"m+":(r.getMonth()+1).toString(),"d+":r.getDate().toString(),"h+":r.getHours().toString(),"M+":r.getMinutes().toString(),"s+":r.getSeconds().toString()};for(var i in o)n=new RegExp("("+i+")").exec(t),n&&(t=t.replace(n[1],1==n[1].length?o[i]:o[i].padStart(n[1].length,"0")));return t}n("fb6a"),n("a9e3"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("4d90"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var n=this;if(n.length>=e)return String(n);var r=e-n.length,o=Math.ceil(r/t.length);while(o>>=1)t+=t,1===o&&(t+=t);return t.slice(0,r)+n});var o=r;t.default=o},"5d41":function(e,t,n){var r=n("23e7"),o=n("861d"),i=n("825a"),a=n("5135"),s=n("06cf"),c=n("e163");function u(e,t){var n,r,l=arguments.length<3?e:arguments[2];return i(e)===l?e[t]:(n=s.f(e,t))?a(n,"value")?n.value:void 0===n.get?void 0:n.get.call(l):o(r=c(e))?u(r,t,l):void 0}r({target:"Reflect",stat:!0},{get:u})},"5dfb":function(e,t,n){"use strict";var r=n("4ea4");n("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(n("b328"));function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rpx";return e=String(e),o.default.number(e)?"".concat(e).concat(t):e}},"5f96":function(e,t,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(o(this),arguments)}))},"5fb2":function(e,t,n){"use strict";var r=2147483647,o=36,i=1,a=26,s=38,c=700,u=72,l=128,d="-",f=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=o-i,v=Math.floor,m=String.fromCharCode,_=function(e){var t=[],n=0,r=e.length;while(n<r){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+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 r=0;for(e=n?v(e/c):e>>1,e+=v(e/t);e>g*a>>1;r+=o)e=v(e/g);return v(r+(g+1)*e/(e+s))},M=function(e){var t=[];e=_(e);var n,s,c=e.length,f=l,h=0,g=u;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(m(s));var M=t.length,S=M;M&&t.push(d);while(S<c){var k=r;for(n=0;n<e.length;n++)s=e[n],s>=f&&s<k&&(k=s);var w=S+1;if(k-f>v((r-h)/w))throw RangeError(p);for(h+=(k-f)*w,f=k,n=0;n<e.length;n++){if(s=e[n],s<f&&++h>r)throw RangeError(p);if(s==f){for(var C=h,T=o;;T+=o){var I=T<=g?i:T>=g+a?a:T-g;if(C<I)break;var A=C-I,E=o-I;t.push(m(y(I+A%E))),C=v(A/E)}t.push(m(y(C))),g=b(h,w,S==M),h=0,++S}}++h,++f}return t.join("")};e.exports=function(e){var t,n,r=[],o=e.toLowerCase().replace(h,".").split(".");for(t=0;t<o.length;t++)n=o[t],r.push(f.test(n)?"xn--"+M(n):n);return r.join(".")}},"5feb":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},6062:function(e,t,n){"use strict";var r=n("6d61"),o=n("6566");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"60bd":function(e,t,n){"use strict";var r=n("da84"),o=n("ebb5"),i=n("e260"),a=n("b622"),s=a("iterator"),c=r.Uint8Array,u=i.values,l=i.keys,d=i.entries,f=o.aTypedArray,h=o.exportTypedArrayMethod,p=c&&c.prototype[s],g=!!p&&("values"==p.name||void 0==p.name),v=function(){return u.call(f(this))};h("entries",(function(){return d.call(f(this))})),h("keys",(function(){return l.call(f(this))})),h("values",v,!g),h(s,v,!g)},"60da":function(e,t,n){"use strict";var r=n("83ab"),o=n("d039"),i=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(r&&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]||i(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 h,p=u(arguments[l++]),g=d?i(p).concat(d(p)):i(p),v=g.length,m=0;while(v>m)h=g[m++],r&&!f.call(p,h)||(n[h]=p[h])}return n}:l},"621a":function(e,t,n){"use strict";var r=n("da84"),o=n("83ab"),i=n("a981"),a=n("9112"),s=n("e2cc"),c=n("d039"),u=n("19aa"),l=n("a691"),d=n("50c4"),f=n("0b25"),h=n("77a7"),p=n("e163"),g=n("d2bb"),v=n("241c").f,m=n("9bf2").f,_=n("81d5"),y=n("d44e"),b=n("69f3"),M=b.get,S=b.set,k="ArrayBuffer",w="DataView",C="prototype",T="Wrong length",I="Wrong index",A=r[k],E=A,O=r[w],D=O&&O[C],N=Object.prototype,L=r.RangeError,x=h.pack,R=h.unpack,P=function(e){return[255&e]},G=function(e){return[255&e,e>>8&255]},U=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]},j=function(e){return x(e,23,4)},$=function(e){return x(e,52,8)},q=function(e,t){m(e[C],t,{get:function(){return M(this)[t]}})},B=function(e,t,n,r){var o=f(n),i=M(e);if(o+t>i.byteLength)throw L(I);var a=M(i.buffer).bytes,s=o+i.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},V=function(e,t,n,r,o,i){var a=f(n),s=M(e);if(a+t>s.byteLength)throw L(I);for(var c=M(s.buffer).bytes,u=a+s.byteOffset,l=r(+o),d=0;d<t;d++)c[u+d]=l[i?d:t-d-1]};if(i){if(!c((function(){A(1)}))||!c((function(){new A(-1)}))||c((function(){return new A,new A(1.5),new A(NaN),A.name!=k}))){E=function(e){return u(this,E),new A(f(e))};for(var H,W=E[C]=A[C],z=v(A),K=0;z.length>K;)(H=z[K++])in E||a(E,H,A[H]);W.constructor=E}g&&p(D)!==N&&g(D,N);var Y=new O(new E(2)),X=D.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||s(D,{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,k);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,w),u(e,E,w);var r=M(e).byteLength,i=l(t);if(i<0||i>r)throw L("Wrong offset");if(n=void 0===n?r-i:d(n),i+n>r)throw L(T);S(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(q(E,"byteLength"),q(O,"buffer"),q(O,"byteLength"),q(O,"byteOffset")),s(O[C],{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return F(B(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return F(B(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return R(B(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return R(B(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,P,t)},setUint8:function(e,t){V(this,1,e,P,t)},setInt16:function(e,t){V(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,G,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,U,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,$,t,arguments.length>2?arguments[2]:void 0)}});y(E,k),y(O,w),e.exports={ArrayBuffer:E,DataView:O}},"649e":function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").some,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),i=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},6566:function(e,t,n){"use strict";var r=n("9bf2").f,o=n("7c73"),i=n("e2cc"),a=n("0366"),s=n("19aa"),c=n("2266"),u=n("7dd0"),l=n("2626"),d=n("83ab"),f=n("f183").fastKey,h=n("69f3"),p=h.set,g=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),p(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&c(r,e[u],e,n)})),h=g(t),v=function(e,t,n){var r,o,i=h(e),a=m(e,t);return a?a.value=n:(i.last=a={index:o=f(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},m=function(e,t){var n,r=h(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=m(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),d?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),i(l.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);u(e,t,(function(e,t){p(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){var e=i(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 r=n("861d"),o=n("e8b5"),i=n("b622"),a=i("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"662a":function(e,t,n){"use strict";var r=n("4ea4");n("a9e3"),n("d3b7"),n("e25e"),n("25f0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("5cdc"));function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var n=+new Date(Number(e)),r=(Number(new Date)-n)/1e3,i="";switch(!0){case r<300:i="刚刚";break;case r>=300&&r<3600:i=parseInt(r/60)+"分钟前";break;case r>=3600&&r<86400:i=parseInt(r/3600)+"小时前";break;case r>=86400&&r<2592e3:i=parseInt(r/86400)+"天前";break;default:i=!1===t?r>=2592e3&&r<31536e3?parseInt(r/2592e3)+"个月前":parseInt(r/31536e3)+"年前":(0,o.default)(n,t)}return i}var a=i;t.default=a},"69f3":function(e,t,n){var r,o,i,a=n("7f9a"),s=n("da84"),c=n("861d"),u=n("9112"),l=n("5135"),d=n("f772"),f=n("d012"),h=s.WeakMap,p=function(e){return i(e)?o(e):r(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 v=new h,m=v.get,_=v.has,y=v.set;r=function(e,t){return y.call(v,e,t),t},o=function(e){return m.call(v,e)||{}},i=function(e){return _.call(v,e)}}else{var b=d("state");f[b]=!0,r=function(e,t){return u(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:p,getterFor:g}},"6b75":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"6c57":function(e,t,n){var r=n("23e7"),o=n("da84");r({global:!0},{globalThis:o})},"6d61":function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("94ca"),a=n("6eeb"),s=n("f183"),c=n("2266"),u=n("19aa"),l=n("861d"),d=n("d039"),f=n("1c7e"),h=n("d44e"),p=n("7156");e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=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!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof _||!(v||y.forEach&&!d((function(){(new _).entries().next()})))))b=n.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(i(e,!0)){var k=new b,w=k[m](v?{}:-0,1)!=k,C=d((function(){k.has(1)})),T=f((function(e){new _(e)})),I=!v&&d((function(){var e=new _,t=5;while(t--)e[m](t,t);return!e.has(-0)}));T||(b=t((function(t,n){u(t,b,e);var r=p(new _,t,b);return void 0!=n&&c(n,r[m],r,g),r})),b.prototype=y,y.constructor=b),(C||I)&&(S("delete"),S("has"),g&&S("get")),(I||w)&&S(m),v&&y.clear&&delete y.clear}return M[e]=b,r({global:!0,forced:b!=_},M),h(b,e),v||n.setStrong(b,e,g),b}},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),i=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||i(n,"name")||o(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(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 r=n("83ab"),o=n("df75"),i=n("fc6a"),a=n("d1e7").f,s=function(e){return function(t){var n,s=i(t),c=o(s),u=c.length,l=0,d=[];while(u>l)n=c[l++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},7039:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("057f").f,a=o((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:i})},7156:function(e,t,n){var r=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},"72f7":function(e,t,n){"use strict";var r=n("ebb5").exportTypedArrayMethod,o=n("d039"),i=n("da84"),a=i.Uint8Array,s=a&&a.prototype||{},c=[].toString,u=[].join;o((function(){c.call({})}))&&(c=function(){return u.call(this)});var l=s.toString!=c;r("toString",c,l)},"735e":function(e,t,n){"use strict";var r=n("ebb5"),o=n("81d5"),i=r.aTypedArray,a=r.exportTypedArrayMethod;a("fill",(function(e){return o.apply(i(this),arguments)}))},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),o=n("5135"),i=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},"74e8":function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("83ab"),a=n("8aa7"),s=n("ebb5"),c=n("621a"),u=n("19aa"),l=n("5c6c"),d=n("9112"),f=n("50c4"),h=n("0b25"),p=n("182d"),g=n("c04e"),v=n("5135"),m=n("f5df"),_=n("861d"),y=n("7c73"),b=n("d2bb"),M=n("241c").f,S=n("a078"),k=n("b727").forEach,w=n("2626"),C=n("9bf2"),T=n("06cf"),I=n("69f3"),A=n("7156"),E=I.get,O=I.set,D=C.f,N=T.f,L=Math.round,x=o.RangeError,R=c.ArrayBuffer,P=c.DataView,G=s.NATIVE_ARRAY_BUFFER_VIEWS,U=s.TYPED_ARRAY_TAG,F=s.TypedArray,j=s.TypedArrayPrototype,$=s.aTypedArrayConstructor,q=s.isTypedArray,B="BYTES_PER_ELEMENT",V="Wrong length",H=function(e,t){var n=0,r=t.length,o=new($(e))(r);while(r>n)o[n]=t[n++];return o},W=function(e,t){D(e,t,{get:function(){return E(this)[t]}})},z=function(e){var t;return e instanceof R||"ArrayBuffer"==(t=m(e))||"SharedArrayBuffer"==t},K=function(e,t){return q(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Y=function(e,t){return K(e,t=g(t,!0))?l(2,e[t]):N(e,t)},X=function(e,t,n){return!(K(e,t=g(t,!0))&&_(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?D(e,t,n):(e[t]=n.value,e)};i?(G||(T.f=Y,C.f=X,W(j,"buffer"),W(j,"byteOffset"),W(j,"byteLength"),W(j,"length")),r({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:Y,defineProperty:X}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,l="set"+e,g=o[s],v=g,m=v&&v.prototype,C={},T=function(e,t){var n=E(e);return n.view[c](t*i+n.byteOffset,!0)},I=function(e,t,r){var o=E(e);n&&(r=(r=L(r))<0?0:r>255?255:255&r),o.view[l](t*i+o.byteOffset,r,!0)},N=function(e,t){D(e,t,{get:function(){return T(this,t)},set:function(e){return I(this,t,e)},enumerable:!0})};G?a&&(v=t((function(e,t,n,r){return u(e,v,s),A(function(){return _(t)?z(t)?void 0!==r?new g(t,p(n,i),r):void 0!==n?new g(t,p(n,i)):new g(t):q(t)?H(v,t):S.call(v,t):new g(h(t))}(),e,v)})),b&&b(v,F),k(M(g),(function(e){e in v||d(v,e,g[e])})),v.prototype=m):(v=t((function(e,t,n,r){u(e,v,s);var o,a,c,l=0,d=0;if(_(t)){if(!z(t))return q(t)?H(v,t):S.call(v,t);o=t,d=p(n,i);var g=t.byteLength;if(void 0===r){if(g%i)throw x(V);if(a=g-d,a<0)throw x(V)}else if(a=f(r)*i,a+d>g)throw x(V);c=a/i}else c=h(t),a=c*i,o=new R(a);O(e,{buffer:o,byteOffset:d,byteLength:a,length:c,view:new P(o)});while(l<c)N(e,l++)})),b&&b(v,F),m=v.prototype=y(j)),m.constructor!==v&&d(m,"constructor",v),U&&d(m,U,s),C[s]=v,r({global:!0,forced:v!=g,sham:!G},C),B in v||d(v,B,i),B in m||d(m,B,i),w(s)}):e.exports=function(){}},"77a7":function(e,t){var n=1/0,r=Math.abs,o=Math.pow,i=Math.floor,a=Math.log,s=Math.LN2,c=function(e,t,c){var u,l,d,f=new Array(c),h=8*c-t-1,p=(1<<h)-1,g=p>>1,v=23===t?o(2,-24)-o(2,-77):0,m=e<0||0===e&&1/e<0?1:0,_=0;for(e=r(e),e!=e||e===n?(l=e!=e?1:0,u=p):(u=i(a(e)/s),e*(d=o(2,-u))<1&&(u--,d*=2),e+=u+g>=1?v/d:v*o(2,1-g),e*d>=2&&(u++,d/=2),u+g>=p?(l=0,u=p):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,h+=t;h>0;f[_++]=255&u,u/=256,h-=8);return f[--_]|=128*m,f},u=function(e,t){var r,i=e.length,a=8*i-t-1,s=(1<<a)-1,c=s>>1,u=a-7,l=i-1,d=e[l--],f=127&d;for(d>>=7;u>0;f=256*f+e[l],l--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=t;u>0;r=256*r+e[l],l--,u-=8);if(0===f)f=1-c;else{if(f===s)return r?NaN:d?-n:n;r+=o(2,t),f-=c}return(d?-1:1)*r*o(2,f-t)};e.exports={pack:c,unpack:u}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),u=n("cc12"),l=n("f772"),d=">",f="<",h="prototype",p="script",g=l("IE_PROTO"),v=function(){},m=function(e){return f+p+d+e+f+"/"+p+d},_=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}b=r?_(r):y();var e=a.length;while(e--)delete b[h][a[e]];return b()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[h]=o(e),n=new v,v[h]=null,n[g]=e):n=b(),void 0===t?n:i(n,t)}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").find,i=n("44d2"),a=n("ae40"),s="find",c=!0,u=a(s);s in[]&&Array(1)[s]((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),s=n("d44e"),c=n("9112"),u=n("6eeb"),l=n("b622"),d=n("c430"),f=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m="keys",_="values",y="entries",b=function(){return this};e.exports=function(e,t,n,l,h,M,S){o(n,t,l);var k,w,C,T=function(e){if(e===h&&D)return D;if(!g&&e in E)return E[e];switch(e){case m: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)}},I=t+" Iterator",A=!1,E=e.prototype,O=E[v]||E["@@iterator"]||h&&E[h],D=!g&&O||T(h),N="Array"==t&&E.entries||O;if(N&&(k=i(N.call(new e)),p!==Object.prototype&&k.next&&(d||i(k)===p||(a?a(k,p):"function"!=typeof k[v]&&c(k,v,b)),s(k,I,!0,!0),d&&(f[I]=b))),h==_&&O&&O.name!==_&&(A=!0,D=function(){return O.call(this)}),d&&!S||E[v]===D||c(E,v,D),f[t]=D,h)if(w={values:T(_),keys:M?D:T(m),entries:T(y)},S)for(C in w)(g||A||!(C in E))&&u(E,C,w[C]);else r({target:t,proto:!0,forced:g||A},w);return w}},"7e12":function(e,t,n){var r=n("da84"),o=n("58a8").trim,i=n("5899"),a=r.parseFloat,s=1/a(i+"-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},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;e.exports="function"===typeof i&&/native code/.test(o(i))},"803f":function(e,t,n){"use strict";var r=n("bf4d"),o=n("1750");e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),o=n("23cb"),i=n("50c4");e.exports=function(e){var t=r(this),n=i(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}},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"82da":function(e,t,n){var r=n("23e7"),o=n("ebb5"),i=o.NATIVE_ARRAY_BUFFER_VIEWS;r({target:"ArrayBuffer",stat:!0,forced:!i},{isView:o.isView})},"82f8":function(e,t,n){"use strict";var r=n("ebb5"),o=n("4d64").includes,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},"841c":function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),i=n("1d80"),a=n("129f"),s=n("14c3");r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),c=String(this),u=i.lastIndex;a(u,0)||(i.lastIndex=0);var l=s(i,c);return a(i.lastIndex,u)||(i.lastIndex=u),null===l?-1:l.index}]}))},"84c3":function(e,t,n){var r=n("74e8");r("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"872c":function(e,t,n){n("d81d"),n("a434"),n("b64b"),n("d3b7"),n("ac1f"),e.exports={data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect:function(e,t){var n=this;return new Promise((function(r){uni.createSelectorQuery().in(n)[t?"selectAll":"select"](e).boundingClientRect((function(e){t&&Array.isArray(e)&&e.length&&r(e),!t&&e&&r(e)})).exec()}))},getParentData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,t),this.parent&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom:function(){uni.$emit("uOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&uni.$u.test.array(this.parent.children)){var t=this.parent.children;t.map((function(n,r){n===e&&t.splice(r,1)}))}}}},8925:function(e,t,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},"894b":function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},"8a59":function(e,t,n){var r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8aa7":function(e,t,n){var r=n("da84"),o=n("d039"),i=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((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}))},"8b09":function(e,t,n){var r=n("74e8");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"8b34":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var r=n("ad6d"),o=n("9f7f"),i=RegExp.prototype.exec,a=String.prototype.replace,s=i,c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.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,h=r.call(d),p=d.source,g=0,v=e;return f&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),v=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",v=" "+v,g++),n=new RegExp("^(?:"+p+")",h)),l&&(n=new RegExp("^"+p+"$(?!\\s)",h)),c&&(t=d.lastIndex),o=i.call(f?n:d,v),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},"93be":function(e,t,n){"use strict";var r=n("4ea4");n("4de4"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("872c")),i=r(n("4cbd")),a=r(n("b900")),s=r(n("5a7d")),c=r(n("5cdc")),u=r(n("662a")),l=r(n("b018")),d=r(n("31cf")),f=r(n("e4ea")),h=r(n("9dcb")),p=r(n("1e94")),g=r(n("5a98")),v=r(n("33c6")),m=r(n("5dfb")),_=r(n("b328")),y=r(n("499d")),b=r(n("894b")),M=r(n("dc10")),S=r(n("336a")),k=r(n("c4a1")),w=n("e1a3"),C=r(n("c990")),T=r(n("c7b7")),I=r(n("232b")),A=r(n("c574"));function E(e){0}var O={queryParams:a.default,route:s.default,timeFormat:c.default,date:c.default,timeFrom:u.default,colorGradient:l.default.colorGradient,colorToRgba:l.default.colorToRgba,guid:d.default,color:f.default,sys:w.sys,os:w.os,type2icon:h.default,randomArray:p.default,wranning:E,get:i.default.get,post:i.default.post,put:i.default.put,delete:i.default.delete,hexToRgb:l.default.hexToRgb,rgbToHex:l.default.rgbToHex,test:_.default,random:y.default,deepClone:g.default,deepMerge:v.default,getParent:S.default,$parent:k.default,addUnit:m.default,trim:b.default,type:["primary","success","error","warning","info"],http:i.default,toast:M.default,config:I.default,zIndex:A.default,debounce:C.default,throttle:T.default};uni.$u=O;var D=function(e){e.mixin(o.default),e.prototype.openShare&&e.mixin(mpShare),e.filter("timeFormat",(function(e,t){return(0,c.default)(e,t)})),e.filter("date",(function(e,t){return(0,c.default)(e,t)})),e.filter("timeFrom",(function(e,t){return(0,u.default)(e,t)})),e.prototype.$u=O},N={install:D};t.default=N},"944a":function(e,t,n){var r=n("746f");r("toStringTag")},"94ca":function(e,t,n){var r=n("d039"),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=b;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",g={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,_=m&&m(m(N([])));_&&_!==r&&o.call(_,a)&&(v=_);var y=w.prototype=S.prototype=Object.create(v);k.prototype=y.constructor=w,w.constructor=k,w[c]=k.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(y),e},l.awrap=function(e){return{__await:e}},C(T.prototype),T.prototype[s]=function(){return this},l.AsyncIterator=T,l.async=function(e,t,n,r){var o=new T(b(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(y),y[c]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=N,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function b(e,t,n,r){var o=t&&t.prototype instanceof S?t:S,i=Object.create(o.prototype),a=new D(r||[]);return i._invoke=I(e,n,a),i}function M(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function S(){}function k(){}function w(){}function C(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function T(e){function t(n,r,i,a){var s=M(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return t("throw",e,i,a)}))}a(s.arg)}var n;function r(e,r){function o(){return new Promise((function(n,o){t(e,r,n,o)}))}return n=n?n.then(o,o):o()}this._invoke=r}function I(e,t,n){var r=d;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return L()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=M(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function A(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,A(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=M(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){while(++r<e.length)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"970b":function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n},9861:function(e,t,n){"use strict";n("e260");var r=n("23e7"),o=n("d066"),i=n("0d3b"),a=n("6eeb"),s=n("e2cc"),c=n("d44e"),u=n("9ed3"),l=n("69f3"),d=n("19aa"),f=n("5135"),h=n("0366"),p=n("f5df"),g=n("825a"),v=n("861d"),m=n("7c73"),_=n("5c6c"),y=n("9a1f"),b=n("35a1"),M=n("b622"),S=o("fetch"),k=o("Headers"),w=M("iterator"),C="URLSearchParams",T=C+"Iterator",I=l.set,A=l.getterFor(C),E=l.getterFor(T),O=/\+/g,D=Array(4),N=function(e){return D[e-1]||(D[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},L=function(e){try{return decodeURIComponent(e)}catch(t){return e}},x=function(e){var t=e.replace(O," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(N(n--),L);return t}},R=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},G=function(e){return P[e]},U=function(e){return encodeURIComponent(e).replace(R,G)},F=function(e,t){if(t){var n,r,o=t.split("&"),i=0;while(i<o.length)n=o[i++],n.length&&(r=n.split("="),e.push({key:x(r.shift()),value:x(r.join("="))}))}},j=function(e){this.entries.length=0,F(this.entries,e)},$=function(e,t){if(e<t)throw TypeError("Not enough arguments")},q=u((function(e,t){I(this,{type:T,iterator:y(A(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),B=function(){d(this,B,C);var e,t,n,r,o,i,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,h=[];if(I(l,{type:C,entries:h,updateURL:function(){},updateSearchParams:j}),void 0!==u)if(v(u))if(e=b(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(r=n.call(t)).done){if(o=y(g(r.value)),i=o.next,(a=i.call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");h.push({key:a.value+"",value:s.value+""})}}else for(c in u)f(u,c)&&h.push({key:c,value:u[c]+""});else F(h,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},V=B.prototype;s(V,{append:function(e,t){$(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){$(arguments.length,1);var t=A(this),n=t.entries,r=e+"",o=0;while(o<n.length)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){$(arguments.length,1);for(var t=A(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){$(arguments.length,1);for(var t=A(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){$(arguments.length,1);var t=A(this).entries,n=e+"",r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){$(arguments.length,1);for(var n,r=A(this),o=r.entries,i=!1,a=e+"",s=t+"",c=0;c<o.length;c++)n=o[c],n.key===a&&(i?o.splice(c--,1):(i=!0,n.value=s));i||o.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=A(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),o=0;while(o<n.length)t=n[o++],r(t.value,t.key,this)},keys:function(){return new q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),a(V,w,V.entries),a(V,"toString",(function(){var e,t=A(this).entries,n=[],r=0;while(r<t.length)e=t[r++],n.push(U(e.key)+"="+U(e.value));return n.join("&")}),{enumerable:!0}),c(B,C),r({global:!0,forced:!i},{URLSearchParams:B}),i||"function"!=typeof S||"function"!=typeof k||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(n=t.body,p(n)===C&&(r=t.headers?new k(t.headers):new k,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:_(0,String(n)),headers:_(0,r)}))),o.push(t)),S.apply(this,o)}}),e.exports={URLSearchParams:B,getState:A}},"99af":function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),a=n("861d"),s=n("7b0b"),c=n("50c4"),u=n("8418"),l=n("65f0"),d=n("1dde"),f=n("b622"),h=n("2d00"),p=f("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=h>=51||!o((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),_=d("concat"),y=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)},b=!m||!_;r({target:"Array",proto:!0,forced:b},{concat:function(e){var t,n,r,o,i,a=s(this),d=l(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(i=-1===t?a:arguments[t],y(i)){if(o=c(i.length),f+o>g)throw TypeError(v);for(n=0;n<o;n++,f++)n in i&&u(d,f,i[n])}else{if(f>=g)throw TypeError(v);u(d,f++,i)}return d.length=f,d}})},"9a0c":function(e,t,n){var r=n("342f");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},"9a1f":function(e,t,n){var r=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 r(t.call(e))}},"9a8c":function(e,t,n){"use strict";var r=n("ebb5"),o=n("145e"),i=r.aTypedArray,a=r.exportTypedArrayMethod;a("copyWithin",(function(e,t){return o.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw void 0!==i&&r(i.call(e)),a}}},"9bf2":function(e,t,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),a=n("c04e"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9dcb":function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var n="";switch(e){case"primary":n="info-circle";break;case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;case"success":n="checkmark-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n}n("c975"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=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(r,{next:i(1,n)}),a(e,u,!1,!0),s[u]=c,e}},"9f7f":function(e,t,n){"use strict";var r=n("d039");function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a078:function(e,t,n){var r=n("7b0b"),o=n("50c4"),i=n("35a1"),a=n("e95a"),s=n("0366"),c=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,u,l,d,f,h=r(e),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=i(h);if(void 0!=m&&!a(m)){d=m.call(h),f=d.next,h=[];while(!(l=f.call(d)).done)h.push(l.value)}for(v&&p>2&&(g=s(g,arguments[2],2)),n=o(h.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=v?g(h[t],t):h[t];return u}},a434:function(e,t,n){"use strict";var r=n("23e7"),o=n("23cb"),i=n("a691"),a=n("50c4"),s=n("7b0b"),c=n("65f0"),u=n("8418"),l=n("1dde"),d=n("ae40"),f=l("splice"),h=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,v=9007199254740991,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f||!h},{splice:function(e,t){var n,r,l,d,f,h,_=s(this),y=a(_.length),b=o(e,y),M=arguments.length;if(0===M?n=r=0:1===M?(n=0,r=y-b):(n=M-2,r=g(p(i(t),0),y-b)),y+n-r>v)throw TypeError(m);for(l=c(_,r),d=0;d<r;d++)f=b+d,f in _&&u(l,d,_[f]);if(l.length=r,n<r){for(d=b;d<y-r;d++)f=d+r,h=d+n,f in _?_[h]=_[f]:delete _[h];for(d=y;d>y-r+n;d--)delete _[d-1]}else if(n>r)for(d=y-r;d>b;d--)f=d+r-1,h=d+n-1,f in _?_[h]=_[f]:delete _[h];for(d=0;d<n;d++)_[d+b]=arguments[d+2];return _.length=y-r+n,l}})},a4d3:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("d066"),a=n("c430"),s=n("83ab"),c=n("4930"),u=n("fdbf"),l=n("d039"),d=n("5135"),f=n("e8b5"),h=n("861d"),p=n("825a"),g=n("7b0b"),v=n("fc6a"),m=n("c04e"),_=n("5c6c"),y=n("7c73"),b=n("df75"),M=n("241c"),S=n("057f"),k=n("7418"),w=n("06cf"),C=n("9bf2"),T=n("d1e7"),I=n("9112"),A=n("6eeb"),E=n("5692"),O=n("f772"),D=n("d012"),N=n("90e3"),L=n("b622"),x=n("e538"),R=n("746f"),P=n("d44e"),G=n("69f3"),U=n("b727").forEach,F=O("hidden"),j="Symbol",$="prototype",q=L("toPrimitive"),B=G.set,V=G.getterFor(j),H=Object[$],W=o.Symbol,z=i("JSON","stringify"),K=w.f,Y=C.f,X=S.f,J=T.f,Q=E("symbols"),Z=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),ne=E("wks"),re=o.QObject,oe=!re||!re[$]||!re[$].findChild,ie=s&&l((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(H,t);r&&delete H[t],Y(e,t,n),r&&e!==H&&Y(H,t,r)}:Y,ae=function(e,t){var n=Q[e]=y(W[$]);return B(n,{type:j,tag:e,description:t}),s||(n.description=t),n},se=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ce=function(e,t,n){e===H&&ce(Z,t,n),p(e);var r=m(t,!0);return p(n),d(Q,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=y(n,{enumerable:_(0,!1)})):(d(e,F)||Y(e,F,_(1,{})),e[F][r]=!0),ie(e,r,n)):Y(e,r,n)},ue=function(e,t){p(e);var n=v(t),r=b(n).concat(pe(n));return U(r,(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=m(e,!0),n=J.call(this,t);return!(this===H&&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=v(e),r=m(t,!0);if(n!==H||!d(Q,r)||d(Z,r)){var o=K(n,r);return!o||!d(Q,r)||d(n,F)&&n[F][r]||(o.enumerable=!0),o}},he=function(e){var t=X(v(e)),n=[];return U(t,(function(e){d(Q,e)||d(D,e)||n.push(e)})),n},pe=function(e){var t=e===H,n=X(t?Z:v(e)),r=[];return U(n,(function(e){!d(Q,e)||t&&!d(H,e)||r.push(Q[e])})),r};if(c||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=N(e),n=function(e){this===H&&n.call(Z,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),ie(this,t,_(1,e))};return s&&oe&&ie(H,t,{configurable:!0,set:n}),ae(t,e)},A(W[$],"toString",(function(){return V(this).tag})),A(W,"withoutSetter",(function(e){return ae(N(e),e)})),T.f=de,C.f=ce,w.f=fe,M.f=S.f=he,k.f=pe,x.f=function(e){return ae(L(e),e)},s&&(Y(W[$],"description",{configurable:!0,get:function(){return V(this).description}}),a||A(H,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),U(b(ne),(function(e){R(e)})),r({target:j,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=W(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}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:le,defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(g(e))}}),z){var ge=!c||l((function(){var e=W();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var r,o=[e],i=1;while(arguments.length>i)o.push(arguments[i++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),o[1]=t,z.apply(null,o)}})}W[$][q]||I(W[$],q,W[$].valueOf),P(W,j),D[F]=!0},a630:function(e,t,n){var r=n("23e7"),o=n("4df4"),i=n("1c7e"),a=!i((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:o})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a79d:function(e,t,n){"use strict";var r=n("23e7"),o=n("c430"),i=n("fea9"),a=n("d039"),s=n("d066"),c=n("4840"),u=n("cdf9"),l=n("6eeb"),d=!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));r({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 i||i.prototype["finally"]||l(i.prototype,"finally",s("Promise").prototype["finally"])},a7a7:function(e,t,n){"use strict";function r(e,t){0}function o(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function i(e,t){for(var n in t)e[n]=t[n];return e}n.r(t);var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,o=t.parent,a=t.data;a.routerView=!0;var c=o.$createElement,u=n.name,l=o.$route,d=o._routerViewCache||(o._routerViewCache={}),f=0,h=!1;while(o&&o._routerRoot!==o)o.$vnode&&o.$vnode.data.routerView&&f++,o._inactive&&(h=!0),o=o.$parent;if(a.routerViewDepth=f,h)return c(d[u],a,r);var p=l.matched[f];if(!p)return d[u]=null,c();var g=d[u]=p.components[u];a.registerRouteInstance=function(e,t){var n=p.instances[u];(t&&n!==e||!t&&n===e)&&(p.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){p.instances[u]=t.componentInstance};var v=a.props=s(l,p.props&&p.props[u]);if(v){v=a.props=i({},v);var m=a.attrs=a.attrs||{};for(var _ in v)g.props&&_ in g.props||(m[_]=v[_],delete v[_])}return c(g,a,r)}};function s(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 c=/[!'()*]/g,u=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,d=function(e){return encodeURIComponent(e).replace(c,u).replace(l,",")},f=decodeURIComponent;function h(e,t,n){void 0===t&&(t={});var r,o=n||p;try{r=o(e||"")}catch(a){r={}}for(var i in t)r[i]=t[i];return r}function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=f(n.shift()),o=n.length>0?f(n.join("=")):null;void 0===t[r]?t[r]=o:Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]})),t):t}function g(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return d(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(d(t)):r.push(d(t)+"="+d(e)))})),r.join("&")}return d(t)+"="+d(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var v=/\/?$/;function m(e,t,n,r){var o=r&&r.options.stringifyQuery,i=t.query||{};try{i=_(i)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",type:t.type,query:i,params:t.params||{},fullPath:M(t,o),matched:e?b(e):[]};return n&&(a.redirectedFrom=M(n,o)),Object.freeze(a)}function _(e){if(Array.isArray(e))return e.map(_);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=_(e[n]);return t}return e}var y=m(null,{path:"/"});function b(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function M(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var o=e.hash;void 0===o&&(o="");var i=t||g;return(n||"/")+i(r)+o}function S(e,t){return t===y?e===t:!!t&&(e.path&&t.path?e.path.replace(v,"")===t.path.replace(v,"")&&e.hash===t.hash&&k(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&k(e.query,t.query)&&k(e.params,t.params)))}function k(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],o=t[n];return"object"===typeof r&&"object"===typeof o?k(r,o):String(r)===String(o)}))}function w(e,t){return 0===e.path.replace(v,"/").indexOf(t.path.replace(v,"/"))&&(!t.hash||e.hash===t.hash)&&C(e.query,t.query)}function C(e,t){for(var n in t)if(!(n in e))return!1;return!0}var T,I=[String,Object],A=[String,Array],E={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:A,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,c=o.href,u={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,f=null==l?"router-link-active":l,h=null==d?"router-link-exact-active":d,p=null==this.activeClass?f:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,v=a.path?m(null,a,null,n):s;u[g]=S(r,v),u[p]=this.exact?u[g]:w(r,v);var _=function(e){O(e)&&(t.replace?n.replace(a):n.push(a))},y={click:O};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 M=D(this.$slots.default);if(M){M.isStatic=!1;var k=M.data=i({},M.data);k.on=y;var C=M.data.attrs=i({},M.data.attrs);C.href=c}else b.on=y}return e(this.tag,b,this.$slots.default)}};function O(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 D(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=D(t.children)))return t}}function N(e){if(!N.installed||T!==e){N.installed=!0,T=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(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",a),e.component("RouterLink",E);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var L="undefined"!==typeof window;function x(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var o=t.split("/");n&&o[o.length-1]||o.pop();for(var i=e.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var s=i[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}function R(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:t}}function P(e){return e.replace(/\/\//g,"/")}var G=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},U=re,F=V,j=H,$=K,q=ne,B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function V(e,t){var n,r=[],o=0,i=0,a="",s=t&&t.delimiter||"/";while(null!=(n=B.exec(e))){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(i,l),i=l+c.length,u)a+=u[1];else{var d=e[i],f=n[2],h=n[3],p=n[4],g=n[5],v=n[6],m=n[7];a&&(r.push(a),a="");var _=null!=f&&null!=d&&d!==f,y="+"===v||"*"===v,b="?"===v||"*"===v,M=n[2]||s,S=p||g;r.push({name:h||o++,prefix:f||"",delimiter:M,optional:b,repeat:y,partial:_,asterisk:!!m,pattern:S?X(S):m?".*":"[^"+Y(M)+"]+?"})}}return i<e.length&&(a+=e.substr(i)),a&&r.push(a),r}function H(e,t){return K(V(e,t))}function W(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,r){for(var o="",i=n||{},a=r||{},s=a.pretty?W:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var l,d=i[u.name];if(null==d){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(G(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 Y(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function X(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function J(e,t){return e.keys=t,e}function Q(e){return e.sensitive?"":"i"}function Z(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return J(e,t)}function ee(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(re(e[o],t,n).source);var i=new RegExp("(?:"+r.join("|")+")",Q(n));return J(i,t)}function te(e,t,n){return ne(V(e,n),t,n)}function ne(e,t,n){G(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,i="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)i+=Y(s);else{var c=Y(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+c+u+")*"),u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",i+=u}}var l=Y(n.delimiter||"/"),d=i.slice(-l.length)===l;return r||(i=(d?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&d?"":"(?="+l+"|$)",J(new RegExp("^"+i,Q(n)),t)}function re(e,t,n){return G(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?Z(e,t):G(e)?ee(e,t,n):te(e,t,n)}U.parse=F,U.compile=j,U.tokensToFunction=$,U.tokensToRegExp=q;var oe=Object.create(null);function ie(e,t,n){try{var r=oe[e]||(oe[e]=U.compile(e));return r(t||{},{pretty:!0})}catch(o){return""}}function ae(e,t,n,r){var o=t||[],i=n||Object.create(null),a=r||Object.create(null);e.forEach((function(e){se(o,i,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:i,nameMap:a}}function se(e,t,n,r,o,i){var a=r.path,s=r.name;var c=r.pathToRegexpOptions||{},u=ue(a,o,c.strict);"boolean"===typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var l={path:u,regex:ce(u,c),components:r.components||{default:r.component},instances:{},name:s,parent:o,matchAs:i,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var o=i?P(i+"/"+r.path):void 0;se(e,t,n,r,l,o)})),void 0!==r.alias){var d=Array.isArray(r.alias)?r.alias:[r.alias];d.forEach((function(i){var a={path:i,children:r.children};se(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 ce(e,t){var n=U(e,[],t);return n}function ue(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:P(t.path+"/"+e)}function le(e,t,n,r){var o="string"===typeof e?{path:e}:e;if(o.name||o._normalized)return o;if(!o.path&&o.params&&t){o=i({},o),o._normalized=!0;var a=i(i({},t.params),o.params);if(t.name)o.name=t.name,o.params=a;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;o.path=ie(s,a,"path "+t.path)}else 0;return o}var c=R(o.path||""),u=t&&t.path||"/",l=c.path?x(c.path,u,n||o.append):u,d=h(c.query,o.query,r&&r.options.parseQuery),f=o.hash||c.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,type:o.type,params:o.params||{},path:l,query:d,hash:f}}function de(e,t){var n=ae(e),r=n.pathList,o=n.pathMap,a=n.nameMap;function s(e){ae(e,r,o,a)}function c(e,n,i){var s=le(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=ie(u.path,s.params,'named route "'+c+'"'),d(u,s,i)}else if(s.path){s.params=s.params||{};for(var h=0;h<r.length;h++){var p=r[h],g=o[p];if(fe(g.regex,s.path,s.params))return d(g,s,i)}}return d(null,s)}function u(e,n){var r=e.redirect,o="function"===typeof r?r(m(e,n,null,t)):r;if("string"===typeof o&&(o={path:o}),!o||"object"!==typeof o)return d(null,n);var i=o,s=i.name,u=i.path,l=n.query,f=n.hash,h=n.params;if(l=i.hasOwnProperty("query")?i.query:l,f=i.hasOwnProperty("hash")?i.hash:f,h=i.hasOwnProperty("params")?i.params:h,s){a[s];return c({_normalized:!0,name:s,query:l,hash:f,params:h},void 0,n)}if(u){var p=he(u,e),g=ie(p,h,'redirect route with path "'+p+'"');return c({_normalized:!0,path:g,query:l,hash:f},void 0,n)}return d(null,n)}function l(e,t,n){var r=ie(n,t.params,'aliased route with path "'+n+'"'),o=c({_normalized:!0,path:r});if(o){var i=o.matched,a=i[i.length-1];return t.params=o.params,d(a,t)}return d(null,t)}function d(e,n,r){return e&&e.redirect?u(e,r||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=i({},e),e.components={default:{name:e.meta.name+"-"+n.params.__id__,render:e.components["default"].render}})),m(e,n,r,t))}return{match:c,addRoutes:s}}function fe(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=e.keys[o-1],s="string"===typeof r[o]?decodeURIComponent(r[o]):r[o];a&&(n[a.name||"pathMatch"]=s)}return!0}function he(e,t){return x(e,t.parent?t.parent.path:"/",!0)}var pe=Object.create(null);function ge(e){window.history.replaceState({key:Ee(),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&&Oe(e.state.key)}))}function ve(e,t,n,r){if(e.app){var o=e.options.scrollBehavior;o&&e.app.$nextTick((function(){var i=_e(),a=o.call(e,t,n,r?i:null);a&&("function"===typeof a.then?a.then((function(e){we(e,i)})).catch((function(e){0})):we(a,i))}))}}function me(){var e=Ee();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function _e(){var e=Ee();if(e)return pe[e]}function ye(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),o=e.getBoundingClientRect();return{x:o.left-r.left-t.x,y:o.top-r.top-t.y}}function be(e){return ke(e.x)||ke(e.y)}function Me(e){return{x:ke(e.x)?e.x:window.pageXOffset,y:ke(e.y)?e.y:window.pageYOffset}}function Se(e){return{x:ke(e.x)?e.x:0,y:ke(e.y)?e.y:0}}function ke(e){return"number"===typeof e}function we(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=document.querySelector(e.selector);if(r){var o=e.offset&&"object"===typeof e.offset?e.offset:{};o=Se(o),t=ye(r,o)}else be(e)&&(t=Me(e))}else n&&be(e)&&(t=Me(e));t&&window.scrollTo(t.x,t.y)}var Ce=L&&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=L&&window.performance&&window.performance.now?window.performance:Date,Ie=Ae();function Ae(){return Te.now().toFixed(3)}function Ee(){return Ie}function Oe(e){Ie=e}function De(e,t,n){me();var r=window.history;try{n?r.replaceState({id:t,key:Ie},"",e):(Ie=Ae(),r.pushState({id:t,key:Ie},"",e))}catch(o){window.location[n?"replace":"assign"](e)}}function Ne(e,t){De(e,t,!0)}function Le(e,t,n){var r=function(o){o>=e.length?n():e[o]?t(e[o],(function(){r(o+1)})):r(o+1)};r(0)}function xe(e){return function(t,n,r){var i=!1,a=0,s=null;Re(e,(function(e,t,n,c){if("function"===typeof e&&void 0===e.cid){i=!0,a++;var u,l=Fe((function(t){Ue(t)&&(t=t.default),e.resolved="function"===typeof t?t:T.extend(t),n.components[c]=t,a--,a<=0&&r()})),d=Fe((function(e){var t="Failed to resolve async component "+c+": "+e;s||(s=o(e)?e:new Error(t),r(s))}));try{u=e(l,d)}catch(h){d(h)}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)}}})),i||r()}}function Re(e,t){return Pe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Pe(e){return Array.prototype.concat.apply([],e)}var Ge="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ue(e){return e.__esModule||Ge&&"Module"===e[Symbol.toStringTag]}function Fe(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var je=function(e,t){this.router=e,this.base=$e(t),this.current=y,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function $e(e){if(!e)if(L){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,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function Be(e,t,n,r){var o=Re(e,(function(e,r,o,i){var a=Ve(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,o,i)})):n(a,r,o,i)}));return Pe(r?o.reverse():o)}function Ve(e,t){return"function"!==typeof e&&(e=T.extend(e)),e.options[t]}function He(e){return Be(e,"beforeRouteLeave",ze,!0)}function We(e){return Be(e,"beforeRouteUpdate",ze)}function ze(e,t){if(t)return function(){return e.apply(t,arguments)}}function Ke(e,t,n){return Be(e,"beforeRouteEnter",(function(e,r,o,i){return Ye(e,o,i,t,n)}))}function Ye(e,t,n,r,o){return function(i,a,s){return e(i,a,(function(e){s(e),"function"===typeof e&&r.push((function(){Xe(e,t.instances,n,o)}))}))}}function Xe(e,t,n,r){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):r()&&setTimeout((function(){Xe(e,t,n,r)}),16)}je.prototype.listen=function(e){this.cb=e},je.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},je.prototype.onError=function(e){this.errorCbs.push(e)},je.prototype.transitionTo=function(e,t,n){var r=this,o=this.router.match(e,this.current);this.confirmTransition(o,(function(){r.updateRoute(o),t&&t(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(o)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)})))}))},je.prototype.confirmTransition=function(e,t,n){var i=this,a=this.current,s=function(e){o(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):(r(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)},c=qe(this.current.matched,e.matched),u=c.updated,l=c.deactivated,d=c.activated,f=[].concat(He(l),this.router.beforeHooks,We(u),d.map((function(e){return e.beforeEnter})),xe(d));this.pending=e;var h=function(t,n){if(i.pending!==e)return s();try{t(e,a,(function(e){!1===e||o(e)?(i.ensureURL(!0),s(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(s(),"object"===typeof e&&e.replace?i.replace(e):i.push(e)):n(e)}))}catch(r){s(r)}};Le(f,h,(function(){var n=[],r=function(){return i.current===e},o=Ke(d,n,r),a=o.concat(i.router.resolveHooks);Le(a,h,(function(){if(i.pending!==e)return s();i.pending=null,t(e),i.router.app&&i.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},je.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 Je=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,r=Ce&&n;r&&ge(t);var o=Qe(this.base);window.addEventListener("popstate",(function(n){var i=e.current,a=Qe(e.base);if(e.current!==y||a!==o){var s=n.state&&n.state.id;if(!s)return window.location.reload();e.transitionTo({path:a,params:{__id__:s}},(function(e){r&&ve(t,e,i,!0)}))}}))},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=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 i=this,a=i.current;this.transitionTo(e,(function(n){De(P(r.base+n.fullPath),e.params.__id__),ve(r.router,n,a,!1),t&&t(n)}),n)},t.prototype.replace=function(e,t,n){var r=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,i=o.current;this.transitionTo(e,(function(n){Ne(P(r.base+n.fullPath),e.params.__id__),ve(r.router,n,i,!1),t&&t(n)}),n)},t.prototype.ensureURL=function(e){if(Qe(this.base)!==this.current.fullPath){var t=P(this.base+this.current.fullPath),n=this.current.params.__id__;e?De(t,n):Ne(t,n)}},t.prototype.getCurrentLocation=function(){return{path:Qe(this.base),params:{__id__:++this.router.id}}},t}(je);function Qe(e){var t=decodeURI(window.location.pathname);return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+g(h(window.location.search))+window.location.hash}var Ze=function(e){function t(t,n,r){e.call(this,t,n),r&&et(this.base)||tt()}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,r=Ce&&n;r&&ge(t),window.addEventListener(Ce?"popstate":"hashchange",(function(t){var n=e.current;if(tt()){var o=t.state&&t.state.id;if(!o)return window.location.reload();e.transitionTo({path:nt(),params:{__id__:o}},(function(t){r&&ve(e.router,t,n,!0),Ce||it(t.fullPath,t.params.__id__)}))}}))},t.prototype.push=function(e,t,n){var r=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 i=this,a=i.current,s=this.router.id;this.transitionTo(e,(function(e){ot(e.fullPath,s),ve(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=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,i=o.current,a=this.router.id;this.transitionTo(e,(function(e){it(e.fullPath,a),ve(r.router,e,i,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;nt()!==t&&(e?ot(t,this.current.params.__id__):it(t,this.current.params.__id__))},t.prototype.getCurrentLocation=function(){return{path:nt(),params:{__id__:++this.router.id}}},t}(je);function et(e){var t=Qe(e);if(!/^\/#/.test(t))return window.location.replace(P(e+"/#"+t)),!0}function tt(){var e=nt();return"/"===e.charAt(0)||(it("/"+e),!1)}function nt(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":decodeURI(e.slice(t+1))}function rt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function ot(e,t){Ce?De(rt(e),t):window.location.hash=e}function it(e,t){Ce?Ne(rt(e),t):window.location.replace(rt(e))}var at=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 r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.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 r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(je),st=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=de(e.routes||[],this),this.id=e.id||1,this.minId=e.id||1;var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ce&&!1!==e.fallback,this.fallback&&(t="hash"),L||(t="abstract"),this.mode=t,t){case"history":this.history=new Je(this,e.base);break;case"hash":this.history=new Ze(this,e.base,this.fallback);break;case"abstract":this.history=new at(this,e.base);break;default:0}},ct={currentRoute:{configurable:!0}};function ut(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function lt(e,t,n){var r="hash"===n?"#"+t:t;return e?P(e+"/"+r):r}st.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},ct.currentRoute.get=function(){return this.history&&this.history.current},st.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof Je){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}else if(n instanceof Ze){var o=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),o,o)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},st.prototype.beforeEach=function(e){return ut(this.beforeHooks,e)},st.prototype.beforeResolve=function(e){return ut(this.resolveHooks,e)},st.prototype.afterEach=function(e){return ut(this.afterHooks,e)},st.prototype.onReady=function(e,t){this.history.onReady(e,t)},st.prototype.onError=function(e){this.history.onError(e)},st.prototype.push=function(e,t,n){this.history.push(e,t,n)},st.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},st.prototype.go=function(e){this.history.go(e)},st.prototype.back=function(){this.go(-1)},st.prototype.forward=function(){this.go(1)},st.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]}))}))):[]},st.prototype.resolve=function(e,t,n){var r=le(e,t||this.history.current,n,this),o=this.match(r,t),i=o.redirectedFrom||o.fullPath,a=this.history.base,s=lt(a,i,this.mode);return{location:r,route:o,href:s,normalizedTo:r,resolved:o}},st.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==y&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(st.prototype,ct),st.install=N,st.version="3.0.1",t["default"]=st},a975:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").every,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9e3:function(e,t,n){"use strict";var r=n("83ab"),o=n("da84"),i=n("94ca"),a=n("6eeb"),s=n("5135"),c=n("c6b6"),u=n("7156"),l=n("c04e"),d=n("d039"),f=n("7c73"),h=n("241c").f,p=n("06cf").f,g=n("9bf2").f,v=n("58a8").trim,m="Number",_=o[m],y=_.prototype,b=c(f(y))==m,M=function(e){var t,n,r,o,i,a,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(u=v(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:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(i=u.slice(2),a=i.length,s=0;s<a;s++)if(c=i.charCodeAt(s),c<48||c>o)return NaN;return parseInt(i,r)}return+u};if(i(m,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var S,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(b?d((function(){y.valueOf.call(n)})):c(n)!=m)?u(new _(M(t)),n,k):M(t)},w=r?h(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;w.length>C;C++)s(_,S=w[C])&&!s(k,S)&&g(k,S,p(_,S));k.prototype=y,y.constructor=k,a(o,m,k)}},aa82:function(e,t,n){"use strict";n("c975"),n("a434"),n("d3b7");var r=n("1cb4");function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e,t=new o((function(t){e=t}));return{token:t,cancel:e}},e.exports=o},ab13:function(e,t,n){var r=n("b622"),o=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(r){}}return!1}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},acac:function(e,t,n){"use strict";var r=n("e2cc"),o=n("f183").getWeakData,i=n("825a"),a=n("861d"),s=n("19aa"),c=n("2266"),u=n("b727"),l=n("5135"),d=n("69f3"),f=d.set,h=d.getterFor,p=u.find,g=u.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},y=function(e,t){return p(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,r){s(e,d,t),f(e,{type:t,id:v++,frozen:void 0}),void 0!=r&&c(r,e[u],e,n)})),p=h(t),g=function(e,t,n){var r=p(e),a=o(i(t),!0);return!0===a?m(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=o(e);return!0===n?m(t)["delete"](e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=o(e);return!0===n?m(t).has(e):n&&l(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=o(e);return!0===n?m(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 r=n("23e7"),o=n("7e12");r({global:!0,forced:parseFloat!=o},{parseFloat:o})},ace4:function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("621a"),a=n("825a"),s=n("23cb"),c=n("50c4"),u=n("4840"),l=i.ArrayBuffer,d=i.DataView,f=l.prototype.slice,h=o((function(){return!new l(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:h},{slice:function(e,t){if(void 0!==f&&void 0===t)return f.call(a(this),e);var n=a(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),i=new(u(this,l))(c(o-r)),h=new d(this),p=new d(i),g=0;while(r<o)p.setUint8(g++,h.getUint8(r++));return i}})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(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 r(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=r},adf7:function(e,t,n){"use strict";n("d3b7"),n("3ca3"),n("ddb0");var r=n("082e"),o=n("1030"),i=n("b79e"),a=n("4793"),s=n("51a2");function c(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n.create=function(t){return c(a(e,t))},n}var u=c(s);u.Axios=i,u.Cancel=n("1cb4"),u.CancelToken=n("aa82"),u.isCancel=n("8b34"),u.VERSION=n("1649").version,u.all=function(e){return Promise.all(e)},u.spread=n("5932"),u.isAxiosError=n("5feb"),e.exports=u,e.exports.default=u},ae40:function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("5135"),a=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var n=[][e],u=!!i(t,"ACCESSORS")&&t.ACCESSORS,l=i(t,0)?t[0]:c,d=i(t,1)?t[1]:void 0;return s[e]=!!n&&!o((function(){if(u&&!r)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 r,o,i,a=n("e163"),s=n("9112"),c=n("5135"),u=n("b622"),l=n("c430"),d=u("iterator"),f=!1,h=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=a(a(i)),o!==Object.prototype&&(r=o)):f=!0),void 0==r&&(r={}),l||c(r,d)||s(r,d,h),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},af26:function(e,t,n){"use strict";(function(t){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("4ec9"),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 r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}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}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(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&&l(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(){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 f(e,t,n){return(f=d()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(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,r)}function r(){return f(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)})(e)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(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?g(e):t}function m(e){return function(){var t,n=u(e);if(d()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return v(this,t)}}function _(e,t){return b(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||S(e,t)||w()}function y(e){return function(e){if(Array.isArray(e))return k(e)}(e)||M(e)||S(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 b(e){if(Array.isArray(e))return e}function M(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function S(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,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(){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 C(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=S(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 r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}var T={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",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"},I={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"},A=function(){function e(){n(this,e),this.cache=[],this.options=null}return o(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}(),E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function O(e,t){return e(t={exports:{}},t.exports),t.exports}var D=O((function(e,t){var n,r,o,i,a,s,c,u,l,d,f,h,p,g,v,m,_,y;e.exports=(n="function"==typeof Promise,r="object"==typeof self?self:E,o="undefined"!=typeof Symbol,i="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,h=i&&"function"==typeof Map.prototype.entries,p=f&&Object.getPrototypeOf((new Set).entries()),g=h&&Object.getPrototypeOf((new Map).entries()),v=l&&"function"==typeof Array.prototype[Symbol.iterator],m=v&&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===r)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":i&&l===Map.prototype?"Map":c&&l===WeakSet.prototype?"WeakSet":s&&l===WeakMap.prototype?"WeakMap":u&&l===DataView.prototype?"DataView":i&&l===g?"Map Iterator":a&&l===p?"Set Iterator":v&&l===m?"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,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;n(this,e),this.high=t,this.low=r}return o(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}(),L={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",STAT:"https://api.im.qcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",STAT:"https://apisgp.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",STAT:"https://apiskr.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",STAT:"https://apiger.im.qcloud.com"},IND:{DEFAULT:"wss://wssind.im.qcloud.com",STAT:"https://apiind.im.qcloud.com"}}},x={WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,UNI_NATIVE_APP:15},R="1.7.3",P=537048168,G="CHINA",U="OVERSEA",F="SINGAPORE",j="KOREA",$="GERMANY",q="IND",B={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=L.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",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()};B.HOST.setCurrent(G);var H,W,z,K,Y="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),X="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),J="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),Q="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),Z="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),ee="undefined"!=typeof uni&&"undefined"==typeof window,te=Y||X||J||Q||Z||ee,ne=("undefined"!=typeof uni||"undefined"!=typeof window)&&!te,re=X?qq:J?tt:Q?swan:Z?my:Y?wx:ee?uni:{},oe=(H="WEB",ve?H="WEB":X?H="QQ_MP":J?H="TT_MP":Q?H="BAIDU_MP":Z?H="ALI_MP":Y?H="WX_MP":ee&&(H="UNI_NATIVE_APP"),x[H]),ie=ne&&window&&window.navigator&&window.navigator.userAgent||"",ae=/AppleWebKit\/([\d.]+)/i.exec(ie),se=(ae&&parseFloat(ae.pop()),/iPad/i.test(ie)),ce=/iPhone/i.test(ie)&&!se,ue=/iPod/i.test(ie),le=ce||se||ue,de=((W=ie.match(/OS (\d+)_/i))&&W[1]&&W[1],/Android/i.test(ie)),fe=(function(){var e=ie.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),de&&/webkit/i.test(ie),/Firefox/i.test(ie),/Edge/i.test(ie)),he=(!fe&&/Chrome/i.test(ie),function(){var e=ie.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),/MSIE/.test(ie)),pe=(/MSIE\s8\.0/.test(ie),function(){var e=/MSIE\s(\d+)\.\d/.exec(ie),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(ie)&&/rv:11.0/.test(ie)&&(t=11),t}()),ge=(/Safari/i.test(ie),/TBS\/\d+/i.test(ie)),ve=(function(){var e=ie.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}(),!ge&&/MQQBrowser\/\d+/i.test(ie),!ge&&/ QQBrowser\/\d+/i.test(ie),/(micromessenger|webbrowser)/i.test(ie)),me=/Windows/i.test(ie),_e=/MAC OS X/i.test(ie),ye=(/MicroMessenger/i.test(ie),ne&&"undefined"!=typeof Worker),be="undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};z="undefined"!=typeof console?console:void 0!==be&&be.console?be.console:"undefined"!=typeof window&&window.console?window.console:{};for(var Me=function(){},Se=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],ke=Se.length;ke--;)K=Se[ke],console[K]||(z[K]=Me);z.methods=Se;var we=z,Ce=0,Te=function(){return(new Date).getTime()+Ce},Ie=function(){Ce=0},Ae=function(){return Math.floor(Te()/1e3)},Ee=0,Oe=new Map;function De(){var e,t=((e=new Date).setTime(Te()),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 Ne={arguments2String:function(e){var t;if(1===e.length)t=De()+e[0];else{t=De();for(var n=0,r=e.length;n<r;n++)Ke(e[n])?Xe(e[n])?t+=rt(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug:function(){if(Ee<=-1){var e=this.arguments2String(arguments);we.debug(e)}},log:function(){if(Ee<=0){var e=this.arguments2String(arguments);we.log(e)}},info:function(){if(Ee<=1){var e=this.arguments2String(arguments);we.info(e)}},warn:function(){if(Ee<=2){var e=this.arguments2String(arguments);we.warn(e)}},error:function(){if(Ee<=3){var e=this.arguments2String(arguments);we.error(e)}},time:function(e){Oe.set(e,et.now())},timeEnd:function(e){if(Oe.has(e)){var t=et.now()-Oe.get(e);return Oe.delete(e),t}return we.warn("未找到对应label: ".concat(e,", 请在调用 logger.timeEnd 前,调用 logger.time")),0},setLevel:function(e){e<4&&we.log(De()+"set level from "+Ee+" to "+e),Ee=e},getLevel:function(){return Ee}},Le={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},xe={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"},Re={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},Pe={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},Ge={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},Ue="JoinedSuccess",Fe="WaitAdminApproval",je="@TGS#_",$e=function(e){return"file"===Je(e)},qe=function(t){return null!==t&&("number"==typeof t&&!isNaN(t-0)||"object"===e(t)&&t.constructor===Number)},Be=function(e){return"string"==typeof e},Ve=function(t){return null!==t&&"object"===e(t)},He=function(t){if("object"!==e(t)||null===t)return!1;var n=Object.getPrototypeOf(t);if(null===n)return!0;for(var r=n;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return n===r},We=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===Je(e)},ze=function(e){return void 0===e},Ke=function(e){return We(e)||Ve(e)},Ye=function(e){return"function"==typeof e},Xe=function(e){return e instanceof Error},Je=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},Qe=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)},Ze=0;Date.now||(Date.now=function(){return(new Date).getTime()});var et={now:function(){0===Ze&&(Ze=Date.now()-1);var e=Date.now()-Ze;return e>4294967295?(Ze+=4294967295,Date.now()-Ze):e},utc:function(){return Math.round(Date.now()/1e3)}},nt=function e(t,n,r,o){if(!Ke(t)||!Ke(n))return 0;for(var i,a=0,s=Object.keys(n),c=0,u=s.length;c<u;c++)if(i=s[c],!(ze(n[i])||r&&r.includes(i)))if(Ke(t[i])&&Ke(n[i]))a+=e(t[i],n[i],r,o);else{if(o&&o.includes(n[i]))continue;t[i]!==n[i]&&(t[i]=n[i],a+=1)}return a},rt=function(e){return JSON.stringify(e,["message","code"])},ot=function(e){if(0===e.length)return 0;for(var t=0,n=0,r="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===r?3:2;return n},it=function(e){var t=e||99999999;return Math.round(Math.random()*t)},at="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",st=at.length,ct=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},ut={},lt=function(){if(te)return"https:";if(ne&&"undefined"==typeof window)return"https:";var e=window.location.protocol;return["http:","https:"].indexOf(e)<0&&(e="http:"),e},dt=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},ft=function t(n){if(0===Object.getOwnPropertyNames(n).length)return Object.create(null);var r=Array.isArray(n)?[]:Object.create(null),o="";for(var i in n)null!==n[i]?void 0!==n[i]?(o=e(n[i]),["string","number","function","boolean"].indexOf(o)>=0?r[i]=n[i]:r[i]=t(n[i])):r[i]=void 0:r[i]=null;return r};function ht(e,t){We(e)&&We(t)?t.forEach((function(t){var n=t.key,r=t.value,o=e.find((function(e){return e.key===n}));o?o.value=r:e.push({key:n,value:r})})):Ne.warn("updateCustomField target 或 source 不是数组,忽略此次更新。")}var pt=function(e){return e===I.GRP_PUBLIC},gt=function(e){return e===I.GRP_AVCHATROOM},vt=function(e){var t=e.type,n=e.groupID;return t===I.GRP_COMMUNITY||"".concat(n).startsWith(je)},mt=function(e){return Be(e)&&e.slice(0,3)===I.CONV_C2C},_t=function(e){return Be(e)&&e.slice(0,5)===I.CONV_GROUP},yt=function(e){return Be(e)&&e===I.CONV_SYSTEM};function bt(e,t){var n={};return Object.keys(e).forEach((function(r){n[r]=t(e[r],r)})),n}function Mt(e){return te?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})}})})):he&&9===pe?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var r=new Image;r.onload=function(){t({width:this.width,height:this.height}),r=null},r.onerror=function(){t({width:0,height:0}),r=null},r.src=e}))}function St(){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 kt(){var e="unknown";if(_e&&(e="mac"),me&&(e="windows"),le&&(e="ios"),de&&(e="android"),te)try{var t=re.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(r){}return e}function wt(e){var t=e.originUrl,n=void 0===t?void 0:t,r=e.originWidth,o=e.originHeight,i=e.min,a=void 0===i?198:i,s=parseInt(r),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 ze(n)?p(u,["url"]):u}function Ct(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 Tt(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function It(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function At(e,t){return e.includes(t)}function Et(e,t){return e.includes(t)}var Ot=Object.prototype.hasOwnProperty;function Dt(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(He(e)){for(var t in e)if(Ot.call(e,t))return!1;return!0}return!("map"!==Je(e)&&!function(e){return"set"===Je(e)}(e)&&!$e(e))&&0===e.size}function Nt(e,t,n){if(void 0===t)return!0;var r=!0;if("object"===D(t).toLowerCase())Object.keys(t).forEach((function(o){var i=1===e.length?e[0][o]:void 0;r=!!Lt(i,t[o],n,o)&&r}));else if("array"===D(t).toLowerCase())for(var o=0;o<t.length;o++)r=!!Lt(e[o],t[o],n,t[o].name)&&r;if(r)return r;throw new Error("Params validate failed.")}function Lt(e,t,n,r){if(void 0===t)return!0;var o=!0;return t.required&&Dt(e)&&(we.error("TIM [".concat(n,'] Missing required params: "').concat(r,'".')),o=!1),Dt(e)||D(e).toLowerCase()===t.type.toLowerCase()||(we.error("TIM [".concat(n,'] Invalid params: type check failed for "').concat(r,'".Expected ').concat(t.type,".")),o=!1),t.validator&&!t.validator(e)&&(we.error("TIM [".concat(n,"] Invalid params: custom validator check failed for params.")),o=!1),o}var xt,Rt={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},Pt={NOT_START:"notStart",PENDING:"pengding",RESOLVED:"resolved",REJECTED:"rejected"},Gt=function(e){return!!e&&(!!(mt(e)||_t(e)||yt(e))||(console.warn("非法的会话 ID:".concat(e,"。会话 ID 组成方式:C2C + userID(单聊)GROUP + groupID(群聊)@TIM#SYSTEM(系统通知会话)")),!1))},Ut="请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#",Ft=function(e){return e.param?"".concat(e.api," ").concat(e.param," ").concat(e.desc,"。").concat(Ut).concat(e.api):"".concat(e.api," ").concat(e.desc,"。").concat(Ut).concat(e.api)},jt={type:"String",required:!0},$t={type:"Array",required:!0},qt={type:"Object",required:!0},Bt={login:{userID:jt,userSig:jt},addToBlacklist:{userIDList:$t},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Ft({api:"on",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Ft({api:"on",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("on 接口的 handler 参数推荐使用具名函数。具名函数可以使用 off 接口取消订阅,匿名函数无法取消订阅。"),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Ft({api:"once",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Ft({api:"once",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("once 接口的 handler 参数推荐使用具名函数。"),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Ft({api:"off",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Ft({api:"off",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("off 接口无法为匿名函数取消监听事件。"),!0)}}],sendMessage:[s({name:"message"},qt)],getMessageList:{conversationID:s({},jt,{validator:function(e){return Gt(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!ze(e)&&!/^[1-9][0-9]*$/.test(e))||(console.warn(Ft({api:"getMessageList",param:"count",desc:"必须为正整数"})),!1)}}},setMessageRead:{conversationID:s({},jt,{validator:function(e){return Gt(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[I.READ_ALL_C2C_MSG,I.READ_ALL_GROUP_MSG,I.READ_ALL_MSG].indexOf(e)||(console.warn(Ft({api:"setAllMessageRead",param:"scope",desc:"取值必须为 TIM.TYPES.READ_ALL_C2C_MSG, TIM.TYPES.READ_ALL_GROUP_MSG 或 TIM.TYPES.READ_ALL_MSG"})),!1)}}},getConversationProfile:[s({name:"conversationID"},jt,{validator:function(e){return Gt(e)}})],deleteConversation:[s({name:"conversationID"},jt,{validator:function(e){return Gt(e)}})],pinConversation:{conversationID:s({},jt,{validator:function(e){return Gt(e)}}),isPinned:s({},{type:"Boolean",required:!0})},getConversationList:[{name:"options",type:"Array",validator:function(e){return!!ze(e)||0!==e.length||(console.warn(Ft({api:"getConversationList",desc:"获取指定会话时不能传入空数组"})),!1)}}],getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:jt,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:$t},createGroup:{name:jt},joinGroup:{groupID:jt,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[s({name:"groupID"},jt)],handleApplication:{message:qt,handleAction:jt,handleMessage:{type:"String"}},changeGroupOwner:{groupID:jt,newOwnerID:jt},updateGroupProfile:{groupID:jt,muteAllMembers:{type:"Boolean"}},dismissGroup:[s({name:"groupID"},jt)],searchGroupByID:[s({name:"groupID"},jt)],initGroupAttributes:{groupID:jt,groupAttributes:s({},qt,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!Be(e[n]))return console.warn(Ft({api:"initGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},setGroupAttributes:{groupID:jt,groupAttributes:s({},qt,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!Be(e[n]))return console.warn(Ft({api:"setGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},deleteGroupAttributes:{groupID:jt,keyList:{type:"Array",validator:function(e){if(ze(e))return console.warn(Ft({api:"deleteGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!We(e))return!1;if(!Dt(e)){var t=!0;return e.forEach((function(e){if(!Be(e))return console.warn(Ft({api:"deleteGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupAttributes:{groupID:jt,keyList:{type:"Array",validator:function(e){if(ze(e))return console.warn(Ft({api:"getGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!We(e))return!1;if(!Dt(e)){var t=!0;return e.forEach((function(e){if(!Be(e))return console.warn(Ft({api:"getGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupMemberList:{groupID:jt,count:{type:"Number"}},getGroupMemberProfile:{groupID:jt,userIDList:$t,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:jt,userIDList:$t},setGroupMemberRole:{groupID:jt,userID:jt,role:jt},setGroupMemberMuteTime:{groupID:jt,userID:jt,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:jt,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return Be(e)?(e.length,!0):(console.warn(Ft({api:"setGroupMemberNameCard",param:"nameCard",desc:"类型必须为 String"})),!1)}}},setGroupMemberCustomField:{groupID:jt,userID:{type:"String"},memberCustomField:$t},deleteGroupMember:{groupID:jt},createTextMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){return He(e)?Be(e.text)?0!==e.text.length||(console.warn(Ft({api:"createTextMessage",desc:"消息内容不能为空"})),!1):(console.warn(Ft({api:"createTextMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createTextMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createTextAtMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){return He(e)?Be(e.text)?0===e.text.length?(console.warn(Ft({api:"createTextAtMessage",desc:"消息内容不能为空"})),!1):!(e.atUserList&&!We(e.atUserList))||(console.warn(Ft({api:"createTextAtMessage",desc:"payload.atUserList 类型必须为数组"})),!1):(console.warn(Ft({api:"createTextAtMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createTextAtMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createCustomMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){return He(e)?e.data&&!Be(e.data)?(console.warn(Ft({api:"createCustomMessage",param:"payload.data",desc:"类型必须为 String"})),!1):e.description&&!Be(e.description)?(console.warn(Ft({api:"createCustomMessage",param:"payload.description",desc:"类型必须为 String"})),!1):!(e.extension&&!Be(e.extension))||(console.warn(Ft({api:"createCustomMessage",param:"payload.extension",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createCustomMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createImageMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){if(!He(e))return console.warn(Ft({api:"createImageMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(ze(e.file))return console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ne){if(!(e.file instanceof HTMLInputElement||$e(e.file)))return He(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Ft({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createImageMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}})},createAudioMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){return!!He(e)||(console.warn(Ft({api:"createAudioMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createAudioMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createVideoMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){if(!He(e))return console.warn(Ft({api:"createVideoMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(ze(e.file))return console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ne){if(!(e.file instanceof HTMLInputElement||$e(e.file)))return He(e.file)&&"undefined"!=typeof uni?!!$e(e.file.tempFile)||(console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Ft({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createVideoMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createFaceMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){return He(e)?qe(e.index)?!!Be(e.data)||(console.warn(Ft({api:"createFaceMessage",param:"payload.data",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createFaceMessage",param:"payload.index",desc:"类型必须为 Number"})),!1):(console.warn(Ft({api:"createFaceMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createFileMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){if(!He(e))return console.warn(Ft({api:"createFileMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(ze(e.file))return console.warn(Ft({api:"createFileMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ne){if(!(e.file instanceof HTMLInputElement||$e(e.file)))return He(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Ft({api:"createFileMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Ft({api:"createFileMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Ft({api:"createFileMessage",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return ze(e)&&console.warn(Ft({api:"createFileMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createLocationMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){return He(e)?Be(e.description)?qe(e.longitude)?!!qe(e.latitude)||(console.warn(Ft({api:"createLocationMessage",param:"payload.latitude",desc:"类型必须为 Number"})),!1):(console.warn(Ft({api:"createLocationMessage",param:"payload.longitude",desc:"类型必须为 Number"})),!1):(console.warn(Ft({api:"createLocationMessage",param:"payload.description",desc:"类型必须为 String"})),!1):(console.warn(Ft({api:"createLocationMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createMergerMessage:{to:jt,conversationType:jt,payload:s({},qt,{validator:function(e){if(Dt(e.messageList))return console.warn(Ft({api:"createMergerMessage",desc:"不能为空数组"})),!1;if(Dt(e.compatibleText))return console.warn(Ft({api:"createMergerMessage",desc:"类型必须为 String,且不能为空"})),!1;var t=!1;return e.messageList.forEach((function(e){e.status===Rt.FAIL&&(t=!0)})),!t||(console.warn(Ft({api:"createMergerMessage",desc:"不支持合并已发送失败的消息"})),!1)}})},revokeMessage:[s({name:"message"},qt,{validator:function(e){return Dt(e)?(console.warn("revokeMessage 请传入消息(Message)实例"),!1):e.conversationType===I.CONV_SYSTEM?(console.warn("revokeMessage 不能撤回系统会话消息,只能撤回单聊消息或群消息"),!1):!0!==e.isRevoked||(console.warn("revokeMessage 消息已经被撤回,请勿重复操作"),!1)}})],deleteMessage:[s({name:"messageList"},$t,{validator:function(e){return!Dt(e)||(console.warn(Ft({api:"deleteMessage",param:"messageList",desc:"不能为空数组"})),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return We(e)?(0===e.length&&console.warn(Ft({api:"getUserProfile",param:"userIDList",desc:"不能为空数组"})),!0):(console.warn(Ft({api:"getUserProfile",param:"userIDList",desc:"必须为数组"})),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!ze(e)||!!We(e)||(console.warn(Ft({api:"updateMyProfile",param:"profileCustomField",desc:"必须为数组"})),!1)}}},addFriend:{to:jt,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(console.warn(Ft({api:"addFriend",desc:"加好友来源字段的关键字长度不得超过8字节"})),!1):(console.warn(Ft({api:"addFriend",desc:"加好友来源字段的前缀必须是:AddSource_Type_"})),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(Be(e)&&e.length>96)||(console.warn(Ft({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}}},deleteFriend:{userIDList:$t},checkFriend:{userIDList:$t},getFriendProfile:{userIDList:$t},updateFriend:{userID:jt,remark:{type:"String",required:!1,validator:function(e){return!(Be(e)&&e.length>96)||(console.warn(Ft({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!We(e))return console.warn(Ft({api:"updateFriend",param:"friendCustomField",desc:"必须为数组"})),!1;var t=!0;return e.forEach((function(e){return Be(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?Be(e.value)?e.value.length>8?(console.warn(Ft({api:"updateFriend",desc:"好友自定义字段的关键字长度不得超过8字节"})),t=!1):void 0:(console.warn(Ft({api:"updateFriend",desc:"类型必须为 String"})),t=!1):(console.warn(Ft({api:"updateFriend",desc:"好友自定义字段的前缀必须是 Tag_SNS_Custom"})),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:jt},refuseFriendApplication:{userID:jt},deleteFriendApplication:{userID:jt},createFriendGroup:{name:jt},deleteFriendGroup:{name:jt},addToFriendGroup:{name:jt,userIDList:$t},removeFromFriendGroup:{name:jt,userIDList:$t},renameFriendGroup:{oldName:jt,newName:jt}},Vt={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",getMessageList:"getMessageList",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"},Ht="sign",Wt="message",zt="user",Kt="c2c",Yt="group",Xt="sns",Jt="groupMember",Qt="conversation",Zt="context",en="storage",tn="eventStat",nn="netMonitor",rn="bigDataChannel",on="upload",an="plugin",sn="syncUnreadMessage",cn="session",un="channel",ln="message_loss_detection",dn="cloudControl",fn="workerTimer",hn="pullGroupMessage",pn="qualityStat",gn="commercialConfig",vn=function(){function e(t){n(this,e),this._moduleManager=t,this._className=""}return o(e,[{key:"isLoggedIn",value:function(){return this._moduleManager.getModule(Zt).isLoggedIn()}},{key:"isOversea",value:function(){return this._moduleManager.getModule(Zt).isOversea()}},{key:"getMyUserID",value:function(){return this._moduleManager.getModule(Zt).getUserID()}},{key:"getModule",value:function(e){return this._moduleManager.getModule(e)}},{key:"getPlatform",value:function(){return oe}},{key:"getNetworkType",value:function(){return this._moduleManager.getModule(nn).getNetworkType()}},{key:"probeNetwork",value:function(){return this._moduleManager.getModule(nn).probe()}},{key:"getCloudConfig",value:function(e){return this._moduleManager.getModule(dn).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(Zt).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!Dt(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent(T.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return Dt(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._moduleManager.getModule(cn).request(e)}},{key:"canIUse",value:function(e){return this._moduleManager.getModule(gn).hasPurchasedFeature(e)}}]),e}(),mn="wslogin",_n="wslogout",yn="wshello",bn="KickOther",Mn="getmsg",Sn="authkey",kn="sendmsg",wn="send_group_msg",Cn="portrait_get_all",Tn="portrait_set",In="black_list_get",An="black_list_add",En="black_list_delete",On="msgwithdraw",Dn="msgreaded",Nn="set_c2c_peer_mute_notifications",Ln="get_c2c_peer_mute_notifications",xn="getroammsg",Rn="get_peer_read_time",Pn="delete_c2c_msg_ramble",Gn="page_get",Un="get",Fn="delete",jn="top",$n="deletemsg",qn="get_joined_group_list",Bn="get_group_self_member_info",Vn="create_group",Hn="destroy_group",Wn="modify_group_base_info",zn="apply_join_group",Kn="apply_join_group_noauth",Yn="quit_group",Xn="get_group_public_info",Jn="change_group_owner",Qn="handle_apply_join_group",Zn="handle_invite_join_group",er="group_msg_recall",tr="msg_read_report",nr="read_all_unread_msg",rr="group_msg_get",or="get_pendency",ir="deletemsg",ar="get_msg",sr="get_msg_noauth",cr="get_online_member_num",ur="delete_group_ramble_msg_by_seq",lr="set_group_attr",dr="modify_group_attr",fr="delete_group_attr",hr="clear_group_attr",pr="get_group_attr",gr="get_group_member_info",vr="get_specified_group_member_info",mr="add_group_member",_r="delete_group_member",yr="modify_group_member_info",br="cos",Mr="pre_sig",Sr="video_cover",kr="tim_web_report_v2",wr="alive",Cr="msg_push",Tr="multi_msg_push_ws",Ir="ws_msg_push_ack",Ar="stat_forceoffline",Er="save_relay_json_msg",Or="get_relay_json_msg",Dr="fetch_config",Nr="push_configv2",Lr="fetch_imsdk_purchase_bitsv2",xr="push_imsdk_purchase_bitsv2",Rr="notify2",Pr={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,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,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},Gr="无 SDKAppID",Ur="无 userID",Fr="无 userSig",jr="无 tinyID",$r="无 a2key",qr="用户未登录",Br="重复登录",Vr="未检测到 COS 上传插件",Hr="获取 COS 预签名 URL 失败",Wr="消息发送失败",zr="需要 Message 的实例",Kr='Message.conversationType 只能为 "C2C" 或 "GROUP"',Yr="无法发送空文件",Xr="回调函数运行时遇到错误,请检查接入侧代码",Jr="消息撤回失败",Qr="消息删除失败",Zr="设置所有未读消息为已读处理失败",eo="社群不支持消息发送控制选项",to="请先选择一个图片",no="只允许上传 jpg png jpeg gif bmp image webp 格式的图片",ro="图片大小超过20M,无法发送",oo="语音上传失败",io="语音大小大于20M,无法发送",ao="视频上传失败",so="视频大小超过100M,无法发送",co="只允许上传 mp4 格式的视频",uo="文件上传失败",lo="请先选择一个文件",fo="文件大小超过100M,无法发送 ",ho="缺少必要的参数文件 URL",po="非合并消息",go="合并消息的 messageKey 无效",vo="下载合并消息失败",mo="选择的消息类型(如群提示消息)不可以转发",_o="社群不支持 @ 所有人",yo="没有找到相应的会话,请检查传入参数",bo="没有找到相应的用户或群组,请检查传入参数",Mo="未记录的会话类型",So="非法的群类型,请检查传入参数",ko="不能加入 Work 类型的群组",wo="群组 ID 非法,Public/Work/Meeting/AVChatRoom 类型群组不能以 @TGS#_ 为前缀,社群必须以 @TGS#_ 为前缀",Co="AVChatRoom 类型的群组不能转让群主",To="不能把群主转让给自己",Io="不能解散 Work 类型的群组",Ao="用户不在该群组内",Eo="加群失败,请检查传入参数或重试",Oo="AVChatRoom 类型的群不支持邀请群成员",Do="非 AVChatRoom 类型的群组不允许匿名加群,请先登录后再加群",No="不能在 AVChatRoom 类型的群组踢人",Lo="你不是群主,只有群主才有权限操作",xo="不能在 Work / AVChatRoom 类型的群中设置群成员身份",Ro="不合法的群成员身份,请检查传入参数",Po="不能设置自己的群成员身份,请检查传入参数",Go="不能将自己禁言,请检查传入参数",Uo="传入 updateMyProfile 接口的参数无效",Fo="updateMyProfile 无标配资料字段或自定义资料字段",jo="传入 addToBlacklist 接口的参数无效",$o="传入 removeFromBlacklist 接口的参数无效",qo="不能拉黑自己",Bo="网络错误",Vo="请求超时",Ho="未连接到网络",Wo="无效操作,如调用了未定义或者未实现的方法等",zo="无法找到协议",Ko="无法找到模块",Yo="接口需要 SDK 处于 ready 状态后才能调用",Xo="超出 SDK 频率控制",Jo="后台服务正忙,请稍后再试",Qo="networkRTT",Zo="messageE2EDelay",ei="sendMessageC2C",ti="sendMessageGroup",ni="sendMessageGroupAV",ri="sendMessageRichMedia",oi="cosUpload",ii="messageReceivedGroup",ai="messageReceivedGroupAVPush",si="messageReceivedGroupAVPull",ci=(i(xt={},Qo,2),i(xt,Zo,3),i(xt,ei,4),i(xt,ti,5),i(xt,ni,6),i(xt,ri,7),i(xt,ii,8),i(xt,ai,9),i(xt,si,10),i(xt,oi,11),xt),ui={info:4,warning:5,error:6},li={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},di={login:4},fi=function(){function t(e){n(this,t),this.eventType=di[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.framework="",this._sentFlag=!1,this._startts=Te()}return o(t,[{key:"updateTimeStamp",value:function(){this.timestamp=Te()}},{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=Te();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(Pr.NO_NETWORK),this.setMoreMessage(Ho)),this.setLevel("error")),this):(Ne.warn("SSOLogData.setError value not instanceof Error, please check!"),this)}},{key:"setCode",value:function(t){return ze(t)||this._sentFlag||("ECONNABORTED"===t&&(this.code=103),qe(t)?this.code=t:Ne.warn("SSOLogData.setCode value not a number, please check!",t,e(t))),this}},{key:"setMessage",value:function(e){return ze(e)||this._sentFlag||(qe(e)&&(this.message=e.toString()),Be(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return ze(e)||this._sentFlag||(this.level=ui[e]),this}},{key:"setMoreMessage",value:function(e){return Dt(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(ze(e))Ne.warn("SSOLogData.setNetworkType value is undefined, please check!");else{var t=li[e.toLowerCase()];ze(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setFramework",value:function(e){this.framework=e}}],[{key:"bindEventStatModule",value:function(e){t.prototype._eventStatModule=e}}]),t}(),hi="sdkConstruct",pi="sdkReady",gi="login",vi="logout",mi="kickedOut",_i="registerPlugin",yi="kickOther",bi="wsConnect",Mi="wsOnOpen",Si="wsOnClose",ki="wsOnError",wi="networkChange",Ci="getCosAuthKey",Ti="getCosPreSigUrl",Ii="getSnapshotInfo",Ai="upload",Ei="sendMessage",Oi="getC2CRoamingMessages",Di="getGroupRoamingMessages",Ni="revokeMessage",Li="deleteMessage",xi="setC2CMessageRead",Ri="setGroupMessageRead",Pi="emptyMessageBody",Gi="getPeerReadTime",Ui="uploadMergerMessage",Fi="downloadMergerMessage",ji="jsonParseError",$i="messageE2EDelayException",qi="getConversationList",Bi="getConversationProfile",Vi="deleteConversation",Hi="pinConversation",Wi="getConversationListInStorage",zi="syncConversationList",Ki="setAllMessageRead",Yi="createGroup",Xi="applyJoinGroup",Ji="quitGroup",Qi="searchGroupByID",Zi="changeGroupOwner",ea="handleGroupApplication",ta="handleGroupInvitation",na="setMessageRemindType",ra="dismissGroup",oa="updateGroupProfile",ia="getGroupList",aa="getGroupProfile",sa="getGroupListInStorage",ca="getGroupLastSequence",ua="getGroupMissingMessage",la="pagingGetGroupList",da="getGroupSimplifiedInfo",fa="joinWithoutAuth",ha="initGroupAttributes",pa="setGroupAttributes",ga="deleteGroupAttributes",va="getGroupAttributes",ma="getGroupMemberList",_a="getGroupMemberProfile",ya="addGroupMember",ba="deleteGroupMember",Ma="setGroupMemberMuteTime",Sa="setGroupMemberNameCard",ka="setGroupMemberRole",wa="setGroupMemberCustomField",Ca="getGroupOnlineMemberCount",Ta="longPollingAVError",Ia="messageLoss",Aa="messageStacked",Ea="getUserProfile",Oa="updateMyProfile",Da="getBlacklist",Na="addToBlacklist",La="removeFromBlacklist",xa="callbackFunctionError",Ra="fetchCloudControlConfig",Pa="pushedCloudControlConfig",Ga="fetchCommercialConfig",Ua="pushedCommercialConfig",Fa="error",ja="lastMessageNotExist",$a=function(){function e(t){n(this,e),this.type=I.MSG_TEXT,this.content={text:t.text||""}}return o(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),qa=function(){function e(t){n(this,e),this._imageMemoryURL="",te?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=I.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Le.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 o(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=it(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,r=null;t<=2;)r=ze(e)||ze(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(r)).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,r=0;r<n;r++)t=this.content.imageInfoArray[r],e[r].size&&(t.size=e[r].size),e[r].url&&t.setImageUrl(e[r].url),e[r].width&&(t.width=e[r].width),e[r].height&&(t.height=e[r].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",r=["http","https"],o=null,i=0;i<e;i++)this.content.imageInfoArray[i].url&&""!==(o=this.content.imageInfoArray[i]).imageUrl&&(n=o.imageUrl.slice(0,o.imageUrl.indexOf("://")+1),t=o.imageUrl.slice(o.imageUrl.indexOf("://")+1),r.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[i].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=Le[e.toUpperCase()]||Le.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,r=void 0===n?0:n,o=t.height,i=void 0===o?0:o;0!==r&&0!==i&&(Ct(e),Object.assign(e[2],wt({originWidth:r,originHeight:i,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),Ba=function(){function e(t){n(this,e),this.type=I.MSG_FACE,this.content=t||null}return o(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),Va=function(){function e(t){n(this,e),this.type=I.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 o(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}(),Ha={from:!0,groupID:!0,groupName:!0,to:!0},Wa=function(){function e(t){n(this,e),this.type=I.MSG_GRP_TIP,this.content={},this._initContent(t)}return o(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 r=t[n];Ha[r]&&(this.content.groupProfile[r]=e[r])}}},{key:"_updateMemberList",value:function(e){Dt(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}(),za={from:!0,groupID:!0,groupName:!0,to:!0},Ka=function(){function e(t){n(this,e),this.type=I.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return o(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 r=t[n];za[r]&&("groupName"===r?this.content.groupProfile.name=e[r]:this.content.groupProfile[r]=e[r])}}}]),e}(),Ya=function(){function e(t){n(this,e),this.type=I.MSG_FILE,this._percent=0;var r=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:t.url||"",uuid:t.uuid,fileName:r.name||"",fileSize:r.size||0}}return o(e,[{key:"_getFileInfo",value:function(e){if(!ze(e.fileName)&&!ze(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(ee){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(it(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}(),Xa=function(){function e(t){n(this,e),this.type=I.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return o(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}(),Ja=function(){function e(t){n(this,e),this.type=I.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 o(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,r=e.snapshotHeight;Dt(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),Dt(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),Dt(r)||(this.content.thumbHeight=this.content.snapshotHeight=Number(r))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),Qa=function(){function e(t){n(this,e),this.type=I.MSG_LOCATION;var r=t.description,o=t.longitude,i=t.latitude;this.content={description:r,longitude:o,latitude:i}}return o(e,[{key:"sendable",value:function(){return!0}}]),e}(),Za=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(I.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(I.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var r=t.elements[0].type,o=t.elements[0].content;this._patchRichMediaPayload(r,o),r===I.MSG_MERGER?this.messageBody.push({type:r,payload:new es(o).content}):this.messageBody.push({type:r,payload:o}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to)}}return o(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===I.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===I.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===I.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===I.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}}]),e}(),es=function(){function e(t){if(n(this,e),this.type=I.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var r=t.downloadKey,o=t.pbDownloadKey,i=t.title,a=t.abstractList,s=t.compatibleText,c=t.version;this.content.downloadKey=r,this.content.pbDownloadKey=o,this.content.title=i,this.content.abstractList=a,this.content.compatibleText=s,this.content.version=c||0}else if(Dt(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var u=t.messageList,l=t.title,d=t.abstractList,f=t.compatibleText,h=t.version,p=[];u.forEach((function(e){if(!Dt(e)){var t=new Za(e);p.push(t)}})),this.content.messageList=p,this.content.title=l,this.content.abstractList=d,this.content.compatibleText=f,this.content.version=h||0}Ne.debug("MergerElement.content:",this.content)}return o(e,[{key:"sendable",value:function(){return!Dt(this.content.messageList)||!Dt(this.content.downloadKey)}}]),e}(),ts={1:I.MSG_PRIORITY_HIGH,2:I.MSG_PRIORITY_NORMAL,3:I.MSG_PRIORITY_LOW,4:I.MSG_PRIORITY_LOWEST},ns=function(){function e(t){n(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||I.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:it(),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||Rt.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||0,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t)}return o(e,[{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){Be(e.nick)&&(this.nick=e.nick),Be(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;He(t)&&Be(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!==I.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(I.MSG_AT_ALL))})),We(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(I.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?Rt.SUCCESS:Rt.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID(e)}},{key:"isSendable",value:function(){return 0!==this._elements.length&&("function"!=typeof this._elements[0].sendable?(Ne.warn("".concat(this._elements[0].type,' need "boolean : sendable()" method')),!1):this._elements[0].sendable())}},{key:"_initTo",value:function(e){this.conversationType===I.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return Ne.error("autoIncrementIndex(string: key) need key parameter"),!1;if(void 0===ut[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),r="0".concat(t.getMinutes()).slice(-2),o="0".concat(t.getSeconds()).slice(-2);ut[e]=parseInt([n,r,o,"0001"].join("")),n=null,r=null,o=null,Ne.log("autoIncrementIndex start index:".concat(ut[e]))}return ut[e]++}(e)),0===this.sequence&&this.conversationType===I.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(e){var t=e===this.from?1:0,n=this.sequence>0?this.sequence:this.clientSequence;this.ID="".concat(this.conversationID,"-").concat(n,"-").concat(this.random,"-").concat(t)}},{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="",r=this.conversationType;r!==I.CONV_SYSTEM?(n=r===I.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID="".concat(r).concat(n)):this.conversationID=I.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof $a||e instanceof qa||e instanceof Ba||e instanceof Va||e instanceof Ya||e instanceof Ja||e instanceof Wa||e instanceof Ka||e instanceof Xa||e instanceof Qa||e instanceof es}},{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 I.MSG_TEXT:t.setTextElement(e.content);break;case I.MSG_IMAGE:t.setImageElement(e.content);break;case I.MSG_AUDIO:t.setAudioElement(e.content);break;case I.MSG_FILE:t.setFileElement(e.content);break;case I.MSG_VIDEO:t.setVideoElement(e.content);break;case I.MSG_CUSTOM:t.setCustomElement(e.content);break;case I.MSG_LOCATION:t.setLocationElement(e.content);break;case I.MSG_GRP_TIP:t.setGroupTipElement(e.content);break;case I.MSG_GRP_SYS_NOTICE:t.setGroupSystemNoticeElement(e.content);break;case I.MSG_FACE:t.setFaceElement(e.content);break;case I.MSG_MERGER:t.setMergerElement(e.content);break;default:Ne.warn(e.type,e.content,"no operation......")}};if(We(e))for(var r=0;r<e.length;r++)n(e[r]);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 $a({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e){var t=new qa(e);this._elements.push(t)}},{key:"setAudioElement",value:function(e){var t=new Va(e);this._elements.push(t)}},{key:"setFileElement",value:function(e){var t=new Ya(e);this._elements.push(t)}},{key:"setVideoElement",value:function(e){var t=new Ja(e);this._elements.push(t)}},{key:"setLocationElement",value:function(e){var t=new Qa(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new Xa(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;Dt(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==I.GRP_TIP_MBR_JOIN&&n!==I.GRP_TIP_MBR_KICKED_OUT&&n!==I.GRP_TIP_MBR_SET_ADMIN&&n!==I.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]);var r=t,o=r.nick,i=r.avatar;Be(o)&&(this.nick=o),Be(i)&&(this.avatar=i);var a=new Wa(e);this._elements.push(a)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new Ka(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new Ba(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e){var t=new es(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(ze(e))return I.MSG_PRIORITY_NORMAL;if(Be(e)&&-1!==Object.values(ts).indexOf(e))return e;if(qe(e)){var t=""+e;if(-1!==Object.keys(ts).indexOf(t))return ts[t]}return I.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;Be(t)&&(this.nick=t),Be(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){Be(e)&&(this.nameCard=e)}},{key:"elements",get:function(){return Ne.warn("!!!Message 实例的 elements 属性即将废弃,请尽快修改。使用 type 和 payload 属性处理单条消息,兼容组合消息使用 _elements 属性!!!"),this._elements}}]),e}(),rs=function(e){return{code:0,data:e||{}}},os="https://cloud.tencent.com/document/product/",is="您可以在即时通信 IM 控制台的【开发辅助工具(https://console.cloud.tencent.com/im-detail/tool-usersig)】页面校验 UserSig。",as="UserSig 非法,请使用官网提供的 API 重新生成 UserSig(".concat(os,"269/32688)。"),ss="#.E6.B6.88.E6.81.AF.E5.85.83.E7.B4.A0-timmsgelement",cs={70001:"UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",70002:"UserSig 长度为0,请检查传入的 UserSig 是否正确。",70003:as,70005:as,70009:"UserSig 验证失败,可能因为生成 UserSig 时混用了其他 SDKAppID 的私钥或密钥导致,请使用对应 SDKAppID 下的私钥或密钥重新生成 UserSig(".concat(os,"269/32688)。"),70013:"请求中的 UserID 与生成 UserSig 时使用的 UserID 不匹配。".concat(is),70014:"请求中的 SDKAppID 与生成 UserSig 时使用的 SDKAppID 不匹配。".concat(is),70016:"密钥不存在,UserSig 验证失败,请在即时通信 IM 控制台获取密钥(".concat(os,"269/32578#.E8.8E.B7.E5.8F.96.E5.AF.86.E9.92.A5)。"),70020:"SDKAppID 未找到,请在即时通信 IM 控制台确认应用信息。",70050:"UserSig 验证次数过于频繁。请检查 UserSig 是否正确,并于1分钟后重新验证。".concat(is),70051:"帐号被拉入黑名单。",70052:"UserSig 已经失效,请重新生成,再次尝试。",70107:"因安全原因被限制登录,请不要频繁登录。",70169:"请求的用户帐号不存在。",70114:"".concat("服务端内部超时,请稍后重试。"),70202:"".concat("服务端内部超时,请稍后重试。"),70206:"请求中批量数量不合法。",70402:"参数非法,请检查必填字段是否填充,或者字段的填充是否满足协议要求。",70403:"请求失败,需要 App 管理员权限。",70398:"帐号数超限。如需创建多于100个帐号,请将应用升级为专业版,具体操作指引请参见购买指引(".concat(os,"269/32458)。"),70500:"".concat("服务端内部错误,请重试。"),71e3:"删除帐号失败。仅支持删除体验版帐号,您当前应用为专业版,暂不支持帐号删除。",20001:"请求包非法。",20002:"UserSig 或 A2 失效。",20003:"消息发送方或接收方 UserID 无效或不存在,请检查 UserID 是否已导入即时通信 IM。",20004:"网络异常,请重试。",20005:"".concat("服务端内部错误,请重试。"),20006:"触发发送".concat("单聊消息","之前回调,App 后台返回禁止下发该消息。"),20007:"发送".concat("单聊消息",",被对方拉黑,禁止发送。消息发送状态默认展示为失败,您可以登录控制台修改该场景下的消息发送状态展示结果,具体操作请参见消息保留设置(").concat(os,"269/38656)。"),20009:"消息发送双方互相不是好友,禁止发送(配置".concat("单聊消息","校验好友关系才会出现)。"),20010:"发送".concat("单聊消息",",自己不是对方的好友(单向关系),禁止发送。"),20011:"发送".concat("单聊消息",",对方不是自己的好友(单向关系),禁止发送。"),20012:"发送方被禁言,该条消息被禁止发送。",20016:"消息撤回超过了时间限制(默认2分钟)。",20018:"删除漫游内部错误。",90001:"JSON 格式解析失败,请检查请求包是否符合 JSON 规范。",90002:"".concat("JSON 格式请求包体","中 MsgBody 不符合消息格式描述,或者 MsgBody 不是 Array 类型,请参考 TIMMsgElement 对象的定义(").concat(os,"269/2720").concat(ss,")。"),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(os,"269/2720").concat(ss,")。"),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(os,"269/11673)购买预付费套餐“IM直播群”。"),10037:"单个用户可创建和加入的".concat("群组","数量超过了限制,请参考价格说明(").concat(os,"269/11673)购买或升级预付费套餐“单人可创建与加入").concat("群组","数”。"),10038:"群成员数量超过限制,请参考价格说明(".concat(os,"269/11673)购买或升级预付费套餐“扩展群人数上限”。"),10041:"该应用(SDKAppID)已配置不支持群消息撤回。",10050:"群属性 key 不存在",10056:"请在写入群属性前先使用 getGroupAttributes 接口更新本地群属性,避免冲突。",30001:"请求参数错误,请根据错误描述检查请求参数",30002:"SDKAppID 不匹配",30003:"请求的用户帐号不存在",30004:"请求需要 App 管理员权限",30005:"关系链字段中包含敏感词",30006:"".concat("服务端内部错误,请重试。"),30007:"".concat("网络超时,请稍后重试. "),30008:"并发写导致写冲突,建议使用批量方式",30009:"后台禁止该用户发起加好友请求",30010:"自己的好友数已达系统上限",30011:"分组已达系统上限",30012:"未决数已达系统上限",30014:"对方的好友数已达系统上限",30515:"请求添加好友时,对方在自己的黑名单中,不允许加好友",30516:"请求添加好友时,对方的加好友验证方式是不允许任何人添加自己为好友",30525:"请求添加好友时,自己在对方的黑名单中,不允许加好友",30539:"等待对方同意",30540:"添加好友请求被安全策略打击,请勿频繁发起添加好友请求",31704:"与请求删除的帐号之间不存在好友关系",31707:"删除好友请求被安全策略打击,请勿频繁发起删除好友请求"},us=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this)).code=e.code,o.message=cs[e.code]||e.message,o.data=e.data||{},o}return r}(h(Error)),ls=null,ds=function(e){ls=e},fs=function(e){return Promise.resolve(rs(e))},hs=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof us)return t&&null!==ls&&ls.emit(T.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new us({code:Pr.UNCAUGHT_ERROR,message:e.message});return t&&null!==ls&&ls.emit(T.ERROR,n),Promise.reject(n)}if(ze(e)||ze(e.code)||ze(e.message))Ne.error("IMPromise.reject 必须指定code(错误码)和message(错误信息)!!!");else{if(qe(e.code)&&Be(e.message)){var r=new us(e);return t&&null!==ls&&ls.emit(T.ERROR,r),Promise.reject(r)}Ne.error("IMPromise.reject code(错误码)必须为数字,message(错误信息)必须为字符串!!!")}},ps=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="C2CModule",o}return o(r,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,r=e.C2CRemainingUnreadList,o=e.C2CPairUnreadList;Ne.debug("".concat(this._className,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var i=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:r,C2CPairUnreadList:o,isInstantMessage:n}),a=i.conversationOptionsList,s=i.messageList,c=i.isUnreadC2CMessage;this.filterModifiedMessage(s),a.length>0&&this.getModule(Qt).onNewMessage({conversationOptionsList:a,isInstantMessage:n,isUnreadC2CMessage:c});var u=this.filterUnmodifiedMessage(s);n&&u.length>0&&this.emitOuterEvent(T.MESSAGE_RECEIVED,u),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,r=e.C2CPairUnreadList,o=e.isInstantMessage,i=null,a=[],s=[],c={},u=this.getModule(rn),l=this.getModule(pn),d=!1,f=0,h=t.length;f<h;f++){var p=t[f];p.currentUser=this.getMyUserID(),p.conversationType=I.CONV_C2C,p.isSystemMessage=!!p.isSystemMessage,(ze(p.nick)||ze(p.avatar))&&(d=!0,Ne.debug("".concat(this._className,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),i=new ns(p),p.elements=u.parseElements(p.elements,p.from),i.setElement(p.elements),i.setNickAndAvatar({nick:p.nick,avatar:p.avatar});var g=i.conversationID;if(o){var v=!1,m=this.getModule(Qt);if(i.from!==this.getMyUserID()){var _=m.getLatestMessageSentByPeer(g);if(_){var y=_.nick,b=_.avatar;d?i.setNickAndAvatar({nick:y,avatar:b}):y===i.nick&&b===i.avatar||(v=!0)}}else{var M=m.getLatestMessageSentByMe(g);if(M){var S=M.nick,k=M.avatar;S===i.nick&&k===i.avatar||m.modifyMessageSentByMe({conversationID:g,latestNick:i.nick,latestAvatar:i.avatar})}}var w=1===t[f].isModified;if(m.isMessageSentByCurrentInstance(i)?i.isModified=w:w=!1,0===p.msgLifeTime)i._onlineOnlyFlag=!0,s.push(i);else{if(!m.pushIntoMessageList(s,i,w))continue;v&&(m.modifyMessageSentByPeer({conversationID:g,latestNick:i.nick,latestAvatar:i.avatar}),m.updateUserProfileSpecifiedKey({conversationID:g,nick:i.nick,avatar:i.avatar}))}o&&i.clientTime>0&&l.addMessageDelay(i.clientTime)}if(0!==p.msgLifeTime){if(!1===i._onlineOnlyFlag)if(ze(c[g])){var C=0;"in"===i.flow&&(i._isExcludedFromUnreadCount||(C=1)),c[g]=a.push({conversationID:g,unreadCount:C,type:i.conversationType,subType:i.conversationSubType,lastMessage:i._isExcludedFromLastMessage?"":i})-1}else{var T=c[g];a[T].type=i.conversationType,a[T].subType=i.conversationSubType,a[T].lastMessage=i._isExcludedFromLastMessage?"":i,"in"===i.flow&&(i._isExcludedFromUnreadCount||a[T].unreadCount++)}}else i._onlineOnlyFlag=!0}var A=!1;if(We(r))for(var E=function(e,t){if(r[e].unreadCount>0){A=!0;var n=a.find((function(t){return t.conversationID==="C2C".concat(r[e].from)}));n?n.unreadCount=r[e].unreadCount:a.push({conversationID:"C2C".concat(r[e].from),unreadCount:r[e].unreadCount,type:I.CONV_C2C})}},O=0,D=r.length;O<D;O++)E(O);if(We(n))for(var N=function(e,t){a.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||a.push({conversationID:"C2C".concat(n[e].from),type:I.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},L=0,x=n.length;L<x;L++)N(L);return{conversationOptionsList:a,messageList:s,isUnreadC2CMessage:A}}},{key:"onC2CMessageRevoked",value:function(e){var t=this;Ne.debug("".concat(this._className,".onC2CMessageRevoked count:").concat(e.dataList.length));var n=this.getModule(Qt),r=[],o=null;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var i=e.c2cMessageRevokedNotify.revokedInfos;ze(i)||i.forEach((function(e){var i=t.getMyUserID()===e.from?"".concat(I.CONV_C2C).concat(e.to):"".concat(I.CONV_C2C).concat(e.from);(o=n.revoke(i,e.sequence,e.random))&&r.push(o)}))}})),0!==r.length&&(n.onMessageRevoked(r),this.emitOuterEvent(T.MESSAGE_REVOKED,r))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Dt(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var r=e.peerReadTime;Ne.debug("".concat(t._className,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(r));var o="".concat(I.CONV_C2C).concat(n),i=t.getModule(Qt);i.recordPeerReadTime(o,r),i.updateMessageIsPeerReadProperty(o,r)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Dt(e.c2cMessageReadNotice)){var n=t.getModule(Qt);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var r=e.from,o=e.peerReadTime;Ne.debug("".concat(t._className,".onC2CMessageReadNotice from:").concat(r," lastReadTime:").concat(o));var i="".concat(I.CONV_C2C).concat(r);n.updateIsReadAfterReadReport({conversationID:i,lastMessageTime:o}),n.updateUnreadCount(i)}))}}))}},{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 r="";Be(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(He(t)&&He(t.messageControlInfo)){var i=t.messageControlInfo,a=i.excludedFromUnreadCount,s=i.excludedFromLastMessage;!0===a&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg")}return{protocolName:kn,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:r,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:Ae()}}}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:On,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 Ne.log("".concat(this._className,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:Pn,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageTime,o="".concat(this._className,".setMessageRead");Ne.log("".concat(o," conversationID:").concat(n," lastMessageTime:").concat(r)),qe(r)||Ne.warn("".concat(o," 请勿修改 Conversation.lastMessage.lastTime,否则可能会导致已读上报结果不准确"));var i=new fi(xi);return i.setMessage("conversationID:".concat(n," lastMessageTime:").concat(r)),this.request({protocolName:Dn,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:r,receipt:1}]}}}).then((function(){i.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(o," ok"));var e=t.getModule(Qt);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:r}),e.updateUnreadCount(n),rs()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ne.log("".concat(o," failed. error:"),e),hs(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),r=e.peerAccount,o=e.conversationID,i=e.count,a=e.lastMessageTime,s=e.messageKey,c="peerAccount:".concat(r," count:").concat(i||15," lastMessageTime:").concat(a||0," messageKey:").concat(s);Ne.log("".concat(n," ").concat(c));var u=new fi(Oi);return this.request({protocolName:xn,requestData:{peerAccount:r,count:i||15,lastMessageTime:a||0,messageKey:s}}).then((function(e){var r=e.data,i=r.complete,a=r.messageList,s=r.messageKey,l=r.lastMessageTime;ze(a)?Ne.log("".concat(n," ok. complete:").concat(i," but messageList is undefined!")):Ne.log("".concat(n," ok. complete:").concat(i," count:").concat(a.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(i," length:").concat(a.length)).end();var d=t.getModule(Qt);1===i&&d.setCompleted(o);var f=d.storeRoamingMessage(a,o);d.modifyMessageList(o),d.updateIsRead(o),d.updateRoamingMessageKeyAndTime(o,s,l);var h=d.getPeerReadTime(o);if(Ne.log("".concat(n," update isPeerRead property. conversationID:").concat(o," peerReadTime:").concat(h)),h)d.updateMessageIsPeerReadProperty(o,h);else{var p=o.replace(I.CONV_C2C,"");t.getRemotePeerReadTime([p]).then((function(){d.updateMessageIsPeerReadProperty(o,d.getPeerReadTime(o))}))}return f})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setMessage(c).setError(e,r,o).end()})),Ne.warn("".concat(n," failed. error:"),e),hs(e)}))}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._className,".getRemotePeerReadTime");if(Dt(e))return Ne.warn("".concat(n," userIDList is empty!")),Promise.resolve();var r=new fi(Gi);return Ne.log("".concat(n," userIDList:").concat(e)),this.request({protocolName:Rn,requestData:{userIDList:e}}).then((function(o){var i=o.data.peerReadTimeList;Ne.log("".concat(n," ok. peerReadTimeList:").concat(i));for(var a="",s=t.getModule(Qt),c=0;c<e.length;c++)a+="".concat(e[c],"-").concat(i[c]," "),i[c]>0&&s.recordPeerReadTime("C2C".concat(e[c]),i[c]);r.setNetworkType(t.getNetworkType()).setMessage(a).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.warn("".concat(n," failed. error:"),e)}))}}]),r}(vn),gs=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 o(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,r=e.ID,o=!0;this.list.has(n)||this.list.set(n,new Map);var i=this.list.get(n).has(r);if(i){var a=this.list.get(n).get(r);if(!t||!0===a.isModified)return!1}return this.list.get(n).set(r,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),this._setGroupLocalLastMessageSequence(n,e),o}},{key:"unshift",value:function(e){var t;if(We(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(I.CONV_C2C)){var r=Array.from(this.list.get(t).values()),o=r.length;if(0===o)return;for(var i=o-1;i>=0;i--)if("out"===r[i].flow){this._setLatestMessageSentByMe(t,r[i]);break}for(var a=o-1;a>=0;a--)if("in"===r[a].flow){this._setLatestMessageSentByPeer(t,r[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 r=Array.from(this.list.get(t));r.unshift([n,e]),this.list.set(t,new Map(r))}},{key:"_unshiftMultipleMessages",value:function(e){for(var t=e.length,n=[],r=e[0].conversationID,o=this.list.has(r)?Array.from(this.list.get(r)):[],i=0;i<t;i++)n.push([e[i].ID,e[i]]);this.list.set(r,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(Ne.debug("revoke message",e,t,n),this.list.has(e)){var r,o=C(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var i=_(r.value,2)[1];if(i.sequence===t&&!i.isRevoked&&(ze(n)||i.random===n))return i.isRevoked=!0,i}}catch(s){o.e(s)}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:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var r,o=C(this.list.get(e));try{for(o.s();!(r=o.n()).done;){var i=_(r.value,2)[1];i.time<=t&&!i.isPeerRead&&"out"===i.flow&&(i.isPeerRead=!0,n.push(i))}}catch(s){o.e(s)}finally{o.f()}Ne.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 r=this.list.get(t).get(n);r&&(r.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?y(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(I.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(I.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"_setGroupLocalLastMessageSequence",value:function(e,t){e.startsWith(I.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,r=e.latestAvatar,o=this.list.get(t);if(!Dt(o)){var i=Array.from(o.values()),a=i.length;if(0!==a){for(var s=null,c=0,u=!1,l=a-1;l>=0;l--)"in"===i[l].flow&&((s=i[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),u=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),u=!0),u&&(c+=1));Ne.log("".concat(this._className,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,o=this.list.get(t);if(!Dt(o)){var i=Array.from(o.values()),a=i.length;if(0!==a){for(var s=null,c=0,u=!1,l=a-1;l>=0;l--)"out"===i[l].flow&&((s=i[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),u=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),u=!0),u&&(c+=1));Ne.log("".concat(this._className,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c))}}}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===Ne.getLevel()){console.group("conversationID-messageCount");var e,t=C(this.list);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];console.log("".concat(r,"-").concat(o.size))}}catch(a){t.e(a)}finally{t.f()}console.groupEnd()}}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear(),this._groupLocalLastMessageSequenceMap.clear()}}]),e}(),vs="_a2KeyAndTinyIDUpdated",ms="_cloudConfigUpdated",_s="_profileUpdated";function ys(e){this.mixin(e)}ys.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 bs=["jpg","jpeg","gif","png","bmp","image","webp"],Ms=["mp4"],Ss=1,ks=2,ws=3,Cs=255,Ts=function(){function e(t){var r=this;n(this,e),Dt(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||I.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||I.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],Dt(t.profileCustomField)||t.profileCustomField.forEach((function(e){r.profileCustomField.push({key:e.key,value:e.value})})))}return o(e,[{key:"validate",value:function(e){var t=!0,n="";if(Dt(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,o=null,i=0;i<r;i++){if(o=e.profileCustomField[i],!Be(o.key)||-1===o.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"自定义资料字段的前缀必须是 Tag_Profile_Custom"};if(!Be(o.value))return{valid:!1,tips:"自定义资料字段的 value 必须是字符串"}}for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if("profileCustomField"===a)continue;if(Dt(e[a])&&!Be(e[a])&&!qe(e[a])){n="key:"+a+", invalid value:"+e[a],t=!1;continue}switch(a){case"nick":Be(e[a])||(n="nick should be a string",t=!1),ot(e[a])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(ot(e[a])," bytes"),t=!1);break;case"gender":ct(Re,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":qe(e.birthday)||(n="birthday should be a number",t=!1);break;case"location":Be(e.location)||(n="location should be a string",t=!1);break;case"selfSignature":Be(e.selfSignature)||(n="selfSignature should be a string",t=!1);break;case"allowType":ct(Ge,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":qe(e.language)||(n="language should be a number",t=!1);break;case"avatar":Be(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":ct(Pe,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":qe(e.level)||(n="level should be a number",t=!1);break;case"role":qe(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}(),Is=function e(t){n(this,e),this.value=t,this.next=null},As=function(){function e(t){n(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map,Ne.debug("SinglyLinkedList init MAX_LENGTH:".concat(this.MAX_LENGTH))}return o(e,[{key:"set",value:function(e){var t=new Is(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}(),Es=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers"],Os=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 o(e,[{key:"_initGroup",value:function(e){for(var t in e)Es.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),ze(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&ht(this.groupCustomField,n.groupCustomField),ze(n.memberNum)||(this.memberCount=n.memberNum),ze(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),nt(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum"]),We(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&nt(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t=e.nameCard,n=e.joinTime,r=e.role,o=e.messageRemindType,i=e.readedSequence,a=e.excludedUnreadSequenceList;nt(this.selfInfo,{nameCard:t,joinTime:n,role:r,messageRemindType:o,readedSequence:i,excludedUnreadSequenceList:a},[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}},{key:"memberNum",set:function(e){},get:function(){return Ne.warn("!!!v2.8.0起弃用memberNum,请使用 memberCount"),this.memberCount}},{key:"maxMemberNum",set:function(e){},get:function(){return Ne.warn("!!!v2.8.0起弃用maxMemberNum,请使用 maxMemberCount"),this.maxMemberCount}}]),e}(),Ds=function(e,t){if(ze(t))return"";switch(e){case I.MSG_TEXT:return t.text;case I.MSG_IMAGE:return"[图片]";case I.MSG_LOCATION:return"[位置]";case I.MSG_AUDIO:return"[语音]";case I.MSG_VIDEO:return"[视频]";case I.MSG_FILE:return"[文件]";case I.MSG_CUSTOM:return"[自定义消息]";case I.MSG_GRP_TIP:return"[群提示消息]";case I.MSG_GRP_SYS_NOTICE:return"[群系统通知]";case I.MSG_FACE:return"[动画表情]";case I.MSG_MERGER:return"[聊天记录]";default:return""}},Ns=function(e){return ze(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:""}:e instanceof ns?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:Ds(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||""}:s({},e,{messageForShow:Ds(e.type,e.payload)})},Ls=function(){function e(t){n(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=Ns(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 o(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}})),ze(this.userProfile)&&this.type===I.CONV_C2C?this.userProfile=new Ts({userID:e.conversationID.replace("C2C","")}):ze(this.groupProfile)&&this.type===I.CONV_GROUP&&(this.groupProfile=new Os({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,r=e.isUnreadC2CMessage;ze(t)||(gt(this.subType)?this.unreadCount=0:n&&this.type===I.CONV_GROUP||r&&this.type===I.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=Ns(e)}},{key:"updateGroupAtInfoList",value:function(e){var t,n=(b(t=e.groupAtType)||M(t)||S(t)||w()).slice(0);-1!==n.indexOf(I.CONV_AT_ME)&&-1!==n.indexOf(I.CONV_AT_ALL)&&(n=[I.CONV_AT_ALL_AT_ME]);var r={from:e.from,groupID:e.groupID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(r),Ne.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===I.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===I.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"toAccount",get:function(){return this.conversationID.startsWith(I.CONV_C2C)?this.conversationID.replace(I.CONV_C2C,""):this.conversationID.startsWith(I.CONV_GROUP)?this.conversationID.replace(I.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}}]),e}(),xs=function(){function e(t){n(this,e),this._conversationModule=t,this._className="MessageRemindHandler",this._updateSequence=0}return o(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._className,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:Ln,updateSequence:this._updateSequence}).then((function(n){Ne.log("".concat(t," ok"));var r=n.data,o=r.updateSequence,i=r.muteFlagList;e._updateSequence=o,e._patchC2CMessageRemindType(i)})).catch((function(e){Ne.error("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,r="";We(e)&&e.length>0&&e.forEach((function(e){var o=e.userID,i=e.muteFlag;0===i?r=I.MSG_REMIND_ACPT_AND_NOTE:1===i?r=I.MSG_REMIND_DISCARD:2===i&&(r=I.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:r})&&(n+=1)})),Ne.log("".concat(this._className,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):We(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setGroupMessageRemindType"),r=e.groupID,o=e.messageRemindType,i="groupID:".concat(r," messageRemindType:").concat(o),a=new fi(na);return a.setMessage(i),this._getModule(Jt).modifyGroupMemberInfo({groupID:r,messageRemindType:o,userID:this._conversationModule.getMyUserID()}).then((function(){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Ne.log("".concat(n," ok. ").concat(i));var e=t._getModule(Yt).getLocalGroupProfile(r);return e&&(e.selfInfo.messageRemindType=o),t._conversationModule.patchMessageRemindType({ID:r,isC2CConversation:!1,messageRemindType:o})&&t._emitConversationUpdate(),rs({group:e})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setC2CMessageRemindType"),r=e.userIDList,o=e.messageRemindType,i=r.slice(0,30),a=0;o===I.MSG_REMIND_DISCARD?a=1:o===I.MSG_REMIND_ACPT_NOT_NOTE&&(a=2);var s="userIDList:".concat(i," messageRemindType:").concat(o),c=new fi(na);return c.setMessage(s),this._conversationModule.request({protocolName:Nn,requestData:{userIDList:i,muteFlag:a}}).then((function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var r=e.data,a=r.updateSequence,s=r.errorList;t._updateSequence=a;var u=[],l=[];We(s)&&s.forEach((function(e){u.push(e.userID),l.push({userID:e.userID,code:e.errorCode})}));var d=i.filter((function(e){return-1===u.indexOf(e)}));Ne.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(),i.length=u.length=0,fs({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:l})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(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(){Ne.log("".concat(this._className,".reset")),this._updateSequence=0}}]),e}(),Rs=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="ConversationModule",ys.mixin(g(o)),o._messageListHandler=new gs,o._messageRemindHandler=new xs(g(o)),o.singlyLinkedList=new As(100),o._pagingStatus=Pt.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 o(r,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(vs,this._initLocalConversationList,this),e.on(_s,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new fi(Wi);Ne.log("".concat(this._className,"._initLocalConversationList."));var n="",r=this._getStorageConversationList();if(r){for(var o=r.length,i=0;i<o;i++){var a=r[i];if(a){if(a.conversationID==="".concat(I.CONV_C2C,"@TLS#ERROR")||a.conversationID==="".concat(I.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(a.groupProfile){var s=a.groupProfile.type;if(gt(s))continue}}this._conversationMap.set(r[i].conversationID,new Ls(r[i]))}this.emitConversationUpdate(!0,!1),n="count:".concat(o)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(Kt)||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,r=e.isInstantMessage,o=void 0===r||r,i=e.isUnreadC2CMessage,a=void 0!==i&&i;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;We(e)&&0===e.length||(0!==this._conversationMap.size?(e.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var r=t._conversationMap.get(n);r.groupProfile=JSON.parse(JSON.stringify(e)),r.lastMessage.lastSequence<e.nextMessageSeq&&(r.lastMessage.lastSequence=e.nextMessageSeq-1),r.subType||(r.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,r=!1;e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&n.isLastMessageRevoked(e)&&(r=!0,n.setLastMessageRevoked(!0))})),r&&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),r={},o=n.length-1;o>=0;o--)if(!n[o].isDeleted){r=n[o];break}var i=this._conversationMap.get(t);if(i){var a=!1;i.lastMessage.lastSequence===r.sequence&&i.lastMessage.lastTime===r.time||(Dt(r)&&(r=void 0),i.updateLastMessage(r),a=!0,Ne.log("".concat(this._className,".onMessageDeleted. update conversationID:").concat(t," with lastMessage:"),i.lastMessage)),t.startsWith(I.CONV_C2C)&&this.updateUnreadCount(t),a&&this.emitConversationUpdate(!0,!1)}}}},{key:"onNewGroupAtTips",value:function(e){var t=this,n=e.dataList,r=null;n.forEach((function(e){e.groupAtTips?r=e.groupAtTips:e.elements&&(r=e.elements),r.__random=e.random,r.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(r)})),Ne.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 r=n.groupID;if(n.from!==e.getMyUserID()){var o=e._conversationMap.get("".concat(I.CONV_GROUP).concat(r));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!==I.CONV_C2C||n.push(e.conversationID.replace(I.CONV_C2C,""))})),n.length>0){Ne.debug("".concat(this._className,"._getC2CPeerReadTime userIDList:").concat(n));var r=this.getModule(Kt);r&&r.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(en).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(en).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=y(this._conversationMap.values());if(t){var r=this.getModule(Yt);r&&r.updateGroupLastMessage(n)}e&&this.emitOuterEvent(T.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return y(this._conversationMap.values())}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"_syncConversationList",value:function(){var e=this,t=new fi(zi);return this._pagingStatus===Pt.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=Pt.RESOLVED,e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=Pt.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],i=r[1];t.setError(n,o,i).end()})),hs(n)}))}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),r=this._messageRemindHandler.getC2CMessageRemindType(),o=this.getModule(Yt).getGroupList();Promise.all([n,r,o]).then((function(){var n=Date.now()-t;Ne.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 Ne.log("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=Pt.PENDING,this.request({protocolName:Gn,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingStartIndex,orderType:1}}).then((function(n){var r=n.data,o=r.completeFlag,i=r.conversations,a=void 0===i?[]:i,s=r.timeStamp,c=r.startIndex,u=r.pinnedTimeStamp,l=r.pinnedStartIndex;if(Ne.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 fs();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=u,e._pagingPinnedStartIndex=l,1!==o?e._pagingGetConversationList():(e._handleGroupAtTipsList(),fs())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Ne.warn("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,r=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(y(t.toBeUpdatedConversationList),y(this._conversationMap)))),n||this._updateUserOrGroupProfile(t.newConversationList),Ne.debug("".concat(this._className,"._updateLocalConversationList cost ").concat(Date.now()-r," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,r=e.isInstantMessage,o=e.isUnreadC2CMessage,i=void 0!==o&&o,a=[],s=[],c=this.getModule(Yt),u=this.getModule(Xt),l=0,d=t.length;l<d;l++){var f=new Ls(t[l]),h=f.conversationID;if(h!=="".concat(I.CONV_C2C,"@TLS#ERROR")&&h!=="".concat(I.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(h)){var p=this._conversationMap.get(h),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===r&&g.push("lastMessage");var v=t[l].lastMessage,m=!ze(v);m||this._onLastMessageNotExist(t[l]),ze(r)&&m&&null===p.lastMessage.payload&&(p.lastMessage.payload=v.payload),nt(p,f,g,[null,void 0,"",0,NaN]),p.updateUnreadCount({nextUnreadCount:f.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:i}),r&&m&&(p.lastMessage.payload=v.payload,p.type===I.CONV_GROUP&&(p.lastMessage.nameCard=v.nameCard,p.lastMessage.nick=v.nick)),m&&p.lastMessage.cloudCustomData!==v.cloudCustomData&&(p.lastMessage.cloudCustomData=v.cloudCustomData||""),this._conversationMap.delete(h),a.push([h,p])}else{if(f.type===I.CONV_GROUP&&c){var _=f.groupProfile.groupID,y=c.getLocalGroupProfile(_);y&&(f.groupProfile=y,f.updateUnreadCount({nextUnreadCount:0}))}else if(f.type===I.CONV_C2C){var b=h.replace(I.CONV_C2C,"");u&&u.isMyFriend(b)&&(f.remark=u.getFriendRemark(b))}s.push(f),a.push([h,f])}}return{toBeUpdatedConversationList:a,newConversationList:s}}},{key:"_onLastMessageNotExist",value:function(e){new fi(ja).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(y(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],r=[],o=this.getModule(zt),i=this.getModule(Yt);e.forEach((function(e){if(e.type===I.CONV_C2C)n.push(e.toAccount);else if(e.type===I.CONV_GROUP){var t=e.toAccount;i.hasLocalGroup(t)?e.groupProfile=i.getLocalGroupProfile(t):r.push(t)}})),Ne.log("".concat(this._className,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(r)),n.length>0&&o.getUserProfile({userIDList:n}).then((function(e){var n=e.data;We(n)?n.forEach((function(e){t._conversationMap.get("C2C".concat(e.userID)).userProfile=e})):t._conversationMap.get("C2C".concat(n.userID)).userProfile=n})),r.length>0&&i.getGroupProfileAdvance({groupIDList:r,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 r=t._conversationMap.get(n);nt(r.groupProfile,e,[],[null,void 0,"",0,NaN]),!r.subType&&e.type&&(r.subType=e.type)}}))}))}}},{key:"_getConversationOptions",value:function(e){var t=this,n=[],r=e.filter((function(e){var t=e.lastMsg;return He(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 r={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return n.push(r),{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 Ts(r),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:""}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:s({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 Os({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(zt).onConversationsProfileUpdated(n),r}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,n=t.event,r=void 0===n?void 0:n,o=t.elements,i=void 0===o?[]:o,a=t.groupTips,c=void 0===a?{}:a;if(!ze(r)&&!Dt(c)){var u=new ns(c);u.setElement({type:I.MSG_GRP_TIP,content:s({},c.elements,{groupProfile:c.groupProfile})});var l=JSON.parse(JSON.stringify(u.payload));return u=null,{type:I.MSG_GRP_TIP,payload:l}}return{type:i[0]?i[0].type:null,payload:i[0]?i[0].content:null}}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof ns&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){var t=this;Ne.log("".concat(this._className,".onConversationDeleted")),We(e)&&e.forEach((function(e){var n=e.type,r=e.userID,o=e.groupID,i="";1===n?i="".concat(I.CONV_C2C).concat(r):2===n&&(i="".concat(I.CONV_GROUP).concat(o)),t.deleteLocalConversation(i)}))}},{key:"onConversationPinned",value:function(e){var t=this;if(We(e)){var n=!1;e.forEach((function(e){var r,o=e.type,i=e.userID,a=e.groupID;1===o?r=t.getLocalConversation("".concat(I.CONV_C2C).concat(i)):2===o&&(r=t.getLocalConversation("".concat(I.CONV_GROUP).concat(a))),r&&(Ne.log("".concat(t._className,".onConversationPinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned||(r.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(We(e)){var n=!1;e.forEach((function(e){var r,o=e.type,i=e.userID,a=e.groupID;1===o?r=t.getLocalConversation("".concat(I.CONV_C2C).concat(i)):2===o&&(r=t.getLocalConversation("".concat(I.CONV_GROUP).concat(a))),r&&(Ne.log("".concat(t._className,".onConversationUnpinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned&&(r.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,r=e.nextReqMessageID,o=e.count,i="".concat(this._className,".getMessageList"),a=this.getLocalConversation(n),s="";if(a&&a.groupProfile&&(s=a.groupProfile.type),gt(s))return Ne.log("".concat(i," not available in avchatroom. conversationID:").concat(n)),fs({messageList:[],nextReqMessageID:"",isCompleted:!0});(ze(o)||o>15)&&(o=15);var c=this._computeLeftCount({conversationID:n,nextReqMessageID:r});return Ne.log("".concat(i," conversationID:").concat(n," leftCount:").concat(c," count:").concat(o," nextReqMessageID:").concat(r)),this._needGetHistory({conversationID:n,leftCount:c,count:o})?this.getHistoryMessages({conversationID:n,nextReqMessageID:r,count:20}).then((function(){return c=t._computeLeftCount({conversationID:n,nextReqMessageID:r}),rs(t._computeResult({conversationID:n,nextReqMessageID:r,count:o,leftCount:c}))})):(Ne.log("".concat(i,".getMessageList get message list from memory")),this.modifyMessageList(n),fs(this._computeResult({conversationID:n,nextReqMessageID:r,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,r=e.count,o=this.getLocalConversation(t),i="";return o&&o.groupProfile&&(i=o.groupProfile.type),!yt(t)&&!gt(i)&&n<r&&!this._completedMap.has(t)}},{key:"_computeResult",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,o=e.leftCount,i=this._computeMessageList({conversationID:t,nextReqMessageID:n,count:r}),a=this._computeIsCompleted({conversationID:t,leftCount:o,count:r}),s=this._computeNextReqMessageID({messageList:i,isCompleted:a,conversationID:t}),c="".concat(this._className,"._computeResult. conversationID:").concat(t);return Ne.log("".concat(c," leftCount:").concat(o," count:").concat(r," nextReqMessageID:").concat(s," isCompleted:").concat(a)),{messageList:i,nextReqMessageID:s,isCompleted:a}}},{key:"_computeMessageList",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,o=this._messageListHandler.getLocalMessageList(t),i=this._computeIndexEnd({nextReqMessageID:n,messageList:o}),a=this._computeIndexStart({indexEnd:i,count:r});return o.slice(a,i)}},{key:"_computeNextReqMessageID",value:function(e){var t=e.messageList,n=e.isCompleted,r=e.conversationID;if(!n)return 0===t.length?"":t[0].ID;var o=this._messageListHandler.getLocalMessageList(r);return 0===o.length?"":o[0].ID}},{key:"_computeIndexEnd",value:function(e){var t=e.messageList,n=void 0===t?[]:t,r=e.nextReqMessageID;return r?n.findIndex((function(e){return e.ID===r})):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===I.CONV_SYSTEM)return fs();e.count?e.count>20&&(e.count=20):e.count=15;var r=this._messageListHandler.getLocalOldestMessageByConversationID(t);r||((r={}).time=0,r.sequence=0,0===t.indexOf(I.CONV_C2C)?(r.to=t.replace(I.CONV_C2C,""),r.conversationType=I.CONV_C2C):0===t.indexOf(I.CONV_GROUP)&&(r.to=t.replace(I.CONV_GROUP,""),r.conversationType=I.CONV_GROUP));var o="",i=null,a=this._roamingMessageKeyAndTimeMap.has(t);switch(r.conversationType){case I.CONV_C2C:return o=t.replace(I.CONV_C2C,""),(i=this.getModule(Kt))?i.getRoamingMessage({conversationID:e.conversationID,peerAccount:o,count:e.count,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko});case I.CONV_GROUP:return(i=this.getModule(Yt))?i.getRoamingMessage({conversationID:e.conversationID,groupID:r.to,count:e.count,sequence:n&&!1===r._onlineOnlyFlag?r.sequence-1:r.sequence}):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko});default:return fs()}}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,r=n.messageForShow,o=n.payload;if(Dt(r)||Dt(o)){var i=this._messageListHandler.getLocalMessageList(e);if(0===i.length)return;var a=i[i.length-1];Ne.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(I.CONV_C2C)?I.CONV_C2C:I.CONV_GROUP,r=null,o=[],i=0,a=e.length,c=null,u=n===I.CONV_GROUP,l=this.getModule(rn),d=function(){i=u?e.length-1:0,a=u?0:e.length},f=function(){u?--i:++i},h=function(){return u?i>=a:i<a};for(d();h();f())if(u&&1===e[i].sequence&&this.setCompleted(t),1!==e[i].isPlaceMessage)if((r=new ns(e[i])).to=e[i].to,r.isSystemMessage=!!e[i].isSystemMessage,r.conversationType=n,4===e[i].event?c={type:I.MSG_GRP_TIP,content:s({},e[i].elements,{groupProfile:e[i].groupProfile})}:(e[i].elements=l.parseElements(e[i].elements,e[i].from),c=e[i].elements),u||r.setNickAndAvatar({nick:e[i].nick,avatar:e[i].avatar}),Dt(c)){var p=new fi(Pi);p.setMessage("from:".concat(r.from," to:").concat(r.to," sequence:").concat(r.sequence," event:").concat(e[i].event)),p.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else r.setElement(c),r.reInitialize(this.getMyUserID()),o.push(r);return this._messageListHandler.unshift(o),d=f=h=null,o}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=(e.messageID,this.getLocalConversation(t));if(Ne.log("".concat(this._className,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return fs();if(n.type!==I.CONV_GROUP||Dt(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return fs();var r=this._messageListHandler.getLocalLastMessage(t),o=n.lastMessage.lastTime;r&&o<r.time&&(o=r.time);var i=n.lastMessage.lastSequence;r&&i<r.sequence&&(i=r.sequence);var a=null;switch(n.type){case I.CONV_C2C:return(a=this.getModule(Kt))?a.setMessageRead({conversationID:t,lastMessageTime:o}):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko});case I.CONV_GROUP:return(a=this._moduleManager.getModule(Yt))?a.setMessageRead({conversationID:t,lastMessageSeq:i}):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko});case I.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),fs();default:return fs()}}},{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=I.READ_ALL_MSG),Ne.log("".concat(n," options:"),t);var r=this._createSetAllMessageReadPack(t);if(0===r.readAllC2CMessage&&0===r.groupMessageReadInfoList.length)return fs();var o=new fi(Ki);return this.request({protocolName:nr,requestData:r}).then((function(n){var r=n.data,i=e._handleAllMessageRead(r);return o.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(i))).setNetworkType(e.getNetworkType()).end(),fs()})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),r=n[0],i=n[1];o.setError(t,r,i).end()})),Ne.warn("".concat(n," failed. error:"),t),hs({code:t&&t.code?t.code:Pr.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:Zr})}))}},{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:[]},r=e.scope,o=C(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var i=_(t.value,2)[1];if(i.unreadCount>0)if(i.type===I.CONV_C2C&&0===n.readAllC2CMessage){if(r===I.READ_ALL_MSG)n.readAllC2CMessage=1;else if(r===I.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(i.type===I.CONV_GROUP&&(r===I.READ_ALL_GROUP_MSG||r===I.READ_ALL_MSG)){var a=this._getConversationLastMessageSequence(i);n.groupMessageReadInfoList.push({groupID:i.groupProfile.groupID,messageSequence:a})}}}catch(c){o.e(c)}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,r=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&this.emitConversationUpdate(!0,!1),r}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var o=e[n],i=o.groupID,a=o.sequence,s=o.retCode,c=o.lastMessageSeq;ze(s)?this._remoteGroupReadSequenceMap.set(i,c):(this._remoteGroupReadSequenceMap.set(i,a),0!==s&&t.push("".concat(i,"-").concat(a,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,r=0,o=C(this._conversationMap);try{for(o.s();!(t=o.n()).done;){var i=_(t.value,2),a=i[0],s=i[1];if(s.unreadCount>=1){if(1===n&&s.type===I.CONV_C2C){var c=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:c})}else if(s.type===I.CONV_GROUP){var u=a.replace(I.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)&&(r+=1)}}}catch(h){o.e(h)}finally{o.f()}return r}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,r=t.replace(I.CONV_GROUP,""),o=!1;if(this._remoteGroupReadSequenceMap.has(r)){var i=this._remoteGroupReadSequenceMap.get(r);n<=i&&(o=!0,Ne.log("".concat(this._className,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(i))),n>=i+10&&this._remoteGroupReadSequenceMap.delete(r)}return o}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,r=e.lastMessageTime,o=this._messageListHandler.getLocalMessageList(t);if(0!==o.length)for(var i,a=o.length-1;a>=0;a--)if(i=o[a],!(r&&i.time>r||n&&i.sequence>n)){if("in"===i.flow&&i.isRead)break;i.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,r=this.getLocalConversation(e),o=this._messageListHandler.getLocalMessageList(e);if(r){var i=r.unreadCount,a=o.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;return i!==a&&(r.unreadCount=a,n=!0,Ne.log("".concat(this._className,".updateUnreadCount from ").concat(i," to ").concat(a,", conversationID:").concat(e)),!0===t&&this.emitConversationUpdate(!0,!1)),n}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,r=this.getLocalConversation(t);if(r){var o=r.unreadCount,i=o-n;i<0&&(i=0),r.unreadCount=i,Ne.log("".concat(this._className,".recomputeGroupUnreadCount from ").concat(o," to ").concat(i,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!yt(t.type)){for(var r=[],o=0,i=n.length;o<i;o++)"in"!==n[o].flow?"out"!==n[o].flow||n[o].isRead||n[o].setIsRead(!0):r.push(n[o]);var a=0;if(t.type===I.CONV_C2C){var s=r.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;a=r.length-t.unreadCount-s}else a=r.length-t.unreadCount;for(var c=0;c<a&&!r[c].isRead;c++)r[c].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t="".concat(this._className,".deleteGroupAtTips");Ne.log("".concat(t));var n=this._conversationMap.get(e);if(!n)return Promise.resolve();var r=n.groupAtInfoList;if(0===r.length)return Promise.resolve();var o=this.getMyUserID();return this.request({protocolName:$n,requestData:{messageListToDelete:r.map((function(e){return{from:e.from,to:o,messageSeq:e.__sequence,messageRandom:e.__random,groupID:e.groupID}}))}}).then((function(){return Ne.log("".concat(t," ok. count:").concat(r.length)),n.clearGroupAtInfoList(),Promise.resolve()})).catch((function(e){return Ne.error("".concat(t," failed. error:"),e),hs(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(I.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);n.length>0&&this.emitOuterEvent(T.MESSAGE_READ_BY_PEER,n)}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){Ne.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"),r="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(Ne.log("".concat(n,". ").concat(r)),this._pagingStatus===Pt.REJECTED){var o=new fi(qi);return o.setMessage(r),this._syncConversationList().then((function(){o.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return rs({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}if(0===this._conversationMap.size){var i=new fi(qi);return i.setMessage(r),this._syncConversationList().then((function(){i.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return rs({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}var a=this._getConversationList(e);return Ne.log("".concat(n,". returned conversation count:").concat(a.length)),fs({conversationList:a})}},{key:"_getConversationList",value:function(e){var t=this;if(ze(e))return this.getLocalConversationList();if(We(e)){var n=[];return e.forEach((function(e){if(t._conversationMap.has(e)){var r=t.getLocalConversation(e);n.push(r)}})),n}}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=C(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];o.type===I.CONV_C2C&&(Ne.debug("".concat(this._className,"._handleC2CPeerReadTime conversationID:").concat(r," peerReadTime:").concat(o.peerReadTime)),this.recordPeerReadTime(r,o.peerReadTime))}}catch(a){t.e(a)}finally{t.f()}}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new Ls({conversationID:e,type:e.slice(0,3)===I.CONV_C2C?I.CONV_C2C:I.CONV_GROUP}))._isInfoCompleted||t.type===I.CONV_SYSTEM)return fs({conversation:t});var r=new fi(Bi),o="".concat(this._className,".getConversationProfile");return Ne.log("".concat(o,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(i){r.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(i.data.conversation.unreadCount)).end();var a=n.getModule(Xt);if(a&&t.type===I.CONV_C2C){var s=e.replace(I.CONV_C2C,"");if(a.isMyFriend(s)){var c=a.getFriendRemark(s);t.remark!==c&&(t.remark=c,Ne.log("".concat(o,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return Ne.log("".concat(o," ok. conversationID:").concat(e)),i})).catch((function(t){return n.probeNetwork().then((function(n){var o=_(n,2),i=o[0],a=o[1];r.setError(t,i,a).setMessage("conversationID:".concat(e)).end()})),Ne.error("".concat(o," failed. error:"),t),hs(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===I.CONV_C2C?this.getModule(zt).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var r=n.data;return 0===r.length?hs(new us({code:Pr.USER_OR_GROUP_NOT_FOUND,message:bo})):(e.userProfile=r[0],e._isInfoCompleted=!0,t._unshiftConversation(e),fs({conversation:e}))})):this.getModule(Yt).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),fs({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof Ls&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(y(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 r=t._conversationMap.get("".concat(I.CONV_C2C).concat(n));r&&(r.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 r=new us({code:Pr.CONVERSATION_NOT_FOUND,message:yo});return hs(r)}switch(this._conversationMap.get(e).type){case I.CONV_C2C:n.type=1,n.toAccount=e.replace(I.CONV_C2C,"");break;case I.CONV_GROUP:n.type=2,n.toGroupID=e.replace(I.CONV_GROUP,"");break;case I.CONV_SYSTEM:return this.getModule(Yt).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),this.deleteLocalConversation(e),fs({conversationID:e});default:var o=new us({code:Pr.CONVERSATION_UN_RECORDED_TYPE,message:Mo});return hs(o)}var i=new fi(Vi);i.setMessage("conversationID:".concat(e));var a="".concat(this._className,".deleteConversation");return Ne.log("".concat(a,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:Fn,requestData:n})})).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(a," ok")),t.deleteLocalConversation(e),fs({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ne.error("".concat(a," failed. error:"),e),hs(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,r=e.isPinned;if(!this._conversationMap.has(n))return hs({code:Pr.CONVERSATION_NOT_FOUND,message:yo});var o=this.getLocalConversation(n);if(o.isPinned===r)return fs({conversationID:n});var i=new fi(Hi);i.setMessage("conversationID:".concat(n," isPinned:").concat(r));var a="".concat(this._className,".pinConversation");Ne.log("".concat(a,". conversationID:").concat(n," isPinned:").concat(r));var s=null;return mt(n)?s={type:1,toAccount:n.replace(I.CONV_C2C,"")}:_t(n)&&(s={type:2,groupID:n.replace(I.CONV_GROUP,"")}),this.request({protocolName:jn,requestData:{fromAccount:this.getMyUserID(),operationType:!0===r?1:2,itemList:[s]}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(a," ok")),o.isPinned!==r&&(o.isPinned=r,t._sortConversationListAndEmitEvent()),rs({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ne.error("".concat(a," failed. error:"),e),hs(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,r=e.messageRemindType,o=!1,i=this.getLocalConversation(n?"".concat(I.CONV_C2C).concat(t):"".concat(I.CONV_GROUP).concat(t));return i&&i.messageRemindType!==r&&(i.messageRemindType=r,o=!0),o}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this;Ne.debug("".concat(this._className,".onC2CMessageRemindTypeSynced options:"),e),e.dataList.forEach((function(e){if(!Dt(e.muteNotificationsSync)){var n,r=e.muteNotificationsSync,o=r.to,i=r.updateSequence,a=r.muteFlag;t._messageRemindHandler.setUpdateSequence(i),0===a?n=I.MSG_REMIND_ACPT_AND_NOTE:1===a?n=I.MSG_REMIND_DISCARD:2===a&&(n=I.MSG_REMIND_ACPT_NOT_NOTE);var s=0;t.patchMessageRemindType({ID:o,isC2CConversation:!0,messageRemindType:n})&&(s+=1),Ne.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);Ne.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(I.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 r=this.getModule(zt).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:r.nick,latestAvatar:r.avatar}),Ne.log("".concat(this._className,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){Ne.log("".concat(this._className,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,r=e.avatar;if(this._conversationMap.has(t)){var o=this._conversationMap.get(t).userProfile;Be(n)&&o.nick!==n&&(o.nick=n),Be(r)&&o.avatar!==r&&(o.avatar=r),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,n=this.getLocalConversationList(),r=Date.now();n.forEach((function(n){t.modifyMessageSentByMe(s({conversationID:n.conversationID},e))})),Ne.log("".concat(this._className,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-r," 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(Xt);if(!t)return e;var n=y(this._conversationMap.values()).filter((function(e){return e.type===I.CONV_C2C}));if(0===n.length)return e;var r=0;return n.forEach((function(e){var n=e.conversationID.replace(I.CONV_C2C,"");if(t.isMyFriend(n)){var o=t.getFriendRemark(n);e.remark!==o&&(e.remark=o,r+=1)}})),Ne.log("".concat(this._className,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(r)),e}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._pagingStatus=Pt.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()}}]),r}(vn),Ps=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 o(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 r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Ne.log("".concat(e._className,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"onNewGroupTips",value:function(e){Ne.debug("".concat(this._className,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,r=t.result,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),n.length>0&&(this._groupModule.getModule(Qt).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n)),r.length>0&&(this._groupModule.emitOuterEvent(T.MESSAGE_RECEIVED,r),this.handleMessageList(r))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=e.event,n=e.dataList,r=null,o=[],i=[],a={},c=[],u=0,l=n.length;u<l;u++){var d=n[u],f=d.groupProfile.groupID,h=this._groupModule.hasLocalGroup(f);if(h||!this._groupModule.isUnjoinedAVChatRoom(f))if(h)if(this._groupModule.isMessageFromAVChatroom(f)){var p=ft(d);p.event=t,c.push(p)}else{d.currentUser=this._groupModule.getMyUserID(),d.conversationType=I.CONV_GROUP,(r=new ns(d)).setElement({type:I.MSG_GRP_TIP,content:s({},d.elements,{groupProfile:d.groupProfile})}),r.isSystemMessage=!1;var g=this._groupModule.getModule(Qt),v=r,m=v.conversationID,_=v.sequence;if(6===t)r._onlineOnlyFlag=!0,i.push(r);else if(!g.pushIntoNoticeResult(i,r))continue;if(6!==t||!g.getLocalConversation(m)){6!==t&&this._groupModule.getModule(pn).addMessageSequence({key:ii,message:r});var y=g.isRemoteRead({conversationID:m,sequence:_});if(ze(a[m]))a[m]=o.push({conversationID:m,unreadCount:"in"!==r.flow||r._onlineOnlyFlag||y?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})-1;else{var b=a[m];o[b].type=r.conversationType,o[b].subType=r.conversationSubType,o[b].lastMessage=r,"in"!==r.flow||r._onlineOnlyFlag||y||o[b].unreadCount++}}}else this._cacheGroupTipsAndProbe({groupID:f,event:t,item:d})}return{eventDataList:o,result:i,AVChatRoomMessageList:c}}},{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:Ne.warn("".concat(t._className,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&qe(n)&&(o.memberNum=n)}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&qe(n)&&(o.memberNum=n),this._groupModule.deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(r);o&&qe(n)&&(o.memberNum=n),this._groupModule.deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Jt);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(I.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(Jt);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(I.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,r=n.newGroupProfile,o=n.groupProfile.groupID,i=this._groupModule.getLocalGroupProfile(o);Object.keys(r).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(i,r);break;default:i[e]=r[e]}})),this._groupModule.emitGroupListUpdate(!0,!0)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,r=this._groupModule.getLocalGroupProfile(n),o=this._groupModule.getMyUserID();if(o===t.ownerID){r.updateGroup({selfInfo:{role:I.GRP_MBR_ROLE_OWNER}});var i=this._groupModule.getModule(Jt),a=i.getLocalGroupMemberInfo(n,o),s=this._groupModule.getLocalGroupProfile(n).ownerID,c=i.getLocalGroupMemberInfo(n,s);a&&a.updateRole(I.GRP_MBR_ROLE_OWNER),c&&c.updateRole(I.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.payload.groupProfile.groupID,n=this._groupModule.getModule(Jt);e.payload.memberList.forEach((function(e){var r=n.getLocalGroupMemberInfo(t,e.userID);r&&qe(e.muteTime)&&r.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),Ne.log("".concat(this._className,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupTips(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===I.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),Ne.log("".concat(this._className,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear()}}]),e}(),Gs=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(vs,this._initGroupList,this)}return o(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 r=e._checkCountMap.get(n),o=e._groupModule.hasLocalGroup(n);Ne.log("".concat(e._className,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(o," checkCount:").concat(r)),o?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"_initGroupList",value:function(){var e=this;Ne.log("".concat(this._className,"._initGroupList"));var t=new fi(sa),n=this._groupModule.getStorageGroupList();if(We(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var r=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(r)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();Ne.log("".concat(this._className,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._className,".handleUpdateGroupLastMessage");if(Ne.debug("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var n,r,o,i=!1,a=0,s=e.length;a<s;a++)(n=e[a]).type===I.CONV_GROUP&&(r=n.conversationID.split(/^GROUP/)[1],(o=this._groupModule.getLocalGroupProfile(r))&&(o.lastMessage=n.lastMessage,i=!0));i&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){Ne.debug("".concat(this._className,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,r=t.messageList,o=t.AVChatRoomMessageList;o.length>0&&this._groupModule.onAVChatRoomMessage(o),this._groupModule.filterModifiedMessage(r),n.length>0&&(this._groupModule.getModule(Qt).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n));var i=this._groupModule.filterUnmodifiedMessage(r);i.length>0&&this._groupModule.emitOuterEvent(T.MESSAGE_RECEIVED,i),r.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=e.dataList,n=e.event,r=e.isInstantMessage,o=null,i=[],a=[],s=[],c={},u=I.CONV_GROUP,l=this._groupModule.getModule(rn),d=this._groupModule.getModule(pn),f=t.length;f>1&&t.sort((function(e,t){return e.sequence-t.sequence}));for(var h=0;h<f;h++){var p=t[h],g=p.groupProfile.groupID,v=this._groupModule.hasLocalGroup(g);if(v||!this._groupModule.isUnjoinedAVChatRoom(g))if(v)if(this._groupModule.isMessageFromAVChatroom(g)){var m=ft(p);m.event=n,s.push(m)}else{p.currentUser=this._groupModule.getMyUserID(),p.conversationType=u,p.isSystemMessage=!!p.isSystemMessage,o=new ns(p),p.elements=l.parseElements(p.elements,p.from),o.setElement(p.elements);var _=1===t[h].isModified,y=this._groupModule.getModule(Qt);if(y.isMessageSentByCurrentInstance(o)?o.isModified=_:_=!1,1===p.onlineOnlyFlag)o._onlineOnlyFlag=!0,a.push(o);else{if(!y.pushIntoMessageList(a,o,_))continue;d.addMessageSequence({key:ii,message:o}),r&&o.clientTime>0&&d.addMessageDelay(o.clientTime);var b=o,M=b.conversationID,S=b.sequence,k=y.isRemoteRead({conversationID:M,sequence:S});if(ze(c[M])){var w=0;"in"===o.flow&&(o._isExcludedFromUnreadCount||k||(w=1)),c[M]=i.push({conversationID:M,unreadCount:w,type:o.conversationType,subType:o.conversationSubType,lastMessage:o._isExcludedFromLastMessage?"":o})-1}else{var C=c[M];i[C].type=o.conversationType,i[C].subType=o.conversationSubType,i[C].lastMessage=o._isExcludedFromLastMessage?"":o,"in"===o.flow&&(o._isExcludedFromUnreadCount||k||i[C].unreadCount++)}}}else this._cacheGroupMessageAndProbe({groupID:g,event:n,item:p})}return{conversationOptionsList:i,messageList:a,AVChatRoomMessageList:s}}},{key:"onGroupMessageRevoked",value:function(e){Ne.debug("".concat(this._className,".onGroupMessageRevoked nums:").concat(e.dataList.length));var t=this._groupModule.getModule(Qt),n=[],r=null;e.dataList.forEach((function(e){var o=e.elements.revokedInfos;ze(o)||o.forEach((function(e){(r=t.revoke("GROUP".concat(e.groupID),e.sequence,e.random))&&n.push(r)}))})),0!==n.length&&(t.onMessageRevoked(n),this._groupModule.emitOuterEvent(T.MESSAGE_REVOKED,n))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(y(this._groupModule.getGroupMap())),n=0,r=e.length;n<r;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)}));for(var o=y(t.keys()),i=0,a=o.length;i<a;i++)this._groupModule.deleteGroup(o[i])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._className,".getGroupList"),r=new fi(ia);Ne.log("".concat(n));var o={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",muteAllMembers:"ShutUpAllMember"},i=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime"],a=[];return e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){o[e]&&i.push(o[e])})),this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:i,groupList:a}).then((function(){Ne.log("".concat(n," ok. count:").concat(a.length)),t._groupListTreeShaking(a),t._groupModule.updateGroupMap(a);var e=t._groupModule.getLocalGroupList().length;return r.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(a.length,", after tree shaking, local count:").concat(e)).end(),t.tempConversationList&&(Ne.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(),rs({groupList:t._groupModule.getLocalGroupList()})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._className,"._pagingGetGroupList"),r=e.isCommunityRelay,o=void 0!==r&&r,i=e.limit,a=e.offset,s=e.groupBaseInfoFilter,c=e.groupList,u=new fi(la);return this._groupModule.request({protocolName:qn,requestData:{type:o?I.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:i,offset:a,responseFilter:{groupBaseInfoFilter:s,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var r=e.data,l=r.groups,d=r.totalCount;c.push.apply(c,y(l));var f=a+i,h=!(d>f),p="offset:".concat(a," totalCount:").concat(d," isCompleted:").concat(h," ")+"currentCount:".concat(c.length," isCommunityRelay:").concat(o);return u.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(p)).end(),o||h?!o&&h?(Ne.log("".concat(n," start to get community list")),a=0,t._pagingGetGroupList({limit:i,offset:a,groupBaseInfoFilter:s,groupList:c,isCommunityRelay:!0})):o&&!h?(a=f,t._pagingGetGroupList({limit:i,offset:a,groupBaseInfoFilter:s,groupList:c,isCommunityRelay:!0})):(Ne.log("".concat(n," ok. totalCount:").concat(c.length)),rs({groupList:c})):(a=f,t._pagingGetGroupList({limit:i,offset:a,groupBaseInfoFilter:s,groupList:c}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],i=n[1];u.setMessage("isCommunityRelay:".concat(o)).setError(e,r,i).end()})),o?(11e3===e.code&&(u=null,Ne.log("".concat(n," ok. community unavailable"))),fs({groupList:c})):hs(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),Ne.log("".concat(this._className,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,o=e.item;this._cacheGroupMessage(n,{event:r,dataList:[o]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===I.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),Ne.log("".concat(this._className,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._groupModule.getInnerEmitterInstance().once(vs,this._initGroupList,this)}}]),e}(),Us={1:"init",2:"modify",3:"clear",4:"delete"},Fs=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(ms,this._onCloudConfigUpdated,this)}return o(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");ze(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,r=e.groupAttributeOption,o=r.mainSequence,i=r.hasChangedAttributeInfo,a=r.groupAttributeList,s=void 0===a?[]:a,c=r.operationType;if(Ne.log("".concat(this._className,".onGroupAttributesUpdated. hasChangedAttributeInfo:").concat(i," operationType:").concat(c)),!ze(c)){if(1===i){if(4===c){var u=[];s.forEach((function(e){u.push(e.key)})),s=y(u),u=null}return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:s,operationType:Us[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}),Ne.log("".concat(this._className,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,o=this._checkCachedGroupAttributes({groupID:n,funcName:"initGroupAttributes"});if(!0!==o)return hs(o);var i=this._groupAttributesMap.get(n),a=i.remoteMainSequence,s=i.avChatRoomKey,c=new fi(ha);return c.setMessage("groupID:".concat(n," mainSequence:").concat(a," groupAttributes:").concat(JSON.stringify(r))),this._groupModule.request({protocolName:lr,requestData:{groupID:n,avChatRoomKey:s,mainSequence:a,groupAttributeList:this._transformGroupAttributes(r)}}).then((function(e){var o=e.data,i=o.mainSequence,a=y(o.groupAttributeList);return a.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:i,groupAttributeList:a,operationType:"init"}),c.setNetworkType(t._groupModule.getNetworkType()).end(),Ne.log("".concat(t._className,".initGroupAttributes ok. groupID:").concat(n)),rs({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),hs(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,o=this._checkCachedGroupAttributes({groupID:n,funcName:"setGroupAttributes"});if(!0!==o)return hs(o);var i=this._groupAttributesMap.get(n),a=i.remoteMainSequence,s=i.avChatRoomKey,c=i.attributes,u=this._transformGroupAttributes(r);u.forEach((function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence)}));var l=new fi(pa);return l.setMessage("groupID:".concat(n," mainSequence:").concat(a," groupAttributes:").concat(JSON.stringify(r))),this._groupModule.request({protocolName:dr,requestData:{groupID:n,avChatRoomKey:s,mainSequence:a,groupAttributeList:u}}).then((function(e){var o=e.data,i=o.mainSequence,a=y(o.groupAttributeList);return a.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:i,groupAttributeList:a,operationType:"modify"}),l.setNetworkType(t._groupModule.getNetworkType()).end(),Ne.log("".concat(t._className,".setGroupAttributes ok. groupID:").concat(n)),rs({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),hs(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.keyList,o=void 0===r?[]:r,i=this._checkCachedGroupAttributes({groupID:n,funcName:"deleteGroupAttributes"});if(!0!==i)return hs(i);var a=this._groupAttributesMap.get(n),s=a.remoteMainSequence,c=a.avChatRoomKey,u=a.attributes,l=y(u.keys()),d=hr,f="clear",h={groupID:n,avChatRoomKey:c,mainSequence:s};if(o.length>0){var p=[];l=[],d=fr,f="delete",o.forEach((function(e){var t=0;u.has(e)&&(t=u.get(e).sequence,l.push(e)),p.push({key:e,sequence:t})})),h.groupAttributeList=p}var g=new fi(ga);return g.setMessage("groupID:".concat(n," mainSequence:").concat(s," keyList:").concat(o," protocolName:").concat(d)),this._groupModule.request({protocolName:d,requestData:h}).then((function(e){var r=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:o,operationType:f}),g.setNetworkType(t._groupModule.getNetworkType()).end(),Ne.log("".concat(t._className,".deleteGroupAttributes ok. groupID:").concat(n)),rs({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];g.setError(e,r,o).end()})),hs(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n=e.groupID,r=this._checkCachedGroupAttributes({groupID:n,funcName:"getGroupAttributes"});if(!0!==r)return hs(r);var o=this._groupAttributesMap.get(n),i=o.avChatRoomKey,a=o.lastUpdateTime,s=o.localMainSequence,c=o.remoteMainSequence,u=new fi(va);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:i}).then((function(r){u.setMoreMessage("get attributes from remote. count:".concat(r.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Ne.log("".concat(t._className,".getGroupAttributes from remote. groupID:").concat(n));var o=t._getLocalGroupAttributes(e);return rs({groupAttributes:o})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),hs(e)}));u.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),Ne.log("".concat(this._className,".getGroupAttributes from cache. groupID:").concat(n));var l=this._getLocalGroupAttributes(e);return fs({groupAttributes:l})}},{key:"_getGroupAttributes",value:function(e){var t=this;return this._groupModule.request({protocolName:pr,requestData:s({},e)}).then((function(n){var r=n.data,o=r.mainSequence,i=r.groupAttributeList,a=y(i);return ze(o)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:o,groupAttributeList:a,operationType:"get"}),Ne.log("".concat(t._className,"._getGroupAttributes ok. groupID:").concat(e.groupID)),i})).catch((function(e){return hs(e)}))}},{key:"_getLocalGroupAttributes",value:function(e){var t=e.groupID,n=e.keyList,r=void 0===n?[]:n,o={};if(!this._groupAttributesMap.has(t))return o;var i=this._groupAttributesMap.get(t).attributes;if(r.length>0)r.forEach((function(e){i.has(e)&&(o[e]=i.get(e).value)}));else{var a,s=C(i.keys());try{for(s.s();!(a=s.n()).done;){var c=a.value;o[c]=i.get(c).value}}catch(l){s.e(l)}finally{s.f()}}return o}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,r=e.groupAttributeList,o=e.operationType;if(this._groupAttributesMap.has(t)){var i=this._groupAttributesMap.get(t),a=i.localMainSequence;if("get"===o||n-a==1)i.remoteMainSequence=n,i.localMainSequence=n,i.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:i,groupAttributeList:r,operationType:o});else{if(a===n)return;i.remoteMainSequence=n}this._groupAttributesMap.set(t,i);var s="operationType:".concat(o," localMainSequence:").concat(a," remoteMainSequence:").concat(n);Ne.log("".concat(this._className,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,r=e.operationType;"clear"!==r?"delete"!==r?("init"===r&&t.attributes.clear(),n.forEach((function(e){var n=e.key,r=e.value,o=e.sequence;t.attributes.set(n,{value:r,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!==I.GRP_AVCHATROOM)return Ne.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat("非直播群不能使用群属性 API")),new us({code:Pr.CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM,message:"非直播群不能使用群属性 API"});var r=this._groupAttributesMap.get(t);if(ze(r)){var o="如果 groupID:".concat(t," 是直播群,使用 ").concat(n," 前先使用 joinGroup 接口申请加入群组,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return Ne.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat(o)),new us({code:Pr.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(T.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t})}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this.CACHE_EXPIRE_TIME=3e4}}]),e}(),js=function(){function e(t){n(this,e);var r=t.manager,o=t.groupID,i=t.onInit,a=t.onSuccess,s=t.onFail;this._className="Polling",this._manager=r,this._groupModule=r._groupModule,this._onInit=i,this._onSuccess=a,this._onFail=s,this._groupID=o,this._timeoutID=-1,this._isRunning=!1,this._protocolName=ar}return o(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=sr),Ne.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(){Ne.log("".concat(this._className,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),$s={3:!0,4:!0,5:!0,6:!0},qs=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 As(100),this.messageIDLinkedList=new As(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 o(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?y(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){return s({},this._pollingRequestInfoMap.get(e))}},{key:"_handleSuccess",value:function(e,t){var n=t.data,r=n.key,o=n.nextSeq,i=n.rspMsgList;if(0!==n.errorCode){var a=this._pollingRequestInfoMap.get(e),s=new fi(Ta),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;Be(r)&&qe(o)&&this._pollingRequestInfoMap.set(e,{key:r,startSeq:o}),We(i)&&i.length>0&&(i.forEach((function(e){e.to=e.groupID})),this.onMessage(i))}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(We(e)&&0!==e.length){var t=null,n=[],r=this._getModule(Qt),o=this._getModule(pn),i=e.length;i>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var a=this._getModule(Zt),s=0;s<i;s++)if($s[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(ln).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(ln).onMessageMaybeLost(l,d+1,f-1):f<-1&&f>=-20&&this._getModule(ln).onMessageMaybeLost(l,t.sequence+1,Math.abs(f)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var h=!1;if(this._isMessageSentByCurrentInstance(t)?c&&(h=!0,t.isModified=c,r.updateMessageIsModifiedProperty(t)):h=!0,h){if(t.conversationType,I.CONV_SYSTEM,!u&&t.conversationType!==I.CONV_SYSTEM){var p=t.conversationID.replace(I.CONV_GROUP,"");this._pollingInstanceMap.has(p)?o.addMessageSequence({key:si,message:t}):(t.type!==I.MSG_GRP_TIP&&t.clientTime>0&&o.addMessageDelay(t.clientTime),o.addMessageSequence({key:ai,message:t}))}n.push(t)}}}else Ne.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(Qt).onNewMessage({conversationOptionsList:g,isInstantMessage:!0}),Ne.debug("".concat(this._className,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var v=this._groupModule.filterUnmodifiedMessage(n);v.length>0&&this._groupModule.emitOuterEvent(T.MESSAGE_RECEIVED,v),n.length=0}}}},{key:"_checkMessageStacked",value:function(e){var t=e.length;t>=100&&(Ne.warn("".concat(this._className,"._checkMessageStacked 直播群消息堆积数:").concat(e.length,'!可能会导致微信小程序渲染时遇到 "Dom limit exceeded" 的错误,建议接入侧此时只渲染最近的10条消息')),this._reportMessageStackedCount<5&&(new fi(Aa).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(t," groupID:").concat(y(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(Qt).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?I.CONV_SYSTEM:I.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new ns(e),r=this.packElements(e,t);return n.setElement(r),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),this._onGroupAttributesUpdated(e),{type:I.MSG_GRP_TIP,content:s({},e.elements,{groupProfile:e.groupProfile})}):5===t?{type:I.MSG_GRP_SYS_NOTICE,content:s({},e.elements,{groupProfile:e.groupProfile})}:this._getModule(rn).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var r=e[n],o=r.conversationID;if(t.has(o)){var i=t.get(o);i.lastMessage=r,"in"===r.flow&&i.unreadCount++}else t.set(o,{conversationID:r.conversationID,unreadCount:"out"===r.flow?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})}return y(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,r=void 0===n?void 0:n;if(!Dt(r)){var o=r.onlineMemberNum,i=void 0===o?0:o,a=r.expireTime,s=void 0===a?this.DEFAULT_EXPIRE_TIME:a,c=this._onlineMemberCountMap.get(t)||{},u=Date.now();Dt(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:u,memberCount:i,expireTime:s}):(c.latestUpdateTime=u,c.memberCount=i),Ne.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 js({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),Ne.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,r=e.group,o=r.groupID;return t._joinedGroupMap.set(o,r),t._groupModule.updateGroupMap([r]),t._groupModule.deleteUnjoinedAVChatRoom(o),t._groupModule.emitGroupListUpdate(!0,!1),ze(n)?fs({status:Ue,group:r}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,r=e.group,o=r.groupID;return t._pollingRequestInfoMap.set(o,{key:n,startSeq:0}),t.start(o),t._groupModule.isLoggedIn()?fs({status:Ue,group:r}):fs({status:Ue})}))}},{key:"_preCheck",value:function(){if(this._getModule(Zt).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=_(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==I.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,r="".concat(this._className,".joinWithoutAuth"),o=new fi(fa);return this._groupModule.request({protocolName:Kn,requestData:e}).then((function(e){var i=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=_(e,2),r=(t[0],t[1]);o.setNetworkType(r).setMessage("groupID:".concat(n," longPollingKey:").concat(i)).end(!0)})),ze(i))return hs(new us({code:Pr.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN,message:Do}));Ne.log("".concat(r," ok. groupID:").concat(n)),t._getModule(Qt).setCompleted("".concat(I.CONV_GROUP).concat(n));var a=new Os({groupID:n});return t.startRunLoop({group:a,longPollingKey:i}),rs({status:Ue})})).catch((function(e){return Ne.error("".concat(r," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var r=_(t,2),i=r[0],a=r[1];o.setError(e,i,a).setMessage("groupID:".concat(n)).end(!0)})),hs(e)})).finally((function(){t._groupModule.getModule(tn).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return Dt(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 rs({memberCount:e.memberCount})})).catch((function(e){return hs(e)}))):fs({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._className,"._getGroupOnlineMemberCount");return this._groupModule.request({protocolName:cr,requestData:{groupID:e}}).then((function(r){var o=t._onlineMemberCountMap.get(e)||{},i=r.data,a=i.onlineMemberNum,s=void 0===a?0:a,c=i.expireTime,u=void 0===c?t.DEFAULT_EXPIRE_TIME:c;Ne.log("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(u));var l=Date.now();return Dt(o)&&(o.lastReqTime=l),t._onlineMemberCountMap.set(e,Object.assign(o,{lastSyncTime:l,latestUpdateTime:l,memberCount:s,expireTime:u})),{memberCount:s}})).catch((function(r){return Ne.warn("".concat(n," failed. error:"),r),new fi(Ca).setCode(r.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(r))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(r)}))}},{key:"_onGroupAttributesUpdated",value:function(e){var t=e.groupProfile.groupID,n=e.elements,r=n.operationType,o=n.newGroupProfile;if(6===r){var i=(void 0===o?void 0:o).groupAttributeOption;Dt(i)||this._groupModule.onGroupAttributesUpdated({groupID:t,groupAttributeOption:i})}}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){ze(e)||qe(e)||(this._pollingInterval=parseInt(e,10),Ne.log("".concat(this._className,".setPollingInterval value:").concat(this._pollingInterval)))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"reset",value:function(e){if(e){Ne.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{Ne.log("".concat(this._className,".reset all"));var n,r=C(this._pollingInstanceMap.values());try{for(r.s();!(n=r.n()).done;)n.value.stop()}catch(i){r.e(i)}finally{r.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}(),Bs=1,Vs=15,Hs=function(){function e(t){n(this,e),this._groupModule=t,this._className="GroupSystemNoticeHandler",this.pendencyMap=new Map}return o(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,r=e.isInstantMessage;Ne.debug("".concat(this._className,".onReceiveSystemNotice count:").concat(t.length));var o=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:r}),i=o.eventDataList,a=o.result;i.length>0&&(this._groupModule.getModule(Qt).onNewMessage({conversationOptionsList:i,isInstantMessage:r}),this._onReceivedGroupSystemNotice({result:a,isInstantMessage:r})),r?a.length>0&&this._groupModule.emitOuterEvent(T.MESSAGE_RECEIVED,a):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,n=e.isInstantMessage,r=null,o=t.length,i=0,a=[],c={conversationID:I.CONV_SYSTEM,unreadCount:0,type:I.CONV_SYSTEM,subType:null,lastMessage:null};for(i=0;i<o;i++){var u=t[i];u.elements.operationType!==Vs&&(u.currentUser=this._groupModule.getMyUserID(),u.conversationType=I.CONV_SYSTEM,u.conversationID=I.CONV_SYSTEM,(r=new ns(u)).setElement({type:I.MSG_GRP_SYS_NOTICE,content:s({},u.elements,{groupProfile:u.groupProfile})}),r.isSystemMessage=!0,(1===r.sequence&&1===r.random||2===r.sequence&&2===r.random)&&(r.sequence=it(),r.random=it(),r.generateMessageID(u.currentUser),Ne.log("".concat(this._className,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(r.ID))),this._groupModule.getModule(Qt).pushIntoNoticeResult(a,r)&&(n?c.unreadCount++:r.setIsRead(!0),c.subType=r.conversationSubType))}return c.lastMessage=a[a.length-1],{eventDataList:a.length>0?[c]:[],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(Qt).getLocalMessageList(I.CONV_SYSTEM),r=[];n.forEach((function(t){var n=t.payload,o=n.operatorID,i=n.operationType,a=n.groupProfile;if(i===Bs){var s="".concat(o,"_").concat(a.groupID,"_").concat(a.to),c=e.pendencyMap.get(s);c&&qe(c.handled)&&0!==c.handled&&r.push(t)}})),e.deleteGroupSystemNotice({messageList:r})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._className,".deleteGroupSystemNotice");return We(e.messageList)&&0!==e.messageList.length?(Ne.log("".concat(n)+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:ir,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:I.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Ne.log("".concat(n," ok"));var r=t._groupModule.getModule(Qt);return e.messageList.forEach((function(e){r.deleteLocalMessage(e)})),rs()})).catch((function(e){return Ne.error("".concat(n," error:"),e),hs(e)}))):fs()}},{key:"getPendencyList",value:function(e){var t=this;return this._groupModule.request({protocolName:or,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(y(n),y(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,r=t.groupID,o=this._groupModule.getModule(Jt).getLocalGroupMemberInfo(r,n);o&&o.updateRole(I.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,o=this._groupModule.getModule(Jt).getLocalGroupMemberInfo(r,n);o&&o.updateRole(I.GRP_MBR_ROLE_MEMBER)}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),Ws=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="GroupModule",o._commonGroupHandler=null,o._AVChatRoomHandler=null,o._groupSystemNoticeHandler=null,o._commonGroupHandler=new Gs(g(o)),o._groupAttributesHandler=new Fs(g(o)),o._AVChatRoomHandler=new qs(g(o)),o._groupTipsHandler=new Ps(g(o)),o._groupSystemNoticeHandler=new Hs(g(o)),o.groupMap=new Map,o._unjoinedAVChatRoomList=new Map,o.getInnerEmitterInstance().on(ms,o._onCloudConfigUpdated,g(o)),o}return o(r,[{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===I.CONV_GROUP){var n=e.to;return this.hasLocalGroup(n)?fs():this.getGroupProfile({groupID:n}).then((function(r){var o=r.data.group.type;if(Ne.log("".concat(t._className,".guardForAVChatRoom. groupID:").concat(n," type:").concat(o)),o===I.GRP_AVCHATROOM){var i="userId:".concat(e.from," 未加入群 groupID:").concat(n,"。发消息前先使用 joinGroup 接口申请加群,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return Ne.warn("".concat(t._className,".guardForAVChatRoom sendMessage not allowed. ").concat(i)),hs(new us({code:Pr.MESSAGE_SEND_FAIL,message:i,data:{message:e}}))}return fs()}))}return fs()}},{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;We(e)&&e.forEach((function(e){var n=e.conversationID.replace(I.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(!ze(n)){var r=t.getModule(Qt);n.forEach((function(e){var n=e.groupID,o=e.lastMessageSeq;Ne.debug("".concat(t._className,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(o));var i="".concat(I.CONV_GROUP).concat(n);r.updateIsReadAfterReadReport({conversationID:i,lastMessageSeq:o}),r.updateUnreadCount(i)}))}}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new Os(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 Os(e))}));var n,r=this.getMyUserID(),o=C(this.groupMap);try{for(o.s();!(n=o.n()).done;)_(n.value,2)[1].selfInfo.userID=r}catch(a){o.e(a)}finally{o.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(en).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!gt(t)})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(en).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return y(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=y(this.groupMap).filter((function(e){var t=_(e,2);return t[0],!Dt(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(y(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(T.GROUP_LIST_UPDATED),t){var r=JSON.parse(JSON.stringify(n)),o=this.getModule(Qt);o.updateConversationGroupProfile(r)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Qt),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Ne.log("".concat(this._className,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(Qt);e.forEach((function(e){var n=e.groupID,r=e.selfInfo,o=r.excludedUnreadSequenceList,i=r.readedSequence;if(We(o)){var a=0;o.forEach((function(t){t>=i&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(I.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):fs()}},{key:"getGroupProfile",value:function(e){var t=this,n=new fi(aa),r="".concat(this._className,".getGroupProfile"),o=e.groupID,i=e.groupCustomFieldFilter;Ne.log("".concat(r," 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:i,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(a).then((function(e){var i,a=e.data,s=a.successGroupList,c=a.failureGroupList;return Ne.log("".concat(r," ok")),c.length>0?hs(c[0]):(gt(s[0].type)&&!t.hasLocalGroup(o)?i=new Os(s[0]):(t.updateGroupMap(s),i=t.getLocalGroupProfile(o)),t.getModule(Qt).updateConversationGroupProfile([i]),n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(o," type:").concat(i.type," muteAllMembers:").concat(i.muteAllMembers," ownerID:").concat(i.ownerID)).end(),rs({group:i}))})).catch((function(o){return t.probeNetwork().then((function(t){var r=_(t,2),i=r[0],a=r[1];n.setError(o,i,a).setMessage("groupID:".concat(e.groupID)).end()})),Ne.error("".concat(r," failed. error:"),o),hs(o)}))}},{key:"getGroupProfileAdvance",value:function(e){var t=this,n="".concat(this._className,".getGroupProfileAdvance"),r=e.groupIDList;We(r)&&r.length>50&&(Ne.warn("".concat(n," 获取群资料的数量不能超过50个")),r.length=50);var o=[],i=[];r.forEach((function(e){vt({groupID:e})?i.push(e):o.push(e)}));var a=[];if(o.length>0){var c=this._getGroupProfileAdvance(s({},e,{groupIDList:o}));a.push(c)}if(i.length>0){var u=this._getGroupProfileAdvance(s({},e,{groupIDList:i,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,y(e.successGroupList)),n.push.apply(n,y(e.failureGroupList))})),rs({successGroupList:t,failureGroupList:n})})).catch((function(e){return Ne.error("".concat(t._className,"._getGroupProfileAdvance failed. error:"),e),hs(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,r=void 0!==n&&n,o=p(e,["relayFlag"]);return this.request({protocolName:Bn,requestData:o}).then((function(e){Ne.log("".concat(t._className,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return ze(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new us({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return r&&vt({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:hs(t)}))}},{key:"createGroup",value:function(e){var t=this,n="".concat(this._className,".createGroup"),r=e.type,o=e.groupID;if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(r))return hs({code:Pr.ILLEGAL_GROUP_TYPE,message:So});if(!vt({type:r})&&!Dt(o)&&vt({groupID:o}))return hs({code:Pr.ILLEGAL_GROUP_ID,message:wo});if(gt(r)&&!ze(e.memberList)&&e.memberList.length>0&&(Ne.warn("".concat(n," 创建 AVChatRoom 时不能添加群成员,自动忽略该字段")),e.memberList=void 0),pt(r)||ze(e.joinOption)||(Ne.warn("".concat(n," 创建 Work/Meeting/AVChatRoom/Community 群时不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),vt({type:r})&&!Dt(o)&&!vt({groupID:o}))return hs({code:Pr.ILLEGAL_GROUP_ID,message:wo});var i=new fi(Yi);Ne.log("".concat(n," options:"),e);var a=[];return this.request({protocolName:Vn,requestData:s({},e,{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(r){var o=r.data,c=o.groupID,u=o.overLimitUserIDList,l=void 0===u?[]:u;if(a=l,i.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(c," overLimitUserIDList=").concat(l)).end(),Ne.log("".concat(n," ok groupID:").concat(c," overLimitUserIDList:"),l),e.type===I.GRP_AVCHATROOM)return t.getGroupProfile({groupID:c});Dt(e.memberList)||Dt(l)||(e.memberList=e.memberList.filter((function(e){return-1===l.indexOf(e.userID)}))),t.updateGroupMap([s({},e,{groupID:c})]);var d=t.getModule(Wt),f=d.createCustomMessage({to:c,conversationType:I.CONV_GROUP,payload:{data:"group_create",extension:"".concat(t.getMyUserID(),"创建群组")}});return d.sendMessageInstance(f),t.emitGroupListUpdate(),t.getGroupProfile({groupID:c})})).then((function(e){var t=e.data.group,n=t.selfInfo,r=n.nameCard,o=n.joinTime;return t.updateSelfInfo({nameCard:r,joinTime:o,messageRemindType:I.MSG_REMIND_ACPT_AND_NOTE,role:I.GRP_MBR_ROLE_OWNER}),rs({group:t,overLimitUserIDList:a})})).catch((function(r){return i.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],o=t[1];i.setError(r,n,o).end()})),Ne.error("".concat(n," failed. error:"),r),hs(r)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._className,".dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===I.GRP_WORK)return hs(new us({code:Pr.CANNOT_DISMISS_WORK,message:Io}));var r=new fi(ra);return r.setMessage("groupID:".concat(e)),Ne.log("".concat(n," groupID:").concat(e)),this.request({protocolName:Hn,requestData:{groupID:e}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),rs({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._className,".updateGroupProfile");!this.hasLocalGroup(e.groupID)||pt(this.getLocalGroupProfile(e.groupID).type)||ze(e.joinOption)||(Ne.warn("".concat(n," Work/Meeting/AVChatRoom/Community 群不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),ze(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off");var r=new fi(oa);return r.setMessage(JSON.stringify(e)),Ne.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:Wn,requestData:e}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),rs({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.log("".concat(n," failed. error:"),e),hs(e)}))}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,r=e.type,o="".concat(this._className,".joinGroup");if(r===I.GRP_WORK){var i=new us({code:Pr.CANNOT_JOIN_WORK,message:ko});return hs(i)}if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return fs({status:I.JOIN_STATUS_ALREADY_IN_GROUP});var a=new fi(Xi);return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(I.JOIN_STATUS_ALREADY_IN_GROUP)).end(),fs({status:I.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(r){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),Ne.warn("".concat(o," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Ne.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"),r=e.groupID,o=new fi(Xi),i=s({},e),a=this.canIUse(V.AVCHATROOM_HISTORY_MSG);return a&&(i.historyMessageFlag=1),this.request({protocolName:zn,requestData:i}).then((function(e){var i=e.data,s=i.joinedStatus,c=i.longPollingKey,u=i.avChatRoomFlag,l=i.avChatRoomKey,d=i.messageList,f="groupID:".concat(r," joinedStatus:").concat(s," longPollingKey:").concat(c)+" avChatRoomFlag:".concat(u," canGetAVChatRoomHistoryMessage:").concat(a);switch(o.setNetworkType(t.getNetworkType()).setMessage("".concat(f)).end(),Ne.log("".concat(n," ok. ").concat(f)),s){case Fe:return rs({status:Fe});case Ue:return t.getGroupProfile({groupID:r}).then((function(e){var n,o=e.data.group,i={status:Ue,group:o};return 1===u?(t.getModule(Qt).setCompleted("".concat(I.CONV_GROUP).concat(r)),t._groupAttributesHandler.initGroupAttributesCache({groupID:r,avChatRoomKey:l}),(n=ze(c)?t._AVChatRoomHandler.handleJoinResult({group:o}):t._AVChatRoomHandler.startRunLoop({longPollingKey:c,group:o})).then((function(){t._onAVChatRoomHistoryMessage(d)})),n):(t.emitGroupListUpdate(!0,!1),rs(i))}));default:var h=new us({code:Pr.JOIN_GROUP_FAIL,message:Eo});return Ne.error("".concat(n," error:"),h),hs(h)}})).catch((function(r){return o.setMessage("groupID:".concat(e.groupID)),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],i=t[1];o.setError(r,n,i).end()})),Ne.error("".concat(n," error:"),r),hs(r)}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._className,".quitGroup");Ne.log("".concat(n," groupID:").concat(e));var r=this.checkJoinedAVChatRoomByID(e);if(!r&&!this.hasLocalGroup(e)){var o=new us({code:Pr.MEMBER_NOT_IN_GROUP,message:Ao});return hs(o)}if(r&&!this.isLoggedIn())return Ne.log("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),fs({groupID:e});var i=new fi(Ji);return i.setMessage("groupID:".concat(e)),this.request({protocolName:Yn,requestData:{groupID:e}}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),r&&t._AVChatRoomHandler.reset(e),t.deleteLocalGroupAndConversation(e),rs({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._className,".searchGroupByID"),r={groupIDList:[e]},o=new fi(Qi);return o.setMessage("groupID:".concat(e)),Ne.log("".concat(n," groupID:").concat(e)),this.request({protocolName:Xn,requestData:r}).then((function(e){var r=e.data.groupProfile;if(0!==r[0].errorCode)throw new us({code:r[0].errorCode,message:r[0].errorInfo});return o.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),rs({group:new Os(r[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Ne.warn("".concat(n," failed. error:"),e),hs(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._className,".changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===I.GRP_AVCHATROOM)return hs(new us({code:Pr.CANNOT_CHANGE_OWNER_IN_AVCHATROOM,message:Co}));if(e.newOwnerID===this.getMyUserID())return hs(new us({code:Pr.CANNOT_CHANGE_OWNER_TO_SELF,message:To}));var r=new fi(Zi);return r.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Ne.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:Jn,requestData:e}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok"));var o=e.groupID,i=e.newOwnerID;t.groupMap.get(o).ownerID=i;var a=t.getModule(Jt).getLocalGroupMemberList(o);if(a instanceof Map){var s=a.get(t.getMyUserID());ze(s)||(s.updateRole("Member"),t.groupMap.get(o).selfInfo.role="Member");var c=a.get(i);ze(c)||c.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),rs({group:t.groupMap.get(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"handleGroupApplication",value:function(e){var t=this,n="".concat(this._className,".handleGroupApplication"),r=e.message.payload,o=r.groupProfile.groupID,i=r.authentication,a=r.messageKey,c=r.operatorID,u=new fi(ea);return u.setMessage("groupID:".concat(o)),Ne.log("".concat(n," groupID:").concat(o)),this.request({protocolName:Qn,requestData:s({},e,{applicant:c,groupID:o,authentication:i,messageKey:a})}).then((function(){return u.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),rs({group:t.getLocalGroupProfile(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];u.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error"),e),hs(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,n="".concat(this._className,".handleGroupInvitation"),r=e.message.payload,o=r.groupProfile.groupID,i=r.authentication,a=r.messageKey,c=r.operatorID,u=e.handleAction,l=new fi(ta);return l.setMessage("groupID:".concat(o," inviter:").concat(c," handleAction:").concat(u)),Ne.log("".concat(n," groupID:").concat(o," inviter:").concat(c," handleAction:").concat(u)),this.request({protocolName:Zn,requestData:s({},e,{inviter:c,groupID:o,authentication:i,messageKey:a})}).then((function(){return l.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),rs({group:t.getLocalGroupProfile(o)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error"),e),hs(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):fs({memberCount:0}):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){this._deleteLocalGroup(e),this.getModule(Qt).deleteLocalConversation("GROUP".concat(e)),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(Jt).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 r="";Be(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var o=[];if(He(t)&&He(t.messageControlInfo)){var i=t.messageControlInfo,a=i.excludedFromUnreadCount,s=i.excludedFromLastMessage;!0===a&&o.push("NoUnread"),!0===s&&o.push("NoLastMsg")}var c=e.getGroupAtInfoList();return{protocolName:wn,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:r,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==I.MSG_TEXT||Dt(c)?void 0:c,onlineOnlyFlag:this.isOnlineMessage(e,t)?1:0,clientTime:Ae(),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}}}},{key:"revokeMessage",value:function(e){return this.request({protocolName:er,requestData:{groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Ne.log("".concat(this._className,".deleteMessage groupID:").concat(t," count:").concat(n.length)),this.request({protocolName:ur,requestData:{groupID:t,deleter:this.getMyUserID(),keyList:n}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),r=new fi(Di),o=0;return this._computeLastSequence(e).then((function(n){return o=n,Ne.log("".concat(t._className,".getRoamingMessage groupID:").concat(e.groupID," lastSequence:").concat(o)),t.request({protocolName:rr,requestData:{groupID:e.groupID,count:21,sequence:o}})})).then((function(i){var a=i.data,s=a.messageList,c=a.complete;ze(s)?Ne.log("".concat(n," ok. complete:").concat(c," but messageList is undefined!")):Ne.log("".concat(n," ok. complete:").concat(c," count:").concat(s.length)),r.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(Qt);if(2===c||Dt(s))return l.setCompleted(u),[];var d=l.storeRoamingMessage(s,u);return l.updateIsRead(u),l.patchConversationLastMessage(u),d})).catch((function(i){return t.probeNetwork().then((function(t){var n=_(t,2),a=n[0],s=n[1];r.setError(i,a,s).setMessage("groupID:".concat(e.groupID," lastSequence:").concat(o)).end()})),Ne.warn("".concat(n," failed. error:"),i),hs(i)}))}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageSeq,o="".concat(this._className,".setMessageRead");Ne.log("".concat(o," conversationID:").concat(n," lastMessageSeq:").concat(r)),qe(r)||Ne.warn("".concat(o," 请勿修改 Conversation.lastMessage.lastSequence,否则可能会导致已读上报结果不准确"));var i=new fi(Ri);return i.setMessage("".concat(n,"-").concat(r)),this.request({protocolName:tr,requestData:{groupID:n.replace("GROUP",""),messageReadSeq:r}}).then((function(){i.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(o," ok."));var e=t.getModule(Qt);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:r}),e.updateUnreadCount(n),rs()})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ne.log("".concat(o," failed. error:"),e),hs(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"),r=new fi(ca),o=0,i="";if(this.hasLocalGroup(e)){var a=this.getLocalGroupProfile(e),s=a.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return o=s.lastSequence,i="got lastSequence:".concat(o," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),Ne.log("".concat(n," ").concat(i)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(i)).end(),Promise.resolve(o);if(a.nextMessageSeq>1)return o=a.nextMessageSeq-1,i="got lastSequence:".concat(o," from local group profile[nextMessageSeq]. groupID:").concat(e),Ne.log("".concat(n," ").concat(i)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(i)).end(),Promise.resolve(o)}var c="GROUP".concat(e),u=this.getModule(Qt).getLocalConversation(c);if(u&&u.lastMessage.lastSequence&&!1===u.lastMessage.onlineOnlyFlag)return o=u.lastMessage.lastSequence,i="got lastSequence:".concat(o," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),Ne.log("".concat(n," ").concat(i)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(i)).end(),Promise.resolve(o);var l={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(l).then((function(a){var s=a.data.successGroupList;return Dt(s)?Ne.log("".concat(n," successGroupList is empty. groupID:").concat(e)):(o=s[0].nextMessageSeq-1,i="got lastSequence:".concat(o," from getGroupProfileAdvance. groupID:").concat(e),Ne.log("".concat(n," ").concat(i))),r.setNetworkType(t.getNetworkType()).setMessage("".concat(i)).end(),o})).catch((function(o){return t.probeNetwork().then((function(t){var n=_(t,2),i=n[0],a=n[1];r.setError(o,i,a).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),Ne.warn("".concat(n," failed. error:"),o),hs(o)}))}},{key:"isMessageFromAVChatroom",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!==I.CONV_GROUP}},{key:"deleteLocalGroupMembers",value:function(e,t){this.getModule(Jt).deleteLocalGroupMembers(e,t)}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!Dt(e)){Ne.log("".concat(this._className,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(s({},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 fi(da),r={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(r).then((function(r){var o=r.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(o[0].type)).end(),o[0]})).catch((function(r){t.probeNetwork().then((function(t){var o=_(t,2),i=o[0],a=o[1];n.setError(r,i,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._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),r}(vn),zs=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 o(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&ht(this.memberCustomField,e.memberCustomField),nt(this,e,["memberCustomField"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){ze(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){ze(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&ht(this.memberCustomField,e)}}]),e}(),Ks=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="GroupMemberModule",o.groupMemberListMap=new Map,o.getInnerEmitterInstance().on(_s,o._onProfileUpdated,g(o)),o}return o(r,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,r=function(e){var r=n[e];t.groupMemberListMap.forEach((function(e){e.has(r.userID)&&e.get(r.userID).updateMember({nick:r.nick,avatar:r.avatar})}))},o=0;o<n.length;o++)r(o)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,o=void 0===r?0:r,i=e.count,a=void 0===i?15:i,s="".concat(this._className,".getGroupMemberList"),c=new fi(ma);Ne.log("".concat(s," groupID:").concat(n," offset:").concat(o," count:").concat(a));var u=0,l={groupID:n,limit:a>100?100:a};vt({groupID:n})?l.next="".concat(o):(l.offset=o,u=o+1);var d=[];return this.request({protocolName:gr,requestData:l}).then((function(e){var r=e.data,o=r.members,i=r.memberNum,a=r.next,s=void 0===a?void 0:a;if(ze(s)||(u=Dt(s)?0:s),!We(o)||0===o.length)return u=0,Promise.resolve([]);var c=t.getModule(Yt);return c.hasLocalGroup(n)&&(c.getLocalGroupProfile(n).memberNum=i),d=t._updateLocalGroupMemberMap(n,o),t.getModule(zt).getUserProfile({userIDList:o.map((function(e){return e.userID})),tagList:[xe.NICK,xe.AVATAR]})})).then((function(e){var r=e.data;if(!We(r)||0===r.length)return fs({memberList:[],offset:u});var o=r.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(),Ne.log("".concat(s," ok.")),rs({memberList:d,offset:u})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ne.error("".concat(s," failed. error:"),e),hs(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,n="".concat(this._className,".getGroupMemberProfile"),r=new fi(_a);r.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),Ne.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,i=e.userIDList;return this._getGroupMemberProfileAdvance(s({},e,{userIDList:i})).then((function(e){var n=e.data.members;return We(n)&&0!==n.length?(t._updateLocalGroupMemberMap(o,n),t.getModule(zt).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[xe.NICK,xe.AVATAR]})):fs([])})).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=i.filter((function(e){return t.hasLocalGroupMember(o,e)})).map((function(e){return t.getLocalGroupMemberInfo(o,e)}));return r.setNetworkType(t.getNetworkType()).end(),rs({memberList:a})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._className,".addGroupMember"),r=e.groupID,o=this.getModule(Yt).getLocalGroupProfile(r),i=o.type,a=new fi(ya);if(a.setMessage("groupID:".concat(r," groupType:").concat(i)),gt(i)){var s=new us({code:Pr.CANNOT_ADD_MEMBER_IN_AVCHATROOM,message:Oo});return a.setCode(Pr.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setError(Oo).setNetworkType(this.getNetworkType()).end(),hs(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Ne.log("".concat(n," groupID:").concat(r)),this.request({protocolName:mr,requestData:e}).then((function(r){var i=r.data.members;Ne.log("".concat(n," ok"));var s=i.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),c=i.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),u=i.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),l=i.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?rs({successUserIDList:s,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l}):(o.memberNum+=s.length,rs({successUserIDList:s,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l,group:o}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._className,".deleteGroupMember"),r=e.groupID,o=e.userIDList,i=new fi(ba),a="groupID:".concat(r," ").concat(o.length>5?"userIDList.length:".concat(o.length):"userIDList:".concat(o));i.setMessage(a),Ne.log("".concat(n," groupID:").concat(r," userIDList:"),o);var s=this.getModule(Yt).getLocalGroupProfile(r);return gt(s.type)?hs(new us({code:Pr.CANNOT_KICK_MEMBER_IN_AVCHATROOM,message:No})):this.request({protocolName:_r,requestData:e}).then((function(){return i.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),s.memberNum--,t.deleteLocalGroupMembers(r,o),rs({group:s,userIDList:o})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,r=e.userID,o=e.muteTime,i="".concat(this._className,".setGroupMemberMuteTime");if(r===this.getMyUserID())return hs(new us({code:Pr.CANNOT_MUTE_SELF,message:Go}));Ne.log("".concat(i," groupID:").concat(n," userID:").concat(r));var a=new fi(Ma);return a.setMessage("groupID:".concat(n," userID:").concat(r," muteTime:").concat(o)),this.modifyGroupMemberInfo({groupID:n,userID:r,muteTime:o}).then((function(e){a.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(i," ok"));var r=t.getModule(Yt);return rs({group:r.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];a.setError(e,r,o).end()})),Ne.error("".concat(i," failed. error:"),e),hs(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberRole"),r=e.groupID,o=e.userID,i=e.role,a=this.getModule(Yt).getLocalGroupProfile(r);if(a.selfInfo.role!==I.GRP_MBR_ROLE_OWNER)return hs({code:Pr.NOT_OWNER,message:Lo});if([I.GRP_WORK,I.GRP_AVCHATROOM].includes(a.type))return hs({code:Pr.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM,message:xo});var s=[I.GRP_MBR_ROLE_ADMIN,I.GRP_MBR_ROLE_MEMBER];if(vt({groupID:r})&&s.push(I.GRP_MBR_ROLE_CUSTOM),s.indexOf(i)<0)return hs({code:Pr.INVALID_MEMBER_ROLE,message:Ro});if(o===this.getMyUserID())return hs({code:Pr.CANNOT_SET_SELF_MEMBER_ROLE,message:Po});var c=new fi(ka);return c.setMessage("groupID:".concat(r," userID:").concat(o," role:").concat(i)),Ne.log("".concat(n," groupID:").concat(r," userID:").concat(o)),this.modifyGroupMemberInfo({groupID:r,userID:o,role:i}).then((function(e){return c.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok")),rs({group:a,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberNameCard"),r=e.groupID,o=e.userID,i=void 0===o?this.getMyUserID():o,a=e.nameCard;Ne.log("".concat(n," groupID:").concat(r," userID:").concat(i));var s=new fi(Sa);return s.setMessage("groupID:".concat(r," userID:").concat(i," nameCard:").concat(a)),this.modifyGroupMemberInfo({groupID:r,userID:i,nameCard:a}).then((function(e){Ne.log("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var o=t.getModule(Yt).getLocalGroupProfile(r);return i===t.getMyUserID()&&o&&o.setSelfNameCard(a),rs({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberCustomField"),r=e.groupID,o=e.userID,i=void 0===o?this.getMyUserID():o,a=e.memberCustomField;Ne.log("".concat(n," groupID:").concat(r," userID:").concat(i));var s=new fi(wa);return s.setMessage("groupID:".concat(r," userID:").concat(i," memberCustomField:").concat(JSON.stringify(a))),this.modifyGroupMemberInfo({groupID:r,userID:i,memberCustomField:a}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),Ne.log("".concat(n," ok"));var o=t.getModule(Yt).getLocalGroupProfile(r);return rs({group:o,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];s.setError(e,r,o).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,n=e.groupID,r=e.userID;return this.request({protocolName:yr,requestData:e}).then((function(){if(t.hasLocalGroupMember(n,r)){var o=t.getLocalGroupMemberInfo(n,r);return ze(e.muteTime)||o.updateMuteUntil(e.muteTime),ze(e.role)||o.updateRole(e.role),ze(e.nameCard)||o.updateNameCard(e.nameCard),ze(e.memberCustomField)||o.updateMemberCustomField(e.memberCustomField),o}return t.getGroupMemberProfile({groupID:n,userIDList:[r]}).then((function(e){return _(e.data.memberList,1)[0]}))}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:vr,requestData:s({},e,{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return We(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 zs(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()}}]),r}(vn),Ys=function(){function e(t){n(this,e),this._userModule=t,this._className="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return o(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&&(Ne.warn("".concat(this._className,".getUserProfile 获取用户资料人数不能超过100人")),n.length=100);for(var r,o=[],i=[],a=0,s=n.length;a<s;a++)r=n[a],this._userModule.isMyFriend(r)&&this._containsAccount(r)?i.push(this._getProfileFromMap(r)):o.push(r);if(0===o.length)return fs(i);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 fi(Ea);return l.setMessage(n.length>5?"userIDList.length:".concat(n.length):"userIDList:".concat(n)),this._userModule.request({protocolName:Cn,requestData:e}).then((function(e){l.setNetworkType(t._userModule.getNetworkType()).end(),Ne.info("".concat(t._className,".getUserProfile ok"));var n=t._handleResponse(e).concat(i);return rs(c?n[0]:n)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];l.setError(e,r,o).end()})),Ne.error("".concat(t._className,".getUserProfile failed. error:"),e),hs(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount();if(Ne.log("".concat(this._className,".getMyProfile myAccount:").concat(e)),this._fillMap(),this._containsAccount(e)){var t=this._getProfileFromMap(e);return Ne.debug("".concat(this._className,".getMyProfile from cache, myProfile:")+JSON.stringify(t)),fs(t)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){for(var t,n,r=et.now(),o=e.data.userProfileItem,i=[],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)),i.push(n));return Ne.log("".concat(this._className,"._handleResponse cost ").concat(et.now()-r," ms")),i}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={};if(n.userID=e,n.profileCustomField=[],!Dt(t))for(var r=0,o=t.length;r<o;r++)if(t[r].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[r].tag,value:t[r].value});else switch(t[r].tag){case xe.NICK:n.nick=t[r].value;break;case xe.GENDER:n.gender=t[r].value;break;case xe.BIRTHDAY:n.birthday=t[r].value;break;case xe.LOCATION:n.location=t[r].value;break;case xe.SELFSIGNATURE:n.selfSignature=t[r].value;break;case xe.ALLOWTYPE:n.allowType=t[r].value;break;case xe.LANGUAGE:n.language=t[r].value;break;case xe.AVATAR:n.avatar=t[r].value;break;case xe.MESSAGESETTINGS:n.messageSettings=t[r].value;break;case xe.ADMINFORBIDTYPE:n.adminForbidType=t[r].value;break;case xe.LEVEL:n.level=t[r].value;break;case xe.ROLE:n.role=t[r].value;break;default:Ne.warn("".concat(this._className,"._handleResponse unknown tag:"),t[r].tag,t[r].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._className,".updateMyProfile"),r=new fi(Oa);r.setMessage(JSON.stringify(e));var o=(new Ts).validate(e);if(!o.valid)return r.setCode(Pr.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("".concat(n," info:").concat(o.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Ne.error("".concat(n," info:").concat(o.tips,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),hs({code:Pr.UPDATE_PROFILE_INVALID_PARAM,message:Uo});var i=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&("profileCustomField"===a?e.profileCustomField.forEach((function(e){i.push({tag:e.key,value:e.value})})):i.push({tag:xe[a.toUpperCase()],value:e[a]}));return 0===i.length?(r.setCode(Pr.UPDATE_PROFILE_NO_KEY).setMoreMessage(Fo).setNetworkType(this._userModule.getNetworkType()).end(),Ne.error("".concat(n," info:").concat(Fo,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),hs({code:Pr.UPDATE_PROFILE_NO_KEY,message:Fo})):this._userModule.request({protocolName:Tn,requestData:{fromAccount:this._userModule.getMyAccount(),profileItem:i}}).then((function(o){r.setNetworkType(t._userModule.getNetworkType()).end(),Ne.info("".concat(n," ok"));var i=t._updateMap(t._userModule.getMyAccount(),e);return t._userModule.emitOuterEvent(T.PROFILE_UPDATED,[i]),fs(i)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!Dt(t)){var n,r,o=t.length;Ne.debug("".concat(this._className,".onProfileModified count:").concat(o," dataList:"),e.dataList);for(var i=[],a=0;a<o;a++)n=t[a].userID,r=this._updateMap(n,this._getLatestProfileFromResponse(n,t[a].profileList)),i.push(r);i.length>0&&(this._userModule.emitInnerEvent(_s,i),this._userModule.emitOuterEvent(T.PROFILE_UPDATED,i))}}},{key:"_fillMap",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,r=e.length;n<r;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Ne.log("".concat(this._className,"._fillMap from cache, map.size:").concat(this.accountProfileMap.size))}}},{key:"_updateMap",value:function(e,t){var n,r=Date.now();return this._containsAccount(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&ht(n.profileCustomField,t.profileCustomField),nt(n,t,["profileCustomField"]),n.lastUpdatedTime=r):(n=new Ts(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=r,this.accountProfileMap.set(e,n))),this._flushMap(e===this._userModule.getMyAccount()),n}},{key:"_flushMap",value:function(e){var t=y(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Ne.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 Dt(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,r,o=[],i=0,a=e.length;i<a;i++)n=(t=e[i]).userID,this._userModule.isMyFriend(n)||(this._containsAccount(n)?(r=this._getProfileFromMap(n),nt(r,t)>0&&o.push(n)):o.push(t.userID));0!==o.length&&(Ne.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}(),Xs=function e(t){n(this,e),Dt||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)},Js=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 o(e,[{key:"getLocalBlacklist",value:function(){return y(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},r=new fi(Da);return this._userModule.request({protocolName:In,requestData:n}).then((function(n){var o=n.data,i=o.blackListItem,a=o.currentSequence,s=Dt(i)?0:i.length;r.setNetworkType(e._userModule.getNetworkType()).setMessage("blackList count:".concat(s)).end(),Ne.info("".concat(t," ok")),e.currentSequence=a,e._handleResponse(i,!0),e._userModule.emitOuterEvent(T.BLACKLIST_UPDATED,y(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=_(e,2),o=t[0],i=t[1];r.setError(n,o,i).end()})),Ne.error("".concat(t," failed. error:"),n),hs(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n="".concat(this._className,".addBlacklist"),r=new fi(Na);if(!We(e.userIDList))return r.setCode(Pr.ADD_BLACKLIST_INVALID_PARAM).setMessage(jo).setNetworkType(this._userModule.getNetworkType()).end(),Ne.error("".concat(n," options.userIDList 必需是数组")),hs({code:Pr.ADD_BLACKLIST_INVALID_PARAM,message:jo});var o=this._userModule.getMyAccount();return 1===e.userIDList.length&&e.userIDList[0]===o?(r.setCode(Pr.CANNOT_ADD_SELF_TO_BLACKLIST).setMessage(qo).setNetworkType(this._userModule.getNetworkType()).end(),Ne.error("".concat(n," 不能把自己拉黑")),hs({code:Pr.CANNOT_ADD_SELF_TO_BLACKLIST,message:qo})):(e.userIDList.includes(o)&&(e.userIDList=e.userIDList.filter((function(e){return e!==o})),Ne.warn("".concat(n," 不能把自己拉黑,已过滤"))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:An,requestData:e}).then((function(o){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Ne.info("".concat(n," ok")),t._handleResponse(o.resultItem,!0),rs(y(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)})))}},{key:"_handleResponse",value:function(e,t){if(!Dt(e))for(var n,r,o,i=0,a=e.length;i<a;i++)r=e[i].to,o=e[i].resultCode,(ze(o)||0===o)&&(t?((n=this._blacklistMap.has(r)?this._blacklistMap.get(r):new Xs).userID=r,!Dt(e[i].addBlackTimeStamp)&&(n.timeStamp=e[i].addBlackTimeStamp),this._blacklistMap.set(r,n)):this._blacklistMap.has(r)&&(n=this._blacklistMap.get(r),this._blacklistMap.delete(r)));Ne.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"),r=new fi(La);return We(e.userIDList)?(e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:En,requestData:e}).then((function(o){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Ne.info("".concat(n," ok")),t._handleResponse(o.data.resultItem,!1),rs(y(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),Ne.error("".concat(n," failed. error:"),e),hs(e)}))):(r.setCode(Pr.DEL_BLACKLIST_INVALID_PARAM).setMessage($o).setNetworkType(this._userModule.getNetworkType()).end(),Ne.error("".concat(n," options.userIDList 必需是数组")),hs({code:Pr.DEL_BLACKLIST_INVALID_PARAM,message:$o}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Ne.log("".concat(this._className,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(T.BLACKLIST_UPDATED,y(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],r=0,o=e.length;r<o;r++)t=e[r],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new Xs({userID:t})),n.push(t));n.length>0&&(Ne.log("".concat(this._className,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent(T.BLACKLIST_UPDATED,y(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),Qs=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="UserModule",o._profileHandler=new Ys(g(o)),o._blacklistHandler=new Js(g(o)),o.getInnerEmitterInstance().on(vs,o.onContextUpdated,g(o)),o}return o(r,[{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(!Dt(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,y(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var r=[];t.forEach((function(e){e.blackListAddAccount&&r.push.apply(r,y(e.blackListAddAccount))})),r.length>0&&this._blacklistHandler.onAccountAdded(r)}}},{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(en)}},{key:"isMyFriend",value:function(e){var t=this.getModule(Xt);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 fs(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(){Ne.log("".concat(this._className,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset()}}]),r}(vn),Zs=function(){function e(t,r){n(this,e),this._moduleManager=t,this._isLoggedIn=!1,this._SDKAppID=r.SDKAppID,this._userID=r.userID||"",this._userSig=r.userSig||"",this._version="2.17.1",this._a2Key="",this._tinyID="",this._contentType="json",this._unlimitedAVChatRoom=r.unlimitedAVChatRoom,this._scene=r.scene||"",this._oversea=r.oversea,this._instanceID=r.instanceID,this._statusInstanceID=0,this._isDevMode=r.devMode,this._proxyServer=r.proxyServer}return o(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,r=!1,o=[];te&&(o=Object.keys(re)),ne&&(o=Object.keys(window));for(var i=0,a=o.length;i<a;i++)if(o[i].toLowerCase().includes("uikit")){e=!0;break}if(o=null,te&&Ye(getApp)){var s=getApp().globalData;He(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._moduleManager.getModule(en).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var c=null;if(Y&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),X&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),We(c)&&c.length>0){for(var u=0,l=c.length;u<l;u++)if(c[u].toLowerCase().includes("tui")){r=!0;break}c=null}return e||t||n||r}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._statusInstanceID=0}}]),e}(),ec=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="SignModule",o._helloInterval=120,o._lastLoginTs=0,o._lastWsHelloTs=0,ys.mixin(g(o)),o}return o(r,[{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 Ne.warn(t),fs({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return Ne.warn("您正在尝试登录账号".concat(e.userID,"!请勿重复登录。")),hs({code:Pr.REPEAT_LOGIN,message:Br});Ne.log("".concat(this._className,".login userID:").concat(e.userID));var n=this._checkLoginInfo(e);if(0!==n.code)return hs(n);var r=this.getModule(Zt),o=e.userID,i=e.userSig;return r.setUserID(o),r.setUserSig(i),this.getModule(cn).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(Zt),n=t.getScene(),r=new fi(gi);return r.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),ee&&("tuikit"===n?r.setFramework("uni-app_uikit"):r.setFramework("uni-app")),this._lastLoginTs=Date.now(),this.request({protocolName:mn}).then((function(o){e._lastLoginTs=0;var i=Date.now(),a=null,s=o.data,c=s.a2Key,u=s.tinyID,l=s.helloInterval,d=s.instanceID,f=s.timeStamp;Ne.log("".concat(e._className,".login ok. scene:").concat(n," helloInterval:").concat(l," instanceID:").concat(d," timeStamp:").concat(f));var h=1e3*f,p=i-r.getStartTs(),g=h+parseInt(p/2)-i,v=r.getStartTs()+g;if(r.start(v),function(e,t){Ce=t;var n=new Date;n.setTime(e),Ne.info("baseTime from server: ".concat(n," offset: ").concat(Ce))}(h,g),!u)throw a=new us({code:Pr.NO_TINYID,message:jr}),r.setError(a,!0,e.getNetworkType()).end(),a;if(!c)throw a=new us({code:Pr.NO_A2KEY,message:$r}),r.setError(a,!0,e.getNetworkType()).end(),a;return r.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(cn).updateProtocolConfig(),e.emitInnerEvent(vs),e._helloInterval=l,e.triggerReady(),e._fetchCloudControlConfig(),o})).catch((function(t){return e.probeNetwork().then((function(e){var n=_(e,2),o=n[0],i=n[1];r.setError(t,o,i).end(!0)})),Ne.error("".concat(e._className,".login failed. error:"),t),e._lastLoginTs=0,e._moduleManager.onLoginFailed(),hs(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return hs({code:Pr.USER_NOT_LOGGED_IN,message:qr});var n=new fi(vi);return n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0),Ne.info("".concat(this._className,".logout type:").concat(t)),this.request({protocolName:_n,requestData:{type:t}}).then((function(){return e.resetReady(),fs({})})).catch((function(t){return Ne.error("".concat(e._className,"._logout error:"),t),e.resetReady(),fs({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(dn).fetchConfig()}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:yn}).catch((function(t){Ne.warn("".concat(e._className,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0,n="";return Dt(this.getModule(Zt).getSDKAppID())?(t=Pr.NO_SDKAPPID,n=Gr):Dt(e.userID)?(t=Pr.NO_IDENTIFIER,n=Ur):Dt(e.userSig)&&(t=Pr.NO_USERSIG,n=Fr),{code:t,message:n}}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new fi(mi).setNetworkType(this.getNetworkType()).setMessage("type:".concat(I.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ne.warn("".concat(this._className,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(T.KICKED_OUT,{type:I.KICKED_OUT_MULT_ACCOUNT}),t._moduleManager.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new fi(mi).setNetworkType(this.getNetworkType()).setMessage("type:".concat(I.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Ne.warn("".concat(this._className,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent(T.KICKED_OUT,{type:I.KICKED_OUT_MULT_DEVICE}),t._moduleManager.reset()}))}},{key:"onUserSigExpired",value:function(){new fi(mi).setNetworkType(this.getNetworkType()).setMessage(I.KICKED_OUT_USERSIG_EXPIRED).end(!0),Ne.warn("".concat(this._className,".onUserSigExpired: userSig 签名过期被踢下线")),0!==this.getModule(Zt).getStatusInstanceID()&&(this.emitOuterEvent(T.KICKED_OUT,{type:I.KICKED_OUT_USERSIG_EXPIRED}),this._moduleManager.reset())}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0}}]),r}(vn);function tc(){return null}var nc=function(){function e(t){n(this,e),this._moduleManager=t,this._className="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return o(e,[{key:"_errorTolerantHandle",value:function(){te||!ze(window)&&!ze(window.localStorage)||(this.getItem=tc,this.setItem=tc,this.removeItem=tc,this.clear=tc)}},{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=C(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],o=n[1];this._setStorageSync(this._getKey(r),o)}}catch(a){t.e(a)}finally{t.f()}this._storageQueue.clear()}catch(s){Ne.warn("".concat(this._className,"._doFlush error:"),s)}}},{key:"_getPrefix",value:function(){var e=this._moduleManager.getModule(Zt);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(o){return Ne.warn("".concat(this._className,".getItem error:"),o),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var o=r?this._getKey(e):e;this._setStorageSync(o,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{te?re.clearStorageSync():localStorage&&localStorage.clear()}catch(e){Ne.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(o){Ne.warn("".concat(this._className,".removeItem error:"),o)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var r={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(r,"leftSize",{enumerable:!0,get:function(){return r.limitSize-r.size}}),te&&(r.limitSize=1024*re.getStorageInfoSync().limitSize),e)r.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(te){var o=re.getStorageInfoSync(),i=o.keys;i.forEach((function(e){r.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(localStorage)for(var a in localStorage)localStorage.hasOwnProperty(a)&&(r.size+=localStorage.getItem(a).length+a.length);return this._convertUnit(r)}catch(c){Ne.warn("".concat(this._className," error:"),c)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var r in t.unit=n,e)"number"==typeof e[r]&&("kb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024):"mb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024/1024):t[r]=e[r]);return t}},{key:"_setStorageSync",value:function(e,t){te?Z?my.setStorageSync({key:e,data:t}):re.setStorageSync(e,t):localStorage&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return te?Z?my.getStorageSync({key:e}).data:re.getStorageSync(e):localStorage?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){te?Z?my.removeStorageSync({key:e}):re.removeStorageSync(e):localStorage&&localStorage.removeItem(e)}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._doFlush()}}]),e}(),rc=function(){function e(t){n(this,e),this._className="SSOLogBody",this._report=[]}return o(e,[{key:"pushIn",value:function(e){Ne.debug("".concat(this._className,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;We(e)&&0!==e.length&&(Ne.debug("".concat(this._className,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,y(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}(),oc=function(e){var t=e.getModule(Zt);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:Te()}},ic=function(e){c(r,e);var t=m(r);function r(e){var o;n(this,r),(o=t.call(this,e))._className="EventStatModule",o.TAG="im-ssolog-event",o._reportBody=new rc,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 i=o.getInnerEmitterInstance();return i.on(vs,o._onLoginSuccess,g(o)),i.on(ms,o._onCloudConfigUpdated,g(o)),o}return o(r,[{key:"reportAtOnce",value:function(){Ne.debug("".concat(this._className,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(en),n=t.getItem(this.TAG,!1);!Dt(n)&&Ye(n.forEach)&&(Ne.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"),r=this.getCloudConfig("evt_rpt_sdkappid_bl"),o=this.getCloudConfig("evt_rpt_tinyid_wl");ze(e)||(this.MIN_THRESHOLD=Number(e)),ze(t)||(this.WAITING_TIME=Number(t)),ze(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),ze(r)||(this.REPORT_SDKAPPID_BLACKLIST=r.split(",").map((function(e){return Number(e)}))),ze(o)||(this.REPORT_TINYID_WHITELIST=o.split(","))}},{key:"pushIn",value:function(e){e instanceof fi&&(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(Zt),r=n.getSDKAppID(),o=n.getTinyID();return At(this.REPORT_SDKAPPID_BLACKLIST,r)&&!Et(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 r={header:oc(this),event:n};this.request({protocolName:kr,requestData:s({},r)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){Ne.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(en),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory();if(Dt(t))Ne.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var r=n.concat(t);r.length>this.MAX_THRESHOLD&&(r=r.slice(0,this.MAX_THRESHOLD)),Ne.log("".concat(this._className,"._flushAtOnce count:").concat(r.length)),e.setItem(this.TAG,r,!0,!1)}}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),r}(vn),ac="none",sc="online",cc=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 o(e,[{key:"start",value:function(){var e=this;te?(re.getNetworkType({success:function(t){e._networkType=t.networkType,t.networkType===ac?Ne.warn("".concat(e._className,".start no network, please check!")):Ne.info("".concat(e._className,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),re.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=sc,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:sc})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:ac})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,r=!1;t?(Ne.info("".concat(this._className,"._onNetworkStatusChange previousNetworkType:").concat(this._networkType," currentNetworkType:").concat(n)),this._networkType!==n&&(r=!0,this._moduleManager.getModule(un).reConnect(!0))):this._networkType!==n&&(r=!0,Ne.warn("".concat(this._className,"._onNetworkStatusChange no network, please check!"))),r&&(new fi(wi).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(te)re.getNetworkType({success:function(n){e._networkType=n.networkType,n.networkType===ac?(Ne.warn("".concat(e._className,".probe no network, please check!")),t([!1,n.networkType])):(Ne.info("".concat(e._className,".probe networkType:").concat(n.networkType)),t([!0,n.networkType]))}});else if(window&&window.fetch)fetch("".concat(lt(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())).then((function(e){e.ok?t([!0,sc]):t([!1,ac])})).catch((function(e){t([!1,ac])}));else{var r=new XMLHttpRequest,o=setTimeout((function(){Ne.warn("".concat(e._className,".probe fetch timeout. Probably no network, please check!")),r.abort(),e._networkType=ac,t([!1,ac])}),e.MAX_WAIT_TIME);r.onreadystatechange=function(){4===r.readyState&&(clearTimeout(o),200===r.status||304===r.status||514===r.status?(this._networkType=sc,t([!0,sc])):(Ne.warn("".concat(this.className,".probe fetch status:").concat(r.status,". Probably no network, please check!")),this._networkType=ac,t([!1,ac])))},r.open("GET","".concat(lt(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())),r.send()}}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),te?null!==this._mpNetworkStatusCallback&&(re.offNetworkStatusChange&&(ee||J?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}(),uc=O((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||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 r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,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,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,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,h=l.length;for(u=0;u<h;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,r);break;case 4:l[u].fn.call(l[u].context,t,r,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 i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}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 r,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})),lc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(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(vs,o._getAuthKey,g(o)),o}return o(r,[{key:"_getAuthKey",value:function(){var e=this;this.request({protocolName:Sn}).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(!We(e)||!t)return[];for(var n=[],r=null,o=0;o<e.length;o++)r=e[o],this._needParse(r)?n.push(this._parseElement(r,t)):n.push(e[o]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==I.MSG_AUDIO&&e.type!==I.MSG_FILE&&e.type!==I.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case I.MSG_AUDIO:return this._parseAudioElement(e,t);case I.MSG_FILE:return this._parseFileElement(e,t);case I.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 Ne.warn("".concat(this._className,"._genAudioUrl no authKey!")),"";var n=this.getModule(Zt).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 Ne.warn("".concat(this._className,"._genFileUrl no authKey!")),"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var r=this.getModule(Zt).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(r,"&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 Ne.warn("".concat(this._className,"._genVideoUrl no authKey!")),"";var n=this.getModule(Zt).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(){Ne.log("".concat(this._className,".reset")),this._authKey="",this.expireTime=0}}]),r}(vn),dc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(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(vs,o._init,g(o)),o}return o(r,[{key:"_init",value:function(){var e="".concat(this._className,"._init"),t=this.getModule(an);if(this.TIMUploadPlugin=t.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var n=te?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=t.getPlugin(n),this.COSSDK?(this._getAuthorizationKey(),Ne.warn("".concat(e," v2.9.2起推荐使用 tim-upload-plugin 代替 ").concat(n,",上传更快更安全。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))):Ne.warn("".concat(e," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))}}},{key:"_getAuthorizationKey",value:function(){var e=this,t=new fi(Ci),n=Math.ceil(Date.now()/1e3);this.request({protocolName:br,requestData:{duration:this.expiredTimeLimit}}).then((function(r){var o=r.data;Ne.log("".concat(e._className,"._getAuthorizationKey ok. data:"),o);var i=o.expiredTime-n;t.setMessage("requestId:".concat(o.requestId," requestTime:").concat(n," expiredTime:").concat(o.expiredTime," diff:").concat(i,"s")).setNetworkType(e.getNetworkType()).end(),!te&&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},Ne.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 r=_(e,2),o=r[0],i=r[1];t.setError(n,o,i).end()})),Ne.warn("".concat(e._className,"._getAuthorizationKey failed. error:"),n)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._getCosPreSigUrl"),r=Math.ceil(Date.now()/1e3),o=new fi(Ti);return this.request({protocolName:Mr,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var i=e.data||{},a=i.expiredTime-r;return Ne.log("".concat(n," ok. data:"),i),o.setMessage("requestId:".concat(i.requestId," expiredTime:").concat(i.expiredTime," diff:").concat(a,"s")).setNetworkType(t.getNetworkType()).end(),i})).catch((function(r){return-1===r.code&&(r.code=Pr.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=_(e,2),n=t[0],i=t[1];o.setError(r,n,i).end()})),Ne.warn("".concat(n," failed. error:"),r),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,hs({code:Pr.COS_GET_SIG_FAIL,message:Hr}))}))}},{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=te?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=te?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(pn);switch(e.type){case I.MSG_IMAGE:return t.addTotalCount(oi),this._uploadImage(e);case I.MSG_FILE:return t.addTotalCount(oi),this._uploadFile(e);case I.MSG_AUDIO:return t.addTotalCount(oi),this._uploadAudio(e);case I.MSG_VIDEO:return t.addTotalCount(oi),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],r=t.getMessageOptionByID(e.ID);return this.doUploadImage({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),Ye(r.onProgress))try{r.onProgress(e)}catch(t){return hs({code:Pr.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xr})}}}).then((function(t){var r=t.location,o=t.fileType,i=t.fileSize,a=t.width,c=t.height,u=dt(r);n.updateImageFormat(o);var l=wt({originUrl:u,originWidth:a,originHeight:c,min:198}),d=wt({originUrl:u,originWidth:a,originHeight:c,min:720});return n.updateImageInfoArray([{size:i,url:u,width:a,height:c},s({},d),s({},l)]),e}))}},{key:"_uploadFile",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],r=t.getMessageOptionByID(e.ID);return this.doUploadFile({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),Ye(r.onProgress))try{r.onProgress(e)}catch(t){return hs({code:Pr.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xr})}}}).then((function(t){var r=t.location,o=dt(r);return n.updateFileUrl(o),e}))}},{key:"_uploadAudio",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],r=t.getMessageOptionByID(e.ID);return this.doUploadAudio({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),Ye(r.onProgress))try{r.onProgress(e)}catch(t){return hs({code:Pr.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xr})}}}).then((function(t){var r=t.location,o=dt(r);return n.updateAudioUrl(o),e}))}},{key:"_uploadVideo",value:function(e){var t=this.getModule(Wt),n=e.getElements()[0],r=t.getMessageOptionByID(e.ID);return this.doUploadVideo({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),Ye(r.onProgress))try{r.onProgress(e)}catch(t){return hs({code:Pr.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Xr})}}}).then((function(t){var r=t.location,o=t.snapshotInfo,i=dt(r);return n.updateVideoUrl(i),Dt(o)||n.updateSnapshotInfo(o),e}))}},{key:"doUploadImage",value:function(e){if(!e.file)return hs({code:Pr.MESSAGE_IMAGE_SELECT_FILE_FIRST,message:to});var t=this._checkImageType(e.file);if(!0!==t)return t;var n=this._checkImageSize(e.file);if(!0!==n)return n;var r=null;return this._setUploadFileType(Ss),this.uploadByCOS(e).then((function(e){return r=e,Mt("https://".concat(e.location))})).then((function(e){return r.width=e.width,r.height=e.height,Promise.resolve(r)}))}},{key:"_checkImageType",value:function(e){var t="";return t=te?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),bs.indexOf(t.toLowerCase())>=0||hs({code:Pr.MESSAGE_IMAGE_TYPES_LIMIT,message:no})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=te?e.size:e.files[0].size)?hs({code:Pr.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yr)}):t<20971520||hs({code:Pr.MESSAGE_IMAGE_SIZE_LIMIT,message:"".concat(ro)})}},{key:"doUploadFile",value:function(e){var t=null;return e.file?e.file.files[0].size>104857600?hs(t={code:Pr.MESSAGE_FILE_SIZE_LIMIT,message:fo}):0===e.file.files[0].size?(t={code:Pr.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yr)},hs(t)):(this._setUploadFileType(Cs),this.uploadByCOS(e)):hs(t={code:Pr.MESSAGE_FILE_SELECT_FILE_FIRST,message:lo})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>104857600?hs({code:Pr.MESSAGE_VIDEO_SIZE_LIMIT,message:"".concat(so)}):0===e.file.videoFile.size?hs({code:Pr.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yr)}):-1===Ms.indexOf(e.file.videoFile.type)?hs({code:Pr.MESSAGE_VIDEO_TYPES_LIMIT,message:"".concat(co)}):(this._setUploadFileType(ks),te?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):ne?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,r){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){r(new us({code:Pr.MESSAGE_VIDEO_UPLOAD_FAIL,message:ao}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>20971520?hs(new us({code:Pr.MESSAGE_AUDIO_SIZE_LIMIT,message:"".concat(io)})):0===e.file.size?hs(new us({code:Pr.MESSAGE_FILE_IS_EMPTY,message:"".concat(Yr)})):(this._setUploadFileType(ws),this.uploadByCOS(e)):hs(new us({code:Pr.MESSAGE_AUDIO_UPLOAD_FAIL,message:oo}))}},{key:"uploadByCOS",value:function(e){var t=this,n="".concat(this._className,".uploadByCOS");if(!Ye(this._cosUploadMethod))return Ne.warn("".concat(n," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin")),hs({code:Pr.COS_UNDETECTED,message:Vr});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var r=new fi(Ai),o=Date.now(),i=this._getFile(e);return new Promise((function(a,s){var c=te?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),u=t;t._cosUploadMethod(c,(function(e,c){var l=Object.create(null);if(c){if(e||We(c.files)&&c.files[0].error){var d=new us({code:Pr.MESSAGE_FILE_UPLOAD_FAIL,message:uo});return r.setError(d,!0,t.getNetworkType()).end(),Ne.log("".concat(n," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(Ne.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}l.fileName=i.name,l.fileSize=i.size,l.fileType=i.type.slice(i.type.indexOf("/")+1).toLowerCase(),l.location=te?c.Location:c.files[0].data.Location;var f=Date.now()-o,h=u._formatFileSize(i.size),p=u._formatSpeed(1e3*i.size/f),g="size:".concat(h," time:").concat(f,"ms speed:").concat(p);Ne.log("".concat(n," success. name:").concat(i.name," ").concat(g)),a(l);var v=t.getModule(pn);return v.addCost(oi,f),v.addFileSize(oi,i.size),void r.setNetworkType(t.getNetworkType()).setMessage(g).end()}var m=new us({code:Pr.MESSAGE_FILE_UPLOAD_FAIL,message:uo});r.setError(m,!0,u.getNetworkType()).end(),Ne.warn("".concat(n," failed. error:"),e),403===e.statusCode&&(Ne.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(m)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._uploadWithPreSigUrl"),r=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(o,i){var a=new fi(Ai),s=e.requestSnapshotUrl,c=void 0===s?void 0:s,u=p(e,["requestSnapshotUrl"]),l=Date.now();t._cosUploadMethod(u,(function(e,s){var u=Object.create(null);if(e||403===s.statusCode){var d=new us({code:Pr.MESSAGE_FILE_UPLOAD_FAIL,message:uo});return a.setError(d,!0,t.getNetworkType()).end(),Ne.log("".concat(n," failed, error:"),e),void i(d)}var f=s.data.location||"";0!==f.indexOf("https://")&&0!==f.indexOf("http://")||(f=f.split("//")[1]),u.fileName=r.name,u.fileSize=r.size,u.fileType=r.type.slice(r.type.indexOf("/")+1).toLowerCase(),u.location=f;var h=Date.now()-l,p=t._formatFileSize(r.size),g=t._formatSpeed(1e3*r.size/h),v="size:".concat(p,",time:").concat(h,"ms,speed:").concat(g," res:").concat(JSON.stringify(s.data));Ne.log("".concat(n," success name:").concat(r.name,",").concat(v)),a.setNetworkType(t.getNetworkType()).setMessage(v).end();var m=t.getModule(pn);if(m.addCost(oi,h),m.addFileSize(oi,r.size),!Dt(c))return t._getSnapshotInfoByUrl(c).then((function(e){u.snapshotInfo=e,o(u)}));o(u)}))}))}))}},{key:"_getFile",value:function(e){var t=null;return te?t=ee&&We(e.file.files)?e.file.files[0]:e.file:ne&&(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?It(e/1024,1)+"KB/s":It(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=e.file.files[0].name,n=t.slice(t.lastIndexOf(".")),r=this._genFileName("".concat(it(999999)).concat(n));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(r),Body:e.file.files[0]}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ne.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),r=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:r,onProgress:function(t){if(Ne.log(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ne.warn("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",r="",o=0;if(te){var i=this._getFile(e);n=this._genFileName(i.name),r=i.url,o=1}else{var a=e.file.files[0].name,s=a.slice(a.lastIndexOf("."));n=this._genFileName("".concat(it(999999)).concat(s)),r=e.file.files[0],o=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:o,duration:this.duration}).then((function(o){var i=o.uploadUrl,a=o.downloadUrl,s=o.requestSnapshotUrl,c=void 0===s?void 0:s;return{url:i,fileType:t.uploadFileType,fileName:n,resources:r,downloadUrl:a,requestSnapshotUrl:c,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Ne.warn("onProgress callback error:",n),Ne.error(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(St(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e){var t=this,n=new fi(Ii);return this.request({protocolName:Sr,requestData:{platform:this.getPlatform(),coverName:this._genFileName(it(99999)),requestSnapshotUrl:e}}).then((function(e){var t=(e.data||{}).snapshotUrl;return n.setMessage("snapshotUrl:".concat(t)).end(),Dt(t)?{}:Mt(t).then((function(e){return{snapshotUrl:t,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Ne.warn("".concat(t._className,"._getSnapshotInfoByUrl failed. error:"),e),n.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset"))}}]),r}(vn),fc=function(){function e(t){n(this,e),this._className="MergerMessageHandler",this._messageModule=t}return o(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this;Ne.debug("".concat(this._className,".uploadMergerMessage message:"),e,"messageBytes:".concat(t));var r=e.payload.messageList,o=r.length,i=new fi(Ui);return this._messageModule.request({protocolName:Er,requestData:{messageList:r}}).then((function(e){Ne.debug("".concat(n._className,".uploadMergerMessage ok. response:"),e.data);var r=e.data,a=r.pbDownloadKey,s=r.downloadKey,c={pbDownloadKey:a,downloadKey:s,messageNumber:o};return i.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(o,"-").concat(t,"-").concat(s)).end(),c})).catch((function(e){throw Ne.warn("".concat(n._className,".uploadMergerMessage failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this;Ne.debug("".concat(this._className,".downloadMergerMessage message:"),e);var n=e.payload.downloadKey,r=new fi(Fi);return r.setMessage("downloadKey:".concat(n)),this._messageModule.request({protocolName:Or,requestData:{downloadKey:n}}).then((function(n){if(Ne.debug("".concat(t._className,".downloadMergerMessage ok. response:"),n.data),Ye(e.clearElement)){var o=e.payload,i=(o.downloadKey,o.pbDownloadKey,o.messageList,p(o,["downloadKey","pbDownloadKey","messageList"]));e.clearElement(),e.setElement({type:e.type,content:s({messageList:n.data.messageList},i)})}else{var a=[];n.data.messageList.forEach((function(e){if(!Dt(e)){var t=new Za(e);a.push(t)}})),e.payload.messageList=a,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return r.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Ne.warn("".concat(t._className,".downloadMergerMessage failed. key:").concat(n," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=_(t,2),o=n[0],i=n[1];r.setError(e,o,i).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===I.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var r=null;t&&(t.offlinePushInfo&&(r=t.offlinePushInfo),!0===t.onlineUserOnly&&(r?r.disablePush=!0:r={disablePush:!0}));var o="";Be(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var i=n.pbDownloadKey,a=n.downloadKey,s=n.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,f=this._messageModule.getModule(Kt);return{protocolName:kn,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:i,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:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var r=null;t&&t.offlinePushInfo&&(r=t.offlinePushInfo);var o="";Be(e.cloudCustomData)&&e.cloudCustomData.length>0&&(o=e.cloudCustomData);var i=n.pbDownloadKey,a=n.downloadKey,s=n.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,f=this._messageModule.getModule(Yt);return{protocolName:wn,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:i,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:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0}}}}]),e}(),hc={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},pc=[Pr.MESSAGE_ONPROGRESS_FUNCTION_ERROR,Pr.MESSAGE_IMAGE_SELECT_FILE_FIRST,Pr.MESSAGE_IMAGE_TYPES_LIMIT,Pr.MESSAGE_FILE_IS_EMPTY,Pr.MESSAGE_IMAGE_SIZE_LIMIT,Pr.MESSAGE_FILE_SELECT_FILE_FIRST,Pr.MESSAGE_FILE_SIZE_LIMIT,Pr.MESSAGE_VIDEO_SIZE_LIMIT,Pr.MESSAGE_VIDEO_TYPES_LIMIT,Pr.MESSAGE_AUDIO_UPLOAD_FAIL,Pr.MESSAGE_AUDIO_SIZE_LIMIT,Pr.COS_UNDETECTED],gc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="MessageModule",o._messageOptionsMap=new Map,o._mergerMessageHandler=new fc(g(o)),o}return o(r,[{key:"createTextMessage",value:function(e){var t=e.to,n=e.payload.atUserList,r=void 0===n?[]:n;if(vt({groupID:t})&&r.includes(I.MSG_AT_ALL))return hs({code:Pr.MESSAGE_AT_TYPE_INVALID,message:_o});var o=this.getMyUserID();e.currentUser=o;var i=new ns(e),a="string"==typeof e.payload?e.payload:e.payload.text,s=new $a({text:a}),c=this._getNickAndAvatarByUserID(o);return i.setElement(s),i.setNickAndAvatar(c),i.setNameCard(this._getNameCardByGroupID(i)),i}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e);if(te){var r=e.payload.file;if($e(r))return void Ne.warn("小程序环境下调用 createImageMessage 接口时,payload.file 不支持传入 File 对象");var o=r.tempFilePaths[0],i={url:o,name:o.slice(o.lastIndexOf("/")+1),size:r.tempFiles&&r.tempFiles[0].size||1,type:o.slice(o.lastIndexOf(".")+1).toLowerCase()};e.payload.file=i}else if(ne)if($e(e.payload.file)){var a=e.payload.file;e.payload.file={files:[a]}}else if(He(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var c=new qa({imageFormat:Le.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.ID,e),n}},{key:"createAudioMessage",value:function(e){if(te){var t=e.payload.file;if(te){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 r=this.getMyUserID();e.currentUser=r;var o=new ns(e),i=new Va({second:Math.floor(t.duration/1e3),size:t.fileSize,url:t.tempFilePath,uuid:this._generateUUID()}),a=this._getNickAndAvatarByUserID(r);return o.setElement(i),o.setNickAndAvatar(a),o.setNameCard(this._getNameCardByGroupID(o)),this._messageOptionsMap.set(o.ID,e),o}Ne.warn("createAudioMessage 目前只支持小程序环境下发语音消息")}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.payload.file.thumbUrl="https://web.sdk.qcloud.com/im/assets/images/transparent.png",e.payload.file.thumbSize=1668;var n={};if(te){if(Z)return void Ne.warn("createVideoMessage 不支持在支付宝小程序环境下使用");if($e(e.payload.file))return void Ne.warn("小程序环境下调用 createVideoMessage 接口时,payload.file 不支持传入 File 对象");var r=e.payload.file;n.url=r.tempFilePath,n.name=r.tempFilePath.slice(r.tempFilePath.lastIndexOf("/")+1),n.size=r.size,n.second=r.duration,n.type=r.tempFilePath.slice(r.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(ne){if($e(e.payload.file)){var o=e.payload.file;e.payload.file.files=[o]}else if(He(e.payload.file)&&"undefined"!=typeof uni){var i=e.payload.file.tempFile;e.payload.file.files=[i]}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 ns(e),c=new Ja({videoFormat:n.type,videoSecond:It(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.ID,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e),r=new Xa({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e),r=new Ba(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=this._getNickAndAvatarByUserID(t),r=new ns(e),o=new es(e.payload);return r.setElement(o),r.setNickAndAvatar(n),r.setNameCard(this._getNameCardByGroupID(r)),r.setRelayFlag(!0),r}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,r=e.priority,o=e.payload,i=this.getMyUserID(),a=this._getNickAndAvatarByUserID(i);if(o.type===I.MSG_GRP_TIP)return hs(new us({code:Pr.MESSAGE_FORWARD_TYPE_INVALID,message:mo}));var s={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:r,isPlaceMessage:0,status:Rt.UNSEND,currentUser:i,cloudCustomData:e.cloudCustomData||o.cloudCustomData||""},c=new ns(s);return c.setElement(o.getElements()[0]),c.setNickAndAvatar(a),c.setNameCard(this._getNameCardByGroupID(o)),c.setRelayFlag(!0),c}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(!te||ee){if(ne||ee)if($e(e.payload.file)){var t=e.payload.file;e.payload.file={files:[t]}}else if(He(e.payload.file)&&"undefined"!=typeof uni){var n=e.payload.file,r=n.tempFiles,o=n.files,i=null;We(r)?i=r[0]:We(o)&&(i=o[0]),e.payload.file={files:[i]}}var a=this.getMyUserID();e.currentUser=a;var s=new ns(e),c=new Ya({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.ID,e),s}Ne.warn("小程序目前不支持选择文件, createFileMessage 接口不可用!")}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t;var n=new ns(e),r=new Qa(e.payload),o=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(o),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.ID,e),n}},{key:"_onCannotFindModule",value:function(){return hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"sendMessageInstance",value:function(e,t){var n,r=this,o=null;switch(e.conversationType){case I.CONV_C2C:if(!(o=this.getModule(Kt)))return this._onCannotFindModule();break;case I.CONV_GROUP:if(!(o=this.getModule(Yt)))return this._onCannotFindModule();if(vt({groupID:e.to})&&!ze(t)&&!ze(t.messageControlInfo))return hs({code:Pr.MESSAGE_CONTROL_INFO_FAIL,message:eo});break;default:return hs({code:Pr.MESSAGE_SEND_INVALID_CONVERSATION_TYPE,message:Kr})}var i=this.getModule(on),a=this.getModule(Yt);return i.upload(e).then((function(){return r._getSendMessageSpecifiedKey(e)===ri&&r.getModule(pn).addSuccessCount(oi),a.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return hs({code:Pr.MESSAGE_FILE_URL_IS_EMPTY,message:ho});r._addSendMessageTotalCount(e),n=Date.now();var i=function(e){var t="utf-8";ne&&document&&(t=document.charset.toLowerCase());var n,r,o=0;if(r=e.length,"utf-8"===t||"utf8"===t)for(var i=0;i<r;i++)(n=e.codePointAt(i))<=127?o+=1:n<=2047?o+=2:n<=65535?o+=3:(o+=4,i++);else if("utf-16"===t||"utf16"===t)for(var a=0;a<r;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===I.MSG_MERGER&&i>7e3?r._mergerMessageHandler.uploadMergerMessage(e,i).then((function(n){var o=r._mergerMessageHandler.createMergerMessagePack(e,t,n);return r.request(o)})):(r.getModule(Qt).setMessageRandom(e),e.conversationType===I.CONV_C2C||e.conversationType===I.CONV_GROUP?o.sendMessage(e,t):void 0)})).then((function(i){var a=i.data,s=a.time,c=a.sequence;r._addSendMessageSuccessCount(e,n),r._messageOptionsMap.delete(e.ID);var u=r.getModule(Qt);e.status=Rt.SUCCESS,e.time=s;var l=!1;if(e.conversationType===I.CONV_GROUP)e.sequence=c,e.generateMessageID(r.getMyUserID());else if(e.conversationType===I.CONV_C2C){var d=u.getLatestMessageSentByMe(e.conversationID);if(d){var f=d.nick,h=d.avatar;f===e.nick&&h===e.avatar||(l=!0)}}if(u.appendToMessageList(e),l&&u.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),o.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{var p=e;He(t)&&He(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,p=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0)),u.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:e.conversationType,subType:e.conversationSubType,lastMessage:p}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||Ct(e.payload.imageInfoArray),rs({message:e})}))})).catch((function(t){return r._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Rt.FAIL,this.getModule(Qt).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new fi(Ei);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 r=_(e,2),o=r[0],i=r[1];n.setError(t,o,i).end()})),Ne.error("".concat(this._className,"._onSendMessageFailed error:"),t),hs(new us({code:t&&t.code?t.code:Pr.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:Wr,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([I.MSG_IMAGE,I.MSG_AUDIO,I.MSG_VIDEO,I.MSG_FILE].includes(e.type))return ri;if(e.conversationType===I.CONV_C2C)return ei;if(e.conversationType===I.CONV_GROUP){var t=this.getModule(Yt).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return gt(n)?ni:ti}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(pn).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var o=this.getModule(pn);o.addSuccessCount(r),o.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,r,o=t.code,i=void 0===o?-1:o,a=this.getModule(pn),s=this._getSendMessageSpecifiedKey(e);s===ri&&(n=i,r=!1,pc.includes(n)&&(r=!0),r)?a.addFailedCountOfUserSide(oi):function(e){var t=!1;return Object.values(hc).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}(i)&&s&&a.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=Rt.UNSEND,e.random=it(),e.generateMessageID(this.getMyUserID()),this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===I.CONV_C2C){if(!(n=this.getModule(Kt)))return this._onCannotFindModule()}else if(e.conversationType===I.CONV_GROUP&&!(n=this.getModule(Yt)))return this._onCannotFindModule();var r=new fi(Ni);return r.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(!Dt(o)&&0!==o[0].retCode){var i=new us({code:o[0].retCode,message:cs[o[0].retCode]||Jr,data:{message:e}});return r.setCode(i.code).setMoreMessage(i.message).end(),hs(i)}return Ne.info("".concat(t._className,".revokeMessage ok. ID:").concat(e.ID)),e.isRevoked=!0,r.end(),t.getModule(Qt).onMessageRevoked([e]),rs({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=_(e,2),o=t[0],i=t[1];r.setError(n,o,i).end()}));var o=new us({code:n&&n.code?n.code:Pr.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:Jr,data:{message:e}});return Ne.warn("".concat(t._className,".revokeMessage failed. error:"),n),hs(o)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,r=e[0],o=r.conversationID,i="",a=[],s=[];if(r.conversationType===I.CONV_C2C?(n=this.getModule(Kt),i=o.replace(I.CONV_C2C,""),e.forEach((function(e){e&&e.status===Rt.SUCCESS&&e.conversationID===o&&(e._onlineOnlyFlag||a.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}))):r.conversationType===I.CONV_GROUP&&(n=this.getModule(Yt),i=o.replace(I.CONV_GROUP,""),e.forEach((function(e){e&&e.status===Rt.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 fi(Li);return c.setMessage("to:".concat(i," count:").concat(a.length)),n.deleteMessage({to:i,keyList:a}).then((function(e){return c.end(),Ne.info("".concat(t._className,".deleteMessage ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];c.setError(e,r,o).end()})),Ne.warn("".concat(t._className,".deleteMessage failed. error:"),e);var n=new us({code:e&&e.code?e.code:Pr.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:Qr});return hs(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(Qt).onMessageDeleted(e),fs({messageList:e})}},{key:"_generateUUID",value:function(){var e=this.getModule(Zt);return"".concat(e.getSDKAppID(),"-").concat(e.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=at[Math.floor(Math.random()*st)];return e}())}},{key:"getMessageOptionByID",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(zt).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===I.CONV_GROUP){var t=this.getModule(Yt);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._messageOptionsMap.clear()}}]),r}(vn),vc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="PluginModule",o.plugins={},o}return o(r,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new fi(_i).setMessage("key=".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset"))}}]),r}(vn),mc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="SyncUnreadMessageModule",o._cookie="",o._onlineSyncFlag=!1,o.getInnerEmitterInstance().on(vs,o._onLoginSuccess,g(o)),o}return o(r,[{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,r=e.syncFlag,o=e.isOnlineSync;Ne.log("".concat(this._className,"._startSync cookie:").concat(n," syncFlag:").concat(r," isOnlineSync:").concat(o)),this.request({protocolName:Mn,requestData:{cookie:n,syncFlag:r,isOnlineSync:o}}).then((function(e){var n=e.data,r=n.cookie,o=n.syncFlag,i=n.eventArray,a=n.messageList,s=n.C2CRemainingUnreadList,c=n.C2CPairUnreadList;t._cookie=r,Dt(r)||(0===o||1===o?(i&&t.getModule(cn).onMessage({head:{},body:{eventArray:i,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!1}}),t.getModule(Kt).onNewC2CMessage({dataList:a,isInstantMessage:!1,C2CRemainingUnreadList:s,C2CPairUnreadList:c}),t._startSync({cookie:r,syncFlag:o,isOnlineSync:0})):2===o&&(i&&t.getModule(cn).onMessage({head:{},body:{eventArray:i,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!0}}),t.getModule(Kt).onNewC2CMessage({dataList:a,isInstantMessage:t._onlineSyncFlag,C2CRemainingUnreadList:s,C2CPairUnreadList:c})))})).catch((function(e){Ne.error("".concat(t._className,"._startSync failed. error:"),e)}))}},{key:"startOnlineSync",value:function(){Ne.log("".concat(this._className,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){Ne.log("".concat(this._className,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),r}(vn),_c={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"},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"},ignoreKeyWord:["C2C","ID","USP"]};function yc(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=bc(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 bc=function(e){for(var t=!1,n=!1,r=!1,o=0;o<e.length;o++){var i=e[o];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.slice(0,o)+"-"+e.slice(o),t=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.slice(0,o-1)+"-"+e.slice(o-1),r=n,n=!1,t=!0):(t=i.toLowerCase()===i&&i.toUpperCase()!==i,r=n,n=i.toUpperCase()===i&&i.toLowerCase()!==i)}return e};function Mc(e,t){var n=0;return function e(t,r){if(++n>100)return n--,t;if(We(t)){var o=t.map((function(t){return Ve(t)?e(t,r):t}));return n--,o}if(Ve(t)){var i=(a=t,s=function(e,t){if(!Qe(t))return!1;if((o=t)!==yc(o))for(var n=0;n<_c.ignoreKeyWord.length&&!t.includes(_c.ignoreKeyWord[n]);n++);var o;return ze(r[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+yc(e).slice(1)}(t):r[t]},c=Object.create(null),Object.keys(a).forEach((function(e){var t=s(a[e],e);t&&(c[t]=a[e])})),c);return i=bt(i,(function(t,n){return We(t)||Ve(t)?e(t,r):t})),n--,i}var a,s,c}(e,t)}function Sc(e,t){if(We(e))return e.map((function(e){return Ve(e)?Sc(e,t):e}));if(Ve(e)){var n=(r=e,o=function(e,n){return ze(t[n])?yc(n):t[n]},i={},Object.keys(r).forEach((function(e){i[o(r[e],e)]=r[e]})),i);return bt(n,(function(e){return We(e)||Ve(e)?Sc(e,t):e}))}var r,o,i}var kc=String.fromCharCode,wc=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 kc(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?kc(192|t>>>6,128|63&t):kc(224|t>>>12,128|t>>>6&63,128|63&t)},Cc=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,wc),n=0|t.length,r=new Uint8Array(n),o=0;o<n;o=o+1|0)r[o]=0|t.charCodeAt(o);return r},Tc=function(e){for(var t=new Uint8Array(e),n="",r=0,o=t.length;r<o;){var i=t[r],a=0,s=0;if(i<=127?(a=0,s=255&i):i<=223?(a=1,s=31&i):i<=239?(a=2,s=15&i):i<=244&&(a=3,s=7&i),o-r-a>0)for(var c=0;c<a;)s=s<<6|63&(i=t[r+c+1]),c+=1;else s=65533,a=o-r;n+=String.fromCodePoint(s),r+=a+1}return n},Ic=function(){function e(t){n(this,e),this._handler=t;var r=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=it(),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 i=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,r=t.e;"onOpen"===n?i._onOpen():"onClose"===n?i._onClose(r):"onError"===n?i._onError(r):"onMessage"===n&&i._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:r})}else te?Z?(re.connectSocket({url:r,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:r,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))):ne&&(this._socket=new WebSocket(r),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 o(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?Tc(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),Z)return re.offSocketClose(),re.offSocketMessage(),re.offSocketOpen(),re.offSocketError(),void re.closeSocket();this._socket&&(te?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):ne&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),Q?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?Cc(e.data).buffer:e.data});else{if(Z)return void re.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(te?this._socket.send({data:this._canIUseBinaryFrame?Cc(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):ne&&this._socket.send(this._canIUseBinaryFrame?Cc(e.data).buffer:e.data))}}}]),e}(),Ac=4e3,Ec=4001,Oc="connected",Dc="connecting",Nc="disconnected",Lc=function(){function e(t){n(this,e),this._channelModule=t,this._className="SocketHandler",this._promiseMap=new Map,this._readyState=Nc,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=it(),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 o(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(Zt),t=G;this._channelModule.isOversea()&&(t=U),e.isSingaporeSite()?t=F:e.isKoreaSite()?t=j:e.isGermanySite()?t=$:e.isIndiaSite()&&(t=q),B.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){ze(B.HOST.CURRENT.BACKUP)||""===this._url?this._url=B.HOST.CURRENT.DEFAULT:this._url===B.HOST.CURRENT.DEFAULT?this._url=B.HOST.CURRENT.BACKUP:this._url===B.HOST.CURRENT.BACKUP&&(this._url=B.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(Zt).getProxyServer();Dt(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 r=t.reject,o=t.timestamp;Date.now()-o>=15e3&&(Ne.log("".concat(e._className,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),r(new us({code:Pr.NETWORK_TIMEOUT,message:Vo})),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;Ne.log("".concat(this._className,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new fi(Mi).setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=Oc,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 fi(Si),n=e.id,r=e.e,o="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(r.code," reason:").concat(r.reason),i=0;0!==this._onOpenTs&&(i=Date.now()-this._onOpenTs),t.setMessage(i).setCostTime(i).setMoreMessage(o).setCode(r.code).end(),Ne.log("".concat(this._className,"._onClose ").concat(o," onlineTime:").concat(i)),n===this._socketID&&(this._readyState=Nc,i<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,r="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new fi(ki).setMessage(n.errMsg||rt(n)).setMoreMessage(r).setLevel("error").end(),Ne.warn("".concat(this._className,"._onError"),n,r),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(l){new fi(ji).setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),r=Tt(t.head),o=Sc(t.body,this._getResponseKeyMap(r));if(Ne.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 i=this._promiseMap.get(n),a=i.resolve,s=i.reject,c=i.timestamp;return this._promiseMap.delete(n),this._calcRTT(c),void(o.errorCode&&0!==o.errorCode?(this._channelModule.onErrorCodeNotZero(o),s(new us({code:o.errorCode,message:o.errorInfo||""}))):a(rs(o)))}this._channelModule.onMessage({head:t.head,body:o})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(pn).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Ic(this),this._socketID=this._socket.getID(),this._readyState=Dc,Ne.log("".concat(this._className,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new fi(bi).setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){var e=this._channelModule.getModule(Zt);e.isDevMode()&&(this._canIUseBinaryFrame=!1);var t=kt();(Z||Y&&"windows"===t||ee)&&(this._canIUseBinaryFrame=!1);var n=this._channelModule.getPlatform(),r=e.getSDKAppID(),o=e.getInstanceID();return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?sdkappid=").concat(r,"&instanceid=").concat(o,"&random=").concat(this._getRandom(),"&platform=").concat(n,"&host=").concat(t):"".concat(this._url,"/info?sdkappid=").concat(r,"&instanceid=").concat(o,"&random=").concat(this._getRandom(),"&platform=").concat(n,"&host=").concat(t)}},{key:"_closeConnection",value:function(e){Ne.log("".concat(this._className,"._closeConnection")),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=Nc)}},{key:"_resend",value:function(){var e=this;if(Ne.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 r=t.uplinkData,o=t.resolve,i=t.reject;e._promiseMap.set(n,{resolve:o,reject:i,timestamp:Date.now(),uplinkData:r}),e._execute(n,r)})),this._simpleRequestMap.size>0){var t,n=C(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var r=_(t.value,2),o=r[0],i=r[1];this._execute(o,i)}}catch(s){n.e(s)}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=p(e,["keyMap"]),r=this._getRequestIDFromHead(e.head),o=JSON.stringify(n);return new Promise((function(e,i){t._promiseMap.set(r,{resolve:e,reject:i,timestamp:Date.now(),uplinkData:o}),Ne.debug("".concat(t._className,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(r," readyState:").concat(t._readyState)),t._readyState!==Oc?t._reConnect():(t._execute(r,o),t._channelModule.getModule(pn).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=p(e,["keyMap"]),n=this._getRequestIDFromHead(e.head),r=JSON.stringify(t);this._readyState!==Oc?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,r):Ne.log("".concat(this._className,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,r)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:te?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Ne.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=it()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return s({},_c.response,{},t.response)}},{key:"_reConnect",value:function(){this._readyState!==Oc&&this._readyState!==Dc&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this;Ne.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(Ec),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(t){var n=_(t,2),r=n[0];n[1],r?(Ne.warn("".concat(e._className,".forcedReconnect disconnected from wsserver but network is ok, continue...")),e._closeConnection(Ec),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===Oc}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){Ne.log("".concat(this._className,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&ye}},{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(){Ne.log("".concat(this._className,".close")),this._closeConnection(Ac),this._promiseMap.clear(),this._startSequence=it(),this._readyState=Nc,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),xc=function(e){c(r,e);var t=m(r);function r(e){var o;if(n(this,r),(o=t.call(this,e))._className="ChannelModule",o._socketHandler=new Lc(g(o)),o._probing=!1,o._isAppShowing=!0,o._previousState=I.NET_STATE_CONNECTED,te&&"function"==typeof re.onAppShow&&"function"==typeof re.onAppHide){var i=o._onAppHide.bind(g(o)),a=o._onAppShow.bind(g(o));"function"==typeof re.offAppHide&&re.offAppHide(i),"function"==typeof re.offAppShow&&re.offAppShow(a),re.onAppHide(i),re.onAppShow(a)}return o._timerForNotLoggedIn=-1,o._timerForNotLoggedIn=setInterval(o.onCheckTimer.bind(g(o)),1e3),o._fatalErrorFlag=!1,o}return o(r,[{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(cn).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(cn).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==I.NET_STATE_CONNECTED&&e.head.servcmd.includes(kr)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=B.HOST.CURRENT.STAT;return new Promise((function(n,r){var o="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),i=JSON.stringify(e.body),a="application/x-www-form-urlencoded;charset=UTF-8";if(te)re.request({url:o,data:i,method:"POST",timeout:3e3,header:{"content-type":a},success:function(){n()},fail:function(){r(new us({code:Pr.NETWORK_ERROR,message:Bo}))}});else{var s=new XMLHttpRequest,c=setTimeout((function(){s.abort(),r(new us({code:Pr.NETWORK_TIMEOUT,message:Vo}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(c),200===s.status||304===s.status?n():r(new us({code:Pr.NETWORK_ERROR,message:Bo})))},s.open("POST",o,!0),s.setRequestHeader("Content-type",a),s.send(i)}}))}},{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(I.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){te&&Ne.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(cn).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(){Ne.log("".concat(this._className,".onReconnected")),this.getModule(cn).onReconnected(),this._emitNetStateChangeEvent(I.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Ne.log("".concat(this._className,".onReconnectFailed")),this._emitNetStateChangeEvent(I.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(Ne.log("".concat(this._className,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===I.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(I.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Ne.log("".concat(this._className,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent(T.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(cn).getProtocolData({protocolName:wr});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Ne.warn("".concat(e._className,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new fi(Fa).setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule(nn).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(I.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=_(t,2),r=n[0],o=n[1];Ne.log("".concat(e._className,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(r," networkType:").concat(o)),r?e.reConnect():e._emitNetStateChangeEvent(I.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(){Ne.log("".concat(this._className,".reset")),this._previousState=I.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),r}(vn),Rc=function(){function t(e){n(this,t),this._className="ProtocolHandler",this._sessionModule=e,this._configMap=new Map,this._fillConfigMap()}return o(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:s({},e,{servcmd:"".concat(B.NAME.IM_OPEN_STATUS,".").concat(B.CMD.LOGIN)}),body:{state:"Online"},keyMap:{response:{TinyId:"tinyID",InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(_n,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_OPEN_STATUS,".").concat(B.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(yn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_OPEN_STATUS,".").concat(B.CMD.HELLO)}),body:{},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(bn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.STAT_SERVICE,".").concat(B.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(br,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_COS_SIGN,".").concat(B.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(Mr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.CUSTOM_UPLOAD,".").concat(B.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(Sr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.CUSTOM_UPLOAD,".").concat(B.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(Lr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_CONFIG_MANAGER,".").concat(B.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(xr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_CONFIG_MANAGER,".").concat(B.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(Dr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_CONFIG_MANAGER,".").concat(B.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(Nr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_CONFIG_MANAGER,".").concat(B.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(Rr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OVERLOAD_PUSH,".").concat(B.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(Mn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.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(Sn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(kn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.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(wn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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},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"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(On,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.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(er,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(xn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.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(rr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(Dn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(Nn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(Ln,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(tr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(nr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.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(Pn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(ur,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(Rn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(Un,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.RECENT_CONTACT,".").concat(B.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(Gn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.RECENT_CONTACT,".").concat(B.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(Fn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.RECENT_CONTACT,".").concat(B.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(jn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.RECENT_CONTACT,".").concat(B.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set($n,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(Cn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.PROFILE,".").concat(B.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(Tn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.PROFILE,".").concat(B.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:xe.NICK,value:""},{tag:xe.GENDER,value:""},{tag:xe.ALLOWTYPE,value:""},{tag:xe.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(In,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.FRIEND,".").concat(B.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(An,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.FRIEND,".").concat(B.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(En,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.FRIEND,".").concat(B.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(qn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(Bn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(Vn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(Hn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Wn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(zn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(Kn,function(e){return e.a2,e.tinyid,{head:s({},p(e,["a2","tinyid"]),{servcmd:"".concat(B.NAME.BIG_GROUP_NO_AUTH,".").concat(B.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(Yn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(Xn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(Jn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(Qn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(Zn,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(or,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"}}}}(e)),this._configMap.set(ir,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(ar,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.BIG_GROUP_LONG_POLLING,".").concat(B.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(sr,function(e){return e.a2,e.tinyid,{head:s({},p(e,["a2","tinyid"]),{servcmd:"".concat(B.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(B.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(cr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(lr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(dr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(fr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(hr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(pr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP_ATTR,".").concat(B.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(gr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(vr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(mr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(_r,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(yr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.GROUP,".").concat(B.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(kr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_OPEN_STAT,".").concat(B.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",framework:"framework"}}}}(n)),this._configMap.set(wr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.HEARTBEAT,".").concat(B.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(Cr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_OPEN_PUSH,".").concat(B.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(Tr,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_OPEN_PUSH,".").concat(B.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(Ir,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.OPEN_IM,".").concat(B.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(Ar,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_OPEN_STATUS,".").concat(B.CMD.STATUS_FORCEOFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(Or,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_LONG_MESSAGE,".").concat(B.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(Er,function(e){return{head:s({},e,{servcmd:"".concat(B.NAME.IM_LONG_MESSAGE,".").concat(B.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||{}:(Ne.warn("".concat(this._className,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,r=this.get(t),o=null;if(n){var i=this._simpleDeepCopy(r),a=this._updateService(n,i),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(r);return o}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=Tt(t.head),r=Mc(t.body,this._getRequestKeyMap(n));return t.body=r,t}},{key:"_updateService",value:function(e,t){var n=Tt(t.head);if(t.head.servcmd.includes(B.NAME.GROUP)){var r=e.type,o=e.groupID,i=void 0===o?void 0:o,a=e.groupIDList,s=void 0===a?[]:a;ze(i)&&(i=s[0]||""),vt({type:r,groupID:i})&&(t.head.servcmd="".concat(B.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return s({},_c.request,{},t.request)}},{key:"_requestDataCleaner",value:function(t){var n=Array.isArray(t)?[]:Object.create(null);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Qe(r)&&null!==t[r]&&void 0!==t[r]&&("object"!==e(t[r])?n[r]=t[r]:n[r]=this._requestDataCleaner.bind(this)(t[r]));return n}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),r={},o=0,i=n.length;o<i;o++)t=n[o],We(e[t])?r[t]=Array.from(e[t]):Ve(e[t])?r[t]=this._simpleDeepCopy(e[t]):r[t]=e[t];return r}}]),t}(),Pc=[Ir],Gc=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=y(this._eventHandlerMap.keys())}return o(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Kt);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(sn).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(Yt);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(Yt);if(t){var n=e.event,r=e.dataList,o=e.isInstantMessage,i=void 0===o||o,a=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:r});break;case 5:r.forEach((function(e){We(e.elements.revokedInfos)?t.onGroupMessageRevoked({dataList:r}):We(e.elements.groupMessageReadNotice)?t.onGroupMessageReadNotice({dataList:r}):t.onNewGroupSystemNotice({dataList:r,isInstantMessage:i,isSyncingEnded:a})}));break;case 12:this._sessionModule.getModule(Qt).onNewGroupAtTips({dataList:r});break;default:Ne.log("".concat(this._className,"._groupTipsHandler unknown event:").concat(n," dataList:"),r)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(We(n)){var r=this._sessionModule.getModule(Kt);n.forEach((function(e){if(He(e))if(e.hasOwnProperty("kickoutMsgNotify")){var o=e.kickoutMsgNotify,i=o.kickType,a=o.newInstanceInfo,s=void 0===a?{}:a;1===i?t._sessionModule.onMultipleAccountKickedOut(s):2===i&&t._sessionModule.onMultipleDeviceKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?r&&r.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?r&&r.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?r&&r.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(Qt).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(zt).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(Xt);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(zt).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(Xt);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(We(t)){var n=this._sessionModule.getModule(Qt);n&&t.forEach((function(e){var t=e.pushType,r=e.recentContactTopItem,o=e.recentContactDeleteItem;1===t?n.onConversationDeleted(o.recentContactList):2===t?n.onConversationPinned(r.recentContactList):3===t&&n.onConversationUnpinned(r.recentContactList)}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(Qt);n&&n.onPushedAllMessageRead(t)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var r=n.eventArray,o=n.isInstantMessage,i=n.isSyncingEnded,a=n.needSync;if(We(r))for(var s=null,c=null,u=0,l=0,d=r.length;l<d;l++){u=(s=r[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:i,needSync:a})):Ne.log("".concat(this._className,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,r=t.servcmd,o=!1;if(ze(r)||(o=r.includes(B.NAME.IM_CONFIG_MANAGER)||r.includes(B.NAME.OVERLOAD_PUSH)||r.includes(B.NAME.STAT_SERVICE)),!o)return!0;if(r.includes(B.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(dn).onPushedCloudControlConfig(n);else if(r.includes(B.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(gn).onPushedConfig(n);else if(r.includes(B.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(r.includes(B.CMD.KICK_OTHER)){var i=Date.now();this._sessionModule.reLoginOnKickOther();var a=new fi(yi),s=this._sessionModule.getModule(Ht).getLastWsHelloTs(),c=i-s;a.setMessage("last wshello time:".concat(s," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),Uc=[{cmd:B.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:B.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:B.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:B.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:B.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:B.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:B.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1}],Fc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="SessionModule",o._platform=o.getPlatform(),o._protocolHandler=new Rc(g(o)),o._messageDispatcher=new Gc(g(o)),o._commandFrequencyLimitMap=new Map,o._commandRequestInfoMap=new Map,o._serverOverloadInfoMap=new Map,o._init(),o.getInnerEmitterInstance().on(ms,o._onCloudConfigUpdated,g(o)),o}return o(r,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(Uc)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");ze(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){Ne.debug("".concat(this._className,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Ne.warn("".concat(this._className,".request unknown protocol:").concat(t)),hs({code:Pr.CANNOT_FIND_PROTOCOL,message:zo});var r=this.getProtocolData(e),o=r.head.servcmd;if(this._isFrequencyOverLimit(o))return hs({code:Pr.OVER_FREQUENCY_LIMIT,message:Xo});if(this._isServerOverload(o))return hs({code:Pr.OPEN_SERVICE_OVERLOAD_ERROR,message:Jo});Dt(n)||(r.head.tjgID=n);var i=this.getModule(un);return Pc.includes(t)?i.simplySend(r):i.send(r)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(Zt);return{ver:"v4",platform:this._platform,websdkappid:P,websdkversion:R,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(Zt);return{ver:"v4",platform:this._platform,websdkappid:P,websdkversion:R,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(Zt);return{ver:"v4",platform:this._platform,websdkappid:P,websdkversion:R,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===Pr.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,r=e.newInstanceInfo,o=void 0===r?{}:r;1===n?this.onMultipleAccountKickedOut(o):2===n&&this.onMultipleDeviceKickedOut(o)}t!==Pr.MESSAGE_A2KEY_EXPIRED&&t!==Pr.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(un).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,r=void 0===n?0:n,o=t.sessionData;1===r&&this._sendACK(o),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Ne.log("".concat(this._className,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Ne.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(Zt).setStatusInstanceID(n),Ne.log("".concat(e._className,"._reLogin ok. start to sync unread messages")),e.getModule(sn).startSyncOnReconnected(),e.getModule(hn).startPull(),e.getModule(Yt).updateLocalMainSequenceOnReconnected()}))}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule(Ht).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule(Ht).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule(Ht).onUserSigExpired()}},{key:"_sendACK",value:function(e){this.request({protocolName:Ir,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),r=n.count,o=n.interval,i=this._commandRequestInfoMap.get(t),a=i.startTime,s=i.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>r&&(c=!0),c}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,r=t.waitingTime,o=!1;return Date.now()-n<=1e3*r?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}),Ne.warn("".concat(this._className,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._updateCommandFrequencyLimitMap(Uc),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),r}(vn),jc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="MessageLossDetectionModule",o._maybeLostSequencesMap=new Map,o}return o(r,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var r=this._maybeLostSequencesMap.get(e),o=0;o<n;o++)r.push(t+o);Ne.debug("".concat(this._className,".onMessageMaybeLost. maybeLostSequences:").concat(r))}},{key:"detectMessageLoss",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!Dt(n)&&!Dt(t)){var r=t.filter((function(e){return-1!==n.indexOf(e)}));if(Ne.debug("".concat(this._className,".detectMessageLoss. matchedSequences:").concat(r)),n.length===r.length)Ne.info("".concat(this._className,".detectMessageLoss no message loss. conversationID:").concat(e));else{var o,i=n.filter((function(e){return-1===r.indexOf(e)})),a=i.length;a<=5?o=e+"-"+i.join("-"):(i.sort((function(e,t){return e-t})),o=e+" start:"+i[0]+" end:"+i[a-1]+" count:"+a),new fi(Ia).setMessage(o).setNetworkType(this.getNetworkType()).setLevel("warning").end(),Ne.warn("".concat(this._className,".detectMessageLoss message loss detected. conversationID:").concat(e," lostSequences:").concat(i))}n.length=0}}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._maybeLostSequencesMap.clear()}}]),r}(vn),$c=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="CloudControlModule",o._cloudConfig=new Map,o._expiredTime=0,o._version=0,o._isFetching=!1,o}return o(r,[{key:"getCloudConfig",value:function(e){return ze(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(Ne.log("".concat(this._className,".fetchConfig canFetchConfig:").concat(t)),t){var n=new fi(Ra),r=this.getModule(Zt).getSDKAppID();this._isFetching=!0,this.request({protocolName:Dr,requestData:{SDKAppID:r,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(),Ne.log("".concat(e._className,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var r=_(e,2),o=r[0],i=r[1];n.setError(t,o,i).end()})),Ne.log("".concat(e._className,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){Ne.log("".concat(this._className,".onPushedCloudControlConfig")),new fi(Pa).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"),r=e.errorCode,o=e.errorMessage,i=e.cloudControlConfig,a=e.version,s=e.expiredTime;if(0===r){if(this._version!==a){var c=null;try{c=JSON.parse(i)}catch(l){Ne.error("".concat(n," JSON parse error:").concat(i))}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=a,this.emitInnerEvent(ms))}this._expiredTime=Date.now()+1e3*s}else ze(r)?(Ne.log("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Ne.error("".concat(n," errorCode:").concat(r," errorMessage:").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),r}(vn),qc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="PullGroupMessageModule",o._remoteLastMessageSequenceMap=new Map,o.PULL_LIMIT_COUNT=15,o}return o(r,[{key:"startPull",value:function(){var e=this,t=this._getNeedPullConversationList();this._getRemoteLastMessageSequenceList().then((function(){var n=e.getModule(Qt);t.forEach((function(t){var r=t.conversationID,o=r.replace(I.CONV_GROUP,""),i=n.getGroupLocalLastMessageSequence(r),a=e._remoteLastMessageSequenceMap.get(o)||0,s=a-i;Ne.log("".concat(e._className,".startPull groupID:").concat(o," localLastMessageSequence:").concat(i," ")+"remoteLastMessageSequence:".concat(a," diff:").concat(s)),i>0&&s>=1&&s<300&&e._pullMissingMessage({groupID:o,localLastMessageSequence:i,remoteLastMessageSequence:a,diff:s})}))}))}},{key:"_getNeedPullConversationList",value:function(){return this.getModule(Qt).getLocalConversationList().filter((function(e){return e.type===I.CONV_GROUP&&e.groupProfile.type!==I.GRP_AVCHATROOM}))}},{key:"_getRemoteLastMessageSequenceList",value:function(){var e=this;return this.getModule(Yt).getGroupList().then((function(t){for(var n=t.data.groupList,r=void 0===n?[]:n,o=0;o<r.length;o++){var i=r[o],a=i.groupID,s=i.nextMessageSeq;if(i.type!==I.GRP_AVCHATROOM){var c=s-1;e._remoteLastMessageSequenceMap.set(a,c)}}}))}},{key:"_pullMissingMessage",value:function(e){var t=this,n=e.localLastMessageSequence,r=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(i){i.length>0&&(i[0].sequence+1<=r&&(e.localLastMessageSequence=n+t.PULL_LIMIT_COUNT,e.diff=o-t.PULL_LIMIT_COUNT,t._pullMissingMessage(e)),t.getModule(Yt).onNewGroupMessage({dataList:i,isInstantMessage:!1}))}))}},{key:"_getGroupMissingMessage",value:function(e){var t=this,n=new fi(ua);return this.request({protocolName:rr,requestData:{groupID:e.groupID,count:e.count,sequence:e.sequence}}).then((function(r){var o=r.data.messageList,i=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(i.length)).end(),i})).catch((function(e){t.probeNetwork().then((function(t){var r=_(t,2),o=r[0],i=r[1];n.setError(e,o,i).end()}))}))}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),this._remoteLastMessageSequenceMap.clear()}}]),r}(vn),Bc=function(){function e(){n(this,e),this._className="AvgE2EDelay",this._e2eDelayArray=[]}return o(e,[{key:"addMessageDelay",value:function(e){var t=Ae()-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})),It(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,r=e.max;return t.filter((function(e){return n<=e&&e<r})).length}},{key:"_calcPercent",value:function(e,t){var n=It(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 r=n.length,o=Math.min.apply(Math,y(n)),i=Math.max.apply(Math,y(n)),a=this._calcAvg(n,r),s=It(r/e.length*100,2);s>50&&new fi($i).setMessage("message e2e delay exception. count:".concat(r," min:").concat(o," max:").concat(i," 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=y(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),r=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),o=this._calcPercent(n,e),i=this._calcPercent(r,e),a=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:o,countLessThan3Second:r,percentOfCountLessThan3Second:i,avgDelay:a}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),Vc=function(){function e(){n(this,e),this._className="AvgRTT",this._requestCount=0,this._rttArray=[]}return o(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=It(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,y(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,y(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=y(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),r=this._calcSuccessRateOfRequest(n,e),o=this._calcAvg(t,n);return Ne.log("".concat(this._className,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(o)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:r,avgRTT:o}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),Hc=function(){function e(){n(this,e),this._map=new Map}return o(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!(ze(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(ze(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(ze(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=It(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(ze(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=It(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return ze(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return ze(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(ze(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return ze(e)||!this._map.has(e)?-1:e===oi?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),r=this._calcSuccessRateOfBusiness(e),o=this._calcSuccessCountOfPlatform(e),i=this._calcSuccessRateOfPlatform(e),a=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:r,successCountOfPlatform:o,successRateOfPlatform:i,avgValue:a}}},{key:"reset",value:function(e){ze(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),Wc=function(){function e(){n(this,e),this._lastMap=new Map,this._currentMap=new Map}return o(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(ze(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var r=n.conversationID,o=n.sequence,i=r.replace(I.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(i)){var a=this._lastMap.get(t).get(i),s=a.length-1;o>a[0]&&o<a[s]?(a.push(o),a.sort(),this._lastMap.get(t).set(i,a)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,r=n.conversationID,o=n.sequence,i=r.replace(I.CONV_GROUP,"");this._currentMap.get(t).has(i)||this._currentMap.get(t).set(i,[]),this._currentMap.get(t).get(i).push(o)}},{key:"_copyData",value:function(e){if(!ze(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),r=C(this._currentMap.get(e));try{for(r.s();!(t=r.n()).done;){var o=_(t.value,2),i=o[0],a=o[1];n.set(i,a)}}catch(c){r.e(c)}finally{r.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(ze(this._currentMap.get(e))||ze(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,r){var o=y(e.values()),i=o.length,a=o[i-1]-o[0]+1;t+=a,n+=i})),0===t)return null;var r=It(n/t*100,2);return r>100&&(r=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:r}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),zc=function(e){c(r,e);var t=m(r);function r(e){var o;n(this,r),(o=t.call(this,e))._className="QualityStatModule",o.TAG="im-ssolog-quality-stat",o.reportIndex=0,o.wholePeriod=!1,o._qualityItems=[Qo,Zo,ei,ti,ni,ri,oi,ii,ai,si],o._messageSentItems=[ei,ti,ni,ri,oi],o._messageReceivedItems=[ii,ai,si],o.REPORT_INTERVAL=120,o.REPORT_SDKAPPID_BLACKLIST=[],o.REPORT_TINYID_WHITELIST=[],o._statInfoArr=[],o._avgRTT=new Vc,o._avgE2EDelay=new Bc,o._rateMessageSent=new Hc,o._rateMessageReceived=new Wc;var i=o.getInnerEmitterInstance();return i.on(vs,o._onLoginSuccess,g(o)),i.on(ms,o._onCloudConfigUpdated,g(o)),o}return o(r,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(en),n=t.getItem(this.TAG,!1);!Dt(n)&&Ye(n.forEach)&&(Ne.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");ze(e)||(this.REPORT_INTERVAL=Number(e)),ze(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),ze(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)||Ne.warn("".concat(this._className,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Ne.warn("".concat(this._className,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Ne.warn("".concat(this._className,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Ne.warn("".concat(this._className,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Ne.warn("".concat(this._className,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Ne.warn("".concat(this._className,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},n=li[this.getNetworkType()];ze(n)&&(n=8);var r={qualityType:ci[e],timestamp:Te(),networkType:n,extension:""};switch(e){case Qo:t=this._avgRTT.getStatResult();break;case Zo:t=this._avgE2EDelay.getStatResult();break;case ei:case ti:case ni:case ri:case oi:t=this._rateMessageSent.getStatResult(e);break;case ii:case ai:case si:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:s({},r,{},t)}},{key:"_report",value:function(e){var t=this,n=[],r=null;ze(e)?this._qualityItems.forEach((function(e){null!==(r=t._getQualityItem(e))&&(r.reportIndex=t.reportIndex,r.wholePeriod=t.wholePeriod,n.push(r))})):null!==(r=this._getQualityItem(e))&&(r.reportIndex=this.reportIndex,r.wholePeriod=this.wholePeriod,n.push(r)),Ne.debug("".concat(this._className,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var o=this.getModule(Zt),i=o.getSDKAppID(),a=o.getTinyID();At(this.REPORT_SDKAPPID_BLACKLIST,i)&&!Et(this.REPORT_TINYID_WHITELIST,a)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,n={header:oc(this),quality:e};this.request({protocolName:kr,requestData:s({},n)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){Ne.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(en),t=e.getItem(this.TAG,!1),n=this._statInfoArr;if(Dt(t))Ne.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var r=n.concat(t);r.length>10&&(r=r.slice(0,10)),Ne.log("".concat(this.className,"._flushAtOnce count:").concat(r.length)),e.setItem(this.TAG,r,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){Ne.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()}}]),r}(vn),Kc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="WorkerTimerModule",o._isWorkerEnabled=!0,o._workerTimer=null,o._init(),o.getInnerEmitterInstance().on(ms,o._onCloudConfigUpdated,g(o)),o}return o(r,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&ye}},{key:"startWorkerTimer",value:function(){Ne.log("".concat(this._className,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Ne.log("".concat(this._className,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(ye){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");Ne.log("".concat(this._className,"._onCloudConfigUpdated enableWorker:").concat(e)),"1"===e?!this._isWorkerEnabled&&ye&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._moduleManager.onWorkerTimerEnabled()):this._isWorkerEnabled&&ye&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._moduleManager.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Ne.log("".concat(this._className,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null)}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset"))}}]),r}(vn),Yc=function(){function e(){n(this,e),this._className="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return o(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),r=null,o=e.length-1,i=0;o>=0;o--,i++)r=i<32?new N(0,Math.pow(2,i)).toString():new N(Math.pow(2,i-32),0).toString(),-1!==n.indexOf(r)&&("1"===e[o]?this._purchasedFeatureMap.set(r,!0):this._purchasedFeatureMap.set(r,!1))}else Ne.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}(),Xc=function(e){c(r,e);var t=m(r);function r(e){var o;return n(this,r),(o=t.call(this,e))._className="CommercialConfigModule",o._expiredTime=0,o._isFetching=!1,o._purchasedFeatureHandler=new Yc,o}return o(r,[{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(Ne.log("".concat(n," canFetch:").concat(t)),t){var r=new fi(Ga);r.setNetworkType(this.getNetworkType());var o=this.getModule(Zt).getSDKAppID();this._isFetching=!0,this.request({protocolName:Lr,requestData:{SDKAppID:o}}).then((function(t){r.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Ne.log("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){e.probeNetwork().then((function(e){var n=_(e,2),o=n[0],i=n[1];r.setError(t,o,i).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._className,".onPushedConfig");Ne.log("".concat(t)),new fi(Ua).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,r=e.errorMessage,o=e.purchaseBits,i=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(o),this._expiredTime=Date.now()+1e3*i):ze(n)?(Ne.log("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Ne.error("".concat(t," errorCode:").concat(n," errorMessage:").concat(r)),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(){Ne.log("".concat(this._className,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),r}(vn),Jc=function(){function e(t){n(this,e);var r=new fi(hi);this._className="ModuleManager",this._isReady=!1,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(Zt,new Zs(this,t)),this._moduleMap.set(gn,new Xc(this)),this._moduleMap.set(dn,new $c(this)),this._moduleMap.set(fn,new Kc(this)),this._moduleMap.set(pn,new zc(this)),this._moduleMap.set(un,new xc(this)),this._moduleMap.set(cn,new Fc(this)),this._moduleMap.set(Ht,new ec(this)),this._moduleMap.set(Wt,new gc(this)),this._moduleMap.set(zt,new Qs(this)),this._moduleMap.set(Kt,new ps(this)),this._moduleMap.set(Qt,new Rs(this)),this._moduleMap.set(Yt,new Ws(this)),this._moduleMap.set(Jt,new Ks(this)),this._moduleMap.set(en,new nc(this)),this._moduleMap.set(tn,new ic(this)),this._moduleMap.set(nn,new cc(this)),this._moduleMap.set(rn,new lc(this)),this._moduleMap.set(on,new dc(this)),this._moduleMap.set(an,new vc(this)),this._moduleMap.set(sn,new mc(this)),this._moduleMap.set(ln,new jc(this)),this._moduleMap.set(hn,new qc(this)),this._eventThrottleMap=new Map;var o=t.instanceID,i=t.oversea,a=t.SDKAppID,s="instanceID:".concat(o," SDKAppID:").concat(a," host:").concat(kt()," oversea:").concat(i," inBrowser:").concat(ne," inMiniApp:").concat(te)+" workerAvailable:".concat(ye," UserAgent:").concat(ie);fi.bindEventStatModule(this._moduleMap.get(tn)),r.setMessage("".concat(s," ").concat(function(){var e="";if(te)try{var t=re.getSystemInfoSync(),n=t.model,r=t.version,o=t.system,i=t.platform,a=t.SDKVersion;e="model:".concat(n," version:").concat(r," system:").concat(o," platform:").concat(i," SDKVersion:").concat(a)}catch(s){e=""}return e}())).end(),Ne.info("SDK ".concat(s)),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return o(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(fn),t=e.isWorkerEnabled();Ne.log("".concat(this._className,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){Ne.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(fn),t=e.isWorkerEnabled();Ne.log("".concat(this._className,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Ne.log("".concat(this._className,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Ne.log("".concat(this._className,"._stopMainThreadSocket"));var e=this._moduleMap.get(un);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Ne.log("".concat(this._className,"._startMainThreadSocket"));var e=this._moduleMap.get(un);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Ne.log("".concat(this._className,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Ne.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=C(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(o){t.e(o)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get(Ht),this._moduleMap.get(Qt)],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(T.SDK_READY);var t=Date.now()-this._startLoginTs;Ne.warn("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get(nn).getNetworkType(),r=this._ssoLogForReady.getStartTs()+Ce;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(r).end()}}},{key:"login",value:function(){0===this._startLoginTs&&(Ie(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(nn).start(),this._ssoLogForReady=new fi(pi))}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new uc,ds(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===T.CONVERSATION_LIST_UPDATED||e===T.FRIEND_LIST_UPDATED||e===T.GROUP_LIST_UPDATED)if(this._eventThrottleMap.has(e)){var r=Date.now(),o=this._eventThrottleMap.get(e);r-o.last<500?(o.timeoutID&&clearTimeout(o.timeoutID),o.timeoutID=setTimeout((function(){o.last=r,n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),500)):(o.last=r,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===T.CONVERSATION_LIST_UPDATED?this._moduleMap.get(Qt).getLocalConversationList():e===T.FRIEND_LIST_UPDATED?this._moduleMap.get(Xt).getLocalFriendList(!1):e===T.GROUP_LIST_UPDATED?this._moduleMap.get(Yt).getLocalGroupList():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new uc,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;He(arguments[1])&&arguments[1].data?(Ne.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:"onError",value:function(e){Ne.warn("Oops! code:".concat(e.code," message:").concat(e.message)),new fi(Fa).setMessage("code:".concat(e.code," message:").concat(e.message)).setNetworkType(this.getModule(nn).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit(T.ERROR,e)}},{key:"reset",value:function(){Ne.log("".concat(this._className,".reset")),Ie();var e,t=C(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit(T.SDK_NOT_READY);var r,o=C(this._eventThrottleMap);try{for(o.s();!(r=o.n()).done;){var i=_(r.value,2)[1];i.timeoutID&&clearTimeout(i.timeoutID)}}catch(s){o.e(s)}finally{o.f()}this._eventThrottleMap.clear()}}]),e}(),Qc=function(){function e(){n(this,e),this._funcMap=new Map}return o(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 r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}},{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):(Ne.log("SafetyCallback.find: 找不到 func —— ".concat(e,"/").concat(""!==t.name?t.name:"[anonymous]")),null):(Ne.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(s){var r=Object.values(T).indexOf(e);if(-1!==r){var o=Object.keys(T)[r];Ne.warn("接入侧事件 TIM.EVENT.".concat(o," 对应的回调函数逻辑存在问题,请检查!"),s)}var i=new fi(xa);i.setMessage("eventName:".concat(e)).setMoreMessage(s.message).end()}}}}]),e}(),Zc=function(){function e(t){n(this,e);var r={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:St(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0};this._moduleManager=new Jc(r),this._safetyCallbackFactory=new Qc}return o(e,[{key:"isReady",value:function(){return this._moduleManager.isReady()}},{key:"onError",value:function(e){this._moduleManager.onError(e)}},{key:"login",value:function(e){return this._moduleManager.login(),this._moduleManager.getModule(Ht).login(e)}},{key:"logout",value:function(){var e=this;return this._moduleManager.getModule(Ht).logout().then((function(t){return e._moduleManager.reset(),t}))}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._moduleManager.stopTimer(),e._moduleManager.getModule(fn).terminate(),e._moduleManager.getModule(un).dealloc();var t=e._moduleManager.getOuterEmitterInstance(),n=e._moduleManager.getModule(Zt);t.emit(T.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){e===T.GROUP_SYSTEM_NOTICE_RECEIVED&&Ne.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"),Ne.debug("on","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Ne.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,r){Ne.debug("off","eventName:".concat(e));var o=this._safetyCallbackFactory.find(e,t);null!==o&&(this._moduleManager.getOuterEmitterInstance().off(e,o,n,r),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){this._moduleManager.getModule(an).registerPlugin(e)}},{key:"setLogLevel",value:function(e){e<=0&&(console.log([""," ________  ______  __       __  __       __  ________  _______","|        \\|      \\|  \\     /  \\|  \\  _  |  \\|        \\|       \\"," \\$$$$$$$$ \\$$$$$$| $$\\   /  $$| $$ / \\ | $$| $$$$$$$$| $$$$$$$\\","   | $$     | $$  | $$$\\ /  $$$| $$/  $\\| $$| $$__    | $$__/ $$","   | $$     | $$  | $$$$\\  $$$$| $$  $$$\\ $$| $$  \\   | $$    $$","   | $$     | $$  | $$\\$$ $$ $$| $$ $$\\$$\\$$| $$$$$   | $$$$$$$\\","   | $$    _| $$_ | $$ \\$$$| $$| $$$$  \\$$$$| $$_____ | $$__/ $$","   | $$   |   $$ \\| $$  \\$ | $$| $$$    \\$$$| $$     \\| $$    $$","    \\$$    \\$$$$$$ \\$$      \\$$ \\$$      \\$$ \\$$$$$$$$ \\$$$$$$$","",""].join("\n")),console.log("%cIM 智能客服,随时随地解决您的问题 →_→ https://cloud.tencent.com/act/event/smarty-service?from=im-doc","color:#006eff"),console.log("%c从v2.11.2起,SDK 支持了 WebSocket,小程序需要添加受信域名!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html","color:#ff0000"),console.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"))),Ne.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._moduleManager.getModule(Wt).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._moduleManager.getModule(Wt).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._moduleManager.getModule(Wt).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._moduleManager.getModule(Wt).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._moduleManager.getModule(Wt).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._moduleManager.getModule(Wt).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._moduleManager.getModule(Wt).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._moduleManager.getModule(Wt).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._moduleManager.getModule(Wt).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._moduleManager.getModule(Wt).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==I.MSG_MERGER?hs(new us({code:Pr.MESSAGE_MERGER_TYPE_INVALID,message:po})):Dt(e.payload.downloadKey)?hs(new us({code:Pr.MESSAGE_MERGER_KEY_INVALID,message:go})):this._moduleManager.getModule(Wt).downloadMergerMessage(e).catch((function(e){return hs(new us({code:Pr.MESSAGE_MERGER_DOWNLOAD_FAIL,message:vo}))}))}},{key:"createForwardMessage",value:function(e){return this._moduleManager.getModule(Wt).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof ns?this._moduleManager.getModule(Wt).sendMessageInstance(e,t):hs(new us({code:Pr.MESSAGE_SEND_NEED_MESSAGE_INSTANCE,message:zr}))}},{key:"callExperimentalAPI",value:function(e,t){return"handleGroupInvitation"===e?this._moduleManager.getModule(Yt).handleGroupInvitation(t):hs(new us({code:Pr.INVALID_OPERATION,message:Wo}))}},{key:"revokeMessage",value:function(e){return this._moduleManager.getModule(Wt).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._moduleManager.getModule(Wt).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._moduleManager.getModule(Wt).deleteMessage(e)}},{key:"getMessageList",value:function(e){return this._moduleManager.getModule(Qt).getMessageList(e)}},{key:"setMessageRead",value:function(e){return this._moduleManager.getModule(Qt).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._moduleManager.getModule(Qt).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._moduleManager.getModule(Qt).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._moduleManager.getModule(Qt).deleteConversation(e)}},{key:"pinConversation",value:function(e){return this._moduleManager.getModule(Qt).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._moduleManager.getModule(Qt).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._moduleManager.getModule(Qt).setMessageRemindType(e)}},{key:"getMyProfile",value:function(){return this._moduleManager.getModule(zt).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._moduleManager.getModule(zt).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._moduleManager.getModule(zt).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._moduleManager.getModule(zt).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._moduleManager.getModule(zt).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._moduleManager.getModule(zt).deleteBlacklist(e)}},{key:"getFriendList",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.getLocalFriendList():hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"addFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.addFriend(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"deleteFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.deleteFriend(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"checkFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.checkFriend(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"getFriendProfile",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.getFriendProfile(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"updateFriend",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.updateFriend(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"getFriendApplicationList",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.getLocalFriendApplicationList():hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"acceptFriendApplication",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.acceptFriendApplication(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"refuseFriendApplication",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.refuseFriendApplication(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"deleteFriendApplication",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.deleteFriendApplication(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"setFriendApplicationRead",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.setFriendApplicationRead():hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"getFriendGroupList",value:function(){var e=this._moduleManager.getModule(Xt);return e?e.getLocalFriendGroupList():hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"createFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.createFriendGroup(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"deleteFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.deleteFriendGroup(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"addToFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.addToFriendGroup(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"removeFromFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.removeFromFriendGroup(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"renameFriendGroup",value:function(e){var t=this._moduleManager.getModule(Xt);return t?t.renameFriendGroup(e):hs({code:Pr.CANNOT_FIND_MODULE,message:Ko})}},{key:"getGroupList",value:function(e){return this._moduleManager.getModule(Yt).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._moduleManager.getModule(Yt).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._moduleManager.getModule(Yt).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._moduleManager.getModule(Yt).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._moduleManager.getModule(Yt).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._moduleManager.getModule(Yt).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._moduleManager.getModule(Yt).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._moduleManager.getModule(Yt).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._moduleManager.getModule(Yt).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._moduleManager.getModule(Yt).changeGroupOwner(e)}},{key:"handleGroupApplication",value:function(e){return this._moduleManager.getModule(Yt).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._moduleManager.getModule(Yt).getGroupAttributes(e)}},{key:"getGroupMemberList",value:function(e){return this._moduleManager.getModule(Jt).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._moduleManager.getModule(Jt).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._moduleManager.getModule(Jt).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._moduleManager.getModule(Jt).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._moduleManager.getModule(Jt).setGroupMemberCustomField(e)}}]),e}(),eu={login:"login",logout:"logout",destroy:"destroy",on:"on",off:"off",ready:"ready",setLogLevel:"setLogLevel",joinGroup:"joinGroup",quitGroup:"quitGroup",registerPlugin:"registerPlugin",getGroupOnlineMemberCount:"getGroupOnlineMemberCount"};function tu(e,t){if(e.isReady()||void 0!==eu[t])return!0;var n=new us({code:Pr.SDK_IS_NOT_READY,message:"".concat(t," ").concat(Yo,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/module-EVENT.html#.SDK_READY")});return e.onError(n),!1}var nu={},ru={create:function(e){var t=0;if(qe(e.SDKAppID))t=e.SDKAppID;else if(Ne.warn("TIM.create SDKAppID 的类型应该为 Number,请修改!"),t=parseInt(e.SDKAppID),isNaN(t))return Ne.error("TIM.create failed. 解析 SDKAppID 失败,请检查传参!"),null;if(t&&nu[t])return nu[t];Ne.log("TIM.create");var n=new Zc(s({},e,{SDKAppID:t}));n.on(T.SDK_DESTROY,(function(e){nu[e.data.SDKAppID]=null,delete nu[e.data.SDKAppID]}));var r=function(e){var t=Object.create(null);return Object.keys(Vt).forEach((function(n){if(e[n]){var r=Vt[n],o=new A;t[r]=function(){var t=Array.from(arguments);return o.use((function(t,r){return tu(e,n)?r():hs(new us({code:Pr.SDK_IS_NOT_READY,message:"".concat(n," ").concat(Yo,"。")}))})).use((function(e,t){if(!0===Nt(e,Bt[n],r))return t()})).use((function(t,r){return e[n].apply(e,t)})),o.run(t)}}})),t}(n);return nu[t]=r,Ne.log("TIM.create ok"),r}};return ru.TYPES=I,ru.EVENT=T,ru.VERSION="2.17.1",Ne.log("TIM.VERSION: ".concat(ru.VERSION)),ru}))}).call(this,n("c8ba"))},b018:function(e,t,n){"use strict";function r(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=o(e,!1),a=r[0],s=r[1],c=r[2],u=o(t,!1),l=u[0],d=u[1],f=u[2],h=(l-a)/n,p=(d-s)/n,g=(f-c)/n,v=[],m=0;m<n;m++){var _=i("rgb("+Math.round(h*m+a)+","+Math.round(p*m+s)+","+Math.round(g*m+c)+")");v.push(_)}return v}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=e.toLowerCase(),e&&n.test(e)){if(4===e.length){for(var r="#",o=1;o<4;o+=1)r+=e.slice(o,o+1).concat(e.slice(o,o+1));e=r}for(var i=[],a=1;a<7;a+=2)i.push(parseInt("0x"+e.slice(a,a+2)));return t?"rgb(".concat(i[0],",").concat(i[1],",").concat(i[2],")"):i}if(/^(rgb|RGB)/.test(e)){var s=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(e){return Number(e)}))}return e}function i(e){var t=e,n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(t)){for(var r=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),o="#",i=0;i<r.length;i++){var a=Number(r[i]).toString(16);a=1==String(a).length?"0"+a:a,"0"===a&&(a+=a),o+=a}return 7!==o.length&&(o=t),o}if(!n.test(t))return t;var s=t.replace(/#/,"").split("");if(6===s.length)return t;if(3===s.length){for(var c="#",u=0;u<s.length;u+=1)c+=s[u]+s[u];return c}}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;e=i(e);var n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,r=e.toLowerCase();if(r&&n.test(r)){if(4===r.length){for(var o="#",a=1;a<4;a+=1)o+=r.slice(a,a+1).concat(r.slice(a,a+1));r=o}for(var s=[],c=1;c<7;c+=2)s.push(parseInt("0x"+r.slice(c,c+2)));return"rgba("+s.join(",")+","+t+")"}return r}n("99af"),n("d81d"),n("fb6a"),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 s={colorGradient:r,hexToRgb:o,rgbToHex:i,colorToRgba:a};t.default=s},b041:function(e,t,n){"use strict";var r=n("00ee"),o=n("f5df");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b328:function(e,t,n){"use strict";function r(e){return/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/.test(e)}function o(e){return/^1[3-9]\d{9}$/.test(e)}function i(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)}function a(e){return!/Invalid|NaN/.test(new Date(e).toString())}function s(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function c(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}function u(e){return/^\d+$/.test(e)}function l(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)}function d(e){var t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)}function f(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function h(e){var t=/^[\u4e00-\u9fa5]+$/gi;return t.test(e)}function p(e){return/^[a-zA-Z]*$/.test(e)}function g(e){var t=/^[0-9a-zA-Z]*$/g;return t.test(e)}function v(e,t){return e.indexOf(t)>=0}function m(e,t){return e>=t[0]&&e<=t[1]}function _(e,t){return e.length>=t[0]&&e.length<=t[1]}function y(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function b(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function M(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(n){return!1}return!1}function S(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}n("c975"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C={email:r,mobile:o,url:i,date:a,dateISO:s,number:c,digits:u,idCard:l,carNo:d,amount:f,chinese:h,letter:p,enOrNum:g,contains:v,range:m,rangeLength:_,empty:b,isEmpty:b,jsonString:M,landline:y,object:k,array:S,code:w};t.default=C},b39a:function(e,t,n){"use strict";var r=n("da84"),o=n("ebb5"),i=n("d039"),a=r.Int8Array,s=o.aTypedArray,c=o.exportTypedArrayMethod,u=[].toLocaleString,l=[].slice,d=!!a&&i((function(){u.call(new a(1))})),f=i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])}));c("toLocaleString",(function(){return u.apply(d?l.call(s(this)):s(this),arguments)}),f)},b575:function(e,t,n){var r,o,i,a,s,c,u,l,d=n("da84"),f=n("06cf").f,h=n("c6b6"),p=n("2cf4").set,g=n("1cdc"),v=d.MutationObserver||d.WebKitMutationObserver,m=d.process,_=d.Promise,y="process"==h(m),b=f(d,"queueMicrotask"),M=b&&b.value;M||(r=function(){var e,t;y&&(e=m.domain)&&e.exit();while(o){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():i=void 0,n}}i=void 0,e&&e.enter()},y?a=function(){m.nextTick(r)}:v&&!g?(s=!0,c=document.createTextNode(""),new v(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):_&&_.resolve?(u=_.resolve(void 0),l=u.then,a=function(){l.call(u,r)}):a=function(){p.call(d,r)}),e.exports=M||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},b622:function(e,t,n){var r=n("da84"),o=n("5692"),i=n("5135"),a=n("90e3"),s=n("4930"),c=n("fdbf"),u=o("wks"),l=r.Symbol,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){return i(u,e)||(s&&i(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},b64b:function(e,t,n){var r=n("23e7"),o=n("7b0b"),i=n("df75"),a=n("d039"),s=a((function(){i(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return i(o(e))}})},b727:function(e,t,n){var r=n("0366"),o=n("44ad"),i=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(h,p,g,v){for(var m,_,y=i(h),b=o(y),M=r(p,g,3),S=a(b.length),k=0,w=v||s,C=t?w(h,S):n?w(h,0):void 0;S>k;k++)if((f||k in b)&&(m=b[k],_=M(m,k,y),e))if(t)C[k]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return k;case 2:c.call(C,m)}else if(l)return!1;return d?-1:u||l?l:C}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},b76f:function(e,t,n){"use strict";var r=n("19b0");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},b79e:function(e,t,n){"use strict";n("99af"),n("4160"),n("d3b7"),n("ac1f"),n("5319"),n("159b");var r=n("082e"),o=n("2e2b"),i=n("5282"),a=n("cb8a"),s=n("4793"),c=n("c5ed"),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);while(l.length)o=o.then(l.shift(),l.shift());return o}var d=e;while(n.length){var f=n.shift(),h=n.shift();try{d=f(d)}catch(p){h(p);break}}try{o=a(d)}catch(p){return Promise.reject(p)}while(i.length)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},b900:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=t?"?":"",o=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");var i=function(t){var r=e[t];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(n){case"indices":for(var i=0;i<r.length;i++)o.push(t+"["+i+"]="+r[i]);break;case"brackets":r.forEach((function(e){o.push(t+"[]="+e)}));break;case"repeat":r.forEach((function(e){o.push(t+"="+e)}));break;case"comma":var a="";r.forEach((function(e){a+=(a?",":"")+e})),o.push(t+"="+a);break;default:r.forEach((function(e){o.push(t+"[]="+e)}))}else o.push(t+"="+r)};for(var a in e)i(a);return o.length?r+o.join("&"):""}n("4160"),n("c975"),n("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},baa5:function(e,t,n){var r=n("23e7"),o=n("e58c");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bee2:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},bf19:function(e,t,n){"use strict";var r=n("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},bf4d:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},c19f:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("621a"),a=n("2626"),s="ArrayBuffer",c=i[s],u=o[s];r({global:!0,forced:u!==c},{ArrayBuffer:c}),a(s)},c1ac:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").filter,i=n("4840"),a=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod;c("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0),n=i(this,this.constructor),r=0,c=t.length,u=new(s(n))(c);while(c>r)u[r]=t[r++];return u}))},c20d:function(e,t,n){var r=n("da84"),o=n("58a8").trim,i=n("5899"),a=r.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(i+"08")||22!==a(i+"0x16");e.exports=c?function(e,t){var n=o(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},c430:function(e,t){e.exports=!1},c4a1:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},c574:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};t.default=r},c5ed:function(e,t,n){"use strict";n("4160"),n("b64b");var r=n("1649").version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};function a(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),o=r.length;while(o-- >0){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}}o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:a,validators:o}},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},c740:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),a=n("ae40"),s="findIndex",c=!0,u=a(s);s in[]&&Array(1)[s]((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},c7b7:function(e,t,n){"use strict";var r;function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?r||(r=!0,"function"===typeof e&&e(),setTimeout((function(){r=!1}),t)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof e&&e()}),t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o;t.default=i},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var r=n("d039"),o=n("5899"),i="​…᠎";e.exports=function(e){return r((function(){return!!o[e]()||i[e]()!=i||o[e].name!==e}))}},c8dc:function(e,t,n){n("a4d3"),n("e01a"),n("944a"),n("4160"),n("caad"),n("c975"),n("a434"),n("0c47"),n("23dc"),n("d3b7"),n("25f0"),n("2532"),n("159b");var r=n("970b"),o=n("5bc3");e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function i(e){}n.r(t),n.d(t,"default",(function(){return v}));var a=function(e){var t=this,n=["navigateTo","redirectTo","reLaunch","switchTab","navigateBack"],r={};n.forEach((function(e){r[e]=uni[e]})),n.forEach((function(n){uni[n]=function(o,i){if(!1===i)r[n](o);else{var a={action:n},s=Object.assign(a,o),c=function(e){var t=Object.assign(s,e);r[t.action](t)};e.call(t,s,c)}}}))},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";console[t]("[route-guards] "+e)},c=function(e){return Object.prototype.toString.call(e).includes("Error")},u=function(){var e=getCurrentPages(),t=e.length;if(0===t)return!1;var n=e[t-1],r={url:"/"+n.route};return r},l=function(e,t){return e.push(t),function(){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},d=function(e,t){var n=this;if(["tabBar","backbutton"].includes(e.from))return t();var r=u();if(!1===r)return t();p(this.beforeHooks,g.bind(this),(function(){t(),f.call(n,e,r)}),{to:e,from:r,uniRunRoute:t})},f=function(e,t){this.afterHooks.forEach((function(n){n(e,t)}))},h=function(e){this.errorCbs.length>0?this.errorCbs.forEach((function(t){t(e)})):s("error:"+e,"error")},p=function(e,t,n,r){var o=this,i=function i(a){a>=e.length?n.call(o):t.call(o,e[a],r,(function(e){!1!==e&&i(++a)}))};i(0)},g=function(e,t,n){var r=this;e(t.to,t.from,(function(e){try{!1===e||c(e)?h.call(r,e):"string"===typeof e||"object"===typeof e&&"string"===typeof e.url?("string"===typeof e&&(e={url:e}),t.uniRunRoute(e),f.call(r,t.to,t.from),t.to=Object.assign(t.to,e),n(!1)):n()}catch(o){h.call(r,o)}}))},v=function(){function e(){r(this,e),this.beforeHooks=[],this.afterHooks=[],this.errorCbs=[],a.call(this,d)}return o(e,[{key:"beforeEach",value:function(e){return l(this.beforeHooks,e)}},{key:"afterEach",value:function(e){return l(this.afterHooks,e)}},{key:"onError",value:function(e){return l(this.errorCbs,e)}}]),e}();v.install=i}])},c975:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").indexOf,i=n("a640"),a=n("ae40"),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,u=i("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({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)}})},c990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=null;function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),n){var o=!r;r=setTimeout((function(){r=null}),t),o&&"function"===typeof e&&e()}else r=setTimeout((function(){"function"===typeof e&&e()}),t)}var i=o;t.default=i},ca84:function(e,t,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},ca91:function(e,t,n){"use strict";var r=n("ebb5"),o=n("d58f").left,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduce",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var r=n("23e7"),o=n("4d64").includes,i=n("44d2"),a=n("ae40"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cb29:function(e,t,n){var r=n("23e7"),o=n("81d5"),i=n("44d2");r({target:"Array",proto:!0},{fill:o}),i("fill")},cb8a:function(e,t,n){"use strict";n("4160"),n("d3b7"),n("159b");var r=n("082e"),o=n("105c"),i=n("8b34"),a=n("51a2"),s=n("1cb4");function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},cc12:function(e,t,n){var r=n("da84"),o=n("861d"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},cca6:function(e,t,n){var r=n("23e7"),o=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cd26:function(e,t,n){"use strict";var r=n("ebb5"),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){var e,t=this,n=o(t).length,r=a(n/2),i=0;while(i<r)e=t[i],t[i++]=t[--n],t[n]=e;return t}))},cdf9:function(e,t,n){var r=n("825a"),o=n("861d"),i=n("f069");e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e),a=n.resolve;return a(t),n.promise}},ce4e:function(e,t,n){var r=n("da84"),o=n("9112");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},ceeb:function(e,t,n){"use strict";n("4d63"),n("ac1f"),n("25f0"),n("466d");var r=n("082e");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},cfc3:function(e,t,n){var r=n("74e8");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},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 r=n("428f"),o=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},d139:function(e,t,n){"use strict";var r=n("ebb5"),o=n("b727").find,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d1ee:function(e,t,n){"use strict";var r=n("b76f");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=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(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,o=n("5135"),i=n("b622"),a=i("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},d58f:function(e,t,n){var r=n("1c0b"),o=n("7b0b"),i=n("44ad"),a=n("50c4"),s=function(e){return function(t,n,s,c){r(n);var u=o(t),l=i(u),d=a(u.length),f=e?d-1:0,h=e?-1:1;if(s<2)while(1){if(f in l){c=l[f],f+=h;break}if(f+=h,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=h)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 r=n("ebb5"),o=n("b727").forEach,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("d039"),i=n("b622"),a=n("9263"),s=n("9112"),c=i("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=i("replace"),f=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),h=!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 p=i(e),g=!o((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),v=g&&!o((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!g||!v||"replace"===e&&(!u||!l||f)||"split"===e&&!h){var m=/./[p],_=n(p,""[e],(function(e,t,n,r,o){return t.exec===a?g&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=_[0],b=_[1];r(String.prototype,e,y),r(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").map,i=n("1dde"),a=n("ae40"),s=i("map"),c=a("map");r({target:"Array",proto:!0,forced:!s||!c},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},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"))},dbb4:function(e,t,n){var r=n("23e7"),o=n("83ab"),i=n("56ef"),a=n("fc6a"),s=n("06cf"),c=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),o=s.f,u=i(r),l={},d=0;while(u.length>d)n=o(r,t=u[d++]),void 0!==n&&c(l,t,n);return l}})},dc10:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;uni.showToast({title:e,icon:"none",duration:t})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r;t.default=o},dca8:function(e,t,n){var r=n("23e7"),o=n("bb2f"),i=n("d039"),a=n("861d"),s=n("f183").onFreeze,c=Object.freeze,u=i((function(){c(1)}));r({target:"Object",stat:!0,forced:u,sham:!o},{freeze:function(e){return c&&a(e)?c(s(e)):e}})},ddb0:function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),a=n("9112"),s=n("b622"),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var d in o){var f=r[d],h=f&&f.prototype;if(h){if(h[c]!==l)try{a(h,c,l)}catch(g){h[c]=l}if(h[u]||a(h,u,d),o[d])for(var p in i)if(h[p]!==i[p])try{a(h,p,i[p])}catch(g){h[p]=i[p]}}}},df75:function(e,t,n){var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===i(e,-1);return e=n(o(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c<a;c++)if(o[c]!==i[c]){s=c;break}var u=[];for(c=s;c<o.length;c++)u.push("..");return u=u.concat(i.slice(s)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(t=e.charCodeAt(i),47===t){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e01a:function(e,t,n){"use strict";var r=n("23e7"),o=n("83ab"),i=n("da84"),a=n("5135"),s=n("861d"),c=n("9bf2").f,u=n("e893"),l=i.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 h=f.prototype=l.prototype;h.constructor=f;var p=h.toString,g="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},e143:function(e,t,n){"use strict";n.r(t),function(e){
/*!
 * Vue.js v2.6.11
 * (c) 2014-2021 Evan You
 * Released under the MIT License.
 */
var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}v("slot,component",!0);var m=v("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function M(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var S=/-(\w)/g,k=M((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),w=M((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,T=M((function(e){return e.replace(C,"-$1").toLowerCase()}));function I(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function A(e,t){return e.bind(t)}var E=Function.prototype.bind?A:I;function O(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}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 L(e,t,n){}var x=function(e,t,n){return!1},R=function(e){return e};function P(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return P(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return P(e[n],t[n])}))}catch(u){return!1}}function G(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function U(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var F="data-server-rendered",j=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:x,isReservedAttr:x,isUnknownElement:x,getTagNamespace:L,parsePlatformTagName:R,mustUseProp:x,async:!0,_lifecycleHooks:$},B=/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 H(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+B.source+".$_\\d]");function z(e){if(!W.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 K,Y="__proto__"in{},X="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),Z=X&&window.navigator.userAgent.toLowerCase(),ee=Z&&/msie|trident/.test(Z),te=Z&&Z.indexOf("msie 9.0")>0,ne=Z&&Z.indexOf("edge/")>0,re=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Q),oe=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),ie={}.watch,ae=!1;if(X)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Da){}var ce=function(){return void 0===K&&(K=!X&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},ue=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,fe="undefined"!==typeof Symbol&&le(Symbol)&&"undefined"!==typeof Reflect&&le(Reflect.ownKeys);de="undefined"!==typeof Set&&le(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=L,pe=0,ge=function(){this.id=pe++,this.subs=[]};function ve(e){ge.SharedObject.targetStack.push(e),ge.SharedObject.target=e,ge.target=e}function me(){ge.SharedObject.targetStack.pop(),ge.SharedObject.target=ge.SharedObject.targetStack[ge.SharedObject.targetStack.length-1],ge.target=ge.SharedObject.target}ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){_(this.subs,e)},ge.prototype.depend=function(){ge.SharedObject.target&&ge.SharedObject.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ge.SharedObject={},ge.SharedObject.target=null,ge.SharedObject.targetStack=[];var _e=function(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,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},ye={child:{configurable:!0}};ye.child.get=function(){return this.componentInstance},Object.defineProperties(_e.prototype,ye);var be=function(e){void 0===e&&(e="");var t=new _e;return t.text=e,t.isComment=!0,t};function Me(e){return new _e(void 0,void 0,void 0,String(e))}function Se(e){var t=new _e(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,we=Object.create(ke),Ce=["push","pop","shift","unshift","splice","sort","reverse"];Ce.forEach((function(e){var t=ke[e];H(we,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var o,i=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(),i}))}));var Te=Object.getOwnPropertyNames(we),Ie=!0;function Ae(e){Ie=e}var Ee=function(e){this.value=e,this.dep=new ge,this.vmCount=0,H(e,"__ob__",this),Array.isArray(e)?(Y?Oe(e,we):De(e,we,Te),this.observeArray(e)):this.walk(e)};function Oe(e,t){e.__proto__=t}function De(e,t,n){for(var r=0,o=n.length;r<o;r++){var i=n[r];H(e,i,t[i])}}function Ne(e,t){var n;if(c(e)&&!(e instanceof _e))return b(e,"__ob__")&&e.__ob__ instanceof Ee?n=e.__ob__:Ie&&!ce()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ee(e)),t&&n&&n.vmCount++,n}function Le(e,t,n,r,o){var i=new ge,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 ge.SharedObject.target&&(i.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Pe(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!c||(c?c.call(e,t):n=t,u=!o&&Ne(t),i.notify())}})}}function xe(e,t,n){if(Array.isArray(e)&&f(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 r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Le(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Re(e,t){if(Array.isArray(e)&&f(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(e,t)&&(delete e[t],n&&n.dep.notify())}}function Pe(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Pe(t)}Ee.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Le(e,t[n])},Ee.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ne(e[t])};var Ge=q.optionMergeStrategies;function Ue(e,t){if(!t)return e;for(var n,r,o,i=fe?Reflect.ownKeys(t):Object.keys(t),a=0;a<i.length;a++)n=i[a],"__ob__"!==n&&(r=e[n],o=t[n],b(e,n)?r!==o&&l(r)&&l(o)&&Ue(r,o):xe(e,n,o));return e}function Fe(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,o="function"===typeof e?e.call(n,n):e;return r?Ue(r,o):o}:t?e?function(){return Ue("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function je(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?$e(n):n}function $e(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function qe(e,t,n,r){var o=Object.create(e||null);return t?D(o,t):o}Ge.data=function(e,t,n){return n?Fe(e,t,n):t&&"function"!==typeof t?e:Fe(e,t)},$.forEach((function(e){Ge[e]=je})),j.forEach((function(e){Ge[e+"s"]=qe})),Ge.watch=function(e,t,n,r){if(e===ie&&(e=void 0),t===ie&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var i in D(o,e),t){var a=o[i],s=t[i];a&&!Array.isArray(a)&&(a=[a]),o[i]=a?a.concat(s):Array.isArray(s)?s:[s]}return o},Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,r){if(!e)return t;var o=Object.create(null);return D(o,e),t&&D(o,t),o},Ge.provide=Fe;var Be=function(e,t){return void 0===t?e:t};function Ve(e,t){var n=e.props;if(n){var r,o,i,a={};if(Array.isArray(n)){r=n.length;while(r--)o=n[r],"string"===typeof o&&(i=k(o),a[i]={type:null})}else if(l(n))for(var s in n)o=n[s],i=k(s),a[i]=l(o)?o:{type:o};else 0;e.props=a}}function He(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var o=0;o<n.length;o++)r[n[o]]={from:n[o]};else if(l(n))for(var i in n){var a=n[i];r[i]=l(a)?D({from:i},a):{from:a}}else 0}}function We(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function ze(e,t,n){if("function"===typeof t&&(t=t.options),Ve(t,n),He(t,n),We(t),!t._base&&(t.extends&&(e=ze(e,t.extends,n)),t.mixins))for(var r=0,o=t.mixins.length;r<o;r++)e=ze(e,t.mixins[r],n);var i,a={};for(i in e)s(i);for(i in t)b(e,i)||s(i);function s(r){var o=Ge[r]||Be;a[r]=o(e[r],t[r],n,r)}return a}function Ke(e,t,n,r){if("string"===typeof n){var o=e[t];if(b(o,n))return o[n];var i=k(n);if(b(o,i))return o[i];var a=w(i);if(b(o,a))return o[a];var s=o[n]||o[i]||o[a];return s}}function Ye(e,t,n,r){var o=t[e],i=!b(n,e),a=n[e],s=Ze(Boolean,o.type);if(s>-1)if(i&&!b(o,"default"))a=!1;else if(""===a||a===T(e)){var c=Ze(String,o.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Xe(r,o,e);var u=Ie;Ae(!0),Ne(a),Ae(u)}return a}function Xe(e,t,n){if(b(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Je(t.type)?r.call(e):r}}function Je(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Qe(e,t){return Je(e)===Je(t)}function Ze(e,t){if(!Array.isArray(t))return Qe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Qe(t[n],e))return n;return-1}function et(e,t,n){ve();try{if(t){var r=t;while(r=r.$parent){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{var a=!1===o[i].call(r,e,t,n);if(a)return}catch(Da){nt(Da,r,"errorCaptured hook")}}}nt(e,t,n)}finally{me()}}function tt(e,t,n,r,o){var i;try{i=n?e.apply(t,n):e.call(t),i&&!i._isVue&&h(i)&&!i._handled&&(i.catch((function(e){return et(e,r,o+" (Promise/async)")})),i._handled=!0)}catch(Da){et(Da,r,o)}return i}function nt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(Da){Da!==e&&rt(Da,null,"config.errorHandler")}rt(e,t,n)}function rt(e,t,n){if(!X&&!J||"undefined"===typeof console)throw e;console.error(e)}var ot,it=!1,at=[],st=!1;function ct(){st=!1;var e=at.slice(0);at.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&le(Promise)){var ut=Promise.resolve();ot=function(){ut.then(ct),re&&setTimeout(L)},it=!0}else if(ee||"undefined"===typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ot="undefined"!==typeof setImmediate&&le(setImmediate)?function(){setImmediate(ct)}:function(){setTimeout(ct,0)};else{var lt=1,dt=new MutationObserver(ct),ft=document.createTextNode(String(lt));dt.observe(ft,{characterData:!0}),ot=function(){lt=(lt+1)%2,ft.data=String(lt)},it=!0}function ht(e,t){var n;if(at.push((function(){if(e)try{e.call(t)}catch(Da){et(Da,t,"nextTick")}else n&&n(t)})),st||(st=!0,ot()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var pt=new de;function gt(e){vt(e,pt),pt.clear()}function vt(e,t){var n,r,o=Array.isArray(e);if(!(!o&&!c(e)||Object.isFrozen(e)||e instanceof _e)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(o){n=e.length;while(n--)vt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)vt(e[r[n]],t)}}}var mt=M((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 r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function _t(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return tt(r,null,arguments,t,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)tt(o[i],null,e,t,"v-on handler")}return n.fns=e,n}function yt(e,t,n,o,a,s){var c,u,l,d;for(c in e)u=e[c],l=t[c],d=mt(c),r(u)||(r(l)?(r(u.fns)&&(u=e[c]=_t(u,s)),i(d.once)&&(u=e[c]=a(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)r(e[c])&&(d=mt(c),o(d.name,t[c],d.capture))}function bt(e,t,n){var a;e instanceof _e&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),_(a.fns,c)}r(s)?a=_t([c]):o(s.fns)&&i(s.merged)?(a=s,a.fns.push(c)):a=_t([s,c]),a.merged=!0,e[t]=a}function Mt(e,t,n,i){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(r(a))return n;var s=t.options.mpOptions.externalClasses||[],c=e.attrs,u=e.props;if(o(c)||o(u))for(var l in a){var d=T(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 St(e,t,n,i){var a=t.options.props;if(r(a))return Mt(e,t,{},i);var s={},c=e.attrs,u=e.props;if(o(c)||o(u))for(var l in a){var d=T(l);kt(s,u,l,d,!0)||kt(s,c,l,d,!1)}return Mt(e,t,s,i)}function kt(e,t,n,r,i){if(o(t)){if(b(t,n))return e[n]=t[n],i||delete t[n],!0;if(b(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function wt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Ct(e){return s(e)?[Me(e)]:Array.isArray(e)?It(e):void 0}function Tt(e){return o(e)&&o(e.text)&&a(e.isComment)}function It(e,t){var n,a,c,u,l=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(c=l.length-1,u=l[c],Array.isArray(a)?a.length>0&&(a=It(a,(t||"")+"_"+n),Tt(a[0])&&Tt(u)&&(l[c]=Me(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Tt(u)?l[c]=Me(u.text+a):""!==a&&l.push(Me(a)):Tt(a)&&Tt(u)?l[c]=Me(u.text+a.text):(i(e._isVList)&&o(a.tag)&&r(a.key)&&o(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function At(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Et(e){var t=Ot(e.$options.inject,e);t&&(Ae(!1),Object.keys(t).forEach((function(n){Le(e,n,t[n])})),Ae(!0))}function Ot(e,t){if(e){for(var n=Object.create(null),r=fe?Reflect.ownKeys(e):Object.keys(e),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var a=e[i].from,s=t;while(s){if(s._provided&&b(s._provided,a)){n[i]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[i]){var c=e[i].default;n[i]="function"===typeof c?c.call(t):c}else 0}}return n}}function Dt(e,t){if(!e||!e.length)return{};for(var n={},r=0,o=e.length;r<o;r++){var i=e[r],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,i.context!==t&&i.fnContext!==t||!a||null==a.slot)i.asyncMeta&&i.asyncMeta.data&&"page"===i.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(i):(n.default||(n.default=[])).push(i);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===i.tag?c.push.apply(c,i.children||[]):c.push(i)}}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 Lt(e,t,r){var o,i=Object.keys(t).length>0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=xt(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=Rt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),H(o,"$stable",a),H(o,"$key",s),H(o,"$hasNormal",i),o}function xt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Ct(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Rt(e,t){return function(){return e[t]}}function Pt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r,r,r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r,r,r);else if(c(e))if(fe&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),l=u.next();while(!l.done)n.push(t(l.value,n.length,r,r++)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r,r);return o(n)||(n=[]),n._isVList=!0,n}function Gt(e,t,n,r){var o,i=this.$scopedSlots[e];i?(n=n||{},r&&(n=D(D({},r),n)),o=i(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 Ut(e){return Ke(this.$options,"filters",e,!0)||R}function Ft(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function jt(e,t,n,r,o){var i=q.keyCodes[t]||n;return o&&r&&!q.keyCodes[t]?Ft(o,r):i?Ft(i,e):r?T(r)!==t:void 0}function $t(e,t,n,r,o){if(n)if(c(n)){var i;Array.isArray(n)&&(n=N(n));var a=function(a){if("class"===a||"style"===a||m(a))i=e;else{var s=e.attrs&&e.attrs.type;i=r||q.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=k(a),u=T(a);if(!(c in i)&&!(u in i)&&(i[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 qt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Vt(r,"__static__"+e,!1)),r}function Bt(e,t,n){return Vt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Vt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Ht(e[r],t+"_"+r,n);else Ht(e,t,n)}function Ht(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Wt(e,t){if(t)if(l(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var o=n[r],i=t[r];n[r]=o?[].concat(o,i):i}}else;return e}function zt(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var i=e[o];Array.isArray(i)?zt(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function Kt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Yt(e,t){return"string"===typeof e?t+e:e}function Xt(e){e._o=Bt,e._n=g,e._s=p,e._l=Pt,e._t=Gt,e._q=P,e._i=G,e._m=qt,e._f=Ut,e._k=jt,e._b=$t,e._v=Me,e._e=be,e._u=zt,e._g=Wt,e._d=Kt,e._p=Yt}function Jt(e,t,r,o,a){var s,c=this,u=a.options;b(o,"_uid")?(s=Object.create(o),s._original=o):(s=o,o=o._original);var l=i(u._compiled),d=!l;this.data=e,this.props=t,this.children=r,this.parent=o,this.listeners=e.on||n,this.injections=Ot(u.inject,o),this.slots=function(){return c.$slots||Lt(e.scopedSlots,c.$slots=Dt(r,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Lt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Lt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=dn(s,e,t,n,r,d);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return dn(s,e,t,n,r,d)}}function Qt(e,t,r,i,a){var s=e.options,c={},u=s.props;if(o(u))for(var l in u)c[l]=Ye(l,u,t||n);else o(r.attrs)&&en(c,r.attrs),o(r.props)&&en(c,r.props);var d=new Jt(r,c,a,i,e),f=s.render.call(null,d._c,d);if(f instanceof _e)return Zt(f,r,d.parent,s,d);if(Array.isArray(f)){for(var h=Ct(f)||[],p=new Array(h.length),g=0;g<h.length;g++)p[g]=Zt(h[g],r,d.parent,s,d);return p}}function Zt(e,t,n,r,o){var i=Se(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function en(e,t){for(var n in t)e[k(n)]=t[n]}Xt(Jt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{var r=e.componentInstance=on(e,On);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Rn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(Fn(n,"onServiceCreated"),Fn(n,"onServiceAttached"),n._isMounted=!0,Fn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Qn(n):Gn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Un(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,a,s){if(!r(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=Mn(l,u),void 0===e))return bn(l,t,n,a,s);t=t||{},Mr(e),o(t.model)&&cn(e.options,t);var d=St(t,e,s,n);if(i(e.options.functional))return Qt(e,d,t,n,a);var f=t.on;if(t.on=t.nativeOn,i(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}an(t);var p=e.options.name||s,g=new _e("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:f,tag:s,children:a},l);return g}}}function on(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function an(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var r=nn[n],o=t[r],i=tn[r];o===i||o&&o._merged||(t[r]=o?sn(i,o):i)}}function sn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function cn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}var un=1,ln=2;function dn(e,t,n,r,o,a){return(Array.isArray(n)||s(n))&&(o=r,r=n,n=void 0),i(a)&&(o=ln),fn(e,t,n,r,o)}function fn(e,t,n,r,i){if(o(n)&&o(n.__ob__))return be();if(o(n)&&o(n.is)&&(t=n.is),!t)return be();var a,s,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===ln?r=Ct(r):i===un&&(r=wt(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),a=q.isReservedTag(t)?new _e(q.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(c=Ke(e.$options,"components",t))?new _e(t,n,r,void 0,void 0,e):rn(c,n,e,r,t)):a=rn(t,n,e,r);return Array.isArray(a)?a:o(a)?(o(s)&&hn(a,s),o(n)&&pn(n),a):be()}function hn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),o(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];o(c.tag)&&(r(c.ns)||i(n)&&"svg"!==c.tag)&&hn(c,t,n)}}function pn(e){c(e.style)&&gt(e.style),c(e.class)&&gt(e.class)}function gn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,o=r&&r.context;e.$slots=Dt(t._renderChildren,o),e.$scopedSlots=n,e._c=function(t,n,r,o){return dn(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return dn(e,t,n,r,o,!0)};var i=r&&r.data;Le(e,"$attrs",i&&i.attrs||n,null,!0),Le(e,"$listeners",t._parentListeners||n,null,!0)}var vn,mn=null;function _n(e){Xt(e.prototype),e.prototype.$nextTick=function(e){return ht(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,o=n._parentVnode;o&&(t.$scopedSlots=Lt(o.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=o;try{mn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Da){et(Da,t,"render"),e=t._vnode}finally{mn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof _e||(e=be()),e.parent=o,e}}function yn(e,t){return(e.__esModule||fe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function bn(e,t,n,r,o){var i=be();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function Mn(e,t){if(i(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=mn;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),i(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var a=e.owners=[n],s=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return _(a,n)}));var d=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},f=U((function(n){e.resolved=yn(n,t),s?a.length=0:d(!0)})),p=U((function(t){o(e.errorComp)&&(e.error=!0,d(!0))})),g=e(f,p);return c(g)&&(h(g)?r(e.resolved)&&g.then(f,p):h(g.component)&&(g.component.then(f,p),o(g.error)&&(e.errorComp=yn(g.error,t)),o(g.loading)&&(e.loadingComp=yn(g.loading,t),0===g.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),o(g.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&p(null)}),g.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Sn(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(o(n)&&(o(n.componentOptions)||Sn(n)))return n}}function wn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&An(e,t)}function Cn(e,t){vn.$on(e,t)}function Tn(e,t){vn.$off(e,t)}function In(e,t){var n=vn;return function r(){var o=t.apply(null,arguments);null!==o&&n.$off(e,r)}}function An(e,t,n){vn=e,yt(t,n||{},Cn,Tn,In,e),vn=void 0}function En(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),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 r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var i,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(i=a[s],i===t||i.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?O(n):n;for(var r=O(arguments,1),o='event handler for "'+e+'"',i=0,a=n.length;i<a;i++)tt(n[i],t,r,t,o)}return t}}var On=null;function Dn(e){var t=On;return On=e,function(){On=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 Ln(e){e.prototype._update=function(e,t){var n=this,r=n.$el,o=n._vnode,i=Dn(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__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){Fn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(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),Fn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function xn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=be),Fn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new nr(e,r,L,{before:function(){e._isMounted&&!e._isDestroyed&&Fn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(Fn(e,"onServiceCreated"),Fn(e,"onServiceAttached"),e._isMounted=!0,Fn(e,"mounted")),e}function Rn(e,t,r,o,i){var a=o.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),u=!!(i||e.$options._renderChildren||c);if(e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=i,e.$attrs=o.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Ae(!1);for(var l=e._props,d=e.$options._propKeys||[],f=0;f<d.length;f++){var h=d[f],p=e.$options.props;l[h]=Ye(h,p,t,e)}Ae(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,An(e,r,g),u&&(e.$slots=Dt(i,o.context),e.$forceUpdate())}function Pn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Gn(e,t){if(t){if(e._directInactive=!1,Pn(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]);Fn(e,"activated")}}function Un(e,t){if((!t||(e._directInactive=!0,!Pn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Un(e.$children[n]);Fn(e,"deactivated")}}function Fn(e,t){ve();var n=e.$options[t],r=t+" hook";if(n)for(var o=0,i=n.length;o<i;o++)tt(n[o],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),me()}var jn=[],$n=[],qn={},Bn=!1,Vn=!1,Hn=0;function Wn(){Hn=jn.length=$n.length=0,qn={},Bn=Vn=!1}var zn=0,Kn=Date.now;if(X&&!ee){var Yn=window.performance;Yn&&"function"===typeof Yn.now&&Kn()>document.createEvent("Event").timeStamp&&(Kn=function(){return Yn.now()})}function Xn(){var e,t;for(zn=Kn(),Vn=!0,jn.sort((function(e,t){return e.id-t.id})),Hn=0;Hn<jn.length;Hn++)e=jn[Hn],e.before&&e.before(),t=e.id,qn[t]=null,e.run();var n=$n.slice(),r=jn.slice();Wn(),Zn(n),Jn(r),ue&&q.devtools&&ue.emit("flush")}function Jn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Fn(r,"updated")}}function Qn(e){e._inactive=!1,$n.push(e)}function Zn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Gn(e[t],!0)}function er(e){var t=e.id;if(null==qn[t]){if(qn[t]=!0,Vn){var n=jn.length-1;while(n>Hn&&jn[n].id>e.id)n--;jn.splice(n+1,0,e)}else jn.push(e);Bn||(Bn=!0,ht(Xn))}}var tr=0,nr=function(e,t,n,r,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=z(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.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;et(Da,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&gt(e),me(),this.cleanupDeps()}return e},nr.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))},nr.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},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Da){et(Da,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function or(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function ir(e){e._watchers=[];var t=e.$options;t.props&&ar(e,t.props),t.methods&&pr(e,t.methods),t.data?sr(e):Ne(e._data={},!0),t.computed&&lr(e,t.computed),t.watch&&t.watch!==ie&&gr(e,t.watch)}function ar(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;i||Ae(!1);var a=function(i){o.push(i);var a=Ye(i,t,n,e);Le(r,i,a),i in e||or(e,"_props",i)};for(var s in t)a(s);Ae(!0)}function sr(e){var t=e.$options.data;t=e._data="function"===typeof t?cr(t,e):t||{},l(t)||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);while(o--){var i=n[o];0,r&&b(r,i)||V(i)||or(e,"_data",i)}Ne(t,!0)}function cr(e,t){ve();try{return e.call(t,t)}catch(Da){return et(Da,t,"data()"),{}}finally{me()}}var ur={lazy:!0};function lr(e,t){var n=e._computedWatchers=Object.create(null),r=ce();for(var o in t){var i=t[o],a="function"===typeof i?i:i.get;0,r||(n[o]=new nr(e,a||L,L,ur)),o in e||dr(e,o,i)}}function dr(e,t,n){var r=!ce();"function"===typeof n?(rr.get=r?fr(t):hr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?fr(t):hr(n.get):L,rr.set=n.set||L),Object.defineProperty(e,t,rr)}function fr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.SharedObject.target&&t.depend(),t.value}}function hr(e){return function(){return e.call(this,this)}}function pr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?L:E(t[n],e)}function gr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o<r.length;o++)vr(e,n,r[o]);else vr(e,n,r)}}function vr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function mr(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=xe,e.prototype.$delete=Re,e.prototype.$watch=function(e,t,n){var r=this;if(l(t))return vr(r,e,t,n);n=n||{},n.user=!0;var o=new nr(r,e,t,n);if(n.immediate)try{t.call(r,o.value)}catch(i){et(i,r,'callback for immediate watcher "'+o.expression+'"')}return function(){o.teardown()}}}var _r=0;function yr(e){e.prototype._init=function(e){var t=this;t._uid=_r++,t._isVue=!0,e&&e._isComponent?br(t,e):t.$options=ze(Mr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Nn(t),wn(t),gn(t),Fn(t,"beforeCreate"),!t._$fallback&&Et(t),ir(t),!t._$fallback&&At(t),!t._$fallback&&Fn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function br(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.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 Mr(e){var t=e.options;if(e.super){var n=Mr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var o=Sr(e);o&&D(e.extendOptions,o),t=e.options=ze(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Sr(e){var t,n=e.options,r=e.sealedOptions;for(var o in n)n[o]!==r[o]&&(t||(t={}),t[o]=n[o]);return t}function kr(e){this._init(e)}function wr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(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 Cr(e){e.mixin=function(e){return this.options=ze(this.options,e),this}}function Tr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=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=ze(n.options,e),a["super"]=n,a.options.props&&Ir(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,j.forEach((function(e){a[e]=n[e]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),o[r]=a,a}}function Ir(e){var t=e.options.props;for(var n in t)or(e.prototype,"_props",n)}function Ar(e){var t=e.options.computed;for(var n in t)dr(e.prototype,n,t[n])}function Er(e){j.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(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 Or(e){return e&&(e.Ctor.options.name||e.tag)}function Dr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Nr(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=Or(a.componentOptions);s&&!t(s)&&Lr(n,i,r,o)}}}function Lr(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,_(n,t)}yr(kr),mr(kr),En(kr),Ln(kr),_n(kr);var xr=[String,RegExp,Array],Rr={name:"keep-alive",abstract:!0,props:{include:xr,exclude:xr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Lr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Nr(e,(function(e){return Dr(t,e)}))})),this.$watch("exclude",(function(t){Nr(e,(function(e){return!Dr(t,e)}))}))},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var r=Or(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!Dr(i,r))||a&&r&&Dr(a,r))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,_(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&Lr(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Pr={KeepAlive:Rr};function Gr(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:he,extend:D,mergeOptions:ze,defineReactive:Le},e.set=xe,e.delete=Re,e.nextTick=ht,e.observable=function(e){return Ne(e),e},e.options=Object.create(null),j.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Pr),wr(e),Cr(e),Tr(e),Er(e)}Gr(kr),Object.defineProperty(kr.prototype,"$isServer",{get:ce}),Object.defineProperty(kr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kr,"FunctionalRenderContext",{value:Jt}),kr.version="2.6.11";var Ur=v("style,class"),Fr=v("input,textarea,option,select,progress"),jr=function(e,t,n){return"value"===n&&Fr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},$r=v("contenteditable,draggable,spellcheck"),qr=v("events,caret,typing,plaintext-only"),Br=function(e,t){return Kr(t)||"false"===t?"false":"contenteditable"===e&&qr(t)?t:"true"},Vr=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"),Hr="http://www.w3.org/1999/xlink",Wr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},zr=function(e){return Wr(e)?e.slice(6,e.length):""},Kr=function(e){return null==e||!1===e};function Yr(e){var t=e.data,n=e,r=e;while(o(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Xr(r.data,t));while(o(n=n.parent))n&&n.data&&(t=Xr(t,n.data));return Jr(t.staticClass,t.class)}function Xr(e,t){return{staticClass:Qr(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Jr(e,t){return o(e)||o(t)?Qr(e,Zr(t)):""}function Qr(e,t){return e?t?e+" "+t:e:t||""}function Zr(e){return Array.isArray(e)?eo(e):c(e)?to(e):"string"===typeof e?e:""}function eo(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=Zr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function to(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var no={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ro=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"),oo=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),io=function(e){return ro(e)||oo(e)};function ao(e){return oo(e)?"svg":"math"===e?"math":void 0}var so=Object.create(null);function co(e){if(!X)return!0;if(io(e))return!1;if(e=e.toLowerCase(),null!=so[e])return so[e];var t=document.createElement(e);return e.indexOf("-")>-1?so[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:so[e]=/HTMLUnknownElement/.test(t.toString())}var uo=v("text,number,password,search,email,tel,url");function lo(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function fo(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(no[e],t)}function po(e){return document.createTextNode(e)}function go(e){return document.createComment(e)}function vo(e,t,n){e.insertBefore(t,n)}function mo(e,t){e.removeChild(t)}function _o(e,t){e.appendChild(t)}function yo(e){return e.parentNode}function bo(e){return e.nextSibling}function Mo(e){return e.tagName}function So(e,t){e.textContent=t}function ko(e,t){e.setAttribute(t,"")}var wo=Object.freeze({createElement:fo,createElementNS:ho,createTextNode:po,createComment:go,insertBefore:vo,removeChild:mo,appendChild:_o,parentNode:yo,nextSibling:bo,tagName:Mo,setTextContent:So,setStyleScope:ko}),Co={create:function(e,t){To(t)},update:function(e,t){e.data.ref!==t.data.ref&&(To(e,!0),To(t))},destroy:function(e){To(e,!0)}};function To(e,t){var n=e.data.ref;if(o(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?_(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Io=new _e("",{},[]),Ao=["create","activate","update","remove","destroy"];function Eo(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&Oo(e,t)||i(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Oo(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||uo(r)&&uo(i)}function Do(e,t,n){var r,i,a={};for(r=t;r<=n;++r)i=e[r].key,o(i)&&(a[i]=r);return a}function No(e){var t,n,a={},c=e.modules,u=e.nodeOps;for(t=0;t<Ao.length;++t)for(a[Ao[t]]=[],n=0;n<c.length;++n)o(c[n][Ao[t]])&&a[Ao[t]].push(c[n][Ao[t]]);function l(e){return new _e(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);o(t)&&u.removeChild(t,e)}function h(e,t,n,r,a,s,c){if(o(e.elm)&&o(s)&&(e=s[c]=Se(e)),e.isRootInsert=!a,!p(e,t,n,r)){var l=e.data,d=e.children,f=e.tag;o(f)?(e.elm=e.ns?u.createElementNS(e.ns,f):u.createElement(f,e),S(e),y(e,d,t),o(l)&&M(e,t),_(n,e.elm,r)):i(e.isComment)?(e.elm=u.createComment(e.text),_(n,e.elm,r)):(e.elm=u.createTextNode(e.text),_(n,e.elm,r))}}function p(e,t,n,r){var a=e.data;if(o(a)){var s=o(e.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(e,!1),o(e.componentInstance))return g(e,t),_(n,e.elm,r),i(s)&&m(e,t,n,r),!0}}function g(e,t){o(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)):(To(e),t.push(e))}function m(e,t,n,r){var i,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,o(i=s.data)&&o(i=i.transition)){for(i=0;i<a.activate.length;++i)a.activate[i](Io,s);t.push(s);break}_(n,e.elm,r)}function _(e,t,n){o(e)&&(o(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 r=0;r<t.length;++r)h(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function b(e){while(e.componentInstance)e=e.componentInstance._vnode;return o(e.tag)}function M(e,n){for(var r=0;r<a.create.length;++r)a.create[r](Io,e);t=e.data.hook,o(t)&&(o(t.create)&&t.create(Io,e),o(t.insert)&&n.push(e))}function S(e){var t;if(o(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)o(t=n.context)&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}o(t=On)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function k(e,t,n,r,o,i){for(;r<=o;++r)h(n[r],i,e,t,!1,n,r)}function w(e){var t,n,r=e.data;if(o(r))for(o(t=r.hook)&&o(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function C(e,t,n){for(;t<=n;++t){var r=e[t];o(r)&&(o(r.tag)?(T(r),w(r)):f(r.elm))}}function T(e,t){if(o(t)||o(e.data)){var n,r=a.remove.length+1;for(o(t)?t.listeners+=r:t=d(e.elm,r),o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&T(n,t),n=0;n<a.remove.length;++n)a.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else f(e.elm)}function I(e,t,n,i,a){var s,c,l,d,f=0,p=0,g=t.length-1,v=t[0],m=t[g],_=n.length-1,y=n[0],b=n[_],M=!a;while(f<=g&&p<=_)r(v)?v=t[++f]:r(m)?m=t[--g]:Eo(v,y)?(E(v,y,i,n,p),v=t[++f],y=n[++p]):Eo(m,b)?(E(m,b,i,n,_),m=t[--g],b=n[--_]):Eo(v,b)?(E(v,b,i,n,_),M&&u.insertBefore(e,v.elm,u.nextSibling(m.elm)),v=t[++f],b=n[--_]):Eo(m,y)?(E(m,y,i,n,p),M&&u.insertBefore(e,m.elm,v.elm),m=t[--g],y=n[++p]):(r(s)&&(s=Do(t,f,g)),c=o(y.key)?s[y.key]:A(y,t,f,g),r(c)?h(y,i,e,v.elm,!1,n,p):(l=t[c],Eo(l,y)?(E(l,y,i,n,p),t[c]=void 0,M&&u.insertBefore(e,l.elm,v.elm)):h(y,i,e,v.elm,!1,n,p)),y=n[++p]);f>g?(d=r(n[_+1])?null:n[_+1].elm,k(e,d,n,p,_,i)):p>_&&C(t,f,g)}function A(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(o(a)&&Eo(e,a))return i}}function E(e,t,n,s,c,l){if(e!==t){o(t.elm)&&o(s)&&(t=s[c]=Se(t));var d=t.elm=e.elm;if(i(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?N(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(i(t.isStatic)&&i(e.isStatic)&&t.key===e.key&&(i(t.isCloned)||i(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,h=t.data;o(h)&&o(f=h.hook)&&o(f=f.prepatch)&&f(e,t);var p=e.children,g=t.children;if(o(h)&&b(t)){for(f=0;f<a.update.length;++f)a.update[f](e,t);o(f=h.hook)&&o(f=f.update)&&f(e,t)}r(t.text)?o(p)&&o(g)?p!==g&&I(d,p,g,n,l):o(g)?(o(e.text)&&u.setTextContent(d,""),k(d,null,g,0,g.length-1,n)):o(p)?C(p,0,p.length-1):o(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),o(h)&&o(f=h.hook)&&o(f=f.postpatch)&&f(e,t)}}}function O(e,t,n){if(i(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var D=v("attrs,class,staticClass,staticStyle,key");function N(e,t,n,r){var a,s=t.tag,c=t.data,u=t.children;if(r=r||c&&c.pre,t.elm=e,i(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(a=c.hook)&&o(a=a.init)&&a(t,!0),o(a=t.componentInstance)))return g(t,n),!0;if(o(s)){if(o(u))if(e.hasChildNodes())if(o(a=c)&&o(a=a.domProps)&&o(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,d=e.firstChild,f=0;f<u.length;f++){if(!d||!N(d,u[f],n,r)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else y(t,u,n);if(o(c)){var h=!1;for(var p in c)if(!D(p)){h=!0,M(t,n);break}!h&&c["class"]&&gt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!r(t)){var c=!1,d=[];if(r(e))c=!0,h(t,d);else{var f=o(e.nodeType);if(!f&&Eo(e,t))E(e,t,d,null,null,s);else{if(f){if(1===e.nodeType&&e.hasAttribute(F)&&(e.removeAttribute(F),n=!0),i(n)&&N(e,t,d))return O(t,d,!0),e;e=l(e)}var p=e.elm,g=u.parentNode(p);if(h(t,d,p._leaveCb?null:g,u.nextSibling(p)),o(t.parent)){var v=t.parent,m=b(t);while(v){for(var _=0;_<a.destroy.length;++_)a.destroy[_](v);if(v.elm=t.elm,m){for(var y=0;y<a.create.length;++y)a.create[y](Io,v);var M=v.data.hook.insert;if(M.merged)for(var S=1;S<M.fns.length;S++)M.fns[S]()}else To(v);v=v.parent}}o(g)?C([e],0,0):o(e.tag)&&w(e)}}return O(t,d,c),t.elm}o(e)&&w(e)}}var Lo={create:xo,update:xo,destroy:function(e){xo(e,Io)}};function xo(e,t){(e.data.directives||t.data.directives)&&Ro(e,t)}function Ro(e,t){var n,r,o,i=e===Io,a=t===Io,s=Go(e.data.directives,e.context),c=Go(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,Fo(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(Fo(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++)Fo(u[n],"inserted",t,e)};i?bt(t,"insert",d):d()}if(l.length&&bt(t,"postpatch",(function(){for(var n=0;n<l.length;n++)Fo(l[n],"componentUpdated",t,e)})),!i)for(n in s)c[n]||Fo(s[n],"unbind",e,e,a)}var Po=Object.create(null);function Go(e,t){var n,r,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=Po),o[Uo(r)]=r,r.def=Ke(t.$options,"directives",r.name,!0);return o}function Uo(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Fo(e,t,n,r,o){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(Da){et(Da,n.context,"directive "+e.name+" "+t+" hook")}}var jo=[Co,Lo];function $o(e,t){var n={};return Object.keys(e).forEach((function(r){t[r]&&(n[e[r]]=t[r],delete t[r])})),n}function qo(e,t){if(!r(e.data.wxsProps)||!r(t.data.wxsProps)){var n=e.$wxsWatches,o=Object.keys(t.data.wxsProps);if(n||o.length){n||(n={});var i=$o(t.data.wxsProps,t.data.attrs),a=t.context;t.$wxsWatches={},Object.keys(i).forEach((function(e){var r=e;t.context.wxsProps&&(r="wxsProps."+e),t.$wxsWatches[e]=n[e]||t.context.$watch(r,(function(n,r){i[e](n,r,a.$getComponentDescriptor(a,!0),t.elm.__vue__.$getComponentDescriptor(t.elm.__vue__,!1))}),{deep:!0})})),Object.keys(n).forEach((function(e){t.$wxsWatches[e]||(n[e](),delete n[e])}))}}}var Bo={create:qo,update:qo};function Vo(e,t){var n=t.componentOptions;if((!o(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var i,a,s,c=t.elm,u=e.data.attrs||{},l=t.data.attrs||{};for(i in o(l.__ob__)&&(l=t.data.attrs=D({},l)),l)a=l[i],s=u[i],s!==a&&Ho(c,i,a);for(i in(ee||ne)&&l.value!==u.value&&Ho(c,"value",l.value),u)r(l[i])&&(Wr(i)?c.removeAttributeNS(Hr,zr(i)):$r(i)||c.removeAttribute(i))}}function Ho(e,t,n){e.tagName.indexOf("-")>-1?Wo(e,t,n):Vr(t)?Kr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):$r(t)?e.setAttribute(t,Br(t,n)):Wr(t)?Kr(n)?e.removeAttributeNS(Hr,zr(t)):e.setAttributeNS(Hr,t,n):Wo(e,t,n)}function Wo(e,t,n){if(Kr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var zo={create:Vo,update:Vo};function Ko(e,t){var n=t.elm,i=t.data,a=e.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class))&&r(n.__wxsAddClass)&&r(n.__wxsRemoveClass))){var s=Yr(t),c=n._transitionClasses;if(o(c)&&(s=Qr(s,Zr(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,h=f.$options.mpOptions&&f.$options.mpOptions.externalClasses;Array.isArray(h)&&h.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 Yo,Xo={create:Ko,update:Ko},Jo="__r",Qo="__c";function Zo(e){if(o(e[Jo])){var t=ee?"change":"input";e[t]=[].concat(e[Jo],e[t]||[]),delete e[Jo]}o(e[Qo])&&(e.change=[].concat(e[Qo],e.change||[]),delete e[Qo])}function ei(e,t,n){var r=Yo;return function o(){var i=t.apply(null,arguments);null!==i&&ri(e,o,n,r)}}var ti=it&&!(oe&&Number(oe[1])<=53);function ni(e,t,n,r){if(ti){var o=zn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}Yo.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function ri(e,t,n,r){(r||Yo).removeEventListener(e,t._wrapper||t,n)}function oi(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},o=e.data.on||{};Yo=t.elm,Zo(n),yt(n,o,ni,ri,ei,t.context),Yo=void 0}}var ii,ai={create:oi,update:oi};function si(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,i,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(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=r(i)?"":String(i);ci(a,u)&&(a.value=u)}else if("innerHTML"===n&&oo(a.tagName)&&r(a.innerHTML)){ii=ii||document.createElement("div"),ii.innerHTML="<svg>"+i+"</svg>";var l=ii.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 ci(e,t){return!e.composing&&("OPTION"===e.tagName||ui(e,t)||li(e,t))}function ui(e,t){var n=!0;try{n=document.activeElement!==e}catch(Da){}return n&&e.value!==t}function li(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var di={create:si,update:si},fi=M((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function hi(e){var t=pi(e.style);return e.staticStyle?D(e.staticStyle,t):t}function pi(e){return Array.isArray(e)?N(e):"string"===typeof e?fi(e):e}function gi(e,t){var n,r={};if(t){var o=e;while(o.componentInstance)o=o.componentInstance._vnode,o&&o.data&&(n=hi(o.data))&&D(r,n)}(n=hi(e.data))&&D(r,n);var i=e;while(i=i.parent)i.data&&(n=hi(i.data))&&D(r,n);return r}var vi,mi=/^--/,_i=/\s*!important$/,yi=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,bi=function(e){return"string"===typeof e?e.replace(yi,(function(e,t){return uni.upx2px(t)+"px"})):e},Mi=/url\(\s*['"](.+?\.(jpg|gif|png))['"]\s*\)/,Si=/url\(\s*([a-zA-Z0-9\.\-\_\/]+?\.(jpg|gif|png))\s*\)/,ki=function(e,t){if("string"===typeof e&&-1!==e.indexOf("url(")){var n=e.match(Mi)||e.match(Si);n&&3===n.length&&(e=e.replace(n[1],t._$getRealPath(n[1])))}return e},wi=function(e,t,n,r){if(r&&r._$getRealPath&&n&&(n=ki(n,r)),mi.test(t))e.style.setProperty(t,n);else if(_i.test(n))e.style.setProperty(T(t),n.replace(_i,""),"important");else{var o=Ti(t);if(Array.isArray(n))for(var i=0,a=n.length;i<a;i++)e.style[o]=bi(n[i]);else e.style[o]=bi(n)}},Ci=["Webkit","Moz","ms"],Ti=M((function(e){if(vi=vi||document.createElement("div").style,e=k(e),"filter"!==e&&e in vi)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ci.length;n++){var r=Ci[n]+t;if(r in vi)return r}}));function Ii(e,t){var n=t.data,i=e.data,a=t.elm;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style)&&r(a.__wxsStyle))){var s,c,u=i.staticStyle,l=i.normalizedStyle||i.style||{},d=u||l,f=pi(t.data.style)||{};t.data.normalizedStyle=o(f.__ob__)?D({},f):f;var h=gi(t,!0);for(c in a.__wxsStyle&&(Object.assign(t.data.normalizedStyle,a.__wxsStyle),Object.assign(h,a.__wxsStyle)),d)r(h[c])&&wi(a,c,"");for(c in h)s=h[c],s!==d[c]&&wi(a,c,null==s?"":s,t.context)}}var Ai={create:Ii,update:Ii},Ei=/\s+/;function Oi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ei).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 Di(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Ei).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ni(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,Li(e.name||"v")),D(t,e),t}return"string"===typeof e?Li(e):void 0}}var Li=M((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"}})),xi=X&&!te,Ri="transition",Pi="animation",Gi="transition",Ui="transitionend",Fi="animation",ji="animationend";xi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Gi="WebkitTransition",Ui="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Fi="WebkitAnimation",ji="webkitAnimationEnd"));var $i=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function qi(e){$i((function(){$i(e)}))}function Bi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Oi(e,t))}function Vi(e,t){e._transitionClasses&&_(e._transitionClasses,t),Di(e,t)}function Hi(e,t,n){var r=zi(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Ri?Ui:ji,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),i+1),e.addEventListener(s,l)}var Wi=/\b(transform|all)(,|$)/;function zi(e,t){var n,r=window.getComputedStyle(e),o=(r[Gi+"Delay"]||"").split(", "),i=(r[Gi+"Duration"]||"").split(", "),a=Ki(o,i),s=(r[Fi+"Delay"]||"").split(", "),c=(r[Fi+"Duration"]||"").split(", "),u=Ki(s,c),l=0,d=0;t===Ri?a>0&&(n=Ri,l=a,d=i.length):t===Pi?u>0&&(n=Pi,l=u,d=c.length):(l=Math.max(a,u),n=l>0?a>u?Ri:Pi:null,d=n?n===Ri?i.length:c.length:0);var f=n===Ri&&Wi.test(r[Gi+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:f}}function Ki(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Yi(t)+Yi(e[n])})))}function Yi(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Xi(e,t){var n=e.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=Ni(e.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){var a=i.css,s=i.type,u=i.enterClass,l=i.enterToClass,d=i.enterActiveClass,f=i.appearClass,h=i.appearToClass,p=i.appearActiveClass,v=i.beforeEnter,m=i.enter,_=i.afterEnter,y=i.enterCancelled,b=i.beforeAppear,M=i.appear,S=i.afterAppear,k=i.appearCancelled,w=i.duration,C=On,T=On.$vnode;while(T&&T.parent)C=T.context,T=T.parent;var I=!C._isMounted||!e.isRootInsert;if(!I||M||""===M){var A=I&&f?f:u,E=I&&p?p:d,O=I&&h?h:l,D=I&&b||v,N=I&&"function"===typeof M?M:m,L=I&&S||_,x=I&&k||y,R=g(c(w)?w.enter:w);0;var P=!1!==a&&!te,G=Zi(N),F=n._enterCb=U((function(){P&&(Vi(n,O),Vi(n,E)),F.cancelled?(P&&Vi(n,A),x&&x(n)):L&&L(n),n._enterCb=null}));e.data.show||bt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),N&&N(n,F)})),D&&D(n),P&&(Bi(n,A),Bi(n,E),qi((function(){Vi(n,A),F.cancelled||(Bi(n,O),G||(Qi(R)?setTimeout(F,R):Hi(n,s,F)))}))),e.data.show&&(t&&t(),N&&N(n,F)),P||G||F()}}}function Ji(e,t){var n=e.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=Ni(e.data.transition);if(r(i)||1!==n.nodeType)return t();if(!o(n._leaveCb)){var a=i.css,s=i.type,u=i.leaveClass,l=i.leaveToClass,d=i.leaveActiveClass,f=i.beforeLeave,h=i.leave,p=i.afterLeave,v=i.leaveCancelled,m=i.delayLeave,_=i.duration,y=!1!==a&&!te,b=Zi(h),M=g(c(_)?_.leave:_);0;var S=n._leaveCb=U((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Vi(n,l),Vi(n,d)),S.cancelled?(y&&Vi(n,u),v&&v(n)):(t(),p&&p(n)),n._leaveCb=null}));m?m(k):k()}function k(){S.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),y&&(Bi(n,u),Bi(n,d),qi((function(){Vi(n,u),S.cancelled||(Bi(n,l),b||(Qi(M)?setTimeout(S,M):Hi(n,s,S)))}))),h&&h(n,S),y||b||S())}}function Qi(e){return"number"===typeof e&&!isNaN(e)}function Zi(e){if(r(e))return!1;var t=e.fns;return o(t)?Zi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function ea(e,t){!0!==t.data.show&&Xi(t)}var ta=X?{create:ea,activate:ea,remove:function(e,t){!0!==e.data.show?Ji(e,t):t()}}:{},na=[Bo,zo,Xo,ai,di,Ai,ta],ra=na.concat(jo),oa=No({nodeOps:wo,modules:ra});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&fa(e,"input")}));var ia={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?bt(n,"postpatch",(function(){ia.componentUpdated(e,t,n)})):aa(e,t,n.context),e._vOptions=[].map.call(e.options,ua)):("textarea"===n.tag||uo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",la),e.addEventListener("compositionend",da),e.addEventListener("change",da),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){aa(e,t,n.context);var r=e._vOptions,o=e._vOptions=[].map.call(e.options,ua);if(o.some((function(e,t){return!P(e,r[t])}))){var i=e.multiple?t.value.some((function(e){return ca(e,o)})):t.value!==t.oldValue&&ca(t.value,o);i&&fa(e,"change")}}}};function aa(e,t,n){sa(e,t,n),(ee||ne)&&setTimeout((function(){sa(e,t,n)}),0)}function sa(e,t,n){var r=t.value,o=e.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],o)i=G(r,ua(a))>-1,a.selected!==i&&(a.selected=i);else if(P(ua(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function ca(e,t){return t.every((function(t){return!P(t,e)}))}function ua(e){return"_value"in e?e._value:e.value}function la(e){e.target.composing=!0}function da(e){e.target.composing&&(e.target.composing=!1,fa(e.target,"input"))}function fa(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 pa={bind:function(e,t,n){var r=t.value;n=ha(n);var o=n.data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,Xi(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value,o=t.oldValue;if(!r!==!o){n=ha(n);var i=n.data&&n.data.transition;i?(n.data.show=!0,r?Xi(n,(function(){e.style.display=e.__vOriginalDisplay})):Ji(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},ga={model:ia,show:pa},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 ma(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ma(kn(t.children)):e}function _a(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[k(i)]=o[i];return t}function ya(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function ba(e){while(e=e.parent)if(e.data.transition)return!0}function Ma(e,t){return t.key===e.key&&t.tag===e.tag}var Sa=function(e){return e.tag||Sn(e)},ka=function(e){return"show"===e.name},wa={name:"transition",props:va,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Sa),n.length)){0;var r=this.mode;0;var o=n[0];if(ba(this.$vnode))return o;var i=ma(o);if(!i)return o;if(this._leaving)return ya(e,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:s(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var c=(i.data||(i.data={})).transition=_a(this),u=this._vnode,l=ma(u);if(i.data.directives&&i.data.directives.some(ka)&&(i.data.show=!0),l&&l.data&&!Ma(i,l)&&!Sn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=D({},c);if("out-in"===r)return this._leaving=!0,bt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ya(e,o);if("in-out"===r){if(Sn(i))return u;var f,h=function(){f()};bt(c,"afterEnter",h),bt(c,"enterCancelled",h),bt(d,"delayLeave",(function(e){f=e}))}}return o}}},Ca=D({tag:String,moveClass:String},va);delete Ca.mode;var Ta={props:Ca,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=Dn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=_a(this),s=0;s<o.length;s++){var c=o[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))i.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],d=0;d<r.length;d++){var f=r[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,i)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ia),e.forEach(Aa),e.forEach(Ea),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Bi(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ui,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ui,e),n._moveCb=null,Vi(n,t))})}})))},methods:{hasMove:function(e,t){if(!xi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Di(n,e)})),Oi(n,t),n.style.display="none",this.$el.appendChild(n);var r=zi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Ia(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Aa(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ea(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}var Oa={Transition:wa,TransitionGroup:Ta};kr.config.mustUseProp=jr,kr.config.isReservedTag=io,kr.config.isReservedAttr=Ur,kr.config.getTagNamespace=ao,kr.config.isUnknownElement=co,D(kr.options.directives,ga),D(kr.options.components,Oa),kr.prototype.__patch__=X?oa:L,kr.prototype.__call_hook=function(e,t){var n=this;ve();var r,o=n.$options[e],i=e+" hook";if(o)for(var a=0,s=o.length;a<s;a++)r=tt(o[a],n,t?[t]:null,n,i);return n._hasHookEvent&&n.$emit("hook:"+e,t),me(),r},kr.prototype.$mount=function(e,t){return e=e&&X?lo(e):void 0,xn(this,e,t)},X&&setTimeout((function(){q.devtools&&ue&&ue.emit("init",kr)}),0),t["default"]=kr}.call(this,n("c8ba"))},e163:function(e,t,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),a=n("e177"),s=i("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(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 r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1a3:function(e,t,n){"use strict";function r(){return uni.getSystemInfoSync().platform}function o(){return uni.getSystemInfoSync()}Object.defineProperty(t,"__esModule",{value:!0}),t.os=r,t.sys=o},e25e:function(e,t,n){var r=n("23e7"),o=n("c20d");r({global:!0,forced:parseInt!=o},{parseInt:o})},e260:function(e,t,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=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:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},e439:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("fc6a"),a=n("06cf").f,s=n("83ab"),c=o((function(){a(1)})),u=!s||c;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},e4ea:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},o=r;t.default=o},e538:function(e,t,n){var r=n("b622");t.f=r},e58c:function(e,t,n){"use strict";var r=n("fc6a"),o=n("a691"),i=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}),h=l||!d||!f;e.exports=h?function(e){if(l)return u.apply(this,arguments)||0;var t=r(this),n=i(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}}}},e6cf:function(e,t,n){"use strict";var r,o,i,a,s=n("23e7"),c=n("c430"),u=n("da84"),l=n("d066"),d=n("fea9"),f=n("6eeb"),h=n("e2cc"),p=n("d44e"),g=n("2626"),v=n("861d"),m=n("1c0b"),_=n("19aa"),y=n("c6b6"),b=n("8925"),M=n("2266"),S=n("1c7e"),k=n("4840"),w=n("2cf4").set,C=n("b575"),T=n("cdf9"),I=n("44de"),A=n("f069"),E=n("e667"),O=n("69f3"),D=n("94ca"),N=n("b622"),L=n("2d00"),x=N("species"),R="Promise",P=O.get,G=O.set,U=O.getterFor(R),F=d,j=u.TypeError,$=u.document,q=u.process,B=l("fetch"),V=A.f,H=V,W="process"==y(q),z=!!($&&$.createEvent&&u.dispatchEvent),K="unhandledrejection",Y="rejectionhandled",X=0,J=1,Q=2,Z=1,ee=2,te=D(R,(function(){var e=b(F)!==String(F);if(!e){if(66===L)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!F.prototype["finally"])return!0;if(L>=51&&/native code/.test(F))return!1;var t=F.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[x]=n,!(t.then((function(){}))instanceof n)})),ne=te||!S((function(e){F.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},oe=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;C((function(){var o=t.value,i=t.state==J,a=0;while(r.length>a){var s,c,u,l=r[a++],d=i?l.ok:l.fail,f=l.resolve,h=l.reject,p=l.domain;try{d?(i||(t.rejection===ee&&ce(e,t),t.rejection=Z),!0===d?s=o:(p&&p.enter(),s=d(o),p&&(p.exit(),u=!0)),s===l.promise?h(j("Promise-chain cycle")):(c=re(s))?c.call(s,f,h):f(s)):h(o)}catch(g){p&&!u&&p.exit(),h(g)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ae(e,t)}))}},ie=function(e,t,n){var r,o;z?(r=$.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(o=u["on"+e])?o(r):e===K&&I("Unhandled promise rejection",n)},ae=function(e,t){w.call(u,(function(){var n,r=t.value,o=se(t);if(o&&(n=E((function(){W?q.emit("unhandledRejection",r,e):ie(K,e,r)})),t.rejection=W||se(t)?ee:Z,n.error))throw n.value}))},se=function(e){return e.rejection!==Z&&!e.parent},ce=function(e,t){w.call(u,(function(){W?q.emit("rejectionHandled",e):ie(Y,e,t.value)}))},ue=function(e,t,n,r){return function(o){e(t,n,o,r)}},le=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=Q,oe(e,t,!0))},de=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw j("Promise can't be resolved itself");var o=re(n);o?C((function(){var r={done:!1};try{o.call(n,ue(de,e,r,t),ue(le,e,r,t))}catch(i){le(e,r,i,t)}})):(t.value=n,t.state=J,oe(e,t,!1))}catch(i){le(e,{done:!1},i,t)}}};te&&(F=function(e){_(this,F,R),m(e),r.call(this);var t=P(this);try{e(ue(de,this,t),ue(le,this,t))}catch(n){le(this,t,n)}},r=function(e){G(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=h(F.prototype,{then:function(e,t){var n=U(this),r=V(k(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=W?q.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&oe(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=P(e);this.promise=e,this.resolve=ue(de,e,t),this.reject=ue(le,e,t)},A.f=V=function(e){return e===F||e===i?new o(e):H(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 B&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(F,B.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:F}),p(F,R,!1,!0),g(R),i=l(R),s({target:R,stat:!0,forced:te},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:R,stat:!0,forced:c||te},{resolve:function(e){return T(c&&this===i?F:this,e)}}),s({target:R,stat:!0,forced:ne},{all:function(e){var t=this,n=V(t),r=n.resolve,o=n.reject,i=E((function(){var n=m(t.resolve),i=[],a=0,s=1;M(e,(function(e){var c=a++,u=!1;i.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,i[c]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,o=E((function(){var o=m(t.resolve);M(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},e893:function(e,t,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e91f:function(e,t,n){"use strict";var r=n("ebb5"),o=n("4d64").indexOf,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},ebb5:function(e,t,n){"use strict";var r,o=n("a981"),i=n("83ab"),a=n("da84"),s=n("861d"),c=n("5135"),u=n("f5df"),l=n("9112"),d=n("6eeb"),f=n("9bf2").f,h=n("e163"),p=n("d2bb"),g=n("b622"),v=n("90e3"),m=a.Int8Array,_=m&&m.prototype,y=a.Uint8ClampedArray,b=y&&y.prototype,M=m&&h(m),S=_&&h(_),k=Object.prototype,w=k.isPrototypeOf,C=g("toStringTag"),T=v("TYPED_ARRAY_TAG"),I=o&&!!p&&"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)},D=function(e){return s(e)&&c(E,u(e))},N=function(e){if(D(e))return e;throw TypeError("Target is not a typed array")},L=function(e){if(p){if(w.call(M,e))return e}else for(var t in E)if(c(E,r)){var n=a[t];if(n&&(e===n||w.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},x=function(e,t,n){if(i){if(n)for(var r in E){var o=a[r];o&&c(o.prototype,e)&&delete o.prototype[e]}S[e]&&!n||d(S,e,n?t:I&&_[e]||t)}},R=function(e,t,n){var r,o;if(i){if(p){if(n)for(r in E)o=a[r],o&&c(o,e)&&delete o[e];if(M[e]&&!n)return;try{return d(M,e,n?t:I&&m[e]||t)}catch(s){}}for(r in E)o=a[r],!o||o[e]&&!n||d(o,e,t)}};for(r in E)a[r]||(I=!1);if((!I||"function"!=typeof M||M===Function.prototype)&&(M=function(){throw TypeError("Incorrect invocation")},I))for(r in E)a[r]&&p(a[r],M);if((!I||!S||S===k)&&(S=M.prototype,I))for(r in E)a[r]&&p(a[r].prototype,S);if(I&&h(b)!==S&&p(b,S),i&&!c(S,C))for(r in A=!0,f(S,C,{get:function(){return s(this)?this[T]:void 0}}),E)a[r]&&l(a[r],T,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_TAG:A&&T,aTypedArray:N,aTypedArrayConstructor:L,exportTypedArrayMethod:x,exportTypedArrayStaticMethod:R,isView:O,isTypedArray:D,TypedArray:M,TypedArrayPrototype:S}},f069:function(e,t,n){"use strict";var r=n("1c0b"),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},f0c5:function(e,t,n){"use strict";function r(e,t,n,r,o,i,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 h in c)f.call(c,h)&&!f.call(d.components,h)&&(d.components[h]=c[h])}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),r&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),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 p=d.render;d.render=function(e,t){return l.call(t),p(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 r}))},f183:function(e,t,n){var r=n("d012"),o=n("861d"),i=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:{}}})},h=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,u)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[u].objectID},p=function(e,t){if(!i(e,u)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[u].weakData},g=function(e){return c&&v.REQUIRED&&d(e)&&!i(e,u)&&f(e),e},v=e.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:g};r[u]=!0},f4b3:function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("c04e"),s=o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));r({target:"Date",proto:!0,forced:s},{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f5b2:function(e,t,n){"use strict";var r=n("23e7"),o=n("6547").codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},f5df:function(e,t,n){var r=n("00ee"),o=n("c6b6"),i=n("b622"),a=i("toStringTag"),s="Arguments"==o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),a))?n:s?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},f6d6:function(e,t,n){var r=n("23e7"),o=n("23cb"),i=String.fromCharCode,a=String.fromCodePoint,s=!!a&&1!=a.length;r({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,n=[],r=arguments.length,a=0;while(r>a){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},f772:function(e,t,n){var r=n("5692"),o=n("90e3"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},f8cd:function(e,t,n){var r=n("a691");e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},fb2c:function(e,t,n){var r=n("74e8");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},fb6a:function(e,t,n){"use strict";var r=n("23e7"),o=n("861d"),i=n("e8b5"),a=n("23cb"),s=n("50c4"),c=n("fc6a"),u=n("8418"),l=n("b622"),d=n("1dde"),f=n("ae40"),h=d("slice"),p=f("slice",{ACCESSORS:!0,0:0,1:2}),g=l("species"),v=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!h||!p},{slice:function(e,t){var n,r,l,d=c(this),f=s(d.length),h=a(e,f),p=a(void 0===t?f:t,f);if(i(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?o(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(d,h,p);for(r=new(void 0===n?Array:n)(m(p-h,0)),l=0;h<p;h++,l++)h in d&&u(r,l,d[h]);return r.length=l,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fd87:function(e,t,n){var r=n("74e8");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},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 r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise},ffd9:function(e,t,n){"use strict";n("99af"),n("4160"),n("c975"),n("ac1f"),n("1276"),n("498a"),n("159b");var r=n("082e"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}}}]);