PageSourceSearch

https://www.hilton.com.cn/assets/vendor-vant-BGYutjow.js

js hilton.com.cn collected 2026-10-03 22:40:24 UTC 48,115 bytes, 1 lines download raw bytes

1import{i as De,g as Te,o as Dt,c as k,r as I,a as Ve,b as vn,w as F,d as ye,n as Z,e as qe,u as Ke,f as he,p as Re,h as hn,j as X,k as h,m as me,l as lt,T as Vt,q as rt,s as ct,v as st,F as gn,t as mn,x as bn,y as yn,z as wn,A as xn,B as Sn}from"./vendor-vue-DpzrsAq3.js";function Cn(){}const le=Object.assign,ut=typeof window<"u",Ge=e=>e!==null&&typeof e=="object",Y=e=>e!=null,Xe=e=>typeof e=="function",Mt=e=>Ge(e)&&Xe(e.then)&&Xe(e.catch),Ft=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),Tn=()=>ut?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function yt(e,t){const n=t.split(".");let i=e;return n.forEach(a=>{var o;i=Ge(i)&&(o=i[a])!=null?o:""}),i}function ot(e,t,n){return t.reduce((i,a)=>(i[a]=e[a],i),{})}const wt=e=>Array.isArray(e)?e:[e],ve=null,R=[Number,String],j={type:Boolean,default:!0},We=e=>({type:e,required:!0}),kn=e=>({type:Number,default:e}),se=e=>({type:R,default:e}),ne=e=>({type:String,default:e});var Be=typeof window<"u";function ze(e){return Be?requestAnimationFrame(e):-1}function pt(e){Be&&cancelAnimationFrame(e)}function _e(e){ze(()=>ze(e))}var En=e=>e===window,xt=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),ue=e=>{const t=Ke(e);if(En(t)){const n=t.innerWidth,i=t.innerHeight;return xt(n,i)}return t!=null&&t.getBoundingClientRect?t.getBoundingClientRect():xt(0,0)};function Me(e){const t=De(e,null);if(t){const n=Te(),{link:i,unlink:a,internalChildren:o}=t;i(n),Dt(()=>a(n));const f=k(()=>o.indexOf(n));return{parent:t,index:f}}return{parent:null,index:I(-1)}}function In(e){const t=[],n=i=>{Array.isArray(i)&&i.forEach(a=>{var o;hn(a)&&(t.push(a),(o=a.component)!=null&&o.subTree&&(t.push(a.component.subTree),n(a.component.subTree.children)),a.children&&n(a.children))})};return n(e),t}var St=(e,t)=>{const n=e.indexOf(t);return n===-1?e.findIndex(i=>t.key!==void 0&&t.key!==null&&i.type===t.type&&i.key===t.key):n};function Bn(e,t,n){const i=In(e.subTree.children);n.sort((o,f)=>St(i,o.vnode)-St(i,f.vnode));const a=n.map(o=>o.proxy);t.sort((o,f)=>{const r=a.indexOf(o),s=a.indexOf(f);return r-s})}function dt(e){const t=he([]),n=he([]),i=Te();return{children:t,linkChildren:o=>{Re(e,Object.assign({link:s=>{s.proxy&&(n.push(s),t.push(s.proxy),Bn(i,t,n))},unlink:s=>{const v=n.indexOf(s);t.splice(v,1),n.splice(v,1)},children:t,internalChildren:n},o))}}}function Ue(e){let t;ye(()=>{e(),Z(()=>{t=!0})}),qe(()=>{t&&e()})}function be(e,t,n={}){if(!Be)return;const{target:i=window,passive:a=!1,capture:o=!1}=n;let f=!1,r;const s=u=>{if(f)return;const d=Ke(u);d&&!r&&(d.addEventListener(e,t,{capture:o,passive:a}),r=!0)},v=u=>{if(f)return;const d=Ke(u);d&&r&&(d.removeEventListener(e,t,o),r=!1)};Dt(()=>v(i)),Ve(()=>v(i)),Ue(()=>s(i));let c;return vn(i)&&(c=F(i,(u,d)=>{v(d),s(u)})),()=>{c==null||c(),v(i),f=!0}}var pe,Je;function $n(){if(!pe&&(pe=I(0),Je=I(0),Be)){const e=()=>{pe.value=window.innerWidth,Je.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:pe,height:Je}}var An=/scroll|auto|overlay/i,Nt=Be?window:void 0;function On(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Yt(e,t=Nt){let n=e;for(;n&&n!==t&&On(n);){const{overflowY:i}=window.getComputedStyle(n);if(An.test(i))return n;n=n.parentNode}return t}function ft(e,t=Nt){const n=I();return ye(()=>{e.value&&(n.value=Yt(e.value,t))}),n}var Ne;function _n(){if(!Ne&&(Ne=I("visible"),Be)){const e=()=>{Ne.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return Ne}var jt=Symbol("van-field");function Pn(e){const t=De(jt,null);t&&!t.customValue.value&&(t.customValue.value=e,F(e,()=>{t.resetValidation(),t.validateWithTrigger("onChange")}))}function Ee(e){const t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function it(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function xe(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Le(e){it(window,e),it(document.body,e)}function Ct(e,t){if(e===window)return 0;const n=t?Ee(t):xe();return ue(e).top+n}const Rn=Tn();function zn(){Rn&&Le(xe())}const Ln=e=>e.stopPropagation();function Se(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Ln(e)}function Ie(e){const t=Ke(e);if(!t)return!1;const n=window.getComputedStyle(t),i=n.display==="none",a=t.offsetParent===null&&n.position!=="fixed";return i||a}const{width:Ze,height:vt}=$n();function K(e){if(Y(e))return Ft(e)?`${e}px`:String(e)}function Dn(e){if(Y(e)){if(Array.isArray(e))return{width:K(e[0]),height:K(e[1])};const t=K(e);return{width:t,height:t}}}function ht(e){const t={};return e!==void 0&&(t.zIndex=+e),t}let Qe;function Vn(){if(!Qe){const e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;Qe=parseFloat(t)}return Qe}function Mn(e){return e=e.replace(/rem/g,""),+e*Vn()}function Fn(e){return e=e.replace(/vw/g,""),+e*Ze.value/100}function pn(e){return e=e.replace(/vh/g,""),+e*vt.value/100}function Wt(e){if(typeof e=="number")return e;if(ut){if(e.includes("rem"))return Mn(e);if(e.includes("vw"))return Fn(e);if(e.includes("vh"))return pn(e)}return parseFloat(e)}const Nn=/-(\w)/g,Ht=e=>e.replace(Nn,(t,n)=>n.toUpperCase()),He=(e,t,n)=>Math.min(Math.max(e,t),n);function Tt(e,t,n){const i=e.indexOf(t);
1return i===-1?e:t==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(n,"")}function Yn(e,t=!0,n=!0){t?e=Tt(e,".",/\./g):e=e.split(".")[0],n?e=Tt(e,"-",/-/g):e=e.replace(/-/,"");const i=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}const{hasOwnProperty:jn}=Object.prototype;function Wn(e,t,n){const i=t[n];Y(i)&&(!jn.call(e,n)||!Ge(i)?e[n]=i:e[n]=Kt(Object(e[n]),i))}function Kt(e,t){return Object.keys(t).forEach(n=>{Wn(e,t,n)}),e}var Hn={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const kt=I("zh-CN"),Et=he({"zh-CN":Hn}),Kn={messages(){return Et[kt.value]},use(e,t){kt.value=e,this.add({[e]:t})},add(e={}){Kt(Et,e)}};var Xn=Kn;function qn(e){const t=Ht(e)+".";return(n,...i)=>{const a=Xn.messages(),o=yt(a,t+n)||yt(a,n);return Xe(o)?o(...i):o}}function at(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,i)=>n+at(e,i),""):Object.keys(t).reduce((n,i)=>n+(t[i]?at(e,i):""),""):""}function Gn(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${at(t,n)}`)}function H(e){const t=`van-${e}`;return[t,Gn(t),qn(t)]}const Xt="van-hairline",Un=`${Xt}--bottom`,Zn=`${Xt}--top-bottom`,Jn="van-haptics-feedback",Qn=Symbol("van-form"),It=5;function qt(e,{args:t=[],done:n,canceled:i,error:a}){if(e){const o=e.apply(null,t);Mt(o)?o.then(f=>{f?n():i&&i()}).catch(a||Cn):o?n():i&&i()}else n()}function Q(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(Ht(`-${n}`),e))},e}const Gt=Symbol();function Ut(e){const t=De(Gt,null);t&&F(t,n=>{n&&e()})}function de(e){const t=Te();t&&le(t.proxy,e)}const Zt={to:[String,Object],url:String,replace:Boolean};function Jt({to:e,url:t,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function eo(){const e=Te().proxy;return()=>Jt(e)}const[to,Bt]=H("badge"),no={dot:Boolean,max:R,tag:ne("div"),color:String,offset:Array,content:R,showZero:j,position:ne("top-right")};var oo=X({name:to,props:no,setup(e,{slots:t}){const n=()=>
1{if(t.content)return!0;const{content:r,showZero:s}=e;return Y(r)&&r!==""&&(s||r!==0&&r!=="0")},i=()=>{const{dot:r,max:s,content:v}=e;if(!r&&n())return t.content?t.content():Y(s)&&Ft(v)&&+v>+s?`${s}+`:v},a=r=>r.startsWith("-")?r.replace("-",""):`-${r}`,o=k(()=>{const r={background:e.color};if(e.offset){const[s,v]=e.offset,{position:c}=e,[u,d]=c.split("-");t.default?(typeof v=="number"?r[u]=K(u==="top"?v:-v):r[u]=u==="top"?K(v):a(v),typeof s=="number"?r[d]=K(d==="left"?s:-s):r[d]=d==="left"?K(s):a(s)):(r.marginTop=K(v),r.marginLeft=K(s))}return r}),f=()=>{if(n()||e.dot)return h("div",{class:Bt([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[i()])};return()=>{if(t.default){const{tag:r}=e;return h(r,{class:Bt("wrapper")},{default:()=>[t.default(),f()]})}return f()}}});const Qt=Q(oo);let io=2e3;const ao=()=>++io,[lo]=H("config-provider"),ro=Symbol(lo),[co,$t]=H("icon"),so=e=>e==null?void 0:e.includes("/"),uo={dot:Boolean,tag:ne("i"),name:String,size:R,badge:R,color:String,badgeProps:Object,classPrefix:String};var fo=X({name:co,props:uo,setup(e,{slots:t}){const n=De(ro,null),i=k(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||$t());return()=>{const{tag:a,dot:o,name:f,size:r,badge:s,color:v}=e,c=so(f);return h(Qt,me({dot:o,tag:a,class:[i.value,c?"":`${i.value}-${f}`],style:{color:v,fontSize:K(r)},content:s},e.badgeProps),{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t),c&&h("img",{class:$t("image"),src:f},null)]}})}}});const Ce=Q(fo),[vo,Pe]=H("loading"),ho=Array(12).fill(null).map((e,t)=>h("i",{class:Pe("line",String(t+1))},null)),go=h("svg",{class:Pe("circular"),viewBox:"25 25 50 50"},[h("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),mo={size:R,type:ne("circular"),color:String,vertical:Boolean,textSize:R,textColor:String};var bo=X({name:vo,props:mo,setup(e,{slots:t}){const n=k(()=>le({color:e.color},Dn(e.size))),i=()=>{const o=e.type==="spinner"?ho:go;return h("span",{class:Pe("spinner",e.type),style:n.value},[t.icon?t.icon():o])},a=()=>{var o;if(t.default)return h("span",{class:Pe("text"),style:{fontSize:K(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[t.default()])};return()=>{const{type:o,vertical:f}=e;return h("div",{class:Pe([o,{vertical:f}]),"aria-live":"polite","aria-busy":!0},[i(),a()])}}});const _i=Q(bo),yo={show:Boolean,zIndex:R,overlay:j,duration:R,teleport:[String,Object],lockScroll:j,lazyRender:j,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:ve,transitionAppear:Boolean,closeOnClickOverlay:j};function wo(e,t){return e>t?"horizontal":t>e?"vertical":""}function gt(){const e=I(0),t=I(0),n=I(0),i=I(0),a=I(0),o=I(0),f=I(""),r=I(!0),s=()=>f.value==="vertical",v=()=>f.value==="horizontal",c=()=>{n.value=0,i.value=0,a.value=0,o.value=0,f.value="",r.value=!0};return{move:b=>{const g=b.touches[0];n.value=(g.clientX<0?0:g.clientX)-e.value,i.value=g.clientY-t.value,a.value=Math.abs(n.value),o.value=Math.abs(i.value);const w=10;(!f.value||a.value<w&&o.value<w)&&(f.value=wo(a.value,o.value)),r.value&&(a.value>It||o.value>It)&&(r.value=!1)},start:b=>{c(),e.value=b.touches[0].clientX,t.value=b.touches[0].clientY},reset:c,startX:e,startY:t,deltaX:n,deltaY:i,offsetX:a,offsetY:o,direction:f,isVertical:s,isHorizontal:v,isTap:r}}let Oe=0;const At="van-overflow-hidden";function xo(e,t){const n=gt(),i="01",a="10",o=c=>{n.move(c);const u=n.deltaY.value>0?a:i,d=Yt(c.target,e.value),{scrollHeight:b,offsetHeight:g,scrollTop:w}=d;let y="11";w===0?y=g>=b?"00":"01":w+g>=b&&(y="10"),y!=="11"&&n.isVertical()&&!(parseInt(y,2)&parseInt(u,2))&&Se(c,!0)},f=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),Oe||document.body.classList.add(At),Oe++},r=()=>{Oe&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),Oe--,Oe||document.body.classList.remove(At))},s=()=>t()&&f(),v=()=>t()&&r();Ue(s),Ve(v),lt(v),F(t,c=>{c?f():r()})}function en(e){const t=I(!1);return F(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Ot=()=>{var e;const{scopeId:t}=((e=Te())==null?void 0:e.vnode)||{};return t?{[t]:""}:null}
1,[So,Co]=H("overlay"),To={show:Boolean,zIndex:R,duration:R,className:ve,lockScroll:j,lazyRender:j,customStyle:Object,teleport:[String,Object]};var ko=X({name:So,inheritAttrs:!1,props:To,setup(e,{attrs:t,slots:n}){const i=I(),a=en(()=>e.show||!e.lazyRender),o=r=>{e.lockScroll&&Se(r,!0)},f=a(()=>{var r;const s=le(ht(e.zIndex),e.customStyle);return Y(e.duration)&&(s.animationDuration=`${e.duration}s`),ct(h("div",me({ref:i,style:s,class:[Co(),e.className]},t),[(r=n.default)==null?void 0:r.call(n)]),[[st,e.show]])});return be("touchmove",o,{target:i}),()=>{const r=h(Vt,{name:"van-fade",appear:!0},{default:f});return e.teleport?h(rt,{to:e.teleport},{default:()=>[r]}):r}}});const Eo=Q(ko),Io=le({},yo,{round:Boolean,position:ne("center"),closeIcon:ne("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:ne("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Bo,_t]=H("popup");var $o=X({name:Bo,inheritAttrs:!1,props:Io,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:i}){let a,o;const f=I(),r=I(),s=en(()=>e.show||!e.lazyRender),v=k(()=>{const $={zIndex:f.value};if(Y(e.duration)){const p=e.position==="center"?"animationDuration":"transitionDuration";$[p]=`${e.duration}s`}return $}),c=()=>{a||(a=!0,f.value=e.zIndex!==void 0?+e.zIndex:ao(),t("open"))},u=()=>{a&&qt(e.beforeClose,{done(){a=!1,t("close"),t("update:show",!1)}})},d=$=>{t("clickOverlay",$),e.closeOnClickOverlay&&u()},b=()=>{if(e.overlay){const $=le({show:e.show,class:e.overlayClass,zIndex:f.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return h(Eo,me($,Ot(),{onClick:d}),{default:i["overlay-content"]})}},g=$=>{t("clickCloseIcon",$),u()},w=()=>{if(e.closeable)return h(Ce,{role:"button",tabindex:0,name:e.closeIcon,class:[_t("close-icon",e.closeIconPosition),Jn],classPrefix:e.iconPrefix,onClick:g},null)};let y;const z=()=>{y&&clearTimeout(y),y=setTimeout(()=>{t("opened")})},B=()=>t("closed"),ee=$=>t("keydown",$),q=s(()=>{var $;const{destroyOnClose:p,round:E,position:A,safeAreaInsetTop:O,safeAreaInsetBottom:L,show:_}=e;if(!(!_&&p))return ct(h("div",me({ref:r,style:v.value,role:"dialog",tabindex:0,class:[_t({round:E,[A]:A}),{"van-safe-area-top":O,"van-safe-area-bottom":L}],onKeydown:ee},n,Ot()),[($=i.default)==null?void 0:$.call(i),w()]),[[st,_]])}),N=()=>{const{position:$,transition:p,transitionAppear:E}=e,A=$==="center"?"van-fade":`van-popup-slide-${$}`;return h(Vt,{name:p||A,appear:E,onAfterEnter:z,onAfterLeave:B},{default:q})};return F(()=>e.show,$=>{$&&!a&&(c(),n.tabindex===0&&Z(()=>{var p;(p=r.value)==null||p.focus()})),!$&&a&&(a=!1,t("close"))}),de({popupRef:r}),xo(r,()=>e.show&&e.lockScroll),be("popstate",()=>{e.closeOnPopstate&&(u(),o=!1)}),ye(()=>{e.show&&c()}),qe(()=>{o&&(t("update:show",!0),o=!1)}),Ve(()=>{e.show&&e.teleport&&(u(),o=!0)}),Re(Gt,()=>e.show),()=>e.teleport?h(rt,{to:e.teleport},{default:()=>[b(),N()]}):h(gn,null,[b(),N()])}});const Pi=Q($o);function Ao(e,t,n){let i,a=0;const o=e.scrollLeft,f=n===0?1:Math.round(n*1e3/16);let r=o;function s(){pt(i)}function v(){r+=(t-o)/f,e.scrollLeft=r,++a<f&&(i=ze(v))}return v(),s}function Oo(e,t,n,i){let a,o=Ee(e);const f=o<t,r=n===0?1:Math.round(n*1e3/16),s=(t-o)/r;function v(){pt(a)}function c(){o+=s,(f&&o>t||!f&&o<t)&&(o=t),it(e,o),f&&o<t||!f&&o>t?a=ze(c):i&&(a=ze(i))}return c(),v}let _o=0;function mt(){const e=Te(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return`${t}-${++_o}`}function Po(){const e=I([]),t=[];return mn(()=>{e.value=[]}),[e,i=>(t[i]||(t[i]=a=>{e.value[i]=a}),t[i])]}function tn(e,t){if(!ut||!window.IntersectionObserver)return;const n=new IntersectionObserver(o=>{t(o[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&n.observe(e.value)},a=()=>{e.value&&n.unobserve(e.value)};Ve(a),lt(a),Ue(i)}const[Ro,zo]=H("sticky"),Lo={zIndex:R,position:ne("top"),container:Object,offsetTop:se(0),offsetBottom:se(0)};var Do=X({name:Ro,props:Lo,emits:["scroll","change"],setup(e,{emit:t,slots:n}){const i=I(),a=ft(i),o=he({fixed:!1,width:0,height:0,transform:0}),f=I(!1),r=k(()=>Wt(e.position==="top"?e.offsetTop:e.offsetBottom)),s=k(()=>
1{if(f.value)return;const{fixed:d,height:b,width:g}=o;if(d)return{width:`${g}px`,height:`${b}px`}}),v=k(()=>{if(!o.fixed||f.value)return;const d=le(ht(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${r.value}px`});return o.transform&&(d.transform=`translate3d(0, ${o.transform}px, 0)`),d}),c=d=>t("scroll",{scrollTop:d,isFixed:o.fixed}),u=()=>{if(!i.value||Ie(i))return;const{container:d,position:b}=e,g=ue(i),w=Ee(window);if(o.width=g.width,o.height=g.height,b==="top")if(d){const y=ue(d),z=y.bottom-r.value-o.height;o.fixed=r.value>g.top&&y.bottom>0,o.transform=z<0?z:0}else o.fixed=r.value>g.top;else{const{clientHeight:y}=document.documentElement;if(d){const z=ue(d),B=y-z.top-r.value-o.height;o.fixed=y-r.value<g.bottom&&y>z.top,o.transform=B<0?-B:0}else o.fixed=y-r.value<g.bottom}c(w)};return F(()=>o.fixed,d=>t("change",d)),be("scroll",u,{target:a,passive:!0}),tn(i,u),F([Ze,vt],()=>{!i.value||Ie(i)||!o.fixed||(f.value=!0,Z(()=>{const d=ue(i);o.width=d.width,o.height=d.height,f.value=!1}))}),()=>{var d;return h("div",{ref:i,style:s.value},[h("div",{class:zo({fixed:o.fixed&&!f.value}),style:v.value},[(d=n.default)==null?void 0:d.call(n)])])}}});const Vo=Q(Do),[nn,Ye]=H("swipe"),Mo={loop:j,width:R,height:R,vertical:Boolean,autoplay:se(0),duration:se(500),touchable:j,lazyRender:Boolean,initialSwipe:se(0),indicatorColor:String,showIndicators:j,stopPropagation:j},on=Symbol(nn);var Fo=X({name:nn,props:Mo,emits:["change","dragStart","dragEnd"],setup(e,{emit:t,slots:n}){const i=I(),a=I(),o=he({rect:null,width:0,height:0,offset:0,active:0,swiping:!1});let f=!1;const r=gt(),{children:s,linkChildren:v}=dt(on),c=k(()=>s.length),u=k(()=>o[e.vertical?"height":"width"]),d=k(()=>e.vertical?r.deltaY.value:r.deltaX.value),b=k(()=>o.rect?(e.vertical?o.rect.height:o.rect.width)-u.value*c.value:0),g=k(()=>u.value?Math.ceil(Math.abs(b.value)/u.value):c.value),w=k(()=>c.value*u.value),y=k(()=>(o.active+c.value)%c.value),z=k(()=>{const C=e.vertical?"vertical":"horizontal";return r.direction.value===C}),B=k(()=>{const C={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+o.offset.toFixed(2)}px)`};if(u.value){const D=e.vertical?"height":"width",V=e.vertical?"width":"height";C[D]=`${w.value}px`,C[V]=e[V]?`${e[V]}px`:""}return C}),ee=C=>{const{active:D}=o;return C?e.loop?He(D+C,-1,c.value):He(D+C,0,g.value):D},q=(C,D=0)=>{let V=C*u.value;e.loop||(V=Math.min(V,-b.value));let U=D-V;return e.loop||(U=He(U,b.value,0)),U},N=({pace:C=0,offset:D=0,emitChange:V})=>{if(c.value<=1)return;const{active:U}=o,m=ee(C),T=q(m,D);if(e.loop){if(s[0]&&T!==b.value){const l=T<b.value;s[0].setOffset(l?w.value:0)}if(s[c.value-1]&&T!==0){const l=T>0;s[c.value-1].setOffset(l?-w.value:0)}}o.active=m,o.offset=T,V&&m!==U&&t("change",y.value)},$=()=>{o.swiping=!0,o.active<=-1?N({pace:c.value}):o.active>=c.value&&N({pace:-c.value})},p=()=>{$(),r.reset(),_e(()=>{o.swiping=!1,N({pace:-1,emitChange:!0})})},E=()=>{$(),r.reset(),_e(()=>{o.swiping=!1,N({pace:1,emitChange:!0})})};let A;const O=()=>clearTimeout(A),L=()=>{O(),+e.autoplay>0&&c.value>1&&(A=setTimeout(()=>{E(),L()},+e.autoplay))},_=(C=+e.initialSwipe)=>{if(!i.value)return;const D=()=>{var V,U;if(!Ie(i)){const m={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=m,o.width=+((V=e.width)!=null?V:m.width),o.height=+((U=e.height)!=null?U:m.height)}c.value&&(C=Math.min(c.value-1,C),C===-1&&(C=c.value-1)),o.active=C,o.swiping=!0,o.offset=q(C),s.forEac
1h(m=>{m.setOffset(0)}),L()};Ie(i)?Z().then(D):D()},W=()=>_(o.active);let te;const G=C=>{!e.touchable||C.touches.length>1||(r.start(C),f=!1,te=Date.now(),O(),$())},J=C=>{e.touchable&&o.swiping&&(r.move(C),z.value&&(!e.loop&&(o.active===0&&d.value>0||o.active===c.value-1&&d.value<0)||(Se(C,e.stopPropagation),N({offset:d.value}),f||(t("dragStart",{index:y.value}),f=!0))))},ge=()=>{if(!e.touchable||!o.swiping)return;const C=Date.now()-te,D=d.value/C;if((Math.abs(D)>.25||Math.abs(d.value)>u.value/2)&&z.value){const U=e.vertical?r.offsetY.value:r.offsetX.value;let m=0;e.loop?m=U>0?d.value>0?-1:1:0:m=-Math[d.value>0?"ceil":"floor"](d.value/u.value),N({pace:m,emitChange:!0})}else d.value&&N({pace:0});f=!1,o.swiping=!1,t("dragEnd",{index:y.value}),L()},oe=(C,D={})=>{$(),r.reset(),_e(()=>{let V;e.loop&&C===c.value?V=o.active===0?0:C:V=C%c.value,D.immediate?_e(()=>{o.swiping=!1}):o.swiping=!1,N({pace:V-o.active,emitChange:!0})})},$e=(C,D)=>{const V=D===y.value,U=V?{backgroundColor:e.indicatorColor}:void 0;return h("i",{style:U,class:Ye("indicator",{active:V})},null)},Ae=()=>{if(n.indicator)return n.indicator({active:y.value,total:c.value});if(e.showIndicators&&c.value>1)return h("div",{class:Ye("indicators",{vertical:e.vertical})},[Array(c.value).fill("").map($e)])};return de({prev:p,next:E,state:o,resize:W,swipeTo:oe}),v({size:u,props:e,count:c,activeIndicator:y}),F(()=>e.initialSwipe,C=>_(+C)),F(c,()=>_(o.active)),F(()=>e.autoplay,L),F([Ze,vt,()=>e.width,()=>e.height],W),F(_n(),C=>{C==="visible"?L():O()}),ye(_),qe(()=>_(o.active)),Ut(()=>_(o.active)),Ve(O),lt(O),be("touchmove",J,{target:a}),()=>{var C;return h("div",{ref:i,class:Ye()},[h("div",{ref:a,style:B.value,class:Ye("track",{vertical:e.vertical}),onTouchstartPassive:G,onTouchend:ge,onTouchcancel:ge},[(C=n.default)==null?void 0:C.call(n)]),Ae()])}}});const po=Q(Fo),[No,Pt]=H("tabs");var Yo=X({name:No,props:{count:We(Number),inited:Boolean,animated:Boolean,duration:We(R),swipeable:Boolean,lazyRender:Boolean,currentIndex:We(Number)},emits:["change"],setup(e,{emit:t,slots:n}){const i=I(),a=r=>t("change",r),o=()=>{var r;const s=(r=n.default)==null?void 0:r.call(n);return e.animated||e.swipeable?h(po,{ref:i,loop:!1,class:Pt("track"),duration:+e.duration*1e3,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:()=>[s]}):s},f=r=>{const s=i.value;s&&s.state.active!==r&&s.swipeTo(r,{immediate:!e.inited})};return F(()=>e.currentIndex,f),ye(()=>{f(e.currentIndex)}),de({swipeRef:i}),()=>h("div",{class:Pt("content",{animated:e.animated||e.swipeable})},[o()])}});const[an,je]=H("tabs"),jo={type:ne("line"),color:String,border:B
1oolean,sticky:Boolean,shrink:Boolean,active:se(0),duration:se(.3),animated:Boolean,ellipsis:j,swipeable:Boolean,scrollspy:Boolean,offsetTop:se(0),background:String,lazyRender:j,showHeader:j,lineWidth:R,lineHeight:R,beforeChange:Function,swipeThreshold:se(5),titleActiveColor:String,titleInactiveColor:String},ln=Symbol(an);var Wo=X({name:an,props:jo,emits:["change","scroll","rendered","clickTab","update:active"],setup(e,{emit:t,slots:n}){let i,a,o,f,r;const s=I(),v=I(),c=I(),u=I(),d=mt(),b=ft(s),[g,w]=Po(),{children:y,linkChildren:z}=dt(ln),B=he({inited:!1,position:"",lineStyle:{},currentIndex:-1}),ee=k(()=>y.length>+e.swipeThreshold||!e.ellipsis||e.shrink),q=k(()=>({borderColor:e.color,background:e.background})),N=(m,T)=>{var l;return(l=m.name)!=null?l:T},$=k(()=>{const m=y[B.currentIndex];if(m)return N(m,B.currentIndex)}),p=k(()=>Wt(e.offsetTop)),E=k(()=>e.sticky?p.value+i:0),A=m=>{const T=v.value,l=g.value;if(!ee.value||!T||!l||!l[B.currentIndex])return;const x=l[B.currentIndex].$el,S=x.offsetLeft-(T.offsetWidth-x.offsetWidth)/2;f&&f(),f=Ao(T,S,m?0:+e.duration)},O=()=>{const m=B.inited;Z(()=>{const T=g.value;if(!T||!T[B.currentIndex]||e.type!=="line"||Ie(s.value))return;const l=T[B.currentIndex].$el,{lineWidth:x,lineHeight:S}=e,P=l.offsetLeft+l.offsetWidth/2,M={width:K(x),backgroundColor:e.color,transform:`translateX(${P}px) translateX(-50%)`};if(m&&(M.transitionDuration=`${e.duration}s`),Y(S)){const ie=K(S);M.height=ie,M.borderRadius=ie}B.lineStyle=M})},L=m=>{const T=m<B.currentIndex?-1:1;for(;m>=0&&m<y.length;){if(!y[m].disabled)return m;m+=T}},_=(m,T)=>{const l=L(m);if(!Y(l))return;const x=y[l],S=N(x,l),P=B.currentIndex!==null;B.currentIndex!==l&&(B.currentIndex=l,T||A(),O()),S!==e.active&&(t("update:active",S),P&&t("change",S,x.title)),o&&!e.scrollspy&&Le(Math.ceil(Ct(s.value)-p.value))},W=(m,T)=>{const l=y.findIndex((x,S)=>N(x,S)===m);_(l===-1?0:l,T)},te=(m=!1)=>{if(e.scrollspy){const T=y[B.currentIndex].$el;if(T&&b.value){const l=Ct(T,b.value)-E.value;a=!0,r&&r(),r=Oo(b.value,l,m?0:+e.duration,()=>{a=!1})}}},G=(m,T,l)=>{const{title:x,disabled:S}=y[T],P=N(y[T],T);S||(qt(e.beforeChange,{args:[P],done:()=>{_(T),te()}}),Jt(m)),t("clickTab",{name:P,title:x,event:l,disabled:S})},J=m=>{o=m.isFixed,t("scroll",m)},ge=m=>{Z(()=>{W(m),te(!0)})},oe=()=>{for(let m=0;m<y.length;m++){const{top:T}=ue(y[m].$el);if(T>E.value)return m===0?0:m-1}return y.length-1},$e=()=>{if(e.scrollspy&&!a){const m=oe();_(m)}},Ae=()=>{if(e.type==="line"&&y.length)return h("div",{class:je("line"),style:B.lineStyle},null)},C=()=>{var m,T,l;const{type:x,border:S,sticky:P}=e,M=[h("div",{ref:P?void 0:c,class:[je("wrap"),{[Zn]:x==="line"&&S}]},[h("div",{ref:v,role:"tablist",class:je("nav",[x,{shrink:e.shrink,complete:ee.value}]),style:q.value,"aria-orientation":"horizontal"},[(m=n["nav-left"])==null?void 0:m.call(n),y.map(ie=>ie.renderTitle(G)),Ae(),(T=n["nav-right"])==null?void 0:T.call(n)])]),(l=n["nav-bottom"])==null?void 0:l.call(n)];return P?h("div",{ref:c},[M]):M},D=()=>{O(),Z(()=>{var m,T;A(!0),(T=(m=u.value)==null?void 0:m.swipeRef.value)==null||T.resize()})};F(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],O),F(Ze,D),F(()=>e.active,m=>{m!==$.value&&W(m)}),F(()=>y.length,()=>{B.inited&&(W(e.active),O(),Z(()=>{A(!0)}))});const V=()=>{W(e.active,!0),Z(()=>{B.inited=!0,c.value&&(i=ue(c.value).height),A(!0)})},U=(m,T)=>t("rendered",m,T);return de({resize:D,scrollTo:ge}),qe(O),Ut(O),Ue(V),tn(s,O),be("scroll",$e,{target:b,passive:!0}),z({id:d,props:e,setLine:O,scrollable:ee,onRendered:U,currentName:$,setTitleRefs:w,scrollIntoView:A}),()=>h("div",{ref:s,class:je([e.type])},[e.showHeader?e.sticky?h(Vo,{container:s.value,offsetTop:p.value,onScroll:J},{default:()=>[C()]}):C():null,h(Yo,{ref:u,count:y.length,inited:B.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:B.currentIndex,onChange:_},{default:()=>{var m;return[(m=n.default)==null?void 0:m.call(n)]}})])}});const Ho=Symbol(),rn=Symbol(),Ko=()=>De(rn,null),Xo=e=>{const t=Ko();Re(Ho,e),Re(rn,k(()=>(t==null||t.value)&&e.value))},[qo,Rt]=H("tab"),Go=X({name:qo,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:R,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:j},setup(e,{slots:t}){const n=k(()=>{const a={},{type:o,color:f,disabled:r,isActive:s,activeColor:v,inactiveColor:c}=e;
1f&&o==="card"&&(a.borderColor=f,r||(s?a.backgroundColor=f:a.color=f));const d=s?v:c;return d&&(a.color=d),a}),i=()=>{const a=h("span",{class:Rt("text",{ellipsis:!e.scrollable})},[t.title?t.title():e.title]);return e.dot||Y(e.badge)&&e.badge!==""?h(Qt,{dot:e.dot,content:e.badge,showZero:e.showZeroBadge},{default:()=>[a]}):a};return()=>h("div",{id:e.id,role:"tab",class:[Rt([e.type,{grow:e.scrollable&&!e.shrink,shrink:e.shrink,active:e.isActive,disabled:e.disabled}])],style:n.value,tabindex:e.disabled?void 0:e.isActive?0:-1,"aria-selected":e.isActive,"aria-disabled":e.disabled||void 0,"aria-controls":e.controls,"data-allow-mismatch":"attribute"},[i()])}}),[Uo,Zo]=H("swipe-item");var Jo=X({name:Uo,setup(e,{slots:t}){let n;const i=he({offset:0,inited:!1,mounted:!1}),{parent:a,index:o}=Me(on);if(!a)return;const f=k(()=>{const v={},{vertical:c}=a.props;return a.size.value&&(v[c?"height":"width"]=`${a.size.value}px`),i.offset&&(v.transform=`translate${c?"Y":"X"}(${i.offset}px)`),v}),r=k(()=>{const{loop:v,lazyRender:c}=a.props;if(!c||n)return!0;if(!i.mounted)return!1;const u=a.activeIndicator.value,d=a.count.value-1,b=u===0&&v?d:u-1,g=u===d&&v?0:u+1;return n=o.value===u||o.value===b||o.value===g,n}),s=v=>{i.offset=v};return ye(()=>{Z(()=>{i.mounted=!0})}),de({setOffset:s}),()=>{var v;return h("div",{class:Zo(),style:f.value},[r.value?(v=t.default)==null?void 0:v.call(t):null])}}});const Qo=Q(Jo),[ei,et]=H("tab"),ti=le({},Zt,{dot:Boolean,name:R,badge:R,title:String,disabled:Boolean,titleClass:ve,titleStyle:[String,Object],showZeroBadge:j});var ni=X({name:ei,props:ti,setup(e,{slots:t}){const n=mt(),i=I(!1),a=Te(),{parent:o,index:f}=Me(ln);if(!o)return;const r=()=>{var g;return(g=e.name)!=null?g:f.value},s=()=>{i.value=!0,o.props.lazyRender&&Z(()=>{o.onRendered(r(),e.title)})},v=k(()=>{const g=r()===o.currentName.value;return g&&!i.value&&s(),g}),c=I(""),u=I("");bn(()=>{const{titleClass:g,titleStyle:w}=e;c.value=g?yn(g):"",u.value=w&&typeof w!="string"?wn(xn(w)):w});const d=g=>h(Go,me({key:n,id:`${o.id}-${f.value}`,ref:o.setTitleRefs(f.value),style:u.value,class:c.value,isActive:v.value,controls:n,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:w=>g(a.proxy,f.value,w)},ot(o.props,["type","color","shrink"]),ot(e,["dot","badge","title","disabled","showZeroBadge"])),{title:t.title}),b=I(!v.value);return F(v,g=>{g?b.value=!1:_e(()=>{b.value=!0})}),F(()=>e.title,()=>{o.setLine(),o.scrollIntoView()}),Xo(v),de({id:n,renderTitle:d}),()=>{var g;const w=`${o.id}-${f.value}`,{animated:y,swipeable:z,scrollspy:B,lazyRender:ee}=o.props;if(!t.default&&!y)return;const q=B||v.value;if(y||z)return h(Qo,{id:n,role:"tabpanel",class:et("panel-wrapper",{inactive:b.value}),tabindex:v.value?0:-1,"aria-hidden":!v.value,"aria-labelledby":w,"data-allow-mismatch":"attribute"},{default:()=>{var p;return[h("div",{class:et("panel")},[(p=t.default)==null?void 0:p.call(t)])]}});const $=i.value||B||!ee?(g=t.default)==null?void 0:g.call(t):null;return ct(h("div",{id:n,role:"tabpanel",class:et("panel"),tabindex:q?0:-1,"aria-labelledby":w,"data-allow-mismatch":"attribute"},[$]),[[st,q]])}}});const Ri=Q(ni),zi=Q(Wo),[oi,ke]=H("cell"),cn={tag:ne("div"),icon:String,size:String,title:R,value:R,label:R,center:Boolean,isLink:Boolean,border:j,iconPrefix:String,valueClass:ve,labelClass:ve,titleClass:ve,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},ii=le({},cn,Zt);var ai=X({name:oi,props:ii,setup(e,{slots:t}){const n=eo(),i=()=>{if(t.label||Y(e.label))return h("div",{class:[ke("label"),e.labelClass]},[t.label?t.label():e.label])},a=()=>{var s;if(t.title||Y(e.title)){const v=(s=t.title)==null?void 0:s.call(t);return Array.isArray(v)&&v.length===0?void 0:h("div",{class:[ke("title"),e.titleClass],style:e.titleStyle},[v||h("span",null,[e.title]),i()])}},o=()=>{const s=t.value||t.default;if(s||Y(e.value))return h("div",{class:[ke("value"),e.valueClass]},[s?s():h("span",null,[e.value])])},f=()=>{if(t.icon)return t.icon();if(e.icon)return h(Ce,{name:e.icon,class:ke("left-icon"),classPrefix:e.iconPrefix},null)},r=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const s=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return h(Ce,{name:s,class:ke("right-icon")},null)}};return()=>{var s;const{tag:v,size:c,center:u,border:d,isLink:b,required:g}=e,w=(s=e.clickable)!=null?s:b,y={center:u,required:!!g,clickable:w,borderless:!d};return c&&(y[c]=!!c),h(v,{class:ke(y),role:w?"button":void 0,tabindex:w?0:void 0,onClick:n},{default:()=>{var z;return[f(),a(),o(),r(),(z=t.extra)==null?void 0:z.call(t)]}})}}});const li=Q(ai);function sn(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function ri(e,t){if(sn(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function ci(e,t){return new Promise(n=>{const i=t.validator(e,t);if(Mt(i)){i.then(n);return}n(i)})}function zt(e,t){const{message:n}=t;return Xe(n)?n(e,t):n||""}function si({target:e}){e.composing=!0}function Lt({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function ui(e,t){const n=xe();e.style.height="auto";let i=e.scrollHeight;if(Ge(t)){const{maxHeight:a,minHeight:o}=t;a!==void 0&&(i=Math.min(i,a)),o!==void 0&&(i=Math.max(i,o))}i&&(e.style.height=`${i}px`,Le(n))}function di(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function fe(e){return[...e].length}function tt(e,t){return[...e].slice(0,t).join("")}const[fi,ae]=H("field"),vi={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:R,max:Number,min:Number,formatter:Function,clearIcon:ne("clear"),modelValue:se(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:ne("focus"),formatTrigger:ne("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String}
1,hi=le({},cn,vi,{rows:R,type:ne("text"),rules:Array,autosize:[Boolean,Object],labelWidth:R,labelClass:ve,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var gi=X({name:fi,props:hi,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const i=mt(),a=he({status:"unvalidated",focused:!1,validateMessage:""}),o=I(),f=I(),r=I(),{parent:s}=Me(Qn),v=()=>{var l;return String((l=e.modelValue)!=null?l:"")},c=l=>{if(Y(e[l]))return e[l];if(s&&Y(s.props[l]))return s.props[l]},u=k(()=>{const l=c("readonly");if(e.clearable&&!l){const x=v()!=="",S=e.clearTrigger==="always"||e.clearTrigger==="focus"&&a.focused;return x&&S}return!1}),d=k(()=>r.value&&n.input?r.value():e.modelValue),b=k(()=>{var l;const x=c("required");return x==="auto"?(l=e.rules)==null?void 0:l.some(S=>S.required):x}),g=l=>l.reduce((x,S)=>x.then(()=>{if(a.status==="failed")return;let{value:P}=d;if(S.formatter&&(P=S.formatter(P,S)),!ri(P,S)){a.status="failed",a.validateMessage=zt(P,S);return}if(S.validator)return sn(P)&&S.validateEmpty===!1?void 0:ci(P,S).then(M=>{M&&typeof M=="string"?(a.status="failed",a.validateMessage=M):M===!1&&(a.status="failed",a.validateMessage=zt(P,S))})}),Promise.resolve()),w=()=>{a.status="unvalidated",a.validateMessage=""},y=()=>t("endValidate",{status:a.status,message:a.validateMessage}
1),z=(l=e.rules)=>new Promise(x=>{w(),l?(t("startValidate"),g(l).then(()=>{a.status==="failed"?(x({name:e.name,message:a.validateMessage}),y()):(a.status="passed",x(),y())})):x()}),B=l=>{if(s&&e.rules){const{validateTrigger:x}=s.props,S=wt(x).includes(l),P=e.rules.filter(M=>M.trigger?wt(M.trigger).includes(l):S);P.length&&z(P)}},ee=l=>{var x;const{maxlength:S}=e;if(Y(S)&&fe(l)>+S){const P=v();if(P&&fe(P)===+S)return P;const M=(x=o.value)==null?void 0:x.selectionEnd;if(a.focused&&M){const ie=[...l],we=ie.length-+S;return ie.splice(M-we,we),ie.join("")}return tt(l,+S)}return l},q=(l,x="onChange")=>{var S,P;const M=l;l=ee(l);const ie=fe(M)-fe(l);if(e.type==="number"||e.type==="digit"){const ce=e.type==="number";if(l=Yn(l,ce,ce),x==="onBlur"&&l!==""&&(e.min!==void 0||e.max!==void 0)){const re=He(+l,(S=e.min)!=null?S:-1/0,(P=e.max)!=null?P:1/0);+l!==re&&(l=re.toString())}}let we=0;if(e.formatter&&x===e.formatTrigger){const{formatter:ce,maxlength:re}=e;if(l=ce(l),Y(re)&&fe(l)>+re&&(l=tt(l,+re)),o.value&&a.focused){const{selectionEnd:Fe}=o.value,bt=tt(M,Fe);we=fe(ce(bt))-fe(bt)}}if(o.value&&o.value.value!==l)if(a.focused){let{selectionStart:ce,selectionEnd:re}=o.value;if(o.value.value=l,Y(ce)&&Y(re)){const Fe=fe(l);ie?(ce-=ie,re-=ie):we&&(ce+=we,re+=we),o.value.setSelectionRange(Math.min(ce,Fe),Math.min(re,Fe))}}else o.value.value=l;l!==e.modelValue&&t("update:modelValue",l)},N=l=>{l.target.composing||q(l.target.value)},$=()=>{var l;return(l=o.value)==null?void 0:l.blur()},p=()=>{var l;return(l=o.value)==null?void 0:l.focus()},E=()=>{const l=o.value;e.type==="textarea"&&e.autosize&&l&&ui(l,e.autosize)},A=l=>{a.focused=!0,t("focus",l),Z(E),c("readonly")&&$()},O=l=>{a.focused=!1,q(v(),"onBlur"),t("blur",l),!c("readonly")&&(B("onBlur"),Z(E),zn())},L=l=>t("clickInput",l),_=l=>t("clickLeftIcon",l),W=l=>t("clickRightIcon",l),te=l=>{Se(l),t("update:modelValue",""),t("clear",l)},G=k(()=>{if(typeof e.error=="boolean")return e.error;if(s&&s.props.showError&&a.status==="failed")return!0}),J=k(()=>{const l=c("labelWidth"),x=c("labelAlign");if(l&&x!=="top")return{width:K(l)}}),ge=l=>{l.keyCode===13&&(!(s&&s.props.submitOnEnter)&&e.type!=="textarea"&&Se(l),e.type==="search"&&$()),t("keypress",l)},oe=()=>e.id||`${i}-input`,$e=()=>a.status,Ae=()=>{const l=ae("control",[c("inputAlign"),{error:G.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return h("div",{class:l,onClick:L},[n.input()]);const x={id:oe(),ref:o,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:l,disabled:c("disabled"),readonly:c("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${i}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:O,onFocus:A,onInput:N,onClick:L,onChange:Lt,onKeypress:ge,onCompositionend:Lt,onCompositionstart:si};return e.type==="textarea"?h("textarea",me(x,{inputmode:e.inputmode}),null):h("input",me(di(e.type,e.inputmode),x),null)},C=()=>{const l=n["left-icon"];if(e.leftIcon||l)return h("div",{class:ae("left-icon"),onClick:_},[l?l():h(Ce,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},D=()=>{const l=n["right-icon"];if(e.rightIcon||l)return h("div",{class:ae("right-icon"),onClick:W},[l?l():h(Ce,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},V=()=>{if(e.showWordLimit&&e.maxlength){const l=fe(v());return h("div",{class:ae("word-limit")},[h("span",{class:ae("word-num")},[l]),Sn("/"),e.maxlength])}},U=()=>{if(s&&s.props.showErrorMessage===!1)return;const l=e.errorMessage||a.validateMessage;if(l){const x=n["error-message"],S=c("errorMessageAlign");return h("div",{class:ae("error-message",S)},[x?x({message:l}):l])}},m=()=>{const l=c("labelWidth"),x=c("labelAlign"),S=c("colon")?":":"";if(n.label)return[n.label(),S];if(e.label)return h("label",{id:`${i}-label`,for:n.input?void 0:oe(),"data-allow-mismatch":"attribute",onClick:P=>{Se(P),p()},style:x==="top"&&l?{width:K(l)}:void 0},[e.label+S])},T=()=>[h("div",{class:ae("body")},[Ae(),u.value&&h(Ce,{ref:f,name:e.clearIcon,class:ae("clear")},null),D(),n.button&&h("div",{class:ae("button")},[n.button()])]),V(),U()];return de({blur:$,focus:p,validate:z,formValue:d,resetValidation:w,getValidationStatus:$e}),Re(jt,{customValue:r,resetValidation:w,validateWithTrigger:B}),F(()=>e.modelValue,()=>{q(v()),w(),B("onChange"),Z(E)}),ye(()=>{q(v(),e.formatTrigger),Z(E)}),be("touchstart",te,{target:k(()=>{var l;return(l=f.value)==null?void 0:l.$el})}),()=>{const l=c("disabled"),x=c("labelAlign"),S=C(),P=()=>{const M=m();
1return x==="top"?[S,M].filter(Boolean):M||[]};return h(li,{size:e.size,class:ae({error:G.value,disabled:l,[`label-${x}`]:x}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:J.value,valueClass:ae("value"),titleClass:[ae("label",[x,{required:b.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:S&&x!=="top"?()=>S:null,title:P,value:T,extra:n.extra})}}});const Li=Q(gi),[mi]=H("checkbox-group"),bi=Symbol(mi),un={name:ve,disabled:Boolean,iconSize:R,modelValue:ve,checkedColor:String,labelPosition:String,labelDisabled:Boolean};var yi=X({props:le({},un,{bem:We(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:j,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,{emit:t,slots:n}){const i=I(),a=d=>{if(e.parent&&e.bindGroup)return e.parent.props[d]},o=k(()=>{if(e.parent&&e.bindGroup){const d=a("disabled")||e.disabled;if(e.role==="checkbox"){const b=a("modelValue").length,g=a("max"),w=g&&b>=+g;return d||w&&!e.checked}return d}return e.disabled}),f=k(()=>a("direction")),r=k(()=>{const d=e.checkedColor||a("checkedColor");if(d&&(e.checked||e.indeterminate)&&!o.value)return{borderColor:d,backgroundColor:d}}),s=k(()=>e.shape||a("shape")||"round"),v=d=>{const{target:b}=d,g=i.value,w=g===b||(g==null?void 0:g.contains(b));!o.value&&(w||!e.labelDisabled)&&t("toggle"),t("click",d)},c=()=>{var d,b;const{bem:g,checked:w,indeterminate:y}=e,z=e.iconSize||a("iconSize");return h("div",{ref:i,class:g("icon",[s.value,{disabled:o.value,checked:w,indeterminate:y}]),style:s.value!=="dot"?{fontSize:K(z)}:{width:K(z),height:K(z),borderColor:(d=r.value)==null?void 0:d.borderColor}},[n.icon?n.icon({checked:w,disabled:o.value}):s.value!=="dot"?h(Ce,{name:y?"minus":"success",style:r.value},null):h("div",{class:g("icon--dot__icon"),style:{backgroundColor:(b=r.value)==null?void 0:b.backgroundColor}},null)])},u=()=>{const{checked:d}=e;if(n.default)return h("span",{class:e.bem("label",[e.labelPosition,{disabled:o.value}])},[n.default({checked:d,disabled:o.value})])};return()=>{const d=e.labelPosition==="left"?[u(),c()]:[c(),u()];return h("div",{role:e.role,class:e.bem([{disabled:o.value,"label-disabled":e.labelDisabled},f.value]),tabindex:o.value?void 0:0,"aria-checked":e.checked,onClick:v},[d])}}});const[wi,xi]=H("checkbox"),Si=le({},un,{shape:String,bindGroup:j,indeterminate:{type:Boolean,default:null}});var Ci=X({name:wi,props:Si,emits:["change","update:modelValue"],setup(e,{emit:t,slots:n}){const{parent:i}=Me(bi),a=r=>{const{name:s}=e,{max:v,modelValue:c}=i.props,u=c.slice();if(r)!(v&&u.length>=+v)&&!u.includes(s)&&(u.push(s),e.bindGroup&&i.updateValue(u));else{const d=u.indexOf(s);d!==-1&&(u.splice(d,1),e.bindGroup&&i.updateValue(u))}},o=k(()=>i&&e.bindGroup?i.props.modelValue.indexOf(e.name)!==-1:!!e.modelValue),f=(r=!o.value)=>{i&&e.bindGroup?a(r):t("update:modelValue",r),e.indeterminate!==null&&t("change",r)};return F(()=>e.modelValue,r=>{e.indeterminate===null&&t("change",r)}),de({toggle:f,props:e,checked:o}),Pn(()=>e.modelValue),()=>h(yi,me({bem:xi,role:"checkbox",parent:i,checked:o.value,onToggle:f},e),ot(n,["default","icon"]))}});const Di=Q(Ci);function Ti(){return Array(26).fill("").map((n,i)=>String.fromCharCode(65+i))}const[dn,nt]=H("index-bar"),ki={sticky:j,zIndex:R,teleport:[String,Object],highlightColor:String,stickyOffsetTop:kn(0),indexList:{type:Array,default:Ti}},fn=Symbol(dn);var Ei=X({name:dn,props:ki,emits:["select","change"],setup(e,{emit:t,slots:n}){const i=I(),a=I(),o=I(""),f=gt(),r=ft(i),{children:s,linkChildren:v}=dt(fn);let c;v({props:e});const u=k(()=>
1{if(Y(e.zIndex))return{zIndex:+e.zIndex+1}}),d=k(()=>{if(e.highlightColor)return{color:e.highlightColor}}),b=(E,A)=>{for(let O=s.length-1;O>=0;O--){const L=O>0?A[O-1].height:0,_=e.sticky?L+e.stickyOffsetTop:0;if(E+_>=A[O].top)return O}return-1},g=E=>s.find(A=>String(A.index)===E),w=()=>{if(Ie(i))return;const{sticky:E,indexList:A}=e,O=Ee(r.value),L=ue(r),_=s.map(te=>te.getRect(r.value,L));let W=-1;if(c){const te=g(c);if(te){const G=te.getRect(r.value,L);e.sticky&&e.stickyOffsetTop?W=b(G.top-e.stickyOffsetTop,_):W=b(G.top,_)}}else W=b(O,_);o.value=A[W],E&&s.forEach((te,G)=>{const{state:J,$el:ge}=te;if(G===W||G===W-1){const oe=ge.getBoundingClientRect();J.left=oe.left,J.width=oe.width}else J.left=null,J.width=null;if(G===W)J.active=!0,J.top=Math.max(e.stickyOffsetTop,_[G].top-O)+L.top;else if(G===W-1&&c===""){const oe=_[W].top-O;J.active=oe>0,J.top=oe+L.top-_[G].height}else J.active=!1}),c=""},y=()=>{Z(w)};be("scroll",w,{target:r,passive:!0}),ye(y),F(()=>e.indexList,y),F(o,E=>{E&&t("change",E)});const z=()=>e.indexList.map(E=>{const A=E===o.value;return h("span",{class:nt("index",{active:A}),style:A?d.value:void 0,"data-index":E},[E])}),B=E=>{c=String(E);const A=g(c);if(A){const O=Ee(r.value),L=ue(r),{offsetHeight:_}=document.documentElement;if(A.$el.scrollIntoView(),O===_-L.height){w();return}e.sticky&&e.stickyOffsetTop&&(xe()===_-L.height?Le(xe()):Le(xe()-e.stickyOffsetTop)),t("select",A.index)}},ee=E=>{const{index:A}=E.dataset;A&&B(A)},q=E=>{ee(E.target)};let N;const $=E=>{if(f.move(E),f.isVertical()){Se(E);const{clientX:A,clientY:O}=E.touches[0],L=document.elementFromPoint(A,O);if(L){const{index:_}=L.dataset;_&&N!==_&&(N=_,ee(L))}}},p=()=>h("div",{ref:a,class:nt("sidebar"),style:u.value,onClick:q,onTouchstartPassive:f.start},[z()]);return de({scrollTo:B}),be("touchmove",$,{target:a}),()=>{var E;return h("div",{ref:i,class:nt()},[e.teleport?h(rt,{to:e.teleport},{default:()=>[p()]}):p(),(E=n.default)==null?void 0:E.call(n)])}}});const[Ii,Bi]=H("index-anchor"),$i={index:R};var Ai=X({name:Ii,props:$i,setup(e,{slots:t}){const n=he({top:0,left:null,rect:{top:0,height:0},width:null,active:!1}),i=I(),{parent:a}=Me(fn);if(!a)return;const o=()=>n.active&&a.props.sticky,f=k(()=>{const{zIndex:s,highlightColor:v}=a.props;if(o())return le(ht(s),{left:n.left?`${n.left}px`:void 0,width:n.width?`${n.width}px`:void 0,transform:n.top?`translate3d(0, ${n.top}px, 0)`:void 0,color:v})});return de({state:n,getRect:(s,v)=>{const c=ue(i);return n.rect.height=c.height,s===window||s===document.body?n.rect.top=c.top+xe():n.rect.top=c.top+Ee(s)-v.top,n.rect}}),()=>{const s=o();return h("div",{ref:i,style:{height:s?`${n.rect.height}px`:void 0}},[h("div",{style:f.value,class:[Bi({sticky:s}),{[Un]:s}]},[t.default?t.default():e.index])])}}});const Vi=Q(Ai),Mi=Q(Ei);(function(){if(typeof window>"u")return;var e,t="ontouchstart"in window;document.createTouch||(document.createTouch=function(c,u,d,b,g,w,y){return new n(u,d,{pageX:b,pageY:g,screenX:w,screenY:y,clientX:b-window.pageXOffset,clientY:g-window.pageYOffset},0,0)}),document.createTouchList||(document.createTouchList=function(){for(var c=i(),u=0;u<arguments.length;u++)c[u]=arguments[u];return c.length=arguments.length,c}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(c){var u=this;do{if(u.matches(c))return u;u=u.parentElement||u.parentNode}while(u!==null&&u.nodeType===1);return null});var n=function(u,d,b,g,w){g=g||0,w=w||0,this.identifier=d,this.target=u,this.clientX=b.clientX+g,this.clientY=b.clientY+w,this.screenX=b.screenX+g,this.screenY=b.screenY+w,this.pageX=b.pageX+g,this.pageY=b.pageY+w};function i(){var c=[];return c.item=function(u){return this[u]||null},c.identifiedTouch=function(u){return this[u+1]||null},c}var a=!1;function o(c){return function(u){u.type==="mousedown"&&(a=!0),u.type==="mouseup"&&(a=!1),!(u.type==="mousemove"&&!a)&&((u.type==="mousedown"||!e||e&&!e.dispatchEvent)&&(e=u.target),e.closest("[data-no-touch-simulate]")==null&&f(c,u),u.type==="mouseup"&&(e=null))}}function f(c,u){var d=document.createEvent("Event");
1d.initEvent(c,!0,!0),d.altKey=u.altKey,d.ctrlKey=u.ctrlKey,d.metaKey=u.metaKey,d.shiftKey=u.shiftKey,d.touches=s(u),d.targetTouches=s(u),d.changedTouches=r(u),e.dispatchEvent(d)}function r(c){var u=i();return u.push(new n(e,1,c,0,0)),u}function s(c){return c.type==="mouseup"?i():r(c)}function v(){window.addEventListener("mousedown",o("touchstart"),!0),window.addEventListener("mousemove",o("touchmove"),!0),window.addEventListener("mouseup",o("touchend"),!0)}v.multiTouchOffset=75,t||new v})();const Fi=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{Di as C,Li as F,Ce as I,_i as L,Pi as P,Qo as S,Ri as T,po as a,Mi as b,Vi as c,zi as d,Fi as i};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.