micro-ice-vue3-ts 0.1.0 → 1.0.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 CHANGED
@@ -1,24 +1,11 @@
1
- # micro-ice-ts
2
-
1
+ # micro-ice-app
2
+ ## vue3+ts 版本
3
+ ##
4
+ 该框架有极限性,针对指定项目使用,并非适用大众,请知悉!
5
+ 站在巨人的肩膀上,该框架基于腾讯[wujie](https://github.com/Tencent/wujie)进行封装
3
6
  ## Project setup
4
7
  ```
5
- yarn install
8
+ yarn add micro-ice-vue3-ts
6
9
  ```
7
-
8
- ### Compiles and hot-reloads for development
9
- ```
10
- yarn serve
11
- ```
12
-
13
- ### Compiles and minifies for production
14
- ```
15
- yarn build
16
- ```
17
-
18
- ### Lints and fixes files
19
- ```
20
- yarn lint
21
- ```
22
-
23
10
  ### Customize configuration
24
11
  See [Configuration Reference](https://cli.vuejs.org/config/).
@@ -14,7 +14,10 @@ declare const MicroIceApp: import("vue").DefineComponent<{
14
14
  default: string;
15
15
  };
16
16
  loading: {
17
- type: PropType<HTMLElement>;
17
+ type: {
18
+ new (): HTMLElement;
19
+ prototype: HTMLElement;
20
+ };
18
21
  default: undefined;
19
22
  };
20
23
  url: {
@@ -23,7 +26,7 @@ declare const MicroIceApp: import("vue").DefineComponent<{
23
26
  };
24
27
  sync: {
25
28
  type: BooleanConstructor;
26
- default: undefined;
29
+ default: boolean;
27
30
  };
28
31
  prefix: {
29
32
  type: PropType<{
@@ -33,16 +36,12 @@ declare const MicroIceApp: import("vue").DefineComponent<{
33
36
  };
34
37
  alive: {
35
38
  type: BooleanConstructor;
36
- default: undefined;
39
+ default: boolean;
37
40
  };
38
41
  props: {
39
42
  type: PropType<Record<string, unknown>>;
40
43
  default: undefined;
41
44
  };
42
- attrs: {
43
- type: PropType<Record<string, unknown>>;
44
- default: undefined;
45
- };
46
45
  replace: {
47
46
  type: PropType<(content: string) => string>;
48
47
  default: undefined;
@@ -57,7 +56,7 @@ declare const MicroIceApp: import("vue").DefineComponent<{
57
56
  };
58
57
  degrade: {
59
58
  type: BooleanConstructor;
60
- default: undefined;
59
+ default: boolean;
61
60
  };
62
61
  plugins: {
63
62
  type: PropType<plugin[]>;
@@ -111,7 +110,10 @@ declare const MicroIceApp: import("vue").DefineComponent<{
111
110
  default: string;
112
111
  };
113
112
  loading: {
114
- type: PropType<HTMLElement>;
113
+ type: {
114
+ new (): HTMLElement;
115
+ prototype: HTMLElement;
116
+ };
115
117
  default: undefined;
116
118
  };
117
119
  url: {
@@ -120,7 +122,7 @@ declare const MicroIceApp: import("vue").DefineComponent<{
120
122
  };
121
123
  sync: {
122
124
  type: BooleanConstructor;
123
- default: undefined;
125
+ default: boolean;
124
126
  };
125
127
  prefix: {
126
128
  type: PropType<{
@@ -130,16 +132,12 @@ declare const MicroIceApp: import("vue").DefineComponent<{
130
132
  };
131
133
  alive: {
132
134
  type: BooleanConstructor;
133
- default: undefined;
135
+ default: boolean;
134
136
  };
135
137
  props: {
136
138
  type: PropType<Record<string, unknown>>;
137
139
  default: undefined;
138
140
  };
139
- attrs: {
140
- type: PropType<Record<string, unknown>>;
141
- default: undefined;
142
- };
143
141
  replace: {
144
142
  type: PropType<(content: string) => string>;
145
143
  default: undefined;
@@ -154,7 +152,7 @@ declare const MicroIceApp: import("vue").DefineComponent<{
154
152
  };
155
153
  degrade: {
156
154
  type: BooleanConstructor;
157
- default: undefined;
155
+ default: boolean;
158
156
  };
159
157
  plugins: {
160
158
  type: PropType<plugin[]>;
@@ -204,7 +202,6 @@ declare const MicroIceApp: import("vue").DefineComponent<{
204
202
  [key: string]: string;
205
203
  };
206
204
  alive: boolean;
207
- attrs: Record<string, unknown>;
208
205
  replace: (content: string) => string;
209
206
  fetch: (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
210
207
  fiber: boolean;
@@ -7736,18 +7736,18 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7736
7736
  props: {
7737
7737
  width: {
7738
7738
  type: String,
7739
- default: ""
7739
+ default: "100%"
7740
7740
  },
7741
7741
  height: {
7742
7742
  type: String,
7743
- default: ""
7743
+ default: "100%"
7744
7744
  },
7745
7745
  name: {
7746
7746
  type: String,
7747
7747
  default: ""
7748
7748
  },
7749
7749
  loading: {
7750
- type: Object,
7750
+ type: HTMLElement,
7751
7751
  default: undefined
7752
7752
  },
7753
7753
  url: {
@@ -7756,7 +7756,7 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7756
7756
  },
7757
7757
  sync: {
7758
7758
  type: Boolean,
7759
- default: undefined
7759
+ default: false
7760
7760
  },
7761
7761
  prefix: {
7762
7762
  type: Object,
@@ -7764,16 +7764,12 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7764
7764
  },
7765
7765
  alive: {
7766
7766
  type: Boolean,
7767
- default: undefined
7767
+ default: false
7768
7768
  },
7769
7769
  props: {
7770
7770
  type: Object,
7771
7771
  default: undefined
7772
7772
  },
7773
- attrs: {
7774
- type: Object,
7775
- default: undefined
7776
- },
7777
7773
  replace: {
7778
7774
  type: Function,
7779
7775
  default: undefined
@@ -7788,7 +7784,7 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7788
7784
  },
7789
7785
  degrade: {
7790
7786
  type: Boolean,
7791
- default: undefined
7787
+ default: false
7792
7788
  },
7793
7789
  plugins: {
7794
7790
  type: Array,
@@ -7845,7 +7841,6 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObj
7845
7841
  alive: props.alive,
7846
7842
  fetch: props.fetch,
7847
7843
  props: props.props,
7848
- attrs: props.attrs,
7849
7844
  replace: props.replace,
7850
7845
  sync: props.sync,
7851
7846
  prefix: props.prefix,
package/lib/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{bus as e,startApp as t}from"wujie";export{destroyApp,bus as eventBus,preloadApp,setupApp}from"wujie";import{defineComponent as o,ref as n,onMounted as a,watch as l,onBeforeUnmount as u,h as r}from"vue";const i=o({name:"MicroIceApp",props:{width:{type:String,default:""},height:{type:String,default:""},name:{type:String,default:""},loading:{type:Object,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:void 0},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:void 0},props:{type:Object,default:void 0},attrs:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:void 0},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null}},setup(o,{emit:i}){const d=n(null);let p=Promise.resolve();const f=(e,...t)=>{i(e,...t)},c=async()=>{try{await t({name:o.name,url:o.url,el:d.value,loading:o.loading,alive:o.alive,fetch:o.fetch,props:o.props,attrs:o.attrs,replace:o.replace,sync:o.sync,prefix:o.prefix,fiber:o.fiber,degrade:o.degrade,plugins:o.plugins,beforeLoad:o.beforeLoad,beforeMount:o.beforeMount,afterMount:o.afterMount,beforeUnmount:o.beforeUnmount,afterUnmount:o.afterUnmount,activated:o.activated,deactivated:o.deactivated,loadError:o.loadError})}catch(e){console.log(e)}},s=()=>{p=p.then(c)};return a((()=>{e.$onAll(f),s(),l((()=>o.name+o.url),(()=>s()))})),u((()=>{e.$offAll(f)})),()=>r("div",{style:{width:o.width,height:o.height},ref:d})}});i.install=function(e){e.component("MicroIceApp",i)};const d=[i];var p={install:e=>{d.map((t=>e.component("MicroIceApp",t)))}};export{p as default};
1
+ import{bus as e,startApp as t}from"wujie";export{destroyApp,bus as eventBus,preloadApp,setupApp}from"wujie";import{defineComponent as n,ref as o,onMounted as l,watch as a,onBeforeUnmount as u,h as r}from"vue";const i=n({name:"MicroIceApp",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},name:{type:String,default:""},loading:{type:HTMLElement,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:!1},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:!1},props:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:!1},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null}},setup(n,{emit:i}){const p=o(null);let d=Promise.resolve();const f=(e,...t)=>{i(e,...t)},c=async()=>{try{await t({name:n.name,url:n.url,el:p.value,loading:n.loading,alive:n.alive,fetch:n.fetch,props:n.props,replace:n.replace,sync:n.sync,prefix:n.prefix,fiber:n.fiber,degrade:n.degrade,plugins:n.plugins,beforeLoad:n.beforeLoad,beforeMount:n.beforeMount,afterMount:n.afterMount,beforeUnmount:n.beforeUnmount,afterUnmount:n.afterUnmount,activated:n.activated,deactivated:n.deactivated,loadError:n.loadError})}catch(e){console.log(e)}},y=()=>{d=d.then(c)};return l((()=>{e.$onAll(f),y(),a((()=>n.name+n.url),(()=>y()))})),u((()=>{e.$offAll(f)})),()=>r("div",{style:{width:n.width,height:n.height},ref:p})}});i.install=function(e){e.component("MicroIceApp",i)};const p=[i];var d={install:e=>{p.map((t=>e.component("MicroIceApp",t)))}};export{d as default};
package/lib/index.umd.js CHANGED
@@ -7754,18 +7754,18 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7754
7754
  props: {
7755
7755
  width: {
7756
7756
  type: String,
7757
- default: ""
7757
+ default: "100%"
7758
7758
  },
7759
7759
  height: {
7760
7760
  type: String,
7761
- default: ""
7761
+ default: "100%"
7762
7762
  },
7763
7763
  name: {
7764
7764
  type: String,
7765
7765
  default: ""
7766
7766
  },
7767
7767
  loading: {
7768
- type: Object,
7768
+ type: HTMLElement,
7769
7769
  default: undefined
7770
7770
  },
7771
7771
  url: {
@@ -7774,7 +7774,7 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7774
7774
  },
7775
7775
  sync: {
7776
7776
  type: Boolean,
7777
- default: undefined
7777
+ default: false
7778
7778
  },
7779
7779
  prefix: {
7780
7780
  type: Object,
@@ -7782,16 +7782,12 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7782
7782
  },
7783
7783
  alive: {
7784
7784
  type: Boolean,
7785
- default: undefined
7785
+ default: false
7786
7786
  },
7787
7787
  props: {
7788
7788
  type: Object,
7789
7789
  default: undefined
7790
7790
  },
7791
- attrs: {
7792
- type: Object,
7793
- default: undefined
7794
- },
7795
7791
  replace: {
7796
7792
  type: Function,
7797
7793
  default: undefined
@@ -7806,7 +7802,7 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7806
7802
  },
7807
7803
  degrade: {
7808
7804
  type: Boolean,
7809
- default: undefined
7805
+ default: false
7810
7806
  },
7811
7807
  plugins: {
7812
7808
  type: Array,
@@ -7863,7 +7859,6 @@ const MicroIceApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineCompo
7863
7859
  alive: props.alive,
7864
7860
  fetch: props.fetch,
7865
7861
  props: props.props,
7866
- attrs: props.attrs,
7867
7862
  replace: props.replace,
7868
7863
  sync: props.sync,
7869
7864
  prefix: props.prefix,
@@ -1,3 +1,3 @@
1
1
  (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){var t={9274:function(t){"use strict";t.exports=e},9306:function(e,t,n){"use strict";var r=n(4901),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},7080:function(e,t,n){"use strict";var r=n(4402).has;e.exports=function(e){return r(e),e}},8551:function(e,t,n){"use strict";var r=n(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},9617:function(e,t,n){"use strict";var r=n(5397),o=n(5610),i=n(6198),c=function(e){return function(t,n,c){var u=r(t),a=i(u);if(0===a)return!e&&-1;var s,l=o(c,a);if(e&&n!==n){while(a>l)if(s=u[l++],s!==s)return!0}else for(;a>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},4527:function(e,t,n){"use strict";var r=n(3724),o=n(4376),i=TypeError,c=Object.getOwnPropertyDescriptor,u=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!c(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4576:function(e,t,n){"use strict";var r=n(9504),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},6955:function(e,t,n){"use strict";var r=n(2140),o=n(4901),i=n(4576),c=n(8227),u=c("toStringTag"),a=Object,s="Arguments"===i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=a(e),u))?n:s?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},7740:function(e,t,n){"use strict";var r=n(9297),o=n(5031),i=n(7347),c=n(4913);e.exports=function(e,t,n){for(var u=o(t),a=c.f,s=i.f,l=0;l<u.length;l++){var f=u[l];r(e,f)||n&&r(n,f)||a(e,f,s(t,f))}}},6699:function(e,t,n){"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2106:function(e,t,n){"use strict";var r=n(283),o=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},6840:function(e,t,n){"use strict";var r=n(4901),o=n(4913),i=n(283),c=n(9433);e.exports=function(e,t,n,u){u||(u={});var a=u.enumerable,s=void 0!==u.name?u.name:t;if(r(n)&&i(n,s,u),u.global)a?e[t]=n:c(t,n);else{try{u.unsafe?e[t]&&(a=!0):delete e[t]}catch(l){}a?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},9433:function(e,t,n){"use strict";var r=n(4475),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},3724:function(e,t,n){"use strict";var r=n(9039);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(e,t,n){"use strict";var r=n(4475),o=n(34),i=r.document,c=o(i)&&o(i.createElement);e.exports=function(e){return c?i.createElement(e):{}}},6837:function(e){"use strict";var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},9392:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(e,t,n){"use strict";var r,o,i=n(4475),c=n(9392),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,l=s&&s.v8;l&&(r=l.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(e,t,n){"use strict";var r=n(4475),o=n(7347).f,i=n(6699),c=n(6840),u=n(9433),a=n(7740),s=n(2796);e.exports=function(e,t){var n,l,f,d,p,h,v=e.target,y=e.global,m=e.stat;if(l=y?r:m?r[v]||u(v,{}):r[v]&&r[v].prototype,l)for(f in t){if(p=t[f],e.dontCallGetSet?(h=o(l,f),d=h&&h.value):d=l[f],n=s(y?f:v+(m?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;a(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),c(l,f,p,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},616:function(e,t,n){"use strict";var r=n(9039);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9565:function(e,t,n){"use strict";var r=n(616),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:function(e,t,n){"use strict";var r=n(3724),o=n(9297),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,s=u&&(!r||r&&c(i,"name").configurable);e.exports={EXISTS:u,PROPER:a,CONFIGURABLE:s}},6706:function(e,t,n){"use strict";var r=n(9504),o=n(9306);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(i){}}},9504:function(e,t,n){"use strict";var r=n(616),o=Function.prototype,i=o.call,c=r&&o.bind.bind(i,i);e.exports=r?c:function(e){return function(){return i.apply(e,arguments)}}},7751:function(e,t,n){"use strict";var r=n(4475),o=n(4901),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},5966:function(e,t,n){"use strict";var r=n(9306),o=n(4117);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},3789:function(e,t,n){"use strict";var r=n(9306),o=n(8551),i=n(9565),c=n(1291),u=n(1767),a="Invalid size",s=RangeError,l=TypeError,f=Math.max,d=function(e,t){this.set=e,this.size=f(t,0),this.has=r(e.has),this.keys=r(e.keys)};d.prototype={getIterator:function(){return u(o(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!==t)throw new l(a);var n=c(t);if(n<0)throw new s(a);return new d(e,n)}},4475:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){"use strict";var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},421:function(e){"use strict";e.exports={}},5917:function(e,t,n){"use strict";var r=n(3724),o=n(9039),i=n(4055);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(4576),c=Object,u=r("".split);e.exports=o((function(){return!c("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?u(e,""):c(e)}:c},3706:function(e,t,n){"use strict";var r=n(9504),o=n(4901),i=n(7629),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return c(e)}),e.exports=i.inspectSource},1181:function(e,t,n){"use strict";var r,o,i,c=n(8622),u=n(4475),a=n(34),s=n(6699),l=n(9297),f=n(7629),d=n(6119),p=n(421),h="Object already initialized",v=u.TypeError,y=u.WeakMap,m=function(e){return i(e)?o(e):r(e,{})},g=function(e){return function(t){var n;if(!a(t)||(n=o(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}};if(c||f.state){var w=f.state||(f.state=new y);w.get=w.get,w.has=w.has,w.set=w.set,r=function(e,t){if(w.has(e))throw new v(h);return t.facade=e,w.set(e,t),t},o=function(e){return w.get(e)||{}},i=function(e){return w.has(e)}}else{var b=d("state");p[b]=!0,r=function(e,t){if(l(e,b))throw new v(h);return t.facade=e,s(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:m,getterFor:g}},4376:function(e,t,n){"use strict";var r=n(4576);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,n){"use strict";var r=n(9039),o=n(4901),i=/#|\.prototype\./,c=function(e,t){var n=a[u(e)];return n===l||n!==s&&(o(t)?r(t):!!t)},u=c.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=c.data={},s=c.NATIVE="N",l=c.POLYFILL="P";e.exports=c},4117:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},34:function(e,t,n){"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},6395:function(e){"use strict";e.exports=!1},757:function(e,t,n){"use strict";var r=n(7751),o=n(4901),i=n(1625),c=n(7040),u=Object;e.exports=c?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,u(e))}},507:function(e,t,n){"use strict";var r=n(9565);e.exports=function(e,t,n){var o,i,c=n?e:e.iterator,u=e.next;while(!(o=r(u,c)).done)if(i=t(o.value),void 0!==i)return i}},9539:function(e,t,n){"use strict";var r=n(9565),o=n(8551),i=n(5966);e.exports=function(e,t,n){var c,u;o(e);try{if(c=i(e,"return"),!c){if("throw"===t)throw n;return n}c=r(c,e)}catch(a){u=!0,c=a}if("throw"===t)throw n;if(u)throw c;return o(c),n}},6198:function(e,t,n){"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},283:function(e,t,n){"use strict";var r=n(9504),o=n(9039),i=n(4901),c=n(9297),u=n(3724),a=n(350).CONFIGURABLE,s=n(3706),l=n(1181),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,v=r("".slice),y=r("".replace),m=r([].join),g=u&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),w=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===v(p(t),0,7)&&(t="["+y(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!c(e,"name")||a&&e.name!==t)&&(u?h(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&c(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&c(n,"constructor")&&n.constructor?u&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=f(e);return c(r,"source")||(r.source=m(w,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return i(this)&&d(this).source||s(this)}),"toString")},741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4913:function(e,t,n){"use strict";var r=n(3724),o=n(5917),i=n(8686),c=n(8551),u=n(6969),a=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){if(c(e),t=u(t),c(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return s(e,t,n)}:s:function(e,t,n){if(c(e),t=u(t),c(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){"use strict";var r=n(3724),o=n(9565),i=n(8773),c=n(6980),u=n(5397),a=n(6969),s=n(9297),l=n(5917),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=u(e),t=a(t),l)try{return f(e,t)}catch(n){}if(s(e,t))return c(!o(i.f,e,t),e[t])}},8480:function(e,t,n){"use strict";var r=n(1828),o=n(8727),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},1625:function(e,t,n){"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1828:function(e,t,n){"use strict";var r=n(9504),o=n(9297),i=n(5397),c=n(9617).indexOf,u=n(421),a=r([].push);e.exports=function(e,t){var n,r=i(e),s=0,l=[];for(n in r)!o(u,n)&&o(r,n)&&a(l,n);while(t.length>s)o(r,n=t[s++])&&(~c(l,n)||a(l,n));return l}},8773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4270:function(e,t,n){"use strict";var r=n(9565),o=n(4901),i=n(34),c=TypeError;e.exports=function(e,t){var n,u;if("string"===t&&o(n=e.toString)&&!i(u=r(n,e)))return u;if(o(n=e.valueOf)&&!i(u=r(n,e)))return u;if("string"!==t&&o(n=e.toString)&&!i(u=r(n,e)))return u;throw new c("Can't convert object to primitive value")}},5031:function(e,t,n){"use strict";var r=n(7751),o=n(9504),i=n(8480),c=n(3717),u=n(8551),a=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(u(e)),n=c.f;return n?a(t,n(e)):t}},7750:function(e,t,n){"use strict";var r=n(4117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},9286:function(e,t,n){"use strict";var r=n(4402),o=n(8469),i=r.Set,c=r.add;e.exports=function(e){var t=new i;return o(e,(function(e){c(t,e)})),t}},3440:function(e,t,n){"use strict";var r=n(7080),o=n(4402),i=n(9286),c=n(5170),u=n(3789),a=n(8469),s=n(507),l=o.has,f=o.remove;e.exports=function(e){var t=r(this),n=u(e),o=i(t);return c(t)<=n.size?a(t,(function(e){n.includes(e)&&f(o,e)})):s(n.getIterator(),(function(e){l(t,e)&&f(o,e)})),o}},4402:function(e,t,n){"use strict";var r=n(9504),o=Set.prototype;e.exports={Set:Set,add:r(o.add),has:r(o.has),remove:r(o["delete"]),proto:o}},8750:function(e,t,n){"use strict";var r=n(7080),o=n(4402),i=n(5170),c=n(3789),u=n(8469),a=n(507),s=o.Set,l=o.add,f=o.has;e.exports=function(e){var t=r(this),n=c(e),o=new s;return i(t)>n.size?a(n.getIterator(),(function(e){f(t,e)&&l(o,e)})):u(t,(function(e){n.includes(e)&&l(o,e)})),o}},4449:function(e,t,n){"use strict";var r=n(7080),o=n(4402).has,i=n(5170),c=n(3789),u=n(8469),a=n(507),s=n(9539);e.exports=function(e){var t=r(this),n=c(e);if(i(t)<=n.size)return!1!==u(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==a(l,(function(e){if(o(t,e))return s(l,"normal",!1)}))}},3838:function(e,t,n){"use strict";var r=n(7080),o=n(5170),i=n(8469),c=n(3789);e.exports=function(e){var t=r(this),n=c(e);return!(o(t)>n.size)&&!1!==i(t,(function(e){if(!n.includes(e))return!1}),!0)}},8527:function(e,t,n){"use strict";var r=n(7080),o=n(4402).has,i=n(5170),c=n(3789),u=n(507),a=n(9539);e.exports=function(e){var t=r(this),n=c(e);if(i(t)<n.size)return!1;var s=n.getIterator();return!1!==u(s,(function(e){if(!o(t,e))return a(s,"normal",!1)}))}},8469:function(e,t,n){"use strict";var r=n(9504),o=n(507),i=n(4402),c=i.Set,u=i.proto,a=r(u.forEach),s=r(u.keys),l=s(new c).next;e.exports=function(e,t,n){return n?o({iterator:s(e),next:l},t):a(e,t)}},4916:function(e,t,n){"use strict";var r=n(7751),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=r("Set");try{(new t)[e](o(0));try{return(new t)[e](o(-1)),!1}catch(n){return!0}}catch(i){return!1}}},5170:function(e,t,n){"use strict";var r=n(6706),o=n(4402);e.exports=r(o.proto,"size","get")||function(e){return e.size}},3650:function(e,t,n){"use strict";var r=n(7080),o=n(4402),i=n(9286),c=n(3789),u=n(507),a=o.add,s=o.has,l=o.remove;e.exports=function(e){var t=r(this),n=c(e).getIterator(),o=i(t);return u(n,(function(e){s(t,e)?l(o,e):a(o,e)})),o}},4204:function(e,t,n){"use strict";var r=n(7080),o=n(4402).add,i=n(9286),c=n(3789),u=n(507);e.exports=function(e){var t=r(this),n=c(e).getIterator(),a=i(t);return u(n,(function(e){o(a,e)})),a}},6119:function(e,t,n){"use strict";var r=n(5745),o=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},7629:function(e,t,n){"use strict";var r=n(6395),o=n(4475),i=n(9433),c="__core-js_shared__",u=e.exports=o[c]||i(c,{});(u.versions||(u.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){"use strict";var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},4495:function(e,t,n){"use strict";var r=n(7388),o=n(9039),i=n(4475),c=i.String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!c(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},5610:function(e,t,n){"use strict";var r=n(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5397:function(e,t,n){"use strict";var r=n(7055),o=n(7750);e.exports=function(e){return r(o(e))}},1291:function(e,t,n){"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},8014:function(e,t,n){"use strict";var r=n(1291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},8981:function(e,t,n){"use strict";var r=n(7750),o=Object;e.exports=function(e){return o(r(e))}},2777:function(e,t,n){"use strict";var r=n(9565),o=n(34),i=n(757),c=n(5966),u=n(4270),a=n(8227),s=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,a=c(e,l);if(a){if(void 0===t&&(t="default"),n=r(a,e,t),!o(n)||i(n))return n;throw new s("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},6969:function(e,t,n){"use strict";var r=n(2777),o=n(757);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},2140:function(e,t,n){"use strict";var r=n(8227),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},655:function(e,t,n){"use strict";var r=n(6955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},3392:function(e,t,n){"use strict";var r=n(9504),o=0,i=Math.random(),c=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+c(++o+i,36)}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){"use strict";var r=n(3724),o=n(9039);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},8622:function(e,t,n){"use strict";var r=n(4475),o=n(4901),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8227:function(e,t,n){"use strict";var r=n(4475),o=n(5745),i=n(9297),c=n(3392),u=n(4495),a=n(7040),s=r.Symbol,l=o("wks"),f=a?s["for"]||s:s&&s.withoutSetter||c;e.exports=function(e){return i(l,e)||(l[e]=u&&i(s,e)?s[e]:f("Symbol."+e)),l[e]}},4114:function(e,t,n){"use strict";var r=n(6518),o=n(8981),i=n(6198),c=n(4527),u=n(6837),a=n(9039),s=a((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},f=s||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(e){var t=o(this),n=i(t),r=arguments.length;u(n+r);for(var a=0;a<r;a++)t[n]=arguments[a],n++;return c(t,n),n}})},7642:function(e,t,n){"use strict";var r=n(6518),o=n(3440),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("difference")},{difference:o})},8004:function(e,t,n){"use strict";var r=n(6518),o=n(9039),i=n(8750),c=n(4916),u=!c("intersection")||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));r({target:"Set",proto:!0,real:!0,forced:u},{intersection:i})},3853:function(e,t,n){"use strict";var r=n(6518),o=n(4449),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("isDisjointFrom")},{isDisjointFrom:o})},5876:function(e,t,n){"use strict";var r=n(6518),o=n(3838),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("isSubsetOf")},{isSubsetOf:o})},2475:function(e,t,n){"use strict";var r=n(6518),o=n(8527),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("isSupersetOf")},{isSupersetOf:o})},5024:function(e,t,n){"use strict";var r=n(6518),o=n(3650),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("symmetricDifference")},{symmetricDifference:o})},1698:function(e,t,n){"use strict";var r=n(6518),o=n(4204),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("union")},{union:o})},3375:function(e,t,n){"use strict";n(7642)},9225:function(e,t,n){"use strict";n(8004)},3972:function(e,t,n){"use strict";n(3853)},9209:function(e,t,n){"use strict";n(5876)},5714:function(e,t,n){"use strict";n(2475)},7561:function(e,t,n){"use strict";n(5024)},6197:function(e,t,n){"use strict";n(1698)},4603:function(e,t,n){"use strict";var r=n(6840),o=n(9504),i=n(655),c=n(2812),u=URLSearchParams,a=u.prototype,s=o(a.append),l=o(a["delete"]),f=o(a.forEach),d=o([].push),p=new u("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&r(a,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];f(this,(function(e,t){d(r,{key:t,value:e})})),c(t,1);var o,u=i(e),a=i(n),p=0,h=0,v=!1,y=r.length;while(p<y)o=r[p++],v||o.key===u?(v=!0,l(this,o.key)):h++;while(h<y)o=r[h++],o.key===u&&o.value===a||s(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7566:function(e,t,n){"use strict";var r=n(6840),o=n(9504),i=n(655),c=n(2812),u=URLSearchParams,a=u.prototype,s=o(a.getAll),l=o(a.has),f=new u("a=1");!f.has("a",2)&&f.has("a",void 0)||r(a,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=s(this,e);c(t,1);var o=i(n),u=0;while(u<r.length)if(r[u++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},8721:function(e,t,n){"use strict";var r=n(3724),o=n(9504),i=n(2106),c=URLSearchParams.prototype,u=o(c.forEach);r&&!("size"in c)&&i(c,"size",{get:function(){var e=0;return u(this,(function(){e++})),e},configurable:!0,enumerable:!0})},3666:function(e,t,n){n(4114);var r=n(2833)["default"];function o(){"use strict";
2
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},i=Object.prototype,c=i.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new U(r||[]);return u(i,"_invoke",{value:L(e,n,c)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var v="suspendedStart",y="suspendedYield",m="executing",g="completed",w={};function b(){}function E(){}function _(){}var x={};d(x,s,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(M([])));j&&j!==i&&c.call(j,s)&&(x=j);var S=_.prototype=b.prototype=Object.create(x);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function W(e,t){function n(o,i,u,a){var s=h(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&c.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,a)}),(function(e){n("throw",e,u,a)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,a)}))}a(s.arg)}var o;u(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function L(e,n,r){var o=v;return function(i,c){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw c;return{value:t,done:!0}}for(r.method=i,r.arg=c;;){var u=r.delegate;if(u){var a=I(u,r);if(a){if(a===w)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=h(e,n,r);if("normal"===s.type){if(o=r.done?g:y,s.arg===w)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),w;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,w;var c=i.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,w):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function M(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(c.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=_,u(S,"constructor",{value:_,configurable:!0}),u(_,"constructor",{value:E,configurable:!0}),E.displayName=d(_,f,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,f,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},P(W.prototype),d(W.prototype,l,(function(){return this})),n.AsyncIterator=W,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var c=new W(p(e,t,r,o),i);return n.isGeneratorFunction(t)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},P(S),d(S,f,"Generator"),d(S,s,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=M,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&c.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),s=c.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,w):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),w}},n}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},2833:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},5905:function(e,t,n){var r=n(3666)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{default:function(){return eo},destroyApp:function(){return zr},eventBus:function(){return Br},preloadApp:function(){return $r},setupApp:function(){return Hr}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}r(4114);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,r,o,i,c){try{var u=e[i](c),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){a(i,r,o,c,u,"next",e)}function u(e){a(i,r,o,c,u,"throw",e)}c(void 0)}))}}var l=r(5905),f=r.n(l);r(4603),r(7566),r(8721);function d(e){if(Array.isArray(e))return e}function p(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,c,u=[],a=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{if(!a&&null!=n["return"]&&(c=n["return"](),Object(c)!==c))return}finally{if(s)throw o}}return u}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){return d(e)||p(e,t)||v(e,t)||y()}var g="data-wujie-id",w="data-wujie-script-id",b="data-wujie-Flag",E="data-container-position-flag",_="data-container-overflow-flag",x="data-loading-flag",O="data-wujie-attach-css-flag",j="wujie_iframe",S="_wujie_all_event",P="position: fixed; z-index: 2147483647; visibility: hidden; inset: 0px; backface-visibility: hidden;",W="position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index:1;",L='<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="30px" viewBox="0 0 24 30">\n<rect x="0" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n<rect x="10" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n<rect x="20" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n</svg>',I="url参数为空",C="子应用调用reload无法生效",T="此报错可以忽略,iframe主动中断主应用代码在子应用运行",U=T+",详见:https://github.com/Tencent/wujie/issues/54",M="事件订阅数量为空",R="window上不存在fetch属性,需要自行polyfill",D="当前浏览器不支持无界,子应用将采用iframe方式渲染",A="脚本请求出现错误",k="样式请求出现错误",N="html请求出现错误",J="无界组件短时间重复渲染了两次,可能存在性能问题请检查代码",F="目标Script尚未准备好或已经被移除",B="不支持document.getElementById()传入特殊字符,请参考document.querySelector文档";function H(e){return"function"===typeof e}function q(e){return"LINK"===(null===e||void 0===e?void 0:e.toUpperCase())||"STYLE"===(null===e||void 0===e?void 0:e.toUpperCase())||"SCRIPT"===(null===e||void 0===e?void 0:e.toUpperCase())||"IFRAME"===(null===e||void 0===e?void 0:e.toUpperCase())}var Q=window.Proxy&&window.CustomElementRegistry,$="function"===typeof document.all&&"undefined"===typeof document.all,z=new WeakMap,Y=function(e){if(z.has(e))return!0;var t=$?"function"===typeof e&&"undefined"!==typeof e:"function"===typeof e;return t&&z.set(e,t),t},G=new WeakMap;function X(e){if(G.has(e))return G.get(e);var t=0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");return G.set(e,t),t}var V=new WeakMap;function K(e){var t=e.prototype&&e.prototype.constructor===e&&Object.getOwnPropertyNames(e.prototype).length>1;if(t)return!0;if(V.has(e))return V.get(e);var n=t;if(!n){var r=e.toString(),o=/^function\b\s[A-Z].*/,i=/^class\b/;n=o.test(r)||i.test(r)}return V.set(e,n),n}var Z=new WeakMap;function ee(e){!Y(e)||X(e)||K(e)||Z.has(e)||Z.set(e,e)}function te(e,t){var n=e[t];if(Z.has(n))return Z.get(n);if(Y(n)&&!X(n)&&!K(n)){var r=Function.prototype.bind.call(n,e);for(var o in Z.set(n,r),n)r[o]=n[o];return n.hasOwnProperty("prototype")&&!r.hasOwnProperty("prototype")&&Object.defineProperty(r,"prototype",{value:n.prototype,enumerable:!1,writable:!0}),r}return n}function ne(e){return window.document.querySelector("iframe[".concat(g,'="').concat(e,'"]'))}function re(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function oe(e){if(!e)throw ve(I),new Error;var t=ie(e),n=t.protocol+"//"+t.host,r=t.pathname+t.search+t.hash;return r.startsWith("/")||(r="/"+r),{urlElement:t,appHostPath:n,appRoutePath:r}}function ie(e){var t=window.document.createElement("a");return t.href=e,t.href=t.href,t}function ce(e){var t=e.search.replace("?","").split("&"),n={};return t.forEach((function(e){var t=e.split("="),r=m(t,2),o=r[0],i=r[1];o&&i&&(n[o]=i)})),n}function ue(e){var t=ce(ie(window.location.href));return Object.keys(t).includes(e)}function ae(e,t,n){var r=e.Element.prototype.setAttribute;t.prototype.setAttribute=function(e,t){var o=t;e===n&&(o=le(t,this.baseURI||"",!0)),r.call(this,e,o)};var o=Object.getOwnPropertyDescriptor(t.prototype,n),i=o.enumerable,c=o.configurable,u=o.get,a=o.set;Object.defineProperty(t.prototype,n,{enumerable:i,configurable:c,get:function(){return u.call(this)},set:function(e){a.call(this,le(e,this.baseURI,!0))}})}function se(e){var t=e;return t.protocol+"//"+t.host+t.pathname}function le(e,t,n){try{return e?n&&e.startsWith("#")?e:new URL(e,t).href:e}catch(r){return e}}function fe(e,t){var n,r=ie(window.location.href),o=ce(r);r=null;var i=window.decodeURIComponent(o[e]||""),c=null===(n=i.match(/^{([^}]*)}/))||void 0===n?void 0:n[1];return t&&c?i.replace("{".concat(c,"}"),t[c]):i}var de=window.requestIdleCallback||function(e){return setTimeout(e,1)};function pe(e){return"string"===typeof e?document.querySelector(e):e}function he(e,t){var n;null===(n=console)||void 0===n||n.warn("[wujie warn]: ".concat(e),t)}function ve(e,t){var n;null===(n=console)||void 0===n||n.error("[wujie error]: ".concat(e),t)}function ye(e){var t=e.indexOf(">")+1,n=e.lastIndexOf("<");return e.substring(t,n)}function me(e){if("object"===n(e))return"/";try{var t=new URL(e,location.href),r=t.origin,o=t.pathname,i=o.split("/");return i.pop(),"".concat(r).concat(i.join("/"),"/")}catch(c){return console.warn(c),""}}function ge(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.reduce((function(e,t){return H(t)?t.apply(void 0,[e].concat(r)):e}),t||"")}}function we(e){Promise.resolve().then(e)}function be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];try{e&&e.length>0&&e.map((function(e){return e[t]})).filter((function(e){return H(e)})).forEach((function(e){return e.apply(void 0,r)}))}catch(i){ve(i)}}function Ee(e){var t;return"SCRIPT"===(null===(t=e.tagName)||void 0===t?void 0:t.toUpperCase())}var _e=1;function xe(e,t){if(Ee(e)){var n=t||String(_e++);e.setAttribute(w,n)}}function Oe(e){return Ee(e)?e.getAttribute(w):null}function je(e,t){return{name:e.name,el:e.el||(null===t||void 0===t?void 0:t.el),url:e.url||(null===t||void 0===t?void 0:t.url),html:e.html||(null===t||void 0===t?void 0:t.html),exec:void 0!==e.exec?e.exec:null===t||void 0===t?void 0:t.exec,replace:e.replace||(null===t||void 0===t?void 0:t.replace),fetch:e.fetch||(null===t||void 0===t?void 0:t.fetch),props:e.props||(null===t||void 0===t?void 0:t.props),sync:void 0!==e.sync?e.sync:null===t||void 0===t?void 0:t.sync,prefix:e.prefix||(null===t||void 0===t?void 0:t.prefix),loading:e.loading||(null===t||void 0===t?void 0:t.loading),attrs:void 0!==e.attrs?e.attrs:(null===t||void 0===t?void 0:t.attrs)||{},degradeAttrs:void 0!==e.degradeAttrs?e.degradeAttrs:(null===t||void 0===t?void 0:t.degradeAttrs)||{},fiber:void 0!==e.fiber?e.fiber:void 0===(null===t||void 0===t?void 0:t.fiber)||(null===t||void 0===t?void 0:t.fiber),alive:void 0!==e.alive?e.alive:null===t||void 0===t?void 0:t.alive,degrade:void 0!==e.degrade?e.degrade:null===t||void 0===t?void 0:t.degrade,plugins:e.plugins||(null===t||void 0===t?void 0:t.plugins),lifecycles:{beforeLoad:e.beforeLoad||(null===t||void 0===t?void 0:t.beforeLoad),beforeMount:e.beforeMount||(null===t||void 0===t?void 0:t.beforeMount),afterMount:e.afterMount||(null===t||void 0===t?void 0:t.afterMount),beforeUnmount:e.beforeUnmount||(null===t||void 0===t?void 0:t.beforeUnmount),afterUnmount:e.afterUnmount||(null===t||void 0===t?void 0:t.afterUnmount),activated:e.activated||(null===t||void 0===t?void 0:t.activated),deactivated:e.deactivated||(null===t||void 0===t?void 0:t.deactivated),loadError:e.loadError||(null===t||void 0===t?void 0:t.loadError)}}}function Se(e,t,n){var r;"function"===typeof window.CustomEvent?r=new CustomEvent(t,{detail:n}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!1,n)),e.dispatchEvent(r)}function Pe(){throw he(U),new Error(T)}var We=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,Le=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,Ie=/.*\ssrc=('|")?([^>'"\s]+)/,Ce=/.*\stype=('|")?([^>'"\s]+)/,Te=/.*\sentry\s*.*/,Ue=/.*\sasync\s*.*/,Me=/.*\sdefer\s*.*/,Re=/.*\snomodule\s*.*/,De=/.*\stype=('|")?module('|")?\s*.*/,Ae=/<(link)\s+[\s\S]*?>/gi,ke=/\srel=('|")?(preload|prefetch|modulepreload)\1/,Ne=/.*\shref=('|")?([^>'"\s]+)/,Je=/.*\sas=('|")?font\1.*/,Fe=/<style[^>]*>[\s\S]*?<\/style>/gi,Be=/\s+rel=('|")?stylesheet\1.*/,He=/.*\shref=('|")?([^>'"\s]+)/,qe=/<!--([\s\S]*?)-->/g,Qe=/<link(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,$e=/<style(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,ze=/<script(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Ye=/.*\scrossorigin=?('|")?(use-credentials|anonymous)?('|")?/i;function Ge(e){return e.startsWith("//")||e.startsWith("http://")||e.startsWith("https://")}function Xe(e,t){return new URL(e,t).toString()}function Ve(e){var t=["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"];return!e||-1!==t.indexOf(e)}function Ke(e){var t=/<[-\w]+\s+([^>]*)>/i,n=t.exec(e);if(!n)return{};var r,o=n[1],i=/([^\s=]+)\s*=\s*(['"])(.*?)\2/g,c={};while(null!==(r=i.exec(o))){var u=r[1],a=r[3];c[u]=a}return c}function Ze(){var e=window.document.createElement("script");return"noModule"in e}var et=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"\x3c!-- ".concat(t?"prefetch/preload/modulepreload":""," link ").concat(e," replaced by wujie --\x3e")},tt=function(e){return"\x3c!-- inline-style-".concat(e," replaced by wujie --\x3e")},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"\x3c!-- ".concat(t," script ").concat(e," replaced by wujie --\x3e")},rt="\x3c!-- inline scripts replaced by wujie --\x3e",ot=function(e){return"\x3c!-- ignore asset ".concat(e||"file"," replaced by wujie --\x3e")},it=function(e,t){return"\x3c!-- ".concat(t?"nomodule":"module"," script ").concat(e," ignored by wujie --\x3e")};function ct(e,t,n){var r=[],o=[],i=null,c=Ze(),u=e.replace(qe,"").replace(Ae,(function(e){var n=!!e.match(Be);if(n){var r=e.match(He),i=e.match(Qe);if(r){var c=r&&r[2],u=c;return c&&!Ge(c)&&(u=Xe(c,t)),i?ot(u):(o.push({src:u}),et(u))}}var a=e.match(ke)&&e.match(Ne)&&!e.match(Je);if(a){var s=e.match(Ne),l=m(s,3),f=l[2];return et(f,!0)}return e})).replace(Fe,(function(e){if($e.test(e))return ot("style file");var t=ye(e);return o.push({src:"",content:t}),tt(o.length-1)})).replace(We,(function(e,n){var o=n.match(ze),u=!!n.match(De),a=n.match(Ye),s=(null===a||void 0===a?void 0:a[2])||"",l=c&&!!n.match(Re)||!c&&u,f=n.match(Ce),d=f&&f[2];if(!Ve(d))return e;if(Le.test(e)&&n.match(Ie)){var p=n.match(Te),h=n.match(Ie),v=h&&h[2];if(i&&p)throw new SyntaxError("You should not set multiply entry script!");if(v&&!Ge(v)&&(v=Xe(v,t)),i=i||p&&v,o)return ot(v||"js file");if(l)return it(v||"js file",c);if(v){var y=!!n.match(Ue),m=!!n.match(Me);return r.push(y||m?{async:y,defer:m,src:v,module:u,crossorigin:!!a,crossoriginType:s,attrs:Ke(e)}:{src:v,module:u,crossorigin:!!a,crossoriginType:s,attrs:Ke(e)}),nt(v,(y?"async":m&&"defer")||"")}return e}if(o)return ot("js file");if(l)return it("js file",c);var g=ye(e),w=g.split(/[\r\n]+/).every((function(e){return!e.trim()||e.trim().startsWith("//")}));return!w&&g&&r.push({src:"",content:g,module:u,crossorigin:!!a,crossoriginType:s,attrs:Ke(e)}),rt})),a={template:u,scripts:r,styles:o,entry:i||r[r.length-1]};return"function"===typeof n&&(a=n(a)),a}function ut(e){if(Array.isArray(e))return h(e)}function at(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function st(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lt(e){return ut(e)||at(e)||v(e)||st()}function ft(e){var t=e.plugins,n=e.replace;return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;return ge(t.map((function(e){return e.cssLoader})))(n?n(e):e,r,o)}}function dt(e){var t=e.plugins,n=e.replace;return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;return ge(t.map((function(e){return e.jsLoader})))(n?n(e):e,r,o)}}function pt(e,t){var n=t.map((function(t){return t[e]})).filter((function(e){return null===e||void 0===e?void 0:e.length})),r=n.reduce((function(e,t){return e.concat(t)}),[]);return"cssBeforeLoaders"===e?r.reverse():r}function ht(e,t){return t.map((function(t){return t[e]})).filter((function(e){return null===e||void 0===e?void 0:e.length})).reduce((function(e,t){return e.concat(t)}),[])}function vt(e,t){return t.some((function(t){return"string"===typeof t?e===t:t.test(e)}))}function yt(e,t,n){var r=t?le(t,n):n,o=/(url\((?!['"]?(?:data):)['"]?)([^'")]*)(['"]?\))/g;return e.replace(o,(function(e,t,n,o){var i=le(n,r);return t+i+o}))}var mt={cssLoader:yt,cssBeforeLoaders:[{content:"html {view-transition-name: none;}"}]};function gt(e){return Array.isArray(e)?[mt].concat(lt(e)):[mt]}function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Et={},_t={},xt={};if(!window.fetch)throw ve(R),new Error;var Ot=window.fetch.bind(window);function jt(e){return e}function St(e,t,n){return Pt.apply(this,arguments)}function Pt(){return Pt=s(f().mark((function e(t,n,r){var o,i,c,u;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=se(t.proxyLocation),i=ge(t.plugins.map((function(e){return e.cssLoader}))),c=r().map((function(e){var t=e.src,n=e.ignore,r=e.contentPromise;return{src:t,ignore:n,contentPromise:r.then((function(e){return i(e,t,o)}))}})),e.next=5,Wt(n,c);case 5:return u=e.sent,e.abrupt("return",t.replace?t.replace(u):u);case 7:case"end":return e.stop()}}),e)}))),Pt.apply(this,arguments)}function Wt(e,t){return Lt.apply(this,arguments)}function Lt(){return Lt=s(f().mark((function e(t,n){var r;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t,e.abrupt("return",Promise.all(n.map((function(e,t){return e.contentPromise.then((function(n){e.src?r=r.replace(et(e.src),e.ignore?'<link href="'.concat(e.src,'" rel="stylesheet" type="text/css">'):"<style>/* ".concat(e.src," */").concat(n,"</style>")):n&&(r=r.replace(tt(t),"<style>/* inline-style-".concat(t," */").concat(n,"</style>")))}))}))).then((function(){return r})));case 2:case"end":return e.stop()}}),e)}))),Lt.apply(this,arguments)}var It=function(e){return e.startsWith("<")},Ct=function(e,t,n,r,o){return t[e]||(t[e]=n(e).then((function(n){if(n.status>=400){if(t[e]=null,r)return ve(k,{src:e,response:n}),null===o||void 0===o||o(e,new Error(k)),"";throw ve(A,{src:e,response:n}),null===o||void 0===o||o(e,new Error(A)),new Error(A)}return n.text()}))["catch"]((function(n){return t[e]=null,r?(ve(k,e),null===o||void 0===o||o(e,n),""):(ve(A,e),null===o||void 0===o||o(e,n),"")})))};function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2?arguments[2]:void 0;return e.map((function(e){var r=e.src,o=e.content,i=e.ignore;return o?{src:"",contentPromise:Promise.resolve(o)}:It(r)?{src:"",contentPromise:Promise.resolve(ye(r))}:{src:r,ignore:i,contentPromise:i?Promise.resolve(""):Ct(r,Et,t,!0,n)}}))}function Ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return e.map((function(e){var o=e.src,i=e.async,c=e.defer,u=e.module,a=e.ignore,s=null;return s=(i||c)&&o&&!u?new Promise((function(e,i){return r?de((function(){return Ct(o,_t,t,!1,n).then(e,i)})):Ct(o,_t,t,!1,n).then(e,i)})):u&&o||a?Promise.resolve(""):o?Ct(o,_t,t,!1,n):Promise.resolve(e.content),u&&!i&&(e.defer=!0),bt(bt({},e),{},{contentPromise:s})}))}function Mt(e){var t,n,r=e.url,o=e.opts,i=e.html,c=null!==(t=o.fetch)&&void 0!==t?t:Ot,u=null===(n=o.fiber)||void 0===n||n,a=o.plugins,s=o.loadError,l=a?ge(a.map((function(e){return e.htmlLoader}))):jt,f=ht("jsExcludes",a),d=ht("cssExcludes",a),p=ht("jsIgnores",a),h=ht("cssIgnores",a),v=me,y=function(e,t,n){return(t?Promise.resolve(t):c(e).then((function(t){return t.status>=400?(ve(N,{url:e,response:t}),null===s||void 0===s||s(e,new Error(N)),""):t.text()}))["catch"]((function(t){return xt[e]=null,null===s||void 0===s||s(e,t),Promise.reject(t)}))).then((function(t){var r=v(e),o=ct(n(t),r),i=o.template,a=o.scripts,l=o.styles;return{template:i,assetPublicPath:r,getExternalScripts:function(){return Ut(a.filter((function(e){return!e.src||!vt(e.src,f)})).map((function(e){return bt(bt({},e),{},{ignore:e.src&&vt(e.src,p)})})),c,s,u)},getExternalStyleSheets:function(){return Tt(l.filter((function(e){return!e.src||!vt(e.src,d)})).map((function(e){return bt(bt({},e),{},{ignore:e.src&&vt(e.src,h)})})),c,s)}}}))};return null!==o&&void 0!==o&&o.plugins.some((function(e){return e.htmlLoader}))?y(r,i,l):xt[r]||(xt[r]=y(r,i,l))}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function At(e,t,n){return t&&Dt(e.prototype,t),n&&Dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}r(3375),r(9225),r(3972),r(9209),r(5714),r(7561),r(6197);function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}function Nt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}function Jt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jt(e)}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Ht(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function qt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qt=function(){return!!e})()}function Qt(e,t,n){if(qt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&kt(o,n.prototype),o}function $t(e){var t="function"==typeof Map?new Map:void 0;return $t=function(e){if(null===e||!Ht(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qt(e,arguments,Bt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),kt(n,e)},$t(e)}function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.idToSandboxMap:new Map;function Xt(e){var t;return(null===(t=Gt.get(e))||void 0===t?void 0:t.wujie)||null}function Vt(e){var t;return(null===(t=Gt.get(e))||void 0===t?void 0:t.options)||null}function Kt(e,t){var n=Gt.get(e);n?Gt.set(e,Yt(Yt({},n),{},{wujie:t})):Gt.set(e,{wujie:t})}function Zt(e){var t=Gt.get(e);null!==t&&void 0!==t&&t.options&&Gt.set(e,{options:t.options}),Gt["delete"](e)}function en(e,t){var n=Gt.get(e);n?Gt.set(e,Yt(Yt({},n),{},{options:t})):Gt.set(e,{options:t})}var tn={modifyLocalProperties:["createElement","createTextNode","documentURI","URL","getElementsByTagName"],modifyProperties:["createElement","createTextNode","documentURI","URL","getElementsByTagName","getElementsByClassName","getElementsByName","getElementById","querySelector","querySelectorAll","documentElement","scrollingElement","forms","images","links"],shadowProperties:["activeElement","childElementCount","children","firstElementChild","firstChild","fullscreenElement","lastElementChild","pictureInPictureElement","pointerLockElement","styleSheets"],shadowMethods:["append","contains","getSelection","elementFromPoint","elementsFromPoint","getAnimations","replaceChildren"],documentProperties:["characterSet","compatMode","contentType","designMode","dir","doctype","embeds","fullscreenEnabled","hidden","implementation","lastModified","pictureInPictureEnabled","plugins","readyState","referrer","visibilityState","fonts"],documentMethods:["execCommand","caretPositionFromPoint","createRange","exitFullscreen","exitPictureInPicture","getElementsByTagNameNS","hasFocus","prepend"],documentEvents:["onpointerlockchange","onpointerlockerror","onbeforecopy","onbeforecut","onbeforepaste","onfreeze","onresume","onsearch","onfullscreenchange","onfullscreenerror","onsecuritypolicyviolation","onvisibilitychange"],ownerProperties:["head","body"]},nn=["DOMContentLoaded","readystatechange"],rn=["onreadystatechange"],on=["fullscreenchange","fullscreenerror","selectionchange","visibilitychange","wheel","keydown","keypress","keyup"],cn=["gotpointercapture","lostpointercapture"],un=["hashchange","popstate","DOMContentLoaded","load","beforeunload","unload","message","error","unhandledrejection"],an=["onload","onbeforeunload","onunload"],sn={IMG:"src",A:"href",SOURCE:"src"},ln=["getComputedStyle","visualViewport","matchMedia","DOMParser"],fn=[/animationFrame$/i,/resizeObserver$|mutationObserver$|intersectionObserver$/i,/height$|width$|left$/i,/^screen/i,/X$|Y$/],dn=HTMLElement.prototype.appendChild,pn=HTMLElement.prototype.removeChild,hn=HTMLElement.prototype.contains,vn=HTMLHeadElement.prototype.insertBefore,yn=HTMLBodyElement.prototype.insertBefore,mn=Node.prototype.addEventListener,gn=Node.prototype.removeEventListener,wn=window.addEventListener,bn=window.removeEventListener,En=Node.prototype.appendChild,_n=window.__POWERED_BY_WUJIE__?window.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__:Document.prototype.querySelector;function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jn(e,t){return Object.defineProperties(e,{srcElement:{get:t},target:{get:t}}),e}function Sn(e,t){var n=new CustomEvent(t),r=jn(n,(function(){return e}));H(e["on".concat(t)])?e["on".concat(t)](r):e.dispatchEvent(r)}function Pn(e,t){if(e.innerHTML&&!t.degrade){var n=function(){var n=or([e.sheet]),r=m(n,2),o=r[0],i=r[1];o&&t.shadowRoot.head.appendChild(o),i&&t.shadowRoot.host.appendChild(i),e._patcher=void 0};e._patcher&&clearTimeout(e._patcher),e._patcher=setTimeout(n,50)}}function Wn(e,t,n,r){var o;if(!e._hasPatchStyle){var i=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),c=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText"),u=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"),a=null===(o=e.sheet)||void 0===o?void 0:o.insertRule;s(),i&&Object.defineProperties(e,{innerHTML:{get:function(){return i.get.call(e)},set:function(o){var c=this;i.set.call(e,t(o,"",r)),we((function(){return Pn(c,n)}))}}}),Object.defineProperties(e,{innerText:{get:function(){return c.get.call(e)},set:function(o){var i=this;c.set.call(e,t(o,"",r)),we((function(){return Pn(i,n)}))}},textContent:{get:function(){return u.get.call(e)},set:function(o){var i=this;u.set.call(e,t(o,"",r)),we((function(){return Pn(i,n)}))}},appendChild:{value:function(o){var i=this;if(we((function(){return Pn(i,n)})),o.nodeType===Node.TEXT_NODE){var c=En.call(e,e.ownerDocument.createTextNode(t(o.textContent,"",r)));return s(),c}return En(o)}},_hasPatchStyle:{get:function(){return!0}}})}function s(){a&&(e.sheet.insertRule=function(t,n){return i?e.innerHTML+=t:e.innerText+=t,a.call(e.sheet,t,n)})}}var Ln=Promise.resolve();function In(e){return function(t,n){var r=this,o=t,i=e.rawDOMAppendOrInsertBefore,c=e.wujieId,u=Xt(c),a=u.styleSheetElements,s=u.replace,l=u.fetch,f=u.plugins,d=u.iframe,p=u.lifecycles,h=u.proxyLocation,v=u.fiber;if(!q(o.tagName)||!c){var y=i.call(this,o,n);return Pr(o,d.contentWindow),be(f,"appendOrInsertElementHook",o,d.contentWindow),y}var m,g=d.contentDocument,w=se(h);if(o.tagName)switch(null===(m=o.tagName)||void 0===m?void 0:m.toUpperCase()){case"LINK":var E=o,_=E.href,x=E.rel,O=E.type,j="stylesheet"===x||"text/css"===O||_.endsWith(".css");if(!j){var S=i.call(this,o,n);return be(f,"appendOrInsertElementHook",o,d.contentWindow),S}_&&!vt(_,ht("cssExcludes",f))&&Tt([{src:_,ignore:vt(_,ht("cssIgnores",f))}],l,p.loadError).forEach((function(e){var t=e.src,c=e.ignore,l=e.contentPromise;return l.then((function(e){var l=Ke(o.outerHTML);if(c&&t)i.call(r,o,n);else{var d=g.createElement("style"),p=ft({plugins:f,replace:s});d.innerHTML=p(e,t,w),a.push(d),re(d,l),i.call(r,d,n),Pn(d,u),Sn(o,"load")}o=null}),(function(){Sn(o,"error"),o=null}))}));var P=g.createComment("dynamic link ".concat(_," replaced by wujie"));return i.call(this,P,n);case"STYLE":var W=t;a.push(W);var L=W.innerHTML,I=ft({plugins:f,replace:s});L&&(W.innerHTML=I(L,"",w));var C=i.call(this,o,n);return Wn(W,I,u,w),Pn(W,u),be(f,"appendOrInsertElementHook",o,d.contentWindow),C;case"SCRIPT":xe(o);var T=o,U=T.src,M=T.text,R=T.type,D=T.crossOrigin;if(U&&!vt(U,ht("jsExcludes",f))){var A=function(e){if(null===u.iframe)return he(J);var t=function(){Sn(o,"load"),o=null};Lr(On(On({},e),{},{onload:t}),u.iframe.contentWindow,o)},k={src:U,module:"module"===R,crossorigin:null!==D,crossoriginType:D||"",ignore:vt(U,ht("jsIgnores",f)),attrs:Ke(o.outerHTML)};Ut([k],l,p.loadError,v).forEach((function(e){Ln=Ln.then((function(){return e.contentPromise.then((function(t){var n;if(null===u.execQueue)return he(J);var r=null===(n=u.execQueue)||void 0===n?void 0:n.length;u.execQueue.push((function(){return v?u.requestIdleCallback((function(){A(On(On({},e),{},{content:t}))})):A(On(On({},e),{},{content:t}))})),r||u.execQueue.shift()()}),(function(){Sn(o,"error"),o=null}))}))}))}else{var N,F=null===(N=u.execQueue)||void 0===N?void 0:N.length;u.execQueue.push((function(){return v?u.requestIdleCallback((function(){Lr({src:null,content:M,attrs:Ke(o.outerHTML)},u.iframe.contentWindow,o)})):Lr({src:null,content:M,attrs:Ke(o.outerHTML)},u.iframe.contentWindow,o)})),F||u.execQueue.shift()()}var B=g.createComment("dynamic script ".concat(U," replaced by wujie"));return i.call(this,B,n);case"IFRAME":if(""===o.getAttribute(b))return En.call(_n.call(this.ownerDocument,"html"),o);var H=i.call(this,o,n);return be(f,"appendOrInsertElementHook",o,d.contentWindow),H;default:}}}function Cn(e,t){var n=Oe(e),r=Xt(t),o=r.iframe,i=o.contentWindow.__WUJIE_RAW_DOCUMENT_HEAD__.querySelector("script[".concat(w,"='").concat(n,"']"));return null===i&&he(F,"<script ".concat(w,"='").concat(n,"'/>")),{targetScript:i,iframe:o}}function Tn(e){return function(t){var n=t,r=e.rawElementContains,o=e.wujieId;if(n&&Ee(n)){var i=Cn(n,o),c=i.targetScript;return null!==c}return r(n)}}function Un(e){return function(t){var n=t,r=e.rawElementRemoveChild,o=e.wujieId;if(n&&Ee(n)){var i=Cn(n,o),c=i.targetScript,u=i.iframe;return null!==c?u.contentWindow.__WUJIE_RAW_DOCUMENT_HEAD__.removeChild(c):null}return r(n)}}function Mn(e){var t=new Map;e._cacheListeners=t,e.addEventListener=function(n,r,o){var i=t.get(n)||[];return t.set(n,[].concat(lt(i),[r])),mn.call(e,n,r,o)},e.removeEventListener=function(n,r,o){var i=t.get(n),c=null===i||void 0===i?void 0:i.indexOf(r);return null!==i&&void 0!==i&&i.length&&-1!==c&&i.splice(c,1),gn.call(e,n,r,o)}}function Rn(e){var t=e._cacheListeners;lt(t.entries()).forEach((function(t){var n=m(t,2),r=n[0],o=n[1];o.forEach((function(t){return gn.call(e,r,t)}))}))}function Dn(e,t,n){n||(Mn(e.head),Mn(e.body)),e.head.appendChild=In({rawDOMAppendOrInsertBefore:En,wujieId:t}),e.head.insertBefore=In({rawDOMAppendOrInsertBefore:vn,wujieId:t}),e.head.removeChild=Un({rawElementRemoveChild:pn.bind(e.head),wujieId:t}),e.head.contains=Tn({rawElementContains:hn.bind(e.head),wujieId:t}),e.contains=Tn({rawElementContains:hn.bind(e),wujieId:t}),e.body.appendChild=In({rawDOMAppendOrInsertBefore:En,wujieId:t}),e.body.insertBefore=In({rawDOMAppendOrInsertBefore:yn,wujieId:t})}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nn(e){var t=Jn();return function(){var n,r=Bt(e);if(t){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Jn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Fn={":root":":host"};function Bn(){var e=window.customElements;if(e&&(null===e||void 0===e||!e.get("wujie-app"))){var t=function(e){Nt(n,e);var t=Nn(n);function n(){return Rt(this,n),t.apply(this,arguments)}return At(n,[{key:"connectedCallback",value:function(){if(!this.shadowRoot){var e=this.attachShadow({mode:"open"}),t=Xt(this.getAttribute(g));Pr(e,t.iframe.contentWindow),t.shadowRoot=e}}},{key:"disconnectedCallback",value:function(){var e=Xt(this.getAttribute(g));null===e||void 0===e||e.unmount()}}]),n}($t(HTMLElement));null===e||void 0===e||e.define("wujie-app",t)}}function Hn(e){var t=window.document.createElement("wujie-app");return t.setAttribute(g,e),t.classList.add(j),t}function qn(e,t){var n=pe(t);return n&&!n.contains(e)&&(n.querySelector("div[".concat(x,"]"))||tr(n),e&&dn.call(n,e)),n}function Qn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Kn(e,n),o=qn(r,t),i=r.contentWindow.document;return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),{iframe:r,container:o}}function $n(e,t){return zn.apply(this,arguments)}function zn(){return zn=s(f().mark((function e(t,n){var r,o,i,c,u,a,s,l;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.iframe.contentDocument,o=t.plugins,i=t.replace,c=t.proxyLocation,u=ft({plugins:o,replace:i}),a=pt("cssBeforeLoaders",o),s=pt("cssAfterLoaders",o),l=se(c),e.next=8,Promise.all([Promise.all(Tt(a,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src,n=e.contentPromise;return n.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var i=r.createElement("style");i.setAttribute("type","text/css"),i.appendChild(r.createTextNode(o?u(o,t,l):o));var c=n.querySelector("head"),a=n.querySelector("body");n.insertBefore(i,c||a||n.firstChild)}}))})),Promise.all(Tt(s,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src,n=e.contentPromise;return n.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var i=r.createElement("style");i.setAttribute("type","text/css"),i.appendChild(r.createTextNode(o?u(o,t,l):o)),n.appendChild(i)}}))}))]).then((function(){return n}),(function(){return n}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),zn.apply(this,arguments)}function Yn(e,t,n){var r=e.querySelector("head"),o=e.querySelector("body");if(r){while(r.firstChild)En.call(t,r.firstChild.cloneNode(!0)),r.removeChild(r.firstChild);r.parentNode.replaceChild(t,r)}if(o){while(o.firstChild)En.call(n,o.firstChild.cloneNode(!0)),o.removeChild(o.firstChild);o.parentNode.replaceChild(n,o)}return e}function Gn(e,t){var n=e.__WUJIE,r=n.head,o=n.body,i=n.alive,c=n.execFlag,u=e.document,a=u.createElement("html");a.innerHTML=t,!i&&c?a=Yn(a,r,o):(n.head=a.querySelector("head"),n.body=a.querySelector("body"));var s=u.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,null,!1),l=s.currentNode;while(l){Pr(l,e);var f=sn[l.tagName],d=l[f];f&&l.setAttribute(f,le(d,l.baseURI||"")),l=s.nextNode()}if(!a.querySelector("head")){var p=u.createElement("head");a.appendChild(p)}if(!a.querySelector("body")){var h=u.createElement("body");a.appendChild(h)}return a}function Xn(e,t,n){return Vn.apply(this,arguments)}function Vn(){return Vn=s(f().mark((function e(t,n,r){var o,i,c;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=Gn(n,r),e.next=3,$n(n.__WUJIE,o);case 3:i=e.sent,t.appendChild(i),c=document.createElement("div"),c.setAttribute("style",P),i.insertBefore(c,i.firstChild),t.head=t.querySelector("head"),t.body=t.querySelector("body"),Object.defineProperty(t.firstChild,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),Dn(t,n.__WUJIE.id,!1);case 12:case"end":return e.stop()}}),e)}))),Vn.apply(this,arguments)}function Kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("iframe"),r="height:100%;width:100%";return re(n,kn(kn({},t),{},u({style:[r,t.style].join(";")},g,e))),n}function Zn(e,t,n){return er.apply(this,arguments)}function er(){return er=s(f().mark((function e(t,n,r){var o,i;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=Gn(n,r),e.next=3,$n(n.__WUJIE,o);case 3:i=e.sent,t.replaceChild(i,t.documentElement),Object.defineProperty(t.documentElement,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),Dn(t,n.__WUJIE.id,!0);case 7:case"end":return e.stop()}}),e)}))),er.apply(this,arguments)}function tr(e){while(null!==e&&void 0!==e&&e.firstChild)pn.call(e,e.firstChild)}function nr(e,t){var n=pe(e);tr(n);var r=null;try{r=window.getComputedStyle(n)}catch(i){return}"static"===r.position?(n.setAttribute(E,r.position),n.setAttribute(_,"visible"===r.overflow?"":r.overflow),n.style.setProperty("position","relative"),n.style.setProperty("overflow","hidden")):["relative","sticky"].includes(r.position)&&(n.setAttribute(_,"visible"===r.overflow?"":r.overflow),n.style.setProperty("overflow","hidden"));var o=document.createElement("div");o.setAttribute(x,""),o.setAttribute("style",W),t?o.appendChild(t):o.innerHTML=L,n.appendChild(o)}function rr(e){var t=e.getAttribute(E),n=e.getAttribute(_);t&&e.style.removeProperty("position"),null!==n&&(n?e.style.setProperty("overflow",n):e.style.removeProperty("overflow")),e.removeAttribute(E),e.removeAttribute(_);var r=e.querySelector("div[".concat(x,"]"));r&&e.removeChild(r)}function or(e){for(var t=[],n=[],r=/:root/g,o=0;o<e.length;o++)for(var i,c,u=null!==(i=null===(c=e[o])||void 0===c?void 0:c.cssRules)&&void 0!==i?i:[],a=0;a<u.length;a++){var s=u[a].cssText;r.test(s)&&t.push(s.replace(r,(function(e){return Fn[e]}))),u[a].type===CSSRule.FONT_FACE_RULE&&n.push(s)}var l=null,f=null;return t.length&&(l=window.document.createElement("style"),l.innerHTML=t.join("")),n.length&&(f=window.document.createElement("style"),f.innerHTML=n.join("")),[l,f]}function ir(e){var t=e.__WUJIE,n=t.sync,r=t.id,o=t.prefix,i=ie(window.location.href),c=ce(i);if(!n&&!c[r])return null;var u=e.location.pathname+e.location.search+e.location.hash,a="";o&&Object.keys(o).forEach((function(e){var t=o[e];u.startsWith(t)&&(!a||t.length>o[a].length)&&(a=e)})),n?c[r]=window.encodeURIComponent(a?u.replace(o[a],"{".concat(a,"}")):u):delete c[r];var s="?"+Object.keys(c).map((function(e){return e+"="+c[e]})).join("&");i.search=s,i.href!==window.location.href&&window.history.replaceState(null,"",i.href),i=null}function cr(e){var t=e.location,n=t.pathname,r=t.search,o=t.hash,i=e.__WUJIE,c=i.id,u=i.url,a=i.sync,s=i.execFlag,l=i.prefix,f=i.inject,d=a&&!s?fe(c,l):u,p=(/^http/.test(d)?null:d)||u,h=oe(p),v=h.appRoutePath,y=n+r+o;y!==v&&e.history.replaceState(null,"",f.mainHostPath+v)}function ur(){var e=ie(window.location.href),t=ce(e);Object.keys(t).forEach((function(e){var n=Xt(e);n&&n.execFlag&&n.sync&&!n.hrefFlag&&!n.activeFlag&&delete t[e]}));var n="?"+Object.keys(t).map((function(e){return e+"="+t[e]})).join("&");e.search=n,e.href!==window.location.href&&window.history.replaceState(null,"",e.href),e=null}function ar(e,t){var n=ie(window.location.href),r=ce(n);r[e]=window.encodeURIComponent(t);var o="?"+Object.keys(r).map((function(e){return e+"="+r[e]})).join("&");n.search=o,window.history.pushState(null,"",n.href),n=null}function sr(){window.addEventListener("popstate",(function(){var e=ie(window.location.href),t=ce(e);e=null,Object.keys(t).map((function(e){return Xt(e)})).filter((function(e){return e})).forEach((function(e){var n=t[e.id],r=_n.call(e.iframe.contentDocument,"body");if(/http/.test(n))e.degrade?(qn(e.document.documentElement,r),Ir(window.decodeURIComponent(n),ne(e.id).parentElement,e.degradeAttrs)):Ir(window.decodeURIComponent(n),e.shadowRoot.host.parentElement,e.degradeAttrs),e.hrefFlag=!0;else if(e.hrefFlag){if(e.degrade){var o=Qn(e.id,e.el,e.degradeAttrs),i=o.iframe;br(i.contentWindow,e.iframe.contentWindow),i.contentWindow.onunload=function(){e.unmount()},i.contentDocument.appendChild(r.firstElementChild),e.document=i.contentDocument}else qn(e.shadowRoot.host,e.el);e.hrefFlag=!1}}))}))}function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(e){e.__WUJIE_EVENTLISTENER__=e.__WUJIE_EVENTLISTENER__||new Set,e.addEventListener=function(t,r,o){if(be(e.__WUJIE.plugins,"windowAddEventListenerHook",e,t,r,o),e.__WUJIE_EVENTLISTENER__.add({type:t,listener:r,options:o}),un.includes(t)||"object"===n(o)&&o.targetWindow){var i="object"===n(o)&&o.targetWindow?null===o||void 0===o?void 0:o.targetWindow:e;return wn.call(i,t,r,o)}wn.call(window.__WUJIE_RAW_WINDOW__||window,t,r,o)},e.removeEventListener=function(t,r,o){if(be(e.__WUJIE.plugins,"windowRemoveEventListenerHook",e,t,r,o),e.__WUJIE_EVENTLISTENER__.forEach((function(n){n.listener===r&&n.type===t&&o==n.options&&e.__WUJIE_EVENTLISTENER__["delete"](n)})),un.includes(t)||"object"===n(o)&&o.targetWindow){var i="object"===n(o)&&o.targetWindow?null===o||void 0===o?void 0:o.targetWindow:e;return bn.call(i,t,r,o)}bn.call(window.__WUJIE_RAW_WINDOW__||window,t,r,o)}}function pr(e,t,n){e.__WUJIE=t,e.__WUJIE_PUBLIC_PATH__=n+"/",e.$wujie=t.provide,e.__WUJIE_RAW_WINDOW__=e}function hr(e,t,n){var r=e.history,o=r.pushState,i=r.replaceState;r.pushState=function(i,c,u){var a=n+e.location.pathname+e.location.search+e.location.hash,s=le(null===u||void 0===u?void 0:u.replace(t,""),a),l=void 0===u;o.call(r,i,c,l?void 0:s),l||(vr(e,t,n),ir(e))},r.replaceState=function(o,c,u){var a=n+e.location.pathname+e.location.search+e.location.hash,s=le(null===u||void 0===u?void 0:u.replace(t,""),a),l=void 0===u;i.call(r,o,c,l?void 0:s),l||(vr(e,t,n),ir(e))}}function vr(e,t,n){var r,o=new URL(null===(r=e.location.href)||void 0===r?void 0:r.replace(n,""),t),i=_n.call(e.document,"base");i&&i.setAttribute("href",t+o.pathname)}function yr(e){function t(t){var n=e[t];try{return"function"!==typeof n||K(n)?e[t]=window[t]:e[t]=window[t].bind(window),!0}catch(r){return he(r.message),!1}}Object.getOwnPropertyNames(e).forEach((function(n){"getSelection"!==n?ln.includes(n)?t(n):fn.some((function(r){return!(!r.test(n)||!(n in e.parent))&&t(n)})):Object.defineProperty(e,n,{get:function(){return e.document[n]}})}));var n=Object.getOwnPropertyNames(window).filter((function(e){return/^on/.test(e)})).filter((function(e){return!an.includes(e)}));n.forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,writable:!0};try{Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return window[t]},set:n.writable||n.set?function(n){window[t]="function"===typeof n?n.bind(e):n}:void 0})}catch(t){he(t.message)}})),be(e.__WUJIE.plugins,"windowPropertyOverride",e)}function mr(e){var t=e.__WUJIE;e.Node.prototype.addEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);return o?o.find((function(t){return t.type===e&&t.handler===n}))||o.push({type:e,handler:n,options:r}):t.elementEventCacheMap.set(this,[{type:e,handler:n,options:r}]),mn.call(this,e,n,r)},e.Node.prototype.removeEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);if(o){var i=null===o||void 0===o?void 0:o.findIndex((function(t){return t.type===e&&t.handler===n}));o.splice(i,1)}return null!==o&&void 0!==o&&o.length||t.elementEventCacheMap["delete"](this),gn.call(this,e,n,r)}}function gr(e,t){var n=t.__WUJIE,r=new WeakMap,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1),i=o.currentNode;while(i){var c=n.elementEventCacheMap.get(i);null!==c&&void 0!==c&&c.length&&(r.set(i,c),c.forEach((function(e){i.addEventListener(e.type,e.handler,e.options)}))),i=o.nextNode()}n.elementEventCacheMap=r}function wr(e,t,n){var r=n.__WUJIE,o=new WeakMap,i=r.elementEventCacheMap.get(e);null!==i&&void 0!==i&&i.length&&(o.set(t,i),i.forEach((function(e){t.addEventListener(e.type,e.handler,e.options)}))),r.elementEventCacheMap=o}function br(e,t){Object.defineProperty(e.Event.prototype,"timeStamp",{get:function(){return t.document.createEvent("Event").timeStamp}})}function Er(e){var t=e.__WUJIE,n=new WeakMap,r=new WeakMap;e.Document.prototype.addEventListener=function(o,i,c){if(i){var u=n.get(i),a=r.get(i);return u||(u="function"===typeof i?i.bind(this):i,n.set(i,u)),a?a.includes(o)||a.push(o):r.set(i,[o]),be(e.__WUJIE.plugins,"documentAddEventListenerHook",e,o,u,c),nn.includes(o)?mn.call(this,o,u,c):t.degrade?t.document.addEventListener(o,u,c):on.includes(o)?window.document.addEventListener(o,u,c):cn.includes(o)?(window.document.addEventListener(o,u,c),void t.shadowRoot.addEventListener(o,u,c)):void t.shadowRoot.addEventListener(o,u,c)}},e.Document.prototype.removeEventListener=function(o,i,c){var u=n.get(i),a=r.get(i);if(u){if(null!==a&&void 0!==a&&a.includes(o)&&(a.splice(a.indexOf(o),1),a.length||(n["delete"](i),r["delete"](i))),be(e.__WUJIE.plugins,"documentRemoveEventListenerHook",e,o,u,c),nn.includes(o))return gn.call(this,o,u,c);if(t.degrade)return t.document.removeEventListener(o,u,c);if(on.includes(o))return window.document.removeEventListener(o,u,c);if(cn.includes(o))return window.document.removeEventListener(o,u,c),void t.shadowRoot.removeEventListener(o,u,c);t.shadowRoot.removeEventListener(o,u,c)}};var o=Object.keys(e.HTMLElement.prototype).filter((function(e){return/^on/.test(e)})),i=Object.keys(e.Document.prototype).filter((function(e){return/^on/.test(e)})).filter((function(e){return!rn.includes(e)}));o.filter((function(e){return i.includes(e)})).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.degrade?t.document[n]:t.shadowRoot.firstElementChild[n]},set:r.writable||r.set?function(r){var o="function"===typeof r?r.bind(e.document):r;t.degrade?t.document[n]=o:t.shadowRoot.firstElementChild[n]=o}:void 0})}catch(n){he(n.message)}}));var c=tn.ownerProperties,u=tn.modifyProperties,a=tn.shadowProperties,s=tn.shadowMethods,l=tn.documentProperties,f=tn.documentMethods,d=tn.documentEvents;u.concat(a,s,l,f).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})}catch(o){he(o.message)}})),d.forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return(t.degrade?t:window).document[n]},set:r.writable||r.set?function(r){(t.degrade?t:window).document[n]="function"===typeof r?r.bind(e.document):r}:void 0})}catch(o){he(o.message)}})),c.forEach((function(n){Object.defineProperty(e.document,n,{enumerable:!0,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})})),be(e.__WUJIE.plugins,"documentPropertyOverride",e)}function _r(e){var t=e.Node.prototype.getRootNode,n=e.Node.prototype.appendChild,r=e.Node.prototype.insertBefore;e.Node.prototype.getRootNode=function(n){var r=t.call(this,n);return r===e.__WUJIE.shadowRoot?e.document:r},e.Node.prototype.appendChild=function(t){var r=n.call(this,t);return Pr(t,e),r},e.Node.prototype.insertBefore=function(t,n){var o=r.call(this,t,n);return Pr(t,e),o}}function xr(e){ae(e,e.HTMLImageElement,"src"),ae(e,e.HTMLAnchorElement,"href"),ae(e,e.HTMLSourceElement,"src"),ae(e,e.HTMLLinkElement,"href"),ae(e,e.HTMLScriptElement,"src"),ae(e,e.HTMLMediaElement,"src")}function Or(e,t){var n=e.document,r=n.createElement("base"),o=ie(e.location.href),i=ie(t);r.setAttribute("href",i.protocol+"//"+i.host+o.pathname),n.head.appendChild(r)}function jr(e,t,n,r){var o=e.document,i=window.document.implementation.createHTMLDocument(""),c=o.importNode(i.documentElement,!0);o.documentElement?o.replaceChild(c,o.documentElement):o.appendChild(c),e.__WUJIE_RAW_DOCUMENT_HEAD__=o.head,e.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__=e.Document.prototype.querySelector,e.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__=e.Document.prototype.querySelectorAll,e.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__=e.Document.prototype.createElement,e.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__=e.Document.prototype.createTextNode,Or(e,t.url),hr(e,r,n),dr(e),t.degrade&&mr(e),Wr(e),yr(e),Er(e),_r(e),xr(e)}function Sr(e){var t=e.document;return new Promise((function(n){function r(){setTimeout((function(){var o;try{o=e.document}catch(i){o=null}o&&o!=t?(e.stop?e.stop():e.document.execCommand("Stop"),n()):r()}),1)}r()}))}function Pr(e,t){var n=t.__WUJIE.proxyLocation;if(!e._hasPatch){try{Object.defineProperties(e,{baseURI:{configurable:!0,get:function(){return n.protocol+"//"+n.host+n.pathname},set:void 0},ownerDocument:{configurable:!0,get:function(){return t.document}},_hasPatch:{get:function(){return!0}}})}catch(ve){console.warn(ve)}be(t.__WUJIE.plugins,"patchElementHook",e,t)}}function Wr(e){e.addEventListener("hashchange",(function(){return ir(e)})),e.addEventListener("popstate",(function(){ir(e)}))}function Lr(e,t,n){var r=e,o=r.src,i=r.module,c=r.content,u=r.crossorigin,a=r.crossoriginType,s=r.async,l=r.attrs,f=r.callback,d=r.onload,p=t.document.createElement("script"),h=t.document.createElement("script"),v=t.__WUJIE,y=v.replace,m=v.plugins,g=v.proxyLocation,w=dt({plugins:m,replace:y}),b=w(c,o,se(g));if(l&&Object.keys(l).filter((function(t){return!Object.keys(e).includes(t)})).forEach((function(e){return p.setAttribute(e,String(l[e]))})),c){t.__WUJIE.degrade||i||(b="(function(window, self, global, location) {\n ".concat(b,"\n}).bind(window.__WUJIE.proxy)(\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxyLocation,\n);"));var E=Object.getOwnPropertyDescriptor(p,"src");if(null!==E&&void 0!==E&&E.configurable||!E)try{Object.defineProperty(p,"src",{get:function(){return o||""}})}catch(ve){console.warn(ve)}}else o&&p.setAttribute("src",o),u&&p.setAttribute("crossorigin",a);i&&p.setAttribute("type","module"),p.textContent=b||"",h.textContent="if(window.__WUJIE.execQueue && window.__WUJIE.execQueue.length){ window.__WUJIE.execQueue.shift()()}";var _=_n.call(t.document,"head"),x=function(){return!s&&_.appendChild(h)},O=function(){null===d||void 0===d||d(),x()};if(/^<!DOCTYPE html/i.test(b))return ve(A,e),x();n&&xe(p,Oe(n));var j=!c&&o;j&&(p.onload=O,p.onerror=O),_.appendChild(p),null===f||void 0===f||f(t),be(m,"appendOrInsertElementHook",p,t,n),!j&&O()}function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.document.createElement("iframe"),o="height:100%;width:100%";re(r,fr(fr({},n),{},{src:e,style:[o,n.style].join(";")})),qn(r,t)}function Cr(e,t,n,r,o){var i=window.document.createElement("iframe"),c=fr(fr({src:n,style:"display: none"},t),{},u({name:e.id},b,""));re(i,c),window.document.body.appendChild(i);var a=i.contentWindow;return pr(a,e,r),e.iframeReady=Sr(a).then((function(){a.__WUJIE||pr(a,e,r),jr(a,e,n,r),ue(a.__WUJIE.id)||a.history.replaceState(null,"",n+o)})),i}function Tr(e,t,n){var r=e.contentWindow.__WUJIE,o=r.shadowRoot,i=r.id,c=r.degrade,u=r.document,a=r.degradeAttrs,s=t;if(!/^http/.test(s)){var l=ie(s);s=n+l.pathname+l.search+l.hash,l=null}if(e.contentWindow.__WUJIE.hrefFlag=!0,c){var f=_n.call(e.contentDocument,"body");qn(u.documentElement,f),Ir(window.decodeURIComponent(s),ne(i).parentElement,a)}else Ir(s,o.host.parentElement,a);return ar(i,s),!0}function Ur(e,t,n,r){var o=new Proxy(e.contentWindow,{get:function(e,t){if("location"===t)return e.__WUJIE.proxyLocation;if("self"===t||"window"===t&&Object.getOwnPropertyDescriptor(window,"window").get)return e.__WUJIE.proxy;if("__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__"===t||"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"===t)return e[t];var n=Object.getOwnPropertyDescriptor(e,t);return!1===(null===n||void 0===n?void 0:n.configurable)&&!1===(null===n||void 0===n?void 0:n.writable)?e[t]:te(e,t)},set:function(e,t,n){return ee(n),e[t]=n,!0},has:function(e,t){return t in e}}),i=new Proxy({},{get:function(t,n){var r=window.document,o=e.contentWindow.__WUJIE,i=o.shadowRoot,c=o.proxyLocation;i||Pe();var u=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__,a=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__;if("createElement"===n||"createTextNode"===n)return new Proxy(r[n],{apply:function(t,r,o){var i="createElement"===n?u:a,c=i.apply(e.contentDocument,o);return Pr(c,e.contentWindow),c}});if("documentURI"===n||"URL"===n)return c.href;if("getElementsByTagName"===n||"getElementsByClassName"===n||"getElementsByName"===n)return new Proxy(i.querySelectorAll,{apply:function(t,r,o){var c,u=o[0];if(r!==e.contentDocument)return r[n].apply(r,o);if("getElementsByTagName"===n&&"script"===u)return e.contentDocument.scripts;"getElementsByClassName"===n&&(u="."+u),"getElementsByName"===n&&(u='[name="'.concat(u,'"]'));try{c=t.call(i,u)}catch(ve){c=[]}return c}});if("getElementById"===n)return new Proxy(i.querySelector,{apply:function(t,r,o){var c;if(r!==e.contentDocument)return null===(c=r[n])||void 0===c?void 0:c.apply(r,o);try{return t.call(i,'[id="'.concat(o[0],'"]'))||e.contentWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__.call(e.contentWindow.document,"#".concat(o[0]))}catch(ve){return he(B),null}}});if("querySelector"===n||"querySelectorAll"===n){var s={querySelector:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__",querySelectorAll:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"};return new Proxy(i[n],{apply:function(t,r,o){var c;return r!==e.contentDocument?null===(c=r[n])||void 0===c?void 0:c.apply(r,o):t.apply(i,o)||("base"===o[0]?null:e.contentWindow[s[n]].call(e.contentWindow.document,o[0]))}})}if("documentElement"===n||"scrollingElement"===n)return i.firstElementChild;if("forms"===n)return i.querySelectorAll("form");if("images"===n)return i.querySelectorAll("img");if("links"===n)return i.querySelectorAll("a");var l,f=tn.ownerProperties,d=tn.shadowProperties,p=tn.shadowMethods,h=tn.documentProperties,v=tn.documentMethods;return f.concat(d).includes(n.toString())?"activeElement"===n&&null===i.activeElement?i.body:i[n]:p.includes(n.toString())?null!==(l=te(i,n))&&void 0!==l?l:te(r,n):h.includes(n.toString())?r[n]:v.includes(n.toString())?te(r,n):void 0}}),c=new Proxy({},{get:function(o,i){var c=e.contentWindow.location;return"host"===i||"hostname"===i||"protocol"===i||"port"===i||"origin"===i?t[i]:"href"===i?c[i].replace(n,r):"reload"===i?(he(C),function(){return null}):"replace"===i?new Proxy(c[i],{apply:function(e,t,o){var i;return e.call(c,null===(i=o[0])||void 0===i?void 0:i.replace(r,n))}}):te(c,i)},set:function(t,n,o){return"href"===n?Tr(e,o,r):(e.contentWindow.location[n]=o,!0)},ownKeys:function(){return Object.keys(e.contentWindow.location).filter((function(e){return"reload"!==e}))},getOwnPropertyDescriptor:function(e,t){return{enumerable:!0,configurable:!0,value:this[t]}}});return{proxyWindow:o,proxyDocument:i,proxyLocation:c}}function Mr(e,t,n,r){var o={},i=e.contentWindow.__WUJIE;Object.defineProperties(o,{createElement:{get:function(){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__.apply(e.contentDocument,n);return Pr(o,e.contentWindow),o}}},createTextNode:{get:function(){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__.apply(e.contentDocument,n);return Pr(o,e.contentWindow),o}}},documentURI:{get:function(){return i.proxyLocation.href}},URL:{get:function(){return i.proxyLocation.href}},getElementsByTagName:{get:function(){return function(){var t=arguments.length<=0?void 0:arguments[0];return"script"===t?e.contentDocument.scripts:i.document.getElementsByTagName(t)}}}});var c=tn.modifyLocalProperties,u=tn.modifyProperties,a=tn.ownerProperties,s=tn.shadowProperties,l=tn.shadowMethods,f=tn.documentProperties,d=tn.documentMethods;u.filter((function(e){return!c.includes(e)})).concat(a,s,l,f,d).forEach((function(e){Object.defineProperty(o,e,{get:function(){var t,n=null===(t=i.document)||void 0===t?void 0:t[e];return Y(n)?n.bind(i.document):n}})}));var p={},h=e.contentWindow.location,v=Object.keys(h),y=["host","hostname","port","protocol","port"];return y.forEach((function(e){p[e]=t[e]})),Object.defineProperties(p,{href:{get:function(){return h.href.replace(n,r)},set:function(t){Tr(e,t,r)}},reload:{get:function(){return he(C),function(){return null}}}}),v.filter((function(e){return!y.concat(["href","reload"]).includes(e)})).forEach((function(e){Object.defineProperty(p,e,{get:function(){return Y(h[e])?h[e].bind(h):h[e]}})})),{proxyDocument:o,proxyLocation:p}}var Rr=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.appEventObjMap:new Map,Dr=function(){function e(t){Rt(this,e),this.id=t,this.$clear(),Rr.get(this.id)||Rr.set(this.id,{}),this.eventObj=Rr.get(this.id)}return At(e,[{key:"$on",value:function(e,t){var n=this.eventObj[e];return n?(n.includes(t)||n.push(t),this):(this.eventObj[e]=[t],this)}},{key:"$onAll",value:function(e){return this.$on(S,e)}},{key:"$once",value:function(e,t){var n=function(){this.$off(e,n),t.apply(void 0,arguments)}.bind(this);this.$on(e,n)}},{key:"$off",value:function(e,t){var n,r=this.eventObj[e];if(!e||!r||!r.length)return he("".concat(e," ").concat(M)),this;var o=r.length;while(o--)if(n=r[o],n===t){r.splice(o,1);break}return this}},{key:"$offAll",value:function(e){return this.$off(S,e)}},{key:"$emit",value:function(e){var t=[],n=[];if(Rr.forEach((function(r){r[e]&&(t=t.concat(r[e])),r[S]&&(n=n.concat(r[S]))})),!e||0===t.length&&0===n.length)he("".concat(e," ").concat(M));else try{for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];for(var c=0,u=t.length;c<u;c++){var a;(a=t)[c].apply(a,o)}for(var s=0,l=n.length;s<l;s++){var f;(f=n)[s].apply(f,[e].concat(o))}}catch(d){ve(d)}return this}},{key:"$clear",value:function(){var e,t=null!==(e=Rr.get(this.id))&&void 0!==e?e:{},n=Object.keys(t);return n.forEach((function(e){return delete t[e]})),this}}]),e}();function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nr=function(){function e(t){Rt(this,e),u(this,"elementEventCacheMap",new WeakMap),window.__POWERED_BY_WUJIE__?this.inject=window.__WUJIE.inject:this.inject={idToSandboxMap:Gt,appEventObjMap:Rr,mainHostPath:window.location.protocol+"//"+window.location.host};var n=t.name,r=t.url,o=t.attrs,i=t.fiber,c=t.degradeAttrs,a=t.degrade,s=t.lifecycles,l=t.plugins;this.id=n,this.fiber=i,this.degrade=a||!Q,this.bus=new Dr(this.id),this.url=r,this.degradeAttrs=c,this.provide={bus:this.bus},this.styleSheetElements=[],this.execQueue=[],this.lifecycles=s,this.plugins=gt(l);var f=oe(r),d=f.urlElement,p=f.appHostPath,h=f.appRoutePath,v=this.inject.mainHostPath;if(this.iframe=Cr(this,o,v,p,h),this.degrade){var y=Mr(this.iframe,d,v,p),m=y.proxyDocument,g=y.proxyLocation;this.proxyDocument=m,this.proxyLocation=g}else{var w=Ur(this.iframe,d,v,p),b=w.proxyWindow,E=w.proxyDocument,_=w.proxyLocation;this.proxy=b,this.proxyDocument=E,this.proxyLocation=_}this.provide.location=this.proxyLocation,Kt(this.id,this)}return At(e,[{key:"active",value:function(){var e=s(f().mark((function e(t){var n,r,o,i,c,u,a,s,l,d,p,h,v,y,m,g,w=this;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.sync,r=t.url,o=t.el,i=t.template,c=t.props,u=t.alive,a=t.prefix,s=t.fetch,l=t.replace,this.url=r,this.sync=n,this.alive=u,this.hrefFlag=!1,this.prefix=null!==a&&void 0!==a?a:this.prefix,this.replace=null!==l&&void 0!==l?l:this.replace,this.provide.props=null!==c&&void 0!==c?c:this.provide.props,this.activeFlag=!0,e.next=11,this.iframeReady;case 11:if(d=this.iframe.contentWindow,p=s?function(e,t){return s("string"===typeof e?le(e,w.proxyLocation.href):e,t)}:this.fetch,p&&(d.fetch=p,this.fetch=p),this.execFlag&&this.alive||cr(d),ir(d),this.template=null!==i&&void 0!==i?i:this.template,!this.degrade){e.next=38;break}if(h=_n.call(d.document,"body"),v=Qn(this.id,null!==o&&void 0!==o?o:h,this.degradeAttrs),y=v.iframe,m=v.container,this.el=m,o&&tr(h),br(y.contentWindow,d),y.contentWindow.onunload=function(){w.unmount()},!this.document){e.next=34;break}if(!this.alive){e.next=29;break}y.contentDocument.replaceChild(this.document.documentElement,y.contentDocument.documentElement),gr(y.contentDocument.documentElement,d),e.next=32;break;case 29:return e.next=31,Zn(y.contentDocument,this.iframe.contentWindow,this.template);case 31:wr(this.document.documentElement,y.contentDocument.documentElement,d);case 32:e.next=36;break;case 34:return e.next=36,Zn(y.contentDocument,this.iframe.contentWindow,this.template);case 36:return this.document=y.contentDocument,e.abrupt("return");case 38:if(!this.shadowRoot){e.next=44;break}if(this.el=qn(this.shadowRoot.host,o),!this.alive){e.next=42;break}return e.abrupt("return");case 42:e.next=46;break;case 44:g=_n.call(d.document,"body"),this.el=qn(Hn(this.id),null!==o&&void 0!==o?o:g);case 46:return e.next=48,Xn(this.shadowRoot,d,this.template);case 48:this.patchCssRules(),this.provide.shadowRoot=this.shadowRoot;case 50:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestIdleCallback",value:function(e){var t=this;return de((function(){t.iframe&&e.apply(t)}))}},{key:"start",value:function(){var e=s(f().mark((function e(t){var n,r,o,i,c,u,a,s,l,d=this;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.execFlag=!0,e.next=3,t();case 3:if(n=e.sent,this.iframe){e.next=6;break}return e.abrupt("return");case 6:return r=this.iframe.contentWindow,r.__POWERED_BY_WUJIE__=!0,o=pt("jsBeforeLoaders",this.plugins),i=pt("jsAfterLoaders",this.plugins),c=[],u=[],a=[],n.forEach((function(e){e.defer?a.push(e):e.async?u.push(e):c.push(e)})),o.forEach((function(e){d.execQueue.push((function(){return d.fiber?d.requestIdleCallback((function(){return Lr(e,r)})):Lr(e,r)}))})),c.concat(a).forEach((function(e){d.execQueue.push((function(){return e.contentPromise.then((function(t){return d.fiber?d.requestIdleCallback((function(){return Lr(kr(kr({},e),{},{content:t}),r)})):Lr(kr(kr({},e),{},{content:t}),r)}))}))})),u.forEach((function(e){e.contentPromise.then((function(t){d.fiber?d.requestIdleCallback((function(){return Lr(kr(kr({},e),{},{content:t}),r)})):Lr(kr(kr({},e),{},{content:t}),r)}))})),this.execQueue.push(this.fiber?function(){return d.requestIdleCallback((function(){return d.mount()}))}:function(){return d.mount()}),s=function(){var e;Se(r.document,"DOMContentLoaded"),Se(r,"DOMContentLoaded"),null===(e=d.execQueue.shift())||void 0===e||e()},this.execQueue.push(this.fiber?function(){return d.requestIdleCallback(s)}:s),i.forEach((function(e){d.execQueue.push((function(){return d.fiber?d.requestIdleCallback((function(){return Lr(e,r)})):Lr(e,r)}))})),l=function(){var e;Se(r.document,"readystatechange"),Se(r,"load"),null===(e=d.execQueue.shift())||void 0===e||e()},this.execQueue.push(this.fiber?function(){return d.requestIdleCallback(l)}:l),!this.alive&&H(this.iframe.contentWindow.__WUJIE_UNMOUNT)||rr(this.el),this.execQueue.shift()(),e.abrupt("return",new Promise((function(e){d.execQueue.push((function(){var t;e(),null===(t=d.execQueue.shift())||void 0===t||t()}))})));case 26:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"mount",value:function(){var e;if(!this.mountFlag){var t,n,r,o,i,c;if(H(this.iframe.contentWindow.__WUJIE_MOUNT))rr(this.el),null===(t=this.lifecycles)||void 0===t||null===(n=t.beforeMount)||void 0===n||n.call(t,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_MOUNT(),null===(r=this.lifecycles)||void 0===r||null===(o=r.afterMount)||void 0===o||o.call(r,this.iframe.contentWindow),this.mountFlag=!0;if(this.alive)null===(i=this.lifecycles)||void 0===i||null===(c=i.activated)||void 0===c||c.call(i,this.iframe.contentWindow);null===(e=this.execQueue.shift())||void 0===e||e()}}},{key:"unmount",value:function(){var e,t,n,r,o,i;(this.activeFlag=!1,ur(),this.alive)&&(null===(e=this.lifecycles)||void 0===e||null===(t=e.deactivated)||void 0===t||t.call(e,this.iframe.contentWindow));this.mountFlag&&(!H(this.iframe.contentWindow.__WUJIE_UNMOUNT)||this.alive||this.hrefFlag||(null===(n=this.lifecycles)||void 0===n||null===(r=n.beforeUnmount)||void 0===r||r.call(n,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_UNMOUNT(),null===(o=this.lifecycles)||void 0===o||null===(i=o.afterUnmount)||void 0===i||i.call(o,this.iframe.contentWindow),this.mountFlag=!1,this.bus.$clear(),this.degrade||(tr(this.shadowRoot),Rn(this.head),Rn(this.body)),tr(this.head),tr(this.body)))}},{key:"destroy",value:function(){if(this.unmount(),this.bus.$clear(),this.shadowRoot=null,this.proxy=null,this.proxyDocument=null,this.proxyLocation=null,this.execQueue=null,this.provide=null,this.degradeAttrs=null,this.styleSheetElements=null,this.bus=null,this.replace=null,this.fetch=null,this.execFlag=null,this.mountFlag=null,this.hrefFlag=null,this.document=null,this.head=null,this.body=null,this.elementEventCacheMap=null,this.lifecycles=null,this.plugins=null,this.provide=null,this.inject=null,this.execQueue=null,this.prefix=null,this.el&&(tr(this.el),this.el=null),this.iframe){var e,t=this.iframe.contentWindow;null!==t&&void 0!==t&&t.__WUJIE_EVENTLISTENER__&&t.__WUJIE_EVENTLISTENER__.forEach((function(e){t.removeEventListener(e.type,e.listener,e.options)})),null===(e=this.iframe.parentNode)||void 0===e||e.removeChild(this.iframe),this.iframe=null}Zt(this.id)}},{key:"rebuildStyleSheets",value:function(){var e=this;this.styleSheetElements&&this.styleSheetElements.length&&this.styleSheetElements.forEach((function(t){dn.call(e.degrade?e.document.head:e.shadowRoot.head,t)})),this.patchCssRules()}},{key:"patchCssRules",value:function(){if(!this.degrade&&!this.shadowRoot.host.hasAttribute(O)){var e=or(Array.from(this.iframe.contentDocument.querySelectorAll("style")).map((function(e){return e.sheet}))),t=m(e,2),n=t[0],r=t[1];n&&(this.shadowRoot.head.appendChild(n),this.styleSheetElements.push(n)),r&&this.shadowRoot.host.appendChild(r),(n||r)&&this.shadowRoot.host.setAttribute(O,"")}}}]),e}();function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Br=new Dr(Date.now().toString());function Hr(e){e.name&&en(e.name,e)}function qr(e){return Qr.apply(this,arguments)}function Qr(){return Qr=s(f().mark((function e(t){var n,r,o,i,c,u,a,s,l,d,p,h,v,y,m,g,w,b,E,_,x,O,j,S,P,W,L,I,C,T,U,M,R,D,A,k,N,J,F;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=Xt(t.name),i=Vt(t.name),c=je(t,i),u=c.name,a=c.url,s=c.html,l=c.replace,d=c.fetch,p=c.props,h=c.attrs,v=c.degradeAttrs,y=c.fiber,m=c.alive,g=c.degrade,w=c.sync,b=c.prefix,E=c.el,_=c.loading,x=c.plugins,O=c.lifecycles,!o){e.next=39;break}if(o.plugins=gt(x),o.lifecycles=O,j=o.iframe.contentWindow,!o.preload){e.next=11;break}return e.next=11,o.preload;case 11:if(!m){e.next=26;break}return e.next=14,o.active({url:a,sync:w,prefix:b,el:E,props:p,alive:m,fetch:d,replace:l});case 14:if(o.execFlag){e.next=22;break}return null===(W=o.lifecycles)||void 0===W||null===(L=W.beforeLoad)||void 0===L||L.call(W,o.iframe.contentWindow),e.next=18,Mt({url:a,html:s,opts:{fetch:d||window.fetch,plugins:o.plugins,loadError:o.lifecycles.loadError,fiber:y}});case 18:return I=e.sent,C=I.getExternalScripts,e.next=22,o.start(C);case 22:return null===(S=o.lifecycles)||void 0===S||null===(P=S.activated)||void 0===P||P.call(S,o.iframe.contentWindow),e.abrupt("return",o.destroy);case 26:if(!H(j.__WUJIE_MOUNT)){e.next=38;break}return o.unmount(),e.next=30,o.active({url:a,sync:w,prefix:b,el:E,props:p,alive:m,fetch:d,replace:l});case 30:return o.rebuildStyleSheets(),null===(T=o.lifecycles)||void 0===T||null===(U=T.beforeMount)||void 0===U||U.call(T,o.iframe.contentWindow),j.__WUJIE_MOUNT(),null===(M=o.lifecycles)||void 0===M||null===(R=M.afterMount)||void 0===R||R.call(M,o.iframe.contentWindow),o.mountFlag=!0,e.abrupt("return",o.destroy);case 38:o.destroy();case 39:return nr(E,_),D=new Nr({name:u,url:a,attrs:h,degradeAttrs:v,fiber:y,degrade:g,plugins:x,lifecycles:O}),null===(n=D.lifecycles)||void 0===n||null===(r=n.beforeLoad)||void 0===r||r.call(n,D.iframe.contentWindow),e.next=44,Mt({url:a,html:s,opts:{fetch:d||window.fetch,plugins:D.plugins,loadError:D.lifecycles.loadError,fiber:y}});case 44:return A=e.sent,k=A.template,N=A.getExternalScripts,J=A.getExternalStyleSheets,e.next=50,St(D,k,J);case 50:return F=e.sent,e.next=53,D.active({url:a,sync:w,prefix:b,template:F,el:E,props:p,alive:m,fetch:d,replace:l});case 53:return e.next=55,D.start(N);case 55:return e.abrupt("return",D.destroy);case 56:case"end":return e.stop()}}),e)}))),Qr.apply(this,arguments)}function $r(e){de((function(){if(!Xt(e.name)&&!ue(e.name)){var t=Vt(e.name),n=je(Fr({},e),t),r=n.name,o=n.url,i=n.html,c=n.props,u=n.alive,a=n.replace,l=n.fetch,d=n.exec,p=n.attrs,h=n.degradeAttrs,v=n.fiber,y=n.degrade,m=n.prefix,g=n.plugins,w=n.lifecycles,b=new Nr({name:r,url:o,attrs:p,degradeAttrs:h,fiber:v,degrade:y,plugins:g,lifecycles:w});if(b.preload)return b.preload;var E=function(){var e=s(f().mark((function e(){var t,n,r,s,p,h,y;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return null===(t=b.lifecycles)||void 0===t||null===(n=t.beforeLoad)||void 0===n||n.call(t,b.iframe.contentWindow),e.next=3,Mt({url:o,html:i,opts:{fetch:l||window.fetch,plugins:b.plugins,loadError:b.lifecycles.loadError,fiber:v}});case 3:return r=e.sent,s=r.template,p=r.getExternalScripts,h=r.getExternalStyleSheets,e.next=9,St(b,s,h);case 9:return y=e.sent,e.next=12,b.active({url:o,props:c,prefix:m,alive:u,template:y,fetch:l,replace:a});case 12:if(!d){e.next=17;break}return e.next=15,b.start(p);case 15:e.next=19;break;case 17:return e.next=19,p();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();b.preload=E()}}))}function zr(e){var t=Xt(e);t&&t.destroy()}window.__WUJIE&&!window.__POWERED_BY_WUJIE__&&Pe(),sr(),Bn(),Q||he(D);var Yr=r(9274);const Gr=(0,Yr.defineComponent)({name:"MicroIceApp",props:{width:{type:String,default:""},height:{type:String,default:""},name:{type:String,default:""},loading:{type:Object,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:void 0},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:void 0},props:{type:Object,default:void 0},attrs:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:void 0},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null}},setup(e,{emit:t}){const n=(0,Yr.ref)(null);let r=Promise.resolve();const o=(e,...n)=>{t(e,...n)},i=async()=>{try{await qr({name:e.name,url:e.url,el:n.value,loading:e.loading,alive:e.alive,fetch:e.fetch,props:e.props,attrs:e.attrs,replace:e.replace,sync:e.sync,prefix:e.prefix,fiber:e.fiber,degrade:e.degrade,plugins:e.plugins,beforeLoad:e.beforeLoad,beforeMount:e.beforeMount,afterMount:e.afterMount,beforeUnmount:e.beforeUnmount,afterUnmount:e.afterUnmount,activated:e.activated,deactivated:e.deactivated,loadError:e.loadError})}catch(ve){console.log(ve)}},c=()=>{r=r.then(i)};return(0,Yr.onMounted)((()=>{Br.$onAll(o),c(),(0,Yr.watch)((()=>e.name+e.url),(()=>c()))})),(0,Yr.onBeforeUnmount)((()=>{Br.$offAll(o)})),()=>(0,Yr.h)("div",{style:{width:e.width,height:e.height},ref:n})}});Gr.install=function(e){e.component("MicroIceApp",Gr)};var Xr=Gr;const Vr=[Xr],Kr=e=>{Vr.map((t=>e.component("MicroIceApp",t)))};var Zr={install:Kr},eo=Zr}(),o}()}));
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},i=Object.prototype,c=i.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new U(r||[]);return u(i,"_invoke",{value:L(e,n,c)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var v="suspendedStart",y="suspendedYield",m="executing",g="completed",w={};function b(){}function E(){}function _(){}var x={};d(x,s,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(M([])));j&&j!==i&&c.call(j,s)&&(x=j);var S=_.prototype=b.prototype=Object.create(x);function P(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function W(e,t){function n(o,i,u,a){var s=h(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&c.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,a)}),(function(e){n("throw",e,u,a)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,a)}))}a(s.arg)}var o;u(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function L(e,n,r){var o=v;return function(i,c){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw c;return{value:t,done:!0}}for(r.method=i,r.arg=c;;){var u=r.delegate;if(u){var a=I(u,r);if(a){if(a===w)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=h(e,n,r);if("normal"===s.type){if(o=r.done?g:y,s.arg===w)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),w;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,w;var c=i.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,w):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function M(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(c.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=_,u(S,"constructor",{value:_,configurable:!0}),u(_,"constructor",{value:E,configurable:!0}),E.displayName=d(_,f,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,f,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},P(W.prototype),d(W.prototype,l,(function(){return this})),n.AsyncIterator=W,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var c=new W(p(e,t,r,o),i);return n.isGeneratorFunction(t)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},P(S),d(S,f,"Generator"),d(S,s,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=M,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&c.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),s=c.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,w):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),w}},n}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},2833:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},5905:function(e,t,n){var r=n(3666)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}!function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{default:function(){return eo},destroyApp:function(){return zr},eventBus:function(){return Br},preloadApp:function(){return $r},setupApp:function(){return Hr}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(r.p=t[1])}r(4114);function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,r,o,i,c){try{var u=e[i](c),a=u.value}catch(e){return void n(e)}u.done?t(a):Promise.resolve(a).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function c(e){a(i,r,o,c,u,"next",e)}function u(e){a(i,r,o,c,u,"throw",e)}c(void 0)}))}}var l=r(5905),f=r.n(l);r(4603),r(7566),r(8721);function d(e){if(Array.isArray(e))return e}function p(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,c,u=[],a=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{if(!a&&null!=n["return"]&&(c=n["return"](),Object(c)!==c))return}finally{if(s)throw o}}return u}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){return d(e)||p(e,t)||v(e,t)||y()}var g="data-wujie-id",w="data-wujie-script-id",b="data-wujie-Flag",E="data-container-position-flag",_="data-container-overflow-flag",x="data-loading-flag",O="data-wujie-attach-css-flag",j="wujie_iframe",S="_wujie_all_event",P="position: fixed; z-index: 2147483647; visibility: hidden; inset: 0px; backface-visibility: hidden;",W="position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index:1;",L='<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="30px" viewBox="0 0 24 30">\n<rect x="0" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n<rect x="10" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n<rect x="20" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n</svg>',I="url参数为空",C="子应用调用reload无法生效",T="此报错可以忽略,iframe主动中断主应用代码在子应用运行",U=T+",详见:https://github.com/Tencent/wujie/issues/54",M="事件订阅数量为空",R="window上不存在fetch属性,需要自行polyfill",D="当前浏览器不支持无界,子应用将采用iframe方式渲染",A="脚本请求出现错误",k="样式请求出现错误",N="html请求出现错误",J="无界组件短时间重复渲染了两次,可能存在性能问题请检查代码",F="目标Script尚未准备好或已经被移除",B="不支持document.getElementById()传入特殊字符,请参考document.querySelector文档";function H(e){return"function"===typeof e}function q(e){return"LINK"===(null===e||void 0===e?void 0:e.toUpperCase())||"STYLE"===(null===e||void 0===e?void 0:e.toUpperCase())||"SCRIPT"===(null===e||void 0===e?void 0:e.toUpperCase())||"IFRAME"===(null===e||void 0===e?void 0:e.toUpperCase())}var Q=window.Proxy&&window.CustomElementRegistry,$="function"===typeof document.all&&"undefined"===typeof document.all,z=new WeakMap,Y=function(e){if(z.has(e))return!0;var t=$?"function"===typeof e&&"undefined"!==typeof e:"function"===typeof e;return t&&z.set(e,t),t},G=new WeakMap;function X(e){if(G.has(e))return G.get(e);var t=0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");return G.set(e,t),t}var V=new WeakMap;function K(e){var t=e.prototype&&e.prototype.constructor===e&&Object.getOwnPropertyNames(e.prototype).length>1;if(t)return!0;if(V.has(e))return V.get(e);var n=t;if(!n){var r=e.toString(),o=/^function\b\s[A-Z].*/,i=/^class\b/;n=o.test(r)||i.test(r)}return V.set(e,n),n}var Z=new WeakMap;function ee(e){!Y(e)||X(e)||K(e)||Z.has(e)||Z.set(e,e)}function te(e,t){var n=e[t];if(Z.has(n))return Z.get(n);if(Y(n)&&!X(n)&&!K(n)){var r=Function.prototype.bind.call(n,e);for(var o in Z.set(n,r),n)r[o]=n[o];return n.hasOwnProperty("prototype")&&!r.hasOwnProperty("prototype")&&Object.defineProperty(r,"prototype",{value:n.prototype,enumerable:!1,writable:!0}),r}return n}function ne(e){return window.document.querySelector("iframe[".concat(g,'="').concat(e,'"]'))}function re(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function oe(e){if(!e)throw ve(I),new Error;var t=ie(e),n=t.protocol+"//"+t.host,r=t.pathname+t.search+t.hash;return r.startsWith("/")||(r="/"+r),{urlElement:t,appHostPath:n,appRoutePath:r}}function ie(e){var t=window.document.createElement("a");return t.href=e,t.href=t.href,t}function ce(e){var t=e.search.replace("?","").split("&"),n={};return t.forEach((function(e){var t=e.split("="),r=m(t,2),o=r[0],i=r[1];o&&i&&(n[o]=i)})),n}function ue(e){var t=ce(ie(window.location.href));return Object.keys(t).includes(e)}function ae(e,t,n){var r=e.Element.prototype.setAttribute;t.prototype.setAttribute=function(e,t){var o=t;e===n&&(o=le(t,this.baseURI||"",!0)),r.call(this,e,o)};var o=Object.getOwnPropertyDescriptor(t.prototype,n),i=o.enumerable,c=o.configurable,u=o.get,a=o.set;Object.defineProperty(t.prototype,n,{enumerable:i,configurable:c,get:function(){return u.call(this)},set:function(e){a.call(this,le(e,this.baseURI,!0))}})}function se(e){var t=e;return t.protocol+"//"+t.host+t.pathname}function le(e,t,n){try{return e?n&&e.startsWith("#")?e:new URL(e,t).href:e}catch(r){return e}}function fe(e,t){var n,r=ie(window.location.href),o=ce(r);r=null;var i=window.decodeURIComponent(o[e]||""),c=null===(n=i.match(/^{([^}]*)}/))||void 0===n?void 0:n[1];return t&&c?i.replace("{".concat(c,"}"),t[c]):i}var de=window.requestIdleCallback||function(e){return setTimeout(e,1)};function pe(e){return"string"===typeof e?document.querySelector(e):e}function he(e,t){var n;null===(n=console)||void 0===n||n.warn("[wujie warn]: ".concat(e),t)}function ve(e,t){var n;null===(n=console)||void 0===n||n.error("[wujie error]: ".concat(e),t)}function ye(e){var t=e.indexOf(">")+1,n=e.lastIndexOf("<");return e.substring(t,n)}function me(e){if("object"===n(e))return"/";try{var t=new URL(e,location.href),r=t.origin,o=t.pathname,i=o.split("/");return i.pop(),"".concat(r).concat(i.join("/"),"/")}catch(c){return console.warn(c),""}}function ge(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.reduce((function(e,t){return H(t)?t.apply(void 0,[e].concat(r)):e}),t||"")}}function we(e){Promise.resolve().then(e)}function be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];try{e&&e.length>0&&e.map((function(e){return e[t]})).filter((function(e){return H(e)})).forEach((function(e){return e.apply(void 0,r)}))}catch(i){ve(i)}}function Ee(e){var t;return"SCRIPT"===(null===(t=e.tagName)||void 0===t?void 0:t.toUpperCase())}var _e=1;function xe(e,t){if(Ee(e)){var n=t||String(_e++);e.setAttribute(w,n)}}function Oe(e){return Ee(e)?e.getAttribute(w):null}function je(e,t){return{name:e.name,el:e.el||(null===t||void 0===t?void 0:t.el),url:e.url||(null===t||void 0===t?void 0:t.url),html:e.html||(null===t||void 0===t?void 0:t.html),exec:void 0!==e.exec?e.exec:null===t||void 0===t?void 0:t.exec,replace:e.replace||(null===t||void 0===t?void 0:t.replace),fetch:e.fetch||(null===t||void 0===t?void 0:t.fetch),props:e.props||(null===t||void 0===t?void 0:t.props),sync:void 0!==e.sync?e.sync:null===t||void 0===t?void 0:t.sync,prefix:e.prefix||(null===t||void 0===t?void 0:t.prefix),loading:e.loading||(null===t||void 0===t?void 0:t.loading),attrs:void 0!==e.attrs?e.attrs:(null===t||void 0===t?void 0:t.attrs)||{},degradeAttrs:void 0!==e.degradeAttrs?e.degradeAttrs:(null===t||void 0===t?void 0:t.degradeAttrs)||{},fiber:void 0!==e.fiber?e.fiber:void 0===(null===t||void 0===t?void 0:t.fiber)||(null===t||void 0===t?void 0:t.fiber),alive:void 0!==e.alive?e.alive:null===t||void 0===t?void 0:t.alive,degrade:void 0!==e.degrade?e.degrade:null===t||void 0===t?void 0:t.degrade,plugins:e.plugins||(null===t||void 0===t?void 0:t.plugins),lifecycles:{beforeLoad:e.beforeLoad||(null===t||void 0===t?void 0:t.beforeLoad),beforeMount:e.beforeMount||(null===t||void 0===t?void 0:t.beforeMount),afterMount:e.afterMount||(null===t||void 0===t?void 0:t.afterMount),beforeUnmount:e.beforeUnmount||(null===t||void 0===t?void 0:t.beforeUnmount),afterUnmount:e.afterUnmount||(null===t||void 0===t?void 0:t.afterUnmount),activated:e.activated||(null===t||void 0===t?void 0:t.activated),deactivated:e.deactivated||(null===t||void 0===t?void 0:t.deactivated),loadError:e.loadError||(null===t||void 0===t?void 0:t.loadError)}}}function Se(e,t,n){var r;"function"===typeof window.CustomEvent?r=new CustomEvent(t,{detail:n}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!1,n)),e.dispatchEvent(r)}function Pe(){throw he(U),new Error(T)}var We=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,Le=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,Ie=/.*\ssrc=('|")?([^>'"\s]+)/,Ce=/.*\stype=('|")?([^>'"\s]+)/,Te=/.*\sentry\s*.*/,Ue=/.*\sasync\s*.*/,Me=/.*\sdefer\s*.*/,Re=/.*\snomodule\s*.*/,De=/.*\stype=('|")?module('|")?\s*.*/,Ae=/<(link)\s+[\s\S]*?>/gi,ke=/\srel=('|")?(preload|prefetch|modulepreload)\1/,Ne=/.*\shref=('|")?([^>'"\s]+)/,Je=/.*\sas=('|")?font\1.*/,Fe=/<style[^>]*>[\s\S]*?<\/style>/gi,Be=/\s+rel=('|")?stylesheet\1.*/,He=/.*\shref=('|")?([^>'"\s]+)/,qe=/<!--([\s\S]*?)-->/g,Qe=/<link(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,$e=/<style(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,ze=/<script(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Ye=/.*\scrossorigin=?('|")?(use-credentials|anonymous)?('|")?/i;function Ge(e){return e.startsWith("//")||e.startsWith("http://")||e.startsWith("https://")}function Xe(e,t){return new URL(e,t).toString()}function Ve(e){var t=["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"];return!e||-1!==t.indexOf(e)}function Ke(e){var t=/<[-\w]+\s+([^>]*)>/i,n=t.exec(e);if(!n)return{};var r,o=n[1],i=/([^\s=]+)\s*=\s*(['"])(.*?)\2/g,c={};while(null!==(r=i.exec(o))){var u=r[1],a=r[3];c[u]=a}return c}function Ze(){var e=window.document.createElement("script");return"noModule"in e}var et=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"\x3c!-- ".concat(t?"prefetch/preload/modulepreload":""," link ").concat(e," replaced by wujie --\x3e")},tt=function(e){return"\x3c!-- inline-style-".concat(e," replaced by wujie --\x3e")},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"\x3c!-- ".concat(t," script ").concat(e," replaced by wujie --\x3e")},rt="\x3c!-- inline scripts replaced by wujie --\x3e",ot=function(e){return"\x3c!-- ignore asset ".concat(e||"file"," replaced by wujie --\x3e")},it=function(e,t){return"\x3c!-- ".concat(t?"nomodule":"module"," script ").concat(e," ignored by wujie --\x3e")};function ct(e,t,n){var r=[],o=[],i=null,c=Ze(),u=e.replace(qe,"").replace(Ae,(function(e){var n=!!e.match(Be);if(n){var r=e.match(He),i=e.match(Qe);if(r){var c=r&&r[2],u=c;return c&&!Ge(c)&&(u=Xe(c,t)),i?ot(u):(o.push({src:u}),et(u))}}var a=e.match(ke)&&e.match(Ne)&&!e.match(Je);if(a){var s=e.match(Ne),l=m(s,3),f=l[2];return et(f,!0)}return e})).replace(Fe,(function(e){if($e.test(e))return ot("style file");var t=ye(e);return o.push({src:"",content:t}),tt(o.length-1)})).replace(We,(function(e,n){var o=n.match(ze),u=!!n.match(De),a=n.match(Ye),s=(null===a||void 0===a?void 0:a[2])||"",l=c&&!!n.match(Re)||!c&&u,f=n.match(Ce),d=f&&f[2];if(!Ve(d))return e;if(Le.test(e)&&n.match(Ie)){var p=n.match(Te),h=n.match(Ie),v=h&&h[2];if(i&&p)throw new SyntaxError("You should not set multiply entry script!");if(v&&!Ge(v)&&(v=Xe(v,t)),i=i||p&&v,o)return ot(v||"js file");if(l)return it(v||"js file",c);if(v){var y=!!n.match(Ue),m=!!n.match(Me);return r.push(y||m?{async:y,defer:m,src:v,module:u,crossorigin:!!a,crossoriginType:s,attrs:Ke(e)}:{src:v,module:u,crossorigin:!!a,crossoriginType:s,attrs:Ke(e)}),nt(v,(y?"async":m&&"defer")||"")}return e}if(o)return ot("js file");if(l)return it("js file",c);var g=ye(e),w=g.split(/[\r\n]+/).every((function(e){return!e.trim()||e.trim().startsWith("//")}));return!w&&g&&r.push({src:"",content:g,module:u,crossorigin:!!a,crossoriginType:s,attrs:Ke(e)}),rt})),a={template:u,scripts:r,styles:o,entry:i||r[r.length-1]};return"function"===typeof n&&(a=n(a)),a}function ut(e){if(Array.isArray(e))return h(e)}function at(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function st(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function lt(e){return ut(e)||at(e)||v(e)||st()}function ft(e){var t=e.plugins,n=e.replace;return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;return ge(t.map((function(e){return e.cssLoader})))(n?n(e):e,r,o)}}function dt(e){var t=e.plugins,n=e.replace;return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;return ge(t.map((function(e){return e.jsLoader})))(n?n(e):e,r,o)}}function pt(e,t){var n=t.map((function(t){return t[e]})).filter((function(e){return null===e||void 0===e?void 0:e.length})),r=n.reduce((function(e,t){return e.concat(t)}),[]);return"cssBeforeLoaders"===e?r.reverse():r}function ht(e,t){return t.map((function(t){return t[e]})).filter((function(e){return null===e||void 0===e?void 0:e.length})).reduce((function(e,t){return e.concat(t)}),[])}function vt(e,t){return t.some((function(t){return"string"===typeof t?e===t:t.test(e)}))}function yt(e,t,n){var r=t?le(t,n):n,o=/(url\((?!['"]?(?:data):)['"]?)([^'")]*)(['"]?\))/g;return e.replace(o,(function(e,t,n,o){var i=le(n,r);return t+i+o}))}var mt={cssLoader:yt,cssBeforeLoaders:[{content:"html {view-transition-name: none;}"}]};function gt(e){return Array.isArray(e)?[mt].concat(lt(e)):[mt]}function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Et={},_t={},xt={};if(!window.fetch)throw ve(R),new Error;var Ot=window.fetch.bind(window);function jt(e){return e}function St(e,t,n){return Pt.apply(this,arguments)}function Pt(){return Pt=s(f().mark((function e(t,n,r){var o,i,c,u;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=se(t.proxyLocation),i=ge(t.plugins.map((function(e){return e.cssLoader}))),c=r().map((function(e){var t=e.src,n=e.ignore,r=e.contentPromise;return{src:t,ignore:n,contentPromise:r.then((function(e){return i(e,t,o)}))}})),e.next=5,Wt(n,c);case 5:return u=e.sent,e.abrupt("return",t.replace?t.replace(u):u);case 7:case"end":return e.stop()}}),e)}))),Pt.apply(this,arguments)}function Wt(e,t){return Lt.apply(this,arguments)}function Lt(){return Lt=s(f().mark((function e(t,n){var r;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t,e.abrupt("return",Promise.all(n.map((function(e,t){return e.contentPromise.then((function(n){e.src?r=r.replace(et(e.src),e.ignore?'<link href="'.concat(e.src,'" rel="stylesheet" type="text/css">'):"<style>/* ".concat(e.src," */").concat(n,"</style>")):n&&(r=r.replace(tt(t),"<style>/* inline-style-".concat(t," */").concat(n,"</style>")))}))}))).then((function(){return r})));case 2:case"end":return e.stop()}}),e)}))),Lt.apply(this,arguments)}var It=function(e){return e.startsWith("<")},Ct=function(e,t,n,r,o){return t[e]||(t[e]=n(e).then((function(n){if(n.status>=400){if(t[e]=null,r)return ve(k,{src:e,response:n}),null===o||void 0===o||o(e,new Error(k)),"";throw ve(A,{src:e,response:n}),null===o||void 0===o||o(e,new Error(A)),new Error(A)}return n.text()}))["catch"]((function(n){return t[e]=null,r?(ve(k,e),null===o||void 0===o||o(e,n),""):(ve(A,e),null===o||void 0===o||o(e,n),"")})))};function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2?arguments[2]:void 0;return e.map((function(e){var r=e.src,o=e.content,i=e.ignore;return o?{src:"",contentPromise:Promise.resolve(o)}:It(r)?{src:"",contentPromise:Promise.resolve(ye(r))}:{src:r,ignore:i,contentPromise:i?Promise.resolve(""):Ct(r,Et,t,!0,n)}}))}function Ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ot,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return e.map((function(e){var o=e.src,i=e.async,c=e.defer,u=e.module,a=e.ignore,s=null;return s=(i||c)&&o&&!u?new Promise((function(e,i){return r?de((function(){return Ct(o,_t,t,!1,n).then(e,i)})):Ct(o,_t,t,!1,n).then(e,i)})):u&&o||a?Promise.resolve(""):o?Ct(o,_t,t,!1,n):Promise.resolve(e.content),u&&!i&&(e.defer=!0),bt(bt({},e),{},{contentPromise:s})}))}function Mt(e){var t,n,r=e.url,o=e.opts,i=e.html,c=null!==(t=o.fetch)&&void 0!==t?t:Ot,u=null===(n=o.fiber)||void 0===n||n,a=o.plugins,s=o.loadError,l=a?ge(a.map((function(e){return e.htmlLoader}))):jt,f=ht("jsExcludes",a),d=ht("cssExcludes",a),p=ht("jsIgnores",a),h=ht("cssIgnores",a),v=me,y=function(e,t,n){return(t?Promise.resolve(t):c(e).then((function(t){return t.status>=400?(ve(N,{url:e,response:t}),null===s||void 0===s||s(e,new Error(N)),""):t.text()}))["catch"]((function(t){return xt[e]=null,null===s||void 0===s||s(e,t),Promise.reject(t)}))).then((function(t){var r=v(e),o=ct(n(t),r),i=o.template,a=o.scripts,l=o.styles;return{template:i,assetPublicPath:r,getExternalScripts:function(){return Ut(a.filter((function(e){return!e.src||!vt(e.src,f)})).map((function(e){return bt(bt({},e),{},{ignore:e.src&&vt(e.src,p)})})),c,s,u)},getExternalStyleSheets:function(){return Tt(l.filter((function(e){return!e.src||!vt(e.src,d)})).map((function(e){return bt(bt({},e),{},{ignore:e.src&&vt(e.src,h)})})),c,s)}}}))};return null!==o&&void 0!==o&&o.plugins.some((function(e){return e.htmlLoader}))?y(r,i,l):xt[r]||(xt[r]=y(r,i,l))}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function At(e,t,n){return t&&Dt(e.prototype,t),n&&Dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}r(3375),r(9225),r(3972),r(9209),r(5714),r(7561),r(6197);function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}function Nt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}function Jt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jt(e)}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}function Ht(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function qt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qt=function(){return!!e})()}function Qt(e,t,n){if(qt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&kt(o,n.prototype),o}function $t(e){var t="function"==typeof Map?new Map:void 0;return $t=function(e){if(null===e||!Ht(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qt(e,arguments,Bt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),kt(n,e)},$t(e)}function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.idToSandboxMap:new Map;function Xt(e){var t;return(null===(t=Gt.get(e))||void 0===t?void 0:t.wujie)||null}function Vt(e){var t;return(null===(t=Gt.get(e))||void 0===t?void 0:t.options)||null}function Kt(e,t){var n=Gt.get(e);n?Gt.set(e,Yt(Yt({},n),{},{wujie:t})):Gt.set(e,{wujie:t})}function Zt(e){var t=Gt.get(e);null!==t&&void 0!==t&&t.options&&Gt.set(e,{options:t.options}),Gt["delete"](e)}function en(e,t){var n=Gt.get(e);n?Gt.set(e,Yt(Yt({},n),{},{options:t})):Gt.set(e,{options:t})}var tn={modifyLocalProperties:["createElement","createTextNode","documentURI","URL","getElementsByTagName"],modifyProperties:["createElement","createTextNode","documentURI","URL","getElementsByTagName","getElementsByClassName","getElementsByName","getElementById","querySelector","querySelectorAll","documentElement","scrollingElement","forms","images","links"],shadowProperties:["activeElement","childElementCount","children","firstElementChild","firstChild","fullscreenElement","lastElementChild","pictureInPictureElement","pointerLockElement","styleSheets"],shadowMethods:["append","contains","getSelection","elementFromPoint","elementsFromPoint","getAnimations","replaceChildren"],documentProperties:["characterSet","compatMode","contentType","designMode","dir","doctype","embeds","fullscreenEnabled","hidden","implementation","lastModified","pictureInPictureEnabled","plugins","readyState","referrer","visibilityState","fonts"],documentMethods:["execCommand","caretPositionFromPoint","createRange","exitFullscreen","exitPictureInPicture","getElementsByTagNameNS","hasFocus","prepend"],documentEvents:["onpointerlockchange","onpointerlockerror","onbeforecopy","onbeforecut","onbeforepaste","onfreeze","onresume","onsearch","onfullscreenchange","onfullscreenerror","onsecuritypolicyviolation","onvisibilitychange"],ownerProperties:["head","body"]},nn=["DOMContentLoaded","readystatechange"],rn=["onreadystatechange"],on=["fullscreenchange","fullscreenerror","selectionchange","visibilitychange","wheel","keydown","keypress","keyup"],cn=["gotpointercapture","lostpointercapture"],un=["hashchange","popstate","DOMContentLoaded","load","beforeunload","unload","message","error","unhandledrejection"],an=["onload","onbeforeunload","onunload"],sn={IMG:"src",A:"href",SOURCE:"src"},ln=["getComputedStyle","visualViewport","matchMedia","DOMParser"],fn=[/animationFrame$/i,/resizeObserver$|mutationObserver$|intersectionObserver$/i,/height$|width$|left$/i,/^screen/i,/X$|Y$/],dn=HTMLElement.prototype.appendChild,pn=HTMLElement.prototype.removeChild,hn=HTMLElement.prototype.contains,vn=HTMLHeadElement.prototype.insertBefore,yn=HTMLBodyElement.prototype.insertBefore,mn=Node.prototype.addEventListener,gn=Node.prototype.removeEventListener,wn=window.addEventListener,bn=window.removeEventListener,En=Node.prototype.appendChild,_n=window.__POWERED_BY_WUJIE__?window.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__:Document.prototype.querySelector;function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jn(e,t){return Object.defineProperties(e,{srcElement:{get:t},target:{get:t}}),e}function Sn(e,t){var n=new CustomEvent(t),r=jn(n,(function(){return e}));H(e["on".concat(t)])?e["on".concat(t)](r):e.dispatchEvent(r)}function Pn(e,t){if(e.innerHTML&&!t.degrade){var n=function(){var n=or([e.sheet]),r=m(n,2),o=r[0],i=r[1];o&&t.shadowRoot.head.appendChild(o),i&&t.shadowRoot.host.appendChild(i),e._patcher=void 0};e._patcher&&clearTimeout(e._patcher),e._patcher=setTimeout(n,50)}}function Wn(e,t,n,r){var o;if(!e._hasPatchStyle){var i=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),c=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText"),u=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"),a=null===(o=e.sheet)||void 0===o?void 0:o.insertRule;s(),i&&Object.defineProperties(e,{innerHTML:{get:function(){return i.get.call(e)},set:function(o){var c=this;i.set.call(e,t(o,"",r)),we((function(){return Pn(c,n)}))}}}),Object.defineProperties(e,{innerText:{get:function(){return c.get.call(e)},set:function(o){var i=this;c.set.call(e,t(o,"",r)),we((function(){return Pn(i,n)}))}},textContent:{get:function(){return u.get.call(e)},set:function(o){var i=this;u.set.call(e,t(o,"",r)),we((function(){return Pn(i,n)}))}},appendChild:{value:function(o){var i=this;if(we((function(){return Pn(i,n)})),o.nodeType===Node.TEXT_NODE){var c=En.call(e,e.ownerDocument.createTextNode(t(o.textContent,"",r)));return s(),c}return En(o)}},_hasPatchStyle:{get:function(){return!0}}})}function s(){a&&(e.sheet.insertRule=function(t,n){return i?e.innerHTML+=t:e.innerText+=t,a.call(e.sheet,t,n)})}}var Ln=Promise.resolve();function In(e){return function(t,n){var r=this,o=t,i=e.rawDOMAppendOrInsertBefore,c=e.wujieId,u=Xt(c),a=u.styleSheetElements,s=u.replace,l=u.fetch,f=u.plugins,d=u.iframe,p=u.lifecycles,h=u.proxyLocation,v=u.fiber;if(!q(o.tagName)||!c){var y=i.call(this,o,n);return Pr(o,d.contentWindow),be(f,"appendOrInsertElementHook",o,d.contentWindow),y}var m,g=d.contentDocument,w=se(h);if(o.tagName)switch(null===(m=o.tagName)||void 0===m?void 0:m.toUpperCase()){case"LINK":var E=o,_=E.href,x=E.rel,O=E.type,j="stylesheet"===x||"text/css"===O||_.endsWith(".css");if(!j){var S=i.call(this,o,n);return be(f,"appendOrInsertElementHook",o,d.contentWindow),S}_&&!vt(_,ht("cssExcludes",f))&&Tt([{src:_,ignore:vt(_,ht("cssIgnores",f))}],l,p.loadError).forEach((function(e){var t=e.src,c=e.ignore,l=e.contentPromise;return l.then((function(e){var l=Ke(o.outerHTML);if(c&&t)i.call(r,o,n);else{var d=g.createElement("style"),p=ft({plugins:f,replace:s});d.innerHTML=p(e,t,w),a.push(d),re(d,l),i.call(r,d,n),Pn(d,u),Sn(o,"load")}o=null}),(function(){Sn(o,"error"),o=null}))}));var P=g.createComment("dynamic link ".concat(_," replaced by wujie"));return i.call(this,P,n);case"STYLE":var W=t;a.push(W);var L=W.innerHTML,I=ft({plugins:f,replace:s});L&&(W.innerHTML=I(L,"",w));var C=i.call(this,o,n);return Wn(W,I,u,w),Pn(W,u),be(f,"appendOrInsertElementHook",o,d.contentWindow),C;case"SCRIPT":xe(o);var T=o,U=T.src,M=T.text,R=T.type,D=T.crossOrigin;if(U&&!vt(U,ht("jsExcludes",f))){var A=function(e){if(null===u.iframe)return he(J);var t=function(){Sn(o,"load"),o=null};Lr(On(On({},e),{},{onload:t}),u.iframe.contentWindow,o)},k={src:U,module:"module"===R,crossorigin:null!==D,crossoriginType:D||"",ignore:vt(U,ht("jsIgnores",f)),attrs:Ke(o.outerHTML)};Ut([k],l,p.loadError,v).forEach((function(e){Ln=Ln.then((function(){return e.contentPromise.then((function(t){var n;if(null===u.execQueue)return he(J);var r=null===(n=u.execQueue)||void 0===n?void 0:n.length;u.execQueue.push((function(){return v?u.requestIdleCallback((function(){A(On(On({},e),{},{content:t}))})):A(On(On({},e),{},{content:t}))})),r||u.execQueue.shift()()}),(function(){Sn(o,"error"),o=null}))}))}))}else{var N,F=null===(N=u.execQueue)||void 0===N?void 0:N.length;u.execQueue.push((function(){return v?u.requestIdleCallback((function(){Lr({src:null,content:M,attrs:Ke(o.outerHTML)},u.iframe.contentWindow,o)})):Lr({src:null,content:M,attrs:Ke(o.outerHTML)},u.iframe.contentWindow,o)})),F||u.execQueue.shift()()}var B=g.createComment("dynamic script ".concat(U," replaced by wujie"));return i.call(this,B,n);case"IFRAME":if(""===o.getAttribute(b))return En.call(_n.call(this.ownerDocument,"html"),o);var H=i.call(this,o,n);return be(f,"appendOrInsertElementHook",o,d.contentWindow),H;default:}}}function Cn(e,t){var n=Oe(e),r=Xt(t),o=r.iframe,i=o.contentWindow.__WUJIE_RAW_DOCUMENT_HEAD__.querySelector("script[".concat(w,"='").concat(n,"']"));return null===i&&he(F,"<script ".concat(w,"='").concat(n,"'/>")),{targetScript:i,iframe:o}}function Tn(e){return function(t){var n=t,r=e.rawElementContains,o=e.wujieId;if(n&&Ee(n)){var i=Cn(n,o),c=i.targetScript;return null!==c}return r(n)}}function Un(e){return function(t){var n=t,r=e.rawElementRemoveChild,o=e.wujieId;if(n&&Ee(n)){var i=Cn(n,o),c=i.targetScript,u=i.iframe;return null!==c?u.contentWindow.__WUJIE_RAW_DOCUMENT_HEAD__.removeChild(c):null}return r(n)}}function Mn(e){var t=new Map;e._cacheListeners=t,e.addEventListener=function(n,r,o){var i=t.get(n)||[];return t.set(n,[].concat(lt(i),[r])),mn.call(e,n,r,o)},e.removeEventListener=function(n,r,o){var i=t.get(n),c=null===i||void 0===i?void 0:i.indexOf(r);return null!==i&&void 0!==i&&i.length&&-1!==c&&i.splice(c,1),gn.call(e,n,r,o)}}function Rn(e){var t=e._cacheListeners;lt(t.entries()).forEach((function(t){var n=m(t,2),r=n[0],o=n[1];o.forEach((function(t){return gn.call(e,r,t)}))}))}function Dn(e,t,n){n||(Mn(e.head),Mn(e.body)),e.head.appendChild=In({rawDOMAppendOrInsertBefore:En,wujieId:t}),e.head.insertBefore=In({rawDOMAppendOrInsertBefore:vn,wujieId:t}),e.head.removeChild=Un({rawElementRemoveChild:pn.bind(e.head),wujieId:t}),e.head.contains=Tn({rawElementContains:hn.bind(e.head),wujieId:t}),e.contains=Tn({rawElementContains:hn.bind(e),wujieId:t}),e.body.appendChild=In({rawDOMAppendOrInsertBefore:En,wujieId:t}),e.body.insertBefore=In({rawDOMAppendOrInsertBefore:yn,wujieId:t})}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nn(e){var t=Jn();return function(){var n,r=Bt(e);if(t){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Jn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Fn={":root":":host"};function Bn(){var e=window.customElements;if(e&&(null===e||void 0===e||!e.get("wujie-app"))){var t=function(e){Nt(n,e);var t=Nn(n);function n(){return Rt(this,n),t.apply(this,arguments)}return At(n,[{key:"connectedCallback",value:function(){if(!this.shadowRoot){var e=this.attachShadow({mode:"open"}),t=Xt(this.getAttribute(g));Pr(e,t.iframe.contentWindow),t.shadowRoot=e}}},{key:"disconnectedCallback",value:function(){var e=Xt(this.getAttribute(g));null===e||void 0===e||e.unmount()}}]),n}($t(HTMLElement));null===e||void 0===e||e.define("wujie-app",t)}}function Hn(e){var t=window.document.createElement("wujie-app");return t.setAttribute(g,e),t.classList.add(j),t}function qn(e,t){var n=pe(t);return n&&!n.contains(e)&&(n.querySelector("div[".concat(x,"]"))||tr(n),e&&dn.call(n,e)),n}function Qn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Kn(e,n),o=qn(r,t),i=r.contentWindow.document;return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),{iframe:r,container:o}}function $n(e,t){return zn.apply(this,arguments)}function zn(){return zn=s(f().mark((function e(t,n){var r,o,i,c,u,a,s,l;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.iframe.contentDocument,o=t.plugins,i=t.replace,c=t.proxyLocation,u=ft({plugins:o,replace:i}),a=pt("cssBeforeLoaders",o),s=pt("cssAfterLoaders",o),l=se(c),e.next=8,Promise.all([Promise.all(Tt(a,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src,n=e.contentPromise;return n.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var i=r.createElement("style");i.setAttribute("type","text/css"),i.appendChild(r.createTextNode(o?u(o,t,l):o));var c=n.querySelector("head"),a=n.querySelector("body");n.insertBefore(i,c||a||n.firstChild)}}))})),Promise.all(Tt(s,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src,n=e.contentPromise;return n.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var i=r.createElement("style");i.setAttribute("type","text/css"),i.appendChild(r.createTextNode(o?u(o,t,l):o)),n.appendChild(i)}}))}))]).then((function(){return n}),(function(){return n}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),zn.apply(this,arguments)}function Yn(e,t,n){var r=e.querySelector("head"),o=e.querySelector("body");if(r){while(r.firstChild)En.call(t,r.firstChild.cloneNode(!0)),r.removeChild(r.firstChild);r.parentNode.replaceChild(t,r)}if(o){while(o.firstChild)En.call(n,o.firstChild.cloneNode(!0)),o.removeChild(o.firstChild);o.parentNode.replaceChild(n,o)}return e}function Gn(e,t){var n=e.__WUJIE,r=n.head,o=n.body,i=n.alive,c=n.execFlag,u=e.document,a=u.createElement("html");a.innerHTML=t,!i&&c?a=Yn(a,r,o):(n.head=a.querySelector("head"),n.body=a.querySelector("body"));var s=u.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,null,!1),l=s.currentNode;while(l){Pr(l,e);var f=sn[l.tagName],d=l[f];f&&l.setAttribute(f,le(d,l.baseURI||"")),l=s.nextNode()}if(!a.querySelector("head")){var p=u.createElement("head");a.appendChild(p)}if(!a.querySelector("body")){var h=u.createElement("body");a.appendChild(h)}return a}function Xn(e,t,n){return Vn.apply(this,arguments)}function Vn(){return Vn=s(f().mark((function e(t,n,r){var o,i,c;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=Gn(n,r),e.next=3,$n(n.__WUJIE,o);case 3:i=e.sent,t.appendChild(i),c=document.createElement("div"),c.setAttribute("style",P),i.insertBefore(c,i.firstChild),t.head=t.querySelector("head"),t.body=t.querySelector("body"),Object.defineProperty(t.firstChild,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),Dn(t,n.__WUJIE.id,!1);case 12:case"end":return e.stop()}}),e)}))),Vn.apply(this,arguments)}function Kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("iframe"),r="height:100%;width:100%";return re(n,kn(kn({},t),{},u({style:[r,t.style].join(";")},g,e))),n}function Zn(e,t,n){return er.apply(this,arguments)}function er(){return er=s(f().mark((function e(t,n,r){var o,i;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=Gn(n,r),e.next=3,$n(n.__WUJIE,o);case 3:i=e.sent,t.replaceChild(i,t.documentElement),Object.defineProperty(t.documentElement,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),Dn(t,n.__WUJIE.id,!0);case 7:case"end":return e.stop()}}),e)}))),er.apply(this,arguments)}function tr(e){while(null!==e&&void 0!==e&&e.firstChild)pn.call(e,e.firstChild)}function nr(e,t){var n=pe(e);tr(n);var r=null;try{r=window.getComputedStyle(n)}catch(i){return}"static"===r.position?(n.setAttribute(E,r.position),n.setAttribute(_,"visible"===r.overflow?"":r.overflow),n.style.setProperty("position","relative"),n.style.setProperty("overflow","hidden")):["relative","sticky"].includes(r.position)&&(n.setAttribute(_,"visible"===r.overflow?"":r.overflow),n.style.setProperty("overflow","hidden"));var o=document.createElement("div");o.setAttribute(x,""),o.setAttribute("style",W),t?o.appendChild(t):o.innerHTML=L,n.appendChild(o)}function rr(e){var t=e.getAttribute(E),n=e.getAttribute(_);t&&e.style.removeProperty("position"),null!==n&&(n?e.style.setProperty("overflow",n):e.style.removeProperty("overflow")),e.removeAttribute(E),e.removeAttribute(_);var r=e.querySelector("div[".concat(x,"]"));r&&e.removeChild(r)}function or(e){for(var t=[],n=[],r=/:root/g,o=0;o<e.length;o++)for(var i,c,u=null!==(i=null===(c=e[o])||void 0===c?void 0:c.cssRules)&&void 0!==i?i:[],a=0;a<u.length;a++){var s=u[a].cssText;r.test(s)&&t.push(s.replace(r,(function(e){return Fn[e]}))),u[a].type===CSSRule.FONT_FACE_RULE&&n.push(s)}var l=null,f=null;return t.length&&(l=window.document.createElement("style"),l.innerHTML=t.join("")),n.length&&(f=window.document.createElement("style"),f.innerHTML=n.join("")),[l,f]}function ir(e){var t=e.__WUJIE,n=t.sync,r=t.id,o=t.prefix,i=ie(window.location.href),c=ce(i);if(!n&&!c[r])return null;var u=e.location.pathname+e.location.search+e.location.hash,a="";o&&Object.keys(o).forEach((function(e){var t=o[e];u.startsWith(t)&&(!a||t.length>o[a].length)&&(a=e)})),n?c[r]=window.encodeURIComponent(a?u.replace(o[a],"{".concat(a,"}")):u):delete c[r];var s="?"+Object.keys(c).map((function(e){return e+"="+c[e]})).join("&");i.search=s,i.href!==window.location.href&&window.history.replaceState(null,"",i.href),i=null}function cr(e){var t=e.location,n=t.pathname,r=t.search,o=t.hash,i=e.__WUJIE,c=i.id,u=i.url,a=i.sync,s=i.execFlag,l=i.prefix,f=i.inject,d=a&&!s?fe(c,l):u,p=(/^http/.test(d)?null:d)||u,h=oe(p),v=h.appRoutePath,y=n+r+o;y!==v&&e.history.replaceState(null,"",f.mainHostPath+v)}function ur(){var e=ie(window.location.href),t=ce(e);Object.keys(t).forEach((function(e){var n=Xt(e);n&&n.execFlag&&n.sync&&!n.hrefFlag&&!n.activeFlag&&delete t[e]}));var n="?"+Object.keys(t).map((function(e){return e+"="+t[e]})).join("&");e.search=n,e.href!==window.location.href&&window.history.replaceState(null,"",e.href),e=null}function ar(e,t){var n=ie(window.location.href),r=ce(n);r[e]=window.encodeURIComponent(t);var o="?"+Object.keys(r).map((function(e){return e+"="+r[e]})).join("&");n.search=o,window.history.pushState(null,"",n.href),n=null}function sr(){window.addEventListener("popstate",(function(){var e=ie(window.location.href),t=ce(e);e=null,Object.keys(t).map((function(e){return Xt(e)})).filter((function(e){return e})).forEach((function(e){var n=t[e.id],r=_n.call(e.iframe.contentDocument,"body");if(/http/.test(n))e.degrade?(qn(e.document.documentElement,r),Ir(window.decodeURIComponent(n),ne(e.id).parentElement,e.degradeAttrs)):Ir(window.decodeURIComponent(n),e.shadowRoot.host.parentElement,e.degradeAttrs),e.hrefFlag=!0;else if(e.hrefFlag){if(e.degrade){var o=Qn(e.id,e.el,e.degradeAttrs),i=o.iframe;br(i.contentWindow,e.iframe.contentWindow),i.contentWindow.onunload=function(){e.unmount()},i.contentDocument.appendChild(r.firstElementChild),e.document=i.contentDocument}else qn(e.shadowRoot.host,e.el);e.hrefFlag=!1}}))}))}function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(e){e.__WUJIE_EVENTLISTENER__=e.__WUJIE_EVENTLISTENER__||new Set,e.addEventListener=function(t,r,o){if(be(e.__WUJIE.plugins,"windowAddEventListenerHook",e,t,r,o),e.__WUJIE_EVENTLISTENER__.add({type:t,listener:r,options:o}),un.includes(t)||"object"===n(o)&&o.targetWindow){var i="object"===n(o)&&o.targetWindow?null===o||void 0===o?void 0:o.targetWindow:e;return wn.call(i,t,r,o)}wn.call(window.__WUJIE_RAW_WINDOW__||window,t,r,o)},e.removeEventListener=function(t,r,o){if(be(e.__WUJIE.plugins,"windowRemoveEventListenerHook",e,t,r,o),e.__WUJIE_EVENTLISTENER__.forEach((function(n){n.listener===r&&n.type===t&&o==n.options&&e.__WUJIE_EVENTLISTENER__["delete"](n)})),un.includes(t)||"object"===n(o)&&o.targetWindow){var i="object"===n(o)&&o.targetWindow?null===o||void 0===o?void 0:o.targetWindow:e;return bn.call(i,t,r,o)}bn.call(window.__WUJIE_RAW_WINDOW__||window,t,r,o)}}function pr(e,t,n){e.__WUJIE=t,e.__WUJIE_PUBLIC_PATH__=n+"/",e.$wujie=t.provide,e.__WUJIE_RAW_WINDOW__=e}function hr(e,t,n){var r=e.history,o=r.pushState,i=r.replaceState;r.pushState=function(i,c,u){var a=n+e.location.pathname+e.location.search+e.location.hash,s=le(null===u||void 0===u?void 0:u.replace(t,""),a),l=void 0===u;o.call(r,i,c,l?void 0:s),l||(vr(e,t,n),ir(e))},r.replaceState=function(o,c,u){var a=n+e.location.pathname+e.location.search+e.location.hash,s=le(null===u||void 0===u?void 0:u.replace(t,""),a),l=void 0===u;i.call(r,o,c,l?void 0:s),l||(vr(e,t,n),ir(e))}}function vr(e,t,n){var r,o=new URL(null===(r=e.location.href)||void 0===r?void 0:r.replace(n,""),t),i=_n.call(e.document,"base");i&&i.setAttribute("href",t+o.pathname)}function yr(e){function t(t){var n=e[t];try{return"function"!==typeof n||K(n)?e[t]=window[t]:e[t]=window[t].bind(window),!0}catch(r){return he(r.message),!1}}Object.getOwnPropertyNames(e).forEach((function(n){"getSelection"!==n?ln.includes(n)?t(n):fn.some((function(r){return!(!r.test(n)||!(n in e.parent))&&t(n)})):Object.defineProperty(e,n,{get:function(){return e.document[n]}})}));var n=Object.getOwnPropertyNames(window).filter((function(e){return/^on/.test(e)})).filter((function(e){return!an.includes(e)}));n.forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,writable:!0};try{Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return window[t]},set:n.writable||n.set?function(n){window[t]="function"===typeof n?n.bind(e):n}:void 0})}catch(t){he(t.message)}})),be(e.__WUJIE.plugins,"windowPropertyOverride",e)}function mr(e){var t=e.__WUJIE;e.Node.prototype.addEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);return o?o.find((function(t){return t.type===e&&t.handler===n}))||o.push({type:e,handler:n,options:r}):t.elementEventCacheMap.set(this,[{type:e,handler:n,options:r}]),mn.call(this,e,n,r)},e.Node.prototype.removeEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);if(o){var i=null===o||void 0===o?void 0:o.findIndex((function(t){return t.type===e&&t.handler===n}));o.splice(i,1)}return null!==o&&void 0!==o&&o.length||t.elementEventCacheMap["delete"](this),gn.call(this,e,n,r)}}function gr(e,t){var n=t.__WUJIE,r=new WeakMap,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1),i=o.currentNode;while(i){var c=n.elementEventCacheMap.get(i);null!==c&&void 0!==c&&c.length&&(r.set(i,c),c.forEach((function(e){i.addEventListener(e.type,e.handler,e.options)}))),i=o.nextNode()}n.elementEventCacheMap=r}function wr(e,t,n){var r=n.__WUJIE,o=new WeakMap,i=r.elementEventCacheMap.get(e);null!==i&&void 0!==i&&i.length&&(o.set(t,i),i.forEach((function(e){t.addEventListener(e.type,e.handler,e.options)}))),r.elementEventCacheMap=o}function br(e,t){Object.defineProperty(e.Event.prototype,"timeStamp",{get:function(){return t.document.createEvent("Event").timeStamp}})}function Er(e){var t=e.__WUJIE,n=new WeakMap,r=new WeakMap;e.Document.prototype.addEventListener=function(o,i,c){if(i){var u=n.get(i),a=r.get(i);return u||(u="function"===typeof i?i.bind(this):i,n.set(i,u)),a?a.includes(o)||a.push(o):r.set(i,[o]),be(e.__WUJIE.plugins,"documentAddEventListenerHook",e,o,u,c),nn.includes(o)?mn.call(this,o,u,c):t.degrade?t.document.addEventListener(o,u,c):on.includes(o)?window.document.addEventListener(o,u,c):cn.includes(o)?(window.document.addEventListener(o,u,c),void t.shadowRoot.addEventListener(o,u,c)):void t.shadowRoot.addEventListener(o,u,c)}},e.Document.prototype.removeEventListener=function(o,i,c){var u=n.get(i),a=r.get(i);if(u){if(null!==a&&void 0!==a&&a.includes(o)&&(a.splice(a.indexOf(o),1),a.length||(n["delete"](i),r["delete"](i))),be(e.__WUJIE.plugins,"documentRemoveEventListenerHook",e,o,u,c),nn.includes(o))return gn.call(this,o,u,c);if(t.degrade)return t.document.removeEventListener(o,u,c);if(on.includes(o))return window.document.removeEventListener(o,u,c);if(cn.includes(o))return window.document.removeEventListener(o,u,c),void t.shadowRoot.removeEventListener(o,u,c);t.shadowRoot.removeEventListener(o,u,c)}};var o=Object.keys(e.HTMLElement.prototype).filter((function(e){return/^on/.test(e)})),i=Object.keys(e.Document.prototype).filter((function(e){return/^on/.test(e)})).filter((function(e){return!rn.includes(e)}));o.filter((function(e){return i.includes(e)})).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.degrade?t.document[n]:t.shadowRoot.firstElementChild[n]},set:r.writable||r.set?function(r){var o="function"===typeof r?r.bind(e.document):r;t.degrade?t.document[n]=o:t.shadowRoot.firstElementChild[n]=o}:void 0})}catch(n){he(n.message)}}));var c=tn.ownerProperties,u=tn.modifyProperties,a=tn.shadowProperties,s=tn.shadowMethods,l=tn.documentProperties,f=tn.documentMethods,d=tn.documentEvents;u.concat(a,s,l,f).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})}catch(o){he(o.message)}})),d.forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return(t.degrade?t:window).document[n]},set:r.writable||r.set?function(r){(t.degrade?t:window).document[n]="function"===typeof r?r.bind(e.document):r}:void 0})}catch(o){he(o.message)}})),c.forEach((function(n){Object.defineProperty(e.document,n,{enumerable:!0,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})})),be(e.__WUJIE.plugins,"documentPropertyOverride",e)}function _r(e){var t=e.Node.prototype.getRootNode,n=e.Node.prototype.appendChild,r=e.Node.prototype.insertBefore;e.Node.prototype.getRootNode=function(n){var r=t.call(this,n);return r===e.__WUJIE.shadowRoot?e.document:r},e.Node.prototype.appendChild=function(t){var r=n.call(this,t);return Pr(t,e),r},e.Node.prototype.insertBefore=function(t,n){var o=r.call(this,t,n);return Pr(t,e),o}}function xr(e){ae(e,e.HTMLImageElement,"src"),ae(e,e.HTMLAnchorElement,"href"),ae(e,e.HTMLSourceElement,"src"),ae(e,e.HTMLLinkElement,"href"),ae(e,e.HTMLScriptElement,"src"),ae(e,e.HTMLMediaElement,"src")}function Or(e,t){var n=e.document,r=n.createElement("base"),o=ie(e.location.href),i=ie(t);r.setAttribute("href",i.protocol+"//"+i.host+o.pathname),n.head.appendChild(r)}function jr(e,t,n,r){var o=e.document,i=window.document.implementation.createHTMLDocument(""),c=o.importNode(i.documentElement,!0);o.documentElement?o.replaceChild(c,o.documentElement):o.appendChild(c),e.__WUJIE_RAW_DOCUMENT_HEAD__=o.head,e.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__=e.Document.prototype.querySelector,e.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__=e.Document.prototype.querySelectorAll,e.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__=e.Document.prototype.createElement,e.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__=e.Document.prototype.createTextNode,Or(e,t.url),hr(e,r,n),dr(e),t.degrade&&mr(e),Wr(e),yr(e),Er(e),_r(e),xr(e)}function Sr(e){var t=e.document;return new Promise((function(n){function r(){setTimeout((function(){var o;try{o=e.document}catch(i){o=null}o&&o!=t?(e.stop?e.stop():e.document.execCommand("Stop"),n()):r()}),1)}r()}))}function Pr(e,t){var n=t.__WUJIE.proxyLocation;if(!e._hasPatch){try{Object.defineProperties(e,{baseURI:{configurable:!0,get:function(){return n.protocol+"//"+n.host+n.pathname},set:void 0},ownerDocument:{configurable:!0,get:function(){return t.document}},_hasPatch:{get:function(){return!0}}})}catch(ve){console.warn(ve)}be(t.__WUJIE.plugins,"patchElementHook",e,t)}}function Wr(e){e.addEventListener("hashchange",(function(){return ir(e)})),e.addEventListener("popstate",(function(){ir(e)}))}function Lr(e,t,n){var r=e,o=r.src,i=r.module,c=r.content,u=r.crossorigin,a=r.crossoriginType,s=r.async,l=r.attrs,f=r.callback,d=r.onload,p=t.document.createElement("script"),h=t.document.createElement("script"),v=t.__WUJIE,y=v.replace,m=v.plugins,g=v.proxyLocation,w=dt({plugins:m,replace:y}),b=w(c,o,se(g));if(l&&Object.keys(l).filter((function(t){return!Object.keys(e).includes(t)})).forEach((function(e){return p.setAttribute(e,String(l[e]))})),c){t.__WUJIE.degrade||i||(b="(function(window, self, global, location) {\n ".concat(b,"\n}).bind(window.__WUJIE.proxy)(\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxyLocation,\n);"));var E=Object.getOwnPropertyDescriptor(p,"src");if(null!==E&&void 0!==E&&E.configurable||!E)try{Object.defineProperty(p,"src",{get:function(){return o||""}})}catch(ve){console.warn(ve)}}else o&&p.setAttribute("src",o),u&&p.setAttribute("crossorigin",a);i&&p.setAttribute("type","module"),p.textContent=b||"",h.textContent="if(window.__WUJIE.execQueue && window.__WUJIE.execQueue.length){ window.__WUJIE.execQueue.shift()()}";var _=_n.call(t.document,"head"),x=function(){return!s&&_.appendChild(h)},O=function(){null===d||void 0===d||d(),x()};if(/^<!DOCTYPE html/i.test(b))return ve(A,e),x();n&&xe(p,Oe(n));var j=!c&&o;j&&(p.onload=O,p.onerror=O),_.appendChild(p),null===f||void 0===f||f(t),be(m,"appendOrInsertElementHook",p,t,n),!j&&O()}function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.document.createElement("iframe"),o="height:100%;width:100%";re(r,fr(fr({},n),{},{src:e,style:[o,n.style].join(";")})),qn(r,t)}function Cr(e,t,n,r,o){var i=window.document.createElement("iframe"),c=fr(fr({src:n,style:"display: none"},t),{},u({name:e.id},b,""));re(i,c),window.document.body.appendChild(i);var a=i.contentWindow;return pr(a,e,r),e.iframeReady=Sr(a).then((function(){a.__WUJIE||pr(a,e,r),jr(a,e,n,r),ue(a.__WUJIE.id)||a.history.replaceState(null,"",n+o)})),i}function Tr(e,t,n){var r=e.contentWindow.__WUJIE,o=r.shadowRoot,i=r.id,c=r.degrade,u=r.document,a=r.degradeAttrs,s=t;if(!/^http/.test(s)){var l=ie(s);s=n+l.pathname+l.search+l.hash,l=null}if(e.contentWindow.__WUJIE.hrefFlag=!0,c){var f=_n.call(e.contentDocument,"body");qn(u.documentElement,f),Ir(window.decodeURIComponent(s),ne(i).parentElement,a)}else Ir(s,o.host.parentElement,a);return ar(i,s),!0}function Ur(e,t,n,r){var o=new Proxy(e.contentWindow,{get:function(e,t){if("location"===t)return e.__WUJIE.proxyLocation;if("self"===t||"window"===t&&Object.getOwnPropertyDescriptor(window,"window").get)return e.__WUJIE.proxy;if("__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__"===t||"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"===t)return e[t];var n=Object.getOwnPropertyDescriptor(e,t);return!1===(null===n||void 0===n?void 0:n.configurable)&&!1===(null===n||void 0===n?void 0:n.writable)?e[t]:te(e,t)},set:function(e,t,n){return ee(n),e[t]=n,!0},has:function(e,t){return t in e}}),i=new Proxy({},{get:function(t,n){var r=window.document,o=e.contentWindow.__WUJIE,i=o.shadowRoot,c=o.proxyLocation;i||Pe();var u=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__,a=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__;if("createElement"===n||"createTextNode"===n)return new Proxy(r[n],{apply:function(t,r,o){var i="createElement"===n?u:a,c=i.apply(e.contentDocument,o);return Pr(c,e.contentWindow),c}});if("documentURI"===n||"URL"===n)return c.href;if("getElementsByTagName"===n||"getElementsByClassName"===n||"getElementsByName"===n)return new Proxy(i.querySelectorAll,{apply:function(t,r,o){var c,u=o[0];if(r!==e.contentDocument)return r[n].apply(r,o);if("getElementsByTagName"===n&&"script"===u)return e.contentDocument.scripts;"getElementsByClassName"===n&&(u="."+u),"getElementsByName"===n&&(u='[name="'.concat(u,'"]'));try{c=t.call(i,u)}catch(ve){c=[]}return c}});if("getElementById"===n)return new Proxy(i.querySelector,{apply:function(t,r,o){var c;if(r!==e.contentDocument)return null===(c=r[n])||void 0===c?void 0:c.apply(r,o);try{return t.call(i,'[id="'.concat(o[0],'"]'))||e.contentWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__.call(e.contentWindow.document,"#".concat(o[0]))}catch(ve){return he(B),null}}});if("querySelector"===n||"querySelectorAll"===n){var s={querySelector:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__",querySelectorAll:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"};return new Proxy(i[n],{apply:function(t,r,o){var c;return r!==e.contentDocument?null===(c=r[n])||void 0===c?void 0:c.apply(r,o):t.apply(i,o)||("base"===o[0]?null:e.contentWindow[s[n]].call(e.contentWindow.document,o[0]))}})}if("documentElement"===n||"scrollingElement"===n)return i.firstElementChild;if("forms"===n)return i.querySelectorAll("form");if("images"===n)return i.querySelectorAll("img");if("links"===n)return i.querySelectorAll("a");var l,f=tn.ownerProperties,d=tn.shadowProperties,p=tn.shadowMethods,h=tn.documentProperties,v=tn.documentMethods;return f.concat(d).includes(n.toString())?"activeElement"===n&&null===i.activeElement?i.body:i[n]:p.includes(n.toString())?null!==(l=te(i,n))&&void 0!==l?l:te(r,n):h.includes(n.toString())?r[n]:v.includes(n.toString())?te(r,n):void 0}}),c=new Proxy({},{get:function(o,i){var c=e.contentWindow.location;return"host"===i||"hostname"===i||"protocol"===i||"port"===i||"origin"===i?t[i]:"href"===i?c[i].replace(n,r):"reload"===i?(he(C),function(){return null}):"replace"===i?new Proxy(c[i],{apply:function(e,t,o){var i;return e.call(c,null===(i=o[0])||void 0===i?void 0:i.replace(r,n))}}):te(c,i)},set:function(t,n,o){return"href"===n?Tr(e,o,r):(e.contentWindow.location[n]=o,!0)},ownKeys:function(){return Object.keys(e.contentWindow.location).filter((function(e){return"reload"!==e}))},getOwnPropertyDescriptor:function(e,t){return{enumerable:!0,configurable:!0,value:this[t]}}});return{proxyWindow:o,proxyDocument:i,proxyLocation:c}}function Mr(e,t,n,r){var o={},i=e.contentWindow.__WUJIE;Object.defineProperties(o,{createElement:{get:function(){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__.apply(e.contentDocument,n);return Pr(o,e.contentWindow),o}}},createTextNode:{get:function(){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__.apply(e.contentDocument,n);return Pr(o,e.contentWindow),o}}},documentURI:{get:function(){return i.proxyLocation.href}},URL:{get:function(){return i.proxyLocation.href}},getElementsByTagName:{get:function(){return function(){var t=arguments.length<=0?void 0:arguments[0];return"script"===t?e.contentDocument.scripts:i.document.getElementsByTagName(t)}}}});var c=tn.modifyLocalProperties,u=tn.modifyProperties,a=tn.ownerProperties,s=tn.shadowProperties,l=tn.shadowMethods,f=tn.documentProperties,d=tn.documentMethods;u.filter((function(e){return!c.includes(e)})).concat(a,s,l,f,d).forEach((function(e){Object.defineProperty(o,e,{get:function(){var t,n=null===(t=i.document)||void 0===t?void 0:t[e];return Y(n)?n.bind(i.document):n}})}));var p={},h=e.contentWindow.location,v=Object.keys(h),y=["host","hostname","port","protocol","port"];return y.forEach((function(e){p[e]=t[e]})),Object.defineProperties(p,{href:{get:function(){return h.href.replace(n,r)},set:function(t){Tr(e,t,r)}},reload:{get:function(){return he(C),function(){return null}}}}),v.filter((function(e){return!y.concat(["href","reload"]).includes(e)})).forEach((function(e){Object.defineProperty(p,e,{get:function(){return Y(h[e])?h[e].bind(h):h[e]}})})),{proxyDocument:o,proxyLocation:p}}var Rr=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.appEventObjMap:new Map,Dr=function(){function e(t){Rt(this,e),this.id=t,this.$clear(),Rr.get(this.id)||Rr.set(this.id,{}),this.eventObj=Rr.get(this.id)}return At(e,[{key:"$on",value:function(e,t){var n=this.eventObj[e];return n?(n.includes(t)||n.push(t),this):(this.eventObj[e]=[t],this)}},{key:"$onAll",value:function(e){return this.$on(S,e)}},{key:"$once",value:function(e,t){var n=function(){this.$off(e,n),t.apply(void 0,arguments)}.bind(this);this.$on(e,n)}},{key:"$off",value:function(e,t){var n,r=this.eventObj[e];if(!e||!r||!r.length)return he("".concat(e," ").concat(M)),this;var o=r.length;while(o--)if(n=r[o],n===t){r.splice(o,1);break}return this}},{key:"$offAll",value:function(e){return this.$off(S,e)}},{key:"$emit",value:function(e){var t=[],n=[];if(Rr.forEach((function(r){r[e]&&(t=t.concat(r[e])),r[S]&&(n=n.concat(r[S]))})),!e||0===t.length&&0===n.length)he("".concat(e," ").concat(M));else try{for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];for(var c=0,u=t.length;c<u;c++){var a;(a=t)[c].apply(a,o)}for(var s=0,l=n.length;s<l;s++){var f;(f=n)[s].apply(f,[e].concat(o))}}catch(d){ve(d)}return this}},{key:"$clear",value:function(){var e,t=null!==(e=Rr.get(this.id))&&void 0!==e?e:{},n=Object.keys(t);return n.forEach((function(e){return delete t[e]})),this}}]),e}();function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nr=function(){function e(t){Rt(this,e),u(this,"elementEventCacheMap",new WeakMap),window.__POWERED_BY_WUJIE__?this.inject=window.__WUJIE.inject:this.inject={idToSandboxMap:Gt,appEventObjMap:Rr,mainHostPath:window.location.protocol+"//"+window.location.host};var n=t.name,r=t.url,o=t.attrs,i=t.fiber,c=t.degradeAttrs,a=t.degrade,s=t.lifecycles,l=t.plugins;this.id=n,this.fiber=i,this.degrade=a||!Q,this.bus=new Dr(this.id),this.url=r,this.degradeAttrs=c,this.provide={bus:this.bus},this.styleSheetElements=[],this.execQueue=[],this.lifecycles=s,this.plugins=gt(l);var f=oe(r),d=f.urlElement,p=f.appHostPath,h=f.appRoutePath,v=this.inject.mainHostPath;if(this.iframe=Cr(this,o,v,p,h),this.degrade){var y=Mr(this.iframe,d,v,p),m=y.proxyDocument,g=y.proxyLocation;this.proxyDocument=m,this.proxyLocation=g}else{var w=Ur(this.iframe,d,v,p),b=w.proxyWindow,E=w.proxyDocument,_=w.proxyLocation;this.proxy=b,this.proxyDocument=E,this.proxyLocation=_}this.provide.location=this.proxyLocation,Kt(this.id,this)}return At(e,[{key:"active",value:function(){var e=s(f().mark((function e(t){var n,r,o,i,c,u,a,s,l,d,p,h,v,y,m,g,w=this;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.sync,r=t.url,o=t.el,i=t.template,c=t.props,u=t.alive,a=t.prefix,s=t.fetch,l=t.replace,this.url=r,this.sync=n,this.alive=u,this.hrefFlag=!1,this.prefix=null!==a&&void 0!==a?a:this.prefix,this.replace=null!==l&&void 0!==l?l:this.replace,this.provide.props=null!==c&&void 0!==c?c:this.provide.props,this.activeFlag=!0,e.next=11,this.iframeReady;case 11:if(d=this.iframe.contentWindow,p=s?function(e,t){return s("string"===typeof e?le(e,w.proxyLocation.href):e,t)}:this.fetch,p&&(d.fetch=p,this.fetch=p),this.execFlag&&this.alive||cr(d),ir(d),this.template=null!==i&&void 0!==i?i:this.template,!this.degrade){e.next=38;break}if(h=_n.call(d.document,"body"),v=Qn(this.id,null!==o&&void 0!==o?o:h,this.degradeAttrs),y=v.iframe,m=v.container,this.el=m,o&&tr(h),br(y.contentWindow,d),y.contentWindow.onunload=function(){w.unmount()},!this.document){e.next=34;break}if(!this.alive){e.next=29;break}y.contentDocument.replaceChild(this.document.documentElement,y.contentDocument.documentElement),gr(y.contentDocument.documentElement,d),e.next=32;break;case 29:return e.next=31,Zn(y.contentDocument,this.iframe.contentWindow,this.template);case 31:wr(this.document.documentElement,y.contentDocument.documentElement,d);case 32:e.next=36;break;case 34:return e.next=36,Zn(y.contentDocument,this.iframe.contentWindow,this.template);case 36:return this.document=y.contentDocument,e.abrupt("return");case 38:if(!this.shadowRoot){e.next=44;break}if(this.el=qn(this.shadowRoot.host,o),!this.alive){e.next=42;break}return e.abrupt("return");case 42:e.next=46;break;case 44:g=_n.call(d.document,"body"),this.el=qn(Hn(this.id),null!==o&&void 0!==o?o:g);case 46:return e.next=48,Xn(this.shadowRoot,d,this.template);case 48:this.patchCssRules(),this.provide.shadowRoot=this.shadowRoot;case 50:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestIdleCallback",value:function(e){var t=this;return de((function(){t.iframe&&e.apply(t)}))}},{key:"start",value:function(){var e=s(f().mark((function e(t){var n,r,o,i,c,u,a,s,l,d=this;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.execFlag=!0,e.next=3,t();case 3:if(n=e.sent,this.iframe){e.next=6;break}return e.abrupt("return");case 6:return r=this.iframe.contentWindow,r.__POWERED_BY_WUJIE__=!0,o=pt("jsBeforeLoaders",this.plugins),i=pt("jsAfterLoaders",this.plugins),c=[],u=[],a=[],n.forEach((function(e){e.defer?a.push(e):e.async?u.push(e):c.push(e)})),o.forEach((function(e){d.execQueue.push((function(){return d.fiber?d.requestIdleCallback((function(){return Lr(e,r)})):Lr(e,r)}))})),c.concat(a).forEach((function(e){d.execQueue.push((function(){return e.contentPromise.then((function(t){return d.fiber?d.requestIdleCallback((function(){return Lr(kr(kr({},e),{},{content:t}),r)})):Lr(kr(kr({},e),{},{content:t}),r)}))}))})),u.forEach((function(e){e.contentPromise.then((function(t){d.fiber?d.requestIdleCallback((function(){return Lr(kr(kr({},e),{},{content:t}),r)})):Lr(kr(kr({},e),{},{content:t}),r)}))})),this.execQueue.push(this.fiber?function(){return d.requestIdleCallback((function(){return d.mount()}))}:function(){return d.mount()}),s=function(){var e;Se(r.document,"DOMContentLoaded"),Se(r,"DOMContentLoaded"),null===(e=d.execQueue.shift())||void 0===e||e()},this.execQueue.push(this.fiber?function(){return d.requestIdleCallback(s)}:s),i.forEach((function(e){d.execQueue.push((function(){return d.fiber?d.requestIdleCallback((function(){return Lr(e,r)})):Lr(e,r)}))})),l=function(){var e;Se(r.document,"readystatechange"),Se(r,"load"),null===(e=d.execQueue.shift())||void 0===e||e()},this.execQueue.push(this.fiber?function(){return d.requestIdleCallback(l)}:l),!this.alive&&H(this.iframe.contentWindow.__WUJIE_UNMOUNT)||rr(this.el),this.execQueue.shift()(),e.abrupt("return",new Promise((function(e){d.execQueue.push((function(){var t;e(),null===(t=d.execQueue.shift())||void 0===t||t()}))})));case 26:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"mount",value:function(){var e;if(!this.mountFlag){var t,n,r,o,i,c;if(H(this.iframe.contentWindow.__WUJIE_MOUNT))rr(this.el),null===(t=this.lifecycles)||void 0===t||null===(n=t.beforeMount)||void 0===n||n.call(t,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_MOUNT(),null===(r=this.lifecycles)||void 0===r||null===(o=r.afterMount)||void 0===o||o.call(r,this.iframe.contentWindow),this.mountFlag=!0;if(this.alive)null===(i=this.lifecycles)||void 0===i||null===(c=i.activated)||void 0===c||c.call(i,this.iframe.contentWindow);null===(e=this.execQueue.shift())||void 0===e||e()}}},{key:"unmount",value:function(){var e,t,n,r,o,i;(this.activeFlag=!1,ur(),this.alive)&&(null===(e=this.lifecycles)||void 0===e||null===(t=e.deactivated)||void 0===t||t.call(e,this.iframe.contentWindow));this.mountFlag&&(!H(this.iframe.contentWindow.__WUJIE_UNMOUNT)||this.alive||this.hrefFlag||(null===(n=this.lifecycles)||void 0===n||null===(r=n.beforeUnmount)||void 0===r||r.call(n,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_UNMOUNT(),null===(o=this.lifecycles)||void 0===o||null===(i=o.afterUnmount)||void 0===i||i.call(o,this.iframe.contentWindow),this.mountFlag=!1,this.bus.$clear(),this.degrade||(tr(this.shadowRoot),Rn(this.head),Rn(this.body)),tr(this.head),tr(this.body)))}},{key:"destroy",value:function(){if(this.unmount(),this.bus.$clear(),this.shadowRoot=null,this.proxy=null,this.proxyDocument=null,this.proxyLocation=null,this.execQueue=null,this.provide=null,this.degradeAttrs=null,this.styleSheetElements=null,this.bus=null,this.replace=null,this.fetch=null,this.execFlag=null,this.mountFlag=null,this.hrefFlag=null,this.document=null,this.head=null,this.body=null,this.elementEventCacheMap=null,this.lifecycles=null,this.plugins=null,this.provide=null,this.inject=null,this.execQueue=null,this.prefix=null,this.el&&(tr(this.el),this.el=null),this.iframe){var e,t=this.iframe.contentWindow;null!==t&&void 0!==t&&t.__WUJIE_EVENTLISTENER__&&t.__WUJIE_EVENTLISTENER__.forEach((function(e){t.removeEventListener(e.type,e.listener,e.options)})),null===(e=this.iframe.parentNode)||void 0===e||e.removeChild(this.iframe),this.iframe=null}Zt(this.id)}},{key:"rebuildStyleSheets",value:function(){var e=this;this.styleSheetElements&&this.styleSheetElements.length&&this.styleSheetElements.forEach((function(t){dn.call(e.degrade?e.document.head:e.shadowRoot.head,t)})),this.patchCssRules()}},{key:"patchCssRules",value:function(){if(!this.degrade&&!this.shadowRoot.host.hasAttribute(O)){var e=or(Array.from(this.iframe.contentDocument.querySelectorAll("style")).map((function(e){return e.sheet}))),t=m(e,2),n=t[0],r=t[1];n&&(this.shadowRoot.head.appendChild(n),this.styleSheetElements.push(n)),r&&this.shadowRoot.host.appendChild(r),(n||r)&&this.shadowRoot.host.setAttribute(O,"")}}}]),e}();function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Br=new Dr(Date.now().toString());function Hr(e){e.name&&en(e.name,e)}function qr(e){return Qr.apply(this,arguments)}function Qr(){return Qr=s(f().mark((function e(t){var n,r,o,i,c,u,a,s,l,d,p,h,v,y,m,g,w,b,E,_,x,O,j,S,P,W,L,I,C,T,U,M,R,D,A,k,N,J,F;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=Xt(t.name),i=Vt(t.name),c=je(t,i),u=c.name,a=c.url,s=c.html,l=c.replace,d=c.fetch,p=c.props,h=c.attrs,v=c.degradeAttrs,y=c.fiber,m=c.alive,g=c.degrade,w=c.sync,b=c.prefix,E=c.el,_=c.loading,x=c.plugins,O=c.lifecycles,!o){e.next=39;break}if(o.plugins=gt(x),o.lifecycles=O,j=o.iframe.contentWindow,!o.preload){e.next=11;break}return e.next=11,o.preload;case 11:if(!m){e.next=26;break}return e.next=14,o.active({url:a,sync:w,prefix:b,el:E,props:p,alive:m,fetch:d,replace:l});case 14:if(o.execFlag){e.next=22;break}return null===(W=o.lifecycles)||void 0===W||null===(L=W.beforeLoad)||void 0===L||L.call(W,o.iframe.contentWindow),e.next=18,Mt({url:a,html:s,opts:{fetch:d||window.fetch,plugins:o.plugins,loadError:o.lifecycles.loadError,fiber:y}});case 18:return I=e.sent,C=I.getExternalScripts,e.next=22,o.start(C);case 22:return null===(S=o.lifecycles)||void 0===S||null===(P=S.activated)||void 0===P||P.call(S,o.iframe.contentWindow),e.abrupt("return",o.destroy);case 26:if(!H(j.__WUJIE_MOUNT)){e.next=38;break}return o.unmount(),e.next=30,o.active({url:a,sync:w,prefix:b,el:E,props:p,alive:m,fetch:d,replace:l});case 30:return o.rebuildStyleSheets(),null===(T=o.lifecycles)||void 0===T||null===(U=T.beforeMount)||void 0===U||U.call(T,o.iframe.contentWindow),j.__WUJIE_MOUNT(),null===(M=o.lifecycles)||void 0===M||null===(R=M.afterMount)||void 0===R||R.call(M,o.iframe.contentWindow),o.mountFlag=!0,e.abrupt("return",o.destroy);case 38:o.destroy();case 39:return nr(E,_),D=new Nr({name:u,url:a,attrs:h,degradeAttrs:v,fiber:y,degrade:g,plugins:x,lifecycles:O}),null===(n=D.lifecycles)||void 0===n||null===(r=n.beforeLoad)||void 0===r||r.call(n,D.iframe.contentWindow),e.next=44,Mt({url:a,html:s,opts:{fetch:d||window.fetch,plugins:D.plugins,loadError:D.lifecycles.loadError,fiber:y}});case 44:return A=e.sent,k=A.template,N=A.getExternalScripts,J=A.getExternalStyleSheets,e.next=50,St(D,k,J);case 50:return F=e.sent,e.next=53,D.active({url:a,sync:w,prefix:b,template:F,el:E,props:p,alive:m,fetch:d,replace:l});case 53:return e.next=55,D.start(N);case 55:return e.abrupt("return",D.destroy);case 56:case"end":return e.stop()}}),e)}))),Qr.apply(this,arguments)}function $r(e){de((function(){if(!Xt(e.name)&&!ue(e.name)){var t=Vt(e.name),n=je(Fr({},e),t),r=n.name,o=n.url,i=n.html,c=n.props,u=n.alive,a=n.replace,l=n.fetch,d=n.exec,p=n.attrs,h=n.degradeAttrs,v=n.fiber,y=n.degrade,m=n.prefix,g=n.plugins,w=n.lifecycles,b=new Nr({name:r,url:o,attrs:p,degradeAttrs:h,fiber:v,degrade:y,plugins:g,lifecycles:w});if(b.preload)return b.preload;var E=function(){var e=s(f().mark((function e(){var t,n,r,s,p,h,y;return f().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return null===(t=b.lifecycles)||void 0===t||null===(n=t.beforeLoad)||void 0===n||n.call(t,b.iframe.contentWindow),e.next=3,Mt({url:o,html:i,opts:{fetch:l||window.fetch,plugins:b.plugins,loadError:b.lifecycles.loadError,fiber:v}});case 3:return r=e.sent,s=r.template,p=r.getExternalScripts,h=r.getExternalStyleSheets,e.next=9,St(b,s,h);case 9:return y=e.sent,e.next=12,b.active({url:o,props:c,prefix:m,alive:u,template:y,fetch:l,replace:a});case 12:if(!d){e.next=17;break}return e.next=15,b.start(p);case 15:e.next=19;break;case 17:return e.next=19,p();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();b.preload=E()}}))}function zr(e){var t=Xt(e);t&&t.destroy()}window.__WUJIE&&!window.__POWERED_BY_WUJIE__&&Pe(),sr(),Bn(),Q||he(D);var Yr=r(9274);const Gr=(0,Yr.defineComponent)({name:"MicroIceApp",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},name:{type:String,default:""},loading:{type:HTMLElement,default:void 0},url:{type:String,default:""},sync:{type:Boolean,default:!1},prefix:{type:Object,default:void 0},alive:{type:Boolean,default:!1},props:{type:Object,default:void 0},replace:{type:Function,default:void 0},fetch:{type:Function,default:void 0},fiber:{type:Boolean,default:void 0},degrade:{type:Boolean,default:!1},plugins:{type:Array,default:null},beforeLoad:{type:Function,default:null},beforeMount:{type:Function,default:null},afterMount:{type:Function,default:null},beforeUnmount:{type:Function,default:null},afterUnmount:{type:Function,default:null},activated:{type:Function,default:null},deactivated:{type:Function,default:null},loadError:{type:Function,default:null}},setup(e,{emit:t}){const n=(0,Yr.ref)(null);let r=Promise.resolve();const o=(e,...n)=>{t(e,...n)},i=async()=>{try{await qr({name:e.name,url:e.url,el:n.value,loading:e.loading,alive:e.alive,fetch:e.fetch,props:e.props,replace:e.replace,sync:e.sync,prefix:e.prefix,fiber:e.fiber,degrade:e.degrade,plugins:e.plugins,beforeLoad:e.beforeLoad,beforeMount:e.beforeMount,afterMount:e.afterMount,beforeUnmount:e.beforeUnmount,afterUnmount:e.afterUnmount,activated:e.activated,deactivated:e.deactivated,loadError:e.loadError})}catch(ve){console.log(ve)}},c=()=>{r=r.then(i)};return(0,Yr.onMounted)((()=>{Br.$onAll(o),c(),(0,Yr.watch)((()=>e.name+e.url),(()=>c()))})),(0,Yr.onBeforeUnmount)((()=>{Br.$offAll(o)})),()=>(0,Yr.h)("div",{style:{width:e.width,height:e.height},ref:n})}});Gr.install=function(e){e.component("MicroIceApp",Gr)};var Xr=Gr;const Vr=[Xr],Kr=e=>{Vr.map((t=>e.component("MicroIceApp",t)))};var Zr={install:Kr},eo=Zr}(),o}()}));
3
3
  //# sourceMappingURL=index.umd.min.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-ice-vue3-ts",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "main": "lib/index.min.js",
6
6
  "module": "lib/index.esm.js",