@lynx-js/web-rsbuild-server-middleware-canary 0.18.4-canary-20251120-e2c78043 → 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/package.json +3 -3
- package/www/static/js/async/legacy-wasm-chunk.js +1 -1
- package/www/static/js/async/web-core-main-thread-apis.js +1 -1
- package/www/static/js/async/web-core-worker-runtime.js +2 -2
- package/www/static/js/async/web-worker-runtime-main-thread.js +1 -1
- package/www/static/js/index.js +4 -4
- package/www/static/wasm/754c06ee.module.wasm +0 -0
- package/www/static/wasm/7f8d0487.module.wasm +0 -0
- package/www/static/wasm/13374bc7.module.wasm +0 -0
- package/www/static/wasm/75dda358.module.wasm +0 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-rsbuild-server-middleware-canary",
|
|
3
|
-
"version": "0.18.4
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "a dev server middleware for rsbuild to serve Lynx Web Platform shell project",
|
|
6
6
|
"keywords": [],
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@rsbuild/core": "1.6.7",
|
|
27
27
|
"rsbuild-plugin-arethetypeswrong": "0.1.1",
|
|
28
28
|
"rsbuild-plugin-publint": "0.3.3",
|
|
29
|
-
"@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.18.4
|
|
30
|
-
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.11
|
|
29
|
+
"@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.18.4",
|
|
30
|
+
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.11"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "rsbuild build"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["8"],{
|
|
1
|
+
"use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["8"],{9713:function(e,n,t){t.a(e,async function(e,_){try{t.d(n,{H4:()=>i.H4,RS:()=>i.RS,aC:()=>i.aC,bk:()=>i.bk,f:()=>i.f,iG:()=>i.iG,lI:()=>i.lI,pY:()=>i.pY});var r=t(4339),i=t(243),o=e([r]);r=(o.then?(await o)():o)[0],(0,i.lI)(r),_()}catch(e){_(e)}})},243:function(e,n,t){let _;function r(e){_=e}t.d(n,{H4:()=>m,RS:()=>v,aC:()=>y,bk:()=>C,f:()=>k,iG:()=>x,lI:()=>r,pY:()=>I});let i=null;function o(){return(null===i||0===i.byteLength)&&(i=new Uint8Array(_.memory.buffer)),i}let a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();let l=0;function f(e,n){var t;return e>>>=0,t=e,(l+=n)>=0x7ff00000&&((a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),l=n),a.decode(o().subarray(t,t+n))}let d=Array(128).fill(void 0);d.push(void 0,null,!0,!1);let u=d.length;function b(e){u===d.length&&d.push(d.length+1);let n=u;return u=d[n],d[n]=e,n}function c(e){let n=d[e];return e<132||(d[e]=u,u=e),n}let w=0,s=new TextEncoder;function g(e,n,t){if(void 0===t){let t=s.encode(e),_=n(t.length,1)>>>0;return o().subarray(_,_+t.length).set(t),w=t.length,_}let _=e.length,r=n(_,1)>>>0,i=o(),a=0;for(;a<_;a++){let n=e.charCodeAt(a);if(n>127)break;i[r+a]=n}if(a!==_){0!==a&&(e=e.slice(a)),r=t(r,_,_=a+3*e.length,1)>>>0;let n=o().subarray(r+a,r+_);a+=s.encodeInto(e,n).written,r=t(r,_,a,1)>>>0}return w=a,r}"encodeInto"in s||(s.encodeInto=function(e,n){let t=s.encode(e);return n.set(t),{read:e.length,written:t.length}});let h=null;function p(){return(null===h||!0===h.buffer.detached||void 0===h.buffer.detached&&h.buffer!==_.memory.buffer)&&(h=new DataView(_.memory.buffer)),h}function y(e){try{let r,i=_.__wbindgen_add_to_stack_pointer(-16),o=g(e,_.__wbindgen_export,_.__wbindgen_export2),a=w;_.transform_raw_u16_inline_style_ptr(i,o,a);var n=p().getInt32(i+0,!0),t=p().getInt32(i+4,!0);return 0!==n&&(r=f(n,t).slice(),_.__wbindgen_export3(n,+t,1)),r}finally{_.__wbindgen_add_to_stack_pointer(16)}}function x(e,n){let t=g(e,_.__wbindgen_export,_.__wbindgen_export2),r=w,i=g(n,_.__wbindgen_export,_.__wbindgen_export2),o=w;return c(_.transform_raw_u16_inline_style_ptr_parsed(t,r,i,o))}function m(e,n){throw Error(f(e,n))}function k(){return b([])}function v(e,n){return d[e].push(d[n])}function I(e,n){return b(f(e,n))}function C(e){c(e)}},9850:function(e,n,t){t.a(e,async function(e,_){try{t.r(n),t.d(n,{__wbg___wbindgen_throw_b855445ff6a94295:()=>r.H4,__wbg_new_e17d9f43105b08be:()=>r.f,__wbg_push_df81a39d04db858c:()=>r.RS,__wbg_set_wasm:()=>r.lI,__wbindgen_cast_2241b6af4c4b2941:()=>r.pY,__wbindgen_object_drop_ref:()=>r.bk,transform_raw_u16_inline_style_ptr:()=>r.aC,transform_raw_u16_inline_style_ptr_parsed:()=>r.iG});var r=t(9713),i=e([r]);r=(i.then?(await i)():i)[0],_()}catch(e){_(e)}})},4339:function(e,n,t){var _=t(243);e.exports=t.v(n,e.id,"754c06eeba359838",{"./legacy_bg.js":{__wbg_new_e17d9f43105b08be:_.f,__wbg_push_df81a39d04db858c:_.RS,__wbindgen_object_drop_ref:_.bk,__wbg___wbindgen_throw_b855445ff6a94295:_.H4,__wbindgen_cast_2241b6af4c4b2941:_.pY}})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["361"],{525:function(e,t,r){let n;r.d(t,{prepareMainThreadAPIs:()=>es});var i=r(234);let a={},o=1,l={},s={},u=e=>{let t=o++,r=e.startsWith("-x-");l[t]={name:function(e){if(a[e])return a[e];let t=(e+"").replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()});return a[e]=t,t}(e),dashName:e,isX:r},s[e]=t};u("top"),u("left"),u("right"),u("bottom"),u("position"),u("box-sizing"),u("background-color"),u("border-left-color"),u("border-right-color"),u("border-top-color"),u("border-bottom-color"),u("border-radius"),u("border-top-left-radius"),u("border-bottom-left-radius"),u("border-top-right-radius"),u("border-bottom-right-radius"),u("border-width"),u("border-left-width"),u("border-right-width"),u("border-top-width"),u("border-bottom-width"),u("color"),u("opacity"),u("display"),u("overflow"),u("height"),u("width"),u("max-width"),u("min-width"),u("max-height"),u("min-height"),u("padding"),u("padding-left"),u("padding-right"),u("padding-top"),u("padding-bottom"),u("margin"),u("margin-left"),u("margin-right"),u("margin-top"),u("margin-bottom"),u("white-space"),u("letter-spacing"),u("text-align"),u("line-height"),u("text-overflow"),u("font-size"),u("font-weight"),u("flex"),u("flex-grow"),u("flex-shrink"),u("flex-basis"),u("flex-direction"),u("flex-wrap"),u("align-items"),u("align-self"),u("align-content"),u("justify-content"),u("background"),u("border-color"),u("font-family"),u("font-style"),u("transform"),u("animation"),u("animation-name"),u("animation-duration"),u("animation-timing-function"),u("animation-delay"),u("animation-iteration-count"),u("animation-direction"),u("animation-fill-mode"),u("animation-play-state"),u("line-spacing"),u("border-style"),u("order"),u("box-shadow"),u("transform-origin"),u("linear-orientation"),u("linear-weight-sum"),u("linear-weight"),u("linear-gravity"),u("linear-layout-gravity"),u("layout-animation-create-duration"),u("layout-animation-create-timing-function"),u("layout-animation-create-delay"),u("layout-animation-create-property"),u("layout-animation-delete-duration"),u("layout-animation-delete-timing-function"),u("layout-animation-delete-delay"),u("layout-animation-delete-property"),u("layout-animation-update-duration"),u("layout-animation-update-timing-function"),u("layout-animation-update-delay"),u("adapt-font-size"),u("aspect-ratio"),u("text-decoration"),u("text-shadow"),u("background-image"),u("background-position"),u("background-origin"),u("background-repeat"),u("background-size"),u("border"),u("visibility"),u("border-right"),u("border-left"),u("border-top"),u("border-bottom"),u("transition"),u("transition-property"),u("transition-duration"),u("transition-delay"),u("transition-timing-function"),u("content"),u("border-left-style"),u("border-right-style"),u("border-top-style"),u("border-bottom-style"),u("implicit-animation"),u("overflow-x"),u("overflow-y"),u("word-break"),u("background-clip"),u("outline"),u("outline-color"),u("outline-style"),u("outline-width"),u("vertical-align"),u("caret-color"),u("direction"),u("relative-id"),u("relative-align-top"),u("relative-align-right"),u("relative-align-bottom"),u("relative-align-left"),u("relative-top-of"),u("relative-right-of"),u("relative-bottom-of"),u("relative-left-of"),u("relative-layout-once"),u("relative-center"),u("enter-transition-name"),u("exit-transition-name"),u("pause-transition-name"),u("resume-transition-name"),u("flex-flow"),u("z-index"),u("text-decoration-color"),u("linear-cross-gravity"),u("margin-inline-start"),u("margin-inline-end"),u("padding-inline-start"),u("padding-inline-end"),u("border-inline-start-color"),u("border-inline-end-color"),u("border-inline-start-width"),u("border-inline-end-width"),u("border-inline-start-style"),u("border-inline-end-style"),u("border-start-start-radius"),u("border-end-start-radius"),u("border-start-end-radius"),u("border-end-end-radius"),u("relative-align-inline-start"),u("relative-align-inline-end"),u("relative-inline-start-of"),u("relative-inline-end-of"),u("inset-inline-start"),u("inset-inline-end"),u("mask-image"),u("grid-template-columns"),u("grid-template-rows"),u("grid-auto-columns"),u("grid-auto-rows"),u("grid-column-span"),u("grid-row-span"),u("grid-column-start"),u("grid-column-end"),u("grid-row-start"),u("grid-row-end"),u("grid-column-gap"),u("grid-row-gap"),u("justify-items"),u("justify-self"),u("grid-auto-flow"),u("filter"),u("list-main-axis-gap"),u("list-cross-axis-gap"),u("linear-direction"),u("perspective"),u("cursor"),u("text-indent"),u("clip-path"),u("text-stroke"),u("text-stroke-width"),u("text-stroke-color"),u("-x-auto-font-size"),u("-x-auto-font-size-preset-sizes"),u("mask"),u("mask-repeat"),u("mask-position"),u("mask-clip"),u("mask-origin"),u("mask-size"),u("gap"),u("column-gap"),u("row-gap"),u("image-rendering"),u("hyphens"),u("-x-app-region"),u("-x-animation-color-interpolation"),u("-x-handle-color"),u("-x-handle-size"),u("offset-path"),u("offset-distance");let d=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]));async function c(){n=await d()?await Promise.resolve().then(r.bind(r,753)):await r.e("8").then(r.bind(r,383))}function p(e){let t=[],r=[];for(let[i,a]of e){let e=n.transform_raw_u16_inline_style_ptr_parsed(i,a);if(e){let[n,i]=e;r=r.concat(n),i&&(t=t.concat(i))}else r.push([i,a])}return{childStyle:t,transformedStyle:r}}var f=/[A-Z]/g,m=/^ms-/,_={};function g(e){return"-"+e.toLowerCase()}let b=function(e){if(_.hasOwnProperty(e))return _[e];var t=e.replace(f,g);return _[e]=m.test(t)?"-"+t:t},y=(e,t)=>e.appendChild(t),h=(e,t)=>e===t,w=e=>e.firstElementChild,v=e=>e.children?[...e.children]:null,A=e=>e.parentElement,x=(e,t,r)=>e.insertBefore(t,r),S=e=>e.lastElementChild,C=e=>e.nextElementSibling,E=(e,t)=>e.removeChild(t),I=(e,t)=>t.replaceWith(e),T=(e,t,r)=>{if(t=Array.isArray(t)?t:[t],!r||Array.isArray(r)&&r?.length===0)e.append(...t);else{r=Array.isArray(r)?r:[r];for(let t=1;t<r.length;t++)E(e,r[t]);r[0].replaceWith(...t)}},P=(e,t,r)=>{let n=e.getAttribute(i.tl),a=n?JSON.parse(decodeURIComponent(n)):{};a[t]=r,e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(a)))},k=(e,t,r)=>{let n=j(e);n[t]=r,e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(n))),r?e.setAttribute("data-"+t,r.toString()):e.removeAttribute("data-"+t)},j=e=>{let t=e.getAttribute(i.C6);return t?JSON.parse(decodeURIComponent(t)):{}},O=(e,t)=>j(e)[t],R=e=>Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]).filter(([,e])=>e)),G=e=>e.getAttribute(i.pP),$=e=>{let t=e.getAttribute(i.tl);return t?JSON.parse(decodeURIComponent(t)):{}},D=(e,t)=>e.getAttribute(t),N=e=>e&&e.getAttribute?Number(e.getAttribute(i.SP)):-1,H=e=>e.getAttribute("id"),M=(e,t)=>t?e.setAttribute("id",t):e.removeAttribute("id"),q=e=>e.getAttribute(i.Gq),L=(e,t)=>{e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(t)))},W=(e,t)=>{for(let[r,n]of(e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(t))),Object.entries(t)))e.setAttribute("data-"+r,n.toString())},U=(e,t)=>e.setAttribute(i.pP,t),J=e=>(e.getAttribute("class")??"").split(" ").filter(e=>e),z=(e,t)=>{void 0!==t.componentID&&U(e,t.componentID),void 0!==t.cssID&&e.setAttribute(i.js,t.cssID+""),void 0!==t.name&&e.setAttribute("name",t.name)},B=(e,t,r)=>{for(let n of e)n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r)},F=(e,t)=>{t?e.setAttribute("class",t):e.removeAttribute("class")},Y=(e,t,r)=>{let n;if("number"==typeof t){let e=l[t];n=e.dashName,e.isX&&console.error(`[lynx-web] css property: ${n} is not supported.`)}else n=t;let i="number"==typeof r?r.toString():r;if(i){let{transformedStyle:t}=p([[n,i]]);for(let[r,n]of t)e.style.setProperty(r,n)}else e.style.removeProperty(n)},Z=(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r)},X=(e,t)=>{if(t)if("string"==typeof t)e.setAttribute("style",n.transform_raw_u16_inline_style_ptr(t)??t);else{let{transformedStyle:r}=p(Object.entries(t).map(([e,t])=>[b(e),t?.toString?.()??""])),n=r.map(([e,t])=>`${e}:${t};`).join("");e.setAttribute("style",n)}},V=e=>{if(null===e.getAttribute(i.y))return{};let t=N(e),r={};for(let n of e.querySelectorAll(`[${i.SP}="${t}"] [${i.oZ}]:not([${i.SP}="${t}"] [${i.y}] [${i.oZ}])`)){let e=n.getAttribute(i.oZ);e&&(r[e]=n)}return r},K=e=>{e.setAttribute(i.y,"")},Q=(e,t)=>{e.setAttribute(i.oZ,t)};function ee(e){let t={};for(let r in e){let n=e[r];("boolean"==typeof n||"number"==typeof n||"string"==typeof n||null===n)&&(t[r]=n)}return t}function et(e,t){let r=e.target,n=e.currentTarget.getAttribute?e.currentTarget:void 0,a=e.type,o={},l=e.isTrusted,s={},u=e.detail??{};if(a.match(/^transition/))Object.assign(o,{animation_type:"keyframe-animation",animation_name:e.propertyName,new_animator:!0});else if(a.match(/animation/))Object.assign(o,{animation_type:"keyframe-animation",animation_name:e.animationName,new_animator:!0});else if(a.startsWith("touch")){let t=[...e.touches],r=[...e.targetTouches],n=[...e.changedTouches];Object.assign(s,{touches:l?t.map(ee):t,targetTouches:l?r.map(ee):r,changedTouches:l?n.map(ee):n})}else a.startsWith("mouse")?Object.assign(s,{button:e.button,buttons:e.buttons,x:e.x,y:e.y,pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY}):"click"===a&&(u={x:e.x,y:e.y});let d=n?.getAttribute(i.C6),c=d?JSON.parse(decodeURIComponent(d)):{},p=r.getAttribute(i.C6),f=p?JSON.parse(decodeURIComponent(p)):{};return{type:t,timestamp:e.timeStamp,target:{id:r.getAttribute("id"),dataset:f,uniqueId:Number(r.getAttribute(i.SP))},currentTarget:n?{id:n.getAttribute("id"),dataset:c,uniqueId:Number(n.getAttribute(i.SP))}:null,detail:u,params:o,...s}}let er=new Set(["exposure-id","exposure-area","exposure-screen-margin-top","exposure-screen-margin-right","exposure-screen-margin-bottom","exposure-screen-margin-left","exposure-ui-margin-top","exposure-ui-margin-right","exposure-ui-margin-bottom","exposure-ui-margin-left"]);function en(e){let t=function(e){let t=[],r=new Map;for(let[t,n]of Object.entries(e))for(let e of(r.has(t)||r.set(t,0),n.imports??[])){let t=r.get(e)??0;r.set(e,t+1)}for(let[e,n]of r.entries())0===n&&t.push(e);let n=[];for(;t.length>0;){let i=t.shift();n.push(i);let a=e[i]?.imports;if(a)for(let e of a){let n=r.get(e)-1;r.set(e,n),0===n&&t.push(e)}}return n}(e),r=function(e,t){let r=new Map;for(let n of t){let t=e[n]?.imports;if(t){let e=r.get(n)??new Set([n]);for(let i of t){let t=r.get(i)??new Set([i]);t.add(n),r.set(i,e.union(t))}r.set(n,e)}}return r}(e,t);return t.reverse(),t.map(t=>{let n=e[t];return n?{content:n.content,rules:n.rules,importBy:Array.from(r.get(t)??[t])}:{content:[],rules:[],importBy:[t]}})}function ei(e){for(let t of e)for(let e of t.rules){let{sel:r,decl:n}=e,{transformedStyle:i,childStyle:a}=p(n);e.decl=i,a.length>0&&t.rules.push({sel:r.map(e=>e.toSpliced(-2,1,[">"],["*"],[],[],[])),decl:a})}}function ea(e,t,r){let n=[];for(let a of e){let e=a.rules.map(e=>{let{sel:n,decl:o}=e,l=a.importBy.map(e=>{let a=function(e){let n;return n=t.enableRemoveCSSScope?`[${i.Gq}]`:`[${i.js}="${e}"]`,n=r?`${n}[${i.Pb}=${JSON.stringify(r)}]`:`${n}:not([${i.Pb}])`}(e);return n.map(e=>e.toSpliced(-4,0,[a]).flat().join("")).join(",")}).join(","),s=o.map(([e,t])=>`${e}:${t};`).join("");return`${l}{${s}}`}).join("");n.push(...a.content,e)}return n.join("\n")}function eo(e){let t={};for(let r of e)r.rules=r.rules.filter(e=>(e.sel=e.sel.filter(n=>{let[i,a,o,l]=n;if(1===i.length&&"."===i[0][0]&&0===a.length&&0===o.length&&0===l.length){let n=i[0].substring(1);for(let i of r.importBy){t[i]||(t[i]={});let r=t[i][n];r?r.push(...e.decl):t[i][n]=e.decl}return!1}return!0}),e.sel.length>0));return t}let el=c();function es(e,t,r,n,a,o,l,s,u,d,c,p){let f=e.createCall(i.F6),m=e.createCall(i.a$),_=e.createCall(i.JW),g=e.createCall(i.Ke),b=e.createCall(i.pd),ee=e.createCall(i.mB),es=e.createCall(i.Ve);return o("lepus_execute_start"),{startMainThread:async function(es,eu){let ed,ec,ep,ef,em,e_,eg,eb,ey=!0,{globalProps:eh,template:ew,browserConfig:ev,nativeModulesMap:eA,napiModulesMap:ex,tagMap:eS,initI18nResources:eC}=es,{styleInfo:eE,pageConfig:eI,customSections:eT,cardType:eP}=ew,ek=await n;o("decode_start"),await el;let ej=new i.tf({rpc:e,receiveEventEndpoint:i.Is,sendEventEndpoint:i.jK}),eO=d(eC),{updateCssOGStyle:eR,updateLazyComponentStyle:eG}=(ec=eu?.lynxUniqueIdToStyleRulesIndex??[],ei(ep=en(eE)),ef=eI.enableCSSSelector?{}:eo(ep),em={},eu?.cardStyleElement?ed=eu.cardStyleElement:((ed=r.createElement("style")).textContent=ea(ep,eI,void 0),t.appendChild(ed)),{updateCssOGStyle:(e,t,r,n)=>{let a=ed.sheet,o=function(e,t,r){let n=e.split(" ").filter(e=>e),i=[],a=t[r??"0"];if(a)for(let e of n){let t=a[e];t&&i.push(...t)}else console.warn(`[lynx-web] cannot find styleinfo for cssid ${r}`);return i.map(([e,t])=>`${e}:${t};`).join("")}(t,n&&em[n]?em[n]:ef,r);if(void 0!==ec[e])a.cssRules[ec[e]].style.cssText=o;else{let t=a.insertRule(`[${i.SP}="${e}"]{${o}}`,a.cssRules.length);ec[e]=t}},updateLazyComponentStyle:(e,t)=>{let r=en(e);ei(r),eI.enableCSSSelector||(em[t]=eo(r));let n=ea(r,eI,t);ed.textContent+=n}}),e$={mtsGlobalThis:void 0},eD=(e_=e.createCall(i.WS),eg=new Map,eb=(e,t)=>{let r=eg.get(e),n=r??c(e).then(async t=>{let r=e_(e,t),n=await ek.loadScript(t.lepusCode.root);return e$.mtsGlobalThis.processEvalResult&&(n=e$.mtsGlobalThis.processEvalResult(n,e)),eG(t.styleInfo,e),await r,ej.dispatchEvent({type:"__OnDynamicJSSourcePrepared",data:e}),n});return r||eg.set(e,n),n.then(r=>{t?.({code:0,data:{url:e,evalResult:r}})}).catch(r=>{console.error("lynx web: lazy bundle load failed:",r),eg.delete(e),t?.({code:-1,data:void 0})}),null},e.registerHandler(i.nk,e=>new Promise(t=>{eb(e,r=>{t({code:r.code,detail:{schema:e}})})})),eb),eN=function(e){let t,r,n,a,o,l,s=[],{callbacks:u,tagMap:d,pageConfig:c,lynxTemplate:p,rootDom:f,globalProps:m,ssrHydrateInfo:_,ssrHooks:g,mtsRealm:b,document:ee}=e,{elementTemplate:en,lepusCode:ei}=p,ea=_?.lynxUniqueIdToElement??[],eo=new WeakMap,el=ea[1]?.deref(),es=ea.length||1,eu=new Set,ed=e=>{if(!e.currentTarget)return;let t=e.currentTarget,r=e.eventPhase===Event.CAPTURING_PHASE,n=i.$4[e.type]??e.type,a=eo.get(t);if(a){let o=r?a.eventHandlerMap[n]?.capture?.handler:a.eventHandlerMap[n]?.bind?.handler,l=et(e,n);if("string"==typeof o){let e=ea[Number(t.getAttribute(i.er))].deref(),r=e?.getAttribute(i.Gq)!=="page"?e?.getAttribute(i.pP)??void 0:void 0;return r?u.publicComponentEvent(r,o,l):u.publishEvent(o,l),!0}o&&(l.target.elementRefptr=e.target,l.currentTarget&&(l.currentTarget.elementRefptr=e.currentTarget),b.globalWindow.runWorklet?.(o.value,[l]))}return!1},ec=e=>{ed(e)&&e.stopPropagation()},ep=(e,t,r,n)=>{r=r.toLowerCase();let a="catchEvent"===t||"capture-catch"===t,o=t.startsWith("capture"),l=eo.get(e)??{eventHandlerMap:{},componentAtIndex:void 0,enqueueComponent:void 0},s=o?l.eventHandlerMap[r]?.capture:l.eventHandlerMap[r]?.bind,u=a?ec:ed;if(s)n||(e.removeEventListener(r,u,{capture:o}),("uiappear"===r||"uidisappear"===r)&&"-1"===e.getAttribute("exposure-id")&&ex.__SetAttribute(e,"exposure-id",null));else if(n){let t=i.vQ[e.tagName]?.[r]??i.im[r]??r;e.addEventListener(t,u,{capture:o}),("uiappear"===r||"uidisappear"===r)&&null===e.getAttribute("exposure-id")&&ex.__SetAttribute(e,"exposure-id","-1")}if(n){let e={type:t,handler:n};l.eventHandlerMap[r]||(l.eventHandlerMap[r]={capture:void 0,bind:void 0}),o?l.eventHandlerMap[r].capture=e:l.eventHandlerMap[r].bind=e}eo.set(e,l)},ef=(e,t)=>{let r=es++,n=d[e]??e,a=ee.createElement(n);ea[r]=new WeakRef(a);let o=ea[t]?.deref()?.getAttribute(i.js);return o&&"0"!==o&&a.setAttribute(i.js,o),a.setAttribute(i.Gq,e),a.setAttribute(i.SP,r+""),a.setAttribute(i.er,t+""),a},em=(e,t,r)=>{if("list"===e.getAttribute(i.Gq)&&"update-list-info"===t){let{insertAction:t,removeAction:n}=r;queueMicrotask(()=>{let r=eo.get(e);if(r){let i=r.componentAtIndex,a=r.enqueueComponent,o=N(e);for(let r of t)i?.(e,o,r.position,0,!1);for(let t of n)a?.(e,o,t.position)}})}else null==r?e.removeAttribute(t):e.setAttribute(t,r+""),t===i.I7&&r&&s.push(r),er.has(t)&&eu.add(e)},e_=(e,t)=>{F(e,t);let r=e.getAttribute(i.js),n=Number(e.getAttribute(i.SP)),a=e.getAttribute(i.Pb);u.updateCssOGStyle(n,t??"",r,a)},eg={},eb=(e,t)=>{let r=ef(e.type,t);for(let[t,n]of(M(r,e.id),e.class&&F(r,e.class.join(" ")),Object.entries(e.attributes||{})))em(r,t,n);for(let[t,n]of Object.entries(e.builtinAttributes||{}))"dirtyID"===t&&n===e.id&&Q(r,n),em(r,t,n);for(let n of e.children||[])y(r,eb(n,t));return void 0!==e.dataset&&W(r,e.dataset),r},ey=(e,t)=>{let r=es++;for(let n of(t.setAttribute(i.SP,r+""),e.events||[])){let{type:e,name:r,value:i}=n;ep(t,e,r,i)}for(let r=0;r<(e.children||[]).length;r++){let n=(e.children||[])[r],i=t.children[r];n&&i&&ey(n,i)}},eh=(e,t)=>{let r=en[e];if(r){let n;if(eg[e])n=Array.from(eg[e].content.cloneNode(!0).children);else if(n=r.map(e=>eb(e,t)),f.cloneNode){let r=ee.createElement("template");return r.content.append(...n),eg[e]=r,f.append(r),eh(e,t)}for(let e=0;e<n.length;e++){let t=r[e],i=n[e];t&&i&&ey(t,i)}return n.forEach(K),n}return[]},ew="",ev=!c.enableCSSSelector,eA={...i.c1,...e.browserConfig},ex={__ElementFromBinary:eh,__GetTemplateParts:f.querySelectorAll?V:void 0,__MarkTemplateElement:K,__MarkPartElement:Q,__AddEvent:g?.__AddEvent??ep,__GetEvent:(e,t,r)=>{let n=eo.get(e);if(n){t=t.toLowerCase();let e=r.startsWith("capture")?n.eventHandlerMap[t]?.capture:n.eventHandlerMap[t]?.bind;return e?.handler}},__GetEvents:e=>{let t=eo.get(e)?.eventHandlerMap??{},r=[];for(let[e,n]of Object.entries(t))for(let t of[n.bind,n.capture])if(t){let{type:n,handler:i}=t;i&&r.push({type:n,name:e,function:i})}return r},__SetEvents:(e,t)=>{for(let{type:r,name:n,function:i}of t)ep(e,r,n,i)},__AppendElement:y,__ElementIsEqual:h,__FirstElement:w,__GetChildren:v,__GetParent:A,__InsertElementBefore:x,__LastElement:S,__NextElement:C,__RemoveElement:E,__ReplaceElement:I,__ReplaceElements:T,__AddConfig:P,__AddDataset:k,__GetAttributes:R,__GetComponentID:G,__GetDataByKey:O,__GetDataset:j,__GetElementConfig:$,__GetElementUniqueID:N,__GetID:H,__GetTag:q,__SetConfig:L,__SetDataset:W,__SetID:M,__UpdateComponentID:U,__UpdateComponentInfo:z,__CreateElement:ef,__CreateView:e=>ef("view",e),__CreateText:e=>ef("text",e),__CreateComponent:(e,t,r,n,a)=>{let o=ef("view",e);return o.setAttribute(i.js,r+""),o.setAttribute(i.pP,t),o.setAttribute("name",a),o},__CreatePage:(e,t)=>{let r=ef("page",0);return r.setAttribute("part","page"),r.setAttribute(i.js,t+""),r.setAttribute(i.er,"0"),r.setAttribute(i.pP,e),K(r),!1===c.defaultDisplayLinear&&r.setAttribute(i.Gm,"false"),!0===c.defaultOverflowVisible&&r.setAttribute("lynx-default-overflow-visible","true"),el=r,r},__CreateRawText:e=>{let t=ef("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:e=>ef("image",e),__CreateScrollView:e=>ef("scroll-view",e),__CreateWrapperElement:e=>ef("lynx-wrapper",e),__CreateList:(e,t,r)=>{let n=ef("list",e);return eo.set(n,{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r}),n},__SetAttribute:em,__SwapElement:(e,t)=>{let r=ee.createElement("div");e.replaceWith(r),t.replaceWith(e),r.replaceWith(t)},__UpdateListCallbacks:(e,t,r)=>{let n=eo.get(e)??{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r,uniqueId:N(e)};n.componentAtIndex=t,n.enqueueComponent=r,eo.set(e,n)},__GetConfig:$,__GetAttributeByName:D,__GetClasses:J,__AddClass:ev?(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r);let n=e.getAttribute(i.js),a=Number(e.getAttribute(i.SP)),o=e.getAttribute(i.Pb);u.updateCssOGStyle(a,r,n,o)}:Z,__SetClasses:ev?e_:F,__AddInlineStyle:Y,__SetCSSId:ev?(e,t,r)=>{for(let n of e){n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r);let e=n.getAttribute("class");e&&e_(n,e)}}:B,__SetInlineStyles:X,__LoadLepusChunk:e=>{try{return e=ei?.[e]??e,b.loadScriptSync(e),!0}catch(t){return console.error(`failed to load lepus chunk ${e}`,t),!1}},__GetPageElement:()=>el,__globalProps:m,__QueryComponent:u.__QueryComponent,SystemInfo:eA,lynx:(t=requestAnimationFrame,r=cancelAnimationFrame,n=setTimeout,a=clearTimeout,o=setInterval,l=clearInterval,{getJSContext:()=>e.jsContext,requestAnimationFrame:e=>t(e),cancelAnimationFrame:e=>r(e),__globalProps:e.globalProps,getCustomSectionSync:t=>e.lynxTemplate.customSections[t]?.content,markPipelineTiming:e.callbacks.markTiming,SystemInfo:eA,setTimeout:n,clearTimeout:a,setInterval:o,clearInterval:l}),_ReportError:(e,t)=>u._ReportError(e,t,ew),_SetSourceMapRelease:e=>ew=e?.release,__OnLifecycleEvent:u.__OnLifecycleEvent,__FlushElementTree:(e,t)=>{let r=s;s=[],el&&!el.parentNode&&""!==el.getAttribute(i.JA)&&f.append(el);let n=Array.from(eu);eu.clear(),u.flushElementTree(t,r,n)},_I18nResourceTranslation:u._I18nResourceTranslation,_AddEventListener:()=>{},renderPage:void 0};return Object.assign(b.globalWindow,ex),Object.defineProperty(b.globalWindow,"renderPage",{get:()=>ex.renderPage,set(e){ex.renderPage=e,queueMicrotask(u.mainChunkReady)},configurable:!0,enumerable:!0}),b.globalWindow}({lynxTemplate:ew,mtsRealm:ek,jsContext:ej,tagMap:eS,browserConfig:ev,globalProps:eh,pageConfig:eI,rootDom:t,ssrHydrateInfo:eu,ssrHooks:p,document:r,callbacks:{updateCssOGStyle:eR,mainChunkReady:()=>{o("data_processor_start");let r=es.initData;!0!==eI.enableJSDataProcessor&&eN.processData&&(r=eN.processData(es.initData)),o("data_processor_end"),e.registerHandler(i.iH,(e,t)=>{eN[e](t)}),e.registerHandler(i.Fw,e=>eT[e]?.content);let{switchExposureService:n}=function(e,t){let r=!0,n=[],a=[],o=null,l=new Map;function s(e){let r=et(e,e.type);r.detail["unique-id"]=parseFloat(e.target.getAttribute(i.SP));let s=r.detail.exposureID;"exposure"===e.type?(n.push(r),l.set(s,r)):(a.push(r),l.delete(s)),o||(o=setTimeout(()=>{if(n.length>0||a.length>0){let e=n,r=a;n=[],a=[],t({exposures:e,disExposures:r})}o=null},50))}return e.addEventListener("exposure",s,{passive:!0}),e.addEventListener("disexposure",s,{passive:!0}),{switchExposureService:function(e,n){e&&!r?t({exposures:[...l.values()],disExposures:[]}):!e&&r&&n&&t({exposures:[],disExposures:[...l.values()]}),r=e}}}(t,b);if(e.registerHandler(i.eZ,n),m({initData:r,globalProps:eh,template:ew,cardType:eP??"react",customSections:Object.fromEntries(Object.entries(eT).filter(([,e])=>"lazy"!==e.type).map(([e,t])=>[e,t.content])),nativeModulesMap:eA,napiModulesMap:ex}),eu){for(let e of eu.events){let t=e[0],r=eu.lynxUniqueIdToElement[t]?.deref();r&&eN.__AddEvent(r,e[1],e[2],e[3])}eN.ssrHydrate?.(eu.ssrEncodeData)}else eN.renderPage(r),eN.__FlushElementTree(void 0,{})},flushElementTree:async(e,t,r)=>{let n=e?.pipelineOptions?.pipelineID;o("dispatch_start",n),ey&&(ey=!1,ej.dispatchEvent({type:"__OnNativeAppReady",data:void 0})),o("layout_start",n),o("ui_operation_flush_start",n),await a(r),o("ui_operation_flush_end",n),o("layout_end",n),o("dispatch_end",n),l(),requestAnimationFrame(()=>{f(t,n)})},_ReportError:s,__OnLifecycleEvent:e=>{ej.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>o(t,e),publishEvent:_,publicComponentEvent:g,_I18nResourceTranslation:e=>{let t=eO.data?.find(t=>(0,i.HO)(t.options)===(0,i.HO)(e));return(ee(t?.resource),t)?t.resource:u(e)},__QueryComponent:eD}});e$.mtsGlobalThis=eN,o("decode_end"),await ek.loadScript(ew.lepusCode.root),ej.__start()},handleUpdatedData:async function(e,t){let r=(await n).globalWindow,i=r.processData?r.processData(e,t?.processorName):e;return r.updatePage?.(i,t),es(i,t)}}}},686:function(e,t,r){r.a(e,async function(e,n){try{r.d(t,{H4:()=>a.H4,RS:()=>a.RS,aC:()=>a.aC,bL:()=>a.bL,f:()=>a.f,iG:()=>a.iG,lI:()=>a.lI,pY:()=>a.pY});var i=r(162),a=r(962),o=e([i]);i=(o.then?(await o)():o)[0],(0,a.lI)(i),i.__wbindgen_start(),n()}catch(e){n(e)}})},962:function(e,t,r){let n;function i(e){n=e}r.d(t,{H4:()=>_,RS:()=>b,aC:()=>f,bL:()=>h,f:()=>g,iG:()=>m,lI:()=>i,pY:()=>y});let a=null;function o(){return(null===a||0===a.byteLength)&&(a=new Uint8Array(n.memory.buffer)),a}let l=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});l.decode();let s=0;function u(e,t){var r;return e>>>=0,r=e,(s+=t)>=0x7ff00000&&((l=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),s=t),l.decode(o().subarray(r,r+t))}let d=0,c=new TextEncoder;function p(e,t,r){if(void 0===r){let r=c.encode(e),n=t(r.length,1)>>>0;return o().subarray(n,n+r.length).set(r),d=r.length,n}let n=e.length,i=t(n,1)>>>0,a=o(),l=0;for(;l<n;l++){let t=e.charCodeAt(l);if(t>127)break;a[i+l]=t}if(l!==n){0!==l&&(e=e.slice(l)),i=r(i,n,n=l+3*e.length,1)>>>0;let t=o().subarray(i+l,i+n);l+=c.encodeInto(e,t).written,i=r(i,n,l,1)>>>0}return d=l,i}function f(e){let t,r=p(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=d,a=n.transform_raw_u16_inline_style_ptr(r,i);return 0!==a[0]&&(t=u(a[0],a[1]).slice(),n.__wbindgen_free(a[0],+a[1],1)),t}function m(e,t){let r=p(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=d,a=p(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=d;return n.transform_raw_u16_inline_style_ptr_parsed(r,i,a,o)}function _(e,t){throw Error(u(e,t))}function g(){return[]}function b(e,t){return e.push(t)}function y(e,t){return u(e,t)}function h(){let e=n.__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)}"encodeInto"in c||(c.encodeInto=function(e,t){let r=c.encode(e);return t.set(r),{read:e.length,written:r.length}})},753:function(e,t,r){r.a(e,async function(e,n){try{r.r(t),r.d(t,{__wbg___wbindgen_throw_b855445ff6a94295:()=>i.H4,__wbg_new_e17d9f43105b08be:()=>i.f,__wbg_push_df81a39d04db858c:()=>i.RS,__wbg_set_wasm:()=>i.lI,__wbindgen_cast_2241b6af4c4b2941:()=>i.pY,__wbindgen_init_externref_table:()=>i.bL,transform_raw_u16_inline_style_ptr:()=>i.aC,transform_raw_u16_inline_style_ptr_parsed:()=>i.iG});var i=r(686),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},162:function(e,t,r){var n=r(962);e.exports=r.v(t,e.id,"75dda3584a4e8253",{"./standard_bg.js":{__wbg_new_e17d9f43105b08be:n.f,__wbg_push_df81a39d04db858c:n.RS,__wbg___wbindgen_throw_b855445ff6a94295:n.H4,__wbindgen_init_externref_table:n.bL,__wbindgen_cast_2241b6af4c4b2941:n.pY}})}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["361"],{5591:function(e,t,n){n.d(t,{A:()=>l});var r=/[A-Z]/g,i=/^ms-/,a={};function o(e){return"-"+e.toLowerCase()}let l=function(e){if(a.hasOwnProperty(e))return a[e];var t=e.replace(r,o);return a[e]=i.test(t)?"-"+t:t}},3095:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{H4:()=>a.H4,RS:()=>a.RS,aC:()=>a.aC,bL:()=>a.bL,f:()=>a.f,iG:()=>a.iG,lI:()=>a.lI,pY:()=>a.pY});var i=n(1009),a=n(3209),o=e([i]);i=(o.then?(await o)():o)[0],(0,a.lI)(i),i.__wbindgen_start(),r()}catch(e){r(e)}})},3209:function(e,t,n){let r;function i(e){r=e}n.d(t,{H4:()=>_,RS:()=>g,aC:()=>f,bL:()=>h,f:()=>b,iG:()=>m,lI:()=>i,pY:()=>y});let a=null;function o(){return(null===a||0===a.byteLength)&&(a=new Uint8Array(r.memory.buffer)),a}let l=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});l.decode();let s=0;function u(e,t){var n;return e>>>=0,n=e,(s+=t)>=0x7ff00000&&((l=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),s=t),l.decode(o().subarray(n,n+t))}let d=0,c=new TextEncoder;function p(e,t,n){if(void 0===n){let n=c.encode(e),r=t(n.length,1)>>>0;return o().subarray(r,r+n.length).set(n),d=n.length,r}let r=e.length,i=t(r,1)>>>0,a=o(),l=0;for(;l<r;l++){let t=e.charCodeAt(l);if(t>127)break;a[i+l]=t}if(l!==r){0!==l&&(e=e.slice(l)),i=n(i,r,r=l+3*e.length,1)>>>0;let t=o().subarray(i+l,i+r);l+=c.encodeInto(e,t).written,i=n(i,r,l,1)>>>0}return d=l,i}function f(e){let t,n=p(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=d,a=r.transform_raw_u16_inline_style_ptr(n,i);return 0!==a[0]&&(t=u(a[0],a[1]).slice(),r.__wbindgen_free(a[0],+a[1],1)),t}function m(e,t){let n=p(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=d,a=p(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=d;return r.transform_raw_u16_inline_style_ptr_parsed(n,i,a,o)}function _(e,t){throw Error(u(e,t))}function b(){return[]}function g(e,t){return e.push(t)}function y(e,t){return u(e,t)}function h(){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)}"encodeInto"in c||(c.encodeInto=function(e,t){let n=c.encode(e);return t.set(n),{read:e.length,written:n.length}})},3267:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{D:()=>u});var i=n(4234),a=n(5333),o=n(1546),l=n(3063),s=e([o,a]);[o,a]=s.then?(await s)():s;let d=new Set(["exposure-id","exposure-area","exposure-screen-margin-top","exposure-screen-margin-right","exposure-screen-margin-bottom","exposure-screen-margin-left","exposure-ui-margin-top","exposure-ui-margin-right","exposure-ui-margin-bottom","exposure-ui-margin-left"]);function u(e){let t=[],{callbacks:n,tagMap:r,pageConfig:s,lynxTemplate:u,rootDom:c,globalProps:p,ssrHydrateInfo:f,ssrHooks:m,mtsRealm:_,document:b}=e,{elementTemplate:g,lepusCode:y}=u,h=f?.lynxUniqueIdToElement??[],v=new WeakMap,w=h[1]?.deref(),A=h.length||1,x=new Set,S=e=>{if(!e.currentTarget)return;let t=e.currentTarget,r=e.eventPhase===Event.CAPTURING_PHASE,a=i.$4[e.type]??e.type,o=v.get(t);if(o){let s=r?o.eventHandlerMap[a]?.capture?.handler:o.eventHandlerMap[a]?.bind?.handler,u=(0,l.X)(e,a);if("string"==typeof s){let e=h[Number(t.getAttribute(i.er))].deref(),r=e?.getAttribute(i.Gq)!=="page"?e?.getAttribute(i.pP)??void 0:void 0;return r?n.publicComponentEvent(r,s,u):n.publishEvent(s,u),!0}s&&(u.target.elementRefptr=e.target,u.currentTarget&&(u.currentTarget.elementRefptr=e.currentTarget),_.globalWindow.runWorklet?.(s.value,[u]))}return!1},C=e=>{S(e)&&e.stopPropagation()},E=(e,t,n,r)=>{n=n.toLowerCase();let a="catchEvent"===t||"capture-catch"===t,o=t.startsWith("capture"),l=v.get(e)??{eventHandlerMap:{},componentAtIndex:void 0,enqueueComponent:void 0},s=o?l.eventHandlerMap[n]?.capture:l.eventHandlerMap[n]?.bind,u=a?C:S;if(s)r||(e.removeEventListener(n,u,{capture:o}),("uiappear"===n||"uidisappear"===n)&&"-1"===e.getAttribute("exposure-id")&&D.__SetAttribute(e,"exposure-id",null));else if(r){let t=i.vQ[e.tagName]?.[n]??i.im[n]??n;e.addEventListener(t,u,{capture:o}),("uiappear"===n||"uidisappear"===n)&&null===e.getAttribute("exposure-id")&&D.__SetAttribute(e,"exposure-id","-1")}if(r){let e={type:t,handler:r};l.eventHandlerMap[n]||(l.eventHandlerMap[n]={capture:void 0,bind:void 0}),o?l.eventHandlerMap[n].capture=e:l.eventHandlerMap[n].bind=e}v.set(e,l)},I=(e,t)=>{let n=A++,a=r[e]??e,o=b.createElement(a);h[n]=new WeakRef(o);let l=h[t]?.deref()?.getAttribute(i.js);return l&&"0"!==l&&o.setAttribute(i.js,l),o.setAttribute(i.Gq,e),o.setAttribute(i.SP,n+""),o.setAttribute(i.er,t+""),o},T=(e,n,r)=>{let a=e.getAttribute(i.Gq);if("list"===a&&"update-list-info"===n){let{insertAction:t,removeAction:n}=r;queueMicrotask(()=>{let r=v.get(e);if(r){let i=r.componentAtIndex,a=r.enqueueComponent,l=(0,o.Tj)(e);for(let n of t)i?.(e,l,n.position,0,!1);for(let t of n)a?.(e,l,t.position)}})}else null==r?e.removeAttribute(n):e.setAttribute(n,r+""),n===i.I7&&r&&t.push(r),d.has(n)&&x.add(e)},k=(e,t)=>{(0,o.R5)(e,t);let r=e.getAttribute(i.js),a=Number(e.getAttribute(i.SP)),l=e.getAttribute(i.Pb);n.updateCssOGStyle(a,t??"",r,l)},P={},j=(e,t)=>{let n=I(e.type,t);for(let[t,r]of((0,o.wr)(n,e.id),e.class&&(0,o.R5)(n,e.class.join(" ")),Object.entries(e.attributes||{})))T(n,t,r);for(let[t,r]of Object.entries(e.builtinAttributes||{}))"dirtyID"===t&&r===e.id&&(0,o.ZW)(n,r),T(n,t,r);for(let r of e.children||[])(0,o.vh)(n,j(r,t));return void 0!==e.dataset&&(0,o.bw)(n,e.dataset),n},R=(e,t)=>{let n=A++;for(let r of(t.setAttribute(i.SP,n+""),e.events||[])){let{type:e,name:n,value:i}=r;E(t,e,n,i)}for(let n=0;n<(e.children||[]).length;n++){let r=(e.children||[])[n],i=t.children[n];r&&i&&R(r,i)}},O=(e,t)=>{let n=g[e];if(n){let r;if(P[e])r=Array.from(P[e].content.cloneNode(!0).children);else if(r=n.map(e=>j(e,t)),c.cloneNode){let n=b.createElement("template");return n.content.append(...r),P[e]=n,c.append(n),O(e,t)}for(let e=0;e<r.length;e++){let t=n[e],i=r[e];t&&i&&R(t,i)}return r.forEach(o.uY),r}return[]},G="",$=!s.enableCSSSelector,N={...i.c1,...e.browserConfig},D={__ElementFromBinary:O,__GetTemplateParts:c.querySelectorAll?o.$G:void 0,__MarkTemplateElement:o.uY,__MarkPartElement:o.ZW,__AddEvent:m?.__AddEvent??E,__GetEvent:(e,t,n)=>{let r=v.get(e);if(r){t=t.toLowerCase();let e=n.startsWith("capture")?r.eventHandlerMap[t]?.capture:r.eventHandlerMap[t]?.bind;return e?.handler}},__GetEvents:e=>{let t=v.get(e)?.eventHandlerMap??{},n=[];for(let[e,r]of Object.entries(t))for(let t of[r.bind,r.capture])if(t){let{type:r,handler:i}=t;i&&n.push({type:r,name:e,function:i})}return n},__SetEvents:(e,t)=>{for(let{type:n,name:r,function:i}of t)E(e,n,r,i)},__AppendElement:o.vh,__ElementIsEqual:o.pn,__FirstElement:o.vH,__GetChildren:o.yj,__GetParent:o.d6,__InsertElementBefore:o.pi,__LastElement:o.Nu,__NextElement:o.cw,__RemoveElement:o.z3,__ReplaceElement:o.Xk,__ReplaceElements:o.yE,__AddConfig:o.Ud,__AddDataset:o.Kz,__GetAttributes:o.GE,__GetComponentID:o.zP,__GetDataByKey:o.NV,__GetDataset:o.Fl,__GetElementConfig:o.pe,__GetElementUniqueID:o.Tj,__GetID:o.cb,__GetTag:o.zm,__SetConfig:o.l9,__SetDataset:o.bw,__SetID:o.wr,__UpdateComponentID:o.A7,__UpdateComponentInfo:o.$r,__CreateElement:I,__CreateView:e=>I("view",e),__CreateText:e=>I("text",e),__CreateComponent:(e,t,n,r,a)=>{let o=I("view",e);return o.setAttribute(i.js,n+""),o.setAttribute(i.pP,t),o.setAttribute("name",a),o},__CreatePage:(e,t)=>{let n=I("page",0);return n.setAttribute("part","page"),n.setAttribute(i.js,t+""),n.setAttribute(i.er,"0"),n.setAttribute(i.pP,e),(0,o.uY)(n),!1===s.defaultDisplayLinear&&n.setAttribute(i.Gm,"false"),!0===s.defaultOverflowVisible&&n.setAttribute("lynx-default-overflow-visible","true"),w=n,n},__CreateRawText:e=>{let t=I("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:e=>I("image",e),__CreateScrollView:e=>I("scroll-view",e),__CreateWrapperElement:e=>I("lynx-wrapper",e),__CreateList:(e,t,n)=>{let r=I("list",e);return v.set(r,{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:n}),r},__SetAttribute:T,__SwapElement:(e,t)=>{let n=b.createElement("div");e.replaceWith(n),t.replaceWith(e),n.replaceWith(t)},__UpdateListCallbacks:(e,t,n)=>{let r=v.get(e)??{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:n,uniqueId:(0,o.Tj)(e)};r.componentAtIndex=t,r.enqueueComponent=n,v.set(e,r)},__GetConfig:o.pe,__GetAttributeByName:o.li,__GetClasses:o.Tq,__AddClass:$?(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r);let a=e.getAttribute(i.js),o=Number(e.getAttribute(i.SP)),l=e.getAttribute(i.Pb);n.updateCssOGStyle(o,r,a,l)}:o.gA,__SetClasses:$?k:o.R5,__AddInlineStyle:o.kB,__SetCSSId:$?(e,t,n)=>{for(let r of e){r.setAttribute(i.js,t+""),n&&r.setAttribute(i.Pb,n);let e=r.getAttribute("class");e&&k(r,e)}}:o.D1,__SetInlineStyles:o.c2,__LoadLepusChunk:e=>{try{return e=y?.[e]??e,_.loadScriptSync(e),!0}catch(t){return console.error(`failed to load lepus chunk ${e}`,t),!1}},__GetPageElement:()=>w,__globalProps:p,__QueryComponent:n.__QueryComponent,SystemInfo:N,lynx:(0,a.B)(e,N),_ReportError:(e,t)=>n._ReportError(e,t,G),_SetSourceMapRelease:e=>G=e?.release,__OnLifecycleEvent:n.__OnLifecycleEvent,__FlushElementTree:(e,r)=>{let a=t;t=[],w&&!w.parentNode&&""!==w.getAttribute(i.JA)&&c.append(w);let o=Array.from(x);x.clear(),n.flushElementTree(r,a,o)},_I18nResourceTranslation:n._I18nResourceTranslation,_AddEventListener:()=>{},renderPage:void 0};return Object.assign(_.globalWindow,D),Object.defineProperty(_.globalWindow,"renderPage",{get:()=>D.renderPage,set(e){D.renderPage=e,queueMicrotask(n.mainChunkReady)},configurable:!0,enumerable:!0}),_.globalWindow}r()}catch(e){r(e)}})},5333:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{B:()=>o});var i=n(3267),a=e([i]);function o(e,t){let n=requestAnimationFrame,r=cancelAnimationFrame,i=setTimeout,a=clearTimeout,o=setInterval,l=clearInterval;return{getJSContext:()=>e.jsContext,requestAnimationFrame:e=>n(e),cancelAnimationFrame:e=>r(e),__globalProps:e.globalProps,getCustomSectionSync:t=>e.lynxTemplate.customSections[t]?.content,markPipelineTiming:e.callbacks.markTiming,SystemInfo:t,setTimeout:i,clearTimeout:a,setInterval:o,clearInterval:l}}i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},7776:function(e,t,n){n.d(t,{k:()=>i});var r=n(4234);function i(e,t,n,i,a,o){let l=n.createCall(r.WS),s=new Map,u=(n,r)=>{let u=s.get(n),d=u??e(n).then(async e=>{let r=l(n,e),s=await o.loadScript(e.lepusCode.root);return i.mtsGlobalThis.processEvalResult&&(s=i.mtsGlobalThis.processEvalResult(s,n)),t(e.styleInfo,n),await r,a.dispatchEvent({type:"__OnDynamicJSSourcePrepared",data:n}),s});return u||s.set(n,d),d.then(e=>{r?.({code:0,data:{url:n,evalResult:e}})}).catch(e=>{console.error("lynx web: lazy bundle load failed:",e),s.delete(n),r?.({code:-1,data:void 0})}),null};return n.registerHandler(r.nk,e=>new Promise(t=>{u(e,n=>{t({code:n.code,detail:{schema:e}})})})),u}},938:function(e,t,n){n.d(t,{A:()=>i});var r=n(4234);function i(e,t){e.registerHandler(r.iH,(e,n)=>{t[e](n)})}},9894:function(e,t,n){n.d(t,{m:()=>i});var r=n(4234);function i(e,t){e.registerHandler(r.Fw,e=>t[e]?.content)}},7637:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{prepareMainThreadAPIs:()=>i.m});var i=n(4962),a=n(3267),o=e([i,a]);[i,a]=o.then?(await o)():o,r()}catch(e){r(e)}})},4962:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{m:()=>p});var i=n(4234),a=n(938),o=n(9894),l=n(3267),s=n(1883),u=n(3293),d=n(7776),c=e([u,l]);function p(e,t,n,r,c,p,f,m,_,b,g,y){let h=e.createCall(i.F6),v=e.createCall(i.a$),w=e.createCall(i.JW),A=e.createCall(i.Ke),x=e.createCall(i.pd),S=e.createCall(i.mB),C=e.createCall(i.Ve);async function E(e,t){let n=(await r).globalWindow,i=n.processData?n.processData(e,t?.processorName):e;return n.updatePage?.(i,t),C(i,t)}return p("lepus_execute_start"),{startMainThread:async function(C,E){let I=!0,{globalProps:T,template:k,browserConfig:P,nativeModulesMap:j,napiModulesMap:R,tagMap:O,initI18nResources:G}=C,{styleInfo:$,pageConfig:N,customSections:D,cardType:H}=k,q=await r;p("decode_start");let M=new i.tf({rpc:e,receiveEventEndpoint:i.Is,sendEventEndpoint:i.jK}),L=b(G),{updateCssOGStyle:W,updateLazyComponentStyle:U}=(0,u.c6)($,N,t,n,E),z={mtsGlobalThis:void 0},B=(0,d.k)(g,U,e,z,M,q),J=(0,l.D)({lynxTemplate:k,mtsRealm:q,jsContext:M,tagMap:O,browserConfig:P,globalProps:T,pageConfig:N,rootDom:t,ssrHydrateInfo:E,ssrHooks:y,document:n,callbacks:{updateCssOGStyle:W,mainChunkReady:()=>{p("data_processor_start");let n=C.initData;!0!==N.enableJSDataProcessor&&J.processData&&(n=J.processData(C.initData)),p("data_processor_end"),(0,a.A)(e,J),(0,o.m)(e,D);let{switchExposureService:r}=(0,s.b)(t,x);if(e.registerHandler(i.eZ,r),v({initData:n,globalProps:T,template:k,cardType:H??"react",customSections:Object.fromEntries(Object.entries(D).filter(([,e])=>"lazy"!==e.type).map(([e,t])=>[e,t.content])),nativeModulesMap:j,napiModulesMap:R}),E){for(let e of E.events){let t=e[0],n=E.lynxUniqueIdToElement[t]?.deref();n&&J.__AddEvent(n,e[1],e[2],e[3])}J.ssrHydrate?.(E.ssrEncodeData)}else J.renderPage(n),J.__FlushElementTree(void 0,{})},flushElementTree:async(e,t,n)=>{let r=e?.pipelineOptions?.pipelineID;p("dispatch_start",r),I&&(I=!1,M.dispatchEvent({type:"__OnNativeAppReady",data:void 0})),p("layout_start",r),p("ui_operation_flush_start",r),await c(n),p("ui_operation_flush_end",r),p("layout_end",r),p("dispatch_end",r),f(),requestAnimationFrame(()=>{h(t,r)})},_ReportError:m,__OnLifecycleEvent:e=>{M.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>p(t,e),publishEvent:w,publicComponentEvent:A,_I18nResourceTranslation:e=>{let t=L.data?.find(t=>(0,i.HO)(t.options)===(0,i.HO)(e));return(S(t?.resource),t)?t.resource:_(e)},__QueryComponent:B}});z.mtsGlobalThis=J,p("decode_end"),await q.loadScript(k.lepusCode.root),M.__start()},handleUpdatedData:E}}[u,l]=c.then?(await c)():c,r()}catch(e){r(e)}})},1546:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{$G:()=>W,$r:()=>N,A7:()=>G,D1:()=>D,Fl:()=>A,GE:()=>S,Kz:()=>w,NV:()=>x,Nu:()=>_,R5:()=>H,Tj:()=>T,Tq:()=>$,Ud:()=>v,Xk:()=>y,ZW:()=>z,bw:()=>O,c2:()=>L,cb:()=>k,cw:()=>b,d6:()=>f,gA:()=>M,kB:()=>q,l9:()=>R,li:()=>I,pe:()=>E,pi:()=>m,pn:()=>d,uY:()=>U,vH:()=>c,vh:()=>u,wr:()=>P,yE:()=>h,yj:()=>p,z3:()=>g,zP:()=>C,zm:()=>j});var i=n(4234),a=n(6411),o=n(5529),l=n(5591),s=e([o]);o=(s.then?(await s)():s)[0];let u=(e,t)=>e.appendChild(t),d=(e,t)=>e===t,c=e=>e.firstElementChild,p=e=>e.children?[...e.children]:null,f=e=>e.parentElement,m=(e,t,n)=>e.insertBefore(t,n),_=e=>e.lastElementChild,b=e=>e.nextElementSibling,g=(e,t)=>e.removeChild(t),y=(e,t)=>t.replaceWith(e),h=(e,t,n)=>{if(t=Array.isArray(t)?t:[t],!n||Array.isArray(n)&&n?.length===0)e.append(...t);else{n=Array.isArray(n)?n:[n];for(let t=1;t<n.length;t++)g(e,n[t]);n[0].replaceWith(...t)}},v=(e,t,n)=>{let r=e.getAttribute(i.tl),a=r?JSON.parse(decodeURIComponent(r)):{};a[t]=n,e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(a)))},w=(e,t,n)=>{let r=A(e);r[t]=n,e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(r))),n?e.setAttribute("data-"+t,n.toString()):e.removeAttribute("data-"+t)},A=e=>{let t=e.getAttribute(i.C6);return t?JSON.parse(decodeURIComponent(t)):{}},x=(e,t)=>A(e)[t],S=e=>Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]).filter(([,e])=>e)),C=e=>e.getAttribute(i.pP),E=e=>{let t=e.getAttribute(i.tl);return t?JSON.parse(decodeURIComponent(t)):{}},I=(e,t)=>e.getAttribute(t),T=e=>e&&e.getAttribute?Number(e.getAttribute(i.SP)):-1,k=e=>e.getAttribute("id"),P=(e,t)=>t?e.setAttribute("id",t):e.removeAttribute("id"),j=e=>e.getAttribute(i.Gq),R=(e,t)=>{e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(t)))},O=(e,t)=>{for(let[n,r]of(e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(t))),Object.entries(t)))e.setAttribute("data-"+n,r.toString())},G=(e,t)=>e.setAttribute(i.pP,t),$=e=>(e.getAttribute("class")??"").split(" ").filter(e=>e),N=(e,t)=>{void 0!==t.componentID&&G(e,t.componentID),void 0!==t.cssID&&e.setAttribute(i.js,t.cssID+""),void 0!==t.name&&e.setAttribute("name",t.name)},D=(e,t,n)=>{for(let r of e)r.setAttribute(i.js,t+""),n&&r.setAttribute(i.Pb,n)},H=(e,t)=>{t?e.setAttribute("class",t):e.removeAttribute("class")},q=(e,t,n)=>{let r;if("number"==typeof t){let e=(0,a.BH)(t);r=e.dashName,e.isX&&console.error(`[lynx-web] css property: ${r} is not supported.`)}else r=t;let i="number"==typeof n?n.toString():n;if(i){let{transformedStyle:t}=(0,o.x)([[r,i]]);for(let[n,r]of t)e.style.setProperty(n,r)}else e.style.removeProperty(r)},M=(e,t)=>{let n=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",n)},L=(e,t)=>{if(t)if("string"==typeof t)e.setAttribute("style",(0,o.Q)(t));else{let{transformedStyle:n}=(0,o.x)(Object.entries(t).map(([e,t])=>[(0,l.A)(e),t?.toString?.()??""])),r=n.map(([e,t])=>`${e}:${t};`).join("");e.setAttribute("style",r)}},W=e=>{if(null===e.getAttribute(i.y))return{};let t=T(e),n={};for(let r of e.querySelectorAll(`[${i.SP}="${t}"] [${i.oZ}]:not([${i.SP}="${t}"] [${i.y}] [${i.oZ}])`)){let e=r.getAttribute(i.oZ);e&&(n[e]=r)}return n},U=e=>{e.setAttribute(i.y,"")},z=(e,t)=>{e.setAttribute(i.oZ,t)};r()}catch(e){r(e)}})},6411:function(e,t,n){n.d(t,{BH:()=>s});let r={},i=1,a={},o={},l=e=>{let t=i++,n=e.startsWith("-x-");a[t]={name:function(e){if(r[e])return r[e];let t=(e+"").replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()});return r[e]=t,t}(e),dashName:e,isX:n},o[e]=t};function s(e){return a[e]}l("top"),l("left"),l("right"),l("bottom"),l("position"),l("box-sizing"),l("background-color"),l("border-left-color"),l("border-right-color"),l("border-top-color"),l("border-bottom-color"),l("border-radius"),l("border-top-left-radius"),l("border-bottom-left-radius"),l("border-top-right-radius"),l("border-bottom-right-radius"),l("border-width"),l("border-left-width"),l("border-right-width"),l("border-top-width"),l("border-bottom-width"),l("color"),l("opacity"),l("display"),l("overflow"),l("height"),l("width"),l("max-width"),l("min-width"),l("max-height"),l("min-height"),l("padding"),l("padding-left"),l("padding-right"),l("padding-top"),l("padding-bottom"),l("margin"),l("margin-left"),l("margin-right"),l("margin-top"),l("margin-bottom"),l("white-space"),l("letter-spacing"),l("text-align"),l("line-height"),l("text-overflow"),l("font-size"),l("font-weight"),l("flex"),l("flex-grow"),l("flex-shrink"),l("flex-basis"),l("flex-direction"),l("flex-wrap"),l("align-items"),l("align-self"),l("align-content"),l("justify-content"),l("background"),l("border-color"),l("font-family"),l("font-style"),l("transform"),l("animation"),l("animation-name"),l("animation-duration"),l("animation-timing-function"),l("animation-delay"),l("animation-iteration-count"),l("animation-direction"),l("animation-fill-mode"),l("animation-play-state"),l("line-spacing"),l("border-style"),l("order"),l("box-shadow"),l("transform-origin"),l("linear-orientation"),l("linear-weight-sum"),l("linear-weight"),l("linear-gravity"),l("linear-layout-gravity"),l("layout-animation-create-duration"),l("layout-animation-create-timing-function"),l("layout-animation-create-delay"),l("layout-animation-create-property"),l("layout-animation-delete-duration"),l("layout-animation-delete-timing-function"),l("layout-animation-delete-delay"),l("layout-animation-delete-property"),l("layout-animation-update-duration"),l("layout-animation-update-timing-function"),l("layout-animation-update-delay"),l("adapt-font-size"),l("aspect-ratio"),l("text-decoration"),l("text-shadow"),l("background-image"),l("background-position"),l("background-origin"),l("background-repeat"),l("background-size"),l("border"),l("visibility"),l("border-right"),l("border-left"),l("border-top"),l("border-bottom"),l("transition"),l("transition-property"),l("transition-duration"),l("transition-delay"),l("transition-timing-function"),l("content"),l("border-left-style"),l("border-right-style"),l("border-top-style"),l("border-bottom-style"),l("implicit-animation"),l("overflow-x"),l("overflow-y"),l("word-break"),l("background-clip"),l("outline"),l("outline-color"),l("outline-style"),l("outline-width"),l("vertical-align"),l("caret-color"),l("direction"),l("relative-id"),l("relative-align-top"),l("relative-align-right"),l("relative-align-bottom"),l("relative-align-left"),l("relative-top-of"),l("relative-right-of"),l("relative-bottom-of"),l("relative-left-of"),l("relative-layout-once"),l("relative-center"),l("enter-transition-name"),l("exit-transition-name"),l("pause-transition-name"),l("resume-transition-name"),l("flex-flow"),l("z-index"),l("text-decoration-color"),l("linear-cross-gravity"),l("margin-inline-start"),l("margin-inline-end"),l("padding-inline-start"),l("padding-inline-end"),l("border-inline-start-color"),l("border-inline-end-color"),l("border-inline-start-width"),l("border-inline-end-width"),l("border-inline-start-style"),l("border-inline-end-style"),l("border-start-start-radius"),l("border-end-start-radius"),l("border-start-end-radius"),l("border-end-end-radius"),l("relative-align-inline-start"),l("relative-align-inline-end"),l("relative-inline-start-of"),l("relative-inline-end-of"),l("inset-inline-start"),l("inset-inline-end"),l("mask-image"),l("grid-template-columns"),l("grid-template-rows"),l("grid-auto-columns"),l("grid-auto-rows"),l("grid-column-span"),l("grid-row-span"),l("grid-column-start"),l("grid-column-end"),l("grid-row-start"),l("grid-row-end"),l("grid-column-gap"),l("grid-row-gap"),l("justify-items"),l("justify-self"),l("grid-auto-flow"),l("filter"),l("list-main-axis-gap"),l("list-cross-axis-gap"),l("linear-direction"),l("perspective"),l("cursor"),l("text-indent"),l("clip-path"),l("text-stroke"),l("text-stroke-width"),l("text-stroke-color"),l("-x-auto-font-size"),l("-x-auto-font-size-preset-sizes"),l("mask"),l("mask-repeat"),l("mask-position"),l("mask-clip"),l("mask-origin"),l("mask-size"),l("gap"),l("column-gap"),l("row-gap"),l("image-rendering"),l("hyphens"),l("-x-app-region"),l("-x-animation-color-interpolation"),l("-x-handle-color"),l("-x-handle-size"),l("offset-path"),l("offset-distance")},5529:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{Q:()=>i.Q,x:()=>i.x});var i=n(2965),a=e([i]);i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},3063:function(e,t,n){n.d(t,{X:()=>a});var r=n(4234);function i(e){let t={};for(let n in e){let r=e[n];("boolean"==typeof r||"number"==typeof r||"string"==typeof r||null===r)&&(t[n]=r)}return t}function a(e,t){let n=e.target,a=e.currentTarget.getAttribute?e.currentTarget:void 0,o=e.type,l={},s=e.isTrusted,u={},d=e.detail??{};if(o.match(/^transition/))Object.assign(l,{animation_type:"keyframe-animation",animation_name:e.propertyName,new_animator:!0});else if(o.match(/animation/))Object.assign(l,{animation_type:"keyframe-animation",animation_name:e.animationName,new_animator:!0});else if(o.startsWith("touch")){let t=[...e.touches],n=[...e.targetTouches],r=[...e.changedTouches];Object.assign(u,{touches:s?t.map(i):t,targetTouches:s?n.map(i):n,changedTouches:s?r.map(i):r})}else o.startsWith("mouse")?Object.assign(u,{button:e.button,buttons:e.buttons,x:e.x,y:e.y,pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY}):"click"===o&&(d={x:e.x,y:e.y});let c=a?.getAttribute(r.C6),p=c?JSON.parse(decodeURIComponent(c)):{},f=n.getAttribute(r.C6),m=f?JSON.parse(decodeURIComponent(f)):{};return{type:t,timestamp:e.timeStamp,target:{id:n.getAttribute("id"),dataset:m,uniqueId:Number(n.getAttribute(r.SP))},currentTarget:a?{id:a.getAttribute("id"),dataset:p,uniqueId:Number(a.getAttribute(r.SP))}:null,detail:d,params:l,...u}}},1883:function(e,t,n){n.d(t,{b:()=>a});var r=n(4234),i=n(3063);function a(e,t){let n=!0,a=[],o=[],l=null,s=new Map;function u(e){let n=(0,i.X)(e,e.type);n.detail["unique-id"]=parseFloat(e.target.getAttribute(r.SP));let u=n.detail.exposureID;"exposure"===e.type?(a.push(n),s.set(u,n)):(o.push(n),s.delete(u)),l||(l=setTimeout(()=>{if(a.length>0||o.length>0){let e=a,n=o;a=[],o=[],t({exposures:e,disExposures:n})}l=null},50))}return e.addEventListener("exposure",u,{passive:!0}),e.addEventListener("disexposure",u,{passive:!0}),{switchExposureService:function(e,r){e&&!n?t({exposures:[...s.values()],disExposures:[]}):!e&&n&&r&&t({exposures:[],disExposures:[...s.values()]}),n=e}}}},4320:function(e,t,n){n.d(t,{y:()=>r});function r(e,t,n){let r=e.split(" ").filter(e=>e),i=[],a=t[n??"0"];if(a)for(let e of r){let t=a[e];t&&i.push(...t)}else console.warn(`[lynx-web] cannot find styleinfo for cssid ${n}`);return i.map(([e,t])=>`${e}:${t};`).join("")}},3293:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{c6:()=>p});var i=n(4234),a=n(2965),o=n(4320),l=e([a]);function s(e){let t=function(e){let t=[],n=new Map;for(let[t,r]of Object.entries(e))for(let e of(n.has(t)||n.set(t,0),r.imports??[])){let t=n.get(e)??0;n.set(e,t+1)}for(let[e,r]of n.entries())0===r&&t.push(e);let r=[];for(;t.length>0;){let i=t.shift();r.push(i);let a=e[i]?.imports;if(a)for(let e of a){let r=n.get(e)-1;n.set(e,r),0===r&&t.push(e)}}return r}(e),n=function(e,t){let n=new Map;for(let r of t){let t=e[r]?.imports;if(t){let e=n.get(r)??new Set([r]);for(let i of t){let t=n.get(i)??new Set([i]);t.add(r),n.set(i,e.union(t))}n.set(r,e)}}return n}(e,t);return t.reverse(),t.map(t=>{let r=e[t];return r?{content:r.content,rules:r.rules,importBy:Array.from(n.get(t)??[t])}:{content:[],rules:[],importBy:[t]}})}function u(e){for(let t of e)for(let e of t.rules){let{sel:n,decl:r}=e,{transformedStyle:i,childStyle:o}=(0,a.x)(r);e.decl=i,o.length>0&&t.rules.push({sel:n.map(e=>e.toSpliced(-2,1,[">"],["*"],[],[],[])),decl:o})}}function d(e,t,n){let r=[];for(let a of e){let e=a.rules.map(e=>{let{sel:r,decl:o}=e,l=a.importBy.map(e=>{let a=function(e){let r;return r=t.enableRemoveCSSScope?`[${i.Gq}]`:`[${i.js}="${e}"]`,r=n?`${r}[${i.Pb}=${JSON.stringify(n)}]`:`${r}:not([${i.Pb}])`}(e);return r.map(e=>e.toSpliced(-4,0,[a]).flat().join("")).join(",")}).join(","),s=o.map(([e,t])=>`${e}:${t};`).join("");return`${l}{${s}}`}).join("");r.push(...a.content,e)}return r.join("\n")}function c(e){let t={};for(let n of e)n.rules=n.rules.filter(e=>(e.sel=e.sel.filter(r=>{let[i,a,o,l]=r;if(1===i.length&&"."===i[0][0]&&0===a.length&&0===o.length&&0===l.length){let r=i[0].substring(1);for(let i of n.importBy){t[i]||(t[i]={});let n=t[i][r];n?n.push(...e.decl):t[i][r]=e.decl}return!1}return!0}),e.sel.length>0));return t}function p(e,t,n,r,a){let l,p=a?.lynxUniqueIdToStyleRulesIndex??[],f=s(e);u(f);let m=t.enableCSSSelector?{}:c(f),_={};return a?.cardStyleElement?l=a.cardStyleElement:((l=r.createElement("style")).textContent=d(f,t,void 0),n.appendChild(l)),{updateCssOGStyle:(e,t,n,r)=>{let a=l.sheet,s=r&&_[r]?_[r]:m,u=(0,o.y)(t,s,n);if(void 0!==p[e])a.cssRules[p[e]].style.cssText=u;else{let t=a.insertRule(`[${i.SP}="${e}"]{${u}}`,a.cssRules.length);p[e]=t}},updateLazyComponentStyle:(e,n)=>{let r=s(e);u(r),t.enableCSSSelector||(_[n]=c(r));let i=d(r,t,n);l.textContent+=i}}}a=(l.then?(await l)():l)[0],r()}catch(e){r(e)}})},2965:function(e,t,n){n.a(e,async function(e,r){try{n.d(t,{Q:()=>o,x:()=>l});var i=n(4433),a=e([i]);function o(e){return i.v.transform_raw_u16_inline_style_ptr(e)??e}function l(e){let t=[],n=[];for(let[r,a]of e){let e=i.v.transform_raw_u16_inline_style_ptr_parsed(r,a);if(e){let[r,i]=e;n=n.concat(r),i&&(t=t.concat(i))}else n.push([r,a])}return{childStyle:t,transformedStyle:n}}i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},4433:function(e,t,n){n.a(e,async function(e,r){try{let e;n.d(t,{v:()=>e});var i=n(480);async function a(){e=await (0,i.rO)()?await Promise.resolve().then(n.bind(n,5512)):await n.e("8").then(n.bind(n,9850))}await a(),r()}catch(e){r(e)}},1)},5512:function(e,t,n){n.a(e,async function(e,r){try{n.r(t),n.d(t,{__wbg___wbindgen_throw_b855445ff6a94295:()=>i.H4,__wbg_new_e17d9f43105b08be:()=>i.f,__wbg_push_df81a39d04db858c:()=>i.RS,__wbg_set_wasm:()=>i.lI,__wbindgen_cast_2241b6af4c4b2941:()=>i.pY,__wbindgen_init_externref_table:()=>i.bL,transform_raw_u16_inline_style_ptr:()=>i.aC,transform_raw_u16_inline_style_ptr_parsed:()=>i.iG});var i=n(3095),a=e([i]);i=(a.then?(await a)():a)[0],r()}catch(e){r(e)}})},480:function(e,t,n){n.d(t,{rO:()=>r});let r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11]))},1009:function(e,t,n){var r=n(3209);e.exports=n.v(t,e.id,"7f8d048731bd644f",{"./standard_bg.js":{__wbg_new_e17d9f43105b08be:r.f,__wbg_push_df81a39d04db858c:r.RS,__wbg___wbindgen_throw_b855445ff6a94295:r.H4,__wbindgen_init_externref_table:r.bL,__wbindgen_cast_2241b6af4c4b2941:r.pY}})}}]);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{"use strict";var __webpack_modules__={
|
|
1
|
+
(()=>{"use strict";var __webpack_modules__={4234:function(e,t,r){var i,n,s,a;r.d(t,{Ke:()=>S,g:()=>q,mB:()=>ee,SP:()=>"l-uid",er:()=>h,Gq:()=>u,pT:()=>G,im:()=>b,js:()=>o,HO:()=>en,gj:()=>P,jK:()=>W,tl:()=>d,Pb:()=>c,O4:()=>n,c1:()=>f,F6:()=>H,PC:()=>U,gI:()=>ea,C6:()=>"l-dset",pP:()=>l,Gm:()=>m,pd:()=>E,hO:()=>I,eZ:()=>T,JW:()=>A,E_:()=>O,M$:()=>ec,gx:()=>Q,tf:()=>eh,iH:()=>N,Fw:()=>B,JA:()=>p,qz:()=>eu,Sy:()=>z,oZ:()=>"l-part",Hf:()=>C,o2:()=>L,$4:()=>g,hh:()=>R,ZU:()=>F,vr:()=>J,Ve:()=>w,Is:()=>V,zk:()=>D,I7:()=>y,vQ:()=>v,yn:()=>Y,k3:()=>X,vn:()=>K,WS:()=>er,BE:()=>Z,y:()=>_,a$:()=>k,PM:()=>$,VK:()=>j,nk:()=>et,hv:()=>es,xY:()=>eo,Zu:()=>M,o3:()=>ei});let o="l-css-id",l="l-comp-id",h="l-p-comp-uid",c="l-e-name",u="lynx-tag",d="l-comp-cfg",p="l-disposed",_="l-template",m="lynx-default-display-linear",y="__lynx_timing_flag",f={platform:"web",lynxSdkVersion:"3.0"},g={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},v={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},b={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function x(e,t,r=!0,i=!1,n){return{name:e,isSync:t,hasReturn:r,hasReturnTransfer:i,bufferSize:n}}let E=x("__postExposure",!1,!1),S=x("publicComponentEvent",!1,!1),A=x("publishEvent",!1,!1),M=x("postOffscreenEventEndpoint",!1,!1),T=x("switchExposureServiceEndpoint",!1,!1),C=x("mainThreadStart",!1,!1),w=x("updateData",!1,!0),I=x("sendGlobalEventEndpoint",!1,!1),R=x("dispose",!1,!0),k=x("start",!1,!0),L=x("reportError",!1,!1),O=x("flushElementTree",!1,!0),N=x("callLepusMethod",!1,!0),P=x("multiThreadExposureChangedEndpoint",!1,!1),D=x("__invokeUIMethod",!1,!0),U=x("__setNativeProps",!1,!0),F=x("__getPathInfo",!1,!0),q=x("nativeModulesCall",!1,!0),j=x("napiModulesCall",!1,!0,!0),B=x("getCustomSections",!1,!0),$=x("markTiming",!1,!1),H=x("postTimingFlags",!1,!1),G=x("__triggerComponentEvent",!1,!1),J=x("__selectComponent",!1,!0),Q=x("dispatchLynxViewEvent",!1,!1),z=x("dispatchNapiModule",!1,!1),W=x("dispatchCoreContextOnBackground",!1,!1),V=x("dispatchJSContextOnMainThread",!1,!1),K=x("__triggerElementMethod",!1,!1),Y=x("updateGlobalProps",!1,!1),X=x("updateI18nResources",!1,!1),Z=x("updateI18nResource",!1,!1),ee=x("dispatchI18nResource",!1,!1),et=x("queryComponent",!1,!0),er=x("updateBTSTemplateCacheEndpoint",!1,!0),ei=x("loadTemplateMultiThread",!1,!0);!function(e){e[e.ID_SELECTOR=0]="ID_SELECTOR",e[e.REF_ID=1]="REF_ID",e[e.UNIQUE_ID=2]="UNIQUE_ID"}(i||(i={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.UNKNOWN=1]="UNKNOWN",e[e.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",e[e.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",e[e.PARAM_INVALID=4]="PARAM_INVALID",e[e.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",e[e.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE"}(n||(n={})),function(e){e[e.UPDATE=0]="UPDATE",e[e.RESET=1]="RESET"}(s||(s={})),function(e){e[e.START=0]="START",e[e.PLAY=1]="PLAY",e[e.PAUSE=2]="PAUSE",e[e.CANCEL=3]="CANCEL",e[e.FINISH=4]="FINISH"}(a||(a={}));let en=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,es="i18nResourceMissed";class ea{data;constructor(e){this.data=e}setData(e){this.data=e}}class eo{data;constructor(e){this.data=e}setData(e){this.data=e}}let el=3;class eh extends EventTarget{_config;constructor(e){super(),this._config=e}postMessage(...e){console.error("[lynx-web] postMessage not implemented, args:",...e)}dispatchEvent(e){let{rpc:t,sendEventEndpoint:r}=this._config;return t.invoke(r,[e]),el}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}let ec=({timingKey:e,pipelineId:t,timeStamp:r,markTiming:i,cacheMarkTimings:n})=>{n.records.push({timingKey:e,pipelineId:t,timeStamp:r??performance.now()+performance.timeOrigin}),n.timeout||(n.timeout=setTimeout(()=>{i(n.records),n.records=[],n.timeout=null},500))},eu=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)}},9679:function(e,t,r){r.d(t,{C:()=>i});class i{port;name;incId=0;#e={};#t=new TextEncoder;#r=new TextDecoder;#i=new Map;constructor(e,t){this.port=e,this.name=t,e.onmessage=e=>this.#n(e.data)}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#n=async e=>{let t=this.#i.get(e.name);if(t){let r=e.sync?new Int32Array(e.lock):void 0,n=!e.sync&&e.retId?i.createRetEndpoint(e.retId):void 0;try{let i=await t(...e.data),s,a=[];if(e.sync?s=i:e.hasTransfer?{data:s,transfer:a}=i||{}:s=i,e.sync){if(e.buf){let t=JSON.stringify(s),r=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),n=new Uint8Array(e.buf.byteLength-4),{written:a}=this.#t.encodeInto(t,n);r[0]=a,i.set(n,0)}Atomics.store(r,0,1),Atomics.notify(r,0)}else e.retId&&this.invoke(n,[s,!1],a||[])}catch(t){console.error(t),e.sync?(Atomics.store(r,0,2),Atomics.notify(r,0),r[1]=2):this.invoke(n,[void 0,!0])}}else{let t=this.#e[e.name];t?t.push(e):this.#e[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#i.set(e.name,t);let r=this.#e[e.name];if(r?.length)for(let t of(this.#e[e.name]=void 0,r))this.#n(t)}registerHandlerRef(e,t,r){this.registerHandler(e,(...e)=>t[r]?.call(t,...e))}registerHandlerLazy(e,t,r){if(t[r])this.registerHandlerRef(e,t,r);else{let i,n=this;Object.defineProperty(t,r,{get:()=>i,set(s){i=s,s&&n.registerHandlerRef(e,t,r)}})}}removeHandler(e){this.#i.delete(e.name)}invoke(e,t,r=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,n=new SharedArrayBuffer(4),s=new Int32Array(n);s[0]=0;let a={name:e.name,data:t,sync:!0,lock:n,buf:i};if(this.port.postMessage(a,{transfer:r}),Atomics.wait(s,0,0),2===s[0])throw null;if(!i)return;{let e=new Uint32Array(i,0,4)[0],t=new Uint8Array(i,4,e),r=new Uint8Array(e);return r.set(t,0),r?JSON.parse(this.#r.decode(r)):void 0}}if(e.hasReturn){let{promise:n,resolve:s,reject:a}=Promise.withResolvers(),o=i.createRetEndpoint(this.nextRetId);this.registerHandler(o,(e,t)=>{t&&a(),s(e)});let l={name:e.name,data:t,sync:!1,retId:o?.name,hasTransfer:e.hasReturnTransfer};return this.port.postMessage(l,{transfer:r}),n}{let i={name:e.name,data:t,sync:!1};this.port.postMessage(i,{transfer:r})}}createCallbackify(e,t){let r=this.createCall(e);return(...e)=>{let i=e.at(t);e.splice(t,1),r(...e).then(i)}}}},1998:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{callDestroyLifetimeFun:()=>Fe,destroyCard:()=>ke,loadCard:()=>we,loadDynamicComponent:()=>Be,nativeGlobal:()=>l});var _="__Card__",E="app-service.js",ge="LynxGetSourceMapReleaseError",oe={filename:"lynx_core",slot:"df0498fd4b09f634e6135a72ccd7ea940966efe8",release:"unknown_version"},Ne=function(){return this||(0,eval)("this")}(),d=Ne;function w(e){return nativeConsole}var Oe=function(){return this||(0,eval)("this")}(),Ve=w(`groupId:${Oe.groupId||"-1"}`),ie=nativeConsole;function ye(e){let t=typeof e;return"object"!==t?t:Array.isArray(e)?"array":null==e?"null":e instanceof Date?"date":e instanceof RegExp?"regExp":"object"}function R(e){return"string"==typeof e}function k(e){return"object"===ye(e)}function se(e){return"function"===ye(e)}function F(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ce(e,Error)}}function Ce(e,t){try{return e instanceof t}catch{return!1}}var m=ie,B=class{constructor(){this.observersFunc=[]}registerObserver(e){if(this.observersFunc.includes(e))return m.log("Subject: Observer has been attached already.");this.observersFunc.push(e)}removeObserver(e){let t=this.observersFunc.indexOf(e);if(-1===t)return m.log("Subject: Nonexistent observer.");this.observersFunc.splice(t,1)}notifyDataChange(e){this.observersFunc.forEach(t=>{if("function"==typeof t)try{t(e)}catch(e){m.log("SharedData change and notifyDataChange error info:"+e)}})}};d.multiApps={},d.currentAppId="",d.globComponentRegistPath="",d.sharedData={},d.globDynamicComponentEntry=_,d.shareDataSubject=new B,d.TaroLynx={},d.bundleSupportLoadScript=!0;var{loadScript:at}=d,l=d,q=class extends Error{constructor(e,t){super(e),t&&(this.stack=t)}},j=class extends q{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ae=class extends q{constructor(){super(...arguments),this.kind="USER_ERROR"}},g=class extends ae{constructor(){super(...arguments),this.name="USER_RUNTIME_ERROR"}},y=class extends j{constructor(){super(...arguments),this.name="INTERNAL_RUNTIME_ERROR"}},G=class extends j{constructor(){super(...arguments),this.name="INVOKE_ERROR"}},Ie=/\d+/,v=class r{constructor(e){this.major=0,this.minor=0,this.revision=0,this.build=0,e=String(e),[this.major=0,this.minor=0,this.revision=0,this.build=0]=e.split(".").map(e=>{let t=Ie.exec(e);return t&&t.length>0?+t[0]:0})}gt(e){return"string"==typeof e&&(e=new r(e)),this.major>e.major||!(this.major<e.major)&&(this.minor>e.minor||!(this.minor<e.minor)&&(this.revision>e.revision||!(this.revision<e.revision)&&(this.build>e.build||(this.build<e.build,!1))))}eq(e){return"string"==typeof e&&(e=new r(e)),this.major===e.major&&this.minor===e.minor&&this.revision===e.revision&&this.build===e.build}lt(e){return!this.eq(e)&&!this.gt(e)}gte(e){return this.eq(e)||this.gt(e)}lte(e){return this.eq(e)||this.lt(e)}},_t=new v("2.4"),mt=new v("2.7"),ht=new v("2.9"),ft=new v("2.12"),Et=new v("2.14");function h(e,t,r){let{originError:i,errorCode:n,errorLevel:s,runType:a=oe}=r??{};m.error("The following error occurred in the JSRuntime:"),m.error(`${e?.message}
|
|
2
2
|
${e?.stack}`),e.cause=k(e.cause)?JSON.stringify(e.cause):e.cause;try{t.reportException(e,{...a,buildVersion:"unknown_version",versionCode:"unknown_version",errorCode:n,errorLevel:s})}catch(e){m.error(`reportError err:
|
|
3
|
-
`,e)}}var I=class{constructor(e,t){this.getApp=e,this.getNativeApp=t,this.setSourceMapRelease=e=>{F(e)&&e.name===u.kGetSourceMapReleaseErrorName&&R(e.message)&&R(e.stack)?this.getNativeApp().__SetSourceMapRelease({name:e.name,message:e.message,stack:e.stack}):JSON.stringify(e)},this.getSourceMapRelease=e=>{let t=this.getNativeApp().__GetSourceMapRelease(e);return t||(t=this.getNativeApp().__GetSourceMapRelease(u.kDefaultSourceMapURL)),t},this.getApp=e,this.getNativeApp=t}rebind(e){this.getApp=e}},V=class r{static{this.count=0}constructor(e){this.effect=e,this.id="__lynx-inner-js-animation-"+r.count++}cancel(){this.effect.target.cancelAnimate(this)}pause(){this.effect.target.pauseAnimate(this)}play(){this.effect.target.playAnimate(this)}},$=class{constructor(e,t,r){this.target=e,this.keyframes=t,this.options=r}},Q=class{constructor(e,t){this.keyframes=e,this.options=t}},Y=class{constructor(e,t,r){this.id=e,this.effect=new Q(t,r)}},L=class{constructor(e,t,r){this._root=e,this._idSelector="#"+t,this._lynx=r,this._element=void 0}ensureElement(){this._element||(this._element=this._lynx.createElement(this._root,this._idSelector))}animate(e,t){this.ensureElement();let r=new V(new $(this,e,t));return this._element.animate(0,r.id,e,t),r}playAnimate(e){this._element.animate(1,e.id,void 0,void 0)}pauseAnimate(e){this._element.animate(2,e.id,void 0,void 0)}cancelAnimate(e){this._element.animate(3,e.id,void 0,void 0)}finishAnimate(e){this._element.animate(4,e.id,void 0,void 0)}setProperty(e,t){if(this.ensureElement(),"string"==typeof e&&"string"==typeof t)this._element.setProperty({[e]:t});else if("object"==typeof e)this._element.setProperty(e);else throw Error(`setProperty's param must be string or object. While current type is ${typeof e} and ${typeof t}.`)}},ve=L,A=class r{constructor(e,t,r){this._component=e,this._taskQueue=t,this._native_proxy=r,this._fire_immediately=!1,this._root_unique_id=void 0}static fromQuery(e,t){return new r(t??e._component,e._taskQueue.slice(),e._native_proxy)}static newEmptyQuery(e,t){return new r(t??"",[],e)}commitTask(e){let t=r.fromQuery(this,this._component);return(t._taskQueue.push(e),this._fire_immediately)?void t.exec():t}in(e){return e.createSelectorQuery(this)}select(e){return new S(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectAll(e){return new S(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!1})}selectReactRef(e){if(this._taskQueue.length){let e="selectReactRef() should be called before any other selector query methods";nativeConsole.warn(e);let t=Error(e);h(new G(e,t.stack),this._native_proxy.nativeApp);return}return this._fire_immediately=!0,new S(this,{type:1,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectRoot(){return this.select("")}selectUniqueID(e){return new S(this,{type:2,identifier:e.toString(),component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}exec(){for(let e=0;e<this._taskQueue.length;++e)this._taskQueue[e](this._native_proxy)}setRoot(e){return this._root_unique_id=Number(e),this}},S=class{static{this.nodePool={}}constructor(e,t){this._nodeSelectToken=t,this._selectorQuery=e}invoke(e){let t=t=>{let r=t=>{0===t.code?e.success&&e.success(t.data):e.fail&&e.fail(t)};this._nodeSelectToken.first_only?t.nativeApp.invokeUIMethod(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e.method,e.params??{},r,this._nodeSelectToken.root_unique_id):r({code:5,data:"selectAll not supported for invoke method"})};return this._selectorQuery.commitTask(t)}path(e){let t=t=>{let r=t=>{e&&e(t.data,t.status)};t.nativeApp.getPathInfo(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,r,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}fields(e,t){let r=r=>{let i=i=>{if(e.query){let t=t=>{t.query=A.newEmptyQuery(r),t.query.setRoot(t.unique_id.toString()),e.unique_id||delete t.unique_id};if(this._nodeSelectToken.first_only){let e=i.data;e&&t(e)}else for(let e of i.data)t(e)}t&&t(i.data,i.status)},n=[];for(let t in e){if("query"==t&&!0==e[t]&&!e.unique_id){n.push("unique_id");continue}e[t]&&n.push(t)}r.nativeApp.getFields(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,n,i,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(r)}animate(e){let t=[];Array.isArray(e)?t=e:t.push(e);let r=e=>{t.forEach(t=>{e.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,0,t?.id,t?.effect?.keyframes,t?.effect?.options)})};return this._selectorQuery.commitTask(r)}animationOperate(e,t){let r=[];Array.isArray(t)?r=t:r.push(t);let i=t=>{r.forEach(r=>{t.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e,r,null,null)})};return this._selectorQuery.commitTask(i)}playAnimation(e){return this.animationOperate(1,e)}pauseAnimation(e){return this.animationOperate(2,e)}cancelAnimation(e){return this.animationOperate(3,e)}finishAnimation(e){return this.animationOperate(4,e)}setNativeProps(e){let t=t=>{t.nativeApp.setNativeProps(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,e,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}},b=class r{constructor(e,t,i,n){this.getNativeApp=e,this.getApp=t,this.Promise=i,this.getNativeLynx=n,this.setTimeout=this.getApp().wrapReport(this.getNativeApp().setTimeout,"setTimeout Error"),this.setInterval=this.getApp().wrapReport(this.getNativeApp().setInterval,"setInterval Error"),this.clearInterval=this.getNativeApp().clearInterval,this.clearTimeout=this.getNativeApp().clearTimeout,this.resumeExposure=this.getApp()._apiList.resumeExposure,this.requireModule=(e,t,i)=>{if(this.requireModule.cache[e])return this.requireModule.cache[e];let n=this.getApp().requireModule(e,t,i);return this.requireModule.cache[e]=n,n},this.requireModuleAsync=(e,t)=>{(t??=e=>{e&&this.getApp().handleUserError(e)},this.requireModuleAsync.cache[e])?t(null,this.requireModuleAsync.cache[e]):this.getApp().requireModuleAsync(e,(i,n)=>{i||(this.requireModuleAsync.cache[e]=n),t(i,n)})},this.createElement=(e,t)=>this.getNativeLynx().createElement(e,t),this.getElementById=e=>new ve("",e,this),this.reportError=(e,t)=>{let i;if(F(e))i=e;else{let t;i=Error(t="string"!=typeof e?JSON.stringify(e):e)}let{level:n="error"}=t||{},s;switch(n){case"error":default:s=1;break;case"warning":s=2;break;case"fatal":s=0}this.getApp().handleUserError(i,void 0,s)},this.registerModule=(e,t)=>this.getApp().registerModule(e,t),this.getJSModule=e=>this.getApp().getJSModule(e),this.getTextInfo=this.getApp()._apiList.getTextInfo,this.addFont=(e,t)=>{if(!k(e))throw Error("The first argument must be object type");if(!R(e["font-family"])||!R(e.src))throw Error("The font value must have font-family and src");if(!se(t))throw Error("The second argument must be function type");this.getNativeLynx().addFont(e,t)},this.stopExposure=this.getApp()._apiList.stopExposure,this.setObserverFrameRate=this.getApp()._apiList.setObserverFrameRate,this.performance=this.getApp().performance,this.beforePublishEvent=this.getApp()._aopManager._beforePublishEvent,this.setSessionStorageItem=(e,t)=>{this.dispatchSessionStorageEvent({type:"__SetSessionStorageItem",data:{key:e,value:t}})},this.getSessionStorageItem=(e,t)=>{this.getNativeApp().getSessionStorageItem(e,t)},this.subscribeSessionStorage=(e,t)=>{let i=r.__registerSharedDataCounter++;return this.getNativeApp().subscribeSessionStorage(e,i,t),i},this.unsubscribeSessionStorage=(e,t)=>{this.dispatchSessionStorageEvent({type:"__UnSubscribeSessionStorage",data:{key:e,listenerId:t}})},this.getDevtool=this.getNativeLynx().getDevtool,this.getCoreContext=this.getNativeLynx().getCoreContext,this.getJSContext=this.getNativeLynx().getJSContext,this.getUIContext=this.getNativeLynx().getUIContext,this.getNative=this.getNativeLynx().getNative,this.getEngine=this.getNativeLynx().getEngine,this.getCustomSectionSync=this.getNativeLynx().getCustomSectionSync,this.accessibilityAnnounce=this.getNativeApp().nativeModuleProxy.LynxAccessibilityModule?.accessibilityAnnounce,this.requestResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.requestResourcePrefetch,this.cancelResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.cancelResourcePrefetch,this.setSharedData=(e,t)=>{l.sharedData[e]=t;let i={};i[e]=t,l.shareDataSubject.notifyDataChange(i)},this.getSharedData=e=>l.sharedData[e],this.registerSharedDataObserver=e=>l.shareDataSubject.registerObserver(e),this.removeSharedDataObserver=e=>l.shareDataSubject.removeObserver(e),this.triggerLepusGlobalEvent=(e,t)=>this.getNativeApp().triggerLepusGlobalEvent(e,t),this.reload=(e,t)=>{this.getNativeLynx().reload(e,t)},this.fetchDynamicComponent=(e,t,i,n)=>this.getNativeLynx().fetchDynamicComponent(e,t,i,n),this.QueryComponent=(e,t)=>{let i=()=>{t({code:0,data:{url:e,sync:!0,error_message:"",mode:"cache"},detail:{schema:e,cache:!1,errMsg:""}})};if(this.getApp().loadedDynamicComponentsSet.has(e))return void i();let n=n=>{!0===n.__hasReady?(l.loadDynamicComponent(this.getApp(),e),i()):t(n)};this.getNativeLynx().QueryComponent(e,n)},this.loadDynamicComponent=(e,t,i={})=>new this.Promise((n,s)=>{let a=[],o;(Array.isArray(e)?(a=e,o=t):"string"==typeof t?(a=[e],o=t):(o=e,i=t),this.getApp().loadedDynamicComponentsSet.has(o))?n({code:0,data:{url:o,sync:!1,error_message:"",mode:"normal"},detail:{schema:o,cache:!1,errMsg:""}}):this.getNativeLynx().fetchDynamicComponent(o,i,e=>{e&&0==e.code?n(e):s(e)},a)}),this.fetch=(e,t)=>new this.Promise((i,n)=>{let s=new(this.getApp())._RequestClass(e,t),a=s.signal;if(a.aborted)return n(a.reason);a.addEventListener("abort",e=>{n(a.reason)});let o={method:s.method,url:s.url,origin:this.getNativeApp().__pageUrl,headers:Object.fromEntries(s.headers.entries()),body:s._arrayBuffer,lynxExtension:s.lynxExtension},h=s.lynxExtension.useStreaming;this.getApp().NativeModules.LynxFetchModule.fetch(o,e=>{if(!a.aborted)try{let t=new(this.getApp())._ReadableStreamClass,n=new(this.getApp())._ResponseClass(h?t:e.body,e);if(h){let e=n.lynxExtension.streamingId;this.getApp().GlobalEventEmitter.addListener(e,e=>{let i=e.event;"onData"===i?t.onData(e.data):"onEnd"===i?t.onEnd():"onError"===i&&t.onError(e.error)})}i(n)}catch{n(TypeError(e.statusText))}},e=>{a.aborted||n(TypeError(e.message))})}),this.createSelectorQuery=e=>A.newEmptyQuery({nativeApp:this.getNativeApp(),lynx:this},e),this.requestAnimationFrame=e=>this.getNativeApp().requestAnimationFrame(e),this.cancelAnimationFrame=e=>this.getNativeApp().cancelAnimationFrame(e),this.loadScript=this.getNativeLynx().loadScript,this.fetchBundle=this.getNativeLynx().fetchBundle,this.__addReporterCustomInfo=e=>{this.getNativeApp().__addReporterCustomInfo(e)},this.getModuleLoader=()=>l["napiRestrictedLoader"+this.getApp().nativeAppId],this.createAnimation=(e,t,i)=>new Y(e,t,i),this.init(void 0)}static{this.__registerSharedDataCounter=0}rebind(e){this.init(e)}init(e){if(e)this.getApp=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{};else{let e={};this.requireModule.cache=e,this.requireModuleAsync.cache=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{},this._switches={}}}dispatchSessionStorageEvent(e){0!=this.getCoreContext().dispatchEvent(e)&&this.getJSContext().dispatchEvent(e)}queueMicrotask(e){this.getNativeLynx().queueMicrotask(e)}},x=class{constructor(e){this._internal_callLynxSetModule=e,this._events=new Map}getEventsSize(e){return this._events.get(e)?.length}setCallLynxSetModule(e){this._internal_callLynxSetModule=e}addListener(e,t,r){let i=this._events.get(e);"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!0]),i?i.push({listener:t,context:r}):this._events.set(e,[{listener:t,context:r}])}removeListener(e,t){if("function"!=typeof t)throw Error("removeListener only takes instances of Function");let r=this._events.get(e),i=0;Array.isArray(r)&&r.some(e=>{if(t===e.listener)return!0;i++})&&r.splice(i,1),"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!1])}emit(e,t){let r=this._events.get(e);Array.isArray(r)&&r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.apply(i||this,t)})}removeAllListeners(e){"string"==typeof e?this._events.delete(e):this._events=new Map}trigger(e,t){let r=this._events.get(e);Array.isArray(r)&&("string"==typeof t&&(t=JSON.parse(t)),r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.call(i||this,t)}))}toggle(e,...t){this.emit(e,t)}},J=class{constructor(){this._beforePublishEvent=new le}},le=class extends x{add(e,t,r){return super.addListener(e,t,r),this}remove(e,t){return super.removeListener(e,t),this}},T=x,K=class{constructor(e){this._textInfoModule=void 0,this.getTextInfo=(e,t)=>(void 0===this._textInfoModule&&(this._textInfoModule=this._nativeModules.LynxTextInfoModule),this._textInfoModule&&this._textInfoModule.getTextInfo?this._textInfoModule.getTextInfo(e,t):{width:e.length}),this._nativeModules=e}},H=class{constructor(e){this.resumeExposure=()=>{this._exposureModule.resumeExposure()},this.stopExposure=e=>{this._exposureModule.stopExposure(e)},this.setObserverFrameRate=e=>{this._exposureModule.setObserverFrameRate(e)},this._nativeModules=e,this._exposureModule=this._nativeModules.LynxExposureModule}},ce=class{constructor(e,t){this._selector=e,this._callback=t}invokeCallback(e){this._callback(e)}},pe=class{constructor(e,t,r){this._id=e,this._intersectionObserverModule=t,this._manager=r,this._observationTargets=[],this._defaultMargins={left:0,right:0,top:0,bottom:0}}relativeTo(e,t){return this._intersectionObserverModule.relativeTo(this._id,e,t||this._defaultMargins),this}relativeToViewport(e){return this._intersectionObserverModule.relativeToViewport(this._id,e||this._defaultMargins),this}relativeToScreen(e){return this._intersectionObserverModule.relativeToScreen(this._id,e||this._defaultMargins),this}observe(e,t){this._observationTargets.push(new ce(e,t)),this._intersectionObserverModule.observe(this._id,e,this._observationTargets.length-1)}disconnect(){this._intersectionObserverModule.disconnect(this._id),this._manager.removeObserver(this._id)}invokeCallback(e,t){e<this._observationTargets.length&&this._observationTargets[e].invokeCallback(t)}},W=class{constructor(e){this._nativeModules=e,this._observerId=0,this._observers={},this._defaultOptions={thresholds:[0],initialRatio:0,observeAll:!1}}createIntersectionObserver(e,t){let r=this._nativeModules.IntersectionObserverModule,i=new pe(this._observerId,r,this);return this._observers[this._observerId]=i,r.createIntersectionObserver(this._observerId,e,t||this._defaultOptions),this._observerId++,i}getObserver(e){return this._observers[e]}removeObserver(e){this._observers[e]=null}},xe={onPerformance:"lynx.performance.onPerformanceEvent"},X=class{constructor(e,t){this._emitter=e,this._onPerformance=t,this._observedNames=[]}observe(e){this._observedNames.length>0||(this._observedNames=e,this._emitter.addListener(xe.onPerformance,this.onPerformanceEvent.bind(this)))}disconnect(){this._observedNames=[],this._emitter.removeListener(xe.onPerformance,this.onPerformanceEvent.bind(this))}onPerformanceEvent(e){if(0===this._observedNames.length)return;let t=e.entryType+"."+e.name;(this._observedNames.includes(t)||this._observedNames.includes(e.entryType))&&this._onPerformance(e)}},N={onSetup:"lynx.performance.timing.onSetup",onUpdate:"lynx.performance.timing.onUpdate"},P=class{constructor(e,t){this._emitter=e,this._generatePipelineOptions=t.generatePipelineOptions,this._onPipelineStart=t.onPipelineStart,this._markTiming=t.markPipelineTiming,this._profileStart=t.profileStart,this._profileEnd=t.profileEnd,this._profileMark=t.profileMark,this._profileFlowId=t.profileFlowId,this._isProfileRecording=t.isProfileRecording,this._bindPipelineIdWithTimingFlag=t.bindPipelineIdWithTimingFlag}profileStart(e,t){this._profileStart(e,t)}profileEnd(){this._profileEnd()}profileMark(e,t){this._profileMark(e,t)}profileFlowId(){return this._profileFlowId()}createObserver(e){return new X(this._emitter,e)}isProfileRecording(){return this._isProfileRecording()}addTimingListener(e){this._emitter.addListener(N.onSetup,e.onSetup,e),this._emitter.addListener(N.onUpdate,e.onUpdate,e)}removeTimingListener(e){this._emitter.removeListener(N.onSetup,e.onSetup),this._emitter.removeListener(N.onUpdate,e.onUpdate)}removeAllTimingListener(){this._emitter.removeAllListeners(N.onSetup),this._emitter.removeAllListeners(N.onUpdate)}_initializeAndStartPipeline(){let e=this._generatePipelineOptions();return e&&this._onPipelineStart(e.pipelineID),e}_checkAndBindTimingFlag(e,t){if(!e)return;let r="__lynx_timing_flag";t[r]&&(this._bindPipelineIdWithTimingFlag(e.pipelineID,t[r]),this._markTiming(e.pipelineID,"update_set_state_trigger"),e.needTimestamps=!0)}},Re=P,Se=l.LynxJSBI,f=class r{constructor(e){for(let t in this._cachedFunctions={},e)Object.defineProperty(this,t,{get(){if(this._cachedFunctions[t])return this._cachedFunctions[t];let r=e[t];return"function"==typeof r&&(this._cachedFunctions[t]=r),r}})}static create(e){return new r(e)}};function Ae(e,t,r,i,n=!1){let{getPromise:s}=l;return"function"==typeof s?s({nextTick:n?i:t=>e(t,0),setTimeout:e,onUnhandled:t,clearTimeout:r}):l.Promise}var Me,M=class{constructor(){}decode(e){return 0===e.byteLength?"":(e instanceof DataView?e=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):ArrayBuffer.isView(e)&&(e=e.buffer),globalThis.TextCodecHelper.decode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}get fatal(){return!1}get ignoreBOM(){return!0}},z=class{constructor(){}encode(e){return new Uint8Array(globalThis.TextCodecHelper.encode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}},O=class r{constructor(){this._arrayBuffer=new ArrayBuffer(0),this._bodyStream=null,this._bodyUsed=!1}safeUseBody(e){if(this._bodyUsed)return;let t=e(this._arrayBuffer);return this._bodyUsed=!0,this._arrayBuffer=null,t}cloneArrayBuffer(e){return e.slice(0)}setBody(e){if(e instanceof r){if(e._bodyUsed||e._bodyStream)throw Error("body used, or try to copy body stream");this._arrayBuffer=this.cloneArrayBuffer(e._arrayBuffer)}else e instanceof ArrayBuffer?this._arrayBuffer=this.cloneArrayBuffer(e):e instanceof DataView?this._arrayBuffer=this.cloneArrayBuffer(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):ArrayBuffer.isView(e)?this._arrayBuffer=this.cloneArrayBuffer(e.buffer):e&&(this._arrayBuffer=new z().encode(e.toString()).buffer),globalThis.ReadableStream&&e instanceof ReadableStream&&(this._bodyStream=e)}arrayBuffer(){return Promise.resolve(this.safeUseBody(e=>e))}get body(){if(this._bodyUsed)throw Error("body used");return this._bodyUsed=!0,this._bodyStream}text(){return Promise.resolve(this.safeUseBody(e=>new M().decode(e)))}json(){return Promise.resolve(this.safeUseBody(e=>JSON.parse(new M().decode(e))))}get bodyUsed(){return this._bodyUsed}},D=class r{constructor(e){if(this._headers_map=new Map,this[Me]="Headers",null===e||"number"==typeof e)throw TypeError("Headers init with null/number");if(e instanceof r)for(let[t,i]of e)this.append(t,i);else Array.isArray(e)?e.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(" "):t)}):e&&Object.getOwnPropertyNames(e).forEach(t=>{let i=e[t];this.append(t,Array.isArray(i)?i.join(" "):i)})}[(Me=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(let[e,t]of this._headers_map)yield e}*values(){for(let[e,t]of this._headers_map)yield t}*entries(){for(let e of this._headers_map)yield e}has(e){return this._headers_map.has(e)}get(e){return this._headers_map.get(e)??null}set(e,t){this._headers_map.set(e,String(t))}append(e,t){let r=this.has(e)?`${this.get(e)}, ${t}`:t;this.set(e,r)}delete(e){this.has(e)&&this._headers_map.delete(e)}forEach(e,t){for(let[r,i]of this.entries())e.call(t,i,r,this)}},Z=class r extends T{get aborted(){return this._aborted}get reason(){return this._reason}constructor(){super(),this._aborted=!1}get[Symbol.toStringTag](){return"[object AbortSignal]"}dispatchEvent(e){"abort"===e.type&&(this._aborted=!0,this._reason=e.reason,"function"==typeof this.onabort&&this.onabort.call(this,e)),super.emit(e.type,e)}addEventListener(e,t){super.addListener(e,t)}removeEventListener(e,t){super.removeListener(e,t)}static __create(){return new r}};function de(e){return class e extends O{get url(){return this._url}get headers(){return this._headers}get method(){return this._method}get signal(){return this._signal}get lynxExtension(){return this._lynxExtension}constructor(t,r){if(super(),r=r||{},t instanceof e){if(t.bodyUsed)throw TypeError("Already read");this._url=t.url,r.headers||(this._headers=new D(t.headers)),this._method=t.method,this._signal=t.signal,this.setBody(t._arrayBuffer)}else this._url=String(t);if((r.headers||!this.headers)&&(this._headers=new D(r.headers)),this._method=r.method||this.method||"GET",this._method=this._method.toUpperCase(),("GET"===this.method||"HEAD"===this.method)&&r.body)throw TypeError("Body not allowed for GET or HEAD requests");"u">typeof r.signal&&(this._signal=r.signal),this._signal=this._signal||Z.__create(),this._lynxExtension=r.lynxExtension||{},this._headers.get("Content-Type")||("string"==typeof r.body?this._headers.set("Content-Type","text/plain;charset=UTF-8"):globalThis.URLSearchParams&&r.body instanceof URLSearchParams?this._headers.set("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"):r.body instanceof ArrayBuffer||this._headers.set("Content-Type","text/plain;charset=UTF-8")),this.setBody(r.body)}clone(){let t=new e(this,{method:this.method});return t.setBody(this),t}}}function _e(e){return class e extends O{get url(){return this._url}get status(){return this._status}get statusText(){return this._statusText}get ok(){return this._ok}get headers(){return this._headers}get lynxExtension(){return this._lynxExtension}constructor(e,t){if(super(),t=t||{},this._status=void 0===t.status?200:t.status,this._status<200||this._status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this._ok=this._status>=200&&this._status<300,this._statusText=void 0===t.statusText?"":""+t.statusText,this._headers=new Headers(t.headers),this._url=t.url||"",this._lynxExtension=t.lynxExtension||{},this.setBody(e)}clone(){let t=new e(null,{status:this._status,statusText:this._statusText,headers:new Headers(this._headers),url:this._url});return t.setBody(this),t}}}function he(e){return class{constructor(){this.__dataReceived=[],this.__done=!1,this.__cancelled=!1,this.__locked=!1,this.__eventCenter=new T}onData(e){this.__cancelled||(this.__dataReceived.push(e),this.__eventCenter.emit("waitSignal",null))}onEnd(){this.__done=!0,this.__eventCenter.emit("waitSignal",null)}onError(e){this.__error=Error(e),this.__eventCenter.emit("waitSignal",null)}processRead(e,t){if(this.__error)return t(this.__error);if(this.__cancelled||this.__done&&0==this.__dataReceived.length)return e({done:!0,value:void 0});if(this.__dataReceived.length>0)return e({done:!1,value:this.__dataReceived.shift()});let r=()=>{this.__eventCenter.removeListener("waitSignal",r),this.processRead(e,t)};this.__eventCenter.addListener("waitSignal",r,this)}__read(){return new e((e,t)=>{this.processRead(e,t)})}get locked(){return this.__locked}cancel(t){return this.__cancelled=!0,this.__dataReceived=null,this.__eventCenter.emit("waitSignal",null),e.resolve(t)}getReader(){return this.__locked?null:(this.__locked=!0,new me(this))}}}var me=class{constructor(e){this.__stream=e}cancel(e){return this.__stream.cancel(e)}read(){return this.__stream.__read()}},ee=class{static{this.EXECUTE_LOADED_SCRIPT="executeLoadedScript"}},u=class _BaseApp{constructor(e,t){this.dataTypeSet=new Set(["string","number","array","object","boolean","null","function"]),this.removeInternalEventListenersCallbacks=[],this.setSourceMapRelease=e=>{this.Reporter.setSourceMapRelease(e)},this.getSourceMapRelease=e=>this.Reporter.getSourceMapRelease(e),this.setupGetTextInfoApi=()=>{this._apiList.getTextInfo=(e,t)=>this._textInfoManager.getTextInfo(e,t)},this.setupExposureApi=()=>{this._apiList.resumeExposure=()=>{this._exposureManager.resumeExposure()},this._apiList.stopExposure=e=>{this._exposureManager.stopExposure(e||{sendEvent:!0})},this._apiList.setObserverFrameRate=e=>{this._exposureManager.setObserverFrameRate(e||{forPageRect:20,forExposureCheck:20})}},this.requestAnimationFrame=e=>this._nativeApp.requestAnimationFrame(e),this.cancelAnimationFrame=e=>this._nativeApp.cancelAnimationFrame(e),this.__removeInternalEventListeners=()=>{this.removeInternalEventListenersCallbacks.forEach(e=>{e()})},this.initBase(e),t?t.transferSingletonData(this,this.__internal__callLynxSetModule.bind(this)):this.initExtra(e),this.setTimeout=this.nativeApp.setTimeout,this.setInterval=this.nativeApp.setInterval,this.clearInterval=this.nativeApp.clearInterval,this.clearTimeout=this.nativeApp.clearTimeout,this.addInternalEventListeners()}initExtra(e){let{lynx:t}=e;this.modules={},this._lazyCallableModules=new Map,this._nativeApp=f.create(this._nativeApp),this.sharedConsole=w(`runtimeId:${this.nativeAppId}`),this.dynamicComponentExports={},this.loadedDynamicComponentsSet=new Set,this._lazyCallableModules=new Map,this.Reporter=new I(()=>this,()=>this.nativeApp),this.GlobalEventEmitter=new T(this.__internal__callLynxSetModule.bind(this)),this._intersectionObserverManager=new W(this.NativeModules),this._exposureManager=new H(this.NativeModules),this.setupExposureApi(),this._aopManager=new J,this.beforePublishEvent=this._aopManager._beforePublishEvent,this.performance=new Re(this.GlobalEventEmitter,this.nativeApp);let r=this.setupPromise(this.nativeApp.setTimeout,this.nativeApp.clearTimeout,t);this.lynx=this.createLynx(t,r),this.setupJSModule(),this.setupIntersectionApi(),this.setupFetchAPI(r)}initBase(e){let{nativeApp:t,params:r}=e;this.nativeAppId=t.id,this._params=r,this._nativeApp=t,this.NativeModules=t.nativeModuleProxy,this.LynxUIMethodModule=t.nativeModuleProxy.LynxUIMethodModule,this.LynxTestModule=t.nativeModuleProxy.LynxTestModule,this.LynxResourceModule=t.nativeModuleProxy.LynxResourceModule,this.LynxAccessibilityModule=t.nativeModuleProxy.LynxAccessibilityModule,this.LynxSetModule=t.nativeModuleProxy.LynxSetModule,this._apiList={},this._textInfoManager=new K(this.NativeModules),this.setupGetTextInfoApi()}static{this.kDefaultSourceMapURL="default"}static{this.kGetSourceMapReleaseErrorName=ge}set __sourcemap__release__(e){let t=Error();t.name="LynxGetSourceMapReleaseError",t.message=e,t.stack=`at <anonymous> (${_BaseApp.kDefaultSourceMapURL}:1:1)`,this.setSourceMapRelease(t)}destroy(){this.__removeInternalEventListeners(),this._nativeApp=null,this._params=null,this._lazyCallableModules=null,this.GlobalEventEmitter=null}registerModule(e,t){this._lazyCallableModules[e]=t}getJSModule(e){return this._lazyCallableModules[e]}setupJSModule(){this.registerModule("GlobalEventEmitter",this.GlobalEventEmitter),this.registerModule("Reporter",this.Reporter)}setupFetchAPI(e){this._createResponseClass=_e,this._createRequestClass=de,this._createReadableStreamClass=he,this._RequestClass=l.Request??de(e),this._ResponseClass=l.Response??_e(e),this._ReadableStreamClass=l.ReadableStream??he(e),l.Request||(l.Request=this._RequestClass),l.Response||(l.Response=this._ResponseClass),l.ReadableStream||(l.ReadableStream=this._ReadableStreamClass)}__internal__callLynxSetModule(e,t){let r=this.LynxSetModule[e];r&&Function.prototype.apply.call(r,void 0,t)}get nativeApp(){return this._nativeApp}set nativeApp(e){this._nativeApp=e}get params(){return this._params}set apiList(e){this._apiList={...this._apiList,...e}}setupIntersectionApi(){let e=this;this._apiList.createIntersectionObserver=function(t,r){let{componentId:i=""}=t;return e._intersectionObserverManager.createIntersectionObserver(i,r)},this.lynx.createIntersectionObserver=this._apiList.createIntersectionObserver}onIntersectionObserverEvent(e,t,r){let i=this._intersectionObserverManager.getObserver(e);i&&i.invokeCallback(t,r)}reportError(e){return this.lynx.reportError(e)}handleError(e,t,r){h(e,this.nativeApp,{originError:t,getSourceMapRelease:this.getSourceMapRelease,errorLevel:r})}handleUserError(e,t,r,i){let{message:n,name:s,stack:a}=e||{};n||({message:n,name:s,stack:a}=Error(JSON.stringify(e)));let o=new g(i?`${i} ${s}: ${n}`:`${s}: ${n}`,a);o.cause=t,this.handleError(o,e,r)}handleInternalError(e,t){let{message:r,name:i,stack:n}=e||{};r||({message:r,name:i,stack:n}=Error(JSON.stringify(e)));let s=new y(`${i}: ${r}`,n);s.cause=t,this.handleError(s,e)}getBoolEnv(e){return this.nativeApp.getEnv(e)?.toLowerCase()==="true"}static{this._$factoryCache={}}_$executeInit(e,{path:t,entryName:r}){let i;if(e&&e.init)i=e.init.bind(e);else if(l.initBundle)i=l.initBundle.bind(l.initBundle),delete l.initBundle;else throw new g(`load failed. path:${t},entryName:${r}`);try{this.lynx.performance.profileStart(ee.EXECUTE_LOADED_SCRIPT,{args:{path:t}});let e=i({tt:this});return _BaseApp._$factoryCache[t]=i,e}finally{this.lynx.performance.profileEnd()}}_$executeJSON(e,{path:t}){let r=JSON.parse(e),i=()=>r;return _BaseApp._$factoryCache[t]=i,r}requireModule(e,t,r){let i=_BaseApp._$factoryCache[e];if(i)return this._$executeInit({init:i},{path:e,entryName:t});if(e.split("?")[0].endsWith(".json")){let i=this.nativeApp.readScript(e,{dynamicComponentEntry:t??_,...r});return this._$executeJSON(i,{path:e,entryName:t})}let n=this.nativeApp.loadScript(e,t,r);return this._$executeInit(n,{path:e,entryName:t})}requireModuleAsync(e,t){let r=_BaseApp._$factoryCache[e];if(r)return void t(null,this._$executeInit({init:r},{path:e}));if(e.split("?")[0].endsWith(".json")){try{let r=this.nativeApp.readScript(e),i=this._$executeJSON(r,{path:e});t(null,i)}catch(e){t(e)}return}let i=Error();this.nativeApp.loadScriptAsync(e,(r,n)=>{if(r)return i.message=r,t(i);try{return t(null,this._$executeInit(n,{path:e}))}catch(e){return t(e)}})}require(path,params){let that=this;if("string"!=typeof path)throw Error("require args must be a string");let entryName=params&¶ms.dynamicComponentEntry?params.dynamicComponentEntry:_;that.modules[entryName]||(that.modules[entryName]={});let module=that.modules[entryName][path];if(!module){try{let tt=that,jsContent=that._nativeApp.readScript(path,{dynamicComponentEntry:entryName});eval(jsContent),module=that.modules[entryName][path]}catch(r){this.handleError(new g(`eval user: ${that._nativeApp.id} error: ${r.message}`,r.stack),r)}if(!that.modules[entryName][path])throw Error(`module ${path} in ${entryName} is not defined in card: ${that._nativeApp.id}`)}if(!module.hasRun){let{factory:r}=module,e={exports:{}},t;if(module.hasRun=!0,module.exports=e.exports,"function"==typeof r){let n=Ue.call(that,path),o=that;t=r(n,e,e.exports,that.Card.bind(o),that.setTimeout,that.setInterval,that.clearInterval,that.clearTimeout,that.NativeModules,that._apiList,that.sharedConsole,that.Component.bind(o),params?.ReactLynx,that.nativeAppId,that.Behavior.bind(o),Se,that.lynx,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,that.lynx.fetch,void 0,void 0,void 0,void 0,void 0,void 0,that.requestAnimationFrame,that.cancelAnimationFrame),module.exports=e.exports||t}}return module.exports}define(e,t,r){r=r||_,this.modules[r]||(this.modules[r]={}),this.modules[r][e]={hasRun:!1,factory:t.bind(this)}}callFunction(e,t,r){try{let i=this.getJSModule(e);"function"==typeof i[t]&&i[t].apply(i,r)}catch(r){this.handleUserError(r,{by:`${e}.${t}`})}}onAppError(e,t){this.handleInternalError(t)}saveDynamicComponentExports(e,t){this.dynamicComponentExports[e]=t}getDynamicComponentExports(e){return this.dynamicComponentExports[e]}Component(){}Card(){}Behavior(){}wrapReport(e,t){let r=this;function i(e){return function(...i){try{return e.apply(this,i)}catch(e){r.handleUserError(e,{by:t})}}}return function(t,...r){return Function.prototype.apply.call(e,void 0,[i(t),...r])}}setupPromise(e,t,r){let i=Ae(e,(e,t)=>{try{t&&(t.stack||(t=Error(JSON.stringify(t))),t.name="unhandled rejection",this.handleUserError(t))}catch{}},t,r.queueMicrotask,this._params?.pageConfigSubset?.enableMicrotaskPromisePolyfill??!1);return this.resolvedPromise=i.resolve(),i}addInternalEventListener(e,t,r){this.contextProxyTypeToMethod[e]().addEventListener(t,r),this.removeInternalEventListenersCallbacks.push(()=>{this.contextProxyTypeToMethod[e]().removeEventListener(t,r)})}addInternalEventListeners(){this.contextProxyTypeToMethod||(this.contextProxyTypeToMethod={0:()=>this.lynx.getCoreContext(),1:()=>this.lynx.getDevtool(),2:()=>this.lynx.getJSContext(),3:()=>this.lynx.getUIContext(),4:()=>this.lynx.getNative(),5:()=>this.lynx.getEngine()}),this.addInternalEventListener(0,"__OnNativeAppReady",()=>{this.onNativeAppReady()}),this.addInternalEventListener(0,"__NotifyGlobalPropsUpdated",e=>{this.updateGlobalProps(e.data)}),this.addInternalEventListener(0,"__OnLifecycleEvent",e=>{this.OnLifecycleEvent(e.data)}),this.addInternalEventListener(0,"__OnAppFirstScreen",()=>{this.onAppFirstScreen()}),this.addInternalEventListener(0,"__OnDynamicJSSourcePrepared",e=>{l.loadDynamicComponent(this,e.data)}),this.addInternalEventListener(0,"__OnAppEnterForeground",()=>{this.onAppEnterForeground()}),this.addInternalEventListener(0,"__OnAppEnterBackground",()=>{this.onAppEnterBackground()})}updateGlobalProps(e){}OnLifecycleEvent(e){}onNativeAppReady(){}onAppFirstScreen(){}onAppEnterBackground(){}onAppEnterForeground(){}};function De(e){let t=e.match(/(.*)\/([^/]+)?$/);return t?.[1]?t[1]:"./"}function Ue(e){let t=this,r=De(e);return function(e){let i=[],n=`${r}/${e}`.split("/"),s=n.length;if("string"!=typeof e)throw Error("require args must be a string");for(let r=0;r<s;++r){let a=n[r];if(""!==a&&"."!==a)if(".."===a){if(0===i.length)throw Error(`can't find module ${e} in app: ${t._nativeApp.id}`);i.pop()}else r+1<s&&".."===n[r+1]?r++:i.push(a)}let a=i.join("/");return a.endsWith(".js")||(a+=".js"),t.require(a)}}var te=class extends u{createLynx(e,t){let r=f.create(e);return new b(()=>this.nativeApp,()=>this,t,()=>r)}callBeforePublishEvent(e){if(0!==this._aopManager._beforePublishEvent.getEventsSize(e.type)){let t={...e};try{this._aopManager._beforePublishEvent.emit(t.type,[t])}catch(e){this.handleUserError(e,{by:"callBeforePublishEvent",type:t.type})}}}},fe=class{transferSingletonData(e,t){e.nativeApp=this.nativeApp,e.sharedConsole=this.sharedConsole,e.dynamicComponentExports=this.dynamicComponentExports,e.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,e._intersectionObserverManager=this.intersectionObserverManager,e._exposureManager=this.exposureManager,e._textInfoManager=this.textInfoManager,this.globalEventEmitter.setCallLynxSetModule(t),e.GlobalEventEmitter=this.globalEventEmitter,e._aopManager=this.aopManager,e.performance=this.performance,e.modules=this.modules,e._lazyCallableModules=this.lazyCallableModules,e.lynx=this.lynx,this.lynx.rebind(()=>e),e._apiList=this.apiList,this.Reporter.rebind(()=>e),e.Reporter=this.Reporter,e.resolvedPromise=this.resolvedPromise}},U=class extends u{constructor(e,t){super(e,void 0),this.fillSingletonData();try{t.srcName&&(delete this.lynx.requireModule.cache[t.srcName],delete u._$factoryCache[t.srcName],this.lynx.requireModule(t.srcName,_),this.dataTypeSet.add("undefined"))}catch(e){this.handleUserError(e)}}createLynx(e,t){let r=f.create(e);return new b(()=>this.nativeApp,()=>this,t,()=>r)}fillSingletonData(){this.singletonData=new fe,this.singletonData.nativeApp=this._nativeApp,this.singletonData.sharedConsole=this.sharedConsole,this.singletonData.dynamicComponentExports=this.dynamicComponentExports,this.singletonData.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,this.singletonData.intersectionObserverManager=this._intersectionObserverManager,this.singletonData.exposureManager=this._exposureManager,this.singletonData.textInfoManager=this._textInfoManager,this.singletonData.globalEventEmitter=this.GlobalEventEmitter,this.singletonData.aopManager=this._aopManager,this.singletonData.performance=this.performance,this.singletonData.modules=this.modules,this.singletonData.lazyCallableModules=this._lazyCallableModules,this.singletonData.lynx=this.lynx,this.singletonData.apiList=this._apiList,this.singletonData.Reporter=this.Reporter,this.singletonData.resolvedPromise=this.resolvedPromise}};function we(e,t,r){let{id:i}=e,{cardType:n}=t,s=!0,a;try{if(a="standalone"==n?new U({nativeApp:e,params:t,lynx:r},t):new te({nativeApp:e,params:t,lynx:r}),l.currentAppId=i,l.multiApps[i]=a,"standalone"===n)return e.setCard(a),!0;t.bundleSupportLoadScript,s=!0;try{delete a.lynx.requireModule.cache[E],delete u._$factoryCache[E],a.lynx.requireModule(E,_),a.lynx._switches.allowUndefinedInNativeDataTypeSet&&a.dataTypeSet.add("undefined")}catch(e){s=!1,a.handleUserError(e,void 0,void 0,"loadCard failed")}e.setCard(a)}catch(t){qe(e,t),s=!1}return s}function ke(e){l.multiApps[e].destroy(),delete l.multiApps[e]}function Fe(e){l.multiApps[e].callDestroyLifetimeFun()}function Be(e,t){if(e.loadedDynamicComponentsSet.has(t))return e.getDynamicComponentExports(t);let r=l.globDynamicComponentEntry;l.globDynamicComponentEntry=t;try{delete e.lynx.requireModule.cache[E],delete u._$factoryCache[E];let r=e.lynx.requireModule(E,t);return e.saveDynamicComponentExports(t,r),e.loadedDynamicComponentsSet.add(t),r}catch(t){e.handleUserError(t)}finally{l.globDynamicComponentEntry=r}}function qe(e,t,r){let{message:i,name:n,stack:s}=t||{};i||({message:i,name:n,stack:s}=Error(JSON.stringify(t)));let a=new y(`loadCard failed ${n}: ${i}`,s);a.cause=r,h(a,e,{originError:t,getSourceMapRelease:t=>{if(!e.__GetSourceMapRelease(t))return e.__GetSourceMapRelease(u.kDefaultSourceMapURL)}})}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,(()=>{var e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",r=__webpack_require__.aE=e?Symbol("webpack exports"):"__webpack_exports__",i=e?Symbol("webpack error"):"__webpack_error__",n=e?Symbol("webpack done"):"__webpack_done__",s=__webpack_require__.zS=e?Symbol("webpack defer"):"__webpack_defer__",a=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o=e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[t]&&e[s]){var o=e[s];if(!o.some(e=>{var t=__webpack_module_cache__[e];return!t||!1===t[n]}))return e;var l=e;e={then(e){Promise.all(o.map(__webpack_require__)).then(()=>e(l))}}}if(e[t])return e;if(e.then){var h=[];h.d=0,e.then(e=>{c[r]=e,a(h)},e=>{c[i]=e,a(h)});var c={};return c[s]=!1,c[t]=e=>e(h),c}}var u={};return u[t]=function(){},u[r]=e,u});__webpack_require__.a=(e,l,h)=>{h&&((c=[]).d=-1);var c,u,d,p,_=new Set,m=e.exports,y=new Promise((e,t)=>{p=t,d=e});y[r]=m,y[t]=e=>{c&&e(c),_.forEach(e),y.catch(function(){})},e.exports=y,l(e=>{u=o(e);var n,a=()=>u.map(e=>{if(e[s])return e;if(e[i])throw e[i];return e[r]}),l=new Promise(e=>{(n=()=>e(a)).r=0;var r=e=>e!==c&&!_.has(e)&&(_.add(e),e&&!e.d&&(n.r++,e.push(n)));u.map(e=>e[s]||e[t](r))});return n.r?l:a()},e=>(e?p(y[i]=e):d(m),a(c),y[n]=!0)),c&&c.d<0&&(c.d=0)}})(),(()=>{__webpack_require__.F={},__webpack_require__.E=e=>{Object.keys(__webpack_require__.F).map(t=>{__webpack_require__.F[t](e)})}})(),(()=>{__webpack_require__.H={},__webpack_require__.G=e=>{Object.keys(__webpack_require__.H).map(t=>{__webpack_require__.H[t](e)})}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=(e,t)=>Promise.all(Object.keys(__webpack_require__.f).reduce((r,i)=>(__webpack_require__.f[i](e,r,t),r),[]))})(),(()=>{__webpack_require__.u=e=>"static/js/async/"+({361:"web-core-main-thread-apis",8:"legacy-wasm-chunk",895:"web-worker-runtime-main-thread"})[e]+".js"})(),(()=>{__webpack_require__.miniCssF=e=>""+e+".css"})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.p="http://lynx-web-core-mocked.localhost/"})(),(()=>{__webpack_require__.v=function(e,t,r,i){var n=fetch(__webpack_require__.p+"static/wasm/"+r.slice(0,8)+".module.wasm"),s=function(){return n.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,i)}).then(function(t){return Object.assign(e,t.instance.exports)})};return n.then(function(t){return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,i).then(function(t){return Object.assign(e,t.instance.exports)},function(e){if("application/wasm"!==t.headers.get("Content-Type"))return 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",e),s();throw e}):s()})}})(),(()=>{var e={524:1},t=t=>{var[r,n,s]=t;for(var a in n)__webpack_require__.o(n,a)&&(__webpack_require__.m[a]=n[a]);for(s&&s(__webpack_require__);r.length;)e[r.pop()]=1;i(t)};__webpack_require__.f.i=(t,r)=>{e[t]||importScripts(__webpack_require__.p+__webpack_require__.u(t))};var r=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[],i=r.push.bind(r);r.push=t})(),(()=>{var e={895:["361"]};__webpack_require__.f.prefetch=(t,r)=>{Promise.all(r).then(()=>{var r=e[t];Array.isArray(r)&&r.map(__webpack_require__.E)})}})(),(()=>{var e={895:["361"]};__webpack_require__.f.preload=t=>{var r=e[t];Array.isArray(r)&&r.map(__webpack_require__.G)}})();var __webpack_exports__={};(()=>{var e=__webpack_require__(679),t=__webpack_require__(234);function r(e,r){let i=e.createCall(t.Fw);return(e,t)=>{r[e]&&t(r[e]),i(e).then(t)}}let i=(e,r)=>{let i=r.createCall(t.vn);return{animate(t,r,n,s){i("animate",e,{operation:t,id:r,keyframes:n,timingOptions:s})}}};function n(e,n,s,a){let o=new t.tf({rpc:s,receiveEventEndpoint:t.jK,sendEventEndpoint:t.Is});return{__globalProps:e.globalProps,getJSModule(e){},getNativeApp:()=>n,getCoreContext:()=>o,getCustomSectionSync:t=>e.customSections[t],getCustomSection:r(s,e.customSections),queueMicrotask:e=>{queueMicrotask(e)},createElement:(e,t)=>i(t,a),getI18nResource:()=>n.i18nResource.data,QueryComponent:(e,t)=>n.queryComponent(e,t)}}function s(e){return(r,i,n,s,a,o,l)=>{e.invoke(t.zk,[r,i,n,s,a,l]).then(o).catch(e=>{console.error("[lynx-web] invokeUIMethod failed",e),o({code:t.O4.UNKNOWN,data:""})})}}function a(e,r){e.registerHandlerLazy(t.Ke,r,"publicComponentEvent")}function o(e,r){e.registerHandler(t.pd,({exposures:e,disExposures:t})=>{e.length>0&&r.GlobalEventEmitter.emit("exposure",[e.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))]),t.length>0&&r.GlobalEventEmitter.emit("disexposure",[t.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))])})}async function l(e,r,i){let n=r.createCall(t.eZ),s=e.createCall(t.g),a={resumeExposure(){n(!0,!0)},stopExposure(e){n(!1,e.sendEvent??!0)}},o={call(e,t,r){s(e,t,"bridge").then(r)}},l={},h={};return await Promise.all(Object.entries(i).map(([e,t])=>import(t).then(t=>h[e]=t?.default?.(l,(t,r)=>s(t,r,e))))),Object.assign(l,{bridge:o,LynxExposureModule:a,...h})}function h(e,r){e.registerHandlerLazy(t.Ve,r,"updateCardData")}function c(e,r){e.registerHandlerLazy(t.JW,r,"publishEvent")}function u(e){let t=0;return{generatePipelineOptions:()=>({pipelineID:"_pipeline_"+t++,needTimestamps:!1}),onPipelineStart:function(){},markPipelineTiming:function(t,r){e.markTimingInternal(r,t)},bindPipelineIdWithTimingFlag:function(t,r){e.pipelineIdToTimingFlags.has(t)||e.pipelineIdToTimingFlags.set(t,[]),e.pipelineIdToTimingFlags.get(t).push(r)},profileStart:()=>{console.error("NYI: profileStart. This is an issue of lynx-core.")},profileEnd:()=>{console.error("NYI: profileEnd. This is an issue of lynx-core.")},profileMark:()=>{console.error("NYI: profileMark. This is an issue of lynx-core.")},profileFlowId:()=>(console.error("NYI: profileFlowId. This is an issue of lynx-core."),0),isProfileRecording:()=>(console.error("NYI: isProfileRecording. This is an issue of lynx-core."),!1)}}function d(e,r){e.registerHandler(t.hO,(...e)=>{r.GlobalEventEmitter.emit(...e)})}function p(){let e=new FinalizationRegistry(e=>e());return t=>{let r={};return e.register(r,t),r}}function _(e,r){e.registerHandlerLazy(t.yn,r,"updateGlobalProps")}function m(e,r,i,n){e.registerHandler(t.BE,e=>{i.setData(e),n.GlobalEventEmitter.emit("onI18nResourceReady",[])}),r.registerHandler(t.mB,e=>{i.setData(e),n.GlobalEventEmitter.emit("onI18nResourceReady",[])})}function y(e){return(r,i,n,s,a,o)=>{e.invoke(t.ZU,[r,i,n,s,o]).then(a).catch(e=>{console.error("[lynx-web] getPathInfo failed",e),a({code:t.O4.UNKNOWN,data:e.message||""})})}}function f(e){let t=new Map([["__Card__",e]]),r=(e,r="__Card__")=>{let i=t.get(r)?.manifest[`/${e}`];if(i)return i;let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status)return n.responseText;throw Error(`Failed to load ${e}, status: ${n.status}`)},i=async(e,r="__Card__")=>{let i=t.get(r)?.manifest[`/${e}`];return i||new Promise((t,r)=>{fetch(e).then(i=>{i.ok?i.text().then(e=>t(e),r):r(Error(`Failed to load ${e}, status: ${i.status}`))},r)})},n=(e,t)=>{let r=Function("postMessage","module","exports","lynxCoreInject","Card","setTimeout","setInterval","clearInterval","clearTimeout","NativeModules","Component","ReactLynx","nativeAppId","Behavior","LynxJSBI","lynx","window","document","frames","location","navigator","localStorage","history","Caches","screen","alert","confirm","prompt","fetch","XMLHttpRequest","webkit","Reporter","print","global","requestAnimationFrame","cancelAnimationFrame",e+"\n//# sourceURL="+t);return{init(e){let t={exports:{}},i=e.tt;return r(void 0,t,t.exports,e,i.Card.bind(i),i.setTimeout,i.setInterval,i.clearInterval,i.clearTimeout,i.NativeModules,i.Component.bind(i),i.ReactLynx,i.nativeAppId,i.Behavior,i.LynxJSBI,i.lynx,i.window,i.document,i.frames,i.location,i.navigator,i.localStorage,i.history,i.Caches,i.screen,i.alert,i.confirm,i.prompt,i.fetch,i.XMLHttpRequest,i.webkit,i.Reporter,i.print,i.global,i.requestAnimationFrame,i.cancelAnimationFrame),t.exports}}};return{readScript:r,loadScript:(e,t="__Card__")=>n(r(e,t),`${encodeURIComponent(t)}/${e}`),loadScriptAsync:async(e,t,r="__Card__")=>{i(e,r).then(i=>{t(null,n(i,`${encodeURIComponent(r)}/${e}`))})},templateCache:t}}let g=0,v={};async function b(e){let{mainThreadRpc:r,uiThreadRpc:i,template:n,nativeModulesMap:b,timingSystem:x}=e,E=u(x),S=r.createCallbackify(t.iH,2),A=i.createCall(t.PC),M=i.createCall(t.pT),T=i.createCallbackify(t.vr,3),C=r.createCall(t.nk),w=i.createCall(t.o2),{templateCache:I,loadScript:R,loadScriptAsync:k,readScript:L}=f(n);r.registerHandler(t.WS,(e,t)=>{I.set(e,t)});let O=new t.xY,N="",P={id:(g++).toString(),...E,setTimeout:setTimeout,setInterval:setInterval,clearTimeout:clearTimeout,clearInterval:clearInterval,nativeModuleProxy:await l(i,r,b),readScript:L,loadScriptAsync:k,loadScript:R,requestAnimationFrame:e=>requestAnimationFrame(e),cancelAnimationFrame:e=>cancelAnimationFrame(e),callLepusMethod:S,setNativeProps:A,getPathInfo:y(i),invokeUIMethod:s(i),tt:null,setCard(e){a(r,e),c(r,e),o(r,e),h(r,e),d(i,e),_(i,e),m(i,r,O,e),x.registerGlobalEmitter(e.GlobalEventEmitter),e.lynx.getCoreContext().__start(),P.tt=e},triggerComponentEvent:M,selectComponent:T,createJSObjectDestructionObserver:p(),setSharedData(e,t){v[e]=t},getSharedData:e=>v[e],i18nResource:O,reportException:(e,t)=>w(e,t,N),__SetSourceMapRelease:e=>N=e.message,__GetSourceMapRelease:e=>N,queryComponent:(e,t)=>{I.has(e)?t({__hasReady:!0}):C(e).then(e=>{t?.(e)})}};return P}function x(e,r,i,n){e.registerHandler(t.hh,()=>{let e=r.id;n(e),i(e)})}let E=async(e,r)=>{let i=e.createCall(t.VK),n={};return await Promise.all(Object.entries(r).map(([r,s])=>import(s).then(s=>n[r]=s?.default?.(n,(e,t)=>i(e,t,r),r=>{e.registerHandler(t.Sy,e=>r(e))})))),{load:e=>n[e]}},S="lynx.performance.timing.onSetup",A="lynx.performance.timing.onUpdate";function M(e,r){let i=!0,n={},s=new Map,a=new Map,o=r.createCall(t.gx),l=[];function h(e){for(let{timingKey:t,pipelineId:r,timeStamp:i}of e){if(i||(i=performance.now()+performance.timeOrigin),!r){n[t]=i;continue}s.has(r)||s.set(r,{}),s.get(r)[t]=i}}let c=r=>{e.registerHandler(t.F6,(e,t)=>{if(t?e=e.concat(l):l=l.concat(e),i){let e={extra_timing:{},setup_timing:n,update_timings:{},metrics:{},has_reload:!1,thread_strategy:0,url:""};r.emit(S,[e]),o("timing",n)}else{let i=(t?s.get(t):void 0)??{},n={extra_timing:{},setup_timing:{},update_timings:Object.fromEntries([...e,...a.get(t)??[]].map(e=>[e,i])),metrics:{},has_reload:!1,thread_strategy:0,url:""};r.emit(A,[n]),o("timing",i)}t&&(a.delete(t),s.delete(t)),i&&(i=!1)})};return e.registerHandler(t.PM,h),r.registerHandler(t.PM,h),{markTimingInternal:(e,t,r)=>h([{timingKey:e,pipelineId:t,timeStamp:r}]),registerGlobalEmitter:c,pipelineIdToTimingFlags:a}}let T=Promise.resolve().then(__webpack_require__.bind(__webpack_require__,998));function C(r,i){let s=new e.C(r,"bg-to-ui"),a=new e.C(i,"bg-to-main"),o=M(a,s);o.markTimingInternal("load_core_start"),a.registerHandler(t.a$,async e=>{o.markTimingInternal("load_core_end");let t=await b({...e,uiThreadRpc:s,mainThreadRpc:a,timingSystem:o});globalThis["napiLoaderOnRT"+t.id]=await E(s,e.napiModulesMap);let r=n(e,t,a,s);T.then(({loadCard:i,destroyCard:n,callDestroyLifetimeFun:a,nativeGlobal:o,loadDynamicComponent:l})=>{o&&l&&(o.loadDynamicComponent=l),i(t,{...e,updateData:e.initData},r),x(s,t,n,a)})})}globalThis.nativeConsole=console,globalThis.onmessage=async e=>{let{mode:t,toPeerThread:r,toUIThread:i,systemInfo:n}=e.data;if(globalThis.SystemInfo||(globalThis.SystemInfo=n),"main"===t){let{startMainThreadWorker:e}=await __webpack_require__.e("895").then(__webpack_require__.bind(__webpack_require__,358));e(i,r)}else C(i,r)},Object.assign(globalThis,{module:{exports:null}})})()})();
|
|
3
|
+
`,e)}}var I=class{constructor(e,t){this.getApp=e,this.getNativeApp=t,this.setSourceMapRelease=e=>{F(e)&&e.name===u.kGetSourceMapReleaseErrorName&&R(e.message)&&R(e.stack)?this.getNativeApp().__SetSourceMapRelease({name:e.name,message:e.message,stack:e.stack}):JSON.stringify(e)},this.getSourceMapRelease=e=>{let t=this.getNativeApp().__GetSourceMapRelease(e);return t||(t=this.getNativeApp().__GetSourceMapRelease(u.kDefaultSourceMapURL)),t},this.getApp=e,this.getNativeApp=t}rebind(e){this.getApp=e}},V=class r{static{this.count=0}constructor(e){this.effect=e,this.id="__lynx-inner-js-animation-"+r.count++}cancel(){this.effect.target.cancelAnimate(this)}pause(){this.effect.target.pauseAnimate(this)}play(){this.effect.target.playAnimate(this)}},$=class{constructor(e,t,r){this.target=e,this.keyframes=t,this.options=r}},Q=class{constructor(e,t){this.keyframes=e,this.options=t}},Y=class{constructor(e,t,r){this.id=e,this.effect=new Q(t,r)}},L=class{constructor(e,t,r){this._root=e,this._idSelector="#"+t,this._lynx=r,this._element=void 0}ensureElement(){this._element||(this._element=this._lynx.createElement(this._root,this._idSelector))}animate(e,t){this.ensureElement();let r=new V(new $(this,e,t));return this._element.animate(0,r.id,e,t),r}playAnimate(e){this._element.animate(1,e.id,void 0,void 0)}pauseAnimate(e){this._element.animate(2,e.id,void 0,void 0)}cancelAnimate(e){this._element.animate(3,e.id,void 0,void 0)}finishAnimate(e){this._element.animate(4,e.id,void 0,void 0)}setProperty(e,t){if(this.ensureElement(),"string"==typeof e&&"string"==typeof t)this._element.setProperty({[e]:t});else if("object"==typeof e)this._element.setProperty(e);else throw Error(`setProperty's param must be string or object. While current type is ${typeof e} and ${typeof t}.`)}},ve=L,A=class r{constructor(e,t,r){this._component=e,this._taskQueue=t,this._native_proxy=r,this._fire_immediately=!1,this._root_unique_id=void 0}static fromQuery(e,t){return new r(t??e._component,e._taskQueue.slice(),e._native_proxy)}static newEmptyQuery(e,t){return new r(t??"",[],e)}commitTask(e){let t=r.fromQuery(this,this._component);return(t._taskQueue.push(e),this._fire_immediately)?void t.exec():t}in(e){return e.createSelectorQuery(this)}select(e){return new S(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectAll(e){return new S(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!1})}selectReactRef(e){if(this._taskQueue.length){let e="selectReactRef() should be called before any other selector query methods";nativeConsole.warn(e);let t=Error(e);h(new G(e,t.stack),this._native_proxy.nativeApp);return}return this._fire_immediately=!0,new S(this,{type:1,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectRoot(){return this.select("")}selectUniqueID(e){return new S(this,{type:2,identifier:e.toString(),component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}exec(){for(let e=0;e<this._taskQueue.length;++e)this._taskQueue[e](this._native_proxy)}setRoot(e){return this._root_unique_id=Number(e),this}},S=class{static{this.nodePool={}}constructor(e,t){this._nodeSelectToken=t,this._selectorQuery=e}invoke(e){let t=t=>{let r=t=>{0===t.code?e.success&&e.success(t.data):e.fail&&e.fail(t)};this._nodeSelectToken.first_only?t.nativeApp.invokeUIMethod(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e.method,e.params??{},r,this._nodeSelectToken.root_unique_id):r({code:5,data:"selectAll not supported for invoke method"})};return this._selectorQuery.commitTask(t)}path(e){let t=t=>{let r=t=>{e&&e(t.data,t.status)};t.nativeApp.getPathInfo(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,r,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}fields(e,t){let r=r=>{let i=i=>{if(e.query){let t=t=>{t.query=A.newEmptyQuery(r),t.query.setRoot(t.unique_id.toString()),e.unique_id||delete t.unique_id};if(this._nodeSelectToken.first_only){let e=i.data;e&&t(e)}else for(let e of i.data)t(e)}t&&t(i.data,i.status)},n=[];for(let t in e){if("query"==t&&!0==e[t]&&!e.unique_id){n.push("unique_id");continue}e[t]&&n.push(t)}r.nativeApp.getFields(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,n,i,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(r)}animate(e){let t=[];Array.isArray(e)?t=e:t.push(e);let r=e=>{t.forEach(t=>{e.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,0,t?.id,t?.effect?.keyframes,t?.effect?.options)})};return this._selectorQuery.commitTask(r)}animationOperate(e,t){let r=[];Array.isArray(t)?r=t:r.push(t);let i=t=>{r.forEach(r=>{t.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e,r,null,null)})};return this._selectorQuery.commitTask(i)}playAnimation(e){return this.animationOperate(1,e)}pauseAnimation(e){return this.animationOperate(2,e)}cancelAnimation(e){return this.animationOperate(3,e)}finishAnimation(e){return this.animationOperate(4,e)}setNativeProps(e){let t=t=>{t.nativeApp.setNativeProps(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,e,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}},b=class r{constructor(e,t,i,n){this.getNativeApp=e,this.getApp=t,this.Promise=i,this.getNativeLynx=n,this.setTimeout=this.getApp().wrapReport(this.getNativeApp().setTimeout,"setTimeout Error"),this.setInterval=this.getApp().wrapReport(this.getNativeApp().setInterval,"setInterval Error"),this.clearInterval=this.getNativeApp().clearInterval,this.clearTimeout=this.getNativeApp().clearTimeout,this.resumeExposure=this.getApp()._apiList.resumeExposure,this.requireModule=(e,t,i)=>{if(this.requireModule.cache[e])return this.requireModule.cache[e];let n=this.getApp().requireModule(e,t,i);return this.requireModule.cache[e]=n,n},this.requireModuleAsync=(e,t)=>{(t??=e=>{e&&this.getApp().handleUserError(e)},this.requireModuleAsync.cache[e])?t(null,this.requireModuleAsync.cache[e]):this.getApp().requireModuleAsync(e,(i,n)=>{i||(this.requireModuleAsync.cache[e]=n),t(i,n)})},this.createElement=(e,t)=>this.getNativeLynx().createElement(e,t),this.getElementById=e=>new ve("",e,this),this.reportError=(e,t)=>{let i;if(F(e))i=e;else{let t;i=Error(t="string"!=typeof e?JSON.stringify(e):e)}let{level:n="error"}=t||{},s;switch(n){case"error":default:s=1;break;case"warning":s=2;break;case"fatal":s=0}this.getApp().handleUserError(i,void 0,s)},this.registerModule=(e,t)=>this.getApp().registerModule(e,t),this.getJSModule=e=>this.getApp().getJSModule(e),this.getTextInfo=this.getApp()._apiList.getTextInfo,this.addFont=(e,t)=>{if(!k(e))throw Error("The first argument must be object type");if(!R(e["font-family"])||!R(e.src))throw Error("The font value must have font-family and src");if(!se(t))throw Error("The second argument must be function type");this.getNativeLynx().addFont(e,t)},this.stopExposure=this.getApp()._apiList.stopExposure,this.setObserverFrameRate=this.getApp()._apiList.setObserverFrameRate,this.performance=this.getApp().performance,this.beforePublishEvent=this.getApp()._aopManager._beforePublishEvent,this.setSessionStorageItem=(e,t)=>{this.dispatchSessionStorageEvent({type:"__SetSessionStorageItem",data:{key:e,value:t}})},this.getSessionStorageItem=(e,t)=>{this.getNativeApp().getSessionStorageItem(e,t)},this.subscribeSessionStorage=(e,t)=>{let i=r.__registerSharedDataCounter++;return this.getNativeApp().subscribeSessionStorage(e,i,t),i},this.unsubscribeSessionStorage=(e,t)=>{this.dispatchSessionStorageEvent({type:"__UnSubscribeSessionStorage",data:{key:e,listenerId:t}})},this.getDevtool=this.getNativeLynx().getDevtool,this.getCoreContext=this.getNativeLynx().getCoreContext,this.getJSContext=this.getNativeLynx().getJSContext,this.getUIContext=this.getNativeLynx().getUIContext,this.getNative=this.getNativeLynx().getNative,this.getEngine=this.getNativeLynx().getEngine,this.getCustomSectionSync=this.getNativeLynx().getCustomSectionSync,this.accessibilityAnnounce=this.getNativeApp().nativeModuleProxy.LynxAccessibilityModule?.accessibilityAnnounce,this.requestResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.requestResourcePrefetch,this.cancelResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.cancelResourcePrefetch,this.setSharedData=(e,t)=>{l.sharedData[e]=t;let i={};i[e]=t,l.shareDataSubject.notifyDataChange(i)},this.getSharedData=e=>l.sharedData[e],this.registerSharedDataObserver=e=>l.shareDataSubject.registerObserver(e),this.removeSharedDataObserver=e=>l.shareDataSubject.removeObserver(e),this.triggerLepusGlobalEvent=(e,t)=>this.getNativeApp().triggerLepusGlobalEvent(e,t),this.reload=(e,t)=>{this.getNativeLynx().reload(e,t)},this.fetchDynamicComponent=(e,t,i,n)=>this.getNativeLynx().fetchDynamicComponent(e,t,i,n),this.QueryComponent=(e,t)=>{let i=()=>{t({code:0,data:{url:e,sync:!0,error_message:"",mode:"cache"},detail:{schema:e,cache:!1,errMsg:""}})};if(this.getApp().loadedDynamicComponentsSet.has(e))return void i();let n=n=>{!0===n.__hasReady?(l.loadDynamicComponent(this.getApp(),e),i()):t(n)};this.getNativeLynx().QueryComponent(e,n)},this.loadDynamicComponent=(e,t,i={})=>new this.Promise((n,s)=>{let a=[],o;(Array.isArray(e)?(a=e,o=t):"string"==typeof t?(a=[e],o=t):(o=e,i=t),this.getApp().loadedDynamicComponentsSet.has(o))?n({code:0,data:{url:o,sync:!1,error_message:"",mode:"normal"},detail:{schema:o,cache:!1,errMsg:""}}):this.getNativeLynx().fetchDynamicComponent(o,i,e=>{e&&0==e.code?n(e):s(e)},a)}),this.fetch=(e,t)=>new this.Promise((i,n)=>{let s=new(this.getApp())._RequestClass(e,t),a=s.signal;if(a.aborted)return n(a.reason);a.addEventListener("abort",e=>{n(a.reason)});let o={method:s.method,url:s.url,origin:this.getNativeApp().__pageUrl,headers:Object.fromEntries(s.headers.entries()),body:s._arrayBuffer,lynxExtension:s.lynxExtension},h=s.lynxExtension.useStreaming;this.getApp().NativeModules.LynxFetchModule.fetch(o,e=>{if(!a.aborted)try{let t=new(this.getApp())._ReadableStreamClass,n=new(this.getApp())._ResponseClass(h?t:e.body,e);if(h){let e=n.lynxExtension.streamingId;this.getApp().GlobalEventEmitter.addListener(e,e=>{let i=e.event;"onData"===i?t.onData(e.data):"onEnd"===i?t.onEnd():"onError"===i&&t.onError(e.error)})}i(n)}catch{n(TypeError(e.statusText))}},e=>{a.aborted||n(TypeError(e.message))})}),this.createSelectorQuery=e=>A.newEmptyQuery({nativeApp:this.getNativeApp(),lynx:this},e),this.requestAnimationFrame=e=>this.getNativeApp().requestAnimationFrame(e),this.cancelAnimationFrame=e=>this.getNativeApp().cancelAnimationFrame(e),this.loadScript=this.getNativeLynx().loadScript,this.fetchBundle=this.getNativeLynx().fetchBundle,this.__addReporterCustomInfo=e=>{this.getNativeApp().__addReporterCustomInfo(e)},this.getModuleLoader=()=>l["napiRestrictedLoader"+this.getApp().nativeAppId],this.createAnimation=(e,t,i)=>new Y(e,t,i),this.init(void 0)}static{this.__registerSharedDataCounter=0}rebind(e){this.init(e)}init(e){if(e)this.getApp=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{};else{let e={};this.requireModule.cache=e,this.requireModuleAsync.cache=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{},this._switches={}}}dispatchSessionStorageEvent(e){0!=this.getCoreContext().dispatchEvent(e)&&this.getJSContext().dispatchEvent(e)}queueMicrotask(e){this.getNativeLynx().queueMicrotask(e)}},x=class{constructor(e){this._internal_callLynxSetModule=e,this._events=new Map}getEventsSize(e){return this._events.get(e)?.length}setCallLynxSetModule(e){this._internal_callLynxSetModule=e}addListener(e,t,r){let i=this._events.get(e);"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!0]),i?i.push({listener:t,context:r}):this._events.set(e,[{listener:t,context:r}])}removeListener(e,t){if("function"!=typeof t)throw Error("removeListener only takes instances of Function");let r=this._events.get(e),i=0;Array.isArray(r)&&r.some(e=>{if(t===e.listener)return!0;i++})&&r.splice(i,1),"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!1])}emit(e,t){let r=this._events.get(e);Array.isArray(r)&&r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.apply(i||this,t)})}removeAllListeners(e){"string"==typeof e?this._events.delete(e):this._events=new Map}trigger(e,t){let r=this._events.get(e);Array.isArray(r)&&("string"==typeof t&&(t=JSON.parse(t)),r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.call(i||this,t)}))}toggle(e,...t){this.emit(e,t)}},J=class{constructor(){this._beforePublishEvent=new le}},le=class extends x{add(e,t,r){return super.addListener(e,t,r),this}remove(e,t){return super.removeListener(e,t),this}},T=x,K=class{constructor(e){this._textInfoModule=void 0,this.getTextInfo=(e,t)=>(void 0===this._textInfoModule&&(this._textInfoModule=this._nativeModules.LynxTextInfoModule),this._textInfoModule&&this._textInfoModule.getTextInfo?this._textInfoModule.getTextInfo(e,t):{width:e.length}),this._nativeModules=e}},H=class{constructor(e){this.resumeExposure=()=>{this._exposureModule.resumeExposure()},this.stopExposure=e=>{this._exposureModule.stopExposure(e)},this.setObserverFrameRate=e=>{this._exposureModule.setObserverFrameRate(e)},this._nativeModules=e,this._exposureModule=this._nativeModules.LynxExposureModule}},ce=class{constructor(e,t){this._selector=e,this._callback=t}invokeCallback(e){this._callback(e)}},pe=class{constructor(e,t,r){this._id=e,this._intersectionObserverModule=t,this._manager=r,this._observationTargets=[],this._defaultMargins={left:0,right:0,top:0,bottom:0}}relativeTo(e,t){return this._intersectionObserverModule.relativeTo(this._id,e,t||this._defaultMargins),this}relativeToViewport(e){return this._intersectionObserverModule.relativeToViewport(this._id,e||this._defaultMargins),this}relativeToScreen(e){return this._intersectionObserverModule.relativeToScreen(this._id,e||this._defaultMargins),this}observe(e,t){this._observationTargets.push(new ce(e,t)),this._intersectionObserverModule.observe(this._id,e,this._observationTargets.length-1)}disconnect(){this._intersectionObserverModule.disconnect(this._id),this._manager.removeObserver(this._id)}invokeCallback(e,t){e<this._observationTargets.length&&this._observationTargets[e].invokeCallback(t)}},W=class{constructor(e){this._nativeModules=e,this._observerId=0,this._observers={},this._defaultOptions={thresholds:[0],initialRatio:0,observeAll:!1}}createIntersectionObserver(e,t){let r=this._nativeModules.IntersectionObserverModule,i=new pe(this._observerId,r,this);return this._observers[this._observerId]=i,r.createIntersectionObserver(this._observerId,e,t||this._defaultOptions),this._observerId++,i}getObserver(e){return this._observers[e]}removeObserver(e){this._observers[e]=null}},xe={onPerformance:"lynx.performance.onPerformanceEvent"},X=class{constructor(e,t){this._emitter=e,this._onPerformance=t,this._observedNames=[]}observe(e){this._observedNames.length>0||(this._observedNames=e,this._emitter.addListener(xe.onPerformance,this.onPerformanceEvent.bind(this)))}disconnect(){this._observedNames=[],this._emitter.removeListener(xe.onPerformance,this.onPerformanceEvent.bind(this))}onPerformanceEvent(e){if(0===this._observedNames.length)return;let t=e.entryType+"."+e.name;(this._observedNames.includes(t)||this._observedNames.includes(e.entryType))&&this._onPerformance(e)}},N={onSetup:"lynx.performance.timing.onSetup",onUpdate:"lynx.performance.timing.onUpdate"},P=class{constructor(e,t){this._emitter=e,this._generatePipelineOptions=t.generatePipelineOptions,this._onPipelineStart=t.onPipelineStart,this._markTiming=t.markPipelineTiming,this._profileStart=t.profileStart,this._profileEnd=t.profileEnd,this._profileMark=t.profileMark,this._profileFlowId=t.profileFlowId,this._isProfileRecording=t.isProfileRecording,this._bindPipelineIdWithTimingFlag=t.bindPipelineIdWithTimingFlag}profileStart(e,t){this._profileStart(e,t)}profileEnd(){this._profileEnd()}profileMark(e,t){this._profileMark(e,t)}profileFlowId(){return this._profileFlowId()}createObserver(e){return new X(this._emitter,e)}isProfileRecording(){return this._isProfileRecording()}addTimingListener(e){this._emitter.addListener(N.onSetup,e.onSetup,e),this._emitter.addListener(N.onUpdate,e.onUpdate,e)}removeTimingListener(e){this._emitter.removeListener(N.onSetup,e.onSetup),this._emitter.removeListener(N.onUpdate,e.onUpdate)}removeAllTimingListener(){this._emitter.removeAllListeners(N.onSetup),this._emitter.removeAllListeners(N.onUpdate)}_initializeAndStartPipeline(){let e=this._generatePipelineOptions();return e&&this._onPipelineStart(e.pipelineID),e}_checkAndBindTimingFlag(e,t){if(!e)return;let r="__lynx_timing_flag";t[r]&&(this._bindPipelineIdWithTimingFlag(e.pipelineID,t[r]),this._markTiming(e.pipelineID,"update_set_state_trigger"),e.needTimestamps=!0)}},Re=P,Se=l.LynxJSBI,f=class r{constructor(e){for(let t in this._cachedFunctions={},e)Object.defineProperty(this,t,{get(){if(this._cachedFunctions[t])return this._cachedFunctions[t];let r=e[t];return"function"==typeof r&&(this._cachedFunctions[t]=r),r}})}static create(e){return new r(e)}};function Ae(e,t,r,i,n=!1){let{getPromise:s}=l;return"function"==typeof s?s({nextTick:n?i:t=>e(t,0),setTimeout:e,onUnhandled:t,clearTimeout:r}):l.Promise}var Me,M=class{constructor(){}decode(e){return 0===e.byteLength?"":(e instanceof DataView?e=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):ArrayBuffer.isView(e)&&(e=e.buffer),globalThis.TextCodecHelper.decode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}get fatal(){return!1}get ignoreBOM(){return!0}},z=class{constructor(){}encode(e){return new Uint8Array(globalThis.TextCodecHelper.encode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}},O=class r{constructor(){this._arrayBuffer=new ArrayBuffer(0),this._bodyStream=null,this._bodyUsed=!1}safeUseBody(e){if(this._bodyUsed)return;let t=e(this._arrayBuffer);return this._bodyUsed=!0,this._arrayBuffer=null,t}cloneArrayBuffer(e){return e.slice(0)}setBody(e){if(e instanceof r){if(e._bodyUsed||e._bodyStream)throw Error("body used, or try to copy body stream");this._arrayBuffer=this.cloneArrayBuffer(e._arrayBuffer)}else e instanceof ArrayBuffer?this._arrayBuffer=this.cloneArrayBuffer(e):e instanceof DataView?this._arrayBuffer=this.cloneArrayBuffer(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):ArrayBuffer.isView(e)?this._arrayBuffer=this.cloneArrayBuffer(e.buffer):e&&(this._arrayBuffer=new z().encode(e.toString()).buffer),globalThis.ReadableStream&&e instanceof ReadableStream&&(this._bodyStream=e)}arrayBuffer(){return Promise.resolve(this.safeUseBody(e=>e))}get body(){if(this._bodyUsed)throw Error("body used");return this._bodyUsed=!0,this._bodyStream}text(){return Promise.resolve(this.safeUseBody(e=>new M().decode(e)))}json(){return Promise.resolve(this.safeUseBody(e=>JSON.parse(new M().decode(e))))}get bodyUsed(){return this._bodyUsed}},D=class r{constructor(e){if(this._headers_map=new Map,this[Me]="Headers",null===e||"number"==typeof e)throw TypeError("Headers init with null/number");if(e instanceof r)for(let[t,i]of e)this.append(t,i);else Array.isArray(e)?e.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(" "):t)}):e&&Object.getOwnPropertyNames(e).forEach(t=>{let i=e[t];this.append(t,Array.isArray(i)?i.join(" "):i)})}[(Me=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(let[e,t]of this._headers_map)yield e}*values(){for(let[e,t]of this._headers_map)yield t}*entries(){for(let e of this._headers_map)yield e}has(e){return this._headers_map.has(e)}get(e){return this._headers_map.get(e)??null}set(e,t){this._headers_map.set(e,String(t))}append(e,t){let r=this.has(e)?`${this.get(e)}, ${t}`:t;this.set(e,r)}delete(e){this.has(e)&&this._headers_map.delete(e)}forEach(e,t){for(let[r,i]of this.entries())e.call(t,i,r,this)}},Z=class r extends T{get aborted(){return this._aborted}get reason(){return this._reason}constructor(){super(),this._aborted=!1}get[Symbol.toStringTag](){return"[object AbortSignal]"}dispatchEvent(e){"abort"===e.type&&(this._aborted=!0,this._reason=e.reason,"function"==typeof this.onabort&&this.onabort.call(this,e)),super.emit(e.type,e)}addEventListener(e,t){super.addListener(e,t)}removeEventListener(e,t){super.removeListener(e,t)}static __create(){return new r}};function de(e){return class e extends O{get url(){return this._url}get headers(){return this._headers}get method(){return this._method}get signal(){return this._signal}get lynxExtension(){return this._lynxExtension}constructor(t,r){if(super(),r=r||{},t instanceof e){if(t.bodyUsed)throw TypeError("Already read");this._url=t.url,r.headers||(this._headers=new D(t.headers)),this._method=t.method,this._signal=t.signal,this.setBody(t._arrayBuffer)}else this._url=String(t);if((r.headers||!this.headers)&&(this._headers=new D(r.headers)),this._method=r.method||this.method||"GET",this._method=this._method.toUpperCase(),("GET"===this.method||"HEAD"===this.method)&&r.body)throw TypeError("Body not allowed for GET or HEAD requests");"u">typeof r.signal&&(this._signal=r.signal),this._signal=this._signal||Z.__create(),this._lynxExtension=r.lynxExtension||{},this._headers.get("Content-Type")||("string"==typeof r.body?this._headers.set("Content-Type","text/plain;charset=UTF-8"):globalThis.URLSearchParams&&r.body instanceof URLSearchParams?this._headers.set("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"):r.body instanceof ArrayBuffer||this._headers.set("Content-Type","text/plain;charset=UTF-8")),this.setBody(r.body)}clone(){let t=new e(this,{method:this.method});return t.setBody(this),t}}}function _e(e){return class e extends O{get url(){return this._url}get status(){return this._status}get statusText(){return this._statusText}get ok(){return this._ok}get headers(){return this._headers}get lynxExtension(){return this._lynxExtension}constructor(e,t){if(super(),t=t||{},this._status=void 0===t.status?200:t.status,this._status<200||this._status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this._ok=this._status>=200&&this._status<300,this._statusText=void 0===t.statusText?"":""+t.statusText,this._headers=new Headers(t.headers),this._url=t.url||"",this._lynxExtension=t.lynxExtension||{},this.setBody(e)}clone(){let t=new e(null,{status:this._status,statusText:this._statusText,headers:new Headers(this._headers),url:this._url});return t.setBody(this),t}}}function he(e){return class{constructor(){this.__dataReceived=[],this.__done=!1,this.__cancelled=!1,this.__locked=!1,this.__eventCenter=new T}onData(e){this.__cancelled||(this.__dataReceived.push(e),this.__eventCenter.emit("waitSignal",null))}onEnd(){this.__done=!0,this.__eventCenter.emit("waitSignal",null)}onError(e){this.__error=Error(e),this.__eventCenter.emit("waitSignal",null)}processRead(e,t){if(this.__error)return t(this.__error);if(this.__cancelled||this.__done&&0==this.__dataReceived.length)return e({done:!0,value:void 0});if(this.__dataReceived.length>0)return e({done:!1,value:this.__dataReceived.shift()});let r=()=>{this.__eventCenter.removeListener("waitSignal",r),this.processRead(e,t)};this.__eventCenter.addListener("waitSignal",r,this)}__read(){return new e((e,t)=>{this.processRead(e,t)})}get locked(){return this.__locked}cancel(t){return this.__cancelled=!0,this.__dataReceived=null,this.__eventCenter.emit("waitSignal",null),e.resolve(t)}getReader(){return this.__locked?null:(this.__locked=!0,new me(this))}}}var me=class{constructor(e){this.__stream=e}cancel(e){return this.__stream.cancel(e)}read(){return this.__stream.__read()}},ee=class{static{this.EXECUTE_LOADED_SCRIPT="executeLoadedScript"}},u=class _BaseApp{constructor(e,t){this.dataTypeSet=new Set(["string","number","array","object","boolean","null","function"]),this.removeInternalEventListenersCallbacks=[],this.setSourceMapRelease=e=>{this.Reporter.setSourceMapRelease(e)},this.getSourceMapRelease=e=>this.Reporter.getSourceMapRelease(e),this.setupGetTextInfoApi=()=>{this._apiList.getTextInfo=(e,t)=>this._textInfoManager.getTextInfo(e,t)},this.setupExposureApi=()=>{this._apiList.resumeExposure=()=>{this._exposureManager.resumeExposure()},this._apiList.stopExposure=e=>{this._exposureManager.stopExposure(e||{sendEvent:!0})},this._apiList.setObserverFrameRate=e=>{this._exposureManager.setObserverFrameRate(e||{forPageRect:20,forExposureCheck:20})}},this.requestAnimationFrame=e=>this._nativeApp.requestAnimationFrame(e),this.cancelAnimationFrame=e=>this._nativeApp.cancelAnimationFrame(e),this.__removeInternalEventListeners=()=>{this.removeInternalEventListenersCallbacks.forEach(e=>{e()})},this.initBase(e),t?t.transferSingletonData(this,this.__internal__callLynxSetModule.bind(this)):this.initExtra(e),this.setTimeout=this.nativeApp.setTimeout,this.setInterval=this.nativeApp.setInterval,this.clearInterval=this.nativeApp.clearInterval,this.clearTimeout=this.nativeApp.clearTimeout,this.addInternalEventListeners()}initExtra(e){let{lynx:t}=e;this.modules={},this._lazyCallableModules=new Map,this._nativeApp=f.create(this._nativeApp),this.sharedConsole=w(`runtimeId:${this.nativeAppId}`),this.dynamicComponentExports={},this.loadedDynamicComponentsSet=new Set,this._lazyCallableModules=new Map,this.Reporter=new I(()=>this,()=>this.nativeApp),this.GlobalEventEmitter=new T(this.__internal__callLynxSetModule.bind(this)),this._intersectionObserverManager=new W(this.NativeModules),this._exposureManager=new H(this.NativeModules),this.setupExposureApi(),this._aopManager=new J,this.beforePublishEvent=this._aopManager._beforePublishEvent,this.performance=new Re(this.GlobalEventEmitter,this.nativeApp);let r=this.setupPromise(this.nativeApp.setTimeout,this.nativeApp.clearTimeout,t);this.lynx=this.createLynx(t,r),this.setupJSModule(),this.setupIntersectionApi(),this.setupFetchAPI(r)}initBase(e){let{nativeApp:t,params:r}=e;this.nativeAppId=t.id,this._params=r,this._nativeApp=t,this.NativeModules=t.nativeModuleProxy,this.LynxUIMethodModule=t.nativeModuleProxy.LynxUIMethodModule,this.LynxTestModule=t.nativeModuleProxy.LynxTestModule,this.LynxResourceModule=t.nativeModuleProxy.LynxResourceModule,this.LynxAccessibilityModule=t.nativeModuleProxy.LynxAccessibilityModule,this.LynxSetModule=t.nativeModuleProxy.LynxSetModule,this._apiList={},this._textInfoManager=new K(this.NativeModules),this.setupGetTextInfoApi()}static{this.kDefaultSourceMapURL="default"}static{this.kGetSourceMapReleaseErrorName=ge}set __sourcemap__release__(e){let t=Error();t.name="LynxGetSourceMapReleaseError",t.message=e,t.stack=`at <anonymous> (${_BaseApp.kDefaultSourceMapURL}:1:1)`,this.setSourceMapRelease(t)}destroy(){this.__removeInternalEventListeners(),this._nativeApp=null,this._params=null,this._lazyCallableModules=null,this.GlobalEventEmitter=null}registerModule(e,t){this._lazyCallableModules[e]=t}getJSModule(e){return this._lazyCallableModules[e]}setupJSModule(){this.registerModule("GlobalEventEmitter",this.GlobalEventEmitter),this.registerModule("Reporter",this.Reporter)}setupFetchAPI(e){this._createResponseClass=_e,this._createRequestClass=de,this._createReadableStreamClass=he,this._RequestClass=l.Request??de(e),this._ResponseClass=l.Response??_e(e),this._ReadableStreamClass=l.ReadableStream??he(e),l.Request||(l.Request=this._RequestClass),l.Response||(l.Response=this._ResponseClass),l.ReadableStream||(l.ReadableStream=this._ReadableStreamClass)}__internal__callLynxSetModule(e,t){let r=this.LynxSetModule[e];r&&Function.prototype.apply.call(r,void 0,t)}get nativeApp(){return this._nativeApp}set nativeApp(e){this._nativeApp=e}get params(){return this._params}set apiList(e){this._apiList={...this._apiList,...e}}setupIntersectionApi(){let e=this;this._apiList.createIntersectionObserver=function(t,r){let{componentId:i=""}=t;return e._intersectionObserverManager.createIntersectionObserver(i,r)},this.lynx.createIntersectionObserver=this._apiList.createIntersectionObserver}onIntersectionObserverEvent(e,t,r){let i=this._intersectionObserverManager.getObserver(e);i&&i.invokeCallback(t,r)}reportError(e){return this.lynx.reportError(e)}handleError(e,t,r){h(e,this.nativeApp,{originError:t,getSourceMapRelease:this.getSourceMapRelease,errorLevel:r})}handleUserError(e,t,r,i){let{message:n,name:s,stack:a}=e||{};n||({message:n,name:s,stack:a}=Error(JSON.stringify(e)));let o=new g(i?`${i} ${s}: ${n}`:`${s}: ${n}`,a);o.cause=t,this.handleError(o,e,r)}handleInternalError(e,t){let{message:r,name:i,stack:n}=e||{};r||({message:r,name:i,stack:n}=Error(JSON.stringify(e)));let s=new y(`${i}: ${r}`,n);s.cause=t,this.handleError(s,e)}getBoolEnv(e){return this.nativeApp.getEnv(e)?.toLowerCase()==="true"}static{this._$factoryCache={}}_$executeInit(e,{path:t,entryName:r}){let i;if(e&&e.init)i=e.init.bind(e);else if(l.initBundle)i=l.initBundle.bind(l.initBundle),delete l.initBundle;else throw new g(`load failed. path:${t},entryName:${r}`);try{this.lynx.performance.profileStart(ee.EXECUTE_LOADED_SCRIPT,{args:{path:t}});let e=i({tt:this});return _BaseApp._$factoryCache[t]=i,e}finally{this.lynx.performance.profileEnd()}}_$executeJSON(e,{path:t}){let r=JSON.parse(e),i=()=>r;return _BaseApp._$factoryCache[t]=i,r}requireModule(e,t,r){let i=_BaseApp._$factoryCache[e];if(i)return this._$executeInit({init:i},{path:e,entryName:t});if(e.split("?")[0].endsWith(".json")){let i=this.nativeApp.readScript(e,{dynamicComponentEntry:t??_,...r});return this._$executeJSON(i,{path:e,entryName:t})}let n=this.nativeApp.loadScript(e,t,r);return this._$executeInit(n,{path:e,entryName:t})}requireModuleAsync(e,t){let r=_BaseApp._$factoryCache[e];if(r)return void t(null,this._$executeInit({init:r},{path:e}));if(e.split("?")[0].endsWith(".json")){try{let r=this.nativeApp.readScript(e),i=this._$executeJSON(r,{path:e});t(null,i)}catch(e){t(e)}return}let i=Error();this.nativeApp.loadScriptAsync(e,(r,n)=>{if(r)return i.message=r,t(i);try{return t(null,this._$executeInit(n,{path:e}))}catch(e){return t(e)}})}require(path,params){let that=this;if("string"!=typeof path)throw Error("require args must be a string");let entryName=params&¶ms.dynamicComponentEntry?params.dynamicComponentEntry:_;that.modules[entryName]||(that.modules[entryName]={});let module=that.modules[entryName][path];if(!module){try{let tt=that,jsContent=that._nativeApp.readScript(path,{dynamicComponentEntry:entryName});eval(jsContent),module=that.modules[entryName][path]}catch(r){this.handleError(new g(`eval user: ${that._nativeApp.id} error: ${r.message}`,r.stack),r)}if(!that.modules[entryName][path])throw Error(`module ${path} in ${entryName} is not defined in card: ${that._nativeApp.id}`)}if(!module.hasRun){let{factory:r}=module,e={exports:{}},t;if(module.hasRun=!0,module.exports=e.exports,"function"==typeof r){let n=Ue.call(that,path),o=that;t=r(n,e,e.exports,that.Card.bind(o),that.setTimeout,that.setInterval,that.clearInterval,that.clearTimeout,that.NativeModules,that._apiList,that.sharedConsole,that.Component.bind(o),params?.ReactLynx,that.nativeAppId,that.Behavior.bind(o),Se,that.lynx,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,that.lynx.fetch,void 0,void 0,void 0,void 0,void 0,void 0,that.requestAnimationFrame,that.cancelAnimationFrame),module.exports=e.exports||t}}return module.exports}define(e,t,r){r=r||_,this.modules[r]||(this.modules[r]={}),this.modules[r][e]={hasRun:!1,factory:t.bind(this)}}callFunction(e,t,r){try{let i=this.getJSModule(e);"function"==typeof i[t]&&i[t].apply(i,r)}catch(r){this.handleUserError(r,{by:`${e}.${t}`})}}onAppError(e,t){this.handleInternalError(t)}saveDynamicComponentExports(e,t){this.dynamicComponentExports[e]=t}getDynamicComponentExports(e){return this.dynamicComponentExports[e]}Component(){}Card(){}Behavior(){}wrapReport(e,t){let r=this;function i(e){return function(...i){try{return e.apply(this,i)}catch(e){r.handleUserError(e,{by:t})}}}return function(t,...r){return Function.prototype.apply.call(e,void 0,[i(t),...r])}}setupPromise(e,t,r){let i=Ae(e,(e,t)=>{try{t&&(t.stack||(t=Error(JSON.stringify(t))),t.name="unhandled rejection",this.handleUserError(t))}catch{}},t,r.queueMicrotask,this._params?.pageConfigSubset?.enableMicrotaskPromisePolyfill??!1);return this.resolvedPromise=i.resolve(),i}addInternalEventListener(e,t,r){this.contextProxyTypeToMethod[e]().addEventListener(t,r),this.removeInternalEventListenersCallbacks.push(()=>{this.contextProxyTypeToMethod[e]().removeEventListener(t,r)})}addInternalEventListeners(){this.contextProxyTypeToMethod||(this.contextProxyTypeToMethod={0:()=>this.lynx.getCoreContext(),1:()=>this.lynx.getDevtool(),2:()=>this.lynx.getJSContext(),3:()=>this.lynx.getUIContext(),4:()=>this.lynx.getNative(),5:()=>this.lynx.getEngine()}),this.addInternalEventListener(0,"__OnNativeAppReady",()=>{this.onNativeAppReady()}),this.addInternalEventListener(0,"__NotifyGlobalPropsUpdated",e=>{this.updateGlobalProps(e.data)}),this.addInternalEventListener(0,"__OnLifecycleEvent",e=>{this.OnLifecycleEvent(e.data)}),this.addInternalEventListener(0,"__OnAppFirstScreen",()=>{this.onAppFirstScreen()}),this.addInternalEventListener(0,"__OnDynamicJSSourcePrepared",e=>{l.loadDynamicComponent(this,e.data)}),this.addInternalEventListener(0,"__OnAppEnterForeground",()=>{this.onAppEnterForeground()}),this.addInternalEventListener(0,"__OnAppEnterBackground",()=>{this.onAppEnterBackground()})}updateGlobalProps(e){}OnLifecycleEvent(e){}onNativeAppReady(){}onAppFirstScreen(){}onAppEnterBackground(){}onAppEnterForeground(){}};function De(e){let t=e.match(/(.*)\/([^/]+)?$/);return t?.[1]?t[1]:"./"}function Ue(e){let t=this,r=De(e);return function(e){let i=[],n=`${r}/${e}`.split("/"),s=n.length;if("string"!=typeof e)throw Error("require args must be a string");for(let r=0;r<s;++r){let a=n[r];if(""!==a&&"."!==a)if(".."===a){if(0===i.length)throw Error(`can't find module ${e} in app: ${t._nativeApp.id}`);i.pop()}else r+1<s&&".."===n[r+1]?r++:i.push(a)}let a=i.join("/");return a.endsWith(".js")||(a+=".js"),t.require(a)}}var te=class extends u{createLynx(e,t){let r=f.create(e);return new b(()=>this.nativeApp,()=>this,t,()=>r)}callBeforePublishEvent(e){if(0!==this._aopManager._beforePublishEvent.getEventsSize(e.type)){let t={...e};try{this._aopManager._beforePublishEvent.emit(t.type,[t])}catch(e){this.handleUserError(e,{by:"callBeforePublishEvent",type:t.type})}}}},fe=class{transferSingletonData(e,t){e.nativeApp=this.nativeApp,e.sharedConsole=this.sharedConsole,e.dynamicComponentExports=this.dynamicComponentExports,e.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,e._intersectionObserverManager=this.intersectionObserverManager,e._exposureManager=this.exposureManager,e._textInfoManager=this.textInfoManager,this.globalEventEmitter.setCallLynxSetModule(t),e.GlobalEventEmitter=this.globalEventEmitter,e._aopManager=this.aopManager,e.performance=this.performance,e.modules=this.modules,e._lazyCallableModules=this.lazyCallableModules,e.lynx=this.lynx,this.lynx.rebind(()=>e),e._apiList=this.apiList,this.Reporter.rebind(()=>e),e.Reporter=this.Reporter,e.resolvedPromise=this.resolvedPromise}},U=class extends u{constructor(e,t){super(e,void 0),this.fillSingletonData();try{t.srcName&&(delete this.lynx.requireModule.cache[t.srcName],delete u._$factoryCache[t.srcName],this.lynx.requireModule(t.srcName,_),this.dataTypeSet.add("undefined"))}catch(e){this.handleUserError(e)}}createLynx(e,t){let r=f.create(e);return new b(()=>this.nativeApp,()=>this,t,()=>r)}fillSingletonData(){this.singletonData=new fe,this.singletonData.nativeApp=this._nativeApp,this.singletonData.sharedConsole=this.sharedConsole,this.singletonData.dynamicComponentExports=this.dynamicComponentExports,this.singletonData.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,this.singletonData.intersectionObserverManager=this._intersectionObserverManager,this.singletonData.exposureManager=this._exposureManager,this.singletonData.textInfoManager=this._textInfoManager,this.singletonData.globalEventEmitter=this.GlobalEventEmitter,this.singletonData.aopManager=this._aopManager,this.singletonData.performance=this.performance,this.singletonData.modules=this.modules,this.singletonData.lazyCallableModules=this._lazyCallableModules,this.singletonData.lynx=this.lynx,this.singletonData.apiList=this._apiList,this.singletonData.Reporter=this.Reporter,this.singletonData.resolvedPromise=this.resolvedPromise}};function we(e,t,r){let{id:i}=e,{cardType:n}=t,s=!0,a;try{if(a="standalone"==n?new U({nativeApp:e,params:t,lynx:r},t):new te({nativeApp:e,params:t,lynx:r}),l.currentAppId=i,l.multiApps[i]=a,"standalone"===n)return e.setCard(a),!0;t.bundleSupportLoadScript,s=!0;try{delete a.lynx.requireModule.cache[E],delete u._$factoryCache[E],a.lynx.requireModule(E,_),a.lynx._switches.allowUndefinedInNativeDataTypeSet&&a.dataTypeSet.add("undefined")}catch(e){s=!1,a.handleUserError(e,void 0,void 0,"loadCard failed")}e.setCard(a)}catch(t){qe(e,t),s=!1}return s}function ke(e){l.multiApps[e].destroy(),delete l.multiApps[e]}function Fe(e){l.multiApps[e].callDestroyLifetimeFun()}function Be(e,t){if(e.loadedDynamicComponentsSet.has(t))return e.getDynamicComponentExports(t);let r=l.globDynamicComponentEntry;l.globDynamicComponentEntry=t;try{delete e.lynx.requireModule.cache[E],delete u._$factoryCache[E];let r=e.lynx.requireModule(E,t);return e.saveDynamicComponentExports(t,r),e.loadedDynamicComponentsSet.add(t),r}catch(t){e.handleUserError(t)}finally{l.globDynamicComponentEntry=r}}function qe(e,t,r){let{message:i,name:n,stack:s}=t||{};i||({message:i,name:n,stack:s}=Error(JSON.stringify(t)));let a=new y(`loadCard failed ${n}: ${i}`,s);a.cause=r,h(a,e,{originError:t,getSourceMapRelease:t=>{if(!e.__GetSourceMapRelease(t))return e.__GetSourceMapRelease(u.kDefaultSourceMapURL)}})}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,(()=>{var e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",r=__webpack_require__.aE=e?Symbol("webpack exports"):"__webpack_exports__",i=e?Symbol("webpack error"):"__webpack_error__",n=e?Symbol("webpack done"):"__webpack_done__",s=__webpack_require__.zS=e?Symbol("webpack defer"):"__webpack_defer__",a=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o=e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[t]&&e[s]){var o=e[s];if(!o.some(e=>{var t=__webpack_module_cache__[e];return!t||!1===t[n]}))return e;var l=e;e={then(e){Promise.all(o.map(__webpack_require__)).then(()=>e(l))}}}if(e[t])return e;if(e.then){var h=[];h.d=0,e.then(e=>{c[r]=e,a(h)},e=>{c[i]=e,a(h)});var c={};return c[s]=!1,c[t]=e=>e(h),c}}var u={};return u[t]=function(){},u[r]=e,u});__webpack_require__.a=(e,l,h)=>{h&&((c=[]).d=-1);var c,u,d,p,_=new Set,m=e.exports,y=new Promise((e,t)=>{p=t,d=e});y[r]=m,y[t]=e=>{c&&e(c),_.forEach(e),y.catch(function(){})},e.exports=y,l(e=>{u=o(e);var n,a=()=>u.map(e=>{if(e[s])return e;if(e[i])throw e[i];return e[r]}),l=new Promise(e=>{(n=()=>e(a)).r=0;var r=e=>e!==c&&!_.has(e)&&(_.add(e),e&&!e.d&&(n.r++,e.push(n)));u.map(e=>e[s]||e[t](r))});return n.r?l:a()},e=>(e?p(y[i]=e):d(m),a(c),y[n]=!0)),c&&c.d<0&&(c.d=0)}})(),(()=>{__webpack_require__.F={},__webpack_require__.E=e=>{Object.keys(__webpack_require__.F).map(t=>{__webpack_require__.F[t](e)})}})(),(()=>{__webpack_require__.H={},__webpack_require__.G=e=>{Object.keys(__webpack_require__.H).map(t=>{__webpack_require__.H[t](e)})}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=(e,t)=>Promise.all(Object.keys(__webpack_require__.f).reduce((r,i)=>(__webpack_require__.f[i](e,r,t),r),[]))})(),(()=>{__webpack_require__.u=e=>"static/js/async/"+({361:"web-core-main-thread-apis",8:"legacy-wasm-chunk",895:"web-worker-runtime-main-thread"})[e]+".js"})(),(()=>{__webpack_require__.miniCssF=e=>""+e+".css"})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.p="http://lynx-web-core-mocked.localhost/"})(),(()=>{__webpack_require__.v=function(e,t,r,i){var n=fetch(__webpack_require__.p+"static/wasm/"+r.slice(0,8)+".module.wasm"),s=function(){return n.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,i)}).then(function(t){return Object.assign(e,t.instance.exports)})};return n.then(function(t){return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,i).then(function(t){return Object.assign(e,t.instance.exports)},function(e){if("application/wasm"!==t.headers.get("Content-Type"))return 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",e),s();throw e}):s()})}})(),(()=>{var e={524:1},t=t=>{var[r,n,s]=t;for(var a in n)__webpack_require__.o(n,a)&&(__webpack_require__.m[a]=n[a]);for(s&&s(__webpack_require__);r.length;)e[r.pop()]=1;i(t)};__webpack_require__.f.i=(t,r)=>{e[t]||importScripts(__webpack_require__.p+__webpack_require__.u(t))};var r=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[],i=r.push.bind(r);r.push=t})(),(()=>{var e={895:["361"]};__webpack_require__.f.prefetch=(t,r)=>{Promise.all(r).then(()=>{var r=e[t];Array.isArray(r)&&r.map(__webpack_require__.E)})}})(),(()=>{var e={895:["361"]};__webpack_require__.f.preload=t=>{var r=e[t];Array.isArray(r)&&r.map(__webpack_require__.G)}})();var __webpack_exports__={};(()=>{var e=__webpack_require__(9679),t=__webpack_require__(4234);function r(e,r){let i=e.createCall(t.Fw);return(e,t)=>{r[e]&&t(r[e]),i(e).then(t)}}let i=(e,r)=>{let i=r.createCall(t.vn);return{animate(t,r,n,s){i("animate",e,{operation:t,id:r,keyframes:n,timingOptions:s})}}};function n(e,n,s,a){let o=new t.tf({rpc:s,receiveEventEndpoint:t.jK,sendEventEndpoint:t.Is});return{__globalProps:e.globalProps,getJSModule(e){},getNativeApp:()=>n,getCoreContext:()=>o,getCustomSectionSync:t=>e.customSections[t],getCustomSection:r(s,e.customSections),queueMicrotask:e=>{queueMicrotask(e)},createElement:(e,t)=>i(t,a),getI18nResource:()=>n.i18nResource.data,QueryComponent:(e,t)=>n.queryComponent(e,t)}}function s(e){return(r,i,n,s,a,o,l)=>{e.invoke(t.zk,[r,i,n,s,a,l]).then(o).catch(e=>{console.error("[lynx-web] invokeUIMethod failed",e),o({code:t.O4.UNKNOWN,data:""})})}}function a(e,r){e.registerHandlerLazy(t.Ke,r,"publicComponentEvent")}function o(e,r){e.registerHandler(t.pd,({exposures:e,disExposures:t})=>{e.length>0&&r.GlobalEventEmitter.emit("exposure",[e.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))]),t.length>0&&r.GlobalEventEmitter.emit("disexposure",[t.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))])})}async function l(e,r,i){let n=r.createCall(t.eZ),s=e.createCall(t.g),a={resumeExposure(){n(!0,!0)},stopExposure(e){n(!1,e.sendEvent??!0)}},o={call(e,t,r){s(e,t,"bridge").then(r)}},l={},h={};return await Promise.all(Object.entries(i).map(([e,t])=>import(t).then(t=>h[e]=t?.default?.(l,(t,r)=>s(t,r,e))))),Object.assign(l,{bridge:o,LynxExposureModule:a,...h})}function h(e,r){e.registerHandlerLazy(t.Ve,r,"updateCardData")}function c(e,r){e.registerHandlerLazy(t.JW,r,"publishEvent")}function u(e){let t=0;return{generatePipelineOptions:()=>({pipelineID:"_pipeline_"+t++,needTimestamps:!1}),onPipelineStart:function(){},markPipelineTiming:function(t,r){e.markTimingInternal(r,t)},bindPipelineIdWithTimingFlag:function(t,r){e.pipelineIdToTimingFlags.has(t)||e.pipelineIdToTimingFlags.set(t,[]),e.pipelineIdToTimingFlags.get(t).push(r)},profileStart:()=>{console.error("NYI: profileStart. This is an issue of lynx-core.")},profileEnd:()=>{console.error("NYI: profileEnd. This is an issue of lynx-core.")},profileMark:()=>{console.error("NYI: profileMark. This is an issue of lynx-core.")},profileFlowId:()=>(console.error("NYI: profileFlowId. This is an issue of lynx-core."),0),isProfileRecording:()=>(console.error("NYI: isProfileRecording. This is an issue of lynx-core."),!1)}}function d(e,r){e.registerHandler(t.hO,(...e)=>{r.GlobalEventEmitter.emit(...e)})}function p(){let e=new FinalizationRegistry(e=>e());return t=>{let r={};return e.register(r,t),r}}function _(e,r){e.registerHandlerLazy(t.yn,r,"updateGlobalProps")}function m(e,r,i,n){e.registerHandler(t.BE,e=>{i.setData(e),n.GlobalEventEmitter.emit("onI18nResourceReady",[])}),r.registerHandler(t.mB,e=>{i.setData(e),n.GlobalEventEmitter.emit("onI18nResourceReady",[])})}function y(e){return(r,i,n,s,a,o)=>{e.invoke(t.ZU,[r,i,n,s,o]).then(a).catch(e=>{console.error("[lynx-web] getPathInfo failed",e),a({code:t.O4.UNKNOWN,data:e.message||""})})}}function f(e){let t=new Map([["__Card__",e]]),r=(e,r="__Card__")=>{let i=t.get(r)?.manifest[`/${e}`];if(i)return i;let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status)return n.responseText;throw Error(`Failed to load ${e}, status: ${n.status}`)},i=async(e,r="__Card__")=>{let i=t.get(r)?.manifest[`/${e}`];return i||new Promise((t,r)=>{fetch(e).then(i=>{i.ok?i.text().then(e=>t(e),r):r(Error(`Failed to load ${e}, status: ${i.status}`))},r)})},n=(e,t)=>{let r=Function("postMessage","module","exports","lynxCoreInject","Card","setTimeout","setInterval","clearInterval","clearTimeout","NativeModules","Component","ReactLynx","nativeAppId","Behavior","LynxJSBI","lynx","window","document","frames","location","navigator","localStorage","history","Caches","screen","alert","confirm","prompt","fetch","XMLHttpRequest","webkit","Reporter","print","global","requestAnimationFrame","cancelAnimationFrame",e+"\n//# sourceURL="+t);return{init(e){let t={exports:{}},i=e.tt;return r(void 0,t,t.exports,e,i.Card.bind(i),i.setTimeout,i.setInterval,i.clearInterval,i.clearTimeout,i.NativeModules,i.Component.bind(i),i.ReactLynx,i.nativeAppId,i.Behavior,i.LynxJSBI,i.lynx,i.window,i.document,i.frames,i.location,i.navigator,i.localStorage,i.history,i.Caches,i.screen,i.alert,i.confirm,i.prompt,i.fetch,i.XMLHttpRequest,i.webkit,i.Reporter,i.print,i.global,i.requestAnimationFrame,i.cancelAnimationFrame),t.exports}}};return{readScript:r,loadScript:(e,t="__Card__")=>n(r(e,t),`${encodeURIComponent(t)}/${e}`),loadScriptAsync:async(e,t,r="__Card__")=>{i(e,r).then(i=>{t(null,n(i,`${encodeURIComponent(r)}/${e}`))})},templateCache:t}}let g=0,v={};async function b(e){let{mainThreadRpc:r,uiThreadRpc:i,template:n,nativeModulesMap:b,timingSystem:x}=e,E=u(x),S=r.createCallbackify(t.iH,2),A=i.createCall(t.PC),M=i.createCall(t.pT),T=i.createCallbackify(t.vr,3),C=r.createCall(t.nk),w=i.createCall(t.o2),{templateCache:I,loadScript:R,loadScriptAsync:k,readScript:L}=f(n);r.registerHandler(t.WS,(e,t)=>{I.set(e,t)});let O=new t.xY,N="",P={id:(g++).toString(),...E,setTimeout:setTimeout,setInterval:setInterval,clearTimeout:clearTimeout,clearInterval:clearInterval,nativeModuleProxy:await l(i,r,b),readScript:L,loadScriptAsync:k,loadScript:R,requestAnimationFrame:e=>requestAnimationFrame(e),cancelAnimationFrame:e=>cancelAnimationFrame(e),callLepusMethod:S,setNativeProps:A,getPathInfo:y(i),invokeUIMethod:s(i),tt:null,setCard(e){a(r,e),c(r,e),o(r,e),h(r,e),d(i,e),_(i,e),m(i,r,O,e),x.registerGlobalEmitter(e.GlobalEventEmitter),e.lynx.getCoreContext().__start(),P.tt=e},triggerComponentEvent:M,selectComponent:T,createJSObjectDestructionObserver:p(),setSharedData(e,t){v[e]=t},getSharedData:e=>v[e],i18nResource:O,reportException:(e,t)=>w(e,t,N),__SetSourceMapRelease:e=>N=e.message,__GetSourceMapRelease:e=>N,queryComponent:(e,t)=>{I.has(e)?t({__hasReady:!0}):C(e).then(e=>{t?.(e)})}};return P}function x(e,r,i,n){e.registerHandler(t.hh,()=>{let e=r.id;n(e),i(e)})}let E=async(e,r)=>{let i=e.createCall(t.VK),n={};return await Promise.all(Object.entries(r).map(([r,s])=>import(s).then(s=>n[r]=s?.default?.(n,(e,t)=>i(e,t,r),r=>{e.registerHandler(t.Sy,e=>r(e))})))),{load:e=>n[e]}},S="lynx.performance.timing.onSetup",A="lynx.performance.timing.onUpdate";function M(e,r){let i=!0,n={},s=new Map,a=new Map,o=r.createCall(t.gx),l=[];function h(e){for(let{timingKey:t,pipelineId:r,timeStamp:i}of e){if(i||(i=performance.now()+performance.timeOrigin),!r){n[t]=i;continue}s.has(r)||s.set(r,{}),s.get(r)[t]=i}}let c=r=>{e.registerHandler(t.F6,(e,t)=>{if(t?e=e.concat(l):l=l.concat(e),i){let e={extra_timing:{},setup_timing:n,update_timings:{},metrics:{},has_reload:!1,thread_strategy:0,url:""};r.emit(S,[e]),o("timing",n)}else{let i=(t?s.get(t):void 0)??{},n={extra_timing:{},setup_timing:{},update_timings:Object.fromEntries([...e,...a.get(t)??[]].map(e=>[e,i])),metrics:{},has_reload:!1,thread_strategy:0,url:""};r.emit(A,[n]),o("timing",i)}t&&(a.delete(t),s.delete(t)),i&&(i=!1)})};return e.registerHandler(t.PM,h),r.registerHandler(t.PM,h),{markTimingInternal:(e,t,r)=>h([{timingKey:e,pipelineId:t,timeStamp:r}]),registerGlobalEmitter:c,pipelineIdToTimingFlags:a}}let T=Promise.resolve().then(__webpack_require__.bind(__webpack_require__,1998));function C(r,i){let s=new e.C(r,"bg-to-ui"),a=new e.C(i,"bg-to-main"),o=M(a,s);o.markTimingInternal("load_core_start"),a.registerHandler(t.a$,async e=>{o.markTimingInternal("load_core_end");let t=await b({...e,uiThreadRpc:s,mainThreadRpc:a,timingSystem:o});globalThis["napiLoaderOnRT"+t.id]=await E(s,e.napiModulesMap);let r=n(e,t,a,s);T.then(({loadCard:i,destroyCard:n,callDestroyLifetimeFun:a,nativeGlobal:o,loadDynamicComponent:l})=>{o&&l&&(o.loadDynamicComponent=l),i(t,{...e,updateData:e.initData},r),x(s,t,n,a)})})}globalThis.nativeConsole=console,globalThis.onmessage=async e=>{let{mode:t,toPeerThread:r,toUIThread:i,systemInfo:n}=e.data;if(globalThis.SystemInfo||(globalThis.SystemInfo=n),"main"===t){let{startMainThreadWorker:e}=await __webpack_require__.e("895").then(__webpack_require__.bind(__webpack_require__,2358));e(i,r)}else C(i,r)},Object.assign(globalThis,{module:{exports:null}})})()})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["895"],{
|
|
1
|
+
"use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["895"],{9432:function(t,e,s){s.d(e,{nd:()=>E,no:()=>y});class n{_parent;constructor(t){this._parent=t}setProperty(t,e,s){this._parent[i][_].push(10,this._parent[o],t,e,s??"");let n=this._parent.getAttribute("style")??"";this._parent[r].set("style",n+`${t}:${e}${s?` !${s}`:""};`)}removeProperty(t){this._parent[i][_].push(11,this._parent[o],t);let e=this._parent.getAttribute("style")??"";this._parent[r].set("style",e+`${t}:inital;`)}}let i=Symbol("ancestorDocument"),r=Symbol("_attributes"),l=Symbol("_children"),h=Symbol("textContent"),a=Symbol("_cssRuleContents"),o=Symbol("uniqueId"),u=Symbol("_style");class p extends EventTarget{[h]="";[u];[r]=new Map;_parentElement=null;[l]=[];[a];#t;[o];[i];localName;constructor(t,e){super(),this.localName=t,this[o]=e}get sheet(){if(!this.#t){let t=this[o],e=this[i],s=[];this.#t={cssRules:s,insertRule:(n,r)=>(s.splice(r,0,{style:{set cssText(text){e[_].push(14,t,r,text)}}}),this[a]||(this[a]=[]),this[a].splice(r,0,n),this[i][_].push(13,t,r,n),r)}}return this.#t}get tagName(){return this.localName.toUpperCase()}get style(){return this[u]||(this[u]=new n(this)),this[u]}get children(){return this[l].slice()}get parentElement(){return this._parentElement}get parentNode(){return this._parentElement}get firstElementChild(){return this[l][0]??null}get lastElementChild(){return this[l][this[l].length-1]??null}get nextElementSibling(){let t=this._parentElement;if(t){let e=t[l].indexOf(this);if(e>=0)return t[l][e+1]||null}return null}_remove(){if(this._parentElement){let t=this._parentElement[l].indexOf(this);this._parentElement[l].splice(t,1),this._parentElement=null}}setAttribute(t,e){this[r].set(t,e),this[i][_].push(2,this[o],t,e)}getAttribute(t){return this[r].get(t)??null}removeAttribute(t){this[r].delete(t),this[i][_].push(3,this[o],t)}append(...t){for(let e of(this[i][_].push(4,this[o],t.length,...t.map(t=>t[o])),t))e._remove(),e._parentElement=this;this[l].push(...t)}appendChild(t){return this[i][_].push(4,this[o],1,t[o]),t._remove(),t._parentElement=this,this[l].push(t),t}replaceWith(...t){if(this[i][_].push(6,this[o],t.length,...t.map(t=>t[o])),this._parentElement){let e=this._parentElement;this._parentElement=null;let s=e[l].indexOf(this);for(let n of(e[l].splice(s,1,...t),t))n._parentElement=e}}getAttributeNames(){return[...this[r].keys()]}remove(){this[i][_].push(5,this[o]),this._remove()}insertBefore(t,e){if(t._remove(),e){let s=this[l].indexOf(e);s>=0&&(t._parentElement=this,this[l].splice(s,0,t))}else t._parentElement=this,this[l].push(t);return this[i][_].push(7,this[o],t[o],e?.[o]??0),t}removeChild(t){if(!t||t._parentElement!==this)throw new DOMException("The node to be removed is not a child of this node.","NotFoundError");return this[i][_].push(9,this[o],t[o]),t._remove(),t}addEventListener(t,e,s){this[i][g](t,this[o]),super.addEventListener(t,e,s)}get textContent(){return this[h]}set textContent(t){for(let e of(this[i][_].push(12,this[o],t),this.children))e.remove();this[h]=t,this[a]&&(this[a]=[])}}let m=Symbol("propagationStopped"),c=Symbol("eventPhase");class d extends Event{_target;[c]=Event.CAPTURING_PHASE;constructor(t,e){super(t),this._target=e}get target(){return this._target}[m]=!1;stopImmediatePropagation(){this[m]=!0,super.stopImmediatePropagation()}stopPropagation(){this[m]=!0,super.stopPropagation()}get eventPhase(){return this[c]}}let _=Symbol("operations"),g=Symbol("enableEvent"),b=Symbol("getElementByUniqueId"),E=Symbol("_onEvent"),f=Symbol("uniqueIdInc"),v=Symbol("_uniqueIdToElement");class y extends p{_callbacks;[f]=1;[v]=[];[_]=[];[b](t){return this[v][t]?.deref()}[g];constructor(t){const e=(t,e)=>{this[_].push(8,e,t)};super("",0),this._callbacks=t,this[i]=this,this[g]=e}commit(){let t=this[_];this[_]=[],this._callbacks.onCommit(t)}createElement(t){let e=this[f]++,s=new p(t,e);return s[i]=this,this[v][e]=new WeakRef(s),this[_].push(1,e,t),s}[E]=(t,e,s,n)=>{let i=this[b](e);if(i){let e=[],r=i;for(;r.parentElement;)e.push(r.parentElement),r=r.parentElement;let l=new d(t,i);Object.assign(l,n),l[c]=Event.CAPTURING_PHASE;for(let t=e.length-1;t>=0;t--)if(e[t].dispatchEvent(l),l[m])return;if(l[c]=Event.AT_TARGET,i.dispatchEvent(l),s){for(let t of(l[c]=Event.BUBBLING_PHASE,e))if(t.dispatchEvent(l),l[m])return}}}}},5098:function(t,e,s){s.d(e,{b:()=>i});var n=s(4234);function i(t){let e=t.createCall(n.PM),s={records:[],timeout:null};return{markTimingInternal:(t,i,r)=>{(0,n.M$)({timingKey:t,pipelineId:i,timeStamp:r,markTiming:e,cacheMarkTimings:s})},flushMarkTimingInternal:()=>(0,n.qz)(e,s)}}},425:function(t,e,s){s.d(e,{f:()=>i});var n=s(4234);function i(t,e){t.registerHandler(n.Ve,(t,s)=>e(t,s))}},2358:function(t,e,s){s.a(t,async function(t,n){try{s.d(e,{startMainThreadWorker:()=>p});var i=s(4234),r=s(9679),l=s(5098),h=s(9432),a=s(425);let{prepareMainThreadAPIs:t}=await s.e("361","high").then(s.bind(s,7637));function o(t){return globalThis.module.exports=null,importScripts(t),globalThis.module?.exports}function u(t){return new Promise((e,s)=>{fetch(t).then(()=>{globalThis.module.exports=null,importScripts(t);let s=globalThis.module?.exports;e(s)}).catch(s)})}async function p(e,s){let n=new r.C(e,"main-to-ui"),p=new r.C(s,"main-to-bg"),{markTimingInternal:m,flushMarkTimingInternal:c}=(0,l.b)(p),d=n.createCall(i.E_),_=n.createCall(i.o2),g=new h.no({onCommit:d});Object.assign(globalThis,{document:g});let b={globalWindow:globalThis,loadScript:u,loadScriptSync:o},E=new i.gI;n.registerHandler(i.Zu,g[h.nd]);let f=n.createCall(i.gj),v=n.createCall(i.o3),{startMainThread:y,handleUpdatedData:S}=t(p,g,g,b,t=>{g.commit(),f(t.map(t=>t.getAttribute(i.SP)).filter(t=>null!==t))},m,c,_,t=>{n.invoke(i.gx,[i.hv,t])},t=>(E.setData(t),E),v);n.registerHandler(i.Hf,async t=>{await y(t),(0,a.f)(n,S)}),n.registerHandler(i.k3,t=>{E.setData(t)})}n()}catch(t){n(t)}},1)}}]);
|