@hyext/builder-revues 1.3.4 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,4 +5,4 @@ if("undefined"==typeof window){var globalObject=eval("this");globalObject.window
5
5
  * @author Feross Aboukhadijeh <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- var i=n(550),o=n(551),r=n(552);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t),e}(e,t,n,i):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),o=(e=s(e,i)).write(t,n);return o!==i&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):h(e,t);if("Buffer"===t.type&&r(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return j(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:g(e,t,n,i,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,i,o){var r,a=1,s=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(r=n;r<s;r++)if(l(e,r)===l(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===c)return u*a}else-1!==u&&(r-=r-u),u=-1}else for(n+c>s&&(n=s-c),r=n;r>=0;r--){for(var d=!0,h=0;h<c;h++)if(l(e,r+h)!==l(t,h)){d=!1;break}if(d)return r}return-1}function b(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i))>o&&(i=o):i=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,i){return q(j(t,e.length-n),e,n,i)}function w(e,t,n,i){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function x(e,t,n,i){return w(e,t,n,i)}function A(e,t,n,i){return q(V(t),e,n,i)}function C(e,t,n,i){return q(function(e,t){for(var n,i,o,r=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(n=e.charCodeAt(a))>>8,o=n%256,r.push(o),r.push(i);return r}(t,e.length-n),e,n,i)}function E(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o<n;){var r,a,s,c,l=e[o],u=null,d=l>239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(r=e[o+1]))&&(c=(31&l)<<6|63&r)>127&&(u=c);break;case 3:r=e[o+1],a=e[o+2],128==(192&r)&&128==(192&a)&&(c=(15&l)<<12|(63&r)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:r=e[o+1],a=e[o+2],s=e[o+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&r)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}function k(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function T(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function I(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=t;r<n;++r)o+=D(e[r]);return o}function N(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,i,o,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function L(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function R(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function M(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,i,r){return r||M(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function $(e,t,n,i,r){return r||M(e,0,n,8),o.write(e,t,n,i,52,8),n+8}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var r=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(r,a),l=this.slice(i,o),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){r=l[d],a=u[d];break}return r<a?-1:a<r?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e+--t],o=1;t>0&&(o*=256);)i+=this[e+--t]*o;return i},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=t,o=1,r=this[e+--i];i>0&&(o*=256);)r+=this[e+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||O(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r<n&&(o*=256);)this[t+r]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||O(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[t+o]=255&e;--o>=0&&(r*=256);)this[t+o]=e/r&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);O(this,e,t,n,o-1,-o)}var r=0,a=1,s=0;for(this[t]=255&e;++r<n&&(a*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/a|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);O(this,e,t,n,o-1,-o)}var r=n-1,a=1,s=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/a|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;o>=0;--o)e[o+t]=this[o+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var a=c.isBuffer(e)?e:j(new c(e,i).toString()),s=a.length;for(r=0;r<n-t;++r)this[r+t]=a[r%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function V(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,i){for(var o=0;o<i&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(126))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],l=new r(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r=[],a=0,s=n-o;a<s;a+=16383)r.push(l(e,a,a+16383>s?s:a+16383));return 1===o?(t=e[n-1],r.push(i[t>>2]+i[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],r.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)i[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,r,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(r=o)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,o){var r,a,s=8*o-i-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,r=p&(1<<-u)-1,p>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=h,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===r)r=1-l;else{if(r===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),r-=l}return(p?-1:1)*a*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var a,s,c,l=8*r-o-1,u=(1<<l)-1,d=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,f=i?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=f,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+p]=255&a,p+=f,a/=256,l-=8);e[n+p-f]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var i=n(74),o=n(122).f;n(125)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(i(e),t)}}))},function(e,t,n){n(85),n(84),e.exports=n(556)},function(e,t,n){var i=n(47),o=n(177);e.exports=n(20).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){n(85),n(84),e.exports=n(558)},function(e,t,n){var i=n(139),o=n(45)("iterator"),r=n(102);e.exports=n(20).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||r.hasOwnProperty(i(t))}},function(e,t,n){n(560);var i=n(20).Object;e.exports=function(e){return i.getOwnPropertyNames(e)}},function(e,t,n){n(125)("getOwnPropertyNames",(function(){return n(226).f}))},function(e,t,n){"use strict";var i=n(278),o=n(104);e.exports=n(183)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(o(this,"Map"),0===e?0:e,t)}},i,!0)},function(e,t,n){var i=n(24);i(i.P+i.R,"Map",{toJSON:n(279)("Map")})},function(e,t,n){var i=n(103);e.exports=function(e,t){var n=[];return i(e,!1,n.push,n,t),n}},function(e,t,n){n(184)("Map")},function(e,t,n){n(185)("Map")},function(e,t,n){n(123),n(84),n(85),n(567),n(568),n(569),n(570),e.exports=n(20).Set},function(e,t,n){"use strict";var i=n(278),o=n(104);e.exports=n(183)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(o(this,"Set"),e=0===e?0:e,e)}},i)},function(e,t,n){var i=n(24);i(i.P+i.R,"Set",{toJSON:n(279)("Set")})},function(e,t,n){n(184)("Set")},function(e,t,n){n(185)("Set")},function(e,t,n){n(572),e.exports=n(20).parseFloat},function(e,t,n){var i=n(24),o=n(573);i(i.G+i.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){var i=n(36).parseFloat,o=n(239).trim;e.exports=1/i(n(181)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){n(576),e.exports=n(20).Reflect.get},function(e,t,n){var i=n(122),o=n(175),r=n(73),a=n(24),s=n(43),c=n(47);a(a.S,"Reflect",{get:function e(t,n){var a,l,u=arguments.length<3?t:arguments[2];return c(t)===u?t[n]:(a=i.f(t,n))?r(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(l=o(t))?e(l,n,u):void 0}})},function(e,t,n){var i=n(22);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(24),o=n(121),r=n(82),a=n(47),s=n(43),c=n(72),l=n(579),u=(n(36).Reflect||{}).construct,d=c((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),h=!c((function(){u((function(){}))}));i(i.S+i.F*(d||h),"Reflect",{construct:function(e,t){r(e),a(t);var n=arguments.length<3?e:r(arguments[2]);if(h&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(l.apply(e,i))}var c=n.prototype,p=o(s(c)?c:Object.prototype),f=Function.apply.call(e,p,t);return s(f)?f:p}})},function(e,t,n){"use strict";var i=n(82),o=n(43),r=n(235),a=[].slice,s={},c=function(e,t,n){if(!(t in s)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),s=function(){var i=n.concat(a.call(arguments));return this instanceof s?c(t,i.length,i):r(t,i,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var i=n(280),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),c=Array(s);++a<s;)c[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(c),i(e,this,l)}}},function(e,t,n){var i=n(582),o=n(591)(i);e.exports=o},function(e,t,n){var i=n(583),o=n(283),r=n(282),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var i=n(214),o=n(587),r=n(59),a=n(589),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||o(e))&&(i(e)?h:s).test(a(e))}},function(e,t,n){var i=n(284),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var o=a.call(e);return i&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var i,o=n(588),r=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!r&&r in e}},function(e,t,n){var i=n(96)["__core-js_shared__"];e.exports=i},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,i=0;return function(){var o=n(),r=16-(o-i);if(i=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var i=n(286),o=n(59);e.exports=function e(t,n,r,a,s,c){return o(t)&&o(n)&&(c.set(n,t),i(t,n,void 0,e,c),c.delete(n)),t}},function(e,t,n){var i=n(156),o=n(599),r=n(600),a=n(601),s=n(602),c=n(603);function l(e){var t=this.__data__=new i(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var i=n(157),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){var i=n(157);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var i=n(157);e.exports=function(e){return i(this.__data__,e)>-1}},function(e,t,n){var i=n(157);e.exports=function(e,t){var n=this.__data__,o=i(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var i=n(156);e.exports=function(){this.__data__=new i,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var i=n(156),o=n(287),r=n(604);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var i=n(605),o=n(612),r=n(614),a=n(615),s=n(616);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=r,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var i=n(606),o=n(156),r=n(287);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(r||o),string:new i}}},function(e,t,n){var i=n(607),o=n(608),r=n(609),a=n(610),s=n(611);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=r,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var i=n(159);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var i=n(159),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var i=n(159),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var i=n(159);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var i=n(160);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var i=n(160);e.exports=function(e){return i(this,e).get(e)}},function(e,t,n){var i=n(160);e.exports=function(e){return i(this,e).has(e)}},function(e,t,n){var i=n(160);e.exports=function(e,t){var n=i(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var i=n(618)();e.exports=i},function(e,t){e.exports=function(e){return function(t,n,i){for(var o=-1,r=Object(t),a=i(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(r[c],c,r))break}return t}}},function(e,t,n){var i=n(288),o=n(620),r=n(621),a=n(624),s=n(625),c=n(291),l=n(292),u=n(629),d=n(294),h=n(214),p=n(59),f=n(631),v=n(295),m=n(296),_=n(635);e.exports=function(e,t,n,g,b,y,w){var x=m(e,n),A=m(t,n),C=w.get(A);if(C)i(e,n,C);else{var E=y?y(x,A,n+"",e,t,w):void 0,S=void 0===E;if(S){var k=l(A),T=!k&&d(A),I=!k&&!T&&v(A);E=A,k||T||I?l(x)?E=x:u(x)?E=a(x):T?(S=!1,E=o(A,!0)):I?(S=!1,E=r(A,!0)):E=[]:f(A)||c(A)?(E=x,c(x)?E=_(x):p(x)&&!h(x)||(E=s(A))):S=!1}S&&(w.set(A,E),b(E,A,g,y,w),w.delete(A)),i(e,n,E)}}},function(e,t,n){(function(e){var i=n(96),o=t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===o?i.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}).call(this,n(216)(e))},function(e,t,n){var i=n(622);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var i=n(623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},function(e,t,n){var i=n(96).Uint8Array;e.exports=i},function(e,t){e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},function(e,t,n){var i=n(626),o=n(289),r=n(290);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:i(o(e))}},function(e,t,n){var i=n(59),o=Object.create,r=function(){function e(){}return function(t){if(!i(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var i=n(131),o=n(111);e.exports=function(e){return o(e)&&"[object Arguments]"==i(e)}},function(e,t,n){var i=n(217),o=n(111);e.exports=function(e){return o(e)&&i(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var i=n(131),o=n(289),r=n(111),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=i(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var i=n(131),o=n(293),r=n(111),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&o(e.length)&&!!a[i(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var i=n(285),o=t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===o&&i.process,s=function(){try{return r&&r.require&&r.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(216)(e))},function(e,t,n){var i=n(636),o=n(297);e.exports=function(e){return i(e,o(e))}},function(e,t,n){var i=n(637),o=n(215);e.exports=function(e,t,n,r){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=r?r(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?o(n,l,u):i(n,l,u)}return n}},function(e,t,n){var i=n(215),o=n(158),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];r.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||i(e,t,n)}},function(e,t,n){var i=n(639),o=n(291),r=n(292),a=n(294),s=n(298),c=n(295),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),u=!n&&o(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&c(e),p=n||u||d||h,f=p?i(e.length,String):[],v=f.length;for(var m in e)!t&&!l.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||f.push(m);return f}},function(e,t){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},function(e,t,n){var i=n(59),o=n(290),r=n(641),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var i=n(286),o=n(643)((function(e,t,n,o){i(e,t,n,o)}));e.exports=o},function(e,t,n){var i=n(281),o=n(644);e.exports=function(e){return i((function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&o(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i<r;){var c=n[i];c&&e(t,c,i,a)}return t}))}},function(e,t,n){var i=n(158),o=n(217),r=n(298),a=n(59);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&r(t,n.length):"string"==s&&t in n)&&i(n[t],e)}},function(e,t,n){n(646),e.exports=n(20).Object.getOwnPropertyDescriptors},function(e,t,n){var i=n(24),o=n(647),r=n(74),a=n(122),s=n(230);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,i=r(e),c=a.f,l=o(i),u={},d=0;l.length>d;)void 0!==(n=c(i,t=l[d++]))&&s(u,t,n);return u}})},function(e,t,n){var i=n(173),o=n(137),r=n(47),a=n(36).Reflect;e.exports=a&&a.ownKeys||function(e){var t=i.f(r(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(212),o=n(211),r=n(650);function a(t,n,s){return r()?(e.exports=a=i.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(212);e.exports=function(){if("undefined"==typeof Reflect||!i)return!1;if(i.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n(652),e.exports=n(20).Object.entries},function(e,t,n){var i=n(24),o=n(274)(!0);i(i.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){n(654),e.exports=n(20).Object.freeze},function(e,t,n){var i=n(43),o=n(100).onFreeze;n(125)("freeze",(function(e){return function(t){return e&&i(t)?e(o(t)):t}}))},function(e,t){window.ftparser.registerBehavior({is:"wx-data-component",properties:{name:{type:String,public:!0},autoFill:{type:String,public:!0}},methods:{getFormData:function(){return this.value||""},resetFormData:function(){}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-disabled",properties:{disabled:{type:Boolean,value:!1,public:!0,filter:"disabledChanged"}},methods:{disabledChanged:function(e){this.$$.setAttribute("aria-disabled",e),this._setRelatedLabelAria&&this._setRelatedLabelAria()}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-group",listeners:{"this.wxItemValueChanged":"_handleItemValueChanged","this.wxItemCheckedChanged":"_handleItemCheckedChanged","this.wxItemAdded":"_handleItemAdded","this.wxItemRemoved":"_handleItemRemoved","this.wxItemChangedByTap":"_handleChangedByTap"},methods:{_handleItemValueChanged:function(e){this.renameItem(e.detail.item,e.detail.newVal,e.detail.oldVal)},_handleItemCheckedChanged:function(e){this.changed(e.detail.item)},_handleItemAdded:function(e){return e.detail.item._relatedGroup=this,this.addItem(e.detail.item),!1},_handleItemRemoved:function(e){return this.removeItem(e.detail.item),!1},_handleChangedByTap:function(){this.triggerEvent("change",{value:this.value})},addItem:function(){},removeItem:function(){},renameItem:function(){},changed:function(){},resetFormData:function(){this.hasBehavior("wx-data-component")&&function e(t){t.childNodes.forEach((function(t){if(t instanceof ftparser.Element){if(t instanceof ftparser.Component){if(t.hasBehavior("wx-group"))return;if(t.hasBehavior("wx-item"))return void t.resetFormData()}e(t)}}))}(this)}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-input-base",properties:{focus:{type:Boolean,value:0,observer:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,public:!0},placeholder:{type:String,value:"",observer:"_placeholderChange",public:!0},placeholderStyle:{type:String,value:"",public:!0},placeholderClass:{type:String,value:"",public:!0},value:{type:String,value:"",observer:"defaultValueChange",public:!0},showValue:{type:String,value:""},maxlength:{type:Number,value:140,observer:"_maxlengthChanged",public:!0},type:{type:String,value:"text",public:!0},password:{type:Boolean,value:!1,public:!0},disabled:{type:Boolean,value:!1,public:!0},bindinput:{type:String,value:"",public:!0}},methods:{resetFormData:function(){this._keyboardShow&&(this.__formResetCallback=!0,wd.hideKeyboard()),this.value="",this.showValue=""},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},_focusChange:function(e){return this._couldFocus(e),e},_couldFocus:function(e){var t=this;!this._keyboardShow&&this._attached&&e&&(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,window.requestAnimationFrame?window.requestAnimationFrame((function(){t._inputFocus()})):this._inputFocus())},_getPlaceholderClass:function(e){return"input-placeholder "+e},_showValueFormate:function(e){this.password||"password"===this.type?this.showValue=e?new Array(e.length+1).join("●"):"":this.showValue=e||""},_maxlengthChanged:function(e,t){var n=this.value.slice(0,e);n!==this.value&&(this.value=n)},_showValueChange:function(e){return e},_placeholderChange:function(){this._checkPlaceholderStyle(this.value)}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-item",properties:{value:{type:String,public:!0,observer:"valueChange"},checked:{type:Boolean,value:!1,observer:"checkedChange",public:!0}},attached:function(){this.triggerEvent("wxItemAdded",{item:this},{bubbles:!0})},moved:function(){this._relatedGroup&&(this._relatedGroup.triggerEvent("wxItemRemoved"),this._relatedGroup=null),this.triggerEvent("wxItemAdded",{item:this},{bubbles:!0})},detached:function(){this._relatedGroup&&(this._relatedGroup.triggerEvent("wxItemRemoved",{item:this}),this._relatedGroup=null)},methods:{valueChange:function(e,t){this._relatedGroup&&this._relatedGroup.triggerEvent("wxItemValueChanged",{item:this,newVal:e,oldVal:t})},checkedChange:function(e,t){this.$$.setAttribute("aria-checked",e),this._setRelatedLabelAria&&this._setRelatedLabelAria(),e!==t&&this._relatedGroup&&this._relatedGroup.triggerEvent("wxItemCheckedChanged",{item:this})},changedByTap:function(){this._relatedGroup&&this._relatedGroup.triggerEvent("wxItemChangedByTap")},resetFormData:function(){this.checked=!1}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-label-target",properties:{},methods:{handleLabelTap:function(e){}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-label-aria",properties:{},methods:{_setAria:function(e){this.$$.setAttribute("role",e),this.$$.setAttribute("aria-disabled",this.disabled),this.hasBehavior("wx-button")||this.$$.setAttribute("aria-checked",this.checked)},_setRelatedLabelAria:function(e){if(this._relatedLabel){var t=this._relatedLabel;e||(this.hasBehavior("wx-radio")&&(e="radio"),this.hasBehavior("wx-switch")&&(e="checkbox"),this.hasBehavior("wx-checkbox")&&(e="checkbox"),this.hasBehavior("wx-button")&&(e="button")),t.$$.setAttribute("role",e),t.$$.setAttribute("aria-disabled",this.disabled),this.hasBehavior("wx-button")||t.$$.setAttribute("aria-checked",this.checked)}}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-mask-behavior",properties:{mask:{type:Boolean,value:!1,public:!0}},methods:{_getMaskStyle:function(e){return e?"":"background-color: transparent"}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-touchtrack",methods:{touchtrack:function(e,t,n){var i=this,o=0,r=0,a=0,s=0,c=function(e,n,c,l){if(!1===i[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:c,y:l,dx:c-o,dy:l-r,ddx:c-a,ddy:l-s,timeStamp:e.timeStamp},originalEvent:e}))return!1},l=null;ftparser.addListenerToElement(e,"touchstart",(function(e){if(1===e.touches.length&&!l)return l=e,o=a=e.touches[0].pageX,r=s=e.touches[0].pageY,c(e,"start",o,r)})),ftparser.addListenerToElement(e,"touchmove",(function(e){if(1===e.touches.length&&l){var t=c(e,"move",e.touches[0].pageX,e.touches[0].pageY);return a=e.touches[0].pageX,s=e.touches[0].pageY,t}})),ftparser.addListenerToElement(e,"touchend",(function(e){if((!e.touches||0===e.touches.length)&&l)return l=null,c(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)})),ftparser.addListenerToElement(e,"touchcancel",(function(e){if((!e.touches||0===e.touches.length)&&l){var t=l;return l=null,c(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-native-hover",behaviors:["wx-hover"],methods:{_updateNativeCoverHover:function(){this._attached&&this._viewId&&window.requestAnimationFrame(this.updateNativeCoverView.bind(this))}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-reload",methods:{saveCompVar:function(e,t){for(var n=this,i=(e._compVarList||[]).concat(t).length-1;i>0;i--)for(var o=i-1;o>=0;o--)if(e[o]===e[i]){e.splice(t,1);break}e._compVarList=e,t.forEach((function(t){e[t]=n[t]}))},restoreCompVar:function(e){var t=this;(e._compVarList||[]).forEach((function(n){t[n]=e[n]}))},saveState:function(e,t){e.wxComponents=e.wxComponents||{};var n=e.wxComponents;this.ownerShadowRoot&&(n._custom=n._custom||{},n=n._custom),n[this.is]=n[this.is]||[],n[this.is].push(t)},restoreState:function(e){e.wxComponents=e.wxComponents||{};var t=e.wxComponents;this.ownerShadowRoot&&(t._custom=t._custom||{},t=t._custom),t[this.is]=t[this.is]||[],t[this.is].shift()}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-class-prefix",created:function(){if(this._classPrefix="",this.ownerShadowRoot){var e=this.classList.getPrefix();e&&(this._classPrefix=e+"--")}this._addGlobalClass=this.classList.getAddOriginalClass()},methods:{convertClassListWithPrefix:function(e){for(var t=this.getClassPrefix(),n=this.getAddGlobalClass(),i=[],o=0;o<e.length;o++)e[o]&&(n&&i.push(e[o]),i.push(t+e[o]));return i},convertClassWithPrefix:function(e){var t=this.getClassPrefix(),n="";return this.getAddGlobalClass()&&(n+=e+" "),n+(t+e)},getClassPrefix:function(){return this._classPrefix},getAddGlobalClass:function(){return this._addGlobalClass}}})},function(e,t){var n,i=!1,o=[];window.ftparser.registerBehavior({is:"wx-keyboard-control",properties:{},attached:function(){i||(document.addEventListener("touchstart",(function(){})),document.addEventListener("touchmove",(function(){if(!n)for(var e=0,t=o;e<t.length;e++){var i=t[e];if(i._keyboardShow&&i._inputId!==n){wd.hideKeyboard({inputId:i._inputId});break}}})),document.addEventListener("touchend",(function(){var e=n;if(n=void 0,!e)for(var t=0,i=o;t<i.length;t++){var r=i[t];if(r._keyboardShow&&!r.holdKeyboard){wd.hideKeyboard({inputId:r._inputId});break}}})),i=!0),this._onSelfTouchStart=this._onSelfTouchStart.bind(this),this.$$.addEventListener("touchstart",this._onSelfTouchStart,{capture:!0}),o.push(this)},detached:function(){var e=this;this.$$.removeEventListener("touchstart",this._onSelfTouchStart);var t=o.findIndex((function(t){return e===t}));t>-1&&o.splice(t,1)},methods:{_onSelfTouchStart:function(){n=this.disabled?void 0:this._inputId}}})},function(e,t,n){var i=n(96);e.exports=function(){return i.Date.now()}},function(e,t,n){var i=n(670),o=n(59),r=n(672),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var i=n(671),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var i=n(131),o=n(111);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==i(e)}},function(e,t,n){var i=n(241);e.exports=function(e,t){if(null==e)return{};var n,o,r={},a=i(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(module,exports,__webpack_require__){(function(global){!function(e){try{e("export default global")}catch(t){try{e("export default self")}catch(e){try{module.exports=global}catch(e){try{self.global=self}catch(e){window.global=window}}}}}(eval)}).call(this,__webpack_require__(126))},function(e,t){function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<i.length;o++)if((n=i[o])===t||n.fn===t){i.splice(o,1);break}return this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var i=0,o=(n=n.slice(0)).length;i<o;++i)n[i].apply(this,t);return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){var i;try{i=n(218)}catch(e){i=n(218)}e.exports=function e(t){switch(i(t)){case"object":var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n;case"array":n=new Array(t.length);for(var r=0,a=t.length;r<a;r++)n[r]=e(t[r]);return n;case"regexp":var s="";return s+=t.multiline?"m":"",s+=t.global?"g":"",s+=t.ignoreCase?"i":"",new RegExp(t.source,s);case"date":return new Date(t.getTime());default:return t}}},function(e,t){t.linear=function(e){return e},t.inQuad=function(e){return e*e},t.outQuad=function(e){return e*(2-e)},t.inOutQuad=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.inCube=function(e){return e*e*e},t.outCube=function(e){return--e*e*e+1},t.inOutCube=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},t.inQuart=function(e){return e*e*e*e},t.outQuart=function(e){return 1- --e*e*e*e},t.inOutQuart=function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},t.inQuint=function(e){return e*e*e*e*e},t.outQuint=function(e){return--e*e*e*e*e+1},t.inOutQuint=function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},t.inSine=function(e){return 1-Math.cos(e*Math.PI/2)},t.outSine=function(e){return Math.sin(e*Math.PI/2)},t.inOutSine=function(e){return.5*(1-Math.cos(Math.PI*e))},t.inExpo=function(e){return 0==e?0:Math.pow(1024,e-1)},t.outExpo=function(e){return 1==e?e:1-Math.pow(2,-10*e)},t.inOutExpo=function(e){return 0==e?0:1==e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},t.inCirc=function(e){return 1-Math.sqrt(1-e*e)},t.outCirc=function(e){return Math.sqrt(1- --e*e)},t.inOutCirc=function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},t.inBack=function(e){var t=1.70158;return e*e*((t+1)*e-t)},t.outBack=function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},t.inOutBack=function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},t.inBounce=function(e){return 1-t.outBounce(1-e)},t.outBounce=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},t.inOutBounce=function(e){return e<.5?.5*t.inBounce(2*e):.5*t.outBounce(2*e-1)+.5},t["in-quad"]=t.inQuad,t["out-quad"]=t.outQuad,t["in-out-quad"]=t.inOutQuad,t["in-cube"]=t.inCube,t["out-cube"]=t.outCube,t["in-out-cube"]=t.inOutCube,t["in-quart"]=t.inQuart,t["out-quart"]=t.outQuart,t["in-out-quart"]=t.inOutQuart,t["in-quint"]=t.inQuint,t["out-quint"]=t.outQuint,t["in-out-quint"]=t.inOutQuint,t["in-sine"]=t.inSine,t["out-sine"]=t.outSine,t["in-out-sine"]=t.inOutSine,t["in-expo"]=t.inExpo,t["out-expo"]=t.outExpo,t["in-out-expo"]=t.inOutExpo,t["in-circ"]=t.inCirc,t["out-circ"]=t.outCirc,t["in-out-circ"]=t.inOutCirc,t["in-back"]=t.inBack,t["out-back"]=t.outBack,t["in-out-back"]=t.inOutBack,t["in-bounce"]=t.inBounce,t["out-bounce"]=t.outBounce,t["in-out-bounce"]=t.inOutBounce},function(e,t,n){n(679),e.exports=9007199254740991},function(e,t,n){var i=n(24);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t){window.ftparser.registerElement({is:"wx://tab-bar-wrapper",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}})},function(e,t){FinChatJSBridge.subscribe("requestLoadFontFace",(function(e){var t=e.uuid,n=e.family,i=e.source,o=e.desc,r=void 0===o?{}:o,a=i.startsWith("url")?i:'url("'.concat(i,'")'),s=new FontFace(n,a,r);function c(){"loaded"===s.status&&document.fonts.add(s),FinChatJSBridge.publish("responseLoadFontFace_"+t,{status:s.status})}s.load().then(c,c)})),FinChatJSBridge.subscribe("onFixHeightChange",(function(e){if(e){var t=e.visibleHeight,n=e.height,i=function(e,t){e.style.marginTop=0===t?"0":"-"+t+"px"},o=document.body,r=o.clientHeight,a=t*o.clientHeight/n,s=document.activeElement;if(n!==t){var c=function(e){var t=0,n=0;if(e.offsetParent)do{t+=e.offsetTop,n+=e.offsetParent?e.offsetParent.scrollTop:0}while(e=e.offsetParent);return t-n}(s)+s.clientHeight+50;c>r&&(c=r);var l=c-a;i(o,l<=0?0:l+20)}else i(o,0)}}))},function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"InvokeAPI",(function(){return tn})),n.d(i,"KeyValueType",(function(){return nn})),n.d(i,"Speed",(function(){return on})),n.d(i,"Slow",(function(){return rn})),n.d(i,"ErrorType",(function(){return an})),n.d(i,"LogReport",(function(){return sn}));var o=n(41),r=n.n(o),a=n(69),s=n.n(a),c=n(37),l=n.n(c),u=n(31),d=n.n(u),h=n(42),p=n.n(h),f=n(5),v=n.n(f),m=n(16),_=n.n(m),g=n(98),b=n.n(g),y=n(305),w=n.n(y),x=n(11),A=n.n(x),C=n(4),E=n.n(C),S="web",k=-1!==S.indexOf("Android"),T=(window.isAndroidJ2V8,-1!==S.indexOf("iPhone")||-1!==S.indexOf("iPad")),I=Boolean(window.isWinSDK),N=window.isIDE,P=window.self!==window.top,O=(window.isWebviewGame,N||P||I);function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=Math.random().toString(36).slice(-6),n=v()().toString(36);return"".concat(e,"-").concat(t,"-").concat(n)}function R(e){for(var t=(e=e.toString()).split(/[.-]/).filter((function(e){return!H(Number(e))})),n=["0000","000","00","0",""],i=0;i<t.length;i++){var o=t[i].length;t[i]=n[o]+t[i]}return t.join("")}function M(e,t){return R(e)>=R(t)}function B(e,t){var n,i,o=/(?:[a-zA-Z]+)(\d{8})[vV](\d{2})$/,r=R(e),a=R(t),s=e.match(o),c=t.match(o);if(r===a&&s&&c){var l=s[1],u=Number(s[2]),d=c[1],h=Number(c[2]);return l!==d?(n=l,i=d,new Date("".concat(n.slice(0,4),"-").concat(n.slice(4,6),"-").concat(n.slice(6,8)))>=new Date("".concat(i.slice(0,4),"-").concat(i.slice(4,6),"-").concat(i.slice(6,8)))):u>=h}return r>=a}var $={"[object String]":"String","[object Number]":"Number","[object Boolean]":"Boolean","[object Null]":"Null","[object Undefined]":"Undefined","[object Symbol]":"Symbol","[object BigInt]":"BigInt","[object Object]":"Object","[object Function]":"Function","[object Array]":"Array","[object Date]":"Date","[object RegExp]":"RegExp","[object Error]":"Error"};function F(e){return $[Object.prototype.toString.call(e)]}var D={String:0,NaN:"<NaN>",Infinity:function(e){return e>0?"<Infinity>":"<-Infinity>"},Number:0,Boolean:0,Null:0,Undefined:"<Undefined>",Function:function(e){return""===e.name?"<Function>":"<Function: ".concat(e.name,">")},Date:function(e){return"<Date: ".concat(e.toJSON(),">")},RegExp:function(e){return"<RegExp: ".concat(e.toString(),">")},Error:function(e){return"<".concat(e.name,": ").concat(e.message,">")},Symbol:function(e){return"<Symbol: ".concat(e.toString(),">")},Promise:"<Promise>",Map:function(e){return"<Map: size=".concat(e.size,">")},WeakMap:"<WeakMap>",Set:function(e){return"<Set: size=".concat(e.size,">")},WeakSet:"<WeakSet>",ArrayBuffer:function(e){return"<ArrayBuffer: byteLength=".concat(e.byteLength,">")},DataView:function(e){return"<DataView: byteLength=".concat(e.byteLength,", byteOffset=").concat(e.byteOffset,">")},TypedArray:function(e){return"<".concat(e.constructor&&e.constructor.name?e.constructor.name:"TypedArray",": byteLength=").concat(e.byteLength,", length=").concat(e.length,">")}},j=Object.prototype.toString,V=Function.prototype.call.bind(j);function q(e){return V(e).slice(8,-1)}var H=w.a||function(e){return e!=e},U=A.a||function(e){return"Array"===q(e)};function W(e){var t=new b.a,n=0;return function e(i,o){var r,a,s,c=(s=function(e){var t,n,i=q(e);if("Number"===i){if(H(e))return"NaN";if("Number"===q(t=e)&&Math.abs(t)===1/0)return"Infinity"}else if("Object"===i){if(null===e)return"Null"}else if(i.endsWith("Array")&&"Array"!==i&&(n=e,ArrayBuffer.isView(n)&&"DataView"!==q(n)))return"TypedArray";return i}(a=i))in D?D[s]?"function"!=typeof D[s]?[D[s],!0]:[D[s](a),!0]:[a,!0]:[null,!1],l=p()(c,2),u=l[0];return l[1]?u:n>3e3?"<Hidden>":t.has(i)?"<Circular: ".concat(t.get(i),">"):(t.set(i,o),n++,U(i)?i.map((function(t,n){return e(t,"".concat(o,"[").concat(n,"]"))})):(r={},E()(i).forEach((function(t){r[t]=e(i[t],"".concat(o,".").concat(t))})),r))}(e,"@")}function z(){var e=navigator.userAgent,t="";return e.indexOf("Mac OS X")>-1?t=(e.match(/OS [\d._]*/gi)+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,"."):(e.indexOf("Android")>-1||e.indexOf("Linux")>-1)&&(t=e.slice(e.indexOf("Android")+8,e.indexOf(";",e.indexOf("Android")))),t}var G={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)return e;if(!e)return"#ffffffff";try{if(e.startsWith("#"))switch(e.length){case 9:return t?"#"+e.slice(-2)+e.slice(1,-2):e;case 5:return t?"#"+e.slice(-1)+e.slice(1,-1):e;default:return e}if(!e.startsWith("rgb"))return G[e]||"#ffffffff";var n,i=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i),o=(i&&i[4]||"").trim(),r=i?(256|i[1]).toString(16).slice(1)+(256|i[2]).toString(16).slice(1)+(256|i[3]).toString(16).slice(1):e;return n=""!==o?o:1,"0"===(n=Math.round(255*n).toString(16).substring(0,2))&&(n="00"),O?r+=n:r=n+r,"#"+r}catch(e){return"#000000"}}var K={},X=/-[a-z]/g,Z=/([A-Z])/g,J=function(e){return K[e]||(K[e]=e.replace(Z,"-$1").toLowerCase())},Q=n(306);function ee(e,t,n){return te.apply(this,arguments)}function te(){return(te=s()(l.a.mark((function e(t,n,i){var o,a,s,c,u,h;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=n.content,e.prev=1,(a=document.createElement("template")).innerHTML=o,s=0,c=r()(a.content.childNodes),u=c.length,h=l.a.mark((function e(){var n,i;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("SCRIPT"!==(n=c[s]).tagName){e.next=8;break}return(i=document.createElement("script")).innerHTML=n.innerHTML,e.next=6,new d.a((function(e){n.src&&!window.__injectScripts[n.src]?(i.onload=function(t){window.__injectScripts[n.src]=!0,e()},i.setAttribute("charset","utf-8"),i.setAttribute("type","text/javascript"),i.src=n.src):e(),t.appendChild(i)}));case 6:e.next=9;break;case 8:t.appendChild(n);case 9:s++;case 10:case"end":return e.stop()}}),e)}));case 8:if(!(s<u)){e.next=12;break}return e.delegateYield(h(),"t0",10);case 10:e.next=8;break;case 12:"undefined"!=typeof ServiceJSBridge&&setTimeout((function(){ServiceJSBridge.invoke("injectHtmlCallback",{callbackId:i},(function(){}))}),0),e.next=18;break;case 15:e.prev=15,e.t1=e.catch(1),console.log(e.t1);case 18:case"end":return e.stop()}}),e,null,[[1,15]])})))).apply(this,arguments)}window.ResizeObserver||(window.ResizeObserver=Q.a),function(){var e=S.toLowerCase(),t=null;return e.indexOf("mac os x")>0&&(t=(e.match(/os [\d._]+/gi)+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,"."),t=_()(t.split(".")[0])),t}()<=14&&(window.Promise=void 0),n(360),n(535),window.__wxAppData={},window.__wxRoute="",window.__wxRouteBegin=!1,window.__eval=eval,window.__AppCode__={},window.__wxAppCode__=window.__AppCode__,window.global={},window.__injectScripts={},window.injectHtmlPromise=ee,window.injectHtml=function(e,t,n){return ee(e,t,n),n},window.ftConsole={info:function(){},warn:function(){},error:function(){},log:function(){}};var ne=n(61);window.ftparser=ne,ne.globalOptions&&(ne.globalOptions.renderingMode="native",ne.globalOptions.lazyRegistration=!1,ne.globalOptions.classPrefix="",ne.globalOptions.reflectToAttributes=!0,ne.globalOptions.domain="//",ne.globalOptions.allowInWriteOnly=!0,ne.globalOptions.separateInnerData=!1,window.isIDE&&(ne.globalOptions.writeExtraInfoToAttr=!0)),window.ftparser.exeCompatibleFn=function(e,t){var n;try{if(!window.__Compatible__)return;if(function(e){return"event"===e[0]||!("configuration"!==e[0]||!["updateProps","parserDatasetName"].includes(e[1]))}(e)){var i=window.__Compatible__;"string"==typeof e?n=i[e].apply(null,t):A()(e)&&(n=e.reduce((function(n,i,o){return o===e.length-1&&"function"==typeof n[i]?n[i].apply(null,t):n[i]}),i))}}catch(n){console.warn("some error in exeCompatible ",e,t,n.message)}return n},n(536),n(537),n(538);var ie=n(17),oe=n.n(ie),re=n(18),ae=n.n(re),se=n(10),ce=n.n(se),le=function(){function e(){oe()(this,e),this.isIOS=!1,this.callbacks={},this.callbackIndex=0,this.defaultEventHandlers={},this.eventPrefix="custom_event_",this.handlers={},this.IFRAME_PREFIX="hybridjsbrige_",this.isAndroid=k,this.isIOS=T,this.isWinSDK=I,this.isWeb=P,this.sdkSyncEvents=["loadJsFiles"]}return ae()(e,[{key:"checkSdkSyncEvents",value:function(e){return this.sdkSyncEvents.includes(e)||e.endsWith("Sync")}},{key:"postMessage",value:function(e,t,n){var i={C:e,paramsString:t,callbackId:n,type:"invoke"};if(this.isIOS)if(this.checkSdkSyncEvents(e)){var o=prompt("invoke",ce()(i));if(o&&"function"==typeof this.callbacks[n]){var r;try{r=JSON.parse(o)}catch(e){r={}}this.invokeCallbackHandler(n,r)}}else window.webkit.messageHandlers.invokeHandler.postMessage(i);else if(this.isWinSDK)if(i.command="postMessage",this.checkSdkSyncEvents(e)){var a=prompt("invoke",ce()(i));if(a&&"function"==typeof this.callbacks[n]){var s;try{s=JSON.parse(a)}catch(e){s={}}this.invokeCallbackHandler(n,s)}}else i.command="postMessage",window.FinClipExecuteCommandAsync({request:ce()(i),persistent:!1,onSuccess:function(){},onFailure:function(){}});else if(this.isWeb){var c=parent.window&&parent.window.FinChatJSCore;if(c){i.from="view",i.webviewId=window.__webviewId__;var l=c.invokeHandler(i);l&&this.invokeCallbackHandler(n,l)}}else{var u=FinChatJSCore.invokeHandler(e,t,n);if("string"==typeof u)try{u=JSON.parse(u)}catch(e){u={}}if(u){if(window.isIDE&&["request","downloadFile","uploadFile","createSocketTask","closeSocket","sendSocketMessage"].includes(e))return;this.invokeCallbackHandler(n,u)}}}},{key:"createIframe",value:function(e,t){var n=document.createElement("iframe"),i=this.IFRAME_PREFIX+t;n.style.display="none",n.setAttribute("id",i),n.setAttribute("frameborder","0"),n.setAttribute("src",e),document.documentElement.appendChild(n)}},{key:"retrieveIframe",value:function(e){var t=this.IFRAME_PREFIX+e,n=document.querySelector("#"+t);n&&document.documentElement.removeChild(n)}},{key:"publishHandler",value:function(e,t,n){if(this.isIOS)window.webkit.messageHandlers.publishHandler.postMessage({event:e,paramsString:t,webviewIds:n});else if(this.isWinSDK){var i={event:e,paramsString:t,webviewIds:n,type:"publish",command:"publish"};window.FinClipExecuteCommandAsync({request:ce()(i),persistent:!1,onSuccess:function(){},onFailure:function(){}})}else if(this.isWeb){var o=parent.window&&parent.window.FinChatJSCore;o&&o.publishHandler({event:e,paramsString:t,webviewId:window.__webviewId__,from:"view"})}else FinChatJSCore.publishHandler(e,t||"",n||null)}},{key:"webpublishpublishHandler",value:function(e,t,n){if(this.isIOS)window.webkit.messageHandlers.webPublishHandler.postMessage({event:e,paramsString:t,webviewIds:n});else if(this.isWinSDK){var i={event:e,paramsString:t,webviewIds:n,type:"webpublish",command:"webpublish"};window.FinClipExecuteCommandAsync({request:ce()(i),persistent:!1,onSuccess:function(){},onFailure:function(){}})}else if(this.isWeb){var o=parent.window&&parent.window.FinChatJSCore;o&&o.webPublishHandler({event:e,paramsString:t,webviewId:window.__webviewId__,from:"view"})}else FinChatJSCore.publishHandler(e,t||"",n||null)}},{key:"invoke",value:function(e,t,n){var i=t||{},o=++this.callbackIndex;this.callbacks[o]=n,this.postMessage(e,i,o)}},{key:"invokeCallbackHandler",value:function(e,t){var n=this.callbacks[e];"function"==typeof n&&n(t),delete this.callbacks[e],this.isIOS&&this.retrieveIframe(e)}},{key:"oldCallbackHandler",value:function(e){if(e){"string"==typeof e&&(e=this.parseData(e));var t=e.bridgeParam.callbackID;if(t){var n=this;setTimeout((function(){n.invokeCallbackHandler(t,e.param)}),1)}}}},{key:"publishCallbackHandler",value:function(e){this.isIOS&&this.retrieveIframe(e)}},{key:"on",value:function(e,t){this.defaultEventHandlers[e]=t}},{key:"publish",value:function(e,t,n){n=n||[];var i=this.eventPrefix+e,o=t;this.publishHandler(i,o,n)}},{key:"webpublish",value:function(e,t,n){n=n||[];var i=this.eventPrefix+e,o=t;this.webpublishpublishHandler(i,o,n)}},{key:"subscribe",value:function(e,t){this.handlers[this.eventPrefix+e]=t}},{key:"subscribeHandler",value:function(e,t,n,i){var o=-1!==e.indexOf(this.eventPrefix)?this.handlers[e]:this.defaultEventHandlers[e];if("function"==typeof o)return o(t,n,i)}},{key:"parseData",value:function(e){var t;if(e&&"string"==typeof e)try{t=JSON.parse(e)}catch(e){t={status:{code:1,msg:"PARAM_PARSE_ERROR"}}}else t=e||{};return t}}]),e}();window.FinChatJSBridge=new le;var ue=n(21),de=n.n(ue),he=/[ (@]*https?:\/\/([^/]*)\/+(.*?):(\d+):(\d+)/,pe=[];function fe(e){if(!e||e.__originalStack__)return!1;var t=e.stack;if(void 0===t)return!1;for(var n=t,i=pe.length-1,o=0;o>=0&&i>=0;){var r=n.length,a=0;for(var s in ve)if(ve[s]){var c=n.indexOf(ve[s],o);c<0||r<=c||(r=c,a=ve[s].length)}if(r>=n.length)break;var l="at <".concat(pe[i--].description,">");n=n.slice(0,r)+l+n.slice(r+a),o=r+l.length}return de()(e,{__originalStack__:{value:t,writable:!0,configurable:!0},stack:{value:n,writable:!0,enumerable:!0,configurable:!0}}),!0}var ve={wrapSystemFunction:null,wrapMiniProgramOrPluginFunction:null};function me(e){var t=((new Error).stack||"").match(/.+/gm),n="",i=0;t&&t.forEach((function(e){if(he.test(e)&&2===(i+=1)){var t=e.match(/^(\s*)at /),o=t?t[1].length:0;return n=e.slice(o),!1}return!0})),ve[e]=n}function _e(){for(var e="",t=pe.length-1;t>=0;t--)pe[t].pluginAppId&&(e=pe[t].pluginAppId);return e}function ge(e,t,n,i,o){var r,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];null===ve.wrapSystemFunction&&(ve.wrapSystemFunction="",be("","",me)("wrapSystemFunction")),pe.push({description:t});try{r=n.apply(i,o)}catch(t){if(fe(t)){if("AppServiceSdkKnownError"===t.type)throw pe.pop(),t;if("ThirdScriptError"===t.type){var s=_e();Reporter.thirdErrorReport({error:t,source:s,triggerErrorCallback:!a})}else Reporter.errorReport({key:e,error:t,triggerErrorCallback:!a})}if(a)throw pe.pop(),t}return pe.pop(),r}function be(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return ge(e,t,n,this,r,i)}}function ye(e,t,n,i,o){var r,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];null===ve.wrapMiniProgramOrPluginFunction&&(ve.wrapMiniProgramOrPluginFunction="",we("","",me)("wrapMiniProgramOrPluginFunction")),pe.push({description:t,pluginAppId:e});try{r=n.apply(i,o)}catch(t){if(fe(t)&&Reporter.thirdErrorReport({error:t,source:e||"",triggerErrorCallback:!a}),a)throw pe.pop(),t}return pe.pop(),r}function we(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return ye(e,t,n,this,r,i)}}var xe={callSystemFunction:ge,wrapSystemFunction:be,callMiniProgramOrPluginFunction:ye,callThirdPartyFunction:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return ye(_e(),e,t,n,i,o)},wrapMiniProgramOrPluginFunction:we,wrapThirdPartyFunction:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return ye(_e(),e,t,this,o,n)}},surroundThirdByTryCatch:function(e,t){var n=(t||"").match(/^\s*(?:at )?([\s\S]*)$/),i=n?n[1]:"",o=e||function(){};return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ye(_e(),i,o,o,t,!1)}}};window.__errorTracer__=xe,window.__wxLibrary={envType:"WebView",contextType:"App:SubContext",execStart:v()()};var Ae=n(0),Ce=n.n(Ae),Ee=function(){function e(){oe()(this,e),this.listeners={}}return ae()(e,[{key:"emit",value:function(e,t){if(this.listeners[e]&&this.listeners[e].length>0){var n=!1;return this.listeners[e].forEach((function(e){0!==e.count&&e.cb(t),e.count>0&&e.count--,0===e.count&&(n=!0)})),n&&(this.listeners[e]=this.listeners[e].filter((function(e){return 0!==e.count}))),!0}return!1}},{key:"many",value:function(e,t,n){if(!t)return this;var i={count:n,cb:t};return this.listeners[e]?this.listeners[e].push(i):this.listeners[e]=[i],this}},{key:"on",value:function(e,t){this.many(e,t,-1)}},{key:"once",value:function(e,t){this.many(e,t,1)}},{key:"off",value:function(e,t){for(var n=0;n<this.listeners[e].length;n++){var i=this.listeners[e][n];if(i.cb===t)return void(i.count=0)}}}]),e}(),Se=window.__wxConfig||{},ke=__wxLibrary.envType,Te=__wxLibrary.contextType,Ie="Service"===ke,Ne="WebView"===ke,Pe="Worker"===ke,Oe="Widget"===ke,Le=Ne||Ie&&0===Te.indexOf("App:"),Re=Ie&&0===Te.indexOf("Game:"),Me=Pe&&"function"==typeof window.workerInvokeJsApi,Be=!!Se.isIsolateContext,$e=Ie&&Be&&(Te.indexOf("Uncertain")>=0||Te.indexOf("MainContext"))>=0,Fe=Ie&&Te.indexOf("SubContext")>=0,De=$e||Fe,je=Ne||$e,Ve="wxlib"===Se.workerContentType,qe={platform:function(){var e=Se.platform;if(!e&&Ne){var t=window.navigator.userAgent.toLowerCase();t.indexOf("devtools")>=0?e="devtools":t.indexOf("miniprogramenv/windows")>=0?e="windows":t.indexOf("miniprogramenv/mac")>=0?e="mac":t.indexOf("miniprogramenv/mina")>=0?e="mina":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?e="ios":t.indexOf("android")>=0&&(e="android")}return"devtools".toLowerCase()}(),SDKVersion:"",isIsolateContext:De,isGame:Re,isApp:Le,isMainContext:$e,isSubContext:Fe,isSafeEnv:je,isService:Ie,isWebView:Ne,isWorker:Pe,isWidget:Oe,isSupportWorkerAPI:Me,typeStr:ke,isWXLibWorker:Ve},He=new Ee,Ue={};function We(e,t){e in Ue?t(Ue[e]):Ge.once("lifeCycle:"+e,t)}function ze(e,t){var n=e in Ue;return n||(Ue[e]=t,n=Ge.emit("lifeCycle:"+e,t)),n}var Ge={EventEmitter:Ee,on:He.on.bind(He),emit:He.emit.bind(He),once:He.once.bind(He),onConfigReady:We.bind(null,"configReady"),emitConfigReady:ze.bind(null,"configReady"),get isConfigReady(){return"configReady"in Ue},onLibraryReady:We.bind(null,"libraryReady"),emitLibraryReady:ze.bind(null,"libraryReady"),get isLibraryReady(){return"libraryReady"in Ue},onBridgeReady:function(e){"undefined"!=typeof WeixinJSBridge?e():"object"===("undefined"==typeof document?"undefined":Ce()(document))&&document.addEventListener("WeixinJSBridgeReady",e,!1)},env:qe,global:window};window.__wxLibrary.onEnd=function(e){e||console.warn("建议将编译器版本调整大于等于 1.1.15。升级后渲染将有更好性能。"),Ge.emitLibraryReady({})},window.Foundation=Ge;var Ye=n(12),Ke=n.n(Ye),Xe=n(112),Ze=n.n(Xe),Je=JSON.parse,Qe=ce.a,et=Foundation.env.isSubContext,tt=Foundation.env.isSafeEnv,nt={},it=["env","appLaunchInfo","ext","wxAppInfo","debug","entryPagePath","envVersion","tabBar","pages","page","accountInfo","global","platform","system","appType","networkTimeout","navigateToMiniProgramAppIdList","plugins","extAppid","host","prerender"],ot=window;function rt(e){return Je(Qe(e))}var at=!0===(window.__wxConfig=void 0!==ot.__wxConfig?tt?Ke()({},ot.__wxConfig):rt(ot.__wxConfig):{}).preload,st=!1,ct=!1,lt=[],ut=[],dt=[],ht=Foundation.env.typeStr;function pt(e,t){try{v()(),e(t),v()()}catch(e){"object"===("undefined"==typeof Reporter?"undefined":Ce()(Reporter))&&"function"==typeof Reporter.errorReport&&Reporter.errorReport({key:"appServiceSDKScriptError",error:e,extend:"at wxConfig.onReady callback"})}}Foundation.env.isSubContext&&(ht="SubContext");var ft=function(e){dt.push(e)},vt=function(e,t){st?void 0!==__wxConfig&&(t?ct?pt(e,__wxConfig):ut.push(e):pt(e,__wxConfig)):"function"==typeof e&&(t?ut.push(e):lt.push(e))},mt=function(e){e.tabBar&&e.tabBar.list&&e.tabBar.list.forEach((function(e){delete e.iconData,delete e.selectedIconData})),delete e.permission;var t=e.subPackages||e.subpackages;return t&&t.length>0&&(t.forEach((function(e){delete e.pages})),e.subPackages=e.subpackages=t),st&&(delete __wxConfig.usingComponents,Ze()(__wxConfig.page||{}).forEach((function(e){e&&e.window&&delete e.window.usingComponents})),__wxConfig._preloadRule=__wxConfig.preloadRule||{},__wxConfig._page=__wxConfig__.page||{},delete __wxConfig.preloadRule,delete __wxConfig.page,__wxConfig.updatePage=function(e,t){t&&t.window&&(delete t.window.usingComponents,delete t.window.pages),__wxConfig.page=__wxConfig.page||{},__wxConfig.page[e]=__wxConfig.page[e+".html"]=t,nt[e+".html"]=rt(t)},__wxConfig.updatePreloadRule=function(e,t){__wxConfig.preloadRule=__wxConfig.preloadRule||{},__wxConfig.preloadRule[e]=t},ot.__wxConfig.page=ot.__wxConfig.page||{},__wxConfig.page=__wxConfig.page||{},ot.__wxConfig.isLazyLoad=__wxConfig__.isLazyLoad,__wxConfig.isLazyLoad=__wxConfig__.isLazyLoad),e},_t=function(e){return e.onReady=vt,e.beforeReady=ft,et||(e.preload=at),e.isReady=st,e.isSubContext=et,e.envTag=ht,e.isSafeContext=tt,e.sdkVersion=e.SDKVersion=Foundation.env.SDKVersion,e.twoPhaseInject=!0,e.platform=Foundation.env.platform,e.brand||"ios"!==e.platform||(e.brand="iPhone"),"number"==typeof e.pixelRatio?e.devicePixelRatio=e.pixelRatio:"number"==typeof e.devicePixelRatio&&(e.pixelRatio=e.devicePixelRatio),e};window.__wxConfig=_t(window.__wxConfig),window.__wxConfig=mt(window.__wxConfig),Foundation.onConfigReady((function(){!function(){if(void 0!==ot.__wxConfig&&!st){var e=function(){if(__wxConfig.onReadyStart=v()(),lt.forEach((function(e){pt(e,__wxConfig)})),ct=!0,ut.forEach((function(e){pt(e,__wxConfig)})),__wxConfig.onReadyEnd=v()(),lt=[],tt)Ke()(__wxConfig,{global:__wxConfig__});else{var e=ot.__wxConfig__,t=ot.__wxConfig,n=rt(e);!function(e){e.window&&e.window.pages?(delete e.window.pages,e.tabBar?e.tabBar.list.forEach((function(e){e.pagePath.endsWith(".html")||(e.pagePath+=".html")})):e.tabBar={list:[]}):e.appType=4}(n);var i={};nt={};try{it.forEach((function(o){switch(o){case"page":i[o]=nt;break;case"env":i[o]={USER_DATA_PATH:window.wx.env.USER_DATA_PATH};break;case"envVersion":case"extAppid":i[o]="";break;case"accountInfo":i[o]={appId:"",icon:"",nickname:""};break;case"appLaunchInfo":i[o]=wx&&"function"==typeof wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():{};break;case"entryPagePath":i[o]=e[o]||e.pages[0]+".html";break;case"ext":i[o]={};break;case"global":i[o]={window:n.window};break;case"tabBar":i[o]=n[o];break;case"plugins":case"pages":o in e&&(i[o]=e[o]);break;default:o in t&&(i[o]=t[o])}})),ot.__wxConfig=Ke()({},__wxConfig__,i),ot.__wxConfig.subpackages?ot.__wxConfig.subPackages=ot.__wxConfig.subpackages:ot.__wxConfig.subPackages&&(ot.__wxConfig.subpackages=ot.__wxConfig.subPackages)}catch(t){ot.__wxConfig=e}}};if(st=!0,Ke()(__wxConfig,tt?ot.__wxConfig:rt(ot.__wxConfig)),__wxConfig=_t(__wxConfig),__wxConfig=mt(__wxConfig),!dt.length)return e();var t=!1;setTimeout((function(){t||(console.warn("beforeReady timeout"),t=!0,e())}),3e3),dt.forEach((function(e){try{e()}catch(e){console.warn("beforeReady error",e)}})),t||(t=!0,e()),dt=[]}}()})),Foundation.onLibraryReady((function(){Foundation.emitConfigReady(window.__wxConfig)})),n(548);var gt=n(307),bt=n.n(gt),yt=n(33),wt=n.n(yt),xt=n(35),At=n.n(xt),Ct=n(22),Et=n.n(Ct),St=n(9),kt=n.n(St),Tt=n(15),It=n.n(Tt),Nt=n(308),Pt=n.n(Nt),Ot={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",borderRadius:"50%",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"0",right:"0",minHeight:"24px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"white",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{boxSizing:"border-box",minHeight:"24px",borderRadius:"5px",background:"black",padding:"5px",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}},Lt=n(23),Rt=n.n(Lt),Mt=ae()((function e(t){oe()(this,e),kt()(this,"onCreate",(function(){})),kt()(this,"onDestroy",(function(){})),kt()(this,"onUpdate",(function(){})),this.resizer=t,this.overlay=t.overlay,this.img=t.img,this.options=t.options,this.requestUpdate=t.onUpdate}));var Bt=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){var e;oe()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return e=t.call.apply(t,[this].concat(o)),kt()(Rt()(e),"onCreate",(function(){e.display=document.createElement("div"),Ke()(e.display.style,e.options.displayStyles),e.overlay.appendChild(e.display)})),kt()(Rt()(e),"onDestroy",(function(){})),kt()(Rt()(e),"onUpdate",(function(){if(e.display&&e.img){var t=e.getCurrentSize();if(e.display.innerHTML=t.join(" &times; "),"right"==e.img.style.float){var n=e.display.getBoundingClientRect();Ke()(e.display.style,{right:"auto",top:"-".concat(n.height+4,"px"),left:"-".concat(n.width+4,"px")})}else Ke()(e.display.style,{right:"4px",top:"4px",left:"auto"})}})),kt()(Rt()(e),"getCurrentSize",(function(){return[e.img.width,Math.round(e.img.width/e.img.naturalWidth*e.img.naturalHeight)]})),e}return ae()(n)}(Mt);var $t=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){var e;oe()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return e=t.call.apply(t,[this].concat(o)),kt()(Rt()(e),"onCreate",(function(){e.toolbar=document.createElement("div"),Ke()(e.toolbar.style,e.options.toolbarStyles),e.overlay.appendChild(e.toolbar),e._addToolbarButtons()})),kt()(Rt()(e),"onDestroy",(function(){})),kt()(Rt()(e),"onUpdate",(function(){})),kt()(Rt()(e),"_addToolbarButtons",(function(){var t=document.createElement("span");t.innerHTML="删除",t.addEventListener("click",(function(){Quill.find(e.img).deleteAt(0),e.resizer.hide()})),Ke()(t.style,e.options.toolbarButtonStyles),e.toolbar.appendChild(t)})),e}return ae()(n)}(Mt),Ft=n(2),Dt=n.n(Ft);var jt={DisplaySize:Bt,Toolbar:$t,Resize:function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){var e;oe()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return e=t.call.apply(t,[this].concat(o)),kt()(Rt()(e),"onCreate",(function(){e.boxes=[],e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.positionBoxes()})),kt()(Rt()(e),"onDestroy",(function(){e.setCursor("")})),kt()(Rt()(e),"positionBoxes",(function(){var t="".concat(-Dt()(e.options.handleStyles.width)/2,"px"),n="".concat(-Dt()(e.options.handleStyles.height)/2,"px");[{left:t,top:n},{right:t,top:n},{right:t,bottom:n},{left:t,bottom:n}].forEach((function(t,n){Ke()(e.boxes[n].style,t)}))})),kt()(Rt()(e),"addBox",(function(t){var n=document.createElement("div");Ke()(n.style,e.options.handleStyles),n.style.cursor=t,n.style.width="".concat(e.options.handleStyles.width,"px"),n.style.height="".concat(e.options.handleStyles.height,"px"),n.addEventListener("touchstart",e.handleMousedown,!1),e.overlay.appendChild(n),e.boxes.push(n)})),kt()(Rt()(e),"handleMousedown",(function(t){t=t.touches[0],e.dragBox=t.target,e.dragStartX=t.clientX,e.preDragWidth=e.img.width||e.img.naturalWidth,e.setCursor(e.dragBox.style.cursor),document.addEventListener("touchmove",e.handleDrag,!1),document.addEventListener("touchend",e.handleMouseup,!1)})),kt()(Rt()(e),"handleMouseup",(function(){e.setCursor(""),document.removeEventListener("touchmove",e.handleDrag),document.removeEventListener("touchend",e.handleMouseup)})),kt()(Rt()(e),"handleDrag",(function(t){if(e.img){var n=(t=t.touches[0]).clientX-e.dragStartX;e.dragBox===e.boxes[0]||e.dragBox===e.boxes[3]?e.img.width=Math.round(e.preDragWidth-n):e.img.width=Math.round(e.preDragWidth+n),e.requestUpdate()}})),kt()(Rt()(e),"setCursor",(function(t){[document.body,e.img].forEach((function(e){e.style.cursor=t}))})),e}return ae()(n)}(Mt)},Vt=ae()((function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe()(this,e),kt()(this,"initializeModules",(function(){n.removeModules(),n.modules=n.moduleClasses.map((function(e){return new(jt[e]||e)(n)})),n.modules.forEach((function(e){e.onCreate()})),n.onUpdate()})),kt()(this,"onUpdate",(function(){n.repositionElements(),n.modules.forEach((function(e){e.onUpdate()}))})),kt()(this,"removeModules",(function(){n.modules.forEach((function(e){e.onDestroy()})),n.modules=[]})),kt()(this,"handleClick",(function(e){if(e.target&&e.target.tagName&&"IMG"===e.target.tagName.toUpperCase()){if(n.img===e.target)return;n.img&&n.hide(),n.show(e.target),e.preventDefault()}else n.img&&n.hide()})),kt()(this,"handleScroll",(function(e){n.hide()})),kt()(this,"show",(function(e){0!==n.moduleClasses.length&&(n.img=e,n.showOverlay(),n.initializeModules())})),kt()(this,"showOverlay",(function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0),n.overlay=document.createElement("div"),Ke()(n.overlay.style,n.options.overlayStyles),n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()})),kt()(this,"hideOverlay",(function(){n.overlay&&(n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect(""))})),kt()(this,"repositionElements",(function(){if(n.overlay&&n.img){var e=n.quill.root.parentNode,t=n.img.getBoundingClientRect(),i=e.getBoundingClientRect();Ke()(n.overlay.style,{left:"".concat(t.left-i.left-1+e.scrollLeft,"px"),top:"".concat(t.top-i.top+e.scrollTop,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")})}})),kt()(this,"hide",(function(){n.hideOverlay(),n.removeModules(),n.img=void 0})),kt()(this,"setUserSelect",(function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){n.quill.root.style[t]=e,document.documentElement.style[t]=e}))})),kt()(this,"checkImage",(function(e){n.img&&(46!=e.keyCode&&8!=e.keyCode||window.Quill.find(n.img).deleteAt(0),n.hide())})),this.quill=t;var o=!1;i.modules&&(o=i.modules.slice()),this.options=Pt()({},i,Ot),!1!==o&&(this.options.modules=o),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.addEventListener("mscontrolselect",this.handleClick,!1),this.quill.root.addEventListener("scroll",this.handleScroll,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]}));if(window.Quill){var qt=["alt","height","width","style"],Ht=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){return oe()(this,n),t.apply(this,arguments)}return ae()(n,[{key:"format",value:function(e,t){qt.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):bt()(Et()(n.prototype),"format",this).call(this,e,t)}}],[{key:"formats",value:function(e){return qt.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}}]),n}(window.Quill.import("formats/image"));window.Quill.register(Ht,!0),window.Quill.register("modules/imageResize",Vt)}var Ut,Wt,zt,Gt=n(14),Yt=n.n(Gt),Kt=n(8),Xt=n.n(Kt),Zt=n(19),Jt=n.n(Zt),Qt=n(1),en=n.n(Qt),tn={login:1,login_cancel:2,login_fail:3,request_fail:4,connectSocket_fail:5,closeSocket_fail:6,sendSocketMessage_fail:7,uploadFile_fail:8,downloadFile_fail:9,redirectTo_fail:10,navigateTo_fail:11,navigateBack_fail:12,appServiceSDKScriptError:13,webviewSDKScriptError:14,jsEnginScriptError:15,thirdScriptError:16,webviewScriptError:17,ftparserScriptError:18,startRecord:19,startRecord_fail:20,getLocation:21,getLocation_fail:22,chooseLocation:23,chooseLocation_fail:24,openAddress:25,openAddress_fail:26,openLocation:27,openLocation_fail:28,makePhoneCall:29,makePhoneCall_fail:30,operateWXData:31,operateWXData_fail:32,checkLogin:33,checkLogin_fail:34,refreshSession:35,refreshSession_fail:36,chooseVideo:37,chooseVideo_fail:38,chooseImage:39,chooseImage_fail:40,verifyPaymentPassword:41,verifyPaymentPassword_fail:42,requestPayment:43,requestPayment_fail:44,bindPaymentCard:45,bindPaymentCard_fail:46,requestPaymentToBank:47,requestPaymentToBank_fail:48,openDocument:49,openDocument_fail:50,chooseContact:51,chooseContact_fail:52,operateMusicPlayer:53,operateMusicPlayer_fail:54,getMusicPlayerState_fail:55,playVoice_fail:56,setNavigationBarTitle_fail:57,switchTab_fail:58,getImageInfo_fail:59,enableCompass_fail:60,enableAccelerometer_fail:61,getStorage_fail:62,setStorage_fail:63,clearStorage_fail:64,removeStorage_fail:65,getStorageInfo_fail:66,getStorageSync_fail:67,setStorageSync_fail:68,addCard_fail:69,openCard_fail:70},nn={Speed:"13544",Error:"13582",Slow:"13968"},on={webview2AppService:1,appService2Webview:2,funcReady:3,firstGetData:4,firstRenderTime:5,reRenderTime:6,forceUpdateRenderTime:7,appRoute2newPage:8,newPage2pageReady:9,thirdScriptRunTime:10,pageframe:11,WAWebview:12},rn={apiCallback:1,pageInvoke:2},an={appServiceSDKScriptError:1,webviewSDKScriptError:2,jsEnginScriptError:3,thirdScriptError:4,webviewScriptError:5,ftparserScriptError:6,appServiceScriptError:7},sn={background:1,foreground:2,launch:3,enterPage:4,leavePage:5,pageReady:6,pullDownRefresh:7};function cn(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):cn(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function un(){var e=arguments;!function(e){void 0!==Ut?e():document.addEventListener(Wt+"JSBridgeReady",e,!1)}((function(){Ut.invoke.apply(Ut,e)}))}function dn(){fn&&fn.length>0&&(un("systemLog",{dataArray:fn}),fn=[])}function hn(e){En.__defineGetter__(e,(function(){return t=Cn[e],function(){try{return t.apply(t,arguments)}catch(e){console.error("reporter error:"+e.message)}};var t}))}"undefined"!=typeof ServiceJSBridge?(Ut=window.ServiceJSBridge,Wt="Service",zt="H5_JS_SERVICE_ERR"):"undefined"!=typeof FinChatJSBridge&&(Ut=window.FinChatJSBridge,Wt="FinChat",zt="H5_JS_VIEW_ERR");var pn=[],fn=[],vn=0,mn=0,_n=0,gn={},bn={},yn=function(){},wn=function(){},xn=function(){},An=function(){},Cn={surroundThirdByTryCatch:function(e,t){return function(){var n;try{var i=v()();n=e.apply(e,arguments);var o=v()()-i;o>1e3&&Cn.slowReport({key:"apiCallback",cost:o,extend:t})}catch(e){Cn.thirdErrorReport({error:e,extend:t})}return n}},slowReport:function(e){var t=e.key,n=e.cost,i=e.extend,o=e.force,r=rn[t],a=v()(),s=r&&(o||a-_n>=500);if(s&&(E()(bn).length>50?s=!1:(bn[i]||(bn[i]=0),bn[i]++,s=bn[i]<=3)),s){_n=a;var c=n+","+encodeURIComponent(i)+","+r;Cn.reportKeyValue({key:"Slow",value:c,force:!0,valuetype:t,cost:n})}},speedReport:function(e){var t=e.key,n=e.data,i=e.timeMark,o=e.force,r=on[t],a=v()(),s=0,c=i.nativeTime,l=r;if(l&&(l=(o||a-(gn[r]||0)>=500)&&i.startTime&&i.endTime&&(1!==r&&2!==r||c)),l){n&&(s=ce()(n).length),gn[r]=a;var u="".concat(r,",").concat(i.startTime,",").concat(c,",").concat(c,",,").concat(i.endTime,",").concat(s);Cn.reportKeyValue({key:"Speed",value:u,force:!0,valuetype:t,payload:{startTime:i.startTime,endTime:i.endTime,nativeTime:c}})}},reportKeyValue:function(e){var t=e.key,n=e.value,o=e.cost,r=e.payload||{},a=e.valuetype;nn[t]&&un("reportApmMonitor",{eventType:t,eventName:a,timestamp:(new Date).getTime(),payload:ln({key:i[t][a],value:n,cost:o},r)})},reportIDKey:function(e){var t=e.key;tn[t]&&un("reportApmMonitor",{eventType:"InvokeAPI",eventName:t,timestamp:(new Date).getTime(),payload:{platform:T?"IOS":"Android",key:tn[t]}})},thirdErrorReport:function(e){var t=e.error,n=e.extend;console.error(t),Cn.errorReport({key:"thirdScriptError",error:t,extend:n,isUnhandledRejection:!!e.promise,promise:e.promise,isThirdScriptError:!0})},errorReport:function(e){var t={},n=e.error||{},i=e.extend,o=e.isUnhandledRejection||!1,r=e.promise||{},a=e.key,s=e.isThirdScriptError||!1;t.msg=i?n.message+";"+i:n.message,t.stack=n.stack,an[a]?t.key=a:t.key="unknowErr",un("reportApmMonitor",{eventType:"ErrorType",eventName:a,timestamp:(new Date).getTime(),payload:{event_desc:ce()(t),key:an[e.key],layer:zt}});var c=s?"MiniProgramError":"SystemError (".concat(a,")"),l="",u="";if("object"===Ce()(n)&&(n.message||n.stack))l=n.message,u=n.stack;else{try{l=ce()(n)}catch(e){l=""}u=Object.prototype.toString.call(n).slice(8,-1)}var d=l,h="";n.name&&0!==u.indexOf(n.name)&&(h="\n"+n.name+": "+d);var p="".concat(c,"\n").concat(d).concat(h,"\n").concat(u);s?Cn.triggerThirdErrorMessage(p,o,n,r):Cn.triggerErrorMessage(p,o,n,r)},log:function(e,t){e&&"string"==typeof e&&(t||v()()-vn>=50)&&(vn=v()(),fn.push(e+""),fn.length>=50&&dn())},submit:function(){v()()-mn>=50&&(mn=v()(),pn&&pn.length>0&&(un("reportKeyValue",{dataArray:pn}),pn=[]),dn())},registerErrorListener:function(e){"function"==typeof e&&(yn=e)},unRegisterErrorListener:function(){yn=function(){}},triggerErrorMessage:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;void 0!==t?setTimeout((function(){try{t?xn(n,i):yn(e)}catch(e){console.error(e.message,"at onError callback function")}}),0):yn(e)},getAppType:function(){return 0},triggerThirdErrorMessage:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;setTimeout((function(){try{t?An(n,i):wn(e)}catch(e){console.error(e.message,"at onError callback function")}}),0)},registerThirdErrorListener:function(e){"function"==typeof e&&(wn=e)},registerUnhandledRejectionListener:function(e){"function"==typeof e&&(xn=e)},registerThirdUnhandledRejectionListener:function(e){"function"==typeof e&&(An=e)}},En={};for(var Sn in Cn)hn(Sn);"undefined"!=typeof window&&(window.onbeforeunload=function(){Cn.submit()}),window.Reporter=En;var kn=n(29),Tn=n.n(kn),In=n(44),Nn=n.n(In);window.BASE_DEVICE_WIDTH=750,window.EPS=1e-4,window.RPXRE=/%%\?[+-]?\d+(\.\d+)?rpx\?%%/g,window.transformByDPR=function(e,t,n){return e=e/BASE_DEVICE_WIDTH*t,0===(e=Math.floor(e+EPS))?1===n?1:.5:e},window.getNumber=function(e,t,n){for(var i=0,o=1,r=!1,a=!1,s=0;s<e.length;++s){var c=e[s];c>="0"&&c<="9"?r?i+=(c-"0")*(o*=.1):i=10*i+(c-"0"):"."===c?r=!0:"-"===c&&(a=!0)}return a&&(i=-i),transformByDPR(i,t,n)},window.__transformRpx__=function(e,t){if(0===Number(e))return 0;var n=window.devicePixelRatio;return getNumber(""+e,t||wd.getCorrectSize().width,n)};var Pn=function(e,t,n,i,o){var r=e.match(RPXRE);if(r&&Tn()(new Nn.a(r)).forEach((function(i){var o=" "+getNumber(i,t,n)+"px ";e=e.replace(new RegExp(i.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),"g"),o)})),e){var a=document.querySelector('style[page="'.concat(i,'"]')),s=document.querySelector("head"),c=document.createElement("style");c.setAttribute("type","text/css"),c.setAttribute("page",i),c.innerHTML=e,"customStyle"===o||"app"===i?document.head.insertBefore(c,document.getElementsByTagName("link")[0].nextSibling):s.appendChild(c),a&&a.remove()}};function On(e){"undefined"!=typeof FinChatJSBridge?e():document.addEventListener("FinChatJSBridgeReady",e,!1)}function Ln(){var e=arguments;On((function(){FinChatJSBridge.invoke.apply(FinChatJSBridge,e)}))}function Rn(){var e=arguments;On((function(){FinChatJSBridge.on.apply(FinChatJSBridge,e)}))}window.inlineCss=Pn;var Mn={invoke:Ln,on:Rn,publish:function(){var e=Array.prototype.slice.call(arguments);e[1]={data:e[1],options:{timestamp:v()()}},On((function(){FinChatJSBridge.publish.apply(FinChatJSBridge,e)}))},subscribe:function(){var e=Array.prototype.slice.call(arguments),t=e[1];e[1]=function(e,n){var i=e.data,o=e.options,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o&&o.timestamp||0,s=v()();"function"==typeof t&&t(i,n),Reporter.speedReport({key:"appService2Webview",data:i||{},timeMark:{startTime:a,endTime:s,nativeTime:r.nativeTime}})},On((function(){FinChatJSBridge.subscribe.apply(FinChatJSBridge,e)}))},invokeMethod:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={};for(var o in t)"function"==typeof t[o]&&(i[o]=t[o],delete t[o]);Ln(e,t,(function(t){t.errMsg=t.errMsg||e+":ok";var o=0===t.errMsg.indexOf(e+":ok"),r=0===t.errMsg.indexOf(e+":cancel"),a=0===t.errMsg.indexOf(e+":fail");"function"==typeof n.beforeAll&&n.beforeAll(t),o?("function"==typeof n.beforeSuccess&&n.beforeSuccess(t),"function"==typeof i.success&&i.success(t),"function"==typeof n.afterSuccess&&n.afterSuccess(t)):r?("function"==typeof i.cancel&&i.cancel(t),"function"==typeof n.cancel&&n.cancel(t)):a&&("function"==typeof i.fail&&i.fail(t),"function"==typeof n.fail&&n.fail(t)),"function"==typeof i.complete&&i.complete(t),"function"==typeof n.complete&&n.complete(t)}))},onMethod:function(e,t){Rn(e,t)}},Bn=n(309);var $n,Fn,Dn={getPlatform:function(){var e=window.navigator.userAgent.toLowerCase();return/devtools/.test(e)?"devtools":/(iphone|ipad)/.test(e)?"ios":/android/.test(e)?"android":void 0},WebviewSdkKnownError:function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;return oe()(this,n),(i=t.call(this,"Webview-SDK:"+e)).type="WebviewSdkKnownError",i}return ae()(n)}(n.n(Bn)()(Error)),base64ToUint8ClampedArray:function(e){for(var t=window.atob(e),n=t.length,i=new Uint8ClampedArray(n),o=0;o<n;o++)i[o]=t.charCodeAt(o);return i},uint8ClampedArrayToBase64:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return window.btoa(t)},transformUrl:P?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e.startsWith("//")&&(e="https:".concat(e)),/(wdfile|hyfile):/i.test(e))return e.replace(/(wdfile|hyfile):\/\//i,"/miniprogram/preview/");if(/(https?|file):/i.test(e)||/^\s*data:image/.test(e))return e;if(e.startsWith("/")){e=e.substr(1);var t=window.__path__.split("/").slice(0,-1);t.length?t.forEach((function(){e="../".concat(e)})):e="./".concat(e)}return e}:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.__path__;if(!/(https?|file|wdfile|hyfile):/i.test(t)&&!/^\s*data:image/.test(t)){if("/"===t.substring(0,1))return t.startsWith("//")?"https:"+t:t.substr(1);if(0===t.indexOf("./"))return e(t.substr(2),n);var i,o,r=t.split("/");for(i=0,o=r.length;i<o&&".."===r[i];i++);r.splice(0,i);var a=n.length>0?n.split("/"):[];return a.splice(a.length-i-1,i+1),a.concat(r).join("/")}return t},toArray:function(e){if(A()(e)){for(var t=Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return t}return Tn()(e)}};function jn(){throw new Error("setTimeout has not been defined")}function Vn(){throw new Error("clearTimeout has not been defined")}function qn(e){if($n===setTimeout)return setTimeout(e,0);if(($n===jn||!$n)&&setTimeout)return $n=setTimeout,setTimeout(e,0);try{return setTimeout(e,0)}catch(t){return $n.call(this,e,0)}}!function(){try{$n="function"==typeof setTimeout?setTimeout:jn}catch(e){$n=jn}try{Fn="function"==typeof clearTimeout?clearTimeout:Vn}catch(e){Fn=Vn}}();var Hn,Un=[],Wn=!1,zn=-1;function Gn(){Wn&&Hn&&(Wn=!1,Hn.length?Un=Hn.concat(Un):zn=-1,Un.length&&Yn())}function Yn(){if(!Wn){var e=qn(Gn);Wn=!0;for(var t=Un.length;t;){for(Hn=Un,Un=[];++zn<t;)Hn&&Hn[zn].run();zn=-1,t=Un.length}Hn=null,Wn=!1,function(e){if(Fn===clearTimeout)return clearTimeout(e);if((Fn===Vn||!Fn)&&clearTimeout)return Fn=clearTimeout,clearTimeout(e);try{clearTimeout(e)}catch(t){return Fn.call(this,e)}}(e)}}function Kn(e,t){var n,i="function"==typeof e;if(Un.push({run:function(){if(i)try{e.call(t)}catch(e){console.log(e,t,"nextTick")}else n(t)}}),1!==Un.length||Wn||qn(Yn),!i&&void 0!==d.a)return new d.a((function(e){n=e}))}var Xn=navigator.userAgent.match("iPhone"),Zn=window.innerWidth||window.screen&&window.screen.availWidth||375,Jn=window.devicePixelRatio||2,Qn=function(e){return 0===(e=(e=e/750*Zn)<0?0-Math.floor(Math.abs(e)):Math.floor(e+1e-4))?1!==Jn&&Xn?.5:1:e},ei=/%%\?[+-]?\d+(\.\d+)?rpx\?%%/g,ti=/(:|\s|\()[+-]?\d+(\.\d+)?rpx/g;function ni(e){return"number"==typeof e?e+"px":e}function ii(e){return e+"deg"}var oi={rpxToPxNum:Qn,transformRpx:function(e,t){if(n=e,"[object String]"!==Object.prototype.toString.call(n))return e;var n,i=t?e.match(ti):e.match(ei);return i&&i.forEach((function(n){var i=function(e){for(var t=0,n=1,i=!1,o=!1,r=0;r<e.length;++r){var a=e[r];a>="0"&&a<="9"?i?t+=(a-"0")*(n*=.1):t=10*t+(a-"0"):"."===a?i=!0:"-"===a&&(o=!0)}return o&&(t=-t),Qn(t)}(n),o=(t?n[0]:"")+i+"px";e=e.replace(n,o)})),e},nextTick:function(e,t){setTimeout((function(){return Kn(e,t)}),0)},animationToStyle:function(e){var t=e.animates,n=e.option,i=void 0===n?{}:n,o=i.transformOrigin,a=i.transition;if(void 0===a||void 0===t)return{transformOrigin:"",transform:"",transition:""};var s=t.filter((function(e){return"style"!==e.type})).map((function(e){var t=e.type,n=e.args;switch(t){case"matrix":return"matrix("+n.join(",")+")";case"matrix3d":return"matrix3d("+n.join(",")+")";case"rotate":return"rotate("+(n=n.map(ii))[0]+")";case"rotate3d":return n[3]=ii(n[3]),"rotate3d("+n.join(",")+")";case"rotateX":return"rotateX("+(n=n.map(ii))[0]+")";case"rotateY":return"rotateY("+(n=n.map(ii))[0]+")";case"rotateZ":return"rotateZ("+(n=n.map(ii))[0]+")";case"scale":return"scale("+n.join(",")+")";case"scale3d":return"scale3d("+n.join(",")+")";case"scaleX":return"scaleX("+n[0]+")";case"scaleY":return"scaleY("+n[0]+")";case"scaleZ":return"scaleZ("+n[0]+")";case"translate":return"translate("+(n=n.map(ni)).join(",")+")";case"translate3d":return"translate3d("+(n=n.map(ni)).join(",")+")";case"translateX":return"translateX("+(n=n.map(ni))[0]+")";case"translateY":return"translateY("+(n=n.map(ni))[0]+")";case"translateZ":return"translateZ("+(n=n.map(ni))[0]+")";case"skew":return"skew("+(n=n.map(ii)).join(",")+")";case"skewX":return"skewX("+(n=n.map(ii))[0]+")";case"skewY":return"skewY("+(n=n.map(ii))[0]+")";default:return""}})).join(" "),c=t.filter((function(e){return"style"===e.type})).reduce((function(e,t){return e[t.args[0]]=t.args[1],e}),{});return{style:c,transformOrigin:o,transform:s,transitionProperty:["transform"].concat(r()(E()(c))).join(","),transition:a.duration+"ms "+a.timingFunction+" "+a.delay+"ms"}},getRealRoute:function e(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===o.indexOf("/"))return o.substr(1);if(0===o.indexOf("./"))return e(i,o.substr(2));var r=o.split("/");for(t=0,n=r.length;t<n&&".."===r[t];t++);r.splice(0,t);var a=i.length>0?i.split("/"):[];return a.splice(a.length-t-1,t+1),a.concat(r).join("/")}},ri=n(30),ai=n.n(ri),si=n(48),ci=n.n(si);function li(e){e?(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),this._maxListeners=void 0!==e.maxListeners?e.maxListeners:20,e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener)):this._maxListeners=20}function ui(){this._events={},this._conf&&li.call(this,this._conf)}function di(e,t){console.warn("[Event] ".concat(e," listeners of event ").concat(t," have been added, possibly causing memory leak."))}var hi=A.a?A.a:function(e){return"[object Array]"===Object.prototype.toString.call(e)};function pi(e){this._events={},this._newListener=!1,this._removeListener=!1,li.call(this,e)}pi.prototype.delimiter=".",pi.prototype.setMaxListeners=function(e){void 0!==e&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},pi.prototype.event="",pi.prototype.once=function(e,t){return this._once(e,t,!1)},pi.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},pi.prototype._once=function(e,t,n){return this._many(e,1,t,n),this},pi.prototype.many=function(e,t,n){return this._many(e,t,n,!1)},pi.prototype.prependMany=function(e,t,n){return this._many(e,t,n,!0)},pi.prototype._many=function(e,t,n,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function r(){return 0==--t&&o.off(e,r),n.apply(this,arguments)}return r._origin=n,this._on(e,r,i),o},pi.prototype.emit=function(e){if(this._events||ui.call(this),"newListener"===e&&!this._newListener&&!this._events.newListener)return!1;for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var r=i.slice(1);if(this._all&&this._all.length){t=this._all.slice();for(var a=0;a<t.length;a++)switch(this.event=e,n){case 1:t[a].call(this,e);break;case 2:t[a].call(this,e,arguments[1]);break;case 3:t[a].call(this,e,arguments[1],arguments[2]);break;default:t[a].apply(this,i)}}if("function"==typeof(t=this._events[e])){switch(this.event=e,n){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:t.apply(this,r)}return!0}if(t&&(t=t.slice()),t&&t.length){for(var s=0;s<t.length;s++)switch(this.event=e,n){case 1:t[s].call(this);break;case 2:t[s].call(this,arguments[1]);break;case 3:t[s].call(this,arguments[1],arguments[2]);break;default:t[s].apply(this,r)}return!0}if(!this._all&&"error"===e)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},pi.prototype.emitAsync=function(e){if(this._events||ui.call(this),"newListener"===e&&!this._newListener&&!this._events.newListener)return d.a.resolve([!1]);for(var t,n=[],i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var a=o.slice(1);if(this._all)for(var s=0;s<this._all.length;s++)switch(this.event=e,i){case 1:n.push(this._all[s].call(this,e));break;case 2:n.push(this._all[s].call(this,e,arguments[1]));break;case 3:n.push(this._all[s].call(this,e,arguments[1],arguments[2]));break;default:n.push(this._all[s].apply(this,o))}if("function"==typeof(t=this._events[e]))switch(this.event=e,i){case 1:n.push(t.call(this));break;case 2:n.push(t.call(this,arguments[1]));break;case 3:n.push(t.call(this,arguments[1],arguments[2]));break;default:n.push(t.apply(this,a))}else if(t&&t.length){t=t.slice();for(var c=0;c<t.length;c++)switch(this.event=e,i){case 1:n.push(t[c].call(this));break;case 2:n.push(t[c].call(this,arguments[1]));break;case 3:n.push(t[c].call(this,arguments[1],arguments[2]));break;default:n.push(t[c].apply(this,a))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?d.a.reject(arguments[1]):d.a.reject(new Error("Uncaught, unspecified 'error' event."));return d.a.all(n)},pi.prototype.on=function(e,t){return this._on(e,t,!1)},pi.prototype.prependListener=function(e,t){return this._on(e,t,!0)},pi.prototype.onAny=function(e){return this._onAny(e,!1)},pi.prototype.prependAny=function(e){return this._onAny(e,!0)},pi.prototype.addListener=pi.prototype.on,pi.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},pi.prototype._on=function(e,t,n){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");return this._events||ui.call(this),this._newListener&&this.emit("newListener",e,t),this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),n?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,di.call(this,this._events[e].length,e))):this._events[e]=t,this},pi.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n});for(var o=0;o<i.length;o++){if(n=i[o]._listeners,hi(n)){for(var r=-1,a=0,s=n.length;a<s;a++)if(n[a]===t||n[a].listener&&n[a].listener===t||n[a]._origin&&n[a]._origin===t){r=a;break}if(r<0)continue;return this._events[e].splice(r,1),0===n.length&&delete this._events[e],this._removeListener&&this.emit("removeListener",e,t),this}(n===t||n.listener&&n.listener===t||n._origin&&n._origin===t)&&(delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return function e(t){if(void 0!==t){var n=E()(t);for(var i in n){var o=n[i],r=t[o];r instanceof Function||"object"!==Ce()(r)||null===r||(E()(r).length>0&&e(t[o]),0===E()(r).length&&delete t[o])}}}(this.listenerTree),this},pi.prototype.offAny=function(e){var t=this._all,n=this._all.length;if(e&&this._all&&this._all.length>0){for(var i=0;i<n;i++)if(e===t[i])return t.splice(i,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(this._removeListener)for(var o=0;o<n;o++)this.emit("removeListenerAny",t[o]);this._all=[]}return this},pi.prototype.removeListener=pi.prototype.off,pi.prototype.removeAllListeners=function(e){return void 0===e?!this._events||ui.call(this):this._events&&delete this._events[e],this},pi.prototype.listeners=function(e){return this._events||ui.call(this),this._events[e]||(this._events[e]=[]),hi(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},pi.prototype.eventNames=function(){return E()(this._events)},pi.prototype.listenerCount=function(e){return this.listeners(e).length},pi.prototype.listenersAny=function(){return this._all?this._all:[]};var fi=new pi({maxListeners:20,newListener:!1}),vi=new pi({maxListeners:20,newListener:!1}),mi={};function _i(e){if(e=e[0].toUpperCase()+e.slice(1),!mi[e]){var t=new b.a;mi[e]={getGlobalListeners:function(){return fi.listeners(e)},getInternalListeners:function(){return vi.listeners(e)},emit:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];vi.emit.apply(vi,[e].concat(n)),fi.emit.apply(fi,[e].concat(n))},emitGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];fi.emit.apply(fi,[e].concat(n))},emitInternal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];vi.emit.apply(vi,[e].concat(n))},internalOnMethod:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"==typeof t&&(n.prepend?n.once?vi.prependOnceListener(e,t):vi.prependListener(e,t):n.once?vi.once(e,t):vi.on(e,t))},internalOffMethod:function(t){"function"==typeof t&&vi.off(e,t)},onMethod:function(n){var i,o,r=(i=e,"function"!=typeof(o=n)?(console.error("on".concat(i," should accept a function instead of ").concat(Ce()(o))),null):__errorTracer__.surroundThirdByTryCatch(o,"at api on".concat(i," callback function")));if(r){if(t.has(n)){var a=t.get(n);a.push(r),t.set(n,a)}else t.set(n,[r]);fi.on(e,r)}},offMethod:function(n){var i,o;i=e,(o=n)&&"function"!=typeof o&&(console.error("off".concat(i," should accept a function instead of ").concat(Ce()(o))),1)||(n?t.has(n)&&(t.get(n).forEach((function(t){return fi.off(e,t)})),t.delete(n)):(t=new b.a,fi.removeAllListeners(e)))}}}return mi[e]}var gi=function(){try{var e=(window.__fcjs_systemInfo||{}).runtimeSDKVersion;if(!e){var t=(navigator&&navigator.userAgent||"").match(/runtimeSdkVersion\/([^)]+)/i)||[];return t.length&&t[1]?t[1]:""}return e}catch(e){return""}}();function bi(){return!!M(gi,"2.37.7")&&(0!==gi.indexOf("2.38.0")||B(gi,"2.38.0-alpha20220730v01"))}var yi=M(gi,"2.34.1"),wi=B(gi,"2.38.0-alpha20220716v01")&&Boolean(!window.isWebviewGame),xi=bi(),Ai=T?bi():!!B(gi,"2.37.10-alpha20220824v01")||0===gi.indexOf("2.38.0")&&B(gi,"2.38.0-alpha20220825v01");Boolean(window.__fcjs_isSupportCanvasObject),Ci=z(),T&&!M(Ci,"10.0.0")||k&&M(Ci,"5.2.0");var Ci,Ei=B(gi,"2.39.0-alpha20221111v07"),ki=!(!T||!B(gi,"2.39.2-alpha20230105v03"))||!(!I||!M(gi,"1.3.5")),Ti=B(gi,"2.42.0");function Ii(){return window.isSupportFinclipTongceng||{}}function Ni(e){var t={insert:"showNativeView",remove:"hideNativeView",update:"updateNativeView"},n=window.__fcjs_liveComponetUseNative;return n&&(t.insert="show"+e,t.remove="remove"+e,t.update="update"+e),{eventName:t,useComponet:n}}var Pi=k?gi.startsWith("2.40.0")?B(gi,"2.40.0-beta20230130v01"):M(gi,"2.40.0"):0===gi.indexOf("2.39")?B(gi,"2.39.4-alpha20230117v01"):0===gi.indexOf("2.40.0")?B(gi,"2.40.0-alpha20220117v08"):M(gi,"2.40.0");!k||(gi.startsWith("2.40.0")?B(gi,"2.40.0-alpha20230224v02"):M(gi,"2.39.9"));var Oi=!T||M(gi,"2.41.7"),Li=(/(finclip-tv)/i.test(navigator&&navigator.userAgent||""),n(310)),Ri=n.n(Li);function Mi(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Mi(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function $i(){FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]})}function Fi(){FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]})}var Di=["log","warn","error","info","debug"],ji=null;function Vi(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Vi(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function Hi(e){Wi?Ui[e]=so[e]:Ui.__defineGetter__(e,(function(){return function(){try{return so[e].apply(this,arguments)}catch(e){!function(e,t){if("[object Error]"===Object.prototype.toString.apply(e)){if("WebviewSdkKnownError"===e.type)throw e;Reporter.errorReport({key:"webviewSDKScriptError",error:e,extend:t})}}(e)}}}))}!window.isIDE&&wi?Di.forEach((function(e){var t=console[e];console[e]=function(){var n=function(e){try{return(e=Array.prototype.slice.call(e)).map(W)}catch(e){return console.warn("[console] This object can not be logged",e)}}(arguments);t.apply(console,arguments),Mn.publish("consoleForwardLogs",{method:e,log:n})}})):(Di.forEach((function(e){Mn.subscribe(e,(function(t){var n=t.log;console[e].apply(console,n)}))})),Mn.subscribe("initLogs",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.init,n=e.logs,i=e.theme,o=e.updateLocalStorage,r=e.removeLocalStorage,a=e.clearLocalStorage;t&&(ji||(ji=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ri.a(Bi(Bi({},e),{},{onClearLog:function(){FinChatJSBridge.publish("onViewLogEvent",{method:"clearLogs"})},onStorageAdd:function(e){var t=e.key,n=e.value;FinChatJSBridge.publish("onViewLogEvent",{method:"setStorage",key:t,value:n})},onStorageDel:function(e){var t=e.key;FinChatJSBridge.publish("onViewLogEvent",{method:"removeStorage",key:t})},onStorageEdit:function(e){var t=e.key,n=e.value;FinChatJSBridge.publish("onViewLogEvent",{method:"setStorage",key:t,value:n})}}));t.setSwitchPosition(5,50),window.vConsole=t,t.removePlugin("network"),Mn.subscribe("clearLogs",(function(){console.clear()}));var n=document.querySelector("#__vconsole .vc-content");return n&&n.addEventListener("touchstart",Fi),n&&n.addEventListener("touchend",$i),t}({theme:i}),n.forEach((function(e){var t=e.method,n=e.log;console[t].apply(console,n)})))),ji&&(i&&ji.setOption({theme:i}),a&&localStorage.clear(),o&&E()(o).forEach((function(e){var t=o[e];"string"!=typeof t&&(t=ce()(t)),localStorage.setItem(e,t)})),r&&E()(r).forEach((function(e){localStorage.removeItem(e)})))})));var Ui={},Wi="devtools"===Dn.getPlatform(),zi=function(e,t){Mn.publish("INVOKE_METHOD",{name:e,args:t})},Gi=_i("AppEnterBackground"),Yi=Gi.internalOnMethod,Ki=Gi.internalOffMethod;Mn.subscribe("pageonhide",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Gi.emit(e)}));var Xi=_i("AppEnterForeground"),Zi=Xi.internalOnMethod,Ji=Xi.internalOffMethod;Mn.subscribe("pageonshow",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Xi.emit(e)}));var Qi,eo,to,no,io=_i("PageResizeChange"),oo=io.internalOnMethod,ro=io.internalOffMethod;function ao(){var e,t,n=Qi||window.innerWidth||window.screen&&window.screen.width||375,i=eo||window.innerHeight||window.screen&&window.screen.height||375;switch(window.orientation){case 90:case-90:e=Math.max(n,i),t=Math.min(n,i);break;default:e=Math.min(n,i),t=Math.max(n,i)}to=e,no=t}Mn.subscribe("pageResizeChange",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};io.emit(e)}));var so=qi(qi({},oi),{},{invoke:Mn.invoke,on:Mn.on,publish:Mn.publish,getPlatform:Dn.getPlatform,onAppEnterForeground:Zi,offAppEnterForeground:Ji,onAppEnterBackground:Yi,offAppEnterBackground:Ki,reportIDKey:function(e,t){console.warn("reportIDKey has been removed wd")},reportKeyValue:function(e,t){console.warn("reportKeyValue has been removed from wd")},initReady:function(){Mn.invokeMethod("initReady")},redirectTo:function(e){zi("redirectTo",e)},navigateTo:function(e){zi("navigateTo",e)},navigateBack:function(e){zi("navigateBack",e)},getSystemInfo:function(e){Mn.invokeMethod("getSystemInfo",e)},reLaunch:function(e){zi("reLaunch",e)},switchTab:function(e){zi("switchTab",e)},clearStorage:function(){zi("clearStorage",{})},showKeyboard:function(e){Mn.invokeMethod("showKeyboard",e)},hideKeyboard:function(e){Mn.invokeMethod("hideKeyboard",e)},insertMap:function(e){Mn.invokeMethod("insertMap",e)},removeMap:function(e){Mn.invokeMethod("removeMap",e)},updateMapCovers:function(e){Mn.invokeMethod("updateMapCovers",e)},insertVideoPlayer:function(e){Mn.invokeMethod("insertVideoPlayer",e)},removeVideoPlayer:function(e){Mn.invokeMethod("removeVideoPlayer",e)},setBackgroundColor:function(e){zi("setBackgroundColor",e)},setBackgroundTextStyle:function(e){zi("setBackgroundTextStyle",e)},pageScrollTo:function(e){zi("pageScrollTo",e)},onAppDataChange:function(e){Mn.subscribe("appDataChange",(function(t){e(t)}))},onPageResizeChange:oo,offPageResizeChange:ro,onPageScrollTo:function(e){Mn.subscribe("pageScrollTo",(function(t){e(t)}))},publishPageEvent:function(e,t,n){Mn.publish("PAGE_EVENT",{eventName:e,data:t,nodeId:n})},publishCanvasEvent:function(e,t){Mn.publish("CANVAS_EVENT_V2",{eventName:e,data:t})},publishInputInfo:function(e,t){Mn.publish("INPUT_INFO",{eventName:e,data:t})},setNavigationBarTitle:function(e){zi("setNavigationBarTitle",e)},showNavigationBarLoading:function(e){zi("showNavigationBarLoading",e)},hideNavigationBarLoading:function(e){zi("hideNavigationBarLoading",e)},setNavigationBarColor:function(e){zi("setNavigationBarColor",e)},callMethodFromWxs:function(e){Mn.publish("vdCallComponentMethodForWxs",e)},getInitialRenderingCache:function(){var e=__wxConfig__,t=__path__,n=e.windows.pages[t];(e.window.initialRenderingCache||n&&n.initialRenderingCache)&&Mn.invoke("getInitialRenderingCache",{path:t})},onInitialRenderingCacheReady:function(e){Mn.onMethod("onInitialRenderingCacheReady",e)},saveInitialRenderingCache:function(e){Mn.invoke("saveInitialRenderingCache",{data:e,path:__path__})},generateFormId:function(){var e=v()();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})).replace(/-/g,"")},navigateToMiniProgram:function(e){zi("navigateToMiniProgram",e)},navigateBackMiniProgram:function(e){zi("navigateBackMiniProgram",e)},exitMiniProgram:function(e){zi("exitMiniProgram",e)},getCorrectSize:function(){return no&&no||ao(),{width:to,height:no}},updateSize:ao,setSystemSize:function(e,t){Qi=e,eo=t}});for(var co in so)Hi(co);window.wd=Ui,window.wx=Ui;var lo=FinChatJSBridge.publish.bind(FinChatJSBridge),uo=FinChatJSBridge.subscribe.bind(FinChatJSBridge);window.__webViewSDK__={wx:window.wx,ft:window.ft,_virtualDOMTunnel:{vdSync:function(e,t){lo("vdSync",e,t)},vdSyncBatch:function(e,t){lo("vdSyncBatch",e,t)},onVdSync:function(e){uo("vdSync",(function(t){e(t)}))},onVdSyncBatch:function(e){uo("vdSyncBatch",(function(t){e(t)}))},predefinedColor:G}};var ho={WX_EVENT:11,REQUEST_SAVE:12,COMPONENT_DEF:21,SAVE_STATE:22,RESTORE_STATE:23,FLOW_INITIAL_RENDERING_CACHE:24,FLOW_CLEAR_INITIAL_RENDERING_CACHE:25,FLOW_SET_SUBPACKAGE_LOADED:26,SET_DATA_CALLBACK:32,FLOW_SET_DATA:33,FLUSH_BLOCKED:43,FLOW_GROUP:41,FLOW_GROUP_END:42,FLOW_DEPTH:2,FLOW_INITIAL_CREATION:3,FLOW_UPDATE:6,FLOW_DATA_OBSERVER:8,FLOW_APPLY_PROPERTY:4,FLOW_MINIPULATE_CHILD:7,FLOW_CREATE_NODE:5,FLOW_REPEAT:9,FLOW_VIEW_INFO:63,REQUEST_TAB:51,COMPONENT_DEF_TAB:52,FLOW_CREATE_TAB:53,DESTROY_TAB:54,REQUEST_BROADCAST_VIEW_ID:61,RESPONSE_BROADCAST_VIEW_ID:62,BANNING_MAP:90,PERFORMANCE_DATA:91,CALL_METHOD_FROM_WXS:50,RESPONSE_VIEW_INFO:64,MODEL_VALUE_CHANGE:65,FLOW_SET_NODE_ANIMATION_INFO:100,ANIMATION_TRANSITION_END:101,FLOW_CLEAR_NODE_ANIMATION_INFO:102,CLEAR_ANIMATION_COMPLETE:103,FLOW_SET_NODE_NEXT_ANIMATION_INFO:104,LOAD_COMPONENT_DEF:110,FLOW_WAIT_COMPONENT:112,FLOW_REPLACE_PLACEHOLDER:113,FLOW_COMPONENT_DEF_ADD:120,FLOW_INJECT_SUBPACKAGE:121,FLOW_INJECT_COMPONENT:122,FLOW_HOT_UPDATE:900,FLOW_HOT_UPDATE_CHILD:901,FLOW_HOT_UPDATE_RESET:902,UPDATE_COMPONENT_DEF:903,UPDATE_PERFORMANCE_STAT:800,ENABLE_UPDATE_PERFORMANCE_STAT:801,DISABLE_UPDATE_PERFORMANCE_STAT:802},po={},fo={},vo={},mo=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},_o=function(e,t){var n={left:e.left<t.left?t.left:e.left,top:e.top<t.top?t.top:e.top,right:e.right>t.right?t.right:e.right,bottom:e.bottom>t.bottom?t.bottom:e.bottom,width:0,height:0};return n.right>n.left?n.width=n.right-n.left:n.right=n.left=n.bottom=n.top=0,n.bottom>n.top?n.height=n.bottom-n.top:n.right=n.left=n.bottom=n.top=0,n},go=function(e){return{left:(e=e||{}).left||0,top:e.top||0,right:e.right||0,bottom:e.bottom||0}},bo=function(e){var t=vo[e];delete vo[e];for(var n=0;n<t;n++){var i=e+"#"+n,o=fo[i];if(!o)break;delete po[i],o.disconnect(),delete fo[i]}},yo=function(e,t,n,i,o){var r=null;if((i=i||{}).observeAll)r=e.querySelectorAll(t);else{var a=e.querySelector(t);r=a?[a]:[]}r.length||console.warn('For developer:Node "'+t+'" is not found. Intersection observer will not trigger.');var s=[];return n.forEach((function(t){var n=t.selector,i=t.margins,o=null==n?null:e.querySelector(n);o||null==n?s.push({node:o,margins:go(i)}):console.warn('For developer:Node "'+n+'" is not found. The relative node for intersection observer will be ignored.')})),s.length||console.warn("For developer:Intersection observer will be ignored because no relative nodes are found."),function(e,t,n,i,o,r){var a=Math.floor(4294967296*(1+Math.random())).toString(16).slice(1);if(!e.length||!t.length)return a;var s=e.length;return vo[a]=s,e.forEach((function(e,c){var l=a+"#"+c,u={targetNode:e,relatives:t,thresholds:n,currentRatio:i,minWidthOrHeight:o,cb:r},d=ftparser.Observer.create((function(e){"attached"===e.status?(po[l]=u,requestAnimationFrame((function(){wo(u)}))):"detached"===e.status&&(delete po[l],d.disconnect(),delete fo[l],--s||delete vo[a])}));fo[l]=d,d.observe(e,{attachStatus:!0}),ftparser.Element.isAttached(e)&&(po[l]=u,requestAnimationFrame((function(){wo(u)})))})),a}(r,s,i.thresholds||[0],i.initialRatio||0,i.minWidthOrHeight||0,o)},wo=function(e){for(var t=e.targetNode,n=e.relatives,i=e.thresholds,o=e.minWidthOrHeight,r=e.cb,a=e.currentRatio,s=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l=null,u=0;u<n.length;u++){var d=n[u],h=d.node,p=d.margins,f=h?h.$$.getBoundingClientRect():{left:0,top:0,right:s,bottom:c,width:s,height:c},m={left:f.left-p.left,top:f.top-p.top,right:f.right+p.right,bottom:f.bottom+p.bottom};l=l?_o(l,m):m}var _=l,g=mo(t.$$.getBoundingClientRect());g.right-g.left<o&&(g.right=g.left+o,g.width=o),g.bottom-g.top<o&&(g.bottom=g.top+o,g.height=o);var b=_o(_,g),y=g.width*g.height,w=y?b.width*b.height/y:0;e.currentRatio=w;var x=void 0===a;w!==a&&i.forEach((function(e){if(x)return!1;(w<=e&&a>=e||w>=e&&a<=e)&&(x=!0)})),x&&r.call(t,{id:t.id,dataset:t.dataset,time:v()(),boundingClientRect:g,intersectionRatio:w,intersectionRect:mo(b),relativeRect:_})},xo=!1,Ao=function(){xo||(xo=!0,requestAnimationFrame((function(){for(var e in xo=!1,po)wo(po[e])})))};"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("pageReRender",(function(){Ao()})),window.addEventListener("scroll",(function(){Ao()}),{capture:!0,passive:!0}));var Co=1,Eo={},So=function(e,t){var n=function(e){if("object"!==Ce()(e))return"";var t="";return["minWidth","maxWidth","width","minHeight","maxHeight","height"].forEach((function(n){if(void 0!==e[n]){var i=Number(e[n]);i>=0||(i="");var o=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));t&&(t+=" and "),t+="(".concat(o,": ").concat(i,"px)")}})),["orientation"].forEach((function(n){if(void 0!==e[n]){var i=/^[-_a-z0-9]+$/i.test(e[n])?e[n]:"",o=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));t&&(t+=" and "),t+="(".concat(o,": ").concat(i,")")}})),t}(e),i=window.matchMedia(n),o=Co++,r=function(e){t({matches:e.matches})};return Eo[o]={observer:i,listener:r},i.addListener(r),t({matches:i.matches}),o},ko=function(e){var t=Eo[e],n=t.observer,i=t.listener;n.removeListener(i),delete Eo[e]},To=function(e,t){var n=e.$$,i={};if(t.id&&(i.id=e.id||""),t.dataset&&(i.dataset=e.dataset||{}),t.mark&&(i.mark=e.collectMarks()||{}),t.rect||t.size){var o=n.getBoundingClientRect();t.rect&&(i.left=o.left,i.right=o.right,i.top=o.top,i.bottom=o.bottom),t.size&&(i.width=o.width,i.height=o.height)}if(t.properties&&t.properties.forEach((function(t){var n=t.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}));ftparser.Component.hasPublicProperty(e,n)&&(i[n]=e[n])})),t.scrollOffset)if(e.hasBehavior("wx-positioning-container")){var r=e.getScrollPosition();i.scrollLeft=r.scrollLeft,i.scrollTop=r.scrollTop,i.scrollWidth=r.scrollWidth,i.scrollHeight=r.scrollHeight}else i.scrollLeft=0,i.scrollTop=0,i.scrollWidth=0,i.scrollHeight=0;if(t.computedStyle&&t.computedStyle.length)for(var a=window.getComputedStyle(n),s=0,c=t.computedStyle.length;s<c;s++){var l=t.computedStyle[s];l&&void 0!==a[l]&&(i[l]=a[l])}if(t.context&&(i.domId=e.id,i.contextIs=e.is,i.contextId="function"==typeof e.getContextId&&e.getContextId(),i.nodeCanvasId=e._canvasId||"",i.nodeCanvasNative=e.native||"",i.nodeCanvasType=(e.type||"2d").toLowerCase()),t.node){if(i.nodeIs=e.is,i.nodeId="function"==typeof e.getContextId&&e.getContextId(),i.nodeCanvasId=e._canvasId||"","wx-canvas"===e.is&&!t.size){var u=n.getBoundingClientRect();i.width=u.width,i.height=u.height,i.from="node"}i.nodeCanvasNative=e.native||"",i.nodeCanvasType=(e.type||"2d").toLowerCase()}return i},Io={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},No={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Po=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Oo={CSS:{},springs:{}};function Lo(e,t,n){return Math.min(Math.max(e,t),n)}function Ro(e,t){return e.indexOf(t)>-1}function Mo(e,t){return e.apply(null,t)}var Bo={arr:function(e){return Array.isArray(e)},obj:function(e){return Ro(Object.prototype.toString.call(e),"Object")},pth:function(e){return Bo.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Bo.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return Bo.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Bo.hex(e)||Bo.rgb(e)||Bo.hsl(e)},key:function(e){return!Io.hasOwnProperty(e)&&!No.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function $o(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Fo(e,t){var n=$o(e),i=Lo(Bo.und(n[0])?1:n[0],.1,100),o=Lo(Bo.und(n[1])?100:n[1],.1,100),r=Lo(Bo.und(n[2])?10:n[2],.1,100),a=Lo(Bo.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/i),c=r/(2*Math.sqrt(o*i)),l=c<1?s*Math.sqrt(1-c*c):0,u=c<1?(c*s-a)/l:-a+s;function d(e){var n=t?t*e/1e3:e;return n=c<1?Math.exp(-n*c*s)*(1*Math.cos(l*n)+u*Math.sin(l*n)):(1+u*n)*Math.exp(-n*s),0===e||1===e?e:1-n}return t?d:function(){var t=Oo.springs[e];if(t)return t;for(var n=0,i=0;;)if(1===d(n+=1/6)){if(++i>=16)break}else i=0;var o=n*(1/6)*1e3;return Oo.springs[e]=o,o}}function Do(e){return void 0===e&&(e=10),function(t){return Math.ceil(Lo(t,1e-6,1)*e)*(1/e)}}var jo,Vo,qo=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function n(e){return 3*e}function i(i,o,r){return((e(o,r)*i+t(o,r))*i+n(o))*i}function o(i,o,r){return 3*e(o,r)*i*i+2*t(o,r)*i+n(o)}return function(e,t,n,r){if(0<=e&&e<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(e!==t||n!==r)for(var s=0;s<11;++s)a[s]=i(.1*s,e,n);return function(o){return e===t&&n===r||0===o||1===o?o:i(c(o),t,r)}}function c(t){for(var r=0,s=1;10!==s&&a[s]<=t;++s)r+=.1;--s;var c=r+(t-a[s])/(a[s+1]-a[s])*.1,l=o(c,e,n);return l>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var s=o(t,n,r);if(0===s)return t;t-=(i(t,n,r)-e)/s}return t}(t,c,e,n):0===l?c:function(e,t,n,o,r){var a,s,c=0;do{(a=i(s=t+(n-t)/2,o,r)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++c<10);return s}(t,r,r+.1,e,n)}}}(),Ho=(jo={linear:function(){return function(e){return e}}},Vo={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=Lo(e,1,10),i=Lo(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-i/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){Vo[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(Vo).forEach((function(e){var t=Vo[e];jo["easeIn"+e]=t,jo["easeOut"+e]=function(e,n){return function(i){return 1-t(e,n)(1-i)}},jo["easeInOut"+e]=function(e,n){return function(i){return i<.5?t(e,n)(2*i)/2:1-t(e,n)(-2*i+2)/2}},jo["easeOutIn"+e]=function(e,n){return function(i){return i<.5?(1-t(e,n)(1-2*i))/2:(t(e,n)(2*i-1)+1)/2}}})),jo);function Uo(e,t){if(Bo.fnc(e))return e;var n=e.split("(")[0],i=Ho[n],o=$o(e);switch(n){case"spring":return Fo(e,t);case"cubicBezier":return Mo(qo,o);case"steps":return Mo(Do,o);default:return Mo(i,o)}}function Wo(e){try{return document.querySelectorAll(e)}catch(e){return}}function zo(e,t){for(var n=e.length,i=arguments.length>=2?arguments[1]:void 0,o=[],r=0;r<n;r++)if(r in e){var a=e[r];t.call(i,a,r,e)&&o.push(a)}return o}function Go(e){return e.reduce((function(e,t){return e.concat(Bo.arr(t)?Go(t):t)}),[])}function Yo(e){return Bo.arr(e)?e:(Bo.str(e)&&(e=Wo(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Ko(e,t){return e.some((function(e){return e===t}))}function Xo(e){var t={};for(var n in e)t[n]=e[n];return t}function Zo(e,t){var n=Xo(e);for(var i in e)n[i]=t.hasOwnProperty(i)?t[i]:e[i];return n}function Jo(e,t){var n=Xo(e);for(var i in t)n[i]=Bo.und(e[i])?t[i]:e[i];return n}function Qo(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function er(e,t){return Bo.fnc(e)?e(t.target,t.id,t.total):e}function tr(e,t){return e.getAttribute(t)}function nr(e,t,n){if(Ko([n,"deg","rad","turn"],Qo(t)))return t;var i=Oo.CSS[t+n];if(!Bo.und(i))return i;var o=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(o),o.style.position="absolute",o.style.width=100+n;var a=100/o.offsetWidth;r.removeChild(o);var s=a*parseFloat(t);return Oo.CSS[t+n]=s,s}function ir(e,t,n){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return n?nr(e,o,n):o}}function or(e,t){return Bo.dom(e)&&!Bo.inp(e)&&(!Bo.nil(tr(e,t))||Bo.svg(e)&&e[t])?"attribute":Bo.dom(e)&&Ko(Po,t)?"transform":Bo.dom(e)&&"transform"!==t&&ir(e,t)?"css":null!=e[t]?"object":void 0}function rr(e){if(Bo.dom(e)){for(var t,n=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,o=new Map;t=i.exec(n);)o.set(t[1],t[2]);return o}}function ar(e,t,n,i){switch(or(e,t)){case"transform":return function(e,t,n,i){var o=Ro(t,"scale")?1:0+function(e){return Ro(e,"translate")||"perspective"===e?"px":Ro(e,"rotate")||Ro(e,"skew")?"deg":void 0}(t),r=rr(e).get(t)||o;return n&&(n.transforms.list.set(t,r),n.transforms.last=t),i?nr(e,r,i):r}(e,t,i,n);case"css":return ir(e,t,n);case"attribute":return tr(e,t);default:return e[t]||0}}function sr(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var i=Qo(e)||0,o=parseFloat(t),r=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+r+i;case"-":return o-r+i;case"*":return o*r+i}}function cr(e,t){if(Bo.col(e))return function(e){return Bo.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:Bo.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,i){return t+t+n+n+i+i})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):Bo.hsl(e)?function(e){var t,n,i,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(o[1],10)/360,a=parseInt(o[2],10)/100,s=parseInt(o[3],10)/100,c=o[4]||1;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=i=s;else{var u=s<.5?s*(1+a):s+a-s*a,d=2*s-u;t=l(d,u,r+1/3),n=l(d,u,r),i=l(d,u,r-1/3)}return"rgba("+255*t+","+255*n+","+255*i+","+c+")"}(e):void 0;var t,n}(e);if(/\s/g.test(e))return e;var n=Qo(e),i=n?e.substr(0,e.length-n.length):e;return t?i+t:i}function lr(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ur(e){for(var t,n=e.points,i=0,o=0;o<n.numberOfItems;o++){var r=n.getItem(o);o>0&&(i+=lr(t,r)),t=r}return i}function dr(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*tr(e,"r")}(e);case"rect":return function(e){return 2*tr(e,"width")+2*tr(e,"height")}(e);case"line":return function(e){return lr({x:tr(e,"x1"),y:tr(e,"y1")},{x:tr(e,"x2"),y:tr(e,"y2")})}(e);case"polyline":return ur(e);case"polygon":return function(e){var t=e.points;return ur(e)+lr(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function hr(e,t){var n=t||{},i=n.el||function(e){for(var t=e.parentNode;Bo.svg(t)&&Bo.svg(t.parentNode);)t=t.parentNode;return t}(e),o=i.getBoundingClientRect(),r=tr(i,"viewBox"),a=o.width,s=o.height,c=n.viewBox||(r?r.split(" "):[0,0,a,s]);return{el:i,viewBox:c,x:c[0]/1,y:c[1]/1,w:a,h:s,vW:c[2],vH:c[3]}}function pr(e,t,n){function i(n){void 0===n&&(n=0);var i=t+n>=1?t+n:0;return e.el.getPointAtLength(i)}var o=hr(e.el,e.svg),r=i(),a=i(-1),s=i(1),c=n?1:o.w/o.vW,l=n?1:o.h/o.vH;switch(e.property){case"x":return(r.x-o.x)*c;case"y":return(r.y-o.y)*l;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function fr(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=cr(Bo.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:Bo.str(e)||t?i.split(n):[]}}function vr(e){return zo(e?Go(Bo.arr(e)?e.map(Yo):Yo(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function mr(e){var t=vr(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:rr(e)}}}))}function _r(e,t){var n=Xo(t);if(/^spring/.test(n.easing)&&(n.duration=Fo(n.easing)),Bo.arr(e)){var i=e.length;2!==i||Bo.obj(e[0])?Bo.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}var o=Bo.arr(e)?e:[e];return o.map((function(e,n){var i=Bo.obj(e)&&!Bo.pth(e)?e:{value:e};return Bo.und(i.delay)&&(i.delay=n?0:t.delay),Bo.und(i.endDelay)&&(i.endDelay=n===o.length-1?t.endDelay:0),i})).map((function(e){return Jo(e,n)}))}var gr={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,i,o){if(i.list.set(t,n),t===i.last||o){var r="";i.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function br(e,t){mr(e).forEach((function(e){for(var n in t){var i=er(t[n],e),o=e.target,r=Qo(i),a=ar(o,n,r,e),s=sr(cr(i,r||Qo(a)),a),c=or(o,n);gr[c](o,n,s,e.transforms,!0)}}))}function yr(e,t){return zo(Go(e.map((function(e){return t.map((function(t){return function(e,t){var n=or(e.target,t.name);if(n){var i=function(e,t){var n;return e.tweens.map((function(i){var o=function(e,t){var n={};for(var i in e){var o=er(e[i],t);Bo.arr(o)&&1===(o=o.map((function(e){return er(e,t)}))).length&&(o=o[0]),n[i]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(i,t),r=o.value,a=Bo.arr(r)?r[1]:r,s=Qo(a),c=ar(t.target,e.name,s,t),l=n?n.to.original:c,u=Bo.arr(r)?r[0]:l,d=Qo(u)||Qo(c),h=s||d;return Bo.und(a)&&(a=l),o.from=fr(u,h),o.to=fr(sr(a,u),h),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Uo(o.easing,o.duration),o.isPath=Bo.pth(r),o.isPathTargetInsideSVG=o.isPath&&Bo.svg(t.target),o.isColor=Bo.col(o.from.original),o.isColor&&(o.round=1),n=o,o}))}(t,e),o=i[i.length-1];return{type:n,property:t.name,animatable:e,tweens:i,duration:o.end,delay:i[0].delay,endDelay:o.endDelay}}}(e,t)}))}))),(function(e){return!Bo.und(e)}))}function wr(e,t){var n=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map((function(e){return i(e)+e.duration}))):t.duration,o.delay=n?Math.min.apply(Math,e.map((function(e){return i(e)+e.delay}))):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map((function(e){return i(e)+e.duration-e.endDelay}))):t.endDelay,o}var xr=0,Ar=[],Cr=function(){var e;function t(n){for(var i=Ar.length,o=0;o<i;){var r=Ar[o];r.paused?(Ar.splice(o,1),i--):(r.tick(n),o++)}e=o>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Sr.suspendWhenDocumentHidden&&(Er()?e=cancelAnimationFrame(e):(Ar.forEach((function(e){return e._onDocumentVisibility()})),Cr()))})),function(){e||Er()&&Sr.suspendWhenDocumentHidden||!(Ar.length>0)||(e=requestAnimationFrame(t))}}();function Er(){return!!document&&document.hidden}function Sr(e){void 0===e&&(e={});var t,n=0,i=0,o=0,r=0,a=null;function s(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var c=function(e){var t=Zo(Io,e),n=Zo(No,e),i=function(e,t){var n=[],i=t.keyframes;for(var o in i&&(t=Jo(function(e){for(var t=zo(Go(e.map((function(e){return Object.keys(e)}))),(function(e){return Bo.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},i=function(i){var o=t[i];n[o]=e.map((function(e){var t={};for(var n in e)Bo.key(n)?n==o&&(t.value=e[n]):t[n]=e[n];return t}))},o=0;o<t.length;o++)i(o);return n}(i),t)),t)Bo.key(o)&&n.push({name:o,tweens:_r(t[o],e)});return n}(n,e),o=mr(e.targets),r=yr(o,i),a=wr(r,n),s=xr;return xr++,Jo(t,{id:s,children:[],animatables:o,animations:r,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);function l(){var e=c.direction;"alternate"!==e&&(c.direction="normal"!==e?"normal":"reverse"),c.reversed=!c.reversed,t.forEach((function(e){return e.reversed=c.reversed}))}function u(e){return c.reversed?c.duration-e:e}function d(){n=0,i=u(c.currentTime)*(1/Sr.speed)}function h(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,n=c.animations,i=n.length;t<i;){var o=n[t],r=o.animatable,a=o.tweens,s=a.length-1,l=a[s];s&&(l=zo(a,(function(t){return e<t.end}))[0]||l);for(var u=Lo(e-l.start-l.delay,0,l.duration)/l.duration,d=isNaN(u)?1:l.easing(u),h=l.to.strings,p=l.round,f=[],v=l.to.numbers.length,m=void 0,_=0;_<v;_++){var g=void 0,b=l.to.numbers[_],y=l.from.numbers[_]||0;g=l.isPath?pr(l.value,d*b,l.isPathTargetInsideSVG):y+d*(b-y),p&&(l.isColor&&_>2||(g=Math.round(g*p)/p)),f.push(g)}var w=h.length;if(w){m=h[0];for(var x=0;x<w;x++){h[x];var A=h[x+1],C=f[x];isNaN(C)||(m+=A?C+A:C+" ")}}else m=f[0];gr[o.type](r.target,o.property,m,r.transforms),o.currentValue=m,t++}}function f(e){c[e]&&!c.passThrough&&c[e](c)}function v(e){var d=c.duration,v=c.delay,m=d-c.endDelay,_=u(e);c.progress=Lo(_/d*100,0,100),c.reversePlayback=_<c.currentTime,t&&function(e){if(c.reversePlayback)for(var n=r;n--;)h(e,t[n]);else for(var i=0;i<r;i++)h(e,t[i])}(_),!c.began&&c.currentTime>0&&(c.began=!0,f("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,f("loopBegin")),_<=v&&0!==c.currentTime&&p(0),(_>=m&&c.currentTime!==d||!d)&&p(d),_>v&&_<m?(c.changeBegan||(c.changeBegan=!0,c.changeCompleted=!1,f("changeBegin")),f("change"),p(_)):c.changeBegan&&(c.changeCompleted=!0,c.changeBegan=!1,f("changeComplete")),c.currentTime=Lo(_,0,d),c.began&&f("update"),e>=d&&(i=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(n=o,f("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&l()):(c.paused=!0,c.completed||(c.completed=!0,f("loopComplete"),f("complete"),!c.passThrough&&"Promise"in window&&(a(),s(c)))))}return s(c),c.reset=function(){var e=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===e,c.remaining=c.loop,t=c.children;for(var n=r=t.length;n--;)c.children[n].reset();(c.reversed&&!0!==c.loop||"alternate"===e&&1===c.loop)&&c.remaining++,p(c.reversed?c.duration:0)},c._onDocumentVisibility=d,c.set=function(e,t){return br(e,t),c},c.tick=function(e){o=e,n||(n=o),v((o+(i-n))*Sr.speed)},c.seek=function(e){v(u(e))},c.pause=function(){c.paused=!0,d()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,Ar.push(c),d(),Cr())},c.reverse=function(){l(),c.completed=!c.reversed,d()},c.restart=function(){c.reset(),c.play()},c.remove=function(e){Tr(vr(e),c)},c.reset(),c.autoplay&&c.play(),c}function kr(e,t){for(var n=t.length;n--;)Ko(e,t[n].animatable.target)&&t.splice(n,1)}function Tr(e,t){var n=t.animations,i=t.children;kr(e,n);for(var o=i.length;o--;){var r=i[o],a=r.animations;kr(e,a),a.length||r.children.length||i.splice(o,1)}n.length||i.length||t.pause()}Sr.version="3.2.1",Sr.speed=1,Sr.suspendWhenDocumentHidden=!0,Sr.running=Ar,Sr.remove=function(e){for(var t=vr(e),n=Ar.length;n--;)Tr(t,Ar[n])},Sr.get=ar,Sr.set=br,Sr.convertPx=nr,Sr.path=function(e,t){var n=Bo.str(e)?Wo(e)[0]:e,i=t||100;return function(e){return{property:e,el:n,svg:hr(n),totalLength:dr(n)*(i/100)}}},Sr.setDashoffset=function(e){var t=dr(e);return e.setAttribute("stroke-dasharray",t),t},Sr.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",i=t.easing?Uo(t.easing):null,o=t.grid,r=t.axis,a=t.from||0,s="first"===a,c="center"===a,l="last"===a,u=Bo.arr(e),d=u?parseFloat(e[0]):parseFloat(e),h=u?parseFloat(e[1]):0,p=Qo(u?e[1]:e)||0,f=t.start||0+(u?d:0),v=[],m=0;return function(e,t,_){if(s&&(a=0),c&&(a=(_-1)/2),l&&(a=_-1),!v.length){for(var g=0;g<_;g++){if(o){var b=c?(o[0]-1)/2:a%o[0],y=c?(o[1]-1)/2:Math.floor(a/o[0]),w=b-g%o[0],x=y-Math.floor(g/o[0]),A=Math.sqrt(w*w+x*x);"x"===r&&(A=-w),"y"===r&&(A=-x),v.push(A)}else v.push(Math.abs(a-g));m=Math.max.apply(Math,v)}i&&(v=v.map((function(e){return i(e/m)*m}))),"reverse"===n&&(v=v.map((function(e){return r?e<0?-1*e:-e:Math.abs(m-e)})))}return f+(u?(h-d)/m:d)*(Math.round(100*v[t])/100)+p}},Sr.timeline=function(e){void 0===e&&(e={});var t=Sr(e);return t.duration=0,t.add=function(n,i){var o=Ar.indexOf(t),r=t.children;function a(e){e.passThrough=!0}o>-1&&Ar.splice(o,1);for(var s=0;s<r.length;s++)a(r[s]);var c=Jo(n,Zo(No,e));c.targets=c.targets||e.targets;var l=t.duration;c.autoplay=!1,c.direction=t.direction,c.timelineOffset=Bo.und(i)?l:sr(i,l),a(t),t.seek(c.timelineOffset);var u=Sr(c);a(u),r.push(u);var d=wr(r,e);return t.delay=d.delay,t.endDelay=d.endDelay,t.duration=d.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Sr.easing=Uo,Sr.penner=Ho,Sr.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var Ir=Sr,Nr=["easeInElastic","easeOutElastic","easeInOutElastic","easeSpringElastic"],Pr=["height","left","matrix","matrix3d","opacity","right","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","top","translate","translate3d","translateX","translateY","translateZ","width","backgroundColor","bottom","borderRadius"];function Or(e,t){return _c.instance}function Lr(e,t){var n=Or();return n?n.nodeId.getNodeById(e):null}var Rr,Mr=Object.prototype.hasOwnProperty,Br=function(e,t){void 0!==e.__resizers&&(e.__resizers[t]=void 0)},$r=function(e){e.$$.style.display="none"},Fr=1,Dr={},jr=function(e,t,n){if(void 0===e.__resizers){e.__resizers=[];var i=Fr++;Dr[i]=e,ftparser.Observer.create((function(e){"detached"===e.status&&delete Dr[i]})).observe(e,{attachStatus:!0})}e.__resizers[t]=n},Vr=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","delay","duration","offset","easing"],qr=["linear","ease","ease-in","ease-out","ease-in-out","cubic-bezier","steps"],Hr=function(e,t){return e=__webViewSDK__.predefinedColor[e]||e,t?[e,e]:e},Ur=function(e,t){var n=e.length,i=0;return e.map((function(e,o){var r={},a="offset"in e?e.offset:1===n?1:o/(n-1),s=i===a;return E()(e).forEach((function(t){-1===Vr.indexOf(t)&&("transform"!==t?r[t]=Hr(e[t],s):Ke()(r,function(e,t){if("none"===(e=e.toLowerCase().trim()))return{};for(var n,i={},o=Vr.map((function(e){return e.toLowerCase()})),r={scale3d:"AAA",translate:"Aa",translate3d:"AAA",rotate3d:"AAAA",matrix3d:"AAAAAA",matrix:"AAAAAAAAAAAAAAAA"},a=["rotate3d","matrix","matrix3d"],s=/\s*(\w+)\(([^)]*)\)/g,c=0;n;){if(n.index!==c)return{};c=n.index+n[0].length;var l=n[1],u=n[2].split(",");if(o.indexOf(l)>-1)i[l.replace(/(x|y|z)$/,(function(e){return e.toUpperCase()}))]=Hr(u.join(" "),t);else{if(!(E()(r).indexOf(l)>-1))return{};var d=r[l];if(u.length>d.length)return{};for(var h=d.length-1;h>=0;h--){var p=d[h];if("a"!==p||u[h]){if("A"===p&&!u[h])return{};-1===a.indexOf(l)&&(i[l.replace("3d","")+String.fromCharCode(88+h)]=Hr(u[h].trim(),t))}}}n=s.exec(e)}return i}(e[t],s)))})),s?r.duration=0:(r.duration=(a-i)*t,i=a),r}))},Wr=function(e){for(var t=0;t<qr.length&&0!==e.indexOf(qr[t]);t++);if(t===qr.length)return"linear";switch(e){case"ease":return"cubicBezier(0.25, 0.1, 0.25, 1)";case"ease-in":return"cubicBezier(0.42, 0, 1, 1)";case"ease-out":return"cubicBezier(0, 0, 0.58, 1)";case"ease-in-out":return"cubicBezier(0.42, 0, 0.58, 1)";default:return e.replace(/^cubic-bezier/,"cubicBezier")}},zr=function(){function e(t,n){oe()(this,e),this._nativeSupported="function"==typeof HTMLElement.prototype.animate;var i=t.keyframeOptions,o=this.direction=i.direction;if(this.timeline=n,this._nativeSupported){var r=function(e,t){var n=t.easing;return delete t.easing,e.map((function(e){return e.easing=n,e}))}(t.keyframeSet,i);this._inst=t.element.$$.animate(r,Ke()(i,{fill:"both"})),this._inst.pause()}else this._inst=Ir({targets:t.element,keyframes:Ur(t.keyframeSet,i.duration),autoplay:!1,loop:i.iterations===1/0||i.iterations,easing:Wr(i.easing),direction:"normal",delay:"reverse"===o?i.endDelay:i.delay,endDelay:"reverse"===o?i.delay:i.endDelay});n._driven(this)}return ae()(e,[{key:"currentTime",set:function(e){if(!isNaN(e)){var t=this._inst;this._nativeSupported?t.currentTime=e:"reverse"===this.direction?t.seek(t.duration-e):t.seek(e)}}},{key:"cancel",value:function(){this._nativeSupported?this._inst.cancel():this._inst.reset(),this.timeline._destroy(),this._inst=null}}]),e}(),Gr=function(){function e(t,n){if(oe()(this,e),n.scrollSource){if(this._scrollNode=window.__DOMTree__.shadowRoot.querySelector(n.scrollSource),this._scrollNode||(this._scrollNode=t&&t.querySelector(n.scrollSource)),!this._scrollNode)throw new Error("Cannot find scroll source by ".concat(n.scrollSource," selector."))}else this._scrollNode=window.__DOMTree__;this.orientation=n.orientation||"vertical",this.startScrollOffset=n.startScrollOffset,this.endScrollOffset=n.endScrollOffset,this.timeRange=n.timeRange,this.fill=n.fill||"both",this._scroll=this._scroll.bind(this)}return ae()(e,[{key:"_calcCurrentTime",value:function(e,t){var n=this.startScrollOffset,i=this.endScrollOffset,o=this.fill,r=this.timeRange,a=e.scrollTop,s=e.scrollHeight-t.$$.offsetHeight;return"horizontal"===this.orientation&&(a=e.scrollLeft,s=e.scrollWidth-t.$$.offsetWidth),a<n?"none"===o||"forwards"===o?NaN:0:a>=i?i<s&&("none"===o||"backwards"===o)?NaN:r:n>=i?NaN:(a-n)/(i-n)*r}},{key:"_scroll",value:function(){var e=this._calcCurrentTime(this._scrollNode===window.__DOMTree__?window.__DOMTree__.$$:this._scrollNode.getScrollPosition(),this._scrollNode);this._animation.currentTime=e}},{key:"_driven",value:function(e){this._animation=e,this._scrollNode===window.__DOMTree__?document.addEventListener("scroll",this._scroll,{capture:!0,passive:!0}):this._scrollNode.$$.addEventListener("scroll",this._scroll,{capture:!0,passive:!0}),this._scroll()}},{key:"_destroy",value:function(){this._scrollNode===window.__DOMTree__?document.removeEventListener("scroll",this._scroll,{capture:!0,passive:!0}):this._scrollNode.$$.removeEventListener("scroll",this._scroll,{capture:!0,passive:!0})}}]),e}(),Yr=function(e,t,n,i,o){var r={element:t,keyframeSet:n,keyframeOptions:{delay:i.delay||0,direction:i.direction||"normal",duration:i.duration||0,easing:i.easing||"linear",endDelay:i.endDelay||0,iterations:1}},a=new Gr(e,o);t.__scrollAnimations=t.__scrollAnimations||[],t.__scrollAnimations.push(new zr(r,a))},Kr={},Xr=function(e){return E()(e).filter((function(t){return!(/transform|transition/i.test(t)&&""===e[t]||""===t.trim()||void 0===e[t]||""===e[t]||!isNaN(_()(t,10)))})).map((function(t){return"".concat(t.replace(/([A-Z]{1})/g,(function(e){return" - $ {\n e.toLowerCase()\n }\n "})),":").concat(e[t])})).join(";")},Zr=function e(t,n){var i=t.nodeId,o=(t.webviewId,t.selector),r=Lr(i);if(r){var a=r.shadowRoot,s=n||a.querySelectorAll(o);if(n)s.__animationPendingQueue&&s.__animationPendingQueue.length>0&&setTimeout((function(){s.__animateStatus=2,Jr(s.__animationPendingQueue.shift(),s,!0)}),32);else for(var c=0;c<s.length;++c)e(JSON.parse(ce()(t)),s[c])}},Jr=function e(t,n,i){wx.nextTick((function(){var o=t.nodeId,r=(t.webviewId,t.options),a=t.selector,s=t.reqId,c=t.hasCallback,l=t.type,u=t.isLastAnimation,d=t.fromWxs,h=Lr(o);if(h){var p=h.shadowRoot,f=n||p.querySelectorAll(a);if(n){if((1===f.__animateStatus||2===f.__animateStatus)&&!i)return f.__animationPendingQueue||(f.__animationPendingQueue=[]),void f.__animationPendingQueue.push(JSON.parse(ce()(t)));f.__hasCallback=c,f.__reqId=s,f.__args=ce()(t);var v=["height","left","matrix","matrix3d","opacity","right","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","top","translate","translate3d","translateX","translateY","translateZ","width","backgroundColor","bottom"],m=["opacity","backgroundColor","width","height","left","top","bottom"],_=["rotate","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","skewX","skewY","translateX","translateY","translateZ"],g="animeJS"===l,b=function(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(1===f.__animateStatus&&(--Kr[f.__reqId],f.__animationPendingQueue&&f.__animationPendingQueue.length>0&&!f.__hasCallback?(f.__animateStatus=2,e(f.__animationPendingQueue.shift(),f,!0)):f.__animateStatus=0,"function"==typeof n&&(f.__styleObj.transition="unset",f.__styleObj.transitionProperty="unset",f.__styleObj["-webkit-transition"]="unset",f.__styleObj["-webkit-transition-property"]="unset",n(Xr(f.__styleObj))),0===Kr[f.__reqId]&&f.__hasCallback&&i))if(d){var o=_c.instance,r=o.applyAnimationCbMap[f.__reqId];"function"==typeof r&&(delete o.applyAnimationCbMap[f.__reqId],ftparser.safeCallback("Animation",r,null,[])),Zr(t)}else console.log("ANIMATION_TRANSITION_END"),da(ho.ANIMATION_TRANSITION_END,{reqId:f.__reqId,args:f.__args})},y=[];for(var w in r)v.indexOf(w)>=0&&(m.indexOf(w)>=0?y.push({type:"style",args:["backgroundColor"===w?"background-color":w,r[w]]}):_.indexOf(w)>=0?y.push({type:w,args:[r[w]]}):y.push({type:w,args:r[w]}));var x={transition:{delay:r.delay||0,duration:r.duration||0,timingFunction:r.ease||"linear"},transformOrigin:r.transformOrigin||"50% 50% 0"},C={option:x,animates:y},S=wx.animationToStyle(C),k=S.transition,T=S.transitionProperty,I=S.transform,N=S.transformOrigin,P=S.style,O=f.__styleObj?Ke()({},f.__styleObj,{transition:k,transform:I,transitionProperty:T,transformOrigin:N}):{transition:k,transform:I,transitionProperty:T,transformOrigin:N};for(var L in O["-webkit-transition"]=O.transition,O["-webkit-transform"]=O.transform,O["-webkit-transition-property"]=O.transitionProperty,O["-webkit-transform-origin"]=O.transformOrigin,P)O[L]=P[L];if(f.__styleObj&&O.transform===f.__styleObj.transform){var R=!0;for(var M in O)m.indexOf(M)>=0&&f.__styleObj[M]!==O[M]&&(R=!1);if(R)return void setTimeout((function(){f.__animationPendingQueue&&f.__animationPendingQueue.length>0&&e(f.__animationPendingQueue.shift(),f,!0)}),x.duration)}if(0===x.transition.duration?(O.transition="unset",O.transitionProperty="unset",O["-webkit-transition"]="unset",O["-webkit-transition-property"]="unset"):f.__animateStatus=1,f.__styleObj=O,g){r.targets=f,r.ease&&(r.easing=r.ease,delete r.ease),E()(r).forEach((function(e){if(Pr.includes(e)){var t=r[e];"string"==typeof t?r[e]=wx.transformRpx(r[e],!0):"object"===Ce()(t)&&"string"==typeof t.value?r[e].value=wx.transformRpx(r[e].value,!0):A()(t)&&t.map((function(e){if("string"==typeof e.value)e.value=wx.transformRpx(e.value,!0);else if("string"==typeof e)return wx.transformRpx(e,!0);return e}))}})),f.__animateStatus=1,f.__banned&&$r(f);var B=r.complete;r.complete=function(){b(void 0,u),"function"==typeof B&&B.apply(void 0,arguments)};var $=Ir(r);f.__animeOptions||(f.__animeOptions=[]),f.__animeOptions.push($)}else{var F=Xr(O),D=function(e){var t=function(){f.setNodeStyle(wx.transformRpx(e,!0),1)};t(),jr(f,1,t)};0===x.transition.duration?D(F):setTimeout((function(){D(F)}),32),f.__banned&&$r(f),f.__animationListener||(f.addListener("transitionend",(function(){b(D)})),f.__animationListener=!0),0===x.transition.duration&&(f.__animationPendingQueue&&f.__animationPendingQueue.length>0?(f.__animateStatus=2,e(f.__animationPendingQueue.shift(),f,!0)):f.__animateStatus=0)}}else{Kr[s]=f.length;for(var j=0;j<f.length;++j)e(JSON.parse(ce()(t)),f[j])}}}))},Qr={},ea=function e(t,n){var i=t.nodeId,o=(t.webviewId,t.options),r=t.selector,a=t.reqId,s=t.hasCallback,c=t.fromWxs,l=Lr(i);if(l){var u=l.shadowRoot,d=n||u.querySelectorAll(r);if(n){var h=function(){if(c){var e=_c.instance,t=e.clearAnimationCbMap[a];"function"==typeof t&&(delete e.clearAnimationCbMap[a],ftparser.safeCallback("Clear Animation",t,null,[]))}else da(ho.CLEAR_ANIMATION_COMPLETE,{reqId:a})};if((d.__scrollAnimations||[]).forEach((function(e){e.cancel()})),d.__scrollAnimations=[],!o||"function"==typeof o||!d.__styleObj)return d.__animeOptions&&(d.__animeOptions.forEach((function(e){return"function"==typeof e.reset&&e.reset()})),d.__animeOptions=[]),d.setNodeStyle("",1),Br(d,1),d.__styleObj=null,d.__animateStatus=0,d.__animationPendingQueue=[],void h();var p=d.__styleObj.transform.split(" ");for(var f in o)if(o[f])if(d.__styleObj["backgroundColor"===f?"background-color":f])delete d.__styleObj["backgroundColor"===f?"background-color":f];else for(var v=0;v<p.length;++v)p[v].indexOf(f)>=0&&p.splice(v,1);d.__styleObj.transform=p.join(" "),d.__styleObj["-webkit-transform"]=p.join(" "),d.__styleObj.transition="unset",d.__styleObj.transitionProperty="unset",d.__styleObj["-webkit-transition"]="unset",d.__styleObj["-webkit-transition-property"]="unset";var m=function(e){d.setNodeStyle(wx.transformRpx(e,!0),1)};m(Xr(d.__styleObj)),jr(d,1,m),d.__animateStatus=0,--Qr[a],0===Qr[a]&&s&&h()}else{Qr[a]=d.length;for(var _=0;_<d.length;++_)e(t,d[_])}}},ta=!1,na=null,ia=-1,oa=null,ra=null,aa={},sa=[];(Rr=window.__webViewSDK__._virtualDOMTunnel).onVdSync((function(e,t){la(e,t)})),Rr.onVdSyncBatch((function(e,t){for(var n=0;n<e.length;n++)la(e[n],t)}));var ca=function(e,t,n){if(""===e)return oa=t,void(ia>=0&&oa(ia));aa[n=n||0]||(aa[n]={}),aa[n][e]=t},la=function(e,t){var n=e.shift();if(""===n)return ia=t,void(oa&&oa(t));var i=null;aa[t=t||0]&&(i=aa[t][n]),!i&&aa.$GLOBAL&&(i=aa.$GLOBAL[n]),i&&i(e,n,t)},ua=function(){ra&&(ra=clearTimeout(ra)),sa.length&&Rr.vdSyncBatch(sa,na&&[na]),na=null,sa.length=0,ta=!1},da=function(e,t,n,i){if(t=[e].concat(t),!ta||i)return ua(),ta=!0,void Rr.vdSync(t,n&&[n]);na!==n&&ua(),na=n,sa.push(t),ta=!0,ra||(ra=setTimeout((function(){ra=null,ua()}),15))},ha=function(){function e(t,n){var i=this;oe()(this,e);var o=this;this._viewId=t,this._treeManager=n,this._depth=0,this._curWinSize=0,this._setDataCallbackInc=1,this._pendingSetDataCallbacks=[],this._setDataCallbackMap={},this._received=[],this._cache=[],this._blocked=[],this._isBlocked=!0,this._fetchingViewInfoCallbacks=[],this.e=void 0;var r=function(t,n){if(i._received.push([n].concat(t)),n===ho.FLOW_DEPTH&&(i._depth=t[0],0===i._depth)){var o=i._received;i._received=[],i._isBlocked?i._blocked.push(o):(i.iterator=new va(i._treeManager,o,e._startCb),e._startCb(i._treeManager),document.dispatchEvent(new CustomEvent("pageReRender",{})),da(ho.SET_DATA_CALLBACK,[i._pendingSetDataCallbacks],null,!0),i._pendingSetDataCallbacks=[],i.checkDelayFetchingViewInfo())}},a=function(){if("FLOW_"===s.slice(0,5)){var e=function(e){var t=p()(e,3),n=t[0],i=t[1],r=t[2],a=null;switch(n){case"selectorQuery":a=function(e,t){var n=[],i=e.pluginId;return e.queue.forEach((function(e){var o=e.component,r=e.selector,a=e.single,s=e.fields,c=null;if(0===o){var l={};s.id&&(l.id=""),s.dataset&&(l.dataset={}),s.mark&&(l.mark={}),s.rect&&(l.left=0,l.right=0,l.top=0,l.bottom=0),s.size&&(l.width=document.documentElement.clientWidth,l.height=document.documentElement.clientHeight),s.scrollOffset&&(l.scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft||0,l.scrollTop=document.documentElement.scrollTop||document.body.scrollTop||0,l.scrollWidth=document.documentElement.scrollWidth||document.body.scrollWidth||0,l.scrollHeight=document.documentElement.scrollHeight||document.body.scrollHeight||0),c=l}else{var u=t.nodeId.getNodeById(o),d=!1;if(u?(ftparser.Component.getComponentOptions(u).writeOnly&&(d=!0),u=u.shadowRoot):i||(u=window.__DOMTree__?window.__DOMTree__.shadowRoot:null),a){var h=u&&!d?u.querySelector(r):null;c=h?To(h,s):null}else{var p=u&&!d?u.querySelectorAll(r):[];c=[];for(var f=0;f<p.length;f++)c.push(To(p[f],s))}}n.push(c)})),n}(i,o._treeManager);break;case"intersection":a=function(e,t,n){if("addIntersectionObserver"===e.type){var i=null;if(e.nodeId){var o=t.nodeId.getNodeById(e.nodeId);if(!o)return;i=o.shadowRoot}else e.pluginId||(i=window.__DOMTree__.shadowRoot);if(!i)return;return{observerId:yo(i,e.targetSelector,e.relativeInfo,e.options,(function(e){n({info:e})}))}}if("removeIntersectionObserver"===e.type){var r=e.observerId;return bo(r),{reqEnd:!0}}}(i,o._treeManager,(function(e){da(ho.RESPONSE_VIEW_INFO,[e,r])}));break;case"selectmatchMediaorQuery":a=function(e,t){return"addMediaQueryObserver"===e.type?{observerId:So(e.mediaQueryCond,(function(e){t({info:e})}))}:"removeMediaQueryObserver"===e.type?(ko(e.observerId),{reqEnd:!0}):void 0}(i,(function(e){da(ho.RESPONSE_VIEW_INFO,[e,r])}))}a&&da(ho.RESPONSE_VIEW_INFO,[a,r])};switch(s){case"FLOW_SET_DATA":ca(ho[s],(function(e){var t=p()(e,1)[0];i._pendingSetDataCallbacks.push(t)}),t);break;case"FLOW_VIEW_INFO":ca(ho[s],(function(t){o._received.length||o._isBlocked?o._fetchingViewInfoCallbacks.push(e.bind(o,t)):e(t)}),t);break;case"FLOW_SET_NODE_ANIMATION_INFO":ca(ho[s],(function(e){"scrollTimeline"===e[0].type?function(e,t){for(var n=e.nodeId,i=e.selector,o=e.options,r=e.duration,a=e.timeline,s=t.nodeId.getNodeById(n),c=(s=s?s.shadowRoot:window.__DOMTree__?window.__DOMTree__.shadowRoot:null)?s.querySelectorAll(i):[],l=0;l<c.length;l++)Yr(s,c[l],o,{duration:r},a)}(e[0],i._treeManager):Jr(e[0])}));break;case"FLOW_CLEAR_NODE_ANIMATION_INFO":ca(ho[s],(function(e){ea(e[0])}));break;case"FLOW_SET_NODE_NEXT_ANIMATION_INFO":ca(ho[s],(function(e){Zr(e[0])}));break;default:ca(ho[s],r,t)}}};for(var s in ho)a();ca(ho.SET_DATA_CALLBACK,(function(e){var t=p()(e,1)[0];i.triggerSetDataCallbacks(t)}),t)}return ae()(e,[{key:"flushBlocked",value:function(){for(;this._blocked.length&&!this._isBlocked;)try{var t=this._blocked.shift();this.iterator=new va(this._treeManager,t,e._startCb),e._startCb(this._treeManager),document.dispatchEvent(new CustomEvent("pageReRender",{}))}catch(t){console.error(t.message),Reporter.errorReport({key:"webviewScriptError",error:t})}this._blocked.length||(da(ho.SET_DATA_CALLBACK,[this._pendingSetDataCallbacks],null,!0),this._pendingSetDataCallbacks=[],this.checkDelayFetchingViewInfo())}},{key:"unblock",value:function(){this._isBlocked=!1,this.flushBlocked()}},{key:"block",value:function(){this._isBlocked||(this._isBlocked=!0)}},{key:"sendInIndividualFlow",value:function(e){this.start(v()()),this.push(e),this.end()}},{key:"start",value:function(){this.flush(),this._depth++,da(ho.FLOW_DEPTH,[this._depth,v()()],this._viewId)}},{key:"dedupe",value:function(){var e=this._cache;if(this._curWinSize){if(2===e.length){var t=e[1][2];if(e[0][0]!==t){var n=e.pop(),i=n.shift();da(i,n,this._viewId)}else e.shift(),e[0][1]++}}else{var o=0;if(e.length>2&&e[0][0]===e[1][0]&&e[0][0]===e[2][0]&&e[0][0]!==ho.FLOW_SET_DATA&&e[0][0]!==ho.FLOW_VIEW_INFO&&(o=1),o){var r=e[0][0];e.splice(0,3),this.flush(),this._curWinSize=1,e.unshift([ho.FLOW_REPEAT,3,r])}else if(e.length>3){var a=e.pop(),s=a.shift();da(s,a,this._viewId)}}}},{key:"push",value:function(e){this._cache.unshift(e),1===e.length?this.dedupe():this.flush()}},{key:"flush",value:function(){for(this._curWinSize=0;this._cache.length;){var e=this._cache.pop(),t=e.shift();da(t,e,this._viewId)}}},{key:"end",value:function(){this.flush(),this._depth--,da(ho.FLOW_DEPTH,this._depth,this._viewId),0===this._depth&&ua()}},{key:"checkDelayFetchingViewInfo",value:function(){if(this._fetchingViewInfoCallbacks.length){var e=this._fetchingViewInfoCallbacks;this._fetchingViewInfoCallbacks=[],e.forEach((function(e){return e()}))}}},{key:"registerSetDataCallback",value:function(e,t,n){var i=this._setDataCallbackInc++;this._setDataCallbackMap[i]=[e,t,n],this.push([ho.FLOW_SET_DATA,i])}},{key:"triggerSetDataCallbacks",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],i=p()(this._setDataCallbackMap[n],3),o=i[0],r=i[1],a=i[2];delete this._setDataCallbackMap[n],ftparser.safeCallback("SetData Callback",o,r,[],a)}}}],[{key:"setStartOperation",value:function(t){e._startCb=t}}]),e}(),pa={};E()(ho).forEach((function(e){pa[ho[e]]=e}));var fa=function(e){return pa[e]||"UNKNOWN_EVENT_".concat(e)},va=function(){function e(t,n,i){oe()(this,e),this._treeManager=t,this._arr=n,this._depth=0,this._startCb=i}return ae()(e,[{key:"_consumeHead",value:function(){return this._arr.shift()}},{key:"nextStepType",value:function(){return this._arr[0][0]}},{key:"nextStep",value:function(){for(;this._arr[0][0]===ho.FLOW_DEPTH;)this._startCb(this._treeManager);if(this._arr[0][0]===ho.FLOW_REPEAT){var e=this._arr[0][2];return--this._arr[0][1]||this._consumeHead(),[e]}return this._consumeHead()}},{key:"nextStepIf",value:function(e){for(;this._arr[0][0]===ho.FLOW_DEPTH;)this._startCb(this._treeManager);return this._arr[0][0]===e?this._consumeHead():null}},{key:"expectStart",value:function(){var e=this._consumeHead();if(this._depth++,e[0]!==ho.FLOW_DEPTH||e[1]!==this._depth)throw new Error("Framework inner error (expect START descriptor with depth ".concat(this._depth," but get ").concat(fa(e[0]),")"));return e[2]}},{key:"expectEnd",value:function(){for(;this._arr[0][0]===ho.FLOW_DEPTH&&this._arr[0][1]!==this._depth-1;)this._startCb(this._treeManager);var e=this._consumeHead();if(this._depth--,e[0]!==ho.FLOW_DEPTH||e[1]!==this._depth)throw new Error("Framework inner error (expect END descriptor with depth ".concat(this._depth," but get ").concat(fa(e[0]),")"))}},{key:"skipToEnd",value:function(){for(;this._arr[0];)if(this._arr[0][0]!==ho.FLOW_DEPTH)this._consumeHead();else{if(this._arr[0][1]===this._depth-1)break;this._startCb(this._treeManager)}}},{key:"getQueueLength",value:function(){return this._arr.length}},{key:"getDepth",value:function(){return this._depth}}]),e}(),ma=ha,_a=1,ga=[],ba={};function ya(e,t){if(ba[e]){var n=ba[e],i=ga[ga.length-1],o=ga[ga.length-2],r=t(n),a=r.isMergedUpdate,s=r.dataPaths,c=r.pendingStartTimestamp,l=r.updateStartTimestamp,u=r.updateEndTimestamp;da(ho.UPDATE_PERFORMANCE_STAT,[e,{isMergedUpdate:a,dataPaths:s,updateProcessId:i,parentUpdateProcessId:o,pendingStartTimestamp:c,updateStartTimestamp:l,updateEndTimestamp:u}])}}ca(ho.ENABLE_UPDATE_PERFORMANCE_STAT,(function(e){var t=p()(e,2),n=t[0],i=t[1];ba[n]=i})),ca(ho.DISABLE_UPDATE_PERFORMANCE_STAT,(function(e){var t=p()(e,1)[0];delete ba[t]}));var wa=Object.prototype.hasOwnProperty,xa=kt()(kt()(kt()(kt()(kt()({},ho.FLOW_COMPONENT_DEF_ADD,(function(e,t){var n=t[0],i=t[1];e.appendComponentDef(n,i)})),ho.FLOW_INJECT_SUBPACKAGE,(function(e,t){var n=t[0],i=t[1];e.injectSubPackageOnReady(n,i)})),ho.FLOW_INJECT_COMPONENT,(function(e,t){var n=t[0],i=t[1];e.injectComponentsOnReady(n,i)})),ho.FLOW_SET_SUBPACKAGE_LOADED,(function(e,t){var n=t[0];e.setSubPackageLoaded(n)})),ho.FLOW_WAIT_COMPONENT,(function(e,t){var n=t[0];e.__treeManager.operationFlow.block(),e.waitComponentEnsuring(n,(function(t){e.__treeManager.operationFlow.unblock(),t()}))}));function Aa(e){e&&".html"!==e.slice(5)&&(e+=".html");var t="";return __wxConfig__.window&&__wxConfig__.window.initialRenderingCache&&(t=String(__wxConfig__.window.initialRenderingCache)),t}function Ca(e,t){return"dynamic"!==Aa(window.__route__)?(console.error('An initial rendering cache state is ignored, because initialRenderingCache mode is not "dynamic".'),!1):(e?Ea(e,t):wx.saveInitialRenderingCache({content:""}),!0)}function Ea(e,t){v()();var n={},i={},o=document.head.querySelectorAll("style")||[],r=[];ftparser.ElementIterator.create(e,"composed-descendants-root-first",ftparser.Component).forEach((function(e){e.hasBehavior("wx-base")||(n["./"+e.is+".wxss"]=!0)})),E()(ftparser.Component._list).forEach((function(e){i["./"+e+".wxss"]=!0}));for(var a=0;a<o.length;a++){var s=o[a],c=s.getAttribute("wxss:path");null!=c&&(!i[c]||n[c]?r.push("<style>"+s.innerHTML+"</style>"):console.log(s.innerHTML.length+15))}var l=r.join("")+e.$$.innerHTML;wx.saveInitialRenderingCache({content:l,appserviceData:t})}ha.setStartOperation((function(e){var t=_a++;ga.push(t);try{!function(e){var t=e.operationFlow.iterator,n=t.expectStart(),i=v()(),o=t.nextStepType();if(o===ho.FLOW_INITIAL_CREATION)__virtualDOM__&&__virtualDOM__.initExt&&__virtualDOM__.initExt(),ka(e,ho.FLOW_INITIAL_CREATION);else if(o===ho.FLOW_INITIAL_RENDERING_CACHE)ka(e,ho.FLOW_INITIAL_RENDERING_CACHE);else if(o===ho.FLOW_CREATE_TAB)ka(e,ho.FLOW_CREATE_TAB);else if(wa.call(xa,t.nextStepType())){var r=xa[t.nextStepType()],a=t.nextStep().slice(1);r(e.compManager,a)}else{v()();var s=t.nextStep();if(s[0]===ho.FLOW_UPDATE){var c=s[1],l=e.nodeId.getNodeById(c),u=s[2];if(l){if(u.length){var d=ftparser.Component.getDataProxy(l);d.setChanges(u),d.doUpdates(void 0,!0),ya(c,(function(e){return{isMergedUpdate:!1,dataPaths:e.withDataPaths?u.map((function(e){return e[0]})):void 0,pendingStartTimestamp:n,updateStartTimestamp:i,updateEndTimestamp:v()()}}))}}else t.skipToEnd()}else if(s[0]===ho.FLOW_GROUP){var h=t.nextStep();if(h[0]!==ho.FLOW_GROUP_END)throw new Error("Framework inner error (expect FLOW_GROUP_END but get ".concat(fa(h[0]),")"))}else if(s[0]===ho.FLOW_REPLACE_PLACEHOLDER){var p=e.compManager.getPlaceholderReplaceData();e.compManager.finishPlaceholderReplacement(),p.replacers.forEach((function(e){e()}))}else if(s[0]===ho.FLOW_HOT_UPDATE){var f=e.nodeId.getNodeById(s[1]);f?f.__templateInstance._resetShadowChildren(f,f.data,e):t.skipToEnd()}else if(s[0]!==ho.FLOW_HOT_UPDATE_RESET)throw new Error("Framework inner error (expect an update event but get ".concat(fa(s[0]),")"))}t.expectEnd()}(e),window&&window._flushActiveInputQueue&&window.requestAnimationFrame(window._flushActiveInputQueue)}catch(e){throw ga.pop(),console.error(e),e}ga.pop()}));var Sa=function e(t,n,i){t instanceof ftparser.Component&&(n>0&&i(t),n&&t.shadowRoot instanceof ftparser.Element&&e(t.shadowRoot,n,i),n<0&&i(t));for(var o=t.childNodes,r=0;r<o.length;r++)o[r]instanceof ftparser.Element&&e(o[r],n,i)};function ka(e,t){var n=t===ho.FLOW_CREATE_TAB,i=t===ho.FLOW_INITIAL_RENDERING_CACHE,o=e.operationFlow.iterator,r=o.nextStep(),a=r[1],s=r[2],c=null;if(n)e.tabNodeId=s,e.tabRoot=c=window.__TAB_BAR__=ftparser.createElement("tab-bar",ftparser.Component._list[a]);else if(i){if(!a)return void Ca(null);c=ftparser.createElement("initial-rendering-cache",ftparser.Component._list[a])}else{var l=r[3]||{};e.rootNodeId=s,e.root=c=window.__DOMTree__=ftparser.Component.createWithGenerics("body",ftparser.Component._list[a],l,e)}if(e.nodeId.allocNodeId(c,s),c.setAttribute("is",a),(r=o.nextStep())[0]!==t)throw new Error("Framework inner error (expect ".concat(fa(t)," end but get ").concat(fa(r[0]),")"));if(e.nodeId.addNode(c),n){var u=ftparser.createElement("wx-tab-bar-wrapper",ftparser.Component._list["wx://tab-bar-wrapper"]);u.appendChild(c),document.documentElement.insertBefore(u.$$,document.body),ftparser.Element.pretendAttached(u),e.tabDestroyed&&u.removeChild(c)}else if(i){var d=document.createElement("wx-initial-rendering-cache-wrapper");if(d.setAttribute("style","height: 0; overflow: hidden"),d.appendChild(c.$$),document.documentElement.insertBefore(d,document.body),(r=o.nextStep())[0]!==ho.FLOW_INITIAL_RENDERING_CACHE)throw new Error("Framework inner error (expect initial rendering end but get another)");Sa(c,1,(function(e){e.triggerLifeTime("cacheAttached")})),Ca(c,r[1]),e.nodeId.removeNode(c),document.documentElement.removeChild(d)}else document.body=c.$$,Sa(c,1,(function(e){e.triggerLifeTime("cacheAttached")})),"static"===Aa(window.__route__)&&Ea(c),ftparser.Element.pretendAttached(c)}var Ta=n(113),Ia=n.n(Ta),Na=n(311),Pa=n.n(Na),Oa=function(e){!function(){if("object"===("undefined"==typeof globalThis?"undefined":Ce()(globalThis)))return globalThis;try{this||new Function("return this")()}catch(e){if("object"===("undefined"==typeof window?"undefined":Ce()(window)))return window}}();var t={customComponents:!0,fixZeroRpx:!0,propValueDeepCopy:!1};if(t)return t[e]},La=/^[-+a-z]+:\/\//i;function Ra(e,t){if(La.test(t))return t;var n=e.match(La),i="";n&&(i=n[0],e=e.slice(i.length)),0===t.indexOf("/")&&(e="");var o=e.split("/");o.pop();for(var r=t.split("/");r.length;){var a=r.shift();""!==a&&"."!==a&&(".."!==a?o.push(a):o.pop())}return i+o.join("/")}var Ma,Ba=function(e){var t={};return e.forEach((function(e){t[e]={ok:!1,callbacks:[]}})),{notify:function(e){t[e]&&(t[e].ok=!0,t[e].callbacks.forEach((function(e){return e()})),t[e].callbacks=[])},on:function(e,n){t[e]&&(t[e].ok?n():t[e].callbacks.push(n))}}};Ma={main:"app-wxss.js",sub:"page-frame.js",lazyCommon:"common.app.js",lazyApp:"webview.app.js",plugin:"pageframe.js"};var $a=null,Fa=function(){$a={};var e=null;__wxConfig&&__wxConfig.plugins&&(e=__wxConfig.plugins);var t=!1;if(e)for(var n in e){var i=e[n].provider,o=e[n].subpackage;if(void 0!==o){t=!0;var r=o||"";"__APP__"===r&&(r=""),"/"===r[0]&&(r=r.slice(1)),r&&"/"!==r.slice(-1)&&(r+="/"),$a[i]=r}}if(!t){var a;if(__wxConfig&&__wxConfig.subPackages)a=__wxConfig.subPackages;else{if("undefined"==typeof window||!window||!window.__subPackages)return;a=window.__subPackages}a.length&&a.forEach((function(e){if(e){var t=e.root||"";if(t&&"/"!==t.slice(-1)&&(t+="/"),e.plugins)for(var n in e.plugins)if(Object.prototype.hasOwnProperty.call(e.plugins,n)){var i=e.plugins[n]&&e.plugins[n].provider;i&&($a[i]=t)}}}))}},Da=function(){return __wxConfig.isLazyLoad},ja=[],Va=function e(t){$a||Fa();var n=t.match(/^plugin:\/\/(.+?)\//);if(n)return e($a[n[1]]||"");if(n=t.match(/^plugin-private:\/\/([0-9a-zA-Z]+)\//))return e($a[n[1]]||"");for(var i=__wxConfig,o=null==i?void 0:i.subPackages,r=window,a=null!=o?o:null==r?void 0:r.__subPackages,s=null!=a?a:[],c=0;c<s.length;++c){var l=s[c].root||"";if(l&&"/"!==l.slice(-1)&&(l+="/"),t.slice(0,l.length)===l)return s[c]}return null},qa=function(e){var t=Va(e);return!!t&&t.independent},Ha=function(e){var t=Va(e);if(!t)return"__APP__";var n=t.root||"";return"/"===n.slice(-1)?n:n+"/"},Ua=function(e){var t="__plugin__/",n=e.indexOf(t);return-1===n?e:"plugin-private://"+e.slice(n+11)},Wa=n(13),za=n.n(Wa),Ga=n(97),Ya=n.n(Ga),Ka=n(312),Xa=n.n(Ka),Za={restoring:null,idDataMap:null,compIdArr:null,compExtraDataMap:null,compIdArrIndex:0,onReady:function(){}},Ja=!1,Qa=ftparser.Component.getComponentOptions,es=void 0!==wx&&wx.transformRpx,ts=[],ns=null,is=null,os=function(){return"function"==typeof is?is:null},rs=function(e){return is?is(e,void 0,arguments.length>1&&void 0!==arguments[1]&&arguments[1]?2:void 0):e},as=function(e,t){return is?is(e,"nv_",t?2:void 0):e},ss=null,cs=[];function ls(e,t,n){var i=e;return n&&i instanceof ftparser.VirtualNode&&(i.id||Ya()(i.dataset).length||(i=n)),{id:t?"":i.id,offsetLeft:i.$$&&!t?i.$$.offsetLeft:0,offsetTop:i.$$&&!t?i.$$.offsetTop:0,dataset:t?{}:i.dataset}}function us(e){if(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push({identifier:i.identifier,pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,force:i.force||0})}return t}}var ds={};function hs(e,t){var n=e,i=ps(n),o=n instanceof ftparser.Component&&"//"===ftparser.Component.getComponentOptions(n).domain,r={selectAllComponents:function(n){if(t!==i)return[];var o=Ja?e.shadowRoot.querySelectorAll(n):e.querySelectorAll(n),r=[];return o.forEach((function(e){r.push(as(hs(e,t),!0))})),r},selectComponent:function(n){if(t!==i)return null;var o=Ja?e.shadowRoot.querySelector(n):e.querySelector(n);return o?as(hs(o,t),!0):null},removeClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!n||!t.length)return this;var o=n.__wxsClass?n.__wxsClass.split(/\s+/):[],r=[];return t.forEach((function(e){(e=e.replace(/^\s+|\s+$/g,""))&&n.classList.contains(e)&&(n.classList.toggle(e),vs=!0,r.push(e))})),r.forEach((function(e){o.forEach((function(t,n){return t!==e||(o.splice(n,1),!1)}))})),n.__wxsClass=o.join(" "),this},addClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!n||!t.length)return this;var o=n.__wxsClass||"",r=[];return t.forEach((function(e){(e=e.replace(/^\s+|\s+$/g,""))&&!n.classList.contains(e)&&(n.classList.toggle(e),r.push(e),vs=!0)})),n.__wxsClass=o+(o?" ":"")+r.join(" "),this},hasClass:function(e){return!!n&&n.classList.contains(e)},setStyle:function(e){if(!n)return this;if(e===n.__wxsStyle)return this;var t=[];if("object"===Ce()(e))for(var i in e=e?rs(e):{})Mr.call(e,i)&&t.push("".concat(i,":").concat(e[i]));else t=[String(e)];n.__wxsStyle=t.join(";");var o=function(){var e=wx.transformRpx(n.__wxsStyle,!0);n.setNodeStyle(e,2)};return o(),jr(n,2,o),vs=!0,this},getDataset:function(){return n?as(n.dataset):null},getState:function(){var e=null;return n&&(n.__wxsState=n.__wxsState||{},e=n.__wxsState),e},triggerEvent:function(t,i,r){return!o&&e&&(i=i?rs(i):i,r=r?rs(r):r,ms++,n.triggerEvent(t,i,r),ms--),this},callMethod:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t?(n=rs(n),Ja?da(ho.CALL_METHOD_FROM_WXS,[window.__webviewId__,e&&e.__wxTmplId||0,t,n,!1]):wx.callMethodFromWxs([window.__webviewId__,e&&e.__wxTmplId||0,t,n,!1]),this):this},requestAnimationFrame:function(e){return"function"==typeof e&&"function"!=typeof(t=e)||(ts.push(t),ns||(ns=window.requestAnimationFrame((function(){ns=null;var e=ts;ts=[],e.forEach((function(e){e(),_s()}))})))),this},getComputedStyle:function(e){A()(e)||(e=[]);var t={computedStyle:e.filter((function(e){return"string"==typeof e}))};return as(To(n,t))},setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if("function"==typeof e){var r=window.setTimeout((function(){e.apply(void 0,i),delete ds[r]}),t);return ds[r]=!0,r}},clearTimeout:function(e){ds[e]&&(window.clearTimeout(e),delete ds[e])},getBoundingClientRect:function(){var e=n.$$&&n.$$.getBoundingClientRect();return e?as({x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left}):{}},animate:function(e,t,i){for(var o=function(e,t){for(var n=[],i=0;i<e.length;++i)n.push(Ke()({},e[i]));n[0].offset=0,n[n.length-1].offset=1;for(var o=function(e){n[e].offset=function(e,t){if("number"==typeof t[e].offset)return t[e].offset;for(var n=e+1;n<t.length;++n)if(t[n].offset)return(t[n].offset-t[e-1].offset)/(n-e+1)+t[e-1].offset;return 0}(e,n),n[e].duration=0===e?0:(n[e].offset-n[e-1].offset)*t,Nr.some((function(t){return n[e].ease&&n[e].ease.startsWith(t)}))&&(n[e].type="animeJS")},r=0;r<n.length;++r)o(r);return n}(e=rs(e),t),r=0;r<o.length;++r){var a="".concat(Math.random(),"-").concat(+new Date),s=window.__webviewId__,c="animeJS"===o[r].type;delete o[r].type;var l={nodeId:n.getNodeId(),webviewId:s,options:o[r],selector:"#".concat(n.$$.id),reqId:a,type:c?"animeJS":void 0,fromWxs:!0};r===o.length-1?(l.hasCallback="function"==typeof i,"function"==typeof i&&(_c.instance.applyAnimationCbMap[a]=i),l.isLastAnimation=!0,Jr(l)):(l.hasCallback=!1,l.isLastAnimation=!1,Jr(l))}},clearAnimation:function(e,t){var i="".concat(Math.random(),"-").concat(+new Date),o=_c.instance,r=!1;"function"==typeof t?(e=rs(e),o.clearAnimationCbMap[i]=t,r=!0):"function"==typeof e&&(o.clearAnimationCbMap[i]=e,r=!0);var a={nodeId:n.getNodeId(),webviewId:window.__webviewId__,options:e,selector:"#".concat(n.$$.id),reqId:i,fromWxs:!0,hasCallback:r};ea(a)}};return Xa()(r),r}var ps=function(e){return e instanceof ftparser.Component&&ftparser.Component.getComponentOptions(e).domain},fs=function(e,t){var n=e.ownerShadowRoot?e.ownerShadowRoot.__wxHost:window.__DOMTree__,i=t?n:e;return Ja=!!e.ownerShadowRoot,hs(i,ps(i))},vs=!1,ms=0,_s=function(){vs&&0===ms&&(vs=!1,document.dispatchEvent(new CustomEvent("pageReRender",{})))};function gs(e,t,n,i,o,r,a,s){var c=r?"__wxEventCaptureHandleName":"__wxEventHandleName";t[c]||(t[c]=za()(null)),void 0===t[c][n]&&t.addListener(n,(function(i){var r=t[c][n],l=i.mutatedMarked();if((!s||!i.mutatedMarked())&&(s&&i.markMutated(),r)){i._hasListeners=!0;var u=t.ownerShadowRoot;if(u){var d=u.getHostNode(),h=ftparser.Component.getComponentOptions(d).writeOnly;if(!h||i._allowWriteOnly)if(a)if("function"==typeof r&&os()){var p={type:i.type,timeStamp:i.timeStamp,target:ls(i.target,h,this),currentTarget:ls(this,h,null),mark:i.mark,detail:i.detail,touches:us(i.touches),changedTouches:us(i.changedTouches),mut:l};p.instance=fs(t);var f=r(as(p,!0),as(fs(t,!0),!0));if(_s(),!1===f)return f}else console.warn('Component "'+d.is+'" does not have a wxs function to handle event "'+i.type+'".');else{var v={type:i.type,timeStamp:i.timeStamp,target:ls(i.target,h,this),currentTarget:ls(this,h,null),mark:i.mark,detail:i.detail,touches:us(i.touches),changedTouches:us(i.changedTouches),mut:l,_requireActive:i._requireActive,_relatedInfo:i._relatedInfo};ftparser.exeCompatibleFn(["event","convertEventTarget"],[v]),da(ho.WX_EVENT,[e.nodeId.getNodeId(d),r,v],void 0,!!i._requireActive||void 0)}}return!o&&void 0}}),{capture:r}),a?t[c][n]=i:(t[c][n]=null==i?"":String(i),t.__eventHandlerChangeListener__&&t.__eventHandlerChangeListener__(n,t[c][n],r))}var bs=function(e,t,n,i){var o=Or();e.dataset=e.dataset||{};var r=0,a=!1,s=[],c=e instanceof ftparser.Component,l=c&&"//"===Qa(e).domain,u=ftparser.Component.getDataProxy(e),d=function(d){var h,p=d,f=t[d];"model:"===d.slice(0,6)&&(d=d.slice(6));var v,m,g,b=null;if("slot"===e.is&&e instanceof ftparser.VirtualNode&&"name"===d)return ftparser.Element.setSlotName(e,f),"continue";if("id"===d)return e.id=null==f?"":f,"continue";if("slot"===d)return e.slot=null==f?"":f,"continue";if("class"===d)return c&&(e.class=e.__wxsClass?(" ",v=null==f?"":f,m=e.__wxsClass,v?m?v+" "+m:v||"":m||""):null==f?"":f,c&&e.hasExternalClass("class")&&e.setExternalClass("class",f)),"continue";if("style"===d&&c&&e.$$){var y=es(f,!0);e.setNodeStyle(y,0),y!==f?jr(e,0,(function(){var t=es(f,!0);e.setNodeStyle(t,0),e.__transformedPropValue=t})):Br(e,0),e.__banned&&$r(e)}if(ftparser.exeCompatibleFn(["configuration","updateProps"],[c,e,d,f]),c&&ftparser.Component.hasPublicProperty(e,d)){!l&&Za.restoring||(u.scheduleReplace([d],f,null!=n?n[p]:null),l?u.doUpdates(void 0,!0):(a=!0,e.isInnerDataExcluded(d)||r++));var w=i&&i["model:"+J(d)];if(w){var x=w.match(/^\{\{(.*?)\}\}$/);if(x){var A=x[1].match(/^\s*([_a-zA-Z$][_a-zA-Z0-9$]+)\s*$/);if(A){var C=A[1];e.__modelValueName=Ke()(e.__modelValueName||{},kt()({},d,C)),s.push(d)}else console.warn("For developer:Two-way binding does not support complex data paths currently. This two-way binding is ignored.")}else console.warn('For developer:"'.concat(w,'" is not an assignable expression. This two-way binding is ignored.'))}return"continue"}if("style"===d)return"continue";if(/^data-/.test(d)){h=d.slice(5).toLowerCase();var S=ftparser.exeCompatibleFn(["configuration","parserDatasetName"],[d]);S&&(h=S);var k=(K[g=h]||(g.indexOf("-")<=0?K[g]=g:K[g]=g.replace(X,(function(e){return e[1].toUpperCase()}))),K[g]);return e.dataset[k]=f,e.setAttribute(d,f),"continue"}if("$gdc"===d)return"function"==typeof f&&(is=f),"continue";if((b=d.match(/^\$wxs:(capture-)?(mut-)?(bind|catch):?(.+)$/))&&("function"==typeof f||!f))return gs(o,e,b[4],f,"catch"===b[3],b[1],!0,b[2]),window.isIDE&&e.setAttribute("ftparser:info-attr-"+d.slice(4),f.name),"continue";if(b=d.match(/^(capture-)?(mut-)?(bind|catch):?(.+)$/))return gs(o,e,b[4],f,"catch"===b[3],b[1],!1,b[2]),window.isIDE&&e.setAttribute("ftparser:info-attr-"+d,f),"continue";if(ftparser.exeCompatibleFn(["event","registerEvents"],[d,f,e,o,gs]))return"continue";if("on"===d.slice(0,2))return gs(o,e,d.slice(2),f,!1,!1,!1),"continue";if("animation"===d){if(c&&e.$$&&null!==f&&"object"===Ce()(f)&&f.actions&&f.actions.length>0){var T=function(){if(I<P){var t=wx.animationToStyle(N[I]),n=t.transition,i=t.transitionProperty,o=t.transform,r=t.transformOrigin,a=t.style,s=e.__styleObj?Ke()({},e.__styleObj,{transition:n,transform:o,transitionProperty:i,transformOrigin:r}):{transition:n,transform:o,transitionProperty:i,transformOrigin:r};for(var c in s["-webkit-transition"]=s.transition,s["-webkit-transform"]=s.transform,s["-webkit-transition-property"]=s.transitionProperty,s["-webkit-transform-origin"]=s.transformOrigin,a)s[c]=a[c];e.__styleObj=s,""!==s.transform&&(e.__transformNoneEnabled=!0);var l=E()(s).filter((function(t){return!(/transition/i.test(t)&&""===s[t]||""===t.trim()||void 0===s[t]||!/transform/i.test(t)&&""===s[t]||!isNaN(_()(t,10))||(/transform/i.test(t)&&""===s[t]&&e.__transformNoneEnabled&&(s[t]="none"),0))})).map((function(e){return"".concat(e.replace(/([A-Z]{1})/g,(function(e){return" - $ {\n e.toLowerCase()\n }\n "})),":").concat(s[e])})).join(";"),u=function(){e.setNodeStyle(es(l,!0),1)};u(),jr(e,1,u),e.__banned&&$r(e)}},I=0,N=f.actions,P=f.actions.length;e.addListener("transitionend",(function(){I+=1,T()})),T()}return"continue"}if(b=d.match(/^\$wxs:change:(.+)$/))return e.wxsObserver=e.wxsObserver||{},e.wxsObserver[b[1]]=e.wxsObserver[b[1]]||{},e.wxsObserver[b[1]].observer=f,"continue";if(b=d.match(/^mark:(.+)$/))return e.setMark(b[1],f),"continue";var O=J(d);return c&&e.hasExternalClass(O)?(e.setExternalClass(O,f),"continue"):void 0};for(var h in t)d(h);if(a&&u.doUpdates(r,!0),s.forEach((function(t){e.__wxPropertyListener__&&e.__wxPropertyListener__[t]||(e.setPropertyChangeListener(t,(function(n){var i=e.ownerShadowRoot.getHostNode(),r=o.nodeId.getNodeId(i);da(ho.MODEL_VALUE_CHANGE,{data:n,modelValueName:e.__modelValueName&&e.__modelValueName[t],nodeId:r})})),e.__wxPropertyListener__=e.__wxPropertyListener__||{},e.__wxPropertyListener__[t]=!0)})),e.wxsObserver&&os()&&function(e,t){e.wxsObserver&&!Za.restoring&&(cs.push({node:e,props:t}),ss||(ss=window.requestAnimationFrame((function(){ss=null;var e=cs;cs=[],e.forEach((function(e){var t=e.node,n=e.props;for(var i in t.wxsObserver)if(Mr.call(n,i)&&t.wxsObserver[i]&&"function"==typeof t.wxsObserver[i].observer){var o=t.wxsObserver[i].value;ftparser.safeCallback("WXS Observer",t.wxsObserver[i].observer,null,[as(n[i]),as(o),as(fs(t,!0),!0),as(fs(t),!0)],t.ownerShadowRoot?t.ownerShadowRoot.__wxHost:void 0),t.wxsObserver[i].value=n[i]}}))}))))}(e,t),e.__component__&&!Za.restoring&&o.operationFlow.iterator.nextStep()[0]!==ho.FLOW_APPLY_PROPERTY)throw new Error("Framework inner error (expect FLOW_APPLY_PROPERTY but get another)")},ys=Object.prototype.hasOwnProperty;function ws(e){return"number"==typeof e&&isNaN(e)}var xs=function(e,t){for(var n=function(e){for(var t={},n=0;n<e.length;++n){var i=e[n],o=i&&i.wxKey;o?ys.call(t,o)?i.wxKey=void 0:t[o]=n:ws(o)&&(i.wxKey=void 0)}return t}(e),i=function(e){for(var t={},n=[],i=0;i<e.length;++i){var o=e[i],r=o&&o.wxKey;r?ys.call(t,r)?(console.warn('For developer:Do not set same key "'.concat(r,'" in wx:key.')),o.wxKey=void 0,n.push(i)):t[r]=i:(ws(r)&&(o.wxKey=void 0),n.push(i))}return[t,n]}(t),o=p()(i,2),r=o[0],a=o[1],s=[],c=[],l=[],u=0,d=0,h=0;h<e.length;++h){var f=e[h].wxKey;if(f)if(ys.call(r,f)){var v=r[f];c.push(t[v])}else l.push(h-d),++d,c.push(null);else if(u<a.length){var m=a[u];c.push(t[m]),++u}else l.push(h-d),++d,c.push(null)}for(var _=[],g=0,b=0;g<t.length;){for(var y=t[g],w=y&&y.wxKey,x=c[b],A=x&&x.wxKey;null===x;)A=(x=c[++b])&&x.wxKey;b>=c.length?(s.push({oldIndex:n[w],index:g,pos:-1}),++b,++g):A===w?(_.push(b),++b,++g):w?(A?r[A]===g+1?s.push({oldIndex:n[w],index:g,pos:b}):(x=c[++b])&&x.wxKey===w?(_.push(b),++b):(--b,s.push({oldIndex:n[w],index:g,pos:b})):s.push({oldIndex:n[w],index:g,pos:b}),++g):++b}for(var C=0,E=0;E<s.length;E++){var S=s[E].pos;if(-1===S)break;for(;C<_.length&&S>_[C];)C++;s[E].pos=C>=_.length?-1:_[C]}return{children:c,removes:l,inserts:s}},As=ftparser.dataUtils&&ftparser.dataUtils.deepCopy,Cs=function(e){console.log("G!!"),function e(t){t instanceof ftparser.Component?function(e){e.$$.style.display="none"}(t):t instanceof ftparser.VirtualNode?t.childNodes.forEach((function(t){e(t)})):t instanceof ftparser.TextNode&&(t.textContent=""),t.__banned=!0}(e)};function Es(e){return _c.instance}function Ss(e,t,n){if(e!==t&&(!e||n))if(null==t)n.parentNode.removeChild(n);else if("object"===Ce()(t))if("object"!==Ce()(e)||null===e||e.tag!==t.tag||String(e.wxKey)!==String(t.wxKey)||"virtual"===e.tag&&e.wxVkey!==t.wxVkey){var i=Es(),o=n.parentNode,r=ks(t,null,o.ownerShadowRoot,i,!1);o&&("wx:for"===o.__wxDynamicSync__||"wx:if"===n.__wxDynamicSync__?(i.nodeId.addNode(r),o.replaceChild(r,n),Is(i),i.nodeId.removeNode(n)):o.replaceChild(r,n),n.__banned&&Cs(r))}else{if(t.n&&t.n.length){for(var a=t.n,s=t.attr,c={},l=0;l<a.length;l++){var u=a[l];c[u]=s[u]}bs(n,c,t.raw,t.rawAttr)}void 0!==t.wxScopeData&&(n.__wxScopeData__=t.wxScopeData),void 0!==n.__vtObj&&(n.__vtObj=t),function(e,t,n){var i=!!Oa("customComponents"),o=e.children,r=t.children,a="virtual"===e.tag&&(2===e.wxXCkey||4===e.wxXCkey||void 0===e.wxXCkey)||!i&&o.length!==r.length,s=null,c=null;if(a){var l=xs(o,t.children);r=l.children,s=l.removes,c=l.inserts}for(var u=0;u<o.length;u++){var d=n.childNodes,h=o[u],p=r[u];!p&&a||Ss(h,p,d[u])}if(a){for(var f=t.children,v=Es(),m=n.childNodes,_=[],g=0;g<c.length;g++){var b=c[g];_.push({node:void 0!==b.oldIndex?m[b.oldIndex]:null,before:b.pos>=0?m[b.pos]:void 0,index:b.index})}for(var y=0;y<s.length;y++){var w=m[s[y]];n.removeChild(w),"wx:for"===m.__wxDynamicSync__&&(Is(v),v.nodeId.removeNode(w))}for(var x=0;x<_.length;x++){var A=_[x],C=A.before,E=A.index,S=_[x].node;null===S&&(S=ks(f[E],null,n.ownerShadowRoot,v,!1)),"wx:for"===n.__wxDynamicSync__?(v.nodeId.addNode(S),n.insertBefore(S,C),Is(v)):n.insertBefore(S,C)}n.__banned&&Cs(n)}}(e,t,n)}else if("string"==typeof e)t!==e&&(n.textContent=t);else{var d=n.ownerShadowRoot.createTextNode(t);n.parentNode.replaceChild(d,n)}}function ks(e,t,n,i,o){var a=null;if(i||(i=_c.instance),"shadow"===e.tag&&t)n=a=ftparser.ShadowRoot.create(t);else if("virtual"===e.tag||"shadow"===e.tag){var s="virtual";1===e.wxXCkey?s="wx:if":2===e.wxXCkey&&(s="wx:for"),a=n.createVirtualNode(s),ftparser.Element.setInheritSlots(a),a.__wxVkey__=e.wxVkey,a.__treeManager__=i}else if("wx-slot"===e.tag)a=n.createVirtualNode("slot"),ftparser.Element.setSlotName(a,"");else if(n.tagNameUsed(e.tag)){var c=n.getHostNode(),l=n.getCompDefByTagName(e.tag);"string"==typeof l.is&&(l=l.is);var u=c.getPlaceholder(e.tag);i.compManager.shouldUsePlaceholder(l)&&u?((a=n.createComponent(e.tag,u,e.generics,i)).__placeholder__=!0,i.compManager.arrangePlaceholderReplace(l,(function(){var e=a.__vtObj,t=n.createComponent(e.tag,void 0,e.generics,i);Ts(e,t,i,o),r()(a.childNodes).forEach((function(e){a.removeChild(e),t.appendChild(e)})),a.parentNode&&a.parentNode.replaceChild(t,a)}))):a=n.createComponent(e.tag,void 0,e.generics,i)}else a=n.createComponent(e.tag,void 0,e.generics,i);Ts(e,a,i,o);var d=e.children;if(d)for(var h=0;h<d.length;h++){var p=d[h];if(null!=p)if("object"===Ce()(p)){var f=ks(p,null,n,i,o);a.appendChild(f)}else{var v=n.createTextNode(p);a.appendChild(v)}}return a}function Ts(e,t,n,i){if(!0===t.__placeholder__&&(t.__vtObj=e),3!==e.wxXCkey&&4!==e.wxXCkey||(t.__wxDynamicSync__=4===e.wxXCkey?"wx:for":"wx:if"),e.extraAttr)for(var o in e.extraAttr)t.setAttribute(o,e.extraAttr[o]);void 0!==e.wxScopeData&&(t.__wxScopeData__=e.wxScopeData);var r=t.__component__,a=t.__placeholder__;if(r||a){if(n=_c.instance,Za.restoring){var s=Za.idDataMap[n.nodeId.getNodeId(t)];ftparser.Component.replaceWholeData(t,s,null)}else{var c=n.operationFlow.iterator.nextStep();if(c[0]!==ho.FLOW_CREATE_NODE)throw new Error("Framework inner error (expect FLOW_CREATE_NODE but get another)");n.nodeId.allocNodeId(t,c[1])}t.setAttribute("is",t.is)}var l=i?As(e.attr):e.attr;bs(t,l,e.raw,e.rawAttr)}function Is(e){if(e.operationFlow.iterator.nextStep()[0]!==ho.FLOW_MINIPULATE_CHILD)throw new Error("Expect FLOW_MINIPULATE_CHILD but get another")}var Ns=ks,Ps=ftparser.dataUtils&&ftparser.dataUtils.deepCopy,Os={tag:"shadow",children:[]},Ls=Object.prototype.hasOwnProperty,Rs={d:function(e,t){for(var n in t)Rs.o(t,n)&&!Rs.o(e,n)&&en()(e,n,{enumerable:!0,get:t[n]})},g:function(){if("object"===("undefined"==typeof globalThis?"undefined":Ce()(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===("undefined"==typeof window?"undefined":Ce()(window)))return window}}(),o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},Ms=function(e,t,n){var i=e?e(t,null,Rs.g):Os;return i.tag="shadow",i},Bs=function(e,t,n,i,o){for(var r=o?Ps(e):e,a=0;a<t.length;a++){var s=t[a],c=s[0],l=s[1],u=s[2];if(void 0!==l){for(var d=r,h=c[0],p=1;p<c.length;p++)if(null!=(d=d[h])&&d.__wxspec__&&(d=d.__value__),h=c[p],null!=d&&!Ls.call(d,h)){d=null;break}null!=d&&Ls.call(d,h)&&(n?null!=u&&"object"===Ce()(l)&&l instanceof Array==u instanceof Array?d[h]={__value__:u,__wxspec__:!0}:null!=d[h]&&d[h].__wxspec__||(d[h]={__value__:d[h],__wxspec__:!0}):d[h]=i?Ps(l,!1):l)}}return r},$s=function(){function e(){oe()(this,e)}return ae()(e,[{key:"createInstance",value:function(e,t){var n=new Ds,i=t||_c.instance;if(n._template=this,n._generateFunc=this._generateFunc,n.data=Ps(this._data),n.idMap=za()(null),n.slots=za()(null),Za.restoring){if(Za.compIdArrIndex>=Za.compIdArr.length)throw new Error("Component count unmatched while page recovering");i.nodeId.allocNodeId(e,Za.compIdArr[Za.compIdArrIndex++]);var o=Za.idDataMap[i.nodeId.getNodeId(e)];n._virtualTree=Ms(this._generateFunc,o)}else n._virtualTree=this._virtualTree;return n.shadowRoot=Ns(n._virtualTree,e,null,t,!0),function e(t,n,i){for(var o=t.childNodes,r=0;r<o.length;r++){var a=o[r];a instanceof ftparser.TextNode||(a.__id&&(n[a.__id]=a),void 0!==a.__slotName&&(i[a.__slotName]=a),e(a,n,i))}}(n.shadowRoot,n.idMap,n.slots),n.listeners=[],this._isSimpleComponent||(e.__component__=!0),n._delayedUpdateValues=null,n}},{key:"updateGenerateFunc",value:function(e){}}]),e}();$s.create=function(e,t,n,i){var o=new $s;o._initValues=n,o._data=t;var r=e.template;return o._generateFunc=r.func,o._virtualTree=Ms(o._generateFunc,o._initValues,e.is),o._isSimpleComponent="simple://"===i.domain.slice(0,9),o};var Fs,Ds=function(){function e(){oe()(this,e)}return ae()(e,[{key:"beforeMergeValues",value:function(e,t,n){}},{key:"beforeUpdateValues",value:function(e,t,n){if("number"==typeof n){var i=_c.instance,o=i.operationFlow.iterator.nextStepIf(ho.FLOW_DATA_OBSERVER);if(o){var r=o[1];if(e&&r.length){ya(i.nodeId.getNodeId(e),(function(e){return{isMergedUpdate:!0,dataPaths:e.withDataPaths?r.map((function(e){return e[0]})):void 0}}));var a=ftparser.Component.getDataProxy(e);a.setChanges(r),a.doUpdates(void 0,!0)}}}}},{key:"updateValues",value:function(e,t,n,i,o,r){if(!Za.restoring)if(this._delayedUpdateValues)this._delayedUpdateValues.push([Ps(t),n,i,o,r]);else{this._delayedUpdateValues=[];try{this._updateValues(e,t,n,i,o,r);var a=this._delayedUpdateValues;this._delayedUpdateValues=null;for(var s=0;s<a.length;s++){var c=a[s],l=p()(c,5),u=l[0],d=l[1],h=l[2],f=l[3],v=l[4];this._updateValues(e,u,d,h,f,v)}}catch(e){throw this._delayedUpdateValues=null,e}}}},{key:"_updateValues",value:function(e,t,n,i,o,r){var a="number"!=typeof r,s=!Oa("propValueDeepCopy"),c=Bs(t,o,!0,!1,s),l=Ms(this._generateFunc,c,e.is);Bs(t,o,!1,a,!1);var u=this._virtualTree;this._virtualTree=l,Ss(u,l,this.shadowRoot)}},{key:"_resetShadowChildren",value:function(e,t,n){}}]),e}(),js=$s,Vs=0,qs=0,Hs=!1,Us=!1,Ws=0,zs=function(){return"CSS1Compat"===document.compatMode?document.documentElement.clientHeight:document.body.clientHeight},Gs=function(){var e=0,t=0;return document.body&&(e=document.body.scrollHeight),document.documentElement&&(t=document.documentElement.scrollHeight),Math.max(e,t)},Ys=function(e){var t=(qs-window.scrollY)*e<=0;qs=window.scrollY;var n=zs(),i=window.scrollY+n+Vs,o=Gs();return Vs+n>=o?1===e?window.scrollY>0:0===window.scrollY:1===e?i>=o&&t:i<o&&t},Ks=function(){return Ys(1)},Xs=function(){Ys(-1)&&(Us=!1)},Zs=function(){wd.publishPageEvent("onReachBottom",{},window.__DOMTree__.__wxTmplId)},Js=function(e){"number"==typeof e&&(Vs=e),window.__enablePullUpRefresh__&&(window.onscroll=function(){Hs||(Xs(),Ks()&&!Us&&(Us=!0,Zs()))},window.__DOMTree__.addListener("touchstart",(function(e){Hs=!1})),window.__DOMTree__.addListener("touchmove",(function(e){Xs();var t=Ks();Hs=!0,t&&!Us&&(Us=!0,Ws++)})),window.__DOMTree__.addListener("touchend",(function(e){for(var t=0;t<Ws;t++)Zs();Ws=0,Hs=!1})))},Qs=function(){window.__enablePageScroll__&&window.addEventListener("scroll",(function(e){var t=e.target.documentElement.scrollTop||e.target.body.scrollTop,n={scrollTop:t};t>=0&&wd.publishPageEvent("onPageScroll",n,window.__DOMTree__.__wxTmplId)}))},ec={domain:"/",writeOnly:!1,allowInWriteOnly:!1,lazyRegistration:!0,classPrefix:"",renderingMode:"full",templateEngine:null,multipleSlots:!1,publicProperties:!0,reflectToAttributes:!1,writeFieldsToNode:!1,writeIdToDOM:!1,separateInnerData:!1,innerDataExclude:null,randomizeTagName:!1,virtualHost:!1},tc={lazyRegistration:!0,publicProperties:!0},nc={String:String,Number:Number,Boolean:Boolean,Object:Object,Array:Array,null:null};function ic(e){var t=__AppCode__["customStyle://hasWxss"];e=t?e+".wxss":e;for(var n=document.head.querySelectorAll("style"),i=/^\.?\//,o=function(){var o=n[r],a=o.getAttribute(t?"wxss:path":"page");"string"==typeof a&&"app"===e&&(window.__extendedLibList__||[]).forEach((function(e){"app.".concat(e,".wxss")===a.replace(i,"")&&o.parentNode.removeChild(o)})),"string"==typeof a&&e&&e===a.replace(i,"")&&o.parentNode.removeChild(o)},r=0;r<n.length;r++)o()}function oc(e,t){var n=p()(e,4),i=n[0],o=n[1],r=n[2],a=n[3];t||(Fs.rootCompName=r);for(var s=0;s<i.length;s++){var c=i[s];c.options.hasObservers&&(c.observers={"**":function(){}}),c.options=tc,ftparser.registerBehavior(c)}var l=__AppCode__[r+".wxss"];l&&l(),o.forEach((function(e){var n=function(e,t,n){for(var i in e.properties)e.properties[i].type=nc[e.properties[i].type];var o="";t||(o=n.compManager.getComponentClassPrefix(e.is));var r=e.options,a=!(!r.writeIdToDOM&&!t);e.options=Ke()({},ec),e.options.multipleSlots=r.multipleSlots||!1,e.options.writeOnly=r.writeOnly||!1,e.options.writeIdToDOM=a,e.options.domain=r.domain,e.options.randomizeTagName=!1,e.options.templateEngine=js,e.options.innerDataExclude=function(e){if(!e)return null;var t=e.lastIndexOf("/"),n=e.slice(1,t),i=e.slice(t+1);return new RegExp(n,i)}(r.innerDataExcludeString),e.options.virtualHost=r.virtualHost;var s=!1;if(r.styleIsolation){var c=r.styleIsolation;"page-"===c.slice(0,5)&&(s=!0,c=c.slice(5)),"isolated"===c?(o=n.compManager.getComponentClassPrefix(e.is),e.options.addGlobalClass=!1):"strong-isolated"===c?(o=n.compManager.getComponentClassPrefix(e.is),e.options.addGlobalClass=!1,e.options.randomizeTagName=!0):"apply-shared"===c?(o=n.compManager.getComponentClassPrefix(e.is),e.options.addGlobalClass=!0):"shared"===c&&"/"===r.domain?(o="",e.options.addGlobalClass=!1):s=!1}else e.options.addGlobalClass=r.addGlobalClass||!1;e.options.classPrefix=o,r.hasObservers&&(e.observers={"**":function(){}});var l=window.__generateFunc__;return"undefined"!=typeof __AppCode__&&__AppCode__[e.template]&&(l=__AppCode__[e.template]),e.template={path:e.template,func:l},window.ftparser.registerElement(e),{disableAppWxss:s,classPrefix:o}}(e,e.is===r&&!t,Fs),i=n.disableAppWxss,o=n.classPrefix;r===e.is&&!t&&i&&ic("app");var s=__AppCode__["customStyle://".concat(e.is,".wxss")];"function"==typeof s&&Pn(s(),window.innerWidth||window.screen.availWidth,window.devicePixelRatio,"".concat(e.is,".wxssCustomStyle)}"),"customStyle");var c=e.is+".wxss",l=__AppCode__&&__AppCode__[c];for(var u in l&&(e.is!==r||t)&&l(o&&o+"--",{allowIllegalSelector:!0}),a)Object.hasOwnProperty.call(ftparser.Component._list,a[u])&&(ftparser.Component._list[u]=ftparser.Component._list[a[u]])}))}var rc=Ba(["inject"]);wx.onInitialRenderingCacheReady((function(e){try{__virtualDOM__.applyInitialRenderingCache(e)}catch(e){console.log("error",e)}}));var ac,sc=!1;function cc(){if(__wxConfig__.darkmode){var e=document.createElement("style");e.innerText='@media (prefers-color-scheme:dark){html{background-color:#191919;color:hsla(0,0%,100%,0.8)}\n wx-button{background-color:#343434;color:#d6d6d6}\n wx-button:after{border-color:#2d2d2d}\n wx-button[type="default"]{background-color:#343434;color:#d6d6d6}\n wx-button[disabled]{color:hsla(0,0%,100%,0.6)}\n wx-button[disabled]:not([type]),wx-button[disabled][type="default"]{background-color:hsla(0,0%,100%,0.08);color:hsla(0,0%,100%,0.2)}\n wx-button[type="primary"][plain][disabled]{border-color:hsla(0,0%,100%,0.08);color:hsla(0,0%,100%,0.2)}\n wx-button[type="default"][plain]{background-color:transparent;border:1px solid #d6d6d6;color:#d6d6d6}\n wx-button[type="default"][plain][disabled]{border-color:hsla(0,0%,100%,0.2);color:hsla(0,0%,100%,0.2)}\n .button-hover{background-color:hsla(0,0%,100%,0.1);color:#d6d6d6}\n .button-hover[plain]{background-color:transparent;border-color:hsla(0,0%,100%,0.05);color:hsla(0,0%,100%,0.05)}\n .button-hover[type="default"]{background-color:hsla(0,0%,100%,0.1);color:#d6d6d6}\n .button-hover[type="default"][plain]{background-color:transparent;border-color:hsla(0,0%,100%,0.05);color:hsla(0,0%,100%,0.05)}\n wx-checkbox .wx-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}\n wx-checkbox .wx-checkbox-input.wx-checkbox-input-checked{color:#07c160}\n wx-checkbox .wx-checkbox-input.wx-checkbox-input-disabled{background-color:#2c2c2c;border:1px solid #373737}\n wx-checkbox\n .wx-checkbox-input.wx-checkbox-input-disabled.wx-checkbox-input-checked{background-color:#2b2b2b}\n wx-checkbox .wx-checkbox-input.wx-checkbox-input-disabled:before{color:#6b6b6b}\n .input-placeholder,.input-placeholder-dark{color:hsla(0,0%,100%,0.3)}\n .wx-picker__mask{background:linear-gradient(180deg,#2c2c2c,rgba(44,44,44,0.7)),linear-gradient(180deg,rgba(44,44,44,0.7),#2c2c2c);background-position:top,bottom;background-repeat:no-repeat;background-size:100% 102px;height:100%;margin:0 auto;top:0}\n .wx-picker__indicator:after,.wx-picker__indicator:before{color:hsla(0,0%,100%,0.05)}\n .wx-picker__indicator:before{border-top:1px solid hsla(0,0%,100%,0.05)}\n .wx-picker__indicator:after{border-bottom:1px solid hsla(0,0%,100%,0.05)}\n wx-radio .wx-radio-input{background-color:#2c2c2c;border:1px solid #656565}\n wx-radio .wx-radio-input.wx-radio-input-checked{background-color:#07c160;border-color:#07c160}\n wx-radio .wx-radio-input.wx-radio-input-checked:before{color:#fff}\n wx-radio .wx-radio-input.wx-radio-input-disabled{background-color:#2c2c2c;border-color:#373737}\n wx-radio .wx-radio-input.wx-radio-input-disabled.wx-radio-input-checked{background-color:#2b2b2b;border-color:#373737}\n wx-radio .wx-radio-input.wx-radio-input-disabled:before{color:#6b6b6b}\n wx-slider .wx-slider-handle-wrapper{background-color:#393939}\n wx-slider .wx-slider-track{background-color:#07c160}\n wx-slider .wx-slider-value{color:#888;font-size:14px;margin-left:1em;text-align:center}\n wx-slider .wx-slider-disabled .wx-slider-track{background-color:#ccc}\n wx-slider .wx-slider-disabled .wx-slider-thumb{background-color:#fff;border-color:#ccc}\n wx-switch .wx-switch-input{border:1px solid hsla(240,3%,49%,0.16)}\n wx-switch .wx-switch-input,wx-switch .wx-switch-input:before{background-color:hsla(240,3%,49%,0.16)}\n wx-switch .wx-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.4)}\n wx-switch .wx-switch-input.wx-switch-input-checked{background-color:#07c160;border-color:#07c160}\n wx-switch .wx-checkbox-input{background-color:#2c2c2c;border:1px solid #656565;color:#07c160}\n wx-switch .wx-checkbox-input.wx-checkbox-input-disabled{background-color:#2c2c2c;border:1px solid #373737}\n wx-switch .wx-checkbox-input.wx-checkbox-input-disabled:before{color:#6b6b6b}\n .navigator-hover{background-color:hsla(0,0%,100%,0.1)}\n wx-textarea{color:hsla(0,0%,100%,0.8)}\n wx-editor .ql-editor.ql-blank:before{color:hsla(0,0%,100%,0.6)}\n .wx-wins-scrollbar > div{background-color:#8f8f8f}\n wx-map{color:#000000}\n .wx-picker .wx-picker-hd{background-color:var(--weui-BG-2)}\n .wx-picker .wx-picker-hd .wx-picker-action{color:var(--weui-FG-1)}\n .wx-picker .wx-picker-hd .wx-picker-action:last-child{color:var(--weui-BRAND)}\n .wx-picker .wx-picker-bd{background-color:var(--weui-BG-2)}\n .wx-picker .wx-picker-mask2{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}\n .wx-picker .wx-picker-content .wx-picker-item{color:var(--weui-FG-0)}\n .wx-picker .wx-picker-bd .wx-picker-group{border-left-width:0px}\n .wx-picker .wx-picker-bd .wx-picker-indicator:after{border-bottom:1px solid var(--weui-FG-3)}\n .wx-picker .wx-picker-bd .wx-picker-indicator:before{border-top:1px solid var(--weui-FG-3)}\n }',document.getElementsByTagName("head")[0].appendChild(e)}setTimeout((function(){var e=window.matchMedia("(prefers-color-scheme: dark)");e&&e.matches?lc("dark"):lc("light")}),50)}function lc(e){var t=__wxConfig__.useExtendedLib;t&&t.weui&&(document.getElementsByTagName("body")[0].dataset.weuiTheme=e)}ac=function(){sc||(sc=!0,Mn.publish("viewReady",{})),O&&document.querySelector("html").classList.add("use-web-component")},"loading"!==document.readyState?ac():document.addEventListener("DOMContentLoaded",ac),Mn.subscribe("updateBodyTheme",(function(e){lc(e.theme)}));var uc={init:function(e,t){function n(){e(),Mn.publish("DOMContentLoaded",{})}!function(e){Fs=e,ca(ho.COMPONENT_DEF,(function(t){oc(t,!1),e.compManager.setInitialSubPackage(t[2])})),ca(ho.COMPONENT_DEF_TAB,(function(t){e.compManager.injectComponentsRecursively(["custom-tab-bar/index"],(function(){oc(t,!0),rc.on("inject",(function(){}))}),!0)}),0),ca(ho.DESTROY_TAB,(function(){e.tabDestroyed=!0,window.__TAB_BAR__&&window.__TAB_BAR__.parentNode.removeChild(window.__TAB_BAR__)}),0),ca(ho.LOAD_COMPONENT_DEF,(function(t){if(!__wxConfig.isFirstPage&&__wxConfig.isLazyLoad){var n=t[0],i=e.compManager;i.setInitialSubPackage(n),i.injectComponentsRecursively([n],(function(){rc.on("inject",(function(){}))}),!0)}}),0)}(t),wx.getInitialRenderingCache(),document.documentElement.style.fontSize="16px",Oi&&n(),setTimeout(s()(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.matchMedia("(orientation: landscape)").matches||/landscape/i.test((screen.orientation||{}).type)||90===window.orientation||-90===window.orientation?window.__deviceOrientation__="landscape":window.__deviceOrientation__="portrait",cc(),"game"===__wxConfig__.type){e.next=5;break}return e.next=5,new d.a((function(e){FinChatJSBridge.subscribe("responseLoadGlobalFontFaces",(function(t){try{t.globalFontFaces.forEach((function(e){var t=e.family,n=e.source,i=e.desc,o=void 0===i?{}:i,r=n.startsWith("url")?n:'url("'.concat(n,'")'),a=new FontFace(t,r,o);function s(){"loaded"===a.status&&document.fonts.add(a)}a.load().then(s,s)}))}catch(e){}e()})),FinChatJSBridge.publish("requestLoadGlobalFontFaces",{})}));case 5:!Oi&&n();case 6:case"end":return e.stop()}}),e)}))),100)},disableStyleElement:ic},dc=Object.prototype.hasOwnProperty,hc=new Nn.a,pc=function(e,t){var n=e.filter((function(e){return hc.has(e)})),i=e.filter((function(e){return!hc.has(e)}));if(n.length>0&&ftConsole.info("[VD] loadJsFileToWebview ignored loaded: "+n.join(",")),0===i.length)return ftConsole.info("[VD] loadJsFileToWebview no files to load, return"),void t(0);var o=v()();i.forEach((function(e){hc.add(e)})),FinChatJSBridge.invoke("loadJsFiles",{paths:i.filter((function(e){return!e.startsWith("__plugin__")})).map((function(e){return e+".webview.js"}))},(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.scripts&&document&&document.createElement&&e.scripts.forEach((function(e){var t=document.createElement("script");t.text=e,document.head.appendChild(t)}));var n=v()();t(n-o)}))},fc=function(){function e(t,n){var i=this;oe()(this,e),this.__viewId=t,this.__treeManager=n,this.__loadedSubPackage=new Nn.a,this.__injectedSubPackage=new Nn.a,this.__ensureComponentNotifier={},this.__placeholderReplacement=null,this.__injectedComponents=new Nn.a([]),this.__classPrefixMap=null,this.__usedClassPrefix=new Nn.a,this.__restoreInjectNotifier=null,this.__log=function(e){ftConsole.info("[CompMgr] [view] [".concat(i.__viewId,"] ").concat(e))}}return ae()(e,[{key:"getRestoredData",value:function(){return[Tn()(this.__loadedSubPackage),Tn()(this.__injectedSubPackage),Object.fromEntries(this.__classPrefixMap),Tn()(this.__injectedComponents),this.__treeManager.rootCompName]}},{key:"getRestoreInjectNotifier",value:function(){return this.__restoreInjectNotifier||(this.__restoreInjectNotifier=Ba(["inject"])),this.__restoreInjectNotifier}},{key:"restore",value:function(e){var t=this,n=p()(e,5),i=n[0],o=n[1],r=n[2],a=n[3],s=n[4],c=function(){!function(e){var t=Ua(e),n=("undefined"!=typeof __AppCode__?__AppCode__:{})[t+".wxss"];void 0!==n&&"function"==typeof n||(n=function(){}),window.__setCssStartTime__=v()(),n(),window.__setCssEndTime__=v()()}(s),function(e){var t=Ua(e),n=("undefined"!=typeof __AppCode__?__AppCode__:{})["./"+t+".wxml"];A()(n)&&(n=n[0][n[1]]),document.dispatchEvent(new CustomEvent("generateFuncReady",{detail:{generateFunc:n}}))}(s),t.getRestoreInjectNotifier().notify("inject")};this.setSubPackageLoaded(i),this.batchInjectSubPackages(o,(function(){Da()?t.batchInjectComponents(a,c):c()})),this.__usedClassPrefix=new Nn.a(Ze()(r)),this.__classPrefixMap=new Ia.a(Pa()(r))}},{key:"onRestoreInjectDone",value:function(e){this.getRestoreInjectNotifier().on("inject",e)}},{key:"recurseUsingComponents",value:function(e){if(!Da())return e;var t=__AppCode__,n={},i=new Nn.a,o=function e(o){if(!i.has(o)){i.add(o);var r=function(e,t){var n={},i=(t[e+".json"]||{}).usingComponents||{};for(var o in i)n["wx-"+o]=Ra(e,String(i[o]));return n}(o,t),a=function(e,t){var n={},i=(t[e+".json"]||{}).componentGenerics||{};for(var o in i){var r=i[o];"object"===Ce()(r)?n["wx-"+o]={default:Ra(e,String(r.default||""))}:null!=r&&(n["wx-"+o]={})}return n}(o,t),s=(d={},h=(t[o+".json"]||{}).componentPlaceholder||{},E()(h).forEach((function(e){d["wx-"+e]="wx-"+String(h[e])})),d);for(var c in r)dc.call(s,c)?dc.call(r,s[c])&&e(r[s[c]]):e(r[c]);for(var l in a){var u=a[l];"string"==typeof u.default&&e(u.default)}(n["./"+o+".wxml"]||[]).forEach((function(n){var i=n.substr(2,n.length-7);dc.call(t,i+".json")&&e(i)}))}var d,h};return e.forEach((function(e){return o(e)})),Tn()(i)}},{key:"batchLoadSubPackages",value:function(e,t){var n=this;d.a.all(e.map((function(e){return new d.a((function(t){var n=v()();__appServiceSDK__.loadSubpackage({name:e,success:function(){var e=v()();t(e-n)},complete:function(t){ftConsole.info("[VD] loadSubpackage "+e+": ",t)}})}))}))).then((function(){n.setSubPackageLoaded(e),n.__treeManager.operationFlow.sendInIndividualFlow([ho.FLOW_SET_SUBPACKAGE_LOADED,e]),t()}))}},{key:"setSubPackageLoaded",value:function(e){var t=this;e.forEach((function(e){t.__loadedSubPackage.add(e)}))}},{key:"batchInjectSubPackages",value:function(e,t){var n=this;this.__log("injectSubPackages: "+e.join(", "));var i=e.filter((function(e){return!n.__injectedSubPackage.has(e)})).map((function(e){return"__APP__"===e||"/"===e.slice(-1)?e:e+"/"})),o=[];i.forEach((function(e){o.push.apply(o,r()(function(e,t){var n=Ze()(__wxConfig.plugins||{}).filter((function(t){return t.subpackage.includes(e)})).map((function(e){var t=e.provider,n="__plugin__/".concat(t);return{plugin_id:t,prefix_path:ja.includes(t)?null:n}})),i="__APP__"===e,o=i?"":e;if(Da()){var r=[];return n.forEach((function(e){var t=(o+e.prefix_path+"/").replace(/\/\/$/,"/");e.prefix_path||(t+="__extended__/".concat(e.plugin_id,"/")),r.push(t+Ma.plugin)})),r.push(o+Ma.lazyCommon,o+Ma.lazyApp),r}var a=n.map((function(e){var t=(o+e.prefix_path+"/").replace(/\/\/$/,"/");return e.prefix_path||(t+="__extended__/".concat(e.plugin_id,"/")),t+Ma.plugin}));return i?a.push(o+Ma.main):a.push(o+Ma.sub),a}(e)))})),pc(o,(function(){n.setSubPackageInjected(i),t()}))}},{key:"batchInjectComponents",value:function(e,t){var n=this;if(!Da())return t(0),-1;var i=e.map((function(e){return function(e){return $a||Fa(),(ftparser.Component._list[e]&&ftparser.Component._list[e].is||e).replace(/^plugin-private:\/\/([0-9a-zA-Z]+)\//,(function(e,t){return($a[t]||"")+"__plugin__/"+t+"/"})).replace(/^wx:\/\//,"__wx__/")}(e)})).filter((function(e){return!n.__injectedComponents.has(e)}));return this.__log("injectComponents: "+i.join(", ")),pc(i,(function(e){i.forEach((function(e){n.__injectedComponents.add(e)})),t(e)})),-1}},{key:"setSubPackageInjected",value:function(e){var t=this;e.forEach((function(e){t.__injectedSubPackage.add(e)}))}},{key:"setInitialSubPackage",value:function(e){var t=[Ha(e)];qa(e)||t.push("__APP__"),this.setSubPackageLoaded(t),this.setSubPackageInjected(t)}},{key:"shouldUsePlaceholder",value:function(e){var t=Ha(e),n=this.__loadedSubPackage.has(t);return Da()&&(n=n&&this.__injectedComponents.has(e)),!n}},{key:"doLazyLoadReport",value:function(e,t){}},{key:"injectComponentsRecursively",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Da()){var o=this.recurseUsingComponents(e);this.batchInjectComponents(o,(function(e){i&&n.doLazyLoadReport(o.length,e),t()}))}else t()}},{key:"ensureComponents",value:function(e,t){var n=this,i=Math.floor(4294967296*(1+Math.random())).toString(16).slice(1),o=e.map((function(e){return Ha(e)})),r=o;return(o=Tn()(new Nn.a(r))).some((function(e){return!qa(e)}))&&o.unshift("__APP__"),o=o.filter((function(e){return!n.__loadedSubPackage.has(e)})),this.batchLoadSubPackages(o,(function(){n.__treeManager.operationFlow.sendInIndividualFlow([ho.FLOW_INJECT_SUBPACKAGE,i,o]),Da()&&n.__treeManager.operationFlow.sendInIndividualFlow([ho.FLOW_INJECT_COMPONENT,i,e]),n.batchInjectSubPackages(o),n.injectComponentsRecursively(e),t(i)})),i}},{key:"getEnsureComponentsNotifier",value:function(e){if(!this.__ensureComponentNotifier[e]){var t=["inject","def"];Da()&&t.push("inject-common"),this.__ensureComponentNotifier[e]=Ba(t)}return this.__ensureComponentNotifier[e]}},{key:"destructEnsureComponentsNotifier",value:function(e){this.__ensureComponentNotifier[e]&&delete this.__ensureComponentNotifier[e]}},{key:"injectSubPackageOnReady",value:function(e,t){var n=this;this.batchInjectSubPackages(t,(function(){var t=Da()?"inject-common":"inject";n.getEnsureComponentsNotifier(e).notify(t)}))}},{key:"injectComponentsOnReady",value:function(e,t){var n=this;Da()&&this.getEnsureComponentsNotifier(e).on("inject-common",(function(){n.injectComponentsRecursively(t,(function(){n.getEnsureComponentsNotifier(e).notify("inject")}))}))}},{key:"appendComponentDef",value:function(e,t){var n=this;this.getEnsureComponentsNotifier(e).on("inject",(function(){oc(t,!1),n.getEnsureComponentsNotifier(e).notify("def")}))}},{key:"waitComponentEnsuring",value:function(e,t){var n=this;this.getEnsureComponentsNotifier(e).on("def",(function(){t((function(){n.destructEnsureComponentsNotifier(e)}))}))}},{key:"arrangePlaceholderReplace",value:function(e,t){null===this.__placeholderReplacement&&(this.__placeholderReplacement={compNames:new Nn.a,replacers:[]}),this.__placeholderReplacement.compNames.add(e),this.__placeholderReplacement.replacers.push(t)}},{key:"getPlaceholderReplaceData",value:function(){return this.__placeholderReplacement}},{key:"finishPlaceholderReplacement",value:function(){this.__placeholderReplacement=null}},{key:"newComponentClassPrefix",value:function(e){if(this.__classPrefixMap||(this.__classPrefixMap=new Ia.a),this.__classPrefixMap.has(e))return this.__classPrefixMap.get(e);var t="";if("custom-tab-bar/index"===e)t="custom-tab-bar-index";else{var n=e.split(/[^a-z0-9]+/i),i="index"===n[n.length-1]?1:0,o=0;do{1!==n.length&&(i<n.length?i+=1:o+=1),t=n.slice(-i).join("-"),o>0&&(t+="-"+o),Number(t[0])>=0&&(t="x-"+t)}while(this.__usedClassPrefix.has(t))}return t}},{key:"oldComponentClassPrefix",value:function(e){if(this.__classPrefixMap||(this.__treeManager.route=window.__path__,this.__classPrefixMap=function(e){var t=new Ia.a;if(e="/"+e,window._newClassPrefix&&window._newClassPrefix[e])for(var n=window._newClassPrefix[e],i=E()(n),o=0;o<i.length;o++){var r=i[o],a=n[r];t.has(r)||t.set(r,a.endsWith("--")?a.slice(0,-2):a)}return t}(this.__treeManager.route)),this.__classPrefixMap.has(e))return this.__classPrefixMap.get(e);var t="";if("custom-tab-bar/index"===e)t="custom-tab-bar-index";else{var n=e.split("/"),i=n.length;t="index"===n[i-1]?"".concat(n[i-2],"-").concat(n[i-1]):n[i-1]}return t}},{key:"getComponentClassPrefix",value:function(e){var t=__AppCode__["customStyle://hasWxss"]?this.newComponentClassPrefix(e):this.oldComponentClassPrefix(e);return this.__classPrefixMap.set(e,t),this.__usedClassPrefix.add(t),t}}]),e}(),vc=function(){function e(){oe()(this,e),this._idNodeMap={}}return ae()(e,[{key:"getAll",value:function(){return this._idNodeMap}},{key:"getNodeById",value:function(e){return this._idNodeMap[e]}},{key:"getNodeId",value:function(e){return e.__wxTmplId}},{key:"allocNodeId",value:function(e,t){var n=t||Math.floor(4294967296*(1+Math.random())).toString(16).slice(1);return e.__wxTmplId=n,this._idNodeMap[e.__wxTmplId]=e,n}},{key:"addNode",value:function(){}},{key:"removeNode",value:function(e){if(e.__wxTmplId&&delete this._idNodeMap[e.__wxTmplId],e.childNodes)for(var t=0;t<e.childNodes.length;t++)this.removeNode(e.childNodes[t]);e.shadowRoot instanceof ftparser.Element&&this.removeNode(e.shadowRoot)}}]),e}(),mc={},_c=function(){function e(t,n){oe()(this,e),this.listenerInited=!1,this.root=null,this.tabRoot=null,this.tabDestroyed=!1,this.usedDef=null,this.tabUsedDef=null,this.statesData=null,this.operationFlow=new ma(t,this),this.nodeId=new vc,this.compManager=new fc(t,this),this.rootNodeId="",this.tabNodeId="",this.rootCompName="",this.tabCompName="",this.applyAnimationCbMap={},this.clearAnimationCbMap={},this.viewInfoCbMap={},this.initialRootData=null,this.lifetimeListener=null,this.route=n}return ae()(e,null,[{key:"create",value:function(t,n){var i=new e(t,n);return i.viewId=t,mc[t]=i,i}},{key:"destroy",value:function(e){delete mc[e]}},{key:"get",value:function(e){return mc[e]}},{key:"listViewId",value:function(){var e=[];for(var t in mc)e.push(mc[t].viewId);return e}},{key:"list",value:function(){var e=[];for(var t in mc)e.push(mc[t]);return e}}]),e}(),gc=null;window.__virtualDOM__={initExt:function(){var e=__wxConfig__,t=__path__;window.requestAnimationFrame((function(){var n=e.windows&&e.windows.pages&&e.windows.pages[t]||{},i=n.onReachBottomDistance||e.window&&e.window.onReachBottomDistance||50;Js(i),Qs(),k&&M(gi,"2.42.10")&&n.disableScroll&&(document.body.style.height="100%",document.body.style.overflowY="hidden")}))},applyInitialRenderingCache:function(e){(e=e.content)&&(_c.instance&&_c.instance.root||(document.body.innerHTML=e))},getPluginRoutePrefix:function(e){return gc||function(){gc={};var e=null;__wxConfig&&__wxConfig.plugins&&(e=__wxConfig.plugins);var t=!1;if(e)for(var n in e){var i=e[n].provider,o=e[n].subpackage;if(void 0!==o){t=!0;var r=o||"";"__APP__"===r&&(r=""),"/"===r[0]&&(r=r.slice(1)),r&&"/"!==r.slice(-1)&&(r+="/"),gc[i]=r}}if(!t){var a;if(__wxConfig&&__wxConfig.subPackages)a=__wxConfig.subPackages;else{if("undefined"==typeof window||!window||!window.__subPackages)return;a=window.__subPackages}a.length&&a.forEach((function(e){if(e){var t=e.root||"";if(t&&"/"!==t.slice(-1)&&(t+="/"),e.plugins)for(var n in e.plugins)if(Object.prototype.hasOwnProperty.call(e.plugins,n)){var i=e.plugins[n]&&e.plugins[n].provider;i&&(gc[i]=t)}}}))}}(),(gc[e]||"")+"__plugin__/"+e+"/"},addIntersectionObserver:yo,addMediaQueryObserver:So,getNodeById:function(e,t){return _c.instance?_c.instance.nodeId.getNodeById(e):null},getNodeId:function(e,t){return _c.instance?_c.instance.nodeId.getNodeId(e):""},getRootNodeId:function(e){return _c.instance.rootNodeId},removeIntersectionObserver:bo,removeMediaQueryObserver:ko,scheduleIntersectionUpdate:Ao,setEventHandlerChangeListener:function(e,t){e.__eventHandlerChangeListener__=t},startInitRender:function(){_c.instance.operationFlow.unblock()}};var bc,yc,wc=!1;function xc(e,t,n,i,o){i=i||0,o=o||0,this.identifier=t,this.target=e,this.clientX=n.clientX+i,this.clientY=n.clientY+o,this.screenX=n.screenX+i,this.screenY=n.screenY+o,this.pageX=n.pageX+i,this.pageY=n.pageY+o}function Ac(){var e=[];return e.item=function(e){return this[e]||null},e.identifiedTouch=function(e){return this[e+1]||null},e}function Cc(e){var t;(null==e||null===(t=e.path)||void 0===t?void 0:t.length)>4&&e.path[3].className&&-1!==e.path[3].className.indexOf("wx-swiper-slide-frame")||(e.preventDefault(),e.stopPropagation())}function Ec(e){return function(t){var n;(null==t||null===(n=t.path)||void 0===n?void 0:n.length)>1&&t.path[1].className&&-1!==t.path[1].className.indexOf("ql-editor")||(function(e){if(Ic.ignoreTags.indexOf(e.target.tagName)>=0)return!0;if("mousedown"===e.type){var t=document.querySelectorAll("[contenteditable]");return!!Array.prototype.some.call(t,(function(t){return t.contains(e.target)}))||"BODY"!==document.activeElement.tagName}}(t)||Cc(t),1===t.which&&(("mousedown"===t.type||!yc||yc&&!yc.dispatchEvent)&&(yc=t.target),wc&&!t.shiftKey&&(Sc("touchend",t),wc=!1),Sc(e,t),!wc&&t.shiftKey&&(wc=!0,bc={pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY},Sc("touchstart",t)),"mouseup"===t.type&&(bc=null,wc=!1,yc=null)))}}function Sc(e,t){var n=document.createEvent("Event");n.initEvent(e,!0,!0),n.altKey=t.altKey,n.ctrlKey=t.ctrlKey,n.metaKey=t.metaKey,n.shiftKey=t.shiftKey,n.touches=Tc(t,e),n.targetTouches=Tc(t,e),n.changedTouches=function(e,t){var n=kc(e);return!wc||"mouseup"===e.type||"touchstart"!==t&&"touchend"!==t||n.splice(0,1),n}(t,e),yc.dispatchEvent(n)}function kc(e){var t=new Ac;if(wc){var n=Ic.multiTouchOffset,i=bc.pageX-e.pageX,o=bc.pageY-e.pageY;t.push(new xc(yc,1,bc,-1*i-n,-1*o+n)),t.push(new xc(yc,2,bc,i+n,o-n))}else t.push(new xc(yc,1,e,0,0));return t}function Tc(e,t){if("mouseup"===e.type)return new Ac;var n=kc(e);return wc&&"mouseup"!==e.type&&"touchend"===t&&n.splice(1,1),n}function Ic(){"ontouchstart"in window||window.Modernizr&&window.Modernizr.touch||(document.createTouch||(document.createTouch=function(e,t,n,i,o,r,a,s,c){return void 0!==s&&void 0!==c||(s=i-window.pageXOffset,c=o-window.pageYOffset),new xc(t,n,{pageX:i,pageY:o,screenX:r,screenY:a,clientX:s,clientY:c})}),document.createTouchList||(document.createTouchList=function(){for(var e=new Ac,t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length=arguments.length,e}),function(){for(var e=[window,document.documentElement],t=["ontouchstart","ontouchmove","ontouchcancel","ontouchend"],n=0;n<e.length;n++)for(var i=0;i<t.length;i++)e[n]&&void 0===e[n][t[i]]&&(e[n][t[i]]=null)}(),window.addEventListener("mousedown",Ec("touchstart"),!0),window.addEventListener("mousemove",Ec("touchmove"),!0),window.addEventListener("mouseup",Ec("touchend"),!0),window.addEventListener("mouseenter",Cc,!0),window.addEventListener("mouseleave",Cc,!0),window.addEventListener("mouseout",Cc,!0),window.addEventListener("mouseover",Cc,!0))}Ic.multiTouchOffset=75,Ic.ignoreTags=["TEXTAREA","INPUT","SELECT"],Ic.template=function(e){var t="translate("+(e.clientX-15)+"px, "+(e.clientY-15)+"px)";return{position:"fixed",left:0,top:0,background:"#fff",border:"solid 1px #999",opacity:.6,borderRadius:"100%",height:"30px",width:"30px",padding:0,margin:0,display:"block",overflow:"hidden",pointerEvents:"none",webkitUserSelect:"none",mozUserSelect:"none",userSelect:"none",webkitTransform:t,mozTransform:t,transform:t,zIndex:100}};var Nc,Pc=Ic;function Oc(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Oc(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function Rc(e){window.__pageFrameEndTime__?e():document.addEventListener("generateFuncReady",e)}Nc=window,["webkitAnimationStart","webkitAnimationIteration","webkitAnimationEnd","animationstart","animationiteration","animationend","webkitTransitionEnd","transitionend"].forEach((function(e){"webkit"===e.slice(0,6)&&(e=e.slice(6).toLowerCase()),Nc.addEventListener(e,(function(t){var n;t.target.__wxElement&&ftparser.triggerEvent(t.target.__wxElement,e,{animationName:(n=t).animationName,elapsedTime:n.elapsedTime}),document.dispatchEvent(new CustomEvent("pageReRender",{}))}),!0)})),function(e){var t={},n={},i={onTouchStart:"tap",onTouchMove:"touchmove",onTouchEnd:"touchend",onTouchCancel:"touchcancel"};function o(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];t[e]&&t[e].length&&t[e].forEach((function(e){e.apply(null,i)}))}function a(e,n){t[e]=t[e]||[],t[e].push(n)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=t,c=s.viewId,l=s.type;if("TextView"===l||"ImageView"===l){n[l]=n[l]||{},n[l][c]=n[l][c]||{lastTouches:[]};var u=n[l][c],d="on".concat(e),h=[],p=[];if("onTouchStart"===d){h.push.apply(h,r()(u.lastTouches));var f={x:t.touch.x,y:t.touch.y,identifier:t.touch.id};p.push(f),h.push(f)}else if("onTouchMove"===d)for(var v in u.lastTouches){var m=u.lastTouches[v],_=!1;for(var g in t.touches){var b={x:t.touches[g].x,y:t.touches[g].y,identifier:t.touches[g].id};if(b.identifier===m.identifier&&(m.x!==b.x||m.y!==b.y)){h.push(b),p.push(b),_=!0;break}}_||h.push(m)}else if("onTouchEnd"===d){var y={x:t.touch.x,y:t.touch.y,identifier:t.touch.id};for(var w in u.lastTouches){var x=u.lastTouches[w];x.identifier===y.identifier?p.push(y):h.push(x)}}else if("onTouchCancel"===d)for(var A in t.touches){var C={x:t.touches[A].x,y:t.touches[A].y,identifier:t.touches[A].id};p.push(C)}u.lastTouches=h,o("on".concat(l).concat(e),{type:i["on".concat(e)],viewId:c,touches:h,changedTouches:p,data:s},a)}}a("onTouchStart",(function(e,t){s("TouchStart",e,t)})),a("onTouchMove",(function(e,t){s("TouchMove",e,t)})),a("onTouchEnd",(function(e,t){s("TouchEnd",e,t)})),a("onTouchCancel",(function(e,t){s("TouchCancel",e,t)})),["onCoverViewTapEvent","onCoverImageTapEvent"].forEach((function(e){FinChatJSBridge.subscribe(e,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t.touch={x:0,y:0,id:0},t.type="onCoverViewTapEvent"===e?"TextView":"ImageView",o("onTouchStart",t,n)}))})),FinChatJSBridge.subscribe("onCoverViewScrollEvent",(function(e){ftparser.triggerEvent(document,"onCoverViewScroll",{viewId:e.viewId,scrollTop:e.scrollTop},{bubbles:!0})})),e._onTouchEvent=a}(window),window,Rc((function(){function e(e,t){ftparser.triggerEvent(document,e,{eventName:t.eventName,nativeViewId:t.nativeViewId,detail:t.detail},{bubbles:!0})}T&&wd.getSystemInfo({success:function(e){wd.setSystemSize(e.screenWidth,e.screenHeight)}}),FinChatJSBridge.subscribe("onAppRouteDone",(function(){window.__onAppRouteDone=!0,ftparser.triggerEvent(document,"routeDone",{},{bubbles:!0}),document.dispatchEvent(new CustomEvent("pageReRender",{}))})),FinChatJSBridge.subscribe("setKeyboardValue",(function(e){e&&(e.data&&void 0===e.inputId&&void 0===e.value&&void 0===e.cursor&&(e=e.data),ftparser.triggerEvent(document,"setKeyboardValue",{value:e.value,cursor:e.cursor,inputId:e.inputId,keyCode:e.keyCode||void 0},{bubbles:!0}))})),FinChatJSBridge.subscribe("hideKeyboard",(function(e){ftparser.triggerEvent(document,"hideKeyboard",{},{bubbles:!0})})),FinChatJSBridge.subscribe("onKeyboardComplete",(function(e){e&&ftparser.triggerEvent(document,"onKeyboardComplete",{value:e.value,inputId:e.inputId,cursor:e.cursor},{bubbles:!0})})),FinChatJSBridge.subscribe("onTextareaLineChange",(function(e){ftparser.triggerEvent(document,"onTextareaLineChange",{inputId:e.inputId,height:e.height,heightRpx:e.heightRpx,lineCount:e.lineCount,lineHeight:e.lineHeight},{bubbles:!0})})),FinChatJSBridge.subscribe("onKeyboardConfirm",(function(e){e&&ftparser.triggerEvent(document,"onKeyboardConfirm",{value:e.value,inputId:e.inputId},{bubbles:!0})})),FinChatJSBridge.subscribe("onkeyboardheightchange",(function(e){e&&ftparser.triggerEvent(document,"onkeyboardheightchange",{value:e.value,inputId:e.inputId,height:e.height,cursor:e.cursor,duration:e.duration},{bubbles:!0})})),FinChatJSBridge.subscribe("onKeyboardShow",(function(e){e&&ftparser.triggerEvent(document,"onKeyboardShow",{value:e.value,inputId:e.inputId,height:e.height,cursor:e.cursor},{bubbles:!0})})),FinChatJSBridge.subscribe("onInputCallback",(function(e){ftparser.triggerEvent(document,"onInputCallback",{data:e.data.data,inputId:e.data.inputId},{bubbles:!0})})),Ni("").useComponet?(FinChatJSBridge.subscribe("onLivePlayerTask",(function(t){e("onLivePlayerTask",t)})),FinChatJSBridge.subscribe("onLivePusherTask",(function(t){e("onLivePusherTask",t)}))):FinChatJSBridge.subscribe("onNativeViewTask",(function(t){e("onNativeViewTask",t)})),FinChatJSBridge.subscribe("onVideoEvent",(function(e){e.eventName&&ftparser.triggerEvent(document,e.eventName,Lc(Lc({},e),{},{eventName:e.eventName,videoPlayerId:e.videoPlayerId}),{bubbles:!1})})),FinChatJSBridge.subscribe("onMapTask",(function(e){e.eventName&&ftparser.triggerEvent(document,"onMapTask",Lc(Lc({},e),{},{eventName:e.eventName,mapId:e.mapId}),{bubbles:!0})}));var t=!0,n=!1,i=window.innerWidth||window.screen.availWidth,o=null;function r(e){window.__isFullScreen||(e=e||window.innerWidth||window.screen.availWidth,__AppCode__["customStyle://hasWxss"]?window.__rpxRecalculatingFuncs__.forEach((function(t){t({width:e})})):(document.querySelector("head > style[page='app']")&&Pn(document.getElementById("appCss").innerHTML,e,window.devicePixelRatio,"app"),Pn(document.getElementById("inlineCss").innerHTML,e,window.devicePixelRatio,window.__path__)),document.dispatchEvent(new CustomEvent("pageCssUpdate",{})))}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o&&clearTimeout(o),window.__delayFullScreenUpdateCss&&!window.__isFullScreen&&e<2?o=setTimeout((function(){a(++e)}),100):(t=t||window.innerWidth)!==i?(i=t,r(t),document.dispatchEvent(new CustomEvent("windowOrientationChangeFinish",{}))):e<10&&(o=setTimeout((function(){a(++e)}),100))}wd.onAppEnterForeground((function(e){t=!0,a(0,wd.getCorrectSize().width)})),wd.onAppEnterBackground((function(e){t=!1})),wd.onPageResizeChange((function(e){setTimeout((function(){t&&(o&&clearTimeout(o),a(0))}),500)})),window.addEventListener("onorientationchange"in window?"orientationchange":"resize",(function(){var e;wd.updateSize(),T&&(e=wd.getCorrectSize().width),t&&(window.innerWidth?a(0,e):n=!0)}),!1),window.addEventListener("visibilitychange",(function(){if(!document.hidden){var e=document.querySelector("wx-tab-bar-wrapper");setTimeout((function(){n&&(r(),n=!1),e&&(e.style.display="none",e.offsetHeight,e.style.display="")}),300)}}))})),function(e){e.addEventListener("change",(function(e){ftparser.triggerEvent(e.target,"change",{value:e.target.value})}),!0),e.addEventListener("input",(function(e){ftparser.triggerEvent(e.target,"input")}),!0),e.addEventListener("load",(function(e){ftparser.triggerEvent(e.target,"load")}),!0),e.addEventListener("error",(function(e){ftparser.triggerEvent(e.target,"error")}),!0);var t=1;e.addEventListener("focus",(function(n){var i=n.timeStamp;if(!O&&i<t+100)return n.preventDefault(),n.stopImmediatePropagation(),!1;t=i,e.isIDE||ftparser.triggerEvent(n.target,"focus")}),!0),e.addEventListener("blur",(function(e){ftparser.triggerEvent(e.target,"blur")}),!0),e.requestAnimationFrame=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame,e.requestAnimationFrame||(e.requestAnimationFrame=function(e){"function"==typeof e&&setTimeout((function(){e()}),17)})}(window),function(e){var t=function(e,t,n,i){ftparser.triggerEvent(e.target,t,n,{originalEvent:e,bubbles:!0,composed:!0,capturePhase:!0,extraFields:{touches:e.touches,changedTouches:e.changedTouches}}),i&&i()},n=!1,i=0,o=0,r=0,a=0,s=null,c=!1;wd.onAppEnterForeground((function(e){i=0,n=!1}));var l=function(){t(a,"longtap",{x:o,y:r}),t(a,"longpress",{x:o,y:r},(function(){n=!0})),h(a)},u=function(e,l,u,d){i&&(i=0,s&&(clearTimeout(s),s=null),d?(l=o,u=r):(c||n||(t(a,"tap",{x:l,y:u}),h(a)),n=!1))};e.addEventListener("scroll",(function(e){e.target.__wxScrolling=v()()}),{capture:!0,passive:!1}),document.addEventListener("touchstart",(e=>{})),e.addEventListener("touchstart",(function(e){t(e,"touchstart"),1===e.touches.length&&function(e,n,u){i||(i=e.timeStamp||v()(),o=n,r=u,function(e){for(;e;e=e.parentNode){var t=e.__wxElement||e;if(t.__wxScrolling&&v()()-t.__wxScrolling<50)return!0}return!1}(e.target)?(s=null,c=!0,t(e,"canceltap",{x:n,y:u})):(s=setTimeout(l,350),c=!1),a=e,e.defaultPrevented&&(s&&(clearTimeout(s),s=null),i=0))}(e,e.touches[0].pageX,e.touches[0].pageY)}),{capture:!0,passive:!1}),e.addEventListener("touchmove",(function(e){var n,l;t(e,"touchmove"),1===e.touches.length&&(n=e.touches[0].pageX,l=e.touches[0].pageY,i&&(Math.abs(n-o)<10&&Math.abs(l-r)<10||(s&&(clearTimeout(s),s=null),c=!0,t(a,"canceltap",{x:n,y:l}))))}),{capture:!0,passive:!1}),e.addEventListener("touchend",(function(e){t(e,"touchend"),e.touches&&0!==e.touches.length||u(0,e.changedTouches[0].pageX,e.changedTouches[0].pageY)}),{capture:!0,passive:!1}),e.addEventListener("touchcancel",(function(e){t(e,"touchcancel"),u(0,0,0,!0)}),{capture:!0,passive:!1}),(I||P)&&Pc();var d={},h=function(e){if(d.selector)for(var t=function(e,t){if(e.tagName&&0===e.tagName.indexOf("WX-")){var n=e.className.split(" ").map((function(e){return"."+e}));["#"+e.id].concat(n).forEach((function(n){t.indexOf(n)>-1&&p(e,n)}))}e=e.parentNode,i=e},n=d.selector,i=e.target;i;)t(i,n)},p=function(e,t){for(var n=function(){var n=d.data[i];if(n.element===t){var o={eventID:n.eventID,page:n.page,element:n.element,action:n.action,time:v()()};return 0===t.indexOf(".")&&(o.index=Array.prototype.indexOf.call(document.body.querySelectorAll(n.element),e)),Rc((function(){FinChatJSBridge.publish("analyticsReport",{data:o})})),1}},i=0;i<d.data.length&&!n();i++);};Rc((function(){FinChatJSBridge.subscribe("analyticsConfig",(function(e){"[object Array]"===Object.prototype.toString.call(e.data)&&(d.data=e.data,d.selector=[],d.data.forEach((function(e){e.element&&d.selector.push(e.element)})))}))}))}(window);var Mc={"ad-custom":["unit-id","ad-intervals"],ad:["unit-id","ad-intervals","ad-type","ad-theme"],audio:["src","loop","controls","poster","name","author"],button:["size","type","plain","disabled","loading","form-type","open-type","lang","session-from","send-message-title","send-message-path","send-message-img","app-parameter","show-message-card"],camera:["mode","resolution","device-position","flash","frame-size"],canvas:["type","canvas-id","disable-scroll"],checkbox:["value","disabled","checked","color"],editor:["read-only","placeholder","show-img-size","show-img-toolbar","show-img-resize"],form:["report-submit","report-submit-timeout"],"functional-page-navigator":["version","name","args"],icon:["type","size","color"],input:["value","type","password","placeholder","placeholder-style","placeholder-class","disabled","maxlength","cursor-spacing","auto-focus","focus","confirm-type","always-embed","confirm-hold","cursor","selection-start","selection-end","adjust-position","hold-keyboard","safe-password-cert-path","safe-password-length","safe-password-time-stamp","safe-password-nonce","safe-password-salt","safe-password-custom-hash"],label:["for"],"live-player":["src","mode","autoplay","muted","orientation","object-fit","background-mute","min-cache","max-cache","sound-mode","auto-pause-if-navigate","auto-pause-if-open-native","picture-in-picture-mode"],"live-pusher":["url","mode","autopush","muted","enable-camera","auto-focus","orientation","beauty","whiteness","aspect","min-bitrate","max-bitrate","audio-quality","waiting-image","waiting-image-hash","zoom","device-position","background-mute","mirror","remote-mirror","local-mirror","audio-reverb-type","enable-mic","enable-agc","enable-ans","audio-volume-type","video-width","video-height","beauty-style","filter"],map:["longitude","latitude","scale","min-scale","max-scale","markers","covers","polyline","circles","controls","include-points","show-location","polygons","subkey","layer-style","rotate","skew","enable-3D","show-compass","show-scale","enable-overlooking","enable-zoom","enable-scroll","enable-rotate","enable-satellite","enable-traffic","enable-poi","enable-building","setting"],"match-media":["min-width","max-width","width","min-height","max-height","height","orientation"],"movable-area":["scale-area"],"movable-view":["direction","inertia","out-of-bounds","x","y","damping","friction","disabled","scale","scale-min","scale-max","scale-value","animation","htouchmove","vtouchmove"],"navigation-bar":["title","loading","front-color","background-color","color-animation-duration","color-animation-timing-func"],navigator:["target","url","open-type","delta","app-id","path","extra-data","version"],"open-data":["type","open-gid","lang","default-text","default-avatar"],"page-container":["show","duration","z-index","overlay","position","round","close-on-slideDown","overlay-style","custom-style"],"page-meta":["background-text-style","background-color","background-color-top","background-color-bottom","root-background-color","scroll-top","scroll-duration","page-style","page-font-size","root-font-size","page-orientation"],"picker-view":["value","indicator-style","indicator-class","mask-style","mask-class"],picker:["header-text","mode","disabled"],progress:["percent","show-info","border-radius","font-size","stroke-width","color","activeColor","backgroundColor","active","active-mode","duration"],radio:["value","checked","disabled","color"],"rich-text":["nodes","space"],"scroll-view":["scroll-x","scroll-y","upper-threshold","lower-threshold","scroll-top","scroll-left","scroll-into-view","scroll-with-animation","enable-back-to-top","enable-flex","scroll-anchoring","refresher-enabled","refresher-threshold","refresher-default-style","refresher-background","refresher-triggered","enhanced","bounces","show-scrollbar","paging-enabled","fast-deceleration"],"share-element":["key","transform","duration","easing-function"],slider:["min","max","step","disabled","value","color","selected-color","activeColor","backgroundColor","block-size","block-color","show-value"],"swiper-item":["item-id","skip-hidden-item-layout"],swiper:["indicator-dots","indicator-color","indicator-active-color","autoplay","current","current-item-id<1.9.0>","interval","duration","circular","vertical","previous-margin","next-margin","snap-to-edge","display-multiple-items","easing-function"],switch:["checked","disabled","type","color"],textarea:["value","placeholder","placeholder-style","placeholder-class","disabled","maxlength","auto-focus","focus","auto-height","fixed","cursor-spacing","cursor","show-confirm-bar","selection-start","selection-end","adjust-position","hold-keyboard","disable-default-padding","confirm-type","confirm-hold"],video:["src","duration","controls","danmu-list","danmu-btn","enable-danmu","autoplay","loop","muted","initial-time","page-gesture","direction","show-progress","show-fullscreen-btn","show-play-btn","show-center-play-btn","enable-progress-gesture","object-fit","poster","show-mute-btn","title","play-btn-position","enable-play-gesture","auto-pause-if-navigate","auto-pause-if-open-native","vslide-gesture","vslide-gesture-in-fullscreen","ad-unit-id","poster-for-crawler","show-casting-button","picture-in-picture-mode","picture-in-picture-show-progress","enable-auto-rotation","show-screen-lock-button","show-snapshot-button","show-background-playback-button","background-poster"],"voip-room":["openid","mode","device-position"],"web-view":["src"]},Bc={"scroll-view":["throttle"]};E()(Bc).forEach((function(e){for(var t=[].concat(Mc[e],Bc[e]),n=0;n<t.length;n++)for(var i=n+1;i<t.length;i++)t[n]===t[i]&&(t.splice(i,1),i--);Mc[e]=t}));var $c="mina"===wx.getPlatform(),Fc=window.isIDE;function Dc(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}window.ftparser.registerBehavior({is:"wx-base",properties:{hidden:{type:Boolean,public:!0},ariaHidden:{type:String,public:!0},ariaLabel:{type:String,public:!0},ariaRole:{type:String,public:!0,filter:"ariaRoleChanged"},ariaChecked:{type:String,public:!0},ariaDisabled:{type:String,public:!0},ariaLabelledby:{type:String,public:!0},ariaDescribedby:{type:String,public:!0},ariaExpanded:{type:String,public:!0},ariaHaspopup:{type:String,public:!0},ariaSelected:{type:String,public:!0},ariaRequired:{type:String,public:!0},ariaOrientation:{type:String,public:!0},ariaValuemin:{type:Number,public:!0},ariaValuemax:{type:Number,public:!0},ariaValuenow:{type:Number,public:!0},ariaReadonly:{type:String,public:!0},ariaMultiselectable:{type:String,public:!0},ariaControls:{type:String,public:!0},ariaModal:{type:String,public:!0},ariaLive:{type:String,public:!0},ariaAtomic:{type:Boolean,public:!0},ariaRelevant:{type:String,public:!0},tabindex:{type:Number,public:!0},enableSelection:{type:Boolean,public:!0},disableSelection:{type:Boolean,public:!0}},observers:{"**":function(){}},attached:function(){},listeners:{tap:"_elementClickReport"},methods:{_elementClickReport:function(e){var t={"VIDEO-CONTROLLER":"video",MAP:"map"};if(__wxConfig__.needReportElementClick){var n=this.is.slice(3),i=this.__id,o=this.dataset.name||"",r=this.dataset;if(!e.__reported){e.__reported=!0;var a="";if(r.content)a=r.content;else if(["wx-input","wx-textarea"].includes(this.is))a=this.value;else{var s;a=null==this||null===(s=this.$$)||void 0===s?void 0:s.innerText}if(k&&null!=e&&e.touches&&e.touches.length>0&&e.touches[0].target&&t[e.touches[0].target.nodeName]){var c=e.touches[0].target;n=t[e.touches[0].target.nodeName],i=c.id,o=c.name,r=c.dataset,a=c.innerText}(a=a.trim()).length>100&&(a=a.slice(0,100)+"...");var l={page:window.__path__,latestScene:"",timestamp:v()(),elementContent:a,elementType:this.dataset.type?this.dataset.type:n,elementId:i,elementName:o};Mn.invoke("elementClick",l)}}},ariaRoleChanged:function(e){this.$$.setAttribute("role",e)},getNodeId:function(){return this.__nodeId=this.__nodeId||(this.ownerShadowRoot?__virtualDOM__.getNodeId(this.ownerShadowRoot.__wxHost):""),this.__nodeId},debounce:function(e,t,n){var i=this;this.__debouncers=this.__debouncers||{},this.__debouncers[e]&&clearTimeout(this.__debouncers[e]),this.__debouncers[e]=setTimeout((function(){"function"==typeof t&&t(),i.__debouncers[e]=void 0}),n)},getPluginId:function(){if(!this.ownerShadowRoot)return"";for(var e=this.ownerShadowRoot.__wxHost,t=ftparser.Component.getComponentOptions(e).domain;"//"===t;){if(!e.ownerShadowRoot)return"";e=e.ownerShadowRoot.__wxHost,t=ftparser.Component.getComponentOptions(e).domain}return"/"===t?"":t},getRealRoute:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!/^(http|https):\/\//.test(e)&&!/^\s*data:image\//.test(e)&&($c||!/^hyfile:\/\//.test(e)))if(this.ownerShadowRoot){var n=this.ownerShadowRoot.__wxHost.__componentOptions.domain;if(n&&"/"!==n&&-1===n.indexOf("simple://")){var i=this.ownerShadowRoot.__wxHost.is.replace(/^plugin-private:\/\/wx[^/]+\//,""),o=n.split("/")[0];if($c){var r="".concat(window.__RUNTIME_GLOBAL.baseUrl,"/program/").concat(__wxConfig.accountInfo.appId,"/").slice(1);e="".concat(r).concat(__virtualDOM__.getPluginRoutePrefix(o)).concat(wx.getRealRoute(i,e).replace(r,""))}else e=__virtualDOM__.getPluginRoutePrefix(o)+wx.getRealRoute(i,e)}else{var a=(window.__subPackages||__wxConfig.subPackages||[]).filter((function(e){return 0===(window.__route__||"").indexOf(e.root)})),s=a[0]&&a[0].root||"",c=a[0]&&a[0].allExtendedComponents||[],l=this.ownerShadowRoot.__wxHost.is;l.startsWith("plugin-private://")&&(l=l.replace("plugin-private://","__plugin__/")),l=c.indexOf(l)>-1?s+l:l,e=wx.getRealRoute(l,e)}Fc?e="".concat(e):$c&&(e=window.__RUNTIME_GLOBAL.handleWxaUrl("/"+e))}else Fc||$c||!t||(e=wx.getRealRoute(t,e));return e},bindMethod:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){e["bind".concat(t)]=""})),this._eventHandlers={},__virtualDOM__.setEventHandlerChangeListener(this,(function(n,i){e._eventHandlers[n]=i,t.indexOf(n)>=0&&(e["bind".concat(n)]=i)}))},reportMediaComponentStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.evtId,e.evtNote,e.src}}}),n(655),n(656),n(657),window.ftparser.registerBehavior({is:"wx-hover",properties:{hoverStartTime:{type:Number,value:50,public:!0},hoverStayTime:{type:Number,value:400,public:!0},hoverClass:{type:String,value:"",public:!0,observer:"_hoverClassChange"},hoverStopPropagation:{type:Boolean,value:!1,public:!0,observer:"_hoverStopChange"},hover:{type:Boolean,value:!1,public:!0,observer:"_hoverChanged"}},created:function(){this._defaultHoverClass="",this._hoverClass=[]},attached:function(){var e=this;setTimeout((function(){(e.hoverClass||e._defaultHoverClass)&&"none"!==e.hoverStyle&&"none"!==e.hoverClass&&e._hoverClassChange(e.hoverClass)}),0)},detached:function(){this.unbindHover()},methods:{isScrolling:function(){for(var e=this.$$;e;e=e.parentNode){var t=e.__wxElem||e;if(t.__wxScrolling&&v()()-t.__wxScrolling<50)return!0}return!1},_hoverChanged:function(e){e?this.bindHover():this.unbindHover()},_hoverClassChange:function(e){e&&(this._defaultHoverClass="");var t=e.split(/\s/);if(this._hoverClass=[],"none"!==e||this.hoverStopPropagation){for(var n=0;n<t.length;n++)t[n]&&this._hoverClass.push(t[n]);this.bindHover()}else this.unbindHover()},_hoverStopChange:function(e){"none"!==e||this.hoverStopPropagation?this.bindHover():this.unbindHover()},bindHover:function(){this._bindHover||(this._bindHover=!0,this.addListener("touchstart",this.hoverTouchStart),this.addListener("canceltap",this.hoverCancel),this.addListener("touchcancel",this.hoverCancel),this.addListener("touchend",this.hoverTouchEnd))},unbindHover:function(){this._bindHover&&(this._bindHover=!1,this.removeListener("touchstart",this.hoverTouchStart),this.removeListener("canceltap",this.hoverCancel),this.removeListener("touchcancel",this.hoverCancel),this.removeListener("touchend",this.hoverTouchEnd))},hoverTouchMove:function(){this.hoverCancel()},hoverTouchStart:function(e){var t=this;if(!this.isScrolling()&&!e._hoverPropagationStopped)if(this.hoverStopPropagation&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,"none"===this.hoverStyle||"none"===this.hoverClass||this.disabled);else{if(e.touches.length>1)return;this._hoverStyleTimeId=setTimeout((function(){if(t._hovering=!0,t._defaultHoverClass)t.$$.classList.toggle(t._defaultHoverClass,!0);else if(t._hoverClass.length>0)for(var e=0;e<t._hoverClass.length;e++)t.classList.toggle(t._hoverClass[e],!0);t._updateNativeCoverHover&&t._updateNativeCoverHover(),t._hoverTouch||window.requestAnimationFrame((function(){clearTimeout(t._hoverStayTimeId),t._hoverStayTimeId=setTimeout((function(){t._hoverReset()}),t.hoverStayTime)}))}),this.hoverStartTime)}},hoverTouchEnd:function(){var e=this;this._hoverTouch=!1,this._hovering&&window.requestAnimationFrame((function(){clearTimeout(e._hoverStayTimeId),e._hoverStayTimeId=setTimeout((function(){e._hoverReset()}),e.hoverStayTime)}))},hoverCancel:function(){this._hoverTouch=!1,clearTimeout(this._hoverStyleTimeId),this._hoverStyleTimeId=void 0,this._hoverReset()},_hoverReset:function(){if(this._hovering)if(this._hovering=!1,"none"===this.hoverStyle||"none"===this.hoverClass);else if(this._defaultHoverClass)this.$$.classList.toggle(this._defaultHoverClass,!1),this._updateNativeCoverHover&&this._updateNativeCoverHover();else if(this._hoverClass.length>0){for(var e=0;e<this._hoverClass.length;e++)this.classList.contains(this._hoverClass[e])&&this.classList.toggle(this._hoverClass[e],!1);this._updateNativeCoverHover&&this._updateNativeCoverHover()}}}}),n(658),n(659),n(660),n(661),n(662);var jc=1e3;function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}window.ftparser.registerBehavior({is:"wx-native",properties:{hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"},_isReady:{type:Boolean,value:!1},_deferred:{type:Array,value:[]},_isError:{type:Boolean,value:!1},_box:{type:Object,value:{left:0,top:0,width:0,height:0}}},created:function(){this._id=jc++,this._nativeId="native-"+String(v()()).slice(-5)+"-"+this._id},attached:function(){},moved:function(){},detached:function(){this._observerCoverView&&this._observerCoverView.disconnect(),this.__pageReRenderForCoverView&&document.removeEventListener("pageReRender",this.__pageReRenderForCoverView),this._insertTimer&&clearTimeout(this._insertTimer)},methods:{_isiOS:function(){var e=window.navigator.userAgent.toLowerCase();return/(iphone|ipad)/.test(e)},_isAndroid:function(){var e=window.navigator.userAgent.toLowerCase();return/android/.test(e)},_isMobile:function(){return this._isiOS()||this._isAndroid()},_getFixed:function(){try{var e=window.getComputedStyle(this.$$);if(this._fixed="fixed"===e.position,!this._fixed)for(var t=this.parentNode.$$;t&&"BODY"!==t.tagName;){var n=window.getComputedStyle(t);if(this._fixed="fixed"===n.position,this._fixed)break;t=t.parentNode}}catch(e){console.log(e)}},_getBox:function(){var e=this.$$.getBoundingClientRect(),t=this._fixed?e.top:e.top+window.scrollY,n={left:this._fixed?e.left:e.left+window.scrollX,top:t,width:this.$$.offsetWidth,height:this.$$.offsetHeight};return void 0!==this._fixed&&(n.fixed=this._fixed),n},_getCurrentZIndex:function(e){try{e=e||window.getComputedStyle(this.$$);var t=Number(e.zIndex)||0;return Math.min(t,1e6)}catch(e){}return 0},_getOffset:function(){var e=this.$$,t=e.parentNode,n=function(e,t){return e.offsetParent===t?{offsetLeft:e.offsetLeft,offsetTop:e.offsetTop}:{offsetLeft:e.offsetLeft-t.offsetLeft,offsetTop:e.offsetTop-t.offsetTop}};if(!e.offsetParent)return{offsetLeft:e.offsetLeft,offsetTop:e.offsetTop};if(this._calcIsInButton()&&!t.offsetParent)return this.fixed=!0,{offsetLeft:t.offsetLeft,offsetTop:t.offsetTop};for(var i={offsetTop:0,offsetLeft:0};t&&e;){var o=n(e,t),r=o.offsetTop,a=o.offsetLeft;if(i.offsetTop+=r,i.offsetLeft+=a,t.__wxElement&&this._isNativeElement(t.__wxElement)||this._isSpecialScene(t))break;t=(e=t).parentNode}return i},_isSpecialScene:function(e){return!(!window.__isFullScreen||!e.classList.contains("wx-video-slot"))||"HTML"===e.tagName},_isNativeElement:function(e){return e instanceof ftparser.Component&&(e.hasBehavior("wx-map")||e.hasBehavior("wx-video")||e.hasBehavior("wx-canvas")||e.hasBehavior("wx-camera")||e.hasBehavior("wx-live-player")||e.hasBehavior("wx-live-pusher")||e.hasBehavior("wx-voip-room")||e.hasBehavior("wx-native-view")||e.hasBehavior("wx-input")||e.hasBehavior("wx-textarea")||e.hasBehavior("wx-keyboard-accessory")||e.hasBehavior("wx-cover-view"))},_diff:function(){var e=this._getBox();for(var t in e)if(e[t]!==this._box[t])return!0;return!1},_ready:function(){this._isReady=!0,this._deferred.forEach((function(e){this[e.callback].apply(this,e.args)}),this),this._deferred=[]},hiddenChanged:function(e,t){this._isError||(this._isReady?"function"==typeof this._hiddenChanged&&this._hiddenChanged(e,t):this._deferred.push({callback:"hiddenChanged",args:[e,t]}))},_pageReRenderCallback:function(){this._isError||this._diff()&&(this._box=this._getBox(),this._updatePosition())},_pageReRenderForCoverView:function(e,t){var n=this;window.requestAnimationFrame((function(){n._coverViewUpdated&&n.traverseAndGenerate(e,t),n._coverViewUpdated=!1}))},findCoverView:function(e,t){var n=this;this.traverseAndGenerate(e,t),this._observerCoverView=new MutationObserver((function(e){n._coverViewUpdated=!0,e.some((function(e){return e.addedNodes.length!==e.removedNodes.length}))&&n.__pageReRenderForCoverView()})),this._observerCoverView.observe(this.$$,{childList:!0,subtree:!0}),this.__pageReRenderForCoverView=this._pageReRenderForCoverView.bind(this,e,t),document.addEventListener("pageReRender",this.__pageReRenderForCoverView)},traverseAndGenerate:function(e,t){!function e(t,n,i,o){var r,a=t instanceof ftparser.Component,s=a&&t.__component__,c="slot"===t.is,l=a&&t.hasBehavior("wx-button")&&t.native;r=s||c||l?t.__slotChildren||[]:t.childNodes||[];for(var u=function(){var t=r[d],a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Dc(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({},o);a.noNeedToInsert=o.noNeedToInsert||"callout"===t.__slot,t instanceof ftparser.Component&&(t.hasBehavior("wx-cover-view")||t.hasBehavior("wx-cover-image"))?t.insertNativeCoverView(n,i,a,(function(n){e(t,n,t,a)})):e(t,n,i,a)},d=0;d<r.length;d++)u()}(this,e,this,t)},insertNativeView:function(e,t,n){var i=this;this.insertContainer((function o(){t.cid=i._cid,FinChatJSBridge.invoke(e,t,(function(t){if(i._cid&&/:fail/.test(t.errMsg)&&("wx-live-pusher"!==i.is||1107001!==t.errno))return i.retry<10?(i._insertTimer=setTimeout((function(){o()}),20*i.retry),void i.retry++):("insertVideoPlayer"===e?(i.oldCid=i._cid,i._cid=void 0):i.removeContainer(),void o());/:ok/.test(t.errMsg)&&(i.insertSuccess=!0,i._ready()),"function"==typeof n&&n.call(i,t)}))}))},updateNativeView:function(e,t,n){t.cid=this._cid||this.oldCid,FinChatJSBridge.invoke(e,t,(function(e){"function"==typeof n&&n(e)}))},removeNativeView:function(e,t,n){var i=this;t.cid=this._cid,FinChatJSBridge.invoke(e,t,(function(e){"function"==typeof n&&n.call(i,e)}))},insertContainer:function(e){var t=(this.is||"").replace("wx-","").replace(/-([a-z])/g,(function(e,t){return t?t.toUpperCase():t}));if(Boolean(Ii()[t])){var n=this._cid=this._nativeId;this.retry=0;var i=this.$.container&&this.$.container.$$,o=0;if(i){i.setAttribute("cid",n);var r=i.getAttribute("class")||"";i.setAttribute("class","tongceng_fcid_".concat(n," ").concat(r)),o=i.offsetHeight+1}var a=this.$.inner&&this.$.inner.$$;a&&(a.setAttribute("style","width: 101%;height: 101%;"),a.style.height=o+"px")}else this.removeContainer();return"function"==typeof e&&e()},removeContainer:function(){try{var e=this._cid;this._cid="";var t=this.$.container&&this.$.container.$$;t&&(t.removeAttribute("cid"),t.classList.remove("tongceng_fcid_".concat(e)));var n=this.$.inner&&this.$.inner.$$;n&&n.setAttribute("style","position: relative;display: none;z-index: -1;"),window.isIDE&&"wx-map"===this.is&&(this._cid=e)}catch(e){console.error(e)}},findKeyboardAccessory:function(){(this.childNodes||[]).forEach((function(e){e.hasBehavior&&e.hasBehavior("wx-keyboard-accessory")&&e.initKeyboardAccessory()}))},computKeyboardAccessoryHeight:function(){var e=0;return(this.childNodes||[]).forEach((function(t){t.hasBehavior&&t.hasBehavior("wx-keyboard-accessory")&&(e=t.$$.offsetHeight)})),e}}});var qc=window.navigator.userAgent.toLowerCase().indexOf("ipad")>=0,Hc=window.screen&&window.screen.width||window.innerWidth,Uc=window.screen&&window.screen.height||window.innerHeight,Wc=!1;window.ftparser.registerBehavior({is:"wx-player",properties:{src:{type:String,observer:"_srcChanged",public:!0},poster:{type:String,observer:"_posterChanged",public:!0},playing:{type:Boolean,value:!1},_buttonType:{type:String,value:"play"},_currentTime:{type:String,value:"00:00"},_duration:{type:String,value:"00:00"},_isLive:{type:Boolean,value:!1},isBackground:{type:Boolean,value:!1},stopped:{type:Boolean,value:!0},paused:{type:Boolean,value:!0}},listeners:{"this.touchstart":"_stopPropagation","this.touchmove":"_stopPropagation","this.touchend":"_stopPropagation","this.touchcancel":"_stopPropagation"},created:function(){Wc||(Wc=!0,wx.getSystemInfo({success:function(e){Hc=e.screenWidth,Uc=e.screenHeight}}))},attached:function(){var e=this;this._nodeChangeSet=new Nn.a,this._fullscreenChangeId=ftparser.addListenerToElement(document,"onVideoFullscreenChange",(function(t){e._toggleFullscreen(t.detail)})),this.__windowResizeHandler=this._windowResizeHandler.bind(this),this.__windowOrientationHandler=this._windowOrientationHandler.bind(this),document.addEventListener("windowResize",this.__windowResizeHandler),document.addEventListener("windowOrientationChangeFinish",this.__windowOrientationHandler)},detached:function(){ftparser.removeListenerFromElement(document,"onVideoFullscreenChange",this._fullscreenChangeId),document.removeEventListener("windowResize",this.__windowResizeHandler),document.removeEventListener("windowOrientationChangeFinish",this.__windowOrientationHandler)},methods:{_stopPropagation:function(e){this._isFullScreen&&e.stopPropagation()},_formatTime:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e===1/0)return"00:00";e=Math.floor(e);var n=Math.floor(e/3600),i=Math.floor((e-3600*n)/60),o=e-3600*n-60*i;return 0!==n&&t?"".concat(n>=10?n:"0"+n,":").concat(i>=10?i:"0"+i,":").concat(o>=10?o:"0"+o):"".concat((i+=60*n)>=10?i:"0"+i,":").concat(o>=10?o:"0"+o)},_publish:function(e,t){this.triggerEvent(e,t)},_updatePosition:function(e,t,n){if(!(window.__isFullScreen&&"CAUSED_BY_RESIZE"===n||this.hidden||window.__isFullScreen&&!this._isFullScreen)){var i=this._box;["wx-video","wx-live-player"].indexOf(this.is)>-1&&this._isFullScreen&&(i={top:0,left:0},"vertical"===this._direction?(i.width=Hc,i.height=Uc):(i.width=Uc,i.height=Hc));var o={};o.position=i,"number"==typeof e&&(o.parentId=e),"number"==typeof this._zIndex&&(o.zIndex=this._zIndex),this._update(o)}},_resolveChildCoverIDs:function(e){for(var t=this,n=[],i=e;i;i=i.childNodes)i.hasBehavior&&i.hasBehavior("wx-native-cover")&&void 0!==i.getPositioningId&&n.push(i.getPositioningId()),i.childNodes&&i.childNodes.length>0&&n.push.apply(n,r()(this._resolveChildCoverIDs(i.childNodes))),i.__wxSlotChildren&&i.__wxSlotChildren.length>0&&i.__wxSlotChildren.forEach((function(e){n.push.apply(n,r()(t._resolveChildCoverIDs(e)))}));return n},_getFullScreenWdithHeight:function(e,t,n){var i,o;return"horizontal"===e?(i=Math.max(n,t),o=Math.min(n,t)):(i=Math.min(n,t),o=Math.max(n,t)),[i,o]},_toggleFullscreen:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="function"==typeof this._canToggleFullscreen&&this._canToggleFullscreen(e);if(n||i)if(window.__isFullScreen=this._isFullScreen=e.fullScreen,Wc&&Hc&&Uc){if(Ii().video){var o,r;if(e.screenHeight&&e.screenWidth)o=e.screenWidth,r=e.screenHeight;else{var a=this._getFullScreenWdithHeight(e.direction,Hc,Uc),s=p()(a,2);o=s[0],r=s[1]}if(k&&this._videoId){var c=this.$.container.$$,l=this.$.container.$$.querySelector("video-player"),u=this.$.container.$$.querySelector("video-controller"),d=this.$.container.$$.querySelector(".background"),h=this.$.container.$$.querySelector(".poster");if(e.fullScreen){d.style.display="block",l.style.position="fixed",l.style.zIndex=1e8,u.style.position="fixed",u.style.zIndex=100000001,h.style.position="fixed",h.style.zIndex=100000001,c.style.width=o+"px",c.style.height=r+"px",d.style.width=o+"px",d.style.height=r+"px";var f=l.getAttribute("data-width-fullscreen"),v=l.getAttribute("data-height-fullscreen");f&&v&&(l.style.width=f+"px",l.style.height=v+"px")}else{d.style.display="none",d.style.width="0px",d.style.height="0px",l.style.position="absolute",l.style.zIndex=0,h.style.position="absolute",h.style.zIndex=0,u.style.position="absolute",u.style.zIndex=0,c.style.width="100%",c.style.height="100%";var m=l.getAttribute("data-width"),_=l.getAttribute("data-height");if(m&&_)l.style.width=m+"px",l.style.height=_+"px";else{var g=this._box,b=g.width,y=g.height;l.style.width=b+"px",l.style.height=y+"px"}}}else if(this._videoId&&T){var w=this.$.container.$$;e.fullScreen?(w.style.position="fixed",w.style.top=0,w.style.left=0,w.style.zIndex=1e8,w.style.width=o+"px",w.style.height=r+"px",FinChatJSBridge.invoke("updateVideoPlayerFullScreen",{videoPlayerId:this._videoId,width:o,height:r},(function(){}))):(w.style.position="absolute",w.style.zIndex="",w.style.width="",w.style.height="",w.getBoundingClientRect(),setTimeout((function(){FinChatJSBridge.invoke("updateVideoPlayerFullScreen",{videoPlayerId:t._videoId},(function(){}))}),20))}var x=null;for(n?x=this._targetParentNode:(x=this.$$,e.fullScreen&&(this._targetParentNode=x.parentNode));x&&x!==document.body;){if(e.fullScreen&&!this._nodeChangeSet.has(x)){x.__originalZIndex=x.style.zIndex,x.__originalOverflow=x.style.overflow,x.__originalOverflowX=x.style.overflowX,x.__originalOverflowY=x.style.overflowY,x.__originalTransform=x.style.transform,x.__originalPosition=x.style.position,x.__originalAnimationName=x.style.animationName,x.__originalAnimationDuration=x.style.animationDuration,x.__originalWebkitTransform=x.style.webkitTransform,x.__originalWebkitAnimationName=x.style.webkitAnimationName,x.__originalWebkitAnimationDuration=x.style.webkitAnimationDuration;var A=window.getComputedStyle(x).position;x.style.setProperty("position","static"===A?"relative":A,"important"),x.style.setProperty("z-index","100000000","important"),x.style.setProperty("overflow","visible","important"),x.style.setProperty("transform","none","important"),x.style.setProperty("animation-name","none","important"),x.style.setProperty("animation-duration","0","important"),x.style.setProperty("-webkit-transform","none","important"),x.style.setProperty("-webkit-animation-name","none","important"),x.style.setProperty("-webkit-animation-duration","0","important"),this._nodeChangeSet.add(x)}x.__wxElement&&x.__wxElement instanceof ftparser.Component&&(x.__wxElement.hasBehavior("wx-scroll-view")||x.__wxElement.hasBehavior("wx-swiper"))&&x.__wxElement.handleFullscreenIfNeeded(e.fullScreen),x=x.parentNode}e.fullScreen||(this._nodeChangeSet.forEach((function(t){t.style.zIndex=0,t.style.overflow="visible",t.style.transform="none",t.style.animationName="none",t.style.animationDuration=0,t.style.zIndex=t.__originalZIndex||"",t.style.overflow=t.__originalOverflow||"",t.style.overflowX=t.__originalOverflowX||"",t.style.overflowY=t.__originalOverflowY||"",t.style.transform=t.__originalTransform||"",t.style.animationName=t.__originalAnimationName||"",t.style.webkitTransform=t.__originalWebkitTransform||"",t.style.webkitAnimationName=t.__originalWebkitAnimationName||"",t.style.position=t.__originalPosition||"",setTimeout((function(){t.style.animationDuration=t.__originalAnimationDuration||"",t.style.webkitAnimationDuration=t.__originalWebkitAnimationDuration||""}),300),t.__wxElement&&t.__wxElement instanceof ftparser.Component&&(t.__wxElement.hasBehavior("wx-scroll-view")||t.__wxElement.hasBehavior("wx-swiper"))&&t.__wxElement.handleFullscreenIfNeeded(e.fullScreen)})),this._nodeChangeSet.clear(),this._toggleMutationObserver(e.fullScreen))}var C=this.$.slot;if(e.fullScreen)C.style.position="fixed",C.style.zIndex=100000002,qc||0===e.direction||"vertical"===e.direction?(C.style.height=Uc+"px",C.style.width=Hc+"px",this._direction="vertical"):Hc>Uc&&("horizontal"===e.direction||0!==e.direction)?(C.style.width=Hc+"px",C.style.height=Uc+"px"):(C.style.height=Hc+"px",C.style.width=Uc+"px",this._direction="horizontal"),this._needUpdate=!1,window._isDelayUpdateScrollTop=!0,Ii().video||(this._box=this._getBox(),this._updatePosition()),document.dispatchEvent(new CustomEvent("toggleCoverViewForFullscreen",{detail:{fullscreen:this._isFullScreen,videoId:this._videoId}}));else{var E="vertical"===this._direction;C.style.position="absolute",C.style.zIndex=1,C.style.height="100%",C.style.width="100%",E?(this._box=this._getBox(),this._updatePosition(),window._isDelayUpdateScrollTop=!1,document.dispatchEvent(new CustomEvent("toggleCoverViewForFullscreen",{detail:{fullscreen:this._isFullScreen,videoId:this._videoId}}))):(this._needUpdate=!0,this._updatePosition())}}else setTimeout((function(){t._toggleFullscreen(e)}),10)},_pollUpdateNativeVideo:function(){var e=this;this._pollIntvTimer&&clearInterval(this._pollIntvTimer);var t=0;this._pollIntvTimer=setInterval((function(){++t>6&&(window.clearInterval(e._pollIntvTimer),e._pollIntvTimer=null),e.updateContainerIfNeeded(null,!0,!0)}),500),this.updateContainerIfNeeded(null,!0,!0)},_toggleMutationObserver:function(e){var t=this;e?(this._mutationObserver=new MutationObserver((function(e){var n,i=function(e,t){var n=void 0!==ai.a&&e[ci.a]||e["@@iterator"];if(!n){if(A()(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vc(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?Tn()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if("attributes"===o.type&&"style"===o.attributeName){var r=o.target;t._nodeChangeSet.has(r)&&"none"!==r.style.transform&&(r.style.setProperty("z-index","100000000","important"),r.style.setProperty("overflow","visible","important"),r.style.setProperty("transform","none","important"),r.style.setProperty("animation-name","none","important"),r.style.setProperty("animation-duration","0","important"),r.style.setProperty("-webkit-transform","none","important"),r.style.setProperty("-webkit-animation-name","none","important"),r.style.setProperty("-webkit-animation-duration","0","important"))}}}catch(e){i.e(e)}finally{i.f()}})),this._mutationObserver.observe(document.body,{attributes:!0,subtree:!0})):this._mutationObserver&&this._mutationObserver.disconnect()},_windowResizeHandler:function(e){var t=this,n=e.detail;if(T&&this._insert2WebLayer&&setTimeout((function(){t.updateContainerIfNeeded(null,!0,!0)}),300),n.size){if(Hc=n.size.screenWidth,Uc=n.size.screenHeight,this._isFullScreen){var i=this.$.slot;i.style.height=Uc+"px",i.style.width=Hc+"px",this.$.container.style.height=Uc+"px",this.$.container.style.width=Hc+"px"}this._notifyScreenResize&&"function"==typeof this._notifyScreenResize&&this._notifyScreenResize({screenWidth:Hc,screenHeight:Uc,isFullscreen:this._isFullScreen})}},_startObserveInvalidPosition:function(){this._stopObserveInvalidPosition(),this.__invalidPositionObserver=this._invalidPositionObserver.bind(this),document.addEventListener("pageReRender",this.__invalidPositionObserver)},_invalidPositionObserver:function(e){if(!e||!e.detail||"CAUSED_BY_RESIZE"!==e.detail.reason){var t=(this.$.container.$$||this.$.container).getBoundingClientRect();0===t.top&&0===t.left||wx.operateVideoPlayer({videoPlayerId:this._videoId||this._playerId,type:"exitFullScreen",data:[]})}},_stopObserveInvalidPosition:function(){document.removeEventListener("pageReRender",this.__invalidPositionObserver),this.__invalidPositionObserver=null},_triggerError:function(e){this.binderror&&wx.publishPageEvent(this.binderror,{type:"error",timeStamp:v()()-this.createdTimestamp,target:{dataset:this.dataset,id:this.id,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},currentTarget:{dataset:this.dataset,id:this.id,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},detail:{errMsg:e}},this.getNodeId())},_windowOrientationHandler:function(){var e=this;this._needUpdate&&(Ii().video||(this._box=this._getBox()),this._updatePosition(),document.dispatchEvent(new CustomEvent("toggleCoverViewForFullscreen",{detail:{fullscreen:this._isFullScreen,videoId:this._videoId}})),window._isDelayUpdateScrollTop=!1,setTimeout((function(){e._needUpdate=!1}),300))}}}),n(663),window.ftparser.registerBehavior({is:"wx-positioning-target",created:function(){this._positioningId=L("positioning")},attached:function(){this.__positioningContainerReady=this.__positioningContainerReady.bind(this),this._container={},this.__getParentContainerId(this.parentNode),this._container.inContainer&&!this._container.id?(this.hasBehavior("wx-positioning-container")||this.triggerEvent("wxPositioningTargetReady",{},{bubbles:!0,composed:!0}),document.addEventListener("positioningContainerReady",this.__positioningContainerReady)):this._container.inContainer&&this._container.id&&this.__positioningContainerReady({detail:{containerId:this._container.id}})},detached:function(){document.removeEventListener("positioningContainerReady",this.__positioningContainerReady)},methods:{__positioningContainerReady:function(e){this.__checkContainerId(this.parentNode,e.detail.containerId)&&(this._container.id=e.detail.containerId,document.removeEventListener("positioningContainerReady",this.__positioningContainerReady),this.hasBehavior("wx-positioning-container")&&this.initPositioningContainer(),this._attachedCb&&this._attachedCb())},__checkContainerId:function(e,t){return!!this._container.element&&this._container.element._containerId===t},__getParentContainerId:function(e){var t=this._container;if(e&&!this._insert2WebLayer){if(e instanceof ftparser.Component&&e.hasBehavior("wx-positioning-container"))return t.inContainer=!0,t.id=e._containerId,void(t.element=e);this.__getParentContainerId(e.parentNode||e.__wxHost)}t.inContainer=!1},_setPositionTargetOffset:function(e){if(this._container&&this._container.inContainer&&this._container.element._container.box){var t=this._container.element,n=t._container.box,i=t._containerArgs;e.left=e.left-n.left+i.contentOffsetLeft,e.top=e.top-n.top+i.contentOffsetTop,t._container&&t._container.inContainer&&t._setPositionTargetOffset&&t._setPositionTargetOffset(e)}},isContainerReady:function(){return!!this.getContainerId()},getContainerId:function(){return this._container&&this._container.inContainer&&this._container.id},_requestPositioningContainer:function(){this.triggerEvent("wxAddPositionTracker",{element:this},{bubbles:!0,composed:!0})},trackPositionInDocument:function(){this._positioningSyncing&&(this._positioningSyncing=!0,this._parentPositioningContainer=document)},trackPositionInContainer:function(e){this._positioningSyncing&&(this._positioningSyncing=!0,this._parentPositioningContainer=e)},getPositioningOffset:function(){var e=this.$$.getBoundingClientRect();if(this._parentPositioningContainer===document)return{left:e.left+window.scrollX,top:e.top+window.scrollY,width:this.$$.offsetWidth,height:this.$$.offsetHeight};var t=this._parentPositioningContainer.$$.getBoundingClientRect();return{left:e.left-t.left,top:e.top-t.top,width:this.$$.offsetWidth,height:this.$$.offsetHeight}},fetchPositioningParentId:function(){return 0},getPositioningId:function(){return this._positioningId},regeneratePositioningId:function(){return this._positioningId=L("positioning"),this._positioningId}}}),window.ftparser.registerBehavior({is:"wx-positioning-container",behaviors:["wx-positioning-target"],attached:function(){},detached:function(){this.removePositioningContainer(),this._insertPositioningContainerReadyId&&(clearTimeout(this._insertPositioningContainerReadyId),this._insertPositioningContainerReadyId=null)},listeners:{"this.wxPositioningTargetReady":"positioningTargetReady"},methods:{_addPositionTracker:function(e){if(e.target!==this)return this._positioningSyncing||(this._requestPositioningContainer(),this._positioningSyncing||this.trackPositionInDocument()),e.detail.element.trackPositionInContainer(this),!1},trackPositionInDocument:function(){this._positioningSyncing||(this._positioningSyncing=!0,this._parentPositioningContainer=document,this._initPositioningContainer())},trackPositionInContainer:function(e){this._positioningSyncing&&(this._positioningSyncing=!0,this._parentPositioningContainer=e,this._initPositioningContainer())},_initPositioningContainer:function(){var e=this.getPositioningOffset(),t=this.getScrollPosition(),n=t.scrollLeft,i=t.scrollTop;this._sendContainerCreation(n,i,e)},_sendContainerCreation:function(){},_sendContainerUpdate:function(){},_sendContainerRemoval:function(){},getScrollPosition:function(){return{scrollLeft:0,scrollTop:0,scrollWidth:0,scrollHeight:0}},positioningTargetReady:function(){this._container&&!this._container.inContainer&&this.initPositioningContainer()},updateScrollPosition:function(e){if(this._positioningSyncing){var t=this.getScrollPosition(),n=t.scrollLeft,i=t.scrollTop;return!(!e&&this._prevScrollLeft===n&&this._prevScrollTop===i||(this._prevScrollLeft=n,this._prevScrollTop=i,this._sendContainerUpdate(n,i,e),0))}},triggerPositionChangeEvents:function(){__virtualDOM__.scheduleIntersectionUpdate()},_getContainerBox:function(e,t){var n=this.$$.getBoundingClientRect(),i={left:this.containerInserted?0:n.left+window.scrollX,top:this.containerInserted?0:n.top+window.scrollY,width:this.$$.offsetWidth,height:this.$$.offsetHeight};if(t)return i;var o=e||window.getComputedStyle(this.$$),r=Dt()(o.getPropertyValue("border-top-width"))||0,a=Dt()(o.getPropertyValue("border-bottom-width"))||0,s=Dt()(o.getPropertyValue("border-left-width"))||0,c=Dt()(o.getPropertyValue("border-right-width"))||0;return i.left+=this.containerInserted?0:s,i.top+=this.containerInserted?0:r,i.width-=s+c,i.height-=r+a,this._setPositionTargetOffset&&this._setPositionTargetOffset(i),i},_getContainerArguments:function(){var e=window.getComputedStyle(this.$$),t=this._getContainerBox(e);this.__removeContainerPadding(t,e),this._container||(this._container={}),this._posioningContainerInitReady=!0,this._container.box=t;var n=this.getScrollPosition(),i=this.getScrollSize&&this.getScrollSize();return i||(i={width:t.width,height:t.height}),{canFullScreenByChild:!1,containerId:this.getPositioningId(),position:{left:t.left,top:t.top,width:t.width,height:t.height},parentId:this._container.inContainer?this._container.id:this.fetchPositioningParentId(),contentOffsetLeft:n.scrollLeft||0,contentOffsetTop:n.scrollTop||0,fixed:!1,visible:1,innerWidth:i.width,innerHeight:i.height}},initPositioningContainer:function(){var e=this._getContainerArguments();this._containerArgs=e;var t=this;this._insertPositioningContainerInit=!0,wx.invoke("insertPositioningContainer",e,(function(){t._insertPositioningContainerReady=!0,t._containerId=t.getPositioningId(),document.dispatchEvent(new CustomEvent("positioningContainerReady",{detail:{containerId:t._containerId}})),t.__lastUpdatePositionArgs&&(t.updatePositioningContainer(t.__lastUpdatePositionArgs),t.__lastUpdatePositionArgs=null),t.__lastUpdateItemArgs&&t._updateItemContainer&&(t._updateItemContainer(t.__lastUpdateItemArgs.item,t.__lastUpdateItemArgs.index,t.__lastUpdateItemArgs.position),t.__lastUpdateItemArgs=null)})),this.__containerFullScreenChange=this._containerFullScreenChange.bind(this),document.addEventListener("fullScreenChange",this.__containerFullScreenChange),this.__containerPageRerender=this.__containerPageRerender.bind(this),document.addEventListener("pageReRender",this.__containerPageRerender)},updatePositioningContainer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._insertPositioningContainerReady){for(var t=0,n=E()(e);t<n.length;t++){var i=n[t];this._containerArgs[i]=e[i]}this._containerArgs.containerId=this._containerId,e.position&&(this._container.box=e.position);var o=this.getScrollSize&&this.getScrollSize();o&&(this._containerArgs.innerWidth=o.width,this._containerArgs.innerHeight=o.height),this._containerArgs.animate=e.animate?1:0,wx.invoke("updatePositioningContainer",this._containerArgs,(function(){}))}else this.__lastUpdatePositionArgs=e},removePositioningContainer:function(){wx.invoke("removePositioningContainer",{containerId:this._containerId},(function(){})),document.removeEventListener("fullScreenChange",this.__containerFullScreenChange),document.removeEventListener("pageReRender",this.__containerPageRerender)},__removeContainerPadding:function(e,t){var n=Dt()(t.getPropertyValue("padding-left")),i=Dt()(t.getPropertyValue("padding-right")),o=Dt()(t.getPropertyValue("padding-top")),r=Dt()(t.getPropertyValue("padding-bottom"));e.left+=n,e.top+=o,e.width-=n+i,e.height-=o+r},__containerPageRerender:function(){if(!window.__isFullScreen&&this._containerId){var e=window.getComputedStyle(this.$$),t=this._getContainerBox(e);this.__removeContainerPadding(t,e);var n=this.getScrollPosition();if(this._containerArgs.contentOffsetLeft!==n.scrollLeft||this._containerArgs.contentOffsetTop!==n.scrollTop||this._container.box.left!==t.left||this._container.box.top!==t.top||this._container.box.width!==t.width||this._container.box.height!==t.height){var i=this.getScrollSize&&this.getScrollSize();i||(i={width:t.width,height:t.height}),this._container.box=t;var o=this._isTransitionEnd?{position:t,contentOffsetLeft:n.scrollLeft,contentOffsetTop:n.scrollTop,innerWidth:i.width,innerHeight:i.height}:{position:t,innerWidth:i.width,innerHeight:i.height};this.updatePositioningContainer(o)}}},_containerFullScreenChange:function(e){if(e.detail.containerId===this._containerId){var t=e.detail.fullScreen?{position:{left:0,top:0,width:e.detail.width,height:e.detail.height},innerWidth:e.detail.width,innerHeight:e.detail.height,contentOffsetTop:0,contentOffsetLeft:0}:this._getContainerArguments();this.updatePositioningContainer(t)}}}});var zc=/matrix\(([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+)\)/;function Gc(){var e=[],t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(zc);if(t&&7===t.length){var n=t.slice(1),i=Dt()(n[0]),o=Dt()(n[1]),r=Dt()(n[2]),a=Dt()(n[3]);e=[i,r,Dt()(n[4]),o,a,Dt()(n[5]),0,0,1]}else e=[];return e&&0!==e.length?[1,0,e[2],0,1,e[5],0,0,1]:[]}var Yc=[],Kc={};window.ftparser.registerBehavior({is:"wx-native-cover",properties:{_fullscreen:{type:Boolean,public:!0,value:!1}},listeners:{"this.tap":"stopPropagation","this.longtap":"stopPropagation","this.longpress":"stopPropagation","this.touchstart":"stopPropagation","this.touchmove":"stopPropagation","this.touchend":"stopPropagation","this.touchcancel":"stopPropagation","this.animationstart":"animationStart","this.animationend":"animationEnd"},created:function(){var e=this;this._createdTimeStamp=v()(),this._isRoot=!1,this.__pageRerender=function(){e._attached&&!e._viewId?e._needUpdate=!0:e.updateNativeCoverView()},this._toggleCoverViewForFullscreen=this._toggleCoverViewForFullscreen.bind(this),document.addEventListener("pageReRender",this.__pageRerender),document.addEventListener("toggleCoverViewForFullscreen",this._toggleCoverViewForFullscreen),this._args={},this._propReseted=!0},attached:function(){this._attachedCb()},detached:function(){var e=this;Yc.push([this._parentId,this._viewId]),Kc[this._viewId]=this.viewName;var t=this._viewId;this._viewId=null,setTimeout((function(){e.consumeRemovingNodes(),e.removeFixedNode(t)}),0),document.removeEventListener("pageReRender",this.__pageRerender),document.removeEventListener("toggleCoverViewForFullscreen",this._toggleCoverViewForFullscreen),this._detached=!0,this._parentNode&&"function"==typeof this._parentNode.removeChildView&&this._parentNode.removeChildView(this),this._animateTimer&&clearTimeout(this._animateTimer),this.removeFullScreenListener()},methods:{_attachedCb:function(){var e=this;if(!this._attached){this._attached=!0,this._isRoot=!0;for(var t=this.parentNode;t;){if(t&&(this._isNativeElement(t)||t instanceof ftparser.Component&&t.hasBehavior("wx-button"))){this._isRoot=!1;break}t=t.parentNode||t.__virtual&&t.__wxHost}this._isRoot&&this.insertNativeCoverView(null,null,{},(function(t){e.findCoverView(t,{})}))}},_toggleCoverViewForFullscreen:function(e){var t=this;e.detail&&e.detail.videoId===this._parentId&&setTimeout((function(){t.updatePosition()}),0)},consumeRemovingNodes:function(){var e=Yc,t=Kc;if(Yc=[],Kc={},0!==e.length){var n=[];e.forEach((function(e){for(var t=e[0],i=e[1],o=0;o<n.length;o+=2)n[o]===i&&(n[o]=0,n[o+1]=0);-1!==(o=n.indexOf(t))&&o%2==1||n.push(t,i)}));for(var i=1;i<n.length;i+=2)n[i]&&!this._noNeedToInsert&&this.removeNativeView("remove".concat(t[n[i]]),{viewId:n[i]},(function(){}))}},removeFixedNode:function(e){this._fixed&&this.removeNativeView("remove"+this.viewName,{viewId:e})},addFullScreenListener:function(e){var t=this;this._addFullScreenListenerId=ftparser.addListenerToElement(document,"onVideoFullscreenChange",(function(n){var i=n.detail,o=i.fullScreen,r=i.videoPlayerId;e!==r&&(t._isOtherVideoInFullScreen=o,o?t.hidden||t.toggleHidden(!0):t.hidden||t.toggleHidden(!1))}))},removeFullScreenListener:function(){this._addFullScreenListenerId&&ftparser.removeListenerFromElement(document,"onVideoFullscreenChange",this._addFullScreenListenerId)},insertNativeCoverView:function(e,t,n,i){var o=this;if(this._isInserting)this._needUpdate=!0;else if(this._viewId)"function"==typeof i&&i(this._viewId);else{this._isInserting=!0;var r=t&&(t.hasBehavior("wx-keyboard-accessory")||t.inKeyboardAccessory);t&&t.hasBehavior("wx-video");var a=window.getComputedStyle(this.$$),s=n.noNeedToInsert;this.inKeyboardAccessory=r,this._parentId=e,this._parentNode=t,this._noNeedToInsert=s,this._box=this.getCoverViewBox(a,r),this._calcFixed(a),this._calcUsingCustomTabBar();var c=this._nativeId,l={parentId:this._fixed?"":this._parentId,viewId:c,position:this._box,style:this.getContainerStyle(a),clickable:!1,gesture:!0,sendTo:"webview",data:ce()({target:{id:this.id,offsetLeft:this.$$.offsetLeft,offsetTop:this.$$.offsetTop,dataset:this.dataset},bindscroll:this.bindscroll,timeStamp:this._createdTimeStamp,viewId:this._nativeId,type:this.viewName}),notCoverRect:!0,inKeyboardAccessory:r};l.fixed=l.style.fixed=this._fixed,l.zIndex=l.style.zIndex=this._zIndex,(this._usingCustomTabBar||this._fullscreen)&&(l.fullscreen=!0),this.insert(l,(function(e){o._needUpdate&&(o._needUpdate=!1,o.updateNativeCoverView()),t&&"function"==typeof t.addChildView&&t.addChildView(o),i(e),o._isInserting=!1}))}},updateNativeCoverView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._viewId){var t=window.getComputedStyle(this.$$);this._calcFixed(t);var n=this.getCoverViewBox(t,this.inKeyboardAccessory);if(0!==this._box.width&&0!==this._box.height||0!==n.width&&0!==n.height){this._box=n;var i={position:this._box,style:this.getContainerStyle(t),viewId:this._viewId};i.fixed=i.style.fixed=this._fixed,i.zIndex=i.style.zIndex=this._zIndex,this.update(i,e)}else this._box=n;this.animateCoverView(t)}},updatePosition:function(){var e=window.getComputedStyle(this.$$);this._box=this.getCoverViewBox(e,this.inKeyboardAccessory),this._viewId?this.update({position:this._box},!0,(function(){}),!1):this._needUpdate=!0},sendInsertEvent:function(e,t,n){this._noNeedToInsert?"function"==typeof n&&n({errMsg:"".concat(e,":ok")}):this.insertNativeView(e,t,n)},sendUpdateEvent:function(e,t,n){this._noNeedToInsert?"function"==typeof n&&n({errMsg:"".concat(e,":ok")}):this.updateNativeView(e,t,n)},animateCoverView:function(e){var t=this,n=Dt()(e.transitionDuration||e.webkitTransitionDuration),i=e.transitionProperty||e.webkitTransitionProperty;if(!n||!(/all/.test(i)||/opacity/.test(i)||/transform/.test(i)||/-webkit-transform/.test(i))){var o=this.getTranslate(e);this._lastX=o.x,this._lastY=o.y;var r=this.getRotate(e);this._lastRotate=r;var a=this.getScale(e);return this._lastScaleX=a.x,this._lastScaleY=a.y,void(this._lastOpacity=Dt()(e.opacity))}Pi?this._animateCoverView():setTimeout((function(){t._animateCoverView()}),0)},_animateCoverView:function(){var e=this;if(!O){var t=window.getComputedStyle(this.$$),n=Dt()(t.transitionDuration||t.webkitTransitionDuration),i=t.transitionProperty||t.webkitTransitionProperty;if(n&&(/all/.test(i)||/opacity/.test(i)||/transform/.test(i)||/-webkit-transform/.test(i))&&!document.webkitIsFullScreen){var o=this.$$.style.transitionProperty||this.$$.style.webkitTransitionProperty||"";this.$$.style.setProperty("transition-property","none","important"),this.$$.style.setProperty("-webkit-transition-property","none","important"),this._propReseted&&(this._propReseted=!1,window.requestAnimationFrame((function(){e.$$.style.webkitTransitionProperty="none",e.$$.style.transitionProperty="none",e.$$.style.webkitTransitionProperty=o,e.$$.style.transitionProperty=o,e._propReseted=!0})));var r=this.getTranslate(t),a=this.getRotate(t),s=this.getScale(t),c=Dt()(t.opacity),l=this._box.top-this._lastY+r.y,u=this._box.left-this._lastX+r.x,d=this._box.offsetTop-this._lastY+r.y,h=this._box.offsetLeft-this._lastX+r.x,p=!1,f=/all/.test(i),v=/transform/.test(i)||/-webkit-transform/.test(i);if(c!==this._lastOpacity&&(f||/opacity/.test(i))&&(p=!0),r.y!==this._lastY&&(f||v)&&(p=!0),r.x!==this._lastX&&(f||v)&&(p=!0),a!==this._lastRotate&&(f||v)&&(p=!0),s.x!==this._lastScaleX&&(f||v)&&(p=!0),s.y!==this._lastScaleY&&(f||v)&&(p=!0),this._lastOpacity=c,this._lastX=r.x,this._lastY=r.y,this._lastRotate=a,this._lastScaleX=s.x,this._lastScaleY=s.y,p){this._isAnimating=!0;var m={top:l,left:u,rotate:a,scaleX:s.x,scaleY:s.y,opacity:c,offsetTop:d,offsetLeft:h};FinChatJSBridge.invoke("animateCoverView",{viewId:this._scrollViewId||this._viewId,finalStyle:m,duration:1e3*n,easing:t.transitionTimingFunction},(function(){e._args.style.opacity=m.opacity,e._args.position.top=m.top,e._args.position.left=m.left,e._args.style.rotate=m.rotate,e._args.style.scaleX=m.scaleX,e._args.style.scaleY=m.scaleY,e._args.position&&(e._args.position.offsetLeft=h,e._args.position.offsetTop=d),e.triggerEvent("transitionend",{elapsedTime:n})})),this._animateTimer&&clearTimeout(this._animateTimer),this._animateTimer=setTimeout((function(){e._isAnimating=!1}),1e3*n)}}}},getCoverViewBox:function(e,t){"inline"===e.display&&(this.$$.style.display="inline-block");var n=this._getBox(e,!0),i=this._parentNode,o=window.getComputedStyle(this.$$),r=Gc(o.transform||o.webkitTransform),a=r&&r.length>0;if(!a){var s=this.$$.getBoundingClientRect();n.width=s.width,n.height=s.height}if(t&&(n.top=this.$$.offsetTop,n.left=n.left-(i._box&&i._box.left||0)),this._isRoot)null===this.$$.offsetParent?(n.offsetTop=this.$$.offsetTop,n.offsetLeft=this.$$.offsetLeft):(n.offsetTop=n.top,n.offsetLeft=n.left,a=null);else{var c=this._getOffset(),l=c.offsetTop,u=c.offsetLeft;n.offsetTop=l,n.offsetLeft=u}if(a){var d=r,h=[n.offsetLeft,n.offsetTop,1],p=[],f=h[0],v=h[1],m=h[2];p[0]=f*d[0]+v*d[1]+m*d[2],p[1]=f*d[3]+v*d[4]+m*d[5],p[2]=f*d[6]+v*d[7]+m*d[8],n.offsetTop=p[1],n.offsetLeft=p[0]}return n},getContainerStyle:function(e){var t=Dt()(e.borderRadius)||0;if(/%$/.test(e.borderRadius)){var n=t/100;t=Math.min(Math.min(this._box.width/2,this._box.width*n),Math.min(this._box.height/2,this._box.height*n))}else t=Math.min(this._box.width/2,this._box.height/2,t);var i=Dt()(e.opacity);if(void 0===this._lastOpacity&&(this._lastOpacity=i),void 0===this._lastX||void 0===this._lastY){var o=this.getTranslate(e);this._lastX=o.x,this._lastY=o.y}var r=this.getRotate(e);void 0===this._lastRotate&&(this._lastRotate=r);var a=this.getScale(e);void 0!==this._lastScaleX&&void 0!==this._lastScaleY||(this._lastScaleX=a.x,this._lastScaleY=a.y);var s=Dt()(e.paddingTop)||0,c=Dt()(e.paddingRight)||0,l=Dt()(e.paddingBottom)||0,u=Dt()(e.paddingLeft)||0,d="wx-cover-image"===this.is||this._content?[s,c,l,u]:[0,0,0,0];return this._overflowX=e.overflowX,this._overflowY=e.overflowY,{bgColor:Y(e.backgroundColor),borderRadius:t,borderWidth:Dt()(e.borderWidth)||0,borderColor:Y(e.borderColor)||"#00000000",padding:d,opacity:i,overflow:"hidden",rotate:r,scaleX:a.x,scaleY:a.y}},_calcFixed:function(e){var t=this._calcIsInButton();this._fixed=t?!this.$$.parentNode.offsetParent:"fixed"===e.position;var n=this._getCurrentZIndex(e);if(/cover-(view|image)/.test(this.is)&&this._fixed&&this._parentId?this._zIndex=(Number(this._parentNode&&this._parentNode._zIndex)||0)+n:this._zIndex=n,this._isRoot&&!this._fixed&&this._internalComp){var i=window.getComputedStyle(this.ownerShadowRoot.__wxHost.$$);this._fixed="fixed"===i.position}},_calcIsInButton:function(){var e=this.$$.parentNode;return e&&e.__wxElement&&e.__wxElement instanceof ftparser.Component&&e.__wxElement.hasBehavior("wx-button")},_calcUsingCustomTabBar:function(){if(this._usingCustomTabBar=!1,this._isRoot&&this._fixed)for(var e=this.$$;e;){var t=e.__wxElement;if(t instanceof ftparser.Component&&"custom-tab-bar/index"===t.is&&"wx://tab-bar-wrapper"===t.parentNode.is)return void(this._usingCustomTabBar=!0);e=e.parentNode}},_getOffsetWithTransform:function(e){var t=window.getComputedStyle(e),n=Gc(t.transform||t.webkitTransform);if(n&&n.length>0){var i=n,o=[e.offsetLeft,e.offsetTop,1],r=[],a=o[0],s=o[1],c=o[2];return r[0]=a*i[0]+s*i[1]+c*i[2],r[1]=a*i[3]+s*i[4]+c*i[5],r[2]=a*i[6]+s*i[7]+c*i[8],{offsetLeft:r[0],offsetTop:r[1]}}return{offsetLeft:e.offsetLeft,offsetTop:e.offsetTop}},getTranslate:function(e){return n=(t=e.transform||e.webkitTransform)&&t.match(zc)||["",1,0,0,1,0,0],{x:Number(n[5])||0,y:Number(n[6])||0};var t,n},getRotate:function(e){var t=e.transform||e.webkitTransform,n=t&&t.match(zc)||["",1,0,0,1,0,0],i=Number(n[1]),o=Number(n[2])||0;return Math.round(Math.atan2(o,i)*(180/Math.PI))||0},getScale:function(e){var t=e.transform||e.webkitTransform,n=t&&t.match(zc)||["",1,0,0,1,0,0],i=Number(n[1]),o=Number(n[2])||0,r=Number(n[3])||0,a=Number(n[4]);return i=isNaN(i)?1:i,a=isNaN(a)?1:a,{x:Math.sqrt(i*i+o*o),y:Math.sqrt(r*r+a*a)}},consoleTips:function(){},diff:function(e,t,n){var i=E()(e),o=[];if(n)return i;for(var r=0;r<i.length;r++){var a=i[r];if("[object Object]"===Object.prototype.toString.call(e[a])){if("position"===a&&this._isAnimating)continue;t&&!this.diff(e[a],t[a])||o.push(a)}else if("[object Array]"===Object.prototype.toString.call(e[a]))t&&ce()(e[a])===ce()(t[a])||o.push(a);else{if(Pi&&/^(top|left)$/.test(a))continue;var s=e&&e[a],c=t&&t[a];isNaN(s)||(s=Math.floor(1e3*s)/1e3),isNaN(c)||(c=Math.floor(1e3*c)/1e3),t&&s===c||o.push(a)}}return o.length?o:null},_handleDesktopCoverViewEvent:function(e){if(e){var t=null,n=e.touches&&e.touches[0]?{clientX:e.touches[0].x,clientY:e.touches[0].y}:{};"touchstart"===e.type?t=new MouseEvent("mousedown",Ke()({},{bubbles:!0,cancelable:!0,target:this.$$},n)):"touchend"===e.type&&(t=new MouseEvent("mouseup",Ke()({},{bubbles:!0,cancelable:!0,target:this.$$},n))),this.$$.dispatchEvent(t)}},_handleCoverViewTouch:function(e){var t=this;if(e.viewId===this._viewId){var n,i,o,r=e.type,a=this.$$.getBoundingClientRect(),s=[],c=[];["touches","changedTouches"].forEach((function(n){e[n].forEach((function(e){var i=window.scrollX+a.left+e.x,o=window.scrollY+a.top+e.y,r=i,l=o,u="touches"===n?s:c;document.createTouch?u.push(document.createTouch(window,t.$$,e.identifier,i,o,r,l)):u.push(new Touch({identifier:e.identifier,target:t.$$,pageX:i,pageY:o,screenX:r,screenY:l}))}))})),document.createTouchList&&(s=(i=document).createTouchList.apply(i,s)),document.createTouchList&&(c=(o=document).createTouchList.apply(o,c));try{n=new TouchEvent(r,{cancelable:!0,bubbles:!0,touches:s,targetTouches:[],changedTouches:c})}catch(e){(n=document.createEvent("TouchEvent")).initTouchEvent(r,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,s,document.createTouchList(),c,1,0)}this.triggerEvent(r,n,{bubbles:!0,composed:!0})}},stopPropagation:function(e){this._isRoot&&e.stopPropagation()},onFullscreenChange:function(){document.webkitIsFullScreen?(this.$.container.style.visibility="",this.$.content.style.visibility=""):(this.$.container.style.visibility="hidden",this.$.content.style.visibility="hidden")},animationUpdate:function(){var e=this;this._viewId&&(this.updateNativeCoverView(),window.cancelAnimationFrame(this.raf),this.raf=window.requestAnimationFrame((function(){return e.animationUpdate()})))},animationStart:function(){var e=this;this.raf=window.requestAnimationFrame((function(){return e.animationUpdate()}))},animationEnd:function(){window.cancelAnimationFrame(this.raf)}}}),n(664);var Xc=null,Zc=null;function Jc(e,t){e&&!e.stoped&&(e.stop(t),e.stoped=!0)}function Qc(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}function el(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e>n-t&&e<n+t}function tl(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function nl(e){this._extent=e,this._friction=new Qc(.01),this._spring=new tl(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function il(e,t){if(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 nl(this._extent),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition(),!Zc){for(var n=window.atob("UklGRl4RAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YToRAAAPAPX/IQDT/z0AgP9mAkgBnf72/b/8qPuZ/KwA1gAXAQUBJgFNATYBWwEeAWEB2ABpAVwAxAGn94ftHO9P78DwmPHi8g/0SfWq9tT3hvtxDBoSjxFgEsAR/REWETQR1g8REL0N8g7f/wHwDvIS8uXzfvTC9bH21vcC+Qb6evsg/KP9/v3/BGAWQhn4FzMXzxWoFCUTiRH5DyIB7ev04lzqQfLB9OX1jvaF9xv4Ivnl+dH6hvt+/xwQoRXmE2kT7hH/EHUPKQ6CDO4KIAmFB7oFyAMn9srouuKT4fXkn+yx7UTwbvRsAZUI2wcbCFoHKgdgBhQGbwXeBBkEaQPGAgUCdwGIAKH/5/NY6x7riesp7XfuJPDM8aLzUfZ++r0DegsMDG4MQwxDDPQLqgs6C6MKRQkf/6H3dPZW9j/38/f2+MD5svqA+3b8Vv05/gj///8fAdgCuwUsCtAP6RMBFCETMRFWC+0EdgCU/ff76vpi+jX6fvrb+m777fu3/I39S/8cAqQIjA/ND9oOxw2ZDGALEArFCGAH/wWHBC0D0gF2AC//yP1f/I75Fveu9v736vig+E/48vem92T3OfcS9wb39vYP9yb3UPeC98H3A/hd+Jf4Avki+GD0NfLj8WvyoPMf9fj2BPlb++79xQCsA38GywgZCqgK2Ar3CSoINAZ9BDcDawIHAvcBGAJdArMCDwN1A9EDNQSWBPcEdAXuBZcGTgclCAUJzAlcCowKRAqFCV8I8QZrBecDgQJOAUwAlf8T/9j+4f48//H/JgHQAh4FKgZ1BZ8EowOxArEBwADG/9/+/P8CAAAA//8CAP7/AQAAAAAAAAAAAAAA//8CAP7/AgD+/wEAAAD//wEAAQD9/wMA/v8BAAAAAAD//wIA/v8CAP3/BAD8/wQA/P8CAAAA//8CAPz/BQD7/wUA+/8EAP3/AwD9/wMA/f8DAP3/AgD//wAAAQD//wAAAAAAAAAAAAABAP7/AgD+/wEAAAABAP////8CAP7/AgD+/wIA/f8FAPr/BgD6/wUA/P8EAP3/AgD+/wEAAAD//wIA/v8BAAAA//8BAAAA//8CAP3/AwD+/wIA/v8BAP//AQAAAAAA//8CAP3/AwD/////AgD+/wEAAAAAAAAAAAAAAP//AgD//wAAAAABAP7/AwD9/wIA//8BAP7/AwD9/wEAAQD+/wIA/v8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8BAP//AgD+/wEAAAD//wEAAQD+/wMA/f8CAP//AQD//wIA/f8DAP7/AQD//wEAAAD//wEA//8AAAEAAAD//wAAAQD+/wQA+/8EAP3/AgD//wEA//8AAAAAAAAAAAEA/v8CAP3/AwD+/wEAAAD+/wMA/f8CAP//AAABAP//AAAAAAAAAQD+/wIA//8AAAAAAAAAAAAAAQD9/wMA//8AAAAAAAAAAAAAAQD+/wIAAAD+/wMA/P8DAP7/AgD/////AQD//wEAAAAAAP//AgD9/wMA/v8BAAAAAAD//wIA/f8DAP7/AgD/////AQD//wIA/v8CAP7/AQAAAAAAAAAAAAAA//8CAP7/AQD//wEA//8BAP//AQD//wEA//8CAP7/AgD+/wEAAAD//wIA/v8BAP//AAABAP//AQD//wAAAQD//wAAAQD+/wMA/f8BAAEA/v8CAAAA/f8FAPr/BgD7/wQA/f8CAP//AAABAP//AQD//wAAAQD//wEA//8AAAAAAAAAAAEA//8AAAAAAQD+/wMA/f8CAP//AQD+/wMA/f8CAP//AAABAP7/AwD8/wQA/f8CAP7/AgD+/wIAAAD+/wIA/v8CAP//AQD/////AwD8/wUA+/8EAP3/AgD//wEA/v8CAP//AQD//wEA/v8CAAAA/v8EAPv/BAD+/wEAAAD//wEA//8CAP3/BAD8/wMA/f8DAP7/AgD9/wQA+/8FAPz/AwD+/wEA//8AAAIA/f8CAP//AAABAP//AQD+/wIA/v8CAAAA//8AAAEA//8BAAAA//8CAP7/AgD9/wMA/v8BAAAAAAD//wEA//8BAAEA/v8AAAEAAAD//wEA//8AAAEA//8AAAEA/v8BAAEA/v8CAP//AAAAAAAAAAAAAAEA/v8CAP7/AgD+/wIA/v8CAP//AAAAAAAAAAAAAAAAAAAAAAAAAAD//wIA/v8CAP7/AQAAAAAA//8CAP7/AgD+/wIA/v8CAP7/AQABAP7/AQD//wIA/f8EAPv/BAD+/wEAAAD//wEA//8BAAAA//8BAP//AQD//wIA/f8CAP//AAABAP//AAABAP7/AgD/////AgD+/wIA/v8BAP7/BAD8/wIAAAD+/wMA/v8AAAIA/f8CAP//AAACAP3/AgD/////AgD+/wEAAQD9/wQA+/8EAP7/AQAAAAAA//8BAP//AQAAAAAAAAD+/wMA/f8DAP////8BAAAA//8CAP7/AgD+/wIA/v8CAP7/AgD9/wMA//8AAAAAAAD//wMA/P8EAP3/AgD//wAAAAABAP//AQD+/wMA/P8FAPv/BAD+////AwD8/wQA/f8BAAEA/v8CAP//AAABAP//AAABAP//AQD//wEA/v8CAP//AAABAP7/AgD//wAAAAABAP7/AwD8/wQA/f8CAP//AAABAP//AQD//wEA//8CAP3/BAD7/wUA/P8DAP7/AAACAPz/BQD7/wQA/f8CAP//AQD//wAAAQD//wEA//8BAP//AQD//wAAAgD9/wQA+/8EAP7/AQAAAAAA//8BAP//AgD9/wQA/P8EAP3/AQAAAAAAAAACAPz/BAD8/wQA/P8EAPz/AwD+/wIA/v8CAP7/AQAAAAAAAAABAP7/AQAAAP//AwD8/wQA/f8BAAEA//8AAAIA/P8EAP7/AAABAP//AAABAP//AAABAP//AQD//wAAAQD//wEA//8BAAAA//8BAP//AQABAP7/AQAAAAAAAAABAP3/AwD//wAAAAD//wEAAAAAAP//AQD+/wQA/P8DAP7/AAABAAAAAAAAAAAA//8CAP////8CAP7/AgD/////AQAAAAAAAAAAAP//AgD9/wQA+/8FAPz/AwD9/wIAAAD+/wMA/P8EAP7/AAABAP//AAABAP7/AwD9/wMA/f8DAP7/AQAAAAAAAAAAAAEA//8AAAEA/f8EAP3/AgD//wAAAAAAAAAAAQD+/wIA//8BAP////8CAAAA//8CAPz/BAD+/wEAAAD//wAAAQD//wIA/f8CAP//AQD//wEA/v8DAP3/AwD9/wEAAQD//wEA//8AAAAAAQD//wAAAQD+/wIA//8AAAAAAAD//wMA/f8CAP7/AQAAAAAAAQD+/wIA/v8BAAEA/v8CAP//AAABAP7/AwD9/wMA/f8CAP//AQD+/wMA/P8EAP3/AQABAP7/AgD9/wQA/f8BAAAA/v8EAPz/AwD+/wAAAQAAAAAAAAD//wEAAAAAAAEA/f8EAPz/BAD9/wEAAQD9/wQA/P8DAP////8BAP//AQD//wEA//8BAAAA//8BAAAA//8BAP//AQAAAP7/BAD6/wcA+f8HAPr/BQD8/wMA//8AAAAAAQD9/wQA+/8GAPv/AwD+/wEAAAAAAAAAAAABAP//AQD+/wMA/f8DAP7/AAABAAAA/v8DAP3/AgAAAP7/AwD9/wMA/v8AAAEA//8BAAAA//8AAAEA/v8DAPz/BAD9/wIA//8AAAAAAAABAP//AQD//wAAAQAAAP//AQAAAAAAAAAAAAAAAAABAP//AAAAAAEA//8AAAAAAAABAP//AAAAAAEA//8BAP//AQD//wIA/v8BAAAA/v8EAPz/AwD///7/BAD7/wUA/P8DAP7/AAABAAAA//8BAP//AAACAP3/AwD9/wIA//8AAAEA//8AAAEA/v8BAAEA/v8DAPz/AwD//wAAAAAAAAAAAQD+/wIA/v8CAP7/AgD+/wIA/v8BAAAAAAAAAAAAAAAAAAAAAAD//wIA/v8CAP3/AwD9/wMA/v8BAAAA/v8DAP3/AwD+/wAAAQD+/wIA/v8DAPz/AwD+/wEAAQD+/wEA//8CAP3/BQD6/wUA/f8AAAIA/////wIA/v8BAAEA/v8CAP3/BAD8/wQA/f8AAAIA/f8DAP7/AAACAPz/BQD7/wQA/f8DAP7/AQD//wEA//8BAAAA//8CAP3/AgD//wIA/v8CAP7/AQABAP7/AgD+/wEAAQD+/wIA/v8AAAIA/v8CAP7/AQAAAP//AgD+/wEAAQD9/wQA/P8DAP////8CAP7/AgD+/wEAAAD//wMA/P8DAP7/AQAAAAAAAAD//wIA/v8BAAEA/f8EAPz/AwD+/wIA/v8CAP7/AQAAAAAA//8DAPz/BAD8/wMA/v8CAP7/AgD+/wIA/v8BAAEA/v8DAPz/BAD9/wMA/f8CAP7/AgAAAP7/AwD8/wMA//8AAAAAAAAAAP//AgD+/wEAAAD//wEAAAD//wEA//8BAP//AQD+/wIA//8BAP//AQD+/wIA//8BAP//AQD//wAAAgD9/wIA//8BAAAA//8BAP7/AwD9/wMA/f8DAP3/AgAAAP//AAABAP//AQAAAP//AAAAAAIA/P8FAPv/BAD+/wAAAQD//wEAAAD//wEAAAD//wIA/f8DAP7/AQABAPz/BgD6/wUA/f8BAAAA//8CAP7/AwD8/wMA/////wMA/P8EAP3/AQABAP7/AwD8/wQA/f8DAP3/AgD+/wIA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8CAP7/AgD+/wEAAAD//wIA/v8BAP//AgD+/wEAAAD//wEAAAAAAAAAAAAAAP//AwD8/wMA/////wEAAQD+/wIA/v8CAP3/BQD5/wcA/P8AAAIA/f8DAP7/AgD9/wMA/f8CAAAA/v8DAP3/AQAAAAAAAQD+/wIA/f8FAPv/AwD/////BAD7/wQA/v8AAAEA//8AAAIA/P8FAPv/BQD8/wIA//8BAAAA//8BAAAA//8BAP//AQAAAAAA//8BAP//AQAAAP//AAAAAAEA//8BAP7/AgD+/wIA//8BAP//AAABAP7/AwD9/wIA//8AAAAAAQD+/wIA/v8BAAEA/v8CAP////8DAPz/BAD9/wIA//8AAAAAAAAAAAEA/v8CAP7/AgD+/wMA/P8EAP3/AQABAP7/AgD+/wIA/v8CAP////8DAP3/AQACAPz/BAD9/wIA//8BAP//AAAAAAEA//8BAP//AQD//wIA/f8CAAAA//8BAP//AAABAP//AAAAAAAAAQD//wAAAAABAP//AQD//wEA//8BAP//AQAAAP//AAABAP//AQD//wAAAAABAP7/AgD+/wIA/v8BAP//AgD9/wQA+/8EAP7/AQAAAP//AAACAP7/AgD+/wEAAQD+/wIA//8AAAEA/f8EAP3/AQABAP7/AQABAP3/BAD9/wIA//8AAAAAAAAAAAEA/f8FAPr/BQD9/wEAAQD+/wIA/v8CAP//AAAAAAAAAAAAAAEA/v8CAP7/AgD+/wIA//8AAAAA//8CAP7/AgD9/wQA/P8EAPz/AwD+/wIA/v8CAP7/AQAAAAAAAAD//wEAAAAAAAAA//8BAAAAAQD+/wIA/v8DAP3/AgD//wAAAQD//wAAAAAAAAEA/v8CAP//AAABAP7/AwD+/wAAAgD8/wUA/P8CAAAA//8BAP//AQD+/wQA+v8GAPv/AwD//wAAAAAAAAAAAAABAP//AAAAAAAAAQD//wAAAQD+/wMA/f8CAP//AQD//wEAAAD+/wMA/f8CAAAA/v8DAP3/AgD//wAAAQD+/wMA/f8CAP//AAACAP3/AgD//wAAAQD//wAAAQD+/wMA/f8BAAEA//8AAAEA/v8="),i=new Uint8Array(n.length),o=0,r=n.length;o<r;o++)i[o]=n.charCodeAt(o);(Zc=new(window.AudioContext||window.webkitAudioContext)).decodeAudioData(i.buffer,(function(e){Xc=e}))}}Qc.prototype.set=function(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()},Qc.prototype.setVelocityByEnd=function(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},Qc.prototype.x=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog},Qc.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},Qc.prototype.done=function(){return Math.abs(this.dx())<3},Qc.prototype.reconfigure=function(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)},Qc.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}]},tl.prototype._solve=function(e,t){var n=this._c,i=this._m,o=this._k,r=n*n-4*i*o;if(0===r){var a=-n/(2*i),s=e,c=t/(a*e);return{x:function(e){return(s+c*e)*Math.pow(Math.E,a*e)},dx:function(e){var t=Math.pow(Math.E,a*e);return a*(s+c*e)*t+c*t}}}if(r>0){var l=(-n-Math.sqrt(r))/(2*i),u=(-n+Math.sqrt(r))/(2*i),d=(t-l*e)/(u-l),h=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,l*e)),n||(n=this._powER2T=Math.pow(Math.E,u*e)),h*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,l*e)),n||(n=this._powER2T=Math.pow(Math.E,u*e)),h*l*t+d*u*n}}}var p=Math.sqrt(4*i*o-n*n)/(2*i),f=-n/2*i,v=e,m=(t-f*e)/p;return{x:function(e){return Math.pow(Math.E,f*e)*(v*Math.cos(p*e)+m*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,f*e),n=Math.cos(p*e),i=Math.sin(p*e);return t*(m*p*n-v*p*i)+f*t*(m*i+v*n)}}},tl.prototype.x=function(e){if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._solution){var t=this._solution.x(e);return this._endPosition+t}return 0},tl.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},tl.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!el(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(el(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),el(t,.1)&&(t=0),el(i,.1)&&(i=0),i+=this._endPosition),this._solution&&el(i-e,.1)&&el(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},tl.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},tl.prototype.done=function(e){return e||(e=(new Date).getTime()),el(this.x(),.1,this._endPosition)&&el(this.dx(),.1)},tl.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())},tl.prototype.springConstant=function(){return this._k},tl.prototype.damping=function(){return this._c},tl.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},nl.prototype.snap=function(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)},nl.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())},nl.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},nl.prototype.dx=function(e){return this._springing?this._spring.dx(e):this._friction.dx(e)},nl.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},nl.prototype.setVelocityByEnd=function(e){this._friction.setVelocityByEnd(e)},nl.prototype.configuration=function(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e},il.prototype.onTouchStart=function(){if(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(),Xc){this._sound&&(clearInterval(this._vibrateTimer),this._sound.loop=!1,Jc(this._sound,.04),this._sound=null);var e=Zc.createBufferSource();e.buffer=Xc,e.connect(Zc.destination),e.start(0),e.stop(0)}this._options.onTouchStart&&this._options.onTouchStart()},il.prototype.onTouchMove=function(e,t){var n=this,i=this._startPosition;if(this._enableX?i+=e:this._enableY&&(i+=t),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll(),Xc&&i<0&&i>-this._extent){var o=Math.floor(Math.abs(i/this._itemSize));Math.abs(i-this._lastChangePos)>this._itemSize/2&&"number"==typeof this._lastIdx&&this._lastIdx!==o&&(setTimeout((function(){Jc(n._sound,.04);var e=n._sound=Zc.createBufferSource();e.buffer=Xc,e.connect(Zc.destination),e.start(0)})),this._lastChangePos=i),this._lastIdx=o}},il.prototype.onTouchEnd=function(e,t,n){var i,o,r=this,a=this,s=function(){r._options.onTouchEnd&&r._options.onTouchEnd()};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 this.snap(),void s();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return this.snap(),void s()}if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var c=this._scroll._friction.x(100),l=c%this._itemSize,u=Math.abs(l)>this._itemSize/2?c-(this._itemSize-Math.abs(l)):c-l;u<=0&&u>=-this._extent&&this._scroll.setVelocityByEnd(u)}this._lastTime=v()(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),v()(),Xc&&Math.abs(n.y)>800&&(o=this._vibrateTimer=setInterval((function(){}),30),(i=this._sound=Zc.createBufferSource()).buffer=Xc,i.connect(Zc.destination),i.loopStart=0,i.loopEnd=.04,i.loop=!0,i.start(0));var d=this._scroll,h={id:0,cancelled:!1};!function e(t,n,i,o){if(!t||!t.cancelled){i(n);var r=d.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,i,o))),r&&o&&o(n)}}(h,d,(function(){var t=(v()()-a._scroll._startTime)/1e3,n=a._scroll.x(t);a._position=n,a.updatePosition();var r=a._scroll.dx(t),s=a._scroll._springing;if((Math.abs(r)<=800||s)&&i&&(clearInterval(o),i.loop=!1,Jc(i,.04),i=a._sound=null,a._lastIdx=Math.floor(Math.abs(n/a._itemSize))),!s&&!i&&Xc){var c=Math.floor(Math.abs(n/a._itemSize)),l=Math.abs(n%a._itemSize);Math.abs(n-a._lastChangePos)>a._itemSize/2&&(a._lastIdx!==c||r<5&&(l<1||a._itemSize-l<1))&&(setTimeout((function(){Jc(a._sound,.04);var e=a._sound=Zc.createBufferSource();e.buffer=Xc,e.connect(Si.destination),e.start(0)})),a._lastChangePos=n),a._lastIdx=c}a._shouldDispatchScrollEvent&&e-a._lastTime>a._lastDelay&&(a.dispatchScroll(),a._lastDelay=Math.abs(2e3/r),a._lastTime=e)}),(function(){a._enableSnap&&("function"==typeof a._options.onSnap&&a._options.onSnap(Math.floor(Math.abs(a._position)/a._itemSize)),s()),a._shouldDispatchScrollEvent&&a.dispatchScroll(),a._scrolling=!1})),this._animation={cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,h),model:d}},il.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()},il.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?(Xc&&this._startPosition!==n&&setTimeout((function(){var e=Zc.createBufferSource();e.buffer=Xc,e.connect(Zc.destination),e.start(0)}),200),this._snapping=!0,this.scrollTo(-n),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))):"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))},il.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 ".concat(t||.2,"s ease-out"),this._element.style.webkitTransition="-webkit-transform ".concat(t||.2,"s ease-out"),this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},il.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)}},il.prototype.update=function(e,t,n){var i=0,o=this._position;this._enableX?(i=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(i=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),o!==this._position&&(this.dispatchScroll(),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},il.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},il.prototype.isScrolling=function(){return this._scrolling||this._snapping},window.ftparser.registerBehavior({is:"wx-scroller",methods:{initScroller:function(e,t){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._handlers=new il(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;if(-1===t.trackingID){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]});var n=this._handlers;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.timeStamp],t.listener=n,n.onTouchStart&&n.onTouchStart())}},_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.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.timeStamp)}}},_handleTouchEnd:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault(),"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]});var n=this._findDelta(e);if(n){var i=t.listener;t.trackingID=-1,t.listener=null;var o={x:0,y:0};if(t.historyTime.length>2)for(var r=t.historyTime.length-1,a=t.historyTime[r],s=t.historyX[r],c=t.historyY[r];r>0;){r--;var l=a-t.historyTime[r];if(l>30&&l<50){o.x=(s-t.historyX[r])/(l/1e3),o.y=(c-t.historyY[r])/(l/1e3);break}}t.historyTime=[],t.historyX=[],t.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,o)}}}}});var ol=["touchstart","touchmove","touchend","touchcancel","longtap"],rl=function(e,t){var n=this;return[].concat(Dn.toArray(e)).map((function(e){return{identifier:e.identifier,x:e.pageX-window.scrollX-n.$$.getBoundingClientRect().left,y:e.pageY-window.scrollY-n.$$.getBoundingClientRect().top}}))},al=!1;window.ftparser.registerBehavior({is:"wx-canvas-touch",properties:{},methods:{addTouchEventForWebview:function(){var e=this;ol.forEach((function(t){e.$$.addEventListener(t,(function(n){n.eventName=t,e.fireTouchEvent(n)}))}))},fireTouchEvent:function(e){var t=this,n=e.eventName,i=rl.call(this,e.touches,n),o=rl.call(this,e.changedTouches,n);if(this.bindlongtap&&(this._touchInfo=this._touchInfo||{},this._disableScroll=this._disableScroll||0,"touchstart"===n?o.forEach((function(n){t._touchInfo[n.identifier]={},t._touchInfo[n.identifier].x=n.x,t._touchInfo[n.identifier].y=n.y,t._touchInfo[n.identifier].timeStamp=e.timeStamp,t._touchInfo[n.identifier].handler=setTimeout((function(){if(Object.prototype.hasOwnProperty.call(t._touchInfo,n.identifier)){t._touchInfo[n.identifier].longPress=!0,++t._disableScroll;var e=[],i=[];for(var o in t._touchInfo){var r={identifier:o,x:t._touchInfo[o].x,y:t._touchInfo[o].y};e.push(r),o===String(n.identifier)&&i.push(r)}wd.publishPageEvent(t.bindlongtap,{type:"bindlongtap",timeStamp:t._touchInfo[n.identifier].timeStamp+300,target:{id:t.id||"",offsetLeft:t.$$.offsetLeft,offsetTop:t.$$.offsetTop,dataset:t.dataset,markset:t.markset},touches:e,changedTouches:i},t.getNodeId())}}),300)})):"touchend"===n||"touchcancel"===n?o.forEach((function(e){Object.prototype.hasOwnProperty.call(t._touchInfo,e.identifier)||console.error("in "+n+", can not found "+e.identifier+" in "+ce()(t._touchInfo)),t._touchInfo[e.identifier].longPress&&--t._disableScroll,clearTimeout(t._touchInfo[e.identifier].handler),delete t._touchInfo[e.identifier]})):(al=!1,o.forEach((function(e){var i,o,r,a;Object.prototype.hasOwnProperty.call(t._touchInfo,e.identifier)||console.error("in "+n+", can not found "+e.identifier+" in "+ce()(t._touchInfo)),o=e,(r=(i=t._touchInfo[e.identifier]).x-o.x)*r+(a=i.y-o.y)*a>5&&(t._touchInfo[e.identifier].longPress||clearTimeout(t._touchInfo[e.identifier].handler),al=!0),t._touchInfo[e.identifier].x=e.x,t._touchInfo[e.identifier].y=e.y})))),this["bind"+n]&&i.length+o.length>0){if("touchmove"===n&&!al)return;wd.publishPageEvent(this["bind"+n],{type:n,timeStamp:e.timeStamp,target:{id:this.$$.id,offsetLeft:this.$$.offsetLeft,offsetTop:this.$$.offsetTop,dataset:this.dataset,markset:this.markset},touches:i,changedTouches:o},this.getNodeId())}(this.disableScroll||this._disableScroll)&&(e.preventDefault(),e.stopPropagation())}}}),n(665);var sl=/[+-]?\d+(\.\d+)?rpx/,cl=/[+-]?\d+(\.\d+)?px/;window.ftparser.registerBehavior({is:"wx-size-normalizer",methods:{_transformSizeUnit:function(e){return e.match(sl)&&(e=wx.transformRpx("%%?"+e+"?%%")),e.match(cl)&&(e=Dt()(e,10)),e=+e,isNaN(e)?0:e},normalizeSize:function(e){return"string"==typeof e?this._transformSizeUnit(e):"number"==typeof e?e:0},normalizeSizeInPlace:function(e,t){var n=this,i=function(t){var i=e[t];"string"==typeof i&&(e[t]=n.normalizeSize(i))};"[object Array]"===Object.prototype.toString.call(t)?t.forEach(i):"string"==typeof t&&i(t)}}}),n(666);var ll=ftparser.HtmlParser||{parse:function(e){return[]},TAG_TYPES:{}},ul=ll.TAG_TYPES,dl={rules:{a:"nA",abbr:"nA",address:"nA",article:"nA",aside:"nA",b:"nA",bdi:"nA",bdo:"fA",big:"nA",blockquote:"nA",br:"nA",caption:"nA",center:"nA",cite:"nA",code:"nA",col:"fA",colgroup:"fA",dd:"nA",del:"nA",div:"nA",dl:"nA",dt:"nA",em:"nA",fieldset:"nA",font:"nA",footer:"nA",h1:"nA",h2:"nA",h3:"nA",h4:"nA",h5:"nA",h6:"nA",header:"nA",hr:"nA",i:"nA",img:"fA",ins:"nA",label:"nA",legend:"nA",li:"nA",mark:"nA",nav:"nA",ol:"fA",p:"nA",pre:"nA",q:"nA",rt:"nA",ruby:"nA",s:"nA",section:"nA",small:"nA",span:"nA",strong:"nA",sub:"nA",sup:"nA",table:"fA",tbody:"nA",td:"fA",tfoot:"nA",th:"fA",thead:"nA",tr:"fA",tt:"nA",u:"nA",ul:"nA"},fA:function(e,t,n,i){var o={bdo:{dir:"nF"},col:{span:"nF",width:"nF"},colgroup:{span:"nF",width:"nF"},img:{alt:"nF",src:"fL",height:"nF",width:"nF"},ol:{start:"nF",type:"nF"},table:{width:"nF"},td:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"},th:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"},tr:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"}},r=o[n][e];if(Object.prototype.hasOwnProperty.call(o,n)&&Object.prototype.hasOwnProperty.call(o[n],e))switch(r){case void 0:break;case"nF":i.setAttribute(e,t);break;default:return dl[r]&&dl[r](e,t,n,i)}},fL:function(e,t,n,i){i.setAttribute(e,t)},parse:function(e,t,n,i){return e.forEach((function(e){if("object"===Ce()(e))if(void 0===e.type&&void 0===e.t||"node"===e.type||e.t===ul.TAG_START||""===e.type||""===e.t){if("string"==typeof e.name&&""!==e.name||"string"==typeof e.n&&""!==e.n){var o=e.name||e.n||"";if(o=o.toLowerCase(),Object.prototype.hasOwnProperty.call(dl.rules,o)){var r=dl.rules[o],a=document.createElement(o);if(a){var s=[];if("object"===Ce()(e.attrs))for(var c=0,l=E()(e.attrs);c<l.length;c++){var u=l[c];s.push({n:u,v:ll.decodeEntities(e.attrs[u])})}else"object"===Ce()(e.a)&&e.a instanceof Array&&e.a.length&&(s=e.a);s.length&&s.forEach((function(e){var t=e.n.toLowerCase(),i=e.v;if("class"===t){var s=i.replace(/\S+/g,(function(e){return n(e)}));a.setAttribute("class",s)}else"style"===t?a.setAttribute("style",i):t.startsWith("data-")?a.setAttribute(t,i):"nA"!==r&&dl[r]&&dl[r](t,i,o,a)})),"object"===Ce()(e.c)&&e.c instanceof Array&&e.c.length&&dl.parse(e.c,a,n,i),"object"===Ce()(e.children)&&e.children instanceof Array&&e.children.length&&dl.parse(e.children,a,n,i),t.appendChild(a)}}}}else e.t===ul.TEXT&&"string"==typeof e.c&&""!==e.c?(e.c=i(e.c),t.appendChild(document.createTextNode(e.c))):"text"===e.type&&"string"==typeof e.text&&""!==e.text&&(e.text=i(e.text),t.appendChild(document.createTextNode(ll.decodeEntities(e.text))))})),t}};window.ftparser.registerBehavior({is:"wx-html-parse",behaviors:["wx-class-prefix"],methods:{_createSpaceDecode:function(e){if(e){if("nbsp"===e)return function(e){return e.replace(/ /g," ")};if("ensp"===e)return function(e){return e.replace(/ /g," ")};if("emsp"===e)return function(e){return e.replace(/ /g," ")}}return function(e){return e}},getFilter:function(){return dl},getHtmlParser:function(){return ll},filterHtml:function(e){var t=this;try{e=ll.parse(e,!0)}catch(e){return console.error(e)}if("object"===Ce()(e)&&e instanceof Array){var n;try{n=dl.parse(e,document.createDocumentFragment(),(function(e){return t.convertClassWithPrefix(e)}),this._createSpaceDecode("nbsp"))}catch(e){return console.error(e)}var i=document.createElement("div");return i.appendChild(n),i.innerHTML}}}}),n(667),window.ftparser.registerBehavior({is:"wx://component-export",attached:function(){}}),window.ftparser.registerBehavior({is:"wx://form-field",properties:{name:{type:String,public:!0},value:{type:null,public:!0}},attached:function(){}}),window.ftparser.registerBehavior({is:"wx://form-field-button",listeners:{formSubmit:function(e){this.triggerEvent("formSubmit",e,{bubbles:!0})},formReset:function(e){this.triggerEvent("formReset",e,{bubbles:!0})}},attached:function(){}}),window.ftparser.registerBehavior({is:"wx://form-field-group",attached:function(){}}),window.ftparser.registerBehavior({is:"wx://request-filter",relations:{"wx://request-sender":{type:"shadowContent"}},methods:{_srcFilter:function(e){return-1!==e.indexOf("://")||0===e.indexOf("//")?0===e.indexOf("https://wx.qlogo.cn")?e:null:e}}}),window.ftparser.registerBehavior({is:"wx://request-sender",relations:{"wx://request-filter":{type:"shadowHost",linked:function(e){this._hasCheckedLinked=!0,this._filterTarget=e,this._checkDeferredFuncList()},linkFailed:function(){this._hasCheckedLinked=!0,this._checkDeferredFuncList()}}},methods:{checkProp:function(e){return e=void 0===e?this[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"src"]:e,this._filterTarget?this._filterTarget._srcFilter(e):e},deferredSetProp:function(e){if(this._hasCheckedLinked)return e&&e();this._deferredFuncList=this._deferredFuncList||[],this._deferredFuncList.push(e)},_checkDeferredFuncList:function(){var e=this._deferredFuncList;if(e&&e.length)for(;e.length;)e.shift()()}}}),window.ftparser.registerBehavior({is:"wx://style-filter",methods:{_styleFilter:function(){return""}}});var hl=n(132),pl=n.n(hl);function fl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):fl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-page-meta",options:{lazyRegistration:!0},template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-size-normalizer"],properties:{backgroundTextStyle:{type:String,value:"",public:!0,observer:function(){this._update("backgroundTextStyle")}},backgroundColor:{type:String,value:"",public:!0,observer:function(){this._update("backgroundColor")}},backgroundColorTop:{type:String,value:"",public:!0,observer:function(){this._update("backgroundColor")}},backgroundColorBottom:{type:String,value:"",public:!0,observer:function(){this._update("backgroundColor")}},rootBackgroundColor:{type:String,value:"",public:!0,observer:function(){this._update("rootBackgroundColor")}},scrollTop:{type:String,value:"",public:!0},scrollDuration:{type:Number,value:300,public:!0},pageStyle:{type:String,value:"",public:!0,observer:function(){this._update("pageStyle")}},rootFontSize:{type:String,value:"",public:!0,observer:function(){this._update("rootFontSize")}},pageOrientation:{type:String,value:"",public:!0,observer:function(){this._update("pageOrientation")}},pageFontSize:{type:String,value:"",public:!0,observer:function(){this._update("pageStyle")}}},observers:{scrollTop:function(){this.data.scrollTop&&this._update("scrollTop")}},created:function(){var e=this;this._dirtyFields={backgroundTextStyle:!1,backgroundColor:!1,rootBackgroundColor:!1,scrollTop:!1,pageStyle:!1,rootFontSize:!1,pageOrientation:!1},this._dirtyTobj=null,this.__onScroll=pl()((function(t){e._onScroll(t)}),200,{leading:!0,trailing:!0})},attached:function(){var e=this;this.parentNode instanceof ftparser.ShadowRoot&&this.parentNode.getHostNode()===window.__DOMTree__&&this.parentNode.childNodes[0]===this?(this._valid=!0,wx.onPageResizeChange((function(t){var n=t.size;e.triggerEvent("resize",{size:n})})),window.addEventListener("scroll",this.__onScroll)):(this._valid=!1,console.warn("For developer:<page-meta /> 只能是页面内的第一个节点,且不能被 wx:if 、 wx:for 动态变更")),this._update("")},detached:function(){window.removeEventListener("scroll",this.__onScroll)},methods:{_onScroll:function(){this.triggerEvent("scroll",{scrollTop:window.scrollY})},_convertFontSize:function(e){return"system"===e?window.__fontSizeSetting__+"px":e.includes("rpx")?wx.transformRpx("%%?".concat(e,"?%%")):e},_update:function(e){var t=this;if(e&&(this._dirtyFields[e]=!0),ftparser.Element.isAttached(this)&&this._valid){if(this._dirtyFields.pageStyle){this._dirtyFields.pageStyle=!1;var n=wx.transformRpx(this.data.pageStyle,!0),i=this.ownerShadowRoot.getHostNode().$$;i.setAttribute("style",n),this.data.pageFontSize&&(i.style.fontSize=this._convertFontSize(this.data.pageFontSize))}this._dirtyFields.rootFontSize&&(this._dirtyFields.rootFontSize=!1,document.documentElement.style.fontSize=this._convertFontSize(this.data.rootFontSize)),this._dirtyTobj||(this._dirtyTobj=requestAnimationFrame((function(){t._dirtyTobj=null,t._applyUpdates()})))}},_applyUpdates:function(){var e=this;if(this._dirtyFields.backgroundTextStyle&&(this._dirtyFields.backgroundTextStyle=!1,wx.setBackgroundTextStyle({textStyle:this.data.backgroundTextStyle,fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.backgroundColor&&(this._dirtyFields.backgroundColor=!1,wx.setBackgroundColor({backgroundColor:this.data.backgroundColor,backgroundColorTop:this.data.backgroundColorTop,backgroundColorBottom:this.data.backgroundColorBottom,fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.scrollTop){this._dirtyFields.scrollTop=!1;var t=v()();FinChatJSBridge.subscribe("scrollDone",(function(t){e.triggerEvent("scrolldone",{})})),FinChatJSBridge.subscribe("androidScrollDone_".concat(t),(function(t){e.triggerEvent("scrolldone",{})})),wd.pageScrollTo({scrollId:t,duration:this.data.scrollDuration,scrollTop:this.normalizeSize(this.data.scrollTop)})}this._dirtyFields.pageOrientation&&(this._dirtyFields.pageOrientation=!1,wx.invoke("setPageOrientation",{orientation:this.data.pageOrientation},(function(){}))),this._dirtyFields.rootBackgroundColor&&(this._dirtyFields.rootBackgroundColor=!1,document.documentElement.style.backgroundColor=this.data.rootBackgroundColor)}}}),window.ftparser.registerElement({is:"wx-navigation-bar",options:{lazyRegistration:!0},template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base"],properties:{title:{type:String,value:"",public:!0,observer:function(){this._update("title")}},loading:{type:Boolean,value:!1,public:!0,observer:function(){this._update("loading")}},frontColor:{type:String,value:"#ffffff",public:!0,observer:function(){this._update("color")}},backgroundColor:{type:String,value:"#000000",public:!0,observer:function(){this._update("color")}},colorAnimationDuration:{type:Number,value:0,public:!0,observer:function(){this._update("color")}},colorAnimationTimingFunc:{type:String,value:"linear",public:!0,observer:function(){this._update("color")}}},created:function(){this._dirtyFields={title:!1,loading:!1,color:!1},this._dirtyTobj=null},attached:function(){this.parentNode instanceof ftparser.Component&&"wx-page-meta"===this.parentNode.is&&this.parentNode.childNodes[0]===this?this._valid=!0:(this._valid=!1,console.warn("For developer:<navigation-bar /> 只能是 <page-meta /> 内的第一个节点,且不能被 wx:if 、 wx:for 动态变更")),this._update("")},methods:{_update:function(e){var t=this;e&&(this._dirtyFields[e]=!0),ftparser.Element.isAttached(this)&&this._valid&&(this._dirtyTobj||(this._dirtyTobj=requestAnimationFrame((function(){t._dirtyTobj=null,t._applyUpdates()}))))},_applyUpdates:function(){this._dirtyFields.title&&(this._dirtyFields.title=!1,wx.setNavigationBarTitle({title:this.data.title,fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.loading&&(this._dirtyFields.loading=!1,this.data.loading?wx.showNavigationBarLoading({fail:function(e){console.error(e.errMsg)}}):wx.hideNavigationBarLoading({fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.color&&(this._dirtyFields.color=!1,wx.setNavigationBarColor({frontColor:this.data.frontColor,backgroundColor:this.data.backgroundColor,animation:{duration:this.data.colorAnimationDuration,timingFunc:this.data.colorAnimationTimingFunc},fail:function(e){console.error(e.errMsg)}}))}}}),window.ftparser.registerElement({is:"wx-audio",behaviors:["wx-base","wx-player","wx://request-sender","wx-reload"],template:function(e,t,n){return[{t:1,n:"audio",id:"player",st:{v:"display: none;"},a:[{n:"loop",o:"$",e:function(e,t,n){return e.loop},l:[null],b:[[null,"loop"]]}],c:[]},{t:1,n:"div",id:"default",cl:{v:"wx-audio-default"},st:{v:"display: none;"},a:[],c:[{t:1,n:"div",id:"poster",cl:{v:"wx-audio-left"},a:[],c:[{t:1,n:"div",id:"button",cl:{e:function(e,t,n){return"wx-audio-button "+e._buttonType},b:[[null,"_buttonType"]]},a:[],c:[]}]},{t:1,n:"div",cl:{v:"wx-audio-right"},a:[],c:[{t:1,n:"div",cl:{v:"wx-audio-time"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._currentTime},b:[[null,"_currentTime"]],t:3}]},{t:1,n:"div",cl:{v:"wx-audio-info"},a:[],c:[{t:1,n:"div",cl:{v:"wx-audio-name"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.name},b:[[null,"name"]],t:3}]},{t:1,n:"div",cl:{v:"wx-audio-author"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.author},b:[[null,"author"]],t:3}]}]}]}]},{t:1,n:"div",id:"fakebutton",a:[],c:[]}]},options:{lazyRegistration:!0},properties:{action:{type:Object,observer:"actionChanged",public:!0},name:{type:String,value:"未知歌曲",public:!0},author:{type:String,value:"未知作者",public:!0},loop:{type:Boolean,value:!1,public:!0},controls:{type:Boolean,value:!1,observer:"controlsChanged",public:!0},_srcTimer:{type:Number},_actionTimer:{type:Number},_canSrc:{type:Boolean,value:!0},_deferredSrc:{type:String,value:""},_canAction:{type:Boolean,value:!1},_deferredAction:{type:Array,value:[]}},attached:function(){var e=this;console.warn("For developer: '<audio/>' 组件不再维护,建议使用能力更强的 'wx.createInnerAudioContext' 接口"),this._addListeners(),this.$.button.onclick=function(t){t.stopPropagation(),e.action={method:e._buttonType}},this.$.fakebutton.onclick=function(t){t.stopPropagation(),e.action&&"function"==typeof e.$.player[e.action.method]&&e.$.player[e.action.method]()};var t=this.getPluginId(),n=this.getNodeId();n&&__virtualDOM__.getRootNodeId(),FinChatJSBridge.subscribe("audio_".concat(this.id,"_actionChanged"),(function(t){e.action=t})),FinChatJSBridge.publish("audioInsert",{audioId:this.id,pluginId:t,nodeId:n}),wx.onAppEnterBackground((function(t){e.$.player.pause(),e.isBackground=!0})),wx.onAppEnterForeground((function(t){e.isBackground=!1}))},detached:function(){FinChatJSBridge.publish("audioRemove",{audioId:this.id,nodeId:this.getNodeId(),pluginId:this.getPluginId()})},saved:function(e){var t={};this._savedCurrentTime=this.$.player.currentTime,this.saveCompVar(t,["_savedCurrentTime"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);if(t){this.restoreCompVar(t);var n=this._savedCurrentTime;delete this._savedCurrentTime,this.actionChanged({method:"setCurrentTime",data:n}),this._savedCurrentTime=this._formatTime(Math.floor(n))}},methods:{_addListeners:function(){var e=this;if(this.$.player){for(var t=this.$.player.$$||this.$.player,n=this,i={},o=0,r=E()(MediaError);o<r.length;o++){var a=r[o];i[MediaError[a]]=a}t.onerror=function(e){if(e.stopPropagation(),e.srcElement.error){var t=e.srcElement.error.code;n._publish("error",{errMsg:i[t]})}},t.onplaying=function(e){n.playing=!0,e.stopPropagation(),n._buttonType="pause",n.paused=!1},t.onwaiting=function(e){n.playing=!1,e.stopPropagation(),n._publish("waiting",{}),n._buttonType="waiting","function"==typeof n.onWaiting&&n.onWaiting(e)},t.onplay=function(e){n.playing=!0,e.stopPropagation(),n._publish("play",{}),n._buttonType="pause","function"==typeof n.onPlay&&n.onPlay(e),n.paused=!1},t.onpause=function(e){n.playing=!1,e.stopPropagation(),n._publish("pause",{}),n._buttonType="play","function"==typeof n.onPause&&n.onPause(e),n.paused=!0},t.onended=function(e){n.playing=!1,e.stopPropagation(),n._publish("ended",{}),"function"==typeof n.onEnded&&n.onEnded(e)},t.onratechange=function(e){e.stopPropagation(),n._publish("ratechange",{playbackRate:t.playbackRate})};var s=0;t.addEventListener("timeupdate",(function(e){e.stopPropagation(),Math.abs(t.currentTime-s)%t.duration>=1&&(n._publish("timeupdate",{currentTime:t.currentTime,duration:t.duration}),s=1e3*t.currentTime),n._isLockTimeUpdateProgress||(n._currentTime=n._formatTime(Math.floor(t.currentTime))),"function"==typeof n.onTimeUpdate&&n.onTimeUpdate(e)})),t.addEventListener("progress",(function(e){e.stopPropagation(),n._publish("progress",{buffered:t.currentTime/t.duration*100}),"function"==typeof n.onProgress&&n.onProgress(e)})),t.addEventListener("durationchange",(function(){t.duration===1/0?e._isLive=!0:e._isLive=!1,isNaN(t.duration)||0!==e.duration||(n._duration=n._formatTime(Math.floor(t.duration)))}))}},_reset:function(){this._buttonType="play",this._currentTime=this._savedCurrentTime||"00:00",this._duration="00:00",this._savedCurrentTime=null},_readySrc:function(){this._canSrc=!0,this._srcChanged(this._deferredSrc),this._deferredSrc=""},_readyAction:function(){var e=this;this._canAction=!0,this._deferredAction.forEach((function(t){e.actionChanged(t)}),this),this._deferredAction=[]},_srcChanged:function(e,t){var n=this;e&&this.deferredSetProp((function(){if(null!==(e=n.checkProp(e))){clearTimeout(n._srcTimer),n._canAction=!1,n.$.player.src=e;var t=n;n._srcTimer=setTimeout((function(){t._reset(),t._readyAction()}),0)}}))},_posterChanged:function(e,t){var n=this;this.deferredSetProp((function(){null!==(e=n.checkProp(e,"poster"))&&(n.$.poster.style.backgroundImage="url('".concat(n.getRealRoute(e),"')"))}))},controlsChanged:function(e,t){this.$.default.style.display=e?"":"none"},actionChanged:function(e,t){var n=this;if(e){var i=e.method;if(this.action=e,this._canAction||"setSrc"===i){var o;if(null!=(o=/^set([a-z|A-Z]*)/.exec(i))){var r=o[1],a=e.data;if("currentTime"==(r=r[0].toLowerCase()+r.slice(1))){if(a=Dt()(a),isNaN(a))return;0===this.$.player.readyState||1===this.$.player.readyState?this.$.player.addEventListener("canplay",(function e(){n.$.player[r]=a,n.$.player.removeEventListener("canplay",e,!1)}),!1):this.$.player[r]=a}else"src"===r?this._srcChanged(a):this.triggerEvent("error",{errMsg:i+" is not an action"})}else if("play"===i||"pause"===i){if(!0===this.isBackground&&"play"===i)return;this.$.fakebutton.click()}else this.triggerEvent("error",{errMsg:i+" is not an action"});this.action=null}else this._deferredAction.push(e)}},onPlay:function(){wx.invoke("syncAudioEvent",{type:"play"})},onPause:function(){wx.invoke("syncAudioEvent",{type:"pause"})},onEnded:function(){wx.invoke("syncAudioEvent",{type:"ended"})}}});var ml=null;function _l(e){return e instanceof ftparser.Component&&(e.hasBehavior("wx-cover-view")||e.hasBehavior("wx-native-cover"))}function gl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):gl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-button",options:{renderingMode:"full"},template:function(){return[{t:1,n:"block",v:!0,a:[{s:[],n:"if",d:function(e,t,n){return!e.native},b:[[null,"native"]]}],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},{t:1,n:"block",v:!0,a:[{s:[],n:"if",d:function(e,t,n){return e.native},b:[[null,"native"]]}],c:[{t:1,n:"wx-cover-view",cl:{v:"wx-button-cover-view-wrapper"},a:[],c:[{t:1,n:"wx-cover-view",id:"inner",cl:{v:"wx-button-cover-view-inner"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]}]},behaviors:["wx-base","wx-hover","wx-label-target","wx-label-aria","wx-disabled"],properties:{type:{type:String,value:"default",public:!0},size:{type:String,value:"default",public:!0},disabled:{type:Boolean,public:!0},plain:{type:Boolean,public:!0},loading:{type:Boolean,public:!0},formType:{type:String,public:!0},hover:{type:Boolean,value:!0},openType:{type:String,value:"",public:!0},native:{type:Boolean,value:!1,public:!0},hoverClass:{type:String,value:"button-hover",public:!0},hoverStartTime:{type:Number,value:20,public:!0},hoverStayTime:{type:Number,value:70,public:!0},sessionFrom:{type:String,value:"",public:!0},sendMessageTitle:{type:String,value:"",public:!0},sendMessagePath:{type:String,value:"",public:!0},sendMessageImg:{type:String,value:"",public:!0},showMessageCard:{type:Boolean,value:!1,public:!0},appParameter:{type:String,value:"",public:!0}},listeners:{tap:"_preventTapOnDisabled",longtap:"_preventTapOnDisabled",longpress:"_preventTapOnDisabled",canceltap:"_preventTapOnDisabled","this.tap":"_onThisTap"},attached:function(){this._id=L("button"),this.native||this.checkInNativeComp(),this._setAria("button"),this.openType&&(this._id,ml||(ml={},FinChatJSBridge.subscribe("openTypeEventCallback",(function(e){var t=e.buttonId,n=e.eventId,i=e.openType,o=void 0===i?"":i,r=e.payload,a=void 0===r?{}:r,s=ml[t]||{},c=s.instance,l=s.eventList;if(c){var u=l.findIndex((function(e){return e.eventId===n}));if(u>-1){var d=l[u].event;l.splice(u,1);var h="".concat(o.toLowerCase()),p=a.errMsg||"";"launchapp"===h&&p.indexOf("fail")>-1&&(h="error"),c.triggerEvent(h,vl(vl({},a),{},{errMsg:p.replace("buttonOpenTypeEvent",o)}),{bubbles:!0,composed:!0,extraFields:{touches:d.touches,changedTouches:d.changedTouches}})}}}))))},detached:function(){var e;e=this._id,ml&&(ml[e]=null,delete ml[e])},methods:{checkInNativeComp:function(){for(var e=this.parentNode;e&&!_l(e);)e=e.parentNode;null!==e&&(this.native=!0),this.native&&(this.$$.style.padding=0)},_preventTapOnDisabled:function(){if(this.disabled)return!1},_onThisTap:function(e){this.openType?this.invokeOpenTypeEvent(e):"submit"===this.formType?(e.__originalEvent=e.__originalEvent||{},e.__originalEvent._formId||(e.__originalEvent._formId=wx.generateFormId(),e.__originalEvent._formPluginId=this.getPluginId()),this.triggerEvent("formSubmit",{formId:e.__originalEvent._formId,formPluginId:e.__originalEvent._formPluginId},{bubbles:!0})):"reset"===this.formType&&this.triggerEvent("formReset",void 0,{bubbles:!0})},invokeOpenTypeEvent:function(e){var t=L("event");!function(e,t,n,i){ml[e]||(ml[e]={instance:t,eventList:[]}),ml[e].eventList.push({eventId:n,event:i})}(this._id,this,t,e);var n={};switch(this.openType){case"getUserInfo":case"openSetting":case"chooseAvatar":case"share":case"getPhoneNumber":case"feedback":break;case"contact":n.sessionFrom=this.sessionFrom,n.sendMessageTitle=this.sendMessageTitle,n.sendMessagePath=this.sendMessagePath,n.sendMessageImg=this.sendMessageImg,n.showMessageCard=this.showMessageCard;break;case"launchApp":n.appParameter=this.appParameter}FinChatJSBridge.publish("openTypeEvent",{buttonId:this._id,eventId:t,openType:this.openType,params:n})},handleLabelTap:function(e){ftparser.triggerEvent(this.shadowRoot,"tap",e.detail,{bubbles:!0,composed:!0,extraFields:{touches:e.touches,changedTouches:e.changedTouches}})}}});var yl={},wl={},xl=function(e){if("string"==typeof e)return e;var t=e.slice(0);return t[3]=t[3]/255,"rgba("+t.join(",")+")"};FinChatJSBridge.subscribe("canvasMethod",(function(e){var t=e.canvasNumber,n=e.method,i=e.data;switch(n){case"measureText":return Al(document.createElement("canvas").getContext("2d"),i.font,i.text);case"putImageData":if(yl[t])return i[0]&&"string"==typeof i[0].data&&(i[0].data=Dn.base64ToUint8ClampedArray(i[0].data)),yl[t].putImageData.apply(yl[t],i),{};break;case"getImageData":if(yl[t]){var o=yl[t].getImageData.apply(yl[t],i);return{data:Dn.uint8ClampedArrayToBase64(o.data),width:o.width,height:o.height}}break;case"toDataURL":if(yl[t])return yl[t].toDataURL.apply(yl[t],i)}}));var Al=function(e,t,n){e.font=t;var i=e.measureText(n);return{width:i.width,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.fontBoundingBoxAscent,fontBoundingBoxDescent:i.fontBoundingBoxDescent,actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,emHeightAscent:i.emHeightAscent,emHeightDescent:i.emHeightDescent,hangingBaseline:i.hangingBaseline,alphabeticBaseline:i.alphabeticBaseline,ideographicBaseline:i.ideographicBaseline}};function Cl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Cl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-canvas",behaviors:["wx-base","wx-native","wx-canvas-touch"],template:function(e,t,n){return[{t:1,n:"div",id:"container",st:{},cl:{v:"wx-canvas-container"},a:[],c:[{t:1,n:"div",id:"inner",st:{v:"width: 100%; height: 100%;"},a:[],c:[]}]},{t:1,n:"canvas",id:"canvas",st:{},a:[{n:"width",v:"300"},{n:"height",v:"150"}],c:[]},{t:1,n:"div",cl:{v:"wx-canvas-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},properties:{hidpi:{type:Boolean,value:!1,public:!0,observer:"_updateSize"},type:{type:String,value:"",public:!0},native:{type:Boolean,value:!1,public:!0,filter:"nativeChange"},canvasId:{type:String,public:!0},bindtouchstart:{type:String,value:"",public:!0},bindtouchmove:{type:String,value:"",public:!0},bindtouchend:{type:String,value:"",public:!0},bindtouchcancel:{type:String,value:"",public:!0},bindlongtap:{type:String,value:"",public:!0},disableScroll:{type:Boolean,value:!1,public:!0,observer:"disableScrollChanged"},hidden:{type:Boolean,value:!1,public:!0}},options:{renderingMode:"full"},attached:function(){var e=this;if(this._actionsDefer=[],this._actionsWaiting=!1,this.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback()},this._canvasId=this.canvasId||this.id,!this._canvasId){if(!this.type)return this.triggerEvent("error",{errMsg:"canvas-id attribute is undefined"}),this._isError=!0,void(this.$$.style.display="none");this._canvasId="custom_".concat(this._id)}var t=this._canvasId,n="canvas_".concat(window.__webviewId__,"_").concat(t,"_").concat(this.getNodeId());!this.type&&Object.prototype.hasOwnProperty.call(yl,n)?(this.triggerEvent("error",{errMsg:"canvas-id "+this.canvasId+" in this page has already existed"}),this._isError=!0,this.$$.style.display="none"):(yl[n]=this,document.addEventListener("pageReRender",this.__pageReRenderCallback),this.addTouchEventForWebview(),this._box=this._getBox(),this._canvasNumber=n,this._insert()),this.canvasLastHeight=this._getBox().height,this.canvasLastWidth=this._getBox().width},detached:function(){delete yl[this._canvasNumber],FinChatJSBridge.publish("canvasRemove",{canvasId:this._canvasId,canvasNumber:this._canvasNumber,webviewId:window.__webviewId__}),this.observer&&this.observer.disconnect(),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback),this.native&&this.removeNativeView("removeCanvas",{canvasId:this._canvasNumber,type:this.type},(function(){}))},methods:{_insert:function(){var e=this;if(this.native){var t=function(){e.beforeReady(),e.findCoverView(e._canvasNumber,{}),FinChatJSBridge.publish("canvasInsert",{canvasId:e._canvasId,canvasNumber:e._canvasNumber,webviewId:window.__webviewId__,mode:"native"}),FinChatJSBridge.subscribe("canvas"+e._canvasNumber+"actionsChanged",(function(t){var n=t.actions;if(1===n.length&&"preloadImage"===n[0].method)e.preloadImage([bl(bl({},n[0]),{},{method:"drawImage"})])}))},n={canvasId:this._canvasNumber,position:this._box,hide:this.hidden,type:this.type,disableScroll:this.disableScroll,zIndex:this._getCurrentZIndex(),fixed:this._fixed};if(k&&Ii().canvas){var i=document.createElement("x-canvas");return this.$.inner.style.display="none",this.$.canvas.style.display="none",this.$.container.$$.append(i),i.setAttribute("data",ce()(n)),i.getBoundingClientRect(),void(Ti?FinChatJSBridge.on("onTongcengWidgetReady_"+this._canvasNumber,(function(){t()})):setTimeout((function(){t()})))}k&&(n.isNewCanvasSupported=window.isNewCanvasSupported||!1),this.insertNativeView("insertCanvas",n,(function(e){/:ok/.test(e.errMsg)&&t()}))}else FinChatJSBridge.publish("canvasInsert",{canvasId:this._canvasId,canvasNumber:this._canvasNumber,webviewId:window.__webviewId__}),FinChatJSBridge.subscribe("canvas"+this._canvasNumber+"actionsChanged",(function(t){var n=t.actions,i=t.reserve,o=t.from;if(e.actions=n,!e.beforeDraw)switch(o){case"createSelectorQuery":e.beforeDraw=function(e,t,n){e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t,n),e.restore()};break;case"createCanvasContext":e.beforeDraw=function(t,n,i){if(t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,i),e.hidpi){var o=window.devicePixelRatio;t.scale(o,o)}}}if(1===n.length)switch(n[0].method){case"preloadImage":return void e.actionsChanged(n,i);case"setSize":return e._customSize={width:n[0].data[0],height:n[0].data[1]},void(e.hidpi||(e.$.canvas.$$.width=n[0].data[0],e.$.canvas.$$.height=n[0].data[1],T&&(e.$.canvas.$$.style.display="none",e._hackTimer&&clearTimeout(e._hackTimer),e._hackTimer=setTimeout((function(){e.$.canvas.$$.style.display="block"}),0))));default:n=n.concat({method:"_callback"})}else n=n.concat({method:"_callback"});e.actionsChanged(n,i)})),FinChatJSBridge.subscribe("invokeCanvasToDataUrl_"+this._canvasNumber,(function(){var t=e.$.canvas.$$,n=t.toDataURL();n=n.replace(/^data:image\/(jpg|png|jpeg);base64,/,""),FinChatJSBridge.publish("onCanvasToDataUrl_"+e._canvasNumber,{width:t.width,height:t.height,dataUrl:n})})),FinChatJSBridge.subscribe("invokeCanvasPutImageData_"+this._canvasNumber,(function(t){var n=e.$.canvas.$$.getContext("2d"),i=t.data,o=i.data,r=i.x,a=i.y,s=i.width,c=i.height,l=Dn.base64ToUint8ClampedArray(o);try{var u=new ImageData(l,s,c);n.putImageData(u,r,a,0,0,s,c),FinChatJSBridge.publish("onCanvasPutImageData_"+e._canvasNumber,{})}catch(e){console.error(e)}})),FinChatJSBridge.subscribe("invokeCanvasGetImageData_"+this._canvasNumber,(function(t){var n=e.$.canvas.$$.getContext("2d"),i=t.data,o=i.x,r=i.y,a=i.width,s=i.height,c=n.getImageData(o,r,a,s);FinChatJSBridge.publish("onCanvasGetImageData_"+e._canvasNumber,{data:Dn.uint8ClampedArrayToBase64(c.data),width:c.width,height:c.height})})),this._ctx=this.$.canvas.$$.getContext("2d"),this.beforeReady()},beforeReady:function(){var e=this;this._updatePosition(),this._updateSize(),this.observer=new ResizeObserver((function(t,n){e._updatePosition(),t.forEach((function(t){var n=t.contentRect,i=n.width,o=n.height;i&&o&&(e.canvasLastHeight!==o||e.canvasLastWidth!==i)&&(e.canvasLastHeight=o,e.canvasLastWidth=i,e._updateSize())}))})),this.observer.observe(this.$$)},_update:function(){this.updateNativeView("updateCanvas",{canvasId:this._canvasNumber,type:this.type,position:this._box,hide:this.hidden,disableScroll:this.disableScroll,zIndex:this._getCurrentZIndex(),fixed:this._fixed},(function(){}))},_updatePosition:function(){this._update()},_updateSize:function(){if(!this.native){this._box=this._getBox();var e=this._box,t=e.width,n=e.height,i=window.devicePixelRatio;if(this.hidpi)this.$.canvas.$$.width=t*i,this.$.canvas.$$.height=n*i;else{var o=this._customSize||this._box,r=o.width,a=o.height;this.$.canvas.$$.width=r,this.$.canvas.$$.height=a}this.$.canvas.$$.style.width=t+"px",this.$.canvas.$$.style.height=n+"px",this.actionsChanged(this.actions)}},measureText:function(e){if(e.canvasId===this._canvasNumber&&"measureText"===e.method){e.actions&&this.actionsChanged(e.actions);var t=e.args[0],n=this._ctx.measureText(t);FinChatJSBridge.publish("onCanvasMethodCallback",{width:n.width,cid:e.cid,canvasId:this._canvasNumber})}},putImageData:function(e,t,n,i,o,r,a){var s=this._ctx||this.$.canvas.$$.getContext("2d");try{e=new ImageData(e.data,e.width,e.height);for(var c=[],l=0,u=[t,n,i,o,r,a];l<u.length;l++){var d=u[l];if(isNaN(d)||null===d)break;c.push(d)}return c.unshift(e),s.putImageData.apply(s,c)}catch(e){console.error(e)}},getImageData:function(e,t,n,i){var o=this._ctx||this.$.canvas.$$.getContext("2d");try{return o.getImageData(e,t,n,i)}catch(e){console.error(e)}},toDataURL:function(){try{var e;return(e=this.$.canvas.$$).toDataURL.apply(e,arguments)}catch(e){console.error(e)}},preloadImage:function(e){var t=this;function n(e,t,n){FinChatJSBridge.publish("onCanvasPreloadImage",{type:e,imageId:t,url:n})}e.forEach((function(e){var i=e.method,o=e.data,r=e.imageId;if("drawImage"===i&&o[0]){var a=o[0];if(wl[a]){var s=wl[a];s.isLoading?(s.callbacks=s.callbacks||[],s.callbacks.push((function(){n(s.ready?"onload":"onerror",r,o[0])}))):n(s.ready?"onload":"onerror",r,o[0])}else{var c=wl[a]=new Image;if(c.crossOrigin="anonymous",c.onload=function(){n("onload",r,o[0]),c.ready=!0,c.isLoading=!1,c.callbacks&&c.callbacks.forEach((function(e){return e()}))},c.onerror=function(){n("onerror",r,o[0]),t._actionsWaiting=!1,c.isLoading=!1},c.isLoading=!0,/^http/.test(a))return void(c.src=a);FinChatJSBridge.subscribe("getImageBase64",(function(e){wl[e.src].src=e.data})),FinChatJSBridge.publish("getImageBase64",{src:a})}}}))},checkImageLoaded:function(e,t,n,i){var o=this,r=wl[e];return r.ready?(i(r),!0):(this._actionsWaiting=!0,this._actionsDefer.unshift([t,!0,n]),setTimeout((function(){o._actionsWaiting=!1}),6e4),r.callbacks||(r.callbacks=[]),r.callbacks.push((function(){i(r),o._actionsWaiting=!1;var e=o._actionsDefer.slice(0);if(o._actionsDefer=[],e.length>0)for(var t=e.shift();t;t=e.shift())o.actionsChanged(t[0],t[1],n)})),!1)},actionsChanged:function(e,t,n){var i=this;if(e){if(this._actionsWaiting)return this._actionsDefer.push([e,t,n]);var o=this.$.canvas.$$,r=o.getContext("2d");t||(r.fillStyle="#000000",r.strokeStyle="#000000",r.shadowColor="#000000",r.shadowBlur=0,r.shadowOffsetX=0,r.shadowOffsetY=0,this.beforeDraw(r,o.width,o.height),this.preloadImage(e));for(var a=function(){var t=e[s],o=t.method,a=t.data;if(/^set/.test(o)&&"setTransform"!==o){var c=o[3].toLowerCase()+o.slice(4),l=0;if("fillStyle"===c||"strokeStyle"===c){if("normal"===a[0])l=xl(a[1]);else if("linear"===a[0]){if(a[1]){var u=r.createLinearGradient.apply(r,Dn.toArray(a[1]));a[2]&&(a[2].forEach((function(e){var t=e[0],n=xl(e[1]);u.addColorStop(t,n)})),l=u)}}else if("radial"===a[0]){var d=a[1][0],h=a[1][1],p=[d,h,0,d,h,a[1][2]],f=r.createRadialGradient.apply(r,p);a[2].forEach((function(e){var t=e[0],n=xl(e[1]);f.addColorStop(t,n)})),l=f}else if("pattern"===a[0])return i.checkImageLoaded(a[1],e.slice(s+1),n,(function(e){e&&(r[c]=r.createPattern(e,a[2]))}))?1:0;r[c]=l}else if("globalAlpha"===c)r[c]=a[0]/255;else if("shadow"===c){var v=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];a.forEach((function(e,t){r[v[t]]="shadowColor"===v[t]?xl(e):e}))}else"fontSize"===c?r.font=r.font.replace(/\d+\.?\d*px/,a[0]+"px"):"font"===c?r.font=a[0]:"lineDash"===c?(a[0].every((function(e){return 0===e}))&&(a[0]=[]),r.setLineDash(a[0]),r.lineDashOffset=a[1]||0):("textBaseline"===c&&"normal"===a[0]&&(a[0]="alphabetic"),r[c]=a[0])}else if("fillPath"===o||"strokePath"===o)o=o.replace(/Path/,""),r.beginPath(),a.forEach((function(e){"state"===e.method||r[e.method].apply(r,Dn.toArray(e.data))})),r[o]();else if("fillText"===o){var m=Dn.toArray(a).map((function(e){return e}));r.fillText.apply(r,m)}else if("drawImage"===o){var _=Dn.toArray(a),g=_[0],b=_.slice(1);if(wl=wl||{},!i.checkImageLoaded(g,e.slice(s+1),n,(function(e){e&&r.drawImage.apply(r,[e].concat(Dn.toArray(b)))})))return 0}else"clip"===o?(a.forEach((function(e){"state"===e.method||r[e.method].apply(r,Dn.toArray(e.data))})),r.clip()):"preloadImage"===o?i.preloadImage([bl(bl({},t),{},{method:"drawImage"})]):"_callback"===o?wd.publishCanvasEvent("canvasDrawCallback",{canvasId:i._canvasNumber}):r[o].apply(r,Dn.toArray(a))},s=0;s<e.length&&0!==a();s++);!this._actionsWaiting&&n&&FinChatJSBridge.publish("onDrawCanvas",{errMsg:"drawCanvas:ok",cid:n,canvasId:this._canvasNumber})}},disableScrollChanged:function(e,t){this._isMobile()&&FinChatJSBridge.invoke("updateCanvas",{canvasId:this._canvasNumber,type:this.type,disableScroll:e},(function(e){}))},getContextId:function(){return this._canvasNumber},nativeChange:function(e){return!N&&e}}}),window.ftparser.registerElement({is:"wx-checkbox",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-checkbox-wrapper"},a:[],c:[{t:1,n:"div",id:"input",cl:{v:"wx-checkbox-input"},a:[{n:"wx-checkbox-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-checkbox-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"color",o:"s",e:function(e,i,o){return t(o,n,"_getColor",[e.checked,e.color])},l:null,b:[[null,"_getColor"],[null,"checked"],[null,"color"]]}],c:[]},{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-label-target","wx-item","wx-disabled","wx-label-aria","wx-reload"],properties:{color:{type:String,value:"#09BB07",public:!0}},listeners:{tap:"_inputTap"},attached:function(){this._setAria("checkbox")},saved:function(e){var t={};this.saveCompVar(t,["checked"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},methods:{_getColor:function(e,t){return e?t:""},_inputTap:function(){if(this.disabled)return!1;this.checked=!this.checked,this.changedByTap()},handleLabelTap:function(){this._inputTap()}}}),window.ftparser.registerElement({is:"wx-checkbox-group",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-data-component","wx-group"],properties:{value:{type:Array,value:[]}},methods:{addItem:function(e){e.checked&&this.value.push(e.value)},removeItem:function(e){if(e.checked){var t=this.value.indexOf(e.value);t>=0&&this.value.splice(t,1)}},renameItem:function(e,t,n){if(e.checked){var i=this.value.indexOf(n);i>=0&&(this.value[i]=t)}},changed:function(e){if(e.checked)this.value.push(e.value);else{var t=this.value.indexOf(e.value);t>=0&&this.value.splice(t,1)}}}}),window.ftparser.registerElement({is:"wx-form",template:function(e,t,n){return[{t:1,n:"span",id:"wrapper",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base"],properties:{reportSubmit:{type:Boolean,value:!1,public:!0},reportSubmitTimeout:{type:Number,value:0,public:!0}},listeners:{"this.formSubmit":"submitHandler","this.formReset":"resetHandler"},attached:function(){var e=this;this.__routeDoneId=window.ftparser.addListenerToElement(document,"routeDone",(function(){e.uniqueId=v()()/1e3|0}))},detached:function(){window.ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId)},methods:{resetDfs:function(e){if(e.childNodes)for(var t=0;t<e.childNodes.length;++t){var n=e.childNodes[t];n instanceof ftparser.Component&&(n.hasBehavior("wx-data-component")&&n.resetFormData(),this.resetDfs(n))}},getFormData:function(e,t){if(e instanceof ftparser.Component){if(e.hasBehavior("wx-data-component"))return"wx-input"===e.is||"wx-picker"===e.is||"wx-textarea"===e.is?e.getFormData((function(e){t(e)})):t(e.getFormData());if(e.hasBehavior("wx://form-field")&&(e.data.name||e.name))return t(e.data.value);if(e.hasBehavior("wx://form-field-group"))return this.asyncDfs(e.shadowRoot,t)}return t()},asyncDfs:function(e,t){var n=this,i=function(){"function"==typeof t&&t(),t=void 0};if(!e.childNodes)return i();for(var o=e.childNodes.length,r=function(){var t=e.childNodes[a];t instanceof ftparser.Element?n.getFormData(t,(function(e){if(void 0!==e){var r=t.name||t.data.name;n._data[r]=e}n.asyncDfs(t,(function(){0==--o&&i()}))})):--o},a=0;a<e.childNodes.length;++a)r();0===o&&i()},_asyncDfs:function(e,t,n){var i=this;this.asyncDfs(this,(function(){i.triggerEvent("submit",{value:i._data,target:e},{extraFields:{_requireActive:!0}})}))},submitHandler:function(e){var t={id:e.target.id,dataset:e.target.dataset,offsetTop:e.target.$$&&e.target.$$.offsetTop||0,offsetLeft:e.target.$$&&e.target.$$.offsetLeft||0};this._data=za()(null),this._asyncDfs(t,e.detail.formId,e.detail.formPluginId)},resetHandler:function(e){var t={id:e.target.id,dataset:e.target.dataset,offsetTop:e.target.$$&&e.target.$$.offsetTop||0,offsetLeft:e.target.$$&&e.target.$$.offsetLeft||0};return this._data=za()(null),this.resetDfs(this),this.triggerEvent("reset",{target:t}),!1}}}),window.ftparser.registerElement({is:"wx-icon",template:function(e,t,n){return[{t:1,n:"i",cl:{e:function(e,t,n){return"wx-icon-"+e.type},b:[[null,"type"]]},a:[{n:"color",o:"s",e:function(e,t,n){return e.color},l:[null],b:[[null,"color"]]},{n:"font-size",o:"s",e:function(e,t,n){return e.size+"px"},l:null,b:[[null,"size"]]}],c:[]}]},behaviors:["wx-base","wx-size-normalizer"],properties:{type:{type:String,public:!0},size:{type:String,value:23,public:!0,filter:"normalizeSize"},color:{type:String,public:!0}},attached:function(){this.$$.setAttribute("role","img")}}),window.ftparser.registerElement({is:"wx-image",options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"div",a:[],c:[]},{t:1,n:"span",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx://request-sender","wx-reload"],properties:{src:{type:String,observer:"srcChanged",public:!0},mode:{type:String,observer:"modeChanged",public:!0},webp:{type:Boolean,value:!1,public:!0},lazyLoad:{type:Boolean,value:!1,observer:"lazyLoadChanged",public:!0},backgroundSize:{type:String,observer:"backgroundSizeChanged",value:"100% 100%",public:!0},backgroundPosition:{type:String,observer:"backgroundPositionChanged",public:!0},backgroundRepeat:{type:String,observer:"backgroundRepeatChanged",value:"no-repeat",public:!0},showMenuByLongpress:{type:Boolean,value:!1,public:!0},renderingMode:{type:String,value:"backgroundImage",public:!0},lazyLoadMargin:{type:Number,value:2,public:!0,observer:"lazyLoadMarginChanged"},referrerPolicy:{type:String,value:"unsafe-url",public:!0},_hasScrollViewParent:{type:Boolean,value:!1},_disableSizePositionRepeat:{type:Boolean,value:!1},_imageInstanceId:{type:String}},listeners:{longpress:"_onLongPress"},created:function(){this._src="",this._attached=!1,this._pageReRenderCallback=this._pageReRenderCallback.bind(this),this._showImage=this._showImage.bind(this),this._changeId=0},attached:function(){this.$$.setAttribute("role","img"),this._attached=!0,this._originalHeight=this.$$.style.height||"",this._originalWidth=this.$$.style.width||"",this.src&&this._initialize(this.lazyLoad),this.backgroundSizeChanged(this.backgroundSize),this.backgroundRepeatChanged(this.backgroundRepeat)},detached:function(){this._attached=!1,this.lazyLoad&&this._intersectionObserverId&&this.removeIntersectionObserver(),document.removeEventListener("pageReRender",this._pageReRenderCallback)},saved:function(e){var t={};this.saveCompVar(t,["_hasBeenShown"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);this._isRestored=!0,t&&this.restoreCompVar(t)},methods:{_initialize:function(e){var t=this._isRestored&&this._hasBeenShown;this._isRestored=!1,e?t?this._showImage(this._changeId,t):(this.removeIntersectionObserver(),this.addIntersectionObserver()):this._showImage(this._changeId,t)},lazyLoadMarginChanged:function(){this.lazyLoad&&!this._hasBeenShown&&(this.removeIntersectionObserver(),this.addIntersectionObserver())},removeIntersectionObserver:function(){this._intersectionObserverId&&(__virtualDOM__.removeIntersectionObserver(this._intersectionObserverId),this._intersectionObserverId=null)},addIntersectionObserver:function(){if(!this._intersectionObserverId){var e=document.documentElement.clientWidth,t=document.documentElement.clientHeight,n=this.lazyLoadMargin,i=[{selector:null,margins:{left:e*n,right:t*n,top:e*n,bottom:t*n}}],o=this;this._intersectionObserverId=__virtualDOM__.addIntersectionObserver(this.shadowRoot,"#div",i,{thresholds:[.1],minWidthOrHeight:1},(function(e){e.intersectionRatio>.1&&o._showImage(o._changeId)}))}},_getImagePath:function(e,t,n,i){if(void 0!==e&&"function"==typeof t)if(""!==e){e=e.trim(),/^\/\//.test(e)&&(e="http:".concat(e)),e=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}(e,"no-referrer"!==this.referrerPolicy?"unsafe-url":this.referrerPolicy);var o=/^https?:\/\//.test(e),r=/^\s*data:image\//.test(e);e=this.getRealRoute(e),o||r?(this.webp,t(e)):t(e.replace(/^\//,""))}else t(e)},_showImage:function(e,t){var n=this;this.deferredSetProp((function(){var i=n.checkProp();if(null!==i){var o=n;n._hasBeenShown=!0,n._getImagePath(i,(function(r){var a,s;o.loaded=!1,o.width=void 0,o.height=void 0,"img"===n.renderingMode?(a=n.shadowRoot.createNativeNode("img"),s=a.$$):s=new Image,s.onerror=function(n){o.reportMediaComponentStatus({src:o.src,evtId:92,evtNote:o.lazyLoad?2:1}),n.stopPropagation(),e===o._changeId&&(!t&&r&&o.triggerEvent("error",{errMsg:"GET "+r+" 404 (Not Found)"}),s=void 0,a&&(a=void 0))},s.referrerPolicy=n.referrerPolicy,s.onload=function(n){var i=o.getImageInfo(r),c=i.size,l=void 0===c?0:c,u=i.duration,d=void 0===u?0:u,h=[o.lazyLoad?2:1,l,d,-1,-1,this.width,this.height].join(";");if(o.reportMediaComponentStatus({src:o.src,evtId:91,evtNote:h}),n.stopPropagation(),o.loaded=!0,o.width=this.width,o.height=this.height,e===o._changeId){!t&&r&&o.triggerEvent("load",{width:this.width,height:this.height});var p=o.ratio=this.width/this.height;"widthFix"!==o.mode&&"heightFix"!==o.mode||("heightFix"===o.mode&&(o.$$.style.width=o.getHeight()*p+"px"),"widthFix"===o.mode&&(o.$$.style.height=o.getWidth()/p+"px"),window.requestAnimationFrame((function(){document.dispatchEvent(new CustomEvent("pageReRender",{}))})),document.addEventListener("pageReRender",o._pageReRenderCallback)),s=void 0,a&&(a=void 0),o.triggerIOSRender()}},o.removeIntersectionObserver();var c=r||i;if(c.indexOf("hyfile://")>-1&&ki&&(c+="?t=".concat(v()())),s.src=c,n._src=c,"img"===n.renderingMode){n.$.div.style.fontSize=0;var l=n.$.div.$$.__wxElement;l.childNodes.forEach((function(e){return l.removeChild(e)})),l.appendChild(a)}else o.$.div.style.backgroundImage="url('".concat(n._src,"')")}),e,t)}}))},triggerIOSRender:function(){},getImageInfo:function(e){var t={},n=[];return performance&&performance.getEntriesByType&&(n=performance.getEntriesByType("resource")),n.forEach((function(n){n.name===e&&(t.size=n.transferSize,t.duration=_()(n.duration,10))})),t},_pageReRenderCallback:function(){"widthFix"===this.mode&&void 0!==this.ratio&&(this.$$.style.height=this.getWidth()/this.ratio+"px"),"heightFix"===this.mode&&void 0!==this.ratio&&(this.$$.style.width=this.getHeight()*this.ratio+"px")},srcChanged:function(e,t){if(this._attached&&e!==t){var n=this;setTimeout((function(){n._changeId++,document.removeEventListener("pageReRender",n._pageReRenderCallback),n._initialize(n.lazyLoad)}))}},_checkMode:function(e){return["scaleToFill","aspectFit","aspectFill","top","bottom","center","left","right","top left","top right","bottom left","bottom right"].indexOf(e)>-1},lazyLoadChanged:function(e,t){e!==t&&t&&this._initialize(e)},modeChanged:function(e,t){if(this._checkMode(e))switch("widthFix"!==t&&"heightFix"!==t||(this.$$.style.height=this._originalHeight,this.$$.style.width=this._originalWidth),this._disableSizePositionRepeat=!0,this.$.div.$$.style.backgroundSize="auto auto",this.$.div.$$.style.backgroundPosition="0% 0%",this.$.div.$$.style.backgroundRepeat="no-repeat",e){case"scaleToFill":this.$.div.$$.style.backgroundSize="100% 100%";break;case"aspectFit":this.$.div.$$.style.backgroundSize="contain",this.$.div.$$.style.backgroundPosition="center center";break;case"aspectFill":this.$.div.$$.style.backgroundSize="cover",this.$.div.$$.style.backgroundPosition="center center";break;case"widthFix":case"heightFix":this.$.div.$$.style.backgroundSize="100% 100%",document.addEventListener("pageReRender",this._pageReRenderCallback),window.requestAnimationFrame((function(){document.dispatchEvent(new CustomEvent("pageReRender",{}))}));break;case"top":this.$.div.$$.style.backgroundPosition="top center";break;case"bottom":this.$.div.$$.style.backgroundPosition="bottom center";break;case"center":this.$.div.$$.style.backgroundPosition="center center";break;case"left":this.$.div.$$.style.backgroundPosition="center left";break;case"right":this.$.div.$$.style.backgroundPosition="center right";break;case"top left":this.$.div.$$.style.backgroundPosition="top left";break;case"top right":this.$.div.$$.style.backgroundPosition="top right";break;case"bottom left":this.$.div.$$.style.backgroundPosition="bottom left";break;case"bottom right":this.$.div.$$.style.backgroundPosition="bottom right"}else this._disableSizePositionRepeat=!1},getWidth:function(){var e=this.$$.offsetWidth,t=window.getComputedStyle(this.$$);return e-((Dt()(t.borderLeftWidth)||0)+(Dt()(t.borderRightWidth)||0))-((Dt()(t.paddingLeft)||0)+(Dt()(t.paddingRight)||0))},getHeight:function(){var e=this.$$.offsetHeight,t=window.getComputedStyle(this.$$);return e-((Dt()(t.borderTopWidth)||0)+(Dt()(t.borderBottomWidth)||0))-((Dt()(t.paddingTop)||0)+(Dt()(t.paddingBottom)||0))},backgroundSizeChanged:function(e){this._disableSizePositionRepeat||(this.$.div.style.backgroundSize=e)},backgroundPositionChanged:function(e){this._disableSizePositionRepeat||(this.$.div.$$.style.backgroundPosition=e)},backgroundRepeatChanged:function(e){this._disableSizePositionRepeat||(this.$.div.$$.style.backgroundRepeat=e)},_onLongPress:function(){if(this.showMenuByLongpress&&this.loaded){var e=this.src;e=e.trim(),this.$$.getBoundingClientRect(),/^data:image\//.test(e)?(e.split(",")[1]||"").trim():this.getRealRoute(e,window.__route__)}}}});var Sl=[];["onImageViewTouchStart","onImageViewTouchMove","onImageViewTouchEnd","onImageViewTouchCancel"].forEach((function(e){window._onTouchEvent&&window._onTouchEvent(e,(function(e){Sl.forEach((function(t){t(e)}))}))})),window.ftparser.registerElement({is:"wx-cover-image",template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-cover-image"},st:{v:"display: inherit;"},a:[],c:[{t:1,n:"img",id:"img",cl:{v:""},st:{v:"display: none;"},a:[],c:[]}]},{t:1,n:"div",id:"content",cl:{v:"wx-cover-image"},st:{v:"display: none;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-native","wx-positioning-target","wx-native-cover"],properties:{ariaRole:{type:String,value:"img",public:!0},ariaLabel:{type:String,value:"",public:!0},src:{type:String,value:"",observer:"_srcChanged",filter:"_formatSrc",public:!0},viewName:{type:String,value:"ImageView"},hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"}},options:{renderingMode:"full"},created:function(){this.__handleCoverViewTouch=this._handleCoverViewTouch.bind(this),Sl.push(this.__handleCoverViewTouch),this._imageLoaded=this.imageLoaded.bind(this)},attached:function(){this._srcChanged(this.src)},detached:function(){var e=this,t=Sl.findIndex((function(t){return t===e.__handleCoverViewTouch}));-1!==t&&Sl.splice(t,1)},listeners:{"this.tap":"_onCoverImageTap"},methods:{_onCoverImageTap:function(e){this._elementClickReport(e)},insert:function(e,t){var n=this,i=this.src;e.url=this.getRealRoute(i),e.accessibility=!0,e.ariaLabel=this.ariaLabel,e.ariaRole=this.ariaRole,this.sendInsertEvent("insertImageView",e,(function(o){o.errMsg.indexOf(":ok")>-1&&(n.$$.setAttribute("view-id",e.viewId),n._viewId=e.viewId,n._args={position:e.position,style:e.style,viewId:e.viewId,fixed:e.fixed,url:e.url,zIndex:e.zIndex},n._lastBgColor=e.style.bgColor,"function"==typeof t&&t(n._viewId),n.src!==i&&n._srcChanged(n.src))}))},update:function(e,t,n){var i=this;if(!this._detached){var o=t?E()(e):this.diff(e,this._args);if(!o)return;this._args=El(El({},this._args),e);var r={viewId:this._viewId};o.forEach((function(t){r[t]=e[t]})),r.style&&(this._lastBgColor===r.style.bgColor?(r.style=JSON.parse(ce()(r.style)),delete r.style.bgColor):this._lastBgColor=r.style.bgColor),this.sendUpdateEvent("updateImageView",r,(function(){"function"==typeof n&&n(i._viewId)}))}},_update:function(e){var t=this;if(e){var n=new Image,i=v()(),o=this.getRealRoute(e);if(this._lastTimestamp=i,n.timestamp=i,this.loaded=!1,this.width=void 0,this.height=void 0,O){var r=this.$.img.$$;n.onload=function(){n.timestamp===t._lastTimestamp&&o&&(t.triggerEvent("load",{width:n.width,height:n.height}),t.loaded=!0,t.width=n.width,t.height=n.height),r.src=o,r.style.display="block"},n.onerror=function(){n.timestamp===t._lastTimestamp&&o&&t.triggerEvent("error",{errMsg:"GET "+o+" 404 (Not Found)"})},n.src=o}else n.onload=function(){n.timestamp===t._lastTimestamp&&o&&(t.triggerEvent("load",{width:n.width,height:n.height}),t._imageLoaded(),t.loaded=!0,t.width=n.width,t.height=n.height)},n.onerror=function(){n.timestamp===t._lastTimestamp&&o&&t.triggerEvent("error",{errMsg:"GET "+o+" 404 (Not Found)"})},this.$.container.$$.innerHTML="",this.$.container.$$.appendChild(n),n.src=o}},_formatSrc:function(e){return e&&["·"].forEach((function(t){var n=new RegExp(t,"ig");e=e.replace(n,(function(e){return window.encodeURIComponent(e)}))})),e},_srcChanged:function(e){var t=this;this._isReady||O?/^\/\//.test(e)?this.src="http:"+e:(t._update(e),t._viewId&&t.update({viewId:t._viewId,url:this.getRealRoute(e),wId:window.__webviewId__},!1,(function(){}))):this._deferred.push({callback:"_srcChanged",args:[e]})},hiddenChanged:function(){this.toggleHidden()},toggleHidden:function(e){var t={viewId:this._viewId,hide:void 0!==e?Boolean(e):this.hidden};this.sendUpdateEvent("updateImageView",t,(function(){}))},imageLoaded:function(){document.dispatchEvent(new CustomEvent("pageReRender",{}))}}});var kl={left:"left",center:"center",right:"right",start:"left",end:"right",inherit:"left",initial:"left",justify:"left","-webkit-center":"center","-webkit-right":"right","-webkit-left":"left"},Tl={is:"wx-input",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"role",v:"textbox"}],c:[{t:1,n:"input",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"input",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.showValue},b:[[null,"showValue"]],t:3}]},{t:1,n:"div",id:"placeholder",cl:{e:function(e,t,n){return"input-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"div",id:"placeholderDark",cl:{e:function(e,t,n){return"input-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},behaviors:["wx-base","wx-data-component","wx-native","wx-positioning-target","wx-class-prefix","wx-reload","wx-size-normalizer","wx-keyboard-control"],properties:{focus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},placeholder:{type:String,value:"",observer:"_placeholderChange",public:!0},placeholderStyle:{type:String,value:"",public:!0,filter:function(e){return wx.transformRpx(e,!0)},observer:function(){this._checkPlaceholderStyle(this.value)}},placeholderClass:{type:String,value:"",public:!0,observer:"_placeholderClassChange"},value:{type:String,value:"",filter:"defaultValueChange",public:!0},showValue:{type:String,value:""},maxlength:{type:Number,value:140,observer:"_maxlengthChanged",public:!0},type:{type:String,value:"text",public:!0},password:{type:Boolean,value:!1,public:!0,observer:"_typeChanged"},disabled:{type:Boolean,value:!1,public:!0,observer:"_defaultPropChange"},cursorSpacing:{type:String,value:0,public:!0,filter:"normalizeSize"},confirmHold:{type:Boolean,value:!1,public:!0},confirmType:{type:String,value:"done",public:!0},holdKeyboard:{type:Boolean,value:!1,public:!0},cursor:{type:null,value:-1,public:!0,observer:"_cursorChange"},selectionStart:{type:null,value:-1,public:!0,observer:"_selectionStartChange"},selectionEnd:{type:null,value:-1,public:!0,observer:"_selectionEndChange"},adjustPosition:{type:Boolean,value:!0,public:!0},bindinput:{type:String,value:"",public:!0,observer:"_bindinputChanged"},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"}},data:{_prefixedPlaceholderClass:""},listeners:{tap:"_inputFocusWrap","this.longtap":"stopPropagation","this.longpress":"stopPropagation"},created:function(){this.viewId=this.getPositioningId(),this.bindMethod(["input"])},attached:function(){this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this;if(!this._inputFontSize){var t=window.getComputedStyle(this.$$);this._inputFontSize=Dt()(t.fontSize)||16}"android"===wd.getPlatform()&&this.$.input&&(this.$.input.style.textIndent="0.5px"),this._valueQueue=[],this._inputIndex=-1,this._inputId=+(String(v()()).slice(-5)+""+this._id),this._attached=!0,this._placeholderClassChange(this.placeholderClass),this._value=this.value,this.__routeDoneId=ftparser.addListenerToElement(document,"routeDone",this.checkAutoFocus.bind(this)),this.__onKeyboardCompleteId=ftparser.addListenerToElement(document,"onKeyboardComplete",this.onKeyboardComplete.bind(this)),this.__currentKeyboardHeight=0,this.__onkeyboardheightchangeId=ftparser.addListenerToElement(document,"onkeyboardheightchange",this.onkeyboardheightchange.bind(this)),this.__setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",this.setKeyboardValue.bind(this)),this.__onKeyboardConfirmId=ftparser.addListenerToElement(document,"onKeyboardConfirm",this.onKeyboardConfirm.bind(this)),this.__onKeyboardShowId=ftparser.addListenerToElement(document,"onKeyboardShow",this.onKeyboardShow.bind(this)),this.__pageReRenderCallback=this.pageReRenderCallback.bind(this),document.addEventListener("pageReRender",this.__pageReRenderCallback),document.addEventListener("windowOrientationChangeFinish",this.__pageReRenderCallback),new ResizeObserver((function(t,n){e._updateInput(),e.checkLineHeight()})).observe(this.$$),this.observer=new MutationObserver((function(t,n){clearTimeout(e._mutationTimeout),e._mutationTimeout=setTimeout((function(){e._updateInput()}),100)})),this.observer.observe(this.$$,{attributes:!0,childList:!0,subtree:!0})},_detachedCb:function(){this._attached=!1,this.observer.disconnect(),document.removeEventListener("pageReRender",this.__pageReRenderCallback),document.removeEventListener("windowOrientationChangeFinish",this.__pageReRenderCallback),ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId),ftparser.removeListenerFromElement(document,"onKeyboardComplete",this.__onKeyboardCompleteId),ftparser.removeListenerFromElement(document,"onkeyboardheightchange",this.__onkeyboardheightchangeId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.__setKeyboardValueId),ftparser.removeListenerFromElement(document,"onKeyboardShow",this.__onKeyboardShowId),ftparser.removeListenerFromElement(document,"onKeyboardConfirm",this.__onKeyboardConfirmId),this._keyboardShow&&wd.hideKeyboard({inputId:this._inputId})},stopPropagation:function(e){return e.stopPropagation(),!1},_focusChange:function(e){var t=v()(),n=this.focus===e&&t-200>=this._lastFocusChangeTime;return(this.focus!==e||n)&&(this._lastFocusChangeTime=t,this._couldFocus(e)),e},checkAutoFocus:function(){(this.__autoFocused||window.__onAppRouteDone)&&(this.__autoFocused=!0,this._couldFocus(this.autoFocus||this.focus))},_updateInput:function(){if(this._keyboardShow&&this._inputId){var e=this.getCurrentInputArgs(),t=this._diff(this.inputArgs,e);t&&(this.inputArgs=e,t.inputId=this._inputId,FinChatJSBridge.invoke("updateInput",t,(function(e){})))}},pageReRenderCallback:function(){this.checkAutoFocus(),this._updateInput(),this.checkLineHeight()},publishInputEvent:function(e){this._value!==e.detail.value&&(this._value||e.detail.value)&&(this.id,this.dataset,this.$$.offsetTop,this.$$.offsetLeft)},onKeyboardConfirm:function(e){var t=this;if(this._keyboardShow&&e.detail.inputId===this._inputId){if(this._isInScrollView){if(this._onKeyboardConformThrottle)return;this._onKeyboardConformThrottle=!0,setTimeout((function(){t._onKeyboardConformThrottle=!1}),200)}this.publishInputEvent(e),this._value=e.detail.value,this.triggerEvent("confirm",{value:this._value})}},onKeyboardShow:function(e){this._inputId===e.detail.inputId&&(this._keyboardShow||(this._firstKeyboardShowTime=v()()),this._keyboardShow=!0,(T||k&&Ii().input)&&this._updateInput(),this.triggerEvent("focus",{value:this.value,height:e.detail.height}))},onKeyboardComplete:function(e){var t=this;if(!0===this._isInScrollView){if(this._onKeyboardCompleteThrottle)return void this._resetInputState();this._onKeyboardCompleteThrottle=!0,setTimeout((function(){t._onKeyboardCompleteThrottle=!1}),200)}e.detail.inputId===this._inputId&&this._keyboardShow&&(e.detail.value=null!==this._forceValue&&void 0!==this._forceValue?this._forceValue:e.detail.value,this.publishInputEvent(e),this._value=e.detail.value,this.__formResetCallback&&(this.value="",this.__formResetCallback=void 0),"function"==typeof this.__formCallback&&(this.__formCallback(this._value),this.__formCallback=void 0),this._setKeyboardLock(),this.triggerEvent("change",{value:this._value}),this.triggerEvent("blur",{value:this._value,cursor:e.detail.cursor}),this._resetInputState(),this._cursor=this.inputArgs.cursor=e.detail.cursor)},onkeyboardheightchange:function(e){e.detail.inputId===this._inputId&&this.triggerEvent("keyboardheightchange",e.detail)},_setKeyboardLock:function(){var e=this;this._keyboardLock=!0,setTimeout((function(){e._keyboardLock=!1}),"android"===wd.getPlatform()?1e3:100)},setKeyboardValue:function(e){var t=e.detail,n=t.inputId,i=t.value,o=t.keyCode;if(this._keyboardShow&&n===this._inputId&&(8===_()(o,10)||i!==this._value))if(xi)this._value=i,i&&this._valueQueue.push(i),this._cursor=e.detail.cursor,this._checkPlaceholderStyle(i);else{this._value=i,this._cursor=e.detail.cursor,this._checkPlaceholderStyle(i);var r=this.__modelValueName&&this.__modelValueName.value,a={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};this.bindinput||r?FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:r},data:{type:"input",timeStamp:v()(),detail:{value:i,cursor:e.detail.cursor,keyCode:o},target:a,currentTarget:a,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),inputId:this._inputId,updateEventName:void 0===this._insertNativeFail||this._insertNativeFail?"updateInput":"updateNativeInput"}}):this.triggerEvent("input",{value:this._value,cursor:this._cursor,keyCode:o})}},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),r=Dt()(t.fontWeight);isNaN(r)?r=t.fontWeight:r<500?r="normal":r>=500&&(r="bold");var a=t.textAlign,s=t.backgroundColor?t.backgroundColor:"rgba(0, 0, 0, 0)";this._inputFontSize=Dt()(t.fontSize)||16;var c=n.width-i[0]-i[1],l=n.height-o[0]-o[1];return{width:c<0?0:c,height:l<0?0:l,left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0],scrollX:window.scrollX,scrollY:window.scrollY,offsetLeft:n.left+i[0]+window.scrollX,offsetTop:n.top+o[0]+window.scrollY,fontFamily:t.fontFamily,fontSize:this._inputFontSize,fontWeight:r,color:Y(t.color),backgroundColor:Y(s),keyboardAccessory:this.computKeyboardAccessoryHeight(),marginBottom:this.cursorSpacing||Dt()(t.marginBottom)||0,textAlign:kl[a]||"left",borderTopLeftRadius:Dt()(t.borderTopLeftRadius.replace("px",""))||0,borderTopRightRadius:Dt()(t.borderTopRightRadius.replace("px",""))||0,borderBottomLeftRadius:Dt()(t.borderBottomLeftRadius.replace("px",""))||0,borderBottomRightRadius:Dt()(t.borderBottomRightRadius.replace("px",""))||0}},getPlaceholderStyle:function(){var e="dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?this.$.placeholderDark:this.$.placeholder,t=window.getComputedStyle(e),n=Dt()(t.fontWeight);return n=isNaN(n)?t.fontWeight:n<500?"normal":"bold",{fontSize:Dt()(t.fontSize)||16,fontWeight:n,color:Y(t.color)}},resetFormData:function(){this._keyboardShow?(this.__formResetCallback=!0,wd.hideKeyboard()):(this.value="",this._checkPlaceholderStyle(this.value)),"number"==typeof this._groupID&&(this._groupID=null)},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_resetInputState:function(){this._keyboardShow=!1,this.value!==(this._value||"")&&(this.value=this._value||""),this._valueQueue=[],this._inputIndex=-1,this._value=void 0,this.$.input.style.opacity=1,this._checkPlaceholderStyle(this.value)},_couldFocus:function(e){var t=this,n=this,i=wd.getPlatform();if(!this._keyboardShow&&e)window._addActiveInputQueue&&window._addActiveInputQueue(n);else if(this._keyboardShow&&!e){if("ios"===i){var o=v()()-this._keyboardShowTimeStamp,r=Math.max(200-o,0);if(r>0)return void setTimeout((function(){wx.hideKeyboard({inputId:n._inputId})}),r)}window.requestAnimationFrame((function(){wx.hideKeyboard({inputId:t._inputId})}))}},_maxlengthChanged:function(e,t){var n=this.value.slice(0,e);n!==this.value&&(this.value=n)},_placeholderChange:function(){this._keyboardShow||this._checkPlaceholderStyle(this.value)},formateEventTarget:function(){var e=this.__modelValueName&&this.__modelValueName.value,t={bindinput:this.bindinput,bindkeyboardheightchange:this.bindkeyboardheightchange,target:{id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},setKeyboardValue:!0,securityType:"input",modelValueName:e,updateEventName:void 0===this._insertNativeFail||this._insertNativeFail?"updateInput":"updateNativeInput"};return t.currentTarget=t.target,t.nodeId=this.getNodeId(),this.bindinput||e||this.bindkeyboardheightchange?ce()(t):""},getCurrentInputArgs:function(){var e=this.$$.getBoundingClientRect();return{type:["text","number","idcard","digit","emoji"].indexOf(this.type)>-1?this.type:"text",maxLength:this.maxlength,password:this.password||"password"===this.type,style:this.getComputedStyle(),data:this.formateEventTarget(),placeholder:this.placeholder||"",placeholderStyle:this.getPlaceholderStyle("light"),confirmHold:this.confirmHold,confirmType:this.confirmType,adjustPosition:this.adjustPosition,holdKeyboard:this.holdKeyboard,disabled:this.disabled,hide:0===e.width||0===e.height,cursor:this._cursor,selectionStart:this._convertToNumber(this.selectionStart),selectionEnd:this._convertToNumber(this.selectionEnd)}},_showNativeInput:function(e,t,n){var i=this;if(this._attached&&!this._keyboardShow&&!this._isShowingKeyboard){if(this._keyboardLock)return this.triggerEvent("blur"),void setTimeout((function(){i._keyboardLock=!1}),1e3);var o=this;if(this.inputArgs=this.getCurrentInputArgs(),!(this.hidden||this.disabled||this.inputArgs.style&&this.inputArgs.style.width<=0&&this.inputArgs.style.height<=0)){this._isShowingKeyboard=!0,this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=e,this.inputArgs.selectionStart=this._convertToNumber(t),this.inputArgs.selectionEnd=this._convertToNumber(n),this.inputArgs.inputId=this._inputId,this.inputArgs.focus=!0;var r=this.value,a=this.placeholder;FinChatJSBridge.invoke("showKeyboard",this.inputArgs,(function(e){o._isShowingKeyboard=!1;try{o._inputId=Number(e.inputId),o._keyboardShow=!0,o._keyboardShowTimeStamp=v()(),o.$.input.style.opacity=0,r!==o.value&&FinChatJSBridge.invoke("updateInput",{value:o.value||"",inputId:o._inputId},(function(e){})),a!==o.placeholder&&FinChatJSBridge.invoke("updateInput",{placeholder:o.placeholder||"",inputId:o._inputId},(function(e){})),o.findKeyboardAccessory()}catch(e){console.log("error",e)}}))}}},_convertToNumber:function(e){var t=Dt()(e);return isNaN(t)?-1:t},_inputFocusWrap:function(){this._inputFocus(-1,-1,-1)},_inputFocus:function(e,t,n){var i=this;document.activeElement.blur(),this.disabled||setTimeout((function(){i.__inputFocus(e,t,n)}),"android"===wd.getPlatform()?100:10)},__inputFocus:function(e,t,n){this._showNativeInput(e,t,n)},_diff:function(e,t){for(var n={},i=!1,o=0,r=E()(t);o<r.length;o++){var a=r[o];"[object Object]"===Object.prototype.toString.call(t[a])?ce()(t[a])!==ce()(e[a])&&(n[a]=t[a],i=!0):e[a]!==t[a]&&(n[a]=t[a],i=!0)}return i?n:void 0},defaultValueChange:function(e){var t=this;if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId&&this._keyboardShow)if(xi)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("updateInput",{value:e||"",inputId:this._inputId,confirmHold:this.confirmHold},(function(){t._forceValue=null,t._keyboardShow||(t._value=e,t._resetInputState())}))):this._valueQueue=this._valueQueue.slice(this._inputIndex+1);else{var n=this._value;e!==n&&(this._forceValue=e,FinChatJSBridge.invoke("updateInput",{value:e||"",inputId:this._inputId,confirmHold:this.confirmHold},(function(){t._forceValue=null,t._keyboardShow||(t._value=e,t._resetInputState())})))}else this._checkPlaceholderStyle(e);return this._value=e,e},_getPlaceholderStyle:function(e){return e+";display:none;"},_typeChanged:function(e){return this._keyboardShow||this._checkPlaceholderStyle(this.value),e},_hiddenChanged:function(e){this._inputId&&FinChatJSBridge.invoke("updateNativeInput",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))},_bindinputChanged:function(){this._inputId&&this._updateInput()},checkLineHeight:function(){var e=this;window.requestAnimationFrame((function(){var t=window.getComputedStyle(e.$$),n=e.$$.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border".concat(e,"Width")])||0)+(Dt()(t["padding".concat(e)])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border".concat(e,"Width")])||0)+(Dt()(t["padding".concat(e)])||0)})),r=n.height-o[0]-o[1],a=e.$.input;r!==e.__lastHeight&&(a.style.height=r+"px",a.style.lineHeight=r+"px",e.__lastHeight=r),n.width-i[0]-i[1]!==e.__lastWidth&&(e.__lastWidth=n.width-i[0]-i[1],a.style.width=n.width-i[0]-i[1]+"px")}))},_placeholderClassChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/\s+/);this._placeholderClass=this.convertClassListWithPrefix(e),this.setData({_prefixedPlaceholderClass:this._placeholderClass.join(" ")});var t=this.maxlength>0?this.value.slice(0,this.maxlength):this.value;this._attached&&this._checkPlaceholderStyle(t)},_checkPlaceholderStyle:function(e){var t=e||" ",n=this.$.input,i=this._placeholderClass||[],o="android"===wd.getPlatform(),r=0;if(e){if(n.classList.remove("input-placeholder"),n.classList.remove("input-placeholder-dark"),i.length>0)for(;r<i.length;r++)n.classList.contains(i[r])&&n.classList.remove(i[r]);n.setAttribute("style",""),this.__lastHeight?(n.style.height="".concat(this.__lastHeight,"px"),n.style.lineHeight="".concat(this.__lastHeight,"px"),this.__lastWidth&&(n.style.width=this.__lastWidth+"px")):this.checkLineHeight(),(this.password||"password"===this.type)&&(o?(t=e?new Array(e.length+1).join("•"):"",n.style.fontSize=20*this._inputFontSize/20+"px",n.style.letterSpacing=4*this._inputFontSize/20+"px"):"ios"===wd.getPlatform()?(t=e?new Array(e.length+1).join("•"):"",n.style.fontSize=36*this._inputFontSize/20+"px",n.style.letterSpacing=-1-this._inputFontSize/20+"px",n.style.marginTop=-3-this._inputFontSize/20+"px",n.style.left=-.5-this._inputFontSize/40+"px"):"number"===this.type&&(n.style.fontSize=2+this._inputFontSize/10*7+"px",n.style.letterSpacing=this._inputFontSize/10*3-2+"px",n.style.left=this._inputFontSize/10+"px",n.style.marginTop=this._inputFontSize/10-1+"px",t=e?new Array(e.length+1).join("●"):"")),this.showValue=t.replace(/\n/g," ")}else{if(n.setAttribute("class",""),n.classList.add("dark"===__wxConfig.theme?"input-placeholder-dark":"input-placeholder"),i.length>0)for(;r<i.length;r++)n.classList.add(i[r]);n.style.fontSize="",n.style.letterSpacing="",n.style.top="",n.style.left="",this.placeholderStyle&&(n.setAttribute("style",this.placeholderStyle),this.__lastHeight?(n.style.height="".concat(this.__lastHeight,"px"),n.style.lineHeight="".concat(this.__lastHeight,"px")):this.checkLineHeight()),this._keyboardShow||(this.showValue=this.placeholder.replace(/\n/g," ")||" ")}this._keyboardShow&&(this.$.input.style.opacity=0)},_checkIsInScrollView:function(e){return!1},_cursorChange:function(e){this._cursor=e},_defaultPropChange:function(e){},_selectionStartChange:function(){},_selectionEndChange:function(){}}},Il=1;function Nl(e){return e=Number(e),isNaN(e)?-1:e}var Pl={is:"wx-input",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"role",v:"textbox"}],c:[{t:1,n:"input",id:"input",a:[{n:"type",o:"$",e:function(e,i,o){return t(o,n,"_getType",[e.type,e.password])},l:null,b:[[null,"_getType"],[null,"type"],[null,"password"]]},{n:"maxlength",o:"$",e:function(e,t,n){return e.maxlength},l:[null],b:[[null,"maxlength"]]},{n:"value",o:"$",e:function(e,t,n){return e.showValue},l:[null],b:[[null,"showValue"]]},{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]}],c:[]},{t:1,n:"div",id:"placeholder",cl:{e:function(e,t,n){return"input-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.placeholder},b:[[null,"placeholder"]],t:3}]}]}]},behaviors:["wx-base","wx-class-prefix","wx-data-component"],properties:{focus:{type:Boolean,value:0,filter:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,public:!0},placeholder:{type:String,value:"",observer:"_placeholderChange",public:!0},placeholderStyle:{type:String,value:"",public:!0,filter:function(e){return wx.transformRpx(e,!0)}},placeholderClass:{type:String,value:"",public:!0,observer:"_placeholderClassChange"},dropdownStyle:{type:Object,value:{},public:!0},value:{type:String,value:"",filter:"defaultValueChange",public:!0},showValue:{type:String,value:""},maxlength:{type:Number,value:140,observer:"_maxlengthChanged",public:!0},type:{type:String,value:"text",public:!0},password:{type:Boolean,value:!1,public:!0},disabled:{type:Boolean,value:!1,public:!0},confirmHold:{type:Boolean,value:!1,public:!0},cursor:{type:null,value:-1,public:!0},selectionStart:{type:null,value:-1,public:!0},selectionEnd:{type:null,value:-1,public:!0}},data:{_prefixedPlaceholderClass:""},listeners:{tap:"_inputFocus","input.focus":"_inputFocus","input.blur":"_inputBlur","input.input":"_inputKey"},created:function(){this.bindMethod(["input"])},attached:function(){this._inputId=this._inputId||Il++,this._attachedCb()},detached:function(){this._detachedCb()},methods:{resetFormData:function(){this._keyboardShow&&(this.__formResetCallback=!0,wx.hideKeyboard()),this.value="",this.showValue=""},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},_focusChange:function(e){return this._couldFocus(e),e},_couldFocus:function(e){var t=this;this._attached&&(!this._keyboardShow&&e?window.requestAnimationFrame((function(){t.selectionStart=Nl(t.selectionStart),t.selectionEnd=Nl(t.selectionEnd),t.cursor=Nl(t.cursor),t._inputFocus(null,t.cursor,t.selectionStart,t.selectionEnd)})):this._keyboardShow&&!e&&this.$.input.blur())},_maxlengthChanged:function(e){var t=this.value.slice(0,e);t!==this.value&&(this.value=t)},_placeholderChange:function(){this._checkPlaceholderStyle(this.value||this._value)},_attachedCb:function(){var e=this;this._placeholderClassChange(this.placeholderClass),this._checkPlaceholderStyle(this.value),this._attached=!0,this._value=this.value,this.updateInput(),window.__onAppRouteDone&&this._couldFocus(this.autoFocus||this.focus),this.__routeDoneId=ftparser.addListenerToElement(document,"routeDone",(function(){e._couldFocus(e.autoFocus||e.focus)})),this.__setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",(function(t){if(t.detail.inputId===e._inputId&&e._keyboardShow){var n=t.detail.value,i=t.detail.cursor;void 0!==n&&(e._value=n,e.value=n),void 0!==i&&-1!==i&&(e.$.input.setSelectionRange(i,i),e.cursor=i)}})),this.__hideKeyboardId=ftparser.addListenerToElement(document,"hideKeyboard",(function(){e._keyboardShow&&e.$.input.blur()})),this.__onDocumentTouchStart=this.onDocumentTouchStart.bind(this),this.__updateInput=this.updateInput.bind(this),this.__inputKeyUp=this._inputKeyUp.bind(this),this.__inputKeyDown=this._inputKeyDown.bind(this),this.__inputCompositionstart=this._inputCompositionstart.bind(this),this.__inputCompositionend=this._inputCompositionend.bind(this),this.$.input.addEventListener("keyup",this.__inputKeyUp),this.$.input.addEventListener("keydown",this.__inputKeyDown),this.$.input.addEventListener("compositionstart",this.__inputCompositionstart),this.$.input.addEventListener("compositionend",this.__inputCompositionend),document.addEventListener("touchstart",this.__onDocumentTouchStart),document.addEventListener("pageReRender",this.__updateInput),(this.autoFocus||this.focus)&&setTimeout((function(){e._couldFocus(e.autoFocus||e.focus)}),500)},_detachedCb:function(){document.removeEventListener("pageReRender",this.__updateInput),document.removeEventListener("touchstart",this.__onDocumentTouchStart),this.$.input.removeEventListener("keyup",this.__inputKeyUp),this.$.input.removeEventListener("keydown",this.__inputKeyDown),this.$.input.removeEventListener("compositionstart",this.__inputCompositionstart),this.$.input.removeEventListener("compositionend",this.__inputCompositionend),ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId),ftparser.removeListenerFromElement(document,"hideKeyboard",this.__hideKeyboardId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.__setKeyboardValueId)},onDocumentTouchStart:function(e){for(var t=e.target;t;){if(t===this.$.wrapper||t===this.$["autofill-dropdown"])return;t=t.parentNode}this._keyboardShow&&this.$.input.blur()},_getType:function(e,t){return t||"password"===e?"password":"text"},_showValueChange:function(e){this.$.input.value=e},_inputFocus:function(e,t,n,i){this.disabled||this._keyboardShow||this._focusInputWithSelection(t,n,i)},_focusInputWithSelection:function(e,t,n){this._keyboardShow=!0,this.triggerEvent("focus",{value:this.value,height:0}),this.$.input.focus(),"number"==typeof t&&"number"==typeof n&&-1!==t?this.$.input.setSelectionRange(t,n):"number"==typeof e&&this.$.input.setSelectionRange(e,e),this.selectionStart=-1,this.selectionEnd=-1,this.cursor=-1},_inputCompositionstart:function(){this.inputIgnore=!0},_inputCompositionend:function(e){this.inputIgnore=!1,this._inputKey(e)},_inputBlur:function(e){this._keyboardShow=!1,this.value=this._value,this._formGetDataCallback(),this.triggerEvent("change",{value:this.value}),this.triggerEvent("blur",{value:this.value,cursor:this.$.input.selectionEnd}),this._checkPlaceholderStyle(this.value)},_inputKeyDown:function(e){this._keyCode=e.keyCode},_inputKeyUp:function(e){13===e.keyCode&&(this.triggerEvent("confirm",{value:this._value}),this.confirmHold||(this.value=this._value,this.$.input.blur()))},_inputKey:function(e){var t=e.target.value;this._value=t,this._checkPlaceholderStyle(t);var n=this.__modelValueName&&this.__modelValueName.value;if(!this.inputIgnore&&(this.bindinput||n)){var i={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};(this.bindinput||n)&&FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:n},data:{type:"input",timeStamp:v()(),detail:{value:e.target.value,cursor:this.$.input.selectionStart,keyCode:this._keyCode},target:i,currentTarget:i,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),inputId:this._inputId,isIDE:!0}})}return!1},updateInput:function(){var e=window.getComputedStyle(this.$$),t=this.$$.getBoundingClientRect(),n=["Top","Bottom"].map((function(t){return Dt()(e["border"+t+"Width"],10)+Dt()(e["padding"+t],10)})),i=this.$.input,o=t.height-n[0]-n[1];o!==this.__lastHeight&&(i.style.height=o+"px",i.style.lineHeight=o+"px",this.__lastHeight=o),i.style.color=e.color;var r=this.$.placeholder;r.style.height=t.height-n[0]-n[1]+"px",r.style.lineHeight=r.style.height},defaultValueChange:function(e){return this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._checkPlaceholderStyle(e),this._showValueChange(e),this._value=e,e},_getPlaceholderStyle:function(e){return e+(this&&"none"===this.$.placeholder.style.display?"display:none;":"")},_placeholderClassChange:function(e){var t=e.split(/\s+/);this._placeholderClass=this.convertClassListWithPrefix(t),this.setData({_prefixedPlaceholderClass:this._placeholderClass.join(" ")})},_checkPlaceholderStyle:function(e){var t=this._placeholderClass||[],n=this.$.placeholder,i=0;if(e){if(this._placeholderShow&&(n.classList.remove("input-placeholder"),n.setAttribute("style",""),t.length>0))for(;i<t.length;i++)n.classList.contains(t[i])&&n.classList.remove(t[i]);n.style.display="none",this._placeholderShow=!1}else{if(!this._placeholderShow&&(n.classList.add("input-placeholder"),this.placeholderStyle&&n.setAttribute("style",this.placeholderStyle),t.length>0))for(;i<t.length;i++)n.classList.add(t[i]);n.style.display="",this.updateInput(),this._placeholderShow=!0}}}};function Ol(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}var Ll,Rl=Tl.methods,Ml={_attachedCb:function(){var e=this,t=this._cid=this._nativeId;this.$.wrapper.setAttribute("cid",t),this.$.wrapper.classList.add("tongceng_fcid_".concat(t));var n=this.$.wrapper.offsetHeight+1;this.$.inner.style.height=n+"px",this.$.input.style.opacity=0,this.$.placeholder.style.opacity=0,this._insertNativeFail=!1,Rl._attachedCb.call(this),Ii().input?(this.retry=0,Kn((function(){e.insertNativeInput()}))):(this._insertNativeFail=!0,this._restoreBaseInput())},_detachedCb:function(){Rl._detachedCb.call(this),Ii().input&&(this.removeNativeInput(),this._insertTimer&&clearTimeout(this._insertTimer))},_focusChange:function(e,t){return this._insertNativeFail?Rl._focusChange.call(this,e):e||e!==t?(e&&this.$.input.scrollIntoView(!1),(e&&!this._keyboardShow||!e&&this._keyboardShow)&&this._inputId&&FinChatJSBridge.invoke("updateNativeInput",{cid:this._cid,inputId:this._inputId,focus:e},(function(){})),e):e},defaultValueChange:function(e){var t=this;if(this._insertNativeFail)return Rl.defaultValueChange.call(this,e);var n=this;if(this._insertFinish){if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId)if(xi)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("updateNativeInput",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold},(function(e){n._forceValue=null}))):this._valueQueue=this._valueQueue.slice(this._inputIndex+1);else{var i=this._value;e!==i&&(this._forceValue=e,FinChatJSBridge.invoke("updateNativeInput",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold},(function(t){n._forceValue=null,n._keyboardShow||(n._value=e,n._resetInputState())})))}return this._value=e,e}this.addCb((function(){t.defaultValueChange(e)}))},_updateInput:function(){var e=this;if(this._insertNativeFail)Rl._updateInput.call(this);else if(this._insertFinish){if(this._attached&&this._inputId&&this.inputArgs){var t=this.getCurrentInputArgs(),n=this._diff(this.inputArgs,t);n&&(this.inputArgs=t,n.cid=this._cid,n.inputId=this._inputId,FinChatJSBridge.invoke("updateNativeInput",n,(function(e){})))}}else this.addCb((function(){e._updateInput()}))},addCb:function(e){this._cbs=this._cbs||[],this._cbs.push(e)},_hiddenChanged:function(e){if(this._inputId){if(Ii().input&&k&&!e){var t=this.getCurrentInputInfo(),n=document.getElementsByTagName("x-input")[0];n&&n.setAttribute("data",ce()(t))}FinChatJSBridge.invoke("updateNativeInput",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))}},_showNativeInput:function(e,t,n){this._insertNativeFail&&Rl._showNativeInput.call(this,e,t,n)},checkLineHeight:function(){this._insertNativeFail&&Rl.checkLineHeight.call(this)},_inputFocus:function(e,t,n){this._insertNativeFail&&Rl._inputFocus.call(this,e,t,n)},_checkPlaceholderStyle:function(e){this._insertNativeFail&&Rl._checkPlaceholderStyle.call(this,e)},_defaultPropChange:function(){this._insertNativeFail||this._updateInput()},_selectionStartChange:function(e){this._insertNativeFail||this.selectionEnd>e&&-1!==e&&this._updateInput()},_selectionEndChange:function(e){if(!this._insertNativeFail){var t=this.selectionStart;e>t&&-1!==t&&this._updateInput()}},_restoreBaseInput:function(){var e=this._cid;this.$.wrapper.removeAttribute("cid",e),this.$.wrapper.classList.remove("tongceng_fcid_".concat(e)),this.$.wrapper.removeChild(this.$.inner),this.$.input.style.opacity=1,this._placeholderClassChange(this.placeholderClass),this._couldFocus(this.autoFocus||this.focus),this.checkLineHeight(),Kn((function(){window._flushActiveInputQueue()}))},getCurrentInputInfo:function(){return this.inputArgs=this.getCurrentInputArgs(),this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=this.cursor,this.inputArgs.focus=this.autoFocus||this.focus,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Ol(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({cid:this._cid,inputId:this._inputId},this.inputArgs)},insertNativeInput:function(){var e=this,t=this.getCurrentInputInfo(),n=function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[]),e.findKeyboardAccessory()};if(k){var i=document.createElement("x-input");return this.$.inner.style.display="none",this.$.input.style.display="none",this.$.wrapper.append(i),i.style.lineHeight=t.style.height+"px",i.setAttribute("data",ce()(t)),i.getBoundingClientRect(),void(Ti?(FinChatJSBridge.on("onTongcengWidgetReady_"+this._inputId,(function(){n()})),FinChatJSBridge.on("onTongcengWidgetDestroy_"+this._inputId,(function(){e._insertFinish=!1}))):setTimeout((function(){n()})))}FinChatJSBridge.invoke("insertNativeInput",t,(function(t){-1===t.errMsg.indexOf(":ok")?e.retry<10?(e._insertTimer=setTimeout((function(){e.insertNativeInput()}),20*e.retry),e.retry++):(e._insertNativeFail=!0,e._restoreBaseInput(),Kn((function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[])}))):Kn((function(){n()}))}))},removeNativeInput:function(){var e=this;FinChatJSBridge.invoke("removeNativeInput",{cid:this._cid,inputId:this._inputId},(function(){e._cid=null}))}},Bl=Ke()({},Tl,{template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",st:{v:"width:100%;height:100%;"},a:[{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"role",v:"textbox"}],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width:101%;height:101%;"},a:[],c:[]},{t:1,n:"input",id:"inputTag",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"input",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.showValue},b:[[null,"showValue"]],t:3}]},{t:1,n:"div",id:"placeholder",cl:{e:function(e,t,n){return"input-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"div",id:"placeholderDark",cl:{e:function(e,t,n){return"input-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},methods:Ke()({},Rl,Ml)});Ll=O?Pl:Ii().input||k?Bl:Tl,window.ftparser.registerElement(Ll),window.ftparser.registerElement({is:"wx-label",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{for:{type:String,public:!0}},listeners:{"this.tap":"onTap"},behaviors:["wx-base"],attached:function(){this._findRelatedNode()},methods:{_handleNode:function(e,t){if(e instanceof ftparser.Component&&e.hasBehavior("wx-label-target"))return e.handleLabelTap(t),!0},_findRelatedNode:function(){var e=null;this.for?this.ownerShadowRoot?e=this.ownerShadowRoot.getElementById(this.for):(e=document.getElementById(this.for))&&(e=e.__wxElement):this.dfs2(this),e&&e instanceof ftparser.Component&&e.hasBehavior("wx-label-target")&&(e._relatedLabel=this,e._setRelatedLabelAria&&e._setRelatedLabelAria())},dfsLabelTarget:function(e){if(e instanceof ftparser.Component&&e.hasBehavior("wx-label-target"))return e;if(!e.childNodes)return null;for(var t=0;t<e.childNodes.length;t++){var n=this.dfsLabelTarget(e.childNodes[t]);if(n)return n}return null},dfs:function(e,t){if(this._handleNode(e,t))return!0;if(!e.childNodes)return!1;for(var n=0;n<e.childNodes.length;++n)if(this.dfs(e.childNodes[n],t))return!0;return!1},dfs2:function(e){if(e instanceof ftparser.Component&&e.hasBehavior("wx-label-target"))return e;if(!e.childNodes)return null;for(var t=0;t<e.childNodes.length;t++){var n=this.dfs2(e.childNodes[t]);if(n)return n}return null},onTap:function(e){for(var t=e.target;t instanceof ftparser.Element&&t!==this;t=t.parentNode)if(t instanceof ftparser.Component&&t.hasBehavior("wx-label-target"))return;if(this.for){var n=null;this.ownerShadowRoot?(n=this.ownerShadowRoot.getElementById(this.for))&&this._handleNode(n,e):(n=document.getElementById(this.for))&&this._handleNode(n.__wxElement,e)}else this.dfs(this,e)}}});var $l=n(219),Fl=n.n($l);function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function jl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):jl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}var ql=!0,Hl=1,Ul={};FinChatJSBridge.subscribe("conversionCoordinateResponse",(function(e){var t=e.data||{},n=t.uuid,i=t.conversionData,o=t.errMsg;o&&/:fail/.test(o)&&(ql=!1),Ul[n]&&Ul[n](i)}));var Wl={};FinChatJSBridge.subscribe("handlerMapCustomCallout",(function(e){if(!k){var t=e.data,n=t.mapId,i=t.markers,o=t.clear,r=Wl[n];n&&r&&r.updateCustomCallout(i,o)}})),window.ftparser.registerElement({is:"wx-map",behaviors:["wx-base","wx-native"],template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:""},st:{},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width:101%;height:101%;"},a:[],c:[]}]},{t:1,n:"div",cl:{v:"wx-map-slot"},st:{},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]},{t:1,n:"div",id:"calloutcontainer",cl:{v:"wx-map-callout-container"},st:{},a:[],c:[{t:1,n:"slot",v:!0,sn:"callout",a:[],c:[]}]}]}]},options:{renderingMode:"full",multipleSlots:!0},properties:{latitude:{public:!0,observer:"latitudeChanged",observeAssignments:!0,value:39.92},longitude:{public:!0,observer:"longitudeChanged",observeAssignments:!0,value:116.46},scale:{public:!0,observer:"scaleChanged",observeAssignments:!0,value:16},rotate:{type:Number,value:0,public:!0,observer:"rotateChanged",observeAssignments:!0},skew:{type:Number,value:0,public:!0,observer:"skewChanged",observeAssignments:!0},minScale:{value:3,public:!0,observer:"minScaleChanged"},maxScale:{value:20,public:!0,observer:"maxScaleChanged"},markers:{type:Array,value:[],public:!0,observer:"markersChanged"},covers:{type:Array,value:[],public:!0,observer:"coversChanged"},polyline:{type:Array,value:[],public:!0,observer:"linesChanged"},circles:{type:Array,value:[],public:!0,observer:"circlesChanged"},controls:{type:Array,value:[],public:!0,observer:"controlsChanged"},includePoints:{type:Array,value:[],public:!0,observer:"pointsChanged"},showLocation:{type:Boolean,value:!1,public:!0,observer:"showLocationChanged"},polygons:{type:Array,value:[],public:!0,observer:"polygonsChanged"},subkey:{type:String,value:"",public:!0},layerstyle:{type:Number,value:1,public:!0,observer:"layerstyleChanged"},enable3D:{type:Boolean,value:!1,public:!0,observer:"enable3DChanged"},showCompass:{type:Boolean,value:!1,public:!0,observer:"showCompassChanged"},showScale:{type:Boolean,value:!1,public:!0,observer:"showScaleChanged"},enableOverlooking:{type:Boolean,value:!1,public:!0,observer:"enableOverlookingChanged"},enableZoom:{type:Boolean,value:!0,public:!0,observer:"enableZoomChanged"},enableScroll:{type:Boolean,value:!0,public:!0,observer:"enablescrollChanged"},enableRotate:{type:Boolean,value:!1,public:!0,observer:"enableRotateChanged"},enableSatellite:{type:Boolean,value:!1,public:!0,observer:"enableSatelliteChanged"},enableTraffic:{type:Boolean,value:!1,public:!0,observer:"enableTrafficChanged"},enablePoi:{type:Boolean,value:!0,public:!0,observer:"enablePoiChanged"},enableBuilding:{type:Boolean,value:!0,public:!0,observer:"enableBuildingChanged"},setting:{type:Object,value:{},public:!0,observer:"settingChanged"},map:{value:"auto",public:!0},hidden:{type:Boolean,value:!1,public:!0}},listeners:{tap:"_mapTap"},created:function(){this._calloutMap={}},attached:function(){this.attachCb()},detached:function(){document.removeEventListener("pageReRender",this._pageReRenderCallback),ftparser.removeListenerFromElement(document,"onMapTask",this.onMapTaskId),FinChatJSBridge.publish("mapRemove",{id:this.id||"",mapId:this._mapId,webviewId:window.__webviewId__}),this.removeNativeMap(),this.observer&&this.observer.disconnect(),Wl[this._mapId]=null},methods:{attachCb:function(){var e=this;this.observerCallout(),this.childNodes.forEach((function(e){"callout"===e.slot&&(e.$$.style="position:absolute;top:0px;left:0;")})),this.$.container.$$.setAttribute("nativeid",this._nativeId),this._cid=this._nativeId,this._mapId=this._nativeId,this._latitude=this.latitude,this._longitude=this.longitude,this._scale=this.scale,this._skew=this.skew,this._rotate=this.rotate,this._lastCustomCallout=[],this.mapArgs=this.getMapArgs(),this.retry=0,this.onMapTaskId=ftparser.addListenerToElement(document,"onMapTask",(function(t){String(t.detail.mapId)===String(e._mapId)&&e.onMapTask(t.detail)})),this._pageReRenderCallback=this._pageReRenderCallback.bind(this),document.addEventListener("pageReRender",this._pageReRenderCallback),Kn((function(){e.insertNativeMap()})),Wl[this._mapId]=this},_mapTap:function(){return!1},_updatePosition:function(){this.updateNativeMap()},observerCallout:function(){var e=this,t=this.$.calloutcontainer.$$;(this._calloutobserver=new MutationObserver((function(t){e.updateCustomCallout(void 0,!0)}))).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},updateCustomCallout:Fl()((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._attached)return[];var n={},i={},o=e&&e.length,a=t||!o;function s(e,t){var n=[],i=t instanceof ftparser.Component,o=i&&t.__component__,a="slot"===t.is,c=i&&t.hasBehavior("wx-button")&&t.native,l=i&&t.hasBehavior("wx-cover-view"),u=i&&t.hasBehavior("wx-cover-image");n=o||a||c?t.__slotChildren||[]:t.childNodes||[],(l||u)&&(e.child=[],e.data=Vl(Vl({},t._args),{},{type:t.viewName,parentId:t._parentId})),e.child=[],n.map((function(e){var t={};return s(t,e),t})).forEach((function(t){var n;t.data?e.child.push(t):t.child&&t.child.length>0&&(n=e.child).push.apply(n,r()(t.child))}))}o?e.forEach((function(e){i[e.id]=e})):this.markers.forEach((function(e){i[e.id]=e})),function e(t){var o,r=t.childNodes,a=function(e,t){var n=void 0!==ai.a&&e[ci.a]||e["@@iterator"];if(!n){if(A()(e)||(n=function(e,t){if(e){if("string"==typeof e)return Dl(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?Tn()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(void 0===r?[]:r);try{for(a.s();!(o=a.n()).done;){var c=o.value,l=c.$$;if(l&&l.hasAttribute&&l.hasAttribute("marker-id")&&l.hasAttribute("view-id")){var u=l.getAttribute("marker-id");u&&(k||i[_()(u,10)])&&(n[u]={},s(n[u],c),n[u].data.parentId=null)}else e(c)}}catch(t){a.e(t)}finally{a.f()}}(this);var c=[],l={};k?c=E()(n).map((function(e){return Vl({markerId:_()(e,10)},n[e])})):(this._lastCustomCallout.forEach((function(e){l[e.markerId]=e})),E()(n).forEach((function(e){var t=_()(e,10),o=Vl(Vl({markerId:t},n[e]),{},{markerData:Vl({},i[t])});l[t]?o.type="update":o.type="add",c.push(o),delete l[t]})),a&&E()(l).forEach((function(e){c.push({markerId:e,type:"remove"})}))),this._lastCustomCallout=a?c:this._lastCustomCallout.concat(c),FinChatJSBridge.invoke("updateNativeMapMarkers",{cid:this._cid,mapId:this._mapId,customCallout:c},(function(e){}))}),100,{leading:!0,trailing:!0}),findCustomCallout:function(){var e=this,t=this.$.calloutcontainer.$$.querySelectorAll("wx-cover-view[marker-id]");this._calloutMap={},t.forEach((function(t){var n=t.getAttribute("view-id"),i=_()(t.getAttribute("marker-id"),10);n&&i&&(e._calloutMap[i]=n)}))},findParentCustomCallout:function(e){var t=e.tagName.toLowerCase();if("wx-map"===t)return null;if("wx-cover-view"===t&&e.hasAttribute("marker-id")){var n=e.getAttribute("view-id"),i=e.getAttribute("marker-id");return i&&n?{viewId:n,markerId:i}:null}return this.findParentCustomCallout(e.parentElement)},insertNativeMap:function(){var e=this,t=this.getMapArgs();this.getConversionCoordinate(t,"applet",(function(n){var i=Vl({id:e.id,cid:e._cid,mapId:e._mapId},n||t);if(k&&Ii().map){var o=document.createElement("map");if(e.$.inner.$$.style.display="none",e.$.container.$$.append(o),o.setAttribute("data",ce()(i)),o.setAttribute("map",e.map),o.setAttribute(J("mapId"),e._mapId),o.getBoundingClientRect(),Ii().mapController){var r=document.createElement("map-controller");r.setAttribute(J("mapId"),e._mapId),e.$.container.$$.append(r)}FinChatJSBridge.on("onTongcengWidgetReady_"+e._mapId,(function(t){e.findCoverView(e._mapId,{isRoot:!1}),e._attached=!0,FinChatJSBridge.publish("mapInsert",{id:e.id||"",mapId:e._mapId,cid:e._cid,webviewId:window.__webviewId__,windowPath:window.__path__}),e.updateNativeMap()}))}else e.insertNativeView("insertNativeMap",i,(function(t){e.findCoverView(e._mapId,{isRoot:!1}),e._attached=!0,FinChatJSBridge.publish("mapInsert",{id:e.id||"",mapId:e._mapId,cid:e._cid,webviewId:window.__webviewId__,windowPath:window.__path__}),e.updateNativeMap()}))}))},updateNativeMap:function(){var e=this;if(this._attached&&!this._isWaitingUpdate){var t=this.getMapArgs(),n=this.argsDiff(this.mapArgs,t);n&&(this.mapArgs=t,("latitude"in n||"longitude"in n)&&(n.latitude=this.mapArgs.latitude,n.longitude=this.mapArgs.longitude),this.getConversionCoordinate(n,"applet",(function(t){FinChatJSBridge.invoke("updateNativeMap",Vl({cid:e._cid,mapId:e._mapId},t||n),(function(t){n.markers&&T&&e.updateCustomCallout()}))})))}},argsDiff:function(e,t){var n={},i=!1;for(var o in t)["[object Object]","[object Array]"].indexOf(Object.prototype.toString.call(t[o]))>-1?ce()(t[o])!==ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!==t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},removeNativeMap:function(){FinChatJSBridge.invoke("removeNativeMap",{cid:this._cid,mapId:this._mapId},(function(){}))},translateIncopath:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return e&&e.iconPath&&(e.iconPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!/(https?|file|wdfile|hyfile):/i.test(e)&&!/^\s*data:image/.test(e))if("/"===e.substring(0,1))e=e.startsWith("//")?"https:"+e:e.substr(1);else if(e.startsWith("./")){var t=window.__path__.split("/").slice(0,-1);e="/".concat(t.join("/")).concat(t.length?"/":"").concat(e.slice(2))}else if(e.startsWith("../")){var n=e.match(/(\.\.\/)/g)||[],i=n.length?window.__path__.split("/").slice(0,-(n.length+1)):window.__path__.split("/");e="/".concat(i.join("/")).concat(i.length?"/":"").concat(e.replace(/\.\.\//g,""))}return e}(e.iconPath)),e}))},translateColor:function(e){e&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){e[t]&&(e[t]=Y(e[t],!O))}))},getMapArgs:function(e){var t={style:this._getBox(),hide:this.hidden,latitude:isNaN(this._latitude)?0:+this._latitude,longitude:isNaN(this._longitude)?0:+this._longitude,rotate:this._rotate,skew:this._skew,scale:isNaN(this._scale)?isNaN(this.minScale)?3:+this.minScale:+this._scale,minScale:isNaN(this.minScale)?3:+this.minScale,maxScale:isNaN(this.maxScale)?20:+this.maxScale,markers:this.translateIncopath(this.markers),covers:this.covers,polyline:this.polyline,circles:this.circles,controls:this.translateIncopath(this.controls),includePoints:this.includePoints,showLocation:this.showLocation,polygons:this.polygons,subkey:this.subkey,layerstyle:this.layerstyle,enable3D:this.enable3D,showCompass:this.showCompass,showScale:this.showScale,enableOverlooking:this.enableOverlooking,enableZoom:this.enableZoom,enableScroll:this.enableScroll,enableRotate:this.enableRotate,enableSatellite:this.enableSatellite,enableTraffic:this.enableTraffic,enablePoi:this.enablePoi,enableBuilding:this.enableBuilding,setting:this.setting,map:this.map};return"Object"!==F(t.setting)&&(t.setting={}),t},_getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),r=Dt()(t.fontWeight);isNaN(r)?r=t.fontWeight:r<500?r="normal":r>=500&&(r="bold");var a=t.backgroundColor?t.backgroundColor:"rgba(0, 0, 0, 0)";return{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0],backgroundColor:Y(a),borderColor:Y(t.borderColor),marginBottom:this.cursorSpacing||Dt()(t.marginBottom)||0,borderTopLeftRadius:Dt()(t.borderTopLeftRadius.replace("px",""))||0,borderTopRightRadius:Dt()(t.borderTopRightRadius.replace("px",""))||0,borderBottomLeftRadius:Dt()(t.borderBottomLeftRadius.replace("px",""))||0,borderBottomRightRadius:Dt()(t.borderBottomRightRadius.replace("px",""))||0}},onMapTask:function(e){var t=this,n=e.detail||{},i=e.eventName,o={};if(["regionchange"].indexOf(i)>-1){n.type=e.type,n.causedBy=e.causedBy,o.extraFields={type:e.type,causedBy:e.causedBy},"begin"===n.type&&(n=o.extraFields);var r=function(e,n){void 0===n||isNaN(n)||(t["_"+e]=t.mapArgs[e]=Number(n))};["skew","scale","rotate"].forEach((function(e){var t=n[e];r(e,t)})),["latitude","longitude"].forEach((function(e){var t=n.centerLocation&&n.centerLocation[e];r(e,t)}))}delete n.mapId,delete n.eventName,this.getConversionCoordinate(n,"app",(function(e){e&&(n=e),t.triggerEvent(i,Vl({},n),o)}))},getConversionCoordinate:function(e,t,n){var i=this;return s()(l.a.mark((function o(){var r,a;return l.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(ql&&e.latitude&&e.longitude){o.next=3;break}return n(),o.abrupt("return");case 3:return r="".concat(i._nativeId,"-").concat(Hl++),FinChatJSBridge.publish("conversionCoordinate",{uuid:r,data:e,__source__:t,webviewId:window.__webviewId__}),o.next=7,new d.a((function(e){Ul[r]=e}));case 7:a=o.sent,delete Ul[r],n(a);case 10:case"end":return o.stop()}}),o)})))()},latitudeChanged:function(){var e=this;isNaN(this.latitude)?console.error("latitude 类型错误"):(this._latitude=this.latitude,this._timer&&clearTimeout(this._timer),this._isWaitingUpdate&&"latitude"!==this._isWaitingUpdate?(this._isWaitingUpdate=null,this.updateNativeMap()):(this._isWaitingUpdate="latitude",this._timer=setTimeout((function(){e._isWaitingUpdate=null,e.updateNativeMap()}),200)))},longitudeChanged:function(){var e=this;isNaN(this.longitude)?console.error("longitude 类型错误"):(this._longitude=this.longitude,this._timer&&clearTimeout(this._timer),this._isWaitingUpdate&&"longitude"!==this._isWaitingUpdate?(this._isWaitingUpdate=null,this.updateNativeMap()):(this._isWaitingUpdate="longitude",this._timer=setTimeout((function(){e._isWaitingUpdate=null,e.updateNativeMap()}),200)))},scaleChanged:function(){isNaN(this.scale)?console.error("scale 类型错误"):(this._scale=this.scale,this.updateNativeMap())},rotateChanged:function(){this._rotate=this.rotate,this.updateNativeMap()},skewChanged:function(){this._skew=this.skew,this.updateNativeMap()},minScaleChanged:function(){isNaN(this.minScale)?console.error("minScale 类型错误"):this.updateNativeMap()},maxScaleChanged:function(){isNaN(this.maxScale)?console.error("maxScale 类型错误"):this.updateNativeMap()},markersChanged:function(){var e=this;this.markers.forEach((function(t){t&&(["callout","customCallout","label","anchor"].forEach((function(e){var n=t[e];void 0!==n&&(null===n||"object"!==Ce()(n)||n instanceof Array)&&(t[e]={})})),e.translateColor(t.callout,["color","borderColor","bgColor"]),e.translateColor(t.label,["color","borderColor","bgColor"]))})),this.updateNativeMap()},coversChanged:function(){this.updateNativeMap()},linesChanged:function(){var e=this;this.polyline.forEach((function(t){t&&(t.colorList=(t.colorList||[]).map((function(e){return e?Y(e,!O):"#000000"})),0===t.colorList.length&&delete t.colorList,e.translateColor(t,["color","borderColor"]),e.translateColor(t.textStyle,["textColor","strokeColor"]))})),this.updateNativeMap()},circlesChanged:function(){var e=this;this.circles.forEach((function(t){e.translateColor(t,["color","fillColor"])})),this.updateNativeMap()},controlsChanged:function(){this.updateNativeMap()},pointsChanged:function(){this.updateNativeMap()},showLocationChanged:function(){this.updateNativeMap()},polygonsChanged:function(){var e=this;this.polygons.forEach((function(t){e.translateColor(t,["fillColor","strokeColor"])})),this.updateNativeMap()},layerstyleChanged:function(){this.updateNativeMap()},enable3DChanged:function(){this.updateNativeMap()},showCompassChanged:function(){this.updateNativeMap()},showScaleChanged:function(){this.updateNativeMap()},enableOverlookingChanged:function(){this.updateNativeMap()},enableZoomChanged:function(){this.updateNativeMap()},enablescrollChanged:function(){this.updateNativeMap()},enableRotateChanged:function(){this.updateNativeMap()},enableSatelliteChanged:function(){this.updateNativeMap()},enableTrafficChanged:function(){this.updateNativeMap()},enablePoiChanged:function(){this.updateNativeMap()},enableBuildingChanged:function(){this.updateNativeMap()},settingChanged:function(){this.updateNativeMap()}}});var zl=n(313),Gl=n.n(zl),Yl=["forwordEventStatus"],Kl=(window.ftparser.registerElement({is:"wx-navigator",behaviors:["wx-base","wx-hover"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{url:{type:String,public:!0},delta:{type:Number,public:!0,value:1},redirect:{type:Boolean,value:!1,public:!0},target:{type:String,value:"self",public:!0},openType:{type:String,value:"navigate",public:!0},hoverClass:{type:String,value:"",public:!0,observer:"_hoverClassChange"},hover:{type:Boolean,value:!0},hoverStayTime:{type:Number,value:600,public:!0},appId:{type:String,value:"",public:!0},path:{type:String,value:"",public:!0},shortLink:{type:String,value:"",public:!0},extraData:{type:Object,value:"",public:!0},version:{type:String,value:"release",public:!0},scene:{type:Number,value:1037,public:!0},sceneNote:{type:String,value:"",public:!0}},listeners:{tap:"navigateTo"},created:function(){this._defaultHoverClass="navigator-hover"},attached:function(){this._lock=!1,this.$$.setAttribute("role","navigation")},methods:{error:function(e){console.error(e),this.triggerEvent("fail",e),this.triggerEvent("complete",e)},navigateInMiniPrograms:function(){var e=this,t=v()();FinChatJSBridge.subscribe("navigateCallback_".concat(t),(function(t){var n=t.forwordEventStatus,i=Gl()(t,Yl);e.triggerEvent(n,i)}));var n="navigateCallback_".concat(t),i={appId:this.appId,path:this.path,shortLink:this.shortLink,extraData:this.extraData,envVersion:this.version,forwordEvent:n};switch(this.openType){case"navigate":return 7===__wxConfig.appType&&(i.scene=this.scene,i.sceneNote=this.sceneNote),wx.navigateToMiniProgram(i);case"exit":return wx.exitMiniProgram({forwordEvent:n});case"navigateBack":return wx.navigateBackMiniProgram({forwordEvent:n,extraData:this.extraData});default:this.error("<navigator/> using invalid openType ".concat(this.openType," with miniProgram target"))}},navigateTo:function(e){var t=this;if("miniProgram"===this.target){if("navigate"===this.openType&&!this.appId&&!this.shortLink)return void this.error("<navigator/> should have app-id or short-link attribute when using navigate with miniProgram target")}else if("navigateBack"!==this.openType&&!this.url)return void this.error("<navigator/> should have url attribute when using navigateTo, redirectTo or switchTab");if(!this._lock)if(this._lock=!0,setTimeout((function(){t._lock=!1}),1e3),"miniProgram"!==this.target){var n=window.__route__,i={success:function(e){return t.triggerEvent("success",e)},fail:function(e){return t.triggerEvent("fail",e)},cancel:function(e){return t.triggerEvent("cancel",e)},complete:function(e){return t.triggerEvent("complete",e)}};if(this.redirect)wx.redirectTo({url:this.url,_relativePath:n},i);else switch(this.openType){case"navigate":case"navigateTo":return wx.navigateTo({url:this.url,_relatedInfo:e._relatedInfo,_relativePath:n},i);case"redirect":case"redirectTo":return wx.redirectTo({url:this.url,_relativePath:n},i);case"switchTab":return wx.switchTab({url:this.url,_relativePath:n},i);case"navigateBack":return wx.navigateBack({delta:this.delta},i);case"reLaunch":return wx.reLaunch({url:this.url,_relativePath:n},i);default:this.error("<navigator/> with invalid openType ".concat(this.openType))}}else this.navigateInMiniPrograms()}}}),n(70)),Xl=n.n(Kl),Zl=n(56),Jl=n.n(Zl),Ql=n(60),eu=n.n(Ql),tu=n(314),nu=n.n(tu),iu=n(315),ou=n.n(iu),ru=n(161);var au=function(e){wt()(i,e);var t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(i);function i(e,t){var o;if(oe()(this,i),o=n.call(this),e.firstElementChild){o.el=e,o.touchAction("none"),o.itemHeight=e.firstElementChild.clientHeight,e.parentNode.querySelector(".wx-picker-mask2"),o.events=eu()(e.parentNode.querySelector(".wx-picker-mask2"),Rt()(o)),I&&o.events.bind("mousewheel","wheel"),o.events.bind("touchstart","start"),o.events.bind("touchmove","move"),o.events.bind("touchend","end"),o.docEvents=eu()(document,Rt()(o)),o.docEvents.bind("touchend","end"),o.maxY=3*o.itemHeight,o.minY=(4-e.children.length)*o.itemHeight;var r=3-(t||0);o.translate(r*o.itemHeight)}return o}return ae()(i,[{key:"current",value:function(){return String(3-Math.floor(this.y/this.itemHeight))}},{key:"currentValue",value:function(){var e=this.current();if(this.el&&this.el.children)return this.el.children[e].getAttribute("data-value")}},{key:"unbind",value:function(){this.el&&(this.events.unbind(),this.docEvents.unbind())}},{key:"start",value:function(e){this.tween&&this.tween.stop(),e.cancelable&&e.preventDefault();var t=this.getTouch(e);this.down={sy:this.y,x:t.clientX,y:t.clientY,at:v()()}}},{key:"wheel",value:function(e){var t=this;if(e.cancelable&&e.preventDefault(),!this.itemHeight){var n=document.querySelector(".wx-picker-item");this.itemHeight=n&&n.offsetHeight||34}var i=this.itemHeight*(e.wheelDelta>0?.3:-.3),o=this.y+i;this.translate(o),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){t.down={},t.end({})}),200)}},{key:"move",value:function(e){if(this.down&&!this.tween){e.cancelable&&e.preventDefault();var t=this.getTouch(e).clientY,n=this.down,i=t-n.y,o=n.sy+i;this.translate(o)}}},{key:"end",value:(t=s()(l.a.mark((function e(t){var n,i;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.down){e.next=2;break}return e.abrupt("return");case 2:return this.down=null,t.cancelable&&t.preventDefault(),n=Math.round(this.y/this.itemHeight),e.next=7,this.select(n);case 7:i=3-n,this.emit("end",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"select",value:function(e){var t=e*this.itemHeight;return this.scrollTo(t,200,"inQuad")}},{key:"scrollToValue",value:function(e){var t=3-e;this.select(t)}},{key:"scrollTo",value:function(e,t,n){if(this.tween&&this.tween.stop(),!(t>0&&e!==this.y))return this.direction=0,void this.translate(e);this.direction=e>this.y?-1:1,n=n||"out-circ";var i=this.tween=nu()({y:this.y}).ease(n).to({y:e}).duration(t),o=this;i.update((function(e){o.translate(e.y)}));var r=new d.a((function(e){i.on("end",(function(){e(),o.tween=null,o.animating=!1,a=function(){}}))}));function a(){ou()(a),i.update()}return a(),this.animating=!0,r}},{key:"getTouch",value:function(e){var t=e;return e.changedTouches&&e.changedTouches.length>0&&(t=e.changedTouches[0]),t}},{key:"translate",value:function(e){var t=this.el.style;isNaN(e)||(e=Math.min(e,this.maxY),e=Math.max(e,this.minY),this.y=e,t[ru.transform]="translate3d(0, ".concat(e,"px, 0)"))}},{key:"touchAction",value:function(e){var t=this.el.style;ru.touchAction&&(t[ru.touchAction]=e)}}]),i}(Xl.a),su=n(81),cu=n.n(su);var lu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;oe()(this,n),(i=t.call(this)).opts=e,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i));var o=I?"click":"touchend";return i.events.bind("".concat(o," .cancel"),"cancel"),i.events.bind("".concat(o," .wx-picker-mask"),"cancel"),i.events.bind("".concat(o," .confirm"),"confirm"),i}return ae()(n,[{key:"show",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>')),document.ontouchmove=function(e){e.preventDefault()};var e=this.opts.array.map((function(e){return{text:e,value:e}})),t="android"===wd.getPlatform(),n=this.opts.headerText||"",i=Jl()(cu()({group:[e],isAndroid:t,headerText:n,confirmColor:this.opts.confirmColor,cancelColor:this.opts.cancelColor}));this.root.appendChild(i);var o=this.root.querySelector(".wx-picker-content");this.scrollable=new au(o,this.opts.current)}},{key:"hide",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.events.unbind(),this.scrollable.unbind(),document.ontouchmove=function(e){return!0},document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){var t=this.scrollable.current();e.preventDefault(),this.hide(),this.emit("select",t)}}]),n}(Xl.a),uu=n(316),du=n.n(uu);function hu(e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i<=e;i++)n.push(i<10?"0".concat(i).concat(t):"".concat(i).concat(t));return n}var pu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;oe()(this,n),(i=t.call(this)).opts=e,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i));var o=I?"click":"touchend";return i.events.bind("".concat(o," .cancel"),"cancel"),i.events.bind("".concat(o," .wx-picker-mask"),"cancel"),i.events.bind("".concat(o," .confirm"),"confirm"),i}return ae()(n,[{key:"show",value:function(){var e=this;"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),document.ontouchmove=function(e){e.preventDefault()},this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>'));var t=[];t.push(hu(23,0).map((function(e){return{text:e,value:e}}))),t.push(hu(59,0).map((function(e){return{text:e,value:e}})));var n="android"===wd.getPlatform(),i=this.opts.headerText||"",o=Jl()(cu()({group:t,isAndroid:n,headerText:i}));this.root.appendChild(o);var r=Tn()(this.root.querySelectorAll(".wx-picker-content")),a=this.getCurrent(),s=[];this.scrollables=r.map((function(t,n){var i=new au(t,a[n]);return s[n]=i.y,i.on("end",(function(){Kn((function(){e.checkValue(i)?s[n]=i.y:setTimeout((function(){var e=Math.round(s[n]/i.itemHeight);i.select(e)}),100)}))})),i}))}},{key:"checkValue",value:function(e){var t=this.opts.range;if(t.start||t.end){var n=this.scrollables.map((function(e){return e.currentValue()})),i=t.start?new Date("".concat("1990/1/1"," ").concat(t.start)).getTime():0,o=t.end?new Date("".concat("1990/1/1"," ").concat(t.end)).getTime():du.a,r=new Date("".concat("1990/1/1"," ").concat(n.join(":"))).getTime();return r>=i&&r<=o}return!0}},{key:"getCurrent",value:function(){var e=this.opts.current.split(":");return[Number(e[0]),Number(e[1])]}},{key:"hide",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),document.ontouchmove=function(e){return!0},this.events.unbind(),this.scrollables.forEach((function(e){e.unbind()})),document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){e.preventDefault();var t=this.scrollables.map((function(e){return e.currentValue()}));this.hide(),this.emit("select",t.join(":"))}}]),n}(Xl.a);Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};var fu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;oe()(this,n),(i=t.call(this)).opts=e,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i));var o=I?"click":"touchend";i.events.bind("".concat(o," .cancel"),"cancel"),i.events.bind("".concat(o," .wx-picker-mask"),"cancel"),i.events.bind("".concat(o," .confirm"),"confirm");var r=e.range;return r.start&&""!==r.start?(i.sy=Number(r.start.split("-")[0]),i.ey=r.end?Number(r.end.split("-")[0]):i.sy+5):(i.sy=1900,i.ey=2100),i}return ae()(n,[{key:"show",value:function(){var e=this;/android|devtools/.test(wd.getPlatform())&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),document.ontouchmove=function(e){e.preventDefault()},this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>'));var t=[];t.push(hu(this.ey,this.sy).map((function(e){return{text:"".concat(e,"年"),value:e}}))),"year"!==this.opts.fields&&t.push(hu(12,1).map((function(e){return{text:"".concat(e,"月"),value:e}}))),"month"!==this.opts.fields&&"year"!==this.opts.fields&&t.push(hu(31,1).map((function(e){return{text:"".concat(e,"日"),value:e}})));var n="android"===wd.getPlatform(),i=this.opts.headerText||"",o=Jl()(cu()({group:t,isAndroid:n,headerText:i}));this.root.appendChild(o);var r=Tn()(this.root.querySelectorAll(".wx-picker-content")),a=this.getCurrent();this.scrollables=r.map((function(t,n){var i=new au(t,a[n]);return i.on("end",(function(){e.checkValue(n)})),i}))}},{key:"checkValue",value:function(e){var t=this,n=this.opts,i=n.mode,o=n.range;if("date"===i){var r=this.scrollables.map((function(e){return e.currentValue()}));if(r.length>2){var a=new Date(r[0],r[1],0).getDate();a<_()(r[2],10)&&(r[2]=a,this.scrollables[2].select(3-(a-1)))}var s=new Date(r.join("-")),c=!1;if(o.start){var l=new Date(o.start);!isNaN(l)&&s<l&&(o.start.split("-").forEach((function(e,n){0!==n&&t.scrollables[n].select(3-(_()(e,10)-1))})),c=!0)}if(o.end&&!c){var u=new Date(o.end);!isNaN(u)&&s>u&&o.end.split("-").forEach((function(e,n){0!==n&&t.scrollables[n].select(3-(_()(e,10)-1))}))}}}},{key:"getCurrent",value:function(){var e=this.opts.current;e&&""!==e||(e=(new Date).Format("yyyy-MM-dd")),"string"==typeof e&&(e=e.split("-").map((function(e){return(e=Number(e))<10?"0"+e:e})).join("-"));var t=new Date(e).Format("yyyy-MM-dd").split("-"),n=[Number(t[0])-this.sy,Number(t[1])-1,Number(t[2])-1];return"year"===this.opts.fields?n.slice(0,1):"month"===this.opts.fields?n.slice(0,2):n}},{key:"hide",value:function(){/android|devtools/.test(wd.getPlatform())&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.events.unbind(),document.ontouchmove=function(e){return!0},this.scrollables.forEach((function(e){e.unbind()})),document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){e.preventDefault();var t=this.scrollables.map((function(e){return e.currentValue()}));this.hide(),this.emit("select",t.join("-"))}}]),n}(Xl.a);var vu,mu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i,o=e.range,r=e.rangeKey,a=e.current,s=e.headerText;return oe()(this,n),(i=t.call(this))._range=o,i._rangeKey=r,i._current=a,i._curEl=null,i.headerText=s,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i)),i.events.bind("touchend .cancel","cancel"),i.events.bind("touchend .wx-picker-mask","cancel"),i.events.bind("touchend .confirm","confirm"),i}return ae()(n,[{key:"updateRange",value:function(e){this._range=e,this._updateColumn()}},{key:"updateCurrentValue",value:function(e){var t=this;this._current=e,this._current.forEach((function(e,n){t.scrollables[n].scrollToValue(e)}))}},{key:"show",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>')),this._updateColumn()}},{key:"_updateColumn",value:function(){var e=this;try{console.log("range",this._range,this._rangeKey);var t=this._getGroup(this._range,this._rangeKey);console.log("group",t,this.platForm);var n="android"===wd.getPlatform(),i=this.headerText,o=Jl()(cu()({group:t,isAndroid:n,headerText:i}));this._curEl?this.root.replaceChild(o,this._curEl):this.root.appendChild(o),this._curEl=o;var r=Tn()(this.root.querySelectorAll(".wx-picker-content")),a=this._current;this.scrollables=r.map((function(t,n){var i=new au(t,a[n]);return i.on("end",(function(t){var i=n;e._current[n]=t;for(var o=n+1;e._current[o];)e._current[o]=0,o++;e.emit("columnChange",{column:i,value:t})})),i}))}catch(e){console.log(e)}}},{key:"_getGroup",value:function(e,t){var n=[];for(var i in e){var o=[];for(var r in e[i]){var a="object"!==Ce()(e[i][r])?e[i][r]:e[i][r][t];o.push({text:a,value:a})}n.push(o)}return n}},{key:"checkValue",value:function(e,t){}},{key:"getCurrent",value:function(){return this._current}},{key:"hide",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.events.unbind(),this.scrollables.forEach((function(e){e.unbind()})),document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){e.preventDefault();var t=this.scrollables.map((function(e){var t=e.current();return isNaN(Number(t))?t:Number(t)}));this.hide(),this.emit("select",t)}}]),n}(Xl.a),_u=n(99),gu=n.n(_u),bu="custom_event_",yu={is:"wx-picker",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-data-component"],properties:{range:{type:Array,value:[],public:!0,observer:"_rangeChange"},value:{public:!0,observer:"_valueChange"},mode:{type:String,value:"selector",public:!0},fields:{type:String,value:"day",public:!0},start:{type:String,value:"",public:!0},end:{type:String,value:"",public:!0},disabled:{type:Boolean,value:!1,public:!0},rangeKey:{type:String,value:"",public:!0},customItem:{type:String,value:"",public:!0},confirmColor:{type:String,value:"",public:!0},cancelColor:{type:String,value:"",public:!0},headerText:{type:String,value:"",public:!0}},listeners:{"wrapper.tap":"showPickerView"},attached:function(){this.$$.setAttribute("aria-haspopup","true")},methods:{_rangeChange:function(e){this._picker&&this._picker.updateRange(e)},_valueChange:function(e){if(this._picker)if("region"===this.mode){var t=this._getRegionRangeAndIndex(e).index;this._picker.updateCurrentValue(t)}else this._picker.updateCurrentValue(e)},resetFormData:function(){"mutiSelector"===this.mode||"region"===this.mode?this.value=[]:"selector"===this.mode?this.value=-1:this.value=""},getFormData:function(e){this.__pickerShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},showPickerView:function(){var e=this;setTimeout((function(){"date"===e.mode||"time"===e.mode?e.showDatePickerView():"multiSelector"===e.mode?e.showMutiSelector():"region"===e.mode?e.showRegionPicker():e.showSelector()}),100)},getCustomerStyle:function(){var e=this.$.wrapper.getBoundingClientRect();return{width:e.width,height:e.height,left:e.left+window.scrollX,top:e.top+window.scrollY}},showSelector:function(e){var t=this;if(!this.disabled){var n=_()(this.value);(isNaN(n)||n>=this.range.length)&&(n=0);var i=[];if(this.rangeKey)for(var o=0;o<this.range.length;o++){var r=this.range[o];i.push(r[this.rangeKey]+"")}else for(var a=0;a<this.range.length;a++)i.push(this.range[a]+"");var s={array:i,current:n,style:this.getCustomerStyle(),confirmColor:this.confirmColor,cancelColor:this.cancelColor,headerText:this.headerText};FinChatJSBridge.subscribe("showPickerView",(function(e){/:ok/.test(e.errMsg)&&(t.value=e.index,t.triggerEvent("change",{value:t.value})),t.resetPickerState(),t.formGetDataCallback()})),FinChatJSBridge.subscribe("hidePickerView",(function(e){console.log("handle picker hide"),t.triggerEvent("cancel"),t.resetPickerState(),t.formGetDataCallback()}));var c=new lu(s);c.show(),c.on("select",(function(e){FinChatJSBridge.subscribeHandler(bu+"showPickerView",{errMsg:"showPickerView:ok",index:e})})),c.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"hidePickerView")})),this.__pickerShow=!0}},showMutiSelector:function(){var e=this;if(!this.disabled){var t={range:this.range,rangeKey:this.rangeKey,mode:this.mode,current:this.value,headerText:this.headerText,style:this.getCustomerStyle()};FinChatJSBridge.subscribe("showPickerView",(function(t){/:ok/.test(t.errMsg)&&(e.value=t.value,e.triggerEvent("change",{value:e.value})),e.resetPickerState(),e.formGetDataCallback()})),FinChatJSBridge.subscribe("hidePickerView",(function(t){console.log("handle picker hide"),e.triggerEvent("cancel"),e.resetPickerState(),e.formGetDataCallback()})),this._picker=new mu(t),this._picker.show(),this._picker.on("select",(function(e){FinChatJSBridge.subscribeHandler(bu+"showPickerView",{errMsg:"showPickerView:ok",value:e})})),this._picker.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"hidePickerView")})),this._picker.on("columnChange",(function(t){var n=t.column,i=t.value;e.triggerEvent("columnchange",{value:i,column:n})})),this.__pickerShow=!0}},showDatePickerView:function(){var e=this;if(!this.disabled){var t,n={range:{start:this.start,end:this.end},mode:this.mode,current:this.value,fields:this.fields,style:this.getCustomerStyle(),headerText:this.headerText};if(FinChatJSBridge.subscribe("showDatePickerView",(function(t){/:ok/.test(t.errMsg)&&(e.value=t.value,e.triggerEvent("change",{value:e.value})),e.resetPickerState(),e.formGetDataCallback()})),FinChatJSBridge.subscribe("hideDatePickerView",(function(t){console.log("handle picker hide"),e.triggerEvent("cancel"),e.resetPickerState(),e.formGetDataCallback()})),"time"===n.mode){if(!n.current){var i=new Date;n.current=i.toTimeString().substr(0,5)}t=new pu(n)}else"date"===n.mode&&(t=new fu(n));t.show(),t.on("select",(function(e){FinChatJSBridge.subscribeHandler(bu+"showDatePickerView",{errMsg:"showDatePickerView:ok",value:e})})),t.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"showDatePickerView",{errMsg:"showDatePickerView:cancel"})})),this.__pickerShow=!0}},showRegionPicker:function(){var e=this,t=this;if(!this.disabled){var n=this._getRegionRangeAndIndex(this.value),i=n.range,o=n.index;this._regionIndex=o;var r={range:i,rangeKey:"name",mode:this.mode,current:o,fields:this.fields,style:this.getCustomerStyle(),headerText:this.headerText};FinChatJSBridge.subscribe("showPickerView",(function(e){/:ok/.test(e.errMsg)&&(t.value=e.value,t.triggerEvent("change",{value:t.value,code:e.code,postcode:e.postcode})),t.resetPickerState(),t.formGetDataCallback()})),FinChatJSBridge.subscribe("hidePickerView",(function(e){t.triggerEvent("cancel"),t.resetPickerState(),t.formGetDataCallback()})),this._picker=new mu(r),this._picker.show(),this._picker.on("select",(function(t){var n=e._getRegionRangeByIndex(e._regionIndex),i=n.value,o=n.code,r=n.postcode;FinChatJSBridge.subscribeHandler(bu+"showPickerView",{errMsg:"showPickerView:ok",value:i,code:o,postcode:r})})),this._picker.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"hidePickerView")})),this._picker.on("columnChange",(function(t){var n=t.column,i=t.value;switch(e._regionIndex[n]=i,n){case 0:e._regionIndex=[i,0,0];break;case 1:e._regionIndex=[e._regionIndex[0],i,0]}var o=e._getRegionRangeByIndex(e._regionIndex).range;e._picker.updateRange(o)})),this.__pickerShow=!0}},_getRegionRangeAndIndex:function(e){var t=this._fotmatRegionList(gu.a.provinces),n=t.findIndex((function(t){return t.name===(e&&e[0])})),i=t[n=Math.max(0,n)],o=this._fotmatRegionList(gu.a.regionMap[i.id]),r=o.findIndex((function(t){return t.name===(e&&e[1])})),a=o[r=Math.max(0,r)],s=this._fotmatRegionList(gu.a.regionMap[a.id]),c=s.findIndex((function(t){return t.name===(e&&e[2])}));return{range:[t,o,s],index:[n,r,c=Math.max(0,c)]}},_getRegionRangeByIndex:function(e){var t=this._fotmatRegionList(gu.a.provinces),n=t[e[0]],i=this._fotmatRegionList(gu.a.regionMap[n.id]),o=i[e[1]],r=this._fotmatRegionList(gu.a.regionMap[o.id]),a=r[e[2]];return{range:[t,i,r],value:[n.name,o.name,a.name],code:[n.id,o.id,a.id].filter((function(e){return!!e||-1!==e})),postcode:a.postcode}},_fotmatRegionList:function(e){var t=e||[];return this.customItem?[{id:-1,name:this.customItem}].concat(t):t},resetPickerState:function(){this.__pickerShow=!1}}},wu=n(114),xu=n.n(wu),Au={is:"wx-picker",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-data-component","wx-reload","wx-native"],properties:{range:{type:Array,value:[],public:!0,observer:"rangeChanged"},value:{value:"",public:!0,observer:"valueChanged"},mode:{type:String,value:"selector",public:!0},fields:{type:String,value:"day",public:!0},start:{type:String,value:"",public:!0},end:{type:String,value:"",public:!0},disabled:{type:Boolean,value:!1,public:!0},rangeKey:{type:String,value:"",public:!0},customItem:{type:String,value:"",public:!0},headerText:{type:String,value:"",public:!0},level:{type:String,value:"",public:!0}},listeners:{"wrapper.tap":"showPickerView"},saved:function(e){var t={};this.saveCompVar(t,["value"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},attached:function(){if(this.$$.setAttribute("aria-haspopup","true"),"date"===this.mode){var e=new Date;this._defaultDateValue=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()}},methods:{resetFormData:function(){"selector"===this.mode?this.value=-1:this.value="","number"==typeof this._groupID&&(this._groupID=null)},getFormData:function(e){this.__pickerShow?this.__formCallback=e:"function"==typeof e&&("region"===this.mode?this.__region_data_ready?e(this._getRegionByValue(this.value)):"object"==Ce()(this.value)&&this.value instanceof Array?e(this.value):e([]):e(this.value))},autofillSetValue:function(e){if("date"===this.mode){var t=[],n=e[0],i=e[1],o=e[2];if(!n)return;t.push(n),i&&(t.push(("00"+i).substr(-2)),o&&t.push(("00"+o).substr(-2))),this.value=t.join("-"),this.value,xu()("result")}else if("time"===this.mode)this.value=e,this.value,xu()("result");else if("selector"===this.mode)for(var r=0;r<this.range.length;r++){var a=this.range[r];if(this.rangeKey){if(a[this.rangeKey]==e){this.value=r,xu()("result");break}}else if(this.range[r]==e){this.value=r,xu()("result");break}}else"region"===this.mode&&(this.value=e,xu()("result"))},autofillGetValue:function(){return"region"===this.mode?this.__region_data_ready?this._getRegionByValue(this.value):"object"==Ce()(this.value)&&this.value instanceof Array?this.value:[]:"selector"===this.mode?this.rangeKey?this.range[this.value]&&this.range[this.value][this.rangeKey]:this.range[this.value]:this.value},formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},showPickerView:function(){"date"===this.mode||"time"===this.mode?this.showDatePickerView():"multiSelector"===this.mode?this.showMultiPickerView():"region"===this.mode?(A()(this.value)||(this.value=[]),this.showRegionView()):"selector"===this.mode&&this.showSelector()},isValidLevel:function(){return["province","city","region","sub-district"].includes(this.level)},getCustomerStyle:function(){var e=this.$.wrapper.getBoundingClientRect();return{width:e.width,height:e.height,left:e.left+window.scrollX,top:e.top+window.scrollY}},showAddressPickerView:function(){var e=this;this.disabled||(FinChatJSBridge.invoke("showAddressPickerView",{mode:this.level,current:this.value||[]},(function(t){if(/:ok/.test(t.errMsg)){for(var n=t.value.code.length,i=0;i<n&&!(i>=3);i++){var o=t.value.code[i].substr(0,6);t.value.code[i]=o}e.value=t.value.value,e.triggerEvent("change",t.value)}else e.triggerEvent("cancel",{});e.resetPickerState(),e.formGetDataCallback()})),this.__pickerShow=!0)},showSelector:function(){var e=this;if(!this.disabled){var t=_()(this.value,10);(isNaN(t)||t>=this.range.length)&&(t=0);var n=[],i=0;if(this.rangeKey)for(;i<this.range.length;i++){var o=this.range[i];n.push(o[this.rangeKey]+"")}else for(;i<this.range.length;i++)n.push(this.range[i]+"");FinChatJSBridge.invoke("showPickerView",{array:n,current:t,style:this.getCustomerStyle(),headerText:this.headerText},(function(t){/:ok/.test(t.errMsg)?void 0!==t.index&&(e.value=t.index.toString(),e.triggerEvent("change",{value:e.value})):/:(fail |fail:)?cancel/.test(t.errMsg)?e.triggerEvent("cancel",{}):e.triggerEvent("error",{errMsg:t.errMsg}),e.resetPickerState(),e.formGetDataCallback()})),this.__pickerShow=!0}},showDatePickerView:function(){var e=this;if(!this.disabled){var t={range:{start:this.start,end:this.end},mode:this.mode,current:this.value||this._defaultDateValue,fields:this.fields,style:this.getCustomerStyle(),headerText:this.headerText};FinChatJSBridge.invoke("showDatePickerView",t,(function(t){/:ok/.test(t.errMsg)?(e.value=t.value,e.triggerEvent("change",{value:e.value})):(e.triggerEvent("cancel",{}),e.resetPickerState(),e.formGetDataCallback())})),this.__pickerShow=!0}},showMultiPickerView:function(e,t,n){var i=this;if(!this.disabled){var o=[],r=[],a=0,s=0;if(void 0!==e)this.value=o=e.current,this.range=r=e.array;else for(a=0;a<this.range.length;a++){this.value instanceof Array&&this.value.length?o.push(_()(this.value[a],10)):isNaN(o[a])||o[a]>=this.range[a].length?o[a]=0:o.push(0);var c=[];if(this.rangeKey)for(s=0;s<this.range[a].length;s++){var l=this.range[a][s];c.push(l[this.rangeKey]+"")}else for(s=0;s<this.range[a].length;s++)c.push(this.range[a][s]+"");r.push(c)}this.value||(this.value=o),FinChatJSBridge.invoke("showMultiPickerView",{array:r,current:o,headerText:this.headerText,mode:this.mode,level:this.level||""},(function(e){if(/:ok/.test(e.errMsg)){if(e.current){i.value=e.current;var t={value:"function"==typeof n?n(i.value):i.value};if("region"===i.mode){var o=i._getRegionCodeByValue(i.value);t.code=o.code,t.postcode=o.postcode}"province"===i.level?(t.value=t.value.splice(0,1),t.code=t.code.splice(0,1)):"city"===i.level&&(t.value=t.value.splice(0,2),t.code=t.code.splice(0,2)),i.triggerEvent("change",t)}}else/:(fail |fail:)?cancel/.test(e.errMsg)?i.triggerEvent("cancel",{}):i.triggerEvent("error",{errMsg:e.errMsg});i.resetPickerState(),i.formGetDataCallback()})),this.__pickerShow=!0,this.__multi_picker_watching=!0,FinChatJSBridge.on("onMultiPickerViewChange",(function(e){!e||!i.__pickerShow||i.value&&i.value[e.column]===e.current||(i.value[e.column]=e.current,"function"==typeof t?t(e):i.triggerEvent("columnchange",{column:e.column,value:e.current}))}))}},showRegionView:function(){var e=this;if(!this.disabled){var t=function(t){var n=[e.value[0],e.value[1],e.value[2]];switch(n[t.column]=t.current,t.column){case 0:n[1]=0;break;case 1:n[2]=0;var i=e._getCurrentData(n);e.value=i.current,e.range=i.array;break;case 2:e.value=n}};this.__region_data_ready?this.showMultiPickerView(this._getCurrentData(this.value),t,this._getRegionByValue.bind(this)):FinChatJSBridge.invoke("getRegionData",{},(function(n){/:ok/.test(n.errMsg)&&(e._getRegionData(n.data),e.showMultiPickerView(e._getCurrentData(e.value),t,e._getRegionByValue.bind(e)))}))}},resetPickerState:function(){this.__pickerShow=!1},valueChanged:function(e,t){var n=this;this.__pickerShow&&this.__multi_picker_watching&&function i(o,r){if(!(o>=r)&&r){var a=0;if(A()(n.range[o])&&A()(e)&&A()(t)&&e[o]!==t[o]){var s=e[o]>=n.range[o].length?0:e[o],c=[];if(n.rangeKey)for(;a<n.range[o].length;a++){var l=n.range[o][a];c.push(l[n.rangeKey]+"")}else for(;a<n.range[o].length;a++)c.push(n.range[o][a]+"");FinChatJSBridge.invoke("updateMultiPickerView",{column:o,array:c,current:s},(function(e){/:ok/.test(e.errMsg)&&(n.value[o]=s,i(o+1,r))}))}else i(o+1,r)}}(0,e.length)},rangeChanged:function(e,t){var n=this;this.__pickerShow&&this.__multi_picker_watching&&function i(o,r){if(!(o>=r)){var a=0;if(A()(e[o])&&A()(t[o])&&!n._diffArray(e[o],t[o])){var s=n.value[o]>=e[o].length?0:n.value[o],c=[];if(n.rangeKey)for(;a<e[o].length;a++){var l=e[o][a];c.push(l[n.rangeKey]+"")}else for(;a<e[o].length;a++)c.push(e[o][a]+"");FinChatJSBridge.invoke("updateMultiPickerView",{column:o,array:c,current:s},(function(e){/:ok/.test(e.errMsg)&&(n.value[o]=s,i(o+1,r))}))}else i(o+1,r)}}(0,e.length)},_getRegionByValue:function(e){"object"===Ce()(e)&&e instanceof Array||(e=[]);var t=this._getCurrentDataList(e);return[t.province.array[t.province.current],t.city.array[t.city.current],t.district.array[t.district.current]]},_getRegionCodeByValue:function(e){if("object"!=Ce()(e)||!(e instanceof Array))return[];var t=""!==this.customItem,n=t?-1:0;if(t&&!e[0])return{code:[]};var i=this.__region_data_provinces[e[0]+n];if(t&&!e[1])return{code:[i.code+"0000"]};var o=this.__region_data_cities[i.code][e[1]+n];if(t&&!e[2])return{code:[i.code+"0000",o.code+"00"]};var r=this.__region_data_districts_other_info[o.code][e[2]+n];return{code:[i.code+"0000",o.code+"00",r.code],postcode:r.postcode}},_getRegionData:function(e){var t=this;this.__region_data_provinces=[],this.__region_data_cities={},this.__region_data_districts={},this.__region_data_districts_other_info={},this.__region_code_cities={},this.__region_code_districts={},this.__region_code_provinces=[],e.split("\n").forEach((function(e){var n=e.trim().split(/\s+/);if(3===n.length){var i=n[0],o=n[1],r=i.substr(0,2),a=i.substr(0,4);t.__region_data_cities[r]||(t.__region_data_cities[r]=[],t.__region_code_cities[r]=[]),t.__region_data_districts[a]||(t.__region_data_districts[a]=[],t.__region_code_districts[a]=[]),t.__region_data_districts_other_info[a]||(t.__region_data_districts_other_info[a]=[]),/0000$/.test(i)?(t.__region_data_provinces.push({code:r,name:o}),t.__region_code_provinces.push("".concat(r,"0000"))):/00$/.test(i)?(t.__region_data_cities[r].push({code:a,name:o}),t.__region_code_cities[r].push("".concat(a,"00"))):(t.__region_data_districts[a].push(o),t.__region_data_districts_other_info[a].push({postcode:n[2],code:i}),t.__region_code_districts[a].push(i))}})),this.__region_data_ready=!0},_getCurrentData:function(e){var t=this._getCurrentDataList(e);return{array:[t.province.array,t.city.array,t.district.array],current:[t.province.current,t.city.current,t.district.current]}},_getCurrentDataList:function(e){var t,n,i=e.length;return{province:t=i>=1?this._getCurrentDataEach(e[0],this.__region_data_provinces,this.__region_code_provinces):this._getCurrentDataEach(""!==this.customItem?this.customItem:this.__region_data_provinces[0].name,this.__region_data_provinces,this.__region_code_provinces),city:n=i>=2?this._getCurrentDataEach(e[1],-1===t.code?[]:this.__region_data_cities[t.code]||[],this.__region_code_cities[t.code]||[]):this._getCurrentDataEach(-1===t.code?this.customItem:this.__region_data_cities[t.code]?this.__region_data_cities[t.code][0].name:"",-1===t.code?[]:this.__region_data_cities[t.code]||[],this.__region_code_cities[t.code]||[]),district:i>=3?this._getCurrentDataEach(e[2],-1===n.code?[]:this.__region_data_districts[n.code]||[],this.__region_code_districts[n.code]||[]):this._getCurrentDataEach(-1===n.code?this.customItem:this.__region_data_districts[n.code]?this.__region_data_districts[n.code][0]:"",-1===n.code?[]:this.__region_data_districts[n.code]||[],this.__region_code_districts[n.code]||[])}},_getCurrentDataEach:function(e,t,n){var i=t.length&&"object"==Ce()(t[0]),o={current:0,array:(""!==this.customItem?[this.customItem]:[]).concat(i?t.map((function(e){return e.name})):t)};if("number"==typeof e)o.current=e;else{var r=o.array.indexOf(e);r<=0&&(r=n.indexOf(e),""!==this.customItem&&r>=0&&r++),o.current=r}return o.current<0&&(o.current=0),i?""!==this.customItem?0===o.current?o.code=-1:o.code=t[o.current-1].code:o.code=t[o.current].code:t.length||(o.code=-1),o},_diffArray:function(e,t){if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]&&t[n]&&"object"===Ce()(e[n])&&"object"===Ce()(t[n])){if(e[n][this.rangeKey]!==t[n][this.rangeKey])return!1}else if(Ce()(e[n])!==Ce()(t[n])||e[n]!==t[n])return!1;return!0}}};function Cu(e,t){var n,i=E()(e);return Yt.a&&(n=Yt()(e),t&&(n=n.filter((function(t){return Xt()(e,t).enumerable}))),i.push.apply(i,n)),i}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){var i,o,r;i=e,r=n[o=t],o in i?en()(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r})):Jt.a?de()(e,Jt()(n)):Cu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function Su(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Su(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}vu=O?yu:Ei?Au:yu,window.ftparser.registerElement(vu),window.ftparser.registerElement({is:"wx-picker-view",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",cl:{v:"wrapper"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-class-prefix","wx-data-component"],properties:{value:{type:Array,value:[],public:!0,observer:"_valueChanged"},indicatorStyle:{type:String,value:"",public:!0},indicatorClass:{type:String,value:"",public:!0},maskStyle:{type:String,value:"",public:!0},maskClass:{type:String,value:"",public:!0}},relations:{"wx-picker-view-column":{type:"child",linked:function(){this._initColumns()},unlinked:function(){this._initColumns()}}},listeners:{"this.onPickerColumnChanged":"_columnValueChanged","this.onPickerColumnScrollStart":"_pickScrollStart","this.onPickerColumnScrollEnd":"_pickScrollEnd"},attached:function(){this._initColumns(),this.__updateColumns=this._updateColumns.bind(this),document.addEventListener("pageReRender",this.__updateColumns)},detached:function(){document.removeEventListener("pageReRender",this.__updateColumns)},methods:{_initColumns:function(){var e=this,t=this._columns=[];!function e(n){for(var i=0;i<n.childNodes.length;i++){var o=n.childNodes[i];o instanceof ftparser.Element&&(o instanceof ftparser.Component&&o.hasBehavior("wx-picker-view-column")?t.push(o):e(o))}}(this);var n=A()(this.value)?this.value:[];t.forEach((function(t,i){t._setStyle(e.indicatorStyle,e.maskStyle),t._setClass(e.indicatorClass,e.maskClass),t._setHeight(e._height),t._setCurrent(n[i]||0),t._init()}))},_updateColumns:function(){var e=this;if(this._columns&&0!==this._columns.length){var t=!1;this._columns.forEach((function(e){e._height!==e.$$.offsetHeight&&(t=!0)})),!t&&this._height===this.$$.offsetHeight||0===this.$$.offsetHeight?this._height=this.$$.offsetHeight:(this._height=this.$$.offsetHeight,this._columns.forEach((function(t){t.hidden||(t._setHeight(e._height),t._update())})))}},_columnValueChanged:function(){var e=this._columns.map((function(e){return e._getCurrent()}));this.triggerEvent("change",{value:e})},_valueChanged:function(){var e=arguments.length>0?arguments[0]:[];(this._columns||[]).forEach((function(t,n){t._setCurrent(e[n]||0),t._update()}))},_pickScrollStart:function(){this.triggerEvent("pickstart",{})},_pickScrollEnd:function(){this.triggerEvent("pickend",{})}}}),window.ftparser.registerElement({is:"wx-picker-view-column",template:function(e,t,n){return[{t:1,n:"div",id:"main",cl:{v:"wx-picker__group"},a:[],c:[{t:1,n:"div",id:"mask",cl:{v:"wx-picker__mask"},a:[],c:[]},{t:1,n:"div",id:"indicator",cl:{v:"wx-picker__indicator"},a:[],c:[]},{t:1,n:"div",id:"content",cl:{v:"wx-picker__content"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},behaviors:["wx-base","wx-class-prefix","wx-scroller","wx-touchtrack"],listeners:{"this.tap":"_handleTap"},relations:{"wx-picker-view":{type:"parent"}},created:function(){this.touchtrack(this.$.main,"_handleTrack",!0),this.__pageRerender=this._pageRerender.bind(this)},attached:function(){var e=this;this.$$.setAttribute("aria-label","上下滚动进行选择"),this._subtreeModified=!1,this._observer=ftparser.Observer.create((function(){e._subtreeModified=!0})),this._observer.observe(this,{childList:!0,subtree:!0}),document.addEventListener("pageReRender",this.__pageRerender)},detached:function(){document.removeEventListener("pageReRender",this.__pageRerender)},methods:{_pageRerender:function(){if(this._subtreeModified){for(var e=this.$.indicator.offsetHeight,t=this.$.content.children,n=0,i=t.length;n<i;n++){var o=t.item(n);o.style.height=e+"px",o.style.overflow="hidden"}this._itemHeight=e,this._handlers.update(),this._subtreeModified=!1}},_handleTrack:function(e){if(this._handlers)switch(e.detail.state){case"start":this._handleTouchStart(e);break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e)}},_handleTap:function(e){if(e.target!==e.currentTarget&&!this._handlers.isScrolling()){var t=e.touches&&e.touches[0]&&e.touches[0].clientY,n=("number"==typeof t?t:e.detail.y-document.body.scrollTop)-this.$$.getBoundingClientRect().top-this._height/2,i=this._itemHeight/2;if(!(Math.abs(n)<=i)){var o=Math.ceil((Math.abs(n)-i)/this._itemHeight),r=n<0?-o:o;this._current+=r,this._handlers._snapping=!0,this._handlers.scrollTo(this._current*this._itemHeight),this.triggerEvent("onPickerColumnChanged",{idx:this._current},{bubbles:!0}),this._isUpdatingValue&&(this.triggerEvent("onPickerColumnScrollEnd",{idx:this._current},{bubbles:!0}),this._isUpdatingValue=!1)}}},_getCurrent:function(){return this._current||0},_setCurrent:function(e){var t=Math.max(this.$.content.children.length-1,0);this._current=Math.min(e,t)},_setStyle:function(e,t){e&&this.$.indicator.setAttribute("style",e),t&&this.$.mask.setAttribute("style",t)},_setClass:function(e,t){e=this.convertClassWithPrefix(e),t=this.convertClassWithPrefix(t),this.$.indicator.setAttribute("class","wx-picker__indicator ".concat(e)),this.$.mask.setAttribute("class","wx-picker__mask ".concat(t))},_setHeight:function(e){for(var t=this.$.indicator.offsetHeight,n=this.$.content.children,i=0,o=n.length;i<o;i++){var r=n.item(i);r.style.height=t+"px",r.style.overflow="hidden"}this._itemHeight=t,this.$.main.style.height=e+"px";var a=(e-t)/2;this.$.mask.style.backgroundSize="100% "+a+"px",this.$.indicator.style.top=a+"px",this.$.content.style.padding=a+"px 0",this._height=this.$$.offsetHeight},_init:function(){var e=this;this._isUpdatingValue=!1,this.initScroller(this.$.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this._itemHeight,onTouchStart:function(){e._isUpdatingValue||e._handlers.isScrolling()||e.triggerEvent("onPickerColumnScrollStart",{},{bubbles:!0}),e._isUpdatingValue=!0},onSnap:function(t){e._current!==t&&(e._current=t,e.triggerEvent("onPickerColumnChanged",{idx:t},{bubbles:!0}))},onTouchEnd:function(){e._isUpdatingValue&&(e.triggerEvent("onPickerColumnScrollEnd",{},{bubbles:!0}),e._isUpdatingValue=!1)}})},_update:function(){this._handlers.update(this._current*this._itemHeight,void 0,this._itemHeight)},moveUint:function(e){var t=this.$.content.children.length-1,n=e<0?this._current-1:this._current+1;(n=n<0?0:n>t?t:n)!==this._current&&(this.triggerEvent("onPickerColumnScrollStart",{},{bubbles:!0}),this._current=n,this._update(),this.triggerEvent("onPickerColumnChanged",{idx:n},{bubbles:!0}),this.triggerEvent("onPickerColumnScrollEnd",{},{bubbles:!0}))}}}),window.ftparser.registerElement({is:"wx-progress",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-progress-bar"},a:[{n:"border-radius",o:"s",e:function(e,t,n){return e.borderRadius+"px"},l:null,b:[[null,"borderRadius"]]},{n:"background-color",o:"s",e:function(e,t,n){return e.backgroundColor},l:[null],b:[[null,"backgroundColor"]]},{n:"height",o:"s",e:function(e,t,n){return e.strokeWidth+"px"},l:null,b:[[null,"strokeWidth"]]}],c:[{t:1,n:"div",cl:{v:"wx-progress-inner-bar"},a:[{n:"width",o:"s",e:function(e,t,n){return e.curPercent+"%"},l:null,b:[[null,"curPercent"]]},{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getActiveColor",[e.color,e.activeColor])},l:null,b:[[null,"_getActiveColor"],[null,"color"],[null,"activeColor"]]}],c:[]}]},{t:1,n:"p",cl:{v:"wx-progress-info"},a:[{n:"parse-text-content",v:""},{n:"hidden",o:"$",e:function(e,t,n){return!e.showInfo},l:null,b:[[null,"showInfo"]]},{n:"font-size",o:"s",e:function(e,t,n){return e.fontSize+"px"},l:null,b:[[null,"fontSize"]]}],c:[{c:"",e:function(e,t,n){return e.curPercent+"%"},b:[[null,"curPercent"]],t:3}]}]},behaviors:["wx-base","wx-size-normalizer"],properties:{percent:{type:Number,observer:"percentChange",public:!0},curPercent:{type:Number,observer:"curPercentChange"},showInfo:{type:Boolean,value:!1,public:!0},strokeWidth:{type:String,value:6,public:!0,filter:"normalizeSize"},active:{type:Boolean,value:!1,public:!0,observer:"activeAnimation"},activeColor:{type:String,value:"#09BB07",public:!0},activeMode:{type:String,value:"backwards",public:!0},backgroundColor:{type:String,value:"#EBEBEB",public:!0},color:{type:String,value:"#09BB07",public:!0},borderRadius:{type:String,value:0,public:!0,filter:"normalizeSize"},fontSize:{type:String,value:16,public:!0,filter:"normalizeSize"},duration:{type:Number,value:30,public:!0}},created:function(){this._lastPercent=this.percent||0},attached:function(){this.$$.setAttribute("role","progressbar"),this.$$.setAttribute("aria-valuenow",this.percent),this.$$.setAttribute("aria-valuemin",0),this.$$.setAttribute("aria-valuemax",100)},detached:function(){this.__timerId&&clearInterval(this.__timerId)},methods:{_getActiveColor:function(e,t){return"#09BB07"!==t?t:"#09BB07"!==e?e:"#09BB07"},percentChange:function(e,t){e>100&&(this.percent=100),e<0&&(this.percent=0),this.__timerId&&clearInterval(this.__timerId),this._lastPercent=t||0,this.activeAnimation(this.active)},activeAnimation:function(e){if(!isNaN(this.percent))if(e){var t=function(){if(this.percent<=this.curPercent+1)return this.curPercent=this.percent,clearInterval(this.__timerId),void this.triggerEvent("activeend",{curPercent:this.curPercent});++this.curPercent};this.curPercent="forwards"===this.activeMode?this._lastPercent:0,this.__timerId=setInterval(t.bind(this),this.duration),t.call(this)}else this.curPercent=this.percent},curPercentChange:function(e){this.$$.setAttribute("aria-valuenow",e)}}}),window.ftparser.registerElement({is:"wx-radio",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-radio-wrapper"},a:[],c:[{t:1,n:"div",id:"input",cl:{v:"wx-radio-input"},a:[{n:"wx-radio-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-radio-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getColor",[e.checked,e.disabled,e.color])},l:null,b:[[null,"_getColor"],[null,"checked"],[null,"disabled"],[null,"color"]]},{n:"border-color",o:"s",e:function(e,i,o){return t(o,n,"_getColor",[e.checked,e.disabled,e.color])},l:null,b:[[null,"_getColor"],[null,"checked"],[null,"disabled"],[null,"color"]]}],c:[]},{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-label-target","wx-disabled","wx-item","wx-label-aria","wx-reload"],properties:{color:{type:String,value:"#09BB07",public:!0}},listeners:{tap:"_inputTap"},attached:function(){this._setAria("radio")},methods:{_getColor:function(e,t,n){return!e||t?"":n},_inputTap:function(){if(this.disabled)return!1;this.checked||(this.checked=!0,this.changedByTap())},handleLabelTap:function(){this._inputTap()}}}),window.ftparser.registerElement({is:"wx-radio-group",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-data-component","wx-group"],properties:{value:{type:String}},created:function(){this._selectedItem=null},attached:function(){this.$$.setAttribute("role","radiogroup")},methods:{addItem:function(e){e.checked&&(this._selectedItem&&(this._selectedItem.checked=!1),this.value=e.value,this._selectedItem=e)},removeItem:function(e){this._selectedItem===e&&(this.value="",this._selectedItem=null)},renameItem:function(e,t){this._selectedItem===e&&(this.value=t)},changed:function(e){this._selectedItem===e?this.removeItem(e):this.addItem(e)}}});var Tu=0,Iu=(window.ftparser.registerElement({is:"wx-scroll-view",template:function(e,t,n){return[{t:1,n:"div",id:"main",cl:{v:"wx-scroll-view"},st:{v:"overflow-x: hidden; overflow-y: hidden;"},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"position:absolute;top:0;bottom:0;left:0;right:0;width:101%;height:101%;z-index: -1;pointer-events:none;"},a:[],c:[]},{t:1,n:"div",id:"container",cl:{v:"wx--refresher--container--private"},st:{v:"width: 100%; height: 100%; position: absolute;"},a:[{n:"background",o:"s",e:function(e,t,n){return e.refresherBackground},l:[null],b:[[null,"refresherBackground"]]}],c:[{t:1,n:"div",id:"refresher",st:{v:"width:100%; position: absolute; bottom: 0; left: 0; "},a:[],c:[{t:1,n:"slot",v:!0,sn:"refresher",a:[],c:[]}]},{t:1,n:"div",id:"refresherDot",st:{v:"position: absolute; bottom: 0; left: 0; width: 100%; height: 75px;"},a:[],c:[{t:1,n:"div",st:{v:"width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center;"},a:[{n:"max-height",o:"s",e:function(e,t,n){return e._maxHeight+"px"},l:null,b:[[null,"_maxHeight"]]}],c:[{t:1,n:"div",id:"dot1",cl:{v:"wx-refresher-default-dot"},a:[],c:[]},{t:1,n:"div",id:"dot2",cl:{v:"wx-refresher-default-dot"},a:[],c:[]},{t:1,n:"div",id:"dot3",cl:{v:"wx-refresher-default-dot"},a:[],c:[]}]}]}]},{t:1,n:"div",id:"content",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},options:{renderingMode:"full",multipleSlots:!0},behaviors:["wx-base","wx-touchtrack","wx-positioning-container"],properties:{scrollX:{type:Boolean,value:!1,public:!0,observer:"_scrollXChanged"},scrollY:{type:Boolean,value:!1,public:!0,observer:"_scrollYChanged"},upperThreshold:{type:Number,value:50,public:!0},lowerThreshold:{type:Number,value:50,public:!0},scrollTop:{type:Number,filter:"_scrollTopChanged",public:!0},scrollLeft:{type:String,filter:"_scrollLeftChanged",public:!0},scrollIntoView:{type:String,filter:"_scrollIntoViewChanged",public:!0},refresherEnabled:{type:Boolean,public:!0,value:!1,observer:"refresherEnabledChanged"},refresherThreshold:{type:Number,public:!0,value:45,observer:"thresholdChanged"},refresherBackground:{type:String,value:"#fff",public:!0},refresherDefaultStyle:{type:String,public:!0,value:"black",filter:function(e){return"none"===e||"white"===e||"black"===e?e:""},observer:"refresherDefaultStyleChanged"},refresherTriggered:{type:Boolean,public:!0,value:!1,observer:"triggeredChanged"},_maxHeight:{type:Number,public:!1,value:53},enableFlex:{type:Boolean,public:!0,value:!1,observer:"enableFlexChanged"},scrollWithAnimation:{type:Boolean,public:!0,value:!1},bounces:{type:Boolean,public:!0,value:!0,observer:"bouncesChanged"},enhanced:{type:Boolean,public:!0,value:!1,observer:"enhancedChanged"},showScrollbar:{type:Boolean,public:!0,value:!0,observer:"showScrollbarChanged"}},created:function(){this._scrollEnabled=!0,this._lastScrollTop=this.scrollTop||0,this._lastScrollLeft=this.scrollLeft||0,this.touchtrack(this.$.main,"_handleTrack"),this.onPulling=this.onPulling.bind(this),this.onRefresh=this.onRefresh.bind(this),this.onRestore=this.onRestore.bind(this),this.onAbort=this.onAbort.bind(this),this._uuid=Tu++,this._cid="sv_"+this._uuid},attached:function(){var e=this,t=this;t.hasps=t.findParentScrollview(),this._lastScrollToUpperTime=0,this._lastScrollToLowerTime=0,this._scrollTopChanged(this.scrollTop),this._scrollLeftChanged(this.scrollLeft),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=pl()((function(e){e.preventDefault(),e.stopPropagation(),t._handleScroll(e)}),10,{leading:!0,trailing:!0}),T&&Ii().scrollView||(this.$.main.$$.classList.add("hide-scrollbar"),this.$.inner.$$.style.display="none"),this._operateScrollViewCount=0,this._operateScrollView=pl()((function(n){Mn.invoke("operateScrollView",{enhanced:t.enhanced,bounces:t.bounces,showsVerticalScrollIndicator:e.showScrollbar,showsHorizontalScrollIndicator:e.showScrollbar,cid:t._cid,webviewIds:[window.__webviewId__]},(function(e){/fail/.test(e.errMsg)&&t._operateScrollViewCount<10&&setTimeout((function(){t._operateScrollViewCount+=1,t._operateScrollView()}),200)}))}),100,{leading:!1,trailing:!0}),this.enhanced&&this._operateScrollView(),this.__handleTouchMove=function(e){var n=e.touches[0].pageY,i=t.$.main.$$;t.__touchStartY<n?i.scrollTop>0&&e.stopPropagation():i.scrollHeight>i.offsetHeight+i.scrollTop&&!t._refreshing&&e.stopPropagation()},this.__handleTouchStart=function(e){var n=t.$.main.$$;n.scrollHeight>n.offsetHeight&&(t.__touchStartY=e.touches[0].pageY),t._touchScrollTop=t.$.main.$$.scrollTop,t._touchScrollLeft=t.$.main.$$.scrollLeft,t._touchScrollBottom=t._touchScrollTop+n.offsetHeight===n.scrollHeight,t._touchScrollRight=t._touchScrollLeft+n.offsetWidth===n.scrollWidth},this.__handleTouchEnd=function(){},this.__pageReRenderCallback=this._pageReRenderCallback.bind(this),this.$.main.$$.addEventListener("touchstart",this.__handleTouchStart),this.$.main.$$.addEventListener("touchmove",this.__handleTouchMove,{passive:!1}),this.$.main.$$.addEventListener("touchend",this.__handleTouchEnd),this.$.main.$$.addEventListener("scroll",this.__handleScroll),document.addEventListener("pageReRender",this.__pageReRenderCallback),this.$.main.$$.style.overflowX=this.scrollX?"auto":"hidden",this.$.main.$$.style.overflowY=this.scrollY?"auto":"hidden";var n=window.navigator.userAgent.toLowerCase();if(/(iphone|ipad)/.test(n)){document.getElementById("__scroll_view_hack")&&document.body.removeChild(document.getElementById("__scroll_view_hack"));var i=document.createElement("div");i.setAttribute("style","position: fixed; left: 0; bottom: 0; line-height: 1; font-size: 1px; z-index: 10000; border-radius: 4px; box-shadow: 0 0 8px rgba(0,0,0,.4); width: 1px; height: 1px; overflow: hidden;"),i.innerText=".",i.id="__scroll_view_hack",document.body.appendChild(i)}var o=this.$.content.$$;o&&o.classList&&o.classList.add("wx--refresher--content--private"),this.refresherDefaultStyle&&(this.refresherThreshold=55),this._refresherInst=function(e){var t,n,i,o,r,a,s,c,l,u,h,p,f,v=(e=Ke()({refresherThreshold:60},e)).container,m=e.parentNode,_=e.contentNode,g=e.scrollerNode,b=e.refresherThreshold,y=e.onPulling,w=e.onRefresh,x=e.onRestore,A=e.onAbort,C=m.getBoundingClientRect().height||window.screen.height;function E(e,t,n,i,o){P&&window.cancelAnimationFrame(P);var r=null,a=t<e?-1:1,s=Math.abs(t-e);0!==n&&(P=window.requestAnimationFrame((function t(c){var l,u,d=(c-(r=r||c))/n,h=(l=d>1?1:d,u=1-Math.pow(l-1,2),Math.sqrt(u<0?0:u)),p=Math.floor(e+a*h*s);if(i(p),Math.abs(p-e)>=s)return"function"==typeof o&&o(p),void(P=null);P=window.requestAnimationFrame(t)})))}function S(){E(N,b,300,(function(e){v.style.transform="translateY(".concat(N,"px)"),_.style.transform=N?"translateY(".concat(N,"px)"):"",N=e}))}function k(){return new d.a((function(e){E(N,0,200,(function(e){v.style.transform="translateY(".concat(e,"px)"),_.style.transform=e?"translateY(".concat(e,"px)"):""}),(function(t){N=t,e()}))}))}function T(){t="refreshing",w(N),S()}v&&(v.style.position="absolute",v.style.height=window.screen.height+"px",v.style.top=-1*window.screen.height+"px");var I=!1,N=0,P=null;function O(e,n){null===t||I||("refreshing"!==t?"pulling"===t?(t="aborting",A(N),I=!0,E(N,0,300,(function(e){v.style.transform="translateY(".concat(e,"px)"),_.style.transform=e?"translateY(".concat(e,"px)"):""}),(function(e){N=e,t=null,I=!1,n()}))):"reached"===t&&T():S())}function L(){i=o=a=r=void 0}function R(e){var t=Array.prototype.slice.call(e.changedTouches).filter((function(e){return e.identifier===i}))[0];return t&&(e.distX=Math.abs(t.screenX-r),e.distY=Math.abs(t.screenY-a),e.deltaY=t.screenY-o,o=t.screenY,1)}function M(e){var t;f||(t=e.changedTouches[0],i=t.identifier,r=t.screenX,a=t.screenY,o=t.screenY)}function B(e){f||R(e)&&(l&&!s&&(l(e,L),s=!0),u(e,L))}function $(e){f||R(e)&&h(e,L)}function F(e){R(e)&&p(e,L)}return Eu(Eu({},(c=(n={element:g,onpanmove:function(e,n){var i=e.deltaY;if(!(g.scrollTop>0||I||i<0&&!t||"aborting"===t||"restoring"===t||e.distY<e.distX||e.distY<5)){if(t=t||"pulling",!e.cancelable||"pulling"!==t&&"refreshing"!==t&&"reached"!==t||e.preventDefault(),"refreshing"===t&&i<-10)return t="restoring",x(N),void k().then((function(){t=null,I=!1,n()}));var o,r=(o=Math.min(N/C,1),.52*Math.pow(1-o,2));N+=Math.ceil(i*r),"refreshing"===t||(b<=N&&"reached"!==t||N<b&&"pulling"!==t)&&(t="reached"===t?"pulling":"reached"),P&&window.cancelAnimationFrame(P),"refreshing"!==t&&y(N),v.style.transform=N?"translateY(".concat(N,"px)"):"",_.style.transform=N?"translateY(".concat(N,"px)"):""}},onpanend:O,onpancancel:O}).element,l=n.onpanstart,u=n.onpanmove,h=n.onpanend,p=n.onpancancel,f=!1,c.addEventListener("touchstart",M),u&&c.addEventListener("touchmove",B,{passive:!1}),h&&c.addEventListener("touchend",$,{passive:!1}),p&&c.addEventListener("touchcancel",F,{passive:!1}),{updateLock:function(e){f=e},dispose:function(){c.removeEventListener("touchstart",M),u&&c.removeEventListener("touchmove",B,{passive:!1}),h&&c.removeEventListener("touchend",$,{passive:!1}),p&&c.removeEventListener("touchcancel",F,{passive:!1})}})),{},{updateThreshold:function(e){b=e},triggerOpen:function(){t||(t="pulling",E(0,b,400,(function(e){v.style.transform="translateY(".concat(e,"px)"),_.style.transform=e?"translateY(".concat(e,"px)"):"",y(e)}),(function(e){N=e,I=!1,T()})))},triggerClose:function(){"restoring"!==t&&t&&(t="restoring",x(N),I=!0,k().then((function(){t=null,I=!1})))}})}({parentNode:this.$$,contentNode:o,scrollerNode:this.$.main.$$,container:this.$.container.$$,refresherThreshold:this.refresherThreshold,onPulling:this.onPulling,onRefresh:this.onRefresh,onRestore:this.onRestore,onAbort:this.onAbort}),this._disableRefresher=function(e){t._refresherInst&&t._refresherInst.updateLock(e.detail.disable)},o&&(this._contentNode=o,this._contentNode.addEventListener("disableRefresher",this._disableRefresher)),this.triggerEvent("ready",{ready:!0}),this.refresherEnabled||this._refresherInst.updateLock(!0),this._enablePulldownRefresh=!0,this._checkRefresherStyle(),FinChatJSBridge.subscribe(this.getContextId(),(function(n){if(e.enhanced){var i=n.method,o=n.params,r=void 0===o?{}:o;if("scrollTo"===i){if(!e._scrollEnabled)return;var a=e.$.main.$$,s=r||{},c=s.top,l=s.left,u=s.animated,d=s.duration,h=e.scrollY&&!isNaN(c),p=e.scrollX&&!isNaN(l);h&&p?u?e.scrollBothTo(c,l,d):(a.scrollTop=c,a.scrollLeft=l):h?u?e.scrollTo(c,"y",d):a.scrollTop=c:p&&(u?e.scrollTo(l,"x",d):a.scrollLeft=l)}else if("scrollIntoView"===i){if(!e._scrollEnabled)return;e._scrollIntoView(r.selector)}else if("scrollEnabled"===i){var f=r.enabled;if(e._scrollEnabled===f)return;e._scrollEnabled=f,e._scrollEnabled?(e._scrollXChanged(!0),e._scrollYChanged(!0)):(e._scrollXChanged(!1),e._scrollYChanged(!1))}else"updateProp"===i&&(r.showScrollbar?e.$.main.$$.classList.remove("hide-scrollbar"):e.$.main.$$.classList.add("hide-scrollbar"),e.enhanced&&Mn.invoke("operateScrollView",ku(ku({},r),{},{enhanced:e.enhanced,cid:t._cid,webviewIds:[window.__webviewId__]}),(function(){})))}}))},detached:function(){this.$.main.$$.removeEventListener("scroll",this.__handleScroll),this.$.main.$$.removeEventListener("touchstart",this.__handleTouchStart),this.$.main.$$.removeEventListener("touchmove",this.__handleTouchMove),this.$.main.$$.removeEventListener("touchend",this.__handleTouchEnd),document.removeEventListener("pageReRender",this.__pageReRenderCallback),this._refresherInst&&this._refresherInst.dispose(),this._contentNode&&this._contentNode.removeEventListener("disableRefresher",this._disableRefresher)},methods:{getContextId:function(){return"scrollView-".concat(this._uuid,"-").concat(this.getNodeId())},_checkRefresherStyle:function(){var e=this.$.refresher.$$,t=this.$.refresherDot.$$;if(this.refresherEnabled)switch(this.refresherDefaultStyle){case"none":e.style.display="block",t.style.display="none";break;case"white":e.style.display="none",t.style.display="block",this.$.dot1.$$.classList.add("wx-refresher-default-white"),this.$.dot2.$$.classList.add("wx-refresher-default-white"),this.$.dot3.$$.classList.add("wx-refresher-default-white");break;case"black":e.style.display="none",t.style.display="block",this.$.dot1.$$.classList.remove("wx-refresher-default-white"),this.$.dot2.$$.classList.remove("wx-refresher-default-white"),this.$.dot3.$$.classList.remove("wx-refresher-default-white");break;case"":e.style.display="none",t.style.display="block"}else e.style.display="none",t.style.display="none"},getScrollPosition:function(){var e=this.$.main.$$;return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}},_pageReRenderCallback:function(e){},_getStyle:function(e,t){return"overflow-x: "+(e?"auto":"hidden")+"; overflow-y: "+(t?"auto":"hidden")+";"},_handleTrack:function(e){if("start"===e.detail.state)return this._x=e.detail.x,this._y=e.detail.y,"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),void(this._noBubble=null);"end"===e.detail.state&&(this._noBubble=!1,"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]})),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,this._isScrollingOnBoundary(e)&&(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._isScrollingOnBoundary(e)&&(this._noBubble=!1)),this._x=e.detail.x,this._y=e.detail.y,this._noBubble&&e.stopPropagation()},handleFullscreenIfNeeded:function(e){var t=this,n=this.$.main.$$;e||(this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function e(){t._lastScrollHeight!==n.scrollHeight?t.timer=setTimeout(e,100):n.scrollTop=t._lastScrollTop}),100))},_isScrollingOnBoundary:function(e){if(!this.scrollX&&!this.scrollY)return!1;var t=this.scrollX?e.detail.dx:e.detail.dy,n=e.currentTarget.$$,i=this.scrollX?n.scrollLeft:n.scrollTop,o=this.scrollX?n.scrollWidth-n.clientWidth:n.scrollHeight-n.clientHeight;return t>0&&i<=0||t<0&&i>=o},_handleScroll:function(e){if(!window._isDelayUpdateScrollTop){var t=this.$.main.$$;if(this.triggerEvent("scroll",{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,deltaX:this._lastScrollLeft-t.scrollLeft,deltaY:this._lastScrollTop-t.scrollTop}),this.scrollY){var n=this._lastScrollTop-t.scrollTop>0,i=this._lastScrollTop-t.scrollTop<0;t.scrollTop<=this.upperThreshold&&n&&e.timeStamp-this._lastScrollToUpperTime>200&&(this.triggerEvent("scrolltoupper",{direction:"top"}),this._lastScrollToUpperTime=e.timeStamp),t.scrollTop+t.offsetHeight+this.lowerThreshold>=t.scrollHeight&&i&&e.timeStamp-this._lastScrollToLowerTime>200&&(this.triggerEvent("scrolltolower",{direction:"bottom"}),this._lastScrollToLowerTime=e.timeStamp)}if(this.scrollX){var o=this._lastScrollLeft-t.scrollLeft>0,r=this._lastScrollLeft-t.scrollLeft<0;t.scrollLeft<=this.upperThreshold&&o&&e.timeStamp-this._lastScrollToUpperTime>200&&(this.triggerEvent("scrolltoupper",{direction:"left"}),this._lastScrollToUpperTime=e.timeStamp),t.scrollLeft+t.offsetWidth+this.lowerThreshold>=t.scrollWidth&&r&&e.timeStamp-this._lastScrollToLowerTime>200&&(this.triggerEvent("scrolltolower",{direction:"right"}),this._lastScrollToLowerTime=e.timeStamp)}this._lastScrollTop=t.scrollTop,this._lastScrollHeight=t.scrollHeight,this._lastScrollLeft=t.scrollLeft}},_scrollXChanged:function(e){this.$.main.$$.style.overflowX=e&&this._scrollEnabled?"auto":"hidden"},_scrollYChanged:function(e){this.$.main.$$.style.overflowY=e&&this._scrollEnabled?"auto":"hidden"},_scrollTopChanged:function(e){var t=this.$.main.$$;this.scrollY&&(this.scrollWithAnimation?this.scrollTo(e,"y"):t.scrollTop=e)},_scrollLeftChanged:function(e){3===e.lastIndexOf("rpx")&&(e=e.substr(0,e.length-3)/750*414),this.scrollX&&(this.scrollWithAnimation?this.scrollTo(e,"x"):this.$.main.$$.scrollLeft=e)},_scrollIntoViewChanged:function(e){var t=this;if(e){if(Number(e[0])>=0&&Number(e[0])<=9)return console.group('scroll-into-view="'+e+'" 有误'),console.warn("id属性不能以数字开头"),console.groupEnd();Kn((function(){t._scrollIntoView("#"+e)}))}},_scrollIntoView:function(e){if(this.$.main&&this.$.main.$$){var t=this.querySelector(e);if(t){var n=this.$.main.$$.getBoundingClientRect(),i=t.$$.getBoundingClientRect();if(this.scrollX){var o=i.left-n.left,r=this.$.main.$$.scrollLeft+o;this.scrollWithAnimation?this.scrollTo(r,"x"):this.$.main.$$.scrollLeft=r}if(this.scrollY){var a=i.top-n.top,s=this.$.main.$$.scrollTop+a;this.scrollWithAnimation?this.scrollTo(s,"y"):this.$.main.$$.scrollTop=s}}}},refresherEnabledChanged:function(e){this._refresherInst&&this._refresherInst.updateLock(!e),this._checkRefresherStyle()},refresherDefaultStyleChanged:function(){this._checkRefresherStyle()},thresholdChanged:function(e){if(!this.refresherDefaultStyle&&this._refresherInst)return this._refresherInst.updateThreshold(e),e},triggeredChanged:function(e){this.refresherEnabled&&this._refresherInst&&(e?this._refresherInst.triggerOpen():this._refresherInst.triggerClose())},enableFlexChanged:function(e){e?this.$.main.$$.classList.add("wx-scroll-view-flex"):this.$.main.$$.classList.remove("wx-scroll-view-flex")},onPulling:function(e){if(this.triggerEvent("refresherpulling",{dy:e}),this.refresherTriggered||(this.refresherTriggered=!0),this.refresherDefaultStyle){this.$.dot1.$$.classList.contains("wx-refresher-default-dot-1-fold")&&this.$.dot1.$$.classList.remove("wx-refresher-default-dot-1-fold"),this.$.dot3.$$.classList.contains("wx-refresher-default-dot-3-fold")&&this.$.dot3.$$.classList.remove("wx-refresher-default-dot-3-fold");var t=e<=17?0:(e-15-2)/36,n=e<=this.refresherThreshold?13*t-12:1,i=_()(100*n,10)/100;this.$.dot1.$$.style.transform="translateX(".concat(-i,"px)"),this.$.dot3.$$.style.transform="translateX(".concat(i,"px)")}},onRefresh:function(e){this._refreshing=!0,this.triggerEvent("refresherrefresh",{dy:e}),this.refresherDefaultStyle&&(this.$.dot1.$$.classList.add("wx-refresher-default-dot-1-blink-anim"),this.$.dot2.$$.classList.add("wx-refresher-default-dot-2-blink-anim"),this.$.dot3.$$.classList.add("wx-refresher-default-dot-3-blink-anim"))},onRestore:function(e){this._refreshering=!1,this.triggerEvent("refresherrestore",{dy:e}),this.refresherDefaultStyle&&(this.$.dot1.$$.classList.remove("wx-refresher-default-dot-1-blink-anim"),this.$.dot2.$$.classList.remove("wx-refresher-default-dot-2-blink-anim"),this.$.dot3.$$.classList.remove("wx-refresher-default-dot-3-blink-anim"),this.$.dot1.$$.classList.add("wx-refresher-default-dot-1-fold"),this.$.dot3.$$.classList.add("wx-refresher-default-dot-3-fold"))},onAbort:function(e){this._refreshering=!1,this.triggerEvent("refresherabort",{dy:e}),this.refresherDefaultStyle&&(this.$.dot1.$$.classList.remove("wx-refresher-default-dot-1-blink-anim"),this.$.dot2.$$.classList.remove("wx-refresher-default-dot-2-blink-anim"),this.$.dot3.$$.classList.remove("wx-refresher-default-dot-3-blink-anim"))},findParentScrollview:function(){for(var e,t=this.parentNode;("virtual"===t.is||t.$$&&"BODY"!==t.$$.tagName)&&!e&&!(e="wx-scroll-view"===t.is);)t=t.parentNode||t.__slotParent;return e},bouncesChanged:function(){this._operateScrollView(),T||(this.$.main.style.overscrollBehavior=this.bounces?"initial":"none")},enhancedChanged:function(){var e=this.$.main,t=e&&e.$$.getAttribute("class")||"";e&&e.$$&&(this.enhanced?!/tongceng_fcid_/.test(t)&&e.$$.setAttribute("class","tongceng_fcid_".concat(this._cid," ").concat(t)):(t=t.replace("tongceng_fcid_".concat(this._cid),""),e.$$.setAttribute("class","".concat(t)))),this._operateScrollView()},showScrollbarChanged:function(){this._operateScrollView()},_operateScrollView:function(){},scrollTo:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;isNaN(i)&&(i=300),i<=0&&(i=1);var o=this.$.main.$$;e<0?e=0:"x"===t&&e>o.scrollWidth-o.offsetWidth?e=o.scrollWidth-o.offsetWidth:"y"===t&&e>o.scrollHeight-o.offsetHeight&&(e=o.scrollHeight-o.offsetHeight);var r=0,a="";"x"===t?r=o.scrollLeft-e:"y"===t&&(r=o.scrollTop-e),0!==r&&(this._isTransition=!0,this.$.content.$$.style.transition="transform ".concat(i,"ms ease-out"),this.$.content.$$.style.webkitTransition="-webkit-transform ".concat(i,"ms ease-out"),"x"===t?a="translateX("+r+"px) translateZ(0)":"y"===t&&(a="translateY("+r+"px) translateZ(0)"),this.$.content.$$.removeEventListener("transitionend",this.__transitionEnd),this.$.content.$$.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,e,e,t),this.$.content.$$.addEventListener("transitionend",this.__transitionEnd),this.$.content.$$.addEventListener("webkitTransitionEnd",this.__transitionEnd),this._transitionEndTimer&&(clearTimeout(this._transitionEndTimer),this._transitionEndTimer=setTimeout((function(){n._isTransition=!1,n._transitionEndTimer=null,n.__transitionEnd()}),i+50)),"x"===t||"y"===t&&(o.style.overflowY="hidden"),this.$.content.$$.style.transform=a,this.$.content.$$.style.webkitTransform=a)},scrollBothTo:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;isNaN(i)&&(i=300),i<=0&&(i=1);var o=this.$.main.$$;e=Math.max(0,e),t=Math.max(0,t),e>o.scrollHeight-o.offsetHeight&&(e=o.scrollHeight-o.offsetHeight),t>o.scrollWidth-o.offsetWidth&&(t=o.scrollWidth-o.offsetWidth);var r=o.scrollLeft-t,a=o.scrollTop-e;if(0!==a||0!==r){this._isTransition=!0,this.$.content.$$.style.transition="transform ".concat(i,"ms ease-out"),this.$.content.$$.style.webkitTransition="-webkit-transform ".concat(i,"ms ease-out");var s="translateZ(0)";0!==r&&(s="translateX("+r+"px)"+s),0!==a&&(s="translateY("+a+"px)"+s),this.$.content.$$.removeEventListener("transitionend",this.__transitionEnd),this.$.content.$$.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,e,t,"both"),this.$.content.$$.addEventListener("transitionend",this.__transitionEnd),this.$.content.$$.addEventListener("webkitTransitionEnd",this.__transitionEnd),this._transitionEndTimer&&(clearTimeout(this._transitionEndTimer),this._transitionEndTimer=setTimeout((function(){n._isTransition=!1,n._transitionEndTimer=null,n.__transitionEnd()}),i+50)),o.style.overflowY="hidden",this.$.content.$$.style.transform=s,this.$.content.$$.style.webkitTransform=s}},_transitionEnd:function(e,t,n){this._transitionEndTimer&&(clearTimeout(this._transitionEndTimer),this._transitionEndTimer=null),this.$.content.$$.style.transition="",this.$.content.$$.style.webkitTransition="",this.$.content.$$.style.transform="",this.$.content.$$.style.webkitTransform="";var i=this.$.main.$$;"x"===n?(i.style.overflowX=this.scrollX?"auto":"hidden",i.scrollLeft=t):"y"===n?(i.style.overflowY=this.scrollY?"auto":"hidden",i.scrollTop=e):"both"===n&&(i.style.overflowX=this.scrollX?"auto":"hidden",i.scrollLeft=t,i.style.overflowY=this.scrollY?"auto":"hidden",i.scrollTop=e),this._isTransition=!1,this.$.content.$$.removeEventListener("transitionend",this.__transitionEnd),this.$.content.$$.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=null}}}),function(e){return e%1!=0}),Nu=function(e){var t=Number(e);if(isNaN(e)||!Iu(e))return 0;var n=t.toString();return/\./.test(n)?n.split(".")[1].length:Number(n.split("e-")[1])},Pu=(window.ftparser.registerElement({is:"wx-slider",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-slider-wrapper"},a:[{n:"wx-slider-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]}],c:[{t:1,n:"div",id:"wrapper",cl:{v:"wx-slider-tap-area"},a:[],c:[{t:1,n:"div",cl:{v:"wx-slider-handle-wrapper"},a:[{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getBackgroundColor",[e.color,e.backgroundColor])},l:null,b:[[null,"_getBackgroundColor"],[null,"backgroundColor"],[null,"color"]]}],c:[{t:1,n:"div",id:"handle",cl:{v:"wx-slider-handle"},a:[{n:"left",o:"s",e:function(e,i,o){return t(o,n,"_getValueWidth",[e._filteredValue,e.min,e.max])},l:null,b:[[null,"_getValueWidth"],[null,"_filteredValue"],[null,"min"],[null,"max"]]}],c:[]},{t:1,n:"div",cl:{v:"wx-slider-thumb"},a:[{n:"width",o:"s",e:function(e,i,o){return t(o,n,"_getBlockSize",[e.blockSize])+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"height",o:"s",e:function(e,i,o){return t(o,n,"_getBlockSize",[e.blockSize])+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"margin-left",o:"s",e:function(e,i,o){return-t(o,n,"_getBlockSize",[e.blockSize])/2+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"margin-top",o:"s",e:function(e,i,o){return-t(o,n,"_getBlockSize",[e.blockSize])/2+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"left",o:"s",e:function(e,i,o){return t(o,n,"_getValueWidth",[e._filteredValue,e.min,e.max])},l:null,b:[[null,"_getValueWidth"],[null,"_filteredValue"],[null,"min"],[null,"max"]]},{n:"background-color",o:"s",e:function(e,t,n){return e.blockColor},l:[null],b:[[null,"blockColor"]]}],c:[]},{t:1,n:"div",cl:{v:"wx-slider-track"},a:[{n:"width",o:"s",e:function(e,i,o){return t(o,n,"_getValueWidth",[e.value,e.min,e.max])},l:null,b:[[null,"_getValueWidth"],[null,"value"],[null,"min"],[null,"max"]]},{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getActiveColor",[e.selectedColor,e.activeColor])},l:null,b:[[null,"_getActiveColor"],[null,"activeColor"],[null,"selectedColor"]]}],c:[]},{t:1,n:"div",id:"step",cl:{v:"wx-slider-step"},a:[],c:[]}]}]},{t:1,n:"span",cl:{v:"wx-slider-value"},a:[{n:"hidden",o:"$",e:function(e,t,n){return!e.showValue},l:null,b:[[null,"showValue"]]}],c:[{t:1,n:"p",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.value},b:[[null,"value"]],t:3}]}]}]}]},properties:{min:{type:Number,value:0,public:!0,observer:"_revalicateRange"},max:{type:Number,value:100,public:!0,observer:"_revalicateRange"},step:{type:Number,value:1,public:!0},value:{type:Number,value:0,public:!0,observer:"_revalicateRange"},showValue:{type:Boolean,value:!1,public:!0},activeColor:{type:String,value:"#1AAD19",public:!0},backgroundColor:{type:String,value:"#E9E9E9",public:!0},blockSize:{type:Number,value:28,public:!0},blockColor:{type:String,value:"#ffffff",public:!0},color:{type:String,value:"",public:!0},selectedColor:{type:String,value:"#1AAD19",public:!0},_filteredValue:{type:Number}},listeners:{"wrapper.tap":"_onTap"},behaviors:["wx-base","wx-data-component","wx-disabled","wx-touchtrack"],created:function(){this.touchtrack(this.$.handle,"_onTrack")},attached:function(){this._setAria()},methods:{_setAria:function(){this.$$.setAttribute("role","slider"),this.$$.setAttribute("aria-valuemin",this.min),this.$$.setAttribute("aria-valuemax",this.max),this.$$.setAttribute("aria-valuenow",this.value)},_filterValue:function(e){return e<this.min?this.min:e>this.max?this.max:Math.round((e-this.min)/this.step)*this.step+this.min},_revalicateRange:function(){var e=this._filterValue(this.value);if(Iu(this.min)||Iu(this.max)||Iu(this.step)){var t=Math.max(Nu(this.min),Nu(this.max),Nu(this.step));e=+e.toFixed(t)}this._filteredValue=e,this._setAria()},_getValueWidth:function(e,t,n){return 100*(e-t)/(n-t)+"%"},_getValueTextWidth:function(e,t,n){var i=Math.round(t).toString().length,o=Math.max(Nu(e),Nu(t),Nu(n)),r=o>0?o+i:i;return"ios"===wx.getPlatform()?"calc(".concat(r,"ch + 1px)"):"".concat(r,"ch")},_getBlockSize:function(e){return e>28?28:e<12?12:e},_getBackgroundColor:function(e,t){var n="#E9E9E9";return"#E9E9E9"!==t?n=t:"#E9E9E9"!==e&&(n=e),n},_getActiveColor:function(e,t){var n="#1AAD19";return"#1AAD19"!==t?n=t:"#1AAD19"!==e&&(n=e),n},_onUserChangedValue:function(e){var t=this.$.step.offsetWidth,n=this.$.step.getBoundingClientRect().left,i=(e.detail.x-n)*(this.max-this.min)/t+this.min;if(i=this._filterValue(i),void 0===this._startValue){if(this.value===i)return!1}else if(this._startValue===i)return!1;return this.value=i,!0},_onTrack:function(e){if(!this.disabled){if(void 0===this._startValue&&(this._startValue=this.value),"move"===e.detail.state)return this._onUserChangedValue(e),this.triggerEvent("changing",{value:this.value}),!1;"end"===e.detail.state&&(this._triggerChangeEvent(e),this._startValue=void 0)}},_onTap:function(e){this.disabled||this._triggerChangeEvent(e)},_triggerChangeEvent:function(e){this._onUserChangedValue(e)&&this.triggerEvent("change",{value:this.value})},resetFormData:function(){this.value=this.min},moveStep:function(e){var t=this._filterValue(e<0?this.value-this.step:this.value+this.step);this.value!==t&&(this.value=t,this.triggerEvent("change",{value:this.value}))}}}),"RESET_LAYOUT_BY_CHILD_NODE_CHANGED"),Ou=(window.ftparser.registerElement({is:"wx-swiper",template:function(e,t,n){return[{t:1,n:"div",id:"slidesWrapper",cl:{v:"wx-swiper-wrapper"},a:[{n:"role",v:"listbox"},{n:"aria-label",e:function(e,i,o){return t(o,n,"_getScrollStr",[e.vertical])},l:null,b:[[null,"_getScrollStr"],[null,"vertical"]]}],c:[{t:1,n:"div",id:"slides",cl:{v:"wx-swiper-slides"},a:[],c:[{t:1,n:"div",id:"slideFrame",cl:{v:"wx-swiper-slide-frame"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},{t:1,n:"div",id:"slidesDots",cl:{v:"wx-swiper-dots"},a:[{n:"hidden",o:"$",e:function(e,t,n){return!e.indicatorDots},l:null,b:[[null,"indicatorDots"]]},{n:"wx-swiper-dots-horizontal",o:"c",e:function(e,t,n){return!e.vertical},l:null,b:[[null,"vertical"]]},{n:"wx-swiper-dots-vertical",o:"c",e:function(e,t,n){return e.vertical},l:[null],b:[[null,"vertical"]]}],c:[]}]}]},behaviors:["wx-base","wx-touchtrack","wx-positioning-container","wx-reload"],properties:{indicatorDots:{type:Boolean,value:!1,public:!0},vertical:{type:Boolean,value:!1,observer:"_updateLayout",public:!0},autoplay:{type:Boolean,value:!1,observer:"_autoplayChanged",public:!0},circular:{type:Boolean,value:!1,observer:"_updateLayout",public:!0},interval:{type:Number,value:5e3,public:!0,observer:"_autoplayChanged"},duration:{type:Number,value:500,public:!0},current:{type:Number,value:0,observer:"_currentChanged",public:!0},indicatorColor:{type:String,value:"",observer:"_updateDotsColor",public:!0},indicatorActiveColor:{type:String,value:"",observer:"_updateDotsColor",public:!0},previousMargin:{type:String,value:"",observer:"_updateMargin",public:!0},nextMargin:{type:String,value:"",observer:"_updateMargin",public:!0},snapToEdge:{type:Boolean,value:!1,observer:"_updateMargin",public:!0},currentItemId:{type:String,value:"",observer:"_currentItemIdChanged",public:!0},skipHiddenItemLayout:{type:Boolean,value:!1,observer:"_skipHiddenItemLayoutChanged",public:!0},displayMultipleItems:{type:Number,value:1,observer:"_updateDisplayMultipleItems",public:!0},easingFunction:{type:String,value:"default",public:!0}},relations:{"wx-swiper-item":{type:"descendant",linked:function(){this._itemListChanged(),this._resetLayout({triggeredBy:Pu})},linkChanged:function(){this._itemListChanged(),this._resetLayout({triggeredBy:Pu})},unlinked:function(){this._itemListChanged(),this._resetLayout({triggeredBy:Pu})}}},attached:function(){var e=this;this._resetLayoutHandler=function(){e._resetLayout()},this._attachedCb()},moved:function(){this._detachedCb(),this._attachedCb()},detached:function(){this._detachedCb()},saved:function(e){var t={};this.saveCompVar(t,["current"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},created:function(){this._attached=!1,this._invalid=!0,this._circularEnabled=!1,this._currentChangeSource="",this._viewportPosition=0,this._marginSpecified=!1,this._viewportMoveRatio=1,this._scheduleTimeoutObj=null,this._animating=null,this._requestedAnimation=!1,this._animateFrameFunc=this._animateFrameFuncProto.bind(this),this._itemIdItemMap={},this._items=[],this._itemListDirty=!1,this._userTracking=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._wheelDistance=0,this._contentTrackSpeed=0,this._contentTrackT=0,this._skipHiddenItemLayoutModified=!1,this.touchtrack(this.$.slidesWrapper,"_handleContentTrack",!0),this._previous=0,this._swiping=!1,this._transitioning=!1,this._wheelDistance=0},methods:{_getScrollStr:function(e){var t="可";return(t+=e?"竖向":"横向")+"滚动"},_attachedCb:function(){this._attached||(this._attached=!0,this._resetLayout(),this.autoplay&&this._scheduleAutoplay(),this._wheelHandlerWrap=this._wheelHandler.bind(this),this.$$.addEventListener("wheel",this._wheelHandlerWrap),ftparser.addListenerToElement(document,"onScrollWheelStart",this._wheelStart.bind(this)),ftparser.addListenerToElement(document,"onScrollWheelEnd",this._wheelEnd.bind(this)),document.addEventListener("windowResize",this._resetLayoutHandler))},_detachedCb:function(){this._attached=!1,this._cancelSchedule(),this.$$.removeEventListener("wheel",this._wheelHandlerWrap),document.removeEventListener("windowResize",this._resetLayoutHandler)},_itemIdUpdated:function(e,t,n){t!==n&&(this._itemListChanged(),this.currentItemId&&this._currentItemIdChanged())},_currentItemIdChanged:function(e){"__none__"!==this._currentChangeSource?""!==e&&(this.current=this._getPositionFromCurrent()):this._currentChangeSource=""},_currentChanged:function(e,t){if("__none__"!==this._currentChangeSource){var n=this._currentChangeSource;if(this._currentChangeSource="",this._isCurrentValueLegal(e))if(this._isCurrentValueLegal(t)){if(n||this._animateViewport(e,"",0),e!==t){var i=this._getItems()[e];i&&(this._currentChangeSource="__none__",this.currentItemId=i.itemId,"__none__"===this._currentChangeSource&&(this._currentChangeSource=""),this.triggerEvent("change",{current:this.current,currentItemId:i.itemId,source:n})),this._updateDots(e)}}else this._resetLayout();else this._resetLayout()}else this._currentChangeSource=""},_updateMargin:function(){this._marginSpecified=!0,this._resetLayout()},_skipHiddenItemLayoutChanged:function(){this._skipHiddenItemLayoutModified=!0,this._updateLayout()},_updateDisplayMultipleItems:function(e){var t=this;this._updateLayout(),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){t._attached&&e>t._getItems().length&&console.warn("For developer:[swiper] display-multiple-items不能大于swiper-item数量")}))}))},_updateLayout:function(){this._resetLayout()},_autoplayChanged:function(e){e?this._scheduleAutoplay():this._cancelSchedule()},_itemListChanged:function(){this._itemListDirty=!0},_updateItemList:function(){var e=this;this._itemListDirty=!1,this._items=this.getRelationNodes("wx-swiper-item"),this._items.forEach((function(t){t.itemId&&(e._itemIdItemMap[t.itemId]||(e._itemIdItemMap[t.itemId]=t))}))},_getItems:function(){return this._itemListDirty&&this._updateItemList(),this._items},_getItemByItemId:function(e){return this._itemListDirty&&this._updateItemList(),this._itemIdItemMap[e]},_scheduleAutoplay:function(){var e=this;this._cancelSchedule(),!this._attached||this._invalid||this._getItems().length<=this.displayMultipleItems||(this._scheduleTimeoutObj=setTimeout((function t(){e._scheduleTimeoutObj=null,e._currentChangeSource="autoplay",e._circularEnabled?e.current=e._normalizeCurrentValue(e.current+1):e.current=e.current+e.displayMultipleItems<e._getItems().length?e.current+1:0,e._animateViewport(e.current,"autoplay",e._circularEnabled?1:0),e._scheduleTimeoutObj=setTimeout(t,e.interval)}),this.interval))},_cancelSchedule:function(){this._scheduleTimeoutObj&&(clearTimeout(this._scheduleTimeoutObj),this._scheduleTimeoutObj=null)},_updateDots:function(e){var t=!this._invalid,n=this.$.slidesDots;n.innerHTML="";for(var i=this._getItems(),o=document.createDocumentFragment(),r=0;r<i.length;r++){var a=document.createElement("div");a.setAttribute("data-dot-index",r),t&&r>=e&&r<e+this.displayMultipleItems||r<e+this.displayMultipleItems-i.length?(a.setAttribute("class","wx-swiper-dot wx-swiper-dot-active"),this.indicatorActiveColor&&(a.style.backgroundColor=this.indicatorActiveColor)):(a.setAttribute("class","wx-swiper-dot"),this.indicatorColor&&(a.style.backgroundColor=this.indicatorColor)),o.appendChild(a)}n.appendChild(o)},_updateDotsColor:function(){for(var e=this.$.slidesDots,t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];n.getAttribute("class").indexOf("wx-swiper-dot-active")>=0?this.indicatorActiveColor&&(n.style.backgroundColor=this.indicatorActiveColor):this.indicatorColor&&(n.style.backgroundColor=this.indicatorColor)}},_normalizeCurrentValue:function(e){var t=this._getItems().length;if(!t)return-1;var n=(Math.round(e)%t+t)%t;if(this._circularEnabled){if(t<=this.displayMultipleItems)return 0}else if(n>t-this.displayMultipleItems)return t-this.displayMultipleItems;return n},_isCurrentValueLegal:function(e){return!!this._getItems().length&&e===this._normalizeCurrentValue(e)},_transformPropRpx:function(e){return/^\s*[+-]?\d+(\.\d+)?(px)?\s*$/i.test(e)?"px"!==e.slice(-2)?e+"px":e:/^\s*[+-]?\d+(\.\d+)?rpx\s*$/i.test(e)?wx.transformRpx("%%?"+e+"?%%"):""},_getPositionFromCurrent:function(){return this.currentItemId?this._getItems().indexOf(this._getItemByItemId(this.currentItemId)):this._isCurrentValueLegal(this.current)?this.current:-2},_updateHiddenItemDisplay:function(e){if(this._skipHiddenItemLayoutModified)for(var t=this._getItems(),n=0;n<t.length;n++){var i=t[n],o=i._position<=e-2||i._position>=e+this.displayMultipleItems+1;i.style.display=o?"none":i._originalDisplay}},_resetLayout:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).triggeredBy;if(this._attached){this._cancelSchedule(),this._endViewportAnimation();var n=this._getItems();this.currentItemId&&(this._currentChangeSource="__none__",this.current=this._getPositionFromCurrent(),"__none__"===this._currentChangeSource&&(this._currentChangeSource=""));var i=this.$.slides,o=this.$.slideFrame;this.vertical?(this._marginSpecified&&(i.style.left=0,i.style.right=0,i.style.top=this._transformPropRpx(this.previousMargin),i.style.bottom=this._transformPropRpx(this.nextMargin)),o.style.width="100%",o.style.height=Math.abs(100/this.displayMultipleItems)+"%"):(this._marginSpecified&&(i.style.top=0,i.style.bottom=0,i.style.left=this._transformPropRpx(this.previousMargin),i.style.right=this._transformPropRpx(this.nextMargin)),o.style.height="100%",o.style.width=Math.abs(100/this.displayMultipleItems)+"%"),this._itemPos=[];for(var r=0;r<n.length;r++)this._skipHiddenItemLayoutModified&&(n[r].style.display=n[r]._originalDisplay),this._updateItemPos(r,r);if(this._viewportMoveRatio=1,1===this.displayMultipleItems&&n.length){var a=n[0].$$.getBoundingClientRect(),s=this.$.slideFrame.getBoundingClientRect();this._viewportMoveRatio=a.width/s.width,this._viewportMoveRatio>0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}this._circularEnabled=this.circular&&n.length>this.displayMultipleItems;var c=this._viewportPosition;this._viewportPosition=-2;var l=this._getPositionFromCurrent();l>=0?(this._invalid=!1,this._userTracking?(this._updateViewport(c+l-this._contentTrackViewport,!0),this._contentTrackViewport=l):this._updateViewport(l,!0),this.autoplay&&this._scheduleAutoplay()):(this._invalid=!0,this._updateViewport(-this.displayMultipleItems-1,!0),t===Pu&&window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){var t=e._getItems().length;e._attached&&e.current>t-1&&(e.current=0,console.warn("For developer:[swiper] current 无效,请修改 current 值"))}))}))),this._updateDots(l),this.updatePositioningContainer()}},_checkCircularLayout:function(e){if(!this._invalid)for(var t=this._getItems(),n=t.length,i=e+this.displayMultipleItems,o=0;o<n;o++){var r=t[o]._position,a=Math.floor(e/n)*n+o,s=a+n,c=a-n,l=Math.max(e-(a+1),a-i,0),u=Math.max(e-(s+1),s-i,0),d=Math.max(e-(c+1),c-i,0),h=Math.min(l,u,d),p=[a,s,c][[l,u,d].indexOf(h)];r!==p&&this._updateItemPos(o,p)}},_updateItemPos:function(e,t){var n="translate("+(this.vertical?"0":100*t+"%")+", "+(this.vertical?100*t+"%":"0")+") translateZ(0)",i=this._getItems()[e];i.style["-webkit-transform"]=n,i.style.transform=n,i._position=t,this._updateItemContainer(i,e,t)},_updateItemContainer:function(e,t,n){},_viewportMin:function(){var e=this.vertical?{left:"offsetTop",width:"offsetHeight"}:{left:"offsetLeft",width:"offsetWidth"};return this.snapToEdge&&this.previousMargin&&!this.circular&&this._getItems().length>=2?this.$.slides[e.left]/this.$.slideFrame[e.width]:0},_viewportMax:function(){var e=this.vertical?{left:"offsetTop",width:"offsetHeight"}:{left:"offsetLeft",width:"offsetWidth"};if(this.snapToEdge&&this.nextMargin&&!this.circular&&this._getItems().length>=2){var t=this.$.slidesWrapper[e.width]-this.$.slides[e.left]-this.$.slides[e.width];return this._getItems().length-this.displayMultipleItems-t/this.$.slideFrame[e.width]}return this._getItems().length-this.displayMultipleItems},_calcNewPosition:function(e){var t=this.vertical?{left:"offsetTop",width:"offsetHeight"}:{left:"offsetLeft",width:"offsetWidth"};if(this.snapToEdge&&0===e&&this.previousMargin&&!this.circular&&this._getItems().length>=2&&(e=this.$.slides[t.left]/this.$.slideFrame[t.width]),this.snapToEdge&&e===this._getItems().length-this.displayMultipleItems&&this.nextMargin&&!this.circular&&this._getItems().length>=2){var n=this.$.slidesWrapper[t.width]-this.$.slides[t.left]-this.$.slides[t.width];e=this._getItems().length-this.displayMultipleItems-n/this.$.slideFrame[t.width]}return e},_updateViewport:function(e,t){Math.floor(2*this._viewportPosition)===Math.floor(2*e)&&Math.ceil(2*this._viewportPosition)===Math.ceil(2*e)||(this._circularEnabled&&this._checkCircularLayout(e),this.skipHiddenItemLayout&&this._updateHiddenItemDisplay(e)),t&&(e=this._calcNewPosition(e));var n="translate("+(this.vertical?"0":100*-e*this._viewportMoveRatio+"%")+", "+(this.vertical?100*-e*this._viewportMoveRatio+"%":"0")+") translateZ(0)";this.$.slideFrame.style["-webkit-transform"]=n,this.$.slideFrame.style.transform=n,this._viewportPosition=e;var i=this.$.slideFrame,o=this._getItems().length,r={scrollLeft:this.vertical?0:e*this._viewportMoveRatio*i.offsetWidth,scrollTop:this.vertical?e*this._viewportMoveRatio*i.offsetHeight:0,scrollWidth:(this.vertical?1:o)*i.offsetWidth,scrollHeight:(this.vertical?o:1)*i.offsetHeight};if(this.triggerPositionChangeEvents(),this.updatePositioningContainer({contentOffsetLeft:r.scrollLeft,contentOffsetTop:r.scrollTop}),!this._scrollPosition||this._scrollPosition.scrollLeft!==r.scrollLeft||this._scrollPosition.scrollTop!==r.scrollTop){if("touch"===(this._animating||{}).source&&!this._swiping||!this._transitioning)return void(this._scrollPosition=r);var a=r.scrollLeft,s=r.scrollTop,c=0,l=0;this.vertical?l=this._getTransitionDeltaY(s):c=this._getTransitionDeltaX(a),this.triggerEvent("transition",{dx:c,dy:l})}this._scrollPosition=r},_getTransitionDeltaX:function(e){var t=this.$.slideFrame.offsetWidth,n=Math.abs(_()(this._lastPosX,10)-_()(e,10));if(null!==this._lastPosX&&n>t||this._transposed){this._transposed=!0;var i=(this._getItems().length-1)*t;this._circularEnabled&&(Math.sign(this._lastPosX)<0?e=-(t-(e-i)):Math.sign(this._lastPosX)>0&&(e=i+(t+e)))}else{if(this.autoplay&&this._previous===this._getItems().length-1&&e<=0&&(null==this._lastPosX||e>this._lastPosX))return this._lastPosX=e,t-Math.abs(e);this._lastPosX=e}return e-this._previous*t},_getTransitionDeltaY:function(e){var t=this.$.slideFrame.offsetHeight,n=Math.abs(_()(this._lastPosY,10)-_()(e,10));if(null!==this._lastPosY&&n>t||this._transposed){this._transposed=!0;var i=(this._getItems().length-1)*t;this._circularEnabled&&(Math.sign(this._lastPosY)<0?e=-(t-(e-i)):Math.sign(this._lastPosY)>0&&(e=i+(t+e)))}else{if(this.autoplay&&this._previous===this._getItems().length-1&&e<=0&&(null==this._lastPosY||e>this._lastPosY))return this._lastPosY=e,t-Math.abs(e);this._lastPosY=e}return e-this._previous*t},_animateFrameFuncProto:function(){if(this._animating){this._transitioning=!0;var e=this._animating,t=e.endTime,n=e.source,i=e.fromPos,o=e.startTime,r=e.toPos,a=this._calcNewPosition(r),s=this.duration,c=2*(i-a)/(s*s),l=t-v()();if(l<=0){this._updateViewport(a),this._animating=null,this._requestedAnimation=!1;var u=this._getItems()[this.current];u&&(("touch"!==n||this._swiping)&&this.triggerEvent("animationfinish",{current:this.current,currentItemId:u.itemId,source:n}),this._swiping=!1,this._transitioning=!1,this._transposed=!1,this._lastPosX=null,this._lastPosY=null,this._previous=this.current)}else{var d,h=v()()-o;switch(this.easingFunction){case"easeInCubic":d=function(e,t,n,i){return(n-t)*(e/=i)*e*e+t}(h,i,a,this.duration);break;case"easeOutCubic":d=function(e,t,n,i){return(n-t)*((e=e/i-1)*e*e+1)+t}(h,i,a,this.duration),this._updateViewport(d);break;case"easeInOutCubic":d=function(e,t,n,i){var o=n-t;return(e/=i/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(h,i,a,this.duration);break;case"linear":d=function(e,t,n,i){return(n-t)*e/i+t}(h,i,a,this.duration);break;default:d=a+c*l*l/2}this._updateViewport(d),requestAnimationFrame(this._animateFrameFunc)}}else this._requestedAnimation=!1},_animateViewport:function(e,t,n){this._cancelViewportAnimation();var i=this.duration,o=this._getItems().length,r=this._viewportPosition;if(this._circularEnabled)if(n<0){for(;r<e;)r+=o;for(;r-o>e;)r-=o}else if(n>0){for(;r>e;)r-=o;for(;r+o<e;)r+=o}else{for(;r+o<e;)r+=o;for(;r-o>e;)r-=o;r+o-e<e-r&&(r+=o),e-(r-o)<r-e&&(r-=o)}this._animating={fromPos:r,toPos:e,acc:2*(r-e)/(i*i),startTime:v()(),endTime:v()()+i,source:t},this._requestedAnimation||(this._requestedAnimation=!0,requestAnimationFrame(this._animateFrameFunc))},_cancelViewportAnimation:function(){this._animating=null},_endViewportAnimation:function(){this._animating&&(this._updateViewport(this._animating.toPos),this._animating=null)},_wheelStart:function(){this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._wheelDistanceX=0,this._wheelDistanceY=0,this._wheelStartFlag=1},_wheelHandler:function(e){var t=this,n=e.deltaX,i=e.deltaY;if(this._wheelStartFlag){this._wheelStartFlag=2,this._swiping=!0;var o=this._viewportMax(),r=this._viewportMin(),a=function(e){return.5-.25/(e+.5)},s=function(e,n){var i=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,(t._circularEnabled||i<r||i>o)&&(i<r?i=-a(-i):i>o&&(i=o+a(i-o)),t._contentTrackSpeed=0),t._updateViewport(i)};this._wheelDistanceY+=i,this._wheelDistanceX+=n,this.vertical?s(this._wheelDistanceY/this.$.slideFrame.offsetHeight,i):s(this._wheelDistanceX/this.$.slideFrame.offsetWidth,n)}},_wheelEnd:function(){2===this._wheelStartFlag&&this._handleTrackEnd(),this._wheelStartFlag=0},_handleTrackStart:function(){this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=v()()},_handleTrackMove:function(e){var t=this;this._swiping=!0,this._transitioning=!0;var n=this._contentTrackT;this._contentTrackT=v()();var i=this._viewportMax(),o=this._viewportMin(),r=function(e){return.5-.25/(e+.5)},a=function(e,n){var a=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,!t._circularEnabled&&(a<o||a>i)&&(a<o?a=-r(-a):a>i&&(a=i+r(a-i)),t._contentTrackSpeed=0),t._updateViewport(a)},s=this._contentTrackT-n;0===s&&(s=1),this.vertical?a(-e.dy/this.$.slideFrame.offsetHeight,-e.ddy/s):a(-e.dx/this.$.slideFrame.offsetWidth,-e.ddx/s)},_handleTrackEnd:function(e){this.autoplay&&this._scheduleAutoplay(),this._userTracking=!1;var t=0===this._contentTrackSpeed?0:this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!e&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*t);var i=this._normalizeCurrentValue(this._viewportPosition+n);e?this._updateViewport(this._contentTrackViewport):this.current!==i?(this._currentChangeSource="touch",this.current=i,this._animateViewport(i,"touch",n)):this._animateViewport(i,"touch",n)},_handleContentTrack:function(e){if(!this._invalid){if("start"===e.detail.state)return this._userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if(this._userTracking){if("end"===e.detail.state)return this._handleTrackEnd(!1);if("cancel"===e.detail.state)return this._handleTrackEnd(!0);if(!this._userDirectionChecked){this._userDirectionChecked=!0;var t=Math.abs(e.detail.dx),n=Math.abs(e.detail.dy);if(this._animating&&(t<n&&this.vertical||t>n&&!this.vertical)&&this._cancelViewportAnimation(),(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}}},getScrollPosition:function(){return{scrollLeft:this._scrollPosition&&this._scrollPosition.scrollLeft||0,scrollTop:this._scrollPosition&&this._scrollPosition.scrollTop||0,scrollWidth:this._scrollPosition&&this._scrollPosition.scrollWidth||0,scrollHeight:this._scrollPosition&&this._scrollPosition.scrollHeight||0}},getScrollSize:function(){var e=this.$.slideFrame;return this.vertical?{width:e.offsetWidth,height:e.offsetHeight*this._getItems().length}:{width:e.offsetWidth*this._getItems().length,height:e.offsetHeight}},handleFullscreenIfNeeded:function(e){var t=this.$.slidesWrapper.style;e?(t.position="static",t.transform="none",t.webkitTransform="none"):(t.position="",t.transform="",t.webkitTransform="")}}}),window.isIDE),Lu=(window.ftparser.registerElement({is:"wx-swiper-item",behaviors:["wx-base","wx-positioning-container"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{itemId:{type:String,value:"",observer:function(e,t){var n=this.getRelationNodes("wx-swiper")[0];n&&n._itemIdUpdated(this,e,t)},public:!0}},relations:{"wx-swiper":{type:"ancestor"}},attached:function(){this._scheduledScrollPosition=!1,Ou&&this.$$.getAttribute("style")&&console.warn("For developer: 建议在 swiper-item 子节点上设置样式。"),this._attachedCb()},moved:function(){this._detachedCb(),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_invalidChild:function(e){if(e.target!==this)return!1},_setDomStyle:function(){var e=this.$$;e.style.position="absolute",e.style.width="100%",e.style.height="100%"},_attachedCb:function(){this._attached||(this._attached=!0,this._setDomStyle(),this._originalDisplay=this.$$.style.display)},_detachedCb:function(){this._attached=!1},getScrollPosition:function(){return{scrollLeft:0,scrollTop:0,scrollWidth:0,scrollHeight:0}},_keepSyncScrollPosition:function(){var e=this;if(!this._scheduledScrollPosition){this._scheduledScrollPosition=!0;var t=0,n={};window.requestAnimationFrame((function i(){var o=e.getPositioningOffset();o.left!==n.left||o.top!==n.top||4!=++t?(n=o,e.updateScrollPosition(o),window.requestAnimationFrame(i)):e._scheduledScrollPosition=!1}))}}}}),window.ftparser.registerElement({is:"wx-switch",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-switch-wrapper"},a:[],c:[{t:1,n:"div",id:"switchInput",cl:{v:"wx-switch-input"},a:[{n:"hidden",o:"$",e:function(e,i,o){return!t(o,n,"isSwitch",[e.type])},l:null,b:[[null,"isSwitch"],[null,"type"]]},{n:"type",v:"checkbox"},{n:"wx-switch-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-switch-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"background-color",o:"s",e:function(e,t,n){return e.color},l:[null],b:[[null,"color"]]},{n:"border-color",o:"s",e:function(e,i,o){return t(o,n,"_getSwitchBorderColor",[e.checked,e.color])},l:null,b:[[null,"_getSwitchBorderColor"],[null,"checked"],[null,"color"]]}],c:[]},{t:1,n:"div",id:"checkboxInput",cl:{v:"wx-checkbox-input"},a:[{n:"hidden",o:"$",e:function(e,i,o){return!t(o,n,"isCheckbox",[e.type])},l:null,b:[[null,"isCheckbox"],[null,"type"]]},{n:"type",v:"checkbox"},{n:"wx-checkbox-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-checkbox-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"color",o:"s",e:function(e,t,n){return e.color},l:[null],b:[[null,"color"]]}],c:[]}]}]},properties:{checked:{type:Boolean,value:!1,public:!0,observer:"_checkedChanged"},type:{type:String,value:"switch",public:!0},color:{type:String,value:"#04BE02",public:!0}},behaviors:["wx-base","wx-label-aria","wx-label-target","wx-disabled","wx-data-component","wx-reload"],listeners:{"switchInput.tap":"onInputChange","checkboxInput.tap":"onInputChange"},attached:function(){this._setAria("checkbox")},saved:function(e){var t={};this.saveCompVar(t,["checked"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},methods:{_checkedChanged:function(e){this.$$.setAttribute("aria-checked",e),this._setRelatedLabelAria("checkbox")},_getSwitchBorderColor:function(e,t){return e?t:""},handleLabelTap:function(e){this.onInputChange(e)},onInputChange:function(e){this.checked=!this.checked,this.disabled?this.checked=!this.checked:this.triggerEvent("change",{value:this.checked})},isSwitch:function(e){return"checkbox"!==e},isCheckbox:function(e){return"checkbox"===e},getFormData:function(){return this.checked},resetFormData:function(){this.checked=!1}}}),window.ftparser.registerElement({is:"wx-text",template:function(e,t,n){return[{t:1,n:"span",id:"raw",st:{v:"display:none;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},{t:1,n:"span",id:"main",a:[],c:[]}]},behaviors:["wx-base"],properties:{selectable:{type:Boolean,value:!1,public:!0},userSelect:{type:Boolean,value:!1,public:!0,observer:"userSelectChanged"},decode:{type:Boolean,value:!1,public:!0},space:{type:String,value:"",public:!0}},methods:{_htmlDecode:function(e){return this.space&&("nbsp"===this.space?e=e.replace(/ /g," "):"ensp"===this.space?e=e.replace(/ /g," "):"emsp"===this.space&&(e=e.replace(/ /g," "))),this.decode?e.replace(/&nbsp;/g," ").replace(/&ensp;/g," ").replace(/&emsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&"):e},_update:function(){for(var e=this.$.raw,t=document.createDocumentFragment(),n=0,i=e.childNodes.length;n<i;n++){var o=e.childNodes.item(n);if(o.nodeType===o.TEXT_NODE)for(var r=this._htmlDecode(o.textContent).split("\n"),a=0;a<r.length;a++)a&&t.appendChild(document.createElement("br")),t.appendChild(document.createTextNode(r[a]));else o.nodeType===o.ELEMENT_NODE&&o.__wxElement&&"wx-text"===o.__wxElement.is&&t.appendChild(o.cloneNode(!0))}this.$.main.innerHTML="",this.$.main.appendChild(t)},userSelectChanged:function(e){e?(this.$.main.style.display="inline-block",this.$.main.style.willChange="transform",this.$.main.classList.add("__wa_selectable_region")):(this.$.main.style.display="inline",this.$.main.style.willChange="unset",this.$.main.classList.remove("__wa_selectable_region"))}},created:function(){this._observer=ftparser.Observer.create((function(){this._update()})),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0,properties:!0})},attached:function(){this._update(),this.selectable&&console.warn("For developer:[text] selectable is deprecated, use user-select instead")}}),{left:"left",center:"center",right:"right",start:"left",end:"right",inherit:"left",initial:"left",justify:"left","-webkit-center":"center","-webkit-right":"right","-webkit-left":"left"}),Ru={is:"wx-textarea",behaviors:["wx-base","wx-native","wx-data-component","wx-class-prefix","wx-size-normalizer","wx-keyboard-control"],template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-dev-textarea"},a:[{n:"role",v:"textbox"},{n:"aria-label",e:function(e,t,n){return e.ariaLabel+" "+(e.disabled?"已禁用":"")},l:null,b:[[null,"ariaLabel"],[null,"disabled"]]},{n:"aria-hidden",e:function(e,t,n){return e.ariaHidden},l:[null],b:[[null,"ariaHidden"]]}],c:[{t:1,n:"textarea",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"textarea",cl:{v:"compute"},a:[{n:"parse-text-content",v:""}],c:[]},{t:1,n:"p",id:"placeholder",cl:{e:function(e,t,n){return"textarea-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"p",id:"placeholderDark",cl:{e:function(e,t,n){return"textarea-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},properties:{value:{type:String,value:"",filter:"defaultValueChange",public:!0},maxlength:{type:Number,value:140,public:!0},placeholder:{type:String,value:"",public:!0,observer:"_placeholderChange"},disabled:{type:Boolean,value:!1,public:!0,observer:"_defaultPropChange"},hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"},focus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},disableDefaultPadding:{type:Boolean,value:!1,public:!0},placeholderStyle:{type:String,value:"",public:!0,filter:function(e){return wx.transformRpx(e,!0)},observer:function(){this._checkPlaceholderStyle(this.value)}},placeholderClass:{type:String,value:"textarea-placeholder",observer:"_placeholderClassChange",public:!0},autoHeight:{type:Boolean,value:!1,public:!0},cursorSpacing:{type:String,value:0,public:!0,filter:"normalizeSize"},fixed:{type:Boolean,value:!1,public:!0},cursor:{type:null,value:-1,public:!0,observer:"_cursorChange"},selectionStart:{type:null,value:-1,public:!0,observer:"_selectionStartChange"},selectionEnd:{type:null,value:-1,public:!0,observer:"_selectionEndChange"},showConfirmBar:{type:Boolean,value:!0,public:!0},adjustPosition:{type:Boolean,value:!0,public:!0},confirmType:{type:String,value:"return",public:!0,observer:"_confirmTypeChange"},confirmHold:{type:Boolean,value:!1,public:!0,observer:"_confirmHoldChange"},holdKeyboard:{type:Boolean,value:!1,public:!0},bindinput:{type:String,value:"",public:!0}},data:{_prefixedPlaceholderClass:""},listeners:{tap:"_inputFocusWrap"},created:function(){},attached:function(){T&&this.$.textarea.classList.add("isIOS"),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this,t=this;this._valueQueue=[],this._inputIndex=-1,this._inputId=+(String(v()()).slice(-5)+""+this._id),this._scale=750/window.innerWidth,this._placeholderClassChange(this.placeholderClass),this._checkPlaceholderStyle(this.value),this._attached=!0,this.checkRows(this.value||this.placeholder),this._pageReRenderCallback=this.pageReRenderCallback.bind(this),this.value&&(this._value=this.value),document.addEventListener("pageReRender",this._pageReRenderCallback),this._routeDoneId=ftparser.addListenerToElement(document,"routeDone",this.checkAutoFocus.bind(this)),this._onkeyboardheightchangeId=ftparser.addListenerToElement(document,"onkeyboardheightchange",this.onkeyboardheightchange.bind(this)),this.__onKeyboardCompleteId=ftparser.addListenerToElement(document,"onKeyboardComplete",this.onKeyboardComplete.bind(this)),this._setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",this.setKeyboardValue.bind(this)),this._onTextareaLineChangeId=ftparser.addListenerToElement(document,"onTextareaLineChange",this.onTextareaLineChange.bind(this)),this._onKeyboardConfirmId=ftparser.addListenerToElement(document,"onKeyboardConfirm",this.onKeyboardConfirm.bind(this)),this._onKeyboardShowId=ftparser.addListenerToElement(document,"onKeyboardShow",this.onKeyboardShow.bind(this)),new ResizeObserver((function(t,n){e._updateTextarea(),e.checkLineHeight()})).observe(this.$.textarea),this._observer=new MutationObserver((function(e,n){clearTimeout(t._mutationTimeout),t._mutationTimeout=setTimeout((function(){t._updateTextarea()}))})),this._observer.observe(document.querySelector("body"),{attributes:!0,childList:!0,subtree:!0})},_detachedCb:function(){this._attached=!1,this._observer&&this._observer.disconnect(),document.removeEventListener("pageReRender",this._pageReRenderCallback),ftparser.removeListenerFromElement(document,"routeDone",this._routeDoneId),ftparser.removeListenerFromElement(document,"onKeyboardComplete",this._onKeyboardCompleteId),ftparser.removeListenerFromElement(document,"onkeyboardheightchange",this._onkeyboardheightchangeId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.setKeyboardValueId),ftparser.removeListenerFromElement(document,"onKeyboardConfirm",this._onKeyboardConfirmId),ftparser.removeListenerFromElement(document,"onTextareaLineChange",this._onTextareaLineChangeId),this._keyboardShow&&wd.hideKeyboard({inputId:this._inputId})},_inputFocusWrap:function(){this._inputFocus(-1,-1,-1)},resetFormData:function(){this._keyboardShow&&(this.__formResetCallback=!0,wx.hideKeyboard({force:!0})),this.value="","number"==typeof this._groupID&&(this._groupID=null)},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_focusChange:function(e){var t=v()(),n=this.focus===e&&t-200>=this._lastFocusChangeTime;return(this.focus!==e||n)&&(this._lastFocusChangeTime=t,this._couldFocus(e)),e},checkAutoFocus:function(){(this.__autoFocused||window.__onAppRouteDone)&&(this.__autoFocused=!0,this._couldFocus(this.autoFocus||this.focus))},_couldFocus:function(e){var t=this,n=this,i=wd.getPlatform();if(!this._keyboardShow&&e)window._addActiveInputQueue&&window._addActiveInputQueue(n);else if(this._keyboardShow&&!e){if("ios"===i){var o=v()()-this._keyboardShowTimeStamp,r=Math.max(200-o,0);if(r>0)return void setTimeout((function(){wx.hideKeyboard({inputId:n._inputId})}),r)}window.requestAnimationFrame((function(){wx.hideKeyboard({inputId:t._inputId})}))}},_inputFocus:function(e,t,n){var i=this;document.activeElement.blur(),this.disabled||setTimeout((function(){i.__inputFocus(e,t,n)}),"android"===wd.getPlatform()?100:10)},__inputFocus:function(e,t,n){this._showNativeTextarea(e,t,n)},pageReRenderCallback:function(){this.checkAutoFocus(),this._updateTextarea(),this.checkLineHeight()},_updateTextarea:function(){if(this._keyboardShow){var e=this.getCurrentTextareaArgs(),t=this._diff(this.inputArgs,e);t&&(this.inputArgs=e,t.inputId=this._inputId,FinChatJSBridge.invoke("textarea_updateInput",t,(function(e){})))}},onTextareaLineChange:function(e){if(e.detail.inputId===this._inputId){var t=e.detail;this.lastRows!==t.lineCount&&(this.lastRows=t.lineCount,this.autoHeight&&(this.$$.style.height=t.height+"px",this.getComputedStyle()),this.triggerEvent("linechange",{height:t.height,heightRpx:t.heightRpx,lineCount:t.lineCount,lineHeight:t.lineHeight}))}},_showNativeTextarea:function(e,t,n){var i=this;if(this._attached&&!this._keyboardShow)if(this._keyboardLock)setTimeout((function(){i._keyboardLock=!1}),1e3);else{var o=this;if(this.inputArgs=this.getCurrentTextareaArgs(),!(this.hidden||this.disabled||this.inputArgs.style&&this.inputArgs.style.width<=0&&this.inputArgs.style.height<=0)){this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=e,this.inputArgs.selectionStart=this._convertToNumber(t),this.inputArgs.selectionEnd=this._convertToNumber(n),this.inputArgs.inputId=this._inputId,this.inputArgs.focus=!0;var r=this.value,a=this.placeholder;FinChatJSBridge.invoke("textarea_showKeyboard",this.inputArgs,(function(e){try{o._inputId=Number(e.inputId),o._keyboardShow=!0,o._keyboardShowTimeStamp=v()(),o.$.textarea.style.opacity=0,r!==o.value&&FinChatJSBridge.invoke("textarea_updateInput",{value:o.value||"",inputId:o._inputId},(function(e){})),a!==o.placeholder&&FinChatJSBridge.invoke("textarea_updateInput",{placeholder:o.placeholder||"",inputId:o._inputId},(function(e){})),o.findKeyboardAccessory()}catch(e){console.log("error",e)}}))}}},onkeyboardheightchange:function(e){e.detail.inputId===this._inputId&&this.triggerEvent("keyboardheightchange",{height:e.detail.height,duration:e.detail.duration})},setKeyboardValue:function(e){var t=e.detail,n=t.inputId,i=t.value,o=t.cursor;if(this._keyboardShow&&n===this._inputId){if(this._value=i,this._checkPlaceholderStyle(i),Ai)return void(i&&this._valueQueue.push(i));var r=this.__modelValueName&&this.__modelValueName.value,a={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};this._cursor=o,this.bindinput||r?FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:r},data:{type:"input",timeStamp:v()(),detail:{value:this._value,cursor:this._cursor,keyCode:e.detail.keyCode},target:a,currentTarget:a,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),inputId:this._inputId,updateEventName:this._insertNativeFail?"textarea_updateInput":"updateNativeTextArea"}}):this.triggerEvent("input",{value:this._value,cursor:this._cursor,keyCode:e.detail.keyCode})}},onKeyboardShow:function(e){e.detail.inputId===this._inputId&&(this._keyboardShow||(this._firstKeyboardShowTime=v()()),this._keyboardShow=!0,(T||k&&Ii().textarea)&&this._updateTextarea(),this.triggerEvent("focus",{value:this.value,height:e.detail.height}))},onKeyboardComplete:function(e){var t=this;e.detail.inputId===this._inputId&&this._keyboardShow&&(this._value=null!==this._forceValue&&void 0!==this._forceValue?this._forceValue:e.detail.value,this._formResetCallback&&(this.value="",this._formResetCallback=void 0),"function"==typeof this._formCallback&&(this._formCallback(this._value),this._formCallback=void 0),this._keyboardLock=!0,setTimeout((function(){t._keyboardLock=!1}),"android"===wd.getPlatform()?1e3:100),this.triggerEvent("change",{value:this._value}),this.triggerEvent("blur",{value:this._value,cursor:e.detail.cursor}),this._resetInputState(),this._cursor=this.inputArgs.cursor=e.detail.cursor)},onKeyboardConfirm:function(e){this._keyboardShow&&e.detail.inputId===this._inputId&&(this._value=e.detail.value,this.triggerEvent("confirm",{value:this._value}))},_resetInputState:function(){this._keyboardShow=!1,this._valueQueue=[],this._inputIndex=-1,this.value=this._value||"",Ii().textarea||this.checkRows(this.value||this.placeholder),this.$.textarea.style.opacity=1,this._checkPlaceholderStyle(this.value)},checkRows:function(e){e||(e=this.placeholder);var t=this.getCurrentRows(e);if(this.lastRows!==t.lineCount){if(this.lastRows=t.lineCount,this.autoHeight){var n=t.height<t.lineHeight?t.lineHeight:Math.max(t.height,t.lineHeight*t.lineCount);this.$$.style.height=n+"px",this.getComputedStyle()}this.triggerEvent("linechange",t)}},getCurrentRows:function(e){var t=window.getComputedStyle(this.$.textarea),n=1.2*(Dt()(t.fontSize)||16),i=19.2,o=wd.getPlatform();n+="android"===o?2:1,i+="android"===o?2:1,e&&(i=0),this.$.textarea.innerText=e||" ",this.$.textarea.appendChild(document.createElement("br"));var r=this.$.textarea.getBoundingClientRect().height;return{height:Math.max(this.$.textarea.scrollHeight,Math.round(n),r,i),heightRpx:this._scale*this.$.textarea.scrollHeight,lineHeight:n,lineCount:Math.ceil(this.$.textarea.scrollHeight/n)}},_placeholderChange:function(){this.maxlength>0&&(this.placeholder=this.placeholder.slice(0,this.maxlength)),this.$.textarea.innerText=this.placeholder},defaultValueChange:function(e){var t=this;if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId&&this._keyboardShow)if(Ai)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("textarea_updateInput",{value:e||"",inputId:this._inputId},(function(){t._forceValue=null,t._keyboardShow||(t._value=e,t._resetInputState())}))):this._valueQueue=this._valueQueue.slice(this._inputIndex-1);else{var n=this.getCurrentTextareaArgs(),i=this._diff(this.inputArgs,n);i&&(this.inputArgs=n,i.value=this._value||this.value,i.inputId=this._inputId,FinChatJSBridge.invoke("textarea_updateInput",i,(function(e){})))}return this._value=e,this._checkPlaceholderStyle(e),this._attached&&this.checkRows(e),e},hiddenChanged:function(e){e&&this._keyboardShow&&wx.hideKeyboard({inputId:this._inputId}),this.$$.style.display=e?"none":"",this._inputId&&FinChatJSBridge.invoke("updateNativeTextArea",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))},checkLineHeight:function(){var e=this;window.requestAnimationFrame((function(){var t=window.getComputedStyle(e.$$),n=0!==t.width&&0!==t.height&&0!==t.opacity&&"none"!==t.display&&"hidden"!==t.visibility;if(null!==e.$$.offsetParent&&n){var i=e.$$.getBoundingClientRect(),o=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));e.$.textarea.style.width=i.width-o[0]-o[1]+"px",e._lastWidth=i.width-o[0]-o[1]}}))},_checkPlaceholderStyle:function(e){var t=this.$.textarea,n=this._placeholderClass||[],i=0;if(e){if(t.classList.remove("textarea-placeholder"),t.classList.remove("textarea-placeholder-dark"),n.length>0)for(;i<n.length;i++)t.classList.contains(n[i])&&t.classList.remove(n[i]);t.setAttribute("style",""),this.checkLineHeight()}else{if(t.setAttribute("class",""),t.classList.add("dark"===__wxConfig.theme?"textarea-placeholder-dark":"textarea-placeholder"),n.length>0)for(;i<n.length;i++)t.classList.add(n[i]);if(t.classList.add("compute"),t.style.fontSize="",t.style.letterSpacing="",t.style.top="",t.style.left="",this.placeholderStyle){var o=this.getPlaceholderStyle(__wxConfig.theme||"light",!0);t.style.fontSize="".concat(o.fontSize,"px"),t.style.fontWeight=o.fontWeight,t.style.color=o.color,this.checkLineHeight()}}(this._keyboardShow||void 0!==this._insertNativeFail&&!this._insertNativeFail)&&(this.$.textarea.style.opacity=0)},_placeholderClassChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/\s+/);this._placeholderClass=this.convertClassListWithPrefix(e),this.setData({_prefixedPlaceholderClass:this._placeholderClass.join(" ")}),this._attached&&this._checkPlaceholderStyle(this.value)},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),r=Dt()(t.fontWeight);isNaN(r)?r=t.fontWeight:r<500?r="normal":r>=500&&(r="bold");var a=t.textAlign,s=t.backgroundColor?t.backgroundColor:"rgba(0, 0, 0, 0)",c=(t.maxHeight||"").replace("px","");return c=isNaN(c)?void 0:_()(c,10),this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0],scrollX:window.scrollX,scrollY:window.scrollY,offsetLeft:n.left+i[0]+window.scrollX,offsetTop:n.top+o[0]+window.scrollY,fontFamily:t.fontFamily,fontSize:this._inputFontSize,fontWeight:r,color:Y(t.color),maxHeight:c,backgroundColor:Y(s),keyboardAccessory:this.computKeyboardAccessoryHeight(),marginBottom:this.cursorSpacing||Dt()(t.marginBottom)||0,textAlign:Lu[a]||"left",borderTopLeftRadius:Dt()(t.borderTopLeftRadius.replace("px",""))||0,borderTopRightRadius:Dt()(t.borderTopRightRadius.replace("px",""))||0,borderBottomLeftRadius:Dt()(t.borderBottomLeftRadius.replace("px",""))||0,borderBottomRightRadius:Dt()(t.borderBottomRightRadius.replace("px",""))||0}},_getPlaceholderStyle:function(e){return e+";display:none;"},getPlaceholderStyle:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?this.$.placeholderDark:this.$.placeholder,n=window.getComputedStyle(t),i=Dt()(n.fontWeight);return i=isNaN(i)?n.fontWeight:i<500?"normal":"bold",{fontSize:Dt()(n.fontSize)||16,fontWeight:i,color:e?n.color:Y(n.color)}},formateEventTarget:function(){var e=this.__modelValueName&&this.__modelValueName.value,t={bindinput:this.bindinput,bindkeyboardheightchange:this.bindkeyboardheightchange,target:{id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},setKeyboardValue:!0,securityType:"textarea",modelValueName:e};return t.currentTarget=t.target,t.nodeId=this.getNodeId(),this.bindinput||e||this.bindkeyboardheightchange?ce()(t):""},getCurrentTextareaArgs:function(){return{inputId:this._inputId,cursor:this.cursor,selectionStart:this._convertToNumber(this.selectionStart),selectionEnd:this._convertToNumber(this.selectionEnd),style:this.getComputedStyle(),placeholderStyle:this.getPlaceholderStyle("light"),placeholderStyleDark:this.getPlaceholderStyle(void 0!==__wxConfig.theme?"dark":"light"),maxLength:this.maxlength,placeholder:this.placeholder,disabled:this.disabled,hidden:this.hidden,autoHeight:this.autoHeight,holdKeyboard:this.holdKeyboard,showConfirmBar:!this.disabled&&this.showConfirmBar,data:this.formateEventTarget(),fixed:this.fixed&&!this._insert2WebLayer,adjustPosition:this.adjustPosition,disableDefaultPadding:this.disableDefaultPadding,confirmType:this.confirmType,confirmHold:this.confirmHold}},_convertToNumber:function(e){var t=Dt()(e);return isNaN(t)?-1:t},_diff:function(e,t){for(var n={},i=!1,o=0,r=E()(t);o<r.length;o++){var a=r[o];"[object Object]"===Object.prototype.toString.call(t[a])?ce()(t[a])!==ce()(e[a])&&(n[a]=t[a],i=!0):e[a]!==t[a]&&(n[a]=t[a],i=!0)}return i?n:void 0},_confirmTypeChange:function(e){/^(return|send|search|next|go|done)$/.test(e)&&this._updateTextarea()},_confirmHoldChange:function(e){this._updateTextarea()},_cursorChange:function(e){this._cursor=e},_defaultPropChange:function(){},_selectionStartChange:function(){},_selectionEndChange:function(){}}};function Mu(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}var Bu=Ru.methods,$u={_attachedCb:function(){var e=this,t=this._cid=this._nativeId;this.$.wrapped.setAttribute("cid",t),this.$.wrapped.classList.add("tongceng_fcid_".concat(t)),this.$.wrapped.classList.add("wx-dev-textarea"),this.$.textarea.style.opacity=0,this.$.placeholder.style.opacity=0,this._insertNativeFail=!1,Bu._attachedCb.call(this),Ii().textarea?(this.retry=0,Kn((function(){e.insertNativeTextArea()}))):(this._insertNativeFail=!0,this._restoreBaseTextarea())},_detachedCb:function(){Bu._detachedCb.call(this),Ii().input&&(this.removeNativeTextArea(),this._insertTimer&&clearTimeout(this._insertTimer))},_defaultPropChange:function(){this._insertNativeFail||this._updateTextarea()},addCb:function(e){this._cbs=this._cbs||[],this._cbs.push(e)},hiddenChanged:function(e){if(e&&this._keyboardShow&&wx.hideKeyboard({inputId:this._inputId}),this.$$.style.display=e?"none":"",this._inputId){if(Ii().textarea&&k&&!e){var t=this.getCurrentTextareaInfo(),n=document.getElementsByTagName("x-textarea")[0];n&&n.setAttribute("data",ce()(t))}FinChatJSBridge.invoke("updateNativeTextArea",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))}},onTextareaLineChange:function(e){var t=this;if(this._insertNativeFail)Bu.onTextareaLineChange.call(this,e);else if(this._insertFinish){if(e.detail.inputId===this._inputId){var n=e.detail;this.lastRows!==n.lineCount&&(this.lastRows=n.lineCount,this.autoHeight&&(this.$$.style.height=n.height+"px",this.getComputedStyle()),this._updateTextarea(),this.triggerEvent("linechange",{height:n.height,heightRpx:n.heightRpx,lineCount:n.lineCount,lineHeight:n.lineHeight}))}}else this.addCb((function(){t.onTextareaLineChange(e)}))},getCurrentTextareaInfo:function(){return this.inputArgs=this.getCurrentTextareaArgs(),this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=this.cursor,this.inputArgs.focus=this.autoFocus||this.focus,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mu(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Mu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({cid:this._cid,inputId:this._inputId},this.inputArgs)},insertNativeTextArea:function(){var e=this,t=this.getCurrentTextareaInfo(),n=function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[]),e.findKeyboardAccessory()};if(k&&Ii().textarea){var i=document.createElement("x-textarea");return this.$.inner.style.display="none",this.$.textareaTag.style.display="none",this.$.textarea.style.display="none",this.$.wrapped.append(i),i.setAttribute("data",ce()(t)),i.getBoundingClientRect(),void(Ti?(FinChatJSBridge.on("onTongcengWidgetReady_"+this._inputId,(function(){n()})),FinChatJSBridge.on("onTongcengWidgetDestroy_"+this._inputId,(function(){e._insertFinish=!1}))):setTimeout((function(){n()})))}FinChatJSBridge.invoke("insertNativeTextArea",t,(function(t){-1===t.errMsg.indexOf(":ok")?e.retry<10?(e._insertTimer=setTimeout((function(){e.insertNativeTextArea()}),20*e.retry),e.retry++):(e._insertNativeFail=!0,e._restoreBaseTextarea(),Kn((function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[])}))):n()}))},_restoreBaseTextarea:function(){var e=this._cid;this.$.wrapped.removeAttribute("cid"),this.$.wrapped.classList.remove("tongceng_fcid_".concat(e)),this.$.wrapped.removeChild(this.$.inner),this.$.textarea.style.opacity=1,this._placeholderClassChange(this.placeholderClass),this._couldFocus(this.focus||this.autoFocus),Kn((function(){window._flushActiveInputQueue()}))},removeNativeTextArea:function(){var e=this;FinChatJSBridge.invoke("removeNativeTextArea",{cid:this._cid,inputId:this._inputId},(function(){e._cid=null}))},_updateTextarea:function(){var e=this;if(this._insertNativeFail)Bu._updateTextarea.call(this);else if(this._insertFinish){if(this._attached&&this._inputId&&this.inputArgs){var t=this.getCurrentTextareaArgs(),n=this._diff(this.inputArgs,t);n&&(this.inputArgs=t,n.cid=this._cid,n.inputId=this._inputId,n.disabled=this.disabled,this._value||(n.placeholder=this.placeholder),FinChatJSBridge.invoke("updateNativeTextArea",n,(function(e){})))}}else this.addCb((function(){e._updateTextarea()}))},checkLineHeight:function(){this._insertNativeFail&&Bu.checkLineHeight.call(this)},_showNativeTextarea:function(e,t,n){this._insertNativeFail&&Bu._showNativeTextarea.call(this,e,t,n)},defaultValueChange:function(e,t){var n=this;if(this._insertNativeFail)return Bu.defaultValueChange.call(this,e);if(this._insertFinish){if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId)if(Ai)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("updateNativeTextArea",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold,disabled:this.disabled},(function(){n._forceValue=null}))):this._valueQueue=this._valueQueue.slice(this._inputIndex-1);else{var i=this._value;e!==i&&(this._forceValue=e,FinChatJSBridge.invoke("updateNativeTextArea",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold,disabled:this.disabled},(function(){n._forceValue=null,n._keyboardShow||(n._value=e,n._resetInputState())})))}return this._checkPlaceholderStyle(e),this._value=e,e}this.addCb((function(){n.defaultValueChange(e)}))},_focusChange:function(e){if(!this._insertNativeFail)return e&&this.$.textarea.scrollIntoView(!1),(e&&!this._keyboardShow||!e&&this._keyboardShow)&&this._inputId&&FinChatJSBridge.invoke("updateNativeTextArea",{cid:this._cid,inputId:this._inputId,focus:e},(function(){})),e;Bu._focusChange.call(this,e)}},Fu=Ke()({},Ru,{template:function(e,t,n){return[{t:1,n:"div",id:"wrapped",st:{v:"width:100%;height:100%;"},a:[{n:"role",v:"textbox"},{n:"aria-label",e:function(e,t,n){return e.ariaLabel+" "+(e.disabled?"已禁用":"")},l:null,b:[[null,"ariaLabel"],[null,"disabled"]]},{n:"aria-hidden",e:function(e,t,n){return e.ariaHidden},l:[null],b:[[null,"ariaHidden"]]}],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width:101%;height:101%;"},a:[],c:[]},{t:1,n:"textarea",id:"textareaTag",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"textarea",a:[{n:"parse-text-content",v:""}],c:[]},{t:1,n:"p",id:"placeholder",cl:{e:function(e,t,n){return"textarea-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"p",id:"placeholderDark",cl:{e:function(e,t,n){return"textarea-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},methods:Ke()({},Bu,$u)});function Du(e){return e=Number(e),isNaN(e)?-1:e}var ju,Vu={is:"wx-textarea",behaviors:["wx-base","wx-class-prefix","wx-data-component"],template:function(e,t,n){return[{t:1,n:"div",id:"wrapped",cl:{v:"wx-dev-textarea"},a:[],c:[{t:1,n:"div",id:"placeholder",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.placeholder},b:[[null,"placeholder"]],t:3}]},{t:1,n:"textarea",id:"textarea",a:[{n:"data-input",o:"$",e:function(e,t,n){return e._inputId},l:[null],b:[[null,"_inputId"]]},{n:"maxlength",o:"$",e:function(e,i,o){return t(o,n,"_getMaxlength",[e.maxlength])},l:null,b:[[null,"_getMaxlength"],[null,"maxlength"]]}],c:[]},{t:1,n:"div",id:"compute",cl:{v:"compute"},st:{v:"opacity: 0;"},a:[],c:[]},{t:1,n:"div",id:"stylecompute",cl:{e:function(e,t,n){return"textarea-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},properties:{value:{type:String,value:"",public:!0,filter:"defaultValueChange"},maxlength:{type:Number,value:140,public:!0,observer:"maxlengthChanged"},placeholder:{type:String,value:"",public:!0},hidden:{type:Boolean,value:!1,public:!0},disabled:{type:Boolean,value:!1,public:!0},focus:{type:Number,value:0,public:!0,filter:"focusChanged"},autoFocus:{type:Boolean,value:!1,public:!0},placeholderClass:{type:String,value:"textarea-placeholder",observer:"_placeholderClassChange",public:!0},placeholderStyle:{type:String,value:"",filter:function(e){return wx.transformRpx(e,!0)},observer:"_getComputePlaceholderStyle",public:!0},autoHeight:{type:Boolean,value:!1,public:!0,observer:"autoHeightChanged"},cursor:{type:null,value:-1,public:!0},selectionStart:{type:null,value:-1,public:!0},selectionEnd:{type:null,value:-1,public:!0},confirmType:{type:String,value:"return",public:!0},confirmHold:{type:Boolean,value:!1,public:!0},adjustKeyboardTo:{type:String,value:"cursor",public:!0}},data:{_prefixedPlaceholderClass:""},listeners:{tap:function(){},"textarea.input":"onTextAreaInput","textarea.focus":"onTextAreaFocus","textarea.blur":"onTextAreaBlur"},created:function(){this.bindMethod(["input"])},attached:function(){var e=this;this._inputId=v()(),this._attached=!0,this._placeholderClassChange(this.placeholderClass),this.__scale=750/window.innerWidth,this.getComputedStyle(),this.checkRows(this.value||this.placeholder),this.__updateTextArea=this.updateTextArea.bind(this),document.addEventListener("pageReRender",this.__updateTextArea),this.__routeDoneId=ftparser.addListenerToElement(document,"routeDone",(function(){e.checkAutoFocus()})),this.__setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",(function(t){if(e._keyboardShow){var n=t.detail.value,i=t.detail.cursor;void 0!==n&&(e.value=n),void 0!==i&&-1!==i&&(e.$.textarea.setSelectionRange(i,i),e.cursor=i)}})),this.checkPlaceholderStyle(this.value),this.__inputCompositionstart=this._inputCompositionstart.bind(this),this.__inputCompositionend=this._inputCompositionend.bind(this),this.$.textarea.addEventListener("compositionstart",this.__inputCompositionstart),this.$.textarea.addEventListener("compositionend",this.__inputCompositionend)},detached:function(){document.removeEventListener("pageReRender",this.__updateTextArea),ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.__setKeyboardValueId),this.$.textarea.removeEventListener("compositionstart",this.__inputCompositionstart),this.$.textarea.removeEventListener("compositionend",this.__inputCompositionend)},methods:{resetFormData:function(){this.$.textarea.value="",this.value=""},getFormData:function(e){var t=this;this.value=this.$.textarea.value,setTimeout((function(){"function"==typeof e&&e(t.value)}),0)},couldFocus:function(e){var t=this;this._attached&&(!this._keyboardShow&&e?this.disabled||window.requestAnimationFrame((function(){t.selectionStart=Du(t.selectionStart),t.selectionEnd=Du(t.selectionEnd),t.cursor=Du(t.cursor),t.$.textarea.focus({preventScroll:!0}),-1!==t.selectionStart?t.$.textarea.setSelectionRange(t.selectionStart,t.selectionEnd):(t.$.textarea.setSelectionRange(t.cursor,t.cursor),t.selectionStart=-1,t.selectionEnd=-1,t.cursor=-1)})):this._keyboardShow&&!e&&this.$.textarea.blur())},focusChanged:function(e){return this.couldFocus(Boolean(e)),e},checkAutoFocus:function(){this.__autoFocused||(this.__autoFocused=!0,this.couldFocus(this.autoFocus||this.focus))},_inputCompositionstart:function(){this.inputIgnore=!0},_inputCompositionend:function(e){this.inputIgnore=!1,this.onTextAreaInput(e)},getHexColor:function(e){try{var t,n,i=function(){if(e.indexOf("#")>=0)return{v:e};t=e.match(/\d+/g);var i=[];return t.forEach((function(e,t){if(t<3){var n=_()(e);n=n>9?n.toString(16):"0"+n,i.push(n)}})),t.length>3&&(0===(n=Dt()(t.slice(3).join(".")))?i.push("00"):n>=1?i.push("ff"):(n=(n=_()(255*n))>9?n.toString(16):"0"+n,i.push(n))),{v:"#"+i.join("")}}();if("object"===Ce()(i))return i.v}catch(e){return""}},getComputedStyle:function(){var e=window.getComputedStyle(this.$$),t=this.$$.getBoundingClientRect(),n=["Left","Right"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])})),i=["Top","Bottom"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])})),o=this.$.textarea,r=19.2;this.value&&(r=0),o.style.width=t.width-n[0]-n[1]+"px",o.style.height=t.height-i[0]-i[1]+"px",o.style.fontWeight=e.fontWeight,o.style.fontSize=e.fontSize||"16px",o.style.color=e.color,o.style.lineHeight=Math.max(1.2*Dt()(e.fontSize),r)+"px",o.style.textAlign=e.textAlign,this.$.compute.style.fontSize=e.fontSize||"16px",this.$.compute.style.width=o.style.width,this.$.placeholder.style.width=o.style.width,this.$.placeholder.style.height=o.style.height,this._styleMaxHeight=Dt()(e.maxHeight.replace("px")),this.autoHeight&&this._lineHeight&&this._lineHeight>this._styleMaxHeight&&(this.$$.style.maxHeight=this._lineHeight+"px"),this.disabled?o.setAttribute("disabled",!0):o.removeAttribute("disabled")},getCurrentRows:function(e,t){var n=e.lastIndexOf("\n")===e.length-1;this.$.compute.innerText=(n?e+"a":e)||"a";var i=window.getComputedStyle(this.$.compute),o=1.2*(Dt()(i.fontSize)||16);t({height:Math.max(this.$.compute.scrollHeight,o),heightRpx:this.__scale*this.$.compute.scrollHeight,lineHeight:o,lineCount:Math.floor(this.$.compute.scrollHeight/o)})},onTextAreaInput:function(e){this.value=e.target.value;var t=this.__modelValueName&&this.__modelValueName.value;if(!this.inputIgnore&&(this.bindinput||t)){var n={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:t},data:{type:"input",timestamp:v()(),detail:{value:e.target.value,cursor:this.$.textarea.selectionEnd},target:n,currentTarget:n,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),isIDE:!0}})}return!1},onTextAreaFocus:function(){this._keyboardShow=!0,this.triggerEvent("focus",{value:this.value,height:0})},onTextAreaBlur:function(){this._keyboardShow=!1,this.triggerEvent("blur",{value:this.value,cursor:this.$.textarea.selectionEnd})},updateTextArea:function(){this.checkAutoFocus(),this.getComputedStyle(),this.autoHeightChanged(this.autoHeight)},hiddenChanged:function(e){this.$$.style.opacity=e?0:1},_getPlaceholderStyle:function(e){return e+";opacity:0;"},_getComputePlaceholderStyle:function(){var e=this.$.stylecompute,t=window.getComputedStyle(e),n=_()(t.fontWeight,10);isNaN(n)?n=t.fontWeight:n<500?n="normal":n>=500&&(n="bold"),this.placeholderStyle&&this.placeholderStyle.split(";");var i=this.$.placeholder;i.style.position="absolute",i.style.fontSize="".concat(Dt()(t.fontSize)||16,"px"),i.style.fontWeight=n,i.style.color=this.getHexColor(t.color)},_placeholderClassChange:function(e){var t=e.split(/\s+/),n=this.convertClassListWithPrefix(t);this.setData({_prefixedPlaceholderClass:n.join(" ")}),this._getComputePlaceholderStyle()},defaultValueChange:function(e){return this.maxlength>0&&e.length>this.maxlength&&(e=e.slice(0,this.maxlength)),this.checkPlaceholderStyle(e),this.$.textarea.value=e,this._attached&&this.checkRows(e),e},autoHeightChanged:function(e){var t=this;e&&this.getCurrentRows(this.value,(function(e){var n=e.height<e.lineHeight?e.lineHeight:e.height;t.$$.style.height=n+"px",t.getComputedStyle()}))},checkRows:function(e){var t=this;this.getCurrentRows(e,(function(e){if(t.lastRows!==e.lineCount){if(t.lastRows=e.lineCount,t.autoHeight){var n=e.height<e.lineHeight?e.lineHeight:e.height;t._lineHeight=n/(e.lineCount||1),t.$$.style.height=n+"px",t.getComputedStyle()}t.triggerEvent("linechange",e)}}))},checkPlaceholderStyle:function(e){e?this.$.placeholder.style.opacity=0:(this._getComputePlaceholderStyle(),this.$.placeholder.style.opacity=1)},_getMaxlength:function(e){return e<=0?-1:e},maxlengthChanged:function(e){e>0&&this.value.length>e&&(this.value=this.value.slice(0,e))}}};ju=O?Vu:Ii().textarea||k?Fu:Ru,window.ftparser.registerElement(ju);var qu=n(52),Hu=n.n(qu);function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Wu,zu=function(e,t){if(A()(e))return e;if(Hu()(Object(e)))return function(e,t){var n,i=[],o=function(e,t){var n=void 0!==ai.a&&e[ci.a]||e["@@iterator"];if(!n){if(A()(e)||(n=function(e,t){if(e){if("string"==typeof e)return Uu(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?Tn()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(i.push(r),t&&i.length===t)break}}catch(e){o.e(e)}finally{o.f()}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Gu={is:"wx-video",behaviors:["wx-base","wx-player"],template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-video-container"},a:[],c:[{t:1,n:"video",id:"player",st:{v:"display: none;"},a:[{n:"webkit-playsinline",v:""},{n:"playsinline",v:""}],c:[]},{t:1,n:"div",id:"videoplaymask",cl:{v:"wx-video-playmask"},a:[],c:[{t:1,n:"div",id:"bigplaybtn",cl:{v:"wx-video-bigplay"},a:[],c:[]},{t:1,n:"div",cl:{v:"wx-video-currenttime"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._duration},b:[[null,"_duration"]],t:3}]}]},{t:1,n:"div",id:"default",cl:{e:function(e,t,n){return"wx-video-bar "+e._barType},b:[[null,"_barType"]]},st:{v:"display: none;"},a:[],c:[{t:1,n:"div",id:"controls",cl:{v:"wx-video-controls"},a:[],c:[{t:1,n:"div",id:"button",cl:{e:function(e,t,n){return"wx-video-button "+e._buttonType},b:[[null,"_buttonType"]]},a:[],c:[]},{t:1,n:"div",id:"curtime",cl:{v:"wx-video-time"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._currentTime},b:[[null,"_currentTime"]],t:3}]},{t:1,n:"div",id:"progress",cl:{v:"wx-video-progress"},a:[],c:[{t:1,n:"div",id:"ball",cl:{v:"wx-video-ball"},st:{e:function(e,t,n){return"left: "+e._progressLeft+"px;"},b:[[null,"_progressLeft"]]},a:[],c:[{t:1,n:"div",cl:{v:"wx-video-inner"},a:[],c:[]}]},{t:1,n:"div",cl:{v:"wx-video-inner"},st:{e:function(e,t,n){return"width: "+e._progressLength+"px;"},b:[[null,"_progressLength"]]},a:[],c:[]}]},{t:1,n:"div",id:"durtime",cl:{v:"wx-video-time"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._duration},b:[[null,"_duration"]],t:3}]},{t:1,n:"div",id:"danmuBtn",cl:{e:function(e,t,n){return"wx-video-danmu-btn "+e._danmuStatus},b:[[null,"_danmuStatus"]]},a:[],c:[{c:"弹幕",t:3}]},{t:1,n:"div",id:"fullscreen",cl:{v:"wx-video-fullscreen"},a:[],c:[]},{t:1,n:"div",id:"muted",cl:{v:"wx-video-mute-on"},a:[],c:[]}]}]},{t:1,n:"div",id:"danmu",cl:{v:"wx-video-danmu"},st:{v:"z-index: -9999;pointer-events:none;"},a:[],c:[]}]},{t:1,n:"div",id:"fakebutton",a:[],c:[]}]},options:{renderingMode:"full"},listeners:{"ball.touchstart":"onBallTouchStart"},properties:{hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"},autoplay:{type:Boolean,value:!1,public:!0},loop:{type:Boolean,value:!1,public:!0},poster:{type:String,value:"",public:!0,observer:"posterChanged"},danmuBtn:{type:Boolean,value:!1,public:!0,observer:"danmuBtnChanged"},enableDanmu:{type:Boolean,value:!1,observer:"enableDanmuChanged",public:!0},enableFullScreen:{type:Boolean,value:!1,public:!0},controls:{type:Boolean,value:!0,public:!0,observer:"controlsChanged"},initialTime:{type:Number,value:0,public:!0,observer:"initialTimeChanged"},showProgress:{type:Boolean,value:!0,public:!0,observer:"showProgressChanged"},showFullscreenBtn:{type:Boolean,value:!0,public:!0,observer:"showFullscreenBtnChanged"},showPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showPlayBtnChanged"},showMuteBtn:{type:Boolean,value:!1,public:!0,observer:"showMuteBtnChanged"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"},showCenterPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showCenterPlayBtnChanged"},danmuList:{type:Array,value:[],public:!0,observer:"danmuListChanged"},objectFit:{type:String,value:"contain",public:!0,observer:"objectFitChanged"},duration:{type:Number,value:0,public:!0,observer:"durationChanged"},_videoId:{type:Number},_isLockTimeUpdateProgress:{type:Boolean,value:!1},_rate:{type:Number,value:0},_progressLeft:{type:Number,value:-22},_progressLength:{type:Number,value:0},_barType:{type:String,value:"full"},_danmuStatus:{type:String,value:""}},attached:function(){var e=this;this._addListeners(),this.duration<0&&(this.duration=0),FinChatJSBridge.publish("videoPlayerInsertFinish",{domId:this.id,videoPlayerId:0}),this.$.player.$$.currentTime=this.initialTime,this.$.player.$$.style.display="block",this.$.player.$$.autoplay=this.autoplay,this.$.player.$$.loop=this.loop,this.$.player.$$.style.objectFit=this.objectFit,this.$.player.$$.poster=this.poster,this.$.progress.$$.style.opacity=this.showProgress?"block":"none",this.$.curtime.$$.style.display=this.showProgress?"block":"none",this.$.durtime.$$.style.display=this.showProgress?"block":"none",this.$.fullscreen.style.display=this.showFullscreenBtn?"block":"none",this.$.muted.$$.style.display=this.showMuteBtn?"block":"none",this.$.player.$$.volume=this.muted?0:1,this.$.muted.$$.className=this.muted?"wx-video-mute-off":"wx-video-mute-on",this.$.button.$$.style.display=this.showPlayBtn?"block":"none",this.$.bigplaybtn.$$.style.display=this.showCenterPlayBtn?"block":"none",this.$.danmuBtn.style.display=this.danmuBtn?"block":"none",this.showCenterPlayBtn||(this.$.videoplaymask.$$.style.display="none",this.$.default.style.display="block"),this.danmuListChanged(this.danmuList),this.controlsChanged(this.controls),this.srcChanged(this.src),this.$$.clientWidth<241&&(this.$.curtime.$$.style.display="none",this.$.progress.$$.style.opacity=0,this.$.durtime.$$.style.display="none"),this.$.bigplaybtn.$$.onclick=function(t){t.stopPropagation(),e._playVideo()},this.$.muted.$$.onclick=function(t){t.stopPropagation(),e.muted=!e.muted},this.$.button.$$.onclick=function(t){t.stopPropagation(),e.$.player.$$[e._buttonType]()},this.$.progress.$$.onclick=function(t){t.stopPropagation();var n=e._computeRate(t.clientX);e.$.player.$$.currentTime=e.$.player.$$.duration*n,e._resetDanmu()},this.$.fullscreen.$$.onclick=function(t){t.stopPropagation(),"android"===wd.getPlatform()?e.enableFullScreen=!0:e.enableFullScreen=!e.enableFullScreen,e.enableFullScreen&&e.$.player.$$.webkitEnterFullscreen(),e.triggerEvent("togglefullscreen",{enable:e.enableFullScreen}),FinChatJSBridge.publish("operateVideoPlayer",{domId:this.id,videoPlayerId:this.videoPlayerId,type:"fullscreen"})},this.$.danmuBtn.$$.onclick=function(t){t.stopPropagation(),e.enableDanmu=!e.enableDanmu,e.triggerEvent("toggledanmu",{enable:e.enableDanmu})},FinChatJSBridge.subscribe("video_"+this.id+"_actionChanged",(function(t){e.action=t,e.actionChanged(t)})),wd.onAppEnterBackground((function(t){e.$.player.$$.pause()}))},methods:{_addListeners:function(){var e=this;if(this.$.player){for(var t=this.$.player.$$||this.$.player,n=this,i={},o=0,r=E()(MediaError);o<r.length;o++){var a=r[o];i[MediaError[a]]=a}t.onerror=function(e){if(e.stopPropagation(),e.srcElement.error){var t=e.srcElement.error.code;n._publish("error",{errMsg:i[t]})}},t.onplaying=function(e){n.playing=!0,e.stopPropagation(),n._buttonType="pause",n.paused=!1},t.onwaiting=function(e){n.playing=!1,e.stopPropagation(),n._publish("waiting",{}),n._buttonType="waiting","function"==typeof n.onWaiting&&n.onWaiting(e)},t.onplay=function(e){n.playing=!0,e.stopPropagation(),n._publish("play",{}),n._buttonType="pause","function"==typeof n.onPlay&&n.onPlay(e),n.paused=!1},t.onpause=function(e){n.playing=!1,e.stopPropagation(),n._publish("pause",{}),n._buttonType="play","function"==typeof n.onPause&&n.onPause(e),n.paused=!0},t.onended=function(e){n.playing=!1,e.stopPropagation(),n._publish("ended",{}),"function"==typeof n.onEnded&&n.onEnded(e)},t.onratechange=function(e){e.stopPropagation(),n._publish("ratechange",{playbackRate:t.playbackRate})};var s=0;t.addEventListener("timeupdate",(function(e){e.stopPropagation(),Math.abs(t.currentTime-s)%t.duration>=1&&(n._publish("timeupdate",{currentTime:t.currentTime,duration:t.duration}),s=1e3*t.currentTime),n._isLockTimeUpdateProgress||(n._currentTime=n._formatTime(Math.floor(t.currentTime))),"function"==typeof n.onTimeUpdate&&n.onTimeUpdate(e)})),t.addEventListener("progress",(function(e){e.stopPropagation(),n._publish("progress",{buffered:t.currentTime/t.duration*100}),"function"==typeof n.onProgress&&n.onProgress(e)})),t.addEventListener("durationchange",(function(){t.duration===1/0?e._isLive=!0:e._isLive=!1,isNaN(t.duration)||0!==e.duration||(n._duration=n._formatTime(Math.floor(t.duration)))}))}},_reset:function(){this._buttonType="play",this._currentTime="00:00",this._duration=this._formatTime(Math.round(this.duration)),this._progressLeft=-22,this._progressLength=0,this._barType=this.controls?"full":"part"},_hiddenChanged:function(e,t){this.$.player.$$.pause(),this.$$.style.display=e?"none":""},posterChanged:function(e){this.$.player.$$.poster=this.getRealRoute(e)},srcChanged:function(e,t){if(e){var n=this;console.log(this.getRealRoute(e)),this.$.player.$$.src=this.getRealRoute(e),setTimeout((function(){n._reset()}),0)}},initialTimeChanged:function(e){this.$.player.$$.currentTime=e},showProgressChanged:function(e,t){this.$.progress.$$.style.opacity=e?1:0,this.$.curtime.$$.style.display=e?"block":"none",this.$.durtime.$$.style.display=e?"block":"none"},showFullscreenBtnChanged:function(e){this.$.fullscreen.style.display=e?"block":"none"},showMuteBtnChanged:function(e){this.$.muted.$$.style.display=e?"block":"none"},showPlayBtnChanged:function(e){this.$.button.$$.style.display=e?"block":"none"},showCenterPlayBtnChanged:function(e){this.$.videoplaymask.$$.style.display=e?"block":"none"},mutedChanged:function(e){this.$.player.$$.volume=e?0:1,this.$.muted.$$.className=e?"wx-video-mute-off":"wx-video-mute-on"},controlsChanged:function(e,t){this._setBarType(),this.$.controls.$$.style.display=e?"flex":"none"},objectFitChanged:function(e,t){this.$.player.$$.style.objectFit=e},durationChanged:function(e,t){e>0&&(this._duration=this._formatTime(Math.round(e)))},danmuBtnChanged:function(e,t){this._setBarType(),this.$.danmuBtn.style.display=e?"block":"none"},enableDanmuChanged:function(e,t){this._danmuStatus=e?"active":"",this.$.danmu.style.zIndex=e?"0":"-9999"},actionChanged:function(e,t){if("object"===Ce()(e)){var n=e.method,i=e.data;if("play"===n)this._playVideo();else if("pause"===n)this.$.player.$$.pause();else if("seek"===n)this.$.player.$$.currentTime=i[0],this._resetDanmu();else if("sendDanmu"===n){var o=zu(i,2),r=o[0],a=o[1],s=_()(this.$.player.$$.currentTime);this.danmuObject[s]?this.danmuObject[s].push({text:r,color:a,time:s}):this.danmuObject[s]=[{text:r,color:a,time:s}]}else"stop"===n?(this.$.player.$$.currentTime=0,this.$.player.$$.pause()):"playbackRate"===n?this.$.player.$$.playbackRate=i[0]:"exitFullScreen"===n?document.exitFullscreen():"requestFullScreen"===n&&(this.$.player.$$.fullscreenElement||this.$.player.$$.requestFullscreen())}},onPlay:function(){var e=this,t=document.querySelectorAll(".wx-video-danmu-item");Array.prototype.forEach.apply(t,[function(t){var n=3*(_()(getComputedStyle(t).left)+t.offsetWidth)/(t.offsetWidth+e.$$.offsetWidth);t.style.left="-"+t.offsetWidth+"px",t.style.transitionDuration=n+"s",t.style.webkitTransitionDuration=n+"s"}])},onPause:function(e){var t=document.querySelectorAll(".wx-video-danmu-item");Array.prototype.forEach.apply(t,[function(e){e.style.left=getComputedStyle(e).left}])},onEnded:function(e){},_computeRate:function(e){var t=(e-this.$.progress.$$.getBoundingClientRect().left)/this.$.progress.$$.offsetWidth;return t<0?t=0:t>1&&(t=1),t},_setProgress:function(e){this._progressLength=Math.floor(this.$.progress.$$.offsetWidth*e),this._progressLeft=this._progressLength-22},_sendDanmu:function(e){if(this.playing&&!e.flag){e.flag=!0;var t=document.createElement("p");t.className+="wx-video-danmu-item",t.textContent=e.text,t.style.top=this._genDanmuPosition()+"%",t.style.color=e.color,this.$.danmu.$$.appendChild(t),t.style.left="-"+t.offsetWidth+"px"}},_genDanmuPosition:function(){if(this.lastDanmuPosition){var e=100*Math.random();Math.abs(e-this.lastDanmuPosition)<10?this.lastDanmuPosition=(this.lastDanmuPosition+50)%100:this.lastDanmuPosition=e}else this.lastDanmuPosition=100*Math.random();return this.lastDanmuPosition},_playVideo:function(){this.$.player.$$.play(),this._buttonType="pause",this.$.default.style.display="",this.$.videoplaymask.$$.style.display="none"},danmuListChanged:function(e){this.danmuObject=e.reduce((function(e,t){return"number"==typeof t.time&&t.time>=0&&"string"==typeof t.text&&t.text.length>0&&(e[t.time]?e[t.time].push({text:t.text,color:t.color||"#ffffff"}):e[t.time]=[{text:t.text,color:t.color||"#ffffff"}]),e}),{})},onTimeUpdate:function(e){var t=this;e.stopPropagation();var n=this.$.player.$$.duration;n>this.duration&&0!==this.duration&&(n=this.duration);var i=this.$.player.$$.currentTime/n;this._isLockTimeUpdateProgress||this._setProgress(i);var o=this.danmuObject[_()(this.$.player.$$.currentTime)];void 0!==o&&o.length>0&&o.forEach((function(e){t._sendDanmu(e)}))},onBallTouchStart:function(){var e="touchmove",t="touchend";if(!this.isLive){var n=this;n._isLockTimeUpdateProgress=!0;var i=function(e){e.stopPropagation(),e.preventDefault(),n._rate=n._computeRate(e.touches[0].clientX),n._setProgress(n._rate)};document.addEventListener(e,i,{passive:!1}),document.addEventListener(t,(function o(r){n.$.player.$$.currentTime=n.$.player.$$.duration*n._rate,document.removeEventListener(e,i),document.removeEventListener(t,o),n._isLockTimeUpdateProgress=!1,n._resetDanmu()}))}},_resetDanmu:function(){var e=this;this.$.danmu.$$.innerHTML="",E()(this.danmuObject).forEach((function(t){e.danmuObject[t].forEach((function(e){e.flag=!1}))}))},_setBarType:function(){this.controls?this._barType="full":this.danmuBtn?this._barType="part":this._barType="none"}}},Yu={is:"wx-video",behaviors:["wx-base","wx-player","wx-native","wx-positioning-target"],template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-video-container"},st:{},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width: 101%; height: 101%;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",cl:{v:"wx-video-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},properties:{autoplay:{type:Boolean,value:!1,public:!0,observer:"autoplayChanged"},danmuBtn:{type:Boolean,value:!1,public:!0,observer:"danmuBtnChanged"},enableDanmu:{type:Boolean,value:!1,observer:"enableDanmuChanged",public:!0},controls:{type:Boolean,value:!0,public:!0,observer:"controlsChanged"},danmuList:{type:Array,value:[],public:!0,observer:"danmuListChanged"},objectFit:{type:String,value:"contain",public:!0,observer:"objectFitChanged"},initialTime:{type:Number,value:0,public:!0,observer:"initialTimeChanged"},duration:{type:Number,value:0,public:!0},live:{type:Number,value:!1,public:!0,observer:"liveChanged"},src:{type:String,value:"",public:!0,observer:"_srcChanged"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"},loop:{type:Boolean,value:!1,public:!0,observer:"loopChanged"},poster:{type:String,value:"",public:!0,observer:"_posterChanged"},backgroundPoster:{type:String,value:"",public:!0,observer:"_backgroundPosterChanged"},pageGesture:{type:Boolean,value:!1,public:!0,observer:"pageGestureChanged"},direction:{type:Number,value:-1,public:!0,observer:"directionChanged"},customCache:{type:Boolean,value:!0,public:!0},showLiveBtn:{type:Boolean,value:!0,public:!0,observer:"showLiveBtnChanged"},showProgress:{type:Boolean,value:!0,public:!0,observer:"showProgressChanged"},showFullscreenBtn:{type:Boolean,value:!0,public:!0,observer:"showFullscreenBtnChanged"},showPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showPlayBtnChanged"},showCenterPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showCenterPlayBtnChanged"},enableProgressGesture:{type:Boolean,value:!0,public:!0,observer:"enableProgressGestureChanged"},showScreenLockButton:{type:Boolean,value:!1,public:!0,observer:"showScreenLockButtonChanged"},enableAutoRotation:{type:Boolean,value:!1,public:!0,observer:"enableAutoRotationChanged"},showSnapshotButton:{type:Boolean,value:!1,public:!0,observer:"showSnapshotButtonChanged"},showBackgroundPlaybackButton:{type:Boolean,value:!1,public:!0,observer:"showBackgroundPlaybackButtonChanged"},showMuteBtn:{type:Boolean,value:!1,public:!0,observer:"showMuteBtnChanged"},showCastingButton:{type:Boolean,value:!1,public:!0,observer:"showCastingBtnChanged"},title:{type:String,value:"",public:!0,observer:"titleChanged"},playBtnPosition:{type:String,value:"bottom",public:!0,observer:"playBtnPositionChanged"},enablePlayGesture:{type:Boolean,value:!1,public:!0,observer:"enablePlayGestureChanged"},autoPauseIfNavigate:{type:Boolean,value:!0,public:!0,observer:"autoPauseIfNavigateChanged"},autoPauseIfOpenNative:{type:Boolean,value:!0,public:!0,observer:"autoPauseIfOpenNativeChanged"},vslideGesture:{type:Boolean,value:!1,public:!0,observer:"pageGestureChanged"},vslideGestureInFullscreen:{type:Boolean,value:!0,public:!0,observer:"vslideGestureInFullscreenChanged"},_webLayerFailed:{type:Boolean,value:!1},_insert2WebLayer:{type:Boolean,value:!1},pictureInPictureMode:{value:"",public:!0,observer:"pictureInPictureModeChanged"},pictureInPictureShowProgress:{type:Boolean,value:!1,public:!0,observer:"pictureInPictureShowProgressChanged"},bindenterpictureinpicture:{type:String,value:"",public:!0},bindleavepictureinpicture:{type:String,value:"",public:!0}},options:{renderingMode:"full"},created:function(){this.createdTimestamp=v()(),this._rawCurrentTime=0,this._rawDuration=0,this._buffered=0,this.playStatus=!1},attached:function(){var e=this,t=z();this.__pageReRenderCallback=function(){e._needUpdate&&T&&M(t,"16.0")||(e._getFixed(),e._pageReRenderCallback())},this._attachedCb()},detached:function(){this._removeListeners(),this._detachedCb()},methods:{play:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"play"},(function(){}))},pause:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"pause"},(function(){}))},stop:function(){var e=this;FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"stop"},(function(){var t=e.$.container.$$.querySelector(".poster");t&&(t.style.display="block")}))},seek:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;isNaN(e)||FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"seek",position:e},(function(){}))},playbackRate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"playbackRate",rate:e},(function(){}))},sendDanmu:function(e,t){e&&FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"sendDanmu",text:e,color:Y(t,!N)},(function(){}))},requestFullScreen:function(e){var t=[0,90,-90].indexOf(e)>-1?e:void 0;FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"requestFullScreen",direction:t},(function(){}))},exitFullScreen:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"exitFullScreen"},(function(){}))},showStatusBar:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"showStatusBar"},(function(){}))},hideStatusBar:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"hideStatusBar"},(function(){}))},exitPictureInPicture:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"exitPictureInPicture"},(function(){}))},requestBackgroundPlayback:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"requestBackgroundPlayback"},(function(){}))},exitBackgroundPlayback:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"exitBackgroundPlayback"},(function(){}))},_delay:function(e,t,n){this._deferred.push({callback:e,args:[t,n]})},_updateZIndex:function(e){this._update({zIndex:e,position:this._box})},hiddenChanged:function(e){var t=this;e?(N||this._videoId)&&FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"pause"},(function(){})):this.playStatus&&FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"play"},(function(){})),setTimeout((function(){e&&window.__isFullScreen&&FinChatJSBridge.operateVideoPlayer({videoPlayerId:t._videoId,type:"exitFullScreen",data:[]})}),e?200:0)},_posterChanged:function(e){var t=this.$.container.$$.querySelector(".poster");t&&(t.style.backgroundImage="url(".concat(e,")")),!this._isError&&e&&this._update({poster:this.getRealRoute(e)})},_backgroundPosterChanged:function(e){!this._isError&&e&&this._update({backgroundPoster:this.getRealRoute(e)})},_srcChanged:function(e){!this._isError&&e&&(this._isReady?/^((\/)|(\.[./]?))/.test(e)?this.triggerEvent("error",{errMsg:"Media src not supported."}):this._update({src:this.getRealRoute(e),initialTime:this.initialTime}):this._deferred.push({callback:"_srcChanged",args:[e]}))},handlersChanged:function(){this._update()},autoplayChanged:function(e){this._update({autoplay:e})},controlsChanged:function(e){this._update({controls:e})},danmuBtnChanged:function(e){this._update({danmuBtn:e})},enableDanmuChanged:function(e){this._update({enableDanmu:e})},mutedChanged:function(e){this._update({muted:e})},loopChanged:function(e){this._update({loop:e})},pageGestureChanged:function(e){this._update({vslideGesture:e})},directionChanged:function(e){var t={};[0,90,-90].indexOf(e)>-1&&(t.direction=e,this._update(t))},danmuListChanged:function(e){this._update({danmuList:e})},objectFitChanged:function(e){var t=this.$.container.$$.querySelector(".poster");if(t){var n="fill"===e?"100%":e;t.style.backgroundSize=n}this._update({objectFit:e})},showProgressChanged:function(e){this._update({showProgress:e})},showLiveBtnChanged:function(e){this._update({showLiveBtn:e})},showFullscreenBtnChanged:function(e){this._update({showFullscreenBtn:e})},showPlayBtnChanged:function(e){this._update({showPlayBtn:e})},showCenterPlayBtnChanged:function(e){this._update({showCenterPlayBtn:e})},enableProgressGestureChanged:function(e){this._update({enableProgressGesture:e})},showScreenLockButtonChanged:function(e){this._update({showScreenLockButton:e})},enableAutoRotationChanged:function(e){this._update({enableAutoRotation:e})},showSnapshotButtonChanged:function(e){this._update({showSnapshotButton:e})},showBackgroundPlaybackButtonChanged:function(e){this._update({showBackgroundPlaybackButton:e})},initialTimeChanged:function(e){this._update({initialTime:e})},showMuteBtnChanged:function(e){this._update({showMuteBtn:e})},showCastingBtnChanged:function(e){this._update({showCastingButton:e})},titleChanged:function(e){this._update({title:e})},playBtnPositionChanged:function(e){this._update({playBtnPosition:e})},enablePlayGestureChanged:function(e){this._update({enablePlayGesture:e})},autoPauseIfNavigateChanged:function(e){this._update({autoPauseIfNavigate:e})},autoPauseIfOpenNativeChanged:function(e){this._update({autoPauseIfOpenNative:e})},vslideGestureInFullscreenChanged:function(e){this._update({vslideGestureInFullscreen:e})},_actionChanged:function(e){"function"==typeof this[e.method]&&this[e.method].apply(this,e.data)},getContextId:function(){return this._videoId},_attachedCb:function(){this._isInserting||(this._isInserting=!0,window.__delayFullScreenUpdateCss=!0,this._videoId="native-video-".concat(this.getNodeId(),"-").concat(this._id),this._getFixed(),this._box=this._getBox(),this.id||(this.id="video-".concat(this._videoId)),this.$$.setAttribute("aria-video-id",this._videoId),this._insert(),this._addListeners())},_insert:function(){var e=this,t={position:this._box,hide:this.hidden,enableDanmu:this.enableDanmu,danmuBtn:this.danmuBtn,controls:this.controls,objectFit:this.objectFit,autoplay:this.autoplay,danmuList:this.danmuList,live:this.live,muted:this.muted,loop:this.loop,vslideGesture:this.pageGesture||this.vslideGesture,vslideGestureInFullscreen:this.vslideGestureInFullscreen,domId:this.id,videoPlayerId:this._videoId,initialTime:this.initialTime,customCache:this.customCache,showProgress:this.showProgress,showControlProgress:this._box.width>240,showLiveBtn:this.showLiveBtn,showPlayBtn:this.showPlayBtn,showCenterPlayBtn:this.showCenterPlayBtn,showFullscreenBtn:this.showFullscreenBtn,enableProgressGesture:this.enableProgressGesture,showScreenLockButton:this.showScreenLockButton,enableAutoRotation:this.enableAutoRotation,showSnapshotButton:this.showSnapshotButton,showBackgroundPlaybackButton:this.showBackgroundPlaybackButton,showMuteBtn:this.showMuteBtn,title:this.title,playBtnPosition:this.playBtnPosition,enablePlayGesture:this.enablePlayGesture,autoPauseIfNavigate:this.autoPauseIfNavigate,autoPauseIfOpenNative:this.autoPauseIfOpenNative,zIndex:this._getCurrentZIndex(),poster:this.poster,fixed:this._fixed,showCastingButton:this.showCastingButton,pictureInPictureShowProgress:this.pictureInPictureShowProgress};this.pictureInPictureMode&&(t.pictureInPictureMode=this.getPictureInPictureMode(this.pictureInPictureMode)),this.src&&(/^((\/)|(\.[./]?))/.test(this.src)?this.triggerEvent("error",{errMsg:"Media src not supported."}):(t.src=this.getRealRoute(this.src),t.initialTime=this.initialTime)),this.duration>0&&(t.duration=this.duration),[0,90,-90].indexOf(this.direction)>-1&&(t.direction=this.direction),this.autoplay&&(this.playStatus=!0);var n=function(){e._isInserting=!1,e.insertSuccess=!0,e.findCoverView(e._videoId,{});var t={domId:e.id,videoPlayerId:e._videoId};FinChatJSBridge.publish("videoPlayerInsertFinish",t),e.pictureinpictureCb(),e._detached&&e.removeNativeView("removeVideoPlayer",{videoPlayerId:e._videoId})};if(k&&Ii().video){var i=document.createElement("video-player");return this.$.inner.$$.style.display="none",this.$.container.$$.append(i),i.setAttribute(J("videoPlayerId"),t.videoPlayerId),i.setAttribute("data",ce()(t)),i.getBoundingClientRect(),void setTimeout((function(){var i=document.createElement("video-controller");i.setAttribute(J("videoPlayerId"),t.videoPlayerId);var o=document.createElement("div");o.classList.add("poster");var r=document.createElement("div");r.classList.add("background"),e.$.container.$$.append(o),e.$.container.$$.append(i),e.$.container.$$.append(r),n(),e._ready()}),0)}this.insertNativeView("insertVideoPlayer",t,(function(t){/:ok/.test(t.errMsg)?n():e._isError=!0}))},pictureinpictureCb:function(){this.bindenterpictureinpicture&&FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",this.getPictureInIicture(this.bindenterpictureinpicture,"enter")),this.bindleavepictureinpicture&&FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",this.getPictureInIicture(this.bindleavepictureinpicture,"leave"))},getPictureInIicture:function(e,t){var n={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};return{eventName:e,data:{data:{type:"video",timeStamp:v()(),detail:{},target:n,currentTarget:n,touches:[]},videoPlayerId:this._videoId,source:t,eventName:e,nodeId:this.getNodeId()}}},_update:function(e){if(!this._isError)if(this._isReady){var t={};t.videoPlayerId=this._videoId,t.hide=this.hidden,t.objectFit=this.objectFit,t.autoplay=this.autoplay,t.live=this.live,t.customCache=this.customCache,t.showControlProgress=window.__isFullScreen||this._box.width>240,this.duration>0&&(t.duration=this.duration),e.danmuList&&!N&&e.danmuList.forEach((function(e){e.color=Y(e.color,!0)})),t=Ke()(t,e),this.updateNativeView("updateVideoPlayer",t,(function(){}))}else this._delay("_update",e)},_updatePosition:function(){this._update({position:this._box,fixed:this._fixed})},_detachedCb:function(){var e=this;this._detached=!0,this.removeNativeView("removeVideoPlayer",{videoPlayerId:this._videoId},(function(t){FinChatJSBridge.publish("videoPlayerRemoved",{domId:e.id,videoPlayerId:e._videoId})}))},_addListeners:function(){var e=this,t=function(t,n){return ftparser.addListenerToElement(document,t,(function(t){t.detail.videoPlayerId===e._videoId&&n(t)}))};O&&(this._pause=function(){e.pause()},wd.onAppEnterBackground(this._pause)),this._onPlayId=t("onVideoPlay",(function(t){e.playStatus=!0,e.triggerEvent("play",{}),setTimeout((function(){var t=e.$.container.$$.querySelector(".poster");t&&(t.style.display="none")}),100)})),this._onPauseId=t("onVideoPause",(function(){e.hidden||(e.playStatus=!1),e.triggerEvent("pause",{})})),this._onEnded=t("onVideoEnded",(function(){e._rawCurrentTime=0,e.triggerEvent("ended",{})})),this._onError=t("onVideoError",(function(t){var n=t.detail.errMsg||"";e.triggerEvent("error",{errMsg:n})})),this._onTimeUpdate=t("onVideoTimeUpdate",(function(t){var n=t.detail,i=n.duration,o=void 0===i?0:i,r=n.currentTime,a=void 0===r?0:r;e._rawCurrentTime=a||0,e._rawDuration=o||0,e.triggerEvent("timeupdate",{duration:o,currentTime:a})})),this._onLoadedMetaData=t("onVideoLoadedMetaData",(function(t){var n=t.detail,i=n.duration,o=void 0===i?0:i,r=n.width,a=void 0===r?0:r,s=n.height,c=void 0===s?0:s;e.triggerEvent("loadedmetadata",{duration:o,width:a,height:c})})),this._onProgress=t("onVideoProgress",(function(t){var n=t.detail.buffered;e._buffered=n||0,e.triggerEvent("progress",{buffered:n})})),this._onWaiting=t("onVideoWaiting",(function(){e.triggerEvent("waiting",{})})),this._onSeeked=t("onVideoSeeked",(function(t){var n=t.detail.position;e.triggerEvent("seekcomplete",{position:n})})),this._onControlsToggle=t("onVideoControlsToggle",(function(t){var n=t.detail.show;e.triggerEvent("controlstoggle",{show:n})})),this._onFullscreenId=t("onVideoFullscreenChange",(function(t){var n=t.detail,i=n.fullScreen,o=n.direction;e.triggerEvent("fullscreenchange",{fullScreen:i,direction:o})})),this._onObjectFit=t("onVideoObjectfit",(function(t){var n=t.detail,i=n.width,o=n.height,r=n.fullScreen,a=e.$.container.$$.querySelector("video-player");a&&(a.style.width=i+"px",a.style.height=o+"px",r?(a.setAttribute("data-width-fullscreen",i),a.setAttribute("data-height-fullscreen",o)):(a.setAttribute("data-width",i),a.setAttribute("data-height",o)))})),FinChatJSBridge.subscribe("video_".concat(this._videoId,"_actionChanged"),this._actionChanged.bind(this)),document.addEventListener("pageReRender",this.__pageReRenderCallback),document.addEventListener("pageCssUpdate",this.__pageReRenderCallback)},_removeListeners:function(){O&&wd.offAppEnterBackground(this._pause),ftparser.removeListenerFromElement(document,"onVideoPlay",this._onPlayId),ftparser.removeListenerFromElement(document,"onVideoPause",this._onPauseId),ftparser.removeListenerFromElement(document,"onVideoEnded",this._onEnded),ftparser.removeListenerFromElement(document,"onVideoError",this._onError),ftparser.removeListenerFromElement(document,"onVideoTimeUpdate",this._onTimeUpdate),ftparser.removeListenerFromElement(document,"onVideoLoadedMetaData",this._onLoadedMetaData),ftparser.removeListenerFromElement(document,"onVideoProgress",this._onProgress),ftparser.removeListenerFromElement(document,"onVideoWaiting",this._onWaiting),ftparser.removeListenerFromElement(document,"onVideoSeeked",this._onSeeked),ftparser.removeListenerFromElement(document,"onVideoControlsToggle",this._onControlsToggle),ftparser.removeListenerFromElement(document,"onVideoFullscreenChange",this._onFullscreenId),ftparser.removeListenerFromElement(document,"onVideoObjectfit",this._onObjectFit),FinChatJSBridge.subscribe("video_".concat(this._videoId,"_actionChanged"),(function(){})),document.removeEventListener("pageReRender",this.__pageReRenderCallback),document.removeEventListener("pageCssUpdate",this.__pageReRenderCallback)},_canToggleFullscreen:function(e){var t=this._videoId&&e.videoPlayerId===this._videoId;return t&&(e.fullScreen?document.removeEventListener("pageReRender",this.__pageReRenderCallback):document.addEventListener("pageReRender",this.__pageReRenderCallback)),t},pictureInPictureModeChanged:function(e){var t=this.getPictureInPictureMode(e);this._update({pictureInPictureMode:t})},pictureInPictureShowProgressChanged:function(e){this._update({pictureInPictureShowProgress:e})},getPictureInPictureMode:function(e){return"string"==typeof e?[e]:A()(e)?e:[]}}};Wu=!O&&!yi||P?Gu:Yu,window.ftparser.registerElement(Wu),window.ftparser.registerElement({is:"wx-view",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-hover","wx-reload"],properties:{inline:{type:Boolean,public:!0},hover:{type:Boolean,value:!0,public:!0}}}),window.ftparser.registerElement({is:"wx-rich-text",template:function(e,t,n){return[{t:1,n:"div",id:"rich-text",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-class-prefix","wx-html-parse"],properties:{space:{type:String,value:"",public:!0},nodes:{value:[],public:!0,observer:"_nodesObserver"}},created:function(){this._ready=!1,this._cachedVal=null},attached:function(){if(this._ready=!0,this._cachedVal){var e=this._cachedVal;this._cachedVal=null,this._nodesObserver(e)}},methods:{_nodesObserver:function(e){var t=this;if(this._ready)if(this.$["rich-text"].innerHTML="","object"===Ce()(e)&&e instanceof Array){var n;try{n=this.getFilter().parse(e,document.createDocumentFragment(),(function(e){return t.convertClassWithPrefix(e)}),this._createSpaceDecode(this.space))}catch(e){return void console.error(e)}this.$["rich-text"].appendChild(n)}else"string"==typeof e?this.$["rich-text"].innerHTML=function(e,t){if(!t)return e;for(var n=["ensp","emsp","nbsp"];n.length;){var i=n.pop();t!==i&&(e=e.replaceAll("&".concat(i,";"),"&".concat(t,";")))}return e}(e,this.space):console.warn("For developer:nodes 属性只支持 String 和 Array 类型,请检查输入的值。");else this._cachedVal=e}}});var Ku=!1;function Xu(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Xu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-web-view",template:function(e,t,n){return[{t:1,n:"div",a:[{n:"role",v:"link"},{n:"aria-label",e:function(e,t,n){return e.ariaLabel},l:[null],b:[[null,"ariaLabel"]]}],c:[]}]},options:{renderingMode:"full"},behaviors:["wx-base","wx-native","wx-positioning-target"],properties:{src:{type:String,public:!0,observer:"srcChange"},header:{type:Object,public:!0,observer:"srcChange"},timeout:{type:Number,public:!0,value:0},bindevent:{type:String,value:"",public:!0},bindinstantmessage:{type:String,value:"",public:!0},bindmessage:{type:String,value:"",public:!0},bindload:{type:String,value:"",public:!0},binderror:{type:String,value:"",public:!0},bindtimeout:{type:String,value:"",public:!0}},attached:function(){this._attached=!0,this.insertWebview()},detached:function(){this._attached=!1,FinChatJSBridge.invoke("removeHTMLWebView",{htmlId:this.uuid},(function(){Ku=!1}))},methods:{insertWebview:function(){var e=this;try{if(!this.src||this._inserted)return;if(Ku)return console.warn("一个页面只能插入一个 `wx-web-view`。");this.uuid=v()(),this._inserted=!0,FinChatJSBridge.invoke("insertHTMLWebView",{htmlId:this.uuid,src:(this.src||"").trim(),timeout:isNaN(this.timeout)?0:this.timeout,header:(this.formatHeader(this.header)||"").trim(),bindmessage:(this.bindmessage||"").trim(),bindload:(this.bindload||"").trim(),binderror:(this.binderror||"").trim(),bindevent:(this.bindevent||"").trim(),bindinstantmessage:(this.bindinstantmessage||"").trim(),bindtimeout:(this.bindtimeout||"").trim(),position:{left:0,top:0},id:this.id,dataset:this.dataset,nodeId:this.getNodeId()},(function(t){/ok/.test(t.errMsg)&&e._ready()}))}catch(e){console.error(e)}Ku=!0},formatHeader:function(e){if(!e)return"";try{return ce()(e)}catch(t){return console.log("web-view format header error",e),""}},srcChange:function(e){var t=this;this._inserted?e&&this._attached&&(this._pending||(this._pending=!0,Kn((function(){FinChatJSBridge.invoke("updateHTMLWebView",{htmlId:t.uuid,header:(t.formatHeader(t.header)||"").trim(),src:(t.src||"").trim()},(function(){})),t._pending=!1})))):Kn(this.insertWebview.bind(this))}}}),window.ftparser.registerElement({is:"wx-native-view",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-hover","wx-native"],properties:{type:{type:String,value:"camera",observer:"_typeChange",public:!0},options:{type:String,value:"{}",observer:"_optionsChange",public:!0},id:{type:String,value:"",public:!0}},listeners:{},attached:function(){this.id=(new Date).getTime(),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this,t=this;this._onNativeViewTaskId=ftparser.addListenerToElement(document,"onNativeViewTask",(function(e){String(e.detail.nativeViewId)===String(t.id)&&t._onNativeViewTask(e.detail)})),this._onpageScrollCallbackId=this._onpageScrollCallback.bind(this),document.addEventListener("scroll",this._onpageScrollCallbackId),new ResizeObserver((function(t,n){e._updateNativeView()})).observe(this.$$),this.observer=new MutationObserver((function(e,n){clearTimeout(t._mutationTimeout),t._mutationTimeout=setTimeout((function(){t._updateNativeView()}),100)})),this.observer.observe(document.querySelector("body"),{attributes:!0,childList:!0,subtree:!0}),FinChatJSBridge.invoke("showNativeView",this.getCurrentNativeViewArgs(),(function(e){t.triggerEvent("ready",{event:e})}))},_detachedCb:function(){this.observer.disconnect(),ftparser.removeListenerFromElement(document,"onNativeViewTask",this._onNativeViewTaskId),document.removeEventListener("scroll",this._onpageScrollCallbackId),FinChatJSBridge.invoke("hideNativeView",{nativeViewId:this.id})},_typeChange:function(){console.log("DEBUG: view native-view _typeChange")},_optionsChange:function(){console.log("DEBUG: view native-view _optionsChange")},_updateNativeView:function(){var e=this.getCurrentNativeViewArgs(),t=this._diff(this.inputArgs,e);this.inputArgs=t,t&&FinChatJSBridge.invoke("updateNativeView",Ke()(t,{nativeViewId:this.id}),(function(e){}))},_onpageScrollCallback:function(){this._updateNativeView()},_diff:function(e,t){!e&&(e={});var n={},i=!1;for(var o in t)"[object Object]"===Object.prototype.toString.call(t[o])?ce()(t[o])!==ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!==t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));return this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0]}},getCurrentNativeViewArgs:function(){var e={};try{e=JSON.parse(this.options)}catch(e){console.log(this.options),console.error("error in native-view options",this.options)}return{type:this.type,nativeViewId:this.id,style:this.getComputedStyle(),params:e}},_onNativeViewTask:function(e){var t=e.eventName,n=e.detail;this.triggerEvent("ontask",{eventName:t,detail:n})}}});var Ju=[];function Qu(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}["onTextViewTouchStart","onTextViewTouchMove","onTextViewTouchEnd","onTextViewTouchCancel"].forEach((function(e){window._onTouchEvent&&window._onTouchEvent(e,(function(e){Ju.forEach((function(t){t(e)}))}))})),window.ftparser.registerElement({is:"wx-cover-view",template:function(e,t,n){return[{t:1,n:"div",id:"content",cl:{v:"wx-cover-view"},st:{v:"display: inherit;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},options:{renderingMode:"full"},behaviors:["wx-base","wx-native","wx-positioning-target","wx-native-cover","wx-native-hover","wx-reload","wx-size-normalizer"],properties:{ariaRole:{type:String,value:"",public:!0},markerId:{type:String,value:"",public:!0},ariaLabel:{type:String,value:"",public:!0},scrollLeft:{type:String,value:-1,public:!0,filter:"_scrollLeftChange"},scrollTop:{type:String,value:-1,public:!0,filter:"_scrollTopChange"},viewName:{type:String,value:"TextView"},hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"}},created:function(){this._childViews=[],this.__handleScroll=this._handleScroll.bind(this),this.__scrollViewId=L("cover-scroll-view"),this.__handleCoverViewTouch=this._handleCoverViewTouch.bind(this),Ju.push(this.__handleCoverViewTouch)},attached:function(){var e=this;if(O)this.$.content.$$.addEventListener("scroll",this.__handleScroll),this.scrollLeft>=0&&(this.$.content.$$.scrollLeft=this.scrollLeft),this.scrollTop>=0&&(this.$.content.$$.scrollTop=this.scrollTop);else{var t=this._viewId;this._coverViewScrollHandler=ftparser.addListenerToElement(document,"onCoverViewScroll",(function(n){n.detail._scrollViewId===t&&(e._currentScrollTop=n.detail.scrollTop)})),this._scrollEventSubscribed=!0}},detached:function(){var e=this;this._attached=!1,this._scrollViewId&&!this._noNeedToInsert&&this.removeNativeView("removeScrollView",{viewId:this._scrollViewId},(function(){})),this.$.content.$$.removeEventListener("scroll",this.__handleScroll),window.ftparser.removeListenerFromElement(document,"onCoverViewScroll",this._coverViewScrollHandler);var t=Ju.findIndex((function(t){return t===e.__handleCoverViewTouch}));-1!==t&&Ju.splice(t,1)},methods:{_scrollLeftChange:function(e,t){if(!isNaN(e)){if(e=Number(e),O)return this.$.content.$$.scrollLeft=e,e;if(!this._scrollViewId)return e;if(e<0)return t;var n=this.$.content.$$.scrollHeight;return this.updateNativeView("updateScrollView",{viewId:this._scrollViewId,notCoverRect:!0,scrollLeft:e,hide:this.hidden,contentSize:{width:this._box.width,height:n}},(function(){})),e}},_scrollTopChange:function(e,t){if(!isNaN(e)){if(e=Number(e),O)return this.$.content.$$.scrollTop=e,e;if(!this._scrollViewId)return e;if(e<0)return t;var n=this.$.content.$$.scrollHeight;return this.updateNativeView("updateScrollView",{viewId:this._scrollViewId,notCoverRect:!0,scrollTop:e,hide:this.hidden,contentSize:{width:this._box.width,height:n}},(function(){})),e}},insert:function(e,t){var n=this,i=e.viewId;this.updateTextContent();var o=this.getLabelStyle();if("scroll"===this._overflowX||"scroll"===this._overflowY){var r=this.$.content.$$.scrollWidth,a=this.$.content.$$.scrollHeight;e.viewId=this.__scrollViewId,e.scrollX=this._scrollX="scroll"===this._overflowX,e.scrollY=this._scrollY="scroll"===this._overflowY,e.needScrollEvent=!0,e.contentSize={width:r,height:a};var s={viewId:this.__scrollViewId,notCoverRect:!0,hide:this.hidden};this.scrollLeft>=0&&(s.scrollLeft=this.scrollLeft),this.scrollTop>=0&&(s.scrollTop=this.scrollTop),(this.scrollLeft>=0||this.scrollTop>=0)&&(s.contentSize={width:this._box.width,height:a}),this.sendInsertEvent("insertScrollView",e,(function(c){if(-1!==c.errMsg.indexOf(":ok")){n._scrollViewId=n.__scrollViewId;var l={parentId:n.__scrollViewId,viewId:i,position:Zu(Zu({},e.position||{}),{},{width:r,height:a,offsetLeft:0,offsetTop:0}),label:o,hide:n.hidden,clickable:e.clickable,gesture:e.gesture,sendTo:e.sendTo,data:e.data,notCoverRect:e.notCoverRect};l.style={bgColor:Y(e.style.bgColor)},n.insertTextView(l,(function(e){"function"==typeof t&&t(e),void 0===s.scrollTop&&void 0===s.scrollLeft&&n.updateNativeView("updateScrollView",s,(function(e){}))}))}}))}else e.label=o,this.insertTextView(e,t)},insertTextView:function(e,t){var n=this;e.accessibility=!0,e.ariaLabel=this.ariaLabel,e.ariaRole=this.ariaRole,this.sendInsertEvent("insertTextView",e,(function(i){-1!==i.errMsg.indexOf(":ok")&&(n._viewId=e.viewId,n.$$.setAttribute("view-id",e.viewId),n._args={position:e.position,style:e.style,viewId:e.viewId,label:e.label,fixed:e.fixed,hide:n.hidden},"function"==typeof t&&t(n._viewId))}))},update:function(e,t,n){var i=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];"boolean"!=typeof t&&(t=!1),this.updateTextContent(),e.label=this.getLabelStyle();var r=this.$.content.$$.scrollWidth,a=this.$.content.$$.scrollHeight,s={viewId:this._viewId,position:Zu(Zu({},e.position||{}),{},{width:r,height:a}),notCoverRect:!0,zIndex:e.zIndex,fixed:e.fixed,hide:this.hidden},c=this.diff(e,this._args,t),l={viewId:this._viewId,notCoverRect:!0,zIndex:e.zIndex,hide:this.hidden,fixed:e.fixed},u=function(){c&&c.indexOf("position")>-1&&i.reLayoutChildViewsByPosition(),"function"==typeof n&&n()};if(c){if(o&&(this._args=e),c.forEach((function(t){l[t]=e[t]})),e.style&&e.style.bgColor&&(l.style||(l.style={}),l.style.bgColor=Y(e.style.bgColor)),!this._scrollViewId)return l.label=e.label,void this.sendUpdateEvent("updateTextView",l,u);delete l.label,c.indexOf("label")>-1&&(s.label=e.label),s.position&&(s.position.offsetLeft=0,s.position.offsetTop=0),this.sendUpdateEvent("updateTextView",s,u)}else if(!this._scrollViewId)return;l.viewId=this._scrollViewId,l.scrollX=this._scrollX,l.scrollY=this._scrollY,l.scrollTop=this.scrollTop,l.contentSize={width:r,height:a};var d=this.diff(l,this._scrollViewArgs,t);this._scrollViewArgs=l,d&&this.sendUpdateEvent("updateScrollView",l,(function(){i.sendUpdateEvent("updateTextView",s,u)}))},updateTextContent:function(){var e=this.$.content.$$;this._content="";for(var t=0,n=e.childNodes.length;t<n;t++){var i=e.childNodes.item(t);(i.nodeType!==i.ELEMENT_NODE||!(["WX-COVER-VIEW","WX-COVER-IMAGE"].indexOf(i.tagName)>-1)&&i instanceof ftparser.Component)&&(this._content+=i.textContent)}this._content=this._content.trim()},hiddenChanged:function(){this.toggleHidden()},toggleHidden:function(e){var t=this.$.content.$$.scrollWidth,n=this.$.content.$$.scrollHeight,i={viewId:this._viewId,position:{width:t,height:n},hide:void 0!==e?Boolean(e):this.hidden};this.sendUpdateEvent("updateTextView",i)},getLabelStyle:function(){var e=window.getComputedStyle(this.$$),t=Dt()(e.fontSize)||12,n=e.textAlign;"start"===n?n="left":"end"===n?n="right":-1===["left","center","right"].indexOf(n)&&(n="left");var i=Dt()(e.fontWeight);if(isNaN(i))switch(e.fontWeight){case"bold":case"bolder":i="bold";break;default:i="normal"}else i<500?i="normal":i>=500&&(i="bold");var o=Dt()(e.maxWidth),r=e.wordBreak,a=e.wordWrap,s=e.textOverflow,c=e.whiteSpace,l="break-word";"visible"===e.overflow||"nowrap"!==c||"ellipsis"!==s&&"clip"!==s?"break-all"!==r&&"break-all"!==a||(l="break-all"):l="ellipsis"===s&&(!o||o<=this._box.width)?"ellipsis":"clip";var u=e.letterSpacing;return u=u.endsWith("px")?u.replace("px",""):u.endsWith("em")?u.replace("em","")*t:0,u=isNaN(u)?0:_()(u,10),{color:Y(e.color),fontSize:t,lineHeight:Dt()(e.lineHeight)||1.2*t,textAlign:n,fontWeight:i,lineBreak:l,hide:this.hidden,whiteSpace:"nowrap"!==c?"normal":"nowrap",content:this._content||"",letterSpacing:u}},_handleScroll:function(e){function t(e){return{id:e.id,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,dataset:e.dataset}}if(this.bindscroll&&!(e.timeStamp-this._lastScrollTime<20)){this._lastScrollTime=e.timeStamp;var n=e.target;this.triggerEvent("scroll",{type:"scroll",timeStamp:e.timeStamp,target:t(n),currentTarget:t(this.$$),detail:{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth}},this._viewId)}},reLayoutChildViewsByPosition:function(){this._childViews.forEach((function(e){e&&"function"==typeof e.updatePosition&&e.updatePosition()}))},addChildView:function(e){this._childViews.push(e)},removeChildView:function(e){this._childViews=this._childViews.filter((function(t){return t!==e}))}}}),window.ftparser.registerElement({is:"wx-match-media",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base"],properties:{width:{type:Number,public:!0,value:0,observer:"update"},minWidth:{type:Number,public:!0,value:0,observer:"update"},maxWidth:{type:Number,public:!0,value:0,observer:"update"},height:{type:Number,public:!0,value:0,observer:"update"},minHeight:{type:Number,public:!0,value:0,observer:"update"},maxHeight:{type:Number,public:!0,value:0,observer:"update"},orientation:{type:String,public:!0,value:"",observer:"update"}},attached:function(){this.update()},detached:function(){this._observerId&&__virtualDOM__.removeMediaQueryObserver(this._observerId)},methods:{update:function(){var e=this;ftparser.Element.isAttached(this)&&(this._observerId&&__virtualDOM__.removeMediaQueryObserver(this._observerId),this._observerId=__virtualDOM__.addMediaQueryObserver({width:this.data.width||void 0,minWidth:this.data.minWidth||void 0,maxWidth:this.data.maxWidth||void 0,height:this.data.height||void 0,minHeight:this.data.minHeight||void 0,maxHeight:this.data.maxHeight||void 0,orientation:this.data.orientation||void 0},(function(t){var n=t.matches;e.setNodeStyle(n?"":"display: none",3)})))}}}),window.ftparser.registerElement({is:"wx-live-player",options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"container",st:{},cl:{v:"wx-live-player-container"},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width: 101%; height: 101%;position:relative;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",st:{},cl:{v:"wx-live-player-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-hover","wx-native"],properties:{id:{type:String,value:"",public:!0},src:{type:String,value:"",public:!0,observer:"_updateNativeView"},mode:{type:String,value:"live",public:!0,observer:"_updateNativeView"},autoplay:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},muted:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},orientation:{type:String,value:"vertical",public:!0,observer:"_updateNativeView"},objectFit:{type:String,value:"contain",public:!0,observer:"_updateNativeView"},minCache:{type:Number,value:1,public:!0,observer:"_updateNativeView"},maxCache:{type:Number,value:3,public:!0,observer:"_updateNativeView"},soundMode:{type:String,value:"speaker",public:!0,observer:"_updateNativeView"},autoPauseIfNavigate:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},autoPauseIfOpenNative:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},pictureInPictureMode:{type:[String,Array],value:[],public:!0,observer:"_updateNativeView"},options:{type:String,value:"{}",public:!0},hidden:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"}},created:function(){var e=Ni("LivePlayer"),t=e.eventName,n=e.useComponet;this._liveEventName=t,this._useComponet=n},attached:function(){this._getFixed(),this._box=this._getBox(),this.nativeViewId=(new Date).getTime(),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this,t=this,n=t._useComponet?"onLivePlayerTask":"onNativeViewTask";this._onNativeViewTaskId=ftparser.addListenerToElement(document,n,(function(e){String(e.detail.nativeViewId)===String(t.nativeViewId)&&t._onNativeViewTask(e.detail)}));var i=function(){e.insertSuccess=!0,e.findCoverView(e.nativeViewId,{}),e.syncLivePlayerStatus(e.nativeViewId),FinChatJSBridge.publish("livePlayerInsert",{id:e.id||"",nativeViewId:e.nativeViewId,useComponet:e._useComponet,cid:e._cid||""}),e.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback(),e._updateNativeView()},document.addEventListener("pageReRender",e.__pageReRenderCallback),e._needUpdate&&(e._needUpdate=!1,e._updateNativeView())};if(k&&Ii().livePlayer){var o=document.createElement("live-video-player");return this.$.inner.$$.style.display="none",this.$.container.$$.append(o),o.setAttribute(J("liveVideoPlayerId"),this.nativeViewId),o.setAttribute("data",ce()(this.getCurrentNativeViewArgs())),o.getBoundingClientRect(),void setTimeout((function(){i(),e._ready(),e.triggerEvent("initdone",{event:{errMsg:"showLivePlayer:ok"}})}),0)}this.insertNativeView(this._liveEventName.insert,this.getCurrentNativeViewArgs(),(function(t){/ok/.test(t.errMsg)&&(i(),e.triggerEvent("initdone",{event:t}))}))},_updatePlayer:function(e){this.updateNativeView(this._liveEventName.update,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Qu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({nativeViewId:this.nativeViewId},e),(function(){}))},_detachedCb:function(){ftparser.removeListenerFromElement(document,"onNativeViewTask",this._onNativeViewTaskId),this.removeNativeView(this._liveEventName.remove,{nativeViewId:this.nativeViewId}),FinChatJSBridge.publish("livePlayerRemove",{id:this.id||"",nativeViewId:this.nativeViewId}),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback)},_updateNativeView:function(){if(this.insertSuccess){var e=this.getCurrentNativeViewArgs(),t=this._diff(this.inputArgs,e);this.inputArgs=t,t&&this.updateNativeView(this._liveEventName.update,Ke()(t,{nativeViewId:this.nativeViewId}),(function(e){}))}else this._needUpdate=!0},_diff:function(e,t){!e&&(e={});var n={},i=!1;for(var o in t)"[object Object]"===Object.prototype.toString.call(t[o])?ce()(t[o])!=ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!=t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));return this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0]}},getCurrentNativeViewArgs:function(){var e={};this._getFixed(),this._box=this._getBox();var t=this.id,n=this.nativeViewId,i=this.src,o=this.mode,r=this.autoplay,a=this.muted,s=this.orientation,c=this.objectFit,l=this.minCache,u=this.maxCache,d=this.soundMode,h=this.autoPauseIfNavigate,p=this.autoPauseIfOpenNative,f=this.pictureInPictureMode;try{e=JSON.parse(this.options)}catch(t){console.error("error in native-view options",this.options),e={}}return e=Ke()(e,{id:t,nativeViewId:n,src:i,mode:o,autoplay:r,muted:a,orientation:s,objectFit:c,minCache:l,maxCache:u,soundMode:d,autoPauseIfNavigate:h,autoPauseIfOpenNative:p,pictureInPictureMode:this.getPictureInPictureMode(f),position:this._box,hide:this.hidden,type:"live-player"}),{type:"live-player",nativeViewId:this.nativeViewId,style:this._box,livePlayer:!0,params:e}},_onNativeViewTask:function(e){var t=e.eventName,n=e.detail;if("live_player_objectfit"!=t)this.triggerEvent(t.substr(12),n);else{var i=n.width,o=n.height,r=this.$.container.$$.querySelector("live-video-player");r&&(r.style.width=i+"px",r.style.height=o+"px",r.setAttribute("data-width",i),r.setAttribute("data-height",o))}},getPictureInPictureMode:function(e){return"string"==typeof e?[e]:A()(e)?e:[]},syncLivePlayerStatus:function(e){var t=this;FinChatJSBridge.subscribe("syncLivePlayerStatus_".concat(e,"_mute"),(function(e){t.muted=!t.muted}))}}});var ed=null;function td(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}function nd(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):nd(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-live-pusher",options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"container",st:{},cl:{v:"wx-live-pusher-container"},a:[],c:[{t:1,n:"div",id:"inner",st:{v:"width: 101%; height: 101%;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",st:{},cl:{v:"wx-live-pusher-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-hover","wx-native"],properties:{id:{type:String,value:"",public:!0},url:{type:String,value:"",public:!0,observer:"_updateNativeView"},mode:{type:String,value:"RTC",public:!0,observer:"_updateNativeView"},autopush:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},muted:{type:null,value:null,public:!0,observer:"_updateNativeView"},enableCamera:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},autoFocus:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},orientation:{type:String,value:"vertical",public:!0,observer:"_updateNativeView"},beauty:{type:Number,value:0,public:!0,observer:"_updateNativeView"},whiteness:{type:Number,value:0,public:!0,observer:"_updateNativeView"},aspect:{type:String,value:"9:16",public:!0,observer:"_updateNativeView"},minBitrate:{type:Number,value:200,public:!0,observer:"_updateNativeView"},maxBitrate:{type:Number,value:1e3,public:!0,observer:"_updateNativeView"},audioQuality:{type:String,value:"high",public:!0,observer:"_updateNativeView"},waitingImage:{type:String,value:"",public:!0,observer:"_updateNativeView"},waitingImageHash:{type:String,value:"",public:!0,observer:"_updateNativeView"},zoom:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},devicePosition:{type:String,value:"front",public:!0,observer:"_updateNativeView"},mirror:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},remoteMirror:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},localMirror:{type:String,value:"auto",public:!0,observer:"_updateNativeView"},audioReverbType:{type:Number,value:0,public:!0,observer:"_updateNativeView"},enableMic:{type:null,value:null,public:!0,observer:"_updateNativeView"},enableAgc:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},enableAns:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},audioVolumeType:{type:String,value:"auto",public:!0,observer:"_updateNativeView"},videoWidth:{type:Number,value:360,public:!0,observer:"_updateNativeView"},videoHeight:{type:Number,value:640,public:!0,observer:"_updateNativeView"},beautyStyle:{type:String,value:"smooth",public:!0,observer:"_updateNativeView"},filter:{type:String,value:"standard",public:!0,observer:"_updateNativeView"},options:{type:String,value:"{}",public:!0},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"}},attached:function(){this.nativeViewId=(new Date).getTime(),this._attachedCb()},detached:function(){this._detachedCb()},created:function(){var e=Ni("LivePusher"),t=e.eventName,n=e.useComponet;this._liveEventName=t,this._useComponet=n,this._enableMic=!0},methods:{_attachedCb:function(){var e=this,t=this._useComponet?"onLivePusherTask":"onNativeViewTask";this._onNativeViewTaskId=ftparser.addListenerToElement(document,t,(function(t){String(t.detail.nativeViewId)===String(e.nativeViewId)&&e._onNativeViewTask(t.detail)}));var n=function(t){e.insertSuccess=!0,e.triggerEvent("initdone",{event:t}),e.findCoverView(e.nativeViewId,{isRoot:!1}),e.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback(),e._updateNativeView()},document.addEventListener("pageReRender",e.__pageReRenderCallback),FinChatJSBridge.publish("livePusherInsert",{id:e.id||"",nativeViewId:e.nativeViewId,useComponet:e._useComponet,cid:e._cid||""}),e.syncLivePusherStatus(e.nativeViewId),ed=e,e._needUpdate&&(e._needUpdate=!1,e._updateNativeView())};if(ed)this.triggerEvent("error",{errMsg:"can insert only one pusher"});else{if(k&&Ii().livePusher){var i=document.createElement("live-video-pusher");return this.$.inner.$$.style.display="none",this.$.container.$$.append(i),i.setAttribute(J("liveVideoPusherId"),this.nativeViewId),i.setAttribute("data",ce()(this.getCurrentNativeViewArgs())),i.getBoundingClientRect(),void FinChatJSBridge.on("onTongcengWidgetReady_"+this.nativeViewId,(function(t){/ok/.test(t.errMsg)&&(e._ready(),n(t))}))}this.insertNativeView(this._liveEventName.insert,this.getCurrentNativeViewArgs(),(function(e){/ok/.test(e.errMsg)&&n(e)}))}},_detachedCb:function(){ftparser.removeListenerFromElement(document,"onNativeViewTask",this._onNativeViewTaskId),ed=null,this.removeNativeView(this._liveEventName.remove,{nativeViewId:this.nativeViewId}),FinChatJSBridge.publish("livePusherRemove",{id:this.id||"",nativeViewId:this.nativeViewId}),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback)},_updateNativeView:function(){if(this.insertSuccess){var e=this.getCurrentNativeViewArgs(),t=this._diff(this.inputArgs,e);this.inputArgs=t,t&&this.updateNativeView(this._liveEventName.update,Ke()(t,{nativeViewId:this.nativeViewId}),(function(e){}))}else this._needUpdate=!0},_diff:function(e,t){!e&&(e={});var n={},i=!1;for(var o in t)"[object Object]"===Object.prototype.toString.call(t[o])?ce()(t[o])!=ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!=t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));return this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0]}},getCurrentNativeViewArgs:function(){var e={};this._getFixed(),this._box=this._getBox();var t=this.id,n=this.url,i=this.mode,o=this.autopush,r=this.muted,a=this.enableCamera,s=this.autoFocus,c=this.orientation,l=this.beauty,u=this.whiteness,d=this.aspect,h=this.minBitrate,p=this.maxBitrate,f=this.audioQuality,v=this.waitingImage,m=this.waitingImageHash,_=this.zoom,g=this.devicePosition,b=this.mirror,y=this.remoteMirror,w=this.localMirror,x=this.audioReverbType,A=this.enableMic,C=this.enableAgc,E=this.enableAns,S=this.audioVolumeType,k=this.videoWidth,T=this.videoHeight,I=this.beautyStyle,N=this.filter;try{e=JSON.parse(this.options)}catch(t){console.error("error in native-view options",this.options),e={}}return"boolean"==typeof r&&(this._enableMic=!r),"boolean"==typeof A&&(this._enableMic=A),e=Ke()(e,{id:t,url:n,mode:i,autopush:o,muted:r,enableCamera:a,autoFocus:s,orientation:c,beauty:l,whiteness:u,aspect:d,minBitrate:h,maxBitrate:p,audioQuality:f,waitingImage:v,waitingImageHash:m,zoom:_,devicePosition:g,mirror:b,remoteMirror:y,localMirror:w,audioReverbType:x,enableMic:this._enableMic,enableAgc:C,enableAns:E,audioVolumeType:S,videoWidth:k,videoHeight:T,beautyStyle:I,filter:N,type:"live-pusher",position:this._box,hide:this.hidden}),{type:"live-pusher",nativeViewId:this.nativeViewId,style:this._box,livePusher:!0,params:e}},_onNativeViewTask:function(e){var t=e.eventName,n=e.detail;this.triggerEvent(t.substr(12),n)},syncLivePusherStatus:function(e){var t=this;FinChatJSBridge.subscribe("syncLivePusherStatus_".concat(e,"_devicePosition"),(function(e){t.devicePosition="back"===t.devicePosition?"front":"back"}))},_hiddenChanged:function(){this._updateNativeView()}}}),n(680);var od=!1,rd=(window.ftparser.registerElement({is:"wx-editor",behaviors:["wx-base"],template:function(e,t,n){return[{t:1,n:"div",a:[],c:[]}]},properties:{placeholder:{type:String,public:!0},readOnly:{type:Boolean,value:!1,public:!0,observer:"_updateReadOnly"},showImgSize:{type:Boolean,value:!1,public:!0},showImgToolbar:{type:Boolean,value:!1,public:!0},showImgResize:{type:Boolean,value:!1,public:!0}},attached:function(){this.editorId=(new Date).getTime();var e=window.__webviewId__+"editor"+this.editorId;this.$$.editorId=this.editorId,this.$$.webviewId=window.__webviewId__,this.register();var t=[];this.readOnly||(this.showImgSize&&t.push("DisplaySize"),this.showImgResize&&t.push("Resize"),this.showImgToolbar&&t.push("Toolbar")),this.quill=new Quill("#"+this.id,{placeholder:this.placeholder,theme:"bubble",modules:{imageResize:{modules:t}}}),this.__onFocus=this.onFocus.bind(this),this.__onBlur=this.onBlur.bind(this),this.__onTouchstart=this.onTouchstart.bind(this),this.__onTouchend=this.onTouchend.bind(this),this.quill.root.addEventListener("focus",this.__onFocus),this.quill.root.addEventListener("blur",this.__onBlur),this.quill.root.addEventListener("touchstart",this.__onTouchstart),this.quill.root.addEventListener("touchend",this.__onTouchend),this.readOnly&&(this.quill.enable(!1),this.quill.blur()),this.init(),this._ready();var n=this;FinChatJSBridge.subscribe("request_editor_actions"+e,(function(t){var i=n.action(t);FinChatJSBridge.publish("response_editor_actions"+e,id(id({},i||{}),{},{event:t.event,errMsg:"response_editor_actions"+e+":"+(i?"ok":"fail")}))})),this.eventHandle()},detached:function(){this.quill.root.removeEventListener("focus",this.__onFocus),this.quill.root.removeEventListener("blur",this.__onBlur)},methods:{register:function(){if(!od){od=!0;var e=Quill.import("blots/block/embed"),t=Quill.import("blots/block"),n=function(e){wt()(n,e);var t=td(n);function n(){return oe()(this,n),t.apply(this,arguments)}return ae()(n)}(e);n.blotName="divider",n.tagName="hr";var i=function(e){wt()(n,e);var t=td(n);function n(){return oe()(this,n),t.apply(this,arguments)}return ae()(n,null,[{key:"formats",value:function(e){return n.tagName.indexOf(e.tagName)+1}}]),n}(t);i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"];var o=window.Quill.import("parchment"),r=o.Scope,a=o.Attributor,s={scope:r.BLOCK},c={scope:r.INLINE};b("margin",s),b("padding",s),b("font",c,["size","style","variant","weight"]);var l=new a.Style("lineHeight","line-height",s),u=new a.Style("textIndent","text-indent",s),d=new a.Style("textDecoration","text-decoration",c),h=new a.Style("letterSpacing","letter-spacing",c),p=new a.Style("wordWrap","word-wrap",s),f=new a.Style("wordBreak","word-break",s),v=new a.Style("overflowWrap","overflow-wrap",s),m=new a.Style("align","text-align",{scope:r.BLOCK,whitelist:["left","center","right","justify"]}),_=new a.Style("direction","direction",{scope:r.BLOCK,whitelist:["rtl"]});Quill.register(l,!0),Quill.register({"formats/overflowWrap":v,"formats/wordWrap":p,"formats/wordBreak":f,"formats/textIndent":u,"formats/textDecoration":d,"formats/letterSpacing":h,"formats/align":m,"formats/direction":_,"formats/divider":n,"formats/header":i})}function g(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function b(e,t,n){var i={};n=n||["left","top","right","bottom"];var o=new a.Style(e,e,t);i["formats/".concat(e)]=o,n.forEach((function(n){var o=new a.Style("".concat(e).concat(g(n)),"".concat(e,"-").concat(n),t);i["formats/".concat(e).concat(g(n))]=o})),Quill.register(i)}},getContextId:function(){return window.__webviewId__+"editor"+this.editorId},onFocus:function(){this.triggerEvent("focus",this.getResultData())},onBlur:function(){this.triggerEvent("blur",this.getResultData())},onTouchstart:function(){(k||N)&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]})},onTouchend:function(){(k||N)&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]})},eventHandle:function(){var e=this;this.quill.on("text-change",(function(){e.triggerEvent("input",e.getResultData())}))},getResultData:function(){return{delta:this.quill.getContents(),html:this.quill.root.innerHTML,text:this.quill.getText()}},_ready:function(){this.triggerEvent("ready",{id:this.id})},action:function(e){var t=this,n=e.event,i=this.quill,o={},r=i.selection.savedRange,a=i.getFormat(r);try{if("blur"===n)i.blur();else if("clear"===n)i.setContents([]);else if("format"===n){var s=e.name,c=e.value;switch(s){case"list":c="check"===c?"checked"!==a.list&&"unchecked"!==a.list&&"unchecked":a.list===c?null:c,this.quill.format(s,c,window.Quill.sources.USER);break;case"bold":this.bold=!this.bold,i.format(s,this.bold,window.Quill.sources.USER);break;case"italic":this.italic=!this.italic,i.format(s,this.italic?"em":null,window.Quill.sources.USER);break;case"underline":this.underline=!this.underline,i.format(s,!!this.underline||null,window.Quill.sources.USER);break;case"strike":this.strike=!this.strike,i.format(s,this.strike,window.Quill.sources.USER);break;case"ins":this.ins=!this.ins,i.format(s,this.ins,window.Quill.sources.USER);break;case"indent":var l=_()(a.indent||0,10);c="+1"===c?1:-1,"rtl"===a.direction&&(c*=-1),c=l+c,i.format(s,c,window.Quill.sources.USER);break;default:if(a[s]!==c){var u=s;"backgroundColor"===u&&(u="background"),i.format(u,c,window.Quill.sources.USER)}}}else if("getContents"===n)o={delta:i.getContents(),html:i.root.innerHTML,text:i.getText()};else if("getSelectionText"===n){var d=i.selection.savedRange;o.text=i.getText(d.index,d.length)}else if("insertDivider"===n){var h=i.selection.savedRange;this.quill.insertText(h.index,"\n",window.Quill.sources.SILENT),this.quill.insertEmbed(h.index+1,"divider",!0,window.Quill.sources.USER),this.quill.setSelection(h.index+2,window.Quill.sources.SILENT)}else if("insertImage"===n){var p=e.src,f=void 0===p?"":p,v=e.alt,m=void 0===v?"":v,g=e.data,b=void 0===g?{}:g,y=e.width,w=void 0===y?"":y,x=e.height,A=void 0===x?"":x,C=e.extClass,S=void 0===C?"":C,k=E()(b).map((function(e){return"".concat(e,"=").concat(b[e])})).join("&"),T=i.selection.savedRange,I=function(e){i.insertEmbed(T.index,"image",e),i.formatText(T.index,1,"alt",m,window.Quill.sources.SILENT),i.formatText(T.index,1,"width",w,window.Quill.sources.SILENT),i.formatText(T.index,1,"height",A,window.Quill.sources.SILENT),i.formatText(T.index,1,"class",S,window.Quill.sources.SILENT),i.formatText(T.index,1,"data-custom",k,window.Quill.sources.SILENT),i.insertText(T.index+1,"\n",window.Quill.sources.SILENT),i.setSelection(T.index+1,window.Quill.sources.SILENT),i.scrollIntoView(),t.init()};if(/^hyfile:\/\//.test(f)){var N=document.createElement("img");N.setAttribute("crossOrigin","Anonymous"),N.onload=function(){var e=document.createElement("canvas");e.width=N.width,e.height=N.height,e.getContext("2d").drawImage(N,0,0);var t=e.toDataURL("image/png");I(t)},N.src=f}else I(f)}else if("insertText"===n){var P=e.text||"",O=i.selection.savedRange;i.deleteText(O.index,O.length,window.Quill.sources.SILENT),i.insertText(O.index,P,window.Quill.sources.USER),i.setSelection(O.index+P.length,0,window.Quill.sources.SILENT)}else if("redo"===n)i.history.redo();else if("removeFormat"===n){var L=window.Quill.import("parchment");0===r.length?E()(a).forEach((function(e){null!=L.query(e,L.Scope.INLINE)&&i.format(e,!1)})):i.removeFormat(r,window.Quill.sources.USER),this.init()}else"scrollIntoView"===n?i.scrollIntoView():"setContents"===n?(e.html&&(e.html=i.clipboard.convert(e.html)),i.setContents(e.delta||e.html)):"undo"===n&&i.history.undo()}catch(e){o=!1}return this._triggerStatusChange(),o},init:function(){this.bold=!1,this.italic=!1,this.underline=!1,this.strike=!1,this.ins=!1},_updateReadOnly:function(e){this.quill&&this.quill.enable(!e)},_triggerStatusChange:function(){var e=this.lastFormats||{},t=this.quill.selection.savedRange,n=this.quill.getFormat(t);this.lastFormats=n,function(e,t){var n=Ya()(e),i=Ya()(t);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++){var r=n[o];if(e[r]!==t[r])return!1}return!0}(e,n)||this.triggerEvent("statuschange",n)}}}),!1);function ad(e){var t=e.disable;"android"===wd.getPlatform()&&FinChatJSBridge.invoke(t?"disablePullDownRefresh":"enablePullDownRefresh",{webviewIds:[window.__webviewId__]})}function sd(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function cd(e,t){var n=e.parentNode;return!!n&&!(n instanceof ftparser.Element&&n.hasBehavior("wx-movable-area"))&&(!(n instanceof HTMLElement)||n!==document.body&&n!==document)&&(n===t||n===t.$$||n.$$===t||cd(n,t))}function ld(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0,i=t.length;n<i;n++)if(e===t[n].$$||cd(e,t[n]))return t[n]}window.ftparser.registerElement({is:"wx-camera",behaviors:["wx-base","wx-native"],options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-camera-container"},st:{},a:[],c:[{t:1,n:"div",id:"inner",st:{v:"width: 101%; height: 101%;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",cl:{v:"wx-camera-slot"},st:{},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},properties:{mode:{type:String,value:"normal",public:!0},resolution:{type:String,value:"medium",public:!0},devicePosition:{type:String,value:"back",public:!0,observer:"_updateDevicePosition"},flash:{type:String,value:"auto",public:!0,observer:"_updateFlash"},frameSize:{type:String,value:"medium",public:!0,observer:"_updateFrameSize"},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"}},attached:function(){if(this.cameraId="camera","scanCode"===this.mode&&(this.cameraId="scancamera"),this._nativeId=this.cameraId,this._createdTimeStamp=v()(),rd)return console.warn("一个页面只能插入一个 `camera`。");this.insertCamera()},detached:function(){rd=!1,FinChatJSBridge.publish("onCameraEvent",{cname:"removeCamera",webviewId:window.__webviewId__,cid:this._nativeId}),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback)},methods:{insertCamera:function(){var e=this,t=function(t){e.findCoverView(e.cameraId,{}),e.addEventListener(),e.triggerEvent("initdone",{maxZoom:t.maxZoom||""}),e.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback()},document.addEventListener("pageReRender",e.__pageReRenderCallback),new ResizeObserver((function(t,n){e.__pageReRenderCallback()})).observe(e.$$),e._ready(),FinChatJSBridge.publish("onCameraEvent",{cname:"cameraInsertDone",webviewId:window.__webviewId__,cid:e._nativeId})},n=this.getCameraInfo();if(rd=!0,k&&Ii().camera){var i=document.createElement("camera");return this.$.inner.$$.style.display="none",this.$.container.$$.append(i),i.setAttribute("data",ce()(n)),i.setAttribute(J("cameraId"),this.cameraId),i.getBoundingClientRect(),void FinChatJSBridge.on("onTongcengWidgetReady_"+this.cameraId,(function(n){-1!==n.errMsg.indexOf(":ok")?t(n):(e.triggerEvent("error",{errMsg:n.errMsg||""}),rd=!1)}))}this.insertNativeView("insertCamera",n,(function(n){-1!==n.errMsg.indexOf(":ok")?t(n):(e.triggerEvent("error",{errMsg:n.errMsg||""}),rd=!1)}))},getCameraInfo:function(){this._getFixed(),this._box=this._getBox();var e={cameraId:this.cameraId,position:this._box,hide:this.hidden,mode:this.mode,devicePosition:"scanCode"===this.mode?"back":this.devicePosition,flash:this.flash,scanArea:this.scanArea,resolution:this.resolution,webviewId:window.__webviewId__,fixed:this._fixed,frameSize:this.frameSize};return"scanCode"===this.mode&&"on"===this.flash&&(e.flash="torch"),e},_delay:function(e,t,n){this._deferred.push({callback:e,args:[t,n]})},addEventListener:function(){var e=this;"scanCode"===this.mode&&FinChatJSBridge.on("onCameraScanCode",(function(t){e.triggerEvent("scancode",t)})),FinChatJSBridge.on("onCameraInitDone",(function(t){e.triggerEvent("initdone",{maxZoom:t.maxZoom||""})})),FinChatJSBridge.subscribe("onCameraStop",(function(t){e.triggerEvent("stop",{errMsg:t.errMsg||""})})),FinChatJSBridge.subscribe("onCameraError",(function(t){e.triggerEvent("error",{errMsg:t.errMsg||""})}))},_updateDevicePosition:function(){var e=this.devicePosition;"scanCode"===this.mode&&(console.warn("For developer:'<camera/> cannot change device-position in 'scanCode' mode"),e="back"),this._updateCamera("devicePosition",{data:e})},_updateFlash:function(){var e=this.flash;"scanCode"===this.mode&&"on"===e&&(e="torch"),this._updateCamera("flash",{data:e})},_updateFrameSize:function(){this._updateCamera("frameSize",{data:this.frameSize})},_updateCamera:function(e,t){k&&Ii().camera&&"updateCamera"===e||this.cameraId&&FinChatJSBridge.invoke("updateCamera",Ke()({cname:e,webviewId:window.__webviewId__,cid:this._nativeId},t))},_hiddenChanged:function(e){if(e&&FinChatJSBridge.publish("onCameraEvent",{cname:"stopCamera",webviewId:window.__webviewId__}),k){var t=Ii().camera;this._updateCamera(t?"updateTCCamera":"updateCamera",{position:t?void 0:this._getBox(),hide:this.hidden})}else T&&FinChatJSBridge.invoke("updateCamera",{webviewId:window.__webviewId__,cid:this._nativeId,hide:e})},_updatePosition:function(){this._updateCamera("updateCamera",{position:this._getBox()})}}}),window.ftparser.registerElement({is:"wx-movable-area",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-positioning-container"],properties:{scaleArea:{type:Boolean,value:!1,public:!0}},listeners:{"this.movableViewChanged":"_movableViewChanged"},created:function(){this._items=[],this.gapV={x:null,y:null},this.pinchStartLen=null,this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._onPageReRender=this._onPageReRender.bind(this),ftparser.Observer.create((function(e){"class"!==e.propertyName&&"style"!==e.propertyName||this._performUpdateIfNecessary()})).observe(this,{properties:!0})},attached:function(){this._movableViewChanged(),document.addEventListener("pageReRender",this._onPageReRender),ftparser.addListenerToElement(this,"touchstart",this._handleTouchStart),ftparser.addListenerToElement(this,"touchmove",this._handleTouchMove),ftparser.addListenerToElement(this,"touchend",this._handleTouchEnd)},detached:function(){this._items=[],document.removeEventListener("pageReRender",this._onPageReRender),ftparser.removeListenerFromElement(this,"touchstart",this._handleTouchStart),ftparser.removeListenerFromElement(this,"touchmove",this._handleTouchMove),ftparser.removeListenerFromElement(this,"touchend",this._handleTouchEnd)},methods:{_movableViewChanged:function(){var e=this._views=[];return function t(n){if(n.childNodes)for(var i=0;i<n.childNodes.length;i++){var o=n.childNodes[i];o instanceof ftparser.Element&&(o instanceof ftparser.Component&&o.hasBehavior("wx-movable-view")?e.push(o):t(o))}}(this),this._updateArea(),!1},_handleTouchStart:function(e){var t=e.touches;if(t&&t.length>1){ad({disable:!0});var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(this.pinchStartLen=sd(n),this.gapV=n,!this.scaleArea){var i=ld(t[0].target,this._views),o=ld(t[1].target,this._views);this._scaleMovableView=i&&i===o?i:null}}},_handleTouchMove: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};null!==this.gapV.x&&this.pinchStartLen>0&&this._updateScale(sd(n)/this.pinchStartLen),this.gapV=n}},_handleTouchEnd:function(e){var t=e.touches;t&&t.length||(ad({disable:!1}),e.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this._views.forEach((function(e){e.endScale()})):this._scaleMovableView&&this._scaleMovableView.endScale()))},_updateScale:function(e){e&&1!==e&&(this.scaleArea?this._views.forEach((function(t){t.setScale(e)})):this._scaleMovableView&&this._scaleMovableView.setScale(e))},_updateArea:function(){var e=this;if(!this.__attached)return!1;var t=this._getWH();return this._height=t.height,this._width=t.width,this._views.forEach((function(t){t._setParent(e)})),!0},_getWH:function(){var e=window.getComputedStyle(this.$$),t=this.$$.getBoundingClientRect(),n=["Left","Right"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])})),i=["Top","Bottom"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])}));return{height:t.height-i[0]-i[1],width:t.width-n[0]-n[1]}},_performUpdateIfNecessary:function(){var e=this.$$.getBoundingClientRect()||{},t=this.$$.offsetWidth,n=this.$$.offsetHeight,i=e.width!==t||e.height!==n;t===this._offsetWidth&&n===this._offsetHeight||this._updateArea(),this._views&&this._views.forEach((function(e){"function"==typeof e._setTransformed&&e._setTransformed(i)})),this._offsetWidth=t,this._offsetHeight=n},_onPageReRender:function(){this._performUpdateIfNecessary()}}});var ud=/[+-]?\d+(\.\d+)?rpx/,dd=/[+-]?\d+(\.\d+)?px/;function hd(e,t,n){this._springX=new tl(e,t,n),this._springY=new tl(e,t,n),this._springScale=new tl(e,t,n),this._startTime=0}function pd(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function fd(e){return e.match(ud)&&(e=wx.transformRpx("%%?"+e+"?%%")),e.match(dd)&&(e=Dt()(e,10)),"number"!=typeof(e=+e)||isNaN(e)?0:e}function vd(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function md(){}hd.prototype.setEnd=function(e,t,n,i){var o=(new Date).getTime();this._springX.setEnd(e,i,o),this._springY.setEnd(t,i,o),this._springScale.setEnd(n,i,o),this._startTime=o},hd.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)}},hd.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},hd.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)},pd.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()},pd.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},pd.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._t<e&&(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}},pd.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}},pd.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}},pd.prototype.dt=function(){return-this._x_v/this._x_a},pd.prototype.done=function(){var e=this._lastDt===this._t;return this._lastDt=null,e},pd.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},pd.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},md.prototype.x=function(e){return Math.sqrt(e)};var _d=!1;function gd(e){_d||(_d=!0,requestAnimationFrame((function(){"function"==typeof e&&e(),_d=!1})))}function bd(e,t,n){var i={id:0,cancelled:!1};return function t(n,i,o,r){if(!n||!n.cancelled){o(i);var a=e.done();a||n.cancelled||(n.id=requestAnimationFrame(t.bind(null,n,i,o,r))),a&&"function"==typeof r&&r(i)}}(i,e,t,n),{cancel:function(e){e&&(e.id&&cancelAnimationFrame(e.id),e.cancelled=!0)}.bind(null,i),model:e}}window.ftparser.registerElement({is:"wx-movable-view",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-touchtrack","wx-positioning-container"],properties:{x:{value:0,public:!0,filter:"_setX"},y:{value:0,public:!0,filter:"_setY"},direction:{type:String,value:"none",public:!0},outOfBounds:{type:Boolean,value:!1,public:!0},inertia:{type:Boolean,value:!1,public:!0},friction:{type:Number,value:2,public:!0},damping:{type:Number,value:20,public:!0},disabled:{type:Boolean,value:!1,public:!0,observer:"_disabled"},scale:{type:Boolean,value:!1,public:!0},scaleMin:{type:Number,value:.5,public:!0,observer:"_setScaleMinOrMax"},scaleMax:{type:Number,value:10,public:!0,observer:"_setScaleMinOrMax"},scaleValue:{type:Number,value:1,public:!0,filter:"_setScaleValue"},animation:{type:Boolean,value:!0,public:!0}},created:function(){this.touchtrack(this,"_onTrack"),this._xMove=!1,this._yMove=!1,this._areaWidth=0,this._areaHeight=0,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._minX=0,this._minY=0,this._maxX=0,this._maxY=0,this._STD=new hd(1,9*Math.pow(this.damping,2)/40,this.damping),this._friction=new pd(1,this.friction),this._declineX=new md,this._declineY=new md,this._touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]},ftparser.Observer.create((function(e){"class"===e.propertyName?(this._updateWH(),this._updateBoundary(),this._revise()):"style"===e.propertyName&&(this._setTransform(this._translateX,this._translateY,this._scale,"",!0,!1),this.$$.style.transformOrigin="center",this._updateWH(),this._updateBoundary(),this._revise())})).observe(this,{properties:!0})},attached:function(){this.$$.setAttribute("aria-dropeffect","move"),this.$$.setAttribute("aria-label","可移动"),this.triggerEvent("movableViewChanged",void 0,{bubbles:!0}),this._xMove=!("horizontal"!==this.direction&&"all"!==this.direction),this._yMove=!("vertical"!==this.direction&&"all"!==this.direction),this.friction<=0&&(this.friction=2),this._friction.reconfigure(1,this.friction),this._STD.reconfigure(1,9*Math.pow(this.damping,2)/40,this.damping),this.$$.style.transformOrigin="center"},detached:function(){this.triggerEvent("movableViewChanged",void 0,{bubbles:!0})},methods:{_disabled:function(e){!1===e&&this._handleTouchStart()},_setX:function(e){return"string"==typeof e?e=fd(e):"number"!=typeof e&&(e=0),this._xMove?e+this._scaleOffset.x===this._translateX?this._translateX:(this._SFA&&(this._SFA=this._SFA.cancel()),this._animationTo(e+this._scaleOffset.x,this.y+this._scaleOffset.y,this._duringScaleValueAnimation?this.scaleValue:this._scale),e):e},_setY:function(e){return"string"==typeof e?e=fd(e):"number"!=typeof e&&(e=0),this._yMove?e+this._scaleOffset.y===this._translateY?this._translateY:(this._SFA&&(this._SFA=this._SFA.cancel()),this._animationTo(this.x+this._scaleOffset.x,e+this._scaleOffset.y,this._duringScaleValueAnimation?this.scaleValue:this._scale),e):e},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(e){var t=this;if(this.scale){var n=this._adjustScale(e);return this._duringScaleValueAnimation=!0,this._updateScale(n,!0,(function(){t._duringScaleValueAnimation=!1})),this._updateOldScale(n),n}return!1},_handleTouchStart:function(){this._isScaling||this.disabled||(this._yMove&&ad({disable:!0}),this._FA&&(this._FA=this._FA.cancel()),this._SFA&&(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.$$.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},_handleTouchMove:function(e){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(e.detail.dx/e.detail.dy)>1?"htouchmove":"vtouchmove"),this._xMove&&(n=e.detail.dx+this._baseX,this._touchInfo.historyX.shift(),this._touchInfo.historyX.push(n),this._yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dx/e.detail.dy)<=1)),this._yMove&&(i=e.detail.dy+this._baseY,this._touchInfo.historyY.shift(),this._touchInfo.historyY.push(i),this._xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dy/e.detail.dx)<=1)),this._touchInfo.historyT.shift(),this._touchInfo.historyT.push(e.detail.timeStamp),!this._checkCanMove){e.preventDefault();var o="touch";n<this._minX?n=this.outOfBounds?(o="touch-out-of-bounds",this._minX-this._declineX.x(this._minX-n)):this._minX:n>this._maxX&&(n=this.outOfBounds?(o="touch-out-of-bounds",this._maxX+this._declineX.x(n-this._maxX)):this._maxX),i<this._minY?i=this.outOfBounds?(o="touch-out-of-bounds",this._minY-this._declineY.x(this._minY-i)):this._minY:i>this._maxY&&(i=this.outOfBounds?(o="touch-out-of-bounds",this._maxY+this._declineY.x(i-this._maxY)):this._maxY),gd((function(){t._setTransform(n,i,t._scale,o)}))}this.triggerEvent(this._firstMoveDirection,{},{originalEvent:e,bubbles:!1,capturePhase:!1,composed:!0,extraFields:{touches:e.touches||{},changedTouches:e.changedTouches||{}}})&&e.stopPropagation()}},_handleTouchEnd:function(){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(this.$$.style.willChange="auto",this._yMove&&ad({disable:!1}),this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var t=1e3*(this._touchInfo.historyX[1]-this._touchInfo.historyX[0])/(this._touchInfo.historyT[1]-this._touchInfo.historyT[0]),n=1e3*(this._touchInfo.historyY[1]-this._touchInfo.historyY[0])/(this._touchInfo.historyT[1]-this._touchInfo.historyT[0]);this._friction.setV(t,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,o=this._friction.delta().y,r=i+this._translateX,a=o+this._translateY;r<this._minX?(r=this._minX,a=this._translateY+(this._minX-this._translateX)*o/i):r>this._maxX&&(r=this._maxX,a=this._translateY+(this._maxX-this._translateX)*o/i),a<this._minY?(a=this._minY,r=this._translateX+(this._minY-this._translateY)*i/o):a>this._maxY&&(a=this._maxY,r=this._translateX+(this._maxY-this._translateY)*i/o),this._friction.setEnd(r,a),this._FA=bd(this._friction,(function(){var t=e._friction.s(),n=t.x,i=t.y;e._setTransform(n,i,e._scale,"friction")}),(function(){e._FA&&(e._FA=e._FA.cancel())}))}},_onTrack:function(e){switch(e.detail.state){case"start":this._handleTouchStart(e);break;case"move":this._handleTouchMove(e);break;case"end":this._handleTouchEnd(e)}},_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(e){this._FA&&(this._FA=this._FA.cancel()),this._SFA&&(this._SFA=this._SFA.cancel());var t=this.scale?this.scaleValue:1;this._parentArea=e,this._areaWidth=this._parentArea._width||0,this._areaHeight=this._parentArea._height||0,this._updateOffset(),this._updateWH(t),this._updateBoundary(),this._translateX=this.x+this._scaleOffset.x,this._translateY=this.y+this._scaleOffset.y;var n=this._getLimitXY(this._translateX,this._translateY),i=n.x,o=n.y;this._setTransform(i,o,t,"",!0),this._updateOldScale(t)},_updateOffset:function(){function e(t,n,i){if(t===n)return 0;var o=t[i];return t.offsetParent?o+=e(t.offsetParent,n,i):0}this._offset.x=e(this.$$,this._parentArea.$$,"offsetLeft"),this._offset.y=e(this.$$,this._parentArea.$$,"offsetTop")},_updateWH:function(e){e=e||this._scale,e=this._adjustScale(e);var t=this.$$.getBoundingClientRect();this._width=t.width/this._scale,this._height=t.height/this._scale;var n=this._width*e,i=this._height*e;this._scaleOffset.x=(n-this._width)/2,this._scaleOffset.y=(i-this._height)/2},_updateBoundary:function(){var e=0-this._offset.x+this._scaleOffset.x,t=this._areaWidth-this._width-this._offset.x-this._scaleOffset.x;this._minX=Math.min(e,t),this._maxX=Math.max(e,t);var n=0-this._offset.y+this._scaleOffset.y,i=this._areaHeight-this._height-this._offset.y-this._scaleOffset.y;this._minY=Math.min(n,i),this._maxY=Math.max(n,i)},_beginScale:function(){this._isScaling=!0},endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},setScale:function(e){this.scale&&(e*=this._oldScale,this._beginScale(),this._updateScale(e))},_setTransformed:function(e){this._isTransformed=e},_updateScale:function(e,t,n){var i=this;if(this.scale){e=this._adjustScale(e),this._isTransformed||(this._updateWH(e),this._updateBoundary());var o=this._getLimitXY(this._translateX,this._translateY),r=o.x,a=o.y;t?this._animationTo(r,a,e,"",!0,!0,n):gd((function(){i._setTransform(r,a,e,"",!0,!0)}))}},_updateOldScale:function(e){this._oldScale=e},_adjustScale:function(e){var t=Math.max(.5,this.scaleMin,e);return Math.min(10,this.scaleMax,t)},_animationTo:function(e,t,n,i,o,r,a){var s=this;this._FA&&(this._FA=this._FA.cancel()),this._SFA&&(this._SFA=this._SFA.cancel()),this._xMove||(e=this._translateX),this._yMove||(t=this._translateY),this.scale||(n=this._scale);var c=this._getLimitXY(e,t);e=c.x,t=c.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=bd(this._STD,(function(){var e=s._STD.x();s._setTransform(e.x,e.y,1===n?1:e.scale,i,o,r)}),(function(){s._SFA&&(s._SFA=s._SFA.cancel()),a&&"function"==typeof a&&a()}))):this._setTransform(e,t,n,i,o,r)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y,o=t.outOfBounds;return o&&this._animationTo(n,i,this._scale,e),o},_setTransform:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;null!==e&&"NaN"!==e.toString()&&"number"==typeof e||(e=this._translateX||0),null!==t&&"NaN"!==t.toString()&&"number"==typeof t||(t=this._translateY||0),e=Number(e.toFixed(1)),t=Number(t.toFixed(1)),n=Number(n.toFixed(3));var a=vd(e,this._scaleOffset.x),s=vd(t,this._scaleOffset.y);e===this._translateX&&t===this._translateY||o||this.triggerEvent("change",{x:a,y:s,source:i}),this.scale||(n=this._scale),n=+(n=this._adjustScale(n)).toFixed(3),r&&n!==this._scale&&this.triggerEvent("scale",{scale:n,x:a,y:s});var c="translateX("+e+"px) translateY("+t+"px) translateZ(0px) scale("+n+")";this.animationStyle={transform:c},this.$$.style.transform=c,this.$$.style.webkitTransform=c,this._translateX=e,this._translateY=t,this._scale=n}}});var yd=!1;window.ftparser.registerElement({is:"wx-page-container",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"pagecontainer"},a:[],c:[{t:1,n:"div",id:"weuioverlay",cl:{v:"weui-overlay"},a:[],c:[]},{t:1,n:"div",id:"content",cl:{v:"content"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},behaviors:["wx-base"],properties:{show:{type:Boolean,value:!1,public:!0,observer:"_showChange"},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChange"},position:{type:String,value:"bottom",public:!0},duration:{type:Number,value:300,public:!0},overlay:{type:Boolean,value:!0,public:!0},round:{type:Boolean,value:!1,public:!0,observer:"roundChange"},overlayStyle:{type:String,value:"",public:!0},customStyle:{type:String,value:"",public:!0},zIndex:{type:Number,value:100,public:!0},closeOnSlideDown:{type:Boolean,value:!1,public:!0,observer:"closeOnSlideDownChange"}},shares:[],hasShareElement:!1,touchStartTime:0,attached:function(){var e=this;if(yd)return console.warn("一个页面只能插入一个 `page-container`。");yd=this._id=Math.random(),this.touchStartTime=0,this.initshowShareElement(),this.show&&this.animationShow(),this.$.weuioverlay.onclick=function(t){t.stopPropagation(),e.updateShow()&&e.triggerEvent("clickoverlay",{})},FinChatJSBridge.on("closePageContainer",(function(){e.updateShow()})),this._ready=!0,this.closeOnSlideDownChange(this.closeOnSlideDown),this._showTag=!1},detached:function(){this.isOnce(this._id,this._ready)&&(yd=!1,this._ready=!1)},methods:{closeOnSlideDownChange:function(e){if(!e)return this.$.content.removeEventListener("touchstart",this.bindTouchstart),void this.$.content.removeEventListener("touchend",this.bindTouchend);this.$.content.addEventListener("touchstart",this.bindTouchstart.bind(this)),this.$.content.addEventListener("touchend",this.bindTouchend.bind(this))},bindTouchstart:function(e){this.closeOnSlideDown&&(this.touchStartTime=e.changedTouches[0].pageY)},bindTouchend:function(e){var t=this.touchStartTime-e.changedTouches[0].pageY;this.closeOnSlideDown&&t<0&&this.show&&this.updateShow()},initshowShareElement:function(){var e=this.$.content.querySelectorAll("wx-share-element");e.length&&(this.hasShareElement=!0,e[0].setAttribute("is-page-container",!0))},_showChange:function(e){this.isOnce(this._id,this._ready)&&(Ir.remove("wx-page-container .content"),e?this.animationShow():this.animationHide())},isOnce:function(e,t){return!(!yd||yd!==e||!t)},roundChange:function(e){if(this.isOnce(this._id,this._ready)){var t=this.$.content;e?this.setRound(t,this.position):t.style.borderRadius=null}},setRound:function(e,t){if(this.round)switch(t){case"top":e.style.borderRadius="0 0 20px 20px";break;case"bottom":e.style.borderRadius="20px 20px 0 0"}},getAnimByPos:function(e,t,n){var i={},o=e.getClientRects()[0];switch(t){case"top":e.style.left="0px",e.style.top="0px",i={top:["-".concat(o.height,"px"),"0px"]};break;case"bottom":e.style.left="0px",e.style.bottom="0px",i={bottom:["-".concat(o.height,"px"),"0px"]};break;case"center":e.style.top="0px",e.style.height="100%",i={opacity:["0.0","1.0"]};break;case"right":e.style.top="0px",e.style.height="100%",i={left:["100%","0%"]}}if("hide"===n){var r=E()(i)[0];i[r]=i[r].reverse()}return this.hidden&&(this.$$.style.display="none"),i},animationHide:function(){var e=this,t=this.$.content;e.setOverlay(e.$.weuioverlay,!1,e.overlayStyle);var n=!1;Ir(Ke()({targets:"wx-page-container .content",duration:e.duration,easing:this.getEasingByFun(this.easing),begin:function(){n=!0,e.triggerEvent("beforeleave",{})},complete:function(){n||e.triggerEvent("beforeleave",{}),e.triggerEvent("leave",{}),e.triggerEvent("afterleave",{}),this.show||(e.$$.style.display="none",e._showTag=!1)}},e.getAnimByPos(t,e.position,"hide"))),this.show=!1,FinChatJSBridge.invoke("pageContainerState",{show:!1,hide:this.hidden,webviewId:window.__webviewId__,closeOnSlideDown:this.closeOnSlideDown},(function(){})),this.ShareElementAnim("hide")},_hiddenChange:function(){!this.hidden&&this.show?this.$$.style.display="block":this.hidden&&this.show&&(this.$$.style.display="none"),FinChatJSBridge.invoke("pageContainerState",{hide:this.hidden,show:this.show,webviewId:window.__webviewId__},(function(){}))},animationShow:function(){var e=this;this.$$.style.display="block";var t=this.$.content;this.setOverlay(this.$.weuioverlay,this.overlay,this.overlayStyle),t.style="z-index: ".concat(this.zIndex,"; ").concat(this.customStyle),this.setRound(t,this.position),Ir(Ke()({targets:"wx-page-container .content",duration:this.duration,easing:this.getEasingByFun(this.easing),begin:function(){var t=setTimeout((function(){e._showTag=!0,clearTimeout(t)}),e.duration/3);e.triggerEvent("beforeenter",{}),e.triggerEvent("enter",{})},complete:function(){e._showTag=!0,e.triggerEvent("afterenter",{})}},e.getAnimByPos(t,e.position,"show"))),this.show=!0,FinChatJSBridge.invoke("pageContainerState",{show:!0,hide:this.hidden,webviewId:window.__webviewId__,closeOnSlideDown:this.closeOnSlideDown},(function(){})),this.showShareElement()},setOverlay:function(e,t,n){var i=["0.0","1.0"],o="ease-in";Ir.remove("wx-page-container .weui-overlay"),t?e.style="display: block; "+n:(i.reverse(),o="ease-out"),Ir(Ke()({targets:"wx-page-container .weui-overlay",duration:this.duration,easing:this.getEasingByFun(o),opacity:i,complete:function(){"ease-out"===o&&(e.style.display="none")}}))},showShareElement:function(){var e=this;this.shares=[];var t=setTimeout((function(){var n=document.body.querySelectorAll('wx-share-element[aria-transform="true"]');if(n.length&&e.hasShareElement){for(var i=n[0].getAttribute("is-page-container"),o=n.length/2,r=n.length;o;)o--,r--,i?e.ShareElementAnim("show",n[r],n[o]):e.ShareElementAnim("show",n[o],n[r]);clearTimeout(t)}}),10)},ShareElementAnim:function(e,t,n){if("hide"!==e){var i=t.getClientRects()[0],o=n.getClientRects()[0],r=n.getAttribute("duration")||300,a=this.getEasingByFun(n.getAttribute("easing-function"));this.shares.push({source:t,targetInfo:o,sourceInfo:i,easing:a});var s={targets:n,duration:r,translateX:[i.x-o.x,0],translateY:[i.y-o.y,0],easing:a};Ir(s)}else for(var c=0;this.shares.length>c;){var l=this.shares[c],u=l.targetInfo,d=l.sourceInfo,h=l.source,p=l.easing,f={targets:h,duration:300,translateX:[u.x-d.x,0],translateY:[u.y-d.y,0],easing:p};Ir(f),c++}},getEasingByFun:function(e){switch(e&&""!==e||(e="easeOutQuad"),e){case"ease-out":e="easeOutQuad";break;case"ease-in":e="easeInQuad"}return e},updateShow:function(){return!(!this.show||!this._showTag||(this.show=!1,0))}}}),window.ftparser.registerElement({is:"wx-share-element",behaviors:["wx-base"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{key:{type:String,public:!0},transform:{type:Boolean,value:!1,public:!0},duration:{type:Number,value:300,public:!0},easingFunction:{type:String,value:"ease-out",public:!0}}}),window.ftparser.registerElement({is:"wx-webrtc-video",template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-webrtc-video"},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"wx-webrtc-video-inner"},a:[],c:[]}]}]},behaviors:["wx-base","wx-native"],properties:{id:{type:String,public:!0},src:{type:String,public:!0,observer:"streamIdChange"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"}},attached:function(){this._videoId=this._nativeId,this.id=this.id||"dom-id-".concat(this._videoId),this._box=this._getBox(),this.insertNativeView("insertWebRTCVideo",{domId:this.id,videoPlayerId:this._videoId,src:this.src,position:this._box,muted:this.muted},(function(e){}))},detached:function(){this.removeNativeView("removeWebRTCVideo",{domId:this.id,videoPlayerId:this._videoId})},methods:{_update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isReady){this._box=this._getBox();var t={domId:this.id,position:this._box,videoPlayerId:this._videoId};t=Ke()(t,e),this.updateNativeView("updateWebRTCVideo",t,(function(e){}))}else this._deferred.push({callback:"_update",args:[e]})},_updatePosition:function(){this._update({position:this._box})},mutedChanged:function(e){this._update({muted:e})},streamIdChange:function(){this._update({src:this.src})}}}),window.ftparser.registerElement({is:"wx-webrtc-audio",template:function(e,t,n){return[{t:1,n:"div",id:"main",cl:{v:"wx-webrtc-audio"},a:[],c:[{t:1,n:"div",cl:{v:"inner"},a:[],c:[]}]}]},behaviors:["wx-base","wx-native"],properties:{id:{type:String,public:!0},src:{type:String,public:!0,observer:"streamIdChange"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"}},attached:function(){var e=this;this._audioId=this._nativeId,this.id=this.id||"dom-id-".concat(this._audioId),this.insertNativeView("insertWebRTCAudio",{domId:this.id,audioPlayerId:this._audioId,src:this.src,muted:this.muted},(function(t){e._isReady=!0}))},detached:function(){this.removeNativeView("removeWebRTCAudio",{domId:this.id,audioPlayerId:this._audioId})},methods:{_update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isReady){var t={domId:this.id,audioPlayerId:this._audioId};t=Ke()(t,e),this.updateNativeView("updateWebRTCAudio",t,(function(e){}))}else this._deferred.push({callback:"_update",args:[e]})},mutedChanged:function(e){this._update({muted:e})},streamIdChange:function(){this._update({src:this.src})}}}),window.ftparser.registerElement({is:"wx-keyboard-accessory",behaviors:["wx-base","wx-native"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{position:{value:0},hidden:{type:Boolean,value:!1,public:!0,observer:"handleUpdateKeyboard"}},attached:function(){var e=this;this._kbaid=this._nativeId,this.keyboardDidShow=!1,this.hasInserted=!1,this.observer=new MutationObserver((function(t,n){t.forEach((function(t){"style"===t.attributeName&&e.handleUpdateKeyboard()}))})),this.observer.observe(this.$$,{attributes:!0,childList:!0,subtree:!0})},detached:function(){this.handleHideKeyboard()},methods:{initKeyboardAccessory:function(){var e=this;setTimeout((function(){e.handleShowKeyboard()}))},handleShowKeyboard:function(){var e=this;if(!(this._inLandscapeOrientation()||this.keyboardDidShow||this.hasInserted)){var t=this._getBox(),n=t.width,i=t.height;this.insertNativeView("insertKeyboardAccessory",{id:this._kbaid,inputId:this.parentNode._inputId,position:+this.position,hide:this.hidden,style:{width:n,height:i}},(function(t){e.findCoverView(e._kbaid,{}),e.hasInserted=!0})),this.keyboardDidShow=!0}},handleUpdateKeyboard:function(){if(!this._inLandscapeOrientation()&&this.hasInserted){var e=this._getBox(),t=e.width,n=e.height;this.insertNativeView("updateKeyboardAccessory",{id:this._kbaid,inputId:this.parentNode._inputId,position:+this.position,hide:this.hidden,style:{width:t,height:n}},(function(e){}))}},handleHideKeyboard:function(){!this._inLandscapeOrientation()&&this.hasInserted&&(this.insertNativeView("removeKeyboardAccessory",{inputId:this.parentNode._inputId,id:this._kbaid},(function(e){})),this.keyboardDidShow=!1)},_inLandscapeOrientation:function(){return window.innerWidth>window.innerHeight}}}),window.registerCustomJSCompnent=function(e){window[window.__curCustomJSCompnentId]=function(){return function(e){var t={data:(0,ftparser.dataUtils.deepCopy)(e.data),created:e.created,attached:e.attached,moved:e.moved,detached:e.detached,propChange:e.propChange};return za()(t,{constructor:{value:t,writable:!0,configurable:!0}})}(e)}},window.ftparser.registerElement({is:"wx-custom-js-comp",template:function(e,t,n){return[{t:1,n:"div",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base"],properties:{compId:{type:String,public:!0},prop:{type:Object,public:!0,observer:"propChange"}},attached:function(){var e=this;return s()(l.a.mark((function t(){var n,i,o,r,a;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.compId){t.next=2;break}return t.abrupt("return");case 2:if(n=window.__wxConfig__.customJSComp[e.compId]){t.next=5;break}return t.abrupt("return");case 5:if(window[e.compId]){t.next=23;break}if(!(A()(n.scripts)&&n.scripts.length>0)){t.next=15;break}window.__curCustomJSCompnentId=e.compId,i=l.a.mark((function t(){var i,r;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getRealRoute(n.scripts[o]),r=document.createElement("script"),t.next=4,new d.a((function(e){i?(r.onload=function(t){e()},r.setAttribute("charset","utf-8"),r.setAttribute("type","text/javascript"),r.src=i):e(),document.head.appendChild(r)}));case 4:case"end":return t.stop()}}),t)})),o=0;case 10:if(!(o<n.scripts.length)){t.next=15;break}return t.delegateYield(i(),"t0",12);case 12:o++,t.next=10;break;case 15:if(!(A()(n.styles)&&n.styles.length>0)){t.next=23;break}r=l.a.mark((function e(){var t,i;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.styles[a],i=document.createElement("link"),e.next=4,new d.a((function(e){t?(i.href=t,i.rel="stylesheet"):e(),document.head.appendChild(i),e()}));case 4:case"end":return e.stop()}}),e)})),a=0;case 18:if(!(a<n.styles.length)){t.next=23;break}return t.delegateYield(r(),"t1",20);case 20:a++,t.next=18;break;case 23:return t.prev=23,e.comp=window[e.compId](),e.comp.triggerEvent=e.triggerEvent.bind(e),t.next=28,e.comp.created("#".concat(e.id),n.initData);case 28:return t.next=30,e.comp.attached();case 30:t.next=35;break;case 32:t.prev=32,t.t2=t.catch(23),console.log(t.t2);case 35:case"end":return t.stop()}}),t,null,[[23,32]])})))()},detached:function(){this.comp&&this.comp.detached()},moved:function(){this.comp&&this.comp.moved()},methods:{propChange:function(e){this.comp&&this.comp.propChange(e)}}});var xd=function(){function e(){oe()(this,e)}return ae()(e,[{key:"createInstance",value:function(e){var t=document.createElement("wx-root-portal-content");t.style.top=0;var n=new Ad;return n.data=JSON.parse(this._initValuesJSON),n.shadowRoot=document.createDocumentFragment(),n.idMap={},n.slots={"":t},n.listeners=[],e.__portalContent=t,n}}],[{key:"create",value:function(t,n,i){var o=new e;return o._initValuesJSON=ce()(i),o}}]),e}(),Ad=function(){function e(){oe()(this,e)}return ae()(e,[{key:"updateValues",value:function(){}}]),e}();window.ftparser.registerElement({is:"wx-root-portal",options:{templateEngine:xd},behaviors:["wx-base"],properties:{enable:{type:Boolean,value:!0,public:!0,observer:function(e){e!==this._lastEnable&&this._contentAttached?(this.detachContent(this._lastEnable),this.attachContent(e),this._lastEnable=e):this._lastEnable=e}}},created:function(){this._lastEnable=!0,this._contentAttached=!1},attached:function(){this._attachContentFn=this.tryAttachContent.bind(this),document.addEventListener("pageReRender",this._attachContentFn),this.tryAttachContent()},detached:function(){document.removeEventListener("pageReRender",this._attachContentFn),this.detachContent(this.enable)},methods:{tryAttachContent:function(){this.$$.isConnected?this.attachContent(this.enable):this.detachContent(this.enable)},attachContent:function(e){if(!this._contentAttached){this._contentAttached=!0;var t=this.__portalContent;e?document.documentElement.appendChild(t):this.$$.appendChild(t)}},detachContent:function(e){if(this._contentAttached){this._contentAttached=!1;var t=this.__portalContent;e?document.documentElement.removeChild(t):this.$$.removeChild(t)}}}}),window.ftparser.registerElement({is:"wx-ext-web",behaviors:["wx-base"],options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"ext-web",cl:{v:"wx-ext-web-container"},st:{},a:[],c:[{t:1,n:"iframe",id:"inner",st:{v:"width: 101%; height: 101%;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},properties:{src:{type:String,observer:"srcChanged",public:!0}},attached:function(){this.extWebId=(new Date).getTime(),window.__webviewId__,this.extWebId,this.$$.extWebId=this.extWebId,this.$$.webviewId=window.__webviewId__},detached:function(){},methods:{srcChanged:function(){this.$.inner.$$.src=this.src}}});var Cd,Ed,Sd,kd,Td={},Id=function(){function e(){oe()(this,e)}return ae()(e,null,[{key:"getAppData",value:function(){return Td}},{key:"mergeData",value:function(e,t){var n=function(e,t){return function e(t,n){var i=F(t),o=n?n.get(t):null;if("Object"===i){if(o)return o;for(var r in o={},n&&n.set(t,o),t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=e(t[r],n));return o}if("Array"===i){o=[],n&&n.set(t,o);for(var a=0;a<t.length;a++)o[a]=e(t[a],n);return o}return t}(e,t&&"Undefined"!==F(b.a)?new b.a:null)}(e);for(var i in t){var o=Nd(i),r=Pd(e,o,!1),a=r.obj,s=r.key,c=Pd(n,o,!0),l=c.obj,u=c.key,d=c.changed;a&&(a[s]=t[i]),l&&(l[u]=d?t[i]:{__value__:t[i],__wxspec__:!0})}return n}},{key:"init",value:function(){window.__webview_engine_version__=.02,window.__mergeData__=e.mergeData}}]),e}(),Nd=function(e){for(var t=e.length,n=[],i="",o=0,r=!1,a=!1,s=0;s<t;s++){var c=e[s];if("\\"===c)s+1<t&&("."===e[s+1]||"["===e[s+1]||"]"===e[s+1]?(i+=e[s+1],s++):i+="\\");else if("."===c)i&&(n.push(i),i="");else if("["===c){if(i&&(n.push(i),i=""),0===n.length)throw new Error("path can not start with []: "+e);a=!0,r=!1}else if("]"===c){if(!r)throw new Error("must have number in []: "+e);a=!1,n.push(o),o=0}else if(a){if(c<"0"||c>"9")throw new Error("only number 0-9 could inside []: "+e);r=!0,o=10*o+c.charCodeAt(0)-48}else i+=c}if(i&&n.push(i),0===n.length)throw new Error("path can not be empty");return n},Pd=function(e,t,n){for(var i,o,r=!1,a=e,s=0;s<t.length;s++)Number(t[s])===t[s]&&t[s]%1==0?"Array"!==F(a)&&(n&&!r?(r=!0,i[o]={__value__:[],__wxspec__:!0},a=i[o].__value__):(i[o]=[],a=i[o])):"Object"!==F(a)&&(n&&!r?(r=!0,i[o]={__value__:{},__wxspec__:!0},a=i[o].__value__):(i[o]={},a=i[o])),o=t[s],i=a,(a=a[t[s]])&&a.__wxspec__&&(a=a.__value__,r=!0);return{obj:i,key:o,changed:r}},Od=Id;Tn.a||(Array.from=(Cd=Object.prototype.toString,Ed=function(e){return"function"==typeof e||"[object Function]"===Cd.call(e)},Sd=Math.pow(2,53)-1,kd=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),Sd)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!Ed(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var o,r=kd(t.length),a=Ed(this)?Object(new this(r)):new Array(r),s=0;s<r;)o=t[s],a[s]=i?void 0===n?i(o,s):i.call(n,o,s):o,s+=1;return a.length=r,a})),ftparser.addGlobalErrorListener((function(e,t){Reporter.errorReport({key:"webviewScriptError",error:e,extend:t.message})}));var Ld=function(e){return function(){try{e.apply(void 0,Tn()(arguments))}catch(e){Reporter.errorReport({key:"ftparserScriptError",error:e})}}};function Rd(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Rd(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}var Bd=[],$d=function(e,t,n){var i=Md({},n);switch(e){case"script":i=Ke()({},i,function(e){var t={};switch(e){case"frameworkLoad":t.startTime=window.__serviceStartTime__,t.endTime=window.__serviceEndTime__;break;case"evaluateScript":t.startTime=window.__pageFrameStartTime__,t.endTime=window.__packageEndTime__,window.__lazyFrameTotalTime__&&window.__lazyPackageTotalTime__&&(t.lazyLoadTime=window.__lazyFrameTotalTime__+window.__lazyPackageTotalTime__);break;case"serviceLoad":t.startTime=window.__serviceStartTime__+(window.__pageFrameStartTime__-window.__serviceEndTime__),t.endTime=window.__packageEndTime__,window.__lazyFrameTotalTime__&&(t.lazyLoadTime=window.__lazyFrameTotalTime__+window.__lazyPackageTotalTime__+(window.__serviceEndTime__-window.__serviceStartTime__))}return t.startTime&&t.endTime&&(t.duration=t.endTime-t.startTime),t}(t));break;case"render":i=Ke()({},i,function(e,t){switch(e){case"frameworkRenderLoad":t.startTime=window.__speedInfo__.view.startTime,t.endTime=window.__speedInfo__.view.endTime;break;case"viewRender":t.startTime=window.__speedInfo__.view.startTime+(window.__speedInfo__.funcReady.endTime-window.__pageFrameEndTime__),t.endTime=window.__speedInfo__.funcReady.endTime,window.__lazyFrameTotalTime__&&(t.lazyLoadTime=window.__lazyFrameTotalTime__);break;case"firstRender":t.startTime=window.__speedInfo__.firstRenderTime.startTime,t.endTime=window.__speedInfo__.firstRenderTime.endTime,t.initDataSendTime=window.__speedInfo__.firstGetData.startTime,t.initDataRecvTime=window.__speedInfo__.firstGetData.endTime}return t.startTime&&t.endTime&&(t.duration=t.endTime-t.startTime),t}(t,i))}Bd.push(Md({entryType:e,name:t},i))},Fd={funcReady:!1,dataReady:!1,initReady:!1,firstRender:!1,onLoadReady:!1};Od.init(),window.__DOMTree__=void 0;var Dd=new _c(window.__webviewId__);_c.instance=Dd;var jd=[],Vd={webviewStartTime:v()(),funcReady:0};function qd(e,t,n,i){window.__speedInfo__[e]={startTime:t,endTime:n},Reporter.speedReport({key:e,timeMark:{startTime:t,endTime:n},force:"reRenderTime"!==e,data:i})}window.__speedInfo__={};var Hd=function(e){if(Fd.firstRender)console.error("rerender");else{var t=v()();qd("firstGetData",Vd.funcReady,v()()),function(e){if(e.ext&&(void 0!==e.ext.webviewId&&(window.__webviewId__=e.ext.webviewId),e.ext.enablePullUpRefresh&&(window.__enablePullUpRefresh__=!0),e.ext.enablePageScroll&&(window.__enablePageScroll__=!0),"independent"===e.ext.packageType&&uc.disableStyleElement("app"),e.ext.fcjssystemInfo)){var t={};switch(Ce()(e.ext.fcjssystemInfo)){case"string":try{t=JSON.parse(e.ext.fcjssystemInfo)}catch(e){}break;case"object":t=e.ext.fcjssystemInfo}window.__fcjs_systemInfo=t}__virtualDOM__.startInitRender(),setTimeout((function(){wd.publish("DOMReady"),wd.publishPageEvent("__DOMReady",{}),wd.initReady()}),0)}(e),qd("firstRenderTime",t,v()()),e.options&&e.options.firstRender||(console.error("firstRender not the data from Page.data"),Reporter.errorReport({key:"webviewScriptError",error:new Error("firstRender not the data from Page.data"),extend:"firstRender not the data from Page.data"})),Fd.firstRender=!0,document.dispatchEvent(new CustomEvent("pageReRender",{})),$d("render","frameworkRenderLoad"),$d("render","viewRender"),$d("render","firstRender"),setTimeout((function(){!function(){var e=r()(Bd);Bd=[],(window.ServiceJSBridge||window.FinChatJSBridge).invoke("addPerformance",{performances:e},(function(e){}))}()}),0)}},Ud=[];window._flushActiveInputQueue=function(){var e=Ud.filter((function(e){return!e.hidden})),t=e.length;if(t){for(var n=0;n<t;n++){var i=e[n],o=i.cursor,r=i.selectionStart,a=i.selectionEnd,s=i.value;n===t-1?("function"==typeof i._inputFocus&&i._inputFocus(o,r,a),"function"==typeof i._textareaFocusWrap&&i._textareaFocusWrap(o,r,a)):i.triggerEvent("focus",{value:s,height:0})}Ud=[]}},window._addActiveInputQueue=function(e){Ud.push(e)},window.onerror=function(e,t,n,i,o){Reporter.errorReport({key:"webviewScriptError",error:o}),"ios"===wd.getPlatform()&&webkit.messageHandlers.publishHandler.postMessage("wawebview sdk error:"+o.msg)};var Wd,zd=Ld((function(e){Fd.dataReady=!0,Hd(e)}));wd.onAppDataChange(zd),wd.onPageResizeChange(Ld((function(e){e.deviceOrientation&&(window.__deviceOrientation__=e.deviceOrientation)}))),document.addEventListener("generateFuncReady",Ld((function(e){window.__wxConfig?window.__wxLibrary&&("function"==typeof window.__wxLibrary.onEnd&&window.__wxLibrary.onEnd(),window.__wxLibrary=void 0):window.__wxConfig=__wxConfig__,Vd.funcReady=v()(),qd("funcReady",Vd.webviewStartTime,Vd.funcReady),window.__pageFrameStartTime__&&window.__pageFrameEndTime__&&qd("pageframe",window.__pageFrameStartTime__,window.__pageFrameEndTime__),window.__viewStartTime__&&window.__viewEndTime__&&qd("view",window.__viewStartTime__,window.__viewEndTime__),window.__generateFunc__=e.detail.generateFunc,uc.init((function(){if(Fd.initReady=!0,Fd.funcReady=!0,Fd.dataReady)for(var e in jd)Hd(jd[e])}),Dd)}))),window.wd&&window.wd.onPageScrollTo((function(e){var t=document.documentElement.scrollTop||document.body.scrollTop,n=e.scrollTop,i=e.duration||0;!function(e,t,n){var i=t-e;if(i){var o=e,r=n?i/(n/(1e3/60)):i;Wd&&window.cancelAnimationFrame(Wd),function e(){o+=r,window.scrollTo({top:o,behavior:"auto"}),Math.abs(t-o)>=Math.abs(r)?Wd=window.requestAnimationFrame(e):window.scrollTo({top:t,behavior:"smooth"})}()}}(t,n,i),setTimeout((function(){FinChatJSBridge.subscribeHandler("custom_event_scrollDone",{}),FinChatJSBridge.publish("pageScrollToDone_"+e.scrollId,{data:"ok"})}),i+500)})),n(681),window.__AppCode__={}}]),window.__viewEndTime__=Date.now();
8
+ var i=n(550),o=n(551),r=n(552);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t),e}(e,t,n,i):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),o=(e=s(e,i)).write(t,n);return o!==i&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):h(e,t);if("Buffer"===t.type&&r(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return j(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:g(e,t,n,i,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,i,o){var r,a=1,s=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(r=n;r<s;r++)if(l(e,r)===l(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===c)return u*a}else-1!==u&&(r-=r-u),u=-1}else for(n+c>s&&(n=s-c),r=n;r>=0;r--){for(var d=!0,h=0;h<c;h++)if(l(e,r+h)!==l(t,h)){d=!1;break}if(d)return r}return-1}function b(e,t,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i))>o&&(i=o):i=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,i){return q(j(t,e.length-n),e,n,i)}function w(e,t,n,i){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function x(e,t,n,i){return w(e,t,n,i)}function A(e,t,n,i){return q(V(t),e,n,i)}function C(e,t,n,i){return q(function(e,t){for(var n,i,o,r=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(n=e.charCodeAt(a))>>8,o=n%256,r.push(o),r.push(i);return r}(t,e.length-n),e,n,i)}function E(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o<n;){var r,a,s,c,l=e[o],u=null,d=l>239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(r=e[o+1]))&&(c=(31&l)<<6|63&r)>127&&(u=c);break;case 3:r=e[o+1],a=e[o+2],128==(192&r)&&128==(192&a)&&(c=(15&l)<<12|(63&r)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:r=e[o+1],a=e[o+2],s=e[o+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&r)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}function k(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}function T(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;o<n;++o)i+=String.fromCharCode(e[o]);return i}function I(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=t;r<n;++r)o+=D(e[r]);return o}function N(e,t,n){for(var i=e.slice(t,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,i,o,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<r)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function L(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o<r;++o)e[n+o]=(t&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function R(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o<r;++o)e[n+o]=t>>>8*(i?o:3-o)&255}function M(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,i,r){return r||M(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function $(e,t,n,i,r){return r||M(e,0,n,8),o.write(e,t,n,i,52,8),n+8}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,o=0,r=Math.min(n,i);o<r;++o)if(e[o]!==t[o]){n=e[o],i=t[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var r=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(r,a),l=this.slice(i,o),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){r=l[d],a=u[d];break}return r<a?-1:a<r?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e+--t],o=1;t>0&&(o*=256);)i+=this[e+--t]*o;return i},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],o=1,r=0;++r<t&&(o*=256);)i+=this[e+r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=t,o=1,r=this[e+--i];i>0&&(o*=256);)r+=this[e+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||O(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r<n&&(o*=256);)this[t+r]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||O(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[t+o]=255&e;--o>=0&&(r*=256);)this[t+o]=e/r&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);O(this,e,t,n,o-1,-o)}var r=0,a=1,s=0;for(this[t]=255&e;++r<n&&(a*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/a|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);O(this,e,t,n,o-1,-o)}var r=n-1,a=1,s=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/a|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return $(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var o,r=i-n;if(this===e&&n<t&&t<i)for(o=r-1;o>=0;--o)e[o+t]=this[o+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var a=c.isBuffer(e)?e:j(new c(e,i).toString()),s=a.length;for(r=0;r<n-t;++r)this[r+t]=a[r%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var i=e.length,o=null,r=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function V(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,i){for(var o=0;o<i&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(126))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],l=new r(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r=[],a=0,s=n-o;a<s;a+=16383)r.push(l(e,a,a+16383>s?s:a+16383));return 1===o?(t=e[n-1],r.push(i[t>>2]+i[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],r.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)i[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,r,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(r=o)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,o){var r,a,s=8*o-i-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,r=p&(1<<-u)-1,p>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=h,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===r)r=1-l;else{if(r===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),r-=l}return(p?-1:1)*a*Math.pow(2,r-i)},t.write=function(e,t,n,i,o,r){var a,s,c,l=8*r-o-1,u=(1<<l)-1,d=u>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,f=i?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=f,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+p]=255&a,p+=f,a/=256,l-=8);e[n+p-f]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var i=n(74),o=n(122).f;n(125)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(i(e),t)}}))},function(e,t,n){n(85),n(84),e.exports=n(556)},function(e,t,n){var i=n(47),o=n(177);e.exports=n(20).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){n(85),n(84),e.exports=n(558)},function(e,t,n){var i=n(139),o=n(45)("iterator"),r=n(102);e.exports=n(20).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||r.hasOwnProperty(i(t))}},function(e,t,n){n(560);var i=n(20).Object;e.exports=function(e){return i.getOwnPropertyNames(e)}},function(e,t,n){n(125)("getOwnPropertyNames",(function(){return n(226).f}))},function(e,t,n){"use strict";var i=n(278),o=n(104);e.exports=n(183)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(o(this,"Map"),0===e?0:e,t)}},i,!0)},function(e,t,n){var i=n(24);i(i.P+i.R,"Map",{toJSON:n(279)("Map")})},function(e,t,n){var i=n(103);e.exports=function(e,t){var n=[];return i(e,!1,n.push,n,t),n}},function(e,t,n){n(184)("Map")},function(e,t,n){n(185)("Map")},function(e,t,n){n(123),n(84),n(85),n(567),n(568),n(569),n(570),e.exports=n(20).Set},function(e,t,n){"use strict";var i=n(278),o=n(104);e.exports=n(183)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(o(this,"Set"),e=0===e?0:e,e)}},i)},function(e,t,n){var i=n(24);i(i.P+i.R,"Set",{toJSON:n(279)("Set")})},function(e,t,n){n(184)("Set")},function(e,t,n){n(185)("Set")},function(e,t,n){n(572),e.exports=n(20).parseFloat},function(e,t,n){var i=n(24),o=n(573);i(i.G+i.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){var i=n(36).parseFloat,o=n(239).trim;e.exports=1/i(n(181)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){n(576),e.exports=n(20).Reflect.get},function(e,t,n){var i=n(122),o=n(175),r=n(73),a=n(24),s=n(43),c=n(47);a(a.S,"Reflect",{get:function e(t,n){var a,l,u=arguments.length<3?t:arguments[2];return c(t)===u?t[n]:(a=i.f(t,n))?r(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(l=o(t))?e(l,n,u):void 0}})},function(e,t,n){var i=n(22);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(24),o=n(121),r=n(82),a=n(47),s=n(43),c=n(72),l=n(579),u=(n(36).Reflect||{}).construct,d=c((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),h=!c((function(){u((function(){}))}));i(i.S+i.F*(d||h),"Reflect",{construct:function(e,t){r(e),a(t);var n=arguments.length<3?e:r(arguments[2]);if(h&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(l.apply(e,i))}var c=n.prototype,p=o(s(c)?c:Object.prototype),f=Function.apply.call(e,p,t);return s(f)?f:p}})},function(e,t,n){"use strict";var i=n(82),o=n(43),r=n(235),a=[].slice,s={},c=function(e,t,n){if(!(t in s)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),s=function(){var i=n.concat(a.call(arguments));return this instanceof s?c(t,i.length,i):r(t,i,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var i=n(280),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),c=Array(s);++a<s;)c[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(c),i(e,this,l)}}},function(e,t,n){var i=n(582),o=n(591)(i);e.exports=o},function(e,t,n){var i=n(583),o=n(283),r=n(282),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:r;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var i=n(214),o=n(587),r=n(59),a=n(589),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||o(e))&&(i(e)?h:s).test(a(e))}},function(e,t,n){var i=n(284),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var o=a.call(e);return i&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var i,o=n(588),r=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!r&&r in e}},function(e,t,n){var i=n(96)["__core-js_shared__"];e.exports=i},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,i=0;return function(){var o=n(),r=16-(o-i);if(i=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var i=n(286),o=n(59);e.exports=function e(t,n,r,a,s,c){return o(t)&&o(n)&&(c.set(n,t),i(t,n,void 0,e,c),c.delete(n)),t}},function(e,t,n){var i=n(156),o=n(599),r=n(600),a=n(601),s=n(602),c=n(603);function l(e){var t=this.__data__=new i(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var i=n(157),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){var i=n(157);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var i=n(157);e.exports=function(e){return i(this.__data__,e)>-1}},function(e,t,n){var i=n(157);e.exports=function(e,t){var n=this.__data__,o=i(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var i=n(156);e.exports=function(){this.__data__=new i,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var i=n(156),o=n(287),r=n(604);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new r(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var i=n(605),o=n(612),r=n(614),a=n(615),s=n(616);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=r,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var i=n(606),o=n(156),r=n(287);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(r||o),string:new i}}},function(e,t,n){var i=n(607),o=n(608),r=n(609),a=n(610),s=n(611);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=r,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var i=n(159);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var i=n(159),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var i=n(159),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var i=n(159);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var i=n(160);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var i=n(160);e.exports=function(e){return i(this,e).get(e)}},function(e,t,n){var i=n(160);e.exports=function(e){return i(this,e).has(e)}},function(e,t,n){var i=n(160);e.exports=function(e,t){var n=i(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var i=n(618)();e.exports=i},function(e,t){e.exports=function(e){return function(t,n,i){for(var o=-1,r=Object(t),a=i(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(r[c],c,r))break}return t}}},function(e,t,n){var i=n(288),o=n(620),r=n(621),a=n(624),s=n(625),c=n(291),l=n(292),u=n(629),d=n(294),h=n(214),p=n(59),f=n(631),v=n(295),m=n(296),_=n(635);e.exports=function(e,t,n,g,b,y,w){var x=m(e,n),A=m(t,n),C=w.get(A);if(C)i(e,n,C);else{var E=y?y(x,A,n+"",e,t,w):void 0,S=void 0===E;if(S){var k=l(A),T=!k&&d(A),I=!k&&!T&&v(A);E=A,k||T||I?l(x)?E=x:u(x)?E=a(x):T?(S=!1,E=o(A,!0)):I?(S=!1,E=r(A,!0)):E=[]:f(A)||c(A)?(E=x,c(x)?E=_(x):p(x)&&!h(x)||(E=s(A))):S=!1}S&&(w.set(A,E),b(E,A,g,y,w),w.delete(A)),i(e,n,E)}}},function(e,t,n){(function(e){var i=n(96),o=t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===o?i.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}).call(this,n(216)(e))},function(e,t,n){var i=n(622);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var i=n(623);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},function(e,t,n){var i=n(96).Uint8Array;e.exports=i},function(e,t){e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},function(e,t,n){var i=n(626),o=n(289),r=n(290);e.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:i(o(e))}},function(e,t,n){var i=n(59),o=Object.create,r=function(){function e(){}return function(t){if(!i(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var i=n(131),o=n(111);e.exports=function(e){return o(e)&&"[object Arguments]"==i(e)}},function(e,t,n){var i=n(217),o=n(111);e.exports=function(e){return o(e)&&i(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var i=n(131),o=n(289),r=n(111),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!r(e)||"[object Object]"!=i(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var i=n(131),o=n(293),r=n(111),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&o(e.length)&&!!a[i(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var i=n(285),o=t&&!t.nodeType&&t,r=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===o&&i.process,s=function(){try{return r&&r.require&&r.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(216)(e))},function(e,t,n){var i=n(636),o=n(297);e.exports=function(e){return i(e,o(e))}},function(e,t,n){var i=n(637),o=n(215);e.exports=function(e,t,n,r){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=r?r(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?o(n,l,u):i(n,l,u)}return n}},function(e,t,n){var i=n(215),o=n(158),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];r.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||i(e,t,n)}},function(e,t,n){var i=n(639),o=n(291),r=n(292),a=n(294),s=n(298),c=n(295),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),u=!n&&o(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&c(e),p=n||u||d||h,f=p?i(e.length,String):[],v=f.length;for(var m in e)!t&&!l.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||f.push(m);return f}},function(e,t){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},function(e,t,n){var i=n(59),o=n(290),r=n(641),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var i=n(286),o=n(643)((function(e,t,n,o){i(e,t,n,o)}));e.exports=o},function(e,t,n){var i=n(281),o=n(644);e.exports=function(e){return i((function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&o(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i<r;){var c=n[i];c&&e(t,c,i,a)}return t}))}},function(e,t,n){var i=n(158),o=n(217),r=n(298),a=n(59);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&r(t,n.length):"string"==s&&t in n)&&i(n[t],e)}},function(e,t,n){n(646),e.exports=n(20).Object.getOwnPropertyDescriptors},function(e,t,n){var i=n(24),o=n(647),r=n(74),a=n(122),s=n(230);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,i=r(e),c=a.f,l=o(i),u={},d=0;l.length>d;)void 0!==(n=c(i,t=l[d++]))&&s(u,t,n);return u}})},function(e,t,n){var i=n(173),o=n(137),r=n(47),a=n(36).Reflect;e.exports=a&&a.ownKeys||function(e){var t=i.f(r(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(212),o=n(211),r=n(650);function a(t,n,s){return r()?(e.exports=a=i.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&o(r,n.prototype),r},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(212);e.exports=function(){if("undefined"==typeof Reflect||!i)return!1;if(i.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(i(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n(652),e.exports=n(20).Object.entries},function(e,t,n){var i=n(24),o=n(274)(!0);i(i.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){n(654),e.exports=n(20).Object.freeze},function(e,t,n){var i=n(43),o=n(100).onFreeze;n(125)("freeze",(function(e){return function(t){return e&&i(t)?e(o(t)):t}}))},function(e,t){window.ftparser.registerBehavior({is:"wx-data-component",properties:{name:{type:String,public:!0},autoFill:{type:String,public:!0}},methods:{getFormData:function(){return this.value||""},resetFormData:function(){}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-disabled",properties:{disabled:{type:Boolean,value:!1,public:!0,filter:"disabledChanged"}},methods:{disabledChanged:function(e){this.$$.setAttribute("aria-disabled",e),this._setRelatedLabelAria&&this._setRelatedLabelAria()}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-group",listeners:{"this.wxItemValueChanged":"_handleItemValueChanged","this.wxItemCheckedChanged":"_handleItemCheckedChanged","this.wxItemAdded":"_handleItemAdded","this.wxItemRemoved":"_handleItemRemoved","this.wxItemChangedByTap":"_handleChangedByTap"},methods:{_handleItemValueChanged:function(e){this.renameItem(e.detail.item,e.detail.newVal,e.detail.oldVal)},_handleItemCheckedChanged:function(e){this.changed(e.detail.item)},_handleItemAdded:function(e){return e.detail.item._relatedGroup=this,this.addItem(e.detail.item),!1},_handleItemRemoved:function(e){return this.removeItem(e.detail.item),!1},_handleChangedByTap:function(){this.triggerEvent("change",{value:this.value})},addItem:function(){},removeItem:function(){},renameItem:function(){},changed:function(){},resetFormData:function(){this.hasBehavior("wx-data-component")&&function e(t){t.childNodes.forEach((function(t){if(t instanceof ftparser.Element){if(t instanceof ftparser.Component){if(t.hasBehavior("wx-group"))return;if(t.hasBehavior("wx-item"))return void t.resetFormData()}e(t)}}))}(this)}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-input-base",properties:{focus:{type:Boolean,value:0,observer:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,public:!0},placeholder:{type:String,value:"",observer:"_placeholderChange",public:!0},placeholderStyle:{type:String,value:"",public:!0},placeholderClass:{type:String,value:"",public:!0},value:{type:String,value:"",observer:"defaultValueChange",public:!0},showValue:{type:String,value:""},maxlength:{type:Number,value:140,observer:"_maxlengthChanged",public:!0},type:{type:String,value:"text",public:!0},password:{type:Boolean,value:!1,public:!0},disabled:{type:Boolean,value:!1,public:!0},bindinput:{type:String,value:"",public:!0}},methods:{resetFormData:function(){this._keyboardShow&&(this.__formResetCallback=!0,wd.hideKeyboard()),this.value="",this.showValue=""},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},_focusChange:function(e){return this._couldFocus(e),e},_couldFocus:function(e){var t=this;!this._keyboardShow&&this._attached&&e&&(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,window.requestAnimationFrame?window.requestAnimationFrame((function(){t._inputFocus()})):this._inputFocus())},_getPlaceholderClass:function(e){return"input-placeholder "+e},_showValueFormate:function(e){this.password||"password"===this.type?this.showValue=e?new Array(e.length+1).join("●"):"":this.showValue=e||""},_maxlengthChanged:function(e,t){var n=this.value.slice(0,e);n!==this.value&&(this.value=n)},_showValueChange:function(e){return e},_placeholderChange:function(){this._checkPlaceholderStyle(this.value)}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-item",properties:{value:{type:String,public:!0,observer:"valueChange"},checked:{type:Boolean,value:!1,observer:"checkedChange",public:!0}},attached:function(){this.triggerEvent("wxItemAdded",{item:this},{bubbles:!0})},moved:function(){this._relatedGroup&&(this._relatedGroup.triggerEvent("wxItemRemoved"),this._relatedGroup=null),this.triggerEvent("wxItemAdded",{item:this},{bubbles:!0})},detached:function(){this._relatedGroup&&(this._relatedGroup.triggerEvent("wxItemRemoved",{item:this}),this._relatedGroup=null)},methods:{valueChange:function(e,t){this._relatedGroup&&this._relatedGroup.triggerEvent("wxItemValueChanged",{item:this,newVal:e,oldVal:t})},checkedChange:function(e,t){this.$$.setAttribute("aria-checked",e),this._setRelatedLabelAria&&this._setRelatedLabelAria(),e!==t&&this._relatedGroup&&this._relatedGroup.triggerEvent("wxItemCheckedChanged",{item:this})},changedByTap:function(){this._relatedGroup&&this._relatedGroup.triggerEvent("wxItemChangedByTap")},resetFormData:function(){this.checked=!1}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-label-target",properties:{},methods:{handleLabelTap:function(e){}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-label-aria",properties:{},methods:{_setAria:function(e){this.$$.setAttribute("role",e),this.$$.setAttribute("aria-disabled",this.disabled),this.hasBehavior("wx-button")||this.$$.setAttribute("aria-checked",this.checked)},_setRelatedLabelAria:function(e){if(this._relatedLabel){var t=this._relatedLabel;e||(this.hasBehavior("wx-radio")&&(e="radio"),this.hasBehavior("wx-switch")&&(e="checkbox"),this.hasBehavior("wx-checkbox")&&(e="checkbox"),this.hasBehavior("wx-button")&&(e="button")),t.$$.setAttribute("role",e),t.$$.setAttribute("aria-disabled",this.disabled),this.hasBehavior("wx-button")||t.$$.setAttribute("aria-checked",this.checked)}}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-mask-behavior",properties:{mask:{type:Boolean,value:!1,public:!0}},methods:{_getMaskStyle:function(e){return e?"":"background-color: transparent"}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-touchtrack",methods:{touchtrack:function(e,t,n){var i=this,o=0,r=0,a=0,s=0,c=function(e,n,c,l){if(!1===i[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:c,y:l,dx:c-o,dy:l-r,ddx:c-a,ddy:l-s,timeStamp:e.timeStamp},originalEvent:e}))return!1},l=null;ftparser.addListenerToElement(e,"touchstart",(function(e){if(1===e.touches.length&&!l)return l=e,o=a=e.touches[0].pageX,r=s=e.touches[0].pageY,c(e,"start",o,r)})),ftparser.addListenerToElement(e,"touchmove",(function(e){if(1===e.touches.length&&l){var t=c(e,"move",e.touches[0].pageX,e.touches[0].pageY);return a=e.touches[0].pageX,s=e.touches[0].pageY,t}})),ftparser.addListenerToElement(e,"touchend",(function(e){if((!e.touches||0===e.touches.length)&&l)return l=null,c(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)})),ftparser.addListenerToElement(e,"touchcancel",(function(e){if((!e.touches||0===e.touches.length)&&l){var t=l;return l=null,c(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-native-hover",behaviors:["wx-hover"],methods:{_updateNativeCoverHover:function(){this._attached&&this._viewId&&window.requestAnimationFrame(this.updateNativeCoverView.bind(this))}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-reload",methods:{saveCompVar:function(e,t){for(var n=this,i=(e._compVarList||[]).concat(t).length-1;i>0;i--)for(var o=i-1;o>=0;o--)if(e[o]===e[i]){e.splice(t,1);break}e._compVarList=e,t.forEach((function(t){e[t]=n[t]}))},restoreCompVar:function(e){var t=this;(e._compVarList||[]).forEach((function(n){t[n]=e[n]}))},saveState:function(e,t){e.wxComponents=e.wxComponents||{};var n=e.wxComponents;this.ownerShadowRoot&&(n._custom=n._custom||{},n=n._custom),n[this.is]=n[this.is]||[],n[this.is].push(t)},restoreState:function(e){e.wxComponents=e.wxComponents||{};var t=e.wxComponents;this.ownerShadowRoot&&(t._custom=t._custom||{},t=t._custom),t[this.is]=t[this.is]||[],t[this.is].shift()}}})},function(e,t){window.ftparser.registerBehavior({is:"wx-class-prefix",created:function(){if(this._classPrefix="",this.ownerShadowRoot){var e=this.classList.getPrefix();e&&(this._classPrefix=e+"--")}this._addGlobalClass=this.classList.getAddOriginalClass()},methods:{convertClassListWithPrefix:function(e){for(var t=this.getClassPrefix(),n=this.getAddGlobalClass(),i=[],o=0;o<e.length;o++)e[o]&&(n&&i.push(e[o]),i.push(t+e[o]));return i},convertClassWithPrefix:function(e){var t=this.getClassPrefix(),n="";return this.getAddGlobalClass()&&(n+=e+" "),n+(t+e)},getClassPrefix:function(){return this._classPrefix},getAddGlobalClass:function(){return this._addGlobalClass}}})},function(e,t){var n,i=!1,o=[];window.ftparser.registerBehavior({is:"wx-keyboard-control",properties:{},attached:function(){i||(document.addEventListener("touchstart",(function(){})),document.addEventListener("touchmove",(function(){if(!n)for(var e=0,t=o;e<t.length;e++){var i=t[e];if(i._keyboardShow&&i._inputId!==n){wd.hideKeyboard({inputId:i._inputId});break}}})),document.addEventListener("touchend",(function(){var e=n;if(n=void 0,!e)for(var t=0,i=o;t<i.length;t++){var r=i[t];if(r._keyboardShow&&!r.holdKeyboard){wd.hideKeyboard({inputId:r._inputId});break}}})),i=!0),this._onSelfTouchStart=this._onSelfTouchStart.bind(this),this.$$.addEventListener("touchstart",this._onSelfTouchStart,{capture:!0}),o.push(this)},detached:function(){var e=this;this.$$.removeEventListener("touchstart",this._onSelfTouchStart);var t=o.findIndex((function(t){return e===t}));t>-1&&o.splice(t,1)},methods:{_onSelfTouchStart:function(){n=this.disabled?void 0:this._inputId}}})},function(e,t,n){var i=n(96);e.exports=function(){return i.Date.now()}},function(e,t,n){var i=n(670),o=n(59),r=n(672),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var i=n(671),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var i=n(131),o=n(111);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==i(e)}},function(e,t,n){var i=n(241);e.exports=function(e,t){if(null==e)return{};var n,o,r={},a=i(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(module,exports,__webpack_require__){(function(global){!function(e){try{e("export default global")}catch(t){try{e("export default self")}catch(e){try{module.exports=global}catch(e){try{self.global=self}catch(e){window.global=window}}}}}(eval)}).call(this,__webpack_require__(126))},function(e,t){function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<i.length;o++)if((n=i[o])===t||n.fn===t){i.splice(o,1);break}return this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var i=0,o=(n=n.slice(0)).length;i<o;++i)n[i].apply(this,t);return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){var i;try{i=n(218)}catch(e){i=n(218)}e.exports=function e(t){switch(i(t)){case"object":var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n;case"array":n=new Array(t.length);for(var r=0,a=t.length;r<a;r++)n[r]=e(t[r]);return n;case"regexp":var s="";return s+=t.multiline?"m":"",s+=t.global?"g":"",s+=t.ignoreCase?"i":"",new RegExp(t.source,s);case"date":return new Date(t.getTime());default:return t}}},function(e,t){t.linear=function(e){return e},t.inQuad=function(e){return e*e},t.outQuad=function(e){return e*(2-e)},t.inOutQuad=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.inCube=function(e){return e*e*e},t.outCube=function(e){return--e*e*e+1},t.inOutCube=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},t.inQuart=function(e){return e*e*e*e},t.outQuart=function(e){return 1- --e*e*e*e},t.inOutQuart=function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},t.inQuint=function(e){return e*e*e*e*e},t.outQuint=function(e){return--e*e*e*e*e+1},t.inOutQuint=function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},t.inSine=function(e){return 1-Math.cos(e*Math.PI/2)},t.outSine=function(e){return Math.sin(e*Math.PI/2)},t.inOutSine=function(e){return.5*(1-Math.cos(Math.PI*e))},t.inExpo=function(e){return 0==e?0:Math.pow(1024,e-1)},t.outExpo=function(e){return 1==e?e:1-Math.pow(2,-10*e)},t.inOutExpo=function(e){return 0==e?0:1==e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},t.inCirc=function(e){return 1-Math.sqrt(1-e*e)},t.outCirc=function(e){return Math.sqrt(1- --e*e)},t.inOutCirc=function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},t.inBack=function(e){var t=1.70158;return e*e*((t+1)*e-t)},t.outBack=function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},t.inOutBack=function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},t.inBounce=function(e){return 1-t.outBounce(1-e)},t.outBounce=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},t.inOutBounce=function(e){return e<.5?.5*t.inBounce(2*e):.5*t.outBounce(2*e-1)+.5},t["in-quad"]=t.inQuad,t["out-quad"]=t.outQuad,t["in-out-quad"]=t.inOutQuad,t["in-cube"]=t.inCube,t["out-cube"]=t.outCube,t["in-out-cube"]=t.inOutCube,t["in-quart"]=t.inQuart,t["out-quart"]=t.outQuart,t["in-out-quart"]=t.inOutQuart,t["in-quint"]=t.inQuint,t["out-quint"]=t.outQuint,t["in-out-quint"]=t.inOutQuint,t["in-sine"]=t.inSine,t["out-sine"]=t.outSine,t["in-out-sine"]=t.inOutSine,t["in-expo"]=t.inExpo,t["out-expo"]=t.outExpo,t["in-out-expo"]=t.inOutExpo,t["in-circ"]=t.inCirc,t["out-circ"]=t.outCirc,t["in-out-circ"]=t.inOutCirc,t["in-back"]=t.inBack,t["out-back"]=t.outBack,t["in-out-back"]=t.inOutBack,t["in-bounce"]=t.inBounce,t["out-bounce"]=t.outBounce,t["in-out-bounce"]=t.inOutBounce},function(e,t,n){n(679),e.exports=9007199254740991},function(e,t,n){var i=n(24);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t){window.ftparser.registerElement({is:"wx://tab-bar-wrapper",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}})},function(e,t){FinChatJSBridge.subscribe("requestLoadFontFace",(function(e){var t=e.uuid,n=e.family,i=e.source,o=e.desc,r=void 0===o?{}:o,a=i.startsWith("url")?i:'url("'.concat(i,'")'),s=new FontFace(n,a,r);function c(){"loaded"===s.status&&document.fonts.add(s),FinChatJSBridge.publish("responseLoadFontFace_"+t,{status:s.status})}s.load().then(c,c)})),FinChatJSBridge.subscribe("onFixHeightChange",(function(e){if(e){var t=e.visibleHeight,n=e.height,i=function(e,t){e.style.marginTop=0===t?"0":"-"+t+"px"},o=document.body,r=o.clientHeight,a=t*o.clientHeight/n,s=document.activeElement;if(n!==t){var c=function(e){var t=0,n=0;if(e.offsetParent)do{t+=e.offsetTop,n+=e.offsetParent?e.offsetParent.scrollTop:0}while(e=e.offsetParent);return t-n}(s)+s.clientHeight+50;c>r&&(c=r);var l=c-a;i(o,l<=0?0:l+20)}else i(o,0)}}))},function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"InvokeAPI",(function(){return tn})),n.d(i,"KeyValueType",(function(){return nn})),n.d(i,"Speed",(function(){return on})),n.d(i,"Slow",(function(){return rn})),n.d(i,"ErrorType",(function(){return an})),n.d(i,"LogReport",(function(){return sn}));var o=n(41),r=n.n(o),a=n(69),s=n.n(a),c=n(37),l=n.n(c),u=n(31),d=n.n(u),h=n(42),p=n.n(h),f=n(5),v=n.n(f),m=n(16),_=n.n(m),g=n(98),b=n.n(g),y=n(305),w=n.n(y),x=n(11),A=n.n(x),C=n(4),E=n.n(C),S="web",k=-1!==S.indexOf("Android"),T=(window.isAndroidJ2V8,-1!==S.indexOf("iPhone")||-1!==S.indexOf("iPad")),I=Boolean(window.isWinSDK),N=window.isIDE,P=window.self!==window.top,O=(window.isWebviewGame,N||P||I);function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=Math.random().toString(36).slice(-6),n=v()().toString(36);return"".concat(e,"-").concat(t,"-").concat(n)}function R(e){for(var t=(e=e.toString()).split(/[.-]/).filter((function(e){return!H(Number(e))})),n=["0000","000","00","0",""],i=0;i<t.length;i++){var o=t[i].length;t[i]=n[o]+t[i]}return t.join("")}function M(e,t){return R(e)>=R(t)}function B(e,t){var n,i,o=/(?:[a-zA-Z]+)(\d{8})[vV](\d{2})$/,r=R(e),a=R(t),s=e.match(o),c=t.match(o);if(r===a&&s&&c){var l=s[1],u=Number(s[2]),d=c[1],h=Number(c[2]);return l!==d?(n=l,i=d,new Date("".concat(n.slice(0,4),"-").concat(n.slice(4,6),"-").concat(n.slice(6,8)))>=new Date("".concat(i.slice(0,4),"-").concat(i.slice(4,6),"-").concat(i.slice(6,8)))):u>=h}return r>=a}var $={"[object String]":"String","[object Number]":"Number","[object Boolean]":"Boolean","[object Null]":"Null","[object Undefined]":"Undefined","[object Symbol]":"Symbol","[object BigInt]":"BigInt","[object Object]":"Object","[object Function]":"Function","[object Array]":"Array","[object Date]":"Date","[object RegExp]":"RegExp","[object Error]":"Error"};function F(e){return $[Object.prototype.toString.call(e)]}var D={String:0,NaN:"<NaN>",Infinity:function(e){return e>0?"<Infinity>":"<-Infinity>"},Number:0,Boolean:0,Null:0,Undefined:"<Undefined>",Function:function(e){return""===e.name?"<Function>":"<Function: ".concat(e.name,">")},Date:function(e){return"<Date: ".concat(e.toJSON(),">")},RegExp:function(e){return"<RegExp: ".concat(e.toString(),">")},Error:function(e){return"<".concat(e.name,": ").concat(e.message,">")},Symbol:function(e){return"<Symbol: ".concat(e.toString(),">")},Promise:"<Promise>",Map:function(e){return"<Map: size=".concat(e.size,">")},WeakMap:"<WeakMap>",Set:function(e){return"<Set: size=".concat(e.size,">")},WeakSet:"<WeakSet>",ArrayBuffer:function(e){return"<ArrayBuffer: byteLength=".concat(e.byteLength,">")},DataView:function(e){return"<DataView: byteLength=".concat(e.byteLength,", byteOffset=").concat(e.byteOffset,">")},TypedArray:function(e){return"<".concat(e.constructor&&e.constructor.name?e.constructor.name:"TypedArray",": byteLength=").concat(e.byteLength,", length=").concat(e.length,">")}},j=Object.prototype.toString,V=Function.prototype.call.bind(j);function q(e){return V(e).slice(8,-1)}var H=w.a||function(e){return e!=e},U=A.a||function(e){return"Array"===q(e)};function W(e){var t=new b.a,n=0;return function e(i,o){var r,a,s,c=(s=function(e){var t,n,i=q(e);if("Number"===i){if(H(e))return"NaN";if("Number"===q(t=e)&&Math.abs(t)===1/0)return"Infinity"}else if("Object"===i){if(null===e)return"Null"}else if(i.endsWith("Array")&&"Array"!==i&&(n=e,ArrayBuffer.isView(n)&&"DataView"!==q(n)))return"TypedArray";return i}(a=i))in D?D[s]?"function"!=typeof D[s]?[D[s],!0]:[D[s](a),!0]:[a,!0]:[null,!1],l=p()(c,2),u=l[0];return l[1]?u:n>3e3?"<Hidden>":t.has(i)?"<Circular: ".concat(t.get(i),">"):(t.set(i,o),n++,U(i)?i.map((function(t,n){return e(t,"".concat(o,"[").concat(n,"]"))})):(r={},E()(i).forEach((function(t){r[t]=e(i[t],"".concat(o,".").concat(t))})),r))}(e,"@")}function z(){var e=navigator.userAgent,t="";return e.indexOf("Mac OS X")>-1?t=(e.match(/OS [\d._]*/gi)+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,"."):(e.indexOf("Android")>-1||e.indexOf("Linux")>-1)&&(t=e.slice(e.indexOf("Android")+8,e.indexOf(";",e.indexOf("Android")))),t}var G={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)return e;if(!e)return"#ffffffff";try{if(e.startsWith("#"))switch(e.length){case 9:return t?"#"+e.slice(-2)+e.slice(1,-2):e;case 5:return t?"#"+e.slice(-1)+e.slice(1,-1):e;default:return e}if(!e.startsWith("rgb"))return G[e]||"#ffffffff";var n,i=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i),o=(i&&i[4]||"").trim(),r=i?(256|i[1]).toString(16).slice(1)+(256|i[2]).toString(16).slice(1)+(256|i[3]).toString(16).slice(1):e;return n=""!==o?o:1,"0"===(n=Math.round(255*n).toString(16).substring(0,2))&&(n="00"),O?r+=n:r=n+r,"#"+r}catch(e){return"#000000"}}var K={},X=/-[a-z]/g,Z=/([A-Z])/g,J=function(e){return K[e]||(K[e]=e.replace(Z,"-$1").toLowerCase())},Q=n(306);function ee(e,t,n){return te.apply(this,arguments)}function te(){return(te=s()(l.a.mark((function e(t,n,i){var o,a,s,c,u,h;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=n.content,e.prev=1,(a=document.createElement("template")).innerHTML=o,s=0,c=r()(a.content.childNodes),u=c.length,h=l.a.mark((function e(){var n,i;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("SCRIPT"!==(n=c[s]).tagName){e.next=8;break}return(i=document.createElement("script")).innerHTML=n.innerHTML,e.next=6,new d.a((function(e){n.src&&!window.__injectScripts[n.src]?(i.onload=function(t){window.__injectScripts[n.src]=!0,e()},i.setAttribute("charset","utf-8"),i.setAttribute("type","text/javascript"),i.src=n.src):e(),t.appendChild(i)}));case 6:e.next=9;break;case 8:t.appendChild(n);case 9:s++;case 10:case"end":return e.stop()}}),e)}));case 8:if(!(s<u)){e.next=12;break}return e.delegateYield(h(),"t0",10);case 10:e.next=8;break;case 12:"undefined"!=typeof ServiceJSBridge&&setTimeout((function(){ServiceJSBridge.invoke("injectHtmlCallback",{callbackId:i},(function(){}))}),0),e.next=18;break;case 15:e.prev=15,e.t1=e.catch(1),console.log(e.t1);case 18:case"end":return e.stop()}}),e,null,[[1,15]])})))).apply(this,arguments)}window.ResizeObserver||(window.ResizeObserver=Q.a),function(){var e=S.toLowerCase(),t=null;return e.indexOf("mac os x")>0&&(t=(e.match(/os [\d._]+/gi)+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,"."),t=_()(t.split(".")[0])),t}()<=14&&(window.Promise=void 0),n(360),n(535),window.__wxAppData={},window.__wxRoute="",window.__wxRouteBegin=!1,window.__eval=eval,window.__AppCode__={},window.__wxAppCode__=window.__AppCode__,window.global={},window.__injectScripts={},window.injectHtmlPromise=ee,window.injectHtml=function(e,t,n){return ee(e,t,n),n},window.ftConsole={info:function(){},warn:function(){},error:function(){},log:function(){}};var ne=n(61);window.ftparser=ne,ne.globalOptions&&(ne.globalOptions.renderingMode="native",ne.globalOptions.lazyRegistration=!1,ne.globalOptions.classPrefix="",ne.globalOptions.reflectToAttributes=!0,ne.globalOptions.domain="//",ne.globalOptions.allowInWriteOnly=!0,ne.globalOptions.separateInnerData=!1,window.isIDE&&(ne.globalOptions.writeExtraInfoToAttr=!0)),window.ftparser.exeCompatibleFn=function(e,t){var n;try{if(!window.__Compatible__)return;if(function(e){return"event"===e[0]||!("configuration"!==e[0]||!["updateProps","parserDatasetName"].includes(e[1]))}(e)){var i=window.__Compatible__;"string"==typeof e?n=i[e].apply(null,t):A()(e)&&(n=e.reduce((function(n,i,o){return o===e.length-1&&"function"==typeof n[i]?n[i].apply(null,t):n[i]}),i))}}catch(n){console.warn("some error in exeCompatible ",e,t,n.message)}return n},n(536),n(537),n(538);var ie=n(17),oe=n.n(ie),re=n(18),ae=n.n(re),se=n(10),ce=n.n(se),le=function(){function e(){oe()(this,e),this.isIOS=!1,this.callbacks={},this.callbackIndex=0,this.defaultEventHandlers={},this.eventPrefix="custom_event_",this.handlers={},this.IFRAME_PREFIX="hybridjsbrige_",this.isAndroid=k,this.isIOS=T,this.isWinSDK=I,this.isWeb=P,this.sdkSyncEvents=["loadJsFiles"]}return ae()(e,[{key:"checkSdkSyncEvents",value:function(e){return this.sdkSyncEvents.includes(e)||e.endsWith("Sync")}},{key:"postMessage",value:function(e,t,n){var i={C:e,paramsString:t,callbackId:n,type:"invoke"};if(this.isIOS)if(this.checkSdkSyncEvents(e)){var o=prompt("invoke",ce()(i));if(o&&"function"==typeof this.callbacks[n]){var r;try{r=JSON.parse(o)}catch(e){r={}}this.invokeCallbackHandler(n,r)}}else window.webkit.messageHandlers.invokeHandler.postMessage(i);else if(this.isWinSDK)if(i.command="postMessage",this.checkSdkSyncEvents(e)){var a=prompt("invoke",ce()(i));if(a&&"function"==typeof this.callbacks[n]){var s;try{s=JSON.parse(a)}catch(e){s={}}this.invokeCallbackHandler(n,s)}}else i.command="postMessage",window.FinClipExecuteCommandAsync({request:ce()(i),persistent:!1,onSuccess:function(){},onFailure:function(){}});else if(this.isWeb){var c=parent.window&&parent.window.FinChatJSCore;if(c){i.from="view",i.webviewId=window.__webviewId__;var l=c.invokeHandler(i);l&&this.invokeCallbackHandler(n,l)}}else{var u=FinChatJSCore.invokeHandler(e,t,n);if("string"==typeof u)try{u=JSON.parse(u)}catch(e){u={}}if(u){if(window.isIDE&&["request","downloadFile","uploadFile","createSocketTask","closeSocket","sendSocketMessage"].includes(e))return;this.invokeCallbackHandler(n,u)}}}},{key:"createIframe",value:function(e,t){var n=document.createElement("iframe"),i=this.IFRAME_PREFIX+t;n.style.display="none",n.setAttribute("id",i),n.setAttribute("frameborder","0"),n.setAttribute("src",e),document.documentElement.appendChild(n)}},{key:"retrieveIframe",value:function(e){var t=this.IFRAME_PREFIX+e,n=document.querySelector("#"+t);n&&document.documentElement.removeChild(n)}},{key:"publishHandler",value:function(e,t,n){if(this.isIOS)window.webkit.messageHandlers.publishHandler.postMessage({event:e,paramsString:t,webviewIds:n});else if(this.isWinSDK){var i={event:e,paramsString:t,webviewIds:n,type:"publish",command:"publish"};window.FinClipExecuteCommandAsync({request:ce()(i),persistent:!1,onSuccess:function(){},onFailure:function(){}})}else if(this.isWeb){var o=parent.window&&parent.window.FinChatJSCore;o&&o.publishHandler({event:e,paramsString:t,webviewId:window.__webviewId__,from:"view"})}else FinChatJSCore.publishHandler(e,t||"",n||null)}},{key:"webpublishpublishHandler",value:function(e,t,n){if(this.isIOS)window.webkit.messageHandlers.webPublishHandler.postMessage({event:e,paramsString:t,webviewIds:n});else if(this.isWinSDK){var i={event:e,paramsString:t,webviewIds:n,type:"webpublish",command:"webpublish"};window.FinClipExecuteCommandAsync({request:ce()(i),persistent:!1,onSuccess:function(){},onFailure:function(){}})}else if(this.isWeb){var o=parent.window&&parent.window.FinChatJSCore;o&&o.webPublishHandler({event:e,paramsString:t,webviewId:window.__webviewId__,from:"view"})}else FinChatJSCore.publishHandler(e,t||"",n||null)}},{key:"invoke",value:function(e,t,n){var i=t||{},o=++this.callbackIndex;this.callbacks[o]=n,this.postMessage(e,i,o)}},{key:"invokeCallbackHandler",value:function(e,t){var n=this.callbacks[e];"function"==typeof n&&n(t),delete this.callbacks[e],this.isIOS&&this.retrieveIframe(e)}},{key:"oldCallbackHandler",value:function(e){if(e){"string"==typeof e&&(e=this.parseData(e));var t=e.bridgeParam.callbackID;if(t){var n=this;setTimeout((function(){n.invokeCallbackHandler(t,e.param)}),1)}}}},{key:"publishCallbackHandler",value:function(e){this.isIOS&&this.retrieveIframe(e)}},{key:"on",value:function(e,t){this.defaultEventHandlers[e]=t}},{key:"publish",value:function(e,t,n){n=n||[];var i=this.eventPrefix+e,o=t;this.publishHandler(i,o,n)}},{key:"webpublish",value:function(e,t,n){n=n||[];var i=this.eventPrefix+e,o=t;this.webpublishpublishHandler(i,o,n)}},{key:"subscribe",value:function(e,t){this.handlers[this.eventPrefix+e]=t}},{key:"subscribeHandler",value:function(e,t,n,i){var o=-1!==e.indexOf(this.eventPrefix)?this.handlers[e]:this.defaultEventHandlers[e];if("function"==typeof o)return o(t,n,i)}},{key:"parseData",value:function(e){var t;if(e&&"string"==typeof e)try{t=JSON.parse(e)}catch(e){t={status:{code:1,msg:"PARAM_PARSE_ERROR"}}}else t=e||{};return t}}]),e}();window.FinChatJSBridge=new le;var ue=n(21),de=n.n(ue),he=/[ (@]*https?:\/\/([^/]*)\/+(.*?):(\d+):(\d+)/,pe=[];function fe(e){if(!e||e.__originalStack__)return!1;var t=e.stack;if(void 0===t)return!1;for(var n=t,i=pe.length-1,o=0;o>=0&&i>=0;){var r=n.length,a=0;for(var s in ve)if(ve[s]){var c=n.indexOf(ve[s],o);c<0||r<=c||(r=c,a=ve[s].length)}if(r>=n.length)break;var l="at <".concat(pe[i--].description,">");n=n.slice(0,r)+l+n.slice(r+a),o=r+l.length}return de()(e,{__originalStack__:{value:t,writable:!0,configurable:!0},stack:{value:n,writable:!0,enumerable:!0,configurable:!0}}),!0}var ve={wrapSystemFunction:null,wrapMiniProgramOrPluginFunction:null};function me(e){var t=((new Error).stack||"").match(/.+/gm),n="",i=0;t&&t.forEach((function(e){if(he.test(e)&&2===(i+=1)){var t=e.match(/^(\s*)at /),o=t?t[1].length:0;return n=e.slice(o),!1}return!0})),ve[e]=n}function _e(){for(var e="",t=pe.length-1;t>=0;t--)pe[t].pluginAppId&&(e=pe[t].pluginAppId);return e}function ge(e,t,n,i,o){var r,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];null===ve.wrapSystemFunction&&(ve.wrapSystemFunction="",be("","",me)("wrapSystemFunction")),pe.push({description:t});try{r=n.apply(i,o)}catch(t){if(fe(t)){if("AppServiceSdkKnownError"===t.type)throw pe.pop(),t;if("ThirdScriptError"===t.type){var s=_e();Reporter.thirdErrorReport({error:t,source:s,triggerErrorCallback:!a})}else Reporter.errorReport({key:e,error:t,triggerErrorCallback:!a})}if(a)throw pe.pop(),t}return pe.pop(),r}function be(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return ge(e,t,n,this,r,i)}}function ye(e,t,n,i,o){var r,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];null===ve.wrapMiniProgramOrPluginFunction&&(ve.wrapMiniProgramOrPluginFunction="",we("","",me)("wrapMiniProgramOrPluginFunction")),pe.push({description:t,pluginAppId:e});try{r=n.apply(i,o)}catch(t){if(fe(t)&&Reporter.thirdErrorReport({error:t,source:e||"",triggerErrorCallback:!a}),a)throw pe.pop(),t}return pe.pop(),r}function we(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return ye(e,t,n,this,r,i)}}var xe={callSystemFunction:ge,wrapSystemFunction:be,callMiniProgramOrPluginFunction:ye,callThirdPartyFunction:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return ye(_e(),e,t,n,i,o)},wrapMiniProgramOrPluginFunction:we,wrapThirdPartyFunction:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return ye(_e(),e,t,this,o,n)}},surroundThirdByTryCatch:function(e,t){var n=(t||"").match(/^\s*(?:at )?([\s\S]*)$/),i=n?n[1]:"",o=e||function(){};return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ye(_e(),i,o,o,t,!1)}}};window.__errorTracer__=xe,window.__wxLibrary={envType:"WebView",contextType:"App:SubContext",execStart:v()()};var Ae=n(0),Ce=n.n(Ae),Ee=function(){function e(){oe()(this,e),this.listeners={}}return ae()(e,[{key:"emit",value:function(e,t){if(this.listeners[e]&&this.listeners[e].length>0){var n=!1;return this.listeners[e].forEach((function(e){0!==e.count&&e.cb(t),e.count>0&&e.count--,0===e.count&&(n=!0)})),n&&(this.listeners[e]=this.listeners[e].filter((function(e){return 0!==e.count}))),!0}return!1}},{key:"many",value:function(e,t,n){if(!t)return this;var i={count:n,cb:t};return this.listeners[e]?this.listeners[e].push(i):this.listeners[e]=[i],this}},{key:"on",value:function(e,t){this.many(e,t,-1)}},{key:"once",value:function(e,t){this.many(e,t,1)}},{key:"off",value:function(e,t){for(var n=0;n<this.listeners[e].length;n++){var i=this.listeners[e][n];if(i.cb===t)return void(i.count=0)}}}]),e}(),Se=window.__wxConfig||{},ke=__wxLibrary.envType,Te=__wxLibrary.contextType,Ie="Service"===ke,Ne="WebView"===ke,Pe="Worker"===ke,Oe="Widget"===ke,Le=Ne||Ie&&0===Te.indexOf("App:"),Re=Ie&&0===Te.indexOf("Game:"),Me=Pe&&"function"==typeof window.workerInvokeJsApi,Be=!!Se.isIsolateContext,$e=Ie&&Be&&(Te.indexOf("Uncertain")>=0||Te.indexOf("MainContext"))>=0,Fe=Ie&&Te.indexOf("SubContext")>=0,De=$e||Fe,je=Ne||$e,Ve="wxlib"===Se.workerContentType,qe={platform:function(){var e=Se.platform;if(!e&&Ne){var t=window.navigator.userAgent.toLowerCase();t.indexOf("devtools")>=0?e="devtools":t.indexOf("miniprogramenv/windows")>=0?e="windows":t.indexOf("miniprogramenv/mac")>=0?e="mac":t.indexOf("miniprogramenv/mina")>=0?e="mina":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?e="ios":t.indexOf("android")>=0&&(e="android")}return"devtools".toLowerCase()}(),SDKVersion:"",isIsolateContext:De,isGame:Re,isApp:Le,isMainContext:$e,isSubContext:Fe,isSafeEnv:je,isService:Ie,isWebView:Ne,isWorker:Pe,isWidget:Oe,isSupportWorkerAPI:Me,typeStr:ke,isWXLibWorker:Ve},He=new Ee,Ue={};function We(e,t){e in Ue?t(Ue[e]):Ge.once("lifeCycle:"+e,t)}function ze(e,t){var n=e in Ue;return n||(Ue[e]=t,n=Ge.emit("lifeCycle:"+e,t)),n}var Ge={EventEmitter:Ee,on:He.on.bind(He),emit:He.emit.bind(He),once:He.once.bind(He),onConfigReady:We.bind(null,"configReady"),emitConfigReady:ze.bind(null,"configReady"),get isConfigReady(){return"configReady"in Ue},onLibraryReady:We.bind(null,"libraryReady"),emitLibraryReady:ze.bind(null,"libraryReady"),get isLibraryReady(){return"libraryReady"in Ue},onBridgeReady:function(e){"undefined"!=typeof WeixinJSBridge?e():"object"===("undefined"==typeof document?"undefined":Ce()(document))&&document.addEventListener("WeixinJSBridgeReady",e,!1)},env:qe,global:window};window.__wxLibrary.onEnd=function(e){e||console.warn("建议将编译器版本调整大于等于 1.1.15。升级后渲染将有更好性能。"),Ge.emitLibraryReady({})},window.Foundation=Ge;var Ye=n(12),Ke=n.n(Ye),Xe=n(112),Ze=n.n(Xe),Je=JSON.parse,Qe=ce.a,et=Foundation.env.isSubContext,tt=Foundation.env.isSafeEnv,nt={},it=["env","appLaunchInfo","ext","wxAppInfo","debug","entryPagePath","envVersion","tabBar","pages","page","accountInfo","global","platform","system","appType","networkTimeout","navigateToMiniProgramAppIdList","plugins","extAppid","host","prerender"],ot=window;function rt(e){return Je(Qe(e))}var at=!0===(window.__wxConfig=void 0!==ot.__wxConfig?tt?Ke()({},ot.__wxConfig):rt(ot.__wxConfig):{}).preload,st=!1,ct=!1,lt=[],ut=[],dt=[],ht=Foundation.env.typeStr;function pt(e,t){try{v()(),e(t),v()()}catch(e){"object"===("undefined"==typeof Reporter?"undefined":Ce()(Reporter))&&"function"==typeof Reporter.errorReport&&Reporter.errorReport({key:"appServiceSDKScriptError",error:e,extend:"at wxConfig.onReady callback"})}}Foundation.env.isSubContext&&(ht="SubContext");var ft=function(e){dt.push(e)},vt=function(e,t){st?void 0!==__wxConfig&&(t?ct?pt(e,__wxConfig):ut.push(e):pt(e,__wxConfig)):"function"==typeof e&&(t?ut.push(e):lt.push(e))},mt=function(e){e.tabBar&&e.tabBar.list&&e.tabBar.list.forEach((function(e){delete e.iconData,delete e.selectedIconData})),delete e.permission;var t=e.subPackages||e.subpackages;return t&&t.length>0&&(t.forEach((function(e){delete e.pages})),e.subPackages=e.subpackages=t),st&&(delete __wxConfig.usingComponents,Ze()(__wxConfig.page||{}).forEach((function(e){e&&e.window&&delete e.window.usingComponents})),__wxConfig._preloadRule=__wxConfig.preloadRule||{},__wxConfig._page=__wxConfig__.page||{},delete __wxConfig.preloadRule,delete __wxConfig.page,__wxConfig.updatePage=function(e,t){t&&t.window&&(delete t.window.usingComponents,delete t.window.pages),__wxConfig.page=__wxConfig.page||{},__wxConfig.page[e]=__wxConfig.page[e+".html"]=t,nt[e+".html"]=rt(t)},__wxConfig.updatePreloadRule=function(e,t){__wxConfig.preloadRule=__wxConfig.preloadRule||{},__wxConfig.preloadRule[e]=t},ot.__wxConfig.page=ot.__wxConfig.page||{},__wxConfig.page=__wxConfig.page||{},ot.__wxConfig.isLazyLoad=__wxConfig__.isLazyLoad,__wxConfig.isLazyLoad=__wxConfig__.isLazyLoad),e},_t=function(e){return e.onReady=vt,e.beforeReady=ft,et||(e.preload=at),e.isReady=st,e.isSubContext=et,e.envTag=ht,e.isSafeContext=tt,e.sdkVersion=e.SDKVersion=Foundation.env.SDKVersion,e.twoPhaseInject=!0,e.platform=Foundation.env.platform,e.brand||"ios"!==e.platform||(e.brand="iPhone"),"number"==typeof e.pixelRatio?e.devicePixelRatio=e.pixelRatio:"number"==typeof e.devicePixelRatio&&(e.pixelRatio=e.devicePixelRatio),e};window.__wxConfig=_t(window.__wxConfig),window.__wxConfig=mt(window.__wxConfig),Foundation.onConfigReady((function(){!function(){if(void 0!==ot.__wxConfig&&!st){var e=function(){if(__wxConfig.onReadyStart=v()(),lt.forEach((function(e){pt(e,__wxConfig)})),ct=!0,ut.forEach((function(e){pt(e,__wxConfig)})),__wxConfig.onReadyEnd=v()(),lt=[],tt)Ke()(__wxConfig,{global:__wxConfig__});else{var e=ot.__wxConfig__,t=ot.__wxConfig,n=rt(e);!function(e){e.window&&e.window.pages?(delete e.window.pages,e.tabBar?e.tabBar.list.forEach((function(e){e.pagePath.endsWith(".html")||(e.pagePath+=".html")})):e.tabBar={list:[]}):e.appType=4}(n);var i={};nt={};try{it.forEach((function(o){switch(o){case"page":i[o]=nt;break;case"env":i[o]={USER_DATA_PATH:window.wx.env.USER_DATA_PATH};break;case"envVersion":case"extAppid":i[o]="";break;case"accountInfo":i[o]={appId:"",icon:"",nickname:""};break;case"appLaunchInfo":i[o]=wx&&"function"==typeof wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():{};break;case"entryPagePath":i[o]=e[o]||e.pages[0]+".html";break;case"ext":i[o]={};break;case"global":i[o]={window:n.window};break;case"tabBar":i[o]=n[o];break;case"plugins":case"pages":o in e&&(i[o]=e[o]);break;default:o in t&&(i[o]=t[o])}})),ot.__wxConfig=Ke()({},__wxConfig__,i),ot.__wxConfig.subpackages?ot.__wxConfig.subPackages=ot.__wxConfig.subpackages:ot.__wxConfig.subPackages&&(ot.__wxConfig.subpackages=ot.__wxConfig.subPackages)}catch(t){ot.__wxConfig=e}}};if(st=!0,Ke()(__wxConfig,tt?ot.__wxConfig:rt(ot.__wxConfig)),__wxConfig=_t(__wxConfig),__wxConfig=mt(__wxConfig),!dt.length)return e();var t=!1;setTimeout((function(){t||(console.warn("beforeReady timeout"),t=!0,e())}),3e3),dt.forEach((function(e){try{e()}catch(e){console.warn("beforeReady error",e)}})),t||(t=!0,e()),dt=[]}}()})),Foundation.onLibraryReady((function(){Foundation.emitConfigReady(window.__wxConfig)})),n(548);var gt=n(307),bt=n.n(gt),yt=n(33),wt=n.n(yt),xt=n(35),At=n.n(xt),Ct=n(22),Et=n.n(Ct),St=n(9),kt=n.n(St),Tt=n(15),It=n.n(Tt),Nt=n(308),Pt=n.n(Nt),Ot={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",borderRadius:"50%",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"50%",transform:"translateY(-50%)",left:"0",right:"0",minHeight:"24px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"white",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{boxSizing:"border-box",minHeight:"24px",borderRadius:"5px",background:"black",padding:"5px",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}},Lt=n(23),Rt=n.n(Lt),Mt=ae()((function e(t){oe()(this,e),kt()(this,"onCreate",(function(){})),kt()(this,"onDestroy",(function(){})),kt()(this,"onUpdate",(function(){})),this.resizer=t,this.overlay=t.overlay,this.img=t.img,this.options=t.options,this.requestUpdate=t.onUpdate}));var Bt=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){var e;oe()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return e=t.call.apply(t,[this].concat(o)),kt()(Rt()(e),"onCreate",(function(){e.display=document.createElement("div"),Ke()(e.display.style,e.options.displayStyles),e.overlay.appendChild(e.display)})),kt()(Rt()(e),"onDestroy",(function(){})),kt()(Rt()(e),"onUpdate",(function(){if(e.display&&e.img){var t=e.getCurrentSize();if(e.display.innerHTML=t.join(" &times; "),"right"==e.img.style.float){var n=e.display.getBoundingClientRect();Ke()(e.display.style,{right:"auto",top:"-".concat(n.height+4,"px"),left:"-".concat(n.width+4,"px")})}else Ke()(e.display.style,{right:"4px",top:"4px",left:"auto"})}})),kt()(Rt()(e),"getCurrentSize",(function(){return[e.img.width,Math.round(e.img.width/e.img.naturalWidth*e.img.naturalHeight)]})),e}return ae()(n)}(Mt);var $t=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){var e;oe()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return e=t.call.apply(t,[this].concat(o)),kt()(Rt()(e),"onCreate",(function(){e.toolbar=document.createElement("div"),Ke()(e.toolbar.style,e.options.toolbarStyles),e.overlay.appendChild(e.toolbar),e._addToolbarButtons()})),kt()(Rt()(e),"onDestroy",(function(){})),kt()(Rt()(e),"onUpdate",(function(){})),kt()(Rt()(e),"_addToolbarButtons",(function(){var t=document.createElement("span");t.innerHTML="删除",t.addEventListener("click",(function(){Quill.find(e.img).deleteAt(0),e.resizer.hide()})),Ke()(t.style,e.options.toolbarButtonStyles),e.toolbar.appendChild(t)})),e}return ae()(n)}(Mt),Ft=n(2),Dt=n.n(Ft);var jt={DisplaySize:Bt,Toolbar:$t,Resize:function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){var e;oe()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return e=t.call.apply(t,[this].concat(o)),kt()(Rt()(e),"onCreate",(function(){e.boxes=[],e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.addBox("nwse-resize"),e.addBox("nesw-resize"),e.positionBoxes()})),kt()(Rt()(e),"onDestroy",(function(){e.setCursor("")})),kt()(Rt()(e),"positionBoxes",(function(){var t="".concat(-Dt()(e.options.handleStyles.width)/2,"px"),n="".concat(-Dt()(e.options.handleStyles.height)/2,"px");[{left:t,top:n},{right:t,top:n},{right:t,bottom:n},{left:t,bottom:n}].forEach((function(t,n){Ke()(e.boxes[n].style,t)}))})),kt()(Rt()(e),"addBox",(function(t){var n=document.createElement("div");Ke()(n.style,e.options.handleStyles),n.style.cursor=t,n.style.width="".concat(e.options.handleStyles.width,"px"),n.style.height="".concat(e.options.handleStyles.height,"px"),n.addEventListener("touchstart",e.handleMousedown,!1),e.overlay.appendChild(n),e.boxes.push(n)})),kt()(Rt()(e),"handleMousedown",(function(t){t=t.touches[0],e.dragBox=t.target,e.dragStartX=t.clientX,e.preDragWidth=e.img.width||e.img.naturalWidth,e.setCursor(e.dragBox.style.cursor),document.addEventListener("touchmove",e.handleDrag,!1),document.addEventListener("touchend",e.handleMouseup,!1)})),kt()(Rt()(e),"handleMouseup",(function(){e.setCursor(""),document.removeEventListener("touchmove",e.handleDrag),document.removeEventListener("touchend",e.handleMouseup)})),kt()(Rt()(e),"handleDrag",(function(t){if(e.img){var n=(t=t.touches[0]).clientX-e.dragStartX;e.dragBox===e.boxes[0]||e.dragBox===e.boxes[3]?e.img.width=Math.round(e.preDragWidth-n):e.img.width=Math.round(e.preDragWidth+n),e.requestUpdate()}})),kt()(Rt()(e),"setCursor",(function(t){[document.body,e.img].forEach((function(e){e.style.cursor=t}))})),e}return ae()(n)}(Mt)},Vt=ae()((function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe()(this,e),kt()(this,"initializeModules",(function(){n.removeModules(),n.modules=n.moduleClasses.map((function(e){return new(jt[e]||e)(n)})),n.modules.forEach((function(e){e.onCreate()})),n.onUpdate()})),kt()(this,"onUpdate",(function(){n.repositionElements(),n.modules.forEach((function(e){e.onUpdate()}))})),kt()(this,"removeModules",(function(){n.modules.forEach((function(e){e.onDestroy()})),n.modules=[]})),kt()(this,"handleClick",(function(e){if(e.target&&e.target.tagName&&"IMG"===e.target.tagName.toUpperCase()){if(n.img===e.target)return;n.img&&n.hide(),n.show(e.target),e.preventDefault()}else n.img&&n.hide()})),kt()(this,"handleScroll",(function(e){n.hide()})),kt()(this,"show",(function(e){0!==n.moduleClasses.length&&(n.img=e,n.showOverlay(),n.initializeModules())})),kt()(this,"showOverlay",(function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0),n.overlay=document.createElement("div"),Ke()(n.overlay.style,n.options.overlayStyles),n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()})),kt()(this,"hideOverlay",(function(){n.overlay&&(n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect(""))})),kt()(this,"repositionElements",(function(){if(n.overlay&&n.img){var e=n.quill.root.parentNode,t=n.img.getBoundingClientRect(),i=e.getBoundingClientRect();Ke()(n.overlay.style,{left:"".concat(t.left-i.left-1+e.scrollLeft,"px"),top:"".concat(t.top-i.top+e.scrollTop,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")})}})),kt()(this,"hide",(function(){n.hideOverlay(),n.removeModules(),n.img=void 0})),kt()(this,"setUserSelect",(function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){n.quill.root.style[t]=e,document.documentElement.style[t]=e}))})),kt()(this,"checkImage",(function(e){n.img&&(46!=e.keyCode&&8!=e.keyCode||window.Quill.find(n.img).deleteAt(0),n.hide())})),this.quill=t;var o=!1;i.modules&&(o=i.modules.slice()),this.options=Pt()({},i,Ot),!1!==o&&(this.options.modules=o),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.addEventListener("mscontrolselect",this.handleClick,!1),this.quill.root.addEventListener("scroll",this.handleScroll,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]}));if(window.Quill){var qt=["alt","height","width","style"],Ht=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(){return oe()(this,n),t.apply(this,arguments)}return ae()(n,[{key:"format",value:function(e,t){qt.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):bt()(Et()(n.prototype),"format",this).call(this,e,t)}}],[{key:"formats",value:function(e){return qt.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}}]),n}(window.Quill.import("formats/image"));window.Quill.register(Ht,!0),window.Quill.register("modules/imageResize",Vt)}var Ut,Wt,zt,Gt=n(14),Yt=n.n(Gt),Kt=n(8),Xt=n.n(Kt),Zt=n(19),Jt=n.n(Zt),Qt=n(1),en=n.n(Qt),tn={login:1,login_cancel:2,login_fail:3,request_fail:4,connectSocket_fail:5,closeSocket_fail:6,sendSocketMessage_fail:7,uploadFile_fail:8,downloadFile_fail:9,redirectTo_fail:10,navigateTo_fail:11,navigateBack_fail:12,appServiceSDKScriptError:13,webviewSDKScriptError:14,jsEnginScriptError:15,thirdScriptError:16,webviewScriptError:17,ftparserScriptError:18,startRecord:19,startRecord_fail:20,getLocation:21,getLocation_fail:22,chooseLocation:23,chooseLocation_fail:24,openAddress:25,openAddress_fail:26,openLocation:27,openLocation_fail:28,makePhoneCall:29,makePhoneCall_fail:30,operateWXData:31,operateWXData_fail:32,checkLogin:33,checkLogin_fail:34,refreshSession:35,refreshSession_fail:36,chooseVideo:37,chooseVideo_fail:38,chooseImage:39,chooseImage_fail:40,verifyPaymentPassword:41,verifyPaymentPassword_fail:42,requestPayment:43,requestPayment_fail:44,bindPaymentCard:45,bindPaymentCard_fail:46,requestPaymentToBank:47,requestPaymentToBank_fail:48,openDocument:49,openDocument_fail:50,chooseContact:51,chooseContact_fail:52,operateMusicPlayer:53,operateMusicPlayer_fail:54,getMusicPlayerState_fail:55,playVoice_fail:56,setNavigationBarTitle_fail:57,switchTab_fail:58,getImageInfo_fail:59,enableCompass_fail:60,enableAccelerometer_fail:61,getStorage_fail:62,setStorage_fail:63,clearStorage_fail:64,removeStorage_fail:65,getStorageInfo_fail:66,getStorageSync_fail:67,setStorageSync_fail:68,addCard_fail:69,openCard_fail:70},nn={Speed:"13544",Error:"13582",Slow:"13968"},on={webview2AppService:1,appService2Webview:2,funcReady:3,firstGetData:4,firstRenderTime:5,reRenderTime:6,forceUpdateRenderTime:7,appRoute2newPage:8,newPage2pageReady:9,thirdScriptRunTime:10,pageframe:11,WAWebview:12},rn={apiCallback:1,pageInvoke:2},an={appServiceSDKScriptError:1,webviewSDKScriptError:2,jsEnginScriptError:3,thirdScriptError:4,webviewScriptError:5,ftparserScriptError:6,appServiceScriptError:7},sn={background:1,foreground:2,launch:3,enterPage:4,leavePage:5,pageReady:6,pullDownRefresh:7};function cn(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):cn(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function un(){var e=arguments;!function(e){void 0!==Ut?e():document.addEventListener(Wt+"JSBridgeReady",e,!1)}((function(){Ut.invoke.apply(Ut,e)}))}function dn(){fn&&fn.length>0&&(un("systemLog",{dataArray:fn}),fn=[])}function hn(e){En.__defineGetter__(e,(function(){return t=Cn[e],function(){try{return t.apply(t,arguments)}catch(e){console.error("reporter error:"+e.message)}};var t}))}"undefined"!=typeof ServiceJSBridge?(Ut=window.ServiceJSBridge,Wt="Service",zt="H5_JS_SERVICE_ERR"):"undefined"!=typeof FinChatJSBridge&&(Ut=window.FinChatJSBridge,Wt="FinChat",zt="H5_JS_VIEW_ERR");var pn=[],fn=[],vn=0,mn=0,_n=0,gn={},bn={},yn=function(){},wn=function(){},xn=function(){},An=function(){},Cn={surroundThirdByTryCatch:function(e,t){return function(){var n;try{var i=v()();n=e.apply(e,arguments);var o=v()()-i;o>1e3&&Cn.slowReport({key:"apiCallback",cost:o,extend:t})}catch(e){Cn.thirdErrorReport({error:e,extend:t})}return n}},slowReport:function(e){var t=e.key,n=e.cost,i=e.extend,o=e.force,r=rn[t],a=v()(),s=r&&(o||a-_n>=500);if(s&&(E()(bn).length>50?s=!1:(bn[i]||(bn[i]=0),bn[i]++,s=bn[i]<=3)),s){_n=a;var c=n+","+encodeURIComponent(i)+","+r;Cn.reportKeyValue({key:"Slow",value:c,force:!0,valuetype:t,cost:n})}},speedReport:function(e){var t=e.key,n=e.data,i=e.timeMark,o=e.force,r=on[t],a=v()(),s=0,c=i.nativeTime,l=r;if(l&&(l=(o||a-(gn[r]||0)>=500)&&i.startTime&&i.endTime&&(1!==r&&2!==r||c)),l){n&&(s=ce()(n).length),gn[r]=a;var u="".concat(r,",").concat(i.startTime,",").concat(c,",").concat(c,",,").concat(i.endTime,",").concat(s);Cn.reportKeyValue({key:"Speed",value:u,force:!0,valuetype:t,payload:{startTime:i.startTime,endTime:i.endTime,nativeTime:c}})}},reportKeyValue:function(e){var t=e.key,n=e.value,o=e.cost,r=e.payload||{},a=e.valuetype;nn[t]&&un("reportApmMonitor",{eventType:t,eventName:a,timestamp:(new Date).getTime(),payload:ln({key:i[t][a],value:n,cost:o},r)})},reportIDKey:function(e){var t=e.key;tn[t]&&un("reportApmMonitor",{eventType:"InvokeAPI",eventName:t,timestamp:(new Date).getTime(),payload:{platform:T?"IOS":"Android",key:tn[t]}})},thirdErrorReport:function(e){var t=e.error,n=e.extend;console.error(t),Cn.errorReport({key:"thirdScriptError",error:t,extend:n,isUnhandledRejection:!!e.promise,promise:e.promise,isThirdScriptError:!0})},errorReport:function(e){var t={},n=e.error||{},i=e.extend,o=e.isUnhandledRejection||!1,r=e.promise||{},a=e.key,s=e.isThirdScriptError||!1;t.msg=i?n.message+";"+i:n.message,t.stack=n.stack,an[a]?t.key=a:t.key="unknowErr",un("reportApmMonitor",{eventType:"ErrorType",eventName:a,timestamp:(new Date).getTime(),payload:{event_desc:ce()(t),key:an[e.key],layer:zt}});var c=s?"MiniProgramError":"SystemError (".concat(a,")"),l="",u="";if("object"===Ce()(n)&&(n.message||n.stack))l=n.message,u=n.stack;else{try{l=ce()(n)}catch(e){l=""}u=Object.prototype.toString.call(n).slice(8,-1)}var d=l,h="";n.name&&0!==u.indexOf(n.name)&&(h="\n"+n.name+": "+d);var p="".concat(c,"\n").concat(d).concat(h,"\n").concat(u);s?Cn.triggerThirdErrorMessage(p,o,n,r):Cn.triggerErrorMessage(p,o,n,r)},log:function(e,t){e&&"string"==typeof e&&(t||v()()-vn>=50)&&(vn=v()(),fn.push(e+""),fn.length>=50&&dn())},submit:function(){v()()-mn>=50&&(mn=v()(),pn&&pn.length>0&&(un("reportKeyValue",{dataArray:pn}),pn=[]),dn())},registerErrorListener:function(e){"function"==typeof e&&(yn=e)},unRegisterErrorListener:function(){yn=function(){}},triggerErrorMessage:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;void 0!==t?setTimeout((function(){try{t?xn(n,i):yn(e)}catch(e){console.error(e.message,"at onError callback function")}}),0):yn(e)},getAppType:function(){return 0},triggerThirdErrorMessage:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;setTimeout((function(){try{t?An(n,i):wn(e)}catch(e){console.error(e.message,"at onError callback function")}}),0)},registerThirdErrorListener:function(e){"function"==typeof e&&(wn=e)},registerUnhandledRejectionListener:function(e){"function"==typeof e&&(xn=e)},registerThirdUnhandledRejectionListener:function(e){"function"==typeof e&&(An=e)}},En={};for(var Sn in Cn)hn(Sn);"undefined"!=typeof window&&(window.onbeforeunload=function(){Cn.submit()}),window.Reporter=En;var kn=n(29),Tn=n.n(kn),In=n(44),Nn=n.n(In);window.BASE_DEVICE_WIDTH=750,window.EPS=1e-4,window.RPXRE=/%%\?[+-]?\d+(\.\d+)?rpx\?%%/g,window.transformByDPR=function(e,t,n){return e=e/BASE_DEVICE_WIDTH*t,0===(e=Math.floor(e+EPS))?1===n?1:.5:e},window.getNumber=function(e,t,n){for(var i=0,o=1,r=!1,a=!1,s=0;s<e.length;++s){var c=e[s];c>="0"&&c<="9"?r?i+=(c-"0")*(o*=.1):i=10*i+(c-"0"):"."===c?r=!0:"-"===c&&(a=!0)}return a&&(i=-i),transformByDPR(i,t,n)},window.__transformRpx__=function(e,t){if(0===Number(e))return 0;var n=window.devicePixelRatio;return getNumber(""+e,t||wd.getCorrectSize().width,n)};var Pn=function(e,t,n,i,o){var r=e.match(RPXRE);if(r&&Tn()(new Nn.a(r)).forEach((function(i){var o=" "+getNumber(i,t,n)+"px ";e=e.replace(new RegExp(i.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),"g"),o)})),e){var a=document.querySelector('style[page="'.concat(i,'"]')),s=document.querySelector("head"),c=document.createElement("style");c.setAttribute("type","text/css"),c.setAttribute("page",i),c.innerHTML=e,"customStyle"===o||"app"===i?document.head.insertBefore(c,document.getElementsByTagName("link")[0].nextSibling):s.appendChild(c),a&&a.remove()}};function On(e){"undefined"!=typeof FinChatJSBridge?e():document.addEventListener("FinChatJSBridgeReady",e,!1)}function Ln(){var e=arguments;On((function(){FinChatJSBridge.invoke.apply(FinChatJSBridge,e)}))}function Rn(){var e=arguments;On((function(){FinChatJSBridge.on.apply(FinChatJSBridge,e)}))}window.inlineCss=Pn;var Mn={invoke:Ln,on:Rn,publish:function(){var e=Array.prototype.slice.call(arguments);e[1]={data:e[1],options:{timestamp:v()()}},On((function(){FinChatJSBridge.publish.apply(FinChatJSBridge,e)}))},subscribe:function(){var e=Array.prototype.slice.call(arguments),t=e[1];e[1]=function(e,n){var i=e.data,o=e.options,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o&&o.timestamp||0,s=v()();"function"==typeof t&&t(i,n),Reporter.speedReport({key:"appService2Webview",data:i||{},timeMark:{startTime:a,endTime:s,nativeTime:r.nativeTime}})},On((function(){FinChatJSBridge.subscribe.apply(FinChatJSBridge,e)}))},invokeMethod:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={};for(var o in t)"function"==typeof t[o]&&(i[o]=t[o],delete t[o]);Ln(e,t,(function(t){t.errMsg=t.errMsg||e+":ok";var o=0===t.errMsg.indexOf(e+":ok"),r=0===t.errMsg.indexOf(e+":cancel"),a=0===t.errMsg.indexOf(e+":fail");"function"==typeof n.beforeAll&&n.beforeAll(t),o?("function"==typeof n.beforeSuccess&&n.beforeSuccess(t),"function"==typeof i.success&&i.success(t),"function"==typeof n.afterSuccess&&n.afterSuccess(t)):r?("function"==typeof i.cancel&&i.cancel(t),"function"==typeof n.cancel&&n.cancel(t)):a&&("function"==typeof i.fail&&i.fail(t),"function"==typeof n.fail&&n.fail(t)),"function"==typeof i.complete&&i.complete(t),"function"==typeof n.complete&&n.complete(t)}))},onMethod:function(e,t){Rn(e,t)}},Bn=n(309);var $n,Fn,Dn={getPlatform:function(){var e=window.navigator.userAgent.toLowerCase();return/devtools/.test(e)?"devtools":/(iphone|ipad)/.test(e)?"ios":/android/.test(e)?"android":void 0},WebviewSdkKnownError:function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;return oe()(this,n),(i=t.call(this,"Webview-SDK:"+e)).type="WebviewSdkKnownError",i}return ae()(n)}(n.n(Bn)()(Error)),base64ToUint8ClampedArray:function(e){for(var t=window.atob(e),n=t.length,i=new Uint8ClampedArray(n),o=0;o<n;o++)i[o]=t.charCodeAt(o);return i},uint8ClampedArrayToBase64:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return window.btoa(t)},transformUrl:P?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e.startsWith("//")&&(e="https:".concat(e)),/(wdfile|hyfile):/i.test(e))return e.replace(/(wdfile|hyfile):\/\//i,"/miniprogram/preview/");if(/(https?|file):/i.test(e)||/^\s*data:image/.test(e))return e;if(e.startsWith("/")){e=e.substr(1);var t=window.__path__.split("/").slice(0,-1);t.length?t.forEach((function(){e="../".concat(e)})):e="./".concat(e)}return e}:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.__path__;if(!/(https?|file|wdfile|hyfile):/i.test(t)&&!/^\s*data:image/.test(t)){if("/"===t.substring(0,1))return t.startsWith("//")?"https:"+t:t.substr(1);if(0===t.indexOf("./"))return e(t.substr(2),n);var i,o,r=t.split("/");for(i=0,o=r.length;i<o&&".."===r[i];i++);r.splice(0,i);var a=n.length>0?n.split("/"):[];return a.splice(a.length-i-1,i+1),a.concat(r).join("/")}return t},toArray:function(e){if(A()(e)){for(var t=Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return t}return Tn()(e)}};function jn(){throw new Error("setTimeout has not been defined")}function Vn(){throw new Error("clearTimeout has not been defined")}function qn(e){if($n===setTimeout)return setTimeout(e,0);if(($n===jn||!$n)&&setTimeout)return $n=setTimeout,setTimeout(e,0);try{return setTimeout(e,0)}catch(t){return $n.call(this,e,0)}}!function(){try{$n="function"==typeof setTimeout?setTimeout:jn}catch(e){$n=jn}try{Fn="function"==typeof clearTimeout?clearTimeout:Vn}catch(e){Fn=Vn}}();var Hn,Un=[],Wn=!1,zn=-1;function Gn(){Wn&&Hn&&(Wn=!1,Hn.length?Un=Hn.concat(Un):zn=-1,Un.length&&Yn())}function Yn(){if(!Wn){var e=qn(Gn);Wn=!0;for(var t=Un.length;t;){for(Hn=Un,Un=[];++zn<t;)Hn&&Hn[zn].run();zn=-1,t=Un.length}Hn=null,Wn=!1,function(e){if(Fn===clearTimeout)return clearTimeout(e);if((Fn===Vn||!Fn)&&clearTimeout)return Fn=clearTimeout,clearTimeout(e);try{clearTimeout(e)}catch(t){return Fn.call(this,e)}}(e)}}function Kn(e,t){var n,i="function"==typeof e;if(Un.push({run:function(){if(i)try{e.call(t)}catch(e){console.log(e,t,"nextTick")}else n(t)}}),1!==Un.length||Wn||qn(Yn),!i&&void 0!==d.a)return new d.a((function(e){n=e}))}var Xn=navigator.userAgent.match("iPhone"),Zn=window.innerWidth||window.screen&&window.screen.availWidth||375,Jn=window.devicePixelRatio||2,Qn=function(e){return 0===(e=(e=e/750*Zn)<0?0-Math.floor(Math.abs(e)):Math.floor(e+1e-4))?1!==Jn&&Xn?.5:1:e},ei=/%%\?[+-]?\d+(\.\d+)?rpx\?%%/g,ti=/(:|\s|\()[+-]?\d+(\.\d+)?rpx/g;function ni(e){return"number"==typeof e?e+"px":e}function ii(e){return e+"deg"}var oi={rpxToPxNum:Qn,transformRpx:function(e,t){if(n=e,"[object String]"!==Object.prototype.toString.call(n))return e;var n,i=t?e.match(ti):e.match(ei);return i&&i.forEach((function(n){var i=function(e){for(var t=0,n=1,i=!1,o=!1,r=0;r<e.length;++r){var a=e[r];a>="0"&&a<="9"?i?t+=(a-"0")*(n*=.1):t=10*t+(a-"0"):"."===a?i=!0:"-"===a&&(o=!0)}return o&&(t=-t),Qn(t)}(n),o=(t?n[0]:"")+i+"px";e=e.replace(n,o)})),e},nextTick:function(e,t){setTimeout((function(){return Kn(e,t)}),0)},animationToStyle:function(e){var t=e.animates,n=e.option,i=void 0===n?{}:n,o=i.transformOrigin,a=i.transition;if(void 0===a||void 0===t)return{transformOrigin:"",transform:"",transition:""};var s=t.filter((function(e){return"style"!==e.type})).map((function(e){var t=e.type,n=e.args;switch(t){case"matrix":return"matrix("+n.join(",")+")";case"matrix3d":return"matrix3d("+n.join(",")+")";case"rotate":return"rotate("+(n=n.map(ii))[0]+")";case"rotate3d":return n[3]=ii(n[3]),"rotate3d("+n.join(",")+")";case"rotateX":return"rotateX("+(n=n.map(ii))[0]+")";case"rotateY":return"rotateY("+(n=n.map(ii))[0]+")";case"rotateZ":return"rotateZ("+(n=n.map(ii))[0]+")";case"scale":return"scale("+n.join(",")+")";case"scale3d":return"scale3d("+n.join(",")+")";case"scaleX":return"scaleX("+n[0]+")";case"scaleY":return"scaleY("+n[0]+")";case"scaleZ":return"scaleZ("+n[0]+")";case"translate":return"translate("+(n=n.map(ni)).join(",")+")";case"translate3d":return"translate3d("+(n=n.map(ni)).join(",")+")";case"translateX":return"translateX("+(n=n.map(ni))[0]+")";case"translateY":return"translateY("+(n=n.map(ni))[0]+")";case"translateZ":return"translateZ("+(n=n.map(ni))[0]+")";case"skew":return"skew("+(n=n.map(ii)).join(",")+")";case"skewX":return"skewX("+(n=n.map(ii))[0]+")";case"skewY":return"skewY("+(n=n.map(ii))[0]+")";default:return""}})).join(" "),c=t.filter((function(e){return"style"===e.type})).reduce((function(e,t){return e[t.args[0]]=t.args[1],e}),{});return{style:c,transformOrigin:o,transform:s,transitionProperty:["transform"].concat(r()(E()(c))).join(","),transition:a.duration+"ms "+a.timingFunction+" "+a.delay+"ms"}},getRealRoute:function e(){var t,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===o.indexOf("/"))return o.substr(1);if(0===o.indexOf("./"))return e(i,o.substr(2));var r=o.split("/");for(t=0,n=r.length;t<n&&".."===r[t];t++);r.splice(0,t);var a=i.length>0?i.split("/"):[];return a.splice(a.length-t-1,t+1),a.concat(r).join("/")}},ri=n(30),ai=n.n(ri),si=n(48),ci=n.n(si);function li(e){e?(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),this._maxListeners=void 0!==e.maxListeners?e.maxListeners:20,e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener)):this._maxListeners=20}function ui(){this._events={},this._conf&&li.call(this,this._conf)}function di(e,t){console.warn("[Event] ".concat(e," listeners of event ").concat(t," have been added, possibly causing memory leak."))}var hi=A.a?A.a:function(e){return"[object Array]"===Object.prototype.toString.call(e)};function pi(e){this._events={},this._newListener=!1,this._removeListener=!1,li.call(this,e)}pi.prototype.delimiter=".",pi.prototype.setMaxListeners=function(e){void 0!==e&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},pi.prototype.event="",pi.prototype.once=function(e,t){return this._once(e,t,!1)},pi.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},pi.prototype._once=function(e,t,n){return this._many(e,1,t,n),this},pi.prototype.many=function(e,t,n){return this._many(e,t,n,!1)},pi.prototype.prependMany=function(e,t,n){return this._many(e,t,n,!0)},pi.prototype._many=function(e,t,n,i){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function r(){return 0==--t&&o.off(e,r),n.apply(this,arguments)}return r._origin=n,this._on(e,r,i),o},pi.prototype.emit=function(e){if(this._events||ui.call(this),"newListener"===e&&!this._newListener&&!this._events.newListener)return!1;for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var r=i.slice(1);if(this._all&&this._all.length){t=this._all.slice();for(var a=0;a<t.length;a++)switch(this.event=e,n){case 1:t[a].call(this,e);break;case 2:t[a].call(this,e,arguments[1]);break;case 3:t[a].call(this,e,arguments[1],arguments[2]);break;default:t[a].apply(this,i)}}if("function"==typeof(t=this._events[e])){switch(this.event=e,n){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:t.apply(this,r)}return!0}if(t&&(t=t.slice()),t&&t.length){for(var s=0;s<t.length;s++)switch(this.event=e,n){case 1:t[s].call(this);break;case 2:t[s].call(this,arguments[1]);break;case 3:t[s].call(this,arguments[1],arguments[2]);break;default:t[s].apply(this,r)}return!0}if(!this._all&&"error"===e)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},pi.prototype.emitAsync=function(e){if(this._events||ui.call(this),"newListener"===e&&!this._newListener&&!this._events.newListener)return d.a.resolve([!1]);for(var t,n=[],i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var a=o.slice(1);if(this._all)for(var s=0;s<this._all.length;s++)switch(this.event=e,i){case 1:n.push(this._all[s].call(this,e));break;case 2:n.push(this._all[s].call(this,e,arguments[1]));break;case 3:n.push(this._all[s].call(this,e,arguments[1],arguments[2]));break;default:n.push(this._all[s].apply(this,o))}if("function"==typeof(t=this._events[e]))switch(this.event=e,i){case 1:n.push(t.call(this));break;case 2:n.push(t.call(this,arguments[1]));break;case 3:n.push(t.call(this,arguments[1],arguments[2]));break;default:n.push(t.apply(this,a))}else if(t&&t.length){t=t.slice();for(var c=0;c<t.length;c++)switch(this.event=e,i){case 1:n.push(t[c].call(this));break;case 2:n.push(t[c].call(this,arguments[1]));break;case 3:n.push(t[c].call(this,arguments[1],arguments[2]));break;default:n.push(t[c].apply(this,a))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?d.a.reject(arguments[1]):d.a.reject(new Error("Uncaught, unspecified 'error' event."));return d.a.all(n)},pi.prototype.on=function(e,t){return this._on(e,t,!1)},pi.prototype.prependListener=function(e,t){return this._on(e,t,!0)},pi.prototype.onAny=function(e){return this._onAny(e,!1)},pi.prototype.prependAny=function(e){return this._onAny(e,!0)},pi.prototype.addListener=pi.prototype.on,pi.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},pi.prototype._on=function(e,t,n){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");return this._events||ui.call(this),this._newListener&&this.emit("newListener",e,t),this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),n?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,di.call(this,this._events[e].length,e))):this._events[e]=t,this},pi.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,i=[];if(!this._events[e])return this;n=this._events[e],i.push({_listeners:n});for(var o=0;o<i.length;o++){if(n=i[o]._listeners,hi(n)){for(var r=-1,a=0,s=n.length;a<s;a++)if(n[a]===t||n[a].listener&&n[a].listener===t||n[a]._origin&&n[a]._origin===t){r=a;break}if(r<0)continue;return this._events[e].splice(r,1),0===n.length&&delete this._events[e],this._removeListener&&this.emit("removeListener",e,t),this}(n===t||n.listener&&n.listener===t||n._origin&&n._origin===t)&&(delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return function e(t){if(void 0!==t){var n=E()(t);for(var i in n){var o=n[i],r=t[o];r instanceof Function||"object"!==Ce()(r)||null===r||(E()(r).length>0&&e(t[o]),0===E()(r).length&&delete t[o])}}}(this.listenerTree),this},pi.prototype.offAny=function(e){var t=this._all,n=this._all.length;if(e&&this._all&&this._all.length>0){for(var i=0;i<n;i++)if(e===t[i])return t.splice(i,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(this._removeListener)for(var o=0;o<n;o++)this.emit("removeListenerAny",t[o]);this._all=[]}return this},pi.prototype.removeListener=pi.prototype.off,pi.prototype.removeAllListeners=function(e){return void 0===e?!this._events||ui.call(this):this._events&&delete this._events[e],this},pi.prototype.listeners=function(e){return this._events||ui.call(this),this._events[e]||(this._events[e]=[]),hi(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},pi.prototype.eventNames=function(){return E()(this._events)},pi.prototype.listenerCount=function(e){return this.listeners(e).length},pi.prototype.listenersAny=function(){return this._all?this._all:[]};var fi=new pi({maxListeners:20,newListener:!1}),vi=new pi({maxListeners:20,newListener:!1}),mi={};function _i(e){if(e=e[0].toUpperCase()+e.slice(1),!mi[e]){var t=new b.a;mi[e]={getGlobalListeners:function(){return fi.listeners(e)},getInternalListeners:function(){return vi.listeners(e)},emit:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];vi.emit.apply(vi,[e].concat(n)),fi.emit.apply(fi,[e].concat(n))},emitGlobal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];fi.emit.apply(fi,[e].concat(n))},emitInternal:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];vi.emit.apply(vi,[e].concat(n))},internalOnMethod:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"==typeof t&&(n.prepend?n.once?vi.prependOnceListener(e,t):vi.prependListener(e,t):n.once?vi.once(e,t):vi.on(e,t))},internalOffMethod:function(t){"function"==typeof t&&vi.off(e,t)},onMethod:function(n){var i,o,r=(i=e,"function"!=typeof(o=n)?(console.error("on".concat(i," should accept a function instead of ").concat(Ce()(o))),null):__errorTracer__.surroundThirdByTryCatch(o,"at api on".concat(i," callback function")));if(r){if(t.has(n)){var a=t.get(n);a.push(r),t.set(n,a)}else t.set(n,[r]);fi.on(e,r)}},offMethod:function(n){var i,o;i=e,(o=n)&&"function"!=typeof o&&(console.error("off".concat(i," should accept a function instead of ").concat(Ce()(o))),1)||(n?t.has(n)&&(t.get(n).forEach((function(t){return fi.off(e,t)})),t.delete(n)):(t=new b.a,fi.removeAllListeners(e)))}}}return mi[e]}var gi=function(){try{var e=(window.__fcjs_systemInfo||{}).runtimeSDKVersion;if(!e){var t=(navigator&&navigator.userAgent||"").match(/runtimeSdkVersion\/([^)]+)/i)||[];return t.length&&t[1]?t[1]:""}return e}catch(e){return""}}();function bi(){return!!M(gi,"2.37.7")&&(0!==gi.indexOf("2.38.0")||B(gi,"2.38.0-alpha20220730v01"))}var yi=M(gi,"2.34.1"),wi=B(gi,"2.38.0-alpha20220716v01")&&Boolean(!window.isWebviewGame),xi=bi(),Ai=T?bi():!!B(gi,"2.37.10-alpha20220824v01")||0===gi.indexOf("2.38.0")&&B(gi,"2.38.0-alpha20220825v01");Boolean(window.__fcjs_isSupportCanvasObject),Ci=z(),T&&!M(Ci,"10.0.0")||k&&M(Ci,"5.2.0");var Ci,Ei=B(gi,"2.39.0-alpha20221111v07"),ki=!(!T||!B(gi,"2.39.2-alpha20230105v03"))||!(!I||!M(gi,"1.3.5")),Ti=B(gi,"2.42.0");function Ii(){return window.isSupportFinclipTongceng||{}}function Ni(e){var t={insert:"showNativeView",remove:"hideNativeView",update:"updateNativeView"},n=window.__fcjs_liveComponetUseNative;return n&&(t.insert="show"+e,t.remove="remove"+e,t.update="update"+e),{eventName:t,useComponet:n}}var Pi=k?gi.startsWith("2.40.0")?B(gi,"2.40.0-beta20230130v01"):M(gi,"2.40.0"):0===gi.indexOf("2.39")?B(gi,"2.39.4-alpha20230117v01"):0===gi.indexOf("2.40.0")?B(gi,"2.40.0-alpha20220117v08"):M(gi,"2.40.0");!k||(gi.startsWith("2.40.0")?B(gi,"2.40.0-alpha20230224v02"):M(gi,"2.39.9"));var Oi=!T||M(gi,"2.41.7"),Li=(/(finclip-tv)/i.test(navigator&&navigator.userAgent||""),n(310)),Ri=n.n(Li);function Mi(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Mi(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function $i(){FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]})}function Fi(){FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]})}var Di=["log","warn","error","info","debug"],ji=null;function Vi(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Vi(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function Hi(e){Wi?Ui[e]=so[e]:Ui.__defineGetter__(e,(function(){return function(){try{return so[e].apply(this,arguments)}catch(e){!function(e,t){if("[object Error]"===Object.prototype.toString.apply(e)){if("WebviewSdkKnownError"===e.type)throw e;Reporter.errorReport({key:"webviewSDKScriptError",error:e,extend:t})}}(e)}}}))}!window.isIDE&&wi?Di.forEach((function(e){var t=console[e];console[e]=function(){var n=function(e){try{return(e=Array.prototype.slice.call(e)).map(W)}catch(e){return console.warn("[console] This object can not be logged",e)}}(arguments);t.apply(console,arguments),Mn.publish("consoleForwardLogs",{method:e,log:n})}})):(Di.forEach((function(e){Mn.subscribe(e,(function(t){var n=t.log;console[e].apply(console,n)}))})),Mn.subscribe("initLogs",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.init,n=e.logs,i=e.theme,o=e.updateLocalStorage,r=e.removeLocalStorage,a=e.clearLocalStorage;t&&(ji||(ji=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ri.a(Bi(Bi({},e),{},{onClearLog:function(){FinChatJSBridge.publish("onViewLogEvent",{method:"clearLogs"})},onStorageAdd:function(e){var t=e.key,n=e.value;FinChatJSBridge.publish("onViewLogEvent",{method:"setStorage",key:t,value:n})},onStorageDel:function(e){var t=e.key;FinChatJSBridge.publish("onViewLogEvent",{method:"removeStorage",key:t})},onStorageEdit:function(e){var t=e.key,n=e.value;FinChatJSBridge.publish("onViewLogEvent",{method:"setStorage",key:t,value:n})}}));t.setSwitchPosition(5,50),window.vConsole=t,t.removePlugin("network"),Mn.subscribe("clearLogs",(function(){console.clear()}));var n=document.querySelector("#__vconsole .vc-content");return n&&n.addEventListener("touchstart",Fi),n&&n.addEventListener("touchend",$i),t}({theme:i}),n.forEach((function(e){var t=e.method,n=e.log;console[t].apply(console,n)})))),ji&&(i&&ji.setOption({theme:i}),a&&localStorage.clear(),o&&E()(o).forEach((function(e){var t=o[e];"string"!=typeof t&&(t=ce()(t)),localStorage.setItem(e,t)})),r&&E()(r).forEach((function(e){localStorage.removeItem(e)})))})));var Ui={},Wi="devtools"===Dn.getPlatform(),zi=function(e,t){Mn.publish("INVOKE_METHOD",{name:e,args:t})},Gi=_i("AppEnterBackground"),Yi=Gi.internalOnMethod,Ki=Gi.internalOffMethod;Mn.subscribe("pageonhide",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Gi.emit(e)}));var Xi=_i("AppEnterForeground"),Zi=Xi.internalOnMethod,Ji=Xi.internalOffMethod;Mn.subscribe("pageonshow",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Xi.emit(e)}));var Qi,eo,to,no,io=_i("PageResizeChange"),oo=io.internalOnMethod,ro=io.internalOffMethod;function ao(){var e,t,n=Qi||window.innerWidth||window.screen&&window.screen.width||375,i=eo||window.innerHeight||window.screen&&window.screen.height||375;switch(window.orientation){case 90:case-90:e=Math.max(n,i),t=Math.min(n,i);break;default:e=Math.min(n,i),t=Math.max(n,i)}to=e,no=t}Mn.subscribe("pageResizeChange",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};io.emit(e)}));var so=qi(qi({},oi),{},{invoke:Mn.invoke,on:Mn.on,publish:Mn.publish,getPlatform:Dn.getPlatform,onAppEnterForeground:Zi,offAppEnterForeground:Ji,onAppEnterBackground:Yi,offAppEnterBackground:Ki,reportIDKey:function(e,t){console.warn("reportIDKey has been removed wd")},reportKeyValue:function(e,t){console.warn("reportKeyValue has been removed from wd")},initReady:function(){Mn.invokeMethod("initReady")},redirectTo:function(e){zi("redirectTo",e)},navigateTo:function(e){zi("navigateTo",e)},navigateBack:function(e){zi("navigateBack",e)},getSystemInfo:function(e){Mn.invokeMethod("getSystemInfo",e)},reLaunch:function(e){zi("reLaunch",e)},switchTab:function(e){zi("switchTab",e)},clearStorage:function(){zi("clearStorage",{})},showKeyboard:function(e){Mn.invokeMethod("showKeyboard",e)},hideKeyboard:function(e){Mn.invokeMethod("hideKeyboard",e)},insertMap:function(e){Mn.invokeMethod("insertMap",e)},removeMap:function(e){Mn.invokeMethod("removeMap",e)},updateMapCovers:function(e){Mn.invokeMethod("updateMapCovers",e)},insertVideoPlayer:function(e){Mn.invokeMethod("insertVideoPlayer",e)},removeVideoPlayer:function(e){Mn.invokeMethod("removeVideoPlayer",e)},setBackgroundColor:function(e){zi("setBackgroundColor",e)},setBackgroundTextStyle:function(e){zi("setBackgroundTextStyle",e)},pageScrollTo:function(e){zi("pageScrollTo",e)},onAppDataChange:function(e){Mn.subscribe("appDataChange",(function(t){e(t)}))},onPageResizeChange:oo,offPageResizeChange:ro,onPageScrollTo:function(e){Mn.subscribe("pageScrollTo",(function(t){e(t)}))},publishPageEvent:function(e,t,n){Mn.publish("PAGE_EVENT",{eventName:e,data:t,nodeId:n})},publishCanvasEvent:function(e,t){Mn.publish("CANVAS_EVENT_V2",{eventName:e,data:t})},publishInputInfo:function(e,t){Mn.publish("INPUT_INFO",{eventName:e,data:t})},setNavigationBarTitle:function(e){zi("setNavigationBarTitle",e)},showNavigationBarLoading:function(e){zi("showNavigationBarLoading",e)},hideNavigationBarLoading:function(e){zi("hideNavigationBarLoading",e)},setNavigationBarColor:function(e){zi("setNavigationBarColor",e)},callMethodFromWxs:function(e){Mn.publish("vdCallComponentMethodForWxs",e)},getInitialRenderingCache:function(){var e=__wxConfig__,t=__path__,n=e.windows.pages[t];(e.window.initialRenderingCache||n&&n.initialRenderingCache)&&Mn.invoke("getInitialRenderingCache",{path:t})},onInitialRenderingCacheReady:function(e){Mn.onMethod("onInitialRenderingCacheReady",e)},saveInitialRenderingCache:function(e){Mn.invoke("saveInitialRenderingCache",{data:e,path:__path__})},generateFormId:function(){var e=v()();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})).replace(/-/g,"")},navigateToMiniProgram:function(e){zi("navigateToMiniProgram",e)},navigateBackMiniProgram:function(e){zi("navigateBackMiniProgram",e)},exitMiniProgram:function(e){zi("exitMiniProgram",e)},getCorrectSize:function(){return no&&no||ao(),{width:to,height:no}},updateSize:ao,setSystemSize:function(e,t){Qi=e,eo=t}});for(var co in so)Hi(co);window.wd=Ui,window.wx=Ui;var lo=FinChatJSBridge.publish.bind(FinChatJSBridge),uo=FinChatJSBridge.subscribe.bind(FinChatJSBridge);window.__webViewSDK__={wx:window.wx,ft:window.ft,_virtualDOMTunnel:{vdSync:function(e,t){lo("vdSync",e,t)},vdSyncBatch:function(e,t){lo("vdSyncBatch",e,t)},onVdSync:function(e){uo("vdSync",(function(t){e(t)}))},onVdSyncBatch:function(e){uo("vdSyncBatch",(function(t){e(t)}))},predefinedColor:G}};var ho={WX_EVENT:11,REQUEST_SAVE:12,COMPONENT_DEF:21,SAVE_STATE:22,RESTORE_STATE:23,FLOW_INITIAL_RENDERING_CACHE:24,FLOW_CLEAR_INITIAL_RENDERING_CACHE:25,FLOW_SET_SUBPACKAGE_LOADED:26,SET_DATA_CALLBACK:32,FLOW_SET_DATA:33,FLUSH_BLOCKED:43,FLOW_GROUP:41,FLOW_GROUP_END:42,FLOW_DEPTH:2,FLOW_INITIAL_CREATION:3,FLOW_UPDATE:6,FLOW_DATA_OBSERVER:8,FLOW_APPLY_PROPERTY:4,FLOW_MINIPULATE_CHILD:7,FLOW_CREATE_NODE:5,FLOW_REPEAT:9,FLOW_VIEW_INFO:63,REQUEST_TAB:51,COMPONENT_DEF_TAB:52,FLOW_CREATE_TAB:53,DESTROY_TAB:54,REQUEST_BROADCAST_VIEW_ID:61,RESPONSE_BROADCAST_VIEW_ID:62,BANNING_MAP:90,PERFORMANCE_DATA:91,CALL_METHOD_FROM_WXS:50,RESPONSE_VIEW_INFO:64,MODEL_VALUE_CHANGE:65,FLOW_SET_NODE_ANIMATION_INFO:100,ANIMATION_TRANSITION_END:101,FLOW_CLEAR_NODE_ANIMATION_INFO:102,CLEAR_ANIMATION_COMPLETE:103,FLOW_SET_NODE_NEXT_ANIMATION_INFO:104,LOAD_COMPONENT_DEF:110,FLOW_WAIT_COMPONENT:112,FLOW_REPLACE_PLACEHOLDER:113,FLOW_COMPONENT_DEF_ADD:120,FLOW_INJECT_SUBPACKAGE:121,FLOW_INJECT_COMPONENT:122,FLOW_HOT_UPDATE:900,FLOW_HOT_UPDATE_CHILD:901,FLOW_HOT_UPDATE_RESET:902,UPDATE_COMPONENT_DEF:903,UPDATE_PERFORMANCE_STAT:800,ENABLE_UPDATE_PERFORMANCE_STAT:801,DISABLE_UPDATE_PERFORMANCE_STAT:802},po={},fo={},vo={},mo=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},_o=function(e,t){var n={left:e.left<t.left?t.left:e.left,top:e.top<t.top?t.top:e.top,right:e.right>t.right?t.right:e.right,bottom:e.bottom>t.bottom?t.bottom:e.bottom,width:0,height:0};return n.right>n.left?n.width=n.right-n.left:n.right=n.left=n.bottom=n.top=0,n.bottom>n.top?n.height=n.bottom-n.top:n.right=n.left=n.bottom=n.top=0,n},go=function(e){return{left:(e=e||{}).left||0,top:e.top||0,right:e.right||0,bottom:e.bottom||0}},bo=function(e){var t=vo[e];delete vo[e];for(var n=0;n<t;n++){var i=e+"#"+n,o=fo[i];if(!o)break;delete po[i],o.disconnect(),delete fo[i]}},yo=function(e,t,n,i,o){var r=null;if((i=i||{}).observeAll)r=e.querySelectorAll(t);else{var a=e.querySelector(t);r=a?[a]:[]}r.length||console.warn('For developer:Node "'+t+'" is not found. Intersection observer will not trigger.');var s=[];return n.forEach((function(t){var n=t.selector,i=t.margins,o=null==n?null:e.querySelector(n);o||null==n?s.push({node:o,margins:go(i)}):console.warn('For developer:Node "'+n+'" is not found. The relative node for intersection observer will be ignored.')})),s.length||console.warn("For developer:Intersection observer will be ignored because no relative nodes are found."),function(e,t,n,i,o,r){var a=Math.floor(4294967296*(1+Math.random())).toString(16).slice(1);if(!e.length||!t.length)return a;var s=e.length;return vo[a]=s,e.forEach((function(e,c){var l=a+"#"+c,u={targetNode:e,relatives:t,thresholds:n,currentRatio:i,minWidthOrHeight:o,cb:r},d=ftparser.Observer.create((function(e){"attached"===e.status?(po[l]=u,requestAnimationFrame((function(){wo(u)}))):"detached"===e.status&&(delete po[l],d.disconnect(),delete fo[l],--s||delete vo[a])}));fo[l]=d,d.observe(e,{attachStatus:!0}),ftparser.Element.isAttached(e)&&(po[l]=u,requestAnimationFrame((function(){wo(u)})))})),a}(r,s,i.thresholds||[0],i.initialRatio||0,i.minWidthOrHeight||0,o)},wo=function(e){for(var t=e.targetNode,n=e.relatives,i=e.thresholds,o=e.minWidthOrHeight,r=e.cb,a=e.currentRatio,s=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l=null,u=0;u<n.length;u++){var d=n[u],h=d.node,p=d.margins,f=h?h.$$.getBoundingClientRect():{left:0,top:0,right:s,bottom:c,width:s,height:c},m={left:f.left-p.left,top:f.top-p.top,right:f.right+p.right,bottom:f.bottom+p.bottom};l=l?_o(l,m):m}var _=l,g=mo(t.$$.getBoundingClientRect());g.right-g.left<o&&(g.right=g.left+o,g.width=o),g.bottom-g.top<o&&(g.bottom=g.top+o,g.height=o);var b=_o(_,g),y=g.width*g.height,w=y?b.width*b.height/y:0;e.currentRatio=w;var x=void 0===a;w!==a&&i.forEach((function(e){if(x)return!1;(w<=e&&a>=e||w>=e&&a<=e)&&(x=!0)})),x&&r.call(t,{id:t.id,dataset:t.dataset,time:v()(),boundingClientRect:g,intersectionRatio:w,intersectionRect:mo(b),relativeRect:_})},xo=!1,Ao=function(){xo||(xo=!0,requestAnimationFrame((function(){for(var e in xo=!1,po)wo(po[e])})))};"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.addEventListener&&(document.addEventListener("pageReRender",(function(){Ao()})),window.addEventListener("scroll",(function(){Ao()}),{capture:!0,passive:!0}));var Co=1,Eo={},So=function(e,t){var n=function(e){if("object"!==Ce()(e))return"";var t="";return["minWidth","maxWidth","width","minHeight","maxHeight","height"].forEach((function(n){if(void 0!==e[n]){var i=Number(e[n]);i>=0||(i="");var o=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));t&&(t+=" and "),t+="(".concat(o,": ").concat(i,"px)")}})),["orientation"].forEach((function(n){if(void 0!==e[n]){var i=/^[-_a-z0-9]+$/i.test(e[n])?e[n]:"",o=n.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));t&&(t+=" and "),t+="(".concat(o,": ").concat(i,")")}})),t}(e),i=window.matchMedia(n),o=Co++,r=function(e){t({matches:e.matches})};return Eo[o]={observer:i,listener:r},i.addListener(r),t({matches:i.matches}),o},ko=function(e){var t=Eo[e],n=t.observer,i=t.listener;n.removeListener(i),delete Eo[e]},To=function(e,t){var n=e.$$,i={};if(t.id&&(i.id=e.id||""),t.dataset&&(i.dataset=e.dataset||{}),t.mark&&(i.mark=e.collectMarks()||{}),t.rect||t.size){var o=n.getBoundingClientRect();t.rect&&(i.left=o.left,i.right=o.right,i.top=o.top,i.bottom=o.bottom),t.size&&(i.width=o.width,i.height=o.height)}if(t.properties&&t.properties.forEach((function(t){var n=t.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}));ftparser.Component.hasPublicProperty(e,n)&&(i[n]=e[n])})),t.scrollOffset)if(e.hasBehavior("wx-positioning-container")){var r=e.getScrollPosition();i.scrollLeft=r.scrollLeft,i.scrollTop=r.scrollTop,i.scrollWidth=r.scrollWidth,i.scrollHeight=r.scrollHeight}else i.scrollLeft=0,i.scrollTop=0,i.scrollWidth=0,i.scrollHeight=0;if(t.computedStyle&&t.computedStyle.length)for(var a=window.getComputedStyle(n),s=0,c=t.computedStyle.length;s<c;s++){var l=t.computedStyle[s];l&&void 0!==a[l]&&(i[l]=a[l])}if(t.context&&(i.domId=e.id,i.contextIs=e.is,i.contextId="function"==typeof e.getContextId&&e.getContextId(),i.nodeCanvasId=e._canvasId||"",i.nodeCanvasNative=e.native||"",i.nodeCanvasType=(e.type||"2d").toLowerCase()),t.node){if(i.nodeIs=e.is,i.nodeId="function"==typeof e.getContextId&&e.getContextId(),i.nodeCanvasId=e._canvasId||"","wx-canvas"===e.is&&!t.size){var u=n.getBoundingClientRect();i.width=u.width,i.height=u.height,i.from="node"}i.nodeCanvasNative=e.native||"",i.nodeCanvasType=(e.type||"2d").toLowerCase()}return i},Io={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},No={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Po=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Oo={CSS:{},springs:{}};function Lo(e,t,n){return Math.min(Math.max(e,t),n)}function Ro(e,t){return e.indexOf(t)>-1}function Mo(e,t){return e.apply(null,t)}var Bo={arr:function(e){return Array.isArray(e)},obj:function(e){return Ro(Object.prototype.toString.call(e),"Object")},pth:function(e){return Bo.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||Bo.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return Bo.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Bo.hex(e)||Bo.rgb(e)||Bo.hsl(e)},key:function(e){return!Io.hasOwnProperty(e)&&!No.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function $o(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Fo(e,t){var n=$o(e),i=Lo(Bo.und(n[0])?1:n[0],.1,100),o=Lo(Bo.und(n[1])?100:n[1],.1,100),r=Lo(Bo.und(n[2])?10:n[2],.1,100),a=Lo(Bo.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/i),c=r/(2*Math.sqrt(o*i)),l=c<1?s*Math.sqrt(1-c*c):0,u=c<1?(c*s-a)/l:-a+s;function d(e){var n=t?t*e/1e3:e;return n=c<1?Math.exp(-n*c*s)*(1*Math.cos(l*n)+u*Math.sin(l*n)):(1+u*n)*Math.exp(-n*s),0===e||1===e?e:1-n}return t?d:function(){var t=Oo.springs[e];if(t)return t;for(var n=0,i=0;;)if(1===d(n+=1/6)){if(++i>=16)break}else i=0;var o=n*(1/6)*1e3;return Oo.springs[e]=o,o}}function Do(e){return void 0===e&&(e=10),function(t){return Math.ceil(Lo(t,1e-6,1)*e)*(1/e)}}var jo,Vo,qo=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function n(e){return 3*e}function i(i,o,r){return((e(o,r)*i+t(o,r))*i+n(o))*i}function o(i,o,r){return 3*e(o,r)*i*i+2*t(o,r)*i+n(o)}return function(e,t,n,r){if(0<=e&&e<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(e!==t||n!==r)for(var s=0;s<11;++s)a[s]=i(.1*s,e,n);return function(o){return e===t&&n===r||0===o||1===o?o:i(c(o),t,r)}}function c(t){for(var r=0,s=1;10!==s&&a[s]<=t;++s)r+=.1;--s;var c=r+(t-a[s])/(a[s+1]-a[s])*.1,l=o(c,e,n);return l>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var s=o(t,n,r);if(0===s)return t;t-=(i(t,n,r)-e)/s}return t}(t,c,e,n):0===l?c:function(e,t,n,o,r){var a,s,c=0;do{(a=i(s=t+(n-t)/2,o,r)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++c<10);return s}(t,r,r+.1,e,n)}}}(),Ho=(jo={linear:function(){return function(e){return e}}},Vo={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=Lo(e,1,10),i=Lo(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-i/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){Vo[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(Vo).forEach((function(e){var t=Vo[e];jo["easeIn"+e]=t,jo["easeOut"+e]=function(e,n){return function(i){return 1-t(e,n)(1-i)}},jo["easeInOut"+e]=function(e,n){return function(i){return i<.5?t(e,n)(2*i)/2:1-t(e,n)(-2*i+2)/2}},jo["easeOutIn"+e]=function(e,n){return function(i){return i<.5?(1-t(e,n)(1-2*i))/2:(t(e,n)(2*i-1)+1)/2}}})),jo);function Uo(e,t){if(Bo.fnc(e))return e;var n=e.split("(")[0],i=Ho[n],o=$o(e);switch(n){case"spring":return Fo(e,t);case"cubicBezier":return Mo(qo,o);case"steps":return Mo(Do,o);default:return Mo(i,o)}}function Wo(e){try{return document.querySelectorAll(e)}catch(e){return}}function zo(e,t){for(var n=e.length,i=arguments.length>=2?arguments[1]:void 0,o=[],r=0;r<n;r++)if(r in e){var a=e[r];t.call(i,a,r,e)&&o.push(a)}return o}function Go(e){return e.reduce((function(e,t){return e.concat(Bo.arr(t)?Go(t):t)}),[])}function Yo(e){return Bo.arr(e)?e:(Bo.str(e)&&(e=Wo(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Ko(e,t){return e.some((function(e){return e===t}))}function Xo(e){var t={};for(var n in e)t[n]=e[n];return t}function Zo(e,t){var n=Xo(e);for(var i in e)n[i]=t.hasOwnProperty(i)?t[i]:e[i];return n}function Jo(e,t){var n=Xo(e);for(var i in t)n[i]=Bo.und(e[i])?t[i]:e[i];return n}function Qo(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function er(e,t){return Bo.fnc(e)?e(t.target,t.id,t.total):e}function tr(e,t){return e.getAttribute(t)}function nr(e,t,n){if(Ko([n,"deg","rad","turn"],Qo(t)))return t;var i=Oo.CSS[t+n];if(!Bo.und(i))return i;var o=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(o),o.style.position="absolute",o.style.width=100+n;var a=100/o.offsetWidth;r.removeChild(o);var s=a*parseFloat(t);return Oo.CSS[t+n]=s,s}function ir(e,t,n){if(t in e.style){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(i)||"0";return n?nr(e,o,n):o}}function or(e,t){return Bo.dom(e)&&!Bo.inp(e)&&(!Bo.nil(tr(e,t))||Bo.svg(e)&&e[t])?"attribute":Bo.dom(e)&&Ko(Po,t)?"transform":Bo.dom(e)&&"transform"!==t&&ir(e,t)?"css":null!=e[t]?"object":void 0}function rr(e){if(Bo.dom(e)){for(var t,n=e.style.transform||"",i=/(\w+)\(([^)]*)\)/g,o=new Map;t=i.exec(n);)o.set(t[1],t[2]);return o}}function ar(e,t,n,i){switch(or(e,t)){case"transform":return function(e,t,n,i){var o=Ro(t,"scale")?1:0+function(e){return Ro(e,"translate")||"perspective"===e?"px":Ro(e,"rotate")||Ro(e,"skew")?"deg":void 0}(t),r=rr(e).get(t)||o;return n&&(n.transforms.list.set(t,r),n.transforms.last=t),i?nr(e,r,i):r}(e,t,i,n);case"css":return ir(e,t,n);case"attribute":return tr(e,t);default:return e[t]||0}}function sr(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var i=Qo(e)||0,o=parseFloat(t),r=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+r+i;case"-":return o-r+i;case"*":return o*r+i}}function cr(e,t){if(Bo.col(e))return function(e){return Bo.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:Bo.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,i){return t+t+n+n+i+i})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):Bo.hsl(e)?function(e){var t,n,i,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(o[1],10)/360,a=parseInt(o[2],10)/100,s=parseInt(o[3],10)/100,c=o[4]||1;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=i=s;else{var u=s<.5?s*(1+a):s+a-s*a,d=2*s-u;t=l(d,u,r+1/3),n=l(d,u,r),i=l(d,u,r-1/3)}return"rgba("+255*t+","+255*n+","+255*i+","+c+")"}(e):void 0;var t,n}(e);if(/\s/g.test(e))return e;var n=Qo(e),i=n?e.substr(0,e.length-n.length):e;return t?i+t:i}function lr(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ur(e){for(var t,n=e.points,i=0,o=0;o<n.numberOfItems;o++){var r=n.getItem(o);o>0&&(i+=lr(t,r)),t=r}return i}function dr(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*tr(e,"r")}(e);case"rect":return function(e){return 2*tr(e,"width")+2*tr(e,"height")}(e);case"line":return function(e){return lr({x:tr(e,"x1"),y:tr(e,"y1")},{x:tr(e,"x2"),y:tr(e,"y2")})}(e);case"polyline":return ur(e);case"polygon":return function(e){var t=e.points;return ur(e)+lr(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function hr(e,t){var n=t||{},i=n.el||function(e){for(var t=e.parentNode;Bo.svg(t)&&Bo.svg(t.parentNode);)t=t.parentNode;return t}(e),o=i.getBoundingClientRect(),r=tr(i,"viewBox"),a=o.width,s=o.height,c=n.viewBox||(r?r.split(" "):[0,0,a,s]);return{el:i,viewBox:c,x:c[0]/1,y:c[1]/1,w:a,h:s,vW:c[2],vH:c[3]}}function pr(e,t,n){function i(n){void 0===n&&(n=0);var i=t+n>=1?t+n:0;return e.el.getPointAtLength(i)}var o=hr(e.el,e.svg),r=i(),a=i(-1),s=i(1),c=n?1:o.w/o.vW,l=n?1:o.h/o.vH;switch(e.property){case"x":return(r.x-o.x)*c;case"y":return(r.y-o.y)*l;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function fr(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=cr(Bo.pth(e)?e.totalLength:e,t)+"";return{original:i,numbers:i.match(n)?i.match(n).map(Number):[0],strings:Bo.str(e)||t?i.split(n):[]}}function vr(e){return zo(e?Go(Bo.arr(e)?e.map(Yo):Yo(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function mr(e){var t=vr(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:rr(e)}}}))}function _r(e,t){var n=Xo(t);if(/^spring/.test(n.easing)&&(n.duration=Fo(n.easing)),Bo.arr(e)){var i=e.length;2!==i||Bo.obj(e[0])?Bo.fnc(t.duration)||(n.duration=t.duration/i):e={value:e}}var o=Bo.arr(e)?e:[e];return o.map((function(e,n){var i=Bo.obj(e)&&!Bo.pth(e)?e:{value:e};return Bo.und(i.delay)&&(i.delay=n?0:t.delay),Bo.und(i.endDelay)&&(i.endDelay=n===o.length-1?t.endDelay:0),i})).map((function(e){return Jo(e,n)}))}var gr={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,i,o){if(i.list.set(t,n),t===i.last||o){var r="";i.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function br(e,t){mr(e).forEach((function(e){for(var n in t){var i=er(t[n],e),o=e.target,r=Qo(i),a=ar(o,n,r,e),s=sr(cr(i,r||Qo(a)),a),c=or(o,n);gr[c](o,n,s,e.transforms,!0)}}))}function yr(e,t){return zo(Go(e.map((function(e){return t.map((function(t){return function(e,t){var n=or(e.target,t.name);if(n){var i=function(e,t){var n;return e.tweens.map((function(i){var o=function(e,t){var n={};for(var i in e){var o=er(e[i],t);Bo.arr(o)&&1===(o=o.map((function(e){return er(e,t)}))).length&&(o=o[0]),n[i]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(i,t),r=o.value,a=Bo.arr(r)?r[1]:r,s=Qo(a),c=ar(t.target,e.name,s,t),l=n?n.to.original:c,u=Bo.arr(r)?r[0]:l,d=Qo(u)||Qo(c),h=s||d;return Bo.und(a)&&(a=l),o.from=fr(u,h),o.to=fr(sr(a,u),h),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Uo(o.easing,o.duration),o.isPath=Bo.pth(r),o.isPathTargetInsideSVG=o.isPath&&Bo.svg(t.target),o.isColor=Bo.col(o.from.original),o.isColor&&(o.round=1),n=o,o}))}(t,e),o=i[i.length-1];return{type:n,property:t.name,animatable:e,tweens:i,duration:o.end,delay:i[0].delay,endDelay:o.endDelay}}}(e,t)}))}))),(function(e){return!Bo.und(e)}))}function wr(e,t){var n=e.length,i=function(e){return e.timelineOffset?e.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map((function(e){return i(e)+e.duration}))):t.duration,o.delay=n?Math.min.apply(Math,e.map((function(e){return i(e)+e.delay}))):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map((function(e){return i(e)+e.duration-e.endDelay}))):t.endDelay,o}var xr=0,Ar=[],Cr=function(){var e;function t(n){for(var i=Ar.length,o=0;o<i;){var r=Ar[o];r.paused?(Ar.splice(o,1),i--):(r.tick(n),o++)}e=o>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Sr.suspendWhenDocumentHidden&&(Er()?e=cancelAnimationFrame(e):(Ar.forEach((function(e){return e._onDocumentVisibility()})),Cr()))})),function(){e||Er()&&Sr.suspendWhenDocumentHidden||!(Ar.length>0)||(e=requestAnimationFrame(t))}}();function Er(){return!!document&&document.hidden}function Sr(e){void 0===e&&(e={});var t,n=0,i=0,o=0,r=0,a=null;function s(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var c=function(e){var t=Zo(Io,e),n=Zo(No,e),i=function(e,t){var n=[],i=t.keyframes;for(var o in i&&(t=Jo(function(e){for(var t=zo(Go(e.map((function(e){return Object.keys(e)}))),(function(e){return Bo.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},i=function(i){var o=t[i];n[o]=e.map((function(e){var t={};for(var n in e)Bo.key(n)?n==o&&(t.value=e[n]):t[n]=e[n];return t}))},o=0;o<t.length;o++)i(o);return n}(i),t)),t)Bo.key(o)&&n.push({name:o,tweens:_r(t[o],e)});return n}(n,e),o=mr(e.targets),r=yr(o,i),a=wr(r,n),s=xr;return xr++,Jo(t,{id:s,children:[],animatables:o,animations:r,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);function l(){var e=c.direction;"alternate"!==e&&(c.direction="normal"!==e?"normal":"reverse"),c.reversed=!c.reversed,t.forEach((function(e){return e.reversed=c.reversed}))}function u(e){return c.reversed?c.duration-e:e}function d(){n=0,i=u(c.currentTime)*(1/Sr.speed)}function h(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,n=c.animations,i=n.length;t<i;){var o=n[t],r=o.animatable,a=o.tweens,s=a.length-1,l=a[s];s&&(l=zo(a,(function(t){return e<t.end}))[0]||l);for(var u=Lo(e-l.start-l.delay,0,l.duration)/l.duration,d=isNaN(u)?1:l.easing(u),h=l.to.strings,p=l.round,f=[],v=l.to.numbers.length,m=void 0,_=0;_<v;_++){var g=void 0,b=l.to.numbers[_],y=l.from.numbers[_]||0;g=l.isPath?pr(l.value,d*b,l.isPathTargetInsideSVG):y+d*(b-y),p&&(l.isColor&&_>2||(g=Math.round(g*p)/p)),f.push(g)}var w=h.length;if(w){m=h[0];for(var x=0;x<w;x++){h[x];var A=h[x+1],C=f[x];isNaN(C)||(m+=A?C+A:C+" ")}}else m=f[0];gr[o.type](r.target,o.property,m,r.transforms),o.currentValue=m,t++}}function f(e){c[e]&&!c.passThrough&&c[e](c)}function v(e){var d=c.duration,v=c.delay,m=d-c.endDelay,_=u(e);c.progress=Lo(_/d*100,0,100),c.reversePlayback=_<c.currentTime,t&&function(e){if(c.reversePlayback)for(var n=r;n--;)h(e,t[n]);else for(var i=0;i<r;i++)h(e,t[i])}(_),!c.began&&c.currentTime>0&&(c.began=!0,f("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,f("loopBegin")),_<=v&&0!==c.currentTime&&p(0),(_>=m&&c.currentTime!==d||!d)&&p(d),_>v&&_<m?(c.changeBegan||(c.changeBegan=!0,c.changeCompleted=!1,f("changeBegin")),f("change"),p(_)):c.changeBegan&&(c.changeCompleted=!0,c.changeBegan=!1,f("changeComplete")),c.currentTime=Lo(_,0,d),c.began&&f("update"),e>=d&&(i=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(n=o,f("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&l()):(c.paused=!0,c.completed||(c.completed=!0,f("loopComplete"),f("complete"),!c.passThrough&&"Promise"in window&&(a(),s(c)))))}return s(c),c.reset=function(){var e=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===e,c.remaining=c.loop,t=c.children;for(var n=r=t.length;n--;)c.children[n].reset();(c.reversed&&!0!==c.loop||"alternate"===e&&1===c.loop)&&c.remaining++,p(c.reversed?c.duration:0)},c._onDocumentVisibility=d,c.set=function(e,t){return br(e,t),c},c.tick=function(e){o=e,n||(n=o),v((o+(i-n))*Sr.speed)},c.seek=function(e){v(u(e))},c.pause=function(){c.paused=!0,d()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,Ar.push(c),d(),Cr())},c.reverse=function(){l(),c.completed=!c.reversed,d()},c.restart=function(){c.reset(),c.play()},c.remove=function(e){Tr(vr(e),c)},c.reset(),c.autoplay&&c.play(),c}function kr(e,t){for(var n=t.length;n--;)Ko(e,t[n].animatable.target)&&t.splice(n,1)}function Tr(e,t){var n=t.animations,i=t.children;kr(e,n);for(var o=i.length;o--;){var r=i[o],a=r.animations;kr(e,a),a.length||r.children.length||i.splice(o,1)}n.length||i.length||t.pause()}Sr.version="3.2.1",Sr.speed=1,Sr.suspendWhenDocumentHidden=!0,Sr.running=Ar,Sr.remove=function(e){for(var t=vr(e),n=Ar.length;n--;)Tr(t,Ar[n])},Sr.get=ar,Sr.set=br,Sr.convertPx=nr,Sr.path=function(e,t){var n=Bo.str(e)?Wo(e)[0]:e,i=t||100;return function(e){return{property:e,el:n,svg:hr(n),totalLength:dr(n)*(i/100)}}},Sr.setDashoffset=function(e){var t=dr(e);return e.setAttribute("stroke-dasharray",t),t},Sr.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",i=t.easing?Uo(t.easing):null,o=t.grid,r=t.axis,a=t.from||0,s="first"===a,c="center"===a,l="last"===a,u=Bo.arr(e),d=u?parseFloat(e[0]):parseFloat(e),h=u?parseFloat(e[1]):0,p=Qo(u?e[1]:e)||0,f=t.start||0+(u?d:0),v=[],m=0;return function(e,t,_){if(s&&(a=0),c&&(a=(_-1)/2),l&&(a=_-1),!v.length){for(var g=0;g<_;g++){if(o){var b=c?(o[0]-1)/2:a%o[0],y=c?(o[1]-1)/2:Math.floor(a/o[0]),w=b-g%o[0],x=y-Math.floor(g/o[0]),A=Math.sqrt(w*w+x*x);"x"===r&&(A=-w),"y"===r&&(A=-x),v.push(A)}else v.push(Math.abs(a-g));m=Math.max.apply(Math,v)}i&&(v=v.map((function(e){return i(e/m)*m}))),"reverse"===n&&(v=v.map((function(e){return r?e<0?-1*e:-e:Math.abs(m-e)})))}return f+(u?(h-d)/m:d)*(Math.round(100*v[t])/100)+p}},Sr.timeline=function(e){void 0===e&&(e={});var t=Sr(e);return t.duration=0,t.add=function(n,i){var o=Ar.indexOf(t),r=t.children;function a(e){e.passThrough=!0}o>-1&&Ar.splice(o,1);for(var s=0;s<r.length;s++)a(r[s]);var c=Jo(n,Zo(No,e));c.targets=c.targets||e.targets;var l=t.duration;c.autoplay=!1,c.direction=t.direction,c.timelineOffset=Bo.und(i)?l:sr(i,l),a(t),t.seek(c.timelineOffset);var u=Sr(c);a(u),r.push(u);var d=wr(r,e);return t.delay=d.delay,t.endDelay=d.endDelay,t.duration=d.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Sr.easing=Uo,Sr.penner=Ho,Sr.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};var Ir=Sr,Nr=["easeInElastic","easeOutElastic","easeInOutElastic","easeSpringElastic"],Pr=["height","left","matrix","matrix3d","opacity","right","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","top","translate","translate3d","translateX","translateY","translateZ","width","backgroundColor","bottom","borderRadius"];function Or(e,t){return _c.instance}function Lr(e,t){var n=Or();return n?n.nodeId.getNodeById(e):null}var Rr,Mr=Object.prototype.hasOwnProperty,Br=function(e,t){void 0!==e.__resizers&&(e.__resizers[t]=void 0)},$r=function(e){e.$$.style.display="none"},Fr=1,Dr={},jr=function(e,t,n){if(void 0===e.__resizers){e.__resizers=[];var i=Fr++;Dr[i]=e,ftparser.Observer.create((function(e){"detached"===e.status&&delete Dr[i]})).observe(e,{attachStatus:!0})}e.__resizers[t]=n},Vr=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","delay","duration","offset","easing"],qr=["linear","ease","ease-in","ease-out","ease-in-out","cubic-bezier","steps"],Hr=function(e,t){return e=__webViewSDK__.predefinedColor[e]||e,t?[e,e]:e},Ur=function(e,t){var n=e.length,i=0;return e.map((function(e,o){var r={},a="offset"in e?e.offset:1===n?1:o/(n-1),s=i===a;return E()(e).forEach((function(t){-1===Vr.indexOf(t)&&("transform"!==t?r[t]=Hr(e[t],s):Ke()(r,function(e,t){if("none"===(e=e.toLowerCase().trim()))return{};for(var n,i={},o=Vr.map((function(e){return e.toLowerCase()})),r={scale3d:"AAA",translate:"Aa",translate3d:"AAA",rotate3d:"AAAA",matrix3d:"AAAAAA",matrix:"AAAAAAAAAAAAAAAA"},a=["rotate3d","matrix","matrix3d"],s=/\s*(\w+)\(([^)]*)\)/g,c=0;n;){if(n.index!==c)return{};c=n.index+n[0].length;var l=n[1],u=n[2].split(",");if(o.indexOf(l)>-1)i[l.replace(/(x|y|z)$/,(function(e){return e.toUpperCase()}))]=Hr(u.join(" "),t);else{if(!(E()(r).indexOf(l)>-1))return{};var d=r[l];if(u.length>d.length)return{};for(var h=d.length-1;h>=0;h--){var p=d[h];if("a"!==p||u[h]){if("A"===p&&!u[h])return{};-1===a.indexOf(l)&&(i[l.replace("3d","")+String.fromCharCode(88+h)]=Hr(u[h].trim(),t))}}}n=s.exec(e)}return i}(e[t],s)))})),s?r.duration=0:(r.duration=(a-i)*t,i=a),r}))},Wr=function(e){for(var t=0;t<qr.length&&0!==e.indexOf(qr[t]);t++);if(t===qr.length)return"linear";switch(e){case"ease":return"cubicBezier(0.25, 0.1, 0.25, 1)";case"ease-in":return"cubicBezier(0.42, 0, 1, 1)";case"ease-out":return"cubicBezier(0, 0, 0.58, 1)";case"ease-in-out":return"cubicBezier(0.42, 0, 0.58, 1)";default:return e.replace(/^cubic-bezier/,"cubicBezier")}},zr=function(){function e(t,n){oe()(this,e),this._nativeSupported="function"==typeof HTMLElement.prototype.animate;var i=t.keyframeOptions,o=this.direction=i.direction;if(this.timeline=n,this._nativeSupported){var r=function(e,t){var n=t.easing;return delete t.easing,e.map((function(e){return e.easing=n,e}))}(t.keyframeSet,i);this._inst=t.element.$$.animate(r,Ke()(i,{fill:"both"})),this._inst.pause()}else this._inst=Ir({targets:t.element,keyframes:Ur(t.keyframeSet,i.duration),autoplay:!1,loop:i.iterations===1/0||i.iterations,easing:Wr(i.easing),direction:"normal",delay:"reverse"===o?i.endDelay:i.delay,endDelay:"reverse"===o?i.delay:i.endDelay});n._driven(this)}return ae()(e,[{key:"currentTime",set:function(e){if(!isNaN(e)){var t=this._inst;this._nativeSupported?t.currentTime=e:"reverse"===this.direction?t.seek(t.duration-e):t.seek(e)}}},{key:"cancel",value:function(){this._nativeSupported?this._inst.cancel():this._inst.reset(),this.timeline._destroy(),this._inst=null}}]),e}(),Gr=function(){function e(t,n){if(oe()(this,e),n.scrollSource){if(this._scrollNode=window.__DOMTree__.shadowRoot.querySelector(n.scrollSource),this._scrollNode||(this._scrollNode=t&&t.querySelector(n.scrollSource)),!this._scrollNode)throw new Error("Cannot find scroll source by ".concat(n.scrollSource," selector."))}else this._scrollNode=window.__DOMTree__;this.orientation=n.orientation||"vertical",this.startScrollOffset=n.startScrollOffset,this.endScrollOffset=n.endScrollOffset,this.timeRange=n.timeRange,this.fill=n.fill||"both",this._scroll=this._scroll.bind(this)}return ae()(e,[{key:"_calcCurrentTime",value:function(e,t){var n=this.startScrollOffset,i=this.endScrollOffset,o=this.fill,r=this.timeRange,a=e.scrollTop,s=e.scrollHeight-t.$$.offsetHeight;return"horizontal"===this.orientation&&(a=e.scrollLeft,s=e.scrollWidth-t.$$.offsetWidth),a<n?"none"===o||"forwards"===o?NaN:0:a>=i?i<s&&("none"===o||"backwards"===o)?NaN:r:n>=i?NaN:(a-n)/(i-n)*r}},{key:"_scroll",value:function(){var e=this._calcCurrentTime(this._scrollNode===window.__DOMTree__?window.__DOMTree__.$$:this._scrollNode.getScrollPosition(),this._scrollNode);this._animation.currentTime=e}},{key:"_driven",value:function(e){this._animation=e,this._scrollNode===window.__DOMTree__?document.addEventListener("scroll",this._scroll,{capture:!0,passive:!0}):this._scrollNode.$$.addEventListener("scroll",this._scroll,{capture:!0,passive:!0}),this._scroll()}},{key:"_destroy",value:function(){this._scrollNode===window.__DOMTree__?document.removeEventListener("scroll",this._scroll,{capture:!0,passive:!0}):this._scrollNode.$$.removeEventListener("scroll",this._scroll,{capture:!0,passive:!0})}}]),e}(),Yr=function(e,t,n,i,o){var r={element:t,keyframeSet:n,keyframeOptions:{delay:i.delay||0,direction:i.direction||"normal",duration:i.duration||0,easing:i.easing||"linear",endDelay:i.endDelay||0,iterations:1}},a=new Gr(e,o);t.__scrollAnimations=t.__scrollAnimations||[],t.__scrollAnimations.push(new zr(r,a))},Kr={},Xr=function(e){return E()(e).filter((function(t){return!(/transform|transition/i.test(t)&&""===e[t]||""===t.trim()||void 0===e[t]||""===e[t]||!isNaN(_()(t,10)))})).map((function(t){return"".concat(t.replace(/([A-Z]{1})/g,(function(e){return" - $ {\n e.toLowerCase()\n }\n "})),":").concat(e[t])})).join(";")},Zr=function e(t,n){var i=t.nodeId,o=(t.webviewId,t.selector),r=Lr(i);if(r){var a=r.shadowRoot,s=n||a.querySelectorAll(o);if(n)s.__animationPendingQueue&&s.__animationPendingQueue.length>0&&setTimeout((function(){s.__animateStatus=2,Jr(s.__animationPendingQueue.shift(),s,!0)}),32);else for(var c=0;c<s.length;++c)e(JSON.parse(ce()(t)),s[c])}},Jr=function e(t,n,i){wx.nextTick((function(){var o=t.nodeId,r=(t.webviewId,t.options),a=t.selector,s=t.reqId,c=t.hasCallback,l=t.type,u=t.isLastAnimation,d=t.fromWxs,h=Lr(o);if(h){var p=h.shadowRoot,f=n||p.querySelectorAll(a);if(n){if((1===f.__animateStatus||2===f.__animateStatus)&&!i)return f.__animationPendingQueue||(f.__animationPendingQueue=[]),void f.__animationPendingQueue.push(JSON.parse(ce()(t)));f.__hasCallback=c,f.__reqId=s,f.__args=ce()(t);var v=["height","left","matrix","matrix3d","opacity","right","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","top","translate","translate3d","translateX","translateY","translateZ","width","backgroundColor","bottom"],m=["opacity","backgroundColor","width","height","left","top","bottom"],_=["rotate","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","skewX","skewY","translateX","translateY","translateZ"],g="animeJS"===l,b=function(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(1===f.__animateStatus&&(--Kr[f.__reqId],f.__animationPendingQueue&&f.__animationPendingQueue.length>0&&!f.__hasCallback?(f.__animateStatus=2,e(f.__animationPendingQueue.shift(),f,!0)):f.__animateStatus=0,"function"==typeof n&&(f.__styleObj.transition="unset",f.__styleObj.transitionProperty="unset",f.__styleObj["-webkit-transition"]="unset",f.__styleObj["-webkit-transition-property"]="unset",n(Xr(f.__styleObj))),0===Kr[f.__reqId]&&f.__hasCallback&&i))if(d){var o=_c.instance,r=o.applyAnimationCbMap[f.__reqId];"function"==typeof r&&(delete o.applyAnimationCbMap[f.__reqId],ftparser.safeCallback("Animation",r,null,[])),Zr(t)}else console.log("ANIMATION_TRANSITION_END"),da(ho.ANIMATION_TRANSITION_END,{reqId:f.__reqId,args:f.__args})},y=[];for(var w in r)v.indexOf(w)>=0&&(m.indexOf(w)>=0?y.push({type:"style",args:["backgroundColor"===w?"background-color":w,r[w]]}):_.indexOf(w)>=0?y.push({type:w,args:[r[w]]}):y.push({type:w,args:r[w]}));var x={transition:{delay:r.delay||0,duration:r.duration||0,timingFunction:r.ease||"linear"},transformOrigin:r.transformOrigin||"50% 50% 0"},C={option:x,animates:y},S=wx.animationToStyle(C),k=S.transition,T=S.transitionProperty,I=S.transform,N=S.transformOrigin,P=S.style,O=f.__styleObj?Ke()({},f.__styleObj,{transition:k,transform:I,transitionProperty:T,transformOrigin:N}):{transition:k,transform:I,transitionProperty:T,transformOrigin:N};for(var L in O["-webkit-transition"]=O.transition,O["-webkit-transform"]=O.transform,O["-webkit-transition-property"]=O.transitionProperty,O["-webkit-transform-origin"]=O.transformOrigin,P)O[L]=P[L];if(f.__styleObj&&O.transform===f.__styleObj.transform){var R=!0;for(var M in O)m.indexOf(M)>=0&&f.__styleObj[M]!==O[M]&&(R=!1);if(R)return void setTimeout((function(){f.__animationPendingQueue&&f.__animationPendingQueue.length>0&&e(f.__animationPendingQueue.shift(),f,!0)}),x.duration)}if(0===x.transition.duration?(O.transition="unset",O.transitionProperty="unset",O["-webkit-transition"]="unset",O["-webkit-transition-property"]="unset"):f.__animateStatus=1,f.__styleObj=O,g){r.targets=f,r.ease&&(r.easing=r.ease,delete r.ease),E()(r).forEach((function(e){if(Pr.includes(e)){var t=r[e];"string"==typeof t?r[e]=wx.transformRpx(r[e],!0):"object"===Ce()(t)&&"string"==typeof t.value?r[e].value=wx.transformRpx(r[e].value,!0):A()(t)&&t.map((function(e){if("string"==typeof e.value)e.value=wx.transformRpx(e.value,!0);else if("string"==typeof e)return wx.transformRpx(e,!0);return e}))}})),f.__animateStatus=1,f.__banned&&$r(f);var B=r.complete;r.complete=function(){b(void 0,u),"function"==typeof B&&B.apply(void 0,arguments)};var $=Ir(r);f.__animeOptions||(f.__animeOptions=[]),f.__animeOptions.push($)}else{var F=Xr(O),D=function(e){var t=function(){f.setNodeStyle(wx.transformRpx(e,!0),1)};t(),jr(f,1,t)};0===x.transition.duration?D(F):setTimeout((function(){D(F)}),32),f.__banned&&$r(f),f.__animationListener||(f.addListener("transitionend",(function(){b(D)})),f.__animationListener=!0),0===x.transition.duration&&(f.__animationPendingQueue&&f.__animationPendingQueue.length>0?(f.__animateStatus=2,e(f.__animationPendingQueue.shift(),f,!0)):f.__animateStatus=0)}}else{Kr[s]=f.length;for(var j=0;j<f.length;++j)e(JSON.parse(ce()(t)),f[j])}}}))},Qr={},ea=function e(t,n){var i=t.nodeId,o=(t.webviewId,t.options),r=t.selector,a=t.reqId,s=t.hasCallback,c=t.fromWxs,l=Lr(i);if(l){var u=l.shadowRoot,d=n||u.querySelectorAll(r);if(n){var h=function(){if(c){var e=_c.instance,t=e.clearAnimationCbMap[a];"function"==typeof t&&(delete e.clearAnimationCbMap[a],ftparser.safeCallback("Clear Animation",t,null,[]))}else da(ho.CLEAR_ANIMATION_COMPLETE,{reqId:a})};if((d.__scrollAnimations||[]).forEach((function(e){e.cancel()})),d.__scrollAnimations=[],!o||"function"==typeof o||!d.__styleObj)return d.__animeOptions&&(d.__animeOptions.forEach((function(e){return"function"==typeof e.reset&&e.reset()})),d.__animeOptions=[]),d.setNodeStyle("",1),Br(d,1),d.__styleObj=null,d.__animateStatus=0,d.__animationPendingQueue=[],void h();var p=d.__styleObj.transform.split(" ");for(var f in o)if(o[f])if(d.__styleObj["backgroundColor"===f?"background-color":f])delete d.__styleObj["backgroundColor"===f?"background-color":f];else for(var v=0;v<p.length;++v)p[v].indexOf(f)>=0&&p.splice(v,1);d.__styleObj.transform=p.join(" "),d.__styleObj["-webkit-transform"]=p.join(" "),d.__styleObj.transition="unset",d.__styleObj.transitionProperty="unset",d.__styleObj["-webkit-transition"]="unset",d.__styleObj["-webkit-transition-property"]="unset";var m=function(e){d.setNodeStyle(wx.transformRpx(e,!0),1)};m(Xr(d.__styleObj)),jr(d,1,m),d.__animateStatus=0,--Qr[a],0===Qr[a]&&s&&h()}else{Qr[a]=d.length;for(var _=0;_<d.length;++_)e(t,d[_])}}},ta=!1,na=null,ia=-1,oa=null,ra=null,aa={},sa=[];(Rr=window.__webViewSDK__._virtualDOMTunnel).onVdSync((function(e,t){la(e,t)})),Rr.onVdSyncBatch((function(e,t){for(var n=0;n<e.length;n++)la(e[n],t)}));var ca=function(e,t,n){if(""===e)return oa=t,void(ia>=0&&oa(ia));aa[n=n||0]||(aa[n]={}),aa[n][e]=t},la=function(e,t){var n=e.shift();if(""===n)return ia=t,void(oa&&oa(t));var i=null;aa[t=t||0]&&(i=aa[t][n]),!i&&aa.$GLOBAL&&(i=aa.$GLOBAL[n]),i&&i(e,n,t)},ua=function(){ra&&(ra=clearTimeout(ra)),sa.length&&Rr.vdSyncBatch(sa,na&&[na]),na=null,sa.length=0,ta=!1},da=function(e,t,n,i){if(t=[e].concat(t),!ta||i)return ua(),ta=!0,void Rr.vdSync(t,n&&[n]);na!==n&&ua(),na=n,sa.push(t),ta=!0,ra||(ra=setTimeout((function(){ra=null,ua()}),15))},ha=function(){function e(t,n){var i=this;oe()(this,e);var o=this;this._viewId=t,this._treeManager=n,this._depth=0,this._curWinSize=0,this._setDataCallbackInc=1,this._pendingSetDataCallbacks=[],this._setDataCallbackMap={},this._received=[],this._cache=[],this._blocked=[],this._isBlocked=!0,this._fetchingViewInfoCallbacks=[],this.e=void 0;var r=function(t,n){if(i._received.push([n].concat(t)),n===ho.FLOW_DEPTH&&(i._depth=t[0],0===i._depth)){var o=i._received;i._received=[],i._isBlocked?i._blocked.push(o):(i.iterator=new va(i._treeManager,o,e._startCb),e._startCb(i._treeManager),document.dispatchEvent(new CustomEvent("pageReRender",{})),da(ho.SET_DATA_CALLBACK,[i._pendingSetDataCallbacks],null,!0),i._pendingSetDataCallbacks=[],i.checkDelayFetchingViewInfo())}},a=function(){if("FLOW_"===s.slice(0,5)){var e=function(e){var t=p()(e,3),n=t[0],i=t[1],r=t[2],a=null;switch(n){case"selectorQuery":a=function(e,t){var n=[],i=e.pluginId;return e.queue.forEach((function(e){var o=e.component,r=e.selector,a=e.single,s=e.fields,c=null;if(0===o){var l={};s.id&&(l.id=""),s.dataset&&(l.dataset={}),s.mark&&(l.mark={}),s.rect&&(l.left=0,l.right=0,l.top=0,l.bottom=0),s.size&&(l.width=document.documentElement.clientWidth,l.height=document.documentElement.clientHeight),s.scrollOffset&&(l.scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft||0,l.scrollTop=document.documentElement.scrollTop||document.body.scrollTop||0,l.scrollWidth=document.documentElement.scrollWidth||document.body.scrollWidth||0,l.scrollHeight=document.documentElement.scrollHeight||document.body.scrollHeight||0),c=l}else{var u=t.nodeId.getNodeById(o),d=!1;if(u?(ftparser.Component.getComponentOptions(u).writeOnly&&(d=!0),u=u.shadowRoot):i||(u=window.__DOMTree__?window.__DOMTree__.shadowRoot:null),a){var h=u&&!d?u.querySelector(r):null;c=h?To(h,s):null}else{var p=u&&!d?u.querySelectorAll(r):[];c=[];for(var f=0;f<p.length;f++)c.push(To(p[f],s))}}n.push(c)})),n}(i,o._treeManager);break;case"intersection":a=function(e,t,n){if("addIntersectionObserver"===e.type){var i=null;if(e.nodeId){var o=t.nodeId.getNodeById(e.nodeId);if(!o)return;i=o.shadowRoot}else e.pluginId||(i=window.__DOMTree__.shadowRoot);if(!i)return;return{observerId:yo(i,e.targetSelector,e.relativeInfo,e.options,(function(e){n({info:e})}))}}if("removeIntersectionObserver"===e.type){var r=e.observerId;return bo(r),{reqEnd:!0}}}(i,o._treeManager,(function(e){da(ho.RESPONSE_VIEW_INFO,[e,r])}));break;case"selectmatchMediaorQuery":a=function(e,t){return"addMediaQueryObserver"===e.type?{observerId:So(e.mediaQueryCond,(function(e){t({info:e})}))}:"removeMediaQueryObserver"===e.type?(ko(e.observerId),{reqEnd:!0}):void 0}(i,(function(e){da(ho.RESPONSE_VIEW_INFO,[e,r])}))}a&&da(ho.RESPONSE_VIEW_INFO,[a,r])};switch(s){case"FLOW_SET_DATA":ca(ho[s],(function(e){var t=p()(e,1)[0];i._pendingSetDataCallbacks.push(t)}),t);break;case"FLOW_VIEW_INFO":ca(ho[s],(function(t){o._received.length||o._isBlocked?o._fetchingViewInfoCallbacks.push(e.bind(o,t)):e(t)}),t);break;case"FLOW_SET_NODE_ANIMATION_INFO":ca(ho[s],(function(e){"scrollTimeline"===e[0].type?function(e,t){for(var n=e.nodeId,i=e.selector,o=e.options,r=e.duration,a=e.timeline,s=t.nodeId.getNodeById(n),c=(s=s?s.shadowRoot:window.__DOMTree__?window.__DOMTree__.shadowRoot:null)?s.querySelectorAll(i):[],l=0;l<c.length;l++)Yr(s,c[l],o,{duration:r},a)}(e[0],i._treeManager):Jr(e[0])}));break;case"FLOW_CLEAR_NODE_ANIMATION_INFO":ca(ho[s],(function(e){ea(e[0])}));break;case"FLOW_SET_NODE_NEXT_ANIMATION_INFO":ca(ho[s],(function(e){Zr(e[0])}));break;default:ca(ho[s],r,t)}}};for(var s in ho)a();ca(ho.SET_DATA_CALLBACK,(function(e){var t=p()(e,1)[0];i.triggerSetDataCallbacks(t)}),t)}return ae()(e,[{key:"flushBlocked",value:function(){for(;this._blocked.length&&!this._isBlocked;)try{var t=this._blocked.shift();this.iterator=new va(this._treeManager,t,e._startCb),e._startCb(this._treeManager),document.dispatchEvent(new CustomEvent("pageReRender",{}))}catch(t){console.error(t.message),Reporter.errorReport({key:"webviewScriptError",error:t})}this._blocked.length||(da(ho.SET_DATA_CALLBACK,[this._pendingSetDataCallbacks],null,!0),this._pendingSetDataCallbacks=[],this.checkDelayFetchingViewInfo())}},{key:"unblock",value:function(){this._isBlocked=!1,this.flushBlocked()}},{key:"block",value:function(){this._isBlocked||(this._isBlocked=!0)}},{key:"sendInIndividualFlow",value:function(e){this.start(v()()),this.push(e),this.end()}},{key:"start",value:function(){this.flush(),this._depth++,da(ho.FLOW_DEPTH,[this._depth,v()()],this._viewId)}},{key:"dedupe",value:function(){var e=this._cache;if(this._curWinSize){if(2===e.length){var t=e[1][2];if(e[0][0]!==t){var n=e.pop(),i=n.shift();da(i,n,this._viewId)}else e.shift(),e[0][1]++}}else{var o=0;if(e.length>2&&e[0][0]===e[1][0]&&e[0][0]===e[2][0]&&e[0][0]!==ho.FLOW_SET_DATA&&e[0][0]!==ho.FLOW_VIEW_INFO&&(o=1),o){var r=e[0][0];e.splice(0,3),this.flush(),this._curWinSize=1,e.unshift([ho.FLOW_REPEAT,3,r])}else if(e.length>3){var a=e.pop(),s=a.shift();da(s,a,this._viewId)}}}},{key:"push",value:function(e){this._cache.unshift(e),1===e.length?this.dedupe():this.flush()}},{key:"flush",value:function(){for(this._curWinSize=0;this._cache.length;){var e=this._cache.pop(),t=e.shift();da(t,e,this._viewId)}}},{key:"end",value:function(){this.flush(),this._depth--,da(ho.FLOW_DEPTH,this._depth,this._viewId),0===this._depth&&ua()}},{key:"checkDelayFetchingViewInfo",value:function(){if(this._fetchingViewInfoCallbacks.length){var e=this._fetchingViewInfoCallbacks;this._fetchingViewInfoCallbacks=[],e.forEach((function(e){return e()}))}}},{key:"registerSetDataCallback",value:function(e,t,n){var i=this._setDataCallbackInc++;this._setDataCallbackMap[i]=[e,t,n],this.push([ho.FLOW_SET_DATA,i])}},{key:"triggerSetDataCallbacks",value:function(e){for(var t=0;t<e.length;t++){var n=e[t],i=p()(this._setDataCallbackMap[n],3),o=i[0],r=i[1],a=i[2];delete this._setDataCallbackMap[n],ftparser.safeCallback("SetData Callback",o,r,[],a)}}}],[{key:"setStartOperation",value:function(t){e._startCb=t}}]),e}(),pa={};E()(ho).forEach((function(e){pa[ho[e]]=e}));var fa=function(e){return pa[e]||"UNKNOWN_EVENT_".concat(e)},va=function(){function e(t,n,i){oe()(this,e),this._treeManager=t,this._arr=n,this._depth=0,this._startCb=i}return ae()(e,[{key:"_consumeHead",value:function(){return this._arr.shift()}},{key:"nextStepType",value:function(){return this._arr[0][0]}},{key:"nextStep",value:function(){for(;this._arr[0][0]===ho.FLOW_DEPTH;)this._startCb(this._treeManager);if(this._arr[0][0]===ho.FLOW_REPEAT){var e=this._arr[0][2];return--this._arr[0][1]||this._consumeHead(),[e]}return this._consumeHead()}},{key:"nextStepIf",value:function(e){for(;this._arr[0][0]===ho.FLOW_DEPTH;)this._startCb(this._treeManager);return this._arr[0][0]===e?this._consumeHead():null}},{key:"expectStart",value:function(){var e=this._consumeHead();if(this._depth++,e[0]!==ho.FLOW_DEPTH||e[1]!==this._depth)throw new Error("Framework inner error (expect START descriptor with depth ".concat(this._depth," but get ").concat(fa(e[0]),")"));return e[2]}},{key:"expectEnd",value:function(){for(;this._arr[0][0]===ho.FLOW_DEPTH&&this._arr[0][1]!==this._depth-1;)this._startCb(this._treeManager);var e=this._consumeHead();if(this._depth--,e[0]!==ho.FLOW_DEPTH||e[1]!==this._depth)throw new Error("Framework inner error (expect END descriptor with depth ".concat(this._depth," but get ").concat(fa(e[0]),")"))}},{key:"skipToEnd",value:function(){for(;this._arr[0];)if(this._arr[0][0]!==ho.FLOW_DEPTH)this._consumeHead();else{if(this._arr[0][1]===this._depth-1)break;this._startCb(this._treeManager)}}},{key:"getQueueLength",value:function(){return this._arr.length}},{key:"getDepth",value:function(){return this._depth}}]),e}(),ma=ha,_a=1,ga=[],ba={};function ya(e,t){if(ba[e]){var n=ba[e],i=ga[ga.length-1],o=ga[ga.length-2],r=t(n),a=r.isMergedUpdate,s=r.dataPaths,c=r.pendingStartTimestamp,l=r.updateStartTimestamp,u=r.updateEndTimestamp;da(ho.UPDATE_PERFORMANCE_STAT,[e,{isMergedUpdate:a,dataPaths:s,updateProcessId:i,parentUpdateProcessId:o,pendingStartTimestamp:c,updateStartTimestamp:l,updateEndTimestamp:u}])}}ca(ho.ENABLE_UPDATE_PERFORMANCE_STAT,(function(e){var t=p()(e,2),n=t[0],i=t[1];ba[n]=i})),ca(ho.DISABLE_UPDATE_PERFORMANCE_STAT,(function(e){var t=p()(e,1)[0];delete ba[t]}));var wa=Object.prototype.hasOwnProperty,xa=kt()(kt()(kt()(kt()(kt()({},ho.FLOW_COMPONENT_DEF_ADD,(function(e,t){var n=t[0],i=t[1];e.appendComponentDef(n,i)})),ho.FLOW_INJECT_SUBPACKAGE,(function(e,t){var n=t[0],i=t[1];e.injectSubPackageOnReady(n,i)})),ho.FLOW_INJECT_COMPONENT,(function(e,t){var n=t[0],i=t[1];e.injectComponentsOnReady(n,i)})),ho.FLOW_SET_SUBPACKAGE_LOADED,(function(e,t){var n=t[0];e.setSubPackageLoaded(n)})),ho.FLOW_WAIT_COMPONENT,(function(e,t){var n=t[0];e.__treeManager.operationFlow.block(),e.waitComponentEnsuring(n,(function(t){e.__treeManager.operationFlow.unblock(),t()}))}));function Aa(e){e&&".html"!==e.slice(5)&&(e+=".html");var t="";return __wxConfig__.window&&__wxConfig__.window.initialRenderingCache&&(t=String(__wxConfig__.window.initialRenderingCache)),t}function Ca(e,t){return"dynamic"!==Aa(window.__route__)?(console.error('An initial rendering cache state is ignored, because initialRenderingCache mode is not "dynamic".'),!1):(e?Ea(e,t):wx.saveInitialRenderingCache({content:""}),!0)}function Ea(e,t){v()();var n={},i={},o=document.head.querySelectorAll("style")||[],r=[];ftparser.ElementIterator.create(e,"composed-descendants-root-first",ftparser.Component).forEach((function(e){e.hasBehavior("wx-base")||(n["./"+e.is+".wxss"]=!0)})),E()(ftparser.Component._list).forEach((function(e){i["./"+e+".wxss"]=!0}));for(var a=0;a<o.length;a++){var s=o[a],c=s.getAttribute("wxss:path");null!=c&&(!i[c]||n[c]?r.push("<style>"+s.innerHTML+"</style>"):console.log(s.innerHTML.length+15))}var l=r.join("")+e.$$.innerHTML;wx.saveInitialRenderingCache({content:l,appserviceData:t})}ha.setStartOperation((function(e){var t=_a++;ga.push(t);try{!function(e){var t=e.operationFlow.iterator,n=t.expectStart(),i=v()(),o=t.nextStepType();if(o===ho.FLOW_INITIAL_CREATION)__virtualDOM__&&__virtualDOM__.initExt&&__virtualDOM__.initExt(),ka(e,ho.FLOW_INITIAL_CREATION);else if(o===ho.FLOW_INITIAL_RENDERING_CACHE)ka(e,ho.FLOW_INITIAL_RENDERING_CACHE);else if(o===ho.FLOW_CREATE_TAB)ka(e,ho.FLOW_CREATE_TAB);else if(wa.call(xa,t.nextStepType())){var r=xa[t.nextStepType()],a=t.nextStep().slice(1);r(e.compManager,a)}else{v()();var s=t.nextStep();if(s[0]===ho.FLOW_UPDATE){var c=s[1],l=e.nodeId.getNodeById(c),u=s[2];if(l){if(u.length){var d=ftparser.Component.getDataProxy(l);d.setChanges(u),d.doUpdates(void 0,!0),ya(c,(function(e){return{isMergedUpdate:!1,dataPaths:e.withDataPaths?u.map((function(e){return e[0]})):void 0,pendingStartTimestamp:n,updateStartTimestamp:i,updateEndTimestamp:v()()}}))}}else t.skipToEnd()}else if(s[0]===ho.FLOW_GROUP){var h=t.nextStep();if(h[0]!==ho.FLOW_GROUP_END)throw new Error("Framework inner error (expect FLOW_GROUP_END but get ".concat(fa(h[0]),")"))}else if(s[0]===ho.FLOW_REPLACE_PLACEHOLDER){var p=e.compManager.getPlaceholderReplaceData();e.compManager.finishPlaceholderReplacement(),p.replacers.forEach((function(e){e()}))}else if(s[0]===ho.FLOW_HOT_UPDATE){var f=e.nodeId.getNodeById(s[1]);f?f.__templateInstance._resetShadowChildren(f,f.data,e):t.skipToEnd()}else if(s[0]!==ho.FLOW_HOT_UPDATE_RESET)throw new Error("Framework inner error (expect an update event but get ".concat(fa(s[0]),")"))}t.expectEnd()}(e),window&&window._flushActiveInputQueue&&window.requestAnimationFrame(window._flushActiveInputQueue)}catch(e){throw ga.pop(),console.error(e),e}ga.pop()}));var Sa=function e(t,n,i){t instanceof ftparser.Component&&(n>0&&i(t),n&&t.shadowRoot instanceof ftparser.Element&&e(t.shadowRoot,n,i),n<0&&i(t));for(var o=t.childNodes,r=0;r<o.length;r++)o[r]instanceof ftparser.Element&&e(o[r],n,i)};function ka(e,t){var n=t===ho.FLOW_CREATE_TAB,i=t===ho.FLOW_INITIAL_RENDERING_CACHE,o=e.operationFlow.iterator,r=o.nextStep(),a=r[1],s=r[2],c=null;if(n)e.tabNodeId=s,e.tabRoot=c=window.__TAB_BAR__=ftparser.createElement("tab-bar",ftparser.Component._list[a]);else if(i){if(!a)return void Ca(null);c=ftparser.createElement("initial-rendering-cache",ftparser.Component._list[a])}else{var l=r[3]||{};e.rootNodeId=s,e.root=c=window.__DOMTree__=ftparser.Component.createWithGenerics("body",ftparser.Component._list[a],l,e)}if(e.nodeId.allocNodeId(c,s),c.setAttribute("is",a),(r=o.nextStep())[0]!==t)throw new Error("Framework inner error (expect ".concat(fa(t)," end but get ").concat(fa(r[0]),")"));if(e.nodeId.addNode(c),n){var u=ftparser.createElement("wx-tab-bar-wrapper",ftparser.Component._list["wx://tab-bar-wrapper"]);u.appendChild(c),document.documentElement.insertBefore(u.$$,document.body),ftparser.Element.pretendAttached(u),e.tabDestroyed&&u.removeChild(c)}else if(i){var d=document.createElement("wx-initial-rendering-cache-wrapper");if(d.setAttribute("style","height: 0; overflow: hidden"),d.appendChild(c.$$),document.documentElement.insertBefore(d,document.body),(r=o.nextStep())[0]!==ho.FLOW_INITIAL_RENDERING_CACHE)throw new Error("Framework inner error (expect initial rendering end but get another)");Sa(c,1,(function(e){e.triggerLifeTime("cacheAttached")})),Ca(c,r[1]),e.nodeId.removeNode(c),document.documentElement.removeChild(d)}else document.body=c.$$,Sa(c,1,(function(e){e.triggerLifeTime("cacheAttached")})),"static"===Aa(window.__route__)&&Ea(c),ftparser.Element.pretendAttached(c)}var Ta=n(113),Ia=n.n(Ta),Na=n(311),Pa=n.n(Na),Oa=function(e){!function(){if("object"===("undefined"==typeof globalThis?"undefined":Ce()(globalThis)))return globalThis;try{this||new Function("return this")()}catch(e){if("object"===("undefined"==typeof window?"undefined":Ce()(window)))return window}}();var t={customComponents:!0,fixZeroRpx:!0,propValueDeepCopy:!1};if(t)return t[e]},La=/^[-+a-z]+:\/\//i;function Ra(e,t){if(La.test(t))return t;var n=e.match(La),i="";n&&(i=n[0],e=e.slice(i.length)),0===t.indexOf("/")&&(e="");var o=e.split("/");o.pop();for(var r=t.split("/");r.length;){var a=r.shift();""!==a&&"."!==a&&(".."!==a?o.push(a):o.pop())}return i+o.join("/")}var Ma,Ba=function(e){var t={};return e.forEach((function(e){t[e]={ok:!1,callbacks:[]}})),{notify:function(e){t[e]&&(t[e].ok=!0,t[e].callbacks.forEach((function(e){return e()})),t[e].callbacks=[])},on:function(e,n){t[e]&&(t[e].ok?n():t[e].callbacks.push(n))}}};Ma={main:"app-wxss.js",sub:"page-frame.js",lazyCommon:"common.app.js",lazyApp:"webview.app.js",plugin:"pageframe.js"};var $a=null,Fa=function(){$a={};var e=null;__wxConfig&&__wxConfig.plugins&&(e=__wxConfig.plugins);var t=!1;if(e)for(var n in e){var i=e[n].provider,o=e[n].subpackage;if(void 0!==o){t=!0;var r=o||"";"__APP__"===r&&(r=""),"/"===r[0]&&(r=r.slice(1)),r&&"/"!==r.slice(-1)&&(r+="/"),$a[i]=r}}if(!t){var a;if(__wxConfig&&__wxConfig.subPackages)a=__wxConfig.subPackages;else{if("undefined"==typeof window||!window||!window.__subPackages)return;a=window.__subPackages}a.length&&a.forEach((function(e){if(e){var t=e.root||"";if(t&&"/"!==t.slice(-1)&&(t+="/"),e.plugins)for(var n in e.plugins)if(Object.prototype.hasOwnProperty.call(e.plugins,n)){var i=e.plugins[n]&&e.plugins[n].provider;i&&($a[i]=t)}}}))}},Da=function(){return __wxConfig.isLazyLoad},ja=[],Va=function e(t){$a||Fa();var n=t.match(/^plugin:\/\/(.+?)\//);if(n)return e($a[n[1]]||"");if(n=t.match(/^plugin-private:\/\/([0-9a-zA-Z]+)\//))return e($a[n[1]]||"");for(var i=__wxConfig,o=null==i?void 0:i.subPackages,r=window,a=null!=o?o:null==r?void 0:r.__subPackages,s=null!=a?a:[],c=0;c<s.length;++c){var l=s[c].root||"";if(l&&"/"!==l.slice(-1)&&(l+="/"),t.slice(0,l.length)===l)return s[c]}return null},qa=function(e){var t=Va(e);return!!t&&t.independent},Ha=function(e){var t=Va(e);if(!t)return"__APP__";var n=t.root||"";return"/"===n.slice(-1)?n:n+"/"},Ua=function(e){var t="__plugin__/",n=e.indexOf(t);return-1===n?e:"plugin-private://"+e.slice(n+11)},Wa=n(13),za=n.n(Wa),Ga=n(97),Ya=n.n(Ga),Ka=n(312),Xa=n.n(Ka),Za={restoring:null,idDataMap:null,compIdArr:null,compExtraDataMap:null,compIdArrIndex:0,onReady:function(){}},Ja=!1,Qa=ftparser.Component.getComponentOptions,es=void 0!==wx&&wx.transformRpx,ts=[],ns=null,is=null,os=function(){return"function"==typeof is?is:null},rs=function(e){return is?is(e,void 0,arguments.length>1&&void 0!==arguments[1]&&arguments[1]?2:void 0):e},as=function(e,t){return is?is(e,"nv_",t?2:void 0):e},ss=null,cs=[];function ls(e,t,n){var i=e;return n&&i instanceof ftparser.VirtualNode&&(i.id||Ya()(i.dataset).length||(i=n)),{id:t?"":i.id,offsetLeft:i.$$&&!t?i.$$.offsetLeft:0,offsetTop:i.$$&&!t?i.$$.offsetTop:0,dataset:t?{}:i.dataset}}function us(e){if(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push({identifier:i.identifier,pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,force:i.force||0})}return t}}var ds={};function hs(e,t){var n=e,i=ps(n),o=n instanceof ftparser.Component&&"//"===ftparser.Component.getComponentOptions(n).domain,r={selectAllComponents:function(n){if(t!==i)return[];var o=Ja?e.shadowRoot.querySelectorAll(n):e.querySelectorAll(n),r=[];return o.forEach((function(e){r.push(as(hs(e,t),!0))})),r},selectComponent:function(n){if(t!==i)return null;var o=Ja?e.shadowRoot.querySelector(n):e.querySelector(n);return o?as(hs(o,t),!0):null},removeClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!n||!t.length)return this;var o=n.__wxsClass?n.__wxsClass.split(/\s+/):[],r=[];return t.forEach((function(e){(e=e.replace(/^\s+|\s+$/g,""))&&n.classList.contains(e)&&(n.classList.toggle(e),vs=!0,r.push(e))})),r.forEach((function(e){o.forEach((function(t,n){return t!==e||(o.splice(n,1),!1)}))})),n.__wxsClass=o.join(" "),this},addClass:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!n||!t.length)return this;var o=n.__wxsClass||"",r=[];return t.forEach((function(e){(e=e.replace(/^\s+|\s+$/g,""))&&!n.classList.contains(e)&&(n.classList.toggle(e),r.push(e),vs=!0)})),n.__wxsClass=o+(o?" ":"")+r.join(" "),this},hasClass:function(e){return!!n&&n.classList.contains(e)},setStyle:function(e){if(!n)return this;if(e===n.__wxsStyle)return this;var t=[];if("object"===Ce()(e))for(var i in e=e?rs(e):{})Mr.call(e,i)&&t.push("".concat(i,":").concat(e[i]));else t=[String(e)];n.__wxsStyle=t.join(";");var o=function(){var e=wx.transformRpx(n.__wxsStyle,!0);n.setNodeStyle(e,2)};return o(),jr(n,2,o),vs=!0,this},getDataset:function(){return n?as(n.dataset):null},getState:function(){var e=null;return n&&(n.__wxsState=n.__wxsState||{},e=n.__wxsState),e},triggerEvent:function(t,i,r){return!o&&e&&(i=i?rs(i):i,r=r?rs(r):r,ms++,n.triggerEvent(t,i,r),ms--),this},callMethod:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t?(n=rs(n),Ja?da(ho.CALL_METHOD_FROM_WXS,[window.__webviewId__,e&&e.__wxTmplId||0,t,n,!1]):wx.callMethodFromWxs([window.__webviewId__,e&&e.__wxTmplId||0,t,n,!1]),this):this},requestAnimationFrame:function(e){return"function"==typeof e&&"function"!=typeof(t=e)||(ts.push(t),ns||(ns=window.requestAnimationFrame((function(){ns=null;var e=ts;ts=[],e.forEach((function(e){e(),_s()}))})))),this},getComputedStyle:function(e){A()(e)||(e=[]);var t={computedStyle:e.filter((function(e){return"string"==typeof e}))};return as(To(n,t))},setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if("function"==typeof e){var r=window.setTimeout((function(){e.apply(void 0,i),delete ds[r]}),t);return ds[r]=!0,r}},clearTimeout:function(e){ds[e]&&(window.clearTimeout(e),delete ds[e])},getBoundingClientRect:function(){var e=n.$$&&n.$$.getBoundingClientRect();return e?as({x:e.x,y:e.y,width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left}):{}},animate:function(e,t,i){for(var o=function(e,t){for(var n=[],i=0;i<e.length;++i)n.push(Ke()({},e[i]));n[0].offset=0,n[n.length-1].offset=1;for(var o=function(e){n[e].offset=function(e,t){if("number"==typeof t[e].offset)return t[e].offset;for(var n=e+1;n<t.length;++n)if(t[n].offset)return(t[n].offset-t[e-1].offset)/(n-e+1)+t[e-1].offset;return 0}(e,n),n[e].duration=0===e?0:(n[e].offset-n[e-1].offset)*t,Nr.some((function(t){return n[e].ease&&n[e].ease.startsWith(t)}))&&(n[e].type="animeJS")},r=0;r<n.length;++r)o(r);return n}(e=rs(e),t),r=0;r<o.length;++r){var a="".concat(Math.random(),"-").concat(+new Date),s=window.__webviewId__,c="animeJS"===o[r].type;delete o[r].type;var l={nodeId:n.getNodeId(),webviewId:s,options:o[r],selector:"#".concat(n.$$.id),reqId:a,type:c?"animeJS":void 0,fromWxs:!0};r===o.length-1?(l.hasCallback="function"==typeof i,"function"==typeof i&&(_c.instance.applyAnimationCbMap[a]=i),l.isLastAnimation=!0,Jr(l)):(l.hasCallback=!1,l.isLastAnimation=!1,Jr(l))}},clearAnimation:function(e,t){var i="".concat(Math.random(),"-").concat(+new Date),o=_c.instance,r=!1;"function"==typeof t?(e=rs(e),o.clearAnimationCbMap[i]=t,r=!0):"function"==typeof e&&(o.clearAnimationCbMap[i]=e,r=!0);var a={nodeId:n.getNodeId(),webviewId:window.__webviewId__,options:e,selector:"#".concat(n.$$.id),reqId:i,fromWxs:!0,hasCallback:r};ea(a)}};return Xa()(r),r}var ps=function(e){return e instanceof ftparser.Component&&ftparser.Component.getComponentOptions(e).domain},fs=function(e,t){var n=e.ownerShadowRoot?e.ownerShadowRoot.__wxHost:window.__DOMTree__,i=t?n:e;return Ja=!!e.ownerShadowRoot,hs(i,ps(i))},vs=!1,ms=0,_s=function(){vs&&0===ms&&(vs=!1,document.dispatchEvent(new CustomEvent("pageReRender",{})))};function gs(e,t,n,i,o,r,a,s){var c=r?"__wxEventCaptureHandleName":"__wxEventHandleName";t[c]||(t[c]=za()(null)),void 0===t[c][n]&&t.addListener(n,(function(i){var r=t[c][n],l=i.mutatedMarked();if((!s||!i.mutatedMarked())&&(s&&i.markMutated(),r)){i._hasListeners=!0;var u=t.ownerShadowRoot;if(u){var d=u.getHostNode(),h=ftparser.Component.getComponentOptions(d).writeOnly;if(!h||i._allowWriteOnly)if(a)if("function"==typeof r&&os()){var p={type:i.type,timeStamp:i.timeStamp,target:ls(i.target,h,this),currentTarget:ls(this,h,null),mark:i.mark,detail:i.detail,touches:us(i.touches),changedTouches:us(i.changedTouches),mut:l};p.instance=fs(t);var f=r(as(p,!0),as(fs(t,!0),!0));if(_s(),!1===f)return f}else console.warn('Component "'+d.is+'" does not have a wxs function to handle event "'+i.type+'".');else{var v={type:i.type,timeStamp:i.timeStamp,target:ls(i.target,h,this),currentTarget:ls(this,h,null),mark:i.mark,detail:i.detail,touches:us(i.touches),changedTouches:us(i.changedTouches),mut:l,_requireActive:i._requireActive,_relatedInfo:i._relatedInfo};ftparser.exeCompatibleFn(["event","convertEventTarget"],[v]),da(ho.WX_EVENT,[e.nodeId.getNodeId(d),r,v],void 0,!!i._requireActive||void 0)}}return!o&&void 0}}),{capture:r}),a?t[c][n]=i:(t[c][n]=null==i?"":String(i),t.__eventHandlerChangeListener__&&t.__eventHandlerChangeListener__(n,t[c][n],r))}var bs=function(e,t,n,i){var o=Or();e.dataset=e.dataset||{};var r=0,a=!1,s=[],c=e instanceof ftparser.Component,l=c&&"//"===Qa(e).domain,u=ftparser.Component.getDataProxy(e),d=function(d){var h,p=d,f=t[d];"model:"===d.slice(0,6)&&(d=d.slice(6));var v,m,g,b=null;if("slot"===e.is&&e instanceof ftparser.VirtualNode&&"name"===d)return ftparser.Element.setSlotName(e,f),"continue";if("id"===d)return e.id=null==f?"":f,"continue";if("slot"===d)return e.slot=null==f?"":f,"continue";if("class"===d)return c&&(e.class=e.__wxsClass?(" ",v=null==f?"":f,m=e.__wxsClass,v?m?v+" "+m:v||"":m||""):null==f?"":f,c&&e.hasExternalClass("class")&&e.setExternalClass("class",f)),"continue";if("style"===d&&c&&e.$$){var y=es(f,!0);e.setNodeStyle(y,0),y!==f?jr(e,0,(function(){var t=es(f,!0);e.setNodeStyle(t,0),e.__transformedPropValue=t})):Br(e,0),e.__banned&&$r(e)}if(ftparser.exeCompatibleFn(["configuration","updateProps"],[c,e,d,f]),c&&ftparser.Component.hasPublicProperty(e,d)){!l&&Za.restoring||(u.scheduleReplace([d],f,null!=n?n[p]:null),l?u.doUpdates(void 0,!0):(a=!0,e.isInnerDataExcluded(d)||r++));var w=i&&i["model:"+J(d)];if(w){var x=w.match(/^\{\{(.*?)\}\}$/);if(x){var A=x[1].match(/^\s*([_a-zA-Z$][_a-zA-Z0-9$]+)\s*$/);if(A){var C=A[1];e.__modelValueName=Ke()(e.__modelValueName||{},kt()({},d,C)),s.push(d)}else console.warn("For developer:Two-way binding does not support complex data paths currently. This two-way binding is ignored.")}else console.warn('For developer:"'.concat(w,'" is not an assignable expression. This two-way binding is ignored.'))}return"continue"}if("style"===d)return"continue";if(/^data-/.test(d)){h=d.slice(5).toLowerCase();var S=ftparser.exeCompatibleFn(["configuration","parserDatasetName"],[d]);S&&(h=S);var k=(K[g=h]||(g.indexOf("-")<=0?K[g]=g:K[g]=g.replace(X,(function(e){return e[1].toUpperCase()}))),K[g]);return e.dataset[k]=f,e.setAttribute(d,f),"continue"}if("$gdc"===d)return"function"==typeof f&&(is=f),"continue";if((b=d.match(/^\$wxs:(capture-)?(mut-)?(bind|catch):?(.+)$/))&&("function"==typeof f||!f))return gs(o,e,b[4],f,"catch"===b[3],b[1],!0,b[2]),window.isIDE&&e.setAttribute("ftparser:info-attr-"+d.slice(4),f.name),"continue";if(b=d.match(/^(capture-)?(mut-)?(bind|catch):?(.+)$/))return gs(o,e,b[4],f,"catch"===b[3],b[1],!1,b[2]),window.isIDE&&e.setAttribute("ftparser:info-attr-"+d,f),"continue";if(ftparser.exeCompatibleFn(["event","registerEvents"],[d,f,e,o,gs]))return"continue";if("on"===d.slice(0,2))return gs(o,e,d.slice(2),f,!1,!1,!1),"continue";if("animation"===d){if(c&&e.$$&&null!==f&&"object"===Ce()(f)&&f.actions&&f.actions.length>0){var T=function(){if(I<P){var t=wx.animationToStyle(N[I]),n=t.transition,i=t.transitionProperty,o=t.transform,r=t.transformOrigin,a=t.style,s=e.__styleObj?Ke()({},e.__styleObj,{transition:n,transform:o,transitionProperty:i,transformOrigin:r}):{transition:n,transform:o,transitionProperty:i,transformOrigin:r};for(var c in s["-webkit-transition"]=s.transition,s["-webkit-transform"]=s.transform,s["-webkit-transition-property"]=s.transitionProperty,s["-webkit-transform-origin"]=s.transformOrigin,a)s[c]=a[c];e.__styleObj=s,""!==s.transform&&(e.__transformNoneEnabled=!0);var l=E()(s).filter((function(t){return!(/transition/i.test(t)&&""===s[t]||""===t.trim()||void 0===s[t]||!/transform/i.test(t)&&""===s[t]||!isNaN(_()(t,10))||(/transform/i.test(t)&&""===s[t]&&e.__transformNoneEnabled&&(s[t]="none"),0))})).map((function(e){return"".concat(e.replace(/([A-Z]{1})/g,(function(e){return" - $ {\n e.toLowerCase()\n }\n "})),":").concat(s[e])})).join(";"),u=function(){e.setNodeStyle(es(l,!0),1)};u(),jr(e,1,u),e.__banned&&$r(e)}},I=0,N=f.actions,P=f.actions.length;e.addListener("transitionend",(function(){I+=1,T()})),T()}return"continue"}if(b=d.match(/^\$wxs:change:(.+)$/))return e.wxsObserver=e.wxsObserver||{},e.wxsObserver[b[1]]=e.wxsObserver[b[1]]||{},e.wxsObserver[b[1]].observer=f,"continue";if(b=d.match(/^mark:(.+)$/))return e.setMark(b[1],f),"continue";var O=J(d);return c&&e.hasExternalClass(O)?(e.setExternalClass(O,f),"continue"):void 0};for(var h in t)d(h);if(a&&u.doUpdates(r,!0),s.forEach((function(t){e.__wxPropertyListener__&&e.__wxPropertyListener__[t]||(e.setPropertyChangeListener(t,(function(n){var i=e.ownerShadowRoot.getHostNode(),r=o.nodeId.getNodeId(i);da(ho.MODEL_VALUE_CHANGE,{data:n,modelValueName:e.__modelValueName&&e.__modelValueName[t],nodeId:r})})),e.__wxPropertyListener__=e.__wxPropertyListener__||{},e.__wxPropertyListener__[t]=!0)})),e.wxsObserver&&os()&&function(e,t){e.wxsObserver&&!Za.restoring&&(cs.push({node:e,props:t}),ss||(ss=window.requestAnimationFrame((function(){ss=null;var e=cs;cs=[],e.forEach((function(e){var t=e.node,n=e.props;for(var i in t.wxsObserver)if(Mr.call(n,i)&&t.wxsObserver[i]&&"function"==typeof t.wxsObserver[i].observer){var o=t.wxsObserver[i].value;ftparser.safeCallback("WXS Observer",t.wxsObserver[i].observer,null,[as(n[i]),as(o),as(fs(t,!0),!0),as(fs(t),!0)],t.ownerShadowRoot?t.ownerShadowRoot.__wxHost:void 0),t.wxsObserver[i].value=n[i]}}))}))))}(e,t),e.__component__&&!Za.restoring&&o.operationFlow.iterator.nextStep()[0]!==ho.FLOW_APPLY_PROPERTY)throw new Error("Framework inner error (expect FLOW_APPLY_PROPERTY but get another)")},ys=Object.prototype.hasOwnProperty;function ws(e){return"number"==typeof e&&isNaN(e)}var xs=function(e,t){for(var n=function(e){for(var t={},n=0;n<e.length;++n){var i=e[n],o=i&&i.wxKey;o?ys.call(t,o)?i.wxKey=void 0:t[o]=n:ws(o)&&(i.wxKey=void 0)}return t}(e),i=function(e){for(var t={},n=[],i=0;i<e.length;++i){var o=e[i],r=o&&o.wxKey;r?ys.call(t,r)?(console.warn('For developer:Do not set same key "'.concat(r,'" in wx:key.')),o.wxKey=void 0,n.push(i)):t[r]=i:(ws(r)&&(o.wxKey=void 0),n.push(i))}return[t,n]}(t),o=p()(i,2),r=o[0],a=o[1],s=[],c=[],l=[],u=0,d=0,h=0;h<e.length;++h){var f=e[h].wxKey;if(f)if(ys.call(r,f)){var v=r[f];c.push(t[v])}else l.push(h-d),++d,c.push(null);else if(u<a.length){var m=a[u];c.push(t[m]),++u}else l.push(h-d),++d,c.push(null)}for(var _=[],g=0,b=0;g<t.length;){for(var y=t[g],w=y&&y.wxKey,x=c[b],A=x&&x.wxKey;null===x;)A=(x=c[++b])&&x.wxKey;b>=c.length?(s.push({oldIndex:n[w],index:g,pos:-1}),++b,++g):A===w?(_.push(b),++b,++g):w?(A?r[A]===g+1?s.push({oldIndex:n[w],index:g,pos:b}):(x=c[++b])&&x.wxKey===w?(_.push(b),++b):(--b,s.push({oldIndex:n[w],index:g,pos:b})):s.push({oldIndex:n[w],index:g,pos:b}),++g):++b}for(var C=0,E=0;E<s.length;E++){var S=s[E].pos;if(-1===S)break;for(;C<_.length&&S>_[C];)C++;s[E].pos=C>=_.length?-1:_[C]}return{children:c,removes:l,inserts:s}},As=ftparser.dataUtils&&ftparser.dataUtils.deepCopy,Cs=function(e){console.log("G!!"),function e(t){t instanceof ftparser.Component?function(e){e.$$.style.display="none"}(t):t instanceof ftparser.VirtualNode?t.childNodes.forEach((function(t){e(t)})):t instanceof ftparser.TextNode&&(t.textContent=""),t.__banned=!0}(e)};function Es(e){return _c.instance}function Ss(e,t,n){if(e!==t&&(!e||n))if(null==t)n.parentNode.removeChild(n);else if("object"===Ce()(t))if("object"!==Ce()(e)||null===e||e.tag!==t.tag||String(e.wxKey)!==String(t.wxKey)||"virtual"===e.tag&&e.wxVkey!==t.wxVkey){var i=Es(),o=n.parentNode,r=ks(t,null,o.ownerShadowRoot,i,!1);o&&("wx:for"===o.__wxDynamicSync__||"wx:if"===n.__wxDynamicSync__?(i.nodeId.addNode(r),o.replaceChild(r,n),Is(i),i.nodeId.removeNode(n)):o.replaceChild(r,n),n.__banned&&Cs(r))}else{if(t.n&&t.n.length){for(var a=t.n,s=t.attr,c={},l=0;l<a.length;l++){var u=a[l];c[u]=s[u]}bs(n,c,t.raw,t.rawAttr)}void 0!==t.wxScopeData&&(n.__wxScopeData__=t.wxScopeData),void 0!==n.__vtObj&&(n.__vtObj=t),function(e,t,n){var i=!!Oa("customComponents"),o=e.children,r=t.children,a="virtual"===e.tag&&(2===e.wxXCkey||4===e.wxXCkey||void 0===e.wxXCkey)||!i&&o.length!==r.length,s=null,c=null;if(a){var l=xs(o,t.children);r=l.children,s=l.removes,c=l.inserts}for(var u=0;u<o.length;u++){var d=n.childNodes,h=o[u],p=r[u];!p&&a||Ss(h,p,d[u])}if(a){for(var f=t.children,v=Es(),m=n.childNodes,_=[],g=0;g<c.length;g++){var b=c[g];_.push({node:void 0!==b.oldIndex?m[b.oldIndex]:null,before:b.pos>=0?m[b.pos]:void 0,index:b.index})}for(var y=0;y<s.length;y++){var w=m[s[y]];n.removeChild(w),"wx:for"===m.__wxDynamicSync__&&(Is(v),v.nodeId.removeNode(w))}for(var x=0;x<_.length;x++){var A=_[x],C=A.before,E=A.index,S=_[x].node;null===S&&(S=ks(f[E],null,n.ownerShadowRoot,v,!1)),"wx:for"===n.__wxDynamicSync__?(v.nodeId.addNode(S),n.insertBefore(S,C),Is(v)):n.insertBefore(S,C)}n.__banned&&Cs(n)}}(e,t,n)}else if("string"==typeof e)t!==e&&(n.textContent=t);else{var d=n.ownerShadowRoot.createTextNode(t);n.parentNode.replaceChild(d,n)}}function ks(e,t,n,i,o){var a=null;if(i||(i=_c.instance),"shadow"===e.tag&&t)n=a=ftparser.ShadowRoot.create(t);else if("virtual"===e.tag||"shadow"===e.tag){var s="virtual";1===e.wxXCkey?s="wx:if":2===e.wxXCkey&&(s="wx:for"),a=n.createVirtualNode(s),ftparser.Element.setInheritSlots(a),a.__wxVkey__=e.wxVkey,a.__treeManager__=i}else if("wx-slot"===e.tag)a=n.createVirtualNode("slot"),ftparser.Element.setSlotName(a,"");else if(n.tagNameUsed(e.tag)){var c=n.getHostNode(),l=n.getCompDefByTagName(e.tag);"string"==typeof l.is&&(l=l.is);var u=c.getPlaceholder(e.tag);i.compManager.shouldUsePlaceholder(l)&&u?((a=n.createComponent(e.tag,u,e.generics,i)).__placeholder__=!0,i.compManager.arrangePlaceholderReplace(l,(function(){var e=a.__vtObj,t=n.createComponent(e.tag,void 0,e.generics,i);Ts(e,t,i,o),r()(a.childNodes).forEach((function(e){a.removeChild(e),t.appendChild(e)})),a.parentNode&&a.parentNode.replaceChild(t,a)}))):a=n.createComponent(e.tag,void 0,e.generics,i)}else a=n.createComponent(e.tag,void 0,e.generics,i);Ts(e,a,i,o);var d=e.children;if(d)for(var h=0;h<d.length;h++){var p=d[h];if(null!=p)if("object"===Ce()(p)){var f=ks(p,null,n,i,o);a.appendChild(f)}else{var v=n.createTextNode(p);a.appendChild(v)}}return a}function Ts(e,t,n,i){if(!0===t.__placeholder__&&(t.__vtObj=e),3!==e.wxXCkey&&4!==e.wxXCkey||(t.__wxDynamicSync__=4===e.wxXCkey?"wx:for":"wx:if"),e.extraAttr)for(var o in e.extraAttr)t.setAttribute(o,e.extraAttr[o]);void 0!==e.wxScopeData&&(t.__wxScopeData__=e.wxScopeData);var r=t.__component__,a=t.__placeholder__;if(r||a){if(n=_c.instance,Za.restoring){var s=Za.idDataMap[n.nodeId.getNodeId(t)];ftparser.Component.replaceWholeData(t,s,null)}else{var c=n.operationFlow.iterator.nextStep();if(c[0]!==ho.FLOW_CREATE_NODE)throw new Error("Framework inner error (expect FLOW_CREATE_NODE but get another)");n.nodeId.allocNodeId(t,c[1])}t.setAttribute("is",t.is)}var l=i?As(e.attr):e.attr;bs(t,l,e.raw,e.rawAttr)}function Is(e){if(e.operationFlow.iterator.nextStep()[0]!==ho.FLOW_MINIPULATE_CHILD)throw new Error("Expect FLOW_MINIPULATE_CHILD but get another")}var Ns=ks,Ps=ftparser.dataUtils&&ftparser.dataUtils.deepCopy,Os={tag:"shadow",children:[]},Ls=Object.prototype.hasOwnProperty,Rs={d:function(e,t){for(var n in t)Rs.o(t,n)&&!Rs.o(e,n)&&en()(e,n,{enumerable:!0,get:t[n]})},g:function(){if("object"===("undefined"==typeof globalThis?"undefined":Ce()(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===("undefined"==typeof window?"undefined":Ce()(window)))return window}}(),o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},Ms=function(e,t,n){var i=e?e(t,null,Rs.g):Os;return i.tag="shadow",i},Bs=function(e,t,n,i,o){for(var r=o?Ps(e):e,a=0;a<t.length;a++){var s=t[a],c=s[0],l=s[1],u=s[2];if(void 0!==l){for(var d=r,h=c[0],p=1;p<c.length;p++)if(null!=(d=d[h])&&d.__wxspec__&&(d=d.__value__),h=c[p],null!=d&&!Ls.call(d,h)){d=null;break}null!=d&&Ls.call(d,h)&&(n?null!=u&&"object"===Ce()(l)&&l instanceof Array==u instanceof Array?d[h]={__value__:u,__wxspec__:!0}:null!=d[h]&&d[h].__wxspec__||(d[h]={__value__:d[h],__wxspec__:!0}):d[h]=i?Ps(l,!1):l)}}return r},$s=function(){function e(){oe()(this,e)}return ae()(e,[{key:"createInstance",value:function(e,t){var n=new Ds,i=t||_c.instance;if(n._template=this,n._generateFunc=this._generateFunc,n.data=Ps(this._data),n.idMap=za()(null),n.slots=za()(null),Za.restoring){if(Za.compIdArrIndex>=Za.compIdArr.length)throw new Error("Component count unmatched while page recovering");i.nodeId.allocNodeId(e,Za.compIdArr[Za.compIdArrIndex++]);var o=Za.idDataMap[i.nodeId.getNodeId(e)];n._virtualTree=Ms(this._generateFunc,o)}else n._virtualTree=this._virtualTree;return n.shadowRoot=Ns(n._virtualTree,e,null,t,!0),function e(t,n,i){for(var o=t.childNodes,r=0;r<o.length;r++){var a=o[r];a instanceof ftparser.TextNode||(a.__id&&(n[a.__id]=a),void 0!==a.__slotName&&(i[a.__slotName]=a),e(a,n,i))}}(n.shadowRoot,n.idMap,n.slots),n.listeners=[],this._isSimpleComponent||(e.__component__=!0),n._delayedUpdateValues=null,n}},{key:"updateGenerateFunc",value:function(e){}}]),e}();$s.create=function(e,t,n,i){var o=new $s;o._initValues=n,o._data=t;var r=e.template;return o._generateFunc=r.func,o._virtualTree=Ms(o._generateFunc,o._initValues,e.is),o._isSimpleComponent="simple://"===i.domain.slice(0,9),o};var Fs,Ds=function(){function e(){oe()(this,e)}return ae()(e,[{key:"beforeMergeValues",value:function(e,t,n){}},{key:"beforeUpdateValues",value:function(e,t,n){if("number"==typeof n){var i=_c.instance,o=i.operationFlow.iterator.nextStepIf(ho.FLOW_DATA_OBSERVER);if(o){var r=o[1];if(e&&r.length){ya(i.nodeId.getNodeId(e),(function(e){return{isMergedUpdate:!0,dataPaths:e.withDataPaths?r.map((function(e){return e[0]})):void 0}}));var a=ftparser.Component.getDataProxy(e);a.setChanges(r),a.doUpdates(void 0,!0)}}}}},{key:"updateValues",value:function(e,t,n,i,o,r){if(!Za.restoring)if(this._delayedUpdateValues)this._delayedUpdateValues.push([Ps(t),n,i,o,r]);else{this._delayedUpdateValues=[];try{this._updateValues(e,t,n,i,o,r);var a=this._delayedUpdateValues;this._delayedUpdateValues=null;for(var s=0;s<a.length;s++){var c=a[s],l=p()(c,5),u=l[0],d=l[1],h=l[2],f=l[3],v=l[4];this._updateValues(e,u,d,h,f,v)}}catch(e){throw this._delayedUpdateValues=null,e}}}},{key:"_updateValues",value:function(e,t,n,i,o,r){var a="number"!=typeof r,s=!Oa("propValueDeepCopy"),c=Bs(t,o,!0,!1,s),l=Ms(this._generateFunc,c,e.is);Bs(t,o,!1,a,!1);var u=this._virtualTree;this._virtualTree=l,Ss(u,l,this.shadowRoot)}},{key:"_resetShadowChildren",value:function(e,t,n){}}]),e}(),js=$s,Vs=0,qs=0,Hs=!1,Us=!1,Ws=0,zs=function(){return"CSS1Compat"===document.compatMode?document.documentElement.clientHeight:document.body.clientHeight},Gs=function(){var e=0,t=0;return document.body&&(e=document.body.scrollHeight),document.documentElement&&(t=document.documentElement.scrollHeight),Math.max(e,t)},Ys=function(e){var t=(qs-window.scrollY)*e<=0;qs=window.scrollY;var n=zs(),i=window.scrollY+n+Vs,o=Gs();return Vs+n>=o?1===e?window.scrollY>0:0===window.scrollY:1===e?i>=o&&t:i<o&&t},Ks=function(){return Ys(1)},Xs=function(){Ys(-1)&&(Us=!1)},Zs=function(){wd.publishPageEvent("onReachBottom",{},window.__DOMTree__.__wxTmplId)},Js=function(e){"number"==typeof e&&(Vs=e),window.__enablePullUpRefresh__&&(window.onscroll=function(){Hs||(Xs(),Ks()&&!Us&&(Us=!0,Zs()))},window.__DOMTree__.addListener("touchstart",(function(e){Hs=!1})),window.__DOMTree__.addListener("touchmove",(function(e){Xs();var t=Ks();Hs=!0,t&&!Us&&(Us=!0,Ws++)})),window.__DOMTree__.addListener("touchend",(function(e){for(var t=0;t<Ws;t++)Zs();Ws=0,Hs=!1})))},Qs=function(){window.__enablePageScroll__&&window.addEventListener("scroll",(function(e){var t=e.target.documentElement.scrollTop||e.target.body.scrollTop,n={scrollTop:t};t>=0&&wd.publishPageEvent("onPageScroll",n,window.__DOMTree__.__wxTmplId)}))},ec={domain:"/",writeOnly:!1,allowInWriteOnly:!1,lazyRegistration:!0,classPrefix:"",renderingMode:"full",templateEngine:null,multipleSlots:!1,publicProperties:!0,reflectToAttributes:!1,writeFieldsToNode:!1,writeIdToDOM:!1,separateInnerData:!1,innerDataExclude:null,randomizeTagName:!1,virtualHost:!1},tc={lazyRegistration:!0,publicProperties:!0},nc={String:String,Number:Number,Boolean:Boolean,Object:Object,Array:Array,null:null};function ic(e){var t=__AppCode__["customStyle://hasWxss"];e=t?e+".wxss":e;for(var n=document.head.querySelectorAll("style"),i=/^\.?\//,o=function(){var o=n[r],a=o.getAttribute(t?"wxss:path":"page");"string"==typeof a&&"app"===e&&(window.__extendedLibList__||[]).forEach((function(e){"app.".concat(e,".wxss")===a.replace(i,"")&&o.parentNode.removeChild(o)})),"string"==typeof a&&e&&e===a.replace(i,"")&&o.parentNode.removeChild(o)},r=0;r<n.length;r++)o()}function oc(e,t){var n=p()(e,4),i=n[0],o=n[1],r=n[2],a=n[3];t||(Fs.rootCompName=r);for(var s=0;s<i.length;s++){var c=i[s];c.options.hasObservers&&(c.observers={"**":function(){}}),c.options=tc,ftparser.registerBehavior(c)}var l=__AppCode__[r+".wxss"];l&&l(),o.forEach((function(e){var n=function(e,t,n){for(var i in e.properties)e.properties[i].type=nc[e.properties[i].type];var o="";t||(o=n.compManager.getComponentClassPrefix(e.is));var r=e.options,a=!(!r.writeIdToDOM&&!t);e.options=Ke()({},ec),e.options.multipleSlots=r.multipleSlots||!1,e.options.writeOnly=r.writeOnly||!1,e.options.writeIdToDOM=a,e.options.domain=r.domain,e.options.randomizeTagName=!1,e.options.templateEngine=js,e.options.innerDataExclude=function(e){if(!e)return null;var t=e.lastIndexOf("/"),n=e.slice(1,t),i=e.slice(t+1);return new RegExp(n,i)}(r.innerDataExcludeString),e.options.virtualHost=r.virtualHost;var s=!1;if(r.styleIsolation){var c=r.styleIsolation;"page-"===c.slice(0,5)&&(s=!0,c=c.slice(5)),"isolated"===c?(o=n.compManager.getComponentClassPrefix(e.is),e.options.addGlobalClass=!1):"strong-isolated"===c?(o=n.compManager.getComponentClassPrefix(e.is),e.options.addGlobalClass=!1,e.options.randomizeTagName=!0):"apply-shared"===c?(o=n.compManager.getComponentClassPrefix(e.is),e.options.addGlobalClass=!0):"shared"===c&&"/"===r.domain?(o="",e.options.addGlobalClass=!1):s=!1}else e.options.addGlobalClass=r.addGlobalClass||!1;e.options.classPrefix=o,r.hasObservers&&(e.observers={"**":function(){}});var l=window.__generateFunc__;return"undefined"!=typeof __AppCode__&&__AppCode__[e.template]&&(l=__AppCode__[e.template]),e.template={path:e.template,func:l},window.ftparser.registerElement(e),{disableAppWxss:s,classPrefix:o}}(e,e.is===r&&!t,Fs),i=n.disableAppWxss,o=n.classPrefix;r===e.is&&!t&&i&&ic("app");var s=__AppCode__["customStyle://".concat(e.is,".wxss")];"function"==typeof s&&Pn(s(),window.innerWidth||window.screen.availWidth,window.devicePixelRatio,"".concat(e.is,".wxssCustomStyle)}"),"customStyle");var c=e.is+".wxss",l=__AppCode__&&__AppCode__[c];for(var u in l&&(e.is!==r||t)&&l(o&&o+"--",{allowIllegalSelector:!0}),a)Object.hasOwnProperty.call(ftparser.Component._list,a[u])&&(ftparser.Component._list[u]=ftparser.Component._list[a[u]])}))}var rc=Ba(["inject"]);wx.onInitialRenderingCacheReady((function(e){try{__virtualDOM__.applyInitialRenderingCache(e)}catch(e){console.log("error",e)}}));var ac,sc=!1;function cc(){if(__wxConfig__.darkmode){var e=document.createElement("style");e.innerText='@media (prefers-color-scheme:dark){html{background-color:#191919;color:hsla(0,0%,100%,0.8)}\n wx-button{background-color:#343434;color:#d6d6d6}\n wx-button:after{border-color:#2d2d2d}\n wx-button[type="default"]{background-color:#343434;color:#d6d6d6}\n wx-button[disabled]{color:hsla(0,0%,100%,0.6)}\n wx-button[disabled]:not([type]),wx-button[disabled][type="default"]{background-color:hsla(0,0%,100%,0.08);color:hsla(0,0%,100%,0.2)}\n wx-button[type="primary"][plain][disabled]{border-color:hsla(0,0%,100%,0.08);color:hsla(0,0%,100%,0.2)}\n wx-button[type="default"][plain]{background-color:transparent;border:1px solid #d6d6d6;color:#d6d6d6}\n wx-button[type="default"][plain][disabled]{border-color:hsla(0,0%,100%,0.2);color:hsla(0,0%,100%,0.2)}\n .button-hover{background-color:hsla(0,0%,100%,0.1);color:#d6d6d6}\n .button-hover[plain]{background-color:transparent;border-color:hsla(0,0%,100%,0.05);color:hsla(0,0%,100%,0.05)}\n .button-hover[type="default"]{background-color:hsla(0,0%,100%,0.1);color:#d6d6d6}\n .button-hover[type="default"][plain]{background-color:transparent;border-color:hsla(0,0%,100%,0.05);color:hsla(0,0%,100%,0.05)}\n wx-checkbox .wx-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}\n wx-checkbox .wx-checkbox-input.wx-checkbox-input-checked{color:#07c160}\n wx-checkbox .wx-checkbox-input.wx-checkbox-input-disabled{background-color:#2c2c2c;border:1px solid #373737}\n wx-checkbox\n .wx-checkbox-input.wx-checkbox-input-disabled.wx-checkbox-input-checked{background-color:#2b2b2b}\n wx-checkbox .wx-checkbox-input.wx-checkbox-input-disabled:before{color:#6b6b6b}\n .input-placeholder,.input-placeholder-dark{color:hsla(0,0%,100%,0.3)}\n .wx-picker__mask{background:linear-gradient(180deg,#2c2c2c,rgba(44,44,44,0.7)),linear-gradient(180deg,rgba(44,44,44,0.7),#2c2c2c);background-position:top,bottom;background-repeat:no-repeat;background-size:100% 102px;height:100%;margin:0 auto;top:0}\n .wx-picker__indicator:after,.wx-picker__indicator:before{color:hsla(0,0%,100%,0.05)}\n .wx-picker__indicator:before{border-top:1px solid hsla(0,0%,100%,0.05)}\n .wx-picker__indicator:after{border-bottom:1px solid hsla(0,0%,100%,0.05)}\n wx-radio .wx-radio-input{background-color:#2c2c2c;border:1px solid #656565}\n wx-radio .wx-radio-input.wx-radio-input-checked{background-color:#07c160;border-color:#07c160}\n wx-radio .wx-radio-input.wx-radio-input-checked:before{color:#fff}\n wx-radio .wx-radio-input.wx-radio-input-disabled{background-color:#2c2c2c;border-color:#373737}\n wx-radio .wx-radio-input.wx-radio-input-disabled.wx-radio-input-checked{background-color:#2b2b2b;border-color:#373737}\n wx-radio .wx-radio-input.wx-radio-input-disabled:before{color:#6b6b6b}\n wx-slider .wx-slider-handle-wrapper{background-color:#393939}\n wx-slider .wx-slider-track{background-color:#07c160}\n wx-slider .wx-slider-value{color:#888;font-size:14px;margin-left:1em;text-align:center}\n wx-slider .wx-slider-disabled .wx-slider-track{background-color:#ccc}\n wx-slider .wx-slider-disabled .wx-slider-thumb{background-color:#fff;border-color:#ccc}\n wx-switch .wx-switch-input{border:1px solid hsla(240,3%,49%,0.16)}\n wx-switch .wx-switch-input,wx-switch .wx-switch-input:before{background-color:hsla(240,3%,49%,0.16)}\n wx-switch .wx-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.4)}\n wx-switch .wx-switch-input.wx-switch-input-checked{background-color:#07c160;border-color:#07c160}\n wx-switch .wx-checkbox-input{background-color:#2c2c2c;border:1px solid #656565;color:#07c160}\n wx-switch .wx-checkbox-input.wx-checkbox-input-disabled{background-color:#2c2c2c;border:1px solid #373737}\n wx-switch .wx-checkbox-input.wx-checkbox-input-disabled:before{color:#6b6b6b}\n .navigator-hover{background-color:hsla(0,0%,100%,0.1)}\n wx-textarea{color:hsla(0,0%,100%,0.8)}\n wx-editor .ql-editor.ql-blank:before{color:hsla(0,0%,100%,0.6)}\n .wx-wins-scrollbar > div{background-color:#8f8f8f}\n wx-map{color:#000000}\n .wx-picker .wx-picker-hd{background-color:var(--weui-BG-2)}\n .wx-picker .wx-picker-hd .wx-picker-action{color:var(--weui-FG-1)}\n .wx-picker .wx-picker-hd .wx-picker-action:last-child{color:var(--weui-BRAND)}\n .wx-picker .wx-picker-bd{background-color:var(--weui-BG-2)}\n .wx-picker .wx-picker-mask2{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}\n .wx-picker .wx-picker-content .wx-picker-item{color:var(--weui-FG-0)}\n .wx-picker .wx-picker-bd .wx-picker-group{border-left-width:0px}\n .wx-picker .wx-picker-bd .wx-picker-indicator:after{border-bottom:1px solid var(--weui-FG-3)}\n .wx-picker .wx-picker-bd .wx-picker-indicator:before{border-top:1px solid var(--weui-FG-3)}\n }',document.getElementsByTagName("head")[0].appendChild(e)}setTimeout((function(){var e=window.matchMedia("(prefers-color-scheme: dark)");e&&e.matches?lc("dark"):lc("light")}),50)}function lc(e){var t=__wxConfig__.useExtendedLib;t&&t.weui&&(document.getElementsByTagName("body")[0].dataset.weuiTheme=e)}ac=function(){sc||(sc=!0,Mn.publish("viewReady",{})),O&&document.querySelector("html").classList.add("use-web-component")},"loading"!==document.readyState?ac():document.addEventListener("DOMContentLoaded",ac),Mn.subscribe("updateBodyTheme",(function(e){lc(e.theme)}));var uc={init:function(e,t){function n(){e(),Mn.publish("DOMContentLoaded",{})}!function(e){Fs=e,ca(ho.COMPONENT_DEF,(function(t){oc(t,!1),e.compManager.setInitialSubPackage(t[2])})),ca(ho.COMPONENT_DEF_TAB,(function(t){e.compManager.injectComponentsRecursively(["custom-tab-bar/index"],(function(){oc(t,!0),rc.on("inject",(function(){}))}),!0)}),0),ca(ho.DESTROY_TAB,(function(){e.tabDestroyed=!0,window.__TAB_BAR__&&window.__TAB_BAR__.parentNode.removeChild(window.__TAB_BAR__)}),0),ca(ho.LOAD_COMPONENT_DEF,(function(t){if(!__wxConfig.isFirstPage&&__wxConfig.isLazyLoad){var n=t[0],i=e.compManager;i.setInitialSubPackage(n),i.injectComponentsRecursively([n],(function(){rc.on("inject",(function(){}))}),!0)}}),0)}(t),wx.getInitialRenderingCache(),document.documentElement.style.fontSize="16px",Oi&&n(),setTimeout(s()(l.a.mark((function e(){return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.matchMedia("(orientation: landscape)").matches||/landscape/i.test((screen.orientation||{}).type)||90===window.orientation||-90===window.orientation?window.__deviceOrientation__="landscape":window.__deviceOrientation__="portrait",cc(),"game"===__wxConfig__.type){e.next=5;break}return e.next=5,new d.a((function(e){FinChatJSBridge.subscribe("responseLoadGlobalFontFaces",(function(t){try{t.globalFontFaces.forEach((function(e){var t=e.family,n=e.source,i=e.desc,o=void 0===i?{}:i,r=n.startsWith("url")?n:'url("'.concat(n,'")'),a=new FontFace(t,r,o);function s(){"loaded"===a.status&&document.fonts.add(a)}a.load().then(s,s)}))}catch(e){}e()})),FinChatJSBridge.publish("requestLoadGlobalFontFaces",{})}));case 5:!Oi&&n();case 6:case"end":return e.stop()}}),e)}))),100)},disableStyleElement:ic},dc=Object.prototype.hasOwnProperty,hc=new Nn.a,pc=function(e,t){var n=e.filter((function(e){return hc.has(e)})),i=e.filter((function(e){return!hc.has(e)}));if(n.length>0&&ftConsole.info("[VD] loadJsFileToWebview ignored loaded: "+n.join(",")),0===i.length)return ftConsole.info("[VD] loadJsFileToWebview no files to load, return"),void t(0);var o=v()();i.forEach((function(e){hc.add(e)})),FinChatJSBridge.invoke("loadJsFiles",{paths:i.filter((function(e){return!e.startsWith("__plugin__")})).map((function(e){return e+".webview.js"}))},(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.scripts&&document&&document.createElement&&e.scripts.forEach((function(e){var t=document.createElement("script");t.text=e,document.head.appendChild(t)}));var n=v()();t(n-o)}))},fc=function(){function e(t,n){var i=this;oe()(this,e),this.__viewId=t,this.__treeManager=n,this.__loadedSubPackage=new Nn.a,this.__injectedSubPackage=new Nn.a,this.__ensureComponentNotifier={},this.__placeholderReplacement=null,this.__injectedComponents=new Nn.a([]),this.__classPrefixMap=null,this.__usedClassPrefix=new Nn.a,this.__restoreInjectNotifier=null,this.__log=function(e){ftConsole.info("[CompMgr] [view] [".concat(i.__viewId,"] ").concat(e))}}return ae()(e,[{key:"getRestoredData",value:function(){return[Tn()(this.__loadedSubPackage),Tn()(this.__injectedSubPackage),Object.fromEntries(this.__classPrefixMap),Tn()(this.__injectedComponents),this.__treeManager.rootCompName]}},{key:"getRestoreInjectNotifier",value:function(){return this.__restoreInjectNotifier||(this.__restoreInjectNotifier=Ba(["inject"])),this.__restoreInjectNotifier}},{key:"restore",value:function(e){var t=this,n=p()(e,5),i=n[0],o=n[1],r=n[2],a=n[3],s=n[4],c=function(){!function(e){var t=Ua(e),n=("undefined"!=typeof __AppCode__?__AppCode__:{})[t+".wxss"];void 0!==n&&"function"==typeof n||(n=function(){}),window.__setCssStartTime__=v()(),n(),window.__setCssEndTime__=v()()}(s),function(e){var t=Ua(e),n=("undefined"!=typeof __AppCode__?__AppCode__:{})["./"+t+".wxml"];A()(n)&&(n=n[0][n[1]]),document.dispatchEvent(new CustomEvent("generateFuncReady",{detail:{generateFunc:n}}))}(s),t.getRestoreInjectNotifier().notify("inject")};this.setSubPackageLoaded(i),this.batchInjectSubPackages(o,(function(){Da()?t.batchInjectComponents(a,c):c()})),this.__usedClassPrefix=new Nn.a(Ze()(r)),this.__classPrefixMap=new Ia.a(Pa()(r))}},{key:"onRestoreInjectDone",value:function(e){this.getRestoreInjectNotifier().on("inject",e)}},{key:"recurseUsingComponents",value:function(e){if(!Da())return e;var t=__AppCode__,n={},i=new Nn.a,o=function e(o){if(!i.has(o)){i.add(o);var r=function(e,t){var n={},i=(t[e+".json"]||{}).usingComponents||{};for(var o in i)n["wx-"+o]=Ra(e,String(i[o]));return n}(o,t),a=function(e,t){var n={},i=(t[e+".json"]||{}).componentGenerics||{};for(var o in i){var r=i[o];"object"===Ce()(r)?n["wx-"+o]={default:Ra(e,String(r.default||""))}:null!=r&&(n["wx-"+o]={})}return n}(o,t),s=(d={},h=(t[o+".json"]||{}).componentPlaceholder||{},E()(h).forEach((function(e){d["wx-"+e]="wx-"+String(h[e])})),d);for(var c in r)dc.call(s,c)?dc.call(r,s[c])&&e(r[s[c]]):e(r[c]);for(var l in a){var u=a[l];"string"==typeof u.default&&e(u.default)}(n["./"+o+".wxml"]||[]).forEach((function(n){var i=n.substr(2,n.length-7);dc.call(t,i+".json")&&e(i)}))}var d,h};return e.forEach((function(e){return o(e)})),Tn()(i)}},{key:"batchLoadSubPackages",value:function(e,t){var n=this;d.a.all(e.map((function(e){return new d.a((function(t){var n=v()();__appServiceSDK__.loadSubpackage({name:e,success:function(){var e=v()();t(e-n)},complete:function(t){ftConsole.info("[VD] loadSubpackage "+e+": ",t)}})}))}))).then((function(){n.setSubPackageLoaded(e),n.__treeManager.operationFlow.sendInIndividualFlow([ho.FLOW_SET_SUBPACKAGE_LOADED,e]),t()}))}},{key:"setSubPackageLoaded",value:function(e){var t=this;e.forEach((function(e){t.__loadedSubPackage.add(e)}))}},{key:"batchInjectSubPackages",value:function(e,t){var n=this;this.__log("injectSubPackages: "+e.join(", "));var i=e.filter((function(e){return!n.__injectedSubPackage.has(e)})).map((function(e){return"__APP__"===e||"/"===e.slice(-1)?e:e+"/"})),o=[];i.forEach((function(e){o.push.apply(o,r()(function(e,t){var n=Ze()(__wxConfig.plugins||{}).filter((function(t){return t.subpackage.includes(e)})).map((function(e){var t=e.provider,n="__plugin__/".concat(t);return{plugin_id:t,prefix_path:ja.includes(t)?null:n}})),i="__APP__"===e,o=i?"":e;if(Da()){var r=[];return n.forEach((function(e){var t=(o+e.prefix_path+"/").replace(/\/\/$/,"/");e.prefix_path||(t+="__extended__/".concat(e.plugin_id,"/")),r.push(t+Ma.plugin)})),r.push(o+Ma.lazyCommon,o+Ma.lazyApp),r}var a=n.map((function(e){var t=(o+e.prefix_path+"/").replace(/\/\/$/,"/");return e.prefix_path||(t+="__extended__/".concat(e.plugin_id,"/")),t+Ma.plugin}));return i?a.push(o+Ma.main):a.push(o+Ma.sub),a}(e)))})),pc(o,(function(){n.setSubPackageInjected(i),t()}))}},{key:"batchInjectComponents",value:function(e,t){var n=this;if(!Da())return t(0),-1;var i=e.map((function(e){return function(e){return $a||Fa(),(ftparser.Component._list[e]&&ftparser.Component._list[e].is||e).replace(/^plugin-private:\/\/([0-9a-zA-Z]+)\//,(function(e,t){return($a[t]||"")+"__plugin__/"+t+"/"})).replace(/^wx:\/\//,"__wx__/")}(e)})).filter((function(e){return!n.__injectedComponents.has(e)}));return this.__log("injectComponents: "+i.join(", ")),pc(i,(function(e){i.forEach((function(e){n.__injectedComponents.add(e)})),t(e)})),-1}},{key:"setSubPackageInjected",value:function(e){var t=this;e.forEach((function(e){t.__injectedSubPackage.add(e)}))}},{key:"setInitialSubPackage",value:function(e){var t=[Ha(e)];qa(e)||t.push("__APP__"),this.setSubPackageLoaded(t),this.setSubPackageInjected(t)}},{key:"shouldUsePlaceholder",value:function(e){var t=Ha(e),n=this.__loadedSubPackage.has(t);return Da()&&(n=n&&this.__injectedComponents.has(e)),!n}},{key:"doLazyLoadReport",value:function(e,t){}},{key:"injectComponentsRecursively",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Da()){var o=this.recurseUsingComponents(e);this.batchInjectComponents(o,(function(e){i&&n.doLazyLoadReport(o.length,e),t()}))}else t()}},{key:"ensureComponents",value:function(e,t){var n=this,i=Math.floor(4294967296*(1+Math.random())).toString(16).slice(1),o=e.map((function(e){return Ha(e)})),r=o;return(o=Tn()(new Nn.a(r))).some((function(e){return!qa(e)}))&&o.unshift("__APP__"),o=o.filter((function(e){return!n.__loadedSubPackage.has(e)})),this.batchLoadSubPackages(o,(function(){n.__treeManager.operationFlow.sendInIndividualFlow([ho.FLOW_INJECT_SUBPACKAGE,i,o]),Da()&&n.__treeManager.operationFlow.sendInIndividualFlow([ho.FLOW_INJECT_COMPONENT,i,e]),n.batchInjectSubPackages(o),n.injectComponentsRecursively(e),t(i)})),i}},{key:"getEnsureComponentsNotifier",value:function(e){if(!this.__ensureComponentNotifier[e]){var t=["inject","def"];Da()&&t.push("inject-common"),this.__ensureComponentNotifier[e]=Ba(t)}return this.__ensureComponentNotifier[e]}},{key:"destructEnsureComponentsNotifier",value:function(e){this.__ensureComponentNotifier[e]&&delete this.__ensureComponentNotifier[e]}},{key:"injectSubPackageOnReady",value:function(e,t){var n=this;this.batchInjectSubPackages(t,(function(){var t=Da()?"inject-common":"inject";n.getEnsureComponentsNotifier(e).notify(t)}))}},{key:"injectComponentsOnReady",value:function(e,t){var n=this;Da()&&this.getEnsureComponentsNotifier(e).on("inject-common",(function(){n.injectComponentsRecursively(t,(function(){n.getEnsureComponentsNotifier(e).notify("inject")}))}))}},{key:"appendComponentDef",value:function(e,t){var n=this;this.getEnsureComponentsNotifier(e).on("inject",(function(){oc(t,!1),n.getEnsureComponentsNotifier(e).notify("def")}))}},{key:"waitComponentEnsuring",value:function(e,t){var n=this;this.getEnsureComponentsNotifier(e).on("def",(function(){t((function(){n.destructEnsureComponentsNotifier(e)}))}))}},{key:"arrangePlaceholderReplace",value:function(e,t){null===this.__placeholderReplacement&&(this.__placeholderReplacement={compNames:new Nn.a,replacers:[]}),this.__placeholderReplacement.compNames.add(e),this.__placeholderReplacement.replacers.push(t)}},{key:"getPlaceholderReplaceData",value:function(){return this.__placeholderReplacement}},{key:"finishPlaceholderReplacement",value:function(){this.__placeholderReplacement=null}},{key:"newComponentClassPrefix",value:function(e){if(this.__classPrefixMap||(this.__classPrefixMap=new Ia.a),this.__classPrefixMap.has(e))return this.__classPrefixMap.get(e);var t="";if("custom-tab-bar/index"===e)t="custom-tab-bar-index";else{var n=e.split(/[^a-z0-9]+/i),i="index"===n[n.length-1]?1:0,o=0;do{1!==n.length&&(i<n.length?i+=1:o+=1),t=n.slice(-i).join("-"),o>0&&(t+="-"+o),Number(t[0])>=0&&(t="x-"+t)}while(this.__usedClassPrefix.has(t))}return t}},{key:"oldComponentClassPrefix",value:function(e){if(this.__classPrefixMap||(this.__treeManager.route=window.__path__,this.__classPrefixMap=function(e){var t=new Ia.a;if(e="/"+e,window._newClassPrefix&&window._newClassPrefix[e])for(var n=window._newClassPrefix[e],i=E()(n),o=0;o<i.length;o++){var r=i[o],a=n[r];t.has(r)||t.set(r,a.endsWith("--")?a.slice(0,-2):a)}return t}(this.__treeManager.route)),this.__classPrefixMap.has(e))return this.__classPrefixMap.get(e);var t="";if("custom-tab-bar/index"===e)t="custom-tab-bar-index";else{var n=e.split("/"),i=n.length;t="index"===n[i-1]?"".concat(n[i-2],"-").concat(n[i-1]):n[i-1]}return t}},{key:"getComponentClassPrefix",value:function(e){var t=__AppCode__["customStyle://hasWxss"]?this.newComponentClassPrefix(e):this.oldComponentClassPrefix(e);return this.__classPrefixMap.set(e,t),this.__usedClassPrefix.add(t),t}}]),e}(),vc=function(){function e(){oe()(this,e),this._idNodeMap={}}return ae()(e,[{key:"getAll",value:function(){return this._idNodeMap}},{key:"getNodeById",value:function(e){return this._idNodeMap[e]}},{key:"getNodeId",value:function(e){return e.__wxTmplId}},{key:"allocNodeId",value:function(e,t){var n=t||Math.floor(4294967296*(1+Math.random())).toString(16).slice(1);return e.__wxTmplId=n,this._idNodeMap[e.__wxTmplId]=e,n}},{key:"addNode",value:function(){}},{key:"removeNode",value:function(e){if(e.__wxTmplId&&delete this._idNodeMap[e.__wxTmplId],e.childNodes)for(var t=0;t<e.childNodes.length;t++)this.removeNode(e.childNodes[t]);e.shadowRoot instanceof ftparser.Element&&this.removeNode(e.shadowRoot)}}]),e}(),mc={},_c=function(){function e(t,n){oe()(this,e),this.listenerInited=!1,this.root=null,this.tabRoot=null,this.tabDestroyed=!1,this.usedDef=null,this.tabUsedDef=null,this.statesData=null,this.operationFlow=new ma(t,this),this.nodeId=new vc,this.compManager=new fc(t,this),this.rootNodeId="",this.tabNodeId="",this.rootCompName="",this.tabCompName="",this.applyAnimationCbMap={},this.clearAnimationCbMap={},this.viewInfoCbMap={},this.initialRootData=null,this.lifetimeListener=null,this.route=n}return ae()(e,null,[{key:"create",value:function(t,n){var i=new e(t,n);return i.viewId=t,mc[t]=i,i}},{key:"destroy",value:function(e){delete mc[e]}},{key:"get",value:function(e){return mc[e]}},{key:"listViewId",value:function(){var e=[];for(var t in mc)e.push(mc[t].viewId);return e}},{key:"list",value:function(){var e=[];for(var t in mc)e.push(mc[t]);return e}}]),e}(),gc=null;window.__virtualDOM__={initExt:function(){var e=__wxConfig__,t=__path__;window.requestAnimationFrame((function(){var n=e.windows&&e.windows.pages&&e.windows.pages[t]||{},i=n.onReachBottomDistance||e.window&&e.window.onReachBottomDistance||50;Js(i),Qs(),k&&M(gi,"2.42.10")&&n.disableScroll&&(document.body.style.height="100%",document.body.style.overflowY="hidden")}))},applyInitialRenderingCache:function(e){(e=e.content)&&(_c.instance&&_c.instance.root||(document.body.innerHTML=e))},getPluginRoutePrefix:function(e){return gc||function(){gc={};var e=null;__wxConfig&&__wxConfig.plugins&&(e=__wxConfig.plugins);var t=!1;if(e)for(var n in e){var i=e[n].provider,o=e[n].subpackage;if(void 0!==o){t=!0;var r=o||"";"__APP__"===r&&(r=""),"/"===r[0]&&(r=r.slice(1)),r&&"/"!==r.slice(-1)&&(r+="/"),gc[i]=r}}if(!t){var a;if(__wxConfig&&__wxConfig.subPackages)a=__wxConfig.subPackages;else{if("undefined"==typeof window||!window||!window.__subPackages)return;a=window.__subPackages}a.length&&a.forEach((function(e){if(e){var t=e.root||"";if(t&&"/"!==t.slice(-1)&&(t+="/"),e.plugins)for(var n in e.plugins)if(Object.prototype.hasOwnProperty.call(e.plugins,n)){var i=e.plugins[n]&&e.plugins[n].provider;i&&(gc[i]=t)}}}))}}(),(gc[e]||"")+"__plugin__/"+e+"/"},addIntersectionObserver:yo,addMediaQueryObserver:So,getNodeById:function(e,t){return _c.instance?_c.instance.nodeId.getNodeById(e):null},getNodeId:function(e,t){return _c.instance?_c.instance.nodeId.getNodeId(e):""},getRootNodeId:function(e){return _c.instance.rootNodeId},removeIntersectionObserver:bo,removeMediaQueryObserver:ko,scheduleIntersectionUpdate:Ao,setEventHandlerChangeListener:function(e,t){e.__eventHandlerChangeListener__=t},startInitRender:function(){_c.instance.operationFlow.unblock()}};var bc,yc,wc=!1;function xc(e,t,n,i,o){i=i||0,o=o||0,this.identifier=t,this.target=e,this.clientX=n.clientX+i,this.clientY=n.clientY+o,this.screenX=n.screenX+i,this.screenY=n.screenY+o,this.pageX=n.pageX+i,this.pageY=n.pageY+o}function Ac(){var e=[];return e.item=function(e){return this[e]||null},e.identifiedTouch=function(e){return this[e+1]||null},e}function Cc(e){var t;(null==e||null===(t=e.path)||void 0===t?void 0:t.length)>4&&e.path[3].className&&-1!==e.path[3].className.indexOf("wx-swiper-slide-frame")||(e.preventDefault(),e.stopPropagation())}function Ec(e){return function(t){var n;(null==t||null===(n=t.path)||void 0===n?void 0:n.length)>1&&t.path[1].className&&-1!==t.path[1].className.indexOf("ql-editor")||(function(e){if(Ic.ignoreTags.indexOf(e.target.tagName)>=0)return!0;if("mousedown"===e.type){var t=document.querySelectorAll("[contenteditable]");return!!Array.prototype.some.call(t,(function(t){return t.contains(e.target)}))||"BODY"!==document.activeElement.tagName}}(t)||Cc(t),1===t.which&&(("mousedown"===t.type||!yc||yc&&!yc.dispatchEvent)&&(yc=t.target),wc&&!t.shiftKey&&(Sc("touchend",t),wc=!1),Sc(e,t),!wc&&t.shiftKey&&(wc=!0,bc={pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY},Sc("touchstart",t)),"mouseup"===t.type&&(bc=null,wc=!1,yc=null)))}}function Sc(e,t){var n=document.createEvent("Event");n.initEvent(e,!0,!0),n.altKey=t.altKey,n.ctrlKey=t.ctrlKey,n.metaKey=t.metaKey,n.shiftKey=t.shiftKey,n.touches=Tc(t,e),n.targetTouches=Tc(t,e),n.changedTouches=function(e,t){var n=kc(e);return!wc||"mouseup"===e.type||"touchstart"!==t&&"touchend"!==t||n.splice(0,1),n}(t,e),yc.dispatchEvent(n)}function kc(e){var t=new Ac;if(wc){var n=Ic.multiTouchOffset,i=bc.pageX-e.pageX,o=bc.pageY-e.pageY;t.push(new xc(yc,1,bc,-1*i-n,-1*o+n)),t.push(new xc(yc,2,bc,i+n,o-n))}else t.push(new xc(yc,1,e,0,0));return t}function Tc(e,t){if("mouseup"===e.type)return new Ac;var n=kc(e);return wc&&"mouseup"!==e.type&&"touchend"===t&&n.splice(1,1),n}function Ic(){"ontouchstart"in window||window.Modernizr&&window.Modernizr.touch||(document.createTouch||(document.createTouch=function(e,t,n,i,o,r,a,s,c){return void 0!==s&&void 0!==c||(s=i-window.pageXOffset,c=o-window.pageYOffset),new xc(t,n,{pageX:i,pageY:o,screenX:r,screenY:a,clientX:s,clientY:c})}),document.createTouchList||(document.createTouchList=function(){for(var e=new Ac,t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length=arguments.length,e}),function(){for(var e=[window,document.documentElement],t=["ontouchstart","ontouchmove","ontouchcancel","ontouchend"],n=0;n<e.length;n++)for(var i=0;i<t.length;i++)e[n]&&void 0===e[n][t[i]]&&(e[n][t[i]]=null)}(),window.addEventListener("mousedown",Ec("touchstart"),!0),window.addEventListener("mousemove",Ec("touchmove"),!0),window.addEventListener("mouseup",Ec("touchend"),!0),window.addEventListener("mouseenter",Cc,!0),window.addEventListener("mouseleave",Cc,!0),window.addEventListener("mouseout",Cc,!0),window.addEventListener("mouseover",Cc,!0))}Ic.multiTouchOffset=75,Ic.ignoreTags=["TEXTAREA","INPUT","SELECT"],Ic.template=function(e){var t="translate("+(e.clientX-15)+"px, "+(e.clientY-15)+"px)";return{position:"fixed",left:0,top:0,background:"#fff",border:"solid 1px #999",opacity:.6,borderRadius:"100%",height:"30px",width:"30px",padding:0,margin:0,display:"block",overflow:"hidden",pointerEvents:"none",webkitUserSelect:"none",mozUserSelect:"none",userSelect:"none",webkitTransform:t,mozTransform:t,transform:t,zIndex:100}};var Nc,Pc=Ic;function Oc(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Oc(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function Rc(e){window.__pageFrameEndTime__?e():document.addEventListener("generateFuncReady",e)}Nc=window,["webkitAnimationStart","webkitAnimationIteration","webkitAnimationEnd","animationstart","animationiteration","animationend","webkitTransitionEnd","transitionend"].forEach((function(e){"webkit"===e.slice(0,6)&&(e=e.slice(6).toLowerCase()),Nc.addEventListener(e,(function(t){var n;t.target.__wxElement&&ftparser.triggerEvent(t.target.__wxElement,e,{animationName:(n=t).animationName,elapsedTime:n.elapsedTime}),document.dispatchEvent(new CustomEvent("pageReRender",{}))}),!0)})),function(e){var t={},n={},i={onTouchStart:"tap",onTouchMove:"touchmove",onTouchEnd:"touchend",onTouchCancel:"touchcancel"};function o(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];t[e]&&t[e].length&&t[e].forEach((function(e){e.apply(null,i)}))}function a(e,n){t[e]=t[e]||[],t[e].push(n)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=t,c=s.viewId,l=s.type;if("TextView"===l||"ImageView"===l){n[l]=n[l]||{},n[l][c]=n[l][c]||{lastTouches:[]};var u=n[l][c],d="on".concat(e),h=[],p=[];if("onTouchStart"===d){h.push.apply(h,r()(u.lastTouches));var f={x:t.touch.x,y:t.touch.y,identifier:t.touch.id};p.push(f),h.push(f)}else if("onTouchMove"===d)for(var v in u.lastTouches){var m=u.lastTouches[v],_=!1;for(var g in t.touches){var b={x:t.touches[g].x,y:t.touches[g].y,identifier:t.touches[g].id};if(b.identifier===m.identifier&&(m.x!==b.x||m.y!==b.y)){h.push(b),p.push(b),_=!0;break}}_||h.push(m)}else if("onTouchEnd"===d){var y={x:t.touch.x,y:t.touch.y,identifier:t.touch.id};for(var w in u.lastTouches){var x=u.lastTouches[w];x.identifier===y.identifier?p.push(y):h.push(x)}}else if("onTouchCancel"===d)for(var A in t.touches){var C={x:t.touches[A].x,y:t.touches[A].y,identifier:t.touches[A].id};p.push(C)}u.lastTouches=h,o("on".concat(l).concat(e),{type:i["on".concat(e)],viewId:c,touches:h,changedTouches:p,data:s},a)}}a("onTouchStart",(function(e,t){s("TouchStart",e,t)})),a("onTouchMove",(function(e,t){s("TouchMove",e,t)})),a("onTouchEnd",(function(e,t){s("TouchEnd",e,t)})),a("onTouchCancel",(function(e,t){s("TouchCancel",e,t)})),["onCoverViewTapEvent","onCoverImageTapEvent"].forEach((function(e){FinChatJSBridge.subscribe(e,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t.touch={x:0,y:0,id:0},t.type="onCoverViewTapEvent"===e?"TextView":"ImageView",o("onTouchStart",t,n)}))})),FinChatJSBridge.subscribe("onCoverViewScrollEvent",(function(e){ftparser.triggerEvent(document,"onCoverViewScroll",{viewId:e.viewId,scrollTop:e.scrollTop},{bubbles:!0})})),e._onTouchEvent=a}(window),window,Rc((function(){function e(e,t){ftparser.triggerEvent(document,e,{eventName:t.eventName,nativeViewId:t.nativeViewId,detail:t.detail},{bubbles:!0})}T&&wd.getSystemInfo({success:function(e){wd.setSystemSize(e.screenWidth,e.screenHeight)}}),FinChatJSBridge.subscribe("onAppRouteDone",(function(){window.__onAppRouteDone=!0,ftparser.triggerEvent(document,"routeDone",{},{bubbles:!0}),document.dispatchEvent(new CustomEvent("pageReRender",{}))})),FinChatJSBridge.subscribe("setKeyboardValue",(function(e){e&&(e.data&&void 0===e.inputId&&void 0===e.value&&void 0===e.cursor&&(e=e.data),ftparser.triggerEvent(document,"setKeyboardValue",{value:e.value,cursor:e.cursor,inputId:e.inputId,keyCode:e.keyCode||void 0},{bubbles:!0}))})),FinChatJSBridge.subscribe("hideKeyboard",(function(e){ftparser.triggerEvent(document,"hideKeyboard",{},{bubbles:!0})})),FinChatJSBridge.subscribe("onKeyboardComplete",(function(e){e&&ftparser.triggerEvent(document,"onKeyboardComplete",{value:e.value,inputId:e.inputId,cursor:e.cursor},{bubbles:!0})})),FinChatJSBridge.subscribe("onTextareaLineChange",(function(e){ftparser.triggerEvent(document,"onTextareaLineChange",{inputId:e.inputId,height:e.height,heightRpx:e.heightRpx,lineCount:e.lineCount,lineHeight:e.lineHeight},{bubbles:!0})})),FinChatJSBridge.subscribe("onKeyboardConfirm",(function(e){e&&ftparser.triggerEvent(document,"onKeyboardConfirm",{value:e.value,inputId:e.inputId},{bubbles:!0})})),FinChatJSBridge.subscribe("onkeyboardheightchange",(function(e){e&&ftparser.triggerEvent(document,"onkeyboardheightchange",{value:e.value,inputId:e.inputId,height:e.height,cursor:e.cursor,duration:e.duration},{bubbles:!0})})),FinChatJSBridge.subscribe("onKeyboardShow",(function(e){e&&ftparser.triggerEvent(document,"onKeyboardShow",{value:e.value,inputId:e.inputId,height:e.height,cursor:e.cursor},{bubbles:!0})})),FinChatJSBridge.subscribe("onInputCallback",(function(e){ftparser.triggerEvent(document,"onInputCallback",{data:e.data.data,inputId:e.data.inputId},{bubbles:!0})})),Ni("").useComponet?(FinChatJSBridge.subscribe("onLivePlayerTask",(function(t){e("onLivePlayerTask",t)})),FinChatJSBridge.subscribe("onLivePusherTask",(function(t){e("onLivePusherTask",t)}))):FinChatJSBridge.subscribe("onNativeViewTask",(function(t){e("onNativeViewTask",t)})),FinChatJSBridge.subscribe("onVideoEvent",(function(e){e.eventName&&ftparser.triggerEvent(document,e.eventName,Lc(Lc({},e),{},{eventName:e.eventName,videoPlayerId:e.videoPlayerId}),{bubbles:!1})})),FinChatJSBridge.subscribe("onMapTask",(function(e){e.eventName&&ftparser.triggerEvent(document,"onMapTask",Lc(Lc({},e),{},{eventName:e.eventName,mapId:e.mapId}),{bubbles:!0})}));var t=!0,n=!1,i=window.innerWidth||window.screen.availWidth,o=null;function r(e){window.__isFullScreen||(e=e||window.innerWidth||window.screen.availWidth,__AppCode__["customStyle://hasWxss"]?window.__rpxRecalculatingFuncs__.forEach((function(t){t({width:e})})):(document.querySelector("head > style[page='app']")&&Pn(document.getElementById("appCss").innerHTML,e,window.devicePixelRatio,"app"),Pn(document.getElementById("inlineCss").innerHTML,e,window.devicePixelRatio,window.__path__)),document.dispatchEvent(new CustomEvent("pageCssUpdate",{})))}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o&&clearTimeout(o),window.__delayFullScreenUpdateCss&&!window.__isFullScreen&&e<2?o=setTimeout((function(){a(++e)}),100):(t=t||window.innerWidth)!==i?(i=t,r(t),document.dispatchEvent(new CustomEvent("windowOrientationChangeFinish",{}))):e<10&&(o=setTimeout((function(){a(++e)}),100))}wd.onAppEnterForeground((function(e){t=!0,a(0,wd.getCorrectSize().width)})),wd.onAppEnterBackground((function(e){t=!1})),wd.onPageResizeChange((function(e){setTimeout((function(){t&&(o&&clearTimeout(o),a(0))}),500)})),window.addEventListener("visibilitychange",(function(){if(!document.hidden){var e=document.querySelector("wx-tab-bar-wrapper");setTimeout((function(){n&&(r(),n=!1),e&&(e.style.display="none",e.offsetHeight,e.style.display="")}),300)}}))})),function(e){e.addEventListener("change",(function(e){ftparser.triggerEvent(e.target,"change",{value:e.target.value})}),!0),e.addEventListener("input",(function(e){ftparser.triggerEvent(e.target,"input")}),!0),e.addEventListener("load",(function(e){ftparser.triggerEvent(e.target,"load")}),!0),e.addEventListener("error",(function(e){ftparser.triggerEvent(e.target,"error")}),!0);var t=1;e.addEventListener("focus",(function(n){var i=n.timeStamp;if(!O&&i<t+100)return n.preventDefault(),n.stopImmediatePropagation(),!1;t=i,e.isIDE||ftparser.triggerEvent(n.target,"focus")}),!0),e.addEventListener("blur",(function(e){ftparser.triggerEvent(e.target,"blur")}),!0),e.requestAnimationFrame=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame,e.requestAnimationFrame||(e.requestAnimationFrame=function(e){"function"==typeof e&&setTimeout((function(){e()}),17)})}(window),function(e){var t=function(e,t,n,i){ftparser.triggerEvent(e.target,t,n,{originalEvent:e,bubbles:!0,composed:!0,capturePhase:!0,extraFields:{touches:e.touches,changedTouches:e.changedTouches}}),i&&i()},n=!1,i=0,o=0,r=0,a=0,s=null,c=!1;wd.onAppEnterForeground((function(e){i=0,n=!1}));var l=function(){t(a,"longtap",{x:o,y:r}),t(a,"longpress",{x:o,y:r},(function(){n=!0})),h(a)},u=function(e,l,u,d){i&&(i=0,s&&(clearTimeout(s),s=null),d?(l=o,u=r):(c||n||(t(a,"tap",{x:l,y:u}),h(a)),n=!1))};e.addEventListener("scroll",(function(e){e.target.__wxScrolling=v()()}),{capture:!0,passive:!1}),document.addEventListener("touchstart",(e=>{})),e.addEventListener("touchstart",(function(e){t(e,"touchstart"),1===e.touches.length&&function(e,n,u){i||(i=e.timeStamp||v()(),o=n,r=u,function(e){for(;e;e=e.parentNode){var t=e.__wxElement||e;if(t.__wxScrolling&&v()()-t.__wxScrolling<50)return!0}return!1}(e.target)?(s=null,c=!0,t(e,"canceltap",{x:n,y:u})):(s=setTimeout(l,350),c=!1),a=e,e.defaultPrevented&&(s&&(clearTimeout(s),s=null),i=0))}(e,e.touches[0].pageX,e.touches[0].pageY)}),{capture:!0,passive:!1}),e.addEventListener("touchmove",(function(e){var n,l;t(e,"touchmove"),1===e.touches.length&&(n=e.touches[0].pageX,l=e.touches[0].pageY,i&&(Math.abs(n-o)<10&&Math.abs(l-r)<10||(s&&(clearTimeout(s),s=null),c=!0,t(a,"canceltap",{x:n,y:l}))))}),{capture:!0,passive:!1}),e.addEventListener("touchend",(function(e){t(e,"touchend"),e.touches&&0!==e.touches.length||u(0,e.changedTouches[0].pageX,e.changedTouches[0].pageY)}),{capture:!0,passive:!1}),e.addEventListener("touchcancel",(function(e){t(e,"touchcancel"),u(0,0,0,!0)}),{capture:!0,passive:!1}),(I||P)&&Pc();var d={},h=function(e){if(d.selector)for(var t=function(e,t){if(e.tagName&&0===e.tagName.indexOf("WX-")){var n=e.className.split(" ").map((function(e){return"."+e}));["#"+e.id].concat(n).forEach((function(n){t.indexOf(n)>-1&&p(e,n)}))}e=e.parentNode,i=e},n=d.selector,i=e.target;i;)t(i,n)},p=function(e,t){for(var n=function(){var n=d.data[i];if(n.element===t){var o={eventID:n.eventID,page:n.page,element:n.element,action:n.action,time:v()()};return 0===t.indexOf(".")&&(o.index=Array.prototype.indexOf.call(document.body.querySelectorAll(n.element),e)),Rc((function(){FinChatJSBridge.publish("analyticsReport",{data:o})})),1}},i=0;i<d.data.length&&!n();i++);};Rc((function(){FinChatJSBridge.subscribe("analyticsConfig",(function(e){"[object Array]"===Object.prototype.toString.call(e.data)&&(d.data=e.data,d.selector=[],d.data.forEach((function(e){e.element&&d.selector.push(e.element)})))}))}))}(window);var Mc={"ad-custom":["unit-id","ad-intervals"],ad:["unit-id","ad-intervals","ad-type","ad-theme"],audio:["src","loop","controls","poster","name","author"],button:["size","type","plain","disabled","loading","form-type","open-type","lang","session-from","send-message-title","send-message-path","send-message-img","app-parameter","show-message-card"],camera:["mode","resolution","device-position","flash","frame-size"],canvas:["type","canvas-id","disable-scroll"],checkbox:["value","disabled","checked","color"],editor:["read-only","placeholder","show-img-size","show-img-toolbar","show-img-resize"],form:["report-submit","report-submit-timeout"],"functional-page-navigator":["version","name","args"],icon:["type","size","color"],input:["value","type","password","placeholder","placeholder-style","placeholder-class","disabled","maxlength","cursor-spacing","auto-focus","focus","confirm-type","always-embed","confirm-hold","cursor","selection-start","selection-end","adjust-position","hold-keyboard","safe-password-cert-path","safe-password-length","safe-password-time-stamp","safe-password-nonce","safe-password-salt","safe-password-custom-hash"],label:["for"],"live-player":["src","mode","autoplay","muted","orientation","object-fit","background-mute","min-cache","max-cache","sound-mode","auto-pause-if-navigate","auto-pause-if-open-native","picture-in-picture-mode"],"live-pusher":["url","mode","autopush","muted","enable-camera","auto-focus","orientation","beauty","whiteness","aspect","min-bitrate","max-bitrate","audio-quality","waiting-image","waiting-image-hash","zoom","device-position","background-mute","mirror","remote-mirror","local-mirror","audio-reverb-type","enable-mic","enable-agc","enable-ans","audio-volume-type","video-width","video-height","beauty-style","filter"],map:["longitude","latitude","scale","min-scale","max-scale","markers","covers","polyline","circles","controls","include-points","show-location","polygons","subkey","layer-style","rotate","skew","enable-3D","show-compass","show-scale","enable-overlooking","enable-zoom","enable-scroll","enable-rotate","enable-satellite","enable-traffic","enable-poi","enable-building","setting"],"match-media":["min-width","max-width","width","min-height","max-height","height","orientation"],"movable-area":["scale-area"],"movable-view":["direction","inertia","out-of-bounds","x","y","damping","friction","disabled","scale","scale-min","scale-max","scale-value","animation","htouchmove","vtouchmove"],"navigation-bar":["title","loading","front-color","background-color","color-animation-duration","color-animation-timing-func"],navigator:["target","url","open-type","delta","app-id","path","extra-data","version"],"open-data":["type","open-gid","lang","default-text","default-avatar"],"page-container":["show","duration","z-index","overlay","position","round","close-on-slideDown","overlay-style","custom-style"],"page-meta":["background-text-style","background-color","background-color-top","background-color-bottom","root-background-color","scroll-top","scroll-duration","page-style","page-font-size","root-font-size","page-orientation"],"picker-view":["value","indicator-style","indicator-class","mask-style","mask-class"],picker:["header-text","mode","disabled"],progress:["percent","show-info","border-radius","font-size","stroke-width","color","activeColor","backgroundColor","active","active-mode","duration"],radio:["value","checked","disabled","color"],"rich-text":["nodes","space"],"scroll-view":["scroll-x","scroll-y","upper-threshold","lower-threshold","scroll-top","scroll-left","scroll-into-view","scroll-with-animation","enable-back-to-top","enable-flex","scroll-anchoring","refresher-enabled","refresher-threshold","refresher-default-style","refresher-background","refresher-triggered","enhanced","bounces","show-scrollbar","paging-enabled","fast-deceleration"],"share-element":["key","transform","duration","easing-function"],slider:["min","max","step","disabled","value","color","selected-color","activeColor","backgroundColor","block-size","block-color","show-value"],"swiper-item":["item-id","skip-hidden-item-layout"],swiper:["indicator-dots","indicator-color","indicator-active-color","autoplay","current","current-item-id<1.9.0>","interval","duration","circular","vertical","previous-margin","next-margin","snap-to-edge","display-multiple-items","easing-function"],switch:["checked","disabled","type","color"],textarea:["value","placeholder","placeholder-style","placeholder-class","disabled","maxlength","auto-focus","focus","auto-height","fixed","cursor-spacing","cursor","show-confirm-bar","selection-start","selection-end","adjust-position","hold-keyboard","disable-default-padding","confirm-type","confirm-hold"],video:["src","duration","controls","danmu-list","danmu-btn","enable-danmu","autoplay","loop","muted","initial-time","page-gesture","direction","show-progress","show-fullscreen-btn","show-play-btn","show-center-play-btn","enable-progress-gesture","object-fit","poster","show-mute-btn","title","play-btn-position","enable-play-gesture","auto-pause-if-navigate","auto-pause-if-open-native","vslide-gesture","vslide-gesture-in-fullscreen","ad-unit-id","poster-for-crawler","show-casting-button","picture-in-picture-mode","picture-in-picture-show-progress","enable-auto-rotation","show-screen-lock-button","show-snapshot-button","show-background-playback-button","background-poster"],"voip-room":["openid","mode","device-position"],"web-view":["src"]},Bc={"scroll-view":["throttle"]};E()(Bc).forEach((function(e){for(var t=[].concat(Mc[e],Bc[e]),n=0;n<t.length;n++)for(var i=n+1;i<t.length;i++)t[n]===t[i]&&(t.splice(i,1),i--);Mc[e]=t}));var $c="mina"===wx.getPlatform(),Fc=window.isIDE;function Dc(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}window.ftparser.registerBehavior({is:"wx-base",properties:{hidden:{type:Boolean,public:!0},ariaHidden:{type:String,public:!0},ariaLabel:{type:String,public:!0},ariaRole:{type:String,public:!0,filter:"ariaRoleChanged"},ariaChecked:{type:String,public:!0},ariaDisabled:{type:String,public:!0},ariaLabelledby:{type:String,public:!0},ariaDescribedby:{type:String,public:!0},ariaExpanded:{type:String,public:!0},ariaHaspopup:{type:String,public:!0},ariaSelected:{type:String,public:!0},ariaRequired:{type:String,public:!0},ariaOrientation:{type:String,public:!0},ariaValuemin:{type:Number,public:!0},ariaValuemax:{type:Number,public:!0},ariaValuenow:{type:Number,public:!0},ariaReadonly:{type:String,public:!0},ariaMultiselectable:{type:String,public:!0},ariaControls:{type:String,public:!0},ariaModal:{type:String,public:!0},ariaLive:{type:String,public:!0},ariaAtomic:{type:Boolean,public:!0},ariaRelevant:{type:String,public:!0},tabindex:{type:Number,public:!0},enableSelection:{type:Boolean,public:!0},disableSelection:{type:Boolean,public:!0}},observers:{"**":function(){}},attached:function(){},listeners:{tap:"_elementClickReport"},methods:{_elementClickReport:function(e){var t={"VIDEO-CONTROLLER":"video",MAP:"map"};if(__wxConfig__.needReportElementClick){var n=this.is.slice(3),i=this.__id,o=this.dataset.name||"",r=this.dataset;if(!e.__reported){e.__reported=!0;var a="";if(r.content)a=r.content;else if(["wx-input","wx-textarea"].includes(this.is))a=this.value;else{var s;a=null==this||null===(s=this.$$)||void 0===s?void 0:s.innerText}if(k&&null!=e&&e.touches&&e.touches.length>0&&e.touches[0].target&&t[e.touches[0].target.nodeName]){var c=e.touches[0].target;n=t[e.touches[0].target.nodeName],i=c.id,o=c.name,r=c.dataset,a=c.innerText}(a=a.trim()).length>100&&(a=a.slice(0,100)+"...");var l={page:window.__path__,latestScene:"",timestamp:v()(),elementContent:a,elementType:this.dataset.type?this.dataset.type:n,elementId:i,elementName:o};Mn.invoke("elementClick",l)}}},ariaRoleChanged:function(e){this.$$.setAttribute("role",e)},getNodeId:function(){return this.__nodeId=this.__nodeId||(this.ownerShadowRoot?__virtualDOM__.getNodeId(this.ownerShadowRoot.__wxHost):""),this.__nodeId},debounce:function(e,t,n){var i=this;this.__debouncers=this.__debouncers||{},this.__debouncers[e]&&clearTimeout(this.__debouncers[e]),this.__debouncers[e]=setTimeout((function(){"function"==typeof t&&t(),i.__debouncers[e]=void 0}),n)},getPluginId:function(){if(!this.ownerShadowRoot)return"";for(var e=this.ownerShadowRoot.__wxHost,t=ftparser.Component.getComponentOptions(e).domain;"//"===t;){if(!e.ownerShadowRoot)return"";e=e.ownerShadowRoot.__wxHost,t=ftparser.Component.getComponentOptions(e).domain}return"/"===t?"":t},getRealRoute:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!/^(http|https):\/\//.test(e)&&!/^\s*data:image\//.test(e)&&($c||!/^hyfile:\/\//.test(e)))if(this.ownerShadowRoot){var n=this.ownerShadowRoot.__wxHost.__componentOptions.domain;if(n&&"/"!==n&&-1===n.indexOf("simple://")){var i=this.ownerShadowRoot.__wxHost.is.replace(/^plugin-private:\/\/wx[^/]+\//,""),o=n.split("/")[0];if($c){var r="".concat(window.__RUNTIME_GLOBAL.baseUrl,"/program/").concat(__wxConfig.accountInfo.appId,"/").slice(1);e="".concat(r).concat(__virtualDOM__.getPluginRoutePrefix(o)).concat(wx.getRealRoute(i,e).replace(r,""))}else e=__virtualDOM__.getPluginRoutePrefix(o)+wx.getRealRoute(i,e)}else{var a=(window.__subPackages||__wxConfig.subPackages||[]).filter((function(e){return 0===(window.__route__||"").indexOf(e.root)})),s=a[0]&&a[0].root||"",c=a[0]&&a[0].allExtendedComponents||[],l=this.ownerShadowRoot.__wxHost.is;l.startsWith("plugin-private://")&&(l=l.replace("plugin-private://","__plugin__/")),l=c.indexOf(l)>-1?s+l:l,e=wx.getRealRoute(l,e)}Fc?e="".concat(e):$c&&(e=window.__RUNTIME_GLOBAL.handleWxaUrl("/"+e))}else Fc||$c||!t||(e=wx.getRealRoute(t,e));return e},bindMethod:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){e["bind".concat(t)]=""})),this._eventHandlers={},__virtualDOM__.setEventHandlerChangeListener(this,(function(n,i){e._eventHandlers[n]=i,t.indexOf(n)>=0&&(e["bind".concat(n)]=i)}))},reportMediaComponentStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.evtId,e.evtNote,e.src}}}),n(655),n(656),n(657),window.ftparser.registerBehavior({is:"wx-hover",properties:{hoverStartTime:{type:Number,value:50,public:!0},hoverStayTime:{type:Number,value:400,public:!0},hoverClass:{type:String,value:"",public:!0,observer:"_hoverClassChange"},hoverStopPropagation:{type:Boolean,value:!1,public:!0,observer:"_hoverStopChange"},hover:{type:Boolean,value:!1,public:!0,observer:"_hoverChanged"}},created:function(){this._defaultHoverClass="",this._hoverClass=[]},attached:function(){var e=this;setTimeout((function(){(e.hoverClass||e._defaultHoverClass)&&"none"!==e.hoverStyle&&"none"!==e.hoverClass&&e._hoverClassChange(e.hoverClass)}),0)},detached:function(){this.unbindHover()},methods:{isScrolling:function(){for(var e=this.$$;e;e=e.parentNode){var t=e.__wxElem||e;if(t.__wxScrolling&&v()()-t.__wxScrolling<50)return!0}return!1},_hoverChanged:function(e){e?this.bindHover():this.unbindHover()},_hoverClassChange:function(e){e&&(this._defaultHoverClass="");var t=e.split(/\s/);if(this._hoverClass=[],"none"!==e||this.hoverStopPropagation){for(var n=0;n<t.length;n++)t[n]&&this._hoverClass.push(t[n]);this.bindHover()}else this.unbindHover()},_hoverStopChange:function(e){"none"!==e||this.hoverStopPropagation?this.bindHover():this.unbindHover()},bindHover:function(){this._bindHover||(this._bindHover=!0,this.addListener("touchstart",this.hoverTouchStart),this.addListener("canceltap",this.hoverCancel),this.addListener("touchcancel",this.hoverCancel),this.addListener("touchend",this.hoverTouchEnd))},unbindHover:function(){this._bindHover&&(this._bindHover=!1,this.removeListener("touchstart",this.hoverTouchStart),this.removeListener("canceltap",this.hoverCancel),this.removeListener("touchcancel",this.hoverCancel),this.removeListener("touchend",this.hoverTouchEnd))},hoverTouchMove:function(){this.hoverCancel()},hoverTouchStart:function(e){var t=this;if(!this.isScrolling()&&!e._hoverPropagationStopped)if(this.hoverStopPropagation&&(e._hoverPropagationStopped=!0),this._hoverTouch=!0,"none"===this.hoverStyle||"none"===this.hoverClass||this.disabled);else{if(e.touches.length>1)return;this._hoverStyleTimeId=setTimeout((function(){if(t._hovering=!0,t._defaultHoverClass)t.$$.classList.toggle(t._defaultHoverClass,!0);else if(t._hoverClass.length>0)for(var e=0;e<t._hoverClass.length;e++)t.classList.toggle(t._hoverClass[e],!0);t._updateNativeCoverHover&&t._updateNativeCoverHover(),t._hoverTouch||window.requestAnimationFrame((function(){clearTimeout(t._hoverStayTimeId),t._hoverStayTimeId=setTimeout((function(){t._hoverReset()}),t.hoverStayTime)}))}),this.hoverStartTime)}},hoverTouchEnd:function(){var e=this;this._hoverTouch=!1,this._hovering&&window.requestAnimationFrame((function(){clearTimeout(e._hoverStayTimeId),e._hoverStayTimeId=setTimeout((function(){e._hoverReset()}),e.hoverStayTime)}))},hoverCancel:function(){this._hoverTouch=!1,clearTimeout(this._hoverStyleTimeId),this._hoverStyleTimeId=void 0,this._hoverReset()},_hoverReset:function(){if(this._hovering)if(this._hovering=!1,"none"===this.hoverStyle||"none"===this.hoverClass);else if(this._defaultHoverClass)this.$$.classList.toggle(this._defaultHoverClass,!1),this._updateNativeCoverHover&&this._updateNativeCoverHover();else if(this._hoverClass.length>0){for(var e=0;e<this._hoverClass.length;e++)this.classList.contains(this._hoverClass[e])&&this.classList.toggle(this._hoverClass[e],!1);this._updateNativeCoverHover&&this._updateNativeCoverHover()}}}}),n(658),n(659),n(660),n(661),n(662);var jc=1e3;function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}window.ftparser.registerBehavior({is:"wx-native",properties:{hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"},_isReady:{type:Boolean,value:!1},_deferred:{type:Array,value:[]},_isError:{type:Boolean,value:!1},_box:{type:Object,value:{left:0,top:0,width:0,height:0}}},created:function(){this._id=jc++,this._nativeId="native-"+String(v()()).slice(-5)+"-"+this._id},attached:function(){},moved:function(){},detached:function(){this._observerCoverView&&this._observerCoverView.disconnect(),this.__pageReRenderForCoverView&&document.removeEventListener("pageReRender",this.__pageReRenderForCoverView),this._insertTimer&&clearTimeout(this._insertTimer)},methods:{_isiOS:function(){var e=window.navigator.userAgent.toLowerCase();return/(iphone|ipad)/.test(e)},_isAndroid:function(){var e=window.navigator.userAgent.toLowerCase();return/android/.test(e)},_isMobile:function(){return this._isiOS()||this._isAndroid()},_getFixed:function(){try{var e=window.getComputedStyle(this.$$);if(this._fixed="fixed"===e.position,!this._fixed)for(var t=this.parentNode.$$;t&&"BODY"!==t.tagName;){var n=window.getComputedStyle(t);if(this._fixed="fixed"===n.position,this._fixed)break;t=t.parentNode}}catch(e){console.log(e)}},_getBox:function(){var e=this.$$.getBoundingClientRect(),t=this._fixed?e.top:e.top+window.scrollY,n={left:this._fixed?e.left:e.left+window.scrollX,top:t,width:this.$$.offsetWidth,height:this.$$.offsetHeight};return void 0!==this._fixed&&(n.fixed=this._fixed),n},_getCurrentZIndex:function(e){try{e=e||window.getComputedStyle(this.$$);var t=Number(e.zIndex)||0;return Math.min(t,1e6)}catch(e){}return 0},_getOffset:function(){var e=this.$$,t=e.parentNode,n=function(e,t){return e.offsetParent===t?{offsetLeft:e.offsetLeft,offsetTop:e.offsetTop}:{offsetLeft:e.offsetLeft-t.offsetLeft,offsetTop:e.offsetTop-t.offsetTop}};if(!e.offsetParent)return{offsetLeft:e.offsetLeft,offsetTop:e.offsetTop};if(this._calcIsInButton()&&!t.offsetParent)return this.fixed=!0,{offsetLeft:t.offsetLeft,offsetTop:t.offsetTop};for(var i={offsetTop:0,offsetLeft:0};t&&e;){var o=n(e,t),r=o.offsetTop,a=o.offsetLeft;if(i.offsetTop+=r,i.offsetLeft+=a,t.__wxElement&&this._isNativeElement(t.__wxElement)||this._isSpecialScene(t))break;t=(e=t).parentNode}return i},_isSpecialScene:function(e){return!(!window.__isFullScreen||!e.classList.contains("wx-video-slot"))||"HTML"===e.tagName},_isNativeElement:function(e){return e instanceof ftparser.Component&&(e.hasBehavior("wx-map")||e.hasBehavior("wx-video")||e.hasBehavior("wx-canvas")||e.hasBehavior("wx-camera")||e.hasBehavior("wx-live-player")||e.hasBehavior("wx-live-pusher")||e.hasBehavior("wx-voip-room")||e.hasBehavior("wx-native-view")||e.hasBehavior("wx-input")||e.hasBehavior("wx-textarea")||e.hasBehavior("wx-keyboard-accessory")||e.hasBehavior("wx-cover-view"))},_diff:function(){var e=this._getBox();for(var t in e)if(e[t]!==this._box[t])return!0;return!1},_ready:function(){this._isReady=!0,this._deferred.forEach((function(e){this[e.callback].apply(this,e.args)}),this),this._deferred=[]},hiddenChanged:function(e,t){this._isError||(this._isReady?"function"==typeof this._hiddenChanged&&this._hiddenChanged(e,t):this._deferred.push({callback:"hiddenChanged",args:[e,t]}))},_pageReRenderCallback:function(){this._isError||this._diff()&&(this._box=this._getBox(),this._updatePosition())},_pageReRenderForCoverView:function(e,t){var n=this;window.requestAnimationFrame((function(){n._coverViewUpdated&&n.traverseAndGenerate(e,t),n._coverViewUpdated=!1}))},findCoverView:function(e,t){var n=this;this.traverseAndGenerate(e,t),this._observerCoverView=new MutationObserver((function(e){n._coverViewUpdated=!0,e.some((function(e){return e.addedNodes.length!==e.removedNodes.length}))&&n.__pageReRenderForCoverView()})),this._observerCoverView.observe(this.$$,{childList:!0,subtree:!0}),this.__pageReRenderForCoverView=this._pageReRenderForCoverView.bind(this,e,t),document.addEventListener("pageReRender",this.__pageReRenderForCoverView)},traverseAndGenerate:function(e,t){!function e(t,n,i,o){var r,a=t instanceof ftparser.Component,s=a&&t.__component__,c="slot"===t.is,l=a&&t.hasBehavior("wx-button")&&t.native;r=s||c||l?t.__slotChildren||[]:t.childNodes||[];for(var u=function(){var t=r[d],a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Dc(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({},o);a.noNeedToInsert=o.noNeedToInsert||"callout"===t.__slot,t instanceof ftparser.Component&&(t.hasBehavior("wx-cover-view")||t.hasBehavior("wx-cover-image"))?t.insertNativeCoverView(n,i,a,(function(n){e(t,n,t,a)})):e(t,n,i,a)},d=0;d<r.length;d++)u()}(this,e,this,t)},insertNativeView:function(e,t,n){var i=this;this.insertContainer((function o(){t.cid=i._cid,FinChatJSBridge.invoke(e,t,(function(t){if(i._cid&&/:fail/.test(t.errMsg)&&("wx-live-pusher"!==i.is||1107001!==t.errno))return i.retry<10?(i._insertTimer=setTimeout((function(){o()}),20*i.retry),void i.retry++):("insertVideoPlayer"===e?(i.oldCid=i._cid,i._cid=void 0):i.removeContainer(),void o());/:ok/.test(t.errMsg)&&(i.insertSuccess=!0,i._ready()),"function"==typeof n&&n.call(i,t)}))}))},updateNativeView:function(e,t,n){t.cid=this._cid||this.oldCid,FinChatJSBridge.invoke(e,t,(function(e){"function"==typeof n&&n(e)}))},removeNativeView:function(e,t,n){var i=this;t.cid=this._cid,FinChatJSBridge.invoke(e,t,(function(e){"function"==typeof n&&n.call(i,e)}))},insertContainer:function(e){var t=(this.is||"").replace("wx-","").replace(/-([a-z])/g,(function(e,t){return t?t.toUpperCase():t}));if(Boolean(Ii()[t])){var n=this._cid=this._nativeId;this.retry=0;var i=this.$.container&&this.$.container.$$,o=0;if(i){i.setAttribute("cid",n);var r=i.getAttribute("class")||"";i.setAttribute("class","tongceng_fcid_".concat(n," ").concat(r)),o=i.offsetHeight+1}var a=this.$.inner&&this.$.inner.$$;a&&(a.setAttribute("style","width: 101%;height: 101%;"),a.style.height=o+"px")}else this.removeContainer();return"function"==typeof e&&e()},removeContainer:function(){try{var e=this._cid;this._cid="";var t=this.$.container&&this.$.container.$$;t&&(t.removeAttribute("cid"),t.classList.remove("tongceng_fcid_".concat(e)));var n=this.$.inner&&this.$.inner.$$;n&&n.setAttribute("style","position: relative;display: none;z-index: -1;"),window.isIDE&&"wx-map"===this.is&&(this._cid=e)}catch(e){console.error(e)}},findKeyboardAccessory:function(){(this.childNodes||[]).forEach((function(e){e.hasBehavior&&e.hasBehavior("wx-keyboard-accessory")&&e.initKeyboardAccessory()}))},computKeyboardAccessoryHeight:function(){var e=0;return(this.childNodes||[]).forEach((function(t){t.hasBehavior&&t.hasBehavior("wx-keyboard-accessory")&&(e=t.$$.offsetHeight)})),e}}});var qc=window.navigator.userAgent.toLowerCase().indexOf("ipad")>=0,Hc=window.screen&&window.screen.width||window.innerWidth,Uc=window.screen&&window.screen.height||window.innerHeight,Wc=!1;window.ftparser.registerBehavior({is:"wx-player",properties:{src:{type:String,observer:"_srcChanged",public:!0},poster:{type:String,observer:"_posterChanged",public:!0},playing:{type:Boolean,value:!1},_buttonType:{type:String,value:"play"},_currentTime:{type:String,value:"00:00"},_duration:{type:String,value:"00:00"},_isLive:{type:Boolean,value:!1},isBackground:{type:Boolean,value:!1},stopped:{type:Boolean,value:!0},paused:{type:Boolean,value:!0}},listeners:{"this.touchstart":"_stopPropagation","this.touchmove":"_stopPropagation","this.touchend":"_stopPropagation","this.touchcancel":"_stopPropagation"},created:function(){Wc||(Wc=!0,wx.getSystemInfo({success:function(e){Hc=e.screenWidth,Uc=e.screenHeight}}))},attached:function(){var e=this;this._nodeChangeSet=new Nn.a,this._fullscreenChangeId=ftparser.addListenerToElement(document,"onVideoFullscreenChange",(function(t){e._toggleFullscreen(t.detail)})),this.__windowResizeHandler=this._windowResizeHandler.bind(this),this.__windowOrientationHandler=this._windowOrientationHandler.bind(this),document.addEventListener("windowResize",this.__windowResizeHandler),document.addEventListener("windowOrientationChangeFinish",this.__windowOrientationHandler)},detached:function(){ftparser.removeListenerFromElement(document,"onVideoFullscreenChange",this._fullscreenChangeId),document.removeEventListener("windowResize",this.__windowResizeHandler),document.removeEventListener("windowOrientationChangeFinish",this.__windowOrientationHandler)},methods:{_stopPropagation:function(e){this._isFullScreen&&e.stopPropagation()},_formatTime:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e===1/0)return"00:00";e=Math.floor(e);var n=Math.floor(e/3600),i=Math.floor((e-3600*n)/60),o=e-3600*n-60*i;return 0!==n&&t?"".concat(n>=10?n:"0"+n,":").concat(i>=10?i:"0"+i,":").concat(o>=10?o:"0"+o):"".concat((i+=60*n)>=10?i:"0"+i,":").concat(o>=10?o:"0"+o)},_publish:function(e,t){this.triggerEvent(e,t)},_updatePosition:function(e,t,n){if(!(window.__isFullScreen&&"CAUSED_BY_RESIZE"===n||this.hidden||window.__isFullScreen&&!this._isFullScreen)){var i=this._box;["wx-video","wx-live-player"].indexOf(this.is)>-1&&this._isFullScreen&&(i={top:0,left:0},"vertical"===this._direction?(i.width=Hc,i.height=Uc):(i.width=Uc,i.height=Hc));var o={};o.position=i,"number"==typeof e&&(o.parentId=e),"number"==typeof this._zIndex&&(o.zIndex=this._zIndex),this._update(o)}},_resolveChildCoverIDs:function(e){for(var t=this,n=[],i=e;i;i=i.childNodes)i.hasBehavior&&i.hasBehavior("wx-native-cover")&&void 0!==i.getPositioningId&&n.push(i.getPositioningId()),i.childNodes&&i.childNodes.length>0&&n.push.apply(n,r()(this._resolveChildCoverIDs(i.childNodes))),i.__wxSlotChildren&&i.__wxSlotChildren.length>0&&i.__wxSlotChildren.forEach((function(e){n.push.apply(n,r()(t._resolveChildCoverIDs(e)))}));return n},_getFullScreenWdithHeight:function(e,t,n){var i,o;return"horizontal"===e?(i=Math.max(n,t),o=Math.min(n,t)):(i=Math.min(n,t),o=Math.max(n,t)),[i,o]},_toggleFullscreen:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="function"==typeof this._canToggleFullscreen&&this._canToggleFullscreen(e);if(n||i)if(window.__isFullScreen=this._isFullScreen=e.fullScreen,Wc&&Hc&&Uc){if(Ii().video){var o,r;if(e.screenHeight&&e.screenWidth)o=e.screenWidth,r=e.screenHeight;else{var a=this._getFullScreenWdithHeight(e.direction,Hc,Uc),s=p()(a,2);o=s[0],r=s[1]}if(k&&this._videoId){var c=this.$.container.$$,l=this.$.container.$$.querySelector("video-player"),u=this.$.container.$$.querySelector("video-controller"),d=this.$.container.$$.querySelector(".background"),h=this.$.container.$$.querySelector(".poster");if(e.fullScreen){d.style.display="block",l.style.position="fixed",l.style.zIndex=1e8,u.style.position="fixed",u.style.zIndex=100000001,h.style.position="fixed",h.style.zIndex=100000001,c.style.width=o+"px",c.style.height=r+"px",d.style.width=o+"px",d.style.height=r+"px";var f=l.getAttribute("data-width-fullscreen"),v=l.getAttribute("data-height-fullscreen");f&&v&&(l.style.width=f+"px",l.style.height=v+"px")}else{d.style.display="none",d.style.width="0px",d.style.height="0px",l.style.position="absolute",l.style.zIndex=0,h.style.position="absolute",h.style.zIndex=0,u.style.position="absolute",u.style.zIndex=0,c.style.width="100%",c.style.height="100%";var m=l.getAttribute("data-width"),_=l.getAttribute("data-height");if(m&&_)l.style.width=m+"px",l.style.height=_+"px";else{var g=this._box,b=g.width,y=g.height;l.style.width=b+"px",l.style.height=y+"px"}}}else if(this._videoId&&T){var w=this.$.container.$$;e.fullScreen?(w.style.position="fixed",w.style.top=0,w.style.left=0,w.style.zIndex=1e8,w.style.width=o+"px",w.style.height=r+"px",FinChatJSBridge.invoke("updateVideoPlayerFullScreen",{videoPlayerId:this._videoId,width:o,height:r},(function(){}))):(w.style.position="absolute",w.style.zIndex="",w.style.width="",w.style.height="",w.getBoundingClientRect(),setTimeout((function(){FinChatJSBridge.invoke("updateVideoPlayerFullScreen",{videoPlayerId:t._videoId},(function(){}))}),20))}var x=null;for(n?x=this._targetParentNode:(x=this.$$,e.fullScreen&&(this._targetParentNode=x.parentNode));x&&x!==document.body;){if(e.fullScreen&&!this._nodeChangeSet.has(x)){x.__originalZIndex=x.style.zIndex,x.__originalOverflow=x.style.overflow,x.__originalOverflowX=x.style.overflowX,x.__originalOverflowY=x.style.overflowY,x.__originalTransform=x.style.transform,x.__originalPosition=x.style.position,x.__originalAnimationName=x.style.animationName,x.__originalAnimationDuration=x.style.animationDuration,x.__originalWebkitTransform=x.style.webkitTransform,x.__originalWebkitAnimationName=x.style.webkitAnimationName,x.__originalWebkitAnimationDuration=x.style.webkitAnimationDuration;var A=window.getComputedStyle(x).position;x.style.setProperty("position","static"===A?"relative":A,"important"),x.style.setProperty("z-index","100000000","important"),x.style.setProperty("overflow","visible","important"),x.style.setProperty("transform","none","important"),x.style.setProperty("animation-name","none","important"),x.style.setProperty("animation-duration","0","important"),x.style.setProperty("-webkit-transform","none","important"),x.style.setProperty("-webkit-animation-name","none","important"),x.style.setProperty("-webkit-animation-duration","0","important"),this._nodeChangeSet.add(x)}x.__wxElement&&x.__wxElement instanceof ftparser.Component&&(x.__wxElement.hasBehavior("wx-scroll-view")||x.__wxElement.hasBehavior("wx-swiper"))&&x.__wxElement.handleFullscreenIfNeeded(e.fullScreen),x=x.parentNode}e.fullScreen||(this._nodeChangeSet.forEach((function(t){t.style.zIndex=0,t.style.overflow="visible",t.style.transform="none",t.style.animationName="none",t.style.animationDuration=0,t.style.zIndex=t.__originalZIndex||"",t.style.overflow=t.__originalOverflow||"",t.style.overflowX=t.__originalOverflowX||"",t.style.overflowY=t.__originalOverflowY||"",t.style.transform=t.__originalTransform||"",t.style.animationName=t.__originalAnimationName||"",t.style.webkitTransform=t.__originalWebkitTransform||"",t.style.webkitAnimationName=t.__originalWebkitAnimationName||"",t.style.position=t.__originalPosition||"",setTimeout((function(){t.style.animationDuration=t.__originalAnimationDuration||"",t.style.webkitAnimationDuration=t.__originalWebkitAnimationDuration||""}),300),t.__wxElement&&t.__wxElement instanceof ftparser.Component&&(t.__wxElement.hasBehavior("wx-scroll-view")||t.__wxElement.hasBehavior("wx-swiper"))&&t.__wxElement.handleFullscreenIfNeeded(e.fullScreen)})),this._nodeChangeSet.clear(),this._toggleMutationObserver(e.fullScreen))}var C=this.$.slot;if(e.fullScreen)C.style.position="fixed",C.style.zIndex=100000002,qc||0===e.direction||"vertical"===e.direction?(C.style.height=Uc+"px",C.style.width=Hc+"px",this._direction="vertical"):Hc>Uc&&("horizontal"===e.direction||0!==e.direction)?(C.style.width=Hc+"px",C.style.height=Uc+"px"):(C.style.height=Hc+"px",C.style.width=Uc+"px",this._direction="horizontal"),this._needUpdate=!1,window._isDelayUpdateScrollTop=!0,Ii().video||(this._box=this._getBox(),this._updatePosition()),document.dispatchEvent(new CustomEvent("toggleCoverViewForFullscreen",{detail:{fullscreen:this._isFullScreen,videoId:this._videoId}}));else{var E="vertical"===this._direction;C.style.position="absolute",C.style.zIndex=1,C.style.height="100%",C.style.width="100%",E?(this._box=this._getBox(),this._updatePosition(),window._isDelayUpdateScrollTop=!1,document.dispatchEvent(new CustomEvent("toggleCoverViewForFullscreen",{detail:{fullscreen:this._isFullScreen,videoId:this._videoId}}))):(this._needUpdate=!0,this._updatePosition())}}else setTimeout((function(){t._toggleFullscreen(e)}),10)},_pollUpdateNativeVideo:function(){var e=this;this._pollIntvTimer&&clearInterval(this._pollIntvTimer);var t=0;this._pollIntvTimer=setInterval((function(){++t>6&&(window.clearInterval(e._pollIntvTimer),e._pollIntvTimer=null),e.updateContainerIfNeeded(null,!0,!0)}),500),this.updateContainerIfNeeded(null,!0,!0)},_toggleMutationObserver:function(e){var t=this;e?(this._mutationObserver=new MutationObserver((function(e){var n,i=function(e,t){var n=void 0!==ai.a&&e[ci.a]||e["@@iterator"];if(!n){if(A()(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vc(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?Tn()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if("attributes"===o.type&&"style"===o.attributeName){var r=o.target;t._nodeChangeSet.has(r)&&"none"!==r.style.transform&&(r.style.setProperty("z-index","100000000","important"),r.style.setProperty("overflow","visible","important"),r.style.setProperty("transform","none","important"),r.style.setProperty("animation-name","none","important"),r.style.setProperty("animation-duration","0","important"),r.style.setProperty("-webkit-transform","none","important"),r.style.setProperty("-webkit-animation-name","none","important"),r.style.setProperty("-webkit-animation-duration","0","important"))}}}catch(e){i.e(e)}finally{i.f()}})),this._mutationObserver.observe(document.body,{attributes:!0,subtree:!0})):this._mutationObserver&&this._mutationObserver.disconnect()},_windowResizeHandler:function(e){var t=this,n=e.detail;if(T&&this._insert2WebLayer&&setTimeout((function(){t.updateContainerIfNeeded(null,!0,!0)}),300),n.size){if(Hc=n.size.screenWidth,Uc=n.size.screenHeight,this._isFullScreen){var i=this.$.slot;i.style.height=Uc+"px",i.style.width=Hc+"px",this.$.container.style.height=Uc+"px",this.$.container.style.width=Hc+"px"}this._notifyScreenResize&&"function"==typeof this._notifyScreenResize&&this._notifyScreenResize({screenWidth:Hc,screenHeight:Uc,isFullscreen:this._isFullScreen})}},_startObserveInvalidPosition:function(){this._stopObserveInvalidPosition(),this.__invalidPositionObserver=this._invalidPositionObserver.bind(this),document.addEventListener("pageReRender",this.__invalidPositionObserver)},_invalidPositionObserver:function(e){if(!e||!e.detail||"CAUSED_BY_RESIZE"!==e.detail.reason){var t=(this.$.container.$$||this.$.container).getBoundingClientRect();0===t.top&&0===t.left||wx.operateVideoPlayer({videoPlayerId:this._videoId||this._playerId,type:"exitFullScreen",data:[]})}},_stopObserveInvalidPosition:function(){document.removeEventListener("pageReRender",this.__invalidPositionObserver),this.__invalidPositionObserver=null},_triggerError:function(e){this.binderror&&wx.publishPageEvent(this.binderror,{type:"error",timeStamp:v()()-this.createdTimestamp,target:{dataset:this.dataset,id:this.id,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},currentTarget:{dataset:this.dataset,id:this.id,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},detail:{errMsg:e}},this.getNodeId())},_windowOrientationHandler:function(){var e=this;this._needUpdate&&(Ii().video||(this._box=this._getBox()),this._updatePosition(),document.dispatchEvent(new CustomEvent("toggleCoverViewForFullscreen",{detail:{fullscreen:this._isFullScreen,videoId:this._videoId}})),window._isDelayUpdateScrollTop=!1,setTimeout((function(){e._needUpdate=!1}),300))}}}),n(663),window.ftparser.registerBehavior({is:"wx-positioning-target",created:function(){this._positioningId=L("positioning")},attached:function(){this.__positioningContainerReady=this.__positioningContainerReady.bind(this),this._container={},this.__getParentContainerId(this.parentNode),this._container.inContainer&&!this._container.id?(this.hasBehavior("wx-positioning-container")||this.triggerEvent("wxPositioningTargetReady",{},{bubbles:!0,composed:!0}),document.addEventListener("positioningContainerReady",this.__positioningContainerReady)):this._container.inContainer&&this._container.id&&this.__positioningContainerReady({detail:{containerId:this._container.id}})},detached:function(){document.removeEventListener("positioningContainerReady",this.__positioningContainerReady)},methods:{__positioningContainerReady:function(e){this.__checkContainerId(this.parentNode,e.detail.containerId)&&(this._container.id=e.detail.containerId,document.removeEventListener("positioningContainerReady",this.__positioningContainerReady),this.hasBehavior("wx-positioning-container")&&this.initPositioningContainer(),this._attachedCb&&this._attachedCb())},__checkContainerId:function(e,t){return!!this._container.element&&this._container.element._containerId===t},__getParentContainerId:function(e){var t=this._container;if(e&&!this._insert2WebLayer){if(e instanceof ftparser.Component&&e.hasBehavior("wx-positioning-container"))return t.inContainer=!0,t.id=e._containerId,void(t.element=e);this.__getParentContainerId(e.parentNode||e.__wxHost)}t.inContainer=!1},_setPositionTargetOffset:function(e){if(this._container&&this._container.inContainer&&this._container.element._container.box){var t=this._container.element,n=t._container.box,i=t._containerArgs;e.left=e.left-n.left+i.contentOffsetLeft,e.top=e.top-n.top+i.contentOffsetTop,t._container&&t._container.inContainer&&t._setPositionTargetOffset&&t._setPositionTargetOffset(e)}},isContainerReady:function(){return!!this.getContainerId()},getContainerId:function(){return this._container&&this._container.inContainer&&this._container.id},_requestPositioningContainer:function(){this.triggerEvent("wxAddPositionTracker",{element:this},{bubbles:!0,composed:!0})},trackPositionInDocument:function(){this._positioningSyncing&&(this._positioningSyncing=!0,this._parentPositioningContainer=document)},trackPositionInContainer:function(e){this._positioningSyncing&&(this._positioningSyncing=!0,this._parentPositioningContainer=e)},getPositioningOffset:function(){var e=this.$$.getBoundingClientRect();if(this._parentPositioningContainer===document)return{left:e.left+window.scrollX,top:e.top+window.scrollY,width:this.$$.offsetWidth,height:this.$$.offsetHeight};var t=this._parentPositioningContainer.$$.getBoundingClientRect();return{left:e.left-t.left,top:e.top-t.top,width:this.$$.offsetWidth,height:this.$$.offsetHeight}},fetchPositioningParentId:function(){return 0},getPositioningId:function(){return this._positioningId},regeneratePositioningId:function(){return this._positioningId=L("positioning"),this._positioningId}}}),window.ftparser.registerBehavior({is:"wx-positioning-container",behaviors:["wx-positioning-target"],attached:function(){},detached:function(){this.removePositioningContainer(),this._insertPositioningContainerReadyId&&(clearTimeout(this._insertPositioningContainerReadyId),this._insertPositioningContainerReadyId=null)},listeners:{"this.wxPositioningTargetReady":"positioningTargetReady"},methods:{_addPositionTracker:function(e){if(e.target!==this)return this._positioningSyncing||(this._requestPositioningContainer(),this._positioningSyncing||this.trackPositionInDocument()),e.detail.element.trackPositionInContainer(this),!1},trackPositionInDocument:function(){this._positioningSyncing||(this._positioningSyncing=!0,this._parentPositioningContainer=document,this._initPositioningContainer())},trackPositionInContainer:function(e){this._positioningSyncing&&(this._positioningSyncing=!0,this._parentPositioningContainer=e,this._initPositioningContainer())},_initPositioningContainer:function(){var e=this.getPositioningOffset(),t=this.getScrollPosition(),n=t.scrollLeft,i=t.scrollTop;this._sendContainerCreation(n,i,e)},_sendContainerCreation:function(){},_sendContainerUpdate:function(){},_sendContainerRemoval:function(){},getScrollPosition:function(){return{scrollLeft:0,scrollTop:0,scrollWidth:0,scrollHeight:0}},positioningTargetReady:function(){this._container&&!this._container.inContainer&&this.initPositioningContainer()},updateScrollPosition:function(e){if(this._positioningSyncing){var t=this.getScrollPosition(),n=t.scrollLeft,i=t.scrollTop;return!(!e&&this._prevScrollLeft===n&&this._prevScrollTop===i||(this._prevScrollLeft=n,this._prevScrollTop=i,this._sendContainerUpdate(n,i,e),0))}},triggerPositionChangeEvents:function(){__virtualDOM__.scheduleIntersectionUpdate()},_getContainerBox:function(e,t){var n=this.$$.getBoundingClientRect(),i={left:this.containerInserted?0:n.left+window.scrollX,top:this.containerInserted?0:n.top+window.scrollY,width:this.$$.offsetWidth,height:this.$$.offsetHeight};if(t)return i;var o=e||window.getComputedStyle(this.$$),r=Dt()(o.getPropertyValue("border-top-width"))||0,a=Dt()(o.getPropertyValue("border-bottom-width"))||0,s=Dt()(o.getPropertyValue("border-left-width"))||0,c=Dt()(o.getPropertyValue("border-right-width"))||0;return i.left+=this.containerInserted?0:s,i.top+=this.containerInserted?0:r,i.width-=s+c,i.height-=r+a,this._setPositionTargetOffset&&this._setPositionTargetOffset(i),i},_getContainerArguments:function(){var e=window.getComputedStyle(this.$$),t=this._getContainerBox(e);this.__removeContainerPadding(t,e),this._container||(this._container={}),this._posioningContainerInitReady=!0,this._container.box=t;var n=this.getScrollPosition(),i=this.getScrollSize&&this.getScrollSize();return i||(i={width:t.width,height:t.height}),{canFullScreenByChild:!1,containerId:this.getPositioningId(),position:{left:t.left,top:t.top,width:t.width,height:t.height},parentId:this._container.inContainer?this._container.id:this.fetchPositioningParentId(),contentOffsetLeft:n.scrollLeft||0,contentOffsetTop:n.scrollTop||0,fixed:!1,visible:1,innerWidth:i.width,innerHeight:i.height}},initPositioningContainer:function(){var e=this._getContainerArguments();this._containerArgs=e;var t=this;this._insertPositioningContainerInit=!0,wx.invoke("insertPositioningContainer",e,(function(){t._insertPositioningContainerReady=!0,t._containerId=t.getPositioningId(),document.dispatchEvent(new CustomEvent("positioningContainerReady",{detail:{containerId:t._containerId}})),t.__lastUpdatePositionArgs&&(t.updatePositioningContainer(t.__lastUpdatePositionArgs),t.__lastUpdatePositionArgs=null),t.__lastUpdateItemArgs&&t._updateItemContainer&&(t._updateItemContainer(t.__lastUpdateItemArgs.item,t.__lastUpdateItemArgs.index,t.__lastUpdateItemArgs.position),t.__lastUpdateItemArgs=null)})),this.__containerFullScreenChange=this._containerFullScreenChange.bind(this),document.addEventListener("fullScreenChange",this.__containerFullScreenChange),this.__containerPageRerender=this.__containerPageRerender.bind(this),document.addEventListener("pageReRender",this.__containerPageRerender)},updatePositioningContainer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._insertPositioningContainerReady){for(var t=0,n=E()(e);t<n.length;t++){var i=n[t];this._containerArgs[i]=e[i]}this._containerArgs.containerId=this._containerId,e.position&&(this._container.box=e.position);var o=this.getScrollSize&&this.getScrollSize();o&&(this._containerArgs.innerWidth=o.width,this._containerArgs.innerHeight=o.height),this._containerArgs.animate=e.animate?1:0,wx.invoke("updatePositioningContainer",this._containerArgs,(function(){}))}else this.__lastUpdatePositionArgs=e},removePositioningContainer:function(){wx.invoke("removePositioningContainer",{containerId:this._containerId},(function(){})),document.removeEventListener("fullScreenChange",this.__containerFullScreenChange),document.removeEventListener("pageReRender",this.__containerPageRerender)},__removeContainerPadding:function(e,t){var n=Dt()(t.getPropertyValue("padding-left")),i=Dt()(t.getPropertyValue("padding-right")),o=Dt()(t.getPropertyValue("padding-top")),r=Dt()(t.getPropertyValue("padding-bottom"));e.left+=n,e.top+=o,e.width-=n+i,e.height-=o+r},__containerPageRerender:function(){if(!window.__isFullScreen&&this._containerId){var e=window.getComputedStyle(this.$$),t=this._getContainerBox(e);this.__removeContainerPadding(t,e);var n=this.getScrollPosition();if(this._containerArgs.contentOffsetLeft!==n.scrollLeft||this._containerArgs.contentOffsetTop!==n.scrollTop||this._container.box.left!==t.left||this._container.box.top!==t.top||this._container.box.width!==t.width||this._container.box.height!==t.height){var i=this.getScrollSize&&this.getScrollSize();i||(i={width:t.width,height:t.height}),this._container.box=t;var o=this._isTransitionEnd?{position:t,contentOffsetLeft:n.scrollLeft,contentOffsetTop:n.scrollTop,innerWidth:i.width,innerHeight:i.height}:{position:t,innerWidth:i.width,innerHeight:i.height};this.updatePositioningContainer(o)}}},_containerFullScreenChange:function(e){if(e.detail.containerId===this._containerId){var t=e.detail.fullScreen?{position:{left:0,top:0,width:e.detail.width,height:e.detail.height},innerWidth:e.detail.width,innerHeight:e.detail.height,contentOffsetTop:0,contentOffsetLeft:0}:this._getContainerArguments();this.updatePositioningContainer(t)}}}});var zc=/matrix\(([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+)\)/;function Gc(){var e=[],t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(zc);if(t&&7===t.length){var n=t.slice(1),i=Dt()(n[0]),o=Dt()(n[1]),r=Dt()(n[2]),a=Dt()(n[3]);e=[i,r,Dt()(n[4]),o,a,Dt()(n[5]),0,0,1]}else e=[];return e&&0!==e.length?[1,0,e[2],0,1,e[5],0,0,1]:[]}var Yc=[],Kc={};window.ftparser.registerBehavior({is:"wx-native-cover",properties:{_fullscreen:{type:Boolean,public:!0,value:!1}},listeners:{"this.tap":"stopPropagation","this.longtap":"stopPropagation","this.longpress":"stopPropagation","this.touchstart":"stopPropagation","this.touchmove":"stopPropagation","this.touchend":"stopPropagation","this.touchcancel":"stopPropagation","this.animationstart":"animationStart","this.animationend":"animationEnd"},created:function(){var e=this;this._createdTimeStamp=v()(),this._isRoot=!1,this.__pageRerender=function(){e._attached&&!e._viewId?e._needUpdate=!0:e.updateNativeCoverView()},this._toggleCoverViewForFullscreen=this._toggleCoverViewForFullscreen.bind(this),document.addEventListener("pageReRender",this.__pageRerender),document.addEventListener("toggleCoverViewForFullscreen",this._toggleCoverViewForFullscreen),this._args={},this._propReseted=!0},attached:function(){this._attachedCb()},detached:function(){var e=this;Yc.push([this._parentId,this._viewId]),Kc[this._viewId]=this.viewName;var t=this._viewId;this._viewId=null,setTimeout((function(){e.consumeRemovingNodes(),e.removeFixedNode(t)}),0),document.removeEventListener("pageReRender",this.__pageRerender),document.removeEventListener("toggleCoverViewForFullscreen",this._toggleCoverViewForFullscreen),this._detached=!0,this._parentNode&&"function"==typeof this._parentNode.removeChildView&&this._parentNode.removeChildView(this),this._animateTimer&&clearTimeout(this._animateTimer),this.removeFullScreenListener()},methods:{_attachedCb:function(){var e=this;if(!this._attached){this._attached=!0,this._isRoot=!0;for(var t=this.parentNode;t;){if(t&&(this._isNativeElement(t)||t instanceof ftparser.Component&&t.hasBehavior("wx-button"))){this._isRoot=!1;break}t=t.parentNode||t.__virtual&&t.__wxHost}this._isRoot&&this.insertNativeCoverView(null,null,{},(function(t){e.findCoverView(t,{})}))}},_toggleCoverViewForFullscreen:function(e){var t=this;e.detail&&e.detail.videoId===this._parentId&&setTimeout((function(){t.updatePosition()}),0)},consumeRemovingNodes:function(){var e=Yc,t=Kc;if(Yc=[],Kc={},0!==e.length){var n=[];e.forEach((function(e){for(var t=e[0],i=e[1],o=0;o<n.length;o+=2)n[o]===i&&(n[o]=0,n[o+1]=0);-1!==(o=n.indexOf(t))&&o%2==1||n.push(t,i)}));for(var i=1;i<n.length;i+=2)n[i]&&!this._noNeedToInsert&&this.removeNativeView("remove".concat(t[n[i]]),{viewId:n[i]},(function(){}))}},removeFixedNode:function(e){this._fixed&&this.removeNativeView("remove"+this.viewName,{viewId:e})},addFullScreenListener:function(e){var t=this;this._addFullScreenListenerId=ftparser.addListenerToElement(document,"onVideoFullscreenChange",(function(n){var i=n.detail,o=i.fullScreen,r=i.videoPlayerId;e!==r&&(t._isOtherVideoInFullScreen=o,o?t.hidden||t.toggleHidden(!0):t.hidden||t.toggleHidden(!1))}))},removeFullScreenListener:function(){this._addFullScreenListenerId&&ftparser.removeListenerFromElement(document,"onVideoFullscreenChange",this._addFullScreenListenerId)},insertNativeCoverView:function(e,t,n,i){var o=this;if(this._isInserting)this._needUpdate=!0;else if(this._viewId)"function"==typeof i&&i(this._viewId);else{this._isInserting=!0;var r=t&&(t.hasBehavior("wx-keyboard-accessory")||t.inKeyboardAccessory);t&&t.hasBehavior("wx-video");var a=window.getComputedStyle(this.$$),s=n.noNeedToInsert;this.inKeyboardAccessory=r,this._parentId=e,this._parentNode=t,this._noNeedToInsert=s,this._box=this.getCoverViewBox(a,r),this._calcFixed(a),this._calcUsingCustomTabBar();var c=this._nativeId,l={parentId:this._fixed?"":this._parentId,viewId:c,position:this._box,style:this.getContainerStyle(a),clickable:!1,gesture:!0,sendTo:"webview",data:ce()({target:{id:this.id,offsetLeft:this.$$.offsetLeft,offsetTop:this.$$.offsetTop,dataset:this.dataset},bindscroll:this.bindscroll,timeStamp:this._createdTimeStamp,viewId:this._nativeId,type:this.viewName}),notCoverRect:!0,inKeyboardAccessory:r};l.fixed=l.style.fixed=this._fixed,l.zIndex=l.style.zIndex=this._zIndex,(this._usingCustomTabBar||this._fullscreen)&&(l.fullscreen=!0),this.insert(l,(function(e){o._needUpdate&&(o._needUpdate=!1,o.updateNativeCoverView()),t&&"function"==typeof t.addChildView&&t.addChildView(o),i(e),o._isInserting=!1}))}},updateNativeCoverView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._viewId){var t=window.getComputedStyle(this.$$);this._calcFixed(t);var n=this.getCoverViewBox(t,this.inKeyboardAccessory);if(0!==this._box.width&&0!==this._box.height||0!==n.width&&0!==n.height){this._box=n;var i={position:this._box,style:this.getContainerStyle(t),viewId:this._viewId};i.fixed=i.style.fixed=this._fixed,i.zIndex=i.style.zIndex=this._zIndex,this.update(i,e)}else this._box=n;this.animateCoverView(t)}},updatePosition:function(){var e=window.getComputedStyle(this.$$);this._box=this.getCoverViewBox(e,this.inKeyboardAccessory),this._viewId?this.update({position:this._box},!0,(function(){}),!1):this._needUpdate=!0},sendInsertEvent:function(e,t,n){this._noNeedToInsert?"function"==typeof n&&n({errMsg:"".concat(e,":ok")}):this.insertNativeView(e,t,n)},sendUpdateEvent:function(e,t,n){this._noNeedToInsert?"function"==typeof n&&n({errMsg:"".concat(e,":ok")}):this.updateNativeView(e,t,n)},animateCoverView:function(e){var t=this,n=Dt()(e.transitionDuration||e.webkitTransitionDuration),i=e.transitionProperty||e.webkitTransitionProperty;if(!n||!(/all/.test(i)||/opacity/.test(i)||/transform/.test(i)||/-webkit-transform/.test(i))){var o=this.getTranslate(e);this._lastX=o.x,this._lastY=o.y;var r=this.getRotate(e);this._lastRotate=r;var a=this.getScale(e);return this._lastScaleX=a.x,this._lastScaleY=a.y,void(this._lastOpacity=Dt()(e.opacity))}Pi?this._animateCoverView():setTimeout((function(){t._animateCoverView()}),0)},_animateCoverView:function(){var e=this;if(!O){var t=window.getComputedStyle(this.$$),n=Dt()(t.transitionDuration||t.webkitTransitionDuration),i=t.transitionProperty||t.webkitTransitionProperty;if(n&&(/all/.test(i)||/opacity/.test(i)||/transform/.test(i)||/-webkit-transform/.test(i))&&!document.webkitIsFullScreen){var o=this.$$.style.transitionProperty||this.$$.style.webkitTransitionProperty||"";this.$$.style.setProperty("transition-property","none","important"),this.$$.style.setProperty("-webkit-transition-property","none","important"),this._propReseted&&(this._propReseted=!1,window.requestAnimationFrame((function(){e.$$.style.webkitTransitionProperty="none",e.$$.style.transitionProperty="none",e.$$.style.webkitTransitionProperty=o,e.$$.style.transitionProperty=o,e._propReseted=!0})));var r=this.getTranslate(t),a=this.getRotate(t),s=this.getScale(t),c=Dt()(t.opacity),l=this._box.top-this._lastY+r.y,u=this._box.left-this._lastX+r.x,d=this._box.offsetTop-this._lastY+r.y,h=this._box.offsetLeft-this._lastX+r.x,p=!1,f=/all/.test(i),v=/transform/.test(i)||/-webkit-transform/.test(i);if(c!==this._lastOpacity&&(f||/opacity/.test(i))&&(p=!0),r.y!==this._lastY&&(f||v)&&(p=!0),r.x!==this._lastX&&(f||v)&&(p=!0),a!==this._lastRotate&&(f||v)&&(p=!0),s.x!==this._lastScaleX&&(f||v)&&(p=!0),s.y!==this._lastScaleY&&(f||v)&&(p=!0),this._lastOpacity=c,this._lastX=r.x,this._lastY=r.y,this._lastRotate=a,this._lastScaleX=s.x,this._lastScaleY=s.y,p){this._isAnimating=!0;var m={top:l,left:u,rotate:a,scaleX:s.x,scaleY:s.y,opacity:c,offsetTop:d,offsetLeft:h};FinChatJSBridge.invoke("animateCoverView",{viewId:this._scrollViewId||this._viewId,finalStyle:m,duration:1e3*n,easing:t.transitionTimingFunction},(function(){e._args.style.opacity=m.opacity,e._args.position.top=m.top,e._args.position.left=m.left,e._args.style.rotate=m.rotate,e._args.style.scaleX=m.scaleX,e._args.style.scaleY=m.scaleY,e._args.position&&(e._args.position.offsetLeft=h,e._args.position.offsetTop=d),e.triggerEvent("transitionend",{elapsedTime:n})})),this._animateTimer&&clearTimeout(this._animateTimer),this._animateTimer=setTimeout((function(){e._isAnimating=!1}),1e3*n)}}}},getCoverViewBox:function(e,t){"inline"===e.display&&(this.$$.style.display="inline-block");var n=this._getBox(e,!0),i=this._parentNode,o=window.getComputedStyle(this.$$),r=Gc(o.transform||o.webkitTransform),a=r&&r.length>0;if(!a){var s=this.$$.getBoundingClientRect();n.width=s.width,n.height=s.height}if(t&&(n.top=this.$$.offsetTop,n.left=n.left-(i._box&&i._box.left||0)),this._isRoot)null===this.$$.offsetParent?(n.offsetTop=this.$$.offsetTop,n.offsetLeft=this.$$.offsetLeft):(n.offsetTop=n.top,n.offsetLeft=n.left,a=null);else{var c=this._getOffset(),l=c.offsetTop,u=c.offsetLeft;n.offsetTop=l,n.offsetLeft=u}if(a){var d=r,h=[n.offsetLeft,n.offsetTop,1],p=[],f=h[0],v=h[1],m=h[2];p[0]=f*d[0]+v*d[1]+m*d[2],p[1]=f*d[3]+v*d[4]+m*d[5],p[2]=f*d[6]+v*d[7]+m*d[8],n.offsetTop=p[1],n.offsetLeft=p[0]}return n},getContainerStyle:function(e){var t=Dt()(e.borderRadius)||0;if(/%$/.test(e.borderRadius)){var n=t/100;t=Math.min(Math.min(this._box.width/2,this._box.width*n),Math.min(this._box.height/2,this._box.height*n))}else t=Math.min(this._box.width/2,this._box.height/2,t);var i=Dt()(e.opacity);if(void 0===this._lastOpacity&&(this._lastOpacity=i),void 0===this._lastX||void 0===this._lastY){var o=this.getTranslate(e);this._lastX=o.x,this._lastY=o.y}var r=this.getRotate(e);void 0===this._lastRotate&&(this._lastRotate=r);var a=this.getScale(e);void 0!==this._lastScaleX&&void 0!==this._lastScaleY||(this._lastScaleX=a.x,this._lastScaleY=a.y);var s=Dt()(e.paddingTop)||0,c=Dt()(e.paddingRight)||0,l=Dt()(e.paddingBottom)||0,u=Dt()(e.paddingLeft)||0,d="wx-cover-image"===this.is||this._content?[s,c,l,u]:[0,0,0,0];return this._overflowX=e.overflowX,this._overflowY=e.overflowY,{bgColor:Y(e.backgroundColor),borderRadius:t,borderWidth:Dt()(e.borderWidth)||0,borderColor:Y(e.borderColor)||"#00000000",padding:d,opacity:i,overflow:"hidden",rotate:r,scaleX:a.x,scaleY:a.y}},_calcFixed:function(e){var t=this._calcIsInButton();this._fixed=t?!this.$$.parentNode.offsetParent:"fixed"===e.position;var n=this._getCurrentZIndex(e);if(/cover-(view|image)/.test(this.is)&&this._fixed&&this._parentId?this._zIndex=(Number(this._parentNode&&this._parentNode._zIndex)||0)+n:this._zIndex=n,this._isRoot&&!this._fixed&&this._internalComp){var i=window.getComputedStyle(this.ownerShadowRoot.__wxHost.$$);this._fixed="fixed"===i.position}},_calcIsInButton:function(){var e=this.$$.parentNode;return e&&e.__wxElement&&e.__wxElement instanceof ftparser.Component&&e.__wxElement.hasBehavior("wx-button")},_calcUsingCustomTabBar:function(){if(this._usingCustomTabBar=!1,this._isRoot&&this._fixed)for(var e=this.$$;e;){var t=e.__wxElement;if(t instanceof ftparser.Component&&"custom-tab-bar/index"===t.is&&"wx://tab-bar-wrapper"===t.parentNode.is)return void(this._usingCustomTabBar=!0);e=e.parentNode}},_getOffsetWithTransform:function(e){var t=window.getComputedStyle(e),n=Gc(t.transform||t.webkitTransform);if(n&&n.length>0){var i=n,o=[e.offsetLeft,e.offsetTop,1],r=[],a=o[0],s=o[1],c=o[2];return r[0]=a*i[0]+s*i[1]+c*i[2],r[1]=a*i[3]+s*i[4]+c*i[5],r[2]=a*i[6]+s*i[7]+c*i[8],{offsetLeft:r[0],offsetTop:r[1]}}return{offsetLeft:e.offsetLeft,offsetTop:e.offsetTop}},getTranslate:function(e){return n=(t=e.transform||e.webkitTransform)&&t.match(zc)||["",1,0,0,1,0,0],{x:Number(n[5])||0,y:Number(n[6])||0};var t,n},getRotate:function(e){var t=e.transform||e.webkitTransform,n=t&&t.match(zc)||["",1,0,0,1,0,0],i=Number(n[1]),o=Number(n[2])||0;return Math.round(Math.atan2(o,i)*(180/Math.PI))||0},getScale:function(e){var t=e.transform||e.webkitTransform,n=t&&t.match(zc)||["",1,0,0,1,0,0],i=Number(n[1]),o=Number(n[2])||0,r=Number(n[3])||0,a=Number(n[4]);return i=isNaN(i)?1:i,a=isNaN(a)?1:a,{x:Math.sqrt(i*i+o*o),y:Math.sqrt(r*r+a*a)}},consoleTips:function(){},diff:function(e,t,n){var i=E()(e),o=[];if(n)return i;for(var r=0;r<i.length;r++){var a=i[r];if("[object Object]"===Object.prototype.toString.call(e[a])){if("position"===a&&this._isAnimating)continue;t&&!this.diff(e[a],t[a])||o.push(a)}else if("[object Array]"===Object.prototype.toString.call(e[a]))t&&ce()(e[a])===ce()(t[a])||o.push(a);else{if(Pi&&/^(top|left)$/.test(a))continue;var s=e&&e[a],c=t&&t[a];isNaN(s)||(s=Math.floor(1e3*s)/1e3),isNaN(c)||(c=Math.floor(1e3*c)/1e3),t&&s===c||o.push(a)}}return o.length?o:null},_handleDesktopCoverViewEvent:function(e){if(e){var t=null,n=e.touches&&e.touches[0]?{clientX:e.touches[0].x,clientY:e.touches[0].y}:{};"touchstart"===e.type?t=new MouseEvent("mousedown",Ke()({},{bubbles:!0,cancelable:!0,target:this.$$},n)):"touchend"===e.type&&(t=new MouseEvent("mouseup",Ke()({},{bubbles:!0,cancelable:!0,target:this.$$},n))),this.$$.dispatchEvent(t)}},_handleCoverViewTouch:function(e){var t=this;if(e.viewId===this._viewId){var n,i,o,r=e.type,a=this.$$.getBoundingClientRect(),s=[],c=[];["touches","changedTouches"].forEach((function(n){e[n].forEach((function(e){var i=window.scrollX+a.left+e.x,o=window.scrollY+a.top+e.y,r=i,l=o,u="touches"===n?s:c;document.createTouch?u.push(document.createTouch(window,t.$$,e.identifier,i,o,r,l)):u.push(new Touch({identifier:e.identifier,target:t.$$,pageX:i,pageY:o,screenX:r,screenY:l}))}))})),document.createTouchList&&(s=(i=document).createTouchList.apply(i,s)),document.createTouchList&&(c=(o=document).createTouchList.apply(o,c));try{n=new TouchEvent(r,{cancelable:!0,bubbles:!0,touches:s,targetTouches:[],changedTouches:c})}catch(e){(n=document.createEvent("TouchEvent")).initTouchEvent(r,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,s,document.createTouchList(),c,1,0)}this.triggerEvent(r,n,{bubbles:!0,composed:!0})}},stopPropagation:function(e){this._isRoot&&e.stopPropagation()},onFullscreenChange:function(){document.webkitIsFullScreen?(this.$.container.style.visibility="",this.$.content.style.visibility=""):(this.$.container.style.visibility="hidden",this.$.content.style.visibility="hidden")},animationUpdate:function(){var e=this;this._viewId&&(this.updateNativeCoverView(),window.cancelAnimationFrame(this.raf),this.raf=window.requestAnimationFrame((function(){return e.animationUpdate()})))},animationStart:function(){var e=this;this.raf=window.requestAnimationFrame((function(){return e.animationUpdate()}))},animationEnd:function(){window.cancelAnimationFrame(this.raf)}}}),n(664);var Xc=null,Zc=null;function Jc(e,t){e&&!e.stoped&&(e.stop(t),e.stoped=!0)}function Qc(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}function el(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e>n-t&&e<n+t}function tl(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function nl(e){this._extent=e,this._friction=new Qc(.01),this._spring=new tl(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}function il(e,t){if(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 nl(this._extent),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition(),!Zc){for(var n=window.atob("UklGRl4RAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YToRAAAPAPX/IQDT/z0AgP9mAkgBnf72/b/8qPuZ/KwA1gAXAQUBJgFNATYBWwEeAWEB2ABpAVwAxAGn94ftHO9P78DwmPHi8g/0SfWq9tT3hvtxDBoSjxFgEsAR/REWETQR1g8REL0N8g7f/wHwDvIS8uXzfvTC9bH21vcC+Qb6evsg/KP9/v3/BGAWQhn4FzMXzxWoFCUTiRH5DyIB7ev04lzqQfLB9OX1jvaF9xv4Ivnl+dH6hvt+/xwQoRXmE2kT7hH/EHUPKQ6CDO4KIAmFB7oFyAMn9srouuKT4fXkn+yx7UTwbvRsAZUI2wcbCFoHKgdgBhQGbwXeBBkEaQPGAgUCdwGIAKH/5/NY6x7riesp7XfuJPDM8aLzUfZ++r0DegsMDG4MQwxDDPQLqgs6C6MKRQkf/6H3dPZW9j/38/f2+MD5svqA+3b8Vv05/gj///8fAdgCuwUsCtAP6RMBFCETMRFWC+0EdgCU/ff76vpi+jX6fvrb+m777fu3/I39S/8cAqQIjA/ND9oOxw2ZDGALEArFCGAH/wWHBC0D0gF2AC//yP1f/I75Fveu9v736vig+E/48vem92T3OfcS9wb39vYP9yb3UPeC98H3A/hd+Jf4Avki+GD0NfLj8WvyoPMf9fj2BPlb++79xQCsA38GywgZCqgK2Ar3CSoINAZ9BDcDawIHAvcBGAJdArMCDwN1A9EDNQSWBPcEdAXuBZcGTgclCAUJzAlcCowKRAqFCV8I8QZrBecDgQJOAUwAlf8T/9j+4f48//H/JgHQAh4FKgZ1BZ8EowOxArEBwADG/9/+/P8CAAAA//8CAP7/AQAAAAAAAAAAAAAA//8CAP7/AgD+/wEAAAD//wEAAQD9/wMA/v8BAAAAAAD//wIA/v8CAP3/BAD8/wQA/P8CAAAA//8CAPz/BQD7/wUA+/8EAP3/AwD9/wMA/f8DAP3/AgD//wAAAQD//wAAAAAAAAAAAAABAP7/AgD+/wEAAAABAP////8CAP7/AgD+/wIA/f8FAPr/BgD6/wUA/P8EAP3/AgD+/wEAAAD//wIA/v8BAAAA//8BAAAA//8CAP3/AwD+/wIA/v8BAP//AQAAAAAA//8CAP3/AwD/////AgD+/wEAAAAAAAAAAAAAAP//AgD//wAAAAABAP7/AwD9/wIA//8BAP7/AwD9/wEAAQD+/wIA/v8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8BAP//AgD+/wEAAAD//wEAAQD+/wMA/f8CAP//AQD//wIA/f8DAP7/AQD//wEAAAD//wEA//8AAAEAAAD//wAAAQD+/wQA+/8EAP3/AgD//wEA//8AAAAAAAAAAAEA/v8CAP3/AwD+/wEAAAD+/wMA/f8CAP//AAABAP//AAAAAAAAAQD+/wIA//8AAAAAAAAAAAAAAQD9/wMA//8AAAAAAAAAAAAAAQD+/wIAAAD+/wMA/P8DAP7/AgD/////AQD//wEAAAAAAP//AgD9/wMA/v8BAAAAAAD//wIA/f8DAP7/AgD/////AQD//wIA/v8CAP7/AQAAAAAAAAAAAAAA//8CAP7/AQD//wEA//8BAP//AQD//wEA//8CAP7/AgD+/wEAAAD//wIA/v8BAP//AAABAP//AQD//wAAAQD//wAAAQD+/wMA/f8BAAEA/v8CAAAA/f8FAPr/BgD7/wQA/f8CAP//AAABAP//AQD//wAAAQD//wEA//8AAAAAAAAAAAEA//8AAAAAAQD+/wMA/f8CAP//AQD+/wMA/f8CAP//AAABAP7/AwD8/wQA/f8CAP7/AgD+/wIAAAD+/wIA/v8CAP//AQD/////AwD8/wUA+/8EAP3/AgD//wEA/v8CAP//AQD//wEA/v8CAAAA/v8EAPv/BAD+/wEAAAD//wEA//8CAP3/BAD8/wMA/f8DAP7/AgD9/wQA+/8FAPz/AwD+/wEA//8AAAIA/f8CAP//AAABAP//AQD+/wIA/v8CAAAA//8AAAEA//8BAAAA//8CAP7/AgD9/wMA/v8BAAAAAAD//wEA//8BAAEA/v8AAAEAAAD//wEA//8AAAEA//8AAAEA/v8BAAEA/v8CAP//AAAAAAAAAAAAAAEA/v8CAP7/AgD+/wIA/v8CAP//AAAAAAAAAAAAAAAAAAAAAAAAAAD//wIA/v8CAP7/AQAAAAAA//8CAP7/AgD+/wIA/v8CAP7/AQABAP7/AQD//wIA/f8EAPv/BAD+/wEAAAD//wEA//8BAAAA//8BAP//AQD//wIA/f8CAP//AAABAP//AAABAP7/AgD/////AgD+/wIA/v8BAP7/BAD8/wIAAAD+/wMA/v8AAAIA/f8CAP//AAACAP3/AgD/////AgD+/wEAAQD9/wQA+/8EAP7/AQAAAAAA//8BAP//AQAAAAAAAAD+/wMA/f8DAP////8BAAAA//8CAP7/AgD+/wIA/v8CAP7/AgD9/wMA//8AAAAAAAD//wMA/P8EAP3/AgD//wAAAAABAP//AQD+/wMA/P8FAPv/BAD+////AwD8/wQA/f8BAAEA/v8CAP//AAABAP//AAABAP//AQD//wEA/v8CAP//AAABAP7/AgD//wAAAAABAP7/AwD8/wQA/f8CAP//AAABAP//AQD//wEA//8CAP3/BAD7/wUA/P8DAP7/AAACAPz/BQD7/wQA/f8CAP//AQD//wAAAQD//wEA//8BAP//AQD//wAAAgD9/wQA+/8EAP7/AQAAAAAA//8BAP//AgD9/wQA/P8EAP3/AQAAAAAAAAACAPz/BAD8/wQA/P8EAPz/AwD+/wIA/v8CAP7/AQAAAAAAAAABAP7/AQAAAP//AwD8/wQA/f8BAAEA//8AAAIA/P8EAP7/AAABAP//AAABAP//AAABAP//AQD//wAAAQD//wEA//8BAAAA//8BAP//AQABAP7/AQAAAAAAAAABAP3/AwD//wAAAAD//wEAAAAAAP//AQD+/wQA/P8DAP7/AAABAAAAAAAAAAAA//8CAP////8CAP7/AgD/////AQAAAAAAAAAAAP//AgD9/wQA+/8FAPz/AwD9/wIAAAD+/wMA/P8EAP7/AAABAP//AAABAP7/AwD9/wMA/f8DAP7/AQAAAAAAAAAAAAEA//8AAAEA/f8EAP3/AgD//wAAAAAAAAAAAQD+/wIA//8BAP////8CAAAA//8CAPz/BAD+/wEAAAD//wAAAQD//wIA/f8CAP//AQD//wEA/v8DAP3/AwD9/wEAAQD//wEA//8AAAAAAQD//wAAAQD+/wIA//8AAAAAAAD//wMA/f8CAP7/AQAAAAAAAQD+/wIA/v8BAAEA/v8CAP//AAABAP7/AwD9/wMA/f8CAP//AQD+/wMA/P8EAP3/AQABAP7/AgD9/wQA/f8BAAAA/v8EAPz/AwD+/wAAAQAAAAAAAAD//wEAAAAAAAEA/f8EAPz/BAD9/wEAAQD9/wQA/P8DAP////8BAP//AQD//wEA//8BAAAA//8BAAAA//8BAP//AQAAAP7/BAD6/wcA+f8HAPr/BQD8/wMA//8AAAAAAQD9/wQA+/8GAPv/AwD+/wEAAAAAAAAAAAABAP//AQD+/wMA/f8DAP7/AAABAAAA/v8DAP3/AgAAAP7/AwD9/wMA/v8AAAEA//8BAAAA//8AAAEA/v8DAPz/BAD9/wIA//8AAAAAAAABAP//AQD//wAAAQAAAP//AQAAAAAAAAAAAAAAAAABAP//AAAAAAEA//8AAAAAAAABAP//AAAAAAEA//8BAP//AQD//wIA/v8BAAAA/v8EAPz/AwD///7/BAD7/wUA/P8DAP7/AAABAAAA//8BAP//AAACAP3/AwD9/wIA//8AAAEA//8AAAEA/v8BAAEA/v8DAPz/AwD//wAAAAAAAAAAAQD+/wIA/v8CAP7/AgD+/wIA/v8BAAAAAAAAAAAAAAAAAAAAAAD//wIA/v8CAP3/AwD9/wMA/v8BAAAA/v8DAP3/AwD+/wAAAQD+/wIA/v8DAPz/AwD+/wEAAQD+/wEA//8CAP3/BQD6/wUA/f8AAAIA/////wIA/v8BAAEA/v8CAP3/BAD8/wQA/f8AAAIA/f8DAP7/AAACAPz/BQD7/wQA/f8DAP7/AQD//wEA//8BAAAA//8CAP3/AgD//wIA/v8CAP7/AQABAP7/AgD+/wEAAQD+/wIA/v8AAAIA/v8CAP7/AQAAAP//AgD+/wEAAQD9/wQA/P8DAP////8CAP7/AgD+/wEAAAD//wMA/P8DAP7/AQAAAAAAAAD//wIA/v8BAAEA/f8EAPz/AwD+/wIA/v8CAP7/AQAAAAAA//8DAPz/BAD8/wMA/v8CAP7/AgD+/wIA/v8BAAEA/v8DAPz/BAD9/wMA/f8CAP7/AgAAAP7/AwD8/wMA//8AAAAAAAAAAP//AgD+/wEAAAD//wEAAAD//wEA//8BAP//AQD+/wIA//8BAP//AQD+/wIA//8BAP//AQD//wAAAgD9/wIA//8BAAAA//8BAP7/AwD9/wMA/f8DAP3/AgAAAP//AAABAP//AQAAAP//AAAAAAIA/P8FAPv/BAD+/wAAAQD//wEAAAD//wEAAAD//wIA/f8DAP7/AQABAPz/BgD6/wUA/f8BAAAA//8CAP7/AwD8/wMA/////wMA/P8EAP3/AQABAP7/AwD8/wQA/f8DAP3/AgD+/wIA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8CAP7/AgD+/wEAAAD//wIA/v8BAP//AgD+/wEAAAD//wEAAAAAAAAAAAAAAP//AwD8/wMA/////wEAAQD+/wIA/v8CAP3/BQD5/wcA/P8AAAIA/f8DAP7/AgD9/wMA/f8CAAAA/v8DAP3/AQAAAAAAAQD+/wIA/f8FAPv/AwD/////BAD7/wQA/v8AAAEA//8AAAIA/P8FAPv/BQD8/wIA//8BAAAA//8BAAAA//8BAP//AQAAAAAA//8BAP//AQAAAP//AAAAAAEA//8BAP7/AgD+/wIA//8BAP//AAABAP7/AwD9/wIA//8AAAAAAQD+/wIA/v8BAAEA/v8CAP////8DAPz/BAD9/wIA//8AAAAAAAAAAAEA/v8CAP7/AgD+/wMA/P8EAP3/AQABAP7/AgD+/wIA/v8CAP////8DAP3/AQACAPz/BAD9/wIA//8BAP//AAAAAAEA//8BAP//AQD//wIA/f8CAAAA//8BAP//AAABAP//AAAAAAAAAQD//wAAAAABAP//AQD//wEA//8BAP//AQAAAP//AAABAP//AQD//wAAAAABAP7/AgD+/wIA/v8BAP//AgD9/wQA+/8EAP7/AQAAAP//AAACAP7/AgD+/wEAAQD+/wIA//8AAAEA/f8EAP3/AQABAP7/AQABAP3/BAD9/wIA//8AAAAAAAAAAAEA/f8FAPr/BQD9/wEAAQD+/wIA/v8CAP//AAAAAAAAAAAAAAEA/v8CAP7/AgD+/wIA//8AAAAA//8CAP7/AgD9/wQA/P8EAPz/AwD+/wIA/v8CAP7/AQAAAAAAAAD//wEAAAAAAAAA//8BAAAAAQD+/wIA/v8DAP3/AgD//wAAAQD//wAAAAAAAAEA/v8CAP//AAABAP7/AwD+/wAAAgD8/wUA/P8CAAAA//8BAP//AQD+/wQA+v8GAPv/AwD//wAAAAAAAAAAAAABAP//AAAAAAAAAQD//wAAAQD+/wMA/f8CAP//AQD//wEAAAD+/wMA/f8CAAAA/v8DAP3/AgD//wAAAQD+/wMA/f8CAP//AAACAP3/AgD//wAAAQD//wAAAQD+/wMA/f8BAAEA//8AAAEA/v8="),i=new Uint8Array(n.length),o=0,r=n.length;o<r;o++)i[o]=n.charCodeAt(o);(Zc=new(window.AudioContext||window.webkitAudioContext)).decodeAudioData(i.buffer,(function(e){Xc=e}))}}Qc.prototype.set=function(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()},Qc.prototype.setVelocityByEnd=function(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},Qc.prototype.x=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);var t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog},Qc.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},Qc.prototype.done=function(){return Math.abs(this.dx())<3},Qc.prototype.reconfigure=function(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)},Qc.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}]},tl.prototype._solve=function(e,t){var n=this._c,i=this._m,o=this._k,r=n*n-4*i*o;if(0===r){var a=-n/(2*i),s=e,c=t/(a*e);return{x:function(e){return(s+c*e)*Math.pow(Math.E,a*e)},dx:function(e){var t=Math.pow(Math.E,a*e);return a*(s+c*e)*t+c*t}}}if(r>0){var l=(-n-Math.sqrt(r))/(2*i),u=(-n+Math.sqrt(r))/(2*i),d=(t-l*e)/(u-l),h=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,l*e)),n||(n=this._powER2T=Math.pow(Math.E,u*e)),h*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,l*e)),n||(n=this._powER2T=Math.pow(Math.E,u*e)),h*l*t+d*u*n}}}var p=Math.sqrt(4*i*o-n*n)/(2*i),f=-n/2*i,v=e,m=(t-f*e)/p;return{x:function(e){return Math.pow(Math.E,f*e)*(v*Math.cos(p*e)+m*Math.sin(p*e))},dx:function(e){var t=Math.pow(Math.E,f*e),n=Math.cos(p*e),i=Math.sin(p*e);return t*(m*p*n-v*p*i)+f*t*(m*i+v*n)}}},tl.prototype.x=function(e){if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._solution){var t=this._solution.x(e);return this._endPosition+t}return 0},tl.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},tl.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!el(t,.1)){t=t||0;var i=this._endPosition;this._solution&&(el(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),el(t,.1)&&(t=0),el(i,.1)&&(i=0),i+=this._endPosition),this._solution&&el(i-e,.1)&&el(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},tl.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},tl.prototype.done=function(e){return e||(e=(new Date).getTime()),el(this.x(),.1,this._endPosition)&&el(this.dx(),.1)},tl.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())},tl.prototype.springConstant=function(){return this._k},tl.prototype.damping=function(){return this._c},tl.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},nl.prototype.snap=function(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)},nl.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())},nl.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},nl.prototype.dx=function(e){return this._springing?this._spring.dx(e):this._friction.dx(e)},nl.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},nl.prototype.setVelocityByEnd=function(e){this._friction.setVelocityByEnd(e)},nl.prototype.configuration=function(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e},il.prototype.onTouchStart=function(){if(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(),Xc){this._sound&&(clearInterval(this._vibrateTimer),this._sound.loop=!1,Jc(this._sound,.04),this._sound=null);var e=Zc.createBufferSource();e.buffer=Xc,e.connect(Zc.destination),e.start(0),e.stop(0)}this._options.onTouchStart&&this._options.onTouchStart()},il.prototype.onTouchMove=function(e,t){var n=this,i=this._startPosition;if(this._enableX?i+=e:this._enableY&&(i+=t),i>0?i*=.5:i<-this._extent&&(i=.5*(i+this._extent)-this._extent),this._position=i,this.updatePosition(),this.dispatchScroll(),Xc&&i<0&&i>-this._extent){var o=Math.floor(Math.abs(i/this._itemSize));Math.abs(i-this._lastChangePos)>this._itemSize/2&&"number"==typeof this._lastIdx&&this._lastIdx!==o&&(setTimeout((function(){Jc(n._sound,.04);var e=n._sound=Zc.createBufferSource();e.buffer=Xc,e.connect(Zc.destination),e.start(0)})),this._lastChangePos=i),this._lastIdx=o}},il.prototype.onTouchEnd=function(e,t,n){var i,o,r=this,a=this,s=function(){r._options.onTouchEnd&&r._options.onTouchEnd()};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 this.snap(),void s();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return this.snap(),void s()}if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var c=this._scroll._friction.x(100),l=c%this._itemSize,u=Math.abs(l)>this._itemSize/2?c-(this._itemSize-Math.abs(l)):c-l;u<=0&&u>=-this._extent&&this._scroll.setVelocityByEnd(u)}this._lastTime=v()(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),v()(),Xc&&Math.abs(n.y)>800&&(o=this._vibrateTimer=setInterval((function(){}),30),(i=this._sound=Zc.createBufferSource()).buffer=Xc,i.connect(Zc.destination),i.loopStart=0,i.loopEnd=.04,i.loop=!0,i.start(0));var d=this._scroll,h={id:0,cancelled:!1};!function e(t,n,i,o){if(!t||!t.cancelled){i(n);var r=d.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,i,o))),r&&o&&o(n)}}(h,d,(function(){var t=(v()()-a._scroll._startTime)/1e3,n=a._scroll.x(t);a._position=n,a.updatePosition();var r=a._scroll.dx(t),s=a._scroll._springing;if((Math.abs(r)<=800||s)&&i&&(clearInterval(o),i.loop=!1,Jc(i,.04),i=a._sound=null,a._lastIdx=Math.floor(Math.abs(n/a._itemSize))),!s&&!i&&Xc){var c=Math.floor(Math.abs(n/a._itemSize)),l=Math.abs(n%a._itemSize);Math.abs(n-a._lastChangePos)>a._itemSize/2&&(a._lastIdx!==c||r<5&&(l<1||a._itemSize-l<1))&&(setTimeout((function(){Jc(a._sound,.04);var e=a._sound=Zc.createBufferSource();e.buffer=Xc,e.connect(Si.destination),e.start(0)})),a._lastChangePos=n),a._lastIdx=c}a._shouldDispatchScrollEvent&&e-a._lastTime>a._lastDelay&&(a.dispatchScroll(),a._lastDelay=Math.abs(2e3/r),a._lastTime=e)}),(function(){a._enableSnap&&("function"==typeof a._options.onSnap&&a._options.onSnap(Math.floor(Math.abs(a._position)/a._itemSize)),s()),a._shouldDispatchScrollEvent&&a.dispatchScroll(),a._scrolling=!1})),this._animation={cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,h),model:d}},il.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()},il.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?(Xc&&this._startPosition!==n&&setTimeout((function(){var e=Zc.createBufferSource();e.buffer=Xc,e.connect(Zc.destination),e.start(0)}),200),this._snapping=!0,this.scrollTo(-n),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))):"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))},il.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 ".concat(t||.2,"s ease-out"),this._element.style.webkitTransition="-webkit-transform ".concat(t||.2,"s ease-out"),this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},il.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)}},il.prototype.update=function(e,t,n){var i=0,o=this._position;this._enableX?(i=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(i=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),o!==this._position&&(this.dispatchScroll(),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i},il.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},il.prototype.isScrolling=function(){return this._scrolling||this._snapping},window.ftparser.registerBehavior({is:"wx-scroller",methods:{initScroller:function(e,t){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._handlers=new il(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;if(-1===t.trackingID){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]});var n=this._handlers;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.timeStamp],t.listener=n,n.onTouchStart&&n.onTouchStart())}},_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.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.timeStamp)}}},_handleTouchEnd:function(e){var t=this._touchInfo;if(-1!==t.trackingID){e.preventDefault(),"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]});var n=this._findDelta(e);if(n){var i=t.listener;t.trackingID=-1,t.listener=null;var o={x:0,y:0};if(t.historyTime.length>2)for(var r=t.historyTime.length-1,a=t.historyTime[r],s=t.historyX[r],c=t.historyY[r];r>0;){r--;var l=a-t.historyTime[r];if(l>30&&l<50){o.x=(s-t.historyX[r])/(l/1e3),o.y=(c-t.historyY[r])/(l/1e3);break}}t.historyTime=[],t.historyX=[],t.historyY=[],i&&i.onTouchEnd&&i.onTouchEnd(n.x,n.y,o)}}}}});var ol=["touchstart","touchmove","touchend","touchcancel","longtap"],rl=function(e,t){var n=this;return[].concat(Dn.toArray(e)).map((function(e){return{identifier:e.identifier,x:e.pageX-window.scrollX-n.$$.getBoundingClientRect().left,y:e.pageY-window.scrollY-n.$$.getBoundingClientRect().top}}))},al=!1;window.ftparser.registerBehavior({is:"wx-canvas-touch",properties:{},methods:{addTouchEventForWebview:function(){var e=this;ol.forEach((function(t){e.$$.addEventListener(t,(function(n){n.eventName=t,e.fireTouchEvent(n)}))}))},fireTouchEvent:function(e){var t=this,n=e.eventName,i=rl.call(this,e.touches,n),o=rl.call(this,e.changedTouches,n);if(this.bindlongtap&&(this._touchInfo=this._touchInfo||{},this._disableScroll=this._disableScroll||0,"touchstart"===n?o.forEach((function(n){t._touchInfo[n.identifier]={},t._touchInfo[n.identifier].x=n.x,t._touchInfo[n.identifier].y=n.y,t._touchInfo[n.identifier].timeStamp=e.timeStamp,t._touchInfo[n.identifier].handler=setTimeout((function(){if(Object.prototype.hasOwnProperty.call(t._touchInfo,n.identifier)){t._touchInfo[n.identifier].longPress=!0,++t._disableScroll;var e=[],i=[];for(var o in t._touchInfo){var r={identifier:o,x:t._touchInfo[o].x,y:t._touchInfo[o].y};e.push(r),o===String(n.identifier)&&i.push(r)}wd.publishPageEvent(t.bindlongtap,{type:"bindlongtap",timeStamp:t._touchInfo[n.identifier].timeStamp+300,target:{id:t.id||"",offsetLeft:t.$$.offsetLeft,offsetTop:t.$$.offsetTop,dataset:t.dataset,markset:t.markset},touches:e,changedTouches:i},t.getNodeId())}}),300)})):"touchend"===n||"touchcancel"===n?o.forEach((function(e){Object.prototype.hasOwnProperty.call(t._touchInfo,e.identifier)||console.error("in "+n+", can not found "+e.identifier+" in "+ce()(t._touchInfo)),t._touchInfo[e.identifier].longPress&&--t._disableScroll,clearTimeout(t._touchInfo[e.identifier].handler),delete t._touchInfo[e.identifier]})):(al=!1,o.forEach((function(e){var i,o,r,a;Object.prototype.hasOwnProperty.call(t._touchInfo,e.identifier)||console.error("in "+n+", can not found "+e.identifier+" in "+ce()(t._touchInfo)),o=e,(r=(i=t._touchInfo[e.identifier]).x-o.x)*r+(a=i.y-o.y)*a>5&&(t._touchInfo[e.identifier].longPress||clearTimeout(t._touchInfo[e.identifier].handler),al=!0),t._touchInfo[e.identifier].x=e.x,t._touchInfo[e.identifier].y=e.y})))),this["bind"+n]&&i.length+o.length>0){if("touchmove"===n&&!al)return;wd.publishPageEvent(this["bind"+n],{type:n,timeStamp:e.timeStamp,target:{id:this.$$.id,offsetLeft:this.$$.offsetLeft,offsetTop:this.$$.offsetTop,dataset:this.dataset,markset:this.markset},touches:i,changedTouches:o},this.getNodeId())}(this.disableScroll||this._disableScroll)&&(e.preventDefault(),e.stopPropagation())}}}),n(665);var sl=/[+-]?\d+(\.\d+)?rpx/,cl=/[+-]?\d+(\.\d+)?px/;window.ftparser.registerBehavior({is:"wx-size-normalizer",methods:{_transformSizeUnit:function(e){return e.match(sl)&&(e=wx.transformRpx("%%?"+e+"?%%")),e.match(cl)&&(e=Dt()(e,10)),e=+e,isNaN(e)?0:e},normalizeSize:function(e){return"string"==typeof e?this._transformSizeUnit(e):"number"==typeof e?e:0},normalizeSizeInPlace:function(e,t){var n=this,i=function(t){var i=e[t];"string"==typeof i&&(e[t]=n.normalizeSize(i))};"[object Array]"===Object.prototype.toString.call(t)?t.forEach(i):"string"==typeof t&&i(t)}}}),n(666);var ll=ftparser.HtmlParser||{parse:function(e){return[]},TAG_TYPES:{}},ul=ll.TAG_TYPES,dl={rules:{a:"nA",abbr:"nA",address:"nA",article:"nA",aside:"nA",b:"nA",bdi:"nA",bdo:"fA",big:"nA",blockquote:"nA",br:"nA",caption:"nA",center:"nA",cite:"nA",code:"nA",col:"fA",colgroup:"fA",dd:"nA",del:"nA",div:"nA",dl:"nA",dt:"nA",em:"nA",fieldset:"nA",font:"nA",footer:"nA",h1:"nA",h2:"nA",h3:"nA",h4:"nA",h5:"nA",h6:"nA",header:"nA",hr:"nA",i:"nA",img:"fA",ins:"nA",label:"nA",legend:"nA",li:"nA",mark:"nA",nav:"nA",ol:"fA",p:"nA",pre:"nA",q:"nA",rt:"nA",ruby:"nA",s:"nA",section:"nA",small:"nA",span:"nA",strong:"nA",sub:"nA",sup:"nA",table:"fA",tbody:"nA",td:"fA",tfoot:"nA",th:"fA",thead:"nA",tr:"fA",tt:"nA",u:"nA",ul:"nA"},fA:function(e,t,n,i){var o={bdo:{dir:"nF"},col:{span:"nF",width:"nF"},colgroup:{span:"nF",width:"nF"},img:{alt:"nF",src:"fL",height:"nF",width:"nF"},ol:{start:"nF",type:"nF"},table:{width:"nF"},td:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"},th:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"},tr:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"}},r=o[n][e];if(Object.prototype.hasOwnProperty.call(o,n)&&Object.prototype.hasOwnProperty.call(o[n],e))switch(r){case void 0:break;case"nF":i.setAttribute(e,t);break;default:return dl[r]&&dl[r](e,t,n,i)}},fL:function(e,t,n,i){i.setAttribute(e,t)},parse:function(e,t,n,i){return e.forEach((function(e){if("object"===Ce()(e))if(void 0===e.type&&void 0===e.t||"node"===e.type||e.t===ul.TAG_START||""===e.type||""===e.t){if("string"==typeof e.name&&""!==e.name||"string"==typeof e.n&&""!==e.n){var o=e.name||e.n||"";if(o=o.toLowerCase(),Object.prototype.hasOwnProperty.call(dl.rules,o)){var r=dl.rules[o],a=document.createElement(o);if(a){var s=[];if("object"===Ce()(e.attrs))for(var c=0,l=E()(e.attrs);c<l.length;c++){var u=l[c];s.push({n:u,v:ll.decodeEntities(e.attrs[u])})}else"object"===Ce()(e.a)&&e.a instanceof Array&&e.a.length&&(s=e.a);s.length&&s.forEach((function(e){var t=e.n.toLowerCase(),i=e.v;if("class"===t){var s=i.replace(/\S+/g,(function(e){return n(e)}));a.setAttribute("class",s)}else"style"===t?a.setAttribute("style",i):t.startsWith("data-")?a.setAttribute(t,i):"nA"!==r&&dl[r]&&dl[r](t,i,o,a)})),"object"===Ce()(e.c)&&e.c instanceof Array&&e.c.length&&dl.parse(e.c,a,n,i),"object"===Ce()(e.children)&&e.children instanceof Array&&e.children.length&&dl.parse(e.children,a,n,i),t.appendChild(a)}}}}else e.t===ul.TEXT&&"string"==typeof e.c&&""!==e.c?(e.c=i(e.c),t.appendChild(document.createTextNode(e.c))):"text"===e.type&&"string"==typeof e.text&&""!==e.text&&(e.text=i(e.text),t.appendChild(document.createTextNode(ll.decodeEntities(e.text))))})),t}};window.ftparser.registerBehavior({is:"wx-html-parse",behaviors:["wx-class-prefix"],methods:{_createSpaceDecode:function(e){if(e){if("nbsp"===e)return function(e){return e.replace(/ /g," ")};if("ensp"===e)return function(e){return e.replace(/ /g," ")};if("emsp"===e)return function(e){return e.replace(/ /g," ")}}return function(e){return e}},getFilter:function(){return dl},getHtmlParser:function(){return ll},filterHtml:function(e){var t=this;try{e=ll.parse(e,!0)}catch(e){return console.error(e)}if("object"===Ce()(e)&&e instanceof Array){var n;try{n=dl.parse(e,document.createDocumentFragment(),(function(e){return t.convertClassWithPrefix(e)}),this._createSpaceDecode("nbsp"))}catch(e){return console.error(e)}var i=document.createElement("div");return i.appendChild(n),i.innerHTML}}}}),n(667),window.ftparser.registerBehavior({is:"wx://component-export",attached:function(){}}),window.ftparser.registerBehavior({is:"wx://form-field",properties:{name:{type:String,public:!0},value:{type:null,public:!0}},attached:function(){}}),window.ftparser.registerBehavior({is:"wx://form-field-button",listeners:{formSubmit:function(e){this.triggerEvent("formSubmit",e,{bubbles:!0})},formReset:function(e){this.triggerEvent("formReset",e,{bubbles:!0})}},attached:function(){}}),window.ftparser.registerBehavior({is:"wx://form-field-group",attached:function(){}}),window.ftparser.registerBehavior({is:"wx://request-filter",relations:{"wx://request-sender":{type:"shadowContent"}},methods:{_srcFilter:function(e){return-1!==e.indexOf("://")||0===e.indexOf("//")?0===e.indexOf("https://wx.qlogo.cn")?e:null:e}}}),window.ftparser.registerBehavior({is:"wx://request-sender",relations:{"wx://request-filter":{type:"shadowHost",linked:function(e){this._hasCheckedLinked=!0,this._filterTarget=e,this._checkDeferredFuncList()},linkFailed:function(){this._hasCheckedLinked=!0,this._checkDeferredFuncList()}}},methods:{checkProp:function(e){return e=void 0===e?this[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"src"]:e,this._filterTarget?this._filterTarget._srcFilter(e):e},deferredSetProp:function(e){if(this._hasCheckedLinked)return e&&e();this._deferredFuncList=this._deferredFuncList||[],this._deferredFuncList.push(e)},_checkDeferredFuncList:function(){var e=this._deferredFuncList;if(e&&e.length)for(;e.length;)e.shift()()}}}),window.ftparser.registerBehavior({is:"wx://style-filter",methods:{_styleFilter:function(){return""}}});var hl=n(132),pl=n.n(hl);function fl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):fl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-page-meta",options:{lazyRegistration:!0},template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-size-normalizer"],properties:{backgroundTextStyle:{type:String,value:"",public:!0,observer:function(){this._update("backgroundTextStyle")}},backgroundColor:{type:String,value:"",public:!0,observer:function(){this._update("backgroundColor")}},backgroundColorTop:{type:String,value:"",public:!0,observer:function(){this._update("backgroundColor")}},backgroundColorBottom:{type:String,value:"",public:!0,observer:function(){this._update("backgroundColor")}},rootBackgroundColor:{type:String,value:"",public:!0,observer:function(){this._update("rootBackgroundColor")}},scrollTop:{type:String,value:"",public:!0},scrollDuration:{type:Number,value:300,public:!0},pageStyle:{type:String,value:"",public:!0,observer:function(){this._update("pageStyle")}},rootFontSize:{type:String,value:"",public:!0,observer:function(){this._update("rootFontSize")}},pageOrientation:{type:String,value:"",public:!0,observer:function(){this._update("pageOrientation")}},pageFontSize:{type:String,value:"",public:!0,observer:function(){this._update("pageStyle")}}},observers:{scrollTop:function(){this.data.scrollTop&&this._update("scrollTop")}},created:function(){var e=this;this._dirtyFields={backgroundTextStyle:!1,backgroundColor:!1,rootBackgroundColor:!1,scrollTop:!1,pageStyle:!1,rootFontSize:!1,pageOrientation:!1},this._dirtyTobj=null,this.__onScroll=pl()((function(t){e._onScroll(t)}),200,{leading:!0,trailing:!0})},attached:function(){var e=this;this.parentNode instanceof ftparser.ShadowRoot&&this.parentNode.getHostNode()===window.__DOMTree__&&this.parentNode.childNodes[0]===this?(this._valid=!0,wx.onPageResizeChange((function(t){var n=t.size;e.triggerEvent("resize",{size:n})})),window.addEventListener("scroll",this.__onScroll)):(this._valid=!1,console.warn("For developer:<page-meta /> 只能是页面内的第一个节点,且不能被 wx:if 、 wx:for 动态变更")),this._update("")},detached:function(){window.removeEventListener("scroll",this.__onScroll)},methods:{_onScroll:function(){this.triggerEvent("scroll",{scrollTop:window.scrollY})},_convertFontSize:function(e){return"system"===e?window.__fontSizeSetting__+"px":e.includes("rpx")?wx.transformRpx("%%?".concat(e,"?%%")):e},_update:function(e){var t=this;if(e&&(this._dirtyFields[e]=!0),ftparser.Element.isAttached(this)&&this._valid){if(this._dirtyFields.pageStyle){this._dirtyFields.pageStyle=!1;var n=wx.transformRpx(this.data.pageStyle,!0),i=this.ownerShadowRoot.getHostNode().$$;i.setAttribute("style",n),this.data.pageFontSize&&(i.style.fontSize=this._convertFontSize(this.data.pageFontSize))}this._dirtyFields.rootFontSize&&(this._dirtyFields.rootFontSize=!1,document.documentElement.style.fontSize=this._convertFontSize(this.data.rootFontSize)),this._dirtyTobj||(this._dirtyTobj=requestAnimationFrame((function(){t._dirtyTobj=null,t._applyUpdates()})))}},_applyUpdates:function(){var e=this;if(this._dirtyFields.backgroundTextStyle&&(this._dirtyFields.backgroundTextStyle=!1,wx.setBackgroundTextStyle({textStyle:this.data.backgroundTextStyle,fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.backgroundColor&&(this._dirtyFields.backgroundColor=!1,wx.setBackgroundColor({backgroundColor:this.data.backgroundColor,backgroundColorTop:this.data.backgroundColorTop,backgroundColorBottom:this.data.backgroundColorBottom,fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.scrollTop){this._dirtyFields.scrollTop=!1;var t=v()();FinChatJSBridge.subscribe("scrollDone",(function(t){e.triggerEvent("scrolldone",{})})),FinChatJSBridge.subscribe("androidScrollDone_".concat(t),(function(t){e.triggerEvent("scrolldone",{})})),wd.pageScrollTo({scrollId:t,duration:this.data.scrollDuration,scrollTop:this.normalizeSize(this.data.scrollTop)})}this._dirtyFields.pageOrientation&&(this._dirtyFields.pageOrientation=!1,wx.invoke("setPageOrientation",{orientation:this.data.pageOrientation},(function(){}))),this._dirtyFields.rootBackgroundColor&&(this._dirtyFields.rootBackgroundColor=!1,document.documentElement.style.backgroundColor=this.data.rootBackgroundColor)}}}),window.ftparser.registerElement({is:"wx-navigation-bar",options:{lazyRegistration:!0},template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base"],properties:{title:{type:String,value:"",public:!0,observer:function(){this._update("title")}},loading:{type:Boolean,value:!1,public:!0,observer:function(){this._update("loading")}},frontColor:{type:String,value:"#ffffff",public:!0,observer:function(){this._update("color")}},backgroundColor:{type:String,value:"#000000",public:!0,observer:function(){this._update("color")}},colorAnimationDuration:{type:Number,value:0,public:!0,observer:function(){this._update("color")}},colorAnimationTimingFunc:{type:String,value:"linear",public:!0,observer:function(){this._update("color")}}},created:function(){this._dirtyFields={title:!1,loading:!1,color:!1},this._dirtyTobj=null},attached:function(){this.parentNode instanceof ftparser.Component&&"wx-page-meta"===this.parentNode.is&&this.parentNode.childNodes[0]===this?this._valid=!0:(this._valid=!1,console.warn("For developer:<navigation-bar /> 只能是 <page-meta /> 内的第一个节点,且不能被 wx:if 、 wx:for 动态变更")),this._update("")},methods:{_update:function(e){var t=this;e&&(this._dirtyFields[e]=!0),ftparser.Element.isAttached(this)&&this._valid&&(this._dirtyTobj||(this._dirtyTobj=requestAnimationFrame((function(){t._dirtyTobj=null,t._applyUpdates()}))))},_applyUpdates:function(){this._dirtyFields.title&&(this._dirtyFields.title=!1,wx.setNavigationBarTitle({title:this.data.title,fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.loading&&(this._dirtyFields.loading=!1,this.data.loading?wx.showNavigationBarLoading({fail:function(e){console.error(e.errMsg)}}):wx.hideNavigationBarLoading({fail:function(e){console.error(e.errMsg)}})),this._dirtyFields.color&&(this._dirtyFields.color=!1,wx.setNavigationBarColor({frontColor:this.data.frontColor,backgroundColor:this.data.backgroundColor,animation:{duration:this.data.colorAnimationDuration,timingFunc:this.data.colorAnimationTimingFunc},fail:function(e){console.error(e.errMsg)}}))}}}),window.ftparser.registerElement({is:"wx-audio",behaviors:["wx-base","wx-player","wx://request-sender","wx-reload"],template:function(e,t,n){return[{t:1,n:"audio",id:"player",st:{v:"display: none;"},a:[{n:"loop",o:"$",e:function(e,t,n){return e.loop},l:[null],b:[[null,"loop"]]}],c:[]},{t:1,n:"div",id:"default",cl:{v:"wx-audio-default"},st:{v:"display: none;"},a:[],c:[{t:1,n:"div",id:"poster",cl:{v:"wx-audio-left"},a:[],c:[{t:1,n:"div",id:"button",cl:{e:function(e,t,n){return"wx-audio-button "+e._buttonType},b:[[null,"_buttonType"]]},a:[],c:[]}]},{t:1,n:"div",cl:{v:"wx-audio-right"},a:[],c:[{t:1,n:"div",cl:{v:"wx-audio-time"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._currentTime},b:[[null,"_currentTime"]],t:3}]},{t:1,n:"div",cl:{v:"wx-audio-info"},a:[],c:[{t:1,n:"div",cl:{v:"wx-audio-name"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.name},b:[[null,"name"]],t:3}]},{t:1,n:"div",cl:{v:"wx-audio-author"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.author},b:[[null,"author"]],t:3}]}]}]}]},{t:1,n:"div",id:"fakebutton",a:[],c:[]}]},options:{lazyRegistration:!0},properties:{action:{type:Object,observer:"actionChanged",public:!0},name:{type:String,value:"未知歌曲",public:!0},author:{type:String,value:"未知作者",public:!0},loop:{type:Boolean,value:!1,public:!0},controls:{type:Boolean,value:!1,observer:"controlsChanged",public:!0},_srcTimer:{type:Number},_actionTimer:{type:Number},_canSrc:{type:Boolean,value:!0},_deferredSrc:{type:String,value:""},_canAction:{type:Boolean,value:!1},_deferredAction:{type:Array,value:[]}},attached:function(){var e=this;console.warn("For developer: '<audio/>' 组件不再维护,建议使用能力更强的 'wx.createInnerAudioContext' 接口"),this._addListeners(),this.$.button.onclick=function(t){t.stopPropagation(),e.action={method:e._buttonType}},this.$.fakebutton.onclick=function(t){t.stopPropagation(),e.action&&"function"==typeof e.$.player[e.action.method]&&e.$.player[e.action.method]()};var t=this.getPluginId(),n=this.getNodeId();n&&__virtualDOM__.getRootNodeId(),FinChatJSBridge.subscribe("audio_".concat(this.id,"_actionChanged"),(function(t){e.action=t})),FinChatJSBridge.publish("audioInsert",{audioId:this.id,pluginId:t,nodeId:n}),wx.onAppEnterBackground((function(t){e.$.player.pause(),e.isBackground=!0})),wx.onAppEnterForeground((function(t){e.isBackground=!1}))},detached:function(){FinChatJSBridge.publish("audioRemove",{audioId:this.id,nodeId:this.getNodeId(),pluginId:this.getPluginId()})},saved:function(e){var t={};this._savedCurrentTime=this.$.player.currentTime,this.saveCompVar(t,["_savedCurrentTime"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);if(t){this.restoreCompVar(t);var n=this._savedCurrentTime;delete this._savedCurrentTime,this.actionChanged({method:"setCurrentTime",data:n}),this._savedCurrentTime=this._formatTime(Math.floor(n))}},methods:{_addListeners:function(){var e=this;if(this.$.player){for(var t=this.$.player.$$||this.$.player,n=this,i={},o=0,r=E()(MediaError);o<r.length;o++){var a=r[o];i[MediaError[a]]=a}t.onerror=function(e){if(e.stopPropagation(),e.srcElement.error){var t=e.srcElement.error.code;n._publish("error",{errMsg:i[t]})}},t.onplaying=function(e){n.playing=!0,e.stopPropagation(),n._buttonType="pause",n.paused=!1},t.onwaiting=function(e){n.playing=!1,e.stopPropagation(),n._publish("waiting",{}),n._buttonType="waiting","function"==typeof n.onWaiting&&n.onWaiting(e)},t.onplay=function(e){n.playing=!0,e.stopPropagation(),n._publish("play",{}),n._buttonType="pause","function"==typeof n.onPlay&&n.onPlay(e),n.paused=!1},t.onpause=function(e){n.playing=!1,e.stopPropagation(),n._publish("pause",{}),n._buttonType="play","function"==typeof n.onPause&&n.onPause(e),n.paused=!0},t.onended=function(e){n.playing=!1,e.stopPropagation(),n._publish("ended",{}),"function"==typeof n.onEnded&&n.onEnded(e)},t.onratechange=function(e){e.stopPropagation(),n._publish("ratechange",{playbackRate:t.playbackRate})};var s=0;t.addEventListener("timeupdate",(function(e){e.stopPropagation(),Math.abs(t.currentTime-s)%t.duration>=1&&(n._publish("timeupdate",{currentTime:t.currentTime,duration:t.duration}),s=1e3*t.currentTime),n._isLockTimeUpdateProgress||(n._currentTime=n._formatTime(Math.floor(t.currentTime))),"function"==typeof n.onTimeUpdate&&n.onTimeUpdate(e)})),t.addEventListener("progress",(function(e){e.stopPropagation(),n._publish("progress",{buffered:t.currentTime/t.duration*100}),"function"==typeof n.onProgress&&n.onProgress(e)})),t.addEventListener("durationchange",(function(){t.duration===1/0?e._isLive=!0:e._isLive=!1,isNaN(t.duration)||0!==e.duration||(n._duration=n._formatTime(Math.floor(t.duration)))}))}},_reset:function(){this._buttonType="play",this._currentTime=this._savedCurrentTime||"00:00",this._duration="00:00",this._savedCurrentTime=null},_readySrc:function(){this._canSrc=!0,this._srcChanged(this._deferredSrc),this._deferredSrc=""},_readyAction:function(){var e=this;this._canAction=!0,this._deferredAction.forEach((function(t){e.actionChanged(t)}),this),this._deferredAction=[]},_srcChanged:function(e,t){var n=this;e&&this.deferredSetProp((function(){if(null!==(e=n.checkProp(e))){clearTimeout(n._srcTimer),n._canAction=!1,n.$.player.src=e;var t=n;n._srcTimer=setTimeout((function(){t._reset(),t._readyAction()}),0)}}))},_posterChanged:function(e,t){var n=this;this.deferredSetProp((function(){null!==(e=n.checkProp(e,"poster"))&&(n.$.poster.style.backgroundImage="url('".concat(n.getRealRoute(e),"')"))}))},controlsChanged:function(e,t){this.$.default.style.display=e?"":"none"},actionChanged:function(e,t){var n=this;if(e){var i=e.method;if(this.action=e,this._canAction||"setSrc"===i){var o;if(null!=(o=/^set([a-z|A-Z]*)/.exec(i))){var r=o[1],a=e.data;if("currentTime"==(r=r[0].toLowerCase()+r.slice(1))){if(a=Dt()(a),isNaN(a))return;0===this.$.player.readyState||1===this.$.player.readyState?this.$.player.addEventListener("canplay",(function e(){n.$.player[r]=a,n.$.player.removeEventListener("canplay",e,!1)}),!1):this.$.player[r]=a}else"src"===r?this._srcChanged(a):this.triggerEvent("error",{errMsg:i+" is not an action"})}else if("play"===i||"pause"===i){if(!0===this.isBackground&&"play"===i)return;this.$.fakebutton.click()}else this.triggerEvent("error",{errMsg:i+" is not an action"});this.action=null}else this._deferredAction.push(e)}},onPlay:function(){wx.invoke("syncAudioEvent",{type:"play"})},onPause:function(){wx.invoke("syncAudioEvent",{type:"pause"})},onEnded:function(){wx.invoke("syncAudioEvent",{type:"ended"})}}});var ml=null;function _l(e){return e instanceof ftparser.Component&&(e.hasBehavior("wx-cover-view")||e.hasBehavior("wx-native-cover"))}function gl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):gl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-button",options:{renderingMode:"full"},template:function(){return[{t:1,n:"block",v:!0,a:[{s:[],n:"if",d:function(e,t,n){return!e.native},b:[[null,"native"]]}],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},{t:1,n:"block",v:!0,a:[{s:[],n:"if",d:function(e,t,n){return e.native},b:[[null,"native"]]}],c:[{t:1,n:"wx-cover-view",cl:{v:"wx-button-cover-view-wrapper"},a:[],c:[{t:1,n:"wx-cover-view",id:"inner",cl:{v:"wx-button-cover-view-inner"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]}]},behaviors:["wx-base","wx-hover","wx-label-target","wx-label-aria","wx-disabled"],properties:{type:{type:String,value:"default",public:!0},size:{type:String,value:"default",public:!0},disabled:{type:Boolean,public:!0},plain:{type:Boolean,public:!0},loading:{type:Boolean,public:!0},formType:{type:String,public:!0},hover:{type:Boolean,value:!0},openType:{type:String,value:"",public:!0},native:{type:Boolean,value:!1,public:!0},hoverClass:{type:String,value:"button-hover",public:!0},hoverStartTime:{type:Number,value:20,public:!0},hoverStayTime:{type:Number,value:70,public:!0},sessionFrom:{type:String,value:"",public:!0},sendMessageTitle:{type:String,value:"",public:!0},sendMessagePath:{type:String,value:"",public:!0},sendMessageImg:{type:String,value:"",public:!0},showMessageCard:{type:Boolean,value:!1,public:!0},appParameter:{type:String,value:"",public:!0}},listeners:{tap:"_preventTapOnDisabled",longtap:"_preventTapOnDisabled",longpress:"_preventTapOnDisabled",canceltap:"_preventTapOnDisabled","this.tap":"_onThisTap"},attached:function(){this._id=L("button"),this.native||this.checkInNativeComp(),this._setAria("button"),this.openType&&(this._id,ml||(ml={},FinChatJSBridge.subscribe("openTypeEventCallback",(function(e){var t=e.buttonId,n=e.eventId,i=e.openType,o=void 0===i?"":i,r=e.payload,a=void 0===r?{}:r,s=ml[t]||{},c=s.instance,l=s.eventList;if(c){var u=l.findIndex((function(e){return e.eventId===n}));if(u>-1){var d=l[u].event;l.splice(u,1);var h="".concat(o.toLowerCase()),p=a.errMsg||"";"launchapp"===h&&p.indexOf("fail")>-1&&(h="error"),c.triggerEvent(h,vl(vl({},a),{},{errMsg:p.replace("buttonOpenTypeEvent",o)}),{bubbles:!0,composed:!0,extraFields:{touches:d.touches,changedTouches:d.changedTouches}})}}}))))},detached:function(){var e;e=this._id,ml&&(ml[e]=null,delete ml[e])},methods:{checkInNativeComp:function(){for(var e=this.parentNode;e&&!_l(e);)e=e.parentNode;null!==e&&(this.native=!0),this.native&&(this.$$.style.padding=0)},_preventTapOnDisabled:function(){if(this.disabled)return!1},_onThisTap:function(e){this.openType?this.invokeOpenTypeEvent(e):"submit"===this.formType?(e.__originalEvent=e.__originalEvent||{},e.__originalEvent._formId||(e.__originalEvent._formId=wx.generateFormId(),e.__originalEvent._formPluginId=this.getPluginId()),this.triggerEvent("formSubmit",{formId:e.__originalEvent._formId,formPluginId:e.__originalEvent._formPluginId},{bubbles:!0})):"reset"===this.formType&&this.triggerEvent("formReset",void 0,{bubbles:!0})},invokeOpenTypeEvent:function(e){var t=L("event");!function(e,t,n,i){ml[e]||(ml[e]={instance:t,eventList:[]}),ml[e].eventList.push({eventId:n,event:i})}(this._id,this,t,e);var n={};switch(this.openType){case"getUserInfo":case"openSetting":case"chooseAvatar":case"share":case"getPhoneNumber":case"feedback":break;case"contact":n.sessionFrom=this.sessionFrom,n.sendMessageTitle=this.sendMessageTitle,n.sendMessagePath=this.sendMessagePath,n.sendMessageImg=this.sendMessageImg,n.showMessageCard=this.showMessageCard;break;case"launchApp":n.appParameter=this.appParameter}FinChatJSBridge.publish("openTypeEvent",{buttonId:this._id,eventId:t,openType:this.openType,params:n})},handleLabelTap:function(e){ftparser.triggerEvent(this.shadowRoot,"tap",e.detail,{bubbles:!0,composed:!0,extraFields:{touches:e.touches,changedTouches:e.changedTouches}})}}});var yl={},wl={},xl=function(e){if("string"==typeof e)return e;var t=e.slice(0);return t[3]=t[3]/255,"rgba("+t.join(",")+")"};FinChatJSBridge.subscribe("canvasMethod",(function(e){var t=e.canvasNumber,n=e.method,i=e.data;switch(n){case"measureText":return Al(document.createElement("canvas").getContext("2d"),i.font,i.text);case"putImageData":if(yl[t])return i[0]&&"string"==typeof i[0].data&&(i[0].data=Dn.base64ToUint8ClampedArray(i[0].data)),yl[t].putImageData.apply(yl[t],i),{};break;case"getImageData":if(yl[t]){var o=yl[t].getImageData.apply(yl[t],i);return{data:Dn.uint8ClampedArrayToBase64(o.data),width:o.width,height:o.height}}break;case"toDataURL":if(yl[t])return yl[t].toDataURL.apply(yl[t],i)}}));var Al=function(e,t,n){e.font=t;var i=e.measureText(n);return{width:i.width,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.fontBoundingBoxAscent,fontBoundingBoxDescent:i.fontBoundingBoxDescent,actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,emHeightAscent:i.emHeightAscent,emHeightDescent:i.emHeightDescent,hangingBaseline:i.hangingBaseline,alphabeticBaseline:i.alphabeticBaseline,ideographicBaseline:i.ideographicBaseline}};function Cl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Cl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-canvas",behaviors:["wx-base","wx-native","wx-canvas-touch"],template:function(e,t,n){return[{t:1,n:"div",id:"container",st:{},cl:{v:"wx-canvas-container"},a:[],c:[{t:1,n:"div",id:"inner",st:{v:"width: 100%; height: 100%;"},a:[],c:[]}]},{t:1,n:"canvas",id:"canvas",st:{},a:[{n:"width",v:"300"},{n:"height",v:"150"}],c:[]},{t:1,n:"div",cl:{v:"wx-canvas-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},properties:{hidpi:{type:Boolean,value:!1,public:!0,observer:"_updateSize"},type:{type:String,value:"",public:!0},native:{type:Boolean,value:!1,public:!0,filter:"nativeChange"},canvasId:{type:String,public:!0},bindtouchstart:{type:String,value:"",public:!0},bindtouchmove:{type:String,value:"",public:!0},bindtouchend:{type:String,value:"",public:!0},bindtouchcancel:{type:String,value:"",public:!0},bindlongtap:{type:String,value:"",public:!0},disableScroll:{type:Boolean,value:!1,public:!0,observer:"disableScrollChanged"},hidden:{type:Boolean,value:!1,public:!0}},options:{renderingMode:"full"},attached:function(){var e=this;if(this._actionsDefer=[],this._actionsWaiting=!1,this.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback()},this._canvasId=this.canvasId||this.id,!this._canvasId){if(!this.type)return this.triggerEvent("error",{errMsg:"canvas-id attribute is undefined"}),this._isError=!0,void(this.$$.style.display="none");this._canvasId="custom_".concat(this._id)}var t=this._canvasId,n="canvas_".concat(window.__webviewId__,"_").concat(t,"_").concat(this.getNodeId());!this.type&&Object.prototype.hasOwnProperty.call(yl,n)?(this.triggerEvent("error",{errMsg:"canvas-id "+this.canvasId+" in this page has already existed"}),this._isError=!0,this.$$.style.display="none"):(yl[n]=this,document.addEventListener("pageReRender",this.__pageReRenderCallback),this.addTouchEventForWebview(),this._box=this._getBox(),this._canvasNumber=n,this._insert()),this.canvasLastHeight=this._getBox().height,this.canvasLastWidth=this._getBox().width},detached:function(){delete yl[this._canvasNumber],FinChatJSBridge.publish("canvasRemove",{canvasId:this._canvasId,canvasNumber:this._canvasNumber,webviewId:window.__webviewId__}),this.observer&&this.observer.disconnect(),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback),this.native&&this.removeNativeView("removeCanvas",{canvasId:this._canvasNumber,type:this.type},(function(){}))},methods:{_insert:function(){var e=this;if(this.native){var t=function(){e.beforeReady(),e.findCoverView(e._canvasNumber,{}),FinChatJSBridge.publish("canvasInsert",{canvasId:e._canvasId,canvasNumber:e._canvasNumber,webviewId:window.__webviewId__,mode:"native"}),FinChatJSBridge.subscribe("canvas"+e._canvasNumber+"actionsChanged",(function(t){var n=t.actions;if(1===n.length&&"preloadImage"===n[0].method)e.preloadImage([bl(bl({},n[0]),{},{method:"drawImage"})])}))},n={canvasId:this._canvasNumber,position:this._box,hide:this.hidden,type:this.type,disableScroll:this.disableScroll,zIndex:this._getCurrentZIndex(),fixed:this._fixed};if(k&&Ii().canvas){var i=document.createElement("x-canvas");return this.$.inner.style.display="none",this.$.canvas.style.display="none",this.$.container.$$.append(i),i.setAttribute("data",ce()(n)),i.getBoundingClientRect(),void(Ti?FinChatJSBridge.on("onTongcengWidgetReady_"+this._canvasNumber,(function(){t()})):setTimeout((function(){t()})))}k&&(n.isNewCanvasSupported=window.isNewCanvasSupported||!1),this.insertNativeView("insertCanvas",n,(function(e){/:ok/.test(e.errMsg)&&t()}))}else FinChatJSBridge.publish("canvasInsert",{canvasId:this._canvasId,canvasNumber:this._canvasNumber,webviewId:window.__webviewId__}),FinChatJSBridge.subscribe("canvas"+this._canvasNumber+"actionsChanged",(function(t){var n=t.actions,i=t.reserve,o=t.from;if(e.actions=n,!e.beforeDraw)switch(o){case"createSelectorQuery":e.beforeDraw=function(e,t,n){e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t,n),e.restore()};break;case"createCanvasContext":e.beforeDraw=function(t,n,i){if(t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,i),e.hidpi){var o=window.devicePixelRatio;t.scale(o,o)}}}if(1===n.length)switch(n[0].method){case"preloadImage":return void e.actionsChanged(n,i);case"setSize":return e._customSize={width:n[0].data[0],height:n[0].data[1]},void(e.hidpi||(e.$.canvas.$$.width=n[0].data[0],e.$.canvas.$$.height=n[0].data[1],T&&(e.$.canvas.$$.style.display="none",e._hackTimer&&clearTimeout(e._hackTimer),e._hackTimer=setTimeout((function(){e.$.canvas.$$.style.display="block"}),0))));default:n=n.concat({method:"_callback"})}else n=n.concat({method:"_callback"});e.actionsChanged(n,i)})),FinChatJSBridge.subscribe("invokeCanvasToDataUrl_"+this._canvasNumber,(function(){var t=e.$.canvas.$$,n=t.toDataURL();n=n.replace(/^data:image\/(jpg|png|jpeg);base64,/,""),FinChatJSBridge.publish("onCanvasToDataUrl_"+e._canvasNumber,{width:t.width,height:t.height,dataUrl:n})})),FinChatJSBridge.subscribe("invokeCanvasPutImageData_"+this._canvasNumber,(function(t){var n=e.$.canvas.$$.getContext("2d"),i=t.data,o=i.data,r=i.x,a=i.y,s=i.width,c=i.height,l=Dn.base64ToUint8ClampedArray(o);try{var u=new ImageData(l,s,c);n.putImageData(u,r,a,0,0,s,c),FinChatJSBridge.publish("onCanvasPutImageData_"+e._canvasNumber,{})}catch(e){console.error(e)}})),FinChatJSBridge.subscribe("invokeCanvasGetImageData_"+this._canvasNumber,(function(t){var n=e.$.canvas.$$.getContext("2d"),i=t.data,o=i.x,r=i.y,a=i.width,s=i.height,c=n.getImageData(o,r,a,s);FinChatJSBridge.publish("onCanvasGetImageData_"+e._canvasNumber,{data:Dn.uint8ClampedArrayToBase64(c.data),width:c.width,height:c.height})})),this._ctx=this.$.canvas.$$.getContext("2d"),this.beforeReady()},beforeReady:function(){var e=this;this._updatePosition(),this._updateSize(),this.observer=new ResizeObserver((function(t,n){e._updatePosition(),t.forEach((function(t){var n=t.contentRect,i=n.width,o=n.height;i&&o&&(e.canvasLastHeight!==o||e.canvasLastWidth!==i)&&(e.canvasLastHeight=o,e.canvasLastWidth=i,e._updateSize())}))})),this.observer.observe(this.$$)},_update:function(){this.updateNativeView("updateCanvas",{canvasId:this._canvasNumber,type:this.type,position:this._box,hide:this.hidden,disableScroll:this.disableScroll,zIndex:this._getCurrentZIndex(),fixed:this._fixed},(function(){}))},_updatePosition:function(){this._update()},_updateSize:function(){if(!this.native){this._box=this._getBox();var e=this._box,t=e.width,n=e.height,i=window.devicePixelRatio;if(this.hidpi)this.$.canvas.$$.width=t*i,this.$.canvas.$$.height=n*i;else{var o=this._customSize||this._box,r=o.width,a=o.height;this.$.canvas.$$.width=r,this.$.canvas.$$.height=a}this.$.canvas.$$.style.width=t+"px",this.$.canvas.$$.style.height=n+"px",this.actionsChanged(this.actions)}},measureText:function(e){if(e.canvasId===this._canvasNumber&&"measureText"===e.method){e.actions&&this.actionsChanged(e.actions);var t=e.args[0],n=this._ctx.measureText(t);FinChatJSBridge.publish("onCanvasMethodCallback",{width:n.width,cid:e.cid,canvasId:this._canvasNumber})}},putImageData:function(e,t,n,i,o,r,a){var s=this._ctx||this.$.canvas.$$.getContext("2d");try{e=new ImageData(e.data,e.width,e.height);for(var c=[],l=0,u=[t,n,i,o,r,a];l<u.length;l++){var d=u[l];if(isNaN(d)||null===d)break;c.push(d)}return c.unshift(e),s.putImageData.apply(s,c)}catch(e){console.error(e)}},getImageData:function(e,t,n,i){var o=this._ctx||this.$.canvas.$$.getContext("2d");try{return o.getImageData(e,t,n,i)}catch(e){console.error(e)}},toDataURL:function(){try{var e;return(e=this.$.canvas.$$).toDataURL.apply(e,arguments)}catch(e){console.error(e)}},preloadImage:function(e){var t=this;function n(e,t,n){FinChatJSBridge.publish("onCanvasPreloadImage",{type:e,imageId:t,url:n})}e.forEach((function(e){var i=e.method,o=e.data,r=e.imageId;if("drawImage"===i&&o[0]){var a=o[0];if(wl[a]){var s=wl[a];s.isLoading?(s.callbacks=s.callbacks||[],s.callbacks.push((function(){n(s.ready?"onload":"onerror",r,o[0])}))):n(s.ready?"onload":"onerror",r,o[0])}else{var c=wl[a]=new Image;if(c.crossOrigin="anonymous",c.onload=function(){n("onload",r,o[0]),c.ready=!0,c.isLoading=!1,c.callbacks&&c.callbacks.forEach((function(e){return e()}))},c.onerror=function(){n("onerror",r,o[0]),t._actionsWaiting=!1,c.isLoading=!1},c.isLoading=!0,/^http/.test(a))return void(c.src=a);FinChatJSBridge.subscribe("getImageBase64",(function(e){wl[e.src].src=e.data})),FinChatJSBridge.publish("getImageBase64",{src:a})}}}))},checkImageLoaded:function(e,t,n,i){var o=this,r=wl[e];return r.ready?(i(r),!0):(this._actionsWaiting=!0,this._actionsDefer.unshift([t,!0,n]),setTimeout((function(){o._actionsWaiting=!1}),6e4),r.callbacks||(r.callbacks=[]),r.callbacks.push((function(){i(r),o._actionsWaiting=!1;var e=o._actionsDefer.slice(0);if(o._actionsDefer=[],e.length>0)for(var t=e.shift();t;t=e.shift())o.actionsChanged(t[0],t[1],n)})),!1)},actionsChanged:function(e,t,n){var i=this;if(e){if(this._actionsWaiting)return this._actionsDefer.push([e,t,n]);var o=this.$.canvas.$$,r=o.getContext("2d");t||(r.fillStyle="#000000",r.strokeStyle="#000000",r.shadowColor="#000000",r.shadowBlur=0,r.shadowOffsetX=0,r.shadowOffsetY=0,this.beforeDraw(r,o.width,o.height),this.preloadImage(e));for(var a=function(){var t=e[s],o=t.method,a=t.data;if(/^set/.test(o)&&"setTransform"!==o){var c=o[3].toLowerCase()+o.slice(4),l=0;if("fillStyle"===c||"strokeStyle"===c){if("normal"===a[0])l=xl(a[1]);else if("linear"===a[0]){if(a[1]){var u=r.createLinearGradient.apply(r,Dn.toArray(a[1]));a[2]&&(a[2].forEach((function(e){var t=e[0],n=xl(e[1]);u.addColorStop(t,n)})),l=u)}}else if("radial"===a[0]){var d=a[1][0],h=a[1][1],p=[d,h,0,d,h,a[1][2]],f=r.createRadialGradient.apply(r,p);a[2].forEach((function(e){var t=e[0],n=xl(e[1]);f.addColorStop(t,n)})),l=f}else if("pattern"===a[0])return i.checkImageLoaded(a[1],e.slice(s+1),n,(function(e){e&&(r[c]=r.createPattern(e,a[2]))}))?1:0;r[c]=l}else if("globalAlpha"===c)r[c]=a[0]/255;else if("shadow"===c){var v=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];a.forEach((function(e,t){r[v[t]]="shadowColor"===v[t]?xl(e):e}))}else"fontSize"===c?r.font=r.font.replace(/\d+\.?\d*px/,a[0]+"px"):"font"===c?r.font=a[0]:"lineDash"===c?(a[0].every((function(e){return 0===e}))&&(a[0]=[]),r.setLineDash(a[0]),r.lineDashOffset=a[1]||0):("textBaseline"===c&&"normal"===a[0]&&(a[0]="alphabetic"),r[c]=a[0])}else if("fillPath"===o||"strokePath"===o)o=o.replace(/Path/,""),r.beginPath(),a.forEach((function(e){"state"===e.method||r[e.method].apply(r,Dn.toArray(e.data))})),r[o]();else if("fillText"===o){var m=Dn.toArray(a).map((function(e){return e}));r.fillText.apply(r,m)}else if("drawImage"===o){var _=Dn.toArray(a),g=_[0],b=_.slice(1);if(wl=wl||{},!i.checkImageLoaded(g,e.slice(s+1),n,(function(e){e&&r.drawImage.apply(r,[e].concat(Dn.toArray(b)))})))return 0}else"clip"===o?(a.forEach((function(e){"state"===e.method||r[e.method].apply(r,Dn.toArray(e.data))})),r.clip()):"preloadImage"===o?i.preloadImage([bl(bl({},t),{},{method:"drawImage"})]):"_callback"===o?wd.publishCanvasEvent("canvasDrawCallback",{canvasId:i._canvasNumber}):r[o].apply(r,Dn.toArray(a))},s=0;s<e.length&&0!==a();s++);!this._actionsWaiting&&n&&FinChatJSBridge.publish("onDrawCanvas",{errMsg:"drawCanvas:ok",cid:n,canvasId:this._canvasNumber})}},disableScrollChanged:function(e,t){this._isMobile()&&FinChatJSBridge.invoke("updateCanvas",{canvasId:this._canvasNumber,type:this.type,disableScroll:e},(function(e){}))},getContextId:function(){return this._canvasNumber},nativeChange:function(e){return!N&&e}}}),window.ftparser.registerElement({is:"wx-checkbox",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-checkbox-wrapper"},a:[],c:[{t:1,n:"div",id:"input",cl:{v:"wx-checkbox-input"},a:[{n:"wx-checkbox-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-checkbox-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"color",o:"s",e:function(e,i,o){return t(o,n,"_getColor",[e.checked,e.color])},l:null,b:[[null,"_getColor"],[null,"checked"],[null,"color"]]}],c:[]},{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-label-target","wx-item","wx-disabled","wx-label-aria","wx-reload"],properties:{color:{type:String,value:"#09BB07",public:!0}},listeners:{tap:"_inputTap"},attached:function(){this._setAria("checkbox")},saved:function(e){var t={};this.saveCompVar(t,["checked"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},methods:{_getColor:function(e,t){return e?t:""},_inputTap:function(){if(this.disabled)return!1;this.checked=!this.checked,this.changedByTap()},handleLabelTap:function(){this._inputTap()}}}),window.ftparser.registerElement({is:"wx-checkbox-group",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-data-component","wx-group"],properties:{value:{type:Array,value:[]}},methods:{addItem:function(e){e.checked&&this.value.push(e.value)},removeItem:function(e){if(e.checked){var t=this.value.indexOf(e.value);t>=0&&this.value.splice(t,1)}},renameItem:function(e,t,n){if(e.checked){var i=this.value.indexOf(n);i>=0&&(this.value[i]=t)}},changed:function(e){if(e.checked)this.value.push(e.value);else{var t=this.value.indexOf(e.value);t>=0&&this.value.splice(t,1)}}}}),window.ftparser.registerElement({is:"wx-form",template:function(e,t,n){return[{t:1,n:"span",id:"wrapper",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base"],properties:{reportSubmit:{type:Boolean,value:!1,public:!0},reportSubmitTimeout:{type:Number,value:0,public:!0}},listeners:{"this.formSubmit":"submitHandler","this.formReset":"resetHandler"},attached:function(){var e=this;this.__routeDoneId=window.ftparser.addListenerToElement(document,"routeDone",(function(){e.uniqueId=v()()/1e3|0}))},detached:function(){window.ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId)},methods:{resetDfs:function(e){if(e.childNodes)for(var t=0;t<e.childNodes.length;++t){var n=e.childNodes[t];n instanceof ftparser.Component&&(n.hasBehavior("wx-data-component")&&n.resetFormData(),this.resetDfs(n))}},getFormData:function(e,t){if(e instanceof ftparser.Component){if(e.hasBehavior("wx-data-component"))return"wx-input"===e.is||"wx-picker"===e.is||"wx-textarea"===e.is?e.getFormData((function(e){t(e)})):t(e.getFormData());if(e.hasBehavior("wx://form-field")&&(e.data.name||e.name))return t(e.data.value);if(e.hasBehavior("wx://form-field-group"))return this.asyncDfs(e.shadowRoot,t)}return t()},asyncDfs:function(e,t){var n=this,i=function(){"function"==typeof t&&t(),t=void 0};if(!e.childNodes)return i();for(var o=e.childNodes.length,r=function(){var t=e.childNodes[a];t instanceof ftparser.Element?n.getFormData(t,(function(e){if(void 0!==e){var r=t.name||t.data.name;n._data[r]=e}n.asyncDfs(t,(function(){0==--o&&i()}))})):--o},a=0;a<e.childNodes.length;++a)r();0===o&&i()},_asyncDfs:function(e,t,n){var i=this;this.asyncDfs(this,(function(){i.triggerEvent("submit",{value:i._data,target:e},{extraFields:{_requireActive:!0}})}))},submitHandler:function(e){var t={id:e.target.id,dataset:e.target.dataset,offsetTop:e.target.$$&&e.target.$$.offsetTop||0,offsetLeft:e.target.$$&&e.target.$$.offsetLeft||0};this._data=za()(null),this._asyncDfs(t,e.detail.formId,e.detail.formPluginId)},resetHandler:function(e){var t={id:e.target.id,dataset:e.target.dataset,offsetTop:e.target.$$&&e.target.$$.offsetTop||0,offsetLeft:e.target.$$&&e.target.$$.offsetLeft||0};return this._data=za()(null),this.resetDfs(this),this.triggerEvent("reset",{target:t}),!1}}}),window.ftparser.registerElement({is:"wx-icon",template:function(e,t,n){return[{t:1,n:"i",cl:{e:function(e,t,n){return"wx-icon-"+e.type},b:[[null,"type"]]},a:[{n:"color",o:"s",e:function(e,t,n){return e.color},l:[null],b:[[null,"color"]]},{n:"font-size",o:"s",e:function(e,t,n){return e.size+"px"},l:null,b:[[null,"size"]]}],c:[]}]},behaviors:["wx-base","wx-size-normalizer"],properties:{type:{type:String,public:!0},size:{type:String,value:23,public:!0,filter:"normalizeSize"},color:{type:String,public:!0}},attached:function(){this.$$.setAttribute("role","img")}}),window.ftparser.registerElement({is:"wx-image",options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"div",a:[],c:[]},{t:1,n:"span",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx://request-sender","wx-reload"],properties:{src:{type:String,observer:"srcChanged",public:!0},mode:{type:String,observer:"modeChanged",public:!0},webp:{type:Boolean,value:!1,public:!0},lazyLoad:{type:Boolean,value:!1,observer:"lazyLoadChanged",public:!0},backgroundSize:{type:String,observer:"backgroundSizeChanged",value:"100% 100%",public:!0},backgroundPosition:{type:String,observer:"backgroundPositionChanged",public:!0},backgroundRepeat:{type:String,observer:"backgroundRepeatChanged",value:"no-repeat",public:!0},showMenuByLongpress:{type:Boolean,value:!1,public:!0},renderingMode:{type:String,value:"backgroundImage",public:!0},lazyLoadMargin:{type:Number,value:2,public:!0,observer:"lazyLoadMarginChanged"},referrerPolicy:{type:String,value:"unsafe-url",public:!0},_hasScrollViewParent:{type:Boolean,value:!1},_disableSizePositionRepeat:{type:Boolean,value:!1},_imageInstanceId:{type:String}},listeners:{longpress:"_onLongPress"},created:function(){this._src="",this._attached=!1,this._pageReRenderCallback=this._pageReRenderCallback.bind(this),this._showImage=this._showImage.bind(this),this._changeId=0},attached:function(){this.$$.setAttribute("role","img"),this._attached=!0,this._originalHeight=this.$$.style.height||"",this._originalWidth=this.$$.style.width||"",this.src&&this._initialize(this.lazyLoad),this.backgroundSizeChanged(this.backgroundSize),this.backgroundRepeatChanged(this.backgroundRepeat)},detached:function(){this._attached=!1,this.lazyLoad&&this._intersectionObserverId&&this.removeIntersectionObserver(),document.removeEventListener("pageReRender",this._pageReRenderCallback)},saved:function(e){var t={};this.saveCompVar(t,["_hasBeenShown"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);this._isRestored=!0,t&&this.restoreCompVar(t)},methods:{_initialize:function(e){var t=this._isRestored&&this._hasBeenShown;this._isRestored=!1,e?t?this._showImage(this._changeId,t):(this.removeIntersectionObserver(),this.addIntersectionObserver()):this._showImage(this._changeId,t)},lazyLoadMarginChanged:function(){this.lazyLoad&&!this._hasBeenShown&&(this.removeIntersectionObserver(),this.addIntersectionObserver())},removeIntersectionObserver:function(){this._intersectionObserverId&&(__virtualDOM__.removeIntersectionObserver(this._intersectionObserverId),this._intersectionObserverId=null)},addIntersectionObserver:function(){if(!this._intersectionObserverId){var e=document.documentElement.clientWidth,t=document.documentElement.clientHeight,n=this.lazyLoadMargin,i=[{selector:null,margins:{left:e*n,right:t*n,top:e*n,bottom:t*n}}],o=this;this._intersectionObserverId=__virtualDOM__.addIntersectionObserver(this.shadowRoot,"#div",i,{thresholds:[.1],minWidthOrHeight:1},(function(e){e.intersectionRatio>.1&&o._showImage(o._changeId)}))}},_getImagePath:function(e,t,n,i){if(void 0!==e&&"function"==typeof t)if(""!==e){e=e.trim(),/^\/\//.test(e)&&(e="http:".concat(e)),e=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}(e,"no-referrer"!==this.referrerPolicy?"unsafe-url":this.referrerPolicy);var o=/^https?:\/\//.test(e),r=/^\s*data:image\//.test(e);e=this.getRealRoute(e),o||r?(this.webp,t(e)):t(e.replace(/^\//,""))}else t(e)},_showImage:function(e,t){var n=this;this.deferredSetProp((function(){var i=n.checkProp();if(null!==i){var o=n;n._hasBeenShown=!0,n._getImagePath(i,(function(r){var a,s;o.loaded=!1,o.width=void 0,o.height=void 0,"img"===n.renderingMode?(a=n.shadowRoot.createNativeNode("img"),s=a.$$):s=new Image,s.onerror=function(n){o.reportMediaComponentStatus({src:o.src,evtId:92,evtNote:o.lazyLoad?2:1}),n.stopPropagation(),e===o._changeId&&(!t&&r&&o.triggerEvent("error",{errMsg:"GET "+r+" 404 (Not Found)"}),s=void 0,a&&(a=void 0))},s.referrerPolicy=n.referrerPolicy,s.onload=function(n){var i=o.getImageInfo(r),c=i.size,l=void 0===c?0:c,u=i.duration,d=void 0===u?0:u,h=[o.lazyLoad?2:1,l,d,-1,-1,this.width,this.height].join(";");if(o.reportMediaComponentStatus({src:o.src,evtId:91,evtNote:h}),n.stopPropagation(),o.loaded=!0,o.width=this.width,o.height=this.height,e===o._changeId){!t&&r&&o.triggerEvent("load",{width:this.width,height:this.height});var p=o.ratio=this.width/this.height;"widthFix"!==o.mode&&"heightFix"!==o.mode||("heightFix"===o.mode&&(o.$$.style.width=o.getHeight()*p+"px"),"widthFix"===o.mode&&(o.$$.style.height=o.getWidth()/p+"px"),window.requestAnimationFrame((function(){document.dispatchEvent(new CustomEvent("pageReRender",{}))})),document.addEventListener("pageReRender",o._pageReRenderCallback)),s=void 0,a&&(a=void 0),o.triggerIOSRender()}},o.removeIntersectionObserver();var c=r||i;if(c.indexOf("hyfile://")>-1&&ki&&(c+="?t=".concat(v()())),s.src=c,n._src=c,"img"===n.renderingMode){n.$.div.style.fontSize=0;var l=n.$.div.$$.__wxElement;l.childNodes.forEach((function(e){return l.removeChild(e)})),l.appendChild(a)}else o.$.div.style.backgroundImage="url('".concat(n._src,"')")}),e,t)}}))},triggerIOSRender:function(){},getImageInfo:function(e){var t={},n=[];return performance&&performance.getEntriesByType&&(n=performance.getEntriesByType("resource")),n.forEach((function(n){n.name===e&&(t.size=n.transferSize,t.duration=_()(n.duration,10))})),t},_pageReRenderCallback:function(){"widthFix"===this.mode&&void 0!==this.ratio&&(this.$$.style.height=this.getWidth()/this.ratio+"px"),"heightFix"===this.mode&&void 0!==this.ratio&&(this.$$.style.width=this.getHeight()*this.ratio+"px")},srcChanged:function(e,t){if(this._attached&&e!==t){var n=this;setTimeout((function(){n._changeId++,document.removeEventListener("pageReRender",n._pageReRenderCallback),n._initialize(n.lazyLoad)}))}},_checkMode:function(e){return["scaleToFill","aspectFit","aspectFill","top","bottom","center","left","right","top left","top right","bottom left","bottom right"].indexOf(e)>-1},lazyLoadChanged:function(e,t){e!==t&&t&&this._initialize(e)},modeChanged:function(e,t){if(this._checkMode(e))switch("widthFix"!==t&&"heightFix"!==t||(this.$$.style.height=this._originalHeight,this.$$.style.width=this._originalWidth),this._disableSizePositionRepeat=!0,this.$.div.$$.style.backgroundSize="auto auto",this.$.div.$$.style.backgroundPosition="0% 0%",this.$.div.$$.style.backgroundRepeat="no-repeat",e){case"scaleToFill":this.$.div.$$.style.backgroundSize="100% 100%";break;case"aspectFit":this.$.div.$$.style.backgroundSize="contain",this.$.div.$$.style.backgroundPosition="center center";break;case"aspectFill":this.$.div.$$.style.backgroundSize="cover",this.$.div.$$.style.backgroundPosition="center center";break;case"widthFix":case"heightFix":this.$.div.$$.style.backgroundSize="100% 100%",document.addEventListener("pageReRender",this._pageReRenderCallback),window.requestAnimationFrame((function(){document.dispatchEvent(new CustomEvent("pageReRender",{}))}));break;case"top":this.$.div.$$.style.backgroundPosition="top center";break;case"bottom":this.$.div.$$.style.backgroundPosition="bottom center";break;case"center":this.$.div.$$.style.backgroundPosition="center center";break;case"left":this.$.div.$$.style.backgroundPosition="center left";break;case"right":this.$.div.$$.style.backgroundPosition="center right";break;case"top left":this.$.div.$$.style.backgroundPosition="top left";break;case"top right":this.$.div.$$.style.backgroundPosition="top right";break;case"bottom left":this.$.div.$$.style.backgroundPosition="bottom left";break;case"bottom right":this.$.div.$$.style.backgroundPosition="bottom right"}else this._disableSizePositionRepeat=!1},getWidth:function(){var e=this.$$.offsetWidth,t=window.getComputedStyle(this.$$);return e-((Dt()(t.borderLeftWidth)||0)+(Dt()(t.borderRightWidth)||0))-((Dt()(t.paddingLeft)||0)+(Dt()(t.paddingRight)||0))},getHeight:function(){var e=this.$$.offsetHeight,t=window.getComputedStyle(this.$$);return e-((Dt()(t.borderTopWidth)||0)+(Dt()(t.borderBottomWidth)||0))-((Dt()(t.paddingTop)||0)+(Dt()(t.paddingBottom)||0))},backgroundSizeChanged:function(e){this._disableSizePositionRepeat||(this.$.div.style.backgroundSize=e)},backgroundPositionChanged:function(e){this._disableSizePositionRepeat||(this.$.div.$$.style.backgroundPosition=e)},backgroundRepeatChanged:function(e){this._disableSizePositionRepeat||(this.$.div.$$.style.backgroundRepeat=e)},_onLongPress:function(){if(this.showMenuByLongpress&&this.loaded){var e=this.src;e=e.trim(),this.$$.getBoundingClientRect(),/^data:image\//.test(e)?(e.split(",")[1]||"").trim():this.getRealRoute(e,window.__route__)}}}});var Sl=[];["onImageViewTouchStart","onImageViewTouchMove","onImageViewTouchEnd","onImageViewTouchCancel"].forEach((function(e){window._onTouchEvent&&window._onTouchEvent(e,(function(e){Sl.forEach((function(t){t(e)}))}))})),window.ftparser.registerElement({is:"wx-cover-image",template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-cover-image"},st:{v:"display: inherit;"},a:[],c:[{t:1,n:"img",id:"img",cl:{v:""},st:{v:"display: none;"},a:[],c:[]}]},{t:1,n:"div",id:"content",cl:{v:"wx-cover-image"},st:{v:"display: none;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-native","wx-positioning-target","wx-native-cover"],properties:{ariaRole:{type:String,value:"img",public:!0},ariaLabel:{type:String,value:"",public:!0},src:{type:String,value:"",observer:"_srcChanged",filter:"_formatSrc",public:!0},viewName:{type:String,value:"ImageView"},hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"}},options:{renderingMode:"full"},created:function(){this.__handleCoverViewTouch=this._handleCoverViewTouch.bind(this),Sl.push(this.__handleCoverViewTouch),this._imageLoaded=this.imageLoaded.bind(this)},attached:function(){this._srcChanged(this.src)},detached:function(){var e=this,t=Sl.findIndex((function(t){return t===e.__handleCoverViewTouch}));-1!==t&&Sl.splice(t,1)},listeners:{"this.tap":"_onCoverImageTap"},methods:{_onCoverImageTap:function(e){this._elementClickReport(e)},insert:function(e,t){var n=this,i=this.src;e.url=this.getRealRoute(i),e.accessibility=!0,e.ariaLabel=this.ariaLabel,e.ariaRole=this.ariaRole,this.sendInsertEvent("insertImageView",e,(function(o){o.errMsg.indexOf(":ok")>-1&&(n.$$.setAttribute("view-id",e.viewId),n._viewId=e.viewId,n._args={position:e.position,style:e.style,viewId:e.viewId,fixed:e.fixed,url:e.url,zIndex:e.zIndex},n._lastBgColor=e.style.bgColor,"function"==typeof t&&t(n._viewId),n.src!==i&&n._srcChanged(n.src))}))},update:function(e,t,n){var i=this;if(!this._detached){var o=t?E()(e):this.diff(e,this._args);if(!o)return;this._args=El(El({},this._args),e);var r={viewId:this._viewId};o.forEach((function(t){r[t]=e[t]})),r.style&&(this._lastBgColor===r.style.bgColor?(r.style=JSON.parse(ce()(r.style)),delete r.style.bgColor):this._lastBgColor=r.style.bgColor),this.sendUpdateEvent("updateImageView",r,(function(){"function"==typeof n&&n(i._viewId)}))}},_update:function(e){var t=this;if(e){var n=new Image,i=v()(),o=this.getRealRoute(e);if(this._lastTimestamp=i,n.timestamp=i,this.loaded=!1,this.width=void 0,this.height=void 0,O){var r=this.$.img.$$;n.onload=function(){n.timestamp===t._lastTimestamp&&o&&(t.triggerEvent("load",{width:n.width,height:n.height}),t.loaded=!0,t.width=n.width,t.height=n.height),r.src=o,r.style.display="block"},n.onerror=function(){n.timestamp===t._lastTimestamp&&o&&t.triggerEvent("error",{errMsg:"GET "+o+" 404 (Not Found)"})},n.src=o}else n.onload=function(){n.timestamp===t._lastTimestamp&&o&&(t.triggerEvent("load",{width:n.width,height:n.height}),t._imageLoaded(),t.loaded=!0,t.width=n.width,t.height=n.height)},n.onerror=function(){n.timestamp===t._lastTimestamp&&o&&t.triggerEvent("error",{errMsg:"GET "+o+" 404 (Not Found)"})},this.$.container.$$.innerHTML="",this.$.container.$$.appendChild(n),n.src=o}},_formatSrc:function(e){return e&&["·"].forEach((function(t){var n=new RegExp(t,"ig");e=e.replace(n,(function(e){return window.encodeURIComponent(e)}))})),e},_srcChanged:function(e){var t=this;this._isReady||O?/^\/\//.test(e)?this.src="http:"+e:(t._update(e),t._viewId&&t.update({viewId:t._viewId,url:this.getRealRoute(e),wId:window.__webviewId__},!1,(function(){}))):this._deferred.push({callback:"_srcChanged",args:[e]})},hiddenChanged:function(){this.toggleHidden()},toggleHidden:function(e){var t={viewId:this._viewId,hide:void 0!==e?Boolean(e):this.hidden};this.sendUpdateEvent("updateImageView",t,(function(){}))},imageLoaded:function(){document.dispatchEvent(new CustomEvent("pageReRender",{}))}}});var kl={left:"left",center:"center",right:"right",start:"left",end:"right",inherit:"left",initial:"left",justify:"left","-webkit-center":"center","-webkit-right":"right","-webkit-left":"left"},Tl={is:"wx-input",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"role",v:"textbox"}],c:[{t:1,n:"input",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"input",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.showValue},b:[[null,"showValue"]],t:3}]},{t:1,n:"div",id:"placeholder",cl:{e:function(e,t,n){return"input-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"div",id:"placeholderDark",cl:{e:function(e,t,n){return"input-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},behaviors:["wx-base","wx-data-component","wx-native","wx-positioning-target","wx-class-prefix","wx-reload","wx-size-normalizer","wx-keyboard-control"],properties:{focus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},placeholder:{type:String,value:"",observer:"_placeholderChange",public:!0},placeholderStyle:{type:String,value:"",public:!0,filter:function(e){return wx.transformRpx(e,!0)},observer:function(){this._checkPlaceholderStyle(this.value)}},placeholderClass:{type:String,value:"",public:!0,observer:"_placeholderClassChange"},value:{type:String,value:"",filter:"defaultValueChange",public:!0},showValue:{type:String,value:""},maxlength:{type:Number,value:140,observer:"_maxlengthChanged",public:!0},type:{type:String,value:"text",public:!0},password:{type:Boolean,value:!1,public:!0,observer:"_typeChanged"},disabled:{type:Boolean,value:!1,public:!0,observer:"_defaultPropChange"},cursorSpacing:{type:String,value:0,public:!0,filter:"normalizeSize"},confirmHold:{type:Boolean,value:!1,public:!0},confirmType:{type:String,value:"done",public:!0},holdKeyboard:{type:Boolean,value:!1,public:!0},cursor:{type:null,value:-1,public:!0,observer:"_cursorChange"},selectionStart:{type:null,value:-1,public:!0,observer:"_selectionStartChange"},selectionEnd:{type:null,value:-1,public:!0,observer:"_selectionEndChange"},adjustPosition:{type:Boolean,value:!0,public:!0},bindinput:{type:String,value:"",public:!0,observer:"_bindinputChanged"},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"}},data:{_prefixedPlaceholderClass:""},listeners:{tap:"_inputFocusWrap","this.longtap":"stopPropagation","this.longpress":"stopPropagation"},created:function(){this.viewId=this.getPositioningId(),this.bindMethod(["input"])},attached:function(){this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this;if(!this._inputFontSize){var t=window.getComputedStyle(this.$$);this._inputFontSize=Dt()(t.fontSize)||16}"android"===wd.getPlatform()&&this.$.input&&(this.$.input.style.textIndent="0.5px"),this._valueQueue=[],this._inputIndex=-1,this._inputId=+(String(v()()).slice(-5)+""+this._id),this._attached=!0,this._placeholderClassChange(this.placeholderClass),this._value=this.value,this.__routeDoneId=ftparser.addListenerToElement(document,"routeDone",this.checkAutoFocus.bind(this)),this.__onKeyboardCompleteId=ftparser.addListenerToElement(document,"onKeyboardComplete",this.onKeyboardComplete.bind(this)),this.__currentKeyboardHeight=0,this.__onkeyboardheightchangeId=ftparser.addListenerToElement(document,"onkeyboardheightchange",this.onkeyboardheightchange.bind(this)),this.__setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",this.setKeyboardValue.bind(this)),this.__onKeyboardConfirmId=ftparser.addListenerToElement(document,"onKeyboardConfirm",this.onKeyboardConfirm.bind(this)),this.__onKeyboardShowId=ftparser.addListenerToElement(document,"onKeyboardShow",this.onKeyboardShow.bind(this)),this.__pageReRenderCallback=this.pageReRenderCallback.bind(this),document.addEventListener("pageReRender",this.__pageReRenderCallback),document.addEventListener("windowOrientationChangeFinish",this.__pageReRenderCallback),new ResizeObserver((function(t,n){e._updateInput(),e.checkLineHeight()})).observe(this.$$),this.observer=new MutationObserver((function(t,n){clearTimeout(e._mutationTimeout),e._mutationTimeout=setTimeout((function(){e._updateInput()}),100)})),this.observer.observe(this.$$,{attributes:!0,childList:!0,subtree:!0})},_detachedCb:function(){this._attached=!1,this.observer.disconnect(),document.removeEventListener("pageReRender",this.__pageReRenderCallback),document.removeEventListener("windowOrientationChangeFinish",this.__pageReRenderCallback),ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId),ftparser.removeListenerFromElement(document,"onKeyboardComplete",this.__onKeyboardCompleteId),ftparser.removeListenerFromElement(document,"onkeyboardheightchange",this.__onkeyboardheightchangeId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.__setKeyboardValueId),ftparser.removeListenerFromElement(document,"onKeyboardShow",this.__onKeyboardShowId),ftparser.removeListenerFromElement(document,"onKeyboardConfirm",this.__onKeyboardConfirmId),this._keyboardShow&&wd.hideKeyboard({inputId:this._inputId})},stopPropagation:function(e){return e.stopPropagation(),!1},_focusChange:function(e){var t=v()(),n=this.focus===e&&t-200>=this._lastFocusChangeTime;return(this.focus!==e||n)&&(this._lastFocusChangeTime=t,this._couldFocus(e)),e},checkAutoFocus:function(){(this.__autoFocused||window.__onAppRouteDone)&&(this.__autoFocused=!0,this._couldFocus(this.autoFocus||this.focus))},_updateInput:function(){if(this._keyboardShow&&this._inputId){var e=this.getCurrentInputArgs(),t=this._diff(this.inputArgs,e);t&&(this.inputArgs=e,t.inputId=this._inputId,FinChatJSBridge.invoke("updateInput",t,(function(e){})))}},pageReRenderCallback:function(){this.checkAutoFocus(),this._updateInput(),this.checkLineHeight()},publishInputEvent:function(e){this._value!==e.detail.value&&(this._value||e.detail.value)&&(this.id,this.dataset,this.$$.offsetTop,this.$$.offsetLeft)},onKeyboardConfirm:function(e){var t=this;if(this._keyboardShow&&e.detail.inputId===this._inputId){if(this._isInScrollView){if(this._onKeyboardConformThrottle)return;this._onKeyboardConformThrottle=!0,setTimeout((function(){t._onKeyboardConformThrottle=!1}),200)}this.publishInputEvent(e),this._value=e.detail.value,this.triggerEvent("confirm",{value:this._value})}},onKeyboardShow:function(e){this._inputId===e.detail.inputId&&(this._keyboardShow||(this._firstKeyboardShowTime=v()()),this._keyboardShow=!0,(T||k&&Ii().input)&&this._updateInput(),this.triggerEvent("focus",{value:this.value,height:e.detail.height}))},onKeyboardComplete:function(e){var t=this;if(!0===this._isInScrollView){if(this._onKeyboardCompleteThrottle)return void this._resetInputState();this._onKeyboardCompleteThrottle=!0,setTimeout((function(){t._onKeyboardCompleteThrottle=!1}),200)}e.detail.inputId===this._inputId&&this._keyboardShow&&(e.detail.value=null!==this._forceValue&&void 0!==this._forceValue?this._forceValue:e.detail.value,this.publishInputEvent(e),this._value=e.detail.value,this.__formResetCallback&&(this.value="",this.__formResetCallback=void 0),"function"==typeof this.__formCallback&&(this.__formCallback(this._value),this.__formCallback=void 0),this._setKeyboardLock(),this.triggerEvent("change",{value:this._value}),this.triggerEvent("blur",{value:this._value,cursor:e.detail.cursor}),this._resetInputState(),this._cursor=this.inputArgs.cursor=e.detail.cursor)},onkeyboardheightchange:function(e){e.detail.inputId===this._inputId&&this.triggerEvent("keyboardheightchange",e.detail)},_setKeyboardLock:function(){var e=this;this._keyboardLock=!0,setTimeout((function(){e._keyboardLock=!1}),"android"===wd.getPlatform()?1e3:100)},setKeyboardValue:function(e){var t=e.detail,n=t.inputId,i=t.value,o=t.keyCode;if(this._keyboardShow&&n===this._inputId&&(8===_()(o,10)||i!==this._value))if(xi)this._value=i,i&&this._valueQueue.push(i),this._cursor=e.detail.cursor,this._checkPlaceholderStyle(i);else{this._value=i,this._cursor=e.detail.cursor,this._checkPlaceholderStyle(i);var r=this.__modelValueName&&this.__modelValueName.value,a={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};this.bindinput||r?FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:r},data:{type:"input",timeStamp:v()(),detail:{value:i,cursor:e.detail.cursor,keyCode:o},target:a,currentTarget:a,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),inputId:this._inputId,updateEventName:void 0===this._insertNativeFail||this._insertNativeFail?"updateInput":"updateNativeInput"}}):this.triggerEvent("input",{value:this._value,cursor:this._cursor,keyCode:o})}},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),r=Dt()(t.fontWeight);isNaN(r)?r=t.fontWeight:r<500?r="normal":r>=500&&(r="bold");var a=t.textAlign,s=t.backgroundColor?t.backgroundColor:"rgba(0, 0, 0, 0)";this._inputFontSize=Dt()(t.fontSize)||16;var c=n.width-i[0]-i[1],l=n.height-o[0]-o[1];return{width:c<0?0:c,height:l<0?0:l,left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0],scrollX:window.scrollX,scrollY:window.scrollY,offsetLeft:n.left+i[0]+window.scrollX,offsetTop:n.top+o[0]+window.scrollY,fontFamily:t.fontFamily,fontSize:this._inputFontSize,fontWeight:r,color:Y(t.color),backgroundColor:Y(s),keyboardAccessory:this.computKeyboardAccessoryHeight(),marginBottom:this.cursorSpacing||Dt()(t.marginBottom)||0,textAlign:kl[a]||"left",borderTopLeftRadius:Dt()(t.borderTopLeftRadius.replace("px",""))||0,borderTopRightRadius:Dt()(t.borderTopRightRadius.replace("px",""))||0,borderBottomLeftRadius:Dt()(t.borderBottomLeftRadius.replace("px",""))||0,borderBottomRightRadius:Dt()(t.borderBottomRightRadius.replace("px",""))||0}},getPlaceholderStyle:function(){var e="dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?this.$.placeholderDark:this.$.placeholder,t=window.getComputedStyle(e),n=Dt()(t.fontWeight);return n=isNaN(n)?t.fontWeight:n<500?"normal":"bold",{fontSize:Dt()(t.fontSize)||16,fontWeight:n,color:Y(t.color)}},resetFormData:function(){this._keyboardShow?(this.__formResetCallback=!0,wd.hideKeyboard()):(this.value="",this._checkPlaceholderStyle(this.value)),"number"==typeof this._groupID&&(this._groupID=null)},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_resetInputState:function(){this._keyboardShow=!1,this.value!==(this._value||"")&&(this.value=this._value||""),this._valueQueue=[],this._inputIndex=-1,this._value=void 0,this.$.input.style.opacity=1,this._checkPlaceholderStyle(this.value)},_couldFocus:function(e){var t=this,n=this,i=wd.getPlatform();if(!this._keyboardShow&&e)window._addActiveInputQueue&&window._addActiveInputQueue(n);else if(this._keyboardShow&&!e){if("ios"===i){var o=v()()-this._keyboardShowTimeStamp,r=Math.max(200-o,0);if(r>0)return void setTimeout((function(){wx.hideKeyboard({inputId:n._inputId})}),r)}window.requestAnimationFrame((function(){wx.hideKeyboard({inputId:t._inputId})}))}},_maxlengthChanged:function(e,t){var n=this.value.slice(0,e);n!==this.value&&(this.value=n)},_placeholderChange:function(){this._keyboardShow||this._checkPlaceholderStyle(this.value)},formateEventTarget:function(){var e=this.__modelValueName&&this.__modelValueName.value,t={bindinput:this.bindinput,bindkeyboardheightchange:this.bindkeyboardheightchange,target:{id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},setKeyboardValue:!0,securityType:"input",modelValueName:e,updateEventName:void 0===this._insertNativeFail||this._insertNativeFail?"updateInput":"updateNativeInput"};return t.currentTarget=t.target,t.nodeId=this.getNodeId(),this.bindinput||e||this.bindkeyboardheightchange?ce()(t):""},getCurrentInputArgs:function(){var e=this.$$.getBoundingClientRect();return{type:["text","number","idcard","digit","emoji"].indexOf(this.type)>-1?this.type:"text",maxLength:this.maxlength,password:this.password||"password"===this.type,style:this.getComputedStyle(),data:this.formateEventTarget(),placeholder:this.placeholder||"",placeholderStyle:this.getPlaceholderStyle("light"),confirmHold:this.confirmHold,confirmType:this.confirmType,adjustPosition:this.adjustPosition,holdKeyboard:this.holdKeyboard,disabled:this.disabled,hide:0===e.width||0===e.height,cursor:this._cursor,selectionStart:this._convertToNumber(this.selectionStart),selectionEnd:this._convertToNumber(this.selectionEnd)}},_showNativeInput:function(e,t,n){var i=this;if(this._attached&&!this._keyboardShow&&!this._isShowingKeyboard){if(this._keyboardLock)return this.triggerEvent("blur"),void setTimeout((function(){i._keyboardLock=!1}),1e3);var o=this;if(this.inputArgs=this.getCurrentInputArgs(),!(this.hidden||this.disabled||this.inputArgs.style&&this.inputArgs.style.width<=0&&this.inputArgs.style.height<=0)){this._isShowingKeyboard=!0,this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=e,this.inputArgs.selectionStart=this._convertToNumber(t),this.inputArgs.selectionEnd=this._convertToNumber(n),this.inputArgs.inputId=this._inputId,this.inputArgs.focus=!0;var r=this.value,a=this.placeholder;FinChatJSBridge.invoke("showKeyboard",this.inputArgs,(function(e){o._isShowingKeyboard=!1;try{o._inputId=Number(e.inputId),o._keyboardShow=!0,o._keyboardShowTimeStamp=v()(),o.$.input.style.opacity=0,r!==o.value&&FinChatJSBridge.invoke("updateInput",{value:o.value||"",inputId:o._inputId},(function(e){})),a!==o.placeholder&&FinChatJSBridge.invoke("updateInput",{placeholder:o.placeholder||"",inputId:o._inputId},(function(e){})),o.findKeyboardAccessory()}catch(e){console.log("error",e)}}))}}},_convertToNumber:function(e){var t=Dt()(e);return isNaN(t)?-1:t},_inputFocusWrap:function(){this._inputFocus(-1,-1,-1)},_inputFocus:function(e,t,n){var i=this;document.activeElement.blur(),this.disabled||setTimeout((function(){i.__inputFocus(e,t,n)}),"android"===wd.getPlatform()?100:10)},__inputFocus:function(e,t,n){this._showNativeInput(e,t,n)},_diff:function(e,t){for(var n={},i=!1,o=0,r=E()(t);o<r.length;o++){var a=r[o];"[object Object]"===Object.prototype.toString.call(t[a])?ce()(t[a])!==ce()(e[a])&&(n[a]=t[a],i=!0):e[a]!==t[a]&&(n[a]=t[a],i=!0)}return i?n:void 0},defaultValueChange:function(e){var t=this;if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId&&this._keyboardShow)if(xi)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("updateInput",{value:e||"",inputId:this._inputId,confirmHold:this.confirmHold},(function(){t._forceValue=null,t._keyboardShow||(t._value=e,t._resetInputState())}))):this._valueQueue=this._valueQueue.slice(this._inputIndex+1);else{var n=this._value;e!==n&&(this._forceValue=e,FinChatJSBridge.invoke("updateInput",{value:e||"",inputId:this._inputId,confirmHold:this.confirmHold},(function(){t._forceValue=null,t._keyboardShow||(t._value=e,t._resetInputState())})))}else this._checkPlaceholderStyle(e);return this._value=e,e},_getPlaceholderStyle:function(e){return e+";display:none;"},_typeChanged:function(e){return this._keyboardShow||this._checkPlaceholderStyle(this.value),e},_hiddenChanged:function(e){this._inputId&&FinChatJSBridge.invoke("updateNativeInput",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))},_bindinputChanged:function(){this._inputId&&this._updateInput()},checkLineHeight:function(){var e=this;window.requestAnimationFrame((function(){var t=window.getComputedStyle(e.$$),n=e.$$.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border".concat(e,"Width")])||0)+(Dt()(t["padding".concat(e)])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border".concat(e,"Width")])||0)+(Dt()(t["padding".concat(e)])||0)})),r=n.height-o[0]-o[1],a=e.$.input;r!==e.__lastHeight&&(a.style.height=r+"px",a.style.lineHeight=r+"px",e.__lastHeight=r),n.width-i[0]-i[1]!==e.__lastWidth&&(e.__lastWidth=n.width-i[0]-i[1],a.style.width=n.width-i[0]-i[1]+"px")}))},_placeholderClassChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/\s+/);this._placeholderClass=this.convertClassListWithPrefix(e),this.setData({_prefixedPlaceholderClass:this._placeholderClass.join(" ")});var t=this.maxlength>0?this.value.slice(0,this.maxlength):this.value;this._attached&&this._checkPlaceholderStyle(t)},_checkPlaceholderStyle:function(e){var t=e||" ",n=this.$.input,i=this._placeholderClass||[],o="android"===wd.getPlatform(),r=0;if(e){if(n.classList.remove("input-placeholder"),n.classList.remove("input-placeholder-dark"),i.length>0)for(;r<i.length;r++)n.classList.contains(i[r])&&n.classList.remove(i[r]);n.setAttribute("style",""),this.__lastHeight?(n.style.height="".concat(this.__lastHeight,"px"),n.style.lineHeight="".concat(this.__lastHeight,"px"),this.__lastWidth&&(n.style.width=this.__lastWidth+"px")):this.checkLineHeight(),(this.password||"password"===this.type)&&(o?(t=e?new Array(e.length+1).join("•"):"",n.style.fontSize=20*this._inputFontSize/20+"px",n.style.letterSpacing=4*this._inputFontSize/20+"px"):"ios"===wd.getPlatform()?(t=e?new Array(e.length+1).join("•"):"",n.style.fontSize=36*this._inputFontSize/20+"px",n.style.letterSpacing=-1-this._inputFontSize/20+"px",n.style.marginTop=-3-this._inputFontSize/20+"px",n.style.left=-.5-this._inputFontSize/40+"px"):"number"===this.type&&(n.style.fontSize=2+this._inputFontSize/10*7+"px",n.style.letterSpacing=this._inputFontSize/10*3-2+"px",n.style.left=this._inputFontSize/10+"px",n.style.marginTop=this._inputFontSize/10-1+"px",t=e?new Array(e.length+1).join("●"):"")),this.showValue=t.replace(/\n/g," ")}else{if(n.setAttribute("class",""),n.classList.add("dark"===__wxConfig.theme?"input-placeholder-dark":"input-placeholder"),i.length>0)for(;r<i.length;r++)n.classList.add(i[r]);n.style.fontSize="",n.style.letterSpacing="",n.style.top="",n.style.left="",this.placeholderStyle&&(n.setAttribute("style",this.placeholderStyle),this.__lastHeight?(n.style.height="".concat(this.__lastHeight,"px"),n.style.lineHeight="".concat(this.__lastHeight,"px")):this.checkLineHeight()),this._keyboardShow||(this.showValue=this.placeholder.replace(/\n/g," ")||" ")}this._keyboardShow&&(this.$.input.style.opacity=0)},_checkIsInScrollView:function(e){return!1},_cursorChange:function(e){this._cursor=e},_defaultPropChange:function(e){},_selectionStartChange:function(){},_selectionEndChange:function(){}}},Il=1;function Nl(e){return e=Number(e),isNaN(e)?-1:e}var Pl={is:"wx-input",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"role",v:"textbox"}],c:[{t:1,n:"input",id:"input",a:[{n:"type",o:"$",e:function(e,i,o){return t(o,n,"_getType",[e.type,e.password])},l:null,b:[[null,"_getType"],[null,"type"],[null,"password"]]},{n:"maxlength",o:"$",e:function(e,t,n){return e.maxlength},l:[null],b:[[null,"maxlength"]]},{n:"value",o:"$",e:function(e,t,n){return e.showValue},l:[null],b:[[null,"showValue"]]},{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]}],c:[]},{t:1,n:"div",id:"placeholder",cl:{e:function(e,t,n){return"input-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.placeholder},b:[[null,"placeholder"]],t:3}]}]}]},behaviors:["wx-base","wx-class-prefix","wx-data-component"],properties:{focus:{type:Boolean,value:0,filter:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,public:!0},placeholder:{type:String,value:"",observer:"_placeholderChange",public:!0},placeholderStyle:{type:String,value:"",public:!0,filter:function(e){return wx.transformRpx(e,!0)}},placeholderClass:{type:String,value:"",public:!0,observer:"_placeholderClassChange"},dropdownStyle:{type:Object,value:{},public:!0},value:{type:String,value:"",filter:"defaultValueChange",public:!0},showValue:{type:String,value:""},maxlength:{type:Number,value:140,observer:"_maxlengthChanged",public:!0},type:{type:String,value:"text",public:!0},password:{type:Boolean,value:!1,public:!0},disabled:{type:Boolean,value:!1,public:!0},confirmHold:{type:Boolean,value:!1,public:!0},cursor:{type:null,value:-1,public:!0},selectionStart:{type:null,value:-1,public:!0},selectionEnd:{type:null,value:-1,public:!0}},data:{_prefixedPlaceholderClass:""},listeners:{tap:"_inputFocus","input.focus":"_inputFocus","input.blur":"_inputBlur","input.input":"_inputKey"},created:function(){this.bindMethod(["input"])},attached:function(){this._inputId=this._inputId||Il++,this._attachedCb()},detached:function(){this._detachedCb()},methods:{resetFormData:function(){this._keyboardShow&&(this.__formResetCallback=!0,wx.hideKeyboard()),this.value="",this.showValue=""},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},_focusChange:function(e){return this._couldFocus(e),e},_couldFocus:function(e){var t=this;this._attached&&(!this._keyboardShow&&e?window.requestAnimationFrame((function(){t.selectionStart=Nl(t.selectionStart),t.selectionEnd=Nl(t.selectionEnd),t.cursor=Nl(t.cursor),t._inputFocus(null,t.cursor,t.selectionStart,t.selectionEnd)})):this._keyboardShow&&!e&&this.$.input.blur())},_maxlengthChanged:function(e){var t=this.value.slice(0,e);t!==this.value&&(this.value=t)},_placeholderChange:function(){this._checkPlaceholderStyle(this.value||this._value)},_attachedCb:function(){var e=this;this._placeholderClassChange(this.placeholderClass),this._checkPlaceholderStyle(this.value),this._attached=!0,this._value=this.value,this.updateInput(),window.__onAppRouteDone&&this._couldFocus(this.autoFocus||this.focus),this.__routeDoneId=ftparser.addListenerToElement(document,"routeDone",(function(){e._couldFocus(e.autoFocus||e.focus)})),this.__setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",(function(t){if(t.detail.inputId===e._inputId&&e._keyboardShow){var n=t.detail.value,i=t.detail.cursor;void 0!==n&&(e._value=n,e.value=n),void 0!==i&&-1!==i&&(e.$.input.setSelectionRange(i,i),e.cursor=i)}})),this.__hideKeyboardId=ftparser.addListenerToElement(document,"hideKeyboard",(function(){e._keyboardShow&&e.$.input.blur()})),this.__onDocumentTouchStart=this.onDocumentTouchStart.bind(this),this.__updateInput=this.updateInput.bind(this),this.__inputKeyUp=this._inputKeyUp.bind(this),this.__inputKeyDown=this._inputKeyDown.bind(this),this.__inputCompositionstart=this._inputCompositionstart.bind(this),this.__inputCompositionend=this._inputCompositionend.bind(this),this.$.input.addEventListener("keyup",this.__inputKeyUp),this.$.input.addEventListener("keydown",this.__inputKeyDown),this.$.input.addEventListener("compositionstart",this.__inputCompositionstart),this.$.input.addEventListener("compositionend",this.__inputCompositionend),document.addEventListener("touchstart",this.__onDocumentTouchStart),document.addEventListener("pageReRender",this.__updateInput),(this.autoFocus||this.focus)&&setTimeout((function(){e._couldFocus(e.autoFocus||e.focus)}),500)},_detachedCb:function(){document.removeEventListener("pageReRender",this.__updateInput),document.removeEventListener("touchstart",this.__onDocumentTouchStart),this.$.input.removeEventListener("keyup",this.__inputKeyUp),this.$.input.removeEventListener("keydown",this.__inputKeyDown),this.$.input.removeEventListener("compositionstart",this.__inputCompositionstart),this.$.input.removeEventListener("compositionend",this.__inputCompositionend),ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId),ftparser.removeListenerFromElement(document,"hideKeyboard",this.__hideKeyboardId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.__setKeyboardValueId)},onDocumentTouchStart:function(e){for(var t=e.target;t;){if(t===this.$.wrapper||t===this.$["autofill-dropdown"])return;t=t.parentNode}this._keyboardShow&&this.$.input.blur()},_getType:function(e,t){return t||"password"===e?"password":"text"},_showValueChange:function(e){this.$.input.value=e},_inputFocus:function(e,t,n,i){this.disabled||this._keyboardShow||this._focusInputWithSelection(t,n,i)},_focusInputWithSelection:function(e,t,n){this._keyboardShow=!0,this.triggerEvent("focus",{value:this.value,height:0}),this.$.input.focus(),"number"==typeof t&&"number"==typeof n&&-1!==t?this.$.input.setSelectionRange(t,n):"number"==typeof e&&this.$.input.setSelectionRange(e,e),this.selectionStart=-1,this.selectionEnd=-1,this.cursor=-1},_inputCompositionstart:function(){this.inputIgnore=!0},_inputCompositionend:function(e){this.inputIgnore=!1,this._inputKey(e)},_inputBlur:function(e){this._keyboardShow=!1,this.value=this._value,this._formGetDataCallback(),this.triggerEvent("change",{value:this.value}),this.triggerEvent("blur",{value:this.value,cursor:this.$.input.selectionEnd}),this._checkPlaceholderStyle(this.value)},_inputKeyDown:function(e){this._keyCode=e.keyCode},_inputKeyUp:function(e){13===e.keyCode&&(this.triggerEvent("confirm",{value:this._value}),this.confirmHold||(this.value=this._value,this.$.input.blur()))},_inputKey:function(e){var t=e.target.value;this._value=t,this._checkPlaceholderStyle(t);var n=this.__modelValueName&&this.__modelValueName.value;if(!this.inputIgnore&&(this.bindinput||n)){var i={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};(this.bindinput||n)&&FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:n},data:{type:"input",timeStamp:v()(),detail:{value:e.target.value,cursor:this.$.input.selectionStart,keyCode:this._keyCode},target:i,currentTarget:i,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),inputId:this._inputId,isIDE:!0}})}return!1},updateInput:function(){var e=window.getComputedStyle(this.$$),t=this.$$.getBoundingClientRect(),n=["Top","Bottom"].map((function(t){return Dt()(e["border"+t+"Width"],10)+Dt()(e["padding"+t],10)})),i=this.$.input,o=t.height-n[0]-n[1];o!==this.__lastHeight&&(i.style.height=o+"px",i.style.lineHeight=o+"px",this.__lastHeight=o),i.style.color=e.color;var r=this.$.placeholder;r.style.height=t.height-n[0]-n[1]+"px",r.style.lineHeight=r.style.height},defaultValueChange:function(e){return this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._checkPlaceholderStyle(e),this._showValueChange(e),this._value=e,e},_getPlaceholderStyle:function(e){return e+(this&&"none"===this.$.placeholder.style.display?"display:none;":"")},_placeholderClassChange:function(e){var t=e.split(/\s+/);this._placeholderClass=this.convertClassListWithPrefix(t),this.setData({_prefixedPlaceholderClass:this._placeholderClass.join(" ")})},_checkPlaceholderStyle:function(e){var t=this._placeholderClass||[],n=this.$.placeholder,i=0;if(e){if(this._placeholderShow&&(n.classList.remove("input-placeholder"),n.setAttribute("style",""),t.length>0))for(;i<t.length;i++)n.classList.contains(t[i])&&n.classList.remove(t[i]);n.style.display="none",this._placeholderShow=!1}else{if(!this._placeholderShow&&(n.classList.add("input-placeholder"),this.placeholderStyle&&n.setAttribute("style",this.placeholderStyle),t.length>0))for(;i<t.length;i++)n.classList.add(t[i]);n.style.display="",this.updateInput(),this._placeholderShow=!0}}}};function Ol(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}var Ll,Rl=Tl.methods,Ml={_attachedCb:function(){var e=this,t=this._cid=this._nativeId;this.$.wrapper.setAttribute("cid",t),this.$.wrapper.classList.add("tongceng_fcid_".concat(t));var n=this.$.wrapper.offsetHeight+1;this.$.inner.style.height=n+"px",this.$.input.style.opacity=0,this.$.placeholder.style.opacity=0,this._insertNativeFail=!1,Rl._attachedCb.call(this),Ii().input?(this.retry=0,Kn((function(){e.insertNativeInput()}))):(this._insertNativeFail=!0,this._restoreBaseInput())},_detachedCb:function(){Rl._detachedCb.call(this),Ii().input&&(this.removeNativeInput(),this._insertTimer&&clearTimeout(this._insertTimer))},_focusChange:function(e,t){return this._insertNativeFail?Rl._focusChange.call(this,e):e||e!==t?(e&&this.$.input.scrollIntoView(!1),(e&&!this._keyboardShow||!e&&this._keyboardShow)&&this._inputId&&FinChatJSBridge.invoke("updateNativeInput",{cid:this._cid,inputId:this._inputId,focus:e},(function(){})),e):e},defaultValueChange:function(e){var t=this;if(this._insertNativeFail)return Rl.defaultValueChange.call(this,e);var n=this;if(this._insertFinish){if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId)if(xi)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("updateNativeInput",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold},(function(e){n._forceValue=null}))):this._valueQueue=this._valueQueue.slice(this._inputIndex+1);else{var i=this._value;e!==i&&(this._forceValue=e,FinChatJSBridge.invoke("updateNativeInput",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold},(function(t){n._forceValue=null,n._keyboardShow||(n._value=e,n._resetInputState())})))}return this._value=e,e}this.addCb((function(){t.defaultValueChange(e)}))},_updateInput:function(){var e=this;if(this._insertNativeFail)Rl._updateInput.call(this);else if(this._insertFinish){if(this._attached&&this._inputId&&this.inputArgs){var t=this.getCurrentInputArgs(),n=this._diff(this.inputArgs,t);n&&(this.inputArgs=t,n.cid=this._cid,n.inputId=this._inputId,FinChatJSBridge.invoke("updateNativeInput",n,(function(e){})))}}else this.addCb((function(){e._updateInput()}))},addCb:function(e){this._cbs=this._cbs||[],this._cbs.push(e)},_hiddenChanged:function(e){if(this._inputId){if(Ii().input&&k&&!e){var t=this.getCurrentInputInfo(),n=document.getElementsByTagName("x-input")[0];n&&n.setAttribute("data",ce()(t))}FinChatJSBridge.invoke("updateNativeInput",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))}},_showNativeInput:function(e,t,n){this._insertNativeFail&&Rl._showNativeInput.call(this,e,t,n)},checkLineHeight:function(){this._insertNativeFail&&Rl.checkLineHeight.call(this)},_inputFocus:function(e,t,n){this._insertNativeFail&&Rl._inputFocus.call(this,e,t,n)},_checkPlaceholderStyle:function(e){this._insertNativeFail&&Rl._checkPlaceholderStyle.call(this,e)},_defaultPropChange:function(){this._insertNativeFail||this._updateInput()},_selectionStartChange:function(e){this._insertNativeFail||this.selectionEnd>e&&-1!==e&&this._updateInput()},_selectionEndChange:function(e){if(!this._insertNativeFail){var t=this.selectionStart;e>t&&-1!==t&&this._updateInput()}},_restoreBaseInput:function(){var e=this._cid;this.$.wrapper.removeAttribute("cid",e),this.$.wrapper.classList.remove("tongceng_fcid_".concat(e)),this.$.wrapper.removeChild(this.$.inner),this.$.input.style.opacity=1,this._placeholderClassChange(this.placeholderClass),this._couldFocus(this.autoFocus||this.focus),this.checkLineHeight(),Kn((function(){window._flushActiveInputQueue()}))},getCurrentInputInfo:function(){return this.inputArgs=this.getCurrentInputArgs(),this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=this.cursor,this.inputArgs.focus=this.autoFocus||this.focus,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Ol(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({cid:this._cid,inputId:this._inputId},this.inputArgs)},insertNativeInput:function(){var e=this,t=this.getCurrentInputInfo(),n=function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[]),e.findKeyboardAccessory()};if(k){var i=document.createElement("x-input");return this.$.inner.style.display="none",this.$.input.style.display="none",this.$.wrapper.append(i),i.style.lineHeight=t.style.height+"px",i.setAttribute("data",ce()(t)),i.getBoundingClientRect(),void(Ti?(FinChatJSBridge.on("onTongcengWidgetReady_"+this._inputId,(function(){n()})),FinChatJSBridge.on("onTongcengWidgetDestroy_"+this._inputId,(function(){e._insertFinish=!1}))):setTimeout((function(){n()})))}FinChatJSBridge.invoke("insertNativeInput",t,(function(t){-1===t.errMsg.indexOf(":ok")?e.retry<10?(e._insertTimer=setTimeout((function(){e.insertNativeInput()}),20*e.retry),e.retry++):(e._insertNativeFail=!0,e._restoreBaseInput(),Kn((function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[])}))):Kn((function(){n()}))}))},removeNativeInput:function(){var e=this;FinChatJSBridge.invoke("removeNativeInput",{cid:this._cid,inputId:this._inputId},(function(){e._cid=null}))}},Bl=Ke()({},Tl,{template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",st:{v:"width:100%;height:100%;"},a:[{n:"disabled",o:"$",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"role",v:"textbox"}],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width:101%;height:101%;"},a:[],c:[]},{t:1,n:"input",id:"inputTag",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"input",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.showValue},b:[[null,"showValue"]],t:3}]},{t:1,n:"div",id:"placeholder",cl:{e:function(e,t,n){return"input-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"div",id:"placeholderDark",cl:{e:function(e,t,n){return"input-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},methods:Ke()({},Rl,Ml)});Ll=O?Pl:Ii().input||k?Bl:Tl,window.ftparser.registerElement(Ll),window.ftparser.registerElement({is:"wx-label",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{for:{type:String,public:!0}},listeners:{"this.tap":"onTap"},behaviors:["wx-base"],attached:function(){this._findRelatedNode()},methods:{_handleNode:function(e,t){if(e instanceof ftparser.Component&&e.hasBehavior("wx-label-target"))return e.handleLabelTap(t),!0},_findRelatedNode:function(){var e=null;this.for?this.ownerShadowRoot?e=this.ownerShadowRoot.getElementById(this.for):(e=document.getElementById(this.for))&&(e=e.__wxElement):this.dfs2(this),e&&e instanceof ftparser.Component&&e.hasBehavior("wx-label-target")&&(e._relatedLabel=this,e._setRelatedLabelAria&&e._setRelatedLabelAria())},dfsLabelTarget:function(e){if(e instanceof ftparser.Component&&e.hasBehavior("wx-label-target"))return e;if(!e.childNodes)return null;for(var t=0;t<e.childNodes.length;t++){var n=this.dfsLabelTarget(e.childNodes[t]);if(n)return n}return null},dfs:function(e,t){if(this._handleNode(e,t))return!0;if(!e.childNodes)return!1;for(var n=0;n<e.childNodes.length;++n)if(this.dfs(e.childNodes[n],t))return!0;return!1},dfs2:function(e){if(e instanceof ftparser.Component&&e.hasBehavior("wx-label-target"))return e;if(!e.childNodes)return null;for(var t=0;t<e.childNodes.length;t++){var n=this.dfs2(e.childNodes[t]);if(n)return n}return null},onTap:function(e){for(var t=e.target;t instanceof ftparser.Element&&t!==this;t=t.parentNode)if(t instanceof ftparser.Component&&t.hasBehavior("wx-label-target"))return;if(this.for){var n=null;this.ownerShadowRoot?(n=this.ownerShadowRoot.getElementById(this.for))&&this._handleNode(n,e):(n=document.getElementById(this.for))&&this._handleNode(n.__wxElement,e)}else this.dfs(this,e)}}});var $l=n(219),Fl=n.n($l);function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function jl(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):jl(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}var ql=!0,Hl=1,Ul={};FinChatJSBridge.subscribe("conversionCoordinateResponse",(function(e){var t=e.data||{},n=t.uuid,i=t.conversionData,o=t.errMsg;o&&/:fail/.test(o)&&(ql=!1),Ul[n]&&Ul[n](i)}));var Wl={};FinChatJSBridge.subscribe("handlerMapCustomCallout",(function(e){if(!k){var t=e.data,n=t.mapId,i=t.markers,o=t.clear,r=Wl[n];n&&r&&r.updateCustomCallout(i,o)}})),window.ftparser.registerElement({is:"wx-map",behaviors:["wx-base","wx-native"],template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:""},st:{},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width:101%;height:101%;"},a:[],c:[]}]},{t:1,n:"div",cl:{v:"wx-map-slot"},st:{},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]},{t:1,n:"div",id:"calloutcontainer",cl:{v:"wx-map-callout-container"},st:{},a:[],c:[{t:1,n:"slot",v:!0,sn:"callout",a:[],c:[]}]}]}]},options:{renderingMode:"full",multipleSlots:!0},properties:{latitude:{public:!0,observer:"latitudeChanged",observeAssignments:!0,value:39.92},longitude:{public:!0,observer:"longitudeChanged",observeAssignments:!0,value:116.46},scale:{public:!0,observer:"scaleChanged",observeAssignments:!0,value:16},rotate:{type:Number,value:0,public:!0,observer:"rotateChanged",observeAssignments:!0},skew:{type:Number,value:0,public:!0,observer:"skewChanged",observeAssignments:!0},minScale:{value:3,public:!0,observer:"minScaleChanged"},maxScale:{value:20,public:!0,observer:"maxScaleChanged"},markers:{type:Array,value:[],public:!0,observer:"markersChanged"},covers:{type:Array,value:[],public:!0,observer:"coversChanged"},polyline:{type:Array,value:[],public:!0,observer:"linesChanged"},circles:{type:Array,value:[],public:!0,observer:"circlesChanged"},controls:{type:Array,value:[],public:!0,observer:"controlsChanged"},includePoints:{type:Array,value:[],public:!0,observer:"pointsChanged"},showLocation:{type:Boolean,value:!1,public:!0,observer:"showLocationChanged"},polygons:{type:Array,value:[],public:!0,observer:"polygonsChanged"},subkey:{type:String,value:"",public:!0},layerstyle:{type:Number,value:1,public:!0,observer:"layerstyleChanged"},enable3D:{type:Boolean,value:!1,public:!0,observer:"enable3DChanged"},showCompass:{type:Boolean,value:!1,public:!0,observer:"showCompassChanged"},showScale:{type:Boolean,value:!1,public:!0,observer:"showScaleChanged"},enableOverlooking:{type:Boolean,value:!1,public:!0,observer:"enableOverlookingChanged"},enableZoom:{type:Boolean,value:!0,public:!0,observer:"enableZoomChanged"},enableScroll:{type:Boolean,value:!0,public:!0,observer:"enablescrollChanged"},enableRotate:{type:Boolean,value:!1,public:!0,observer:"enableRotateChanged"},enableSatellite:{type:Boolean,value:!1,public:!0,observer:"enableSatelliteChanged"},enableTraffic:{type:Boolean,value:!1,public:!0,observer:"enableTrafficChanged"},enablePoi:{type:Boolean,value:!0,public:!0,observer:"enablePoiChanged"},enableBuilding:{type:Boolean,value:!0,public:!0,observer:"enableBuildingChanged"},setting:{type:Object,value:{},public:!0,observer:"settingChanged"},map:{value:"auto",public:!0},hidden:{type:Boolean,value:!1,public:!0}},listeners:{tap:"_mapTap"},created:function(){this._calloutMap={}},attached:function(){this.attachCb()},detached:function(){document.removeEventListener("pageReRender",this._pageReRenderCallback),ftparser.removeListenerFromElement(document,"onMapTask",this.onMapTaskId),FinChatJSBridge.publish("mapRemove",{id:this.id||"",mapId:this._mapId,webviewId:window.__webviewId__}),this.removeNativeMap(),this.observer&&this.observer.disconnect(),Wl[this._mapId]=null},methods:{attachCb:function(){var e=this;this.observerCallout(),this.childNodes.forEach((function(e){"callout"===e.slot&&(e.$$.style="position:absolute;top:0px;left:0;")})),this.$.container.$$.setAttribute("nativeid",this._nativeId),this._cid=this._nativeId,this._mapId=this._nativeId,this._latitude=this.latitude,this._longitude=this.longitude,this._scale=this.scale,this._skew=this.skew,this._rotate=this.rotate,this._lastCustomCallout=[],this.mapArgs=this.getMapArgs(),this.retry=0,this.onMapTaskId=ftparser.addListenerToElement(document,"onMapTask",(function(t){String(t.detail.mapId)===String(e._mapId)&&e.onMapTask(t.detail)})),this._pageReRenderCallback=this._pageReRenderCallback.bind(this),document.addEventListener("pageReRender",this._pageReRenderCallback),Kn((function(){e.insertNativeMap()})),Wl[this._mapId]=this},_mapTap:function(){return!1},_updatePosition:function(){this.updateNativeMap()},observerCallout:function(){var e=this,t=this.$.calloutcontainer.$$;(this._calloutobserver=new MutationObserver((function(t){e.updateCustomCallout(void 0,!0)}))).observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0})},updateCustomCallout:Fl()((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._attached)return[];var n={},i={},o=e&&e.length,a=t||!o;function s(e,t){var n=[],i=t instanceof ftparser.Component,o=i&&t.__component__,a="slot"===t.is,c=i&&t.hasBehavior("wx-button")&&t.native,l=i&&t.hasBehavior("wx-cover-view"),u=i&&t.hasBehavior("wx-cover-image");n=o||a||c?t.__slotChildren||[]:t.childNodes||[],(l||u)&&(e.child=[],e.data=Vl(Vl({},t._args),{},{type:t.viewName,parentId:t._parentId})),e.child=[],n.map((function(e){var t={};return s(t,e),t})).forEach((function(t){var n;t.data?e.child.push(t):t.child&&t.child.length>0&&(n=e.child).push.apply(n,r()(t.child))}))}o?e.forEach((function(e){i[e.id]=e})):this.markers.forEach((function(e){i[e.id]=e})),function e(t){var o,r=t.childNodes,a=function(e,t){var n=void 0!==ai.a&&e[ci.a]||e["@@iterator"];if(!n){if(A()(e)||(n=function(e,t){if(e){if("string"==typeof e)return Dl(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?Tn()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dl(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(void 0===r?[]:r);try{for(a.s();!(o=a.n()).done;){var c=o.value,l=c.$$;if(l&&l.hasAttribute&&l.hasAttribute("marker-id")&&l.hasAttribute("view-id")){var u=l.getAttribute("marker-id");u&&(k||i[_()(u,10)])&&(n[u]={},s(n[u],c),n[u].data.parentId=null)}else e(c)}}catch(t){a.e(t)}finally{a.f()}}(this);var c=[],l={};k?c=E()(n).map((function(e){return Vl({markerId:_()(e,10)},n[e])})):(this._lastCustomCallout.forEach((function(e){l[e.markerId]=e})),E()(n).forEach((function(e){var t=_()(e,10),o=Vl(Vl({markerId:t},n[e]),{},{markerData:Vl({},i[t])});l[t]?o.type="update":o.type="add",c.push(o),delete l[t]})),a&&E()(l).forEach((function(e){c.push({markerId:e,type:"remove"})}))),this._lastCustomCallout=a?c:this._lastCustomCallout.concat(c),FinChatJSBridge.invoke("updateNativeMapMarkers",{cid:this._cid,mapId:this._mapId,customCallout:c},(function(e){}))}),100,{leading:!0,trailing:!0}),findCustomCallout:function(){var e=this,t=this.$.calloutcontainer.$$.querySelectorAll("wx-cover-view[marker-id]");this._calloutMap={},t.forEach((function(t){var n=t.getAttribute("view-id"),i=_()(t.getAttribute("marker-id"),10);n&&i&&(e._calloutMap[i]=n)}))},findParentCustomCallout:function(e){var t=e.tagName.toLowerCase();if("wx-map"===t)return null;if("wx-cover-view"===t&&e.hasAttribute("marker-id")){var n=e.getAttribute("view-id"),i=e.getAttribute("marker-id");return i&&n?{viewId:n,markerId:i}:null}return this.findParentCustomCallout(e.parentElement)},insertNativeMap:function(){var e=this,t=this.getMapArgs();this.getConversionCoordinate(t,"applet",(function(n){var i=Vl({id:e.id,cid:e._cid,mapId:e._mapId},n||t);if(k&&Ii().map){var o=document.createElement("map");if(e.$.inner.$$.style.display="none",e.$.container.$$.append(o),o.setAttribute("data",ce()(i)),o.setAttribute("map",e.map),o.setAttribute(J("mapId"),e._mapId),o.getBoundingClientRect(),Ii().mapController){var r=document.createElement("map-controller");r.setAttribute(J("mapId"),e._mapId),e.$.container.$$.append(r)}FinChatJSBridge.on("onTongcengWidgetReady_"+e._mapId,(function(t){e.findCoverView(e._mapId,{isRoot:!1}),e._attached=!0,FinChatJSBridge.publish("mapInsert",{id:e.id||"",mapId:e._mapId,cid:e._cid,webviewId:window.__webviewId__,windowPath:window.__path__}),e.updateNativeMap()}))}else e.insertNativeView("insertNativeMap",i,(function(t){e.findCoverView(e._mapId,{isRoot:!1}),e._attached=!0,FinChatJSBridge.publish("mapInsert",{id:e.id||"",mapId:e._mapId,cid:e._cid,webviewId:window.__webviewId__,windowPath:window.__path__}),e.updateNativeMap()}))}))},updateNativeMap:function(){var e=this;if(this._attached&&!this._isWaitingUpdate){var t=this.getMapArgs(),n=this.argsDiff(this.mapArgs,t);n&&(this.mapArgs=t,("latitude"in n||"longitude"in n)&&(n.latitude=this.mapArgs.latitude,n.longitude=this.mapArgs.longitude),this.getConversionCoordinate(n,"applet",(function(t){FinChatJSBridge.invoke("updateNativeMap",Vl({cid:e._cid,mapId:e._mapId},t||n),(function(t){n.markers&&T&&e.updateCustomCallout()}))})))}},argsDiff:function(e,t){var n={},i=!1;for(var o in t)["[object Object]","[object Array]"].indexOf(Object.prototype.toString.call(t[o]))>-1?ce()(t[o])!==ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!==t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},removeNativeMap:function(){FinChatJSBridge.invoke("removeNativeMap",{cid:this._cid,mapId:this._mapId},(function(){}))},translateIncopath:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return e&&e.iconPath&&(e.iconPath=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!/(https?|file|wdfile|hyfile):/i.test(e)&&!/^\s*data:image/.test(e))if("/"===e.substring(0,1))e=e.startsWith("//")?"https:"+e:e.substr(1);else if(e.startsWith("./")){var t=window.__path__.split("/").slice(0,-1);e="/".concat(t.join("/")).concat(t.length?"/":"").concat(e.slice(2))}else if(e.startsWith("../")){var n=e.match(/(\.\.\/)/g)||[],i=n.length?window.__path__.split("/").slice(0,-(n.length+1)):window.__path__.split("/");e="/".concat(i.join("/")).concat(i.length?"/":"").concat(e.replace(/\.\.\//g,""))}return e}(e.iconPath)),e}))},translateColor:function(e){e&&(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){e[t]&&(e[t]=Y(e[t],!O))}))},getMapArgs:function(e){var t={style:this._getBox(),hide:this.hidden,latitude:isNaN(this._latitude)?0:+this._latitude,longitude:isNaN(this._longitude)?0:+this._longitude,rotate:this._rotate,skew:this._skew,scale:isNaN(this._scale)?isNaN(this.minScale)?3:+this.minScale:+this._scale,minScale:isNaN(this.minScale)?3:+this.minScale,maxScale:isNaN(this.maxScale)?20:+this.maxScale,markers:this.translateIncopath(this.markers),covers:this.covers,polyline:this.polyline,circles:this.circles,controls:this.translateIncopath(this.controls),includePoints:this.includePoints,showLocation:this.showLocation,polygons:this.polygons,subkey:this.subkey,layerstyle:this.layerstyle,enable3D:this.enable3D,showCompass:this.showCompass,showScale:this.showScale,enableOverlooking:this.enableOverlooking,enableZoom:this.enableZoom,enableScroll:this.enableScroll,enableRotate:this.enableRotate,enableSatellite:this.enableSatellite,enableTraffic:this.enableTraffic,enablePoi:this.enablePoi,enableBuilding:this.enableBuilding,setting:this.setting,map:this.map};return"Object"!==F(t.setting)&&(t.setting={}),t},_getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),r=Dt()(t.fontWeight);isNaN(r)?r=t.fontWeight:r<500?r="normal":r>=500&&(r="bold");var a=t.backgroundColor?t.backgroundColor:"rgba(0, 0, 0, 0)";return{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0],backgroundColor:Y(a),borderColor:Y(t.borderColor),marginBottom:this.cursorSpacing||Dt()(t.marginBottom)||0,borderTopLeftRadius:Dt()(t.borderTopLeftRadius.replace("px",""))||0,borderTopRightRadius:Dt()(t.borderTopRightRadius.replace("px",""))||0,borderBottomLeftRadius:Dt()(t.borderBottomLeftRadius.replace("px",""))||0,borderBottomRightRadius:Dt()(t.borderBottomRightRadius.replace("px",""))||0}},onMapTask:function(e){var t=this,n=e.detail||{},i=e.eventName,o={};if(["regionchange"].indexOf(i)>-1){n.type=e.type,n.causedBy=e.causedBy,o.extraFields={type:e.type,causedBy:e.causedBy},"begin"===n.type&&(n=o.extraFields);var r=function(e,n){void 0===n||isNaN(n)||(t["_"+e]=t.mapArgs[e]=Number(n))};["skew","scale","rotate"].forEach((function(e){var t=n[e];r(e,t)})),["latitude","longitude"].forEach((function(e){var t=n.centerLocation&&n.centerLocation[e];r(e,t)}))}delete n.mapId,delete n.eventName,this.getConversionCoordinate(n,"app",(function(e){e&&(n=e),t.triggerEvent(i,Vl({},n),o)}))},getConversionCoordinate:function(e,t,n){var i=this;return s()(l.a.mark((function o(){var r,a;return l.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(ql&&e.latitude&&e.longitude){o.next=3;break}return n(),o.abrupt("return");case 3:return r="".concat(i._nativeId,"-").concat(Hl++),FinChatJSBridge.publish("conversionCoordinate",{uuid:r,data:e,__source__:t,webviewId:window.__webviewId__}),o.next=7,new d.a((function(e){Ul[r]=e}));case 7:a=o.sent,delete Ul[r],n(a);case 10:case"end":return o.stop()}}),o)})))()},latitudeChanged:function(){var e=this;isNaN(this.latitude)?console.error("latitude 类型错误"):(this._latitude=this.latitude,this._timer&&clearTimeout(this._timer),this._isWaitingUpdate&&"latitude"!==this._isWaitingUpdate?(this._isWaitingUpdate=null,this.updateNativeMap()):(this._isWaitingUpdate="latitude",this._timer=setTimeout((function(){e._isWaitingUpdate=null,e.updateNativeMap()}),200)))},longitudeChanged:function(){var e=this;isNaN(this.longitude)?console.error("longitude 类型错误"):(this._longitude=this.longitude,this._timer&&clearTimeout(this._timer),this._isWaitingUpdate&&"longitude"!==this._isWaitingUpdate?(this._isWaitingUpdate=null,this.updateNativeMap()):(this._isWaitingUpdate="longitude",this._timer=setTimeout((function(){e._isWaitingUpdate=null,e.updateNativeMap()}),200)))},scaleChanged:function(){isNaN(this.scale)?console.error("scale 类型错误"):(this._scale=this.scale,this.updateNativeMap())},rotateChanged:function(){this._rotate=this.rotate,this.updateNativeMap()},skewChanged:function(){this._skew=this.skew,this.updateNativeMap()},minScaleChanged:function(){isNaN(this.minScale)?console.error("minScale 类型错误"):this.updateNativeMap()},maxScaleChanged:function(){isNaN(this.maxScale)?console.error("maxScale 类型错误"):this.updateNativeMap()},markersChanged:function(){var e=this;this.markers.forEach((function(t){t&&(["callout","customCallout","label","anchor"].forEach((function(e){var n=t[e];void 0!==n&&(null===n||"object"!==Ce()(n)||n instanceof Array)&&(t[e]={})})),e.translateColor(t.callout,["color","borderColor","bgColor"]),e.translateColor(t.label,["color","borderColor","bgColor"]))})),this.updateNativeMap()},coversChanged:function(){this.updateNativeMap()},linesChanged:function(){var e=this;this.polyline.forEach((function(t){t&&(t.colorList=(t.colorList||[]).map((function(e){return e?Y(e,!O):"#000000"})),0===t.colorList.length&&delete t.colorList,e.translateColor(t,["color","borderColor"]),e.translateColor(t.textStyle,["textColor","strokeColor"]))})),this.updateNativeMap()},circlesChanged:function(){var e=this;this.circles.forEach((function(t){e.translateColor(t,["color","fillColor"])})),this.updateNativeMap()},controlsChanged:function(){this.updateNativeMap()},pointsChanged:function(){this.updateNativeMap()},showLocationChanged:function(){this.updateNativeMap()},polygonsChanged:function(){var e=this;this.polygons.forEach((function(t){e.translateColor(t,["fillColor","strokeColor"])})),this.updateNativeMap()},layerstyleChanged:function(){this.updateNativeMap()},enable3DChanged:function(){this.updateNativeMap()},showCompassChanged:function(){this.updateNativeMap()},showScaleChanged:function(){this.updateNativeMap()},enableOverlookingChanged:function(){this.updateNativeMap()},enableZoomChanged:function(){this.updateNativeMap()},enablescrollChanged:function(){this.updateNativeMap()},enableRotateChanged:function(){this.updateNativeMap()},enableSatelliteChanged:function(){this.updateNativeMap()},enableTrafficChanged:function(){this.updateNativeMap()},enablePoiChanged:function(){this.updateNativeMap()},enableBuildingChanged:function(){this.updateNativeMap()},settingChanged:function(){this.updateNativeMap()}}});var zl=n(313),Gl=n.n(zl),Yl=["forwordEventStatus"],Kl=(window.ftparser.registerElement({is:"wx-navigator",behaviors:["wx-base","wx-hover"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{url:{type:String,public:!0},delta:{type:Number,public:!0,value:1},redirect:{type:Boolean,value:!1,public:!0},target:{type:String,value:"self",public:!0},openType:{type:String,value:"navigate",public:!0},hoverClass:{type:String,value:"",public:!0,observer:"_hoverClassChange"},hover:{type:Boolean,value:!0},hoverStayTime:{type:Number,value:600,public:!0},appId:{type:String,value:"",public:!0},path:{type:String,value:"",public:!0},shortLink:{type:String,value:"",public:!0},extraData:{type:Object,value:"",public:!0},version:{type:String,value:"release",public:!0},scene:{type:Number,value:1037,public:!0},sceneNote:{type:String,value:"",public:!0}},listeners:{tap:"navigateTo"},created:function(){this._defaultHoverClass="navigator-hover"},attached:function(){this._lock=!1,this.$$.setAttribute("role","navigation")},methods:{error:function(e){console.error(e),this.triggerEvent("fail",e),this.triggerEvent("complete",e)},navigateInMiniPrograms:function(){var e=this,t=v()();FinChatJSBridge.subscribe("navigateCallback_".concat(t),(function(t){var n=t.forwordEventStatus,i=Gl()(t,Yl);e.triggerEvent(n,i)}));var n="navigateCallback_".concat(t),i={appId:this.appId,path:this.path,shortLink:this.shortLink,extraData:this.extraData,envVersion:this.version,forwordEvent:n};switch(this.openType){case"navigate":return 7===__wxConfig.appType&&(i.scene=this.scene,i.sceneNote=this.sceneNote),wx.navigateToMiniProgram(i);case"exit":return wx.exitMiniProgram({forwordEvent:n});case"navigateBack":return wx.navigateBackMiniProgram({forwordEvent:n,extraData:this.extraData});default:this.error("<navigator/> using invalid openType ".concat(this.openType," with miniProgram target"))}},navigateTo:function(e){var t=this;if("miniProgram"===this.target){if("navigate"===this.openType&&!this.appId&&!this.shortLink)return void this.error("<navigator/> should have app-id or short-link attribute when using navigate with miniProgram target")}else if("navigateBack"!==this.openType&&!this.url)return void this.error("<navigator/> should have url attribute when using navigateTo, redirectTo or switchTab");if(!this._lock)if(this._lock=!0,setTimeout((function(){t._lock=!1}),1e3),"miniProgram"!==this.target){var n=window.__route__,i={success:function(e){return t.triggerEvent("success",e)},fail:function(e){return t.triggerEvent("fail",e)},cancel:function(e){return t.triggerEvent("cancel",e)},complete:function(e){return t.triggerEvent("complete",e)}};if(this.redirect)wx.redirectTo({url:this.url,_relativePath:n},i);else switch(this.openType){case"navigate":case"navigateTo":return wx.navigateTo({url:this.url,_relatedInfo:e._relatedInfo,_relativePath:n},i);case"redirect":case"redirectTo":return wx.redirectTo({url:this.url,_relativePath:n},i);case"switchTab":return wx.switchTab({url:this.url,_relativePath:n},i);case"navigateBack":return wx.navigateBack({delta:this.delta},i);case"reLaunch":return wx.reLaunch({url:this.url,_relativePath:n},i);default:this.error("<navigator/> with invalid openType ".concat(this.openType))}}else this.navigateInMiniPrograms()}}}),n(70)),Xl=n.n(Kl),Zl=n(56),Jl=n.n(Zl),Ql=n(60),eu=n.n(Ql),tu=n(314),nu=n.n(tu),iu=n(315),ou=n.n(iu),ru=n(161);var au=function(e){wt()(i,e);var t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(i);function i(e,t){var o;if(oe()(this,i),o=n.call(this),e.firstElementChild){o.el=e,o.touchAction("none"),o.itemHeight=e.firstElementChild.clientHeight,e.parentNode.querySelector(".wx-picker-mask2"),o.events=eu()(e.parentNode.querySelector(".wx-picker-mask2"),Rt()(o)),I&&o.events.bind("mousewheel","wheel"),o.events.bind("touchstart","start"),o.events.bind("touchmove","move"),o.events.bind("touchend","end"),o.docEvents=eu()(document,Rt()(o)),o.docEvents.bind("touchend","end"),o.maxY=3*o.itemHeight,o.minY=(4-e.children.length)*o.itemHeight;var r=3-(t||0);o.translate(r*o.itemHeight)}return o}return ae()(i,[{key:"current",value:function(){return String(3-Math.floor(this.y/this.itemHeight))}},{key:"currentValue",value:function(){var e=this.current();if(this.el&&this.el.children)return this.el.children[e].getAttribute("data-value")}},{key:"unbind",value:function(){this.el&&(this.events.unbind(),this.docEvents.unbind())}},{key:"start",value:function(e){this.tween&&this.tween.stop(),e.cancelable&&e.preventDefault();var t=this.getTouch(e);this.down={sy:this.y,x:t.clientX,y:t.clientY,at:v()()}}},{key:"wheel",value:function(e){var t=this;if(e.cancelable&&e.preventDefault(),!this.itemHeight){var n=document.querySelector(".wx-picker-item");this.itemHeight=n&&n.offsetHeight||34}var i=this.itemHeight*(e.wheelDelta>0?.3:-.3),o=this.y+i;this.translate(o),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){t.down={},t.end({})}),200)}},{key:"move",value:function(e){if(this.down&&!this.tween){e.cancelable&&e.preventDefault();var t=this.getTouch(e).clientY,n=this.down,i=t-n.y,o=n.sy+i;this.translate(o)}}},{key:"end",value:(t=s()(l.a.mark((function e(t){var n,i;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.down){e.next=2;break}return e.abrupt("return");case 2:return this.down=null,t.cancelable&&t.preventDefault(),n=Math.round(this.y/this.itemHeight),e.next=7,this.select(n);case 7:i=3-n,this.emit("end",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"select",value:function(e){var t=e*this.itemHeight;return this.scrollTo(t,200,"inQuad")}},{key:"scrollToValue",value:function(e){var t=3-e;this.select(t)}},{key:"scrollTo",value:function(e,t,n){if(this.tween&&this.tween.stop(),!(t>0&&e!==this.y))return this.direction=0,void this.translate(e);this.direction=e>this.y?-1:1,n=n||"out-circ";var i=this.tween=nu()({y:this.y}).ease(n).to({y:e}).duration(t),o=this;i.update((function(e){o.translate(e.y)}));var r=new d.a((function(e){i.on("end",(function(){e(),o.tween=null,o.animating=!1,a=function(){}}))}));function a(){ou()(a),i.update()}return a(),this.animating=!0,r}},{key:"getTouch",value:function(e){var t=e;return e.changedTouches&&e.changedTouches.length>0&&(t=e.changedTouches[0]),t}},{key:"translate",value:function(e){var t=this.el.style;isNaN(e)||(e=Math.min(e,this.maxY),e=Math.max(e,this.minY),this.y=e,t[ru.transform]="translate3d(0, ".concat(e,"px, 0)"))}},{key:"touchAction",value:function(e){var t=this.el.style;ru.touchAction&&(t[ru.touchAction]=e)}}]),i}(Xl.a),su=n(81),cu=n.n(su);var lu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;oe()(this,n),(i=t.call(this)).opts=e,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i));var o=I?"click":"touchend";return i.events.bind("".concat(o," .cancel"),"cancel"),i.events.bind("".concat(o," .wx-picker-mask"),"cancel"),i.events.bind("".concat(o," .confirm"),"confirm"),i}return ae()(n,[{key:"show",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>')),document.ontouchmove=function(e){e.preventDefault()};var e=this.opts.array.map((function(e){return{text:e,value:e}})),t="android"===wd.getPlatform(),n=this.opts.headerText||"",i=Jl()(cu()({group:[e],isAndroid:t,headerText:n,confirmColor:this.opts.confirmColor,cancelColor:this.opts.cancelColor}));this.root.appendChild(i);var o=this.root.querySelector(".wx-picker-content");this.scrollable=new au(o,this.opts.current)}},{key:"hide",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.events.unbind(),this.scrollable.unbind(),document.ontouchmove=function(e){return!0},document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){var t=this.scrollable.current();e.preventDefault(),this.hide(),this.emit("select",t)}}]),n}(Xl.a),uu=n(316),du=n.n(uu);function hu(e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i<=e;i++)n.push(i<10?"0".concat(i).concat(t):"".concat(i).concat(t));return n}var pu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;oe()(this,n),(i=t.call(this)).opts=e,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i));var o=I?"click":"touchend";return i.events.bind("".concat(o," .cancel"),"cancel"),i.events.bind("".concat(o," .wx-picker-mask"),"cancel"),i.events.bind("".concat(o," .confirm"),"confirm"),i}return ae()(n,[{key:"show",value:function(){var e=this;"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),document.ontouchmove=function(e){e.preventDefault()},this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>'));var t=[];t.push(hu(23,0).map((function(e){return{text:e,value:e}}))),t.push(hu(59,0).map((function(e){return{text:e,value:e}})));var n="android"===wd.getPlatform(),i=this.opts.headerText||"",o=Jl()(cu()({group:t,isAndroid:n,headerText:i}));this.root.appendChild(o);var r=Tn()(this.root.querySelectorAll(".wx-picker-content")),a=this.getCurrent(),s=[];this.scrollables=r.map((function(t,n){var i=new au(t,a[n]);return s[n]=i.y,i.on("end",(function(){Kn((function(){e.checkValue(i)?s[n]=i.y:setTimeout((function(){var e=Math.round(s[n]/i.itemHeight);i.select(e)}),100)}))})),i}))}},{key:"checkValue",value:function(e){var t=this.opts.range;if(t.start||t.end){var n=this.scrollables.map((function(e){return e.currentValue()})),i=t.start?new Date("".concat("1990/1/1"," ").concat(t.start)).getTime():0,o=t.end?new Date("".concat("1990/1/1"," ").concat(t.end)).getTime():du.a,r=new Date("".concat("1990/1/1"," ").concat(n.join(":"))).getTime();return r>=i&&r<=o}return!0}},{key:"getCurrent",value:function(){var e=this.opts.current.split(":");return[Number(e[0]),Number(e[1])]}},{key:"hide",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),document.ontouchmove=function(e){return!0},this.events.unbind(),this.scrollables.forEach((function(e){e.unbind()})),document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){e.preventDefault();var t=this.scrollables.map((function(e){return e.currentValue()}));this.hide(),this.emit("select",t.join(":"))}}]),n}(Xl.a);Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e};var fu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i;oe()(this,n),(i=t.call(this)).opts=e,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i));var o=I?"click":"touchend";i.events.bind("".concat(o," .cancel"),"cancel"),i.events.bind("".concat(o," .wx-picker-mask"),"cancel"),i.events.bind("".concat(o," .confirm"),"confirm");var r=e.range;return r.start&&""!==r.start?(i.sy=Number(r.start.split("-")[0]),i.ey=r.end?Number(r.end.split("-")[0]):i.sy+5):(i.sy=1900,i.ey=2100),i}return ae()(n,[{key:"show",value:function(){var e=this;/android|devtools/.test(wd.getPlatform())&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),document.ontouchmove=function(e){e.preventDefault()},this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>'));var t=[];t.push(hu(this.ey,this.sy).map((function(e){return{text:"".concat(e,"年"),value:e}}))),"year"!==this.opts.fields&&t.push(hu(12,1).map((function(e){return{text:"".concat(e,"月"),value:e}}))),"month"!==this.opts.fields&&"year"!==this.opts.fields&&t.push(hu(31,1).map((function(e){return{text:"".concat(e,"日"),value:e}})));var n="android"===wd.getPlatform(),i=this.opts.headerText||"",o=Jl()(cu()({group:t,isAndroid:n,headerText:i}));this.root.appendChild(o);var r=Tn()(this.root.querySelectorAll(".wx-picker-content")),a=this.getCurrent();this.scrollables=r.map((function(t,n){var i=new au(t,a[n]);return i.on("end",(function(){e.checkValue(n)})),i}))}},{key:"checkValue",value:function(e){var t=this,n=this.opts,i=n.mode,o=n.range;if("date"===i){var r=this.scrollables.map((function(e){return e.currentValue()}));if(r.length>2){var a=new Date(r[0],r[1],0).getDate();a<_()(r[2],10)&&(r[2]=a,this.scrollables[2].select(3-(a-1)))}var s=new Date(r.join("-")),c=!1;if(o.start){var l=new Date(o.start);!isNaN(l)&&s<l&&(o.start.split("-").forEach((function(e,n){0!==n&&t.scrollables[n].select(3-(_()(e,10)-1))})),c=!0)}if(o.end&&!c){var u=new Date(o.end);!isNaN(u)&&s>u&&o.end.split("-").forEach((function(e,n){0!==n&&t.scrollables[n].select(3-(_()(e,10)-1))}))}}}},{key:"getCurrent",value:function(){var e=this.opts.current;e&&""!==e||(e=(new Date).Format("yyyy-MM-dd")),"string"==typeof e&&(e=e.split("-").map((function(e){return(e=Number(e))<10?"0"+e:e})).join("-"));var t=new Date(e).Format("yyyy-MM-dd").split("-"),n=[Number(t[0])-this.sy,Number(t[1])-1,Number(t[2])-1];return"year"===this.opts.fields?n.slice(0,1):"month"===this.opts.fields?n.slice(0,2):n}},{key:"hide",value:function(){/android|devtools/.test(wd.getPlatform())&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.events.unbind(),document.ontouchmove=function(e){return!0},this.scrollables.forEach((function(e){e.unbind()})),document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){e.preventDefault();var t=this.scrollables.map((function(e){return e.currentValue()}));this.hide(),this.emit("select",t.join("-"))}}]),n}(Xl.a);var vu,mu=function(e){wt()(n,e);var t=function(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}(n);function n(e){var i,o=e.range,r=e.rangeKey,a=e.current,s=e.headerText;return oe()(this,n),(i=t.call(this))._range=o,i._rangeKey=r,i._current=a,i._curEl=null,i.headerText=s,i.root=document.createElement("div"),document.body.appendChild(i.root),i.events=eu()(i.root,Rt()(i)),i.events.bind("touchend .cancel","cancel"),i.events.bind("touchend .wx-picker-mask","cancel"),i.events.bind("touchend .confirm","confirm"),i}return ae()(n,[{key:"updateRange",value:function(e){this._range=e,this._updateColumn()}},{key:"updateCurrentValue",value:function(e){var t=this;this._current=e,this._current.forEach((function(e,n){t.scrollables[n].scrollToValue(e)}))}},{key:"show",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.root.appendChild(Jl()('<div class="wx-picker-mask"></div>')),this._updateColumn()}},{key:"_updateColumn",value:function(){var e=this;try{console.log("range",this._range,this._rangeKey);var t=this._getGroup(this._range,this._rangeKey);console.log("group",t,this.platForm);var n="android"===wd.getPlatform(),i=this.headerText,o=Jl()(cu()({group:t,isAndroid:n,headerText:i}));this._curEl?this.root.replaceChild(o,this._curEl):this.root.appendChild(o),this._curEl=o;var r=Tn()(this.root.querySelectorAll(".wx-picker-content")),a=this._current;this.scrollables=r.map((function(t,n){var i=new au(t,a[n]);return i.on("end",(function(t){var i=n;e._current[n]=t;for(var o=n+1;e._current[o];)e._current[o]=0,o++;e.emit("columnChange",{column:i,value:t})})),i}))}catch(e){console.log(e)}}},{key:"_getGroup",value:function(e,t){var n=[];for(var i in e){var o=[];for(var r in e[i]){var a="object"!==Ce()(e[i][r])?e[i][r]:e[i][r][t];o.push({text:a,value:a})}n.push(o)}return n}},{key:"checkValue",value:function(e,t){}},{key:"getCurrent",value:function(){return this._current}},{key:"hide",value:function(){"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]}),this.events.unbind(),this.scrollables.forEach((function(e){e.unbind()})),document.body.removeChild(this.root)}},{key:"cancel",value:function(e){e.preventDefault(),this.hide(),this.emit("cancel")}},{key:"confirm",value:function(e){e.preventDefault();var t=this.scrollables.map((function(e){var t=e.current();return isNaN(Number(t))?t:Number(t)}));this.hide(),this.emit("select",t)}}]),n}(Xl.a),_u=n(99),gu=n.n(_u),bu="custom_event_",yu={is:"wx-picker",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-data-component"],properties:{range:{type:Array,value:[],public:!0,observer:"_rangeChange"},value:{public:!0,observer:"_valueChange"},mode:{type:String,value:"selector",public:!0},fields:{type:String,value:"day",public:!0},start:{type:String,value:"",public:!0},end:{type:String,value:"",public:!0},disabled:{type:Boolean,value:!1,public:!0},rangeKey:{type:String,value:"",public:!0},customItem:{type:String,value:"",public:!0},confirmColor:{type:String,value:"",public:!0},cancelColor:{type:String,value:"",public:!0},headerText:{type:String,value:"",public:!0}},listeners:{"wrapper.tap":"showPickerView"},attached:function(){this.$$.setAttribute("aria-haspopup","true")},methods:{_rangeChange:function(e){this._picker&&this._picker.updateRange(e)},_valueChange:function(e){if(this._picker)if("region"===this.mode){var t=this._getRegionRangeAndIndex(e).index;this._picker.updateCurrentValue(t)}else this._picker.updateCurrentValue(e)},resetFormData:function(){"mutiSelector"===this.mode||"region"===this.mode?this.value=[]:"selector"===this.mode?this.value=-1:this.value=""},getFormData:function(e){this.__pickerShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},showPickerView:function(){var e=this;setTimeout((function(){"date"===e.mode||"time"===e.mode?e.showDatePickerView():"multiSelector"===e.mode?e.showMutiSelector():"region"===e.mode?e.showRegionPicker():e.showSelector()}),100)},getCustomerStyle:function(){var e=this.$.wrapper.getBoundingClientRect();return{width:e.width,height:e.height,left:e.left+window.scrollX,top:e.top+window.scrollY}},showSelector:function(e){var t=this;if(!this.disabled){var n=_()(this.value);(isNaN(n)||n>=this.range.length)&&(n=0);var i=[];if(this.rangeKey)for(var o=0;o<this.range.length;o++){var r=this.range[o];i.push(r[this.rangeKey]+"")}else for(var a=0;a<this.range.length;a++)i.push(this.range[a]+"");var s={array:i,current:n,style:this.getCustomerStyle(),confirmColor:this.confirmColor,cancelColor:this.cancelColor,headerText:this.headerText};FinChatJSBridge.subscribe("showPickerView",(function(e){/:ok/.test(e.errMsg)&&(t.value=e.index,t.triggerEvent("change",{value:t.value})),t.resetPickerState(),t.formGetDataCallback()})),FinChatJSBridge.subscribe("hidePickerView",(function(e){console.log("handle picker hide"),t.triggerEvent("cancel"),t.resetPickerState(),t.formGetDataCallback()}));var c=new lu(s);c.show(),c.on("select",(function(e){FinChatJSBridge.subscribeHandler(bu+"showPickerView",{errMsg:"showPickerView:ok",index:e})})),c.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"hidePickerView")})),this.__pickerShow=!0}},showMutiSelector:function(){var e=this;if(!this.disabled){var t={range:this.range,rangeKey:this.rangeKey,mode:this.mode,current:this.value,headerText:this.headerText,style:this.getCustomerStyle()};FinChatJSBridge.subscribe("showPickerView",(function(t){/:ok/.test(t.errMsg)&&(e.value=t.value,e.triggerEvent("change",{value:e.value})),e.resetPickerState(),e.formGetDataCallback()})),FinChatJSBridge.subscribe("hidePickerView",(function(t){console.log("handle picker hide"),e.triggerEvent("cancel"),e.resetPickerState(),e.formGetDataCallback()})),this._picker=new mu(t),this._picker.show(),this._picker.on("select",(function(e){FinChatJSBridge.subscribeHandler(bu+"showPickerView",{errMsg:"showPickerView:ok",value:e})})),this._picker.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"hidePickerView")})),this._picker.on("columnChange",(function(t){var n=t.column,i=t.value;e.triggerEvent("columnchange",{value:i,column:n})})),this.__pickerShow=!0}},showDatePickerView:function(){var e=this;if(!this.disabled){var t,n={range:{start:this.start,end:this.end},mode:this.mode,current:this.value,fields:this.fields,style:this.getCustomerStyle(),headerText:this.headerText};if(FinChatJSBridge.subscribe("showDatePickerView",(function(t){/:ok/.test(t.errMsg)&&(e.value=t.value,e.triggerEvent("change",{value:e.value})),e.resetPickerState(),e.formGetDataCallback()})),FinChatJSBridge.subscribe("hideDatePickerView",(function(t){console.log("handle picker hide"),e.triggerEvent("cancel"),e.resetPickerState(),e.formGetDataCallback()})),"time"===n.mode){if(!n.current){var i=new Date;n.current=i.toTimeString().substr(0,5)}t=new pu(n)}else"date"===n.mode&&(t=new fu(n));t.show(),t.on("select",(function(e){FinChatJSBridge.subscribeHandler(bu+"showDatePickerView",{errMsg:"showDatePickerView:ok",value:e})})),t.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"showDatePickerView",{errMsg:"showDatePickerView:cancel"})})),this.__pickerShow=!0}},showRegionPicker:function(){var e=this,t=this;if(!this.disabled){var n=this._getRegionRangeAndIndex(this.value),i=n.range,o=n.index;this._regionIndex=o;var r={range:i,rangeKey:"name",mode:this.mode,current:o,fields:this.fields,style:this.getCustomerStyle(),headerText:this.headerText};FinChatJSBridge.subscribe("showPickerView",(function(e){/:ok/.test(e.errMsg)&&(t.value=e.value,t.triggerEvent("change",{value:t.value,code:e.code,postcode:e.postcode})),t.resetPickerState(),t.formGetDataCallback()})),FinChatJSBridge.subscribe("hidePickerView",(function(e){t.triggerEvent("cancel"),t.resetPickerState(),t.formGetDataCallback()})),this._picker=new mu(r),this._picker.show(),this._picker.on("select",(function(t){var n=e._getRegionRangeByIndex(e._regionIndex),i=n.value,o=n.code,r=n.postcode;FinChatJSBridge.subscribeHandler(bu+"showPickerView",{errMsg:"showPickerView:ok",value:i,code:o,postcode:r})})),this._picker.on("cancel",(function(){console.log("handle cancel"),console.log("emit hide picker"),FinChatJSBridge.subscribeHandler(bu+"hidePickerView")})),this._picker.on("columnChange",(function(t){var n=t.column,i=t.value;switch(e._regionIndex[n]=i,n){case 0:e._regionIndex=[i,0,0];break;case 1:e._regionIndex=[e._regionIndex[0],i,0]}var o=e._getRegionRangeByIndex(e._regionIndex).range;e._picker.updateRange(o)})),this.__pickerShow=!0}},_getRegionRangeAndIndex:function(e){var t=this._fotmatRegionList(gu.a.provinces),n=t.findIndex((function(t){return t.name===(e&&e[0])})),i=t[n=Math.max(0,n)],o=this._fotmatRegionList(gu.a.regionMap[i.id]),r=o.findIndex((function(t){return t.name===(e&&e[1])})),a=o[r=Math.max(0,r)],s=this._fotmatRegionList(gu.a.regionMap[a.id]),c=s.findIndex((function(t){return t.name===(e&&e[2])}));return{range:[t,o,s],index:[n,r,c=Math.max(0,c)]}},_getRegionRangeByIndex:function(e){var t=this._fotmatRegionList(gu.a.provinces),n=t[e[0]],i=this._fotmatRegionList(gu.a.regionMap[n.id]),o=i[e[1]],r=this._fotmatRegionList(gu.a.regionMap[o.id]),a=r[e[2]];return{range:[t,i,r],value:[n.name,o.name,a.name],code:[n.id,o.id,a.id].filter((function(e){return!!e||-1!==e})),postcode:a.postcode}},_fotmatRegionList:function(e){var t=e||[];return this.customItem?[{id:-1,name:this.customItem}].concat(t):t},resetPickerState:function(){this.__pickerShow=!1}}},wu=n(114),xu=n.n(wu),Au={is:"wx-picker",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-data-component","wx-reload","wx-native"],properties:{range:{type:Array,value:[],public:!0,observer:"rangeChanged"},value:{value:"",public:!0,observer:"valueChanged"},mode:{type:String,value:"selector",public:!0},fields:{type:String,value:"day",public:!0},start:{type:String,value:"",public:!0},end:{type:String,value:"",public:!0},disabled:{type:Boolean,value:!1,public:!0},rangeKey:{type:String,value:"",public:!0},customItem:{type:String,value:"",public:!0},headerText:{type:String,value:"",public:!0},level:{type:String,value:"",public:!0}},listeners:{"wrapper.tap":"showPickerView"},saved:function(e){var t={};this.saveCompVar(t,["value"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},attached:function(){if(this.$$.setAttribute("aria-haspopup","true"),"date"===this.mode){var e=new Date;this._defaultDateValue=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()}},methods:{resetFormData:function(){"selector"===this.mode?this.value=-1:this.value="","number"==typeof this._groupID&&(this._groupID=null)},getFormData:function(e){this.__pickerShow?this.__formCallback=e:"function"==typeof e&&("region"===this.mode?this.__region_data_ready?e(this._getRegionByValue(this.value)):"object"==Ce()(this.value)&&this.value instanceof Array?e(this.value):e([]):e(this.value))},autofillSetValue:function(e){if("date"===this.mode){var t=[],n=e[0],i=e[1],o=e[2];if(!n)return;t.push(n),i&&(t.push(("00"+i).substr(-2)),o&&t.push(("00"+o).substr(-2))),this.value=t.join("-"),this.value,xu()("result")}else if("time"===this.mode)this.value=e,this.value,xu()("result");else if("selector"===this.mode)for(var r=0;r<this.range.length;r++){var a=this.range[r];if(this.rangeKey){if(a[this.rangeKey]==e){this.value=r,xu()("result");break}}else if(this.range[r]==e){this.value=r,xu()("result");break}}else"region"===this.mode&&(this.value=e,xu()("result"))},autofillGetValue:function(){return"region"===this.mode?this.__region_data_ready?this._getRegionByValue(this.value):"object"==Ce()(this.value)&&this.value instanceof Array?this.value:[]:"selector"===this.mode?this.rangeKey?this.range[this.value]&&this.range[this.value][this.rangeKey]:this.range[this.value]:this.value},formGetDataCallback:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0},showPickerView:function(){"date"===this.mode||"time"===this.mode?this.showDatePickerView():"multiSelector"===this.mode?this.showMultiPickerView():"region"===this.mode?(A()(this.value)||(this.value=[]),this.showRegionView()):"selector"===this.mode&&this.showSelector()},isValidLevel:function(){return["province","city","region","sub-district"].includes(this.level)},getCustomerStyle:function(){var e=this.$.wrapper.getBoundingClientRect();return{width:e.width,height:e.height,left:e.left+window.scrollX,top:e.top+window.scrollY}},showAddressPickerView:function(){var e=this;this.disabled||(FinChatJSBridge.invoke("showAddressPickerView",{mode:this.level,current:this.value||[]},(function(t){if(/:ok/.test(t.errMsg)){for(var n=t.value.code.length,i=0;i<n&&!(i>=3);i++){var o=t.value.code[i].substr(0,6);t.value.code[i]=o}e.value=t.value.value,e.triggerEvent("change",t.value)}else e.triggerEvent("cancel",{});e.resetPickerState(),e.formGetDataCallback()})),this.__pickerShow=!0)},showSelector:function(){var e=this;if(!this.disabled){var t=_()(this.value,10);(isNaN(t)||t>=this.range.length)&&(t=0);var n=[],i=0;if(this.rangeKey)for(;i<this.range.length;i++){var o=this.range[i];n.push(o[this.rangeKey]+"")}else for(;i<this.range.length;i++)n.push(this.range[i]+"");FinChatJSBridge.invoke("showPickerView",{array:n,current:t,style:this.getCustomerStyle(),headerText:this.headerText},(function(t){/:ok/.test(t.errMsg)?void 0!==t.index&&(e.value=t.index.toString(),e.triggerEvent("change",{value:e.value})):/:(fail |fail:)?cancel/.test(t.errMsg)?e.triggerEvent("cancel",{}):e.triggerEvent("error",{errMsg:t.errMsg}),e.resetPickerState(),e.formGetDataCallback()})),this.__pickerShow=!0}},showDatePickerView:function(){var e=this;if(!this.disabled){var t={range:{start:this.start,end:this.end},mode:this.mode,current:this.value||this._defaultDateValue,fields:this.fields,style:this.getCustomerStyle(),headerText:this.headerText};FinChatJSBridge.invoke("showDatePickerView",t,(function(t){/:ok/.test(t.errMsg)?(e.value=t.value,e.triggerEvent("change",{value:e.value})):(e.triggerEvent("cancel",{}),e.resetPickerState(),e.formGetDataCallback())})),this.__pickerShow=!0}},showMultiPickerView:function(e,t,n){var i=this;if(!this.disabled){var o=[],r=[],a=0,s=0;if(void 0!==e)this.value=o=e.current,this.range=r=e.array;else for(a=0;a<this.range.length;a++){this.value instanceof Array&&this.value.length?o.push(_()(this.value[a],10)):isNaN(o[a])||o[a]>=this.range[a].length?o[a]=0:o.push(0);var c=[];if(this.rangeKey)for(s=0;s<this.range[a].length;s++){var l=this.range[a][s];c.push(l[this.rangeKey]+"")}else for(s=0;s<this.range[a].length;s++)c.push(this.range[a][s]+"");r.push(c)}this.value||(this.value=o),FinChatJSBridge.invoke("showMultiPickerView",{array:r,current:o,headerText:this.headerText,mode:this.mode,level:this.level||""},(function(e){if(/:ok/.test(e.errMsg)){if(e.current){i.value=e.current;var t={value:"function"==typeof n?n(i.value):i.value};if("region"===i.mode){var o=i._getRegionCodeByValue(i.value);t.code=o.code,t.postcode=o.postcode}"province"===i.level?(t.value=t.value.splice(0,1),t.code=t.code.splice(0,1)):"city"===i.level&&(t.value=t.value.splice(0,2),t.code=t.code.splice(0,2)),i.triggerEvent("change",t)}}else/:(fail |fail:)?cancel/.test(e.errMsg)?i.triggerEvent("cancel",{}):i.triggerEvent("error",{errMsg:e.errMsg});i.resetPickerState(),i.formGetDataCallback()})),this.__pickerShow=!0,this.__multi_picker_watching=!0,FinChatJSBridge.on("onMultiPickerViewChange",(function(e){!e||!i.__pickerShow||i.value&&i.value[e.column]===e.current||(i.value[e.column]=e.current,"function"==typeof t?t(e):i.triggerEvent("columnchange",{column:e.column,value:e.current}))}))}},showRegionView:function(){var e=this;if(!this.disabled){var t=function(t){var n=[e.value[0],e.value[1],e.value[2]];switch(n[t.column]=t.current,t.column){case 0:n[1]=0;break;case 1:n[2]=0;var i=e._getCurrentData(n);e.value=i.current,e.range=i.array;break;case 2:e.value=n}};this.__region_data_ready?this.showMultiPickerView(this._getCurrentData(this.value),t,this._getRegionByValue.bind(this)):FinChatJSBridge.invoke("getRegionData",{},(function(n){/:ok/.test(n.errMsg)&&(e._getRegionData(n.data),e.showMultiPickerView(e._getCurrentData(e.value),t,e._getRegionByValue.bind(e)))}))}},resetPickerState:function(){this.__pickerShow=!1},valueChanged:function(e,t){var n=this;this.__pickerShow&&this.__multi_picker_watching&&function i(o,r){if(!(o>=r)&&r){var a=0;if(A()(n.range[o])&&A()(e)&&A()(t)&&e[o]!==t[o]){var s=e[o]>=n.range[o].length?0:e[o],c=[];if(n.rangeKey)for(;a<n.range[o].length;a++){var l=n.range[o][a];c.push(l[n.rangeKey]+"")}else for(;a<n.range[o].length;a++)c.push(n.range[o][a]+"");FinChatJSBridge.invoke("updateMultiPickerView",{column:o,array:c,current:s},(function(e){/:ok/.test(e.errMsg)&&(n.value[o]=s,i(o+1,r))}))}else i(o+1,r)}}(0,e.length)},rangeChanged:function(e,t){var n=this;this.__pickerShow&&this.__multi_picker_watching&&function i(o,r){if(!(o>=r)){var a=0;if(A()(e[o])&&A()(t[o])&&!n._diffArray(e[o],t[o])){var s=n.value[o]>=e[o].length?0:n.value[o],c=[];if(n.rangeKey)for(;a<e[o].length;a++){var l=e[o][a];c.push(l[n.rangeKey]+"")}else for(;a<e[o].length;a++)c.push(e[o][a]+"");FinChatJSBridge.invoke("updateMultiPickerView",{column:o,array:c,current:s},(function(e){/:ok/.test(e.errMsg)&&(n.value[o]=s,i(o+1,r))}))}else i(o+1,r)}}(0,e.length)},_getRegionByValue:function(e){"object"===Ce()(e)&&e instanceof Array||(e=[]);var t=this._getCurrentDataList(e);return[t.province.array[t.province.current],t.city.array[t.city.current],t.district.array[t.district.current]]},_getRegionCodeByValue:function(e){if("object"!=Ce()(e)||!(e instanceof Array))return[];var t=""!==this.customItem,n=t?-1:0;if(t&&!e[0])return{code:[]};var i=this.__region_data_provinces[e[0]+n];if(t&&!e[1])return{code:[i.code+"0000"]};var o=this.__region_data_cities[i.code][e[1]+n];if(t&&!e[2])return{code:[i.code+"0000",o.code+"00"]};var r=this.__region_data_districts_other_info[o.code][e[2]+n];return{code:[i.code+"0000",o.code+"00",r.code],postcode:r.postcode}},_getRegionData:function(e){var t=this;this.__region_data_provinces=[],this.__region_data_cities={},this.__region_data_districts={},this.__region_data_districts_other_info={},this.__region_code_cities={},this.__region_code_districts={},this.__region_code_provinces=[],e.split("\n").forEach((function(e){var n=e.trim().split(/\s+/);if(3===n.length){var i=n[0],o=n[1],r=i.substr(0,2),a=i.substr(0,4);t.__region_data_cities[r]||(t.__region_data_cities[r]=[],t.__region_code_cities[r]=[]),t.__region_data_districts[a]||(t.__region_data_districts[a]=[],t.__region_code_districts[a]=[]),t.__region_data_districts_other_info[a]||(t.__region_data_districts_other_info[a]=[]),/0000$/.test(i)?(t.__region_data_provinces.push({code:r,name:o}),t.__region_code_provinces.push("".concat(r,"0000"))):/00$/.test(i)?(t.__region_data_cities[r].push({code:a,name:o}),t.__region_code_cities[r].push("".concat(a,"00"))):(t.__region_data_districts[a].push(o),t.__region_data_districts_other_info[a].push({postcode:n[2],code:i}),t.__region_code_districts[a].push(i))}})),this.__region_data_ready=!0},_getCurrentData:function(e){var t=this._getCurrentDataList(e);return{array:[t.province.array,t.city.array,t.district.array],current:[t.province.current,t.city.current,t.district.current]}},_getCurrentDataList:function(e){var t,n,i=e.length;return{province:t=i>=1?this._getCurrentDataEach(e[0],this.__region_data_provinces,this.__region_code_provinces):this._getCurrentDataEach(""!==this.customItem?this.customItem:this.__region_data_provinces[0].name,this.__region_data_provinces,this.__region_code_provinces),city:n=i>=2?this._getCurrentDataEach(e[1],-1===t.code?[]:this.__region_data_cities[t.code]||[],this.__region_code_cities[t.code]||[]):this._getCurrentDataEach(-1===t.code?this.customItem:this.__region_data_cities[t.code]?this.__region_data_cities[t.code][0].name:"",-1===t.code?[]:this.__region_data_cities[t.code]||[],this.__region_code_cities[t.code]||[]),district:i>=3?this._getCurrentDataEach(e[2],-1===n.code?[]:this.__region_data_districts[n.code]||[],this.__region_code_districts[n.code]||[]):this._getCurrentDataEach(-1===n.code?this.customItem:this.__region_data_districts[n.code]?this.__region_data_districts[n.code][0]:"",-1===n.code?[]:this.__region_data_districts[n.code]||[],this.__region_code_districts[n.code]||[])}},_getCurrentDataEach:function(e,t,n){var i=t.length&&"object"==Ce()(t[0]),o={current:0,array:(""!==this.customItem?[this.customItem]:[]).concat(i?t.map((function(e){return e.name})):t)};if("number"==typeof e)o.current=e;else{var r=o.array.indexOf(e);r<=0&&(r=n.indexOf(e),""!==this.customItem&&r>=0&&r++),o.current=r}return o.current<0&&(o.current=0),i?""!==this.customItem?0===o.current?o.code=-1:o.code=t[o.current-1].code:o.code=t[o.current].code:t.length||(o.code=-1),o},_diffArray:function(e,t){if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]&&t[n]&&"object"===Ce()(e[n])&&"object"===Ce()(t[n])){if(e[n][this.rangeKey]!==t[n][this.rangeKey])return!1}else if(Ce()(e[n])!==Ce()(t[n])||e[n]!==t[n])return!1;return!0}}};function Cu(e,t){var n,i=E()(e);return Yt.a&&(n=Yt()(e),t&&(n=n.filter((function(t){return Xt()(e,t).enumerable}))),i.push.apply(i,n)),i}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){var i,o,r;i=e,r=n[o=t],o in i?en()(i,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[o]=r})):Jt.a?de()(e,Jt()(n)):Cu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}function Su(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Su(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}vu=O?yu:Ei?Au:yu,window.ftparser.registerElement(vu),window.ftparser.registerElement({is:"wx-picker-view",template:function(e,t,n){return[{t:1,n:"div",id:"wrapper",cl:{v:"wrapper"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-class-prefix","wx-data-component"],properties:{value:{type:Array,value:[],public:!0,observer:"_valueChanged"},indicatorStyle:{type:String,value:"",public:!0},indicatorClass:{type:String,value:"",public:!0},maskStyle:{type:String,value:"",public:!0},maskClass:{type:String,value:"",public:!0}},relations:{"wx-picker-view-column":{type:"child",linked:function(){this._initColumns()},unlinked:function(){this._initColumns()}}},listeners:{"this.onPickerColumnChanged":"_columnValueChanged","this.onPickerColumnScrollStart":"_pickScrollStart","this.onPickerColumnScrollEnd":"_pickScrollEnd"},attached:function(){this._initColumns(),this.__updateColumns=this._updateColumns.bind(this),document.addEventListener("pageReRender",this.__updateColumns)},detached:function(){document.removeEventListener("pageReRender",this.__updateColumns)},methods:{_initColumns:function(){var e=this,t=this._columns=[];!function e(n){for(var i=0;i<n.childNodes.length;i++){var o=n.childNodes[i];o instanceof ftparser.Element&&(o instanceof ftparser.Component&&o.hasBehavior("wx-picker-view-column")?t.push(o):e(o))}}(this);var n=A()(this.value)?this.value:[];t.forEach((function(t,i){t._setStyle(e.indicatorStyle,e.maskStyle),t._setClass(e.indicatorClass,e.maskClass),t._setHeight(e._height),t._setCurrent(n[i]||0),t._init()}))},_updateColumns:function(){var e=this;if(this._columns&&0!==this._columns.length){var t=!1;this._columns.forEach((function(e){e._height!==e.$$.offsetHeight&&(t=!0)})),!t&&this._height===this.$$.offsetHeight||0===this.$$.offsetHeight?this._height=this.$$.offsetHeight:(this._height=this.$$.offsetHeight,this._columns.forEach((function(t){t.hidden||(t._setHeight(e._height),t._update())})))}},_columnValueChanged:function(){var e=this._columns.map((function(e){return e._getCurrent()}));this.triggerEvent("change",{value:e})},_valueChanged:function(){var e=arguments.length>0?arguments[0]:[];(this._columns||[]).forEach((function(t,n){t._setCurrent(e[n]||0),t._update()}))},_pickScrollStart:function(){this.triggerEvent("pickstart",{})},_pickScrollEnd:function(){this.triggerEvent("pickend",{})}}}),window.ftparser.registerElement({is:"wx-picker-view-column",template:function(e,t,n){return[{t:1,n:"div",id:"main",cl:{v:"wx-picker__group"},a:[],c:[{t:1,n:"div",id:"mask",cl:{v:"wx-picker__mask"},a:[],c:[]},{t:1,n:"div",id:"indicator",cl:{v:"wx-picker__indicator"},a:[],c:[]},{t:1,n:"div",id:"content",cl:{v:"wx-picker__content"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},behaviors:["wx-base","wx-class-prefix","wx-scroller","wx-touchtrack"],listeners:{"this.tap":"_handleTap"},relations:{"wx-picker-view":{type:"parent"}},created:function(){this.touchtrack(this.$.main,"_handleTrack",!0),this.__pageRerender=this._pageRerender.bind(this)},attached:function(){var e=this;this.$$.setAttribute("aria-label","上下滚动进行选择"),this._subtreeModified=!1,this._observer=ftparser.Observer.create((function(){e._subtreeModified=!0})),this._observer.observe(this,{childList:!0,subtree:!0}),document.addEventListener("pageReRender",this.__pageRerender)},detached:function(){document.removeEventListener("pageReRender",this.__pageRerender)},methods:{_pageRerender:function(){if(this._subtreeModified){for(var e=this.$.indicator.offsetHeight,t=this.$.content.children,n=0,i=t.length;n<i;n++){var o=t.item(n);o.style.height=e+"px",o.style.overflow="hidden"}this._itemHeight=e,this._handlers.update(),this._subtreeModified=!1}},_handleTrack:function(e){if(this._handlers)switch(e.detail.state){case"start":this._handleTouchStart(e);break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e)}},_handleTap:function(e){if(e.target!==e.currentTarget&&!this._handlers.isScrolling()){var t=e.touches&&e.touches[0]&&e.touches[0].clientY,n=("number"==typeof t?t:e.detail.y-document.body.scrollTop)-this.$$.getBoundingClientRect().top-this._height/2,i=this._itemHeight/2;if(!(Math.abs(n)<=i)){var o=Math.ceil((Math.abs(n)-i)/this._itemHeight),r=n<0?-o:o;this._current+=r,this._handlers._snapping=!0,this._handlers.scrollTo(this._current*this._itemHeight),this.triggerEvent("onPickerColumnChanged",{idx:this._current},{bubbles:!0}),this._isUpdatingValue&&(this.triggerEvent("onPickerColumnScrollEnd",{idx:this._current},{bubbles:!0}),this._isUpdatingValue=!1)}}},_getCurrent:function(){return this._current||0},_setCurrent:function(e){var t=Math.max(this.$.content.children.length-1,0);this._current=Math.min(e,t)},_setStyle:function(e,t){e&&this.$.indicator.setAttribute("style",e),t&&this.$.mask.setAttribute("style",t)},_setClass:function(e,t){e=this.convertClassWithPrefix(e),t=this.convertClassWithPrefix(t),this.$.indicator.setAttribute("class","wx-picker__indicator ".concat(e)),this.$.mask.setAttribute("class","wx-picker__mask ".concat(t))},_setHeight:function(e){for(var t=this.$.indicator.offsetHeight,n=this.$.content.children,i=0,o=n.length;i<o;i++){var r=n.item(i);r.style.height=t+"px",r.style.overflow="hidden"}this._itemHeight=t,this.$.main.style.height=e+"px";var a=(e-t)/2;this.$.mask.style.backgroundSize="100% "+a+"px",this.$.indicator.style.top=a+"px",this.$.content.style.padding=a+"px 0",this._height=this.$$.offsetHeight},_init:function(){var e=this;this._isUpdatingValue=!1,this.initScroller(this.$.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this._itemHeight,onTouchStart:function(){e._isUpdatingValue||e._handlers.isScrolling()||e.triggerEvent("onPickerColumnScrollStart",{},{bubbles:!0}),e._isUpdatingValue=!0},onSnap:function(t){e._current!==t&&(e._current=t,e.triggerEvent("onPickerColumnChanged",{idx:t},{bubbles:!0}))},onTouchEnd:function(){e._isUpdatingValue&&(e.triggerEvent("onPickerColumnScrollEnd",{},{bubbles:!0}),e._isUpdatingValue=!1)}})},_update:function(){this._handlers.update(this._current*this._itemHeight,void 0,this._itemHeight)},moveUint:function(e){var t=this.$.content.children.length-1,n=e<0?this._current-1:this._current+1;(n=n<0?0:n>t?t:n)!==this._current&&(this.triggerEvent("onPickerColumnScrollStart",{},{bubbles:!0}),this._current=n,this._update(),this.triggerEvent("onPickerColumnChanged",{idx:n},{bubbles:!0}),this.triggerEvent("onPickerColumnScrollEnd",{},{bubbles:!0}))}}}),window.ftparser.registerElement({is:"wx-progress",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-progress-bar"},a:[{n:"border-radius",o:"s",e:function(e,t,n){return e.borderRadius+"px"},l:null,b:[[null,"borderRadius"]]},{n:"background-color",o:"s",e:function(e,t,n){return e.backgroundColor},l:[null],b:[[null,"backgroundColor"]]},{n:"height",o:"s",e:function(e,t,n){return e.strokeWidth+"px"},l:null,b:[[null,"strokeWidth"]]}],c:[{t:1,n:"div",cl:{v:"wx-progress-inner-bar"},a:[{n:"width",o:"s",e:function(e,t,n){return e.curPercent+"%"},l:null,b:[[null,"curPercent"]]},{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getActiveColor",[e.color,e.activeColor])},l:null,b:[[null,"_getActiveColor"],[null,"color"],[null,"activeColor"]]}],c:[]}]},{t:1,n:"p",cl:{v:"wx-progress-info"},a:[{n:"parse-text-content",v:""},{n:"hidden",o:"$",e:function(e,t,n){return!e.showInfo},l:null,b:[[null,"showInfo"]]},{n:"font-size",o:"s",e:function(e,t,n){return e.fontSize+"px"},l:null,b:[[null,"fontSize"]]}],c:[{c:"",e:function(e,t,n){return e.curPercent+"%"},b:[[null,"curPercent"]],t:3}]}]},behaviors:["wx-base","wx-size-normalizer"],properties:{percent:{type:Number,observer:"percentChange",public:!0},curPercent:{type:Number,observer:"curPercentChange"},showInfo:{type:Boolean,value:!1,public:!0},strokeWidth:{type:String,value:6,public:!0,filter:"normalizeSize"},active:{type:Boolean,value:!1,public:!0,observer:"activeAnimation"},activeColor:{type:String,value:"#09BB07",public:!0},activeMode:{type:String,value:"backwards",public:!0},backgroundColor:{type:String,value:"#EBEBEB",public:!0},color:{type:String,value:"#09BB07",public:!0},borderRadius:{type:String,value:0,public:!0,filter:"normalizeSize"},fontSize:{type:String,value:16,public:!0,filter:"normalizeSize"},duration:{type:Number,value:30,public:!0}},created:function(){this._lastPercent=this.percent||0},attached:function(){this.$$.setAttribute("role","progressbar"),this.$$.setAttribute("aria-valuenow",this.percent),this.$$.setAttribute("aria-valuemin",0),this.$$.setAttribute("aria-valuemax",100)},detached:function(){this.__timerId&&clearInterval(this.__timerId)},methods:{_getActiveColor:function(e,t){return"#09BB07"!==t?t:"#09BB07"!==e?e:"#09BB07"},percentChange:function(e,t){e>100&&(this.percent=100),e<0&&(this.percent=0),this.__timerId&&clearInterval(this.__timerId),this._lastPercent=t||0,this.activeAnimation(this.active)},activeAnimation:function(e){if(!isNaN(this.percent))if(e){var t=function(){if(this.percent<=this.curPercent+1)return this.curPercent=this.percent,clearInterval(this.__timerId),void this.triggerEvent("activeend",{curPercent:this.curPercent});++this.curPercent};this.curPercent="forwards"===this.activeMode?this._lastPercent:0,this.__timerId=setInterval(t.bind(this),this.duration),t.call(this)}else this.curPercent=this.percent},curPercentChange:function(e){this.$$.setAttribute("aria-valuenow",e)}}}),window.ftparser.registerElement({is:"wx-radio",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-radio-wrapper"},a:[],c:[{t:1,n:"div",id:"input",cl:{v:"wx-radio-input"},a:[{n:"wx-radio-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-radio-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getColor",[e.checked,e.disabled,e.color])},l:null,b:[[null,"_getColor"],[null,"checked"],[null,"disabled"],[null,"color"]]},{n:"border-color",o:"s",e:function(e,i,o){return t(o,n,"_getColor",[e.checked,e.disabled,e.color])},l:null,b:[[null,"_getColor"],[null,"checked"],[null,"disabled"],[null,"color"]]}],c:[]},{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-label-target","wx-disabled","wx-item","wx-label-aria","wx-reload"],properties:{color:{type:String,value:"#09BB07",public:!0}},listeners:{tap:"_inputTap"},attached:function(){this._setAria("radio")},methods:{_getColor:function(e,t,n){return!e||t?"":n},_inputTap:function(){if(this.disabled)return!1;this.checked||(this.checked=!0,this.changedByTap())},handleLabelTap:function(){this._inputTap()}}}),window.ftparser.registerElement({is:"wx-radio-group",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-data-component","wx-group"],properties:{value:{type:String}},created:function(){this._selectedItem=null},attached:function(){this.$$.setAttribute("role","radiogroup")},methods:{addItem:function(e){e.checked&&(this._selectedItem&&(this._selectedItem.checked=!1),this.value=e.value,this._selectedItem=e)},removeItem:function(e){this._selectedItem===e&&(this.value="",this._selectedItem=null)},renameItem:function(e,t){this._selectedItem===e&&(this.value=t)},changed:function(e){this._selectedItem===e?this.removeItem(e):this.addItem(e)}}});var Tu=0,Iu=(window.ftparser.registerElement({is:"wx-scroll-view",template:function(e,t,n){return[{t:1,n:"div",id:"main",cl:{v:"wx-scroll-view"},st:{v:"overflow-x: hidden; overflow-y: hidden;"},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"position:absolute;top:0;bottom:0;left:0;right:0;width:101%;height:101%;z-index: -1;pointer-events:none;"},a:[],c:[]},{t:1,n:"div",id:"container",cl:{v:"wx--refresher--container--private"},st:{v:"width: 100%; height: 100%; position: absolute;"},a:[{n:"background",o:"s",e:function(e,t,n){return e.refresherBackground},l:[null],b:[[null,"refresherBackground"]]}],c:[{t:1,n:"div",id:"refresher",st:{v:"width:100%; position: absolute; bottom: 0; left: 0; "},a:[],c:[{t:1,n:"slot",v:!0,sn:"refresher",a:[],c:[]}]},{t:1,n:"div",id:"refresherDot",st:{v:"position: absolute; bottom: 0; left: 0; width: 100%; height: 75px;"},a:[],c:[{t:1,n:"div",st:{v:"width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center;"},a:[{n:"max-height",o:"s",e:function(e,t,n){return e._maxHeight+"px"},l:null,b:[[null,"_maxHeight"]]}],c:[{t:1,n:"div",id:"dot1",cl:{v:"wx-refresher-default-dot"},a:[],c:[]},{t:1,n:"div",id:"dot2",cl:{v:"wx-refresher-default-dot"},a:[],c:[]},{t:1,n:"div",id:"dot3",cl:{v:"wx-refresher-default-dot"},a:[],c:[]}]}]}]},{t:1,n:"div",id:"content",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},options:{renderingMode:"full",multipleSlots:!0},behaviors:["wx-base","wx-touchtrack","wx-positioning-container"],properties:{scrollX:{type:Boolean,value:!1,public:!0,observer:"_scrollXChanged"},scrollY:{type:Boolean,value:!1,public:!0,observer:"_scrollYChanged"},upperThreshold:{type:Number,value:50,public:!0},lowerThreshold:{type:Number,value:50,public:!0},scrollTop:{type:Number,filter:"_scrollTopChanged",public:!0},scrollLeft:{type:String,filter:"_scrollLeftChanged",public:!0},scrollIntoView:{type:String,filter:"_scrollIntoViewChanged",public:!0},refresherEnabled:{type:Boolean,public:!0,value:!1,observer:"refresherEnabledChanged"},refresherThreshold:{type:Number,public:!0,value:45,observer:"thresholdChanged"},refresherBackground:{type:String,value:"#fff",public:!0},refresherDefaultStyle:{type:String,public:!0,value:"black",filter:function(e){return"none"===e||"white"===e||"black"===e?e:""},observer:"refresherDefaultStyleChanged"},refresherTriggered:{type:Boolean,public:!0,value:!1,observer:"triggeredChanged"},_maxHeight:{type:Number,public:!1,value:53},enableFlex:{type:Boolean,public:!0,value:!1,observer:"enableFlexChanged"},scrollWithAnimation:{type:Boolean,public:!0,value:!1},bounces:{type:Boolean,public:!0,value:!0,observer:"bouncesChanged"},enhanced:{type:Boolean,public:!0,value:!1,observer:"enhancedChanged"},showScrollbar:{type:Boolean,public:!0,value:!0,observer:"showScrollbarChanged"}},created:function(){this._scrollEnabled=!0,this._lastScrollTop=this.scrollTop||0,this._lastScrollLeft=this.scrollLeft||0,this.touchtrack(this.$.main,"_handleTrack"),this.onPulling=this.onPulling.bind(this),this.onRefresh=this.onRefresh.bind(this),this.onRestore=this.onRestore.bind(this),this.onAbort=this.onAbort.bind(this),this._uuid=Tu++,this._cid="sv_"+this._uuid},attached:function(){var e=this,t=this;t.hasps=t.findParentScrollview(),this._lastScrollToUpperTime=0,this._lastScrollToLowerTime=0,this._scrollTopChanged(this.scrollTop),this._scrollLeftChanged(this.scrollLeft),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleScroll=pl()((function(e){e.preventDefault(),e.stopPropagation(),t._handleScroll(e)}),10,{leading:!0,trailing:!0}),T&&Ii().scrollView||(this.$.main.$$.classList.add("hide-scrollbar"),this.$.inner.$$.style.display="none"),this._operateScrollViewCount=0,this._operateScrollView=pl()((function(n){Mn.invoke("operateScrollView",{enhanced:t.enhanced,bounces:t.bounces,showsVerticalScrollIndicator:e.showScrollbar,showsHorizontalScrollIndicator:e.showScrollbar,cid:t._cid,webviewIds:[window.__webviewId__]},(function(e){/fail/.test(e.errMsg)&&t._operateScrollViewCount<10&&setTimeout((function(){t._operateScrollViewCount+=1,t._operateScrollView()}),200)}))}),100,{leading:!1,trailing:!0}),this.enhanced&&this._operateScrollView(),this.__handleTouchMove=function(e){var n=e.touches[0].pageY,i=t.$.main.$$;t.__touchStartY<n?i.scrollTop>0&&e.stopPropagation():i.scrollHeight>i.offsetHeight+i.scrollTop&&!t._refreshing&&e.stopPropagation()},this.__handleTouchStart=function(e){var n=t.$.main.$$;n.scrollHeight>n.offsetHeight&&(t.__touchStartY=e.touches[0].pageY),t._touchScrollTop=t.$.main.$$.scrollTop,t._touchScrollLeft=t.$.main.$$.scrollLeft,t._touchScrollBottom=t._touchScrollTop+n.offsetHeight===n.scrollHeight,t._touchScrollRight=t._touchScrollLeft+n.offsetWidth===n.scrollWidth},this.__handleTouchEnd=function(){},this.__pageReRenderCallback=this._pageReRenderCallback.bind(this),this.$.main.$$.addEventListener("touchstart",this.__handleTouchStart),this.$.main.$$.addEventListener("touchmove",this.__handleTouchMove,{passive:!1}),this.$.main.$$.addEventListener("touchend",this.__handleTouchEnd),this.$.main.$$.addEventListener("scroll",this.__handleScroll),document.addEventListener("pageReRender",this.__pageReRenderCallback),this.$.main.$$.style.overflowX=this.scrollX?"auto":"hidden",this.$.main.$$.style.overflowY=this.scrollY?"auto":"hidden";var n=window.navigator.userAgent.toLowerCase();if(/(iphone|ipad)/.test(n)){document.getElementById("__scroll_view_hack")&&document.body.removeChild(document.getElementById("__scroll_view_hack"));var i=document.createElement("div");i.setAttribute("style","position: fixed; left: 0; bottom: 0; line-height: 1; font-size: 1px; z-index: 10000; border-radius: 4px; box-shadow: 0 0 8px rgba(0,0,0,.4); width: 1px; height: 1px; overflow: hidden;"),i.innerText=".",i.id="__scroll_view_hack",document.body.appendChild(i)}var o=this.$.content.$$;o&&o.classList&&o.classList.add("wx--refresher--content--private"),this.refresherDefaultStyle&&(this.refresherThreshold=55),this._refresherInst=function(e){var t,n,i,o,r,a,s,c,l,u,h,p,f,v=(e=Ke()({refresherThreshold:60},e)).container,m=e.parentNode,_=e.contentNode,g=e.scrollerNode,b=e.refresherThreshold,y=e.onPulling,w=e.onRefresh,x=e.onRestore,A=e.onAbort,C=m.getBoundingClientRect().height||window.screen.height;function E(e,t,n,i,o){P&&window.cancelAnimationFrame(P);var r=null,a=t<e?-1:1,s=Math.abs(t-e);0!==n&&(P=window.requestAnimationFrame((function t(c){var l,u,d=(c-(r=r||c))/n,h=(l=d>1?1:d,u=1-Math.pow(l-1,2),Math.sqrt(u<0?0:u)),p=Math.floor(e+a*h*s);if(i(p),Math.abs(p-e)>=s)return"function"==typeof o&&o(p),void(P=null);P=window.requestAnimationFrame(t)})))}function S(){E(N,b,300,(function(e){v.style.transform="translateY(".concat(N,"px)"),_.style.transform=N?"translateY(".concat(N,"px)"):"",N=e}))}function k(){return new d.a((function(e){E(N,0,200,(function(e){v.style.transform="translateY(".concat(e,"px)"),_.style.transform=e?"translateY(".concat(e,"px)"):""}),(function(t){N=t,e()}))}))}function T(){t="refreshing",w(N),S()}v&&(v.style.position="absolute",v.style.height=window.screen.height+"px",v.style.top=-1*window.screen.height+"px");var I=!1,N=0,P=null;function O(e,n){null===t||I||("refreshing"!==t?"pulling"===t?(t="aborting",A(N),I=!0,E(N,0,300,(function(e){v.style.transform="translateY(".concat(e,"px)"),_.style.transform=e?"translateY(".concat(e,"px)"):""}),(function(e){N=e,t=null,I=!1,n()}))):"reached"===t&&T():S())}function L(){i=o=a=r=void 0}function R(e){var t=Array.prototype.slice.call(e.changedTouches).filter((function(e){return e.identifier===i}))[0];return t&&(e.distX=Math.abs(t.screenX-r),e.distY=Math.abs(t.screenY-a),e.deltaY=t.screenY-o,o=t.screenY,1)}function M(e){var t;f||(t=e.changedTouches[0],i=t.identifier,r=t.screenX,a=t.screenY,o=t.screenY)}function B(e){f||R(e)&&(l&&!s&&(l(e,L),s=!0),u(e,L))}function $(e){f||R(e)&&h(e,L)}function F(e){R(e)&&p(e,L)}return Eu(Eu({},(c=(n={element:g,onpanmove:function(e,n){var i=e.deltaY;if(!(g.scrollTop>0||I||i<0&&!t||"aborting"===t||"restoring"===t||e.distY<e.distX||e.distY<5)){if(t=t||"pulling",!e.cancelable||"pulling"!==t&&"refreshing"!==t&&"reached"!==t||e.preventDefault(),"refreshing"===t&&i<-10)return t="restoring",x(N),void k().then((function(){t=null,I=!1,n()}));var o,r=(o=Math.min(N/C,1),.52*Math.pow(1-o,2));N+=Math.ceil(i*r),"refreshing"===t||(b<=N&&"reached"!==t||N<b&&"pulling"!==t)&&(t="reached"===t?"pulling":"reached"),P&&window.cancelAnimationFrame(P),"refreshing"!==t&&y(N),v.style.transform=N?"translateY(".concat(N,"px)"):"",_.style.transform=N?"translateY(".concat(N,"px)"):""}},onpanend:O,onpancancel:O}).element,l=n.onpanstart,u=n.onpanmove,h=n.onpanend,p=n.onpancancel,f=!1,c.addEventListener("touchstart",M),u&&c.addEventListener("touchmove",B,{passive:!1}),h&&c.addEventListener("touchend",$,{passive:!1}),p&&c.addEventListener("touchcancel",F,{passive:!1}),{updateLock:function(e){f=e},dispose:function(){c.removeEventListener("touchstart",M),u&&c.removeEventListener("touchmove",B,{passive:!1}),h&&c.removeEventListener("touchend",$,{passive:!1}),p&&c.removeEventListener("touchcancel",F,{passive:!1})}})),{},{updateThreshold:function(e){b=e},triggerOpen:function(){t||(t="pulling",E(0,b,400,(function(e){v.style.transform="translateY(".concat(e,"px)"),_.style.transform=e?"translateY(".concat(e,"px)"):"",y(e)}),(function(e){N=e,I=!1,T()})))},triggerClose:function(){"restoring"!==t&&t&&(t="restoring",x(N),I=!0,k().then((function(){t=null,I=!1})))}})}({parentNode:this.$$,contentNode:o,scrollerNode:this.$.main.$$,container:this.$.container.$$,refresherThreshold:this.refresherThreshold,onPulling:this.onPulling,onRefresh:this.onRefresh,onRestore:this.onRestore,onAbort:this.onAbort}),this._disableRefresher=function(e){t._refresherInst&&t._refresherInst.updateLock(e.detail.disable)},o&&(this._contentNode=o,this._contentNode.addEventListener("disableRefresher",this._disableRefresher)),this.triggerEvent("ready",{ready:!0}),this.refresherEnabled||this._refresherInst.updateLock(!0),this._enablePulldownRefresh=!0,this._checkRefresherStyle(),FinChatJSBridge.subscribe(this.getContextId(),(function(n){if(e.enhanced){var i=n.method,o=n.params,r=void 0===o?{}:o;if("scrollTo"===i){if(!e._scrollEnabled)return;var a=e.$.main.$$,s=r||{},c=s.top,l=s.left,u=s.animated,d=s.duration,h=e.scrollY&&!isNaN(c),p=e.scrollX&&!isNaN(l);h&&p?u?e.scrollBothTo(c,l,d):(a.scrollTop=c,a.scrollLeft=l):h?u?e.scrollTo(c,"y",d):a.scrollTop=c:p&&(u?e.scrollTo(l,"x",d):a.scrollLeft=l)}else if("scrollIntoView"===i){if(!e._scrollEnabled)return;e._scrollIntoView(r.selector)}else if("scrollEnabled"===i){var f=r.enabled;if(e._scrollEnabled===f)return;e._scrollEnabled=f,e._scrollEnabled?(e._scrollXChanged(!0),e._scrollYChanged(!0)):(e._scrollXChanged(!1),e._scrollYChanged(!1))}else"updateProp"===i&&(r.showScrollbar?e.$.main.$$.classList.remove("hide-scrollbar"):e.$.main.$$.classList.add("hide-scrollbar"),e.enhanced&&Mn.invoke("operateScrollView",ku(ku({},r),{},{enhanced:e.enhanced,cid:t._cid,webviewIds:[window.__webviewId__]}),(function(){})))}}))},detached:function(){this.$.main.$$.removeEventListener("scroll",this.__handleScroll),this.$.main.$$.removeEventListener("touchstart",this.__handleTouchStart),this.$.main.$$.removeEventListener("touchmove",this.__handleTouchMove),this.$.main.$$.removeEventListener("touchend",this.__handleTouchEnd),document.removeEventListener("pageReRender",this.__pageReRenderCallback),this._refresherInst&&this._refresherInst.dispose(),this._contentNode&&this._contentNode.removeEventListener("disableRefresher",this._disableRefresher)},methods:{getContextId:function(){return"scrollView-".concat(this._uuid,"-").concat(this.getNodeId())},_checkRefresherStyle:function(){var e=this.$.refresher.$$,t=this.$.refresherDot.$$;if(this.refresherEnabled)switch(this.refresherDefaultStyle){case"none":e.style.display="block",t.style.display="none";break;case"white":e.style.display="none",t.style.display="block",this.$.dot1.$$.classList.add("wx-refresher-default-white"),this.$.dot2.$$.classList.add("wx-refresher-default-white"),this.$.dot3.$$.classList.add("wx-refresher-default-white");break;case"black":e.style.display="none",t.style.display="block",this.$.dot1.$$.classList.remove("wx-refresher-default-white"),this.$.dot2.$$.classList.remove("wx-refresher-default-white"),this.$.dot3.$$.classList.remove("wx-refresher-default-white");break;case"":e.style.display="none",t.style.display="block"}else e.style.display="none",t.style.display="none"},getScrollPosition:function(){var e=this.$.main.$$;return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}},_pageReRenderCallback:function(e){},_getStyle:function(e,t){return"overflow-x: "+(e?"auto":"hidden")+"; overflow-y: "+(t?"auto":"hidden")+";"},_handleTrack:function(e){if("start"===e.detail.state)return this._x=e.detail.x,this._y=e.detail.y,"android"===wd.getPlatform()&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]}),void(this._noBubble=null);"end"===e.detail.state&&(this._noBubble=!1,"android"===wd.getPlatform()&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]})),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,this._isScrollingOnBoundary(e)&&(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._isScrollingOnBoundary(e)&&(this._noBubble=!1)),this._x=e.detail.x,this._y=e.detail.y,this._noBubble&&e.stopPropagation()},handleFullscreenIfNeeded:function(e){var t=this,n=this.$.main.$$;e||(this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function e(){t._lastScrollHeight!==n.scrollHeight?t.timer=setTimeout(e,100):n.scrollTop=t._lastScrollTop}),100))},_isScrollingOnBoundary:function(e){if(!this.scrollX&&!this.scrollY)return!1;var t=this.scrollX?e.detail.dx:e.detail.dy,n=e.currentTarget.$$,i=this.scrollX?n.scrollLeft:n.scrollTop,o=this.scrollX?n.scrollWidth-n.clientWidth:n.scrollHeight-n.clientHeight;return t>0&&i<=0||t<0&&i>=o},_handleScroll:function(e){if(!window._isDelayUpdateScrollTop){var t=this.$.main.$$;if(this.triggerEvent("scroll",{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,scrollWidth:t.scrollWidth,deltaX:this._lastScrollLeft-t.scrollLeft,deltaY:this._lastScrollTop-t.scrollTop}),this.scrollY){var n=this._lastScrollTop-t.scrollTop>0,i=this._lastScrollTop-t.scrollTop<0;t.scrollTop<=this.upperThreshold&&n&&e.timeStamp-this._lastScrollToUpperTime>200&&(this.triggerEvent("scrolltoupper",{direction:"top"}),this._lastScrollToUpperTime=e.timeStamp),t.scrollTop+t.offsetHeight+this.lowerThreshold>=t.scrollHeight&&i&&e.timeStamp-this._lastScrollToLowerTime>200&&(this.triggerEvent("scrolltolower",{direction:"bottom"}),this._lastScrollToLowerTime=e.timeStamp)}if(this.scrollX){var o=this._lastScrollLeft-t.scrollLeft>0,r=this._lastScrollLeft-t.scrollLeft<0;t.scrollLeft<=this.upperThreshold&&o&&e.timeStamp-this._lastScrollToUpperTime>200&&(this.triggerEvent("scrolltoupper",{direction:"left"}),this._lastScrollToUpperTime=e.timeStamp),t.scrollLeft+t.offsetWidth+this.lowerThreshold>=t.scrollWidth&&r&&e.timeStamp-this._lastScrollToLowerTime>200&&(this.triggerEvent("scrolltolower",{direction:"right"}),this._lastScrollToLowerTime=e.timeStamp)}this._lastScrollTop=t.scrollTop,this._lastScrollHeight=t.scrollHeight,this._lastScrollLeft=t.scrollLeft}},_scrollXChanged:function(e){this.$.main.$$.style.overflowX=e&&this._scrollEnabled?"auto":"hidden"},_scrollYChanged:function(e){this.$.main.$$.style.overflowY=e&&this._scrollEnabled?"auto":"hidden"},_scrollTopChanged:function(e){var t=this.$.main.$$;this.scrollY&&(this.scrollWithAnimation?this.scrollTo(e,"y"):t.scrollTop=e)},_scrollLeftChanged:function(e){3===e.lastIndexOf("rpx")&&(e=e.substr(0,e.length-3)/750*414),this.scrollX&&(this.scrollWithAnimation?this.scrollTo(e,"x"):this.$.main.$$.scrollLeft=e)},_scrollIntoViewChanged:function(e){var t=this;if(e){if(Number(e[0])>=0&&Number(e[0])<=9)return console.group('scroll-into-view="'+e+'" 有误'),console.warn("id属性不能以数字开头"),console.groupEnd();Kn((function(){t._scrollIntoView("#"+e)}))}},_scrollIntoView:function(e){if(this.$.main&&this.$.main.$$){var t=this.querySelector(e);if(t){var n=this.$.main.$$.getBoundingClientRect(),i=t.$$.getBoundingClientRect();if(this.scrollX){var o=i.left-n.left,r=this.$.main.$$.scrollLeft+o;this.scrollWithAnimation?this.scrollTo(r,"x"):this.$.main.$$.scrollLeft=r}if(this.scrollY){var a=i.top-n.top,s=this.$.main.$$.scrollTop+a;this.scrollWithAnimation?this.scrollTo(s,"y"):this.$.main.$$.scrollTop=s}}}},refresherEnabledChanged:function(e){this._refresherInst&&this._refresherInst.updateLock(!e),this._checkRefresherStyle()},refresherDefaultStyleChanged:function(){this._checkRefresherStyle()},thresholdChanged:function(e){if(!this.refresherDefaultStyle&&this._refresherInst)return this._refresherInst.updateThreshold(e),e},triggeredChanged:function(e){this.refresherEnabled&&this._refresherInst&&(e?this._refresherInst.triggerOpen():this._refresherInst.triggerClose())},enableFlexChanged:function(e){e?this.$.main.$$.classList.add("wx-scroll-view-flex"):this.$.main.$$.classList.remove("wx-scroll-view-flex")},onPulling:function(e){if(this.triggerEvent("refresherpulling",{dy:e}),this.refresherTriggered||(this.refresherTriggered=!0),this.refresherDefaultStyle){this.$.dot1.$$.classList.contains("wx-refresher-default-dot-1-fold")&&this.$.dot1.$$.classList.remove("wx-refresher-default-dot-1-fold"),this.$.dot3.$$.classList.contains("wx-refresher-default-dot-3-fold")&&this.$.dot3.$$.classList.remove("wx-refresher-default-dot-3-fold");var t=e<=17?0:(e-15-2)/36,n=e<=this.refresherThreshold?13*t-12:1,i=_()(100*n,10)/100;this.$.dot1.$$.style.transform="translateX(".concat(-i,"px)"),this.$.dot3.$$.style.transform="translateX(".concat(i,"px)")}},onRefresh:function(e){this._refreshing=!0,this.triggerEvent("refresherrefresh",{dy:e}),this.refresherDefaultStyle&&(this.$.dot1.$$.classList.add("wx-refresher-default-dot-1-blink-anim"),this.$.dot2.$$.classList.add("wx-refresher-default-dot-2-blink-anim"),this.$.dot3.$$.classList.add("wx-refresher-default-dot-3-blink-anim"))},onRestore:function(e){this._refreshering=!1,this.triggerEvent("refresherrestore",{dy:e}),this.refresherDefaultStyle&&(this.$.dot1.$$.classList.remove("wx-refresher-default-dot-1-blink-anim"),this.$.dot2.$$.classList.remove("wx-refresher-default-dot-2-blink-anim"),this.$.dot3.$$.classList.remove("wx-refresher-default-dot-3-blink-anim"),this.$.dot1.$$.classList.add("wx-refresher-default-dot-1-fold"),this.$.dot3.$$.classList.add("wx-refresher-default-dot-3-fold"))},onAbort:function(e){this._refreshering=!1,this.triggerEvent("refresherabort",{dy:e}),this.refresherDefaultStyle&&(this.$.dot1.$$.classList.remove("wx-refresher-default-dot-1-blink-anim"),this.$.dot2.$$.classList.remove("wx-refresher-default-dot-2-blink-anim"),this.$.dot3.$$.classList.remove("wx-refresher-default-dot-3-blink-anim"))},findParentScrollview:function(){for(var e,t=this.parentNode;("virtual"===t.is||t.$$&&"BODY"!==t.$$.tagName)&&!e&&!(e="wx-scroll-view"===t.is);)t=t.parentNode||t.__slotParent;return e},bouncesChanged:function(){this._operateScrollView(),T||(this.$.main.style.overscrollBehavior=this.bounces?"initial":"none")},enhancedChanged:function(){var e=this.$.main,t=e&&e.$$.getAttribute("class")||"";e&&e.$$&&(this.enhanced?!/tongceng_fcid_/.test(t)&&e.$$.setAttribute("class","tongceng_fcid_".concat(this._cid," ").concat(t)):(t=t.replace("tongceng_fcid_".concat(this._cid),""),e.$$.setAttribute("class","".concat(t)))),this._operateScrollView()},showScrollbarChanged:function(){this._operateScrollView()},_operateScrollView:function(){},scrollTo:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;isNaN(i)&&(i=300),i<=0&&(i=1);var o=this.$.main.$$;e<0?e=0:"x"===t&&e>o.scrollWidth-o.offsetWidth?e=o.scrollWidth-o.offsetWidth:"y"===t&&e>o.scrollHeight-o.offsetHeight&&(e=o.scrollHeight-o.offsetHeight);var r=0,a="";"x"===t?r=o.scrollLeft-e:"y"===t&&(r=o.scrollTop-e),0!==r&&(this._isTransition=!0,this.$.content.$$.style.transition="transform ".concat(i,"ms ease-out"),this.$.content.$$.style.webkitTransition="-webkit-transform ".concat(i,"ms ease-out"),"x"===t?a="translateX("+r+"px) translateZ(0)":"y"===t&&(a="translateY("+r+"px) translateZ(0)"),this.$.content.$$.removeEventListener("transitionend",this.__transitionEnd),this.$.content.$$.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,e,e,t),this.$.content.$$.addEventListener("transitionend",this.__transitionEnd),this.$.content.$$.addEventListener("webkitTransitionEnd",this.__transitionEnd),this._transitionEndTimer&&(clearTimeout(this._transitionEndTimer),this._transitionEndTimer=setTimeout((function(){n._isTransition=!1,n._transitionEndTimer=null,n.__transitionEnd()}),i+50)),"x"===t||"y"===t&&(o.style.overflowY="hidden"),this.$.content.$$.style.transform=a,this.$.content.$$.style.webkitTransform=a)},scrollBothTo:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;isNaN(i)&&(i=300),i<=0&&(i=1);var o=this.$.main.$$;e=Math.max(0,e),t=Math.max(0,t),e>o.scrollHeight-o.offsetHeight&&(e=o.scrollHeight-o.offsetHeight),t>o.scrollWidth-o.offsetWidth&&(t=o.scrollWidth-o.offsetWidth);var r=o.scrollLeft-t,a=o.scrollTop-e;if(0!==a||0!==r){this._isTransition=!0,this.$.content.$$.style.transition="transform ".concat(i,"ms ease-out"),this.$.content.$$.style.webkitTransition="-webkit-transform ".concat(i,"ms ease-out");var s="translateZ(0)";0!==r&&(s="translateX("+r+"px)"+s),0!==a&&(s="translateY("+a+"px)"+s),this.$.content.$$.removeEventListener("transitionend",this.__transitionEnd),this.$.content.$$.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=this._transitionEnd.bind(this,e,t,"both"),this.$.content.$$.addEventListener("transitionend",this.__transitionEnd),this.$.content.$$.addEventListener("webkitTransitionEnd",this.__transitionEnd),this._transitionEndTimer&&(clearTimeout(this._transitionEndTimer),this._transitionEndTimer=setTimeout((function(){n._isTransition=!1,n._transitionEndTimer=null,n.__transitionEnd()}),i+50)),o.style.overflowY="hidden",this.$.content.$$.style.transform=s,this.$.content.$$.style.webkitTransform=s}},_transitionEnd:function(e,t,n){this._transitionEndTimer&&(clearTimeout(this._transitionEndTimer),this._transitionEndTimer=null),this.$.content.$$.style.transition="",this.$.content.$$.style.webkitTransition="",this.$.content.$$.style.transform="",this.$.content.$$.style.webkitTransform="";var i=this.$.main.$$;"x"===n?(i.style.overflowX=this.scrollX?"auto":"hidden",i.scrollLeft=t):"y"===n?(i.style.overflowY=this.scrollY?"auto":"hidden",i.scrollTop=e):"both"===n&&(i.style.overflowX=this.scrollX?"auto":"hidden",i.scrollLeft=t,i.style.overflowY=this.scrollY?"auto":"hidden",i.scrollTop=e),this._isTransition=!1,this.$.content.$$.removeEventListener("transitionend",this.__transitionEnd),this.$.content.$$.removeEventListener("webkitTransitionEnd",this.__transitionEnd),this.__transitionEnd=null}}}),function(e){return e%1!=0}),Nu=function(e){var t=Number(e);if(isNaN(e)||!Iu(e))return 0;var n=t.toString();return/\./.test(n)?n.split(".")[1].length:Number(n.split("e-")[1])},Pu=(window.ftparser.registerElement({is:"wx-slider",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-slider-wrapper"},a:[{n:"wx-slider-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]}],c:[{t:1,n:"div",id:"wrapper",cl:{v:"wx-slider-tap-area"},a:[],c:[{t:1,n:"div",cl:{v:"wx-slider-handle-wrapper"},a:[{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getBackgroundColor",[e.color,e.backgroundColor])},l:null,b:[[null,"_getBackgroundColor"],[null,"backgroundColor"],[null,"color"]]}],c:[{t:1,n:"div",id:"handle",cl:{v:"wx-slider-handle"},a:[{n:"left",o:"s",e:function(e,i,o){return t(o,n,"_getValueWidth",[e._filteredValue,e.min,e.max])},l:null,b:[[null,"_getValueWidth"],[null,"_filteredValue"],[null,"min"],[null,"max"]]}],c:[]},{t:1,n:"div",cl:{v:"wx-slider-thumb"},a:[{n:"width",o:"s",e:function(e,i,o){return t(o,n,"_getBlockSize",[e.blockSize])+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"height",o:"s",e:function(e,i,o){return t(o,n,"_getBlockSize",[e.blockSize])+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"margin-left",o:"s",e:function(e,i,o){return-t(o,n,"_getBlockSize",[e.blockSize])/2+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"margin-top",o:"s",e:function(e,i,o){return-t(o,n,"_getBlockSize",[e.blockSize])/2+"px"},l:null,b:[[null,"_getBlockSize"],[null,"blockSize"]]},{n:"left",o:"s",e:function(e,i,o){return t(o,n,"_getValueWidth",[e._filteredValue,e.min,e.max])},l:null,b:[[null,"_getValueWidth"],[null,"_filteredValue"],[null,"min"],[null,"max"]]},{n:"background-color",o:"s",e:function(e,t,n){return e.blockColor},l:[null],b:[[null,"blockColor"]]}],c:[]},{t:1,n:"div",cl:{v:"wx-slider-track"},a:[{n:"width",o:"s",e:function(e,i,o){return t(o,n,"_getValueWidth",[e.value,e.min,e.max])},l:null,b:[[null,"_getValueWidth"],[null,"value"],[null,"min"],[null,"max"]]},{n:"background-color",o:"s",e:function(e,i,o){return t(o,n,"_getActiveColor",[e.selectedColor,e.activeColor])},l:null,b:[[null,"_getActiveColor"],[null,"activeColor"],[null,"selectedColor"]]}],c:[]},{t:1,n:"div",id:"step",cl:{v:"wx-slider-step"},a:[],c:[]}]}]},{t:1,n:"span",cl:{v:"wx-slider-value"},a:[{n:"hidden",o:"$",e:function(e,t,n){return!e.showValue},l:null,b:[[null,"showValue"]]}],c:[{t:1,n:"p",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.value},b:[[null,"value"]],t:3}]}]}]}]},properties:{min:{type:Number,value:0,public:!0,observer:"_revalicateRange"},max:{type:Number,value:100,public:!0,observer:"_revalicateRange"},step:{type:Number,value:1,public:!0},value:{type:Number,value:0,public:!0,observer:"_revalicateRange"},showValue:{type:Boolean,value:!1,public:!0},activeColor:{type:String,value:"#1AAD19",public:!0},backgroundColor:{type:String,value:"#E9E9E9",public:!0},blockSize:{type:Number,value:28,public:!0},blockColor:{type:String,value:"#ffffff",public:!0},color:{type:String,value:"",public:!0},selectedColor:{type:String,value:"#1AAD19",public:!0},_filteredValue:{type:Number}},listeners:{"wrapper.tap":"_onTap"},behaviors:["wx-base","wx-data-component","wx-disabled","wx-touchtrack"],created:function(){this.touchtrack(this.$.handle,"_onTrack")},attached:function(){this._setAria()},methods:{_setAria:function(){this.$$.setAttribute("role","slider"),this.$$.setAttribute("aria-valuemin",this.min),this.$$.setAttribute("aria-valuemax",this.max),this.$$.setAttribute("aria-valuenow",this.value)},_filterValue:function(e){return e<this.min?this.min:e>this.max?this.max:Math.round((e-this.min)/this.step)*this.step+this.min},_revalicateRange:function(){var e=this._filterValue(this.value);if(Iu(this.min)||Iu(this.max)||Iu(this.step)){var t=Math.max(Nu(this.min),Nu(this.max),Nu(this.step));e=+e.toFixed(t)}this._filteredValue=e,this._setAria()},_getValueWidth:function(e,t,n){return 100*(e-t)/(n-t)+"%"},_getValueTextWidth:function(e,t,n){var i=Math.round(t).toString().length,o=Math.max(Nu(e),Nu(t),Nu(n)),r=o>0?o+i:i;return"ios"===wx.getPlatform()?"calc(".concat(r,"ch + 1px)"):"".concat(r,"ch")},_getBlockSize:function(e){return e>28?28:e<12?12:e},_getBackgroundColor:function(e,t){var n="#E9E9E9";return"#E9E9E9"!==t?n=t:"#E9E9E9"!==e&&(n=e),n},_getActiveColor:function(e,t){var n="#1AAD19";return"#1AAD19"!==t?n=t:"#1AAD19"!==e&&(n=e),n},_onUserChangedValue:function(e){var t=this.$.step.offsetWidth,n=this.$.step.getBoundingClientRect().left,i=(e.detail.x-n)*(this.max-this.min)/t+this.min;if(i=this._filterValue(i),void 0===this._startValue){if(this.value===i)return!1}else if(this._startValue===i)return!1;return this.value=i,!0},_onTrack:function(e){if(!this.disabled){if(void 0===this._startValue&&(this._startValue=this.value),"move"===e.detail.state)return this._onUserChangedValue(e),this.triggerEvent("changing",{value:this.value}),!1;"end"===e.detail.state&&(this._triggerChangeEvent(e),this._startValue=void 0)}},_onTap:function(e){this.disabled||this._triggerChangeEvent(e)},_triggerChangeEvent:function(e){this._onUserChangedValue(e)&&this.triggerEvent("change",{value:this.value})},resetFormData:function(){this.value=this.min},moveStep:function(e){var t=this._filterValue(e<0?this.value-this.step:this.value+this.step);this.value!==t&&(this.value=t,this.triggerEvent("change",{value:this.value}))}}}),"RESET_LAYOUT_BY_CHILD_NODE_CHANGED"),Ou=(window.ftparser.registerElement({is:"wx-swiper",template:function(e,t,n){return[{t:1,n:"div",id:"slidesWrapper",cl:{v:"wx-swiper-wrapper"},a:[{n:"role",v:"listbox"},{n:"aria-label",e:function(e,i,o){return t(o,n,"_getScrollStr",[e.vertical])},l:null,b:[[null,"_getScrollStr"],[null,"vertical"]]}],c:[{t:1,n:"div",id:"slides",cl:{v:"wx-swiper-slides"},a:[],c:[{t:1,n:"div",id:"slideFrame",cl:{v:"wx-swiper-slide-frame"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},{t:1,n:"div",id:"slidesDots",cl:{v:"wx-swiper-dots"},a:[{n:"hidden",o:"$",e:function(e,t,n){return!e.indicatorDots},l:null,b:[[null,"indicatorDots"]]},{n:"wx-swiper-dots-horizontal",o:"c",e:function(e,t,n){return!e.vertical},l:null,b:[[null,"vertical"]]},{n:"wx-swiper-dots-vertical",o:"c",e:function(e,t,n){return e.vertical},l:[null],b:[[null,"vertical"]]}],c:[]}]}]},behaviors:["wx-base","wx-touchtrack","wx-positioning-container","wx-reload"],properties:{indicatorDots:{type:Boolean,value:!1,public:!0},vertical:{type:Boolean,value:!1,observer:"_updateLayout",public:!0},autoplay:{type:Boolean,value:!1,observer:"_autoplayChanged",public:!0},circular:{type:Boolean,value:!1,observer:"_updateLayout",public:!0},interval:{type:Number,value:5e3,public:!0,observer:"_autoplayChanged"},duration:{type:Number,value:500,public:!0},current:{type:Number,value:0,observer:"_currentChanged",public:!0},indicatorColor:{type:String,value:"",observer:"_updateDotsColor",public:!0},indicatorActiveColor:{type:String,value:"",observer:"_updateDotsColor",public:!0},previousMargin:{type:String,value:"",observer:"_updateMargin",public:!0},nextMargin:{type:String,value:"",observer:"_updateMargin",public:!0},snapToEdge:{type:Boolean,value:!1,observer:"_updateMargin",public:!0},currentItemId:{type:String,value:"",observer:"_currentItemIdChanged",public:!0},skipHiddenItemLayout:{type:Boolean,value:!1,observer:"_skipHiddenItemLayoutChanged",public:!0},displayMultipleItems:{type:Number,value:1,observer:"_updateDisplayMultipleItems",public:!0},easingFunction:{type:String,value:"default",public:!0}},relations:{"wx-swiper-item":{type:"descendant",linked:function(){this._itemListChanged(),this._resetLayout({triggeredBy:Pu})},linkChanged:function(){this._itemListChanged(),this._resetLayout({triggeredBy:Pu})},unlinked:function(){this._itemListChanged(),this._resetLayout({triggeredBy:Pu})}}},attached:function(){var e=this;this._resetLayoutHandler=function(){e._resetLayout()},this._attachedCb()},moved:function(){this._detachedCb(),this._attachedCb()},detached:function(){this._detachedCb()},saved:function(e){var t={};this.saveCompVar(t,["current"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},created:function(){this._attached=!1,this._invalid=!0,this._circularEnabled=!1,this._currentChangeSource="",this._viewportPosition=0,this._marginSpecified=!1,this._viewportMoveRatio=1,this._scheduleTimeoutObj=null,this._animating=null,this._requestedAnimation=!1,this._animateFrameFunc=this._animateFrameFuncProto.bind(this),this._itemIdItemMap={},this._items=[],this._itemListDirty=!1,this._userTracking=!1,this._userDirectionChecked=!1,this._contentTrackViewport=0,this._wheelDistance=0,this._contentTrackSpeed=0,this._contentTrackT=0,this._skipHiddenItemLayoutModified=!1,this.touchtrack(this.$.slidesWrapper,"_handleContentTrack",!0),this._previous=0,this._swiping=!1,this._transitioning=!1,this._wheelDistance=0},methods:{_getScrollStr:function(e){var t="可";return(t+=e?"竖向":"横向")+"滚动"},_attachedCb:function(){this._attached||(this._attached=!0,this._resetLayout(),this.autoplay&&this._scheduleAutoplay(),this._wheelHandlerWrap=this._wheelHandler.bind(this),this.$$.addEventListener("wheel",this._wheelHandlerWrap),ftparser.addListenerToElement(document,"onScrollWheelStart",this._wheelStart.bind(this)),ftparser.addListenerToElement(document,"onScrollWheelEnd",this._wheelEnd.bind(this)),document.addEventListener("windowResize",this._resetLayoutHandler))},_detachedCb:function(){this._attached=!1,this._cancelSchedule(),this.$$.removeEventListener("wheel",this._wheelHandlerWrap),document.removeEventListener("windowResize",this._resetLayoutHandler)},_itemIdUpdated:function(e,t,n){t!==n&&(this._itemListChanged(),this.currentItemId&&this._currentItemIdChanged())},_currentItemIdChanged:function(e){"__none__"!==this._currentChangeSource?""!==e&&(this.current=this._getPositionFromCurrent()):this._currentChangeSource=""},_currentChanged:function(e,t){if("__none__"!==this._currentChangeSource){var n=this._currentChangeSource;if(this._currentChangeSource="",this._isCurrentValueLegal(e))if(this._isCurrentValueLegal(t)){if(n||this._animateViewport(e,"",0),e!==t){var i=this._getItems()[e];i&&(this._currentChangeSource="__none__",this.currentItemId=i.itemId,"__none__"===this._currentChangeSource&&(this._currentChangeSource=""),this.triggerEvent("change",{current:this.current,currentItemId:i.itemId,source:n})),this._updateDots(e)}}else this._resetLayout();else this._resetLayout()}else this._currentChangeSource=""},_updateMargin:function(){this._marginSpecified=!0,this._resetLayout()},_skipHiddenItemLayoutChanged:function(){this._skipHiddenItemLayoutModified=!0,this._updateLayout()},_updateDisplayMultipleItems:function(e){var t=this;this._updateLayout(),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){t._attached&&e>t._getItems().length&&console.warn("For developer:[swiper] display-multiple-items不能大于swiper-item数量")}))}))},_updateLayout:function(){this._resetLayout()},_autoplayChanged:function(e){e?this._scheduleAutoplay():this._cancelSchedule()},_itemListChanged:function(){this._itemListDirty=!0},_updateItemList:function(){var e=this;this._itemListDirty=!1,this._items=this.getRelationNodes("wx-swiper-item"),this._items.forEach((function(t){t.itemId&&(e._itemIdItemMap[t.itemId]||(e._itemIdItemMap[t.itemId]=t))}))},_getItems:function(){return this._itemListDirty&&this._updateItemList(),this._items},_getItemByItemId:function(e){return this._itemListDirty&&this._updateItemList(),this._itemIdItemMap[e]},_scheduleAutoplay:function(){var e=this;this._cancelSchedule(),!this._attached||this._invalid||this._getItems().length<=this.displayMultipleItems||(this._scheduleTimeoutObj=setTimeout((function t(){e._scheduleTimeoutObj=null,e._currentChangeSource="autoplay",e._circularEnabled?e.current=e._normalizeCurrentValue(e.current+1):e.current=e.current+e.displayMultipleItems<e._getItems().length?e.current+1:0,e._animateViewport(e.current,"autoplay",e._circularEnabled?1:0),e._scheduleTimeoutObj=setTimeout(t,e.interval)}),this.interval))},_cancelSchedule:function(){this._scheduleTimeoutObj&&(clearTimeout(this._scheduleTimeoutObj),this._scheduleTimeoutObj=null)},_updateDots:function(e){var t=!this._invalid,n=this.$.slidesDots;n.innerHTML="";for(var i=this._getItems(),o=document.createDocumentFragment(),r=0;r<i.length;r++){var a=document.createElement("div");a.setAttribute("data-dot-index",r),t&&r>=e&&r<e+this.displayMultipleItems||r<e+this.displayMultipleItems-i.length?(a.setAttribute("class","wx-swiper-dot wx-swiper-dot-active"),this.indicatorActiveColor&&(a.style.backgroundColor=this.indicatorActiveColor)):(a.setAttribute("class","wx-swiper-dot"),this.indicatorColor&&(a.style.backgroundColor=this.indicatorColor)),o.appendChild(a)}n.appendChild(o)},_updateDotsColor:function(){for(var e=this.$.slidesDots,t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];n.getAttribute("class").indexOf("wx-swiper-dot-active")>=0?this.indicatorActiveColor&&(n.style.backgroundColor=this.indicatorActiveColor):this.indicatorColor&&(n.style.backgroundColor=this.indicatorColor)}},_normalizeCurrentValue:function(e){var t=this._getItems().length;if(!t)return-1;var n=(Math.round(e)%t+t)%t;if(this._circularEnabled){if(t<=this.displayMultipleItems)return 0}else if(n>t-this.displayMultipleItems)return t-this.displayMultipleItems;return n},_isCurrentValueLegal:function(e){return!!this._getItems().length&&e===this._normalizeCurrentValue(e)},_transformPropRpx:function(e){return/^\s*[+-]?\d+(\.\d+)?(px)?\s*$/i.test(e)?"px"!==e.slice(-2)?e+"px":e:/^\s*[+-]?\d+(\.\d+)?rpx\s*$/i.test(e)?wx.transformRpx("%%?"+e+"?%%"):""},_getPositionFromCurrent:function(){return this.currentItemId?this._getItems().indexOf(this._getItemByItemId(this.currentItemId)):this._isCurrentValueLegal(this.current)?this.current:-2},_updateHiddenItemDisplay:function(e){if(this._skipHiddenItemLayoutModified)for(var t=this._getItems(),n=0;n<t.length;n++){var i=t[n],o=i._position<=e-2||i._position>=e+this.displayMultipleItems+1;i.style.display=o?"none":i._originalDisplay}},_resetLayout:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).triggeredBy;if(this._attached){this._cancelSchedule(),this._endViewportAnimation();var n=this._getItems();this.currentItemId&&(this._currentChangeSource="__none__",this.current=this._getPositionFromCurrent(),"__none__"===this._currentChangeSource&&(this._currentChangeSource=""));var i=this.$.slides,o=this.$.slideFrame;this.vertical?(this._marginSpecified&&(i.style.left=0,i.style.right=0,i.style.top=this._transformPropRpx(this.previousMargin),i.style.bottom=this._transformPropRpx(this.nextMargin)),o.style.width="100%",o.style.height=Math.abs(100/this.displayMultipleItems)+"%"):(this._marginSpecified&&(i.style.top=0,i.style.bottom=0,i.style.left=this._transformPropRpx(this.previousMargin),i.style.right=this._transformPropRpx(this.nextMargin)),o.style.height="100%",o.style.width=Math.abs(100/this.displayMultipleItems)+"%"),this._itemPos=[];for(var r=0;r<n.length;r++)this._skipHiddenItemLayoutModified&&(n[r].style.display=n[r]._originalDisplay),this._updateItemPos(r,r);if(this._viewportMoveRatio=1,1===this.displayMultipleItems&&n.length){var a=n[0].$$.getBoundingClientRect(),s=this.$.slideFrame.getBoundingClientRect();this._viewportMoveRatio=a.width/s.width,this._viewportMoveRatio>0&&this._viewportMoveRatio<1||(this._viewportMoveRatio=1)}this._circularEnabled=this.circular&&n.length>this.displayMultipleItems;var c=this._viewportPosition;this._viewportPosition=-2;var l=this._getPositionFromCurrent();l>=0?(this._invalid=!1,this._userTracking?(this._updateViewport(c+l-this._contentTrackViewport,!0),this._contentTrackViewport=l):this._updateViewport(l,!0),this.autoplay&&this._scheduleAutoplay()):(this._invalid=!0,this._updateViewport(-this.displayMultipleItems-1,!0),t===Pu&&window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){var t=e._getItems().length;e._attached&&e.current>t-1&&(e.current=0,console.warn("For developer:[swiper] current 无效,请修改 current 值"))}))}))),this._updateDots(l),this.updatePositioningContainer()}},_checkCircularLayout:function(e){if(!this._invalid)for(var t=this._getItems(),n=t.length,i=e+this.displayMultipleItems,o=0;o<n;o++){var r=t[o]._position,a=Math.floor(e/n)*n+o,s=a+n,c=a-n,l=Math.max(e-(a+1),a-i,0),u=Math.max(e-(s+1),s-i,0),d=Math.max(e-(c+1),c-i,0),h=Math.min(l,u,d),p=[a,s,c][[l,u,d].indexOf(h)];r!==p&&this._updateItemPos(o,p)}},_updateItemPos:function(e,t){var n="translate("+(this.vertical?"0":100*t+"%")+", "+(this.vertical?100*t+"%":"0")+") translateZ(0)",i=this._getItems()[e];i.style["-webkit-transform"]=n,i.style.transform=n,i._position=t,this._updateItemContainer(i,e,t)},_updateItemContainer:function(e,t,n){},_viewportMin:function(){var e=this.vertical?{left:"offsetTop",width:"offsetHeight"}:{left:"offsetLeft",width:"offsetWidth"};return this.snapToEdge&&this.previousMargin&&!this.circular&&this._getItems().length>=2?this.$.slides[e.left]/this.$.slideFrame[e.width]:0},_viewportMax:function(){var e=this.vertical?{left:"offsetTop",width:"offsetHeight"}:{left:"offsetLeft",width:"offsetWidth"};if(this.snapToEdge&&this.nextMargin&&!this.circular&&this._getItems().length>=2){var t=this.$.slidesWrapper[e.width]-this.$.slides[e.left]-this.$.slides[e.width];return this._getItems().length-this.displayMultipleItems-t/this.$.slideFrame[e.width]}return this._getItems().length-this.displayMultipleItems},_calcNewPosition:function(e){var t=this.vertical?{left:"offsetTop",width:"offsetHeight"}:{left:"offsetLeft",width:"offsetWidth"};if(this.snapToEdge&&0===e&&this.previousMargin&&!this.circular&&this._getItems().length>=2&&(e=this.$.slides[t.left]/this.$.slideFrame[t.width]),this.snapToEdge&&e===this._getItems().length-this.displayMultipleItems&&this.nextMargin&&!this.circular&&this._getItems().length>=2){var n=this.$.slidesWrapper[t.width]-this.$.slides[t.left]-this.$.slides[t.width];e=this._getItems().length-this.displayMultipleItems-n/this.$.slideFrame[t.width]}return e},_updateViewport:function(e,t){Math.floor(2*this._viewportPosition)===Math.floor(2*e)&&Math.ceil(2*this._viewportPosition)===Math.ceil(2*e)||(this._circularEnabled&&this._checkCircularLayout(e),this.skipHiddenItemLayout&&this._updateHiddenItemDisplay(e)),t&&(e=this._calcNewPosition(e));var n="translate("+(this.vertical?"0":100*-e*this._viewportMoveRatio+"%")+", "+(this.vertical?100*-e*this._viewportMoveRatio+"%":"0")+") translateZ(0)";this.$.slideFrame.style["-webkit-transform"]=n,this.$.slideFrame.style.transform=n,this._viewportPosition=e;var i=this.$.slideFrame,o=this._getItems().length,r={scrollLeft:this.vertical?0:e*this._viewportMoveRatio*i.offsetWidth,scrollTop:this.vertical?e*this._viewportMoveRatio*i.offsetHeight:0,scrollWidth:(this.vertical?1:o)*i.offsetWidth,scrollHeight:(this.vertical?o:1)*i.offsetHeight};if(this.triggerPositionChangeEvents(),this.updatePositioningContainer({contentOffsetLeft:r.scrollLeft,contentOffsetTop:r.scrollTop}),!this._scrollPosition||this._scrollPosition.scrollLeft!==r.scrollLeft||this._scrollPosition.scrollTop!==r.scrollTop){if("touch"===(this._animating||{}).source&&!this._swiping||!this._transitioning)return void(this._scrollPosition=r);var a=r.scrollLeft,s=r.scrollTop,c=0,l=0;this.vertical?l=this._getTransitionDeltaY(s):c=this._getTransitionDeltaX(a),this.triggerEvent("transition",{dx:c,dy:l})}this._scrollPosition=r},_getTransitionDeltaX:function(e){var t=this.$.slideFrame.offsetWidth,n=Math.abs(_()(this._lastPosX,10)-_()(e,10));if(null!==this._lastPosX&&n>t||this._transposed){this._transposed=!0;var i=(this._getItems().length-1)*t;this._circularEnabled&&(Math.sign(this._lastPosX)<0?e=-(t-(e-i)):Math.sign(this._lastPosX)>0&&(e=i+(t+e)))}else{if(this.autoplay&&this._previous===this._getItems().length-1&&e<=0&&(null==this._lastPosX||e>this._lastPosX))return this._lastPosX=e,t-Math.abs(e);this._lastPosX=e}return e-this._previous*t},_getTransitionDeltaY:function(e){var t=this.$.slideFrame.offsetHeight,n=Math.abs(_()(this._lastPosY,10)-_()(e,10));if(null!==this._lastPosY&&n>t||this._transposed){this._transposed=!0;var i=(this._getItems().length-1)*t;this._circularEnabled&&(Math.sign(this._lastPosY)<0?e=-(t-(e-i)):Math.sign(this._lastPosY)>0&&(e=i+(t+e)))}else{if(this.autoplay&&this._previous===this._getItems().length-1&&e<=0&&(null==this._lastPosY||e>this._lastPosY))return this._lastPosY=e,t-Math.abs(e);this._lastPosY=e}return e-this._previous*t},_animateFrameFuncProto:function(){if(this._animating){this._transitioning=!0;var e=this._animating,t=e.endTime,n=e.source,i=e.fromPos,o=e.startTime,r=e.toPos,a=this._calcNewPosition(r),s=this.duration,c=2*(i-a)/(s*s),l=t-v()();if(l<=0){this._updateViewport(a),this._animating=null,this._requestedAnimation=!1;var u=this._getItems()[this.current];u&&(("touch"!==n||this._swiping)&&this.triggerEvent("animationfinish",{current:this.current,currentItemId:u.itemId,source:n}),this._swiping=!1,this._transitioning=!1,this._transposed=!1,this._lastPosX=null,this._lastPosY=null,this._previous=this.current)}else{var d,h=v()()-o;switch(this.easingFunction){case"easeInCubic":d=function(e,t,n,i){return(n-t)*(e/=i)*e*e+t}(h,i,a,this.duration);break;case"easeOutCubic":d=function(e,t,n,i){return(n-t)*((e=e/i-1)*e*e+1)+t}(h,i,a,this.duration),this._updateViewport(d);break;case"easeInOutCubic":d=function(e,t,n,i){var o=n-t;return(e/=i/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(h,i,a,this.duration);break;case"linear":d=function(e,t,n,i){return(n-t)*e/i+t}(h,i,a,this.duration);break;default:d=a+c*l*l/2}this._updateViewport(d),requestAnimationFrame(this._animateFrameFunc)}}else this._requestedAnimation=!1},_animateViewport:function(e,t,n){this._cancelViewportAnimation();var i=this.duration,o=this._getItems().length,r=this._viewportPosition;if(this._circularEnabled)if(n<0){for(;r<e;)r+=o;for(;r-o>e;)r-=o}else if(n>0){for(;r>e;)r-=o;for(;r+o<e;)r+=o}else{for(;r+o<e;)r+=o;for(;r-o>e;)r-=o;r+o-e<e-r&&(r+=o),e-(r-o)<r-e&&(r-=o)}this._animating={fromPos:r,toPos:e,acc:2*(r-e)/(i*i),startTime:v()(),endTime:v()()+i,source:t},this._requestedAnimation||(this._requestedAnimation=!0,requestAnimationFrame(this._animateFrameFunc))},_cancelViewportAnimation:function(){this._animating=null},_endViewportAnimation:function(){this._animating&&(this._updateViewport(this._animating.toPos),this._animating=null)},_wheelStart:function(){this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._wheelDistanceX=0,this._wheelDistanceY=0,this._wheelStartFlag=1},_wheelHandler:function(e){var t=this,n=e.deltaX,i=e.deltaY;if(this._wheelStartFlag){this._wheelStartFlag=2,this._swiping=!0;var o=this._viewportMax(),r=this._viewportMin(),a=function(e){return.5-.25/(e+.5)},s=function(e,n){var i=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,(t._circularEnabled||i<r||i>o)&&(i<r?i=-a(-i):i>o&&(i=o+a(i-o)),t._contentTrackSpeed=0),t._updateViewport(i)};this._wheelDistanceY+=i,this._wheelDistanceX+=n,this.vertical?s(this._wheelDistanceY/this.$.slideFrame.offsetHeight,i):s(this._wheelDistanceX/this.$.slideFrame.offsetWidth,n)}},_wheelEnd:function(){2===this._wheelStartFlag&&this._handleTrackEnd(),this._wheelStartFlag=0},_handleTrackStart:function(){this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=v()()},_handleTrackMove:function(e){var t=this;this._swiping=!0,this._transitioning=!0;var n=this._contentTrackT;this._contentTrackT=v()();var i=this._viewportMax(),o=this._viewportMin(),r=function(e){return.5-.25/(e+.5)},a=function(e,n){var a=t._contentTrackViewport+e;t._contentTrackSpeed=.6*t._contentTrackSpeed+.4*n,!t._circularEnabled&&(a<o||a>i)&&(a<o?a=-r(-a):a>i&&(a=i+r(a-i)),t._contentTrackSpeed=0),t._updateViewport(a)},s=this._contentTrackT-n;0===s&&(s=1),this.vertical?a(-e.dy/this.$.slideFrame.offsetHeight,-e.ddy/s):a(-e.dx/this.$.slideFrame.offsetWidth,-e.ddx/s)},_handleTrackEnd:function(e){this.autoplay&&this._scheduleAutoplay(),this._userTracking=!1;var t=0===this._contentTrackSpeed?0:this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!e&&Math.abs(this._contentTrackSpeed)>.2&&(n=.5*t);var i=this._normalizeCurrentValue(this._viewportPosition+n);e?this._updateViewport(this._contentTrackViewport):this.current!==i?(this._currentChangeSource="touch",this.current=i,this._animateViewport(i,"touch",n)):this._animateViewport(i,"touch",n)},_handleContentTrack:function(e){if(!this._invalid){if("start"===e.detail.state)return this._userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart();if(this._userTracking){if("end"===e.detail.state)return this._handleTrackEnd(!1);if("cancel"===e.detail.state)return this._handleTrackEnd(!0);if(!this._userDirectionChecked){this._userDirectionChecked=!0;var t=Math.abs(e.detail.dx),n=Math.abs(e.detail.dy);if(this._animating&&(t<n&&this.vertical||t>n&&!this.vertical)&&this._cancelViewportAnimation(),(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}}},getScrollPosition:function(){return{scrollLeft:this._scrollPosition&&this._scrollPosition.scrollLeft||0,scrollTop:this._scrollPosition&&this._scrollPosition.scrollTop||0,scrollWidth:this._scrollPosition&&this._scrollPosition.scrollWidth||0,scrollHeight:this._scrollPosition&&this._scrollPosition.scrollHeight||0}},getScrollSize:function(){var e=this.$.slideFrame;return this.vertical?{width:e.offsetWidth,height:e.offsetHeight*this._getItems().length}:{width:e.offsetWidth*this._getItems().length,height:e.offsetHeight}},handleFullscreenIfNeeded:function(e){var t=this.$.slidesWrapper.style;e?(t.position="static",t.transform="none",t.webkitTransform="none"):(t.position="",t.transform="",t.webkitTransform="")}}}),window.isIDE),Lu=(window.ftparser.registerElement({is:"wx-swiper-item",behaviors:["wx-base","wx-positioning-container"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{itemId:{type:String,value:"",observer:function(e,t){var n=this.getRelationNodes("wx-swiper")[0];n&&n._itemIdUpdated(this,e,t)},public:!0}},relations:{"wx-swiper":{type:"ancestor"}},attached:function(){this._scheduledScrollPosition=!1,Ou&&this.$$.getAttribute("style")&&console.warn("For developer: 建议在 swiper-item 子节点上设置样式。"),this._attachedCb()},moved:function(){this._detachedCb(),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_invalidChild:function(e){if(e.target!==this)return!1},_setDomStyle:function(){var e=this.$$;e.style.position="absolute",e.style.width="100%",e.style.height="100%"},_attachedCb:function(){this._attached||(this._attached=!0,this._setDomStyle(),this._originalDisplay=this.$$.style.display)},_detachedCb:function(){this._attached=!1},getScrollPosition:function(){return{scrollLeft:0,scrollTop:0,scrollWidth:0,scrollHeight:0}},_keepSyncScrollPosition:function(){var e=this;if(!this._scheduledScrollPosition){this._scheduledScrollPosition=!0;var t=0,n={};window.requestAnimationFrame((function i(){var o=e.getPositioningOffset();o.left!==n.left||o.top!==n.top||4!=++t?(n=o,e.updateScrollPosition(o),window.requestAnimationFrame(i)):e._scheduledScrollPosition=!1}))}}}}),window.ftparser.registerElement({is:"wx-switch",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-switch-wrapper"},a:[],c:[{t:1,n:"div",id:"switchInput",cl:{v:"wx-switch-input"},a:[{n:"hidden",o:"$",e:function(e,i,o){return!t(o,n,"isSwitch",[e.type])},l:null,b:[[null,"isSwitch"],[null,"type"]]},{n:"type",v:"checkbox"},{n:"wx-switch-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-switch-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"background-color",o:"s",e:function(e,t,n){return e.color},l:[null],b:[[null,"color"]]},{n:"border-color",o:"s",e:function(e,i,o){return t(o,n,"_getSwitchBorderColor",[e.checked,e.color])},l:null,b:[[null,"_getSwitchBorderColor"],[null,"checked"],[null,"color"]]}],c:[]},{t:1,n:"div",id:"checkboxInput",cl:{v:"wx-checkbox-input"},a:[{n:"hidden",o:"$",e:function(e,i,o){return!t(o,n,"isCheckbox",[e.type])},l:null,b:[[null,"isCheckbox"],[null,"type"]]},{n:"type",v:"checkbox"},{n:"wx-checkbox-input-checked",o:"c",e:function(e,t,n){return e.checked},l:[null],b:[[null,"checked"]]},{n:"wx-checkbox-input-disabled",o:"c",e:function(e,t,n){return e.disabled},l:[null],b:[[null,"disabled"]]},{n:"color",o:"s",e:function(e,t,n){return e.color},l:[null],b:[[null,"color"]]}],c:[]}]}]},properties:{checked:{type:Boolean,value:!1,public:!0,observer:"_checkedChanged"},type:{type:String,value:"switch",public:!0},color:{type:String,value:"#04BE02",public:!0}},behaviors:["wx-base","wx-label-aria","wx-label-target","wx-disabled","wx-data-component","wx-reload"],listeners:{"switchInput.tap":"onInputChange","checkboxInput.tap":"onInputChange"},attached:function(){this._setAria("checkbox")},saved:function(e){var t={};this.saveCompVar(t,["checked"]),this.saveState(e,t)},restored:function(e){var t=this.restoreState(e);t&&this.restoreCompVar(t)},methods:{_checkedChanged:function(e){this.$$.setAttribute("aria-checked",e),this._setRelatedLabelAria("checkbox")},_getSwitchBorderColor:function(e,t){return e?t:""},handleLabelTap:function(e){this.onInputChange(e)},onInputChange:function(e){this.checked=!this.checked,this.disabled?this.checked=!this.checked:this.triggerEvent("change",{value:this.checked})},isSwitch:function(e){return"checkbox"!==e},isCheckbox:function(e){return"checkbox"===e},getFormData:function(){return this.checked},resetFormData:function(){this.checked=!1}}}),window.ftparser.registerElement({is:"wx-text",template:function(e,t,n){return[{t:1,n:"span",id:"raw",st:{v:"display:none;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},{t:1,n:"span",id:"main",a:[],c:[]}]},behaviors:["wx-base"],properties:{selectable:{type:Boolean,value:!1,public:!0},userSelect:{type:Boolean,value:!1,public:!0,observer:"userSelectChanged"},decode:{type:Boolean,value:!1,public:!0},space:{type:String,value:"",public:!0}},methods:{_htmlDecode:function(e){return this.space&&("nbsp"===this.space?e=e.replace(/ /g," "):"ensp"===this.space?e=e.replace(/ /g," "):"emsp"===this.space&&(e=e.replace(/ /g," "))),this.decode?e.replace(/&nbsp;/g," ").replace(/&ensp;/g," ").replace(/&emsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&"):e},_update:function(){for(var e=this.$.raw,t=document.createDocumentFragment(),n=0,i=e.childNodes.length;n<i;n++){var o=e.childNodes.item(n);if(o.nodeType===o.TEXT_NODE)for(var r=this._htmlDecode(o.textContent).split("\n"),a=0;a<r.length;a++)a&&t.appendChild(document.createElement("br")),t.appendChild(document.createTextNode(r[a]));else o.nodeType===o.ELEMENT_NODE&&o.__wxElement&&"wx-text"===o.__wxElement.is&&t.appendChild(o.cloneNode(!0))}this.$.main.innerHTML="",this.$.main.appendChild(t)},userSelectChanged:function(e){e?(this.$.main.style.display="inline-block",this.$.main.style.willChange="transform",this.$.main.classList.add("__wa_selectable_region")):(this.$.main.style.display="inline",this.$.main.style.willChange="unset",this.$.main.classList.remove("__wa_selectable_region"))}},created:function(){this._observer=ftparser.Observer.create((function(){this._update()})),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0,properties:!0})},attached:function(){this._update(),this.selectable&&console.warn("For developer:[text] selectable is deprecated, use user-select instead")}}),{left:"left",center:"center",right:"right",start:"left",end:"right",inherit:"left",initial:"left",justify:"left","-webkit-center":"center","-webkit-right":"right","-webkit-left":"left"}),Ru={is:"wx-textarea",behaviors:["wx-base","wx-native","wx-data-component","wx-class-prefix","wx-size-normalizer","wx-keyboard-control"],template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-dev-textarea"},a:[{n:"role",v:"textbox"},{n:"aria-label",e:function(e,t,n){return e.ariaLabel+" "+(e.disabled?"已禁用":"")},l:null,b:[[null,"ariaLabel"],[null,"disabled"]]},{n:"aria-hidden",e:function(e,t,n){return e.ariaHidden},l:[null],b:[[null,"ariaHidden"]]}],c:[{t:1,n:"textarea",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"textarea",cl:{v:"compute"},a:[{n:"parse-text-content",v:""}],c:[]},{t:1,n:"p",id:"placeholder",cl:{e:function(e,t,n){return"textarea-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"p",id:"placeholderDark",cl:{e:function(e,t,n){return"textarea-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},properties:{value:{type:String,value:"",filter:"defaultValueChange",public:!0},maxlength:{type:Number,value:140,public:!0},placeholder:{type:String,value:"",public:!0,observer:"_placeholderChange"},disabled:{type:Boolean,value:!1,public:!0,observer:"_defaultPropChange"},hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"},focus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},autoFocus:{type:Boolean,value:!1,filter:"_focusChange",public:!0},disableDefaultPadding:{type:Boolean,value:!1,public:!0},placeholderStyle:{type:String,value:"",public:!0,filter:function(e){return wx.transformRpx(e,!0)},observer:function(){this._checkPlaceholderStyle(this.value)}},placeholderClass:{type:String,value:"textarea-placeholder",observer:"_placeholderClassChange",public:!0},autoHeight:{type:Boolean,value:!1,public:!0},cursorSpacing:{type:String,value:0,public:!0,filter:"normalizeSize"},fixed:{type:Boolean,value:!1,public:!0},cursor:{type:null,value:-1,public:!0,observer:"_cursorChange"},selectionStart:{type:null,value:-1,public:!0,observer:"_selectionStartChange"},selectionEnd:{type:null,value:-1,public:!0,observer:"_selectionEndChange"},showConfirmBar:{type:Boolean,value:!0,public:!0},adjustPosition:{type:Boolean,value:!0,public:!0},confirmType:{type:String,value:"return",public:!0,observer:"_confirmTypeChange"},confirmHold:{type:Boolean,value:!1,public:!0,observer:"_confirmHoldChange"},holdKeyboard:{type:Boolean,value:!1,public:!0},bindinput:{type:String,value:"",public:!0}},data:{_prefixedPlaceholderClass:""},listeners:{tap:"_inputFocusWrap"},created:function(){},attached:function(){T&&this.$.textarea.classList.add("isIOS"),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this,t=this;this._valueQueue=[],this._inputIndex=-1,this._inputId=+(String(v()()).slice(-5)+""+this._id),this._scale=750/window.innerWidth,this._placeholderClassChange(this.placeholderClass),this._checkPlaceholderStyle(this.value),this._attached=!0,this.checkRows(this.value||this.placeholder),this._pageReRenderCallback=this.pageReRenderCallback.bind(this),this.value&&(this._value=this.value),document.addEventListener("pageReRender",this._pageReRenderCallback),this._routeDoneId=ftparser.addListenerToElement(document,"routeDone",this.checkAutoFocus.bind(this)),this._onkeyboardheightchangeId=ftparser.addListenerToElement(document,"onkeyboardheightchange",this.onkeyboardheightchange.bind(this)),this.__onKeyboardCompleteId=ftparser.addListenerToElement(document,"onKeyboardComplete",this.onKeyboardComplete.bind(this)),this._setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",this.setKeyboardValue.bind(this)),this._onTextareaLineChangeId=ftparser.addListenerToElement(document,"onTextareaLineChange",this.onTextareaLineChange.bind(this)),this._onKeyboardConfirmId=ftparser.addListenerToElement(document,"onKeyboardConfirm",this.onKeyboardConfirm.bind(this)),this._onKeyboardShowId=ftparser.addListenerToElement(document,"onKeyboardShow",this.onKeyboardShow.bind(this)),new ResizeObserver((function(t,n){e._updateTextarea(),e.checkLineHeight()})).observe(this.$.textarea),this._observer=new MutationObserver((function(e,n){clearTimeout(t._mutationTimeout),t._mutationTimeout=setTimeout((function(){t._updateTextarea()}))})),this._observer.observe(document.querySelector("body"),{attributes:!0,childList:!0,subtree:!0})},_detachedCb:function(){this._attached=!1,this._observer&&this._observer.disconnect(),document.removeEventListener("pageReRender",this._pageReRenderCallback),ftparser.removeListenerFromElement(document,"routeDone",this._routeDoneId),ftparser.removeListenerFromElement(document,"onKeyboardComplete",this._onKeyboardCompleteId),ftparser.removeListenerFromElement(document,"onkeyboardheightchange",this._onkeyboardheightchangeId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.setKeyboardValueId),ftparser.removeListenerFromElement(document,"onKeyboardConfirm",this._onKeyboardConfirmId),ftparser.removeListenerFromElement(document,"onTextareaLineChange",this._onTextareaLineChangeId),this._keyboardShow&&wd.hideKeyboard({inputId:this._inputId})},_inputFocusWrap:function(){this._inputFocus(-1,-1,-1)},resetFormData:function(){this._keyboardShow&&(this.__formResetCallback=!0,wx.hideKeyboard({force:!0})),this.value="","number"==typeof this._groupID&&(this._groupID=null)},getFormData:function(e){this._keyboardShow?this.__formCallback=e:"function"==typeof e&&e(this.value)},_focusChange:function(e){var t=v()(),n=this.focus===e&&t-200>=this._lastFocusChangeTime;return(this.focus!==e||n)&&(this._lastFocusChangeTime=t,this._couldFocus(e)),e},checkAutoFocus:function(){(this.__autoFocused||window.__onAppRouteDone)&&(this.__autoFocused=!0,this._couldFocus(this.autoFocus||this.focus))},_couldFocus:function(e){var t=this,n=this,i=wd.getPlatform();if(!this._keyboardShow&&e)window._addActiveInputQueue&&window._addActiveInputQueue(n);else if(this._keyboardShow&&!e){if("ios"===i){var o=v()()-this._keyboardShowTimeStamp,r=Math.max(200-o,0);if(r>0)return void setTimeout((function(){wx.hideKeyboard({inputId:n._inputId})}),r)}window.requestAnimationFrame((function(){wx.hideKeyboard({inputId:t._inputId})}))}},_inputFocus:function(e,t,n){var i=this;document.activeElement.blur(),this.disabled||setTimeout((function(){i.__inputFocus(e,t,n)}),"android"===wd.getPlatform()?100:10)},__inputFocus:function(e,t,n){this._showNativeTextarea(e,t,n)},pageReRenderCallback:function(){this.checkAutoFocus(),this._updateTextarea(),this.checkLineHeight()},_updateTextarea:function(){if(this._keyboardShow){var e=this.getCurrentTextareaArgs(),t=this._diff(this.inputArgs,e);t&&(this.inputArgs=e,t.inputId=this._inputId,FinChatJSBridge.invoke("textarea_updateInput",t,(function(e){})))}},onTextareaLineChange:function(e){if(e.detail.inputId===this._inputId){var t=e.detail;this.lastRows!==t.lineCount&&(this.lastRows=t.lineCount,this.autoHeight&&(this.$$.style.height=t.height+"px",this.getComputedStyle()),this.triggerEvent("linechange",{height:t.height,heightRpx:t.heightRpx,lineCount:t.lineCount,lineHeight:t.lineHeight}))}},_showNativeTextarea:function(e,t,n){var i=this;if(this._attached&&!this._keyboardShow)if(this._keyboardLock)setTimeout((function(){i._keyboardLock=!1}),1e3);else{var o=this;if(this.inputArgs=this.getCurrentTextareaArgs(),!(this.hidden||this.disabled||this.inputArgs.style&&this.inputArgs.style.width<=0&&this.inputArgs.style.height<=0)){this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=e,this.inputArgs.selectionStart=this._convertToNumber(t),this.inputArgs.selectionEnd=this._convertToNumber(n),this.inputArgs.inputId=this._inputId,this.inputArgs.focus=!0;var r=this.value,a=this.placeholder;FinChatJSBridge.invoke("textarea_showKeyboard",this.inputArgs,(function(e){try{o._inputId=Number(e.inputId),o._keyboardShow=!0,o._keyboardShowTimeStamp=v()(),o.$.textarea.style.opacity=0,r!==o.value&&FinChatJSBridge.invoke("textarea_updateInput",{value:o.value||"",inputId:o._inputId},(function(e){})),a!==o.placeholder&&FinChatJSBridge.invoke("textarea_updateInput",{placeholder:o.placeholder||"",inputId:o._inputId},(function(e){})),o.findKeyboardAccessory()}catch(e){console.log("error",e)}}))}}},onkeyboardheightchange:function(e){e.detail.inputId===this._inputId&&this.triggerEvent("keyboardheightchange",{height:e.detail.height,duration:e.detail.duration})},setKeyboardValue:function(e){var t=e.detail,n=t.inputId,i=t.value,o=t.cursor;if(this._keyboardShow&&n===this._inputId){if(this._value=i,this._checkPlaceholderStyle(i),Ai)return void(i&&this._valueQueue.push(i));var r=this.__modelValueName&&this.__modelValueName.value,a={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};this._cursor=o,this.bindinput||r?FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:r},data:{type:"input",timeStamp:v()(),detail:{value:this._value,cursor:this._cursor,keyCode:e.detail.keyCode},target:a,currentTarget:a,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),inputId:this._inputId,updateEventName:this._insertNativeFail?"textarea_updateInput":"updateNativeTextArea"}}):this.triggerEvent("input",{value:this._value,cursor:this._cursor,keyCode:e.detail.keyCode})}},onKeyboardShow:function(e){e.detail.inputId===this._inputId&&(this._keyboardShow||(this._firstKeyboardShowTime=v()()),this._keyboardShow=!0,(T||k&&Ii().textarea)&&this._updateTextarea(),this.triggerEvent("focus",{value:this.value,height:e.detail.height}))},onKeyboardComplete:function(e){var t=this;e.detail.inputId===this._inputId&&this._keyboardShow&&(this._value=null!==this._forceValue&&void 0!==this._forceValue?this._forceValue:e.detail.value,this._formResetCallback&&(this.value="",this._formResetCallback=void 0),"function"==typeof this._formCallback&&(this._formCallback(this._value),this._formCallback=void 0),this._keyboardLock=!0,setTimeout((function(){t._keyboardLock=!1}),"android"===wd.getPlatform()?1e3:100),this.triggerEvent("change",{value:this._value}),this.triggerEvent("blur",{value:this._value,cursor:e.detail.cursor}),this._resetInputState(),this._cursor=this.inputArgs.cursor=e.detail.cursor)},onKeyboardConfirm:function(e){this._keyboardShow&&e.detail.inputId===this._inputId&&(this._value=e.detail.value,this.triggerEvent("confirm",{value:this._value}))},_resetInputState:function(){this._keyboardShow=!1,this._valueQueue=[],this._inputIndex=-1,this.value=this._value||"",Ii().textarea||this.checkRows(this.value||this.placeholder),this.$.textarea.style.opacity=1,this._checkPlaceholderStyle(this.value)},checkRows:function(e){e||(e=this.placeholder);var t=this.getCurrentRows(e);if(this.lastRows!==t.lineCount){if(this.lastRows=t.lineCount,this.autoHeight){var n=t.height<t.lineHeight?t.lineHeight:Math.max(t.height,t.lineHeight*t.lineCount);this.$$.style.height=n+"px",this.getComputedStyle()}this.triggerEvent("linechange",t)}},getCurrentRows:function(e){var t=window.getComputedStyle(this.$.textarea),n=1.2*(Dt()(t.fontSize)||16),i=19.2,o=wd.getPlatform();n+="android"===o?2:1,i+="android"===o?2:1,e&&(i=0),this.$.textarea.innerText=e||" ",this.$.textarea.appendChild(document.createElement("br"));var r=this.$.textarea.getBoundingClientRect().height;return{height:Math.max(this.$.textarea.scrollHeight,Math.round(n),r,i),heightRpx:this._scale*this.$.textarea.scrollHeight,lineHeight:n,lineCount:Math.ceil(this.$.textarea.scrollHeight/n)}},_placeholderChange:function(){this.maxlength>0&&(this.placeholder=this.placeholder.slice(0,this.maxlength)),this.$.textarea.innerText=this.placeholder},defaultValueChange:function(e){var t=this;if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId&&this._keyboardShow)if(Ai)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("textarea_updateInput",{value:e||"",inputId:this._inputId},(function(){t._forceValue=null,t._keyboardShow||(t._value=e,t._resetInputState())}))):this._valueQueue=this._valueQueue.slice(this._inputIndex-1);else{var n=this.getCurrentTextareaArgs(),i=this._diff(this.inputArgs,n);i&&(this.inputArgs=n,i.value=this._value||this.value,i.inputId=this._inputId,FinChatJSBridge.invoke("textarea_updateInput",i,(function(e){})))}return this._value=e,this._checkPlaceholderStyle(e),this._attached&&this.checkRows(e),e},hiddenChanged:function(e){e&&this._keyboardShow&&wx.hideKeyboard({inputId:this._inputId}),this.$$.style.display=e?"none":"",this._inputId&&FinChatJSBridge.invoke("updateNativeTextArea",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))},checkLineHeight:function(){var e=this;window.requestAnimationFrame((function(){var t=window.getComputedStyle(e.$$),n=0!==t.width&&0!==t.height&&0!==t.opacity&&"none"!==t.display&&"hidden"!==t.visibility;if(null!==e.$$.offsetParent&&n){var i=e.$$.getBoundingClientRect(),o=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));e.$.textarea.style.width=i.width-o[0]-o[1]+"px",e._lastWidth=i.width-o[0]-o[1]}}))},_checkPlaceholderStyle:function(e){var t=this.$.textarea,n=this._placeholderClass||[],i=0;if(e){if(t.classList.remove("textarea-placeholder"),t.classList.remove("textarea-placeholder-dark"),n.length>0)for(;i<n.length;i++)t.classList.contains(n[i])&&t.classList.remove(n[i]);t.setAttribute("style",""),this.checkLineHeight()}else{if(t.setAttribute("class",""),t.classList.add("dark"===__wxConfig.theme?"textarea-placeholder-dark":"textarea-placeholder"),n.length>0)for(;i<n.length;i++)t.classList.add(n[i]);if(t.classList.add("compute"),t.style.fontSize="",t.style.letterSpacing="",t.style.top="",t.style.left="",this.placeholderStyle){var o=this.getPlaceholderStyle(__wxConfig.theme||"light",!0);t.style.fontSize="".concat(o.fontSize,"px"),t.style.fontWeight=o.fontWeight,t.style.color=o.color,this.checkLineHeight()}}(this._keyboardShow||void 0!==this._insertNativeFail&&!this._insertNativeFail)&&(this.$.textarea.style.opacity=0)},_placeholderClassChange:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/\s+/);this._placeholderClass=this.convertClassListWithPrefix(e),this.setData({_prefixedPlaceholderClass:this._placeholderClass.join(" ")}),this._attached&&this._checkPlaceholderStyle(this.value)},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),r=Dt()(t.fontWeight);isNaN(r)?r=t.fontWeight:r<500?r="normal":r>=500&&(r="bold");var a=t.textAlign,s=t.backgroundColor?t.backgroundColor:"rgba(0, 0, 0, 0)",c=(t.maxHeight||"").replace("px","");return c=isNaN(c)?void 0:_()(c,10),this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0],scrollX:window.scrollX,scrollY:window.scrollY,offsetLeft:n.left+i[0]+window.scrollX,offsetTop:n.top+o[0]+window.scrollY,fontFamily:t.fontFamily,fontSize:this._inputFontSize,fontWeight:r,color:Y(t.color),maxHeight:c,backgroundColor:Y(s),keyboardAccessory:this.computKeyboardAccessoryHeight(),marginBottom:this.cursorSpacing||Dt()(t.marginBottom)||0,textAlign:Lu[a]||"left",borderTopLeftRadius:Dt()(t.borderTopLeftRadius.replace("px",""))||0,borderTopRightRadius:Dt()(t.borderTopRightRadius.replace("px",""))||0,borderBottomLeftRadius:Dt()(t.borderBottomLeftRadius.replace("px",""))||0,borderBottomRightRadius:Dt()(t.borderBottomRightRadius.replace("px",""))||0}},_getPlaceholderStyle:function(e){return e+";display:none;"},getPlaceholderStyle:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?this.$.placeholderDark:this.$.placeholder,n=window.getComputedStyle(t),i=Dt()(n.fontWeight);return i=isNaN(i)?n.fontWeight:i<500?"normal":"bold",{fontSize:Dt()(n.fontSize)||16,fontWeight:i,color:e?n.color:Y(n.color)}},formateEventTarget:function(){var e=this.__modelValueName&&this.__modelValueName.value,t={bindinput:this.bindinput,bindkeyboardheightchange:this.bindkeyboardheightchange,target:{id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft},setKeyboardValue:!0,securityType:"textarea",modelValueName:e};return t.currentTarget=t.target,t.nodeId=this.getNodeId(),this.bindinput||e||this.bindkeyboardheightchange?ce()(t):""},getCurrentTextareaArgs:function(){return{inputId:this._inputId,cursor:this.cursor,selectionStart:this._convertToNumber(this.selectionStart),selectionEnd:this._convertToNumber(this.selectionEnd),style:this.getComputedStyle(),placeholderStyle:this.getPlaceholderStyle("light"),placeholderStyleDark:this.getPlaceholderStyle(void 0!==__wxConfig.theme?"dark":"light"),maxLength:this.maxlength,placeholder:this.placeholder,disabled:this.disabled,hidden:this.hidden,autoHeight:this.autoHeight,holdKeyboard:this.holdKeyboard,showConfirmBar:!this.disabled&&this.showConfirmBar,data:this.formateEventTarget(),fixed:this.fixed&&!this._insert2WebLayer,adjustPosition:this.adjustPosition,disableDefaultPadding:this.disableDefaultPadding,confirmType:this.confirmType,confirmHold:this.confirmHold}},_convertToNumber:function(e){var t=Dt()(e);return isNaN(t)?-1:t},_diff:function(e,t){for(var n={},i=!1,o=0,r=E()(t);o<r.length;o++){var a=r[o];"[object Object]"===Object.prototype.toString.call(t[a])?ce()(t[a])!==ce()(e[a])&&(n[a]=t[a],i=!0):e[a]!==t[a]&&(n[a]=t[a],i=!0)}return i?n:void 0},_confirmTypeChange:function(e){/^(return|send|search|next|go|done)$/.test(e)&&this._updateTextarea()},_confirmHoldChange:function(e){this._updateTextarea()},_cursorChange:function(e){this._cursor=e},_defaultPropChange:function(){},_selectionStartChange:function(){},_selectionEndChange:function(){}}};function Mu(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}var Bu=Ru.methods,$u={_attachedCb:function(){var e=this,t=this._cid=this._nativeId;this.$.wrapped.setAttribute("cid",t),this.$.wrapped.classList.add("tongceng_fcid_".concat(t)),this.$.wrapped.classList.add("wx-dev-textarea"),this.$.textarea.style.opacity=0,this.$.placeholder.style.opacity=0,this._insertNativeFail=!1,Bu._attachedCb.call(this),Ii().textarea?(this.retry=0,Kn((function(){e.insertNativeTextArea()}))):(this._insertNativeFail=!0,this._restoreBaseTextarea())},_detachedCb:function(){Bu._detachedCb.call(this),Ii().input&&(this.removeNativeTextArea(),this._insertTimer&&clearTimeout(this._insertTimer))},_defaultPropChange:function(){this._insertNativeFail||this._updateTextarea()},addCb:function(e){this._cbs=this._cbs||[],this._cbs.push(e)},hiddenChanged:function(e){if(e&&this._keyboardShow&&wx.hideKeyboard({inputId:this._inputId}),this.$$.style.display=e?"none":"",this._inputId){if(Ii().textarea&&k&&!e){var t=this.getCurrentTextareaInfo(),n=document.getElementsByTagName("x-textarea")[0];n&&n.setAttribute("data",ce()(t))}FinChatJSBridge.invoke("updateNativeTextArea",{cid:this._cid,inputId:this._inputId,hide:e},(function(){}))}},onTextareaLineChange:function(e){var t=this;if(this._insertNativeFail)Bu.onTextareaLineChange.call(this,e);else if(this._insertFinish){if(e.detail.inputId===this._inputId){var n=e.detail;this.lastRows!==n.lineCount&&(this.lastRows=n.lineCount,this.autoHeight&&(this.$$.style.height=n.height+"px",this.getComputedStyle()),this._updateTextarea(),this.triggerEvent("linechange",{height:n.height,heightRpx:n.heightRpx,lineCount:n.lineCount,lineHeight:n.lineHeight}))}}else this.addCb((function(){t.onTextareaLineChange(e)}))},getCurrentTextareaInfo:function(){return this.inputArgs=this.getCurrentTextareaArgs(),this.inputArgs.defaultValue=this.value,this.inputArgs.cursor=this.cursor,this.inputArgs.focus=this.autoFocus||this.focus,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mu(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Mu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({cid:this._cid,inputId:this._inputId},this.inputArgs)},insertNativeTextArea:function(){var e=this,t=this.getCurrentTextareaInfo(),n=function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[]),e.findKeyboardAccessory()};if(k&&Ii().textarea){var i=document.createElement("x-textarea");return this.$.inner.style.display="none",this.$.textareaTag.style.display="none",this.$.textarea.style.display="none",this.$.wrapped.append(i),i.setAttribute("data",ce()(t)),i.getBoundingClientRect(),void(Ti?(FinChatJSBridge.on("onTongcengWidgetReady_"+this._inputId,(function(){n()})),FinChatJSBridge.on("onTongcengWidgetDestroy_"+this._inputId,(function(){e._insertFinish=!1}))):setTimeout((function(){n()})))}FinChatJSBridge.invoke("insertNativeTextArea",t,(function(t){-1===t.errMsg.indexOf(":ok")?e.retry<10?(e._insertTimer=setTimeout((function(){e.insertNativeTextArea()}),20*e.retry),e.retry++):(e._insertNativeFail=!0,e._restoreBaseTextarea(),Kn((function(){e._insertFinish=!0,e._cbs&&(e._cbs.forEach((function(e){return e()})),e._cbs=[])}))):n()}))},_restoreBaseTextarea:function(){var e=this._cid;this.$.wrapped.removeAttribute("cid"),this.$.wrapped.classList.remove("tongceng_fcid_".concat(e)),this.$.wrapped.removeChild(this.$.inner),this.$.textarea.style.opacity=1,this._placeholderClassChange(this.placeholderClass),this._couldFocus(this.focus||this.autoFocus),Kn((function(){window._flushActiveInputQueue()}))},removeNativeTextArea:function(){var e=this;FinChatJSBridge.invoke("removeNativeTextArea",{cid:this._cid,inputId:this._inputId},(function(){e._cid=null}))},_updateTextarea:function(){var e=this;if(this._insertNativeFail)Bu._updateTextarea.call(this);else if(this._insertFinish){if(this._attached&&this._inputId&&this.inputArgs){var t=this.getCurrentTextareaArgs(),n=this._diff(this.inputArgs,t);n&&(this.inputArgs=t,n.cid=this._cid,n.inputId=this._inputId,n.disabled=this.disabled,this._value||(n.placeholder=this.placeholder),FinChatJSBridge.invoke("updateNativeTextArea",n,(function(e){})))}}else this.addCb((function(){e._updateTextarea()}))},checkLineHeight:function(){this._insertNativeFail&&Bu.checkLineHeight.call(this)},_showNativeTextarea:function(e,t,n){this._insertNativeFail&&Bu._showNativeTextarea.call(this,e,t,n)},defaultValueChange:function(e,t){var n=this;if(this._insertNativeFail)return Bu.defaultValueChange.call(this,e);if(this._insertFinish){if(this.maxlength>0&&(e=e.slice(0,this.maxlength)),this._inputId)if(Ai)this._inputIndex=this._valueQueue.indexOf(e),-1===this._inputIndex?(this._valueQueue=[],this._inputIndex=-1,this._forceValue=e,FinChatJSBridge.invoke("updateNativeTextArea",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold,disabled:this.disabled},(function(){n._forceValue=null}))):this._valueQueue=this._valueQueue.slice(this._inputIndex-1);else{var i=this._value;e!==i&&(this._forceValue=e,FinChatJSBridge.invoke("updateNativeTextArea",{value:e||"",cid:this._cid,inputId:this._inputId,confirmHold:this.confirmHold,disabled:this.disabled},(function(){n._forceValue=null,n._keyboardShow||(n._value=e,n._resetInputState())})))}return this._checkPlaceholderStyle(e),this._value=e,e}this.addCb((function(){n.defaultValueChange(e)}))},_focusChange:function(e){if(!this._insertNativeFail)return e&&this.$.textarea.scrollIntoView(!1),(e&&!this._keyboardShow||!e&&this._keyboardShow)&&this._inputId&&FinChatJSBridge.invoke("updateNativeTextArea",{cid:this._cid,inputId:this._inputId,focus:e},(function(){})),e;Bu._focusChange.call(this,e)}},Fu=Ke()({},Ru,{template:function(e,t,n){return[{t:1,n:"div",id:"wrapped",st:{v:"width:100%;height:100%;"},a:[{n:"role",v:"textbox"},{n:"aria-label",e:function(e,t,n){return e.ariaLabel+" "+(e.disabled?"已禁用":"")},l:null,b:[[null,"ariaLabel"],[null,"disabled"]]},{n:"aria-hidden",e:function(e,t,n){return e.ariaHidden},l:[null],b:[[null,"ariaHidden"]]}],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width:101%;height:101%;"},a:[],c:[]},{t:1,n:"textarea",id:"textareaTag",st:{v:"visibility:hidden"},a:[{n:"disabled",v:""}],c:[]},{t:1,n:"div",id:"textarea",a:[{n:"parse-text-content",v:""}],c:[]},{t:1,n:"p",id:"placeholder",cl:{e:function(e,t,n){return"textarea-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]},{t:1,n:"p",id:"placeholderDark",cl:{e:function(e,t,n){return"textarea-placeholder-dark "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},methods:Ke()({},Bu,$u)});function Du(e){return e=Number(e),isNaN(e)?-1:e}var ju,Vu={is:"wx-textarea",behaviors:["wx-base","wx-class-prefix","wx-data-component"],template:function(e,t,n){return[{t:1,n:"div",id:"wrapped",cl:{v:"wx-dev-textarea"},a:[],c:[{t:1,n:"div",id:"placeholder",a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e.placeholder},b:[[null,"placeholder"]],t:3}]},{t:1,n:"textarea",id:"textarea",a:[{n:"data-input",o:"$",e:function(e,t,n){return e._inputId},l:[null],b:[[null,"_inputId"]]},{n:"maxlength",o:"$",e:function(e,i,o){return t(o,n,"_getMaxlength",[e.maxlength])},l:null,b:[[null,"_getMaxlength"],[null,"maxlength"]]}],c:[]},{t:1,n:"div",id:"compute",cl:{v:"compute"},st:{v:"opacity: 0;"},a:[],c:[]},{t:1,n:"div",id:"stylecompute",cl:{e:function(e,t,n){return"textarea-placeholder "+e._prefixedPlaceholderClass},b:[[null,"_prefixedPlaceholderClass"]]},st:{e:function(e,i,o){return t(o,n,"_getPlaceholderStyle",[e.placeholderStyle])},b:[[null,"_getPlaceholderStyle"],[null,"placeholderStyle"]]},a:[],c:[]}]}]},properties:{value:{type:String,value:"",public:!0,filter:"defaultValueChange"},maxlength:{type:Number,value:140,public:!0,observer:"maxlengthChanged"},placeholder:{type:String,value:"",public:!0},hidden:{type:Boolean,value:!1,public:!0},disabled:{type:Boolean,value:!1,public:!0},focus:{type:Number,value:0,public:!0,filter:"focusChanged"},autoFocus:{type:Boolean,value:!1,public:!0},placeholderClass:{type:String,value:"textarea-placeholder",observer:"_placeholderClassChange",public:!0},placeholderStyle:{type:String,value:"",filter:function(e){return wx.transformRpx(e,!0)},observer:"_getComputePlaceholderStyle",public:!0},autoHeight:{type:Boolean,value:!1,public:!0,observer:"autoHeightChanged"},cursor:{type:null,value:-1,public:!0},selectionStart:{type:null,value:-1,public:!0},selectionEnd:{type:null,value:-1,public:!0},confirmType:{type:String,value:"return",public:!0},confirmHold:{type:Boolean,value:!1,public:!0},adjustKeyboardTo:{type:String,value:"cursor",public:!0}},data:{_prefixedPlaceholderClass:""},listeners:{tap:function(){},"textarea.input":"onTextAreaInput","textarea.focus":"onTextAreaFocus","textarea.blur":"onTextAreaBlur"},created:function(){this.bindMethod(["input"])},attached:function(){var e=this;this._inputId=v()(),this._attached=!0,this._placeholderClassChange(this.placeholderClass),this.__scale=750/window.innerWidth,this.getComputedStyle(),this.checkRows(this.value||this.placeholder),this.__updateTextArea=this.updateTextArea.bind(this),document.addEventListener("pageReRender",this.__updateTextArea),this.__routeDoneId=ftparser.addListenerToElement(document,"routeDone",(function(){e.checkAutoFocus()})),this.__setKeyboardValueId=ftparser.addListenerToElement(document,"setKeyboardValue",(function(t){if(e._keyboardShow){var n=t.detail.value,i=t.detail.cursor;void 0!==n&&(e.value=n),void 0!==i&&-1!==i&&(e.$.textarea.setSelectionRange(i,i),e.cursor=i)}})),this.checkPlaceholderStyle(this.value),this.__inputCompositionstart=this._inputCompositionstart.bind(this),this.__inputCompositionend=this._inputCompositionend.bind(this),this.$.textarea.addEventListener("compositionstart",this.__inputCompositionstart),this.$.textarea.addEventListener("compositionend",this.__inputCompositionend)},detached:function(){document.removeEventListener("pageReRender",this.__updateTextArea),ftparser.removeListenerFromElement(document,"routeDone",this.__routeDoneId),ftparser.removeListenerFromElement(document,"setKeyboardValue",this.__setKeyboardValueId),this.$.textarea.removeEventListener("compositionstart",this.__inputCompositionstart),this.$.textarea.removeEventListener("compositionend",this.__inputCompositionend)},methods:{resetFormData:function(){this.$.textarea.value="",this.value=""},getFormData:function(e){var t=this;this.value=this.$.textarea.value,setTimeout((function(){"function"==typeof e&&e(t.value)}),0)},couldFocus:function(e){var t=this;this._attached&&(!this._keyboardShow&&e?this.disabled||window.requestAnimationFrame((function(){t.selectionStart=Du(t.selectionStart),t.selectionEnd=Du(t.selectionEnd),t.cursor=Du(t.cursor),t.$.textarea.focus({preventScroll:!0}),-1!==t.selectionStart?t.$.textarea.setSelectionRange(t.selectionStart,t.selectionEnd):(t.$.textarea.setSelectionRange(t.cursor,t.cursor),t.selectionStart=-1,t.selectionEnd=-1,t.cursor=-1)})):this._keyboardShow&&!e&&this.$.textarea.blur())},focusChanged:function(e){return this.couldFocus(Boolean(e)),e},checkAutoFocus:function(){this.__autoFocused||(this.__autoFocused=!0,this.couldFocus(this.autoFocus||this.focus))},_inputCompositionstart:function(){this.inputIgnore=!0},_inputCompositionend:function(e){this.inputIgnore=!1,this.onTextAreaInput(e)},getHexColor:function(e){try{var t,n,i=function(){if(e.indexOf("#")>=0)return{v:e};t=e.match(/\d+/g);var i=[];return t.forEach((function(e,t){if(t<3){var n=_()(e);n=n>9?n.toString(16):"0"+n,i.push(n)}})),t.length>3&&(0===(n=Dt()(t.slice(3).join(".")))?i.push("00"):n>=1?i.push("ff"):(n=(n=_()(255*n))>9?n.toString(16):"0"+n,i.push(n))),{v:"#"+i.join("")}}();if("object"===Ce()(i))return i.v}catch(e){return""}},getComputedStyle:function(){var e=window.getComputedStyle(this.$$),t=this.$$.getBoundingClientRect(),n=["Left","Right"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])})),i=["Top","Bottom"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])})),o=this.$.textarea,r=19.2;this.value&&(r=0),o.style.width=t.width-n[0]-n[1]+"px",o.style.height=t.height-i[0]-i[1]+"px",o.style.fontWeight=e.fontWeight,o.style.fontSize=e.fontSize||"16px",o.style.color=e.color,o.style.lineHeight=Math.max(1.2*Dt()(e.fontSize),r)+"px",o.style.textAlign=e.textAlign,this.$.compute.style.fontSize=e.fontSize||"16px",this.$.compute.style.width=o.style.width,this.$.placeholder.style.width=o.style.width,this.$.placeholder.style.height=o.style.height,this._styleMaxHeight=Dt()(e.maxHeight.replace("px")),this.autoHeight&&this._lineHeight&&this._lineHeight>this._styleMaxHeight&&(this.$$.style.maxHeight=this._lineHeight+"px"),this.disabled?o.setAttribute("disabled",!0):o.removeAttribute("disabled")},getCurrentRows:function(e,t){var n=e.lastIndexOf("\n")===e.length-1;this.$.compute.innerText=(n?e+"a":e)||"a";var i=window.getComputedStyle(this.$.compute),o=1.2*(Dt()(i.fontSize)||16);t({height:Math.max(this.$.compute.scrollHeight,o),heightRpx:this.__scale*this.$.compute.scrollHeight,lineHeight:o,lineCount:Math.floor(this.$.compute.scrollHeight/o)})},onTextAreaInput:function(e){this.value=e.target.value;var t=this.__modelValueName&&this.__modelValueName.value;if(!this.inputIgnore&&(this.bindinput||t)){var n={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",{eventName:this.bindinput,data:{ext:{setKeyboardValue:!0,modelValueName:t},data:{type:"input",timestamp:v()(),detail:{value:e.target.value,cursor:this.$.textarea.selectionEnd},target:n,currentTarget:n,touches:[]},eventName:this.bindinput,nodeId:this.getNodeId(),isIDE:!0}})}return!1},onTextAreaFocus:function(){this._keyboardShow=!0,this.triggerEvent("focus",{value:this.value,height:0})},onTextAreaBlur:function(){this._keyboardShow=!1,this.triggerEvent("blur",{value:this.value,cursor:this.$.textarea.selectionEnd})},updateTextArea:function(){this.checkAutoFocus(),this.getComputedStyle(),this.autoHeightChanged(this.autoHeight)},hiddenChanged:function(e){this.$$.style.opacity=e?0:1},_getPlaceholderStyle:function(e){return e+";opacity:0;"},_getComputePlaceholderStyle:function(){var e=this.$.stylecompute,t=window.getComputedStyle(e),n=_()(t.fontWeight,10);isNaN(n)?n=t.fontWeight:n<500?n="normal":n>=500&&(n="bold"),this.placeholderStyle&&this.placeholderStyle.split(";");var i=this.$.placeholder;i.style.position="absolute",i.style.fontSize="".concat(Dt()(t.fontSize)||16,"px"),i.style.fontWeight=n,i.style.color=this.getHexColor(t.color)},_placeholderClassChange:function(e){var t=e.split(/\s+/),n=this.convertClassListWithPrefix(t);this.setData({_prefixedPlaceholderClass:n.join(" ")}),this._getComputePlaceholderStyle()},defaultValueChange:function(e){return this.maxlength>0&&e.length>this.maxlength&&(e=e.slice(0,this.maxlength)),this.checkPlaceholderStyle(e),this.$.textarea.value=e,this._attached&&this.checkRows(e),e},autoHeightChanged:function(e){var t=this;e&&this.getCurrentRows(this.value,(function(e){var n=e.height<e.lineHeight?e.lineHeight:e.height;t.$$.style.height=n+"px",t.getComputedStyle()}))},checkRows:function(e){var t=this;this.getCurrentRows(e,(function(e){if(t.lastRows!==e.lineCount){if(t.lastRows=e.lineCount,t.autoHeight){var n=e.height<e.lineHeight?e.lineHeight:e.height;t._lineHeight=n/(e.lineCount||1),t.$$.style.height=n+"px",t.getComputedStyle()}t.triggerEvent("linechange",e)}}))},checkPlaceholderStyle:function(e){e?this.$.placeholder.style.opacity=0:(this._getComputePlaceholderStyle(),this.$.placeholder.style.opacity=1)},_getMaxlength:function(e){return e<=0?-1:e},maxlengthChanged:function(e){e>0&&this.value.length>e&&(this.value=this.value.slice(0,e))}}};ju=O?Vu:Ii().textarea||k?Fu:Ru,window.ftparser.registerElement(ju);var qu=n(52),Hu=n.n(qu);function Uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Wu,zu=function(e,t){if(A()(e))return e;if(Hu()(Object(e)))return function(e,t){var n,i=[],o=function(e,t){var n=void 0!==ai.a&&e[ci.a]||e["@@iterator"];if(!n){if(A()(e)||(n=function(e,t){if(e){if("string"==typeof e)return Uu(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?Tn()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(i.push(r),t&&i.length===t)break}}catch(e){o.e(e)}finally{o.f()}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Gu={is:"wx-video",behaviors:["wx-base","wx-player"],template:function(e,t,n){return[{t:1,n:"div",cl:{v:"wx-video-container"},a:[],c:[{t:1,n:"video",id:"player",st:{v:"display: none;"},a:[{n:"webkit-playsinline",v:""},{n:"playsinline",v:""}],c:[]},{t:1,n:"div",id:"videoplaymask",cl:{v:"wx-video-playmask"},a:[],c:[{t:1,n:"div",id:"bigplaybtn",cl:{v:"wx-video-bigplay"},a:[],c:[]},{t:1,n:"div",cl:{v:"wx-video-currenttime"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._duration},b:[[null,"_duration"]],t:3}]}]},{t:1,n:"div",id:"default",cl:{e:function(e,t,n){return"wx-video-bar "+e._barType},b:[[null,"_barType"]]},st:{v:"display: none;"},a:[],c:[{t:1,n:"div",id:"controls",cl:{v:"wx-video-controls"},a:[],c:[{t:1,n:"div",id:"button",cl:{e:function(e,t,n){return"wx-video-button "+e._buttonType},b:[[null,"_buttonType"]]},a:[],c:[]},{t:1,n:"div",id:"curtime",cl:{v:"wx-video-time"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._currentTime},b:[[null,"_currentTime"]],t:3}]},{t:1,n:"div",id:"progress",cl:{v:"wx-video-progress"},a:[],c:[{t:1,n:"div",id:"ball",cl:{v:"wx-video-ball"},st:{e:function(e,t,n){return"left: "+e._progressLeft+"px;"},b:[[null,"_progressLeft"]]},a:[],c:[{t:1,n:"div",cl:{v:"wx-video-inner"},a:[],c:[]}]},{t:1,n:"div",cl:{v:"wx-video-inner"},st:{e:function(e,t,n){return"width: "+e._progressLength+"px;"},b:[[null,"_progressLength"]]},a:[],c:[]}]},{t:1,n:"div",id:"durtime",cl:{v:"wx-video-time"},a:[{n:"parse-text-content",v:""}],c:[{c:"",e:function(e,t,n){return e._duration},b:[[null,"_duration"]],t:3}]},{t:1,n:"div",id:"danmuBtn",cl:{e:function(e,t,n){return"wx-video-danmu-btn "+e._danmuStatus},b:[[null,"_danmuStatus"]]},a:[],c:[{c:"弹幕",t:3}]},{t:1,n:"div",id:"fullscreen",cl:{v:"wx-video-fullscreen"},a:[],c:[]},{t:1,n:"div",id:"muted",cl:{v:"wx-video-mute-on"},a:[],c:[]}]}]},{t:1,n:"div",id:"danmu",cl:{v:"wx-video-danmu"},st:{v:"z-index: -9999;pointer-events:none;"},a:[],c:[]}]},{t:1,n:"div",id:"fakebutton",a:[],c:[]}]},options:{renderingMode:"full"},listeners:{"ball.touchstart":"onBallTouchStart"},properties:{hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"},autoplay:{type:Boolean,value:!1,public:!0},loop:{type:Boolean,value:!1,public:!0},poster:{type:String,value:"",public:!0,observer:"posterChanged"},danmuBtn:{type:Boolean,value:!1,public:!0,observer:"danmuBtnChanged"},enableDanmu:{type:Boolean,value:!1,observer:"enableDanmuChanged",public:!0},enableFullScreen:{type:Boolean,value:!1,public:!0},controls:{type:Boolean,value:!0,public:!0,observer:"controlsChanged"},initialTime:{type:Number,value:0,public:!0,observer:"initialTimeChanged"},showProgress:{type:Boolean,value:!0,public:!0,observer:"showProgressChanged"},showFullscreenBtn:{type:Boolean,value:!0,public:!0,observer:"showFullscreenBtnChanged"},showPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showPlayBtnChanged"},showMuteBtn:{type:Boolean,value:!1,public:!0,observer:"showMuteBtnChanged"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"},showCenterPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showCenterPlayBtnChanged"},danmuList:{type:Array,value:[],public:!0,observer:"danmuListChanged"},objectFit:{type:String,value:"contain",public:!0,observer:"objectFitChanged"},duration:{type:Number,value:0,public:!0,observer:"durationChanged"},_videoId:{type:Number},_isLockTimeUpdateProgress:{type:Boolean,value:!1},_rate:{type:Number,value:0},_progressLeft:{type:Number,value:-22},_progressLength:{type:Number,value:0},_barType:{type:String,value:"full"},_danmuStatus:{type:String,value:""}},attached:function(){var e=this;this._addListeners(),this.duration<0&&(this.duration=0),FinChatJSBridge.publish("videoPlayerInsertFinish",{domId:this.id,videoPlayerId:0}),this.$.player.$$.currentTime=this.initialTime,this.$.player.$$.style.display="block",this.$.player.$$.autoplay=this.autoplay,this.$.player.$$.loop=this.loop,this.$.player.$$.style.objectFit=this.objectFit,this.$.player.$$.poster=this.poster,this.$.progress.$$.style.opacity=this.showProgress?"block":"none",this.$.curtime.$$.style.display=this.showProgress?"block":"none",this.$.durtime.$$.style.display=this.showProgress?"block":"none",this.$.fullscreen.style.display=this.showFullscreenBtn?"block":"none",this.$.muted.$$.style.display=this.showMuteBtn?"block":"none",this.$.player.$$.volume=this.muted?0:1,this.$.muted.$$.className=this.muted?"wx-video-mute-off":"wx-video-mute-on",this.$.button.$$.style.display=this.showPlayBtn?"block":"none",this.$.bigplaybtn.$$.style.display=this.showCenterPlayBtn?"block":"none",this.$.danmuBtn.style.display=this.danmuBtn?"block":"none",this.showCenterPlayBtn||(this.$.videoplaymask.$$.style.display="none",this.$.default.style.display="block"),this.danmuListChanged(this.danmuList),this.controlsChanged(this.controls),this.srcChanged(this.src),this.$$.clientWidth<241&&(this.$.curtime.$$.style.display="none",this.$.progress.$$.style.opacity=0,this.$.durtime.$$.style.display="none"),this.$.bigplaybtn.$$.onclick=function(t){t.stopPropagation(),e._playVideo()},this.$.muted.$$.onclick=function(t){t.stopPropagation(),e.muted=!e.muted},this.$.button.$$.onclick=function(t){t.stopPropagation(),e.$.player.$$[e._buttonType]()},this.$.progress.$$.onclick=function(t){t.stopPropagation();var n=e._computeRate(t.clientX);e.$.player.$$.currentTime=e.$.player.$$.duration*n,e._resetDanmu()},this.$.fullscreen.$$.onclick=function(t){t.stopPropagation(),"android"===wd.getPlatform()?e.enableFullScreen=!0:e.enableFullScreen=!e.enableFullScreen,e.enableFullScreen&&e.$.player.$$.webkitEnterFullscreen(),e.triggerEvent("togglefullscreen",{enable:e.enableFullScreen}),FinChatJSBridge.publish("operateVideoPlayer",{domId:this.id,videoPlayerId:this.videoPlayerId,type:"fullscreen"})},this.$.danmuBtn.$$.onclick=function(t){t.stopPropagation(),e.enableDanmu=!e.enableDanmu,e.triggerEvent("toggledanmu",{enable:e.enableDanmu})},FinChatJSBridge.subscribe("video_"+this.id+"_actionChanged",(function(t){e.action=t,e.actionChanged(t)})),wd.onAppEnterBackground((function(t){e.$.player.$$.pause()}))},methods:{_addListeners:function(){var e=this;if(this.$.player){for(var t=this.$.player.$$||this.$.player,n=this,i={},o=0,r=E()(MediaError);o<r.length;o++){var a=r[o];i[MediaError[a]]=a}t.onerror=function(e){if(e.stopPropagation(),e.srcElement.error){var t=e.srcElement.error.code;n._publish("error",{errMsg:i[t]})}},t.onplaying=function(e){n.playing=!0,e.stopPropagation(),n._buttonType="pause",n.paused=!1},t.onwaiting=function(e){n.playing=!1,e.stopPropagation(),n._publish("waiting",{}),n._buttonType="waiting","function"==typeof n.onWaiting&&n.onWaiting(e)},t.onplay=function(e){n.playing=!0,e.stopPropagation(),n._publish("play",{}),n._buttonType="pause","function"==typeof n.onPlay&&n.onPlay(e),n.paused=!1},t.onpause=function(e){n.playing=!1,e.stopPropagation(),n._publish("pause",{}),n._buttonType="play","function"==typeof n.onPause&&n.onPause(e),n.paused=!0},t.onended=function(e){n.playing=!1,e.stopPropagation(),n._publish("ended",{}),"function"==typeof n.onEnded&&n.onEnded(e)},t.onratechange=function(e){e.stopPropagation(),n._publish("ratechange",{playbackRate:t.playbackRate})};var s=0;t.addEventListener("timeupdate",(function(e){e.stopPropagation(),Math.abs(t.currentTime-s)%t.duration>=1&&(n._publish("timeupdate",{currentTime:t.currentTime,duration:t.duration}),s=1e3*t.currentTime),n._isLockTimeUpdateProgress||(n._currentTime=n._formatTime(Math.floor(t.currentTime))),"function"==typeof n.onTimeUpdate&&n.onTimeUpdate(e)})),t.addEventListener("progress",(function(e){e.stopPropagation(),n._publish("progress",{buffered:t.currentTime/t.duration*100}),"function"==typeof n.onProgress&&n.onProgress(e)})),t.addEventListener("durationchange",(function(){t.duration===1/0?e._isLive=!0:e._isLive=!1,isNaN(t.duration)||0!==e.duration||(n._duration=n._formatTime(Math.floor(t.duration)))}))}},_reset:function(){this._buttonType="play",this._currentTime="00:00",this._duration=this._formatTime(Math.round(this.duration)),this._progressLeft=-22,this._progressLength=0,this._barType=this.controls?"full":"part"},_hiddenChanged:function(e,t){this.$.player.$$.pause(),this.$$.style.display=e?"none":""},posterChanged:function(e){this.$.player.$$.poster=this.getRealRoute(e)},srcChanged:function(e,t){if(e){var n=this;console.log(this.getRealRoute(e)),this.$.player.$$.src=this.getRealRoute(e),setTimeout((function(){n._reset()}),0)}},initialTimeChanged:function(e){this.$.player.$$.currentTime=e},showProgressChanged:function(e,t){this.$.progress.$$.style.opacity=e?1:0,this.$.curtime.$$.style.display=e?"block":"none",this.$.durtime.$$.style.display=e?"block":"none"},showFullscreenBtnChanged:function(e){this.$.fullscreen.style.display=e?"block":"none"},showMuteBtnChanged:function(e){this.$.muted.$$.style.display=e?"block":"none"},showPlayBtnChanged:function(e){this.$.button.$$.style.display=e?"block":"none"},showCenterPlayBtnChanged:function(e){this.$.videoplaymask.$$.style.display=e?"block":"none"},mutedChanged:function(e){this.$.player.$$.volume=e?0:1,this.$.muted.$$.className=e?"wx-video-mute-off":"wx-video-mute-on"},controlsChanged:function(e,t){this._setBarType(),this.$.controls.$$.style.display=e?"flex":"none"},objectFitChanged:function(e,t){this.$.player.$$.style.objectFit=e},durationChanged:function(e,t){e>0&&(this._duration=this._formatTime(Math.round(e)))},danmuBtnChanged:function(e,t){this._setBarType(),this.$.danmuBtn.style.display=e?"block":"none"},enableDanmuChanged:function(e,t){this._danmuStatus=e?"active":"",this.$.danmu.style.zIndex=e?"0":"-9999"},actionChanged:function(e,t){if("object"===Ce()(e)){var n=e.method,i=e.data;if("play"===n)this._playVideo();else if("pause"===n)this.$.player.$$.pause();else if("seek"===n)this.$.player.$$.currentTime=i[0],this._resetDanmu();else if("sendDanmu"===n){var o=zu(i,2),r=o[0],a=o[1],s=_()(this.$.player.$$.currentTime);this.danmuObject[s]?this.danmuObject[s].push({text:r,color:a,time:s}):this.danmuObject[s]=[{text:r,color:a,time:s}]}else"stop"===n?(this.$.player.$$.currentTime=0,this.$.player.$$.pause()):"playbackRate"===n?this.$.player.$$.playbackRate=i[0]:"exitFullScreen"===n?document.exitFullscreen():"requestFullScreen"===n&&(this.$.player.$$.fullscreenElement||this.$.player.$$.requestFullscreen())}},onPlay:function(){var e=this,t=document.querySelectorAll(".wx-video-danmu-item");Array.prototype.forEach.apply(t,[function(t){var n=3*(_()(getComputedStyle(t).left)+t.offsetWidth)/(t.offsetWidth+e.$$.offsetWidth);t.style.left="-"+t.offsetWidth+"px",t.style.transitionDuration=n+"s",t.style.webkitTransitionDuration=n+"s"}])},onPause:function(e){var t=document.querySelectorAll(".wx-video-danmu-item");Array.prototype.forEach.apply(t,[function(e){e.style.left=getComputedStyle(e).left}])},onEnded:function(e){},_computeRate:function(e){var t=(e-this.$.progress.$$.getBoundingClientRect().left)/this.$.progress.$$.offsetWidth;return t<0?t=0:t>1&&(t=1),t},_setProgress:function(e){this._progressLength=Math.floor(this.$.progress.$$.offsetWidth*e),this._progressLeft=this._progressLength-22},_sendDanmu:function(e){if(this.playing&&!e.flag){e.flag=!0;var t=document.createElement("p");t.className+="wx-video-danmu-item",t.textContent=e.text,t.style.top=this._genDanmuPosition()+"%",t.style.color=e.color,this.$.danmu.$$.appendChild(t),t.style.left="-"+t.offsetWidth+"px"}},_genDanmuPosition:function(){if(this.lastDanmuPosition){var e=100*Math.random();Math.abs(e-this.lastDanmuPosition)<10?this.lastDanmuPosition=(this.lastDanmuPosition+50)%100:this.lastDanmuPosition=e}else this.lastDanmuPosition=100*Math.random();return this.lastDanmuPosition},_playVideo:function(){this.$.player.$$.play(),this._buttonType="pause",this.$.default.style.display="",this.$.videoplaymask.$$.style.display="none"},danmuListChanged:function(e){this.danmuObject=e.reduce((function(e,t){return"number"==typeof t.time&&t.time>=0&&"string"==typeof t.text&&t.text.length>0&&(e[t.time]?e[t.time].push({text:t.text,color:t.color||"#ffffff"}):e[t.time]=[{text:t.text,color:t.color||"#ffffff"}]),e}),{})},onTimeUpdate:function(e){var t=this;e.stopPropagation();var n=this.$.player.$$.duration;n>this.duration&&0!==this.duration&&(n=this.duration);var i=this.$.player.$$.currentTime/n;this._isLockTimeUpdateProgress||this._setProgress(i);var o=this.danmuObject[_()(this.$.player.$$.currentTime)];void 0!==o&&o.length>0&&o.forEach((function(e){t._sendDanmu(e)}))},onBallTouchStart:function(){var e="touchmove",t="touchend";if(!this.isLive){var n=this;n._isLockTimeUpdateProgress=!0;var i=function(e){e.stopPropagation(),e.preventDefault(),n._rate=n._computeRate(e.touches[0].clientX),n._setProgress(n._rate)};document.addEventListener(e,i,{passive:!1}),document.addEventListener(t,(function o(r){n.$.player.$$.currentTime=n.$.player.$$.duration*n._rate,document.removeEventListener(e,i),document.removeEventListener(t,o),n._isLockTimeUpdateProgress=!1,n._resetDanmu()}))}},_resetDanmu:function(){var e=this;this.$.danmu.$$.innerHTML="",E()(this.danmuObject).forEach((function(t){e.danmuObject[t].forEach((function(e){e.flag=!1}))}))},_setBarType:function(){this.controls?this._barType="full":this.danmuBtn?this._barType="part":this._barType="none"}}},Yu={is:"wx-video",behaviors:["wx-base","wx-player","wx-native","wx-positioning-target"],template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-video-container"},st:{},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width: 101%; height: 101%;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",cl:{v:"wx-video-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},properties:{autoplay:{type:Boolean,value:!1,public:!0,observer:"autoplayChanged"},danmuBtn:{type:Boolean,value:!1,public:!0,observer:"danmuBtnChanged"},enableDanmu:{type:Boolean,value:!1,observer:"enableDanmuChanged",public:!0},controls:{type:Boolean,value:!0,public:!0,observer:"controlsChanged"},danmuList:{type:Array,value:[],public:!0,observer:"danmuListChanged"},objectFit:{type:String,value:"contain",public:!0,observer:"objectFitChanged"},initialTime:{type:Number,value:0,public:!0,observer:"initialTimeChanged"},duration:{type:Number,value:0,public:!0},live:{type:Number,value:!1,public:!0,observer:"liveChanged"},src:{type:String,value:"",public:!0,observer:"_srcChanged"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"},loop:{type:Boolean,value:!1,public:!0,observer:"loopChanged"},poster:{type:String,value:"",public:!0,observer:"_posterChanged"},backgroundPoster:{type:String,value:"",public:!0,observer:"_backgroundPosterChanged"},pageGesture:{type:Boolean,value:!1,public:!0,observer:"pageGestureChanged"},direction:{type:Number,value:-1,public:!0,observer:"directionChanged"},customCache:{type:Boolean,value:!0,public:!0},showLiveBtn:{type:Boolean,value:!0,public:!0,observer:"showLiveBtnChanged"},showProgress:{type:Boolean,value:!0,public:!0,observer:"showProgressChanged"},showFullscreenBtn:{type:Boolean,value:!0,public:!0,observer:"showFullscreenBtnChanged"},showPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showPlayBtnChanged"},showCenterPlayBtn:{type:Boolean,value:!0,public:!0,observer:"showCenterPlayBtnChanged"},enableProgressGesture:{type:Boolean,value:!0,public:!0,observer:"enableProgressGestureChanged"},showScreenLockButton:{type:Boolean,value:!1,public:!0,observer:"showScreenLockButtonChanged"},enableAutoRotation:{type:Boolean,value:!1,public:!0,observer:"enableAutoRotationChanged"},showSnapshotButton:{type:Boolean,value:!1,public:!0,observer:"showSnapshotButtonChanged"},showBackgroundPlaybackButton:{type:Boolean,value:!1,public:!0,observer:"showBackgroundPlaybackButtonChanged"},showMuteBtn:{type:Boolean,value:!1,public:!0,observer:"showMuteBtnChanged"},showCastingButton:{type:Boolean,value:!1,public:!0,observer:"showCastingBtnChanged"},title:{type:String,value:"",public:!0,observer:"titleChanged"},playBtnPosition:{type:String,value:"bottom",public:!0,observer:"playBtnPositionChanged"},enablePlayGesture:{type:Boolean,value:!1,public:!0,observer:"enablePlayGestureChanged"},autoPauseIfNavigate:{type:Boolean,value:!0,public:!0,observer:"autoPauseIfNavigateChanged"},autoPauseIfOpenNative:{type:Boolean,value:!0,public:!0,observer:"autoPauseIfOpenNativeChanged"},vslideGesture:{type:Boolean,value:!1,public:!0,observer:"pageGestureChanged"},vslideGestureInFullscreen:{type:Boolean,value:!0,public:!0,observer:"vslideGestureInFullscreenChanged"},_webLayerFailed:{type:Boolean,value:!1},_insert2WebLayer:{type:Boolean,value:!1},pictureInPictureMode:{value:"",public:!0,observer:"pictureInPictureModeChanged"},pictureInPictureShowProgress:{type:Boolean,value:!1,public:!0,observer:"pictureInPictureShowProgressChanged"},bindenterpictureinpicture:{type:String,value:"",public:!0},bindleavepictureinpicture:{type:String,value:"",public:!0}},options:{renderingMode:"full"},created:function(){this.createdTimestamp=v()(),this._rawCurrentTime=0,this._rawDuration=0,this._buffered=0,this.playStatus=!1},attached:function(){var e=this,t=z();this.__pageReRenderCallback=function(){e._needUpdate&&T&&M(t,"16.0")||(e._getFixed(),e._pageReRenderCallback())},this._attachedCb()},detached:function(){this._removeListeners(),this._detachedCb()},methods:{play:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"play"},(function(){}))},pause:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"pause"},(function(){}))},stop:function(){var e=this;FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"stop"},(function(){var t=e.$.container.$$.querySelector(".poster");t&&(t.style.display="block")}))},seek:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;isNaN(e)||FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"seek",position:e},(function(){}))},playbackRate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"playbackRate",rate:e},(function(){}))},sendDanmu:function(e,t){e&&FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"sendDanmu",text:e,color:Y(t,!N)},(function(){}))},requestFullScreen:function(e){var t=[0,90,-90].indexOf(e)>-1?e:void 0;FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"requestFullScreen",direction:t},(function(){}))},exitFullScreen:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"exitFullScreen"},(function(){}))},showStatusBar:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"showStatusBar"},(function(){}))},hideStatusBar:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"hideStatusBar"},(function(){}))},exitPictureInPicture:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"exitPictureInPicture"},(function(){}))},requestBackgroundPlayback:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"requestBackgroundPlayback"},(function(){}))},exitBackgroundPlayback:function(){FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"exitBackgroundPlayback"},(function(){}))},_delay:function(e,t,n){this._deferred.push({callback:e,args:[t,n]})},_updateZIndex:function(e){this._update({zIndex:e,position:this._box})},hiddenChanged:function(e){var t=this;e?(N||this._videoId)&&FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"pause"},(function(){})):this.playStatus&&FinChatJSBridge.invoke("operateVideoPlayer",{videoPlayerId:this._videoId,type:"play"},(function(){})),setTimeout((function(){e&&window.__isFullScreen&&FinChatJSBridge.operateVideoPlayer({videoPlayerId:t._videoId,type:"exitFullScreen",data:[]})}),e?200:0)},_posterChanged:function(e){var t=this.$.container.$$.querySelector(".poster");t&&(t.style.backgroundImage="url(".concat(e,")")),!this._isError&&e&&this._update({poster:this.getRealRoute(e)})},_backgroundPosterChanged:function(e){!this._isError&&e&&this._update({backgroundPoster:this.getRealRoute(e)})},_srcChanged:function(e){!this._isError&&e&&(this._isReady?/^((\/)|(\.[./]?))/.test(e)?this.triggerEvent("error",{errMsg:"Media src not supported."}):this._update({src:this.getRealRoute(e),initialTime:this.initialTime}):this._deferred.push({callback:"_srcChanged",args:[e]}))},handlersChanged:function(){this._update()},autoplayChanged:function(e){this._update({autoplay:e})},controlsChanged:function(e){this._update({controls:e})},danmuBtnChanged:function(e){this._update({danmuBtn:e})},enableDanmuChanged:function(e){this._update({enableDanmu:e})},mutedChanged:function(e){this._update({muted:e})},loopChanged:function(e){this._update({loop:e})},pageGestureChanged:function(e){this._update({vslideGesture:e})},directionChanged:function(e){var t={};[0,90,-90].indexOf(e)>-1&&(t.direction=e,this._update(t))},danmuListChanged:function(e){this._update({danmuList:e})},objectFitChanged:function(e){var t=this.$.container.$$.querySelector(".poster");if(t){var n="fill"===e?"100%":e;t.style.backgroundSize=n}this._update({objectFit:e})},showProgressChanged:function(e){this._update({showProgress:e})},showLiveBtnChanged:function(e){this._update({showLiveBtn:e})},showFullscreenBtnChanged:function(e){this._update({showFullscreenBtn:e})},showPlayBtnChanged:function(e){this._update({showPlayBtn:e})},showCenterPlayBtnChanged:function(e){this._update({showCenterPlayBtn:e})},enableProgressGestureChanged:function(e){this._update({enableProgressGesture:e})},showScreenLockButtonChanged:function(e){this._update({showScreenLockButton:e})},enableAutoRotationChanged:function(e){this._update({enableAutoRotation:e})},showSnapshotButtonChanged:function(e){this._update({showSnapshotButton:e})},showBackgroundPlaybackButtonChanged:function(e){this._update({showBackgroundPlaybackButton:e})},initialTimeChanged:function(e){this._update({initialTime:e})},showMuteBtnChanged:function(e){this._update({showMuteBtn:e})},showCastingBtnChanged:function(e){this._update({showCastingButton:e})},titleChanged:function(e){this._update({title:e})},playBtnPositionChanged:function(e){this._update({playBtnPosition:e})},enablePlayGestureChanged:function(e){this._update({enablePlayGesture:e})},autoPauseIfNavigateChanged:function(e){this._update({autoPauseIfNavigate:e})},autoPauseIfOpenNativeChanged:function(e){this._update({autoPauseIfOpenNative:e})},vslideGestureInFullscreenChanged:function(e){this._update({vslideGestureInFullscreen:e})},_actionChanged:function(e){"function"==typeof this[e.method]&&this[e.method].apply(this,e.data)},getContextId:function(){return this._videoId},_attachedCb:function(){this._isInserting||(this._isInserting=!0,window.__delayFullScreenUpdateCss=!0,this._videoId="native-video-".concat(this.getNodeId(),"-").concat(this._id),this._getFixed(),this._box=this._getBox(),this.id||(this.id="video-".concat(this._videoId)),this.$$.setAttribute("aria-video-id",this._videoId),this._insert(),this._addListeners())},_insert:function(){var e=this,t={position:this._box,hide:this.hidden,enableDanmu:this.enableDanmu,danmuBtn:this.danmuBtn,controls:this.controls,objectFit:this.objectFit,autoplay:this.autoplay,danmuList:this.danmuList,live:this.live,muted:this.muted,loop:this.loop,vslideGesture:this.pageGesture||this.vslideGesture,vslideGestureInFullscreen:this.vslideGestureInFullscreen,domId:this.id,videoPlayerId:this._videoId,initialTime:this.initialTime,customCache:this.customCache,showProgress:this.showProgress,showControlProgress:this._box.width>240,showLiveBtn:this.showLiveBtn,showPlayBtn:this.showPlayBtn,showCenterPlayBtn:this.showCenterPlayBtn,showFullscreenBtn:this.showFullscreenBtn,enableProgressGesture:this.enableProgressGesture,showScreenLockButton:this.showScreenLockButton,enableAutoRotation:this.enableAutoRotation,showSnapshotButton:this.showSnapshotButton,showBackgroundPlaybackButton:this.showBackgroundPlaybackButton,showMuteBtn:this.showMuteBtn,title:this.title,playBtnPosition:this.playBtnPosition,enablePlayGesture:this.enablePlayGesture,autoPauseIfNavigate:this.autoPauseIfNavigate,autoPauseIfOpenNative:this.autoPauseIfOpenNative,zIndex:this._getCurrentZIndex(),poster:this.poster,fixed:this._fixed,showCastingButton:this.showCastingButton,pictureInPictureShowProgress:this.pictureInPictureShowProgress};this.pictureInPictureMode&&(t.pictureInPictureMode=this.getPictureInPictureMode(this.pictureInPictureMode)),this.src&&(/^((\/)|(\.[./]?))/.test(this.src)?this.triggerEvent("error",{errMsg:"Media src not supported."}):(t.src=this.getRealRoute(this.src),t.initialTime=this.initialTime)),this.duration>0&&(t.duration=this.duration),[0,90,-90].indexOf(this.direction)>-1&&(t.direction=this.direction),this.autoplay&&(this.playStatus=!0);var n=function(){e._isInserting=!1,e.insertSuccess=!0,e.findCoverView(e._videoId,{});var t={domId:e.id,videoPlayerId:e._videoId};FinChatJSBridge.publish("videoPlayerInsertFinish",t),e.pictureinpictureCb(),e._detached&&e.removeNativeView("removeVideoPlayer",{videoPlayerId:e._videoId})};if(k&&Ii().video){var i=document.createElement("video-player");return this.$.inner.$$.style.display="none",this.$.container.$$.append(i),i.setAttribute(J("videoPlayerId"),t.videoPlayerId),i.setAttribute("data",ce()(t)),i.getBoundingClientRect(),void setTimeout((function(){var i=document.createElement("video-controller");i.setAttribute(J("videoPlayerId"),t.videoPlayerId);var o=document.createElement("div");o.classList.add("poster");var r=document.createElement("div");r.classList.add("background"),e.$.container.$$.append(o),e.$.container.$$.append(i),e.$.container.$$.append(r),n(),e._ready()}),0)}this.insertNativeView("insertVideoPlayer",t,(function(t){/:ok/.test(t.errMsg)?n():e._isError=!0}))},pictureinpictureCb:function(){this.bindenterpictureinpicture&&FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",this.getPictureInIicture(this.bindenterpictureinpicture,"enter")),this.bindleavepictureinpicture&&FinChatJSBridge.publish("SPECIAL_PAGE_EVENT",this.getPictureInIicture(this.bindleavepictureinpicture,"leave"))},getPictureInIicture:function(e,t){var n={id:this.id,dataset:this.dataset,offsetTop:this.$$.offsetTop,offsetLeft:this.$$.offsetLeft};return{eventName:e,data:{data:{type:"video",timeStamp:v()(),detail:{},target:n,currentTarget:n,touches:[]},videoPlayerId:this._videoId,source:t,eventName:e,nodeId:this.getNodeId()}}},_update:function(e){if(!this._isError)if(this._isReady){var t={};t.videoPlayerId=this._videoId,t.hide=this.hidden,t.objectFit=this.objectFit,t.autoplay=this.autoplay,t.live=this.live,t.customCache=this.customCache,t.showControlProgress=window.__isFullScreen||this._box.width>240,this.duration>0&&(t.duration=this.duration),e.danmuList&&!N&&e.danmuList.forEach((function(e){e.color=Y(e.color,!0)})),t=Ke()(t,e),this.updateNativeView("updateVideoPlayer",t,(function(){}))}else this._delay("_update",e)},_updatePosition:function(){this._update({position:this._box,fixed:this._fixed})},_detachedCb:function(){var e=this;this._detached=!0,this.removeNativeView("removeVideoPlayer",{videoPlayerId:this._videoId},(function(t){FinChatJSBridge.publish("videoPlayerRemoved",{domId:e.id,videoPlayerId:e._videoId})}))},_addListeners:function(){var e=this,t=function(t,n){return ftparser.addListenerToElement(document,t,(function(t){t.detail.videoPlayerId===e._videoId&&n(t)}))};O&&(this._pause=function(){e.pause()},wd.onAppEnterBackground(this._pause)),this._onPlayId=t("onVideoPlay",(function(t){e.playStatus=!0,e.triggerEvent("play",{}),setTimeout((function(){var t=e.$.container.$$.querySelector(".poster");t&&(t.style.display="none")}),100)})),this._onPauseId=t("onVideoPause",(function(){e.hidden||(e.playStatus=!1),e.triggerEvent("pause",{})})),this._onEnded=t("onVideoEnded",(function(){e._rawCurrentTime=0,e.triggerEvent("ended",{})})),this._onError=t("onVideoError",(function(t){var n=t.detail.errMsg||"";e.triggerEvent("error",{errMsg:n})})),this._onTimeUpdate=t("onVideoTimeUpdate",(function(t){var n=t.detail,i=n.duration,o=void 0===i?0:i,r=n.currentTime,a=void 0===r?0:r;e._rawCurrentTime=a||0,e._rawDuration=o||0,e.triggerEvent("timeupdate",{duration:o,currentTime:a})})),this._onLoadedMetaData=t("onVideoLoadedMetaData",(function(t){var n=t.detail,i=n.duration,o=void 0===i?0:i,r=n.width,a=void 0===r?0:r,s=n.height,c=void 0===s?0:s;e.triggerEvent("loadedmetadata",{duration:o,width:a,height:c})})),this._onProgress=t("onVideoProgress",(function(t){var n=t.detail.buffered;e._buffered=n||0,e.triggerEvent("progress",{buffered:n})})),this._onWaiting=t("onVideoWaiting",(function(){e.triggerEvent("waiting",{})})),this._onSeeked=t("onVideoSeeked",(function(t){var n=t.detail.position;e.triggerEvent("seekcomplete",{position:n})})),this._onControlsToggle=t("onVideoControlsToggle",(function(t){var n=t.detail.show;e.triggerEvent("controlstoggle",{show:n})})),this._onFullscreenId=t("onVideoFullscreenChange",(function(t){var n=t.detail,i=n.fullScreen,o=n.direction;e.triggerEvent("fullscreenchange",{fullScreen:i,direction:o})})),this._onObjectFit=t("onVideoObjectfit",(function(t){var n=t.detail,i=n.width,o=n.height,r=n.fullScreen,a=e.$.container.$$.querySelector("video-player");a&&(a.style.width=i+"px",a.style.height=o+"px",r?(a.setAttribute("data-width-fullscreen",i),a.setAttribute("data-height-fullscreen",o)):(a.setAttribute("data-width",i),a.setAttribute("data-height",o)))})),FinChatJSBridge.subscribe("video_".concat(this._videoId,"_actionChanged"),this._actionChanged.bind(this)),document.addEventListener("pageReRender",this.__pageReRenderCallback),document.addEventListener("pageCssUpdate",this.__pageReRenderCallback)},_removeListeners:function(){O&&wd.offAppEnterBackground(this._pause),ftparser.removeListenerFromElement(document,"onVideoPlay",this._onPlayId),ftparser.removeListenerFromElement(document,"onVideoPause",this._onPauseId),ftparser.removeListenerFromElement(document,"onVideoEnded",this._onEnded),ftparser.removeListenerFromElement(document,"onVideoError",this._onError),ftparser.removeListenerFromElement(document,"onVideoTimeUpdate",this._onTimeUpdate),ftparser.removeListenerFromElement(document,"onVideoLoadedMetaData",this._onLoadedMetaData),ftparser.removeListenerFromElement(document,"onVideoProgress",this._onProgress),ftparser.removeListenerFromElement(document,"onVideoWaiting",this._onWaiting),ftparser.removeListenerFromElement(document,"onVideoSeeked",this._onSeeked),ftparser.removeListenerFromElement(document,"onVideoControlsToggle",this._onControlsToggle),ftparser.removeListenerFromElement(document,"onVideoFullscreenChange",this._onFullscreenId),ftparser.removeListenerFromElement(document,"onVideoObjectfit",this._onObjectFit),FinChatJSBridge.subscribe("video_".concat(this._videoId,"_actionChanged"),(function(){})),document.removeEventListener("pageReRender",this.__pageReRenderCallback),document.removeEventListener("pageCssUpdate",this.__pageReRenderCallback)},_canToggleFullscreen:function(e){var t=this._videoId&&e.videoPlayerId===this._videoId;return t&&(e.fullScreen?document.removeEventListener("pageReRender",this.__pageReRenderCallback):document.addEventListener("pageReRender",this.__pageReRenderCallback)),t},pictureInPictureModeChanged:function(e){var t=this.getPictureInPictureMode(e);this._update({pictureInPictureMode:t})},pictureInPictureShowProgressChanged:function(e){this._update({pictureInPictureShowProgress:e})},getPictureInPictureMode:function(e){return"string"==typeof e?[e]:A()(e)?e:[]}}};Wu=!O&&!yi||P?Gu:Yu,window.ftparser.registerElement(Wu),window.ftparser.registerElement({is:"wx-view",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-hover","wx-reload"],properties:{inline:{type:Boolean,public:!0},hover:{type:Boolean,value:!0,public:!0}}}),window.ftparser.registerElement({is:"wx-rich-text",template:function(e,t,n){return[{t:1,n:"div",id:"rich-text",a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-class-prefix","wx-html-parse"],properties:{space:{type:String,value:"",public:!0},nodes:{value:[],public:!0,observer:"_nodesObserver"}},created:function(){this._ready=!1,this._cachedVal=null},attached:function(){if(this._ready=!0,this._cachedVal){var e=this._cachedVal;this._cachedVal=null,this._nodesObserver(e)}},methods:{_nodesObserver:function(e){var t=this;if(this._ready)if(this.$["rich-text"].innerHTML="","object"===Ce()(e)&&e instanceof Array){var n;try{n=this.getFilter().parse(e,document.createDocumentFragment(),(function(e){return t.convertClassWithPrefix(e)}),this._createSpaceDecode(this.space))}catch(e){return void console.error(e)}this.$["rich-text"].appendChild(n)}else"string"==typeof e?this.$["rich-text"].innerHTML=function(e,t){if(!t)return e;for(var n=["ensp","emsp","nbsp"];n.length;){var i=n.pop();t!==i&&(e=e.replaceAll("&".concat(i,";"),"&".concat(t,";")))}return e}(e,this.space):console.warn("For developer:nodes 属性只支持 String 和 Array 类型,请检查输入的值。");else this._cachedVal=e}}});var Ku=!1;function Xu(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Xu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-web-view",template:function(e,t,n){return[{t:1,n:"div",a:[{n:"role",v:"link"},{n:"aria-label",e:function(e,t,n){return e.ariaLabel},l:[null],b:[[null,"ariaLabel"]]}],c:[]}]},options:{renderingMode:"full"},behaviors:["wx-base","wx-native","wx-positioning-target"],properties:{src:{type:String,public:!0,observer:"srcChange"},header:{type:Object,public:!0,observer:"srcChange"},timeout:{type:Number,public:!0,value:0},bindevent:{type:String,value:"",public:!0},bindinstantmessage:{type:String,value:"",public:!0},bindmessage:{type:String,value:"",public:!0},bindload:{type:String,value:"",public:!0},binderror:{type:String,value:"",public:!0},bindtimeout:{type:String,value:"",public:!0}},attached:function(){this._attached=!0,this.insertWebview()},detached:function(){this._attached=!1,FinChatJSBridge.invoke("removeHTMLWebView",{htmlId:this.uuid},(function(){Ku=!1}))},methods:{insertWebview:function(){var e=this;try{if(!this.src||this._inserted)return;if(Ku)return console.warn("一个页面只能插入一个 `wx-web-view`。");this.uuid=v()(),this._inserted=!0,FinChatJSBridge.invoke("insertHTMLWebView",{htmlId:this.uuid,src:(this.src||"").trim(),timeout:isNaN(this.timeout)?0:this.timeout,header:(this.formatHeader(this.header)||"").trim(),bindmessage:(this.bindmessage||"").trim(),bindload:(this.bindload||"").trim(),binderror:(this.binderror||"").trim(),bindevent:(this.bindevent||"").trim(),bindinstantmessage:(this.bindinstantmessage||"").trim(),bindtimeout:(this.bindtimeout||"").trim(),position:{left:0,top:0},id:this.id,dataset:this.dataset,nodeId:this.getNodeId()},(function(t){/ok/.test(t.errMsg)&&e._ready()}))}catch(e){console.error(e)}Ku=!0},formatHeader:function(e){if(!e)return"";try{return ce()(e)}catch(t){return console.log("web-view format header error",e),""}},srcChange:function(e){var t=this;this._inserted?e&&this._attached&&(this._pending||(this._pending=!0,Kn((function(){FinChatJSBridge.invoke("updateHTMLWebView",{htmlId:t.uuid,header:(t.formatHeader(t.header)||"").trim(),src:(t.src||"").trim()},(function(){})),t._pending=!1})))):Kn(this.insertWebview.bind(this))}}}),window.ftparser.registerElement({is:"wx-native-view",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-hover","wx-native"],properties:{type:{type:String,value:"camera",observer:"_typeChange",public:!0},options:{type:String,value:"{}",observer:"_optionsChange",public:!0},id:{type:String,value:"",public:!0}},listeners:{},attached:function(){this.id=(new Date).getTime(),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this,t=this;this._onNativeViewTaskId=ftparser.addListenerToElement(document,"onNativeViewTask",(function(e){String(e.detail.nativeViewId)===String(t.id)&&t._onNativeViewTask(e.detail)})),this._onpageScrollCallbackId=this._onpageScrollCallback.bind(this),document.addEventListener("scroll",this._onpageScrollCallbackId),new ResizeObserver((function(t,n){e._updateNativeView()})).observe(this.$$),this.observer=new MutationObserver((function(e,n){clearTimeout(t._mutationTimeout),t._mutationTimeout=setTimeout((function(){t._updateNativeView()}),100)})),this.observer.observe(document.querySelector("body"),{attributes:!0,childList:!0,subtree:!0}),FinChatJSBridge.invoke("showNativeView",this.getCurrentNativeViewArgs(),(function(e){t.triggerEvent("ready",{event:e})}))},_detachedCb:function(){this.observer.disconnect(),ftparser.removeListenerFromElement(document,"onNativeViewTask",this._onNativeViewTaskId),document.removeEventListener("scroll",this._onpageScrollCallbackId),FinChatJSBridge.invoke("hideNativeView",{nativeViewId:this.id})},_typeChange:function(){console.log("DEBUG: view native-view _typeChange")},_optionsChange:function(){console.log("DEBUG: view native-view _optionsChange")},_updateNativeView:function(){var e=this.getCurrentNativeViewArgs(),t=this._diff(this.inputArgs,e);this.inputArgs=t,t&&FinChatJSBridge.invoke("updateNativeView",Ke()(t,{nativeViewId:this.id}),(function(e){}))},_onpageScrollCallback:function(){this._updateNativeView()},_diff:function(e,t){!e&&(e={});var n={},i=!1;for(var o in t)"[object Object]"===Object.prototype.toString.call(t[o])?ce()(t[o])!==ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!==t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));return this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0]}},getCurrentNativeViewArgs:function(){var e={};try{e=JSON.parse(this.options)}catch(e){console.log(this.options),console.error("error in native-view options",this.options)}return{type:this.type,nativeViewId:this.id,style:this.getComputedStyle(),params:e}},_onNativeViewTask:function(e){var t=e.eventName,n=e.detail;this.triggerEvent("ontask",{eventName:t,detail:n})}}});var Ju=[];function Qu(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}["onTextViewTouchStart","onTextViewTouchMove","onTextViewTouchEnd","onTextViewTouchCancel"].forEach((function(e){window._onTouchEvent&&window._onTouchEvent(e,(function(e){Ju.forEach((function(t){t(e)}))}))})),window.ftparser.registerElement({is:"wx-cover-view",template:function(e,t,n){return[{t:1,n:"div",id:"content",cl:{v:"wx-cover-view"},st:{v:"display: inherit;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},options:{renderingMode:"full"},behaviors:["wx-base","wx-native","wx-positioning-target","wx-native-cover","wx-native-hover","wx-reload","wx-size-normalizer"],properties:{ariaRole:{type:String,value:"",public:!0},markerId:{type:String,value:"",public:!0},ariaLabel:{type:String,value:"",public:!0},scrollLeft:{type:String,value:-1,public:!0,filter:"_scrollLeftChange"},scrollTop:{type:String,value:-1,public:!0,filter:"_scrollTopChange"},viewName:{type:String,value:"TextView"},hidden:{type:Boolean,value:!1,public:!0,observer:"hiddenChanged"}},created:function(){this._childViews=[],this.__handleScroll=this._handleScroll.bind(this),this.__scrollViewId=L("cover-scroll-view"),this.__handleCoverViewTouch=this._handleCoverViewTouch.bind(this),Ju.push(this.__handleCoverViewTouch)},attached:function(){var e=this;if(O)this.$.content.$$.addEventListener("scroll",this.__handleScroll),this.scrollLeft>=0&&(this.$.content.$$.scrollLeft=this.scrollLeft),this.scrollTop>=0&&(this.$.content.$$.scrollTop=this.scrollTop);else{var t=this._viewId;this._coverViewScrollHandler=ftparser.addListenerToElement(document,"onCoverViewScroll",(function(n){n.detail._scrollViewId===t&&(e._currentScrollTop=n.detail.scrollTop)})),this._scrollEventSubscribed=!0}},detached:function(){var e=this;this._attached=!1,this._scrollViewId&&!this._noNeedToInsert&&this.removeNativeView("removeScrollView",{viewId:this._scrollViewId},(function(){})),this.$.content.$$.removeEventListener("scroll",this.__handleScroll),window.ftparser.removeListenerFromElement(document,"onCoverViewScroll",this._coverViewScrollHandler);var t=Ju.findIndex((function(t){return t===e.__handleCoverViewTouch}));-1!==t&&Ju.splice(t,1)},methods:{_scrollLeftChange:function(e,t){if(!isNaN(e)){if(e=Number(e),O)return this.$.content.$$.scrollLeft=e,e;if(!this._scrollViewId)return e;if(e<0)return t;var n=this.$.content.$$.scrollHeight;return this.updateNativeView("updateScrollView",{viewId:this._scrollViewId,notCoverRect:!0,scrollLeft:e,hide:this.hidden,contentSize:{width:this._box.width,height:n}},(function(){})),e}},_scrollTopChange:function(e,t){if(!isNaN(e)){if(e=Number(e),O)return this.$.content.$$.scrollTop=e,e;if(!this._scrollViewId)return e;if(e<0)return t;var n=this.$.content.$$.scrollHeight;return this.updateNativeView("updateScrollView",{viewId:this._scrollViewId,notCoverRect:!0,scrollTop:e,hide:this.hidden,contentSize:{width:this._box.width,height:n}},(function(){})),e}},insert:function(e,t){var n=this,i=e.viewId;this.updateTextContent();var o=this.getLabelStyle();if("scroll"===this._overflowX||"scroll"===this._overflowY){var r=this.$.content.$$.scrollWidth,a=this.$.content.$$.scrollHeight;e.viewId=this.__scrollViewId,e.scrollX=this._scrollX="scroll"===this._overflowX,e.scrollY=this._scrollY="scroll"===this._overflowY,e.needScrollEvent=!0,e.contentSize={width:r,height:a};var s={viewId:this.__scrollViewId,notCoverRect:!0,hide:this.hidden};this.scrollLeft>=0&&(s.scrollLeft=this.scrollLeft),this.scrollTop>=0&&(s.scrollTop=this.scrollTop),(this.scrollLeft>=0||this.scrollTop>=0)&&(s.contentSize={width:this._box.width,height:a}),this.sendInsertEvent("insertScrollView",e,(function(c){if(-1!==c.errMsg.indexOf(":ok")){n._scrollViewId=n.__scrollViewId;var l={parentId:n.__scrollViewId,viewId:i,position:Zu(Zu({},e.position||{}),{},{width:r,height:a,offsetLeft:0,offsetTop:0}),label:o,hide:n.hidden,clickable:e.clickable,gesture:e.gesture,sendTo:e.sendTo,data:e.data,notCoverRect:e.notCoverRect};l.style={bgColor:Y(e.style.bgColor)},n.insertTextView(l,(function(e){"function"==typeof t&&t(e),void 0===s.scrollTop&&void 0===s.scrollLeft&&n.updateNativeView("updateScrollView",s,(function(e){}))}))}}))}else e.label=o,this.insertTextView(e,t)},insertTextView:function(e,t){var n=this;e.accessibility=!0,e.ariaLabel=this.ariaLabel,e.ariaRole=this.ariaRole,this.sendInsertEvent("insertTextView",e,(function(i){-1!==i.errMsg.indexOf(":ok")&&(n._viewId=e.viewId,n.$$.setAttribute("view-id",e.viewId),n._args={position:e.position,style:e.style,viewId:e.viewId,label:e.label,fixed:e.fixed,hide:n.hidden},"function"==typeof t&&t(n._viewId))}))},update:function(e,t,n){var i=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];"boolean"!=typeof t&&(t=!1),this.updateTextContent(),e.label=this.getLabelStyle();var r=this.$.content.$$.scrollWidth,a=this.$.content.$$.scrollHeight,s={viewId:this._viewId,position:Zu(Zu({},e.position||{}),{},{width:r,height:a}),notCoverRect:!0,zIndex:e.zIndex,fixed:e.fixed,hide:this.hidden},c=this.diff(e,this._args,t),l={viewId:this._viewId,notCoverRect:!0,zIndex:e.zIndex,hide:this.hidden,fixed:e.fixed},u=function(){c&&c.indexOf("position")>-1&&i.reLayoutChildViewsByPosition(),"function"==typeof n&&n()};if(c){if(o&&(this._args=e),c.forEach((function(t){l[t]=e[t]})),e.style&&e.style.bgColor&&(l.style||(l.style={}),l.style.bgColor=Y(e.style.bgColor)),!this._scrollViewId)return l.label=e.label,void this.sendUpdateEvent("updateTextView",l,u);delete l.label,c.indexOf("label")>-1&&(s.label=e.label),s.position&&(s.position.offsetLeft=0,s.position.offsetTop=0),this.sendUpdateEvent("updateTextView",s,u)}else if(!this._scrollViewId)return;l.viewId=this._scrollViewId,l.scrollX=this._scrollX,l.scrollY=this._scrollY,l.scrollTop=this.scrollTop,l.contentSize={width:r,height:a};var d=this.diff(l,this._scrollViewArgs,t);this._scrollViewArgs=l,d&&this.sendUpdateEvent("updateScrollView",l,(function(){i.sendUpdateEvent("updateTextView",s,u)}))},updateTextContent:function(){var e=this.$.content.$$;this._content="";for(var t=0,n=e.childNodes.length;t<n;t++){var i=e.childNodes.item(t);(i.nodeType!==i.ELEMENT_NODE||!(["WX-COVER-VIEW","WX-COVER-IMAGE"].indexOf(i.tagName)>-1)&&i instanceof ftparser.Component)&&(this._content+=i.textContent)}this._content=this._content.trim()},hiddenChanged:function(){this.toggleHidden()},toggleHidden:function(e){var t=this.$.content.$$.scrollWidth,n=this.$.content.$$.scrollHeight,i={viewId:this._viewId,position:{width:t,height:n},hide:void 0!==e?Boolean(e):this.hidden};this.sendUpdateEvent("updateTextView",i)},getLabelStyle:function(){var e=window.getComputedStyle(this.$$),t=Dt()(e.fontSize)||12,n=e.textAlign;"start"===n?n="left":"end"===n?n="right":-1===["left","center","right"].indexOf(n)&&(n="left");var i=Dt()(e.fontWeight);if(isNaN(i))switch(e.fontWeight){case"bold":case"bolder":i="bold";break;default:i="normal"}else i<500?i="normal":i>=500&&(i="bold");var o=Dt()(e.maxWidth),r=e.wordBreak,a=e.wordWrap,s=e.textOverflow,c=e.whiteSpace,l="break-word";"visible"===e.overflow||"nowrap"!==c||"ellipsis"!==s&&"clip"!==s?"break-all"!==r&&"break-all"!==a||(l="break-all"):l="ellipsis"===s&&(!o||o<=this._box.width)?"ellipsis":"clip";var u=e.letterSpacing;return u=u.endsWith("px")?u.replace("px",""):u.endsWith("em")?u.replace("em","")*t:0,u=isNaN(u)?0:_()(u,10),{color:Y(e.color),fontSize:t,lineHeight:Dt()(e.lineHeight)||1.2*t,textAlign:n,fontWeight:i,lineBreak:l,hide:this.hidden,whiteSpace:"nowrap"!==c?"normal":"nowrap",content:this._content||"",letterSpacing:u}},_handleScroll:function(e){function t(e){return{id:e.id,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,dataset:e.dataset}}if(this.bindscroll&&!(e.timeStamp-this._lastScrollTime<20)){this._lastScrollTime=e.timeStamp;var n=e.target;this.triggerEvent("scroll",{type:"scroll",timeStamp:e.timeStamp,target:t(n),currentTarget:t(this.$$),detail:{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth}},this._viewId)}},reLayoutChildViewsByPosition:function(){this._childViews.forEach((function(e){e&&"function"==typeof e.updatePosition&&e.updatePosition()}))},addChildView:function(e){this._childViews.push(e)},removeChildView:function(e){this._childViews=this._childViews.filter((function(t){return t!==e}))}}}),window.ftparser.registerElement({is:"wx-match-media",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base"],properties:{width:{type:Number,public:!0,value:0,observer:"update"},minWidth:{type:Number,public:!0,value:0,observer:"update"},maxWidth:{type:Number,public:!0,value:0,observer:"update"},height:{type:Number,public:!0,value:0,observer:"update"},minHeight:{type:Number,public:!0,value:0,observer:"update"},maxHeight:{type:Number,public:!0,value:0,observer:"update"},orientation:{type:String,public:!0,value:"",observer:"update"}},attached:function(){this.update()},detached:function(){this._observerId&&__virtualDOM__.removeMediaQueryObserver(this._observerId)},methods:{update:function(){var e=this;ftparser.Element.isAttached(this)&&(this._observerId&&__virtualDOM__.removeMediaQueryObserver(this._observerId),this._observerId=__virtualDOM__.addMediaQueryObserver({width:this.data.width||void 0,minWidth:this.data.minWidth||void 0,maxWidth:this.data.maxWidth||void 0,height:this.data.height||void 0,minHeight:this.data.minHeight||void 0,maxHeight:this.data.maxHeight||void 0,orientation:this.data.orientation||void 0},(function(t){var n=t.matches;e.setNodeStyle(n?"":"display: none",3)})))}}}),window.ftparser.registerElement({is:"wx-live-player",options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"container",st:{},cl:{v:"wx-live-player-container"},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"inner"},st:{v:"width: 101%; height: 101%;position:relative;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",st:{},cl:{v:"wx-live-player-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-hover","wx-native"],properties:{id:{type:String,value:"",public:!0},src:{type:String,value:"",public:!0,observer:"_updateNativeView"},mode:{type:String,value:"live",public:!0,observer:"_updateNativeView"},autoplay:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},muted:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},orientation:{type:String,value:"vertical",public:!0,observer:"_updateNativeView"},objectFit:{type:String,value:"contain",public:!0,observer:"_updateNativeView"},minCache:{type:Number,value:1,public:!0,observer:"_updateNativeView"},maxCache:{type:Number,value:3,public:!0,observer:"_updateNativeView"},soundMode:{type:String,value:"speaker",public:!0,observer:"_updateNativeView"},autoPauseIfNavigate:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},autoPauseIfOpenNative:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},pictureInPictureMode:{type:[String,Array],value:[],public:!0,observer:"_updateNativeView"},options:{type:String,value:"{}",public:!0},hidden:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"}},created:function(){var e=Ni("LivePlayer"),t=e.eventName,n=e.useComponet;this._liveEventName=t,this._useComponet=n},attached:function(){this._getFixed(),this._box=this._getBox(),this.nativeViewId=(new Date).getTime(),this._attachedCb()},detached:function(){this._detachedCb()},methods:{_attachedCb:function(){var e=this,t=this,n=t._useComponet?"onLivePlayerTask":"onNativeViewTask";this._onNativeViewTaskId=ftparser.addListenerToElement(document,n,(function(e){String(e.detail.nativeViewId)===String(t.nativeViewId)&&t._onNativeViewTask(e.detail)}));var i=function(){e.insertSuccess=!0,e.findCoverView(e.nativeViewId,{}),e.syncLivePlayerStatus(e.nativeViewId),FinChatJSBridge.publish("livePlayerInsert",{id:e.id||"",nativeViewId:e.nativeViewId,useComponet:e._useComponet,cid:e._cid||""}),e.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback(),e._updateNativeView()},document.addEventListener("pageReRender",e.__pageReRenderCallback),e._needUpdate&&(e._needUpdate=!1,e._updateNativeView())};if(k&&Ii().livePlayer){var o=document.createElement("live-video-player");return this.$.inner.$$.style.display="none",this.$.container.$$.append(o),o.setAttribute(J("liveVideoPlayerId"),this.nativeViewId),o.setAttribute("data",ce()(this.getCurrentNativeViewArgs())),o.getBoundingClientRect(),void setTimeout((function(){i(),e._ready(),e.triggerEvent("initdone",{event:{errMsg:"showLivePlayer:ok"}})}),0)}this.insertNativeView(this._liveEventName.insert,this.getCurrentNativeViewArgs(),(function(t){/ok/.test(t.errMsg)&&(i(),e.triggerEvent("initdone",{event:t}))}))},_updatePlayer:function(e){this.updateNativeView(this._liveEventName.update,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Qu(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}({nativeViewId:this.nativeViewId},e),(function(){}))},_detachedCb:function(){ftparser.removeListenerFromElement(document,"onNativeViewTask",this._onNativeViewTaskId),this.removeNativeView(this._liveEventName.remove,{nativeViewId:this.nativeViewId}),FinChatJSBridge.publish("livePlayerRemove",{id:this.id||"",nativeViewId:this.nativeViewId}),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback)},_updateNativeView:function(){if(this.insertSuccess){var e=this.getCurrentNativeViewArgs(),t=this._diff(this.inputArgs,e);this.inputArgs=t,t&&this.updateNativeView(this._liveEventName.update,Ke()(t,{nativeViewId:this.nativeViewId}),(function(e){}))}else this._needUpdate=!0},_diff:function(e,t){!e&&(e={});var n={},i=!1;for(var o in t)"[object Object]"===Object.prototype.toString.call(t[o])?ce()(t[o])!=ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!=t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));return this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0]}},getCurrentNativeViewArgs:function(){var e={};this._getFixed(),this._box=this._getBox();var t=this.id,n=this.nativeViewId,i=this.src,o=this.mode,r=this.autoplay,a=this.muted,s=this.orientation,c=this.objectFit,l=this.minCache,u=this.maxCache,d=this.soundMode,h=this.autoPauseIfNavigate,p=this.autoPauseIfOpenNative,f=this.pictureInPictureMode;try{e=JSON.parse(this.options)}catch(t){console.error("error in native-view options",this.options),e={}}return e=Ke()(e,{id:t,nativeViewId:n,src:i,mode:o,autoplay:r,muted:a,orientation:s,objectFit:c,minCache:l,maxCache:u,soundMode:d,autoPauseIfNavigate:h,autoPauseIfOpenNative:p,pictureInPictureMode:this.getPictureInPictureMode(f),position:this._box,hide:this.hidden,type:"live-player"}),{type:"live-player",nativeViewId:this.nativeViewId,style:this._box,livePlayer:!0,params:e}},_onNativeViewTask:function(e){var t=e.eventName,n=e.detail;if("live_player_objectfit"!=t)this.triggerEvent(t.substr(12),n);else{var i=n.width,o=n.height,r=this.$.container.$$.querySelector("live-video-player");r&&(r.style.width=i+"px",r.style.height=o+"px",r.setAttribute("data-width",i),r.setAttribute("data-height",o))}},getPictureInPictureMode:function(e){return"string"==typeof e?[e]:A()(e)?e:[]},syncLivePlayerStatus:function(e){var t=this;FinChatJSBridge.subscribe("syncLivePlayerStatus_".concat(e,"_mute"),(function(e){t.muted=!t.muted}))}}});var ed=null;function td(e){var t=function(){if("undefined"==typeof Reflect||!It.a)return!1;if(It.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(It()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Et()(e);if(t){var o=Et()(this).constructor;n=It()(i,arguments,o)}else n=i.apply(this,arguments);return At()(this,n)}}function nd(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):nd(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}window.ftparser.registerElement({is:"wx-live-pusher",options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"container",st:{},cl:{v:"wx-live-pusher-container"},a:[],c:[{t:1,n:"div",id:"inner",st:{v:"width: 101%; height: 101%;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",st:{},cl:{v:"wx-live-pusher-slot"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},behaviors:["wx-base","wx-hover","wx-native"],properties:{id:{type:String,value:"",public:!0},url:{type:String,value:"",public:!0,observer:"_updateNativeView"},mode:{type:String,value:"RTC",public:!0,observer:"_updateNativeView"},autopush:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},muted:{type:null,value:null,public:!0,observer:"_updateNativeView"},enableCamera:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},autoFocus:{type:Boolean,value:!0,public:!0,observer:"_updateNativeView"},orientation:{type:String,value:"vertical",public:!0,observer:"_updateNativeView"},beauty:{type:Number,value:0,public:!0,observer:"_updateNativeView"},whiteness:{type:Number,value:0,public:!0,observer:"_updateNativeView"},aspect:{type:String,value:"9:16",public:!0,observer:"_updateNativeView"},minBitrate:{type:Number,value:200,public:!0,observer:"_updateNativeView"},maxBitrate:{type:Number,value:1e3,public:!0,observer:"_updateNativeView"},audioQuality:{type:String,value:"high",public:!0,observer:"_updateNativeView"},waitingImage:{type:String,value:"",public:!0,observer:"_updateNativeView"},waitingImageHash:{type:String,value:"",public:!0,observer:"_updateNativeView"},zoom:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},devicePosition:{type:String,value:"front",public:!0,observer:"_updateNativeView"},mirror:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},remoteMirror:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},localMirror:{type:String,value:"auto",public:!0,observer:"_updateNativeView"},audioReverbType:{type:Number,value:0,public:!0,observer:"_updateNativeView"},enableMic:{type:null,value:null,public:!0,observer:"_updateNativeView"},enableAgc:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},enableAns:{type:Boolean,value:!1,public:!0,observer:"_updateNativeView"},audioVolumeType:{type:String,value:"auto",public:!0,observer:"_updateNativeView"},videoWidth:{type:Number,value:360,public:!0,observer:"_updateNativeView"},videoHeight:{type:Number,value:640,public:!0,observer:"_updateNativeView"},beautyStyle:{type:String,value:"smooth",public:!0,observer:"_updateNativeView"},filter:{type:String,value:"standard",public:!0,observer:"_updateNativeView"},options:{type:String,value:"{}",public:!0},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"}},attached:function(){this.nativeViewId=(new Date).getTime(),this._attachedCb()},detached:function(){this._detachedCb()},created:function(){var e=Ni("LivePusher"),t=e.eventName,n=e.useComponet;this._liveEventName=t,this._useComponet=n,this._enableMic=!0},methods:{_attachedCb:function(){var e=this,t=this._useComponet?"onLivePusherTask":"onNativeViewTask";this._onNativeViewTaskId=ftparser.addListenerToElement(document,t,(function(t){String(t.detail.nativeViewId)===String(e.nativeViewId)&&e._onNativeViewTask(t.detail)}));var n=function(t){e.insertSuccess=!0,e.triggerEvent("initdone",{event:t}),e.findCoverView(e.nativeViewId,{isRoot:!1}),e.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback(),e._updateNativeView()},document.addEventListener("pageReRender",e.__pageReRenderCallback),FinChatJSBridge.publish("livePusherInsert",{id:e.id||"",nativeViewId:e.nativeViewId,useComponet:e._useComponet,cid:e._cid||""}),e.syncLivePusherStatus(e.nativeViewId),ed=e,e._needUpdate&&(e._needUpdate=!1,e._updateNativeView())};if(ed)this.triggerEvent("error",{errMsg:"can insert only one pusher"});else{if(k&&Ii().livePusher){var i=document.createElement("live-video-pusher");return this.$.inner.$$.style.display="none",this.$.container.$$.append(i),i.setAttribute(J("liveVideoPusherId"),this.nativeViewId),i.setAttribute("data",ce()(this.getCurrentNativeViewArgs())),i.getBoundingClientRect(),void FinChatJSBridge.on("onTongcengWidgetReady_"+this.nativeViewId,(function(t){/ok/.test(t.errMsg)&&(e._ready(),n(t))}))}this.insertNativeView(this._liveEventName.insert,this.getCurrentNativeViewArgs(),(function(e){/ok/.test(e.errMsg)&&n(e)}))}},_detachedCb:function(){ftparser.removeListenerFromElement(document,"onNativeViewTask",this._onNativeViewTaskId),ed=null,this.removeNativeView(this._liveEventName.remove,{nativeViewId:this.nativeViewId}),FinChatJSBridge.publish("livePusherRemove",{id:this.id||"",nativeViewId:this.nativeViewId}),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback)},_updateNativeView:function(){if(this.insertSuccess){var e=this.getCurrentNativeViewArgs(),t=this._diff(this.inputArgs,e);this.inputArgs=t,t&&this.updateNativeView(this._liveEventName.update,Ke()(t,{nativeViewId:this.nativeViewId}),(function(e){}))}else this._needUpdate=!0},_diff:function(e,t){!e&&(e={});var n={},i=!1;for(var o in t)"[object Object]"===Object.prototype.toString.call(t[o])?ce()(t[o])!=ce()(e[o])&&(n[o]=t[o],i=!0):e[o]!=t[o]&&(n[o]=t[o],i=!0);return i?n:void 0},getComputedStyle:function(){var e=this.$$,t=window.getComputedStyle(e),n=e.getBoundingClientRect(),i=["Left","Right"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)})),o=["Top","Bottom"].map((function(e){return(Dt()(t["border"+e+"Width"])||0)+(Dt()(t["padding"+e])||0)}));return this._inputFontSize=Dt()(t.fontSize)||16,{width:n.width-i[0]-i[1],height:n.height-o[0]-o[1],left:n.left+i[0]+window.scrollX,top:n.top+o[0]>window.innerHeight?window.innerHeight:n.top+o[0]}},getCurrentNativeViewArgs:function(){var e={};this._getFixed(),this._box=this._getBox();var t=this.id,n=this.url,i=this.mode,o=this.autopush,r=this.muted,a=this.enableCamera,s=this.autoFocus,c=this.orientation,l=this.beauty,u=this.whiteness,d=this.aspect,h=this.minBitrate,p=this.maxBitrate,f=this.audioQuality,v=this.waitingImage,m=this.waitingImageHash,_=this.zoom,g=this.devicePosition,b=this.mirror,y=this.remoteMirror,w=this.localMirror,x=this.audioReverbType,A=this.enableMic,C=this.enableAgc,E=this.enableAns,S=this.audioVolumeType,k=this.videoWidth,T=this.videoHeight,I=this.beautyStyle,N=this.filter;try{e=JSON.parse(this.options)}catch(t){console.error("error in native-view options",this.options),e={}}return"boolean"==typeof r&&(this._enableMic=!r),"boolean"==typeof A&&(this._enableMic=A),e=Ke()(e,{id:t,url:n,mode:i,autopush:o,muted:r,enableCamera:a,autoFocus:s,orientation:c,beauty:l,whiteness:u,aspect:d,minBitrate:h,maxBitrate:p,audioQuality:f,waitingImage:v,waitingImageHash:m,zoom:_,devicePosition:g,mirror:b,remoteMirror:y,localMirror:w,audioReverbType:x,enableMic:this._enableMic,enableAgc:C,enableAns:E,audioVolumeType:S,videoWidth:k,videoHeight:T,beautyStyle:I,filter:N,type:"live-pusher",position:this._box,hide:this.hidden}),{type:"live-pusher",nativeViewId:this.nativeViewId,style:this._box,livePusher:!0,params:e}},_onNativeViewTask:function(e){var t=e.eventName,n=e.detail;this.triggerEvent(t.substr(12),n)},syncLivePusherStatus:function(e){var t=this;FinChatJSBridge.subscribe("syncLivePusherStatus_".concat(e,"_devicePosition"),(function(e){t.devicePosition="back"===t.devicePosition?"front":"back"}))},_hiddenChanged:function(){this._updateNativeView()}}}),n(680);var od=!1,rd=(window.ftparser.registerElement({is:"wx-editor",behaviors:["wx-base"],template:function(e,t,n){return[{t:1,n:"div",a:[],c:[]}]},properties:{placeholder:{type:String,public:!0},readOnly:{type:Boolean,value:!1,public:!0,observer:"_updateReadOnly"},showImgSize:{type:Boolean,value:!1,public:!0},showImgToolbar:{type:Boolean,value:!1,public:!0},showImgResize:{type:Boolean,value:!1,public:!0}},attached:function(){this.editorId=(new Date).getTime();var e=window.__webviewId__+"editor"+this.editorId;this.$$.editorId=this.editorId,this.$$.webviewId=window.__webviewId__,this.register();var t=[];this.readOnly||(this.showImgSize&&t.push("DisplaySize"),this.showImgResize&&t.push("Resize"),this.showImgToolbar&&t.push("Toolbar")),this.quill=new Quill("#"+this.id,{placeholder:this.placeholder,theme:"bubble",modules:{imageResize:{modules:t}}}),this.__onFocus=this.onFocus.bind(this),this.__onBlur=this.onBlur.bind(this),this.__onTouchstart=this.onTouchstart.bind(this),this.__onTouchend=this.onTouchend.bind(this),this.quill.root.addEventListener("focus",this.__onFocus),this.quill.root.addEventListener("blur",this.__onBlur),this.quill.root.addEventListener("touchstart",this.__onTouchstart),this.quill.root.addEventListener("touchend",this.__onTouchend),this.readOnly&&(this.quill.enable(!1),this.quill.blur()),this.init(),this._ready();var n=this;FinChatJSBridge.subscribe("request_editor_actions"+e,(function(t){var i=n.action(t);FinChatJSBridge.publish("response_editor_actions"+e,id(id({},i||{}),{},{event:t.event,errMsg:"response_editor_actions"+e+":"+(i?"ok":"fail")}))})),this.eventHandle()},detached:function(){this.quill.root.removeEventListener("focus",this.__onFocus),this.quill.root.removeEventListener("blur",this.__onBlur)},methods:{register:function(){if(!od){od=!0;var e=Quill.import("blots/block/embed"),t=Quill.import("blots/block"),n=function(e){wt()(n,e);var t=td(n);function n(){return oe()(this,n),t.apply(this,arguments)}return ae()(n)}(e);n.blotName="divider",n.tagName="hr";var i=function(e){wt()(n,e);var t=td(n);function n(){return oe()(this,n),t.apply(this,arguments)}return ae()(n,null,[{key:"formats",value:function(e){return n.tagName.indexOf(e.tagName)+1}}]),n}(t);i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"];var o=window.Quill.import("parchment"),r=o.Scope,a=o.Attributor,s={scope:r.BLOCK},c={scope:r.INLINE};b("margin",s),b("padding",s),b("font",c,["size","style","variant","weight"]);var l=new a.Style("lineHeight","line-height",s),u=new a.Style("textIndent","text-indent",s),d=new a.Style("textDecoration","text-decoration",c),h=new a.Style("letterSpacing","letter-spacing",c),p=new a.Style("wordWrap","word-wrap",s),f=new a.Style("wordBreak","word-break",s),v=new a.Style("overflowWrap","overflow-wrap",s),m=new a.Style("align","text-align",{scope:r.BLOCK,whitelist:["left","center","right","justify"]}),_=new a.Style("direction","direction",{scope:r.BLOCK,whitelist:["rtl"]});Quill.register(l,!0),Quill.register({"formats/overflowWrap":v,"formats/wordWrap":p,"formats/wordBreak":f,"formats/textIndent":u,"formats/textDecoration":d,"formats/letterSpacing":h,"formats/align":m,"formats/direction":_,"formats/divider":n,"formats/header":i})}function g(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function b(e,t,n){var i={};n=n||["left","top","right","bottom"];var o=new a.Style(e,e,t);i["formats/".concat(e)]=o,n.forEach((function(n){var o=new a.Style("".concat(e).concat(g(n)),"".concat(e,"-").concat(n),t);i["formats/".concat(e).concat(g(n))]=o})),Quill.register(i)}},getContextId:function(){return window.__webviewId__+"editor"+this.editorId},onFocus:function(){this.triggerEvent("focus",this.getResultData())},onBlur:function(){this.triggerEvent("blur",this.getResultData())},onTouchstart:function(){(k||N)&&FinChatJSBridge.invoke("disablePullDownRefresh",{webviewIds:[window.__webviewId__]})},onTouchend:function(){(k||N)&&FinChatJSBridge.invoke("enablePullDownRefresh",{webviewIds:[window.__webviewId__]})},eventHandle:function(){var e=this;this.quill.on("text-change",(function(){e.triggerEvent("input",e.getResultData())}))},getResultData:function(){return{delta:this.quill.getContents(),html:this.quill.root.innerHTML,text:this.quill.getText()}},_ready:function(){this.triggerEvent("ready",{id:this.id})},action:function(e){var t=this,n=e.event,i=this.quill,o={},r=i.selection.savedRange,a=i.getFormat(r);try{if("blur"===n)i.blur();else if("clear"===n)i.setContents([]);else if("format"===n){var s=e.name,c=e.value;switch(s){case"list":c="check"===c?"checked"!==a.list&&"unchecked"!==a.list&&"unchecked":a.list===c?null:c,this.quill.format(s,c,window.Quill.sources.USER);break;case"bold":this.bold=!this.bold,i.format(s,this.bold,window.Quill.sources.USER);break;case"italic":this.italic=!this.italic,i.format(s,this.italic?"em":null,window.Quill.sources.USER);break;case"underline":this.underline=!this.underline,i.format(s,!!this.underline||null,window.Quill.sources.USER);break;case"strike":this.strike=!this.strike,i.format(s,this.strike,window.Quill.sources.USER);break;case"ins":this.ins=!this.ins,i.format(s,this.ins,window.Quill.sources.USER);break;case"indent":var l=_()(a.indent||0,10);c="+1"===c?1:-1,"rtl"===a.direction&&(c*=-1),c=l+c,i.format(s,c,window.Quill.sources.USER);break;default:if(a[s]!==c){var u=s;"backgroundColor"===u&&(u="background"),i.format(u,c,window.Quill.sources.USER)}}}else if("getContents"===n)o={delta:i.getContents(),html:i.root.innerHTML,text:i.getText()};else if("getSelectionText"===n){var d=i.selection.savedRange;o.text=i.getText(d.index,d.length)}else if("insertDivider"===n){var h=i.selection.savedRange;this.quill.insertText(h.index,"\n",window.Quill.sources.SILENT),this.quill.insertEmbed(h.index+1,"divider",!0,window.Quill.sources.USER),this.quill.setSelection(h.index+2,window.Quill.sources.SILENT)}else if("insertImage"===n){var p=e.src,f=void 0===p?"":p,v=e.alt,m=void 0===v?"":v,g=e.data,b=void 0===g?{}:g,y=e.width,w=void 0===y?"":y,x=e.height,A=void 0===x?"":x,C=e.extClass,S=void 0===C?"":C,k=E()(b).map((function(e){return"".concat(e,"=").concat(b[e])})).join("&"),T=i.selection.savedRange,I=function(e){i.insertEmbed(T.index,"image",e),i.formatText(T.index,1,"alt",m,window.Quill.sources.SILENT),i.formatText(T.index,1,"width",w,window.Quill.sources.SILENT),i.formatText(T.index,1,"height",A,window.Quill.sources.SILENT),i.formatText(T.index,1,"class",S,window.Quill.sources.SILENT),i.formatText(T.index,1,"data-custom",k,window.Quill.sources.SILENT),i.insertText(T.index+1,"\n",window.Quill.sources.SILENT),i.setSelection(T.index+1,window.Quill.sources.SILENT),i.scrollIntoView(),t.init()};if(/^hyfile:\/\//.test(f)){var N=document.createElement("img");N.setAttribute("crossOrigin","Anonymous"),N.onload=function(){var e=document.createElement("canvas");e.width=N.width,e.height=N.height,e.getContext("2d").drawImage(N,0,0);var t=e.toDataURL("image/png");I(t)},N.src=f}else I(f)}else if("insertText"===n){var P=e.text||"",O=i.selection.savedRange;i.deleteText(O.index,O.length,window.Quill.sources.SILENT),i.insertText(O.index,P,window.Quill.sources.USER),i.setSelection(O.index+P.length,0,window.Quill.sources.SILENT)}else if("redo"===n)i.history.redo();else if("removeFormat"===n){var L=window.Quill.import("parchment");0===r.length?E()(a).forEach((function(e){null!=L.query(e,L.Scope.INLINE)&&i.format(e,!1)})):i.removeFormat(r,window.Quill.sources.USER),this.init()}else"scrollIntoView"===n?i.scrollIntoView():"setContents"===n?(e.html&&(e.html=i.clipboard.convert(e.html)),i.setContents(e.delta||e.html)):"undo"===n&&i.history.undo()}catch(e){o=!1}return this._triggerStatusChange(),o},init:function(){this.bold=!1,this.italic=!1,this.underline=!1,this.strike=!1,this.ins=!1},_updateReadOnly:function(e){this.quill&&this.quill.enable(!e)},_triggerStatusChange:function(){var e=this.lastFormats||{},t=this.quill.selection.savedRange,n=this.quill.getFormat(t);this.lastFormats=n,function(e,t){var n=Ya()(e),i=Ya()(t);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++){var r=n[o];if(e[r]!==t[r])return!1}return!0}(e,n)||this.triggerEvent("statuschange",n)}}}),!1);function ad(e){var t=e.disable;"android"===wd.getPlatform()&&FinChatJSBridge.invoke(t?"disablePullDownRefresh":"enablePullDownRefresh",{webviewIds:[window.__webviewId__]})}function sd(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function cd(e,t){var n=e.parentNode;return!!n&&!(n instanceof ftparser.Element&&n.hasBehavior("wx-movable-area"))&&(!(n instanceof HTMLElement)||n!==document.body&&n!==document)&&(n===t||n===t.$$||n.$$===t||cd(n,t))}function ld(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0,i=t.length;n<i;n++)if(e===t[n].$$||cd(e,t[n]))return t[n]}window.ftparser.registerElement({is:"wx-camera",behaviors:["wx-base","wx-native"],options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-camera-container"},st:{},a:[],c:[{t:1,n:"div",id:"inner",st:{v:"width: 101%; height: 101%;"},a:[],c:[]}]},{t:1,n:"div",id:"slot",cl:{v:"wx-camera-slot"},st:{},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]},properties:{mode:{type:String,value:"normal",public:!0},resolution:{type:String,value:"medium",public:!0},devicePosition:{type:String,value:"back",public:!0,observer:"_updateDevicePosition"},flash:{type:String,value:"auto",public:!0,observer:"_updateFlash"},frameSize:{type:String,value:"medium",public:!0,observer:"_updateFrameSize"},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChanged"}},attached:function(){if(this.cameraId="camera","scanCode"===this.mode&&(this.cameraId="scancamera"),this._nativeId=this.cameraId,this._createdTimeStamp=v()(),rd)return console.warn("一个页面只能插入一个 `camera`。");this.insertCamera()},detached:function(){rd=!1,FinChatJSBridge.publish("onCameraEvent",{cname:"removeCamera",webviewId:window.__webviewId__,cid:this._nativeId}),this.__pageReRenderCallback&&document.removeEventListener("pageReRender",this.__pageReRenderCallback)},methods:{insertCamera:function(){var e=this,t=function(t){e.findCoverView(e.cameraId,{}),e.addEventListener(),e.triggerEvent("initdone",{maxZoom:t.maxZoom||""}),e.__pageReRenderCallback=function(){e._getFixed(),e._pageReRenderCallback()},document.addEventListener("pageReRender",e.__pageReRenderCallback),new ResizeObserver((function(t,n){e.__pageReRenderCallback()})).observe(e.$$),e._ready(),FinChatJSBridge.publish("onCameraEvent",{cname:"cameraInsertDone",webviewId:window.__webviewId__,cid:e._nativeId})},n=this.getCameraInfo();if(rd=!0,k&&Ii().camera){var i=document.createElement("camera");return this.$.inner.$$.style.display="none",this.$.container.$$.append(i),i.setAttribute("data",ce()(n)),i.setAttribute(J("cameraId"),this.cameraId),i.getBoundingClientRect(),void FinChatJSBridge.on("onTongcengWidgetReady_"+this.cameraId,(function(n){-1!==n.errMsg.indexOf(":ok")?t(n):(e.triggerEvent("error",{errMsg:n.errMsg||""}),rd=!1)}))}this.insertNativeView("insertCamera",n,(function(n){-1!==n.errMsg.indexOf(":ok")?t(n):(e.triggerEvent("error",{errMsg:n.errMsg||""}),rd=!1)}))},getCameraInfo:function(){this._getFixed(),this._box=this._getBox();var e={cameraId:this.cameraId,position:this._box,hide:this.hidden,mode:this.mode,devicePosition:"scanCode"===this.mode?"back":this.devicePosition,flash:this.flash,scanArea:this.scanArea,resolution:this.resolution,webviewId:window.__webviewId__,fixed:this._fixed,frameSize:this.frameSize};return"scanCode"===this.mode&&"on"===this.flash&&(e.flash="torch"),e},_delay:function(e,t,n){this._deferred.push({callback:e,args:[t,n]})},addEventListener:function(){var e=this;"scanCode"===this.mode&&FinChatJSBridge.on("onCameraScanCode",(function(t){e.triggerEvent("scancode",t)})),FinChatJSBridge.on("onCameraInitDone",(function(t){e.triggerEvent("initdone",{maxZoom:t.maxZoom||""})})),FinChatJSBridge.subscribe("onCameraStop",(function(t){e.triggerEvent("stop",{errMsg:t.errMsg||""})})),FinChatJSBridge.subscribe("onCameraError",(function(t){e.triggerEvent("error",{errMsg:t.errMsg||""})}))},_updateDevicePosition:function(){var e=this.devicePosition;"scanCode"===this.mode&&(console.warn("For developer:'<camera/> cannot change device-position in 'scanCode' mode"),e="back"),this._updateCamera("devicePosition",{data:e})},_updateFlash:function(){var e=this.flash;"scanCode"===this.mode&&"on"===e&&(e="torch"),this._updateCamera("flash",{data:e})},_updateFrameSize:function(){this._updateCamera("frameSize",{data:this.frameSize})},_updateCamera:function(e,t){k&&Ii().camera&&"updateCamera"===e||this.cameraId&&FinChatJSBridge.invoke("updateCamera",Ke()({cname:e,webviewId:window.__webviewId__,cid:this._nativeId},t))},_hiddenChanged:function(e){if(e&&FinChatJSBridge.publish("onCameraEvent",{cname:"stopCamera",webviewId:window.__webviewId__}),k){var t=Ii().camera;this._updateCamera(t?"updateTCCamera":"updateCamera",{position:t?void 0:this._getBox(),hide:this.hidden})}else T&&FinChatJSBridge.invoke("updateCamera",{webviewId:window.__webviewId__,cid:this._nativeId,hide:e})},_updatePosition:function(){this._updateCamera("updateCamera",{position:this._getBox()})}}}),window.ftparser.registerElement({is:"wx-movable-area",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-positioning-container"],properties:{scaleArea:{type:Boolean,value:!1,public:!0}},listeners:{"this.movableViewChanged":"_movableViewChanged"},created:function(){this._items=[],this.gapV={x:null,y:null},this.pinchStartLen=null,this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._onPageReRender=this._onPageReRender.bind(this),ftparser.Observer.create((function(e){"class"!==e.propertyName&&"style"!==e.propertyName||this._performUpdateIfNecessary()})).observe(this,{properties:!0})},attached:function(){this._movableViewChanged(),document.addEventListener("pageReRender",this._onPageReRender),ftparser.addListenerToElement(this,"touchstart",this._handleTouchStart),ftparser.addListenerToElement(this,"touchmove",this._handleTouchMove),ftparser.addListenerToElement(this,"touchend",this._handleTouchEnd)},detached:function(){this._items=[],document.removeEventListener("pageReRender",this._onPageReRender),ftparser.removeListenerFromElement(this,"touchstart",this._handleTouchStart),ftparser.removeListenerFromElement(this,"touchmove",this._handleTouchMove),ftparser.removeListenerFromElement(this,"touchend",this._handleTouchEnd)},methods:{_movableViewChanged:function(){var e=this._views=[];return function t(n){if(n.childNodes)for(var i=0;i<n.childNodes.length;i++){var o=n.childNodes[i];o instanceof ftparser.Element&&(o instanceof ftparser.Component&&o.hasBehavior("wx-movable-view")?e.push(o):t(o))}}(this),this._updateArea(),!1},_handleTouchStart:function(e){var t=e.touches;if(t&&t.length>1){ad({disable:!0});var n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(this.pinchStartLen=sd(n),this.gapV=n,!this.scaleArea){var i=ld(t[0].target,this._views),o=ld(t[1].target,this._views);this._scaleMovableView=i&&i===o?i:null}}},_handleTouchMove: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};null!==this.gapV.x&&this.pinchStartLen>0&&this._updateScale(sd(n)/this.pinchStartLen),this.gapV=n}},_handleTouchEnd:function(e){var t=e.touches;t&&t.length||(ad({disable:!1}),e.changedTouches&&(this.gapV.x=0,this.gapV.y=0,this.pinchStartLen=null,this.scaleArea?this._views.forEach((function(e){e.endScale()})):this._scaleMovableView&&this._scaleMovableView.endScale()))},_updateScale:function(e){e&&1!==e&&(this.scaleArea?this._views.forEach((function(t){t.setScale(e)})):this._scaleMovableView&&this._scaleMovableView.setScale(e))},_updateArea:function(){var e=this;if(!this.__attached)return!1;var t=this._getWH();return this._height=t.height,this._width=t.width,this._views.forEach((function(t){t._setParent(e)})),!0},_getWH:function(){var e=window.getComputedStyle(this.$$),t=this.$$.getBoundingClientRect(),n=["Left","Right"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])})),i=["Top","Bottom"].map((function(t){return Dt()(e["border"+t+"Width"])+Dt()(e["padding"+t])}));return{height:t.height-i[0]-i[1],width:t.width-n[0]-n[1]}},_performUpdateIfNecessary:function(){var e=this.$$.getBoundingClientRect()||{},t=this.$$.offsetWidth,n=this.$$.offsetHeight,i=e.width!==t||e.height!==n;t===this._offsetWidth&&n===this._offsetHeight||this._updateArea(),this._views&&this._views.forEach((function(e){"function"==typeof e._setTransformed&&e._setTransformed(i)})),this._offsetWidth=t,this._offsetHeight=n},_onPageReRender:function(){this._performUpdateIfNecessary()}}});var ud=/[+-]?\d+(\.\d+)?rpx/,dd=/[+-]?\d+(\.\d+)?px/;function hd(e,t,n){this._springX=new tl(e,t,n),this._springY=new tl(e,t,n),this._springScale=new tl(e,t,n),this._startTime=0}function pd(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function fd(e){return e.match(ud)&&(e=wx.transformRpx("%%?"+e+"?%%")),e.match(dd)&&(e=Dt()(e,10)),"number"!=typeof(e=+e)||isNaN(e)?0:e}function vd(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}function md(){}hd.prototype.setEnd=function(e,t,n,i){var o=(new Date).getTime();this._springX.setEnd(e,i,o),this._springY.setEnd(t,i,o),this._springScale.setEnd(n,i,o),this._startTime=o},hd.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)}},hd.prototype.done=function(){var e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},hd.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)},pd.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()},pd.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},pd.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._t<e&&(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}},pd.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}},pd.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}},pd.prototype.dt=function(){return-this._x_v/this._x_a},pd.prototype.done=function(){var e=this._lastDt===this._t;return this._lastDt=null,e},pd.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},pd.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},md.prototype.x=function(e){return Math.sqrt(e)};var _d=!1;function gd(e){_d||(_d=!0,requestAnimationFrame((function(){"function"==typeof e&&e(),_d=!1})))}function bd(e,t,n){var i={id:0,cancelled:!1};return function t(n,i,o,r){if(!n||!n.cancelled){o(i);var a=e.done();a||n.cancelled||(n.id=requestAnimationFrame(t.bind(null,n,i,o,r))),a&&"function"==typeof r&&r(i)}}(i,e,t,n),{cancel:function(e){e&&(e.id&&cancelAnimationFrame(e.id),e.cancelled=!0)}.bind(null,i),model:e}}window.ftparser.registerElement({is:"wx-movable-view",template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base","wx-touchtrack","wx-positioning-container"],properties:{x:{value:0,public:!0,filter:"_setX"},y:{value:0,public:!0,filter:"_setY"},direction:{type:String,value:"none",public:!0},outOfBounds:{type:Boolean,value:!1,public:!0},inertia:{type:Boolean,value:!1,public:!0},friction:{type:Number,value:2,public:!0},damping:{type:Number,value:20,public:!0},disabled:{type:Boolean,value:!1,public:!0,observer:"_disabled"},scale:{type:Boolean,value:!1,public:!0},scaleMin:{type:Number,value:.5,public:!0,observer:"_setScaleMinOrMax"},scaleMax:{type:Number,value:10,public:!0,observer:"_setScaleMinOrMax"},scaleValue:{type:Number,value:1,public:!0,filter:"_setScaleValue"},animation:{type:Boolean,value:!0,public:!0}},created:function(){this.touchtrack(this,"_onTrack"),this._xMove=!1,this._yMove=!1,this._areaWidth=0,this._areaHeight=0,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._minX=0,this._minY=0,this._maxX=0,this._maxY=0,this._STD=new hd(1,9*Math.pow(this.damping,2)/40,this.damping),this._friction=new pd(1,this.friction),this._declineX=new md,this._declineY=new md,this._touchInfo={historyX:[0,0],historyY:[0,0],historyT:[0,0]},ftparser.Observer.create((function(e){"class"===e.propertyName?(this._updateWH(),this._updateBoundary(),this._revise()):"style"===e.propertyName&&(this._setTransform(this._translateX,this._translateY,this._scale,"",!0,!1),this.$$.style.transformOrigin="center",this._updateWH(),this._updateBoundary(),this._revise())})).observe(this,{properties:!0})},attached:function(){this.$$.setAttribute("aria-dropeffect","move"),this.$$.setAttribute("aria-label","可移动"),this.triggerEvent("movableViewChanged",void 0,{bubbles:!0}),this._xMove=!("horizontal"!==this.direction&&"all"!==this.direction),this._yMove=!("vertical"!==this.direction&&"all"!==this.direction),this.friction<=0&&(this.friction=2),this._friction.reconfigure(1,this.friction),this._STD.reconfigure(1,9*Math.pow(this.damping,2)/40,this.damping),this.$$.style.transformOrigin="center"},detached:function(){this.triggerEvent("movableViewChanged",void 0,{bubbles:!0})},methods:{_disabled:function(e){!1===e&&this._handleTouchStart()},_setX:function(e){return"string"==typeof e?e=fd(e):"number"!=typeof e&&(e=0),this._xMove?e+this._scaleOffset.x===this._translateX?this._translateX:(this._SFA&&(this._SFA=this._SFA.cancel()),this._animationTo(e+this._scaleOffset.x,this.y+this._scaleOffset.y,this._duringScaleValueAnimation?this.scaleValue:this._scale),e):e},_setY:function(e){return"string"==typeof e?e=fd(e):"number"!=typeof e&&(e=0),this._yMove?e+this._scaleOffset.y===this._translateY?this._translateY:(this._SFA&&(this._SFA=this._SFA.cancel()),this._animationTo(this.x+this._scaleOffset.x,e+this._scaleOffset.y,this._duringScaleValueAnimation?this.scaleValue:this._scale),e):e},_setScaleMinOrMax:function(){if(!this.scale)return!1;this._updateScale(this._scale,!0),this._updateOldScale(this._scale)},_setScaleValue:function(e){var t=this;if(this.scale){var n=this._adjustScale(e);return this._duringScaleValueAnimation=!0,this._updateScale(n,!0,(function(){t._duringScaleValueAnimation=!1})),this._updateOldScale(n),n}return!1},_handleTouchStart:function(){this._isScaling||this.disabled||(this._yMove&&ad({disable:!0}),this._FA&&(this._FA=this._FA.cancel()),this._SFA&&(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.$$.style.willChange="transform",this._checkCanMove=null,this._firstMoveDirection=null,this._isTouching=!0)},_handleTouchMove:function(e){var t=this;if(!this._isScaling&&!this.disabled&&this._isTouching){var n=this._translateX,i=this._translateY;if(null===this._firstMoveDirection&&(this._firstMoveDirection=Math.abs(e.detail.dx/e.detail.dy)>1?"htouchmove":"vtouchmove"),this._xMove&&(n=e.detail.dx+this._baseX,this._touchInfo.historyX.shift(),this._touchInfo.historyX.push(n),this._yMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dx/e.detail.dy)<=1)),this._yMove&&(i=e.detail.dy+this._baseY,this._touchInfo.historyY.shift(),this._touchInfo.historyY.push(i),this._xMove||null!==this._checkCanMove||(this._checkCanMove=Math.abs(e.detail.dy/e.detail.dx)<=1)),this._touchInfo.historyT.shift(),this._touchInfo.historyT.push(e.detail.timeStamp),!this._checkCanMove){e.preventDefault();var o="touch";n<this._minX?n=this.outOfBounds?(o="touch-out-of-bounds",this._minX-this._declineX.x(this._minX-n)):this._minX:n>this._maxX&&(n=this.outOfBounds?(o="touch-out-of-bounds",this._maxX+this._declineX.x(n-this._maxX)):this._maxX),i<this._minY?i=this.outOfBounds?(o="touch-out-of-bounds",this._minY-this._declineY.x(this._minY-i)):this._minY:i>this._maxY&&(i=this.outOfBounds?(o="touch-out-of-bounds",this._maxY+this._declineY.x(i-this._maxY)):this._maxY),gd((function(){t._setTransform(n,i,t._scale,o)}))}this.triggerEvent(this._firstMoveDirection,{},{originalEvent:e,bubbles:!1,capturePhase:!1,composed:!0,extraFields:{touches:e.touches||{},changedTouches:e.changedTouches||{}}})&&e.stopPropagation()}},_handleTouchEnd:function(){var e=this;if(!this._isScaling&&!this.disabled&&this._isTouching&&(this.$$.style.willChange="auto",this._yMove&&ad({disable:!1}),this._isTouching=!1,!this._checkCanMove&&!this._revise("out-of-bounds")&&this.inertia)){var t=1e3*(this._touchInfo.historyX[1]-this._touchInfo.historyX[0])/(this._touchInfo.historyT[1]-this._touchInfo.historyT[0]),n=1e3*(this._touchInfo.historyY[1]-this._touchInfo.historyY[0])/(this._touchInfo.historyT[1]-this._touchInfo.historyT[0]);this._friction.setV(t,n),this._friction.setS(this._translateX,this._translateY);var i=this._friction.delta().x,o=this._friction.delta().y,r=i+this._translateX,a=o+this._translateY;r<this._minX?(r=this._minX,a=this._translateY+(this._minX-this._translateX)*o/i):r>this._maxX&&(r=this._maxX,a=this._translateY+(this._maxX-this._translateX)*o/i),a<this._minY?(a=this._minY,r=this._translateX+(this._minY-this._translateY)*i/o):a>this._maxY&&(a=this._maxY,r=this._translateX+(this._maxY-this._translateY)*i/o),this._friction.setEnd(r,a),this._FA=bd(this._friction,(function(){var t=e._friction.s(),n=t.x,i=t.y;e._setTransform(n,i,e._scale,"friction")}),(function(){e._FA&&(e._FA=e._FA.cancel())}))}},_onTrack:function(e){switch(e.detail.state){case"start":this._handleTouchStart(e);break;case"move":this._handleTouchMove(e);break;case"end":this._handleTouchEnd(e)}},_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(e){this._FA&&(this._FA=this._FA.cancel()),this._SFA&&(this._SFA=this._SFA.cancel());var t=this.scale?this.scaleValue:1;this._parentArea=e,this._areaWidth=this._parentArea._width||0,this._areaHeight=this._parentArea._height||0,this._updateOffset(),this._updateWH(t),this._updateBoundary(),this._translateX=this.x+this._scaleOffset.x,this._translateY=this.y+this._scaleOffset.y;var n=this._getLimitXY(this._translateX,this._translateY),i=n.x,o=n.y;this._setTransform(i,o,t,"",!0),this._updateOldScale(t)},_updateOffset:function(){function e(t,n,i){if(t===n)return 0;var o=t[i];return t.offsetParent?o+=e(t.offsetParent,n,i):0}this._offset.x=e(this.$$,this._parentArea.$$,"offsetLeft"),this._offset.y=e(this.$$,this._parentArea.$$,"offsetTop")},_updateWH:function(e){e=e||this._scale,e=this._adjustScale(e);var t=this.$$.getBoundingClientRect();this._width=t.width/this._scale,this._height=t.height/this._scale;var n=this._width*e,i=this._height*e;this._scaleOffset.x=(n-this._width)/2,this._scaleOffset.y=(i-this._height)/2},_updateBoundary:function(){var e=0-this._offset.x+this._scaleOffset.x,t=this._areaWidth-this._width-this._offset.x-this._scaleOffset.x;this._minX=Math.min(e,t),this._maxX=Math.max(e,t);var n=0-this._offset.y+this._scaleOffset.y,i=this._areaHeight-this._height-this._offset.y-this._scaleOffset.y;this._minY=Math.min(n,i),this._maxY=Math.max(n,i)},_beginScale:function(){this._isScaling=!0},endScale:function(){this._isScaling=!1,this._updateOldScale(this._scale)},setScale:function(e){this.scale&&(e*=this._oldScale,this._beginScale(),this._updateScale(e))},_setTransformed:function(e){this._isTransformed=e},_updateScale:function(e,t,n){var i=this;if(this.scale){e=this._adjustScale(e),this._isTransformed||(this._updateWH(e),this._updateBoundary());var o=this._getLimitXY(this._translateX,this._translateY),r=o.x,a=o.y;t?this._animationTo(r,a,e,"",!0,!0,n):gd((function(){i._setTransform(r,a,e,"",!0,!0)}))}},_updateOldScale:function(e){this._oldScale=e},_adjustScale:function(e){var t=Math.max(.5,this.scaleMin,e);return Math.min(10,this.scaleMax,t)},_animationTo:function(e,t,n,i,o,r,a){var s=this;this._FA&&(this._FA=this._FA.cancel()),this._SFA&&(this._SFA=this._SFA.cancel()),this._xMove||(e=this._translateX),this._yMove||(t=this._translateY),this.scale||(n=this._scale);var c=this._getLimitXY(e,t);e=c.x,t=c.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=bd(this._STD,(function(){var e=s._STD.x();s._setTransform(e.x,e.y,1===n?1:e.scale,i,o,r)}),(function(){s._SFA&&(s._SFA=s._SFA.cancel()),a&&"function"==typeof a&&a()}))):this._setTransform(e,t,n,i,o,r)},_revise:function(e){var t=this._getLimitXY(this._translateX,this._translateY),n=t.x,i=t.y,o=t.outOfBounds;return o&&this._animationTo(n,i,this._scale,e),o},_setTransform:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;null!==e&&"NaN"!==e.toString()&&"number"==typeof e||(e=this._translateX||0),null!==t&&"NaN"!==t.toString()&&"number"==typeof t||(t=this._translateY||0),e=Number(e.toFixed(1)),t=Number(t.toFixed(1)),n=Number(n.toFixed(3));var a=vd(e,this._scaleOffset.x),s=vd(t,this._scaleOffset.y);e===this._translateX&&t===this._translateY||o||this.triggerEvent("change",{x:a,y:s,source:i}),this.scale||(n=this._scale),n=+(n=this._adjustScale(n)).toFixed(3),r&&n!==this._scale&&this.triggerEvent("scale",{scale:n,x:a,y:s});var c="translateX("+e+"px) translateY("+t+"px) translateZ(0px) scale("+n+")";this.animationStyle={transform:c},this.$$.style.transform=c,this.$$.style.webkitTransform=c,this._translateX=e,this._translateY=t,this._scale=n}}});var yd=!1;window.ftparser.registerElement({is:"wx-page-container",template:function(e,t,n){return[{t:1,n:"div",cl:{v:"pagecontainer"},a:[],c:[{t:1,n:"div",id:"weuioverlay",cl:{v:"weui-overlay"},a:[],c:[]},{t:1,n:"div",id:"content",cl:{v:"content"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},behaviors:["wx-base"],properties:{show:{type:Boolean,value:!1,public:!0,observer:"_showChange"},hidden:{type:Boolean,value:!1,public:!0,observer:"_hiddenChange"},position:{type:String,value:"bottom",public:!0},duration:{type:Number,value:300,public:!0},overlay:{type:Boolean,value:!0,public:!0},round:{type:Boolean,value:!1,public:!0,observer:"roundChange"},overlayStyle:{type:String,value:"",public:!0},customStyle:{type:String,value:"",public:!0},zIndex:{type:Number,value:100,public:!0},closeOnSlideDown:{type:Boolean,value:!1,public:!0,observer:"closeOnSlideDownChange"}},shares:[],hasShareElement:!1,touchStartTime:0,attached:function(){var e=this;if(yd)return console.warn("一个页面只能插入一个 `page-container`。");yd=this._id=Math.random(),this.touchStartTime=0,this.initshowShareElement(),this.show&&this.animationShow(),this.$.weuioverlay.onclick=function(t){t.stopPropagation(),e.updateShow()&&e.triggerEvent("clickoverlay",{})},FinChatJSBridge.on("closePageContainer",(function(){e.updateShow()})),this._ready=!0,this.closeOnSlideDownChange(this.closeOnSlideDown),this._showTag=!1},detached:function(){this.isOnce(this._id,this._ready)&&(yd=!1,this._ready=!1)},methods:{closeOnSlideDownChange:function(e){if(!e)return this.$.content.removeEventListener("touchstart",this.bindTouchstart),void this.$.content.removeEventListener("touchend",this.bindTouchend);this.$.content.addEventListener("touchstart",this.bindTouchstart.bind(this)),this.$.content.addEventListener("touchend",this.bindTouchend.bind(this))},bindTouchstart:function(e){this.closeOnSlideDown&&(this.touchStartTime=e.changedTouches[0].pageY)},bindTouchend:function(e){var t=this.touchStartTime-e.changedTouches[0].pageY;this.closeOnSlideDown&&t<0&&this.show&&this.updateShow()},initshowShareElement:function(){var e=this.$.content.querySelectorAll("wx-share-element");e.length&&(this.hasShareElement=!0,e[0].setAttribute("is-page-container",!0))},_showChange:function(e){this.isOnce(this._id,this._ready)&&(Ir.remove("wx-page-container .content"),e?this.animationShow():this.animationHide())},isOnce:function(e,t){return!(!yd||yd!==e||!t)},roundChange:function(e){if(this.isOnce(this._id,this._ready)){var t=this.$.content;e?this.setRound(t,this.position):t.style.borderRadius=null}},setRound:function(e,t){if(this.round)switch(t){case"top":e.style.borderRadius="0 0 20px 20px";break;case"bottom":e.style.borderRadius="20px 20px 0 0"}},getAnimByPos:function(e,t,n){var i={},o=e.getClientRects()[0];switch(t){case"top":e.style.left="0px",e.style.top="0px",i={top:["-".concat(o.height,"px"),"0px"]};break;case"bottom":e.style.left="0px",e.style.bottom="0px",i={bottom:["-".concat(o.height,"px"),"0px"]};break;case"center":e.style.top="0px",e.style.height="100%",i={opacity:["0.0","1.0"]};break;case"right":e.style.top="0px",e.style.height="100%",i={left:["100%","0%"]}}if("hide"===n){var r=E()(i)[0];i[r]=i[r].reverse()}return this.hidden&&(this.$$.style.display="none"),i},animationHide:function(){var e=this,t=this.$.content;e.setOverlay(e.$.weuioverlay,!1,e.overlayStyle);var n=!1;Ir(Ke()({targets:"wx-page-container .content",duration:e.duration,easing:this.getEasingByFun(this.easing),begin:function(){n=!0,e.triggerEvent("beforeleave",{})},complete:function(){n||e.triggerEvent("beforeleave",{}),e.triggerEvent("leave",{}),e.triggerEvent("afterleave",{}),this.show||(e.$$.style.display="none",e._showTag=!1)}},e.getAnimByPos(t,e.position,"hide"))),this.show=!1,FinChatJSBridge.invoke("pageContainerState",{show:!1,hide:this.hidden,webviewId:window.__webviewId__,closeOnSlideDown:this.closeOnSlideDown},(function(){})),this.ShareElementAnim("hide")},_hiddenChange:function(){!this.hidden&&this.show?this.$$.style.display="block":this.hidden&&this.show&&(this.$$.style.display="none"),FinChatJSBridge.invoke("pageContainerState",{hide:this.hidden,show:this.show,webviewId:window.__webviewId__},(function(){}))},animationShow:function(){var e=this;this.$$.style.display="block";var t=this.$.content;this.setOverlay(this.$.weuioverlay,this.overlay,this.overlayStyle),t.style="z-index: ".concat(this.zIndex,"; ").concat(this.customStyle),this.setRound(t,this.position),Ir(Ke()({targets:"wx-page-container .content",duration:this.duration,easing:this.getEasingByFun(this.easing),begin:function(){var t=setTimeout((function(){e._showTag=!0,clearTimeout(t)}),e.duration/3);e.triggerEvent("beforeenter",{}),e.triggerEvent("enter",{})},complete:function(){e._showTag=!0,e.triggerEvent("afterenter",{})}},e.getAnimByPos(t,e.position,"show"))),this.show=!0,FinChatJSBridge.invoke("pageContainerState",{show:!0,hide:this.hidden,webviewId:window.__webviewId__,closeOnSlideDown:this.closeOnSlideDown},(function(){})),this.showShareElement()},setOverlay:function(e,t,n){var i=["0.0","1.0"],o="ease-in";Ir.remove("wx-page-container .weui-overlay"),t?e.style="display: block; "+n:(i.reverse(),o="ease-out"),Ir(Ke()({targets:"wx-page-container .weui-overlay",duration:this.duration,easing:this.getEasingByFun(o),opacity:i,complete:function(){"ease-out"===o&&(e.style.display="none")}}))},showShareElement:function(){var e=this;this.shares=[];var t=setTimeout((function(){var n=document.body.querySelectorAll('wx-share-element[aria-transform="true"]');if(n.length&&e.hasShareElement){for(var i=n[0].getAttribute("is-page-container"),o=n.length/2,r=n.length;o;)o--,r--,i?e.ShareElementAnim("show",n[r],n[o]):e.ShareElementAnim("show",n[o],n[r]);clearTimeout(t)}}),10)},ShareElementAnim:function(e,t,n){if("hide"!==e){var i=t.getClientRects()[0],o=n.getClientRects()[0],r=n.getAttribute("duration")||300,a=this.getEasingByFun(n.getAttribute("easing-function"));this.shares.push({source:t,targetInfo:o,sourceInfo:i,easing:a});var s={targets:n,duration:r,translateX:[i.x-o.x,0],translateY:[i.y-o.y,0],easing:a};Ir(s)}else for(var c=0;this.shares.length>c;){var l=this.shares[c],u=l.targetInfo,d=l.sourceInfo,h=l.source,p=l.easing,f={targets:h,duration:300,translateX:[u.x-d.x,0],translateY:[u.y-d.y,0],easing:p};Ir(f),c++}},getEasingByFun:function(e){switch(e&&""!==e||(e="easeOutQuad"),e){case"ease-out":e="easeOutQuad";break;case"ease-in":e="easeInQuad"}return e},updateShow:function(){return!(!this.show||!this._showTag||(this.show=!1,0))}}}),window.ftparser.registerElement({is:"wx-share-element",behaviors:["wx-base"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{key:{type:String,public:!0},transform:{type:Boolean,value:!1,public:!0},duration:{type:Number,value:300,public:!0},easingFunction:{type:String,value:"ease-out",public:!0}}}),window.ftparser.registerElement({is:"wx-webrtc-video",template:function(e,t,n){return[{t:1,n:"div",id:"container",cl:{v:"wx-webrtc-video"},a:[],c:[{t:1,n:"div",id:"inner",cl:{v:"wx-webrtc-video-inner"},a:[],c:[]}]}]},behaviors:["wx-base","wx-native"],properties:{id:{type:String,public:!0},src:{type:String,public:!0,observer:"streamIdChange"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"}},attached:function(){this._videoId=this._nativeId,this.id=this.id||"dom-id-".concat(this._videoId),this._box=this._getBox(),this.insertNativeView("insertWebRTCVideo",{domId:this.id,videoPlayerId:this._videoId,src:this.src,position:this._box,muted:this.muted},(function(e){}))},detached:function(){this.removeNativeView("removeWebRTCVideo",{domId:this.id,videoPlayerId:this._videoId})},methods:{_update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isReady){this._box=this._getBox();var t={domId:this.id,position:this._box,videoPlayerId:this._videoId};t=Ke()(t,e),this.updateNativeView("updateWebRTCVideo",t,(function(e){}))}else this._deferred.push({callback:"_update",args:[e]})},_updatePosition:function(){this._update({position:this._box})},mutedChanged:function(e){this._update({muted:e})},streamIdChange:function(){this._update({src:this.src})}}}),window.ftparser.registerElement({is:"wx-webrtc-audio",template:function(e,t,n){return[{t:1,n:"div",id:"main",cl:{v:"wx-webrtc-audio"},a:[],c:[{t:1,n:"div",cl:{v:"inner"},a:[],c:[]}]}]},behaviors:["wx-base","wx-native"],properties:{id:{type:String,public:!0},src:{type:String,public:!0,observer:"streamIdChange"},muted:{type:Boolean,value:!1,public:!0,observer:"mutedChanged"}},attached:function(){var e=this;this._audioId=this._nativeId,this.id=this.id||"dom-id-".concat(this._audioId),this.insertNativeView("insertWebRTCAudio",{domId:this.id,audioPlayerId:this._audioId,src:this.src,muted:this.muted},(function(t){e._isReady=!0}))},detached:function(){this.removeNativeView("removeWebRTCAudio",{domId:this.id,audioPlayerId:this._audioId})},methods:{_update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isReady){var t={domId:this.id,audioPlayerId:this._audioId};t=Ke()(t,e),this.updateNativeView("updateWebRTCAudio",t,(function(e){}))}else this._deferred.push({callback:"_update",args:[e]})},mutedChanged:function(e){this._update({muted:e})},streamIdChange:function(){this._update({src:this.src})}}}),window.ftparser.registerElement({is:"wx-keyboard-accessory",behaviors:["wx-base","wx-native"],template:function(e,t,n){return[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]},properties:{position:{value:0},hidden:{type:Boolean,value:!1,public:!0,observer:"handleUpdateKeyboard"}},attached:function(){var e=this;this._kbaid=this._nativeId,this.keyboardDidShow=!1,this.hasInserted=!1,this.observer=new MutationObserver((function(t,n){t.forEach((function(t){"style"===t.attributeName&&e.handleUpdateKeyboard()}))})),this.observer.observe(this.$$,{attributes:!0,childList:!0,subtree:!0})},detached:function(){this.handleHideKeyboard()},methods:{initKeyboardAccessory:function(){var e=this;setTimeout((function(){e.handleShowKeyboard()}))},handleShowKeyboard:function(){var e=this;if(!(this._inLandscapeOrientation()||this.keyboardDidShow||this.hasInserted)){var t=this._getBox(),n=t.width,i=t.height;this.insertNativeView("insertKeyboardAccessory",{id:this._kbaid,inputId:this.parentNode._inputId,position:+this.position,hide:this.hidden,style:{width:n,height:i}},(function(t){e.findCoverView(e._kbaid,{}),e.hasInserted=!0})),this.keyboardDidShow=!0}},handleUpdateKeyboard:function(){if(!this._inLandscapeOrientation()&&this.hasInserted){var e=this._getBox(),t=e.width,n=e.height;this.insertNativeView("updateKeyboardAccessory",{id:this._kbaid,inputId:this.parentNode._inputId,position:+this.position,hide:this.hidden,style:{width:t,height:n}},(function(e){}))}},handleHideKeyboard:function(){!this._inLandscapeOrientation()&&this.hasInserted&&(this.insertNativeView("removeKeyboardAccessory",{inputId:this.parentNode._inputId,id:this._kbaid},(function(e){})),this.keyboardDidShow=!1)},_inLandscapeOrientation:function(){return window.innerWidth>window.innerHeight}}}),window.registerCustomJSCompnent=function(e){window[window.__curCustomJSCompnentId]=function(){return function(e){var t={data:(0,ftparser.dataUtils.deepCopy)(e.data),created:e.created,attached:e.attached,moved:e.moved,detached:e.detached,propChange:e.propChange};return za()(t,{constructor:{value:t,writable:!0,configurable:!0}})}(e)}},window.ftparser.registerElement({is:"wx-custom-js-comp",template:function(e,t,n){return[{t:1,n:"div",v:!0,sn:"",a:[],c:[]}]},behaviors:["wx-base"],properties:{compId:{type:String,public:!0},prop:{type:Object,public:!0,observer:"propChange"}},attached:function(){var e=this;return s()(l.a.mark((function t(){var n,i,o,r,a;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.compId){t.next=2;break}return t.abrupt("return");case 2:if(n=window.__wxConfig__.customJSComp[e.compId]){t.next=5;break}return t.abrupt("return");case 5:if(window[e.compId]){t.next=23;break}if(!(A()(n.scripts)&&n.scripts.length>0)){t.next=15;break}window.__curCustomJSCompnentId=e.compId,i=l.a.mark((function t(){var i,r;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getRealRoute(n.scripts[o]),r=document.createElement("script"),t.next=4,new d.a((function(e){i?(r.onload=function(t){e()},r.setAttribute("charset","utf-8"),r.setAttribute("type","text/javascript"),r.src=i):e(),document.head.appendChild(r)}));case 4:case"end":return t.stop()}}),t)})),o=0;case 10:if(!(o<n.scripts.length)){t.next=15;break}return t.delegateYield(i(),"t0",12);case 12:o++,t.next=10;break;case 15:if(!(A()(n.styles)&&n.styles.length>0)){t.next=23;break}r=l.a.mark((function e(){var t,i;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.styles[a],i=document.createElement("link"),e.next=4,new d.a((function(e){t?(i.href=t,i.rel="stylesheet"):e(),document.head.appendChild(i),e()}));case 4:case"end":return e.stop()}}),e)})),a=0;case 18:if(!(a<n.styles.length)){t.next=23;break}return t.delegateYield(r(),"t1",20);case 20:a++,t.next=18;break;case 23:return t.prev=23,e.comp=window[e.compId](),e.comp.triggerEvent=e.triggerEvent.bind(e),t.next=28,e.comp.created("#".concat(e.id),n.initData);case 28:return t.next=30,e.comp.attached();case 30:t.next=35;break;case 32:t.prev=32,t.t2=t.catch(23),console.log(t.t2);case 35:case"end":return t.stop()}}),t,null,[[23,32]])})))()},detached:function(){this.comp&&this.comp.detached()},moved:function(){this.comp&&this.comp.moved()},methods:{propChange:function(e){this.comp&&this.comp.propChange(e)}}});var xd=function(){function e(){oe()(this,e)}return ae()(e,[{key:"createInstance",value:function(e){var t=document.createElement("wx-root-portal-content");t.style.top=0;var n=new Ad;return n.data=JSON.parse(this._initValuesJSON),n.shadowRoot=document.createDocumentFragment(),n.idMap={},n.slots={"":t},n.listeners=[],e.__portalContent=t,n}}],[{key:"create",value:function(t,n,i){var o=new e;return o._initValuesJSON=ce()(i),o}}]),e}(),Ad=function(){function e(){oe()(this,e)}return ae()(e,[{key:"updateValues",value:function(){}}]),e}();window.ftparser.registerElement({is:"wx-root-portal",options:{templateEngine:xd},behaviors:["wx-base"],properties:{enable:{type:Boolean,value:!0,public:!0,observer:function(e){e!==this._lastEnable&&this._contentAttached?(this.detachContent(this._lastEnable),this.attachContent(e),this._lastEnable=e):this._lastEnable=e}}},created:function(){this._lastEnable=!0,this._contentAttached=!1},attached:function(){this._attachContentFn=this.tryAttachContent.bind(this),document.addEventListener("pageReRender",this._attachContentFn),this.tryAttachContent()},detached:function(){document.removeEventListener("pageReRender",this._attachContentFn),this.detachContent(this.enable)},methods:{tryAttachContent:function(){this.$$.isConnected?this.attachContent(this.enable):this.detachContent(this.enable)},attachContent:function(e){if(!this._contentAttached){this._contentAttached=!0;var t=this.__portalContent;e?document.documentElement.appendChild(t):this.$$.appendChild(t)}},detachContent:function(e){if(this._contentAttached){this._contentAttached=!1;var t=this.__portalContent;e?document.documentElement.removeChild(t):this.$$.removeChild(t)}}}}),window.ftparser.registerElement({is:"wx-ext-web",behaviors:["wx-base"],options:{renderingMode:"full"},template:function(e,t,n){return[{t:1,n:"div",id:"ext-web",cl:{v:"wx-ext-web-container"},st:{},a:[],c:[{t:1,n:"iframe",id:"inner",st:{v:"width: 101%; height: 101%;"},a:[],c:[{t:1,n:"slot",v:!0,sn:"",a:[],c:[]}]}]}]},properties:{src:{type:String,observer:"srcChanged",public:!0}},attached:function(){this.extWebId=(new Date).getTime(),window.__webviewId__,this.extWebId,this.$$.extWebId=this.extWebId,this.$$.webviewId=window.__webviewId__},detached:function(){},methods:{srcChanged:function(){this.$.inner.$$.src=this.src}}});var Cd,Ed,Sd,kd,Td={},Id=function(){function e(){oe()(this,e)}return ae()(e,null,[{key:"getAppData",value:function(){return Td}},{key:"mergeData",value:function(e,t){var n=function(e,t){return function e(t,n){var i=F(t),o=n?n.get(t):null;if("Object"===i){if(o)return o;for(var r in o={},n&&n.set(t,o),t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=e(t[r],n));return o}if("Array"===i){o=[],n&&n.set(t,o);for(var a=0;a<t.length;a++)o[a]=e(t[a],n);return o}return t}(e,t&&"Undefined"!==F(b.a)?new b.a:null)}(e);for(var i in t){var o=Nd(i),r=Pd(e,o,!1),a=r.obj,s=r.key,c=Pd(n,o,!0),l=c.obj,u=c.key,d=c.changed;a&&(a[s]=t[i]),l&&(l[u]=d?t[i]:{__value__:t[i],__wxspec__:!0})}return n}},{key:"init",value:function(){window.__webview_engine_version__=.02,window.__mergeData__=e.mergeData}}]),e}(),Nd=function(e){for(var t=e.length,n=[],i="",o=0,r=!1,a=!1,s=0;s<t;s++){var c=e[s];if("\\"===c)s+1<t&&("."===e[s+1]||"["===e[s+1]||"]"===e[s+1]?(i+=e[s+1],s++):i+="\\");else if("."===c)i&&(n.push(i),i="");else if("["===c){if(i&&(n.push(i),i=""),0===n.length)throw new Error("path can not start with []: "+e);a=!0,r=!1}else if("]"===c){if(!r)throw new Error("must have number in []: "+e);a=!1,n.push(o),o=0}else if(a){if(c<"0"||c>"9")throw new Error("only number 0-9 could inside []: "+e);r=!0,o=10*o+c.charCodeAt(0)-48}else i+=c}if(i&&n.push(i),0===n.length)throw new Error("path can not be empty");return n},Pd=function(e,t,n){for(var i,o,r=!1,a=e,s=0;s<t.length;s++)Number(t[s])===t[s]&&t[s]%1==0?"Array"!==F(a)&&(n&&!r?(r=!0,i[o]={__value__:[],__wxspec__:!0},a=i[o].__value__):(i[o]=[],a=i[o])):"Object"!==F(a)&&(n&&!r?(r=!0,i[o]={__value__:{},__wxspec__:!0},a=i[o].__value__):(i[o]={},a=i[o])),o=t[s],i=a,(a=a[t[s]])&&a.__wxspec__&&(a=a.__value__,r=!0);return{obj:i,key:o,changed:r}},Od=Id;Tn.a||(Array.from=(Cd=Object.prototype.toString,Ed=function(e){return"function"==typeof e||"[object Function]"===Cd.call(e)},Sd=Math.pow(2,53)-1,kd=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),Sd)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,i=arguments.length>1?arguments[1]:void 0;if(void 0!==i){if(!Ed(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var o,r=kd(t.length),a=Ed(this)?Object(new this(r)):new Array(r),s=0;s<r;)o=t[s],a[s]=i?void 0===n?i(o,s):i.call(n,o,s):o,s+=1;return a.length=r,a})),ftparser.addGlobalErrorListener((function(e,t){Reporter.errorReport({key:"webviewScriptError",error:e,extend:t.message})}));var Ld=function(e){return function(){try{e.apply(void 0,Tn()(arguments))}catch(e){Reporter.errorReport({key:"ftparserScriptError",error:e})}}};function Rd(e,t){var n=E()(e);if(Yt.a){var i=Yt()(e);t&&(i=i.filter((function(t){return Xt()(e,t).enumerable}))),n.push.apply(n,i)}return n}function Md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach((function(t){kt()(e,t,n[t])})):Jt.a?de()(e,Jt()(n)):Rd(Object(n)).forEach((function(t){en()(e,t,Xt()(n,t))}))}return e}var Bd=[],$d=function(e,t,n){var i=Md({},n);switch(e){case"script":i=Ke()({},i,function(e){var t={};switch(e){case"frameworkLoad":t.startTime=window.__serviceStartTime__,t.endTime=window.__serviceEndTime__;break;case"evaluateScript":t.startTime=window.__pageFrameStartTime__,t.endTime=window.__packageEndTime__,window.__lazyFrameTotalTime__&&window.__lazyPackageTotalTime__&&(t.lazyLoadTime=window.__lazyFrameTotalTime__+window.__lazyPackageTotalTime__);break;case"serviceLoad":t.startTime=window.__serviceStartTime__+(window.__pageFrameStartTime__-window.__serviceEndTime__),t.endTime=window.__packageEndTime__,window.__lazyFrameTotalTime__&&(t.lazyLoadTime=window.__lazyFrameTotalTime__+window.__lazyPackageTotalTime__+(window.__serviceEndTime__-window.__serviceStartTime__))}return t.startTime&&t.endTime&&(t.duration=t.endTime-t.startTime),t}(t));break;case"render":i=Ke()({},i,function(e,t){switch(e){case"frameworkRenderLoad":t.startTime=window.__speedInfo__.view.startTime,t.endTime=window.__speedInfo__.view.endTime;break;case"viewRender":t.startTime=window.__speedInfo__.view.startTime+(window.__speedInfo__.funcReady.endTime-window.__pageFrameEndTime__),t.endTime=window.__speedInfo__.funcReady.endTime,window.__lazyFrameTotalTime__&&(t.lazyLoadTime=window.__lazyFrameTotalTime__);break;case"firstRender":t.startTime=window.__speedInfo__.firstRenderTime.startTime,t.endTime=window.__speedInfo__.firstRenderTime.endTime,t.initDataSendTime=window.__speedInfo__.firstGetData.startTime,t.initDataRecvTime=window.__speedInfo__.firstGetData.endTime}return t.startTime&&t.endTime&&(t.duration=t.endTime-t.startTime),t}(t,i))}Bd.push(Md({entryType:e,name:t},i))},Fd={funcReady:!1,dataReady:!1,initReady:!1,firstRender:!1,onLoadReady:!1};Od.init(),window.__DOMTree__=void 0;var Dd=new _c(window.__webviewId__);_c.instance=Dd;var jd=[],Vd={webviewStartTime:v()(),funcReady:0};function qd(e,t,n,i){window.__speedInfo__[e]={startTime:t,endTime:n},Reporter.speedReport({key:e,timeMark:{startTime:t,endTime:n},force:"reRenderTime"!==e,data:i})}window.__speedInfo__={};var Hd=function(e){if(Fd.firstRender)console.error("rerender");else{var t=v()();qd("firstGetData",Vd.funcReady,v()()),function(e){if(e.ext&&(void 0!==e.ext.webviewId&&(window.__webviewId__=e.ext.webviewId),e.ext.enablePullUpRefresh&&(window.__enablePullUpRefresh__=!0),e.ext.enablePageScroll&&(window.__enablePageScroll__=!0),"independent"===e.ext.packageType&&uc.disableStyleElement("app"),e.ext.fcjssystemInfo)){var t={};switch(Ce()(e.ext.fcjssystemInfo)){case"string":try{t=JSON.parse(e.ext.fcjssystemInfo)}catch(e){}break;case"object":t=e.ext.fcjssystemInfo}window.__fcjs_systemInfo=t}__virtualDOM__.startInitRender(),setTimeout((function(){wd.publish("DOMReady"),wd.publishPageEvent("__DOMReady",{}),wd.initReady()}),0)}(e),qd("firstRenderTime",t,v()()),e.options&&e.options.firstRender||(console.error("firstRender not the data from Page.data"),Reporter.errorReport({key:"webviewScriptError",error:new Error("firstRender not the data from Page.data"),extend:"firstRender not the data from Page.data"})),Fd.firstRender=!0,document.dispatchEvent(new CustomEvent("pageReRender",{})),$d("render","frameworkRenderLoad"),$d("render","viewRender"),$d("render","firstRender"),setTimeout((function(){!function(){var e=r()(Bd);Bd=[],(window.ServiceJSBridge||window.FinChatJSBridge).invoke("addPerformance",{performances:e},(function(e){}))}()}),0)}},Ud=[];window._flushActiveInputQueue=function(){var e=Ud.filter((function(e){return!e.hidden})),t=e.length;if(t){for(var n=0;n<t;n++){var i=e[n],o=i.cursor,r=i.selectionStart,a=i.selectionEnd,s=i.value;n===t-1?("function"==typeof i._inputFocus&&i._inputFocus(o,r,a),"function"==typeof i._textareaFocusWrap&&i._textareaFocusWrap(o,r,a)):i.triggerEvent("focus",{value:s,height:0})}Ud=[]}},window._addActiveInputQueue=function(e){Ud.push(e)},window.onerror=function(e,t,n,i,o){Reporter.errorReport({key:"webviewScriptError",error:o}),"ios"===wd.getPlatform()&&webkit.messageHandlers.publishHandler.postMessage("wawebview sdk error:"+o.msg)};var Wd,zd=Ld((function(e){Fd.dataReady=!0,Hd(e)}));wd.onAppDataChange(zd),wd.onPageResizeChange(Ld((function(e){e.deviceOrientation&&(window.__deviceOrientation__=e.deviceOrientation)}))),document.addEventListener("generateFuncReady",Ld((function(e){window.__wxConfig?window.__wxLibrary&&("function"==typeof window.__wxLibrary.onEnd&&window.__wxLibrary.onEnd(),window.__wxLibrary=void 0):window.__wxConfig=__wxConfig__,Vd.funcReady=v()(),qd("funcReady",Vd.webviewStartTime,Vd.funcReady),window.__pageFrameStartTime__&&window.__pageFrameEndTime__&&qd("pageframe",window.__pageFrameStartTime__,window.__pageFrameEndTime__),window.__viewStartTime__&&window.__viewEndTime__&&qd("view",window.__viewStartTime__,window.__viewEndTime__),window.__generateFunc__=e.detail.generateFunc,uc.init((function(){if(Fd.initReady=!0,Fd.funcReady=!0,Fd.dataReady)for(var e in jd)Hd(jd[e])}),Dd)}))),window.wd&&window.wd.onPageScrollTo((function(e){var t=document.documentElement.scrollTop||document.body.scrollTop,n=e.scrollTop,i=e.duration||0;!function(e,t,n){var i=t-e;if(i){var o=e,r=n?i/(n/(1e3/60)):i;Wd&&window.cancelAnimationFrame(Wd),function e(){o+=r,window.scrollTo({top:o,behavior:"auto"}),Math.abs(t-o)>=Math.abs(r)?Wd=window.requestAnimationFrame(e):window.scrollTo({top:t,behavior:"smooth"})}()}}(t,n,i),setTimeout((function(){FinChatJSBridge.subscribeHandler("custom_event_scrollDone",{}),FinChatJSBridge.publish("pageScrollToDone_"+e.scrollId,{data:"ok"})}),i+500)})),n(681),window.__AppCode__={}}]),window.__viewEndTime__=Date.now();