@lynx-js/web-rsbuild-server-middleware-canary 0.18.0-canary-20251010-e21c4e23 → 0.18.0-canary-20251011-7d90ed52

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-rsbuild-server-middleware
2
2
 
3
- ## 0.18.0-canary-20251010135203-e21c4e23ca87c0783faaa4cfd2f8dfe6ca6d84eb
3
+ ## 0.18.0-canary-20251011064323-7d90ed52a20fd7665a3517507800e7e29426f6f9
4
4
 
5
5
  ## 0.17.2
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-rsbuild-server-middleware-canary",
3
- "version": "0.18.0-canary-20251010-e21c4e23",
3
+ "version": "0.18.0-canary-20251011-7d90ed52",
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.5.13",
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.0-canary-20251010-e21c4e23",
30
- "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.8-canary-20251010-e21c4e23"
29
+ "@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.18.0-canary-20251011-7d90ed52",
30
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.8-canary-20251011-7d90ed52"
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([["361"],{746:function(e,t,r){let n;r.d(t,{prepareMainThreadAPIs:()=>es});var i=r(29);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,708)):await r.e("8").then(r.bind(r,326))}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 m=/[A-Z]/g,_=/^ms-/,f={};function g(e){return"-"+e.toLowerCase()}let b=function(e){if(f.hasOwnProperty(e))return f[e];var t=e.replace(m,g);return f[e]=_.test(t)?"-"+t:t},h=(e,t)=>e.appendChild(t),y=(e,t)=>e===t,v=e=>e.firstElementChild,w=e=>e.children?[...e.children]:null,A=e=>e.parentElement,x=(e,t,r)=>e.insertBefore(t,r),C=e=>e.lastElementChild,S=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],G=e=>Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]).filter(([,e])=>e)),R=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,M=e=>e.getAttribute("id"),q=(e,t)=>t?e.setAttribute("id",t):e.removeAttribute("id"),W=e=>e.getAttribute(i.Gq),L=(e,t)=>{e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(t)))},H=(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")},Z=(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)},Y=(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r)},V=(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)}},K=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},Q=e=>{e.setAttribute(i.y,"")},X=(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={};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})}let u=n?.getAttribute(i.C6),d=u?JSON.parse(decodeURIComponent(u)):{},c=r.getAttribute(i.C6),p=c?JSON.parse(decodeURIComponent(c)):{};return{type:t,timestamp:e.timeStamp,target:{id:r.getAttribute("id"),dataset:p,uniqueId:Number(r.getAttribute(i.SP))},currentTarget:n?{id:n.getAttribute("id"),dataset:d,uniqueId:Number(n.getAttribute(i.SP))}:null,detail:e.detail??{},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 m=e.createCall(i.F6),_=e.createCall(i.a$),f=e.createCall(i.JW),g=e.createCall(i.Ke),b=e.createCall(i.pd),ee=e.createCall(i.mB),es=e.createCall(i.Ve);async function eu(es,eu){let ed,ec,ep,em,e_,ef,eg,eb,eh=!0,{globalProps:ey,template:ev,browserConfig:ew,nativeModulesMap:eA,napiModulesMap:ex,tagMap:eC,initI18nResources:eS}=es,{styleInfo:eE,pageConfig:eI,customSections:eT,cardType:eP}=ev;o("decode_start"),await el;let ek=new i.tf({rpc:e,receiveEventEndpoint:i.Is,sendEventEndpoint:i.jK}),ej=d(eS),{updateCssOGStyle:eO,updateLazyComponentStyle:eG}=(ec=eu?.lynxUniqueIdToStyleRulesIndex??[],ei(ep=en(eE)),em=eI.enableCSSSelector?{}:eo(ep),e_={},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&&e_[n]?e_[n]:em,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||(e_[t]=eo(r));let n=ea(r,eI,t);ed.textContent+=n}}),eR={mtsGlobalThis:void 0},e$=(ef=e.createCall(i.WS),eg=new Map,eb=(e,t)=>{let r=eg.get(e),i=r??c(e).then(async t=>{let r=ef(e,t),i=await n.loadScript(t.lepusCode.root);return eR.mtsGlobalThis.processEvalResult&&(i=eR.mtsGlobalThis.processEvalResult(i,e)),eG(t.styleInfo,e),await r,ek.dispatchEvent({type:"__OnDynamicJSSourcePrepared",data:e}),i});return r||eg.set(e,i),i.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),eD=function(e){let t,r,n,a,o,l,s=[],{callbacks:u,tagMap:d,pageConfig:c,lynxTemplate:p,rootDom:m,globalProps:_,ssrHydrateInfo:f,ssrHooks:g,mtsRealm:b,document:ee}=e,{elementTemplate:en,lepusCode:ei}=p,ea=f?.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)},em=(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},e_=(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)},ef=(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=em(e.type,t);for(let[t,n]of(q(r,e.id),e.class&&F(r,e.class.join(" ")),Object.entries(e.attributes||{})))e_(r,t,n);for(let[t,n]of Object.entries(e.builtinAttributes||{}))"dirtyID"===t&&n===e.id&&X(r,n),e_(r,t,n);for(let n of e.children||[])h(r,eb(n,t));return void 0!==e.dataset&&H(r,e.dataset),r},eh=(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&&eh(n,i)}},ey=(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)),m.cloneNode){let r=ee.createElement("template");return r.content.append(...n),eg[e]=r,m.append(r),ey(e,t)}for(let e=0;e<n.length;e++){let t=r[e],i=n[e];t&&i&&eh(t,i)}return n.forEach(Q),n}return[]},ev="",ew=!c.enableCSSSelector,eA={...i.c1,...e.browserConfig},ex={__ElementFromBinary:ey,__GetTemplateParts:m.querySelectorAll?K:void 0,__MarkTemplateElement:Q,__MarkPartElement:X,__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:h,__ElementIsEqual:y,__FirstElement:v,__GetChildren:w,__GetParent:A,__InsertElementBefore:x,__LastElement:C,__NextElement:S,__RemoveElement:E,__ReplaceElement:I,__ReplaceElements:T,__AddConfig:P,__AddDataset:k,__GetAttributes:G,__GetComponentID:R,__GetDataByKey:O,__GetDataset:j,__GetElementConfig:$,__GetElementUniqueID:N,__GetID:M,__GetTag:W,__SetConfig:L,__SetDataset:H,__SetID:q,__UpdateComponentID:U,__UpdateComponentInfo:z,__CreateElement:em,__CreateView:e=>em("view",e),__CreateText:e=>em("text",e),__CreateComponent:(e,t,r,n,a)=>{let o=em("view",e);return o.setAttribute(i.js,r+""),o.setAttribute(i.pP,t),o.setAttribute("name",a),o},__CreatePage:(e,t)=>{let r=em("page",0);return r.setAttribute("part","page"),r.setAttribute(i.js,t+""),r.setAttribute(i.er,"0"),r.setAttribute(i.pP,e),Q(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=em("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:e=>em("image",e),__CreateScrollView:e=>em("scroll-view",e),__CreateWrapperElement:e=>em("lynx-wrapper",e),__CreateList:(e,t,r)=>{let n=em("list",e);return eo.set(n,{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r}),n},__SetAttribute:e_,__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:ew?(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)}:Y,__SetClasses:ew?ef:F,__AddInlineStyle:Z,__SetCSSId:ew?(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&&ef(n,e)}}:B,__SetInlineStyles:V,__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:_,__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,ev),_SetSourceMapRelease:e=>ev=e?.release,__OnLifecycleEvent:u.__OnLifecycleEvent,__FlushElementTree:(e,t)=>{let r=s;s=[],el&&!el.parentNode&&""!==el.getAttribute(i.JA)&&m.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:ev,mtsRealm:n,jsContext:ek,tagMap:eC,browserConfig:ew,globalProps:ey,pageConfig:eI,rootDom:t,ssrHydrateInfo:eu,ssrHooks:p,document:r,callbacks:{updateCssOGStyle:eO,mainChunkReady:()=>{o("data_processor_start");let r=es.initData;!0!==eI.enableJSDataProcessor&&eD.processData&&(r=eD.processData(es.initData)),o("data_processor_end"),e.registerHandler(i.iH,(e,t)=>{eD[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),_({initData:r,globalProps:ey,template:ev,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&&eD.__AddEvent(r,e[1],e[2],e[3])}eD.ssrHydrate?.(eu.ssrEncodeData)}else eD.renderPage(r),eD.__FlushElementTree(void 0,{})},flushElementTree:async(e,t,r)=>{let n=e?.pipelineOptions?.pipelineID;o("dispatch_start",n),eh&&(eh=!1,ek.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(()=>{m(t,n)})},_ReportError:s,__OnLifecycleEvent:e=>{ek.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>o(t,e),publishEvent:f,publicComponentEvent:g,_I18nResourceTranslation:e=>{let t=ej.data?.find(t=>(0,i.HO)(t.options)===(0,i.HO)(e));return(ee(t?.resource),t)?t.resource:u(e)},__QueryComponent:e$}});eR.mtsGlobalThis=eD,o("decode_end"),await n.loadScript(ev.lepusCode.root),ek.__start()}return o("lepus_execute_start"),{startMainThread:eu,handleUpdatedData:function(e,t){let r=n.globalWindow,i=r.processData?r.processData(e,t?.processorName):e;return r.updatePage?.(i,t),es(i,t)}}}},41:function(e,t,r){r.a(e,async function(e,n){try{r.d(t,{Ao:()=>a.Ao,Wp:()=>a.Wp,aC:()=>a.aC,bL:()=>a.bL,dZ:()=>a.dZ,iG:()=>a.iG,lI:()=>a.lI,pY:()=>a.pY});var i=r(946),a=r(219),o=e([i]);i=(o.then?(await o)():o)[0],(0,a.lI)(i),i.__wbindgen_start(),n()}catch(e){n(e)}})},219:function(e,t,r){let n;function i(e){n=e}r.d(t,{Ao:()=>b,Wp:()=>g,aC:()=>m,bL:()=>y,dZ:()=>f,iG:()=>_,lI:()=>i,pY:()=>h});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 m(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 _(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 f(){return[]}function g(e,t){return e.push(t)}function b(e,t){throw Error(u(e,t))}function h(e,t){return u(e,t)}function y(){let e=n.__wbindgen_export_0,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}})},708:function(e,t,r){r.a(e,async function(e,n){try{r.r(t),r.d(t,{__wbg_new_1f3a344cf3123716:()=>i.dZ,__wbg_push_330b2eb93e4e1212:()=>i.Wp,__wbg_set_wasm:()=>i.lI,__wbg_wbindgenthrow_451ec1a8469d7eb6:()=>i.Ao,__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(41),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},946:function(e,t,r){var n=r(219);e.exports=r.v(t,e.id,"a027d1610508f047",{"./standard_bg.js":{__wbg_new_1f3a344cf3123716:n.dZ,__wbg_push_330b2eb93e4e1212:n.Wp,__wbg_wbindgenthrow_451ec1a8469d7eb6:n.Ao,__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"],{746:function(e,t,r){let n;r.d(t,{prepareMainThreadAPIs:()=>es});var i=r(29);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,708)):await r.e("8").then(r.bind(r,326))}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 m=/[A-Z]/g,_=/^ms-/,f={};function g(e){return"-"+e.toLowerCase()}let b=function(e){if(f.hasOwnProperty(e))return f[e];var t=e.replace(m,g);return f[e]=_.test(t)?"-"+t:t},y=(e,t)=>e.appendChild(t),h=(e,t)=>e===t,v=e=>e.firstElementChild,w=e=>e.children?[...e.children]:null,A=e=>e.parentElement,x=(e,t,r)=>e.insertBefore(t,r),C=e=>e.lastElementChild,S=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],G=e=>Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]).filter(([,e])=>e)),R=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,M=e=>e.getAttribute("id"),W=(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)))},H=(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")},Z=(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)},Y=(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={};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});let u=n?.getAttribute(i.C6),d=u?JSON.parse(decodeURIComponent(u)):{},c=r.getAttribute(i.C6),p=c?JSON.parse(decodeURIComponent(c)):{};return{type:t,timestamp:e.timeStamp,target:{id:r.getAttribute("id"),dataset:p,uniqueId:Number(r.getAttribute(i.SP))},currentTarget:n?{id:n.getAttribute("id"),dataset:d,uniqueId:Number(n.getAttribute(i.SP))}:null,detail:e.detail??{},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 m=e.createCall(i.F6),_=e.createCall(i.a$),f=e.createCall(i.JW),g=e.createCall(i.Ke),b=e.createCall(i.pd),ee=e.createCall(i.mB),es=e.createCall(i.Ve);async function eu(es,eu){let ed,ec,ep,em,e_,ef,eg,eb,ey=!0,{globalProps:eh,template:ev,browserConfig:ew,nativeModulesMap:eA,napiModulesMap:ex,tagMap:eC,initI18nResources:eS}=es,{styleInfo:eE,pageConfig:eI,customSections:eT,cardType:eP}=ev;o("decode_start"),await el;let ek=new i.tf({rpc:e,receiveEventEndpoint:i.Is,sendEventEndpoint:i.jK}),ej=d(eS),{updateCssOGStyle:eO,updateLazyComponentStyle:eG}=(ec=eu?.lynxUniqueIdToStyleRulesIndex??[],ei(ep=en(eE)),em=eI.enableCSSSelector?{}:eo(ep),e_={},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&&e_[n]?e_[n]:em,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||(e_[t]=eo(r));let n=ea(r,eI,t);ed.textContent+=n}}),eR={mtsGlobalThis:void 0},e$=(ef=e.createCall(i.WS),eg=new Map,eb=(e,t)=>{let r=eg.get(e),i=r??c(e).then(async t=>{let r=ef(e,t),i=await n.loadScript(t.lepusCode.root);return eR.mtsGlobalThis.processEvalResult&&(i=eR.mtsGlobalThis.processEvalResult(i,e)),eG(t.styleInfo,e),await r,ek.dispatchEvent({type:"__OnDynamicJSSourcePrepared",data:e}),i});return r||eg.set(e,i),i.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),eD=function(e){let t,r,n,a,o,l,s=[],{callbacks:u,tagMap:d,pageConfig:c,lynxTemplate:p,rootDom:m,globalProps:_,ssrHydrateInfo:f,ssrHooks:g,mtsRealm:b,document:ee}=e,{elementTemplate:en,lepusCode:ei}=p,ea=f?.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)},em=(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},e_=(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)},ef=(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=em(e.type,t);for(let[t,n]of(W(r,e.id),e.class&&F(r,e.class.join(" ")),Object.entries(e.attributes||{})))e_(r,t,n);for(let[t,n]of Object.entries(e.builtinAttributes||{}))"dirtyID"===t&&n===e.id&&Q(r,n),e_(r,t,n);for(let n of e.children||[])y(r,eb(n,t));return void 0!==e.dataset&&H(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)),m.cloneNode){let r=ee.createElement("template");return r.content.append(...n),eg[e]=r,m.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[]},ev="",ew=!c.enableCSSSelector,eA={...i.c1,...e.browserConfig},ex={__ElementFromBinary:eh,__GetTemplateParts:m.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:v,__GetChildren:w,__GetParent:A,__InsertElementBefore:x,__LastElement:C,__NextElement:S,__RemoveElement:E,__ReplaceElement:I,__ReplaceElements:T,__AddConfig:P,__AddDataset:k,__GetAttributes:G,__GetComponentID:R,__GetDataByKey:O,__GetDataset:j,__GetElementConfig:$,__GetElementUniqueID:N,__GetID:M,__GetTag:q,__SetConfig:L,__SetDataset:H,__SetID:W,__UpdateComponentID:U,__UpdateComponentInfo:z,__CreateElement:em,__CreateView:e=>em("view",e),__CreateText:e=>em("text",e),__CreateComponent:(e,t,r,n,a)=>{let o=em("view",e);return o.setAttribute(i.js,r+""),o.setAttribute(i.pP,t),o.setAttribute("name",a),o},__CreatePage:(e,t)=>{let r=em("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=em("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:e=>em("image",e),__CreateScrollView:e=>em("scroll-view",e),__CreateWrapperElement:e=>em("lynx-wrapper",e),__CreateList:(e,t,r)=>{let n=em("list",e);return eo.set(n,{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r}),n},__SetAttribute:e_,__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:ew?(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)}:Y,__SetClasses:ew?ef:F,__AddInlineStyle:Z,__SetCSSId:ew?(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&&ef(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:_,__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,ev),_SetSourceMapRelease:e=>ev=e?.release,__OnLifecycleEvent:u.__OnLifecycleEvent,__FlushElementTree:(e,t)=>{let r=s;s=[],el&&!el.parentNode&&""!==el.getAttribute(i.JA)&&m.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:ev,mtsRealm:n,jsContext:ek,tagMap:eC,browserConfig:ew,globalProps:eh,pageConfig:eI,rootDom:t,ssrHydrateInfo:eu,ssrHooks:p,document:r,callbacks:{updateCssOGStyle:eO,mainChunkReady:()=>{o("data_processor_start");let r=es.initData;!0!==eI.enableJSDataProcessor&&eD.processData&&(r=eD.processData(es.initData)),o("data_processor_end"),e.registerHandler(i.iH,(e,t)=>{eD[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),_({initData:r,globalProps:eh,template:ev,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&&eD.__AddEvent(r,e[1],e[2],e[3])}eD.ssrHydrate?.(eu.ssrEncodeData)}else eD.renderPage(r),eD.__FlushElementTree(void 0,{})},flushElementTree:async(e,t,r)=>{let n=e?.pipelineOptions?.pipelineID;o("dispatch_start",n),ey&&(ey=!1,ek.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(()=>{m(t,n)})},_ReportError:s,__OnLifecycleEvent:e=>{ek.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>o(t,e),publishEvent:f,publicComponentEvent:g,_I18nResourceTranslation:e=>{let t=ej.data?.find(t=>(0,i.HO)(t.options)===(0,i.HO)(e));return(ee(t?.resource),t)?t.resource:u(e)},__QueryComponent:e$}});eR.mtsGlobalThis=eD,o("decode_end"),await n.loadScript(ev.lepusCode.root),ek.__start()}return o("lepus_execute_start"),{startMainThread:eu,handleUpdatedData:function(e,t){let r=n.globalWindow,i=r.processData?r.processData(e,t?.processorName):e;return r.updatePage?.(i,t),es(i,t)}}}},41:function(e,t,r){r.a(e,async function(e,n){try{r.d(t,{Ao:()=>a.Ao,Wp:()=>a.Wp,aC:()=>a.aC,bL:()=>a.bL,dZ:()=>a.dZ,iG:()=>a.iG,lI:()=>a.lI,pY:()=>a.pY});var i=r(946),a=r(219),o=e([i]);i=(o.then?(await o)():o)[0],(0,a.lI)(i),i.__wbindgen_start(),n()}catch(e){n(e)}})},219:function(e,t,r){let n;function i(e){n=e}r.d(t,{Ao:()=>b,Wp:()=>g,aC:()=>m,bL:()=>h,dZ:()=>f,iG:()=>_,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 m(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 _(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 f(){return[]}function g(e,t){return e.push(t)}function b(e,t){throw Error(u(e,t))}function y(e,t){return u(e,t)}function h(){let e=n.__wbindgen_export_0,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}})},708:function(e,t,r){r.a(e,async function(e,n){try{r.r(t),r.d(t,{__wbg_new_1f3a344cf3123716:()=>i.dZ,__wbg_push_330b2eb93e4e1212:()=>i.Wp,__wbg_set_wasm:()=>i.lI,__wbg_wbindgenthrow_451ec1a8469d7eb6:()=>i.Ao,__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(41),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},946:function(e,t,r){var n=r(219);e.exports=r.v(t,e.id,"a027d1610508f047",{"./standard_bg.js":{__wbg_new_1f3a344cf3123716:n.dZ,__wbg_push_330b2eb93e4e1212:n.Wp,__wbg_wbindgenthrow_451ec1a8469d7eb6:n.Ao,__wbindgen_init_externref_table:n.bL,__wbindgen_cast_2241b6af4c4b2941:n.pY}})}}]);