@lynx-js/web-rsbuild-server-middleware-canary 0.0.0 → 0.17.1-canary-20250924-6411f84c

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 ADDED
@@ -0,0 +1,7 @@
1
+ # @lynx-js/web-rsbuild-server-middleware
2
+
3
+ ## 0.17.1-canary-20250924152242-6411f84c7ea9a2af9fa3744a0f9ed0075b679f6a
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: initial release with current version web platform ([#1807](https://github.com/lynx-family/lynx-stack/pull/1807))
@@ -187,7 +187,7 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright [yyyy] [name of copyright owner]
190
+ Copyright 2023-2024 The Lynx Authors.
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
package/Notice.txt ADDED
@@ -0,0 +1 @@
1
+ Copyright 2023-2024 The Lynx Authors. All rights reserved.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @lynx-js/web-rsbuild-server-middleware
2
+
3
+ A rsbuild dev server middleware for providing mocked Lynx Web Platform installation on dev server.
package/dist/index.js ADDED
@@ -0,0 +1,50 @@
1
+ import node_path from "node:path";
2
+ import node_fs from "node:fs";
3
+ import { fileURLToPath } from "node:url";
4
+ const node_filename = fileURLToPath(import.meta.url);
5
+ const node_dirname = node_path.dirname(node_filename);
6
+ const packageRoot = (()=>{
7
+ let currentDir = node_dirname;
8
+ while(currentDir.length && '/' !== currentDir && false === node_fs.existsSync(node_path.join(currentDir, 'package.json')))currentDir = node_path.dirname(currentDir);
9
+ if (0 === currentDir.length) throw new Error('Cannot find package root');
10
+ return currentDir;
11
+ })();
12
+ const WEB_CORE_DIST = node_path.join(packageRoot, 'www');
13
+ const fileCache = new Map();
14
+ function createWebVirtualFilesMiddleware(subPath) {
15
+ if (subPath.endsWith('/')) subPath = subPath.slice(0, -1);
16
+ return (req, res, next)=>{
17
+ if (req.url) {
18
+ let url = req.url;
19
+ if (url.startsWith('//')) url = url.slice(1);
20
+ if (url.startsWith(subPath)) {
21
+ if (url.includes('?')) url = url.split('?')[0];
22
+ let relativePath = node_path.posix.relative(subPath, url);
23
+ if ('' === relativePath) relativePath = 'index.html';
24
+ try {
25
+ const filePath = node_path.join(WEB_CORE_DIST, ...relativePath.split(node_path.posix.sep));
26
+ const extname = node_path.extname(filePath);
27
+ let fileContent;
28
+ if (fileCache.has(filePath)) fileContent = fileCache.get(filePath);
29
+ else {
30
+ fileContent = '.wasm' === extname ? node_fs.readFileSync(filePath) : node_fs.readFileSync(filePath, 'utf-8');
31
+ if ('string' == typeof fileContent) fileContent = fileContent.replaceAll('http://lynx-web-core-mocked.localhost/', subPath + '/');
32
+ fileCache.set(filePath, fileContent);
33
+ }
34
+ const contextType = '.js' === extname ? "application/javascript; charset=utf-8" : '.css' === extname ? 'text/css; charset=utf-8' : '.html' === extname ? 'text/html; charset=utf-8' : '.wasm' === extname ? 'application/wasm' : '.json' === extname ? 'application/json' : 'text/plain';
35
+ res.setHeader('Content-Length', Buffer.byteLength(fileContent));
36
+ res.setHeader('Content-Type', contextType);
37
+ res.setHeader('Cross-Origin-Opener-Policy', 'same-origin');
38
+ res.setHeader('Cross-Origin-Embedder-Policy', 'require-corp');
39
+ res.statusCode = 200;
40
+ res.end(fileContent);
41
+ return;
42
+ } catch {}
43
+ }
44
+ }
45
+ next();
46
+ };
47
+ }
48
+ export { createWebVirtualFilesMiddleware };
49
+
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import type { RequestHandler } from '@rsbuild/core';
2
+ export declare function createWebVirtualFilesMiddleware(subPath: string): RequestHandler;
package/package.json CHANGED
@@ -1,12 +1,37 @@
1
1
  {
2
2
  "name": "@lynx-js/web-rsbuild-server-middleware-canary",
3
- "type": "module",
4
- "version": "0.0.0",
3
+ "version": "0.17.1-canary-20250924-6411f84c",
4
+ "private": false,
5
5
  "description": "a dev server middleware for rsbuild to serve Lynx Web Platform shell project",
6
- "main": "index.js",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1"
9
- },
10
6
  "keywords": [],
11
- "license": "Apache-2.0"
12
- }
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/lynx-family/lynx-stack.git",
10
+ "directory": "packages/web-platform/web-rsbuild-server-middleware"
11
+ },
12
+ "license": "Apache-2.0",
13
+ "type": "module",
14
+ "main": "dist/index.js",
15
+ "typings": "dist/node/index.d.ts",
16
+ "files": [
17
+ "dist",
18
+ "!dist/**/*.js.map",
19
+ "www",
20
+ "LICENSE.txt",
21
+ "Notice.txt",
22
+ "CHANGELOG.md",
23
+ "README.md"
24
+ ],
25
+ "devDependencies": {
26
+ "@rsbuild/core": "1.5.12",
27
+ "rsbuild-plugin-arethetypeswrong": "0.1.1",
28
+ "rsbuild-plugin-publint": "0.3.3",
29
+ "@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.17.1-canary-20250924-6411f84c",
30
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.8.7"
31
+ },
32
+ "scripts": {
33
+ "build": "npm run build:web && npm run build:lib",
34
+ "build:lib": "rslib build",
35
+ "build:web": "rsbuild build"
36
+ }
37
+ }
package/www/index.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><html><head><title>Rsbuild App</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="http://lynx-web-core-mocked.localhost/static/js/index.js"></script><link href="http://lynx-web-core-mocked.localhost/static/css/index.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -0,0 +1 @@
1
+ lynx-view{contain:strict;display:flex}lynx-view[width=auto]{--lynx-view-width:100%;width:var(--lynx-view-width);inline-size:var(--lynx-view-width)}lynx-view[height=auto],lynx-view[width=auto]{contain:content}lynx-view::part(page){width:100%;height:100%}@property --lynx-display{syntax:"linear|flex";inherits:false;initial-value:linear}@property --lynx-linear-weight-sum{syntax:"<number>";inherits:false;initial-value:1}@property --lynx-linear-weight{syntax:"<number>";inherits:false;initial-value:0}@property --justify-content-column{syntax:"flex-start|flex-end|center|space-between|space-around";inherits:false;initial-value:flex-start}@property --justify-content-column-reverse{syntax:"flex-start|flex-end|center|space-between|space-around";inherits:false;initial-value:flex-start}@property --justify-content-row{syntax:"flex-start|flex-end|center|space-between|space-around";inherits:false;initial-value:flex-start}@property --justify-content-row-reverse{syntax:"flex-start|flex-end|center|space-between|space-around";inherits:false;initial-value:flex-start}@property --align-self-row{syntax:"start|end|center|stretch|auto";inherits:false;initial-value:auto}@property --align-self-column{syntax:"start|end|center|stretch|auto";inherits:false;initial-value:auto}@property --lynx-linear-weight-basis{syntax:"auto|<number>|<length>";inherits:false;initial-value:auto}@property --lynx-linear-orientation{syntax:"<custom-ident>";inherits:false;initial-value:vertical}@property --flex-direction{syntax:"*";inherits:false}@property --flex-wrap{syntax:"*";inherits:false}@property --flex-grow{syntax:"<number>";inherits:false;initial-value:0}@property --flex-shrink{syntax:"<number>";inherits:false;initial-value:1}@property --flex-basis{syntax:"*";inherits:false;initial-value:auto}@property --flex-value{syntax:"*";inherits:false}@property --linear-justify-content{syntax:"flex-start|flex-end|center|space-between|space-around";inherits:false;initial-value:flex-start}x-view,x-blur-view,scroll-view,x-foldview-ng,x-foldview-slot-ng,x-foldview-header-ng,x-foldview-toolbar-ng,x-foldview-drag-ng,x-text,inline-text,inline-image,inline-truncation,x-viewpager-ng,x-viewpager-item-ng,x-canvas,x-svg,x-image,filter-image,x-input,x-swiper,x-swiper-item,x-textarea,x-list,list-item{box-sizing:border-box;scrollbar-width:none;border-style:solid;border-width:0;min-width:0;min-height:0;display:flex;position:relative;overflow:clip}x-view::--webkit-scrollbar{display:none}x-view,scroll-view,x-foldview-header-ng,x-foldview-ng,x-foldivew-slot-drag-ng,x-foldview-slot-ng,x-foldview-toolbar-ng,x-refresh-footer,x-refresh-header,x-refresh-view,x-swiper-item,x-viewpager-item-ng,x-viewpager-ng,list-item{--lynx-display-toggle:var(--lynx-display-linear);--lynx-display-linear:var(--lynx-display-toggle, );--lynx-display-flex:var(--lynx-display-toggle, );--lynx-linear-orientation-toggle:var(--lynx-linear-orientation-vertical);--lynx-linear-orientation-horizontal:var(--lynx-linear-orientation-toggle, );--lynx-linear-orientation-vertical:var(--lynx-linear-orientation-toggle, );--lynx-linear-orientation-horizontal-reverse:var(--lynx-linear-orientation-toggle, );--lynx-linear-orientation-vertical-reverse:var(--lynx-linear-orientation-toggle, );--linear-flex-direction:var(--lynx-linear-orientation-horizontal,row)var(--lynx-linear-orientation-vertical,column)var(--lynx-linear-orientation-horizontal-reverse,row-reverse)var(--lynx-linear-orientation-vertical-reverse,column-reverse);--linear-justify-content:var(--lynx-linear-orientation-horizontal,var(--justify-content-row))var(--lynx-linear-orientation-vertical,var(--justify-content-column))var(--lynx-linear-orientation-horizontal-reverse,var(--justify-content-row-reverse))var(--lynx-linear-orientation-vertical-reverse,var(--justify-content-column-reverse))}x-view,x-foldview-header-ng,x-foldview-ng,x-foldivew-slot-drag-ng,x-foldview-slot-ng,x-foldview-toolbar-ng,x-refresh-footer,x-refresh-header,x-refresh-view,x-swiper-item,x-viewpager-item-ng,x-viewpager-ng,list-item{flex-wrap:var(--lynx-display-linear,nowrap)var(--lynx-display-flex,var(--flex-wrap));flex-direction:var(--lynx-display-linear,var(--linear-flex-direction))var(--lynx-display-flex,var(--flex-direction));justify-content:var(--lynx-display-linear,var(--linear-justify-content))}@supports (content-visibility:auto) and (transition-behavior:allow-discrete) and (width:1rex){@container style(--lynx-display:linear){x-view,x-blur-view,scroll-view,x-foldview-ng,x-foldview-slot-ng,x-foldview-header-ng,x-foldview-toolbar-ng,x-foldview-drag-ng,x-text,inline-text,inline-image,inline-truncation,x-viewpager-ng,x-viewpager-item-ng,x-canvas,x-svg,x-image,filter-image,x-input,x-swiper,x-swiper-item,x-textarea,x-list,list-item{flex-shrink:0;flex-grow:calc(var(--lynx-linear-weight)/calc(var(--lynx-linear-weight-sum) + ( 1 - clamp(0,var(--lynx-linear-weight-sum)*999999,1))));flex-basis:var(--lynx-linear-weight-basis)}}@container not style(--lynx-display:linear){x-view,x-blur-view,scroll-view,x-foldview-ng,x-foldview-slot-ng,x-foldview-header-ng,x-foldview-toolbar-ng,x-foldview-drag-ng,x-text,inline-text,inline-image,inline-truncation,x-viewpager-ng,x-viewpager-item-ng,x-canvas,x-svg,x-image,filter-image,x-input,x-swiper,x-swiper-item,x-textarea,x-list,list-item{flex-grow:var(--flex-grow);flex-shrink:var(--flex-shrink);flex-basis:var(--flex-basis)}}@container style(--lynx-display:linear) and (style(--lynx-linear-orientation:vertical) or style(--lynx-linear-orientation:vertical-reverse)){x-view,x-blur-view,scroll-view,x-foldview-ng,x-foldview-slot-ng,x-foldview-header-ng,x-foldview-toolbar-ng,x-foldview-drag-ng,x-text,inline-text,inline-image,inline-truncation,x-viewpager-ng,x-viewpager-item-ng,x-canvas,x-svg,x-image,filter-image,x-input,x-swiper,x-swiper-item,x-textarea,x-list,list-item{align-self:var(--align-self-column)}}@container style(--lynx-display:linear) and (style(--lynx-linear-orientation:horizontal) or style(--lynx-linear-orientation:horizontal-reverse)){x-view,x-blur-view,scroll-view,x-foldview-ng,x-foldview-slot-ng,x-foldview-header-ng,x-foldview-toolbar-ng,x-foldview-drag-ng,x-text,inline-text,inline-image,inline-truncation,x-viewpager-ng,x-viewpager-item-ng,x-canvas,x-svg,x-image,filter-image,x-input,x-swiper,x-swiper-item,x-textarea,x-list,list-item{align-self:var(--align-self-row)}}}lynx-wrapper{--lynx-display:inherit;--lynx-display-toggle:inherit;--lynx-linear-orientation:inherit;--lynx-linear-orientation-toggle:inherit;display:contents!important}x-text{overflow-wrap:break-word;background-image:var(--lynx-text-bg-color);color:initial;align-items:stretch;display:flex}x-text>x-text,x-text>lynx-wrapper>x-text{color:inherit}x-text:not(x-text>x-text):not(x-text>lynx-wrapper>x-text){--lynx-text-bg-color:initial}x-text>*{display:none}x-text::part(inner-box){text-overflow:inherit;--lynx-text-bg-color:inherit}x-text>x-text::part(inner-box),x-text>lynx-wrapper>x-text::part(inner-box){display:contents!important}x-text::part(inner-box),inline-text,x-text::part(slot){background-clip:inherit;-webkit-background-clip:inherit}inline-text,inline-image,inline-truncation{display:none}x-text>x-text,x-text>inline-text,inline-text>inline-text,inline-truncation>inline-text,inline-truncation>x-text,x-text>lynx-wrapper>x-text,x-text>lynx-wrapper>inline-text,x-text>lynx-wrapper>x-text,inline-text>lynx-wrapper>inline-text,x-text>lynx-wrapper>*,inline-truncation>lynx-wrapper>inline-text,inline-truncation>lynx-wrapper>x-text{background-clip:inherit;-webkit-background-clip:inherit;display:inline}x-text>inline-image,x-text>x-image,inline-truncation>inline-image,inline-truncation>x-image,inline-text>inline-image,inline-text>x-image,x-text>lynx-wrapper>inline-image,x-text>lynx-wrapper>x-image,inline-truncation>lynx-wrapper>inline-image,inline-truncation>lynx-wrapper>x-image,inline-text>lynx-wrapper>inline-image,inline-text>lynx-wrapper>x-image{display:contents!important}x-text>x-view,x-text>lynx-wrapper>x-view{display:inline-flex!important}x-text>x-view,x-text[x-show-inline-truncation]>inline-truncation,x-text>lynx-wrapper>x-view,x-text[x-show-inline-truncation]>lynx-wrapper>inline-truncation{display:inline-flex}x-text>inline-truncation:first-child,x-text>lynx-wrapper>inline-truncation:first-child{max-width:100%}inline-truncation~inline-truncation{display:none}inline-truncation[x-text-clipped]{flex-direction:row}inline-image::part(img){height:inherit;width:inherit;border:inherit;border-radius:inherit;background-color:inherit;vertical-align:inherit;margin:inherit;display:inline-block}x-text>x-image::part(img),x-text>lynx-wrapper>x-image::part(img),inline-truncation>x-image::part(img),inline-truncation>lynx-wrapper>x-image::part(img){border:inherit;border-radius:inherit;background-color:inherit;vertical-align:inherit;margin:inherit;object-fit:inherit;display:inline-block;height:inherit!important;width:inherit!important;flex:inherit!important;align-self:inherit!important}x-text,inline-text,inline-image,inline-truncation{user-select:none}x-text::part(inner-box){width:100%;height:100%;overflow:inherit}x-text[text-maxline]{overflow:hidden}x-text[text-selection],x-text[text-selection]>inline-text,x-text[text-selection]>x-text,x-text[text-selection]>inline-image,x-text[text-selection]>x-image,x-text[text-selection]>inline-truncation,x-text[text-selection]>lynx-wrapper>inline-text,x-text[text-selection]>lynx-wrapper>x-text,x-text[text-selection]>lynx-wrapper>inline-image,x-text[text-selection]>lynx-wrapper>x-image,x-text[text-selection]>lynx-wrapper>inline-truncation{user-select:auto}x-text[x-text-clipped]>[x-text-clipped]:not(inline-truncation),x-text[x-text-clipped]>lynx-wrapper>[x-text-clipped]:not(inline-truncation){display:none!important}x-text[x-text-clipped]:not([tail-color-convert=false])::part(inner-box):after,x-text[x-text-clipped]:not([tail-color-convert=false])::part(inner-box):after{content:"..."}x-text[x-text-clipped]:has(inline-truncation)::part(inner-box):after,x-text[x-text-clipped][x-text-custom-overflow]::part(inner-box):after,x-text[x-text-clipped]:has(inline-truncation)::part(inner-box):after,x-text[x-text-clipped][x-text-custom-overflow]::part(inner-box):after{content:""!important}x-text[text-maxline]::part(inner-box){-webkit-box-orient:vertical;display:-webkit-box}x-text[text-maxline="0"]{display:none}@supports not selector(:has(inline-truncation)){x-text[text-maxline="1"]:not([tail-color-convert=false]):not([x-text-custom-overflow])::part(inner-box){white-space:nowrap;text-overflow:ellipsis}}@supports selector(:has(inline-truncation)){x-text[text-maxline="1"]:not([tail-color-convert=false],:has(inline-truncation))::part(inner-box){text-wrap:nowrap;white-space:nowrap;text-overflow:ellipsis}}x-text[text-maxline="1"]{max-width:-webkit-fill-available}x-text[text-maxline="1"]:not([tail-color-convert=false])::part(inner-box){display:block}x-text[text-maxline][x-text-custom-overflow]::part(inner-box),x-text[text-maxline]:has(inline-truncation)::part(inner-box),x-text[text-maxline][tail-color-convert=false]::part(inner-box){display:block!important}raw-text{white-space-collapse:preserve-breaks;display:none}x-text>raw-text,inline-text>raw-text,x-text>lynx-wrapper>raw-text,inline-text>lynx-wrapper>raw-text{display:contents!important}raw-text:not(:defined):before{content:attr(text);display:contents}scroll-view{--lynx-display-toggle:var(--lynx-display-linear);flex-wrap:nowrap;flex-direction:var(--linear-flex-direction);justify-content:var(--linear-justify-content);scroll-timeline:--scroll-view-timeline;--lynx-display:linear!important;display:flex!important}scroll-view>*,scroll-view>lynx-wrapper>*{flex-shrink:0;flex-grow:calc(var(--lynx-linear-weight)/var(--lynx-linear-weight-sum));flex-basis:var(--lynx-linear-weight-basis);align-self:var(--align-self-column)}scroll-view,scroll-view{scrollbar-width:none}scroll-view::-webkit-scrollbar{display:none}scroll-view[enable-scrollbar],scroll-view[scroll-bar-enable]{scrollbar-width:initial}scroll-view[enable-scrollbar]::-webkit-scrollbar{display:initial}scroll-view[scroll-bar-enable]::-webkit-scrollbar{display:initial}scroll-view,scroll-view[scroll-y],scroll-view[scroll-orientation=vertical]{--lynx-linear-orientation-toggle:var(--lynx-linear-orientation-vertical);--lynx-linear-orientation:vertical!important;flex-direction:column!important;overflow:clip scroll!important}scroll-view[scroll-x],scroll-view[scroll-orientation=horizontal]{--lynx-linear-orientation-toggle:var(--lynx-linear-orientation-horizontal);--lynx-linear-orientation:horizontal!important;flex-direction:row!important;overflow:scroll clip!important}scroll-view[scroll-orientation=both]{overflow:scroll!important}@supports not (overflow:clip){scroll-view[scroll-y],scroll-view[scroll-orientation=vertical]{overflow-x:hidden}scroll-view[scroll-x],scroll-view[scroll-orientation=horizontal]{overflow-y:hidden}}scroll-view[scroll-y][enable-scroll=false],scroll-view[scroll-orientation=vertical][enable-scroll=false]{overflow-y:hidden!important}scroll-view[scroll-x][enable-scroll=false],scroll-view[scroll-orientation=horizontal][enable-scroll=false]{overflow-x:hidden!important}@supports (animation-timeline:--scroll-view-timeline){scroll-view[fading-edge-length]::part(top-fade-mask){animation-name:topFading;top:0}scroll-view[fading-edge-length]::part(bot-fade-mask){animation-name:botFading;bottom:0}scroll-view[fading-edge-length]::part(top-fade-mask),scroll-view[fading-edge-length]::part(bot-fade-mask){flex:none;animation-duration:1ms;animation-timeline:--scroll-view-timeline;display:flex;left:0}}scroll-view[x-enable-scrolltolower-event]::part(lower-threshold-observer),scroll-view[x-enable-scrolltoupper-event]::part(upper-threshold-observer){display:flex}scroll-view[scroll-y][x-enable-scrolltolower-event]::part(lower-threshold-observer),scroll-view[scroll-orientation=vertical][x-enable-scrolltolower-event]::part(lower-threshold-observer){flex-direction:column-reverse!important}scroll-view[scroll-x][x-enable-scrolltolower-event]::part(lower-threshold-observer),scroll-view[scroll-orientation=horizontal][x-enable-scrolltolower-event]::part(lower-threshold-observer){flex-direction:row-reverse!important}x-foldview-ng{overscroll-behavior:contain;--foldview-header-height:0px;scrollbar-width:none;display:flex;overflow-x:hidden;overflow-y:scroll!important}x-foldivew-ng::-webkit-scrollbar{display:none}x-foldview-ng[scroll-bar-enable]{scrollbar-width:initial}x-foldview-ng[scroll-bar-enable]::-webkit-scrollbar{display:initial}x-foldview-ng:not([scroll-bar-enable],[scroll-bar-enable=true])::-webkit-scrollbar{display:none}x-foldview-ng[scroll-enable=false]{overflow-y:hidden}x-foldview-ng>*,x-foldview-header-ng,x-foldview-slot-ng,x-foldview-toolbar-ng{display:none}x-foldview-ng>x-foldview-header-ng,x-foldview-ng>x-foldview-slot-ng,x-foldview-ng>x-foldview-toolbar-ng,x-foldview-ng>lynx-wrapper>x-foldview-header-ng,x-foldview-ng>lynx-wrapper>x-foldview-slot-ng,x-foldview-ng>lynx-wrapper>x-foldview-toolbar-ng{display:flex}x-foldview-toolbar-ng{z-index:1;order:1;position:sticky;top:0}x-foldview-header-ng{flex:none;order:2;position:absolute}x-foldview-ng[header-over-slot]>x-foldview-slot-ng,x-foldview-ng[header-over-slot]>lynx-wrapper>x-foldview-slot-ng{z-index:1}x-foldview-slot-ng{contain:strict;order:3}x-foldview-slot-ng scroll-view{overscroll-behavior-y:none}x-viewpager-ng,x-viewpager-item-ng{display:none}x-viewpager-ng,x-viewpager-ng>x-viewpager-item-ng,x-viewpager-ng>lynx-wrapper>x-viewpager-item-ng{display:flex}x-viewpager-ng{contain:content;scrollbar-width:0;--lynx-linear-orientation:horizontal;scroll-snap-type:x mandatory;scroll-snap-stop:always;flex-direction:row;width:100%;height:100%;overflow:scroll clip}x-viewpager-ng[allow-horizontal-gesture=false],x-viewpager-ng[enable-scroll=false]{overflow-x:hidden}x-viewpager-ng::-webkit-scrollbar{display:none}x-viewpager-ng::part(content){scroll-snap-align:start}x-viewpager-ng[bounces]::part(bounce-padding){display:flex}@supports not (overflow:clip){x-viewpager-ng{overflow-y:hidden}}x-viewpager-item-ng{contain:content;--flex-grow:0;--flex-shrink:0;--flex-basis:auto;scroll-snap-align:start;scroll-snap-stop:always;flex:none;width:100%;height:100%;position:relative!important}x-viewpager-item-ng:nth-child(n+5){contain:strict}x-canvas{contain:strict;flex-direction:column}x-canvas>*{display:none!important}x-canvas::part(canvas){width:100%;height:100%}x-svg{contain:content;display:flex}x-svg::part(img){width:inherit;height:inherit;flex:inherit;min-width:inherit;min-height:inherit;border:inherit;border-radius:inherit;max-width:100%;max-height:100%;filter:inherit}x-image,filter-image{--justify-content:center;contain:strict;object-fit:fill;justify-content:center;align-items:center;flex-direction:row!important}x-image>*,filter-image>*{display:none}x-image[blur-radius]::part(img){--blur-radius:0;filter:blur(var(--blur-radius))}filter-image[blur-radius]::part(img),filter-image[drop-shadow]::part(img){--blur-radius:0;--drop-shadow:0px 0px;filter:blur(var(--blur-radius))drop-shadow(var(--drop-shadow))}x-image:not([auto-size])::part(img),filter-image::part(img){object-fit:inherit;flex:0 0 100%;align-self:stretch;width:100%}x-image[mode=aspectFit],filter-image[mode=aspectFit]{object-fit:contain}x-image[mode=aspectFill],filter-image[mode=aspectFill]{object-fit:cover}x-image[mode=center]:not([auto-size])::part(img),filter-image[mode=center]::part(img){width:unset;flex:unset;align-self:unset;margin:auto;position:absolute}x-image[auto-size]{display:contents}x-image[auto-size]::part(img){margin:inherit;padding:inherit;width:inherit;height:inherit;box-sizing:inherit;flex:inherit;min-width:inherit;min-height:inherit;border:inherit;border-radius:inherit;max-width:100%;max-height:100%;position:inherit;top:inherit;left:inherit;right:inherit;bottom:inherit;transform:inherit;opacity:inherit;z-index:inherit;filter:inherit}x-input,x-input::part(form){display:contents}x-input::part(input),x-input::part(form){width:inherit;height:inherit;border:inherit;align-self:inherit;justify-self:inherit;text-align:inherit;direction:inherit;caret-color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;flex:inherit;background-color:inherit;z-index:inherit;margin:inherit;color:inherit}x-input::part(input){--placeholder-color:grey;--placeholder-font-size:14px;--placeholder-font-weight:normal}x-input::part(input)::placeholder{color:var(--placeholder-color);font-family:var(--placeholder-font-family);font-size:var(--placeholder-font-size);font-weight:var(--placeholder-font-weight)}x-overlay-ng::part(dialog){background:0 0;border:0;outline:none;width:100%;max-width:100%;height:100%;max-height:100%;margin:0;padding:0}x-overlay-ng{contain:strict;width:0;max-width:0;max-height:0;display:contents;position:fixed;top:0;overflow:visible}x-overlay-ng>:not(:first-child){display:none!important}x-overlay-ng>:first-child,x-overlay-ng>lynx-wrapper>:first-child{display:flex;position:absolute;top:0;left:0}x-overlay-ng [event-through]{pointer-events:none}x-overlay-ng:not([level]),x-overlay-ng[level="1"]{z-index:4}x-overlay-ng[level="2"]{z-index:3}x-overlay-ng[level="3"]{z-index:2}x-overlay-ng[level="4"]{z-index:1}x-refresh-header,x-refresh-footer{display:none}x-refresh-view{box-sizing:border-box;border-style:solid;border-width:0;flex-direction:column;flex-grow:0;flex-shrink:1;min-width:0;min-height:0;display:flex;position:relative}x-refresh-view::part(container),x-refresh-view::part(content),x-refresh-view::part(slot){--lynx-display:inherit}x-refresh-view:not([enable-refresh=false])>x-refresh-header:first-of-type{scroll-snap-align:none;flex-shrink:0;display:flex;position:relative!important}x-refresh-view[enable-refresh=false]::part(placeholder-top){display:none}x-refresh-view>x-refresh-header[x-magnet-enable]:first-of-type{scroll-snap-align:start!important}x-refresh-view>x-refresh-footer[x-magnet-enable]:first-of-type{scroll-snap-align:end!important}x-refresh-view:not([enable-loadmore=false])>x-refresh-footer:first-of-type{scroll-snap-align:none;flex-shrink:0;margin-top:auto;display:flex;position:relative!important}x-refresh-view[enable-loadmore=false]::part(placeholder-bot){display:none}x-swiper{scroll-snap-type:x mandatory;scrollbar-width:none;contain:content;timeline-scope:--x-swiper-item-0,--x-swiper-item-1,--x-swiper-item-2,--x-swiper-item-3,--x-swiper-item-4;flex-direction:row;justify-content:flex-start;display:flex;overflow:scroll clip;flex-wrap:nowrap!important}x-swiper::part(content){--page-margin:0px;--next-margin:0px;--previous-margin:0px}x-swiper,x-swiper::part(content),x-swiper::part(slot),x-swiper::part(slot-start),x-swiper::part(slot-end){--lynx-display:linear;--lynx-display-toggle:var(--lynx-display-linear)}x-swiper>*,x-swiper>lynx-wrapper>*{flex-shrink:0;flex-grow:calc(var(--lynx-linear-weight)/var(--lynx-linear-weight-sum));flex-basis:var(--lynx-linear-weight-basis);align-self:var(--align-self-column)}x-swiper::-webkit-scrollbar{display:none}x-swiper[vertical]{scroll-snap-type:y mandatory;--lynx-linear-orientation:vertical;--lynx-linear-orientation-toggle:var(--lynx-linear-orientation-vertical);overflow:clip scroll;flex-direction:column!important}x-swiper[bounces]:not([circular])::part(bounce-padding){display:initial}x-swiper-item{scroll-snap-align:start;animation-duration:10ms;flex-shrink:0!important;flex-grow:calc(var(--lynx-linear-weight)/var(--lynx-linear-weight-sum))!important;flex-basis:var(--lynx-linear-weight-basis)!important}x-swiper-item:nth-child(n+20){contain:strict;content-visibility:auto}x-swiper-item:first-child{view-timeline-name:--x-swiper-item-0}x-swiper-item:nth-child(2){view-timeline-name:--x-swiper-item-1}x-swiper-item:nth-child(3){view-timeline-name:--x-swiper-item-2}x-swiper-item:nth-child(4){view-timeline-name:--x-swiper-item-3}x-swiper-item:nth-child(5){view-timeline-name:--x-swiper-item-4}x-swiper>:not(x-swiper-item){display:none}x-swiper>x-swiper-item{view-timeline-axis:inline;height:100%;animation-timeline:view(inline);width:calc(100% - 2*var(--page-margin) - var(--previous-margin) - var(--next-margin))!important}x-swiper[vertical]>x-swiper-item{view-timeline-axis:block;width:100%;animation-timeline:view();height:calc(100% - 2*var(--page-margin) - var(--previous-margin) - var(--next-margin))!important}x-swiper[circular]{scroll-snap-type:none;overflow:hidden clip}x-swiper[circular][vertical]{overflow:clip hidden}x-swiper[indicator-dots]::part(indicator-container){display:none}x-swiper::part(indicator-container){--indicator-size:.6rem;--indicator-container-margin:.5rem;z-index:100;width:100%;height:var(--indicator-size);contain:strict;margin-bottom:var(--indicator-container-margin);--indicator-color:#ffffff4d;--indicator-active-color:white;flex-direction:row;justify-content:center;align-items:stretch;display:flex;position:absolute;bottom:0;left:0;overflow:clip}x-swiper[vertical]::part(indicator-container){left:unset;height:100%;width:var(--indicator-size);margin-bottom:0;margin-right:var(--indicator-container-margin);flex-direction:column;top:0;right:0}x-swiper::part(indicator-item){background-color:var(--indicator-color);flex:0 0 var(--indicator-size);margin:0 calc(var(--indicator-size)/5)0 calc(var(--indicator-size)/5);border-radius:100%}x-swiper[vertical]::part(indicator-item){margin:calc(var(--indicator-size)/5)0 calc(var(--indicator-size)/5)0}x-swiper[mode=carousel]:not([vertical])>x-swiper-item{width:calc(80% - 2*var(--page-margin) - var(--previous-margin) - var(--next-margin))!important}x-swiper[mode=carousel][vertical]>x-swiper-item{height:calc(80% - 2*var(--page-margin) - var(--previous-margin) - var(--next-margin))!important}x-swiper[mode=carousel]:not([circular])>x-swiper-item:last-child{margin-right:20%}@media screen and (-webkit-device-pixel-ratio>=0){x-swiper[mode=carousel]::part(content):after{content:"";padding-right:20%}}x-swiper[mode=coverflow]::part(content){perspective:200px}x-swiper[mode=coverflow]>x-swiper-item{scroll-snap-align:center;transform-style:preserve-3d;z-index:0;animation-name:x-swiper-coverflow}x-swiper[mode=coverflow]:not([vertical])>x-swiper-item{animation-name:x-swiper-coverflow-horizontal;width:calc(60% - 2*var(--page-margin) - var(--previous-margin) - var(--next-margin))!important}x-swiper[mode=coverflow][vertical]>x-swiper-item{animation-name:x-swiper-coverflow-vertical;height:calc(60% - 2*var(--page-margin) - var(--previous-margin) - var(--next-margin))!important}x-swiper[mode=coverflow]:not([circular]):not([vertical])>x-swiper-item:first-child{margin-left:20%}x-swiper[mode=coverflow]:not([circular]):not([vertical])>x-swiper-item:last-child{margin-right:20%}x-swiper[mode=coverflow][vertical]:not([circular])>x-swiper-item:first-child{margin-top:20%}x-swiper[mode=coverflow][vertical]:not([circular])>x-swiper-item:last-child{margin-bottom:20%}@keyframes x-swiper-coverflow-horizontal{25%{transform:rotateY(-50deg)scale(.8)}45%,55%{z-index:1;transform:rotateY(0)scale(1)}to{transform:rotateY(40deg)scale(.8)}}@keyframes x-swiper-coverflow-vertical{25%{transform:rotateX(-50deg)scale(.8)}45%,55%{z-index:1;transform:rotateX(0)scale(1)}to{transform:rotateX(40deg)scale(.8)}}x-swiper[mode=flat-coverflow]>x-swiper-item{scroll-snap-align:center}x-swiper[mode=flat-coverflow]:not([vertical])>x-swiper-item{width:60%!important}x-swiper[mode=flat-coverflow]:not([circular]):not([vertical])>x-swiper-item:first-child{margin-left:20%}x-swiper[mode=flat-coverflow]:not([circular]):not([vertical])>x-swiper-item:last-child{margin-right:20%}x-swiper[mode=flat-coverflow][vertical]>x-swiper-item{height:60%!important}x-swiper[mode=flat-coverflow][vertical]:not([circular])>x-swiper-item:first-child{margin-top:20%}x-swiper[mode=flat-coverflow][vertical]:not([circular])>x-swiper-item:last-child{margin-bottom:20%}x-swiper[mode=carry]>x-swiper-item{scroll-snap-align:center;animation-name:x-swiper-carry;width:100%!important}@keyframes x-swiper-carry{0%{transform:scale(.6)}45%,55%{z-index:1;transform:scale(1)}to{transform:scale(.6)}}x-textarea,x-textarea::part(form){display:contents}x-textarea::part(textarea),x-textarea::part(form){width:inherit;height:inherit;font-family:inherit;font-size:inherit;line-height:inherit;flex:inherit;border:inherit;padding:inherit;margin:inherit;caret-color:inherit;direction:inherit;font:inherit;letter-spacing:inherit;text-align:inherit;outline:inherit;background-color:inherit;color:inherit}x-textarea::part(textarea){--placeholder-color:grey;--placeholder-font-size:14px;--placeholder-font-weight:normal;--placeholder-font-family:inherit;resize:none}x-textarea::part(textarea)::placeholder{color:var(--placeholder-color);font-size:var(--placeholder-font-size);font-weight:var(--placeholder-font-weight);font-family:var(--placeholder-font-family)}x-list{contain:layout;scrollbar-width:none;--list-item-sticky-offset:0;--list-item-span-count:0;--list-main-axis-gap:0px;--list-cross-axis-gap:0px}x-list>:not(list-item){display:none}x-list::part(content),x-list[list-type=waterfall]::part(waterfall-content){justify-content:inherit;background-color:inherit;flex-wrap:nowrap;flex:none;flex-direction:inherit;scrollbar-width:inherit;scroll-snap-type:inherit;scroll-snap-align:start;width:100%;height:100%;overflow:inherit;content-visibility:auto;row-gap:inherit;column-gap:inherit;display:flex;position:relative}x-list::part(content),x-list::part(slot){--lynx-display:inherit}x-list,x-list::part(content){scrollbar-width:none}x-list::-webkit-scrollbar{display:none}x-list::part(content)::-webkit-scrollbar{display:none}x-list[scrollbar-enable]::part(content){scrollbar-width:initial}x-list[scrollbar-enable]::part(content)::-webkit-scrollbar{display:initial}list-item{content-visibility:auto;display:none;position:static;flex:none!important}x-list>list-item,x-list>lynx-wrapper>list-item{display:flex}x-list{overflow:clip scroll!important}x-list[scroll-orientation=horizontal]{overflow:scroll clip!important}x-list[enable-scroll=false]{overflow-y:hidden!important}x-list[scroll-orientation=horizontal][enable-scroll=false]{overflow-x:hidden!important}x-list[sticky=true] list-item[sticky-top],x-list[sticky=true] list-item[sticky-bottom]{z-index:1;position:sticky}x-list[sticky=true]>list-item[sticky-top],x-list[sticky=true]>lynx-wrapper>list-item[sticky-top]{top:var(--list-item-sticky-offset)}x-list[sticky=true]>list-item[sticky-bottom],x-list[sticky=true]>lynx-wrapper>list-item[sticky-bottom]{bottom:var(--list-item-sticky-offset)}x-list[sticky=true][scroll-orientation=horizontal]>list-item[sticky-top],x-list[sticky=true][scroll-orientation=horizontal]>lynx-wrapper>list-item[sticky-top]{top:unset;left:var(--list-item-sticky-offset)}x-list[sticky=true][scroll-orientation=horizontal]>list-item[sticky-bottom],x-list[sticky=true][scroll-orientation=horizontal]>lynx-wrapper>list-item[sticky-bottom]{bottom:unset;right:var(--list-item-sticky-offset)}x-list[item-snap],x-list[paging-enabled]{scroll-snap-type:y mandatory;scroll-snap-stop:always}x-list[item-snap][scroll-orientation=horizontal],x-list[paging-enabled][scroll-orientation=horizontal]{scroll-snap-type:x mandatory}x-list[item-snap]>list-item,x-list[item-snap]>lynx-wrapper>list-item{scroll-snap-align:start}x-list[x-enable-scrolltoupper-event]::part(upper-threshold-observer),x-list[x-enable-scrolltoupperedge-event]::part(upper-threshold-observer),x-list[x-enable-scrolltolower-event]::part(lower-threshold-observer),x-list[x-enable-scrolltoloweredge-event]::part(lower-threshold-observer){display:flex}x-list::part(lower-threshold-observer){flex-direction:column-reverse}x-list[vertical-orientation=false]::part(lower-threshold-observer){flex-direction:row-reverse}x-list{align-items:stretch;row-gap:var(--list-main-axis-gap);column-gap:var(--list-cross-axis-gap);flex-direction:column;display:flex}x-list[scroll-orientation=horizontal]{row-gap:var(--list-cross-axis-gap);column-gap:var(--list-main-axis-gap);flex-direction:row}x-list[list-type=flow]::part(content){grid-template-columns:repeat(var(--list-item-span-count),1fr);grid-row-gap:var(--list-main-axis-gap);grid-column-gap:var(--list-cross-axis-gap);grid-auto-rows:min-content;place-items:start stretch;display:grid}x-list[list-type=flow][scroll-orientation=horizontal]::part(content){grid-template-rows:repeat(var(--list-item-span-count),1fr);grid-row-gap:var(--list-cross-axis-gap);grid-column-gap:var(--list-main-axis-gap);grid-auto-columns:min-content;grid-auto-flow:column;place-items:stretch start}x-list[list-type=flow] list-item[full-span]:not([full-span=false]){grid-column-start:1;grid-column-end:calc(var(--list-item-span-count) + 1)}x-list[list-type=flow][scroll-orientation=horizontal] list-item[full-span]:not([full-span=false]){grid-row-start:1;grid-row-end:calc(var(--list-item-span-count) + 1)}x-list[list-type=flow][x-enable-scrolltoupper-event]::part(upper-threshold-observer),x-list[list-type=flow][x-enable-scrolltoupperedge-event]::part(upper-threshold-observer),x-list[list-type=flow][x-enable-scrolltolower-event]::part(lower-threshold-observer),x-list[list-type=flow][x-enable-scrolltoloweredge-event]::part(lower-threshold-observer){grid-column:1/calc(var(--list-item-span-count) + 1)}x-list[list-type=flow][scroll-orientation=horizontal][x-enable-scrolltoupper-event]::part(upper-threshold-observer),x-list[list-type=flow][scroll-orientation=horizontal][x-enable-scrolltoupperedge-event]::part(upper-threshold-observer),x-list[list-type=flow][scroll-orientation=horizontal][x-enable-scrolltolower-event]::part(lower-threshold-observer),x-list[list-type=flow][scroll-orientation=horizontal][x-enable-scrolltoloweredge-event]::part(lower-threshold-observer){grid-row:1/calc(var(--list-item-span-count) + 1)}x-list[list-type=waterfall]{flex-direction:column;display:flex}x-list[list-type=waterfall][scroll-orientation=horizontal]{flex-direction:row}x-list[list-type=waterfall]::part(slot){visibility:hidden}x-list[list-type=waterfall] list-item{width:calc(( 100% - var(--list-cross-axis-gap)*(var(--list-item-span-count) - 1))/var(--list-item-span-count));height:fit-content;position:absolute}x-list[list-type=waterfall][scroll-orientation=horizontal] list-item{width:fit-content;height:calc(( 100% - var(--list-cross-axis-gap)*(var(--list-item-span-count) - 1))/var(--list-item-span-count))}x-list[list-type=waterfall] list-item[full-span]:not([full-span=false]){width:100%;height:fit-content}x-list[list-type=waterfall][scroll-orientation=horizontal] list-item[full-span]:not([full-span=false]){width:fit-content;height:100%}x-list[list-type=waterfall]::part(upper-threshold-observer),x-list[list-type=waterfall]::part(lower-threshold-observer){position:absolute}x-list[list-type=waterfall]::part(lower-threshold-observer){bottom:-999px}x-list[list-type=waterfall][scroll-orientation=horizontal]::part(lower-threshold-observer){right:-999px}body{margin:0;padding:0}lynx-view{width:100vw;height:100vh}
@@ -0,0 +1,3 @@
1
+ (()=>{"use strict";var __webpack_modules__={29:function(e,t,r){var i,n,s,a,o;r.d(t,{Ke:()=>C,g:()=>H,mB:()=>en,SP:()=>l,er:()=>d,Gq:()=>p,pT:()=>z,im:()=>A,js:()=>h,HO:()=>el,gj:()=>q,jK:()=>Z,tl:()=>m,Pb:()=>u,O4:()=>n,c1:()=>E,F6:()=>K,PC:()=>j,gI:()=>ec,C6:()=>_,pP:()=>c,Gm:()=>v,pd:()=>T,hO:()=>O,eZ:()=>R,JW:()=>w,E_:()=>U,M$:()=>e_,gx:()=>V,tf:()=>ep,iH:()=>F,Fw:()=>J,JA:()=>y,qz:()=>em,Sy:()=>Y,oZ:()=>g,Hf:()=>k,o2:()=>D,$4:()=>x,hh:()=>N,ZU:()=>$,vr:()=>W,Ve:()=>L,Is:()=>X,zk:()=>B,I7:()=>b,vQ:()=>S,yn:()=>et,k3:()=>er,vn:()=>ee,WS:()=>ea,BE:()=>ei,y:()=>f,a$:()=>P,PM:()=>Q,VK:()=>G,nk:()=>es,hv:()=>eh,xY:()=>ed,Zu:()=>I,o3:()=>eo});let l="l-uid",h="l-css-id",c="l-comp-id",d="l-p-comp-uid",u="l-e-name",p="lynx-tag",_="l-dset",m="l-comp-cfg",y="l-disposed",f="l-template",g="l-part",v="lynx-default-display-linear",b="__lynx_timing_flag",E={platform:"web",lynxSdkVersion:"3.0"},x={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},S={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},A={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function M(e,t,r=!0,i=!1,n){return{name:e,isSync:t,hasReturn:r,hasReturnTransfer:i,bufferSize:n}}let T=M("__postExposure",!1,!1),C=M("publicComponentEvent",!1,!1),w=M("publishEvent",!1,!1),I=M("postOffscreenEventEndpoint",!1,!1),R=M("switchExposureServiceEndpoint",!1,!1),k=M("mainThreadStart",!1,!1),L=M("updateData",!1,!0),O=M("sendGlobalEventEndpoint",!1,!1),N=M("dispose",!1,!0),P=M("start",!1,!0),D=M("reportError",!1,!1),U=M("flushElementTree",!1,!0),F=M("callLepusMethod",!1,!0),q=M("multiThreadExposureChangedEndpoint",!1,!1),B=M("__invokeUIMethod",!1,!0),j=M("__setNativeProps",!1,!0),$=M("__getPathInfo",!1,!0),H=M("nativeModulesCall",!1,!0),G=M("napiModulesCall",!1,!0,!0),J=M("getCustomSections",!1,!0),Q=M("markTiming",!1,!1),K=M("postTimingFlags",!1,!1),z=M("__triggerComponentEvent",!1,!1),W=M("__selectComponent",!1,!0),V=M("dispatchLynxViewEvent",!1,!1),Y=M("dispatchNapiModule",!1,!1),Z=M("dispatchCoreContextOnBackground",!1,!1),X=M("dispatchJSContextOnMainThread",!1,!1),ee=M("__triggerElementMethod",!1,!1),et=M("updateGlobalProps",!1,!1),er=M("updateI18nResources",!1,!1),ei=M("updateI18nResource",!1,!1),en=M("dispatchI18nResource",!1,!1),es=M("queryComponent",!1,!0),ea=M("updateBTSTemplateCacheEndpoint",!1,!0),eo=M("loadTemplateMultiThread",!1,!0);!function(e){e[e.ID_SELECTOR=0]="ID_SELECTOR",e[e.REF_ID=1]="REF_ID",e[e.UNIQUE_ID=2]="UNIQUE_ID"}(i||(i={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.UNKNOWN=1]="UNKNOWN",e[e.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",e[e.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",e[e.PARAM_INVALID=4]="PARAM_INVALID",e[e.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",e[e.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE"}(n||(n={})),function(e){e[e.UPDATE=0]="UPDATE",e[e.RESET=1]="RESET"}(s||(s={})),function(e){e[e.Unknown=0]="Unknown",e[e.UpdateExplicitByUser=1]="UpdateExplicitByUser",e[e.UpdateByKernelFromCtor=2]="UpdateByKernelFromCtor",e[e.UpdateByKernelFromRender=4]="UpdateByKernelFromRender",e[e.UpdateByKernelFromHydrate=8]="UpdateByKernelFromHydrate",e[e.UpdateByKernelFromGetDerived=16]="UpdateByKernelFromGetDerived",e[e.UpdateByKernelFromConflict=32]="UpdateByKernelFromConflict",e[e.UpdateByKernelFromHMR=64]="UpdateByKernelFromHMR"}(a||(a={})),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"}(o||(o={}));let el=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,eh="i18nResourceMissed";class ec{data;constructor(e){this.data=e}setData(e){this.data=e}}class ed{data;constructor(e){this.data=e}setData(e){this.data=e}}let eu=3;class ep 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]),eu}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}let e_=({timingKey:e,pipelineId:t,timeStamp:r,markTiming:i,cacheMarkTimings:n})=>{n.records.push({timingKey:e,pipelineId:t,timeStamp:r??performance.now()+performance.timeOrigin}),n.timeout||(n.timeout=setTimeout(()=>{i(n.records),n.records=[],n.timeout=null},500))},em=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)}},352:function(e,t,r){r.d(t,{C:()=>i});class i{port;name;incId=0;#e={};#t=new TextEncoder;#r=new TextDecoder;#i=new Map;constructor(e,t){this.port=e,this.name=t,e.onmessage=e=>this.#n(e.data)}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#n=async e=>{let t=this.#i.get(e.name);if(t){let r=e.sync?new Int32Array(e.lock):void 0,n=!e.sync&&e.retId?i.createRetEndpoint(e.retId):void 0;try{let i=await t(...e.data),s,a=[];if(e.sync?s=i:e.hasTransfer?{data:s,transfer:a}=i||{}:s=i,e.sync){if(e.buf){let t=JSON.stringify(s),r=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),n=new Uint8Array(e.buf.byteLength-4),{written:a}=this.#t.encodeInto(t,n);r[0]=a,i.set(n,0)}Atomics.store(r,0,1),Atomics.notify(r,0)}else e.retId&&this.invoke(n,[s,!1],a||[])}catch(t){console.error(t),e.sync?(Atomics.store(r,0,2),Atomics.notify(r,0),r[1]=2):this.invoke(n,[void 0,!0])}}else{let t=this.#e[e.name];t?t.push(e):this.#e[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#i.set(e.name,t);let r=this.#e[e.name];if(r?.length)for(let t of(this.#e[e.name]=void 0,r))this.#n(t)}registerHandlerRef(e,t,r){this.registerHandler(e,(...e)=>t[r]?.call(t,...e))}registerHandlerLazy(e,t,r){if(t[r])this.registerHandlerRef(e,t,r);else{let i,n=this;Object.defineProperty(t,r,{get:()=>i,set(s){i=s,s&&n.registerHandlerRef(e,t,r)}})}}removeHandler(e){this.#i.delete(e.name)}invoke(e,t,r=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,n=new SharedArrayBuffer(4),s=new Int32Array(n);s[0]=0;let a={name:e.name,data:t,sync:!0,lock:n,buf:i};if(this.port.postMessage(a,{transfer:r}),Atomics.wait(s,0,0),2===s[0])throw null;if(!i)return;{let e=new Uint32Array(i,0,4)[0],t=new Uint8Array(i,4,e),r=new Uint8Array(e);return r.set(t,0),r?JSON.parse(this.#r.decode(r)):void 0}}if(e.hasReturn){let{promise:n,resolve:s,reject:a}=Promise.withResolvers(),o=i.createRetEndpoint(this.nextRetId);this.registerHandler(o,(e,t)=>{t&&a(),s(e)});let l={name:e.name,data:t,sync:!1,retId:o?.name,hasTransfer:e.hasReturnTransfer};return this.port.postMessage(l,{transfer:r}),n}{let i={name:e.name,data:t,sync:!1};this.port.postMessage(i,{transfer:r})}}createCallbackify(e,t){let r=this.createCall(e);return(...e)=>{let i=e.at(t);e.splice(t,1),r(...e).then(i)}}}},302:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{callDestroyLifetimeFun:()=>Fe,destroyCard:()=>ke,loadCard:()=>we,loadDynamicComponent:()=>Be,nativeGlobal:()=>l});var _="__Card__",E="app-service.js",ge="LynxGetSourceMapReleaseError",oe={filename:"lynx_core",slot:"df0498fd4b09f634e6135a72ccd7ea940966efe8",release:"unknown_version"},Ne=function(){return this||(0,eval)("this")}(),d=Ne;function w(e){return nativeConsole}var Oe=function(){return this||(0,eval)("this")}(),Ve=w(`groupId:${Oe.groupId||"-1"}`),ie=nativeConsole;function ye(e){let t=typeof e;return"object"!==t?t:Array.isArray(e)?"array":null==e?"null":e instanceof Date?"date":e instanceof RegExp?"regExp":"object"}function R(e){return"string"==typeof e}function k(e){return"object"===ye(e)}function se(e){return"function"===ye(e)}function F(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ce(e,Error)}}function Ce(e,t){try{return e instanceof t}catch{return!1}}var m=ie,B=class{constructor(){this.observersFunc=[]}registerObserver(e){if(this.observersFunc.includes(e))return m.log("Subject: Observer has been attached already.");this.observersFunc.push(e)}removeObserver(e){let t=this.observersFunc.indexOf(e);if(-1===t)return m.log("Subject: Nonexistent observer.");this.observersFunc.splice(t,1)}notifyDataChange(e){this.observersFunc.forEach(t=>{if("function"==typeof t)try{t(e)}catch(e){m.log("SharedData change and notifyDataChange error info:"+e)}})}};d.multiApps={},d.currentAppId="",d.globComponentRegistPath="",d.sharedData={},d.globDynamicComponentEntry=_,d.shareDataSubject=new B,d.TaroLynx={},d.bundleSupportLoadScript=!0;var{loadScript:at}=d,l=d,q=class extends Error{constructor(e,t){super(e),t&&(this.stack=t)}},j=class extends q{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ae=class extends q{constructor(){super(...arguments),this.kind="USER_ERROR"}},g=class extends ae{constructor(){super(...arguments),this.name="USER_RUNTIME_ERROR"}},y=class extends j{constructor(){super(...arguments),this.name="INTERNAL_RUNTIME_ERROR"}},G=class extends j{constructor(){super(...arguments),this.name="INVOKE_ERROR"}},Ie=/\d+/,v=class r{constructor(e){this.major=0,this.minor=0,this.revision=0,this.build=0,e=String(e),[this.major=0,this.minor=0,this.revision=0,this.build=0]=e.split(".").map(e=>{let t=Ie.exec(e);return t&&t.length>0?+t[0]:0})}gt(e){return"string"==typeof e&&(e=new r(e)),this.major>e.major||!(this.major<e.major)&&(this.minor>e.minor||!(this.minor<e.minor)&&(this.revision>e.revision||!(this.revision<e.revision)&&(this.build>e.build||(this.build<e.build,!1))))}eq(e){return"string"==typeof e&&(e=new r(e)),this.major===e.major&&this.minor===e.minor&&this.revision===e.revision&&this.build===e.build}lt(e){return!this.eq(e)&&!this.gt(e)}gte(e){return this.eq(e)||this.gt(e)}lte(e){return this.eq(e)||this.lt(e)}},_t=new v("2.4"),mt=new v("2.7"),ht=new v("2.9"),ft=new v("2.12"),Et=new v("2.14");function h(e,t,r){let{originError:i,errorCode:n,errorLevel:s,runType:a=oe}=r??{};m.error("The following error occurred in the JSRuntime:"),m.error(`${e?.message}
2
+ ${e?.stack}`),e.cause=k(e.cause)?JSON.stringify(e.cause):e.cause;try{t.reportException(e,{...a,buildVersion:"unknown_version",versionCode:"unknown_version",errorCode:n,errorLevel:s})}catch(e){m.error(`reportError err:
3
+ `,e)}}var I=class{constructor(e,t){this.getApp=e,this.getNativeApp=t,this.setSourceMapRelease=e=>{F(e)&&e.name===u.kGetSourceMapReleaseErrorName&&R(e.message)&&R(e.stack)?this.getNativeApp().__SetSourceMapRelease({name:e.name,message:e.message,stack:e.stack}):JSON.stringify(e)},this.getSourceMapRelease=e=>{let t=this.getNativeApp().__GetSourceMapRelease(e);return t||(t=this.getNativeApp().__GetSourceMapRelease(u.kDefaultSourceMapURL)),t},this.getApp=e,this.getNativeApp=t}rebind(e){this.getApp=e}},V=class r{static{this.count=0}constructor(e){this.effect=e,this.id="__lynx-inner-js-animation-"+r.count++}cancel(){this.effect.target.cancelAnimate(this)}pause(){this.effect.target.pauseAnimate(this)}play(){this.effect.target.playAnimate(this)}},$=class{constructor(e,t,r){this.target=e,this.keyframes=t,this.options=r}},Q=class{constructor(e,t){this.keyframes=e,this.options=t}},Y=class{constructor(e,t,r){this.id=e,this.effect=new Q(t,r)}},L=class{constructor(e,t,r){this._root=e,this._idSelector="#"+t,this._lynx=r,this._element=void 0}ensureElement(){this._element||(this._element=this._lynx.createElement(this._root,this._idSelector))}animate(e,t){this.ensureElement();let r=new V(new $(this,e,t));return this._element.animate(0,r.id,e,t),r}playAnimate(e){this._element.animate(1,e.id,void 0,void 0)}pauseAnimate(e){this._element.animate(2,e.id,void 0,void 0)}cancelAnimate(e){this._element.animate(3,e.id,void 0,void 0)}finishAnimate(e){this._element.animate(4,e.id,void 0,void 0)}setProperty(e,t){if(this.ensureElement(),"string"==typeof e&&"string"==typeof t)this._element.setProperty({[e]:t});else if("object"==typeof e)this._element.setProperty(e);else throw Error(`setProperty's param must be string or object. While current type is ${typeof e} and ${typeof t}.`)}},ve=L,A=class r{constructor(e,t,r){this._component=e,this._taskQueue=t,this._native_proxy=r,this._fire_immediately=!1,this._root_unique_id=void 0}static fromQuery(e,t){return new r(t??e._component,e._taskQueue.slice(),e._native_proxy)}static newEmptyQuery(e,t){return new r(t??"",[],e)}commitTask(e){let t=r.fromQuery(this,this._component);return(t._taskQueue.push(e),this._fire_immediately)?void t.exec():t}in(e){return e.createSelectorQuery(this)}select(e){return new S(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectAll(e){return new S(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!1})}selectReactRef(e){if(this._taskQueue.length){let e="selectReactRef() should be called before any other selector query methods";nativeConsole.warn(e);let t=Error(e);h(new G(e,t.stack),this._native_proxy.nativeApp);return}return this._fire_immediately=!0,new S(this,{type:1,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectRoot(){return this.select("")}selectUniqueID(e){return new S(this,{type:2,identifier:e.toString(),component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}exec(){for(let e=0;e<this._taskQueue.length;++e)this._taskQueue[e](this._native_proxy)}setRoot(e){return this._root_unique_id=Number(e),this}},S=class{static{this.nodePool={}}constructor(e,t){this._nodeSelectToken=t,this._selectorQuery=e}invoke(e){let t=t=>{let r=t=>{0===t.code?e.success&&e.success(t.data):e.fail&&e.fail(t)};this._nodeSelectToken.first_only?t.nativeApp.invokeUIMethod(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e.method,e.params??{},r,this._nodeSelectToken.root_unique_id):r({code:5,data:"selectAll not supported for invoke method"})};return this._selectorQuery.commitTask(t)}path(e){let t=t=>{let r=t=>{e&&e(t.data,t.status)};t.nativeApp.getPathInfo(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,r,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}fields(e,t){let r=r=>{let i=i=>{if(e.query){let t=t=>{t.query=A.newEmptyQuery(r),t.query.setRoot(t.unique_id.toString()),e.unique_id||delete t.unique_id};if(this._nodeSelectToken.first_only){let e=i.data;e&&t(e)}else for(let e of i.data)t(e)}t&&t(i.data,i.status)},n=[];for(let t in e){if("query"==t&&!0==e[t]&&!e.unique_id){n.push("unique_id");continue}e[t]&&n.push(t)}r.nativeApp.getFields(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,n,i,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(r)}animate(e){let t=[];Array.isArray(e)?t=e:t.push(e);let r=e=>{t.forEach(t=>{e.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,0,t?.id,t?.effect?.keyframes,t?.effect?.options)})};return this._selectorQuery.commitTask(r)}animationOperate(e,t){let r=[];Array.isArray(t)?r=t:r.push(t);let i=t=>{r.forEach(r=>{t.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e,r,null,null)})};return this._selectorQuery.commitTask(i)}playAnimation(e){return this.animationOperate(1,e)}pauseAnimation(e){return this.animationOperate(2,e)}cancelAnimation(e){return this.animationOperate(3,e)}finishAnimation(e){return this.animationOperate(4,e)}setNativeProps(e){let t=t=>{t.nativeApp.setNativeProps(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,e,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}},b=class r{constructor(e,t,i,n){this.getNativeApp=e,this.getApp=t,this.Promise=i,this.getNativeLynx=n,this.setTimeout=this.getApp().wrapReport(this.getNativeApp().setTimeout,"setTimeout Error"),this.setInterval=this.getApp().wrapReport(this.getNativeApp().setInterval,"setInterval Error"),this.clearInterval=this.getNativeApp().clearInterval,this.clearTimeout=this.getNativeApp().clearTimeout,this.resumeExposure=this.getApp()._apiList.resumeExposure,this.requireModule=(e,t,i)=>{if(this.requireModule.cache[e])return this.requireModule.cache[e];let n=this.getApp().requireModule(e,t,i);return this.requireModule.cache[e]=n,n},this.requireModuleAsync=(e,t)=>{(t??=e=>{e&&this.getApp().handleUserError(e)},this.requireModuleAsync.cache[e])?t(null,this.requireModuleAsync.cache[e]):this.getApp().requireModuleAsync(e,(i,n)=>{i||(this.requireModuleAsync.cache[e]=n),t(i,n)})},this.createElement=(e,t)=>this.getNativeLynx().createElement(e,t),this.getElementById=e=>new ve("",e,this),this.reportError=(e,t)=>{let i;if(F(e))i=e;else{let t;i=Error(t="string"!=typeof e?JSON.stringify(e):e)}let{level:n="error"}=t||{},s;switch(n){case"error":default:s=1;break;case"warning":s=2;break;case"fatal":s=0}this.getApp().handleUserError(i,void 0,s)},this.registerModule=(e,t)=>this.getApp().registerModule(e,t),this.getJSModule=e=>this.getApp().getJSModule(e),this.getTextInfo=this.getApp()._apiList.getTextInfo,this.addFont=(e,t)=>{if(!k(e))throw Error("The first argument must be object type");if(!R(e["font-family"])||!R(e.src))throw Error("The font value must have font-family and src");if(!se(t))throw Error("The second argument must be function type");this.getNativeLynx().addFont(e,t)},this.stopExposure=this.getApp()._apiList.stopExposure,this.setObserverFrameRate=this.getApp()._apiList.setObserverFrameRate,this.performance=this.getApp().performance,this.beforePublishEvent=this.getApp()._aopManager._beforePublishEvent,this.setSessionStorageItem=(e,t)=>{this.dispatchSessionStorageEvent({type:"__SetSessionStorageItem",data:{key:e,value:t}})},this.getSessionStorageItem=(e,t)=>{this.getNativeApp().getSessionStorageItem(e,t)},this.subscribeSessionStorage=(e,t)=>{let i=r.__registerSharedDataCounter++;return this.getNativeApp().subscribeSessionStorage(e,i,t),i},this.unsubscribeSessionStorage=(e,t)=>{this.dispatchSessionStorageEvent({type:"__UnSubscribeSessionStorage",data:{key:e,listenerId:t}})},this.getDevtool=this.getNativeLynx().getDevtool,this.getCoreContext=this.getNativeLynx().getCoreContext,this.getJSContext=this.getNativeLynx().getJSContext,this.getUIContext=this.getNativeLynx().getUIContext,this.getNative=this.getNativeLynx().getNative,this.getEngine=this.getNativeLynx().getEngine,this.getCustomSectionSync=this.getNativeLynx().getCustomSectionSync,this.accessibilityAnnounce=this.getNativeApp().nativeModuleProxy.LynxAccessibilityModule?.accessibilityAnnounce,this.requestResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.requestResourcePrefetch,this.cancelResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.cancelResourcePrefetch,this.setSharedData=(e,t)=>{l.sharedData[e]=t;let i={};i[e]=t,l.shareDataSubject.notifyDataChange(i)},this.getSharedData=e=>l.sharedData[e],this.registerSharedDataObserver=e=>l.shareDataSubject.registerObserver(e),this.removeSharedDataObserver=e=>l.shareDataSubject.removeObserver(e),this.triggerLepusGlobalEvent=(e,t)=>this.getNativeApp().triggerLepusGlobalEvent(e,t),this.reload=(e,t)=>{this.getNativeLynx().reload(e,t)},this.fetchDynamicComponent=(e,t,i,n)=>this.getNativeLynx().fetchDynamicComponent(e,t,i,n),this.QueryComponent=(e,t)=>{let i=()=>{t({code:0,data:{url:e,sync:!0,error_message:"",mode:"cache"},detail:{schema:e,cache:!1,errMsg:""}})};if(this.getApp().loadedDynamicComponentsSet.has(e))return void i();let n=n=>{!0===n.__hasReady?(l.loadDynamicComponent(this.getApp(),e),i()):t(n)};this.getNativeLynx().QueryComponent(e,n)},this.loadDynamicComponent=(e,t,i={})=>new this.Promise((n,s)=>{let a=[],o;(Array.isArray(e)?(a=e,o=t):"string"==typeof t?(a=[e],o=t):(o=e,i=t),this.getApp().loadedDynamicComponentsSet.has(o))?n({code:0,data:{url:o,sync:!1,error_message:"",mode:"normal"},detail:{schema:o,cache:!1,errMsg:""}}):this.getNativeLynx().fetchDynamicComponent(o,i,e=>{e&&0==e.code?n(e):s(e)},a)}),this.fetch=(e,t)=>new this.Promise((i,n)=>{let s=new(this.getApp())._RequestClass(e,t),a=s.signal;if(a.aborted)return n(a.reason);a.addEventListener("abort",e=>{n(a.reason)});let o={method:s.method,url:s.url,origin:this.getNativeApp().__pageUrl,headers:Object.fromEntries(s.headers.entries()),body:s._arrayBuffer,lynxExtension:s.lynxExtension},h=s.lynxExtension.useStreaming;this.getApp().NativeModules.LynxFetchModule.fetch(o,e=>{if(!a.aborted)try{let t=new(this.getApp())._ReadableStreamClass,n=new(this.getApp())._ResponseClass(h?t:e.body,e);if(h){let e=n.lynxExtension.streamingId;this.getApp().GlobalEventEmitter.addListener(e,e=>{let i=e.event;"onData"===i?t.onData(e.data):"onEnd"===i?t.onEnd():"onError"===i&&t.onError(e.error)})}i(n)}catch{n(TypeError(e.statusText))}},e=>{a.aborted||n(TypeError(e.message))})}),this.createSelectorQuery=e=>A.newEmptyQuery({nativeApp:this.getNativeApp(),lynx:this},e),this.requestAnimationFrame=e=>this.getNativeApp().requestAnimationFrame(e),this.cancelAnimationFrame=e=>this.getNativeApp().cancelAnimationFrame(e),this.loadScript=this.getNativeLynx().loadScript,this.fetchBundle=this.getNativeLynx().fetchBundle,this.__addReporterCustomInfo=e=>{this.getNativeApp().__addReporterCustomInfo(e)},this.getModuleLoader=()=>l["napiRestrictedLoader"+this.getApp().nativeAppId],this.createAnimation=(e,t,i)=>new Y(e,t,i),this.init(void 0)}static{this.__registerSharedDataCounter=0}rebind(e){this.init(e)}init(e){if(e)this.getApp=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{};else{let e={};this.requireModule.cache=e,this.requireModuleAsync.cache=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{},this._switches={}}}dispatchSessionStorageEvent(e){0!=this.getCoreContext().dispatchEvent(e)&&this.getJSContext().dispatchEvent(e)}queueMicrotask(e){this.getNativeLynx().queueMicrotask(e)}},x=class{constructor(e){this._internal_callLynxSetModule=e,this._events=new Map}getEventsSize(e){return this._events.get(e)?.length}setCallLynxSetModule(e){this._internal_callLynxSetModule=e}addListener(e,t,r){let i=this._events.get(e);"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!0]),i?i.push({listener:t,context:r}):this._events.set(e,[{listener:t,context:r}])}removeListener(e,t){if("function"!=typeof t)throw Error("removeListener only takes instances of Function");let r=this._events.get(e),i=0;Array.isArray(r)&&r.some(e=>{if(t===e.listener)return!0;i++})&&r.splice(i,1),"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!1])}emit(e,t){let r=this._events.get(e);Array.isArray(r)&&r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.apply(i||this,t)})}removeAllListeners(e){"string"==typeof e?this._events.delete(e):this._events=new Map}trigger(e,t){let r=this._events.get(e);Array.isArray(r)&&("string"==typeof t&&(t=JSON.parse(t)),r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.call(i||this,t)}))}toggle(e,...t){this.emit(e,t)}},J=class{constructor(){this._beforePublishEvent=new le}},le=class extends x{add(e,t,r){return super.addListener(e,t,r),this}remove(e,t){return super.removeListener(e,t),this}},T=x,K=class{constructor(e){this._textInfoModule=void 0,this.getTextInfo=(e,t)=>(void 0===this._textInfoModule&&(this._textInfoModule=this._nativeModules.LynxTextInfoModule),this._textInfoModule&&this._textInfoModule.getTextInfo?this._textInfoModule.getTextInfo(e,t):{width:e.length}),this._nativeModules=e}},H=class{constructor(e){this.resumeExposure=()=>{this._exposureModule.resumeExposure()},this.stopExposure=e=>{this._exposureModule.stopExposure(e)},this.setObserverFrameRate=e=>{this._exposureModule.setObserverFrameRate(e)},this._nativeModules=e,this._exposureModule=this._nativeModules.LynxExposureModule}},ce=class{constructor(e,t){this._selector=e,this._callback=t}invokeCallback(e){this._callback(e)}},pe=class{constructor(e,t,r){this._id=e,this._intersectionObserverModule=t,this._manager=r,this._observationTargets=[],this._defaultMargins={left:0,right:0,top:0,bottom:0}}relativeTo(e,t){return this._intersectionObserverModule.relativeTo(this._id,e,t||this._defaultMargins),this}relativeToViewport(e){return this._intersectionObserverModule.relativeToViewport(this._id,e||this._defaultMargins),this}relativeToScreen(e){return this._intersectionObserverModule.relativeToScreen(this._id,e||this._defaultMargins),this}observe(e,t){this._observationTargets.push(new ce(e,t)),this._intersectionObserverModule.observe(this._id,e,this._observationTargets.length-1)}disconnect(){this._intersectionObserverModule.disconnect(this._id),this._manager.removeObserver(this._id)}invokeCallback(e,t){e<this._observationTargets.length&&this._observationTargets[e].invokeCallback(t)}},W=class{constructor(e){this._nativeModules=e,this._observerId=0,this._observers={},this._defaultOptions={thresholds:[0],initialRatio:0,observeAll:!1}}createIntersectionObserver(e,t){let r=this._nativeModules.IntersectionObserverModule,i=new pe(this._observerId,r,this);return this._observers[this._observerId]=i,r.createIntersectionObserver(this._observerId,e,t||this._defaultOptions),this._observerId++,i}getObserver(e){return this._observers[e]}removeObserver(e){this._observers[e]=null}},xe={onPerformance:"lynx.performance.onPerformanceEvent"},X=class{constructor(e,t){this._emitter=e,this._onPerformance=t,this._observedNames=[]}observe(e){this._observedNames.length>0||(this._observedNames=e,this._emitter.addListener(xe.onPerformance,this.onPerformanceEvent.bind(this)))}disconnect(){this._observedNames=[],this._emitter.removeListener(xe.onPerformance,this.onPerformanceEvent.bind(this))}onPerformanceEvent(e){if(0===this._observedNames.length)return;let t=e.entryType+"."+e.name;(this._observedNames.includes(t)||this._observedNames.includes(e.entryType))&&this._onPerformance(e)}},N={onSetup:"lynx.performance.timing.onSetup",onUpdate:"lynx.performance.timing.onUpdate"},P=class{constructor(e,t){this._emitter=e,this._generatePipelineOptions=t.generatePipelineOptions,this._onPipelineStart=t.onPipelineStart,this._markTiming=t.markPipelineTiming,this._profileStart=t.profileStart,this._profileEnd=t.profileEnd,this._profileMark=t.profileMark,this._profileFlowId=t.profileFlowId,this._isProfileRecording=t.isProfileRecording,this._bindPipelineIdWithTimingFlag=t.bindPipelineIdWithTimingFlag}profileStart(e,t){this._profileStart(e,t)}profileEnd(){this._profileEnd()}profileMark(e,t){this._profileMark(e,t)}profileFlowId(){return this._profileFlowId()}createObserver(e){return new X(this._emitter,e)}isProfileRecording(){return this._isProfileRecording()}addTimingListener(e){this._emitter.addListener(N.onSetup,e.onSetup,e),this._emitter.addListener(N.onUpdate,e.onUpdate,e)}removeTimingListener(e){this._emitter.removeListener(N.onSetup,e.onSetup),this._emitter.removeListener(N.onUpdate,e.onUpdate)}removeAllTimingListener(){this._emitter.removeAllListeners(N.onSetup),this._emitter.removeAllListeners(N.onUpdate)}_initializeAndStartPipeline(){let e=this._generatePipelineOptions();return e&&this._onPipelineStart(e.pipelineID),e}_checkAndBindTimingFlag(e,t){if(!e)return;let r="__lynx_timing_flag";t[r]&&(this._bindPipelineIdWithTimingFlag(e.pipelineID,t[r]),this._markTiming(e.pipelineID,"update_set_state_trigger"),e.needTimestamps=!0)}},Re=P,Se=l.LynxJSBI,f=class r{constructor(e){for(let t in this._cachedFunctions={},e)Object.defineProperty(this,t,{get(){if(this._cachedFunctions[t])return this._cachedFunctions[t];let r=e[t];return"function"==typeof r&&(this._cachedFunctions[t]=r),r}})}static create(e){return new r(e)}};function Ae(e,t,r,i,n=!1){let{getPromise:s}=l;return"function"==typeof s?s({nextTick:n?i:t=>e(t,0),setTimeout:e,onUnhandled:t,clearTimeout:r}):l.Promise}var Me,M=class{constructor(){}decode(e){return 0===e.byteLength?"":(e instanceof DataView?e=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):ArrayBuffer.isView(e)&&(e=e.buffer),globalThis.TextCodecHelper.decode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}get fatal(){return!1}get ignoreBOM(){return!0}},z=class{constructor(){}encode(e){return new Uint8Array(globalThis.TextCodecHelper.encode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}},O=class r{constructor(){this._arrayBuffer=new ArrayBuffer(0),this._bodyStream=null,this._bodyUsed=!1}safeUseBody(e){if(this._bodyUsed)return;let t=e(this._arrayBuffer);return this._bodyUsed=!0,this._arrayBuffer=null,t}cloneArrayBuffer(e){return e.slice(0)}setBody(e){if(e instanceof r){if(e._bodyUsed||e._bodyStream)throw Error("body used, or try to copy body stream");this._arrayBuffer=this.cloneArrayBuffer(e._arrayBuffer)}else e instanceof ArrayBuffer?this._arrayBuffer=this.cloneArrayBuffer(e):e instanceof DataView?this._arrayBuffer=this.cloneArrayBuffer(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):ArrayBuffer.isView(e)?this._arrayBuffer=this.cloneArrayBuffer(e.buffer):e&&(this._arrayBuffer=new z().encode(e.toString()).buffer),globalThis.ReadableStream&&e instanceof ReadableStream&&(this._bodyStream=e)}arrayBuffer(){return Promise.resolve(this.safeUseBody(e=>e))}get body(){if(this._bodyUsed)throw Error("body used");return this._bodyUsed=!0,this._bodyStream}text(){return Promise.resolve(this.safeUseBody(e=>new M().decode(e)))}json(){return Promise.resolve(this.safeUseBody(e=>JSON.parse(new M().decode(e))))}get bodyUsed(){return this._bodyUsed}},D=class r{constructor(e){if(this._headers_map=new Map,this[Me]="Headers",null===e||"number"==typeof e)throw TypeError("Headers init with null/number");if(e instanceof r)for(let[t,i]of e)this.append(t,i);else Array.isArray(e)?e.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(" "):t)}):e&&Object.getOwnPropertyNames(e).forEach(t=>{let i=e[t];this.append(t,Array.isArray(i)?i.join(" "):i)})}[(Me=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(let[e,t]of this._headers_map)yield e}*values(){for(let[e,t]of this._headers_map)yield t}*entries(){for(let e of this._headers_map)yield e}has(e){return this._headers_map.has(e)}get(e){return this._headers_map.get(e)??null}set(e,t){this._headers_map.set(e,String(t))}append(e,t){let r=this.has(e)?`${this.get(e)}, ${t}`:t;this.set(e,r)}delete(e){this.has(e)&&this._headers_map.delete(e)}forEach(e,t){for(let[r,i]of this.entries())e.call(t,i,r,this)}},Z=class r extends T{get aborted(){return this._aborted}get reason(){return this._reason}constructor(){super(),this._aborted=!1}get[Symbol.toStringTag](){return"[object AbortSignal]"}dispatchEvent(e){"abort"===e.type&&(this._aborted=!0,this._reason=e.reason,"function"==typeof this.onabort&&this.onabort.call(this,e)),super.emit(e.type,e)}addEventListener(e,t){super.addListener(e,t)}removeEventListener(e,t){super.removeListener(e,t)}static __create(){return new r}};function de(e){return class e extends O{get url(){return this._url}get headers(){return this._headers}get method(){return this._method}get signal(){return this._signal}get lynxExtension(){return this._lynxExtension}constructor(t,r){if(super(),r=r||{},t instanceof e){if(t.bodyUsed)throw TypeError("Already read");this._url=t.url,r.headers||(this._headers=new D(t.headers)),this._method=t.method,this._signal=t.signal,this.setBody(t._arrayBuffer)}else this._url=String(t);if((r.headers||!this.headers)&&(this._headers=new D(r.headers)),this._method=r.method||this.method||"GET",this._method=this._method.toUpperCase(),("GET"===this.method||"HEAD"===this.method)&&r.body)throw TypeError("Body not allowed for GET or HEAD requests");"u">typeof r.signal&&(this._signal=r.signal),this._signal=this._signal||Z.__create(),this._lynxExtension=r.lynxExtension||{},this._headers.get("Content-Type")||("string"==typeof r.body?this._headers.set("Content-Type","text/plain;charset=UTF-8"):globalThis.URLSearchParams&&r.body instanceof URLSearchParams?this._headers.set("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"):r.body instanceof ArrayBuffer||this._headers.set("Content-Type","text/plain;charset=UTF-8")),this.setBody(r.body)}clone(){let t=new e(this,{method:this.method});return t.setBody(this),t}}}function _e(e){return class e extends O{get url(){return this._url}get status(){return this._status}get statusText(){return this._statusText}get ok(){return this._ok}get headers(){return this._headers}get lynxExtension(){return this._lynxExtension}constructor(e,t){if(super(),t=t||{},this._status=void 0===t.status?200:t.status,this._status<200||this._status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this._ok=this._status>=200&&this._status<300,this._statusText=void 0===t.statusText?"":""+t.statusText,this._headers=new Headers(t.headers),this._url=t.url||"",this._lynxExtension=t.lynxExtension||{},this.setBody(e)}clone(){let t=new e(null,{status:this._status,statusText:this._statusText,headers:new Headers(this._headers),url:this._url});return t.setBody(this),t}}}function he(e){return class{constructor(){this.__dataReceived=[],this.__done=!1,this.__cancelled=!1,this.__locked=!1,this.__eventCenter=new T}onData(e){this.__cancelled||(this.__dataReceived.push(e),this.__eventCenter.emit("waitSignal",null))}onEnd(){this.__done=!0,this.__eventCenter.emit("waitSignal",null)}onError(e){this.__error=Error(e),this.__eventCenter.emit("waitSignal",null)}processRead(e,t){if(this.__error)return t(this.__error);if(this.__cancelled||this.__done&&0==this.__dataReceived.length)return e({done:!0,value:void 0});if(this.__dataReceived.length>0)return e({done:!1,value:this.__dataReceived.shift()});let r=()=>{this.__eventCenter.removeListener("waitSignal",r),this.processRead(e,t)};this.__eventCenter.addListener("waitSignal",r,this)}__read(){return new e((e,t)=>{this.processRead(e,t)})}get locked(){return this.__locked}cancel(t){return this.__cancelled=!0,this.__dataReceived=null,this.__eventCenter.emit("waitSignal",null),e.resolve(t)}getReader(){return this.__locked?null:(this.__locked=!0,new me(this))}}}var me=class{constructor(e){this.__stream=e}cancel(e){return this.__stream.cancel(e)}read(){return this.__stream.__read()}},ee=class{static{this.EXECUTE_LOADED_SCRIPT="executeLoadedScript"}},u=class _BaseApp{constructor(e,t){this.dataTypeSet=new Set(["string","number","array","object","boolean","null","function"]),this.removeInternalEventListenersCallbacks=[],this.setSourceMapRelease=e=>{this.Reporter.setSourceMapRelease(e)},this.getSourceMapRelease=e=>this.Reporter.getSourceMapRelease(e),this.setupGetTextInfoApi=()=>{this._apiList.getTextInfo=(e,t)=>this._textInfoManager.getTextInfo(e,t)},this.setupExposureApi=()=>{this._apiList.resumeExposure=()=>{this._exposureManager.resumeExposure()},this._apiList.stopExposure=e=>{this._exposureManager.stopExposure(e||{sendEvent:!0})},this._apiList.setObserverFrameRate=e=>{this._exposureManager.setObserverFrameRate(e||{forPageRect:20,forExposureCheck:20})}},this.requestAnimationFrame=e=>this._nativeApp.requestAnimationFrame(e),this.cancelAnimationFrame=e=>this._nativeApp.cancelAnimationFrame(e),this.__removeInternalEventListeners=()=>{this.removeInternalEventListenersCallbacks.forEach(e=>{e()})},this.initBase(e),t?t.transferSingletonData(this,this.__internal__callLynxSetModule.bind(this)):this.initExtra(e),this.setTimeout=this.nativeApp.setTimeout,this.setInterval=this.nativeApp.setInterval,this.clearInterval=this.nativeApp.clearInterval,this.clearTimeout=this.nativeApp.clearTimeout,this.addInternalEventListeners()}initExtra(e){let{lynx:t}=e;this.modules={},this._lazyCallableModules=new Map,this._nativeApp=f.create(this._nativeApp),this.sharedConsole=w(`runtimeId:${this.nativeAppId}`),this.dynamicComponentExports={},this.loadedDynamicComponentsSet=new Set,this._lazyCallableModules=new Map,this.Reporter=new I(()=>this,()=>this.nativeApp),this.GlobalEventEmitter=new T(this.__internal__callLynxSetModule.bind(this)),this._intersectionObserverManager=new W(this.NativeModules),this._exposureManager=new H(this.NativeModules),this.setupExposureApi(),this._aopManager=new J,this.beforePublishEvent=this._aopManager._beforePublishEvent,this.performance=new Re(this.GlobalEventEmitter,this.nativeApp);let r=this.setupPromise(this.nativeApp.setTimeout,this.nativeApp.clearTimeout,t);this.lynx=this.createLynx(t,r),this.setupJSModule(),this.setupIntersectionApi(),this.setupFetchAPI(r)}initBase(e){let{nativeApp:t,params:r}=e;this.nativeAppId=t.id,this._params=r,this._nativeApp=t,this.NativeModules=t.nativeModuleProxy,this.LynxUIMethodModule=t.nativeModuleProxy.LynxUIMethodModule,this.LynxTestModule=t.nativeModuleProxy.LynxTestModule,this.LynxResourceModule=t.nativeModuleProxy.LynxResourceModule,this.LynxAccessibilityModule=t.nativeModuleProxy.LynxAccessibilityModule,this.LynxSetModule=t.nativeModuleProxy.LynxSetModule,this._apiList={},this._textInfoManager=new K(this.NativeModules),this.setupGetTextInfoApi()}static{this.kDefaultSourceMapURL="default"}static{this.kGetSourceMapReleaseErrorName=ge}set __sourcemap__release__(e){let t=Error();t.name="LynxGetSourceMapReleaseError",t.message=e,t.stack=`at <anonymous> (${_BaseApp.kDefaultSourceMapURL}:1:1)`,this.setSourceMapRelease(t)}destroy(){this.__removeInternalEventListeners(),this._nativeApp=null,this._params=null,this._lazyCallableModules=null,this.GlobalEventEmitter=null}registerModule(e,t){this._lazyCallableModules[e]=t}getJSModule(e){return this._lazyCallableModules[e]}setupJSModule(){this.registerModule("GlobalEventEmitter",this.GlobalEventEmitter),this.registerModule("Reporter",this.Reporter)}setupFetchAPI(e){this._createResponseClass=_e,this._createRequestClass=de,this._createReadableStreamClass=he,this._RequestClass=l.Request??de(e),this._ResponseClass=l.Response??_e(e),this._ReadableStreamClass=l.ReadableStream??he(e),l.Request||(l.Request=this._RequestClass),l.Response||(l.Response=this._ResponseClass),l.ReadableStream||(l.ReadableStream=this._ReadableStreamClass)}__internal__callLynxSetModule(e,t){let r=this.LynxSetModule[e];r&&Function.prototype.apply.call(r,void 0,t)}get nativeApp(){return this._nativeApp}set nativeApp(e){this._nativeApp=e}get params(){return this._params}set apiList(e){this._apiList={...this._apiList,...e}}setupIntersectionApi(){let e=this;this._apiList.createIntersectionObserver=function(t,r){let{componentId:i=""}=t;return e._intersectionObserverManager.createIntersectionObserver(i,r)},this.lynx.createIntersectionObserver=this._apiList.createIntersectionObserver}onIntersectionObserverEvent(e,t,r){let i=this._intersectionObserverManager.getObserver(e);i&&i.invokeCallback(t,r)}reportError(e){return this.lynx.reportError(e)}handleError(e,t,r){h(e,this.nativeApp,{originError:t,getSourceMapRelease:this.getSourceMapRelease,errorLevel:r})}handleUserError(e,t,r,i){let{message:n,name:s,stack:a}=e||{};n||({message:n,name:s,stack:a}=Error(JSON.stringify(e)));let o=new g(i?`${i} ${s}: ${n}`:`${s}: ${n}`,a);o.cause=t,this.handleError(o,e,r)}handleInternalError(e,t){let{message:r,name:i,stack:n}=e||{};r||({message:r,name:i,stack:n}=Error(JSON.stringify(e)));let s=new y(`${i}: ${r}`,n);s.cause=t,this.handleError(s,e)}getBoolEnv(e){return this.nativeApp.getEnv(e)?.toLowerCase()==="true"}static{this._$factoryCache={}}_$executeInit(e,{path:t,entryName:r}){let i;if(e&&e.init)i=e.init.bind(e);else if(l.initBundle)i=l.initBundle.bind(l.initBundle),delete l.initBundle;else throw new g(`load failed. path:${t},entryName:${r}`);try{this.lynx.performance.profileStart(ee.EXECUTE_LOADED_SCRIPT,{args:{path:t}});let e=i({tt:this});return _BaseApp._$factoryCache[t]=i,e}finally{this.lynx.performance.profileEnd()}}_$executeJSON(e,{path:t}){let r=JSON.parse(e),i=()=>r;return _BaseApp._$factoryCache[t]=i,r}requireModule(e,t,r){let i=_BaseApp._$factoryCache[e];if(i)return this._$executeInit({init:i},{path:e,entryName:t});if(e.split("?")[0].endsWith(".json")){let i=this.nativeApp.readScript(e,{dynamicComponentEntry:t??_,...r});return this._$executeJSON(i,{path:e,entryName:t})}let n=this.nativeApp.loadScript(e,t,r);return this._$executeInit(n,{path:e,entryName:t})}requireModuleAsync(e,t){let r=_BaseApp._$factoryCache[e];if(r)return void t(null,this._$executeInit({init:r},{path:e}));if(e.split("?")[0].endsWith(".json")){try{let r=this.nativeApp.readScript(e),i=this._$executeJSON(r,{path:e});t(null,i)}catch(e){t(e)}return}let i=Error();this.nativeApp.loadScriptAsync(e,(r,n)=>{if(r)return i.message=r,t(i);try{return t(null,this._$executeInit(n,{path:e}))}catch(e){return t(e)}})}require(path,params){let that=this;if("string"!=typeof path)throw Error("require args must be a string");let entryName=params&&params.dynamicComponentEntry?params.dynamicComponentEntry:_;that.modules[entryName]||(that.modules[entryName]={});let module=that.modules[entryName][path];if(!module){try{let tt=that,jsContent=that._nativeApp.readScript(path,{dynamicComponentEntry:entryName});eval(jsContent),module=that.modules[entryName][path]}catch(r){this.handleError(new g(`eval user: ${that._nativeApp.id} error: ${r.message}`,r.stack),r)}if(!that.modules[entryName][path])throw Error(`module ${path} in ${entryName} is not defined in card: ${that._nativeApp.id}`)}if(!module.hasRun){let{factory:r}=module,e={exports:{}},t;if(module.hasRun=!0,module.exports=e.exports,"function"==typeof r){let n=Ue.call(that,path),o=that;t=r(n,e,e.exports,that.Card.bind(o),that.setTimeout,that.setInterval,that.clearInterval,that.clearTimeout,that.NativeModules,that._apiList,that.sharedConsole,that.Component.bind(o),params?.ReactLynx,that.nativeAppId,that.Behavior.bind(o),Se,that.lynx,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,that.lynx.fetch,void 0,void 0,void 0,void 0,void 0,void 0,that.requestAnimationFrame,that.cancelAnimationFrame),module.exports=e.exports||t}}return module.exports}define(e,t,r){r=r||_,this.modules[r]||(this.modules[r]={}),this.modules[r][e]={hasRun:!1,factory:t.bind(this)}}callFunction(e,t,r){try{let i=this.getJSModule(e);"function"==typeof i[t]&&i[t].apply(i,r)}catch(r){this.handleUserError(r,{by:`${e}.${t}`})}}onAppError(e,t){this.handleInternalError(t)}saveDynamicComponentExports(e,t){this.dynamicComponentExports[e]=t}getDynamicComponentExports(e){return this.dynamicComponentExports[e]}Component(){}Card(){}Behavior(){}wrapReport(e,t){let r=this;function i(e){return function(...i){try{return e.apply(this,i)}catch(e){r.handleUserError(e,{by:t})}}}return function(t,...r){return Function.prototype.apply.call(e,void 0,[i(t),...r])}}setupPromise(e,t,r){let i=Ae(e,(e,t)=>{try{t&&(t.stack||(t=Error(JSON.stringify(t))),t.name="unhandled rejection",this.handleUserError(t))}catch{}},t,r.queueMicrotask,this._params?.pageConfigSubset?.enableMicrotaskPromisePolyfill??!1);return this.resolvedPromise=i.resolve(),i}addInternalEventListener(e,t,r){this.contextProxyTypeToMethod[e]().addEventListener(t,r),this.removeInternalEventListenersCallbacks.push(()=>{this.contextProxyTypeToMethod[e]().removeEventListener(t,r)})}addInternalEventListeners(){this.contextProxyTypeToMethod||(this.contextProxyTypeToMethod={0:()=>this.lynx.getCoreContext(),1:()=>this.lynx.getDevtool(),2:()=>this.lynx.getJSContext(),3:()=>this.lynx.getUIContext(),4:()=>this.lynx.getNative(),5:()=>this.lynx.getEngine()}),this.addInternalEventListener(0,"__OnNativeAppReady",()=>{this.onNativeAppReady()}),this.addInternalEventListener(0,"__NotifyGlobalPropsUpdated",e=>{this.updateGlobalProps(e.data)}),this.addInternalEventListener(0,"__OnLifecycleEvent",e=>{this.OnLifecycleEvent(e.data)}),this.addInternalEventListener(0,"__OnAppFirstScreen",()=>{this.onAppFirstScreen()}),this.addInternalEventListener(0,"__OnDynamicJSSourcePrepared",e=>{l.loadDynamicComponent(this,e.data)}),this.addInternalEventListener(0,"__OnAppEnterForeground",()=>{this.onAppEnterForeground()}),this.addInternalEventListener(0,"__OnAppEnterBackground",()=>{this.onAppEnterBackground()})}updateGlobalProps(e){}OnLifecycleEvent(e){}onNativeAppReady(){}onAppFirstScreen(){}onAppEnterBackground(){}onAppEnterForeground(){}};function De(e){let t=e.match(/(.*)\/([^/]+)?$/);return t?.[1]?t[1]:"./"}function Ue(e){let t=this,r=De(e);return function(e){let i=[],n=`${r}/${e}`.split("/"),s=n.length;if("string"!=typeof e)throw Error("require args must be a string");for(let r=0;r<s;++r){let a=n[r];if(""!==a&&"."!==a)if(".."===a){if(0===i.length)throw Error(`can't find module ${e} in app: ${t._nativeApp.id}`);i.pop()}else r+1<s&&".."===n[r+1]?r++:i.push(a)}let a=i.join("/");return a.endsWith(".js")||(a+=".js"),t.require(a)}}var te=class extends u{createLynx(e,t){let r=f.create(e);return new b(()=>this.nativeApp,()=>this,t,()=>r)}callBeforePublishEvent(e){if(0!==this._aopManager._beforePublishEvent.getEventsSize(e.type)){let t={...e};try{this._aopManager._beforePublishEvent.emit(t.type,[t])}catch(e){this.handleUserError(e,{by:"callBeforePublishEvent",type:t.type})}}}},fe=class{transferSingletonData(e,t){e.nativeApp=this.nativeApp,e.sharedConsole=this.sharedConsole,e.dynamicComponentExports=this.dynamicComponentExports,e.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,e._intersectionObserverManager=this.intersectionObserverManager,e._exposureManager=this.exposureManager,e._textInfoManager=this.textInfoManager,this.globalEventEmitter.setCallLynxSetModule(t),e.GlobalEventEmitter=this.globalEventEmitter,e._aopManager=this.aopManager,e.performance=this.performance,e.modules=this.modules,e._lazyCallableModules=this.lazyCallableModules,e.lynx=this.lynx,this.lynx.rebind(()=>e),e._apiList=this.apiList,this.Reporter.rebind(()=>e),e.Reporter=this.Reporter,e.resolvedPromise=this.resolvedPromise}},U=class extends u{constructor(e,t){super(e,void 0),this.fillSingletonData();try{t.srcName&&(delete this.lynx.requireModule.cache[t.srcName],delete u._$factoryCache[t.srcName],this.lynx.requireModule(t.srcName,_),this.dataTypeSet.add("undefined"))}catch(e){this.handleUserError(e)}}createLynx(e,t){let r=f.create(e);return new b(()=>this.nativeApp,()=>this,t,()=>r)}fillSingletonData(){this.singletonData=new fe,this.singletonData.nativeApp=this._nativeApp,this.singletonData.sharedConsole=this.sharedConsole,this.singletonData.dynamicComponentExports=this.dynamicComponentExports,this.singletonData.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,this.singletonData.intersectionObserverManager=this._intersectionObserverManager,this.singletonData.exposureManager=this._exposureManager,this.singletonData.textInfoManager=this._textInfoManager,this.singletonData.globalEventEmitter=this.GlobalEventEmitter,this.singletonData.aopManager=this._aopManager,this.singletonData.performance=this.performance,this.singletonData.modules=this.modules,this.singletonData.lazyCallableModules=this._lazyCallableModules,this.singletonData.lynx=this.lynx,this.singletonData.apiList=this._apiList,this.singletonData.Reporter=this.Reporter,this.singletonData.resolvedPromise=this.resolvedPromise}};function we(e,t,r){let{id:i}=e,{cardType:n}=t,s=!0,a;try{if(a="standalone"==n?new U({nativeApp:e,params:t,lynx:r},t):new te({nativeApp:e,params:t,lynx:r}),l.currentAppId=i,l.multiApps[i]=a,"standalone"===n)return e.setCard(a),!0;t.bundleSupportLoadScript,s=!0;try{delete a.lynx.requireModule.cache[E],delete u._$factoryCache[E],a.lynx.requireModule(E,_),a.lynx._switches.allowUndefinedInNativeDataTypeSet&&a.dataTypeSet.add("undefined")}catch(e){s=!1,a.handleUserError(e,void 0,void 0,"loadCard failed")}e.setCard(a)}catch(t){qe(e,t),s=!1}return s}function ke(e){l.multiApps[e].destroy(),delete l.multiApps[e]}function Fe(e){l.multiApps[e].callDestroyLifetimeFun()}function Be(e,t){if(e.loadedDynamicComponentsSet.has(t))return e.getDynamicComponentExports(t);let r=l.globDynamicComponentEntry;l.globDynamicComponentEntry=t;try{delete e.lynx.requireModule.cache[E],delete u._$factoryCache[E];let r=e.lynx.requireModule(E,t);return e.saveDynamicComponentExports(t,r),e.loadedDynamicComponentsSet.add(t),r}catch(t){e.handleUserError(t)}finally{l.globDynamicComponentEntry=r}}function qe(e,t,r){let{message:i,name:n,stack:s}=t||{};i||({message:i,name:n,stack:s}=Error(JSON.stringify(t)));let a=new y(`loadCard failed ${n}: ${i}`,s);a.cause=r,h(a,e,{originError:t,getSourceMapRelease:t=>{if(!e.__GetSourceMapRelease(t))return e.__GetSourceMapRelease(u.kDefaultSourceMapURL)}})}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__,(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},n=n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){var s=[];s.d=0,n.then(e=>{a[t]=e,i(s)},e=>{a[r]=e,i(s)});var a={};return a[e]=e=>e(s),a}}var o={};return o[e]=function(){},o[t]=n,o});__webpack_require__.a=(s,a,o)=>{o&&((l=[]).d=-1);var l,h,c,d,u=new Set,p=s.exports,_=new Promise((e,t)=>{d=t,c=e});_[t]=p,_[e]=e=>{l&&e(l),u.forEach(e),_.catch(function(){})},s.exports=_,a(i=>{h=n(i);var s,a=()=>h.map(e=>{if(e[r])throw e[r];return e[t]}),o=new Promise(t=>{(s=()=>t(a)).r=0;var r=e=>e!==l&&!u.has(e)&&(u.add(e),e&&!e.d&&(s.r++,e.push(s)));h.map(t=>t[e](r))});return s.r?o:a()},e=>(e?d(_[r]=e):c(p),i(l))),l&&l.d<0&&(l.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__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e)})(),(()=>{__webpack_require__.u=e=>"static/js/async/"+({361:"web-core-main-thread-apis",8:"legacy-wasm-chunk",895:"web-worker-runtime-main-thread"})[e]+".js"})(),(()=>{__webpack_require__.miniCssF=e=>""+e+".css"})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.p="http://lynx-web-core-mocked.localhost/"})(),(()=>{__webpack_require__.v=function(e,t,r,i){var n=fetch(__webpack_require__.p+"static/wasm/"+r.slice(0,8)+".module.wasm"),s=function(){return n.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,i)}).then(function(t){return Object.assign(e,t.instance.exports)})};return n.then(function(t){return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,i).then(function(t){return Object.assign(e,t.instance.exports)},function(e){if("application/wasm"!==t.headers.get("Content-Type"))return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e),s();throw e}):s()})}})(),(()=>{var e={227:1},t=t=>{var[r,n,s]=t;for(var a in n)__webpack_require__.o(n,a)&&(__webpack_require__.m[a]=n[a]);for(s&&s(__webpack_require__);r.length;)e[r.pop()]=1;i(t)};__webpack_require__.f.i=(t,r)=>{e[t]||importScripts(__webpack_require__.p+__webpack_require__.u(t))};var r=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[],i=r.push.bind(r);r.push=t})(),(()=>{var e={895:["361"]};__webpack_require__.f.prefetch=(t,r)=>{Promise.all(r).then(()=>{var r=e[t];Array.isArray(r)&&r.map(__webpack_require__.E)})}})(),(()=>{var e={895:["361"]};__webpack_require__.f.preload=t=>{var r=e[t];Array.isArray(r)&&r.map(__webpack_require__.G)}})();var __webpack_exports__={};(()=>{var e=__webpack_require__(352),t=__webpack_require__(29);function r(e,r){let i=e.createCall(t.Fw);return(e,t)=>{r[e]&&t(r[e]),i(e).then(t)}}let i=(e,r)=>{let i=r.createCall(t.vn);return{animate(t,r,n,s){i("animate",e,{operation:t,id:r,keyframes:n,timingOptions:s})}}};function n(e,n,s,a){let o=new t.tf({rpc:s,receiveEventEndpoint:t.jK,sendEventEndpoint:t.Is});return{__globalProps:e.globalProps,getJSModule(e){},getNativeApp:()=>n,getCoreContext:()=>o,getCustomSectionSync:t=>e.customSections[t],getCustomSection:r(s,e.customSections),queueMicrotask:e=>{queueMicrotask(e)},createElement:(e,t)=>i(t,a),getI18nResource:()=>n.i18nResource.data,QueryComponent:(e,t)=>n.queryComponent(e,t)}}function s(e){return(r,i,n,s,a,o,l)=>{e.invoke(t.zk,[r,i,n,s,a,l]).then(o).catch(e=>{console.error("[lynx-web] invokeUIMethod failed",e),o({code:t.O4.UNKNOWN,data:""})})}}function a(e,r){e.registerHandlerLazy(t.Ke,r,"publicComponentEvent")}function o(e,r){e.registerHandler(t.pd,({exposures:e,disExposures:t})=>{e.length>0&&r.GlobalEventEmitter.emit("exposure",[e.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))]),t.length>0&&r.GlobalEventEmitter.emit("disexposure",[t.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))])})}async function l(e,r,i){let n=r.createCall(t.eZ),s=e.createCall(t.g),a={resumeExposure(){n(!0,!0)},stopExposure(e){n(!1,e.sendEvent??!0)}},o={call(e,t,r){s(e,t,"bridge").then(r)}},l={},h={};return await Promise.all(Object.entries(i).map(([e,t])=>import(t).then(t=>h[e]=t?.default?.(l,(t,r)=>s(t,r,e))))),Object.assign(l,{bridge:o,LynxExposureModule:a,...h})}function h(e,r){e.registerHandlerLazy(t.Ve,r,"updateCardData")}function c(e,r){e.registerHandlerLazy(t.JW,r,"publishEvent")}function d(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 u(e,r){e.registerHandler(t.hO,(...e)=>{r.GlobalEventEmitter.emit(...e)})}function p(){let e=new FinalizationRegistry(e=>e());return t=>{let r={};return e.register(r,t),r}}function _(e,r){e.registerHandlerLazy(t.yn,r,"updateGlobalProps")}function m(e,r,i,n){e.registerHandler(t.BE,e=>{i.setData(e),n.GlobalEventEmitter.emit("onI18nResourceReady",[])}),r.registerHandler(t.mB,e=>{i.setData(e),n.GlobalEventEmitter.emit("onI18nResourceReady",[])})}function y(e){return(r,i,n,s,a,o)=>{e.invoke(t.ZU,[r,i,n,s,o]).then(a).catch(e=>{console.error("[lynx-web] getPathInfo failed",e),a({code:t.O4.UNKNOWN,data:e.message||""})})}}let f=0,g={};async function v(e){let{mainThreadRpc:r,uiThreadRpc:i,template:n,nativeModulesMap:v,timingSystem:b}=e,E=d(b),x=r.createCallbackify(t.iH,2),S=i.createCall(t.PC),A=i.createCall(t.pT),M=i.createCallbackify(t.vr,3),T=r.createCall(t.nk),C=i.createCall(t.o2),w=()=>{let e=globalThis.module.exports??globalThis.__bundle__holder;return globalThis.module.exports=null,globalThis.__bundle__holder=null,e},I=new Map([["__Card__",n]]);r.registerHandler(t.WS,(e,t)=>{I.set(e,t)});let R=new t.xY,k="",L={id:(f++).toString(),...E,setTimeout:setTimeout,setInterval:setInterval,clearTimeout:clearTimeout,clearInterval:clearInterval,nativeModuleProxy:await l(i,r,v),loadScriptAsync:function(e,t,r){r=r??"__Card__";let i=I.get(r)?.manifest[`/${e}`];if(i)e=i;else throw Error(`Cannot find ${e} in manifest`);globalThis.module.exports=null,globalThis.__bundle__holder=null,import(e).catch(t).then(async()=>{t(null,w())})},loadScript:(e,t)=>{t=t??"__Card__";let r=I.get(t)?.manifest[`/${e}`];if(r)e=r;else throw Error(`Cannot find ${e} in manifest`);return globalThis.module.exports=null,globalThis.__bundle__holder=null,importScripts(e),w()},requestAnimationFrame:e=>requestAnimationFrame(e),cancelAnimationFrame:e=>cancelAnimationFrame(e),callLepusMethod:x,setNativeProps:S,getPathInfo:y(i),invokeUIMethod:s(i),tt:null,setCard(e){a(r,e),c(r,e),o(r,e),h(i,e),u(i,e),_(i,e),m(i,r,R,e),b.registerGlobalEmitter(e.GlobalEventEmitter),e.lynx.getCoreContext().__start(),L.tt=e},triggerComponentEvent:A,selectComponent:M,createJSObjectDestructionObserver:p(),setSharedData(e,t){g[e]=t},getSharedData:e=>g[e],i18nResource:R,reportException:(e,t)=>C(e,t,k),__SetSourceMapRelease:e=>k=e.message,queryComponent:(e,t)=>{I.has(e)?t({__hasReady:!0}):T(e).then(e=>{t?.(e)})}};return L}function b(e,r,i,n){e.registerHandler(t.hh,()=>{let e=r.id;n(e),i(e)})}let E=async(e,r)=>{let i=e.createCall(t.VK),n={};return await Promise.all(Object.entries(r).map(([r,s])=>import(s).then(s=>n[r]=s?.default?.(n,(e,t)=>i(e,t,r),r=>{e.registerHandler(t.Sy,e=>r(e))})))),{load:e=>n[e]}},x="lynx.performance.timing.onSetup",S="lynx.performance.timing.onUpdate";function A(e,r){let i=!0,n={},s=new Map,a=new Map,o=r.createCall(t.gx),l=[];function h(e){for(let{timingKey:t,pipelineId:r,timeStamp:i}of e){if(i||(i=performance.now()+performance.timeOrigin),!r){n[t]=i;continue}s.has(r)||s.set(r,{}),s.get(r)[t]=i}}let c=r=>{e.registerHandler(t.F6,(e,t)=>{if(t?e=e.concat(l):l=l.concat(e),i){let e={extra_timing:{},setup_timing:n,update_timings:{},metrics:{},has_reload:!1,thread_strategy:0,url:""};r.emit(x,[e]),o("timing",n)}else{let i=(t?s.get(t):void 0)??{},n={extra_timing:{},setup_timing:{},update_timings:Object.fromEntries([...e,...a.get(t)??[]].map(e=>[e,i])),metrics:{},has_reload:!1,thread_strategy:0,url:""};r.emit(S,[n]),o("timing",i)}t&&(a.delete(t),s.delete(t)),i&&(i=!1)})};return e.registerHandler(t.PM,h),r.registerHandler(t.PM,h),{markTimingInternal:(e,t,r)=>h([{timingKey:e,pipelineId:t,timeStamp:r}]),registerGlobalEmitter:c,pipelineIdToTimingFlags:a}}let M=Promise.resolve().then(__webpack_require__.bind(__webpack_require__,302));function T(r,i){let s=new e.C(r,"bg-to-ui"),a=new e.C(i,"bg-to-main"),o=A(a,s);o.markTimingInternal("load_core_start"),a.registerHandler(t.a$,async e=>{o.markTimingInternal("load_core_end");let t=await v({...e,uiThreadRpc:s,mainThreadRpc:a,timingSystem:o});globalThis["napiLoaderOnRT"+t.id]=await E(s,e.napiModulesMap);let r=n(e,t,a,s);M.then(({loadCard:i,destroyCard:n,callDestroyLifetimeFun:a,nativeGlobal:o,loadDynamicComponent:l})=>{o&&l&&(o.loadDynamicComponent=l),i(t,{...e,updateData:e.initData},r),b(s,t,n,a)})})}globalThis.nativeConsole=console,globalThis.onmessage=async e=>{let{mode:t,toPeerThread:r,toUIThread:i,systemInfo:n}=e.data;if(globalThis.SystemInfo||(globalThis.SystemInfo=n),"main"===t){let{startMainThreadWorker:e}=await __webpack_require__.e("895").then(__webpack_require__.bind(__webpack_require__,603));e(i,r)}else T(i,r)},Object.assign(globalThis,{module:{exports:null}})})()})();
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["8"],{431:function(e,n,t){t.a(e,async function(e,r){try{t.d(n,{Fz:()=>i.Fz,Qn:()=>i.Qn,aC:()=>i.aC,bk:()=>i.bk,iG:()=>i.iG,lI:()=>i.lI,qB:()=>i.qB,yc:()=>i.yc});var _=t(472),i=t(497),o=e([_]);_=(o.then?(await o)():o)[0],(0,i.lI)(_),r()}catch(e){r(e)}})},497:function(e,n,t){let r;function _(e){r=e}t.d(n,{Fz:()=>v,Qn:()=>B,aC:()=>x,bk:()=>T,iG:()=>k,lI:()=>_,qB:()=>I,yc:()=>q}),e=t.hmd(e);let i=Array(128).fill(void 0);i.push(void 0,null,!0,!1);let o=i.length;function u(e){o===i.length&&i.push(i.length+1);let n=o;return o=i[n],i[n]=e,n}function l(e){let n=i[e];return e<132||(i[e]=o,o=e),n}let d=null;function c(){return(null===d||0===d.byteLength)&&(d=new Uint8Array(r.memory.buffer)),d}let f="undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder,a=new f("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();let b=0;function w(e,n){var t;return e>>>=0,t=e,(b+=n)>=0x7ff00000&&((a=new f("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),b=n),a.decode(c().subarray(t,t+n))}let s=0,g=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8"),h="function"==typeof g.encodeInto?function(e,n){return g.encodeInto(e,n)}:function(e,n){let t=g.encode(e);return n.set(t),{read:e.length,written:t.length}};function y(e,n,t){if(void 0===t){let t=g.encode(e),r=n(t.length,1)>>>0;return c().subarray(r,r+t.length).set(t),s=t.length,r}let r=e.length,_=n(r,1)>>>0,i=c(),o=0;for(;o<r;o++){let n=e.charCodeAt(o);if(n>127)break;i[_+o]=n}if(o!==r){0!==o&&(e=e.slice(o)),_=t(_,r,r=o+3*e.length,1)>>>0;let n=h(e,c().subarray(_+o,_+r));o+=n.written,_=t(_,r,o,1)>>>0}return s=o,_}let p=null;function m(){return(null===p||!0===p.buffer.detached||void 0===p.buffer.detached&&p.buffer!==r.memory.buffer)&&(p=new DataView(r.memory.buffer)),p}function x(e){try{let _,i=r.__wbindgen_add_to_stack_pointer(-16),o=y(e,r.__wbindgen_export_0,r.__wbindgen_export_1),u=s;r.transform_raw_u16_inline_style_ptr(i,o,u);var n=m().getInt32(i+0,!0),t=m().getInt32(i+4,!0);return 0!==n&&(_=w(n,t).slice(),r.__wbindgen_export_2(n,+t,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}function k(e,n){let t=y(e,r.__wbindgen_export_0,r.__wbindgen_export_1),_=s,i=y(n,r.__wbindgen_export_0,r.__wbindgen_export_1),o=s;return l(r.transform_raw_u16_inline_style_ptr_parsed(t,_,i,o))}function v(){return u([])}function I(e,n){return i[e].push(i[n])}function T(e){l(e)}function q(e,n){return u(w(e,n))}function B(e,n){throw Error(w(e,n))}},326:function(e,n,t){t.a(e,async function(e,r){try{t.r(n),t.d(n,{__wbg_new_58353953ad2097cc:()=>_.Fz,__wbg_push_73fd7b5550ebf707:()=>_.qB,__wbg_set_wasm:()=>_.lI,__wbindgen_object_drop_ref:()=>_.bk,__wbindgen_string_new:()=>_.yc,__wbindgen_throw:()=>_.Qn,memory:()=>i.memory,transform_raw_u16_inline_style_ptr:()=>_.aC,transform_raw_u16_inline_style_ptr_parsed:()=>_.iG});var _=t(431),i=t(472),o=e([_,i]);[_,i]=o.then?(await o)():o,r()}catch(e){r(e)}})},472:function(e,n,t){var r=t(497);e.exports=t.v(n,e.id,"fe95f2851571c1d7",{"./legacy_bg.js":{__wbg_new_58353953ad2097cc:r.Fz,__wbindgen_string_new:r.yc,__wbg_push_73fd7b5550ebf707:r.qB,__wbindgen_object_drop_ref:r.bk,__wbindgen_throw:r.Qn}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["361"],{746:function(e,t,r){let n;r.d(t,{prepareMainThreadAPIs:()=>es});var i=r(29);let a={},o=1,l={},s={},u=e=>{let t=o++,r=e.startsWith("-x-");l[t]={name:function(e){if(a[e])return a[e];let t=(e+"").replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()});return a[e]=t,t}(e),dashName:e,isX:r},s[e]=t};u("top"),u("left"),u("right"),u("bottom"),u("position"),u("box-sizing"),u("background-color"),u("border-left-color"),u("border-right-color"),u("border-top-color"),u("border-bottom-color"),u("border-radius"),u("border-top-left-radius"),u("border-bottom-left-radius"),u("border-top-right-radius"),u("border-bottom-right-radius"),u("border-width"),u("border-left-width"),u("border-right-width"),u("border-top-width"),u("border-bottom-width"),u("color"),u("opacity"),u("display"),u("overflow"),u("height"),u("width"),u("max-width"),u("min-width"),u("max-height"),u("min-height"),u("padding"),u("padding-left"),u("padding-right"),u("padding-top"),u("padding-bottom"),u("margin"),u("margin-left"),u("margin-right"),u("margin-top"),u("margin-bottom"),u("white-space"),u("letter-spacing"),u("text-align"),u("line-height"),u("text-overflow"),u("font-size"),u("font-weight"),u("flex"),u("flex-grow"),u("flex-shrink"),u("flex-basis"),u("flex-direction"),u("flex-wrap"),u("align-items"),u("align-self"),u("align-content"),u("justify-content"),u("background"),u("border-color"),u("font-family"),u("font-style"),u("transform"),u("animation"),u("animation-name"),u("animation-duration"),u("animation-timing-function"),u("animation-delay"),u("animation-iteration-count"),u("animation-direction"),u("animation-fill-mode"),u("animation-play-state"),u("line-spacing"),u("border-style"),u("order"),u("box-shadow"),u("transform-origin"),u("linear-orientation"),u("linear-weight-sum"),u("linear-weight"),u("linear-gravity"),u("linear-layout-gravity"),u("layout-animation-create-duration"),u("layout-animation-create-timing-function"),u("layout-animation-create-delay"),u("layout-animation-create-property"),u("layout-animation-delete-duration"),u("layout-animation-delete-timing-function"),u("layout-animation-delete-delay"),u("layout-animation-delete-property"),u("layout-animation-update-duration"),u("layout-animation-update-timing-function"),u("layout-animation-update-delay"),u("adapt-font-size"),u("aspect-ratio"),u("text-decoration"),u("text-shadow"),u("background-image"),u("background-position"),u("background-origin"),u("background-repeat"),u("background-size"),u("border"),u("visibility"),u("border-right"),u("border-left"),u("border-top"),u("border-bottom"),u("transition"),u("transition-property"),u("transition-duration"),u("transition-delay"),u("transition-timing-function"),u("content"),u("border-left-style"),u("border-right-style"),u("border-top-style"),u("border-bottom-style"),u("implicit-animation"),u("overflow-x"),u("overflow-y"),u("word-break"),u("background-clip"),u("outline"),u("outline-color"),u("outline-style"),u("outline-width"),u("vertical-align"),u("caret-color"),u("direction"),u("relative-id"),u("relative-align-top"),u("relative-align-right"),u("relative-align-bottom"),u("relative-align-left"),u("relative-top-of"),u("relative-right-of"),u("relative-bottom-of"),u("relative-left-of"),u("relative-layout-once"),u("relative-center"),u("enter-transition-name"),u("exit-transition-name"),u("pause-transition-name"),u("resume-transition-name"),u("flex-flow"),u("z-index"),u("text-decoration-color"),u("linear-cross-gravity"),u("margin-inline-start"),u("margin-inline-end"),u("padding-inline-start"),u("padding-inline-end"),u("border-inline-start-color"),u("border-inline-end-color"),u("border-inline-start-width"),u("border-inline-end-width"),u("border-inline-start-style"),u("border-inline-end-style"),u("border-start-start-radius"),u("border-end-start-radius"),u("border-start-end-radius"),u("border-end-end-radius"),u("relative-align-inline-start"),u("relative-align-inline-end"),u("relative-inline-start-of"),u("relative-inline-end-of"),u("inset-inline-start"),u("inset-inline-end"),u("mask-image"),u("grid-template-columns"),u("grid-template-rows"),u("grid-auto-columns"),u("grid-auto-rows"),u("grid-column-span"),u("grid-row-span"),u("grid-column-start"),u("grid-column-end"),u("grid-row-start"),u("grid-row-end"),u("grid-column-gap"),u("grid-row-gap"),u("justify-items"),u("justify-self"),u("grid-auto-flow"),u("filter"),u("list-main-axis-gap"),u("list-cross-axis-gap"),u("linear-direction"),u("perspective"),u("cursor"),u("text-indent"),u("clip-path"),u("text-stroke"),u("text-stroke-width"),u("text-stroke-color"),u("-x-auto-font-size"),u("-x-auto-font-size-preset-sizes"),u("mask"),u("mask-repeat"),u("mask-position"),u("mask-clip"),u("mask-origin"),u("mask-size"),u("gap"),u("column-gap"),u("row-gap"),u("image-rendering"),u("hyphens"),u("-x-app-region"),u("-x-animation-color-interpolation"),u("-x-handle-color"),u("-x-handle-size"),u("offset-path"),u("offset-distance");let d=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11]));async function c(){n=await d()?await Promise.resolve().then(r.bind(r,708)):await r.e("8").then(r.bind(r,326))}function p(e){let t=[],r=[];for(let[i,a]of e){let e=n.transform_raw_u16_inline_style_ptr_parsed(i,a);if(e){let[n,i]=e;r=r.concat(n),i&&(t=t.concat(i))}else r.push([i,a])}return{childStyle:t,transformedStyle:r}}var m=/[A-Z]/g,f=/^ms-/,_={};function g(e){return"-"+e.toLowerCase()}let b=function(e){if(_.hasOwnProperty(e))return _[e];var t=e.replace(m,g);return _[e]=f.test(t)?"-"+t:t},y=(e,t)=>e.appendChild(t),h=(e,t)=>e===t,v=e=>e.firstElementChild,w=e=>e.children?[...e.children]:null,A=e=>e.parentElement,x=(e,t,r)=>e.insertBefore(t,r),C=e=>e.lastElementChild,S=e=>e.nextElementSibling,E=(e,t)=>e.removeChild(t),I=(e,t)=>t.replaceWith(e),T=(e,t,r)=>{if(t=Array.isArray(t)?t:[t],!r||Array.isArray(r)&&r?.length===0)e.append(...t);else{r=Array.isArray(r)?r:[r];for(let t=1;t<r.length;t++)E(e,r[t]);r[0].replaceWith(...t)}},P=(e,t,r)=>{let n=e.getAttribute(i.tl),a=n?JSON.parse(decodeURIComponent(n)):{};a[t]=r,e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(a)))},k=(e,t,r)=>{let n=j(e);n[t]=r,e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(n))),r?e.setAttribute("data-"+t,r.toString()):e.removeAttribute("data-"+t)},j=e=>{let t=e.getAttribute(i.C6);return t?JSON.parse(decodeURIComponent(t)):{}},O=(e,t)=>j(e)[t],G=e=>Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]).filter(([,e])=>e)),R=e=>e.getAttribute(i.pP),q=e=>{let t=e.getAttribute(i.tl);return t?JSON.parse(decodeURIComponent(t)):{}},$=(e,t)=>e.getAttribute(t),N=e=>e&&e.getAttribute?Number(e.getAttribute(i.SP)):-1,D=e=>e.getAttribute("id"),M=(e,t)=>t?e.setAttribute("id",t):e.removeAttribute("id"),L=e=>e.getAttribute(i.Gq),H=(e,t)=>{e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(t)))},U=(e,t)=>{for(let[r,n]of(e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(t))),Object.entries(t)))e.setAttribute("data-"+r,n.toString())},W=(e,t)=>e.setAttribute(i.pP,t),z=e=>(e.getAttribute("class")??"").split(" ").filter(e=>e),B=(e,t)=>{void 0!==t.componentID&&W(e,t.componentID),void 0!==t.cssID&&e.setAttribute(i.js,t.cssID+""),void 0!==t.name&&e.setAttribute("name",t.name)},F=(e,t,r)=>{for(let n of e)n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r)},J=(e,t)=>{t?e.setAttribute("class",t):e.removeAttribute("class")},Q=(e,t,r)=>{let n;if("number"==typeof t){let e=l[t];n=e.dashName,e.isX&&console.error(`[lynx-web] css property: ${n} is not supported.`)}else n=t;let i="number"==typeof r?r.toString():r;if(i){let{transformedStyle:t}=p([[n,i]]);for(let[r,n]of t)e.style.setProperty(r,n)}else e.style.removeProperty(n)},Z=(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r)},K=(e,t)=>{if(t)if("string"==typeof t)e.setAttribute("style",n.transform_raw_u16_inline_style_ptr(t)??t);else{let{transformedStyle:r}=p(Object.entries(t).map(([e,t])=>[b(e),t?.toString?.()??""])),n=r.map(([e,t])=>`${e}:${t};`).join("");e.setAttribute("style",n)}},V=e=>{if(null===e.getAttribute(i.y))return{};let t=N(e),r={};for(let n of e.querySelectorAll(`[${i.SP}="${t}"] [${i.oZ}]:not([${i.SP}="${t}"] [${i.y}] [${i.oZ}])`)){let e=n.getAttribute(i.oZ);e&&(r[e]=n)}return r},X=e=>{e.setAttribute(i.y,"")},Y=(e,t)=>{e.setAttribute(i.oZ,t)};function ee(e){let t={};for(let r in e){let n=e[r];("boolean"==typeof n||"number"==typeof n||"string"==typeof n||null===n)&&(t[r]=n)}return t}function et(e,t){let r=e.target,n=e.currentTarget.getAttribute?e.currentTarget:void 0,a=e.type,o={},l=e.isTrusted,s={};if(a.match(/^transition/))Object.assign(o,{animation_type:"keyframe-animation",animation_name:e.propertyName,new_animator:!0});else if(a.match(/animation/))Object.assign(o,{animation_type:"keyframe-animation",animation_name:e.animationName,new_animator:!0});else if(a.startsWith("touch")){let t=[...e.touches],r=[...e.targetTouches],n=[...e.changedTouches];Object.assign(s,{touches:l?t.map(ee):t,targetTouches:l?r.map(ee):r,changedTouches:l?n.map(ee):n})}let u=n?.getAttribute(i.C6),d=u?JSON.parse(decodeURIComponent(u)):{},c=r.getAttribute(i.C6),p=c?JSON.parse(decodeURIComponent(c)):{};return{type:t,timestamp:e.timeStamp,target:{id:r.getAttribute("id"),dataset:p,uniqueId:Number(r.getAttribute(i.SP))},currentTarget:n?{id:n.getAttribute("id"),dataset:d,uniqueId:Number(n.getAttribute(i.SP))}:null,detail:e.detail??{},params:o,...s}}let er=new Set(["exposure-id","exposure-area","exposure-screen-margin-top","exposure-screen-margin-right","exposure-screen-margin-bottom","exposure-screen-margin-left","exposure-ui-margin-top","exposure-ui-margin-right","exposure-ui-margin-bottom","exposure-ui-margin-left"]);function en(e){let t=function(e){let t=[],r=new Map;for(let[t,n]of Object.entries(e))for(let e of(r.has(t)||r.set(t,0),n.imports??[])){let t=r.get(e)??0;r.set(e,t+1)}for(let[e,n]of r.entries())0===n&&t.push(e);let n=[];for(;t.length>0;){let i=t.shift();n.push(i);let a=e[i]?.imports;if(a)for(let e of a){let n=r.get(e)-1;r.set(e,n),0===n&&t.push(e)}}return n}(e),r=function(e,t){let r=new Map;for(let n of t){let t=e[n]?.imports;if(t){let e=r.get(n)??new Set([n]);for(let i of t){let t=r.get(i)??new Set([i]);t.add(n),r.set(i,e.union(t))}r.set(n,e)}}return r}(e,t);return t.reverse(),t.map(t=>{let n=e[t];return n?{content:n.content,rules:n.rules,importBy:Array.from(r.get(t)??[t])}:{content:[],rules:[],importBy:[t]}})}function ei(e){for(let t of e)for(let e of t.rules){let{sel:r,decl:n}=e,{transformedStyle:i,childStyle:a}=p(n);e.decl=i,a.length>0&&t.rules.push({sel:r.map(e=>e.toSpliced(-2,1,[">"],["*"],[],[],[])),decl:a})}}function ea(e,t,r){let n=[];for(let a of e){let e=a.rules.map(e=>{let{sel:n,decl:o}=e,l=a.importBy.map(e=>{let a=function(e){let n;return n=t.enableRemoveCSSScope?`[${i.Gq}]`:`[${i.js}="${e}"]`,n=r?`${n}[${i.Pb}=${JSON.stringify(r)}]`:`${n}:not([${i.Pb}])`}(e);return n.map(e=>e.toSpliced(-4,0,[a]).flat().join("")).join(",")}).join(","),s=o.map(([e,t])=>`${e}:${t};`).join("");return`${l}{${s}}`}).join("");n.push(...a.content,e)}return n.join("\n")}function eo(e){let t={};for(let r of e)r.rules=r.rules.filter(e=>(e.sel=e.sel.filter(n=>{let[i,a,o,l]=n;if(1===i.length&&"."===i[0][0]&&0===a.length&&0===o.length&&0===l.length){let n=i[0].substring(1);for(let i of r.importBy){t[i]||(t[i]={});let r=t[i][n];r?r.push(...e.decl):t[i][n]=e.decl}return!1}return!0}),e.sel.length>0));return t}let el=c();function es(e,t,r,n,a,o,l,s,u,d,c,p){let m=e.createCall(i.F6),f=e.createCall(i.a$),_=e.createCall(i.JW),g=e.createCall(i.Ke),b=e.createCall(i.pd),ee=e.createCall(i.mB);return o("lepus_execute_start"),{startMainThread:async function(es,eu){let ed,ec,ep,em,ef,e_,eg,eb,ey=!0,{globalProps:eh,template:ev,browserConfig:ew,nativeModulesMap:eA,napiModulesMap:ex,tagMap:eC,initI18nResources:eS}=es,{styleInfo:eE,pageConfig:eI,customSections:eT,cardType:eP}=ev;o("decode_start"),await el;let ek=new i.tf({rpc:e,receiveEventEndpoint:i.Is,sendEventEndpoint:i.jK}),ej=d(eS),{updateCssOGStyle:eO,updateLazyComponentStyle:eG}=(ec=eu?.lynxUniqueIdToStyleRulesIndex??[],ei(ep=en(eE)),em=eI.enableCSSSelector?{}:eo(ep),ef={},eu?.cardStyleElement?ed=eu.cardStyleElement:((ed=r.createElement("style")).textContent=ea(ep,eI,void 0),t.appendChild(ed)),{updateCssOGStyle:(e,t,r,n)=>{let a=ed.sheet,o=function(e,t,r){let n=e.split(" ").filter(e=>e),i=[],a=t[r??"0"];if(a)for(let e of n){let t=a[e];t&&i.push(...t)}else console.warn(`[lynx-web] cannot find styleinfo for cssid ${r}`);return i.map(([e,t])=>`${e}:${t};`).join("")}(t,n&&ef[n]?ef[n]:em,r);if(void 0!==ec[e])a.cssRules[ec[e]].style.cssText=o;else{let t=a.insertRule(`[${i.SP}="${e}"]{${o}}`,a.cssRules.length);ec[e]=t}},updateLazyComponentStyle:(e,t)=>{let r=en(e);ei(r),eI.enableCSSSelector||(ef[t]=eo(r));let n=ea(r,eI,t);ed.textContent+=n}}),eR={mtsGlobalThis:void 0},eq=(e_=e.createCall(i.WS),eg=new Map,eb=(e,t)=>{let r=eg.get(e),i=r??c(e).then(async t=>{let r=e_(e,t),i=await n.loadScript(t.lepusCode.root);return eR.mtsGlobalThis.processEvalResult&&(i=eR.mtsGlobalThis.processEvalResult(i,e)),eG(t.styleInfo,e),await r,ek.dispatchEvent({type:"__OnDynamicJSSourcePrepared",data:e}),i});return r||eg.set(e,i),i.then(r=>{t?.({code:0,data:{url:e,evalResult:r}})}).catch(r=>{console.error("lynx web: lazy bundle load failed:",r),eg.delete(e),t?.({code:-1,data:void 0})}),null},e.registerHandler(i.nk,e=>new Promise(t=>{eb(e,r=>{t({code:r.code,detail:{schema:e}})})})),eb),e$=function(e){let t,r,n,a,o,l,s=[],{callbacks:u,tagMap:d,pageConfig:c,lynxTemplate:p,rootDom:m,globalProps:f,ssrHydrateInfo:_,ssrHooks:g,mtsRealm:b,document:ee}=e,{elementTemplate:en,lepusCode:ei}=p,ea=_?.lynxUniqueIdToElement??[],eo=new WeakMap,el=ea[1]?.deref(),es=ea.length||1,eu=new Set,ed=e=>{if(!e.currentTarget)return;let t=e.currentTarget,r=e.eventPhase===Event.CAPTURING_PHASE,n=i.$4[e.type]??e.type,a=eo.get(t);if(a){let o=r?a.eventHandlerMap[n]?.capture?.handler:a.eventHandlerMap[n]?.bind?.handler,l=et(e,n);if("string"==typeof o){let e=ea[Number(t.getAttribute(i.er))].deref(),r=e?.getAttribute(i.Gq)!=="page"?e?.getAttribute(i.pP)??void 0:void 0;return r?u.publicComponentEvent(r,o,l):u.publishEvent(o,l),!0}o&&(l.target.elementRefptr=e.target,l.currentTarget&&(l.currentTarget.elementRefptr=e.currentTarget),b.globalWindow.runWorklet?.(o.value,[l]))}return!1},ec=e=>{ed(e)&&e.stopPropagation()},ep=(e,t,r,n)=>{r=r.toLowerCase();let a="catchEvent"===t||"capture-catch"===t,o=t.startsWith("capture"),l=eo.get(e)??{eventHandlerMap:{},componentAtIndex:void 0,enqueueComponent:void 0},s=o?l.eventHandlerMap[r]?.capture:l.eventHandlerMap[r]?.bind,u=a?ec:ed;if(s)n||(e.removeEventListener(r,u,{capture:o}),("uiappear"===r||"uidisappear"===r)&&"-1"===e.getAttribute("exposure-id")&&ex.__SetAttribute(e,"exposure-id",null));else if(n){let t=i.vQ[e.tagName]?.[r]??i.im[r]??r;e.addEventListener(t,u,{capture:o}),("uiappear"===r||"uidisappear"===r)&&null===e.getAttribute("exposure-id")&&ex.__SetAttribute(e,"exposure-id","-1")}if(n){let e={type:t,handler:n};l.eventHandlerMap[r]||(l.eventHandlerMap[r]={capture:void 0,bind:void 0}),o?l.eventHandlerMap[r].capture=e:l.eventHandlerMap[r].bind=e}eo.set(e,l)},em=(e,t)=>{let r=es++,n=d[e]??e,a=ee.createElement(n);ea[r]=new WeakRef(a);let o=ea[t]?.deref()?.getAttribute(i.js);return o&&"0"!==o&&a.setAttribute(i.js,o),a.setAttribute(i.Gq,e),a.setAttribute(i.SP,r+""),a.setAttribute(i.er,t+""),a},ef=(e,t,r)=>{if("list"===e.getAttribute(i.Gq)&&"update-list-info"===t){let{insertAction:t,removeAction:n}=r;queueMicrotask(()=>{let r=eo.get(e);if(r){let i=r.componentAtIndex,a=r.enqueueComponent,o=N(e);for(let r of t)i?.(e,o,r.position,0,!1);for(let t of n)a?.(e,o,t.position)}})}else null==r?e.removeAttribute(t):e.setAttribute(t,r+""),t===i.I7&&r&&s.push(r),er.has(t)&&eu.add(e)},e_=(e,t)=>{J(e,t);let r=e.getAttribute(i.js),n=Number(e.getAttribute(i.SP)),a=e.getAttribute(i.Pb);u.updateCssOGStyle(n,t??"",r,a)},eg={},eb=(e,t)=>{let r=em(e.type,t);for(let[t,n]of(M(r,e.id),e.class&&J(r,e.class.join(" ")),Object.entries(e.attributes||{})))ef(r,t,n);for(let[t,n]of Object.entries(e.builtinAttributes||{}))"dirtyID"===t&&n===e.id&&Y(r,n),ef(r,t,n);for(let n of e.children||[])y(r,eb(n,t));return void 0!==e.dataset&&U(r,e.dataset),r},ey=(e,t)=>{let r=es++;for(let n of(t.setAttribute(i.SP,r+""),e.events||[])){let{type:e,name:r,value:i}=n;ep(t,e,r,i)}for(let r=0;r<(e.children||[]).length;r++){let n=(e.children||[])[r],i=t.children[r];n&&i&&ey(n,i)}},eh=(e,t)=>{let r=en[e];if(r){let n;if(eg[e])n=Array.from(eg[e].content.cloneNode(!0).children);else if(n=r.map(e=>eb(e,t)),m.cloneNode){let r=ee.createElement("template");return r.content.append(...n),eg[e]=r,m.append(r),eh(e,t)}for(let e=0;e<n.length;e++){let t=r[e],i=n[e];t&&i&&ey(t,i)}return n.forEach(X),n}return[]},ev="",ew=!c.enableCSSSelector,eA={...i.c1,...e.browserConfig},ex={__ElementFromBinary:eh,__GetTemplateParts:m.querySelectorAll?V:void 0,__MarkTemplateElement:X,__MarkPartElement:Y,__AddEvent:g?.__AddEvent??ep,__GetEvent:(e,t,r)=>{let n=eo.get(e);if(n){t=t.toLowerCase();let e=r.startsWith("capture")?n.eventHandlerMap[t]?.capture:n.eventHandlerMap[t]?.bind;return e?.handler}},__GetEvents:e=>{let t=eo.get(e)?.eventHandlerMap??{},r=[];for(let[e,n]of Object.entries(t))for(let t of[n.bind,n.capture])if(t){let{type:n,handler:i}=t;i&&r.push({type:n,name:e,function:i})}return r},__SetEvents:(e,t)=>{for(let{type:r,name:n,function:i}of t)ep(e,r,n,i)},__AppendElement:y,__ElementIsEqual:h,__FirstElement:v,__GetChildren:w,__GetParent:A,__InsertElementBefore:x,__LastElement:C,__NextElement:S,__RemoveElement:E,__ReplaceElement:I,__ReplaceElements:T,__AddConfig:P,__AddDataset:k,__GetAttributes:G,__GetComponentID:R,__GetDataByKey:O,__GetDataset:j,__GetElementConfig:q,__GetElementUniqueID:N,__GetID:D,__GetTag:L,__SetConfig:H,__SetDataset:U,__SetID:M,__UpdateComponentID:W,__UpdateComponentInfo:B,__CreateElement:em,__CreateView:e=>em("view",e),__CreateText:e=>em("text",e),__CreateComponent:(e,t,r,n,a)=>{let o=em("view",e);return o.setAttribute(i.js,r+""),o.setAttribute(i.pP,t),o.setAttribute("name",a),o},__CreatePage:(e,t)=>{let r=em("page",0);return r.setAttribute("part","page"),r.setAttribute(i.js,t+""),r.setAttribute(i.er,"0"),r.setAttribute(i.pP,e),X(r),!1===c.defaultDisplayLinear&&r.setAttribute(i.Gm,"false"),!0===c.defaultOverflowVisible&&r.setAttribute("lynx-default-overflow-visible","true"),el=r,r},__CreateRawText:e=>{let t=em("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:e=>em("image",e),__CreateScrollView:e=>em("scroll-view",e),__CreateWrapperElement:e=>em("lynx-wrapper",e),__CreateList:(e,t,r)=>{let n=em("list",e);return eo.set(n,{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r}),n},__SetAttribute:ef,__SwapElement:(e,t)=>{let r=ee.createElement("div");e.replaceWith(r),t.replaceWith(e),r.replaceWith(t)},__UpdateListCallbacks:(e,t,r)=>{let n=eo.get(e)??{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r,uniqueId:N(e)};n.componentAtIndex=t,n.enqueueComponent=r,eo.set(e,n)},__GetConfig:q,__GetAttributeByName:$,__GetClasses:z,__AddClass:ew?(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r);let n=e.getAttribute(i.js),a=Number(e.getAttribute(i.SP)),o=e.getAttribute(i.Pb);u.updateCssOGStyle(a,r,n,o)}:Z,__SetClasses:ew?e_:J,__AddInlineStyle:Q,__SetCSSId:ew?(e,t,r)=>{for(let n of e){n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r);let e=n.getAttribute("class");e&&e_(n,e)}}:F,__SetInlineStyles:K,__LoadLepusChunk:e=>{try{return e=ei?.[e]??e,b.loadScriptSync(e),!0}catch(t){return console.error(`failed to load lepus chunk ${e}`,t),!1}},__GetPageElement:()=>el,__globalProps:f,__QueryComponent:u.__QueryComponent,SystemInfo:eA,lynx:(t=requestAnimationFrame,r=cancelAnimationFrame,n=setTimeout,a=clearTimeout,o=setInterval,l=clearInterval,{getJSContext:()=>e.jsContext,requestAnimationFrame:e=>t(e),cancelAnimationFrame:e=>r(e),__globalProps:e.globalProps,getCustomSectionSync:t=>e.lynxTemplate.customSections[t]?.content,markPipelineTiming:e.callbacks.markTiming,SystemInfo:eA,setTimeout:n,clearTimeout:a,setInterval:o,clearInterval:l}),_ReportError:(e,t)=>u._ReportError(e,t,ev),_SetSourceMapRelease:e=>ev=e?.release,__OnLifecycleEvent:u.__OnLifecycleEvent,__FlushElementTree:(e,t)=>{let r=s;s=[],el&&!el.parentNode&&""!==el.getAttribute(i.JA)&&m.append(el);let n=Array.from(eu);eu.clear(),u.flushElementTree(t,r,n)},_I18nResourceTranslation:u._I18nResourceTranslation,_AddEventListener:()=>{},renderPage:void 0};return Object.assign(b.globalWindow,ex),Object.defineProperty(b.globalWindow,"renderPage",{get:()=>ex.renderPage,set(e){ex.renderPage=e,queueMicrotask(u.mainChunkReady)},configurable:!0,enumerable:!0}),b.globalWindow}({lynxTemplate:ev,mtsRealm:n,jsContext:ek,tagMap:eC,browserConfig:ew,globalProps:eh,pageConfig:eI,rootDom:t,ssrHydrateInfo:eu,ssrHooks:p,document:r,callbacks:{updateCssOGStyle:eO,mainChunkReady:()=>{o("data_processor_start");let r=es.initData;!0!==eI.enableJSDataProcessor&&e$.processData&&(r=e$.processData(es.initData)),o("data_processor_end"),e.registerHandler(i.iH,(e,t)=>{e$[e](t)}),e.registerHandler(i.Fw,e=>eT[e]?.content);let{switchExposureService:n}=function(e,t){let r=!0,n=[],a=[],o=null,l=new Map;function s(e){let r=et(e,e.type);r.detail["unique-id"]=parseFloat(e.target.getAttribute(i.SP));let s=r.detail.exposureID;"exposure"===e.type?(n.push(r),l.set(s,r)):(a.push(r),l.delete(s)),o||(o=setTimeout(()=>{if(n.length>0||a.length>0){let e=n,r=a;n=[],a=[],t({exposures:e,disExposures:r})}o=null},50))}return e.addEventListener("exposure",s,{passive:!0}),e.addEventListener("disexposure",s,{passive:!0}),{switchExposureService:function(e,n){e&&!r?t({exposures:[...l.values()],disExposures:[]}):!e&&r&&n&&t({exposures:[],disExposures:[...l.values()]}),r=e}}}(t,b);if(e.registerHandler(i.eZ,n),f({initData:r,globalProps:eh,template:ev,cardType:eP??"react",customSections:Object.fromEntries(Object.entries(eT).filter(([,e])=>"lazy"!==e.type).map(([e,t])=>[e,t.content])),nativeModulesMap:eA,napiModulesMap:ex}),eu){for(let e of eu.events){let t=e[0],r=eu.lynxUniqueIdToElement[t]?.deref();r&&e$.__AddEvent(r,e[1],e[2],e[3])}e$.ssrHydrate?.(eu.ssrEncodeData)}else e$.renderPage(r),e$.__FlushElementTree(void 0,{})},flushElementTree:async(e,t,r)=>{let n=e?.pipelineOptions?.pipelineID;o("dispatch_start",n),ey&&(ey=!1,ek.dispatchEvent({type:"__OnNativeAppReady",data:void 0})),o("layout_start",n),o("ui_operation_flush_start",n),await a(r),o("ui_operation_flush_end",n),o("layout_end",n),o("dispatch_end",n),l(),requestAnimationFrame(()=>{m(t,n)})},_ReportError:s,__OnLifecycleEvent:e=>{ek.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>o(t,e),publishEvent:_,publicComponentEvent:g,_I18nResourceTranslation:e=>{let t=ej.data?.find(t=>(0,i.HO)(t.options)===(0,i.HO)(e));return(ee(t?.resource),t)?t.resource:u(e)},__QueryComponent:eq}});eR.mtsGlobalThis=e$,o("decode_end"),await n.loadScript(ev.lepusCode.root),ek.__start()}}}},41:function(e,t,r){r.a(e,async function(e,n){try{r.d(t,{Fz:()=>a.Fz,Qn:()=>a.Qn,aC:()=>a.aC,bL:()=>a.bL,iG:()=>a.iG,lI:()=>a.lI,qB:()=>a.qB,yc:()=>a.yc});var i=r(946),a=r(219),o=e([i]);i=(o.then?(await o)():o)[0],(0,a.lI)(i),i.__wbindgen_start(),n()}catch(e){n(e)}})},219:function(e,t,r){let n;function i(e){n=e}r.d(t,{Fz:()=>b,Qn:()=>w,aC:()=>_,bL:()=>h,iG:()=>g,lI:()=>i,qB:()=>y,yc:()=>v}),e=r.hmd(e);let a=null;function o(){return(null===a||0===a.byteLength)&&(a=new Uint8Array(n.memory.buffer)),a}let l="undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder,s=new l("utf-8",{ignoreBOM:!0,fatal:!0});s.decode();let u=0;function d(e,t){var r;return e>>>=0,r=e,(u+=t)>=0x7ff00000&&((s=new l("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),u=t),s.decode(o().subarray(r,r+t))}let c=0,p=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8"),m="function"==typeof p.encodeInto?function(e,t){return p.encodeInto(e,t)}:function(e,t){let r=p.encode(e);return t.set(r),{read:e.length,written:r.length}};function f(e,t,r){if(void 0===r){let r=p.encode(e),n=t(r.length,1)>>>0;return o().subarray(n,n+r.length).set(r),c=r.length,n}let n=e.length,i=t(n,1)>>>0,a=o(),l=0;for(;l<n;l++){let t=e.charCodeAt(l);if(t>127)break;a[i+l]=t}if(l!==n){0!==l&&(e=e.slice(l)),i=r(i,n,n=l+3*e.length,1)>>>0;let t=m(e,o().subarray(i+l,i+n));l+=t.written,i=r(i,n,l,1)>>>0}return c=l,i}function _(e){let t,r=f(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=c,a=n.transform_raw_u16_inline_style_ptr(r,i);return 0!==a[0]&&(t=d(a[0],a[1]).slice(),n.__wbindgen_free(a[0],+a[1],1)),t}function g(e,t){let r=f(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=c,a=f(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=c;return n.transform_raw_u16_inline_style_ptr_parsed(r,i,a,o)}function b(){return[]}function y(e,t){return e.push(t)}function h(){let e=n.__wbindgen_export_0,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}function v(e,t){return d(e,t)}function w(e,t){throw Error(d(e,t))}},708:function(e,t,r){r.a(e,async function(e,n){try{r.r(t),r.d(t,{__wbg_new_58353953ad2097cc:()=>i.Fz,__wbg_push_73fd7b5550ebf707:()=>i.qB,__wbg_set_wasm:()=>i.lI,__wbindgen_init_externref_table:()=>i.bL,__wbindgen_string_new:()=>i.yc,__wbindgen_throw:()=>i.Qn,transform_raw_u16_inline_style_ptr:()=>i.aC,transform_raw_u16_inline_style_ptr_parsed:()=>i.iG});var i=r(41),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},946:function(e,t,r){var n=r(219);e.exports=r.v(t,e.id,"8dc0062c26e8c5a1",{"./standard_bg.js":{__wbg_new_58353953ad2097cc:n.Fz,__wbindgen_string_new:n.yc,__wbg_push_73fd7b5550ebf707:n.qB,__wbindgen_throw:n.Qn,__wbindgen_init_externref_table:n.bL}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["895"],{949:function(t,e,s){s.d(e,{nd:()=>E,no:()=>y});class n{_parent;constructor(t){this._parent=t}setProperty(t,e,s){this._parent[i][_].push(10,this._parent[o],t,e,s??"");let n=this._parent.getAttribute("style")??"";this._parent[r].set("style",n+`${t}:${e}${s?` !${s}`:""};`)}removeProperty(t){this._parent[i][_].push(11,this._parent[o],t);let e=this._parent.getAttribute("style")??"";this._parent[r].set("style",e+`${t}:inital;`)}}let i=Symbol("ancestorDocument"),r=Symbol("_attributes"),l=Symbol("_children"),h=Symbol("textContent"),a=Symbol("_cssRuleContents"),o=Symbol("uniqueId"),u=Symbol("_style");class p extends EventTarget{[h]="";[u];[r]=new Map;_parentElement=null;[l]=[];[a];#t;[o];[i];localName;constructor(t,e){super(),this.localName=t,this[o]=e}get sheet(){if(!this.#t){let t=this[o],e=this[i],s=[];this.#t={cssRules:s,insertRule:(n,r)=>(s.splice(r,0,{style:{set cssText(text){e[_].push(14,t,r,text)}}}),this[a]||(this[a]=[]),this[a].splice(r,0,n),this[i][_].push(13,t,r,n),r)}}return this.#t}get tagName(){return this.localName.toUpperCase()}get style(){return this[u]||(this[u]=new n(this)),this[u]}get children(){return this[l].slice()}get parentElement(){return this._parentElement}get parentNode(){return this._parentElement}get firstElementChild(){return this[l][0]??null}get lastElementChild(){return this[l][this[l].length-1]??null}get nextElementSibling(){let t=this._parentElement;if(t){let e=t[l].indexOf(this);if(e>=0)return t[l][e+1]||null}return null}_remove(){if(this._parentElement){let t=this._parentElement[l].indexOf(this);this._parentElement[l].splice(t,1),this._parentElement=null}}setAttribute(t,e){this[r].set(t,e),this[i][_].push(2,this[o],t,e)}getAttribute(t){return this[r].get(t)??null}removeAttribute(t){this[r].delete(t),this[i][_].push(3,this[o],t)}append(...t){for(let e of(this[i][_].push(4,this[o],t.length,...t.map(t=>t[o])),t))e._remove(),e._parentElement=this;this[l].push(...t)}appendChild(t){return this[i][_].push(4,this[o],1,t[o]),t._remove(),t._parentElement=this,this[l].push(t),t}replaceWith(...t){if(this[i][_].push(6,this[o],t.length,...t.map(t=>t[o])),this._parentElement){let e=this._parentElement;this._parentElement=null;let s=e[l].indexOf(this);for(let n of(e[l].splice(s,1,...t),t))n._parentElement=e}}getAttributeNames(){return[...this[r].keys()]}remove(){this[i][_].push(5,this[o]),this._remove()}insertBefore(t,e){if(t._remove(),e){let s=this[l].indexOf(e);s>=0&&(t._parentElement=this,this[l].splice(s,0,t))}else t._parentElement=this,this[l].push(t);return this[i][_].push(7,this[o],t[o],e?.[o]??0),t}removeChild(t){if(!t||t._parentElement!==this)throw new DOMException("The node to be removed is not a child of this node.","NotFoundError");return this[i][_].push(9,this[o],t[o]),t._remove(),t}addEventListener(t,e,s){this[i][g](t,this[o]),super.addEventListener(t,e,s)}get textContent(){return this[h]}set textContent(t){for(let e of(this[i][_].push(12,this[o],t),this.children))e.remove();this[h]=t,this[a]&&(this[a]=[])}}let m=Symbol("propagationStopped"),c=Symbol("eventPhase");class d extends Event{_target;[c]=Event.CAPTURING_PHASE;constructor(t,e){super(t),this._target=e}get target(){return this._target}[m]=!1;stopImmediatePropagation(){this[m]=!0,super.stopImmediatePropagation()}stopPropagation(){this[m]=!0,super.stopPropagation()}get eventPhase(){return this[c]}}let _=Symbol("operations"),g=Symbol("enableEvent"),b=Symbol("getElementByUniqueId"),E=Symbol("_onEvent"),f=Symbol("uniqueIdInc"),v=Symbol("_uniqueIdToElement");class y extends p{_callbacks;[f]=1;[v]=[];[_]=[];[b](t){return this[v][t]?.deref()}[g];constructor(t){const e=(t,e)=>{this[_].push(8,e,t)};super("",0),this._callbacks=t,this[i]=this,this[g]=e}commit(){let t=this[_];this[_]=[],this._callbacks.onCommit(t)}createElement(t){let e=this[f]++,s=new p(t,e);return s[i]=this,this[v][e]=new WeakRef(s),this[_].push(1,e,t),s}[E]=(t,e,s,n)=>{let i=this[b](e);if(i){let e=[],r=i;for(;r.parentElement;)e.push(r.parentElement),r=r.parentElement;let l=new d(t,i);Object.assign(l,n),l[c]=Event.CAPTURING_PHASE;for(let t=e.length-1;t>=0;t--)if(e[t].dispatchEvent(l),l[m])return;if(l[c]=Event.AT_TARGET,i.dispatchEvent(l),s){for(let t of(l[c]=Event.BUBBLING_PHASE,e))if(t.dispatchEvent(l),l[m])return}}}}},933:function(t,e,s){s.d(e,{b:()=>i});var n=s(29);function i(t){let e=t.createCall(n.PM),s={records:[],timeout:null};return{markTimingInternal:(t,i,r)=>{(0,n.M$)({timingKey:t,pipelineId:i,timeStamp:r,markTiming:e,cacheMarkTimings:s})},flushMarkTimingInternal:()=>(0,n.qz)(e,s)}}},84:function(t,e,s){s.d(e,{f:()=>i});var n=s(29);function i(t,e){t.registerHandler(n.Ve,(...t)=>{e.updatePage?.(...t)})}},603:function(t,e,s){s.a(t,async function(t,n){try{s.d(e,{startMainThreadWorker:()=>p});var i=s(29),r=s(352),l=s(933),h=s(949),a=s(84);let{prepareMainThreadAPIs:t}=await s.e("361","high").then(s.bind(s,746));function o(t){return globalThis.module.exports=null,importScripts(t),globalThis.module?.exports}function u(t){return new Promise((e,s)=>{fetch(t).then(()=>{globalThis.module.exports=null,importScripts(t);let s=globalThis.module?.exports;e(s)}).catch(s)})}async function p(e,s){let n=new r.C(e,"main-to-ui"),p=new r.C(s,"main-to-bg"),{markTimingInternal:m,flushMarkTimingInternal:c}=(0,l.b)(p),d=n.createCall(i.E_),_=n.createCall(i.o2),g=new h.no({onCommit:d});Object.assign(globalThis,{document:g});let b={globalWindow:globalThis,loadScript:u,loadScriptSync:o},E=new i.gI;n.registerHandler(i.Zu,g[h.nd]);let f=n.createCall(i.gj),v=n.createCall(i.o3),{startMainThread:y}=t(p,g,g,b,t=>{g.commit(),f(t.map(t=>t.getAttribute(i.SP)).filter(t=>null!==t))},m,c,_,t=>{n.invoke(i.gx,[i.hv,t])},t=>(E.setData(t),E),v);n.registerHandler(i.Hf,async t=>{await y(t),(0,a.f)(n,globalThis)}),n.registerHandler(i.k3,t=>{E.setData(t)})}n()}catch(t){n(t)}},1)}}]);
@@ -0,0 +1,313 @@
1
+ (()=>{"use strict";var e,t,n,a,l,i,s,r,o,d={755:function(){},209:function(){},152:function(){},29:function(e,t,n){n.d(t,{Yx:()=>eE.Y,Ke:()=>x,g:()=>j,mB:()=>ee,SP:()=>a,er:()=>s,Gq:()=>o,pT:()=>B,im:()=>E,js:()=>l,HO:()=>el,gj:()=>N,jK:()=>K,tl:()=>c,Pb:()=>r,O4:()=>eb,c1:()=>b,Uc:()=>ey,F6:()=>W,PC:()=>F,gI:()=>es,C6:()=>d,pP:()=>i,Gm:()=>p,pd:()=>w,Wx:()=>ev,hO:()=>k,eZ:()=>O,JW:()=>C,E_:()=>_,M$:()=>eo,gx:()=>X,tf:()=>er,iH:()=>R,Fw:()=>z,JA:()=>h,qz:()=>ed,Sy:()=>q,oZ:()=>m,Hf:()=>I,o2:()=>M,$4:()=>f,hh:()=>A,ZU:()=>H,vr:()=>$,Ve:()=>L,Is:()=>G,zk:()=>D,I7:()=>v,vQ:()=>y,yn:()=>J,k3:()=>Z,vn:()=>Y,WS:()=>en,BE:()=>Q,y:()=>u,a$:()=>P,PM:()=>V,VK:()=>U,nk:()=>et,hv:()=>ei,OE:()=>g,Zu:()=>T,o3:()=>ea});let a="l-uid",l="l-css-id",i="l-comp-id",s="l-p-comp-uid",r="l-e-name",o="lynx-tag",d="l-dset",c="l-comp-cfg",h="l-disposed",u="l-template",m="l-part",p="lynx-default-display-linear",v="__lynx_timing_flag",b={platform:"web",lynxSdkVersion:"3.0"},g=[` [lynx-default-display-linear="false"] * {
2
+ --lynx-display: flex;
3
+ --lynx-display-toggle: var(--lynx-display-flex);
4
+ }`,`[lynx-default-overflow-visible="true"] x-view{
5
+ overflow: visible;
6
+ }`],f={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},y={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},E={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function S(e,t,n=!0,a=!1,l){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:a,bufferSize:l}}let w=S("__postExposure",!1,!1),x=S("publicComponentEvent",!1,!1),C=S("publishEvent",!1,!1),T=S("postOffscreenEventEndpoint",!1,!1),O=S("switchExposureServiceEndpoint",!1,!1),I=S("mainThreadStart",!1,!1),L=S("updateData",!1,!0),k=S("sendGlobalEventEndpoint",!1,!1),A=S("dispose",!1,!0),P=S("start",!1,!0),M=S("reportError",!1,!1),_=S("flushElementTree",!1,!0),R=S("callLepusMethod",!1,!0),N=S("multiThreadExposureChangedEndpoint",!1,!1),D=S("__invokeUIMethod",!1,!0),F=S("__setNativeProps",!1,!0),H=S("__getPathInfo",!1,!0),j=S("nativeModulesCall",!1,!0),U=S("napiModulesCall",!1,!0,!0),z=S("getCustomSections",!1,!0),V=S("markTiming",!1,!1),W=S("postTimingFlags",!1,!1),B=S("__triggerComponentEvent",!1,!1),$=S("__selectComponent",!1,!0),X=S("dispatchLynxViewEvent",!1,!1),q=S("dispatchNapiModule",!1,!1),K=S("dispatchCoreContextOnBackground",!1,!1),G=S("dispatchJSContextOnMainThread",!1,!1),Y=S("__triggerElementMethod",!1,!1),J=S("updateGlobalProps",!1,!1),Z=S("updateI18nResources",!1,!1),Q=S("updateI18nResource",!1,!1),ee=S("dispatchI18nResource",!1,!1),et=S("queryComponent",!1,!0),en=S("updateBTSTemplateCacheEndpoint",!1,!0),ea=S("loadTemplateMultiThread",!1,!0);(ec=ev||(ev={}))[ec.ID_SELECTOR=0]="ID_SELECTOR",ec[ec.REF_ID=1]="REF_ID",ec[ec.UNIQUE_ID=2]="UNIQUE_ID",(eh=eb||(eb={}))[eh.SUCCESS=0]="SUCCESS",eh[eh.UNKNOWN=1]="UNKNOWN",eh[eh.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",eh[eh.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",eh[eh.PARAM_INVALID=4]="PARAM_INVALID",eh[eh.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",eh[eh.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(eu=eg||(eg={}))[eu.UPDATE=0]="UPDATE",eu[eu.RESET=1]="RESET",(em=ef||(ef={}))[em.Unknown=0]="Unknown",em[em.UpdateExplicitByUser=1]="UpdateExplicitByUser",em[em.UpdateByKernelFromCtor=2]="UpdateByKernelFromCtor",em[em.UpdateByKernelFromRender=4]="UpdateByKernelFromRender",em[em.UpdateByKernelFromHydrate=8]="UpdateByKernelFromHydrate",em[em.UpdateByKernelFromGetDerived=16]="UpdateByKernelFromGetDerived",em[em.UpdateByKernelFromConflict=32]="UpdateByKernelFromConflict",em[em.UpdateByKernelFromHMR=64]="UpdateByKernelFromHMR",(ep=ey||(ey={}))[ep.START=0]="START",ep[ep.PLAY=1]="PLAY",ep[ep.PAUSE=2]="PAUSE",ep[ep.CANCEL=3]="CANCEL",ep[ep.FINISH=4]="FINISH";let el=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,ei="i18nResourceMissed";class es{data;constructor(e){this.data=e}setData(e){this.data=e}}class er 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 eo=({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))},ed=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)};var ec,eh,eu,em,ep,ev,eb,eg,ef,ey,eE=n(473)},473:function(e,t,n){n.d(t,{Y:()=>s});let a=["navigator","postMessage"],l=[e=>(e.appType=e.appType??(e.lepusCode.root.startsWith("(function (globDynamicComponentEntry")?"lazy":"card"),e.manifest=Object.fromEntries(Object.entries(e.manifest).map(([e,t])=>[e,`module.exports={init: (lynxCoreInject) => { var {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,__WebSocket__,webkit,Reporter,print,global,requestAnimationFrame,cancelAnimationFrame} = lynxCoreInject.tt; var module = {exports:{}}; var exports=module.exports; ${t}
7
+ return module.exports; } }`])),e.version=2,e)];async function i(e,t,n,l,i){let s=async([e,s])=>[e,await t((n?"//# allFunctionsCalledOnLoad":"")+'\n(function() { "use strict"; const '+a.join("=void 0,")+"=void 0;\n"+("card"!==l?"module.exports=\n":"")+s+"\n})()",`${i}-${e.replaceAll("/","")}.js`)];return Promise.all(Object.entries(e).filter(([e,t])=>"string"==typeof t).map(s)).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),manifest:await i(e.manifest,t,!1,e.appType,n)}}},688:function(e,t,n){n.a(e,async function(e,t){try{var a=n(736),l=n(29),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",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let n=this.lynxGroupId,i=this.threadStrategy??"all-on-ui",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)}})},736:function(e,t,n){n.a(e,async function(e,a){try{n.d(t,{P:()=>s});var l=n(719),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)}})},506:function(e,t,n){n.a(e,async function(e,t){try{var a=n(736),l=n(688),i=e([a,l]);[a,l]=i.then?(await i)():i,t()}catch(e){t(e)}})},778:function(e,t,n){n.d(t,{C:()=>r});var a=n(29);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("227"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},357:function(e,t,n){n.a(e,async function(e,a){try{n.d(t,{z:()=>r});var l=n(29),i=n(878),s=n(99);let{prepareMainThreadAPIs:e}=await n.e("361","high").then(n.bind(n,746));function r(t,n,a,r,o,d,c){let h,u,m;globalThis.module||Object.assign(globalThis,{module:{}});let p=new l.gI,{exposureChangedCallback:v}=(0,s.e)(n),b=((h=document.createElement("iframe")).style.display="none",h.srcdoc='<!DOCTYPE html><html><head></head><body style="display:none"></body></html>',h.sandbox="allow-same-origin allow-scripts",h.loading="eager",n.appendChild(h),u=h.contentWindow,m=async e=>{let t=h.contentDocument.createElement("script");return t.fetchPriority="high",t.defer=!0,t.async=!1,h.contentDocument.head||await new Promise(e=>{h.onload=()=>e(),setTimeout(()=>e(),0)}),h.contentDocument.head.appendChild(t),new Promise(async(n,a)=>{t.onload=()=>{let e=u?.module?.exports;u.module={exports:void 0},n(e)},t.onerror=t=>a(Error(`Failed to load script: ${e}`,{cause:t})),u.module={exports:void 0},t.src=e})},{globalWindow:u,loadScript:m,loadScriptSync:e=>{let t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(null),200===t.status){let e=h.contentDocument.createElement("script");e.textContent=t.responseText,u.module={exports:void 0},h.contentDocument.head.appendChild(e);let n=u?.module?.exports;return u.module={exports:void 0},n}throw Error(`Failed to load script: ${e}`,{cause:t})}}),g=b.globalWindow,{startMainThread:f}=e(t,n,document,b,v,r,o,(e,t,n)=>{d.onError?.(e,n,"lepus.js")},e=>{(0,i.D)(n,l.hv,e)},e=>(p.setData(e),p),a),y=[],E=async e=>{if(c){let t=[],a=n.querySelectorAll(`[${l.SP}]`),i=a.length;for(let e=0;e<i;e++){let n=a[e];t[Number(n.getAttribute(l.SP))]=new WeakRef(n)}let s=n.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 f(e,{lynxUniqueIdToElement:t,lynxUniqueIdToStyleRulesIndex:o,...c,cardStyleElement:s})}else await f(e);for(let e of y)g.updatePage?.(...e);y.length=0},S=async(...e)=>{g?g.updatePage?.(...e):y.push(e)};return{start:E,updateDataMainThread:S,updateI18nResourcesMainThread:e=>{p.setData(e)}}}a()}catch(e){a(e)}},1)},618:function(e,t,n){n.d(t,{k:()=>h});var a=n(29),l=n(334);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"],o=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);var d=n(524),c=n(99);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)}}},218:function(e,t,n){n.d(t,{i:()=>l});var a=n(29);function l(e,t){return async()=>{await e.invoke(a.hh,[]),t()}}},99:function(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(29);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))})}},682:function(e,t,n){n.d(t,{k:()=>a});function a(e,t){return(n,a,l)=>{Promise.all([e(n,{}),t(n,{})]).then(()=>l?.())}}},524:function(e,t,n){n.d(t,{c:()=>i});var a=n(29),l=n(878);function i(e,t){e.registerHandler(a.gx,(e,n)=>{(0,l.D)(t,e,n)})}},334:function(e,t,n){n.d(t,{m:()=>l});var a=n(29);function l(e,t,n){e.registerHandler(a.o2,(e,a,l)=>{n?.(e,l,t)})}},555:function(e,t,n){n.d(t,{r:()=>o});var a=n(29);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(524),r=n(334);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),b=e.createCall(a.PM);return{sendGlobalEvent:v,markTiming:b,updateDataBackground:e.createCall(a.Ve),updateI18nResourceBackground:(t,n)=>{let l=t.find(e=>(0,a.HO)(e.options)===(0,a.HO)(n));e.invoke(a.BE,[l?.resource])}}}},719:function(e,t,n){n.a(e,async function(e,a){try{n.d(t,{$:()=>m});var l=n(778),i=n(218),s=n(29),r=n(32),o=n(682),d=n(555),c=n(618),h=n(357),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,updateDataBackground:w,updateI18nResourceBackground:x}=(0,d.r)(f,n,m),C={records:[],timeout:null},T=(e,t,n)=>{(0,s.M$)({timingKey:e,pipelineId:t,timeStamp:n,markTiming:E,cacheMarkTimings:C})},O=()=>(0,s.qz)(E,C),I=(0,r._)(m.customTemplateLoader,T),{start:L,updateDataMainThread:k,updateI18nResourcesMainThread:A}=b?(0,h.z)(g,n,I,T,O,m,p):(0,c.k)(g,n,I,m);return T("create_lynx_start",void 0,v),I(e).then(e=>{O(),L({...t,template:e})}),{updateData:(0,o.k)(k,w),dispose:(0,i.i)(f,y),sendGlobalEvent:S,updateGlobalProps:f.createCall(s.yn),updateI18nResources:(...e)=>{A(e[0]),x(...e)}}}h=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},878:function(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}))}},32:function(e,t,n){n.d(t,{_:()=>s});var a=n(29);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);t(s)}catch(e){l.delete(n),s(e)}});return l.set(n,s),t("load_template_end"),s}}}},569:function(){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,U,z,V,W,B,$,X,q,K,G,Y,J,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,eU,ez,eV,eW,eB,e$,eX,eq,eK,eG,eY,eJ,eZ,eQ,e0,e1,e2,e3,e8,e4,e5,e9,e6,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,tU,tz,tV,tW,tB,t$,tX,tq,tK,tG,tY,tJ,tZ,tQ,t0,t1,t2,t3,t8,t4,t5,t9,t6,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,nU,nz,nV,nW,nB,n$,nX,nq,nK,nG,nY,nJ,nZ,nQ,n0,n1,n2,n3,n8,n4,n5,n9,n6,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,aU,az,aV,aW,aB,a$,aX,aq,aK,aG,aY,aJ,aZ,aQ,a0,a1,a2,a3,a8,a4,a5,a9,a6,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,lU,lz,lV,lW,lB,l$,lX,lq,lK,lG,lY,lJ,lZ,lQ,l0,l1,l2,l3,l8,l4,l5,l9,l6,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,iU,iz,iV,iW,iB,i$,iX,iq,iK,iG,iY,iJ,iZ,iQ,i0;function i1(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 i2(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 i3(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 i8=[];function i4(){let e=i8;for(let[t,n]of(i8=[],e))n?t.call(n):t()}function i5(e,t){0===i8.length&&queueMicrotask(i4),i8.push([e,t])}function i9(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,i5(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&&i5(()=>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||i5(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#y.forEach(e=>{e.connectedCallback?.()}),this.#x(),i5(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=[i9("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;i1(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}),i2(i,r)}};let i6={bubbles:!1,composed:!1,cancelable:!0};function i7(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 se=i7("eventStatusChangedHandler",e=>e),st=Symbol("layoutChangeTarget"),sn=(d=[],c=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1(null,null,[se("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){i2(this,c),this.#I=e}#L=!1;#k;__handleScrollUpperThresholdEventEnabled=i2(this,d,e=>{e&&this.#I[st]?!this.#k&&(this.#k=new ResizeObserver(([e])=>{if(e){let{width:t,height:n,left:a,right:l,top:i,bottom:s}=e.contentRect,r=this.#I.id;this.#I.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:t,height:n,left:a,right:l,top:i,bottom:s,id:r},...i6}))}}),this.#L||(this.#k.observe(this.#I[st]),this.#L=!0)):this.#k?.disconnect()});#A(){this.#k?.disconnect()}}),sa=i7("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),sl=i7("cssPropertyChangedHandler",e=>e);function si(e,t){let n,a;return()=>(a||(a=e()),a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=a.querySelector(t)),n)}function ss(e,t,n,a){return function(l){l?(n&&(l=n(l)),i5(()=>e.call(this).style.setProperty(t,l,a?"important":void 0))):i5(()=>e.call(this).style.removeProperty(t))}}let sr=(p=[],v=[],b=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;h=[sa("fading-edge-length",!0)],u=[sl("background"),sl("background-color")],i1(this,m={value:i3(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),i1(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=i2(this,p);#P=si(()=>this.#I.shadowRoot,"#top-fade-mask");#M=si(()=>this.#I.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){i2(this,b),this.#I=e}#R=i2(this,v,ss(()=>this.#I,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));get #_(){return m.value}connectedCallback(){}dispose(){}}),so=(S=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;g=[sa("scroll-top",!1),sa("scroll-left",!1),sa("initial-scroll-offset",!1)],y=[sa("scroll-to-index",!1),sa("initial-scroll-to-index",!1)],i1(this,f={value:i3(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),i1(this,E={value:i3(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=i2(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 sd(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 sc="onscrollend"in document,sh=window.navigator.userAgent;sh.includes("Chrome"),/\b(iPad|iPhone|iPod|OS X)\b/.test(sh)&&!/Edge/.test(sh)&&/WebKit/.test(sh)&&window.MSStream;let su=Symbol.for("lynx-scroll-container-dom"),sm=(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=[se("scrolltoupper")],x=[se("scrolltolower")],C=[sa("upper-threshold",!0)],T=[sa("lower-threshold",!0)],O=[se("lynxscroll")],I=[se("lynxscrollend")],i1(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),i1(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),i1(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,_),i1(null,null,T,{kind:"field",name:"#updateLowerThreshold",static:!1,private:!0,access:{has:e=>#U in e,get:e=>e.#U,set:(e,t)=>{e.#U=t}},metadata:e},R,N),i1(null,null,O,{kind:"field",name:"#handleScrollEventEnabled",static:!1,private:!0,access:{has:e=>#z in e,get:e=>e.#z,set:(e,t)=>{e.#z=t}},metadata:e},D,F),i1(null,null,I,{kind:"field",name:"#handleScrollEndEventEnabled",static:!1,private:!0,access:{has:e=>#V in e,get:e=>e.#V,set:(e,t)=>{e.#V=t}},metadata:e},H,j),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I;#W;#B=0;#$=0;constructor(e){i2(this,j),this.#I=e}#X=()=>this.#I;#q=si(()=>this.#I.shadowRoot,"#upper-threshold-observer");#K=si(()=>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",{...i6,detail:this.#Y()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...i6,detail:this.#Y()})))};static observedAttributes=["upper-threshold","lower-threshold"];#F=i2(this,L,e=>{e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#J(e)});#J=(i2(this,k),sd(this.#X,this.#q,this.#G));#H=i2(this,A,e=>{e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),this.#Z(e)});#Z=(i2(this,P),sd(this.#X,this.#K,this.#G));#j=i2(this,M,ss(this.#q,"flex-basis",e=>`${parseInt(e)}px`));#U=(i2(this,_),i2(this,R,ss(this.#K,"flex-basis",e=>`${parseInt(e)}px`)));#Y(){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.#B,deltaY:e-this.#$};return this.#B=t,this.#$=e,l}#Q=(i2(this,N),()=>{this.#ee&&!sc&&(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...i6,detail:this.#Y()}))});#et=()=>{this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...i6,detail:this.#Y()}))};#en=!1;#z=i2(this,D,e=>{this.#en=e,this.#ea()});#ee=(i2(this,F),!1);#V=i2(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.#B=0,this.#$=0):(this.#I.removeEventListener("scroll",this.#Q),this.#I.removeEventListener("scrollend",this.#et))}connectedCallback(){}dispose(){}});class sp{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(sp.eventName,this.#el,{passive:!1})}dispose(){this.#I.removeEventListener(sp.eventName,this.#el)}}let sv=/<\s*script/g,sb=e=>{let{src:t}=e;if(t&&sv.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}"`:""}/> `},sg=`<style>
8
+ #input:focus {
9
+ outline: none;
10
+ }
11
+ #form {
12
+ display: none;
13
+ }
14
+ </style>
15
+ <form id="form" part="form" method="dialog">
16
+ <input
17
+ id="input"
18
+ part="input"
19
+ step="any"
20
+ type="text"
21
+ inputmode="text"
22
+ spell-check="true"
23
+ />
24
+ </form>`,sf=`<style>
25
+ .placeholder-dom {
26
+ display: none;
27
+ flex: 0 0 0;
28
+ align-self: stretch;
29
+ min-height: 0;
30
+ min-width: 0;
31
+ }
32
+ .observer-container {
33
+ flex-direction: inherit;
34
+ overflow: visible;
35
+ }
36
+ .observer {
37
+ display: flex;
38
+ }
39
+ </style>
40
+ <div id="content" part="content">
41
+ <div
42
+ class="observer-container placeholder-dom"
43
+ part="upper-threshold-observer"
44
+ >
45
+ <div
46
+ class="observer placeholder-dom"
47
+ id="upper-threshold-observer"
48
+ ></div>
49
+ </div>
50
+ <slot part="slot"></slot>
51
+ <div
52
+ class="observer-container placeholder-dom"
53
+ part="lower-threshold-observer"
54
+ >
55
+ <div
56
+ class="observer placeholder-dom"
57
+ id="lower-threshold-observer"
58
+ ></div>
59
+ </div>
60
+ </div>`,sy=`<style>
61
+ #dialog[open] {
62
+ top: 0;
63
+ left: 0;
64
+ right: 0;
65
+ bottom: 0;
66
+ position: fixed;
67
+ overscroll-behavior: contain;
68
+ scrollbar-width: none;
69
+ }
70
+ #dialog[open]::-webkit-scrollbar {
71
+ display: none;
72
+ }
73
+ #dialog::backdrop {
74
+ background-color: transparent;
75
+ }
76
+ .overlay-inner {
77
+ position: sticky;
78
+ top: 0;
79
+ width: 100%;
80
+ height: 100%;
81
+ pointer-events: none;
82
+ }
83
+ .overlay-inner > * {
84
+ pointer-events: auto;
85
+ }
86
+ .overlay-placeholder {
87
+ width: 100%;
88
+ height: 1px;
89
+ }
90
+ </style>
91
+ <dialog id="dialog" part="dialog">
92
+ <div class="overlay-inner">
93
+ <slot></slot>
94
+ </div>
95
+ <div class="overlay-placeholder"></div>
96
+ </dialog>`,sE=`<style>
97
+ .bounce-container {
98
+ overflow: scroll;
99
+ overscroll-behavior: contain;
100
+ scroll-snap-type: y mandatory;
101
+ scroll-behavior: smooth;
102
+ scrollbar-width: none;
103
+ }
104
+ .overflow-placeholder {
105
+ min-height: 30%;
106
+ min-width: 100%;
107
+ flex-shrink: 0;
108
+ scroll-snap-align: none;
109
+ }
110
+ .not-shrink {
111
+ height: 100%;
112
+ width: 100%;
113
+ min-height: 100%;
114
+ min-width: 100%;
115
+ flex-shrink: 0;
116
+ }
117
+ .vertical {
118
+ display: flex;
119
+ flex-direction: column;
120
+ }
121
+ #content {
122
+ scroll-snap-align: center;
123
+ }
124
+ </style>
125
+ <div id="container" part="container" class="bounce-container not-shrink vertical">
126
+ <div
127
+ id="placeholder-top"
128
+ class="overflow-placeholder bounce-item"
129
+ part="placeholder-top"
130
+ ></div>
131
+ <slot name="header"></slot>
132
+ <div id="content" part="content" class="not-shrink vertical">
133
+ <slot part="slot"></slot>
134
+ </div>
135
+ <slot name="footer"></slot>
136
+ <div
137
+ id="placeholder-bot"
138
+ class="overflow-placeholder bounce-item"
139
+ part="placeholder-bot"
140
+ ></div>
141
+ </div>`,sS=`<style>
142
+ #bounce-padding {
143
+ display: none;
144
+ flex: 0 0 0;
145
+ align-self: stretch;
146
+ scroll-snap-align: none;
147
+ flex-basis: 100%;
148
+ }
149
+ #content {
150
+ position: relative;
151
+ display: flex;
152
+ flex: 0 0 100%;
153
+ flex-direction: inherit;
154
+ flex-wrap: inherit;
155
+ align-self: stretch;
156
+ justify-content: inherit;
157
+ align-items: inherit;
158
+ overflow: inherit;
159
+ scrollbar-width: none;
160
+ scroll-snap-align: start;
161
+ scroll-snap-type: inherit;
162
+ }
163
+ div::-webkit-scrollbar {
164
+ display: none;
165
+ }
166
+ #indicator-container {
167
+ display: none;
168
+ }
169
+ #indicator-container > div {
170
+ animation-name: indicator-dot;
171
+ animation-duration: 100ms;
172
+ }
173
+ @keyframes indicator-dot {
174
+ 30%,
175
+ 70% {
176
+ background-color: var(--indicator-color);
177
+ }
178
+ 31%,
179
+ 69% {
180
+ background-color: var(--indicator-active-color);
181
+ }
182
+ }
183
+ </style>
184
+ <style id="indicator-style"></style>
185
+ <div id="bounce-padding" part="bounce-padding"></div>
186
+ <div id="indicator-container" part="indicator-container"></div>
187
+ <div id="content" part="content">
188
+ <slot part="slot-start" name="circular-start" id="circular-start"></slot>
189
+ <slot part="slot"></slot>
190
+ <slot part="slot-end" name="circular-end" id="circular-end"></slot>
191
+ </div>`,sw=`<style>
192
+ #textarea:focus,
193
+ #textarea:focus-visible {
194
+ border: inherit;
195
+ outline: inherit;
196
+ }
197
+ </style>
198
+ <form id="form" part="form" method="dialog">
199
+ <textarea id="textarea" part="textarea"></textarea>
200
+ </form>`,sx=`<style>
201
+ #bounce-padding {
202
+ display: none;
203
+ flex: 0 0 0;
204
+ align-self: stretch;
205
+ scroll-snap-align: none;
206
+ flex-basis: 100%;
207
+ }
208
+ #content {
209
+ flex: 0 0 100%;
210
+ flex-direction: row;
211
+ align-self: stretch;
212
+ display: inherit;
213
+ justify-content: inherit;
214
+ align-items: inherit;
215
+ overflow: inherit;
216
+ scrollbar-width: none;
217
+ scroll-snap-type: inherit;
218
+ }
219
+ #content::-webkit-scrollbar {
220
+ display: none;
221
+ }
222
+ </style>
223
+ <div id="bounce-padding" part="bounce-padding"></div>
224
+ <div id="content" part="content">
225
+ <slot></slot>
226
+ </div>`;function sC(e,t,n){return function(a){n&&(a=n(a));let l=e.call(this);l.getAttribute(t)!==a&&(null!==a?i5(()=>{l.setAttribute(t,a)}):i5(()=>{l.removeAttribute(t)}))}}V=[i9("scroll-view",[sn,so,sr,sm,sp],`<style>
227
+ .placeholder-dom {
228
+ display: none;
229
+ flex: 0 0 0;
230
+ align-self: stretch;
231
+ min-height: 0;
232
+ min-width: 0;
233
+ }
234
+ .mask {
235
+ z-index: 1;
236
+ position: sticky;
237
+ }
238
+ .observer-container {
239
+ flex-direction: inherit;
240
+ overflow: visible;
241
+ }
242
+ .observer {
243
+ display: flex;
244
+ }
245
+ ::-webkit-scrollbar {
246
+ display: none;
247
+ }
248
+
249
+ @keyframes topFading {
250
+ 0% {
251
+ box-shadow: transparent 0px 0px 0px 0px;
252
+ }
253
+ 5% {
254
+ box-shadow: var(--scroll-view-bg-color) 0px 0px
255
+ var(--scroll-view-fading-edge-length)
256
+ var(--scroll-view-fading-edge-length);
257
+ }
258
+ 100% {
259
+ box-shadow: var(--scroll-view-bg-color) 0px 0px
260
+ var(--scroll-view-fading-edge-length)
261
+ var(--scroll-view-fading-edge-length);
262
+ }
263
+ }
264
+ @keyframes botFading {
265
+ 0% {
266
+ box-shadow: var(--scroll-view-bg-color) 0px 0px
267
+ var(--scroll-view-fading-edge-length)
268
+ var(--scroll-view-fading-edge-length);
269
+ }
270
+ 95% {
271
+ box-shadow: var(--scroll-view-bg-color) 0px 0px
272
+ var(--scroll-view-fading-edge-length)
273
+ var(--scroll-view-fading-edge-length);
274
+ }
275
+ 100% {
276
+ box-shadow: transparent 0px 0px 0px 0px;
277
+ }
278
+ }
279
+ </style>
280
+ <div
281
+ class="mask placeholder-dom"
282
+ id="top-fade-mask"
283
+ part="top-fade-mask"
284
+ ></div>
285
+ <div
286
+ class="observer-container placeholder-dom"
287
+ part="upper-threshold-observer"
288
+ >
289
+ <div
290
+ class="observer placeholder-dom"
291
+ id="upper-threshold-observer"
292
+ ></div>
293
+ </div>
294
+ <slot></slot>
295
+ <div
296
+ class="observer-container placeholder-dom"
297
+ part="lower-threshold-observer"
298
+ >
299
+ <div
300
+ class="observer placeholder-dom"
301
+ id="lower-threshold-observer"
302
+ ></div>
303
+ </div>
304
+ <div
305
+ class="mask placeholder-dom"
306
+ id="bot-fade-mask"
307
+ part="bot-fade-mask"
308
+ ></div>`)],W=[],B=HTMLElement,e=class extends B{static{z=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(B[Symbol.metadata]??null):void 0;i1(null,U={value:z},V,{kind:"class",name:z.name,metadata:t},null,W),e=z=U.value,t&&Object.defineProperty(z,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[su](){return this}static{i2(z,W)}},e=z;let sT=Symbol("__src"),sO=Symbol("__src"),sI={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sL={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 sk=(Y=[],J=[],Z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;$=[sa("src",!0)],q=[sa("loop",!0)],K=[sa("pause-on-hide",!0)],i1(this,X={value:i3(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",{...i6,detail:{code:a.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[sT]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...i6,detail:{code:a.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[sT]?.id}})),this.#I[sT]=t,this.#I[sO]=void 0,this.#I.stop()},"#handleSrc")},$,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,Y),i1(this,G={value:i3(function(e){null!==e?document.addEventListener("visibilitychange",this.#er,{passive:!0}):document.removeEventListener("visibilitychange",this.#er)},"#handlePauseOnHide")},K,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#eo in e,get:e=>e.#eo},metadata:e},null,Y),i1(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},J,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=i2(this,Y);#ec=si(()=>this.#I.shadowRoot,"#audio");#eh=sC(this.#ec,"src");get #es(){return X.value}#ed=i2(this,J,sC(this.#ec,"loop"));#er=(i2(this,Z),()=>{"hidden"===document.visibilityState&&this.#I.pause()});get #eo(){return G.value}constructor(e){this.#I=e}});class sA{static observedAttributes=[];#I;#eu;#ec=si(()=>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",{...i6,detail:{currentTime:this.#ec().currentTime,currentSrcID:this.#I[sT]?.id}}))},n);let a=sL[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...i6,detail:{code:a?.code,type:a?.type,currentSrcID:this.#I[sT]?.id}}))};#ep=e=>{clearInterval(this.#eu);let t=sL[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...i6,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sT]?.id}}))};#ev=e=>{let t=sI[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...i6,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sT]?.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",{...i6,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[sT]?.id}}))};#eg=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...i6,detail:{loop:e,currentSrcID:this.#I[sT]?.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=[i9("x-audio-tt",[sn,sk,sA],'<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;i1(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}),i2(ee,en)}#ef=si(()=>this.shadowRoot,"#audio");#ec=si(()=>this.shadowRoot,"#audio");#eh=sC(this.#ec,"src");[sT];[sO];#ey=()=>{let e,t=this[sT];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[sO]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...i6,detail:{code:0,type:"loading",currentSrcID:t.id}}));let i=await fetch(t.play_url,{headers:e});i.ok||(this.dispatchEvent(new CustomEvent("error",{...i6,detail:{code:a.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...i6,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await i.blob(),r=URL.createObjectURL(s);this.#eh(r),n()})}};play(){return this[sO]||this.#ey(),this[sO]?.then(()=>{let e=this.#ef();e.currentTime=0,e.play()}),{currentSrcID:this[sT]?.id,loadingSrcID:""}}stop(){let e=this.#ef(),t=sL.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...i6,detail:{code:t?.code,type:t?.type,currentSrcID:this[sT]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[sT]?.id}}pause(){return this.#ef().pause(),{currentSrcID:this[sT]?.id}}resume(){return this.#ef().play(),{currentSrcID:this[sT]?.id,loadingSrcID:""}}seek(e){return this.#ef().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...i6,detail:{seekresult:1,currentSrcID:this[sT]?.id}})),{currentSrcID:this[sT]?.id}}mute(e){return this.#ef().muted=e.mute,{currentSrcID:this[sT]?.id}}playerInfo(){var e;let t=this.#ef(),n=t.buffered,a=n.end(n.length-1);return{currentSrcID:this[sT]?.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[sO]||this.#ey()}setVolume(e){return this.#ef().volume=e.volume,{code:1}}}),ev=[i9("x-canvas",[sn,(er=[],eo=[],ed=[],ec=[],eh=[],eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;el=[sa("name",!0)],ei=[sa("height",!0)],es=[sa("width",!0)],i1(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),i1(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),i1(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=si(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=i2(this,er,sC(this.#eE,"name"));handleHeight=(i2(this,eo),i2(this,ed,sC(this.#eE,"height")));handleWidth=(i2(this,ec),i2(this,eh,sC(this.#eE,"width")));#eS=(i2(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",{...i6,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;i1(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}),i2(ep,eb)}};let sP=(ew=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ef=[sa("granularity",!0)],eE=[se("offset")],i1(this,ey={value:i3(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),i1(this,eS={value:i3(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=i2(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",{...i6,detail:{offset:e,height:this.#I[sM]}})))}}),sM=Symbol("scrollableLength"),s_=Symbol("isHeaderShowing"),sR=Symbol("resizeObserver"),sN=Symbol("slotKid");eT=[i9("x-foldview-ng",[sn,sP])],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;i1(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"]);[sN];[sR]=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[sN]&&(this[sN].style.top=`${this.#eL-this.#ek}px`)});#eL=0;#ek=0;get[sM](){return this.#eL-this.#ek}get[s_](){return this[sM]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sM]?e=this[sM]: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[su](){return this}disconnectedCallback(){this[sR]?.disconnect(),this[sR]=void 0}static{i2(eC,eO)}};let sD=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};eA=[i9("x-foldview-header-ng",[sn])],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;i1(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}),i2(ek,eP)}#eA=void 0;connectedCallback(){let e=sD(this,"X-FOLDVIEW-NG");this.#eA=e?.[sR],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}}),eN=[i9("x-foldivew-slot-drag-ng",[sn])],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;i1(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}),i2(eR,eD)}};class sF{#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.#eU,{passive:!0}),this.#I.addEventListener("touchend",this.#ez,{passive:!0})}#eV(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})}#eW(e,t){let n=this.#eM.get(e)??0;n+=t,this.#eM.set(e,n),e.scrollTop=n}#ej=e=>{let t=this.#eB(),{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.#eV(l);t&&(e.cancelable&&e.preventDefault(),t[s_]&&l>0||l<0&&!i||!t[s_]&&!i?(t.scrollBy({top:l,behavior:"smooth"}),this.#eP+=l,t.scrollTop=this.#eP,this.#eF=t):i&&(this.#eF=i,this.#eW(i,l))),this.#eR=n,this.#eH=l};#eB(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#eU=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.#eB()?.scrollTop??0,this.#e_))this.#eM.set(e,e.scrollTop);this.#eD=null,this.#eF=void 0};#ez=()=>{if(this.#eD=null,this.#eF){let e=this.#eB();(this.#eF!==e||e[s_])&&this.#eF.scrollBy({top:4*this.#eH,behavior:"smooth"})}}}eU=[i9("x-foldview-slot-ng",[sn,sF])],ez=[],eV=HTMLElement,(class extends eV{static{ej=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eV[Symbol.metadata]??null):void 0;i1(null,eH={value:ej},eU,{kind:"class",name:ej.name,metadata:e},null,ez),ej=eH.value,e&&Object.defineProperty(ej,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ej,ez)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sN]=this)}}),e$=[i9("x-foldview-toolbar-ng",[sn])],eX=[],eq=HTMLElement,class extends eq{static{eB=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eq[Symbol.metadata]??null):void 0;i1(null,eW={value:eB},e$,{kind:"class",name:eB.name,metadata:e},null,eX),eB=eW.value,e&&Object.defineProperty(eB,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(eB,eX)}#eA=void 0;connectedCallback(){let e=sD(this,"X-FOLDVIEW-NG");this.#eA=e?.[sR],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}};let sH=(e2=[],e3=[],e8=[],e4=[],e5=[],e9=[],e6=[],e7=[],te=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eY=[sa("src",!0)],eJ=[sa("placeholder",!0)],eQ=[sa("blur-radius",!0)],e0=[sa("crossorigin",!0)],e1=[sa("referrerpolicy",!0)],i1(this,eZ={value:i3(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},eJ,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#e$ in e,get:e=>e.#e$},metadata:e},null,e2),i1(null,null,eY,{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},e3,e8),i1(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},e4,e5),i1(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,e6),i1(null,null,e1,{kind:"field",name:"#handleReferrerpolicy",static:!1,private:!0,access:{has:e=>#eK in e,get:e=>e.#eK,set:(e,t)=>{e.#eK=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=i2(this,e2);#eG=si(()=>this.#I.shadowRoot,"#img");#es=i2(this,e3,sC(this.#eG,"src",e=>e||this.#I.getAttribute("placeholder")));get #e$(){return eZ.value}#eX=(i2(this,e8),i2(this,e4,ss(this.#eG,"--blur-radius",void 0,!0)));#eq=(i2(this,e5),i2(this,e9,sC(this.#eG,"crossorigin")));#eK=(i2(this,e6),i2(this,e7,sC(this.#eG,"referrerpolicy")));#eY=(i2(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.#eY)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this.#es(null)}}),sj=(ti=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tt=[se("load")],ta=[se("error")],i1(this,tn={value:i3(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#enableLoadEvent")},tt,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,ti),i1(this,tl={value:i3(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=i2(this,ti);#eG=si(()=>this.#I.shadowRoot,"#img");get #eZ(){return tn.value}get #e0(){return tl.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...i6,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};#eQ=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...i6,detail:{}}))};constructor(e){this.#I=e}});to=[i9("filter-image",[sn,sH,(eK=[],eG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1(null,null,[sa("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},eK,eG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#eG=si(()=>this.#I.shadowRoot,"#img");#eX=i2(this,eK,ss(this.#eG,"--drop-shadow",void 0,!0));constructor(e){i2(this,eG),this.#I=e}}),sj],sb({}))],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;i1(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}),i2(tr,td)}}),tm=[i9("x-image",[sn,sH,sj],sb({}))],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;i1(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}),i2(tu,tp)}};let sU={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};ne=[i9("x-input",[sn,(tD=[],tF=[],tH=[],tj=[],tU=[],tz=[],tV=[],tW=[],tB=[],t$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tP=[sa("placeholder",!0)],tM=[sa("placeholder-color",!0)],t_=[sa("placeholder-font-family",!0)],tR=[sa("placeholder-font-size",!0)],tN=[sa("placeholder-font-weight",!0)],i1(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),i1(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),i1(null,null,t_,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e3 in e,get:e=>e.#e3,set:(e,t)=>{e.#e3=t}},metadata:e},tU,tz),i1(null,null,tR,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},tV,tW),i1(null,null,tN,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4,set:(e,t)=>{e.#e4=t}},metadata:e},tB,t$),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;#e5=si(()=>this.#I.shadowRoot,"#input");#e1=i2(this,tD,sC(this.#e5,"placeholder"));#e2=(i2(this,tF),i2(this,tH,ss(this.#e5,"--placeholder-color",void 0,!0)));#e3=(i2(this,tj),i2(this,tU,ss(this.#e5,"--placeholder-font-family",void 0,!0)));#e8=(i2(this,tz),i2(this,tV,ss(this.#e5,"--placeholder-font-size",void 0,!0)));#e4=(i2(this,tW),i2(this,tB,ss(this.#e5,"--placeholder-font-weight",void 0,!0)));constructor(e){i2(this,t$),this.#I=e}}),(tY=[],tJ=[],tZ=[],tQ=[],t0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tX=[sa("value",!1)],tK=[sa("disabled",!0)],tG=[sa("autocomplete",!0)],i1(this,tq={value:i3(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#e5();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,tY),i1(null,null,tK,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e6 in e,get:e=>e.#e6,set:(e,t)=>{e.#e6=t}},metadata:e},tJ,tZ),i1(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=i2(this,tY);#e5=si(()=>this.#I.shadowRoot,"#input");get #e9(){return tq.value}#e6=i2(this,tJ,sC(this.#e5,"disabled",e=>null!==e?"":null));#e7=(i2(this,tZ),i2(this,tQ,sC(this.#e5,"autocomplete")));constructor(e){i2(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=[sa("confirm-type",!0)],tg=[sa("maxlength",!0)],tf=[sa("readonly",!0)],ty=[sa("type",!0)],tS=[sa("ios-spell-check",!0),sa("spell-check",!0)],i1(this,tE={value:i3(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),i1(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),i1(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),i1(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),i1(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=i2(this,tw);#tr="text";#e5=si(()=>this.#I.shadowRoot,"#input");#ta=i2(this,tx,sC(this.#e5,"enterkeyhint",e=>null===e?"send":e));#tl=(i2(this,tC),i2(this,tT,sC(this.#e5,"maxlength",e=>null===e?"140":e)));#ti=(i2(this,tO),i2(this,tI,sC(this.#e5,"readonly",e=>null!==e?"":null)));#tt=(i2(this,tL),sC(this.#e5,"type"));#te=sC(this.#e5,"inputmode");get #tn(){return tE.value}#ts=i2(this,tk,sC(this.#e5,"spellcheck",e=>null===e?"false":"true"));constructor(e){i2(this,tA),this.#I=e}}),(t9=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[sa("input-filter",!0),se("lynxinput")],t3=[sa("send-composing-input",!0)],t4=[se("selection")],i1(this,t2={value:i3(function(e){let t=this.#e5();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),i1(this,t8={value:i3(function(e){this.#th=null!==e},"#handleSendComposingInput")},t3,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,t9),i1(this,t5={value:i3(function(e){e?this.#e5().addEventListener("select",this.#tm,{passive:!0}):this.#e5().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},t4,{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=i2(this,t9);#th=!1;#e5=si(()=>this.#I.shadowRoot,"#input");#tv=si(()=>this.#I.shadowRoot,"#form");get #tc(){return t2.value}get #tu(){return t8.value}#tb=e=>{let t=sU[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...i6,detail:{value:this.#e5().value}}))};#to=e=>{let t=this.#e5(),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",{...i6,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#e5(),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",{...i6,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return t5.value}#tm=()=>{let e=this.#e5();this.#I.dispatchEvent(new CustomEvent("selection",{...i6,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#e5()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#e5(),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})}})],sg)],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;i1(null,t6={value:t7},ne,{kind:"class",name:t7.name,metadata:e},null,nt),t7=t6.value,e&&Object.defineProperty(t7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(t7,nt)}#tf=si(()=>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=[i9("x-overlay-ng",[sn,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[sa("events-pass-through",!0)],ni=[sa("visible",!1)],i1(this,nl={value:i3(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),i1(this,ns={value:i3(function(e){this.#tw=null!==e,this.#tx&&(this.#tw?(this.#ty().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",i6))):(this.#ty().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",i6))))},"#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=i2(this,nr);#tx=!!window.HTMLDialogElement;#tw=!1;constructor(e){this.#I=e}#ty=si(()=>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")}})],sy)],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;i1(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}),i2(nd,nh)}get[st](){return this.shadowRoot.firstElementChild}};class sz extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sz.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sV{#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 sz(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 sW(e,t,n,a){let l=!1;return function(i){if(i!==l){let s=e.call(this);i?(i5(()=>s.addEventListener(t,n,a)),l=!0):(i5(()=>s.removeEventListener(t,n)),l=!1)}}}nv=[i9("x-refresh-footer",[sn,sV])],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;i1(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}),i2(np,nb)}connectedCallback(){this.setAttribute("slot","footer")}}),nE=[i9("x-refresh-header",[sn,sV])],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;i1(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}),i2(ny,nS)}connectedCallback(){this.setAttribute("slot","header")}}),nA=[i9("x-refresh-view",[sn,(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nx=[se("headeroffset"),se("headershow"),se("footeroffset")],nT=[se("startrefresh"),se("headerreleased"),se("startloadmore"),se("footerreleased")],i1(this,nC={value:i3(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),i1(this,nO={value:i3(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=i2(this,nI);static observedAttributes=[];#t_=si(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#tR=si(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(sz.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)};#tU=!1;#tA(){this.#tU||(this.#I.addEventListener("touchend",this.#tz),this.#tU=!0)}#tz=()=>{this.#tF?(this.#I.dispatchEvent(new CustomEvent("headerreleased",i6)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...i6,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",i6)),this.#I.dispatchEvent(new CustomEvent("startloadmore",i6)))};#tP(){this.#tU&&this.#I.removeEventListener("touchend",this.#tz)}#tV=!1;#tW=!1;#tI(){this.#tW||(this.#I.addEventListener("touchstart",this.#tB),this.#I.addEventListener("touchend",this.#t$),this.#I.addEventListener("touchcancel",this.#t$),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#Q))}#t$=()=>{this.#tV=!1};#tB=()=>{this.#tV=!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",{...i6,detail:{isDragging:this.#tV,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...i6,detail:{isDragging:this.#tV,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",{...i6,detail:{isDragging:this.#tV,offsetPercent:1-n/a}}))}}};#tL(){this.#tW&&(this.#I.removeEventListener("touchstart",this.#tB),this.#I.removeEventListener("touchend",this.#t$),this.#I.removeEventListener("touchcancel",this.#t$),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#Q))}dispose(){this.#tP(),this.#tL()}})],sE)],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;i1(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=si(()=>this.shadowRoot,"#container");#tq=si(()=>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[su](){return this}static{i2(nk,nP)}}),nV=[i9("x-svg",[sn,(nj=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n_=[sa("src",!0)],nN=[sa("content",!0)],nF=[se("load")],i1(this,nR={value:i3(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),i1(this,nD={value:i3(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=>#tK in e,get:e=>e.#tK},metadata:e},null,nj),i1(this,nH={value:i3(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#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=i2(this,nj);#n=null;#eG=si(()=>this.#I.shadowRoot,"#img");get #es(){return nR.value}get #tK(){return nD.value}get #eZ(){return nH.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...i6,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nW=[],nB=HTMLElement,(class extends nB{static{nz=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nB[Symbol.metadata]??null):void 0;i1(null,nU={value:nz},nV,{kind:"class",name:nz.name,metadata:e},null,nW),nz=nU.value,e&&Object.defineProperty(nz,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(nz,nW)}}),nq=[i9("x-swiper-item",[sn])],nK=[],nG=HTMLElement,(class extends nG{static{nX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nG[Symbol.metadata]??null):void 0;i1(null,n$={value:nX},nq,{kind:"class",name:nX.name,metadata:e},null,nK),nX=n$.value,e&&Object.defineProperty(nX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(nX,nK)}}),ay=[i9("x-swiper",[sn,(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=[sa("indicator-color",!0)],aa=[sa("indicator-active-color",!0)],al=[sa("page-margin",!0)],ai=[sa("previous-margin",!0)],as=[sa("next-margin",!0)],i1(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),i1(null,null,aa,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tY in e,get:e=>e.#tY,set:(e,t)=>{e.#tY=t}},metadata:e},ad,ac),i1(null,null,al,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#tJ in e,get:e=>e.#tJ,set:(e,t)=>{e.#tJ=t}},metadata:e},ah,au),i1(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),i1(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=si(()=>this.#I.shadowRoot,"#indicator-container");#t2=si(()=>this.#I.shadowRoot,"#indicator-style");#t3;constructor(e){i2(this,ab),this.#I=e}#tG=i2(this,ar,ss(this.#t1,"--indicator-color",void 0,!0));#tY=(i2(this,ao),i2(this,ad,ss(this.#t1,"--indicator-active-color",void 0,!0)));#tJ=(i2(this,ac),i2(this,ah,ss(this.#t1,"--page-margin",void 0,!0)));#tZ=(i2(this,au),i2(this,am,ss(this.#t1,"--previous-margin",void 0,!0)));#tQ=(i2(this,ap),i2(this,av,ss(this.#t1,"--next-margin",void 0,!0)));#t8(){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.#t8(),this.#t3=new MutationObserver(this.#t8.bind(this)),this.#t3.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)),i5(()=>{this.#t1().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t3?.disconnect(),this.#t3=void 0}}),(nQ=[],n0=[],n1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nY=[se("transition")],nJ=[se("scrollstart"),se("lynxscrollend"),se("change"),se("change-event-for-indicator")],i1(this,nZ={value:i3(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.#t4.forEach(e=>e(i))},"#enableScrollEventProcessor")},nJ,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t5 in e,get:e=>e.#t5},metadata:e},null,nQ),i1(null,null,nY,{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=i2(this,nQ);#t6=0;#t7=0;#tV=!1;#W;#ne=!1;constructor(e){this.#I=e}#tq=si(()=>this.#I.shadowRoot,"#content").bind(this);#t9=i2(this,n0,sW(this.#tq,"scroll",this.#nt,{passive:!0}));#Q(){sc||(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#et()},100)),this.#ne||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...i6,detail:{current:this.#t6,isDragged:this.#tV}})),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.#t6&&(this.#I.dispatchEvent(new CustomEvent("change",{...i6,detail:{current:e,isDragged:this.#tV}})),this.#t6=e),this.#t7=n}}#et(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...i6,detail:{current:this.#t6}})),this.#ne=!1}#nn(){this.#tV=!0}#na(){this.#tV=!1}#nt(){this.#I.dispatchEvent(new CustomEvent("transition",{...i6,detail:{dx:this.#tq().scrollLeft,dy:this.#tq().scrollTop}}))}#t4=(i2(this,n1),[sW(this.#tq,"scroll",this.#Q.bind(this),{passive:!0}),sW(this.#tq,"touchstart",this.#nn.bind(this),{passive:!0}),sW(this.#tq,"touchend",this.#na.bind(this),{passive:!0}),sW(this.#tq,"touchcancel",this.#na.bind(this),{passive:!0}),sW(this.#tq,"scrollend",this.#et.bind(this),{passive:!0})]);#tO={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t5(){return nZ.value}connectedCallback(){this.#t6=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=[sa("circular",!1)],n7=[sa("vertical",!0)],i1(this,n6={value:i3(function(e){this.#t4.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),i1(this,ae={value:i3(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=i2(this,at);#ns=!1;#no;#nd=0;#tq=si(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#nc=si(()=>this.#I.shadowRoot,"#circular-start").bind(this);#nh=si(()=>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"})}#t4=[sW(()=>this.#I,"change",this.#nl.bind(this),{passive:!0}),sW(()=>this.#I,"touchmove",this.#nm.bind(this),{passive:!1}),sW(()=>this.#I,"touchend",this.#np.bind(this),{passive:!1}),sW(()=>this.#I,"touchcancel",this.#np.bind(this),{passive:!1})];get #ni(){return n6.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()}}),(n5=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n2=[sa("current",!1)],n8=[sa("interval",!1),sa("autoplay",!1)],i1(this,n3={value:i3(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,n5),i1(this,n4={value:i3(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")},n8,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nE in e,get:e=>e.#nE},metadata:e},null,n5),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=i2(this,n5);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 n3.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 n4.value}dispose(){this.#nC()}})],sS)],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;i1(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=si(()=>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[su](){return this}static{i2(af,aE)}}),aI=[i9("inline-image",[(aC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw=[sa("src",!0)],i1(this,ax={value:i3(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=i2(this,aC);constructor(e){this.#I=e}#nI=si(()=>this.#I.shadowRoot,"#img");get #es(){return ax.value}})],sb({}))],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;i1(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}),i2(aO,aL)}}),aM=[i9("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;i1(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}),i2(aP,a_)}}),aF=[i9("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;i1(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{i2(aD,aH)}},n=aD,a$=[i9("raw-text",[(aV=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aU=[sa("text",!0)],i1(this,az={value:i3(function(e){this.#nL?.remove(),e&&(this.#nL=new Text(e),this.#I.append(this.#nL))},"#handleText")},aU,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nk in e,get:e=>e.#nk},metadata:e},null,aV),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=i2(this,aV);#nL;constructor(e){this.#I=e}get #nk(){return az.value}})])],aX=[],aq=HTMLElement,class extends aq{static{aB=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aq[Symbol.metadata]??null):void 0;i1(null,aW={value:aB},a$,{kind:"class",name:aB.name,metadata:e},null,aX),aB=aW.value,e&&Object.defineProperty(aB,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(aB,aX)}};let sB=(aZ=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aK=[sa("text-maxlength",!0),sa("text-maxline",!0),sa("tail-color-convert",!0)],aY=[se("layout")],i1(this,aG={value:i3(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")},aK,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nN in e,get:e=>e.#nN},metadata:e},null,aZ),i1(this,aJ={value:i3(function(e){this.#nD=e},"#handleEnableLayoutEvent")},aY,{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=(i2(this,aZ),!1);#nj=!1;#nU=new Map;#nz;#k;#nV;#nW;#nB=!1;#nA=NaN;#nP=NaN;#nM=!0;#nD=!1;get #n$(){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_=si(()=>this.#I.shadowRoot,"#inner-box");#nK(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nU.delete(e)}),"characterData"===e.type&&void 0!==this.#nU.get(e.target)&&this.#nU.set(e.target,e.target.data)})}#nG(){for(let[t,n]of this.#nU)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)}#nY(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,i5(async()=>{await this.#nJ(),this.#nZ(),this.#nH=!1}))}async #nJ(){if(this.#nV?.parentElement?.removeChild(this.#nV),this.#nG(),!this.#nq&&isNaN(this.#nA))return;await document.fonts.ready;let t=this.#n_().getBoundingClientRect();this.#nW=new s$(this.#I,t);let n=this.#nW,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.#nU.set(l,l.data),l.data=l.data.substring(0,a)):i.push(l),i=i.concat(this.#nY(l));let o=l.parentElement;for(;o!==this.#I;)i=i.concat(this.#nY(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nU.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nU.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#n$){let e=(0===a?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#nV=new Text(Array(s).fill(".").join("")),e.append(this.#nV)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#nQ(r)}}#n0=e=>{this.#nK(e),this.#nR()};#n1=()=>{if(this.#nB){this.#nB=!1;return}this.#nR()};#nZ(){this.#nj&&((this.#nA||this.#nP)&&!this.#nz&&(this.#nz=new MutationObserver(this.#n0),this.#nz.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nP&&!this.#k&&(this.#k=new ResizeObserver(this.#n1),this.#nB=!0,this.#k.observe(this.#n_(),{box:"content-box"})))}#n2(){this.#nz?.disconnect(),this.#nz=void 0,this.#k?.disconnect(),this.#k=void 0}get #nN(){return aG.value}get #nF(){return aJ.value}#nQ(e){if(!this.#nD)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#nW||(t.#nW=new s$(t.#I,t.#I.getBoundingClientRect())),t.#nW.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let a=parseFloat(n.toString());if(!isNaN(a)){t.#nW||(t.#nW=new s$(t.#I,t.#I.getBoundingClientRect()));let n=t.#nW.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",{...i6,detail:t}))}dispose(){this.#n2()}connectedCallback(){this.#nj=!0,this.#nF(this.#nD),this.#nN(),i5(()=>{this.#nQ()})}});class s${#n3=[{start:0}];#n8=[];#n4=[];#I;#n5;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sX(this.#I),this.#n5=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}}#n6(e){if(this.#n8[e])return;let{left:t}=this.#n5,n=this.#n8[this.#n8.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.#n8.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.#n8[this.#n8.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#n8.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.#n8.push([{...a,rect:i,rectIndex:n}]):this.#n8[this.#n8.length-1].push({...a,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#n6(1/0),this.#n8.length}getLineInfo(e){if(this.#n6(e+1),e<this.#n8.length){let t=e>0?this.#n3[e-1]??{}:void 0,n=this.#n3[e]??{},a=e<this.#n8.length-1?this.#n3[e+1]??{}:void 0;if(void 0===n.start){let a=this.#n8[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.#n8[e],l=t[t.length-1];if(e===this.#n8.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.#n4.length-1,n=this.#n4[t],a=n?n.start+n.length:0;for(let t=this.#n4.length,n;(n=this.nodelist.at(t))&&e>=this.#n4.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:a,nodeIndex:t};this.#n4.push(l)}return this.#n4[e]}getNodeInfoByCharIndex(e){let t,n=0,a=this.#n4.length-1;for(;n<=a;){let l=Math.floor((n+a)/2),i=this.#n4[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.#n4.length,n;n=this.#n7(t);t++)if(e<n.start+n.length)return n}}class sX{#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=[i9("x-text",[sn,sB],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],a2=[],a3=HTMLElement,(class extends a3{static{a0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a3[Symbol.metadata]??null):void 0;i1(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(sp.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[st]=this;static{i2(a0,a2)}}),lq=[i9("x-textarea",[sn,(a7=[],le=[],lt=[],ln=[],la=[],ll=[],li=[],ls=[],lr=[],lo=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a8=[sa("placeholder-color",!0)],a4=[sa("placeholder-font-size",!0)],a5=[sa("placeholder-font-weight",!0)],a9=[sa("placeholder-font-family",!0)],a6=[sa("placeholder",!0)],i1(null,null,a8,{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),i1(null,null,a4,{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),i1(null,null,a5,{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),i1(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),i1(null,null,a6,{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=si(()=>this.#I.shadowRoot,"#textarea");#aa=i2(this,a7,ss(this.#ao,"--placeholder-color",void 0,!0));#al=(i2(this,le),i2(this,lt,ss(this.#ao,"--placeholder-font-size",void 0,!0)));#ai=(i2(this,ln),i2(this,la,ss(this.#ao,"--placeholder-font-weight",void 0,!0)));#as=(i2(this,ll),i2(this,li,ss(this.#ao,"--placeholder-font-family",void 0,!0)));#ar=(i2(this,ls),i2(this,lr,sC(this.#ao,"placeholder")));#I=i2(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=[sa("confirm-type",!0)],lc=[sa("maxlength",!0)],lh=[sa("readonly",!0)],lu=[sa("ios-spell-check",!0)],lm=[sa("show-soft-input-onfocus",!0)],i1(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),i1(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),i1(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),i1(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),i1(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=si(()=>this.#I.shadowRoot,"#textarea");#ta=i2(this,lp,sC(this.#ac,"enterkeyhint",e=>null===e?"send":e));#tl=(i2(this,lv),i2(this,lb,sC(this.#ac,"maxlength",e=>null===e?"140":e)));#ti=(i2(this,lg),i2(this,lf,sC(this.#ac,"readonly",e=>null!==e?"":null)));#ts=(i2(this,ly),i2(this,lE,sC(this.#ac,"spellcheck",e=>null===e?"false":"true")));#ad=(i2(this,lS),i2(this,lw,sC(this.#ac,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){i2(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=[sa("confirm-enter",!0)],lO=[sa("disabled",!0)],lI=[sa("max-height",!0)],lL=[sa("min-height",!0)],lk=[sa("value",!1)],i1(this,lT={value:i3(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),i1(this,lA={value:i3(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),i1(null,null,lO,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e6 in e,get:e=>e.#e6,set:(e,t)=>{e.#e6=t}},metadata:e},lM,l_),i1(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),i1(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=i2(this,lP);#ac=si(()=>this.#I.shadowRoot,"#textarea");#tv=si(()=>this.#I.shadowRoot,"#form");#ah=!1;get #au(){return lT.value}#e6=i2(this,lM,sC(this.#ac,"disabled",e=>null!==e?"":null));#am=(i2(this,l_),i2(this,lR,ss(this.#ac,"max-height")));#ap=(i2(this,lN),i2(this,lD,ss(this.#ac,"min-height")));get #e9(){return lA.value}#av=(i2(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)}}),(lB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lH=[sa("input-filter",!0),se("lynxinput")],lU=[sa("send-composing-input",!0)],lV=[se("selection")],i1(this,lj={value:i3(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,lB),i1(this,lz={value:i3(function(e){this.#th=null!==e},"#handleSendComposingInput")},lU,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,lB),i1(this,lW={value:i3(function(e){e?this.#ac().addEventListener("select",this.#tm,{passive:!0}):this.#ac().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},lV,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,lB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i2(this,lB);#th=!1;#ac=si(()=>this.#I.shadowRoot,"#textarea");#tv=si(()=>this.#I.shadowRoot,"#form");get #ab(){return lj.value}get #tu(){return lz.value}#tb=e=>{let t=sU[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...i6,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",{...i6,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",{...i6,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return lW.value}#tm=()=>{let e=this.#ac();this.#I.dispatchEvent(new CustomEvent("selection",{...i6,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})}})],sw)],lK=[],lG=HTMLElement,(class extends lG{static{lX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lG[Symbol.metadata]??null):void 0;i1(null,l$={value:lX},lq,{kind:"class",name:lX.name,metadata:e},null,lK),lX=l$.value,e&&Object.defineProperty(lX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(lX,lK)}#ao=si(()=>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=[i9("x-view",[sn])],lQ=[],l0=HTMLElement,(class extends l0{static{lJ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l0[Symbol.metadata]??null):void 0;i1(null,lY={value:lJ},lZ,{kind:"class",name:lJ.name,metadata:e},null,lQ),lJ=lY.value,e&&Object.defineProperty(lJ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(lJ,lQ)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sp.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[st]=this}),l5=[i9("x-blur-view",[sn,(l3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l1=[sa("blur-radius",!0)],i1(this,l2={value:i3(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,l3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=i2(this,l3);#ag=si(()=>this.#I.shadowRoot,"#dynamic-style");get #eX(){return l2.value}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],l9=[],l6=HTMLElement,(class extends l6{static{l4=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l6[Symbol.metadata]??null):void 0;i1(null,l8={value:l4},l5,{kind:"class",name:l4.name,metadata:e},null,l9),l4=l8.value,e&&Object.defineProperty(l4,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(l4,l9)}}),ir=[i9("x-viewpager-ng",[sn,(il=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l7=[se("change")],it=[se("offsetchange")],i1(this,ie={value:i3(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),i1(this,ia={value:i3(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=i2(this,il);#aw=!1;#t=!1;#ax=0;#W;constructor(e){this.#I=e}#X=si(()=>this.#I.shadowRoot,"#content");#aC=()=>{if(!this.#t)return;let e=this.#X(),t=this.#I.clientWidth,n=e.scrollLeft;this.#af&&!sc&&(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#aT()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...i6,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",{...i6,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),sc&&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)}})],sx)],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;i1(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})};i5(a)}}get[su](){return this}static{i2(is,io)}}),iu=[i9("x-viewpager-item-ng",[sn])],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;i1(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}),i2(ih,im)}}),ig=[i9("list-item",[sn])],iy=[],iE=HTMLElement,class extends iE{static{ib=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iE[Symbol.metadata]??null):void 0;i1(null,iv={value:ib},ig,{kind:"class",name:ib.name,metadata:e},null,iy),ib=iv.value,e&&Object.defineProperty(ib,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ib,iy)}};let sq=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}},sK="waterfall-slot",sG="waterfall-style";iZ=[i9("x-list",[sn,(ix=[],iC=[],iT=[],iO=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iS=[sa("sticky-offset",!0)],iw=[sa("span-count",!0),sa("column-count",!0)],i1(null,null,iS,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#ak in e,get:e=>e.#ak,set:(e,t)=>{e.#ak=t}},metadata:e},ix,iC),i1(null,null,iw,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#aA in e,get:e=>e.#aA,set:(e,t)=>{e.#aA=t}},metadata:e},iT,iO),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;#ak=i2(this,ix,ss(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#aA=(i2(this,iC),i2(this,iT,ss(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){i2(this,iO),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})};i5(n)}}}),(iD=[],iF=[],iH=[],ij=[],iU=[],iz=[],iV=[],iW=[],iB=[],i$=[],iX=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iI=[se("scrolltoupper")],iL=[sa("upper-threshold-item-count",!0)],iA=[se("scrolltolower")],iP=[sa("lower-threshold-item-count",!0)],i_=[se("lynxscroll"),se("lynxscrollend"),se("snap")],iR=[se("scrolltoupperedge")],iN=[se("scrolltoloweredge")],i1(this,ik={value:i3(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#q():this.#I.children[n-1];a&&this.#aP?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#q():this.#I.children[l-1];i&&this.#aP?.observe(i)},"#handleUpperThresholdItemCountChange")},iL,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aM in e,get:e=>e.#aM},metadata:e},null,iD),i1(this,iM={value:i3(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#K():this.#I.children[this.#I.children.length-n];a&&this.#a_?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#K():this.#I.children[this.#I.children.length-l];i&&this.#a_?.observe(i)},"#handleLowerThresholdItemCountChange")},iP,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aR in e,get:e=>e.#aR},metadata:e},null,iD),i1(null,null,iI,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#aN in e,get:e=>e.#aN,set:(e,t)=>{e.#aN=t}},metadata:e},iF,iH),i1(null,null,iA,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#aD in e,get:e=>e.#aD,set:(e,t)=>{e.#aD=t}},metadata:e},ij,iU),i1(null,null,i_,{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},iz,iV),i1(null,null,iR,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aF in e,get:e=>e.#aF,set:(e,t)=>{e.#aF=t}},metadata:e},iW,iB),i1(null,null,iN,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aH in e,get:e=>e.#aH,set:(e,t)=>{e.#aH=t}},metadata:e},i$,iX),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=i2(this,iD);#aj=si(()=>this.#I.shadowRoot,"#content");#aP;#a_;#aU;#B=0;#$=0;#az=!1;#W;#q=si(()=>this.#I.shadowRoot,"#upper-threshold-observer");#K=si(()=>this.#I.shadowRoot,"#lower-threshold-observer");#Y(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l}=this.#aj(),i={scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l,deltaX:n-this.#B,deltaY:t-this.#$,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#B=n,this.#$=t,i}#aV=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...i6,detail:this.#Y()}))};#aN=i2(this,iF,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#tO.scrolltoupper=e,e){this.#aP||(this.#aP=new IntersectionObserver(this.#aV,{root:this.#aj()})),this.#aU||(this.#aU=new MutationObserver(this.#aW));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.#aP.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aP&&(this.#aP.disconnect(),this.#aP=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aM(){return ik.value}#aB=(i2(this,iH),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...i6,detail:this.#Y()}))});#tO={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#aD=i2(this,ij,e=>{if(this.#tO.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#a_||(this.#a_=new IntersectionObserver(this.#aB,{root:this.#aj()})),this.#aU||(this.#aU=new MutationObserver(this.#aW));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#K():this.#I.children[this.#I.children.length-t];n&&this.#a_.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#a_&&(this.#a_.disconnect(),this.#a_=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aR(){return iM.value}#aW=(i2(this,iU),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tO.scrolltolower){this.#a_&&(this.#a_.disconnect(),this.#a_=void 0),this.#a_=new IntersectionObserver(this.#aB,{root:this.#aj()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#K():this.#I.children[this.#I.children.length-t];n&&this.#a_.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#aP&&(this.#aP.disconnect(),this.#aP=void 0),this.#aP=new IntersectionObserver(this.#aV,{root:this.#aj()});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.#aP.observe(n)}}});#a$=null;#Q=()=>{this.#az&&!sc&&(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...i6,detail:this.#Y()}))};#ea=i2(this,iz,(e,t)=>{this.#tO[t]=e;let{lynxscroll:n,lynxscrollend:a,snap:l}=this.#tO,i=this.#I.getAttribute("scroll-event-throttle");this.#az=null!==a||null!==l;let s=this.#aj();if(this.#a$&&s.removeEventListener("scroll",this.#a$),null!==scroll||this.#az){let e=null!==i?parseFloat(i):0,t=sq(this.#Q,e,{leading:!0,trailing:!1});this.#a$=t,s.addEventListener("scroll",this.#a$),this.#B=0,this.#$=0}sc&&this.#az?s.addEventListener("scrollend",this.#et):s.removeEventListener("scrollend",this.#et)});#G=(i2(this,iV),e=>{let{isIntersecting:t,target:n}=e[0],a=n.id;t&&("upper-threshold-observer"===a?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...i6,detail:this.#Y()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...i6,detail:this.#Y()})))});#aF=i2(this,iW,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#aX(e)});#aX=(i2(this,iB),sd(this.#aj,this.#q,this.#G));#aH=i2(this,i$,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#aq(e)});#aq=(i2(this,iX),sd(this.#aj,this.#K,this.#G));#et=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...i6})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#aj().scrollTop,n=this.#aj().scrollLeft,a=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...i6,detail:{position:a&&e.indexOf(a),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(iG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iq=[sa("list-type",!0)],i1(this,iK={value:i3(function(e){if("waterfall"===e)this.#aK(),this.#k||this.#aG(),this.#aU||(this.#aU=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#aG()}),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=${sK}]`)?.remove()}},"#handlerListType")},iq,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#aY in e,get:e=>e.#aY},metadata:e},null,iG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=i2(this,iG);#aj=si(()=>this.#I.shadowRoot,"#content");#aJ=si(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#aU;#aK=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sK}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#aZ=()=>{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(`${sG}-left`,"0"),l.setAttribute(`${sG}-top`,`${a}px`)):(l.setAttribute(`${sG}-left`,`${a}px`),l.setAttribute(`${sG}-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(`${sG}-left`,o),l.setAttribute(`${sG}-top`,`${i}px`)):(l.setAttribute(`${sG}-left`,`${i}px`),l.setAttribute(`${sG}-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(`${sG}-left`)),t.style.setProperty("top",t.getAttribute(`${sG}-top`)),t.setAttribute("slot",sK)}let a=this.#I.getAttribute("x-enable-scrolltolower-event");if(null!==a&&"false"!==a){let e=this.#aJ(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#aj();"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollHeight-1)}px`),e.style.setProperty("right","unset"))}};constructor(e){this.#I=e}#aG=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#aZ()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};get #aY(){return iK.value}})],sf)],iQ=[],i0=HTMLElement,class extends i0{static{iJ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i0[Symbol.metadata]??null):void 0;i1(null,iY={value:iJ},iZ,{kind:"class",name:iJ.name,metadata:e},null,iQ),iJ=iY.value,e&&Object.defineProperty(iJ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#aj=si(()=>this.shadowRoot,"#content");#aQ={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#a0={};get scrollTop(){return this.#aj().scrollTop}set scrollTop(e){this.#aj().scrollTop=e}get scrollLeft(){return this.#aj().scrollTop}set scrollLeft(e){this.#aj().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.#aj().scrollTop=0,this.#aj().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.#aj().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#a1=e=>{if(!this.#aQ.isScrolling)return;this.#aQ.lastTimestamp||(this.#aQ.lastTimestamp=e);let t=this.#aj(),n=(e-this.#aQ.lastTimestamp)/1e3*this.#aQ.rate;t.scrollBy({left:n,top:n,behavior:"smooth"}),this.#aQ.lastTimestamp=e,t.scrollTop+t.clientHeight>=t.scrollHeight&&this.#aQ.autoStop?(t.scrollTop=t.scrollHeight-t.clientHeight,this.#aQ.isScrolling=!1):requestAnimationFrame(this.#a1)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#aQ={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop},requestAnimationFrame(this.#a1)}else this.#aQ.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#a0),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)}})};#a2=()=>Object.values(this.#a0).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.#a2();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...i6,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#a2()}}))},100);return}if(a){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#a0[n]&&delete this.#a0[n]:this.#a0[n]=e.target;return}};connectedCallback(){this.#aj().addEventListener("contentvisibilityautostatechange",this.#a3,{passive:!0})}static{i2(iJ,iQ)}}},426:function(e,t,n){n.a(e,async function(e,t){try{var a=n(506);n(569),n(755),n(209),n(152);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(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
309
+ | | \\ \\ / / \\ | \\ \\ / / \\ \\ / / ____| _ \\ | __ \\| | /\\|__ __| ____/ __ \\| __ \\| \\/ |
310
+ | | \\ \\_/ /| \\| |\\ V / \\ \\ /\\ / /| |__ | |_) | | |__) | | / \\ | | | |__ | | | | |__) | \\ / |
311
+ | | \\ / | . \\ | > < \\ \\/ \\/ / | __| | _ < | ___/| | / /\\ \\ | | | __|| | | | _ /| |\\/| |
312
+ | |____| | | |\\ |/ . \\ \\ /\\ / | |____| |_) | | | | |____ / ____ \\| | | | | |__| | | \\ \\| | | |
313
+ |______|_| |_| \\_/_/ \\_\\ \\/ \\/ |______|____/ |_| |______/_/ \\_\\_| |_| \\____/|_| \\_\\_| |_|`),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(),i(),t()}catch(e){t(e)}})}},c={};function h(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return d[e](n,n.exports,h),n.loaded=!0,n.exports}h.m=d,e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",a=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},h.a=(l,i,s)=>{s&&((r=[]).d=-1);var r,o,d,c,h=new Set,u=l.exports,m=new Promise((e,t)=>{c=t,d=e});m[t]=u,m[e]=e=>{r&&e(r),h.forEach(e),m.catch(function(){})},l.exports=m,i(l=>{o=l.map(l=>{if(null!==l&&"object"==typeof l){if(l[e])return l;if(l.then){var i=[];i.d=0,l.then(e=>{s[t]=e,a(i)},e=>{s[n]=e,a(i)});var s={};return s[e]=e=>e(i),s}}var r={};return r[e]=function(){},r[t]=l,r});var i,s=()=>o.map(e=>{if(e[n])throw e[n];return e[t]}),d=new Promise(t=>{(i=()=>t(s)).r=0;var n=e=>e!==r&&!h.has(e)&&(h.add(e),e&&!e.d&&(i.r++,e.push(i)));o.map(t=>t[e](n))});return i.r?d:s()},e=>(e?c(m[n]=e):d(u),a(r))),r&&r.d<0&&(r.d=0)},h.F={},h.E=e=>{Object.keys(h.F).map(t=>{h.F[t](e)})},h.d=(e,t)=>{for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=(e,t)=>Promise.all(Object.keys(h.f).reduce((n,a)=>(h.f[a](e,n,t),n),[])),h.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),h.u=e=>"static/js/async/"+(({361:"web-core-main-thread-apis",8:"legacy-wasm-chunk"})[e]||e)+".js",h.miniCssF=e=>""+e+".css",h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},h.l=function(e,t,n,a,i){if(l[e])return void l[e].push(t);if(void 0!==n)for(var s,r,o=document.getElementsByTagName("script"),d=0;d<o.length;d++){var c=o[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@lynx-js/web-rsbuild-server-middleware:"+n){s=c;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,h.nc&&s.setAttribute("nonce",h.nc),s.setAttribute("data-webpack","@lynx-js/web-rsbuild-server-middleware:"+n),i&&s.setAttribute("fetchpriority",i),s.src=e),l[e]=[t];var u=function(t,n){s.onerror=s.onload=null,clearTimeout(m);var a=l[e];if(delete l[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach(function(e){return e(n)}),t)return t(n)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),r&&document.head.appendChild(s)},h.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i=[],h.O=(e,t,n,a)=>{if(t){a=a||0;for(var l=i.length;l>0&&i[l-1][2]>a;l--)i[l]=i[l-1];i[l]=[t,n,a];return}for(var s=1/0,l=0;l<i.length;l++){for(var[t,n,a]=i[l],r=!0,o=0;o<t.length;o++)(!1&a||s>=a)&&Object.keys(h.O).every(e=>h.O[e](t[o]))?t.splice(o--,1):(r=!1,a<s&&(s=a));if(r){i.splice(l--,1);var d=n();void 0!==d&&(e=d)}}return e},h.p="http://lynx-web-core-mocked.localhost/",h.v=function(e,t,n,a){var l=fetch(h.p+"static/wasm/"+n.slice(0,8)+".module.wasm"),i=function(){return l.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,a)}).then(function(t){return Object.assign(e,t.instance.exports)})};return l.then(function(t){return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,a).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),i();throw e}):i()})},h.b=document.baseURI||self.location.href,s={410:0},h.f.j=function(e,t,n){var a=h.o(s,e)?s[e]:void 0;if(0!==a)if(a)t.push(a[2]);else{var l=new Promise((t,n)=>a=s[e]=[t,n]);t.push(a[2]=l);var i=h.p+h.u(e),r=Error();h.l(i,function(t){if(h.o(s,e)&&(0!==(a=s[e])&&(s[e]=void 0),a)){var n=t&&("load"===t.type?"missing":t.type),l=t&&t.target&&t.target.src;r.message="Loading chunk "+e+" failed.\n("+n+": "+l+")",r.name="ChunkLoadError",r.type=n,r.request=l,a[1](r)}},"chunk-"+e,e,n)}},h.F.j=e=>{if(!h.o(s,e)||void 0===s[e]){s[e]=null;var t=document.createElement("link");t.charset="utf-8",h.nc&&t.setAttribute("nonce",h.nc),t.rel="prefetch",t.as="script",t.href=h.p+h.u(e),document.head.appendChild(t)}},h.O.j=e=>0===s[e],r=(e,t)=>{var n,a,[l,i,r]=t,o=0;if(l.some(e=>0!==s[e])){for(n in i)h.o(i,n)&&(h.m[n]=i[n]);if(r)var d=r(h)}for(e&&e(t);o<l.length;o++)a=l[o],h.o(s,a)&&s[a]&&s[a][0](),s[a]=0;return h.O(d)},(o=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o)),h.O(0,["410"],()=>{h.E("361")},5);var u=h(426);u=h.O(u)})();
package/index.js DELETED
@@ -1 +0,0 @@
1
- export {}