@doubao-dev/cli 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1232.js +1 -0
- package/dist/1264.js +1 -0
- package/dist/1611.js +2 -0
- package/dist/2232.js +60 -0
- package/dist/2507.js +1 -0
- package/dist/275.js +5 -8
- package/dist/2932.js +1 -1
- package/dist/4525.js +1 -1
- package/dist/4880.js +1 -1
- package/dist/4931.js +1 -1
- package/dist/{3688.js → 5887.js} +3 -3
- package/dist/6438.js +140 -0
- package/dist/6976.js +280 -0
- package/dist/{8981.js.LICENSE.txt → 6976.js.LICENSE.txt} +108 -0
- package/dist/7410.js +1 -2
- package/dist/@byted-doubao-apps/create.js +1 -1
- package/dist/@byted-doubao-apps/kit.js +1 -1
- package/dist/@byted-doubao-apps/login.js +2 -2
- package/dist/@byted-doubao-apps/login~1.js +2 -2
- package/dist/@byted-doubao-apps/template-empty/package.json +3 -3
- package/dist/@byted-doubao-apps/template-starter/package.json +3 -3
- package/dist/@byted-hdt/cli.js +1 -1
- package/dist/@inquirer/select.js +1 -1
- package/dist/{assets/web-sdk-debugger/static/wasm/eaf690f2cd.module.wasm → @lynx-js/static/wasm/77fb77f77f.module.wasm} +0 -0
- package/dist/@lynx-js/{web-core-canary.js → web-core.js} +2 -2
- package/dist/app.js +1 -1
- package/dist/assets/web-sdk-debugger/__doubao_web_sdk_native_modules/applet-bridge-module-core.js +1 -1
- package/dist/assets/web-sdk-debugger/index.html +1 -1
- package/dist/assets/web-sdk-debugger/preact-devtools/index.js +4 -1
- package/dist/assets/web-sdk-debugger/static/css/index.ef5d8bc5ad.css +1 -0
- package/dist/assets/web-sdk-debugger/static/js/{682.de47e82f6b.js → 426.53c43a8594.js} +2 -2
- package/dist/assets/web-sdk-debugger/static/js/479.26e0b1d922.js +1829 -0
- package/dist/assets/web-sdk-debugger/static/js/async/503.259fed5610.js +1 -0
- package/dist/assets/web-sdk-debugger/static/js/async/{legacy-wasm-js.bacc8b5564.js → legacy-wasm-js.9b9367f818.js} +2 -2
- package/dist/assets/web-sdk-debugger/static/js/async/lynx-core-chunk.7f5e94dfae.js +5 -0
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-main-chunk.f78260697f.js +1 -0
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-markup-encoder.33c43c480e.js +4 -0
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-template-loader-thread.ba290b32d7.js +4 -0
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-worker-chunk.9a5989b104.js +1 -0
- package/dist/assets/web-sdk-debugger/static/js/async/web-elements.3fbd53918e.js +365 -0
- package/dist/assets/web-sdk-debugger/static/js/async/xmarkdown-deps.efd0ffb051.js +5 -0
- package/dist/assets/web-sdk-debugger/static/js/async/{xmarkdown-deps.3ea5672b2c.js.LICENSE.txt → xmarkdown-deps.efd0ffb051.js.LICENSE.txt} +1 -1
- package/dist/assets/web-sdk-debugger/static/js/index.b6e5c76345.js +44 -0
- package/dist/assets/web-sdk-debugger/static/js/lib-polyfill.c91181f230.js +1 -0
- package/dist/assets/web-sdk-debugger/static/wasm/{69a8ba8eb9.module.wasm → 4c402c7981.module.wasm} +0 -0
- package/dist/assets/web-sdk-debugger/static/wasm/{03b02f9e5a.module.wasm → 72aaf7d0aa.module.wasm} +0 -0
- package/dist/{@lynx-js/static/wasm/eaf690f2cd.module.wasm → assets/web-sdk-debugger/static/wasm/77fb77f77f.module.wasm} +0 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-api.template.js +0 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-framework.template.js +0 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-react-dev.template.js +0 -0
- package/dist/assets/web-sdk-debugger/wsd/doubao-apps-react.template.js +0 -0
- package/dist/browser.js +1 -1
- package/dist/build.js +1 -1
- package/dist/build~1.js +10 -10
- package/dist/check.js +1 -1
- package/dist/client.js +1 -0
- package/dist/client~1.js +1 -0
- package/dist/components-loader.js +1 -1
- package/dist/demo-server.js +2 -2
- package/dist/demo.js +2 -2
- package/dist/dev-config.js +2 -2
- package/dist/dev-shell.js +1 -1
- package/dist/dev.js +19 -16
- package/dist/explore.js +10 -0
- package/dist/gen-explore.js +1 -1
- package/dist/gen-trajectory.js +1 -1
- package/dist/info.js +2 -2
- package/dist/init.js +4 -4
- package/dist/ink.js +1 -1
- package/dist/inquirer.js +1 -1
- package/dist/json-file.js +2 -2
- package/dist/legacy-status.js +1 -1
- package/dist/legacy-upload.js +1 -1
- package/dist/lepus.js +1 -1
- package/dist/login.js +2 -1
- package/dist/main.js +1 -1
- package/dist/{manifest-mcp-config.js → manifest-headers.js} +1 -1
- package/dist/ora.js +1 -1
- package/dist/portal.js +1 -1
- package/dist/project-layout.js +1 -1
- package/dist/project.js +1 -1
- package/dist/prompt.js +8 -8
- package/dist/prompts.js +1 -1
- package/dist/qrcode.js +1 -0
- package/dist/report.js +1 -1
- package/dist/run-registry.js +1 -1
- package/dist/run.js +321 -321
- package/dist/sandbox.js +1 -1
- package/dist/scan.js +1 -1
- package/dist/sdk.js +192 -59
- package/dist/sdk~1.js +66 -58
- package/dist/server.js +10 -10
- package/dist/skill.js +1 -1
- package/dist/skills.js +1 -1
- package/dist/skills~1.js +1 -1
- package/dist/status.js +1 -1
- package/dist/status~1.js +2 -2
- package/dist/stop.js +1 -1
- package/dist/sync.js +1 -1
- package/dist/trajectory.js +3 -0
- package/dist/update.js +1 -1
- package/dist/upgrade.js +1 -1
- package/dist/workspace.js +1 -1
- package/dist/yaml.js +1 -1
- package/package.json +7 -6
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/02-/347/263/273/347/273/237.md +2 -2
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/06-/350/267/257/347/224/261.md +4 -0
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/07-/347/225/214/351/235/242.md +8 -0
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/26-/345/237/272/347/241/200/344/277/241/346/201/257.md +2 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/33-/345/261/217/345/271/225.md +124 -8
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/groups.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/quick-reference.md +2 -1
- package/skills/doubao-agentic-service-development/references/frontend/examples/page-widget-basics.md +1 -0
- package/skills/doubao-agentic-service-development/references/frontend/guides/client-tools-and-events.md +209 -0
- package/skills/doubao-agentic-service-development/references/frontend/guides/component-development.md +7 -1
- package/skills/doubao-agentic-service-development/references/frontend/guides/debugger-mcp.md +1 -1
- package/skills/doubao-agentic-service-development/references/frontend/widget-templates/overview.md +13 -9
- package/skills/doubao-agentic-service-development/references/frontend/widget-templates/props.md +26 -1
- package/skills/doubao-agentic-service-development/references/frontend-dev.md +2 -0
- package/dist/2168.js +0 -60
- package/dist/318.js +0 -1
- package/dist/3974.js +0 -151
- package/dist/6427.js +0 -126
- package/dist/7417.js +0 -204
- package/dist/7417.js.LICENSE.txt +0 -107
- package/dist/7945.js +0 -1
- package/dist/8981.js +0 -78
- package/dist/assets/web-sdk-debugger/static/css/index.7c65607402.css +0 -1
- package/dist/assets/web-sdk-debugger/static/js/670.8a8f0f7d57.js +0 -1829
- package/dist/assets/web-sdk-debugger/static/js/async/503.cf61731bba.js +0 -1
- package/dist/assets/web-sdk-debugger/static/js/async/lynx-core-chunk.afc1ded023.js +0 -5
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-main-chunk.7fe9af852c.js +0 -1
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-markup-encoder.f81d6d2cae.js +0 -4
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-template-loader-thread.4a49f8a286.js +0 -4
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-worker-chunk.c315fd6753.js +0 -1
- package/dist/assets/web-sdk-debugger/static/js/async/web-elements.43d1e29387.js +0 -365
- package/dist/assets/web-sdk-debugger/static/js/async/xmarkdown-deps.3ea5672b2c.js +0 -5
- package/dist/assets/web-sdk-debugger/static/js/index.9f626ba3a2.js +0 -44
- package/dist/assets/web-sdk-debugger/static/js/lib-polyfill.9daa7c863e.js +0 -1
- package/dist/simulator-client.js +0 -1
- /package/dist/{7410.js.LICENSE.txt → 1611.js.LICENSE.txt} +0 -0
- /package/dist/assets/web-sdk-debugger/static/js/{670.8a8f0f7d57.js.LICENSE.txt → 479.26e0b1d922.js.LICENSE.txt} +0 -0
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.rspackChunk_byted_doubao_apps_web_sdk_debugger_app||=[]).push([[724],{78067(e,t,n){let l,i,a,s,o,r,d,h,c,u,m,p,v,b,g,f,y,E,S,w,_,T,C,x,k,O,L,A,I,F,R,M,P,z,N,H,D,G,j,$,V,W,U,B,X,q,Z,Y,J,K,Q,ee,et,en,el,ei,ea,es,eo,er,ed,eh,ec,eu,em,ep,ev,eb,eg,ef,ey,eE,eS,ew,e_,eT,eC,ex,ek,eO,eL,eA,eI,eF,eR,eM,eP,ez,eN,eH,eD,eG,ej,e$,eV,eW,eU,eB,eX,eq,eZ,eY,eJ,eK,eQ,e0,e1,e4,e2,e3,e8,e9,e5,e6,e7,te,tt,tn,tl,ti,ta,ts,to,tr,td,th,tc,tu,tm,tp,tv,tb,tg,tf,ty,tE,tS,tw,t_,tT,tC,tx,tk,tO,tL,tA,tI,tF,tR,tM,tP,tz,tN,tH,tD,tG,tj,t$,tV,tW,tU,tB,tX,tq,tZ,tY,tJ,tK,tQ,t0,t1,t4,t2,t3,t8,t9,t5,t6,t7,ne,nt,nn,nl,ni,na,ns,no,nr,nd,nh,nc,nu,nm,np,nv,nb,ng,nf,ny,nE,nS,nw,n_,nT,nC,nx,nk,nO,nL,nA,nI,nF,nR,nM,nP,nz,nN,nH,nD,nG,nj,n$,nV,nW,nU,nB,nX,nq,nZ,nY,nJ,nK,nQ,n0,n1,n4,n2,n3,n8,n9,n5,n6,n7,le,lt,ln,ll,li,la,ls,lo,lr,ld,lh,lc,lu,lm,lp,lv,lb,lg,lf,ly,lE,lS,lw,l_,lT,lC,lx,lk,lO,lL,lA,lI,lF,lR,lM,lP,lz,lN,lH,lD,lG,lj,l$,lV,lW,lU,lB,lX,lq,lZ,lY,lJ,lK,lQ,l0,l1,l4,l2,l3,l8,l9,l5,l6,l7,ie,it,il,ii,ia,is,io,ir,id,ih,ic,iu,im,ip,iv,ib,ig,iy,iE,iS,iw,i_,iT,iC,ix,ik,iO,iL,iA,iI,iF,iR,iM,iP,iz,iN,iH,iD,iG,ij,i$,iV,iW,iU,iB,iX,iq,iZ,iY,iJ,iK,iQ,i0,i1,i4,i2,i3,i8,i9,i5,i6,i7,ae,at,an,al,ai,aa,as,ao,ar,ad,ah,ac,au,am,ap,av,ab,ag,af,ay,aE,aS,aw,a_,aT,aC,ax,ak,aO,aL,aA,aI,aF,aR,aM,aP,az,aN,aH,aD,aG,aj,a$,aV,aW,aU,aB,aX,aq,aZ,aY,aJ,aK,aQ;n(97903),n(20959);var a0,a1,a4,a2,a3=n(65959),a8=n(52532);h=[(0,a8.uA)("lynx-wrapper",[])],c=[],u=HTMLElement,(class extends u{static #e=d=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;(0,a3.G4)(null,r={value:d},h,{kind:"class",name:d.name,metadata:e},null,c),d=r.value,e&&Object.defineProperty(d,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(d,c)})()}),n(67548),n(70954),n(98803),n(79162),n(15385),n(39342),n(69152),n(61955),n(82689),n(84847),n(16285),n(20602),n(33307),n(94341),n(7270),n(44997),n(50364),n(79780),n(80372),n(72498),n(37928),n(25597),n(92321);var a9=n(30430);let a5=(v=[],b=[],g=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;m=[(0,a8._y)("fading-edge-length",!0)],p=[(0,a8.h3)("background"),(0,a8.h3)("background-color")],(0,a3.G4)(this,null,p,{kind:"method",name:"_backgroundColorToVariable",static:!1,private:!1,access:{has:e=>"_backgroundColorToVariable"in e,get:e=>e._backgroundColorToVariable},metadata:e},null,v),(0,a3.G4)(null,null,m,{kind:"field",name:"_handleFadingEdgeLength",static:!1,private:!1,access:{has:e=>"_handleFadingEdgeLength"in e,get:e=>e._handleFadingEdgeLength,set:(e,t)=>{e._handleFadingEdgeLength=t}},metadata:e},b,g),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();#n=(0,a3.zF)(this,v);#l=(0,a8.Ut)(()=>this.#n.shadowRoot,"#top-fade-mask");#i=(0,a8.Ut)(()=>this.#n.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){(0,a3.zF)(this,g),this.#n=e}_handleFadingEdgeLength=(0,a3.zF)(this,b,(0,a8._8)(()=>this.#n,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));_backgroundColorToVariable(e){this.#l().style.setProperty("--scroll-view-bg-color",e),this.#i().style.setProperty("--scroll-view-bg-color",e)}connectedCallback(){}dispose(){}}),a6=(E=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;f=[(0,a8._y)("scroll-top",!1),(0,a8._y)("scroll-left",!1),(0,a8._y)("initial-scroll-offset",!1)],y=[(0,a8._y)("scroll-to-index",!1),(0,a8._y)("initial-scroll-to-index",!1)],(0,a3.G4)(this,null,f,{kind:"method",name:"_handleInitialScrollOffset",static:!1,private:!1,access:{has:e=>"_handleInitialScrollOffset"in e,get:e=>e._handleInitialScrollOffset},metadata:e},null,E),(0,a3.G4)(this,null,y,{kind:"method",name:"_handleInitialScrollIndex",static:!1,private:!1,access:{has:e=>"_handleInitialScrollIndex"in e,get:e=>e._handleInitialScrollIndex},metadata:e},null,E),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();#n=(0,a3.zF)(this,E);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#n=e}_handleInitialScrollOffset(e,t,n){if(e){let t=parseFloat(e),l=this.#n.getAttribute("scroll-orientation"),i=this.#n.getAttribute("scroll-y"),a=this.#n.getAttribute("scroll-x"),s=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===i||"true"===i||"vertical"===l||"both"===l),o=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===a||"true"===a||"vertical"===l||"both"===l);requestAnimationFrame(()=>{s&&this.#n.scrollTo(0,t),o&&(this.#n.scrollLeft=t)})}}_handleInitialScrollIndex(e){if(e){let t=parseFloat(e),n=this.#n.children.item(t);if(n&&n instanceof HTMLElement){let e=null!==this.#n.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#n.scrollLeft=n.offsetLeft:this.#n.scrollTop=n.offsetTop})}}}dispose(){}});var a7=n(82322);function se(e,t,n){let l;return i=>{null!==i?l||(l=new IntersectionObserver(n,{root:e()})).observe(t()):l&&(l.disconnect(),l=void 0)}}var st=n(64782);let sn=(k=[],O=[],L=[],A=[],I=[],F=[],R=[],M=[],P=[],z=[],N=[],H=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;S=[(0,a8.ZR)("scrolltoupper")],w=[(0,a8.ZR)("scrolltolower")],_=[(0,a8._y)("upper-threshold",!0)],T=[(0,a8._y)("lower-threshold",!0)],C=[(0,a8.ZR)("lynxscroll")],x=[(0,a8.ZR)("lynxscrollend")],(0,a3.G4)(null,null,S,{kind:"field",name:"_handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollUpperThresholdEventEnabled"in e,get:e=>e._handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e._handleScrollUpperThresholdEventEnabled=t}},metadata:e},k,O),(0,a3.G4)(null,null,w,{kind:"field",name:"_handleScrollLowerThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollLowerThresholdEventEnabled"in e,get:e=>e._handleScrollLowerThresholdEventEnabled,set:(e,t)=>{e._handleScrollLowerThresholdEventEnabled=t}},metadata:e},L,A),(0,a3.G4)(null,null,_,{kind:"field",name:"_updateUpperThreshold",static:!1,private:!1,access:{has:e=>"_updateUpperThreshold"in e,get:e=>e._updateUpperThreshold,set:(e,t)=>{e._updateUpperThreshold=t}},metadata:e},I,F),(0,a3.G4)(null,null,T,{kind:"field",name:"_updateLowerThreshold",static:!1,private:!1,access:{has:e=>"_updateLowerThreshold"in e,get:e=>e._updateLowerThreshold,set:(e,t)=>{e._updateLowerThreshold=t}},metadata:e},R,M),(0,a3.G4)(null,null,C,{kind:"field",name:"_handleScrollEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEventEnabled"in e,get:e=>e._handleScrollEventEnabled,set:(e,t)=>{e._handleScrollEventEnabled=t}},metadata:e},P,z),(0,a3.G4)(null,null,x,{kind:"field",name:"_handleScrollEndEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEndEventEnabled"in e,get:e=>e._handleScrollEndEventEnabled,set:(e,t)=>{e._handleScrollEndEventEnabled=t}},metadata:e},N,H),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();#n;#a;#s=0;#o=0;constructor(e){(0,a3.zF)(this,H),this.#n=e}#r=()=>this.#n;#d=(0,a8.Ut)(()=>this.#n.shadowRoot,"#upper-threshold-observer");#h=(0,a8.Ut)(()=>this.#n.shadowRoot,"#lower-threshold-observer");#c=e=>{let{isIntersecting:t,target:n}=e[0],l=n.id;t&&("upper-threshold-observer"===l?this.#n.dispatchEvent(new CustomEvent("scrolltoupper",{...a7.$,detail:this.#u()})):"lower-threshold-observer"===l&&this.#n.dispatchEvent(new CustomEvent("scrolltolower",{...a7.$,detail:this.#u()})))};static observedAttributes=["upper-threshold","lower-threshold"];_handleScrollUpperThresholdEventEnabled=(0,a3.zF)(this,k,e=>{e?this.#n.setAttribute("x-enable-scrolltoupper-event",""):this.#n.removeAttribute("x-enable-scrolltoupper-event"),this.#m(e)});#m=((0,a3.zF)(this,O),se(this.#r,this.#d,this.#c));_handleScrollLowerThresholdEventEnabled=(0,a3.zF)(this,L,e=>{e?this.#n.setAttribute("x-enable-scrolltolower-event",""):this.#n.removeAttribute("x-enable-scrolltolower-event"),this.#p(e)});#p=((0,a3.zF)(this,A),se(this.#r,this.#h,this.#c));_updateUpperThreshold=(0,a3.zF)(this,I,(0,a8._8)(this.#d,"flex-basis",e=>`${parseInt(e)}px`));_updateLowerThreshold=((0,a3.zF)(this,F),(0,a3.zF)(this,R,(0,a8._8)(this.#h,"flex-basis",e=>`${parseInt(e)}px`)));#u(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:l}=this.#r();0===e&&(e-=this.#n.scrollHeight/2-this.#n.scrollTop),0===t&&(t-=this.#n.scrollWidth/2-this.#n.scrollLeft);let i={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:l,isDragging:!1,deltaX:t-this.#s,deltaY:e-this.#o};return this.#s=t,this.#o=e,i}#v=((0,a3.zF)(this,M),()=>{this.#b&&!st.k&&(clearTimeout(this.#a),this.#a=setTimeout(()=>{this.#g()},100)),this.#n.dispatchEvent(new CustomEvent("lynxscroll",{...a7.$,detail:this.#u()}))});#g=()=>{this.#n.dispatchEvent(new CustomEvent("lynxscrollend",{...a7.$,detail:this.#u()}))};#f=!1;_handleScrollEventEnabled=(0,a3.zF)(this,P,e=>{this.#f=e,this.#y()});#b=((0,a3.zF)(this,z),!1);_handleScrollEndEventEnabled=(0,a3.zF)(this,N,e=>{this.#b=e,this.#y()});#y(){this.#f||this.#b?(this.#r().addEventListener("scroll",this.#v),this.#r().addEventListener("scrollend",this.#g),this.#n.addEventListener("scroll",this.#v),this.#n.addEventListener("scrollend",this.#g),this.#s=0,this.#o=0):(this.#n.removeEventListener("scroll",this.#v),this.#n.removeEventListener("scrollend",this.#g))}connectedCallback(){}dispose(){}});n(42949),n(18723),n(14104);class sl{static eventName="__scrollIntoView";static observedAttributes=[];#n;#E=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],l=this.#n;for(let e of t){if(e===l)break;n.push(e)}let i=this.#n.getAttribute("scroll-orientation"),a=null!==this.#n.getAttribute("scroll-x")||"both"===i||"horizontal"===i,s=null!==this.#n.getAttribute("scroll-y")||"both"===i||"vertical"===i,o=0,r=0;for(let{offsetTop:e,offsetLeft:t}of n)a&&(r+=t),s&&(o+=e);if(a)switch(e.detail.inline){case"center":r+=(e.target.clientWidth-this.#n.clientWidth)/2;break;case"end":r+=e.target.clientWidth-this.#n.clientWidth}if(s)switch(e.detail.block){case"center":o+=(e.target.clientHeight-this.#n.clientHeight)/2;break;case"end":o+=e.target.clientHeight-this.#n.clientHeight}l.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:r,top:o})};constructor(e){this.#n=e,this.#n.addEventListener(sl.eventName,this.#E,{passive:!1})}dispose(){this.#n.removeEventListener(sl.eventName,this.#E)}}n(15254);let si=`<style>
|
|
2
|
-
.placeholder-dom {
|
|
3
|
-
display: none;
|
|
4
|
-
flex: 0 0 0;
|
|
5
|
-
align-self: stretch;
|
|
6
|
-
min-height: 0;
|
|
7
|
-
min-width: 0;
|
|
8
|
-
}
|
|
9
|
-
.mask {
|
|
10
|
-
z-index: 1;
|
|
11
|
-
position: sticky;
|
|
12
|
-
}
|
|
13
|
-
.observer-container {
|
|
14
|
-
flex-direction: inherit;
|
|
15
|
-
overflow: visible;
|
|
16
|
-
}
|
|
17
|
-
.observer {
|
|
18
|
-
display: flex;
|
|
19
|
-
}
|
|
20
|
-
::-webkit-scrollbar {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
</style>
|
|
24
|
-
<div
|
|
25
|
-
class="mask placeholder-dom"
|
|
26
|
-
id="top-fade-mask"
|
|
27
|
-
part="top-fade-mask"
|
|
28
|
-
></div>
|
|
29
|
-
<div
|
|
30
|
-
class="observer-container placeholder-dom"
|
|
31
|
-
part="upper-threshold-observer"
|
|
32
|
-
>
|
|
33
|
-
<div
|
|
34
|
-
class="observer placeholder-dom"
|
|
35
|
-
id="upper-threshold-observer"
|
|
36
|
-
></div>
|
|
37
|
-
</div>
|
|
38
|
-
<slot></slot>
|
|
39
|
-
<div
|
|
40
|
-
class="observer-container placeholder-dom"
|
|
41
|
-
part="lower-threshold-observer"
|
|
42
|
-
>
|
|
43
|
-
<div
|
|
44
|
-
class="observer placeholder-dom"
|
|
45
|
-
id="lower-threshold-observer"
|
|
46
|
-
></div>
|
|
47
|
-
</div>
|
|
48
|
-
<div
|
|
49
|
-
class="mask placeholder-dom"
|
|
50
|
-
id="bot-fade-mask"
|
|
51
|
-
part="bot-fade-mask"
|
|
52
|
-
></div>`,sa=/<\s*script/,ss=e=>{let{src:t}=e;if(t&&sa.test(t))throw Error("detected <script, this is a potential XSS attack, please check your src");return`<img part="img" alt="" id="img" ${t?`src="${t}"`:""}/> `},so=`<style>
|
|
53
|
-
#input:focus {
|
|
54
|
-
outline: none;
|
|
55
|
-
}
|
|
56
|
-
#form {
|
|
57
|
-
display: none;
|
|
58
|
-
}
|
|
59
|
-
</style>
|
|
60
|
-
<form id="form" part="form" method="dialog">
|
|
61
|
-
<input
|
|
62
|
-
id="input"
|
|
63
|
-
part="input"
|
|
64
|
-
step="any"
|
|
65
|
-
type="text"
|
|
66
|
-
inputmode="text"
|
|
67
|
-
spell-check="true"
|
|
68
|
-
/>
|
|
69
|
-
</form>`,sr=`<style>
|
|
70
|
-
.placeholder-dom {
|
|
71
|
-
display: none;
|
|
72
|
-
flex: 0 0 0;
|
|
73
|
-
align-self: stretch;
|
|
74
|
-
min-height: 0;
|
|
75
|
-
min-width: 0;
|
|
76
|
-
}
|
|
77
|
-
.observer-container {
|
|
78
|
-
flex-direction: inherit;
|
|
79
|
-
overflow: visible;
|
|
80
|
-
}
|
|
81
|
-
.observer {
|
|
82
|
-
display: flex;
|
|
83
|
-
}
|
|
84
|
-
</style>
|
|
85
|
-
<div id="content" part="content">
|
|
86
|
-
<div
|
|
87
|
-
class="observer-container placeholder-dom"
|
|
88
|
-
part="upper-threshold-observer"
|
|
89
|
-
>
|
|
90
|
-
<div
|
|
91
|
-
class="observer placeholder-dom"
|
|
92
|
-
id="upper-threshold-observer"
|
|
93
|
-
part="upper-threshold-sentinel"
|
|
94
|
-
></div>
|
|
95
|
-
</div>
|
|
96
|
-
<slot part="slot"></slot>
|
|
97
|
-
<div
|
|
98
|
-
class="observer-container placeholder-dom"
|
|
99
|
-
part="lower-threshold-observer"
|
|
100
|
-
>
|
|
101
|
-
<div
|
|
102
|
-
class="observer placeholder-dom"
|
|
103
|
-
id="lower-threshold-observer"
|
|
104
|
-
part="lower-threshold-sentinel"
|
|
105
|
-
></div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>`,sd=`<style>
|
|
108
|
-
#dialog[open] {
|
|
109
|
-
top: 0;
|
|
110
|
-
left: 0;
|
|
111
|
-
right: 0;
|
|
112
|
-
bottom: 0;
|
|
113
|
-
position: fixed;
|
|
114
|
-
overscroll-behavior: contain;
|
|
115
|
-
scrollbar-width: none;
|
|
116
|
-
}
|
|
117
|
-
#dialog[open]::-webkit-scrollbar {
|
|
118
|
-
display: none;
|
|
119
|
-
}
|
|
120
|
-
#dialog::backdrop {
|
|
121
|
-
background-color: transparent;
|
|
122
|
-
}
|
|
123
|
-
.overlay-inner {
|
|
124
|
-
position: sticky;
|
|
125
|
-
top: 0;
|
|
126
|
-
width: 100%;
|
|
127
|
-
height: 100%;
|
|
128
|
-
pointer-events: none;
|
|
129
|
-
}
|
|
130
|
-
.overlay-inner > * {
|
|
131
|
-
pointer-events: auto;
|
|
132
|
-
}
|
|
133
|
-
.overlay-placeholder {
|
|
134
|
-
width: 100%;
|
|
135
|
-
height: 1px;
|
|
136
|
-
}
|
|
137
|
-
</style>
|
|
138
|
-
<dialog id="dialog" part="dialog">
|
|
139
|
-
<div class="overlay-inner">
|
|
140
|
-
<slot></slot>
|
|
141
|
-
</div>
|
|
142
|
-
<div class="overlay-placeholder"></div>
|
|
143
|
-
</dialog>`,sh=`<style>
|
|
144
|
-
.bounce-container {
|
|
145
|
-
overflow: scroll;
|
|
146
|
-
overscroll-behavior: contain;
|
|
147
|
-
scroll-snap-type: y mandatory;
|
|
148
|
-
scroll-behavior: smooth;
|
|
149
|
-
scrollbar-width: none;
|
|
150
|
-
}
|
|
151
|
-
.overflow-placeholder {
|
|
152
|
-
min-height: 30%;
|
|
153
|
-
min-width: 100%;
|
|
154
|
-
flex-shrink: 0;
|
|
155
|
-
scroll-snap-align: none;
|
|
156
|
-
}
|
|
157
|
-
.not-shrink {
|
|
158
|
-
height: 100%;
|
|
159
|
-
width: 100%;
|
|
160
|
-
min-height: 100%;
|
|
161
|
-
min-width: 100%;
|
|
162
|
-
flex-shrink: 0;
|
|
163
|
-
}
|
|
164
|
-
.vertical {
|
|
165
|
-
display: flex;
|
|
166
|
-
flex-direction: column;
|
|
167
|
-
}
|
|
168
|
-
#content {
|
|
169
|
-
scroll-snap-align: center;
|
|
170
|
-
}
|
|
171
|
-
</style>
|
|
172
|
-
<div id="container" part="container" class="bounce-container not-shrink vertical">
|
|
173
|
-
<div
|
|
174
|
-
id="placeholder-top"
|
|
175
|
-
class="overflow-placeholder bounce-item"
|
|
176
|
-
part="placeholder-top"
|
|
177
|
-
></div>
|
|
178
|
-
<slot name="header"></slot>
|
|
179
|
-
<div id="content" part="content" class="not-shrink vertical">
|
|
180
|
-
<slot part="slot"></slot>
|
|
181
|
-
</div>
|
|
182
|
-
<slot name="footer"></slot>
|
|
183
|
-
<div
|
|
184
|
-
id="placeholder-bot"
|
|
185
|
-
class="overflow-placeholder bounce-item"
|
|
186
|
-
part="placeholder-bot"
|
|
187
|
-
></div>
|
|
188
|
-
</div>`,sc=`<style>
|
|
189
|
-
#bounce-padding {
|
|
190
|
-
display: none;
|
|
191
|
-
flex: 0 0 0;
|
|
192
|
-
align-self: stretch;
|
|
193
|
-
scroll-snap-align: none;
|
|
194
|
-
flex-basis: 100%;
|
|
195
|
-
}
|
|
196
|
-
#content {
|
|
197
|
-
position: relative;
|
|
198
|
-
display: flex;
|
|
199
|
-
flex: 0 0 100%;
|
|
200
|
-
flex-direction: inherit;
|
|
201
|
-
flex-wrap: inherit;
|
|
202
|
-
align-self: stretch;
|
|
203
|
-
justify-content: inherit;
|
|
204
|
-
align-items: inherit;
|
|
205
|
-
overflow: inherit;
|
|
206
|
-
scrollbar-width: none;
|
|
207
|
-
scroll-snap-align: start;
|
|
208
|
-
scroll-snap-type: inherit;
|
|
209
|
-
}
|
|
210
|
-
div::-webkit-scrollbar {
|
|
211
|
-
display: none;
|
|
212
|
-
}
|
|
213
|
-
#indicator-container {
|
|
214
|
-
display: none;
|
|
215
|
-
}
|
|
216
|
-
#indicator-container > div {
|
|
217
|
-
animation-name: indicator-dot;
|
|
218
|
-
animation-duration: 100ms;
|
|
219
|
-
}
|
|
220
|
-
@keyframes indicator-dot {
|
|
221
|
-
30%,
|
|
222
|
-
70% {
|
|
223
|
-
background-color: var(--indicator-color);
|
|
224
|
-
}
|
|
225
|
-
31%,
|
|
226
|
-
69% {
|
|
227
|
-
background-color: var(--indicator-active-color);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
</style>
|
|
231
|
-
<style id="indicator-style"></style>
|
|
232
|
-
<div id="bounce-padding" part="bounce-padding"></div>
|
|
233
|
-
<div id="indicator-container" part="indicator-container"></div>
|
|
234
|
-
<div id="content" part="content">
|
|
235
|
-
<slot part="slot-start" name="circular-start" id="circular-start"></slot>
|
|
236
|
-
<slot part="slot"></slot>
|
|
237
|
-
<slot part="slot-end" name="circular-end" id="circular-end"></slot>
|
|
238
|
-
</div>`,su=`<style>
|
|
239
|
-
:host {
|
|
240
|
-
display: block;
|
|
241
|
-
}
|
|
242
|
-
.markdown-body {
|
|
243
|
-
display: block;
|
|
244
|
-
line-height: 1.4;
|
|
245
|
-
color: inherit;
|
|
246
|
-
word-break: break-word;
|
|
247
|
-
position: relative;
|
|
248
|
-
}
|
|
249
|
-
.markdown-body p {
|
|
250
|
-
margin: 0 0 0.75em 0;
|
|
251
|
-
}
|
|
252
|
-
.markdown-body h1,
|
|
253
|
-
.markdown-body h2,
|
|
254
|
-
.markdown-body h3,
|
|
255
|
-
.markdown-body h4,
|
|
256
|
-
.markdown-body h5,
|
|
257
|
-
.markdown-body h6 {
|
|
258
|
-
margin: 0.8em 0 0.4em 0;
|
|
259
|
-
}
|
|
260
|
-
.markdown-body ul,
|
|
261
|
-
.markdown-body ol {
|
|
262
|
-
margin: 0 0 0.75em 1.5em;
|
|
263
|
-
}
|
|
264
|
-
.markdown-body pre {
|
|
265
|
-
margin: 0 0 0.75em 0;
|
|
266
|
-
padding: 8px 12px;
|
|
267
|
-
border-radius: 6px;
|
|
268
|
-
background: #f6f8fa;
|
|
269
|
-
overflow: auto;
|
|
270
|
-
}
|
|
271
|
-
.markdown-body code {
|
|
272
|
-
font-family: ui-monospace, SFMono-Regular, SFMono, Menlo, Consolas,
|
|
273
|
-
"Liberation Mono", monospace;
|
|
274
|
-
}
|
|
275
|
-
.markdown-body pre code {
|
|
276
|
-
display: block;
|
|
277
|
-
padding: 0;
|
|
278
|
-
}
|
|
279
|
-
.markdown-body img {
|
|
280
|
-
max-width: 100%;
|
|
281
|
-
height: auto;
|
|
282
|
-
display: block;
|
|
283
|
-
}
|
|
284
|
-
.markdown-body .md-inline-view {
|
|
285
|
-
display: inline-block;
|
|
286
|
-
vertical-align: baseline;
|
|
287
|
-
}
|
|
288
|
-
.markdown-body .md-truncation {
|
|
289
|
-
position: absolute;
|
|
290
|
-
right: 0;
|
|
291
|
-
bottom: 0;
|
|
292
|
-
background-color: inherit;
|
|
293
|
-
}
|
|
294
|
-
.markdown-body .md-image-figure {
|
|
295
|
-
margin: 0 0 0.75em 0;
|
|
296
|
-
}
|
|
297
|
-
.markdown-body .md-image-caption {
|
|
298
|
-
margin-top: 4px;
|
|
299
|
-
color: #666;
|
|
300
|
-
font-size: 0.875em;
|
|
301
|
-
}
|
|
302
|
-
.markdown-body .md-text-mask-effect {
|
|
303
|
-
position: relative;
|
|
304
|
-
display: inline-block;
|
|
305
|
-
}
|
|
306
|
-
.markdown-body .md-text-mask-effect-overlay {
|
|
307
|
-
position: absolute;
|
|
308
|
-
inset: 0;
|
|
309
|
-
pointer-events: none;
|
|
310
|
-
user-select: none;
|
|
311
|
-
white-space: pre;
|
|
312
|
-
color: transparent;
|
|
313
|
-
-webkit-background-clip: text;
|
|
314
|
-
background-clip: text;
|
|
315
|
-
}
|
|
316
|
-
.markdown-body a {
|
|
317
|
-
color: #0366d6;
|
|
318
|
-
text-decoration: underline;
|
|
319
|
-
}
|
|
320
|
-
</style>
|
|
321
|
-
<style id="markdown-style"></style>
|
|
322
|
-
<div id="markdown-root" part="root" class="markdown-body"></div>`,sm=`<style>
|
|
323
|
-
#textarea:focus,
|
|
324
|
-
#textarea:focus-visible {
|
|
325
|
-
border: inherit;
|
|
326
|
-
outline: inherit;
|
|
327
|
-
}
|
|
328
|
-
</style>
|
|
329
|
-
<form id="form" part="form" method="dialog">
|
|
330
|
-
<textarea id="textarea" part="textarea"></textarea>
|
|
331
|
-
</form>`,sp=`<style>
|
|
332
|
-
#bounce-padding {
|
|
333
|
-
display: none;
|
|
334
|
-
flex: 0 0 0;
|
|
335
|
-
align-self: stretch;
|
|
336
|
-
scroll-snap-align: none;
|
|
337
|
-
flex-basis: 100%;
|
|
338
|
-
}
|
|
339
|
-
#content {
|
|
340
|
-
flex: 0 0 100%;
|
|
341
|
-
flex-direction: row;
|
|
342
|
-
align-self: stretch;
|
|
343
|
-
display: inherit;
|
|
344
|
-
justify-content: inherit;
|
|
345
|
-
align-items: inherit;
|
|
346
|
-
overflow: inherit;
|
|
347
|
-
scrollbar-width: none;
|
|
348
|
-
scroll-snap-type: inherit;
|
|
349
|
-
}
|
|
350
|
-
#content::-webkit-scrollbar {
|
|
351
|
-
display: none;
|
|
352
|
-
}
|
|
353
|
-
</style>
|
|
354
|
-
<div id="bounce-padding" part="bounce-padding"></div>
|
|
355
|
-
<div id="content" part="content">
|
|
356
|
-
<slot></slot>
|
|
357
|
-
</div>`,sv=`<style>
|
|
358
|
-
iframe {
|
|
359
|
-
width: 100%;
|
|
360
|
-
height: 100%;
|
|
361
|
-
border: none;
|
|
362
|
-
}
|
|
363
|
-
</style>
|
|
364
|
-
<iframe id="webview" part="webview"></iframe>`,sb=CSS.supports("-webkit-box-reflect: above")&&CSS.supports("transition-behavior:allow-discrete")&&CSS.supports("content-visibility: auto");class sg{static observedAttributes=[];static observedCSSProperties=["--lynx-display","--lynx-linear-orientation"];#n;constructor(e){this.#n=e,this.cssPropertyChangedHandler={"--lynx-display":this.#S,"--lynx-linear-orientation":this.#w}}#S=(0,a8.H$)(()=>this.#n,"lynx-computed-display");#w=(0,a8.H$)(()=>this.#n,"lynx-linear-orientation")}let sf=sb?void 0:sg;j=[(0,a8.uA)("scroll-view",[sf,a9.O,a6,a5,sn,sl],si)],$=[],V=HTMLElement,a0=class extends V{static #e=G=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(V[Symbol.metadata]??null):void 0;(0,a3.G4)(null,D={value:G},j,{kind:"class",name:G.name,metadata:e},null,$),a0=G=D.value,e&&Object.defineProperty(G,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#_;scrollTo(){let e;for(var t=arguments.length,n=Array(t),l=0;l<t;l++)n[l]=arguments[l];if("string"==typeof n[0].offset){let t=parseFloat(n[0].offset);e={left:t,top:t}}else"number"==typeof n[0].offset&&(e={left:n[0].offset,top:n[0].offset});if("number"==typeof n[0].index){let t=n[0].index;if(0===t)this.scrollTop=0,this.scrollLeft=0;else if(t>0&&t<this.childElementCount){let n=this.children.item(t);n instanceof HTMLElement&&(e=e?{left:n.offsetLeft+e.left,top:n.offsetTop+e.top}:{left:n.offsetLeft,top:n.offsetTop})}}e?this.scrollTo({...e,behavior:n[0].smooth?"smooth":"auto"}):super.scrollTo(...n)}autoScroll(e){if(clearInterval(this.#_),e.start){let t=("number"==typeof e.rate?e.rate:parseFloat(e.rate))*a0.scrollInterval/1e3;this.#_=setInterval(e=>{e.scrollBy({left:t,top:t,behavior:"smooth"})},a0.scrollInterval,this)}}get[st.l](){return this}static #T=(0,a3.zF)(G,$)},a0=G,n(21301),n(52205),n(40768),n(76235);let sy=Symbol("__src"),sE=Symbol("__src"),sS={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sw={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(a1=a2||(a2={}))[a1.SrcError=-1]="SrcError",a1[a1.SrcJsonError=-2]="SrcJsonError",a1[a1.DownloadError=-3]="DownloadError",a1[a1.PlayerFinishedError=-4]="PlayerFinishedError",a1[a1.PlayerLoadingError=-5]="PlayerLoadingError",a1[a1.PlayerPlaybackError=-6]="PlayerPlaybackError";let s_=(X=[],q=[],Z=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;W=[(0,a8._y)("src",!0)],U=[(0,a8._y)("loop",!0)],B=[(0,a8._y)("pause-on-hide",!0)],(0,a3.G4)(this,null,W,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,X),(0,a3.G4)(this,null,B,{kind:"method",name:"_handlePauseOnHide",static:!1,private:!1,access:{has:e=>"_handlePauseOnHide"in e,get:e=>e._handlePauseOnHide},metadata:e},null,X),(0,a3.G4)(null,null,U,{kind:"field",name:"_handleLoop",static:!1,private:!1,access:{has:e=>"_handleLoop"in e,get:e=>e._handleLoop,set:(e,t)=>{e._handleLoop=t}},metadata:e},q,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["src","loop","pause-on-hide"];#n=(0,a3.zF)(this,X);#C=(0,a8.Ut)(()=>this.#n.shadowRoot,"#audio");_handleSrc(e){var t,n;let l;try{l=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),l={}}null===e?this.#n.dispatchEvent(new CustomEvent("error",{...a7.$,detail:{code:a2.SrcError,msg:"",from:"res loader",currentSrcID:null==(t=this.#n[sy])?void 0:t.id}})):((null==l?void 0:l.id)===void 0||(null==l?void 0:l.play_url)===void 0)&&this.#n.dispatchEvent(new CustomEvent("error",{...a7.$,detail:{code:a2.SrcJsonError,msg:"",from:"res loader",currentSrcID:null==(n=this.#n[sy])?void 0:n.id}})),this.#n[sy]=l,this.#n[sE]=void 0,this.#n.stop()}_handleLoop=(0,a3.zF)(this,q,(0,a8.H$)(this.#C,"loop"));#x=((0,a3.zF)(this,Z),()=>{"hidden"===document.visibilityState&&this.#n.pause()});_handlePauseOnHide(e){null!==e?document.addEventListener("visibilitychange",this.#x,{passive:!0}):document.removeEventListener("visibilitychange",this.#x)}constructor(e){this.#n=e}});class sT{static observedAttributes=[];#n;#k;#C=(0,a8.Ut)(()=>this.#n.shadowRoot,"#audio");#O=e=>{var t;let n=Number(this.#n.getAttribute("interval")),l=Number.isNaN(n)?0:n;this.#k=setInterval(()=>{var e;this.#n.dispatchEvent(new CustomEvent("timeupdate",{...a7.$,detail:{currentTime:this.#C().currentTime,currentSrcID:null==(e=this.#n[sy])?void 0:e.id}}))},l);let i=sw[e.type];this.#n.dispatchEvent(new CustomEvent("playbackstatechanged",{...a7.$,detail:{code:null==i?void 0:i.code,type:null==i?void 0:i.type,currentSrcID:null==(t=this.#n[sy])?void 0:t.id}}))};#L=e=>{var t;clearInterval(this.#k);let n=sw[e.type];this.#n.dispatchEvent(new CustomEvent("playbackstatechanged",{...a7.$,detail:{code:null==n?void 0:n.code,type:null==n?void 0:n.type,currentSrcID:null==(t=this.#n[sy])?void 0:t.id}}))};#A=e=>{var t;let n=sS[e.type];this.#n.dispatchEvent(new CustomEvent("loadingstatechanged",{...a7.$,detail:{code:null==n?void 0:n.code,type:null==n?void 0:n.type,currentSrcID:null==(t=this.#n[sy])?void 0:t.id}}))};#I=e=>{var t,n,l;this.#A(e);let i=null==(n=e.target)||null==(t=n.error)?void 0:t.code,a=i===MediaError.MEDIA_ERR_DECODE?a2.PlayerLoadingError:a2.PlayerPlaybackError;i===MediaError.MEDIA_ERR_DECODE&&(a=a2.PlayerLoadingError),this.#n.dispatchEvent(new CustomEvent("error",{...a7.$,detail:{code:a,msg:"",from:"player",currentSrcID:null==(l=this.#n[sy])?void 0:l.id}}))};#F=()=>{var e;let t=null!==this.#n.getAttribute("loop");this.#n.dispatchEvent(new CustomEvent("finished",{...a7.$,detail:{loop:t,currentSrcID:null==(e=this.#n[sy])?void 0:e.id}}))};constructor(e){this.#n=e}connectedCallback(){let e=this.#C();e.addEventListener("play",this.#O,{passive:!0}),e.addEventListener("pause",this.#L,{passive:!0}),e.addEventListener("ended",this.#F,{passive:!0}),e.addEventListener("loadstart",this.#A,{passive:!0}),e.addEventListener("canplay",this.#A,{passive:!0}),e.addEventListener("stalled",this.#A,{passive:!0}),e.addEventListener("error",this.#I,{passive:!0})}}K=[(0,a8.uA)("x-audio-tt",[a9.O,s_,sT],'<audio id="audio"></audio>')],Q=[],ee=HTMLElement,class extends ee{static #e=J=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ee[Symbol.metadata]??null):void 0;(0,a3.G4)(null,Y={value:J},K,{kind:"class",name:J.name,metadata:e},null,Q),J=Y.value,e&&Object.defineProperty(J,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(J,Q)})();#R=(0,a8.Ut)(()=>this.shadowRoot,"#audio");#C=(0,a8.Ut)(()=>this.shadowRoot,"#audio");#M=(0,a8.H$)(this.#C,"src");[sy];[sE];#P(e,t){var n;this.dispatchEvent(new CustomEvent("error",{...a7.$,detail:{code:e,msg:"",from:t,currentSrcID:null==(n=this[sy])?void 0:n.id}}))}#z=()=>{let e,t=this[sy];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[sE]=new Promise(async(n,l)=>{var i;this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...a7.$,detail:{code:0,type:"loading",currentSrcID:t.id}}));let a=await fetch(t.play_url,{headers:e});if(!a.ok){this.#P(a2.DownloadError,"res loader"),l();return}if(this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...a7.$,detail:{code:1,type:"success",currentSrcID:t.id}})),null==(i=a.headers.get("content-type"))?void 0:i.toLowerCase().startsWith("text/html")){this.#P(a2.PlayerPlaybackError,"player"),l();return}let s=await a.blob(),o=URL.createObjectURL(s);this.#M(o),n()}),this[sE].catch(()=>{})}};play(){var e,t;return this[sE]||this.#z(),null==(e=this[sE])||e.then(()=>{let e=this.#R();e.currentTime=0;try{e.play().catch(()=>{this.#P(a2.PlayerPlaybackError,"player")})}catch{this.#P(a2.PlayerPlaybackError,"player")}},()=>{}),{currentSrcID:null==(t=this[sy])?void 0:t.id,loadingSrcID:""}}stop(){var e,t;let n=this.#R(),l=sw.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...a7.$,detail:{code:null==l?void 0:l.code,type:null==l?void 0:l.type,currentSrcID:null==(e=this[sy])?void 0:e.id}})),n.currentTime=0,n.pause(),{currentSrcID:null==(t=this[sy])?void 0:t.id}}pause(){var e;return this.#R().pause(),{currentSrcID:null==(e=this[sy])?void 0:e.id}}resume(){var e;return this.#R().play(),{currentSrcID:null==(e=this[sy])?void 0:e.id,loadingSrcID:""}}seek(e){var t,n;return this.#R().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...a7.$,detail:{seekresult:1,currentSrcID:null==(t=this[sy])?void 0:t.id}})),{currentSrcID:null==(n=this[sy])?void 0:n.id}}mute(e){var t;return this.#R().muted=e.mute,{currentSrcID:null==(t=this[sy])?void 0:t.id}}playerInfo(){var e,t;let n=this.#R(),l=n.buffered,i=l.end(l.length-1);return{currentSrcID:null==(e=this[sy])?void 0:e.id,duration:1e3*n.duration,playbackState:(t=n)?t.paused?2*!t.ended:t.currentTime>0?1:3:-1,currentTime:n.currentTime,cacheTime:i}}prepare(){this[sE]||this.#z()}setVolume(e){return this.#R().volume=e.volume,{code:1}}};let sC=(ei=[],ea=[],es=[],eo=[],er=[],ed=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;et=[(0,a8._y)("name",!0)],en=[(0,a8._y)("height",!0)],el=[(0,a8._y)("width",!0)],(0,a3.G4)(null,null,et,{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},ei,ea),(0,a3.G4)(null,null,en,{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},es,eo),(0,a3.G4)(null,null,el,{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},er,ed),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["name","height","width"];#n;#N;#H=(0,a8.Ut)(()=>this.#n.shadowRoot,"#canvas");constructor(e){this.#n=e}handleName=(0,a3.zF)(this,ei,(0,a8.H$)(this.#H,"name"));handleHeight=((0,a3.zF)(this,ea),(0,a3.zF)(this,es,(0,a8.H$)(this.#H,"height")));handleWidth=((0,a3.zF)(this,eo),(0,a3.zF)(this,er,(0,a8.H$)(this.#H,"width")));#D=((0,a3.zF)(this,ed),e=>{let{contentRect:t}=e[0],n=this.#n.shadowRoot.firstElementChild;if(n){let{height:e,width:l}=t;e*=window.devicePixelRatio,l*=window.devicePixelRatio;let i=new CustomEvent("resize",{...a7.$,detail:{height:e,width:l}});i.height=e,i.width=l,n.dispatchEvent(i)}});#G(){this.#N||(this.#N=new ResizeObserver(this.#D),this.#N.observe(this.#n))}#j(){var e;null==(e=this.#N)||e.disconnect(),this.#N=void 0}connectedCallback(){this.#G()}dispose(){this.#j()}});eu=[(0,a8.uA)("x-canvas",[a9.O,sC],(0,a8.qy)`<canvas id="canvas" part="canvas"></canvas>`)],em=[],ep=HTMLElement,class extends ep{static #e=ec=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ep[Symbol.metadata]??null):void 0;(0,a3.G4)(null,eh={value:ec},eu,{kind:"class",name:ec.name,metadata:e},null,em),ec=eh.value,e&&Object.defineProperty(ec,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(ec,em)})()};let sx=(eg=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ev=[(0,a8._y)("granularity",!0)],eb=[(0,a8.ZR)("offset")],(0,a3.G4)(this,null,ev,{kind:"method",name:"_handleGranularity",static:!1,private:!1,access:{has:e=>"_handleGranularity"in e,get:e=>e._handleGranularity},metadata:e},null,eg),(0,a3.G4)(this,null,eb,{kind:"method",name:"_enableOffsetEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetEvent"in e,get:e=>e._enableOffsetEvent},metadata:e},null,eg),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();#n=(0,a3.zF)(this,eg);#$=.01;#V=0;constructor(e){this.#n=e}static observedAttributes=["granularity"];_handleGranularity(e){e&&""!==e?this.#$=parseFloat(e):this.#$=.01}_enableOffsetEvent(e){e?this.#n.addEventListener("scroll",this.#v,{passive:!0}):this.#n.removeEventListener("scroll",this.#v)}#v=()=>{let e=this.#n.scrollTop;(Math.abs(this.#V-e)>this.#$||0===this.#n.scrollTop||1>=Math.abs(this.#n.scrollHeight-this.#n.clientHeight-this.#n.scrollTop))&&(this.#V=e,this.#n.dispatchEvent(new CustomEvent("offset",{...a7.$,detail:{offset:e,height:this.#n[sk]}})))}}),sk=Symbol("scrollableLength"),sO=Symbol("isHeaderShowing"),sL=Symbol("resizeObserver"),sA=Symbol("slotKid");eE=[(0,a8.uA)("x-foldview-ng",[sf,a9.O,sx])],eS=[],ew=HTMLElement,class extends ew{static #e=ey=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ew[Symbol.metadata]??null):void 0;(0,a3.G4)(null,ef={value:ey},eE,{kind:"class",name:ey.name,metadata:e},null,eS),ey=ef.value,e&&Object.defineProperty(ey,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sA];[sL]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#W=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#U=t.contentRect.height);this[sA]&&(this[sA].style.top=`${this.#W-this.#U}px`)});#W=0;#U=0;get[sk](){return this.#W-this.#U}get[sO](){return this[sk]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sk]?e=this[sk]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,l=parseFloat(t);this.scrollTo({top:Math.min(Math.max(l,0),this[sk]),behavior:n?"smooth":"instant"})}get[st.l](){return this}disconnectedCallback(){var e;null==(e=this[sL])||e.disconnect(),this[sL]=void 0}static #T=(0,a3.zF)(ey,eS)};let sI=(e,t)=>{let n=e.parentElement;if((null==n?void 0:n.tagName)==="LYNX-WRAPPER"&&(n=n.parentElement),(null==n?void 0:n.tagName)===t)return n};eC=[(0,a8.uA)("x-foldview-header-ng",[sf,a9.O])],ex=[],ek=HTMLElement,(class extends ek{static #e=eT=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ek[Symbol.metadata]??null):void 0;(0,a3.G4)(null,e_={value:eT},eC,{kind:"class",name:eT.name,metadata:e},null,ex),eT=e_.value,e&&Object.defineProperty(eT,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(eT,ex)})();#B=void 0;connectedCallback(){var e;let t=sI(this,"X-FOLDVIEW-NG");this.#B=null==t?void 0:t[sL],null==(e=this.#B)||e.observe(this)}dispose(){var e;null==(e=this.#B)||e.unobserve(this)}}),eA=[(0,a8.uA)("x-foldview-slot-drag-ng",[sf,a9.O])],eI=[],eF=HTMLElement,(class extends eF{static #e=eL=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(eF[Symbol.metadata]??null):void 0;(0,a3.G4)(null,eO={value:eL},eA,{kind:"class",name:eL.name,metadata:e},null,eI),eL=eO.value,e&&Object.defineProperty(eL,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(eL,eI)})()}),n(74678),n(55910),n(76691),n(72919),n(37891),n(49678);class sF{#X=0;#q=new WeakMap;#Z;#Y=0;#J=0;#K=null;#Q;#ee=0;#n;static observedAttributes=[];constructor(e){this.#n=e,this.#n.addEventListener("touchmove",this.#et,{passive:!1}),this.#n.addEventListener("touchstart",this.#en,{passive:!0}),this.#n.addEventListener("touchend",this.#el,{passive:!0}),this.#n.addEventListener("wheel",this.#ei,{passive:!1})}#ea(e){let t=e[st.l];return t instanceof Element?t:e}#es(e){return[...new Set(e.map(e=>this.#ea(e)))]}#eo(e){let t;if("function"==typeof e.computedStyleMap)try{var n;t=(null==(n=e.computedStyleMap().get("overflow-y"))?void 0:n.toString())??"visible"}catch{t=getComputedStyle(e).overflowY||"visible"}else t=getComputedStyle(e).overflowY||"visible";return"auto"===t||"scroll"===t||"hidden"===t||"overlay"===t}#er(e){var t;return null==(t=this.#Z)?void 0:t.find(t=>{if(this.#eo(t)&&t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,l=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||l}return!1})}#ed(e,t){let n=this.#q.get(e)??0;n+=t,this.#q.set(e,n),e.scrollTop=n}#et=e=>{let t=this.#eh();if(!t)return;let{pageY:n,pageX:l}=e.touches.item(0),i=this.#Y-n;if(null===this.#K){let e=this.#J-l;this.#K=Math.abs(i)>Math.abs(e)}!1!==this.#K&&(e.cancelable&&e.preventDefault(),this.#ec(i,t),this.#Y=n,this.#J=l)};#ei=e=>{let t=this.#eh();if(!t||Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let n=e.composedPath().filter(e=>e instanceof Element&&this.#n.contains(e)&&e!==this.#n),{clientX:l,clientY:i}=e,a=document.elementsFromPoint(l,i).filter(e=>this.#n.contains(e));if(this.#Z=this.#es([...n,...a]),this.#X=t.scrollTop,this.#Z)for(let e of this.#Z)this.#q.set(e,e.scrollTop);e.cancelable&&e.preventDefault(),this.#ec(e.deltaY,t)};#eh(){let e=this.#n.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#en=e=>{var t;let{pageX:n,pageY:l,clientX:i,clientY:a}=e.touches.item(0),s=e.composedPath().filter(e=>e instanceof Element&&this.#n.contains(e)&&e!==this.#n),o=document.elementsFromPoint(i,a).filter(e=>this.#n.contains(e)&&e!==this.#n);for(let e of(this.#Z=this.#es([...s,...o]),this.#Y=l,this.#J=n,this.#X=(null==(t=this.#eh())?void 0:t.scrollTop)??0,this.#Z))this.#q.set(e,e.scrollTop);this.#K=null,this.#Q=void 0};#el=()=>{if(this.#K=null,this.#Q){let e=this.#eh();(this.#Q!==e||e[sO])&&this.#Q.scrollBy({top:4*this.#ee,behavior:"smooth"})}};#ec(e,t){let n=this.#er(e);t[sO]&&e>0||e<0&&!n||!t[sO]&&!n?(t.scrollBy({top:e,behavior:"smooth"}),this.#X+=e,t.scrollTop=this.#X,this.#Q=t):n&&(this.#Q=n,this.#ed(n,e)),this.#ee=e}}eP=[(0,a8.uA)("x-foldview-slot-ng",[sf,a9.O,sF])],ez=[],eN=HTMLElement,(class extends eN{static #e=eM=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(eN[Symbol.metadata]??null):void 0;(0,a3.G4)(null,eR={value:eM},eP,{kind:"class",name:eM.name,metadata:e},null,ez),eM=eR.value,e&&Object.defineProperty(eM,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(eM,ez)})();connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sA]=this)}}),eG=[(0,a8.uA)("x-foldview-toolbar-ng",[sf,a9.O])],ej=[],e$=HTMLElement,class extends e${static #e=eD=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(e$[Symbol.metadata]??null):void 0;(0,a3.G4)(null,eH={value:eD},eG,{kind:"class",name:eD.name,metadata:e},null,ej),eD=eH.value,e&&Object.defineProperty(eD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(eD,ej)})();#B=void 0;connectedCallback(){var e;let t=sI(this,"X-FOLDVIEW-NG");this.#B=null==t?void 0:t[sL],null==(e=this.#B)||e.observe(this)}dispose(){var e;null==(e=this.#B)||e.unobserve(this)}};let sR=(eW=[],eU=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eV=[(0,a8._y)("drop-shadow",!0)],(0,a3.G4)(null,null,eV,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eW,eU),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["drop-shadow"];#n;#eu=(0,a8.Ut)(()=>this.#n.shadowRoot,"#img");_handleBlurRadius=(0,a3.zF)(this,eW,(0,a8._8)(this.#eu,"--drop-shadow",void 0,!0));constructor(e){(0,a3.zF)(this,eU),this.#n=e}}),sM=(eJ=[],eK=[],eQ=[],e0=[],e1=[],e4=[],e2=[],e3=[],e8=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eB=[(0,a8._y)("src",!0)],eX=[(0,a8._y)("placeholder",!0)],eq=[(0,a8._y)("blur-radius",!0)],eZ=[(0,a8._y)("crossorigin",!0)],eY=[(0,a8._y)("referrerpolicy",!0)],(0,a3.G4)(this,null,eX,{kind:"method",name:"_preloadPlaceholder",static:!1,private:!1,access:{has:e=>"_preloadPlaceholder"in e,get:e=>e._preloadPlaceholder},metadata:e},null,eJ),(0,a3.G4)(null,null,eB,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},eK,eQ),(0,a3.G4)(null,null,eq,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},e0,e1),(0,a3.G4)(null,null,eZ,{kind:"field",name:"_handleCrossorigin",static:!1,private:!1,access:{has:e=>"_handleCrossorigin"in e,get:e=>e._handleCrossorigin,set:(e,t)=>{e._handleCrossorigin=t}},metadata:e},e4,e2),(0,a3.G4)(null,null,eY,{kind:"field",name:"_handleReferrerpolicy",static:!1,private:!1,access:{has:e=>"_handleReferrerpolicy"in e,get:e=>e._handleReferrerpolicy,set:(e,t)=>{e._handleReferrerpolicy=t}},metadata:e},e3,e8),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#n=(0,a3.zF)(this,eJ);#eu=(0,a8.Ut)(()=>this.#n.shadowRoot,"#img");_handleSrc=(0,a3.zF)(this,eK,(0,a8.H$)(this.#eu,"src",e=>e||this.#n.getAttribute("placeholder")));_preloadPlaceholder(e){e&&(new Image().src=e)}_handleBlurRadius=((0,a3.zF)(this,eQ),(0,a3.zF)(this,e0,(0,a8._8)(this.#eu,"--blur-radius",void 0,!0)));_handleCrossorigin=((0,a3.zF)(this,e1),(0,a3.zF)(this,e4,(0,a8.H$)(this.#eu,"crossorigin")));_handleReferrerpolicy=((0,a3.zF)(this,e2),(0,a3.zF)(this,e3,(0,a8.H$)(this.#eu,"referrerpolicy")));#em=((0,a3.zF)(this,e8),()=>{let e=this.#eu().src,t=this.#n.getAttribute("placeholder");t&&e!==t&&(this.#eu().src=t)});constructor(e){this.#n=e,this.#eu().addEventListener("error",this.#em)}connectedCallback(){(null===this.#n.getAttribute("src")||""===this.#n.getAttribute("src"))&&this._handleSrc(null)}}),sP=(e6=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e9=[(0,a8.ZR)("load")],e5=[(0,a8.ZR)("error")],(0,a3.G4)(this,null,e9,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,e6),(0,a3.G4)(this,null,e5,{kind:"method",name:"_enableErrorEvent",static:!1,private:!1,access:{has:e=>"_enableErrorEvent"in e,get:e=>e._enableErrorEvent},metadata:e},null,e6),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=[];#n=(0,a3.zF)(this,e6);#eu=(0,a8.Ut)(()=>this.#n.shadowRoot,"#img");_enableLoadEvent(e){e?this.#eu().addEventListener("load",this.#ep,{passive:!0}):this.#eu().removeEventListener("load",this.#ep)}_enableErrorEvent(e){e?this.#eu().addEventListener("error",this.#ev,{passive:!0}):this.#eu().removeEventListener("error",this.#ev)}#ep=()=>{this.#n.dispatchEvent(new CustomEvent("load",{...a7.$,detail:{width:this.#eu().naturalWidth,height:this.#eu().naturalHeight}}))};#ev=()=>{this.#n.dispatchEvent(new CustomEvent("error",{...a7.$,detail:{}}))};constructor(e){this.#n=e}});tt=[(0,a8.uA)("filter-image",[a9.O,sM,sR,sP],ss({}))],tn=[],tl=HTMLElement,(class extends tl{static #e=te=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(tl[Symbol.metadata]??null):void 0;(0,a3.G4)(null,e7={value:te},tt,{kind:"class",name:te.name,metadata:e},null,tn),te=e7.value,e&&Object.defineProperty(te,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(te,tn)})()}),ts=[(0,a8.uA)("x-image",[a9.O,sM,sP],ss({}))],to=[],tr=HTMLElement,class extends tr{static #e=ta=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(tr[Symbol.metadata]??null):void 0;(0,a3.G4)(null,ti={value:ta},ts,{kind:"class",name:ta.name,metadata:e},null,to),ta=ti.value,e&&Object.defineProperty(ta,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(ta,to)})()};let sz=(tp=[],tv=[],tb=[],tg=[],tf=[],ty=[],tE=[],tS=[],tw=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;td=[(0,a8._y)("confirm-type",!0)],th=[(0,a8._y)("maxlength",!0)],tc=[(0,a8._y)("readonly",!0)],tu=[(0,a8._y)("type",!0)],tm=[(0,a8._y)("ios-spell-check",!0),(0,a8._y)("spell-check",!0)],(0,a3.G4)(this,null,tu,{kind:"method",name:"_handleType",static:!1,private:!1,access:{has:e=>"_handleType"in e,get:e=>e._handleType},metadata:e},null,tp),(0,a3.G4)(null,null,td,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},tv,tb),(0,a3.G4)(null,null,th,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},tg,tf),(0,a3.G4)(null,null,tc,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},ty,tE),(0,a3.G4)(null,null,tm,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},tS,tw),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"];#n=(0,a3.zF)(this,tp);#eb=(0,a8.Ut)(()=>this.#n.shadowRoot,"#input");_handlerConfirmType=(0,a3.zF)(this,tv,(0,a8.H$)(this.#eb,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=((0,a3.zF)(this,tb),(0,a3.zF)(this,tg,(0,a8.H$)(this.#eb,"maxlength",e=>null===e?"140":e)));_handleReadonly=((0,a3.zF)(this,tf),(0,a3.zF)(this,ty,(0,a8.H$)(this.#eb,"readonly",e=>null!==e?"":null)));#eg=((0,a3.zF)(this,tE),(0,a8.H$)(this.#eb,"type"));#ef=(0,a8.H$)(this.#eb,"inputmode");_handleType(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#ef(t),this.#eg(n)}_handleSpellCheck=(0,a3.zF)(this,tS,(0,a8.H$)(this.#eb,"spellcheck",e=>null===e?"false":"true"));constructor(e){(0,a3.zF)(this,tw),this.#n=e}}),sN=(tO=[],tL=[],tA=[],tI=[],tF=[],tR=[],tM=[],tP=[],tz=[],tN=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t_=[(0,a8._y)("placeholder",!0)],tT=[(0,a8._y)("placeholder-color",!0)],tC=[(0,a8._y)("placeholder-font-family",!0)],tx=[(0,a8._y)("placeholder-font-size",!0)],tk=[(0,a8._y)("placeholder-font-weight",!0)],(0,a3.G4)(null,null,t_,{kind:"field",name:"_handlerPlaceholder",static:!1,private:!1,access:{has:e=>"_handlerPlaceholder"in e,get:e=>e._handlerPlaceholder,set:(e,t)=>{e._handlerPlaceholder=t}},metadata:e},tO,tL),(0,a3.G4)(null,null,tT,{kind:"field",name:"_handlerPlaceholderColor",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderColor"in e,get:e=>e._handlerPlaceholderColor,set:(e,t)=>{e._handlerPlaceholderColor=t}},metadata:e},tA,tI),(0,a3.G4)(null,null,tC,{kind:"field",name:"_handlerPlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontFamily"in e,get:e=>e._handlerPlaceholderFontFamily,set:(e,t)=>{e._handlerPlaceholderFontFamily=t}},metadata:e},tF,tR),(0,a3.G4)(null,null,tx,{kind:"field",name:"_handlerPlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontSize"in e,get:e=>e._handlerPlaceholderFontSize,set:(e,t)=>{e._handlerPlaceholderFontSize=t}},metadata:e},tM,tP),(0,a3.G4)(null,null,tk,{kind:"field",name:"_handlerPlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontWeight"in e,get:e=>e._handlerPlaceholderFontWeight,set:(e,t)=>{e._handlerPlaceholderFontWeight=t}},metadata:e},tz,tN),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"];#n;#eb=(0,a8.Ut)(()=>this.#n.shadowRoot,"#input");_handlerPlaceholder=(0,a3.zF)(this,tO,(0,a8.H$)(this.#eb,"placeholder"));_handlerPlaceholderColor=((0,a3.zF)(this,tL),(0,a3.zF)(this,tA,(0,a8._8)(this.#eb,"--placeholder-color",void 0,!0)));_handlerPlaceholderFontFamily=((0,a3.zF)(this,tI),(0,a3.zF)(this,tF,(0,a8._8)(this.#eb,"--placeholder-font-family",void 0,!0)));_handlerPlaceholderFontSize=((0,a3.zF)(this,tR),(0,a3.zF)(this,tM,(0,a8._8)(this.#eb,"--placeholder-font-size",void 0,!0)));_handlerPlaceholderFontWeight=((0,a3.zF)(this,tP),(0,a3.zF)(this,tz,(0,a8._8)(this.#eb,"--placeholder-font-weight",void 0,!0)));constructor(e){(0,a3.zF)(this,tN),this.#n=e}}),sH=(tj=[],t$=[],tV=[],tW=[],tU=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tH=[(0,a8._y)("value",!1)],tD=[(0,a8._y)("disabled",!0)],tG=[(0,a8._y)("autocomplete",!0)],(0,a3.G4)(this,null,tH,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,tj),(0,a3.G4)(null,null,tD,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},t$,tV),(0,a3.G4)(null,null,tG,{kind:"field",name:"_handleAutocomplete",static:!1,private:!1,access:{has:e=>"_handleAutocomplete"in e,get:e=>e._handleAutocomplete,set:(e,t)=>{e._handleAutocomplete=t}},metadata:e},tW,tU),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["value","disabled","autocomplete"];#n=(0,a3.zF)(this,tj);#eb=(0,a8.Ut)(()=>this.#n.shadowRoot,"#input");_handleValue(e){if(e){let t=parseFloat(this.#n.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#eb();t.value!==e&&(t.value=e)}_handleDisabled=(0,a3.zF)(this,t$,(0,a8.H$)(this.#eb,"disabled",e=>null!==e?"":null));_handleAutocomplete=((0,a3.zF)(this,tV),(0,a3.zF)(this,tW,(0,a8.H$)(this.#eb,"autocomplete")));constructor(e){(0,a3.zF)(this,tU),this.#n=e}}),sD={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"},sG=(tZ=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tB=[(0,a8._y)("input-filter",!0),(0,a8.ZR)("lynxinput")],tX=[(0,a8._y)("send-composing-input",!0)],tq=[(0,a8.ZR)("selection")],(0,a3.G4)(this,null,tB,{kind:"method",name:"_handleEnableInputEvent",static:!1,private:!1,access:{has:e=>"_handleEnableInputEvent"in e,get:e=>e._handleEnableInputEvent},metadata:e},null,tZ),(0,a3.G4)(this,null,tX,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,tZ),(0,a3.G4)(this,null,tq,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,tZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["send-composing-input","input-filter"];#n=(0,a3.zF)(this,tZ);#ey=!1;#eE=/[^0-9.]|\.(?=.*\.)/g;#eb=(0,a8.Ut)(()=>this.#n.shadowRoot,"#input");#eS=(0,a8.Ut)(()=>this.#n.shadowRoot,"#form");_handleEnableInputEvent(e){let t=this.#eb();e?(t.addEventListener("input",this.#ew,{passive:!0}),t.addEventListener("compositionend",this.#e_,{passive:!0})):(t.removeEventListener("input",this.#ew),t.removeEventListener("compositionend",this.#e_))}_handleSendComposingInput(e){this.#ey=null!==e}#eT=e=>{let t=sD[e.type]??e.type;this.#n.dispatchEvent(new CustomEvent(t,{...a7.$,detail:{value:this.#eb().value}}))};#ew=e=>{let t=this.#eb(),n=this.#eC(t.value),l=e.isComposing;t.value=n,(!l||this.#ey)&&this.#n.dispatchEvent(new CustomEvent("lynxinput",{...a7.$,detail:{value:n,textLength:n.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#e_=()=>{let e=this.#eb(),t=this.#eC(e.value);e.value=t,this.#ey||this.#n.dispatchEvent(new CustomEvent("lynxinput",{...a7.$,detail:{value:t,textLength:t.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eC(e){let t=e;"number"===this.#n.getAttribute("type")&&(t=t.replace(this.#eE,""));let n=this.#n.getAttribute("input-filter");return n&&(t=t.replace(RegExp(n,"g"),"")),t}_handleEnableSelectionEvent(e){e?this.#eb().addEventListener("select",this.#ex,{passive:!0}):this.#eb().removeEventListener("select",this.#ex)}#ex=()=>{let e=this.#eb();this.#n.dispatchEvent(new CustomEvent("selection",{...a7.$,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#ek=e=>{e.target===this.#eb()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#n=e;const t=this.#eb(),n=this.#eS();t.addEventListener("blur",this.#eT,{passive:!0}),t.addEventListener("focus",this.#eT,{passive:!0}),n.addEventListener("submit",this.#eT,{passive:!0}),n.addEventListener("input",this.#ek,{passive:!0})}});tK=[(0,a8.uA)("x-input",[a9.O,sN,sH,sz,sG],so)],tQ=[],t0=HTMLElement,class extends t0{static #e=tJ=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(t0[Symbol.metadata]??null):void 0;(0,a3.G4)(null,tY={value:tJ},tK,{kind:"class",name:tJ.name,metadata:e},null,tQ),tJ=tY.value,e&&Object.defineProperty(tJ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(tJ,tQ)})();#eO=(0,a8.Ut)(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#eO(),l=n.selectionStart;if(null===l)n.value=t;else{let e=n.value;n.value=e.slice(0,l)+t+e.slice(l)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#eO();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#eO();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,l=this.#eO();1===t&&(n=1);let i=l.selectionStart;if(null===i){let e=l.value;l.value=l.value.substring(0,e.length-n)}else{let e=l.value;l.value=e.slice(0,i-n)+e.slice(i)}}setInputFilter(e){this.#eO().setAttribute("pattern",e.pattern)}select(){let e=this.#eO();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#eO().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#eO().focus(e)}blur(){this.#eO().blur()}connectedCallback(){let e=this.#eO();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}};let sj=(t2=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[(0,a8._y)("events-pass-through",!0)],t4=[(0,a8._y)("visible",!1)],(0,a3.G4)(this,null,t1,{kind:"method",name:"_handleEventsPassThrough",static:!1,private:!1,access:{has:e=>"_handleEventsPassThrough"in e,get:e=>e._handleEventsPassThrough},metadata:e},null,t2),(0,a3.G4)(this,null,t4,{kind:"method",name:"_handleVisible",static:!1,private:!1,access:{has:e=>"_handleVisible"in e,get:e=>e._handleVisible},metadata:e},null,t2),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["visible","events-pass-through"];#n=(0,a3.zF)(this,t2);#eL=!!window.HTMLDialogElement;#eA=!1;constructor(e){this.#n=e}#eI=(0,a8.Ut)(()=>this.#n.shadowRoot,"#dialog");_handleEventsPassThrough(e){null!==e?(this.#eI().addEventListener("click",this.#eF,{passive:!1}),this.#n.addEventListener("click",this.#eF,{passive:!1})):(this.#eI().removeEventListener("click",this.#eF),this.#n.removeEventListener("click",this.#eF))}_handleVisible(e){this.#eA=null!==e,this.#eL&&(this.#eA?(this.#eI().showModal(),this.#n.dispatchEvent(new CustomEvent("showoverlay",a7.$))):(this.#eI().close(),this.#n.dispatchEvent(new CustomEvent("dismissoverlay",a7.$))))}#eF=e=>{e.stopPropagation();let t=this.#eI();if(e.target===this.#n||e.target===t){t.close();let{clientX:n,clientY:l}=e,i=document.elementFromPoint(n,l);(null==i?void 0:i.tagName)==="LYNX-VIEW"&&i.shadowRoot&&(i=i.shadowRoot.elementFromPoint(n,l)??i),null==i||i.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#eA&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#eL||(this.#eI().style.display="none")}});t9=[(0,a8.uA)("x-overlay-ng",[a9.O,sj],sd)],t5=[],t6=HTMLElement,(class extends t6{static #e=t8=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(t6[Symbol.metadata]??null):void 0;(0,a3.G4)(null,t3={value:t8},t9,{kind:"class",name:t8.name,metadata:e},null,t5),t8=t3.value,e&&Object.defineProperty(t8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(t8,t5)})();get[a9.v](){return this.shadowRoot.firstElementChild}}),n(84086);class s$ extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(s$.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sV{#n;static observedAttributes=[];#eR;constructor(e){this.#n=e}connectedCallback(){if(IntersectionObserver&&!this.#eR){let e=this.#n.parentElement;e&&(this.#eR=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#n.dispatchEvent(new s$(t,n)),n&&this.#n.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#eR.observe(this.#n))}}dispose(){this.#eR&&(this.#eR.disconnect(),this.#eR=void 0)}}nt=[(0,a8.uA)("x-refresh-footer",[sf,a9.O,sV])],nn=[],nl=HTMLElement,(class extends nl{static #e=ne=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nl[Symbol.metadata]??null):void 0;(0,a3.G4)(null,t7={value:ne},nt,{kind:"class",name:ne.name,metadata:e},null,nn),ne=t7.value,e&&Object.defineProperty(ne,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(ne,nn)})();connectedCallback(){this.setAttribute("slot","footer")}}),ns=[(0,a8.uA)("x-refresh-header",[sf,a9.O,sV])],no=[],nr=HTMLElement,class extends nr{static #e=na=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nr[Symbol.metadata]??null):void 0;(0,a3.G4)(null,ni={value:na},ns,{kind:"class",name:na.name,metadata:e},null,no),na=ni.value,e&&Object.defineProperty(na,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(na,no)})();connectedCallback(){this.setAttribute("slot","header")}};let sW=(nc=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nd=[(0,a8.ZR)("headeroffset"),(0,a8.ZR)("headershow"),(0,a8.ZR)("footeroffset")],nh=[(0,a8.ZR)("startrefresh"),(0,a8.ZR)("headerreleased"),(0,a8.ZR)("startloadmore"),(0,a8.ZR)("footerreleased")],(0,a3.G4)(this,null,nd,{kind:"method",name:"_handleComplexEventEnableAttributes",static:!1,private:!1,access:{has:e=>"_handleComplexEventEnableAttributes"in e,get:e=>e._handleComplexEventEnableAttributes},metadata:e},null,nc),(0,a3.G4)(this,null,nh,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,nc),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();#n=(0,a3.zF)(this,nc);static observedAttributes=[];#eM=(0,a8.Ut)(()=>this.#n,"x-refresh-view > x-refresh-header:first-of-type");#eP=(0,a8.Ut)(()=>this.#n,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#n=e,this.#n.addEventListener(s$.EventName,this.#ez)}#eN={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};_handleComplexEventEnableAttributes(e,t){this.#eN[t]=e;let{headeroffset:n,headershow:l,footeroffset:i}=this.#eN;n||l||i?this.#eH():this.#eD()}_handleXEnableHeaderOffsetEvent(e,t){this.#eN[t]=e;let{startrefresh:n,headerreleased:l,startloadmore:i,footerreleased:a}=this.#eN;l||a||i||n?this.#eG():this.#ej()}#e$=!1;#eV=!1;#eW=!1;#eU=!1;#ez=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#e$=e.startShowing,this.#eV=e.fullyShowing):(this.#eW=e.startShowing,this.#eU=e.fullyShowing)};#eB=!1;#eG(){this.#eB||(this.#n.addEventListener("touchend",this.#eX),this.#eB=!0)}#eX=()=>{this.#eV?(this.#n.dispatchEvent(new CustomEvent("headerreleased",a7.$)),this.#n.dispatchEvent(new CustomEvent("startrefresh",{...a7.$,detail:{isManual:this.#n._nextRefreshIsManual}})),this.#n._nextRefreshIsManual=!0):("true"===this.#n.getAttribute("enable-auto-loadmore")&&this.#eW||this.#eU)&&(this.#n.dispatchEvent(new CustomEvent("footerreleased",a7.$)),this.#n.dispatchEvent(new CustomEvent("startloadmore",a7.$)))};#ej(){this.#eB&&this.#n.removeEventListener("touchend",this.#eX)}#eq=!1;#eZ=!1;#eH(){this.#eZ||(this.#n.addEventListener("touchstart",this.#eY),this.#n.addEventListener("touchend",this.#eJ),this.#n.addEventListener("touchcancel",this.#eJ),this.#n.shadowRoot.querySelector("#container").addEventListener("scroll",this.#v))}#eJ=()=>{this.#eq=!1};#eY=()=>{this.#eq=!0};#v=()=>{if(this.#e$&&(this.#eN.headershow||this.#eN.headeroffset)){let e=this.#eM();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#n.shadowRoot.querySelector("#container").scrollTop;this.#n.dispatchEvent(new CustomEvent("headershow",{...a7.$,detail:{isDragging:this.#eq,offsetPercent:1-n/t}})),this.#n.dispatchEvent(new CustomEvent("headeroffset",{...a7.$,detail:{isDragging:this.#eq,offsetPercent:1-n/t}}))}}else if(this.#eW&&this.#eN.footeroffset){let e=this.#eP();if(e){let t=this.#n.shadowRoot.querySelector("#container").scrollTop,n=parseFloat(getComputedStyle(e).height);this.#n.dispatchEvent(new CustomEvent("footeroffset",{...a7.$,detail:{isDragging:this.#eq,offsetPercent:1-t/n}}))}}};#eD(){this.#eZ&&(this.#n.removeEventListener("touchstart",this.#eY),this.#n.removeEventListener("touchend",this.#eJ),this.#n.removeEventListener("touchcancel",this.#eJ),this.#n.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#v))}dispose(){this.#ej(),this.#eD()}});np=[(0,a8.uA)("x-refresh-view",[sf,a9.O,sW],sh)],nv=[],nb=HTMLElement,class extends nb{static #e=nm=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nb[Symbol.metadata]??null):void 0;(0,a3.G4)(null,nu={value:nm},np,{kind:"class",name:nm.name,metadata:e},null,nv),nm=nu.value,e&&Object.defineProperty(nm,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){var e;null==(e=this.querySelector("x-refresh-view > x-refresh-header:first-of-type"))||e.removeAttribute("x-magnet-enable")}finishLoadMore(){var e;null==(e=this.querySelector("x-refresh-view > x-refresh-footer:first-of-type"))||e.removeAttribute("x-magnet-enable")}autoStartRefresh(){var e;let t=this.shadowRoot.querySelector("#container");null==(e=this.querySelector("x-refresh-view > x-refresh-header:first-of-type"))||e.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,t.scroll({top:0,behavior:"smooth"})}#eK=(0,a8.Ut)(()=>this.shadowRoot,"#container");#eQ=(0,a8.Ut)(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#eK(),t=this.#eQ();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#eK(),n=this.#eQ();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#eQ().scrollHeight}get[st.l](){return this}static #T=(0,a3.zF)(nm,nv)};let sU=(nE=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ng=[(0,a8._y)("src",!0)],nf=[(0,a8._y)("content",!0)],ny=[(0,a8.ZR)("load")],(0,a3.G4)(this,null,ng,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,nE),(0,a3.G4)(this,null,nf,{kind:"method",name:"_handleContent",static:!1,private:!1,access:{has:e=>"_handleContent"in e,get:e=>e._handleContent},metadata:e},null,nE),(0,a3.G4)(this,null,ny,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,nE),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["src","content"];#n=(0,a3.zF)(this,nE);#e0=null;#eu=(0,a8.Ut)(()=>this.#n.shadowRoot,"#img");_handleSrc(e){e?this.#eu().src=e:this.#eu().src=""}_handleContent(e){if(this.#e0&&URL.revokeObjectURL(this.#e0),!e){this.#e0="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#e0=n,this.#eu().src=n}_enableLoadEvent(e){e?this.#eu().addEventListener("load",this.#ep,{passive:!0}):this.#eu().removeEventListener("load",this.#ep)}#ep=()=>{this.#n.dispatchEvent(new CustomEvent("load",{...a7.$,detail:{width:this.#eu().naturalWidth,height:this.#eu().naturalHeight}}))};constructor(e){this.#n=e}});n_=[(0,a8.uA)("x-svg",[a9.O,sU],'<img part="img" alt="" loading="lazy" id="img" /> ')],nT=[],nC=HTMLElement,(class extends nC{static #e=nw=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nC[Symbol.metadata]??null):void 0;(0,a3.G4)(null,nS={value:nw},n_,{kind:"class",name:nw.name,metadata:e},null,nT),nw=nS.value,e&&Object.defineProperty(nw,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(nw,nT)})()}),nO=[(0,a8.uA)("x-swiper-item",[sf,a9.O])],nL=[],nA=HTMLElement,class extends nA{static #e=nk=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nA[Symbol.metadata]??null):void 0;(0,a3.G4)(null,nx={value:nk},nO,{kind:"class",name:nk.name,metadata:e},null,nL),nk=nx.value,e&&Object.defineProperty(nk,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(nk,nL)})()};let sB=(nR=[],nM=[],nP=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nI=[(0,a8.ZR)("transition")],nF=[(0,a8.ZR)("scrollstart"),(0,a8.ZR)("lynxscrollend"),(0,a8.ZR)("change"),(0,a8.ZR)("change-event-for-indicator")],(0,a3.G4)(this,null,nF,{kind:"method",name:"_enableScrollEventProcessor",static:!1,private:!1,access:{has:e=>"_enableScrollEventProcessor"in e,get:e=>e._enableScrollEventProcessor},metadata:e},null,nR),(0,a3.G4)(null,null,nI,{kind:"field",name:"_handleEnableTransitionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableTransitionEvent"in e,get:e=>e._handleEnableTransitionEvent,set:(e,t)=>{e._handleEnableTransitionEvent=t}},metadata:e},nM,nP),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=[];#n=(0,a3.zF)(this,nR);#e1=0;#e4=0;#eq=!1;#a;#e2=!1;constructor(e){this.#n=e}#eQ=(0,a8.Ut)(()=>this.#n.shadowRoot,"#content").bind(this);_handleEnableTransitionEvent=(0,a3.zF)(this,nM,(0,a8.LB)(this.#eQ,"scroll",this.#e3,{passive:!0}));#v(){st.k||(clearTimeout(this.#a),this.#a=setTimeout(()=>{this.#g()},100)),this.#e2||(this.#n.dispatchEvent(new CustomEvent("scrollstart",{...a7.$,detail:{current:this.#e1,isDragged:this.#eq}})),this.#e2=!0);let e=this.#eQ(),t=this.#n.isVertical,n=t?e.scrollTop:e.scrollLeft,l=t?e.clientHeight:e.clientWidth,i=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#e4-n)>l/4||n<10||Math.abs(n-i)<=l){let e=this.#n.currentIndex;e!==this.#e1&&(this.#n.dispatchEvent(new CustomEvent("change",{...a7.$,detail:{current:e,isDragged:this.#eq}})),this.#e1=e),this.#e4=n}}#g(){this.#n.dispatchEvent(new CustomEvent("lynxscrollend",{...a7.$,detail:{current:this.#e1}})),this.#e2=!1}#e8(){this.#eq=!0}#e9(){this.#eq=!1}#e3(){this.#n.dispatchEvent(new CustomEvent("transition",{...a7.$,detail:{dx:this.#eQ().scrollLeft,dy:this.#eQ().scrollTop}}))}#e5=((0,a3.zF)(this,nP),[(0,a8.LB)(this.#eQ,"scroll",this.#v.bind(this),{passive:!0}),(0,a8.LB)(this.#eQ,"touchstart",this.#e8.bind(this),{passive:!0}),(0,a8.LB)(this.#eQ,"touchend",this.#e9.bind(this),{passive:!0}),(0,a8.LB)(this.#eQ,"touchcancel",this.#e9.bind(this),{passive:!0}),(0,a8.LB)(this.#eQ,"scrollend",this.#g.bind(this),{passive:!0})]);#eN={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};_enableScrollEventProcessor(e,t){this.#eN[t]=e;let{lynxscrollend:n,scrollstart:l,change:i}=this.#eN,a=i||n||l||this.#eN["change-event-for-indicator"];this.#e5.forEach(e=>e(a))}connectedCallback(){this.#e1=parseFloat(this.#n.getAttribute("current")??"0");let e=this.#n.isVertical;this.#e4=e?this.#eQ().scrollTop:this.#eQ().scrollLeft}}),sX=(nH=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nz=[(0,a8._y)("current",!1)],nN=[(0,a8._y)("interval",!1),(0,a8._y)("autoplay",!1)],(0,a3.G4)(this,null,nz,{kind:"method",name:"_handleCurrentChange",static:!1,private:!1,access:{has:e=>"_handleCurrentChange"in e,get:e=>e._handleCurrentChange},metadata:e},null,nH),(0,a3.G4)(this,null,nN,{kind:"method",name:"_handleAutoplay",static:!1,private:!1,access:{has:e=>"_handleAutoplay"in e,get:e=>e._handleAutoplay},metadata:e},null,nH),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["current","interval","autoplay"];#n=(0,a3.zF)(this,nH);constructor(e){this.#n=e}#e6(){this.#n.currentIndex===this.#n.childElementCount-1?this.#n.circularPlay&&(this.#n.currentIndex=0):this.#n.currentIndex+=1}_handleCurrentChange(e){let t=Number(e);Number.isNaN(t)||(this.#n.currentIndex=t)}#e7;#te=(()=>{this.#e6()}).bind(this);#tt(e){this.#tn(),this.#e7=setInterval(this.#te,e)}#tn(){this.#e7&&clearInterval(this.#e7)}_handleAutoplay(){if(null!==this.#n.getAttribute("autoplay")){let e=this.#n.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#tt(t)}}dispose(){this.#tn()}}),sq=(nj=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nD=[(0,a8._y)("circular",!1)],nG=[(0,a8._y)("vertical",!0)],(0,a3.G4)(this,null,nD,{kind:"method",name:"_handleCircular",static:!1,private:!1,access:{has:e=>"_handleCircular"in e,get:e=>e._handleCircular},metadata:e},null,nj),(0,a3.G4)(this,null,nG,{kind:"method",name:"_handleVerticalChange",static:!1,private:!1,access:{has:e=>"_handleVerticalChange"in e,get:e=>e._handleVerticalChange},metadata:e},null,nj),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["circular","vertical"];#n=(0,a3.zF)(this,nj);#tl=!1;#ti;#ta=0;#eQ=(0,a8.Ut)(()=>this.#n.shadowRoot,"#content").bind(this);constructor(e){this.#n=e}#ts=(0,a8.Ut)(()=>this.#n.shadowRoot,"#circular-start").bind(this);#to=(0,a8.Ut)(()=>this.#n.shadowRoot,"#circular-end").bind(this);#tr(e){let t=this.#n.childElementCount;if(t>2){let{current:n,isDragged:l,__isFirstLayout:i}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,a=this.#eQ(),s=this.#ts().assignedElements(),o=this.#to().assignedElements(),r=this.#n.firstElementChild,d=this.#n.lastElementChild,h=this.#n.snapDistance;if(0===n?(o.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=r):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),r.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),o.forEach(e=>e.removeAttribute("slot")),e=this.#n.children[n]),this.#tl){let t="carousel"===this.#n.getAttribute("mode")?.8*a.clientHeight/2:a.clientHeight/2;this.#ta=e.offsetTop+e.offsetHeight/2-h-t,a.scrollTop=this.#ta}else{let t="carousel"===this.#n.getAttribute("mode")?.8*a.clientWidth/2:a.clientWidth/2;this.#ta=e.offsetLeft+e.offsetWidth/2-h-t,a.scrollLeft=this.#ta}if(!l){let e=this.#n.getAttribute("mode");if(i&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#td(i?"instant":"smooth")}}}}#td(e){let t=this.#eQ(),n=this.#n.snapDistance;t.scrollBy({top:this.#tl?n:0,left:this.#tl?0:n,behavior:e??"smooth"})}#e5=[(0,a8.LB)(()=>this.#n,"change",this.#tr.bind(this),{passive:!0}),(0,a8.LB)(()=>this.#n,"touchmove",this.#th.bind(this),{passive:!1}),(0,a8.LB)(()=>this.#n,"touchend",this.#tc.bind(this),{passive:!1}),(0,a8.LB)(()=>this.#n,"touchcancel",this.#tc.bind(this),{passive:!1})];_handleCircular(e){this.#e5.forEach(t=>t(null!=e)),null!==e&&this.#tr({detail:{current:this.#n.currentIndex,isDragged:!1,__isFirstLayout:!0}})}#th(e){let t=e.touches.item(0);if(t){let e=this.#tl?t.pageY:t.pageX;if(void 0!==this.#ti){this.#tu();let t=this.#ti-e;this.#ta+=t}this.#ti=e}}#tc(e){this.#tm(),this.#td(),this.#ti=void 0}_handleVerticalChange(e){this.#tl=null!==e}#tp;#tu(){if(!this.#tp){let e=this.#eQ();this.#ta=this.#tl?e.scrollTop:e.scrollLeft,this.#tp=setInterval(()=>{this.#tl?e.scrollTop=this.#ta:e.scrollLeft=this.#ta},10)}}#tm(){this.#tp&&(clearInterval(this.#tp),this.#tp=void 0)}dispose(){this.#tm()}}),sZ=(nX=[],nq=[],nZ=[],nY=[],nJ=[],nK=[],nQ=[],n0=[],n1=[],n4=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n$=[(0,a8._y)("indicator-color",!0)],nV=[(0,a8._y)("indicator-active-color",!0)],nW=[(0,a8._y)("page-margin",!0)],nU=[(0,a8._y)("previous-margin",!0)],nB=[(0,a8._y)("next-margin",!0)],(0,a3.G4)(null,null,n$,{kind:"field",name:"_handleIndicatorColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorColor"in e,get:e=>e._handleIndicatorColor,set:(e,t)=>{e._handleIndicatorColor=t}},metadata:e},nX,nq),(0,a3.G4)(null,null,nV,{kind:"field",name:"_handleIndicatorActiveColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorActiveColor"in e,get:e=>e._handleIndicatorActiveColor,set:(e,t)=>{e._handleIndicatorActiveColor=t}},metadata:e},nZ,nY),(0,a3.G4)(null,null,nW,{kind:"field",name:"_handlePageMargin",static:!1,private:!1,access:{has:e=>"_handlePageMargin"in e,get:e=>e._handlePageMargin,set:(e,t)=>{e._handlePageMargin=t}},metadata:e},nJ,nK),(0,a3.G4)(null,null,nU,{kind:"field",name:"_handlePreviousMargin",static:!1,private:!1,access:{has:e=>"_handlePreviousMargin"in e,get:e=>e._handlePreviousMargin,set:(e,t)=>{e._handlePreviousMargin=t}},metadata:e},nQ,n0),(0,a3.G4)(null,null,nB,{kind:"field",name:"_handleNextMargin",static:!1,private:!1,access:{has:e=>"_handleNextMargin"in e,get:e=>e._handleNextMargin,set:(e,t)=>{e._handleNextMargin=t}},metadata:e},n1,n4),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"];#n;#tv=0;#tb=(0,a8.Ut)(()=>this.#n.shadowRoot,"#indicator-container");#tg=(0,a8.Ut)(()=>this.#n.shadowRoot,"#indicator-style");#tf;constructor(e){(0,a3.zF)(this,n4),this.#n=e}_handleIndicatorColor=(0,a3.zF)(this,nX,(0,a8._8)(this.#tb,"--indicator-color",void 0,!0));_handleIndicatorActiveColor=((0,a3.zF)(this,nq),(0,a3.zF)(this,nZ,(0,a8._8)(this.#tb,"--indicator-active-color",void 0,!0)));_handlePageMargin=((0,a3.zF)(this,nY),(0,a3.zF)(this,nJ,(0,a8._8)(this.#tb,"--page-margin",void 0,!0)));_handlePreviousMargin=((0,a3.zF)(this,nK),(0,a3.zF)(this,nQ,(0,a8._8)(this.#tb,"--previous-margin",void 0,!0)));_handleNextMargin=((0,a3.zF)(this,n0),(0,a3.zF)(this,n1,(0,a8._8)(this.#tb,"--next-margin",void 0,!0)));#ty(){let e=this.#n.childElementCount;if(e!==this.#tv){let n="";for(let t=0;t<e;t++)n+=`<div style="animation-timeline:--x-swiper-item-${t};" part="indicator-item"></div>`;if(this.#tb().innerHTML=n,e>5){for(let n=0;n<e;n++){var t;null==(t=this.#n.children.item(n))||t.style.setProperty("view-timeline-name",`--x-swiper-item-${n}`)}this.#tg().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#tv=e}connectedCallback(){if(this.#ty(),this.#tf=new MutationObserver(this.#ty.bind(this)),this.#tf.observe(this.#n,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),!CSS.supports("timeline-scope","--a, --b")){var e;this.#n.addEventListener("change",(e=>{let{detail:t}=e,n=t.current,l=this.#n.childElementCount,i=this.#tb();for(let e=0;e<l;e++){let t=i.children[e];t&&(e===n?t.style.setProperty("background-color","var(--indicator-active-color)","important"):t.style.removeProperty("background-color"))}}).bind(this));let t=parseFloat(this.#n.getAttribute("current")??"0");null==(e=this.#tb().children[t])||e.style.setProperty("background-color","var(--indicator-active-color)","important")}}dispose(){var e;null==(e=this.#tf)||e.disconnect(),this.#tf=void 0}});n8=[(0,a8.uA)("x-swiper",[a9.O,sZ,sB,sq,sX],sc)],n9=[],n5=HTMLElement,class extends n5{static #e=n3=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(n5[Symbol.metadata]??null):void 0;(0,a3.G4)(null,n2={value:n3},n8,{kind:"class",name:n3.name,metadata:e},null,n9),n3=n2.value,e&&Object.defineProperty(n3,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#eQ=(0,a8.Ut)(()=>this.shadowRoot,"#content").bind(this);#tE(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let l=this.#eQ(),i=this.isVertical,a=this.childElementCount,s=i?l.scrollTop:l.scrollLeft,o=i?l.clientHeight:l.clientWidth,r=i?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*o/2:o/2);for(let l=0;l<a;l++){let a=this.children[l];if(a){let s=(i?a.offsetTop:a.offsetLeft)+r/2-d,o=Math.abs(s);o<t&&(e=l,t=o,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#tE().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#tS(e,t?"smooth":"instant")}#tS(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,l=0;l="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#eQ().scrollTo({left:e?0:l,top:e?l:0,behavior:t})}}get snapDistance(){return this.#tE().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>0&&"object"==typeof t[0]&&null!==t[0]&&"index"in t[0]){let{index:e,smooth:n=!0}=t[0];if("number"==typeof e)return void this.#tS(e,n?"smooth":"instant")}super.scrollTo(...t)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#tS(Number(e),"instant")}get[st.l](){return this}static #T=(0,a3.zF)(n3,n9)};let sY=(n7=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n6=[(0,a8._y)("src",!0)],(0,a3.G4)(this,null,n6,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,n7),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["src"];#n=(0,a3.zF)(this,n7);constructor(e){this.#n=e}#tw=(0,a8.Ut)(()=>this.#n.shadowRoot,"#img");_handleSrc(e){e?this.#tw().setAttribute("src",e):this.#tw().removeAttribute("src")}});ln=[(0,a8.uA)("inline-image",[sY],ss({}))],ll=[],li=HTMLElement,(class extends li{static #e=lt=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(li[Symbol.metadata]??null):void 0;(0,a3.G4)(null,le={value:lt},ln,{kind:"class",name:lt.name,metadata:e},null,ll),lt=le.value,e&&Object.defineProperty(lt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(lt,ll)})()}),lo=[(0,a8.uA)("inline-text",[])],lr=[],ld=HTMLElement,(class extends ld{static #e=ls=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ld[Symbol.metadata]??null):void 0;(0,a3.G4)(null,la={value:ls},lo,{kind:"class",name:ls.name,metadata:e},null,lr),ls=la.value,e&&Object.defineProperty(ls,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(ls,lr)})()}),lu=[(0,a8.uA)("inline-truncation",[])],lm=[],lp=HTMLElement,a4=class extends lp{static #e=lc=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(lp[Symbol.metadata]??null):void 0;(0,a3.G4)(null,lh={value:lc},lu,{kind:"class",name:lc.name,metadata:e},null,lm),a4=lc=lh.value,e&&Object.defineProperty(lc,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){if(!CSS.supports("selector(:has(>inline-truncation))")){var e;(null==(e=this.parentElement)?void 0:e.tagName)!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(a4.XEnableCustomTruncation,"")}this.setAttribute("slot","inline-truncation")}disconnectedCallback(){var e;null==(e=this.parentElement)||e.removeAttribute(a4.XEnableCustomTruncation)}static #T=(0,a3.zF)(lc,lm)},a4=lc;let sJ=(lb=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lv=[(0,a8._y)("text",!0)],(0,a3.G4)(this,null,lv,{kind:"method",name:"_handleText",static:!1,private:!1,access:{has:e=>"_handleText"in e,get:e=>e._handleText},metadata:e},null,lb),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["text"];#n=(0,a3.zF)(this,lb);#t_;constructor(e){this.#n=e}_handleText(e){var t;null==(t=this.#t_)||t.remove(),e&&(this.#t_=new Text(e),this.#n.append(this.#t_))}});ly=[(0,a8.uA)("raw-text",[sJ])],lE=[],lS=HTMLElement,(class extends lS{static #e=lf=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(lS[Symbol.metadata]??null):void 0;(0,a3.G4)(null,lg={value:lf},ly,{kind:"class",name:lf.name,metadata:e},null,lE),lf=lg.value,e&&Object.defineProperty(lf,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(lf,lE)})()}),n(99811),n(40009),n(13035),n(13412),n(17973),n(64955),n(91016),n(23306),n(76619),n(57857),n(9975),n(93885),n(812),n(74180),n(994),n(4267),n(20789),n(62839),n(66876);let sK=(e,t,n)=>Math.min(Math.max(e,t),n),sQ=(e,t)=>{let{node:n}=e;if(n.nodeType===Node.TEXT_NODE)return{container:n,offset:sK(t,0,n.data.length)};let l=+(t>0),i=n.parentNode;return i?{container:i,offset:(e=>{let t=0,n=e.previousSibling;for(;n;)t++,n=n.previousSibling;return t})(n)+l}:{container:n,offset:sK(l,0,n.childNodes.length)}},s0=(lT=[],class e{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lw=[(0,a8._y)("text-maxlength",!0),(0,a8._y)("text-maxline",!0),(0,a8._y)("tail-color-convert",!0)],l_=[(0,a8.ZR)("layout")],(0,a3.G4)(this,null,lw,{kind:"method",name:"_handleAttributeChange",static:!1,private:!1,access:{has:e=>"_handleAttributeChange"in e,get:e=>e._handleAttributeChange},metadata:e},null,lT),(0,a3.G4)(this,null,l_,{kind:"method",name:"_handleEnableLayoutEvent",static:!1,private:!1,access:{has:e=>"_handleEnableLayoutEvent"in e,get:e=>e._handleEnableLayoutEvent},metadata:e},null,lT),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"];#tT=((0,a3.zF)(this,lT),!1);#tC=!1;#tx=new Map;#tk;#N;#tO;#tL;#tA=!1;#tI=NaN;#tF=NaN;#tR=!0;#tM=!1;get #tP(){return!this.#tz&&!this.#tR}get #tz(){return!!this.#tN()}#tN(){return this.#n.querySelector(":scope > inline-truncation")}get #tH(){return!isNaN(this.#tF)&&(this.#tz||!this.#tR)}#n;constructor(e){this.#n=e}#tD=(0,a8.Ut)(()=>this.#n.shadowRoot,"#inner-box");#tG(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#tx.delete(e)}),"characterData"===e.type&&void 0!==this.#tx.get(e.target)&&this.#tx.set(e.target,e.target.data)})}#tj(){for(let[t,n]of this.#tx)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#n.removeAttribute(e.exceedMathLengthAttribute),this.#n.removeAttribute(e.showInlineTruncation)}#t$(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#tV(){!this.#tC||this.#n.matches("x-text>x-text")||this.#tT||(this.#tT=!0,(0,a8.JS)(async()=>{await this.#tW(),this.#tU(),this.#tT=!1}))}async #tW(){var t,n,l;if(null==(n=this.#tO)||null==(t=n.parentElement)||t.removeChild(this.#tO),this.#tj(),!this.#tH&&isNaN(this.#tI))return;await document.fonts.ready;let i=this.#tD().getBoundingClientRect();this.#tL=new s1(this.#n,i);let a=this.#tL,s=(isNaN(this.#tI)?void 0:a.getNodeInfoByCharIndex(this.#tI))?this.#tI:1/0,o=this.#tH&&a.getLineInfo(this.#tF)?a.getLineInfo(this.#tF-1):void 0,r=1/0,d=3;if(o){let{start:t,end:n}=o,l=n-t;if(this.#tz){this.#n.setAttribute(e.showInlineTruncation,"");let l=this.#tN().getBoundingClientRect(),s=i.width,o=l.width;if(s>o){r=n-1;let e=document.createRange(),t=a.getNodeInfoByCharIndex(r),l=n-t.start,i=sQ(t,l);for(e.setEnd(i.container,i.offset),e.setStart(i.container,i.offset);e.getBoundingClientRect().width<o&&(r-=1)&&(t=a.getNodeInfoByCharIndex(r));){let n=sQ(t,r-t.start);e.setStart(n.container,n.offset)}}else r=t,this.#n.removeAttribute(e.showInlineTruncation)}else l<3?(d=l,r=t):r=n-3}let h=Math.min(s,r);if(h<1/0){let t=a.getNodeInfoByCharIndex(h);if(t){let n=h-t.start,i=t.node,s=[];i.nodeType===Node.TEXT_NODE?(this.#tx.set(i,i.data),i.data=i.data.substring(0,n)):s.push(i),s=s.concat(this.#t$(i));let o=i.parentElement;for(;o!==this.#n;)s=s.concat(this.#t$(o)),o=o.parentElement;if(s.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#tx.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#tx.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#tP){let e=(0===n?null==(l=a.nodelist.at(t.nodeIndex-1))?void 0:l.parentElement:i.parentElement)??i.parentElement;this.#tO=new Text(Array(d).fill(".").join("")),e.append(this.#tO)}this.#n.setAttribute(e.exceedMathLengthAttribute,"")}this.#tB(h)}}#tX=e=>{this.#tG(e),this.#tV()};#tq=()=>{if(this.#tA){this.#tA=!1;return}this.#tV()};#tU(){this.#tC&&((this.#tI||this.#tF)&&!this.#tk&&(this.#tk=new MutationObserver(this.#tX),this.#tk.observe(this.#n,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#tF&&!this.#N&&(this.#N=new ResizeObserver(this.#tq),this.#tA=!0,this.#N.observe(this.#tD(),{box:"content-box"})))}#tZ(){var e,t;null==(e=this.#tk)||e.disconnect(),this.#tk=void 0,null==(t=this.#N)||t.disconnect(),this.#N=void 0}_handleAttributeChange(){this.#tI=parseFloat(this.#n.getAttribute("text-maxlength")??""),this.#tF=parseFloat(this.#n.getAttribute("text-maxline")??""),this.#tR="false"!==this.#n.getAttribute("tail-color-convert"),this.#tI<0&&(this.#tI=NaN),this.#tF<1&&(this.#tF=NaN),isNaN(this.#tF)?this.#tD().style.removeProperty("-webkit-line-clamp"):this.#tD().style.webkitLineClamp=this.#tF.toString(),this.#tV()}_handleEnableLayoutEvent(e){this.#tM=e}#tB(e){if(!this.#tM)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#tL||(t.#tL=new s1(t.#n,t.#n.getBoundingClientRect())),t.#tL.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let l=parseFloat(n.toString());if(!isNaN(l)){t.#tL||(t.#tL=new s1(t.#n,t.#n.getBoundingClientRect()));let n=t.#tL.getLineInfo(l);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.#n.dispatchEvent(new CustomEvent("layout",{...a7.$,detail:t}))}dispose(){this.#tZ()}connectedCallback(){this.#tC=!0,this._handleEnableLayoutEvent(this.#tM),this._handleAttributeChange(),(0,a8.JS)(()=>{this.#tB()})}});class s1{#tY=[{start:0}];#tJ=[];#tK=[];#n;#tQ;nodelist;constructor(e,t){this.#n=e,this.nodelist=new s4(this.#n),this.#tQ=t}#t0(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,l=e.node,i=document.createRange();i.selectNode(l);for(let e=0;e<l.data.length;e++){i.setEnd(l,e);let a=i.getClientRects().item(n);if(a&&a.right===t.right)return e}return l.data.length}}#t1(e){if(this.#tJ[e])return;let{left:t}=this.#tQ,n=this.#tJ[this.#tJ.length-1],l=null==n?void 0:n[n.length-1],i=(null==l?void 0:l.nodeIndex)?(null==l?void 0:l.nodeIndex)+1:0;for(let n=i,l;(l=this.#t4(n))&&e>=this.#tJ.length;n++){let e,{node:n}=l;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.#tJ[this.#tJ.length-1],i=e[0];if(.2>Math.abs(i.left-t)||!n?this.#tJ.push([{...l,rect:i,rectIndex:0}]):n.push({...l,rect:i,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let a=e[n];(a.left!==i.left||a.bottom!==i.bottom)&&(.2>Math.abs(a.left-t)?this.#tJ.push([{...l,rect:a,rectIndex:n}]):this.#tJ[this.#tJ.length-1].push({...l,rect:a,rectIndex:n}))}}}}getLineCount(){return this.#t1(1/0),this.#tJ.length}getLineInfo(e){if(this.#t1(e+1),e<this.#tJ.length){let t=e>0?this.#tY[e-1]??{}:void 0,n=this.#tY[e]??{},l=e<this.#tJ.length-1?this.#tY[e+1]??{}:void 0;if(void 0===n.start){let l=this.#tJ[e-1],i=l[l.length-1],a=this.#t0(i),s=i.start+a;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#tJ[e],i=t[t.length-1];if(e===this.#tJ.length-1){let e=i.node.nodeType===Node.TEXT_NODE?i.node.data.length:1;n.end=i.start+e}else{let e=this.#t0(i);n.end=i.start+e,l.start=n.end+1}}return n}}#t4(e){let t=this.#tK.length-1,n=this.#tK[t],l=n?n.start+n.length:0;for(let t=this.#tK.length,n;(n=this.nodelist.at(t))&&e>=this.#tK.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,i={node:n,length:e,start:l,nodeIndex:t};this.#tK.push(i)}return this.#tK[e]}getNodeInfoByCharIndex(e){let t,n=0,l=this.#tK.length-1;for(;n<=l;){let i=Math.floor((n+l)/2),a=this.#tK[i],s=a.node,o=s.nodeType===Node.TEXT_NODE?s.data.length:1,r=a.start;if(e>=r&&e<r+o){t=a;break}e<r?l=i-1:n=i+1}if(t)return t;for(let t=this.#tK.length,n;n=this.#t4(t);t++)if(e<n.start+n.length)return n}}class s4{#t2=[];#t3;constructor(e){this.#t3=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,t=>{for(let n=t.parentElement;n&&n!==e;n=n.parentElement)if("X-VIEW"===n.tagName)return NodeFilter.FILTER_REJECT;if(t.nodeType===Node.ELEMENT_NODE){let e=t.tagName;if("X-TEXT"===e||"INLINE-TEXT"===e||"RAW-TEXT"===e||"LYNX-WRAPPER"===e)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#t2[e]||this.#t8(e),this.#t2[e]}#t8(e){let t=null;for(;e>=this.#t2.length&&(t=this.#t3.nextNode());){this.#t2.push(t);break}}}lk=[(0,a8.uA)("x-text",[a9.O,s0,sJ],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],lO=[],lL=HTMLElement,class extends lL{static #e=lx=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(lL[Symbol.metadata]??null):void 0;(0,a3.G4)(null,lC={value:lx},lk,{kind:"class",name:lx.name,metadata:e},null,lO),lx=lC.value,e&&Object.defineProperty(lx,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(sl.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[a9.v]=this;static #T=(0,a3.zF)(lx,lO)};let s2=(lP=[],lz=[],lN=[],lH=[],lD=[],lG=[],lj=[],l$=[],lV=[],lW=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lA=[(0,a8._y)("placeholder-color",!0)],lI=[(0,a8._y)("placeholder-font-size",!0)],lF=[(0,a8._y)("placeholder-font-weight",!0)],lR=[(0,a8._y)("placeholder-font-family",!0)],lM=[(0,a8._y)("placeholder",!0)],(0,a3.G4)(null,null,lA,{kind:"field",name:"_updatePlaceholderColor",static:!1,private:!1,access:{has:e=>"_updatePlaceholderColor"in e,get:e=>e._updatePlaceholderColor,set:(e,t)=>{e._updatePlaceholderColor=t}},metadata:e},lP,lz),(0,a3.G4)(null,null,lI,{kind:"field",name:"_updatePlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontSize"in e,get:e=>e._updatePlaceholderFontSize,set:(e,t)=>{e._updatePlaceholderFontSize=t}},metadata:e},lN,lH),(0,a3.G4)(null,null,lF,{kind:"field",name:"_updatePlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontWeight"in e,get:e=>e._updatePlaceholderFontWeight,set:(e,t)=>{e._updatePlaceholderFontWeight=t}},metadata:e},lD,lG),(0,a3.G4)(null,null,lR,{kind:"field",name:"_updatePlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontFamily"in e,get:e=>e._updatePlaceholderFontFamily,set:(e,t)=>{e._updatePlaceholderFontFamily=t}},metadata:e},lj,l$),(0,a3.G4)(null,null,lM,{kind:"field",name:"_handlePlaceholder",static:!1,private:!1,access:{has:e=>"_handlePlaceholder"in e,get:e=>e._handlePlaceholder,set:(e,t)=>{e._handlePlaceholder=t}},metadata:e},lV,lW),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"];#t9=(0,a8.Ut)(()=>this.#n.shadowRoot,"#textarea");_updatePlaceholderColor=(0,a3.zF)(this,lP,(0,a8._8)(this.#t9,"--placeholder-color",void 0,!0));_updatePlaceholderFontSize=((0,a3.zF)(this,lz),(0,a3.zF)(this,lN,(0,a8._8)(this.#t9,"--placeholder-font-size",void 0,!0)));_updatePlaceholderFontWeight=((0,a3.zF)(this,lH),(0,a3.zF)(this,lD,(0,a8._8)(this.#t9,"--placeholder-font-weight",void 0,!0)));_updatePlaceholderFontFamily=((0,a3.zF)(this,lG),(0,a3.zF)(this,lj,(0,a8._8)(this.#t9,"--placeholder-font-family",void 0,!0)));_handlePlaceholder=((0,a3.zF)(this,l$),(0,a3.zF)(this,lV,(0,a8.H$)(this.#t9,"placeholder")));#n=(0,a3.zF)(this,lW);constructor(e){this.#n=e}}),s3=(lY=[],lJ=[],lK=[],lQ=[],l0=[],l1=[],l4=[],l2=[],l3=[],l8=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lU=[(0,a8._y)("confirm-type",!0)],lB=[(0,a8._y)("maxlength",!0)],lX=[(0,a8._y)("readonly",!0)],lq=[(0,a8._y)("ios-spell-check",!0)],lZ=[(0,a8._y)("show-soft-input-onfocus",!0)],(0,a3.G4)(null,null,lU,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},lY,lJ),(0,a3.G4)(null,null,lB,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},lK,lQ),(0,a3.G4)(null,null,lX,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},l0,l1),(0,a3.G4)(null,null,lq,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},l4,l2),(0,a3.G4)(null,null,lZ,{kind:"field",name:"_handleShowSoftInputOnfocus",static:!1,private:!1,access:{has:e=>"_handleShowSoftInputOnfocus"in e,get:e=>e._handleShowSoftInputOnfocus,set:(e,t)=>{e._handleShowSoftInputOnfocus=t}},metadata:e},l3,l8),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"];#n;#t5=(0,a8.Ut)(()=>this.#n.shadowRoot,"#textarea");_handlerConfirmType=(0,a3.zF)(this,lY,(0,a8.H$)(this.#t5,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=((0,a3.zF)(this,lJ),(0,a3.zF)(this,lK,(0,a8.H$)(this.#t5,"maxlength",e=>null===e?"140":e)));_handleReadonly=((0,a3.zF)(this,lQ),(0,a3.zF)(this,l0,(0,a8.H$)(this.#t5,"readonly",e=>null!==e?"":null)));_handleSpellCheck=((0,a3.zF)(this,l1),(0,a3.zF)(this,l4,(0,a8.H$)(this.#t5,"spellcheck",e=>null===e?"false":"true")));_handleShowSoftInputOnfocus=((0,a3.zF)(this,l2),(0,a3.zF)(this,l3,(0,a8.H$)(this.#t5,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){(0,a3.zF)(this,l8),this.#n=e}}),s8=(it=[],il=[],ii=[],ia=[],is=[],io=[],ir=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l9=[(0,a8._y)("confirm-enter",!0)],l5=[(0,a8._y)("disabled",!0)],l6=[(0,a8._y)("max-height",!0)],l7=[(0,a8._y)("min-height",!0)],ie=[(0,a8._y)("value",!1)],(0,a3.G4)(this,null,l9,{kind:"method",name:"_handleConfirmEnter",static:!1,private:!1,access:{has:e=>"_handleConfirmEnter"in e,get:e=>e._handleConfirmEnter},metadata:e},null,it),(0,a3.G4)(this,null,ie,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,it),(0,a3.G4)(null,null,l5,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},il,ii),(0,a3.G4)(null,null,l6,{kind:"field",name:"_handleMaxHeight",static:!1,private:!1,access:{has:e=>"_handleMaxHeight"in e,get:e=>e._handleMaxHeight,set:(e,t)=>{e._handleMaxHeight=t}},metadata:e},ia,is),(0,a3.G4)(null,null,l7,{kind:"field",name:"_handleMinHeight",static:!1,private:!1,access:{has:e=>"_handleMinHeight"in e,get:e=>e._handleMinHeight,set:(e,t)=>{e._handleMinHeight=t}},metadata:e},io,ir),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#n=(0,a3.zF)(this,it);#t5=(0,a8.Ut)(()=>this.#n.shadowRoot,"#textarea");#eS=(0,a8.Ut)(()=>this.#n.shadowRoot,"#form");#t6=!1;_handleConfirmEnter(e){this.#t6=null!==e}_handleDisabled=(0,a3.zF)(this,il,(0,a8.H$)(this.#t5,"disabled",e=>null!==e?"":null));_handleMaxHeight=((0,a3.zF)(this,ii),(0,a3.zF)(this,ia,(0,a8._8)(this.#t5,"max-height")));_handleMinHeight=((0,a3.zF)(this,is),(0,a3.zF)(this,io,(0,a8._8)(this.#t5,"min-height")));_handleValue(e){if(e){let t=parseFloat(this.#n.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#t5();t.value!==e&&(t.value=e)}#t7=((0,a3.zF)(this,ir),e=>{this.#t6&&"Enter"===e.key&&this.#eS().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#n=e,this.#t5().addEventListener("keyup",this.#t7)}}),s9=(iu=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;id=[(0,a8._y)("input-filter",!0),(0,a8.ZR)("lynxinput")],ih=[(0,a8._y)("send-composing-input",!0)],ic=[(0,a8.ZR)("selection")],(0,a3.G4)(this,null,id,{kind:"method",name:"_handleEnableConfirmEvent",static:!1,private:!1,access:{has:e=>"_handleEnableConfirmEvent"in e,get:e=>e._handleEnableConfirmEvent},metadata:e},null,iu),(0,a3.G4)(this,null,ih,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,iu),(0,a3.G4)(this,null,ic,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,iu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["send-composing-input","input-filter"];#n=(0,a3.zF)(this,iu);#ey=!1;#t5=(0,a8.Ut)(()=>this.#n.shadowRoot,"#textarea");#eS=(0,a8.Ut)(()=>this.#n.shadowRoot,"#form");_handleEnableConfirmEvent(e){let t=this.#t5();e?(t.addEventListener("input",this.#ew,{passive:!0}),t.addEventListener("compositionend",this.#e_,{passive:!0})):(t.removeEventListener("input",this.#ew),t.removeEventListener("compositionend",this.#e_))}_handleSendComposingInput(e){this.#ey=null!==e}#eT=e=>{let t=sD[e.type]??e.type;this.#n.dispatchEvent(new CustomEvent(t,{...a7.$,detail:{value:this.#t5().value}}))};#ew=e=>{let t=this.#t5(),n=this.#n.getAttribute("input-filter"),l=n?t.value.replace(RegExp(n,"g"),""):t.value,i=e.isComposing;t.value=l,(!i||this.#ey)&&this.#n.dispatchEvent(new CustomEvent("lynxinput",{...a7.$,detail:{value:l,textLength:l.length,cursor:t.selectionStart,isComposing:i,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#e_=()=>{let e=this.#t5(),t=this.#n.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#ey||this.#n.dispatchEvent(new CustomEvent("lynxinput",{...a7.$,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#t5().addEventListener("select",this.#ex,{passive:!0}):this.#t5().removeEventListener("select",this.#ex)}#ex=()=>{let e=this.#t5();this.#n.dispatchEvent(new CustomEvent("selection",{...a7.$,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#ek=e=>{e.target===this.#t5()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#n=e;const t=this.#t5(),n=this.#eS();t.addEventListener("blur",this.#eT,{passive:!0}),t.addEventListener("focus",this.#eT,{passive:!0}),n.addEventListener("submit",this.#eT,{passive:!0}),n.addEventListener("input",this.#ek,{passive:!0})}});iv=[(0,a8.uA)("x-textarea",[a9.O,s2,s3,s8,s9],sm)],ib=[],ig=HTMLElement,(class extends ig{static #e=ip=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ig[Symbol.metadata]??null):void 0;(0,a3.G4)(null,im={value:ip},iv,{kind:"class",name:ip.name,metadata:e},null,ib),ip=im.value,e&&Object.defineProperty(ip,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(ip,ib)})();#t9=(0,a8.Ut)(()=>this.shadowRoot,"#textarea");get value(){return this.#t9().value}set value(e){this.#t9().value=e}addText(e){let{text:t}=e,n=this.#t9(),l=n.selectionStart;if(null===l)n.value=t;else{let e=n.value;n.value=e.slice(0,l)+t+e.slice(l)}}setValue(e){let t,n=this.#t9();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#t9();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,l=this.#t9();1===t&&(n=1);let i=l.selectionStart;if(null===i){let e=l.value;l.value=l.value.substring(0,e.length-n)}else{let e=l.value;l.value=e.slice(0,i-n)+e.slice(i)}}select(){let e=this.#t9();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#t9().setSelectionRange(e.selectionStart,e.selectionEnd)}}),iS=[(0,a8.uA)("x-view",[sf,a9.O])],iw=[],i_=HTMLElement,class extends i_{static #e=iE=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(i_[Symbol.metadata]??null):void 0;(0,a3.G4)(null,iy={value:iE},iS,{kind:"class",name:iE.name,metadata:e},null,iw),iE=iy.value,e&&Object.defineProperty(iE,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(iE,iw)})();superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sl.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[a9.v]=this};let s5=(iC=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iT=[(0,a8._y)("blur-radius",!0)],(0,a3.G4)(this,null,iT,{kind:"method",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius},metadata:e},null,iC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["blur-radius"];#n=(0,a3.zF)(this,iC);#ne=(0,a8.Ut)(()=>this.#n.shadowRoot,"#dynamic-style");_handleBlurRadius(e){e?(e=`blur(${parseFloat(e)}px)`,this.#ne().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#ne().innerHTML=""}constructor(e){this.#n=e}});iO=[(0,a8.uA)("x-blur-view",[a9.O,s5],'<style id="dynamic-style"></style><slot></slot>')],iL=[],iA=HTMLElement,class extends iA{static #e=ik=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(iA[Symbol.metadata]??null):void 0;(0,a3.G4)(null,ix={value:ik},iO,{kind:"class",name:ik.name,metadata:e},null,iL),ik=ix.value,e&&Object.defineProperty(ik,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(ik,iL)})()};let s6=(iM=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iI=[(0,a8.ZR)("change")],iF=[(0,a8.ZR)("willchange")],iR=[(0,a8.ZR)("offsetchange")],(0,a3.G4)(this,null,iI,{kind:"method",name:"_enableChangeEvent",static:!1,private:!1,access:{has:e=>"_enableChangeEvent"in e,get:e=>e._enableChangeEvent},metadata:e},null,iM),(0,a3.G4)(this,null,iF,{kind:"method",name:"_enableWillChangeEvent",static:!1,private:!1,access:{has:e=>"_enableWillChangeEvent"in e,get:e=>e._enableWillChangeEvent},metadata:e},null,iM),(0,a3.G4)(this,null,iR,{kind:"method",name:"_enableOffsetChangeEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetChangeEvent"in e,get:e=>e._enableOffsetChangeEvent},metadata:e},null,iM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=[];#n=(0,a3.zF)(this,iM);#nt=!1;#nn=!1;#nl=0;#a;constructor(e){this.#n=e}#r=(0,a8.Ut)(()=>this.#n.shadowRoot,"#content");#ni=()=>{if(!this.#nn)return;let e=this.#r(),t=this.#n.clientWidth,n=e.scrollLeft;this.#na&&!st.k&&(clearTimeout(this.#a),this.#a=setTimeout(()=>{this.#ns()},100)),this.#n.dispatchEvent(new CustomEvent("offsetchange",{...a7.$,detail:{offset:n/t}}))};#ns=()=>{if(this.#nn){let e=this.#r(),t=this.#n.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#nl&&(this.#n.dispatchEvent(new CustomEvent("change",{...a7.$,detail:{index:n,isDragged:this.#nt}})),this.#nl=n)}};#no=()=>{this.#nt=!0};#nr=()=>{if(this.#nt=!1,this.#nd){let e=this.#r(),t=this.#n.clientWidth;if(t>0){let n=Math.round(e.scrollLeft/t);n=Math.max(0,Math.min(n,this.#n.children.length-1)),this.#n.dispatchEvent(new CustomEvent("willchange",{...a7.$,detail:{index:n}}))}}};#na=!1;_enableChangeEvent(e){this.#na=e,this.#nh()}#nd=!1;_enableWillChangeEvent(e){this.#nd=e}#nc=!1;_enableOffsetChangeEvent(e){this.#nc=e,this.#nh()}#nh(){let e=this.#r();this.#nc||this.#na?e.addEventListener("scroll",this.#ni,{passive:!0}):e.removeEventListener("scroll",this.#ni),st.k&&this.#na?e.addEventListener("scrollend",this.#ns,{passive:!0}):e.removeEventListener("scrollend",this.#ns)}connectedCallback(){this.#nn=!0;let e=this.#r();this.#n.addEventListener("touchstart",this.#no,{passive:!0}),e.addEventListener("touchend",this.#nr,{passive:!0}),e.addEventListener("touchcancel",this.#nr,{passive:!0})}dispose(){let e=this.#r();e.removeEventListener("scroll",this.#ni),e.removeEventListener("scrollend",this.#ns)}});iN=[(0,a8.uA)("x-viewpager-ng",[sf,a9.O,s6],sp)],iH=[],iD=HTMLElement,(class extends iD{static #e=iz=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(iD[Symbol.metadata]??null):void 0;(0,a3.G4)(null,iP={value:iz},iN,{kind:"class",name:iz.name,metadata:e},null,iH),iz=iP.value,e&&Object.defineProperty(iz,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 l=this.shadowRoot.children.item(2),i=l.clientWidth*t;l.scrollTo({left:i,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),l=()=>{0===n.clientWidth?requestAnimationFrame(l):this.selectTab({index:t,smooth:!1})};(0,a8.JS)(l)}}get[st.l](){return this}static #T=(0,a3.zF)(iz,iH)}),i$=[(0,a8.uA)("x-viewpager-item-ng",[sf,a9.O])],iV=[],iW=HTMLElement,class extends iW{static #e=ij=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(iW[Symbol.metadata]??null):void 0;(0,a3.G4)(null,iG={value:ij},i$,{kind:"class",name:ij.name,metadata:e},null,iV),ij=iG.value,e&&Object.defineProperty(ij,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(ij,iV)})()};let s7=(iB=[],iX=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iU=[(0,a8._y)("estimated-main-axis-size-px",!0)],(0,a3.G4)(null,null,iU,{kind:"field",name:"_handlerEstimatedMainAxisSizePx",static:!1,private:!1,access:{has:e=>"_handlerEstimatedMainAxisSizePx"in e,get:e=>e._handlerEstimatedMainAxisSizePx,set:(e,t)=>{e._handlerEstimatedMainAxisSizePx=t}},metadata:e},iB,iX),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["estimated-main-axis-size-px"];#n;_handlerEstimatedMainAxisSizePx=(0,a3.zF)(this,iB,(0,a8._8)(()=>this.#n,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){(0,a3.zF)(this,iX),this.#n=e}});iY=[(0,a8.uA)("list-item",[a9.O,s7])],iJ=[],iK=HTMLElement,class extends iK{static #e=iZ=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(iK[Symbol.metadata]??null):void 0;(0,a3.G4)(null,iq={value:iZ},iY,{kind:"class",name:iZ.name,metadata:e},null,iJ),iZ=iq.value,e&&Object.defineProperty(iZ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static notToFilterFalseAttributes=new Set(["recyclable"]);static #T=(0,a3.zF)(iZ,iJ)};let oe=(i1=[],i4=[],i2=[],i3=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iQ=[(0,a8._y)("sticky-offset",!0)],i0=[(0,a8._y)("span-count",!0),(0,a8._y)("column-count",!0)],(0,a3.G4)(null,null,iQ,{kind:"field",name:"_handlerStickyOffset",static:!1,private:!1,access:{has:e=>"_handlerStickyOffset"in e,get:e=>e._handlerStickyOffset,set:(e,t)=>{e._handlerStickyOffset=t}},metadata:e},i1,i4),(0,a3.G4)(null,null,i0,{kind:"field",name:"_handlerCount",static:!1,private:!1,access:{has:e=>"_handlerCount"in e,get:e=>e._handlerCount,set:(e,t)=>{e._handlerCount=t}},metadata:e},i2,i3),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"];#n;_handlerStickyOffset=(0,a3.zF)(this,i1,(0,a8._8)(()=>this.#n,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));_handlerCount=((0,a3.zF)(this,i4),(0,a3.zF)(this,i2,(0,a8._8)(()=>this.#n,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){(0,a3.zF)(this,i3),this.#n=e}connectedCallback(){let e=this.#n.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#n.clientHeight?requestAnimationFrame(n):this.#n.scrollToPosition({position:t})};(0,a8.JS)(n)}}}),ot=function(e,t,n){let l,i,a,s,o=0;var r=function(){o=(null==n?void 0:n.leading)===!1?0:new Date().getTime(),l=null,s=e.apply(i,a),l||(i=a=null)};return function(){var d=new Date().getTime();o||(null==n?void 0:n.leading)!==!1||(o=d);var h=t-(d-o);return i=this,a=arguments,h<=0||h>t?(l&&(clearTimeout(l),l=null),o=d,s=e.apply(i,a),l||(i=a=null)):l||(null==n?void 0:n.trailing)===!1||(l=setTimeout(r,h)),s}},on=(an=[],al=[],ai=[],aa=[],as=[],ao=[],ar=[],ad=[],ah=[],ac=[],au=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8=[(0,a8.ZR)("scrolltoupper")],i9=[(0,a8._y)("upper-threshold-item-count",!0)],i5=[(0,a8.ZR)("scrolltolower")],i6=[(0,a8._y)("lower-threshold-item-count",!0)],i7=[(0,a8.ZR)("lynxscroll"),(0,a8.ZR)("lynxscrollend"),(0,a8.ZR)("snap")],ae=[(0,a8.ZR)("scrolltoupperedge")],at=[(0,a8.ZR)("scrolltoloweredge")],(0,a3.G4)(this,null,i9,{kind:"method",name:"_handleUpperThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleUpperThresholdItemCountChange"in e,get:e=>e._handleUpperThresholdItemCountChange},metadata:e},null,an),(0,a3.G4)(this,null,i6,{kind:"method",name:"_handleLowerThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleLowerThresholdItemCountChange"in e,get:e=>e._handleLowerThresholdItemCountChange},metadata:e},null,an),(0,a3.G4)(null,null,i8,{kind:"field",name:"_updateEventSwitches",static:!1,private:!1,access:{has:e=>"_updateEventSwitches"in e,get:e=>e._updateEventSwitches,set:(e,t)=>{e._updateEventSwitches=t}},metadata:e},al,ai),(0,a3.G4)(null,null,i5,{kind:"field",name:"_updateScrollToLowerEventSwitches",static:!1,private:!1,access:{has:e=>"_updateScrollToLowerEventSwitches"in e,get:e=>e._updateScrollToLowerEventSwitches,set:(e,t)=>{e._updateScrollToLowerEventSwitches=t}},metadata:e},aa,as),(0,a3.G4)(null,null,i7,{kind:"field",name:"_handleScrollEventsSwitches",static:!1,private:!1,access:{has:e=>"_handleScrollEventsSwitches"in e,get:e=>e._handleScrollEventsSwitches,set:(e,t)=>{e._handleScrollEventsSwitches=t}},metadata:e},ao,ar),(0,a3.G4)(null,null,ae,{kind:"field",name:"_handleScrollToUpperEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToUpperEdgeEventEnable"in e,get:e=>e._handleScrollToUpperEdgeEventEnable,set:(e,t)=>{e._handleScrollToUpperEdgeEventEnable=t}},metadata:e},ad,ah),(0,a3.G4)(null,null,at,{kind:"field",name:"_handleScrollToLowerEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToLowerEdgeEventEnable"in e,get:e=>e._handleScrollToLowerEdgeEventEnable,set:(e,t)=>{e._handleScrollToLowerEdgeEventEnable=t}},metadata:e},ac,au),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#n=(0,a3.zF)(this,an);#nu=(0,a8.Ut)(()=>this.#n.shadowRoot,"#content");#nm;#np;#nv;#s=0;#o=0;#nb=!1;#a;#d=(0,a8.Ut)(()=>this.#n.shadowRoot,"#upper-threshold-observer");#h=(0,a8.Ut)(()=>this.#n.shadowRoot,"#lower-threshold-observer");#u(){let e=null!==this.#n.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:l,scrollWidth:i}=this.#nu(),a={scrollTop:t,scrollLeft:n,scrollHeight:l,scrollWidth:i,deltaX:n-this.#s,deltaY:t-this.#o,attachedCells:e?this.#n.getVisibleCells():void 0};return this.#s=n,this.#o=t,a}#ng=e=>{let{isIntersecting:t}=e[0];t&&this.#n.dispatchEvent(new CustomEvent("scrolltoupper",{...a7.$,detail:this.#u()}))};_updateEventSwitches=(0,a3.zF)(this,al,e=>{if(e?this.#n.setAttribute("x-enable-scrolltoupper-event",""):this.#n.removeAttribute("x-enable-scrolltoupper-event"),this.#eN.scrolltoupper=e,e){this.#nm||(this.#nm=new IntersectionObserver(this.#ng,{root:this.#nu()})),this.#nv||(this.#nv=new MutationObserver(this.#nf));let e=this.#n.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#d():this.#n.children[t-1];n&&this.#nm.observe(n),this.#nv.observe(this.#n,{childList:!0})}else this.#nm&&(this.#nm.disconnect(),this.#nm=void 0),this.#nv&&(this.#nv.disconnect(),this.#nv=void 0)});_handleUpperThresholdItemCountChange(e,t){var n,l;let i=null!==t?parseFloat(t):0,a=0===i?this.#d():this.#n.children[i-1];a&&(null==(n=this.#nm)||n.unobserve(a));let s=null!==e?parseFloat(e):0,o=0===s?this.#d():this.#n.children[s-1];o&&(null==(l=this.#nm)||l.observe(o))}#ny=((0,a3.zF)(this,ai),e=>{let{isIntersecting:t}=e[0];t&&this.#n.dispatchEvent(new CustomEvent("scrolltolower",{...a7.$,detail:this.#u()}))});#eN={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};_updateScrollToLowerEventSwitches=(0,a3.zF)(this,aa,e=>{if(this.#eN.scrolltolower=e,e?this.#n.setAttribute("x-enable-scrolltolower-event",""):this.#n.removeAttribute("x-enable-scrolltolower-event"),e){this.#np||(this.#np=new IntersectionObserver(this.#ny,{root:this.#nu()})),this.#nv||(this.#nv=new MutationObserver(this.#nf));let e=this.#n.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#h():this.#n.children[this.#n.children.length-t];n&&this.#np.observe(n),this.#nv.observe(this.#n,{childList:!0})}else this.#np&&(this.#np.disconnect(),this.#np=void 0),this.#nv&&(this.#nv.disconnect(),this.#nv=void 0)});_handleLowerThresholdItemCountChange(e,t){var n,l;let i=null!==t?parseFloat(t):0,a=0===i?this.#h():this.#n.children[this.#n.children.length-i];a&&(null==(n=this.#np)||n.unobserve(a));let s=null!==e?parseFloat(e):0,o=0===s?this.#h():this.#n.children[this.#n.children.length-s];o&&(null==(l=this.#np)||l.observe(o))}#nf=((0,a3.zF)(this,as),e=>{let t=null==e?void 0:e[0];if((null==t?void 0:t.type)==="childList"){if(this.#eN.scrolltolower){this.#np&&(this.#np.disconnect(),this.#np=void 0),this.#np=new IntersectionObserver(this.#ny,{root:this.#nu()});let e=this.#n.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#h():this.#n.children[this.#n.children.length-t];n&&this.#np.observe(n)}if(null!==this.#n.getAttribute("x-enable-scrolltoupper-event")){this.#nm&&(this.#nm.disconnect(),this.#nm=void 0),this.#nm=new IntersectionObserver(this.#ng,{root:this.#nu()});let e=this.#n.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#d():this.#n.children[t-1];n&&this.#nm.observe(n)}}});#nE=null;#v=()=>{this.#nb&&!st.k&&(clearTimeout(this.#a),this.#a=setTimeout(()=>{this.#g()},100)),this.#n.dispatchEvent(new CustomEvent("lynxscroll",{...a7.$,detail:this.#u()}))};_handleScrollEventsSwitches=(0,a3.zF)(this,ao,(e,t)=>{this.#eN[t]=e;let{lynxscroll:n,lynxscrollend:l,snap:i}=this.#eN,a=this.#n.getAttribute("scroll-event-throttle");this.#nb=null!==l||null!==i;let s=this.#nu();if(this.#nE&&s.removeEventListener("scroll",this.#nE),null!==n||this.#nb){let e=null!==a?parseFloat(a):0,t=ot(this.#v,e,{leading:!0,trailing:!1});this.#nE=t,s.addEventListener("scroll",this.#nE),this.#s=0,this.#o=0}st.k&&this.#nb?s.addEventListener("scrollend",this.#g):s.removeEventListener("scrollend",this.#g)});#c=((0,a3.zF)(this,ar),e=>{let{isIntersecting:t,target:n}=e[0],l=n.id;t&&("upper-threshold-observer"===l?this.#n.dispatchEvent(new CustomEvent("scrolltoupperedge",{...a7.$,detail:this.#u()})):"lower-threshold-observer"===l&&this.#n.dispatchEvent(new CustomEvent("scrolltoloweredge",{...a7.$,detail:this.#u()})))});_handleScrollToUpperEdgeEventEnable=(0,a3.zF)(this,ad,e=>{e?this.#n.setAttribute("x-enable-scrolltoupperedge-event",""):this.#n.removeAttribute("x-enable-scrolltoupperedge-event"),this.#nS(e)});#nS=((0,a3.zF)(this,ah),se(this.#nu,this.#d,this.#c));_handleScrollToLowerEdgeEventEnable=(0,a3.zF)(this,ac,e=>{e?this.#n.setAttribute("x-enable-scrolltoloweredge-event",""):this.#n.removeAttribute("x-enable-scrolltoloweredge-event"),this.#nw(e)});#nw=((0,a3.zF)(this,au),se(this.#nu,this.#h,this.#c));#g=()=>{let e=this.#n.getAttribute("item-snap");if(this.#n.dispatchEvent(new CustomEvent("lynxscrollend",{...a7.$})),null!==e){let e=Array.from(this.#n.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#nu().scrollTop,n=this.#nu().scrollLeft,l=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#n.dispatchEvent(new CustomEvent("snap",{...a7.$,detail:{position:l&&e.indexOf(l),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#n=e}}),ol="waterfall-slot",oi="waterfall-style",oa=(av=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;am=[(0,a8.ZR)("scrolltolower")],ap=[(0,a8._y)("list-type",!0)],(0,a3.G4)(this,null,am,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,av),(0,a3.G4)(this,null,ap,{kind:"method",name:"_handlerListType",static:!1,private:!1,access:{has:e=>"_handlerListType"in e,get:e=>e._handlerListType},metadata:e},null,av),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["list-type"];#n=(0,a3.zF)(this,av);#nu=(0,a8.Ut)(()=>this.#n.shadowRoot,"#content");#n_=(0,a8.Ut)(()=>this.#n.shadowRoot,'div[part="lower-threshold-observer"]');#N;#nv;_handleXEnableHeaderOffsetEvent(e){if(e?this.#n.setAttribute("x-enable-scrolltolower-event",""):this.#n.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#n_(),t=this.#n.getAttribute("scroll-orientation")||"vertical",n=this.#nu();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)}}#nT=()=>{var e,t;let n=document.createElement("slot");n.setAttribute("name",`${ol}`),null==(t=this.#n.shadowRoot)||null==(e=t.querySelector("[part=upper-threshold-observer]"))||e.insertAdjacentElement("afterend",n)};#nC=()=>{let e=parseFloat(this.#n.getAttribute("span-count")||this.#n.getAttribute("column-count")||"")||1,t="vertical"===(this.#n.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let l=0;l<this.#n.children.length;l++){let i=this.#n.children[l],a=getComputedStyle(i).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(i).getPropertyValue("--list-cross-axis-gap"),o=t?i.getBoundingClientRect().height+parseFloat(a):i.getBoundingClientRect().width+parseFloat(a);if(null!==i.getAttribute("full-span")){let l=n[0];for(let t=1;t<e;t++)n[t]>l&&(l=n[t]);for(let t=0;t<e;t++)n[t]=l+o;t?(i.setAttribute(`${oi}-left`,"0"),i.setAttribute(`${oi}-top`,`${l}px`)):(i.setAttribute(`${oi}-left`,`${l}px`),i.setAttribute(`${oi}-top`,"0"))}else{let l=0,a=n[0];for(let t=1;t<e;t++)n[t]<a&&(l=t,a=n[t]);let r=`calc(${l} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,l)} * ${s})`;t?(i.setAttribute(`${oi}-left`,r),i.setAttribute(`${oi}-top`,`${a}px`)):(i.setAttribute(`${oi}-left`,`${a}px`),i.setAttribute(`${oi}-top`,r)),n[l]+=o}}for(let e=0;e<this.#n.children.length;e++){let t=this.#n.children[e];t.style.setProperty("left",t.getAttribute(`${oi}-left`)),t.style.setProperty("top",t.getAttribute(`${oi}-top`)),t.setAttribute("slot",ol)}};constructor(e){this.#n=e}#nx=()=>{var e;null==(e=this.#N)||e.disconnect(),this.#N=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#nC()})}),Array.from(this.#n.children).forEach(e=>{var t;null==(t=this.#N)||t.observe(e)})};_handlerListType(e){if("waterfall"===e)this.#nT(),this.#N||this.#nx(),this.#nv||(this.#nv=new MutationObserver(e=>{let t=null==e?void 0:e[0];(null==t?void 0:t.type)==="childList"&&this.#nx()}),this.#nv.observe(this.#n,{childList:!0}));else{var t,n,l,i;null==(t=this.#N)||t.disconnect(),this.#N=void 0,null==(n=this.#nv)||n.disconnect(),this.#nv=void 0;for(let e=0;e<this.#n.children.length;e++)this.#n.children[e].removeAttribute("slot");null==(i=this.#n.shadowRoot)||null==(l=i.querySelector(`slot[name=${ol}]`))||l.remove()}}});af=[(0,a8.uA)("x-list",[a9.O,oe,on,oa],sr)],ay=[],aE=HTMLElement,class extends aE{static #e=ag=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(aE[Symbol.metadata]??null):void 0;(0,a3.G4)(null,ab={value:ag},af,{kind:"class",name:ag.name,metadata:e},null,ay),ag=ab.value,e&&Object.defineProperty(ag,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static notToFilterFalseAttributes=new Set(["enable-scroll"]);#nu=(0,a8.Ut)(()=>this.shadowRoot,"#content");#nk={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#nO={};get scrollTop(){return this.#nu().scrollTop}set scrollTop(e){this.#nu().scrollTop=e}get scrollLeft(){return this.#nu().scrollLeft}set scrollLeft(e){this.#nu().scrollLeft=e}get scrollHeight(){return this.#nu().scrollHeight}get scrollWidth(){return this.#nu().scrollWidth}get[st.l](){return this.#nu()}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollLeft}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.#nu().scrollTop=0,this.#nu().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.#nu().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#nL=e=>{if(!this.#nk.isScrolling)return;if(!this.#nk.lastTimestamp){this.#nk.lastTimestamp=e,requestAnimationFrame(this.#nL);return}let t=this.#nu(),n=(e-this.#nk.lastTimestamp)/1e3*this.#nk.rate,l="vertical"===(this.getAttribute("scroll-orientation")||"vertical");t.scrollBy({left:l?0:n,top:l?n:0,behavior:"auto"}),this.#nk.lastTimestamp=e,(l?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#nk.autoStop?(l?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#nk.isScrolling=!1):requestAnimationFrame(this.#nL)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#nk={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#nu(),l="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#nk.lastTimestamp=0,l?setTimeout(()=>requestAnimationFrame(this.#nL),0):requestAnimationFrame(this.#nL)}else this.#nk.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#nO),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);if(0===e.length){let n=this.#nu().getBoundingClientRect();e=t.filter(e=>{let t=e.getBoundingClientRect();return t.bottom>=n.top&&t.top<=n.bottom&&t.right>=n.left&&t.left<=n.right})}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)}})};#nA=()=>Object.values(this.#nO).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#nI=e=>{var t,n,l;if(!e.target||!(e.target instanceof HTMLElement))return;let i=e.skipped,a=(null==(t=e.target)?void 0:t.getAttribute("id"))==="content"&&(null==(n=e.target)?void 0:n.getAttribute("part"))==="content",s="LIST-ITEM"===e.target.tagName;if(a&&!i){let e=this.#nA();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...a7.$,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#nA()}}))},100);return}if(s){let t=null==(l=e.target)?void 0:l.getAttribute("item-key");if(!t)return;i?this.#nO[t]&&delete this.#nO[t]:this.#nO[t]=e.target;return}};connectedCallback(){this.#nu().addEventListener("contentvisibilityautostatechange",this.#nI,{passive:!0})}static #T=(0,a3.zF)(ag,ay)};let os=(a_=[],aT=[],aC=[],ax=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aS=[(0,a8._y)("src",!0)],aw=[(0,a8._y)("html",!0)],(0,a3.G4)(null,null,aS,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},a_,aT),(0,a3.G4)(null,null,aw,{kind:"field",name:"_handleHtml",static:!1,private:!1,access:{has:e=>"_handleHtml"in e,get:e=>e._handleHtml,set:(e,t)=>{e._handleHtml=t}},metadata:e},aC,ax),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["src","html"];#n;#nF=(0,a8.Ut)(()=>this.#n.shadowRoot,"#webview");constructor(e){(0,a3.zF)(this,ax),this.#n=e}_handleSrc=(0,a3.zF)(this,a_,(0,a8.H$)(this.#nF,"src"));_handleHtml=((0,a3.zF)(this,aT),(0,a3.zF)(this,aC,(0,a8.H$)(this.#nF,"srcdoc")))});aL=[(0,a8.uA)("x-webview",[a9.O,os],sv)],aA=[],aI=HTMLElement,class extends aI{static #e=aO=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(aI[Symbol.metadata]??null):void 0;(0,a3.G4)(null,ak={value:aO},aL,{kind:"class",name:aO.name,metadata:e},null,aA),aO=ak.value,e&&Object.defineProperty(aO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),(0,a3.zF)(aO,aA)})();#nF=(0,a8.Ut)(()=>this.shadowRoot,"#webview");#nR=()=>{this.dispatchEvent(new CustomEvent("load",{bubbles:!0,composed:!0,detail:{url:this.#nF().src}})),this.dispatchEvent(new CustomEvent("bindload",{bubbles:!0,composed:!0,detail:{url:this.#nF().src}}))};#nM=e=>{this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}})),this.dispatchEvent(new CustomEvent("binderror",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}}))};#nP=e=>{e.source===this.#nF().contentWindow&&(this.dispatchEvent(new CustomEvent("message",{bubbles:!0,composed:!0,detail:{msg:e.data,data:e.data}})),this.dispatchEvent(new CustomEvent("bindmessage",{bubbles:!0,composed:!0,detail:{msg:e.data}})))};connectedCallback(){this.#nF().addEventListener("load",this.#nR),this.#nF().addEventListener("error",this.#nM),window.addEventListener("message",this.#nP)}disconnectedCallback(){this.#nF().removeEventListener("load",this.#nR),this.#nF().removeEventListener("error",this.#nM),window.removeEventListener("message",this.#nP)}get src(){return this.getAttribute("src")}set src(e){null===e?this.removeAttribute("src"):this.setAttribute("src",e)}get html(){return this.getAttribute("html")}set html(e){null===e?this.removeAttribute("html"):this.setAttribute("html",e)}reload(){this.#nF().src=this.#nF().src}};var oo=n(33553);n(46455),n(61203);let or=!1,od=e=>e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">"),oh=e=>{if(!e)return e;if(e.includes("\x3c!--")||e.includes("<!")||e.includes("<?")||e.includes("<%"))return od(e);let t=/<\s*\/?\s*([A-Za-z][\w-]*)\b[^>]*>/g,n=null,l=!1;for(;n=t.exec(e);){l=!0;let t=(n[1]??"").toLowerCase();if("span"!==t&&"p"!==t)return od(e)}return l?e.replace(/<(span|p)\b([^>]*?)(\/?)>/gi,(e,t,n,l)=>{let i=String(t).toLowerCase(),a=String(n??"").replaceAll(""",'"').replaceAll(""",'"').replaceAll("'","'").replaceAll("'","'").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">"),s=/\bclass\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(a),o=((null==s?void 0:s[1])??(null==s?void 0:s[2])??(null==s?void 0:s[3])??"").trim().split(/\s+/).filter(Boolean).filter(e=>/^[A-Za-z0-9_-]+$/.test(e)).join(" "),r=o?` class="${o.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}"`:"";return"/"===String(l??"")?`<${i}${r}></${i}>`:`<${i}${r}>`}):e.includes("<")?od(e):e},oc=e=>{for(let t of e)((null==t?void 0:t.type)==="html_inline"||(null==t?void 0:t.type)==="html_block")&&(t.content=oh(String(t.content??""))),Array.isArray(null==t?void 0:t.children)&&oc(t.children)},ou=(e,t)=>{let n={},l=e.parse(t,n);return oc(l),e.renderer.render(l,e.options,n)},om=null,op=null,ov=()=>{if(om||o)return om;if(!l)return null;try{(om=new l({html:!0,linkify:!0})).enable(["table","strikethrough"])}catch(e){o=e}return om},ob=e=>{let t=op||(i?op=i(window):null);return t?t.sanitize(e,{USE_PROFILES:{html:!0}}):e},og=()=>({start:-1,end:-1,direction:"forward"}),of=(e,t,n)=>!!n&&(n===e||n===t||e.contains(n)||!!(null==t?void 0:t.contains(n))),oy=(e,t,n,l,i)=>{if(!i)return null;let a=((e,t)=>{let n=e.getComposedRanges;if(!t||"function"!=typeof n)return null;try{return n.call(e,{shadowRoots:[t]})[0]??null}catch{try{return n.call(e,t)[0]??null}catch{return null}}})(i,l)??(i.rangeCount>0?i.getRangeAt(0):null);if(!a)return null;if(!n.contains(a.startContainer)||!n.contains(a.endContainer)){var s;if(!of(t,l,a.startContainer)||!of(t,l,a.endContainer)||!of(t,l,i.anchorNode)||!of(t,l,i.focusNode))return null;let o=i.toString();if(!o)return null;let r=(null==(s=n.textContent)?void 0:s.indexOf(o))??-1;return r<0?null:((e,t,n,l)=>{let i=e.createTreeWalker(t,NodeFilter.SHOW_TEXT),a=0,s=null,o=0,r=null,d=0,h=i.nextNode();for(;h;){var c;let e=(null==(c=h.nodeValue)?void 0:c.length)??0;if(!s&&a+e>=n&&(s=h,o=n-a),a+e>=l){r=h,d=l-a;break}a+=e,h=i.nextNode()}if(!s)return null;r||(r=s,d=o);let u=e.createRange();return u.setStart(s,Math.max(0,Math.min(o,s.length))),u.setEnd(r,Math.max(0,Math.min(d,r.length))),u})(e,n,r,r+o.length)}let o=e.createRange();return o.setStart(a.startContainer,a.startOffset),o.setEnd(a.endContainer,a.endOffset),o},oE=(e,t,n,l)=>{if(!n||!t.contains(n))return null;let i=e.createRange();i.selectNodeContents(t);try{i.setEnd(n,l)}catch{return null}return i.toString().length},oS=e=>e.replace(/src\s*=\s*"inlineview:\/\/([^"]+)"/g,(e,t)=>`data-inlineview="${t}"`),ow=new Set(["font-weight","opacity","z-index","flex","flex-grow","flex-shrink","order"]),o_={normalText:".markdown-body",link:".markdown-body a",inlineCode:".markdown-body code:not(pre code)",codeBlock:[".markdown-body pre",".markdown-body pre code"],h1:".markdown-body h1",h2:".markdown-body h2",h3:".markdown-body h3",h4:".markdown-body h4",h5:".markdown-body h5",h6:".markdown-body h6",quote:".markdown-body blockquote",orderedList:".markdown-body ol",unorderedList:".markdown-body ul",listItem:".markdown-body li",image:".markdown-body img",span:".markdown-body span",p:".markdown-body p",table:".markdown-body table",thead:".markdown-body thead",tbody:".markdown-body tbody",tr:".markdown-body tr",th:".markdown-body th",td:".markdown-body td",imageCaption:".markdown-body .md-image-caption"},oT=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),oC=(e,t)=>{if(null==t)return null;if("number"==typeof t)return ow.has(e)?`${t}`:`${t}px`;if("string"==typeof t){if(e.includes("color")){let e;return e=t.trim(),/^[0-9a-fA-F]{6,8}$/.test(e)?`#${e}`:t}return t}return null},ox=e=>{if(!e)return{};try{let t=JSON.parse(e);if(t&&"object"==typeof t)return t}catch{}return{}},ok=(aB=[],class{static #e=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aF=[(0,a8._y)("content",!0)],aR=[(0,a8._y)("markdown-effect",!0)],aM=[(0,a8._y)("markdown-style",!0)],aP=[(0,a8._y)("content-id",!0)],az=[(0,a8._y)("text-selection",!0)],aN=[(0,a8._y)("animation-type",!0)],aH=[(0,a8._y)("animation-velocity",!0)],aD=[(0,a8._y)("animation-paused",!0)],aG=[(0,a8._y)("initial-animation-step",!0)],aj=[(0,a8._y)("content-complete",!0)],a$=[(0,a8._y)("typewriter-dynamic-height",!0)],aV=[(0,a8._y)("typewriter-height-transition-duration",!0)],aW=[(0,a8._y)("text-maxline",!0)],aU=[(0,a8._y)("content-range",!0)],(0,a3.G4)(this,null,aF,{kind:"method",name:"_handleContent",static:!1,private:!1,access:{has:e=>"_handleContent"in e,get:e=>e._handleContent},metadata:e},null,aB),(0,a3.G4)(this,null,aR,{kind:"method",name:"_handleMarkdownEffect",static:!1,private:!1,access:{has:e=>"_handleMarkdownEffect"in e,get:e=>e._handleMarkdownEffect},metadata:e},null,aB),(0,a3.G4)(this,null,aM,{kind:"method",name:"_handleMarkdownStyle",static:!1,private:!1,access:{has:e=>"_handleMarkdownStyle"in e,get:e=>e._handleMarkdownStyle},metadata:e},null,aB),(0,a3.G4)(this,null,aP,{kind:"method",name:"_handleContentId",static:!1,private:!1,access:{has:e=>"_handleContentId"in e,get:e=>e._handleContentId},metadata:e},null,aB),(0,a3.G4)(this,null,az,{kind:"method",name:"_handleTextSelection",static:!1,private:!1,access:{has:e=>"_handleTextSelection"in e,get:e=>e._handleTextSelection},metadata:e},null,aB),(0,a3.G4)(this,null,aN,{kind:"method",name:"_handleAnimationType",static:!1,private:!1,access:{has:e=>"_handleAnimationType"in e,get:e=>e._handleAnimationType},metadata:e},null,aB),(0,a3.G4)(this,null,aH,{kind:"method",name:"_handleAnimationVelocity",static:!1,private:!1,access:{has:e=>"_handleAnimationVelocity"in e,get:e=>e._handleAnimationVelocity},metadata:e},null,aB),(0,a3.G4)(this,null,aD,{kind:"method",name:"_handleAnimationPaused",static:!1,private:!1,access:{has:e=>"_handleAnimationPaused"in e,get:e=>e._handleAnimationPaused},metadata:e},null,aB),(0,a3.G4)(this,null,aG,{kind:"method",name:"_handleInitialAnimationStep",static:!1,private:!1,access:{has:e=>"_handleInitialAnimationStep"in e,get:e=>e._handleInitialAnimationStep},metadata:e},null,aB),(0,a3.G4)(this,null,aj,{kind:"method",name:"_handleContentComplete",static:!1,private:!1,access:{has:e=>"_handleContentComplete"in e,get:e=>e._handleContentComplete},metadata:e},null,aB),(0,a3.G4)(this,null,a$,{kind:"method",name:"_handleTypewriterDynamicHeight",static:!1,private:!1,access:{has:e=>"_handleTypewriterDynamicHeight"in e,get:e=>e._handleTypewriterDynamicHeight},metadata:e},null,aB),(0,a3.G4)(this,null,aV,{kind:"method",name:"_handleTypewriterHeightTransition",static:!1,private:!1,access:{has:e=>"_handleTypewriterHeightTransition"in e,get:e=>e._handleTypewriterHeightTransition},metadata:e},null,aB),(0,a3.G4)(this,null,aW,{kind:"method",name:"_handleTextMaxline",static:!1,private:!1,access:{has:e=>"_handleTextMaxline"in e,get:e=>e._handleTextMaxline},metadata:e},null,aB),(0,a3.G4)(this,null,aU,{kind:"method",name:"_handleContentRange",static:!1,private:!1,access:{has:e=>"_handleContentRange"in e,get:e=>e._handleContentRange},metadata:e},null,aB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static observedAttributes=["content","markdown-style","content-id","text-selection","animation-type","animation-velocity","animation-paused","initial-animation-step","content-complete","typewriter-dynamic-height","typewriter-height-transition-duration","text-maxline","content-range","markdown-effect"];#n=(0,a3.zF)(this,aB);#nz=(0,a8.Ut)(()=>this.#n.shadowRoot,"#markdown-root");#nN=(0,a8.Ut)(()=>this.#n.shadowRoot,"#markdown-style");#nH=!1;#nD="";#nG="";#nj;#n$=!1;#nV=!1;#nW="";#nU;#nB=60;#nX="";#nq=!1;#nZ;#nY;#nJ=null;#nK;#nQ="none";#n0=40;#n1;#n4=0;#n2=!1;#n3=!1;#n8=!0;#n9=0;#n5=!1;#n6=0;#n7=null;#le;#lt=0;#ln=!1;#ll;#li=null;constructor(e){this.#n=e}connectedCallback(){this.#la()}dispose(){this.#ls(),this.#lo(),clearTimeout(this.#nZ),this.#nZ=void 0,this.#n$&&(this.#nz().removeEventListener("click",this.#lr),this.#n$=!1),this.#nV&&(document.removeEventListener("selectionchange",this.#ld),document.removeEventListener("mouseup",this.#lh),document.removeEventListener("touchend",this.#lh),document.removeEventListener("keyup",this.#lh),this.#nV=!1)}#la(){this.#n$||(this.#nz().addEventListener("click",this.#lr),this.#n$=!0,this.#nV||(document.addEventListener("selectionchange",this.#ld),document.addEventListener("mouseup",this.#lh),document.addEventListener("touchend",this.#lh),document.addEventListener("keyup",this.#lh),this.#nV=!0))}#lr=e=>{let t=e.target;if(!t)return;let n=this.#nz(),l=t.closest("a");if(l&&n.contains(l)){e.preventDefault(),this.#n.dispatchEvent(new CustomEvent("bindlink",{detail:{url:l.getAttribute("href")??"",content:l.textContent??"",contentId:this.#nj},bubbles:!0,composed:!0}));return}let i=t.closest("img");i&&n.contains(i)&&this.#n.dispatchEvent(new CustomEvent("bindimageTap",{detail:{url:i.getAttribute("src")??"",contentId:this.#nj},bubbles:!0,composed:!0}))};#lc(){if(this.#nq)try{let e=this.#nz(),t=((e,t)=>{var n;let l=e.ownerDocument,i=e.shadowRoot,a=[(null==i||null==(n=i.getSelection)?void 0:n.call(i))??null,l.getSelection()].filter((e,t,n)=>!!e&&n.indexOf(e)===t),s=null,o=null;for(let n of a){let a=oy(l,e,t,i,n);if(a&&!a.collapsed){s=a,o=n;break}}if(!s||!o)return og();let r=oE(l,t,s.startContainer,s.startOffset),d=oE(l,t,s.endContainer,s.endOffset);if(null===r||null===d||r===d)return og();let h=oE(l,t,o.anchorNode,o.anchorOffset),c=oE(l,t,o.focusNode,o.focusOffset);return{start:Math.min(r,d),end:Math.max(r,d),direction:null!==h&&null!==c&&h>c?"backward":"forward"}})(this.#n,e),n=`${t.start}:${t.end}:${t.direction}`;if(n===this.#nY)return;this.#nY=n,this.#n.dispatchEvent(new CustomEvent("bindselectionchange",{detail:t,bubbles:!0,composed:!0}))}catch{}}#lu=()=>{clearTimeout(this.#nZ),this.#nZ=setTimeout(()=>{this.#nZ=void 0,this.#lc()},0)};#ld=()=>{this.#lc(),this.#lu()};#lh=()=>{this.#lc(),this.#lu()};#lm(){if(!this.#nH){if(this.#nH=!0,!or&&!s)return void(or?Promise.resolve():a||(a=n.e(166).then(n.bind(n,98283)).then(e=>{l=e.MarkdownIt,i=e.createDOMPurify,or=!0}).catch(e=>{s=e}))).then(()=>{this.#nH=!1,this.#lp()});(0,a8.JS)(()=>{this.#nH=!1,this.#lp()})}}#lp(){let e=this.#nz();if(!this.#nD){this.#lv(),e.innerHTML="",this.#nG="",this.#nW="",this.#ls();return}if("typewriter"===this.#nQ)return void this.#lb(e);let t=ov();if(!t){let t=this.#ll?this.#nD.slice(this.#ll[0],this.#ll[1]):this.#nD;e.textContent=t,this.#nG=t,this.#nW="",this.#ls();return}if(this.#lg())return void this.#lf(e);let n=this.#ll?this.#nD.slice(this.#ll[0],this.#ll[1]):this.#nD;e.innerHTML=ob(oS(ou(t,n))),this.#ly(e),this.#nG=n,this.#nW="",this.#ls(),this.#lE(),this.#lS(e)}#lg(){return!!this.#nG&&!!this.#nD.startsWith(this.#nG)&&this.#nD.length!==this.#nG.length}#lf(e){let t=this.#nD.slice(this.#nG.length);if(!t)return;let n=t.lastIndexOf("\n");if(-1===n){this.#nW=t,this.#lw();return}let l=t.slice(0,n+1);if(l){let t=ov();if(!t)return;let n=ou(t,l);this.#l_(e,n),this.#nG+=l}this.#nW=t.slice(n+1),this.#nW?this.#lw():this.#ls()}#lw(){this.#ls(),this.#nU=setTimeout(()=>{this.#nU=void 0,this.#lT()},this.#nB)}#ls(){this.#nU&&(clearTimeout(this.#nU),this.#nU=void 0)}#lv(){this.#lo(),this.#n2=!1,this.#n4=0,this.#n9=0,this.#lC()}#lT(){if(!this.#nW||!this.#nD.startsWith(this.#nG))return;let e=this.#nG.length+this.#nW.length;if(this.#nD.length!==e)return;let t=this.#nz(),n=ov();if(!n)return;let l=ou(n,this.#nW);this.#l_(t,l),this.#nG+=this.#nW,this.#nW="",this.#lE(),this.#lS(this.#nz())}#l_(e,t){let n=document.createElement("template");n.innerHTML=ob(oS(t)),e.append(n.content),this.#lS(e),this.#ly(e)}#lx(e){var t,n;if(!this.#li||"text-mask"!==this.#li.type||!1!==this.#n8&&this.#n4>=this.#n9)return;let{color:l,rangeStart:i,rangeEnd:a}=this.#li;if(!l||"number"!=typeof i)return;e.querySelectorAll(".md-text-mask-effect").forEach(e=>{let t=e.querySelector(".md-text-mask-effect-content"),n=e.parentNode;if(t&&n){for(;t.firstChild;)n.insertBefore(t.firstChild,e);n.removeChild(e)}});let s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=[];for(;s.nextNode();){let n=s.currentNode,l=n.parentElement;l===e&&((null==(t=n.nodeValue)?void 0:t.trim())??"")===""||l&&(l.closest(".md-typewriter-cursor")||l.closest(".md-truncation")||l.closest(".md-text-mask-effect-overlay"))||o.push(n)}let r=o.reduce((e,t)=>{var n;return e+((null==(n=t.nodeValue)?void 0:n.length)??0)},0),d=i<0?r+i:i,h=Math.max(0,Math.min(r,d)),c=Math.max(h,Math.min(r,("number"==typeof a?a<0?r+a:a:d)+1));if(c<=h)return;let u=0,m=[];if(o.forEach(e=>{var t;let n=(null==(t=e.nodeValue)?void 0:t.length)??0,l=u,i=u+n,a=Math.max(h,l)-l,s=Math.min(c,i)-l;a<s&&m.push({node:e,startOffset:a,endOffset:s}),u=i}),0===m.length)return;let p=[];for(let{node:e,startOffset:t,endOffset:i}of m.reverse()){let a=e;t>0&&(a=e.splitText(t));let s=i-t;s<((null==(n=a.nodeValue)?void 0:n.length)??0)&&a.splitText(s);let o=a.nodeValue??"",r=document.createElement("span");r.className="md-text-mask-effect";let d=document.createElement("span");d.className="md-text-mask-effect-content";let h=document.createElement("span");h.className="md-text-mask-effect-overlay",h.setAttribute("aria-hidden","true"),h.textContent=o,h.style.background=l;let c=a.parentNode;c&&(c.insertBefore(r,a),d.appendChild(a),r.append(d,h),p.unshift({content:d,overlay:h}))}if(0===p.length)return;let v=p.map(e=>{let{content:t}=e;return t.getBoundingClientRect().width}),b=v.reduce((e,t)=>e+t,0);if(b<=0)return;let g=0;p.forEach((e,t)=>{let{overlay:n}=e;n.style.backgroundRepeat="no-repeat",n.style.backgroundSize=`${b}px 100%`,n.style.backgroundPosition=`${-g}px 0`,g+=v[t]??0})}#lE(){this.#n.dispatchEvent(new CustomEvent("bindparseEnd",{detail:{id:this.#nj},bubbles:!0,composed:!0}))}#lS(e){if(this.#lx(e),this.#lt>0?queueMicrotask(()=>{try{e.scrollHeight>e.clientHeight+1&&!this.#ln&&(this.#ln=!0,this.#n.dispatchEvent(new CustomEvent("bindoverflow",{detail:{type:"ellipsis"},bubbles:!0,composed:!0})))}catch{}}):this.#ln=!1,"typewriter"===this.#nQ&&this.#n5){let t=this.#n6;t>0&&(e.style.transition=`height ${t}s ease`)}else e.style.transition="";this.#lt>0&&this.#lk(e)||this.#lO()}#lb(e){let[t,n]=this.#ll?this.#ll:[0,this.#nD.length];this.#n9=Math.max(0,n-t),!this.#n2&&(this.#n2=!0,this.#n.dispatchEvent(new CustomEvent("binddrawStart",{bubbles:!0,composed:!0})),this.#n3||this.#lL());let l=this.#nD.slice(t,t+this.#n4),i=ov();i?(e.innerHTML=ob(oS(ou(i,l))),this.#ly(e)):e.textContent=l,this.#lA(e),this.#lS(e),this.#n4>=this.#n9&&(this.#lo(),!1!==this.#n8&&this.#n.dispatchEvent(new CustomEvent("binddrawEnd",{bubbles:!0,composed:!0})))}#lL(){this.#lo();let e=Math.max(10,Math.floor(1e3/Math.max(1,this.#n0)));this.#n1=setInterval(()=>{if(this.#n4<this.#n9){this.#n4+=1,this.#n.dispatchEvent(new CustomEvent("bindanimationStep",{detail:{animationStep:this.#n4,maxAnimationStep:this.#n9},bubbles:!0,composed:!0}));let e=this.#nz();this.#lb(e)}else this.#lo()},e)}#lo(){this.#n1&&(clearInterval(this.#n1),this.#n1=void 0)}#lI(e){let t=ox(e);this.#nJ=t.truncation??null,this.#n7=t.typewriterCursor??null;let{truncation:n,typewriterCursor:l,...i}=t;this.#nX=(e=>{let t=[];for(let[n,l]of Object.entries(e)){if(!l||"object"!=typeof l)continue;let e=[];if(n.startsWith(".")||n.startsWith("#"))e=[`.markdown-body ${n}`];else{if(!o_[n])continue;e=Array.isArray(o_[n])?o_[n]:[o_[n]]}let i=Object.entries(l).map(e=>{let[t,n]=e,l=oT(t),i=oC(l,n);return i?`${l}: ${i};`:null}).filter(Boolean).join("");if(i)for(let n of e)t.push(`${n} {${i}}`)}return t.join("\n")})(i),this.#lF()}#lF(){let e=this.#nN(),t=this.#nX||"";this.#nq&&(t+="\n.markdown-body { user-select: text; }"),this.#lt>0&&(t+=`
|
|
365
|
-
.markdown-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: ${this.#lt}; overflow: hidden; }`),e.textContent=t}_handleContent(e){let t=e??"",n=t!==this.#nD;this.#nD=t,n&&"typewriter"===this.#nQ&&this.#lv(),this.#lm()}_handleMarkdownEffect(e){try{this.#li=e?JSON.parse(e):null}catch{this.#li=null}this.#lm()}_handleMarkdownStyle(e){this.#lI(e)}_handleContentId(e){this.#nj=e??void 0}_handleTextSelection(e){this.#nq=!!(e&&"false"!==e),this.#nq||(clearTimeout(this.#nZ),this.#nZ=void 0,this.#nY=void 0),this.#lF()}_handleAnimationType(e){let t=(e??"none").toLowerCase();this.#nQ="typewriter"===t?"typewriter":"none",this.#n2=!1,this.#lo(),this.#lm()}_handleAnimationVelocity(e){let t=Number(e);!Number.isNaN(t)&&t>0&&(this.#n0=t),"typewriter"===this.#nQ&&!this.#n3&&this.#n1&&this.#lL()}_handleAnimationPaused(e){(this.#n3=!!(e&&"false"!==e),this.#n3)?this.#lo():"typewriter"===this.#nQ&&this.#n2&&this.#n4<this.#n9&&this.#lL()}_handleInitialAnimationStep(e){let t=Number(e);this.#n4=Number.isNaN(t)?0:Math.max(0,Math.floor(t))}_handleContentComplete(e){this.#n8="false"!==e}_handleTypewriterDynamicHeight(e){this.#n5=!!(e&&"false"!==e)}_handleTypewriterHeightTransition(e){let t=Number(e);this.#n6=Number.isNaN(t)?0:Math.max(0,t)}_handleTextMaxline(e){let t=Number(e);this.#lt=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),this.#lF()}_handleContentRange(e){if(e)try{let t=JSON.parse(e);if(Array.isArray(t)&&2===t.length){let e=Number(t[0]),n=Number(t[1]);Number.isNaN(e)||Number.isNaN(n)||!(n>=e)||(this.#ll=[Math.max(0,e),Math.max(0,n)])}}catch{let t=e.split(",");if(2===t.length){let e=Number(t[0]),n=Number(t[1]);Number.isNaN(e)||Number.isNaN(n)||!(n>=e)||(this.#ll=[Math.max(0,e),Math.max(0,n)])}}else this.#ll=void 0;this.#lm()}#ly(e){try{for(let t of Array.from(e.querySelectorAll("img"))){let e=t.getAttribute("data-inlineview");if(e){let n=document.createElement("span");n.className="md-inline-view";let l=document.createElement("slot");l.name=e,n.appendChild(l),t.replaceWith(n)}}}catch{}}#lk(e){if(!(e.scrollHeight>e.clientHeight+1))return!1;if(!this.#nK){let t=document.createElement("span");t.className="md-truncation",this.#nK=t,e.appendChild(t)}let t=this.#nJ||{},n=this.#nK;if(n.textContent="",n.innerHTML="","view"===t.truncationType&&t.content){let e=this.#n.querySelector(`#${CSS.escape(String(t.content))}`);e?n.appendChild(e):n.textContent="…"}else t.content?n.textContent=String(t.content):n.textContent="…";return!0}#lO(){this.#nK&&this.#nK.parentNode&&this.#nK.parentNode.removeChild(this.#nK),this.#nK=void 0}#lA(e){if(!1!==this.#n8&&this.#n4>=this.#n9)return void this.#lC();let t=this.#n7||{},n=t.customCursor;if("none"===n)return void this.#lC();if(!this.#le){let l=document.createElement("span");if(l.className="md-typewriter-cursor",this.#le=l,t.verticalAlign&&(l.style.verticalAlign=t.verticalAlign),n){let t=this.#n.querySelector(`#${CSS.escape(n)}`)||e.querySelector(`#${CSS.escape(n)}`);t?l.appendChild(t):l.textContent="…"}else l.textContent="…"}let l=e;for(;;){let e=l.lastChild;for(;e;)if(e.nodeType!==Node.TEXT_NODE||e.textContent&&""!==e.textContent.trim())break;else e=e.previousSibling;if(e&&e.nodeType===Node.ELEMENT_NODE&&!["IMG","BR","HR","INPUT","TABLE","PRE","CODE"].includes(e.tagName))l=e;else break}l.appendChild(this.#le)}#lC(){this.#le&&this.#le.parentNode&&this.#le.parentNode.removeChild(this.#le),this.#le=void 0}}),oO=(e,t,n)=>{let l=0,i=Math.max(0,Math.min(n,e.length));for(let n=0;n<i&&!(l>=t.length);n+=1)e[n]===t[l]&&(l+=1);return l},oL=(e,t,n)=>!!n&&(n===e||n===t||e.contains(n)||!!(null==t?void 0:t.contains(n))),oA=(e,t,n)=>{if(!n)return null;let l=e.shadowRoot,i=((e,t)=>{let n=e.getComposedRanges;if(!t||"function"!=typeof n)return null;try{return n.call(e,{shadowRoots:[t]})[0]??null}catch{try{return n.call(e,t)[0]??null}catch{return null}}})(n,l)??(n.rangeCount>0?n.getRangeAt(0):null);if(!i)return null;if(!t.contains(i.startContainer)||!t.contains(i.endContainer)){var a;if(!oL(e,l,i.startContainer)||!oL(e,l,i.endContainer)||!oL(e,l,n.anchorNode)||!oL(e,l,n.focusNode))return null;let s=n.toString();if(!s)return null;let o=(null==(a=t.textContent)?void 0:a.indexOf(s))??-1;return o<0?null:((e,t,n,l)=>{let i=e.createTreeWalker(t,NodeFilter.SHOW_TEXT),a=0,s=null,o=0,r=null,d=0,h=i.nextNode();for(;h;){var c;let e=(null==(c=h.nodeValue)?void 0:c.length)??0;if(!s&&a+e>=n&&(s=h,o=n-a),a+e>=l){r=h,d=l-a;break}a+=e,h=i.nextNode()}if(!s)return null;r||(r=s,d=o);let u=e.createRange();return u.setStart(s,Math.max(0,Math.min(o,s.length))),u.setEnd(r,Math.max(0,Math.min(d,r.length))),u})(e.ownerDocument,t,o,o+s.length)}let s=e.ownerDocument.createRange();return s.setStart(i.startContainer,i.startOffset),s.setEnd(i.endContainer,i.endOffset),s},oI=e=>{let t=e.shadowRoot;return[t&&"function"==typeof t.getSelection?t.getSelection():null,e.ownerDocument.getSelection()].filter((e,t,n)=>!!e&&n.indexOf(e)===t)},oF=(e,t)=>{for(let n of oI(e)){let l=oA(e,t,n);if(l)return{selection:n,range:l}}return null};aJ=[(0,a8.uA)("x-markdown",[a9.O,ok],su)],aK=[],aQ=HTMLElement,aX=(0,oo._)("markdown-style"),aq=(0,oo._)("markdown-style"),class extends aQ{static #e=aY=this;static #t=(()=>{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(aQ[Symbol.metadata]??null):void 0;(0,a3.G4)(null,aZ={value:aY},aJ,{kind:"class",name:aY.name,metadata:e},null,aK),aY=aZ.value,e&&Object.defineProperty(aY,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})();static notToFilterFalseAttributes=new Set(["content-complete"]);#lR(){return ox(this.getAttribute("markdown-style"))}#lM(e){let t=null==e?null:"string"==typeof e?e:JSON.stringify(e);null===t?this.removeAttribute("markdown-style"):this.setAttribute("markdown-style",t)}get markdownStyle(){return this.#lR()}set markdownStyle(e){this.#lM(e)}get[aX](){return this.#lR()}set[aq](e){this.#lM(e)}getImages(){var e;let t=null==(e=this.shadowRoot)?void 0:e.querySelector("#markdown-root");return t?Array.from(t.querySelectorAll("img")).map(e=>e.getAttribute("src")||"").filter(e=>!!e):[]}getContent(e){let t=this.getAttribute("content")??"",n=Math.max(0,(null==e?void 0:e.start)??0),l=(null==e?void 0:e.end)??t.length-1,i=Math.min(t.length,l+1);return{content:i>=n?t.slice(n,i):""}}pauseAnimation(){this.setAttribute("animation-paused","true")}resumeAnimation(e){(null==e?void 0:e.animationStep)!==void 0&&this.setAttribute("initial-animation-step",String(e.animationStep)),"typewriter"!==this.getAttribute("animation-type")&&this.setAttribute("animation-type","typewriter");let t=this.getAttribute("animation-velocity");(!t||0>=Number(t))&&this.setAttribute("animation-velocity","40"),this.removeAttribute("animation-paused")}getSelectedText(){var e;let t=null==(e=this.shadowRoot)?void 0:e.querySelector("#markdown-root");if(!t)return"";let n=oF(this,t);return(null==n?void 0:n.range.toString())??""}getTextBoundingRect(e){var t,n,l;let i=null==(t=this.shadowRoot)?void 0:t.querySelector("#markdown-root");if(!i)return null;let a=this.ownerDocument;if((null==e?void 0:e.start)!==void 0||(null==e?void 0:e.end)!==void 0){let t,s=Math.max(0,(null==e?void 0:e.start)??0),o=Math.max(s,(null==e?void 0:e.end)??s),r=(null==e?void 0:e.indexType)==="source"?(n=this.getAttribute("content")??"",l=i.textContent??"",{start:t=oO(n,l,s),end:Math.max(t,oO(n,l,o))}):{start:s,end:o};if(!r)return null;let d=((e,t)=>{let n=a.createTreeWalker(i,NodeFilter.SHOW_TEXT),l=0,s=null,o=0,r=null,d=0,h=n.nextNode();for(;h;){var c;let i=(null==(c=h.nodeValue)?void 0:c.length)??0;if(!s&&l+i>=e&&(s=h,o=e-l),l+i>=t){r=h,d=t-l;break}l+=i,h=n.nextNode()}if(!s)return null;r||(r=s,d=o);let u=a.createRange();return u.setStart(s,Math.max(0,Math.min(o,s.length))),u.setEnd(r,Math.max(0,Math.min(d,r.length))),u})(r.start,r.end);return d?{boundingRect:d.getBoundingClientRect()}:null}let s=oF(this,i);return s?{boundingRect:s.range.getBoundingClientRect()}:null}setTextSelection(e){let t=this.ownerDocument,n=(e,n)=>{if(t.caretRangeFromPoint)return t.caretRangeFromPoint(e,n);if(t.caretPositionFromPoint){let l=t.caretPositionFromPoint(e,n);if(!l)return null;let i=this.ownerDocument.createRange();return i.setStart(l.offsetNode,l.offset),i.collapse(!0),i}return null},l=n(e.startX,e.startY),i=n(e.endX,e.endY);if(l&&i){let e=oI(this)[0]??null;if(!e)return;e.removeAllRanges();let t=this.ownerDocument.createRange();t.setStart(l.startContainer,l.startOffset),t.setEnd(i.startContainer,i.startOffset),e.addRange(t)}}getParseResult(e){var t;let n=null==(t=this.shadowRoot)?void 0:t.querySelector("#markdown-root");if(!n)return{};let l=n.textContent||"",i={},a=this.ownerDocument,s=e=>{let t=a.createTreeWalker(n,NodeFilter.SHOW_TEXT),i=0,s=-1,o=-1,r=t.nextNode();for(;r;){let n=(r.nodeValue||"").length;(r===e||e.contains(r))&&(s<0&&(s=i),o=i+n),i+=n,r=t.nextNode()}return{start:Math.max(0,Math.min(s,l.length)),end:Math.max(0,Math.min(o,l.length))}};for(let t of e.tags){let e=Array.from(n.querySelectorAll(t));i[t]=e.map(e=>s(e))}return i}static #T=(0,a3.zF)(aY,aK)}}}]);
|