@lynx-js/web-rsbuild-server-middleware-canary 0.19.2 → 0.19.3-canary-20251224-a26be78a
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-rsbuild-server-middleware-canary",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3-canary-20251224-a26be78a",
|
|
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.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.19.
|
|
30
|
-
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.9.
|
|
29
|
+
"@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.19.3-canary-20251224-a26be78a",
|
|
30
|
+
"@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.9.1-canary-20251224-a26be78a"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "rsbuild build"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(()=>{"use strict";var __webpack_modules__={4234(e,t,r){var i,s,n,a;r.d(t,{Ke:()=>S,g:()=>q,mB:()=>ee,SP:()=>"l-uid",er:()=>h,Gq:()=>u,pT:()=>G,im:()=>b,js:()=>o,HO:()=>es,gj:()=>P,jK:()=>W,tl:()=>d,Pb:()=>c,O4:()=>s,c1:()=>f,F6:()=>H,PC:()=>U,gI:()=>ea,C6:()=>"l-dset",pP:()=>l,Gm:()=>_,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:()=>m,a$:()=>k,PM:()=>$,VK:()=>j,nk:()=>et,hv:()=>en,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",m="l-template",_="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,s){return{name:e,isSync:t,hasReturn:r,hasReturnTransfer:i,bufferSize:s}}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"}(s||(s={})),function(e){e[e.UPDATE=0]="UPDATE",e[e.RESET=1]="RESET"}(n||(n={})),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 es=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,en="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:s})=>{s.records.push({timingKey:e,pipelineId:t,timeStamp:r??performance.now()+performance.timeOrigin}),s.timeout||(s.timeout=setTimeout(()=>{i(s.records),s.records=[],s.timeout=null},500))},eu=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)}},9679(e,t,r){r.d(t,{C:()=>i});class i{port;name;incId=0;#e={};#
|
|
1
|
+
(()=>{"use strict";var __webpack_modules__={4234(e,t,r){var i,s,n,a;r.d(t,{Ke:()=>S,g:()=>q,mB:()=>ee,SP:()=>"l-uid",er:()=>h,Gq:()=>u,pT:()=>G,im:()=>b,js:()=>o,HO:()=>es,gj:()=>P,jK:()=>W,tl:()=>d,Pb:()=>c,O4:()=>s,c1:()=>f,F6:()=>H,PC:()=>U,gI:()=>ea,C6:()=>"l-dset",pP:()=>l,Gm:()=>_,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:()=>m,a$:()=>k,PM:()=>$,VK:()=>j,nk:()=>et,hv:()=>en,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",m="l-template",_="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,s){return{name:e,isSync:t,hasReturn:r,hasReturnTransfer:i,bufferSize:s}}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"}(s||(s={})),function(e){e[e.UPDATE=0]="UPDATE",e[e.RESET=1]="RESET"}(n||(n={})),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 es=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,en="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:s})=>{s.records.push({timingKey:e,pipelineId:t,timeStamp:r??performance.now()+performance.timeOrigin}),s.timeout||(s.timeout=setTimeout(()=>{i(s.records),s.records=[],s.timeout=null},500))},eu=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)}},9679(e,t,r){r.d(t,{C:()=>i});class i{port;name;incId=0;#e=[];#t={};#r=new TextEncoder;#i=new TextDecoder;#s=new Map;constructor(e,t){this.port=e,this.name=t,e&&(e.onmessage=e=>this.#n(e.data))}setMessagePort(e){if(this.port)throw Error("Rpc port already set");for(let t of(this.port=e,this.#e))this.postMessage(t.message,t.detail);this.#e=[],e.onmessage=e=>this.#n(e.data)}postMessage(e,t){this.port?this.port.postMessage(e,t):this.#e.push({message:e,detail:t})}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#n=async e=>{let t=this.#s.get(e.name);if(t){let r=e.sync?new Int32Array(e.lock):void 0,s=!e.sync&&e.retId?i.createRetEndpoint(e.retId):void 0;try{let i=await t(...e.data),n,a=[];if(e.sync?n=i:e.hasTransfer?{data:n,transfer:a}=i||{}:n=i,e.sync){if(e.buf){let t=JSON.stringify(n),r=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),s=new Uint8Array(e.buf.byteLength-4),{written:a}=this.#r.encodeInto(t,s);r[0]=a,i.set(s,0)}Atomics.store(r,0,1),Atomics.notify(r,0)}else e.retId&&this.invoke(s,[n,!1],a||[])}catch(t){console.error(t),e.sync?(Atomics.store(r,0,2),Atomics.notify(r,0),r[1]=2):this.invoke(s,[void 0,!0])}}else{let t=this.#t[e.name];t?t.push(e):this.#t[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#s.set(e.name,t);let r=this.#t[e.name];if(r?.length)for(let t of(this.#t[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,s=this;Object.defineProperty(t,r,{get:()=>i,set(n){i=n,n&&s.registerHandlerRef(e,t,r)}})}}removeHandler(e){this.#s.delete(e.name)}invoke(e,t,r=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,s=new SharedArrayBuffer(4),n=new Int32Array(s);n[0]=0;let a={name:e.name,data:t,sync:!0,lock:s,buf:i};if(this.postMessage(a,{transfer:r}),Atomics.wait(n,0,0),2===n[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.#i.decode(r)):void 0}}if(e.hasReturn){let s,n,a;s=new Promise((e,t)=>{n=e,a=t});let o=i.createRetEndpoint(this.nextRetId);this.registerHandler(o,(e,t)=>{t&&a(),n(e)});let l={name:e.name,data:t,sync:!1,retId:o?.name,hasTransfer:e.hasReturnTransfer};return this.postMessage(l,{transfer:r}),s}{let i={name:e.name,data:t,sync:!1};this.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(__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:s,errorLevel:n,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:s,errorLevel:n})}catch(e){m.error(`reportError err:
|
|
3
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)},s=[];for(let t in e){if("query"==t&&!0==e[t]&&!e.unique_id){s.push("unique_id");continue}e[t]&&s.push(t)}r.nativeApp.getFields(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,s,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,s){this.getNativeApp=e,this.getApp=t,this.Promise=i,this.getNativeLynx=s,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 s=this.getApp().requireModule(e,t,i);return this.requireModule.cache[e]=s,s},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,s)=>{i||(this.requireModuleAsync.cache[e]=s),t(i,s)})},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:s="error"}=t||{},n;switch(s){case"error":default:n=1;break;case"warning":n=2;break;case"fatal":n=0}this.getApp().handleUserError(i,void 0,n)},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,s)=>this.getNativeLynx().fetchDynamicComponent(e,t,i,s),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 s=s=>{!0===s.__hasReady?(l.loadDynamicComponent(this.getApp(),e),i()):t(s)};this.getNativeLynx().QueryComponent(e,s)},this.loadDynamicComponent=(e,t,i={})=>new this.Promise((s,n)=>{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))?s({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?s(e):n(e)},a)}),this.fetch=(e,t)=>new this.Promise((i,s)=>{let n=new(this.getApp())._RequestClass(e,t),a=n.signal;if(a.aborted)return s(a.reason);a.addEventListener("abort",e=>{s(a.reason)});let o={method:n.method,url:n.url,origin:this.getNativeApp().__pageUrl,headers:Object.fromEntries(n.headers.entries()),body:n._arrayBuffer,lynxExtension:n.lynxExtension},h=n.lynxExtension.useStreaming;this.getApp().NativeModules.LynxFetchModule.fetch(o,e=>{if(!a.aborted)try{let t=new(this.getApp())._ReadableStreamClass,s=new(this.getApp())._ResponseClass(h?t:e.body,e);if(h){let e=s.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(s)}catch{s(TypeError(e.statusText))}},e=>{a.aborted||s(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,s=!1){let{getPromise:n}=l;return"function"==typeof n?n({nextTick:s?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:s,name:n,stack:a}=e||{};s||({message:s,name:n,stack:a}=Error(JSON.stringify(e)));let o=new g(i?`${i} ${n}: ${s}`:`${n}: ${s}`,a);o.cause=t,this.handleError(o,e,r)}handleInternalError(e,t){let{message:r,name:i,stack:s}=e||{};r||({message:r,name:i,stack:s}=Error(JSON.stringify(e)));let n=new y(`${i}: ${r}`,s);n.cause=t,this.handleError(n,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 s=this.nativeApp.loadScript(e,t,r);return this._$executeInit(s,{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,s)=>{if(r)return i.message=r,t(i);try{return t(null,this._$executeInit(s,{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=[],s=`${r}/${e}`.split("/"),n=s.length;if("string"!=typeof e)throw Error("require args must be a string");for(let r=0;r<n;++r){let a=s[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<n&&".."===s[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:s}=t,n=!0,a;try{if(a="standalone"==s?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"===s)return e.setCard(a),!0;t.bundleSupportLoadScript,n=!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){n=!1,a.handleUserError(e,void 0,void 0,"loadCard failed")}e.setCard(a)}catch(t){qe(e,t),n=!1}return n}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:s,stack:n}=t||{};i||({message:i,name:s,stack:n}=Error(JSON.stringify(t)));let a=new y(`loadCard failed ${s}: ${i}`,n);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("rspack queues"):"__rspack_queues",r=__webpack_require__.aE=e?Symbol("rspack exports"):"__webpack_exports__",i=e?Symbol("rspack error"):"__rspack_error",s=e?Symbol("rspack done"):"__rspack_done",n=__webpack_require__.zS=e?Symbol("rspack defer"):"__rspack_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[n]){var o=e[n];if(!o.some(e=>{var t=__webpack_module_cache__[e];return!t||!1===t[s]}))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[n]=!1,c[t]=e=>e(h),c}}var u={};return u[t]=()=>{},u[r]=e,u});__webpack_require__.a=(e,l,h)=>{h&&((c=[]).d=-1);var c,u,d,p,m=new Set,_=e.exports,y=new Promise((e,t)=>{p=t,d=e});y[r]=_,y[t]=e=>{c&&e(c),m.forEach(e),y.catch(()=>{})},e.exports=y,l(e=>{u=o(e);var s,a=()=>u.map(e=>{if(e[n])return e;if(e[i])throw e[i];return e[r]}),l=new Promise(e=>{(s=()=>e(a)).r=0;var r=e=>e!==c&&!m.has(e)&&(m.add(e),e&&!e.d&&(s.r++,e.push(s)));u.map(e=>e[n]||e[t](r))});return s.r?l:a()},e=>(e?p(y[i]=e):d(_),a(c),y[s]=!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 s=fetch(__webpack_require__.p+"static/wasm/"+r.slice(0,8)+".module.wasm"),n=function(){return s.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 s.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),n();throw e}):n()})}})(),(()=>{var e={524:1},t=t=>{var[r,s,n]=t;for(var a in s)__webpack_require__.o(s,a)&&(__webpack_require__.m[a]=s[a]);for(n&&n(__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,s,n){i("animate",e,{operation:t,id:r,keyframes:s,timingOptions:n})}}};function s(e,s,n,a){let o=new t.tf({rpc:n,receiveEventEndpoint:t.jK,sendEventEndpoint:t.Is});return{__globalProps:e.globalProps,getJSModule(e){},getNativeApp:()=>s,getCoreContext:()=>o,getCustomSectionSync:t=>e.customSections[t],getCustomSection:r(n,e.customSections),queueMicrotask:e=>{queueMicrotask(e)},createElement:(e,t)=>i(t,a),getI18nResource:()=>s.i18nResource.data,QueryComponent:(e,t)=>s.queryComponent(e,t)}}function n(e){return(r,i,s,n,a,o,l)=>{e.invoke(t.zk,[r,i,s,n,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 s=r.createCall(t.eZ),n=e.createCall(t.g),a={resumeExposure(){s(!0,!0)},stopExposure(e){s(!1,e.sendEvent??!0)}},o={call(e,t,r){n(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)=>n(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 m(e,r){e.registerHandlerLazy(t.yn,r,"updateGlobalProps")}function _(e,r,i,s){e.registerHandler(t.BE,e=>{i.setData(e),s.GlobalEventEmitter.emit("onI18nResourceReady",[])}),r.registerHandler(t.mB,e=>{i.setData(e),s.GlobalEventEmitter.emit("onI18nResourceReady",[])})}function y(e){return(r,i,s,n,a,o)=>{e.invoke(t.ZU,[r,i,s,n,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 s=new XMLHttpRequest;if(s.open("GET",e,!1),s.send(null),200===s.status)return s.responseText;throw Error(`Failed to load ${e}, status: ${s.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)})},s=(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__")=>s(r(e,t),`${encodeURIComponent(t)}/${e}`),loadScriptAsync:async(e,t,r="__Card__")=>{i(e,r).then(i=>{t(null,s(i,`${encodeURIComponent(r)}/${e}`))})},templateCache:t}}let g=0,v={};async function b(e){let{mainThreadRpc:r,uiThreadRpc:i,template:s,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(s);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:n(i),tt:null,setCard(e){a(r,e),c(r,e),o(r,e),h(r,e),d(i,e),m(i,e),_(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,s){e.registerHandler(t.hh,()=>{let e=r.id;s(e),i(e)})}let E=async(e,r)=>{let i=e.createCall(t.VK),s={};return await Promise.all(Object.entries(r).map(([r,n])=>import(n).then(n=>s[r]=n?.default?.(s,(e,t)=>i(e,t,r),r=>{e.registerHandler(t.Sy,e=>r(e))})))),{load:e=>s[e]}},S="lynx.performance.timing.onSetup",A="lynx.performance.timing.onUpdate";function M(e,r){let i=!0,s={},n=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){s[t]=i;continue}n.has(r)||n.set(r,{}),n.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:s,update_timings:{},metrics:{},has_reload:!1,thread_strategy:0,url:""};r.emit(S,[e]),o("timing",s)}else{let i=(t?n.get(t):void 0)??{},s={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,[s]),o("timing",i)}t&&(a.delete(t),n.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 n=new e.C(r,"bg-to-ui"),a=new e.C(i,"bg-to-main"),o=M(a,n);o.markTimingInternal("load_core_start"),a.registerHandler(t.a$,async e=>{o.markTimingInternal("load_core_end");let t=await b({...e,uiThreadRpc:n,mainThreadRpc:a,timingSystem:o});globalThis["napiLoaderOnRT"+t.id]=await E(n,e.napiModulesMap);let r=s(e,t,a,n);T.then(({loadCard:i,destroyCard:s,callDestroyLifetimeFun:a,nativeGlobal:o,loadDynamicComponent:l})=>{o&&l&&(o.loadDynamicComponent=l),i(t,{...e,updateData:e.initData},r),x(n,t,s,a)})})}globalThis.nativeConsole=console,globalThis.onmessage=async e=>{let{mode:t,toPeerThread:r,toUIThread:i,systemInfo:s}=e.data;if(globalThis.SystemInfo||(globalThis.SystemInfo=s),"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}})})()})();
|
package/www/static/js/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,n,
|
|
1
|
+
(()=>{"use strict";var e,t,n,i,l,a,s,r,o,d,c,h,u={6269(){},3463(){},1498(){},4234(e,t,n){n.d(t,{Yx:()=>eb.Y,Ke:()=>E,g:()=>D,mB:()=>K,SP:()=>"l-uid",er:()=>a,Gq:()=>r,pT:()=>U,im:()=>g,js:()=>i,HO:()=>et,gj:()=>P,jK:()=>B,tl:()=>o,Pb:()=>s,O4:()=>eu,c1:()=>m,Uc:()=>ep,F6:()=>z,PC:()=>R,gI:()=>ei,C6:()=>"l-dset",pP:()=>l,Gm:()=>h,pd:()=>y,Wx:()=>eh,hO:()=>C,eZ:()=>w,JW:()=>S,E_:()=>k,M$:()=>ea,gx:()=>V,tf:()=>el,iH:()=>A,Fw:()=>H,JA:()=>d,qz:()=>es,Sy:()=>$,oZ:()=>"l-part",Hf:()=>x,o2:()=>L,$4:()=>b,hh:()=>O,ZU:()=>N,vr:()=>W,Ve:()=>T,Is:()=>X,zk:()=>M,I7:()=>u,vQ:()=>v,yn:()=>Y,k3:()=>G,vn:()=>q,WS:()=>Z,BE:()=>J,y:()=>c,a$:()=>I,PM:()=>j,VK:()=>F,nk:()=>Q,hv:()=>en,OE:()=>p,Zu:()=>_,o3:()=>ee});let i="l-css-id",l="l-comp-id",a="l-p-comp-uid",s="l-e-name",r="lynx-tag",o="l-comp-cfg",d="l-disposed",c="l-template",h="lynx-default-display-linear",u="__lynx_timing_flag",m={platform:"web",lynxSdkVersion:"3.0"},p=[` [lynx-default-display-linear="false"] * {
|
|
2
2
|
--lynx-display: flex;
|
|
3
3
|
--lynx-display-toggle: var(--lynx-display-flex);
|
|
4
4
|
}`,`[lynx-default-overflow-visible="true"] x-view{
|
|
5
5
|
overflow: visible;
|
|
6
|
-
}`],v={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},b={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},g={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function f(e,t,n=!0,a=!1,l){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:a,bufferSize:l}}let y=f("__postExposure",!1,!1),E=f("publicComponentEvent",!1,!1),S=f("publishEvent",!1,!1),w=f("postOffscreenEventEndpoint",!1,!1),x=f("switchExposureServiceEndpoint",!1,!1),C=f("mainThreadStart",!1,!1),T=f("updateData",!1,!0),O=f("sendGlobalEventEndpoint",!1,!1),I=f("dispose",!1,!0),L=f("start",!1,!0),k=f("reportError",!1,!1),A=f("flushElementTree",!1,!0),P=f("callLepusMethod",!1,!0),M=f("multiThreadExposureChangedEndpoint",!1,!1),_=f("__invokeUIMethod",!1,!0),R=f("__setNativeProps",!1,!0),N=f("__getPathInfo",!1,!0),D=f("nativeModulesCall",!1,!0),F=f("napiModulesCall",!1,!0,!0),H=f("getCustomSections",!1,!0),j=f("markTiming",!1,!1),z=f("postTimingFlags",!1,!1),U=f("__triggerComponentEvent",!1,!1),W=f("__selectComponent",!1,!0),V=f("dispatchLynxViewEvent",!1,!1),$=f("dispatchNapiModule",!1,!1),B=f("dispatchCoreContextOnBackground",!1,!1),X=f("dispatchJSContextOnMainThread",!1,!1),q=f("__triggerElementMethod",!1,!1),Y=f("updateGlobalProps",!1,!1),G=f("updateI18nResources",!1,!1),J=f("updateI18nResource",!1,!1),K=f("dispatchI18nResource",!1,!1),Z=f("queryComponent",!1,!0),Q=f("updateBTSTemplateCacheEndpoint",!1,!0),ee=f("loadTemplateMultiThread",!1,!0);(er=eh||(eh={}))[er.ID_SELECTOR=0]="ID_SELECTOR",er[er.REF_ID=1]="REF_ID",er[er.UNIQUE_ID=2]="UNIQUE_ID",(eo=eu||(eu={}))[eo.SUCCESS=0]="SUCCESS",eo[eo.UNKNOWN=1]="UNKNOWN",eo[eo.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",eo[eo.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",eo[eo.PARAM_INVALID=4]="PARAM_INVALID",eo[eo.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",eo[eo.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(ed=em||(em={}))[ed.UPDATE=0]="UPDATE",ed[ed.RESET=1]="RESET",(ec=ep||(ep={}))[ec.START=0]="START",ec[ec.PLAY=1]="PLAY",ec[ec.PAUSE=2]="PAUSE",ec[ec.CANCEL=3]="CANCEL",ec[ec.FINISH=4]="FINISH";let et=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,en="i18nResourceMissed";class ea{data;constructor(e){this.data=e}setData(e){this.data=e}}class el 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:n}=this._config;return t.invoke(n,[e]),3}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}let ei=({timingKey:e,pipelineId:t,timeStamp:n,markTiming:a,cacheMarkTimings:l})=>{l.records.push({timingKey:e,pipelineId:t,timeStamp:n??performance.now()+performance.timeOrigin}),l.timeout||(l.timeout=setTimeout(()=>{a(l.records),l.records=[],l.timeout=null},500))},es=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)};var er,eo,ed,ec,eh,eu,em,ep,ev=n(6894)},6894(e,t,n){n.d(t,{Y:()=>s});let a=["navigator","postMessage","window"],l=[e=>(e.appType=e.appType??(e.lepusCode.root.startsWith("(function (globDynamicComponentEntry")?"lazy":"card"),e.version=2,e.lepusCode=Object.fromEntries(Object.entries(e.lepusCode).filter(([e,t])=>"string"==typeof t)),e)];async function i(e,t,n,l,i){return Promise.all(Object.entries(e).filter(([e,t])=>"string"==typeof t).map(async([e,s])=>{let r;return[e,await t((r=`${i}/${e.replaceAll("/","_")}.js`,(n?"//# allFunctionsCalledOnLoad":"")+'\n(function() { "use strict"; const '+a.join("=void 0,")+"=void 0;\n"+("card"!==l?"module.exports=\n":"")+s+"\n})()\n//# sourceURL="+r),`${i}-${e.replaceAll("/","_")}.js`)]})).then(Object.fromEntries)}async function s(e,t,n){let a;if(e.version=e.version??1,e.version>2)throw Error("Unsupported template, please upgrade your web-platform dependencies");for(;e.version<2&&(a=l[e.version-1]);)e=a(e);return{...e,lepusCode:await i(e.lepusCode,t,!0,e.appType,n)}}},8687(e,t,n){n.a(e,async function(e,t){try{var a=n(3379),l=n(4234),i=e([a]);a=(i.then?(await i)():i)[0];class s extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=s.observedAttributeAsProperties.map(e=>e.toLowerCase());#e;#t=!1;#n;get url(){return this.#n}set url(e){this.#n=e,this.#a()}#l={};get globalProps(){return this.#l}set globalProps(e){"string"==typeof e?this.#l=JSON.parse(e):this.#l=e}#i={};get initData(){return this.#i}set initData(e){"string"==typeof e?this.#i=JSON.parse(e):this.#i=e}#s=[];get initI18nResources(){return this.#s}set initI18nResources(e){"string"==typeof e?this.#s=JSON.parse(e):this.#s=e}updateI18nResources(e,t){this.#e?.updateI18nResources(e,t)}#r={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#r}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#r=JSON.parse(e):this.#r=e}#o=[];#d;get onNativeModulesCall(){return this.#d}set onNativeModulesCall(e){for(let t of(this.#d=e,this.#o))t.resolve(e.apply(void 0,t.args));this.#o=[]}#c={};get nativeModulesMap(){return this.#c}set nativeModulesMap(e){this.#c=e}#h={};get napiModulesMap(){return this.#h}set napiModulesMap(e){this.#h=e}#u;get onNapiModulesCall(){return this.#u}set onNapiModulesCall(e){this.#u=(t,n,a,l)=>e(t,n,a,this,l)}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#e?.updateData(e,t,n)}updateGlobalProps(e){this.#e?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#e?.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#a()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#n=n;break;case"global-props":this.#l=JSON.parse(n);break;case"init-data":this.#i=JSON.parse(n)}}get threadStrategy(){return this.getAttribute("thread-strategy")}set threadStrategy(e){e?this.setAttribute("thread-strategy",e):this.removeAttribute("thread-strategy")}get injectHeadLinks(){return"false"!==this.getAttribute("inject-head-links")}set injectHeadLinks(e){e?this.setAttribute("inject-head-links","true"):this.removeAttribute("inject-head-links")}injectStyleRules=[];disconnectedCallback(){this.#e?.dispose(),this.#e=void 0,this.shadowRoot?.querySelector(`[${l.Gq}="page"]`)?.setAttribute(l.JA,""),this.shadowRoot&&(this.shadowRoot.innerHTML="")}customTemplateLoader;#m=!1;#a(){!this.#m&&this.#t&&(this.#m=!0,queueMicrotask(()=>{this.#m=!1;let e=this.getAttribute("ssr");if(this.#e&&this.disconnectedCallback(),this.#n){let t={page:"div",view:"x-view",text:"x-text",image:"x-image",list:"x-list",svg:"x-svg",input:"x-input","x-input-ng":"x-input",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let n=this.lynxGroupId,i=this.threadStrategy??"all-on-ui";"multi-thread"===i&&console.warn('[LynxView] multi-thread strategy is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.');let s=(0,a.P)({threadStrategy:i,tagMap:t,shadowRoot:this.shadowRoot,templateUrl:this.#n,globalProps:this.#l,initData:this.#i,nativeModulesMap:this.#c,napiModulesMap:this.#h,lynxGroupId:n,initI18nResources:this.#s,callbacks:{nativeModulesCall:(...e)=>this.onNativeModulesCall?this.onNativeModulesCall(...e):new Promise(t=>{this.#o.push({args:e,resolve:t})}),napiModulesCall:(...e)=>this.onNapiModulesCall?.(...e),onError:(e,t,n)=>{this.dispatchEvent(new CustomEvent("error",{detail:{sourceMap:{offset:{line:2,col:0}},error:e,release:t,fileName:n}}))},customTemplateLoader:this.customTemplateLoader},ssr:e?JSON.parse(decodeURI(e)):void 0});if(this.#e=s,!e){let e=document.createElement("style");this.shadowRoot.append(e);let t=e.sheet;for(let e of l.OE)t.insertRule(e);for(let e of this.injectStyleRules)t.insertRule(e);"false"!==this.getAttribute("inject-head-links")&&document.head.querySelectorAll('link[rel="stylesheet"]').forEach(e=>{let n=e.href;t.insertRule(`@import url("${n}");`)})}}}))}connectedCallback(){this.#t=!0,this.#a()}}customElements.get(s.tag)?console.warn(`[${s.tag}] has already been defined`):customElements.define(s.tag,s),t()}catch(e){t(e)}})},3379(e,t,n){n.a(e,async function(e,a){try{n.d(t,{P:()=>s});var l=n(7826),i=e([l]);l=(i.then?(await i)():i)[0];let r=window.devicePixelRatio,o=window.screen.availWidth*r,d=window.screen.availHeight*r;function s(e){let{shadowRoot:t,callbacks:n,templateUrl:a,globalProps:i,initData:s,nativeModulesMap:r,napiModulesMap:c,tagMap:h,lynxGroupId:u,threadStrategy:m="multi-thread",initI18nResources:p,ssr:v}=e;return(0,l.$)(a,{tagMap:h,initData:s,globalProps:i,nativeModulesMap:r,napiModulesMap:c,browserConfig:{pixelRatio:window.devicePixelRatio,pixelWidth:o,pixelHeight:d},initI18nResources:p},t,u,m,n,v)}a()}catch(e){a(e)}})},3493(e,t,n){n.a(e,async function(e,t){try{var a=n(3379),l=n(8687),i=e([a,l]);[a,l]=i.then?(await i)():i,t()}catch(e){t(e)}})},5969(e,t,n){n.d(t,{C:()=>r});var a=n(4234);class l{port;name;incId=0;#p={};#v=new TextEncoder;#b=new TextDecoder;#g=new Map;constructor(e,t){this.port=e,this.name=t,e.onmessage=e=>this.#f(e.data)}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#f=async e=>{let t=this.#g.get(e.name);if(t){let n=e.sync?new Int32Array(e.lock):void 0,a=!e.sync&&e.retId?l.createRetEndpoint(e.retId):void 0;try{let l=await t(...e.data),i,s=[];if(e.sync?i=l:e.hasTransfer?{data:i,transfer:s}=l||{}:i=l,e.sync){if(e.buf){let t=JSON.stringify(i),n=new Uint32Array(e.buf,0,1),a=new Uint8Array(e.buf,4),l=new Uint8Array(e.buf.byteLength-4),{written:s}=this.#v.encodeInto(t,l);n[0]=s,a.set(l,0)}Atomics.store(n,0,1),Atomics.notify(n,0)}else e.retId&&this.invoke(a,[i,!1],s||[])}catch(t){console.error(t),e.sync?(Atomics.store(n,0,2),Atomics.notify(n,0),n[1]=2):this.invoke(a,[void 0,!0])}}else{let t=this.#p[e.name];t?t.push(e):this.#p[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#g.set(e.name,t);let n=this.#p[e.name];if(n?.length)for(let t of(this.#p[e.name]=void 0,n))this.#f(t)}registerHandlerRef(e,t,n){this.registerHandler(e,(...e)=>t[n]?.call(t,...e))}registerHandlerLazy(e,t,n){if(t[n])this.registerHandlerRef(e,t,n);else{let a,l=this;Object.defineProperty(t,n,{get:()=>a,set(i){a=i,i&&l.registerHandlerRef(e,t,n)}})}}removeHandler(e){this.#g.delete(e.name)}invoke(e,t,n=[]){if(e.isSync){let a=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,l=new SharedArrayBuffer(4),i=new Int32Array(l);i[0]=0;let s={name:e.name,data:t,sync:!0,lock:l,buf:a};if(this.port.postMessage(s,{transfer:n}),Atomics.wait(i,0,0),2===i[0])throw null;if(!a)return;{let e=new Uint32Array(a,0,4)[0],t=new Uint8Array(a,4,e),n=new Uint8Array(e);return n.set(t,0),n?JSON.parse(this.#b.decode(n)):void 0}}if(e.hasReturn){let{promise:a,resolve:i,reject:s}=Promise.withResolvers(),r=l.createRetEndpoint(this.nextRetId);this.registerHandler(r,(e,t)=>{t&&s(),i(e)});let o={name:e.name,data:t,sync:!1,retId:r?.name,hasTransfer:e.hasReturnTransfer};return this.port.postMessage(o,{transfer:n}),a}{let a={name:e.name,data:t,sync:!1};this.port.postMessage(a,{transfer:n})}}createCallbackify(e,t){let n=this.createCall(e);return(...e)=>{let a=e.at(t);e.splice(t,1),n(...e).then(a)}}}let i=[],s=[];function r(e,t,n){var r,d,c;let h,u,m,p,v,b,g,f,y,E=(r=e,d=(y=t?{mainThreadRpc:new l((h=new MessageChannel).port1,"main-to-bg"),channelMainThreadWithBackground:h}:(u=new MessageChannel,m=new MessageChannel,p=o("lynx-main"),v={mode:"main",toUIThread:u.port2,toPeerThread:m.port1},p.postMessage(v,[u.port2,m.port1]),{mainThreadRpc:new l(u.port1,"ui-to-main"),mainThreadWorker:p,channelMainThreadWithBackground:m})).channelMainThreadWithBackground,c=n,g=new MessageChannel,r?(b=s[r]??o("lynx-bg"),s[r]=b):b=o("lynx-bg"),f={mode:"background",toUIThread:g.port2,toPeerThread:d.port2,systemInfo:{...a.c1,...c}},b.postMessage(f,[g.port2,d.port2]),{backgroundRpc:new l(g.port1,"ui-to-bg"),backgroundThreadWorker:b});return void 0!==e&&(i[e]?i[e]++:i[e]=1),{mainThreadRpc:y.mainThreadRpc,backgroundRpc:E.backgroundRpc,terminateWorkers:()=>{y.mainThreadWorker?.terminate(),void 0===e?E.backgroundThreadWorker.terminate():1===i[e]?(E.backgroundThreadWorker.terminate(),i[e]=0,s[e]=void 0):"number"==typeof i[e]&&i[e]>1&&i[e]--}}}function o(e){return new Worker(new URL(n.p+n.u("524"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},768(e,t,n){n.a(e,async function(e,a){try{n.d(t,{z:()=>o});var l=n(4234),i=n(6621),s=n(2244);let e=document.querySelector("script[nonce]"),d=e?.nonce||e?.getAttribute("nonce")||"",{prepareMainThreadAPIs:c}=await n.e("361","high").then(n.bind(n,7637));async function r(e){let t=document.createElement("iframe"),n=new Promise(e=>{let n=a=>{"lynx:mtsready"===a.data&&a.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc=`<!DOCTYPE html><html><head><script nonce="${d}">parent.postMessage("lynx:mtsready","*")</script></head><body style="display:none"></body></html>`,t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await n;let a=t.contentWindow,l=async e=>{let n=t.contentDocument.createElement("script");return n.fetchPriority="high",n.defer=!0,n.async=!1,n.nonce=d,t.contentDocument.head.appendChild(n),new Promise(async(t,l)=>{n.onload=()=>{let e=a?.module?.exports;a.module={exports:void 0},t(e)},n.onerror=t=>l(Error(`Failed to load script: ${e}`,{cause:t})),a.module={exports:void 0},n.src=e})};return{globalWindow:a,loadScript:l,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.nonce=d,e.textContent=n.responseText,a.module={exports:void 0},t.contentDocument.head.appendChild(e);let l=a?.module?.exports;return a.module={exports:void 0},l}throw Error(`Failed to load script: ${e}`,{cause:n})}}}function o(e,t,n,a,o,d,h){globalThis.module||Object.assign(globalThis,{module:{}});let u=new l.gI,{exposureChangedCallback:m}=(0,s.e)(t),p=r(t),{startMainThread:v,handleUpdatedData:b}=c(e,t,document,p,m,a,o,(e,t,n)=>{d.onError?.(e,n,"lepus.js")},e=>{(0,i.D)(t,l.hv,e)},e=>(u.setData(e),u),n,void 0,!0),g=async e=>{if(h){let n=[],a=t.querySelectorAll(`[${l.SP}]`),i=a.length;for(let e=0;e<i;e++){let t=a[e];n[Number(t.getAttribute(l.SP))]=new WeakRef(t)}let s=t.querySelector("style:nth-of-type(2)"),r=s?.sheet,o=[],d=r?.cssRules.length??0;for(let e=0;e<d;e++){let t=r?.cssRules[e];if(t?.constructor.name==="CSSStyleRule"){let n=parseFloat(t.selectorText.substring(l.SP.length+3));void 0===n||isNaN(n)||(o[n]=e)}}await v(e,{lynxUniqueIdToElement:n,lynxUniqueIdToStyleRulesIndex:o,...h,cardStyleElement:s})}else await v(e)},f=async(e,t)=>b(e,t);return{start:g,updateDataMainThread:f,updateI18nResourcesMainThread:e=>{u.setData(e)}}}a()}catch(e){a(e)}},1)},6865(e,t,n){n.d(t,{k:()=>h});var a=n(4234),l=n(6993);let i={CreateElement:1,SetAttribute:2,RemoveAttribute:3,Append:4,Remove:5,ReplaceWith:6,InsertBefore:7,EnableEvent:8,RemoveChild:9,StyleDeclarationSetProperty:10,StyleDeclarationRemoveProperty:11,SetTextContent:12,sheetInsertRule:13,sheetRuleUpdateCssText:14};function s(){}let r=["detail","keyCode","charCode","elapsedTime","propertyName","pseudoElement","animationName","touches","targetTouches","changedTouches","x","y"],o=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);var d=n(2515),c=n(2244);function h(e,t,n,h){(0,l.m)(e,"lepus.js",h.onError),function(e,t){let{shadowRoot:n}=t,{decodeOperation:l}=function(e){let{shadowRoot:t,onEvent:n}=e,a=new Set,l=[new WeakRef(t)],d=new WeakMap;function c(e){let t=l[e]?.deref();if(t)return t;throw Error(`[lynx-web] cannot find element with uniqueId: ${e}`)}function h(e){if(e.eventPhase!==Event.CAPTURING_PHASE&&e.currentTarget!==t)return;let a=e.target;if(a&&d.has(a)){let t=d.get(a),l=e.type,i={};for(let t of r)t in e&&(i[t]=function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t)return t;if(t[Symbol.iterator])return[...t].map(e);if("object"==typeof t&&!(t instanceof EventTarget)){let n={};for(let a in t)o.has(a)||(n[a]=e(t[a]));return n}}(e[t]));n(l,t,e.bubbles,i)}}return{decodeOperation:function(e){let n;if(0===e.length)return;let r=0,{CreateElement:o,SetAttribute:u,RemoveAttribute:m,Append:p,Remove:v,ReplaceWith:b,InsertBefore:g,EnableEvent:f,RemoveChild:y,StyleDeclarationSetProperty:E,StyleDeclarationRemoveProperty:S,SetTextContent:w,sheetInsertRule:x,sheetRuleUpdateCssText:C}=i;for(;n=e[r++];){let i=e[r++];if(n===o){let t=document.createElement(e[r++]);l[i]=new WeakRef(t),d.set(t,i)}else{let l=c(i);switch(n){case u:{let t=e[r++],n=e[r++];l.setAttribute(t,n)}break;case m:l.removeAttribute(e[r++]);break;case p:{let t=e[r++];for(let n=0;n<t;n++){let t=c(e[r++]);l.appendChild(t)}}break;case v:l.remove();break;case b:{let t=e[r++],n=e.slice(r,r+t).map(e=>c(e));r+=t,l.replaceWith(...n)}break;case g:{let t=c(e[r++]),n=e[r++],a=n?c(n):null;l.insertBefore(t,a)}break;case f:let o=e[r++];l.addEventListener(o,s,{passive:!0}),a.has(o)||(t.addEventListener(o,h,{passive:!0,capture:!0}),a.add(o));break;case y:{let t=c(e[r++]);l.removeChild(t)}break;case E:l.style.setProperty(e[r++],e[r++],e[r++]);break;case S:l.style.removeProperty(e[r++]);break;case w:l.textContent=e[r++];break;case x:{let t=e[r++],n=e[r++];l.sheet.insertRule(n,t)}break;case C:{let t=e[r++];l.sheet.cssRules[t].style.cssText=e[r++]}}}}}}}({shadowRoot:n,onEvent:e.createCall(a.Zu)});e.registerHandler(a.E_,e=>{l(e)})}(e,{shadowRoot:t}),(0,d.c)(e,t),(0,c.g)(e,t),e.registerHandler(a.o3,n);let u=e.createCall(a.Hf);return{start:u,updateDataMainThread:e.createCall(a.Ve),updateI18nResourcesMainThread:e.createCall(a.k3)}}},9791(e,t,n){n.d(t,{i:()=>l});var a=n(4234);function l(e,t){return async()=>{await e.invoke(a.hh,[]),t()}}},2244(e,t,n){function a(e,t,n){if(t){if((t=t.trim()).endsWith("px"))return Number(t.substring(0,t.length-2));if(t.endsWith("%")){let a=Number(t.substring(0,t.length-1)),{width:l,height:i}=e.getBoundingClientRect();return(n?l:i)*a/100}}return 0}n.d(t,{g:()=>r,e:()=>s});var l=n(4234);let i=Symbol.for("lynx-scroll-container-dom");function s(e){let t=new WeakMap,n=new WeakMap,l=new WeakSet,s=(e,t,n)=>{let a=e.getAttribute("exposure-scene")??"",l={exposureID:n,exposureScene:a,"exposure-id":n,"exposure-scene":a},i=new CustomEvent(t?"uiappear":"uidisappear",{bubbles:!1,composed:!1,cancelable:!0,detail:l}),s=new CustomEvent(t?"exposure":"disexposure",{bubbles:!0,composed:!1,cancelable:!1,detail:l});Object.assign(i,l),e.dispatchEvent(i),e.dispatchEvent(s)},r=e=>{e.forEach(({target:e,isIntersecting:t})=>{t&&!l.has(e)?(s(e,!0,e.getAttribute("exposure-id")),l.add(e)):!t&&l.has(e)&&(s(e,!1,e.getAttribute("exposure-id")),l.delete(e))})};return{exposureChangedCallback:o=>{o.forEach(o=>{let d=n.get(o)??null,c=o.getAttribute("exposure-id");null!==d&&s(o,!1,d),n.set(o,c),t.get(o)?.disconnect(),t.delete(o),l.delete(o),null!==o.getAttribute("exposure-id")&&(n=>{let l=parseFloat(n.getAttribute("exposure-area")??"0")/100,s=a(n,n.getAttribute("exposure-screen-margin-top")),o=a(n,n.getAttribute("exposure-screen-margin-right")),d=a(n,n.getAttribute("exposure-screen-margin-bottom")),c=a(n,n.getAttribute("exposure-screen-margin-left")),h=a(n,n.getAttribute("exposure-ui-margin-top")),u=a(n,n.getAttribute("exposure-ui-margin-right")),m=a(n,n.getAttribute("exposure-ui-margin-bottom")),p=a(n,n.getAttribute("exposure-ui-margin-left")),v=n.parentElement;for(;v;)if(v[i]){v=v[i];break}else v=v.parentElement;let b=new IntersectionObserver(r,{rootMargin:`${(m?-1:1)*(s-m)}px ${(p?-1:1)*(o-p)}px ${(h?-1:1)*(d-h)}px ${(u?-1:1)*(c-u)}px`,root:v??e.parentElement,threshold:l});b.observe(n),t.set(n,b)})(o)})}}}function r(e,t){let{exposureChangedCallback:n}=s(t);e.registerHandler(l.gj,e=>{n(e.map(e=>t.querySelector(`[${l.SP}="${e}"]`)).filter(e=>null!==e))})}},4729(e,t,n){n.d(t,{k:()=>a});function a(e){return(t,n,a)=>{e(t,{processorName:n}).then(()=>a?.())}}},2515(e,t,n){n.d(t,{c:()=>i});var a=n(4234),l=n(6621);function i(e,t){e.registerHandler(a.gx,(e,n)=>{(0,l.D)(t,e,n)})}},6993(e,t,n){n.d(t,{m:()=>l});var a=n(4234);function l(e,t,n){e.registerHandler(a.o2,(e,a,l)=>{n?.(e,l,t)})}},3378(e,t,n){n.d(t,{r:()=>o});var a=n(4234);function l(e,t,n,l,i,s,r,o){let d,c=e;if(s){let t=e.querySelector(`[${a.SP}="${s}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for root_unique_id: ${s}`),o?.(a.O4.NODE_NOT_FOUND);return}}else if(l){let t=e.querySelector(`[${a.pP}="${l}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for component_id: ${l}`),o?.(a.O4.NODE_NOT_FOUND);return}}if(t===a.Wx.ID_SELECTOR)d=n;else if(t===a.Wx.UNIQUE_ID)d=`[${a.SP}="${n}"]`;else{console.error(`[lynx-web] NYI: setnativeprops type ${t}`),o?.(a.O4.UNKNOWN);return}if(i){let e=null;try{e=c.querySelector(d)}catch(e){console.error(`[lynx-web] cannot use selector: ${d}`),o?.(a.O4.SELECTOR_NOT_SUPPORTED);return}e?r(e):(console.error(`[lynx-web] cannot find from for selector ${n} under`,c),o?.(a.O4.NODE_NOT_FOUND))}else c.querySelectorAll(d).forEach(e=>{r(e)})}let i={boundingClientRect:e=>{let t=e.getBoundingClientRect();return{id:e.id,width:t.width,height:t.height,left:t.left,right:t.right,top:t.top,bottom:t.bottom}}};var s=n(2515),r=n(6993);function o(e,t,n){var o,d;let c,h,u,m,p;c=a.O4.UNKNOWN,e.registerHandler(a.zk,(e,n,s,r,o,d)=>(l(t,e,n,s,!0,d,e=>{try{let t=i[r],n="function"==typeof e[r];t||n?(h=t?t(e,o):e[r](o),c=a.O4.SUCCESS):c=a.O4.METHOD_NOT_FOUND}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),c=a.O4.PARAM_INVALID}},e=>{c=e}),{code:c,data:h})),e.registerHandler(a.PC,(e,n,a,i,s,r)=>{l(t,e,n,a,i,r,e=>{var t=e;for(let e in s){let n=s[e];"text"===e&&t?.tagName==="X-TEXT"&&t.firstElementChild&&"RAW-TEXT"==t.firstElementChild.tagName&&(t=t.firstElementChild),CSS.supports(e,n)&&t.style?t.style.setProperty(e,n):t.setAttribute(e,n)}})}),e.registerHandler(a.pT,(e,n)=>{let l=t.querySelector(`[${a.pP}="${n.componentId}"]`);l?.dispatchEvent(new CustomEvent(e,{...n.eventOption,detail:n.eventDetail}))}),e.registerHandler(a.vr,(e,n,i)=>(l(t,a.Wx.ID_SELECTOR,n,"card"===e?"0":e,i,void 0,e=>{u=e}),[u?.getAttribute(a.pP)??void 0])),o=n.nativeModulesCall,e.registerHandler(a.g,o),d=n.napiModulesCall,m=e.createCall(a.Sy),e.registerHandler(a.VK,(e,t,n)=>d(e,t,n,m)),e.registerHandler(a.ZU,(e,n,i,s,r)=>{let o,d=a.O4.UNKNOWN;return l(t,e,n,i,s,r,e=>{try{let n=[],l=e;for(;l;){let e=l.parentElement,i=e??t,s=Array.from(i.children),r=l.getAttribute(a.Gq),o="page"===r?0:s.indexOf(l),d=l.getAttribute("id")||void 0,c=l.getAttribute("class")||void 0,h=l.getAttribute(a.C6),u=h?JSON.parse(decodeURIComponent(h)):void 0;if(n.push({tag:r,id:d,class:c,dataSet:u,index:o}),"page"===r||l.parentNode===t)break;l=e}o={path:n},d=a.O4.SUCCESS}catch(t){console.error("[lynx-web] getPathInfo: failed with",t,e),d=a.O4.UNKNOWN}},e=>{d=e}),{code:d,data:o}}),(0,s.c)(e,t),p=new Map,e.registerHandler(a.vn,(e,n,l)=>{if("animate"===e)switch(l.operation){case a.Uc.START:p.set(l.id,t.querySelector(n)?.animate(l.keyframes,l.timingOptions));break;case a.Uc.PLAY:p.get(l.id)?.play();break;case a.Uc.PAUSE:p.get(l.id)?.pause();break;case a.Uc.CANCEL:p.get(l.id)?.cancel();break;case a.Uc.FINISH:p.get(l.id)?.finish()}}),(0,r.m)(e,"app-service.js",n.onError);let v=e.createCall(a.hO);return{sendGlobalEvent:v,markTiming:e.createCall(a.PM),updateI18nResourceBackground:(t,n)=>{let l=t.find(e=>(0,a.HO)(e.options)===(0,a.HO)(n));e.invoke(a.BE,[l?.resource])}}}},7826(e,t,n){n.a(e,async function(e,a){try{n.d(t,{$:()=>m});var l=n(5969),i=n(9791),s=n(4234),r=n(3893),o=n(4729),d=n(3378),c=n(6865),h=n(768),u=e([h]);function m(e,t,n,a,u,m,p){let v=performance.now()+performance.timeOrigin,b="all-on-ui"===u,{mainThreadRpc:g,backgroundRpc:f,terminateWorkers:y}=(0,l.C)(a,b,t.browserConfig),{markTiming:E,sendGlobalEvent:S,updateI18nResourceBackground:w}=(0,d.r)(f,n,m),x={records:[],timeout:null},C=(e,t,n)=>{(0,s.M$)({timingKey:e,pipelineId:t,timeStamp:n,markTiming:E,cacheMarkTimings:x})},T=()=>(0,s.qz)(E,x),O=(0,r._)(m.customTemplateLoader,C),{start:I,updateDataMainThread:L,updateI18nResourcesMainThread:k}=b?(0,h.z)(g,n,O,C,T,m,p):(0,c.k)(g,n,O,m);return C("create_lynx_start",void 0,v),O(e).then(e=>{T(),I({...t,template:e})}),{updateData:(0,o.k)(L),dispose:(0,i.i)(f,y),sendGlobalEvent:S,updateGlobalProps:f.createCall(s.yn),updateI18nResources:(...e)=>{k(e[0]),w(...e)}}}h=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},6621(e,t,n){n.d(t,{D:()=>a});let a=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0,composed:!0}))}},3893(e,t,n){n.d(t,{_:()=>s});var a=n(4234);let l=new Map;function i(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function s(e,t){return async n=>{t("load_template_start");let s=l.get(n);if(s)return t("load_template_end"),s;{let s=new Promise(async(t,s)=>{try{let l=e?await e(n):await (await fetch(n,{method:"GET"})).json(),s=await (0,a.Yx)(l,i,encodeURIComponent(n));t(s)}catch(e){l.delete(n),s(e)}});return l.set(n,s),t("load_template_end"),s}}}},6675(){var e,t,n,a;let l,i,s,r,o,d,c,h,u,m,p,v,b,g,f,y,E,S,w,x,C,T,O,I,L,k,A,P,M,_,R,N,D,F,H,j,z,U,W,V,$,B,X,q,Y,G,J,K,Z,Q,ee,et,en,ea,el,ei,es,er,eo,ed,ec,eh,eu,em,ep,ev,eb,eg,ef,ey,eE,eS,ew,ex,eC,eT,eO,eI,eL,ek,eA,eP,eM,e_,eR,eN,eD,eF,eH,ej,ez,eU,eW,eV,e$,eB,eX,eq,eY,eG,eJ,eK,eZ,eQ,e0,e1,e2,e4,e3,e8,e6,e9,e5,e7,te,tt,tn,ta,tl,ti,ts,tr,to,td,tc,th,tu,tm,tp,tv,tb,tg,tf,ty,tE,tS,tw,tx,tC,tT,tO,tI,tL,tk,tA,tP,tM,t_,tR,tN,tD,tF,tH,tj,tz,tU,tW,tV,t$,tB,tX,tq,tY,tG,tJ,tK,tZ,tQ,t0,t1,t2,t4,t3,t8,t6,t9,t5,t7,ne,nt,nn,na,nl,ni,ns,nr,no,nd,nc,nh,nu,nm,np,nv,nb,ng,nf,ny,nE,nS,nw,nx,nC,nT,nO,nI,nL,nk,nA,nP,nM,n_,nR,nN,nD,nF,nH,nj,nz,nU,nW,nV,n$,nB,nX,nq,nY,nG,nJ,nK,nZ,nQ,n0,n1,n2,n4,n3,n8,n6,n9,n5,n7,ae,at,an,aa,al,ai,as,ar,ao,ad,ac,ah,au,am,ap,av,ab,ag,af,ay,aE,aS,aw,ax,aC,aT,aO,aI,aL,ak,aA,aP,aM,a_,aR,aN,aD,aF,aH,aj,az,aU,aW,aV,a$,aB,aX,aq,aY,aG,aJ,aK,aZ,aQ,a0,a1,a2,a4,a3,a8,a6,a9,a5,a7,le,lt,ln,la,ll,li,ls,lr,lo,ld,lc,lh,lu,lm,lp,lv,lb,lg,lf,ly,lE,lS,lw,lx,lC,lT,lO,lI,lL,lk,lA,lP,lM,l_,lR,lN,lD,lF,lH,lj,lz,lU,lW,lV,l$,lB,lX,lq,lY,lG,lJ,lK,lZ,lQ,l0,l1,l2,l4,l3,l8,l6,l9,l5,l7,ie,it,ia,il,ii,is,ir,io,id,ic,ih,iu,im,ip,iv,ib,ig,iy,iE,iS,iw,ix,iC,iT,iO,iI,iL,ik,iA,iP,iM,i_,iR,iN,iD,iF,iH,ij,iz,iU,iW,iV,i$,iB,iX,iq,iY,iG,iJ,iK,iZ,iQ,i0,i1,i2,i4,i3;function i8(e,t,n,a,l,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var r,o=a.kind,d="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?a.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,a.name):{}),u=!1,m=n.length-1;m>=0;m--){var p={};for(var v in a)p[v]="access"===v?{}:a[v];for(var v in a.access)p.access[v]=a.access[v];p.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var b=(0,n[m])("accessor"===o?{get:h.get,set:h.set}:h[d],p);if("accessor"===o){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw TypeError("Object expected");(r=s(b.get))&&(h.get=r),(r=s(b.set))&&(h.set=r),(r=s(b.init))&&l.unshift(r)}else(r=s(b))&&("field"===o?l.unshift(r):h[d]=r)}c&&Object.defineProperty(c,a.name,h),u=!0}function i6(e,t,n){for(var a=arguments.length>2,l=0;l<t.length;l++)n=a?t[l].call(e,n):t[l].call(e);return a?n:void 0}function i9(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}let i5=[];function i7(){let e=i5;for(let[t,n]of(i5=[],e))n?t.call(n):t()}function se(e,t){0===i5.length&&queueMicrotask(i7),i5.push([e,t])}function st(e,t,n){let a;return(l,{addInitializer:i})=>{let s=new Set([...t.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class r extends l{static registerPlugin(e){if(r.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)s.add(t);t.push(e)}static observedAttributes=[...l.observedAttributes??[],...t.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#y=[];constructor(){if(super(),n&&!a&&((a=document.createElement("template")).innerHTML=n,document.body.appendChild(a)),a&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=a.content.cloneNode(!0);e.append(t)}this.#y=t.map(e=>new e(this)),this.#E()}#S=!1;#w=new Map;#x(){!this.#S&&s.size&&(this.#S=!0,se(this.#C,this))}#C(){let e=getComputedStyle(this);for(let n of s){var t;let a=e.getPropertyValue(n),l=e.getPropertyPriority(n),i=(t=a.trim(),l?t+" !important":t);if(this.#w.get(n)!==i)for(let e of this.#y)e.cssPropertyChangedHandler?.[n]?.call(e,i,n)}this.#S=!1}setAttribute(e,t){"false"!==t.toString()||l.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,t):this.removeAttribute(e)}#E(){let e=this.attributes;for(let t=0,n;n=e.item(t);t++)"false"!==n.value||l.notToFilterFalseAttributes?.has(n.name)||n.name.startsWith("data-")||this.removeAttributeNode(n)}#t=!1;attributeChangedCallback(e,t,n){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n),l.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===t&&(t=null),"false"===n&&(n=null,this.removeAttribute(e))),t!==n){for(let a of(this.#t&&("class"===e||"style"===e)&&this.#x(),this.#y))if(a.attributeChangedHandler?.[e]){let{handler:l,noDomMeasure:i}=a.attributeChangedHandler[e];i?l.call(a,n,t,e):this.#t&&se(()=>l.call(a,n,t,e))}}}#T(){this.getAttributeNames().forEach(e=>{for(let t of this.#y)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:a}=t.attributeChangedHandler[e];a||se(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#y.forEach(e=>{e.connectedCallback?.()}),this.#x(),se(this.#T,this),this.#t=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#y.forEach(e=>{e.dispose?.()})}#O={};addEventListener(e,t,n){super.addEventListener(e,t,n),this.#O[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let a=this.#O[e],l=("object"==typeof n?n.capture:n)?a.captureListenerCount:a.listenerCount,i=l.get(t)??0;if(l.set(t,i+1),0===a.count)for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}a.count++}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let a="object"==typeof n?n.capture:n,l=this.#O[e];if(l&&l.count>0&&1===(a?l?.captureListenerCount:l?.listenerCount).get(t)&&(l.listenerCount.delete(t),l.count--,0===l.count))for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}}return i(()=>{customElements.define(e,r)}),r}}s=[st("lynx-wrapper",[])],r=[],o=HTMLElement,class extends o{static{i=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i8(null,l={value:i},s,{kind:"class",name:i.name,metadata:e},null,r),i=l.value,e&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(i,r)}};let sn={bubbles:!1,composed:!1,cancelable:!0};function sa(e,t){return function(n,...a){return function(l,i){if("method"===i.kind)i.addInitializer(function(){this[e]??={},this[e][n]=t(l,a)});else if("field"===i.kind)return function(l){return this[e]??={},this[e][n]=t(l,a),l};else throw Error(`[lynx-web-components] decorator type ${i.kind} is not supported`)}}}let sl=sa("eventStatusChangedHandler",e=>e),si=Symbol("layoutChangeTarget"),ss=(d=[],c=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8(null,null,[sl("layoutchange")],{kind:"field",name:"__handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"__handleScrollUpperThresholdEventEnabled"in e,get:e=>e.__handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e.__handleScrollUpperThresholdEventEnabled=t}},metadata:e},d,c),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I;constructor(e){i6(this,c),this.#I=e}#L=!1;#k;__handleScrollUpperThresholdEventEnabled=i6(this,d,e=>{e&&this.#I[si]?!this.#k&&(this.#k=new ResizeObserver(([e])=>{if(e){let t=this.#I.id,{top:n,bottom:a,left:l,right:i,width:s,height:r}=e.target.getBoundingClientRect();this.#I.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:s,height:r,left:l,right:i,top:n,bottom:a,id:t},...sn}))}}),this.#L||(this.#k.observe(this.#I[si]),this.#L=!0)):this.#k?.disconnect()});#A(){this.#k?.disconnect()}}),sr=sa("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),so=sa("cssPropertyChangedHandler",e=>e);function sd(e,t){let n,a;return()=>(a||(a=e()),a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=a.querySelector(t)),n)}function sc(e,t,n,a){return function(l){l?(n&&(l=n(l)),se(()=>e.call(this).style.setProperty(t,l,a?"important":void 0))):se(()=>e.call(this).style.removeProperty(t))}}let sh=(p=[],v=[],b=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;h=[sr("fading-edge-length",!0)],u=[so("background"),so("background-color")],i8(this,m={value:i9(function(e){this.#P().style.setProperty("--scroll-view-bg-color",e),this.#M().style.setProperty("--scroll-view-bg-color",e)},"#backgroundColorToVariable")},u,{kind:"method",name:"#backgroundColorToVariable",static:!1,private:!0,access:{has:e=>#_ in e,get:e=>e.#_},metadata:e},null,p),i8(null,null,h,{kind:"field",name:"#handleFadingEdgeLength",static:!1,private:!0,access:{has:e=>#R in e,get:e=>e.#R,set:(e,t)=>{e.#R=t}},metadata:e},v,b),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,p);#P=sd(()=>this.#I.shadowRoot,"#top-fade-mask");#M=sd(()=>this.#I.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){i6(this,b),this.#I=e}#R=i6(this,v,sc(()=>this.#I,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));get #_(){return m.value}connectedCallback(){}dispose(){}}),su=(S=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;g=[sr("scroll-top",!1),sr("scroll-left",!1),sr("initial-scroll-offset",!1)],y=[sr("scroll-to-index",!1),sr("initial-scroll-to-index",!1)],i8(this,f={value:i9(function(e,t,n){if(e){let t=parseFloat(e),a=this.#I.getAttribute("scroll-orientation"),l=this.#I.getAttribute("scroll-y"),i=this.#I.getAttribute("scroll-x"),s=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===l||"true"===l||"vertical"===a||"both"===a),r=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===i||"true"===i||"vertical"===a||"both"===a);requestAnimationFrame(()=>{s&&this.#I.scrollTo(0,t),r&&(this.#I.scrollLeft=t)})}},"#handleInitialScrollOffset")},g,{kind:"method",name:"#handleInitialScrollOffset",static:!1,private:!0,access:{has:e=>#N in e,get:e=>e.#N},metadata:e},null,S),i8(this,E={value:i9(function(e){if(e){let t=parseFloat(e),n=this.#I.children.item(t);if(n&&n instanceof HTMLElement){let e=null!==this.#I.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#I.scrollLeft=n.offsetLeft:this.#I.scrollTop=n.offsetTop})}}},"#handleInitialScrollIndex")},y,{kind:"method",name:"#handleInitialScrollIndex",static:!1,private:!0,access:{has:e=>#D in e,get:e=>e.#D},metadata:e},null,S),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,S);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#I=e}get #N(){return f.value}get #D(){return E.value}dispose(){}});function sm(e,t,n){let a;return l=>{null!==l?a||(a=new IntersectionObserver(n,{root:e()})).observe(t()):a&&(a.disconnect(),a=void 0)}}let sp="onscrollend"in document,sv=window.navigator.userAgent;sv.includes("Chrome"),/\b(iPad|iPhone|iPod|OS X)\b/.test(sv)&&!/Edge/.test(sv)&&/WebKit/.test(sv)&&window.MSStream;let sb=Symbol.for("lynx-scroll-container-dom"),sg=(L=[],k=[],A=[],P=[],M=[],_=[],R=[],N=[],D=[],F=[],H=[],j=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;w=[sl("scrolltoupper")],x=[sl("scrolltolower")],C=[sr("upper-threshold",!0)],T=[sr("lower-threshold",!0)],O=[sl("lynxscroll")],I=[sl("lynxscrollend")],i8(null,null,w,{kind:"field",name:"#handleScrollUpperThresholdEventEnabled",static:!1,private:!0,access:{has:e=>#F in e,get:e=>e.#F,set:(e,t)=>{e.#F=t}},metadata:e},L,k),i8(null,null,x,{kind:"field",name:"#handleScrollLowerThresholdEventEnabled",static:!1,private:!0,access:{has:e=>#H in e,get:e=>e.#H,set:(e,t)=>{e.#H=t}},metadata:e},A,P),i8(null,null,C,{kind:"field",name:"#updateUpperThreshold",static:!1,private:!0,access:{has:e=>#j in e,get:e=>e.#j,set:(e,t)=>{e.#j=t}},metadata:e},M,_),i8(null,null,T,{kind:"field",name:"#updateLowerThreshold",static:!1,private:!0,access:{has:e=>#z in e,get:e=>e.#z,set:(e,t)=>{e.#z=t}},metadata:e},R,N),i8(null,null,O,{kind:"field",name:"#handleScrollEventEnabled",static:!1,private:!0,access:{has:e=>#U in e,get:e=>e.#U,set:(e,t)=>{e.#U=t}},metadata:e},D,F),i8(null,null,I,{kind:"field",name:"#handleScrollEndEventEnabled",static:!1,private:!0,access:{has:e=>#W in e,get:e=>e.#W,set:(e,t)=>{e.#W=t}},metadata:e},H,j),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I;#V;#$=0;#B=0;constructor(e){i6(this,j),this.#I=e}#X=()=>this.#I;#q=sd(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=sd(()=>this.#I.shadowRoot,"#lower-threshold-observer");#G=e=>{let{isIntersecting:t,target:n}=e[0],a=n.id;t&&("upper-threshold-observer"===a?this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...sn,detail:this.#J()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...sn,detail:this.#J()})))};static observedAttributes=["upper-threshold","lower-threshold"];#F=i6(this,L,e=>{e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#K(e)});#K=(i6(this,k),sm(this.#X,this.#q,this.#G));#H=i6(this,A,e=>{e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),this.#Z(e)});#Z=(i6(this,P),sm(this.#X,this.#Y,this.#G));#j=i6(this,M,sc(this.#q,"flex-basis",e=>`${parseInt(e)}px`));#z=(i6(this,_),i6(this,R,sc(this.#Y,"flex-basis",e=>`${parseInt(e)}px`)));#J(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:a}=this.#X();0===e&&(e-=this.#I.scrollHeight/2-this.#I.scrollTop),0===t&&(t-=this.#I.scrollWidth/2-this.#I.scrollLeft);let l={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:a,isDragging:!1,deltaX:t-this.#$,deltaY:e-this.#B};return this.#$=t,this.#B=e,l}#Q=(i6(this,N),()=>{this.#ee&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...sn,detail:this.#J()}))});#et=()=>{this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn,detail:this.#J()}))};#en=!1;#U=i6(this,D,e=>{this.#en=e,this.#ea()});#ee=(i6(this,F),!1);#W=i6(this,H,e=>{this.#ee=e,this.#ea()});#ea(){this.#en||this.#ee?(this.#X().addEventListener("scroll",this.#Q),this.#X().addEventListener("scrollend",this.#et),this.#I.addEventListener("scroll",this.#Q),this.#I.addEventListener("scrollend",this.#et),this.#$=0,this.#B=0):(this.#I.removeEventListener("scroll",this.#Q),this.#I.removeEventListener("scrollend",this.#et))}connectedCallback(){}dispose(){}});class sf{static eventName="__scrollIntoView";static observedAttributes=[];#I;#el=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],a=this.#I;for(let e of t){if(e===a)break;n.push(e)}let l=this.#I.getAttribute("scroll-orientation"),i=null!==this.#I.getAttribute("scroll-x")||"both"===l||"horizontal"===l,s=null!==this.#I.getAttribute("scroll-y")||"both"===l||"vertical"===l,r=0,o=0;for(let{offsetTop:e,offsetLeft:t}of n)i&&(o+=t),s&&(r+=e);if(i)switch(e.detail.inline){case"center":o+=(e.target.clientWidth-this.#I.clientWidth)/2;break;case"end":o+=e.target.clientWidth-this.#I.clientWidth}if(s)switch(e.detail.block){case"center":r+=(e.target.clientHeight-this.#I.clientHeight)/2;break;case"end":r+=e.target.clientHeight-this.#I.clientHeight}a.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:o,top:r})};constructor(e){this.#I=e,this.#I.addEventListener(sf.eventName,this.#el,{passive:!1})}dispose(){this.#I.removeEventListener(sf.eventName,this.#el)}}let sy=/<\s*script/g,sE=e=>{let{src:t}=e;if(t&&sy.test(t))throw Error("detected <script, this is a potential XSS attack, please check your src");return`<img part="img" alt="" loading="lazy" id="img" ${t?`src="${t}"`:""}/> `},sS=`<style>
|
|
6
|
+
}`],b={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"}},g={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function f(e,t,n=!0,i=!1,l){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:i,bufferSize:l}}let y=f("__postExposure",!1,!1),E=f("publicComponentEvent",!1,!1),S=f("publishEvent",!1,!1),_=f("postOffscreenEventEndpoint",!1,!1),w=f("switchExposureServiceEndpoint",!1,!1),x=f("mainThreadStart",!1,!1),T=f("updateData",!1,!0),C=f("sendGlobalEventEndpoint",!1,!1),O=f("dispose",!1,!0),I=f("start",!1,!0),L=f("reportError",!1,!1),k=f("flushElementTree",!1,!0),A=f("callLepusMethod",!1,!0),P=f("multiThreadExposureChangedEndpoint",!1,!1),M=f("__invokeUIMethod",!1,!0),R=f("__setNativeProps",!1,!0),N=f("__getPathInfo",!1,!0),D=f("nativeModulesCall",!1,!0),F=f("napiModulesCall",!1,!0,!0),H=f("getCustomSections",!1,!0),j=f("markTiming",!1,!1),z=f("postTimingFlags",!1,!1),U=f("__triggerComponentEvent",!1,!1),W=f("__selectComponent",!1,!0),V=f("dispatchLynxViewEvent",!1,!1),$=f("dispatchNapiModule",!1,!1),B=f("dispatchCoreContextOnBackground",!1,!1),X=f("dispatchJSContextOnMainThread",!1,!1),q=f("__triggerElementMethod",!1,!1),Y=f("updateGlobalProps",!1,!1),G=f("updateI18nResources",!1,!1),J=f("updateI18nResource",!1,!1),K=f("dispatchI18nResource",!1,!1),Q=f("queryComponent",!1,!0),Z=f("updateBTSTemplateCacheEndpoint",!1,!0),ee=f("loadTemplateMultiThread",!1,!0);(er=eh||(eh={}))[er.ID_SELECTOR=0]="ID_SELECTOR",er[er.REF_ID=1]="REF_ID",er[er.UNIQUE_ID=2]="UNIQUE_ID",(eo=eu||(eu={}))[eo.SUCCESS=0]="SUCCESS",eo[eo.UNKNOWN=1]="UNKNOWN",eo[eo.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",eo[eo.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",eo[eo.PARAM_INVALID=4]="PARAM_INVALID",eo[eo.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",eo[eo.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(ed=em||(em={}))[ed.UPDATE=0]="UPDATE",ed[ed.RESET=1]="RESET",(ec=ep||(ep={}))[ec.START=0]="START",ec[ec.PLAY=1]="PLAY",ec[ec.PAUSE=2]="PAUSE",ec[ec.CANCEL=3]="CANCEL",ec[ec.FINISH=4]="FINISH";let et=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,en="i18nResourceMissed";class ei{data;constructor(e){this.data=e}setData(e){this.data=e}}class el 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:n}=this._config;return t.invoke(n,[e]),3}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}let ea=({timingKey:e,pipelineId:t,timeStamp:n,markTiming:i,cacheMarkTimings:l})=>{l.records.push({timingKey:e,pipelineId:t,timeStamp:n??performance.now()+performance.timeOrigin}),l.timeout||(l.timeout=setTimeout(()=>{i(l.records),l.records=[],l.timeout=null},500))},es=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)};var er,eo,ed,ec,eh,eu,em,ep,eb=n(6894)},6894(e,t,n){n.d(t,{Y:()=>s});let i=["navigator","postMessage","window"],l=[e=>(e.appType=e.appType??(e.lepusCode.root.startsWith("(function (globDynamicComponentEntry")?"lazy":"card"),e.version=2,e.lepusCode=Object.fromEntries(Object.entries(e.lepusCode).filter(([e,t])=>"string"==typeof t)),e)];async function a(e,t,n,l,a){return Promise.all(Object.entries(e).filter(([e,t])=>"string"==typeof t).map(async([e,s])=>{let r;return[e,await t((r=`${a}/${e.replaceAll("/","_")}.js`,(n?"//# allFunctionsCalledOnLoad":"")+'\n(function() { "use strict"; const '+i.join("=void 0,")+"=void 0;\n"+("card"!==l?"module.exports=\n":"")+s+"\n})()\n//# sourceURL="+r),`${a}-${e.replaceAll("/","_")}.js`)]})).then(Object.fromEntries)}async function s(e,t,n){let i;if(e.version=e.version??1,e.version>2)throw Error("Unsupported template, please upgrade your web-platform dependencies");for(;e.version<2&&(i=l[e.version-1]);)e=i(e);return{...e,lepusCode:await a(e.lepusCode,t,!0,e.appType,n)}}},8687(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(4234),a=e([i]);i=(a.then?(await a)():a)[0];class s extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=s.observedAttributeAsProperties.map(e=>e.toLowerCase());#e;#t=!1;#n;get url(){return this.#n}set url(e){this.#n=e,this.#i()}#l={};get globalProps(){return this.#l}set globalProps(e){"string"==typeof e?this.#l=JSON.parse(e):this.#l=e}#a={};get initData(){return this.#a}set initData(e){"string"==typeof e?this.#a=JSON.parse(e):this.#a=e}#s=[];get initI18nResources(){return this.#s}set initI18nResources(e){"string"==typeof e?this.#s=JSON.parse(e):this.#s=e}updateI18nResources(e,t){this.#e?.updateI18nResources(e,t)}#r={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#r}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#r=JSON.parse(e):this.#r=e}#o=[];#d;get onNativeModulesCall(){return this.#d}set onNativeModulesCall(e){for(let t of(this.#d=e,this.#o))t.resolve(e.apply(void 0,t.args));this.#o=[]}#c={};get nativeModulesMap(){return this.#c}set nativeModulesMap(e){this.#c=e}#h={};get napiModulesMap(){return this.#h}set napiModulesMap(e){this.#h=e}#u;get onNapiModulesCall(){return this.#u}set onNapiModulesCall(e){this.#u=(t,n,i,l)=>e(t,n,i,this,l)}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#e?.updateData(e,t,n)}updateGlobalProps(e){this.#e?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#e?.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#i()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#n=n;break;case"global-props":this.#l=JSON.parse(n);break;case"init-data":this.#a=JSON.parse(n)}}get threadStrategy(){return this.getAttribute("thread-strategy")}set threadStrategy(e){e?this.setAttribute("thread-strategy",e):this.removeAttribute("thread-strategy")}get injectHeadLinks(){return"false"!==this.getAttribute("inject-head-links")}set injectHeadLinks(e){e?this.setAttribute("inject-head-links","true"):this.removeAttribute("inject-head-links")}injectStyleRules=[];disconnectedCallback(){this.#e?.dispose(),this.#e=void 0,this.shadowRoot?.querySelector(`[${l.Gq}="page"]`)?.setAttribute(l.JA,""),this.shadowRoot&&(this.shadowRoot.innerHTML="")}customTemplateLoader;#m=!1;#i(){!this.#m&&this.#t&&(this.#m=!0,queueMicrotask(()=>{this.#m=!1;let e=this.getAttribute("ssr");if(this.#e&&this.disconnectedCallback(),this.#n){let t={page:"div",view:"x-view",text:"x-text",image:"x-image",list:"x-list",svg:"x-svg",input:"x-input","x-input-ng":"x-input",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let n=this.lynxGroupId,a=this.threadStrategy??"all-on-ui";"multi-thread"===a&&console.warn('[LynxView] multi-thread strategy is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.');let s=(0,i.P)({threadStrategy:a,tagMap:t,shadowRoot:this.shadowRoot,templateUrl:this.#n,globalProps:this.#l,initData:this.#a,nativeModulesMap:this.#c,napiModulesMap:this.#h,lynxGroupId:n,initI18nResources:this.#s,callbacks:{nativeModulesCall:(...e)=>this.onNativeModulesCall?this.onNativeModulesCall(...e):new Promise(t=>{this.#o.push({args:e,resolve:t})}),napiModulesCall:(...e)=>this.onNapiModulesCall?.(...e),onError:(e,t,n)=>{this.dispatchEvent(new CustomEvent("error",{detail:{sourceMap:{offset:{line:2,col:0}},error:e,release:t,fileName:n}}))},customTemplateLoader:this.customTemplateLoader},ssr:e?JSON.parse(decodeURI(e)):void 0});if(this.#e=s,!e){let e=document.createElement("style");this.shadowRoot.append(e);let t=e.sheet;for(let e of l.OE)t.insertRule(e);for(let e of this.injectStyleRules)t.insertRule(e);"false"!==this.getAttribute("inject-head-links")&&document.head.querySelectorAll('link[rel="stylesheet"]').forEach(e=>{let n=e.href;t.insertRule(`@import url("${n}");`)})}}}))}connectedCallback(){this.#t=!0,this.#i()}}customElements.get(s.tag)?console.warn(`[${s.tag}] has already been defined`):customElements.define(s.tag,s),t()}catch(e){t(e)}})},3379(e,t,n){n.a(e,async function(e,i){try{n.d(t,{P:()=>s});var l=n(7826),a=e([l]);l=(a.then?(await a)():a)[0];let r=window.devicePixelRatio,o=window.screen.availWidth*r,d=window.screen.availHeight*r;function s(e){let{shadowRoot:t,callbacks:n,templateUrl:i,globalProps:a,initData:s,nativeModulesMap:r,napiModulesMap:c,tagMap:h,lynxGroupId:u,threadStrategy:m="multi-thread",initI18nResources:p,ssr:b}=e;return(0,l.$)(i,{tagMap:h,initData:s,globalProps:a,nativeModulesMap:r,napiModulesMap:c,browserConfig:{pixelRatio:window.devicePixelRatio,pixelWidth:o,pixelHeight:d},initI18nResources:p},t,u,m,n,b)}i()}catch(e){i(e)}})},3493(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(8687),a=e([i,l]);[i,l]=a.then?(await a)():a,t()}catch(e){t(e)}})},5969(e,t,n){n.d(t,{C:()=>r});var i=n(4234);class l{port;name;incId=0;#p=[];#b={};#v=new TextEncoder;#g=new TextDecoder;#f=new Map;constructor(e,t){this.port=e,this.name=t,e&&(e.onmessage=e=>this.#y(e.data))}setMessagePort(e){if(this.port)throw Error("Rpc port already set");for(let t of(this.port=e,this.#p))this.postMessage(t.message,t.detail);this.#p=[],e.onmessage=e=>this.#y(e.data)}postMessage(e,t){this.port?this.port.postMessage(e,t):this.#p.push({message:e,detail:t})}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#y=async e=>{let t=this.#f.get(e.name);if(t){let n=e.sync?new Int32Array(e.lock):void 0,i=!e.sync&&e.retId?l.createRetEndpoint(e.retId):void 0;try{let l=await t(...e.data),a,s=[];if(e.sync?a=l:e.hasTransfer?{data:a,transfer:s}=l||{}:a=l,e.sync){if(e.buf){let t=JSON.stringify(a),n=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),l=new Uint8Array(e.buf.byteLength-4),{written:s}=this.#v.encodeInto(t,l);n[0]=s,i.set(l,0)}Atomics.store(n,0,1),Atomics.notify(n,0)}else e.retId&&this.invoke(i,[a,!1],s||[])}catch(t){console.error(t),e.sync?(Atomics.store(n,0,2),Atomics.notify(n,0),n[1]=2):this.invoke(i,[void 0,!0])}}else{let t=this.#b[e.name];t?t.push(e):this.#b[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#f.set(e.name,t);let n=this.#b[e.name];if(n?.length)for(let t of(this.#b[e.name]=void 0,n))this.#y(t)}registerHandlerRef(e,t,n){this.registerHandler(e,(...e)=>t[n]?.call(t,...e))}registerHandlerLazy(e,t,n){if(t[n])this.registerHandlerRef(e,t,n);else{let i,l=this;Object.defineProperty(t,n,{get:()=>i,set(a){i=a,a&&l.registerHandlerRef(e,t,n)}})}}removeHandler(e){this.#f.delete(e.name)}invoke(e,t,n=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,l=new SharedArrayBuffer(4),a=new Int32Array(l);a[0]=0;let s={name:e.name,data:t,sync:!0,lock:l,buf:i};if(this.postMessage(s,{transfer:n}),Atomics.wait(a,0,0),2===a[0])throw null;if(!i)return;{let e=new Uint32Array(i,0,4)[0],t=new Uint8Array(i,4,e),n=new Uint8Array(e);return n.set(t,0),n?JSON.parse(this.#g.decode(n)):void 0}}if(e.hasReturn){let i,a,s;i=new Promise((e,t)=>{a=e,s=t});let r=l.createRetEndpoint(this.nextRetId);this.registerHandler(r,(e,t)=>{t&&s(),a(e)});let o={name:e.name,data:t,sync:!1,retId:r?.name,hasTransfer:e.hasReturnTransfer};return this.postMessage(o,{transfer:n}),i}{let i={name:e.name,data:t,sync:!1};this.postMessage(i,{transfer:n})}}createCallbackify(e,t){let n=this.createCall(e);return(...e)=>{let i=e.at(t);e.splice(t,1),n(...e).then(i)}}}let a=[],s=[];function r(e,t,n){var r,d,c;let h,u,m,p,b,v,g,f,y,E=(r=e,d=(y=t?{mainThreadRpc:new l((h=new MessageChannel).port1,"main-to-bg"),channelMainThreadWithBackground:h}:(u=new MessageChannel,m=new MessageChannel,p=o("lynx-main"),b={mode:"main",toUIThread:u.port2,toPeerThread:m.port1},p.postMessage(b,[u.port2,m.port1]),{mainThreadRpc:new l(u.port1,"ui-to-main"),mainThreadWorker:p,channelMainThreadWithBackground:m})).channelMainThreadWithBackground,c=n,g=new MessageChannel,r?(v=s[r]??o("lynx-bg"),s[r]=v):v=o("lynx-bg"),f={mode:"background",toUIThread:g.port2,toPeerThread:d.port2,systemInfo:{...i.c1,...c}},v.postMessage(f,[g.port2,d.port2]),{backgroundRpc:new l(g.port1,"ui-to-bg"),backgroundThreadWorker:v});return void 0!==e&&(a[e]?a[e]++:a[e]=1),{mainThreadRpc:y.mainThreadRpc,backgroundRpc:E.backgroundRpc,terminateWorkers:()=>{y.mainThreadWorker?.terminate(),void 0===e?E.backgroundThreadWorker.terminate():1===a[e]?(E.backgroundThreadWorker.terminate(),a[e]=0,s[e]=void 0):"number"==typeof a[e]&&a[e]>1&&a[e]--}}}function o(e){return new Worker(new URL(n.p+n.u("524"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},768(e,t,n){n.a(e,async function(e,i){try{n.d(t,{z:()=>o});var l=n(4234),a=n(6621),s=n(2244);let e=document.querySelector("script[nonce]"),d=e?.nonce||e?.getAttribute("nonce")||"",{prepareMainThreadAPIs:c}=await n.e("361","high").then(n.bind(n,7637));async function r(e){let t=document.createElement("iframe"),n=new Promise(e=>{let n=i=>{"lynx:mtsready"===i.data&&i.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc=`<!DOCTYPE html><html><head><script nonce="${d}">parent.postMessage("lynx:mtsready","*")</script></head><body style="display:none"></body></html>`,t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await n;let i=t.contentWindow,l=async e=>{let n=t.contentDocument.createElement("script");return n.fetchPriority="high",n.defer=!0,n.async=!1,n.nonce=d,t.contentDocument.head.appendChild(n),new Promise(async(t,l)=>{n.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},n.onerror=t=>l(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},n.src=e})};return{globalWindow:i,loadScript:l,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.nonce=d,e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let l=i?.module?.exports;return i.module={exports:void 0},l}throw Error(`Failed to load script: ${e}`,{cause:n})}}}function o(e,t,n,i,o,d,h){globalThis.module||Object.assign(globalThis,{module:{}});let u=new l.gI,{exposureChangedCallback:m}=(0,s.e)(t),p=r(t),{startMainThread:b,handleUpdatedData:v}=c(e,t,document,p,m,i,o,(e,t,n)=>{d.onError?.(e,n,"lepus.js")},e=>{(0,a.D)(t,l.hv,e)},e=>(u.setData(e),u),n,void 0,!0),g=async e=>{if(h){let n=[],i=t.querySelectorAll(`[${l.SP}]`),a=i.length;for(let e=0;e<a;e++){let t=i[e];n[Number(t.getAttribute(l.SP))]=new WeakRef(t)}let s=t.querySelector("style:nth-of-type(2)"),r=s?.sheet,o=[],d=r?.cssRules.length??0;for(let e=0;e<d;e++){let t=r?.cssRules[e];if(t?.constructor.name==="CSSStyleRule"){let n=parseFloat(t.selectorText.substring(l.SP.length+3));void 0===n||isNaN(n)||(o[n]=e)}}await b(e,{lynxUniqueIdToElement:n,lynxUniqueIdToStyleRulesIndex:o,...h,cardStyleElement:s})}else await b(e)},f=async(e,t)=>v(e,t);return{start:g,updateDataMainThread:f,updateI18nResourcesMainThread:e=>{u.setData(e)}}}i()}catch(e){i(e)}},1)},6865(e,t,n){n.d(t,{k:()=>h});var i=n(4234),l=n(6993);let a={CreateElement:1,SetAttribute:2,RemoveAttribute:3,Append:4,Remove:5,ReplaceWith:6,InsertBefore:7,EnableEvent:8,RemoveChild:9,StyleDeclarationSetProperty:10,StyleDeclarationRemoveProperty:11,SetTextContent:12,sheetInsertRule:13,sheetRuleUpdateCssText:14};function s(){}let r=["detail","keyCode","charCode","elapsedTime","propertyName","pseudoElement","animationName","touches","targetTouches","changedTouches","x","y"],o=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);var d=n(2515),c=n(2244);function h(e,t,n,h){(0,l.m)(e,"lepus.js",h.onError),function(e,t){let{shadowRoot:n}=t,{decodeOperation:l}=function(e){let{shadowRoot:t,onEvent:n}=e,i=new Set,l=[new WeakRef(t)],d=new WeakMap;function c(e){let t=l[e]?.deref();if(t)return t;throw Error(`[lynx-web] cannot find element with uniqueId: ${e}`)}function h(e){if(e.eventPhase!==Event.CAPTURING_PHASE&&e.currentTarget!==t)return;let i=e.target;if(i&&d.has(i)){let t=d.get(i),l=e.type,a={};for(let t of r)t in e&&(a[t]=function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t)return t;if(t[Symbol.iterator])return[...t].map(e);if("object"==typeof t&&!(t instanceof EventTarget)){let n={};for(let i in t)o.has(i)||(n[i]=e(t[i]));return n}}(e[t]));n(l,t,e.bubbles,a)}}return{decodeOperation:function(e){let n;if(0===e.length)return;let r=0,{CreateElement:o,SetAttribute:u,RemoveAttribute:m,Append:p,Remove:b,ReplaceWith:v,InsertBefore:g,EnableEvent:f,RemoveChild:y,StyleDeclarationSetProperty:E,StyleDeclarationRemoveProperty:S,SetTextContent:_,sheetInsertRule:w,sheetRuleUpdateCssText:x}=a;for(;n=e[r++];){let a=e[r++];if(n===o){let t=document.createElement(e[r++]);l[a]=new WeakRef(t),d.set(t,a)}else{let l=c(a);switch(n){case u:{let t=e[r++],n=e[r++];l.setAttribute(t,n)}break;case m:l.removeAttribute(e[r++]);break;case p:{let t=e[r++];for(let n=0;n<t;n++){let t=c(e[r++]);l.appendChild(t)}}break;case b:l.remove();break;case v:{let t=e[r++],n=e.slice(r,r+t).map(e=>c(e));r+=t,l.replaceWith(...n)}break;case g:{let t=c(e[r++]),n=e[r++],i=n?c(n):null;l.insertBefore(t,i)}break;case f:let o=e[r++];l.addEventListener(o,s,{passive:!0}),i.has(o)||(t.addEventListener(o,h,{passive:!0,capture:!0}),i.add(o));break;case y:{let t=c(e[r++]);l.removeChild(t)}break;case E:l.style.setProperty(e[r++],e[r++],e[r++]);break;case S:l.style.removeProperty(e[r++]);break;case _:l.textContent=e[r++];break;case w:{let t=e[r++],n=e[r++];l.sheet.insertRule(n,t)}break;case x:{let t=e[r++];l.sheet.cssRules[t].style.cssText=e[r++]}}}}}}}({shadowRoot:n,onEvent:e.createCall(i.Zu)});e.registerHandler(i.E_,e=>{l(e)})}(e,{shadowRoot:t}),(0,d.c)(e,t),(0,c.g)(e,t),e.registerHandler(i.o3,n);let u=e.createCall(i.Hf);return{start:u,updateDataMainThread:e.createCall(i.Ve),updateI18nResourcesMainThread:e.createCall(i.k3)}}},9791(e,t,n){n.d(t,{i:()=>l});var i=n(4234);function l(e,t){return async()=>{await e.invoke(i.hh,[]),t()}}},2244(e,t,n){function i(e,t,n){if(t){if((t=t.trim()).endsWith("px"))return Number(t.substring(0,t.length-2));if(t.endsWith("%")){let i=Number(t.substring(0,t.length-1)),{width:l,height:a}=e.getBoundingClientRect();return(n?l:a)*i/100}}return 0}n.d(t,{g:()=>r,e:()=>s});var l=n(4234);let a=Symbol.for("lynx-scroll-container-dom");function s(e){let t=new WeakMap,n=new WeakMap,l=new WeakSet,s=(e,t,n)=>{let i=e.getAttribute("exposure-scene")??"",l={exposureID:n,exposureScene:i,"exposure-id":n,"exposure-scene":i},a=new CustomEvent(t?"uiappear":"uidisappear",{bubbles:!1,composed:!1,cancelable:!0,detail:l}),s=new CustomEvent(t?"exposure":"disexposure",{bubbles:!0,composed:!1,cancelable:!1,detail:l});Object.assign(a,l),e.dispatchEvent(a),e.dispatchEvent(s)},r=e=>{e.forEach(({target:e,isIntersecting:t})=>{t&&!l.has(e)?(s(e,!0,e.getAttribute("exposure-id")),l.add(e)):!t&&l.has(e)&&(s(e,!1,e.getAttribute("exposure-id")),l.delete(e))})};return{exposureChangedCallback:o=>{o.forEach(o=>{let d=n.get(o)??null,c=o.getAttribute("exposure-id");null!==d&&s(o,!1,d),n.set(o,c),t.get(o)?.disconnect(),t.delete(o),l.delete(o),null!==o.getAttribute("exposure-id")&&(n=>{let l=parseFloat(n.getAttribute("exposure-area")??"0")/100,s=i(n,n.getAttribute("exposure-screen-margin-top")),o=i(n,n.getAttribute("exposure-screen-margin-right")),d=i(n,n.getAttribute("exposure-screen-margin-bottom")),c=i(n,n.getAttribute("exposure-screen-margin-left")),h=i(n,n.getAttribute("exposure-ui-margin-top")),u=i(n,n.getAttribute("exposure-ui-margin-right")),m=i(n,n.getAttribute("exposure-ui-margin-bottom")),p=i(n,n.getAttribute("exposure-ui-margin-left")),b=n.parentElement;for(;b;)if(b[a]){b=b[a];break}else b=b.parentElement;let v=new IntersectionObserver(r,{rootMargin:`${(m?-1:1)*(s-m)}px ${(p?-1:1)*(o-p)}px ${(h?-1:1)*(d-h)}px ${(u?-1:1)*(c-u)}px`,root:b??e.parentElement,threshold:l});v.observe(n),t.set(n,v)})(o)})}}}function r(e,t){let{exposureChangedCallback:n}=s(t);e.registerHandler(l.gj,e=>{n(e.map(e=>t.querySelector(`[${l.SP}="${e}"]`)).filter(e=>null!==e))})}},4729(e,t,n){n.d(t,{k:()=>i});function i(e){return(t,n,i)=>{e(t,{processorName:n}).then(()=>i?.())}}},2515(e,t,n){n.d(t,{c:()=>a});var i=n(4234),l=n(6621);function a(e,t){e.registerHandler(i.gx,(e,n)=>{(0,l.D)(t,e,n)})}},6993(e,t,n){n.d(t,{m:()=>l});var i=n(4234);function l(e,t,n){e.registerHandler(i.o2,(e,i,l)=>{n?.(e,l,t)})}},3378(e,t,n){n.d(t,{r:()=>o});var i=n(4234);function l(e,t,n,l,a,s,r,o){let d,c=e;if(s){let t=e.querySelector(`[${i.SP}="${s}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for root_unique_id: ${s}`),o?.(i.O4.NODE_NOT_FOUND);return}}else if(l){let t=e.querySelector(`[${i.pP}="${l}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for component_id: ${l}`),o?.(i.O4.NODE_NOT_FOUND);return}}if(t===i.Wx.ID_SELECTOR)d=n;else if(t===i.Wx.UNIQUE_ID)d=`[${i.SP}="${n}"]`;else{console.error(`[lynx-web] NYI: setnativeprops type ${t}`),o?.(i.O4.UNKNOWN);return}if(a){let e=null;try{e=c.querySelector(d)}catch(e){console.error(`[lynx-web] cannot use selector: ${d}`),o?.(i.O4.SELECTOR_NOT_SUPPORTED);return}e?r(e):(console.error(`[lynx-web] cannot find from for selector ${n} under`,c),o?.(i.O4.NODE_NOT_FOUND))}else c.querySelectorAll(d).forEach(e=>{r(e)})}let a={boundingClientRect:e=>{let t=e.getBoundingClientRect();return{id:e.id,width:t.width,height:t.height,left:t.left,right:t.right,top:t.top,bottom:t.bottom}}};var s=n(2515),r=n(6993);function o(e,t,n){var o,d;let c,h,u,m,p;c=i.O4.UNKNOWN,e.registerHandler(i.zk,(e,n,s,r,o,d)=>(l(t,e,n,s,!0,d,e=>{try{let t=a[r],n="function"==typeof e[r];t||n?(h=t?t(e,o):e[r](o),c=i.O4.SUCCESS):c=i.O4.METHOD_NOT_FOUND}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),c=i.O4.PARAM_INVALID}},e=>{c=e}),{code:c,data:h})),e.registerHandler(i.PC,(e,n,i,a,s,r)=>{l(t,e,n,i,a,r,e=>{var t=e;for(let e in s){let n=s[e];"text"===e&&t?.tagName==="X-TEXT"&&t.firstElementChild&&"RAW-TEXT"==t.firstElementChild.tagName&&(t=t.firstElementChild),CSS.supports(e,n)&&t.style?t.style.setProperty(e,n):t.setAttribute(e,n)}})}),e.registerHandler(i.pT,(e,n)=>{let l=t.querySelector(`[${i.pP}="${n.componentId}"]`);l?.dispatchEvent(new CustomEvent(e,{...n.eventOption,detail:n.eventDetail}))}),e.registerHandler(i.vr,(e,n,a)=>(l(t,i.Wx.ID_SELECTOR,n,"card"===e?"0":e,a,void 0,e=>{u=e}),[u?.getAttribute(i.pP)??void 0])),o=n.nativeModulesCall,e.registerHandler(i.g,o),d=n.napiModulesCall,m=e.createCall(i.Sy),e.registerHandler(i.VK,(e,t,n)=>d(e,t,n,m)),e.registerHandler(i.ZU,(e,n,a,s,r)=>{let o,d=i.O4.UNKNOWN;return l(t,e,n,a,s,r,e=>{try{let n=[],l=e;for(;l;){let e=l.parentElement,a=e??t,s=Array.from(a.children),r=l.getAttribute(i.Gq),o="page"===r?0:s.indexOf(l),d=l.getAttribute("id")||void 0,c=l.getAttribute("class")||void 0,h=l.getAttribute(i.C6),u=h?JSON.parse(decodeURIComponent(h)):void 0;if(n.push({tag:r,id:d,class:c,dataSet:u,index:o}),"page"===r||l.parentNode===t)break;l=e}o={path:n},d=i.O4.SUCCESS}catch(t){console.error("[lynx-web] getPathInfo: failed with",t,e),d=i.O4.UNKNOWN}},e=>{d=e}),{code:d,data:o}}),(0,s.c)(e,t),p=new Map,e.registerHandler(i.vn,(e,n,l)=>{if("animate"===e)switch(l.operation){case i.Uc.START:p.set(l.id,t.querySelector(n)?.animate(l.keyframes,l.timingOptions));break;case i.Uc.PLAY:p.get(l.id)?.play();break;case i.Uc.PAUSE:p.get(l.id)?.pause();break;case i.Uc.CANCEL:p.get(l.id)?.cancel();break;case i.Uc.FINISH:p.get(l.id)?.finish()}}),(0,r.m)(e,"app-service.js",n.onError);let b=e.createCall(i.hO);return{sendGlobalEvent:b,markTiming:e.createCall(i.PM),updateI18nResourceBackground:(t,n)=>{let l=t.find(e=>(0,i.HO)(e.options)===(0,i.HO)(n));e.invoke(i.BE,[l?.resource])}}}},7826(e,t,n){n.a(e,async function(e,i){try{n.d(t,{$:()=>m});var l=n(5969),a=n(9791),s=n(4234),r=n(3893),o=n(4729),d=n(3378),c=n(6865),h=n(768),u=e([h]);function m(e,t,n,i,u,m,p){let b=performance.now()+performance.timeOrigin,v="all-on-ui"===u,{mainThreadRpc:g,backgroundRpc:f,terminateWorkers:y}=(0,l.C)(i,v,t.browserConfig),{markTiming:E,sendGlobalEvent:S,updateI18nResourceBackground:_}=(0,d.r)(f,n,m),w={records:[],timeout:null},x=(e,t,n)=>{(0,s.M$)({timingKey:e,pipelineId:t,timeStamp:n,markTiming:E,cacheMarkTimings:w})},T=()=>(0,s.qz)(E,w),C=(0,r._)(m.customTemplateLoader,x),{start:O,updateDataMainThread:I,updateI18nResourcesMainThread:L}=v?(0,h.z)(g,n,C,x,T,m,p):(0,c.k)(g,n,C,m);return x("create_lynx_start",void 0,b),C(e).then(e=>{T(),O({...t,template:e})}),{updateData:(0,o.k)(I),dispose:(0,a.i)(f,y),sendGlobalEvent:S,updateGlobalProps:f.createCall(s.yn),updateI18nResources:(...e)=>{L(e[0]),_(...e)}}}h=(u.then?(await u)():u)[0],i()}catch(e){i(e)}})},6621(e,t,n){n.d(t,{D:()=>i});let i=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0,composed:!0}))}},3893(e,t,n){n.d(t,{_:()=>s});var i=n(4234);let l=new Map;function a(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function s(e,t){return async n=>{t("load_template_start");let s=l.get(n);if(s)return t("load_template_end"),s;{let s=new Promise(async(t,s)=>{try{let l=e?await e(n):await (await fetch(n,{method:"GET"})).json(),s=await (0,i.Yx)(l,a,encodeURIComponent(n));t(s)}catch(e){l.delete(n),s(e)}});return l.set(n,s),t("load_template_end"),s}}}},6675(){var e,t,n,i;let l,a,s,r,o,d,c,h,u,m,p,b,v,g,f,y,E,S,_,w,x,T,C,O,I,L,k,A,P,M,R,N,D,F,H,j,z,U,W,V,$,B,X,q,Y,G,J,K,Q,Z,ee,et,en,ei,el,ea,es,er,eo,ed,ec,eh,eu,em,ep,eb,ev,eg,ef,ey,eE,eS,e_,ew,ex,eT,eC,eO,eI,eL,ek,eA,eP,eM,eR,eN,eD,eF,eH,ej,ez,eU,eW,eV,e$,eB,eX,eq,eY,eG,eJ,eK,eQ,eZ,e0,e1,e2,e4,e3,e8,e6,e9,e5,e7,te,tt,tn,ti,tl,ta,ts,tr,to,td,tc,th,tu,tm,tp,tb,tv,tg,tf,ty,tE,tS,t_,tw,tx,tT,tC,tO,tI,tL,tk,tA,tP,tM,tR,tN,tD,tF,tH,tj,tz,tU,tW,tV,t$,tB,tX,tq,tY,tG,tJ,tK,tQ,tZ,t0,t1,t2,t4,t3,t8,t6,t9,t5,t7,ne,nt,nn,ni,nl,na,ns,nr,no,nd,nc,nh,nu,nm,np,nb,nv,ng,nf,ny,nE,nS,n_,nw,nx,nT,nC,nO,nI,nL,nk,nA,nP,nM,nR,nN,nD,nF,nH,nj,nz,nU,nW,nV,n$,nB,nX,nq,nY,nG,nJ,nK,nQ,nZ,n0,n1,n2,n4,n3,n8,n6,n9,n5,n7,ie,it,ii,il,ia,is,ir,io,id,ic,ih,iu,im,ip,ib,iv,ig,iy,iE,iS,i_,iw,ix,iT,iC,iO,iI,iL,ik,iA,iP,iM,iR,iN,iD,iF,iH,ij,iz,iU,iW,iV,i$,iB,iX,iq,iY,iG,iJ,iK,iQ,iZ,i0,i1,i2,i4,i3,i8,i6,i9,i5,i7,le,lt,ln,li,ll,la,ls,lr,lo,ld,lc,lh,lu,lm,lp,lb,lv,lg,lf,ly,lE,lS,l_,lw,lx,lT,lC,lO,lI,lL,lk,lA,lP,lM,lR,lN,lD,lF,lH,lj,lz,lU,lW,lV,l$,lB,lX,lq,lY,lG,lJ,lK,lQ,lZ,l0,l1,l2,l4,l3,l8,l6,l9,l5,l7,ae,at,an,ai,al,aa,as,ar,ao,ad,ac;function ah(e,t,n,i,l,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var r,o=i.kind,d="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?i.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,i.name):{}),u=!1,m=n.length-1;m>=0;m--){var p={};for(var b in i)p[b]="access"===b?{}:i[b];for(var b in i.access)p.access[b]=i.access[b];p.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var v=(0,n[m])("accessor"===o?{get:h.get,set:h.set}:h[d],p);if("accessor"===o){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(r=s(v.get))&&(h.get=r),(r=s(v.set))&&(h.set=r),(r=s(v.init))&&l.unshift(r)}else(r=s(v))&&("field"===o?l.unshift(r):h[d]=r)}c&&Object.defineProperty(c,i.name,h),u=!0}function au(e,t,n){for(var i=arguments.length>2,l=0;l<t.length;l++)n=i?t[l].call(e,n):t[l].call(e);return i?n:void 0}let am=[];function ap(){let e=am;for(let[t,n]of(am=[],e))n?t.call(n):t()}function ab(e,t){0===am.length&&queueMicrotask(ap),am.push([e,t])}function av(e,t,n){let i;return(l,{addInitializer:a})=>{let s=new Set([...t.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class r extends l{static registerPlugin(e){if(r.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)s.add(t);t.push(e)}static observedAttributes=[...l.observedAttributes??[],...t.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#E=[];constructor(){if(super(),n&&!i&&((i=document.createElement("template")).innerHTML=n,document.body.appendChild(i)),i&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=i.content.cloneNode(!0);e.append(t)}this.#E=t.map(e=>new e(this)),this.#S()}#_=!1;#w=new Map;#x(){!this.#_&&s.size&&(this.#_=!0,ab(this.#T,this))}#T(){let e=getComputedStyle(this);for(let n of s){var t;let i=e.getPropertyValue(n),l=e.getPropertyPriority(n),a=(t=i.trim(),l?t+" !important":t);if(this.#w.get(n)!==a)for(let e of this.#E)e.cssPropertyChangedHandler?.[n]?.call(e,a,n)}this.#_=!1}setAttribute(e,t){"false"!==t.toString()||l.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,t):this.removeAttribute(e)}#S(){let e=this.attributes;for(let t=0,n;n=e.item(t);t++)"false"!==n.value||l.notToFilterFalseAttributes?.has(n.name)||n.name.startsWith("data-")||this.removeAttributeNode(n)}#t=!1;attributeChangedCallback(e,t,n){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n),l.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===t&&(t=null),"false"===n&&(n=null,this.removeAttribute(e))),t!==n){for(let i of(this.#t&&("class"===e||"style"===e)&&this.#x(),this.#E))if(i.attributeChangedHandler?.[e]){let{handler:l,noDomMeasure:a}=i.attributeChangedHandler[e];a?l.call(i,n,t,e):this.#t&&ab(()=>l.call(i,n,t,e))}}}#C(){this.getAttributeNames().forEach(e=>{for(let t of this.#E)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:i}=t.attributeChangedHandler[e];i||ab(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#E.forEach(e=>{e.connectedCallback?.()}),this.#x(),ab(this.#C,this),this.#t=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#E.forEach(e=>{e.dispose?.()})}#O={};addEventListener(e,t,n){super.addEventListener(e,t,n),this.#O[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let i=this.#O[e],l=("object"==typeof n?n.capture:n)?i.captureListenerCount:i.listenerCount,a=l.get(t)??0;if(l.set(t,a+1),0===i.count)for(let t of this.#E){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}i.count++}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let i="object"==typeof n?n.capture:n,l=this.#O[e];if(l&&l.count>0&&1===(i?l?.captureListenerCount:l?.listenerCount).get(t)&&(l.listenerCount.delete(t),l.count--,0===l.count))for(let t of this.#E){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}}return a(()=>{customElements.define(e,r)}),r}}s=[av("lynx-wrapper",[])],r=[],o=HTMLElement,class extends o{static{a=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;ah(null,l={value:a},s,{kind:"class",name:a.name,metadata:e},null,r),a=l.value,e&&Object.defineProperty(a,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(a,r)}};let ag={bubbles:!1,composed:!1,cancelable:!0};function af(e,t){return function(n,...i){return function(l,a){if("method"===a.kind)a.addInitializer(function(){this[e]??={},this[e][n]=t(l,i)});else if("field"===a.kind)return function(l){return this[e]??={},this[e][n]=t(l,i),l};else throw Error(`[lynx-web-components] decorator type ${a.kind} is not supported`)}}}let ay=af("eventStatusChangedHandler",e=>e),aE=Symbol("layoutChangeTarget"),aS=(d=[],c=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah(null,null,[ay("layoutchange")],{kind:"field",name:"__handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"__handleScrollUpperThresholdEventEnabled"in e,get:e=>e.__handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e.__handleScrollUpperThresholdEventEnabled=t}},metadata:e},d,c),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I;constructor(e){au(this,c),this.#I=e}#L=!1;#k;__handleScrollUpperThresholdEventEnabled=au(this,d,e=>{e&&this.#I[aE]?!this.#k&&(this.#k=new ResizeObserver(([e])=>{if(e){let t=this.#I.id,{top:n,bottom:i,left:l,right:a,width:s,height:r}=e.target.getBoundingClientRect();this.#I.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:s,height:r,left:l,right:a,top:n,bottom:i,id:t},...ag}))}}),this.#L||(this.#k.observe(this.#I[aE]),this.#L=!0)):(this.#k?.disconnect(),this.#k=void 0,this.#L=!1)});dispose(){this.#k?.disconnect(),this.#k=void 0,this.#L=!1}}),a_=af("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),aw=af("cssPropertyChangedHandler",e=>e);function ax(e,t){let n,i;return()=>(i||(i=e()),i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=i.querySelector(t)),n)}function aT(e,t,n,i){return function(l){l?(n&&(l=n(l)),ab(()=>e.call(this).style.setProperty(t,l,i?"important":void 0))):ab(()=>e.call(this).style.removeProperty(t))}}let aC=(u=[],m=[],p=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;h=[a_("fading-edge-length",!0)],ah(this,null,[aw("background"),aw("background-color")],{kind:"method",name:"_backgroundColorToVariable",static:!1,private:!1,access:{has:e=>"_backgroundColorToVariable"in e,get:e=>e._backgroundColorToVariable},metadata:e},null,u),ah(null,null,h,{kind:"field",name:"_handleFadingEdgeLength",static:!1,private:!1,access:{has:e=>"_handleFadingEdgeLength"in e,get:e=>e._handleFadingEdgeLength,set:(e,t)=>{e._handleFadingEdgeLength=t}},metadata:e},m,p),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=au(this,u);#A=ax(()=>this.#I.shadowRoot,"#top-fade-mask");#P=ax(()=>this.#I.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){au(this,p),this.#I=e}_handleFadingEdgeLength=au(this,m,aT(()=>this.#I,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));_backgroundColorToVariable(e){this.#A().style.setProperty("--scroll-view-bg-color",e),this.#P().style.setProperty("--scroll-view-bg-color",e)}connectedCallback(){}dispose(){}}),aO=(g=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;b=[a_("scroll-top",!1),a_("scroll-left",!1),a_("initial-scroll-offset",!1)],v=[a_("scroll-to-index",!1),a_("initial-scroll-to-index",!1)],ah(this,null,b,{kind:"method",name:"_handleInitialScrollOffset",static:!1,private:!1,access:{has:e=>"_handleInitialScrollOffset"in e,get:e=>e._handleInitialScrollOffset},metadata:e},null,g),ah(this,null,v,{kind:"method",name:"_handleInitialScrollIndex",static:!1,private:!1,access:{has:e=>"_handleInitialScrollIndex"in e,get:e=>e._handleInitialScrollIndex},metadata:e},null,g),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=au(this,g);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#I=e}_handleInitialScrollOffset(e,t,n){if(e){let t=parseFloat(e),i=this.#I.getAttribute("scroll-orientation"),l=this.#I.getAttribute("scroll-y"),a=this.#I.getAttribute("scroll-x"),s=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===l||"true"===l||"vertical"===i||"both"===i),r=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===a||"true"===a||"vertical"===i||"both"===i);requestAnimationFrame(()=>{s&&this.#I.scrollTo(0,t),r&&(this.#I.scrollLeft=t)})}}_handleInitialScrollIndex(e){if(e){let t=parseFloat(e),n=this.#I.children.item(t);if(n&&n instanceof HTMLElement){let e=null!==this.#I.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#I.scrollLeft=n.offsetLeft:this.#I.scrollTop=n.offsetTop})}}}dispose(){}});function aI(e,t,n){let i;return l=>{null!==l?i||(i=new IntersectionObserver(n,{root:e()})).observe(t()):i&&(i.disconnect(),i=void 0)}}let aL="onscrollend"in document,ak=window.navigator.userAgent;ak.includes("Chrome"),/\b(iPad|iPhone|iPod|OS X)\b/.test(ak)&&!/Edge/.test(ak)&&/WebKit/.test(ak)&&window.MSStream;let aA=Symbol.for("lynx-scroll-container-dom"),aP=(x=[],T=[],C=[],O=[],I=[],L=[],k=[],A=[],P=[],M=[],R=[],N=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;f=[ay("scrolltoupper")],y=[ay("scrolltolower")],E=[a_("upper-threshold",!0)],S=[a_("lower-threshold",!0)],_=[ay("lynxscroll")],w=[ay("lynxscrollend")],ah(null,null,f,{kind:"field",name:"_handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollUpperThresholdEventEnabled"in e,get:e=>e._handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e._handleScrollUpperThresholdEventEnabled=t}},metadata:e},x,T),ah(null,null,y,{kind:"field",name:"_handleScrollLowerThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollLowerThresholdEventEnabled"in e,get:e=>e._handleScrollLowerThresholdEventEnabled,set:(e,t)=>{e._handleScrollLowerThresholdEventEnabled=t}},metadata:e},C,O),ah(null,null,E,{kind:"field",name:"_updateUpperThreshold",static:!1,private:!1,access:{has:e=>"_updateUpperThreshold"in e,get:e=>e._updateUpperThreshold,set:(e,t)=>{e._updateUpperThreshold=t}},metadata:e},I,L),ah(null,null,S,{kind:"field",name:"_updateLowerThreshold",static:!1,private:!1,access:{has:e=>"_updateLowerThreshold"in e,get:e=>e._updateLowerThreshold,set:(e,t)=>{e._updateLowerThreshold=t}},metadata:e},k,A),ah(null,null,_,{kind:"field",name:"_handleScrollEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEventEnabled"in e,get:e=>e._handleScrollEventEnabled,set:(e,t)=>{e._handleScrollEventEnabled=t}},metadata:e},P,M),ah(null,null,w,{kind:"field",name:"_handleScrollEndEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEndEventEnabled"in e,get:e=>e._handleScrollEndEventEnabled,set:(e,t)=>{e._handleScrollEndEventEnabled=t}},metadata:e},R,N),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I;#M;#R=0;#N=0;constructor(e){au(this,N),this.#I=e}#D=()=>this.#I;#F=ax(()=>this.#I.shadowRoot,"#upper-threshold-observer");#H=ax(()=>this.#I.shadowRoot,"#lower-threshold-observer");#j=e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...ag,detail:this.#z()})):"lower-threshold-observer"===i&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...ag,detail:this.#z()})))};static observedAttributes=["upper-threshold","lower-threshold"];_handleScrollUpperThresholdEventEnabled=au(this,x,e=>{e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#U(e)});#U=(au(this,T),aI(this.#D,this.#F,this.#j));_handleScrollLowerThresholdEventEnabled=au(this,C,e=>{e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),this.#W(e)});#W=(au(this,O),aI(this.#D,this.#H,this.#j));_updateUpperThreshold=au(this,I,aT(this.#F,"flex-basis",e=>`${parseInt(e)}px`));_updateLowerThreshold=(au(this,L),au(this,k,aT(this.#H,"flex-basis",e=>`${parseInt(e)}px`)));#z(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i}=this.#D();0===e&&(e-=this.#I.scrollHeight/2-this.#I.scrollTop),0===t&&(t-=this.#I.scrollWidth/2-this.#I.scrollLeft);let l={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i,isDragging:!1,deltaX:t-this.#R,deltaY:e-this.#N};return this.#R=t,this.#N=e,l}#V=(au(this,A),()=>{this.#$&&!aL&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...ag,detail:this.#z()}))});#B=()=>{this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...ag,detail:this.#z()}))};#X=!1;_handleScrollEventEnabled=au(this,P,e=>{this.#X=e,this.#q()});#$=(au(this,M),!1);_handleScrollEndEventEnabled=au(this,R,e=>{this.#$=e,this.#q()});#q(){this.#X||this.#$?(this.#D().addEventListener("scroll",this.#V),this.#D().addEventListener("scrollend",this.#B),this.#I.addEventListener("scroll",this.#V),this.#I.addEventListener("scrollend",this.#B),this.#R=0,this.#N=0):(this.#I.removeEventListener("scroll",this.#V),this.#I.removeEventListener("scrollend",this.#B))}connectedCallback(){}dispose(){}});class aM{static eventName="__scrollIntoView";static observedAttributes=[];#I;#Y=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],i=this.#I;for(let e of t){if(e===i)break;n.push(e)}let l=this.#I.getAttribute("scroll-orientation"),a=null!==this.#I.getAttribute("scroll-x")||"both"===l||"horizontal"===l,s=null!==this.#I.getAttribute("scroll-y")||"both"===l||"vertical"===l,r=0,o=0;for(let{offsetTop:e,offsetLeft:t}of n)a&&(o+=t),s&&(r+=e);if(a)switch(e.detail.inline){case"center":o+=(e.target.clientWidth-this.#I.clientWidth)/2;break;case"end":o+=e.target.clientWidth-this.#I.clientWidth}if(s)switch(e.detail.block){case"center":r+=(e.target.clientHeight-this.#I.clientHeight)/2;break;case"end":r+=e.target.clientHeight-this.#I.clientHeight}i.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:o,top:r})};constructor(e){this.#I=e,this.#I.addEventListener(aM.eventName,this.#Y,{passive:!1})}dispose(){this.#I.removeEventListener(aM.eventName,this.#Y)}}let aR=/<\s*script/g,aN=e=>{let{src:t}=e;if(t&&aR.test(t))throw Error("detected <script, this is a potential XSS attack, please check your src");return`<img part="img" alt="" loading="lazy" id="img" ${t?`src="${t}"`:""}/> `},aD=`<style>
|
|
7
7
|
#input:focus {
|
|
8
8
|
outline: none;
|
|
9
9
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
inputmode="text"
|
|
21
21
|
spell-check="true"
|
|
22
22
|
/>
|
|
23
|
-
</form>`,
|
|
23
|
+
</form>`,aF=`<style>
|
|
24
24
|
.placeholder-dom {
|
|
25
25
|
display: none;
|
|
26
26
|
flex: 0 0 0;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
id="lower-threshold-observer"
|
|
57
57
|
></div>
|
|
58
58
|
</div>
|
|
59
|
-
</div>`,
|
|
59
|
+
</div>`,aH=`<style>
|
|
60
60
|
#dialog[open] {
|
|
61
61
|
top: 0;
|
|
62
62
|
left: 0;
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
<slot></slot>
|
|
93
93
|
</div>
|
|
94
94
|
<div class="overlay-placeholder"></div>
|
|
95
|
-
</dialog>`,
|
|
95
|
+
</dialog>`,aj=`<style>
|
|
96
96
|
.bounce-container {
|
|
97
97
|
overflow: scroll;
|
|
98
98
|
overscroll-behavior: contain;
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
class="overflow-placeholder bounce-item"
|
|
138
138
|
part="placeholder-bot"
|
|
139
139
|
></div>
|
|
140
|
-
</div>`,
|
|
140
|
+
</div>`,az=`<style>
|
|
141
141
|
#bounce-padding {
|
|
142
142
|
display: none;
|
|
143
143
|
flex: 0 0 0;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
<slot part="slot-start" name="circular-start" id="circular-start"></slot>
|
|
188
188
|
<slot part="slot"></slot>
|
|
189
189
|
<slot part="slot-end" name="circular-end" id="circular-end"></slot>
|
|
190
|
-
</div>`,
|
|
190
|
+
</div>`,aU=`<style>
|
|
191
191
|
#textarea:focus,
|
|
192
192
|
#textarea:focus-visible {
|
|
193
193
|
border: inherit;
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
</style>
|
|
197
197
|
<form id="form" part="form" method="dialog">
|
|
198
198
|
<textarea id="textarea" part="textarea"></textarea>
|
|
199
|
-
</form>`,
|
|
199
|
+
</form>`,aW=`<style>
|
|
200
200
|
#bounce-padding {
|
|
201
201
|
display: none;
|
|
202
202
|
flex: 0 0 0;
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
<div id="bounce-padding" part="bounce-padding"></div>
|
|
223
223
|
<div id="content" part="content">
|
|
224
224
|
<slot></slot>
|
|
225
|
-
</div>`;function
|
|
225
|
+
</div>`;function aV(e,t,n){return function(i){n&&(i=n(i));let l=e.call(this);l.getAttribute(t)!==i&&(null!==i?ab(()=>{l.setAttribute(t,i)}):ab(()=>{l.removeAttribute(t)}))}}H=[av("scroll-view",[aS,aO,aC,aP,aM],`<style>
|
|
226
226
|
.placeholder-dom {
|
|
227
227
|
display: none;
|
|
228
228
|
flex: 0 0 0;
|
|
@@ -304,9 +304,9 @@
|
|
|
304
304
|
class="mask placeholder-dom"
|
|
305
305
|
id="bot-fade-mask"
|
|
306
306
|
part="bot-fade-mask"
|
|
307
|
-
></div>`)],V=[],$=HTMLElement,e=class extends ${static{U=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create($[Symbol.metadata]??null):void 0;i8(null,z={value:U},W,{kind:"class",name:U.name,metadata:t},null,V),e=U=z.value,t&&Object.defineProperty(U,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#ei;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#ei),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#ei=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[sb](){return this}static{i6(U,V)}},e=U;let sk=Symbol("__src"),sA=Symbol("__src"),sP={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sM={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=a||(a={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let s_=(J=[],K=[],Z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;B=[sr("src",!0)],q=[sr("loop",!0)],Y=[sr("pause-on-hide",!0)],i8(this,X={value:i9(function(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})),this.#I[sk]=t,this.#I[sA]=void 0,this.#I.stop()},"#handleSrc")},B,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,J),i8(this,G={value:i9(function(e){null!==e?document.addEventListener("visibilitychange",this.#er,{passive:!0}):document.removeEventListener("visibilitychange",this.#er)},"#handlePauseOnHide")},Y,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#eo in e,get:e=>e.#eo},metadata:e},null,J),i8(null,null,q,{kind:"field",name:"#handleLoop",static:!1,private:!0,access:{has:e=>#ed in e,get:e=>e.#ed,set:(e,t)=>{e.#ed=t}},metadata:e},K,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=i6(this,J);#ec=sd(()=>this.#I.shadowRoot,"#audio");#eh=sL(this.#ec,"src");get #es(){return X.value}#ed=i6(this,K,sL(this.#ec,"loop"));#er=(i6(this,Z),()=>{"hidden"===document.visibilityState&&this.#I.pause()});get #eo(){return G.value}constructor(e){this.#I=e}});class sR{static observedAttributes=[];#I;#eu;#ec=sd(()=>this.#I.shadowRoot,"#audio");#em=e=>{let t=Number(this.#I.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#eu=setInterval(()=>{this.#I.dispatchEvent(new CustomEvent("timeupdate",{...sn,detail:{currentTime:this.#ec().currentTime,currentSrcID:this.#I[sk]?.id}}))},n);let a=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:a?.code,type:a?.type,currentSrcID:this.#I[sk]?.id}}))};#ep=e=>{clearInterval(this.#eu);let t=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#ev=e=>{let t=sP[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#eb=e=>{this.#ev(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?a.PlayerLoadingError:a.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=a.PlayerLoadingError),this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[sk]?.id}}))};#eg=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...sn,detail:{loop:e,currentSrcID:this.#I[sk]?.id}}))};constructor(e){this.#I=e}connectedCallback(){let e=this.#ec();e.addEventListener("play",this.#em,{passive:!0}),e.addEventListener("pause",this.#ep,{passive:!0}),e.addEventListener("ended",this.#eg,{passive:!0}),e.addEventListener("loadstart",this.#ev,{passive:!0}),e.addEventListener("canplay",this.#ev,{passive:!0}),e.addEventListener("stalled",this.#ev,{passive:!0}),e.addEventListener("error",this.#eb,{passive:!0})}}et=[st("x-audio-tt",[ss,s_,sR],'<audio id="audio"></audio>')],en=[],ea=HTMLElement,(class extends ea{static{ee=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ea[Symbol.metadata]??null):void 0;i8(null,Q={value:ee},et,{kind:"class",name:ee.name,metadata:e},null,en),ee=Q.value,e&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ee,en)}#ef=sd(()=>this.shadowRoot,"#audio");#ec=sd(()=>this.shadowRoot,"#audio");#eh=sL(this.#ec,"src");[sk];[sA];#ey=()=>{let e,t=this[sk];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[sA]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:0,type:"loading",currentSrcID:t.id}}));let i=await fetch(t.play_url,{headers:e});i.ok||(this.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await i.blob(),r=URL.createObjectURL(s);this.#eh(r),n()})}};play(){return this[sA]||this.#ey(),this[sA]?.then(()=>{let e=this.#ef();e.currentTime=0,e.play()}),{currentSrcID:this[sk]?.id,loadingSrcID:""}}stop(){let e=this.#ef(),t=sM.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this[sk]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[sk]?.id}}pause(){return this.#ef().pause(),{currentSrcID:this[sk]?.id}}resume(){return this.#ef().play(),{currentSrcID:this[sk]?.id,loadingSrcID:""}}seek(e){return this.#ef().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...sn,detail:{seekresult:1,currentSrcID:this[sk]?.id}})),{currentSrcID:this[sk]?.id}}mute(e){return this.#ef().muted=e.mute,{currentSrcID:this[sk]?.id}}playerInfo(){var e;let t=this.#ef(),n=t.buffered,a=n.end(n.length-1);return{currentSrcID:this[sk]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:a}}prepare(){this[sA]||this.#ey()}setVolume(e){return this.#ef().volume=e.volume,{code:1}}}),ev=[st("x-canvas",[ss,(er=[],eo=[],ed=[],ec=[],eh=[],eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;el=[sr("name",!0)],ei=[sr("height",!0)],es=[sr("width",!0)],i8(null,null,el,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},er,eo),i8(null,null,ei,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ed,ec),i8(null,null,es,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},eh,eu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#I;#k;#eE=sd(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=i6(this,er,sL(this.#eE,"name"));handleHeight=(i6(this,eo),i6(this,ed,sL(this.#eE,"height")));handleWidth=(i6(this,ec),i6(this,eh,sL(this.#eE,"width")));#eS=(i6(this,eu),e=>{let{contentRect:t}=e[0],n=this.#I.shadowRoot.firstElementChild;if(n){let{height:e,width:a}=t;e*=window.devicePixelRatio,a*=window.devicePixelRatio;let l=new CustomEvent("resize",{...sn,detail:{height:e,width:a}});l.height=e,l.width=a,n.dispatchEvent(l)}});#ew(){this.#k||(this.#k=new ResizeObserver(this.#eS),this.#k.observe(this.#I))}#ex(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#ew()}dispose(){this.#ex()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],eb=[],eg=HTMLElement,class extends eg{static{ep=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eg[Symbol.metadata]??null):void 0;i8(null,em={value:ep},ev,{kind:"class",name:ep.name,metadata:e},null,eb),ep=em.value,e&&Object.defineProperty(ep,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ep,eb)}};let sN=(ew=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ef=[sr("granularity",!0)],eE=[sl("offset")],i8(this,ey={value:i9(function(e){e&&""!==e?this.#eC=parseFloat(e):this.#eC=.01},"#handleGranularity")},ef,{kind:"method",name:"#handleGranularity",static:!1,private:!0,access:{has:e=>#eT in e,get:e=>e.#eT},metadata:e},null,ew),i8(this,eS={value:i9(function(e){e?this.#I.addEventListener("scroll",this.#Q,{passive:!0}):this.#I.removeEventListener("scroll",this.#Q)},"#enableOffsetEvent")},eE,{kind:"method",name:"#enableOffsetEvent",static:!1,private:!0,access:{has:e=>#eO in e,get:e=>e.#eO},metadata:e},null,ew),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,ew);#eC=.01;#eI=0;constructor(e){this.#I=e}static observedAttributes=["granularity"];get #eT(){return ey.value}get #eO(){return eS.value}#Q=()=>{let e=this.#I.scrollTop;(Math.abs(this.#eI-e)>this.#eC||0===this.#I.scrollTop||1>=Math.abs(this.#I.scrollHeight-this.#I.clientHeight-this.#I.scrollTop))&&(this.#eI=e,this.#I.dispatchEvent(new CustomEvent("offset",{...sn,detail:{offset:e,height:this.#I[sD]}})))}}),sD=Symbol("scrollableLength"),sF=Symbol("isHeaderShowing"),sH=Symbol("resizeObserver"),sj=Symbol("slotKid");eT=[st("x-foldview-ng",[ss,sN])],eO=[],eI=HTMLElement,class extends eI{static{eC=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;i8(null,ex={value:eC},eT,{kind:"class",name:eC.name,metadata:e},null,eO),eC=ex.value,e&&Object.defineProperty(eC,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sj];[sH]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eL=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ek=t.contentRect.height);this[sj]&&(this[sj].style.top=`${this.#eL-this.#ek}px`)});#eL=0;#ek=0;get[sD](){return this.#eL-this.#ek}get[sF](){return this[sD]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sD]?e=this[sD]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,a=parseFloat(t);this.scrollTo({top:a,behavior:n?"smooth":"instant"})}get[sb](){return this}disconnectedCallback(){this[sH]?.disconnect(),this[sH]=void 0}static{i6(eC,eO)}};let sz=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};eA=[st("x-foldview-header-ng",[ss])],eP=[],eM=HTMLElement,(class extends eM{static{ek=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eM[Symbol.metadata]??null):void 0;i8(null,eL={value:ek},eA,{kind:"class",name:ek.name,metadata:e},null,eP),ek=eL.value,e&&Object.defineProperty(ek,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ek,eP)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sH],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}}),eN=[st("x-foldview-slot-drag-ng",[ss])],eD=[],eF=HTMLElement,class extends eF{static{eR=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eF[Symbol.metadata]??null):void 0;i8(null,e_={value:eR},eN,{kind:"class",name:eR.name,metadata:e},null,eD),eR=e_.value,e&&Object.defineProperty(eR,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(eR,eD)}};class sU{#eP=0;#eM=new WeakMap;#e_;#eR=0;#eN=0;#eD=null;#eF;#eH=0;#I;static observedAttributes=[];constructor(e){this.#I=e,this.#I.addEventListener("touchmove",this.#ej,{passive:!1}),this.#I.addEventListener("touchstart",this.#ez,{passive:!0}),this.#I.addEventListener("touchend",this.#eU,{passive:!0})}#eW(e){return this.#e_?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,a=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||a}return!1})}#eV(e,t){let n=this.#eM.get(e)??0;n+=t,this.#eM.set(e,n),e.scrollTop=n}#ej=e=>{let t=this.#e$(),{pageY:n,pageX:a}=e.touches.item(0),l=this.#eR-n;if(null===this.#eD){let e=this.#eN-a;this.#eD=Math.abs(l)>Math.abs(e)}if(!1===this.#eD)return;let i=this.#eW(l);t&&(e.cancelable&&e.preventDefault(),t[sF]&&l>0||l<0&&!i||!t[sF]&&!i?(t.scrollBy({top:l,behavior:"smooth"}),this.#eP+=l,t.scrollTop=this.#eP,this.#eF=t):i&&(this.#eF=i,this.#eV(i,l))),this.#eR=n,this.#eH=l};#e$(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#ez=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#e_=document.elementsFromPoint(t,n).filter(e=>this.#I.contains(e)),this.#eR=n,this.#eN=t,this.#eP=this.#e$()?.scrollTop??0,this.#e_))this.#eM.set(e,e.scrollTop);this.#eD=null,this.#eF=void 0};#eU=()=>{if(this.#eD=null,this.#eF){let e=this.#e$();(this.#eF!==e||e[sF])&&this.#eF.scrollBy({top:4*this.#eH,behavior:"smooth"})}}}ez=[st("x-foldview-slot-ng",[ss,sU])],eU=[],eW=HTMLElement,(class extends eW{static{ej=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eW[Symbol.metadata]??null):void 0;i8(null,eH={value:ej},ez,{kind:"class",name:ej.name,metadata:e},null,eU),ej=eH.value,e&&Object.defineProperty(ej,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ej,eU)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sj]=this)}}),eB=[st("x-foldview-toolbar-ng",[ss])],eX=[],eq=HTMLElement,class extends eq{static{e$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eq[Symbol.metadata]??null):void 0;i8(null,eV={value:e$},eB,{kind:"class",name:e$.name,metadata:e},null,eX),e$=eV.value,e&&Object.defineProperty(e$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(e$,eX)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sH],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}};let sW=(e2=[],e4=[],e3=[],e8=[],e6=[],e9=[],e5=[],e7=[],te=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eJ=[sr("src",!0)],eK=[sr("placeholder",!0)],eQ=[sr("blur-radius",!0)],e0=[sr("crossorigin",!0)],e1=[sr("referrerpolicy",!0)],i8(this,eZ={value:i9(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},eK,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#eB in e,get:e=>e.#eB},metadata:e},null,e2),i8(null,null,eJ,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es,set:(e,t)=>{e.#es=t}},metadata:e},e4,e3),i8(null,null,eQ,{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},e8,e6),i8(null,null,e0,{kind:"field",name:"#handleCrossorigin",static:!1,private:!0,access:{has:e=>#eq in e,get:e=>e.#eq,set:(e,t)=>{e.#eq=t}},metadata:e},e9,e5),i8(null,null,e1,{kind:"field",name:"#handleReferrerpolicy",static:!1,private:!0,access:{has:e=>#eY in e,get:e=>e.#eY,set:(e,t)=>{e.#eY=t}},metadata:e},e7,te),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#I=i6(this,e2);#eG=sd(()=>this.#I.shadowRoot,"#img");#es=i6(this,e4,sL(this.#eG,"src",e=>e||this.#I.getAttribute("placeholder")));get #eB(){return eZ.value}#eX=(i6(this,e3),i6(this,e8,sc(this.#eG,"--blur-radius",void 0,!0)));#eq=(i6(this,e6),i6(this,e9,sL(this.#eG,"crossorigin")));#eY=(i6(this,e5),i6(this,e7,sL(this.#eG,"referrerpolicy")));#eJ=(i6(this,te),()=>{let e=this.#eG().src,t=this.#I.getAttribute("placeholder");t&&e!==t&&(this.#eG().src=t)});constructor(e){this.#I=e,this.#eG().addEventListener("error",this.#eJ)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this.#es(null)}}),sV=(ti=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tt=[sl("load")],ta=[sl("error")],i8(this,tn={value:i9(function(e){e?this.#eG().addEventListener("load",this.#eK,{passive:!0}):this.#eG().removeEventListener("load",this.#eK)},"#enableLoadEvent")},tt,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,ti),i8(this,tl={value:i9(function(e){e?this.#eG().addEventListener("error",this.#eQ,{passive:!0}):this.#eG().removeEventListener("error",this.#eQ)},"#enableErrorEvent")},ta,{kind:"method",name:"#enableErrorEvent",static:!1,private:!0,access:{has:e=>#e0 in e,get:e=>e.#e0},metadata:e},null,ti),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,ti);#eG=sd(()=>this.#I.shadowRoot,"#img");get #eZ(){return tn.value}get #e0(){return tl.value}#eK=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};#eQ=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{}}))};constructor(e){this.#I=e}});to=[st("filter-image",[ss,sW,(eY=[],eG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8(null,null,[sr("drop-shadow",!0)],{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},eY,eG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#eG=sd(()=>this.#I.shadowRoot,"#img");#eX=i6(this,eY,sc(this.#eG,"--drop-shadow",void 0,!0));constructor(e){i6(this,eG),this.#I=e}}),sV],sE({}))],td=[],tc=HTMLElement,(class extends tc{static{tr=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tc[Symbol.metadata]??null):void 0;i8(null,ts={value:tr},to,{kind:"class",name:tr.name,metadata:e},null,td),tr=ts.value,e&&Object.defineProperty(tr,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(tr,td)}}),tm=[st("x-image",[ss,sW,sV],sE({}))],tp=[],tv=HTMLElement,class extends tv{static{tu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tv[Symbol.metadata]??null):void 0;i8(null,th={value:tu},tm,{kind:"class",name:tu.name,metadata:e},null,tp),tu=th.value,e&&Object.defineProperty(tu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(tu,tp)}};let s$={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};ne=[st("x-input",[ss,(tD=[],tF=[],tH=[],tj=[],tz=[],tU=[],tW=[],tV=[],t$=[],tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tP=[sr("placeholder",!0)],tM=[sr("placeholder-color",!0)],t_=[sr("placeholder-font-family",!0)],tR=[sr("placeholder-font-size",!0)],tN=[sr("placeholder-font-weight",!0)],i8(null,null,tP,{kind:"field",name:"#handlerPlaceholder",static:!1,private:!0,access:{has:e=>#e1 in e,get:e=>e.#e1,set:(e,t)=>{e.#e1=t}},metadata:e},tD,tF),i8(null,null,tM,{kind:"field",name:"#handlerPlaceholderColor",static:!1,private:!0,access:{has:e=>#e2 in e,get:e=>e.#e2,set:(e,t)=>{e.#e2=t}},metadata:e},tH,tj),i8(null,null,t_,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4,set:(e,t)=>{e.#e4=t}},metadata:e},tz,tU),i8(null,null,tR,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e3 in e,get:e=>e.#e3,set:(e,t)=>{e.#e3=t}},metadata:e},tW,tV),i8(null,null,tN,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},t$,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#I;#e6=sd(()=>this.#I.shadowRoot,"#input");#e1=i6(this,tD,sL(this.#e6,"placeholder"));#e2=(i6(this,tF),i6(this,tH,sc(this.#e6,"--placeholder-color",void 0,!0)));#e4=(i6(this,tj),i6(this,tz,sc(this.#e6,"--placeholder-font-family",void 0,!0)));#e3=(i6(this,tU),i6(this,tW,sc(this.#e6,"--placeholder-font-size",void 0,!0)));#e8=(i6(this,tV),i6(this,t$,sc(this.#e6,"--placeholder-font-weight",void 0,!0)));constructor(e){i6(this,tB),this.#I=e}}),(tJ=[],tK=[],tZ=[],tQ=[],t0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tX=[sr("value",!1)],tY=[sr("disabled",!0)],tG=[sr("autocomplete",!0)],i8(this,tq={value:i9(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#e6();t.value!==e&&(t.value=e)},"#handleValue")},tX,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,tJ),i8(null,null,tY,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},tK,tZ),i8(null,null,tG,{kind:"field",name:"#handleAutocomplete",static:!1,private:!0,access:{has:e=>#e7 in e,get:e=>e.#e7,set:(e,t)=>{e.#e7=t}},metadata:e},tQ,t0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#I=i6(this,tJ);#e6=sd(()=>this.#I.shadowRoot,"#input");get #e9(){return tq.value}#e5=i6(this,tK,sL(this.#e6,"disabled",e=>null!==e?"":null));#e7=(i6(this,tZ),i6(this,tQ,sL(this.#e6,"autocomplete")));constructor(e){i6(this,t0),this.#I=e}}),(tw=[],tx=[],tC=[],tT=[],tO=[],tI=[],tL=[],tk=[],tA=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tb=[sr("confirm-type",!0)],tg=[sr("maxlength",!0)],tf=[sr("readonly",!0)],ty=[sr("type",!0)],tS=[sr("ios-spell-check",!0),sr("spell-check",!0)],i8(this,tE={value:i9(function(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#te(t),this.#tt(n)},"#handleType")},ty,{kind:"method",name:"#handleType",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn},metadata:e},null,tw),i8(null,null,tb,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},tx,tC),i8(null,null,tg,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},tT,tO),i8(null,null,tf,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},tI,tL),i8(null,null,tS,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},tk,tA),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#I=i6(this,tw);#tr="text";#e6=sd(()=>this.#I.shadowRoot,"#input");#ta=i6(this,tx,sL(this.#e6,"enterkeyhint",e=>null===e?"send":e));#tl=(i6(this,tC),i6(this,tT,sL(this.#e6,"maxlength",e=>null===e?"140":e)));#ti=(i6(this,tO),i6(this,tI,sL(this.#e6,"readonly",e=>null!==e?"":null)));#tt=(i6(this,tL),sL(this.#e6,"type"));#te=sL(this.#e6,"inputmode");get #tn(){return tE.value}#ts=i6(this,tk,sL(this.#e6,"spellcheck",e=>null===e?"false":"true"));constructor(e){i6(this,tA),this.#I=e}}),(t9=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[sr("input-filter",!0),sl("lynxinput")],t4=[sr("send-composing-input",!0)],t8=[sl("selection")],i8(this,t2={value:i9(function(e){let t=this.#e6();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableInputEvent")},t1,{kind:"method",name:"#handleEnableInputEvent",static:!1,private:!0,access:{has:e=>#tc in e,get:e=>e.#tc},metadata:e},null,t9),i8(this,t3={value:i9(function(e){this.#th=null!==e},"#handleSendComposingInput")},t4,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,t9),i8(this,t6={value:i9(function(e){e?this.#e6().addEventListener("select",this.#tm,{passive:!0}):this.#e6().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},t8,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,t9),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i6(this,t9);#th=!1;#e6=sd(()=>this.#I.shadowRoot,"#input");#tv=sd(()=>this.#I.shadowRoot,"#form");get #tc(){return t2.value}get #tu(){return t3.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#e6().value}}))};#to=e=>{let t=this.#e6(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#e6(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return t6.value}#tm=()=>{let e=this.#e6();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#e6()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#e6(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sS)],nt=[],nn=HTMLElement,(class extends nn{static{t7=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nn[Symbol.metadata]??null):void 0;i8(null,t5={value:t7},ne,{kind:"class",name:t7.name,metadata:e},null,nt),t7=t5.value,e&&Object.defineProperty(t7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(t7,nt)}#tf=sd(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#tf(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#tf();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#tf();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#tf();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#tf().setAttribute("pattern",e.pattern)}select(){let e=this.#tf();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#tf().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#tf().focus(e)}blur(){this.#tf().blur()}connectedCallback(){let e=this.#tf();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),nc=[st("x-overlay-ng",[ss,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[sr("events-pass-through",!0)],ni=[sr("visible",!1)],i8(this,nl={value:i9(function(e){null!==e?(this.#ty().addEventListener("click",this.#tE,{passive:!1}),this.#I.addEventListener("click",this.#tE,{passive:!1})):(this.#ty().removeEventListener("click",this.#tE),this.#I.removeEventListener("click",this.#tE))},"#handleEventsPassThrough")},na,{kind:"method",name:"#handleEventsPassThrough",static:!1,private:!0,access:{has:e=>#tS in e,get:e=>e.#tS},metadata:e},null,nr),i8(this,ns={value:i9(function(e){this.#tw=null!==e,this.#tx&&(this.#tw?(this.#ty().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",sn))):(this.#ty().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",sn))))},"#handleVisible")},ni,{kind:"method",name:"#handleVisible",static:!1,private:!0,access:{has:e=>#tC in e,get:e=>e.#tC},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#I=i6(this,nr);#tx=!!window.HTMLDialogElement;#tw=!1;constructor(e){this.#I=e}#ty=sd(()=>this.#I.shadowRoot,"#dialog");get #tS(){return nl.value}get #tC(){return ns.value}#tE=e=>{e.stopPropagation();let t=this.#ty();if(e.target===this.#I||e.target===t){t.close();let{clientX:n,clientY:a}=e,l=document.elementFromPoint(n,a);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,a)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#tw&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#tx||(this.#ty().style.display="none")}})],sx)],nh=[],nu=HTMLElement,class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;i8(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nd,nh)}get[si](){return this.shadowRoot.firstElementChild}};class sB extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sB.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sX{#I;static observedAttributes=[];#tT;constructor(e){this.#I=e}connectedCallback(){if(IntersectionObserver&&!this.#tT){let e=this.#I.parentElement;e&&(this.#tT=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#I.dispatchEvent(new sB(t,n)),n&&this.#I.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#tT.observe(this.#I))}}dispose(){this.#tT&&(this.#tT.disconnect(),this.#tT=void 0)}}function sq(e,t,n,a){let l=!1;return function(i){if(i!==l){let s=e.call(this);i?(se(()=>s.addEventListener(t,n,a)),l=!0):(se(()=>s.removeEventListener(t,n)),l=!1)}}}nv=[st("x-refresh-footer",[ss,sX])],nb=[],ng=HTMLElement,(class extends ng{static{np=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ng[Symbol.metadata]??null):void 0;i8(null,nm={value:np},nv,{kind:"class",name:np.name,metadata:e},null,nb),np=nm.value,e&&Object.defineProperty(np,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(np,nb)}connectedCallback(){this.setAttribute("slot","footer")}}),nE=[st("x-refresh-header",[ss,sX])],nS=[],nw=HTMLElement,(class extends nw{static{ny=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nw[Symbol.metadata]??null):void 0;i8(null,nf={value:ny},nE,{kind:"class",name:ny.name,metadata:e},null,nS),ny=nf.value,e&&Object.defineProperty(ny,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ny,nS)}connectedCallback(){this.setAttribute("slot","header")}}),nA=[st("x-refresh-view",[ss,(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nx=[sl("headeroffset"),sl("headershow"),sl("footeroffset")],nT=[sl("startrefresh"),sl("headerreleased"),sl("startloadmore"),sl("footerreleased")],i8(this,nC={value:i9(function(e,t){this.#tO[t]=e;let{headeroffset:n,headershow:a,footeroffset:l}=this.#tO;n||a||l?this.#tI():this.#tL()},"#handleComplexEventEnableAttributes")},nx,{kind:"method",name:"#handleComplexEventEnableAttributes",static:!1,private:!0,access:{has:e=>#tk in e,get:e=>e.#tk},metadata:e},null,nI),i8(this,nO={value:i9(function(e,t){this.#tO[t]=e;let{startrefresh:n,headerreleased:a,startloadmore:l,footerreleased:i}=this.#tO;a||i||l||n?this.#tA():this.#tP()},"#handleXEnableHeaderOffsetEvent")},nT,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,nI),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,nI);static observedAttributes=[];#t_=sd(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#tR=sd(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(sB.EventName,this.#tN)}#tO={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};get #tk(){return nC.value}get #tM(){return nO.value}#tD=!1;#tF=!1;#tH=!1;#tj=!1;#tN=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tD=e.startShowing,this.#tF=e.fullyShowing):(this.#tH=e.startShowing,this.#tj=e.fullyShowing)};#tz=!1;#tA(){this.#tz||(this.#I.addEventListener("touchend",this.#tU),this.#tz=!0)}#tU=()=>{this.#tF?(this.#I.dispatchEvent(new CustomEvent("headerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...sn,detail:{isManual:this.#I._nextRefreshIsManual}})),this.#I._nextRefreshIsManual=!0):("true"===this.#I.getAttribute("enable-auto-loadmore")&&this.#tH||this.#tj)&&(this.#I.dispatchEvent(new CustomEvent("footerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startloadmore",sn)))};#tP(){this.#tz&&this.#I.removeEventListener("touchend",this.#tU)}#tW=!1;#tV=!1;#tI(){this.#tV||(this.#I.addEventListener("touchstart",this.#t$),this.#I.addEventListener("touchend",this.#tB),this.#I.addEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#Q))}#tB=()=>{this.#tW=!1};#t$=()=>{this.#tW=!0};#Q=()=>{if(this.#tD&&(this.#tO.headershow||this.#tO.headeroffset)){let e=this.#t_();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#I.shadowRoot.querySelector("#container").scrollTop;this.#I.dispatchEvent(new CustomEvent("headershow",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}}))}}else if(this.#tH&&this.#tO.footeroffset){let e=this.#tR();if(e){let t=this.#I.shadowRoot.querySelector("#container"),n=t.scrollTop;t.scrollHeight;let a=parseFloat(getComputedStyle(e).height);this.#I.dispatchEvent(new CustomEvent("footeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/a}}))}}};#tL(){this.#tV&&(this.#I.removeEventListener("touchstart",this.#t$),this.#I.removeEventListener("touchend",this.#tB),this.#I.removeEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#Q))}dispose(){this.#tP(),this.#tL()}})],sC)],nP=[],nM=HTMLElement,(class extends nM{static{nk=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nM[Symbol.metadata]??null):void 0;i8(null,nL={value:nk},nA,{kind:"class",name:nk.name,metadata:e},null,nP),nk=nL.value,e&&Object.defineProperty(nk,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#tX=sd(()=>this.shadowRoot,"#container");#tq=sd(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tX(),t=this.#tq();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tX(),n=this.#tq();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tq().scrollHeight}get[sb](){return this}static{i6(nk,nP)}}),nW=[st("x-svg",[ss,(nj=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n_=[sr("src",!0)],nN=[sr("content",!0)],nF=[sl("load")],i8(this,nR={value:i9(function(e){e?this.#eG().src=e:this.#eG().src=""},"#handleSrc")},n_,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,nj),i8(this,nD={value:i9(function(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#eG().src=n},"#handleContent")},nN,{kind:"method",name:"#handleContent",static:!1,private:!0,access:{has:e=>#tY in e,get:e=>e.#tY},metadata:e},null,nj),i8(this,nH={value:i9(function(e){e?this.#eG().addEventListener("load",this.#eK,{passive:!0}):this.#eG().removeEventListener("load",this.#eK)},"#enableLoadEvent")},nF,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,nj),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#I=i6(this,nj);#n=null;#eG=sd(()=>this.#I.shadowRoot,"#img");get #es(){return nR.value}get #tY(){return nD.value}get #eZ(){return nH.value}#eK=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nV=[],n$=HTMLElement,(class extends n${static{nU=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n$[Symbol.metadata]??null):void 0;i8(null,nz={value:nU},nW,{kind:"class",name:nU.name,metadata:e},null,nV),nU=nz.value,e&&Object.defineProperty(nU,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nU,nV)}}),nq=[st("x-swiper-item",[ss])],nY=[],nG=HTMLElement,(class extends nG{static{nX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nG[Symbol.metadata]??null):void 0;i8(null,nB={value:nX},nq,{kind:"class",name:nX.name,metadata:e},null,nY),nX=nB.value,e&&Object.defineProperty(nX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nX,nY)}}),ay=[st("x-swiper",[ss,(ar=[],ao=[],ad=[],ac=[],ah=[],au=[],am=[],ap=[],av=[],ab=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;an=[sr("indicator-color",!0)],aa=[sr("indicator-active-color",!0)],al=[sr("page-margin",!0)],ai=[sr("previous-margin",!0)],as=[sr("next-margin",!0)],i8(null,null,an,{kind:"field",name:"#handleIndicatorColor",static:!1,private:!0,access:{has:e=>#tG in e,get:e=>e.#tG,set:(e,t)=>{e.#tG=t}},metadata:e},ar,ao),i8(null,null,aa,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tJ in e,get:e=>e.#tJ,set:(e,t)=>{e.#tJ=t}},metadata:e},ad,ac),i8(null,null,al,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#tK in e,get:e=>e.#tK,set:(e,t)=>{e.#tK=t}},metadata:e},ah,au),i8(null,null,ai,{kind:"field",name:"#handlePreviousMargin",static:!1,private:!0,access:{has:e=>#tZ in e,get:e=>e.#tZ,set:(e,t)=>{e.#tZ=t}},metadata:e},am,ap),i8(null,null,as,{kind:"field",name:"#handleNextMargin",static:!1,private:!0,access:{has:e=>#tQ in e,get:e=>e.#tQ,set:(e,t)=>{e.#tQ=t}},metadata:e},av,ab),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#I;#t0=0;#t1=sd(()=>this.#I.shadowRoot,"#indicator-container");#t2=sd(()=>this.#I.shadowRoot,"#indicator-style");#t4;constructor(e){i6(this,ab),this.#I=e}#tG=i6(this,ar,sc(this.#t1,"--indicator-color",void 0,!0));#tJ=(i6(this,ao),i6(this,ad,sc(this.#t1,"--indicator-active-color",void 0,!0)));#tK=(i6(this,ac),i6(this,ah,sc(this.#t1,"--page-margin",void 0,!0)));#tZ=(i6(this,au),i6(this,am,sc(this.#t1,"--previous-margin",void 0,!0)));#tQ=(i6(this,ap),i6(this,av,sc(this.#t1,"--next-margin",void 0,!0)));#t3(){let e=this.#I.childElementCount;if(e!==this.#t0){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#t1().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#I.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#t2().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#t0=e}connectedCallback(){this.#t3(),this.#t4=new MutationObserver(this.#t3.bind(this)),this.#t4.observe(this.#I,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#I.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#I.childElementCount,a=this.#t1();for(let e=0;e<n;e++){let n=a.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),se(()=>{this.#t1().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t4?.disconnect(),this.#t4=void 0}}),(nQ=[],n0=[],n1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nJ=[sl("transition")],nK=[sl("scrollstart"),sl("lynxscrollend"),sl("change"),sl("change-event-for-indicator")],i8(this,nZ={value:i9(function(e,t){this.#tO[t]=e;let{lynxscrollend:n,scrollstart:a,change:l}=this.#tO,i=l||n||a||this.#tO["change-event-for-indicator"];this.#t8.forEach(e=>e(i))},"#enableScrollEventProcessor")},nK,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t6 in e,get:e=>e.#t6},metadata:e},null,nQ),i8(null,null,nJ,{kind:"field",name:"#handleEnableTransitionEvent",static:!1,private:!0,access:{has:e=>#t9 in e,get:e=>e.#t9,set:(e,t)=>{e.#t9=t}},metadata:e},n0,n1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,nQ);#t5=0;#t7=0;#tW=!1;#V;#ne=!1;constructor(e){this.#I=e}#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);#t9=i6(this,n0,sq(this.#tq,"scroll",this.#nt,{passive:!0}));#Q(){sp||(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#ne||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...sn,detail:{current:this.#t5,isDragged:this.#tW}})),this.#ne=!0);let e=this.#tq(),t=this.#I.isVertical,n=t?e.scrollTop:e.scrollLeft,a=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#t7-n)>a/4||n<10||Math.abs(n-l)<=a){let e=this.#I.currentIndex;e!==this.#t5&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{current:e,isDragged:this.#tW}})),this.#t5=e),this.#t7=n}}#et(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn,detail:{current:this.#t5}})),this.#ne=!1}#nn(){this.#tW=!0}#na(){this.#tW=!1}#nt(){this.#I.dispatchEvent(new CustomEvent("transition",{...sn,detail:{dx:this.#tq().scrollLeft,dy:this.#tq().scrollTop}}))}#t8=(i6(this,n1),[sq(this.#tq,"scroll",this.#Q.bind(this),{passive:!0}),sq(this.#tq,"touchstart",this.#nn.bind(this),{passive:!0}),sq(this.#tq,"touchend",this.#na.bind(this),{passive:!0}),sq(this.#tq,"touchcancel",this.#na.bind(this),{passive:!0}),sq(this.#tq,"scrollend",this.#et.bind(this),{passive:!0})]);#tO={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t6(){return nZ.value}connectedCallback(){this.#t5=parseFloat(this.#I.getAttribute("current")??"0");let e=this.#I.isVertical;this.#t7=e?this.#tq().scrollTop:this.#tq().scrollLeft}}),(at=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n9=[sr("circular",!1)],n7=[sr("vertical",!0)],i8(this,n5={value:i9(function(e){this.#t8.forEach(t=>t(null!=e)),null!==e&&this.#nl({detail:{current:this.#I.currentIndex,isDragged:!1,__isFirstLayout:!0}})},"#handleCircular")},n9,{kind:"method",name:"#handleCircular",static:!1,private:!0,access:{has:e=>#ni in e,get:e=>e.#ni},metadata:e},null,at),i8(this,ae={value:i9(function(e){this.#ns=null!==e},"#handleVerticalChange")},n7,{kind:"method",name:"#handleVerticalChange",static:!1,private:!0,access:{has:e=>#nr in e,get:e=>e.#nr},metadata:e},null,at),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#I=i6(this,at);#ns=!1;#no;#nd=0;#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#nc=sd(()=>this.#I.shadowRoot,"#circular-start").bind(this);#nh=sd(()=>this.#I.shadowRoot,"#circular-end").bind(this);#nl(e){let t=this.#I.childElementCount;if(t>2){let{current:n,isDragged:a,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,i=this.#tq(),s=this.#nc().assignedElements(),r=this.#nh().assignedElements(),o=this.#I.firstElementChild,d=this.#I.lastElementChild,c=this.#I.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#I.children[n]),this.#ns){let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientHeight/2:i.clientHeight/2;this.#nd=e.offsetTop+e.offsetHeight/2-c-t,i.scrollTop=this.#nd}else{let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientWidth/2:i.clientWidth/2;this.#nd=e.offsetLeft+e.offsetWidth/2-c-t,i.scrollLeft=this.#nd}if(!a){let e=this.#I.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#nu(l?"instant":"smooth")}}}}#nu(e){let t=this.#tq(),n=this.#I.snapDistance;t.scrollBy({top:this.#ns?n:0,left:this.#ns?0:n,behavior:e??"smooth"})}#t8=[sq(()=>this.#I,"change",this.#nl.bind(this),{passive:!0}),sq(()=>this.#I,"touchmove",this.#nm.bind(this),{passive:!1}),sq(()=>this.#I,"touchend",this.#np.bind(this),{passive:!1}),sq(()=>this.#I,"touchcancel",this.#np.bind(this),{passive:!1})];get #ni(){return n5.value}#nm(e){let t=e.touches.item(0);if(t){let e=this.#ns?t.pageY:t.pageX;if(void 0!==this.#no){this.#nv();let t=this.#no-e;this.#nd+=t}this.#no=e}}#np(e){this.#nb(),this.#nu(),this.#no=void 0}get #nr(){return ae.value}#ng;#nv(){if(!this.#ng){let e=this.#tq();this.#nd=this.#ns?e.scrollTop:e.scrollLeft,this.#ng=setInterval(()=>{this.#ns?e.scrollTop=this.#nd:e.scrollLeft=this.#nd},10)}}#nb(){this.#ng&&(clearInterval(this.#ng),this.#ng=void 0)}dispose(){this.#nb()}}),(n6=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n2=[sr("current",!1)],n3=[sr("interval",!1),sr("autoplay",!1)],i8(this,n4={value:i9(function(e){let t=Number(e);Number.isNaN(t)||(this.#I.currentIndex=t)},"#handleCurrentChange")},n2,{kind:"method",name:"#handleCurrentChange",static:!1,private:!0,access:{has:e=>#nf in e,get:e=>e.#nf},metadata:e},null,n6),i8(this,n8={value:i9(function(){if(null!==this.#I.getAttribute("autoplay")){let e=this.#I.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#ny(t)}},"#handleAutoplay")},n3,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nE in e,get:e=>e.#nE},metadata:e},null,n6),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=i6(this,n6);constructor(e){this.#I=e}#nS(){this.#I.currentIndex===this.#I.childElementCount-1?this.#I.circularPlay&&(this.#I.currentIndex=0):this.#I.currentIndex+=1}get #nf(){return n4.value}#nw;#nx=(()=>{this.#nS()}).bind(this);#ny(e){this.#nC(),this.#nw=setInterval(this.#nx,e)}#nC(){this.#nw&&clearInterval(this.#nw)}get #nE(){return n8.value}dispose(){this.#nC()}})],sT)],aE=[],aS=HTMLElement,(class extends aS{static{af=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aS[Symbol.metadata]??null):void 0;i8(null,ag={value:af},ay,{kind:"class",name:af.name,metadata:e},null,aE),af=ag.value,e&&Object.defineProperty(af,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tq=sd(()=>this.shadowRoot,"#content").bind(this);#nT(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let a=this.#tq(),l=this.isVertical,i=this.childElementCount,s=l?a.scrollTop:a.scrollLeft,r=l?a.clientHeight:a.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let a=0;a<i;a++){let i=this.children[a];if(i){let s=(l?i.offsetTop:i.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=a,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#nT().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#nO(e,t?"smooth":"instant")}#nO(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,a=0;a="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tq().scrollTo({left:e?0:a,top:e?a:0,behavior:t})}}get snapDistance(){return this.#nT().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#nO(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#nO(Number(e),"instant")}get[sb](){return this}static{i6(af,aE)}}),aI=[st("inline-image",[(aC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw=[sr("src",!0)],i8(this,ax={value:i9(function(e){e?this.#nI().setAttribute("src",e):this.#nI().removeAttribute("src")},"#handleSrc")},aw,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,aC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#I=i6(this,aC);constructor(e){this.#I=e}#nI=sd(()=>this.#I.shadowRoot,"#img");get #es(){return ax.value}})],sE({}))],aL=[],ak=HTMLElement,(class extends ak{static{aO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ak[Symbol.metadata]??null):void 0;i8(null,aT={value:aO},aI,{kind:"class",name:aO.name,metadata:e},null,aL),aO=aT.value,e&&Object.defineProperty(aO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(aO,aL)}}),aM=[st("inline-text",[])],a_=[],aR=HTMLElement,(class extends aR{static{aP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aR[Symbol.metadata]??null):void 0;i8(null,aA={value:aP},aM,{kind:"class",name:aP.name,metadata:e},null,a_),aP=aA.value,e&&Object.defineProperty(aP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(aP,a_)}}),aF=[st("inline-truncation",[])],aH=[],aj=HTMLElement,n=class extends aj{static{aD=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aj[Symbol.metadata]??null):void 0;i8(null,aN={value:aD},aF,{kind:"class",name:aD.name,metadata:e},null,aH),n=aD=aN.value,e&&Object.defineProperty(aD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{i6(aD,aH)}},n=aD;let sY=(aW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;az=[sr("text",!0)],i8(this,aU={value:i9(function(e){this.#nL?.remove(),e&&(this.#nL=new Text(e),this.#I.append(this.#nL))},"#handleText")},az,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nk in e,get:e=>e.#nk},metadata:e},null,aW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=i6(this,aW);#nL;constructor(e){this.#I=e}get #nk(){return aU.value}});aB=[st("raw-text",[sY])],aX=[],aq=HTMLElement,class extends aq{static{a$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aq[Symbol.metadata]??null):void 0;i8(null,aV={value:a$},aB,{kind:"class",name:a$.name,metadata:e},null,aX),a$=aV.value,e&&Object.defineProperty(a$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(a$,aX)}};let sG=(aZ=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aY=[sr("text-maxlength",!0),sr("text-maxline",!0),sr("tail-color-convert",!0)],aJ=[sl("layout")],i8(this,aG={value:i9(function(){this.#nA=parseFloat(this.#I.getAttribute("text-maxlength")??""),this.#nP=parseFloat(this.#I.getAttribute("text-maxline")??""),this.#nM="false"!==this.#I.getAttribute("tail-color-convert"),this.#nA<0&&(this.#nA=NaN),this.#nP<1&&(this.#nP=NaN),isNaN(this.#nP)?this.#n_().style.removeProperty("-webkit-line-clamp"):this.#n_().style.webkitLineClamp=this.#nP.toString(),this.#nR()},"#handleAttributeChange")},aY,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nN in e,get:e=>e.#nN},metadata:e},null,aZ),i8(this,aK={value:i9(function(e){this.#nD=e},"#handleEnableLayoutEvent")},aJ,{kind:"method",name:"#handleEnableLayoutEvent",static:!1,private:!0,access:{has:e=>#nF in e,get:e=>e.#nF},metadata:e},null,aZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#nH=(i6(this,aZ),!1);#nj=!1;#nz=new Map;#nU;#k;#nW;#nV;#n$=!1;#nA=NaN;#nP=NaN;#nM=!0;#nD=!1;get #nB(){return!this.#nX&&!this.#nM}get #nX(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#I.matches(":has(inline-truncation)");{let e=this.#I.querySelector("inline-truncation");if(e?.parentElement===this.#I)return!0}return!1}get #nq(){return!isNaN(this.#nP)&&(this.#nX||!this.#nM)}#I;constructor(e){this.#I=e}#n_=sd(()=>this.#I.shadowRoot,"#inner-box");#nY(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nz.delete(e)}),"characterData"===e.type&&void 0!==this.#nz.get(e.target)&&this.#nz.set(e.target,e.target.data)})}#nG(){for(let[t,n]of this.#nz)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#I.removeAttribute(e.exceedMathLengthAttribute),this.#I.removeAttribute(e.showInlineTruncation)}#nJ(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nR(){!this.#nj||this.#I.matches("x-text>x-text")||this.#nH||(this.#nH=!0,se(async()=>{await this.#nK(),this.#nZ(),this.#nH=!1}))}async #nK(){if(this.#nW?.parentElement?.removeChild(this.#nW),this.#nG(),!this.#nq&&isNaN(this.#nA))return;await document.fonts.ready;let t=this.#n_().getBoundingClientRect();this.#nV=new sJ(this.#I,t);let n=this.#nV,a=(isNaN(this.#nA)?void 0:n.getNodeInfoByCharIndex(this.#nA))?this.#nA:1/0,l=this.#nq&&n.getLineInfo(this.#nP)?n.getLineInfo(this.#nP-1):void 0,i=1/0,s=3;if(l){let{start:a,end:r}=l,o=r-a;if(this.#nX){this.#I.setAttribute(e.showInlineTruncation,"");let l=this.#I.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){i=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(i),a=r-t.start;for(e.setEnd(t.node,a),e.setStart(t.node,a);e.getBoundingClientRect().width<o&&(i-=1)&&(t=n.getNodeInfoByCharIndex(i));)e.setStart(t.node,i-t.start)}else i=a,this.#I.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,i=a):i=r-3}let r=Math.min(a,i);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let a=r-t.start,l=t.node,i=[];l.nodeType===Node.TEXT_NODE?(this.#nz.set(l,l.data),l.data=l.data.substring(0,a)):i.push(l),i=i.concat(this.#nJ(l));let o=l.parentElement;for(;o!==this.#I;)i=i.concat(this.#nJ(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nz.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nz.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#nB){let e=(0===a?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#nW=new Text(Array(s).fill(".").join("")),e.append(this.#nW)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#nQ(r)}}#n0=e=>{this.#nY(e),this.#nR()};#n1=()=>{if(this.#n$){this.#n$=!1;return}this.#nR()};#nZ(){this.#nj&&((this.#nA||this.#nP)&&!this.#nU&&(this.#nU=new MutationObserver(this.#n0),this.#nU.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nP&&!this.#k&&(this.#k=new ResizeObserver(this.#n1),this.#n$=!0,this.#k.observe(this.#n_(),{box:"content-box"})))}#n2(){this.#nU?.disconnect(),this.#nU=void 0,this.#k?.disconnect(),this.#k=void 0}get #nN(){return aG.value}get #nF(){return aK.value}#nQ(e){if(!this.#nD)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#nV||(t.#nV=new sJ(t.#I,t.#I.getBoundingClientRect())),t.#nV.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let a=parseFloat(n.toString());if(!isNaN(a)){t.#nV||(t.#nV=new sJ(t.#I,t.#I.getBoundingClientRect()));let n=t.#nV.getLineInfo(a);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#I.dispatchEvent(new CustomEvent("layout",{...sn,detail:t}))}dispose(){this.#n2()}connectedCallback(){this.#nj=!0,this.#nF(this.#nD),this.#nN(),se(()=>{this.#nQ()})}});class sJ{#n4=[{start:0}];#n3=[];#n8=[];#I;#n6;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sK(this.#I),this.#n6=t}#n9(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,a=e.node,l=document.createRange();l.selectNode(a);for(let e=0;e<a.data.length;e++){l.setEnd(a,e);let i=l.getClientRects().item(n);if(i&&i.right===t.right)return e}return a.data.length}}#n5(e){if(this.#n3[e])return;let{left:t}=this.#n6,n=this.#n3[this.#n3.length-1],a=n?.[n.length-1],l=a?.nodeIndex?a?.nodeIndex+1:0;for(let n=l,a;(a=this.#n7(n))&&e>=this.#n3.length;n++){let e,{node:n}=a;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#n3[this.#n3.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#n3.push([{...a,rect:l,rectIndex:0}]):n.push({...a,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let i=e[n];(i.left!==l.left||i.bottom!==l.bottom)&&(.2>Math.abs(i.left-t)?this.#n3.push([{...a,rect:i,rectIndex:n}]):this.#n3[this.#n3.length-1].push({...a,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#n5(1/0),this.#n3.length}getLineInfo(e){if(this.#n5(e+1),e<this.#n3.length){let t=e>0?this.#n4[e-1]??{}:void 0,n=this.#n4[e]??{},a=e<this.#n3.length-1?this.#n4[e+1]??{}:void 0;if(void 0===n.start){let a=this.#n3[e-1],l=a[a.length-1],i=this.#n9(l),s=l.start+i;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#n3[e],l=t[t.length-1];if(e===this.#n3.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#n9(l);n.end=l.start+e,a.start=n.end+1}}return n}}#n7(e){let t=this.#n8.length-1,n=this.#n8[t],a=n?n.start+n.length:0;for(let t=this.#n8.length,n;(n=this.nodelist.at(t))&&e>=this.#n8.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:a,nodeIndex:t};this.#n8.push(l)}return this.#n8[e]}getNodeInfoByCharIndex(e){let t,n=0,a=this.#n8.length-1;for(;n<=a;){let l=Math.floor((n+a)/2),i=this.#n8[l],s=i.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=i.start;if(e>=o&&e<o+r){t=i;break}e<o?a=l-1:n=l+1}if(t)return t;for(let t=this.#n8.length,n;n=this.#n7(t);t++)if(e<n.start+n.length)return n}}class sK{#ae=[];#at;constructor(e){this.#at=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#ae[e]||this.#an(e),this.#ae[e]}#an(e){let t=null;for(;e>=this.#ae.length&&(t=this.#at.nextNode());){this.#ae.push(t);break}}}a1=[st("x-text",[ss,sG,sY],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],a2=[],a4=HTMLElement,(class extends a4{static{a0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a4[Symbol.metadata]??null):void 0;i8(null,aQ={value:a0},a1,{kind:"class",name:a0.name,metadata:e},null,a2),a0=aQ.value,e&&Object.defineProperty(a0,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this;static{i6(a0,a2)}}),lq=[st("x-textarea",[ss,(a7=[],le=[],lt=[],ln=[],la=[],ll=[],li=[],ls=[],lr=[],lo=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a3=[sr("placeholder-color",!0)],a8=[sr("placeholder-font-size",!0)],a6=[sr("placeholder-font-weight",!0)],a9=[sr("placeholder-font-family",!0)],a5=[sr("placeholder",!0)],i8(null,null,a3,{kind:"field",name:"#updatePlaceholderColor",static:!1,private:!0,access:{has:e=>#aa in e,get:e=>e.#aa,set:(e,t)=>{e.#aa=t}},metadata:e},a7,le),i8(null,null,a8,{kind:"field",name:"#updatePlaceholderFontSize",static:!1,private:!0,access:{has:e=>#al in e,get:e=>e.#al,set:(e,t)=>{e.#al=t}},metadata:e},lt,ln),i8(null,null,a6,{kind:"field",name:"#updatePlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#ai in e,get:e=>e.#ai,set:(e,t)=>{e.#ai=t}},metadata:e},la,ll),i8(null,null,a9,{kind:"field",name:"#updatePlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#as in e,get:e=>e.#as,set:(e,t)=>{e.#as=t}},metadata:e},li,ls),i8(null,null,a5,{kind:"field",name:"#handlePlaceholder",static:!1,private:!0,access:{has:e=>#ar in e,get:e=>e.#ar,set:(e,t)=>{e.#ar=t}},metadata:e},lr,lo),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#ao=sd(()=>this.#I.shadowRoot,"#textarea");#aa=i6(this,a7,sc(this.#ao,"--placeholder-color",void 0,!0));#al=(i6(this,le),i6(this,lt,sc(this.#ao,"--placeholder-font-size",void 0,!0)));#ai=(i6(this,ln),i6(this,la,sc(this.#ao,"--placeholder-font-weight",void 0,!0)));#as=(i6(this,ll),i6(this,li,sc(this.#ao,"--placeholder-font-family",void 0,!0)));#ar=(i6(this,ls),i6(this,lr,sL(this.#ao,"placeholder")));#I=i6(this,lo);constructor(e){this.#I=e}}),(lp=[],lv=[],lb=[],lg=[],lf=[],ly=[],lE=[],lS=[],lw=[],lx=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ld=[sr("confirm-type",!0)],lc=[sr("maxlength",!0)],lh=[sr("readonly",!0)],lu=[sr("ios-spell-check",!0)],lm=[sr("show-soft-input-onfocus",!0)],i8(null,null,ld,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},lp,lv),i8(null,null,lc,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},lb,lg),i8(null,null,lh,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},lf,ly),i8(null,null,lu,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},lE,lS),i8(null,null,lm,{kind:"field",name:"#handleShowSoftInputOnfocus",static:!1,private:!0,access:{has:e=>#ad in e,get:e=>e.#ad,set:(e,t)=>{e.#ad=t}},metadata:e},lw,lx),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#I;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#ta=i6(this,lp,sL(this.#ac,"enterkeyhint",e=>null===e?"send":e));#tl=(i6(this,lv),i6(this,lb,sL(this.#ac,"maxlength",e=>null===e?"140":e)));#ti=(i6(this,lg),i6(this,lf,sL(this.#ac,"readonly",e=>null!==e?"":null)));#ts=(i6(this,ly),i6(this,lE,sL(this.#ac,"spellcheck",e=>null===e?"false":"true")));#ad=(i6(this,lS),i6(this,lw,sL(this.#ac,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){i6(this,lx),this.#I=e}}),(lP=[],lM=[],l_=[],lR=[],lN=[],lD=[],lF=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lC=[sr("confirm-enter",!0)],lO=[sr("disabled",!0)],lI=[sr("max-height",!0)],lL=[sr("min-height",!0)],lk=[sr("value",!1)],i8(this,lT={value:i9(function(e){this.#ah=null!==e},"#handleConfirmEnter")},lC,{kind:"method",name:"#handleConfirmEnter",static:!1,private:!0,access:{has:e=>#au in e,get:e=>e.#au},metadata:e},null,lP),i8(this,lA={value:i9(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#ac();t.value!==e&&(t.value=e)},"#handleValue")},lk,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,lP),i8(null,null,lO,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},lM,l_),i8(null,null,lI,{kind:"field",name:"#handleMaxHeight",static:!1,private:!0,access:{has:e=>#am in e,get:e=>e.#am,set:(e,t)=>{e.#am=t}},metadata:e},lR,lN),i8(null,null,lL,{kind:"field",name:"#handleMinHeight",static:!1,private:!0,access:{has:e=>#ap in e,get:e=>e.#ap,set:(e,t)=>{e.#ap=t}},metadata:e},lD,lF),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#I=i6(this,lP);#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");#ah=!1;get #au(){return lT.value}#e5=i6(this,lM,sL(this.#ac,"disabled",e=>null!==e?"":null));#am=(i6(this,l_),i6(this,lR,sc(this.#ac,"max-height")));#ap=(i6(this,lN),i6(this,lD,sc(this.#ac,"min-height")));get #e9(){return lA.value}#av=(i6(this,lF),e=>{this.#ah&&"Enter"===e.key&&this.#tv().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#I=e,this.#ac().addEventListener("keyup",this.#av)}}),(l$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lH=[sr("input-filter",!0),sl("lynxinput")],lz=[sr("send-composing-input",!0)],lW=[sl("selection")],i8(this,lj={value:i9(function(e){let t=this.#ac();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableConfirmEvent")},lH,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#ab in e,get:e=>e.#ab},metadata:e},null,l$),i8(this,lU={value:i9(function(e){this.#th=null!==e},"#handleSendComposingInput")},lz,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,l$),i8(this,lV={value:i9(function(e){e?this.#ac().addEventListener("select",this.#tm,{passive:!0}):this.#ac().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},lW,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,l$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i6(this,l$);#th=!1;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");get #ab(){return lj.value}get #tu(){return lU.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#ac().value}}))};#to=e=>{let t=this.#ac(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#ac(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return lV.value}#tm=()=>{let e=this.#ac();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#ac()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#ac(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sO)],lY=[],lG=HTMLElement,(class extends lG{static{lX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lG[Symbol.metadata]??null):void 0;i8(null,lB={value:lX},lq,{kind:"class",name:lX.name,metadata:e},null,lY),lX=lB.value,e&&Object.defineProperty(lX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(lX,lY)}#ao=sd(()=>this.shadowRoot,"#textarea");get value(){return this.#ao().value}set value(e){this.#ao().value=e}addText(e){let{text:t}=e,n=this.#ao(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}setValue(e){let t,n=this.#ao();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#ao();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#ao();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#ao();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#ao().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lZ=[st("x-view",[ss])],lQ=[],l0=HTMLElement,(class extends l0{static{lK=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l0[Symbol.metadata]??null):void 0;i8(null,lJ={value:lK},lZ,{kind:"class",name:lK.name,metadata:e},null,lQ),lK=lJ.value,e&&Object.defineProperty(lK,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(lK,lQ)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this}),l6=[st("x-blur-view",[ss,(l4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l1=[sr("blur-radius",!0)],i8(this,l2={value:i9(function(e){e?(e=`blur(${parseFloat(e)}px)`,this.#ag().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#ag().innerHTML=""},"#handleBlurRadius")},l1,{kind:"method",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX},metadata:e},null,l4),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=i6(this,l4);#ag=sd(()=>this.#I.shadowRoot,"#dynamic-style");get #eX(){return l2.value}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],l9=[],l5=HTMLElement,(class extends l5{static{l8=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l5[Symbol.metadata]??null):void 0;i8(null,l3={value:l8},l6,{kind:"class",name:l8.name,metadata:e},null,l9),l8=l3.value,e&&Object.defineProperty(l8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(l8,l9)}}),ir=[st("x-viewpager-ng",[ss,(il=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l7=[sl("change")],it=[sl("offsetchange")],i8(this,ie={value:i9(function(e){this.#af=e,this.#ay()},"#enableChangeEvent")},l7,{kind:"method",name:"#enableChangeEvent",static:!1,private:!0,access:{has:e=>#aE in e,get:e=>e.#aE},metadata:e},null,il),i8(this,ia={value:i9(function(e){this.#af=e,this.#ay()},"#enableOffsetChangeEvent")},it,{kind:"method",name:"#enableOffsetChangeEvent",static:!1,private:!0,access:{has:e=>#aS in e,get:e=>e.#aS},metadata:e},null,il),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,il);#aw=!1;#t=!1;#ax=0;#V;constructor(e){this.#I=e}#X=sd(()=>this.#I.shadowRoot,"#content");#aC=()=>{if(!this.#t)return;let e=this.#X(),t=this.#I.clientWidth,n=e.scrollLeft;this.#af&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#aT()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...sn,detail:{offset:n/t}}))};#aT=()=>{if(this.#t){let e=this.#X(),t=this.#I.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#ax&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{index:n,isDragged:this.#aw}})),this.#ax=n)}};#aO=()=>{this.#aw=!0};#aI=()=>{this.#aw=!1};#af=!1;get #aE(){return ie.value}#aL=!1;get #aS(){return ia.value}#ay(){let e=this.#X();this.#aL||this.#af?e.addEventListener("scroll",this.#aC,{passive:!0}):e.removeEventListener("scroll",this.#aC),sp&&this.#af?e.addEventListener("scrollend",this.#aT,{passive:!0}):e.removeEventListener("scrollend",this.#aT)}connectedCallback(){this.#t=!0;let e=this.#X();this.#I.addEventListener("touchstart",this.#aO,{passive:!0}),e.addEventListener("touchend",this.#aI,{passive:!0}),e.addEventListener("touchcancel",this.#aI,{passive:!0})}dispose(){let e=this.#X();e.removeEventListener("scroll",this.#aC),e.removeEventListener("scrollend",this.#aT)}})],sI)],io=[],id=HTMLElement,(class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;i8(null,ii={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),is=ii.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let a=this.shadowRoot.children.item(2),l=a.clientWidth*t;a.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),a=()=>{0===n.clientWidth?requestAnimationFrame(a):this.selectTab({index:t,smooth:!1})};se(a)}}get[sb](){return this}static{i6(is,io)}}),iu=[st("x-viewpager-item-ng",[ss])],im=[],ip=HTMLElement,(class extends ip{static{ih=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ip[Symbol.metadata]??null):void 0;i8(null,ic={value:ih},iu,{kind:"class",name:ih.name,metadata:e},null,im),ih=ic.value,e&&Object.defineProperty(ih,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ih,im)}}),iE=[st("list-item",[ss,(iv=[],ib=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8(null,null,[sr("estimated-main-axis-size-px",!0)],{kind:"field",name:"#handlerEstimatedMainAxisSizePx",static:!1,private:!0,access:{has:e=>#ak in e,get:e=>e.#ak,set:(e,t)=>{e.#ak=t}},metadata:e},iv,ib),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#I;#ak=i6(this,iv,sc(()=>this.#I,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){i6(this,ib),this.#I=e}})])],iS=[],iw=HTMLElement,class extends iw{static{iy=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iw[Symbol.metadata]??null):void 0;i8(null,ig={value:iy},iE,{kind:"class",name:iy.name,metadata:e},null,iS),iy=ig.value,e&&Object.defineProperty(iy,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(iy,iS)}};let sZ=function(e,t,n){let a,l,i,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),a=null,s=e.apply(l,i),a||(l=i=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),r=d,s=e.apply(l,i),a||(l=i=null)):a||n?.trailing===!1||(a=setTimeout(o,c)),s}},sQ="waterfall-slot",s0="waterfall-style";i2=[st("x-list",[ss,(iT=[],iO=[],iI=[],iL=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ix=[sr("sticky-offset",!0)],iC=[sr("span-count",!0),sr("column-count",!0)],i8(null,null,ix,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#aA in e,get:e=>e.#aA,set:(e,t)=>{e.#aA=t}},metadata:e},iT,iO),i8(null,null,iC,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#aP in e,get:e=>e.#aP,set:(e,t)=>{e.#aP=t}},metadata:e},iI,iL),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#I;#aA=i6(this,iT,sc(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#aP=(i6(this,iO),i6(this,iI,sc(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){i6(this,iL),this.#I=e}connectedCallback(){let e=this.#I.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#I.clientHeight?requestAnimationFrame(n):this.#I.scrollToPosition({position:t})};se(n)}}}),(iH=[],ij=[],iz=[],iU=[],iW=[],iV=[],i$=[],iB=[],iX=[],iq=[],iY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ik=[sl("scrolltoupper")],iA=[sr("upper-threshold-item-count",!0)],iM=[sl("scrolltolower")],i_=[sr("lower-threshold-item-count",!0)],iN=[sl("lynxscroll"),sl("lynxscrollend"),sl("snap")],iD=[sl("scrolltoupperedge")],iF=[sl("scrolltoloweredge")],i8(this,iP={value:i9(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#q():this.#I.children[n-1];a&&this.#aM?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#q():this.#I.children[l-1];i&&this.#aM?.observe(i)},"#handleUpperThresholdItemCountChange")},iA,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#a_ in e,get:e=>e.#a_},metadata:e},null,iH),i8(this,iR={value:i9(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#Y():this.#I.children[this.#I.children.length-n];a&&this.#aR?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#Y():this.#I.children[this.#I.children.length-l];i&&this.#aR?.observe(i)},"#handleLowerThresholdItemCountChange")},i_,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aN in e,get:e=>e.#aN},metadata:e},null,iH),i8(null,null,ik,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#aD in e,get:e=>e.#aD,set:(e,t)=>{e.#aD=t}},metadata:e},ij,iz),i8(null,null,iM,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#aF in e,get:e=>e.#aF,set:(e,t)=>{e.#aF=t}},metadata:e},iU,iW),i8(null,null,iN,{kind:"field",name:"#handleScrollEventsSwitches",static:!1,private:!0,access:{has:e=>#ea in e,get:e=>e.#ea,set:(e,t)=>{e.#ea=t}},metadata:e},iV,i$),i8(null,null,iD,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aH in e,get:e=>e.#aH,set:(e,t)=>{e.#aH=t}},metadata:e},iB,iX),i8(null,null,iF,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aj in e,get:e=>e.#aj,set:(e,t)=>{e.#aj=t}},metadata:e},iq,iY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#I=i6(this,iH);#az=sd(()=>this.#I.shadowRoot,"#content");#aM;#aR;#aU;#$=0;#B=0;#aW=!1;#V;#q=sd(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=sd(()=>this.#I.shadowRoot,"#lower-threshold-observer");#J(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l}=this.#az(),i={scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l,deltaX:n-this.#$,deltaY:t-this.#B,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#$=n,this.#B=t,i}#aV=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...sn,detail:this.#J()}))};#aD=i6(this,ij,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#tO.scrolltoupper=e,e){this.#aM||(this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #a_(){return iP.value}#aB=(i6(this,iz),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...sn,detail:this.#J()}))});#tO={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#aF=i6(this,iU,e=>{if(this.#tO.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#aR||(this.#aR=new IntersectionObserver(this.#aB,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aR.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aR&&(this.#aR.disconnect(),this.#aR=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aN(){return iR.value}#a$=(i6(this,iW),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tO.scrolltolower){this.#aR&&(this.#aR.disconnect(),this.#aR=void 0),this.#aR=new IntersectionObserver(this.#aB,{root:this.#az()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aR.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()});let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n)}}});#aX=null;#Q=()=>{this.#aW&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...sn,detail:this.#J()}))};#ea=i6(this,iV,(e,t)=>{this.#tO[t]=e;let{lynxscroll:n,lynxscrollend:a,snap:l}=this.#tO,i=this.#I.getAttribute("scroll-event-throttle");this.#aW=null!==a||null!==l;let s=this.#az();if(this.#aX&&s.removeEventListener("scroll",this.#aX),null!==scroll||this.#aW){let e=null!==i?parseFloat(i):0,t=sZ(this.#Q,e,{leading:!0,trailing:!1});this.#aX=t,s.addEventListener("scroll",this.#aX),this.#$=0,this.#B=0}sp&&this.#aW?s.addEventListener("scrollend",this.#et):s.removeEventListener("scrollend",this.#et)});#G=(i6(this,i$),e=>{let{isIntersecting:t,target:n}=e[0],a=n.id;t&&("upper-threshold-observer"===a?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...sn,detail:this.#J()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...sn,detail:this.#J()})))});#aH=i6(this,iB,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#aq(e)});#aq=(i6(this,iX),sm(this.#az,this.#q,this.#G));#aj=i6(this,iq,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#aY(e)});#aY=(i6(this,iY),sm(this.#az,this.#Y,this.#G));#et=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#az().scrollTop,n=this.#az().scrollLeft,a=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...sn,detail:{position:a&&e.indexOf(a),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(iQ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iG=[sl("scrolltolower")],iK=[sr("list-type",!0)],i8(this,iJ={value:i9(function(e){if(e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#aG(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#az();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}},"#handleXEnableHeaderOffsetEvent")},iG,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,iQ),i8(this,iZ={value:i9(function(e){if("waterfall"===e)this.#aJ(),this.#k||this.#aK(),this.#aU||(this.#aU=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#aK()}),this.#aU.observe(this.#I,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#aU?.disconnect(),this.#aU=void 0;for(let e=0;e<this.#I.children.length;e++)this.#I.children[e].removeAttribute("slot");this.#I.shadowRoot?.querySelector(`slot[name=${sQ}]`)?.remove()}},"#handlerListType")},iK,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#aZ in e,get:e=>e.#aZ},metadata:e},null,iQ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=i6(this,iQ);#az=sd(()=>this.#I.shadowRoot,"#content");#aG=sd(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#aU;get #tM(){return iJ.value}#aJ=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sQ}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#aQ=()=>{let e=parseFloat(this.#I.getAttribute("span-count")||this.#I.getAttribute("column-count")||"")||1,t="vertical"===(this.#I.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let a=0;a<this.#I.children.length;a++){let l=this.#I.children[a],i=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(i):l.getBoundingClientRect().width+parseFloat(i);if(null!==l.getAttribute("full-span")){let a=n[0];for(let t=1;t<e;t++)n[t]>a&&(a=n[t]);for(let t=0;t<e;t++)n[t]=a+r;t?(l.setAttribute(`${s0}-left`,"0"),l.setAttribute(`${s0}-top`,`${a}px`)):(l.setAttribute(`${s0}-left`,`${a}px`),l.setAttribute(`${s0}-top`,"0"))}else{let a=0,i=n[0];for(let t=1;t<e;t++)n[t]<i&&(a=t,i=n[t]);let o=`calc(${a} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,a)} * ${s})`;t?(l.setAttribute(`${s0}-left`,o),l.setAttribute(`${s0}-top`,`${i}px`)):(l.setAttribute(`${s0}-left`,`${i}px`),l.setAttribute(`${s0}-top`,o)),n[a]+=r}}for(let e=0;e<this.#I.children.length;e++){let t=this.#I.children[e];t.style.setProperty("left",t.getAttribute(`${s0}-left`)),t.style.setProperty("top",t.getAttribute(`${s0}-top`)),t.setAttribute("slot",sQ)}};constructor(e){this.#I=e}#aK=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#aQ()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};get #aZ(){return iZ.value}})],sw)],i4=[],i3=HTMLElement,class extends i3{static{i1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i3[Symbol.metadata]??null):void 0;i8(null,i0={value:i1},i2,{kind:"class",name:i1.name,metadata:e},null,i4),i1=i0.value,e&&Object.defineProperty(i1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#az=sd(()=>this.shadowRoot,"#content");#a0={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#a1={};get scrollTop(){return this.#az().scrollTop}set scrollTop(e){this.#az().scrollTop=e}get scrollLeft(){return this.#az().scrollTop}set scrollLeft(e){this.#az().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#az().scrollTop=0,this.#az().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#az().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#a2=e=>{if(!this.#a0.isScrolling)return;if(!this.#a0.lastTimestamp){this.#a0.lastTimestamp=e,requestAnimationFrame(this.#a2);return}let t=this.#az(),n=(e-this.#a0.lastTimestamp)/1e3*this.#a0.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#a0.lastTimestamp=e;let a="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(a?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#a0.autoStop?(a?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#a0.isScrolling=!1):requestAnimationFrame(this.#a2)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#a0={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#az(),a="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#a0.lastTimestamp=0,a?setTimeout(()=>requestAnimationFrame(this.#a2),0):requestAnimationFrame(this.#a2)}else this.#a0.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#a1),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#a4=()=>Object.values(this.#a1).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#a3=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",a="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#a4();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...sn,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#a4()}}))},100);return}if(a){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#a1[n]&&delete this.#a1[n]:this.#a1[n]=e.target;return}};connectedCallback(){this.#az().addEventListener("contentvisibilityautostatechange",this.#a3,{passive:!0})}static{i6(i1,i4)}}},7075(e,t,n){n.a(e,async function(e,t){try{var a=n(3493);n(6675),n(6269),n(3463),n(1498);var l=e([a]);a=(l.then?(await l)():l)[0];let d="lynx-web-core-init-data",c="lynx-web-core-global-props",h=document.createElement("lynx-view");document.body.appendChild(h);let u=new URLSearchParams(document.location.search).get("casename");function i(){if(u){let e={};try{let t=localStorage.getItem(d);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(c);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}h.globalProps=t,h.initData=e,h.url=u}}function s(e){localStorage.setItem(d,JSON.stringify(e)),i()}function r(e){localStorage.setItem(c,JSON.stringify(e)),i()}function o(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
|
|
307
|
+
></div>`)],j=[],z=HTMLElement,e=class extends z{static{F=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(z[Symbol.metadata]??null):void 0;ah(null,D={value:F},H,{kind:"class",name:F.name,metadata:t},null,j),e=F=D.value,t&&Object.defineProperty(F,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#G;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#G),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#G=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[aA](){return this}static{au(F,j)}},e=F;let a$=Symbol("__src"),aB=Symbol("__src"),aX={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},aq={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=i||(i={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let aY=($=[],B=[],X=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;U=[a_("src",!0)],W=[a_("loop",!0)],V=[a_("pause-on-hide",!0)],ah(this,null,U,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,$),ah(this,null,V,{kind:"method",name:"_handlePauseOnHide",static:!1,private:!1,access:{has:e=>"_handlePauseOnHide"in e,get:e=>e._handlePauseOnHide},metadata:e},null,$),ah(null,null,W,{kind:"field",name:"_handleLoop",static:!1,private:!1,access:{has:e=>"_handleLoop"in e,get:e=>e._handleLoop,set:(e,t)=>{e._handleLoop=t}},metadata:e},B,X),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=au(this,$);#J=ax(()=>this.#I.shadowRoot,"#audio");_handleSrc(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#I.dispatchEvent(new CustomEvent("error",{...ag,detail:{code:i.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[a$]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...ag,detail:{code:i.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[a$]?.id}})),this.#I[a$]=t,this.#I[aB]=void 0,this.#I.stop()}_handleLoop=au(this,B,aV(this.#J,"loop"));#K=(au(this,X),()=>{"hidden"===document.visibilityState&&this.#I.pause()});_handlePauseOnHide(e){null!==e?document.addEventListener("visibilitychange",this.#K,{passive:!0}):document.removeEventListener("visibilitychange",this.#K)}constructor(e){this.#I=e}});class aG{static observedAttributes=[];#I;#Q;#J=ax(()=>this.#I.shadowRoot,"#audio");#Z=e=>{let t=Number(this.#I.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#Q=setInterval(()=>{this.#I.dispatchEvent(new CustomEvent("timeupdate",{...ag,detail:{currentTime:this.#J().currentTime,currentSrcID:this.#I[a$]?.id}}))},n);let i=aq[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...ag,detail:{code:i?.code,type:i?.type,currentSrcID:this.#I[a$]?.id}}))};#ee=e=>{clearInterval(this.#Q);let t=aq[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...ag,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[a$]?.id}}))};#et=e=>{let t=aX[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...ag,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[a$]?.id}}))};#en=e=>{this.#et(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?i.PlayerLoadingError:i.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=i.PlayerLoadingError),this.#I.dispatchEvent(new CustomEvent("error",{...ag,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[a$]?.id}}))};#ei=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...ag,detail:{loop:e,currentSrcID:this.#I[a$]?.id}}))};constructor(e){this.#I=e}connectedCallback(){let e=this.#J();e.addEventListener("play",this.#Z,{passive:!0}),e.addEventListener("pause",this.#ee,{passive:!0}),e.addEventListener("ended",this.#ei,{passive:!0}),e.addEventListener("loadstart",this.#et,{passive:!0}),e.addEventListener("canplay",this.#et,{passive:!0}),e.addEventListener("stalled",this.#et,{passive:!0}),e.addEventListener("error",this.#en,{passive:!0})}}G=[av("x-audio-tt",[aS,aY,aG],'<audio id="audio"></audio>')],J=[],K=HTMLElement,(class extends K{static{Y=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(K[Symbol.metadata]??null):void 0;ah(null,q={value:Y},G,{kind:"class",name:Y.name,metadata:e},null,J),Y=q.value,e&&Object.defineProperty(Y,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(Y,J)}#el=ax(()=>this.shadowRoot,"#audio");#J=ax(()=>this.shadowRoot,"#audio");#ea=aV(this.#J,"src");[a$];[aB];#es=()=>{let e,t=this[a$];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[aB]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...ag,detail:{code:0,type:"loading",currentSrcID:t.id}}));let a=await fetch(t.play_url,{headers:e});a.ok||(this.dispatchEvent(new CustomEvent("error",{...ag,detail:{code:i.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...ag,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await a.blob(),r=URL.createObjectURL(s);this.#ea(r),n()})}};play(){return this[aB]||this.#es(),this[aB]?.then(()=>{let e=this.#el();e.currentTime=0,e.play()}),{currentSrcID:this[a$]?.id,loadingSrcID:""}}stop(){let e=this.#el(),t=aq.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...ag,detail:{code:t?.code,type:t?.type,currentSrcID:this[a$]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[a$]?.id}}pause(){return this.#el().pause(),{currentSrcID:this[a$]?.id}}resume(){return this.#el().play(),{currentSrcID:this[a$]?.id,loadingSrcID:""}}seek(e){return this.#el().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...ag,detail:{seekresult:1,currentSrcID:this[a$]?.id}})),{currentSrcID:this[a$]?.id}}mute(e){return this.#el().muted=e.mute,{currentSrcID:this[a$]?.id}}playerInfo(){var e;let t=this.#el(),n=t.buffered,i=n.end(n.length-1);return{currentSrcID:this[a$]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:i}}prepare(){this[aB]||this.#es()}setVolume(e){return this.#el().volume=e.volume,{code:1}}}),ed=[av("x-canvas",[aS,(et=[],en=[],ei=[],el=[],ea=[],es=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;Q=[a_("name",!0)],Z=[a_("height",!0)],ee=[a_("width",!0)],ah(null,null,Q,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},et,en),ah(null,null,Z,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ei,el),ah(null,null,ee,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},ea,es),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#I;#k;#er=ax(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=au(this,et,aV(this.#er,"name"));handleHeight=(au(this,en),au(this,ei,aV(this.#er,"height")));handleWidth=(au(this,el),au(this,ea,aV(this.#er,"width")));#eo=(au(this,es),e=>{let{contentRect:t}=e[0],n=this.#I.shadowRoot.firstElementChild;if(n){let{height:e,width:i}=t;e*=window.devicePixelRatio,i*=window.devicePixelRatio;let l=new CustomEvent("resize",{...ag,detail:{height:e,width:i}});l.height=e,l.width=i,n.dispatchEvent(l)}});#ed(){this.#k||(this.#k=new ResizeObserver(this.#eo),this.#k.observe(this.#I))}#ec(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#ed()}dispose(){this.#ec()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],ec=[],eh=HTMLElement,class extends eh{static{eo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eh[Symbol.metadata]??null):void 0;ah(null,er={value:eo},ed,{kind:"class",name:eo.name,metadata:e},null,ec),eo=er.value,e&&Object.defineProperty(eo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(eo,ec)}};let aJ=(ep=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eu=[a_("granularity",!0)],em=[ay("offset")],ah(this,null,eu,{kind:"method",name:"_handleGranularity",static:!1,private:!1,access:{has:e=>"_handleGranularity"in e,get:e=>e._handleGranularity},metadata:e},null,ep),ah(this,null,em,{kind:"method",name:"_enableOffsetEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetEvent"in e,get:e=>e._enableOffsetEvent},metadata:e},null,ep),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=au(this,ep);#eh=.01;#eu=0;constructor(e){this.#I=e}static observedAttributes=["granularity"];_handleGranularity(e){e&&""!==e?this.#eh=parseFloat(e):this.#eh=.01}_enableOffsetEvent(e){e?this.#I.addEventListener("scroll",this.#V,{passive:!0}):this.#I.removeEventListener("scroll",this.#V)}#V=()=>{let e=this.#I.scrollTop;(Math.abs(this.#eu-e)>this.#eh||0===this.#I.scrollTop||1>=Math.abs(this.#I.scrollHeight-this.#I.clientHeight-this.#I.scrollTop))&&(this.#eu=e,this.#I.dispatchEvent(new CustomEvent("offset",{...ag,detail:{offset:e,height:this.#I[aK]}})))}}),aK=Symbol("scrollableLength"),aQ=Symbol("isHeaderShowing"),aZ=Symbol("resizeObserver"),a0=Symbol("slotKid");eg=[av("x-foldview-ng",[aS,aJ])],ef=[],ey=HTMLElement,class extends ey{static{ev=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ey[Symbol.metadata]??null):void 0;ah(null,eb={value:ev},eg,{kind:"class",name:ev.name,metadata:e},null,ef),ev=eb.value,e&&Object.defineProperty(ev,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[a0];[aZ]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#em=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ep=t.contentRect.height);this[a0]&&(this[a0].style.top=`${this.#em-this.#ep}px`)});#em=0;#ep=0;get[aK](){return this.#em-this.#ep}get[aQ](){return this[aK]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[aK]?e=this[aK]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,i=parseFloat(t);this.scrollTo({top:i,behavior:n?"smooth":"instant"})}get[aA](){return this}disconnectedCallback(){this[aZ]?.disconnect(),this[aZ]=void 0}static{au(ev,ef)}};let a1=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};e_=[av("x-foldview-header-ng",[aS])],ew=[],ex=HTMLElement,(class extends ex{static{eS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ex[Symbol.metadata]??null):void 0;ah(null,eE={value:eS},e_,{kind:"class",name:eS.name,metadata:e},null,ew),eS=eE.value,e&&Object.defineProperty(eS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(eS,ew)}#eb=void 0;connectedCallback(){let e=a1(this,"X-FOLDVIEW-NG");this.#eb=e?.[aZ],this.#eb?.observe(this)}dispose(){this.#eb?.unobserve(this)}}),eO=[av("x-foldview-slot-drag-ng",[aS])],eI=[],eL=HTMLElement,class extends eL{static{eC=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eL[Symbol.metadata]??null):void 0;ah(null,eT={value:eC},eO,{kind:"class",name:eC.name,metadata:e},null,eI),eC=eT.value,e&&Object.defineProperty(eC,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(eC,eI)}};class a2{#ev=0;#eg=new WeakMap;#ef;#ey=0;#eE=0;#eS=null;#e_;#ew=0;#I;static observedAttributes=[];constructor(e){this.#I=e,this.#I.addEventListener("touchmove",this.#ex,{passive:!1}),this.#I.addEventListener("touchstart",this.#eT,{passive:!0}),this.#I.addEventListener("touchend",this.#eC,{passive:!0})}#eO(e){return this.#ef?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,i=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||i}return!1})}#eI(e,t){let n=this.#eg.get(e)??0;n+=t,this.#eg.set(e,n),e.scrollTop=n}#ex=e=>{let t=this.#eL(),{pageY:n,pageX:i}=e.touches.item(0),l=this.#ey-n;if(null===this.#eS){let e=this.#eE-i;this.#eS=Math.abs(l)>Math.abs(e)}if(!1===this.#eS)return;let a=this.#eO(l);t&&(e.cancelable&&e.preventDefault(),t[aQ]&&l>0||l<0&&!a||!t[aQ]&&!a?(t.scrollBy({top:l,behavior:"smooth"}),this.#ev+=l,t.scrollTop=this.#ev,this.#e_=t):a&&(this.#e_=a,this.#eI(a,l))),this.#ey=n,this.#ew=l};#eL(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#eT=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#ef=document.elementsFromPoint(t,n).filter(e=>this.#I.contains(e)),this.#ey=n,this.#eE=t,this.#ev=this.#eL()?.scrollTop??0,this.#ef))this.#eg.set(e,e.scrollTop);this.#eS=null,this.#e_=void 0};#eC=()=>{if(this.#eS=null,this.#e_){let e=this.#eL();(this.#e_!==e||e[aQ])&&this.#e_.scrollBy({top:4*this.#ew,behavior:"smooth"})}}}eP=[av("x-foldview-slot-ng",[aS,a2])],eM=[],eR=HTMLElement,(class extends eR{static{eA=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eR[Symbol.metadata]??null):void 0;ah(null,ek={value:eA},eP,{kind:"class",name:eA.name,metadata:e},null,eM),eA=ek.value,e&&Object.defineProperty(eA,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(eA,eM)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[a0]=this)}}),eF=[av("x-foldview-toolbar-ng",[aS])],eH=[],ej=HTMLElement,class extends ej{static{eD=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ej[Symbol.metadata]??null):void 0;ah(null,eN={value:eD},eF,{kind:"class",name:eD.name,metadata:e},null,eH),eD=eN.value,e&&Object.defineProperty(eD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(eD,eH)}#eb=void 0;connectedCallback(){let e=a1(this,"X-FOLDVIEW-NG");this.#eb=e?.[aZ],this.#eb?.observe(this)}dispose(){this.#eb?.unobserve(this)}};let a4=(eq=[],eY=[],eG=[],eJ=[],eK=[],eQ=[],eZ=[],e0=[],e1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eW=[a_("src",!0)],eV=[a_("placeholder",!0)],e$=[a_("blur-radius",!0)],eB=[a_("crossorigin",!0)],eX=[a_("referrerpolicy",!0)],ah(this,null,eV,{kind:"method",name:"_preloadPlaceholder",static:!1,private:!1,access:{has:e=>"_preloadPlaceholder"in e,get:e=>e._preloadPlaceholder},metadata:e},null,eq),ah(null,null,eW,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},eY,eG),ah(null,null,e$,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eJ,eK),ah(null,null,eB,{kind:"field",name:"_handleCrossorigin",static:!1,private:!1,access:{has:e=>"_handleCrossorigin"in e,get:e=>e._handleCrossorigin,set:(e,t)=>{e._handleCrossorigin=t}},metadata:e},eQ,eZ),ah(null,null,eX,{kind:"field",name:"_handleReferrerpolicy",static:!1,private:!1,access:{has:e=>"_handleReferrerpolicy"in e,get:e=>e._handleReferrerpolicy,set:(e,t)=>{e._handleReferrerpolicy=t}},metadata:e},e0,e1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#I=au(this,eq);#ek=ax(()=>this.#I.shadowRoot,"#img");_handleSrc=au(this,eY,aV(this.#ek,"src",e=>e||this.#I.getAttribute("placeholder")));_preloadPlaceholder(e){e&&(new Image().src=e)}_handleBlurRadius=(au(this,eG),au(this,eJ,aT(this.#ek,"--blur-radius",void 0,!0)));_handleCrossorigin=(au(this,eK),au(this,eQ,aV(this.#ek,"crossorigin")));_handleReferrerpolicy=(au(this,eZ),au(this,e0,aV(this.#ek,"referrerpolicy")));#eA=(au(this,e1),()=>{let e=this.#ek().src,t=this.#I.getAttribute("placeholder");t&&e!==t&&(this.#ek().src=t)});constructor(e){this.#I=e,this.#ek().addEventListener("error",this.#eA)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this._handleSrc(null)}}),a3=(e3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e2=[ay("load")],e4=[ay("error")],ah(this,null,e2,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,e3),ah(this,null,e4,{kind:"method",name:"_enableErrorEvent",static:!1,private:!1,access:{has:e=>"_enableErrorEvent"in e,get:e=>e._enableErrorEvent},metadata:e},null,e3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=au(this,e3);#ek=ax(()=>this.#I.shadowRoot,"#img");_enableLoadEvent(e){e?this.#ek().addEventListener("load",this.#eP,{passive:!0}):this.#ek().removeEventListener("load",this.#eP)}_enableErrorEvent(e){e?this.#ek().addEventListener("error",this.#eM,{passive:!0}):this.#ek().removeEventListener("error",this.#eM)}#eP=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...ag,detail:{width:this.#ek().naturalWidth,height:this.#ek().naturalHeight}}))};#eM=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...ag,detail:{}}))};constructor(e){this.#I=e}});e9=[av("filter-image",[aS,a4,(ez=[],eU=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah(null,null,[a_("drop-shadow",!0)],{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},ez,eU),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#ek=ax(()=>this.#I.shadowRoot,"#img");_handleBlurRadius=au(this,ez,aT(this.#ek,"--drop-shadow",void 0,!0));constructor(e){au(this,eU),this.#I=e}}),a3],aN({}))],e5=[],e7=HTMLElement,(class extends e7{static{e6=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(e7[Symbol.metadata]??null):void 0;ah(null,e8={value:e6},e9,{kind:"class",name:e6.name,metadata:e},null,e5),e6=e8.value,e&&Object.defineProperty(e6,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(e6,e5)}}),tn=[av("x-image",[aS,a4,a3],aN({}))],ti=[],tl=HTMLElement,class extends tl{static{tt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tl[Symbol.metadata]??null):void 0;ah(null,te={value:tt},tn,{kind:"class",name:tt.name,metadata:e},null,ti),tt=te.value,e&&Object.defineProperty(tt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(tt,ti)}};let a8={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};tY=[av("x-input",[aS,(tx=[],tT=[],tC=[],tO=[],tI=[],tL=[],tk=[],tA=[],tP=[],tM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ty=[a_("placeholder",!0)],tE=[a_("placeholder-color",!0)],tS=[a_("placeholder-font-family",!0)],t_=[a_("placeholder-font-size",!0)],tw=[a_("placeholder-font-weight",!0)],ah(null,null,ty,{kind:"field",name:"_handlerPlaceholder",static:!1,private:!1,access:{has:e=>"_handlerPlaceholder"in e,get:e=>e._handlerPlaceholder,set:(e,t)=>{e._handlerPlaceholder=t}},metadata:e},tx,tT),ah(null,null,tE,{kind:"field",name:"_handlerPlaceholderColor",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderColor"in e,get:e=>e._handlerPlaceholderColor,set:(e,t)=>{e._handlerPlaceholderColor=t}},metadata:e},tC,tO),ah(null,null,tS,{kind:"field",name:"_handlerPlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontFamily"in e,get:e=>e._handlerPlaceholderFontFamily,set:(e,t)=>{e._handlerPlaceholderFontFamily=t}},metadata:e},tI,tL),ah(null,null,t_,{kind:"field",name:"_handlerPlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontSize"in e,get:e=>e._handlerPlaceholderFontSize,set:(e,t)=>{e._handlerPlaceholderFontSize=t}},metadata:e},tk,tA),ah(null,null,tw,{kind:"field",name:"_handlerPlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontWeight"in e,get:e=>e._handlerPlaceholderFontWeight,set:(e,t)=>{e._handlerPlaceholderFontWeight=t}},metadata:e},tP,tM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#I;#eR=ax(()=>this.#I.shadowRoot,"#input");_handlerPlaceholder=au(this,tx,aV(this.#eR,"placeholder"));_handlerPlaceholderColor=(au(this,tT),au(this,tC,aT(this.#eR,"--placeholder-color",void 0,!0)));_handlerPlaceholderFontFamily=(au(this,tO),au(this,tI,aT(this.#eR,"--placeholder-font-family",void 0,!0)));_handlerPlaceholderFontSize=(au(this,tL),au(this,tk,aT(this.#eR,"--placeholder-font-size",void 0,!0)));_handlerPlaceholderFontWeight=(au(this,tA),au(this,tP,aT(this.#eR,"--placeholder-font-weight",void 0,!0)));constructor(e){au(this,tM),this.#I=e}}),(tF=[],tH=[],tj=[],tz=[],tU=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tR=[a_("value",!1)],tN=[a_("disabled",!0)],tD=[a_("autocomplete",!0)],ah(this,null,tR,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,tF),ah(null,null,tN,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},tH,tj),ah(null,null,tD,{kind:"field",name:"_handleAutocomplete",static:!1,private:!1,access:{has:e=>"_handleAutocomplete"in e,get:e=>e._handleAutocomplete,set:(e,t)=>{e._handleAutocomplete=t}},metadata:e},tz,tU),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#I=au(this,tF);#eR=ax(()=>this.#I.shadowRoot,"#input");_handleValue(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#eR();t.value!==e&&(t.value=e)}_handleDisabled=au(this,tH,aV(this.#eR,"disabled",e=>null!==e?"":null));_handleAutocomplete=(au(this,tj),au(this,tz,aV(this.#eR,"autocomplete")));constructor(e){au(this,tU),this.#I=e}}),(tc=[],th=[],tu=[],tm=[],tp=[],tb=[],tv=[],tg=[],tf=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ta=[a_("confirm-type",!0)],ts=[a_("maxlength",!0)],tr=[a_("readonly",!0)],to=[a_("type",!0)],td=[a_("ios-spell-check",!0),a_("spell-check",!0)],ah(this,null,to,{kind:"method",name:"_handleType",static:!1,private:!1,access:{has:e=>"_handleType"in e,get:e=>e._handleType},metadata:e},null,tc),ah(null,null,ta,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},th,tu),ah(null,null,ts,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},tm,tp),ah(null,null,tr,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},tb,tv),ah(null,null,td,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},tg,tf),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#I=au(this,tc);#eR=ax(()=>this.#I.shadowRoot,"#input");_handlerConfirmType=au(this,th,aV(this.#eR,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(au(this,tu),au(this,tm,aV(this.#eR,"maxlength",e=>null===e?"140":e)));_handleReadonly=(au(this,tp),au(this,tb,aV(this.#eR,"readonly",e=>null!==e?"":null)));#eN=(au(this,tv),aV(this.#eR,"type"));#eD=aV(this.#eR,"inputmode");_handleType(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#eD(t),this.#eN(n)}_handleSpellCheck=au(this,tg,aV(this.#eR,"spellcheck",e=>null===e?"false":"true"));constructor(e){au(this,tf),this.#I=e}}),(tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tW=[a_("input-filter",!0),ay("lynxinput")],tV=[a_("send-composing-input",!0)],t$=[ay("selection")],ah(this,null,tW,{kind:"method",name:"_handleEnableInputEvent",static:!1,private:!1,access:{has:e=>"_handleEnableInputEvent"in e,get:e=>e._handleEnableInputEvent},metadata:e},null,tB),ah(this,null,tV,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,tB),ah(this,null,t$,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=au(this,tB);#eF=!1;#eR=ax(()=>this.#I.shadowRoot,"#input");#eH=ax(()=>this.#I.shadowRoot,"#form");_handleEnableInputEvent(e){let t=this.#eR();e?(t.addEventListener("input",this.#ej,{passive:!0}),t.addEventListener("compositionend",this.#ez,{passive:!0})):(t.removeEventListener("input",this.#ej),t.removeEventListener("compositionend",this.#ez))}_handleSendComposingInput(e){this.#eF=null!==e}#eU=e=>{let t=a8[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...ag,detail:{value:this.#eR().value}}))};#ej=e=>{let t=this.#eR(),n=this.#I.getAttribute("input-filter"),i=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=i,(!l||this.#eF)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...ag,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#ez=()=>{let e=this.#eR(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#eF||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...ag,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#eR().addEventListener("select",this.#eW,{passive:!0}):this.#eR().removeEventListener("select",this.#eW)}#eW=()=>{let e=this.#eR();this.#I.dispatchEvent(new CustomEvent("selection",{...ag,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eV=e=>{e.target===this.#eR()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#eR(),n=this.#eH();t.addEventListener("blur",this.#eU,{passive:!0}),t.addEventListener("focus",this.#eU,{passive:!0}),n.addEventListener("submit",this.#eU,{passive:!0}),n.addEventListener("input",this.#eV,{passive:!0})}})],aD)],tG=[],tJ=HTMLElement,(class extends tJ{static{tq=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tJ[Symbol.metadata]??null):void 0;ah(null,tX={value:tq},tY,{kind:"class",name:tq.name,metadata:e},null,tG),tq=tX.value,e&&Object.defineProperty(tq,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(tq,tG)}#e$=ax(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#e$(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#e$();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#e$();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#e$();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#e$().setAttribute("pattern",e.pattern)}select(){let e=this.#e$();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#e$().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#e$().focus(e)}blur(){this.#e$().blur()}connectedCallback(){let e=this.#e$();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),t2=[av("x-overlay-ng",[aS,(tZ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tK=[a_("events-pass-through",!0)],tQ=[a_("visible",!1)],ah(this,null,tK,{kind:"method",name:"_handleEventsPassThrough",static:!1,private:!1,access:{has:e=>"_handleEventsPassThrough"in e,get:e=>e._handleEventsPassThrough},metadata:e},null,tZ),ah(this,null,tQ,{kind:"method",name:"_handleVisible",static:!1,private:!1,access:{has:e=>"_handleVisible"in e,get:e=>e._handleVisible},metadata:e},null,tZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#I=au(this,tZ);#eB=!!window.HTMLDialogElement;#eX=!1;constructor(e){this.#I=e}#eq=ax(()=>this.#I.shadowRoot,"#dialog");_handleEventsPassThrough(e){null!==e?(this.#eq().addEventListener("click",this.#eY,{passive:!1}),this.#I.addEventListener("click",this.#eY,{passive:!1})):(this.#eq().removeEventListener("click",this.#eY),this.#I.removeEventListener("click",this.#eY))}_handleVisible(e){this.#eX=null!==e,this.#eB&&(this.#eX?(this.#eq().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",ag))):(this.#eq().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",ag))))}#eY=e=>{e.stopPropagation();let t=this.#eq();if(e.target===this.#I||e.target===t){t.close();let{clientX:n,clientY:i}=e,l=document.elementFromPoint(n,i);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,i)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#eX&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#eB||(this.#eq().style.display="none")}})],aH)],t4=[],t3=HTMLElement,class extends t3{static{t1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t3[Symbol.metadata]??null):void 0;ah(null,t0={value:t1},t2,{kind:"class",name:t1.name,metadata:e},null,t4),t1=t0.value,e&&Object.defineProperty(t1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(t1,t4)}get[aE](){return this.shadowRoot.firstElementChild}};class a6 extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(a6.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class a9{#I;static observedAttributes=[];#eG;constructor(e){this.#I=e}connectedCallback(){if(IntersectionObserver&&!this.#eG){let e=this.#I.parentElement;e&&(this.#eG=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#I.dispatchEvent(new a6(t,n)),n&&this.#I.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#eG.observe(this.#I))}}dispose(){this.#eG&&(this.#eG.disconnect(),this.#eG=void 0)}}function a5(e,t,n,i){let l=!1;return function(a){if(a!==l){let s=e.call(this);a?(ab(()=>s.addEventListener(t,n,i)),l=!0):(ab(()=>s.removeEventListener(t,n)),l=!1)}}}t9=[av("x-refresh-footer",[aS,a9])],t5=[],t7=HTMLElement,(class extends t7{static{t6=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t7[Symbol.metadata]??null):void 0;ah(null,t8={value:t6},t9,{kind:"class",name:t6.name,metadata:e},null,t5),t6=t8.value,e&&Object.defineProperty(t6,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(t6,t5)}connectedCallback(){this.setAttribute("slot","footer")}}),nn=[av("x-refresh-header",[aS,a9])],ni=[],nl=HTMLElement,(class extends nl{static{nt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nl[Symbol.metadata]??null):void 0;ah(null,ne={value:nt},nn,{kind:"class",name:nt.name,metadata:e},null,ni),nt=ne.value,e&&Object.defineProperty(nt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(nt,ni)}connectedCallback(){this.setAttribute("slot","header")}}),nc=[av("x-refresh-view",[aS,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[ay("headeroffset"),ay("headershow"),ay("footeroffset")],ns=[ay("startrefresh"),ay("headerreleased"),ay("startloadmore"),ay("footerreleased")],ah(this,null,na,{kind:"method",name:"_handleComplexEventEnableAttributes",static:!1,private:!1,access:{has:e=>"_handleComplexEventEnableAttributes"in e,get:e=>e._handleComplexEventEnableAttributes},metadata:e},null,nr),ah(this,null,ns,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=au(this,nr);static observedAttributes=[];#eJ=ax(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#eK=ax(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(a6.EventName,this.#eQ)}#eZ={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};_handleComplexEventEnableAttributes(e,t){this.#eZ[t]=e;let{headeroffset:n,headershow:i,footeroffset:l}=this.#eZ;n||i||l?this.#e0():this.#e1()}_handleXEnableHeaderOffsetEvent(e,t){this.#eZ[t]=e;let{startrefresh:n,headerreleased:i,startloadmore:l,footerreleased:a}=this.#eZ;i||a||l||n?this.#e2():this.#e4()}#e3=!1;#e8=!1;#e6=!1;#e9=!1;#eQ=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#e3=e.startShowing,this.#e8=e.fullyShowing):(this.#e6=e.startShowing,this.#e9=e.fullyShowing)};#e5=!1;#e2(){this.#e5||(this.#I.addEventListener("touchend",this.#e7),this.#e5=!0)}#e7=()=>{this.#e8?(this.#I.dispatchEvent(new CustomEvent("headerreleased",ag)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...ag,detail:{isManual:this.#I._nextRefreshIsManual}})),this.#I._nextRefreshIsManual=!0):("true"===this.#I.getAttribute("enable-auto-loadmore")&&this.#e6||this.#e9)&&(this.#I.dispatchEvent(new CustomEvent("footerreleased",ag)),this.#I.dispatchEvent(new CustomEvent("startloadmore",ag)))};#e4(){this.#e5&&this.#I.removeEventListener("touchend",this.#e7)}#te=!1;#tt=!1;#e0(){this.#tt||(this.#I.addEventListener("touchstart",this.#tn),this.#I.addEventListener("touchend",this.#ti),this.#I.addEventListener("touchcancel",this.#ti),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#V))}#ti=()=>{this.#te=!1};#tn=()=>{this.#te=!0};#V=()=>{if(this.#e3&&(this.#eZ.headershow||this.#eZ.headeroffset)){let e=this.#eJ();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#I.shadowRoot.querySelector("#container").scrollTop;this.#I.dispatchEvent(new CustomEvent("headershow",{...ag,detail:{isDragging:this.#te,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...ag,detail:{isDragging:this.#te,offsetPercent:1-n/t}}))}}else if(this.#e6&&this.#eZ.footeroffset){let e=this.#eK();if(e){let t=this.#I.shadowRoot.querySelector("#container").scrollTop,n=parseFloat(getComputedStyle(e).height);this.#I.dispatchEvent(new CustomEvent("footeroffset",{...ag,detail:{isDragging:this.#te,offsetPercent:1-t/n}}))}}};#e1(){this.#tt&&(this.#I.removeEventListener("touchstart",this.#tn),this.#I.removeEventListener("touchend",this.#ti),this.#I.removeEventListener("touchcancel",this.#ti),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#V))}dispose(){this.#e4(),this.#e1()}})],aj)],nh=[],nu=HTMLElement,(class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;ah(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#tl=ax(()=>this.shadowRoot,"#container");#ta=ax(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tl(),t=this.#ta();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tl(),n=this.#ta();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#ta().scrollHeight}get[aA](){return this}static{au(nd,nh)}}),ny=[av("x-svg",[aS,(nv=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nm=[a_("src",!0)],np=[a_("content",!0)],nb=[ay("load")],ah(this,null,nm,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,nv),ah(this,null,np,{kind:"method",name:"_handleContent",static:!1,private:!1,access:{has:e=>"_handleContent"in e,get:e=>e._handleContent},metadata:e},null,nv),ah(this,null,nb,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,nv),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#I=au(this,nv);#n=null;#ek=ax(()=>this.#I.shadowRoot,"#img");_handleSrc(e){e?this.#ek().src=e:this.#ek().src=""}_handleContent(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#ek().src=n}_enableLoadEvent(e){e?this.#ek().addEventListener("load",this.#eP,{passive:!0}):this.#ek().removeEventListener("load",this.#eP)}#eP=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...ag,detail:{width:this.#ek().naturalWidth,height:this.#ek().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nE=[],nS=HTMLElement,(class extends nS{static{nf=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nS[Symbol.metadata]??null):void 0;ah(null,ng={value:nf},ny,{kind:"class",name:nf.name,metadata:e},null,nE),nf=ng.value,e&&Object.defineProperty(nf,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(nf,nE)}}),nx=[av("x-swiper-item",[aS])],nT=[],nC=HTMLElement,(class extends nC{static{nw=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nC[Symbol.metadata]??null):void 0;ah(null,n_={value:nw},nx,{kind:"class",name:nw.name,metadata:e},null,nT),nw=n_.value,e&&Object.defineProperty(nw,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(nw,nT)}}),n0=[av("x-swiper",[aS,(nW=[],nV=[],n$=[],nB=[],nX=[],nq=[],nY=[],nG=[],nJ=[],nK=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nF=[a_("indicator-color",!0)],nH=[a_("indicator-active-color",!0)],nj=[a_("page-margin",!0)],nz=[a_("previous-margin",!0)],nU=[a_("next-margin",!0)],ah(null,null,nF,{kind:"field",name:"_handleIndicatorColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorColor"in e,get:e=>e._handleIndicatorColor,set:(e,t)=>{e._handleIndicatorColor=t}},metadata:e},nW,nV),ah(null,null,nH,{kind:"field",name:"_handleIndicatorActiveColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorActiveColor"in e,get:e=>e._handleIndicatorActiveColor,set:(e,t)=>{e._handleIndicatorActiveColor=t}},metadata:e},n$,nB),ah(null,null,nj,{kind:"field",name:"_handlePageMargin",static:!1,private:!1,access:{has:e=>"_handlePageMargin"in e,get:e=>e._handlePageMargin,set:(e,t)=>{e._handlePageMargin=t}},metadata:e},nX,nq),ah(null,null,nz,{kind:"field",name:"_handlePreviousMargin",static:!1,private:!1,access:{has:e=>"_handlePreviousMargin"in e,get:e=>e._handlePreviousMargin,set:(e,t)=>{e._handlePreviousMargin=t}},metadata:e},nY,nG),ah(null,null,nU,{kind:"field",name:"_handleNextMargin",static:!1,private:!1,access:{has:e=>"_handleNextMargin"in e,get:e=>e._handleNextMargin,set:(e,t)=>{e._handleNextMargin=t}},metadata:e},nJ,nK),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#I;#ts=0;#tr=ax(()=>this.#I.shadowRoot,"#indicator-container");#to=ax(()=>this.#I.shadowRoot,"#indicator-style");#td;constructor(e){au(this,nK),this.#I=e}_handleIndicatorColor=au(this,nW,aT(this.#tr,"--indicator-color",void 0,!0));_handleIndicatorActiveColor=(au(this,nV),au(this,n$,aT(this.#tr,"--indicator-active-color",void 0,!0)));_handlePageMargin=(au(this,nB),au(this,nX,aT(this.#tr,"--page-margin",void 0,!0)));_handlePreviousMargin=(au(this,nq),au(this,nY,aT(this.#tr,"--previous-margin",void 0,!0)));_handleNextMargin=(au(this,nG),au(this,nJ,aT(this.#tr,"--next-margin",void 0,!0)));#tc(){let e=this.#I.childElementCount;if(e!==this.#ts){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#tr().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#I.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#to().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#ts=e}connectedCallback(){this.#tc(),this.#td=new MutationObserver(this.#tc.bind(this)),this.#td.observe(this.#I,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#I.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#I.childElementCount,i=this.#tr();for(let e=0;e<n;e++){let n=i.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),ab(()=>{this.#tr().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#td?.disconnect(),this.#td=void 0}}),(nI=[],nL=[],nk=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nO=[ay("transition")],ah(this,null,[ay("scrollstart"),ay("lynxscrollend"),ay("change"),ay("change-event-for-indicator")],{kind:"method",name:"_enableScrollEventProcessor",static:!1,private:!1,access:{has:e=>"_enableScrollEventProcessor"in e,get:e=>e._enableScrollEventProcessor},metadata:e},null,nI),ah(null,null,nO,{kind:"field",name:"_handleEnableTransitionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableTransitionEvent"in e,get:e=>e._handleEnableTransitionEvent,set:(e,t)=>{e._handleEnableTransitionEvent=t}},metadata:e},nL,nk),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=au(this,nI);#th=0;#tu=0;#te=!1;#M;#tm=!1;constructor(e){this.#I=e}#ta=ax(()=>this.#I.shadowRoot,"#content").bind(this);_handleEnableTransitionEvent=au(this,nL,a5(this.#ta,"scroll",this.#tp,{passive:!0}));#V(){aL||(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#tm||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...ag,detail:{current:this.#th,isDragged:this.#te}})),this.#tm=!0);let e=this.#ta(),t=this.#I.isVertical,n=t?e.scrollTop:e.scrollLeft,i=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#tu-n)>i/4||n<10||Math.abs(n-l)<=i){let e=this.#I.currentIndex;e!==this.#th&&(this.#I.dispatchEvent(new CustomEvent("change",{...ag,detail:{current:e,isDragged:this.#te}})),this.#th=e),this.#tu=n}}#B(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...ag,detail:{current:this.#th}})),this.#tm=!1}#tb(){this.#te=!0}#tv(){this.#te=!1}#tp(){this.#I.dispatchEvent(new CustomEvent("transition",{...ag,detail:{dx:this.#ta().scrollLeft,dy:this.#ta().scrollTop}}))}#tg=(au(this,nk),[a5(this.#ta,"scroll",this.#V.bind(this),{passive:!0}),a5(this.#ta,"touchstart",this.#tb.bind(this),{passive:!0}),a5(this.#ta,"touchend",this.#tv.bind(this),{passive:!0}),a5(this.#ta,"touchcancel",this.#tv.bind(this),{passive:!0}),a5(this.#ta,"scrollend",this.#B.bind(this),{passive:!0})]);#eZ={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};_enableScrollEventProcessor(e,t){this.#eZ[t]=e;let{lynxscrollend:n,scrollstart:i,change:l}=this.#eZ,a=l||n||i||this.#eZ["change-event-for-indicator"];this.#tg.forEach(e=>e(a))}connectedCallback(){this.#th=parseFloat(this.#I.getAttribute("current")??"0");let e=this.#I.isVertical;this.#tu=e?this.#ta().scrollTop:this.#ta().scrollLeft}}),(nD=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nR=[a_("circular",!1)],nN=[a_("vertical",!0)],ah(this,null,nR,{kind:"method",name:"_handleCircular",static:!1,private:!1,access:{has:e=>"_handleCircular"in e,get:e=>e._handleCircular},metadata:e},null,nD),ah(this,null,nN,{kind:"method",name:"_handleVerticalChange",static:!1,private:!1,access:{has:e=>"_handleVerticalChange"in e,get:e=>e._handleVerticalChange},metadata:e},null,nD),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#I=au(this,nD);#tf=!1;#ty;#tE=0;#ta=ax(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#tS=ax(()=>this.#I.shadowRoot,"#circular-start").bind(this);#t_=ax(()=>this.#I.shadowRoot,"#circular-end").bind(this);#tw(e){let t=this.#I.childElementCount;if(t>2){let{current:n,isDragged:i,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,a=this.#ta(),s=this.#tS().assignedElements(),r=this.#t_().assignedElements(),o=this.#I.firstElementChild,d=this.#I.lastElementChild,c=this.#I.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#I.children[n]),this.#tf){let t="carousel"===this.#I.getAttribute("mode")?.8*a.clientHeight/2:a.clientHeight/2;this.#tE=e.offsetTop+e.offsetHeight/2-c-t,a.scrollTop=this.#tE}else{let t="carousel"===this.#I.getAttribute("mode")?.8*a.clientWidth/2:a.clientWidth/2;this.#tE=e.offsetLeft+e.offsetWidth/2-c-t,a.scrollLeft=this.#tE}if(!i){let e=this.#I.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#tx(l?"instant":"smooth")}}}}#tx(e){let t=this.#ta(),n=this.#I.snapDistance;t.scrollBy({top:this.#tf?n:0,left:this.#tf?0:n,behavior:e??"smooth"})}#tg=[a5(()=>this.#I,"change",this.#tw.bind(this),{passive:!0}),a5(()=>this.#I,"touchmove",this.#tT.bind(this),{passive:!1}),a5(()=>this.#I,"touchend",this.#tC.bind(this),{passive:!1}),a5(()=>this.#I,"touchcancel",this.#tC.bind(this),{passive:!1})];_handleCircular(e){this.#tg.forEach(t=>t(null!=e)),null!==e&&this.#tw({detail:{current:this.#I.currentIndex,isDragged:!1,__isFirstLayout:!0}})}#tT(e){let t=e.touches.item(0);if(t){let e=this.#tf?t.pageY:t.pageX;if(void 0!==this.#ty){this.#tO();let t=this.#ty-e;this.#tE+=t}this.#ty=e}}#tC(e){this.#tI(),this.#tx(),this.#ty=void 0}_handleVerticalChange(e){this.#tf=null!==e}#tL;#tO(){if(!this.#tL){let e=this.#ta();this.#tE=this.#tf?e.scrollTop:e.scrollLeft,this.#tL=setInterval(()=>{this.#tf?e.scrollTop=this.#tE:e.scrollLeft=this.#tE},10)}}#tI(){this.#tL&&(clearInterval(this.#tL),this.#tL=void 0)}dispose(){this.#tI()}}),(nM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nA=[a_("current",!1)],nP=[a_("interval",!1),a_("autoplay",!1)],ah(this,null,nA,{kind:"method",name:"_handleCurrentChange",static:!1,private:!1,access:{has:e=>"_handleCurrentChange"in e,get:e=>e._handleCurrentChange},metadata:e},null,nM),ah(this,null,nP,{kind:"method",name:"_handleAutoplay",static:!1,private:!1,access:{has:e=>"_handleAutoplay"in e,get:e=>e._handleAutoplay},metadata:e},null,nM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=au(this,nM);constructor(e){this.#I=e}#tk(){this.#I.currentIndex===this.#I.childElementCount-1?this.#I.circularPlay&&(this.#I.currentIndex=0):this.#I.currentIndex+=1}_handleCurrentChange(e){let t=Number(e);Number.isNaN(t)||(this.#I.currentIndex=t)}#tA;#tP=(()=>{this.#tk()}).bind(this);#tM(e){this.#tR(),this.#tA=setInterval(this.#tP,e)}#tR(){this.#tA&&clearInterval(this.#tA)}_handleAutoplay(){if(null!==this.#I.getAttribute("autoplay")){let e=this.#I.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#tM(t)}}dispose(){this.#tR()}})],az)],n1=[],n2=HTMLElement,(class extends n2{static{nZ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n2[Symbol.metadata]??null):void 0;ah(null,nQ={value:nZ},n0,{kind:"class",name:nZ.name,metadata:e},null,n1),nZ=nQ.value,e&&Object.defineProperty(nZ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#ta=ax(()=>this.shadowRoot,"#content").bind(this);#tN(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let i=this.#ta(),l=this.isVertical,a=this.childElementCount,s=l?i.scrollTop:i.scrollLeft,r=l?i.clientHeight:i.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let i=0;i<a;i++){let a=this.children[i];if(a){let s=(l?a.offsetTop:a.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=i,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#tN().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#tD(e,t?"smooth":"instant")}#tD(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,i=0;i="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#ta().scrollTo({left:e?0:i,top:e?i:0,behavior:t})}}get snapDistance(){return this.#tN().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#tD(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#tD(Number(e),"instant")}get[aA](){return this}static{au(nZ,n1)}}),n6=[av("inline-image",[(n4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah(this,null,[a_("src",!0)],{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,n4),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#I=au(this,n4);constructor(e){this.#I=e}#tF=ax(()=>this.#I.shadowRoot,"#img");_handleSrc(e){e?this.#tF().setAttribute("src",e):this.#tF().removeAttribute("src")}})],aN({}))],n9=[],n5=HTMLElement,(class extends n5{static{n8=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n5[Symbol.metadata]??null):void 0;ah(null,n3={value:n8},n6,{kind:"class",name:n8.name,metadata:e},null,n9),n8=n3.value,e&&Object.defineProperty(n8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(n8,n9)}}),it=[av("inline-text",[])],ii=[],il=HTMLElement,(class extends il{static{ie=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(il[Symbol.metadata]??null):void 0;ah(null,n7={value:ie},it,{kind:"class",name:ie.name,metadata:e},null,ii),ie=n7.value,e&&Object.defineProperty(ie,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(ie,ii)}}),ir=[av("inline-truncation",[])],io=[],id=HTMLElement,n=class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;ah(null,ia={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),n=is=ia.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{au(is,io)}},n=is;let a7=(ic=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah(this,null,[a_("text",!0)],{kind:"method",name:"_handleText",static:!1,private:!1,access:{has:e=>"_handleText"in e,get:e=>e._handleText},metadata:e},null,ic),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=au(this,ic);#tH;constructor(e){this.#I=e}_handleText(e){this.#tH?.remove(),e&&(this.#tH=new Text(e),this.#I.append(this.#tH))}});im=[av("raw-text",[a7])],ip=[],ib=HTMLElement,class extends ib{static{iu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ib[Symbol.metadata]??null):void 0;ah(null,ih={value:iu},im,{kind:"class",name:iu.name,metadata:e},null,ip),iu=ih.value,e&&Object.defineProperty(iu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(iu,ip)}};let se=(iy=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iv=[a_("text-maxlength",!0),a_("text-maxline",!0),a_("tail-color-convert",!0)],ig=[ay("layout")],ah(this,null,iv,{kind:"method",name:"_handleAttributeChange",static:!1,private:!1,access:{has:e=>"_handleAttributeChange"in e,get:e=>e._handleAttributeChange},metadata:e},null,iy),ah(this,null,ig,{kind:"method",name:"_handleEnableLayoutEvent",static:!1,private:!1,access:{has:e=>"_handleEnableLayoutEvent"in e,get:e=>e._handleEnableLayoutEvent},metadata:e},null,iy),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#tj=(au(this,iy),!1);#tz=!1;#tU=new Map;#tW;#k;#tV;#t$;#tB=!1;#tX=NaN;#tq=NaN;#tY=!0;#tG=!1;get #tJ(){return!this.#tK&&!this.#tY}get #tK(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#I.matches(":has(inline-truncation)");{let e=this.#I.querySelector("inline-truncation");if(e?.parentElement===this.#I)return!0}return!1}get #tQ(){return!isNaN(this.#tq)&&(this.#tK||!this.#tY)}#I;constructor(e){this.#I=e}#tZ=ax(()=>this.#I.shadowRoot,"#inner-box");#t0(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#tU.delete(e)}),"characterData"===e.type&&void 0!==this.#tU.get(e.target)&&this.#tU.set(e.target,e.target.data)})}#t1(){for(let[t,n]of this.#tU)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#I.removeAttribute(e.exceedMathLengthAttribute),this.#I.removeAttribute(e.showInlineTruncation)}#t2(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#t4(){!this.#tz||this.#I.matches("x-text>x-text")||this.#tj||(this.#tj=!0,ab(async()=>{await this.#t3(),this.#t8(),this.#tj=!1}))}async #t3(){if(this.#tV?.parentElement?.removeChild(this.#tV),this.#t1(),!this.#tQ&&isNaN(this.#tX))return;await document.fonts.ready;let t=this.#tZ().getBoundingClientRect();this.#t$=new st(this.#I,t);let n=this.#t$,i=(isNaN(this.#tX)?void 0:n.getNodeInfoByCharIndex(this.#tX))?this.#tX:1/0,l=this.#tQ&&n.getLineInfo(this.#tq)?n.getLineInfo(this.#tq-1):void 0,a=1/0,s=3;if(l){let{start:i,end:r}=l,o=r-i;if(this.#tK){this.#I.setAttribute(e.showInlineTruncation,"");let l=this.#I.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){a=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(a),i=r-t.start;for(e.setEnd(t.node,i),e.setStart(t.node,i);e.getBoundingClientRect().width<o&&(a-=1)&&(t=n.getNodeInfoByCharIndex(a));)e.setStart(t.node,a-t.start)}else a=i,this.#I.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,a=i):a=r-3}let r=Math.min(i,a);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let i=r-t.start,l=t.node,a=[];l.nodeType===Node.TEXT_NODE?(this.#tU.set(l,l.data),l.data=l.data.substring(0,i)):a.push(l),a=a.concat(this.#t2(l));let o=l.parentElement;for(;o!==this.#I;)a=a.concat(this.#t2(o)),o=o.parentElement;if(a.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#tU.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#tU.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#tJ){let e=(0===i?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#tV=new Text(Array(s).fill(".").join("")),e.append(this.#tV)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#t6(r)}}#t9=e=>{this.#t0(e),this.#t4()};#t5=()=>{if(this.#tB){this.#tB=!1;return}this.#t4()};#t8(){this.#tz&&((this.#tX||this.#tq)&&!this.#tW&&(this.#tW=new MutationObserver(this.#t9),this.#tW.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#tq&&!this.#k&&(this.#k=new ResizeObserver(this.#t5),this.#tB=!0,this.#k.observe(this.#tZ(),{box:"content-box"})))}#t7(){this.#tW?.disconnect(),this.#tW=void 0,this.#k?.disconnect(),this.#k=void 0}_handleAttributeChange(){this.#tX=parseFloat(this.#I.getAttribute("text-maxlength")??""),this.#tq=parseFloat(this.#I.getAttribute("text-maxline")??""),this.#tY="false"!==this.#I.getAttribute("tail-color-convert"),this.#tX<0&&(this.#tX=NaN),this.#tq<1&&(this.#tq=NaN),isNaN(this.#tq)?this.#tZ().style.removeProperty("-webkit-line-clamp"):this.#tZ().style.webkitLineClamp=this.#tq.toString(),this.#t4()}_handleEnableLayoutEvent(e){this.#tG=e}#t6(e){if(!this.#tG)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#t$||(t.#t$=new st(t.#I,t.#I.getBoundingClientRect())),t.#t$.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let i=parseFloat(n.toString());if(!isNaN(i)){t.#t$||(t.#t$=new st(t.#I,t.#I.getBoundingClientRect()));let n=t.#t$.getLineInfo(i);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#I.dispatchEvent(new CustomEvent("layout",{...ag,detail:t}))}dispose(){this.#t7()}connectedCallback(){this.#tz=!0,this._handleEnableLayoutEvent(this.#tG),this._handleAttributeChange(),ab(()=>{this.#t6()})}});class st{#ne=[{start:0}];#nt=[];#nn=[];#I;#ni;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sn(this.#I),this.#ni=t}#nl(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,i=e.node,l=document.createRange();l.selectNode(i);for(let e=0;e<i.data.length;e++){l.setEnd(i,e);let a=l.getClientRects().item(n);if(a&&a.right===t.right)return e}return i.data.length}}#na(e){if(this.#nt[e])return;let{left:t}=this.#ni,n=this.#nt[this.#nt.length-1],i=n?.[n.length-1],l=i?.nodeIndex?i?.nodeIndex+1:0;for(let n=l,i;(i=this.#ns(n))&&e>=this.#nt.length;n++){let e,{node:n}=i;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#nt[this.#nt.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#nt.push([{...i,rect:l,rectIndex:0}]):n.push({...i,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let a=e[n];(a.left!==l.left||a.bottom!==l.bottom)&&(.2>Math.abs(a.left-t)?this.#nt.push([{...i,rect:a,rectIndex:n}]):this.#nt[this.#nt.length-1].push({...i,rect:a,rectIndex:n}))}}}}getLineCount(){return this.#na(1/0),this.#nt.length}getLineInfo(e){if(this.#na(e+1),e<this.#nt.length){let t=e>0?this.#ne[e-1]??{}:void 0,n=this.#ne[e]??{},i=e<this.#nt.length-1?this.#ne[e+1]??{}:void 0;if(void 0===n.start){let i=this.#nt[e-1],l=i[i.length-1],a=this.#nl(l),s=l.start+a;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#nt[e],l=t[t.length-1];if(e===this.#nt.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#nl(l);n.end=l.start+e,i.start=n.end+1}}return n}}#ns(e){let t=this.#nn.length-1,n=this.#nn[t],i=n?n.start+n.length:0;for(let t=this.#nn.length,n;(n=this.nodelist.at(t))&&e>=this.#nn.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:i,nodeIndex:t};this.#nn.push(l)}return this.#nn[e]}getNodeInfoByCharIndex(e){let t,n=0,i=this.#nn.length-1;for(;n<=i;){let l=Math.floor((n+i)/2),a=this.#nn[l],s=a.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=a.start;if(e>=o&&e<o+r){t=a;break}e<o?i=l-1:n=l+1}if(t)return t;for(let t=this.#nn.length,n;n=this.#ns(t);t++)if(e<n.start+n.length)return n}}class sn{#nr=[];#no;constructor(e){this.#no=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#nr[e]||this.#nd(e),this.#nr[e]}#nd(e){let t=null;for(;e>=this.#nr.length&&(t=this.#no.nextNode());){this.#nr.push(t);break}}}i_=[av("x-text",[aS,se,a7],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],iw=[],ix=HTMLElement,(class extends ix{static{iS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ix[Symbol.metadata]??null):void 0;ah(null,iE={value:iS},i_,{kind:"class",name:iS.name,metadata:e},null,iw),iS=iE.value,e&&Object.defineProperty(iS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aM.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aE]=this;static{au(iS,iw)}}),ld=[av("x-textarea",[aS,(ik=[],iA=[],iP=[],iM=[],iR=[],iN=[],iD=[],iF=[],iH=[],ij=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iT=[a_("placeholder-color",!0)],iC=[a_("placeholder-font-size",!0)],iO=[a_("placeholder-font-weight",!0)],iI=[a_("placeholder-font-family",!0)],iL=[a_("placeholder",!0)],ah(null,null,iT,{kind:"field",name:"_updatePlaceholderColor",static:!1,private:!1,access:{has:e=>"_updatePlaceholderColor"in e,get:e=>e._updatePlaceholderColor,set:(e,t)=>{e._updatePlaceholderColor=t}},metadata:e},ik,iA),ah(null,null,iC,{kind:"field",name:"_updatePlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontSize"in e,get:e=>e._updatePlaceholderFontSize,set:(e,t)=>{e._updatePlaceholderFontSize=t}},metadata:e},iP,iM),ah(null,null,iO,{kind:"field",name:"_updatePlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontWeight"in e,get:e=>e._updatePlaceholderFontWeight,set:(e,t)=>{e._updatePlaceholderFontWeight=t}},metadata:e},iR,iN),ah(null,null,iI,{kind:"field",name:"_updatePlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontFamily"in e,get:e=>e._updatePlaceholderFontFamily,set:(e,t)=>{e._updatePlaceholderFontFamily=t}},metadata:e},iD,iF),ah(null,null,iL,{kind:"field",name:"_handlePlaceholder",static:!1,private:!1,access:{has:e=>"_handlePlaceholder"in e,get:e=>e._handlePlaceholder,set:(e,t)=>{e._handlePlaceholder=t}},metadata:e},iH,ij),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#nc=ax(()=>this.#I.shadowRoot,"#textarea");_updatePlaceholderColor=au(this,ik,aT(this.#nc,"--placeholder-color",void 0,!0));_updatePlaceholderFontSize=(au(this,iA),au(this,iP,aT(this.#nc,"--placeholder-font-size",void 0,!0)));_updatePlaceholderFontWeight=(au(this,iM),au(this,iR,aT(this.#nc,"--placeholder-font-weight",void 0,!0)));_updatePlaceholderFontFamily=(au(this,iN),au(this,iD,aT(this.#nc,"--placeholder-font-family",void 0,!0)));_handlePlaceholder=(au(this,iF),au(this,iH,aV(this.#nc,"placeholder")));#I=au(this,ij);constructor(e){this.#I=e}}),(iB=[],iX=[],iq=[],iY=[],iG=[],iJ=[],iK=[],iQ=[],iZ=[],i0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iz=[a_("confirm-type",!0)],iU=[a_("maxlength",!0)],iW=[a_("readonly",!0)],iV=[a_("ios-spell-check",!0)],i$=[a_("show-soft-input-onfocus",!0)],ah(null,null,iz,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},iB,iX),ah(null,null,iU,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},iq,iY),ah(null,null,iW,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},iG,iJ),ah(null,null,iV,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},iK,iQ),ah(null,null,i$,{kind:"field",name:"_handleShowSoftInputOnfocus",static:!1,private:!1,access:{has:e=>"_handleShowSoftInputOnfocus"in e,get:e=>e._handleShowSoftInputOnfocus,set:(e,t)=>{e._handleShowSoftInputOnfocus=t}},metadata:e},iZ,i0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#I;#nh=ax(()=>this.#I.shadowRoot,"#textarea");_handlerConfirmType=au(this,iB,aV(this.#nh,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(au(this,iX),au(this,iq,aV(this.#nh,"maxlength",e=>null===e?"140":e)));_handleReadonly=(au(this,iY),au(this,iG,aV(this.#nh,"readonly",e=>null!==e?"":null)));_handleSpellCheck=(au(this,iJ),au(this,iK,aV(this.#nh,"spellcheck",e=>null===e?"false":"true")));_handleShowSoftInputOnfocus=(au(this,iQ),au(this,iZ,aV(this.#nh,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){au(this,i0),this.#I=e}}),(i6=[],i9=[],i5=[],i7=[],le=[],lt=[],ln=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1=[a_("confirm-enter",!0)],i2=[a_("disabled",!0)],i4=[a_("max-height",!0)],i3=[a_("min-height",!0)],i8=[a_("value",!1)],ah(this,null,i1,{kind:"method",name:"_handleConfirmEnter",static:!1,private:!1,access:{has:e=>"_handleConfirmEnter"in e,get:e=>e._handleConfirmEnter},metadata:e},null,i6),ah(this,null,i8,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,i6),ah(null,null,i2,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},i9,i5),ah(null,null,i4,{kind:"field",name:"_handleMaxHeight",static:!1,private:!1,access:{has:e=>"_handleMaxHeight"in e,get:e=>e._handleMaxHeight,set:(e,t)=>{e._handleMaxHeight=t}},metadata:e},i7,le),ah(null,null,i3,{kind:"field",name:"_handleMinHeight",static:!1,private:!1,access:{has:e=>"_handleMinHeight"in e,get:e=>e._handleMinHeight,set:(e,t)=>{e._handleMinHeight=t}},metadata:e},lt,ln),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#I=au(this,i6);#nh=ax(()=>this.#I.shadowRoot,"#textarea");#eH=ax(()=>this.#I.shadowRoot,"#form");#nu=!1;_handleConfirmEnter(e){this.#nu=null!==e}_handleDisabled=au(this,i9,aV(this.#nh,"disabled",e=>null!==e?"":null));_handleMaxHeight=(au(this,i5),au(this,i7,aT(this.#nh,"max-height")));_handleMinHeight=(au(this,le),au(this,lt,aT(this.#nh,"min-height")));_handleValue(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#nh();t.value!==e&&(t.value=e)}#nm=(au(this,ln),e=>{this.#nu&&"Enter"===e.key&&this.#eH().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#I=e,this.#nh().addEventListener("keyup",this.#nm)}}),(ls=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;li=[a_("input-filter",!0),ay("lynxinput")],ll=[a_("send-composing-input",!0)],la=[ay("selection")],ah(this,null,li,{kind:"method",name:"_handleEnableConfirmEvent",static:!1,private:!1,access:{has:e=>"_handleEnableConfirmEvent"in e,get:e=>e._handleEnableConfirmEvent},metadata:e},null,ls),ah(this,null,ll,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,ls),ah(this,null,la,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,ls),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=au(this,ls);#eF=!1;#nh=ax(()=>this.#I.shadowRoot,"#textarea");#eH=ax(()=>this.#I.shadowRoot,"#form");_handleEnableConfirmEvent(e){let t=this.#nh();e?(t.addEventListener("input",this.#ej,{passive:!0}),t.addEventListener("compositionend",this.#ez,{passive:!0})):(t.removeEventListener("input",this.#ej),t.removeEventListener("compositionend",this.#ez))}_handleSendComposingInput(e){this.#eF=null!==e}#eU=e=>{let t=a8[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...ag,detail:{value:this.#nh().value}}))};#ej=e=>{let t=this.#nh(),n=this.#I.getAttribute("input-filter"),i=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=i,(!l||this.#eF)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...ag,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#ez=()=>{let e=this.#nh(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#eF||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...ag,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#nh().addEventListener("select",this.#eW,{passive:!0}):this.#nh().removeEventListener("select",this.#eW)}#eW=()=>{let e=this.#nh();this.#I.dispatchEvent(new CustomEvent("selection",{...ag,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eV=e=>{e.target===this.#nh()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#nh(),n=this.#eH();t.addEventListener("blur",this.#eU,{passive:!0}),t.addEventListener("focus",this.#eU,{passive:!0}),n.addEventListener("submit",this.#eU,{passive:!0}),n.addEventListener("input",this.#eV,{passive:!0})}})],aU)],lc=[],lh=HTMLElement,(class extends lh{static{lo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lh[Symbol.metadata]??null):void 0;ah(null,lr={value:lo},ld,{kind:"class",name:lo.name,metadata:e},null,lc),lo=lr.value,e&&Object.defineProperty(lo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(lo,lc)}#nc=ax(()=>this.shadowRoot,"#textarea");get value(){return this.#nc().value}set value(e){this.#nc().value=e}addText(e){let{text:t}=e,n=this.#nc(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}setValue(e){let t,n=this.#nc();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#nc();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#nc();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#nc();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#nc().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lp=[av("x-view",[aS])],lb=[],lv=HTMLElement,(class extends lv{static{lm=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lv[Symbol.metadata]??null):void 0;ah(null,lu={value:lm},lp,{kind:"class",name:lm.name,metadata:e},null,lb),lm=lu.value,e&&Object.defineProperty(lm,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(lm,lb)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aM.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aE]=this}),lE=[av("x-blur-view",[aS,(lg=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah(this,null,[a_("blur-radius",!0)],{kind:"method",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius},metadata:e},null,lg),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=au(this,lg);#np=ax(()=>this.#I.shadowRoot,"#dynamic-style");_handleBlurRadius(e){e?(e=`blur(${parseFloat(e)}px)`,this.#np().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#np().innerHTML=""}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],lS=[],l_=HTMLElement,(class extends l_{static{ly=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l_[Symbol.metadata]??null):void 0;ah(null,lf={value:ly},lE,{kind:"class",name:ly.name,metadata:e},null,lS),ly=lf.value,e&&Object.defineProperty(ly,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(ly,lS)}}),lI=[av("x-viewpager-ng",[aS,(lT=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lw=[ay("change")],lx=[ay("offsetchange")],ah(this,null,lw,{kind:"method",name:"_enableChangeEvent",static:!1,private:!1,access:{has:e=>"_enableChangeEvent"in e,get:e=>e._enableChangeEvent},metadata:e},null,lT),ah(this,null,lx,{kind:"method",name:"_enableOffsetChangeEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetChangeEvent"in e,get:e=>e._enableOffsetChangeEvent},metadata:e},null,lT),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=au(this,lT);#nb=!1;#t=!1;#nv=0;#M;constructor(e){this.#I=e}#D=ax(()=>this.#I.shadowRoot,"#content");#ng=()=>{if(!this.#t)return;let e=this.#D(),t=this.#I.clientWidth,n=e.scrollLeft;this.#nf&&!aL&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#ny()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...ag,detail:{offset:n/t}}))};#ny=()=>{if(this.#t){let e=this.#D(),t=this.#I.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#nv&&(this.#I.dispatchEvent(new CustomEvent("change",{...ag,detail:{index:n,isDragged:this.#nb}})),this.#nv=n)}};#nE=()=>{this.#nb=!0};#nS=()=>{this.#nb=!1};#nf=!1;_enableChangeEvent(e){this.#nf=e,this.#n_()}#nw=!1;_enableOffsetChangeEvent(e){this.#nw=e,this.#n_()}#n_(){let e=this.#D();this.#nw||this.#nf?e.addEventListener("scroll",this.#ng,{passive:!0}):e.removeEventListener("scroll",this.#ng),aL&&this.#nf?e.addEventListener("scrollend",this.#ny,{passive:!0}):e.removeEventListener("scrollend",this.#ny)}connectedCallback(){this.#t=!0;let e=this.#D();this.#I.addEventListener("touchstart",this.#nE,{passive:!0}),e.addEventListener("touchend",this.#nS,{passive:!0}),e.addEventListener("touchcancel",this.#nS,{passive:!0})}dispose(){let e=this.#D();e.removeEventListener("scroll",this.#ng),e.removeEventListener("scrollend",this.#ny)}})],aW)],lL=[],lk=HTMLElement,(class extends lk{static{lO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lk[Symbol.metadata]??null):void 0;ah(null,lC={value:lO},lI,{kind:"class",name:lO.name,metadata:e},null,lL),lO=lC.value,e&&Object.defineProperty(lO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let i=this.shadowRoot.children.item(2),l=i.clientWidth*t;i.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),i=()=>{0===n.clientWidth?requestAnimationFrame(i):this.selectTab({index:t,smooth:!1})};ab(i)}}get[aA](){return this}static{au(lO,lL)}}),lM=[av("x-viewpager-item-ng",[aS])],lR=[],lN=HTMLElement,(class extends lN{static{lP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lN[Symbol.metadata]??null):void 0;ah(null,lA={value:lP},lM,{kind:"class",name:lP.name,metadata:e},null,lR),lP=lA.value,e&&Object.defineProperty(lP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(lP,lR)}}),lz=[av("list-item",[aS,(lD=[],lF=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah(null,null,[a_("estimated-main-axis-size-px",!0)],{kind:"field",name:"_handlerEstimatedMainAxisSizePx",static:!1,private:!1,access:{has:e=>"_handlerEstimatedMainAxisSizePx"in e,get:e=>e._handlerEstimatedMainAxisSizePx,set:(e,t)=>{e._handlerEstimatedMainAxisSizePx=t}},metadata:e},lD,lF),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#I;_handlerEstimatedMainAxisSizePx=au(this,lD,aT(()=>this.#I,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){au(this,lF),this.#I=e}})])],lU=[],lW=HTMLElement,class extends lW{static{lj=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lW[Symbol.metadata]??null):void 0;ah(null,lH={value:lj},lz,{kind:"class",name:lj.name,metadata:e},null,lU),lj=lH.value,e&&Object.defineProperty(lj,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),au(lj,lU)}};let si=function(e,t,n){let i,l,a,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),i=null,s=e.apply(l,a),i||(l=a=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,a=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),r=d,s=e.apply(l,a),i||(l=a=null)):i||n?.trailing===!1||(i=setTimeout(o,c)),s}},sl="waterfall-slot",sa="waterfall-style";ao=[av("x-list",[aS,(lB=[],lX=[],lq=[],lY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lV=[a_("sticky-offset",!0)],l$=[a_("span-count",!0),a_("column-count",!0)],ah(null,null,lV,{kind:"field",name:"_handlerStickyOffset",static:!1,private:!1,access:{has:e=>"_handlerStickyOffset"in e,get:e=>e._handlerStickyOffset,set:(e,t)=>{e._handlerStickyOffset=t}},metadata:e},lB,lX),ah(null,null,l$,{kind:"field",name:"_handlerCount",static:!1,private:!1,access:{has:e=>"_handlerCount"in e,get:e=>e._handlerCount,set:(e,t)=>{e._handlerCount=t}},metadata:e},lq,lY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#I;_handlerStickyOffset=au(this,lB,aT(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));_handlerCount=(au(this,lX),au(this,lq,aT(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){au(this,lY),this.#I=e}connectedCallback(){let e=this.#I.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#I.clientHeight?requestAnimationFrame(n):this.#I.scrollToPosition({position:t})};ab(n)}}}),(l2=[],l4=[],l3=[],l8=[],l6=[],l9=[],l5=[],l7=[],ae=[],at=[],an=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lG=[ay("scrolltoupper")],lJ=[a_("upper-threshold-item-count",!0)],lK=[ay("scrolltolower")],lQ=[a_("lower-threshold-item-count",!0)],lZ=[ay("lynxscroll"),ay("lynxscrollend"),ay("snap")],l0=[ay("scrolltoupperedge")],l1=[ay("scrolltoloweredge")],ah(this,null,lJ,{kind:"method",name:"_handleUpperThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleUpperThresholdItemCountChange"in e,get:e=>e._handleUpperThresholdItemCountChange},metadata:e},null,l2),ah(this,null,lQ,{kind:"method",name:"_handleLowerThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleLowerThresholdItemCountChange"in e,get:e=>e._handleLowerThresholdItemCountChange},metadata:e},null,l2),ah(null,null,lG,{kind:"field",name:"_updateEventSwitches",static:!1,private:!1,access:{has:e=>"_updateEventSwitches"in e,get:e=>e._updateEventSwitches,set:(e,t)=>{e._updateEventSwitches=t}},metadata:e},l4,l3),ah(null,null,lK,{kind:"field",name:"_updateScrollToLowerEventSwitches",static:!1,private:!1,access:{has:e=>"_updateScrollToLowerEventSwitches"in e,get:e=>e._updateScrollToLowerEventSwitches,set:(e,t)=>{e._updateScrollToLowerEventSwitches=t}},metadata:e},l8,l6),ah(null,null,lZ,{kind:"field",name:"_handleScrollEventsSwitches",static:!1,private:!1,access:{has:e=>"_handleScrollEventsSwitches"in e,get:e=>e._handleScrollEventsSwitches,set:(e,t)=>{e._handleScrollEventsSwitches=t}},metadata:e},l9,l5),ah(null,null,l0,{kind:"field",name:"_handleScrollToUpperEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToUpperEdgeEventEnable"in e,get:e=>e._handleScrollToUpperEdgeEventEnable,set:(e,t)=>{e._handleScrollToUpperEdgeEventEnable=t}},metadata:e},l7,ae),ah(null,null,l1,{kind:"field",name:"_handleScrollToLowerEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToLowerEdgeEventEnable"in e,get:e=>e._handleScrollToLowerEdgeEventEnable,set:(e,t)=>{e._handleScrollToLowerEdgeEventEnable=t}},metadata:e},at,an),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#I=au(this,l2);#nx=ax(()=>this.#I.shadowRoot,"#content");#nT;#nC;#nO;#R=0;#N=0;#nI=!1;#M;#F=ax(()=>this.#I.shadowRoot,"#upper-threshold-observer");#H=ax(()=>this.#I.shadowRoot,"#lower-threshold-observer");#z(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l}=this.#nx(),a={scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l,deltaX:n-this.#R,deltaY:t-this.#N,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#R=n,this.#N=t,a}#nL=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...ag,detail:this.#z()}))};_updateEventSwitches=au(this,l4,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#eZ.scrolltoupper=e,e){this.#nT||(this.#nT=new IntersectionObserver(this.#nL,{root:this.#nx()})),this.#nO||(this.#nO=new MutationObserver(this.#nk));let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#I.children[t-1];n&&this.#nT.observe(n),this.#nO.observe(this.#I,{childList:!0})}else this.#nT&&(this.#nT.disconnect(),this.#nT=void 0),this.#nO&&(this.#nO.disconnect(),this.#nO=void 0)});_handleUpperThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#F():this.#I.children[n-1];i&&this.#nT?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#F():this.#I.children[l-1];a&&this.#nT?.observe(a)}#nA=(au(this,l3),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...ag,detail:this.#z()}))});#eZ={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};_updateScrollToLowerEventSwitches=au(this,l8,e=>{if(this.#eZ.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#nC||(this.#nC=new IntersectionObserver(this.#nA,{root:this.#nx()})),this.#nO||(this.#nO=new MutationObserver(this.#nk));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#I.children[this.#I.children.length-t];n&&this.#nC.observe(n),this.#nO.observe(this.#I,{childList:!0})}else this.#nC&&(this.#nC.disconnect(),this.#nC=void 0),this.#nO&&(this.#nO.disconnect(),this.#nO=void 0)});_handleLowerThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#H():this.#I.children[this.#I.children.length-n];i&&this.#nC?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#H():this.#I.children[this.#I.children.length-l];a&&this.#nC?.observe(a)}#nk=(au(this,l6),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#eZ.scrolltolower){this.#nC&&(this.#nC.disconnect(),this.#nC=void 0),this.#nC=new IntersectionObserver(this.#nA,{root:this.#nx()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#I.children[this.#I.children.length-t];n&&this.#nC.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#nT&&(this.#nT.disconnect(),this.#nT=void 0),this.#nT=new IntersectionObserver(this.#nL,{root:this.#nx()});let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#I.children[t-1];n&&this.#nT.observe(n)}}});#nP=null;#V=()=>{this.#nI&&!aL&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...ag,detail:this.#z()}))};_handleScrollEventsSwitches=au(this,l9,(e,t)=>{this.#eZ[t]=e;let{lynxscroll:n,lynxscrollend:i,snap:l}=this.#eZ,a=this.#I.getAttribute("scroll-event-throttle");this.#nI=null!==i||null!==l;let s=this.#nx();if(this.#nP&&s.removeEventListener("scroll",this.#nP),null!==n||this.#nI){let e=null!==a?parseFloat(a):0,t=si(this.#V,e,{leading:!0,trailing:!1});this.#nP=t,s.addEventListener("scroll",this.#nP),this.#R=0,this.#N=0}aL&&this.#nI?s.addEventListener("scrollend",this.#B):s.removeEventListener("scrollend",this.#B)});#j=(au(this,l5),e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...ag,detail:this.#z()})):"lower-threshold-observer"===i&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...ag,detail:this.#z()})))});_handleScrollToUpperEdgeEventEnable=au(this,l7,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#nM(e)});#nM=(au(this,ae),aI(this.#nx,this.#F,this.#j));_handleScrollToLowerEdgeEventEnable=au(this,at,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#nR(e)});#nR=(au(this,an),aI(this.#nx,this.#H,this.#j));#B=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...ag})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#nx().scrollTop,n=this.#nx().scrollLeft,i=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...ag,detail:{position:i&&e.indexOf(i),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(aa=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ai=[ay("scrolltolower")],al=[a_("list-type",!0)],ah(this,null,ai,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,aa),ah(this,null,al,{kind:"method",name:"_handlerListType",static:!1,private:!1,access:{has:e=>"_handlerListType"in e,get:e=>e._handlerListType},metadata:e},null,aa),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=au(this,aa);#nx=ax(()=>this.#I.shadowRoot,"#content");#nN=ax(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#nO;_handleXEnableHeaderOffsetEvent(e){if(e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#nN(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#nx();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}}#nD=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sl}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#nF=()=>{let e=parseFloat(this.#I.getAttribute("span-count")||this.#I.getAttribute("column-count")||"")||1,t="vertical"===(this.#I.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let i=0;i<this.#I.children.length;i++){let l=this.#I.children[i],a=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(a):l.getBoundingClientRect().width+parseFloat(a);if(null!==l.getAttribute("full-span")){let i=n[0];for(let t=1;t<e;t++)n[t]>i&&(i=n[t]);for(let t=0;t<e;t++)n[t]=i+r;t?(l.setAttribute(`${sa}-left`,"0"),l.setAttribute(`${sa}-top`,`${i}px`)):(l.setAttribute(`${sa}-left`,`${i}px`),l.setAttribute(`${sa}-top`,"0"))}else{let i=0,a=n[0];for(let t=1;t<e;t++)n[t]<a&&(i=t,a=n[t]);let o=`calc(${i} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,i)} * ${s})`;t?(l.setAttribute(`${sa}-left`,o),l.setAttribute(`${sa}-top`,`${a}px`)):(l.setAttribute(`${sa}-left`,`${a}px`),l.setAttribute(`${sa}-top`,o)),n[i]+=r}}for(let e=0;e<this.#I.children.length;e++){let t=this.#I.children[e];t.style.setProperty("left",t.getAttribute(`${sa}-left`)),t.style.setProperty("top",t.getAttribute(`${sa}-top`)),t.setAttribute("slot",sl)}};constructor(e){this.#I=e}#nH=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#nF()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};_handlerListType(e){if("waterfall"===e)this.#nD(),this.#k||this.#nH(),this.#nO||(this.#nO=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#nH()}),this.#nO.observe(this.#I,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#nO?.disconnect(),this.#nO=void 0;for(let e=0;e<this.#I.children.length;e++)this.#I.children[e].removeAttribute("slot");this.#I.shadowRoot?.querySelector(`slot[name=${sl}]`)?.remove()}}})],aF)],ad=[],ac=HTMLElement,class extends ac{static{ar=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ac[Symbol.metadata]??null):void 0;ah(null,as={value:ar},ao,{kind:"class",name:ar.name,metadata:e},null,ad),ar=as.value,e&&Object.defineProperty(ar,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#nx=ax(()=>this.shadowRoot,"#content");#nj={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#nz={};get scrollTop(){return this.#nx().scrollTop}set scrollTop(e){this.#nx().scrollTop=e}get scrollLeft(){return this.#nx().scrollTop}set scrollLeft(e){this.#nx().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#nx().scrollTop=0,this.#nx().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#nx().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#nU=e=>{if(!this.#nj.isScrolling)return;if(!this.#nj.lastTimestamp){this.#nj.lastTimestamp=e,requestAnimationFrame(this.#nU);return}let t=this.#nx(),n=(e-this.#nj.lastTimestamp)/1e3*this.#nj.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#nj.lastTimestamp=e;let i="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(i?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#nj.autoStop?(i?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#nj.isScrolling=!1):requestAnimationFrame(this.#nU)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#nj={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#nx(),i="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#nj.lastTimestamp=0,i?setTimeout(()=>requestAnimationFrame(this.#nU),0):requestAnimationFrame(this.#nU)}else this.#nj.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#nz),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#nW=()=>Object.values(this.#nz).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#nV=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",i="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#nW();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...ag,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#nW()}}))},100);return}if(i){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#nz[n]&&delete this.#nz[n]:this.#nz[n]=e.target;return}};connectedCallback(){this.#nx().addEventListener("contentvisibilityautostatechange",this.#nV,{passive:!0})}static{au(ar,ad)}}},7075(e,t,n){n.a(e,async function(e,t){try{var i=n(3493);n(6675),n(6269),n(3463),n(1498);var l=e([i]);i=(l.then?(await l)():l)[0];let d="lynx-web-core-init-data",c="lynx-web-core-global-props",h=document.createElement("lynx-view");document.body.appendChild(h);let u=new URLSearchParams(document.location.search).get("casename");function a(){if(u){let e={};try{let t=localStorage.getItem(d);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(c);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}h.globalProps=t,h.initData=e,h.url=u}}function s(e){localStorage.setItem(d,JSON.stringify(e)),a()}function r(e){localStorage.setItem(c,JSON.stringify(e)),a()}function o(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
|
|
308
308
|
| | \\ \\ / / \\ | \\ \\ / / \\ \\ / / ____| _ \\ | __ \\| | /\\|__ __| ____/ __ \\| __ \\| \\/ |
|
|
309
309
|
| | \\ \\_/ /| \\| |\\ V / \\ \\ /\\ / /| |__ | |_) | | |__) | | / \\ | | | |__ | | | | |__) | \\ / |
|
|
310
310
|
| | \\ / | . \\ | > < \\ \\/ \\/ / | __| | _ < | ___/| | / /\\ \\ | | | __|| | | | _ /| |\\/| |
|
|
311
311
|
| |____| | | |\\ |/ . \\ \\ /\\ / | |____| |_) | | | | |____ / ____ \\| | | | | |__| | | \\ \\| | | |
|
|
312
|
-
|______|_| |_| \\_/_/ \\_\\ \\/ \\/ |______|____/ |_| |______/_/ \\_\\_| |_| \\____/|_| \\_\\_| |_|`),console.table(Object.entries(m).map(([e,t])=>({Method:e+"()",Description:t.description||"No description available"}),["Method","Description"]))}s.description="Set the initData for lynx-view, which will be used when the page loads.",r.description="Set the globalProps for lynx-view, which will be used when the page loads.",o.description="Print all available methods and their descriptions.";let m={setInitData:s,setGlobalProps:r,help:o};Object.assign(globalThis,m),o(),
|
|
312
|
+
|______|_| |_| \\_/_/ \\_\\ \\/ \\/ |______|____/ |_| |______/_/ \\_\\_| |_| \\____/|_| \\_\\_| |_|`),console.table(Object.entries(m).map(([e,t])=>({Method:e+"()",Description:t.description||"No description available"}),["Method","Description"]))}s.description="Set the initData for lynx-view, which will be used when the page loads.",r.description="Set the globalProps for lynx-view, which will be used when the page loads.",o.description="Print all available methods and their descriptions.";let m={setInitData:s,setGlobalProps:r,help:o};Object.assign(globalThis,m),o(),a(),t()}catch(e){t(e)}})}},m={};function p(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={id:e,exports:{}};return u[e](n,n.exports,p),n.exports}p.m=u,t=(e="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",n=p.aE=e?Symbol("rspack exports"):"__webpack_exports__",i=e?Symbol("rspack error"):"__rspack_error",l=e?Symbol("rspack done"):"__rspack_done",a=p.zS=e?Symbol("rspack defer"):"__rspack_defer",s=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},p.a=(e,r,o)=>{o&&((d=[]).d=-1);var d,c,h,u,b=new Set,v=e.exports,g=new Promise((e,t)=>{u=t,h=e});g[n]=v,g[t]=e=>{d&&e(d),b.forEach(e),g.catch(()=>{})},e.exports=g,r(e=>{c=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[t]&&e[a]){var r=e[a];if(!r.some(e=>{var t=m[e];return!t||!1===t[l]}))return e;var o=e;e={then(e){Promise.all(r.map(p)).then(()=>e(o))}}}if(e[t])return e;if(e.then){var d=[];d.d=0,e.then(e=>{c[n]=e,s(d)},e=>{c[i]=e,s(d)});var c={};return c[a]=!1,c[t]=e=>e(d),c}}var h={};return h[t]=()=>{},h[n]=e,h});var r,o=()=>c.map(e=>{if(e[a])return e;if(e[i])throw e[i];return e[n]}),h=new Promise(e=>{(r=()=>e(o)).r=0;var n=e=>e!==d&&!b.has(e)&&(b.add(e),e&&!e.d&&(r.r++,e.push(r)));c.map(e=>e[a]||e[t](n))});return r.r?h:o()},e=>(e?u(g[i]=e):h(v),s(d),g[l]=!0)),d&&d.d<0&&(d.d=0)},p.F={},p.E=e=>{Object.keys(p.F).map(t=>{p.F[t](e)})},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=(e,t)=>Promise.all(Object.keys(p.f).reduce((n,i)=>(p.f[i](e,n,t),n),[])),p.u=e=>"static/js/async/"+({361:"web-core-main-thread-apis",524:"web-core-worker-runtime",8:"legacy-wasm-chunk"})[e]+".js",p.miniCssF=e=>""+e+".css",p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},p.l=function(e,t,n,i,l){if(r[e])return void r[e].push(t);if(void 0!==n)for(var a,s,o=document.getElementsByTagName("script"),d=0;d<o.length;d++){var c=o[d];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@lynx-js/web-rsbuild-server-middleware:"+n){a=c;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,p.nc&&a.setAttribute("nonce",p.nc),a.setAttribute("data-rspack","@lynx-js/web-rsbuild-server-middleware:"+n),l&&a.setAttribute("fetchpriority",l),a.src=e),r[e]=[t];var h=function(t,n){a.onerror=a.onload=null,clearTimeout(u);var i=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),s&&document.head.appendChild(a)},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o=[],p.O=(e,t,n,i)=>{if(t){i=i||0;for(var l=o.length;l>0&&o[l-1][2]>i;l--)o[l]=o[l-1];o[l]=[t,n,i];return}for(var a=1/0,l=0;l<o.length;l++){for(var[t,n,i]=o[l],s=!0,r=0;r<t.length;r++)(!1&i||a>=i)&&Object.keys(p.O).every(e=>p.O[e](t[r]))?t.splice(r--,1):(s=!1,i<a&&(a=i));if(s){o.splice(l--,1);var d=n();void 0!==d&&(e=d)}}return e},p.p="http://lynx-web-core-mocked.localhost/",p.v=function(e,t,n,i){var l=fetch(p.p+"static/wasm/"+n.slice(0,8)+".module.wasm"),a=function(){return l.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 l.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),a();throw e}):a()})},p.b=document.baseURI||self.location.href,d={410:0},p.f.j=function(e,t,n){var i=p.o(d,e)?d[e]:void 0;if(0!==i)if(i)t.push(i[2]);else{var l=new Promise((t,n)=>i=d[e]=[t,n]);t.push(i[2]=l);var a=p.p+p.u(e),s=Error();p.l(a,function(t){if(p.o(d,e)&&(0!==(i=d[e])&&(d[e]=void 0),i)){var n=t&&("load"===t.type?"missing":t.type),l=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+n+": "+l+")",s.name="ChunkLoadError",s.type=n,s.request=l,i[1](s)}},"chunk-"+e,e,n)}},p.F.j=e=>{if(!p.o(d,e)||void 0===d[e]){d[e]=null;var t=document.createElement("link");p.nc&&t.setAttribute("nonce",p.nc),t.rel="prefetch",t.as="script",t.href=p.p+p.u(e),document.head.appendChild(t)}},p.O.j=e=>0===d[e],c=(e,t)=>{var n,i,[l,a,s]=t,r=0;if(l.some(e=>0!==d[e])){for(n in a)p.o(a,n)&&(p.m[n]=a[n]);if(s)var o=s(p)}for(e&&e(t);r<l.length;r++)i=l[r],p.o(d,i)&&d[i]&&d[i][0](),d[i]=0;return p.O(o)},(h=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).forEach(c.bind(null,0)),h.push=c.bind(null,h.push.bind(h)),p.O(0,["410"],()=>{["361"].map(p.E)},5);var b=p(7075);b=p.O(b)})();
|