!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=207)}([function(e,t,n){var r=n(5),o=n(52).f,i=n(19),a=n(15),s=n(61),c=n(135),u=n(93);e.exports=function(e,t){var n,l,p,f,d,h=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(f=t[l],p=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!u(g?l:h+(v?".":"#")+l,e.forced)&&void 0!==p){if(typeof f==typeof p)continue;c(f,p)}(e.sham||p&&p.sham)&&i(f,"sham",!0),a(n,l,f,e)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,c,"next",e)}function c(e){r(a,o,i,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(5),o=n(91),i=n(8),a=n(63),s=n(96),c=n(140),u=o("wks"),l=r.Symbol,p=c?l:l&&l.withoutSetter||a;e.exports=function(e){return i(u,e)||(s&&i(l,e)?u[e]=l[e]:u[e]=p("Symbol."+e)),u[e]}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(27))},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c}));n(77),n(177),n(132),n(178),n(179),n(180),n(78),n(182),n(51),n(42),n(125),n(133),n(183),n(108),n(104),n(71);var r=n(34);function o(e){var t=location.search.substr(1).split("&").reduce((function(e,t){var n=t.split("="),o=Object(r.a)(n,2),i=o[0],a=o[1];return i&&(e[decodeURIComponent(i)]=decodeURIComponent(a)),e}),{});return e?t[e]:t}function i(e,t){var n=Object.keys(t).filter((function(e){return void 0!==t[e]})).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(t[e].toString()))})).join("&");return e+(e.includes("?")?"&":"?")+n}function a(e){var t=document.cookie.split(";").reduce((function(e,t){var n=t.trim().split("="),o=Object(r.a)(n,2),i=o[0],a=o[1];return e[decodeURIComponent(i)]=decodeURIComponent(a),e}),{});return e?t[e]:t}function s(){return window.require("@jimu/core/view").request}function c(e){return e.startsWith("http://")||e.startsWith("https://")}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(13),o=n(87),i=n(6),a=n(60),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=1,r=arguments.length>=2;if(!(this instanceof i))return n?r?new i(e,t):new i(e):new i;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.2";var a=i.prototype,s=Object.prototype.hasOwnProperty;function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function u(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function l(e){return"Array"===u(e)}function p(e,t){var n,r,o={};if("RegExp"===u(t))o=null;else if(l(t))for(n=0,r=t.length;n]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=v,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=v,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var n=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var m,y={encode:"encode",decode:"decode"},b=function(e,t){return function(n){try{return i[t](n+"").replace(i.characters[e][t].expression,(function(n){return i.characters[e][t].map[n]}))}catch(e){return n}}};for(m in y)i[m+"PathSegment"]=b("pathname",y[m]),i[m+"UrnPathSegment"]=b("urnpath",y[m]);var w=function(e,t,n){return function(r){var o;o=n?function(e){return i[t](i[n](e))}:i[t];for(var a=(r+"").split(e),s=0,c=a.length;s-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3)?(e=e.substring(n+3),e=i.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var n,r,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,o)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),s=e.indexOf("/"),c=e.indexOf(":",a+1);-1!==c&&(-1===s||c-1?r:e.length-1);return o>-1&&(-1===r||o-1?d.slice(0,h)+d.slice(h).replace(a,""):d.replace(a,"")).length<=u[0].length||n.ignore&&n.ignore.test(d))){var m=t(d,l,f=l+d.length,e);void 0!==m?(m=String(m),e=e.slice(0,l)+m+e.slice(f),r.lastIndex=l+m.length):r.lastIndex=f}}return r.lastIndex=0,e},i.ensureValidHostname=function(t,n){var r=!!t,o=!1;if(!!n&&(o=f(i.hostProtocols,n)),o&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=o),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new i(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=_("protocol"),a.username=_("username"),a.password=_("password"),a.hostname=_("hostname"),a.port=_("port"),a.query=k("query","?"),a.fragment=k("fragment","#"),a.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var r=e instanceof i,o="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[i.getDomAttribute(e)]||"",o=!1);if(!r&&o&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!r&&!o)throw new TypeError("invalid input");var a=r?e._parts:e;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,r=!1,o=!1,a=!1,s=!1,c=!1,u=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,r=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),s=(a=!(t=r||o))&&n&&n.has(this._parts.hostname),c=a&&i.idn_expression.test(this._parts.hostname),u=a&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return a;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return o;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return u}return null};var x=a.protocol,O=a.port,S=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),O.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return S.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=i(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=i.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=i.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,r),a=new RegExp("^"+c(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[o.toLowerCase()]&&n.get(this._parts.hostname)||o}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');i=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?i.decodePath(r):r}var o=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,o),s=new RegExp("^"+c(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?i.decodePathSegment(r):r}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var a=new RegExp(c(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e),o?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,o=this.filename(),a=o.lastIndexOf(".");return-1===a?"":(n=o.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?i.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var s,u=this.suffix();if(u)s=e?new RegExp(c(u)+"$"):new RegExp(c("."+u)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return s&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},a.segment=function(e,t,n){var r=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),a=o.split(r);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(l(t)){a=[];for(var s=0,c=t.length;s0)},function(e,t,n){"use strict";n(31),t.getCookie=function(e){for(var t,n=document.cookie.split("; "),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}}}function g(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=v(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function m(){}function y(){}function b(){}function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e){var t;this._invoke=function(n,o){function i(){return new Promise((function(t,i){!function t(n,o,i,a){var s=v(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):Promise.resolve(u).then((function(e){c.value=e,i(c)}),a)}a(s.arg)}(n,o,t,i)}))}return t=t?t.then(i,i):i()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=v(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",v=" "+v,g++),n=new RegExp("^(?:"+h+")",d)),f&&(n=new RegExp("^"+h+"$(?!\\s)",d)),l&&(t=a.lastIndex),r=s.call(u?n:a,v),u?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),f&&r&&r.length>1&&c.call(r[0],n,(function(){for(o=1;o"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[p]=e):n=h(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(69),o=n(15),i=n(145);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){var r=n(13),o=n(83),i=n(35),a=n(25),s=n(60),c=n(8),u=n(87),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(92),o=n(65);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){"use strict";n(42);var r=n(15),o=n(1),i=n(3),a=n(46),s=n(19),c=i("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),l="$0"==="a".replace(/./,"$0"),p=i("replace"),f=!!/./[p]&&""===/./[p]("a","$0"),d=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,p){var h=i(e),g=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=g&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!g||!v||"replace"===e&&(!u||!l||f)||"split"===e&&!d){var m=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===a?g&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),b=y[0],w=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}p&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){var r=n(28),o=n(46);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Dt}));n(176),n(78);var r=n(18),o=(n(38),n(2)),i=n(14),a=n(9);var s=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var c=function(e){return e},u=Math.max;var l=function(e,t,n){return t=u(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=u(r.length-t,0),a=Array(i);++o0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(q);var Q=function(e,t){return W(l(e,t,c),e+"")};var H=function(){this.__data__=[],this.size=0};var V=function(e,t){return e===t||e!=e&&t!=t};var K=function(e,t){for(var n=e.length;n--;)if(V(e[n][0],t))return n;return-1},G=Array.prototype.splice;var J=function(e){var t=this.__data__,n=K(t,e);return!(n<0)&&(n==t.length-1?t.pop():G.call(t,n,1),--this.size,!0)};var $=function(e){var t=this.__data__,n=K(t,e);return n<0?void 0:t[n][1]};var Y=function(e){return K(this.__data__,e)>-1};var X=function(e,t){var n=this.__data__,r=K(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var $e=function(e){return null!=e&&Je(e.length)&&!S(e)};var Ye=function(e){return Fe(e)&&$e(e)},Xe=n(49),Ze=Function.prototype,et=Object.prototype,tt=Ze.toString,nt=et.hasOwnProperty,rt=tt.call(Object);var ot=function(e){if(!Fe(e)||"[object Object]"!=k(e))return!1;var t=Me(e);if(null===t)return!0;var n=nt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&tt.call(n)==rt},it={};it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var at=function(e){return Fe(e)&&Je(e.length)&&!!it[k(e)]};var st=function(e){return function(t){return e(t)}},ct=n(76),ut=ct.a&&ct.a.isTypedArray,lt=ut?st(ut):at;var pt=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},ft=Object.prototype.hasOwnProperty;var dt=function(e,t,n){var r=e[t];ft.call(e,t)&&V(r,n)&&(void 0!==n||t in e)||je(e,t,n)};var ht=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&jt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(i.a)(this,e),t=Ct(t,{autoPV:!1,env:"production",crash:!1,fps:!1,timing:!1}),n=Lt({user_id:Object(Ut.a)("ud"),service_name:"jimu",product_name:"JIMU_H5"},n,r),this.autoPV=!1!==t.autoPV,t.autoPV=!1,this.weblog=new Rt.a(t,n),this.init().catch((function(e){0}))}var t,n,s;return Object(a.a)(e,[{key:"init",value:(s=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initParams();case 2:if(!this.autoPV){e.next=5;break}return e.next=5,this.initAutoPV();case 5:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"initParams",value:(n=Object(o.a)(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.JIMU.bridge,e.next=3,t.ready();case 3:return n="unknown",e.next=6,t.system.getNetworkType();case 6:r=e.sent,o=r.net,e.t0=o,e.next="WIFI"===e.t0?11:"MOBILE"===e.t0?13:"MOBILE_2G"===e.t0||"MOBILE_3G"===e.t0||"MOBILE_4G"===e.t0?15:"MOBILE_5G"===e.t0?17:19;break;case 11:return n="wifi",e.abrupt("break",19);case 13:return n="none",e.abrupt("break",19);case 15:return n=o.toLowerCase().substr(7),e.abrupt("break",19);case 17:return n="4g",e.abrupt("break",19);case 19:return e.next=21,t.system.getAppInfo();case 21:i=e.sent,a=i.c,s=i.did,c=i.appver,this.updateBaseOptions({channel:a,device_id:s,version_name:c,network_type:n});case 26:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"initAutoPV",value:(t=Object(o.a)(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.JIMU.bridge,this.sendPV(),window.addEventListener("beforeunload",(function(){n.sendPV("leave")})),e.next=5,t.ready();case 5:return e.next=7,t.event.addEventListener("pause",(function(){n.sendPV("hidden")}));case 7:return e.next=9,t.event.addEventListener("resume",(function(){Nt=Date.now(),n.sendPV("visible")}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"send",value:function(e,t,n){n?this.weblog.sendImmediately(e,t):this.weblog.collect(e,t)}},{key:"updateBaseOptions",value:function(e){this.weblog.updateBase(Lt({},e,this.forceBaseOptions))}},{key:"sendPV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"enter",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=window.JIMU.activityToken,i=Object.assign({activity_token:o,entrance_url:window.location.href,version:"0"},Object(Ut.b)(),t.params),a={page:"JIMU_PAGE_".concat(o),params:i};"leave"===e&&(n=!0,a.beginTime=Nt),this.send("PV",Object(r.a)(Object(r.a)({type:e},a),t),n)}},{key:"sendClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.send("CLICK",Object(r.a)({action:e},t),n)}},{key:"sendShow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.send("SHOW",Object(r.a)({action:e},t),n)}},{key:"sendTask",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.send(e,Object(r.a)({action:t},n),o)}},{key:"sendBackground",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.send("CLICK",Object(r.a)({action:e,type:"BACKGROUND_TASK_EVENT",status:t.status},t),n)}},{key:"sendCustom",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.send("CUSTOM",e,t)}},{key:"sendFMP",value:function(){this.weblog.plugins.radar.fmp()}},{key:"destroy",value:function(){this.weblog.plugins.radar.destroy(),this.weblog.destroy()}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(20);function o(e,t,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(5),o=n(19);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(91),o=n(63),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(25),o=n(16),i=n(139),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(1),o=n(3),i=n(97),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(41),o=n(36),i=n(22),a=n(16),s=n(95),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,p=6==e,f=5==e||p;return function(d,h,g,v){for(var m,y,b=i(d),w=o(b),_=r(h,g,3),k=a(w.length),x=0,O=v||s,S=t?O(d,k):n?O(d,0):void 0;k>x;x++)if((f||x in w)&&(y=_(m=w[x],x,b),e))if(t)S[x]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:c.call(S,m)}else if(l)return!1;return p?-1:u||l?l:S}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r={};r[n(3)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(0),o=n(126),i=n(102),a=n(103),s=n(43),c=n(19),u=n(15),l=n(3),p=n(29),f=n(30),d=n(101),h=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m=function(){return this};e.exports=function(e,t,n,l,d,y,b){o(n,t,l);var w,_,k,x=function(e){if(e===d&&j)return j;if(!g&&e in P)return P[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",S=!1,P=e.prototype,E=P[v]||P["@@iterator"]||d&&P[d],j=!g&&E||x(d),I="Array"==t&&P.entries||E;if(I&&(w=i(I.call(new e)),h!==Object.prototype&&w.next&&(p||i(w)===h||(a?a(w,h):"function"!=typeof w[v]&&c(w,v,m)),s(w,O,!0,!0),p&&(f[O]=m))),"values"==d&&E&&"values"!==E.name&&(S=!0,j=function(){return E.call(this)}),p&&!b||P[v]===j||c(P,v,j),f[t]=j,d)if(_={values:x("values"),keys:y?j:x("keys"),entries:x("entries")},b)for(k in _)(g||S||!(k in P))&&u(P,k,_[k]);else r({target:t,proto:!0,forced:g||S},_);return _}},function(e,t,n){"use strict";var r=n(0),o=n(72).trim;r({target:"String",proto:!0,forced:n(149)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var r=n(12),o="["+n(47)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){var r=n(79),o=n(30),i=n(3)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),v=p("concat"),m=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!g||!v},{concat:function(e){var t,n,r,o,i,a=s(this),p=l(a,0),f=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(p,f++,i)}return p.length=f,p}})},function(e,t,n){var r=n(15),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var e=a.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){var r=n(69),o=n(28),i=n(3)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r=n(81).charAt,o=n(26),i=n(70),a=o.set,s=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(53),o=n(12),i=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return i}));var o=n(24);function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(100);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(3)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(81).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(13),o=n(1),i=n(88);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(5),o=n(11),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(90),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(5),o=n(61),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(29),o=n(90);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(8),o=n(25),i=n(64).indexOf,a=n(44);e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(1),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(28);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(11),o=n(94),i=n(3)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(1);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r,o,i=n(5),a=n(141),s=i.process,c=s&&s.versions,u=c&&c.v8;u?o=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){var r=n(3),o=n(50),i=n(17),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r=n(6);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(11),o=n(28),i=n(3)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r,o,i,a=n(102),s=n(19),c=n(8),u=n(3),l=n(29),p=u("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),null==r&&(r={}),l||c(r,p)||s(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(8),o=n(22),i=n(62),a=n(147),s=i("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(6),o=n(148);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){"use strict";var r,o=n(0),i=n(52).f,a=n(16),s=n(84),c=n(12),u=n(85),l=n(29),p="".startsWith,f=Math.min,d=u("startsWith");o({target:"String",proto:!0,forced:!!(l||d||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!d},{startsWith:function(e){var t=String(c(this));s(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return p?p.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(5),o=n(127),i=n(128),a=n(19),s=n(3),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var p in o){var f=r[p],d=f&&f.prototype;if(d){if(d[c]!==l)try{a(d,c,l)}catch(e){d[c]=l}if(d[u]||a(d,u,p),o[p])for(var h in i)if(d[h]!==i[h])try{a(d,h,i[h])}catch(e){d[h]=i[h]}}}},function(e,t,n){var r=n(44),o=n(11),i=n(8),a=n(17).f,s=n(63),c=n(153),u=s("meta"),l=0,p=Object.isExtensible||function(){return!0},f=function(e){a(e,u,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,u)){if(!p(e))return"F";if(!t)return"E";f(e)}return e[u].objectID},getWeakData:function(e,t){if(!i(e,u)){if(!p(e))return!0;if(!t)return!1;f(e)}return e[u].weakData},onFreeze:function(e){return c&&d.REQUIRED&&p(e)&&!i(e,u)&&f(e),e}};r[u]=!0},function(e,t,n){var r=n(6),o=n(130),i=n(16),a=n(41),s=n(73),c=n(129),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,p){var f,d,h,g,v,m,y,b=a(t,n,l?2:1);if(p)f=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(o(d)){for(h=0,g=i(e.length);g>h;h++)if((v=l?b(r(y=e[h])[0],y[1]):b(e[h]))&&v instanceof u)return v;return new u(!1)}f=d.call(e)}for(m=f.next;!(y=m.call(f)).done;)if("object"==typeof(v=c(f,b,y.value,l))&&v&&v instanceof u)return v;return new u(!1)}).stop=function(e){return new u(!0,e)}},function(e,t,n){"use strict";var r=n(55),o=n(100),i=n(6),a=n(12),s=n(160),c=n(86),u=n(16),l=n(56),p=n(46),f=n(1),d=[].push,h=Math.min,g=!f((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,c,u,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,g=new RegExp(e.source,f+"g");(s=p.call(g,r))&&!((c=g.lastIndex)>h&&(l.push(r.slice(h,s.index)),s.length>1&&s.index=i));)g.lastIndex===s.index&&g.lastIndex++;return h===r.length?!u&&g.test("")||l.push(""):l.push(r.slice(h)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var p=i(e),f=String(this),d=s(p,RegExp),v=p.unicode,m=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(g?"y":"g"),y=new d(g?p:"^(?:"+p.source+")",m),b=void 0===o?4294967295:o>>>0;if(0===b)return[];if(0===f.length)return null===l(y,f)?[f]:[];for(var w=0,_=0,k=[];_= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function g(e){throw new RangeError(f[e])}function v(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function m(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+v((e=e.replace(p,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))}function k(e){var t,n,r,o,i,a,s,u,l,p,f,h=[],v=e.length,m=0,y=128,w=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r=128&&g("not-basic"),h.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=v&&g("invalid-input"),((u=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>d((c-m)/a))&&g("overflow"),m+=u*a,!(u<(l=s<=w?1:s>=w+26?26:s-w));s+=36)a>d(c/(p=36-l))&&g("overflow"),a*=p;w=_(m-i,t=h.length+1,0==i),d(m/t)>c-y&&g("overflow"),y+=d(m/t),m%=t,h.splice(m++,0,y)}return b(h)}function x(e){var t,n,r,o,i,a,s,u,l,p,f,v,m,b,k,x=[];for(v=(e=y(e)).length,t=128,n=0,i=72,a=0;a=t&&fd((c-n)/(m=r+1))&&g("overflow"),n+=(s-t)*m,t=s,a=0;ac&&g("overflow"),f==t){for(u=n,l=36;!(u<(p=l<=i?1:l>=i+26?26:l-i));l+=36)k=u-p,b=36-p,x.push(h(w(p+k%b,0))),u=d(k/b);x.push(h(w(u,0))),i=_(n,m,r==o),n=0,++r}++n,++t}return x.join("")}s={version:"1.3.2",ucs2:{decode:y,encode:b},decode:k,encode:x,toASCII:function(e){return m(e,(function(e){return l.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return m(e,(function(e){return u.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(161)(e),n(27))},function(e,t,n){var r,o; /*! * URI.js - Mutating URLs * IPv6 Support * * Version: 1.19.2 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */!function(i,a){"use strict";e.exports?e.exports=a():void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,n,r=e.toLowerCase().split(":"),o=r.length,i=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[o-1]&&""===r[o-2]&&r.pop(),-1!==r[(o=r.length)-1].indexOf(".")&&(i=7),t=0;t1);s++)n.splice(0,1);r[a]=n.join("")}var c=-1,u=0,l=0,p=-1,f=!1;for(a=0;au&&(c=p,u=l)):"0"===r[a]&&(f=!0,p=a,l=1);l>u&&(c=p,u=l),u>1&&r.splice(c,u,""),o=r.length;var d="";for(""===r[0]&&(d=":"),a=0;a=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var o=n.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var o=n.list[e.slice(t+1)];return o?o.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}))},function(e,t,n){"use strict";var r=n(163),o=n(164),i=n(113);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(74),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.appConfig=t.kpnConfig=void 0;t.kpnConfig={kuaishou:{appTypeStr:"kwai",schemeName:"kwai"},nebula:{appTypeStr:"ksnebula",schemeName:"ksnebula",wxSdkConfig:{params:{app:"nebula"}},wxOauthConfig:{},qqOauthConfig:{}}};var r={kwai:{inApp:!1,appName:"快手",appCode:"KWAI",position:"default",linkFallbackToSchema:!0,timeout:2e3,wxAppId:"wx9227d48257374438",showBrowserModal:!1,confirmDialog:!1,appParamForYyb:"android_scheme",scheme:"kwai://home",uLink:"https://m.ssl.kuaishou.com/app/",appLink:"#Intent;scheme=kwai;S.browser_fallback_url=".concat(encodeURIComponent("https://m.viviv.com/download/kwai"),";end"),download:{yyb:"http://a.app.qq.com/o/simple.jsp?pkgname=com.smile.gifmaker&g_f=99",android:"https://m.viviv.com/download/kwai",ios:"https://itunes.apple.com/app/apple-store/id440948110?pt=572643&mt=8",androidMarket:""},landPage:"https://m.kuaishou.com/"},ksnebula:{inApp:!1,appName:"快手极速版",appCode:"NEBULA",position:"default",linkFallbackToSchema:!0,timeout:2e3,wxAppId:"",showBrowserModal:!1,confirmDialog:!1,scheme:"ksnebula://home",uLink:"https://m.ssl.kuaishouapp.com/app/",appLink:"#Intent;scheme=ksnebula;S.browser_fallback_url=".concat(encodeURIComponent("https://a.app.qq.com/o/simple.jsp?pkgname=com.kuaishou.nebula"),";end"),download:{yyb:"https://a.app.qq.com/o/simple.jsp?pkgname=com.kuaishou.nebula",android:"https://a.app.qq.com/o/simple.jsp?pkgname=com.kuaishou.nebula",ios:"https://itunes.apple.com/app/apple-store/id1472502819?mt=8",androidMarket:""},landPage:"https://m.kuaishou.com/"}};t.appConfig=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrlSearchParams=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;e=new URL(e);var t={},n=!0,r=!1,o=void 0;try{for(var i,a=e.searchParams.entries()[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;t[s[0]]=s[1]}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t},t.appendParamsToUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href,t=arguments.length>1?arguments[1]:void 0;return e=new URL(e),Object.keys(t).forEach((function(n){e.searchParams.delete(n),e.searchParams.append(n,t[n])})),e.toString()},t.getUrlParamByName=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);if(null!=n)return decodeURIComponent(n[2]);return null},n(171)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(31);var r,o=n(185),i=n(162),a=n(165),s=(r=n(166))&&r.__esModule?r:{default:r},c=n(169),u=n(170),l=n(114),p=n(115);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return v(this,e),(!e.instance||t&&"{}"!==JSON.stringify(t))&&(this.enableWxSdk=n,n&&(this.wxjssdk=new s.default(t),this._init()),(0,c.addDid)(),e.instance=this),e.instance}var t,n,r;return t=e,(n=[{key:"_init",value:function(){this.wxjssdk.wxAsyncReady().then((function(e){o.launchApp.setWxjssdk(e.wx)})),this._bindEvent()}},{key:"_bindEvent",value:function(){var e,t,n,r,o,i,a=this;e=t=function(){a.reSignWx()},r=function(){a.reSignWx()},o=300,n=function(){var e=this,t=arguments;i&&clearTimeout(i),i=setTimeout((function(){r.apply(e,t),i=null}),o||100)},window.removeEventListener("replaceState",e),window.removeEventListener("pushState",t),window.removeEventListener("popstate",n),window.addEventListener("replaceState",e),window.addEventListener("pushState",t),window.addEventListener("popstate",n)}},{key:"_launchAppWithWxReady",value:function(e){"wechat"===y?(_=e,k||(k=Promise.race([new Promise((function(e){setTimeout(e,3e3)})),this.wxAsyncReady()])),k.finally((function(){o.launchApp.launch(_)}))):o.launchApp.launch(e)}},{key:"wxAsyncReady",value:function(){return this.enableWxSdk?this.wxjssdk.wxAsyncReady():new Promise((function(e,t){t("enableWxSdk is false!")}))}},{key:"wxShareConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.enableWxSdk&&this.wxjssdk.wxShareConfig(e,t)}},{key:"reSignWx",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.enableWxSdk&&(this.wxjssdk.reSignWx(e),this.wxjssdk.wxAsyncReady().then((function(e){o.launchApp.setWxjssdk(e.wx)})))}},{key:"wxOauth",value:function(e){var t=l.kpnConfig[b]&&l.kpnConfig[b].wxOauthConfig||[];t=h({},t,{},e),(0,i.wxOauth)(t)}},{key:"qqOauth",value:function(e){var t=l.kpnConfig[b]&&l.kpnConfig[b].qqOauthConfig||[];t=h({},t,{},e),(0,a.qqOauth)(t)}},{key:"openOrDownload",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n||(e.timeout=0),r)e.position="pageInit",e.needConfirm=!("qq"===y||"wechat"===y),setTimeout((function(){var n=o?(0,u.dealWithOptions)(e):e;t._launchAppWithWxReady(n)}),300);else{var i=o?(0,u.dealWithOptions)(e):e;this._launchAppWithWxReady(i)}}},{key:"shareConfigForWxAndQQ",value:function(e,t){this.enableWxSdk&&this.wxjssdk.wxShareConfig(e,t);var n=document.getElementsByTagName("head")[0],r=document.querySelector('meta[itemprop="name"]'),o=document.querySelector('meta[name="description"]'),i=document.querySelector('meta[itemprop="image"]'),a=document.querySelector('link[rel="image-src"]');r||((r=document.createElement("meta")).setAttribute("itemprop","name"),n.appendChild(r)),o||((o=document.createElement("meta")).setAttribute("name","description"),n.appendChild(o)),i||((i=document.createElement("meta")).setAttribute("itemprop","image"),n.appendChild(i)),a||((a=document.createElement("link")).setAttribute("rel","image-src"),n.appendChild(a)),r.setAttribute("content",e.title),o.setAttribute("content",e.desc),i.setAttribute("content",e.imgUrl),a.setAttribute("href",e.imgUrl)}},{key:"launchApp",get:function(){return o.launchApp}}])&&m(t.prototype,n),r&&m(t,r),e}();t.default=x},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Ht}));var r,o,i,a=n(118),s=n.n(a);Object.defineProperty||(Object.defineProperty=function(e,t,n){e[t]="[object Object]"===Object.prototype.toString.call(n)&&n.hasOwnProperty("value")?n.value:n}),Object.assign||Object.defineProperty(Object,"assign",{value:function(e){if(null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n>>0;if(0===o)return-1;var i=+t||0;if(Math.abs(i)===1/0&&(i=0),i>=o)return-1;for(n=Math.max(i>=0?i:o-Math.abs(i),0);n>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,r,o,i,a){return n((s=n(n(t,e),n(o,a)))<<(c=i)|s>>>32-c,r);var s,c}function o(e,t,n,o,i,a,s){return r(t&n|~t&o,e,t,i,a,s)}function i(e,t,n,o,i,a,s){return r(t&o|n&~o,e,t,i,a,s)}function a(e,t,n,o,i,a,s){return r(t^n^o,e,t,i,a,s)}function s(e,t,n,o,i,a,s){return r(n^(t|~o),e,t,i,a,s)}function c(e,t){var r,c,u,l,p;e[t>>5]|=128<>>9<<4)]=t;var f=1732584193,d=-271733879,h=-1732584194,g=271733878;for(r=0;r>5]>>>t%32&255);return n}function l(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+"0123456789abcdef".charAt(15&t);return r}function f(e){return unescape(encodeURIComponent(e))}function d(e){return function(e){return u(c(l(e),8*e.length))}(f(e))}function h(e,t){return function(e,t){var n,r,o=l(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=c(o,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],a[n]=1549556828^o[n];return r=c(i.concat(l(t)),512+8*t.length),u(c(a.concat(r),640))}(f(e),f(t))}function g(e,t,n){return t?n?h(t,e):function(e,t){return p(h(e,t))}(t,e):n?d(e):function(e){return p(d(e))}(e)}e.exports?e.exports=g:t.md5=g}(h)})),m=["UVideo","Vstatus","Kwaigo","MvMaster"],y=["Kwai","Kwai_Lite","Kwai_Pro","livemate","ksthanos","ksNebula","ksnebula","kwaiying","pearl","kinder","m2u","LOLita","XFunCore","ACVideoCore","ZIKZAK"].concat(m),b=null,w="",_=function(){return b||(b=(new s.a).getResult()),b};function k(e){if(void 0===e&&(e=location.hostname),!e)return"";var t=e.split("."),n=t.length;return n<=2?"":"."+t[n-2]+"."+t[n-1]}function x(e,t){if(void 0===t&&(t={}),!document.cookie)return null;var n=function(e,t,n){void 0===n&&(n={});var r={};if(e.length>0)for(var o=t?decodeURIComponent:function(e){return e},i=e.split(/;\s/g),a=null,s=null,c=null,u=0,l=i.length;u>>0,t=[],n=0;n<7;n++)t.push("0123456789ABCDEF".charAt(16*Math.random()));return e+t.join("")}function P(){var e=x("did")?"did":"_did",t=x(e),n=new Date;n.setFullYear(n.getFullYear()+1);var r=t||"web_"+S();return O(e,r,{expires:n,domain:k(),path:"/"}),r}function E(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function j(e,t,n,r){return"attachEvent"in e?e.attachEvent("on"+t,n):e.addEventListener(t,n,r)}function I(e,t,n,r){return"attachEvent"in e?e.detachEvent("on"+t,n):e.removeEventListener(t,n,r)}function A(e,t,n){if(void 0===n&&(n=" "),(t-=e.length)<=0)return e;for(var r="";t;)1&t&&(r+=n),t>>=1,n+=n;return r+e}var T,C=(T=null,function(){if(null===T)for(var e=0;e-1){if(navigator.userAgent.toLowerCase().indexOf(y[e].toLowerCase())>-1){T=!0;break}}else if(navigator.userAgent.indexOf(y[e])>-1){T=!0;break}return T});function L(e){return setTimeout(e,62.5)}var R=clearTimeout;function U(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function N(e){for(var t={},n=0,r=e.split("&");n77;function Y(e,t){var n=e.url,r=e.data,o=e.async,i=e.useBeacon,a=void 0!==i&&i,s=e.timeout,c="function"==typeof(window&&window.navigator&&navigator.sendBeacon);if(c&&(a||$)&&q(r)<51200)return G({url:n,data:r},t);if(function(){var e=_();return"IE"===e.browser.name&&(e.browser.major&&+e.browser.major<=9)}())return V({url:n,data:r},t);try{!function(e,t){var n=e.url,r=e.data,o=e.async,i=void 0===o||o,a=e.timeout,s=new XMLHttpRequest;s.open("POST",n,i),i&&a&&(s.timeout=a),s.onload=function(){s.status<200&&s.status>=300&&304!==s.status&&t(s.response)},s.ontimeout=s.onerror=function(e){t(e)},s.send(K(r))}({url:n,data:r,async:o,timeout:s},t)}catch(e){c&&G({url:n,data:r},t)}}var X,Z,ee,te,ne,re={production:"https://log-sdk.ksapisrv.com/rest/wd/common/log/collect/misc2",test:"https://vela3.test.gifshow.com/rest/wd/common/log/collect/misc2",development:"https://webapi.test.gifshow.com/rest/wd/common/log/collect/misc2"},oe=function(){function e(){var e=this;this.logQueue=[],this.errorQueue=[],this.batchWaitTimer=0,this.errorWaitTimer=0,this.flush=function(t){e.sendData(e.logQueue,t),e.logQueue=[]}}return e.prototype.updateBase=function(e){this.commonPackage=e},Object.defineProperty(e.prototype,"url",{get:function(){var e=this.config.env;return this.config.logger||"logger"===e?B():e&&/^(https?:)?\/\//.test(e)?e:re[e]||re.development},enumerable:!1,configurable:!0}),e.prototype.init=function(e,t){this.config=new Q(l(l({},this.config),e)),this.updateBase(t)},e.prototype.sendData=function(e,t){var n,r=this;if((n=Array.isArray(e)&&e.length?{retry:0,logs:e}:e)&&Array.isArray(n.logs)&&n.logs.length){this.commonPackage.increaseHTTPSeqId(),this.commonPackage.setChannel();var o=this.config,i=o.useBeacon,a=o.wait,s=o.timeout,c=o.sender,u={url:this.url,data:{common:this.commonPackage.getJSON(),logs:{event:n.logs}},useBeacon:i,async:void 0!==t?t:0!==a,timeout:s};try{"function"==typeof c?c(u,(function(){r.errHandler(n)})):Y(u,(function(){r.errHandler(n)}))}catch(e){}}},e.prototype.flushErrorQueue=function(){var e=this;this.errorQueue.forEach((function(t){t.retry>e.config.retries?E(e.errorQueue,t):(t.retry++,e.sendData(t))}))},e.prototype.send=function(e,t,n){var r=this;if(void 0===t&&(t=!1),t)this.sendData([e],n);else if(this.config.lazy)this.logQueue.push(e);else{if(clearTimeout(this.batchWaitTimer),this.logQueue.length>=this.config.maxBatchLength)return this.config.lazy||this.logQueue.push(e),void this.flush(n);this.logQueue.push(e),this.batchWaitTimer=window.setTimeout((function(){r.flush(n)}),this.config.wait)}},Object.defineProperty(e.prototype,"errorLogCount",{get:function(){return this.errorQueue.reduce((function(e,t){return e+t.logs.length}),0)},enumerable:!1,configurable:!0}),e.prototype.errHandler=function(e){var t=this;this.config.retries&&(this.errorQueue.push(e),clearTimeout(this.errorWaitTimer),this.errorLogCount>=this.config.maxErrLog?this.flushErrorQueue():this.errorWaitTimer=window.setTimeout((function(){t.flushErrorQueue()}),this.config.wait))},e}();!function(e){e[e.UNKNOWN_ACTION=0]="UNKNOWN_ACTION",e[e.ENTER=1]="ENTER",e[e.LEAVE=2]="LEAVE",e[e.RESUME=3]="RESUME"}(X||(X={})),function(e){e[e.UNKNOWN_SUB_ACTION=0]="UNKNOWN_SUB_ACTION",e[e.PAGE_ENTER=1]="PAGE_ENTER",e[e.PAGE_LEAVE=2]="PAGE_LEAVE",e[e.PAGE_RESUME=3]="PAGE_RESUME",e[e.PAGE_PAUSE=4]="PAGE_PAUSE"}(Z||(Z={})),function(e){e[e.UNKNOWN_TYPE=0]="UNKNOWN_TYPE",e[e.PAGE_AUTO=10]="PAGE_AUTO",e[e.PAGE_CUSTOM=11]="PAGE_CUSTOM",e[e.ELEMENT=12]="ELEMENT"}(ee||(ee={})),function(e){e[e.UNKNOWN_STATUS=0]="UNKNOWN_STATUS",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL"}(te||(te={})),function(e){e[e.UNKNOWN_ACTION_TYPE=0]="UNKNOWN_ACTION_TYPE",e[e.CLICK=1]="CLICK",e[e.LEFT_PULL=2]="LEFT_PULL",e[e.RIGHT_PULL=3]="RIGHT_PULL",e[e.UP_PULL=4]="UP_PULL",e[e.DOWN_PULL=5]="DOWN_PULL"}(ne||(ne={}));var ie,ae,se,ce,ue=!0,le=function(e){this.first_load=ue,this.action=X.ENTER,this.time_cost=0,this.sub_action=Z.PAGE_ENTER,this.type=ee.ELEMENT,this.status=te.SUCCESS,this.action_type=ne.CLICK,this.sub_page=!1,ue=!1;var t=e.type,n=e.currentUrlPackage,r=e.referUrlPackage,o=e.name,i=void 0===o?"":o,a=e.action,s=e.beginTime,c=e.params,u=void 0===c?{}:c,l=e.contentPackage,p=e.status,f=e.actionType,d=e.auto;if(this.url_package=n,this.refer_url_package=r,this.content_package=l,p&&(this.status=void 0===te[p]?te.UNKNOWN_STATUS:te[p]),"PV"===t)switch(this.type=d?ee.PAGE_AUTO:ee.PAGE_CUSTOM,f&&(this.action_type=void 0===ne[f]?ne.UNKNOWN_ACTION_TYPE:ne[f]),a){case"leave":this.action=X.LEAVE,this.sub_action=Z.PAGE_LEAVE,s&&(this.stay_length=(new Date).valueOf()-s);break;case"enter":this.action=X.ENTER,this.sub_action=Z.PAGE_ENTER;break;case"visible":this.action=X.RESUME,this.sub_action=Z.PAGE_RESUME;break;case"hidden":this.action=X.LEAVE,this.sub_action=Z.PAGE_PAUSE}"SHOW"===t&&i&&u&&(this.element_package={action:i,params:JSON.stringify(u)})};!function(e){e[e.UNKNOWN_TYPE=0]="UNKNOWN_TYPE",e[e.USER_OPERATION=1]="USER_OPERATION",e[e.STAY_LENGTH_STAT_EVENT=2]="STAY_LENGTH_STAT_EVENT",e[e.BACKGROUND_TASK_EVENT=3]="BACKGROUND_TASK_EVENT"}(ie||(ie={})),function(e){e[e.UNKNOWN_OPERATION=0]="UNKNOWN_OPERATION",e[e.CLICK=1]="CLICK",e[e.DOUBLE_CLICK=2]="DOUBLE_CLICK",e[e.TRIPLE_CLICK=3]="TRIPLE_CLICK",e[e.LONG_PRESS=4]="LONG_PRESS",e[e.PULL=5]="PULL",e[e.DRAG=6]="DRAG",e[e.SCALE=7]="SCALE",e[e.PULL_DOWN=8]="PULL_DOWN",e[e.PULL_UP=9]="PULL_UP"}(ae||(ae={})),function(e){e[e.UNKNOWN_OPERATION_DIRECTION=0]="UNKNOWN_OPERATION_DIRECTION",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT"}(se||(se={})),function(e){e[e.UNKNOWN_STATUS=0]="UNKNOWN_STATUS",e[e.START=1]="START",e[e.RETRY=2]="RETRY",e[e.PAUSE=3]="PAUSE",e[e.RESUME=4]="RESUME",e[e.PENDING=5]="PENDING",e[e.PROCESSING=6]="PROCESSING",e[e.SUCCESS=7]="SUCCESS",e[e.FAIL=8]="FAIL",e[e.CANCEL=9]="CANCEL",e[e.FINISH=10]="FINISH"}(ce||(ce={}));var pe,fe,de,he=function(e){this.type=ie.USER_OPERATION,this.operation_type=ae.CLICK,this.status=ce.UNKNOWN_STATUS;var t=e.sessionId,n=e.currentUrlPackage,r=e.referUrlPackage,o=e.name,i=e.params,a=e.type,s=e.contentPackage,c=e.status,u=e.taskType,l=e.operationDirection;c&&(this.status=void 0===ce[c]?ce.UNKNOWN_STATUS:ce[c]),u&&(this.type=void 0===ie[u]?ie.USER_OPERATION:ie[u]),this.operation_type=ae[a],l&&(this.operation_direction=se[l]||se.UNKNOWN_OPERATION_DIRECTION),this.session_id=t,this.url_package=n,this.refer_url_package=r,this.content_package=s,this.element_package={action:o,params:JSON.stringify(i)}},ge=function(e){var t=e.name,n=e.params,r=e.currentUrlPackage,o=e.referUrlPackage,i=p(e,["name","params","currentUrlPackage","referUrlPackage"]);this.key=t,this.value=JSON.stringify(l(l({url_package:r,refer_url_package:o},n),i))},ve=[["a7","640x1136",["iPhone 5","iPhone 5s"]],["a7","1536x2048",["iPad Air","iPad Mini 2","iPad Mini 3"]],["a8","640x1136",["iPod touch (6th gen)"]],["a8","750x1334",["iPhone 6"]],["a8","1242x2208",["iPhone 6 Plus"]],["a8","1536x2048",["iPad Air 2","iPad Mini 4"]],["a9","640x1136",["iPhone SE"]],["a9","750x1334",["iPhone 6s"]],["a9","1242x2208",["iPhone 6s Plus"]],["a9x","1536x2048",["iPad Pro (1st gen 9.7-inch)"]],["a9x","2048x2732",["iPad Pro (1st gen 12.9-inch)"]],["a10","750x1334",["iPhone 7"]],["a10","1242x2208",["iPhone 7 Plus"]],["a10x","1668x2224",["iPad Pro (2th gen 10.5-inch)"]],["a10x","2048x2732",["iPad Pro (2th gen 12.9-inch)"]],["a11","750x1334",["iPhone 8"]],["a11","1242x2208",["iPhone 8 Plus"]],["a11","1125x2436",["iPhone X"]],["a12","828x1792",["iPhone Xr"]],["a12","1125x2436",["iPhone Xs"]],["a12","1242x2688",["iPhone Xs Max"]],["a12x","1668x2388",["iPad Pro (3rd gen 11-inch)"]],["a12x","2048x2732",["iPad Pro (3rd gen 12.9-inch)"]]],me=(pe="",function(){if(pe)return pe;var e=window.devicePixelRatio||1,t=Math.floor(Math.min(screen.width,screen.height)*e),n=Math.floor(Math.max(screen.width,screen.height)*e);return pe=t+"x"+n}),ye=(fe="",function(){if(fe)return fe;var e=document.createElement("canvas").getContext("webgl");if(e){var t=e.getExtension("WEBGL_debug_renderer_info");fe=t?e.getParameter(t.UNMASKED_RENDERER_WEBGL):"unknown"}else fe="unknown";return fe}),be=(de="",function(){if(de)return de;var e=_(),t=C();if("iOS"!==e.os.name||t)return e.device.model||"unknown";var n=ye(),r=me(),o=n.match(/^apple\s+([_a-z0-9-]+)\s+gpu$/i);if(!o)return de="unknown";for(var i=0,a=ve;i1e8&&(t=0),function(e,t){try{if(window&&window.localStorage)return window.localStorage.setItem(e,JSON.stringify(t)),!0}catch(e){return!1}}(e,t+1),t}return Se[e]||(Se[e]=0),Se[e]++};!function(e){e[e.UNKNOWN_NETWORK=0]="UNKNOWN_NETWORK",e[e.NOT_CONNECTED=1]="NOT_CONNECTED",e[e.WIFI=2]="WIFI",e[e.MOBILE_4G=3]="MOBILE_4G",e[e.MOBILE_3G=4]="MOBILE_3G",e[e.MOBILE_2G=5]="MOBILE_2G",e[e.MOBILE_UNKNOWN=6]="MOBILE_UNKNOWN"}(ke||(ke={})),function(e){e[e.UNKNOWN_PLATFORM=0]="UNKNOWN_PLATFORM",e[e.ANDROID_PHONE=1]="ANDROID_PHONE",e[e.ANDROID_PAD=2]="ANDROID_PAD",e[e.IPHONE=3]="IPHONE",e[e.IPAD=4]="IPAD",e[e.WINDOWS_PC=5]="WINDOWS_PC",e[e.ANDROID_PHONE_H5=6]="ANDROID_PHONE_H5",e[e.IPHONE_H5=7]="IPHONE_H5",e[e.OUTSIDE_ANDROID_H5=8]="OUTSIDE_ANDROID_H5",e[e.OUTSIDE_IOS_H5=9]="OUTSIDE_IOS_H5",e[e.PC_WEB=10]="PC_WEB"}(xe||(xe={})),function(e){e.NATIVE="NATIVE",e.H5="H5",e.MP_WECHAT="MP_WECHAT",e.MP_ALIPAY="MP_ALIPAY",e.MP_BAIDU="MP_BAIDU",e.WEB="WEB"}(Oe||(Oe={}));var Ee={unknown:ke.UNKNOWN_NETWORK,none:ke.NOT_CONNECTED,wifi:ke.WIFI,"4g":ke.MOBILE_4G,"3g":ke.MOBILE_3G,"2g":ke.MOBILE_2G,"slow-2g":ke.MOBILE_2G};function je(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return Ee.unknown;var t=e.type,n=e.effectiveType;return Ee[t]||Ee[n]||Ee.unknown}function Ie(){var e=_();if(!e.os.name)return xe.UNKNOWN_PLATFORM;var t=C();return"Android"===e.os.name?t?xe.ANDROID_PHONE_H5:xe.OUTSIDE_ANDROID_H5:"iOS"===e.os.name?t?xe.IPHONE_H5:xe.OUTSIDE_IOS_H5:xe.PC_WEB}var Ae=[["identity_package","device_id"],["identity_package","global_id"],["identity_package","user_id"],["app_package","product"],["app_package","version_name"],["app_package","package_name"],["app_package","product_name"],["app_package","channel"],["network_package","type"]];var Te,Ce=0,Le=0,Re=M("log_session_id"),Ue=function(){function e(t,n){if(this.identity_package={device_id:P(),global_id:"",user_id:""},this.app_package={language:navigator.language,platform:Ie(),container:Oe.H5,package_name:"",product_name:"",version_name:x("appver")||"",channel:""},this.device_package={os_version:_().os.version||"unknown",model:be(),ua:navigator.userAgent},this.network_package={type:je()},this.need_encrypt=!1,this.sdk_version="3.7.16",function e(t,n){n&&Object.keys(n).forEach((function(r){var o=n[r];"object"==typeof o&&"h5_extra_attr"!==r?e(t[r],o):o&&(t[r]=o)}))}(this,t),C()||function(e,t){for(var n=0,r=Ae;n-1){r=t[s];break}}return r},e}(),Ke={device_id:"",global_id:"",union_id:"",user_id:"",product:0,channel:"",version_name:"",package_name:"",product_name:"",network_type:"unknown",appType:We.H5,service_name:"",sub_biz:"",need_encrypt:!1,safety_id:"",experiment:[],h5_extra_attr:{}},Ge=function(){function e(){this.events={}}return e.prototype.on=function(e,t){t&&"function"==typeof t&&(this.events[e]=this.events[e]||[],this.events[e].push(t))},e.prototype.off=function(e,t){this.events[e]&&(t&&"function"==typeof t&&E(this.events[e],t),t||(this.events[e]=[]))},e.prototype.emit=function(e){for(var t=[],n=1;nthis.options.crashThreshold&&this.emit("crash",this.historyMoniorInfo)},t.prototype.start=function(){var e=this;this.checkHistoryCrash(),this.updateIntervalId=window.setInterval((function(){e.update()}),this.options.updateInterval),this.update()},t.prototype.update=function(){if(window.performance&&window.performance.memory){var e={time:(new Date).valueOf(),memory:{limit:window.performance.memory.jsHeapSizeLimit/1024,total:window.performance.memory.totalJSHeapSize/1024,used:window.performance.memory.usedJSHeapSize/1024}};try{localStorage.setItem(this.monitorId,JSON.stringify(e))}catch(e){}}},t.key="crachMonitor",t}(Je),Xe={interval:1e4,decimals:2},Ze=function(e){function t(t,n){var r=e.call(this)||this;return r.options=l({},Xe),r.count=0,Object.assign(r.options,n),r.on("performance",(function(e){t.collect("CUSTOM","fps",{fps:e})})),r.start(),r}return u(t,e),t.prototype.destroy=function(){this.off("performance"),this.stop()},t.prototype.start=function(){this.loop(),this.fpsTick()},t.prototype.fpsTick=function(){var e=this;this.fpsTickId=function(e){return(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||L).call(this,e)}((function(){e.count++,e.fpsTick()}))},t.prototype.loop=function(){var e=this;this.loopBeginTime=(new Date).valueOf(),this.loopId=window.setTimeout((function(){e.loopEndTime=(new Date).valueOf();var t=e.calculate();e.emit("performance",t),e.count=0,e.loop()}),this.options.interval)},t.prototype.stop=function(){!function(e){(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||R).call(this,e)}(this.fpsTickId),window.clearTimeout(this.loopId)},t.prototype.calculate=function(){return+(1e3/((this.loopEndTime-this.loopBeginTime)/this.count)).toFixed(this.options.decimals)},t.key="fpsMonitor",t}(Je),et="undefined"!=typeof window?window.performance:null,tt=et&&et.timing||null,nt=(et&&et.getEntriesByType&&et.getEntriesByType("navigation")[0],{dnsLookup:{end:"domainLookupEnd",start:"domainLookupStart"},tcpConnection:{end:"connectEnd",start:"connectStart"},resourceLoad:{end:"responseEnd",start:"requestStart"},jsCost:{custom:function(){if("function"!=typeof performance.getEntries)return 0;var e=performance.getEntries(),t=e[0],n=e.filter((function(e){return"script"===e.initiatorType}))[0];return n?t.domComplete-n.fetchStart:0}},documentContentLoaded:{end:"domComplete",start:"fetchStart"},load:{end:"loadEventEnd",start:"fetchStart"},timeToFirstByte:{end:"loadEventEnd",start:"fetchStart"},firstScreen:{custom:function(e,t){var n=(t||{}).endPoint,r=void 0!==n?n:(new Date).valueOf();return tt&&r-tt.fetchStart||0}},whiteScreen:{custom:function(e,t){var n=(t||{}).endPoint,r=void 0!==n?n:(new Date).valueOf();return tt&&r-tt.fetchStart||0}}}),rt=function(e){function t(t){var n=e.call(this)||this;return n.load=function(){setTimeout((function(){var e=n.collect();e&&["load","documentContentLoaded","dnsLookup","tcpConnection","jsCost","timeToFirstByte"].forEach((function(t){var r;"jsCost"===t&&0===e[t]||n.weblog.collect("CUSTOM",ot[t],((r={})[ot[t]]=e[t],r))}))}))},n.weblog=t,tt?(j(window,"load",n.load),n.on("perf",(function(e){var t,r=e.key,o=e.data;n.weblog.collect("CUSTOM",ot[r],((t={})[ot[r]]=o[r],t))})),n):(_e("The Timing Monitor need performance APIs to Support!"),n)}return u(t,e),t.prototype.destroy=function(){I(window,"load",this.load),this.off("perf")},t.prototype.calculate=function(e,t){var n=nt[e];if(!n)throw new Error("The perf key is not correct!");return"function"==typeof n.custom?n.custom(e,t):tt[nt[e].end]-tt[nt[e].start]},t.prototype.mark=function(e,t){var n=this.collect(e,t);this.emit("perf",{key:e,data:n})},t.prototype.collect=function(e,t){var n,r=this;if(tt){if(e)return(n={})[e]=this.calculate(e,t),n;return Object.keys(nt).reduce((function(e,n){return e[n]=r.calculate(n,t),e}),{})}},t.key="timingMonitor",t}(Je),ot={load:"total_download_cost",documentContentLoaded:"operational_cost",dnsLookup:"dns_query_cost",tcpConnection:"tcp_cost",jsCost:"js_cost",whiteScreen:"white_screen_cost",firstScreen:"first_screen_cost",timeToFirstByte:"ttfb_cost"},it=function(){var e="undefined"!=typeof window?window.performance:null;if(e&&e.timing){if("function"==typeof e.timing.toJSON){var t=e.timing.toJSON();return t&&!t.redirectStart&&(t.redirectStart=t.navigationStart),t}return e.timing}return null};var at,st,ct;!function(e){e.LOAD="load",e.RES="resource",e.API="api",e.ERROR="error",e.SDK_ERROR="sdk_error",e.CUSTOM="custom",e.BATCH="batch"}(at||(at={})),function(e){e.LOAD="load_statistics",e.RES="resource_statistics",e.API="api_statistics",e.ERROR="error_statistics",e.SDK_ERROR="sdk_error",e.CUSTOM="custom_statistics"}(st||(st={})),function(e){e.SCRIPT="script",e.RES="res",e.API="api",e.VIDEO="video"}(ct||(ct={}));var ut={redirect:{end:"fetchStart",start:"navigationStart"},dns:{end:"domainLookupEnd",start:"domainLookupStart"},dns_start:{end:"domainLookupEnd",start:"navigationStart"},tcp:{end:"connectEnd",start:"connectStart"},tcp_start:{end:"connectEnd",start:"navigationStart"},redirect_count:{custom:function(e,t){return t.redirectCount}},ssl:{custom:function(e,t){return 0===t.secureConnectionStart?null:t.connectEnd-t.secureConnectionStart}},ssl_start:{custom:function(e,t){return 0===t.secureConnectionStart?null:t.secureConnectionStart-t.redirectStart}},ttfb:{end:"responseStart",start:"requestStart"},trans:{end:"responseEnd",start:"responseStart"},dom_parse:{end:"domInteractive",start:"responseEnd"},dom_parse_start:{end:"domInteractive",start:"navigationStart"},blank:{end:"domLoading",start:"navigationStart"},fb:{end:"responseStart",start:"navigationStart"},dom_ready:{end:"domContentLoadedEventEnd",start:"navigationStart"},total:{end:"loadEventStart",start:"navigationStart"},resource:{end:"loadEventStart",start:"domContentLoadedEventEnd"},fp:{custom:function(){if("function"!=typeof performance.getEntries)return null;var e=performance.getEntries().filter((function(e){return"first-paint"===e.name}))[0];return e?Math.ceil(e.startTime+e.duration):null}},js_cost:{custom:function(){if("function"!=typeof performance.getEntries)return null;var e=it(),t=performance.getEntries(),n=performance.getEntries().filter((function(e){return"navigation"===e.initiatorType}))[0],r=t.filter((function(e){return"script"===e.initiatorType}))[0],o=n?n.domComplete:e.domComplete-e.navigationStart;return r&&o?o-r.fetchStart:null}},tti:{end:"domInteractive",start:"navigationStart"},protocol:{custom:function(e,t){return t.nextHopProtocol}},dom_num:{custom:function(){return"undefined"!=typeof document?document.all.length:null}}},lt={fetch_start:{custom:function(e,t){return Math.round(t.fetchStart)}},dns:{end:"domainLookupEnd",start:"domainLookupStart",cachedSkip:!0},tcp:{end:"connectEnd",start:"connectStart",cachedSkip:!0},ssl:{cachedSkip:!0,custom:function(e,t){return 0===t.secureConnectionStart?null:t.connectEnd-t.secureConnectionStart}},ttfb:{end:"responseStart",start:"requestStart",cachedSkip:!0},trans:{end:"responseEnd",start:"responseStart",cachedSkip:!0},fb:{end:"responseStart",start:"fetchStart",cachedSkip:!0},total:{end:"responseEnd",start:"fetchStart"},size:{cachedSkip:!0,custom:function(e,t){return t.encodedBodySize},noThrottle:!0},protocol:{custom:function(e,t){return t.nextHopProtocol}},file:{custom:function(e,t){return t.name},noThrottle:!0},res_type:{custom:function(e,t){return t.initiatorType}},cached:{custom:function(e,t){return 0===t.transferSize||null==t.transferSize&&0===t.domainLookupStart},noThrottle:!0}},pt=["//wlog.kuaishou.com/rest/n/log/web/collect","/rest/wd/common/log/collect/misc2"],ft=/^(https?:)?\/\//;function dt(e,t){if(!e)return!1;var n=e.replace(ft,"");return t.some((function(e){return n.indexOf(e)>=0}))}var ht={};function gt(e){var t=ht[e];t?t.endTime||(t.endTime=(new Date).getTime(),t.duration=t.endTime-t.startTime,delete t.startTime,delete t.endTime):ht[e]={startTime:(new Date).getTime()}}function vt(e){Object.assign(bt,e)}var mt,yt,bt={},wt=function(){return"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)},_t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return{name:e,value:t,delta:0,entries:[],id:wt(),isFinal:!1}},kt=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},xt=!1,Ot=!1,St=function(e){xt=!e.persisted},Pt=function(){addEventListener("pagehide",St),addEventListener("beforeunload",(function(){}))},Et=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ot||(Pt(),Ot=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:xt})}),{capture:!0,once:t})},jt=function(e,t,n,r){var o;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(o||0),(t.delta||t.isFinal||void 0===o)&&(e(t),o=t.value))}},It=function(){return void 0===mt&&(mt="hidden"===document.visibilityState?0:1/0,Et((function(e){var t=e.timeStamp;return mt=t}),!0)),{get timeStamp(){return mt}}},At=function(){return yt||(yt=new Promise((function(e){return["scroll","keydown","pointerdown"].map((function(t){addEventListener(t,e,{once:!0,passive:!0,capture:!0})}))}))),yt},Tt=["KUAISHOU","THANOS","NEBULA"],Ct=function(e){function t(t,n){var r=e.call(this)||this;return r.kpn=W(),r.plugins=[],r.logQueue=[],r.queueConfig={wait:1500,maxBatchLength:200},r.batchTimer=0,r.startedLoadReport=!1,r.radarSessionId="",r.isInKwai=Tt.indexOf(r.kpn)>=0,r.isUsingBridge=null,r.isUsingLegacy=null,r.isUsingDetachedReport=null,r.isSupportedYodaConcat=null,r.customDimension={},r.observeResource=function(e){e.getEntriesByType("resource").forEach((function(e){return r.reportPerformance(e)}))},r.asyncReportTiming=function(){gt("radarCreated-onload"),gt("onload-firstReport"),setTimeout((function(){gt("asyncReportTiming"),r.reportPerformance(it()),r.startedLoadReport=!0;try{r.observeResource(performance),function(e){var t=_t("FID"),n=It(),r=function(e){e.startTime1&&void 0!==arguments[1]&&arguments[1],r=_t("CLS",0),o=function(e){e.hadRecentInput||(r.value+=e.value,r.entries.push(e),t())},i=kt("layout-shift",o);i&&(t=jt(e,r,i,n),Et((function(e){var n=e.isUnloading;i.takeRecords().map(o),n&&(r.isFinal=!0),t()})))}((function(e){r.logCollect({key:at.CUSTOM,value:{cls:e.value}}),vt({cls:e.value})})),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=_t("LCP"),o=It(),i=function(e){var n=e.startTime;n6e4||e<0){var a="["+n+" 异常]: "+e+",原始数据为:"+t.end+": "+i+" - "+t.start+": "+o;return this.logCollect({key:at.SDK_ERROR,value:{msg:a}}),null}return Math.round(e)},t.prototype.reportPerformance=function(e){this.plugins.forEach((function(t){t.when(e)&&t.onPerfReport(e)}))},t.prototype.calculate=function(e,t,n){var r=t[e];if(r){if(r.cachedSkip)if(this.calculate("cached",t,n))return;if("function"==typeof r.custom){var o=r.custom(e,n);return this.throttle(o,r,e)}var i=r.end,a=r.start,s=+n[i],c=+n[a],u=s-c;return this.throttle(u,r,e,{startPoint:c,endPoint:s})}_e("perf key "+e+" is unexpected!")},t.prototype.generateLog=function(e,t){var n=this,r={};return Object.keys(e).forEach((function(o){var i=o,a=n.calculate(i,e,t);null!=a&&(r[i]=a)})),r},t.prototype.detectIsUsingBridge=function(e){return f(this,void 0,void 0,(function(){return d(this,(function(t){switch(t.label){case 0:return e&&"function"==typeof e.isSupportBridgeLogger?[4,e.isSupportBridgeLogger()]:[3,2];case 1:return[2,t.sent()];case 2:return[2,!1]}}))}))},t.prototype.detectIsSupportedYodaConcat=function(e){return f(this,void 0,void 0,(function(){return d(this,(function(t){switch(t.label){case 0:return e&&"function"==typeof e.isSupportBridgeLogger?[4,e.isSupportBridgeLogger("sendRadarLog")]:[3,2];case 1:return[2,t.sent()];case 2:return[2,!1]}}))}))},t.prototype.subDimension=function(e){this.customDimension&&(e.dimension||(e.dimension={}),Object.assign(e.dimension,this.customDimension))},t.prototype.nanoId=function(){for(var e=1e9*Math.random()>>>0,t=[],n=0;n<7;n++)t.push("0123456789ABCDEF".charAt(16*Math.random()));return e+t.join("")},t.prototype.flush=function(){if(this.options&&this.startedLoadReport){var e=JSON.parse(this.weblog.commomPackage.getH5ExtraAttr()),t={app_version_name:this.weblog.commomPackage.getVersionName()},n=JSON.stringify(Object.assign(e,t)),r={project_id:this.options.projectId,radar_session_id:this.radarSessionId,h5_extra_attr:n};this.weblog.collect("RADAR","radar_log",l(l({currentUrlPackage:this.currentUrlPackage},r),{data:this.logQueue})),this.logQueue=[]}},t.prototype.decorateLog=function(e){this.currentUrlPackage||(this.currentUrlPackage=this.weblog.currentUrlPackage),this.customDimension&&this.subDimension(e),this.currentUrlPackage.page!==this.weblog.currentUrlPackage.page&&(this.flush(),this.currentUrlPackage=this.weblog.currentUrlPackage)},t.prototype.logCollect=function(e){var t=this;this.options&&(this.batchTimer&&clearTimeout(this.batchTimer),this.decorateLog(e),this.logQueue.push(e),this.logQueue.length>this.queueConfig.maxBatchLength?this.flush():this.batchTimer=window.setTimeout((function(){t.flush()}),this.queueConfig.wait))},t}(Je),Lt=function(e){this.radar=e},Rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.key="navigation",t.eventName="onpagehide"in window?"pagehide":"beforeunload",t.logData={},t.logSended=!1,t.record={fmp:!1,base:!1},t.reportOnUnload=function(e){t.logSended||t.radar.isSupportedYodaConcat||(t.logSended=!0,t.reportFirstScreen(Object.assign(t.logData,bt)),t.radar.logCollect(t.data),"noflash"!==e&&(t.radar.flush(),t.radar.weblog.flush()))},t}return u(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.sepDimension({key:at.LOAD,value:this.logData})},enumerable:!1,configurable:!0}),t.prototype.created=function(){return f(this,void 0,void 0,(function(){var e=this;return d(this,(function(t){return this.radar.isUsingDetachedReport&&(this.delay=setTimeout((function(){return e.reportOnUnload("noflash")}),1e4)),j(window,this.eventName,this.reportOnUnload),[2]}))}))},t.prototype.when=function(e){if(e.custom){var t=(e.entry||{}).key;return["fmp","play_clicked","play_idr"].indexOf(t)>-1}return!e.entryType||"navigation"===e.entryType},t.prototype.onPerfReport=function(e){return f(this,void 0,void 0,(function(){var t,n,r,o,i;return d(this,(function(a){return e.custom?(t=e.entry)&&(n=t.key,r=t.value,Object.assign(this.logData,((i={})[n]=r,i)),"fmp"===n&&(this.record.fmp=!0)):(o=this.radar.generateLog(ut,e),Object.assign(this.logData,o),this.record.base=!0),this.radar.isSupportedYodaConcat?this.radar.logCollect(this.data):this.radar.isUsingDetachedReport&&this.record.fmp&&this.record.base&&this.reportOnUnload("noflash"),[2]}))}))},t.prototype.destroy=function(){clearTimeout(this.delay),I(window,this.eventName,this.reportOnUnload)},t.prototype.sepDimension=function(e){var t=e.key,n=e.value,r=n.protocol;return{key:t,value:p(n,["protocol"]),dimension:{protocol:r}}},t.prototype.reportFirstScreen=function(e){if(e.play_clicked&&e.play_idr){var t=e.play_idr-e.play_clicked;t>0&&t<6e4&&(this.logData.play_first_screen=t)}},t}(Lt),Ut=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.key="resource",t}return u(t,e),t.prototype.created=function(){},t.prototype.when=function(e){return!dt(e.name,this.radar.ignoreList)&&"resource"===e.entryType},t.prototype.onPerfReport=function(e){var t=this.radar.generateLog(lt,e);this.radar.logCollect(this.sepDimension({key:at.RES,value:t}))},t.prototype.destroy=function(){},t.prototype.sepDimension=function(e){var t=e.key,n=e.value,r=n.protocol,o=n.file,i=n.cached,a=n.res_path,s=n.failed,c=n.res_type;return{key:t,value:p(n,["protocol","file","cached","res_path","failed","res_type"]),dimension:{protocol:r,file:o,cached:i,failed:s,res_path:a,res_type:c}}},t}(Lt),Nt=g((function(e){(function(t,n){var r,o,i,a,s,c,u,l,p,f,d,g,v,m,y,b,w,_,k,x,O,S,P,E,j,I,A=[].indexOf||function(e){for(var t=0,n=this.length;t=0||(i=i===n?r[e].length:i,r[e].splice(i,0,t))},t[u]=function(e,t){var i;e!==n?(t===n&&(r[e]=[]),-1!==(i=o(e).indexOf(t))&&o(e).splice(i,1)):r={}},t[i]=function(){var n,r,i,a,s,c,u;for(r=(n=P(arguments)).shift(),(!e||n[0]instanceof Event)&&(n[0]=k(n[0],_(r,n[0]||{}))),(a=t["on"+r])&&a.apply(t,n),i=s=0,c=(u=o(r).concat(o("*"))).length;s2)throw"invalid hook";return j[l]("before",e,t)},j.after=function(e,t){if(e.length<2||e.length>3)throw"invalid hook";return j[l]("after",e,t)},j.enable=function(){f[m]=v,"function"==typeof d&&(f.fetch=d),s&&(f.FormData=g)},j.disable=function(){f[m]=j[m],f.fetch=j.fetch,s&&(f.FormData=s)},y=j.headers=function(e,t){var n,r,o,i,a,s,c,u,l;switch(null==t&&(t={}),typeof e){case"object":for(o in r=[],e)a=e[o],i=o.toLowerCase(),r.push(i+":\t"+a);return r.join("\n")+"\n";case"string":for(c=0,u=(r=e.split("\n")).length;ce&&e<4;)s.readyState=++e,1===e&&s[i]("loadstart",{}),2===e&&E(),4===e&&(E(),P()),s[i]("readystatechange",r||{}),4===e&&(!1===h.async?t():setTimeout(t,0))},t=function(){c||s[i]("load",{}),s[i]("loadend",{}),c&&(s.readyState=0)},e=0,b=function(e,t){var r,o;4===e?(r=j.listeners("after"),(o=function(){var e;return r.length?2===(e=r.shift()).length?(e(h,v),o()):3===e.length&&h.async?e(h,v,o):o():n(4,t)})()):n(e,t)},s=(h={}).xhr=o(),I.onreadystatechange=function(e){try{2===I.readyState&&d()}catch(e){}4===I.readyState&&(_=!1,d(),f()),b(I.readyState,e)},u=function(){c=!0},s[l]("error",u),s[l]("timeout",u),s[l]("abort",u),s[l]("progress",(function(){e<3?b(3):s[i]("readystatechange",{target:I})})),("withCredentials"in I||j.addWithCredentials)&&(s.withCredentials=!1),s.status=0;for(T=0,C=(L=r.concat(p)).length;T-1)return!0}return!1},t.prototype.onPerfReport=function(e){if(e.custom){var t=e.entry||{},n=t.key,r=t.value;this.collect({error_type:ct.VIDEO,error_cons_type:n,msg:r})}},t.prototype.sepDimension=function(e){var t=e.key;if("error"===t){var n=e.value,r=n.file,o=n.error_cons_type,i=n.error_type,a=n.msg,s=n.col,c=n.line;return{key:t,value:p(n,["file","error_cons_type","error_type","msg","col","line"]),dimension:{error_cons_type:o,file:r,error_type:i,msg:a,col:s,line:c}}}var u=e.value,l=u.protocol,f=u.file,d=u.cached,h=u.res_path,g=u.failed,v=u.res_type;return{key:t,value:p(u,["protocol","file","cached","res_path","failed","res_type"]),dimension:{protocol:l,file:f,cached:d,failed:g,res_path:h,res_type:v}}},t.prototype.collect=function(e){this.radar.logCollect(this.sepDimension({key:at.ERROR,value:e}))},t.prototype.isScriptError=function(e){return e.message||null!=e.lineno},t.prototype.created=function(){j(window,"error",this.onResError,!0),j(window,"unhandledrejection",this.onPromiseError)},t.prototype.destroy=function(){I(window,"error",this.onResError,!0),I(window,"unhandledrejection",this.onPromiseError)},t}(Lt),zt=["play_block","play_error"],qt=["c_dimension1","c_dimension2","c_dimension3"],Ft=function(e){function t(t,n){var r,o=e.call(this,t,n)||this;return o.customReported=[],o.ignoreList=(r=o.options&&o.options.ignoreList,void 0===r&&(r=[]),r.concat(pt).map((function(e){return e.replace(ft,"")}))).concat(t.logger.url),o.validOption()?(o.use(Rt,o),o.use(Ut,o),n&&n.unuseAPIPlugin||o.use(Dt,o),n&&n.unuseErrorPlugin||o.use(Bt,o),e.prototype.created.call(o),o):o}return u(t,e),t.samplingControl=function(e){if(!e)return!1;var t=e.sampling;return Math.random()-1)return null;-1===zt.indexOf(e)&&this.customReported.push(e);var n=t;if("string"!=typeof t){var r=function(e){var t="undefined"!=typeof window?window.performance:null;if(!t)return{value:null};if(null!=e)return{value:e-t.timing.navigationStart,detail:{start:"navigationStart",startPoint:t.timing.navigationStart,end:"customTime",endPoint:e}};if("function"==typeof t.now)return{value:t.now(),detail:{start:"navigationStart",startPoint:t.timing.navigationStart,end:"perfNowAPI",endPoint:t.now()}};var n=Date.now();return{value:n-t.timing.navigationStart,detail:{start:"navigationStart",startPoint:t.timing.navigationStart,end:"dateNow",endPoint:n}}}(t);if(null==r.value)return;n=this.throttle(r.value,r.detail,"fmp",r.detail)}return null!=n?(this.reportPerformance({custom:!0,entry:{key:e,value:n}}),n):void 0},t.prototype.fmp=function(e){var t=this.reportTimePoint("fmp",e);if(t){try{performance.timing&&(performance.timing.fmp=t)}catch(e){}var n=N(location.search.slice(1));1!=+x("debug")&&1!=+n.debug||console.warn("[radar] fmp: ",t),this.logCollect({key:at.CUSTOM,value:{fmp:t,merge:!0}})}},t.prototype.playClicked=function(e){this.reportTimePoint("play_clicked",e)},t.prototype.playIDR=function(e){this.reportTimePoint("play_idr",e)},t.prototype.playBlock=function(e){this.reportTimePoint("play_block",e)},t.prototype.playError=function(e){this.reportTimePoint("play_error",e)},t.prototype.setDimensions=function(e){var t=this,n=Object.keys(e);n.some((function(e){return-1===qt.indexOf(e)}))&&_e("[Radar] 传入的自定义维度只能为 "+qt.join("、")+",目前传入的是:"+n.join("、")),n.forEach((function(n){var r=n;null==e[r]?delete t.customDimension[r]:t.customDimension[r]=e[r]}))},t.prototype.validOption=function(){if(!this.options)return!1;var e=this.options,t=e.sampling;return"string"!=typeof e.projectId?(_e("[Radar] 必须配置 projectId 属性"),!1):!(t>1||t<0)||(_e("[Radar] 采样率 sampling 必须在 0~1 之间"),!1)},t.key="radar",t}(Ct),Wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.fmp=function(){},t.prototype.playClicked=function(){},t.prototype.playIDR=function(){},t.prototype.playBlock=function(){},t.prototype.playError=function(){},t.prototype.setDimensions=function(){},t.prototype.destroy=function(){},t.key="radar",t}(Je),Qt=function(e){function t(t,n){var r=e.call(this)||this;return r.oldPushState=history.pushState,r.oldReplaceState=history.replaceState,r.beginTime=tt&&tt.fetchStart||(new Date).valueOf(),r.visibilityChange=function(){r.autoPVFilter(location.href,null)&&("hidden"===document.visibilityState&&r.weblog.collect("PV",{type:"hidden",beginTime:r.beginTime,auto:!0}),"visible"===document.visibilityState&&r.weblog.collect("PV",{type:"visible",beginTime:r.beginTime,auto:!0}))},r.proxyPushState=function(e,t,n){return r.urlChange(),r.oldPushState.call(history,e,t,n)},r.proxyReplaceState=function(e,t,n){return r.urlChange(),r.oldReplaceState.call(history,e,t,n)},r.urlChange=function(){setTimeout((function(){if(!r.autoPVFilter(location.href,r.weblog.currentUrl))return!1;r.weblog.collect("PV",{type:"leave",beginTime:r.beginTime,auto:!0}),r.weblog.updateCurrentUrlPackage(location.href),r.weblog.collect("PV",{type:"enter",beginTime:r.beginTime,auto:!0}),r.beginTime=(new Date).valueOf()}))},r.autoPVFilter=n||function(){return!0},r.weblog=t,r.autoPVFilter(location.href,null)&&r.weblog.collect("PV",{type:"enter",beginTime:r.beginTime,auto:!0}),history.pushState=r.proxyPushState,history.replaceState=r.proxyReplaceState,j(window,U()?"popstate":"hashchange",r.urlChange),j(document,"visibilitychange",r.visibilityChange),r}return u(t,e),t.prototype.destroy=function(){this.weblog.sendImmediately("PV",{type:"leave",auto:!0}),I(window,U()?"popstate":"hashchange",this.urlChange),I(document,"visibilitychange",this.visibilityChange),history.pushState=this.oldPushState,history.replaceState=this.oldReplaceState},t.key="autoPV",t}(Je),Ht=function(e){function t(t,n){void 0===t&&(t={});var r=e.call(this)||this;r.version="3.7.16",r.logConfig={},r.isSampled=!0,r.logger=new oe,r.plugins={},r.flush=function(){r.logger.flush(!1)},tt||we("Your browser don't support performance API, the auto pv duration may not correct"),r.baseOption=l(l({},Ke),n),r.logConfig=t,r.commomPackage=He(r.baseOption,r.logConfig);var o=t.autoPV,i=t.fps,a=t.timing,s=t.radar,c=t.crash,u=t.autoPVFilter,f=t.referer,d=p(t,["autoPV","fps","timing","radar","crash","autoPVFilter","referer"]);r.currentUrlPackage=new Ve(location.href,"web",r.logConfig.urlMap);var h="",g="web";return f?(h=f.value,g=f.type&&f.type||g):document.referrer&&(h=document.referrer),h&&(r.referUrlPackage=new Ve(h,g,r.logConfig.urlMap)),r.logger.init(d,r.commomPackage),r.isSampled=r.getIfSampled(),j(window,"pagehide",r.flush),j(window,"beforeunload",r.flush),r.initBuildInPlugins({radar:s,autoPV:o,fps:i,timing:a,crash:c,autoPVFilter:u}),r}return u(t,e),t.prototype.getIfSampled=function(){var e=this.logConfig.sampleRate||this.logger.config.sampleRate,t=this.logConfig.sampleRateFn||this.logger.config.sampleRateFn;if(t)try{return t()}catch(e){return console.log(e,"抽样函数报错"),!1}return!(!e||e<0)&&Math.random() * Licensed under MIT License */!function(o,i){"use strict";var a="model",s="name",c="type",u="vendor",l="version",p="mobile",f="tablet",d="smarttv",h={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},g={rgx:function(e,t){for(var n,r,o,i,a,s,c=0;c0?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;c+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r-1||u.indexOf("Adr")>-1;var f=function(){if(!l)return!1;var e=u.match(/OS (\d+)_(\d+)_?(\d+)?/);if(!e||e.length<3)return!1;var t=parseFloat("".concat(e[1],".").concat(e[2]));return t>0&&t}(),d=/ (Kwai|Kwai_Lite|Kwai_Pro|ksthanos|ksNebula|livemate|kswv)\//i.test(u),h=/ Kwai\//i.test(u),g=/ACVideoCore/i.test(u),v=/ Yoda\//i.test(u),m=/ ksNebula\//i.test(u),y=/WKWebView/i.test(u),b=/UIWebView/i.test(u),w=/ MicroMessenger\//i.test(u),_=/ QQ\//i.test(u),k=/ MQQBrowser/i.test(u),x=/__weibo__/i.test(u),O={iOSVersion:f,isAndroid:p,isIOS:l,isInQQ:_,isInApp:d,isInKwai:h,isInYoda:v,isInAcFun:g,isInWeibo:x,isInNebula:m,isInWeChat:w,isInQQBrowser:k,isInWKWebView:y,isInUIWebview:b,supportUniversalLink:f>=9},S=n(58),P=n(7),E=function(){function e(){Object(o.a)(this,e),Object(a.a)(this,"sniff",O),Object(a.a)(this,"isInApp",!1),Object(a.a)(this,"type","base"),Object(a.a)(this,"preloadMap",new Map),Object(a.a)(this,"activityId",window.JIMU.activityId),Object(a.a)(this,"activityToken",window.JIMU.activityToken),this.mUtils=new c.a(this.wxSdkConfig),this.bridge=window.JIMU.bridge,this.logger=new S.a({radar:{projectId:"cd626fbc43",sampling:1}})}var t,n,s,u,l,p,f;return Object(i.a)(e,[{key:"wxSdkConfig",get:function(){return{}}}]),Object(i.a)(e,[{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e.trim(),Object(P.d)(e)?window.open(e,"_blank"):this.launchApp(e,t.launchApp)}},{key:"openInApp",value:function(e,t){this.open(e||location.href,t)}},{key:"launchApp",value:function(e,t){(e||t&&t.scheme)&&(t?(e&&(t=Object.assign({},t,{scheme:e,uLink:t.scheme2uLink&&t.scheme2uLink(e)})),this.mUtils.launchApp.launch(t)):this.openSchema(e))}},{key:"share",value:(f=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"openSchema",value:function(e){var t=document.createElement("iframe");t.src=e,t.style.display="none",document.body.appendChild(t)}},{key:"preload",value:function(e){}},{key:"on",value:(p=Object(r.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.bridge.event.addEventListener(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"off",value:(l=Object(r.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.bridge.event.removeEventListener(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"emit",value:(u=Object(r.a)(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.bridge.event.dispatchEvent({type:t,data:n}));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"showToast",value:(s=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:"normal",e.abrupt("return",this.bridge.ui.showToast({type:n,text:t}));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"setTopBarButton",value:function(e){return this.bridge.ui.setTopBarButton(e)}},{key:"isSupport",value:(n=Object(r.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.bridge.isSupport(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"callBridge",value:function(e,t){return this.bridge.call(e,t)}},{key:"isVersionAbove",value:(t=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,c,u,l,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(("android"!==(n=p.length>1&&void 0!==p[1]?p[1]:"all")||this.sniff.isAndroid)&&("ios"!==n||this.sniff.isIOS)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,this.bridge.system.getAppInfo();case 5:if(r=e.sent,o=r.appver){e.next=9;break}return e.abrupt("return",!1);case 9:if(t!==o){e.next=11;break}return e.abrupt("return",!0);case 11:i=t.split("."),a=o.split("."),s=0,c=Math.max(a.length,i.length);case 14:if(!(sc;)o.f(e,n=r[c++],t[n]);return e}},function(e,t,n){"use strict";var r=n(15),o=n(6),i=n(1),a=n(99),s=RegExp.prototype,c=s.toString,u=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),l="toString"!=c.name;(u||l)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(101).IteratorPrototype,o=n(50),i=n(35),a=n(43),s=n(30),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,u,!1,!0),s[u]=c,e}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(25),o=n(98),i=n(30),a=n(26),s=n(70),c=a.set,u=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(6);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(3),o=n(30),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(15);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(0),o=n(64).includes,i=n(98);r({target:"Array",proto:!0,forced:!n(23)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,n){"use strict";var r=n(0),o=n(84),i=n(12);r({target:"String",proto:!0,forced:!n(85)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(5),o=n(89),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(8),o=n(136),i=n(52),a=n(17);e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,u=0;u1?arguments[1]:void 0)}},function(e,t,n){var r=n(37);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(69),o=n(79);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(1);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){var r=n(1);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(1),o=n(47);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},function(e,t,n){var r=n(1),o=n(3),i=n(29),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";var r=n(152),o=n(156);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n(93),a=n(15),s=n(106),c=n(107),u=n(57),l=n(11),p=n(1),f=n(154),d=n(43),h=n(155);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",y=o[e],b=y&&y.prototype,w=y,_={},k=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof y||!(v||b.forEach&&!p((function(){(new y).entries().next()})))))w=n.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(i(e,!0)){var x=new w,O=x[m](v?{}:-0,1)!=x,S=p((function(){x.has(1)})),P=f((function(e){new y(e)})),E=!v&&p((function(){for(var e=new y,t=5;t--;)e[m](t,t);return!e.has(-0)}));P||((w=t((function(t,n){u(t,w,e);var r=h(new y,t,w);return null!=n&&c(n,r[m],r,g),r}))).prototype=b,b.constructor=w),(S||E)&&(k("delete"),k("has"),g&&k("get")),(E||O)&&k(m),v&&b.clear&&delete b.clear}return _[e]=w,r({global:!0,forced:w!=y},_),d(w,e),v||n.setStrong(w,e,g),w}},function(e,t,n){var r=n(1);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(3)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r=n(11),o=n(103);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},function(e,t,n){"use strict";var r=n(17).f,o=n(50),i=n(131),a=n(41),s=n(57),c=n(107),u=n(70),l=n(157),p=n(13),f=n(106).fastKey,d=n(26),h=d.set,g=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),null!=r&&c(r,e[u],e,n)})),d=g(t),v=function(e,t,n){var r,o,i=d(e),a=m(e,t);return a?a.value=n:(i.last=a={index:o=f(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},m=function(e,t){var n,r=d(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=d(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=d(this),n=m(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),p?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=d(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),i(l.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&r(l.prototype,"size",{get:function(){return d(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t,n){"use strict";var r=n(37),o=n(17),i=n(3),a=n(13),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(0),o=n(159);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(e,t,n){var r=n(5),o=n(72).trim,i=n(47),a=r.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(i+"08")||22!==a(i+"0x16");e.exports=c?function(e,t){var n=o(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){var r=n(6),o=n(68),i=n(3)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0?y+m:""}},function(e,t,n){"use strict";var r=n(74),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),u=s?i.slice(0,s.index):i,l=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var p=0;n.depth>0&&null!==(s=a.exec(i))&&p=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[u]=o:a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,u={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,p),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(v=i(v)?[v]:v),o.call(u,g)?u[g]=r.combine(u[g],v):u[g]=v}return u}(e,n):e,p=n.plainObjects?Object.create(null):{},f=Object.keys(l),d=0;d0&&void 0!==arguments[0]?arguments[0]:{};return s(this,e),(!e.instance||t&&"{}"!==JSON.stringify(t))&&(this.wxSdkConfig=Object.assign(p,t),this.wxPromise=this._sign(),e.instance=this),e.instance}var t,n,r;return t=e,(n=[{key:"_sign",value:function(){var e=this;return new Promise((function(t,n){if(/ MicroMessenger\//.test(navigator.userAgent)){var r=Object.assign({url:location.href.split("#")[0]},e.wxSdkConfig.params),o=location.href,a=new Date;i.crossJson(e.wxSdkConfig.signShareUrl,r,(function(n){1===n.result?(u.error((function(e){t({result:9999,error_msg:e.errMsg}),l++,window.actionLog?window.actionLog.sendAction({action_type:"js-error",action_name:"weixin-jsapi: "+e.errMsg,from:o,value:Math.floor((new Date-a)/1e3)}):window.ksLog&&window.ksLog.sendAction({event:"exception",exceptionType:"JS",message:"weixin-jsapi: "+e.errMsg+(l>1?l:"")})})),u.config({beta:!0,appId:n.appId,timestamp:n.timestamp,nonceStr:n.nonceStr,signature:n.signature,jsApiList:[].concat(e.wxSdkConfig.jsApiList),openTagList:[].concat(e.wxSdkConfig.openTagList)}),u.ready((function(){t({result:1,wx:u,appId:n.appId})}))):t({result:n.result,error_msg:n.error_msg||"signShareUrl api error"})}))}else t({result:9999,error_msg:"not in MicroMessenger app"})}))}},{key:"reSignWx",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.wxSdkConfig=Object.assign(this.wxSdkConfig,e),this.wxPromise=this._sign()}},{key:"wxAsyncReady",value:function(){return this.wxPromise}},{key:"wxShareConfig",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)throw new Error("wxShareAsync arguments error");e.link=f(e.link),delete e.extlog,this.wxAsyncReady().then((function(r){function o(t){return Object.assign({success:function(){window.ksLog&&window.ksLog.sendCountTag(n+"_wechat_share_success_"+t)},fail:function(){window.ksLog&&window.ksLog.sendCountTag(n+"_wechat_share_fail_"+t)}},e)}if(1===r.result){var i=r.wx,a=t.wxSdkConfig.jsApiList||[];a.indexOf("onMenuShareTimeline")>-1&&i.onMenuShareTimeline(o("timeline")),a.indexOf("onMenuShareAppMessage")>-1&&i.onMenuShareAppMessage(o("appmessage")),a.indexOf("onMenuShareQQ")>-1&&i.onMenuShareQQ(o("qq")),a.indexOf("onMenuShareWeibo")>-1&&i.onMenuShareWeibo(o("weibo")),a.indexOf("onMenuShareQZone")>-1&&i.onMenuShareQZone(o("qzone"))}}))}}])&&c(t.prototype,n),r&&c(t,r),e}();t.default=d},function(e,t,n){"use strict";t.postJson=function(e,t,n){var r={result:-400,error_msg:""},o=new XMLHttpRequest;o.timeout=3e4,o.open("post",e,!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.withCredentials=!0,o.onload=function(){var e;try{e=JSON.parse(o.responseText)}catch(t){e=r}n(e)},o.onerror=function(){n(r)},o.send(JSON.stringify(t))},t.crossJson=function(e,t,n){var r={result:-400,error_msg:""};e+=(-1===e.indexOf("?")?"?":"&")+"_json=1";var o=new XMLHttpRequest;o.timeout=3e4,o.open("post",e,!0),o.onload=function(){var e;try{e=JSON.parse(o.responseText)}catch(t){e=r}n(e)},o.onerror=function(){n(r)},o.send(JSON.stringify(t))}},function(e,t,n){"use strict";var r,o;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o=window,void 0===(r=function(){return function(e,t){if(!e.jWeixin){var n,r,o={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},a=function(){var e={};for(var t in o)e[o[t]]=t;return e}(),s=e.document,c=s.title,u=navigator.userAgent.toLowerCase(),l=navigator.platform.toLowerCase(),p=!(!l.match("mac")&&!l.match("win")),f=-1!=u.indexOf("wxdebugger"),d=-1!=u.indexOf("micromessenger"),h=-1!=u.indexOf("android"),g=-1!=u.indexOf("iphone")||-1!=u.indexOf("ipad"),v=(r=u.match(/micromessenger\/(\d+\.\d+\.\d+)/)||u.match(/micromessenger\/(\d+\.\d+)/))?r[1]:"",m={initStartTime:R(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},y={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:g?1:h?2:-1,clientVersion:v,url:encodeURIComponent(location.href)},b={},w={_completes:[]},_={state:0,data:{}};U((function(){m.initEndTime=R()}));var k=!1,x=[],O=(i(n={config:function(t){L("config",b=t);var n=!1!==b.check;U((function(){if(n)E(o.config,{verifyJsApiList:C(b.jsApiList),verifyOpenTagList:C(b.openTagList)},function(){w._complete=function(e){m.preVerifyEndTime=R(),_.state=1,_.data=e},w.success=function(e){y.isPreVerifyOk=0},w.fail=function(e){w._fail?w._fail(e):_.state=-1};var e=w._completes;return e.push((function(){!function(){if(!(p||f||b.debug||v<"6.0.2"||y.systemType<0)){var e=new Image;y.appId=b.appId,y.initTime=m.initEndTime-m.initStartTime,y.preVerifyTime=m.preVerifyEndTime-m.preVerifyStartTime,O.getNetworkType({isInnerInvoke:!0,success:function(t){y.networkType=t.networkType;var n="https://open.weixin.qq.com/sdk/report?v="+y.version+"&o="+y.isPreVerifyOk+"&s="+y.systemType+"&c="+y.clientVersion+"&a="+y.appId+"&n="+y.networkType+"&i="+y.initTime+"&p="+y.preVerifyTime+"&u="+y.url;e.src=n}})}}()})),w.complete=function(t){for(var n=0,r=e.length;n7776e6&&(r.setCookie("did",e,s),r.setCookie("didv",i.getTime(),s)):(r.setCookie("did","web_"+function(e){for(var t="",n=0;nt[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n1?o(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,o=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var i=o.createElement("a");i.href=t,r&&(o.body.appendChild(i),i.href=i.href);var a=o.createElement("input");if(a.type="url",a.value=t,":"===i.protocol||!/:/.test(i.href)||!a.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var s=new e.URLSearchParams(this.search),c=!0,u=!0,l=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),c&&(u=!1,l.search=s.toString(),u=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var p=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==p&&(p=this.search,u&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(27))},function(e,t,n){"use strict";var r=n(0),o=n(64).indexOf,i=n(45),a=n(23),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,u=i("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:c||!u||!l},{indexOf:function(e){return c?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(0),o=n(174);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},function(e,t,n){var r=n(5),o=n(72).trim,i=n(47),a=r.parseFloat,s=1/a(i+"-0")!=-1/0;e.exports=s?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){"use strict";var r=n(55),o=n(6),i=n(16),a=n(12),s=n(86),c=n(56);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),u=String(this);if(!a.global)return c(a,u);var l=a.unicode;a.lastIndex=0;for(var p,f=[],d=0;null!==(p=c(a,u));){var h=String(p[0]);f[d]=h,""===h&&(a.lastIndex=s(u,i(a.lastIndex),l)),d++}return 0===d?null:f}]}))},function(e,t,n){n(0)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(0),o=n(67).filter,i=n(66),a=n(23),s=i("filter"),c=a("filter");r({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(0),o=n(36),i=n(25),a=n(45),s=[].join,c=o!=Object,u=a("join",",");r({target:"Array",proto:!0,forced:c||!u},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(0),o=n(67).map,i=n(66),a=n(23),s=i("map"),c=a("map");r({target:"Array",proto:!0,forced:!s||!c},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(0),o=n(181).left,i=n(45),a=n(23),s=i("reduce"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(68),o=n(22),i=n(36),a=n(16),s=function(e){return function(t,n,s,c){r(n);var u=o(t),l=i(u),p=a(u.length),f=e?p-1:0,d=e?-1:1;if(s<2)for(;;){if(f in l){c=l[f],f+=d;break}if(f+=d,e?f<0:p<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=d)f in l&&(c=n(c,l[f],f,u));return c}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){var r=n(0),o=n(22),i=n(54);r({target:"Object",stat:!0,forced:n(1)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";var r=n(55),o=n(6),i=n(12),a=n(184),s=n(56);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),c=String(this),u=i.lastIndex;a(u,0)||(i.lastIndex=0);var l=s(i,c);return a(i.lastIndex,u)||(i.lastIndex=u),null===l?-1:l.index}]}))},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";function r(e){return function(t){return Object.prototype.toString.call(t)==="[object "+e+"]"}}function o(e){this._rules=e}n.r(t),n.d(t,"detector",(function(){return a})),n.d(t,"launchApp",(function(){return z})),o.prototype._detect=function(e,t,n){var o=r("Function")(t)?t.call(null,n):t;if(!o)return null;var i={name:e,version:"0",codename:""};if(!0===o)return i;if(r("String")(o)){if(-1!==n.indexOf(o))return i}else{if(r("Object")(o))return o.hasOwnProperty("version")&&(i.version=o.version),i;if(r("RegExp")(o)){var a=o.exec(n);if(a)return a.length>=2&&a[1]&&(i.version=a[1].replace(/_/g,".")),i}}},o.prototype._parseItem=function(e,t,n,r){var o=this,i={name:"na",version:"0"};!function(e,t){for(var n=0,r=e.length;n=0?/\bandroid[ \/-]?([0-9.x]+)?/:e.indexOf("adr")>=0?e.indexOf("mqqbrowser")>=0?/\badr[ ]\(linux; u; ([0-9.]+)?/:/\badr(?:[ ]([0-9.]+))?/:"android"}],["wp",function(e){return-1!==e.indexOf("windows phone ")?/\bwindows phone (?:os )?([0-9.]+)/:-1!==e.indexOf("xblwp")?/\bxblwp([0-9.]+)/:-1!==e.indexOf("zunewp")?/\bzunewp([0-9.]+)/:"windows phone"}],["symbian",/\bsymbian(?:os)?\/([0-9.]+)/],["chromeos",/\bcros i686 ([0-9.]+)/],["linux","linux"],["windowsce",/\bwindows ce(?: ([0-9.]+))?/]],browser:[["wxwork",/ wxwork\//i],["micromessenger",/\bmicromessenger\/([\d.]+)/],["qq",/\bm?qqbrowser\/([0-9.]+)/],["tt",/\btencenttraveler ([0-9.]+)/],["weibo",/weibo__([0-9.]+)/],["uc",function(e){return e.indexOf("ucbrowser/")>=0?/\bucbrowser\/([0-9.]+)/:e.indexOf("ubrowser/")>=0?/\bubrowser\/([0-9.]+)/:/\buc\/[0-9]/.test(e)?/\buc\/([0-9.]+)/:e.indexOf("ucweb")>=0?/\bucweb([0-9.]+)?/:/\b(?:ucbrowser|uc)\b/}],["360",function(e){return-1!==e.indexOf("360 aphone browser")?/\b360 aphone browser \(([^\)]+)\)/:/\b360(?:se|ee|chrome|browser)\b/}],["baidu",/\b(?:ba?idubrowser|baiduhd)[ \/]([0-9.x]+)/],["baiduboxapp",function(e){var t=0,n=void 0;return!!/ baiduboxapp\//i.test(e)&&((n=/([\d+.]+)_(?:diordna|enohpi)_/.exec(e))?t=(n=n[1].split(".")).reverse().join("."):(n=/baiduboxapp\/([\d+.]+)/.exec(e))&&(t=n[1]),{version:t})}],["sogou",function(e){return e.indexOf("sogoumobilebrowser")>=0?/sogoumobilebrowser\/([0-9.]+)/:e.indexOf("sogoumse")>=0||/ se ([0-9.x]+)/}],["ali-ap",function(e){return e.indexOf("aliapp")>0?/\baliapp\(ap\/([0-9.]+)\)/:/\balipayclient\/([0-9.]+)\b/}],["ali-tb",/\baliapp\(tb\/([0-9.]+)\)/],["ali-tm",/\baliapp\(tm\/([0-9.]+)\)/],["tao",/\btaobrowser\/([0-9.]+)/],["mi",/\bmiuibrowser\/([0-9.]+)/],["oppo",/\boppobrowser\/([0-9.]+)/],["vivo",/\bvivobrowser\/([0-9.]+)/],["meizu",/\bmzbrowser\/([0-9.]+)/],["nokia",/\bnokiabrowser\/([0-9.]+)/],["samsung",/\bsamsungbrowser\/([0-9.]+)/],["maxthon",/\b(?:maxthon|mxbrowser)(?:[ \/]([0-9.]+))?/],["opera",function(e){var t=/\bopera.+version\/([0-9.ab]+)/;return t.test(e)?t:/\bopr\/([0-9.]+)/}],["edge",/edge\/([0-9.]+)/],["firefox",/\bfirefox\/([0-9.ab]+)/],["chrome",/ (?:chrome|crios|crmo)\/([0-9.]+)/],["android",function(e){if(-1!==e.indexOf("android"))return/\bversion\/([0-9.]+(?: beta)?)/}],["safari",/\bversion\/([0-9.]+(?: beta)?)(?: mobile(?:\/[a-z0-9]+)?)? safari\//],["webview",/\bcpu(?: iphone)? os (?:[0-9._]+).+\bapplewebkit\b/]]}).parse(i),s="ios"===a.os.name,c="android"===a.os.name,u={linkFallbackToSchema:!0,timeout:2e3},l="launch:failed",p="launch:success",f="launch:unknown";var d=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.instance||(this.openInBrowserDialog,this._init(),e.instance=this),e.instance}return e.prototype._init=function(){var e=this,t=document.createElement("style");t.type="text/css",t.innerHTML='\n .open-in-browser-dialog .mask {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.7);\n z-index: 1000;\n }\n .open-in-browser-dialog .content {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 115px;\n z-index: 100;\n background: #fff;\n border-radius: 0 0 6px 6px;\n line-height: 30px;\n font-size: 18px;\n padding: 30px 20px;\n box-sizing: border-box;\n z-index: 1000;}\n .open-in-browser-dialog .content .arrow-top-right {\n position: absolute;\n top: 20px;\n right: 17px;\n width: 79px;\n height: 54px;\n background: url("//static.yximgs.com/s1/i/arrow_top_right-5f4320e633.png") 0 0 no-repeat;\n background-size: contain;\n }\n .open-in-browser-dialog .content .line{\n color: black;\n }\n .open-in-browser-dialog .content .line .text{\n margin-right: 10px;\n }\n .open-in-browser-dialog .content .line .dot{\n display: inline-block;\n background-color: #000;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n margin-right: 4px;\n vertical-align: middle;\n }\n',document.head.appendChild(t),document.body.insertAdjacentHTML("afterBegin",'\n
\n
\n
\n
\n
\n 点击右上角\n \n \n \n
\n
选择 "在浏览器中打开"
\n
\n
'),this.openInBrowserDialog=document.getElementsByClassName("open-in-browser-dialog")[0],this.openInBrowserDialog.addEventListener("click",(function(){e.openInBrowserDialog.style.display="none"}))},e.prototype.show=function(){this.openInBrowserDialog.style.display="block"},e}();var h=n(21),g=n.n(h);function v(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,"$1").toLowerCase()}function m(e,t){var n=document.createElement("iframe");n.setAttribute("src",e),n.setAttribute("style","display:none"),document.body.appendChild(n),setTimeout((function(){document.body.removeChild(n)}),t||2e3)}function y(e){location.href=e}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=new g.a(e),Object.keys(t).forEach((function(n){e.setQuery(n,t[n])})),e.valueOf()}function w(e){if("string"===v(e))return e;if("object"===v(e)){if("string"===v(e=s?e.ios:e.android||""))return e;if("object"===v(e))return b(e.scheme+"://"+e.path,e.query)}return""}function _(e){return"string"===v(e)?e:"object"===v(e)?b(e.url,e.query):""}function k(e){e||(e={});for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{title:"即将打开其他应用",text:"是否打开?"};return T(this,e),e.instance||(this.dialogPromise=null,this.confirmDialog=null,this.tip=t,this._init(),e.instance=this),e.instance}return e.prototype._init=function(){var e=document.createElement("style");e.type="text/css",e.innerHTML="\n .open-app-confirm-dialog {\n display: none;\n z-index: 999;\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.3);\n }\n .open-app-popup {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 280px;\n height: 141px;\n background: #FFFFFF;\n border-radius: 20px;\n }\n .open-app-popup-msg {\n width: 100%;\n height: 91px;\n display: flex;\n flex-flow: column nowrap;\n justify-content: center;\n align-items: center;\n border-bottom: 1px solid #E3E3E3;\n font-size: 17px;\n line-height: 24px;\n color: #000000;\n letter-spacing: 0;\n text-align: center;\n }\n .open-app-popup-btns {\n width: 100%;\n height: 50px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: flex-start;\n align-items: center;\n }\n .open-app-popup .popup-btn-cancel {\n flex-grow: 1;\n height: 50px;\n line-height: 50px;\n font-size: 17px;\n letter-spacing: 0;\n text-align: center;\n color: #777777;\n }\n .open-app-popup .popup-btn-confirm {\n flex-grow: 1;\n height: 50px;\n line-height: 50px;\n font-size: 17px;\n letter-spacing: 0;\n text-align: center;\n color: #FF7D35;\n }\n .open-app-popup .sprt-line {\n flex-grow: 0;\n height: 100%;\n width: 1px;\n background: #E3E3E3;\n }\n",document.head.appendChild(e),document.body.insertAdjacentHTML("afterBegin",'\n
\n
\n
\n \n \n
\n
\n \n
\n \n
\n
\n
'.replace("{{title}}",this.tip.title).replace("{{text}}",this.tip.text)),this.confirmDialog=document.getElementsByClassName("open-app-confirm-dialog")[0]},e.prototype._confirmEventHandle=function(e){var t=this;return function(){t.confirmDialog.style.display="none",e(),t.confirmDialog.querySelector(".popup-btn-confirm").removeEventListener("click",t._confirmEventHandle,!1),t.confirmDialog.querySelector(".popup-btn-confirm").removeEventListener("click",t._cancelEventHandle)}},e.prototype._cancelEventHandle=function(e){var t=this;return function(){t.confirmDialog.style.display="none",e(),t.confirmDialog.querySelector(".popup-btn-confirm").removeEventListener("click",t._confirmEventHandle,!1),t.confirmDialog.querySelector(".popup-btn-confirm").removeEventListener("click",t._cancelEventHandle,!1)}},e.prototype.show=function(){var e=this;return this.confirmDialog.style.display="block",this.dialogPromise=new Promise((function(t,n){e.confirmDialog.querySelector(".popup-btn-confirm").addEventListener("click",e._confirmEventHandle(t),!1),e.confirmDialog.querySelector(".popup-btn-cancel").addEventListener("click",e._cancelEventHandle(n),!1)})),this.dialogPromise},e}();var L=s&&a.os.version>=9&&"safari"===a.browser.name,R=c&&a.os.version>=6&&("chrome"===a.browser.name||"samsung"===a.browser.name),U="micromessenger"===a.browser.name,N="qq"===a.browser.name,D=function(e,t){for(var n=e.split("."),r=t.split("."),o=0;o0;return!0}(a.browser.fullVersion,"6.5.16"),M=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timer=null,this.configs=function e(t,n){for(var r in n)t[r]=t[r]&&"[object Object]"===t[r].toString()?e(t[r],n[r]):t[r]=n[r];return t}(u,t)}return e.prototype._launch=function(){if(this.configs.confirmDialog)this._showConfirmDialog(this.configs);else{this._sendLog(x);try{var e=this._getOpenMethod();this._sendLog(O,{openMethod:e.name}),e.apply(this)}catch(e){this._sendLog(j,{error:e.toString()}),y(this.configs.landPage)}}},e.prototype._getOpenMethod=function(){var t=e.openChannel,n=t.wexin_wl,r=t.scheme,o=t.uLink,i=t.appLink,a=t.guide,u=t.download,l=t.unknown,p=this.configs,f=p.inApp,d=p.linkFallbackToSchema;return this.configs.showBrowserModal?a:U?D&&this.configs.wxAppId&&e.wx?n:u:s&&this.configs.uLink?d&&!L?r:o:c&&this.configs.appLink?d&&!R?r:i:this.configs.scheme&&(f||s||c)?r:l},e.prototype._getDownloadMethod=function(){var t=e.downloadChannel,n=t.custom,r=t.allPlatform,o=t.yyb,i=t.ios,a=t.android,u=t.androidMarket,l=t.unknown,p=this.configs.download;if("function"===v(p))return n;if("string"===v(p))return r;if("object"===v(p)){if(s&&p.ios)return i;if(c&&(U||N)&&p.yyb)return o;if(c&&p.androidMarket)return u;if(c&&p.android)return a;if(p.yyb)return o}return l},e.prototype._callend=function(t){clearTimeout(this.timer),this._sendLog(P,{status:t}),t!==p&&e.openChannel.download.call(this)},e.prototype._setTimeEvent=function(){var e=this,t=!1,n="hidden",r="visibilitychange";void 0!==document.hidden?(n="hidden",r="visibilitychange"):void 0!==document.msHidden?(n="msHidden",r="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",r="webkitvisibilitychange");var o=function o(i){t=!0,document[n]||i.hidden||"hidden"===document.visibilityState?e._callend(p):e._callend(f),document.removeEventListener(r,o)};document.addEventListener(r,o,!1),this.timer=setTimeout((function(){t||(document.removeEventListener(r,o),document.hidden||t?e._callend(f):e._callend(l))}),this.configs.timeout)},e.prototype._sendLog=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"===v(e.logger)&&e.logger(t,this.configs,n),window.ksLog&&window.ksLog.sendAction({event:"task",action:"APP_GOTO",elementName:t,position:g.a.buildQuery(k(n,{appName:this.configs.appName,position:this.configs.position}))})},e.prototype._showConfirmDialog=function(e){var t=this,n=void 0;"object"===v(e.confirmDialog)&&(n=e.confirmDialog),new C(n).show().then((function(){t._sendLog(I),delete t.configs.confirmDialog,t._launch()})).catch((function(e){e&&t._sendLog(j,{error:e.toString()}),t._sendLog(A)}))},e}();M.openChannel={wexin_wl:function(){var e=this;Promise.resolve(M.wx).then((function(t){var n;t.invoke("launchApplication",{appID:e.configs.wxAppId,parameter:(n=e.configs.scheme,w(n).split("://")[1]||"")},(function(t){if("launchApplication:ok"!==t.err_msg)throw M.openChannel.download.call(e),new Error("wxLaunchApplication error: "+t.err_msg);e._sendLog(E)}))})).catch((function(t){M.openChannel.download.call(e)}))},scheme:function(){var e=w(this.configs.scheme);this.configs.timeout>0&&this._setTimeEvent(),this.configs.inApp||"safari"===a.browser.name&&a.os.version>=9&&s?y(e):m(e)},uLink:function(){y(_(this.configs.uLink))},appLink:function(){y(_(this.configs.appLink))},guide:function(){(new d).show()},download:function(){var e=this._getDownloadMethod();this._sendLog(S,{downloadMethod:e.name}),e.apply(this)},unknown:function(){y(this.configs.landPage)}},M.downloadChannel={custom:function(){this.configs.download()},allPlatform:function(){y(this.configs.download)},yyb:function(){y(this.configs.download.yyb)},ios:function(){y(this.configs.download.ios)},android:function(){y(this.configs.download.android)},androidMarket:function(){m(this.configs.download.androidMarket,this.configs.iframeTimeout)},unknown:function(){y(this.configs.landPage)}};var B=M,z={setWxjssdk:function(e){B.wx=e},setLogger:function(e){B.logger=e},launch:function(e){new B(e)._launch()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(142),n(188),n(51),n(80),n(189),n(105),n(187);var r=n(34),o=(n(38),n(2)),i=n(14),a=n(9),s=n(4),c=n(7),u="https://static.yximgs.com/bs2/adminBlock/avatar-cvknycBf.jpg",l=function(){function e(t){Object(i.a)(this,e),Object(s.a)(this,"userName","匿名用户"),Object(s.a)(this,"userHead",u),Object(s.a)(this,"fetched",!1),Object(s.a)(this,"isLogin",!1),Object(s.a)(this,"initPromise",Promise.resolve()),Object(s.a)(this,"params",{}),this.service=t}var t,n,l;return Object(a.a)(e,[{key:"userInfo",get:function(){return{userName:this.userName,userHead:this.userHead}}}]),Object(a.a)(e,[{key:"getExtraParams",value:function(){return this.params}},{key:"ready",value:function(){return this.initPromise}},{key:"fetchUserInfo",value:(l=Object(o.a)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new URLSearchParams,Object.entries(this.params).forEach((function(e){var n=Object(r.a)(e,2),o=n[0],i=n[1];t.append(o,i)})),t.append("activityToken",this.service.activityToken),e.next=5,Object(c.c)().post("/rest/doodle/block/activity/auth/user",t,{headers:{"Content-Type":"application/x-www-form-urlencoded"}});case 5:1===(n=e.sent).data.result&&n.data.data.login?(this.userName=n.data.data.userName,this.userHead=n.data.data.userHead,this.isLogin=!0):(this.userName="匿名用户",this.userHead=u,this.isLogin=!1),this.fetched=!0;case 8:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"checkLogin",value:(n=Object(o.a)(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]&&n[0],this.fetched&&!t){e.next=4;break}return e.next=4,this.fetchUserInfo();case 4:return e.abrupt("return",this.isLogin);case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"login",value:(t=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.notSupport("login");case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"notSupport",value:function(e){throw new Error("service: ".concat(e," not support"))}}]),e}()},function(e,t,n){"use strict";n(80);var r,o=n(0),i=n(13),a=n(150),s=n(5),c=n(124),u=n(15),l=n(57),p=n(8),f=n(193),d=n(194),h=n(81).codeAt,g=n(195),v=n(43),m=n(196),y=n(26),b=s.URL,w=m.URLSearchParams,_=m.getState,k=y.set,x=y.getterFor("URL"),O=Math.floor,S=Math.pow,P=/[A-Za-z]/,E=/[\d+-.A-Za-z]/,j=/\d/,I=/^(0x|0X)/,A=/^[0-7]+$/,T=/^\d+$/,C=/^[\dA-Fa-f]+$/,L=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,R=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,N=/[\u0009\u000A\u000D]/g,D=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=B(t.slice(1,-1))))return"Invalid host";e.host=n}else if(K(e)){if(t=g(t),L.test(t))return"Invalid host";if(null===(n=M(t)))return"Invalid host";e.host=n}else{if(R.test(t))return"Invalid host";for(n="",r=d(t),o=0;o4)return e;for(n=[],r=0;r1&&"0"==o.charAt(0)&&(i=I.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?T:8==i?A:C).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r=S(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r6)return;for(r=0;f();){if(o=null,r>0){if(!("."==f()&&r<4))return;p++}if(!j.test(f()))return;for(;j.test(f());){if(i=parseInt(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;p++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==f()){if(p++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;p++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},z=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=O(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},F=f({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),W=f({},F,{"#":1,"?":1,"{":1,"}":1}),Q=f({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),H=function(e,t){var n=h(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},V={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(e){return p(V,e.scheme)},G=function(e){return""!=e.username||""!=e.password},J=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},$=function(e,t){var n;return 2==e.length&&P.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Y=function(e){var t;return e.length>1&&$(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},X=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&$(t[0],!0)||t.pop()},Z=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},oe={},ie={},ae={},se={},ce={},ue={},le={},pe={},fe={},de={},he={},ge={},ve={},me={},ye={},be={},we={},_e=function(e,t,n,o){var i,a,s,c,u,l=n||ee,f=0,h="",g=!1,v=!1,m=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(N,""),i=d(t);f<=i.length;){switch(a=i[f],l){case ee:if(!a||!P.test(a)){if(n)return"Invalid scheme";l=ne;continue}h+=a.toLowerCase(),l=te;break;case te:if(a&&(E.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";h="",l=ne,f=0;continue}if(n&&(K(e)!=p(V,h)||"file"==h&&(G(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(K(e)&&V[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?l=de:K(e)&&o&&o.scheme==e.scheme?l=re:K(e)?l=se:"/"==i[f+1]?(l=oe,f++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ye)}break;case ne:if(!o||o.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,l=we;break}l="file"==o.scheme?de:ie;continue;case re:if("/"!=a||"/"!=i[f+1]){l=ie;continue}l=ce,f++;break;case oe:if("/"==a){l=ue;break}l=me;continue;case ie:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&K(e))l=ae;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",l=be;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),l=me;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}break;case ae:if(!K(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,l=me;continue}l=ue}else l=ce;break;case se:if(l=ce,"/"!=a||"/"!=h.charAt(f+1))continue;f++;break;case ce:if("/"!=a&&"\\"!=a){l=ue;continue}break;case ue:if("@"==a){g&&(h="%40"+h),g=!0,s=d(h);for(var y=0;y65535)return"Invalid port";e.port=K(e)&&_===V[e.scheme]?null:_,h=""}if(n)return;l=ve;continue}return"Invalid port"}h+=a;break;case de:if(e.scheme="file","/"==a||"\\"==a)l=he;else{if(!o||"file"!=o.scheme){l=me;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",l=be;else{if("#"!=a){Y(i.slice(f).join(""))||(e.host=o.host,e.path=o.path.slice(),X(e)),l=me;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=we}}break;case he:if("/"==a||"\\"==a){l=ge;break}o&&"file"==o.scheme&&!Y(i.slice(f).join(""))&&($(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),l=me;continue;case ge:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&$(h))l=me;else if(""==h){if(e.host="",n)return;l=ve}else{if(c=D(e,h))return c;if("localhost"==e.host&&(e.host=""),n)return;h="",l=ve}continue}h+=a;break;case ve:if(K(e)){if(l=me,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=me,"/"!=a))continue}else e.fragment="",l=we;else e.query="",l=be;break;case me:if(a==r||"/"==a||"\\"==a&&K(e)||!n&&("?"==a||"#"==a)){if(".."===(u=(u=h).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(X(e),"/"==a||"\\"==a&&K(e)||e.path.push("")):Z(h)?"/"==a||"\\"==a&&K(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&$(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=be):"#"==a&&(e.fragment="",l=we)}else h+=H(a,W);break;case ye:"?"==a?(e.query="",l=be):"#"==a?(e.fragment="",l=we):a!=r&&(e.path[0]+=H(a,q));break;case be:n||"#"!=a?a!=r&&("'"==a&&K(e)?e.query+="%27":e.query+="#"==a?"%23":H(a,q)):(e.fragment="",l=we);break;case we:a!=r&&(e.fragment+=H(a,F))}f++}},ke=function(e){var t,n,r=l(this,ke,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=k(r,{type:"URL"});if(void 0!==o)if(o instanceof ke)t=x(o);else if(n=_e(t={},String(o)))throw TypeError(n);if(n=_e(s,a,null,t))throw TypeError(n);var c=s.searchParams=new w,u=_(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},i||(r.href=Oe.call(r),r.origin=Se.call(r),r.protocol=Pe.call(r),r.username=Ee.call(r),r.password=je.call(r),r.host=Ie.call(r),r.hostname=Ae.call(r),r.port=Te.call(r),r.pathname=Ce.call(r),r.search=Le.call(r),r.searchParams=Re.call(r),r.hash=Ue.call(r))},xe=ke.prototype,Oe=function(){var e=x(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",G(e)&&(u+=n+(r?":"+r:"")+"@"),u+=z(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Se=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&K(e)?t+"://"+z(e.host)+(null!==n?":"+n:""):"null"},Pe=function(){return x(this).scheme+":"},Ee=function(){return x(this).username},je=function(){return x(this).password},Ie=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?z(t):z(t)+":"+n},Ae=function(){var e=x(this).host;return null===e?"":z(e)},Te=function(){var e=x(this).port;return null===e?"":String(e)},Ce=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Le=function(){var e=x(this).query;return e?"?"+e:""},Re=function(){return x(this).searchParams},Ue=function(){var e=x(this).fragment;return e?"#"+e:""},Ne=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(xe,{href:Ne(Oe,(function(e){var t=x(this),n=String(e),r=_e(t,n);if(r)throw TypeError(r);_(t.searchParams).updateSearchParams(t.query)})),origin:Ne(Se),protocol:Ne(Pe,(function(e){var t=x(this);_e(t,String(e)+":",ee)})),username:Ne(Ee,(function(e){var t=x(this),n=d(String(e));if(!J(t)){t.username="";for(var r=0;r"+a+""}},function(e,t,n){var r=n(1);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var r=n(13),o=n(1),i=n(54),a=n(122),s=n(83),c=n(22),u=n(36),l=Object.assign,p=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=i(l({},t)).join("")}))?function(e,t){for(var n=c(e),o=arguments.length,l=1,p=a.f,f=s.f;o>l;)for(var d,h=u(arguments[l++]),g=p?i(h).concat(p(h)):i(h),v=g.length,m=0;v>m;)d=g[m++],r&&!f.call(h,d)||(n[d]=h[d]);return n}:l},function(e,t,n){"use strict";var r=n(41),o=n(22),i=n(129),a=n(130),s=n(16),c=n(123),u=n(73);e.exports=function(e){var t,n,l,p,f,d,h=o(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,y=void 0!==m,b=u(h),w=0;if(y&&(m=r(m,v>2?arguments[2]:void 0,2)),null==b||g==Array&&a(b))for(n=new g(t=s(h.length));t>w;w++)d=y?m(h[w],w):h[w],c(n,w,d);else for(f=(p=b.call(h)).next,n=new g;!(l=f.call(p)).done;w++)d=y?i(p,m,[l.value,w],!0):l.value,c(n,w,d);return n.length=w,n}},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,c=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},l=function(e){var t,n,r=[],o=(e=function(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n=l&&na((2147483647-p)/v))throw RangeError(i);for(p+=(g-l)*v,l=g,t=0;t2147483647)throw RangeError(i);if(n==l){for(var m=p,y=36;;y+=36){var b=y<=f?1:y>=f+26?26:y-f;if(m0?arguments[0]:void 0,l=this,d=[];if(S(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:M}),void 0!==u)if(v(u))if("function"==typeof(e=w(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((a=(i=(o=b(g(r.value))).next).call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(c in u)f(u,c)&&d.push({key:c,value:u[c]+""});else D(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},F=q.prototype;s(F,{append:function(e,t){B(arguments.length,2);var n=P(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){B(arguments.length,1);for(var t=P(this),n=t.entries,r=e+"",o=0;oe.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=P(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),o=0;o1&&(v(t=arguments[1])&&(n=t.body,"URLSearchParams"===h(n)&&((r=t.headers?new x(t.headers):new x).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:y(0,String(n)),headers:y(0,r)}))),o.push(t)),k.apply(this,o)}}),e.exports={URLSearchParams:q,getState:P}},function(e,t,n){var r=n(6),o=n(73);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){var r=n(13),o=n(54),i=n(25),a=n(83).f,s=function(e){return function(t){for(var n,s=i(t),c=o(s),u=c.length,l=0,p=[];u>l;)n=c[l++],r&&!a.call(s,n)||p.push(e?[n,s[n]]:s[n]);return p}};e.exports={entries:s(!0),values:s(!1)}},,,,function(e,t,n){"use strict";var r=n(0),o=n(67).some,i=n(45),a=n(23),s=i("some"),c=a("some");r({target:"Array",proto:!0,forced:!s||!c},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r,o=n(0),i=n(52).f,a=n(16),s=n(84),c=n(12),u=n(85),l=n(29),p="".endsWith,f=Math.min,d=u("endsWith");o({target:"String",proto:!0,forced:!!(l||d||(r=i(String.prototype,"endsWith"),!r||r.writable))&&!d},{endsWith:function(e){var t=String(c(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),o=void 0===n?r:f(a(n),r),i=String(e);return p?p.call(t,i,o):t.slice(o-i.length,o)===i}})},function(e,t,n){"use strict";var r=n(55),o=n(6),i=n(22),a=n(16),s=n(53),c=n(12),u=n(86),l=n(56),p=Math.max,f=Math.min,d=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(n,r){var o=c(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!v&&m||"string"==typeof r&&-1===r.indexOf(y)){var i=n(t,e,this,r);if(i.done)return i.value}var c=o(e),d=String(this),h="function"==typeof r;h||(r=String(r));var g=c.global;if(g){var w=c.unicode;c.lastIndex=0}for(var _=[];;){var k=l(c,d);if(null===k)break;if(_.push(k),!g)break;""===String(k[0])&&(c.lastIndex=u(d,a(c.lastIndex),w))}for(var x,O="",S=0,P=0;P<_.length;P++){k=_[P];for(var E=String(k[0]),j=p(f(s(k.index),d.length),0),I=[],A=1;A=S&&(O+=d.slice(S,j)+L,S=j+E.length)}return O+d.slice(S)}];function b(e,n,r,o,a,s){var c=r+e.length,u=o.length,l=g;return void 0!==a&&(a=i(a),l=h),t.call(s,l,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return t;if(l>u){var p=d(l/10);return 0===p?t:p<=u?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}))},,,function(e,t,n){"use strict";n.r(t),n.d(t,"launchKwaiOptions",(function(){return y})),n.d(t,"launchNebulaOptions",(function(){return b})),n.d(t,"default",(function(){return _}));n(77),n(142),n(132),n(202),n(78),n(51),n(42),n(125),n(203),n(133),n(80),n(204),n(104),n(71),n(190),n(105),n(187),n(38);var r=n(2),o=n(18),i=n(14),a=n(82),s=n(24),c=n(59),u=n(20),l=n(9),p=n(39),f=n(40),d=n(4),h=n(121),g=function(e){Object(p.a)(o,e);var t,n=Object(f.a)(o);function o(e){var t;return Object(i.a)(this,o),(t=n.call(this,e)).params.source="KUAISHOU",t.isInApp&&t.fetchUserInfo(),t}return Object(l.a)(o,[{key:"isInApp",get:function(){return this.service.isInApp}}]),Object(l.a)(o,[{key:"login",value:(t=Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isInApp){e.next=7;break}return e.next=3,this.service.callBridge("kwai.login");case 3:return e.next=5,this.fetchUserInfo();case 5:e.next=9;break;case 7:return e.next=9,this.service.openInApp();case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),o}(n(186).a),v=n(7);function m(e,t){var n=Object(v.b)("adid"),r=Object(v.b)("openFrom");if(!n)return t;var o=Object(v.e)("https://promotion-partner.kuaishou.com/rest/n/promotion/p",{adid:n,openFrom:r,dph:window.screen.height,dpw:window.screen.width,reader:window.devicePixelRatio});return Object.assign({},t,{inApp:!1,appName:"快手",appCode:"KWAI",wxAppId:"wx9227d48257374438",linkFallbackToSchema:!0,timeout:2e3,showBrowserModal:!1,confirmDialog:!0,appLink:"",landPage:"https://m.kuaishou.com/",scheme:"kwai://home/hot",uLink:"https://m.ssl.kuaishou.com/app/profile/917113506",download:{android:o,ios:o}})}var y={inApp:!1,appName:"kwai",position:"***",wxAppId:"wx9227d48257374438",scheme:"kwai://home/hot",confirmDialog:!0,uLink:"https://m.ssl.kuaishou.com/app/profile/917113506",download:{yyb:"https://a.app.qq.com/o/simple.jsp?pkgname=com.smile.gifmaker&ckey=CK1427111849791",android:"https://m.viviv.com/download/kwai",ios:"https://itunes.apple.com/app/apple-store/id440948110?pt=572643&mt=8",androidMarket:"market://details?id=com.smile.gifmaker"},landPage:"https://m.kuaishou.com/",scheme2uLink:function(e){return"https://m.ssl.kuaishou.com/app/".concat(e.substr(7))}},b={inApp:!1,appName:"快手极速版",appCode:"NEBULA",position:"***",linkFallbackToSchema:!0,timeout:2e3,wxAppId:"",scheme:"ksnebula://home/hot",showBrowserModal:!1,confirmDialog:!0,download:{yyb:"https://a.app.qq.com/o/simple.jsp?pkgname=com.kuaishou.nebula",android:"https://a.app.qq.com/o/simple.jsp?pkgname=com.kuaishou.nebula",ios:"https://itunes.apple.com/app/apple-store/id1472502819?mt=8",androidMarket:""},landPage:"https://m.kuaishou.com/",scheme2uLink:function(e){return"https://m.ssl.kuaishou.com/app/".concat(e.substr(11))}},w=["viviv.com","chenzhongtech.com","etoote.com","kortatb.com","kuaishou.com","gifshow.com","yximgs.com"],_=function(e){Object(p.a)(h,e);var t,n=Object(f.a)(h);function h(){var e;return Object(i.a)(this,h),e=n.call(this),Object(d.a)(Object(s.a)(e),"type","kwai"),Object(d.a)(Object(s.a)(e),"isInApp",e.sniff.isInApp),e.logger.sendPV(),e.isInApp&&!k(location.href)?(location.replace(x("ppg.m.etoote.com")),Object(a.a)(e)):(e.passport=new g(Object(s.a)(e)),e)}return Object(l.a)(h,[{key:"wxSdkConfig",get:function(){return{signShareUrl:"//www.kuaishou.com/rest/wd/wemedia/signShareUrl",jsApiList:["launchApplication","updateAppMessageShareData","updateTimelineShareData","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone"]}}}]),Object(l.a)(h,[{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e.trim();var n=t.newWebViewOptions||t.newWebView&&{};this.isInApp?(e.startsWith("kwai://webview?url=")&&(e=decodeURIComponent(e.substr(19).replace(/&.*/,""))),Object(v.d)(e)?n?this.bridge.webview.open(Object(o.a)({url:e},n)):location.href=e:this.openSchema(e)):Object(c.a)(Object(u.a)(h.prototype),"open",this).call(this,e,t)}},{key:"openInApp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isInApp&&!e||(e||(e=location.href),e=e.trim(),!this.isInApp&&Object(v.d)(e)&&(e.includes("/doodle/")&&!k(e)&&(e=x("ppg.m.etoote.com",e)),e="kwai://webview?url=".concat(encodeURIComponent(e),"&hideToolBar=").concat(Boolean(t.hideToolBar).toString())),this.open(e,t))}},{key:"launchApp",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&(e=e.trim()),!e||e.startsWith("kwai://")||e.startsWith("ksnebula://")){var r,o=(Object(v.b)("kpn")||Object(v.b)("KPN")||"").toLowerCase();"nebula"===o?(e&&(e=e.replace(/^kwai/,"ksnebula")),r=b):r=m(0,y),n=Object.assign({confirmDialog:!this.sniff.isInWeChat},r,n,{download:Object.assign({},r.download,n.download)})}var i=function(){var e=t.sniff;switch(!0){case e.isInKwai:return"ks";case e.isInNebula:return"ksnebula";case e.isInWeChat:return"wechat";case e.isInQQ:return"qq";case e.isInWeibo:return"weibo";case e.isInQQBrowser:return"qqBrowser";default:return""}}(),a={subBiz:Object(v.b)("subBiz")||"jimu_".concat(this.activityToken),shareId:Object(v.b)("shareId")||"",promotionOpenFrom:Object(v.b)("promotionOpenFrom")||Object(v.b)("openFrom"),openFrom:JSON.stringify({url:location.href,cc:Object(v.b)("cc"),fid:Object(v.b)("fid"),did:Object(v.a)("did")||Object(v.a)("_did"),from:i,channel:"share",page:"JIMU_".concat(this.activityToken),position:n.position})};if(e)e=Object(v.e)(e,a);else if("string"==typeof n.scheme)n.scheme=Object(v.e)(n.scheme,a);else if(n.scheme){var s=["android","ios"],l=n,p=l.scheme;s.forEach((function(e){var t=p[e];"string"==typeof t?p[e]=Object(v.e)(t,a):t&&t.scheme&&(t.query=Object.assign({},t.query,a))}))}return console.warn(n),Object(c.a)(Object(u.a)(h.prototype),"launchApp",this).call(this,e,n)}},{key:"share",value:(t=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInApp){e.next=2;break}return e.abrupt("return",Object(c.a)(Object(u.a)(h.prototype),"share",this).call(this,t));case 2:return(n=Object.assign({platform:["timeline","weixin","qq","weibo","qz","copylink","imfriend","imfriend_list"],siteName:"m.kuaishou.com"},t,{caption:t.title||document.title,siteUrl:t.link||location.href})).siteUrl.includes("/doodle/")&&!n.siteUrl.includes("d=_w")&&((r=new URL(n.siteUrl)).host="kjmrbinzhou.e7a8k93pwi1at.com",n.siteUrl=r.toString()),o=!0,e.prev=5,e.next=8,this.bridge.call("kwai.commonShare",{param:n});case 8:1!==e.sent.result&&(o=!1),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(5),console.warn(e.t0),o=!1;case 16:return o&&this.emit("jimu-share-success"),e.abrupt("return",o);case 18:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(e){return t.apply(this,arguments)})}]),h}(h.a);function k(e){var t=new URL(e);return w.some((function(e){var n=t.hostname;return n===e||n.endsWith(".".concat(e))}))}function x(e,t){t=t||location.href;var n=new URL(t);return n.host=e,n.toString()}window.JIMU.Service=_}]); //# sourceMappingURL=undefined