@lynx-js/web-core-wasm-canary 0.0.1-canary-20260116-67bcf4c5 → 0.0.1-canary-20260119-609be14f
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/CHANGELOG.md +2 -2
- package/binary/client/client.d.ts +225 -216
- package/binary/client/client.js +781 -813
- package/binary/client/client_bg.wasm +0 -0
- package/binary/client/client_debug.d.ts +225 -216
- package/binary/client/client_debug.js +808 -840
- package/binary/client/client_debug_bg.wasm +0 -0
- package/binary/client/client_debug_bg.wasm.d.ts +30 -30
- package/binary/encode/encode.d.ts +134 -124
- package/binary/encode/encode.js +714 -10
- package/binary/encode/encode_bg.wasm +0 -0
- package/binary/encode/encode_debug.d.ts +134 -124
- package/binary/encode/encode_debug.js +786 -10
- package/binary/encode/encode_debug_bg.wasm +0 -0
- package/binary/encode/encode_debug_bg.wasm.d.ts +12 -12
- package/dist/client_prod/static/js/async/web-core-template-loader-thread.js +4 -4
- package/dist/client_prod/static/js/client.js +2 -2
- package/dist/client_prod/static/wasm/{7ff75609.module.wasm → 3d7e607b.module.wasm} +0 -0
- package/package.json +2 -2
- package/binary/encode/encode_bg.js +0 -749
- package/binary/encode/encode_debug_bg.js +0 -822
|
Binary file
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_styleinfodecoder_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_operation_free: (a: number, b: number) => void;
|
|
4
6
|
export const __wbg_decodedstyledata_free: (a: number, b: number) => void;
|
|
5
7
|
export const decodedstyledata_new: (a: any) => [number, number, number];
|
|
6
8
|
export const decodedstyledata_style_content: (a: number) => [number, number];
|
|
@@ -8,17 +10,6 @@ export const decodedstyledata_font_face_content: (a: number) => [number, number]
|
|
|
8
10
|
export const decodedstyledata_query_css_og_declarations_by_css_id: (a: number, b: number, c: number, d: number) => [number, number];
|
|
9
11
|
export const decodedstyledata_decode_into: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
10
12
|
export const decodedstyledata_encode_from_raw_style_info: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
11
|
-
export const __wbg_rawelementtemplate_free: (a: number, b: number) => void;
|
|
12
|
-
export const rawelementtemplate_new: () => number;
|
|
13
|
-
export const rawelementtemplate_append_to_root: (a: number, b: number) => void;
|
|
14
|
-
export const rawelementtemplate_create_element: (a: number, b: number, c: number, d: number) => void;
|
|
15
|
-
export const rawelementtemplate_set_attribute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
16
|
-
export const rawelementtemplate_set_dataset: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
17
|
-
export const rawelementtemplate_append_child: (a: number, b: number, c: number) => void;
|
|
18
|
-
export const rawelementtemplate_set_cross_thread_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
19
|
-
export const rawelementtemplate_set_attribute_slot: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
20
|
-
export const rawelementtemplate_append_element_slot: (a: number, b: number, c: number) => void;
|
|
21
|
-
export const __wbg_operation_free: (a: number, b: number) => void;
|
|
22
13
|
export const __wbg_elementtemplatesection_free: (a: number, b: number) => void;
|
|
23
14
|
export const elementtemplatesection_new: () => number;
|
|
24
15
|
export const elementtemplatesection_from_encoded: (a: any) => [number, number, number];
|
|
@@ -40,7 +31,16 @@ export const ruleprelude_new: () => number;
|
|
|
40
31
|
export const ruleprelude_push_selector: (a: number, b: number) => void;
|
|
41
32
|
export const selector_new: () => number;
|
|
42
33
|
export const selector_push_one_selector_section: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
43
|
-
export const
|
|
34
|
+
export const __wbg_rawelementtemplate_free: (a: number, b: number) => void;
|
|
35
|
+
export const rawelementtemplate_new: () => number;
|
|
36
|
+
export const rawelementtemplate_append_to_root: (a: number, b: number) => void;
|
|
37
|
+
export const rawelementtemplate_create_element: (a: number, b: number, c: number, d: number) => void;
|
|
38
|
+
export const rawelementtemplate_set_attribute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
39
|
+
export const rawelementtemplate_set_dataset: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
40
|
+
export const rawelementtemplate_append_child: (a: number, b: number, c: number) => void;
|
|
41
|
+
export const rawelementtemplate_set_cross_thread_event: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
42
|
+
export const rawelementtemplate_set_attribute_slot: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
43
|
+
export const rawelementtemplate_append_element_slot: (a: number, b: number, c: number) => void;
|
|
44
44
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
45
45
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
46
46
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(()=>{"use strict";var e={6462(e,t,n){e.exports=n.p+"static/wasm/7ff75609.module.wasm"},5704(e,t,n){let r;n.r(t),n.d(t,{DecodedStyleData:()=>E,ElementTemplateSection:()=>O,EventInfo:()=>j,MainThreadWasmContext:()=>U,RawStyleInfo:()=>A,Rule:()=>L,RulePrelude:()=>M,Selector:()=>$,default:()=>N,initSync:()=>T});let _=null;function i(){return(null===_||0===_.byteLength)&&(_=new Uint8Array(r.memory.buffer)),_}let o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});o.decode();let s=0;function a(e,t){var n;return e>>>=0,n=e,(s+=t)>=0x7ff00000&&((o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),s=t),o.decode(i().subarray(n,n+t))}let l=0,c=new TextEncoder;function b(e,t,n){if(void 0===n){let n=c.encode(e),r=t(n.length,1)>>>0;return i().subarray(r,r+n.length).set(n),l=n.length,r}let r=e.length,_=t(r,1)>>>0,o=i(),s=0;for(;s<r;s++){let t=e.charCodeAt(s);if(t>127)break;o[_+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),_=n(_,r,r=s+3*e.length,1)>>>0;let t=i().subarray(_+s,_+r);s+=c.encodeInto(e,t).written,_=n(_,r,s,1)>>>0}return l=s,_}"encodeInto"in c||(c.encodeInto=function(e,t){let n=c.encode(e);return t.set(n),{read:e.length,written:n.length}});let f=null;function u(){return(null===f||!0===f.buffer.detached||void 0===f.buffer.detached&&f.buffer!==r.memory.buffer)&&(f=new DataView(r.memory.buffer)),f}function d(e){return null==e}function w(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function g(e,t){try{return e.apply(this,t)}catch(t){let e=w(t);r.__wbindgen_exn_store(e)}}function p(e,t){return e>>>=0,i().subarray(e/1,e/1+t)}function h(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}function y(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function m(e,t){e>>>=0;let n=u(),_=[];for(let i=e;i<e+4*t;i+=4)_.push(r.__wbindgen_externrefs.get(n.getUint32(i,!0)));return r.__externref_drop_slice(e,t),_}let v=null;function x(e,t){let n=t(4*e.length,4)>>>0;return((null===v||0===v.byteLength)&&(v=new Uint32Array(r.memory.buffer)),v).set(e,n/4),l=e.length,n}let S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decodedstyledata_free(e>>>0,1));class E{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_decodedstyledata_free(e,0)}constructor(e){const t=r.decodedstyledata_new(e);if(t[2])throw h(t[1]);return this.__wbg_ptr=t[0]>>>0,S.register(this,this.__wbg_ptr,this),this}get style_content(){let e,t;try{let n=r.decodedstyledata_style_content(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get font_face_content(){let e,t;try{let n=r.decodedstyledata_font_face_content(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}query_css_og_declarations_by_css_id(e,t){let n,_;try{let i=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=w(e[t]);u().setUint32(n+4*t,r,!0)}return l=e.length,n}(t,r.__wbindgen_malloc),o=l,s=r.decodedstyledata_query_css_og_declarations_by_css_id(this.__wbg_ptr,e,i,o);return n=s[0],_=s[1],a(s[0],s[1])}finally{r.__wbindgen_free(n,_,1)}}static decode_into(e,t,n){var _=d(t)?0:b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;let o=r.decodedstyledata_decode_into(e,_,i,n);if(o[2])throw h(o[1]);return h(o[0])}static encode_from_raw_style_info(e,t,n){y(e,A);var _=e.__destroy_into_raw(),i=d(n)?0:b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;let s=r.decodedstyledata_encode_from_raw_style_info(_,t,i,o);if(s[2])throw h(s[1]);return h(s[0])}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);let C="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_elementtemplatesection_free(e>>>0,1));class O{static __wrap(e){e>>>=0;let t=Object.create(O.prototype);return t.__wbg_ptr=e,C.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_elementtemplatesection_free(e,0)}static from_encoded(e){let t=r.elementtemplatesection_from_encoded(e);if(t[2])throw h(t[1]);return O.__wrap(t[0])}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);let R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1));class j{static __wrap(e){e>>>=0;let t=Object.create(j.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_eventinfo_free(e,0)}get name(){let e,t;try{let n=r.__wbg_get_eventinfo_name(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set name(e){let t=b(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.__wbg_set_eventinfo_name(this.__wbg_ptr,t,n)}get type(){let e,t;try{let n=r.__wbg_get_eventinfo_type(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set type(e){let t=b(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.__wbg_set_eventinfo_type(this.__wbg_ptr,t,n)}get function(){return r.__wbg_get_eventinfo_function(this.__wbg_ptr)}set function(e){r.__wbg_set_eventinfo_function(this.__wbg_ptr,e)}}Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);let I="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1));class U{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}__GetComponentID(e){let t,n=r.mainthreadwasmcontext___GetComponentID(this.__wbg_ptr,e);if(n[3])throw h(n[2]);return 0!==n[0]&&(t=a(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}__GetElementConfig(e){let t=r.mainthreadwasmcontext___GetElementConfig(this.__wbg_ptr,e);if(t[2])throw h(t[1]);return h(t[0])}__SetConfig(e,t){let n=r.mainthreadwasmcontext___SetConfig(this.__wbg_ptr,e,t);if(n[1])throw h(n[0])}__GetConfig(e){let t=r.mainthreadwasmcontext___GetConfig(this.__wbg_ptr,e);if(t[2])throw h(t[1]);return h(t[0])}__UpdateComponentID(e,t){var n=d(t)?0:b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l;let i=r.mainthreadwasmcontext___UpdateComponentID(this.__wbg_ptr,e,n,_);if(i[1])throw h(i[0])}__SetDataset(e,t,n){let _=r.mainthreadwasmcontext___SetDataset(this.__wbg_ptr,e,t,n);if(_[1])throw h(_[0])}__AddDataset(e,t,n){let _=r.mainthreadwasmcontext___AddDataset(this.__wbg_ptr,e,t,n);if(_[1])throw h(_[0])}__GetDataset(e){let t=r.mainthreadwasmcontext___GetDataset(this.__wbg_ptr,e);if(t[2])throw h(t[1]);return h(t[0])}__GetDataByKey(e,t){let n=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l,i=r.mainthreadwasmcontext___GetDataByKey(this.__wbg_ptr,e,n,_);if(i[2])throw h(i[1]);return h(i[0])}_wasm_elementFromBinary(e,t,n,_){let i=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l,s=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;y(_,O);let c=r.mainthreadwasmcontext__wasm_elementFromBinary(this.__wbg_ptr,e,i,o,s,a,_.__wbg_ptr);if(c[2])throw h(c[1]);return h(c[0])}__wasm_add_event_bts(e,t,n,_){let i=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l,s=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;var c=d(_)?0:b(_,r.__wbindgen_malloc,r.__wbindgen_realloc),f=l;r.mainthreadwasmcontext___wasm_add_event_bts(this.__wbg_ptr,e,i,o,s,a,c,f)}__wasm_add_event_run_worklet(e,t,n,_){let i=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l,s=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;r.mainthreadwasmcontext___wasm_add_event_run_worklet(this.__wbg_ptr,e,i,o,s,a,d(_)?0:w(_))}__GetEvent(e,t,n){let _=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,o=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;return r.mainthreadwasmcontext___GetEvent(this.__wbg_ptr,e,_,i,o,s)}__GetEvents(e){let t=r.mainthreadwasmcontext___GetEvents(this.__wbg_ptr,e);var n=m(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}dispatch_event_by_path(e,t,n,_){let i=x(e,r.__wbindgen_malloc),o=l,s=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,i,o,s,a,n,_)}__wasm_commonEventHandler(e,t,n){let _=x(t,r.__wbindgen_malloc),i=l,o=b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;r.mainthreadwasmcontext___wasm_commonEventHandler(this.__wbg_ptr,e,_,i,o,s)}__wasm_set_css_id(e,t){let n=x(e,r.__wbindgen_malloc),_=l;r.mainthreadwasmcontext___wasm_set_css_id(this.__wbg_ptr,n,_,t)}__wasm_AddInlineStyle_str_key(e,t,n){let _=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;var o=d(n)?0:b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;r.mainthreadwasmcontext___wasm_AddInlineStyle_str_key(this.__wbg_ptr,e,_,i,o,s)}__wasm_AddInlineStyle_number_key(e,t,n){var _=d(n)?0:b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;r.mainthreadwasmcontext___wasm_AddInlineStyle_number_key(this.__wbg_ptr,e,t,_,i)}__wasm_SetInlineStyles(e,t){let n=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l;return 0!==r.mainthreadwasmcontext___wasm_SetInlineStyles(this.__wbg_ptr,e,n,_)}constructor(e,t,n,_,i){const o=r.mainthreadwasmcontext_new(e,t,n,_,i);return this.__wbg_ptr=o>>>0,I.register(this,this.__wbg_ptr,this),this}__wasm_set_page_element_unique_id(e){r.mainthreadwasmcontext___wasm_set_page_element_unique_id(this.__wbg_ptr,e)}__CreateElementCommon(e,t,n,_){var i=d(_)?0:b(_,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;return r.mainthreadwasmcontext___CreateElementCommon(this.__wbg_ptr,e,t,d(n)?0x100000001:0|n,i,o)>>>0}__wasm_take_timing_flags(){let e=r.mainthreadwasmcontext___wasm_take_timing_flags(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}__wasm_get_unique_id_by_component_id(e){let t=b(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,_=r.mainthreadwasmcontext___wasm_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===_?void 0:_}__wasm_get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext___wasm_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);let k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1));class A{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rawstyleinfo_free(e,0)}constructor(){const e=r.rawstyleinfo_new();return this.__wbg_ptr=e>>>0,k.register(this,this.__wbg_ptr,this),this}append_import(e,t){r.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}push_rule(e,t){y(t,L);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);let D="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1));class L{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rule_free(e,0)}constructor(e){const t=b(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,_=r.rule_new(t,n);if(_[2])throw h(_[1]);return this.__wbg_ptr=_[0]>>>0,D.register(this,this.__wbg_ptr,this),this}set_prelude(e){y(e,M);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}push_declaration(e,t){let n=b(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l,i=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;r.rule_push_declaration(this.__wbg_ptr,n,_,i,o)}push_rule_children(e){y(e,L);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);let W="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1));class M{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,W.register(this,this.__wbg_ptr,this),this}push_selector(e){y(e,$);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);let F="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1));class ${__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,F.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=b(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l,i=b(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l,s=r.selector_push_one_selector_section(this.__wbg_ptr,n,_,i,o);if(s[1])throw h(s[0])}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);let z=new Set(["basic","cors","default"]);async function P(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&z.has(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function B(){let e={};return e.wbg={},e.wbg.__wbg_Error_e83987f665cf5504=function(e,t){return Error(a(e,t))},e.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(e,t){let n=b(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let _=1;_<n;_++)r+=", "+e(t[_]);return r+"]"}let _=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!_||!(_.length>1))return toString.call(t);if("Object"==(n=_[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
-
${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),_=l;u().setInt32(e+4,_,!0),u().setInt32(e+0,n,!0)},e.wbg.__wbg___wbindgen_is_null_5e69f72e906cc57c=function(e){return null===e},e.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(e){return void 0===e},e.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50=function(e,t){return e===t},e.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(e,t){let n="string"==typeof t?t:void 0;var _=d(n)?0:b(n,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;u().setInt32(e+4,i,!0),u().setInt32(e+0,_,!0)},e.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(e,t){throw Error(a(e,t))},e.wbg.__wbg_addEventListener_509b0778ff0f5d80=function(e,t,n){e.addEventListener(a(t,n))},e.wbg.__wbg_appendChild_aec7a8a4bd6cac61=function(){return g(function(e,t){return e.appendChild(t)},arguments)},e.wbg.__wbg_assign_322cd025d1feae78=function(e,t){return Object.assign(e,t)},e.wbg.__wbg_cloneNode_4ff138eda9fcd474=function(){return g(function(e,t){return e.cloneNode(0!==t)},arguments)},e.wbg.__wbg_content_a7b60fc3c1ac64bd=function(e){return e.content},e.wbg.__wbg_createElement_964ab674a0176cd8=function(){return g(function(e,t,n){return e.createElement(a(t,n))},arguments)},e.wbg.__wbg_disableElementEvent_54563f003ce6f005=function(e,t,n,r){e.disableElementEvent(t>>>0,a(n,r))},e.wbg.__wbg_done_2042aa2670fb1db1=function(e){return e.done},e.wbg.__wbg_enableElementEvent_b56814551effb38c=function(e,t,n,r){e.enableElementEvent(t>>>0,a(n,r))},e.wbg.__wbg_eventinfo_new=function(e){return j.__wrap(e)},e.wbg.__wbg_firstChild_dab0d4655f86bce5=function(e){let t=e.firstChild;return d(t)?0:w(t)},e.wbg.__wbg_getAttribute_a0d65fabc2f0d559=function(e,t,n,_){let i=t.getAttribute(a(n,_));var o=d(i)?0:b(i,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;u().setInt32(e+4,s,!0),u().setInt32(e+0,o,!0)},e.wbg.__wbg_get_7bed016f185add81=function(e,t){return e[t>>>0]},e.wbg.__wbg_get_efcb449f58ec27c2=function(){return g(function(e,t){return Reflect.get(e,t)},arguments)},e.wbg.__wbg_has_787fafc980c3ccdb=function(){return g(function(e,t){return Reflect.has(e,t)},arguments)},e.wbg.__wbg_keys_b4d27b02ad14f4be=function(e){return Object.keys(e)},e.wbg.__wbg_length_69bca3cb64fc8748=function(e){return e.length},e.wbg.__wbg_length_cdd215e10d9dd507=function(e){return e.length},e.wbg.__wbg_loadInternalWebElement_8cae19b87cc26220=function(e,t){e.loadInternalWebElement(t>>>0)},e.wbg.__wbg_loadUnknownElement_762c72a091c9dc9e=function(e,t,n){e.loadUnknownElement(a(t,n))},e.wbg.__wbg_markExposureRelatedElementByUniqueId_c37ed9a4da654c4e=function(e,t,n){e.markExposureRelatedElementByUniqueId(t>>>0,0!==n)},e.wbg.__wbg_new_1acc0b6eea89d040=function(){return{}},e.wbg.__wbg_new_from_slice_92f4d78ca282a2d2=function(e,t){return new Uint8Array(p(e,t))},e.wbg.__wbg_next_020810e0ae8ebcb0=function(){return g(function(e){return e.next()},arguments)},e.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(e,t,n){Uint8Array.prototype.set.call(p(e,t),n)},e.wbg.__wbg_publishEvent_9003166a9524dc81=function(e,t,n,r,_,i,o,s,l,c){e.publishEvent(a(t,n),0===r?void 0:a(r,_),i,o>>>0,s,l>>>0,c)},e.wbg.__wbg_querySelectorAll_28da62a91120d3e9=function(){return g(function(e,t,n){return e.querySelectorAll(a(t,n))},arguments)},e.wbg.__wbg_removeAttribute_993c4bef8df6e74d=function(){return g(function(e,t,n){e.removeAttribute(a(t,n))},arguments)},e.wbg.__wbg_removeProperty_f76e32d12224854d=function(){return g(function(e,t,n,_){let i=b(t.removeProperty(a(n,_)),r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;u().setInt32(e+4,o,!0),u().setInt32(e+0,i,!0)},arguments)},e.wbg.__wbg_runWorklet_6d04359b8a8c370f=function(e,t,n,r,_,i,o){e.runWorklet(t,n,r>>>0,_,i>>>0,o)},e.wbg.__wbg_setAttribute_9bad76f39609daac=function(){return g(function(e,t,n,r,_){e.setAttribute(a(t,n),a(r,_))},arguments)},e.wbg.__wbg_setProperty_7b188d7e71d4aca8=function(){return g(function(e,t,n,r,_){e.setProperty(a(t,n),a(r,_))},arguments)},e.wbg.__wbg_set_c2abbebe8b9ebee1=function(){return g(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_style_763a7ccfd47375da=function(e){return e.style},e.wbg.__wbg_value_692627309814bb8c=function(e){return e.value},e.wbg.__wbg_values_fea03b2a33fe593c=function(e){return e.values()},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){return a(e,t)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return e},e.wbg.__wbindgen_init_externref_table=function(){let e=r.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_object_is_undefined=function(e){return void 0===e},e}function q(e,t){return r=e.exports,G.__wbindgen_wasm_module=t,f=null,v=null,_=null,r.__wbindgen_start(),r}function T(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=B();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),q(new WebAssembly.Instance(e,t),e)}async function G(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(n(6462),n.b));let t=B();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:_,module:i}=await P(await e,t);return q(_,i)}let N=G},446(e,t,n){n.a(e,async function(e,r){try{n.d(t,{g:()=>o});var _=n(9521),i=e([_]);function o(e,t,n){let r=new _.wasmInstance.RawStyleInfo;for(let[t,n]of Object.entries(e)){let e=parseInt(t,10);for(let t of(n.imports,n.rules)){let n=new _.wasmInstance.Rule("StyleRule");for(let[e,r]of t.decl)n.push_declaration(e,r);let i=new _.wasmInstance.RulePrelude;for(let e of t.sel){let t=new _.wasmInstance.Selector;for(let n=0;n<e.length;n+=4){let r=e[n]||[],_=e[n+1]||[],i=e[n+2]||[],o=e[n+3]||[];for(let e of r)!function(e,t){if(t.startsWith("."))e.push_one_selector_section("ClassSelector",t.substring(1));else if(t.startsWith("#"))e.push_one_selector_section("IdSelector",t.substring(1));else if(t.startsWith("[")){let n=t.substring(1,t.length-1);e.push_one_selector_section("AttributeSelector",n)}else if("*"===t)e.push_one_selector_section("UniversalSelector","*");else{let n=t;t.startsWith("[")&&t.endsWith("]")&&(n=t.substring(1,t.length-1)),e.push_one_selector_section("AttributeSelector",n)}}(t,e);for(let e of _){let n=e.startsWith(":")?e.substring(1):e;t.push_one_selector_section("PseudoClassSelector",n)}for(let e of i){let n=e.startsWith("::")?e.substring(2):e.startsWith(":")?e.substring(1):e;t.push_one_selector_section("PseudoElementSelector",n)}o.length>0&&t.push_one_selector_section("Combinator",o[0])}i.push_selector(t)}n.set_prelude(i),r.push_rule(e,n)}}return _.wasmInstance.DecodedStyleData.encode_from_raw_style_info(r,t,n)}_=(i.then?(await i)():i)[0],r()}catch(e){r(e)}})},676(e,t,n){n.a(e,async function(e,t){try{let b;var r=n(1180),_=n(9521),i=n(446),o=e([_,i]);[_,i]=o.then?(await o)():o;let f=new Promise(e=>{b=e});class u{#e;#t=new Uint8Array(0);constructor(e){this.#e=e}async read(e){if(this.#t.length>=e){let t=this.#t.slice(0,e);return this.#t=this.#t.slice(e),t}for(;this.#t.length<e;){let{done:e,value:t}=await this.#e.read();if(t){let e=new Uint8Array(this.#t.length+t.length);e.set(this.#t),e.set(t,this.#t.length),this.#t=e}if(e)break}if(this.#t.length<e){if(0===this.#t.length)return null;throw Error(`Unexpected end of stream. Expected ${e} bytes, got ${this.#t.length}`)}let t=this.#t.slice(0,e);return this.#t=this.#t.slice(e),t}async readRest(){for(;;){let{done:e,value:t}=await this.#e.read();if(t){let e=new Uint8Array(this.#t.length+t.length);e.set(this.#t),e.set(t,this.#t.length),this.#t=e}if(e)break}let e=this.#t;return this.#t=new Uint8Array(0),e}}function s(e){let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n="";for(let e=0;e<t.length;e+=8192)n+=String.fromCharCode.apply(null,t.subarray(e,e+8192));return JSON.parse(n)}function a(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0;if(e.byteLength<4)throw Error("Buffer too short for count");let r=t.getUint32(n,!0);n+=4;let _={},i=new TextDecoder;for(let o=0;o<r;o++){if(e.byteLength<n+4)throw Error("Buffer too short for key length");let r=t.getUint32(n,!0);if(n+=4,e.byteLength<n+r)throw Error("Buffer too short for key");let o=i.decode(e.subarray(n,n+r));if(n+=r,e.byteLength<n+4)throw Error("Buffer too short for value length");let s=t.getUint32(n,!0);if(n+=4,e.byteLength<n+s)throw Error("Buffer too short for value");let a=e.subarray(n,n+s);n+=s,_[o]=a}return _}async function l(e,t,n){let i=new u(t),o={},l=await i.read(8);if(!l)throw Error("Empty stream");if(123===l[0]){let t=await i.readRest(),r=new TextDecoder,_=r.decode(l)+r.decode(t),o=JSON.parse(_);await c(o,e,n);return}if(new DataView(l.buffer,l.byteOffset,l.byteLength).getBigUint64(0,!0)!==BigInt(r.Lj))throw Error("Invalid Magic Header");let b=await i.read(4);if(!b)throw Error("Unexpected EOF reading version");let d=new DataView(b.buffer,b.byteOffset,b.byteLength).getUint32(0,!0);if(d>1)throw Error(`Unsupported version: ${d}`);for(;;){let t=await i.read(4);if(!t)break;let l=new DataView(t.buffer,t.byteOffset,t.byteLength).getUint32(0,!0),c=await i.read(4);if(!c)throw Error("Unexpected EOF reading section length");let b=new DataView(c.buffer,c.byteOffset,c.byteLength).getUint32(0,!0),u=await i.read(b);if(!u)throw Error(`Unexpected EOF reading section content. Expected ${b} bytes.`);switch(l){case r.eC.Configurations:o=n?{...s(u),...n}:s(u),postMessage({type:"section",label:l,url:e,data:o});break;case r.eC.StyleInfo:{await f;let t=_.DecodedStyle.webWorkerDecode(u,"true"===o.enableCSSSelector,"true"===o.isLazy?e:void 0);postMessage({type:"section",label:l,url:e,data:t.buffer,config:o},{transfer:[t.buffer]});break}case r.eC.LepusCode:{let t=a(u),n="true"===o.isLazy,r={};for(let[_,i]of Object.entries(t)){let t=`(function(){ "use strict"; const navigator=void 0,postMessage=void 0,window=void 0; ${n?"module.exports=":""} `,o=`
|
|
1
|
+
(()=>{"use strict";var e={6462(e,t,n){e.exports=n.p+"static/wasm/3d7e607b.module.wasm"},5704(e,t,n){let r;n.r(t),n.d(t,{DecodedStyleData:()=>_,ElementTemplateSection:()=>i,EventInfo:()=>o,MainThreadWasmContext:()=>s,RawStyleInfo:()=>a,Rule:()=>l,RulePrelude:()=>c,Selector:()=>f,default:()=>T,initSync:()=>q});class _{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,d.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_decodedstyledata_free(e,0)}static decode_into(e,t,n){var _=A(t)?0:L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=z;let o=r.decodedstyledata_decode_into(e,_,i,n);if(o[2])throw W(o[1]);return W(o[0])}static encode_from_raw_style_info(e,t,n){x(e,a);var _=e.__destroy_into_raw(),i=A(n)?0:L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=z;let s=r.decodedstyledata_encode_from_raw_style_info(_,t,i,o);if(s[2])throw W(s[1]);return W(s[0])}get font_face_content(){let e,t;try{let n=r.decodedstyledata_font_face_content(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}constructor(e){const t=r.decodedstyledata_new(e);if(t[2])throw W(t[1]);return this.__wbg_ptr=t[0]>>>0,d.register(this,this.__wbg_ptr,this),this}query_css_og_declarations_by_css_id(e,t){let n,_;try{let i=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=v(e[t]);O().setUint32(n+4*t,r,!0)}return z=e.length,n}(t,r.__wbindgen_malloc),o=z,s=r.decodedstyledata_query_css_og_declarations_by_css_id(this.__wbg_ptr,e,i,o);return n=s[0],_=s[1],R(s[0],s[1])}finally{r.__wbindgen_free(n,_,1)}}get style_content(){let e,t;try{let n=r.decodedstyledata_style_content(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class i{static __wrap(e){e>>>=0;let t=Object.create(i.prototype);return t.__wbg_ptr=e,b.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,b.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_elementtemplatesection_free(e,0)}static from_encoded(e){let t=r.elementtemplatesection_from_encoded(e);if(t[2])throw W(t[1]);return i.__wrap(t[0])}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{static __wrap(e){e>>>=0;let t=Object.create(o.prototype);return t.__wbg_ptr=e,w.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,w.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_eventinfo_free(e,0)}get function(){return r.__wbg_get_eventinfo_function(this.__wbg_ptr)}get name(){let e,t;try{let n=r.__wbg_get_eventinfo_name(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get type(){let e,t;try{let n=r.__wbg_get_eventinfo_type(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set function(e){r.__wbg_set_eventinfo_function(this.__wbg_ptr,e)}set name(e){let t=L(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=z;r.__wbg_set_eventinfo_name(this.__wbg_ptr,t,n)}set type(e){let t=L(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=z;r.__wbg_set_eventinfo_type(this.__wbg_ptr,t,n)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class s{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,g.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}__AddDataset(e,t,n){let _=r.mainthreadwasmcontext___AddDataset(this.__wbg_ptr,e,t,n);if(_[1])throw W(_[0])}__CreateElementCommon(e,t,n,_){var i=A(_)?0:L(_,r.__wbindgen_malloc,r.__wbindgen_realloc),o=z;return r.mainthreadwasmcontext___CreateElementCommon(this.__wbg_ptr,e,t,A(n)?0x100000001:0|n,i,o)>>>0}__GetComponentID(e){let t,n=r.mainthreadwasmcontext___GetComponentID(this.__wbg_ptr,e);if(n[3])throw W(n[2]);return 0!==n[0]&&(t=R(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}__GetConfig(e){let t=r.mainthreadwasmcontext___GetConfig(this.__wbg_ptr,e);if(t[2])throw W(t[1]);return W(t[0])}__GetDataByKey(e,t){let n=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=z,i=r.mainthreadwasmcontext___GetDataByKey(this.__wbg_ptr,e,n,_);if(i[2])throw W(i[1]);return W(i[0])}__GetDataset(e){let t=r.mainthreadwasmcontext___GetDataset(this.__wbg_ptr,e);if(t[2])throw W(t[1]);return W(t[0])}__GetElementConfig(e){let t=r.mainthreadwasmcontext___GetElementConfig(this.__wbg_ptr,e);if(t[2])throw W(t[1]);return W(t[0])}__GetEvent(e,t,n){let _=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=z,o=L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=z;return r.mainthreadwasmcontext___GetEvent(this.__wbg_ptr,e,_,i,o,s)}__GetEvents(e){let t=r.mainthreadwasmcontext___GetEvents(this.__wbg_ptr,e);var n=S(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}__SetConfig(e,t){let n=r.mainthreadwasmcontext___SetConfig(this.__wbg_ptr,e,t);if(n[1])throw W(n[0])}__SetDataset(e,t,n){let _=r.mainthreadwasmcontext___SetDataset(this.__wbg_ptr,e,t,n);if(_[1])throw W(_[0])}__UpdateComponentID(e,t){var n=A(t)?0:L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=z;let i=r.mainthreadwasmcontext___UpdateComponentID(this.__wbg_ptr,e,n,_);if(i[1])throw W(i[0])}__wasm_AddInlineStyle_number_key(e,t,n){var _=A(n)?0:L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),i=z;r.mainthreadwasmcontext___wasm_AddInlineStyle_number_key(this.__wbg_ptr,e,t,_,i)}__wasm_AddInlineStyle_str_key(e,t,n){let _=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=z;var o=A(n)?0:L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=z;r.mainthreadwasmcontext___wasm_AddInlineStyle_str_key(this.__wbg_ptr,e,_,i,o,s)}__wasm_SetInlineStyles(e,t){let n=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=z;return 0!==r.mainthreadwasmcontext___wasm_SetInlineStyles(this.__wbg_ptr,e,n,_)}__wasm_add_event_bts(e,t,n,_){let i=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=z,s=L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=z;var l=A(_)?0:L(_,r.__wbindgen_malloc,r.__wbindgen_realloc),c=z;r.mainthreadwasmcontext___wasm_add_event_bts(this.__wbg_ptr,e,i,o,s,a,l,c)}__wasm_add_event_run_worklet(e,t,n,_){let i=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=z,s=L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=z;r.mainthreadwasmcontext___wasm_add_event_run_worklet(this.__wbg_ptr,e,i,o,s,a,A(_)?0:v(_))}__wasm_commonEventHandler(e,t,n){let _=D(t,r.__wbindgen_malloc),i=z,o=L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=z;r.mainthreadwasmcontext___wasm_commonEventHandler(this.__wbg_ptr,e,_,i,o,s)}__wasm_get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext___wasm_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}__wasm_get_unique_id_by_component_id(e){let t=L(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=z,_=r.mainthreadwasmcontext___wasm_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===_?void 0:_}__wasm_set_css_id(e,t){let n=D(e,r.__wbindgen_malloc),_=z;r.mainthreadwasmcontext___wasm_set_css_id(this.__wbg_ptr,n,_,t)}__wasm_set_page_element_unique_id(e){r.mainthreadwasmcontext___wasm_set_page_element_unique_id(this.__wbg_ptr,e)}__wasm_take_timing_flags(){let e=r.mainthreadwasmcontext___wasm_take_timing_flags(this.__wbg_ptr);var t=S(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}_wasm_elementFromBinary(e,t,n,_){let o=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=z,a=L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=z;x(_,i);let c=r.mainthreadwasmcontext__wasm_elementFromBinary(this.__wbg_ptr,e,o,s,a,l,_.__wbg_ptr);if(c[2])throw W(c[1]);return W(c[0])}dispatch_event_by_path(e,t,n,_){let i=D(e,r.__wbindgen_malloc),o=z,s=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=z;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,i,o,s,a,n,_)}constructor(e,t,n,_,i){const o=r.mainthreadwasmcontext_new(e,t,n,_,i);return this.__wbg_ptr=o>>>0,g.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class a{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,p.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rawstyleinfo_free(e,0)}append_import(e,t){r.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}constructor(){const e=r.rawstyleinfo_new();return this.__wbg_ptr=e>>>0,p.register(this,this.__wbg_ptr,this),this}push_rule(e,t){x(t,l);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class l{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,h.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rule_free(e,0)}constructor(e){const t=L(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=z,_=r.rule_new(t,n);if(_[2])throw W(_[1]);return this.__wbg_ptr=_[0]>>>0,h.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let n=L(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=z,i=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=z;r.rule_push_declaration(this.__wbg_ptr,n,_,i,o)}push_rule_children(e){x(e,l);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){x(e,c);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,y.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,y.register(this,this.__wbg_ptr,this),this}push_selector(e){x(e,f);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class f{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,m.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,m.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=L(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=z,i=L(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=z,s=r.selector_push_one_selector_section(this.__wbg_ptr,n,_,i,o);if(s[1])throw W(s[0])}}function u(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(e,t){return Error(R(e,t))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(e,t){let n=L(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let _=1;_<n;_++)r+=", "+e(t[_]);return r+"]"}let _=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!_||!(_.length>1))return toString.call(t);if("Object"==(n=_[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
+
${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),_=z;O().setInt32(e+4,_,!0),O().setInt32(e+0,n,!0)},__wbg___wbindgen_is_null_ac34f5003991759a:function(e){return null===e},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(e){return void 0===e},__wbg___wbindgen_jsval_eq_11888390b0186270:function(e,t){return e===t},__wbg___wbindgen_string_get_72fb696202c56729:function(e,t){let n="string"==typeof t?t:void 0;var _=A(n)?0:L(n,r.__wbindgen_malloc,r.__wbindgen_realloc),i=z;O().setInt32(e+4,i,!0),O().setInt32(e+0,_,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(e,t){throw Error(R(e,t))},__wbg_addEventListener_509b0778ff0f5d80:function(e,t,n){e.addEventListener(R(t,n))},__wbg_appendChild_dea38765a26d346d:function(){return k(function(e,t){return e.appendChild(t)},arguments)},__wbg_assign_6170c0d04d5c26f4:function(e,t){return Object.assign(e,t)},__wbg_cloneNode_b85e9102a9a31b29:function(){return k(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_content_681ebf067b179491:function(e){return e.content},__wbg_createElement_49f60fdcaae809c8:function(){return k(function(e,t,n){return e.createElement(R(t,n))},arguments)},__wbg_disableElementEvent_54563f003ce6f005:function(e,t,n,r){e.disableElementEvent(t>>>0,R(n,r))},__wbg_done_57b39ecd9addfe81:function(e){return e.done},__wbg_enableElementEvent_b56814551effb38c:function(e,t,n,r){e.enableElementEvent(t>>>0,R(n,r))},__wbg_eventinfo_new:function(e){return o.__wrap(e)},__wbg_firstChild_2950111f6da7246c:function(e){let t=e.firstChild;return A(t)?0:v(t)},__wbg_getAttribute_b9f6fc4b689c71b0:function(e,t,n,_){let i=t.getAttribute(R(n,_));var o=A(i)?0:L(i,r.__wbindgen_malloc,r.__wbindgen_realloc),s=z;O().setInt32(e+4,s,!0),O().setInt32(e+0,o,!0)},__wbg_get_9b94d73e6221f75c:function(e,t){return e[t>>>0]},__wbg_get_b3ed3ad4be2bc8ac:function(){return k(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_d4e53238966c12b6:function(){return k(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_keys_b50a709a76add04e:function(e){return Object.keys(e)},__wbg_length_32ed9a279acd054c:function(e){return e.length},__wbg_length_35a7bace40f36eac:function(e){return e.length},__wbg_loadInternalWebElement_8cae19b87cc26220:function(e,t){e.loadInternalWebElement(t>>>0)},__wbg_loadUnknownElement_762c72a091c9dc9e:function(e,t,n){e.loadUnknownElement(R(t,n))},__wbg_markExposureRelatedElementByUniqueId_c37ed9a4da654c4e:function(e,t,n){e.markExposureRelatedElementByUniqueId(t>>>0,0!==n)},__wbg_new_361308b2356cecd0:function(){return{}},__wbg_new_from_slice_a3d2629dc1826784:function(e,t){return new Uint8Array(E(e,t))},__wbg_next_3482f54c49e8af19:function(){return k(function(e){return e.next()},arguments)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(e,t,n){Uint8Array.prototype.set.call(E(e,t),n)},__wbg_publishEvent_9003166a9524dc81:function(e,t,n,r,_,i,o,s,a,l){e.publishEvent(R(t,n),0===r?void 0:R(r,_),i,o>>>0,s,a>>>0,l)},__wbg_querySelectorAll_32f0ddcdb5fe7c56:function(){return k(function(e,t,n){return e.querySelectorAll(R(t,n))},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return k(function(e,t,n){e.removeAttribute(R(t,n))},arguments)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return k(function(e,t,n,_){let i=L(t.removeProperty(R(n,_)),r.__wbindgen_malloc,r.__wbindgen_realloc),o=z;O().setInt32(e+4,o,!0),O().setInt32(e+0,i,!0)},arguments)},__wbg_runWorklet_6d04359b8a8c370f:function(e,t,n,r,_,i,o){e.runWorklet(t,n,r>>>0,_,i>>>0,o)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return k(function(e,t,n,r,_){e.setAttribute(R(t,n),R(r,_))},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return k(function(e,t,n,r,_){e.setProperty(R(t,n),R(r,_))},arguments)},__wbg_set_6cb8631f80447a67:function(){return k(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_style_0b7c9bd318f8b807:function(e){return e.style},__wbg_value_0546255b415e96c1:function(e){return e.value},__wbg_values_c473ad46ff5ddebc:function(e){return e.values()},__wbindgen_cast_0000000000000001:function(e){return e},__wbindgen_cast_0000000000000002:function(e,t){return R(e,t)},__wbindgen_init_externref_table:function(){let e=r.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},__wbindgen_object_is_undefined:function(e){return void 0===e}}}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);let d="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decodedstyledata_free(e>>>0,1)),b="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_elementtemplatesection_free(e>>>0,1)),w="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1)),g="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1)),p="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1)),h="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1)),y="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1)),m="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1));function v(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function x(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function S(e,t){e>>>=0;let n=O(),_=[];for(let i=e;i<e+4*t;i+=4)_.push(r.__wbindgen_externrefs.get(n.getUint32(i,!0)));return r.__externref_drop_slice(e,t),_}function E(e,t){return e>>>=0,U().subarray(e/1,e/1+t)}let C=null;function O(){return(null===C||!0===C.buffer.detached||void 0===C.buffer.detached&&C.buffer!==r.memory.buffer)&&(C=new DataView(r.memory.buffer)),C}function R(e,t){var n,r;return n=e>>>=0,(F+=r=t)>=0x7ff00000&&((M=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),F=r),M.decode(U().subarray(n,n+r))}let j=null,I=null;function U(){return(null===I||0===I.byteLength)&&(I=new Uint8Array(r.memory.buffer)),I}function k(e,t){try{return e.apply(this,t)}catch(t){let e=v(t);r.__wbindgen_exn_store(e)}}function A(e){return null==e}function D(e,t){let n=t(4*e.length,4)>>>0;return((null===j||0===j.byteLength)&&(j=new Uint32Array(r.memory.buffer)),j).set(e,n/4),z=e.length,n}function L(e,t,n){if(void 0===n){let n=$.encode(e),r=t(n.length,1)>>>0;return U().subarray(r,r+n.length).set(n),z=n.length,r}let r=e.length,_=t(r,1)>>>0,i=U(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;i[_+o]=t}if(o!==r){0!==o&&(e=e.slice(o)),_=n(_,r,r=o+3*e.length,1)>>>0;let t=U().subarray(_+o,_+r);o+=$.encodeInto(e,t).written,_=n(_,r,o,1)>>>0}return z=o,_}function W(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}let M=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});M.decode();let F=0,$=new TextEncoder;"encodeInto"in $||($.encodeInto=function(e,t){let n=$.encode(e);return t.set(n),{read:e.length,written:n.length}});let z=0;function P(e,t){return r=e.exports,C=null,j=null,I=null,r.__wbindgen_start(),r}async function B(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function q(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=u();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),P(new WebAssembly.Instance(e,t),e)}async function T(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(n(6462),n.b));let t=u();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:_,module:i}=await B(await e,t);return P(_,i)}},446(e,t,n){n.a(e,async function(e,r){try{n.d(t,{g:()=>o});var _=n(9521),i=e([_]);function o(e,t,n){let r=new _.wasmInstance.RawStyleInfo;for(let[t,n]of Object.entries(e)){let e=parseInt(t,10);for(let t of(n.imports,n.rules)){let n=new _.wasmInstance.Rule("StyleRule");for(let[e,r]of t.decl)n.push_declaration(e,r);let i=new _.wasmInstance.RulePrelude;for(let e of t.sel){let t=new _.wasmInstance.Selector;for(let n=0;n<e.length;n+=4){let r=e[n]||[],_=e[n+1]||[],i=e[n+2]||[],o=e[n+3]||[];for(let e of r)!function(e,t){if(t.startsWith("."))e.push_one_selector_section("ClassSelector",t.substring(1));else if(t.startsWith("#"))e.push_one_selector_section("IdSelector",t.substring(1));else if(t.startsWith("[")){let n=t.substring(1,t.length-1);e.push_one_selector_section("AttributeSelector",n)}else if("*"===t)e.push_one_selector_section("UniversalSelector","*");else{let n=t;t.startsWith("[")&&t.endsWith("]")&&(n=t.substring(1,t.length-1)),e.push_one_selector_section("AttributeSelector",n)}}(t,e);for(let e of _){let n=e.startsWith(":")?e.substring(1):e;t.push_one_selector_section("PseudoClassSelector",n)}for(let e of i){let n=e.startsWith("::")?e.substring(2):e.startsWith(":")?e.substring(1):e;t.push_one_selector_section("PseudoElementSelector",n)}o.length>0&&t.push_one_selector_section("Combinator",o[0])}i.push_selector(t)}n.set_prelude(i),r.push_rule(e,n)}}return _.wasmInstance.DecodedStyleData.encode_from_raw_style_info(r,t,n)}_=(i.then?(await i)():i)[0],r()}catch(e){r(e)}})},676(e,t,n){n.a(e,async function(e,t){try{let f;var r=n(1180),_=n(9521),i=n(446),o=e([_,i]);[_,i]=o.then?(await o)():o;let u=new Promise(e=>{f=e});class d{#e;#t=new Uint8Array(0);constructor(e){this.#e=e}async read(e){if(this.#t.length>=e){let t=this.#t.slice(0,e);return this.#t=this.#t.slice(e),t}for(;this.#t.length<e;){let{done:e,value:t}=await this.#e.read();if(t){let e=new Uint8Array(this.#t.length+t.length);e.set(this.#t),e.set(t,this.#t.length),this.#t=e}if(e)break}if(this.#t.length<e){if(0===this.#t.length)return null;throw Error(`Unexpected end of stream. Expected ${e} bytes, got ${this.#t.length}`)}let t=this.#t.slice(0,e);return this.#t=this.#t.slice(e),t}async readRest(){for(;;){let{done:e,value:t}=await this.#e.read();if(t){let e=new Uint8Array(this.#t.length+t.length);e.set(this.#t),e.set(t,this.#t.length),this.#t=e}if(e)break}let e=this.#t;return this.#t=new Uint8Array(0),e}}function s(e){let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n="";for(let e=0;e<t.length;e+=8192)n+=String.fromCharCode.apply(null,t.subarray(e,e+8192));return JSON.parse(n)}function a(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0;if(e.byteLength<4)throw Error("Buffer too short for count");let r=t.getUint32(n,!0);n+=4;let _={},i=new TextDecoder;for(let o=0;o<r;o++){if(e.byteLength<n+4)throw Error("Buffer too short for key length");let r=t.getUint32(n,!0);if(n+=4,e.byteLength<n+r)throw Error("Buffer too short for key");let o=i.decode(e.subarray(n,n+r));if(n+=r,e.byteLength<n+4)throw Error("Buffer too short for value length");let s=t.getUint32(n,!0);if(n+=4,e.byteLength<n+s)throw Error("Buffer too short for value");let a=e.subarray(n,n+s);n+=s,_[o]=a}return _}async function l(e,t,n){let i=new d(t),o={},l=await i.read(8);if(!l)throw Error("Empty stream");if(123===l[0]){let t=await i.readRest(),r=new TextDecoder,_=r.decode(l)+r.decode(t),o=JSON.parse(_);await c(o,e,n);return}if(new DataView(l.buffer,l.byteOffset,l.byteLength).getBigUint64(0,!0)!==BigInt(r.Lj))throw Error("Invalid Magic Header");let f=await i.read(4);if(!f)throw Error("Unexpected EOF reading version");let b=new DataView(f.buffer,f.byteOffset,f.byteLength).getUint32(0,!0);if(b>1)throw Error(`Unsupported version: ${b}`);for(;;){let t=await i.read(4);if(!t)break;let l=new DataView(t.buffer,t.byteOffset,t.byteLength).getUint32(0,!0),c=await i.read(4);if(!c)throw Error("Unexpected EOF reading section length");let f=new DataView(c.buffer,c.byteOffset,c.byteLength).getUint32(0,!0),d=await i.read(f);if(!d)throw Error(`Unexpected EOF reading section content. Expected ${f} bytes.`);switch(l){case r.eC.Configurations:o=n?{...s(d),...n}:s(d),postMessage({type:"section",label:l,url:e,data:o});break;case r.eC.StyleInfo:{await u;let t=_.DecodedStyle.webWorkerDecode(d,"true"===o.enableCSSSelector,"true"===o.isLazy?e:void 0);postMessage({type:"section",label:l,url:e,data:t.buffer,config:o},{transfer:[t.buffer]});break}case r.eC.LepusCode:{let t=a(d),n="true"===o.isLazy,r={};for(let[_,i]of Object.entries(t)){let t=`(function(){ "use strict"; const navigator=void 0,postMessage=void 0,window=void 0; ${n?"module.exports=":""} `,o=`
|
|
3
3
|
})()
|
|
4
4
|
//# sourceURL=${e}
|
|
5
|
-
`,s=new Blob([t,i,o],{type:"text/javascript; charset=utf-8"});r[_]=URL.createObjectURL(s)}postMessage({type:"section",label:l,url:e,data:r,config:o});break}case r.eC.ElementTemplates:postMessage({type:"section",label:l,url:e,data:
|
|
5
|
+
`,s=new Blob([t,i,o],{type:"text/javascript; charset=utf-8"});r[_]=URL.createObjectURL(s)}postMessage({type:"section",label:l,url:e,data:r,config:o});break}case r.eC.ElementTemplates:postMessage({type:"section",label:l,url:e,data:d},[d.buffer]);break;case r.eC.CustomSections:postMessage({type:"section",label:l,url:e,data:d.buffer},{transfer:[d.buffer]});break;case r.eC.Manifest:{let t=a(d),n={};for(let[r,_]of Object.entries(t)){let t=`//# sourceURL=${e}/${r}`,i=new Blob([_,t],{type:"text/javascript; charset=utf-8"});n[r]=URL.createObjectURL(i)}postMessage({type:"section",label:l,url:e,data:n});break}default:throw Error(`Unknown section label: ${l}`)}}}async function c(e,t,n){let _={};if(e.pageConfig&&(_={...e.pageConfig}),n&&(_={..._,...n}),postMessage({type:"section",label:r.eC.Configurations,url:t,data:_}),e.styleInfo){await u;let n=(0,i.g)(e.styleInfo,"true"===_.enableCSSSelector,"true"===_.isLazy?t:void 0);postMessage({type:"section",label:r.eC.StyleInfo,url:t,data:n.buffer,config:_},{transfer:[n.buffer]})}if(e.lepusCode){let n="true"===_.isLazy,i={};for(let[r,_]of Object.entries(e.lepusCode)){if("string"!=typeof _)continue;let e=`(function(){ "use strict"; const navigator=void 0,postMessage=void 0,window=void 0; ${n?"module.exports=":""} `,o=`
|
|
6
6
|
})()
|
|
7
7
|
//# sourceURL=${t}/${r}
|
|
8
|
-
`,s=new Blob([e,_,o],{type:"text/javascript;"});i[r]=URL.createObjectURL(s)}postMessage({type:"section",label:r.eC.LepusCode,url:t,data:i,config:_})}if(e.manifest){let n={};for(let[t,r]of Object.entries(e.manifest)){if("string"!=typeof r)continue;let e=new Blob([r],{type:"text/javascript;"});n[t]=URL.createObjectURL(e)}postMessage({type:"section",label:r.eC.Manifest,url:t,data:n})}if(e.customSections&&postMessage({type:"section",label:r.eC.CustomSections,url:t,data:e.customSections}),e.elementTemplates)throw Error("ElementTemplates in JSON artifacts are not supported yet.")}self.onmessage=async e=>{let t=e.data;if("init"===t.type){let{wasmModule:e}=t;_.wasmInstance.initSync({module:e}),
|
|
8
|
+
`,s=new Blob([e,_,o],{type:"text/javascript;"});i[r]=URL.createObjectURL(s)}postMessage({type:"section",label:r.eC.LepusCode,url:t,data:i,config:_})}if(e.manifest){let n={};for(let[t,r]of Object.entries(e.manifest)){if("string"!=typeof r)continue;let e=new Blob([r],{type:"text/javascript;"});n[t]=URL.createObjectURL(e)}postMessage({type:"section",label:r.eC.Manifest,url:t,data:n})}if(e.customSections&&postMessage({type:"section",label:r.eC.CustomSections,url:t,data:e.customSections}),e.elementTemplates)throw Error("ElementTemplates in JSON artifacts are not supported yet.")}self.onmessage=async e=>{let t=e.data;if("init"===t.type){let{wasmModule:e}=t;_.wasmInstance.initSync({module:e}),f()}else if("load"===t.type){let{url:e,fetchUrl:n,overrideConfig:r}=t;try{let t=await fetch(n,{headers:{"Content-Type":"octet-stream"}});if(!t.body||200!==t.status)throw Error(`Failed to fetch template: ${t.statusText}`);let _=t.body.getReader();await l(e,_,r),postMessage({type:"done",url:e})}catch(t){postMessage({type:"error",url:e,error:t.message})}}},postMessage({type:"ready"}),t()}catch(e){t(e)}})},9521(e,t,n){n.a(e,async function(e,r){try{n.d(t,{DecodedStyle:()=>a,wasmInstance:()=>o});var _=n(480);let e="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,i=(0,_.rO)().then(t=>{if(t)return Promise.all([Promise.resolve().then(n.bind(n,5704)),e?void 0:WebAssembly.compileStreaming(fetch(new URL(n(6462),n.b)))]);throw Error("WASM not supported")}),[o,s]=await i;e||o.initSync({module:s});class a{static webWorkerDecode(e,t,n){return o.DecodedStyleData.decode_into(e,n,t)}#n;style_content;font_face_content;constructor(e){this.#n=new o.DecodedStyleData(e),this.style_content=this.#n.style_content,this.font_face_content=this.#n.font_face_content,this.query_css_og_declarations_by_css_id=this.#n.query_css_og_declarations_by_css_id.bind(this.#n)}query_css_og_declarations_by_css_id}r()}catch(e){r(e)}},1)},1180(e,t,n){n.d(t,{Lj:()=>r,eC:()=>_}),Object.entries({click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"}).map(([e,t])=>[t,e]);let r=0x464f525741524400,_={Manifest:1,StyleInfo:2,LepusCode:3,CustomSections:4,ElementTemplates:5,Configurations:6},i=Object.freeze(Object.assign(Object.create(null),{view:"x-view",text:"x-text",image:"x-image","raw-text":"raw-text","scroll-view":"x-scroll-view",wrapper:"lynx-wrapper",list:"x-list",page:"div",input:"x-input","x-input-ng":"x-input",svg:"x-svg"}));Object.assign(Object.create(null),Object.fromEntries(Object.entries(i).map(([e,t])=>[t,e]))),Object.assign(Object.create(null),{list:0,"x-swiper":1,"x-input":2,"x-input-ng":2,input:2,"x-textarea":3,"x-audio-tt":4,"x-foldview-ng":5,"x-foldview-header-ng":5,"x-foldview-slot-drag-ng":5,"x-foldview-slot-ng":5,"x-foldview-toolbar-ng":5,"x-refresh-view":6,"x-refresh-header":6,"x-refresh-footer":6,"x-overlay-ng":7,"x-viewpager-ng":8,"x-viewpager-item-ng":8}),Symbol.for("lynx-scroll-container-dom")},480(e,t,n){n.d(t,{rO:()=>r});let r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11]))}},t={};function n(r){var _=t[r];if(void 0!==_)return _.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,_=(r="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",i=n.aE=r?Symbol("rspack exports"):"__webpack_exports__",o=r?Symbol("rspack error"):"__rspack_error",s=r?Symbol("rspack done"):"__rspack_done",a=n.zS=r?Symbol("rspack defer"):"__rspack_defer",l=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},n.a=(e,r,c)=>{c&&((f=[]).d=-1);var f,u,d,b,w=new Set,g=e.exports,p=new Promise((e,t)=>{b=t,d=e});p[i]=g,p[_]=e=>{f&&e(f),w.forEach(e),p.catch(()=>{})},e.exports=p,r(e=>{u=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[_]&&e[a]){var r=e[a];if(!r.some(e=>{var n=t[e];return!n||!1===n[s]}))return e;var c=e;e={then(e){Promise.all(r.map(n)).then(()=>e(c))}}}if(e[_])return e;if(e.then){var f=[];f.d=0,e.then(e=>{u[i]=e,l(f)},e=>{u[o]=e,l(f)});var u={};return u[a]=!1,u[_]=e=>e(f),u}}var d={};return d[_]=()=>{},d[i]=e,d});var r,c=()=>u.map(e=>{if(e[a])return e;if(e[o])throw e[o];return e[i]}),d=new Promise(e=>{(r=()=>e(c)).r=0;var t=e=>e!==f&&!w.has(e)&&(w.add(e),e&&!e.d&&(r.r++,e.push(r)));u.map(e=>e[a]||e[_](t))});return r.r?d:c()},e=>(e?b(p[o]=e):d(g),l(f),p[s]=!0)),f&&f.d<0&&(f.d=0)},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.g.importScripts&&(c=n.g.location+"");var r,_,i,o,s,a,l,c,f=n.g.document;if(!c&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(c=f.currentScript.src),!c)){var u=f.getElementsByTagName("script");if(u.length)for(var d=u.length-1;d>-1&&(!c||!/^http(s?):/.test(c));)c=u[d--].src}if(!c)throw Error("Automatic publicPath is not supported in this browser");n.p=(c=c.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../../",n.b=self.location+"/../../../../",n(676)})();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,n,r={6462(e,t,n){e.exports=n.p+"static/wasm/7ff75609.module.wasm"},5704(e,t,n){let r;n.r(t),n.d(t,{DecodedStyleData:()=>k,ElementTemplateSection:()=>C,EventInfo:()=>T,MainThreadWasmContext:()=>I,RawStyleInfo:()=>M,Rule:()=>P,RulePrelude:()=>j,Selector:()=>U,default:()=>$,initSync:()=>z});let i=null;function o(){return(null===i||0===i.byteLength)&&(i=new Uint8Array(r.memory.buffer)),i}let _=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});_.decode();let s=0;function a(e,t){var n;return e>>>=0,n=e,(s+=t)>=0x7ff00000&&((_=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),s=t),_.decode(o().subarray(n,n+t))}let l=0,c=new TextEncoder;function d(e,t,n){if(void 0===n){let n=c.encode(e),r=t(n.length,1)>>>0;return o().subarray(r,r+n.length).set(n),l=n.length,r}let r=e.length,i=t(r,1)>>>0,_=o(),s=0;for(;s<r;s++){let t=e.charCodeAt(s);if(t>127)break;_[i+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),i=n(i,r,r=s+3*e.length,1)>>>0;let t=o().subarray(i+s,i+r);s+=c.encodeInto(e,t).written,i=n(i,r,s,1)>>>0}return l=s,i}"encodeInto"in c||(c.encodeInto=function(e,t){let n=c.encode(e);return t.set(n),{read:e.length,written:n.length}});let u=null;function g(){return(null===u||!0===u.buffer.detached||void 0===u.buffer.detached&&u.buffer!==r.memory.buffer)&&(u=new DataView(r.memory.buffer)),u}function b(e){return null==e}function w(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function p(e,t){try{return e.apply(this,t)}catch(t){let e=w(t);r.__wbindgen_exn_store(e)}}function h(e,t){return e>>>=0,o().subarray(e/1,e/1+t)}function f(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}function m(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function y(e,t){e>>>=0;let n=g(),i=[];for(let o=e;o<e+4*t;o+=4)i.push(r.__wbindgen_externrefs.get(n.getUint32(o,!0)));return r.__externref_drop_slice(e,t),i}let v=null;function x(e,t){let n=t(4*e.length,4)>>>0;return((null===v||0===v.byteLength)&&(v=new Uint32Array(r.memory.buffer)),v).set(e,n/4),l=e.length,n}let S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decodedstyledata_free(e>>>0,1));class k{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_decodedstyledata_free(e,0)}constructor(e){const t=r.decodedstyledata_new(e);if(t[2])throw f(t[1]);return this.__wbg_ptr=t[0]>>>0,S.register(this,this.__wbg_ptr,this),this}get style_content(){let e,t;try{let n=r.decodedstyledata_style_content(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get font_face_content(){let e,t;try{let n=r.decodedstyledata_font_face_content(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}query_css_og_declarations_by_css_id(e,t){let n,i;try{let o=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=w(e[t]);g().setUint32(n+4*t,r,!0)}return l=e.length,n}(t,r.__wbindgen_malloc),_=l,s=r.decodedstyledata_query_css_og_declarations_by_css_id(this.__wbg_ptr,e,o,_);return n=s[0],i=s[1],a(s[0],s[1])}finally{r.__wbindgen_free(n,i,1)}}static decode_into(e,t,n){var i=b(t)?0:d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;let _=r.decodedstyledata_decode_into(e,i,o,n);if(_[2])throw f(_[1]);return f(_[0])}static encode_from_raw_style_info(e,t,n){m(e,M);var i=e.__destroy_into_raw(),o=b(n)?0:d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l;let s=r.decodedstyledata_encode_from_raw_style_info(i,t,o,_);if(s[2])throw f(s[1]);return f(s[0])}}Symbol.dispose&&(k.prototype[Symbol.dispose]=k.prototype.free);let E="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_elementtemplatesection_free(e>>>0,1));class C{static __wrap(e){e>>>=0;let t=Object.create(C.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_elementtemplatesection_free(e,0)}static from_encoded(e){let t=r.elementtemplatesection_from_encoded(e);if(t[2])throw f(t[1]);return C.__wrap(t[0])}}Symbol.dispose&&(C.prototype[Symbol.dispose]=C.prototype.free);let R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1));class T{static __wrap(e){e>>>=0;let t=Object.create(T.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_eventinfo_free(e,0)}get name(){let e,t;try{let n=r.__wbg_get_eventinfo_name(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set name(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.__wbg_set_eventinfo_name(this.__wbg_ptr,t,n)}get type(){let e,t;try{let n=r.__wbg_get_eventinfo_type(this.__wbg_ptr);return e=n[0],t=n[1],a(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set type(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.__wbg_set_eventinfo_type(this.__wbg_ptr,t,n)}get function(){return r.__wbg_get_eventinfo_function(this.__wbg_ptr)}set function(e){r.__wbg_set_eventinfo_function(this.__wbg_ptr,e)}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);let O="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1));class I{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,O.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}__GetComponentID(e){let t,n=r.mainthreadwasmcontext___GetComponentID(this.__wbg_ptr,e);if(n[3])throw f(n[2]);return 0!==n[0]&&(t=a(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}__GetElementConfig(e){let t=r.mainthreadwasmcontext___GetElementConfig(this.__wbg_ptr,e);if(t[2])throw f(t[1]);return f(t[0])}__SetConfig(e,t){let n=r.mainthreadwasmcontext___SetConfig(this.__wbg_ptr,e,t);if(n[1])throw f(n[0])}__GetConfig(e){let t=r.mainthreadwasmcontext___GetConfig(this.__wbg_ptr,e);if(t[2])throw f(t[1]);return f(t[0])}__UpdateComponentID(e,t){var n=b(t)?0:d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;let o=r.mainthreadwasmcontext___UpdateComponentID(this.__wbg_ptr,e,n,i);if(o[1])throw f(o[0])}__SetDataset(e,t,n){let i=r.mainthreadwasmcontext___SetDataset(this.__wbg_ptr,e,t,n);if(i[1])throw f(i[0])}__AddDataset(e,t,n){let i=r.mainthreadwasmcontext___AddDataset(this.__wbg_ptr,e,t,n);if(i[1])throw f(i[0])}__GetDataset(e){let t=r.mainthreadwasmcontext___GetDataset(this.__wbg_ptr,e);if(t[2])throw f(t[1]);return f(t[0])}__GetDataByKey(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,o=r.mainthreadwasmcontext___GetDataByKey(this.__wbg_ptr,e,n,i);if(o[2])throw f(o[1]);return f(o[0])}_wasm_elementFromBinary(e,t,n,i){let o=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l,s=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;m(i,C);let c=r.mainthreadwasmcontext__wasm_elementFromBinary(this.__wbg_ptr,e,o,_,s,a,i.__wbg_ptr);if(c[2])throw f(c[1]);return f(c[0])}__wasm_add_event_bts(e,t,n,i){let o=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l,s=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;var c=b(i)?0:d(i,r.__wbindgen_malloc,r.__wbindgen_realloc),u=l;r.mainthreadwasmcontext___wasm_add_event_bts(this.__wbg_ptr,e,o,_,s,a,c,u)}__wasm_add_event_run_worklet(e,t,n,i){let o=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l,s=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;r.mainthreadwasmcontext___wasm_add_event_run_worklet(this.__wbg_ptr,e,o,_,s,a,b(i)?0:w(i))}__GetEvent(e,t,n){let i=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l,_=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;return r.mainthreadwasmcontext___GetEvent(this.__wbg_ptr,e,i,o,_,s)}__GetEvents(e){let t=r.mainthreadwasmcontext___GetEvents(this.__wbg_ptr,e);var n=y(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}dispatch_event_by_path(e,t,n,i){let o=x(e,r.__wbindgen_malloc),_=l,s=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,o,_,s,a,n,i)}__wasm_commonEventHandler(e,t,n){let i=x(t,r.__wbindgen_malloc),o=l,_=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;r.mainthreadwasmcontext___wasm_commonEventHandler(this.__wbg_ptr,e,i,o,_,s)}__wasm_set_css_id(e,t){let n=x(e,r.__wbindgen_malloc),i=l;r.mainthreadwasmcontext___wasm_set_css_id(this.__wbg_ptr,n,i,t)}__wasm_AddInlineStyle_str_key(e,t,n){let i=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;var _=b(n)?0:d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;r.mainthreadwasmcontext___wasm_AddInlineStyle_str_key(this.__wbg_ptr,e,i,o,_,s)}__wasm_AddInlineStyle_number_key(e,t,n){var i=b(n)?0:d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;r.mainthreadwasmcontext___wasm_AddInlineStyle_number_key(this.__wbg_ptr,e,t,i,o)}__wasm_SetInlineStyles(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;return 0!==r.mainthreadwasmcontext___wasm_SetInlineStyles(this.__wbg_ptr,e,n,i)}constructor(e,t,n,i,o){const _=r.mainthreadwasmcontext_new(e,t,n,i,o);return this.__wbg_ptr=_>>>0,O.register(this,this.__wbg_ptr,this),this}__wasm_set_page_element_unique_id(e){r.mainthreadwasmcontext___wasm_set_page_element_unique_id(this.__wbg_ptr,e)}__CreateElementCommon(e,t,n,i){var o=b(i)?0:d(i,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l;return r.mainthreadwasmcontext___CreateElementCommon(this.__wbg_ptr,e,t,b(n)?0x100000001:0|n,o,_)>>>0}__wasm_take_timing_flags(){let e=r.mainthreadwasmcontext___wasm_take_timing_flags(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}__wasm_get_unique_id_by_component_id(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,i=r.mainthreadwasmcontext___wasm_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===i?void 0:i}__wasm_get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext___wasm_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);let A="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1));class M{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rawstyleinfo_free(e,0)}constructor(){const e=r.rawstyleinfo_new();return this.__wbg_ptr=e>>>0,A.register(this,this.__wbg_ptr,this),this}append_import(e,t){r.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}push_rule(e,t){m(t,P);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);let D="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1));class P{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rule_free(e,0)}constructor(e){const t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,i=r.rule_new(t,n);if(i[2])throw f(i[1]);return this.__wbg_ptr=i[0]>>>0,D.register(this,this.__wbg_ptr,this),this}set_prelude(e){m(e,j);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}push_declaration(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,o=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l;r.rule_push_declaration(this.__wbg_ptr,n,i,o,_)}push_rule_children(e){m(e,P);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);let N="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1));class j{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,N.register(this,this.__wbg_ptr,this),this}push_selector(e){m(e,U);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);let L="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1));class U{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,L.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,o=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=l,s=r.selector_push_one_selector_section(this.__wbg_ptr,n,i,o,_);if(s[1])throw f(s[0])}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);let W=new Set(["basic","cors","default"]);async function F(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&W.has(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function q(){let e={};return e.wbg={},e.wbg.__wbg_Error_e83987f665cf5504=function(e,t){return Error(a(e,t))},e.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(e,t){let n=d(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+"]"}let i=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!i||!(i.length>1))return toString.call(t);if("Object"==(n=i[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
-
${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;g().setInt32(e+4,i,!0),g().setInt32(e+0,n,!0)},e.wbg.__wbg___wbindgen_is_null_5e69f72e906cc57c=function(e){return null===e},e.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(e){return void 0===e},e.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50=function(e,t){return e===t},e.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(e,t){let n="string"==typeof t?t:void 0;var i=b(n)?0:d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=l;g().setInt32(e+4,o,!0),g().setInt32(e+0,i,!0)},e.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(e,t){throw Error(a(e,t))},e.wbg.__wbg_addEventListener_509b0778ff0f5d80=function(e,t,n){e.addEventListener(a(t,n))},e.wbg.__wbg_appendChild_aec7a8a4bd6cac61=function(){return p(function(e,t){return e.appendChild(t)},arguments)},e.wbg.__wbg_assign_322cd025d1feae78=function(e,t){return Object.assign(e,t)},e.wbg.__wbg_cloneNode_4ff138eda9fcd474=function(){return p(function(e,t){return e.cloneNode(0!==t)},arguments)},e.wbg.__wbg_content_a7b60fc3c1ac64bd=function(e){return e.content},e.wbg.__wbg_createElement_964ab674a0176cd8=function(){return p(function(e,t,n){return e.createElement(a(t,n))},arguments)},e.wbg.__wbg_disableElementEvent_54563f003ce6f005=function(e,t,n,r){e.disableElementEvent(t>>>0,a(n,r))},e.wbg.__wbg_done_2042aa2670fb1db1=function(e){return e.done},e.wbg.__wbg_enableElementEvent_b56814551effb38c=function(e,t,n,r){e.enableElementEvent(t>>>0,a(n,r))},e.wbg.__wbg_eventinfo_new=function(e){return T.__wrap(e)},e.wbg.__wbg_firstChild_dab0d4655f86bce5=function(e){let t=e.firstChild;return b(t)?0:w(t)},e.wbg.__wbg_getAttribute_a0d65fabc2f0d559=function(e,t,n,i){let o=t.getAttribute(a(n,i));var _=b(o)?0:d(o,r.__wbindgen_malloc,r.__wbindgen_realloc),s=l;g().setInt32(e+4,s,!0),g().setInt32(e+0,_,!0)},e.wbg.__wbg_get_7bed016f185add81=function(e,t){return e[t>>>0]},e.wbg.__wbg_get_efcb449f58ec27c2=function(){return p(function(e,t){return Reflect.get(e,t)},arguments)},e.wbg.__wbg_has_787fafc980c3ccdb=function(){return p(function(e,t){return Reflect.has(e,t)},arguments)},e.wbg.__wbg_keys_b4d27b02ad14f4be=function(e){return Object.keys(e)},e.wbg.__wbg_length_69bca3cb64fc8748=function(e){return e.length},e.wbg.__wbg_length_cdd215e10d9dd507=function(e){return e.length},e.wbg.__wbg_loadInternalWebElement_8cae19b87cc26220=function(e,t){e.loadInternalWebElement(t>>>0)},e.wbg.__wbg_loadUnknownElement_762c72a091c9dc9e=function(e,t,n){e.loadUnknownElement(a(t,n))},e.wbg.__wbg_markExposureRelatedElementByUniqueId_c37ed9a4da654c4e=function(e,t,n){e.markExposureRelatedElementByUniqueId(t>>>0,0!==n)},e.wbg.__wbg_new_1acc0b6eea89d040=function(){return{}},e.wbg.__wbg_new_from_slice_92f4d78ca282a2d2=function(e,t){return new Uint8Array(h(e,t))},e.wbg.__wbg_next_020810e0ae8ebcb0=function(){return p(function(e){return e.next()},arguments)},e.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(e,t,n){Uint8Array.prototype.set.call(h(e,t),n)},e.wbg.__wbg_publishEvent_9003166a9524dc81=function(e,t,n,r,i,o,_,s,l,c){e.publishEvent(a(t,n),0===r?void 0:a(r,i),o,_>>>0,s,l>>>0,c)},e.wbg.__wbg_querySelectorAll_28da62a91120d3e9=function(){return p(function(e,t,n){return e.querySelectorAll(a(t,n))},arguments)},e.wbg.__wbg_removeAttribute_993c4bef8df6e74d=function(){return p(function(e,t,n){e.removeAttribute(a(t,n))},arguments)},e.wbg.__wbg_removeProperty_f76e32d12224854d=function(){return p(function(e,t,n,i){let o=d(t.removeProperty(a(n,i)),r.__wbindgen_malloc,r.__wbindgen_realloc),_=l;g().setInt32(e+4,_,!0),g().setInt32(e+0,o,!0)},arguments)},e.wbg.__wbg_runWorklet_6d04359b8a8c370f=function(e,t,n,r,i,o,_){e.runWorklet(t,n,r>>>0,i,o>>>0,_)},e.wbg.__wbg_setAttribute_9bad76f39609daac=function(){return p(function(e,t,n,r,i){e.setAttribute(a(t,n),a(r,i))},arguments)},e.wbg.__wbg_setProperty_7b188d7e71d4aca8=function(){return p(function(e,t,n,r,i){e.setProperty(a(t,n),a(r,i))},arguments)},e.wbg.__wbg_set_c2abbebe8b9ebee1=function(){return p(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_style_763a7ccfd47375da=function(e){return e.style},e.wbg.__wbg_value_692627309814bb8c=function(e){return e.value},e.wbg.__wbg_values_fea03b2a33fe593c=function(e){return e.values()},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){return a(e,t)},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return e},e.wbg.__wbindgen_init_externref_table=function(){let e=r.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_object_is_undefined=function(e){return void 0===e},e}function G(e,t){return r=e.exports,B.__wbindgen_wasm_module=t,u=null,v=null,i=null,r.__wbindgen_start(),r}function z(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=q();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),G(new WebAssembly.Instance(e,t),e)}async function B(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(n(6462),n.b));let t=q();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:o}=await F(await e,t);return G(i,o)}let $=B},6658(e,t,n){n.d(t,{Q:()=>_});var r=n(1180);let i=Promise.resolve().then(n.bind(n,9521));class o{#e=new Map;#t=new Map;#n=new Map;#r=null;#i=null;#o=null;constructor(){this.#_()}fetchBundle(e,t,n){return this.#e.has(e)&&!n?(async()=>{let n=this.#e.get(e),r=n?.config||{},i=await t;i.backgroundThread.markTiming("decode_start"),i.onPageConfigReady(r);let o=n?.styleInfo;o&&i.onStyleInfoReady(o,e),i.onMTSScriptsLoaded(e,"true"===r.isLazy),i.onBTSScriptsLoaded(e)})():(this.createTemplate(e),this.#s(e,t,n))}async #s(e,t,n){let r=performance.now()+performance.timeOrigin;t.then(e=>{e.backgroundThread.markTiming("fetch_start",void 0,r)}),this.#t.set(e,t),await this.#_();let i={type:"load",url:e,fetchUrl:new URL(e,location.href).toString(),overrideConfig:n};return this.#r.postMessage(i),new Promise((t,n)=>{this.#n.set(e,{resolve:t,reject:n})})}#a(e){let t=this.#n.get(e);t&&(t.resolve(),this.#n.delete(e))}#l(e,t){let n=this.#n.get(e);n&&(n.reject(t),this.#n.delete(e))}#_(){return this.#r?this.#i?this.#i:void 0:(this.#i=new Promise(e=>{this.#o=e}),this.#r=new Worker(new URL(n.p+n.u("350"),n.b),Object.assign({},{type:"module"},{type:void 0})),this.#r.onmessage=this.#c.bind(this),this.#i.then(()=>{i.then(({wasmModule:e})=>{this.#r.postMessage({type:"init",wasmModule:e})})}),this.#i)}#c(e){let t=e.data;if("ready"===t.type){this.#o&&(this.#o(),this.#o=null,this.#i=null);return}let{url:n}=t,r=this.#t.get(n);if(r)switch(t.type){case"section":this.#d(t,r);break;case"error":console.error(`Error decoding template ${n}:`,t.error),this.#u(n),this.#g(n),this.#l(n,Error(t.error));break;case"done":this.#u(n),r.then(e=>{e.backgroundThread.markTiming("decode_end"),e.backgroundThread.markTiming("load_template_start"),this.#a(n)})}}async #d(e,t){let[n,{DecodedStyle:o,ElementTemplateSection:_}]=await Promise.all([t,i.then(({DecodedStyle:e,wasmInstance:t})=>({DecodedStyle:e,ElementTemplateSection:t.ElementTemplateSection}))]),{label:s,data:a,url:l,config:c}=e;switch(s){case r.eC.Configurations:n.backgroundThread.markTiming("decode_start"),this.#b(l,a),n.onPageConfigReady(a);break;case r.eC.StyleInfo:{let e=new o(new Uint8Array(a));this.#w(l,e),n.onStyleInfoReady(e,l);break}case r.eC.LepusCode:this.#p(l,a),n.onMTSScriptsLoaded(l,"true"===c.isLazy);break;case r.eC.ElementTemplates:let d=_.from_encoded(new Uint8Array(a));this.setElementTemplateSection(l,d);break;case r.eC.CustomSections:this.#h(l,a);break;case r.eC.Manifest:this.#f(l,a),n.onBTSScriptsLoaded(l);break;default:throw Error(`Unknown section label: ${s}`)}}#u(e){this.#t.delete(e)}createTemplate(e){if(this.#e.has(e)){let t=this.#e.get(e);if(t){if(t.lepusCode)for(let e of Object.values(t.lepusCode))URL.revokeObjectURL(e);if(t.backgroundCode)for(let e of Object.values(t.backgroundCode))URL.revokeObjectURL(e)}this.#e.delete(e)}this.#e.set(e,{})}#g(e){this.#e.delete(e)}#b(e,t){let n=this.#e.get(e);n&&(n.config=t)}#w(e,t){let n=this.#e.get(e);n&&(n.styleInfo=t)}#p(e,t){let n=this.#e.get(e);n&&(n.lepusCode=t)}setElementTemplateSection(e,t){let n=this.#e.get(e);n&&(n.elementTemplates=t)}#h(e,t){let n=this.#e.get(e);n&&(n.customSections=t)}#f(e,t){let n=this.#e.get(e);n&&(n.backgroundCode=t)}getTemplate(e){return this.#e.get(e)}}let _=new o},9521(e,t,n){n.a(e,async function(e,r){try{n.r(t),n.d(t,{DecodedStyle:()=>a,wasmInstance:()=>_,wasmModule:()=>s});var i=n(480);let e="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,o=(0,i.rO)().then(t=>{if(t)return Promise.all([Promise.resolve().then(n.bind(n,5704)),e?void 0:WebAssembly.compileStreaming(fetch(new URL(n(6462),n.b)))]);throw Error("WASM not supported")}),[_,s]=await o;e||_.initSync({module:s});class a{static webWorkerDecode(e,t,n){return _.DecodedStyleData.decode_into(e,n,t)}#m;style_content;font_face_content;constructor(e){this.#m=new _.DecodedStyleData(e),this.style_content=this.#m.style_content,this.font_face_content=this.#m.font_face_content,this.query_css_og_declarations_by_css_id=this.#m.query_css_og_declarations_by_css_id.bind(this.#m)}query_css_og_declarations_by_css_id}r()}catch(e){r(e)}},1)},1180(e,t,n){n.d(t,{$4:()=>b,Fd:()=>u,Gm:()=>a,H1:()=>y,JA:()=>o,O4:()=>m,Pb:()=>i,RM:()=>g,Wx:()=>k,eC:()=>p,f7:()=>l,hv:()=>d,im:()=>w,js:()=>r,li:()=>x,oZ:()=>s,u9:()=>S,vh:()=>v,xW:()=>c,y:()=>_});let r="l-css-id",i="l-e-name",o="l-disposed",_="l-template",s="dirtyID",a="lynx-default-display-linear",l="lynx-default-overflow-visible",c="__lynx_timing_flag",d="i18nResourceMissed",u=Symbol("uniqueId"),g={platform:"web",lynxSdkVersion:"3.0"},b={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},w=Object.fromEntries(Object.entries(b).map(([e,t])=>[t,e])),p={Manifest:1,StyleInfo:2,LepusCode:3,CustomSections:4,ElementTemplates:5,Configurations:6};var h,f,m=((h={})[h.SUCCESS=0]="SUCCESS",h[h.UNKNOWN=1]="UNKNOWN",h[h.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",h[h.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",h[h.PARAM_INVALID=4]="PARAM_INVALID",h[h.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",h[h.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",h);let y=Object.freeze(Object.assign(Object.create(null),{view:"x-view",text:"x-text",image:"x-image","raw-text":"raw-text","scroll-view":"x-scroll-view",wrapper:"lynx-wrapper",list:"x-list",page:"div",input:"x-input","x-input-ng":"x-input",svg:"x-svg"})),v=Object.freeze(Object.assign(Object.create(null),Object.fromEntries(Object.entries(y).map(([e,t])=>[t,e]))));Object.assign(Object.create(null),{list:0,"x-swiper":1,"x-input":2,"x-input-ng":2,input:2,"x-textarea":3,"x-audio-tt":4,"x-foldview-ng":5,"x-foldview-header-ng":5,"x-foldview-slot-drag-ng":5,"x-foldview-slot-ng":5,"x-foldview-toolbar-ng":5,"x-refresh-view":6,"x-refresh-header":6,"x-refresh-footer":6,"x-overlay-ng":7,"x-viewpager-ng":8,"x-viewpager-item-ng":8});let x=Symbol.for("lynx-scroll-container-dom"),S="loadUnknownElement";var k=((f={})[f.ID_SELECTOR=0]="ID_SELECTOR",f[f.REF_ID=1]="REF_ID",f[f.UNIQUE_ID=2]="UNIQUE_ID",f)},480(e,t,n){n.d(t,{rO:()=>r});let r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11]))}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,s=(_="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",a=o.aE=_?Symbol("rspack exports"):"__webpack_exports__",l=_?Symbol("rspack error"):"__rspack_error",c=_?Symbol("rspack done"):"__rspack_done",d=o.zS=_?Symbol("rspack defer"):"__rspack_defer",u=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o.a=(e,t,n)=>{n&&((r=[]).d=-1);var r,_,g,b,w=new Set,p=e.exports,h=new Promise((e,t)=>{b=t,g=e});h[a]=p,h[s]=e=>{r&&e(r),w.forEach(e),h.catch(()=>{})},e.exports=h,t(e=>{_=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[s]&&e[d]){var t=e[d];if(!t.some(e=>{var t=i[e];return!t||!1===t[c]}))return e;var n=e;e={then(e){Promise.all(t.map(o)).then(()=>e(n))}}}if(e[s])return e;if(e.then){var r=[];r.d=0,e.then(e=>{_[a]=e,u(r)},e=>{_[l]=e,u(r)});var _={};return _[d]=!1,_[s]=e=>e(r),_}}var g={};return g[s]=()=>{},g[a]=e,g});var t,n=()=>_.map(e=>{if(e[d])return e;if(e[l])throw e[l];return e[a]}),g=new Promise(e=>{(t=()=>e(n)).r=0;var i=e=>e!==r&&!w.has(e)&&(w.add(e),e&&!e.d&&(t.r++,e.push(t)));_.map(e=>e[d]||e[s](i))});return t.r?g:n()},e=>(e?b(h[l]=e):g(p),u(r),h[c]=!0)),r&&r.d<0&&(r.d=0)},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=(e,t)=>Promise.all(Object.keys(o.f).reduce((n,r)=>(o.f[r](e,n,t),n),[])),o.u=e=>"static/js/async/"+({185:"web-elements-list",350:"web-core-template-loader-thread",43:"web-elements-textarea",555:"web-elements-foldview",577:"web-elements-swiper",589:"web-elements-input",614:"web-elements-refrshview",625:"web-elements-overlay",785:"web-elements-viewpager",843:"web-elements-audio",894:"web-core-main-chunk",97:"web-core-worker-chunk"})[e]+".js",o.miniCssF=e=>"static/css/async/web-core-main-chunk.css",o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g={},o.l=function(e,t,n,r,i){if(g[e])return void g[e].push(t);if(void 0!==n)for(var _,s,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var c=a[l];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@lynx-js/web-core-wasm:"+n){_=c;break}}_||(s=!0,(_=document.createElement("script")).timeout=120,o.nc&&_.setAttribute("nonce",o.nc),_.setAttribute("data-rspack","@lynx-js/web-core-wasm:"+n),i&&_.setAttribute("fetchpriority",i),_.src=e),g[e]=[t];var d=function(t,n){_.onerror=_.onload=null,clearTimeout(u);var r=g[e];if(delete g[e],_.parentNode&&_.parentNode.removeChild(_),r&&r.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:_}),12e4);_.onerror=d.bind(null,_.onerror),_.onload=d.bind(null,_.onload),s&&document.head.appendChild(_)},o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.g.importScripts&&(b=o.g.location+"");var _,s,a,l,c,d,u,g,b,w=o.g.document;if(!b&&w&&(w.currentScript&&"SCRIPT"===w.currentScript.tagName.toUpperCase()&&(b=w.currentScript.src),!b)){var p=w.getElementsByTagName("script");if(p.length)for(var h=p.length-1;h>-1&&(!b||!/^http(s?):/.test(b));)b=p[h--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");if(o.p=(b=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../","u">typeof document){var f=function(e,t,n,r,i){var _=document.createElement("link");return _.rel="stylesheet",_.type="text/css",o.nc&&(_.nonce=o.nc),_.href=t,_.onerror=_.onload=function(n){if(_.onerror=_.onload=null,"load"===n.type)r();else{var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,a=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");a.code="CSS_CHUNK_LOAD_FAILED",a.type=o,a.request=s,_.parentNode&&_.parentNode.removeChild(_),i(a)}},n?n.parentNode.insertBefore(_,n.nextSibling):document.head.appendChild(_),_},m=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=n[r],o=i.getAttribute("data-href")||i.getAttribute("href");if(o&&(o=o.split("?")[0]),"stylesheet"===i.rel&&(o===e||o===t))return i}for(var _=document.getElementsByTagName("style"),r=0;r<_.length;r++){var i=_[r],o=i.getAttribute("data-href");if(o===e||o===t)return i}},y={719:0};o.f.miniCss=function(e,t){if(y[e])t.push(y[e]);else 0!==y[e]&&({894:1})[e]&&t.push(y[e]=new Promise(function(t,n){var r=o.miniCssF(e),i=o.p+r;if(m(r,i))return t();f(e,i,null,t,n)}).then(function(){y[e]=0},function(t){throw delete y[e],t}))}}o.b=document.baseURI||self.location.href,e={719:0},o.f.j=function(t,n,r){var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var _=new Promise((n,r)=>i=e[t]=[n,r]);n.push(i[2]=_);var s=o.p+o.u(t),a=Error();o.l(s,function(n){if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),_=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+_+")",a.name="ChunkLoadError",a.type=r,a.request=_,i[1](a)}},"chunk-"+t,t,r)}},t=(t,n)=>{var r,i,[_,s,a]=n,l=0;if(_.some(t=>0!==e[t])){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);a&&a(o)}for(t&&t(n);l<_.length;l++)i=_[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},(n=globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),(()=>{var e=o(1180);let t=document.querySelector("script[nonce]"),n=t?.nonce||t?.getAttribute("nonce");async function r(e){let t=document.createElement("iframe"),r=new Promise(e=>{let n=r=>{"lynx:mtsready"===r.data&&r.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc='<!DOCTYPE html><html><head><script>parent.postMessage("lynx:mtsready","*")<\/script></head><body style="display:none"></body></html>',t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await r;let i=t.contentWindow,o=async e=>{let r=t.contentDocument.createElement("script");return r.fetchPriority="high",r.defer=!0,r.async=!1,r.nonce=n||"",t.contentDocument.head.appendChild(r),new Promise(async(t,n)=>{r.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},r.onerror=t=>n(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},r.src=e})};return{globalWindow:i,loadScript:o,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let r=i?.module?.exports;return i.module={exports:void 0},r}throw Error(`Failed to load script: ${e}`,{cause:n})}}}var i=o(6658);o.e("894","high").then(o.bind(o,3764));class _ extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=_.observedAttributeAsProperties.map(e=>e.toLowerCase());#y;#v=!1;#x;nativeModulesMap;napiModulesMap;onNapiModulesCall;constructor(){super(),this.onNativeModulesCall||(this.onNativeModulesCall=(e,t,n)=>new Promise(r=>{this.#S.push({args:[e,t,n],resolve:r})}))}get url(){return this.#x}set url(e){this.#x=e,this.#k()}#E={};get globalProps(){return this.#E}set globalProps(e){"string"==typeof e?this.#E=JSON.parse(e):this.#E=e}#C={};get initData(){return this.#C}set initData(e){"string"==typeof e?this.#C=JSON.parse(e):this.#C=e}#R=[];get initI18nResources(){return this.#R}set initI18nResources(e){"string"==typeof e?this.#R=JSON.parse(e):this.#R=e}updateI18nResources(e,t){this.#y?.i18nManager.updateData(e,t)}#T={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#T}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#T=JSON.parse(e):this.#T=e}#S=[];#O;get onNativeModulesCall(){return this.#O}set onNativeModulesCall(e){for(let t of(this.#O=e,this.#S))t.resolve(e.apply(void 0,t.args));this.#S=[]}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#y?.updateData(e,t).then(()=>{n?.()})}updateGlobalProps(e){this.#y?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#y?.backgroundThread.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#k()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#x=n;break;case"global-props":this.#E=JSON.parse(n);break;case"init-data":this.#C=JSON.parse(n)}}injectStyleRules;disconnectedCallback(){this.shadowRoot?.querySelector('[part="page"]')?.setAttribute(e.JA,""),this.#y?.[Symbol.asyncDispose](),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.#y=void 0}#I=!1;#k(){if(!this.#I&&this.#v){this.#I=!0,this.shadowRoot||this.attachShadow({mode:"open"}),this.#y&&this.disconnectedCallback();let e=r(this.shadowRoot);queueMicrotask(async()=>{if(this.injectStyleRules&&this.injectStyleRules.length>0){let e=new CSSStyleSheet;for(let t of this.injectStyleRules)e.insertRule(t);this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.concat(e)}let t=await e;if(this.#x){let e=o.e("894","high").then(o.bind(o,3764)).then(({LynxViewInstance:e})=>new e(this,this.initData,this.globalProps,this.#x,this.shadowRoot,t,n,this.nativeModulesMap,this.napiModulesMap,this.#R));i.Q.fetchBundle(this.#x,e);let n=this.lynxGroupId;this.#y=await e,this.#I=!1}})}}connectedCallback(){this.url&&(this.#x=this.url),this.#v=!0,this.#k()}}customElements.get(_.tag)?console.error(`[${_.tag}] has already been defined`):customElements.define(_.tag,_)})()})();
|
|
1
|
+
(()=>{"use strict";var e,t,n,r={6462(e,t,n){e.exports=n.p+"static/wasm/3d7e607b.module.wasm"},5704(e,t,n){let r;n.r(t),n.d(t,{DecodedStyleData:()=>i,ElementTemplateSection:()=>o,EventInfo:()=>_,MainThreadWasmContext:()=>s,RawStyleInfo:()=>a,Rule:()=>l,RulePrelude:()=>c,Selector:()=>d,default:()=>z,initSync:()=>G});class i{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,g.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_decodedstyledata_free(e,0)}static decode_into(e,t,n){var i=M(t)?0:P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=W;let _=r.decodedstyledata_decode_into(e,i,o,n);if(_[2])throw N(_[1]);return N(_[0])}static encode_from_raw_style_info(e,t,n){x(e,a);var i=e.__destroy_into_raw(),o=M(n)?0:P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),_=W;let s=r.decodedstyledata_encode_from_raw_style_info(i,t,o,_);if(s[2])throw N(s[1]);return N(s[0])}get font_face_content(){let e,t;try{let n=r.decodedstyledata_font_face_content(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}constructor(e){const t=r.decodedstyledata_new(e);if(t[2])throw N(t[1]);return this.__wbg_ptr=t[0]>>>0,g.register(this,this.__wbg_ptr,this),this}query_css_og_declarations_by_css_id(e,t){let n,i;try{let o=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=v(e[t]);C().setUint32(n+4*t,r,!0)}return W=e.length,n}(t,r.__wbindgen_malloc),_=W,s=r.decodedstyledata_query_css_og_declarations_by_css_id(this.__wbg_ptr,e,o,_);return n=s[0],i=s[1],R(s[0],s[1])}finally{r.__wbindgen_free(n,i,1)}}get style_content(){let e,t;try{let n=r.decodedstyledata_style_content(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{static __wrap(e){e>>>=0;let t=Object.create(o.prototype);return t.__wbg_ptr=e,b.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,b.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_elementtemplatesection_free(e,0)}static from_encoded(e){let t=r.elementtemplatesection_from_encoded(e);if(t[2])throw N(t[1]);return o.__wrap(t[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class _{static __wrap(e){e>>>=0;let t=Object.create(_.prototype);return t.__wbg_ptr=e,w.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,w.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_eventinfo_free(e,0)}get function(){return r.__wbg_get_eventinfo_function(this.__wbg_ptr)}get name(){let e,t;try{let n=r.__wbg_get_eventinfo_name(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get type(){let e,t;try{let n=r.__wbg_get_eventinfo_type(this.__wbg_ptr);return e=n[0],t=n[1],R(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set function(e){r.__wbg_set_eventinfo_function(this.__wbg_ptr,e)}set name(e){let t=P(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=W;r.__wbg_set_eventinfo_name(this.__wbg_ptr,t,n)}set type(e){let t=P(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=W;r.__wbg_set_eventinfo_type(this.__wbg_ptr,t,n)}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class s{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,p.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}__AddDataset(e,t,n){let i=r.mainthreadwasmcontext___AddDataset(this.__wbg_ptr,e,t,n);if(i[1])throw N(i[0])}__CreateElementCommon(e,t,n,i){var o=M(i)?0:P(i,r.__wbindgen_malloc,r.__wbindgen_realloc),_=W;return r.mainthreadwasmcontext___CreateElementCommon(this.__wbg_ptr,e,t,M(n)?0x100000001:0|n,o,_)>>>0}__GetComponentID(e){let t,n=r.mainthreadwasmcontext___GetComponentID(this.__wbg_ptr,e);if(n[3])throw N(n[2]);return 0!==n[0]&&(t=R(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}__GetConfig(e){let t=r.mainthreadwasmcontext___GetConfig(this.__wbg_ptr,e);if(t[2])throw N(t[1]);return N(t[0])}__GetDataByKey(e,t){let n=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=W,o=r.mainthreadwasmcontext___GetDataByKey(this.__wbg_ptr,e,n,i);if(o[2])throw N(o[1]);return N(o[0])}__GetDataset(e){let t=r.mainthreadwasmcontext___GetDataset(this.__wbg_ptr,e);if(t[2])throw N(t[1]);return N(t[0])}__GetElementConfig(e){let t=r.mainthreadwasmcontext___GetElementConfig(this.__wbg_ptr,e);if(t[2])throw N(t[1]);return N(t[0])}__GetEvent(e,t,n){let i=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=W,_=P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=W;return r.mainthreadwasmcontext___GetEvent(this.__wbg_ptr,e,i,o,_,s)}__GetEvents(e){let t=r.mainthreadwasmcontext___GetEvents(this.__wbg_ptr,e);var n=S(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}__SetConfig(e,t){let n=r.mainthreadwasmcontext___SetConfig(this.__wbg_ptr,e,t);if(n[1])throw N(n[0])}__SetDataset(e,t,n){let i=r.mainthreadwasmcontext___SetDataset(this.__wbg_ptr,e,t,n);if(i[1])throw N(i[0])}__UpdateComponentID(e,t){var n=M(t)?0:P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=W;let o=r.mainthreadwasmcontext___UpdateComponentID(this.__wbg_ptr,e,n,i);if(o[1])throw N(o[0])}__wasm_AddInlineStyle_number_key(e,t,n){var i=M(n)?0:P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=W;r.mainthreadwasmcontext___wasm_AddInlineStyle_number_key(this.__wbg_ptr,e,t,i,o)}__wasm_AddInlineStyle_str_key(e,t,n){let i=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=W;var _=M(n)?0:P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=W;r.mainthreadwasmcontext___wasm_AddInlineStyle_str_key(this.__wbg_ptr,e,i,o,_,s)}__wasm_SetInlineStyles(e,t){let n=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=W;return 0!==r.mainthreadwasmcontext___wasm_SetInlineStyles(this.__wbg_ptr,e,n,i)}__wasm_add_event_bts(e,t,n,i){let o=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=W,s=P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=W;var l=M(i)?0:P(i,r.__wbindgen_malloc,r.__wbindgen_realloc),c=W;r.mainthreadwasmcontext___wasm_add_event_bts(this.__wbg_ptr,e,o,_,s,a,l,c)}__wasm_add_event_run_worklet(e,t,n,i){let o=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=W,s=P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=W;r.mainthreadwasmcontext___wasm_add_event_run_worklet(this.__wbg_ptr,e,o,_,s,a,M(i)?0:v(i))}__wasm_commonEventHandler(e,t,n){let i=D(t,r.__wbindgen_malloc),o=W,_=P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=W;r.mainthreadwasmcontext___wasm_commonEventHandler(this.__wbg_ptr,e,i,o,_,s)}__wasm_get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext___wasm_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}__wasm_get_unique_id_by_component_id(e){let t=P(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=W,i=r.mainthreadwasmcontext___wasm_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===i?void 0:i}__wasm_set_css_id(e,t){let n=D(e,r.__wbindgen_malloc),i=W;r.mainthreadwasmcontext___wasm_set_css_id(this.__wbg_ptr,n,i,t)}__wasm_set_page_element_unique_id(e){r.mainthreadwasmcontext___wasm_set_page_element_unique_id(this.__wbg_ptr,e)}__wasm_take_timing_flags(){let e=r.mainthreadwasmcontext___wasm_take_timing_flags(this.__wbg_ptr);var t=S(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}_wasm_elementFromBinary(e,t,n,i){let _=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=W,a=P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=W;x(i,o);let c=r.mainthreadwasmcontext__wasm_elementFromBinary(this.__wbg_ptr,e,_,s,a,l,i.__wbg_ptr);if(c[2])throw N(c[1]);return N(c[0])}dispatch_event_by_path(e,t,n,i){let o=D(e,r.__wbindgen_malloc),_=W,s=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=W;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,o,_,s,a,n,i)}constructor(e,t,n,i,o){const _=r.mainthreadwasmcontext_new(e,t,n,i,o);return this.__wbg_ptr=_>>>0,p.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class a{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,h.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rawstyleinfo_free(e,0)}append_import(e,t){r.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}constructor(){const e=r.rawstyleinfo_new();return this.__wbg_ptr=e>>>0,h.register(this,this.__wbg_ptr,this),this}push_rule(e,t){x(t,l);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class l{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,f.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rule_free(e,0)}constructor(e){const t=P(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=W,i=r.rule_new(t,n);if(i[2])throw N(i[1]);return this.__wbg_ptr=i[0]>>>0,f.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let n=P(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=W,o=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=W;r.rule_push_declaration(this.__wbg_ptr,n,i,o,_)}push_rule_children(e){x(e,l);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){x(e,c);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,m.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,m.register(this,this.__wbg_ptr,this),this}push_selector(e){x(e,d);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class d{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,y.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,y.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=P(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=W,o=P(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=W,s=r.selector_push_one_selector_section(this.__wbg_ptr,n,i,o,_);if(s[1])throw N(s[0])}}function u(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(e,t){return Error(R(e,t))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(e,t){let n=P(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+"]"}let i=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!i||!(i.length>1))return toString.call(t);if("Object"==(n=i[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
+
${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),i=W;C().setInt32(e+4,i,!0),C().setInt32(e+0,n,!0)},__wbg___wbindgen_is_null_ac34f5003991759a:function(e){return null===e},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(e){return void 0===e},__wbg___wbindgen_jsval_eq_11888390b0186270:function(e,t){return e===t},__wbg___wbindgen_string_get_72fb696202c56729:function(e,t){let n="string"==typeof t?t:void 0;var i=M(n)?0:P(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=W;C().setInt32(e+4,o,!0),C().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(e,t){throw Error(R(e,t))},__wbg_addEventListener_509b0778ff0f5d80:function(e,t,n){e.addEventListener(R(t,n))},__wbg_appendChild_dea38765a26d346d:function(){return A(function(e,t){return e.appendChild(t)},arguments)},__wbg_assign_6170c0d04d5c26f4:function(e,t){return Object.assign(e,t)},__wbg_cloneNode_b85e9102a9a31b29:function(){return A(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_content_681ebf067b179491:function(e){return e.content},__wbg_createElement_49f60fdcaae809c8:function(){return A(function(e,t,n){return e.createElement(R(t,n))},arguments)},__wbg_disableElementEvent_54563f003ce6f005:function(e,t,n,r){e.disableElementEvent(t>>>0,R(n,r))},__wbg_done_57b39ecd9addfe81:function(e){return e.done},__wbg_enableElementEvent_b56814551effb38c:function(e,t,n,r){e.enableElementEvent(t>>>0,R(n,r))},__wbg_eventinfo_new:function(e){return _.__wrap(e)},__wbg_firstChild_2950111f6da7246c:function(e){let t=e.firstChild;return M(t)?0:v(t)},__wbg_getAttribute_b9f6fc4b689c71b0:function(e,t,n,i){let o=t.getAttribute(R(n,i));var _=M(o)?0:P(o,r.__wbindgen_malloc,r.__wbindgen_realloc),s=W;C().setInt32(e+4,s,!0),C().setInt32(e+0,_,!0)},__wbg_get_9b94d73e6221f75c:function(e,t){return e[t>>>0]},__wbg_get_b3ed3ad4be2bc8ac:function(){return A(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_d4e53238966c12b6:function(){return A(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_keys_b50a709a76add04e:function(e){return Object.keys(e)},__wbg_length_32ed9a279acd054c:function(e){return e.length},__wbg_length_35a7bace40f36eac:function(e){return e.length},__wbg_loadInternalWebElement_8cae19b87cc26220:function(e,t){e.loadInternalWebElement(t>>>0)},__wbg_loadUnknownElement_762c72a091c9dc9e:function(e,t,n){e.loadUnknownElement(R(t,n))},__wbg_markExposureRelatedElementByUniqueId_c37ed9a4da654c4e:function(e,t,n){e.markExposureRelatedElementByUniqueId(t>>>0,0!==n)},__wbg_new_361308b2356cecd0:function(){return{}},__wbg_new_from_slice_a3d2629dc1826784:function(e,t){return new Uint8Array(k(e,t))},__wbg_next_3482f54c49e8af19:function(){return A(function(e){return e.next()},arguments)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(e,t,n){Uint8Array.prototype.set.call(k(e,t),n)},__wbg_publishEvent_9003166a9524dc81:function(e,t,n,r,i,o,_,s,a,l){e.publishEvent(R(t,n),0===r?void 0:R(r,i),o,_>>>0,s,a>>>0,l)},__wbg_querySelectorAll_32f0ddcdb5fe7c56:function(){return A(function(e,t,n){return e.querySelectorAll(R(t,n))},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return A(function(e,t,n){e.removeAttribute(R(t,n))},arguments)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return A(function(e,t,n,i){let o=P(t.removeProperty(R(n,i)),r.__wbindgen_malloc,r.__wbindgen_realloc),_=W;C().setInt32(e+4,_,!0),C().setInt32(e+0,o,!0)},arguments)},__wbg_runWorklet_6d04359b8a8c370f:function(e,t,n,r,i,o,_){e.runWorklet(t,n,r>>>0,i,o>>>0,_)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return A(function(e,t,n,r,i){e.setAttribute(R(t,n),R(r,i))},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return A(function(e,t,n,r,i){e.setProperty(R(t,n),R(r,i))},arguments)},__wbg_set_6cb8631f80447a67:function(){return A(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_style_0b7c9bd318f8b807:function(e){return e.style},__wbg_value_0546255b415e96c1:function(e){return e.value},__wbg_values_c473ad46ff5ddebc:function(e){return e.values()},__wbindgen_cast_0000000000000001:function(e){return e},__wbindgen_cast_0000000000000002:function(e,t){return R(e,t)},__wbindgen_init_externref_table:function(){let e=r.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},__wbindgen_object_is_undefined:function(e){return void 0===e}}}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);let g="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decodedstyledata_free(e>>>0,1)),b="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_elementtemplatesection_free(e>>>0,1)),w="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1)),p="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1)),h="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1)),f="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1)),m="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1)),y="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1));function v(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function x(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function S(e,t){e>>>=0;let n=C(),i=[];for(let o=e;o<e+4*t;o+=4)i.push(r.__wbindgen_externrefs.get(n.getUint32(o,!0)));return r.__externref_drop_slice(e,t),i}function k(e,t){return e>>>=0,I().subarray(e/1,e/1+t)}let E=null;function C(){return(null===E||!0===E.buffer.detached||void 0===E.buffer.detached&&E.buffer!==r.memory.buffer)&&(E=new DataView(r.memory.buffer)),E}function R(e,t){var n,r;return n=e>>>=0,(L+=r=t)>=0x7ff00000&&((j=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),L=r),j.decode(I().subarray(n,n+r))}let T=null,O=null;function I(){return(null===O||0===O.byteLength)&&(O=new Uint8Array(r.memory.buffer)),O}function A(e,t){try{return e.apply(this,t)}catch(t){let e=v(t);r.__wbindgen_exn_store(e)}}function M(e){return null==e}function D(e,t){let n=t(4*e.length,4)>>>0;return((null===T||0===T.byteLength)&&(T=new Uint32Array(r.memory.buffer)),T).set(e,n/4),W=e.length,n}function P(e,t,n){if(void 0===n){let n=U.encode(e),r=t(n.length,1)>>>0;return I().subarray(r,r+n.length).set(n),W=n.length,r}let r=e.length,i=t(r,1)>>>0,o=I(),_=0;for(;_<r;_++){let t=e.charCodeAt(_);if(t>127)break;o[i+_]=t}if(_!==r){0!==_&&(e=e.slice(_)),i=n(i,r,r=_+3*e.length,1)>>>0;let t=I().subarray(i+_,i+r);_+=U.encodeInto(e,t).written,i=n(i,r,_,1)>>>0}return W=_,i}function N(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}let j=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});j.decode();let L=0,U=new TextEncoder;"encodeInto"in U||(U.encodeInto=function(e,t){let n=U.encode(e);return t.set(n),{read:e.length,written:n.length}});let W=0;function F(e,t){return r=e.exports,E=null,T=null,O=null,r.__wbindgen_start(),r}async function q(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function G(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=u();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),F(new WebAssembly.Instance(e,t),e)}async function z(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(n(6462),n.b));let t=u();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:o}=await q(await e,t);return F(i,o)}},6658(e,t,n){n.d(t,{Q:()=>_});var r=n(1180);let i=Promise.resolve().then(n.bind(n,9521));class o{#e=new Map;#t=new Map;#n=new Map;#r=null;#i=null;#o=null;constructor(){this.#_()}fetchBundle(e,t,n){return this.#e.has(e)&&!n?(async()=>{let n=this.#e.get(e),r=n?.config||{},i=await t;i.backgroundThread.markTiming("decode_start"),i.onPageConfigReady(r);let o=n?.styleInfo;o&&i.onStyleInfoReady(o,e),i.onMTSScriptsLoaded(e,"true"===r.isLazy),i.onBTSScriptsLoaded(e)})():(this.createTemplate(e),this.#s(e,t,n))}async #s(e,t,n){let r=performance.now()+performance.timeOrigin;t.then(e=>{e.backgroundThread.markTiming("fetch_start",void 0,r)}),this.#t.set(e,t),await this.#_();let i={type:"load",url:e,fetchUrl:new URL(e,location.href).toString(),overrideConfig:n};return this.#r.postMessage(i),new Promise((t,n)=>{this.#n.set(e,{resolve:t,reject:n})})}#a(e){let t=this.#n.get(e);t&&(t.resolve(),this.#n.delete(e))}#l(e,t){let n=this.#n.get(e);n&&(n.reject(t),this.#n.delete(e))}#_(){return this.#r?this.#i?this.#i:void 0:(this.#i=new Promise(e=>{this.#o=e}),this.#r=new Worker(new URL(n.p+n.u("350"),n.b),Object.assign({},{type:"module"},{type:void 0})),this.#r.onmessage=this.#c.bind(this),this.#i.then(()=>{i.then(({wasmModule:e})=>{this.#r.postMessage({type:"init",wasmModule:e})})}),this.#i)}#c(e){let t=e.data;if("ready"===t.type){this.#o&&(this.#o(),this.#o=null,this.#i=null);return}let{url:n}=t,r=this.#t.get(n);if(r)switch(t.type){case"section":this.#d(t,r);break;case"error":console.error(`Error decoding template ${n}:`,t.error),this.#u(n),this.#g(n),this.#l(n,Error(t.error));break;case"done":this.#u(n),r.then(e=>{e.backgroundThread.markTiming("decode_end"),e.backgroundThread.markTiming("load_template_start"),this.#a(n)})}}async #d(e,t){let[n,{DecodedStyle:o,ElementTemplateSection:_}]=await Promise.all([t,i.then(({DecodedStyle:e,wasmInstance:t})=>({DecodedStyle:e,ElementTemplateSection:t.ElementTemplateSection}))]),{label:s,data:a,url:l,config:c}=e;switch(s){case r.eC.Configurations:n.backgroundThread.markTiming("decode_start"),this.#b(l,a),n.onPageConfigReady(a);break;case r.eC.StyleInfo:{let e=new o(new Uint8Array(a));this.#w(l,e),n.onStyleInfoReady(e,l);break}case r.eC.LepusCode:this.#p(l,a),n.onMTSScriptsLoaded(l,"true"===c.isLazy);break;case r.eC.ElementTemplates:let d=_.from_encoded(new Uint8Array(a));this.setElementTemplateSection(l,d);break;case r.eC.CustomSections:this.#h(l,a);break;case r.eC.Manifest:this.#f(l,a),n.onBTSScriptsLoaded(l);break;default:throw Error(`Unknown section label: ${s}`)}}#u(e){this.#t.delete(e)}createTemplate(e){if(this.#e.has(e)){let t=this.#e.get(e);if(t){if(t.lepusCode)for(let e of Object.values(t.lepusCode))URL.revokeObjectURL(e);if(t.backgroundCode)for(let e of Object.values(t.backgroundCode))URL.revokeObjectURL(e)}this.#e.delete(e)}this.#e.set(e,{})}#g(e){this.#e.delete(e)}#b(e,t){let n=this.#e.get(e);n&&(n.config=t)}#w(e,t){let n=this.#e.get(e);n&&(n.styleInfo=t)}#p(e,t){let n=this.#e.get(e);n&&(n.lepusCode=t)}setElementTemplateSection(e,t){let n=this.#e.get(e);n&&(n.elementTemplates=t)}#h(e,t){let n=this.#e.get(e);n&&(n.customSections=t)}#f(e,t){let n=this.#e.get(e);n&&(n.backgroundCode=t)}getTemplate(e){return this.#e.get(e)}}let _=new o},9521(e,t,n){n.a(e,async function(e,r){try{n.r(t),n.d(t,{DecodedStyle:()=>a,wasmInstance:()=>_,wasmModule:()=>s});var i=n(480);let e="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,o=(0,i.rO)().then(t=>{if(t)return Promise.all([Promise.resolve().then(n.bind(n,5704)),e?void 0:WebAssembly.compileStreaming(fetch(new URL(n(6462),n.b)))]);throw Error("WASM not supported")}),[_,s]=await o;e||_.initSync({module:s});class a{static webWorkerDecode(e,t,n){return _.DecodedStyleData.decode_into(e,n,t)}#m;style_content;font_face_content;constructor(e){this.#m=new _.DecodedStyleData(e),this.style_content=this.#m.style_content,this.font_face_content=this.#m.font_face_content,this.query_css_og_declarations_by_css_id=this.#m.query_css_og_declarations_by_css_id.bind(this.#m)}query_css_og_declarations_by_css_id}r()}catch(e){r(e)}},1)},1180(e,t,n){n.d(t,{$4:()=>b,Fd:()=>u,Gm:()=>a,H1:()=>y,JA:()=>o,O4:()=>m,Pb:()=>i,RM:()=>g,Wx:()=>k,eC:()=>p,f7:()=>l,hv:()=>d,im:()=>w,js:()=>r,li:()=>x,oZ:()=>s,u9:()=>S,vh:()=>v,xW:()=>c,y:()=>_});let r="l-css-id",i="l-e-name",o="l-disposed",_="l-template",s="dirtyID",a="lynx-default-display-linear",l="lynx-default-overflow-visible",c="__lynx_timing_flag",d="i18nResourceMissed",u=Symbol("uniqueId"),g={platform:"web",lynxSdkVersion:"3.0"},b={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},w=Object.fromEntries(Object.entries(b).map(([e,t])=>[t,e])),p={Manifest:1,StyleInfo:2,LepusCode:3,CustomSections:4,ElementTemplates:5,Configurations:6};var h,f,m=((h={})[h.SUCCESS=0]="SUCCESS",h[h.UNKNOWN=1]="UNKNOWN",h[h.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",h[h.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",h[h.PARAM_INVALID=4]="PARAM_INVALID",h[h.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",h[h.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",h);let y=Object.freeze(Object.assign(Object.create(null),{view:"x-view",text:"x-text",image:"x-image","raw-text":"raw-text","scroll-view":"x-scroll-view",wrapper:"lynx-wrapper",list:"x-list",page:"div",input:"x-input","x-input-ng":"x-input",svg:"x-svg"})),v=Object.freeze(Object.assign(Object.create(null),Object.fromEntries(Object.entries(y).map(([e,t])=>[t,e]))));Object.assign(Object.create(null),{list:0,"x-swiper":1,"x-input":2,"x-input-ng":2,input:2,"x-textarea":3,"x-audio-tt":4,"x-foldview-ng":5,"x-foldview-header-ng":5,"x-foldview-slot-drag-ng":5,"x-foldview-slot-ng":5,"x-foldview-toolbar-ng":5,"x-refresh-view":6,"x-refresh-header":6,"x-refresh-footer":6,"x-overlay-ng":7,"x-viewpager-ng":8,"x-viewpager-item-ng":8});let x=Symbol.for("lynx-scroll-container-dom"),S="loadUnknownElement";var k=((f={})[f.ID_SELECTOR=0]="ID_SELECTOR",f[f.REF_ID=1]="REF_ID",f[f.UNIQUE_ID=2]="UNIQUE_ID",f)},480(e,t,n){n.d(t,{rO:()=>r});let r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11]))}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,s=(_="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",a=o.aE=_?Symbol("rspack exports"):"__webpack_exports__",l=_?Symbol("rspack error"):"__rspack_error",c=_?Symbol("rspack done"):"__rspack_done",d=o.zS=_?Symbol("rspack defer"):"__rspack_defer",u=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o.a=(e,t,n)=>{n&&((r=[]).d=-1);var r,_,g,b,w=new Set,p=e.exports,h=new Promise((e,t)=>{b=t,g=e});h[a]=p,h[s]=e=>{r&&e(r),w.forEach(e),h.catch(()=>{})},e.exports=h,t(e=>{_=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[s]&&e[d]){var t=e[d];if(!t.some(e=>{var t=i[e];return!t||!1===t[c]}))return e;var n=e;e={then(e){Promise.all(t.map(o)).then(()=>e(n))}}}if(e[s])return e;if(e.then){var r=[];r.d=0,e.then(e=>{_[a]=e,u(r)},e=>{_[l]=e,u(r)});var _={};return _[d]=!1,_[s]=e=>e(r),_}}var g={};return g[s]=()=>{},g[a]=e,g});var t,n=()=>_.map(e=>{if(e[d])return e;if(e[l])throw e[l];return e[a]}),g=new Promise(e=>{(t=()=>e(n)).r=0;var i=e=>e!==r&&!w.has(e)&&(w.add(e),e&&!e.d&&(t.r++,e.push(t)));_.map(e=>e[d]||e[s](i))});return t.r?g:n()},e=>(e?b(h[l]=e):g(p),u(r),h[c]=!0)),r&&r.d<0&&(r.d=0)},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=(e,t)=>Promise.all(Object.keys(o.f).reduce((n,r)=>(o.f[r](e,n,t),n),[])),o.u=e=>"static/js/async/"+({185:"web-elements-list",350:"web-core-template-loader-thread",43:"web-elements-textarea",555:"web-elements-foldview",577:"web-elements-swiper",589:"web-elements-input",614:"web-elements-refrshview",625:"web-elements-overlay",785:"web-elements-viewpager",843:"web-elements-audio",894:"web-core-main-chunk",97:"web-core-worker-chunk"})[e]+".js",o.miniCssF=e=>"static/css/async/web-core-main-chunk.css",o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g={},o.l=function(e,t,n,r,i){if(g[e])return void g[e].push(t);if(void 0!==n)for(var _,s,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var c=a[l];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@lynx-js/web-core-wasm:"+n){_=c;break}}_||(s=!0,(_=document.createElement("script")).timeout=120,o.nc&&_.setAttribute("nonce",o.nc),_.setAttribute("data-rspack","@lynx-js/web-core-wasm:"+n),i&&_.setAttribute("fetchpriority",i),_.src=e),g[e]=[t];var d=function(t,n){_.onerror=_.onload=null,clearTimeout(u);var r=g[e];if(delete g[e],_.parentNode&&_.parentNode.removeChild(_),r&&r.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:_}),12e4);_.onerror=d.bind(null,_.onerror),_.onload=d.bind(null,_.onload),s&&document.head.appendChild(_)},o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.g.importScripts&&(b=o.g.location+"");var _,s,a,l,c,d,u,g,b,w=o.g.document;if(!b&&w&&(w.currentScript&&"SCRIPT"===w.currentScript.tagName.toUpperCase()&&(b=w.currentScript.src),!b)){var p=w.getElementsByTagName("script");if(p.length)for(var h=p.length-1;h>-1&&(!b||!/^http(s?):/.test(b));)b=p[h--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");if(o.p=(b=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../","u">typeof document){var f=function(e,t,n,r,i){var _=document.createElement("link");return _.rel="stylesheet",_.type="text/css",o.nc&&(_.nonce=o.nc),_.href=t,_.onerror=_.onload=function(n){if(_.onerror=_.onload=null,"load"===n.type)r();else{var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,a=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");a.code="CSS_CHUNK_LOAD_FAILED",a.type=o,a.request=s,_.parentNode&&_.parentNode.removeChild(_),i(a)}},n?n.parentNode.insertBefore(_,n.nextSibling):document.head.appendChild(_),_},m=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=n[r],o=i.getAttribute("data-href")||i.getAttribute("href");if(o&&(o=o.split("?")[0]),"stylesheet"===i.rel&&(o===e||o===t))return i}for(var _=document.getElementsByTagName("style"),r=0;r<_.length;r++){var i=_[r],o=i.getAttribute("data-href");if(o===e||o===t)return i}},y={719:0};o.f.miniCss=function(e,t){if(y[e])t.push(y[e]);else 0!==y[e]&&({894:1})[e]&&t.push(y[e]=new Promise(function(t,n){var r=o.miniCssF(e),i=o.p+r;if(m(r,i))return t();f(e,i,null,t,n)}).then(function(){y[e]=0},function(t){throw delete y[e],t}))}}o.b=document.baseURI||self.location.href,e={719:0},o.f.j=function(t,n,r){var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var _=new Promise((n,r)=>i=e[t]=[n,r]);n.push(i[2]=_);var s=o.p+o.u(t),a=Error();o.l(s,function(n){if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),_=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+_+")",a.name="ChunkLoadError",a.type=r,a.request=_,i[1](a)}},"chunk-"+t,t,r)}},t=(t,n)=>{var r,i,[_,s,a]=n,l=0;if(_.some(t=>0!==e[t])){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);a&&a(o)}for(t&&t(n);l<_.length;l++)i=_[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},(n=globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),(()=>{var e=o(1180);let t=document.querySelector("script[nonce]"),n=t?.nonce||t?.getAttribute("nonce");async function r(e){let t=document.createElement("iframe"),r=new Promise(e=>{let n=r=>{"lynx:mtsready"===r.data&&r.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc='<!DOCTYPE html><html><head><script>parent.postMessage("lynx:mtsready","*")<\/script></head><body style="display:none"></body></html>',t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await r;let i=t.contentWindow,o=async e=>{let r=t.contentDocument.createElement("script");return r.fetchPriority="high",r.defer=!0,r.async=!1,r.nonce=n||"",t.contentDocument.head.appendChild(r),new Promise(async(t,n)=>{r.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},r.onerror=t=>n(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},r.src=e})};return{globalWindow:i,loadScript:o,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let r=i?.module?.exports;return i.module={exports:void 0},r}throw Error(`Failed to load script: ${e}`,{cause:n})}}}var i=o(6658);o.e("894","high").then(o.bind(o,3764));class _ extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=_.observedAttributeAsProperties.map(e=>e.toLowerCase());#y;#v=!1;#x;nativeModulesMap;napiModulesMap;onNapiModulesCall;constructor(){super(),this.onNativeModulesCall||(this.onNativeModulesCall=(e,t,n)=>new Promise(r=>{this.#S.push({args:[e,t,n],resolve:r})}))}get url(){return this.#x}set url(e){this.#x=e,this.#k()}#E={};get globalProps(){return this.#E}set globalProps(e){"string"==typeof e?this.#E=JSON.parse(e):this.#E=e}#C={};get initData(){return this.#C}set initData(e){"string"==typeof e?this.#C=JSON.parse(e):this.#C=e}#R=[];get initI18nResources(){return this.#R}set initI18nResources(e){"string"==typeof e?this.#R=JSON.parse(e):this.#R=e}updateI18nResources(e,t){this.#y?.i18nManager.updateData(e,t)}#T={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#T}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#T=JSON.parse(e):this.#T=e}#S=[];#O;get onNativeModulesCall(){return this.#O}set onNativeModulesCall(e){for(let t of(this.#O=e,this.#S))t.resolve(e.apply(void 0,t.args));this.#S=[]}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#y?.updateData(e,t).then(()=>{n?.()})}updateGlobalProps(e){this.#y?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#y?.backgroundThread.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#k()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#x=n;break;case"global-props":this.#E=JSON.parse(n);break;case"init-data":this.#C=JSON.parse(n)}}injectStyleRules;disconnectedCallback(){this.shadowRoot?.querySelector('[part="page"]')?.setAttribute(e.JA,""),this.#y?.[Symbol.asyncDispose](),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.#y=void 0}#I=!1;#k(){if(!this.#I&&this.#v){this.#I=!0,this.shadowRoot||this.attachShadow({mode:"open"}),this.#y&&this.disconnectedCallback();let e=r(this.shadowRoot);queueMicrotask(async()=>{if(this.injectStyleRules&&this.injectStyleRules.length>0){let e=new CSSStyleSheet;for(let t of this.injectStyleRules)e.insertRule(t);this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.concat(e)}let t=await e;if(this.#x){let e=o.e("894","high").then(o.bind(o,3764)).then(({LynxViewInstance:e})=>new e(this,this.initData,this.globalProps,this.#x,this.shadowRoot,t,n,this.nativeModulesMap,this.napiModulesMap,this.#R));i.Q.fetchBundle(this.#x,e);let n=this.lynxGroupId;this.#y=await e,this.#I=!1}})}}connectedCallback(){this.url&&(this.#x=this.url),this.#v=!0,this.#k()}}customElements.get(_.tag)?console.error(`[${_.tag}] has already been defined`):customElements.define(_.tag,_)})()})();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-wasm-canary",
|
|
3
|
-
"version": "0.0.1-canary-
|
|
3
|
+
"version": "0.0.1-canary-20260119-609be14f",
|
|
4
4
|
"description": "This is an internal experimental package, do not use",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.11.0",
|
|
55
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-
|
|
55
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260119-609be14f",
|
|
56
56
|
"hyphenate-style-name": "^1.1.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|