@lynx-js/web-rsbuild-server-middleware 0.19.9 → 0.20.1
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 +4 -0
- package/package.json +3 -3
- package/www/static/css/index.css +1 -1
- package/www/static/js/async/legacy-wasm-js.js +2 -0
- package/www/static/js/async/lynx-core-chunk.js +3 -0
- package/www/static/js/async/web-core-main-chunk.js +1 -0
- package/www/static/js/async/web-core-template-loader-thread.js +6 -0
- package/www/static/js/async/web-core-worker-chunk.js +1 -0
- package/www/static/js/async/web-elements.js +309 -0
- package/www/static/js/index.js +3 -315
- package/www/static/wasm/ad79a345.module.wasm +0 -0
- package/www/static/wasm/b23de6ec.module.wasm +0 -0
- package/www/static/js/async/legacy-wasm-chunk.js +0 -1
- package/www/static/js/async/web-core-main-thread-apis.js +0 -1
- package/www/static/js/async/web-core-worker-runtime.js +0 -3
- package/www/static/js/async/web-worker-runtime-main-thread.js +0 -1
- package/www/static/wasm/38288526.module.wasm +0 -0
- package/www/static/wasm/754b96d8.module.wasm +0 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["724"],{2656(e,t,l){let i,n,a,s,o,r,d,h,c,u,m,p,v,b,g,f,y,E,S,_,w,x,T,C,O,L,I,F,k,A,z,P,R,M,H,D,N,j,G,$,V,U,W,B,X,Z,Y,q,J,K,Q,ee,et,el,ei,en,ea,es,eo,er,ed,eh,ec,eu,em,ep,ev,eb,eg,ef,ey,eE,eS,e_,ew,ex,eT,eC,eO,eL,eI,eF,ek,eA,ez,eP,eR,eM,eH,eD,eN,ej,eG,e$,eV,eU,eW,eB,eX,eZ,eY,eq,eJ,eK,eQ,e0,e1,e4,e2,e8,e3,e6,e9,e5,e7,te,tt,tl,ti,tn,ta,ts,to,tr,td,th,tc,tu,tm,tp,tv,tb,tg,tf,ty,tE,tS,t_,tw,tx,tT,tC,tO,tL,tI,tF,tk,tA,tz,tP,tR,tM,tH,tD,tN,tj,tG,t$,tV,tU,tW,tB,tX,tZ,tY,tq,tJ,tK,tQ,t0,t1,t4,t2,t8,t3,t6,t9,t5,t7,le,lt,ll,li,ln,la,ls,lo,lr,ld,lh,lc,lu,lm,lp,lv,lb,lg,lf,ly,lE,lS,l_,lw,lx,lT,lC,lO,lL,lI,lF,lk,lA,lz,lP,lR,lM,lH,lD,lN,lj,lG,l$,lV,lU,lW,lB,lX,lZ,lY,lq,lJ,lK,lQ,l0,l1,l4,l2,l8,l3,l6,l9,l5,l7,ie,it,il,ii,ia,is,io,ir,id,ih,ic,iu,im,ip,iv,ib,ig,iy,iE,iS,i_,iw,ix,iT,iC,iO,iL,iI,iF,ik,iA,iz,iP,iR,iM,iH,iD,iN,ij,iG,i$,iV,iU,iW,iB,iX,iZ,iY,iq,iJ,iK,iQ,i0,i1,i4,i2,i8,i3,i6,i9,i5,i7,ne,nt,nl,ni,nn,na,ns,no,nr,nd,nh,nc,nu,nm,np,nv,nb,ng,nf,ny,nE,nS,n_,nw,nx,nT,nC,nO,nL,nI,nF,nk,nA,nz,nP,nR,nM,nH,nD,nN,nj,nG,n$,nV,nU,nW,nB,nX,nZ,nY,nq,nJ,nK,nQ,n0,n1,n4,n2,n8,n3,n6,n9,n5,n7,ae,at,al,ai,an,aa,as,ao,ar,ad,ah,ac,au,am,ap,av,ab,ag,af,ay,aE,aS,a_,aw,ax,aT,aC;var aO,aL,aI,aF,ak=l(2198),aA=l(1034);a=[(0,aA.uA)("lynx-wrapper",[])],s=[],o=HTMLElement,class extends o{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;(0,ak.G4)(null,i={value:n},a,{kind:"class",name:n.name,metadata:e},null,s),n=i.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(n,s)}};var az=l(9678);let aP=(h=[],c=[],u=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;r=[(0,aA._y)("fading-edge-length",!0)],d=[(0,aA.h3)("background"),(0,aA.h3)("background-color")],(0,ak.G4)(this,null,d,{kind:"method",name:"_backgroundColorToVariable",static:!1,private:!1,access:{has:e=>"_backgroundColorToVariable"in e,get:e=>e._backgroundColorToVariable},metadata:e},null,h),(0,ak.G4)(null,null,r,{kind:"field",name:"_handleFadingEdgeLength",static:!1,private:!1,access:{has:e=>"_handleFadingEdgeLength"in e,get:e=>e._handleFadingEdgeLength,set:(e,t)=>{e._handleFadingEdgeLength=t}},metadata:e},c,u),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#e=(0,ak.zF)(this,h);#t=(0,aA.Ut)(()=>this.#e.shadowRoot,"#top-fade-mask");#l=(0,aA.Ut)(()=>this.#e.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){(0,ak.zF)(this,u),this.#e=e}_handleFadingEdgeLength=(0,ak.zF)(this,c,(0,aA._8)(()=>this.#e,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));_backgroundColorToVariable(e){this.#t().style.setProperty("--scroll-view-bg-color",e),this.#l().style.setProperty("--scroll-view-bg-color",e)}connectedCallback(){}dispose(){}}),aR=(v=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;m=[(0,aA._y)("scroll-top",!1),(0,aA._y)("scroll-left",!1),(0,aA._y)("initial-scroll-offset",!1)],p=[(0,aA._y)("scroll-to-index",!1),(0,aA._y)("initial-scroll-to-index",!1)],(0,ak.G4)(this,null,m,{kind:"method",name:"_handleInitialScrollOffset",static:!1,private:!1,access:{has:e=>"_handleInitialScrollOffset"in e,get:e=>e._handleInitialScrollOffset},metadata:e},null,v),(0,ak.G4)(this,null,p,{kind:"method",name:"_handleInitialScrollIndex",static:!1,private:!1,access:{has:e=>"_handleInitialScrollIndex"in e,get:e=>e._handleInitialScrollIndex},metadata:e},null,v),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#e=(0,ak.zF)(this,v);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#e=e}_handleInitialScrollOffset(e,t,l){if(e){let t=parseFloat(e),i=this.#e.getAttribute("scroll-orientation"),n=this.#e.getAttribute("scroll-y"),a=this.#e.getAttribute("scroll-x"),s=("scroll-top"===l||"initial-scroll-offset"===l)&&(""===n||"true"===n||"vertical"===i||"both"===i),o=("scroll-left"===l||"initial-scroll-offset"===l)&&(""===a||"true"===a||"vertical"===i||"both"===i);requestAnimationFrame(()=>{s&&this.#e.scrollTo(0,t),o&&(this.#e.scrollLeft=t)})}}_handleInitialScrollIndex(e){if(e){let t=parseFloat(e),l=this.#e.children.item(t);if(l&&l instanceof HTMLElement){let e=null!==this.#e.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#e.scrollLeft=l.offsetLeft:this.#e.scrollTop=l.offsetTop})}}}dispose(){}});var aM=l(6946);function aH(e,t,l){let i;return n=>{null!==n?i||(i=new IntersectionObserver(l,{root:e()})).observe(t()):i&&(i.disconnect(),i=void 0)}}var aD=l(4366);let aN=(_=[],w=[],x=[],T=[],C=[],O=[],L=[],I=[],F=[],k=[],A=[],z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;b=[(0,aA.ZR)("scrolltoupper")],g=[(0,aA.ZR)("scrolltolower")],f=[(0,aA._y)("upper-threshold",!0)],y=[(0,aA._y)("lower-threshold",!0)],E=[(0,aA.ZR)("lynxscroll")],S=[(0,aA.ZR)("lynxscrollend")],(0,ak.G4)(null,null,b,{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},_,w),(0,ak.G4)(null,null,g,{kind:"field",name:"_handleScrollLowerThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollLowerThresholdEventEnabled"in e,get:e=>e._handleScrollLowerThresholdEventEnabled,set:(e,t)=>{e._handleScrollLowerThresholdEventEnabled=t}},metadata:e},x,T),(0,ak.G4)(null,null,f,{kind:"field",name:"_updateUpperThreshold",static:!1,private:!1,access:{has:e=>"_updateUpperThreshold"in e,get:e=>e._updateUpperThreshold,set:(e,t)=>{e._updateUpperThreshold=t}},metadata:e},C,O),(0,ak.G4)(null,null,y,{kind:"field",name:"_updateLowerThreshold",static:!1,private:!1,access:{has:e=>"_updateLowerThreshold"in e,get:e=>e._updateLowerThreshold,set:(e,t)=>{e._updateLowerThreshold=t}},metadata:e},L,I),(0,ak.G4)(null,null,E,{kind:"field",name:"_handleScrollEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEventEnabled"in e,get:e=>e._handleScrollEventEnabled,set:(e,t)=>{e._handleScrollEventEnabled=t}},metadata:e},F,k),(0,ak.G4)(null,null,S,{kind:"field",name:"_handleScrollEndEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEndEventEnabled"in e,get:e=>e._handleScrollEndEventEnabled,set:(e,t)=>{e._handleScrollEndEventEnabled=t}},metadata:e},A,z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#e;#i;#n=0;#a=0;constructor(e){(0,ak.zF)(this,z),this.#e=e}#s=()=>this.#e;#o=(0,aA.Ut)(()=>this.#e.shadowRoot,"#upper-threshold-observer");#r=(0,aA.Ut)(()=>this.#e.shadowRoot,"#lower-threshold-observer");#d=e=>{let{isIntersecting:t,target:l}=e[0],i=l.id;t&&("upper-threshold-observer"===i?this.#e.dispatchEvent(new CustomEvent("scrolltoupper",{...aM.$,detail:this.#h()})):"lower-threshold-observer"===i&&this.#e.dispatchEvent(new CustomEvent("scrolltolower",{...aM.$,detail:this.#h()})))};static observedAttributes=["upper-threshold","lower-threshold"];_handleScrollUpperThresholdEventEnabled=(0,ak.zF)(this,_,e=>{e?this.#e.setAttribute("x-enable-scrolltoupper-event",""):this.#e.removeAttribute("x-enable-scrolltoupper-event"),this.#c(e)});#c=((0,ak.zF)(this,w),aH(this.#s,this.#o,this.#d));_handleScrollLowerThresholdEventEnabled=(0,ak.zF)(this,x,e=>{e?this.#e.setAttribute("x-enable-scrolltolower-event",""):this.#e.removeAttribute("x-enable-scrolltolower-event"),this.#u(e)});#u=((0,ak.zF)(this,T),aH(this.#s,this.#r,this.#d));_updateUpperThreshold=(0,ak.zF)(this,C,(0,aA._8)(this.#o,"flex-basis",e=>`${parseInt(e)}px`));_updateLowerThreshold=((0,ak.zF)(this,O),(0,ak.zF)(this,L,(0,aA._8)(this.#r,"flex-basis",e=>`${parseInt(e)}px`)));#h(){let{scrollTop:e,scrollLeft:t,scrollHeight:l,scrollWidth:i}=this.#s();0===e&&(e-=this.#e.scrollHeight/2-this.#e.scrollTop),0===t&&(t-=this.#e.scrollWidth/2-this.#e.scrollLeft);let n={scrollTop:e,scrollLeft:t,scrollHeight:l,scrollWidth:i,isDragging:!1,deltaX:t-this.#n,deltaY:e-this.#a};return this.#n=t,this.#a=e,n}#m=((0,ak.zF)(this,I),()=>{this.#p&&!aD.k&&(clearTimeout(this.#i),this.#i=setTimeout(()=>{this.#v()},100)),this.#e.dispatchEvent(new CustomEvent("lynxscroll",{...aM.$,detail:this.#h()}))});#v=()=>{this.#e.dispatchEvent(new CustomEvent("lynxscrollend",{...aM.$,detail:this.#h()}))};#b=!1;_handleScrollEventEnabled=(0,ak.zF)(this,F,e=>{this.#b=e,this.#g()});#p=((0,ak.zF)(this,k),!1);_handleScrollEndEventEnabled=(0,ak.zF)(this,A,e=>{this.#p=e,this.#g()});#g(){this.#b||this.#p?(this.#s().addEventListener("scroll",this.#m),this.#s().addEventListener("scrollend",this.#v),this.#e.addEventListener("scroll",this.#m),this.#e.addEventListener("scrollend",this.#v),this.#n=0,this.#a=0):(this.#e.removeEventListener("scroll",this.#m),this.#e.removeEventListener("scrollend",this.#v))}connectedCallback(){}dispose(){}});class aj{static eventName="__scrollIntoView";static observedAttributes=[];#e;#f=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),l=[],i=this.#e;for(let e of t){if(e===i)break;l.push(e)}let n=this.#e.getAttribute("scroll-orientation"),a=null!==this.#e.getAttribute("scroll-x")||"both"===n||"horizontal"===n,s=null!==this.#e.getAttribute("scroll-y")||"both"===n||"vertical"===n,o=0,r=0;for(let{offsetTop:e,offsetLeft:t}of l)a&&(r+=t),s&&(o+=e);if(a)switch(e.detail.inline){case"center":r+=(e.target.clientWidth-this.#e.clientWidth)/2;break;case"end":r+=e.target.clientWidth-this.#e.clientWidth}if(s)switch(e.detail.block){case"center":o+=(e.target.clientHeight-this.#e.clientHeight)/2;break;case"end":o+=e.target.clientHeight-this.#e.clientHeight}i.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:r,top:o})};constructor(e){this.#e=e,this.#e.addEventListener(aj.eventName,this.#f,{passive:!1})}dispose(){this.#e.removeEventListener(aj.eventName,this.#f)}}let aG=`<style>
|
|
2
|
+
.placeholder-dom {
|
|
3
|
+
display: none;
|
|
4
|
+
flex: 0 0 0;
|
|
5
|
+
align-self: stretch;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
.mask {
|
|
10
|
+
z-index: 1;
|
|
11
|
+
position: sticky;
|
|
12
|
+
}
|
|
13
|
+
.observer-container {
|
|
14
|
+
flex-direction: inherit;
|
|
15
|
+
overflow: visible;
|
|
16
|
+
}
|
|
17
|
+
.observer {
|
|
18
|
+
display: flex;
|
|
19
|
+
}
|
|
20
|
+
::-webkit-scrollbar {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes topFading {
|
|
25
|
+
0% {
|
|
26
|
+
box-shadow: transparent 0px 0px 0px 0px;
|
|
27
|
+
}
|
|
28
|
+
5% {
|
|
29
|
+
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
30
|
+
var(--scroll-view-fading-edge-length)
|
|
31
|
+
var(--scroll-view-fading-edge-length);
|
|
32
|
+
}
|
|
33
|
+
100% {
|
|
34
|
+
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
35
|
+
var(--scroll-view-fading-edge-length)
|
|
36
|
+
var(--scroll-view-fading-edge-length);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@keyframes botFading {
|
|
40
|
+
0% {
|
|
41
|
+
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
42
|
+
var(--scroll-view-fading-edge-length)
|
|
43
|
+
var(--scroll-view-fading-edge-length);
|
|
44
|
+
}
|
|
45
|
+
95% {
|
|
46
|
+
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
47
|
+
var(--scroll-view-fading-edge-length)
|
|
48
|
+
var(--scroll-view-fading-edge-length);
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
box-shadow: transparent 0px 0px 0px 0px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
<div
|
|
56
|
+
class="mask placeholder-dom"
|
|
57
|
+
id="top-fade-mask"
|
|
58
|
+
part="top-fade-mask"
|
|
59
|
+
></div>
|
|
60
|
+
<div
|
|
61
|
+
class="observer-container placeholder-dom"
|
|
62
|
+
part="upper-threshold-observer"
|
|
63
|
+
>
|
|
64
|
+
<div
|
|
65
|
+
class="observer placeholder-dom"
|
|
66
|
+
id="upper-threshold-observer"
|
|
67
|
+
></div>
|
|
68
|
+
</div>
|
|
69
|
+
<slot></slot>
|
|
70
|
+
<div
|
|
71
|
+
class="observer-container placeholder-dom"
|
|
72
|
+
part="lower-threshold-observer"
|
|
73
|
+
>
|
|
74
|
+
<div
|
|
75
|
+
class="observer placeholder-dom"
|
|
76
|
+
id="lower-threshold-observer"
|
|
77
|
+
></div>
|
|
78
|
+
</div>
|
|
79
|
+
<div
|
|
80
|
+
class="mask placeholder-dom"
|
|
81
|
+
id="bot-fade-mask"
|
|
82
|
+
part="bot-fade-mask"
|
|
83
|
+
></div>`,a$=/<\s*script/,aV=e=>{let{src:t}=e;if(t&&a$.test(t))throw Error("detected <script, this is a potential XSS attack, please check your src");return`<img part="img" alt="" id="img" ${t?`src="${t}"`:""}/> `},aU=`<style>
|
|
84
|
+
#input:focus {
|
|
85
|
+
outline: none;
|
|
86
|
+
}
|
|
87
|
+
#form {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
91
|
+
<form id="form" part="form" method="dialog">
|
|
92
|
+
<input
|
|
93
|
+
id="input"
|
|
94
|
+
part="input"
|
|
95
|
+
step="any"
|
|
96
|
+
type="text"
|
|
97
|
+
inputmode="text"
|
|
98
|
+
spell-check="true"
|
|
99
|
+
/>
|
|
100
|
+
</form>`,aW=`<style>
|
|
101
|
+
.placeholder-dom {
|
|
102
|
+
display: none;
|
|
103
|
+
flex: 0 0 0;
|
|
104
|
+
align-self: stretch;
|
|
105
|
+
min-height: 0;
|
|
106
|
+
min-width: 0;
|
|
107
|
+
}
|
|
108
|
+
.observer-container {
|
|
109
|
+
flex-direction: inherit;
|
|
110
|
+
overflow: visible;
|
|
111
|
+
}
|
|
112
|
+
.observer {
|
|
113
|
+
display: flex;
|
|
114
|
+
}
|
|
115
|
+
</style>
|
|
116
|
+
<div id="content" part="content">
|
|
117
|
+
<div
|
|
118
|
+
class="observer-container placeholder-dom"
|
|
119
|
+
part="upper-threshold-observer"
|
|
120
|
+
>
|
|
121
|
+
<div
|
|
122
|
+
class="observer placeholder-dom"
|
|
123
|
+
id="upper-threshold-observer"
|
|
124
|
+
></div>
|
|
125
|
+
</div>
|
|
126
|
+
<slot part="slot"></slot>
|
|
127
|
+
<div
|
|
128
|
+
class="observer-container placeholder-dom"
|
|
129
|
+
part="lower-threshold-observer"
|
|
130
|
+
>
|
|
131
|
+
<div
|
|
132
|
+
class="observer placeholder-dom"
|
|
133
|
+
id="lower-threshold-observer"
|
|
134
|
+
></div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>`,aB=`<style>
|
|
137
|
+
#dialog[open] {
|
|
138
|
+
top: 0;
|
|
139
|
+
left: 0;
|
|
140
|
+
right: 0;
|
|
141
|
+
bottom: 0;
|
|
142
|
+
position: fixed;
|
|
143
|
+
overscroll-behavior: contain;
|
|
144
|
+
scrollbar-width: none;
|
|
145
|
+
}
|
|
146
|
+
#dialog[open]::-webkit-scrollbar {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
#dialog::backdrop {
|
|
150
|
+
background-color: transparent;
|
|
151
|
+
}
|
|
152
|
+
.overlay-inner {
|
|
153
|
+
position: sticky;
|
|
154
|
+
top: 0;
|
|
155
|
+
width: 100%;
|
|
156
|
+
height: 100%;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
}
|
|
159
|
+
.overlay-inner > * {
|
|
160
|
+
pointer-events: auto;
|
|
161
|
+
}
|
|
162
|
+
.overlay-placeholder {
|
|
163
|
+
width: 100%;
|
|
164
|
+
height: 1px;
|
|
165
|
+
}
|
|
166
|
+
</style>
|
|
167
|
+
<dialog id="dialog" part="dialog">
|
|
168
|
+
<div class="overlay-inner">
|
|
169
|
+
<slot></slot>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="overlay-placeholder"></div>
|
|
172
|
+
</dialog>`,aX=`<style>
|
|
173
|
+
.bounce-container {
|
|
174
|
+
overflow: scroll;
|
|
175
|
+
overscroll-behavior: contain;
|
|
176
|
+
scroll-snap-type: y mandatory;
|
|
177
|
+
scroll-behavior: smooth;
|
|
178
|
+
scrollbar-width: none;
|
|
179
|
+
}
|
|
180
|
+
.overflow-placeholder {
|
|
181
|
+
min-height: 30%;
|
|
182
|
+
min-width: 100%;
|
|
183
|
+
flex-shrink: 0;
|
|
184
|
+
scroll-snap-align: none;
|
|
185
|
+
}
|
|
186
|
+
.not-shrink {
|
|
187
|
+
height: 100%;
|
|
188
|
+
width: 100%;
|
|
189
|
+
min-height: 100%;
|
|
190
|
+
min-width: 100%;
|
|
191
|
+
flex-shrink: 0;
|
|
192
|
+
}
|
|
193
|
+
.vertical {
|
|
194
|
+
display: flex;
|
|
195
|
+
flex-direction: column;
|
|
196
|
+
}
|
|
197
|
+
#content {
|
|
198
|
+
scroll-snap-align: center;
|
|
199
|
+
}
|
|
200
|
+
</style>
|
|
201
|
+
<div id="container" part="container" class="bounce-container not-shrink vertical">
|
|
202
|
+
<div
|
|
203
|
+
id="placeholder-top"
|
|
204
|
+
class="overflow-placeholder bounce-item"
|
|
205
|
+
part="placeholder-top"
|
|
206
|
+
></div>
|
|
207
|
+
<slot name="header"></slot>
|
|
208
|
+
<div id="content" part="content" class="not-shrink vertical">
|
|
209
|
+
<slot part="slot"></slot>
|
|
210
|
+
</div>
|
|
211
|
+
<slot name="footer"></slot>
|
|
212
|
+
<div
|
|
213
|
+
id="placeholder-bot"
|
|
214
|
+
class="overflow-placeholder bounce-item"
|
|
215
|
+
part="placeholder-bot"
|
|
216
|
+
></div>
|
|
217
|
+
</div>`,aZ=`<style>
|
|
218
|
+
#bounce-padding {
|
|
219
|
+
display: none;
|
|
220
|
+
flex: 0 0 0;
|
|
221
|
+
align-self: stretch;
|
|
222
|
+
scroll-snap-align: none;
|
|
223
|
+
flex-basis: 100%;
|
|
224
|
+
}
|
|
225
|
+
#content {
|
|
226
|
+
position: relative;
|
|
227
|
+
display: flex;
|
|
228
|
+
flex: 0 0 100%;
|
|
229
|
+
flex-direction: inherit;
|
|
230
|
+
flex-wrap: inherit;
|
|
231
|
+
align-self: stretch;
|
|
232
|
+
justify-content: inherit;
|
|
233
|
+
align-items: inherit;
|
|
234
|
+
overflow: inherit;
|
|
235
|
+
scrollbar-width: none;
|
|
236
|
+
scroll-snap-align: start;
|
|
237
|
+
scroll-snap-type: inherit;
|
|
238
|
+
}
|
|
239
|
+
div::-webkit-scrollbar {
|
|
240
|
+
display: none;
|
|
241
|
+
}
|
|
242
|
+
#indicator-container {
|
|
243
|
+
display: none;
|
|
244
|
+
}
|
|
245
|
+
#indicator-container > div {
|
|
246
|
+
animation-name: indicator-dot;
|
|
247
|
+
animation-duration: 100ms;
|
|
248
|
+
}
|
|
249
|
+
@keyframes indicator-dot {
|
|
250
|
+
30%,
|
|
251
|
+
70% {
|
|
252
|
+
background-color: var(--indicator-color);
|
|
253
|
+
}
|
|
254
|
+
31%,
|
|
255
|
+
69% {
|
|
256
|
+
background-color: var(--indicator-active-color);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
</style>
|
|
260
|
+
<style id="indicator-style"></style>
|
|
261
|
+
<div id="bounce-padding" part="bounce-padding"></div>
|
|
262
|
+
<div id="indicator-container" part="indicator-container"></div>
|
|
263
|
+
<div id="content" part="content">
|
|
264
|
+
<slot part="slot-start" name="circular-start" id="circular-start"></slot>
|
|
265
|
+
<slot part="slot"></slot>
|
|
266
|
+
<slot part="slot-end" name="circular-end" id="circular-end"></slot>
|
|
267
|
+
</div>`,aY=`<style>
|
|
268
|
+
#textarea:focus,
|
|
269
|
+
#textarea:focus-visible {
|
|
270
|
+
border: inherit;
|
|
271
|
+
outline: inherit;
|
|
272
|
+
}
|
|
273
|
+
</style>
|
|
274
|
+
<form id="form" part="form" method="dialog">
|
|
275
|
+
<textarea id="textarea" part="textarea"></textarea>
|
|
276
|
+
</form>`,aq=`<style>
|
|
277
|
+
#bounce-padding {
|
|
278
|
+
display: none;
|
|
279
|
+
flex: 0 0 0;
|
|
280
|
+
align-self: stretch;
|
|
281
|
+
scroll-snap-align: none;
|
|
282
|
+
flex-basis: 100%;
|
|
283
|
+
}
|
|
284
|
+
#content {
|
|
285
|
+
flex: 0 0 100%;
|
|
286
|
+
flex-direction: row;
|
|
287
|
+
align-self: stretch;
|
|
288
|
+
display: inherit;
|
|
289
|
+
justify-content: inherit;
|
|
290
|
+
align-items: inherit;
|
|
291
|
+
overflow: inherit;
|
|
292
|
+
scrollbar-width: none;
|
|
293
|
+
scroll-snap-type: inherit;
|
|
294
|
+
}
|
|
295
|
+
#content::-webkit-scrollbar {
|
|
296
|
+
display: none;
|
|
297
|
+
}
|
|
298
|
+
</style>
|
|
299
|
+
<div id="bounce-padding" part="bounce-padding"></div>
|
|
300
|
+
<div id="content" part="content">
|
|
301
|
+
<slot></slot>
|
|
302
|
+
</div>`,aJ=`<style>
|
|
303
|
+
iframe {
|
|
304
|
+
width: 100%;
|
|
305
|
+
height: 100%;
|
|
306
|
+
border: none;
|
|
307
|
+
}
|
|
308
|
+
</style>
|
|
309
|
+
<iframe id="webview" part="webview"></iframe>`,aK=CSS.supports("-webkit-box-reflect: above")&&CSS.supports("transition-behavior:allow-discrete")&&CSS.supports("content-visibility: auto");class aQ{static observedAttributes=[];static observedCSSProperties=["--lynx-display","--lynx-linear-orientation"];#e;constructor(e){this.#e=e,this.cssPropertyChangedHandler={"--lynx-display":this.#y,"--lynx-linear-orientation":this.#E}}#y=(0,aA.H$)(()=>this.#e,"lynx-computed-display");#E=(0,aA.H$)(()=>this.#e,"lynx-linear-orientation")}let a0=aK?void 0:aQ;M=[(0,aA.uA)("scroll-view",[a0,az.O,aR,aP,aN,aj],aG)],H=[],D=HTMLElement,aO=class extends D{static{R=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(D[Symbol.metadata]??null):void 0;(0,ak.G4)(null,P={value:R},M,{kind:"class",name:R.name,metadata:e},null,H),aO=R=P.value,e&&Object.defineProperty(R,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#S;scrollTo(...e){let t;if("string"==typeof e[0].offset){let l=parseFloat(e[0].offset);t={left:l,top:l}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let l=e[0].index;if(0===l)this.scrollTop=0,this.scrollLeft=0;else if(l>0&&l<this.childElementCount){let e=this.children.item(l);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(e){if(clearInterval(this.#S),e.start){let t=("number"==typeof e.rate?e.rate:parseFloat(e.rate))*aO.scrollInterval/1e3;this.#S=setInterval(e=>{e.scrollBy({left:t,top:t,behavior:"smooth"})},aO.scrollInterval,this)}}get[aD.l](){return this}static{(0,ak.zF)(R,H)}},aO=R;let a1=Symbol("__src"),a4=Symbol("__src"),a2={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},a8={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(aL=aF||(aF={}))[aL.SrcError=-1]="SrcError",aL[aL.SrcJsonError=-2]="SrcJsonError",aL[aL.DownloadError=-3]="DownloadError",aL[aL.PlayerFinishedError=-4]="PlayerFinishedError",aL[aL.PlayerLoadingError=-5]="PlayerLoadingError",aL[aL.PlayerPlaybackError=-6]="PlayerPlaybackError";let a3=($=[],V=[],U=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;N=[(0,aA._y)("src",!0)],j=[(0,aA._y)("loop",!0)],G=[(0,aA._y)("pause-on-hide",!0)],(0,ak.G4)(this,null,N,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,$),(0,ak.G4)(this,null,G,{kind:"method",name:"_handlePauseOnHide",static:!1,private:!1,access:{has:e=>"_handlePauseOnHide"in e,get:e=>e._handlePauseOnHide},metadata:e},null,$),(0,ak.G4)(null,null,j,{kind:"field",name:"_handleLoop",static:!1,private:!1,access:{has:e=>"_handleLoop"in e,get:e=>e._handleLoop,set:(e,t)=>{e._handleLoop=t}},metadata:e},V,U),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#e=(0,ak.zF)(this,$);#_=(0,aA.Ut)(()=>this.#e.shadowRoot,"#audio");_handleSrc(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#e.dispatchEvent(new CustomEvent("error",{...aM.$,detail:{code:aF.SrcError,msg:"",from:"res loader",currentSrcID:this.#e[a1]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#e.dispatchEvent(new CustomEvent("error",{...aM.$,detail:{code:aF.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#e[a1]?.id}})),this.#e[a1]=t,this.#e[a4]=void 0,this.#e.stop()}_handleLoop=(0,ak.zF)(this,V,(0,aA.H$)(this.#_,"loop"));#w=((0,ak.zF)(this,U),()=>{"hidden"===document.visibilityState&&this.#e.pause()});_handlePauseOnHide(e){null!==e?document.addEventListener("visibilitychange",this.#w,{passive:!0}):document.removeEventListener("visibilitychange",this.#w)}constructor(e){this.#e=e}});class a6{static observedAttributes=[];#e;#x;#_=(0,aA.Ut)(()=>this.#e.shadowRoot,"#audio");#T=e=>{let t=Number(this.#e.getAttribute("interval")),l=Number.isNaN(t)?0:t;this.#x=setInterval(()=>{this.#e.dispatchEvent(new CustomEvent("timeupdate",{...aM.$,detail:{currentTime:this.#_().currentTime,currentSrcID:this.#e[a1]?.id}}))},l);let i=a8[e.type];this.#e.dispatchEvent(new CustomEvent("playbackstatechanged",{...aM.$,detail:{code:i?.code,type:i?.type,currentSrcID:this.#e[a1]?.id}}))};#C=e=>{clearInterval(this.#x);let t=a8[e.type];this.#e.dispatchEvent(new CustomEvent("playbackstatechanged",{...aM.$,detail:{code:t?.code,type:t?.type,currentSrcID:this.#e[a1]?.id}}))};#O=e=>{let t=a2[e.type];this.#e.dispatchEvent(new CustomEvent("loadingstatechanged",{...aM.$,detail:{code:t?.code,type:t?.type,currentSrcID:this.#e[a1]?.id}}))};#L=e=>{this.#O(e);let t=e.target?.error?.code,l=t===MediaError.MEDIA_ERR_DECODE?aF.PlayerLoadingError:aF.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(l=aF.PlayerLoadingError),this.#e.dispatchEvent(new CustomEvent("error",{...aM.$,detail:{code:l,msg:"",from:"player",currentSrcID:this.#e[a1]?.id}}))};#I=()=>{let e=null!==this.#e.getAttribute("loop");this.#e.dispatchEvent(new CustomEvent("finished",{...aM.$,detail:{loop:e,currentSrcID:this.#e[a1]?.id}}))};constructor(e){this.#e=e}connectedCallback(){let e=this.#_();e.addEventListener("play",this.#T,{passive:!0}),e.addEventListener("pause",this.#C,{passive:!0}),e.addEventListener("ended",this.#I,{passive:!0}),e.addEventListener("loadstart",this.#O,{passive:!0}),e.addEventListener("canplay",this.#O,{passive:!0}),e.addEventListener("stalled",this.#O,{passive:!0}),e.addEventListener("error",this.#L,{passive:!0})}}X=[(0,aA.uA)("x-audio-tt",[az.O,a3,a6],'<audio id="audio"></audio>')],Z=[],Y=HTMLElement,class extends Y{static{B=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(Y[Symbol.metadata]??null):void 0;(0,ak.G4)(null,W={value:B},X,{kind:"class",name:B.name,metadata:e},null,Z),B=W.value,e&&Object.defineProperty(B,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(B,Z)}#F=(0,aA.Ut)(()=>this.shadowRoot,"#audio");#_=(0,aA.Ut)(()=>this.shadowRoot,"#audio");#k=(0,aA.H$)(this.#_,"src");[a1];[a4];#A=()=>{let e,t=this[a1];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[a4]=new Promise(async(l,i)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aM.$,detail:{code:0,type:"loading",currentSrcID:t.id}}));let n=await fetch(t.play_url,{headers:e});n.ok||(this.dispatchEvent(new CustomEvent("error",{...aM.$,detail:{code:aF.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),i()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aM.$,detail:{code:1,type:"success",currentSrcID:t.id}}));let a=await n.blob(),s=URL.createObjectURL(a);this.#k(s),l()})}};play(){return this[a4]||this.#A(),this[a4]?.then(()=>{let e=this.#F();e.currentTime=0,e.play()}),{currentSrcID:this[a1]?.id,loadingSrcID:""}}stop(){let e=this.#F(),t=a8.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...aM.$,detail:{code:t?.code,type:t?.type,currentSrcID:this[a1]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[a1]?.id}}pause(){return this.#F().pause(),{currentSrcID:this[a1]?.id}}resume(){return this.#F().play(),{currentSrcID:this[a1]?.id,loadingSrcID:""}}seek(e){return this.#F().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...aM.$,detail:{seekresult:1,currentSrcID:this[a1]?.id}})),{currentSrcID:this[a1]?.id}}mute(e){return this.#F().muted=e.mute,{currentSrcID:this[a1]?.id}}playerInfo(){var e;let t=this.#F(),l=t.buffered,i=l.end(l.length-1);return{currentSrcID:this[a1]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:i}}prepare(){this[a4]||this.#A()}setVolume(e){return this.#F().volume=e.volume,{code:1}}};let a9=(Q=[],ee=[],et=[],el=[],ei=[],en=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;q=[(0,aA._y)("name",!0)],J=[(0,aA._y)("height",!0)],K=[(0,aA._y)("width",!0)],(0,ak.G4)(null,null,q,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},Q,ee),(0,ak.G4)(null,null,J,{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},et,el),(0,ak.G4)(null,null,K,{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},ei,en),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#e;#z;#P=(0,aA.Ut)(()=>this.#e.shadowRoot,"#canvas");constructor(e){this.#e=e}handleName=(0,ak.zF)(this,Q,(0,aA.H$)(this.#P,"name"));handleHeight=((0,ak.zF)(this,ee),(0,ak.zF)(this,et,(0,aA.H$)(this.#P,"height")));handleWidth=((0,ak.zF)(this,el),(0,ak.zF)(this,ei,(0,aA.H$)(this.#P,"width")));#R=((0,ak.zF)(this,en),e=>{let{contentRect:t}=e[0],l=this.#e.shadowRoot.firstElementChild;if(l){let{height:e,width:i}=t;e*=window.devicePixelRatio,i*=window.devicePixelRatio;let n=new CustomEvent("resize",{...aM.$,detail:{height:e,width:i}});n.height=e,n.width=i,l.dispatchEvent(n)}});#M(){this.#z||(this.#z=new ResizeObserver(this.#R),this.#z.observe(this.#e))}#H(){this.#z?.disconnect(),this.#z=void 0}connectedCallback(){this.#M()}dispose(){this.#H()}});eo=[(0,aA.uA)("x-canvas",[az.O,a9],(0,aA.qy)`<canvas id="canvas" part="canvas"></canvas>`)],er=[],ed=HTMLElement,class extends ed{static{es=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ed[Symbol.metadata]??null):void 0;(0,ak.G4)(null,ea={value:es},eo,{kind:"class",name:es.name,metadata:e},null,er),es=ea.value,e&&Object.defineProperty(es,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(es,er)}};let a5=(eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eh=[(0,aA._y)("granularity",!0)],ec=[(0,aA.ZR)("offset")],(0,ak.G4)(this,null,eh,{kind:"method",name:"_handleGranularity",static:!1,private:!1,access:{has:e=>"_handleGranularity"in e,get:e=>e._handleGranularity},metadata:e},null,eu),(0,ak.G4)(this,null,ec,{kind:"method",name:"_enableOffsetEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetEvent"in e,get:e=>e._enableOffsetEvent},metadata:e},null,eu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#e=(0,ak.zF)(this,eu);#D=.01;#N=0;constructor(e){this.#e=e}static observedAttributes=["granularity"];_handleGranularity(e){e&&""!==e?this.#D=parseFloat(e):this.#D=.01}_enableOffsetEvent(e){e?this.#e.addEventListener("scroll",this.#m,{passive:!0}):this.#e.removeEventListener("scroll",this.#m)}#m=()=>{let e=this.#e.scrollTop;(Math.abs(this.#N-e)>this.#D||0===this.#e.scrollTop||1>=Math.abs(this.#e.scrollHeight-this.#e.clientHeight-this.#e.scrollTop))&&(this.#N=e,this.#e.dispatchEvent(new CustomEvent("offset",{...aM.$,detail:{offset:e,height:this.#e[a7]}})))}}),a7=Symbol("scrollableLength"),se=Symbol("isHeaderShowing"),st=Symbol("resizeObserver"),sl=Symbol("slotKid");ev=[(0,aA.uA)("x-foldview-ng",[a0,az.O,a5])],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;(0,ak.G4)(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})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sl];[st]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#j=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#G=t.contentRect.height);this[sl]&&(this[sl].style.top=`${this.#j-this.#G}px`)});#j=0;#G=0;get[a7](){return this.#j-this.#G}get[se](){return this[a7]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[a7]?e=this[a7]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:l=!0}=e,i=parseFloat(t);this.scrollTo({top:i,behavior:l?"smooth":"instant"})}get[aD.l](){return this}disconnectedCallback(){this[st]?.disconnect(),this[st]=void 0}static{(0,ak.zF)(ep,eb)}};let si=(e,t)=>{let l=e.parentElement;if(l?.tagName==="LYNX-WRAPPER"&&(l=l.parentElement),l?.tagName===t)return l};eE=[(0,aA.uA)("x-foldview-header-ng",[a0,az.O])],eS=[],e_=HTMLElement,(class extends e_{static{ey=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(e_[Symbol.metadata]??null):void 0;(0,ak.G4)(null,ef={value:ey},eE,{kind:"class",name:ey.name,metadata:e},null,eS),ey=ef.value,e&&Object.defineProperty(ey,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(ey,eS)}#$=void 0;connectedCallback(){let e=si(this,"X-FOLDVIEW-NG");this.#$=e?.[st],this.#$?.observe(this)}dispose(){this.#$?.unobserve(this)}}),eT=[(0,aA.uA)("x-foldview-slot-drag-ng",[a0,az.O])],eC=[],eO=HTMLElement,class extends eO{static{ex=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eO[Symbol.metadata]??null):void 0;(0,ak.G4)(null,ew={value:ex},eT,{kind:"class",name:ex.name,metadata:e},null,eC),ex=ew.value,e&&Object.defineProperty(ex,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(ex,eC)}};class sn{#V=0;#U=new WeakMap;#W;#B=0;#X=0;#Z=null;#Y;#q=0;#e;static observedAttributes=[];constructor(e){this.#e=e,this.#e.addEventListener("touchmove",this.#J,{passive:!1}),this.#e.addEventListener("touchstart",this.#K,{passive:!0}),this.#e.addEventListener("touchend",this.#Q,{passive:!0}),this.#e.addEventListener("wheel",this.#ee,{passive:!1})}#et(e){let t;if("function"==typeof e.computedStyleMap)try{t=e.computedStyleMap().get("overflow-y")?.toString()??"visible"}catch{t=getComputedStyle(e).overflowY||"visible"}else t=getComputedStyle(e).overflowY||"visible";return"auto"===t||"scroll"===t||"hidden"===t||"overlay"===t}#el(e){return this.#W?.find(t=>{if(this.#et(t)&&t.scrollHeight>t.clientHeight){let l=e<0&&0!==t.scrollTop,i=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return l||i}return!1})}#ei(e,t){let l=this.#U.get(e)??0;l+=t,this.#U.set(e,l),e.scrollTop=l}#J=e=>{let t=this.#en();if(!t)return;let{pageY:l,pageX:i}=e.touches.item(0),n=this.#B-l;if(null===this.#Z){let e=this.#X-i;this.#Z=Math.abs(n)>Math.abs(e)}!1!==this.#Z&&(e.cancelable&&e.preventDefault(),this.#ea(n,t),this.#B=l)};#ee=e=>{let t=this.#en();if(!t||Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let l=e.composedPath().filter(e=>e instanceof Element&&this.#e.contains(e)&&e!==this.#e),{clientX:i,clientY:n}=e,a=document.elementsFromPoint(i,n).filter(e=>this.#e.contains(e));if(this.#W=[...new Set([...l,...a])],this.#V=t.scrollTop,this.#W)for(let e of this.#W)this.#U.set(e,e.scrollTop);e.cancelable&&e.preventDefault(),this.#ea(e.deltaY,t)};#en(){let e=this.#e.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#K=e=>{let{pageX:t,pageY:l}=e.touches.item(0);for(let e of(this.#W=document.elementsFromPoint(t,l).filter(e=>this.#e.contains(e)&&e!==this.#e),this.#B=l,this.#X=t,this.#V=this.#en()?.scrollTop??0,this.#W))this.#U.set(e,e.scrollTop);this.#Z=null,this.#Y=void 0};#Q=()=>{if(this.#Z=null,this.#Y){let e=this.#en();(this.#Y!==e||e[se])&&this.#Y.scrollBy({top:4*this.#q,behavior:"smooth"})}};#ea(e,t){let l=this.#el(e);t[se]&&e>0||e<0&&!l||!t[se]&&!l?(t.scrollBy({top:e,behavior:"smooth"}),this.#V+=e,t.scrollTop=this.#V,this.#Y=t):l&&(this.#Y=l,this.#ei(l,e)),this.#q=e}}eF=[(0,aA.uA)("x-foldview-slot-ng",[a0,az.O,sn])],ek=[],eA=HTMLElement,(class extends eA{static{eI=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eA[Symbol.metadata]??null):void 0;(0,ak.G4)(null,eL={value:eI},eF,{kind:"class",name:eI.name,metadata:e},null,ek),eI=eL.value,e&&Object.defineProperty(eI,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(eI,ek)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sl]=this)}}),eR=[(0,aA.uA)("x-foldview-toolbar-ng",[a0,az.O])],eM=[],eH=HTMLElement,class extends eH{static{eP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eH[Symbol.metadata]??null):void 0;(0,ak.G4)(null,ez={value:eP},eR,{kind:"class",name:eP.name,metadata:e},null,eM),eP=ez.value,e&&Object.defineProperty(eP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(eP,eM)}#$=void 0;connectedCallback(){let e=si(this,"X-FOLDVIEW-NG");this.#$=e?.[st],this.#$?.observe(this)}dispose(){this.#$?.unobserve(this)}};let sa=(eN=[],ej=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eD=[(0,aA._y)("drop-shadow",!0)],(0,ak.G4)(null,null,eD,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eN,ej),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#e;#es=(0,aA.Ut)(()=>this.#e.shadowRoot,"#img");_handleBlurRadius=(0,ak.zF)(this,eN,(0,aA._8)(this.#es,"--drop-shadow",void 0,!0));constructor(e){(0,ak.zF)(this,ej),this.#e=e}}),ss=(eB=[],eX=[],eZ=[],eY=[],eq=[],eJ=[],eK=[],eQ=[],e0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eG=[(0,aA._y)("src",!0)],e$=[(0,aA._y)("placeholder",!0)],eV=[(0,aA._y)("blur-radius",!0)],eU=[(0,aA._y)("crossorigin",!0)],eW=[(0,aA._y)("referrerpolicy",!0)],(0,ak.G4)(this,null,e$,{kind:"method",name:"_preloadPlaceholder",static:!1,private:!1,access:{has:e=>"_preloadPlaceholder"in e,get:e=>e._preloadPlaceholder},metadata:e},null,eB),(0,ak.G4)(null,null,eG,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},eX,eZ),(0,ak.G4)(null,null,eV,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eY,eq),(0,ak.G4)(null,null,eU,{kind:"field",name:"_handleCrossorigin",static:!1,private:!1,access:{has:e=>"_handleCrossorigin"in e,get:e=>e._handleCrossorigin,set:(e,t)=>{e._handleCrossorigin=t}},metadata:e},eJ,eK),(0,ak.G4)(null,null,eW,{kind:"field",name:"_handleReferrerpolicy",static:!1,private:!1,access:{has:e=>"_handleReferrerpolicy"in e,get:e=>e._handleReferrerpolicy,set:(e,t)=>{e._handleReferrerpolicy=t}},metadata:e},eQ,e0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#e=(0,ak.zF)(this,eB);#es=(0,aA.Ut)(()=>this.#e.shadowRoot,"#img");_handleSrc=(0,ak.zF)(this,eX,(0,aA.H$)(this.#es,"src",e=>e||this.#e.getAttribute("placeholder")));_preloadPlaceholder(e){e&&(new Image().src=e)}_handleBlurRadius=((0,ak.zF)(this,eZ),(0,ak.zF)(this,eY,(0,aA._8)(this.#es,"--blur-radius",void 0,!0)));_handleCrossorigin=((0,ak.zF)(this,eq),(0,ak.zF)(this,eJ,(0,aA.H$)(this.#es,"crossorigin")));_handleReferrerpolicy=((0,ak.zF)(this,eK),(0,ak.zF)(this,eQ,(0,aA.H$)(this.#es,"referrerpolicy")));#eo=((0,ak.zF)(this,e0),()=>{let e=this.#es().src,t=this.#e.getAttribute("placeholder");t&&e!==t&&(this.#es().src=t)});constructor(e){this.#e=e,this.#es().addEventListener("error",this.#eo)}connectedCallback(){(null===this.#e.getAttribute("src")||""===this.#e.getAttribute("src"))&&this._handleSrc(null)}}),so=(e2=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e1=[(0,aA.ZR)("load")],e4=[(0,aA.ZR)("error")],(0,ak.G4)(this,null,e1,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,e2),(0,ak.G4)(this,null,e4,{kind:"method",name:"_enableErrorEvent",static:!1,private:!1,access:{has:e=>"_enableErrorEvent"in e,get:e=>e._enableErrorEvent},metadata:e},null,e2),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#e=(0,ak.zF)(this,e2);#es=(0,aA.Ut)(()=>this.#e.shadowRoot,"#img");_enableLoadEvent(e){e?this.#es().addEventListener("load",this.#er,{passive:!0}):this.#es().removeEventListener("load",this.#er)}_enableErrorEvent(e){e?this.#es().addEventListener("error",this.#ed,{passive:!0}):this.#es().removeEventListener("error",this.#ed)}#er=()=>{this.#e.dispatchEvent(new CustomEvent("load",{...aM.$,detail:{width:this.#es().naturalWidth,height:this.#es().naturalHeight}}))};#ed=()=>{this.#e.dispatchEvent(new CustomEvent("error",{...aM.$,detail:{}}))};constructor(e){this.#e=e}});e6=[(0,aA.uA)("filter-image",[az.O,ss,sa,so],aV({}))],e9=[],e5=HTMLElement,(class extends e5{static{e3=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(e5[Symbol.metadata]??null):void 0;(0,ak.G4)(null,e8={value:e3},e6,{kind:"class",name:e3.name,metadata:e},null,e9),e3=e8.value,e&&Object.defineProperty(e3,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(e3,e9)}}),tt=[(0,aA.uA)("x-image",[az.O,ss,so],aV({}))],tl=[],ti=HTMLElement,class extends ti{static{te=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ti[Symbol.metadata]??null):void 0;(0,ak.G4)(null,e7={value:te},tt,{kind:"class",name:te.name,metadata:e},null,tl),te=e7.value,e&&Object.defineProperty(te,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(te,tl)}};let sr=(td=[],th=[],tc=[],tu=[],tm=[],tp=[],tv=[],tb=[],tg=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tn=[(0,aA._y)("confirm-type",!0)],ta=[(0,aA._y)("maxlength",!0)],ts=[(0,aA._y)("readonly",!0)],to=[(0,aA._y)("type",!0)],tr=[(0,aA._y)("ios-spell-check",!0),(0,aA._y)("spell-check",!0)],(0,ak.G4)(this,null,to,{kind:"method",name:"_handleType",static:!1,private:!1,access:{has:e=>"_handleType"in e,get:e=>e._handleType},metadata:e},null,td),(0,ak.G4)(null,null,tn,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},th,tc),(0,ak.G4)(null,null,ta,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},tu,tm),(0,ak.G4)(null,null,ts,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},tp,tv),(0,ak.G4)(null,null,tr,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},tb,tg),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"];#e=(0,ak.zF)(this,td);#eh=(0,aA.Ut)(()=>this.#e.shadowRoot,"#input");_handlerConfirmType=(0,ak.zF)(this,th,(0,aA.H$)(this.#eh,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=((0,ak.zF)(this,tc),(0,ak.zF)(this,tu,(0,aA.H$)(this.#eh,"maxlength",e=>null===e?"140":e)));_handleReadonly=((0,ak.zF)(this,tm),(0,ak.zF)(this,tp,(0,aA.H$)(this.#eh,"readonly",e=>null!==e?"":null)));#ec=((0,ak.zF)(this,tv),(0,aA.H$)(this.#eh,"type"));#eu=(0,aA.H$)(this.#eh,"inputmode");_handleType(e){let t="text",l="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":l=e,this.#eu(t),this.#ec(l)}_handleSpellCheck=(0,ak.zF)(this,tb,(0,aA.H$)(this.#eh,"spellcheck",e=>null===e?"false":"true"));constructor(e){(0,ak.zF)(this,tg),this.#e=e}}),sd=(tw=[],tx=[],tT=[],tC=[],tO=[],tL=[],tI=[],tF=[],tk=[],tA=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tf=[(0,aA._y)("placeholder",!0)],ty=[(0,aA._y)("placeholder-color",!0)],tE=[(0,aA._y)("placeholder-font-family",!0)],tS=[(0,aA._y)("placeholder-font-size",!0)],t_=[(0,aA._y)("placeholder-font-weight",!0)],(0,ak.G4)(null,null,tf,{kind:"field",name:"_handlerPlaceholder",static:!1,private:!1,access:{has:e=>"_handlerPlaceholder"in e,get:e=>e._handlerPlaceholder,set:(e,t)=>{e._handlerPlaceholder=t}},metadata:e},tw,tx),(0,ak.G4)(null,null,ty,{kind:"field",name:"_handlerPlaceholderColor",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderColor"in e,get:e=>e._handlerPlaceholderColor,set:(e,t)=>{e._handlerPlaceholderColor=t}},metadata:e},tT,tC),(0,ak.G4)(null,null,tE,{kind:"field",name:"_handlerPlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontFamily"in e,get:e=>e._handlerPlaceholderFontFamily,set:(e,t)=>{e._handlerPlaceholderFontFamily=t}},metadata:e},tO,tL),(0,ak.G4)(null,null,tS,{kind:"field",name:"_handlerPlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontSize"in e,get:e=>e._handlerPlaceholderFontSize,set:(e,t)=>{e._handlerPlaceholderFontSize=t}},metadata:e},tI,tF),(0,ak.G4)(null,null,t_,{kind:"field",name:"_handlerPlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontWeight"in e,get:e=>e._handlerPlaceholderFontWeight,set:(e,t)=>{e._handlerPlaceholderFontWeight=t}},metadata:e},tk,tA),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"];#e;#eh=(0,aA.Ut)(()=>this.#e.shadowRoot,"#input");_handlerPlaceholder=(0,ak.zF)(this,tw,(0,aA.H$)(this.#eh,"placeholder"));_handlerPlaceholderColor=((0,ak.zF)(this,tx),(0,ak.zF)(this,tT,(0,aA._8)(this.#eh,"--placeholder-color",void 0,!0)));_handlerPlaceholderFontFamily=((0,ak.zF)(this,tC),(0,ak.zF)(this,tO,(0,aA._8)(this.#eh,"--placeholder-font-family",void 0,!0)));_handlerPlaceholderFontSize=((0,ak.zF)(this,tL),(0,ak.zF)(this,tI,(0,aA._8)(this.#eh,"--placeholder-font-size",void 0,!0)));_handlerPlaceholderFontWeight=((0,ak.zF)(this,tF),(0,ak.zF)(this,tk,(0,aA._8)(this.#eh,"--placeholder-font-weight",void 0,!0)));constructor(e){(0,ak.zF)(this,tA),this.#e=e}}),sh=(tM=[],tH=[],tD=[],tN=[],tj=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tz=[(0,aA._y)("value",!1)],tP=[(0,aA._y)("disabled",!0)],tR=[(0,aA._y)("autocomplete",!0)],(0,ak.G4)(this,null,tz,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,tM),(0,ak.G4)(null,null,tP,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},tH,tD),(0,ak.G4)(null,null,tR,{kind:"field",name:"_handleAutocomplete",static:!1,private:!1,access:{has:e=>"_handleAutocomplete"in e,get:e=>e._handleAutocomplete,set:(e,t)=>{e._handleAutocomplete=t}},metadata:e},tN,tj),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#e=(0,ak.zF)(this,tM);#eh=(0,aA.Ut)(()=>this.#e.shadowRoot,"#input");_handleValue(e){if(e){let t=parseFloat(this.#e.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#eh();t.value!==e&&(t.value=e)}_handleDisabled=(0,ak.zF)(this,tH,(0,aA.H$)(this.#eh,"disabled",e=>null!==e?"":null));_handleAutocomplete=((0,ak.zF)(this,tD),(0,ak.zF)(this,tN,(0,aA.H$)(this.#eh,"autocomplete")));constructor(e){(0,ak.zF)(this,tj),this.#e=e}}),sc={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"},su=(tU=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tG=[(0,aA._y)("input-filter",!0),(0,aA.ZR)("lynxinput")],t$=[(0,aA._y)("send-composing-input",!0)],tV=[(0,aA.ZR)("selection")],(0,ak.G4)(this,null,tG,{kind:"method",name:"_handleEnableInputEvent",static:!1,private:!1,access:{has:e=>"_handleEnableInputEvent"in e,get:e=>e._handleEnableInputEvent},metadata:e},null,tU),(0,ak.G4)(this,null,t$,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,tU),(0,ak.G4)(this,null,tV,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,tU),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#e=(0,ak.zF)(this,tU);#em=!1;#ep=/[^0-9.]|\.(?=.*\.)/g;#eh=(0,aA.Ut)(()=>this.#e.shadowRoot,"#input");#ev=(0,aA.Ut)(()=>this.#e.shadowRoot,"#form");_handleEnableInputEvent(e){let t=this.#eh();e?(t.addEventListener("input",this.#eb,{passive:!0}),t.addEventListener("compositionend",this.#eg,{passive:!0})):(t.removeEventListener("input",this.#eb),t.removeEventListener("compositionend",this.#eg))}_handleSendComposingInput(e){this.#em=null!==e}#ef=e=>{let t=sc[e.type]??e.type;this.#e.dispatchEvent(new CustomEvent(t,{...aM.$,detail:{value:this.#eh().value}}))};#eb=e=>{let t=this.#eh(),l=this.#ey(t.value),i=e.isComposing;t.value=l,(!i||this.#em)&&this.#e.dispatchEvent(new CustomEvent("lynxinput",{...aM.$,detail:{value:l,textLength:l.length,cursor:t.selectionStart,isComposing:i,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#eg=()=>{let e=this.#eh(),t=this.#ey(e.value);e.value=t,this.#em||this.#e.dispatchEvent(new CustomEvent("lynxinput",{...aM.$,detail:{value:t,textLength:t.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#ey(e){let t=e;"number"===this.#e.getAttribute("type")&&(t=t.replace(this.#ep,""));let l=this.#e.getAttribute("input-filter");return l&&(t=t.replace(RegExp(l,"g"),"")),t}_handleEnableSelectionEvent(e){e?this.#eh().addEventListener("select",this.#eE,{passive:!0}):this.#eh().removeEventListener("select",this.#eE)}#eE=()=>{let e=this.#eh();this.#e.dispatchEvent(new CustomEvent("selection",{...aM.$,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eS=e=>{e.target===this.#eh()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#e=e;const t=this.#eh(),l=this.#ev();t.addEventListener("blur",this.#ef,{passive:!0}),t.addEventListener("focus",this.#ef,{passive:!0}),l.addEventListener("submit",this.#ef,{passive:!0}),l.addEventListener("input",this.#eS,{passive:!0})}});tX=[(0,aA.uA)("x-input",[az.O,sd,sh,sr,su],aU)],tZ=[],tY=HTMLElement,class extends tY{static{tB=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tY[Symbol.metadata]??null):void 0;(0,ak.G4)(null,tW={value:tB},tX,{kind:"class",name:tB.name,metadata:e},null,tZ),tB=tW.value,e&&Object.defineProperty(tB,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(tB,tZ)}#e_=(0,aA.Ut)(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,l=this.#e_(),i=l.selectionStart;if(null===i)l.value=t;else{let e=l.value;l.value=e.slice(0,i)+t+e.slice(i)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,l=this.#e_();l.value=e.value,(t=e.index)&&l.setSelectionRange(t,t)}getValue(){let e=this.#e_();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:l}=e,i=this.#e_();1===t&&(l=1);let n=i.selectionStart;if(null===n){let e=i.value;i.value=i.value.substring(0,e.length-l)}else{let e=i.value;i.value=e.slice(0,n-l)+e.slice(n)}}setInputFilter(e){this.#e_().setAttribute("pattern",e.pattern)}select(){let e=this.#e_();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#e_().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#e_().focus(e)}blur(){this.#e_().blur()}connectedCallback(){let e=this.#e_();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}};let sm=(tK=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tq=[(0,aA._y)("events-pass-through",!0)],tJ=[(0,aA._y)("visible",!1)],(0,ak.G4)(this,null,tq,{kind:"method",name:"_handleEventsPassThrough",static:!1,private:!1,access:{has:e=>"_handleEventsPassThrough"in e,get:e=>e._handleEventsPassThrough},metadata:e},null,tK),(0,ak.G4)(this,null,tJ,{kind:"method",name:"_handleVisible",static:!1,private:!1,access:{has:e=>"_handleVisible"in e,get:e=>e._handleVisible},metadata:e},null,tK),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#e=(0,ak.zF)(this,tK);#ew=!!window.HTMLDialogElement;#ex=!1;constructor(e){this.#e=e}#eT=(0,aA.Ut)(()=>this.#e.shadowRoot,"#dialog");_handleEventsPassThrough(e){null!==e?(this.#eT().addEventListener("click",this.#eC,{passive:!1}),this.#e.addEventListener("click",this.#eC,{passive:!1})):(this.#eT().removeEventListener("click",this.#eC),this.#e.removeEventListener("click",this.#eC))}_handleVisible(e){this.#ex=null!==e,this.#ew&&(this.#ex?(this.#eT().showModal(),this.#e.dispatchEvent(new CustomEvent("showoverlay",aM.$))):(this.#eT().close(),this.#e.dispatchEvent(new CustomEvent("dismissoverlay",aM.$))))}#eC=e=>{e.stopPropagation();let t=this.#eT();if(e.target===this.#e||e.target===t){t.close();let{clientX:l,clientY:i}=e,n=document.elementFromPoint(l,i);n?.tagName==="LYNX-VIEW"&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(l,i)??n),n?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#ex&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#ew||(this.#eT().style.display="none")}});t1=[(0,aA.uA)("x-overlay-ng",[az.O,sm],aB)],t4=[],t2=HTMLElement,class extends t2{static{t0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t2[Symbol.metadata]??null):void 0;(0,ak.G4)(null,tQ={value:t0},t1,{kind:"class",name:t0.name,metadata:e},null,t4),t0=tQ.value,e&&Object.defineProperty(t0,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(t0,t4)}get[az.v](){return this.shadowRoot.firstElementChild}};class sp extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sp.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sv{#e;static observedAttributes=[];#eO;constructor(e){this.#e=e}connectedCallback(){if(IntersectionObserver&&!this.#eO){let e=this.#e.parentElement;e&&(this.#eO=new IntersectionObserver(e=>{let t=!1,l=!1;e.forEach(e=>{t=e.intersectionRatio>0,l=e.intersectionRatio>.9}),this.#e.dispatchEvent(new sp(t,l)),l&&this.#e.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#eO.observe(this.#e))}}dispose(){this.#eO&&(this.#eO.disconnect(),this.#eO=void 0)}}t6=[(0,aA.uA)("x-refresh-footer",[a0,az.O,sv])],t9=[],t5=HTMLElement,(class extends t5{static{t3=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t5[Symbol.metadata]??null):void 0;(0,ak.G4)(null,t8={value:t3},t6,{kind:"class",name:t3.name,metadata:e},null,t9),t3=t8.value,e&&Object.defineProperty(t3,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(t3,t9)}connectedCallback(){this.setAttribute("slot","footer")}}),lt=[(0,aA.uA)("x-refresh-header",[a0,az.O,sv])],ll=[],li=HTMLElement,class extends li{static{le=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(li[Symbol.metadata]??null):void 0;(0,ak.G4)(null,t7={value:le},lt,{kind:"class",name:le.name,metadata:e},null,ll),le=t7.value,e&&Object.defineProperty(le,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(le,ll)}connectedCallback(){this.setAttribute("slot","header")}};let sb=(ls=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ln=[(0,aA.ZR)("headeroffset"),(0,aA.ZR)("headershow"),(0,aA.ZR)("footeroffset")],la=[(0,aA.ZR)("startrefresh"),(0,aA.ZR)("headerreleased"),(0,aA.ZR)("startloadmore"),(0,aA.ZR)("footerreleased")],(0,ak.G4)(this,null,ln,{kind:"method",name:"_handleComplexEventEnableAttributes",static:!1,private:!1,access:{has:e=>"_handleComplexEventEnableAttributes"in e,get:e=>e._handleComplexEventEnableAttributes},metadata:e},null,ls),(0,ak.G4)(this,null,la,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,ls),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#e=(0,ak.zF)(this,ls);static observedAttributes=[];#eL=(0,aA.Ut)(()=>this.#e,"x-refresh-view > x-refresh-header:first-of-type");#eI=(0,aA.Ut)(()=>this.#e,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#e=e,this.#e.addEventListener(sp.EventName,this.#eF)}#ek={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};_handleComplexEventEnableAttributes(e,t){this.#ek[t]=e;let{headeroffset:l,headershow:i,footeroffset:n}=this.#ek;l||i||n?this.#eA():this.#ez()}_handleXEnableHeaderOffsetEvent(e,t){this.#ek[t]=e;let{startrefresh:l,headerreleased:i,startloadmore:n,footerreleased:a}=this.#ek;i||a||n||l?this.#eP():this.#eR()}#eM=!1;#eH=!1;#eD=!1;#eN=!1;#eF=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#eM=e.startShowing,this.#eH=e.fullyShowing):(this.#eD=e.startShowing,this.#eN=e.fullyShowing)};#ej=!1;#eP(){this.#ej||(this.#e.addEventListener("touchend",this.#eG),this.#ej=!0)}#eG=()=>{this.#eH?(this.#e.dispatchEvent(new CustomEvent("headerreleased",aM.$)),this.#e.dispatchEvent(new CustomEvent("startrefresh",{...aM.$,detail:{isManual:this.#e._nextRefreshIsManual}})),this.#e._nextRefreshIsManual=!0):("true"===this.#e.getAttribute("enable-auto-loadmore")&&this.#eD||this.#eN)&&(this.#e.dispatchEvent(new CustomEvent("footerreleased",aM.$)),this.#e.dispatchEvent(new CustomEvent("startloadmore",aM.$)))};#eR(){this.#ej&&this.#e.removeEventListener("touchend",this.#eG)}#e$=!1;#eV=!1;#eA(){this.#eV||(this.#e.addEventListener("touchstart",this.#eU),this.#e.addEventListener("touchend",this.#eW),this.#e.addEventListener("touchcancel",this.#eW),this.#e.shadowRoot.querySelector("#container").addEventListener("scroll",this.#m))}#eW=()=>{this.#e$=!1};#eU=()=>{this.#e$=!0};#m=()=>{if(this.#eM&&(this.#ek.headershow||this.#ek.headeroffset)){let e=this.#eL();if(e){let t=parseFloat(getComputedStyle(e).height),l=this.#e.shadowRoot.querySelector("#container").scrollTop;this.#e.dispatchEvent(new CustomEvent("headershow",{...aM.$,detail:{isDragging:this.#e$,offsetPercent:1-l/t}})),this.#e.dispatchEvent(new CustomEvent("headeroffset",{...aM.$,detail:{isDragging:this.#e$,offsetPercent:1-l/t}}))}}else if(this.#eD&&this.#ek.footeroffset){let e=this.#eI();if(e){let t=this.#e.shadowRoot.querySelector("#container").scrollTop,l=parseFloat(getComputedStyle(e).height);this.#e.dispatchEvent(new CustomEvent("footeroffset",{...aM.$,detail:{isDragging:this.#e$,offsetPercent:1-t/l}}))}}};#ez(){this.#eV&&(this.#e.removeEventListener("touchstart",this.#eU),this.#e.removeEventListener("touchend",this.#eW),this.#e.removeEventListener("touchcancel",this.#eW),this.#e.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#m))}dispose(){this.#eR(),this.#ez()}});ld=[(0,aA.uA)("x-refresh-view",[a0,az.O,sb],aX)],lh=[],lc=HTMLElement,class extends lc{static{lr=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lc[Symbol.metadata]??null):void 0;(0,ak.G4)(null,lo={value:lr},ld,{kind:"class",name:lr.name,metadata:e},null,lh),lr=lo.value,e&&Object.defineProperty(lr,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"})}#eB=(0,aA.Ut)(()=>this.shadowRoot,"#container");#eX=(0,aA.Ut)(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#eB(),t=this.#eX();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#eB(),l=this.#eX();e>0?l.scrollTop=e:t.scrollTop=l.offsetTop+e}get scrollHeight(){return this.#eX().scrollHeight}get[aD.l](){return this}static{(0,ak.zF)(lr,lh)}};let sg=(lv=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lu=[(0,aA._y)("src",!0)],lm=[(0,aA._y)("content",!0)],lp=[(0,aA.ZR)("load")],(0,ak.G4)(this,null,lu,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,lv),(0,ak.G4)(this,null,lm,{kind:"method",name:"_handleContent",static:!1,private:!1,access:{has:e=>"_handleContent"in e,get:e=>e._handleContent},metadata:e},null,lv),(0,ak.G4)(this,null,lp,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,lv),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#e=(0,ak.zF)(this,lv);#eZ=null;#es=(0,aA.Ut)(()=>this.#e.shadowRoot,"#img");_handleSrc(e){e?this.#es().src=e:this.#es().src=""}_handleContent(e){if(this.#eZ&&URL.revokeObjectURL(this.#eZ),!e){this.#eZ="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),l=URL.createObjectURL(t);this.#eZ=l,this.#es().src=l}_enableLoadEvent(e){e?this.#es().addEventListener("load",this.#er,{passive:!0}):this.#es().removeEventListener("load",this.#er)}#er=()=>{this.#e.dispatchEvent(new CustomEvent("load",{...aM.$,detail:{width:this.#es().naturalWidth,height:this.#es().naturalHeight}}))};constructor(e){this.#e=e}});lf=[(0,aA.uA)("x-svg",[az.O,sg],'<img part="img" alt="" loading="lazy" id="img" /> ')],ly=[],lE=HTMLElement,(class extends lE{static{lg=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lE[Symbol.metadata]??null):void 0;(0,ak.G4)(null,lb={value:lg},lf,{kind:"class",name:lg.name,metadata:e},null,ly),lg=lb.value,e&&Object.defineProperty(lg,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(lg,ly)}}),lw=[(0,aA.uA)("x-swiper-item",[a0,az.O])],lx=[],lT=HTMLElement,class extends lT{static{l_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lT[Symbol.metadata]??null):void 0;(0,ak.G4)(null,lS={value:l_},lw,{kind:"class",name:l_.name,metadata:e},null,lx),l_=lS.value,e&&Object.defineProperty(l_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(l_,lx)}};let sf=(lL=[],lI=[],lF=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lC=[(0,aA.ZR)("transition")],lO=[(0,aA.ZR)("scrollstart"),(0,aA.ZR)("lynxscrollend"),(0,aA.ZR)("change"),(0,aA.ZR)("change-event-for-indicator")],(0,ak.G4)(this,null,lO,{kind:"method",name:"_enableScrollEventProcessor",static:!1,private:!1,access:{has:e=>"_enableScrollEventProcessor"in e,get:e=>e._enableScrollEventProcessor},metadata:e},null,lL),(0,ak.G4)(null,null,lC,{kind:"field",name:"_handleEnableTransitionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableTransitionEvent"in e,get:e=>e._handleEnableTransitionEvent,set:(e,t)=>{e._handleEnableTransitionEvent=t}},metadata:e},lI,lF),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#e=(0,ak.zF)(this,lL);#eY=0;#eq=0;#e$=!1;#i;#eJ=!1;constructor(e){this.#e=e}#eX=(0,aA.Ut)(()=>this.#e.shadowRoot,"#content").bind(this);_handleEnableTransitionEvent=(0,ak.zF)(this,lI,(0,aA.LB)(this.#eX,"scroll",this.#eK,{passive:!0}));#m(){aD.k||(clearTimeout(this.#i),this.#i=setTimeout(()=>{this.#v()},100)),this.#eJ||(this.#e.dispatchEvent(new CustomEvent("scrollstart",{...aM.$,detail:{current:this.#eY,isDragged:this.#e$}})),this.#eJ=!0);let e=this.#eX(),t=this.#e.isVertical,l=t?e.scrollTop:e.scrollLeft,i=t?e.clientHeight:e.clientWidth,n=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#eq-l)>i/4||l<10||Math.abs(l-n)<=i){let e=this.#e.currentIndex;e!==this.#eY&&(this.#e.dispatchEvent(new CustomEvent("change",{...aM.$,detail:{current:e,isDragged:this.#e$}})),this.#eY=e),this.#eq=l}}#v(){this.#e.dispatchEvent(new CustomEvent("lynxscrollend",{...aM.$,detail:{current:this.#eY}})),this.#eJ=!1}#eQ(){this.#e$=!0}#e0(){this.#e$=!1}#eK(){this.#e.dispatchEvent(new CustomEvent("transition",{...aM.$,detail:{dx:this.#eX().scrollLeft,dy:this.#eX().scrollTop}}))}#e1=((0,ak.zF)(this,lF),[(0,aA.LB)(this.#eX,"scroll",this.#m.bind(this),{passive:!0}),(0,aA.LB)(this.#eX,"touchstart",this.#eQ.bind(this),{passive:!0}),(0,aA.LB)(this.#eX,"touchend",this.#e0.bind(this),{passive:!0}),(0,aA.LB)(this.#eX,"touchcancel",this.#e0.bind(this),{passive:!0}),(0,aA.LB)(this.#eX,"scrollend",this.#v.bind(this),{passive:!0})]);#ek={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};_enableScrollEventProcessor(e,t){this.#ek[t]=e;let{lynxscrollend:l,scrollstart:i,change:n}=this.#ek,a=n||l||i||this.#ek["change-event-for-indicator"];this.#e1.forEach(e=>e(a))}connectedCallback(){this.#eY=parseFloat(this.#e.getAttribute("current")??"0");let e=this.#e.isVertical;this.#eq=e?this.#eX().scrollTop:this.#eX().scrollLeft}}),sy=(lz=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lk=[(0,aA._y)("current",!1)],lA=[(0,aA._y)("interval",!1),(0,aA._y)("autoplay",!1)],(0,ak.G4)(this,null,lk,{kind:"method",name:"_handleCurrentChange",static:!1,private:!1,access:{has:e=>"_handleCurrentChange"in e,get:e=>e._handleCurrentChange},metadata:e},null,lz),(0,ak.G4)(this,null,lA,{kind:"method",name:"_handleAutoplay",static:!1,private:!1,access:{has:e=>"_handleAutoplay"in e,get:e=>e._handleAutoplay},metadata:e},null,lz),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#e=(0,ak.zF)(this,lz);constructor(e){this.#e=e}#e4(){this.#e.currentIndex===this.#e.childElementCount-1?this.#e.circularPlay&&(this.#e.currentIndex=0):this.#e.currentIndex+=1}_handleCurrentChange(e){let t=Number(e);Number.isNaN(t)||(this.#e.currentIndex=t)}#e2;#e8=(()=>{this.#e4()}).bind(this);#e3(e){this.#e6(),this.#e2=setInterval(this.#e8,e)}#e6(){this.#e2&&clearInterval(this.#e2)}_handleAutoplay(){if(null!==this.#e.getAttribute("autoplay")){let e=this.#e.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#e3(t)}}dispose(){this.#e6()}}),sE=(lM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lP=[(0,aA._y)("circular",!1)],lR=[(0,aA._y)("vertical",!0)],(0,ak.G4)(this,null,lP,{kind:"method",name:"_handleCircular",static:!1,private:!1,access:{has:e=>"_handleCircular"in e,get:e=>e._handleCircular},metadata:e},null,lM),(0,ak.G4)(this,null,lR,{kind:"method",name:"_handleVerticalChange",static:!1,private:!1,access:{has:e=>"_handleVerticalChange"in e,get:e=>e._handleVerticalChange},metadata:e},null,lM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#e=(0,ak.zF)(this,lM);#e9=!1;#e5;#e7=0;#eX=(0,aA.Ut)(()=>this.#e.shadowRoot,"#content").bind(this);constructor(e){this.#e=e}#te=(0,aA.Ut)(()=>this.#e.shadowRoot,"#circular-start").bind(this);#tt=(0,aA.Ut)(()=>this.#e.shadowRoot,"#circular-end").bind(this);#tl(e){let t=this.#e.childElementCount;if(t>2){let{current:l,isDragged:i,__isFirstLayout:n}=e.detail;if(0===l||l===t-1||2===l||l===t-2){let e,a=this.#eX(),s=this.#te().assignedElements(),o=this.#tt().assignedElements(),r=this.#e.firstElementChild,d=this.#e.lastElementChild,h=this.#e.snapDistance;if(0===l?(o.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=r):l===t-1?(s.forEach(e=>e.removeAttribute("slot")),r.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),o.forEach(e=>e.removeAttribute("slot")),e=this.#e.children[l]),this.#e9){let t="carousel"===this.#e.getAttribute("mode")?.8*a.clientHeight/2:a.clientHeight/2;this.#e7=e.offsetTop+e.offsetHeight/2-h-t,a.scrollTop=this.#e7}else{let t="carousel"===this.#e.getAttribute("mode")?.8*a.clientWidth/2:a.clientWidth/2;this.#e7=e.offsetLeft+e.offsetWidth/2-h-t,a.scrollLeft=this.#e7}if(!i){let e=this.#e.getAttribute("mode");if(n&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#ti(n?"instant":"smooth")}}}}#ti(e){let t=this.#eX(),l=this.#e.snapDistance;t.scrollBy({top:this.#e9?l:0,left:this.#e9?0:l,behavior:e??"smooth"})}#e1=[(0,aA.LB)(()=>this.#e,"change",this.#tl.bind(this),{passive:!0}),(0,aA.LB)(()=>this.#e,"touchmove",this.#tn.bind(this),{passive:!1}),(0,aA.LB)(()=>this.#e,"touchend",this.#ta.bind(this),{passive:!1}),(0,aA.LB)(()=>this.#e,"touchcancel",this.#ta.bind(this),{passive:!1})];_handleCircular(e){this.#e1.forEach(t=>t(null!=e)),null!==e&&this.#tl({detail:{current:this.#e.currentIndex,isDragged:!1,__isFirstLayout:!0}})}#tn(e){let t=e.touches.item(0);if(t){let e=this.#e9?t.pageY:t.pageX;if(void 0!==this.#e5){this.#ts();let t=this.#e5-e;this.#e7+=t}this.#e5=e}}#ta(e){this.#to(),this.#ti(),this.#e5=void 0}_handleVerticalChange(e){this.#e9=null!==e}#tr;#ts(){if(!this.#tr){let e=this.#eX();this.#e7=this.#e9?e.scrollTop:e.scrollLeft,this.#tr=setInterval(()=>{this.#e9?e.scrollTop=this.#e7:e.scrollLeft=this.#e7},10)}}#to(){this.#tr&&(clearInterval(this.#tr),this.#tr=void 0)}dispose(){this.#to()}}),sS=(l$=[],lV=[],lU=[],lW=[],lB=[],lX=[],lZ=[],lY=[],lq=[],lJ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lH=[(0,aA._y)("indicator-color",!0)],lD=[(0,aA._y)("indicator-active-color",!0)],lN=[(0,aA._y)("page-margin",!0)],lj=[(0,aA._y)("previous-margin",!0)],lG=[(0,aA._y)("next-margin",!0)],(0,ak.G4)(null,null,lH,{kind:"field",name:"_handleIndicatorColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorColor"in e,get:e=>e._handleIndicatorColor,set:(e,t)=>{e._handleIndicatorColor=t}},metadata:e},l$,lV),(0,ak.G4)(null,null,lD,{kind:"field",name:"_handleIndicatorActiveColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorActiveColor"in e,get:e=>e._handleIndicatorActiveColor,set:(e,t)=>{e._handleIndicatorActiveColor=t}},metadata:e},lU,lW),(0,ak.G4)(null,null,lN,{kind:"field",name:"_handlePageMargin",static:!1,private:!1,access:{has:e=>"_handlePageMargin"in e,get:e=>e._handlePageMargin,set:(e,t)=>{e._handlePageMargin=t}},metadata:e},lB,lX),(0,ak.G4)(null,null,lj,{kind:"field",name:"_handlePreviousMargin",static:!1,private:!1,access:{has:e=>"_handlePreviousMargin"in e,get:e=>e._handlePreviousMargin,set:(e,t)=>{e._handlePreviousMargin=t}},metadata:e},lZ,lY),(0,ak.G4)(null,null,lG,{kind:"field",name:"_handleNextMargin",static:!1,private:!1,access:{has:e=>"_handleNextMargin"in e,get:e=>e._handleNextMargin,set:(e,t)=>{e._handleNextMargin=t}},metadata:e},lq,lJ),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"];#e;#td=0;#th=(0,aA.Ut)(()=>this.#e.shadowRoot,"#indicator-container");#tc=(0,aA.Ut)(()=>this.#e.shadowRoot,"#indicator-style");#tu;constructor(e){(0,ak.zF)(this,lJ),this.#e=e}_handleIndicatorColor=(0,ak.zF)(this,l$,(0,aA._8)(this.#th,"--indicator-color",void 0,!0));_handleIndicatorActiveColor=((0,ak.zF)(this,lV),(0,ak.zF)(this,lU,(0,aA._8)(this.#th,"--indicator-active-color",void 0,!0)));_handlePageMargin=((0,ak.zF)(this,lW),(0,ak.zF)(this,lB,(0,aA._8)(this.#th,"--page-margin",void 0,!0)));_handlePreviousMargin=((0,ak.zF)(this,lX),(0,ak.zF)(this,lZ,(0,aA._8)(this.#th,"--previous-margin",void 0,!0)));_handleNextMargin=((0,ak.zF)(this,lY),(0,ak.zF)(this,lq,(0,aA._8)(this.#th,"--next-margin",void 0,!0)));#tm(){let e=this.#e.childElementCount;if(e!==this.#td){let t="";for(let l=0;l<e;l++)t+=`<div style="animation-timeline:--x-swiper-item-${l};" part="indicator-item"></div>`;if(this.#th().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#e.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#tc().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#td=e}connectedCallback(){if(this.#tm(),this.#tu=new MutationObserver(this.#tm.bind(this)),this.#tu.observe(this.#e,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),!CSS.supports("timeline-scope","--a, --b")){this.#e.addEventListener("change",(({detail:e})=>{let t=e.current,l=this.#e.childElementCount,i=this.#th();for(let e=0;e<l;e++){let l=i.children[e];l&&(e===t?l.style.setProperty("background-color","var(--indicator-active-color)","important"):l.style.removeProperty("background-color"))}}).bind(this));let e=parseFloat(this.#e.getAttribute("current")??"0");this.#th().children[e]?.style.setProperty("background-color","var(--indicator-active-color)","important")}}dispose(){this.#tu?.disconnect(),this.#tu=void 0}});l0=[(0,aA.uA)("x-swiper",[az.O,sS,sf,sE,sy],aZ)],l1=[],l4=HTMLElement,class extends l4{static{lQ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l4[Symbol.metadata]??null):void 0;(0,ak.G4)(null,lK={value:lQ},l0,{kind:"class",name:lQ.name,metadata:e},null,l1),lQ=lK.value,e&&Object.defineProperty(lQ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#eX=(0,aA.Ut)(()=>this.shadowRoot,"#content").bind(this);#tp(){let e=0,t=Number.MAX_SAFE_INTEGER,l=0;if(this.childElementCount>0){let i=this.#eX(),n=this.isVertical,a=this.childElementCount,s=n?i.scrollTop:i.scrollLeft,o=n?i.clientHeight:i.clientWidth,r=n?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*o/2:o/2);for(let i=0;i<a;i++){let a=this.children[i];if(a){let s=(n?a.offsetTop:a.offsetLeft)+r/2-d,o=Math.abs(s);o<t&&(e=i,t=o,l=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:l}}get currentIndex(){return this.#tp().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#tv(e,t?"smooth":"instant")}#tv(e,t){let l=this.children.item(e);if(l){let e=this.isVertical,i=0;i="flat-coverflow"===this.getAttribute("mode")?e?l.offsetTop-l.offsetHeight/3:l.offsetLeft-l.offsetWidth/3:e?l.offsetTop:l.offsetLeft,this.#eX().scrollTo({left:e?0:i,top:e?i:0,behavior:t})}}get snapDistance(){return this.#tp().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:l=!0}=e[0];if("number"==typeof t)return void this.#tv(t,l?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#tv(Number(e),"instant")}get[aD.l](){return this}static{(0,ak.zF)(lQ,l1)}};let s_=(l8=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l2=[(0,aA._y)("src",!0)],(0,ak.G4)(this,null,l2,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,l8),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#e=(0,ak.zF)(this,l8);constructor(e){this.#e=e}#tb=(0,aA.Ut)(()=>this.#e.shadowRoot,"#img");_handleSrc(e){e?this.#tb().setAttribute("src",e):this.#tb().removeAttribute("src")}});l9=[(0,aA.uA)("inline-image",[s_],aV({}))],l5=[],l7=HTMLElement,(class extends l7{static{l6=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l7[Symbol.metadata]??null):void 0;(0,ak.G4)(null,l3={value:l6},l9,{kind:"class",name:l6.name,metadata:e},null,l5),l6=l3.value,e&&Object.defineProperty(l6,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(l6,l5)}}),il=[(0,aA.uA)("inline-text",[])],ii=[],ia=HTMLElement,(class extends ia{static{it=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ia[Symbol.metadata]??null):void 0;(0,ak.G4)(null,ie={value:it},il,{kind:"class",name:it.name,metadata:e},null,ii),it=ie.value,e&&Object.defineProperty(it,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(it,ii)}}),ir=[(0,aA.uA)("inline-truncation",[])],id=[],ih=HTMLElement,aI=class extends ih{static{io=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ih[Symbol.metadata]??null):void 0;(0,ak.G4)(null,is={value:io},ir,{kind:"class",name:io.name,metadata:e},null,id),aI=io=is.value,e&&Object.defineProperty(io,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(aI.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(aI.XEnableCustomTruncation)}static{(0,ak.zF)(io,id)}},aI=io;let sw=(iu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ic=[(0,aA._y)("text",!0)],(0,ak.G4)(this,null,ic,{kind:"method",name:"_handleText",static:!1,private:!1,access:{has:e=>"_handleText"in e,get:e=>e._handleText},metadata:e},null,iu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#e=(0,ak.zF)(this,iu);#tg;constructor(e){this.#e=e}_handleText(e){this.#tg?.remove(),e&&(this.#tg=new Text(e),this.#e.append(this.#tg))}});iv=[(0,aA.uA)("raw-text",[sw])],ib=[],ig=HTMLElement,class extends ig{static{ip=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ig[Symbol.metadata]??null):void 0;(0,ak.G4)(null,im={value:ip},iv,{kind:"class",name:ip.name,metadata:e},null,ib),ip=im.value,e&&Object.defineProperty(ip,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(ip,ib)}};let sx=(iS=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iy=[(0,aA._y)("text-maxlength",!0),(0,aA._y)("text-maxline",!0),(0,aA._y)("tail-color-convert",!0)],iE=[(0,aA.ZR)("layout")],(0,ak.G4)(this,null,iy,{kind:"method",name:"_handleAttributeChange",static:!1,private:!1,access:{has:e=>"_handleAttributeChange"in e,get:e=>e._handleAttributeChange},metadata:e},null,iS),(0,ak.G4)(this,null,iE,{kind:"method",name:"_handleEnableLayoutEvent",static:!1,private:!1,access:{has:e=>"_handleEnableLayoutEvent"in e,get:e=>e._handleEnableLayoutEvent},metadata:e},null,iS),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"];#tf=((0,ak.zF)(this,iS),!1);#ty=!1;#tE=new Map;#tS;#z;#t_;#tw;#tx=!1;#tT=NaN;#tC=NaN;#tO=!0;#tL=!1;get #tI(){return!this.#tF&&!this.#tO}get #tF(){return!!this.#tk()}#tk(){return this.#e.querySelector(":scope > inline-truncation")}get #tA(){return!isNaN(this.#tC)&&(this.#tF||!this.#tO)}#e;constructor(e){this.#e=e}#tz=(0,aA.Ut)(()=>this.#e.shadowRoot,"#inner-box");#tP(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#tE.delete(e)}),"characterData"===e.type&&void 0!==this.#tE.get(e.target)&&this.#tE.set(e.target,e.target.data)})}#tR(){for(let[t,l]of this.#tE)t.nodeType===Node.TEXT_NODE?void 0!==l&&(t.data=l):t.removeAttribute(e.exceedMathLengthAttribute);this.#e.removeAttribute(e.exceedMathLengthAttribute),this.#e.removeAttribute(e.showInlineTruncation)}#tM(e){let t=[],l=e;for(;l=l.nextSibling;)(l.nodeType===Node.TEXT_NODE||l.nodeType===Node.ELEMENT_NODE)&&t.push(l);return t}#tH(){!this.#ty||this.#e.matches("x-text>x-text")||this.#tf||(this.#tf=!0,(0,aA.JS)(async()=>{await this.#tD(),this.#tN(),this.#tf=!1}))}async #tD(){if(this.#t_?.parentElement?.removeChild(this.#t_),this.#tR(),!this.#tA&&isNaN(this.#tT))return;await document.fonts.ready;let t=this.#tz().getBoundingClientRect();this.#tw=new sT(this.#e,t);let l=this.#tw,i=(isNaN(this.#tT)?void 0:l.getNodeInfoByCharIndex(this.#tT))?this.#tT:1/0,n=this.#tA&&l.getLineInfo(this.#tC)?l.getLineInfo(this.#tC-1):void 0,a=1/0,s=3;if(n){let{start:i,end:o}=n,r=o-i;if(this.#tF){this.#e.setAttribute(e.showInlineTruncation,"");let n=this.#tk().getBoundingClientRect(),s=t.width,r=n.width;if(s>r){a=o-1;let e=document.createRange(),t=l.getNodeInfoByCharIndex(a),i=o-t.start;for(e.setEnd(t.node,i),e.setStart(t.node,i);e.getBoundingClientRect().width<r&&(a-=1)&&(t=l.getNodeInfoByCharIndex(a));)e.setStart(t.node,a-t.start)}else a=i,this.#e.removeAttribute(e.showInlineTruncation)}else r<3?(s=r,a=i):a=o-3}let o=Math.min(i,a);if(o<1/0){let t=l.getNodeInfoByCharIndex(o);if(t){let i=o-t.start,n=t.node,a=[];n.nodeType===Node.TEXT_NODE?(this.#tE.set(n,n.data),n.data=n.data.substring(0,i)):a.push(n),a=a.concat(this.#tM(n));let r=n.parentElement;for(;r!==this.#e;)a=a.concat(this.#tM(r)),r=r.parentElement;if(a.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#tE.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#tE.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#tI){let e=(0===i?l.nodelist.at(t.nodeIndex-1)?.parentElement:n.parentElement)??n.parentElement;this.#t_=new Text(Array(s).fill(".").join("")),e.append(this.#t_)}this.#e.setAttribute(e.exceedMathLengthAttribute,"")}this.#tj(o)}}#tG=e=>{this.#tP(e),this.#tH()};#t$=()=>{if(this.#tx){this.#tx=!1;return}this.#tH()};#tN(){this.#ty&&((this.#tT||this.#tC)&&!this.#tS&&(this.#tS=new MutationObserver(this.#tG),this.#tS.observe(this.#e,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#tC&&!this.#z&&(this.#z=new ResizeObserver(this.#t$),this.#tx=!0,this.#z.observe(this.#tz(),{box:"content-box"})))}#tV(){this.#tS?.disconnect(),this.#tS=void 0,this.#z?.disconnect(),this.#z=void 0}_handleAttributeChange(){this.#tT=parseFloat(this.#e.getAttribute("text-maxlength")??""),this.#tC=parseFloat(this.#e.getAttribute("text-maxline")??""),this.#tO="false"!==this.#e.getAttribute("tail-color-convert"),this.#tT<0&&(this.#tT=NaN),this.#tC<1&&(this.#tC=NaN),isNaN(this.#tC)?this.#tz().style.removeProperty("-webkit-line-clamp"):this.#tz().style.webkitLineClamp=this.#tC.toString(),this.#tH()}_handleEnableLayoutEvent(e){this.#tL=e}#tj(e){if(!this.#tL)return;let t=new Proxy(this,{get:(t,l)=>"lineCount"===l?(t.#tw||(t.#tw=new sT(t.#e,t.#e.getBoundingClientRect())),t.#tw.getLineCount()):"lines"===l?new Proxy(t,{get(t,l){let i=parseFloat(l.toString());if(!isNaN(i)){t.#tw||(t.#tw=new sT(t.#e,t.#e.getBoundingClientRect()));let l=t.#tw.getLineInfo(i);if(l)return new Proxy(l,{get(t,l){switch(l){case"start":case"end":return t[l];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#e.dispatchEvent(new CustomEvent("layout",{...aM.$,detail:t}))}dispose(){this.#tV()}connectedCallback(){this.#ty=!0,this._handleEnableLayoutEvent(this.#tL),this._handleAttributeChange(),(0,aA.JS)(()=>{this.#tj()})}});class sT{#tU=[{start:0}];#tW=[];#tB=[];#e;#tX;nodelist;constructor(e,t){this.#e=e,this.nodelist=new sC(this.#e),this.#tX=t}#tZ(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:l}=e,i=e.node,n=document.createRange();n.selectNode(i);for(let e=0;e<i.data.length;e++){n.setEnd(i,e);let a=n.getClientRects().item(l);if(a&&a.right===t.right)return e}return i.data.length}}#tY(e){if(this.#tW[e])return;let{left:t}=this.#tX,l=this.#tW[this.#tW.length-1],i=l?.[l.length-1],n=i?.nodeIndex?i?.nodeIndex+1:0;for(let l=n,i;(i=this.#tq(l))&&e>=this.#tW.length;l++){let e,{node:l}=i;if(l.nodeType===Node.ELEMENT_NODE)e=l.getClientRects();else{let t=document.createRange();t.selectNode(l),e=t.getClientRects()}if(e.length>0){let l=this.#tW[this.#tW.length-1],n=e[0];if(.2>Math.abs(n.left-t)||!l?this.#tW.push([{...i,rect:n,rectIndex:0}]):l.push({...i,rect:n,rectIndex:0}),e.length>1)for(let l=1;l<e.length;l++){let a=e[l];(a.left!==n.left||a.bottom!==n.bottom)&&(.2>Math.abs(a.left-t)?this.#tW.push([{...i,rect:a,rectIndex:l}]):this.#tW[this.#tW.length-1].push({...i,rect:a,rectIndex:l}))}}}}getLineCount(){return this.#tY(1/0),this.#tW.length}getLineInfo(e){if(this.#tY(e+1),e<this.#tW.length){let t=e>0?this.#tU[e-1]??{}:void 0,l=this.#tU[e]??{},i=e<this.#tW.length-1?this.#tU[e+1]??{}:void 0;if(void 0===l.start){let i=this.#tW[e-1],n=i[i.length-1],a=this.#tZ(n),s=n.start+a;t&&(t.end=s),l.start=s+1}if(void 0===l.end){let t=this.#tW[e],n=t[t.length-1];if(e===this.#tW.length-1){let e=n.node.nodeType===Node.TEXT_NODE?n.node.data.length:1;l.end=n.start+e}else{let e=this.#tZ(n);l.end=n.start+e,i.start=l.end+1}}return l}}#tq(e){let t=this.#tB.length-1,l=this.#tB[t],i=l?l.start+l.length:0;for(let t=this.#tB.length,l;(l=this.nodelist.at(t))&&e>=this.#tB.length;t++){let e=l.nodeType===Node.ELEMENT_NODE?1:l.data.length,n={node:l,length:e,start:i,nodeIndex:t};this.#tB.push(n)}return this.#tB[e]}getNodeInfoByCharIndex(e){let t,l=0,i=this.#tB.length-1;for(;l<=i;){let n=Math.floor((l+i)/2),a=this.#tB[n],s=a.node,o=s.nodeType===Node.TEXT_NODE?s.data.length:1,r=a.start;if(e>=r&&e<r+o){t=a;break}e<r?i=n-1:l=n+1}if(t)return t;for(let t=this.#tB.length,l;l=this.#tq(t);t++)if(e<l.start+l.length)return l}}class sC{#tJ=[];#tK;constructor(e){this.#tK=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.#tJ[e]||this.#tQ(e),this.#tJ[e]}#tQ(e){let t=null;for(;e>=this.#tJ.length&&(t=this.#tK.nextNode());){this.#tJ.push(t);break}}}ix=[(0,aA.uA)("x-text",[az.O,sx,sw],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],iT=[],iC=HTMLElement,class extends iC{static{iw=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iC[Symbol.metadata]??null):void 0;(0,ak.G4)(null,i_={value:iw},ix,{kind:"class",name:iw.name,metadata:e},null,iT),iw=i_.value,e&&Object.defineProperty(iw,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(aj.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[az.v]=this;static{(0,ak.zF)(iw,iT)}};let sO=(iA=[],iz=[],iP=[],iR=[],iM=[],iH=[],iD=[],iN=[],ij=[],iG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iO=[(0,aA._y)("placeholder-color",!0)],iL=[(0,aA._y)("placeholder-font-size",!0)],iI=[(0,aA._y)("placeholder-font-weight",!0)],iF=[(0,aA._y)("placeholder-font-family",!0)],ik=[(0,aA._y)("placeholder",!0)],(0,ak.G4)(null,null,iO,{kind:"field",name:"_updatePlaceholderColor",static:!1,private:!1,access:{has:e=>"_updatePlaceholderColor"in e,get:e=>e._updatePlaceholderColor,set:(e,t)=>{e._updatePlaceholderColor=t}},metadata:e},iA,iz),(0,ak.G4)(null,null,iL,{kind:"field",name:"_updatePlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontSize"in e,get:e=>e._updatePlaceholderFontSize,set:(e,t)=>{e._updatePlaceholderFontSize=t}},metadata:e},iP,iR),(0,ak.G4)(null,null,iI,{kind:"field",name:"_updatePlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontWeight"in e,get:e=>e._updatePlaceholderFontWeight,set:(e,t)=>{e._updatePlaceholderFontWeight=t}},metadata:e},iM,iH),(0,ak.G4)(null,null,iF,{kind:"field",name:"_updatePlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontFamily"in e,get:e=>e._updatePlaceholderFontFamily,set:(e,t)=>{e._updatePlaceholderFontFamily=t}},metadata:e},iD,iN),(0,ak.G4)(null,null,ik,{kind:"field",name:"_handlePlaceholder",static:!1,private:!1,access:{has:e=>"_handlePlaceholder"in e,get:e=>e._handlePlaceholder,set:(e,t)=>{e._handlePlaceholder=t}},metadata:e},ij,iG),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"];#t0=(0,aA.Ut)(()=>this.#e.shadowRoot,"#textarea");_updatePlaceholderColor=(0,ak.zF)(this,iA,(0,aA._8)(this.#t0,"--placeholder-color",void 0,!0));_updatePlaceholderFontSize=((0,ak.zF)(this,iz),(0,ak.zF)(this,iP,(0,aA._8)(this.#t0,"--placeholder-font-size",void 0,!0)));_updatePlaceholderFontWeight=((0,ak.zF)(this,iR),(0,ak.zF)(this,iM,(0,aA._8)(this.#t0,"--placeholder-font-weight",void 0,!0)));_updatePlaceholderFontFamily=((0,ak.zF)(this,iH),(0,ak.zF)(this,iD,(0,aA._8)(this.#t0,"--placeholder-font-family",void 0,!0)));_handlePlaceholder=((0,ak.zF)(this,iN),(0,ak.zF)(this,ij,(0,aA.H$)(this.#t0,"placeholder")));#e=(0,ak.zF)(this,iG);constructor(e){this.#e=e}}),sL=(iX=[],iZ=[],iY=[],iq=[],iJ=[],iK=[],iQ=[],i0=[],i1=[],i4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i$=[(0,aA._y)("confirm-type",!0)],iV=[(0,aA._y)("maxlength",!0)],iU=[(0,aA._y)("readonly",!0)],iW=[(0,aA._y)("ios-spell-check",!0)],iB=[(0,aA._y)("show-soft-input-onfocus",!0)],(0,ak.G4)(null,null,i$,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},iX,iZ),(0,ak.G4)(null,null,iV,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},iY,iq),(0,ak.G4)(null,null,iU,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},iJ,iK),(0,ak.G4)(null,null,iW,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},iQ,i0),(0,ak.G4)(null,null,iB,{kind:"field",name:"_handleShowSoftInputOnfocus",static:!1,private:!1,access:{has:e=>"_handleShowSoftInputOnfocus"in e,get:e=>e._handleShowSoftInputOnfocus,set:(e,t)=>{e._handleShowSoftInputOnfocus=t}},metadata:e},i1,i4),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"];#e;#t1=(0,aA.Ut)(()=>this.#e.shadowRoot,"#textarea");_handlerConfirmType=(0,ak.zF)(this,iX,(0,aA.H$)(this.#t1,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=((0,ak.zF)(this,iZ),(0,ak.zF)(this,iY,(0,aA.H$)(this.#t1,"maxlength",e=>null===e?"140":e)));_handleReadonly=((0,ak.zF)(this,iq),(0,ak.zF)(this,iJ,(0,aA.H$)(this.#t1,"readonly",e=>null!==e?"":null)));_handleSpellCheck=((0,ak.zF)(this,iK),(0,ak.zF)(this,iQ,(0,aA.H$)(this.#t1,"spellcheck",e=>null===e?"false":"true")));_handleShowSoftInputOnfocus=((0,ak.zF)(this,i0),(0,ak.zF)(this,i1,(0,aA.H$)(this.#t1,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){(0,ak.zF)(this,i4),this.#e=e}}),sI=(i5=[],i7=[],ne=[],nt=[],nl=[],ni=[],nn=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i2=[(0,aA._y)("confirm-enter",!0)],i8=[(0,aA._y)("disabled",!0)],i3=[(0,aA._y)("max-height",!0)],i6=[(0,aA._y)("min-height",!0)],i9=[(0,aA._y)("value",!1)],(0,ak.G4)(this,null,i2,{kind:"method",name:"_handleConfirmEnter",static:!1,private:!1,access:{has:e=>"_handleConfirmEnter"in e,get:e=>e._handleConfirmEnter},metadata:e},null,i5),(0,ak.G4)(this,null,i9,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,i5),(0,ak.G4)(null,null,i8,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},i7,ne),(0,ak.G4)(null,null,i3,{kind:"field",name:"_handleMaxHeight",static:!1,private:!1,access:{has:e=>"_handleMaxHeight"in e,get:e=>e._handleMaxHeight,set:(e,t)=>{e._handleMaxHeight=t}},metadata:e},nt,nl),(0,ak.G4)(null,null,i6,{kind:"field",name:"_handleMinHeight",static:!1,private:!1,access:{has:e=>"_handleMinHeight"in e,get:e=>e._handleMinHeight,set:(e,t)=>{e._handleMinHeight=t}},metadata:e},ni,nn),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#e=(0,ak.zF)(this,i5);#t1=(0,aA.Ut)(()=>this.#e.shadowRoot,"#textarea");#ev=(0,aA.Ut)(()=>this.#e.shadowRoot,"#form");#t4=!1;_handleConfirmEnter(e){this.#t4=null!==e}_handleDisabled=(0,ak.zF)(this,i7,(0,aA.H$)(this.#t1,"disabled",e=>null!==e?"":null));_handleMaxHeight=((0,ak.zF)(this,ne),(0,ak.zF)(this,nt,(0,aA._8)(this.#t1,"max-height")));_handleMinHeight=((0,ak.zF)(this,nl),(0,ak.zF)(this,ni,(0,aA._8)(this.#t1,"min-height")));_handleValue(e){if(e){let t=parseFloat(this.#e.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#t1();t.value!==e&&(t.value=e)}#t2=((0,ak.zF)(this,nn),e=>{this.#t4&&"Enter"===e.key&&this.#ev().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#e=e,this.#t1().addEventListener("keyup",this.#t2)}}),sF=(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[(0,aA._y)("input-filter",!0),(0,aA.ZR)("lynxinput")],ns=[(0,aA._y)("send-composing-input",!0)],no=[(0,aA.ZR)("selection")],(0,ak.G4)(this,null,na,{kind:"method",name:"_handleEnableConfirmEvent",static:!1,private:!1,access:{has:e=>"_handleEnableConfirmEvent"in e,get:e=>e._handleEnableConfirmEvent},metadata:e},null,nr),(0,ak.G4)(this,null,ns,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,nr),(0,ak.G4)(this,null,no,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#e=(0,ak.zF)(this,nr);#em=!1;#t1=(0,aA.Ut)(()=>this.#e.shadowRoot,"#textarea");#ev=(0,aA.Ut)(()=>this.#e.shadowRoot,"#form");_handleEnableConfirmEvent(e){let t=this.#t1();e?(t.addEventListener("input",this.#eb,{passive:!0}),t.addEventListener("compositionend",this.#eg,{passive:!0})):(t.removeEventListener("input",this.#eb),t.removeEventListener("compositionend",this.#eg))}_handleSendComposingInput(e){this.#em=null!==e}#ef=e=>{let t=sc[e.type]??e.type;this.#e.dispatchEvent(new CustomEvent(t,{...aM.$,detail:{value:this.#t1().value}}))};#eb=e=>{let t=this.#t1(),l=this.#e.getAttribute("input-filter"),i=l?t.value.replace(RegExp(l,"g"),""):t.value,n=e.isComposing;t.value=i,(!n||this.#em)&&this.#e.dispatchEvent(new CustomEvent("lynxinput",{...aM.$,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:n,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#eg=()=>{let e=this.#t1(),t=this.#e.getAttribute("input-filter"),l=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=l,this.#em||this.#e.dispatchEvent(new CustomEvent("lynxinput",{...aM.$,detail:{value:l,textLength:l.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#t1().addEventListener("select",this.#eE,{passive:!0}):this.#t1().removeEventListener("select",this.#eE)}#eE=()=>{let e=this.#t1();this.#e.dispatchEvent(new CustomEvent("selection",{...aM.$,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eS=e=>{e.target===this.#t1()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#e=e;const t=this.#t1(),l=this.#ev();t.addEventListener("blur",this.#ef,{passive:!0}),t.addEventListener("focus",this.#ef,{passive:!0}),l.addEventListener("submit",this.#ef,{passive:!0}),l.addEventListener("input",this.#eS,{passive:!0})}});nc=[(0,aA.uA)("x-textarea",[az.O,sO,sL,sI,sF],aY)],nu=[],nm=HTMLElement,(class extends nm{static{nh=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nm[Symbol.metadata]??null):void 0;(0,ak.G4)(null,nd={value:nh},nc,{kind:"class",name:nh.name,metadata:e},null,nu),nh=nd.value,e&&Object.defineProperty(nh,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(nh,nu)}#t0=(0,aA.Ut)(()=>this.shadowRoot,"#textarea");get value(){return this.#t0().value}set value(e){this.#t0().value=e}addText(e){let{text:t}=e,l=this.#t0(),i=l.selectionStart;if(null===i)l.value=t;else{let e=l.value;l.value=e.slice(0,i)+t+e.slice(i)}}setValue(e){let t,l=this.#t0();l.value=e.value,(t=e.index)&&l.setSelectionRange(t,t)}getValue(){let e=this.#t0();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:l}=e,i=this.#t0();1===t&&(l=1);let n=i.selectionStart;if(null===n){let e=i.value;i.value=i.value.substring(0,e.length-l)}else{let e=i.value;i.value=e.slice(0,n-l)+e.slice(n)}}select(){let e=this.#t0();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#t0().setSelectionRange(e.selectionStart,e.selectionEnd)}}),nb=[(0,aA.uA)("x-view",[a0,az.O])],ng=[],nf=HTMLElement,class extends nf{static{nv=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nf[Symbol.metadata]??null):void 0;(0,ak.G4)(null,np={value:nv},nb,{kind:"class",name:nv.name,metadata:e},null,ng),nv=np.value,e&&Object.defineProperty(nv,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(nv,ng)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aj.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[az.v]=this};let sk=(nE=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ny=[(0,aA._y)("blur-radius",!0)],(0,ak.G4)(this,null,ny,{kind:"method",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius},metadata:e},null,nE),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#e=(0,ak.zF)(this,nE);#t8=(0,aA.Ut)(()=>this.#e.shadowRoot,"#dynamic-style");_handleBlurRadius(e){e?(e=`blur(${parseFloat(e)}px)`,this.#t8().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#t8().innerHTML=""}constructor(e){this.#e=e}});nw=[(0,aA.uA)("x-blur-view",[az.O,sk],'<style id="dynamic-style"></style><slot></slot>')],nx=[],nT=HTMLElement,class extends nT{static{n_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nT[Symbol.metadata]??null):void 0;(0,ak.G4)(null,nS={value:n_},nw,{kind:"class",name:n_.name,metadata:e},null,nx),n_=nS.value,e&&Object.defineProperty(n_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(n_,nx)}};let sA=(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nC=[(0,aA.ZR)("change")],nO=[(0,aA.ZR)("willchange")],nL=[(0,aA.ZR)("offsetchange")],(0,ak.G4)(this,null,nC,{kind:"method",name:"_enableChangeEvent",static:!1,private:!1,access:{has:e=>"_enableChangeEvent"in e,get:e=>e._enableChangeEvent},metadata:e},null,nI),(0,ak.G4)(this,null,nO,{kind:"method",name:"_enableWillChangeEvent",static:!1,private:!1,access:{has:e=>"_enableWillChangeEvent"in e,get:e=>e._enableWillChangeEvent},metadata:e},null,nI),(0,ak.G4)(this,null,nL,{kind:"method",name:"_enableOffsetChangeEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetChangeEvent"in e,get:e=>e._enableOffsetChangeEvent},metadata:e},null,nI),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#e=(0,ak.zF)(this,nI);#t3=!1;#t6=!1;#t9=0;#i;constructor(e){this.#e=e}#s=(0,aA.Ut)(()=>this.#e.shadowRoot,"#content");#t5=()=>{if(!this.#t6)return;let e=this.#s(),t=this.#e.clientWidth,l=e.scrollLeft;this.#t7&&!aD.k&&(clearTimeout(this.#i),this.#i=setTimeout(()=>{this.#le()},100)),this.#e.dispatchEvent(new CustomEvent("offsetchange",{...aM.$,detail:{offset:l/t}}))};#le=()=>{if(this.#t6){let e=this.#s(),t=this.#e.clientWidth,l=Math.floor(e.scrollLeft/t);l!==this.#t9&&(this.#e.dispatchEvent(new CustomEvent("change",{...aM.$,detail:{index:l,isDragged:this.#t3}})),this.#t9=l)}};#lt=()=>{this.#t3=!0};#ll=()=>{if(this.#t3=!1,this.#li){let e=this.#s(),t=this.#e.clientWidth;if(t>0){let l=Math.round(e.scrollLeft/t);l=Math.max(0,Math.min(l,this.#e.children.length-1)),this.#e.dispatchEvent(new CustomEvent("willchange",{...aM.$,detail:{index:l}}))}}};#t7=!1;_enableChangeEvent(e){this.#t7=e,this.#ln()}#li=!1;_enableWillChangeEvent(e){this.#li=e}#la=!1;_enableOffsetChangeEvent(e){this.#la=e,this.#ln()}#ln(){let e=this.#s();this.#la||this.#t7?e.addEventListener("scroll",this.#t5,{passive:!0}):e.removeEventListener("scroll",this.#t5),aD.k&&this.#t7?e.addEventListener("scrollend",this.#le,{passive:!0}):e.removeEventListener("scrollend",this.#le)}connectedCallback(){this.#t6=!0;let e=this.#s();this.#e.addEventListener("touchstart",this.#lt,{passive:!0}),e.addEventListener("touchend",this.#ll,{passive:!0}),e.addEventListener("touchcancel",this.#ll,{passive:!0})}dispose(){let e=this.#s();e.removeEventListener("scroll",this.#t5),e.removeEventListener("scrollend",this.#le)}});nA=[(0,aA.uA)("x-viewpager-ng",[a0,az.O,sA],aq)],nz=[],nP=HTMLElement,(class extends nP{static{nk=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nP[Symbol.metadata]??null):void 0;(0,ak.G4)(null,nF={value:nk},nA,{kind:"class",name:nk.name,metadata:e},null,nz),nk=nF.value,e&&Object.defineProperty(nk,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:l}=e;void 0===l&&(l=!0);let i=this.shadowRoot.children.item(2),n=i.clientWidth*t;i.scrollTo({left:n,behavior:l?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),l=this.shadowRoot.children.item(2),i=()=>{0===l.clientWidth?requestAnimationFrame(i):this.selectTab({index:t,smooth:!1})};(0,aA.JS)(i)}}get[aD.l](){return this}static{(0,ak.zF)(nk,nz)}}),nH=[(0,aA.uA)("x-viewpager-item-ng",[a0,az.O])],nD=[],nN=HTMLElement,class extends nN{static{nM=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nN[Symbol.metadata]??null):void 0;(0,ak.G4)(null,nR={value:nM},nH,{kind:"class",name:nM.name,metadata:e},null,nD),nM=nR.value,e&&Object.defineProperty(nM,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(nM,nD)}};let sz=(nG=[],n$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nj=[(0,aA._y)("estimated-main-axis-size-px",!0)],(0,ak.G4)(null,null,nj,{kind:"field",name:"_handlerEstimatedMainAxisSizePx",static:!1,private:!1,access:{has:e=>"_handlerEstimatedMainAxisSizePx"in e,get:e=>e._handlerEstimatedMainAxisSizePx,set:(e,t)=>{e._handlerEstimatedMainAxisSizePx=t}},metadata:e},nG,n$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#e;_handlerEstimatedMainAxisSizePx=(0,ak.zF)(this,nG,(0,aA._8)(()=>this.#e,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){(0,ak.zF)(this,n$),this.#e=e}});nW=[(0,aA.uA)("list-item",[az.O,sz])],nB=[],nX=HTMLElement,class extends nX{static{nU=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nX[Symbol.metadata]??null):void 0;(0,ak.G4)(null,nV={value:nU},nW,{kind:"class",name:nU.name,metadata:e},null,nB),nU=nV.value,e&&Object.defineProperty(nU,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["recyclable"]);static{(0,ak.zF)(nU,nB)}};let sP=(nq=[],nJ=[],nK=[],nQ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nZ=[(0,aA._y)("sticky-offset",!0)],nY=[(0,aA._y)("span-count",!0),(0,aA._y)("column-count",!0)],(0,ak.G4)(null,null,nZ,{kind:"field",name:"_handlerStickyOffset",static:!1,private:!1,access:{has:e=>"_handlerStickyOffset"in e,get:e=>e._handlerStickyOffset,set:(e,t)=>{e._handlerStickyOffset=t}},metadata:e},nq,nJ),(0,ak.G4)(null,null,nY,{kind:"field",name:"_handlerCount",static:!1,private:!1,access:{has:e=>"_handlerCount"in e,get:e=>e._handlerCount,set:(e,t)=>{e._handlerCount=t}},metadata:e},nK,nQ),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"];#e;_handlerStickyOffset=(0,ak.zF)(this,nq,(0,aA._8)(()=>this.#e,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));_handlerCount=((0,ak.zF)(this,nJ),(0,ak.zF)(this,nK,(0,aA._8)(()=>this.#e,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){(0,ak.zF)(this,nQ),this.#e=e}connectedCallback(){let e=this.#e.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),l=()=>{0===this.#e.clientHeight?requestAnimationFrame(l):this.#e.scrollToPosition({position:t})};(0,aA.JS)(l)}}}),sR=function(e,t,l){let i,n,a,s,o=0;var r=function(){o=l?.leading===!1?0:new Date().getTime(),i=null,s=e.apply(n,a),i||(n=a=null)};return function(){var d=new Date().getTime();o||l?.leading!==!1||(o=d);var h=t-(d-o);return n=this,a=arguments,h<=0||h>t?(i&&(clearTimeout(i),i=null),o=d,s=e.apply(n,a),i||(n=a=null)):i||l?.trailing===!1||(i=setTimeout(r,h)),s}},sM=(n9=[],n5=[],n7=[],ae=[],at=[],al=[],ai=[],an=[],aa=[],as=[],ao=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n0=[(0,aA.ZR)("scrolltoupper")],n1=[(0,aA._y)("upper-threshold-item-count",!0)],n4=[(0,aA.ZR)("scrolltolower")],n2=[(0,aA._y)("lower-threshold-item-count",!0)],n8=[(0,aA.ZR)("lynxscroll"),(0,aA.ZR)("lynxscrollend"),(0,aA.ZR)("snap")],n3=[(0,aA.ZR)("scrolltoupperedge")],n6=[(0,aA.ZR)("scrolltoloweredge")],(0,ak.G4)(this,null,n1,{kind:"method",name:"_handleUpperThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleUpperThresholdItemCountChange"in e,get:e=>e._handleUpperThresholdItemCountChange},metadata:e},null,n9),(0,ak.G4)(this,null,n2,{kind:"method",name:"_handleLowerThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleLowerThresholdItemCountChange"in e,get:e=>e._handleLowerThresholdItemCountChange},metadata:e},null,n9),(0,ak.G4)(null,null,n0,{kind:"field",name:"_updateEventSwitches",static:!1,private:!1,access:{has:e=>"_updateEventSwitches"in e,get:e=>e._updateEventSwitches,set:(e,t)=>{e._updateEventSwitches=t}},metadata:e},n5,n7),(0,ak.G4)(null,null,n4,{kind:"field",name:"_updateScrollToLowerEventSwitches",static:!1,private:!1,access:{has:e=>"_updateScrollToLowerEventSwitches"in e,get:e=>e._updateScrollToLowerEventSwitches,set:(e,t)=>{e._updateScrollToLowerEventSwitches=t}},metadata:e},ae,at),(0,ak.G4)(null,null,n8,{kind:"field",name:"_handleScrollEventsSwitches",static:!1,private:!1,access:{has:e=>"_handleScrollEventsSwitches"in e,get:e=>e._handleScrollEventsSwitches,set:(e,t)=>{e._handleScrollEventsSwitches=t}},metadata:e},al,ai),(0,ak.G4)(null,null,n3,{kind:"field",name:"_handleScrollToUpperEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToUpperEdgeEventEnable"in e,get:e=>e._handleScrollToUpperEdgeEventEnable,set:(e,t)=>{e._handleScrollToUpperEdgeEventEnable=t}},metadata:e},an,aa),(0,ak.G4)(null,null,n6,{kind:"field",name:"_handleScrollToLowerEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToLowerEdgeEventEnable"in e,get:e=>e._handleScrollToLowerEdgeEventEnable,set:(e,t)=>{e._handleScrollToLowerEdgeEventEnable=t}},metadata:e},as,ao),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#e=(0,ak.zF)(this,n9);#ls=(0,aA.Ut)(()=>this.#e.shadowRoot,"#content");#lo;#lr;#ld;#n=0;#a=0;#lh=!1;#i;#o=(0,aA.Ut)(()=>this.#e.shadowRoot,"#upper-threshold-observer");#r=(0,aA.Ut)(()=>this.#e.shadowRoot,"#lower-threshold-observer");#h(){let e=null!==this.#e.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:l,scrollHeight:i,scrollWidth:n}=this.#ls(),a={scrollTop:t,scrollLeft:l,scrollHeight:i,scrollWidth:n,deltaX:l-this.#n,deltaY:t-this.#a,attachedCells:e?this.#e.getVisibleCells():void 0};return this.#n=l,this.#a=t,a}#lc=e=>{let{isIntersecting:t}=e[0];t&&this.#e.dispatchEvent(new CustomEvent("scrolltoupper",{...aM.$,detail:this.#h()}))};_updateEventSwitches=(0,ak.zF)(this,n5,e=>{if(e?this.#e.setAttribute("x-enable-scrolltoupper-event",""):this.#e.removeAttribute("x-enable-scrolltoupper-event"),this.#ek.scrolltoupper=e,e){this.#lo||(this.#lo=new IntersectionObserver(this.#lc,{root:this.#ls()})),this.#ld||(this.#ld=new MutationObserver(this.#lu));let e=this.#e.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,l=0===t?this.#o():this.#e.children[t-1];l&&this.#lo.observe(l),this.#ld.observe(this.#e,{childList:!0})}else this.#lo&&(this.#lo.disconnect(),this.#lo=void 0),this.#ld&&(this.#ld.disconnect(),this.#ld=void 0)});_handleUpperThresholdItemCountChange(e,t){let l=null!==t?parseFloat(t):0,i=0===l?this.#o():this.#e.children[l-1];i&&this.#lo?.unobserve(i);let n=null!==e?parseFloat(e):0,a=0===n?this.#o():this.#e.children[n-1];a&&this.#lo?.observe(a)}#lm=((0,ak.zF)(this,n7),e=>{let{isIntersecting:t}=e[0];t&&this.#e.dispatchEvent(new CustomEvent("scrolltolower",{...aM.$,detail:this.#h()}))});#ek={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};_updateScrollToLowerEventSwitches=(0,ak.zF)(this,ae,e=>{if(this.#ek.scrolltolower=e,e?this.#e.setAttribute("x-enable-scrolltolower-event",""):this.#e.removeAttribute("x-enable-scrolltolower-event"),e){this.#lr||(this.#lr=new IntersectionObserver(this.#lm,{root:this.#ls()})),this.#ld||(this.#ld=new MutationObserver(this.#lu));let e=this.#e.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,l=0===t?this.#r():this.#e.children[this.#e.children.length-t];l&&this.#lr.observe(l),this.#ld.observe(this.#e,{childList:!0})}else this.#lr&&(this.#lr.disconnect(),this.#lr=void 0),this.#ld&&(this.#ld.disconnect(),this.#ld=void 0)});_handleLowerThresholdItemCountChange(e,t){let l=null!==t?parseFloat(t):0,i=0===l?this.#r():this.#e.children[this.#e.children.length-l];i&&this.#lr?.unobserve(i);let n=null!==e?parseFloat(e):0,a=0===n?this.#r():this.#e.children[this.#e.children.length-n];a&&this.#lr?.observe(a)}#lu=((0,ak.zF)(this,at),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#ek.scrolltolower){this.#lr&&(this.#lr.disconnect(),this.#lr=void 0),this.#lr=new IntersectionObserver(this.#lm,{root:this.#ls()});let e=this.#e.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,l=0===t?this.#r():this.#e.children[this.#e.children.length-t];l&&this.#lr.observe(l)}if(null!==this.#e.getAttribute("x-enable-scrolltoupper-event")){this.#lo&&(this.#lo.disconnect(),this.#lo=void 0),this.#lo=new IntersectionObserver(this.#lc,{root:this.#ls()});let e=this.#e.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,l=0===t?this.#o():this.#e.children[t-1];l&&this.#lo.observe(l)}}});#lp=null;#m=()=>{this.#lh&&!aD.k&&(clearTimeout(this.#i),this.#i=setTimeout(()=>{this.#v()},100)),this.#e.dispatchEvent(new CustomEvent("lynxscroll",{...aM.$,detail:this.#h()}))};_handleScrollEventsSwitches=(0,ak.zF)(this,al,(e,t)=>{this.#ek[t]=e;let{lynxscroll:l,lynxscrollend:i,snap:n}=this.#ek,a=this.#e.getAttribute("scroll-event-throttle");this.#lh=null!==i||null!==n;let s=this.#ls();if(this.#lp&&s.removeEventListener("scroll",this.#lp),null!==l||this.#lh){let e=null!==a?parseFloat(a):0,t=sR(this.#m,e,{leading:!0,trailing:!1});this.#lp=t,s.addEventListener("scroll",this.#lp),this.#n=0,this.#a=0}aD.k&&this.#lh?s.addEventListener("scrollend",this.#v):s.removeEventListener("scrollend",this.#v)});#d=((0,ak.zF)(this,ai),e=>{let{isIntersecting:t,target:l}=e[0],i=l.id;t&&("upper-threshold-observer"===i?this.#e.dispatchEvent(new CustomEvent("scrolltoupperedge",{...aM.$,detail:this.#h()})):"lower-threshold-observer"===i&&this.#e.dispatchEvent(new CustomEvent("scrolltoloweredge",{...aM.$,detail:this.#h()})))});_handleScrollToUpperEdgeEventEnable=(0,ak.zF)(this,an,e=>{e?this.#e.setAttribute("x-enable-scrolltoupperedge-event",""):this.#e.removeAttribute("x-enable-scrolltoupperedge-event"),this.#lv(e)});#lv=((0,ak.zF)(this,aa),aH(this.#ls,this.#o,this.#d));_handleScrollToLowerEdgeEventEnable=(0,ak.zF)(this,as,e=>{e?this.#e.setAttribute("x-enable-scrolltoloweredge-event",""):this.#e.removeAttribute("x-enable-scrolltoloweredge-event"),this.#lb(e)});#lb=((0,ak.zF)(this,ao),aH(this.#ls,this.#r,this.#d));#v=()=>{let e=this.#e.getAttribute("item-snap");if(this.#e.dispatchEvent(new CustomEvent("lynxscrollend",{...aM.$})),null!==e){let e=Array.from(this.#e.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#ls().scrollTop,l=this.#ls().scrollLeft,i=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#e.dispatchEvent(new CustomEvent("snap",{...aM.$,detail:{position:i&&e.indexOf(i),scrollTop:t,scrollLeft:l}}))}};constructor(e){this.#e=e}}),sH="waterfall-slot",sD="waterfall-style",sN=(ah=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ar=[(0,aA.ZR)("scrolltolower")],ad=[(0,aA._y)("list-type",!0)],(0,ak.G4)(this,null,ar,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,ah),(0,ak.G4)(this,null,ad,{kind:"method",name:"_handlerListType",static:!1,private:!1,access:{has:e=>"_handlerListType"in e,get:e=>e._handlerListType},metadata:e},null,ah),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#e=(0,ak.zF)(this,ah);#ls=(0,aA.Ut)(()=>this.#e.shadowRoot,"#content");#lg=(0,aA.Ut)(()=>this.#e.shadowRoot,'div[part="lower-threshold-observer"]');#z;#ld;_handleXEnableHeaderOffsetEvent(e){if(e?this.#e.setAttribute("x-enable-scrolltolower-event",""):this.#e.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#lg(),t=this.#e.getAttribute("scroll-orientation")||"vertical",l=this.#ls();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(l.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(l.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}}#lf=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sH}`),this.#e.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#ly=()=>{let e=parseFloat(this.#e.getAttribute("span-count")||this.#e.getAttribute("column-count")||"")||1,t="vertical"===(this.#e.getAttribute("scroll-orientation")||"vertical"),l=Array(e).fill(0);for(let i=0;i<this.#e.children.length;i++){let n=this.#e.children[i],a=getComputedStyle(n).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(n).getPropertyValue("--list-cross-axis-gap"),o=t?n.getBoundingClientRect().height+parseFloat(a):n.getBoundingClientRect().width+parseFloat(a);if(null!==n.getAttribute("full-span")){let i=l[0];for(let t=1;t<e;t++)l[t]>i&&(i=l[t]);for(let t=0;t<e;t++)l[t]=i+o;t?(n.setAttribute(`${sD}-left`,"0"),n.setAttribute(`${sD}-top`,`${i}px`)):(n.setAttribute(`${sD}-left`,`${i}px`),n.setAttribute(`${sD}-top`,"0"))}else{let i=0,a=l[0];for(let t=1;t<e;t++)l[t]<a&&(i=t,a=l[t]);let r=`calc(${i} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,i)} * ${s})`;t?(n.setAttribute(`${sD}-left`,r),n.setAttribute(`${sD}-top`,`${a}px`)):(n.setAttribute(`${sD}-left`,`${a}px`),n.setAttribute(`${sD}-top`,r)),l[i]+=o}}for(let e=0;e<this.#e.children.length;e++){let t=this.#e.children[e];t.style.setProperty("left",t.getAttribute(`${sD}-left`)),t.style.setProperty("top",t.getAttribute(`${sD}-top`)),t.setAttribute("slot",sH)}};constructor(e){this.#e=e}#lE=()=>{this.#z?.disconnect(),this.#z=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#ly()})}),Array.from(this.#e.children).forEach(e=>{this.#z?.observe(e)})};_handlerListType(e){if("waterfall"===e)this.#lf(),this.#z||this.#lE(),this.#ld||(this.#ld=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#lE()}),this.#ld.observe(this.#e,{childList:!0}));else{this.#z?.disconnect(),this.#z=void 0,this.#ld?.disconnect(),this.#ld=void 0;for(let e=0;e<this.#e.children.length;e++)this.#e.children[e].removeAttribute("slot");this.#e.shadowRoot?.querySelector(`slot[name=${sH}]`)?.remove()}}});am=[(0,aA.uA)("x-list",[az.O,sP,sM,sN],aW)],ap=[],av=HTMLElement,class extends av{static{au=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(av[Symbol.metadata]??null):void 0;(0,ak.G4)(null,ac={value:au},am,{kind:"class",name:au.name,metadata:e},null,ap),au=ac.value,e&&Object.defineProperty(au,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#ls=(0,aA.Ut)(()=>this.shadowRoot,"#content");#lS={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#l_={};get scrollTop(){return this.#ls().scrollTop}set scrollTop(e){this.#ls().scrollTop=e}get scrollLeft(){return this.#ls().scrollTop}set scrollLeft(e){this.#ls().scrollLeft=e}get scrollHeight(){return this.#ls().scrollHeight}get scrollWidth(){return this.#ls().scrollWidth}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let l=parseFloat(e.offset);t={left:l,top:l}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#ls().scrollTop=0,this.#ls().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let l=this.children.item(e.position);l instanceof HTMLElement&&(t=t?{left:l.offsetLeft+t.left,top:l.offsetTop+t.top}:{left:l.offsetLeft,top:l.offsetTop})}}t&&this.#ls().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#lw=e=>{if(!this.#lS.isScrolling)return;if(!this.#lS.lastTimestamp){this.#lS.lastTimestamp=e,requestAnimationFrame(this.#lw);return}let t=this.#ls(),l=(e-this.#lS.lastTimestamp)/1e3*this.#lS.rate;t.scrollBy({left:l,top:l,behavior:"auto"}),this.#lS.lastTimestamp=e;let i="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(i?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#lS.autoStop?(i?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#lS.isScrolling=!1):requestAnimationFrame(this.#lw)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#lS={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let l=this.#ls(),i="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?l.clientHeight<=l.scrollHeight:l.clientWidth<=l.scrollWidth;this.#lS.lastTimestamp=0,i?setTimeout(()=>requestAnimationFrame(this.#lw),0):requestAnimationFrame(this.#lw)}else this.#lS.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#l_),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);if(0===e.length){let l=this.#ls().getBoundingClientRect();e=t.filter(e=>{let t=e.getBoundingClientRect();return t.bottom>=l.top&&t.top<=l.bottom&&t.right>=l.left&&t.left<=l.right})}return e.map(e=>{let l=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:l.bottom,top:l.top,left:l.left,right:l.right,index:t.indexOf(e)}})};#lx=()=>Object.values(this.#l_).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#lT=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,l=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",i="LIST-ITEM"===e.target.tagName;if(l&&!t){let e=this.#lx();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...aM.$,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#lx()}}))},100);return}if(i){let l=e.target?.getAttribute("item-key");if(!l)return;t?this.#l_[l]&&delete this.#l_[l]:this.#l_[l]=e.target;return}};connectedCallback(){this.#ls().addEventListener("contentvisibilityautostatechange",this.#lT,{passive:!0})}static{(0,ak.zF)(au,ap)}};let sj=(af=[],ay=[],aE=[],aS=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ab=[(0,aA._y)("src",!0)],ag=[(0,aA._y)("html",!0)],(0,ak.G4)(null,null,ab,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},af,ay),(0,ak.G4)(null,null,ag,{kind:"field",name:"_handleHtml",static:!1,private:!1,access:{has:e=>"_handleHtml"in e,get:e=>e._handleHtml,set:(e,t)=>{e._handleHtml=t}},metadata:e},aE,aS),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","html"];#e;#lC=(0,aA.Ut)(()=>this.#e.shadowRoot,"#webview");constructor(e){(0,ak.zF)(this,aS),this.#e=e}_handleSrc=(0,ak.zF)(this,af,(0,aA.H$)(this.#lC,"src"));_handleHtml=((0,ak.zF)(this,ay),(0,ak.zF)(this,aE,(0,aA.H$)(this.#lC,"srcdoc")))});ax=[(0,aA.uA)("x-webview",[az.O,sj],aJ)],aT=[],aC=HTMLElement,class extends aC{static{aw=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aC[Symbol.metadata]??null):void 0;(0,ak.G4)(null,a_={value:aw},ax,{kind:"class",name:aw.name,metadata:e},null,aT),aw=a_.value,e&&Object.defineProperty(aw,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,ak.zF)(aw,aT)}#lC=(0,aA.Ut)(()=>this.shadowRoot,"#webview");#lO=()=>{this.dispatchEvent(new CustomEvent("load",{bubbles:!0,composed:!0,detail:{url:this.#lC().src}})),this.dispatchEvent(new CustomEvent("bindload",{bubbles:!0,composed:!0,detail:{url:this.#lC().src}}))};#lL=e=>{this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}})),this.dispatchEvent(new CustomEvent("binderror",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}}))};#lI=e=>{e.source===this.#lC().contentWindow&&(this.dispatchEvent(new CustomEvent("message",{bubbles:!0,composed:!0,detail:{msg:e.data,data:e.data}})),this.dispatchEvent(new CustomEvent("bindmessage",{bubbles:!0,composed:!0,detail:{msg:e.data}})))};connectedCallback(){this.#lC().addEventListener("load",this.#lO),this.#lC().addEventListener("error",this.#lL),window.addEventListener("message",this.#lI)}disconnectedCallback(){this.#lC().removeEventListener("load",this.#lO),this.#lC().removeEventListener("error",this.#lL),window.removeEventListener("message",this.#lI)}get src(){return this.getAttribute("src")}set src(e){null===e?this.removeAttribute("src"):this.setAttribute("src",e)}get html(){return this.getAttribute("html")}set html(e){null===e?this.removeAttribute("html"):this.setAttribute("html",e)}reload(){this.#lC().src=this.#lC().src}}}}]);
|