@lynx-js/web-core-wasm-canary 0.0.2-canary-20260129-b0205255 → 0.0.2-canary-20260129-d02a6062

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/binary/client/client.d.ts +99 -99
  3. package/binary/client/client.js +381 -391
  4. package/binary/client/client_bg.wasm +0 -0
  5. package/binary/client/client_bg.wasm.d.ts +41 -40
  6. package/binary/client/client_debug.d.ts +102 -102
  7. package/binary/client/client_debug.js +381 -391
  8. package/binary/client/client_debug_bg.wasm +0 -0
  9. package/binary/client/client_debug_bg.wasm.d.ts +44 -43
  10. package/binary/encode/encode.d.ts +10 -59
  11. package/binary/encode/encode.js +151 -330
  12. package/binary/encode/encode_bg.wasm +0 -0
  13. package/binary/encode/encode_bg.wasm.d.ts +4 -24
  14. package/binary/encode/encode_debug.d.ts +10 -59
  15. package/binary/encode/encode_debug.js +82 -333
  16. package/binary/encode/encode_debug_bg.wasm +0 -0
  17. package/binary/encode/encode_debug_bg.wasm.d.ts +5 -25
  18. package/dist/client/decodeWorker/cssLoader.d.ts +1 -1
  19. package/dist/client/decodeWorker/cssLoader.js +2 -3
  20. package/dist/client/decodeWorker/decode.worker.js +4 -3
  21. package/dist/client/mainthread/LynxViewInstance.d.ts +1 -5
  22. package/dist/client/mainthread/LynxViewInstance.js +8 -16
  23. package/dist/client/mainthread/TemplateManager.d.ts +0 -1
  24. package/dist/client/mainthread/TemplateManager.js +5 -29
  25. package/dist/client/mainthread/elementAPIs/WASMJSBinding.d.ts +4 -10
  26. package/dist/client/mainthread/elementAPIs/WASMJSBinding.js +14 -19
  27. package/dist/client/mainthread/elementAPIs/createElementAPI.d.ts +1 -1
  28. package/dist/client/mainthread/elementAPIs/createElementAPI.js +60 -84
  29. package/dist/client/wasm.d.ts +1 -9
  30. package/dist/client/wasm.js +3 -17
  31. package/dist/client/webElementsDynamicLoader.d.ts +0 -7
  32. package/dist/client/webElementsDynamicLoader.js +3 -72
  33. package/dist/client_prod/static/js/async/web-core-main-chunk.js +1 -303
  34. package/dist/client_prod/static/js/async/web-core-template-loader-thread.js +4 -4
  35. package/dist/client_prod/static/js/async/web-elements.js +309 -0
  36. package/dist/client_prod/static/js/client.js +2 -2
  37. package/dist/client_prod/static/wasm/a156b496.module.wasm +0 -0
  38. package/dist/encode/webEncoder.js +1 -16
  39. package/dist/types/DecodedTemplate.d.ts +0 -3
  40. package/dist/types/IElementPAPI.d.ts +0 -2
  41. package/dist/types/IMtsBinding.d.ts +4 -1
  42. package/package.json +3 -4
  43. package/dist/client/mainthread/StyleManager.d.ts +0 -15
  44. package/dist/client/mainthread/StyleManager.js +0 -72
  45. package/dist/client_prod/static/js/async/web-elements-audio.js +0 -1
  46. package/dist/client_prod/static/js/async/web-elements-foldview.js +0 -1
  47. package/dist/client_prod/static/js/async/web-elements-input.js +0 -1
  48. package/dist/client_prod/static/js/async/web-elements-list.js +0 -1
  49. package/dist/client_prod/static/js/async/web-elements-overlay.js +0 -1
  50. package/dist/client_prod/static/js/async/web-elements-refrshview.js +0 -1
  51. package/dist/client_prod/static/js/async/web-elements-swiper.js +0 -1
  52. package/dist/client_prod/static/js/async/web-elements-textarea.js +0 -1
  53. package/dist/client_prod/static/js/async/web-elements-viewpager.js +0 -1
  54. package/dist/client_prod/static/wasm/aa6eb16a.module.wasm +0 -0
  55. package/dist/encode/encodeElementTemplate.d.ts +0 -2
  56. package/dist/encode/encodeElementTemplate.js +0 -52
  57. /package/dist/client_prod/static/css/async/{web-core-main-chunk.css → web-elements.css} +0 -0
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e,t,n,r={6462(e,t,n){e.exports=n.p+"static/wasm/aa6eb16a.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],C(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]);R().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],C(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],C(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],C(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],C(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=C(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(C(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;R().setInt32(e+4,i,!0),R().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;R().setInt32(e+4,o,!0),R().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(e,t){throw Error(C(e,t))},__wbg_addEventListener_509b0778ff0f5d80:function(e,t,n){e.addEventListener(C(t,n))},__wbg_appendChild_dea38765a26d346d:function(){return I(function(e,t){return e.appendChild(t)},arguments)},__wbg_assign_6170c0d04d5c26f4:function(e,t){return Object.assign(e,t)},__wbg_cloneNode_b85e9102a9a31b29:function(){return I(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_content_681ebf067b179491:function(e){return e.content},__wbg_createElement_49f60fdcaae809c8:function(){return I(function(e,t,n){return e.createElement(C(t,n))},arguments)},__wbg_disableElementEvent_54563f003ce6f005:function(e,t,n,r){e.disableElementEvent(t>>>0,C(n,r))},__wbg_done_57b39ecd9addfe81:function(e){return e.done},__wbg_enableElementEvent_b56814551effb38c:function(e,t,n,r){e.enableElementEvent(t>>>0,C(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(C(n,i));var _=M(o)?0:P(o,r.__wbindgen_malloc,r.__wbindgen_realloc),s=W;R().setInt32(e+4,s,!0),R().setInt32(e+0,_,!0)},__wbg_get_9b94d73e6221f75c:function(e,t){return e[t>>>0]},__wbg_get_b3ed3ad4be2bc8ac:function(){return I(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_d4e53238966c12b6:function(){return I(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(C(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 I(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(C(t,n),0===r?void 0:C(r,i),o,_>>>0,s,a>>>0,l)},__wbg_querySelectorAll_32f0ddcdb5fe7c56:function(){return I(function(e,t,n){return e.querySelectorAll(C(t,n))},arguments)},__wbg_removeAttribute_87259aab06d9f286:function(){return I(function(e,t,n){e.removeAttribute(C(t,n))},arguments)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return I(function(e,t,n,i){let o=P(t.removeProperty(C(n,i)),r.__wbindgen_malloc,r.__wbindgen_realloc),_=W;R().setInt32(e+4,_,!0),R().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 I(function(e,t,n,r,i){e.setAttribute(C(t,n),C(r,i))},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return I(function(e,t,n,r,i){e.setProperty(C(t,n),C(r,i))},arguments)},__wbg_set_6cb8631f80447a67:function(){return I(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 C(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=R(),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,A().subarray(e/1,e/1+t)}let E=null;function R(){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 C(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(A().subarray(n,n+r))}let T=null,O=null;function A(){return(null===O||0===O.byteLength)&&(O=new Uint8Array(r.memory.buffer)),O}function I(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 A().subarray(r,r+n.length).set(n),W=n.length,r}let r=e.length,i=t(r,1)>>>0,o=A(),_=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=A().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=Promise.all([(0,i.rO)(),(0,i.oR)()]).then(([t,r])=>{if(t&&r)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,{oR:()=>i,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=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,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}#R={};get initData(){return this.#R}set initData(e){"string"==typeof e?this.#R=JSON.parse(e):this.#R=e}#C=[];get initI18nResources(){return this.#C}set initI18nResources(e){"string"==typeof e?this.#C=JSON.parse(e):this.#C=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.#R=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}#A=!1;#k(){if(!this.#A&&this.#v){this.#A=!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.#C));i.Q.fetchBundle(this.#x,e);let n=this.lynxGroupId;this.#y=await e,this.#A=!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/a156b496.module.wasm"},5704(e,t,n){let r;n.r(t),n.d(t,{EventInfo:()=>i,MainThreadWasmContext:()=>o,RawStyleInfo:()=>_,Rule:()=>s,RulePrelude:()=>a,Selector:()=>l,TemplateManager:()=>c,add_inline_style_raw_string_key:()=>d,decode_style_info:()=>u,default:()=>K,encode_legacy_json_generated_raw_style_info:()=>g,get_font_face_content:()=>b,get_inline_styles_in_key_value_vec:()=>p,get_style_content:()=>h,initSync:()=>Q,set_inline_styles_in_str:()=>w,set_inline_styles_number_key:()=>f});class i{static __wrap(e){e>>>=0;let t=Object.create(i.prototype);return t.__wbg_ptr=e,y.register(t,t.__wbg_ptr,t),t}__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_eventinfo_free(e,0)}get event_handler(){return r.__wbg_get_eventinfo_event_handler(this.__wbg_ptr)}get event_name(){let e,t;try{let n=r.__wbg_get_eventinfo_event_name(this.__wbg_ptr);return e=n[0],t=n[1],N(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get event_type(){let e,t;try{let n=r.__wbg_get_eventinfo_event_type(this.__wbg_ptr);return e=n[0],t=n[1],N(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set event_handler(e){r.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,e)}set event_name(e){let t=q(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G;r.__wbg_set_eventinfo_event_name(this.__wbg_ptr,t,n)}set event_type(e){let t=q(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G;r.__wbg_set_eventinfo_event_type(this.__wbg_ptr,t,n)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}add_cross_thread_event(e,t,n,i){let o=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G,s=q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;var l=U(i)?0:q(i,r.__wbindgen_malloc,r.__wbindgen_realloc),c=G;r.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,e,o,_,s,a,l,c)}add_dataset(e,t,n){let i=r.mainthreadwasmcontext_add_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw z(i[0])}add_run_worklet_event(e,t,n,i){let o=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G,s=q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;r.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,e,o,_,s,a,U(i)?0:C(i))}common_event_handler(e,t,n){let i=W(t,r.__wbindgen_malloc),o=G,_=q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;r.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,e,i,o,_,s)}create_element_common(e,t,n,i){var o=U(i)?0:q(i,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G;return r.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,e,t,U(n)?0x100000001:0|n,o,_)>>>0}dispatch_event_by_path(e,t,n,i){let o=W(e,r.__wbindgen_malloc),_=G,s=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,o,_,s,a,n,i)}get_component_id(e){let t,n=r.mainthreadwasmcontext_get_component_id(this.__wbg_ptr,e);if(n[3])throw z(n[2]);return 0!==n[0]&&(t=N(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}get_config(e){let t=r.mainthreadwasmcontext_get_config(this.__wbg_ptr,e);if(t[2])throw z(t[1]);return z(t[0])}get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}get_data_by_key(e,t){let n=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,o=r.mainthreadwasmcontext_get_data_by_key(this.__wbg_ptr,e,n,i);if(o[2])throw z(o[1]);return z(o[0])}get_dataset(e){let t=r.mainthreadwasmcontext_get_dataset(this.__wbg_ptr,e);if(t[2])throw z(t[1]);return z(t[0])}get_dom_by_unique_id(e){return r.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,e)}get_element_config(e){let t=r.mainthreadwasmcontext_get_element_config(this.__wbg_ptr,e);if(t[2])throw z(t[1]);return z(t[0])}get_event(e,t,n){let i=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G,_=q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;return r.mainthreadwasmcontext_get_event(this.__wbg_ptr,e,i,o,_,s)}get_events(e){let t=r.mainthreadwasmcontext_get_events(this.__wbg_ptr,e);var n=O(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}get_unique_id_by_component_id(e){let t=q(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G,i=r.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===i?void 0:i}constructor(e,t,n){const i=r.mainthreadwasmcontext_new(e,t,n);return this.__wbg_ptr=i>>>0,v.register(this,this.__wbg_ptr,this),this}push_style_sheet(e,t,n){E(e,c);let i=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G,_=r.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,e.__wbg_ptr,i,o,n);if(_[1])throw z(_[0])}set_config(e,t){let n=r.mainthreadwasmcontext_set_config(this.__wbg_ptr,e,t);if(n[1])throw z(n[0])}set_css_id(e,t,n){let i=W(e,r.__wbindgen_malloc),o=G;var _=U(n)?0:q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;let a=r.mainthreadwasmcontext_set_css_id(this.__wbg_ptr,i,o,t,_,s);if(a[1])throw z(a[0])}set_dataset(e,t,n){let i=r.mainthreadwasmcontext_set_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw z(i[0])}set_page_element_unique_id(e){r.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,e)}take_timing_flags(){let e=r.mainthreadwasmcontext_take_timing_flags(this.__wbg_ptr);var t=O(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}update_component_id(e,t){var n=U(t)?0:q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let o=r.mainthreadwasmcontext_update_component_id(this.__wbg_ptr,e,n,i);if(o[1])throw z(o[0])}update_css_og_style(e,t){var n=U(t)?0:q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let o=r.mainthreadwasmcontext_update_css_og_style(this.__wbg_ptr,e,n,i);if(o[1])throw z(o[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class _{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x.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,x.register(this,this.__wbg_ptr,this),this}push_rule(e,t){E(t,s);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class s{__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_rule_free(e,0)}constructor(e){const t=q(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G,i=r.rule_new(t,n);if(i[2])throw z(i[1]);return this.__wbg_ptr=i[0]>>>0,S.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let n=q(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,o=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G;r.rule_push_declaration(this.__wbg_ptr,n,i,o,_)}push_rule_children(e){E(e,s);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){E(e,a);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);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_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,k.register(this,this.__wbg_ptr,this),this}push_selector(e){E(e,l);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class l{__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_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,R.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=q(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,o=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G,s=r.selector_push_one_selector_section(this.__wbg_ptr,n,i,o,_);if(s[1])throw z(s[0])}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_templatemanager_free(e,0)}add_style_info(e,t,n){let i=q(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G,_=r.templatemanager_add_style_info(this.__wbg_ptr,i,o,t,n);if(_[1])throw z(_[0])}constructor(){const e=r.templatemanager_new();return this.__wbg_ptr=e>>>0,T.register(this,this.__wbg_ptr,this),this}}function d(e,t,n){let i=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;var _=U(n)?0:q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;r.add_inline_style_raw_string_key(e,i,o,_,s)}function u(e,t,n){var i=U(t)?0:q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;let _=r.decode_style_info(e,i,o,n);if(_[2])throw z(_[1]);return z(_[0])}function g(e,t,n){E(e,_);var i=e.__destroy_into_raw(),o=U(n)?0:q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;let a=r.encode_legacy_json_generated_raw_style_info(i,t,o,s);if(a[2])throw z(a[1]);return z(a[0])}function b(e){let t,n;try{let _=r.get_font_face_content(e);var i=_[0],o=_[1];if(_[3])throw i=0,o=0,z(_[2]);return t=i,n=o,N(i,o)}finally{r.__wbindgen_free(t,n,1)}}function p(e,t){let n=F(t,r.__wbindgen_malloc),i=G;r.get_inline_styles_in_key_value_vec(e,n,i)}function h(e){let t,n;try{let _=r.get_style_content(e);var i=_[0],o=_[1];if(_[3])throw i=0,o=0,z(_[2]);return t=i,n=o,N(i,o)}finally{r.__wbindgen_free(t,n,1)}}function w(e,t){let n=q(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;return 0!==r.set_inline_styles_in_str(e,n,i)}function f(e,t,n){var i=U(n)?0:q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;r.set_inline_styles_number_key(e,t,i,o)}function m(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(e,t){return Error(N(e,t))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(e,t){let n=q(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=G;A().setInt32(e+4,i,!0),A().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=U(n)?0:q(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;A().setInt32(e+4,o,!0),A().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(e,t){throw Error(N(e,t))},__wbg_addEventListener_509b0778ff0f5d80:function(e,t,n){e.addEventListener(N(t,n))},__wbg_appendChild_dea38765a26d346d:function(){return D(function(e,t){return e.appendChild(t)},arguments)},__wbg_cloneNode_b85e9102a9a31b29:function(){return D(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return D(function(e,t,n){return e.createElement(N(t,n))},arguments)},__wbg_cssRules_554f47f3049cf066:function(){return D(function(e){return e.cssRules},arguments)},__wbg_disableElementEvent_18cf7db59ebb6f06:function(e,t,n,r){e.disableElementEvent(t,N(n,r))},__wbg_enableElementEvent_9810de74ded79369:function(e,t,n,r){e.enableElementEvent(t,N(n,r))},__wbg_eventinfo_new:function(e){return i.__wrap(e)},__wbg_getClassList_cad84f9875c7e5ee:function(e,t,n){let i=F(t.getClassList(n),r.__wbindgen_malloc),o=G;A().setInt32(e+4,o,!0),A().setInt32(e+0,i,!0)},__wbg_get_9b94d73e6221f75c:function(e,t){return e[t>>>0]},__wbg_get_b3ed3ad4be2bc8ac:function(){return D(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_d4e53238966c12b6:function(){return D(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_insertRule_736c2f80782185c7:function(){return D(function(e,t,n,r){return e.insertRule(N(t,n),r>>>0)},arguments)},__wbg_item_ca823df8214b9e2b:function(e,t){let n=e.item(t>>>0);return U(n)?0:C(n)},__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_length_edae0cd13a8d3b71:function(e){return e.length},__wbg_new_361308b2356cecd0:function(){return{}},__wbg_new_from_slice_a3d2629dc1826784:function(e,t){return new Uint8Array(M(e,t))},__wbg_ownerDocument_9347874c5cad87d7:function(e){let t=e.ownerDocument;return U(t)?0:C(t)},__wbg_parentElement_75863410a8617953:function(e){let t=e.parentElement;return U(t)?0:C(t)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(e,t,n){Uint8Array.prototype.set.call(M(e,t),n)},__wbg_publishEvent_9003166a9524dc81:function(e,t,n,r,i,o,_,s,a,l){e.publishEvent(N(t,n),0===r?void 0:N(r,i),o,_>>>0,s,a>>>0,l)},__wbg_removeAttribute_87259aab06d9f286:function(){return D(function(e,t,n){e.removeAttribute(N(t,n))},arguments)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return D(function(e,t,n,i){let o=q(t.removeProperty(N(n,i)),r.__wbindgen_malloc,r.__wbindgen_realloc),_=G;A().setInt32(e+4,_,!0),A().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 D(function(e,t,n,r,i){e.setAttribute(N(t,n),N(r,i))},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return D(function(e,t,n,r,i){e.setProperty(N(t,n),N(r,i))},arguments)},__wbg_set_6cb8631f80447a67:function(){return D(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_cssText_18380c97092caefa:function(e,t,n){e.cssText=N(t,n)},__wbg_set_textContent_3e87dba095d9cdbc:function(e,t,n){e.textContent=0===t?void 0:N(t,n)},__wbg_sheet_47ea0f14607eb161:function(e){let t=e.sheet;return U(t)?0:C(t)},__wbg_style_0b7c9bd318f8b807:function(e){return e.style},__wbg_style_fa56cf251a93275a:function(e){return e.style},__wbindgen_cast_0000000000000001:function(e,t){return N(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&&(c.prototype[Symbol.dispose]=c.prototype.free);let y="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1)),v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1)),x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1)),T="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_templatemanager_free(e>>>0,1));function C(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function E(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function O(e,t){e>>>=0;let n=A(),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 M(e,t){return e>>>=0,L().subarray(e/1,e/1+t)}let P=null;function A(){return(null===P||!0===P.buffer.detached||void 0===P.buffer.detached&&P.buffer!==r.memory.buffer)&&(P=new DataView(r.memory.buffer)),P}function N(e,t){var n,r;return n=e>>>=0,(B+=r=t)>=0x7ff00000&&(($=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),B=r),$.decode(L().subarray(n,n+r))}let j=null,I=null;function L(){return(null===I||0===I.byteLength)&&(I=new Uint8Array(r.memory.buffer)),I}function D(e,t){try{return e.apply(this,t)}catch(t){let e=C(t);r.__wbindgen_exn_store(e)}}function U(e){return null==e}function W(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),G=e.length,n}function F(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=C(e[t]);A().setUint32(n+4*t,r,!0)}return G=e.length,n}function q(e,t,n){if(void 0===n){let n=H.encode(e),r=t(n.length,1)>>>0;return L().subarray(r,r+n.length).set(n),G=n.length,r}let r=e.length,i=t(r,1)>>>0,o=L(),_=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=L().subarray(i+_,i+r);_+=H.encodeInto(e,t).written,i=n(i,r,_,1)>>>0}return G=_,i}function z(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}let $=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});$.decode();let B=0,H=new TextEncoder;"encodeInto"in H||(H.encodeInto=function(e,t){let n=H.encode(e);return t.set(n),{read:e.length,written:n.length}});let G=0;function J(e,t){return r=e.exports,P=null,j=null,I=null,r.__wbindgen_start(),r}async function V(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=m();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),J(new WebAssembly.Instance(e,t),e)}async function K(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=m();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:o}=await V(await e,t);return J(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),i.onStyleInfoReady(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,o]=await Promise.all([t,i.then(e=>e.templateManagerWasm)]),{label:_,data:s,url:a,config:l}=e;switch(_){case r.eC.Configurations:n.backgroundThread.markTiming("decode_start"),this.#b(a,s),n.onPageConfigReady(s);break;case r.eC.StyleInfo:o.add_style_info(a,new Uint8Array(s),document),n.onStyleInfoReady(a);break;case r.eC.LepusCode:this.#p(a,s),n.onMTSScriptsLoaded(a,"true"===l.isLazy);break;case r.eC.CustomSections:this.#h(a,s);break;case r.eC.Manifest:this.#w(a,s),n.onBTSScriptsLoaded(a);break;default:throw Error(`Unknown section label: ${_}`)}}#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)}#p(e,t){let n=this.#e.get(e);n&&(n.lepusCode=t)}#h(e,t){let n=this.#e.get(e);n&&(n.customSections=t)}#w(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,{templateManagerWasm:()=>a,wasmInstance:()=>_,wasmModule:()=>s});var i=n(480);let e="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,o=Promise.all([(0,i.rO)(),(0,i.oR)()]).then(([t,r])=>{if(t&&r)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});let a=e?void 0:new _.TemplateManager;r()}catch(e){r(e)}},1)},1180(e,t,n){n.d(t,{$4:()=>g,Fd:()=>d,Gm:()=>s,H1:()=>m,JA:()=>i,O4:()=>f,Pb:()=>r,RM:()=>u,Wx:()=>S,eC:()=>p,f7:()=>a,hv:()=>c,im:()=>b,li:()=>v,oZ:()=>_,u9:()=>x,vh:()=>y,xW:()=>l,y:()=>o});let r="l-e-name",i="l-disposed",o="l-template",_="dirtyID",s="lynx-default-display-linear",a="lynx-default-overflow-visible",l="__lynx_timing_flag",c="i18nResourceMissed",d=Symbol("uniqueId"),u={platform:"web",lynxSdkVersion:"3.0"},g={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},b=Object.fromEntries(Object.entries(g).map(([e,t])=>[t,e])),p={Manifest:1,StyleInfo:2,LepusCode:3,CustomSections:4,ElementTemplates:5,Configurations:6};var h,w,f=((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 m=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"})),y=Object.freeze(Object.assign(Object.create(null),Object.fromEntries(Object.entries(m).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 v=Symbol.for("lynx-scroll-container-dom"),x="loadUnknownElement";var S=((w={})[w.ID_SELECTOR=0]="ID_SELECTOR",w[w.REF_ID=1]="REF_ID",w[w.UNIQUE_ID=2]="UNIQUE_ID",w)},480(e,t,n){n.d(t,{oR:()=>i,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=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,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,p=new Set,h=e.exports,w=new Promise((e,t)=>{b=t,g=e});w[a]=h,w[s]=e=>{r&&e(r),p.forEach(e),w.catch(()=>{})},e.exports=w,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&&!p.has(e)&&(p.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(w[l]=e):g(h),u(r),w[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/"+({350:"web-core-template-loader-thread",724:"web-elements",894:"web-core-main-chunk",97:"web-core-worker-chunk"})[e]+".js",o.miniCssF=e=>"static/css/async/web-elements.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,p=o.g.document;if(!b&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(b=p.currentScript.src),!b)){var h=p.getElementsByTagName("script");if(h.length)for(var w=h.length-1;w>-1&&(!b||!/^http(s?):/.test(b));)b=h[w--].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]&&({724: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());#f;#m=!1;#y;nativeModulesMap;napiModulesMap;onNapiModulesCall;constructor(){super(),this.onNativeModulesCall||(this.onNativeModulesCall=(e,t,n)=>new Promise(r=>{this.#v.push({args:[e,t,n],resolve:r})}))}get url(){return this.#y}set url(e){this.#y=e,this.#x()}#S={};get globalProps(){return this.#S}set globalProps(e){"string"==typeof e?this.#S=JSON.parse(e):this.#S=e}#k={};get initData(){return this.#k}set initData(e){"string"==typeof e?this.#k=JSON.parse(e):this.#k=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.#f?.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}#v=[];#C;get onNativeModulesCall(){return this.#C}set onNativeModulesCall(e){for(let t of(this.#C=e,this.#v))t.resolve(e.apply(void 0,t.args));this.#v=[]}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.#f?.updateData(e,t).then(()=>{n?.()})}updateGlobalProps(e){this.#f?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#f?.backgroundThread.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#x()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#y=n;break;case"global-props":this.#S=JSON.parse(n);break;case"init-data":this.#k=JSON.parse(n)}}injectStyleRules;disconnectedCallback(){this.shadowRoot?.querySelector('[part="page"]')?.setAttribute(e.JA,""),this.#f?.[Symbol.asyncDispose](),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.#f=void 0}#E=!1;#x(){if(!this.#E&&this.#m){this.#E=!0,this.shadowRoot||this.attachShadow({mode:"open"}),this.#f&&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.#y){let e=o.e("894","high").then(o.bind(o,3764)).then(({LynxViewInstance:e})=>new e(this,this.initData,this.globalProps,this.#y,this.shadowRoot,t,n,this.nativeModulesMap,this.napiModulesMap,this.#R));i.Q.fetchBundle(this.#y,e);let n=this.lynxGroupId;this.#f=await e,this.#E=!1}})}}connectedCallback(){this.url&&(this.#y=this.url),this.#m=!0,this.#x()}}customElements.get(_.tag)?console.error(`[${_.tag}] has already been defined`):customElements.define(_.tag,_)})()})();
@@ -1,5 +1,4 @@
1
1
  import { encodeCSS } from './encodeCSS.js';
2
- import { encodeElementTemplates } from './encodeElementTemplate.js';
3
2
  import { MagicHeader, TemplateSectionLabel } from '../constants.js';
4
3
  function encodeAsJSON(map) {
5
4
  const jsonString = JSON.stringify(map);
@@ -40,12 +39,8 @@ function encodeStringMap(map) {
40
39
  return buffer;
41
40
  }
42
41
  export function encode(tasmJSON) {
43
- const { styleInfo, manifest, cardType, appType, pageConfig, lepusCode, customSections, elementTemplates, } = tasmJSON;
42
+ const { styleInfo, manifest, cardType, appType, pageConfig, lepusCode, customSections, } = tasmJSON;
44
43
  const encodedStyleInfo = encodeCSS(styleInfo);
45
- const hasElementTemplates = Object.keys(elementTemplates).length > 0;
46
- const encodedElementTemplates = hasElementTemplates
47
- ? encodeElementTemplates(elementTemplates)
48
- : new Uint8Array(0);
49
44
  const encodedManifest = encodeStringMap(manifest);
50
45
  const encodedLepusCode = encodeStringMap(lepusCode);
51
46
  const encodedCustomSections = encodeAsJSON(customSections);
@@ -62,7 +57,6 @@ export function encode(tasmJSON) {
62
57
  /*section length*/
63
58
  + 4 + 4 + encodedConfigurations.length // Configurations
64
59
  + 4 + 4 + encodedStyleInfo.length // Style Info
65
- + (hasElementTemplates ? 4 + 4 + encodedElementTemplates.length : 0) // Element Templates
66
60
  + 4 + 4 + encodedLepusCode.length // Lepus Code
67
61
  + 4 + 4 + encodedCustomSections.length // Custom Sections
68
62
  + 4 + 4 + encodedManifest.length // Manifest
@@ -83,15 +77,6 @@ export function encode(tasmJSON) {
83
77
  offset += 4;
84
78
  buffer.set(encodedConfigurations, offset);
85
79
  offset += encodedConfigurations.length;
86
- // Element Templates
87
- if (hasElementTemplates) {
88
- dataView.setUint32(offset, TemplateSectionLabel.ElementTemplates, true); // section label
89
- offset += 4;
90
- dataView.setUint32(offset, encodedElementTemplates.length, true); // section length
91
- offset += 4;
92
- buffer.set(encodedElementTemplates, offset);
93
- offset += encodedElementTemplates.length;
94
- }
95
80
  // Lepus Code
96
81
  dataView.setUint32(offset, TemplateSectionLabel.LepusCode, true); // section label
97
82
  offset += 4;
@@ -1,10 +1,7 @@
1
- import type { DecodedStyle } from '../client/wasm.js';
2
1
  import type { PageConfig } from './PageConfig.js';
3
2
  export interface DecodedTemplate {
4
3
  config?: PageConfig;
5
- styleInfo?: DecodedStyle;
6
4
  lepusCode?: Record<string, string>;
7
- elementTemplates?: any;
8
5
  customSections?: Record<string, any>;
9
6
  backgroundCode?: Record<string, string>;
10
7
  }
@@ -91,7 +91,6 @@ export type GetTemplatePartsPAPI = (templateElement: HTMLElement) => Record<stri
91
91
  interface JSErrorInfo {
92
92
  release: string;
93
93
  }
94
- export type ElementFromBinaryPAPI = (templateId: string, parentComponentUniId: number) => HTMLElement;
95
94
  export type GetAttributeByNamePAPI = (element: HTMLElement, name: string) => string | null;
96
95
  export type QueryComponentPAPI = (source: string, resultCallback?: (result: {
97
96
  code: number;
@@ -101,7 +100,6 @@ export type QueryComponentPAPI = (source: string, resultCallback?: (result: {
101
100
  };
102
101
  }) => void) => null;
103
102
  export interface ElementPAPIs {
104
- __ElementFromBinary: ElementFromBinaryPAPI;
105
103
  __GetTemplateParts: GetTemplatePartsPAPI;
106
104
  __MarkPartElement: MarkPartElementPAPI;
107
105
  __MarkTemplateElement: MarkTemplateElementPAPI;
@@ -7,5 +7,8 @@ export interface RustMainthreadContextBinding {
7
7
  runWorklet(handler: unknown, eventObject: LynxCrossThreadEvent, targetUniqueId: number, targetDataset: CloneableObject, currentTargetUniqueId: number, currentTargetDataset: CloneableObject): void;
8
8
  publishEvent(handlerName: string, parentComponentId: string | undefined, eventObject: LynxCrossThreadEvent, targetUniqueId: number, targetDataset: CloneableObject, currentTargetUniqueId: number, currentTargetDataset: CloneableObject): void;
9
9
  addEventListener(event_name: string): void;
10
- markExposureRelatedElementByUniqueId(uniqueId: number, toEnable: boolean): void;
10
+ markExposureRelatedElementByUniqueId(element: HTMLElement, toEnable: boolean): void;
11
+ enableElementEvent(element: HTMLElement, eventName: string): void;
12
+ disableElementEvent(element: HTMLElement, eventName: string): void;
13
+ getClassList(element: HTMLElement): string[];
11
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-wasm-canary",
3
- "version": "0.0.2-canary-20260129-b0205255",
3
+ "version": "0.0.2-canary-20260129-d02a6062",
4
4
  "description": "This is an internal experimental package, do not use",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,9 +51,8 @@
51
51
  ]
52
52
  },
53
53
  "dependencies": {
54
- "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.11.1-canary-20260129-b0205255",
55
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.7-canary-20260129-b0205255",
56
- "hyphenate-style-name": "^1.1.0"
54
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.11.1-canary-20260129-d02a6062",
55
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.7-canary-20260129-d02a6062"
57
56
  },
58
57
  "devDependencies": {
59
58
  "@lynx-js/lynx-core": "0.1.3",
@@ -1,15 +0,0 @@
1
- import type { DecodedStyle } from '../wasm.js';
2
- /**
3
- * There are two modes to manage styles:
4
- * 1. CSS Selector mode: styles are injected into a <style>, the style manager won't keep track of which styles are applied to which elements.
5
- * The browser's native CSS selector engine will handle the style application.
6
- * 2. Non-CSS Selector mode: styles are managed by the style manager, which keeps track of which styles are applied to which elements.
7
- * The style manager will inject styles into the style sheet of a <style> element. All classes is calculated
8
- * based on entry_name, css_id, class_name, and applied by using [unique-id="x"] selectors.
9
- */
10
- export declare class StyleManager {
11
- #private;
12
- constructor(rootNode: Node);
13
- updateCssOgStyle(uniqueId: number, cssId: number, classNames: DOMTokenList, entryName?: string): void;
14
- pushStyleSheet(decodedStyle: DecodedStyle, entryName?: string): void;
15
- }
@@ -1,72 +0,0 @@
1
- // Copyright 2025 The Lynx Authors. All rights reserved.
2
- // Licensed under the Apache License Version 2.0 that can be found in the
3
- // LICENSE file in the root directory of this source tree.
4
- import { lynxUniqueIdAttribute } from '../../constants.js';
5
- // @ts-expect-error
6
- import IN_SHADOW_CSS_MODERN from '../../../css/in_shadow.css?inline';
7
- const IN_SHADOW_CSS = URL.createObjectURL(new Blob([IN_SHADOW_CSS_MODERN], { type: 'text/css' }));
8
- const IMPORT_CSS_STMT = `@import url("${IN_SHADOW_CSS}");\n`;
9
- /**
10
- * There are two modes to manage styles:
11
- * 1. CSS Selector mode: styles are injected into a <style>, the style manager won't keep track of which styles are applied to which elements.
12
- * The browser's native CSS selector engine will handle the style application.
13
- * 2. Non-CSS Selector mode: styles are managed by the style manager, which keeps track of which styles are applied to which elements.
14
- * The style manager will inject styles into the style sheet of a <style> element. All classes is calculated
15
- * based on entry_name, css_id, class_name, and applied by using [unique-id="x"] selectors.
16
- */
17
- export class StyleManager {
18
- #cssQueryMapByEntryName = new Map();
19
- #cssOGStyleSheet;
20
- #uniqueIdToStyleDeclarationsMap;
21
- #rootNode;
22
- constructor(rootNode) {
23
- this.#rootNode = rootNode;
24
- }
25
- updateCssOgStyle(uniqueId, cssId, classNames, entryName = '__Card__') {
26
- const classNamesArray = [...classNames];
27
- const newDeclarations = this.#cssQueryMapByEntryName.get(entryName)
28
- ?.query_css_og_declarations_by_css_id(cssId, classNamesArray) ?? '';
29
- if (!this.#cssOGStyleSheet) {
30
- const cssOgStyleElement = document.createElement('style');
31
- this.#rootNode.appendChild(cssOgStyleElement);
32
- this.#cssOGStyleSheet = cssOgStyleElement.sheet;
33
- }
34
- // update style declaration
35
- if (this.#cssOGStyleSheet && this.#cssQueryMapByEntryName) {
36
- if (!this.#uniqueIdToStyleDeclarationsMap) {
37
- this.#uniqueIdToStyleDeclarationsMap = new Map();
38
- }
39
- const styleDeclaration = this.#uniqueIdToStyleDeclarationsMap.get(uniqueId);
40
- if (styleDeclaration) {
41
- styleDeclaration.cssText = newDeclarations;
42
- }
43
- else {
44
- const ruleIndex = this.#cssOGStyleSheet.insertRule(`[${lynxUniqueIdAttribute}="${uniqueId}"] {${newDeclarations}}`, this.#cssOGStyleSheet.cssRules.length);
45
- const rule = this.#cssOGStyleSheet.cssRules[ruleIndex];
46
- this.#uniqueIdToStyleDeclarationsMap.set(uniqueId, rule.style);
47
- }
48
- }
49
- }
50
- pushStyleSheet(decodedStyle, entryName) {
51
- const newStyleElement = document.createElement('style');
52
- let styleElementContent = entryName ? '' : IMPORT_CSS_STMT;
53
- if (decodedStyle.style_content) {
54
- styleElementContent += decodedStyle.style_content;
55
- if (entryName) {
56
- newStyleElement.setAttribute('name', entryName);
57
- }
58
- }
59
- if (decodedStyle.font_face_content) {
60
- const fontFaceStyleElement = document.createElement('style');
61
- fontFaceStyleElement.textContent = decodedStyle.font_face_content;
62
- if (entryName) {
63
- fontFaceStyleElement.setAttribute('name', entryName);
64
- }
65
- this.#rootNode.parentElement.appendChild(fontFaceStyleElement);
66
- }
67
- this.#cssQueryMapByEntryName.set(entryName || '__Card__', decodedStyle);
68
- newStyleElement.textContent = styleElementContent;
69
- this.#rootNode.appendChild(newStyleElement);
70
- }
71
- }
72
- //# sourceMappingURL=StyleManager.js.map
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["843"],{7396(e,t,i){let s;i.r(t),i.d(t,{XAudioTT:()=>s});var r,d,o,a,n,c,l,h,u=i(9698),p=i(167);let m=Symbol("__src"),v=Symbol("__src"),E={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},y={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};var g=i(2032);r=(0,p._y)("src",!0),d=(0,p._y)("loop",!0),o=(0,p._y)("pause-on-hide",!0);class _{static #e={e:[a,n]}=(0,u._)(this,[[r,2,"_handleSrc"],[o,2,"_handlePauseOnHide"],[d,0,"_handleLoop"]],[]);static observedAttributes=["src","loop","pause-on-hide"];#t;#i=(n(this),(0,p.Ut)(()=>this.#t.shadowRoot,"#audio"));_handleSrc(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#t.dispatchEvent(new CustomEvent("error",{...g.$,detail:{code:-1,msg:"",from:"res loader",currentSrcID:this.#t[m]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#t.dispatchEvent(new CustomEvent("error",{...g.$,detail:{code:-2,msg:"",from:"res loader",currentSrcID:this.#t[m]?.id}})),this.#t[m]=t,this.#t[v]=void 0,this.#t.stop()}_handleLoop=a(this,(0,p.H$)(this.#i,"loop"));#s=()=>{"hidden"===document.visibilityState&&this.#t.pause()};_handlePauseOnHide(e){null!==e?document.addEventListener("visibilitychange",this.#s,{passive:!0}):document.removeEventListener("visibilitychange",this.#s)}constructor(e){this.#t=e}}class S{static observedAttributes=[];#t;#r;#i=(0,p.Ut)(()=>this.#t.shadowRoot,"#audio");#d=e=>{let t=Number(this.#t.getAttribute("interval")),i=Number.isNaN(t)?0:t;this.#r=setInterval(()=>{this.#t.dispatchEvent(new CustomEvent("timeupdate",{...g.$,detail:{currentTime:this.#i().currentTime,currentSrcID:this.#t[m]?.id}}))},i);let s=y[e.type];this.#t.dispatchEvent(new CustomEvent("playbackstatechanged",{...g.$,detail:{code:s?.code,type:s?.type,currentSrcID:this.#t[m]?.id}}))};#o=e=>{clearInterval(this.#r);let t=y[e.type];this.#t.dispatchEvent(new CustomEvent("playbackstatechanged",{...g.$,detail:{code:t?.code,type:t?.type,currentSrcID:this.#t[m]?.id}}))};#a=e=>{let t=E[e.type];this.#t.dispatchEvent(new CustomEvent("loadingstatechanged",{...g.$,detail:{code:t?.code,type:t?.type,currentSrcID:this.#t[m]?.id}}))};#n=e=>{this.#a(e);let t=e.target?.error?.code,i=t===MediaError.MEDIA_ERR_DECODE?-5:-6;t===MediaError.MEDIA_ERR_DECODE&&(i=-5),this.#t.dispatchEvent(new CustomEvent("error",{...g.$,detail:{code:i,msg:"",from:"player",currentSrcID:this.#t[m]?.id}}))};#c=()=>{let e=null!==this.#t.getAttribute("loop");this.#t.dispatchEvent(new CustomEvent("finished",{...g.$,detail:{loop:e,currentSrcID:this.#t[m]?.id}}))};constructor(e){this.#t=e}connectedCallback(){let e=this.#i();e.addEventListener("play",this.#d,{passive:!0}),e.addEventListener("pause",this.#o,{passive:!0}),e.addEventListener("ended",this.#c,{passive:!0}),e.addEventListener("loadstart",this.#a,{passive:!0}),e.addEventListener("canplay",this.#a,{passive:!0}),e.addEventListener("stalled",this.#a,{passive:!0}),e.addEventListener("error",this.#n,{passive:!0})}}var b=i(1916),A=i(3303);c=(0,p.uA)("x-audio-tt",[b.O,_,S],A.xO);class D extends(h=HTMLElement){static #e={c:[s,l]}=(0,u._)(this,[],[c],h);#l=(0,p.Ut)(()=>this.shadowRoot,"#audio");#i=(0,p.Ut)(()=>this.shadowRoot,"#audio");#h=(0,p.H$)(this.#i,"src");[m];[v];#u=()=>{let e,t=this[m];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[v]=new Promise(async(i,s)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...g.$,detail:{code:0,type:"loading",currentSrcID:t.id}}));let r=await fetch(t.play_url,{headers:e});r.ok||(this.dispatchEvent(new CustomEvent("error",{...g.$,detail:{code:-3,msg:"",from:"res loader",currentSrcID:t.id}})),s()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...g.$,detail:{code:1,type:"success",currentSrcID:t.id}}));let d=await r.blob(),o=URL.createObjectURL(d);this.#h(o),i()})}};play(){return this[v]||this.#u(),this[v]?.then(()=>{let e=this.#l();e.currentTime=0,e.play()}),{currentSrcID:this[m]?.id,loadingSrcID:""}}stop(){let e=this.#l(),t=y.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...g.$,detail:{code:t?.code,type:t?.type,currentSrcID:this[m]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[m]?.id}}pause(){return this.#l().pause(),{currentSrcID:this[m]?.id}}resume(){return this.#l().play(),{currentSrcID:this[m]?.id,loadingSrcID:""}}seek(e){return this.#l().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...g.$,detail:{seekresult:1,currentSrcID:this[m]?.id}})),{currentSrcID:this[m]?.id}}mute(e){return this.#l().muted=e.mute,{currentSrcID:this[m]?.id}}playerInfo(){var e;let t=this.#l(),i=t.buffered,s=i.end(i.length-1);return{currentSrcID:this[m]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:s}}prepare(){this[v]||this.#u()}setVolume(e){return this.#l().volume=e.volume,{code:1}}static #p=l()}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["555"],{4010(e,t,l){let s,i,r,o,n;l.r(t),l.d(t,{XFoldviewToolbarNg:()=>n,XFoldviewNg:()=>s,XFoldviewHeaderNg:()=>i,XFoldviewSlotNg:()=>o,XFoldviewSlotDragNg:()=>r});var a,h,c,d,m,g,p,u,v,b,E,T,f,S,_,w,y,O,H=l(9698),L=l(167),x=l(1916),F=l(4833),P=l(2032);a=(0,L._y)("granularity",!0),h=(0,L.ZR)("offset");class N{static #e={e:[c]}=(0,H._)(this,[[a,2,"_handleGranularity"],[h,2,"_enableOffsetEvent"]],[]);#t;#l=(c(this),.01);#s=0;constructor(e){this.#t=e}static observedAttributes=["granularity"];_handleGranularity(e){e&&""!==e?this.#l=parseFloat(e):this.#l=.01}_enableOffsetEvent(e){e?this.#t.addEventListener("scroll",this.#i,{passive:!0}):this.#t.removeEventListener("scroll",this.#i)}#i=()=>{let e=this.#t.scrollTop;(Math.abs(this.#s-e)>this.#l||0===this.#t.scrollTop||1>=Math.abs(this.#t.scrollHeight-this.#t.clientHeight-this.#t.scrollTop))&&(this.#s=e,this.#t.dispatchEvent(new CustomEvent("offset",{...P.$,detail:{offset:e,height:this.#t[X]}})))}}var R=l(6372),M=l(6181);let X=Symbol("scrollableLength"),D=Symbol("isHeaderShowing"),A=Symbol("resizeObserver"),V=Symbol("slotKid");d=(0,L.uA)("x-foldview-ng",[M.T,x.O,N]),new class extends F._{constructor(){super(s),m()}static #e=(()=>{class e extends(g=HTMLElement){static #e={c:[s,m]}=(0,H._)(this,[],[d],g);static notToFilterFalseAttributes=new Set(["scroll-enable"]);[V];[A]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#r=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#o=t.contentRect.height);this[V]&&(this[V].style.top=`${this.#r-this.#o}px`)});#r=0;#o=0;get[X](){return this.#r-this.#o}get[D](){return this[X]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[X]?e=this[X]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:l=!0}=e,s=parseFloat(t);this.scrollTo({top:s,behavior:l?"smooth":"instant"})}get[R.li](){return this}disconnectedCallback(){this[A]?.disconnect(),this[A]=void 0}}})()};let z=(e,t)=>{let l=e.parentElement;if(l?.tagName==="LYNX-WRAPPER"&&(l=l.parentElement),l?.tagName===t)return l};p=(0,L.uA)("x-foldview-header-ng",[M.T,x.O]);class Y extends(v=HTMLElement){static #e={c:[i,u]}=(0,H._)(this,[],[p],v);#n=void 0;connectedCallback(){let e=z(this,"X-FOLDVIEW-NG");this.#n=e?.[A],this.#n?.observe(this)}dispose(){this.#n?.unobserve(this)}static #a=u()}b=(0,L.uA)("x-foldview-slot-drag-ng",[M.T,x.O]);class k extends(T=HTMLElement){static #e={c:[r,E]}=(0,H._)(this,[],[b],T);static #a=E()}class W{#h=0;#c=new WeakMap;#d;#m=0;#g=0;#p=null;#u;#v=0;#t;static observedAttributes=[];constructor(e){this.#t=e,this.#t.addEventListener("touchmove",this.#b,{passive:!1}),this.#t.addEventListener("touchstart",this.#E,{passive:!0}),this.#t.addEventListener("touchend",this.#T,{passive:!0}),this.#t.addEventListener("wheel",this.#f,{passive:!1})}#S(e){return this.#d?.find(t=>{if(t.scrollHeight>t.clientHeight){let l=e<0&&0!==t.scrollTop,s=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return l||s}return!1})}#_(e,t){let l=this.#c.get(e)??0;l+=t,this.#c.set(e,l),e.scrollTop=l}#b=e=>{let t=this.#w();if(!t)return;let{pageY:l,pageX:s}=e.touches.item(0),i=this.#m-l;if(null===this.#p){let e=this.#g-s;this.#p=Math.abs(i)>Math.abs(e)}!1!==this.#p&&(e.cancelable&&e.preventDefault(),this.#y(i,t),this.#m=l)};#f=e=>{let t=this.#w();if(!t||Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let l=e.composedPath().filter(e=>e instanceof Element&&this.#t.contains(e)),{clientX:s,clientY:i}=e,r=document.elementsFromPoint(s,i).filter(e=>this.#t.contains(e));if(this.#d=[...new Set([...l,...r])],this.#h=t.scrollTop,this.#d)for(let e of this.#d)this.#c.set(e,e.scrollTop);e.cancelable&&e.preventDefault(),this.#y(e.deltaY,t)};#w(){let e=this.#t.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#E=e=>{let{pageX:t,pageY:l}=e.touches.item(0);for(let e of(this.#d=document.elementsFromPoint(t,l).filter(e=>this.#t.contains(e)),this.#m=l,this.#g=t,this.#h=this.#w()?.scrollTop??0,this.#d))this.#c.set(e,e.scrollTop);this.#p=null,this.#u=void 0};#T=()=>{if(this.#p=null,this.#u){let e=this.#w();(this.#u!==e||e[D])&&this.#u.scrollBy({top:4*this.#v,behavior:"smooth"})}};#y(e,t){let l=this.#S(e);t[D]&&e>0||e<0&&!l||!t[D]&&!l?(t.scrollBy({top:e,behavior:"smooth"}),this.#h+=e,t.scrollTop=this.#h,this.#u=t):l&&(this.#u=l,this.#_(l,e)),this.#v=e}}f=(0,L.uA)("x-foldview-slot-ng",[M.T,x.O,W]);class C extends(_=HTMLElement){static #e={c:[o,S]}=(0,H._)(this,[],[f],_);connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[V]=this)}static #a=S()}w=(0,L.uA)("x-foldview-toolbar-ng",[M.T,x.O]);class G extends(O=HTMLElement){static #e={c:[n,y]}=(0,H._)(this,[],[w],O);#n=void 0;connectedCallback(){let e=z(this,"X-FOLDVIEW-NG");this.#n=e?.[A],this.#n?.observe(this)}dispose(){this.#n?.unobserve(this)}static #a=y()}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["589"],{4875(e,t,l){let n;l.r(t),l.d(t,{XInput:()=>n});var s,i,o,a,h,u,d,p,r,c,m,g,v,E,_,I,y,b,f,x,C,S,w,R,k,A,F,L,$,H,P,T,U,z,V,D=l(9698),M=l(167);s=(0,M._y)("confirm-type",!0),i=(0,M._y)("maxlength",!0),o=(0,M._y)("readonly",!0),a=(0,M._y)("type",!0),h=(0,M._y)("ios-spell-check",!0),u=(0,M._y)("spell-check",!0);class j{static #e={e:[d,p,r,c,m]}=(0,D._)(this,[[a,2,"_handleType"],[s,0,"_handlerConfirmType"],[i,0,"_handlerMaxlength"],[o,0,"_handleReadonly"],[[h,u],0,"_handleSpellCheck"]],[]);static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#t;#l=(m(this),(0,M.Ut)(()=>this.#t.shadowRoot,"#input"));_handlerConfirmType=d(this,(0,M.H$)(this.#l,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=p(this,(0,M.H$)(this.#l,"maxlength",e=>null===e?"140":e));_handleReadonly=r(this,(0,M.H$)(this.#l,"readonly",e=>null!==e?"":null));#n=(0,M.H$)(this.#l,"type");#s=(0,M.H$)(this.#l,"inputmode");_handleType(e){let t="text",l="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":l=e,this.#s(t),this.#n(l)}_handleSpellCheck=c(this,(0,M.H$)(this.#l,"spellcheck",e=>null===e?"false":"true"));constructor(e){this.#t=e}}g=(0,M._y)("placeholder",!0),v=(0,M._y)("placeholder-color",!0),E=(0,M._y)("placeholder-font-family",!0),_=(0,M._y)("placeholder-font-size",!0),I=(0,M._y)("placeholder-font-weight",!0);class B{static #e={e:[y,b,f,x,C]}=(0,D._)(this,[[g,0,"_handlerPlaceholder"],[v,0,"_handlerPlaceholderColor"],[E,0,"_handlerPlaceholderFontFamily"],[_,0,"_handlerPlaceholderFontSize"],[I,0,"_handlerPlaceholderFontWeight"]],[]);static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#t;#l=(0,M.Ut)(()=>this.#t.shadowRoot,"#input");_handlerPlaceholder=y(this,(0,M.H$)(this.#l,"placeholder"));_handlerPlaceholderColor=b(this,(0,M._8)(this.#l,"--placeholder-color",void 0,!0));_handlerPlaceholderFontFamily=f(this,(0,M._8)(this.#l,"--placeholder-font-family",void 0,!0));_handlerPlaceholderFontSize=x(this,(0,M._8)(this.#l,"--placeholder-font-size",void 0,!0));_handlerPlaceholderFontWeight=C(this,(0,M._8)(this.#l,"--placeholder-font-weight",void 0,!0));constructor(e){this.#t=e}}S=(0,M._y)("value",!1),w=(0,M._y)("disabled",!0),R=(0,M._y)("autocomplete",!0);class N{static #e={e:[k,A,F]}=(0,D._)(this,[[S,2,"_handleValue"],[w,0,"_handleDisabled"],[R,0,"_handleAutocomplete"]],[]);static observedAttributes=["value","disabled","autocomplete"];#t;#l=(F(this),(0,M.Ut)(()=>this.#t.shadowRoot,"#input"));_handleValue(e){if(e){let t=parseFloat(this.#t.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#l();t.value!==e&&(t.value=e)}_handleDisabled=k(this,(0,M.H$)(this.#l,"disabled",e=>null!==e?"":null));_handleAutocomplete=A(this,(0,M.H$)(this.#l,"autocomplete"));constructor(e){this.#t=e}}var W=l(2032),Z=l(8351);L=(0,M._y)("input-filter",!0),$=(0,M.ZR)("lynxinput"),H=(0,M._y)("send-composing-input",!0),P=(0,M.ZR)("selection");class J{static #e={e:[T]}=(0,D._)(this,[[[L,$],2,"_handleEnableInputEvent"],[H,2,"_handleSendComposingInput"],[P,2,"_handleEnableSelectionEvent"]],[]);static observedAttributes=["send-composing-input","input-filter"];#t;#i=(T(this),!1);#l=(0,M.Ut)(()=>this.#t.shadowRoot,"#input");#o=(0,M.Ut)(()=>this.#t.shadowRoot,"#form");_handleEnableInputEvent(e){let t=this.#l();e?(t.addEventListener("input",this.#a,{passive:!0}),t.addEventListener("compositionend",this.#h,{passive:!0})):(t.removeEventListener("input",this.#a),t.removeEventListener("compositionend",this.#h))}_handleSendComposingInput(e){this.#i=null!==e}#u=e=>{let t=Z.x[e.type]??e.type;this.#t.dispatchEvent(new CustomEvent(t,{...W.$,detail:{value:this.#l().value}}))};#a=e=>{let t=this.#l(),l=this.#t.getAttribute("input-filter"),n=l?t.value.replace(RegExp(l,"g"),""):t.value,s=e.isComposing;t.value=n,(!s||this.#i)&&this.#t.dispatchEvent(new CustomEvent("lynxinput",{...W.$,detail:{value:n,textLength:n.length,cursor:t.selectionStart,isComposing:s,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#h=()=>{let e=this.#l(),t=this.#t.getAttribute("input-filter"),l=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=l,this.#i||this.#t.dispatchEvent(new CustomEvent("lynxinput",{...W.$,detail:{value:l,textLength:l.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#l().addEventListener("select",this.#d,{passive:!0}):this.#l().removeEventListener("select",this.#d)}#d=()=>{let e=this.#l();this.#t.dispatchEvent(new CustomEvent("selection",{...W.$,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#p=e=>{e.target===this.#l()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#t=e;const t=this.#l(),l=this.#o();t.addEventListener("blur",this.#u,{passive:!0}),t.addEventListener("focus",this.#u,{passive:!0}),l.addEventListener("submit",this.#u,{passive:!0}),l.addEventListener("input",this.#p,{passive:!0})}}var K=l(1916),O=l(3303);U=(0,M.uA)("x-input",[K.O,B,N,j,J],O.JF);class X extends(V=HTMLElement){static #e={c:[n,z]}=(0,D._)(this,[],[U],V);#r=(0,M.Ut)(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,l=this.#r(),n=l.selectionStart;if(null===n)l.value=t;else{let e=l.value;l.value=e.slice(0,n)+t+e.slice(n)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,l=this.#r();l.value=e.value,(t=e.index)&&l.setSelectionRange(t,t)}getValue(){let e=this.#r();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:l}=e,n=this.#r();1===t&&(l=1);let s=n.selectionStart;if(null===s){let e=n.value;n.value=n.value.substring(0,e.length-l)}else{let e=n.value;n.value=e.slice(0,s-l)+e.slice(s)}}setInputFilter(e){this.#r().setAttribute("pattern",e.pattern)}select(){let e=this.#r();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#r().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#r().focus(e)}blur(){this.#r().blur()}connectedCallback(){let e=this.#r();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}static #c=z()}},8351(e,t,l){l.d(t,{x:()=>n});let n={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["185"],{733(e,t,r){let s,i;r.r(t),r.d(t,{ListItem:()=>s,XList:()=>i});var l,o,n,h,a,c,d,p,u,b,v,m,g,f,O,w,S,L,T,E,y,A,C,_,x,$,I,F,M,U,R,k=r(9698),D=r(4833),H=r(167),z=r(1916);l=(0,H._y)("estimated-main-axis-size-px",!0);class P{static #e={e:[o]}=(0,k._)(this,[[l,0,"_handlerEstimatedMainAxisSizePx"]],[]);static observedAttributes=["estimated-main-axis-size-px"];#t;_handlerEstimatedMainAxisSizePx=o(this,(0,H._8)(()=>this.#t,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){this.#t=e}}n=(0,H.uA)("list-item",[z.O,P]),new class extends D._{constructor(){super(s),h()}static #e=(()=>{class e extends(a=HTMLElement){static #e={c:[s,h]}=(0,k._)(this,[],[n],a);static notToFilterFalseAttributes=new Set(["recyclable"])}})()},c=(0,H._y)("sticky-offset",!0),d=(0,H._y)("span-count",!0),p=(0,H._y)("column-count",!0);class W{static #e={e:[u,b]}=(0,k._)(this,[[c,0,"_handlerStickyOffset"],[[d,p],0,"_handlerCount"]],[]);static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#t;_handlerStickyOffset=u(this,(0,H._8)(()=>this.#t,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));_handlerCount=b(this,(0,H._8)(()=>this.#t,"--list-item-span-count",e=>`${parseFloat(e)}`));constructor(e){this.#t=e}connectedCallback(){let e=this.#t.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),r=()=>{0===this.#t.clientHeight?requestAnimationFrame(r):this.#t.scrollToPosition({position:t})};(0,H.JS)(r)}}}var X=r(2032);let q=function(e,t,r){let s,i,l,o,n=0;var h=function(){n=r?.leading===!1?0:new Date().getTime(),s=null,o=e.apply(i,l),s||(i=l=null)};return function(){var a=new Date().getTime();n||r?.leading!==!1||(n=a);var c=t-(a-n);return i=this,l=arguments,c<=0||c>t?(s&&(clearTimeout(s),s=null),n=a,o=e.apply(i,l),s||(i=l=null)):s||r?.trailing===!1||(s=setTimeout(h,c)),o}};var Z=r(9776),V=r(6372);v=(0,H.ZR)("scrolltoupper"),m=(0,H._y)("upper-threshold-item-count",!0),g=(0,H.ZR)("scrolltolower"),f=(0,H._y)("lower-threshold-item-count",!0),O=(0,H.ZR)("lynxscroll"),w=(0,H.ZR)("lynxscrollend"),S=(0,H.ZR)("snap"),L=(0,H.ZR)("scrolltoupperedge"),T=(0,H.ZR)("scrolltoloweredge");class Y{static #e={e:[E,y,A,C,_,x]}=(0,k._)(this,[[m,2,"_handleUpperThresholdItemCountChange"],[f,2,"_handleLowerThresholdItemCountChange"],[v,0,"_updateEventSwitches"],[g,0,"_updateScrollToLowerEventSwitches"],[[O,w,S],0,"_handleScrollEventsSwitches"],[L,0,"_handleScrollToUpperEdgeEventEnable"],[T,0,"_handleScrollToLowerEdgeEventEnable"]],[]);static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#t;#r=(x(this),(0,H.Ut)(()=>this.#t.shadowRoot,"#content"));#s;#i;#l;#o=0;#n=0;#h=!1;#a;#c=(0,H.Ut)(()=>this.#t.shadowRoot,"#upper-threshold-observer");#d=(0,H.Ut)(()=>this.#t.shadowRoot,"#lower-threshold-observer");#p(){let e=null!==this.#t.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:r,scrollHeight:s,scrollWidth:i}=this.#r(),l={scrollTop:t,scrollLeft:r,scrollHeight:s,scrollWidth:i,deltaX:r-this.#o,deltaY:t-this.#n,attachedCells:e?this.#t.getVisibleCells():void 0};return this.#o=r,this.#n=t,l}#u=e=>{let{isIntersecting:t}=e[0];t&&this.#t.dispatchEvent(new CustomEvent("scrolltoupper",{...X.$,detail:this.#p()}))};_updateEventSwitches=E(this,e=>{if(e?this.#t.setAttribute("x-enable-scrolltoupper-event",""):this.#t.removeAttribute("x-enable-scrolltoupper-event"),this.#b.scrolltoupper=e,e){this.#s||(this.#s=new IntersectionObserver(this.#u,{root:this.#r()})),this.#l||(this.#l=new MutationObserver(this.#v));let e=this.#t.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,r=0===t?this.#c():this.#t.children[t-1];r&&this.#s.observe(r),this.#l.observe(this.#t,{childList:!0})}else this.#s&&(this.#s.disconnect(),this.#s=void 0),this.#l&&(this.#l.disconnect(),this.#l=void 0)});_handleUpperThresholdItemCountChange(e,t){let r=null!==t?parseFloat(t):0,s=0===r?this.#c():this.#t.children[r-1];s&&this.#s?.unobserve(s);let i=null!==e?parseFloat(e):0,l=0===i?this.#c():this.#t.children[i-1];l&&this.#s?.observe(l)}#m=e=>{let{isIntersecting:t}=e[0];t&&this.#t.dispatchEvent(new CustomEvent("scrolltolower",{...X.$,detail:this.#p()}))};#b={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};_updateScrollToLowerEventSwitches=y(this,e=>{if(this.#b.scrolltolower=e,e?this.#t.setAttribute("x-enable-scrolltolower-event",""):this.#t.removeAttribute("x-enable-scrolltolower-event"),e){this.#i||(this.#i=new IntersectionObserver(this.#m,{root:this.#r()})),this.#l||(this.#l=new MutationObserver(this.#v));let e=this.#t.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,r=0===t?this.#d():this.#t.children[this.#t.children.length-t];r&&this.#i.observe(r),this.#l.observe(this.#t,{childList:!0})}else this.#i&&(this.#i.disconnect(),this.#i=void 0),this.#l&&(this.#l.disconnect(),this.#l=void 0)});_handleLowerThresholdItemCountChange(e,t){let r=null!==t?parseFloat(t):0,s=0===r?this.#d():this.#t.children[this.#t.children.length-r];s&&this.#i?.unobserve(s);let i=null!==e?parseFloat(e):0,l=0===i?this.#d():this.#t.children[this.#t.children.length-i];l&&this.#i?.observe(l)}#v=e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#b.scrolltolower){this.#i&&(this.#i.disconnect(),this.#i=void 0),this.#i=new IntersectionObserver(this.#m,{root:this.#r()});let e=this.#t.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,r=0===t?this.#d():this.#t.children[this.#t.children.length-t];r&&this.#i.observe(r)}if(null!==this.#t.getAttribute("x-enable-scrolltoupper-event")){this.#s&&(this.#s.disconnect(),this.#s=void 0),this.#s=new IntersectionObserver(this.#u,{root:this.#r()});let e=this.#t.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,r=0===t?this.#c():this.#t.children[t-1];r&&this.#s.observe(r)}}};#g=null;#f=()=>{this.#h&&!V.ks&&(clearTimeout(this.#a),this.#a=setTimeout(()=>{this.#O()},100)),this.#t.dispatchEvent(new CustomEvent("lynxscroll",{...X.$,detail:this.#p()}))};_handleScrollEventsSwitches=A(this,(e,t)=>{this.#b[t]=e;let{lynxscroll:r,lynxscrollend:s,snap:i}=this.#b,l=this.#t.getAttribute("scroll-event-throttle");this.#h=null!==s||null!==i;let o=this.#r();if(this.#g&&o.removeEventListener("scroll",this.#g),null!==r||this.#h){let e=null!==l?parseFloat(l):0,t=q(this.#f,e,{leading:!0,trailing:!1});this.#g=t,o.addEventListener("scroll",this.#g),this.#o=0,this.#n=0}V.ks&&this.#h?o.addEventListener("scrollend",this.#O):o.removeEventListener("scrollend",this.#O)});#w=e=>{let{isIntersecting:t,target:r}=e[0],s=r.id;t&&("upper-threshold-observer"===s?this.#t.dispatchEvent(new CustomEvent("scrolltoupperedge",{...X.$,detail:this.#p()})):"lower-threshold-observer"===s&&this.#t.dispatchEvent(new CustomEvent("scrolltoloweredge",{...X.$,detail:this.#p()})))};_handleScrollToUpperEdgeEventEnable=C(this,e=>{e?this.#t.setAttribute("x-enable-scrolltoupperedge-event",""):this.#t.removeAttribute("x-enable-scrolltoupperedge-event"),this.#S(e)});#S=(0,Z.c)(this.#r,this.#c,this.#w);_handleScrollToLowerEdgeEventEnable=_(this,e=>{e?this.#t.setAttribute("x-enable-scrolltoloweredge-event",""):this.#t.removeAttribute("x-enable-scrolltoloweredge-event"),this.#L(e)});#L=(0,Z.c)(this.#r,this.#d,this.#w);#O=()=>{let e=this.#t.getAttribute("item-snap");if(this.#t.dispatchEvent(new CustomEvent("lynxscrollend",{...X.$})),null!==e){let e=Array.from(this.#t.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#r().scrollTop,r=this.#r().scrollLeft,s=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#t.dispatchEvent(new CustomEvent("snap",{...X.$,detail:{position:s&&e.indexOf(s),scrollTop:t,scrollLeft:r}}))}};constructor(e){this.#t=e}}let j="waterfall-slot",B="waterfall-style";$=(0,H.ZR)("scrolltolower"),I=(0,H._y)("list-type",!0);class N{static #e={e:[F]}=(0,k._)(this,[[$,2,"_handleXEnableHeaderOffsetEvent"],[I,2,"_handlerListType"]],[]);static observedAttributes=["list-type"];#t;#r=(F(this),(0,H.Ut)(()=>this.#t.shadowRoot,"#content"));#T=(0,H.Ut)(()=>this.#t.shadowRoot,'div[part="lower-threshold-observer"]');#E;#l;_handleXEnableHeaderOffsetEvent(e){if(e?this.#t.setAttribute("x-enable-scrolltolower-event",""):this.#t.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#T(),t=this.#t.getAttribute("scroll-orientation")||"vertical",r=this.#r();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(r.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(r.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}}#y=()=>{let e=document.createElement("slot");e.setAttribute("name",`${j}`),this.#t.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#A=()=>{let e=parseFloat(this.#t.getAttribute("span-count")||this.#t.getAttribute("column-count")||"")||1,t="vertical"===(this.#t.getAttribute("scroll-orientation")||"vertical"),r=Array(e).fill(0);for(let s=0;s<this.#t.children.length;s++){let i=this.#t.children[s],l=getComputedStyle(i).getPropertyValue("--list-main-axis-gap"),o=getComputedStyle(i).getPropertyValue("--list-cross-axis-gap"),n=t?i.getBoundingClientRect().height+parseFloat(l):i.getBoundingClientRect().width+parseFloat(l);if(null!==i.getAttribute("full-span")){let s=r[0];for(let t=1;t<e;t++)r[t]>s&&(s=r[t]);for(let t=0;t<e;t++)r[t]=s+n;t?(i.setAttribute(`${B}-left`,"0"),i.setAttribute(`${B}-top`,`${s}px`)):(i.setAttribute(`${B}-left`,`${s}px`),i.setAttribute(`${B}-top`,"0"))}else{let s=0,l=r[0];for(let t=1;t<e;t++)r[t]<l&&(s=t,l=r[t]);let h=`calc(${s} * (100% - ${o} * (${e} - 1))/ ${e} + ${Math.max(0,s)} * ${o})`;t?(i.setAttribute(`${B}-left`,h),i.setAttribute(`${B}-top`,`${l}px`)):(i.setAttribute(`${B}-left`,`${l}px`),i.setAttribute(`${B}-top`,h)),r[s]+=n}}for(let e=0;e<this.#t.children.length;e++){let t=this.#t.children[e];t.style.setProperty("left",t.getAttribute(`${B}-left`)),t.style.setProperty("top",t.getAttribute(`${B}-top`)),t.setAttribute("slot",j)}};constructor(e){this.#t=e}#C=()=>{this.#E?.disconnect(),this.#E=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#A()})}),Array.from(this.#t.children).forEach(e=>{this.#E?.observe(e)})};_handlerListType(e){if("waterfall"===e)this.#y(),this.#E||this.#C(),this.#l||(this.#l=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#C()}),this.#l.observe(this.#t,{childList:!0}));else{this.#E?.disconnect(),this.#E=void 0,this.#l?.disconnect(),this.#l=void 0;for(let e=0;e<this.#t.children.length;e++)this.#t.children[e].removeAttribute("slot");this.#t.shadowRoot?.querySelector(`slot[name=${j}]`)?.remove()}}}var K=r(3303);M=(0,H.uA)("x-list",[z.O,W,Y,N],K.$$),new class extends D._{constructor(){super(i),U()}static #e=(()=>{class e extends(R=HTMLElement){static #e={c:[i,U]}=(0,k._)(this,[],[M],R);static notToFilterFalseAttributes=new Set(["enable-scroll"]);#r=(0,H.Ut)(()=>this.shadowRoot,"#content");#_={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#x={};get scrollTop(){return this.#r().scrollTop}set scrollTop(e){this.#r().scrollTop=e}get scrollLeft(){return this.#r().scrollTop}set scrollLeft(e){this.#r().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let r=parseFloat(e.offset);t={left:r,top:r}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#r().scrollTop=0,this.#r().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let r=this.children.item(e.position);r instanceof HTMLElement&&(t=t?{left:r.offsetLeft+t.left,top:r.offsetTop+t.top}:{left:r.offsetLeft,top:r.offsetTop})}}t&&this.#r().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#$=e=>{if(!this.#_.isScrolling)return;if(!this.#_.lastTimestamp){this.#_.lastTimestamp=e,requestAnimationFrame(this.#$);return}let t=this.#r(),r=(e-this.#_.lastTimestamp)/1e3*this.#_.rate;t.scrollBy({left:r,top:r,behavior:"auto"}),this.#_.lastTimestamp=e;let s="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(s?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#_.autoStop?(s?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#_.isScrolling=!1):requestAnimationFrame(this.#$)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#_={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let r=this.#r(),s="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?r.clientHeight<=r.scrollHeight:r.clientWidth<=r.scrollWidth;this.#_.lastTimestamp=0,s?setTimeout(()=>requestAnimationFrame(this.#$),0):requestAnimationFrame(this.#$)}else this.#_.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#x),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let r=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:r.bottom,top:r.top,left:r.left,right:r.right,index:t.indexOf(e)}})};#I=()=>Object.values(this.#x).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#F=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,r=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",s="LIST-ITEM"===e.target.tagName;if(r&&!t){let e=this.#I();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...X.$,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#I()}}))},100);return}if(s){let r=e.target?.getAttribute("item-key");if(!r)return;t?this.#x[r]&&delete this.#x[r]:this.#x[r]=e.target;return}};connectedCallback(){this.#r().addEventListener("contentvisibilityautostatechange",this.#F,{passive:!0})}}})()}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["625"],{2509(t,e,s){let o;s.r(e),s.d(e,{XOverlayNg:()=>o});var i,a,n,l,h,r,c=s(9698),d=s(3303),m=s(1916),v=s(2032),g=s(167);i=(0,g._y)("events-pass-through",!0),a=(0,g._y)("visible",!1);class u{static #t={e:[n]}=(0,c._)(this,[[i,2,"_handleEventsPassThrough"],[a,2,"_handleVisible"]],[]);static observedAttributes=["visible","events-pass-through"];#e;#s=(n(this),!!window.HTMLDialogElement);#o=!1;constructor(t){this.#e=t}#i=(0,g.Ut)(()=>this.#e.shadowRoot,"#dialog");_handleEventsPassThrough(t){null!==t?(this.#i().addEventListener("click",this.#a,{passive:!1}),this.#e.addEventListener("click",this.#a,{passive:!1})):(this.#i().removeEventListener("click",this.#a),this.#e.removeEventListener("click",this.#a))}_handleVisible(t){this.#o=null!==t,this.#s&&(this.#o?(this.#i().showModal(),this.#e.dispatchEvent(new CustomEvent("showoverlay",v.$))):(this.#i().close(),this.#e.dispatchEvent(new CustomEvent("dismissoverlay",v.$))))}#a=t=>{t.stopPropagation();let e=this.#i();if(t.target===this.#e||t.target===e){e.close();let{clientX:s,clientY:o}=t,i=document.elementFromPoint(s,o);i?.tagName==="LYNX-VIEW"&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(s,o)??i),i?.dispatchEvent(new MouseEvent("click",t)),requestAnimationFrame(()=>{this.#o&&e.isConnected&&e.showModal()})}};connectedCallback(){this.#s||(this.#i().style.display="none")}}l=(0,g.uA)("x-overlay-ng",[m.O,u],d.kp);class D extends(r=HTMLElement){static #t={c:[o,h]}=(0,c._)(this,[],[l],r);get[m.v](){return this.shadowRoot.firstElementChild}static #n=h()}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["614"],{3015(e,t,s){let r,o,i;s.r(t),s.d(t,{XRefreshHeader:()=>o,XRefreshFooter:()=>r,XRefreshView:()=>i});var n,h,a,l,d,c,f,v,g,u,m,E,w,b,S,p,R,x=s(9698),C=s(167);class T extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(T.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class _{#e;static observedAttributes=[];#t;constructor(e){this.#e=e}connectedCallback(){if(IntersectionObserver&&!this.#t){let e=this.#e.parentElement;e&&(this.#t=new IntersectionObserver(e=>{let t=!1,s=!1;e.forEach(e=>{t=e.intersectionRatio>0,s=e.intersectionRatio>.9}),this.#e.dispatchEvent(new T(t,s)),s&&this.#e.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#t.observe(this.#e))}}dispose(){this.#t&&(this.#t.disconnect(),this.#t=void 0)}}var y=s(1916),F=s(6181);n=(0,C.uA)("x-refresh-footer",[F.T,y.O,_]);class O extends(a=HTMLElement){static #s={c:[r,h]}=(0,x._)(this,[],[n],a);connectedCallback(){this.setAttribute("slot","footer")}static #r=h()}l=(0,C.uA)("x-refresh-header",[F.T,y.O,_]);class V extends(c=HTMLElement){static #s={c:[o,d]}=(0,x._)(this,[],[l],c);connectedCallback(){this.setAttribute("slot","header")}static #r=d()}var A=s(4833),L=s(2032);f=(0,C.ZR)("headeroffset"),v=(0,C.ZR)("headershow"),g=(0,C.ZR)("footeroffset"),u=(0,C.ZR)("startrefresh"),m=(0,C.ZR)("headerreleased"),E=(0,C.ZR)("startloadmore"),w=(0,C.ZR)("footerreleased");class D{static #s={e:[b]}=(0,x._)(this,[[[f,v,g],2,"_handleComplexEventEnableAttributes"],[[u,m,E,w],2,"_handleXEnableHeaderOffsetEvent"]],[]);#e;static observedAttributes=[];#o=(b(this),(0,C.Ut)(()=>this.#e,"x-refresh-view > x-refresh-header:first-of-type"));#i=(0,C.Ut)(()=>this.#e,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#e=e,this.#e.addEventListener(T.EventName,this.#n)}#h={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};_handleComplexEventEnableAttributes(e,t){this.#h[t]=e;let{headeroffset:s,headershow:r,footeroffset:o}=this.#h;s||r||o?this.#a():this.#l()}_handleXEnableHeaderOffsetEvent(e,t){this.#h[t]=e;let{startrefresh:s,headerreleased:r,startloadmore:o,footerreleased:i}=this.#h;r||i||o||s?this.#d():this.#c()}#f=!1;#v=!1;#g=!1;#u=!1;#n=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#f=e.startShowing,this.#v=e.fullyShowing):(this.#g=e.startShowing,this.#u=e.fullyShowing)};#m=!1;#d(){this.#m||(this.#e.addEventListener("touchend",this.#E),this.#m=!0)}#E=()=>{this.#v?(this.#e.dispatchEvent(new CustomEvent("headerreleased",L.$)),this.#e.dispatchEvent(new CustomEvent("startrefresh",{...L.$,detail:{isManual:this.#e._nextRefreshIsManual}})),this.#e._nextRefreshIsManual=!0):("true"===this.#e.getAttribute("enable-auto-loadmore")&&this.#g||this.#u)&&(this.#e.dispatchEvent(new CustomEvent("footerreleased",L.$)),this.#e.dispatchEvent(new CustomEvent("startloadmore",L.$)))};#c(){this.#m&&this.#e.removeEventListener("touchend",this.#E)}#w=!1;#b=!1;#a(){this.#b||(this.#e.addEventListener("touchstart",this.#S),this.#e.addEventListener("touchend",this.#p),this.#e.addEventListener("touchcancel",this.#p),this.#e.shadowRoot.querySelector("#container").addEventListener("scroll",this.#R))}#p=()=>{this.#w=!1};#S=()=>{this.#w=!0};#R=()=>{if(this.#f&&(this.#h.headershow||this.#h.headeroffset)){let e=this.#o();if(e){let t=parseFloat(getComputedStyle(e).height),s=this.#e.shadowRoot.querySelector("#container").scrollTop;this.#e.dispatchEvent(new CustomEvent("headershow",{...L.$,detail:{isDragging:this.#w,offsetPercent:1-s/t}})),this.#e.dispatchEvent(new CustomEvent("headeroffset",{...L.$,detail:{isDragging:this.#w,offsetPercent:1-s/t}}))}}else if(this.#g&&this.#h.footeroffset){let e=this.#i();if(e){let t=this.#e.shadowRoot.querySelector("#container").scrollTop,s=parseFloat(getComputedStyle(e).height);this.#e.dispatchEvent(new CustomEvent("footeroffset",{...L.$,detail:{isDragging:this.#w,offsetPercent:1-t/s}}))}}};#l(){this.#b&&(this.#e.removeEventListener("touchstart",this.#S),this.#e.removeEventListener("touchend",this.#p),this.#e.removeEventListener("touchcancel",this.#p),this.#e.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#R))}dispose(){this.#c(),this.#l()}}var H=s(6372),X=s(3303);S=(0,C.uA)("x-refresh-view",[F.T,y.O,D],X.Bi),new class extends A._{constructor(){super(i),p()}static #s=(()=>{class e extends(R=HTMLElement){static #s={c:[i,p]}=(0,x._)(this,[],[S],R);static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#x=(0,C.Ut)(()=>this.shadowRoot,"#container");#C=(0,C.Ut)(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#x(),t=this.#C();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#x(),s=this.#C();e>0?s.scrollTop=e:t.scrollTop=s.offsetTop+e}get scrollHeight(){return this.#C().scrollHeight}get[H.li](){return this}}})()}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["577"],{7343(t,e,i){let n,s;i.r(e),i.d(e,{XSwiper:()=>s,SwiperItem:()=>n});var r,o,l,a,c,h,d,u,m,g,v,p,C,f,b,E,T,_,S,y,A,I,x,w,L,P,M,D,N,k,H=i(9698),V=i(167),F=i(1916),R=i(6181);r=(0,V.uA)("x-swiper-item",[R.T,F.O]);class O extends(l=HTMLElement){static #t={c:[n,o]}=(0,H._)(this,[],[r],l);static #e=o()}var B=i(4833),W=i(2032),$=i(6372);a=(0,V.ZR)("transition"),c=(0,V.ZR)("scrollstart"),h=(0,V.ZR)("lynxscrollend"),d=(0,V.ZR)("change"),u=(0,V.ZR)("change-event-for-indicator");class U{static #t={e:[m,g]}=(0,H._)(this,[[[c,h,d,u],2,"_enableScrollEventProcessor"],[a,0,"_handleEnableTransitionEvent"]],[]);static observedAttributes=[];#i;#n=(g(this),0);#s=0;#r=!1;#o;#l=!1;constructor(t){this.#i=t}#a=(0,V.Ut)(()=>this.#i.shadowRoot,"#content").bind(this);_handleEnableTransitionEvent=m(this,(0,V.LB)(this.#a,"scroll",this.#c,{passive:!0}));#h(){$.ks||(clearTimeout(this.#o),this.#o=setTimeout(()=>{this.#d()},100)),this.#l||(this.#i.dispatchEvent(new CustomEvent("scrollstart",{...W.$,detail:{current:this.#n,isDragged:this.#r}})),this.#l=!0);let t=this.#a(),e=this.#i.isVertical,i=e?t.scrollTop:t.scrollLeft,n=e?t.clientHeight:t.clientWidth,s=e?t.scrollHeight:t.scrollWidth;if(Math.abs(this.#s-i)>n/4||i<10||Math.abs(i-s)<=n){let t=this.#i.currentIndex;t!==this.#n&&(this.#i.dispatchEvent(new CustomEvent("change",{...W.$,detail:{current:t,isDragged:this.#r}})),this.#n=t),this.#s=i}}#d(){this.#i.dispatchEvent(new CustomEvent("lynxscrollend",{...W.$,detail:{current:this.#n}})),this.#l=!1}#u(){this.#r=!0}#m(){this.#r=!1}#c(){this.#i.dispatchEvent(new CustomEvent("transition",{...W.$,detail:{dx:this.#a().scrollLeft,dy:this.#a().scrollTop}}))}#g=[(0,V.LB)(this.#a,"scroll",this.#h.bind(this),{passive:!0}),(0,V.LB)(this.#a,"touchstart",this.#u.bind(this),{passive:!0}),(0,V.LB)(this.#a,"touchend",this.#m.bind(this),{passive:!0}),(0,V.LB)(this.#a,"touchcancel",this.#m.bind(this),{passive:!0}),(0,V.LB)(this.#a,"scrollend",this.#d.bind(this),{passive:!0})];#v={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};_enableScrollEventProcessor(t,e){this.#v[e]=t;let{lynxscrollend:i,scrollstart:n,change:s}=this.#v,r=s||i||n||this.#v["change-event-for-indicator"];this.#g.forEach(t=>t(r))}connectedCallback(){this.#n=parseFloat(this.#i.getAttribute("current")??"0");let t=this.#i.isVertical;this.#s=t?this.#a().scrollTop:this.#a().scrollLeft}}v=(0,V._y)("current",!1),p=(0,V._y)("interval",!1),C=(0,V._y)("autoplay",!1);class Z{static #t={e:[f]}=(0,H._)(this,[[v,2,"_handleCurrentChange"],[[p,C],2,"_handleAutoplay"]],[]);static observedAttributes=["current","interval","autoplay"];#i;constructor(t){this.#i=t}#p(){this.#i.currentIndex===this.#i.childElementCount-1?this.#i.circularPlay&&(this.#i.currentIndex=0):this.#i.currentIndex+=1}_handleCurrentChange(t){let e=Number(t);Number.isNaN(e)||(this.#i.currentIndex=e)}#C;#f=(f(this),(()=>{this.#p()}).bind(this));#b(t){this.#E(),this.#C=setInterval(this.#f,t)}#E(){this.#C&&clearInterval(this.#C)}_handleAutoplay(){if(null!==this.#i.getAttribute("autoplay")){let t=this.#i.getAttribute("interval"),e=t?parseFloat(t):5e3;Number.isNaN(e)&&(e=5e3),this.#b(e)}}dispose(){this.#E()}}b=(0,V._y)("circular",!1),E=(0,V._y)("vertical",!0);class j{static #t={e:[T]}=(0,H._)(this,[[b,2,"_handleCircular"],[E,2,"_handleVerticalChange"]],[]);static observedAttributes=["circular","vertical"];#i;#T=(T(this),!1);#_;#S=0;#a=(0,V.Ut)(()=>this.#i.shadowRoot,"#content").bind(this);constructor(t){this.#i=t}#y=(0,V.Ut)(()=>this.#i.shadowRoot,"#circular-start").bind(this);#A=(0,V.Ut)(()=>this.#i.shadowRoot,"#circular-end").bind(this);#I(t){let e=this.#i.childElementCount;if(e>2){let{current:i,isDragged:n,__isFirstLayout:s}=t.detail;if(0===i||i===e-1||2===i||i===e-2){let t,r=this.#a(),o=this.#y().assignedElements(),l=this.#A().assignedElements(),a=this.#i.firstElementChild,c=this.#i.lastElementChild,h=this.#i.snapDistance;if(0===i?(l.forEach(t=>t.removeAttribute("slot")),c.setAttribute("slot","circular-start"),t=a):i===e-1?(o.forEach(t=>t.removeAttribute("slot")),a.setAttribute("slot","circular-end"),t=c):(o.forEach(t=>t.removeAttribute("slot")),l.forEach(t=>t.removeAttribute("slot")),t=this.#i.children[i]),this.#T){let e="carousel"===this.#i.getAttribute("mode")?.8*r.clientHeight/2:r.clientHeight/2;this.#S=t.offsetTop+t.offsetHeight/2-h-e,r.scrollTop=this.#S}else{let e="carousel"===this.#i.getAttribute("mode")?.8*r.clientWidth/2:r.clientWidth/2;this.#S=t.offsetLeft+t.offsetWidth/2-h-e,r.scrollLeft=this.#S}if(!n){let t=this.#i.getAttribute("mode");if(s&&(null===t||"normal"===t||"carousel"===t||"carry"===t))return;this.#x(s?"instant":"smooth")}}}}#x(t){let e=this.#a(),i=this.#i.snapDistance;e.scrollBy({top:this.#T?i:0,left:this.#T?0:i,behavior:t??"smooth"})}#g=[(0,V.LB)(()=>this.#i,"change",this.#I.bind(this),{passive:!0}),(0,V.LB)(()=>this.#i,"touchmove",this.#w.bind(this),{passive:!1}),(0,V.LB)(()=>this.#i,"touchend",this.#L.bind(this),{passive:!1}),(0,V.LB)(()=>this.#i,"touchcancel",this.#L.bind(this),{passive:!1})];_handleCircular(t){this.#g.forEach(e=>e(null!=t)),null!==t&&this.#I({detail:{current:this.#i.currentIndex,isDragged:!1,__isFirstLayout:!0}})}#w(t){let e=t.touches.item(0);if(e){let t=this.#T?e.pageY:e.pageX;if(void 0!==this.#_){this.#P();let e=this.#_-t;this.#S+=e}this.#_=t}}#L(t){this.#M(),this.#x(),this.#_=void 0}_handleVerticalChange(t){this.#T=null!==t}#D;#P(){if(!this.#D){let t=this.#a();this.#S=this.#T?t.scrollTop:t.scrollLeft,this.#D=setInterval(()=>{this.#T?t.scrollTop=this.#S:t.scrollLeft=this.#S},10)}}#M(){this.#D&&(clearInterval(this.#D),this.#D=void 0)}dispose(){this.#M()}}_=(0,V._y)("indicator-color",!0),S=(0,V._y)("indicator-active-color",!0),y=(0,V._y)("page-margin",!0),A=(0,V._y)("previous-margin",!0),I=(0,V._y)("next-margin",!0);class X{static #t={e:[x,w,L,P,M]}=(0,H._)(this,[[_,0,"_handleIndicatorColor"],[S,0,"_handleIndicatorActiveColor"],[y,0,"_handlePageMargin"],[A,0,"_handlePreviousMargin"],[I,0,"_handleNextMargin"]],[]);static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#i;#N=0;#k=(0,V.Ut)(()=>this.#i.shadowRoot,"#indicator-container");#H=(0,V.Ut)(()=>this.#i.shadowRoot,"#indicator-style");#V;constructor(t){this.#i=t}_handleIndicatorColor=x(this,(0,V._8)(this.#k,"--indicator-color",void 0,!0));_handleIndicatorActiveColor=w(this,(0,V._8)(this.#k,"--indicator-active-color",void 0,!0));_handlePageMargin=L(this,(0,V._8)(this.#k,"--page-margin",void 0,!0));_handlePreviousMargin=P(this,(0,V._8)(this.#k,"--previous-margin",void 0,!0));_handleNextMargin=M(this,(0,V._8)(this.#k,"--next-margin",void 0,!0));#F(){let t=this.#i.childElementCount;if(t!==this.#N){let e="";for(let i=0;i<t;i++)e+=`<div style="animation-timeline:--x-swiper-item-${i};" part="indicator-item"></div>`;if(this.#k().innerHTML=e,t>5){for(let e=0;e<t;e++)this.#i.children.item(e)?.style.setProperty("view-timeline-name",`--x-swiper-item-${e}`);this.#H().innerHTML=`:host { timeline-scope: ${Array.from({length:t},(t,e)=>`--x-swiper-item-${e}`).join(",")} !important; }`}}this.#N=t}connectedCallback(){this.#F(),this.#V=new MutationObserver(this.#F.bind(this)),this.#V.observe(this.#i,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#i.addEventListener("change",(({detail:t})=>{let e=t.current,i=this.#i.childElementCount,n=this.#k();for(let t=0;t<i;t++){let i=n.children[t];i&&(t===e?i.style.setProperty("background-color","var(--indicator-active-color)","important"):i.style.removeProperty("background-color"))}}).bind(this)),(0,V.JS)(()=>{this.#k().children[this.#i.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#V?.disconnect(),this.#V=void 0}}var G=i(3303);D=(0,V.uA)("x-swiper",[F.O,X,U,j,Z],G.Hv),new class extends B._{constructor(){super(s),N()}static #t=(()=>{class t extends(k=HTMLElement){static #t={c:[s,N]}=(0,H._)(this,[],[D],k);static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#a=(0,V.Ut)(()=>this.shadowRoot,"#content").bind(this);#R(){let t=0,e=Number.MAX_SAFE_INTEGER,i=0;if(this.childElementCount>0){let n=this.#a(),s=this.isVertical,r=this.childElementCount,o=s?n.scrollTop:n.scrollLeft,l=s?n.clientHeight:n.clientWidth,a=s?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,c=o+("carousel"===this.getAttribute("mode")?.8*l/2:l/2);for(let n=0;n<r;n++){let r=this.children[n];if(r){let o=(s?r.offsetTop:r.offsetLeft)+a/2-c,l=Math.abs(o);l<e&&(t=n,e=l,i=o)}}}return{current:t,minDistanceToMid:e,minOffsetToMid:i}}get currentIndex(){return this.#R().current}set currentIndex(t){if(this.currentIndex===t)return;let e=null===this.getAttribute("smooth-scroll");this.#O(t,e?"smooth":"instant")}#O(t,e){let i=this.children.item(t);if(i){let t=this.isVertical,n=0;n="flat-coverflow"===this.getAttribute("mode")?t?i.offsetTop-i.offsetHeight/3:i.offsetLeft-i.offsetWidth/3:t?i.offsetTop:i.offsetLeft,this.#a().scrollTo({left:t?0:n,top:t?n:0,behavior:e})}}get snapDistance(){return this.#R().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...t){if(t.length>0&&"object"==typeof t[0]&&null!==t[0]&&"index"in t[0]){let{index:e,smooth:i=!0}=t[0];if("number"==typeof e)return void this.#O(e,i?"smooth":"instant")}super.scrollTo(...t)}connectedCallback(){let t=this.getAttribute("current");null!==t&&this.#O(Number(t),"instant")}get[$.li](){return this}}})()}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["43"],{885(e,t,l){let n;l.r(t),l.d(t,{XTextarea:()=>n});var a,i,s,o,h,r,d,c,u,m,p,g,v,E,_,x,y,f,T,b,S,C,w,R,k,I,L,F,H,P,$,A,M,U,z,V,D,O=l(9698),j=l(167);a=(0,j._y)("placeholder-color",!0),i=(0,j._y)("placeholder-font-size",!0),s=(0,j._y)("placeholder-font-weight",!0),o=(0,j._y)("placeholder-font-family",!0),h=(0,j._y)("placeholder",!0);class K{static #e={e:[r,d,c,u,m]}=(0,O._)(this,[[a,0,"_updatePlaceholderColor"],[i,0,"_updatePlaceholderFontSize"],[s,0,"_updatePlaceholderFontWeight"],[o,0,"_updatePlaceholderFontFamily"],[h,0,"_handlePlaceholder"]],[]);static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#t=(0,j.Ut)(()=>this.#l.shadowRoot,"#textarea");_updatePlaceholderColor=r(this,(0,j._8)(this.#t,"--placeholder-color",void 0,!0));_updatePlaceholderFontSize=d(this,(0,j._8)(this.#t,"--placeholder-font-size",void 0,!0));_updatePlaceholderFontWeight=c(this,(0,j._8)(this.#t,"--placeholder-font-weight",void 0,!0));_updatePlaceholderFontFamily=u(this,(0,j._8)(this.#t,"--placeholder-font-family",void 0,!0));_handlePlaceholder=m(this,(0,j.H$)(this.#t,"placeholder"));#l;constructor(e){this.#l=e}}p=(0,j._y)("confirm-type",!0),g=(0,j._y)("maxlength",!0),v=(0,j._y)("readonly",!0),E=(0,j._y)("ios-spell-check",!0),_=(0,j._y)("show-soft-input-onfocus",!0);class N{static #e={e:[x,y,f,T,b]}=(0,O._)(this,[[p,0,"_handlerConfirmType"],[g,0,"_handlerMaxlength"],[v,0,"_handleReadonly"],[E,0,"_handleSpellCheck"],[_,0,"_handleShowSoftInputOnfocus"]],[]);static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#l;#n=(0,j.Ut)(()=>this.#l.shadowRoot,"#textarea");_handlerConfirmType=x(this,(0,j.H$)(this.#n,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=y(this,(0,j.H$)(this.#n,"maxlength",e=>null===e?"140":e));_handleReadonly=f(this,(0,j.H$)(this.#n,"readonly",e=>null!==e?"":null));_handleSpellCheck=T(this,(0,j.H$)(this.#n,"spellcheck",e=>null===e?"false":"true"));_handleShowSoftInputOnfocus=b(this,(0,j.H$)(this.#n,"virtualkeyboardpolicy",e=>null===e?"manual":"auto"));constructor(e){this.#l=e}}S=(0,j._y)("confirm-enter",!0),C=(0,j._y)("disabled",!0),w=(0,j._y)("max-height",!0),R=(0,j._y)("min-height",!0),k=(0,j._y)("value",!1);class W{static #e={e:[I,L,F,H]}=(0,O._)(this,[[S,2,"_handleConfirmEnter"],[k,2,"_handleValue"],[C,0,"_handleDisabled"],[w,0,"_handleMaxHeight"],[R,0,"_handleMinHeight"]],[]);static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#l;#n=(H(this),(0,j.Ut)(()=>this.#l.shadowRoot,"#textarea"));#a=(0,j.Ut)(()=>this.#l.shadowRoot,"#form");#i=!1;_handleConfirmEnter(e){this.#i=null!==e}_handleDisabled=I(this,(0,j.H$)(this.#n,"disabled",e=>null!==e?"":null));_handleMaxHeight=L(this,(0,j._8)(this.#n,"max-height"));_handleMinHeight=F(this,(0,j._8)(this.#n,"min-height"));_handleValue(e){if(e){let t=parseFloat(this.#l.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#n();t.value!==e&&(t.value=e)}#s=e=>{this.#i&&"Enter"===e.key&&this.#a().dispatchEvent(new SubmitEvent("submit"))};constructor(e){this.#l=e,this.#n().addEventListener("keyup",this.#s)}}var Z=l(2032),B=l(8351);P=(0,j._y)("input-filter",!0),$=(0,j.ZR)("lynxinput"),A=(0,j._y)("send-composing-input",!0),M=(0,j.ZR)("selection");class X{static #e={e:[U]}=(0,O._)(this,[[[P,$],2,"_handleEnableConfirmEvent"],[A,2,"_handleSendComposingInput"],[M,2,"_handleEnableSelectionEvent"]],[]);static observedAttributes=["send-composing-input","input-filter"];#l;#o=(U(this),!1);#n=(0,j.Ut)(()=>this.#l.shadowRoot,"#textarea");#a=(0,j.Ut)(()=>this.#l.shadowRoot,"#form");_handleEnableConfirmEvent(e){let t=this.#n();e?(t.addEventListener("input",this.#h,{passive:!0}),t.addEventListener("compositionend",this.#r,{passive:!0})):(t.removeEventListener("input",this.#h),t.removeEventListener("compositionend",this.#r))}_handleSendComposingInput(e){this.#o=null!==e}#d=e=>{let t=B.x[e.type]??e.type;this.#l.dispatchEvent(new CustomEvent(t,{...Z.$,detail:{value:this.#n().value}}))};#h=e=>{let t=this.#n(),l=this.#l.getAttribute("input-filter"),n=l?t.value.replace(RegExp(l,"g"),""):t.value,a=e.isComposing;t.value=n,(!a||this.#o)&&this.#l.dispatchEvent(new CustomEvent("lynxinput",{...Z.$,detail:{value:n,textLength:n.length,cursor:t.selectionStart,isComposing:a,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#r=()=>{let e=this.#n(),t=this.#l.getAttribute("input-filter"),l=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=l,this.#o||this.#l.dispatchEvent(new CustomEvent("lynxinput",{...Z.$,detail:{value:l,textLength:l.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#n().addEventListener("select",this.#c,{passive:!0}):this.#n().removeEventListener("select",this.#c)}#c=()=>{let e=this.#n();this.#l.dispatchEvent(new CustomEvent("selection",{...Z.$,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#u=e=>{e.target===this.#n()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#l=e;const t=this.#n(),l=this.#a();t.addEventListener("blur",this.#d,{passive:!0}),t.addEventListener("focus",this.#d,{passive:!0}),l.addEventListener("submit",this.#d,{passive:!0}),l.addEventListener("input",this.#u,{passive:!0})}}var q=l(1916),G=l(3303);z=(0,j.uA)("x-textarea",[q.O,K,N,W,X],G.FL);class J extends(D=HTMLElement){static #e={c:[n,V]}=(0,O._)(this,[],[z],D);#t=(0,j.Ut)(()=>this.shadowRoot,"#textarea");get value(){return this.#t().value}set value(e){this.#t().value=e}addText(e){let{text:t}=e,l=this.#t(),n=l.selectionStart;if(null===n)l.value=t;else{let e=l.value;l.value=e.slice(0,n)+t+e.slice(n)}}setValue(e){let t,l=this.#t();l.value=e.value,(t=e.index)&&l.setSelectionRange(t,t)}getValue(){let e=this.#t();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:l}=e,n=this.#t();1===t&&(l=1);let a=n.selectionStart;if(null===a){let e=n.value;n.value=n.value.substring(0,e.length-l)}else{let e=n.value;n.value=e.slice(0,a-l)+e.slice(a)}}select(){let e=this.#t();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#t().setSelectionRange(e.selectionStart,e.selectionEnd)}static #m=V()}},8351(e,t,l){l.d(t,{x:()=>n});let n={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).push([["785"],{8607(e,t,n){let s,l;n.r(t),n.d(t,{XViewpagerNg:()=>s,XViewpagerItemNg:()=>l});var i,r,o,a,c,h,d,g,u,b=n(9698),v=n(4833),E=n(167),m=n(1916),C=n(2032),f=n(6372);i=(0,E.ZR)("change"),r=(0,E.ZR)("offsetchange");class _{static #e={e:[o]}=(0,b._)(this,[[i,2,"_enableChangeEvent"],[r,2,"_enableOffsetChangeEvent"]],[]);static observedAttributes=[];#t;#n=(o(this),!1);#s=!1;#l=0;#i;constructor(e){this.#t=e}#r=(0,E.Ut)(()=>this.#t.shadowRoot,"#content");#o=()=>{if(!this.#s)return;let e=this.#r(),t=this.#t.clientWidth,n=e.scrollLeft;this.#a&&!f.ks&&(clearTimeout(this.#i),this.#i=setTimeout(()=>{this.#c()},100)),this.#t.dispatchEvent(new CustomEvent("offsetchange",{...C.$,detail:{offset:n/t}}))};#c=()=>{if(this.#s){let e=this.#r(),t=this.#t.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#l&&(this.#t.dispatchEvent(new CustomEvent("change",{...C.$,detail:{index:n,isDragged:this.#n}})),this.#l=n)}};#h=()=>{this.#n=!0};#d=()=>{this.#n=!1};#a=!1;_enableChangeEvent(e){this.#a=e,this.#g()}#u=!1;_enableOffsetChangeEvent(e){this.#u=e,this.#g()}#g(){let e=this.#r();this.#u||this.#a?e.addEventListener("scroll",this.#o,{passive:!0}):e.removeEventListener("scroll",this.#o),f.ks&&this.#a?e.addEventListener("scrollend",this.#c,{passive:!0}):e.removeEventListener("scrollend",this.#c)}connectedCallback(){this.#s=!0;let e=this.#r();this.#t.addEventListener("touchstart",this.#h,{passive:!0}),e.addEventListener("touchend",this.#d,{passive:!0}),e.addEventListener("touchcancel",this.#d,{passive:!0})}dispose(){let e=this.#r();e.removeEventListener("scroll",this.#o),e.removeEventListener("scrollend",this.#c)}}var S=n(3303),w=n(6181);a=(0,E.uA)("x-viewpager-ng",[w.T,m.O,_],S.or),new class extends v._{constructor(){super(s),c()}static #e=(()=>{class e extends(h=HTMLElement){static #e={c:[s,c]}=(0,b._)(this,[],[a],h);static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let s=this.shadowRoot.children.item(2),l=s.clientWidth*t;s.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),s=()=>{0===n.clientWidth?requestAnimationFrame(s):this.selectTab({index:t,smooth:!1})};(0,E.JS)(s)}}get[f.li](){return this}}})()},d=(0,E.uA)("x-viewpager-item-ng",[w.T,m.O]);class p extends(u=HTMLElement){static #e={c:[l,g]}=(0,b._)(this,[],[d],u);static #b=g()}}}]);
@@ -1,2 +0,0 @@
1
- import type { ElementTemplateData } from '../types/index.js';
2
- export declare function encodeElementTemplates(elementTemplates: Record<string, ElementTemplateData>): Uint8Array;