mazey-wechat-launch-app 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -22
- package/lib/index.cjs.js +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/launch-app.min.js +2 -2
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install mazey-wechat-launch-app --save
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
### 1. NPM
|
|
23
|
+
### 1. 使用 NPM
|
|
24
24
|
|
|
25
25
|
```
|
|
26
26
|
import LAUNCH_APP from 'mazey-wechat-launch-app';
|
|
@@ -55,31 +55,13 @@ app.start();
|
|
|
55
55
|
</div>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
注意:本项目依赖 [WeChat JS-SDK](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3)
|
|
58
|
+
注意:本项目依赖 [WeChat JS-SDK](https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html#3),请确保已经引入,程序会在初始化的时候探测 `window.wx`。
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
npm install js-sha1 jquery --save
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Import Libraries**
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
import sha1 from 'js-sha1';
|
|
70
|
-
import $ from 'jquery';
|
|
71
|
-
|
|
72
|
-
window.sha1 = sha1;
|
|
73
|
-
window.$ = $;
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### 2. CDN
|
|
60
|
+
### 2. 使用 CDN
|
|
77
61
|
|
|
78
62
|
```
|
|
79
63
|
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
80
|
-
<script type="text/javascript" src="
|
|
81
|
-
<script type="text/javascript" src="//i.mazey.net/lib/encode/js-sha1/0.6.0/sha1.min.js"></script>
|
|
82
|
-
<script type="text/javascript" src="//i.mazey.net/lib/mazey-wechat-launch-app/1.1.2/launch-app.min.js"></script>
|
|
64
|
+
<script type="text/javascript" src="lib/launch-app.min.js"></script>
|
|
83
65
|
<script>
|
|
84
66
|
var options = {
|
|
85
67
|
weixinJsSdkTicket: 'bxLdikRXVb',
|
|
@@ -93,6 +75,8 @@ window.$ = $;
|
|
|
93
75
|
</script>
|
|
94
76
|
```
|
|
95
77
|
|
|
78
|
+
提示:如果项目里面已经使用了 jQuery、js-sha1、mazey 依赖库,可以使用体积更小的版本 [`v2.1.4`](https://github.com/mazeyqian/mazey-wechat-launch-app/tree/v2.1.4)。
|
|
79
|
+
|
|
96
80
|
## API
|
|
97
81
|
|
|
98
82
|
### 参数
|
package/lib/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v2.2.
|
|
2
|
+
* mazey-wechat-launch-app v2.2.1 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var t=require("mazey"),e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,o,i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=Function.prototype.call,l=f?s.bind(s):function(){return s.apply(s,arguments)},p={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,d=h&&!p.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:p,v={f:d},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,m=g.call,b=f&&g.bind.bind(m,m),w=f?b:function(t){return function(){return m.apply(t,arguments)}},S=w({}.toString),A=w("".slice),O=function(t){return A(S(t),8,-1)},E=Object,P=w("".split),T=c((function(){return!E("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?P(t,""):E(t)}:E,_=function(t){return null==t},L=TypeError,j=function(t){if(_(t))throw L("Can't call method on "+t);return t},x=function(t){return T(j(t))},C="object"==typeof document&&document.all,I={all:C,IS_HTMLDDA:void 0===C&&void 0!==C},R=I.all,k=I.IS_HTMLDDA?function(t){return"function"==typeof t||t===R}:function(t){return"function"==typeof t},N=I.all,M=I.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:k(t)||t===N}:function(t){return"object"==typeof t?null!==t:k(t)},U=function(t,e){return arguments.length<2?(n=a[t],k(n)?n:void 0):a[t]&&a[t][e];var n},D=w({}.isPrototypeOf),H="undefined"!=typeof navigator&&String(navigator.userAgent)||"",B=a.process,W=a.Deno,F=B&&B.versions||W&&W.version,z=F&&F.v8;z&&(o=(r=z.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&H&&(!(r=H.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=H.match(/Chrome\/(\d+)/))&&(o=+r[1]);var G=o,q=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),V=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=Object,Y=V?function(t){return"symbol"==typeof t}:function(t){var e=U("Symbol");return k(e)&&D(e.prototype,X(t))},J=String,K=function(t){try{return J(t)}catch(t){return"Object"}},Q=TypeError,$=function(t){if(k(t))return t;throw Q(K(t)+" is not a function")},Z=function(t,e){var n=t[e];return _(n)?void 0:$(n)},tt=TypeError,et=Object.defineProperty,nt=function(t,e){try{et(a,t,{value:e,configurable:!0,writable:!0})}catch(n){a[t]=e}return e},rt="__core-js_shared__",ot=a[rt]||nt(rt,{}),it=n((function(t){(t.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),at=Object,ct=function(t){return at(j(t))},ut=w({}.hasOwnProperty),ft=Object.hasOwn||function(t,e){return ut(ct(t),e)},st=0,lt=Math.random(),pt=w(1..toString),ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+pt(++st+lt,36)},dt=a.Symbol,vt=it("wks"),yt=V?dt.for||dt:dt&&dt.withoutSetter||ht,gt=function(t){return ft(vt,t)||(vt[t]=q&&ft(dt,t)?dt[t]:yt("Symbol."+t)),vt[t]},mt=TypeError,bt=gt("toPrimitive"),wt=function(t,e){if(!M(t)||Y(t))return t;var n,r=Z(t,bt);if(r){if(void 0===e&&(e="default"),n=l(r,t,e),!M(n)||Y(n))return n;throw mt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&k(n=t.toString)&&!M(r=l(n,t)))return r;if(k(n=t.valueOf)&&!M(r=l(n,t)))return r;if("string"!==e&&k(n=t.toString)&&!M(r=l(n,t)))return r;throw tt("Can't convert object to primitive value")}(t,e)},St=function(t){var e=wt(t,"string");return Y(e)?e:e+""},At=a.document,Ot=M(At)&&M(At.createElement),Et=function(t){return Ot?At.createElement(t):{}},Pt=!u&&!c((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Tt=Object.getOwnPropertyDescriptor,_t={f:u?Tt:function(t,e){if(t=x(t),e=St(e),Pt)try{return Tt(t,e)}catch(t){}if(ft(t,e))return y(!l(v.f,t,e),t[e])}},Lt=u&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jt=String,xt=TypeError,Ct=function(t){if(M(t))return t;throw xt(jt(t)+" is not an object")},It=TypeError,Rt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Nt="enumerable",Mt="configurable",Ut="writable",Dt={f:u?Lt?function(t,e,n){if(Ct(t),e=St(e),Ct(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ut in n&&!n[Ut]){var r=kt(t,e);r&&r[Ut]&&(t[e]=n.value,n={configurable:Mt in n?n[Mt]:r[Mt],enumerable:Nt in n?n[Nt]:r[Nt],writable:!1})}return Rt(t,e,n)}:Rt:function(t,e,n){if(Ct(t),e=St(e),Ct(n),Pt)try{return Rt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw It("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ht=u?function(t,e,n){return Dt.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},Bt=Function.prototype,Wt=u&&Object.getOwnPropertyDescriptor,Ft=ft(Bt,"name"),zt={EXISTS:Ft,PROPER:Ft&&"something"===function(){}.name,CONFIGURABLE:Ft&&(!u||u&&Wt(Bt,"name").configurable)},Gt=w(Function.toString);k(ot.inspectSource)||(ot.inspectSource=function(t){return Gt(t)});var qt,Vt,Xt,Yt=ot.inspectSource,Jt=a.WeakMap,Kt=k(Jt)&&/native code/.test(String(Jt)),Qt=it("keys"),$t=function(t){return Qt[t]||(Qt[t]=ht(t))},Zt={},te="Object already initialized",ee=a.TypeError,ne=a.WeakMap;if(Kt||ot.state){var re=ot.state||(ot.state=new ne);re.get=re.get,re.has=re.has,re.set=re.set,qt=function(t,e){if(re.has(t))throw ee(te);return e.facade=t,re.set(t,e),e},Vt=function(t){return re.get(t)||{}},Xt=function(t){return re.has(t)}}else{var oe=$t("state");Zt[oe]=!0,qt=function(t,e){if(ft(t,oe))throw ee(te);return e.facade=t,Ht(t,oe,e),e},Vt=function(t){return ft(t,oe)?t[oe]:{}},Xt=function(t){return ft(t,oe)}}var ie={set:qt,get:Vt,has:Xt,enforce:function(t){return Xt(t)?Vt(t):qt(t,{})},getterFor:function(t){return function(e){var n;if(!M(e)||(n=Vt(e)).type!==t)throw ee("Incompatible receiver, "+t+" required");return n}}},ae=n((function(t){var e=zt.CONFIGURABLE,n=ie.enforce,r=ie.get,o=String,i=Object.defineProperty,a=w("".slice),f=w("".replace),s=w([].join),l=u&&!c((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,c){"Symbol("===a(o(r),0,7)&&(r="["+f(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),c&&c.getter&&(r="get "+r),c&&c.setter&&(r="set "+r),(!ft(t,"name")||e&&t.name!==r)&&(u?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&c&&ft(c,"arity")&&t.length!==c.arity&&i(t,"length",{value:c.arity});try{c&&ft(c,"constructor")&&c.constructor?u&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ft(h,"source")||(h.source=s(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return k(this)&&r(this).source||Yt(this)}),"toString")})),ce=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(k(n)&&ae(n,i,r),r.global)o?t[e]=n:nt(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Dt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},ue=Math.ceil,fe=Math.floor,se=Math.trunc||function(t){var e=+t;return(e>0?fe:ue)(e)},le=function(t){var e=+t;return e!=e||0===e?0:se(e)},pe=Math.max,he=Math.min,de=Math.min,ve=function(t){return(e=t.length)>0?de(le(e),9007199254740991):0;var e},ye=function(t){return function(e,n,r){var o,i=x(e),a=ve(i),c=function(t,e){var n=le(t);return n<0?pe(n+e,0):he(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ge={includes:ye(!0),indexOf:ye(!1)}.indexOf,me=w([].push),be=function(t,e){var n,r=x(t),o=0,i=[];for(n in r)!ft(Zt,n)&&ft(r,n)&&me(i,n);for(;e.length>o;)ft(r,n=e[o++])&&(~ge(i,n)||me(i,n));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=we.concat("length","prototype"),Ae={f:Object.getOwnPropertyNames||function(t){return be(t,Se)}},Oe={f:Object.getOwnPropertySymbols},Ee=w([].concat),Pe=U("Reflect","ownKeys")||function(t){var e=Ae.f(Ct(t)),n=Oe.f;return n?Ee(e,n(t)):e},Te=function(t,e,n){for(var r=Pe(e),o=Dt.f,i=_t.f,a=0;a<r.length;a++){var c=r[a];ft(t,c)||n&&ft(n,c)||o(t,c,i(e,c))}},_e=/#|\.prototype\./,Le=function(t,e){var n=xe[je(t)];return n==Ie||n!=Ce&&(k(e)?c(e):!!e)},je=Le.normalize=function(t){return String(t).replace(_e,".").toLowerCase()},xe=Le.data={},Ce=Le.NATIVE="N",Ie=Le.POLYFILL="P",Re=Le,ke=_t.f,Ne=function(t,e){var n,r,o,i,c,u=t.target,f=t.global,s=t.stat;if(n=f?a:s?a[u]||nt(u,{}):(a[u]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(c=ke(n,r))&&c.value:n[r],!Re(f?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Te(i,o)}(t.sham||o&&o.sham)&&Ht(i,"sham",!0),ce(n,r,i,t)}},Me=Object.keys||function(t){return be(t,we)},Ue=Object.assign,De=Object.defineProperty,He=w([].concat),Be=!Ue||c((function(){if(u&&1!==Ue({b:1},Ue(De({},"a",{enumerable:!0,get:function(){De(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Ue({},t)[n]||Me(Ue({},e)).join("")!=r}))?function(t,e){for(var n=ct(t),r=arguments.length,o=1,i=Oe.f,a=v.f;r>o;)for(var c,f=T(arguments[o++]),s=i?He(Me(f),i(f)):Me(f),p=s.length,h=0;p>h;)c=s[h++],u&&!l(a,f,c)||(n[c]=f[c]);return n}:Ue;Ne({target:"Object",stat:!0,arity:2,forced:Object.assign!==Be},{assign:Be});var We=Array.isArray||function(t){return"Array"==O(t)},Fe=TypeError,ze=function(t){if(t>9007199254740991)throw Fe("Maximum allowed index exceeded");return t},Ge=function(t,e,n){var r=St(e);r in t?Dt.f(t,r,y(0,n)):t[r]=n},qe={};qe[gt("toStringTag")]="z";var Ve="[object z]"===String(qe),Xe=gt("toStringTag"),Ye=Object,Je="Arguments"==O(function(){return arguments}()),Ke=Ve?O:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ye(t),Xe))?n:Je?O(e):"Object"==(r=O(e))&&k(e.callee)?"Arguments":r},Qe=function(){},$e=[],Ze=U("Reflect","construct"),tn=/^\s*(?:class|function)\b/,en=w(tn.exec),nn=!tn.exec(Qe),rn=function(t){if(!k(t))return!1;try{return Ze(Qe,$e,t),!0}catch(t){return!1}},on=function(t){if(!k(t))return!1;switch(Ke(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return nn||!!en(tn,Yt(t))}catch(t){return!0}};on.sham=!0;var an,cn=!Ze||c((function(){var t;return rn(rn.call)||!rn(Object)||!rn((function(){t=!0}))||t}))?on:rn,un=gt("species"),fn=Array,sn=function(t,e){return new(function(t){var e;return We(t)&&(e=t.constructor,(cn(e)&&(e===fn||We(e.prototype))||M(e)&&null===(e=e[un]))&&(e=void 0)),void 0===e?fn:e}(t))(0===e?0:e)},ln=gt("species"),pn=gt("isConcatSpreadable"),hn=G>=51||!c((function(){var t=[];return t[pn]=!1,t.concat()[0]!==t})),dn=function(t){if(!M(t))return!1;var e=t[pn];return void 0!==e?!!e:We(t)},vn=!(hn&&(an="concat",G>=51||!c((function(){var t=[];return(t.constructor={})[ln]=function(){return{foo:1}},1!==t[an](Boolean).foo}))));Ne({target:"Array",proto:!0,arity:1,forced:vn},{concat:function(t){var e,n,r,o,i,a=ct(this),c=sn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(dn(i=-1===e?a:arguments[e]))for(o=ve(i),ze(u+o),n=0;n<o;n++,u++)n in i&&Ge(c,u,i[n]);else ze(u+1),Ge(c,u++,i);return c.length=u,c}});var yn,gn=u&&!Lt?Object.defineProperties:function(t,e){Ct(t);for(var n,r=x(e),o=Me(e),i=o.length,a=0;i>a;)Dt.f(t,n=o[a++],r[n]);return t},mn={f:gn},bn=U("document","documentElement"),wn="prototype",Sn="script",An=$t("IE_PROTO"),On=function(){},En=function(t){return"<"+Sn+">"+t+"</"+Sn+">"},Pn=function(t){t.write(En("")),t.close();var e=t.parentWindow.Object;return t=null,e},Tn=function(){try{yn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Tn="undefined"!=typeof document?document.domain&&yn?Pn(yn):(e=Et("iframe"),n="java"+Sn+":",e.style.display="none",bn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(En("document.F=Object")),t.close(),t.F):Pn(yn);for(var r=we.length;r--;)delete Tn[wn][we[r]];return Tn()};Zt[An]=!0;var _n=Object.create||function(t,e){var n;return null!==t?(On[wn]=Ct(t),n=new On,On[wn]=null,n[An]=t):n=Tn(),void 0===e?n:mn.f(n,e)},Ln=Dt.f,jn=gt("unscopables"),xn=Array.prototype;null==xn[jn]&&Ln(xn,jn,{configurable:!0,value:_n(null)});var Cn,In,Rn,kn=function(t){xn[jn][t]=!0},Nn={},Mn=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Un=$t("IE_PROTO"),Dn=Object,Hn=Dn.prototype,Bn=Mn?Dn.getPrototypeOf:function(t){var e=ct(t);if(ft(e,Un))return e[Un];var n=e.constructor;return k(n)&&e instanceof n?n.prototype:e instanceof Dn?Hn:null},Wn=gt("iterator"),Fn=!1;[].keys&&("next"in(Rn=[].keys())?(In=Bn(Bn(Rn)))!==Object.prototype&&(Cn=In):Fn=!0);var zn=!M(Cn)||c((function(){var t={};return Cn[Wn].call(t)!==t}));zn&&(Cn={}),k(Cn[Wn])||ce(Cn,Wn,(function(){return this}));var Gn={IteratorPrototype:Cn,BUGGY_SAFARI_ITERATORS:Fn},qn=Dt.f,Vn=gt("toStringTag"),Xn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ft(t,Vn)&&qn(t,Vn,{configurable:!0,value:e})},Yn=Gn.IteratorPrototype,Jn=function(){return this},Kn=String,Qn=TypeError,$n=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return w($(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ct(n),function(t){if("object"==typeof t||k(t))return t;throw Qn("Can't set "+Kn(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Zn=zt.PROPER,tr=zt.CONFIGURABLE,er=Gn.IteratorPrototype,nr=Gn.BUGGY_SAFARI_ITERATORS,rr=gt("iterator"),or="keys",ir="values",ar="entries",cr=function(){return this},ur=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=_n(Yn,{next:y(+!r,n)}),Xn(t,o,!1),Nn[o]=Jn}(n,e,r);var c,u,f,s=function(t){if(t===o&&g)return g;if(!nr&&t in d)return d[t];switch(t){case or:case ir:case ar:return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",h=!1,d=t.prototype,v=d[rr]||d["@@iterator"]||o&&d[o],g=!nr&&v||s(o),m="Array"==e&&d.entries||v;if(m&&(c=Bn(m.call(new t)))!==Object.prototype&&c.next&&(Bn(c)!==er&&($n?$n(c,er):k(c[rr])||ce(c,rr,cr)),Xn(c,p,!0)),Zn&&o==ir&&v&&v.name!==ir&&(tr?Ht(d,"name",ir):(h=!0,g=function(){return l(v,this)})),o)if(u={values:s(ir),keys:i?g:s(or),entries:s(ar)},a)for(f in u)(nr||h||!(f in d))&&ce(d,f,u[f]);else Ne({target:e,proto:!0,forced:nr||h},u);return d[rr]!==g&&ce(d,rr,g,{name:o}),Nn[e]=g,u},fr=function(t,e){return{value:t,done:e}},sr=Dt.f,lr="Array Iterator",pr=ie.set,hr=ie.getterFor(lr),dr=ur(Array,"Array",(function(t,e){pr(this,{type:lr,target:x(t),index:0,kind:e})}),(function(){var t=hr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,fr(void 0,!0)):fr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),vr=Nn.Arguments=Nn.Array;if(kn("keys"),kn("values"),kn("entries"),u&&"values"!==vr.name)try{sr(vr,"name",{value:"values"})}catch(t){}var yr=Ve?{}.toString:function(){return"[object "+Ke(this)+"]"};Ve||ce(Object.prototype,"toString",yr,{unsafe:!0});var gr,mr,br,wr,Sr="undefined"!=typeof process&&"process"==O(process),Ar=gt("species"),Or=TypeError,Er=TypeError,Pr=gt("species"),Tr=function(t,e){var n,r=Ct(t).constructor;return void 0===r||_(n=Ct(r)[Pr])?e:function(t){if(cn(t))return t;throw Er(K(t)+" is not a constructor")}(n)},_r=Function.prototype,Lr=_r.apply,jr=_r.call,xr="object"==typeof Reflect&&Reflect.apply||(f?jr.bind(Lr):function(){return jr.apply(Lr,arguments)}),Cr=function(t){if("Function"===O(t))return w(t)},Ir=Cr(Cr.bind),Rr=function(t,e){return $(t),void 0===e?t:f?Ir(t,e):function(){return t.apply(e,arguments)}},kr=w([].slice),Nr=TypeError,Mr=/(?:ipad|iphone|ipod).*applewebkit/i.test(H),Ur=a.setImmediate,Dr=a.clearImmediate,Hr=a.process,Br=a.Dispatch,Wr=a.Function,Fr=a.MessageChannel,zr=a.String,Gr=0,qr={},Vr="onreadystatechange";c((function(){gr=a.location}));var Xr=function(t){if(ft(qr,t)){var e=qr[t];delete qr[t],e()}},Yr=function(t){return function(){Xr(t)}},Jr=function(t){Xr(t.data)},Kr=function(t){a.postMessage(zr(t),gr.protocol+"//"+gr.host)};Ur&&Dr||(Ur=function(t){!function(t,e){if(t<e)throw Nr("Not enough arguments")}(arguments.length,1);var e=k(t)?t:Wr(t),n=kr(arguments,1);return qr[++Gr]=function(){xr(e,void 0,n)},mr(Gr),Gr},Dr=function(t){delete qr[t]},Sr?mr=function(t){Hr.nextTick(Yr(t))}:Br&&Br.now?mr=function(t){Br.now(Yr(t))}:Fr&&!Mr?(wr=(br=new Fr).port2,br.port1.onmessage=Jr,mr=Rr(wr.postMessage,wr)):a.addEventListener&&k(a.postMessage)&&!a.importScripts&&gr&&"file:"!==gr.protocol&&!c(Kr)?(mr=Kr,a.addEventListener("message",Jr,!1)):mr=Vr in Et("script")?function(t){bn.appendChild(Et("script"))[Vr]=function(){bn.removeChild(this),Xr(t)}}:function(t){setTimeout(Yr(t),0)});var Qr={set:Ur,clear:Dr},$r=function(){this.head=null,this.tail=null};$r.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Zr,to,eo,no,ro,oo=$r,io=/ipad|iphone|ipod/i.test(H)&&"undefined"!=typeof Pebble,ao=/web0s(?!.*chrome)/i.test(H),co=_t.f,uo=Qr.set,fo=a.MutationObserver||a.WebKitMutationObserver,so=a.document,lo=a.process,po=a.Promise,ho=co(a,"queueMicrotask"),vo=ho&&ho.value;if(!vo){var yo=new oo,go=function(){var t,e;for(Sr&&(t=lo.domain)&&t.exit();e=yo.get();)try{e()}catch(t){throw yo.head&&Zr(),t}t&&t.enter()};Mr||Sr||ao||!fo||!so?!io&&po&&po.resolve?((no=po.resolve(void 0)).constructor=po,ro=Rr(no.then,no),Zr=function(){ro(go)}):Sr?Zr=function(){lo.nextTick(go)}:(uo=Rr(uo,a),Zr=function(){uo(go)}):(to=!0,eo=so.createTextNode(""),new fo(go).observe(eo,{characterData:!0}),Zr=function(){eo.data=to=!to}),vo=function(t){yo.head||Zr(),yo.add(t)}}var mo=vo,bo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},wo=a.Promise,So="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ao=!So&&!Sr&&"object"==typeof window&&"object"==typeof document;wo&&wo.prototype;var Oo,Eo,Po,To,_o,Lo,jo,xo=gt("species"),Co=!1,Io=k(a.PromiseRejectionEvent),Ro=Re("Promise",(function(){var t=Yt(wo),e=t!==String(wo);if(!e&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var n=new wo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[xo]=r,!(Co=n.then((function(){}))instanceof r))return!0}return!e&&(Ao||So)&&!Io})),ko={CONSTRUCTOR:Ro,REJECTION_EVENT:Io,SUBCLASSING:Co},No=TypeError,Mo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw No("Bad Promise constructor");e=t,n=r})),this.resolve=$(e),this.reject=$(n)},Uo={f:function(t){return new Mo(t)}},Do=Qr.set,Ho="Promise",Bo=ko.CONSTRUCTOR,Wo=ko.REJECTION_EVENT,Fo=ko.SUBCLASSING,zo=ie.getterFor(Ho),Go=ie.set,qo=wo&&wo.prototype,Vo=wo,Xo=qo,Yo=a.TypeError,Jo=a.document,Ko=a.process,Qo=Uo.f,$o=Qo,Zo=!!(Jo&&Jo.createEvent&&a.dispatchEvent),ti="unhandledrejection",ei=function(t){var e;return!(!M(t)||!k(e=t.then))&&e},ni=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&ci(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f(Yo("Promise-chain cycle")):(r=ei(n))?l(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ri=function(t,e){t.notified||(t.notified=!0,mo((function(){for(var n,r=t.reactions;n=r.get();)ni(n,t);t.notified=!1,e&&!t.rejection&&ii(t)})))},oi=function(t,e,n){var r,o;Zo?((r=Jo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),a.dispatchEvent(r)):r={promise:e,reason:n},!Wo&&(o=a["on"+t])?o(r):t===ti&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ii=function(t){l(Do,a,(function(){var e,n=t.facade,r=t.value;if(ai(t)&&(e=bo((function(){Sr?Ko.emit("unhandledRejection",r,n):oi(ti,n,r)})),t.rejection=Sr||ai(t)?2:1,e.error))throw e.value}))},ai=function(t){return 1!==t.rejection&&!t.parent},ci=function(t){l(Do,a,(function(){var e=t.facade;Sr?Ko.emit("rejectionHandled",e):oi("rejectionhandled",e,t.value)}))},ui=function(t,e,n){return function(r){t(e,r,n)}},fi=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ri(t,!0))},si=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Yo("Promise can't be resolved itself");var r=ei(e);r?mo((function(){var n={done:!1};try{l(r,e,ui(si,n,t),ui(fi,n,t))}catch(e){fi(n,e,t)}})):(t.value=e,t.state=1,ri(t,!1))}catch(e){fi({done:!1},e,t)}}};if(Bo&&(Xo=(Vo=function(t){!function(t,e){if(D(e,t))return t;throw Or("Incorrect invocation")}(this,Xo),$(t),l(Oo,this);var e=zo(this);try{t(ui(si,e),ui(fi,e))}catch(t){fi(e,t)}}).prototype,(Oo=function(t){Go(this,{type:Ho,done:!1,notified:!1,parent:!1,reactions:new oo,rejection:!1,state:0,value:void 0})}).prototype=ce(Xo,"then",(function(t,e){var n=zo(this),r=Qo(Tr(this,Vo));return n.parent=!0,r.ok=!k(t)||t,r.fail=k(e)&&e,r.domain=Sr?Ko.domain:void 0,0==n.state?n.reactions.add(r):mo((function(){ni(r,n)})),r.promise})),Eo=function(){var t=new Oo,e=zo(t);this.promise=t,this.resolve=ui(si,e),this.reject=ui(fi,e)},Uo.f=Qo=function(t){return t===Vo||undefined===t?new Eo(t):$o(t)},k(wo)&&qo!==Object.prototype)){Po=qo.then,Fo||ce(qo,"then",(function(t,e){var n=this;return new Vo((function(t,e){l(Po,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete qo.constructor}catch(t){}$n&&$n(qo,Xo)}Ne({global:!0,constructor:!0,wrap:!0,forced:Bo},{Promise:Vo}),Xn(Vo,Ho,!1),jo=U(Ho),u&&jo&&!jo[Ar]&&(To=jo,_o=Ar,(Lo={configurable:!0,get:function(){return this}}).get&&ae(Lo.get,_o,{getter:!0}),Lo.set&&ae(Lo.set,_o,{setter:!0}),Dt.f(To,_o,Lo));var li=gt("iterator"),pi=Array.prototype,hi=gt("iterator"),di=function(t){if(!_(t))return Z(t,hi)||Z(t,"@@iterator")||Nn[Ke(t)]},vi=TypeError,yi=function(t,e,n){var r,o;Ct(t);try{if(!(r=Z(t,"return"))){if("throw"===e)throw n;return n}r=l(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Ct(r),n},gi=TypeError,mi=function(t,e){this.stopped=t,this.result=e},bi=mi.prototype,wi=function(t,e,n){var r,o,i,a,c,u,f,s,p=n&&n.that,h=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Rr(e,p),m=function(t){return r&&yi(r,"normal",t),new mi(!0,t)},b=function(t){return h?(Ct(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=di(t)))throw gi(K(t)+" is not iterable");if(void 0!==(s=o)&&(Nn.Array===s||pi[li]===s)){for(i=0,a=ve(t);a>i;i++)if((c=b(t[i]))&&D(bi,c))return c;return new mi(!1)}r=function(t,e){var n=arguments.length<2?di(t):e;if($(n))return Ct(l(n,t));throw vi(K(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=l(u,r)).done;){try{c=b(f.value)}catch(t){yi(r,"throw",t)}if("object"==typeof c&&c&&D(bi,c))return c}return new mi(!1)},Si=gt("iterator"),Ai=!1;try{var Oi=0,Ei={next:function(){return{done:!!Oi++}},return:function(){Ai=!0}};Ei[Si]=function(){return this},Array.from(Ei,(function(){throw 2}))}catch(t){}var Pi=ko.CONSTRUCTOR||!function(t,e){if(!e&&!Ai)return!1;var n=!1;try{var r={};r[Si]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){wo.all(t).then(void 0,(function(){}))}));Ne({target:"Promise",stat:!0,forced:Pi},{all:function(t){var e=this,n=Uo.f(e),r=n.resolve,o=n.reject,i=bo((function(){var n=$(e.resolve),i=[],a=0,c=1;wi(t,(function(t){var u=a++,f=!1;c++,l(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Ti=ko.CONSTRUCTOR,_i=wo&&wo.prototype;if(Ne({target:"Promise",proto:!0,forced:Ti,real:!0},{catch:function(t){return this.then(void 0,t)}}),k(wo)){var Li=U("Promise").prototype.catch;_i.catch!==Li&&ce(_i,"catch",Li,{unsafe:!0})}Ne({target:"Promise",stat:!0,forced:Pi},{race:function(t){var e=this,n=Uo.f(e),r=n.reject,o=bo((function(){var o=$(e.resolve);wi(t,(function(t){l(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Ne({target:"Promise",stat:!0,forced:ko.CONSTRUCTOR},{reject:function(t){var e=Uo.f(this);return l(e.reject,void 0,t),e.promise}});var ji=ko.CONSTRUCTOR;U("Promise"),Ne({target:"Promise",stat:!0,forced:ji},{resolve:function(t){return function(t,e){if(Ct(t),M(e)&&e.constructor===t)return e;var n=Uo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var xi=String,Ci=function(t){if("Symbol"===Ke(t))throw TypeError("Cannot convert a Symbol value to a string");return xi(t)},Ii=w("".charAt),Ri=w("".charCodeAt),ki=w("".slice),Ni=function(t){return function(e,n){var r,o,i=Ci(j(e)),a=le(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ri(i,a))<55296||r>56319||a+1===c||(o=Ri(i,a+1))<56320||o>57343?t?Ii(i,a):r:t?ki(i,a,a+2):o-56320+(r-55296<<10)+65536}},Mi={codeAt:Ni(!1),charAt:Ni(!0)}.charAt,Ui="String Iterator",Di=ie.set,Hi=ie.getterFor(Ui);ur(String,"String",(function(t){Di(this,{type:Ui,string:Ci(t),index:0})}),(function(){var t,e=Hi(this),n=e.string,r=e.index;return r>=n.length?fr(void 0,!0):(t=Mi(n,r),e.index+=t.length,fr(t,!1))}));var Bi={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},Wi=Et("span").classList,Fi=Wi&&Wi.constructor&&Wi.constructor.prototype,zi=Fi===Object.prototype?void 0:Fi,Gi=gt("iterator"),qi=gt("toStringTag"),Vi=dr.values,Xi=function(t,e){if(t){if(t[Gi]!==Vi)try{Ht(t,Gi,Vi)}catch(e){t[Gi]=Vi}if(t[qi]||Ht(t,qi,e),Bi[e])for(var n in dr)if(t[n]!==dr[n])try{Ht(t,n,dr[n])}catch(e){t[n]=dr[n]}}};for(var Yi in Bi)Xi(a[Yi]&&a[Yi].prototype,Yi);Xi(zi,"DOMTokenList");var Ji=function(){return Ji=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ji.apply(this,arguments)},Ki={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(e){void 0===e&&(e=Ki);var n=Object.assign(Ki,e),r=n.weixinJsSdkTicket,o=n.launchContainerQuery,i=n.genTagPrefixStr,a=n.launchShowWeixinToBrowserImgUrl,c=n.canShowWeixinToBrowser,u=n.launchShowWeixinToBrowserClassName,f=n.launchBtnClassName,s=n.launchBtnStyle,l=n.launchBtnText,p=n.launchErrorLink,h=n.wexinServiceAccountAppId,d=n.openPlatformMobileAppId,v=n.canContinuousUpdating,y=n.onMenuShareTimelineOptions,g=n.onMenuShareAppMessageOptions,m=n.isConClosed,b=n.isWxDebug,w=n.canLaunchApp,S=n.canFireErrorLinkDirectly,A=n.launchBtnClick,O=n.launchReady,E=n.serviceAccountAppId,P=n.extInfo,T=window.sha1,_=window.wx,L=window.$||window.jQuery;T&&_&&L||console.error("Launch App: wx or sha1 or $ is not found");var j=function(){},x=t.genCustomConsole("LaunchCon:",{isClosed:m});x.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},I={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},R={title:document.title,link:location.href};C=Ji(Ji({},C),R),I=Ji(Ji({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(f,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+s+e+"}</style>"+"<".concat(n,' class="').concat(f,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+l+"</".concat(n,">")},N=k();function M(){t.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){L(".mazey-launch-app-mask").hide()}),0===L(".mazey-launch-app-mask").length?L("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(u,"' ")+"src='".concat(a,"' ")+"alt='Launch App' /></div>"):L(".mazey-launch-app-mask").show()}function U(){x.log("renderWeixinLaunchTemplate"),!E&&h&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),E=h),function(e,n){void 0===e&&(e=""),void 0===n&&(n=""),x.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(r||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(T)]).then((function(r){x.log("allRes",r);var a=r[0],u=r[1],f=t.generateRndNum(7),s=a,l=(new Date).getTime(),h=u("jsapi_ticket="+s+"&noncestr="+f+"×tamp="+l+"&url="+location.href);return _.config({debug:b,appId:e,timestamp:l,nonceStr:f,signature:h,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),_.ready((function(){y&&(x.log("onMenuShareTimelineOptions",y),_.onMenuShareTimeline(y)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Ji(Ji({},C),t),x.log("window LAUNCH_APP_SHARE_TIMELINE",t),_.onMenuShareTimeline(t)},g&&(x.log("onMenuShareAppMessageOptions",g),_.onMenuShareAppMessage(g)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Ji(Ji({},I),t),x.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),_.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,O&&O();var t=function(){var t=L(o);x.log("containers",o,t,t.length),t.length>0&&t.each((function(t,e){var r=L(e).attr("data-launch-app-key");if(!r){var o=L(e).parents("[data-launch-app-key]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-key"),x.log("keyEle",o,r))}r||(r=t);var a="mazey-launch-app-tag-".concat(r),u=L(".".concat(a," wx-open-launch-app")),f=L(e).attr("data-launch-app-ext-info");if(!f){var s=L(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(f=s.attr("data-launch-app-ext-info"),x.log("eleExtInfoEle parents",s,f))}f&&(P=f);var l=L(e).attr("data-launch-app-error-link");if(!l){var h=L(e).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(l=h.attr("data-launch-app-error-link"),x.log("eleErrorLinkEle parents",h,l))}var d=p;l&&(d=l),0===u.length&&(L(e).addClass(a),x.log("success:",a),function(t){var e=i,r=e+t,o="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(P)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";L("."+t+":eq(0)").append(o);var a=document.getElementById(r);a&&(a.addEventListener("ready",(function(t){x.log("ready event",t)})),a.addEventListener("launch",(function(t){x.log("launch event",t),t.detail&&t.detail.extInfo&&x.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){x.error(t.detail),L("[id^='"+e+"']").hide(),c&&M(),d&&(x.log("realErrorLink",d),location.href=d)})),a.addEventListener("click",(function(t){x.log("click event",t),A&&A()})))}(a))}))};t(),j=t})),_.error((function(t){x.error(t)})),"success:launch_app"})).catch((function(t){x.error(t)}))}(E,d)}function D(t){if(x.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&w(t)&&(U(),window.LAUNCH_APP_LOAD=!0),v&&window.LAUNCH_APP_LOAD&&w(t)&&j(),S()){var e=L(o);e.length>0&&e.each((function(t,e){var n=L(e).children("."+f);if(!n||!n.length){var r=L(e).attr("data-launch-app-error-link");if(!r){var o=L(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=k(r,"position:absolute;left:0;z-index:999;","a");L(e).append(i)}}}))}}function H(){x.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){x.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){x.log("opt",t)},start:D,update:D,destroy:H}};
|
|
6
|
+
"use strict";var t=require("mazey"),e=require("jquery"),n=require("js-sha1");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=r(e),i=r(n),a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t,e){return t(e={exports:{}},e.exports),e.exports}var u,f,l=function(t){return t&&t.Math==Math&&t},s=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},d=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,y=h?v.bind(v):function(){return v.apply(v,arguments)},g={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!g.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:g,w={f:b},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=Function.prototype,O=A.call,E=h&&A.bind.bind(O,O),P=h?E:function(t){return function(){return O.apply(t,arguments)}},T=P({}.toString),_=P("".slice),j=function(t){return _(T(t),8,-1)},L=Object,x=P("".split),C=p((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?x(t,""):L(t)}:L,I=function(t){return null==t},R=TypeError,k=function(t){if(I(t))throw R("Can't call method on "+t);return t},N=function(t){return C(k(t))},M="object"==typeof document&&document.all,U={all:M,IS_HTMLDDA:void 0===M&&void 0!==M},D=U.all,H=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},B=U.all,W=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===B}:function(t){return"object"==typeof t?null!==t:H(t)},F=function(t,e){return arguments.length<2?(n=s[t],H(n)?n:void 0):s[t]&&s[t][e];var n},z=P({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",q=s.process,V=s.Deno,X=q&&q.versions||V&&V.version,Y=X&&X.v8;Y&&(f=(u=Y.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!f&&G&&(!(u=G.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=G.match(/Chrome\/(\d+)/))&&(f=+u[1]);var J=f,K=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41})),Q=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,Z=Q?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return H(e)&&z(e.prototype,$(t))},tt=String,et=function(t){try{return tt(t)}catch(t){return"Object"}},nt=TypeError,rt=function(t){if(H(t))return t;throw nt(et(t)+" is not a function")},ot=function(t,e){var n=t[e];return I(n)?void 0:rt(n)},it=TypeError,at=Object.defineProperty,ct=function(t,e){try{at(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e},ut="__core-js_shared__",ft=s[ut]||ct(ut,{}),lt=c((function(t){(t.exports=function(t,e){return ft[t]||(ft[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),st=Object,pt=function(t){return st(k(t))},dt=P({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return dt(pt(t),e)},vt=0,yt=Math.random(),gt=P(1..toString),mt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+gt(++vt+yt,36)},bt=s.Symbol,wt=lt("wks"),St=Q?bt.for||bt:bt&&bt.withoutSetter||mt,At=function(t){return ht(wt,t)||(wt[t]=K&&ht(bt,t)?bt[t]:St("Symbol."+t)),wt[t]},Ot=TypeError,Et=At("toPrimitive"),Pt=function(t,e){if(!W(t)||Z(t))return t;var n,r=ot(t,Et);if(r){if(void 0===e&&(e="default"),n=y(r,t,e),!W(n)||Z(n))return n;throw Ot("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&H(n=t.toString)&&!W(r=y(n,t)))return r;if(H(n=t.valueOf)&&!W(r=y(n,t)))return r;if("string"!==e&&H(n=t.toString)&&!W(r=y(n,t)))return r;throw it("Can't convert object to primitive value")}(t,e)},Tt=function(t){var e=Pt(t,"string");return Z(e)?e:e+""},_t=s.document,jt=W(_t)&&W(_t.createElement),Lt=function(t){return jt?_t.createElement(t):{}},xt=!d&&!p((function(){return 7!=Object.defineProperty(Lt("div"),"a",{get:function(){return 7}}).a})),Ct=Object.getOwnPropertyDescriptor,It={f:d?Ct:function(t,e){if(t=N(t),e=Tt(e),xt)try{return Ct(t,e)}catch(t){}if(ht(t,e))return S(!y(w.f,t,e),t[e])}},Rt=d&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kt=String,Nt=TypeError,Mt=function(t){if(W(t))return t;throw Nt(kt(t)+" is not an object")},Ut=TypeError,Dt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Bt="enumerable",Wt="configurable",Ft="writable",zt={f:d?Rt?function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ft in n&&!n[Ft]){var r=Ht(t,e);r&&r[Ft]&&(t[e]=n.value,n={configurable:Wt in n?n[Wt]:r[Wt],enumerable:Bt in n?n[Bt]:r[Bt],writable:!1})}return Dt(t,e,n)}:Dt:function(t,e,n){if(Mt(t),e=Tt(e),Mt(n),xt)try{return Dt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Gt=d?function(t,e,n){return zt.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},qt=Function.prototype,Vt=d&&Object.getOwnPropertyDescriptor,Xt=ht(qt,"name"),Yt={EXISTS:Xt,PROPER:Xt&&"something"===function(){}.name,CONFIGURABLE:Xt&&(!d||d&&Vt(qt,"name").configurable)},Jt=P(Function.toString);H(ft.inspectSource)||(ft.inspectSource=function(t){return Jt(t)});var Kt,Qt,$t,Zt=ft.inspectSource,te=s.WeakMap,ee=H(te)&&/native code/.test(String(te)),ne=lt("keys"),re=function(t){return ne[t]||(ne[t]=mt(t))},oe={},ie="Object already initialized",ae=s.TypeError,ce=s.WeakMap;if(ee||ft.state){var ue=ft.state||(ft.state=new ce);ue.get=ue.get,ue.has=ue.has,ue.set=ue.set,Kt=function(t,e){if(ue.has(t))throw ae(ie);return e.facade=t,ue.set(t,e),e},Qt=function(t){return ue.get(t)||{}},$t=function(t){return ue.has(t)}}else{var fe=re("state");oe[fe]=!0,Kt=function(t,e){if(ht(t,fe))throw ae(ie);return e.facade=t,Gt(t,fe,e),e},Qt=function(t){return ht(t,fe)?t[fe]:{}},$t=function(t){return ht(t,fe)}}var le={set:Kt,get:Qt,has:$t,enforce:function(t){return $t(t)?Qt(t):Kt(t,{})},getterFor:function(t){return function(e){var n;if(!W(e)||(n=Qt(e)).type!==t)throw ae("Incompatible receiver, "+t+" required");return n}}},se=c((function(t){var e=Yt.CONFIGURABLE,n=le.enforce,r=le.get,o=String,i=Object.defineProperty,a=P("".slice),c=P("".replace),u=P([].join),f=d&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),s=t.exports=function(t,r,s){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!ht(t,"name")||e&&t.name!==r)&&(d?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&&ht(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&ht(s,"constructor")&&s.constructor?d&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=n(t);return ht(p,"source")||(p.source=u(l,"string"==typeof r?r:"")),t};Function.prototype.toString=s((function(){return H(this)&&r(this).source||Zt(this)}),"toString")})),pe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(H(n)&&se(n,i,r),r.global)o?t[e]=n:ct(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:zt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},de=Math.ceil,he=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?he:de)(e)},ye=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ge=Math.max,me=Math.min,be=Math.min,we=function(t){return(e=t.length)>0?be(ye(e),9007199254740991):0;var e},Se=function(t){return function(e,n,r){var o,i=N(e),a=we(i),c=function(t,e){var n=ye(t);return n<0?ge(n+e,0):me(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},Ae={includes:Se(!0),indexOf:Se(!1)}.indexOf,Oe=P([].push),Ee=function(t,e){var n,r=N(t),o=0,i=[];for(n in r)!ht(oe,n)&&ht(r,n)&&Oe(i,n);for(;e.length>o;)ht(r,n=e[o++])&&(~Ae(i,n)||Oe(i,n));return i},Pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Te=Pe.concat("length","prototype"),_e={f:Object.getOwnPropertyNames||function(t){return Ee(t,Te)}},je={f:Object.getOwnPropertySymbols},Le=P([].concat),xe=F("Reflect","ownKeys")||function(t){var e=_e.f(Mt(t)),n=je.f;return n?Le(e,n(t)):e},Ce=function(t,e,n){for(var r=xe(e),o=zt.f,i=It.f,a=0;a<r.length;a++){var c=r[a];ht(t,c)||n&&ht(n,c)||o(t,c,i(e,c))}},Ie=/#|\.prototype\./,Re=function(t,e){var n=Ne[ke(t)];return n==Ue||n!=Me&&(H(e)?p(e):!!e)},ke=Re.normalize=function(t){return String(t).replace(Ie,".").toLowerCase()},Ne=Re.data={},Me=Re.NATIVE="N",Ue=Re.POLYFILL="P",De=Re,He=It.f,Be=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,f=t.stat;if(n=u?s:f?s[c]||ct(c,{}):(s[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=He(n,r))&&a.value:n[r],!De(u?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ce(i,o)}(t.sham||o&&o.sham)&&Gt(i,"sham",!0),pe(n,r,i,t)}},We=Object.keys||function(t){return Ee(t,Pe)},Fe=Object.assign,ze=Object.defineProperty,Ge=P([].concat),qe=!Fe||p((function(){if(d&&1!==Fe({b:1},Fe(ze({},"a",{enumerable:!0,get:function(){ze(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Fe({},t)[n]||We(Fe({},e)).join("")!=r}))?function(t,e){for(var n=pt(t),r=arguments.length,o=1,i=je.f,a=w.f;r>o;)for(var c,u=C(arguments[o++]),f=i?Ge(We(u),i(u)):We(u),l=f.length,s=0;l>s;)c=f[s++],d&&!y(a,u,c)||(n[c]=u[c]);return n}:Fe;Be({target:"Object",stat:!0,arity:2,forced:Object.assign!==qe},{assign:qe});var Ve=Array.isArray||function(t){return"Array"==j(t)},Xe=TypeError,Ye=function(t){if(t>9007199254740991)throw Xe("Maximum allowed index exceeded");return t},Je=function(t,e,n){var r=Tt(e);r in t?zt.f(t,r,S(0,n)):t[r]=n},Ke={};Ke[At("toStringTag")]="z";var Qe="[object z]"===String(Ke),$e=At("toStringTag"),Ze=Object,tn="Arguments"==j(function(){return arguments}()),en=Qe?j:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ze(t),$e))?n:tn?j(e):"Object"==(r=j(e))&&H(e.callee)?"Arguments":r},nn=function(){},rn=[],on=F("Reflect","construct"),an=/^\s*(?:class|function)\b/,cn=P(an.exec),un=!an.exec(nn),fn=function(t){if(!H(t))return!1;try{return on(nn,rn,t),!0}catch(t){return!1}},ln=function(t){if(!H(t))return!1;switch(en(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return un||!!cn(an,Zt(t))}catch(t){return!0}};ln.sham=!0;var sn,pn=!on||p((function(){var t;return fn(fn.call)||!fn(Object)||!fn((function(){t=!0}))||t}))?ln:fn,dn=At("species"),hn=Array,vn=function(t,e){return new(function(t){var e;return Ve(t)&&(e=t.constructor,(pn(e)&&(e===hn||Ve(e.prototype))||W(e)&&null===(e=e[dn]))&&(e=void 0)),void 0===e?hn:e}(t))(0===e?0:e)},yn=At("species"),gn=At("isConcatSpreadable"),mn=J>=51||!p((function(){var t=[];return t[gn]=!1,t.concat()[0]!==t})),bn=function(t){if(!W(t))return!1;var e=t[gn];return void 0!==e?!!e:Ve(t)},wn=!(mn&&(sn="concat",J>=51||!p((function(){var t=[];return(t.constructor={})[yn]=function(){return{foo:1}},1!==t[sn](Boolean).foo}))));Be({target:"Array",proto:!0,arity:1,forced:wn},{concat:function(t){var e,n,r,o,i,a=pt(this),c=vn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(bn(i=-1===e?a:arguments[e]))for(o=we(i),Ye(u+o),n=0;n<o;n++,u++)n in i&&Je(c,u,i[n]);else Ye(u+1),Je(c,u++,i);return c.length=u,c}});var Sn,An=d&&!Rt?Object.defineProperties:function(t,e){Mt(t);for(var n,r=N(e),o=We(e),i=o.length,a=0;i>a;)zt.f(t,n=o[a++],r[n]);return t},On={f:An},En=F("document","documentElement"),Pn="prototype",Tn="script",_n=re("IE_PROTO"),jn=function(){},Ln=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},xn=function(t){t.write(Ln("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cn=function(){try{Sn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Cn="undefined"!=typeof document?document.domain&&Sn?xn(Sn):(e=Lt("iframe"),n="java"+Tn+":",e.style.display="none",En.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):xn(Sn);for(var r=Pe.length;r--;)delete Cn[Pn][Pe[r]];return Cn()};oe[_n]=!0;var In=Object.create||function(t,e){var n;return null!==t?(jn[Pn]=Mt(t),n=new jn,jn[Pn]=null,n[_n]=t):n=Cn(),void 0===e?n:On.f(n,e)},Rn=zt.f,kn=At("unscopables"),Nn=Array.prototype;null==Nn[kn]&&Rn(Nn,kn,{configurable:!0,value:In(null)});var Mn,Un,Dn,Hn=function(t){Nn[kn][t]=!0},Bn={},Wn=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fn=re("IE_PROTO"),zn=Object,Gn=zn.prototype,qn=Wn?zn.getPrototypeOf:function(t){var e=pt(t);if(ht(e,Fn))return e[Fn];var n=e.constructor;return H(n)&&e instanceof n?n.prototype:e instanceof zn?Gn:null},Vn=At("iterator"),Xn=!1;[].keys&&("next"in(Dn=[].keys())?(Un=qn(qn(Dn)))!==Object.prototype&&(Mn=Un):Xn=!0);var Yn=!W(Mn)||p((function(){var t={};return Mn[Vn].call(t)!==t}));Yn&&(Mn={}),H(Mn[Vn])||pe(Mn,Vn,(function(){return this}));var Jn={IteratorPrototype:Mn,BUGGY_SAFARI_ITERATORS:Xn},Kn=zt.f,Qn=At("toStringTag"),$n=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ht(t,Qn)&&Kn(t,Qn,{configurable:!0,value:e})},Zn=Jn.IteratorPrototype,tr=function(){return this},er=String,nr=TypeError,rr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return P(rt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Mt(n),function(t){if("object"==typeof t||H(t))return t;throw nr("Can't set "+er(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),or=Yt.PROPER,ir=Yt.CONFIGURABLE,ar=Jn.IteratorPrototype,cr=Jn.BUGGY_SAFARI_ITERATORS,ur=At("iterator"),fr="keys",lr="values",sr="entries",pr=function(){return this},dr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=In(Zn,{next:S(+!r,n)}),$n(t,o,!1),Bn[o]=tr}(n,e,r);var c,u,f,l=function(t){if(t===o&&v)return v;if(!cr&&t in d)return d[t];switch(t){case fr:case lr:case sr:return function(){return new n(this,t)}}return function(){return new n(this)}},s=e+" Iterator",p=!1,d=t.prototype,h=d[ur]||d["@@iterator"]||o&&d[o],v=!cr&&h||l(o),g="Array"==e&&d.entries||h;if(g&&(c=qn(g.call(new t)))!==Object.prototype&&c.next&&(qn(c)!==ar&&(rr?rr(c,ar):H(c[ur])||pe(c,ur,pr)),$n(c,s,!0)),or&&o==lr&&h&&h.name!==lr&&(ir?Gt(d,"name",lr):(p=!0,v=function(){return y(h,this)})),o)if(u={values:l(lr),keys:i?v:l(fr),entries:l(sr)},a)for(f in u)(cr||p||!(f in d))&&pe(d,f,u[f]);else Be({target:e,proto:!0,forced:cr||p},u);return d[ur]!==v&&pe(d,ur,v,{name:o}),Bn[e]=v,u},hr=function(t,e){return{value:t,done:e}},vr=zt.f,yr="Array Iterator",gr=le.set,mr=le.getterFor(yr),br=dr(Array,"Array",(function(t,e){gr(this,{type:yr,target:N(t),index:0,kind:e})}),(function(){var t=mr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,hr(void 0,!0)):hr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),wr=Bn.Arguments=Bn.Array;if(Hn("keys"),Hn("values"),Hn("entries"),d&&"values"!==wr.name)try{vr(wr,"name",{value:"values"})}catch(t){}var Sr=Qe?{}.toString:function(){return"[object "+en(this)+"]"};Qe||pe(Object.prototype,"toString",Sr,{unsafe:!0});var Ar,Or,Er,Pr,Tr="undefined"!=typeof process&&"process"==j(process),_r=At("species"),jr=TypeError,Lr=TypeError,xr=At("species"),Cr=function(t,e){var n,r=Mt(t).constructor;return void 0===r||I(n=Mt(r)[xr])?e:function(t){if(pn(t))return t;throw Lr(et(t)+" is not a constructor")}(n)},Ir=Function.prototype,Rr=Ir.apply,kr=Ir.call,Nr="object"==typeof Reflect&&Reflect.apply||(h?kr.bind(Rr):function(){return kr.apply(Rr,arguments)}),Mr=function(t){if("Function"===j(t))return P(t)},Ur=Mr(Mr.bind),Dr=function(t,e){return rt(t),void 0===e?t:h?Ur(t,e):function(){return t.apply(e,arguments)}},Hr=P([].slice),Br=TypeError,Wr=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),Fr=s.setImmediate,zr=s.clearImmediate,Gr=s.process,qr=s.Dispatch,Vr=s.Function,Xr=s.MessageChannel,Yr=s.String,Jr=0,Kr={},Qr="onreadystatechange";p((function(){Ar=s.location}));var $r=function(t){if(ht(Kr,t)){var e=Kr[t];delete Kr[t],e()}},Zr=function(t){return function(){$r(t)}},to=function(t){$r(t.data)},eo=function(t){s.postMessage(Yr(t),Ar.protocol+"//"+Ar.host)};Fr&&zr||(Fr=function(t){!function(t,e){if(t<e)throw Br("Not enough arguments")}(arguments.length,1);var e=H(t)?t:Vr(t),n=Hr(arguments,1);return Kr[++Jr]=function(){Nr(e,void 0,n)},Or(Jr),Jr},zr=function(t){delete Kr[t]},Tr?Or=function(t){Gr.nextTick(Zr(t))}:qr&&qr.now?Or=function(t){qr.now(Zr(t))}:Xr&&!Wr?(Pr=(Er=new Xr).port2,Er.port1.onmessage=to,Or=Dr(Pr.postMessage,Pr)):s.addEventListener&&H(s.postMessage)&&!s.importScripts&&Ar&&"file:"!==Ar.protocol&&!p(eo)?(Or=eo,s.addEventListener("message",to,!1)):Or=Qr in Lt("script")?function(t){En.appendChild(Lt("script"))[Qr]=function(){En.removeChild(this),$r(t)}}:function(t){setTimeout(Zr(t),0)});var no={set:Fr,clear:zr},ro=function(){this.head=null,this.tail=null};ro.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var oo,io,ao,co,uo,fo=ro,lo=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,so=/web0s(?!.*chrome)/i.test(G),po=It.f,ho=no.set,vo=s.MutationObserver||s.WebKitMutationObserver,yo=s.document,go=s.process,mo=s.Promise,bo=po(s,"queueMicrotask"),wo=bo&&bo.value;if(!wo){var So=new fo,Ao=function(){var t,e;for(Tr&&(t=go.domain)&&t.exit();e=So.get();)try{e()}catch(t){throw So.head&&oo(),t}t&&t.enter()};Wr||Tr||so||!vo||!yo?!lo&&mo&&mo.resolve?((co=mo.resolve(void 0)).constructor=mo,uo=Dr(co.then,co),oo=function(){uo(Ao)}):Tr?oo=function(){go.nextTick(Ao)}:(ho=Dr(ho,s),oo=function(){ho(Ao)}):(io=!0,ao=yo.createTextNode(""),new vo(Ao).observe(ao,{characterData:!0}),oo=function(){ao.data=io=!io}),wo=function(t){So.head||oo(),So.add(t)}}var Oo=wo,Eo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Po=s.Promise,To="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,_o=!To&&!Tr&&"object"==typeof window&&"object"==typeof document;Po&&Po.prototype;var jo,Lo,xo,Co,Io,Ro,ko,No=At("species"),Mo=!1,Uo=H(s.PromiseRejectionEvent),Do=De("Promise",(function(){var t=Zt(Po),e=t!==String(Po);if(!e&&66===J)return!0;if(!J||J<51||!/native code/.test(t)){var n=new Po((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[No]=r,!(Mo=n.then((function(){}))instanceof r))return!0}return!e&&(_o||To)&&!Uo})),Ho={CONSTRUCTOR:Do,REJECTION_EVENT:Uo,SUBCLASSING:Mo},Bo=TypeError,Wo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Bo("Bad Promise constructor");e=t,n=r})),this.resolve=rt(e),this.reject=rt(n)},Fo={f:function(t){return new Wo(t)}},zo=no.set,Go="Promise",qo=Ho.CONSTRUCTOR,Vo=Ho.REJECTION_EVENT,Xo=Ho.SUBCLASSING,Yo=le.getterFor(Go),Jo=le.set,Ko=Po&&Po.prototype,Qo=Po,$o=Ko,Zo=s.TypeError,ti=s.document,ei=s.process,ni=Fo.f,ri=ni,oi=!!(ti&&ti.createEvent&&s.dispatchEvent),ii="unhandledrejection",ai=function(t){var e;return!(!W(t)||!H(e=t.then))&&e},ci=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,l=t.domain;try{c?(a||(2===e.rejection&&pi(e),e.rejection=1),!0===c?n=i:(l&&l.enter(),n=c(i),l&&(l.exit(),o=!0)),n===t.promise?f(Zo("Promise-chain cycle")):(r=ai(n))?y(r,n,u,f):u(n)):f(i)}catch(t){l&&!o&&l.exit(),f(t)}},ui=function(t,e){t.notified||(t.notified=!0,Oo((function(){for(var n,r=t.reactions;n=r.get();)ci(n,t);t.notified=!1,e&&!t.rejection&&li(t)})))},fi=function(t,e,n){var r,o;oi?((r=ti.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!Vo&&(o=s["on"+t])?o(r):t===ii&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},li=function(t){y(zo,s,(function(){var e,n=t.facade,r=t.value;if(si(t)&&(e=Eo((function(){Tr?ei.emit("unhandledRejection",r,n):fi(ii,n,r)})),t.rejection=Tr||si(t)?2:1,e.error))throw e.value}))},si=function(t){return 1!==t.rejection&&!t.parent},pi=function(t){y(zo,s,(function(){var e=t.facade;Tr?ei.emit("rejectionHandled",e):fi("rejectionhandled",e,t.value)}))},di=function(t,e,n){return function(r){t(e,r,n)}},hi=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ui(t,!0))},vi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Zo("Promise can't be resolved itself");var r=ai(e);r?Oo((function(){var n={done:!1};try{y(r,e,di(vi,n,t),di(hi,n,t))}catch(e){hi(n,e,t)}})):(t.value=e,t.state=1,ui(t,!1))}catch(e){hi({done:!1},e,t)}}};if(qo&&($o=(Qo=function(t){!function(t,e){if(z(e,t))return t;throw jr("Incorrect invocation")}(this,$o),rt(t),y(jo,this);var e=Yo(this);try{t(di(vi,e),di(hi,e))}catch(t){hi(e,t)}}).prototype,(jo=function(t){Jo(this,{type:Go,done:!1,notified:!1,parent:!1,reactions:new fo,rejection:!1,state:0,value:void 0})}).prototype=pe($o,"then",(function(t,e){var n=Yo(this),r=ni(Cr(this,Qo));return n.parent=!0,r.ok=!H(t)||t,r.fail=H(e)&&e,r.domain=Tr?ei.domain:void 0,0==n.state?n.reactions.add(r):Oo((function(){ci(r,n)})),r.promise})),Lo=function(){var t=new jo,e=Yo(t);this.promise=t,this.resolve=di(vi,e),this.reject=di(hi,e)},Fo.f=ni=function(t){return t===Qo||undefined===t?new Lo(t):ri(t)},H(Po)&&Ko!==Object.prototype)){xo=Ko.then,Xo||pe(Ko,"then",(function(t,e){var n=this;return new Qo((function(t,e){y(xo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Ko.constructor}catch(t){}rr&&rr(Ko,$o)}Be({global:!0,constructor:!0,wrap:!0,forced:qo},{Promise:Qo}),$n(Qo,Go,!1),ko=F(Go),d&&ko&&!ko[_r]&&(Co=ko,Io=_r,(Ro={configurable:!0,get:function(){return this}}).get&&se(Ro.get,Io,{getter:!0}),Ro.set&&se(Ro.set,Io,{setter:!0}),zt.f(Co,Io,Ro));var yi=At("iterator"),gi=Array.prototype,mi=At("iterator"),bi=function(t){if(!I(t))return ot(t,mi)||ot(t,"@@iterator")||Bn[en(t)]},wi=TypeError,Si=function(t,e,n){var r,o;Mt(t);try{if(!(r=ot(t,"return"))){if("throw"===e)throw n;return n}r=y(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Mt(r),n},Ai=TypeError,Oi=function(t,e){this.stopped=t,this.result=e},Ei=Oi.prototype,Pi=function(t,e,n){var r,o,i,a,c,u,f,l,s=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Dr(e,s),m=function(t){return r&&Si(r,"normal",t),new Oi(!0,t)},b=function(t){return p?(Mt(t),v?g(t[0],t[1],m):g(t[0],t[1])):v?g(t,m):g(t)};if(d)r=t.iterator;else if(h)r=t;else{if(!(o=bi(t)))throw Ai(et(t)+" is not iterable");if(void 0!==(l=o)&&(Bn.Array===l||gi[yi]===l)){for(i=0,a=we(t);a>i;i++)if((c=b(t[i]))&&z(Ei,c))return c;return new Oi(!1)}r=function(t,e){var n=arguments.length<2?bi(t):e;if(rt(n))return Mt(y(n,t));throw wi(et(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=y(u,r)).done;){try{c=b(f.value)}catch(t){Si(r,"throw",t)}if("object"==typeof c&&c&&z(Ei,c))return c}return new Oi(!1)},Ti=At("iterator"),_i=!1;try{var ji=0,Li={next:function(){return{done:!!ji++}},return:function(){_i=!0}};Li[Ti]=function(){return this},Array.from(Li,(function(){throw 2}))}catch(t){}var xi=Ho.CONSTRUCTOR||!function(t,e){if(!e&&!_i)return!1;var n=!1;try{var r={};r[Ti]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Po.all(t).then(void 0,(function(){}))}));Be({target:"Promise",stat:!0,forced:xi},{all:function(t){var e=this,n=Fo.f(e),r=n.resolve,o=n.reject,i=Eo((function(){var n=rt(e.resolve),i=[],a=0,c=1;Pi(t,(function(t){var u=a++,f=!1;c++,y(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Ci=Ho.CONSTRUCTOR,Ii=Po&&Po.prototype;if(Be({target:"Promise",proto:!0,forced:Ci,real:!0},{catch:function(t){return this.then(void 0,t)}}),H(Po)){var Ri=F("Promise").prototype.catch;Ii.catch!==Ri&&pe(Ii,"catch",Ri,{unsafe:!0})}Be({target:"Promise",stat:!0,forced:xi},{race:function(t){var e=this,n=Fo.f(e),r=n.reject,o=Eo((function(){var o=rt(e.resolve);Pi(t,(function(t){y(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Be({target:"Promise",stat:!0,forced:Ho.CONSTRUCTOR},{reject:function(t){var e=Fo.f(this);return y(e.reject,void 0,t),e.promise}});var ki=Ho.CONSTRUCTOR;F("Promise"),Be({target:"Promise",stat:!0,forced:ki},{resolve:function(t){return function(t,e){if(Mt(t),W(e)&&e.constructor===t)return e;var n=Fo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ni=String,Mi=function(t){if("Symbol"===en(t))throw TypeError("Cannot convert a Symbol value to a string");return Ni(t)},Ui=P("".charAt),Di=P("".charCodeAt),Hi=P("".slice),Bi=function(t){return function(e,n){var r,o,i=Mi(k(e)),a=ye(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Di(i,a))<55296||r>56319||a+1===c||(o=Di(i,a+1))<56320||o>57343?t?Ui(i,a):r:t?Hi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wi={codeAt:Bi(!1),charAt:Bi(!0)}.charAt,Fi="String Iterator",zi=le.set,Gi=le.getterFor(Fi);dr(String,"String",(function(t){zi(this,{type:Fi,string:Mi(t),index:0})}),(function(){var t,e=Gi(this),n=e.string,r=e.index;return r>=n.length?hr(void 0,!0):(t=Wi(n,r),e.index+=t.length,hr(t,!1))}));var qi={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},Vi=Lt("span").classList,Xi=Vi&&Vi.constructor&&Vi.constructor.prototype,Yi=Xi===Object.prototype?void 0:Xi,Ji=At("iterator"),Ki=At("toStringTag"),Qi=br.values,$i=function(t,e){if(t){if(t[Ji]!==Qi)try{Gt(t,Ji,Qi)}catch(e){t[Ji]=Qi}if(t[Ki]||Gt(t,Ki,e),qi[e])for(var n in br)if(t[n]!==br[n])try{Gt(t,n,br[n])}catch(e){t[n]=br[n]}}};for(var Zi in qi)$i(s[Zi]&&s[Zi].prototype,Zi);$i(Yi,"DOMTokenList");var ta=function(){return ta=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ta.apply(this,arguments)},ea={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}};module.exports=function(e){void 0===e&&(e=ea);var n=Object.assign(ea,e),r=n.weixinJsSdkTicket,a=n.launchContainerQuery,c=n.genTagPrefixStr,u=n.launchShowWeixinToBrowserImgUrl,f=n.canShowWeixinToBrowser,l=n.launchShowWeixinToBrowserClassName,s=n.launchBtnClassName,p=n.launchBtnStyle,d=n.launchBtnText,h=n.launchErrorLink,v=n.wexinServiceAccountAppId,y=n.openPlatformMobileAppId,g=n.canContinuousUpdating,m=n.onMenuShareTimelineOptions,b=n.onMenuShareAppMessageOptions,w=n.isConClosed,S=n.isWxDebug,A=n.canLaunchApp,O=n.canFireErrorLinkDirectly,E=n.launchBtnClick,P=n.launchReady,T=n.serviceAccountAppId,_=n.extInfo,j=window.wx;j||console.error("Launch App: wx is not found");var L=function(){},x=t.genCustomConsole("LaunchCon:",{isClosed:w});x.log("Launch App");var C={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},I={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},R={title:document.title,link:location.href};C=ta(ta({},C),R),I=ta(ta({},I),R);var k=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(s,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+p+e+"}</style>"+"<".concat(n,' class="').concat(s,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+d+"</".concat(n,">")},N=k();function M(){t.addStyle('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){o.default(".mazey-launch-app-mask").hide()}),0===o.default(".mazey-launch-app-mask").length?o.default("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(l,"' ")+"src='".concat(u,"' ")+"alt='Launch App' /></div>"):o.default(".mazey-launch-app-mask").show()}function U(){x.log("renderWeixinLaunchTemplate"),!T&&v&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),T=v),function(e,n){void 0===e&&(e=""),void 0===n&&(n=""),x.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(r||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(i.default)]).then((function(r){x.log("allRes",r);var i=r[0],u=r[1],l=t.generateRndNum(7),s=i,p=(new Date).getTime(),d=u("jsapi_ticket="+s+"&noncestr="+l+"×tamp="+p+"&url="+location.href);return j.config({debug:S,appId:e,timestamp:p,nonceStr:l,signature:d,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),j.ready((function(){m&&(x.log("onMenuShareTimelineOptions",m),j.onMenuShareTimeline(m)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=ta(ta({},C),t),x.log("window LAUNCH_APP_SHARE_TIMELINE",t),j.onMenuShareTimeline(t)},b&&(x.log("onMenuShareAppMessageOptions",b),j.onMenuShareAppMessage(b)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=ta(ta({},I),t),x.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),j.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,P&&P();var t=function(){var t=o.default(a);x.log("containers",a,t,t.length),t.length>0&&t.each((function(t,e){var r=o.default(e).attr("data-launch-app-key");if(!r){var i=o.default(e).parents("[data-launch-app-key]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-key"),x.log("keyEle",i,r))}r||(r=String(t));var a="mazey-launch-app-tag-".concat(r),u=o.default(".".concat(a," wx-open-launch-app")),l=o.default(e).attr("data-launch-app-ext-info");if(!l){var s=o.default(e).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(l=s.attr("data-launch-app-ext-info"),x.log("eleExtInfoEle parents",s,l))}l&&(_=l);var p=o.default(e).attr("data-launch-app-error-link");if(!p){var d=o.default(e).parents("[data-launch-app-error-link]:eq(0)");d.length>0&&(p=d.attr("data-launch-app-error-link"),x.log("eleErrorLinkEle parents",d,p))}var v=h;p&&(v=p),0===u.length&&(o.default(e).addClass(a),x.log("success:",a),function(t){var e=c,r=e+t,i="<wx-open-launch-app id='"+r+"' appid='"+n+"' extinfo='".concat(_)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+N+"<\/script></wx-open-launch-app>";o.default("."+t+":eq(0)").append(i);var a=document.getElementById(r);a&&(a.addEventListener("ready",(function(t){x.log("ready event",t)})),a.addEventListener("launch",(function(t){x.log("launch event",t),t.detail&&t.detail.extInfo&&x.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){x.error(t.detail),o.default("[id^='"+e+"']").hide(),f&&M(),v&&(x.log("realErrorLink",v),location.href=v)})),a.addEventListener("click",(function(t){x.log("click event",t),E&&E()})))}(a))}))};t(),L=t})),j.error((function(t){x.error(t)})),"success:launch_app"})).catch((function(t){x.error(t)}))}(T,y)}function D(t){if(x.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&A(t)&&(U(),window.LAUNCH_APP_LOAD=!0),g&&window.LAUNCH_APP_LOAD&&A(t)&&L(),O()){var e=o.default(a);e.length>0&&e.each((function(t,e){var n=o.default(e).children("."+s);if(!n||!n.length){var r=o.default(e).attr("data-launch-app-error-link");if(!r){var i=o.default(e).parents("[data-launch-app-error-link]:eq(0)");i.length>0&&(r=i.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var a=k(r,"position:absolute;left:0;z-index:999;","a");o.default(e).append(a)}}}))}}function H(){x.log("appBeforeDestroy",H),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=D,window.LAUNCH_APP_BEFORE_DESTROY=H,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=M,{LAUNCH_APP_UPDATE:D,LAUNCH_APP_BEFORE_DESTROY:H,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:M,LAUNCH_APP_SHARE_TIMELINE:function(t){x.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){x.log("opt",t)},start:D,update:D,destroy:H}};
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+BA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;2BAsBuB,GAAG,KAAK,OAAO;sCACJ,OAAO;4BACjB,IAAI;yBACP,IAAI;MAEzB,MAAM;AA1BT,wBAmeE"}
|
package/lib/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* mazey-wechat-launch-app v2.2.
|
|
2
|
+
* mazey-wechat-launch-app v2.2.1 https://www.npmjs.com/package/mazey-wechat-launch-app
|
|
3
3
|
* (c) 2018-2023 Mazey Chu
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import{genCustomConsole as t,addStyle as e,generateRndNum as n}from"mazey";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var i,a,c=function(t){return t&&t.Math==Math&&t},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||function(){return this}()||Function("return this")(),f=function(t){try{return!!t()}catch(t){return!0}},s=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!f((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),p=Function.prototype.call,h=l?p.bind(p):function(){return p.apply(p,arguments)},d={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y=v&&!d.call({1:2},1)?function(t){var e=v(this,t);return!!e&&e.enumerable}:d,g={f:y},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},b=Function.prototype,w=b.call,S=l&&b.bind.bind(w,w),A=l?S:function(t){return function(){return w.apply(t,arguments)}},O=A({}.toString),E=A("".slice),P=function(t){return E(O(t),8,-1)},T=Object,_=A("".split),L=f((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==P(t)?_(t,""):T(t)}:T,j=function(t){return null==t},x=TypeError,C=function(t){if(j(t))throw x("Can't call method on "+t);return t},I=function(t){return L(C(t))},R="object"==typeof document&&document.all,k={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},N=k.all,M=k.IS_HTMLDDA?function(t){return"function"==typeof t||t===N}:function(t){return"function"==typeof t},U=k.all,D=k.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:M(t)||t===U}:function(t){return"object"==typeof t?null!==t:M(t)},H=function(t,e){return arguments.length<2?(n=u[t],M(n)?n:void 0):u[t]&&u[t][e];var n},B=A({}.isPrototypeOf),W="undefined"!=typeof navigator&&String(navigator.userAgent)||"",F=u.process,z=u.Deno,G=F&&F.versions||z&&z.version,V=G&&G.v8;V&&(a=(i=V.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!a&&W&&(!(i=W.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=W.match(/Chrome\/(\d+)/))&&(a=+i[1]);var X=a,q=!!Object.getOwnPropertySymbols&&!f((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Y=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=Object,K=Y?function(t){return"symbol"==typeof t}:function(t){var e=H("Symbol");return M(e)&&B(e.prototype,J(t))},Q=String,$=function(t){try{return Q(t)}catch(t){return"Object"}},Z=TypeError,tt=function(t){if(M(t))return t;throw Z($(t)+" is not a function")},et=function(t,e){var n=t[e];return j(n)?void 0:tt(n)},nt=TypeError,rt=Object.defineProperty,ot=function(t,e){try{rt(u,t,{value:e,configurable:!0,writable:!0})}catch(n){u[t]=e}return e},it="__core-js_shared__",at=u[it]||ot(it,{}),ct=o((function(t){(t.exports=function(t,e){return at[t]||(at[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ut=Object,ft=function(t){return ut(C(t))},st=A({}.hasOwnProperty),lt=Object.hasOwn||function(t,e){return st(ft(t),e)},pt=0,ht=Math.random(),dt=A(1..toString),vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++pt+ht,36)},yt=u.Symbol,gt=ct("wks"),mt=Y?yt.for||yt:yt&&yt.withoutSetter||vt,bt=function(t){return lt(gt,t)||(gt[t]=q&<(yt,t)?yt[t]:mt("Symbol."+t)),gt[t]},wt=TypeError,St=bt("toPrimitive"),At=function(t,e){if(!D(t)||K(t))return t;var n,r=et(t,St);if(r){if(void 0===e&&(e="default"),n=h(r,t,e),!D(n)||K(n))return n;throw wt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&M(n=t.toString)&&!D(r=h(n,t)))return r;if(M(n=t.valueOf)&&!D(r=h(n,t)))return r;if("string"!==e&&M(n=t.toString)&&!D(r=h(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},Ot=function(t){var e=At(t,"string");return K(e)?e:e+""},Et=u.document,Pt=D(Et)&&D(Et.createElement),Tt=function(t){return Pt?Et.createElement(t):{}},_t=!s&&!f((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),Lt=Object.getOwnPropertyDescriptor,jt={f:s?Lt:function(t,e){if(t=I(t),e=Ot(e),_t)try{return Lt(t,e)}catch(t){}if(lt(t,e))return m(!h(g.f,t,e),t[e])}},xt=s&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,It=TypeError,Rt=function(t){if(D(t))return t;throw It(Ct(t)+" is not an object")},kt=TypeError,Nt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Ut="enumerable",Dt="configurable",Ht="writable",Bt={f:s?xt?function(t,e,n){if(Rt(t),e=Ot(e),Rt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ht in n&&!n[Ht]){var r=Mt(t,e);r&&r[Ht]&&(t[e]=n.value,n={configurable:Dt in n?n[Dt]:r[Dt],enumerable:Ut in n?n[Ut]:r[Ut],writable:!1})}return Nt(t,e,n)}:Nt:function(t,e,n){if(Rt(t),e=Ot(e),Rt(n),_t)try{return Nt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw kt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Wt=s?function(t,e,n){return Bt.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},Ft=Function.prototype,zt=s&&Object.getOwnPropertyDescriptor,Gt=lt(Ft,"name"),Vt={EXISTS:Gt,PROPER:Gt&&"something"===function(){}.name,CONFIGURABLE:Gt&&(!s||s&&zt(Ft,"name").configurable)},Xt=A(Function.toString);M(at.inspectSource)||(at.inspectSource=function(t){return Xt(t)});var qt,Yt,Jt,Kt=at.inspectSource,Qt=u.WeakMap,$t=M(Qt)&&/native code/.test(String(Qt)),Zt=ct("keys"),te=function(t){return Zt[t]||(Zt[t]=vt(t))},ee={},ne="Object already initialized",re=u.TypeError,oe=u.WeakMap;if($t||at.state){var ie=at.state||(at.state=new oe);ie.get=ie.get,ie.has=ie.has,ie.set=ie.set,qt=function(t,e){if(ie.has(t))throw re(ne);return e.facade=t,ie.set(t,e),e},Yt=function(t){return ie.get(t)||{}},Jt=function(t){return ie.has(t)}}else{var ae=te("state");ee[ae]=!0,qt=function(t,e){if(lt(t,ae))throw re(ne);return e.facade=t,Wt(t,ae,e),e},Yt=function(t){return lt(t,ae)?t[ae]:{}},Jt=function(t){return lt(t,ae)}}var ce={set:qt,get:Yt,has:Jt,enforce:function(t){return Jt(t)?Yt(t):qt(t,{})},getterFor:function(t){return function(e){var n;if(!D(e)||(n=Yt(e)).type!==t)throw re("Incompatible receiver, "+t+" required");return n}}},ue=o((function(t){var e=Vt.CONFIGURABLE,n=ce.enforce,r=ce.get,o=String,i=Object.defineProperty,a=A("".slice),c=A("".replace),u=A([].join),l=s&&!f((function(){return 8!==i((function(){}),"length",{value:8}).length})),p=String(String).split("String"),h=t.exports=function(t,r,f){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!lt(t,"name")||e&&t.name!==r)&&(s?i(t,"name",{value:r,configurable:!0}):t.name=r),l&&f&<(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&<(f,"constructor")&&f.constructor?s&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return lt(h,"source")||(h.source=u(p,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return M(this)&&r(this).source||Kt(this)}),"toString")})),fe=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(M(n)&&ue(n,i,r),r.global)o?t[e]=n:ot(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Bt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},se=Math.ceil,le=Math.floor,pe=Math.trunc||function(t){var e=+t;return(e>0?le:se)(e)},he=function(t){var e=+t;return e!=e||0===e?0:pe(e)},de=Math.max,ve=Math.min,ye=Math.min,ge=function(t){return(e=t.length)>0?ye(he(e),9007199254740991):0;var e},me=function(t){return function(e,n,r){var o,i=I(e),a=ge(i),c=function(t,e){var n=he(t);return n<0?de(n+e,0):ve(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},be={includes:me(!0),indexOf:me(!1)}.indexOf,we=A([].push),Se=function(t,e){var n,r=I(t),o=0,i=[];for(n in r)!lt(ee,n)&<(r,n)&&we(i,n);for(;e.length>o;)lt(r,n=e[o++])&&(~be(i,n)||we(i,n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oe=Ae.concat("length","prototype"),Ee={f:Object.getOwnPropertyNames||function(t){return Se(t,Oe)}},Pe={f:Object.getOwnPropertySymbols},Te=A([].concat),_e=H("Reflect","ownKeys")||function(t){var e=Ee.f(Rt(t)),n=Pe.f;return n?Te(e,n(t)):e},Le=function(t,e,n){for(var r=_e(e),o=Bt.f,i=jt.f,a=0;a<r.length;a++){var c=r[a];lt(t,c)||n&<(n,c)||o(t,c,i(e,c))}},je=/#|\.prototype\./,xe=function(t,e){var n=Ie[Ce(t)];return n==ke||n!=Re&&(M(e)?f(e):!!e)},Ce=xe.normalize=function(t){return String(t).replace(je,".").toLowerCase()},Ie=xe.data={},Re=xe.NATIVE="N",ke=xe.POLYFILL="P",Ne=xe,Me=jt.f,Ue=function(t,e){var n,r,o,i,a,c=t.target,f=t.global,s=t.stat;if(n=f?u:s?u[c]||ot(c,{}):(u[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=Me(n,r))&&a.value:n[r],!Ne(f?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Le(i,o)}(t.sham||o&&o.sham)&&Wt(i,"sham",!0),fe(n,r,i,t)}},De=Object.keys||function(t){return Se(t,Ae)},He=Object.assign,Be=Object.defineProperty,We=A([].concat),Fe=!He||f((function(){if(s&&1!==He({b:1},He(Be({},"a",{enumerable:!0,get:function(){Be(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=He({},t)[n]||De(He({},e)).join("")!=r}))?function(t,e){for(var n=ft(t),r=arguments.length,o=1,i=Pe.f,a=g.f;r>o;)for(var c,u=L(arguments[o++]),f=i?We(De(u),i(u)):De(u),l=f.length,p=0;l>p;)c=f[p++],s&&!h(a,u,c)||(n[c]=u[c]);return n}:He;Ue({target:"Object",stat:!0,arity:2,forced:Object.assign!==Fe},{assign:Fe});var ze=Array.isArray||function(t){return"Array"==P(t)},Ge=TypeError,Ve=function(t){if(t>9007199254740991)throw Ge("Maximum allowed index exceeded");return t},Xe=function(t,e,n){var r=Ot(e);r in t?Bt.f(t,r,m(0,n)):t[r]=n},qe={};qe[bt("toStringTag")]="z";var Ye="[object z]"===String(qe),Je=bt("toStringTag"),Ke=Object,Qe="Arguments"==P(function(){return arguments}()),$e=Ye?P:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ke(t),Je))?n:Qe?P(e):"Object"==(r=P(e))&&M(e.callee)?"Arguments":r},Ze=function(){},tn=[],en=H("Reflect","construct"),nn=/^\s*(?:class|function)\b/,rn=A(nn.exec),on=!nn.exec(Ze),an=function(t){if(!M(t))return!1;try{return en(Ze,tn,t),!0}catch(t){return!1}},cn=function(t){if(!M(t))return!1;switch($e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return on||!!rn(nn,Kt(t))}catch(t){return!0}};cn.sham=!0;var un,fn=!en||f((function(){var t;return an(an.call)||!an(Object)||!an((function(){t=!0}))||t}))?cn:an,sn=bt("species"),ln=Array,pn=function(t,e){return new(function(t){var e;return ze(t)&&(e=t.constructor,(fn(e)&&(e===ln||ze(e.prototype))||D(e)&&null===(e=e[sn]))&&(e=void 0)),void 0===e?ln:e}(t))(0===e?0:e)},hn=bt("species"),dn=bt("isConcatSpreadable"),vn=X>=51||!f((function(){var t=[];return t[dn]=!1,t.concat()[0]!==t})),yn=function(t){if(!D(t))return!1;var e=t[dn];return void 0!==e?!!e:ze(t)},gn=!(vn&&(un="concat",X>=51||!f((function(){var t=[];return(t.constructor={})[hn]=function(){return{foo:1}},1!==t[un](Boolean).foo}))));Ue({target:"Array",proto:!0,arity:1,forced:gn},{concat:function(t){var e,n,r,o,i,a=ft(this),c=pn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(yn(i=-1===e?a:arguments[e]))for(o=ge(i),Ve(u+o),n=0;n<o;n++,u++)n in i&&Xe(c,u,i[n]);else Ve(u+1),Xe(c,u++,i);return c.length=u,c}});var mn,bn=s&&!xt?Object.defineProperties:function(t,e){Rt(t);for(var n,r=I(e),o=De(e),i=o.length,a=0;i>a;)Bt.f(t,n=o[a++],r[n]);return t},wn={f:bn},Sn=H("document","documentElement"),An="prototype",On="script",En=te("IE_PROTO"),Pn=function(){},Tn=function(t){return"<"+On+">"+t+"</"+On+">"},_n=function(t){t.write(Tn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ln=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Ln="undefined"!=typeof document?document.domain&&mn?_n(mn):(e=Tt("iframe"),n="java"+On+":",e.style.display="none",Sn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Tn("document.F=Object")),t.close(),t.F):_n(mn);for(var r=Ae.length;r--;)delete Ln[An][Ae[r]];return Ln()};ee[En]=!0;var jn=Object.create||function(t,e){var n;return null!==t?(Pn[An]=Rt(t),n=new Pn,Pn[An]=null,n[En]=t):n=Ln(),void 0===e?n:wn.f(n,e)},xn=Bt.f,Cn=bt("unscopables"),In=Array.prototype;null==In[Cn]&&xn(In,Cn,{configurable:!0,value:jn(null)});var Rn,kn,Nn,Mn=function(t){In[Cn][t]=!0},Un={},Dn=!f((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Hn=te("IE_PROTO"),Bn=Object,Wn=Bn.prototype,Fn=Dn?Bn.getPrototypeOf:function(t){var e=ft(t);if(lt(e,Hn))return e[Hn];var n=e.constructor;return M(n)&&e instanceof n?n.prototype:e instanceof Bn?Wn:null},zn=bt("iterator"),Gn=!1;[].keys&&("next"in(Nn=[].keys())?(kn=Fn(Fn(Nn)))!==Object.prototype&&(Rn=kn):Gn=!0);var Vn=!D(Rn)||f((function(){var t={};return Rn[zn].call(t)!==t}));Vn&&(Rn={}),M(Rn[zn])||fe(Rn,zn,(function(){return this}));var Xn={IteratorPrototype:Rn,BUGGY_SAFARI_ITERATORS:Gn},qn=Bt.f,Yn=bt("toStringTag"),Jn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!lt(t,Yn)&&qn(t,Yn,{configurable:!0,value:e})},Kn=Xn.IteratorPrototype,Qn=function(){return this},$n=String,Zn=TypeError,tr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return A(tt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Rt(n),function(t){if("object"==typeof t||M(t))return t;throw Zn("Can't set "+$n(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),er=Vt.PROPER,nr=Vt.CONFIGURABLE,rr=Xn.IteratorPrototype,or=Xn.BUGGY_SAFARI_ITERATORS,ir=bt("iterator"),ar="keys",cr="values",ur="entries",fr=function(){return this},sr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=jn(Kn,{next:m(+!r,n)}),Jn(t,o,!1),Un[o]=Qn}(n,e,r);var c,u,f,s=function(t){if(t===o&&y)return y;if(!or&&t in d)return d[t];switch(t){case ar:case cr:case ur:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,d=t.prototype,v=d[ir]||d["@@iterator"]||o&&d[o],y=!or&&v||s(o),g="Array"==e&&d.entries||v;if(g&&(c=Fn(g.call(new t)))!==Object.prototype&&c.next&&(Fn(c)!==rr&&(tr?tr(c,rr):M(c[ir])||fe(c,ir,fr)),Jn(c,l,!0)),er&&o==cr&&v&&v.name!==cr&&(nr?Wt(d,"name",cr):(p=!0,y=function(){return h(v,this)})),o)if(u={values:s(cr),keys:i?y:s(ar),entries:s(ur)},a)for(f in u)(or||p||!(f in d))&&fe(d,f,u[f]);else Ue({target:e,proto:!0,forced:or||p},u);return d[ir]!==y&&fe(d,ir,y,{name:o}),Un[e]=y,u},lr=function(t,e){return{value:t,done:e}},pr=Bt.f,hr="Array Iterator",dr=ce.set,vr=ce.getterFor(hr),yr=sr(Array,"Array",(function(t,e){dr(this,{type:hr,target:I(t),index:0,kind:e})}),(function(){var t=vr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,lr(void 0,!0)):lr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),gr=Un.Arguments=Un.Array;if(Mn("keys"),Mn("values"),Mn("entries"),s&&"values"!==gr.name)try{pr(gr,"name",{value:"values"})}catch(t){}var mr=Ye?{}.toString:function(){return"[object "+$e(this)+"]"};Ye||fe(Object.prototype,"toString",mr,{unsafe:!0});var br,wr,Sr,Ar,Or="undefined"!=typeof process&&"process"==P(process),Er=bt("species"),Pr=TypeError,Tr=TypeError,_r=bt("species"),Lr=function(t,e){var n,r=Rt(t).constructor;return void 0===r||j(n=Rt(r)[_r])?e:function(t){if(fn(t))return t;throw Tr($(t)+" is not a constructor")}(n)},jr=Function.prototype,xr=jr.apply,Cr=jr.call,Ir="object"==typeof Reflect&&Reflect.apply||(l?Cr.bind(xr):function(){return Cr.apply(xr,arguments)}),Rr=function(t){if("Function"===P(t))return A(t)},kr=Rr(Rr.bind),Nr=function(t,e){return tt(t),void 0===e?t:l?kr(t,e):function(){return t.apply(e,arguments)}},Mr=A([].slice),Ur=TypeError,Dr=/(?:ipad|iphone|ipod).*applewebkit/i.test(W),Hr=u.setImmediate,Br=u.clearImmediate,Wr=u.process,Fr=u.Dispatch,zr=u.Function,Gr=u.MessageChannel,Vr=u.String,Xr=0,qr={},Yr="onreadystatechange";f((function(){br=u.location}));var Jr=function(t){if(lt(qr,t)){var e=qr[t];delete qr[t],e()}},Kr=function(t){return function(){Jr(t)}},Qr=function(t){Jr(t.data)},$r=function(t){u.postMessage(Vr(t),br.protocol+"//"+br.host)};Hr&&Br||(Hr=function(t){!function(t,e){if(t<e)throw Ur("Not enough arguments")}(arguments.length,1);var e=M(t)?t:zr(t),n=Mr(arguments,1);return qr[++Xr]=function(){Ir(e,void 0,n)},wr(Xr),Xr},Br=function(t){delete qr[t]},Or?wr=function(t){Wr.nextTick(Kr(t))}:Fr&&Fr.now?wr=function(t){Fr.now(Kr(t))}:Gr&&!Dr?(Ar=(Sr=new Gr).port2,Sr.port1.onmessage=Qr,wr=Nr(Ar.postMessage,Ar)):u.addEventListener&&M(u.postMessage)&&!u.importScripts&&br&&"file:"!==br.protocol&&!f($r)?(wr=$r,u.addEventListener("message",Qr,!1)):wr=Yr in Tt("script")?function(t){Sn.appendChild(Tt("script"))[Yr]=function(){Sn.removeChild(this),Jr(t)}}:function(t){setTimeout(Kr(t),0)});var Zr={set:Hr,clear:Br},to=function(){this.head=null,this.tail=null};to.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var eo,no,ro,oo,io,ao=to,co=/ipad|iphone|ipod/i.test(W)&&"undefined"!=typeof Pebble,uo=/web0s(?!.*chrome)/i.test(W),fo=jt.f,so=Zr.set,lo=u.MutationObserver||u.WebKitMutationObserver,po=u.document,ho=u.process,vo=u.Promise,yo=fo(u,"queueMicrotask"),go=yo&&yo.value;if(!go){var mo=new ao,bo=function(){var t,e;for(Or&&(t=ho.domain)&&t.exit();e=mo.get();)try{e()}catch(t){throw mo.head&&eo(),t}t&&t.enter()};Dr||Or||uo||!lo||!po?!co&&vo&&vo.resolve?((oo=vo.resolve(void 0)).constructor=vo,io=Nr(oo.then,oo),eo=function(){io(bo)}):Or?eo=function(){ho.nextTick(bo)}:(so=Nr(so,u),eo=function(){so(bo)}):(no=!0,ro=po.createTextNode(""),new lo(bo).observe(ro,{characterData:!0}),eo=function(){ro.data=no=!no}),go=function(t){mo.head||eo(),mo.add(t)}}var wo=go,So=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ao=u.Promise,Oo="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Eo=!Oo&&!Or&&"object"==typeof window&&"object"==typeof document;Ao&&Ao.prototype;var Po,To,_o,Lo,jo,xo,Co,Io=bt("species"),Ro=!1,ko=M(u.PromiseRejectionEvent),No=Ne("Promise",(function(){var t=Kt(Ao),e=t!==String(Ao);if(!e&&66===X)return!0;if(!X||X<51||!/native code/.test(t)){var n=new Ao((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Io]=r,!(Ro=n.then((function(){}))instanceof r))return!0}return!e&&(Eo||Oo)&&!ko})),Mo={CONSTRUCTOR:No,REJECTION_EVENT:ko,SUBCLASSING:Ro},Uo=TypeError,Do=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Uo("Bad Promise constructor");e=t,n=r})),this.resolve=tt(e),this.reject=tt(n)},Ho={f:function(t){return new Do(t)}},Bo=Zr.set,Wo="Promise",Fo=Mo.CONSTRUCTOR,zo=Mo.REJECTION_EVENT,Go=Mo.SUBCLASSING,Vo=ce.getterFor(Wo),Xo=ce.set,qo=Ao&&Ao.prototype,Yo=Ao,Jo=qo,Ko=u.TypeError,Qo=u.document,$o=u.process,Zo=Ho.f,ti=Zo,ei=!!(Qo&&Qo.createEvent&&u.dispatchEvent),ni="unhandledrejection",ri=function(t){var e;return!(!D(t)||!M(e=t.then))&&e},oi=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&fi(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f(Ko("Promise-chain cycle")):(r=ri(n))?h(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ii=function(t,e){t.notified||(t.notified=!0,wo((function(){for(var n,r=t.reactions;n=r.get();)oi(n,t);t.notified=!1,e&&!t.rejection&&ci(t)})))},ai=function(t,e,n){var r,o;ei?((r=Qo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!zo&&(o=u["on"+t])?o(r):t===ni&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},ci=function(t){h(Bo,u,(function(){var e,n=t.facade,r=t.value;if(ui(t)&&(e=So((function(){Or?$o.emit("unhandledRejection",r,n):ai(ni,n,r)})),t.rejection=Or||ui(t)?2:1,e.error))throw e.value}))},ui=function(t){return 1!==t.rejection&&!t.parent},fi=function(t){h(Bo,u,(function(){var e=t.facade;Or?$o.emit("rejectionHandled",e):ai("rejectionhandled",e,t.value)}))},si=function(t,e,n){return function(r){t(e,r,n)}},li=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ii(t,!0))},pi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Ko("Promise can't be resolved itself");var r=ri(e);r?wo((function(){var n={done:!1};try{h(r,e,si(pi,n,t),si(li,n,t))}catch(e){li(n,e,t)}})):(t.value=e,t.state=1,ii(t,!1))}catch(e){li({done:!1},e,t)}}};if(Fo&&(Jo=(Yo=function(t){!function(t,e){if(B(e,t))return t;throw Pr("Incorrect invocation")}(this,Jo),tt(t),h(Po,this);var e=Vo(this);try{t(si(pi,e),si(li,e))}catch(t){li(e,t)}}).prototype,(Po=function(t){Xo(this,{type:Wo,done:!1,notified:!1,parent:!1,reactions:new ao,rejection:!1,state:0,value:void 0})}).prototype=fe(Jo,"then",(function(t,e){var n=Vo(this),r=Zo(Lr(this,Yo));return n.parent=!0,r.ok=!M(t)||t,r.fail=M(e)&&e,r.domain=Or?$o.domain:void 0,0==n.state?n.reactions.add(r):wo((function(){oi(r,n)})),r.promise})),To=function(){var t=new Po,e=Vo(t);this.promise=t,this.resolve=si(pi,e),this.reject=si(li,e)},Ho.f=Zo=function(t){return t===Yo||undefined===t?new To(t):ti(t)},M(Ao)&&qo!==Object.prototype)){_o=qo.then,Go||fe(qo,"then",(function(t,e){var n=this;return new Yo((function(t,e){h(_o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete qo.constructor}catch(t){}tr&&tr(qo,Jo)}Ue({global:!0,constructor:!0,wrap:!0,forced:Fo},{Promise:Yo}),Jn(Yo,Wo,!1),Co=H(Wo),s&&Co&&!Co[Er]&&(Lo=Co,jo=Er,(xo={configurable:!0,get:function(){return this}}).get&&ue(xo.get,jo,{getter:!0}),xo.set&&ue(xo.set,jo,{setter:!0}),Bt.f(Lo,jo,xo));var hi=bt("iterator"),di=Array.prototype,vi=bt("iterator"),yi=function(t){if(!j(t))return et(t,vi)||et(t,"@@iterator")||Un[$e(t)]},gi=TypeError,mi=function(t,e,n){var r,o;Rt(t);try{if(!(r=et(t,"return"))){if("throw"===e)throw n;return n}r=h(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Rt(r),n},bi=TypeError,wi=function(t,e){this.stopped=t,this.result=e},Si=wi.prototype,Ai=function(t,e,n){var r,o,i,a,c,u,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Nr(e,l),m=function(t){return r&&mi(r,"normal",t),new wi(!0,t)},b=function(t){return p?(Rt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(d)r=t.iterator;else if(v)r=t;else{if(!(o=yi(t)))throw bi($(t)+" is not iterable");if(void 0!==(s=o)&&(Un.Array===s||di[hi]===s)){for(i=0,a=ge(t);a>i;i++)if((c=b(t[i]))&&B(Si,c))return c;return new wi(!1)}r=function(t,e){var n=arguments.length<2?yi(t):e;if(tt(n))return Rt(h(n,t));throw gi($(t)+" is not iterable")}(t,o)}for(u=d?t.next:r.next;!(f=h(u,r)).done;){try{c=b(f.value)}catch(t){mi(r,"throw",t)}if("object"==typeof c&&c&&B(Si,c))return c}return new wi(!1)},Oi=bt("iterator"),Ei=!1;try{var Pi=0,Ti={next:function(){return{done:!!Pi++}},return:function(){Ei=!0}};Ti[Oi]=function(){return this},Array.from(Ti,(function(){throw 2}))}catch(t){}var _i=Mo.CONSTRUCTOR||!function(t,e){if(!e&&!Ei)return!1;var n=!1;try{var r={};r[Oi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Ao.all(t).then(void 0,(function(){}))}));Ue({target:"Promise",stat:!0,forced:_i},{all:function(t){var e=this,n=Ho.f(e),r=n.resolve,o=n.reject,i=So((function(){var n=tt(e.resolve),i=[],a=0,c=1;Ai(t,(function(t){var u=a++,f=!1;c++,h(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var Li=Mo.CONSTRUCTOR,ji=Ao&&Ao.prototype;if(Ue({target:"Promise",proto:!0,forced:Li,real:!0},{catch:function(t){return this.then(void 0,t)}}),M(Ao)){var xi=H("Promise").prototype.catch;ji.catch!==xi&&fe(ji,"catch",xi,{unsafe:!0})}Ue({target:"Promise",stat:!0,forced:_i},{race:function(t){var e=this,n=Ho.f(e),r=n.reject,o=So((function(){var o=tt(e.resolve);Ai(t,(function(t){h(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Ue({target:"Promise",stat:!0,forced:Mo.CONSTRUCTOR},{reject:function(t){var e=Ho.f(this);return h(e.reject,void 0,t),e.promise}});var Ci=Mo.CONSTRUCTOR;H("Promise"),Ue({target:"Promise",stat:!0,forced:Ci},{resolve:function(t){return function(t,e){if(Rt(t),D(e)&&e.constructor===t)return e;var n=Ho.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var Ii=String,Ri=function(t){if("Symbol"===$e(t))throw TypeError("Cannot convert a Symbol value to a string");return Ii(t)},ki=A("".charAt),Ni=A("".charCodeAt),Mi=A("".slice),Ui=function(t){return function(e,n){var r,o,i=Ri(C(e)),a=he(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ni(i,a))<55296||r>56319||a+1===c||(o=Ni(i,a+1))<56320||o>57343?t?ki(i,a):r:t?Mi(i,a,a+2):o-56320+(r-55296<<10)+65536}},Di={codeAt:Ui(!1),charAt:Ui(!0)}.charAt,Hi="String Iterator",Bi=ce.set,Wi=ce.getterFor(Hi);sr(String,"String",(function(t){Bi(this,{type:Hi,string:Ri(t),index:0})}),(function(){var t,e=Wi(this),n=e.string,r=e.index;return r>=n.length?lr(void 0,!0):(t=Di(n,r),e.index+=t.length,lr(t,!1))}));var Fi={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},zi=Tt("span").classList,Gi=zi&&zi.constructor&&zi.constructor.prototype,Vi=Gi===Object.prototype?void 0:Gi,Xi=bt("iterator"),qi=bt("toStringTag"),Yi=yr.values,Ji=function(t,e){if(t){if(t[Xi]!==Yi)try{Wt(t,Xi,Yi)}catch(e){t[Xi]=Yi}if(t[qi]||Wt(t,qi,e),Fi[e])for(var n in yr)if(t[n]!==yr[n])try{Wt(t,n,yr[n])}catch(e){t[n]=yr[n]}}};for(var Ki in Fi)Ji(u[Ki]&&u[Ki].prototype,Ki);Ji(Vi,"DOMTokenList");var Qi=function(){return Qi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Qi.apply(this,arguments)},$i={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}},Zi=function(r){void 0===r&&(r=$i);var o=Object.assign($i,r),i=o.weixinJsSdkTicket,a=o.launchContainerQuery,c=o.genTagPrefixStr,u=o.launchShowWeixinToBrowserImgUrl,f=o.canShowWeixinToBrowser,s=o.launchShowWeixinToBrowserClassName,l=o.launchBtnClassName,p=o.launchBtnStyle,h=o.launchBtnText,d=o.launchErrorLink,v=o.wexinServiceAccountAppId,y=o.openPlatformMobileAppId,g=o.canContinuousUpdating,m=o.onMenuShareTimelineOptions,b=o.onMenuShareAppMessageOptions,w=o.isConClosed,S=o.isWxDebug,A=o.canLaunchApp,O=o.canFireErrorLinkDirectly,E=o.launchBtnClick,P=o.launchReady,T=o.serviceAccountAppId,_=o.extInfo,L=window.sha1,j=window.wx,x=window.$||window.jQuery;L&&j&&x||console.error("Launch App: wx or sha1 or $ is not found");var C=function(){},I=t("LaunchCon:",{isClosed:w});I.log("Launch App");var R={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},k={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},N={title:document.title,link:location.href};R=Qi(Qi({},R),N),k=Qi(Qi({},k),N);var M=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(l,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+p+e+"}</style>"+"<".concat(n,' class="').concat(l,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+h+"</".concat(n,">")},U=M();function D(){e('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){x(".mazey-launch-app-mask").hide()}),0===x(".mazey-launch-app-mask").length?x("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(s,"' ")+"src='".concat(u,"' ")+"alt='Launch App' /></div>"):x(".mazey-launch-app-mask").show()}function H(){I.log("renderWeixinLaunchTemplate"),!T&&v&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),T=v),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),I.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(i||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(L)]).then((function(r){I.log("allRes",r);var o=r[0],i=r[1],u=n(7),s=o,l=(new Date).getTime(),p=i("jsapi_ticket="+s+"&noncestr="+u+"×tamp="+l+"&url="+location.href);return j.config({debug:S,appId:t,timestamp:l,nonceStr:u,signature:p,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),j.ready((function(){m&&(I.log("onMenuShareTimelineOptions",m),j.onMenuShareTimeline(m)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Qi(Qi({},R),t),I.log("window LAUNCH_APP_SHARE_TIMELINE",t),j.onMenuShareTimeline(t)},b&&(I.log("onMenuShareAppMessageOptions",b),j.onMenuShareAppMessage(b)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Qi(Qi({},k),t),I.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),j.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,P&&P();var t=function(){var t=x(a);I.log("containers",a,t,t.length),t.length>0&&t.each((function(t,n){var r=x(n).attr("data-launch-app-key");if(!r){var o=x(n).parents("[data-launch-app-key]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-key"),I.log("keyEle",o,r))}r||(r=t);var i="mazey-launch-app-tag-".concat(r),a=x(".".concat(i," wx-open-launch-app")),u=x(n).attr("data-launch-app-ext-info");if(!u){var s=x(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(u=s.attr("data-launch-app-ext-info"),I.log("eleExtInfoEle parents",s,u))}u&&(_=u);var l=x(n).attr("data-launch-app-error-link");if(!l){var p=x(n).parents("[data-launch-app-error-link]:eq(0)");p.length>0&&(l=p.attr("data-launch-app-error-link"),I.log("eleErrorLinkEle parents",p,l))}var h=d;l&&(h=l),0===a.length&&(x(n).addClass(i),I.log("success:",i),function(t){var n=c,r=n+t,o="<wx-open-launch-app id='"+r+"' appid='"+e+"' extinfo='".concat(_)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+U+"<\/script></wx-open-launch-app>";x("."+t+":eq(0)").append(o);var i=document.getElementById(r);i&&(i.addEventListener("ready",(function(t){I.log("ready event",t)})),i.addEventListener("launch",(function(t){I.log("launch event",t),t.detail&&t.detail.extInfo&&I.log("launch extInfo",t.detail.extInfo)})),i.addEventListener("error",(function(t){I.error(t.detail),x("[id^='"+n+"']").hide(),f&&D(),h&&(I.log("realErrorLink",h),location.href=h)})),i.addEventListener("click",(function(t){I.log("click event",t),E&&E()})))}(i))}))};t(),C=t})),j.error((function(t){I.error(t)})),"success:launch_app"})).catch((function(t){I.error(t)}))}(T,y)}function B(t){if(I.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&A(t)&&(H(),window.LAUNCH_APP_LOAD=!0),g&&window.LAUNCH_APP_LOAD&&A(t)&&C(),O()){var e=x(a);e.length>0&&e.each((function(t,e){var n=x(e).children("."+l);if(!n||!n.length){var r=x(e).attr("data-launch-app-error-link");if(!r){var o=x(e).parents("[data-launch-app-error-link]:eq(0)");o.length>0&&(r=o.attr("data-launch-app-error-link"))}if(r&&"string"==typeof r&&r.length){var i=M(r,"position:absolute;left:0;z-index:999;","a");x(e).append(i)}}}))}}function W(){I.log("appBeforeDestroy",W),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=B,window.LAUNCH_APP_BEFORE_DESTROY=W,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=D,{LAUNCH_APP_UPDATE:B,LAUNCH_APP_BEFORE_DESTROY:W,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:D,LAUNCH_APP_SHARE_TIMELINE:function(t){I.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){I.log("opt",t)},start:B,update:B,destroy:W}};export{Zi as default};
|
|
6
|
+
import{genCustomConsole as t,addStyle as e,generateRndNum as n}from"mazey";import r from"jquery";import o from"js-sha1";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(t,e){return t(e={exports:{}},e.exports),e.exports}var c,u,f=function(t){return t&&t.Math==Math&&t},s=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof i&&i)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},p=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),d=Function.prototype.call,v=h?d.bind(d):function(){return d.apply(d,arguments)},y={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,m=g&&!y.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:y,b={f:m},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=Function.prototype,A=S.call,O=h&&S.bind.bind(A,A),E=h?O:function(t){return function(){return A.apply(t,arguments)}},P=E({}.toString),T=E("".slice),_=function(t){return T(P(t),8,-1)},j=Object,L=E("".split),x=l((function(){return!j("z").propertyIsEnumerable(0)}))?function(t){return"String"==_(t)?L(t,""):j(t)}:j,C=function(t){return null==t},I=TypeError,R=function(t){if(C(t))throw I("Can't call method on "+t);return t},k=function(t){return x(R(t))},N="object"==typeof document&&document.all,M={all:N,IS_HTMLDDA:void 0===N&&void 0!==N},U=M.all,D=M.IS_HTMLDDA?function(t){return"function"==typeof t||t===U}:function(t){return"function"==typeof t},H=M.all,B=M.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:D(t)||t===H}:function(t){return"object"==typeof t?null!==t:D(t)},W=function(t,e){return arguments.length<2?(n=s[t],D(n)?n:void 0):s[t]&&s[t][e];var n},F=E({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",G=s.process,q=s.Deno,V=G&&G.versions||q&&q.version,X=V&&V.v8;X&&(u=(c=X.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1])),!u&&z&&(!(c=z.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=z.match(/Chrome\/(\d+)/))&&(u=+c[1]);var Y=u,J=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),K=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=Object,$=K?function(t){return"symbol"==typeof t}:function(t){var e=W("Symbol");return D(e)&&F(e.prototype,Q(t))},Z=String,tt=function(t){try{return Z(t)}catch(t){return"Object"}},et=TypeError,nt=function(t){if(D(t))return t;throw et(tt(t)+" is not a function")},rt=function(t,e){var n=t[e];return C(n)?void 0:nt(n)},ot=TypeError,it=Object.defineProperty,at=function(t,e){try{it(s,t,{value:e,configurable:!0,writable:!0})}catch(n){s[t]=e}return e},ct="__core-js_shared__",ut=s[ct]||at(ct,{}),ft=a((function(t){(t.exports=function(t,e){return ut[t]||(ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),st=Object,lt=function(t){return st(R(t))},pt=E({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return pt(lt(t),e)},dt=0,vt=Math.random(),yt=E(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+yt(++dt+vt,36)},mt=s.Symbol,bt=ft("wks"),wt=K?mt.for||mt:mt&&mt.withoutSetter||gt,St=function(t){return ht(bt,t)||(bt[t]=J&&ht(mt,t)?mt[t]:wt("Symbol."+t)),bt[t]},At=TypeError,Ot=St("toPrimitive"),Et=function(t,e){if(!B(t)||$(t))return t;var n,r=rt(t,Ot);if(r){if(void 0===e&&(e="default"),n=v(r,t,e),!B(n)||$(n))return n;throw At("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&D(n=t.toString)&&!B(r=v(n,t)))return r;if(D(n=t.valueOf)&&!B(r=v(n,t)))return r;if("string"!==e&&D(n=t.toString)&&!B(r=v(n,t)))return r;throw ot("Can't convert object to primitive value")}(t,e)},Pt=function(t){var e=Et(t,"string");return $(e)?e:e+""},Tt=s.document,_t=B(Tt)&&B(Tt.createElement),jt=function(t){return _t?Tt.createElement(t):{}},Lt=!p&&!l((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),xt=Object.getOwnPropertyDescriptor,Ct={f:p?xt:function(t,e){if(t=k(t),e=Pt(e),Lt)try{return xt(t,e)}catch(t){}if(ht(t,e))return w(!v(b.f,t,e),t[e])}},It=p&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=String,kt=TypeError,Nt=function(t){if(B(t))return t;throw kt(Rt(t)+" is not an object")},Mt=TypeError,Ut=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Ht="enumerable",Bt="configurable",Wt="writable",Ft={f:p?It?function(t,e,n){if(Nt(t),e=Pt(e),Nt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Wt in n&&!n[Wt]){var r=Dt(t,e);r&&r[Wt]&&(t[e]=n.value,n={configurable:Bt in n?n[Bt]:r[Bt],enumerable:Ht in n?n[Ht]:r[Ht],writable:!1})}return Ut(t,e,n)}:Ut:function(t,e,n){if(Nt(t),e=Pt(e),Nt(n),Lt)try{return Ut(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Mt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},zt=p?function(t,e,n){return Ft.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},Gt=Function.prototype,qt=p&&Object.getOwnPropertyDescriptor,Vt=ht(Gt,"name"),Xt={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!p||p&&qt(Gt,"name").configurable)},Yt=E(Function.toString);D(ut.inspectSource)||(ut.inspectSource=function(t){return Yt(t)});var Jt,Kt,Qt,$t=ut.inspectSource,Zt=s.WeakMap,te=D(Zt)&&/native code/.test(String(Zt)),ee=ft("keys"),ne=function(t){return ee[t]||(ee[t]=gt(t))},re={},oe="Object already initialized",ie=s.TypeError,ae=s.WeakMap;if(te||ut.state){var ce=ut.state||(ut.state=new ae);ce.get=ce.get,ce.has=ce.has,ce.set=ce.set,Jt=function(t,e){if(ce.has(t))throw ie(oe);return e.facade=t,ce.set(t,e),e},Kt=function(t){return ce.get(t)||{}},Qt=function(t){return ce.has(t)}}else{var ue=ne("state");re[ue]=!0,Jt=function(t,e){if(ht(t,ue))throw ie(oe);return e.facade=t,zt(t,ue,e),e},Kt=function(t){return ht(t,ue)?t[ue]:{}},Qt=function(t){return ht(t,ue)}}var fe={set:Jt,get:Kt,has:Qt,enforce:function(t){return Qt(t)?Kt(t):Jt(t,{})},getterFor:function(t){return function(e){var n;if(!B(e)||(n=Kt(e)).type!==t)throw ie("Incompatible receiver, "+t+" required");return n}}},se=a((function(t){var e=Xt.CONFIGURABLE,n=fe.enforce,r=fe.get,o=String,i=Object.defineProperty,a=E("".slice),c=E("".replace),u=E([].join),f=p&&!l((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),h=t.exports=function(t,r,l){"Symbol("===a(o(r),0,7)&&(r="["+c(o(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!ht(t,"name")||e&&t.name!==r)&&(p?i(t,"name",{value:r,configurable:!0}):t.name=r),f&&l&&ht(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&ht(l,"constructor")&&l.constructor?p&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ht(h,"source")||(h.source=u(s,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return D(this)&&r(this).source||$t(this)}),"toString")})),le=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(D(n)&&se(n,i,r),r.global)o?t[e]=n:at(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Ft.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},pe=Math.ceil,he=Math.floor,de=Math.trunc||function(t){var e=+t;return(e>0?he:pe)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:de(e)},ye=Math.max,ge=Math.min,me=Math.min,be=function(t){return(e=t.length)>0?me(ve(e),9007199254740991):0;var e},we=function(t){return function(e,n,r){var o,i=k(e),a=be(i),c=function(t,e){var n=ve(t);return n<0?ye(n+e,0):ge(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},Se={includes:we(!0),indexOf:we(!1)}.indexOf,Ae=E([].push),Oe=function(t,e){var n,r=k(t),o=0,i=[];for(n in r)!ht(re,n)&&ht(r,n)&&Ae(i,n);for(;e.length>o;)ht(r,n=e[o++])&&(~Se(i,n)||Ae(i,n));return i},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pe=Ee.concat("length","prototype"),Te={f:Object.getOwnPropertyNames||function(t){return Oe(t,Pe)}},_e={f:Object.getOwnPropertySymbols},je=E([].concat),Le=W("Reflect","ownKeys")||function(t){var e=Te.f(Nt(t)),n=_e.f;return n?je(e,n(t)):e},xe=function(t,e,n){for(var r=Le(e),o=Ft.f,i=Ct.f,a=0;a<r.length;a++){var c=r[a];ht(t,c)||n&&ht(n,c)||o(t,c,i(e,c))}},Ce=/#|\.prototype\./,Ie=function(t,e){var n=ke[Re(t)];return n==Me||n!=Ne&&(D(e)?l(e):!!e)},Re=Ie.normalize=function(t){return String(t).replace(Ce,".").toLowerCase()},ke=Ie.data={},Ne=Ie.NATIVE="N",Me=Ie.POLYFILL="P",Ue=Ie,De=Ct.f,He=function(t,e){var n,r,o,i,a,c=t.target,u=t.global,f=t.stat;if(n=u?s:f?s[c]||at(c,{}):(s[c]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(a=De(n,r))&&a.value:n[r],!Ue(u?r:c+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;xe(i,o)}(t.sham||o&&o.sham)&&zt(i,"sham",!0),le(n,r,i,t)}},Be=Object.keys||function(t){return Oe(t,Ee)},We=Object.assign,Fe=Object.defineProperty,ze=E([].concat),Ge=!We||l((function(){if(p&&1!==We({b:1},We(Fe({},"a",{enumerable:!0,get:function(){Fe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=We({},t)[n]||Be(We({},e)).join("")!=r}))?function(t,e){for(var n=lt(t),r=arguments.length,o=1,i=_e.f,a=b.f;r>o;)for(var c,u=x(arguments[o++]),f=i?ze(Be(u),i(u)):Be(u),s=f.length,l=0;s>l;)c=f[l++],p&&!v(a,u,c)||(n[c]=u[c]);return n}:We;He({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ge},{assign:Ge});var qe=Array.isArray||function(t){return"Array"==_(t)},Ve=TypeError,Xe=function(t){if(t>9007199254740991)throw Ve("Maximum allowed index exceeded");return t},Ye=function(t,e,n){var r=Pt(e);r in t?Ft.f(t,r,w(0,n)):t[r]=n},Je={};Je[St("toStringTag")]="z";var Ke="[object z]"===String(Je),Qe=St("toStringTag"),$e=Object,Ze="Arguments"==_(function(){return arguments}()),tn=Ke?_:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=$e(t),Qe))?n:Ze?_(e):"Object"==(r=_(e))&&D(e.callee)?"Arguments":r},en=function(){},nn=[],rn=W("Reflect","construct"),on=/^\s*(?:class|function)\b/,an=E(on.exec),cn=!on.exec(en),un=function(t){if(!D(t))return!1;try{return rn(en,nn,t),!0}catch(t){return!1}},fn=function(t){if(!D(t))return!1;switch(tn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return cn||!!an(on,$t(t))}catch(t){return!0}};fn.sham=!0;var sn,ln=!rn||l((function(){var t;return un(un.call)||!un(Object)||!un((function(){t=!0}))||t}))?fn:un,pn=St("species"),hn=Array,dn=function(t,e){return new(function(t){var e;return qe(t)&&(e=t.constructor,(ln(e)&&(e===hn||qe(e.prototype))||B(e)&&null===(e=e[pn]))&&(e=void 0)),void 0===e?hn:e}(t))(0===e?0:e)},vn=St("species"),yn=St("isConcatSpreadable"),gn=Y>=51||!l((function(){var t=[];return t[yn]=!1,t.concat()[0]!==t})),mn=function(t){if(!B(t))return!1;var e=t[yn];return void 0!==e?!!e:qe(t)},bn=!(gn&&(sn="concat",Y>=51||!l((function(){var t=[];return(t.constructor={})[vn]=function(){return{foo:1}},1!==t[sn](Boolean).foo}))));He({target:"Array",proto:!0,arity:1,forced:bn},{concat:function(t){var e,n,r,o,i,a=lt(this),c=dn(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(mn(i=-1===e?a:arguments[e]))for(o=be(i),Xe(u+o),n=0;n<o;n++,u++)n in i&&Ye(c,u,i[n]);else Xe(u+1),Ye(c,u++,i);return c.length=u,c}});var wn,Sn=p&&!It?Object.defineProperties:function(t,e){Nt(t);for(var n,r=k(e),o=Be(e),i=o.length,a=0;i>a;)Ft.f(t,n=o[a++],r[n]);return t},An={f:Sn},On=W("document","documentElement"),En="prototype",Pn="script",Tn=ne("IE_PROTO"),_n=function(){},jn=function(t){return"<"+Pn+">"+t+"</"+Pn+">"},Ln=function(t){t.write(jn("")),t.close();var e=t.parentWindow.Object;return t=null,e},xn=function(){try{wn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;xn="undefined"!=typeof document?document.domain&&wn?Ln(wn):(e=jt("iframe"),n="java"+Pn+":",e.style.display="none",On.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(jn("document.F=Object")),t.close(),t.F):Ln(wn);for(var r=Ee.length;r--;)delete xn[En][Ee[r]];return xn()};re[Tn]=!0;var Cn=Object.create||function(t,e){var n;return null!==t?(_n[En]=Nt(t),n=new _n,_n[En]=null,n[Tn]=t):n=xn(),void 0===e?n:An.f(n,e)},In=Ft.f,Rn=St("unscopables"),kn=Array.prototype;null==kn[Rn]&&In(kn,Rn,{configurable:!0,value:Cn(null)});var Nn,Mn,Un,Dn=function(t){kn[Rn][t]=!0},Hn={},Bn=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wn=ne("IE_PROTO"),Fn=Object,zn=Fn.prototype,Gn=Bn?Fn.getPrototypeOf:function(t){var e=lt(t);if(ht(e,Wn))return e[Wn];var n=e.constructor;return D(n)&&e instanceof n?n.prototype:e instanceof Fn?zn:null},qn=St("iterator"),Vn=!1;[].keys&&("next"in(Un=[].keys())?(Mn=Gn(Gn(Un)))!==Object.prototype&&(Nn=Mn):Vn=!0);var Xn=!B(Nn)||l((function(){var t={};return Nn[qn].call(t)!==t}));Xn&&(Nn={}),D(Nn[qn])||le(Nn,qn,(function(){return this}));var Yn={IteratorPrototype:Nn,BUGGY_SAFARI_ITERATORS:Vn},Jn=Ft.f,Kn=St("toStringTag"),Qn=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ht(t,Kn)&&Jn(t,Kn,{configurable:!0,value:e})},$n=Yn.IteratorPrototype,Zn=function(){return this},tr=String,er=TypeError,nr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return E(nt(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Nt(n),function(t){if("object"==typeof t||D(t))return t;throw er("Can't set "+tr(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),rr=Xt.PROPER,or=Xt.CONFIGURABLE,ir=Yn.IteratorPrototype,ar=Yn.BUGGY_SAFARI_ITERATORS,cr=St("iterator"),ur="keys",fr="values",sr="entries",lr=function(){return this},pr=function(t,e,n,r,o,i,a){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Cn($n,{next:w(+!r,n)}),Qn(t,o,!1),Hn[o]=Zn}(n,e,r);var c,u,f,s=function(t){if(t===o&&y)return y;if(!ar&&t in h)return h[t];switch(t){case ur:case fr:case sr:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",p=!1,h=t.prototype,d=h[cr]||h["@@iterator"]||o&&h[o],y=!ar&&d||s(o),g="Array"==e&&h.entries||d;if(g&&(c=Gn(g.call(new t)))!==Object.prototype&&c.next&&(Gn(c)!==ir&&(nr?nr(c,ir):D(c[cr])||le(c,cr,lr)),Qn(c,l,!0)),rr&&o==fr&&d&&d.name!==fr&&(or?zt(h,"name",fr):(p=!0,y=function(){return v(d,this)})),o)if(u={values:s(fr),keys:i?y:s(ur),entries:s(sr)},a)for(f in u)(ar||p||!(f in h))&&le(h,f,u[f]);else He({target:e,proto:!0,forced:ar||p},u);return h[cr]!==y&&le(h,cr,y,{name:o}),Hn[e]=y,u},hr=function(t,e){return{value:t,done:e}},dr=Ft.f,vr="Array Iterator",yr=fe.set,gr=fe.getterFor(vr),mr=pr(Array,"Array",(function(t,e){yr(this,{type:vr,target:k(t),index:0,kind:e})}),(function(){var t=gr(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,hr(void 0,!0)):hr("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),br=Hn.Arguments=Hn.Array;if(Dn("keys"),Dn("values"),Dn("entries"),p&&"values"!==br.name)try{dr(br,"name",{value:"values"})}catch(t){}var wr=Ke?{}.toString:function(){return"[object "+tn(this)+"]"};Ke||le(Object.prototype,"toString",wr,{unsafe:!0});var Sr,Ar,Or,Er,Pr="undefined"!=typeof process&&"process"==_(process),Tr=St("species"),_r=TypeError,jr=TypeError,Lr=St("species"),xr=function(t,e){var n,r=Nt(t).constructor;return void 0===r||C(n=Nt(r)[Lr])?e:function(t){if(ln(t))return t;throw jr(tt(t)+" is not a constructor")}(n)},Cr=Function.prototype,Ir=Cr.apply,Rr=Cr.call,kr="object"==typeof Reflect&&Reflect.apply||(h?Rr.bind(Ir):function(){return Rr.apply(Ir,arguments)}),Nr=function(t){if("Function"===_(t))return E(t)},Mr=Nr(Nr.bind),Ur=function(t,e){return nt(t),void 0===e?t:h?Mr(t,e):function(){return t.apply(e,arguments)}},Dr=E([].slice),Hr=TypeError,Br=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Wr=s.setImmediate,Fr=s.clearImmediate,zr=s.process,Gr=s.Dispatch,qr=s.Function,Vr=s.MessageChannel,Xr=s.String,Yr=0,Jr={},Kr="onreadystatechange";l((function(){Sr=s.location}));var Qr=function(t){if(ht(Jr,t)){var e=Jr[t];delete Jr[t],e()}},$r=function(t){return function(){Qr(t)}},Zr=function(t){Qr(t.data)},to=function(t){s.postMessage(Xr(t),Sr.protocol+"//"+Sr.host)};Wr&&Fr||(Wr=function(t){!function(t,e){if(t<e)throw Hr("Not enough arguments")}(arguments.length,1);var e=D(t)?t:qr(t),n=Dr(arguments,1);return Jr[++Yr]=function(){kr(e,void 0,n)},Ar(Yr),Yr},Fr=function(t){delete Jr[t]},Pr?Ar=function(t){zr.nextTick($r(t))}:Gr&&Gr.now?Ar=function(t){Gr.now($r(t))}:Vr&&!Br?(Er=(Or=new Vr).port2,Or.port1.onmessage=Zr,Ar=Ur(Er.postMessage,Er)):s.addEventListener&&D(s.postMessage)&&!s.importScripts&&Sr&&"file:"!==Sr.protocol&&!l(to)?(Ar=to,s.addEventListener("message",Zr,!1)):Ar=Kr in jt("script")?function(t){On.appendChild(jt("script"))[Kr]=function(){On.removeChild(this),Qr(t)}}:function(t){setTimeout($r(t),0)});var eo={set:Wr,clear:Fr},no=function(){this.head=null,this.tail=null};no.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ro,oo,io,ao,co,uo=no,fo=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,so=/web0s(?!.*chrome)/i.test(z),lo=Ct.f,po=eo.set,ho=s.MutationObserver||s.WebKitMutationObserver,vo=s.document,yo=s.process,go=s.Promise,mo=lo(s,"queueMicrotask"),bo=mo&&mo.value;if(!bo){var wo=new uo,So=function(){var t,e;for(Pr&&(t=yo.domain)&&t.exit();e=wo.get();)try{e()}catch(t){throw wo.head&&ro(),t}t&&t.enter()};Br||Pr||so||!ho||!vo?!fo&&go&&go.resolve?((ao=go.resolve(void 0)).constructor=go,co=Ur(ao.then,ao),ro=function(){co(So)}):Pr?ro=function(){yo.nextTick(So)}:(po=Ur(po,s),ro=function(){po(So)}):(oo=!0,io=vo.createTextNode(""),new ho(So).observe(io,{characterData:!0}),ro=function(){io.data=oo=!oo}),bo=function(t){wo.head||ro(),wo.add(t)}}var Ao=bo,Oo=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Eo=s.Promise,Po="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,To=!Po&&!Pr&&"object"==typeof window&&"object"==typeof document;Eo&&Eo.prototype;var _o,jo,Lo,xo,Co,Io,Ro,ko=St("species"),No=!1,Mo=D(s.PromiseRejectionEvent),Uo=Ue("Promise",(function(){var t=$t(Eo),e=t!==String(Eo);if(!e&&66===Y)return!0;if(!Y||Y<51||!/native code/.test(t)){var n=new Eo((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[ko]=r,!(No=n.then((function(){}))instanceof r))return!0}return!e&&(To||Po)&&!Mo})),Do={CONSTRUCTOR:Uo,REJECTION_EVENT:Mo,SUBCLASSING:No},Ho=TypeError,Bo=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Ho("Bad Promise constructor");e=t,n=r})),this.resolve=nt(e),this.reject=nt(n)},Wo={f:function(t){return new Bo(t)}},Fo=eo.set,zo="Promise",Go=Do.CONSTRUCTOR,qo=Do.REJECTION_EVENT,Vo=Do.SUBCLASSING,Xo=fe.getterFor(zo),Yo=fe.set,Jo=Eo&&Eo.prototype,Ko=Eo,Qo=Jo,$o=s.TypeError,Zo=s.document,ti=s.process,ei=Wo.f,ni=ei,ri=!!(Zo&&Zo.createEvent&&s.dispatchEvent),oi="unhandledrejection",ii=function(t){var e;return!(!B(t)||!D(e=t.then))&&e},ai=function(t,e){var n,r,o,i=e.value,a=1==e.state,c=a?t.ok:t.fail,u=t.resolve,f=t.reject,s=t.domain;try{c?(a||(2===e.rejection&&li(e),e.rejection=1),!0===c?n=i:(s&&s.enter(),n=c(i),s&&(s.exit(),o=!0)),n===t.promise?f($o("Promise-chain cycle")):(r=ii(n))?v(r,n,u,f):u(n)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ci=function(t,e){t.notified||(t.notified=!0,Ao((function(){for(var n,r=t.reactions;n=r.get();)ai(n,t);t.notified=!1,e&&!t.rejection&&fi(t)})))},ui=function(t,e,n){var r,o;ri?((r=Zo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!qo&&(o=s["on"+t])?o(r):t===oi&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",n)},fi=function(t){v(Fo,s,(function(){var e,n=t.facade,r=t.value;if(si(t)&&(e=Oo((function(){Pr?ti.emit("unhandledRejection",r,n):ui(oi,n,r)})),t.rejection=Pr||si(t)?2:1,e.error))throw e.value}))},si=function(t){return 1!==t.rejection&&!t.parent},li=function(t){v(Fo,s,(function(){var e=t.facade;Pr?ti.emit("rejectionHandled",e):ui("rejectionhandled",e,t.value)}))},pi=function(t,e,n){return function(r){t(e,r,n)}},hi=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ci(t,!0))},di=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw $o("Promise can't be resolved itself");var r=ii(e);r?Ao((function(){var n={done:!1};try{v(r,e,pi(di,n,t),pi(hi,n,t))}catch(e){hi(n,e,t)}})):(t.value=e,t.state=1,ci(t,!1))}catch(e){hi({done:!1},e,t)}}};if(Go&&(Qo=(Ko=function(t){!function(t,e){if(F(e,t))return t;throw _r("Incorrect invocation")}(this,Qo),nt(t),v(_o,this);var e=Xo(this);try{t(pi(di,e),pi(hi,e))}catch(t){hi(e,t)}}).prototype,(_o=function(t){Yo(this,{type:zo,done:!1,notified:!1,parent:!1,reactions:new uo,rejection:!1,state:0,value:void 0})}).prototype=le(Qo,"then",(function(t,e){var n=Xo(this),r=ei(xr(this,Ko));return n.parent=!0,r.ok=!D(t)||t,r.fail=D(e)&&e,r.domain=Pr?ti.domain:void 0,0==n.state?n.reactions.add(r):Ao((function(){ai(r,n)})),r.promise})),jo=function(){var t=new _o,e=Xo(t);this.promise=t,this.resolve=pi(di,e),this.reject=pi(hi,e)},Wo.f=ei=function(t){return t===Ko||undefined===t?new jo(t):ni(t)},D(Eo)&&Jo!==Object.prototype)){Lo=Jo.then,Vo||le(Jo,"then",(function(t,e){var n=this;return new Ko((function(t,e){v(Lo,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Jo.constructor}catch(t){}nr&&nr(Jo,Qo)}He({global:!0,constructor:!0,wrap:!0,forced:Go},{Promise:Ko}),Qn(Ko,zo,!1),Ro=W(zo),p&&Ro&&!Ro[Tr]&&(xo=Ro,Co=Tr,(Io={configurable:!0,get:function(){return this}}).get&&se(Io.get,Co,{getter:!0}),Io.set&&se(Io.set,Co,{setter:!0}),Ft.f(xo,Co,Io));var vi=St("iterator"),yi=Array.prototype,gi=St("iterator"),mi=function(t){if(!C(t))return rt(t,gi)||rt(t,"@@iterator")||Hn[tn(t)]},bi=TypeError,wi=function(t,e,n){var r,o;Nt(t);try{if(!(r=rt(t,"return"))){if("throw"===e)throw n;return n}r=v(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return Nt(r),n},Si=TypeError,Ai=function(t,e){this.stopped=t,this.result=e},Oi=Ai.prototype,Ei=function(t,e,n){var r,o,i,a,c,u,f,s,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),g=Ur(e,l),m=function(t){return r&&wi(r,"normal",t),new Ai(!0,t)},b=function(t){return p?(Nt(t),y?g(t[0],t[1],m):g(t[0],t[1])):y?g(t,m):g(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(o=mi(t)))throw Si(tt(t)+" is not iterable");if(void 0!==(s=o)&&(Hn.Array===s||yi[vi]===s)){for(i=0,a=be(t);a>i;i++)if((c=b(t[i]))&&F(Oi,c))return c;return new Ai(!1)}r=function(t,e){var n=arguments.length<2?mi(t):e;if(nt(n))return Nt(v(n,t));throw bi(tt(t)+" is not iterable")}(t,o)}for(u=h?t.next:r.next;!(f=v(u,r)).done;){try{c=b(f.value)}catch(t){wi(r,"throw",t)}if("object"==typeof c&&c&&F(Oi,c))return c}return new Ai(!1)},Pi=St("iterator"),Ti=!1;try{var _i=0,ji={next:function(){return{done:!!_i++}},return:function(){Ti=!0}};ji[Pi]=function(){return this},Array.from(ji,(function(){throw 2}))}catch(t){}var Li=Do.CONSTRUCTOR||!function(t,e){if(!e&&!Ti)return!1;var n=!1;try{var r={};r[Pi]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Eo.all(t).then(void 0,(function(){}))}));He({target:"Promise",stat:!0,forced:Li},{all:function(t){var e=this,n=Wo.f(e),r=n.resolve,o=n.reject,i=Oo((function(){var n=nt(e.resolve),i=[],a=0,c=1;Ei(t,(function(t){var u=a++,f=!1;c++,v(n,e,t).then((function(t){f||(f=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise}});var xi=Do.CONSTRUCTOR,Ci=Eo&&Eo.prototype;if(He({target:"Promise",proto:!0,forced:xi,real:!0},{catch:function(t){return this.then(void 0,t)}}),D(Eo)){var Ii=W("Promise").prototype.catch;Ci.catch!==Ii&&le(Ci,"catch",Ii,{unsafe:!0})}He({target:"Promise",stat:!0,forced:Li},{race:function(t){var e=this,n=Wo.f(e),r=n.reject,o=Oo((function(){var o=nt(e.resolve);Ei(t,(function(t){v(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),He({target:"Promise",stat:!0,forced:Do.CONSTRUCTOR},{reject:function(t){var e=Wo.f(this);return v(e.reject,void 0,t),e.promise}});var Ri=Do.CONSTRUCTOR;W("Promise"),He({target:"Promise",stat:!0,forced:Ri},{resolve:function(t){return function(t,e){if(Nt(t),B(e)&&e.constructor===t)return e;var n=Wo.f(t);return(0,n.resolve)(e),n.promise}(this,t)}});var ki=String,Ni=function(t){if("Symbol"===tn(t))throw TypeError("Cannot convert a Symbol value to a string");return ki(t)},Mi=E("".charAt),Ui=E("".charCodeAt),Di=E("".slice),Hi=function(t){return function(e,n){var r,o,i=Ni(R(e)),a=ve(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=Ui(i,a))<55296||r>56319||a+1===c||(o=Ui(i,a+1))<56320||o>57343?t?Mi(i,a):r:t?Di(i,a,a+2):o-56320+(r-55296<<10)+65536}},Bi={codeAt:Hi(!1),charAt:Hi(!0)}.charAt,Wi="String Iterator",Fi=fe.set,zi=fe.getterFor(Wi);pr(String,"String",(function(t){Fi(this,{type:Wi,string:Ni(t),index:0})}),(function(){var t,e=zi(this),n=e.string,r=e.index;return r>=n.length?hr(void 0,!0):(t=Bi(n,r),e.index+=t.length,hr(t,!1))}));var Gi={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},qi=jt("span").classList,Vi=qi&&qi.constructor&&qi.constructor.prototype,Xi=Vi===Object.prototype?void 0:Vi,Yi=St("iterator"),Ji=St("toStringTag"),Ki=mr.values,Qi=function(t,e){if(t){if(t[Yi]!==Ki)try{zt(t,Yi,Ki)}catch(e){t[Yi]=Ki}if(t[Ji]||zt(t,Ji,e),Gi[e])for(var n in mr)if(t[n]!==mr[n])try{zt(t,n,mr[n])}catch(e){t[n]=mr[n]}}};for(var $i in Gi)Qi(s[$i]&&s[$i].prototype,$i);Qi(Xi,"DOMTokenList");var Zi=function(){return Zi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Zi.apply(this,arguments)},ta={weixinJsSdkTicket:"",launchContainerQuery:".mazey-launch-app-selector",launchShowWeixinToBrowserImgUrl:"",canShowWeixinToBrowser:!1,extInfo:"",serviceAccountAppId:"",wexinServiceAccountAppId:"",openPlatformMobileAppId:"",genTagPrefixStr:"mazey-launch-app-btn-prefix-",launchShowWeixinToBrowserClassName:"mazey-launch-app-wx-to-browser",launchBtnClassName:"mazey-launch-app-inner-btn",launchBtnStyle:"",launchBtnText:"Launch App <br /><br /><br />",launchErrorLink:"",canContinuousUpdating:!1,onMenuShareTimelineOptions:void 0,onMenuShareAppMessageOptions:void 0,isConClosed:!0,isWxDebug:!1,canLaunchApp:function(){return!0},canFireErrorLinkDirectly:function(){return!1},launchBtnClick:function(){},launchReady:function(){}},ea=function(i){void 0===i&&(i=ta);var a=Object.assign(ta,i),c=a.weixinJsSdkTicket,u=a.launchContainerQuery,f=a.genTagPrefixStr,s=a.launchShowWeixinToBrowserImgUrl,l=a.canShowWeixinToBrowser,p=a.launchShowWeixinToBrowserClassName,h=a.launchBtnClassName,d=a.launchBtnStyle,v=a.launchBtnText,y=a.launchErrorLink,g=a.wexinServiceAccountAppId,m=a.openPlatformMobileAppId,b=a.canContinuousUpdating,w=a.onMenuShareTimelineOptions,S=a.onMenuShareAppMessageOptions,A=a.isConClosed,O=a.isWxDebug,E=a.canLaunchApp,P=a.canFireErrorLinkDirectly,T=a.launchBtnClick,_=a.launchReady,j=a.serviceAccountAppId,L=a.extInfo,x=window.wx;x||console.error("Launch App: wx is not found");var C=function(){},I=t("LaunchCon:",{isClosed:A});I.log("Launch App");var R={title:"",link:"",imgUrl:"",success:function(){},cancel:function(){}},k={title:"",desc:"",link:"",imgUrl:"",type:"",dataUrl:"",success:function(){},cancel:function(){}},N={title:document.title,link:location.href};R=Zi(Zi({},R),N),k=Zi(Zi({},k),N);var M=function(t,e,n){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n="button"),"<style>.".concat(h,"{")+"opacity: 0;width: 100%;height: 100%;backgroud: transparent;color: #300f54;border: none;box-sizing: border-box;text-align: center;vertical-align: middle;"+d+e+"}</style>"+"<".concat(n,' class="').concat(h,'"')+(t&&"button"===n?' onclick="'.concat(t,'"'):"")+(t&&"a"===n?' target="_self" href="'.concat(t,'"'):"")+">"+v+"</".concat(n,">")},U=M();function D(){e('.mazey-launch-app-mask{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, .5);text-align:right;font-size:0;white-space:nowrap;overflow:auto;z-index:999;}.mazey-launch-app-img{display:inline-block;vertical-align:middle;text-align:left;font-size:14px;white-space:normal;width:50vw;margin:0.5rem 0.5rem 0 0;}.mazey-launch-app-img:after{content:"";display:inline-block;height:100%;vertical-align:middle;}',{id:"mazey-launch-app-mask-style"}),window.LAUNCH_APP_HIDE_WEIXIN_BROWSER||(window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=function(){r(".mazey-launch-app-mask").hide()}),0===r(".mazey-launch-app-mask").length?r("body").append("<div class='mazey-launch-app-mask' onclick='window.LAUNCH_APP_HIDE_WEIXIN_BROWSER()'><img "+"class='mazey-launch-app-img ".concat(p,"' ")+"src='".concat(s,"' ")+"alt='Launch App' /></div>"):r(".mazey-launch-app-mask").show()}function H(){I.log("renderWeixinLaunchTemplate"),!j&&g&&(console.warn("wexinServiceAccountAppId will be deprecated, use serviceAccountAppId instead."),j=g),function(t,e){void 0===t&&(t=""),void 0===e&&(e=""),I.log("renderWXOpenLaunchApp"),Promise.all([Promise.resolve(c||window.LAUNCH_APP_WEIXIN_JS_SDK_TICKET),Promise.resolve(o)]).then((function(o){I.log("allRes",o);var i=o[0],a=o[1],c=n(7),s=i,p=(new Date).getTime(),h=a("jsapi_ticket="+s+"&noncestr="+c+"×tamp="+p+"&url="+location.href);return x.config({debug:O,appId:t,timestamp:p,nonceStr:c,signature:h,jsApiList:["showOptionMenu","onMenuShareTimeline","onMenuShareAppMessage"],openTagList:["wx-open-launch-app"]}),x.ready((function(){w&&(I.log("onMenuShareTimelineOptions",w),x.onMenuShareTimeline(w)),window.LAUNCH_APP_SHARE_TIMELINE=function(t){t=Zi(Zi({},R),t),I.log("window LAUNCH_APP_SHARE_TIMELINE",t),x.onMenuShareTimeline(t)},S&&(I.log("onMenuShareAppMessageOptions",S),x.onMenuShareAppMessage(S)),window.LAUNCH_APP_SHARE_APP_MESSAGE=function(t){t=Zi(Zi({},k),t),I.log("window LAUNCH_APP_SHARE_APP_MESSAGE",t),x.onMenuShareAppMessage(t)},window.LAUNCH_APP_READY=!0,_&&_();var t=function(){var t=r(u);I.log("containers",u,t,t.length),t.length>0&&t.each((function(t,n){var o=r(n).attr("data-launch-app-key");if(!o){var i=r(n).parents("[data-launch-app-key]:eq(0)");i.length>0&&(o=i.attr("data-launch-app-key"),I.log("keyEle",i,o))}o||(o=String(t));var a="mazey-launch-app-tag-".concat(o),c=r(".".concat(a," wx-open-launch-app")),u=r(n).attr("data-launch-app-ext-info");if(!u){var s=r(n).parents("[data-launch-app-ext-info]:eq(0)");s.length>0&&(u=s.attr("data-launch-app-ext-info"),I.log("eleExtInfoEle parents",s,u))}u&&(L=u);var p=r(n).attr("data-launch-app-error-link");if(!p){var h=r(n).parents("[data-launch-app-error-link]:eq(0)");h.length>0&&(p=h.attr("data-launch-app-error-link"),I.log("eleErrorLinkEle parents",h,p))}var d=y;p&&(d=p),0===c.length&&(r(n).addClass(a),I.log("success:",a),function(t){var n=f,o=n+t,i="<wx-open-launch-app id='"+o+"' appid='"+e+"' extinfo='".concat(L)+"' style='z-index:99;position:absolute;width:100%;height:100%;opacity:1;background:transparent;overflow:hidden;left:0;'><script type='text/wxtag-template'>"+U+"<\/script></wx-open-launch-app>";r("."+t+":eq(0)").append(i);var a=document.getElementById(o);a&&(a.addEventListener("ready",(function(t){I.log("ready event",t)})),a.addEventListener("launch",(function(t){I.log("launch event",t),t.detail&&t.detail.extInfo&&I.log("launch extInfo",t.detail.extInfo)})),a.addEventListener("error",(function(t){I.error(t.detail),r("[id^='"+n+"']").hide(),l&&D(),d&&(I.log("realErrorLink",d),location.href=d)})),a.addEventListener("click",(function(t){I.log("click event",t),T&&T()})))}(a))}))};t(),C=t})),x.error((function(t){I.error(t)})),"success:launch_app"})).catch((function(t){I.error(t)}))}(j,m)}function B(t){if(I.log("appUpdated",t),!window.LAUNCH_APP_LOAD&&E(t)&&(H(),window.LAUNCH_APP_LOAD=!0),b&&window.LAUNCH_APP_LOAD&&E(t)&&C(),P()){var e=r(u);e.length>0&&e.each((function(t,e){var n=r(e).children("."+h);if(!n||!n.length){var o=r(e).attr("data-launch-app-error-link");if(!o){var i=r(e).parents("[data-launch-app-error-link]:eq(0)");i.length>0&&(o=i.attr("data-launch-app-error-link"))}if(o&&"string"==typeof o&&o.length){var a=M(o,"position:absolute;left:0;z-index:999;","a");r(e).append(a)}}}))}}function W(){I.log("appBeforeDestroy",W),window.LAUNCH_APP_LOAD=null,window.LAUNCH_APP_HIDE_WEIXIN_BROWSER=null}return window.LAUNCH_APP_UPDATE=B,window.LAUNCH_APP_BEFORE_DESTROY=W,window.LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER=D,{LAUNCH_APP_UPDATE:B,LAUNCH_APP_BEFORE_DESTROY:W,LAUNCH_APP_SHOW_WEIXIN_TO_BROWSER:D,LAUNCH_APP_SHARE_TIMELINE:function(t){I.log("opt",t)},LAUNCH_APP_SHARE_APP_MESSAGE:function(t){I.log("opt",t)},start:B,update:B,destroy:W}};export{ea as default};
|