@lynx-js/web-explorer-canary 0.0.12-canary-20251104-fa41cb5c → 0.0.12-canary-20251104-04f2c39c

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.
@@ -304,4 +304,4 @@
304
304
  class="mask placeholder-dom"
305
305
  id="bot-fade-mask"
306
306
  part="bot-fade-mask"
307
- ></div>`)],V=[],$=HTMLElement,e=class extends ${static{U=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create($[Symbol.metadata]??null):void 0;i4(null,z={value:U},W,{kind:"class",name:U.name,metadata:t},null,V),e=U=z.value,t&&Object.defineProperty(U,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#ei;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#ei),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#ei=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[sb](){return this}static{i9(U,V)}},e=U;let sk=Symbol("__src"),sA=Symbol("__src"),sP={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sM={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=a||(a={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let sR=(K=[],J=[],Z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;B=[sr("src",!0)],q=[sr("loop",!0)],Y=[sr("pause-on-hide",!0)],i4(this,X={value:i5(function(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})),this.#I[sk]=t,this.#I[sA]=void 0,this.#I.stop()},"#handleSrc")},B,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,K),i4(this,G={value:i5(function(e){null!==e?document.addEventListener("visibilitychange",this.#er,{passive:!0}):document.removeEventListener("visibilitychange",this.#er)},"#handlePauseOnHide")},Y,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#eo in e,get:e=>e.#eo},metadata:e},null,K),i4(null,null,q,{kind:"field",name:"#handleLoop",static:!1,private:!0,access:{has:e=>#ed in e,get:e=>e.#ed,set:(e,t)=>{e.#ed=t}},metadata:e},J,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=i9(this,K);#ec=sd(()=>this.#I.shadowRoot,"#audio");#eh=sL(this.#ec,"src");get #es(){return X.value}#ed=i9(this,J,sL(this.#ec,"loop"));#er=(i9(this,Z),()=>{"hidden"===document.visibilityState&&this.#I.pause()});get #eo(){return G.value}constructor(e){this.#I=e}});class sN{static observedAttributes=[];#I;#eu;#ec=sd(()=>this.#I.shadowRoot,"#audio");#em=e=>{let t=Number(this.#I.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#eu=setInterval(()=>{this.#I.dispatchEvent(new CustomEvent("timeupdate",{...sn,detail:{currentTime:this.#ec().currentTime,currentSrcID:this.#I[sk]?.id}}))},n);let a=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:a?.code,type:a?.type,currentSrcID:this.#I[sk]?.id}}))};#ep=e=>{clearInterval(this.#eu);let t=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#ev=e=>{let t=sP[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#eb=e=>{this.#ev(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?a.PlayerLoadingError:a.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=a.PlayerLoadingError),this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[sk]?.id}}))};#eg=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...sn,detail:{loop:e,currentSrcID:this.#I[sk]?.id}}))};constructor(e){this.#I=e}connectedCallback(){let e=this.#ec();e.addEventListener("play",this.#em,{passive:!0}),e.addEventListener("pause",this.#ep,{passive:!0}),e.addEventListener("ended",this.#eg,{passive:!0}),e.addEventListener("loadstart",this.#ev,{passive:!0}),e.addEventListener("canplay",this.#ev,{passive:!0}),e.addEventListener("stalled",this.#ev,{passive:!0}),e.addEventListener("error",this.#eb,{passive:!0})}}et=[st("x-audio-tt",[ss,sR,sN],'<audio id="audio"></audio>')],en=[],ea=HTMLElement,(class extends ea{static{ee=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ea[Symbol.metadata]??null):void 0;i4(null,Q={value:ee},et,{kind:"class",name:ee.name,metadata:e},null,en),ee=Q.value,e&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ee,en)}#ef=sd(()=>this.shadowRoot,"#audio");#ec=sd(()=>this.shadowRoot,"#audio");#eh=sL(this.#ec,"src");[sk];[sA];#ey=()=>{let e,t=this[sk];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[sA]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:0,type:"loading",currentSrcID:t.id}}));let i=await fetch(t.play_url,{headers:e});i.ok||(this.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await i.blob(),r=URL.createObjectURL(s);this.#eh(r),n()})}};play(){return this[sA]||this.#ey(),this[sA]?.then(()=>{let e=this.#ef();e.currentTime=0,e.play()}),{currentSrcID:this[sk]?.id,loadingSrcID:""}}stop(){let e=this.#ef(),t=sM.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this[sk]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[sk]?.id}}pause(){return this.#ef().pause(),{currentSrcID:this[sk]?.id}}resume(){return this.#ef().play(),{currentSrcID:this[sk]?.id,loadingSrcID:""}}seek(e){return this.#ef().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...sn,detail:{seekresult:1,currentSrcID:this[sk]?.id}})),{currentSrcID:this[sk]?.id}}mute(e){return this.#ef().muted=e.mute,{currentSrcID:this[sk]?.id}}playerInfo(){var e;let t=this.#ef(),n=t.buffered,a=n.end(n.length-1);return{currentSrcID:this[sk]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:a}}prepare(){this[sA]||this.#ey()}setVolume(e){return this.#ef().volume=e.volume,{code:1}}}),ev=[st("x-canvas",[ss,(er=[],eo=[],ed=[],ec=[],eh=[],eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;el=[sr("name",!0)],ei=[sr("height",!0)],es=[sr("width",!0)],i4(null,null,el,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},er,eo),i4(null,null,ei,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ed,ec),i4(null,null,es,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},eh,eu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#I;#k;#eE=sd(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=i9(this,er,sL(this.#eE,"name"));handleHeight=(i9(this,eo),i9(this,ed,sL(this.#eE,"height")));handleWidth=(i9(this,ec),i9(this,eh,sL(this.#eE,"width")));#eS=(i9(this,eu),e=>{let{contentRect:t}=e[0],n=this.#I.shadowRoot.firstElementChild;if(n){let{height:e,width:a}=t;e*=window.devicePixelRatio,a*=window.devicePixelRatio;let l=new CustomEvent("resize",{...sn,detail:{height:e,width:a}});l.height=e,l.width=a,n.dispatchEvent(l)}});#ew(){this.#k||(this.#k=new ResizeObserver(this.#eS),this.#k.observe(this.#I))}#ex(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#ew()}dispose(){this.#ex()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],eb=[],eg=HTMLElement,class extends eg{static{ep=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eg[Symbol.metadata]??null):void 0;i4(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}),i9(ep,eb)}};let sD=(ew=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ef=[sr("granularity",!0)],eE=[sl("offset")],i4(this,ey={value:i5(function(e){e&&""!==e?this.#eC=parseFloat(e):this.#eC=.01},"#handleGranularity")},ef,{kind:"method",name:"#handleGranularity",static:!1,private:!0,access:{has:e=>#eT in e,get:e=>e.#eT},metadata:e},null,ew),i4(this,eS={value:i5(function(e){e?this.#I.addEventListener("scroll",this.#Q,{passive:!0}):this.#I.removeEventListener("scroll",this.#Q)},"#enableOffsetEvent")},eE,{kind:"method",name:"#enableOffsetEvent",static:!1,private:!0,access:{has:e=>#eO in e,get:e=>e.#eO},metadata:e},null,ew),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i9(this,ew);#eC=.01;#eI=0;constructor(e){this.#I=e}static observedAttributes=["granularity"];get #eT(){return ey.value}get #eO(){return eS.value}#Q=()=>{let e=this.#I.scrollTop;(Math.abs(this.#eI-e)>this.#eC||0===this.#I.scrollTop||1>=Math.abs(this.#I.scrollHeight-this.#I.clientHeight-this.#I.scrollTop))&&(this.#eI=e,this.#I.dispatchEvent(new CustomEvent("offset",{...sn,detail:{offset:e,height:this.#I[sF]}})))}}),sF=Symbol("scrollableLength"),sH=Symbol("isHeaderShowing"),sj=Symbol("resizeObserver"),s_=Symbol("slotKid");eT=[st("x-foldview-ng",[ss,sD])],eO=[],eI=HTMLElement,class extends eI{static{eC=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;i4(null,ex={value:eC},eT,{kind:"class",name:eC.name,metadata:e},null,eO),eC=ex.value,e&&Object.defineProperty(eC,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[s_];[sj]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eL=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ek=t.contentRect.height);this[s_]&&(this[s_].style.top=`${this.#eL-this.#ek}px`)});#eL=0;#ek=0;get[sF](){return this.#eL-this.#ek}get[sH](){return this[sF]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sF]?e=this[sF]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,a=parseFloat(t);this.scrollTo({top:a,behavior:n?"smooth":"instant"})}get[sb](){return this}disconnectedCallback(){this[sj]?.disconnect(),this[sj]=void 0}static{i9(eC,eO)}};let sz=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};eA=[st("x-foldview-header-ng",[ss])],eP=[],eM=HTMLElement,(class extends eM{static{ek=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eM[Symbol.metadata]??null):void 0;i4(null,eL={value:ek},eA,{kind:"class",name:ek.name,metadata:e},null,eP),ek=eL.value,e&&Object.defineProperty(ek,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ek,eP)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sj],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}}),eD=[st("x-foldivew-slot-drag-ng",[ss])],eF=[],eH=HTMLElement,class extends eH{static{eN=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eH[Symbol.metadata]??null):void 0;i4(null,eR={value:eN},eD,{kind:"class",name:eN.name,metadata:e},null,eF),eN=eR.value,e&&Object.defineProperty(eN,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(eN,eF)}};class sU{#eP=0;#eM=new WeakMap;#eR;#eN=0;#eD=0;#eF=null;#eH;#ej=0;#I;static observedAttributes=[];constructor(e){this.#I=e,this.#I.addEventListener("touchmove",this.#e_,{passive:!1}),this.#I.addEventListener("touchstart",this.#ez,{passive:!0}),this.#I.addEventListener("touchend",this.#eU,{passive:!0})}#eW(e){return this.#eR?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,a=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||a}return!1})}#eV(e,t){let n=this.#eM.get(e)??0;n+=t,this.#eM.set(e,n),e.scrollTop=n}#e_=e=>{let t=this.#e$(),{pageY:n,pageX:a}=e.touches.item(0),l=this.#eN-n;if(null===this.#eF){let e=this.#eD-a;this.#eF=Math.abs(l)>Math.abs(e)}if(!1===this.#eF)return;let i=this.#eW(l);t&&(e.cancelable&&e.preventDefault(),t[sH]&&l>0||l<0&&!i||!t[sH]&&!i?(t.scrollBy({top:l,behavior:"smooth"}),this.#eP+=l,t.scrollTop=this.#eP,this.#eH=t):i&&(this.#eH=i,this.#eV(i,l))),this.#eN=n,this.#ej=l};#e$(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#ez=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#eR=document.elementsFromPoint(t,n).filter(e=>this.#I.contains(e)),this.#eN=n,this.#eD=t,this.#eP=this.#e$()?.scrollTop??0,this.#eR))this.#eM.set(e,e.scrollTop);this.#eF=null,this.#eH=void 0};#eU=()=>{if(this.#eF=null,this.#eH){let e=this.#e$();(this.#eH!==e||e[sH])&&this.#eH.scrollBy({top:4*this.#ej,behavior:"smooth"})}}}ez=[st("x-foldview-slot-ng",[ss,sU])],eU=[],eW=HTMLElement,(class extends eW{static{e_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eW[Symbol.metadata]??null):void 0;i4(null,ej={value:e_},ez,{kind:"class",name:e_.name,metadata:e},null,eU),e_=ej.value,e&&Object.defineProperty(e_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(e_,eU)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[s_]=this)}}),eB=[st("x-foldview-toolbar-ng",[ss])],eX=[],eq=HTMLElement,class extends eq{static{e$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eq[Symbol.metadata]??null):void 0;i4(null,eV={value:e$},eB,{kind:"class",name:e$.name,metadata:e},null,eX),e$=eV.value,e&&Object.defineProperty(e$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(e$,eX)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sj],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}};let sW=(e2=[],e3=[],e8=[],e4=[],e9=[],e5=[],e6=[],e7=[],te=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eK=[sr("src",!0)],eJ=[sr("placeholder",!0)],eQ=[sr("blur-radius",!0)],e0=[sr("crossorigin",!0)],e1=[sr("referrerpolicy",!0)],i4(this,eZ={value:i5(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},eJ,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#eB in e,get:e=>e.#eB},metadata:e},null,e2),i4(null,null,eK,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es,set:(e,t)=>{e.#es=t}},metadata:e},e3,e8),i4(null,null,eQ,{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},e4,e9),i4(null,null,e0,{kind:"field",name:"#handleCrossorigin",static:!1,private:!0,access:{has:e=>#eq in e,get:e=>e.#eq,set:(e,t)=>{e.#eq=t}},metadata:e},e5,e6),i4(null,null,e1,{kind:"field",name:"#handleReferrerpolicy",static:!1,private:!0,access:{has:e=>#eY in e,get:e=>e.#eY,set:(e,t)=>{e.#eY=t}},metadata:e},e7,te),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#I=i9(this,e2);#eG=sd(()=>this.#I.shadowRoot,"#img");#es=i9(this,e3,sL(this.#eG,"src",e=>e||this.#I.getAttribute("placeholder")));get #eB(){return eZ.value}#eX=(i9(this,e8),i9(this,e4,sc(this.#eG,"--blur-radius",void 0,!0)));#eq=(i9(this,e9),i9(this,e5,sL(this.#eG,"crossorigin")));#eY=(i9(this,e6),i9(this,e7,sL(this.#eG,"referrerpolicy")));#eK=(i9(this,te),()=>{let e=this.#eG().src,t=this.#I.getAttribute("placeholder");t&&e!==t&&(this.#eG().src=t)});constructor(e){this.#I=e,this.#eG().addEventListener("error",this.#eK)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this.#es(null)}}),sV=(ti=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tt=[sl("load")],ta=[sl("error")],i4(this,tn={value:i5(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#enableLoadEvent")},tt,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,ti),i4(this,tl={value:i5(function(e){e?this.#eG().addEventListener("error",this.#eQ,{passive:!0}):this.#eG().removeEventListener("error",this.#eQ)},"#enableErrorEvent")},ta,{kind:"method",name:"#enableErrorEvent",static:!1,private:!0,access:{has:e=>#e0 in e,get:e=>e.#e0},metadata:e},null,ti),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i9(this,ti);#eG=sd(()=>this.#I.shadowRoot,"#img");get #eZ(){return tn.value}get #e0(){return tl.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};#eQ=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{}}))};constructor(e){this.#I=e}});to=[st("filter-image",[ss,sW,(eY=[],eG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i4(null,null,[sr("drop-shadow",!0)],{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},eY,eG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#eG=sd(()=>this.#I.shadowRoot,"#img");#eX=i9(this,eY,sc(this.#eG,"--drop-shadow",void 0,!0));constructor(e){i9(this,eG),this.#I=e}}),sV],sE({}))],td=[],tc=HTMLElement,(class extends tc{static{tr=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tc[Symbol.metadata]??null):void 0;i4(null,ts={value:tr},to,{kind:"class",name:tr.name,metadata:e},null,td),tr=ts.value,e&&Object.defineProperty(tr,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(tr,td)}}),tm=[st("x-image",[ss,sW,sV],sE({}))],tp=[],tv=HTMLElement,class extends tv{static{tu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tv[Symbol.metadata]??null):void 0;i4(null,th={value:tu},tm,{kind:"class",name:tu.name,metadata:e},null,tp),tu=th.value,e&&Object.defineProperty(tu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(tu,tp)}};let s$={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};ne=[st("x-input",[ss,(tF=[],tH=[],tj=[],t_=[],tz=[],tU=[],tW=[],tV=[],t$=[],tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tP=[sr("placeholder",!0)],tM=[sr("placeholder-color",!0)],tR=[sr("placeholder-font-family",!0)],tN=[sr("placeholder-font-size",!0)],tD=[sr("placeholder-font-weight",!0)],i4(null,null,tP,{kind:"field",name:"#handlerPlaceholder",static:!1,private:!0,access:{has:e=>#e1 in e,get:e=>e.#e1,set:(e,t)=>{e.#e1=t}},metadata:e},tF,tH),i4(null,null,tM,{kind:"field",name:"#handlerPlaceholderColor",static:!1,private:!0,access:{has:e=>#e2 in e,get:e=>e.#e2,set:(e,t)=>{e.#e2=t}},metadata:e},tj,t_),i4(null,null,tR,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e3 in e,get:e=>e.#e3,set:(e,t)=>{e.#e3=t}},metadata:e},tz,tU),i4(null,null,tN,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},tW,tV),i4(null,null,tD,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4,set:(e,t)=>{e.#e4=t}},metadata:e},t$,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#I;#e9=sd(()=>this.#I.shadowRoot,"#input");#e1=i9(this,tF,sL(this.#e9,"placeholder"));#e2=(i9(this,tH),i9(this,tj,sc(this.#e9,"--placeholder-color",void 0,!0)));#e3=(i9(this,t_),i9(this,tz,sc(this.#e9,"--placeholder-font-family",void 0,!0)));#e8=(i9(this,tU),i9(this,tW,sc(this.#e9,"--placeholder-font-size",void 0,!0)));#e4=(i9(this,tV),i9(this,t$,sc(this.#e9,"--placeholder-font-weight",void 0,!0)));constructor(e){i9(this,tB),this.#I=e}}),(tK=[],tJ=[],tZ=[],tQ=[],t0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tX=[sr("value",!1)],tY=[sr("disabled",!0)],tG=[sr("autocomplete",!0)],i4(this,tq={value:i5(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#e9();t.value!==e&&(t.value=e)},"#handleValue")},tX,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5},metadata:e},null,tK),i4(null,null,tY,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e6 in e,get:e=>e.#e6,set:(e,t)=>{e.#e6=t}},metadata:e},tJ,tZ),i4(null,null,tG,{kind:"field",name:"#handleAutocomplete",static:!1,private:!0,access:{has:e=>#e7 in e,get:e=>e.#e7,set:(e,t)=>{e.#e7=t}},metadata:e},tQ,t0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#I=i9(this,tK);#e9=sd(()=>this.#I.shadowRoot,"#input");get #e5(){return tq.value}#e6=i9(this,tJ,sL(this.#e9,"disabled",e=>null!==e?"":null));#e7=(i9(this,tZ),i9(this,tQ,sL(this.#e9,"autocomplete")));constructor(e){i9(this,t0),this.#I=e}}),(tw=[],tx=[],tC=[],tT=[],tO=[],tI=[],tL=[],tk=[],tA=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tb=[sr("confirm-type",!0)],tg=[sr("maxlength",!0)],tf=[sr("readonly",!0)],ty=[sr("type",!0)],tS=[sr("ios-spell-check",!0),sr("spell-check",!0)],i4(this,tE={value:i5(function(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#te(t),this.#tt(n)},"#handleType")},ty,{kind:"method",name:"#handleType",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn},metadata:e},null,tw),i4(null,null,tb,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},tx,tC),i4(null,null,tg,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},tT,tO),i4(null,null,tf,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},tI,tL),i4(null,null,tS,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},tk,tA),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#I=i9(this,tw);#tr="text";#e9=sd(()=>this.#I.shadowRoot,"#input");#ta=i9(this,tx,sL(this.#e9,"enterkeyhint",e=>null===e?"send":e));#tl=(i9(this,tC),i9(this,tT,sL(this.#e9,"maxlength",e=>null===e?"140":e)));#ti=(i9(this,tO),i9(this,tI,sL(this.#e9,"readonly",e=>null!==e?"":null)));#tt=(i9(this,tL),sL(this.#e9,"type"));#te=sL(this.#e9,"inputmode");get #tn(){return tE.value}#ts=i9(this,tk,sL(this.#e9,"spellcheck",e=>null===e?"false":"true"));constructor(e){i9(this,tA),this.#I=e}}),(t5=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[sr("input-filter",!0),sl("lynxinput")],t3=[sr("send-composing-input",!0)],t4=[sl("selection")],i4(this,t2={value:i5(function(e){let t=this.#e9();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableInputEvent")},t1,{kind:"method",name:"#handleEnableInputEvent",static:!1,private:!0,access:{has:e=>#tc in e,get:e=>e.#tc},metadata:e},null,t5),i4(this,t8={value:i5(function(e){this.#th=null!==e},"#handleSendComposingInput")},t3,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,t5),i4(this,t9={value:i5(function(e){e?this.#e9().addEventListener("select",this.#tm,{passive:!0}):this.#e9().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},t4,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,t5),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i9(this,t5);#th=!1;#e9=sd(()=>this.#I.shadowRoot,"#input");#tv=sd(()=>this.#I.shadowRoot,"#form");get #tc(){return t2.value}get #tu(){return t8.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#e9().value}}))};#to=e=>{let t=this.#e9(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#e9(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return t9.value}#tm=()=>{let e=this.#e9();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#e9()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#e9(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sS)],nt=[],nn=HTMLElement,(class extends nn{static{t7=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nn[Symbol.metadata]??null):void 0;i4(null,t6={value:t7},ne,{kind:"class",name:t7.name,metadata:e},null,nt),t7=t6.value,e&&Object.defineProperty(t7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(t7,nt)}#tf=sd(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#tf(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#tf();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#tf();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#tf();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#tf().setAttribute("pattern",e.pattern)}select(){let e=this.#tf();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#tf().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#tf().focus(e)}blur(){this.#tf().blur()}connectedCallback(){let e=this.#tf();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),nc=[st("x-overlay-ng",[ss,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[sr("events-pass-through",!0)],ni=[sr("visible",!1)],i4(this,nl={value:i5(function(e){null!==e?(this.#ty().addEventListener("click",this.#tE,{passive:!1}),this.#I.addEventListener("click",this.#tE,{passive:!1})):(this.#ty().removeEventListener("click",this.#tE),this.#I.removeEventListener("click",this.#tE))},"#handleEventsPassThrough")},na,{kind:"method",name:"#handleEventsPassThrough",static:!1,private:!0,access:{has:e=>#tS in e,get:e=>e.#tS},metadata:e},null,nr),i4(this,ns={value:i5(function(e){this.#tw=null!==e,this.#tx&&(this.#tw?(this.#ty().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",sn))):(this.#ty().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",sn))))},"#handleVisible")},ni,{kind:"method",name:"#handleVisible",static:!1,private:!0,access:{has:e=>#tC in e,get:e=>e.#tC},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#I=i9(this,nr);#tx=!!window.HTMLDialogElement;#tw=!1;constructor(e){this.#I=e}#ty=sd(()=>this.#I.shadowRoot,"#dialog");get #tS(){return nl.value}get #tC(){return ns.value}#tE=e=>{e.stopPropagation();let t=this.#ty();if(e.target===this.#I||e.target===t){t.close();let{clientX:n,clientY:a}=e,l=document.elementFromPoint(n,a);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,a)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#tw&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#tx||(this.#ty().style.display="none")}})],sx)],nh=[],nu=HTMLElement,class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;i4(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(nd,nh)}get[si](){return this.shadowRoot.firstElementChild}};class sB extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sB.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sX{#I;static observedAttributes=[];#tT;constructor(e){this.#I=e}connectedCallback(){if(IntersectionObserver&&!this.#tT){let e=this.#I.parentElement;e&&(this.#tT=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#I.dispatchEvent(new sB(t,n)),n&&this.#I.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#tT.observe(this.#I))}}dispose(){this.#tT&&(this.#tT.disconnect(),this.#tT=void 0)}}function sq(e,t,n,a){let l=!1;return function(i){if(i!==l){let s=e.call(this);i?(se(()=>s.addEventListener(t,n,a)),l=!0):(se(()=>s.removeEventListener(t,n)),l=!1)}}}nv=[st("x-refresh-footer",[ss,sX])],nb=[],ng=HTMLElement,(class extends ng{static{np=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ng[Symbol.metadata]??null):void 0;i4(null,nm={value:np},nv,{kind:"class",name:np.name,metadata:e},null,nb),np=nm.value,e&&Object.defineProperty(np,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(np,nb)}connectedCallback(){this.setAttribute("slot","footer")}}),nE=[st("x-refresh-header",[ss,sX])],nS=[],nw=HTMLElement,(class extends nw{static{ny=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nw[Symbol.metadata]??null):void 0;i4(null,nf={value:ny},nE,{kind:"class",name:ny.name,metadata:e},null,nS),ny=nf.value,e&&Object.defineProperty(ny,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ny,nS)}connectedCallback(){this.setAttribute("slot","header")}}),nA=[st("x-refresh-view",[ss,(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nx=[sl("headeroffset"),sl("headershow"),sl("footeroffset")],nT=[sl("startrefresh"),sl("headerreleased"),sl("startloadmore"),sl("footerreleased")],i4(this,nC={value:i5(function(e,t){this.#tO[t]=e;let{headeroffset:n,headershow:a,footeroffset:l}=this.#tO;n||a||l?this.#tI():this.#tL()},"#handleComplexEventEnableAttributes")},nx,{kind:"method",name:"#handleComplexEventEnableAttributes",static:!1,private:!0,access:{has:e=>#tk in e,get:e=>e.#tk},metadata:e},null,nI),i4(this,nO={value:i5(function(e,t){this.#tO[t]=e;let{startrefresh:n,headerreleased:a,startloadmore:l,footerreleased:i}=this.#tO;a||i||l||n?this.#tA():this.#tP()},"#handleXEnableHeaderOffsetEvent")},nT,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,nI),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i9(this,nI);static observedAttributes=[];#tR=sd(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#tN=sd(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(sB.EventName,this.#tD)}#tO={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};get #tk(){return nC.value}get #tM(){return nO.value}#tF=!1;#tH=!1;#tj=!1;#t_=!1;#tD=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tF=e.startShowing,this.#tH=e.fullyShowing):(this.#tj=e.startShowing,this.#t_=e.fullyShowing)};#tz=!1;#tA(){this.#tz||(this.#I.addEventListener("touchend",this.#tU),this.#tz=!0)}#tU=()=>{this.#tH?(this.#I.dispatchEvent(new CustomEvent("headerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...sn,detail:{isManual:this.#I._nextRefreshIsManual}})),this.#I._nextRefreshIsManual=!0):("true"===this.#I.getAttribute("enable-auto-loadmore")&&this.#tj||this.#t_)&&(this.#I.dispatchEvent(new CustomEvent("footerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startloadmore",sn)))};#tP(){this.#tz&&this.#I.removeEventListener("touchend",this.#tU)}#tW=!1;#tV=!1;#tI(){this.#tV||(this.#I.addEventListener("touchstart",this.#t$),this.#I.addEventListener("touchend",this.#tB),this.#I.addEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#Q))}#tB=()=>{this.#tW=!1};#t$=()=>{this.#tW=!0};#Q=()=>{if(this.#tF&&(this.#tO.headershow||this.#tO.headeroffset)){let e=this.#tR();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#I.shadowRoot.querySelector("#container").scrollTop;this.#I.dispatchEvent(new CustomEvent("headershow",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}}))}}else if(this.#tj&&this.#tO.footeroffset){let e=this.#tN();if(e){let t=this.#I.shadowRoot.querySelector("#container"),n=t.scrollTop;t.scrollHeight;let a=parseFloat(getComputedStyle(e).height);this.#I.dispatchEvent(new CustomEvent("footeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/a}}))}}};#tL(){this.#tV&&(this.#I.removeEventListener("touchstart",this.#t$),this.#I.removeEventListener("touchend",this.#tB),this.#I.removeEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#Q))}dispose(){this.#tP(),this.#tL()}})],sC)],nP=[],nM=HTMLElement,(class extends nM{static{nk=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nM[Symbol.metadata]??null):void 0;i4(null,nL={value:nk},nA,{kind:"class",name:nk.name,metadata:e},null,nP),nk=nL.value,e&&Object.defineProperty(nk,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#tX=sd(()=>this.shadowRoot,"#container");#tq=sd(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tX(),t=this.#tq();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tX(),n=this.#tq();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tq().scrollHeight}get[sb](){return this}static{i9(nk,nP)}}),nW=[st("x-svg",[ss,(n_=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nR=[sr("src",!0)],nD=[sr("content",!0)],nH=[sl("load")],i4(this,nN={value:i5(function(e){e?this.#eG().src=e:this.#eG().src=""},"#handleSrc")},nR,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,n_),i4(this,nF={value:i5(function(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#eG().src=n},"#handleContent")},nD,{kind:"method",name:"#handleContent",static:!1,private:!0,access:{has:e=>#tY in e,get:e=>e.#tY},metadata:e},null,n_),i4(this,nj={value:i5(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#enableLoadEvent")},nH,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,n_),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#I=i9(this,n_);#n=null;#eG=sd(()=>this.#I.shadowRoot,"#img");get #es(){return nN.value}get #tY(){return nF.value}get #eZ(){return nj.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nV=[],n$=HTMLElement,(class extends n${static{nU=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n$[Symbol.metadata]??null):void 0;i4(null,nz={value:nU},nW,{kind:"class",name:nU.name,metadata:e},null,nV),nU=nz.value,e&&Object.defineProperty(nU,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(nU,nV)}}),nq=[st("x-swiper-item",[ss])],nY=[],nG=HTMLElement,(class extends nG{static{nX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nG[Symbol.metadata]??null):void 0;i4(null,nB={value:nX},nq,{kind:"class",name:nX.name,metadata:e},null,nY),nX=nB.value,e&&Object.defineProperty(nX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(nX,nY)}}),ay=[st("x-swiper",[ss,(ar=[],ao=[],ad=[],ac=[],ah=[],au=[],am=[],ap=[],av=[],ab=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;an=[sr("indicator-color",!0)],aa=[sr("indicator-active-color",!0)],al=[sr("page-margin",!0)],ai=[sr("previous-margin",!0)],as=[sr("next-margin",!0)],i4(null,null,an,{kind:"field",name:"#handleIndicatorColor",static:!1,private:!0,access:{has:e=>#tG in e,get:e=>e.#tG,set:(e,t)=>{e.#tG=t}},metadata:e},ar,ao),i4(null,null,aa,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tK in e,get:e=>e.#tK,set:(e,t)=>{e.#tK=t}},metadata:e},ad,ac),i4(null,null,al,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#tJ in e,get:e=>e.#tJ,set:(e,t)=>{e.#tJ=t}},metadata:e},ah,au),i4(null,null,ai,{kind:"field",name:"#handlePreviousMargin",static:!1,private:!0,access:{has:e=>#tZ in e,get:e=>e.#tZ,set:(e,t)=>{e.#tZ=t}},metadata:e},am,ap),i4(null,null,as,{kind:"field",name:"#handleNextMargin",static:!1,private:!0,access:{has:e=>#tQ in e,get:e=>e.#tQ,set:(e,t)=>{e.#tQ=t}},metadata:e},av,ab),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#I;#t0=0;#t1=sd(()=>this.#I.shadowRoot,"#indicator-container");#t2=sd(()=>this.#I.shadowRoot,"#indicator-style");#t3;constructor(e){i9(this,ab),this.#I=e}#tG=i9(this,ar,sc(this.#t1,"--indicator-color",void 0,!0));#tK=(i9(this,ao),i9(this,ad,sc(this.#t1,"--indicator-active-color",void 0,!0)));#tJ=(i9(this,ac),i9(this,ah,sc(this.#t1,"--page-margin",void 0,!0)));#tZ=(i9(this,au),i9(this,am,sc(this.#t1,"--previous-margin",void 0,!0)));#tQ=(i9(this,ap),i9(this,av,sc(this.#t1,"--next-margin",void 0,!0)));#t8(){let e=this.#I.childElementCount;if(e!==this.#t0){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#t1().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#I.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#t2().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#t0=e}connectedCallback(){this.#t8(),this.#t3=new MutationObserver(this.#t8.bind(this)),this.#t3.observe(this.#I,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#I.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#I.childElementCount,a=this.#t1();for(let e=0;e<n;e++){let n=a.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),se(()=>{this.#t1().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t3?.disconnect(),this.#t3=void 0}}),(nQ=[],n0=[],n1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nK=[sl("transition")],nJ=[sl("scrollstart"),sl("lynxscrollend"),sl("change"),sl("change-event-for-indicator")],i4(this,nZ={value:i5(function(e,t){this.#tO[t]=e;let{lynxscrollend:n,scrollstart:a,change:l}=this.#tO,i=l||n||a||this.#tO["change-event-for-indicator"];this.#t4.forEach(e=>e(i))},"#enableScrollEventProcessor")},nJ,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t9 in e,get:e=>e.#t9},metadata:e},null,nQ),i4(null,null,nK,{kind:"field",name:"#handleEnableTransitionEvent",static:!1,private:!0,access:{has:e=>#t5 in e,get:e=>e.#t5,set:(e,t)=>{e.#t5=t}},metadata:e},n0,n1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i9(this,nQ);#t6=0;#t7=0;#tW=!1;#V;#ne=!1;constructor(e){this.#I=e}#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);#t5=i9(this,n0,sq(this.#tq,"scroll",this.#nt,{passive:!0}));#Q(){sp||(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#ne||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...sn,detail:{current:this.#t6,isDragged:this.#tW}})),this.#ne=!0);let e=this.#tq(),t=this.#I.isVertical,n=t?e.scrollTop:e.scrollLeft,a=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#t7-n)>a/4||n<10||Math.abs(n-l)<=a){let e=this.#I.currentIndex;e!==this.#t6&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{current:e,isDragged:this.#tW}})),this.#t6=e),this.#t7=n}}#et(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn,detail:{current:this.#t6}})),this.#ne=!1}#nn(){this.#tW=!0}#na(){this.#tW=!1}#nt(){this.#I.dispatchEvent(new CustomEvent("transition",{...sn,detail:{dx:this.#tq().scrollLeft,dy:this.#tq().scrollTop}}))}#t4=(i9(this,n1),[sq(this.#tq,"scroll",this.#Q.bind(this),{passive:!0}),sq(this.#tq,"touchstart",this.#nn.bind(this),{passive:!0}),sq(this.#tq,"touchend",this.#na.bind(this),{passive:!0}),sq(this.#tq,"touchcancel",this.#na.bind(this),{passive:!0}),sq(this.#tq,"scrollend",this.#et.bind(this),{passive:!0})]);#tO={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t9(){return nZ.value}connectedCallback(){this.#t6=parseFloat(this.#I.getAttribute("current")??"0");let e=this.#I.isVertical;this.#t7=e?this.#tq().scrollTop:this.#tq().scrollLeft}}),(at=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n5=[sr("circular",!1)],n7=[sr("vertical",!0)],i4(this,n6={value:i5(function(e){this.#t4.forEach(t=>t(null!=e)),null!==e&&this.#nl({detail:{current:this.#I.currentIndex,isDragged:!1,__isFirstLayout:!0}})},"#handleCircular")},n5,{kind:"method",name:"#handleCircular",static:!1,private:!0,access:{has:e=>#ni in e,get:e=>e.#ni},metadata:e},null,at),i4(this,ae={value:i5(function(e){this.#ns=null!==e},"#handleVerticalChange")},n7,{kind:"method",name:"#handleVerticalChange",static:!1,private:!0,access:{has:e=>#nr in e,get:e=>e.#nr},metadata:e},null,at),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#I=i9(this,at);#ns=!1;#no;#nd=0;#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#nc=sd(()=>this.#I.shadowRoot,"#circular-start").bind(this);#nh=sd(()=>this.#I.shadowRoot,"#circular-end").bind(this);#nl(e){let t=this.#I.childElementCount;if(t>2){let{current:n,isDragged:a,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,i=this.#tq(),s=this.#nc().assignedElements(),r=this.#nh().assignedElements(),o=this.#I.firstElementChild,d=this.#I.lastElementChild,c=this.#I.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#I.children[n]),this.#ns){let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientHeight/2:i.clientHeight/2;this.#nd=e.offsetTop+e.offsetHeight/2-c-t,i.scrollTop=this.#nd}else{let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientWidth/2:i.clientWidth/2;this.#nd=e.offsetLeft+e.offsetWidth/2-c-t,i.scrollLeft=this.#nd}if(!a){let e=this.#I.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#nu(l?"instant":"smooth")}}}}#nu(e){let t=this.#tq(),n=this.#I.snapDistance;t.scrollBy({top:this.#ns?n:0,left:this.#ns?0:n,behavior:e??"smooth"})}#t4=[sq(()=>this.#I,"change",this.#nl.bind(this),{passive:!0}),sq(()=>this.#I,"touchmove",this.#nm.bind(this),{passive:!1}),sq(()=>this.#I,"touchend",this.#np.bind(this),{passive:!1}),sq(()=>this.#I,"touchcancel",this.#np.bind(this),{passive:!1})];get #ni(){return n6.value}#nm(e){let t=e.touches.item(0);if(t){let e=this.#ns?t.pageY:t.pageX;if(void 0!==this.#no){this.#nv();let t=this.#no-e;this.#nd+=t}this.#no=e}}#np(e){this.#nb(),this.#nu(),this.#no=void 0}get #nr(){return ae.value}#ng;#nv(){if(!this.#ng){let e=this.#tq();this.#nd=this.#ns?e.scrollTop:e.scrollLeft,this.#ng=setInterval(()=>{this.#ns?e.scrollTop=this.#nd:e.scrollLeft=this.#nd},10)}}#nb(){this.#ng&&(clearInterval(this.#ng),this.#ng=void 0)}dispose(){this.#nb()}}),(n9=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n2=[sr("current",!1)],n8=[sr("interval",!1),sr("autoplay",!1)],i4(this,n3={value:i5(function(e){let t=Number(e);Number.isNaN(t)||(this.#I.currentIndex=t)},"#handleCurrentChange")},n2,{kind:"method",name:"#handleCurrentChange",static:!1,private:!0,access:{has:e=>#nf in e,get:e=>e.#nf},metadata:e},null,n9),i4(this,n4={value:i5(function(){if(null!==this.#I.getAttribute("autoplay")){let e=this.#I.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#ny(t)}},"#handleAutoplay")},n8,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nE in e,get:e=>e.#nE},metadata:e},null,n9),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=i9(this,n9);constructor(e){this.#I=e}#nS(){this.#I.currentIndex===this.#I.childElementCount-1?this.#I.circularPlay&&(this.#I.currentIndex=0):this.#I.currentIndex+=1}get #nf(){return n3.value}#nw;#nx=(()=>{this.#nS()}).bind(this);#ny(e){this.#nC(),this.#nw=setInterval(this.#nx,e)}#nC(){this.#nw&&clearInterval(this.#nw)}get #nE(){return n4.value}dispose(){this.#nC()}})],sT)],aE=[],aS=HTMLElement,(class extends aS{static{af=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aS[Symbol.metadata]??null):void 0;i4(null,ag={value:af},ay,{kind:"class",name:af.name,metadata:e},null,aE),af=ag.value,e&&Object.defineProperty(af,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tq=sd(()=>this.shadowRoot,"#content").bind(this);#nT(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let a=this.#tq(),l=this.isVertical,i=this.childElementCount,s=l?a.scrollTop:a.scrollLeft,r=l?a.clientHeight:a.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let a=0;a<i;a++){let i=this.children[a];if(i){let s=(l?i.offsetTop:i.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=a,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#nT().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#nO(e,t?"smooth":"instant")}#nO(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,a=0;a="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tq().scrollTo({left:e?0:a,top:e?a:0,behavior:t})}}get snapDistance(){return this.#nT().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#nO(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#nO(Number(e),"instant")}get[sb](){return this}static{i9(af,aE)}}),aI=[st("inline-image",[(aC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw=[sr("src",!0)],i4(this,ax={value:i5(function(e){e?this.#nI().setAttribute("src",e):this.#nI().removeAttribute("src")},"#handleSrc")},aw,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,aC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#I=i9(this,aC);constructor(e){this.#I=e}#nI=sd(()=>this.#I.shadowRoot,"#img");get #es(){return ax.value}})],sE({}))],aL=[],ak=HTMLElement,(class extends ak{static{aO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ak[Symbol.metadata]??null):void 0;i4(null,aT={value:aO},aI,{kind:"class",name:aO.name,metadata:e},null,aL),aO=aT.value,e&&Object.defineProperty(aO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(aO,aL)}}),aM=[st("inline-text",[])],aR=[],aN=HTMLElement,(class extends aN{static{aP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aN[Symbol.metadata]??null):void 0;i4(null,aA={value:aP},aM,{kind:"class",name:aP.name,metadata:e},null,aR),aP=aA.value,e&&Object.defineProperty(aP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(aP,aR)}}),aH=[st("inline-truncation",[])],aj=[],a_=HTMLElement,n=class extends a_{static{aF=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a_[Symbol.metadata]??null):void 0;i4(null,aD={value:aF},aH,{kind:"class",name:aF.name,metadata:e},null,aj),n=aF=aD.value,e&&Object.defineProperty(aF,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{i9(aF,aj)}},n=aF;let sY=(aW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;az=[sr("text",!0)],i4(this,aU={value:i5(function(e){this.#nL?.remove(),e&&(this.#nL=new Text(e),this.#I.append(this.#nL))},"#handleText")},az,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nk in e,get:e=>e.#nk},metadata:e},null,aW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=i9(this,aW);#nL;constructor(e){this.#I=e}get #nk(){return aU.value}});aB=[st("raw-text",[sY])],aX=[],aq=HTMLElement,class extends aq{static{a$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aq[Symbol.metadata]??null):void 0;i4(null,aV={value:a$},aB,{kind:"class",name:a$.name,metadata:e},null,aX),a$=aV.value,e&&Object.defineProperty(a$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(a$,aX)}};let sG=(aZ=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aY=[sr("text-maxlength",!0),sr("text-maxline",!0),sr("tail-color-convert",!0)],aK=[sl("layout")],i4(this,aG={value:i5(function(){this.#nA=parseFloat(this.#I.getAttribute("text-maxlength")??""),this.#nP=parseFloat(this.#I.getAttribute("text-maxline")??""),this.#nM="false"!==this.#I.getAttribute("tail-color-convert"),this.#nA<0&&(this.#nA=NaN),this.#nP<1&&(this.#nP=NaN),isNaN(this.#nP)?this.#nR().style.removeProperty("-webkit-line-clamp"):this.#nR().style.webkitLineClamp=this.#nP.toString(),this.#nN()},"#handleAttributeChange")},aY,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nD in e,get:e=>e.#nD},metadata:e},null,aZ),i4(this,aJ={value:i5(function(e){this.#nF=e},"#handleEnableLayoutEvent")},aK,{kind:"method",name:"#handleEnableLayoutEvent",static:!1,private:!0,access:{has:e=>#nH in e,get:e=>e.#nH},metadata:e},null,aZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#nj=(i9(this,aZ),!1);#n_=!1;#nz=new Map;#nU;#k;#nW;#nV;#n$=!1;#nA=NaN;#nP=NaN;#nM=!0;#nF=!1;get #nB(){return!this.#nX&&!this.#nM}get #nX(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#I.matches(":has(inline-truncation)");{let e=this.#I.querySelector("inline-truncation");if(e?.parentElement===this.#I)return!0}return!1}get #nq(){return!isNaN(this.#nP)&&(this.#nX||!this.#nM)}#I;constructor(e){this.#I=e}#nR=sd(()=>this.#I.shadowRoot,"#inner-box");#nY(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nz.delete(e)}),"characterData"===e.type&&void 0!==this.#nz.get(e.target)&&this.#nz.set(e.target,e.target.data)})}#nG(){for(let[t,n]of this.#nz)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#I.removeAttribute(e.exceedMathLengthAttribute),this.#I.removeAttribute(e.showInlineTruncation)}#nK(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nN(){!this.#n_||this.#I.matches("x-text>x-text")||this.#nj||(this.#nj=!0,se(async()=>{await this.#nJ(),this.#nZ(),this.#nj=!1}))}async #nJ(){if(this.#nW?.parentElement?.removeChild(this.#nW),this.#nG(),!this.#nq&&isNaN(this.#nA))return;await document.fonts.ready;let t=this.#nR().getBoundingClientRect();this.#nV=new sK(this.#I,t);let n=this.#nV,a=(isNaN(this.#nA)?void 0:n.getNodeInfoByCharIndex(this.#nA))?this.#nA:1/0,l=this.#nq&&n.getLineInfo(this.#nP)?n.getLineInfo(this.#nP-1):void 0,i=1/0,s=3;if(l){let{start:a,end:r}=l,o=r-a;if(this.#nX){this.#I.setAttribute(e.showInlineTruncation,"");let l=this.#I.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){i=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(i),a=r-t.start;for(e.setEnd(t.node,a),e.setStart(t.node,a);e.getBoundingClientRect().width<o&&(i-=1)&&(t=n.getNodeInfoByCharIndex(i));)e.setStart(t.node,i-t.start)}else i=a,this.#I.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,i=a):i=r-3}let r=Math.min(a,i);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let a=r-t.start,l=t.node,i=[];l.nodeType===Node.TEXT_NODE?(this.#nz.set(l,l.data),l.data=l.data.substring(0,a)):i.push(l),i=i.concat(this.#nK(l));let o=l.parentElement;for(;o!==this.#I;)i=i.concat(this.#nK(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nz.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nz.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#nB){let e=(0===a?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#nW=new Text(Array(s).fill(".").join("")),e.append(this.#nW)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#nQ(r)}}#n0=e=>{this.#nY(e),this.#nN()};#n1=()=>{if(this.#n$){this.#n$=!1;return}this.#nN()};#nZ(){this.#n_&&((this.#nA||this.#nP)&&!this.#nU&&(this.#nU=new MutationObserver(this.#n0),this.#nU.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nP&&!this.#k&&(this.#k=new ResizeObserver(this.#n1),this.#n$=!0,this.#k.observe(this.#nR(),{box:"content-box"})))}#n2(){this.#nU?.disconnect(),this.#nU=void 0,this.#k?.disconnect(),this.#k=void 0}get #nD(){return aG.value}get #nH(){return aJ.value}#nQ(e){if(!this.#nF)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#nV||(t.#nV=new sK(t.#I,t.#I.getBoundingClientRect())),t.#nV.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let a=parseFloat(n.toString());if(!isNaN(a)){t.#nV||(t.#nV=new sK(t.#I,t.#I.getBoundingClientRect()));let n=t.#nV.getLineInfo(a);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#I.dispatchEvent(new CustomEvent("layout",{...sn,detail:t}))}dispose(){this.#n2()}connectedCallback(){this.#n_=!0,this.#nH(this.#nF),this.#nD(),se(()=>{this.#nQ()})}});class sK{#n3=[{start:0}];#n8=[];#n4=[];#I;#n9;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sJ(this.#I),this.#n9=t}#n5(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,a=e.node,l=document.createRange();l.selectNode(a);for(let e=0;e<a.data.length;e++){l.setEnd(a,e);let i=l.getClientRects().item(n);if(i&&i.right===t.right)return e}return a.data.length}}#n6(e){if(this.#n8[e])return;let{left:t}=this.#n9,n=this.#n8[this.#n8.length-1],a=n?.[n.length-1],l=a?.nodeIndex?a?.nodeIndex+1:0;for(let n=l,a;(a=this.#n7(n))&&e>=this.#n8.length;n++){let e,{node:n}=a;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#n8[this.#n8.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#n8.push([{...a,rect:l,rectIndex:0}]):n.push({...a,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let i=e[n];(i.left!==l.left||i.bottom!==l.bottom)&&(.2>Math.abs(i.left-t)?this.#n8.push([{...a,rect:i,rectIndex:n}]):this.#n8[this.#n8.length-1].push({...a,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#n6(1/0),this.#n8.length}getLineInfo(e){if(this.#n6(e+1),e<this.#n8.length){let t=e>0?this.#n3[e-1]??{}:void 0,n=this.#n3[e]??{},a=e<this.#n8.length-1?this.#n3[e+1]??{}:void 0;if(void 0===n.start){let a=this.#n8[e-1],l=a[a.length-1],i=this.#n5(l),s=l.start+i;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#n8[e],l=t[t.length-1];if(e===this.#n8.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#n5(l);n.end=l.start+e,a.start=n.end+1}}return n}}#n7(e){let t=this.#n4.length-1,n=this.#n4[t],a=n?n.start+n.length:0;for(let t=this.#n4.length,n;(n=this.nodelist.at(t))&&e>=this.#n4.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:a,nodeIndex:t};this.#n4.push(l)}return this.#n4[e]}getNodeInfoByCharIndex(e){let t,n=0,a=this.#n4.length-1;for(;n<=a;){let l=Math.floor((n+a)/2),i=this.#n4[l],s=i.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=i.start;if(e>=o&&e<o+r){t=i;break}e<o?a=l-1:n=l+1}if(t)return t;for(let t=this.#n4.length,n;n=this.#n7(t);t++)if(e<n.start+n.length)return n}}class sJ{#ae=[];#at;constructor(e){this.#at=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#ae[e]||this.#an(e),this.#ae[e]}#an(e){let t=null;for(;e>=this.#ae.length&&(t=this.#at.nextNode());){this.#ae.push(t);break}}}a1=[st("x-text",[ss,sG,sY],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],a2=[],a3=HTMLElement,(class extends a3{static{a0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a3[Symbol.metadata]??null):void 0;i4(null,aQ={value:a0},a1,{kind:"class",name:a0.name,metadata:e},null,a2),a0=aQ.value,e&&Object.defineProperty(a0,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this;static{i9(a0,a2)}}),lq=[st("x-textarea",[ss,(a7=[],le=[],lt=[],ln=[],la=[],ll=[],li=[],ls=[],lr=[],lo=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a8=[sr("placeholder-color",!0)],a4=[sr("placeholder-font-size",!0)],a9=[sr("placeholder-font-weight",!0)],a5=[sr("placeholder-font-family",!0)],a6=[sr("placeholder",!0)],i4(null,null,a8,{kind:"field",name:"#updatePlaceholderColor",static:!1,private:!0,access:{has:e=>#aa in e,get:e=>e.#aa,set:(e,t)=>{e.#aa=t}},metadata:e},a7,le),i4(null,null,a4,{kind:"field",name:"#updatePlaceholderFontSize",static:!1,private:!0,access:{has:e=>#al in e,get:e=>e.#al,set:(e,t)=>{e.#al=t}},metadata:e},lt,ln),i4(null,null,a9,{kind:"field",name:"#updatePlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#ai in e,get:e=>e.#ai,set:(e,t)=>{e.#ai=t}},metadata:e},la,ll),i4(null,null,a5,{kind:"field",name:"#updatePlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#as in e,get:e=>e.#as,set:(e,t)=>{e.#as=t}},metadata:e},li,ls),i4(null,null,a6,{kind:"field",name:"#handlePlaceholder",static:!1,private:!0,access:{has:e=>#ar in e,get:e=>e.#ar,set:(e,t)=>{e.#ar=t}},metadata:e},lr,lo),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#ao=sd(()=>this.#I.shadowRoot,"#textarea");#aa=i9(this,a7,sc(this.#ao,"--placeholder-color",void 0,!0));#al=(i9(this,le),i9(this,lt,sc(this.#ao,"--placeholder-font-size",void 0,!0)));#ai=(i9(this,ln),i9(this,la,sc(this.#ao,"--placeholder-font-weight",void 0,!0)));#as=(i9(this,ll),i9(this,li,sc(this.#ao,"--placeholder-font-family",void 0,!0)));#ar=(i9(this,ls),i9(this,lr,sL(this.#ao,"placeholder")));#I=i9(this,lo);constructor(e){this.#I=e}}),(lp=[],lv=[],lb=[],lg=[],lf=[],ly=[],lE=[],lS=[],lw=[],lx=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ld=[sr("confirm-type",!0)],lc=[sr("maxlength",!0)],lh=[sr("readonly",!0)],lu=[sr("ios-spell-check",!0)],lm=[sr("show-soft-input-onfocus",!0)],i4(null,null,ld,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},lp,lv),i4(null,null,lc,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},lb,lg),i4(null,null,lh,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},lf,ly),i4(null,null,lu,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},lE,lS),i4(null,null,lm,{kind:"field",name:"#handleShowSoftInputOnfocus",static:!1,private:!0,access:{has:e=>#ad in e,get:e=>e.#ad,set:(e,t)=>{e.#ad=t}},metadata:e},lw,lx),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#I;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#ta=i9(this,lp,sL(this.#ac,"enterkeyhint",e=>null===e?"send":e));#tl=(i9(this,lv),i9(this,lb,sL(this.#ac,"maxlength",e=>null===e?"140":e)));#ti=(i9(this,lg),i9(this,lf,sL(this.#ac,"readonly",e=>null!==e?"":null)));#ts=(i9(this,ly),i9(this,lE,sL(this.#ac,"spellcheck",e=>null===e?"false":"true")));#ad=(i9(this,lS),i9(this,lw,sL(this.#ac,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){i9(this,lx),this.#I=e}}),(lP=[],lM=[],lR=[],lN=[],lD=[],lF=[],lH=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lC=[sr("confirm-enter",!0)],lO=[sr("disabled",!0)],lI=[sr("max-height",!0)],lL=[sr("min-height",!0)],lk=[sr("value",!1)],i4(this,lT={value:i5(function(e){this.#ah=null!==e},"#handleConfirmEnter")},lC,{kind:"method",name:"#handleConfirmEnter",static:!1,private:!0,access:{has:e=>#au in e,get:e=>e.#au},metadata:e},null,lP),i4(this,lA={value:i5(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#ac();t.value!==e&&(t.value=e)},"#handleValue")},lk,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5},metadata:e},null,lP),i4(null,null,lO,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e6 in e,get:e=>e.#e6,set:(e,t)=>{e.#e6=t}},metadata:e},lM,lR),i4(null,null,lI,{kind:"field",name:"#handleMaxHeight",static:!1,private:!0,access:{has:e=>#am in e,get:e=>e.#am,set:(e,t)=>{e.#am=t}},metadata:e},lN,lD),i4(null,null,lL,{kind:"field",name:"#handleMinHeight",static:!1,private:!0,access:{has:e=>#ap in e,get:e=>e.#ap,set:(e,t)=>{e.#ap=t}},metadata:e},lF,lH),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#I=i9(this,lP);#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");#ah=!1;get #au(){return lT.value}#e6=i9(this,lM,sL(this.#ac,"disabled",e=>null!==e?"":null));#am=(i9(this,lR),i9(this,lN,sc(this.#ac,"max-height")));#ap=(i9(this,lD),i9(this,lF,sc(this.#ac,"min-height")));get #e5(){return lA.value}#av=(i9(this,lH),e=>{this.#ah&&"Enter"===e.key&&this.#tv().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#I=e,this.#ac().addEventListener("keyup",this.#av)}}),(l$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lj=[sr("input-filter",!0),sl("lynxinput")],lz=[sr("send-composing-input",!0)],lW=[sl("selection")],i4(this,l_={value:i5(function(e){let t=this.#ac();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableConfirmEvent")},lj,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#ab in e,get:e=>e.#ab},metadata:e},null,l$),i4(this,lU={value:i5(function(e){this.#th=null!==e},"#handleSendComposingInput")},lz,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,l$),i4(this,lV={value:i5(function(e){e?this.#ac().addEventListener("select",this.#tm,{passive:!0}):this.#ac().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},lW,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,l$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i9(this,l$);#th=!1;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");get #ab(){return l_.value}get #tu(){return lU.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#ac().value}}))};#to=e=>{let t=this.#ac(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#ac(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return lV.value}#tm=()=>{let e=this.#ac();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#ac()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#ac(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sO)],lY=[],lG=HTMLElement,(class extends lG{static{lX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lG[Symbol.metadata]??null):void 0;i4(null,lB={value:lX},lq,{kind:"class",name:lX.name,metadata:e},null,lY),lX=lB.value,e&&Object.defineProperty(lX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(lX,lY)}#ao=sd(()=>this.shadowRoot,"#textarea");get value(){return this.#ao().value}set value(e){this.#ao().value=e}addText(e){let{text:t}=e,n=this.#ao(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}setValue(e){let t,n=this.#ao();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#ao();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#ao();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#ao();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#ao().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lZ=[st("x-view",[ss])],lQ=[],l0=HTMLElement,(class extends l0{static{lJ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l0[Symbol.metadata]??null):void 0;i4(null,lK={value:lJ},lZ,{kind:"class",name:lJ.name,metadata:e},null,lQ),lJ=lK.value,e&&Object.defineProperty(lJ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(lJ,lQ)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this}),l9=[st("x-blur-view",[ss,(l3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l1=[sr("blur-radius",!0)],i4(this,l2={value:i5(function(e){e?(e=`blur(${parseFloat(e)}px)`,this.#ag().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#ag().innerHTML=""},"#handleBlurRadius")},l1,{kind:"method",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX},metadata:e},null,l3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=i9(this,l3);#ag=sd(()=>this.#I.shadowRoot,"#dynamic-style");get #eX(){return l2.value}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],l5=[],l6=HTMLElement,(class extends l6{static{l4=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l6[Symbol.metadata]??null):void 0;i4(null,l8={value:l4},l9,{kind:"class",name:l4.name,metadata:e},null,l5),l4=l8.value,e&&Object.defineProperty(l4,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(l4,l5)}}),ir=[st("x-viewpager-ng",[ss,(il=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l7=[sl("change")],it=[sl("offsetchange")],i4(this,ie={value:i5(function(e){this.#af=e,this.#ay()},"#enableChangeEvent")},l7,{kind:"method",name:"#enableChangeEvent",static:!1,private:!0,access:{has:e=>#aE in e,get:e=>e.#aE},metadata:e},null,il),i4(this,ia={value:i5(function(e){this.#af=e,this.#ay()},"#enableOffsetChangeEvent")},it,{kind:"method",name:"#enableOffsetChangeEvent",static:!1,private:!0,access:{has:e=>#aS in e,get:e=>e.#aS},metadata:e},null,il),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i9(this,il);#aw=!1;#t=!1;#ax=0;#V;constructor(e){this.#I=e}#X=sd(()=>this.#I.shadowRoot,"#content");#aC=()=>{if(!this.#t)return;let e=this.#X(),t=this.#I.clientWidth,n=e.scrollLeft;this.#af&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#aT()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...sn,detail:{offset:n/t}}))};#aT=()=>{if(this.#t){let e=this.#X(),t=this.#I.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#ax&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{index:n,isDragged:this.#aw}})),this.#ax=n)}};#aO=()=>{this.#aw=!0};#aI=()=>{this.#aw=!1};#af=!1;get #aE(){return ie.value}#aL=!1;get #aS(){return ia.value}#ay(){let e=this.#X();this.#aL||this.#af?e.addEventListener("scroll",this.#aC,{passive:!0}):e.removeEventListener("scroll",this.#aC),sp&&this.#af?e.addEventListener("scrollend",this.#aT,{passive:!0}):e.removeEventListener("scrollend",this.#aT)}connectedCallback(){this.#t=!0;let e=this.#X();this.#I.addEventListener("touchstart",this.#aO,{passive:!0}),e.addEventListener("touchend",this.#aI,{passive:!0}),e.addEventListener("touchcancel",this.#aI,{passive:!0})}dispose(){let e=this.#X();e.removeEventListener("scroll",this.#aC),e.removeEventListener("scrollend",this.#aT)}})],sI)],io=[],id=HTMLElement,(class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;i4(null,ii={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),is=ii.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let a=this.shadowRoot.children.item(2),l=a.clientWidth*t;a.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),a=()=>{0===n.clientWidth?requestAnimationFrame(a):this.selectTab({index:t,smooth:!1})};se(a)}}get[sb](){return this}static{i9(is,io)}}),iu=[st("x-viewpager-item-ng",[ss])],im=[],ip=HTMLElement,(class extends ip{static{ih=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ip[Symbol.metadata]??null):void 0;i4(null,ic={value:ih},iu,{kind:"class",name:ih.name,metadata:e},null,im),ih=ic.value,e&&Object.defineProperty(ih,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ih,im)}}),iE=[st("list-item",[ss,(iv=[],ib=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i4(null,null,[sr("estimated-main-axis-size-px",!0)],{kind:"field",name:"#handlerEstimatedMainAxisSizePx",static:!1,private:!0,access:{has:e=>#ak in e,get:e=>e.#ak,set:(e,t)=>{e.#ak=t}},metadata:e},iv,ib),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#I;#ak=i9(this,iv,sc(()=>this.#I,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){i9(this,ib),this.#I=e}})])],iS=[],iw=HTMLElement,class extends iw{static{iy=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iw[Symbol.metadata]??null):void 0;i4(null,ig={value:iy},iE,{kind:"class",name:iy.name,metadata:e},null,iS),iy=ig.value,e&&Object.defineProperty(iy,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(iy,iS)}};let sZ=function(e,t,n){let a,l,i,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),a=null,s=e.apply(l,i),a||(l=i=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),r=d,s=e.apply(l,i),a||(l=i=null)):a||n?.trailing===!1||(a=setTimeout(o,c)),s}},sQ="waterfall-slot",s0="waterfall-style";i2=[st("x-list",[ss,(iT=[],iO=[],iI=[],iL=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ix=[sr("sticky-offset",!0)],iC=[sr("span-count",!0),sr("column-count",!0)],i4(null,null,ix,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#aA in e,get:e=>e.#aA,set:(e,t)=>{e.#aA=t}},metadata:e},iT,iO),i4(null,null,iC,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#aP in e,get:e=>e.#aP,set:(e,t)=>{e.#aP=t}},metadata:e},iI,iL),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#I;#aA=i9(this,iT,sc(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#aP=(i9(this,iO),i9(this,iI,sc(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){i9(this,iL),this.#I=e}connectedCallback(){let e=this.#I.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#I.clientHeight?requestAnimationFrame(n):this.#I.scrollToPosition({position:t})};se(n)}}}),(ij=[],i_=[],iz=[],iU=[],iW=[],iV=[],i$=[],iB=[],iX=[],iq=[],iY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ik=[sl("scrolltoupper")],iA=[sr("upper-threshold-item-count",!0)],iM=[sl("scrolltolower")],iR=[sr("lower-threshold-item-count",!0)],iD=[sl("lynxscroll"),sl("lynxscrollend"),sl("snap")],iF=[sl("scrolltoupperedge")],iH=[sl("scrolltoloweredge")],i4(this,iP={value:i5(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#q():this.#I.children[n-1];a&&this.#aM?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#q():this.#I.children[l-1];i&&this.#aM?.observe(i)},"#handleUpperThresholdItemCountChange")},iA,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aR in e,get:e=>e.#aR},metadata:e},null,ij),i4(this,iN={value:i5(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#Y():this.#I.children[this.#I.children.length-n];a&&this.#aN?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#Y():this.#I.children[this.#I.children.length-l];i&&this.#aN?.observe(i)},"#handleLowerThresholdItemCountChange")},iR,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aD in e,get:e=>e.#aD},metadata:e},null,ij),i4(null,null,ik,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#aF in e,get:e=>e.#aF,set:(e,t)=>{e.#aF=t}},metadata:e},i_,iz),i4(null,null,iM,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#aH in e,get:e=>e.#aH,set:(e,t)=>{e.#aH=t}},metadata:e},iU,iW),i4(null,null,iD,{kind:"field",name:"#handleScrollEventsSwitches",static:!1,private:!0,access:{has:e=>#ea in e,get:e=>e.#ea,set:(e,t)=>{e.#ea=t}},metadata:e},iV,i$),i4(null,null,iF,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aj in e,get:e=>e.#aj,set:(e,t)=>{e.#aj=t}},metadata:e},iB,iX),i4(null,null,iH,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#a_ in e,get:e=>e.#a_,set:(e,t)=>{e.#a_=t}},metadata:e},iq,iY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#I=i9(this,ij);#az=sd(()=>this.#I.shadowRoot,"#content");#aM;#aN;#aU;#$=0;#B=0;#aW=!1;#V;#q=sd(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=sd(()=>this.#I.shadowRoot,"#lower-threshold-observer");#K(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l}=this.#az(),i={scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l,deltaX:n-this.#$,deltaY:t-this.#B,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#$=n,this.#B=t,i}#aV=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...sn,detail:this.#K()}))};#aF=i9(this,i_,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#tO.scrolltoupper=e,e){this.#aM||(this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aR(){return iP.value}#aB=(i9(this,iz),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...sn,detail:this.#K()}))});#tO={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#aH=i9(this,iU,e=>{if(this.#tO.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#aN||(this.#aN=new IntersectionObserver(this.#aB,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aN.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aN&&(this.#aN.disconnect(),this.#aN=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aD(){return iN.value}#a$=(i9(this,iW),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tO.scrolltolower){this.#aN&&(this.#aN.disconnect(),this.#aN=void 0),this.#aN=new IntersectionObserver(this.#aB,{root:this.#az()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aN.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()});let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n)}}});#aX=null;#Q=()=>{this.#aW&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...sn,detail:this.#K()}))};#ea=i9(this,iV,(e,t)=>{this.#tO[t]=e;let{lynxscroll:n,lynxscrollend:a,snap:l}=this.#tO,i=this.#I.getAttribute("scroll-event-throttle");this.#aW=null!==a||null!==l;let s=this.#az();if(this.#aX&&s.removeEventListener("scroll",this.#aX),null!==scroll||this.#aW){let e=null!==i?parseFloat(i):0,t=sZ(this.#Q,e,{leading:!0,trailing:!1});this.#aX=t,s.addEventListener("scroll",this.#aX),this.#$=0,this.#B=0}sp&&this.#aW?s.addEventListener("scrollend",this.#et):s.removeEventListener("scrollend",this.#et)});#G=(i9(this,i$),e=>{let{isIntersecting:t,target:n}=e[0],a=n.id;t&&("upper-threshold-observer"===a?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...sn,detail:this.#K()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...sn,detail:this.#K()})))});#aj=i9(this,iB,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#aq(e)});#aq=(i9(this,iX),sm(this.#az,this.#q,this.#G));#a_=i9(this,iq,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#aY(e)});#aY=(i9(this,iY),sm(this.#az,this.#Y,this.#G));#et=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#az().scrollTop,n=this.#az().scrollLeft,a=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...sn,detail:{position:a&&e.indexOf(a),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(iQ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iG=[sl("scrolltolower")],iJ=[sr("list-type",!0)],i4(this,iK={value:i5(function(e){if(e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#aG(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#az();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}},"#handleXEnableHeaderOffsetEvent")},iG,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,iQ),i4(this,iZ={value:i5(function(e){if("waterfall"===e)this.#aK(),this.#k||this.#aJ(),this.#aU||(this.#aU=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#aJ()}),this.#aU.observe(this.#I,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#aU?.disconnect(),this.#aU=void 0;for(let e=0;e<this.#I.children.length;e++)this.#I.children[e].removeAttribute("slot");this.#I.shadowRoot?.querySelector(`slot[name=${sQ}]`)?.remove()}},"#handlerListType")},iJ,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#aZ in e,get:e=>e.#aZ},metadata:e},null,iQ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=i9(this,iQ);#az=sd(()=>this.#I.shadowRoot,"#content");#aG=sd(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#aU;get #tM(){return iK.value}#aK=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sQ}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#aQ=()=>{let e=parseFloat(this.#I.getAttribute("span-count")||this.#I.getAttribute("column-count")||"")||1,t="vertical"===(this.#I.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let a=0;a<this.#I.children.length;a++){let l=this.#I.children[a],i=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(i):l.getBoundingClientRect().width+parseFloat(i);if(null!==l.getAttribute("full-span")){let a=n[0];for(let t=1;t<e;t++)n[t]>a&&(a=n[t]);for(let t=0;t<e;t++)n[t]=a+r;t?(l.setAttribute(`${s0}-left`,"0"),l.setAttribute(`${s0}-top`,`${a}px`)):(l.setAttribute(`${s0}-left`,`${a}px`),l.setAttribute(`${s0}-top`,"0"))}else{let a=0,i=n[0];for(let t=1;t<e;t++)n[t]<i&&(a=t,i=n[t]);let o=`calc(${a} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,a)} * ${s})`;t?(l.setAttribute(`${s0}-left`,o),l.setAttribute(`${s0}-top`,`${i}px`)):(l.setAttribute(`${s0}-left`,`${i}px`),l.setAttribute(`${s0}-top`,o)),n[a]+=r}}for(let e=0;e<this.#I.children.length;e++){let t=this.#I.children[e];t.style.setProperty("left",t.getAttribute(`${s0}-left`)),t.style.setProperty("top",t.getAttribute(`${s0}-top`)),t.setAttribute("slot",sQ)}};constructor(e){this.#I=e}#aJ=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#aQ()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};get #aZ(){return iZ.value}})],sw)],i3=[],i8=HTMLElement,class extends i8{static{i1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i8[Symbol.metadata]??null):void 0;i4(null,i0={value:i1},i2,{kind:"class",name:i1.name,metadata:e},null,i3),i1=i0.value,e&&Object.defineProperty(i1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#az=sd(()=>this.shadowRoot,"#content");#a0={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#a1={};get scrollTop(){return this.#az().scrollTop}set scrollTop(e){this.#az().scrollTop=e}get scrollLeft(){return this.#az().scrollTop}set scrollLeft(e){this.#az().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#az().scrollTop=0,this.#az().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#az().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#a2=e=>{if(!this.#a0.isScrolling)return;if(!this.#a0.lastTimestamp){this.#a0.lastTimestamp=e,requestAnimationFrame(this.#a2);return}let t=this.#az(),n=(e-this.#a0.lastTimestamp)/1e3*this.#a0.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#a0.lastTimestamp=e;let a="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(a?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#a0.autoStop?(a?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#a0.isScrolling=!1):requestAnimationFrame(this.#a2)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#a0={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#az(),a="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#a0.lastTimestamp=0,a?setTimeout(()=>requestAnimationFrame(this.#a2),0):requestAnimationFrame(this.#a2)}else this.#a0.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#a1),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#a3=()=>Object.values(this.#a1).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#a8=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",a="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#a3();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...sn,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#a3()}}))},100);return}if(a){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#a1[n]&&delete this.#a1[n]:this.#a1[n]=e.target;return}};connectedCallback(){this.#az().addEventListener("contentvisibilityautostatechange",this.#a8,{passive:!0})}static{i9(i1,i3)}}},198:function(e,t,n){n.a(e,async function(e,t){try{var a=n(506);n(125),n(407),n(12);var l=e([a]);a=(l.then?(await l)():l)[0];let s=document.getElementById("qr-scanner"),r=document.getElementById("lynx-view"),o=document.getElementById("back-button"),d=document.getElementById("nav"),c="preinstalled/homepage.json";o.addEventListener("click",()=>{i(c)});let h=new QrScanner(s,e=>{console.log("qr",e),r.style.visibility="visible",h.stop();let t=e.data;i(t)},{highlightScanRegion:!0,highlightCodeOutline:!0});function i(e){let t=window.matchMedia("(prefers-color-scheme: dark)").matches?"Dark":"Light";if(r.onNativeModulesCall=(e,t)=>{"openScan"===e?(r.style.visibility="hidden",h.start()):"openSchema"===e&&i(t)},r.globalProps={theme:t},e===c)d.style.display="none",r.url=e,d.style.setProperty("--bar-color",null);else{let{searchParams:t}=new URL(e);t.has("bar_color")&&d.style.setProperty("--bar-color",`#${t.get("bar_color")}`),t.has("fullscreen")&&"true"===t.get("fullscreen")?d.style.display="none":d.style.display="flex",r.url=e}}i(c),window.addEventListener("message",e=>{if(e.data&&"setLynxViewUrl"===e.data.method&&e.data.url){let t=r.parentElement;r.remove(),(r=document.createElement("lynx-view")).setAttribute("style","flex: 0 1 100vh; height:100vh;width:100vw;"),t.append(r),i(e.data.url)}}),t()}catch(e){t(e)}})}},l={};function i(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,exports:{}};return a[e](n,n.exports,i),n.exports}i.m=a,r=(s="function"==typeof Symbol)?Symbol("webpack queues"):"__webpack_queues__",o=i.aE=s?Symbol("webpack exports"):"__webpack_exports__",d=s?Symbol("webpack error"):"__webpack_error__",c=s?Symbol("webpack done"):"__webpack_done__",h=i.zS=s?Symbol("webpack defer"):"__webpack_defer__",u=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},i.a=(e,t,n)=>{n&&((a=[]).d=-1);var a,s,m,p,v=new Set,b=e.exports,g=new Promise((e,t)=>{p=t,m=e});g[o]=b,g[r]=e=>{a&&e(a),v.forEach(e),g.catch(function(){})},e.exports=g,t(e=>{s=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[r]&&e[h]){var t=e[h];if(!t.some(e=>{var t=l[e];return!t||!1===t[c]}))return e;var n=e;e={then(e){Promise.all(t.map(i)).then(()=>e(n))}}}if(e[r])return e;if(e.then){var a=[];a.d=0,e.then(e=>{s[o]=e,u(a)},e=>{s[d]=e,u(a)});var s={};return s[h]=!1,s[r]=e=>e(a),s}}var m={};return m[r]=function(){},m[o]=e,m});var t,n=()=>s.map(e=>{if(e[h])return e;if(e[d])throw e[d];return e[o]}),m=new Promise(e=>{(t=()=>e(n)).r=0;var l=e=>e!==a&&!v.has(e)&&(v.add(e),e&&!e.d&&(t.r++,e.push(t)));s.map(e=>e[h]||e[r](l))});return t.r?m:n()},e=>(e?p(g[d]=e):m(b),u(a),g[c]=!0)),a&&a.d<0&&(a.d=0)},i.F={},i.E=e=>{Object.keys(i.F).map(t=>{i.F[t](e)})},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=(e,t)=>Promise.all(Object.keys(i.f).reduce((n,a)=>(i.f[a](e,n,t),n),[])),i.u=e=>"static/js/async/"+(({361:"web-core-main-thread-apis",8:"legacy-wasm-chunk"})[e]||e)+".js",i.miniCssF=e=>""+e+".css",i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m={},i.l=function(e,t,n,a,l){if(m[e])return void m[e].push(t);if(void 0!==n)for(var s,r,o=document.getElementsByTagName("script"),d=0;d<o.length;d++){var c=o[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@lynx-js/web-explorer:"+n){s=c;break}}s||(r=!0,(s=document.createElement("script")).timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack","@lynx-js/web-explorer:"+n),l&&s.setAttribute("fetchpriority",l),s.src=e),m[e]=[t];var h=function(t,n){s.onerror=s.onload=null,clearTimeout(u);var a=m[e];if(delete m[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),r&&document.head.appendChild(s)},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p=[],i.O=(e,t,n,a)=>{if(t){a=a||0;for(var l=p.length;l>0&&p[l-1][2]>a;l--)p[l]=p[l-1];p[l]=[t,n,a];return}for(var s=1/0,l=0;l<p.length;l++){for(var[t,n,a]=p[l],r=!0,o=0;o<t.length;o++)(!1&a||s>=a)&&Object.keys(i.O).every(e=>i.O[e](t[o]))?t.splice(o--,1):(r=!1,a<s&&(s=a));if(r){p.splice(l--,1);var d=n();void 0!==d&&(e=d)}}return e},i.v=function(e,t,n,a){var l=fetch(i.p+"static/wasm/"+n.slice(0,8)+".module.wasm"),s=function(){return l.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,a)}).then(function(t){return Object.assign(e,t.instance.exports)})};return l.then(function(t){return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,a).then(function(t){return Object.assign(e,t.instance.exports)},function(e){if("application/wasm"!==t.headers.get("Content-Type"))return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e),s();throw e}):s()})},i.g.importScripts&&(v=i.g.location+"");var s,r,o,d,c,h,u,m,p,v,b=i.g.document;if(!v&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(v=b.currentScript.src),!v)){var g=b.getElementsByTagName("script");if(g.length)for(var f=g.length-1;f>-1&&(!v||!/^http(s?):/.test(v));)v=g[f--].src}if(!v)throw Error("Automatic publicPath is not supported in this browser");i.p=(v=v.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../",i.b=document.baseURI||self.location.href,e={410:0},i.f.j=function(t,n,a){var l=i.o(e,t)?e[t]:void 0;if(0!==l)if(l)n.push(l[2]);else{var s=new Promise((n,a)=>l=e[t]=[n,a]);n.push(l[2]=s);var r=i.p+i.u(t),o=Error();i.l(r,function(n){if(i.o(e,t)&&(0!==(l=e[t])&&(e[t]=void 0),l)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",o.name="ChunkLoadError",o.type=a,o.request=s,l[1](o)}},"chunk-"+t,t,a)}},i.F.j=t=>{if(!i.o(e,t)||void 0===e[t]){e[t]=null;var n=document.createElement("link");i.nc&&n.setAttribute("nonce",i.nc),n.rel="prefetch",n.as="script",n.href=i.p+i.u(t),document.head.appendChild(n)}},i.O.j=t=>0===e[t],t=(t,n)=>{var a,l,[s,r,o]=n,d=0;if(s.some(t=>0!==e[t])){for(a in r)i.o(r,a)&&(i.m[a]=r[a]);if(o)var c=o(i)}for(t&&t(n);d<s.length;d++)l=s[d],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.O(c)},(n=globalThis.webpackChunk_lynx_js_web_explorer=globalThis.webpackChunk_lynx_js_web_explorer||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),i.O(0,["410"],()=>{i.E("361")},5);var y=i(198);y=i.O(y)})();
307
+ ></div>`)],V=[],$=HTMLElement,e=class extends ${static{U=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create($[Symbol.metadata]??null):void 0;i4(null,z={value:U},W,{kind:"class",name:U.name,metadata:t},null,V),e=U=z.value,t&&Object.defineProperty(U,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#ei;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#ei),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#ei=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[sb](){return this}static{i9(U,V)}},e=U;let sk=Symbol("__src"),sA=Symbol("__src"),sP={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sM={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=a||(a={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let sR=(K=[],J=[],Z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;B=[sr("src",!0)],q=[sr("loop",!0)],Y=[sr("pause-on-hide",!0)],i4(this,X={value:i5(function(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})),this.#I[sk]=t,this.#I[sA]=void 0,this.#I.stop()},"#handleSrc")},B,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,K),i4(this,G={value:i5(function(e){null!==e?document.addEventListener("visibilitychange",this.#er,{passive:!0}):document.removeEventListener("visibilitychange",this.#er)},"#handlePauseOnHide")},Y,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#eo in e,get:e=>e.#eo},metadata:e},null,K),i4(null,null,q,{kind:"field",name:"#handleLoop",static:!1,private:!0,access:{has:e=>#ed in e,get:e=>e.#ed,set:(e,t)=>{e.#ed=t}},metadata:e},J,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=i9(this,K);#ec=sd(()=>this.#I.shadowRoot,"#audio");#eh=sL(this.#ec,"src");get #es(){return X.value}#ed=i9(this,J,sL(this.#ec,"loop"));#er=(i9(this,Z),()=>{"hidden"===document.visibilityState&&this.#I.pause()});get #eo(){return G.value}constructor(e){this.#I=e}});class sN{static observedAttributes=[];#I;#eu;#ec=sd(()=>this.#I.shadowRoot,"#audio");#em=e=>{let t=Number(this.#I.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#eu=setInterval(()=>{this.#I.dispatchEvent(new CustomEvent("timeupdate",{...sn,detail:{currentTime:this.#ec().currentTime,currentSrcID:this.#I[sk]?.id}}))},n);let a=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:a?.code,type:a?.type,currentSrcID:this.#I[sk]?.id}}))};#ep=e=>{clearInterval(this.#eu);let t=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#ev=e=>{let t=sP[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#eb=e=>{this.#ev(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?a.PlayerLoadingError:a.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=a.PlayerLoadingError),this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[sk]?.id}}))};#eg=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...sn,detail:{loop:e,currentSrcID:this.#I[sk]?.id}}))};constructor(e){this.#I=e}connectedCallback(){let e=this.#ec();e.addEventListener("play",this.#em,{passive:!0}),e.addEventListener("pause",this.#ep,{passive:!0}),e.addEventListener("ended",this.#eg,{passive:!0}),e.addEventListener("loadstart",this.#ev,{passive:!0}),e.addEventListener("canplay",this.#ev,{passive:!0}),e.addEventListener("stalled",this.#ev,{passive:!0}),e.addEventListener("error",this.#eb,{passive:!0})}}et=[st("x-audio-tt",[ss,sR,sN],'<audio id="audio"></audio>')],en=[],ea=HTMLElement,(class extends ea{static{ee=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ea[Symbol.metadata]??null):void 0;i4(null,Q={value:ee},et,{kind:"class",name:ee.name,metadata:e},null,en),ee=Q.value,e&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ee,en)}#ef=sd(()=>this.shadowRoot,"#audio");#ec=sd(()=>this.shadowRoot,"#audio");#eh=sL(this.#ec,"src");[sk];[sA];#ey=()=>{let e,t=this[sk];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[sA]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:0,type:"loading",currentSrcID:t.id}}));let i=await fetch(t.play_url,{headers:e});i.ok||(this.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await i.blob(),r=URL.createObjectURL(s);this.#eh(r),n()})}};play(){return this[sA]||this.#ey(),this[sA]?.then(()=>{let e=this.#ef();e.currentTime=0,e.play()}),{currentSrcID:this[sk]?.id,loadingSrcID:""}}stop(){let e=this.#ef(),t=sM.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this[sk]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[sk]?.id}}pause(){return this.#ef().pause(),{currentSrcID:this[sk]?.id}}resume(){return this.#ef().play(),{currentSrcID:this[sk]?.id,loadingSrcID:""}}seek(e){return this.#ef().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...sn,detail:{seekresult:1,currentSrcID:this[sk]?.id}})),{currentSrcID:this[sk]?.id}}mute(e){return this.#ef().muted=e.mute,{currentSrcID:this[sk]?.id}}playerInfo(){var e;let t=this.#ef(),n=t.buffered,a=n.end(n.length-1);return{currentSrcID:this[sk]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:a}}prepare(){this[sA]||this.#ey()}setVolume(e){return this.#ef().volume=e.volume,{code:1}}}),ev=[st("x-canvas",[ss,(er=[],eo=[],ed=[],ec=[],eh=[],eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;el=[sr("name",!0)],ei=[sr("height",!0)],es=[sr("width",!0)],i4(null,null,el,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},er,eo),i4(null,null,ei,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ed,ec),i4(null,null,es,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},eh,eu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#I;#k;#eE=sd(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=i9(this,er,sL(this.#eE,"name"));handleHeight=(i9(this,eo),i9(this,ed,sL(this.#eE,"height")));handleWidth=(i9(this,ec),i9(this,eh,sL(this.#eE,"width")));#eS=(i9(this,eu),e=>{let{contentRect:t}=e[0],n=this.#I.shadowRoot.firstElementChild;if(n){let{height:e,width:a}=t;e*=window.devicePixelRatio,a*=window.devicePixelRatio;let l=new CustomEvent("resize",{...sn,detail:{height:e,width:a}});l.height=e,l.width=a,n.dispatchEvent(l)}});#ew(){this.#k||(this.#k=new ResizeObserver(this.#eS),this.#k.observe(this.#I))}#ex(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#ew()}dispose(){this.#ex()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],eb=[],eg=HTMLElement,class extends eg{static{ep=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eg[Symbol.metadata]??null):void 0;i4(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}),i9(ep,eb)}};let sD=(ew=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ef=[sr("granularity",!0)],eE=[sl("offset")],i4(this,ey={value:i5(function(e){e&&""!==e?this.#eC=parseFloat(e):this.#eC=.01},"#handleGranularity")},ef,{kind:"method",name:"#handleGranularity",static:!1,private:!0,access:{has:e=>#eT in e,get:e=>e.#eT},metadata:e},null,ew),i4(this,eS={value:i5(function(e){e?this.#I.addEventListener("scroll",this.#Q,{passive:!0}):this.#I.removeEventListener("scroll",this.#Q)},"#enableOffsetEvent")},eE,{kind:"method",name:"#enableOffsetEvent",static:!1,private:!0,access:{has:e=>#eO in e,get:e=>e.#eO},metadata:e},null,ew),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i9(this,ew);#eC=.01;#eI=0;constructor(e){this.#I=e}static observedAttributes=["granularity"];get #eT(){return ey.value}get #eO(){return eS.value}#Q=()=>{let e=this.#I.scrollTop;(Math.abs(this.#eI-e)>this.#eC||0===this.#I.scrollTop||1>=Math.abs(this.#I.scrollHeight-this.#I.clientHeight-this.#I.scrollTop))&&(this.#eI=e,this.#I.dispatchEvent(new CustomEvent("offset",{...sn,detail:{offset:e,height:this.#I[sF]}})))}}),sF=Symbol("scrollableLength"),sH=Symbol("isHeaderShowing"),sj=Symbol("resizeObserver"),s_=Symbol("slotKid");eT=[st("x-foldview-ng",[ss,sD])],eO=[],eI=HTMLElement,class extends eI{static{eC=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;i4(null,ex={value:eC},eT,{kind:"class",name:eC.name,metadata:e},null,eO),eC=ex.value,e&&Object.defineProperty(eC,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[s_];[sj]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eL=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ek=t.contentRect.height);this[s_]&&(this[s_].style.top=`${this.#eL-this.#ek}px`)});#eL=0;#ek=0;get[sF](){return this.#eL-this.#ek}get[sH](){return this[sF]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sF]?e=this[sF]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,a=parseFloat(t);this.scrollTo({top:a,behavior:n?"smooth":"instant"})}get[sb](){return this}disconnectedCallback(){this[sj]?.disconnect(),this[sj]=void 0}static{i9(eC,eO)}};let sz=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};eA=[st("x-foldview-header-ng",[ss])],eP=[],eM=HTMLElement,(class extends eM{static{ek=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eM[Symbol.metadata]??null):void 0;i4(null,eL={value:ek},eA,{kind:"class",name:ek.name,metadata:e},null,eP),ek=eL.value,e&&Object.defineProperty(ek,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ek,eP)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sj],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}}),eD=[st("x-foldview-slot-drag-ng",[ss])],eF=[],eH=HTMLElement,class extends eH{static{eN=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eH[Symbol.metadata]??null):void 0;i4(null,eR={value:eN},eD,{kind:"class",name:eN.name,metadata:e},null,eF),eN=eR.value,e&&Object.defineProperty(eN,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(eN,eF)}};class sU{#eP=0;#eM=new WeakMap;#eR;#eN=0;#eD=0;#eF=null;#eH;#ej=0;#I;static observedAttributes=[];constructor(e){this.#I=e,this.#I.addEventListener("touchmove",this.#e_,{passive:!1}),this.#I.addEventListener("touchstart",this.#ez,{passive:!0}),this.#I.addEventListener("touchend",this.#eU,{passive:!0})}#eW(e){return this.#eR?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,a=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||a}return!1})}#eV(e,t){let n=this.#eM.get(e)??0;n+=t,this.#eM.set(e,n),e.scrollTop=n}#e_=e=>{let t=this.#e$(),{pageY:n,pageX:a}=e.touches.item(0),l=this.#eN-n;if(null===this.#eF){let e=this.#eD-a;this.#eF=Math.abs(l)>Math.abs(e)}if(!1===this.#eF)return;let i=this.#eW(l);t&&(e.cancelable&&e.preventDefault(),t[sH]&&l>0||l<0&&!i||!t[sH]&&!i?(t.scrollBy({top:l,behavior:"smooth"}),this.#eP+=l,t.scrollTop=this.#eP,this.#eH=t):i&&(this.#eH=i,this.#eV(i,l))),this.#eN=n,this.#ej=l};#e$(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#ez=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#eR=document.elementsFromPoint(t,n).filter(e=>this.#I.contains(e)),this.#eN=n,this.#eD=t,this.#eP=this.#e$()?.scrollTop??0,this.#eR))this.#eM.set(e,e.scrollTop);this.#eF=null,this.#eH=void 0};#eU=()=>{if(this.#eF=null,this.#eH){let e=this.#e$();(this.#eH!==e||e[sH])&&this.#eH.scrollBy({top:4*this.#ej,behavior:"smooth"})}}}ez=[st("x-foldview-slot-ng",[ss,sU])],eU=[],eW=HTMLElement,(class extends eW{static{e_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eW[Symbol.metadata]??null):void 0;i4(null,ej={value:e_},ez,{kind:"class",name:e_.name,metadata:e},null,eU),e_=ej.value,e&&Object.defineProperty(e_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(e_,eU)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[s_]=this)}}),eB=[st("x-foldview-toolbar-ng",[ss])],eX=[],eq=HTMLElement,class extends eq{static{e$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eq[Symbol.metadata]??null):void 0;i4(null,eV={value:e$},eB,{kind:"class",name:e$.name,metadata:e},null,eX),e$=eV.value,e&&Object.defineProperty(e$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(e$,eX)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sj],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}};let sW=(e2=[],e3=[],e8=[],e4=[],e9=[],e5=[],e6=[],e7=[],te=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eK=[sr("src",!0)],eJ=[sr("placeholder",!0)],eQ=[sr("blur-radius",!0)],e0=[sr("crossorigin",!0)],e1=[sr("referrerpolicy",!0)],i4(this,eZ={value:i5(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},eJ,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#eB in e,get:e=>e.#eB},metadata:e},null,e2),i4(null,null,eK,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es,set:(e,t)=>{e.#es=t}},metadata:e},e3,e8),i4(null,null,eQ,{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},e4,e9),i4(null,null,e0,{kind:"field",name:"#handleCrossorigin",static:!1,private:!0,access:{has:e=>#eq in e,get:e=>e.#eq,set:(e,t)=>{e.#eq=t}},metadata:e},e5,e6),i4(null,null,e1,{kind:"field",name:"#handleReferrerpolicy",static:!1,private:!0,access:{has:e=>#eY in e,get:e=>e.#eY,set:(e,t)=>{e.#eY=t}},metadata:e},e7,te),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#I=i9(this,e2);#eG=sd(()=>this.#I.shadowRoot,"#img");#es=i9(this,e3,sL(this.#eG,"src",e=>e||this.#I.getAttribute("placeholder")));get #eB(){return eZ.value}#eX=(i9(this,e8),i9(this,e4,sc(this.#eG,"--blur-radius",void 0,!0)));#eq=(i9(this,e9),i9(this,e5,sL(this.#eG,"crossorigin")));#eY=(i9(this,e6),i9(this,e7,sL(this.#eG,"referrerpolicy")));#eK=(i9(this,te),()=>{let e=this.#eG().src,t=this.#I.getAttribute("placeholder");t&&e!==t&&(this.#eG().src=t)});constructor(e){this.#I=e,this.#eG().addEventListener("error",this.#eK)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this.#es(null)}}),sV=(ti=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tt=[sl("load")],ta=[sl("error")],i4(this,tn={value:i5(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#enableLoadEvent")},tt,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,ti),i4(this,tl={value:i5(function(e){e?this.#eG().addEventListener("error",this.#eQ,{passive:!0}):this.#eG().removeEventListener("error",this.#eQ)},"#enableErrorEvent")},ta,{kind:"method",name:"#enableErrorEvent",static:!1,private:!0,access:{has:e=>#e0 in e,get:e=>e.#e0},metadata:e},null,ti),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i9(this,ti);#eG=sd(()=>this.#I.shadowRoot,"#img");get #eZ(){return tn.value}get #e0(){return tl.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};#eQ=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{}}))};constructor(e){this.#I=e}});to=[st("filter-image",[ss,sW,(eY=[],eG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i4(null,null,[sr("drop-shadow",!0)],{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},eY,eG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#eG=sd(()=>this.#I.shadowRoot,"#img");#eX=i9(this,eY,sc(this.#eG,"--drop-shadow",void 0,!0));constructor(e){i9(this,eG),this.#I=e}}),sV],sE({}))],td=[],tc=HTMLElement,(class extends tc{static{tr=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tc[Symbol.metadata]??null):void 0;i4(null,ts={value:tr},to,{kind:"class",name:tr.name,metadata:e},null,td),tr=ts.value,e&&Object.defineProperty(tr,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(tr,td)}}),tm=[st("x-image",[ss,sW,sV],sE({}))],tp=[],tv=HTMLElement,class extends tv{static{tu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tv[Symbol.metadata]??null):void 0;i4(null,th={value:tu},tm,{kind:"class",name:tu.name,metadata:e},null,tp),tu=th.value,e&&Object.defineProperty(tu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(tu,tp)}};let s$={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};ne=[st("x-input",[ss,(tF=[],tH=[],tj=[],t_=[],tz=[],tU=[],tW=[],tV=[],t$=[],tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tP=[sr("placeholder",!0)],tM=[sr("placeholder-color",!0)],tR=[sr("placeholder-font-family",!0)],tN=[sr("placeholder-font-size",!0)],tD=[sr("placeholder-font-weight",!0)],i4(null,null,tP,{kind:"field",name:"#handlerPlaceholder",static:!1,private:!0,access:{has:e=>#e1 in e,get:e=>e.#e1,set:(e,t)=>{e.#e1=t}},metadata:e},tF,tH),i4(null,null,tM,{kind:"field",name:"#handlerPlaceholderColor",static:!1,private:!0,access:{has:e=>#e2 in e,get:e=>e.#e2,set:(e,t)=>{e.#e2=t}},metadata:e},tj,t_),i4(null,null,tR,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e3 in e,get:e=>e.#e3,set:(e,t)=>{e.#e3=t}},metadata:e},tz,tU),i4(null,null,tN,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},tW,tV),i4(null,null,tD,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4,set:(e,t)=>{e.#e4=t}},metadata:e},t$,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#I;#e9=sd(()=>this.#I.shadowRoot,"#input");#e1=i9(this,tF,sL(this.#e9,"placeholder"));#e2=(i9(this,tH),i9(this,tj,sc(this.#e9,"--placeholder-color",void 0,!0)));#e3=(i9(this,t_),i9(this,tz,sc(this.#e9,"--placeholder-font-family",void 0,!0)));#e8=(i9(this,tU),i9(this,tW,sc(this.#e9,"--placeholder-font-size",void 0,!0)));#e4=(i9(this,tV),i9(this,t$,sc(this.#e9,"--placeholder-font-weight",void 0,!0)));constructor(e){i9(this,tB),this.#I=e}}),(tK=[],tJ=[],tZ=[],tQ=[],t0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tX=[sr("value",!1)],tY=[sr("disabled",!0)],tG=[sr("autocomplete",!0)],i4(this,tq={value:i5(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#e9();t.value!==e&&(t.value=e)},"#handleValue")},tX,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5},metadata:e},null,tK),i4(null,null,tY,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e6 in e,get:e=>e.#e6,set:(e,t)=>{e.#e6=t}},metadata:e},tJ,tZ),i4(null,null,tG,{kind:"field",name:"#handleAutocomplete",static:!1,private:!0,access:{has:e=>#e7 in e,get:e=>e.#e7,set:(e,t)=>{e.#e7=t}},metadata:e},tQ,t0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#I=i9(this,tK);#e9=sd(()=>this.#I.shadowRoot,"#input");get #e5(){return tq.value}#e6=i9(this,tJ,sL(this.#e9,"disabled",e=>null!==e?"":null));#e7=(i9(this,tZ),i9(this,tQ,sL(this.#e9,"autocomplete")));constructor(e){i9(this,t0),this.#I=e}}),(tw=[],tx=[],tC=[],tT=[],tO=[],tI=[],tL=[],tk=[],tA=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tb=[sr("confirm-type",!0)],tg=[sr("maxlength",!0)],tf=[sr("readonly",!0)],ty=[sr("type",!0)],tS=[sr("ios-spell-check",!0),sr("spell-check",!0)],i4(this,tE={value:i5(function(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#te(t),this.#tt(n)},"#handleType")},ty,{kind:"method",name:"#handleType",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn},metadata:e},null,tw),i4(null,null,tb,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},tx,tC),i4(null,null,tg,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},tT,tO),i4(null,null,tf,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},tI,tL),i4(null,null,tS,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},tk,tA),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#I=i9(this,tw);#tr="text";#e9=sd(()=>this.#I.shadowRoot,"#input");#ta=i9(this,tx,sL(this.#e9,"enterkeyhint",e=>null===e?"send":e));#tl=(i9(this,tC),i9(this,tT,sL(this.#e9,"maxlength",e=>null===e?"140":e)));#ti=(i9(this,tO),i9(this,tI,sL(this.#e9,"readonly",e=>null!==e?"":null)));#tt=(i9(this,tL),sL(this.#e9,"type"));#te=sL(this.#e9,"inputmode");get #tn(){return tE.value}#ts=i9(this,tk,sL(this.#e9,"spellcheck",e=>null===e?"false":"true"));constructor(e){i9(this,tA),this.#I=e}}),(t5=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[sr("input-filter",!0),sl("lynxinput")],t3=[sr("send-composing-input",!0)],t4=[sl("selection")],i4(this,t2={value:i5(function(e){let t=this.#e9();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableInputEvent")},t1,{kind:"method",name:"#handleEnableInputEvent",static:!1,private:!0,access:{has:e=>#tc in e,get:e=>e.#tc},metadata:e},null,t5),i4(this,t8={value:i5(function(e){this.#th=null!==e},"#handleSendComposingInput")},t3,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,t5),i4(this,t9={value:i5(function(e){e?this.#e9().addEventListener("select",this.#tm,{passive:!0}):this.#e9().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},t4,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,t5),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i9(this,t5);#th=!1;#e9=sd(()=>this.#I.shadowRoot,"#input");#tv=sd(()=>this.#I.shadowRoot,"#form");get #tc(){return t2.value}get #tu(){return t8.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#e9().value}}))};#to=e=>{let t=this.#e9(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#e9(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return t9.value}#tm=()=>{let e=this.#e9();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#e9()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#e9(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sS)],nt=[],nn=HTMLElement,(class extends nn{static{t7=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nn[Symbol.metadata]??null):void 0;i4(null,t6={value:t7},ne,{kind:"class",name:t7.name,metadata:e},null,nt),t7=t6.value,e&&Object.defineProperty(t7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(t7,nt)}#tf=sd(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#tf(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#tf();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#tf();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#tf();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#tf().setAttribute("pattern",e.pattern)}select(){let e=this.#tf();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#tf().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#tf().focus(e)}blur(){this.#tf().blur()}connectedCallback(){let e=this.#tf();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),nc=[st("x-overlay-ng",[ss,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[sr("events-pass-through",!0)],ni=[sr("visible",!1)],i4(this,nl={value:i5(function(e){null!==e?(this.#ty().addEventListener("click",this.#tE,{passive:!1}),this.#I.addEventListener("click",this.#tE,{passive:!1})):(this.#ty().removeEventListener("click",this.#tE),this.#I.removeEventListener("click",this.#tE))},"#handleEventsPassThrough")},na,{kind:"method",name:"#handleEventsPassThrough",static:!1,private:!0,access:{has:e=>#tS in e,get:e=>e.#tS},metadata:e},null,nr),i4(this,ns={value:i5(function(e){this.#tw=null!==e,this.#tx&&(this.#tw?(this.#ty().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",sn))):(this.#ty().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",sn))))},"#handleVisible")},ni,{kind:"method",name:"#handleVisible",static:!1,private:!0,access:{has:e=>#tC in e,get:e=>e.#tC},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#I=i9(this,nr);#tx=!!window.HTMLDialogElement;#tw=!1;constructor(e){this.#I=e}#ty=sd(()=>this.#I.shadowRoot,"#dialog");get #tS(){return nl.value}get #tC(){return ns.value}#tE=e=>{e.stopPropagation();let t=this.#ty();if(e.target===this.#I||e.target===t){t.close();let{clientX:n,clientY:a}=e,l=document.elementFromPoint(n,a);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,a)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#tw&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#tx||(this.#ty().style.display="none")}})],sx)],nh=[],nu=HTMLElement,class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;i4(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(nd,nh)}get[si](){return this.shadowRoot.firstElementChild}};class sB extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sB.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sX{#I;static observedAttributes=[];#tT;constructor(e){this.#I=e}connectedCallback(){if(IntersectionObserver&&!this.#tT){let e=this.#I.parentElement;e&&(this.#tT=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#I.dispatchEvent(new sB(t,n)),n&&this.#I.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#tT.observe(this.#I))}}dispose(){this.#tT&&(this.#tT.disconnect(),this.#tT=void 0)}}function sq(e,t,n,a){let l=!1;return function(i){if(i!==l){let s=e.call(this);i?(se(()=>s.addEventListener(t,n,a)),l=!0):(se(()=>s.removeEventListener(t,n)),l=!1)}}}nv=[st("x-refresh-footer",[ss,sX])],nb=[],ng=HTMLElement,(class extends ng{static{np=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ng[Symbol.metadata]??null):void 0;i4(null,nm={value:np},nv,{kind:"class",name:np.name,metadata:e},null,nb),np=nm.value,e&&Object.defineProperty(np,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(np,nb)}connectedCallback(){this.setAttribute("slot","footer")}}),nE=[st("x-refresh-header",[ss,sX])],nS=[],nw=HTMLElement,(class extends nw{static{ny=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nw[Symbol.metadata]??null):void 0;i4(null,nf={value:ny},nE,{kind:"class",name:ny.name,metadata:e},null,nS),ny=nf.value,e&&Object.defineProperty(ny,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ny,nS)}connectedCallback(){this.setAttribute("slot","header")}}),nA=[st("x-refresh-view",[ss,(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nx=[sl("headeroffset"),sl("headershow"),sl("footeroffset")],nT=[sl("startrefresh"),sl("headerreleased"),sl("startloadmore"),sl("footerreleased")],i4(this,nC={value:i5(function(e,t){this.#tO[t]=e;let{headeroffset:n,headershow:a,footeroffset:l}=this.#tO;n||a||l?this.#tI():this.#tL()},"#handleComplexEventEnableAttributes")},nx,{kind:"method",name:"#handleComplexEventEnableAttributes",static:!1,private:!0,access:{has:e=>#tk in e,get:e=>e.#tk},metadata:e},null,nI),i4(this,nO={value:i5(function(e,t){this.#tO[t]=e;let{startrefresh:n,headerreleased:a,startloadmore:l,footerreleased:i}=this.#tO;a||i||l||n?this.#tA():this.#tP()},"#handleXEnableHeaderOffsetEvent")},nT,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,nI),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i9(this,nI);static observedAttributes=[];#tR=sd(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#tN=sd(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(sB.EventName,this.#tD)}#tO={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};get #tk(){return nC.value}get #tM(){return nO.value}#tF=!1;#tH=!1;#tj=!1;#t_=!1;#tD=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tF=e.startShowing,this.#tH=e.fullyShowing):(this.#tj=e.startShowing,this.#t_=e.fullyShowing)};#tz=!1;#tA(){this.#tz||(this.#I.addEventListener("touchend",this.#tU),this.#tz=!0)}#tU=()=>{this.#tH?(this.#I.dispatchEvent(new CustomEvent("headerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...sn,detail:{isManual:this.#I._nextRefreshIsManual}})),this.#I._nextRefreshIsManual=!0):("true"===this.#I.getAttribute("enable-auto-loadmore")&&this.#tj||this.#t_)&&(this.#I.dispatchEvent(new CustomEvent("footerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startloadmore",sn)))};#tP(){this.#tz&&this.#I.removeEventListener("touchend",this.#tU)}#tW=!1;#tV=!1;#tI(){this.#tV||(this.#I.addEventListener("touchstart",this.#t$),this.#I.addEventListener("touchend",this.#tB),this.#I.addEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#Q))}#tB=()=>{this.#tW=!1};#t$=()=>{this.#tW=!0};#Q=()=>{if(this.#tF&&(this.#tO.headershow||this.#tO.headeroffset)){let e=this.#tR();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#I.shadowRoot.querySelector("#container").scrollTop;this.#I.dispatchEvent(new CustomEvent("headershow",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}}))}}else if(this.#tj&&this.#tO.footeroffset){let e=this.#tN();if(e){let t=this.#I.shadowRoot.querySelector("#container"),n=t.scrollTop;t.scrollHeight;let a=parseFloat(getComputedStyle(e).height);this.#I.dispatchEvent(new CustomEvent("footeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/a}}))}}};#tL(){this.#tV&&(this.#I.removeEventListener("touchstart",this.#t$),this.#I.removeEventListener("touchend",this.#tB),this.#I.removeEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#Q))}dispose(){this.#tP(),this.#tL()}})],sC)],nP=[],nM=HTMLElement,(class extends nM{static{nk=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nM[Symbol.metadata]??null):void 0;i4(null,nL={value:nk},nA,{kind:"class",name:nk.name,metadata:e},null,nP),nk=nL.value,e&&Object.defineProperty(nk,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#tX=sd(()=>this.shadowRoot,"#container");#tq=sd(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tX(),t=this.#tq();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tX(),n=this.#tq();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tq().scrollHeight}get[sb](){return this}static{i9(nk,nP)}}),nW=[st("x-svg",[ss,(n_=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nR=[sr("src",!0)],nD=[sr("content",!0)],nH=[sl("load")],i4(this,nN={value:i5(function(e){e?this.#eG().src=e:this.#eG().src=""},"#handleSrc")},nR,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,n_),i4(this,nF={value:i5(function(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#eG().src=n},"#handleContent")},nD,{kind:"method",name:"#handleContent",static:!1,private:!0,access:{has:e=>#tY in e,get:e=>e.#tY},metadata:e},null,n_),i4(this,nj={value:i5(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#enableLoadEvent")},nH,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,n_),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#I=i9(this,n_);#n=null;#eG=sd(()=>this.#I.shadowRoot,"#img");get #es(){return nN.value}get #tY(){return nF.value}get #eZ(){return nj.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nV=[],n$=HTMLElement,(class extends n${static{nU=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n$[Symbol.metadata]??null):void 0;i4(null,nz={value:nU},nW,{kind:"class",name:nU.name,metadata:e},null,nV),nU=nz.value,e&&Object.defineProperty(nU,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(nU,nV)}}),nq=[st("x-swiper-item",[ss])],nY=[],nG=HTMLElement,(class extends nG{static{nX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nG[Symbol.metadata]??null):void 0;i4(null,nB={value:nX},nq,{kind:"class",name:nX.name,metadata:e},null,nY),nX=nB.value,e&&Object.defineProperty(nX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(nX,nY)}}),ay=[st("x-swiper",[ss,(ar=[],ao=[],ad=[],ac=[],ah=[],au=[],am=[],ap=[],av=[],ab=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;an=[sr("indicator-color",!0)],aa=[sr("indicator-active-color",!0)],al=[sr("page-margin",!0)],ai=[sr("previous-margin",!0)],as=[sr("next-margin",!0)],i4(null,null,an,{kind:"field",name:"#handleIndicatorColor",static:!1,private:!0,access:{has:e=>#tG in e,get:e=>e.#tG,set:(e,t)=>{e.#tG=t}},metadata:e},ar,ao),i4(null,null,aa,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tK in e,get:e=>e.#tK,set:(e,t)=>{e.#tK=t}},metadata:e},ad,ac),i4(null,null,al,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#tJ in e,get:e=>e.#tJ,set:(e,t)=>{e.#tJ=t}},metadata:e},ah,au),i4(null,null,ai,{kind:"field",name:"#handlePreviousMargin",static:!1,private:!0,access:{has:e=>#tZ in e,get:e=>e.#tZ,set:(e,t)=>{e.#tZ=t}},metadata:e},am,ap),i4(null,null,as,{kind:"field",name:"#handleNextMargin",static:!1,private:!0,access:{has:e=>#tQ in e,get:e=>e.#tQ,set:(e,t)=>{e.#tQ=t}},metadata:e},av,ab),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#I;#t0=0;#t1=sd(()=>this.#I.shadowRoot,"#indicator-container");#t2=sd(()=>this.#I.shadowRoot,"#indicator-style");#t3;constructor(e){i9(this,ab),this.#I=e}#tG=i9(this,ar,sc(this.#t1,"--indicator-color",void 0,!0));#tK=(i9(this,ao),i9(this,ad,sc(this.#t1,"--indicator-active-color",void 0,!0)));#tJ=(i9(this,ac),i9(this,ah,sc(this.#t1,"--page-margin",void 0,!0)));#tZ=(i9(this,au),i9(this,am,sc(this.#t1,"--previous-margin",void 0,!0)));#tQ=(i9(this,ap),i9(this,av,sc(this.#t1,"--next-margin",void 0,!0)));#t8(){let e=this.#I.childElementCount;if(e!==this.#t0){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#t1().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#I.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#t2().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#t0=e}connectedCallback(){this.#t8(),this.#t3=new MutationObserver(this.#t8.bind(this)),this.#t3.observe(this.#I,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#I.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#I.childElementCount,a=this.#t1();for(let e=0;e<n;e++){let n=a.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),se(()=>{this.#t1().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t3?.disconnect(),this.#t3=void 0}}),(nQ=[],n0=[],n1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nK=[sl("transition")],nJ=[sl("scrollstart"),sl("lynxscrollend"),sl("change"),sl("change-event-for-indicator")],i4(this,nZ={value:i5(function(e,t){this.#tO[t]=e;let{lynxscrollend:n,scrollstart:a,change:l}=this.#tO,i=l||n||a||this.#tO["change-event-for-indicator"];this.#t4.forEach(e=>e(i))},"#enableScrollEventProcessor")},nJ,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t9 in e,get:e=>e.#t9},metadata:e},null,nQ),i4(null,null,nK,{kind:"field",name:"#handleEnableTransitionEvent",static:!1,private:!0,access:{has:e=>#t5 in e,get:e=>e.#t5,set:(e,t)=>{e.#t5=t}},metadata:e},n0,n1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i9(this,nQ);#t6=0;#t7=0;#tW=!1;#V;#ne=!1;constructor(e){this.#I=e}#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);#t5=i9(this,n0,sq(this.#tq,"scroll",this.#nt,{passive:!0}));#Q(){sp||(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#ne||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...sn,detail:{current:this.#t6,isDragged:this.#tW}})),this.#ne=!0);let e=this.#tq(),t=this.#I.isVertical,n=t?e.scrollTop:e.scrollLeft,a=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#t7-n)>a/4||n<10||Math.abs(n-l)<=a){let e=this.#I.currentIndex;e!==this.#t6&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{current:e,isDragged:this.#tW}})),this.#t6=e),this.#t7=n}}#et(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn,detail:{current:this.#t6}})),this.#ne=!1}#nn(){this.#tW=!0}#na(){this.#tW=!1}#nt(){this.#I.dispatchEvent(new CustomEvent("transition",{...sn,detail:{dx:this.#tq().scrollLeft,dy:this.#tq().scrollTop}}))}#t4=(i9(this,n1),[sq(this.#tq,"scroll",this.#Q.bind(this),{passive:!0}),sq(this.#tq,"touchstart",this.#nn.bind(this),{passive:!0}),sq(this.#tq,"touchend",this.#na.bind(this),{passive:!0}),sq(this.#tq,"touchcancel",this.#na.bind(this),{passive:!0}),sq(this.#tq,"scrollend",this.#et.bind(this),{passive:!0})]);#tO={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t9(){return nZ.value}connectedCallback(){this.#t6=parseFloat(this.#I.getAttribute("current")??"0");let e=this.#I.isVertical;this.#t7=e?this.#tq().scrollTop:this.#tq().scrollLeft}}),(at=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n5=[sr("circular",!1)],n7=[sr("vertical",!0)],i4(this,n6={value:i5(function(e){this.#t4.forEach(t=>t(null!=e)),null!==e&&this.#nl({detail:{current:this.#I.currentIndex,isDragged:!1,__isFirstLayout:!0}})},"#handleCircular")},n5,{kind:"method",name:"#handleCircular",static:!1,private:!0,access:{has:e=>#ni in e,get:e=>e.#ni},metadata:e},null,at),i4(this,ae={value:i5(function(e){this.#ns=null!==e},"#handleVerticalChange")},n7,{kind:"method",name:"#handleVerticalChange",static:!1,private:!0,access:{has:e=>#nr in e,get:e=>e.#nr},metadata:e},null,at),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#I=i9(this,at);#ns=!1;#no;#nd=0;#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#nc=sd(()=>this.#I.shadowRoot,"#circular-start").bind(this);#nh=sd(()=>this.#I.shadowRoot,"#circular-end").bind(this);#nl(e){let t=this.#I.childElementCount;if(t>2){let{current:n,isDragged:a,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,i=this.#tq(),s=this.#nc().assignedElements(),r=this.#nh().assignedElements(),o=this.#I.firstElementChild,d=this.#I.lastElementChild,c=this.#I.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#I.children[n]),this.#ns){let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientHeight/2:i.clientHeight/2;this.#nd=e.offsetTop+e.offsetHeight/2-c-t,i.scrollTop=this.#nd}else{let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientWidth/2:i.clientWidth/2;this.#nd=e.offsetLeft+e.offsetWidth/2-c-t,i.scrollLeft=this.#nd}if(!a){let e=this.#I.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#nu(l?"instant":"smooth")}}}}#nu(e){let t=this.#tq(),n=this.#I.snapDistance;t.scrollBy({top:this.#ns?n:0,left:this.#ns?0:n,behavior:e??"smooth"})}#t4=[sq(()=>this.#I,"change",this.#nl.bind(this),{passive:!0}),sq(()=>this.#I,"touchmove",this.#nm.bind(this),{passive:!1}),sq(()=>this.#I,"touchend",this.#np.bind(this),{passive:!1}),sq(()=>this.#I,"touchcancel",this.#np.bind(this),{passive:!1})];get #ni(){return n6.value}#nm(e){let t=e.touches.item(0);if(t){let e=this.#ns?t.pageY:t.pageX;if(void 0!==this.#no){this.#nv();let t=this.#no-e;this.#nd+=t}this.#no=e}}#np(e){this.#nb(),this.#nu(),this.#no=void 0}get #nr(){return ae.value}#ng;#nv(){if(!this.#ng){let e=this.#tq();this.#nd=this.#ns?e.scrollTop:e.scrollLeft,this.#ng=setInterval(()=>{this.#ns?e.scrollTop=this.#nd:e.scrollLeft=this.#nd},10)}}#nb(){this.#ng&&(clearInterval(this.#ng),this.#ng=void 0)}dispose(){this.#nb()}}),(n9=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n2=[sr("current",!1)],n8=[sr("interval",!1),sr("autoplay",!1)],i4(this,n3={value:i5(function(e){let t=Number(e);Number.isNaN(t)||(this.#I.currentIndex=t)},"#handleCurrentChange")},n2,{kind:"method",name:"#handleCurrentChange",static:!1,private:!0,access:{has:e=>#nf in e,get:e=>e.#nf},metadata:e},null,n9),i4(this,n4={value:i5(function(){if(null!==this.#I.getAttribute("autoplay")){let e=this.#I.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#ny(t)}},"#handleAutoplay")},n8,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nE in e,get:e=>e.#nE},metadata:e},null,n9),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=i9(this,n9);constructor(e){this.#I=e}#nS(){this.#I.currentIndex===this.#I.childElementCount-1?this.#I.circularPlay&&(this.#I.currentIndex=0):this.#I.currentIndex+=1}get #nf(){return n3.value}#nw;#nx=(()=>{this.#nS()}).bind(this);#ny(e){this.#nC(),this.#nw=setInterval(this.#nx,e)}#nC(){this.#nw&&clearInterval(this.#nw)}get #nE(){return n4.value}dispose(){this.#nC()}})],sT)],aE=[],aS=HTMLElement,(class extends aS{static{af=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aS[Symbol.metadata]??null):void 0;i4(null,ag={value:af},ay,{kind:"class",name:af.name,metadata:e},null,aE),af=ag.value,e&&Object.defineProperty(af,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tq=sd(()=>this.shadowRoot,"#content").bind(this);#nT(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let a=this.#tq(),l=this.isVertical,i=this.childElementCount,s=l?a.scrollTop:a.scrollLeft,r=l?a.clientHeight:a.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let a=0;a<i;a++){let i=this.children[a];if(i){let s=(l?i.offsetTop:i.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=a,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#nT().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#nO(e,t?"smooth":"instant")}#nO(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,a=0;a="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tq().scrollTo({left:e?0:a,top:e?a:0,behavior:t})}}get snapDistance(){return this.#nT().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#nO(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#nO(Number(e),"instant")}get[sb](){return this}static{i9(af,aE)}}),aI=[st("inline-image",[(aC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw=[sr("src",!0)],i4(this,ax={value:i5(function(e){e?this.#nI().setAttribute("src",e):this.#nI().removeAttribute("src")},"#handleSrc")},aw,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,aC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#I=i9(this,aC);constructor(e){this.#I=e}#nI=sd(()=>this.#I.shadowRoot,"#img");get #es(){return ax.value}})],sE({}))],aL=[],ak=HTMLElement,(class extends ak{static{aO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ak[Symbol.metadata]??null):void 0;i4(null,aT={value:aO},aI,{kind:"class",name:aO.name,metadata:e},null,aL),aO=aT.value,e&&Object.defineProperty(aO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(aO,aL)}}),aM=[st("inline-text",[])],aR=[],aN=HTMLElement,(class extends aN{static{aP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aN[Symbol.metadata]??null):void 0;i4(null,aA={value:aP},aM,{kind:"class",name:aP.name,metadata:e},null,aR),aP=aA.value,e&&Object.defineProperty(aP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(aP,aR)}}),aH=[st("inline-truncation",[])],aj=[],a_=HTMLElement,n=class extends a_{static{aF=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a_[Symbol.metadata]??null):void 0;i4(null,aD={value:aF},aH,{kind:"class",name:aF.name,metadata:e},null,aj),n=aF=aD.value,e&&Object.defineProperty(aF,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{i9(aF,aj)}},n=aF;let sY=(aW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;az=[sr("text",!0)],i4(this,aU={value:i5(function(e){this.#nL?.remove(),e&&(this.#nL=new Text(e),this.#I.append(this.#nL))},"#handleText")},az,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nk in e,get:e=>e.#nk},metadata:e},null,aW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=i9(this,aW);#nL;constructor(e){this.#I=e}get #nk(){return aU.value}});aB=[st("raw-text",[sY])],aX=[],aq=HTMLElement,class extends aq{static{a$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aq[Symbol.metadata]??null):void 0;i4(null,aV={value:a$},aB,{kind:"class",name:a$.name,metadata:e},null,aX),a$=aV.value,e&&Object.defineProperty(a$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(a$,aX)}};let sG=(aZ=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aY=[sr("text-maxlength",!0),sr("text-maxline",!0),sr("tail-color-convert",!0)],aK=[sl("layout")],i4(this,aG={value:i5(function(){this.#nA=parseFloat(this.#I.getAttribute("text-maxlength")??""),this.#nP=parseFloat(this.#I.getAttribute("text-maxline")??""),this.#nM="false"!==this.#I.getAttribute("tail-color-convert"),this.#nA<0&&(this.#nA=NaN),this.#nP<1&&(this.#nP=NaN),isNaN(this.#nP)?this.#nR().style.removeProperty("-webkit-line-clamp"):this.#nR().style.webkitLineClamp=this.#nP.toString(),this.#nN()},"#handleAttributeChange")},aY,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nD in e,get:e=>e.#nD},metadata:e},null,aZ),i4(this,aJ={value:i5(function(e){this.#nF=e},"#handleEnableLayoutEvent")},aK,{kind:"method",name:"#handleEnableLayoutEvent",static:!1,private:!0,access:{has:e=>#nH in e,get:e=>e.#nH},metadata:e},null,aZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#nj=(i9(this,aZ),!1);#n_=!1;#nz=new Map;#nU;#k;#nW;#nV;#n$=!1;#nA=NaN;#nP=NaN;#nM=!0;#nF=!1;get #nB(){return!this.#nX&&!this.#nM}get #nX(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#I.matches(":has(inline-truncation)");{let e=this.#I.querySelector("inline-truncation");if(e?.parentElement===this.#I)return!0}return!1}get #nq(){return!isNaN(this.#nP)&&(this.#nX||!this.#nM)}#I;constructor(e){this.#I=e}#nR=sd(()=>this.#I.shadowRoot,"#inner-box");#nY(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nz.delete(e)}),"characterData"===e.type&&void 0!==this.#nz.get(e.target)&&this.#nz.set(e.target,e.target.data)})}#nG(){for(let[t,n]of this.#nz)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#I.removeAttribute(e.exceedMathLengthAttribute),this.#I.removeAttribute(e.showInlineTruncation)}#nK(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nN(){!this.#n_||this.#I.matches("x-text>x-text")||this.#nj||(this.#nj=!0,se(async()=>{await this.#nJ(),this.#nZ(),this.#nj=!1}))}async #nJ(){if(this.#nW?.parentElement?.removeChild(this.#nW),this.#nG(),!this.#nq&&isNaN(this.#nA))return;await document.fonts.ready;let t=this.#nR().getBoundingClientRect();this.#nV=new sK(this.#I,t);let n=this.#nV,a=(isNaN(this.#nA)?void 0:n.getNodeInfoByCharIndex(this.#nA))?this.#nA:1/0,l=this.#nq&&n.getLineInfo(this.#nP)?n.getLineInfo(this.#nP-1):void 0,i=1/0,s=3;if(l){let{start:a,end:r}=l,o=r-a;if(this.#nX){this.#I.setAttribute(e.showInlineTruncation,"");let l=this.#I.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){i=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(i),a=r-t.start;for(e.setEnd(t.node,a),e.setStart(t.node,a);e.getBoundingClientRect().width<o&&(i-=1)&&(t=n.getNodeInfoByCharIndex(i));)e.setStart(t.node,i-t.start)}else i=a,this.#I.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,i=a):i=r-3}let r=Math.min(a,i);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let a=r-t.start,l=t.node,i=[];l.nodeType===Node.TEXT_NODE?(this.#nz.set(l,l.data),l.data=l.data.substring(0,a)):i.push(l),i=i.concat(this.#nK(l));let o=l.parentElement;for(;o!==this.#I;)i=i.concat(this.#nK(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nz.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nz.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#nB){let e=(0===a?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#nW=new Text(Array(s).fill(".").join("")),e.append(this.#nW)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#nQ(r)}}#n0=e=>{this.#nY(e),this.#nN()};#n1=()=>{if(this.#n$){this.#n$=!1;return}this.#nN()};#nZ(){this.#n_&&((this.#nA||this.#nP)&&!this.#nU&&(this.#nU=new MutationObserver(this.#n0),this.#nU.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nP&&!this.#k&&(this.#k=new ResizeObserver(this.#n1),this.#n$=!0,this.#k.observe(this.#nR(),{box:"content-box"})))}#n2(){this.#nU?.disconnect(),this.#nU=void 0,this.#k?.disconnect(),this.#k=void 0}get #nD(){return aG.value}get #nH(){return aJ.value}#nQ(e){if(!this.#nF)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#nV||(t.#nV=new sK(t.#I,t.#I.getBoundingClientRect())),t.#nV.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let a=parseFloat(n.toString());if(!isNaN(a)){t.#nV||(t.#nV=new sK(t.#I,t.#I.getBoundingClientRect()));let n=t.#nV.getLineInfo(a);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#I.dispatchEvent(new CustomEvent("layout",{...sn,detail:t}))}dispose(){this.#n2()}connectedCallback(){this.#n_=!0,this.#nH(this.#nF),this.#nD(),se(()=>{this.#nQ()})}});class sK{#n3=[{start:0}];#n8=[];#n4=[];#I;#n9;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sJ(this.#I),this.#n9=t}#n5(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,a=e.node,l=document.createRange();l.selectNode(a);for(let e=0;e<a.data.length;e++){l.setEnd(a,e);let i=l.getClientRects().item(n);if(i&&i.right===t.right)return e}return a.data.length}}#n6(e){if(this.#n8[e])return;let{left:t}=this.#n9,n=this.#n8[this.#n8.length-1],a=n?.[n.length-1],l=a?.nodeIndex?a?.nodeIndex+1:0;for(let n=l,a;(a=this.#n7(n))&&e>=this.#n8.length;n++){let e,{node:n}=a;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#n8[this.#n8.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#n8.push([{...a,rect:l,rectIndex:0}]):n.push({...a,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let i=e[n];(i.left!==l.left||i.bottom!==l.bottom)&&(.2>Math.abs(i.left-t)?this.#n8.push([{...a,rect:i,rectIndex:n}]):this.#n8[this.#n8.length-1].push({...a,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#n6(1/0),this.#n8.length}getLineInfo(e){if(this.#n6(e+1),e<this.#n8.length){let t=e>0?this.#n3[e-1]??{}:void 0,n=this.#n3[e]??{},a=e<this.#n8.length-1?this.#n3[e+1]??{}:void 0;if(void 0===n.start){let a=this.#n8[e-1],l=a[a.length-1],i=this.#n5(l),s=l.start+i;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#n8[e],l=t[t.length-1];if(e===this.#n8.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#n5(l);n.end=l.start+e,a.start=n.end+1}}return n}}#n7(e){let t=this.#n4.length-1,n=this.#n4[t],a=n?n.start+n.length:0;for(let t=this.#n4.length,n;(n=this.nodelist.at(t))&&e>=this.#n4.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:a,nodeIndex:t};this.#n4.push(l)}return this.#n4[e]}getNodeInfoByCharIndex(e){let t,n=0,a=this.#n4.length-1;for(;n<=a;){let l=Math.floor((n+a)/2),i=this.#n4[l],s=i.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=i.start;if(e>=o&&e<o+r){t=i;break}e<o?a=l-1:n=l+1}if(t)return t;for(let t=this.#n4.length,n;n=this.#n7(t);t++)if(e<n.start+n.length)return n}}class sJ{#ae=[];#at;constructor(e){this.#at=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#ae[e]||this.#an(e),this.#ae[e]}#an(e){let t=null;for(;e>=this.#ae.length&&(t=this.#at.nextNode());){this.#ae.push(t);break}}}a1=[st("x-text",[ss,sG,sY],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],a2=[],a3=HTMLElement,(class extends a3{static{a0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a3[Symbol.metadata]??null):void 0;i4(null,aQ={value:a0},a1,{kind:"class",name:a0.name,metadata:e},null,a2),a0=aQ.value,e&&Object.defineProperty(a0,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this;static{i9(a0,a2)}}),lq=[st("x-textarea",[ss,(a7=[],le=[],lt=[],ln=[],la=[],ll=[],li=[],ls=[],lr=[],lo=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a8=[sr("placeholder-color",!0)],a4=[sr("placeholder-font-size",!0)],a9=[sr("placeholder-font-weight",!0)],a5=[sr("placeholder-font-family",!0)],a6=[sr("placeholder",!0)],i4(null,null,a8,{kind:"field",name:"#updatePlaceholderColor",static:!1,private:!0,access:{has:e=>#aa in e,get:e=>e.#aa,set:(e,t)=>{e.#aa=t}},metadata:e},a7,le),i4(null,null,a4,{kind:"field",name:"#updatePlaceholderFontSize",static:!1,private:!0,access:{has:e=>#al in e,get:e=>e.#al,set:(e,t)=>{e.#al=t}},metadata:e},lt,ln),i4(null,null,a9,{kind:"field",name:"#updatePlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#ai in e,get:e=>e.#ai,set:(e,t)=>{e.#ai=t}},metadata:e},la,ll),i4(null,null,a5,{kind:"field",name:"#updatePlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#as in e,get:e=>e.#as,set:(e,t)=>{e.#as=t}},metadata:e},li,ls),i4(null,null,a6,{kind:"field",name:"#handlePlaceholder",static:!1,private:!0,access:{has:e=>#ar in e,get:e=>e.#ar,set:(e,t)=>{e.#ar=t}},metadata:e},lr,lo),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#ao=sd(()=>this.#I.shadowRoot,"#textarea");#aa=i9(this,a7,sc(this.#ao,"--placeholder-color",void 0,!0));#al=(i9(this,le),i9(this,lt,sc(this.#ao,"--placeholder-font-size",void 0,!0)));#ai=(i9(this,ln),i9(this,la,sc(this.#ao,"--placeholder-font-weight",void 0,!0)));#as=(i9(this,ll),i9(this,li,sc(this.#ao,"--placeholder-font-family",void 0,!0)));#ar=(i9(this,ls),i9(this,lr,sL(this.#ao,"placeholder")));#I=i9(this,lo);constructor(e){this.#I=e}}),(lp=[],lv=[],lb=[],lg=[],lf=[],ly=[],lE=[],lS=[],lw=[],lx=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ld=[sr("confirm-type",!0)],lc=[sr("maxlength",!0)],lh=[sr("readonly",!0)],lu=[sr("ios-spell-check",!0)],lm=[sr("show-soft-input-onfocus",!0)],i4(null,null,ld,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},lp,lv),i4(null,null,lc,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},lb,lg),i4(null,null,lh,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},lf,ly),i4(null,null,lu,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},lE,lS),i4(null,null,lm,{kind:"field",name:"#handleShowSoftInputOnfocus",static:!1,private:!0,access:{has:e=>#ad in e,get:e=>e.#ad,set:(e,t)=>{e.#ad=t}},metadata:e},lw,lx),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#I;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#ta=i9(this,lp,sL(this.#ac,"enterkeyhint",e=>null===e?"send":e));#tl=(i9(this,lv),i9(this,lb,sL(this.#ac,"maxlength",e=>null===e?"140":e)));#ti=(i9(this,lg),i9(this,lf,sL(this.#ac,"readonly",e=>null!==e?"":null)));#ts=(i9(this,ly),i9(this,lE,sL(this.#ac,"spellcheck",e=>null===e?"false":"true")));#ad=(i9(this,lS),i9(this,lw,sL(this.#ac,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){i9(this,lx),this.#I=e}}),(lP=[],lM=[],lR=[],lN=[],lD=[],lF=[],lH=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lC=[sr("confirm-enter",!0)],lO=[sr("disabled",!0)],lI=[sr("max-height",!0)],lL=[sr("min-height",!0)],lk=[sr("value",!1)],i4(this,lT={value:i5(function(e){this.#ah=null!==e},"#handleConfirmEnter")},lC,{kind:"method",name:"#handleConfirmEnter",static:!1,private:!0,access:{has:e=>#au in e,get:e=>e.#au},metadata:e},null,lP),i4(this,lA={value:i5(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#ac();t.value!==e&&(t.value=e)},"#handleValue")},lk,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5},metadata:e},null,lP),i4(null,null,lO,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e6 in e,get:e=>e.#e6,set:(e,t)=>{e.#e6=t}},metadata:e},lM,lR),i4(null,null,lI,{kind:"field",name:"#handleMaxHeight",static:!1,private:!0,access:{has:e=>#am in e,get:e=>e.#am,set:(e,t)=>{e.#am=t}},metadata:e},lN,lD),i4(null,null,lL,{kind:"field",name:"#handleMinHeight",static:!1,private:!0,access:{has:e=>#ap in e,get:e=>e.#ap,set:(e,t)=>{e.#ap=t}},metadata:e},lF,lH),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#I=i9(this,lP);#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");#ah=!1;get #au(){return lT.value}#e6=i9(this,lM,sL(this.#ac,"disabled",e=>null!==e?"":null));#am=(i9(this,lR),i9(this,lN,sc(this.#ac,"max-height")));#ap=(i9(this,lD),i9(this,lF,sc(this.#ac,"min-height")));get #e5(){return lA.value}#av=(i9(this,lH),e=>{this.#ah&&"Enter"===e.key&&this.#tv().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#I=e,this.#ac().addEventListener("keyup",this.#av)}}),(l$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lj=[sr("input-filter",!0),sl("lynxinput")],lz=[sr("send-composing-input",!0)],lW=[sl("selection")],i4(this,l_={value:i5(function(e){let t=this.#ac();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableConfirmEvent")},lj,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#ab in e,get:e=>e.#ab},metadata:e},null,l$),i4(this,lU={value:i5(function(e){this.#th=null!==e},"#handleSendComposingInput")},lz,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,l$),i4(this,lV={value:i5(function(e){e?this.#ac().addEventListener("select",this.#tm,{passive:!0}):this.#ac().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},lW,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,l$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i9(this,l$);#th=!1;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");get #ab(){return l_.value}get #tu(){return lU.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#ac().value}}))};#to=e=>{let t=this.#ac(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#ac(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return lV.value}#tm=()=>{let e=this.#ac();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#ac()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#ac(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sO)],lY=[],lG=HTMLElement,(class extends lG{static{lX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lG[Symbol.metadata]??null):void 0;i4(null,lB={value:lX},lq,{kind:"class",name:lX.name,metadata:e},null,lY),lX=lB.value,e&&Object.defineProperty(lX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(lX,lY)}#ao=sd(()=>this.shadowRoot,"#textarea");get value(){return this.#ao().value}set value(e){this.#ao().value=e}addText(e){let{text:t}=e,n=this.#ao(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}setValue(e){let t,n=this.#ao();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#ao();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#ao();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#ao();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#ao().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lZ=[st("x-view",[ss])],lQ=[],l0=HTMLElement,(class extends l0{static{lJ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l0[Symbol.metadata]??null):void 0;i4(null,lK={value:lJ},lZ,{kind:"class",name:lJ.name,metadata:e},null,lQ),lJ=lK.value,e&&Object.defineProperty(lJ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(lJ,lQ)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this}),l9=[st("x-blur-view",[ss,(l3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l1=[sr("blur-radius",!0)],i4(this,l2={value:i5(function(e){e?(e=`blur(${parseFloat(e)}px)`,this.#ag().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#ag().innerHTML=""},"#handleBlurRadius")},l1,{kind:"method",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX},metadata:e},null,l3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=i9(this,l3);#ag=sd(()=>this.#I.shadowRoot,"#dynamic-style");get #eX(){return l2.value}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],l5=[],l6=HTMLElement,(class extends l6{static{l4=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l6[Symbol.metadata]??null):void 0;i4(null,l8={value:l4},l9,{kind:"class",name:l4.name,metadata:e},null,l5),l4=l8.value,e&&Object.defineProperty(l4,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(l4,l5)}}),ir=[st("x-viewpager-ng",[ss,(il=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l7=[sl("change")],it=[sl("offsetchange")],i4(this,ie={value:i5(function(e){this.#af=e,this.#ay()},"#enableChangeEvent")},l7,{kind:"method",name:"#enableChangeEvent",static:!1,private:!0,access:{has:e=>#aE in e,get:e=>e.#aE},metadata:e},null,il),i4(this,ia={value:i5(function(e){this.#af=e,this.#ay()},"#enableOffsetChangeEvent")},it,{kind:"method",name:"#enableOffsetChangeEvent",static:!1,private:!0,access:{has:e=>#aS in e,get:e=>e.#aS},metadata:e},null,il),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i9(this,il);#aw=!1;#t=!1;#ax=0;#V;constructor(e){this.#I=e}#X=sd(()=>this.#I.shadowRoot,"#content");#aC=()=>{if(!this.#t)return;let e=this.#X(),t=this.#I.clientWidth,n=e.scrollLeft;this.#af&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#aT()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...sn,detail:{offset:n/t}}))};#aT=()=>{if(this.#t){let e=this.#X(),t=this.#I.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#ax&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{index:n,isDragged:this.#aw}})),this.#ax=n)}};#aO=()=>{this.#aw=!0};#aI=()=>{this.#aw=!1};#af=!1;get #aE(){return ie.value}#aL=!1;get #aS(){return ia.value}#ay(){let e=this.#X();this.#aL||this.#af?e.addEventListener("scroll",this.#aC,{passive:!0}):e.removeEventListener("scroll",this.#aC),sp&&this.#af?e.addEventListener("scrollend",this.#aT,{passive:!0}):e.removeEventListener("scrollend",this.#aT)}connectedCallback(){this.#t=!0;let e=this.#X();this.#I.addEventListener("touchstart",this.#aO,{passive:!0}),e.addEventListener("touchend",this.#aI,{passive:!0}),e.addEventListener("touchcancel",this.#aI,{passive:!0})}dispose(){let e=this.#X();e.removeEventListener("scroll",this.#aC),e.removeEventListener("scrollend",this.#aT)}})],sI)],io=[],id=HTMLElement,(class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;i4(null,ii={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),is=ii.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let a=this.shadowRoot.children.item(2),l=a.clientWidth*t;a.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),a=()=>{0===n.clientWidth?requestAnimationFrame(a):this.selectTab({index:t,smooth:!1})};se(a)}}get[sb](){return this}static{i9(is,io)}}),iu=[st("x-viewpager-item-ng",[ss])],im=[],ip=HTMLElement,(class extends ip{static{ih=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ip[Symbol.metadata]??null):void 0;i4(null,ic={value:ih},iu,{kind:"class",name:ih.name,metadata:e},null,im),ih=ic.value,e&&Object.defineProperty(ih,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(ih,im)}}),iE=[st("list-item",[ss,(iv=[],ib=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i4(null,null,[sr("estimated-main-axis-size-px",!0)],{kind:"field",name:"#handlerEstimatedMainAxisSizePx",static:!1,private:!0,access:{has:e=>#ak in e,get:e=>e.#ak,set:(e,t)=>{e.#ak=t}},metadata:e},iv,ib),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#I;#ak=i9(this,iv,sc(()=>this.#I,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){i9(this,ib),this.#I=e}})])],iS=[],iw=HTMLElement,class extends iw{static{iy=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iw[Symbol.metadata]??null):void 0;i4(null,ig={value:iy},iE,{kind:"class",name:iy.name,metadata:e},null,iS),iy=ig.value,e&&Object.defineProperty(iy,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i9(iy,iS)}};let sZ=function(e,t,n){let a,l,i,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),a=null,s=e.apply(l,i),a||(l=i=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),r=d,s=e.apply(l,i),a||(l=i=null)):a||n?.trailing===!1||(a=setTimeout(o,c)),s}},sQ="waterfall-slot",s0="waterfall-style";i2=[st("x-list",[ss,(iT=[],iO=[],iI=[],iL=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ix=[sr("sticky-offset",!0)],iC=[sr("span-count",!0),sr("column-count",!0)],i4(null,null,ix,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#aA in e,get:e=>e.#aA,set:(e,t)=>{e.#aA=t}},metadata:e},iT,iO),i4(null,null,iC,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#aP in e,get:e=>e.#aP,set:(e,t)=>{e.#aP=t}},metadata:e},iI,iL),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#I;#aA=i9(this,iT,sc(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#aP=(i9(this,iO),i9(this,iI,sc(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){i9(this,iL),this.#I=e}connectedCallback(){let e=this.#I.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#I.clientHeight?requestAnimationFrame(n):this.#I.scrollToPosition({position:t})};se(n)}}}),(ij=[],i_=[],iz=[],iU=[],iW=[],iV=[],i$=[],iB=[],iX=[],iq=[],iY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ik=[sl("scrolltoupper")],iA=[sr("upper-threshold-item-count",!0)],iM=[sl("scrolltolower")],iR=[sr("lower-threshold-item-count",!0)],iD=[sl("lynxscroll"),sl("lynxscrollend"),sl("snap")],iF=[sl("scrolltoupperedge")],iH=[sl("scrolltoloweredge")],i4(this,iP={value:i5(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#q():this.#I.children[n-1];a&&this.#aM?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#q():this.#I.children[l-1];i&&this.#aM?.observe(i)},"#handleUpperThresholdItemCountChange")},iA,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aR in e,get:e=>e.#aR},metadata:e},null,ij),i4(this,iN={value:i5(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#Y():this.#I.children[this.#I.children.length-n];a&&this.#aN?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#Y():this.#I.children[this.#I.children.length-l];i&&this.#aN?.observe(i)},"#handleLowerThresholdItemCountChange")},iR,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aD in e,get:e=>e.#aD},metadata:e},null,ij),i4(null,null,ik,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#aF in e,get:e=>e.#aF,set:(e,t)=>{e.#aF=t}},metadata:e},i_,iz),i4(null,null,iM,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#aH in e,get:e=>e.#aH,set:(e,t)=>{e.#aH=t}},metadata:e},iU,iW),i4(null,null,iD,{kind:"field",name:"#handleScrollEventsSwitches",static:!1,private:!0,access:{has:e=>#ea in e,get:e=>e.#ea,set:(e,t)=>{e.#ea=t}},metadata:e},iV,i$),i4(null,null,iF,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aj in e,get:e=>e.#aj,set:(e,t)=>{e.#aj=t}},metadata:e},iB,iX),i4(null,null,iH,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#a_ in e,get:e=>e.#a_,set:(e,t)=>{e.#a_=t}},metadata:e},iq,iY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#I=i9(this,ij);#az=sd(()=>this.#I.shadowRoot,"#content");#aM;#aN;#aU;#$=0;#B=0;#aW=!1;#V;#q=sd(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=sd(()=>this.#I.shadowRoot,"#lower-threshold-observer");#K(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l}=this.#az(),i={scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l,deltaX:n-this.#$,deltaY:t-this.#B,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#$=n,this.#B=t,i}#aV=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...sn,detail:this.#K()}))};#aF=i9(this,i_,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#tO.scrolltoupper=e,e){this.#aM||(this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aR(){return iP.value}#aB=(i9(this,iz),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...sn,detail:this.#K()}))});#tO={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#aH=i9(this,iU,e=>{if(this.#tO.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#aN||(this.#aN=new IntersectionObserver(this.#aB,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aN.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aN&&(this.#aN.disconnect(),this.#aN=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aD(){return iN.value}#a$=(i9(this,iW),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tO.scrolltolower){this.#aN&&(this.#aN.disconnect(),this.#aN=void 0),this.#aN=new IntersectionObserver(this.#aB,{root:this.#az()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aN.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()});let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n)}}});#aX=null;#Q=()=>{this.#aW&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...sn,detail:this.#K()}))};#ea=i9(this,iV,(e,t)=>{this.#tO[t]=e;let{lynxscroll:n,lynxscrollend:a,snap:l}=this.#tO,i=this.#I.getAttribute("scroll-event-throttle");this.#aW=null!==a||null!==l;let s=this.#az();if(this.#aX&&s.removeEventListener("scroll",this.#aX),null!==scroll||this.#aW){let e=null!==i?parseFloat(i):0,t=sZ(this.#Q,e,{leading:!0,trailing:!1});this.#aX=t,s.addEventListener("scroll",this.#aX),this.#$=0,this.#B=0}sp&&this.#aW?s.addEventListener("scrollend",this.#et):s.removeEventListener("scrollend",this.#et)});#G=(i9(this,i$),e=>{let{isIntersecting:t,target:n}=e[0],a=n.id;t&&("upper-threshold-observer"===a?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...sn,detail:this.#K()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...sn,detail:this.#K()})))});#aj=i9(this,iB,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#aq(e)});#aq=(i9(this,iX),sm(this.#az,this.#q,this.#G));#a_=i9(this,iq,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#aY(e)});#aY=(i9(this,iY),sm(this.#az,this.#Y,this.#G));#et=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#az().scrollTop,n=this.#az().scrollLeft,a=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...sn,detail:{position:a&&e.indexOf(a),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(iQ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iG=[sl("scrolltolower")],iJ=[sr("list-type",!0)],i4(this,iK={value:i5(function(e){if(e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#aG(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#az();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}},"#handleXEnableHeaderOffsetEvent")},iG,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,iQ),i4(this,iZ={value:i5(function(e){if("waterfall"===e)this.#aK(),this.#k||this.#aJ(),this.#aU||(this.#aU=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#aJ()}),this.#aU.observe(this.#I,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#aU?.disconnect(),this.#aU=void 0;for(let e=0;e<this.#I.children.length;e++)this.#I.children[e].removeAttribute("slot");this.#I.shadowRoot?.querySelector(`slot[name=${sQ}]`)?.remove()}},"#handlerListType")},iJ,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#aZ in e,get:e=>e.#aZ},metadata:e},null,iQ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=i9(this,iQ);#az=sd(()=>this.#I.shadowRoot,"#content");#aG=sd(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#aU;get #tM(){return iK.value}#aK=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sQ}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#aQ=()=>{let e=parseFloat(this.#I.getAttribute("span-count")||this.#I.getAttribute("column-count")||"")||1,t="vertical"===(this.#I.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let a=0;a<this.#I.children.length;a++){let l=this.#I.children[a],i=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(i):l.getBoundingClientRect().width+parseFloat(i);if(null!==l.getAttribute("full-span")){let a=n[0];for(let t=1;t<e;t++)n[t]>a&&(a=n[t]);for(let t=0;t<e;t++)n[t]=a+r;t?(l.setAttribute(`${s0}-left`,"0"),l.setAttribute(`${s0}-top`,`${a}px`)):(l.setAttribute(`${s0}-left`,`${a}px`),l.setAttribute(`${s0}-top`,"0"))}else{let a=0,i=n[0];for(let t=1;t<e;t++)n[t]<i&&(a=t,i=n[t]);let o=`calc(${a} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,a)} * ${s})`;t?(l.setAttribute(`${s0}-left`,o),l.setAttribute(`${s0}-top`,`${i}px`)):(l.setAttribute(`${s0}-left`,`${i}px`),l.setAttribute(`${s0}-top`,o)),n[a]+=r}}for(let e=0;e<this.#I.children.length;e++){let t=this.#I.children[e];t.style.setProperty("left",t.getAttribute(`${s0}-left`)),t.style.setProperty("top",t.getAttribute(`${s0}-top`)),t.setAttribute("slot",sQ)}};constructor(e){this.#I=e}#aJ=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#aQ()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};get #aZ(){return iZ.value}})],sw)],i3=[],i8=HTMLElement,class extends i8{static{i1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i8[Symbol.metadata]??null):void 0;i4(null,i0={value:i1},i2,{kind:"class",name:i1.name,metadata:e},null,i3),i1=i0.value,e&&Object.defineProperty(i1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#az=sd(()=>this.shadowRoot,"#content");#a0={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#a1={};get scrollTop(){return this.#az().scrollTop}set scrollTop(e){this.#az().scrollTop=e}get scrollLeft(){return this.#az().scrollTop}set scrollLeft(e){this.#az().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#az().scrollTop=0,this.#az().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#az().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#a2=e=>{if(!this.#a0.isScrolling)return;if(!this.#a0.lastTimestamp){this.#a0.lastTimestamp=e,requestAnimationFrame(this.#a2);return}let t=this.#az(),n=(e-this.#a0.lastTimestamp)/1e3*this.#a0.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#a0.lastTimestamp=e;let a="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(a?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#a0.autoStop?(a?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#a0.isScrolling=!1):requestAnimationFrame(this.#a2)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#a0={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#az(),a="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#a0.lastTimestamp=0,a?setTimeout(()=>requestAnimationFrame(this.#a2),0):requestAnimationFrame(this.#a2)}else this.#a0.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#a1),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#a3=()=>Object.values(this.#a1).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#a8=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",a="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#a3();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...sn,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#a3()}}))},100);return}if(a){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#a1[n]&&delete this.#a1[n]:this.#a1[n]=e.target;return}};connectedCallback(){this.#az().addEventListener("contentvisibilityautostatechange",this.#a8,{passive:!0})}static{i9(i1,i3)}}},198:function(e,t,n){n.a(e,async function(e,t){try{var a=n(506);n(125),n(407),n(12);var l=e([a]);a=(l.then?(await l)():l)[0];let s=document.getElementById("qr-scanner"),r=document.getElementById("lynx-view"),o=document.getElementById("back-button"),d=document.getElementById("nav"),c="preinstalled/homepage.json";o.addEventListener("click",()=>{i(c)});let h=new QrScanner(s,e=>{console.log("qr",e),r.style.visibility="visible",h.stop();let t=e.data;i(t)},{highlightScanRegion:!0,highlightCodeOutline:!0});function i(e){let t=window.matchMedia("(prefers-color-scheme: dark)").matches?"Dark":"Light";if(r.onNativeModulesCall=(e,t)=>{"openScan"===e?(r.style.visibility="hidden",h.start()):"openSchema"===e&&i(t)},r.globalProps={theme:t},e===c)d.style.display="none",r.url=e,d.style.setProperty("--bar-color",null);else{let{searchParams:t}=new URL(e);t.has("bar_color")&&d.style.setProperty("--bar-color",`#${t.get("bar_color")}`),t.has("fullscreen")&&"true"===t.get("fullscreen")?d.style.display="none":d.style.display="flex",r.url=e}}i(c),window.addEventListener("message",e=>{if(e.data&&"setLynxViewUrl"===e.data.method&&e.data.url){let t=r.parentElement;r.remove(),(r=document.createElement("lynx-view")).setAttribute("style","flex: 0 1 100vh; height:100vh;width:100vw;"),t.append(r),i(e.data.url)}}),t()}catch(e){t(e)}})}},l={};function i(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,exports:{}};return a[e](n,n.exports,i),n.exports}i.m=a,r=(s="function"==typeof Symbol)?Symbol("webpack queues"):"__webpack_queues__",o=i.aE=s?Symbol("webpack exports"):"__webpack_exports__",d=s?Symbol("webpack error"):"__webpack_error__",c=s?Symbol("webpack done"):"__webpack_done__",h=i.zS=s?Symbol("webpack defer"):"__webpack_defer__",u=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},i.a=(e,t,n)=>{n&&((a=[]).d=-1);var a,s,m,p,v=new Set,b=e.exports,g=new Promise((e,t)=>{p=t,m=e});g[o]=b,g[r]=e=>{a&&e(a),v.forEach(e),g.catch(function(){})},e.exports=g,t(e=>{s=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[r]&&e[h]){var t=e[h];if(!t.some(e=>{var t=l[e];return!t||!1===t[c]}))return e;var n=e;e={then(e){Promise.all(t.map(i)).then(()=>e(n))}}}if(e[r])return e;if(e.then){var a=[];a.d=0,e.then(e=>{s[o]=e,u(a)},e=>{s[d]=e,u(a)});var s={};return s[h]=!1,s[r]=e=>e(a),s}}var m={};return m[r]=function(){},m[o]=e,m});var t,n=()=>s.map(e=>{if(e[h])return e;if(e[d])throw e[d];return e[o]}),m=new Promise(e=>{(t=()=>e(n)).r=0;var l=e=>e!==a&&!v.has(e)&&(v.add(e),e&&!e.d&&(t.r++,e.push(t)));s.map(e=>e[h]||e[r](l))});return t.r?m:n()},e=>(e?p(g[d]=e):m(b),u(a),g[c]=!0)),a&&a.d<0&&(a.d=0)},i.F={},i.E=e=>{Object.keys(i.F).map(t=>{i.F[t](e)})},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=(e,t)=>Promise.all(Object.keys(i.f).reduce((n,a)=>(i.f[a](e,n,t),n),[])),i.u=e=>"static/js/async/"+(({361:"web-core-main-thread-apis",8:"legacy-wasm-chunk"})[e]||e)+".js",i.miniCssF=e=>""+e+".css",i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),m={},i.l=function(e,t,n,a,l){if(m[e])return void m[e].push(t);if(void 0!==n)for(var s,r,o=document.getElementsByTagName("script"),d=0;d<o.length;d++){var c=o[d];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="@lynx-js/web-explorer:"+n){s=c;break}}s||(r=!0,(s=document.createElement("script")).timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack","@lynx-js/web-explorer:"+n),l&&s.setAttribute("fetchpriority",l),s.src=e),m[e]=[t];var h=function(t,n){s.onerror=s.onload=null,clearTimeout(u);var a=m[e];if(delete m[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),r&&document.head.appendChild(s)},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p=[],i.O=(e,t,n,a)=>{if(t){a=a||0;for(var l=p.length;l>0&&p[l-1][2]>a;l--)p[l]=p[l-1];p[l]=[t,n,a];return}for(var s=1/0,l=0;l<p.length;l++){for(var[t,n,a]=p[l],r=!0,o=0;o<t.length;o++)(!1&a||s>=a)&&Object.keys(i.O).every(e=>i.O[e](t[o]))?t.splice(o--,1):(r=!1,a<s&&(s=a));if(r){p.splice(l--,1);var d=n();void 0!==d&&(e=d)}}return e},i.v=function(e,t,n,a){var l=fetch(i.p+"static/wasm/"+n.slice(0,8)+".module.wasm"),s=function(){return l.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,a)}).then(function(t){return Object.assign(e,t.instance.exports)})};return l.then(function(t){return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,a).then(function(t){return Object.assign(e,t.instance.exports)},function(e){if("application/wasm"!==t.headers.get("Content-Type"))return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e),s();throw e}):s()})},i.g.importScripts&&(v=i.g.location+"");var s,r,o,d,c,h,u,m,p,v,b=i.g.document;if(!v&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(v=b.currentScript.src),!v)){var g=b.getElementsByTagName("script");if(g.length)for(var f=g.length-1;f>-1&&(!v||!/^http(s?):/.test(v));)v=g[f--].src}if(!v)throw Error("Automatic publicPath is not supported in this browser");i.p=(v=v.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../",i.b=document.baseURI||self.location.href,e={410:0},i.f.j=function(t,n,a){var l=i.o(e,t)?e[t]:void 0;if(0!==l)if(l)n.push(l[2]);else{var s=new Promise((n,a)=>l=e[t]=[n,a]);n.push(l[2]=s);var r=i.p+i.u(t),o=Error();i.l(r,function(n){if(i.o(e,t)&&(0!==(l=e[t])&&(e[t]=void 0),l)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",o.name="ChunkLoadError",o.type=a,o.request=s,l[1](o)}},"chunk-"+t,t,a)}},i.F.j=t=>{if(!i.o(e,t)||void 0===e[t]){e[t]=null;var n=document.createElement("link");i.nc&&n.setAttribute("nonce",i.nc),n.rel="prefetch",n.as="script",n.href=i.p+i.u(t),document.head.appendChild(n)}},i.O.j=t=>0===e[t],t=(t,n)=>{var a,l,[s,r,o]=n,d=0;if(s.some(t=>0!==e[t])){for(a in r)i.o(r,a)&&(i.m[a]=r[a]);if(o)var c=o(i)}for(t&&t(n);d<s.length;d++)l=s[d],i.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return i.O(c)},(n=globalThis.webpackChunk_lynx_js_web_explorer=globalThis.webpackChunk_lynx_js_web_explorer||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),i.O(0,["410"],()=>{i.E("361")},5);var y=i(198);y=i.O(y)})();