@lazycatcloud/lzc-toolkit 0.0.171 → 0.0.173

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/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.ui={},E.Vue))})(this,function(E,e){"use strict";const Ie={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const M=i.clientX,c=i.clientY,f=Math.abs(M-o),g=Math.abs(c-l);f>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},He={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}};function Ve(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function We(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const M=typeof n=="function"?n:n.get,c=typeof n=="function"?void 0:n.set,f=e.customRef((g,r)=>(l=g,s=r,{get(){return a.value&&(o=M(),a.value=!1),l(),o},set(h){c?.(h)}}));return Object.isExtensible(f)&&(f.trigger=i),f}function ge(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function H(t){return typeof t=="function"?t():e.unref(t)}const ze=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Xe=Object.prototype.toString,Ze=t=>Xe.call(t)==="[object Object]",K=()=>{};function Ae(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function Ke(t,n={}){let o,l,s=K;const a=M=>{clearTimeout(M),s(),s=K};return M=>{const c=H(t),f=H(n.maxWait);return o&&a(o),c<=0||f!==void 0&&f<=0?(l&&(a(l),l=null),Promise.resolve(M())):new Promise((g,r)=>{s=n.rejectOnCancel?r:g,f&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(M())},f)),o=setTimeout(()=>{l&&a(l),l=null,g(M())},c)})}}function Ge(...t){let n=0,o,l=!0,s=K,a,i,M,c,f;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:M=!0,leading:c=!0,rejectOnCancel:f=!1}=t[0]:[i,M=!0,c=!0,f=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=K)};return h=>{const m=H(i),u=Date.now()-n,N=()=>a=h();return g(),m<=0?(n=Date.now(),N()):(u>m&&(c||!l)?(n=Date.now(),N()):M&&(a=new Promise((p,d)=>{s=f?d:p,o=setTimeout(()=>{n=Date.now(),l=!0,p(N()),g()},Math.max(0,m-u))})),!c&&!o&&(o=setTimeout(()=>l=!0,m)),l=!1,a)}}function qe(t){return t||e.getCurrentInstance()}function te(t,n=200,o={}){return Ae(Ke(n,o),t)}function me(t,n=200,o=!1,l=!0,s=!1){return Ae(Ge(n,o,l,s),t)}function he(t,n=!0,o){qe()?e.onMounted(t,o):n?t():e.nextTick(t)}function W(t){var n;const o=H(t);return(n=o?.$el)!=null?n:o}const ne=ze?window:void 0,Je=ze?window.document:void 0;function oe(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ne):[n,o,l,s]=t,!n)return K;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},M=(g,r,h,m)=>(g.addEventListener(r,h,m),()=>g.removeEventListener(r,h,m)),c=e.watch(()=>[W(n),H(s)],([g,r])=>{if(i(),!g)return;const h=Ze(r)?{...r}:r;a.push(...o.flatMap(m=>l.map(u=>M(g,m,u,h))))},{immediate:!0,flush:"post"}),f=()=>{c(),i()};return ge(f),f}function et(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function tt(t){const n=et();return e.computed(()=>(n.value,Boolean(t())))}function nt(t){const n=e.getCurrentInstance(),o=We(()=>null,()=>t?W(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Le(t,n,o={}){const{window:l=ne,...s}=o;let a;const i=tt(()=>l&&"ResizeObserver"in l),M=()=>{a&&(a.disconnect(),a=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(r=>W(r)):[W(t)]),f=e.watch(c,r=>{if(M(),i.value&&l){a=new ResizeObserver(n);for(const h of r)h&&a.observe(h,s)}},{immediate:!0,flush:"post"}),g=()=>{M(),f()};return ge(g),{isSupported:i,stop:g}}function ot(t,n={width:0,height:0},o={}){const{window:l=ne,box:s="content-box"}=o,a=e.computed(()=>{var r,h;return(h=(r=W(t))==null?void 0:r.namespaceURI)==null?void 0:h.includes("svg")}),i=e.ref(n.width),M=e.ref(n.height),{stop:c}=Le(t,([r])=>{const h=s==="border-box"?r.borderBoxSize:s==="content-box"?r.contentBoxSize:r.devicePixelContentBoxSize;if(l&&a.value){const m=W(t);if(m){const u=l.getComputedStyle(m);i.value=Number.parseFloat(u.width),M.value=Number.parseFloat(u.height)}}else if(h){const m=Array.isArray(h)?h:[h];i.value=m.reduce((u,{inlineSize:N})=>u+N,0),M.value=m.reduce((u,{blockSize:N})=>u+N,0)}else i.value=r.contentRect.width,M.value=r.contentRect.height},o);he(()=>{const r=W(t);r&&(i.value="offsetWidth"in r?r.offsetWidth:n.width,M.value="offsetHeight"in r?r.offsetHeight:n.height)});const f=e.watch(()=>W(t),r=>{i.value=r?n.width:0,M.value=r?n.height:0});function g(){c(),f()}return{width:i,height:M,stop:g}}const je=1;function lt(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=K,onScroll:a=K,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:M={capture:!1,passive:!0},behavior:c="auto",window:f=ne,onError:g=D=>{console.error(D)}}=n,r=e.ref(0),h=e.ref(0),m=e.computed({get(){return r.value},set(D){N(D,void 0)}}),u=e.computed({get(){return h.value},set(D){N(void 0,D)}});function N(D,z){var O,T,w;if(!f)return;const I=H(t);!I||(w=I instanceof Document?f.document.body:I)==null||w.scrollTo({top:(O=H(z))!=null?O:u.value,left:(T=H(D))!=null?T:m.value,behavior:H(c)})}const p=e.ref(!1),d=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),j=D=>{!p.value||(p.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,s(D))},R=te(j,o+l),U=D=>{var z;if(!f)return;const O=((z=D?.document)==null?void 0:z.documentElement)||D?.documentElement||W(D),{display:T,flexDirection:w}=getComputedStyle(O),I=O.scrollLeft;y.left=I<r.value,y.right=I>r.value;const b=Math.abs(I)<=(i.left||0),k=Math.abs(I)+O.clientWidth>=O.scrollWidth-(i.right||0)-je;T==="flex"&&w==="row-reverse"?(d.left=k,d.right=b):(d.left=b,d.right=k),r.value=I;let C=O.scrollTop;D===f.document&&!C&&(C=f.document.body.scrollTop),y.top=C<h.value,y.bottom=C>h.value;const A=Math.abs(C)<=(i.top||0),v=Math.abs(C)+O.clientHeight>=O.scrollHeight-(i.bottom||0)-je;T==="flex"&&w==="column-reverse"?(d.top=v,d.bottom=A):(d.top=A,d.bottom=v),h.value=C},x=D=>{var z;if(!f)return;const O=(z=D.target.documentElement)!=null?z:D.target;U(O),p.value=!0,R(D),a(D)};return oe(t,"scroll",o?me(x,o,!0,!1):x,M),he(()=>{try{const D=H(t);if(!D)return;U(D)}catch(D){g(D)}}),oe(t,"scrollend",j,M),{x:m,y:u,isScrolling:p,arrivedState:d,directions:y,measure(){const D=H(t);f&&D&&U(D)}}}let st=0;function pe(t,n={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++st}`}=n,M=e.ref(t);let c=()=>{};const f=()=>{if(!l)return;const r=l.getElementById(i)||l.createElement("style");r.isConnected||(r.id=i,n.media&&(r.media=n.media),l.head.appendChild(r)),!o.value&&(c=e.watch(M,h=>{r.textContent=h},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(c(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&he(f),a||ge(g),{id:i,css:M,unload:g,load:f,isLoaded:e.readonly(o)}}function at(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function Ce(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=ot(a),M=e.ref(!0),c=te(U,100);let f;const g=e.shallowRef(t),r=e.ref(0),h=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let u=0;const N=e.ref([]),p=e.computed(()=>{let{sum:A,height:v}={sum:0,height:0};return g.value.map((_,B)=>(typeof l=="number"?v=l:v=l(B),A+=v,{height:v,sum:A}))}),d=e.computed(()=>T(h.value.start)),y=e.computed(()=>typeof l=="number"?p.value.length*l:p.value[p.value.length-1]?.sum||0),j=e.computed(()=>{const{start:A,end:v}=m.value;return N.value.slice(A,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch(g,()=>{(i.width.value||i.height.value)&&x()},{deep:!0}),e.watch([i.width,i.height],([A,v])=>{(A||v)&&x()},{deep:!0}),e.watch(r,()=>{R(),c()});function R(){M.value=!1}function U(){M.value=!0,o?.()}function x(){cancelAnimationFrame(f),f=requestAnimationFrame(D)}function D(){if(a.value){r.value=a.value.scrollTop;let A=z(r.value);u=O(A);let v=Math.max(0,A-s),_=Math.min(A+u+s,g.value.length);h.value={start:v,end:_},N.value=g.value.slice(v,_).map((B,Q)=>({data:B,index:Q+v})),m.value.start=A-v,m.value.end=m.value.start+u}}function z(A){let v=0,_=p.value.length-1,B=-1;for(;v<=_;){const Q=Math.floor((v+_)/2);p.value[Q].sum>=A?(B=Q,_=Q-1):v=Q+1}return Math.max(0,B)}function O(A){let v=0,_=0;for(let B=A;B<p.value.length&&(v++,_+=p.value[B].height,!(_>=i.height.value));B++);return v}function T(A){if(typeof l=="number")return A*l;let v=p.value[A];return v?v.sum-v.height:0}function w(A){return p.value[A]||{sum:0,height:0}}function I(A,v="smooth"){if(a.value){const{reset:_}=at(a.value,"scrollBehavior",v),B=w(A);a.value.scrollTop=B.sum-B.height,D(),_()}if(a.value){const _=w(A);a.value.scrollTop=_.sum-_.height,D()}}const b=e.computed(()=>({style:{width:"100%",height:`${y.value}px`,pointerEvents:M.value?void 0:"none"}})),k=e.computed(()=>({style:{transform:`translate3d(0, ${d.value}px, 0)`,"will-change":"transform"}})),C={overflowY:"auto"};return{list:N,visiableList:j,getItemHeightData:w,getoffsetTopIndex:z,totalHeight:y,clientHeight:i.height,scrollTo:I,scrollTop:r,isScrollEnd:M,containerProps:{ref:a,onScroll:()=>{x()},style:C},wrapperProps:b,innerProps:k}}const le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),G=Symbol(),fe=Symbol();function it(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(ie,s),i=e.inject(ae,n),M=e.inject(de,o),c=e.inject(se,t),f=e.inject(le,t),g=e.inject(re,t),r=e.inject(ce,t),h=e.inject(ue,t),m=e.inject(G,t),u=e.inject(fe,l);return{selected:a,isSelected:i,isAllSelected:M,toggle:c,toggleAll:f,select:g,selectAll:r,unselect:h,unselectAll:m,selectedCount:u}}function rt(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.ref(new Map);e.watch(t,d=>{a.value=d.reduce((y,j)=>(y.set(j[n],j),y),new Map)},{deep:o.deep,immediate:!0});const i=e.computed(()=>{let d=[];if(l.value!=null)l.value&&(d=Array.from(a.value.values()));else if(s.value.size){let y;s.value.forEach(j=>{y=a.value.get(j),y&&d.push(y)})}return d}),M=e.computed(()=>{let d=0;return l.value!=null?l.value&&(d=a.value.size):d=s.value.size,d}),c=e.computed(()=>{let d;if(l.value!=null)d=l.value;else{const y=s.value.size,j=a.value.size;d=y==j}return d});function f(){l.value=!0}function g(){l.value=!1}function r(d){u(()=>{d.forEach(y=>{s.value.add(y[n])})})}function h(d){u(()=>{d.forEach(y=>{s.value.delete(y[n])})})}function m(d){return l.value!=null?l.value:s.value.has(d[n])}function u(d){l.value!=null&&(l.value?s.value=new Set(Array.from(a.value.keys())):s.value=new Set),d(),s.value.size==0?l.value=!1:s.value.size==a.value.size?l.value=!0:l.value=null}function N(d){u(()=>{d.forEach(y=>{m(y)?s.value.delete(y[n]):s.value.add(y[n])})})}function p(){const{value:d}=c;d?g():f()}return e.provide(le,p),e.provide(se,N),e.provide(ae,m),e.provide(ie,i),e.provide(re,r),e.provide(ce,f),e.provide(ue,h),e.provide(de,c),e.provide(G,g),e.provide(G,g),e.provide(fe,M),{selected:i,select:r,selectAll:f,unselect:h,unselectAll:g,toggle:N,toggleAll:p,isSelected:m,isAllSelected:c,selectedCount:M}}function ct(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let u=[];return n.value!=null?n.value&&(u=t.value):o.value.size&&(u=Array.from(o.value.values())),u}),s=e.computed(()=>{let u=0;return n.value!=null?n.value&&(u=t.value.length):u=o.value.size,u}),a=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const N=o.value.size,p=t.value.length;u=N==p}return u});function i(){n.value=!0}function M(){n.value=!1}function c(u){r(()=>{u.forEach(N=>{o.value.add(N)})})}function f(u){r(()=>{u.forEach(N=>{o.value.delete(N)})})}function g(u){return n.value!=null?n.value:o.value.has(u)}function r(u){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),u(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function h(u){r(()=>{u.forEach(N=>{g(N)?o.value.delete(N):o.value.add(N)})})}function m(){const{value:u}=a;u?M():i()}return e.provide(le,m),e.provide(se,h),e.provide(ae,g),e.provide(ie,l),e.provide(re,c),e.provide(ce,i),e.provide(ue,f),e.provide(de,a),e.provide(G,M),e.provide(G,M),e.provide(fe,s),{selected:l,select:c,selectAll:i,unselect:f,unselectAll:M,toggle:h,toggleAll:m,isSelected:g,isAllSelected:a,selectedCount:s}}function ye(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function De({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ye("\u9009\u62E9"),unselect:a=ye("\u53D6\u6D88\u9009\u62E9"),unselectAll:i=ye("\u53D6\u6D88\u5168\u9009")}=l();let M={};const c=e.computed(()=>me(n==="colum"?q:kn,50)),f=new Set,g=e.ref(!0),r=e.ref(),h=e.ref(!1),m=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(L=>p.value=L[0].target.getBoundingClientRect()),p=e.ref({}),d=e.ref({top:0,height:0,sync(L=!1){d.value.top=r.value?.scrollTop||0,L&&(d.value.height=r.value?.scrollHeight||0)}}),y=e.computed(()=>h.value?{left:Math.min(m.value.x,u.value.x)-p.value.left,top:Math.min(m.value.y,u.value.y)-p.value.top,width:Math.abs(m.value.x-u.value.x),height:Math.abs(m.value.y-u.value.y)}:{left:0,top:0,width:0,height:0}),{margin:j=50,startSpeed:R=30,maxSpeed:U=30}=o;let x;const D=j,z=R,O=U,T=L=>L**1;let w=0;function I(L){if(cancelAnimationFrame(x),w=b(L),w=Math.max(Math.min(w,O),-O),w!==0){const S=r.value;if(!S||!h.value)return;const $=d.value.height-p.value.height;let P=d.value.top+Number(w);P=Math.min(Math.max(0,P),$),S.scrollTop=P,C(),x=requestAnimationFrame(()=>I(L))}}function b(L){if(r.value){const $=p.value,P=$.bottom-L;if(P<D)return z*T(1-P/D);const Z=L-$.top;if(Z<D)return-z*T(1-Z/D)}return 0}function k(L){const S={...y.value,right:0,bottom:0};return S.left+=p.value.left,S.top+=p.value.top-d.value.top,S.right=S.width+S.left,S.bottom=S.height+S.top,S.left<L.right&&S.right>L.left&&S.top<L.bottom&&S.bottom>L.top}function C(){d.value.sync();const{top:L,height:S}=d.value;u.value.y=Math.min(S+p.value.top,u.value.y+L-u.value.scrollTop),u.value.scrollTop=L}function A(L,S,$="dynamic-styles"){let P=document.getElementById($);P||(P=document.createElement("style"),P.id=$,document.head.appendChild(P));const Z=P.sheet.cssRules,J=Z.length,Qn=`${L} { ${S} }`;for(let ve=0;ve<J;ve++){const Fe=Z[ve];if(Fe.selectorText===L&&Fe.style.cssText===S)return}P.sheet.insertRule(Qn,J)}function v(L,S){g.value=!0,h.value=!0,d.value.sync(!0);const $=S+d.value.top;m.value.x=L,m.value.y=$,u.value.x=L,u.value.y=$,r.value?.classList.add("disable-scroll-behavior"),f.clear()}function _(L,S,$){!h.value||(g.value&&n==="colum"&&!Y()&&(i(),g.value=!1),$?.(),I(S),u.value.x=Math.max(L,p.value.left),u.value.y=Math.min(S+d.value.top,d.value.height+p.value.top),u.value.scrollTop=d.value.top,c.value())}function B(){h.value=!1,r.value?.classList.remove("disable-scroll-behavior")}function Q(){!h.value||(w||C(),c.value())}function Y(){if(!h.value)return!1;const{width:L,height:S}=y.value;return!(Math.max(L,S)>5)}function F(){Y()&&i()}function q(){Y()||r.value?.querySelectorAll(`[${t}]`).forEach(L=>{M[`${t}`]=L.getAttribute(`${t}`),k(L.getBoundingClientRect())?s([M]):a([M])})}function kn(){const L=[];let S=null,$=0;r.value?.querySelectorAll(`[${t}]`).forEach((P,Z)=>{const J=P.getAttribute(`${t}`);L.push(J),k(P.getBoundingClientRect())?(S===null&&(S=Z),S=Math.min(S,Z),$=Math.max($,Z)):(M[`${t}`]=J,f.has(J)&&a([M]))});for(let P=S;P<$+1;P++)M[`${t}`]=L[P],s([M]),f.add(L[P])}function Bn(L){return!L?.value||(r.value=L.value,!r?.value)?!1:(N.observe(r.value),A(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Bn,dragStart:v,dragMove:_,dragEnd:B,onScroll:Q,isSingleClick:Y,cancelSelectAllBySingleClick:F,selectFn:c,selectRange:y,isPressing:h,containerEl:r,observer:N}}function ut(t){const n=De(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:a,dragMove:i,dragEnd:M,cancelSelectAllBySingleClick:c}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=pe(`.drag-select-box {
1
+ (function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const ze={created(t,n){let l,o;function s(i){i.button==0&&(l=i.clientX,o=i.clientY)}function a(i){if(i.button!=0||l===void 0)return;const d=i.clientX,r=i.clientY,f=Math.abs(d-l),g=Math.abs(r-o);f>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},We={created(t,n){const{fn:l,ms:o=1500}=n.value;let s=null;function a(i){s||(l(i),s=setTimeout(()=>{s=null},o))}t.addEventListener("click",a)}};function Xe(t,n){var l;const o=e.shallowRef();return e.watchEffect(()=>{o.value=t()},{...n,flush:(l=n?.flush)!=null?l:"sync"}),e.readonly(o)}function Ze(t,n){let l,o,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const d=typeof n=="function"?n:n.get,r=typeof n=="function"?void 0:n.set,f=e.customRef((g,u)=>(o=g,s=u,{get(){return a.value&&(l=d(),a.value=!1),o(),l},set(m){r?.(m)}}));return Object.isExtensible(f)&&(f.trigger=i),f}function me(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function H(t){return typeof t=="function"?t():e.unref(t)}const Ae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ke=Object.prototype.toString,Ge=t=>Ke.call(t)==="[object Object]",G=()=>{};function Le(t,n){function l(...o){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(a)})}return l}function qe(t,n={}){let l,o,s=G;const a=d=>{clearTimeout(d),s(),s=G};return d=>{const r=H(t),f=H(n.maxWait);return l&&a(l),r<=0||f!==void 0&&f<=0?(o&&(a(o),o=null),Promise.resolve(d())):new Promise((g,u)=>{s=n.rejectOnCancel?u:g,f&&!o&&(o=setTimeout(()=>{l&&a(l),o=null,g(d())},f)),l=setTimeout(()=>{o&&a(o),o=null,g(d())},r)})}}function Je(...t){let n=0,l,o=!0,s=G,a,i,d,r,f;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:d=!0,leading:r=!0,rejectOnCancel:f=!1}=t[0]:[i,d=!0,r=!0,f=!1]=t;const g=()=>{l&&(clearTimeout(l),l=void 0,s(),s=G)};return m=>{const M=H(i),c=Date.now()-n,D=()=>a=m();return g(),M<=0?(n=Date.now(),D()):(c>M&&(r||!o)?(n=Date.now(),D()):d&&(a=new Promise((p,h)=>{s=f?h:p,l=setTimeout(()=>{n=Date.now(),o=!0,p(D()),g()},Math.max(0,M-c))})),!r&&!l&&(l=setTimeout(()=>o=!0,M)),o=!1,a)}}function et(t){return t||e.getCurrentInstance()}function ne(t,n=200,l={}){return Le(qe(n,l),t)}function he(t,n=200,l=!1,o=!0,s=!1){return Le(Je(n,l,o,s),t)}function pe(t,n=!0,l){et()?e.onMounted(t,l):n?t():e.nextTick(t)}function X(t){var n;const l=H(t);return(n=l?.$el)!=null?n:l}const oe=Ae?window:void 0,tt=Ae?window.document:void 0;function le(...t){let n,l,o,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([l,o,s]=t,n=oe):[n,l,o,s]=t,!n)return G;Array.isArray(l)||(l=[l]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},d=(g,u,m,M)=>(g.addEventListener(u,m,M),()=>g.removeEventListener(u,m,M)),r=e.watch(()=>[X(n),H(s)],([g,u])=>{if(i(),!g)return;const m=Ge(u)?{...u}:u;a.push(...l.flatMap(M=>o.map(c=>d(g,M,c,m))))},{immediate:!0,flush:"post"}),f=()=>{r(),i()};return me(f),f}function nt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ot(t){const n=nt();return e.computed(()=>(n.value,Boolean(t())))}function lt(t){const n=e.getCurrentInstance(),l=Ze(()=>null,()=>t?X(t):n.proxy.$el);return e.onUpdated(l.trigger),e.onMounted(l.trigger),l}function je(t,n,l={}){const{window:o=oe,...s}=l;let a;const i=ot(()=>o&&"ResizeObserver"in o),d=()=>{a&&(a.disconnect(),a=void 0)},r=e.computed(()=>Array.isArray(t)?t.map(u=>X(u)):[X(t)]),f=e.watch(r,u=>{if(d(),i.value&&o){a=new ResizeObserver(n);for(const m of u)m&&a.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return me(g),{isSupported:i,stop:g}}function st(t,n={width:0,height:0},l={}){const{window:o=oe,box:s="content-box"}=l,a=e.computed(()=>{var u,m;return(m=(u=X(t))==null?void 0:u.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),d=e.ref(n.height),{stop:r}=je(t,([u])=>{const m=s==="border-box"?u.borderBoxSize:s==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(o&&a.value){const M=X(t);if(M){const c=o.getComputedStyle(M);i.value=Number.parseFloat(c.width),d.value=Number.parseFloat(c.height)}}else if(m){const M=Array.isArray(m)?m:[m];i.value=M.reduce((c,{inlineSize:D})=>c+D,0),d.value=M.reduce((c,{blockSize:D})=>c+D,0)}else i.value=u.contentRect.width,d.value=u.contentRect.height},l);pe(()=>{const u=X(t);u&&(i.value="offsetWidth"in u?u.offsetWidth:n.width,d.value="offsetHeight"in u?u.offsetHeight:n.height)});const f=e.watch(()=>X(t),u=>{i.value=u?n.width:0,d.value=u?n.height:0});function g(){r(),f()}return{width:i,height:d,stop:g}}const Ce=1;function at(t,n={}){const{throttle:l=0,idle:o=200,onStop:s=G,onScroll:a=G,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:r="auto",window:f=oe,onError:g=T=>{console.error(T)}}=n,u=e.ref(0),m=e.ref(0),M=e.computed({get(){return u.value},set(T){D(T,void 0)}}),c=e.computed({get(){return m.value},set(T){D(void 0,T)}});function D(T,A){var Q,$,y;if(!f)return;const E=H(t);!E||(y=E instanceof Document?f.document.body:E)==null||y.scrollTo({top:(Q=H(A))!=null?Q:c.value,left:($=H(T))!=null?$:M.value,behavior:H(r)})}const p=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),N=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),w=T=>{!p.value||(p.value=!1,N.left=!1,N.right=!1,N.top=!1,N.bottom=!1,s(T))},C=ne(w,l+o),B=T=>{var A;if(!f)return;const Q=((A=T?.document)==null?void 0:A.documentElement)||T?.documentElement||X(T),{display:$,flexDirection:y}=getComputedStyle(Q),E=Q.scrollLeft;N.left=E<u.value,N.right=E>u.value;const j=Math.abs(E)<=(i.left||0),b=Math.abs(E)+Q.clientWidth>=Q.scrollWidth-(i.right||0)-Ce;$==="flex"&&y==="row-reverse"?(h.left=b,h.right=j):(h.left=j,h.right=b),u.value=E;let _=Q.scrollTop;T===f.document&&!_&&(_=f.document.body.scrollTop),N.top=_<m.value,N.bottom=_>m.value;const v=Math.abs(_)<=(i.top||0),z=Math.abs(_)+Q.clientHeight>=Q.scrollHeight-(i.bottom||0)-Ce;$==="flex"&&y==="column-reverse"?(h.top=z,h.bottom=v):(h.top=v,h.bottom=z),m.value=_},S=T=>{var A;if(!f)return;const Q=(A=T.target.documentElement)!=null?A:T.target;B(Q),p.value=!0,C(T),a(T)};return le(t,"scroll",l?he(S,l,!0,!1):S,d),pe(()=>{try{const T=H(t);if(!T)return;B(T)}catch(T){g(T)}}),le(t,"scrollend",w,d),{x:M,y:c,isScrolling:p,arrivedState:h,directions:N,measure(){const T=H(t);f&&T&&B(T)}}}let it=0;function ye(t,n={}){const l=e.ref(!1),{document:o=tt,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++it}`}=n,d=e.ref(t);let r=()=>{};const f=()=>{if(!o)return;const u=o.getElementById(i)||o.createElement("style");u.isConnected||(u.id=i,n.media&&(u.media=n.media),o.head.appendChild(u)),!l.value&&(r=e.watch(d,m=>{u.textContent=m},{immediate:!0}),l.value=!0)},g=()=>{!o||!l.value||(r(),o.head.removeChild(o.getElementById(i)),l.value=!1)};return s&&!a&&pe(f),a||me(g),{id:i,css:d,unload:g,load:f,isLoaded:e.readonly(l)}}function rt(t,n,l){const o=t.style[n];return o!=l&&(t.style[n]=l),{reset(){o!=l&&(t.style[n]=o)}}}function Se(t,n){const{scrollEndHook:l,itemHeight:o,overscan:s=5}=n,a=e.ref(null),i=st(a),d=e.ref(!0),r=ne(B,100);let f;const g=e.shallowRef(t),u=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let c=0;const D=e.ref([]),p=e.computed(()=>{let{sum:v,height:z}={sum:0,height:0};return g.value.map((O,Y)=>(typeof o=="number"?z=o:z=o(Y),v+=z,{height:z,sum:v}))}),h=e.computed(()=>$(m.value.start)),N=e.computed(()=>typeof o=="number"?p.value.length*o:p.value[p.value.length-1]?.sum||0),w=e.computed(()=>{const{start:v,end:z}=M.value;return D.value.slice(v,z)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch(g,()=>{(i.width.value||i.height.value)&&S()},{deep:!0}),e.watch([i.width,i.height],([v,z])=>{(v||z)&&S()},{deep:!0}),e.watch(u,()=>{C(),r()});function C(){d.value=!1}function B(){d.value=!0,l?.()}function S(){cancelAnimationFrame(f),f=requestAnimationFrame(T)}function T(){if(a.value){u.value=a.value.scrollTop;let v=A(u.value);c=Q(v);let z=Math.max(0,v-s),O=Math.min(v+c+s,g.value.length);m.value={start:z,end:O},D.value=g.value.slice(z,O).map((Y,k)=>({data:Y,index:k+z})),M.value.start=v-z,M.value.end=M.value.start+c}}function A(v){let z=0,O=p.value.length-1,Y=-1;for(;z<=O;){const k=Math.floor((z+O)/2);p.value[k].sum>=v?(Y=k,O=k-1):z=k+1}return Math.max(0,Y)}function Q(v){let z=0,O=0;for(let Y=v;Y<p.value.length&&(z++,O+=p.value[Y].height,!(O>=i.height.value));Y++);return z}function $(v){if(typeof o=="number")return v*o;let z=p.value[v];return z?z.sum-z.height:0}function y(v){return p.value[v]||{sum:0,height:0}}function E(v,z="smooth"){if(a.value){const{reset:O}=rt(a.value,"scrollBehavior",z),Y=y(v);a.value.scrollTop=Y.sum-Y.height,T(),O()}if(a.value){const O=y(v);a.value.scrollTop=O.sum-O.height,T()}}const j=e.computed(()=>({style:{width:"100%",height:`${N.value}px`,pointerEvents:d.value?void 0:"none"}})),b=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),_={overflowY:"auto"};return{list:D,visiableList:w,getItemHeightData:y,getoffsetTopIndex:A,totalHeight:N,clientHeight:i.height,scrollTo:E,scrollTop:u,isScrollEnd:d,containerProps:{ref:a,onScroll:()=>{S()},style:_},wrapperProps:j,innerProps:b}}const se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),q=Symbol(),Me=Symbol();function ct(){const{voidFn:t,boolFn:n,boolRef:l,numberRef:o,arrayRef:s}={voidFn:D=>{},boolFn:D=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(re,s),i=e.inject(ie,n),d=e.inject(fe,l),r=e.inject(ae,t),f=e.inject(se,t),g=e.inject(ce,t),u=e.inject(ue,t),m=e.inject(de,t),M=e.inject(q,t),c=e.inject(Me,o);return{selected:a,isSelected:i,isAllSelected:d,toggle:r,toggleAll:f,select:g,selectAll:u,unselect:m,unselectAll:M,selectedCount:c}}function ut(t,n,l={deep:!0}){const o=e.ref(!1),s=e.ref(new Set),a=e.ref(new Map);e.watch(t,h=>{a.value=h.reduce((N,w)=>(N.set(w[n],w),N),new Map)},{deep:l.deep,immediate:!0});const i=e.computed(()=>{let h=[];if(o.value!=null)o.value&&(h=Array.from(a.value.values()));else if(s.value.size){let N;s.value.forEach(w=>{N=a.value.get(w),N&&h.push(N)})}return h}),d=e.computed(()=>{let h=0;return o.value!=null?o.value&&(h=a.value.size):h=s.value.size,h}),r=e.computed(()=>{let h;if(o.value!=null)h=o.value;else{const N=s.value.size,w=a.value.size;h=N==w}return h});function f(){o.value=!0}function g(){o.value=!1}function u(h){c(()=>{h.forEach(N=>{s.value.add(N[n])})})}function m(h){c(()=>{h.forEach(N=>{s.value.delete(N[n])})})}function M(h){return o.value!=null?o.value:s.value.has(h[n])}function c(h){o.value!=null&&(o.value?s.value=new Set(Array.from(a.value.keys())):s.value=new Set),h(),s.value.size==0?o.value=!1:s.value.size==a.value.size?o.value=!0:o.value=null}function D(h){c(()=>{h.forEach(N=>{M(N)?s.value.delete(N[n]):s.value.add(N[n])})})}function p(){const{value:h}=r;h?g():f()}return e.provide(se,p),e.provide(ae,D),e.provide(ie,M),e.provide(re,i),e.provide(ce,u),e.provide(ue,f),e.provide(de,m),e.provide(fe,r),e.provide(q,g),e.provide(q,g),e.provide(Me,d),{selected:i,select:u,selectAll:f,unselect:m,unselectAll:g,toggle:D,toggleAll:p,isSelected:M,isAllSelected:r,selectedCount:d}}function dt(t){const n=e.ref(!1),l=e.ref(new Set),o=e.computed(()=>{let c=[];return n.value!=null?n.value&&(c=t.value):l.value.size&&(c=Array.from(l.value.values())),c}),s=e.computed(()=>{let c=0;return n.value!=null?n.value&&(c=t.value.length):c=l.value.size,c}),a=e.computed(()=>{let c;if(n.value!=null)c=n.value;else{const D=l.value.size,p=t.value.length;c=D==p}return c});function i(){n.value=!0}function d(){n.value=!1}function r(c){u(()=>{c.forEach(D=>{l.value.add(D)})})}function f(c){u(()=>{c.forEach(D=>{l.value.delete(D)})})}function g(c){return n.value!=null?n.value:l.value.has(c)}function u(c){n.value!=null&&(n.value?l.value=new Set(Array.from(t.value)):l.value=new Set),c(),l.value.size==0?n.value=!1:l.value.size==t.value.length?n.value=!0:n.value=null}function m(c){u(()=>{c.forEach(D=>{g(D)?l.value.delete(D):l.value.add(D)})})}function M(){const{value:c}=a;c?d():i()}return e.provide(se,M),e.provide(ae,m),e.provide(ie,g),e.provide(re,o),e.provide(ce,r),e.provide(ue,i),e.provide(de,f),e.provide(fe,a),e.provide(q,d),e.provide(q,d),e.provide(Me,s),{selected:o,select:r,selectAll:i,unselect:f,unselectAll:d,toggle:m,toggleAll:M,isSelected:g,isAllSelected:a,selectedCount:s}}function De(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function Te({attribute:t,selectWay:n="colum",scrollOptions:l={},getSelectMap:o=()=>({})}){const{select:s=De("\u9009\u62E9"),unselect:a=De("\u53D6\u6D88\u9009\u62E9"),unselectAll:i=De("\u53D6\u6D88\u5168\u9009")}=o();let d={};const r=e.computed(()=>he(n==="colum"?F:J,50)),f=new Set,g=e.ref(!0),u=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),c=e.ref({x:0,y:0,scrollTop:0}),D=new ResizeObserver(L=>p.value=L[0].target.getBoundingClientRect()),p=e.ref({}),h=e.ref({top:0,height:0,sync(L=!1){h.value.top=u.value?.scrollTop||0,L&&(h.value.height=u.value?.scrollHeight||0)}}),N=e.computed(()=>m.value?{left:Math.min(M.value.x,c.value.x)-p.value.left,top:Math.min(M.value.y,c.value.y)-p.value.top,width:Math.abs(M.value.x-c.value.x),height:Math.abs(M.value.y-c.value.y)}:{left:0,top:0,width:0,height:0}),{margin:w=50,startSpeed:C=30,maxSpeed:B=30}=l;let S;const T=w,A=C,Q=B,$=L=>L**1;let y=0;function E(L){if(cancelAnimationFrame(S),y=j(L),y=Math.max(Math.min(y,Q),-Q),y!==0){const x=u.value;if(!x||!m.value)return;const P=h.value.height-p.value.height;let R=h.value.top+Number(y);R=Math.min(Math.max(0,R),P),x.scrollTop=R,_(),S=requestAnimationFrame(()=>E(L))}}function j(L){if(u.value){const P=p.value,R=P.bottom-L;if(R<T)return A*$(1-R/T);const K=L-P.top;if(K<T)return-A*$(1-K/T)}return 0}function b(L){const x={...N.value,right:0,bottom:0};return x.left+=p.value.left,x.top+=p.value.top-h.value.top,x.right=x.width+x.left,x.bottom=x.height+x.top,x.left<L.right&&x.right>L.left&&x.top<L.bottom&&x.bottom>L.top}function _(){h.value.sync();const{top:L,height:x}=h.value;c.value.y=Math.min(x+p.value.top,c.value.y+L-c.value.scrollTop),c.value.scrollTop=L}function v(L,x,P="dynamic-styles"){let R=document.getElementById(P);R||(R=document.createElement("style"),R.id=P,document.head.appendChild(R));const K=R.sheet.cssRules,ee=K.length,Yn=`${L} { ${x} }`;for(let Ie=0;Ie<ee;Ie++){const Ve=K[Ie];if(Ve.selectorText===L&&Ve.style.cssText===x)return}R.sheet.insertRule(Yn,ee)}function z(L,x){g.value=!0,m.value=!0,h.value.sync(!0);const P=x+h.value.top;M.value.x=L,M.value.y=P,c.value.x=L,c.value.y=P,u.value?.classList.add("disable-scroll-behavior"),f.clear()}function O(L,x,P){!m.value||(g.value&&n==="colum"&&!U()&&(i(),g.value=!1),P?.(),E(x),c.value.x=Math.max(L,p.value.left),c.value.y=Math.min(x+h.value.top,h.value.height+p.value.top),c.value.scrollTop=h.value.top,r.value())}function Y(){m.value=!1,u.value?.classList.remove("disable-scroll-behavior")}function k(){!m.value||(y||_(),r.value())}function U(){if(!m.value)return!1;const{width:L,height:x}=N.value;return!(Math.max(L,x)>5)}function W(){U()&&i()}function F(){U()||u.value?.querySelectorAll(`[${t}]`).forEach(L=>{d[`${t}`]=L.getAttribute(`${t}`),b(L.getBoundingClientRect())?s([d]):a([d])})}function J(){const L=[];let x=null,P=0;u.value?.querySelectorAll(`[${t}]`).forEach((R,K)=>{const ee=R.getAttribute(`${t}`);L.push(ee),b(R.getBoundingClientRect())?(x===null&&(x=K),x=Math.min(x,K),P=Math.max(P,K)):(d[`${t}`]=ee,f.has(ee)&&a([d]))});for(let R=x;R<P+1;R++)d[`${t}`]=L[R],s([d]),f.add(L[R])}function Qn(L){return!L?.value||(u.value=L.value,!u?.value)?!1:(D.observe(u.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Qn,dragStart:z,dragMove:O,dragEnd:Y,onScroll:k,isSingleClick:U,cancelSelectAllBySingleClick:W,selectFn:r,selectRange:N,isPressing:m,containerEl:u,observer:D}}function ft(t){const n=Te(t),{observer:l,selectRange:o}=n,{onScroll:s,dragStart:a,dragMove:i,dragEnd:d,cancelSelectAllBySingleClick:r}=n,f=e.computed(()=>({left:`${o.value.left}px`,top:`${o.value.top}px`,width:`${o.value.width}px`,height:`${o.value.height}px`})),{load:g}=ye(`.drag-select-box {
2
2
  position: absolute;
3
3
  z-index: 99999;
4
4
  background-color: rgb(191 219 254);
5
5
  opacity: 0.5;
6
- }`,{id:"styletag_lzc_dragselect",manual:!0}),r=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:f.value})}});function h(d){d.button===0&&a(d.x,d.y)}function m(d){i(d.x,d.y)}function u(d){d.composedPath().some(j=>j?.getAttribute?.(t.attribute))||c(),M()}function N(d){try{if(!n.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(r),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",h),window.addEventListener("mousemove",m),window.addEventListener("mouseup",u)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",h),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",u)}return{init:N,unMount:p}}function dt(t,n,o=600){const l=De({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:a,dragStart:i,dragMove:M,dragEnd:c}=l;let f;function g(){clearTimeout(f)}function r(p){g(),p.composedPath().some(y=>!!y?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:y,clientY:j}=p.targetTouches[0];i(y,j),n?.(),M(y,j,()=>p.preventDefault()),p.preventDefault()},o))}function h(p){g();const{clientX:d,clientY:y}=p.targetTouches[0];M(d,y,()=>p.preventDefault())}function m(){g(),c()}function u(p){try{if(!l.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",a),l.containerEl.value?.addEventListener("touchstart",r),l.containerEl.value?.addEventListener("touchmove",h),window.addEventListener("touchcancel",m),window.addEventListener("touchend",m)}catch(d){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",d)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",a),l.containerEl.value?.removeEventListener("touchstart",r),l.containerEl.value?.removeEventListener("touchmove",h),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:u,unMount:N}}const Se=Symbol(),ft=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""},modalClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Se,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.hiddenOverlay?"no-overlay-modal":"lzc-modal",t.modalClass])},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(Ie),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Yn="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},Mt=V(ft,[["__scopeId","data-v-783a5618"]]);function gt(t){function n(o,l){const s=document.createElement("div"),a={setup(){return()=>e.h(Mt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function Te({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${o}ms`;return pe(`@keyframes lzcDelayLoad {
6
+ }`,{id:"styletag_lzc_dragselect",manual:!0}),u=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:f.value})}});function m(h){h.button===0&&a(h.x,h.y)}function M(h){i(h.x,h.y)}function c(h){h.composedPath().some(w=>w?.getAttribute?.(t.attribute))||r(),d()}function D(h){try{if(!n.init(h))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(u),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",m),window.addEventListener("mousemove",M),window.addEventListener("mouseup",c)}catch(N){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",N)}}function p(){l.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",m),window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",c)}return{init:D,unMount:p}}function Mt(t,n,l=600){const o=Te({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=o,{onScroll:a,dragStart:i,dragMove:d,dragEnd:r}=o;let f;function g(){clearTimeout(f)}function u(p){g(),p.composedPath().some(N=>!!N?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:N,clientY:w}=p.targetTouches[0];i(N,w),n?.(),d(N,w,()=>p.preventDefault()),p.preventDefault()},l))}function m(p){g();const{clientX:h,clientY:N}=p.targetTouches[0];d(h,N,()=>p.preventDefault())}function M(){g(),r()}function c(p){try{if(!o.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;o.containerEl.value?.addEventListener("scroll",a),o.containerEl.value?.addEventListener("touchstart",u),o.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",M),window.addEventListener("touchend",M)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function D(){s.disconnect(),o.containerEl.value?.removeEventListener("scroll",a),o.containerEl.value?.removeEventListener("touchstart",u),o.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",M),window.removeEventListener("touchEnd",M)}return{init:c,unMount:D}}const xe=Symbol(),gt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""},modalClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const l=t,o=()=>{l.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(xe,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.hiddenOverlay?"no-overlay-modal":"lzc-modal",t.modalClass])},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(ze),()=>o()]]):e.createCommentVNode("",!0)]),_:3}))}}),Un="",V=(t,n)=>{const l=t.__vccOpts||t;for(const[o,s]of n)l[o]=s;return l},mt=V(gt,[["__scopeId","data-v-783a5618"]]);function ht(t){function n(l,o){const s=document.createElement("div"),a={setup(){return()=>e.h(mt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(l,o)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function Ne({component:t,componentProps:n,delay:l=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${l}ms`;return ye(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,10 +11,10 @@
11
11
  .${s} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${a} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const M=nt();return e.onMounted(()=>{M.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function mt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Te({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const ht=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],pt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),ht,16))}}),Pn="",xe=V(pt,[["__scopeId","data-v-92a1804d"]]),yt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",Dt={class:"loading-wrap"},Tt=["src"],Nt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",Dt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(yt),style:e.normalizeStyle(e.unref(o))},null,12,Tt)]))}}),$n="",wt=V(Nt,[["__scopeId","data-v-3c54972f"]]);async function Ne(t){return new Promise(n=>setTimeout(()=>n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DcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",It=["onClick"],zt=["onClick"],At=["src"],Lt=["src"],jt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let f={};return o.captureEventP&&(f.pointerEvents="none"),f}),a=e.computed(()=>{let f={padding:"12px"};return(o.icon||o.showIcon)&&(f.padding="20px"),o.width&&(f.width=o.width),o.maxWidth&&(f.maxWidth=o.maxWidth),o.overlayContentStyle&&(f={...f,...o.overlayContentStyle}),f}),i=e.computed(()=>{let f={};return o.showClose&&!o.icon&&(f.paddingRight="16px"),f});function M(){o.closeOnClickOverlay&&n("close")}function c(){o.closeOnClick&&n("close")}return(f,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(M,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(r=>n("close"),["stop"])),src:e.unref(Et),class:e.normalizeClass(`${l}-close`)},null,10,At)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(vt),class:e.normalizeClass(`${l}-icon`)},null,10,Lt)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,zt)],10,It),[[e.vShow,t.visible]])],4)]),_:1}))}}),Fn="",Hn="",Ct=V(jt,[["__scopeId","data-v-0947d1e3"]]);class be{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Ct}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await Ne(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function St(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,M=n?.hook!==void 0?n.hook:!0,c={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,c);const f=e.ref(!1);let g=null;const r=new be(c);async function h(...u){if(o&&console.log(`useDelayAsync - handler - processing: ${f.value}`),!f.value){f.value=!0,g=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,f.value),s&&(!f.value||r.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const N=await t(...u);return o&&console.log("useDelayAsync - execute res: ",N),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await m(a),await n?.onSuccess?.(N,[...u]),N}catch(N){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(N),await m(a),await n?.onError?.(N,[...u])}}}async function m(u=!0){o&&console.log("useDelayAsync - close - closeLoading: ",u),f.value=!1,g&&clearTimeout(g),g=null,u&&await r.destory()}return M&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:f,handler:h,close:m}}function xt(t,n){return t>n?"horizontal":n>t?"vertical":""}function bt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),M=()=>i.value==="vertical",c=()=>i.value==="horizontal",f=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(h,m){f(),t.value=h,n.value=m}function r(h,m){o.value=(h<0?0:h)-t.value,l.value=m-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const u=10;(!i.value||s.value<u&&a.value<u)&&(i.value=xt(s.value,a.value))}return{move:r,start:g,reset:f,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:M,isHorizontal:c}}const _e=250,Oe=5,_t=500;function Ot(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,M){const c=Date.now()-o;i<Oe&&M<Oe&&(c<_e?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},_e):t.onTap?.():c>_t&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function kt(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Bt(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:X(a),height:X(i)}}function Qt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function we(t,n,o){return Math.min(Math.max(t,n),o)}function X(t,n=2){return parseFloat(t.toFixed(n))}function Me(t,n,o){return t=X(t),n=X(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function ke(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Yt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Be(t){const{disableZoom:n}=t,o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),M=e.ref({width:0,height:0}),c=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),f=e.ref({}),g=bt(),r=kt(a,{onComplate(){c.preview||p()}}),h=Ot({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Le(a,T=>m(T)),e.watch([s,a],([T,w])=>{u(T,w)},{immediate:!0});async function m(T){const[w]=T;w.contentRect.width==M.value.width&&w.contentRect.height==M.value.height||(await u(s.value),await p(c.level,!0))}async function u(T,w){await z(T,w),T&&O()}async function N(T){if(!c.preview)return;c.preview=!1,T=T??c.level;const w=a.value;if(!w)return;const{scrollTop:I,scrollLeft:b}=w,{width:k,height:C}=i.value,{scaleW:A,scaleH:v}=x(T),{top:_,left:B}=D(A,v),Q=B!=0?B:b*-1,Y=_!=0?_:I*-1;w.scrollTop=0,w.scrollLeft=0;const{value:F}=f;F.width=`${k}px`,F.height=`${C}px`,F.maxHeight="none",F.transitionDuration="0s",F.transform=Me(Q,Y,T),f.value=F,await e.nextTick(),c.offsetX=Q,c.offsetY=Y,await Ne(20)}async function p(T,w){if(!w&&c.preview)return;c.preview=!0,T=T??c.level;const{value:I}=f,{scaleW:b,scaleH:k}=x(T),{left:C,top:A}=D(b,k);T===1&&(I.maxHeight="100%"),I.width=`${b}px`,I.height=`${k}px`,I.transitionDuration="0s",I.transform=Me(C,A,1),f.value=I,await e.nextTick();const v=a.value;if(!v)return;const{offsetX:_,offsetY:B}=c;_<0&&(v.scrollLeft=Math.abs(_)),B<0&&(v.scrollTop=Math.abs(B))}async function d(T,w,I){if(n||(T=X(T),T=we(T,o.value-o.value*.5,l.value+l.value*.5),T==c.level))return;c.preview&&await N(),w||(w={x:g.startX.value,y:g.startY.value});const{value:b}=f,{width:k,height:C}=i.value,{scaleW:A,scaleH:v}=x(T),{top:_,left:B}=D(A,v),Q=T/c.level,Y={left:Math.abs(k*T-M.value.width)*-1,top:Math.abs(C*T-M.value.height)*-1,right:B,bottom:_};let F=B!=0?B:(c.offsetX-w.x)*Q+w.x,q=_!=0?_:(c.offsetY-w.y)*Q+w.y;F=X(we(F,Y.left,Y.right)),q=X(we(q,Y.top,Y.bottom)),b.width=`${k}px`,b.height=`${C}px`,b.transitionDuration=I?Qt(T):"0s",b.transform=Me(F,q,T),c.offsetX=F,c.offsetY=q,c.level=T,f.value=b,await e.nextTick(),I&&r.startTransition(),t.onScale?.(T)}function y(){const T=c.level>1?1:U();d(T,void 0,!0)}function j(T,w){if(!c.preview)return;const I=a.value;!I||I.scrollTo({left:c.offsetX-T,top:c.offsetY-w})}async function R(){c.level>=o.value&&c.level<=l.value?c.zooming&&await p():c.level<o.value?await d(o.value,void 0,!0):c.level>l.value&&await d(l.value,c.lastCenter,!0),c.zooming=!1}function U(){const{width:T,height:w}=i.value,{width:I,height:b}=M.value,k=2.5;let C;return w==b?(C=I/T,C-1<.1&&(C=k)):C=Math.max(k,I/T,b/w),C}function x(T){const{width:w,height:I}=i.value;return{scaleW:X(T*w),scaleH:X(T*I)}}function D(T,w){const{width:I,height:b}=M.value,k=Math.max(0,(b-w)*.5),C=Math.max(0,(I-T)*.5);return{top:k,left:C}}async function z(T,w){if(T=T??s.value,w=w??a.value,!w)return;let I,{clientWidth:b=0,clientHeight:k=0}=T||{};const{clientWidth:C,clientHeight:A}=w;if(T instanceof HTMLImageElement?I={width:T.naturalWidth,height:T.naturalHeight}:T instanceof HTMLVideoElement&&(I={width:T.videoWidth,height:T.videoHeight}),I){const v=Bt(I.width,I.height,C,A);b=v.width,k=v.height}(b===0||k===0)&&(b=i.value.width||C,k=i.value.height||A),i.value={width:Math.min(b,C),height:Math.min(k,A)},M.value={width:C,height:A}}function O(){const T=U();l.value=Math.max(l.value,T*2)}return{touch:g,state:c,style:f,gesture:h,transition:r,imageRef:s,containerRef:a,switchToZoom:N,switchToPreview:p,panTo:j,zoomTo:d,zoomFinished:R,toggleZoom:y}}function Ut(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,M=null;const c={top:0,left:0},f=te(u,150);oe("keyup",p),oe("keydown",N);function g(d){const y=n.containerRef.value;if(!y)return;const{left:j,top:R}=y.getBoundingClientRect();s.startTap(),l.start(d.clientX-j,d.clientY-R),a.transitioning.value||(i=!0,c.left=j,c.top=R,o.offsetX=y.scrollLeft,o.offsetY=y.scrollTop),window.addEventListener("pointermove",r),window.addEventListener("pointerup",h)}function r(d){!i||(l.move(d.clientX,d.clientY),o.level!==1&&n.panTo(l.deltaX.value-c.left,l.deltaY.value-c.top))}function h(d){s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",h)}function m(d){if(!d.ctrlKey)return;o.zooming||(o.zooming=!0,M=="Control"&&window.addEventListener("keyup",u)),d.preventDefault();let y=-d.deltaY;d.deltaMode===1?y*=.05:y*=d.deltaMode?1:.002,M!="Control"&&(y*=10),y=2**y;const j=o.level*y;o.lastCenter={x:d.offsetX,y:d.offsetY},n.zoomTo(j,o.lastCenter),M!="Control"&&f()}function u(){n.zoomFinished(),window.removeEventListener("keyup",u)}function N(d){M=d.key}function p(){M=null}return{core:n,onPointerDown:g,onWheel:m}}function Rt(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a,containerRef:i}=n,M=lt(i);let c,f,g,r;async function h(p){const{touches:d}=p;c=d.length,o.zooming=c===2,s.startTap(),l.start(d[0].clientX,d[0].clientY),N("start",p),o.zooming&&(p.preventDefault(),f=o.level,g=ke(d),await n.switchToZoom(),o.lastCenter=Yt(d))}async function m(p){const{touches:d}=p;if(c=d.length,l.move(d[0].clientX,d[0].clientY),N("move",p),o.zooming&&c==2){p.preventDefault();const y=ke(d),j=f*y/g;n.zoomTo(j,o.lastCenter)}}async function u(p){p.touches.length||(N("end",p),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset())}function N(p,d){M.measure();let{clientX:y,clientY:j}=d.touches.length!=0?d.touches[0]:d.changedTouches[0];const{top:R,left:U,right:x,bottom:D}=M.arrivedState;if(p=="start")r=R||U||x||D;else if(c==2)r=!1;else if(r){if(l.direction.value=="vertical")if(o.level!=1)r=!1;else{const z=l.startY.value<j;r=R&&z||D&&!z}else if(l.direction.value=="horizontal"){const z=l.startX.value<y;r=U&&z||x&&!z}}r&&a.transitioning.value&&(r=!1,d.preventDefault()),p=="end"&&!r&&(y=l.startX.value,j=l.startY.value,r=!0),(p!="move"||r)&&t.onSwipeEdge?.(p,l.direction.value,y,j)}return{core:n,onTouchStart:h,onTouchMove:m,onTouchEnd:u}}function Pt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function Qe(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Ye(t){let n=!1;return()=>{n||(t(),n=!0)}}function $t(t){let n=null;const{isActivated:o}=Qe(),l=Ye(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const Ft=["onClick"],Ht=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),M=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function c(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(f,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(M))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Ft))}}),Vn="",Vt=V(Ht,[["__scopeId","data-v-25d39b90"]]),Ue={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Wt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Vt),{...Ue,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Ue.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Xt=["xlink:href","fill","color"],ee=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Xt)],4))}});function Zt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,M=e.ref(!0),c=te(T,100);let f,g="";const r=e.ref(0),h=e.ref(0),m=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),p=e.computed(()=>!!h.value),d=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),y=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-N.value.clientHeight),j=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),R=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>R.value>a?0:R.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function D(Q){O(),h.value=Q.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function z(){n.value.style.scrollBehavior=g,h.value=0,c()}function O(){M.value=!1}function T(){p.value||(M.value=!0)}function w(Q){if(!p.value)return;let Y=Q.clientY-u.value.top-h.value;Y<0?m.value=0:Y>=y.value?m.value=y.value:m.value=Y,n.value.scrollTo({top:m.value/y.value*j.value})}function I(){p.value||b()}function b(){cancelAnimationFrame(f),f=requestAnimationFrame(k)}function k(){n.value&&(r.value=s.scrollTop?.value??n.value.scrollTop,m.value=r.value/j.value*y.value)}function C(Q){let Y="addEventListener";Q==="add"?Y="addEventListener":Y="removeEventListener",o.value?.[Y]("pointerdown",D,{passive:!0}),window[Y]("pointermove",w,{passive:!0}),window[Y]("pointerup",z,{passive:!0})}const A=new MutationObserver(Q=>{(i=="classList"||Q.map(F=>F.oldValue).join().includes("height"))&&v()});function v(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function _(){O(),setTimeout(()=>{N.value.clientHeight=o.value?.clientHeight??0,T()},150)}function B(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",I,{passive:!0}),C("add");const Q={};i==="classList"?Object.assign(Q,{subtree:!0,childList:!0}):Object.assign(Q,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),A.observe(n.value,Q),setTimeout(()=>{v()},100),_()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(r,()=>{O(),c()}),{isScrollEnd:M,isDragSlider:p,offsetTop:m,scrollTop:r,scrollable:d,sliderPos:x,init:B,modifySliderEventListener:C}}const Kt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Gt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=Zt({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:M,isScrollEnd:c,sliderPos:f}=i,g=e.ref(!1),r=o.autoHide?e.computed(()=>g.value||!c.value):e.computed(()=>M.value),{load:h}=pe(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const d=lt();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function pt({component:t,componentProps:n,delay:l=300}){const{LoadingComp:o}=Ne({component:t,componentProps:n,delay:l}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:o,loading:s,load:a,unload:i}}const yt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Dt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,l)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),yt,16))}}),$n="",_e=V(Dt,[["__scopeId","data-v-92a1804d"]]),Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RF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AAAAAElFTkSuQmCC",Nt={class:"loading-wrap"},wt=["src"],Et=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(o=>({b1cf73a8:t.delay}));const l=e.computed(()=>{const o={};return n.size==="mini"?(o.width="22px",o.height="22px"):n.size==="large"&&(o.width="28px",o.height="28px"),o});return(o,s)=>(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Tt),style:e.normalizeStyle(e.unref(l))},null,12,wt)]))}}),Fn="",vt=V(Et,[["__scopeId","data-v-3c54972f"]]);async function we(t){return new Promise(n=>setTimeout(()=>n(),t))}const It="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuM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wxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",At=["onClick"],Lt=["onClick"],jt=["src"],Ct=["src"],St=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const l=t,o="lzc-loading-toast",s=e.computed(()=>{let f={};return l.captureEventP&&(f.pointerEvents="none"),f}),a=e.computed(()=>{let f={padding:"12px"};return(l.icon||l.showIcon)&&(f.padding="20px"),l.width&&(f.width=l.width),l.maxWidth&&(f.maxWidth=l.maxWidth),l.overlayContentStyle&&(f={...f,...l.overlayContentStyle}),f}),i=e.computed(()=>{let f={};return l.showClose&&!l.icon&&(f.paddingRight="16px"),f});function d(){l.closeOnClickOverlay&&n("close")}function r(){l.closeOnClick&&n("close")}return(f,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:o,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${o} ${t.className}`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${o}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${o}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(u=>n("close"),["stop"])),src:e.unref(It),class:e.normalizeClass(`${o}-close`)},null,10,jt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(zt),class:e.normalizeClass(`${o}-icon`)},null,10,Ct)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${o}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,Lt)],10,At),[[e.vShow,t.visible]])],4)]),_:1}))}}),Hn="",Vn="",xt=V(St,[["__scopeId","data-v-0947d1e3"]]);class be{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=xt}async show(){const n=this.options,o={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,o);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await we(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function _t(t,n){const l=!!n?.debug,o=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,d=n?.hook!==void 0?n.hook:!0,r={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};l&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,r);const f=e.ref(!1);let g=null;const u=new be(r);async function m(...c){if(l&&console.log(`useDelayAsync - handler - processing: ${f.value}`),!f.value){f.value=!0,g=setTimeout(()=>{l&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,f.value),s&&(!f.value||u.show())},i);try{l&&console.time("useDelayAsync - handler-execute-time");const D=await t(...c);return l&&console.log("useDelayAsync - execute res: ",D),l&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(a),await n?.onSuccess?.(D,[...c]),D}catch(D){l&&console.timeEnd("useDelayAsync - handler-execute-time"),o&&console.error(D),await M(a),await n?.onError?.(D,[...c])}}}async function M(c=!0){l&&console.log("useDelayAsync - close - closeLoading: ",c),f.value=!1,g&&clearTimeout(g),g=null,c&&await u.destory()}return d&&e.onBeforeUnmount(()=>{l&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:f,handler:m,close:M}}function bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Ot(){const t=e.ref(0),n=e.ref(0),l=e.ref(0),o=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),d=()=>i.value==="vertical",r=()=>i.value==="horizontal",f=()=>{l.value=0,o.value=0,s.value=0,a.value=0,i.value=""};function g(m,M){f(),t.value=m,n.value=M}function u(m,M){l.value=(m<0?0:m)-t.value,o.value=M-n.value,s.value=Math.abs(l.value),a.value=Math.abs(o.value);const c=10;(!i.value||s.value<c&&a.value<c)&&(i.value=bt(s.value,a.value))}return{move:u,start:g,reset:f,startX:t,startY:n,deltaX:l,deltaY:o,offsetX:s,offsetY:a,direction:i,isVertical:d,isHorizontal:r}}const Oe=250,ke=5,kt=500;function Bt(t){const{isDouble:n=!0}=t;let l,o;function s(){l=Date.now()}async function a(i,d){const r=Date.now()-l;i<ke&&d<ke&&(r<Oe?n?o?(clearTimeout(o),o=null,t.onDoubleTap?.()):o=setTimeout(async()=>{t.onTap?.(),o=null},Oe):t.onTap?.():r>kt&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Qt(t,n){const l=e.ref(!1);function o(){l.value||(l.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),l.value=!1,n.onComplate?.()}return{transitioning:l,startTransition:o}}function Yt(t,n,l,o){var s=Math.min(l/t,o/n),a=t*s,i=n*s;return{width:Z(a),height:Z(i)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ee(t,n,l){return Math.min(Math.max(t,n),l)}function Z(t,n=2){return parseFloat(t.toFixed(n))}function ge(t,n,l){return t=Z(t),n=Z(n),`translate3d(${t}px, ${n}px, 0) scale3d(${l},${l},${l})`}function Be(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Rt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Qe(t){const n=e.ref(!1),l=e.ref(1),o=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),d=e.ref({width:0,height:0}),r=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),f=e.ref({}),g=Ot(),u=Qt(a,{onComplate(){r.preview||p()}}),m=Bt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});je(a,y=>M(y)),e.watch([s,a],([y,E])=>{c(y,E)},{immediate:!0});async function M(y){const[E]=y;E.contentRect.width==d.value.width&&E.contentRect.height==d.value.height||(await c(s.value),await p(r.level,!0))}async function c(y,E){await A(y,E),y&&Q()}async function D(y){if(!r.preview)return;r.preview=!1,y=y??r.level;const E=a.value;if(!E)return;const{scrollTop:j,scrollLeft:b}=E,{width:_,height:v}=i.value,{scaleW:z,scaleH:O}=S(y),{top:Y,left:k}=T(z,O),U=k!=0?k:b*-1,W=Y!=0?Y:j*-1;E.scrollTop=0,E.scrollLeft=0;const{value:F}=f;F.width=`${_}px`,F.height=`${v}px`,F.maxHeight="none",F.transitionDuration="0s",F.transform=ge(U,W,y),f.value=F,await e.nextTick(),r.offsetX=U,r.offsetY=W,await we(20)}async function p(y,E){if(!E&&r.preview)return;r.preview=!0,y=y??r.level;const{value:j}=f,{scaleW:b,scaleH:_}=S(y),{left:v,top:z}=T(b,_);y===1&&(j.maxHeight="100%"),j.width=`${b}px`,j.height=`${_}px`,j.transitionDuration="0s",j.transform=ge(v,z,1),f.value=j,await e.nextTick();const O=a.value;if(!O)return;const{offsetX:Y,offsetY:k}=r;Y<0&&(O.scrollLeft=Math.abs(Y)),k<0&&(O.scrollTop=Math.abs(k))}async function h(y,E,j){if(n.value||(y=Z(y),y=Ee(y,l.value-l.value*.5,o.value+o.value*.5),y==r.level))return;r.preview&&await D(),E||(E={x:g.startX.value,y:g.startY.value});const{value:b}=f,{width:_,height:v}=i.value,{scaleW:z,scaleH:O}=S(y),{top:Y,left:k}=T(z,O),U=y/r.level,W={left:Math.abs(_*y-d.value.width)*-1,top:Math.abs(v*y-d.value.height)*-1,right:k,bottom:Y};let F=k!=0?k:(r.offsetX-E.x)*U+E.x,J=Y!=0?Y:(r.offsetY-E.y)*U+E.y;F=Z(Ee(F,W.left,W.right)),J=Z(Ee(J,W.top,W.bottom)),b.width=`${_}px`,b.height=`${v}px`,b.transitionDuration=j?Ut(y):"0s",b.transform=ge(F,J,y),r.offsetX=F,r.offsetY=J,r.level=y,f.value=b,await e.nextTick(),j&&u.startTransition(),t.onScale?.(y)}function N(){const y=r.level>1?1:B();h(y,void 0,!0)}function w(y,E){if(!r.preview)return;const j=a.value;!j||j.scrollTo({left:r.offsetX-y,top:r.offsetY-E})}async function C(){r.level>=l.value&&r.level<=o.value?r.zooming&&await p():r.level<l.value?await h(l.value,void 0,!0):r.level>o.value&&await h(o.value,r.lastCenter,!0),r.zooming=!1}function B(){const{width:y,height:E}=i.value,{width:j,height:b}=d.value,_=2.5;let v;return E==b?(v=j/y,v-1<.1&&(v=_)):v=Math.max(_,j/y,b/E),v}function S(y){const{width:E,height:j}=i.value;return{scaleW:Z(y*E),scaleH:Z(y*j)}}function T(y,E){const{width:j,height:b}=d.value,_=Math.max(0,(b-E)*.5),v=Math.max(0,(j-y)*.5);return{top:_,left:v}}async function A(y,E){if(y=y??s.value,E=E??a.value,!E)return;let j,{clientWidth:b=0,clientHeight:_=0}=y||{};const{clientWidth:v,clientHeight:z}=E;if(y instanceof HTMLImageElement?j={width:y.naturalWidth,height:y.naturalHeight}:y instanceof HTMLVideoElement&&(j={width:y.videoWidth,height:y.videoHeight}),j){const O=Yt(j.width,j.height,v,z);b=O.width,_=O.height}(b===0||_===0)&&(b=i.value.width||v,_=i.value.height||z),i.value={width:Math.min(b,v),height:Math.min(_,z)},d.value={width:v,height:z}}function Q(){const y=B();o.value=Math.max(o.value,y*2)}function $(y){n.value=y}return{touch:g,state:r,style:f,gesture:m,transition:u,imageRef:s,containerRef:a,switchToZoom:D,switchToPreview:p,panTo:w,zoomTo:h,zoomFinished:C,toggleZoom:N,setDisableZoom:$}}function Ye(t,n){const{state:l,touch:o,transition:s,containerRef:a}=t,i=at(a);let d,r;function f(m){d=m}function g(m){return d==m}function u(m,M,c,D){i.measure();const{top:p,left:h,right:N,bottom:w}=i.arrivedState;if(m=="start")r=p||h||N||w;else if(d==2)r=!1;else if(r){if(o.direction.value=="vertical")if(l.level!=1)r=!1;else{const C=o.startY.value<c;r=p&&C||w&&!C}else if(o.direction.value=="horizontal"){const C=o.startX.value<M;r=h&&C||N&&!C}}r&&s.transitioning.value&&(r=!1,D?.preventDefault()),m=="end"&&!r&&(M=o.startX.value,c=o.startY.value,r=!0),(m!="move"||r)&&n?.(m,o.direction.value,M,c,D)}return{onSwipeEdge:u,setFingerNum:f,isEqualFingerNum:g}}function Pt(t){const n=Qe({onDoubleTap(){n.toggleZoom()},...t}),{state:l,touch:o,gesture:s,transition:a}=n;let i=!1,d=null;const r={top:0,left:0},f=ne(p,150),{onSwipeEdge:g}=Ye(n,t.onSwipeEdge),u=e.ref({top:0,left:0});le("keyup",N),le("keydown",h);function m(w){const C=w.target,{left:B,top:S}=C.getBoundingClientRect();u.value.left=B,u.value.top=S,s.startTap();let T=w.clientX-B,A=w.clientY-S;o.start(T,A),g("start",T,A,w),a.transitioning.value||(i=!0,r.left=B,r.top=S,l.offsetX=C.scrollLeft,l.offsetY=C.scrollTop),window.addEventListener("pointermove",M),window.addEventListener("pointerup",c)}function M(w){if(!i)return;let C=w.clientX,B=w.clientY;o.move(C,B),g("move",C-u.value.left,B-u.value.top,w),l.level!==1&&n.panTo(o.deltaX.value-r.left,o.deltaY.value-r.top)}function c(w){g("end",o.offsetX.value,o.offsetY.value,w),s.checkTap(o.offsetX.value,o.offsetY.value),o.reset(),i=!1,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",c)}function D(w){if(!w.ctrlKey)return;l.zooming||(l.zooming=!0,d=="Control"&&window.addEventListener("keyup",p)),w.preventDefault();let C=-w.deltaY;w.deltaMode===1?C*=.05:C*=w.deltaMode?1:.002,d!="Control"&&(C*=10),C=2**C;const B=l.level*C;l.lastCenter={x:w.offsetX,y:w.offsetY},n.zoomTo(B,l.lastCenter),d!="Control"&&f()}function p(){n.zoomFinished(),window.removeEventListener("keyup",p)}function h(w){d=w.key}function N(){d=null}return{core:n,onPointerDown:m,onWheel:D}}function $t(t){const n=Qe({onDoubleTap(){n.toggleZoom()},...t}),{state:l,touch:o,gesture:s}=n,{setFingerNum:a,onSwipeEdge:i,isEqualFingerNum:d}=Ye(n,t.onSwipeEdge);let r,f;async function g(M){const{touches:c}=M;a(c.length),l.zooming=d(2),s.startTap();const{clientX:D,clientY:p}=c[0];o.start(D,p),i("start",D,p,M),l.zooming&&(M.preventDefault(),r=l.level,f=Be(c),await n.switchToZoom(),l.lastCenter=Rt(c))}async function u(M){const{touches:c}=M;a(c.length);const{clientX:D,clientY:p}=c[0];if(o.move(D,p),i("move",D,p,M),l.zooming&&d(2)){M.preventDefault();const h=Be(c),N=r*h/f;n.zoomTo(N,l.lastCenter)}}async function m(M){if(M.touches.length)return;const{clientX:c,clientY:D}=M.changedTouches[0];i("end",c,D,M),s.checkTap(o.offsetX.value,o.offsetY.value),n.zoomFinished(),o.reset()}return{core:n,onTouchStart:g,onTouchMove:u,onTouchEnd:m}}function Ft(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function l(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function o(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:l,dragEnd:o}}function Ue(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Re(t){let n=!1;return()=>{n||(t(),n=!0)}}function Ht(t){let n=null;const{isActivated:l}=Ue(),o=Re(()=>n=window.onBackPress);function s(){o(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!l.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const Vt=["onClick"],Wt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,l=e.ref(),o=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${o.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function r(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{o.value=l.value.offsetWidth/2,s.value=l.value.offsetHeight/2}),(f,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(r,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:l,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Vt))}}),Wn="",Xt=V(Wt,[["__scopeId","data-v-25d39b90"]]),Pe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Zt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Xt),{...Pe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const l=this.options.duration||Pe.duration;setTimeout(()=>{this.dismiss()},l)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Kt=["xlink:href","fill","color"],te=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,l=e.computed(()=>`#${n.prefix}-${n.name}`),o=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(o),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(l),fill:t.color,color:t.color},null,8,Kt)],4))}});function Gt(t){const{containerEl:n,sliderEl:l,autoHeight:o,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,d=e.ref(!0),r=ne($,100);let f,g="";const u=e.ref(0),m=e.ref(0),M=e.ref(0),c=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),D=e.ref({clientHeight:0}),p=e.computed(()=>!!m.value),h=e.computed(()=>c.value.scrollHeight>c.value.clientHeight),N=e.computed(()=>o?c.value.clientHeight-B.value:c.value.clientHeight-D.value.clientHeight),w=e.computed(()=>c.value.scrollHeight-c.value.clientHeight),C=e.computed(()=>Math.max(c.value.clientHeight/c.value.scrollHeight,.05)),B=e.computed(()=>C.value>a?0:C.value*c.value.clientHeight),S=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:o?`${B.value}px`:void 0}));function T(k){Q(),m.value=k.clientY-l.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=g,m.value=0,r()}function Q(){d.value=!1}function $(){p.value||(d.value=!0)}function y(k){if(!p.value)return;let U=k.clientY-c.value.top-m.value;U<0?M.value=0:U>=N.value?M.value=N.value:M.value=U,n.value.scrollTo({top:M.value/N.value*w.value})}function E(){p.value||j()}function j(){cancelAnimationFrame(f),f=requestAnimationFrame(b)}function b(){n.value&&(u.value=s.scrollTop?.value??n.value.scrollTop,M.value=u.value/w.value*N.value)}function _(k){let U="addEventListener";k==="add"?U="addEventListener":U="removeEventListener",l.value?.[U]("pointerdown",T,{passive:!0}),window[U]("pointermove",y,{passive:!0}),window[U]("pointerup",A,{passive:!0})}const v=new MutationObserver(k=>{(i=="classList"||k.map(W=>W.oldValue).join().includes("height"))&&z()});function z(){c.value.top=n.value?.getBoundingClientRect().top??0,c.value.scrollHeight=n.value?.scrollHeight??0,c.value.clientHeight=n.value?.clientHeight??0}function O(){Q(),setTimeout(()=>{D.value.clientHeight=l.value?.clientHeight??0,$()},150)}function Y(){if(n.value&&l.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",E,{passive:!0}),_("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),v.observe(n.value,k),setTimeout(()=>{z()},100),O()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:l})}return e.watch(u,()=>{Q(),r()}),{isScrollEnd:d,isDragSlider:p,offsetTop:M,scrollTop:u,scrollable:h,sliderPos:S,init:Y,modifySliderEventListener:_}}const qt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Jt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const l=t,o=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>l.containerEl),i=Gt({containerEl:a,sliderEl:s,autoHeight:o?l.autoHeight:!0,performance:l.performance,observeMethod:l.observeMethod}),{scrollable:d,isScrollEnd:r,sliderPos:f}=i,g=e.ref(!1),u=l.autoHide?e.computed(()=>g.value||!r.value):e.computed(()=>d.value),{load:m}=ye(`.hide-scrollbar {
15
15
  scrollbar-width: none;
16
16
  -ms-overflow-style: none;
17
17
  }
18
18
  .hide-scrollbar::-webkit-scrollbar {
19
19
  display: none;
20
- }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{h(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function m(){g.value=!0}function u(){g.value=!1}return n({uScrollBarReturn:i}),(N,p)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:m,onMouseleave:u,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(N.$slots,"default",{},()=>[Kt],!0)],36),[[e.vShow,e.unref(r)]])]),_:3}))}}),Xn="",qt=V(Gt,[["__scopeId","data-v-405c22cf"]]),Jt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),en={class:"pull-refresh"},tn={key:0,class:"pull-arrow-circle"},nn={key:0,class:"box-load"},on={class:"left-load"},ln={class:"right-load"},sn=Jt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),an={class:"pull-arrow"},rn={key:1},cn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),M=e.ref(.3),c=e.ref(!1),f=e.ref(0),g=e.ref(0),r=e.ref(0),h=e.ref(0),m=e.ref(0),u=e.ref(),N=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${h.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),d=e.computed(()=>({borderColor:l,transition:h.value,transform:`rotate(${100+i.value}deg)`,opacity:M.value}));e.watch(m,D=>{D===0&&(s.value=-50,M.value=.3)}),e.watch(g,D=>{if(m.value===2)return;const z=Math.pow(D,o);z===0&&(s.value=-50),z<=50&&z>0&&(s.value=z-45,i.value=Math.pow(z,1.5),z>15?c.value=!0:c.value=!1),z>50&&(s.value=5,M.value=1,m.value)});const y=e.ref(0),j=D=>{y.value=D.touches[0].pageY},R=D=>{const z=D.touches[0].pageY-y.value;y.value=D.touches[0].pageY,!n.refreshOff&&(!n?.refresh||m.value!==2&&N.value===0&&(f.value===0&&(f.value=D.touches[0].pageY),r.value=0,x.value.style.transition=`${r.value}ms`,h.value=0,g.value=D.touches[0].pageY-f.value,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,z>0&&D.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||m.value===2)return;f.value=0,r.value=300;const D=Math.pow(g.value,o);x.value.style.transition=`${r.value}ms`,D>50?(m.value=2,g.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,h.value=300,n?.refresh&&n?.refresh().then(()=>{u.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{u.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{m.value=0,g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},h.value)},600)})):(g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",j),x.value?.addEventListener("touchmove",R),x.value?.addEventListener("touchend",U))}),(D,z)=>(e.openBlock(),e.createElementBlock("div",en,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[u.value?(e.openBlock(),e.createElementBlock("div",rn,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",tn,[m.value==2?(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("div",on,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",ln,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),sn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("div",an,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:c.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Zn="",Re=V(cn,[["__scopeId","data-v-df5da876"]]),un=["data-key"],dn={inheritAttrs:!1},fn=e.defineComponent({...dn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Ce(e.toRef(l,"data"),{itemHeight:m=>l.itemHeight(l.data[m]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:M,innerProps:c,getItemHeightData:f,scrollTop:g}=s;n({vListReturn:s});const r="virtualListWrapper"+new Date().getTime();function h(m,u){return l.getItemKey?l.getItemKey(m,u):`${u}`}return(m,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Re,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+r},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:r},[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...N)=>e.unref(i).onScroll&&e.unref(i).onScroll(...N)),ref:e.unref(i).ref,class:"virtualList"},m.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(M))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:N,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:h(N,p),"data-key":h(N,p),style:e.normalizeStyle({height:`${e.unref(f)(p).height}px`,display:"flex"})},[e.renderSlot(m.$slots,"default",{data:N,index:p},void 0,!0)],12,un))),128))],16)],16)],16)])],64))}}),Kn="",Mn=V(fn,[["__scopeId","data-v-dfe60586"]]),Ee=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),gn={style:{position:"absolute"}},mn=Ee(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),hn=["width","height"],pn=[Ee(()=>e.createElementVNode("title",null,"logo",-1)),Ee(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],yn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",gn,[mn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},pn,8,hn))]))}}),Jn="",Dn=V(yn,[["__scopeId","data-v-33519afd"]]),Tn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],Nn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function Pe(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const c=n?.value;return!c||c.startsWith("video/")?!0:c.startsWith("image/")?l.value?Tn.includes(c):Nn.includes(c):!1});t&&e.watch(t,c=>{o.value=c,s.value=!1});function M(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:M}}function $e(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const wn=t=>(e.pushScopeId("data-v-c6edbcb9"),t=t(),e.popScopeId(),t),En=["title"],vn=wn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),In=["src"],zn=["src"],An=["title"],Ln={inheritAttrs:!1},jn=e.defineComponent({...Ln,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),M=e.ref(!1),{src:c,mime:f}=e.toRefs(o),{imgSrc:g,isSupport:r,hasError:h,handleError:m}=Pe(c,f),{vImageCancel:u}=$e(),{LoadingComp:N}=Te({component:xe,delay:300}),p=Ve(()=>M.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!M.value);e.watch(r,D=>{D||n("noSupport")},{immediate:!0});function d(){i.value=!0}function y(){i.value&&(M.value=!0)}async function j(){d(),p.value?(l.value?.addEventListener("animationend",R),l.value?.classList.add("showing"),await Ne(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function R(){l.value?.removeEventListener("animationend",R),l.value?.classList.remove("showing"),l.value&&n("load",l.value),y()}async function U(D){D?j():s.value&&n("load",s.value),a.value=!0}function x(D){D?m():d(),a.value=!0}return(D,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(r)&&!a.value?(e.openBlock(),e.createBlock(e.unref(N),{key:0})):e.createCommentVNode("",!0),e.unref(r)?e.unref(h)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,An)):e.renderSlot(D.$slots,"default",{key:2,src:e.unref(g),onLoad:U,onError:x},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},D.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:z[0]||(z[0]=O=>U()),onError:z[1]||(z[1]=O=>x()),src:t.thumbnail}),null,16,In)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},D.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:z[2]||(z[2]=O=>U(!0)),onError:z[3]||(z[3]=O=>x(!0)),src:e.unref(g)}),null,16,zn)),[[e.unref(u)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),vn],16,En))],64))}}),eo="",Cn=V(jn,[["__scopeId","data-v-c6edbcb9"]]),Sn=["title"],xn=["src"],bn=["title"],_n=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:a,hasError:i,isSupport:M,handleError:c}=Pe(l,s),{vImageCancel:f}=$e();return(g,r)=>e.unref(M)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,bn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:r[0]||(r[0]=h=>o.value=!0),onError:r[1]||(r[1]=(...h)=>e.unref(c)&&e.unref(c)(...h)),src:e.unref(a)},null,40,xn)),[[e.unref(f)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Sn))}}),to="",On=V(_n,[["__scopeId","data-v-5a7af152"]]);E.DefaultLoading=xe,E.Image=Cn,E.Loading=Dn,E.LoadingToast=be,E.PageLoading=wt,E.PullRefresh=Re,E.ScrollBar=qt,E.SvgIcon=ee,E.Thumbnail=On,E.ToastCreator=Wt,E.VirtualList=Mn,E.allSelectedKey=ie,E.closeDialogKey=Se,E.dialogController=gt,E.getTransform=Me,E.isAllSelectedKey=de,E.isSelectedKey=ae,E.once=Ye,E.selectAllKey=ce,E.selectKey=re,E.selectedCountKey=fe,E.toggleAllKey=le,E.toggleKey=se,E.unselectAllKey=G,E.unselectKey=ue,E.useBackPress=$t,E.useDelayAsync=St,E.useDelayLoad=mt,E.useDelayLoadComp=Te,E.useDownDrag=Pt,E.useDragSelect=De,E.useDragSelectByMobile=dt,E.useDragSelectByPc=ut,E.useRouterActivated=Qe,E.useScaleImageByMobile=Rt,E.useScaleImageByPc=Ut,E.useSelectable=rt,E.useSelectableByBase=ct,E.useSelectableInjectors=it,E.useVirtualList=Ce,E.vDebounceClick=He,E.vSingleClick=Ie,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function M(){g.value=!0}function c(){g.value=!1}return n({uScrollBarReturn:i}),(D,p)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:M,onMouseleave:c,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(D.$slots,"default",{},()=>[qt],!0)],36),[[e.vShow,e.unref(u)]])]),_:3}))}}),Zn="",en=V(Jt,[["__scopeId","data-v-405c22cf"]]),tn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),nn={class:"pull-refresh"},on={key:0,class:"pull-arrow-circle"},ln={key:0,class:"box-load"},sn={class:"left-load"},an={class:"right-load"},rn=tn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),cn={class:"pull-arrow"},un={key:1},dn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,l=.7,o="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),d=e.ref(.3),r=e.ref(!1),f=e.ref(0),g=e.ref(0),u=e.ref(0),m=e.ref(0),M=e.ref(0),c=e.ref(),D=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),h=e.computed(()=>({borderColor:o,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:d.value}));e.watch(M,T=>{T===0&&(s.value=-50,d.value=.3)}),e.watch(g,T=>{if(M.value===2)return;const A=Math.pow(T,l);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,i.value=Math.pow(A,1.5),A>15?r.value=!0:r.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const N=e.ref(0),w=T=>{N.value=T.touches[0].pageY},C=T=>{const A=T.touches[0].pageY-N.value;N.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&D.value===0&&(f.value===0&&(f.value=T.touches[0].pageY),u.value=0,S.value.style.transition=`${u.value}ms`,m.value=0,g.value=T.touches[0].pageY-f.value,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,l)}px, 0)`,A>0&&T.preventDefault()))},B=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;f.value=0,u.value=300;const T=Math.pow(g.value,l);S.value.style.transition=`${u.value}ms`,T>50?(M.value=2,g.value=Math.pow(50,1/l),S.value.style.transform=`translate3d(0, ${Math.pow(g.value,l)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{c.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{c.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,g.value=0,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,l)}px, 0)`,setTimeout(()=>{c.value=void 0},m.value)},600)})):(g.value=0,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,l)}px, 0)`)},S=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(S.value=document.querySelector(n.pullRefreshContainer),S.value?.addEventListener("touchstart",w),S.value?.addEventListener("touchmove",C),S.value?.addEventListener("touchend",B))}),(T,A)=>(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[c.value?(e.openBlock(),e.createElementBlock("div",un,e.toDisplayString(c.value),1)):(e.openBlock(),e.createElementBlock("div",on,[M.value==2?(e.openBlock(),e.createElementBlock("div",ln,[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:o})},null,4)]),e.createElementVNode("div",an,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:o})},null,4)]),rn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",cn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:r.value}]),style:e.normalizeStyle({borderBottomColor:o})},null,6)])],4))]))],4)]))}}),Kn="",$e=V(dn,[["__scopeId","data-v-df5da876"]]),fn=["data-key"],Mn={inheritAttrs:!1},gn=e.defineComponent({...Mn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:l}){const o=t,s=Se(e.toRef(o,"data"),{itemHeight:M=>o.itemHeight(o.data[M]),overscan:o.overscan,scrollEndHook:()=>{l("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:d,innerProps:r,getItemHeightData:f,scrollTop:g}=s;n({vListReturn:s});const u="virtualListWrapper"+new Date().getTime();function m(M,c){return o.getItemKey?o.getItemKey(M,c):`${c}`}return(M,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode($e,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+u},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:u},[e.createElementVNode("div",e.mergeProps({onScrollPassive:c[0]||(c[0]=(...D)=>e.unref(i).onScroll&&e.unref(i).onScroll(...D)),ref:e.unref(i).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:D,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:m(D,p),"data-key":m(D,p),style:e.normalizeStyle({height:`${e.unref(f)(p).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:D,index:p},void 0,!0)],12,fn))),128))],16)],16)],16)])],64))}}),Gn="",mn=V(gn,[["__scopeId","data-v-dfe60586"]]),ve=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),hn={style:{position:"absolute"}},pn=ve(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),yn=["width","height"],Dn=[ve(()=>e.createElementVNode("title",null,"logo",-1)),ve(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Tn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(o=>({"312487ac":l}));const l=`${n.duration}ms`;return(o,s)=>(e.openBlock(),e.createElementBlock("div",hn,[pn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Dn,8,yn))]))}}),eo="",Nn=V(Tn,[["__scopeId","data-v-33519afd"]]),wn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],En=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function Fe(t,n){const l=e.ref(t?.value),o=e.computed(()=>l.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const r=n?.value;return!r||r.startsWith("video/")?!0:r.startsWith("image/")?o.value?wn.includes(r):En.includes(r):!1});t&&e.watch(t,r=>{l.value=r,s.value=!1});function d(){s.value=!0}return{imgSrc:l,isError:s,hasError:a,isSupport:i,handleError:d}}function He(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const vn=t=>(e.pushScopeId("data-v-044030a1"),t=t(),e.popScopeId(),t),In=["title"],zn=vn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),An=["src"],Ln=["src"],jn=["title"],Cn={inheritAttrs:!1},Sn=e.defineComponent({...Cn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const l=t,o=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),d=e.ref(!1),{src:r,mime:f}=e.toRefs(l),{imgSrc:g,isSupport:u,hasError:m,handleError:M}=Fe(r,f),{vImageCancel:c}=He(),{LoadingComp:D}=Ne({component:_e,delay:300}),p=Xe(()=>d.value&&l.autoRemoveThumbnail?!1:l.thumbnail&&!d.value);e.watch(u,T=>{T||n("noSupport")},{immediate:!0});function h(){i.value=!0}function N(){i.value&&(d.value=!0)}async function w(){h(),p.value?(o.value?.addEventListener("animationend",C),o.value?.classList.add("showing"),await we(10)):o.value&&n("load",o.value),o.value?.classList.remove("src-class")}function C(){o.value?.removeEventListener("animationend",C),o.value?.classList.remove("showing"),o.value&&n("load",o.value),N()}async function B(T){T?w():s.value&&n("load",s.value),a.value=!0}function S(T){T?(M(),n("loadError")):h(),a.value=!0}return(T,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(u)&&!a.value?(e.openBlock(),e.createBlock(e.unref(D),{key:0})):e.createCommentVNode("",!0),e.unref(u)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,jn)):e.renderSlot(T.$slots,"default",{key:2,src:e.unref(g),onLoad:B,onError:S},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},T.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=Q=>B()),onError:A[1]||(A[1]=Q=>S()),src:t.thumbnail}),null,16,An)),[[e.unref(c)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},T.$attrs,{ref_key:"srcRef",ref:o,class:"src-class",onLoad:A[2]||(A[2]=Q=>B(!0)),onError:A[3]||(A[3]=Q=>S(!0)),src:e.unref(g)}),null,16,Ln)),[[e.unref(c)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),zn],16,In))],64))}}),to="",xn=V(Sn,[["__scopeId","data-v-044030a1"]]),_n=["title"],bn=["src"],On=["title"],kn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,l=e.ref(!1),{src:o,mime:s}=e.toRefs(n),{imgSrc:a,hasError:i,isSupport:d,handleError:r}=Fe(o,s),{vImageCancel:f}=He();return(g,u)=>e.unref(d)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,On)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:u[0]||(u[0]=m=>l.value=!0),onError:u[1]||(u[1]=(...m)=>e.unref(r)&&e.unref(r)(...m)),src:e.unref(a)},null,40,bn)),[[e.unref(f)],[e.vShow,l.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,_n))}}),no="",Bn=V(kn,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=_e,I.Image=xn,I.Loading=Nn,I.LoadingToast=be,I.PageLoading=vt,I.PullRefresh=$e,I.ScrollBar=en,I.SvgIcon=te,I.Thumbnail=Bn,I.ToastCreator=Zt,I.VirtualList=mn,I.allSelectedKey=re,I.closeDialogKey=xe,I.dialogController=ht,I.getTransform=ge,I.isAllSelectedKey=fe,I.isSelectedKey=ie,I.once=Re,I.selectAllKey=ue,I.selectKey=ce,I.selectedCountKey=Me,I.toggleAllKey=se,I.toggleKey=ae,I.unselectAllKey=q,I.unselectKey=de,I.useBackPress=Ht,I.useDelayAsync=_t,I.useDelayLoad=pt,I.useDelayLoadComp=Ne,I.useDownDrag=Ft,I.useDragSelect=Te,I.useDragSelectByMobile=Mt,I.useDragSelectByPc=ft,I.useRouterActivated=Ue,I.useScaleImageByMobile=$t,I.useScaleImageByPc=Pt,I.useSelectable=ut,I.useSelectableByBase=dt,I.useSelectableInjectors=ct,I.useVirtualList=Se,I.vDebounceClick=We,I.vSingleClick=ze,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .no-overlay-modal[data-v-783a5618]{position:absolute;inset:0;display:flex;z-index:999}.lzc-modal[data-v-783a5618]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-783a5618]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-c6edbcb9],.v-leave-active[data-v-c6edbcb9]{transition:opacity .6s ease}.v-enter-from[data-v-c6edbcb9],.v-leave-to[data-v-c6edbcb9]{opacity:0}.tip[data-v-c6edbcb9]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-c6edbcb9]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-c6edbcb9]{width:162px;height:134px}.bad-image[data-v-c6edbcb9]{width:92px;height:92px}.src-class[data-v-c6edbcb9]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-c6edbcb9{0%{opacity:0}to{opacity:1}}.showing[data-v-c6edbcb9]{animation:fadeIn-c6edbcb9 .35s linear}img[data-v-c6edbcb9]{user-select:none;pointer-events:none}img[data-v-5a7af152]{pointer-events:none}.icon-wrap[data-v-5a7af152]{display:flex;align-items:center;justify-content:center}.icon[data-v-5a7af152]{width:100%;height:100%}
1
+ .no-overlay-modal[data-v-783a5618]{position:absolute;inset:0;display:flex;z-index:999}.lzc-modal[data-v-783a5618]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-783a5618]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-044030a1],.v-leave-active[data-v-044030a1]{transition:opacity .6s ease}.v-enter-from[data-v-044030a1],.v-leave-to[data-v-044030a1]{opacity:0}.tip[data-v-044030a1]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-044030a1]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.no-support-icon[data-v-044030a1]{width:162px;height:134px;cursor:default}.bad-image[data-v-044030a1]{width:92px;height:92px;cursor:default}.src-class[data-v-044030a1]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-044030a1{0%{opacity:0}to{opacity:1}}.showing[data-v-044030a1]{animation:fadeIn-044030a1 .35s linear}img[data-v-044030a1]{user-select:none;pointer-events:none}img[data-v-5a7af152]{pointer-events:none}.icon-wrap[data-v-5a7af152]{display:flex;align-items:center;justify-content:center}.icon[data-v-5a7af152]{width:100%;height:100%}
@@ -19,6 +19,7 @@ declare const _default: {
19
19
  }>>> & {
20
20
  onLoad?: ((val: HTMLElement) => any) | undefined;
21
21
  onNoSupport?: (() => any) | undefined;
22
+ onLoadError?: (() => any) | undefined;
22
23
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "noSupportIconName" | "badImageIconName">;
23
24
  $attrs: {
24
25
  [x: string]: unknown;
@@ -31,7 +32,7 @@ declare const _default: {
31
32
  }>;
32
33
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
33
34
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
34
- $emit: ((event: "load", val: HTMLElement) => void) & ((event: "noSupport") => void);
35
+ $emit: ((event: "load", val: HTMLElement) => void) & ((event: "noSupport") => void) & ((event: "loadError") => void);
35
36
  $el: any;
36
37
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
37
38
  src?: string | undefined;
@@ -47,10 +48,13 @@ declare const _default: {
47
48
  }>>> & {
48
49
  onLoad?: ((val: HTMLElement) => any) | undefined;
49
50
  onNoSupport?: (() => any) | undefined;
51
+ onLoadError?: (() => any) | undefined;
50
52
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
53
  load: (val: HTMLElement) => void;
52
54
  } & {
53
55
  noSupport: () => void;
56
+ } & {
57
+ loadError: () => void;
54
58
  }, string, {
55
59
  noSupportIconName: string;
56
60
  badImageIconName: string;
@@ -88,6 +92,7 @@ declare const _default: {
88
92
  }>>> & {
89
93
  onLoad?: ((val: HTMLElement) => any) | undefined;
90
94
  onNoSupport?: (() => any) | undefined;
95
+ onLoadError?: (() => any) | undefined;
91
96
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
92
97
  __isFragment?: undefined;
93
98
  __isTeleport?: undefined;
@@ -106,10 +111,13 @@ declare const _default: {
106
111
  }>>> & {
107
112
  onLoad?: ((val: HTMLElement) => any) | undefined;
108
113
  onNoSupport?: (() => any) | undefined;
114
+ onLoadError?: (() => any) | undefined;
109
115
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
110
116
  load: (val: HTMLElement) => void;
111
117
  } & {
112
118
  noSupport: () => void;
119
+ } & {
120
+ loadError: () => void;
113
121
  }, string, {
114
122
  noSupportIconName: string;
115
123
  badImageIconName: string;
@@ -5,16 +5,14 @@ declare type PointType = {
5
5
  x: number;
6
6
  y: number;
7
7
  };
8
+ declare type OnSwipeEdgeType = (eventName: EventName, direction: Direction, clientX: number, clientY: number, event?: Event) => any;
8
9
  declare type Options = {
9
- disableZoom?: boolean;
10
10
  onScale?: (level: number) => any;
11
11
  onTap?: () => any;
12
12
  onDoubleTap?: () => any;
13
13
  onLongPress?: () => any;
14
+ onSwipeEdge?: OnSwipeEdgeType;
14
15
  };
15
- declare type MobileOptions = {
16
- onSwipeEdge?: (eventName: EventName, direction: Direction, clientX: number, clientY: number) => any;
17
- } & Options;
18
16
  export declare function useScaleImageByPc(opt: Options): {
19
17
  core: {
20
18
  touch: {
@@ -1582,11 +1580,12 @@ export declare function useScaleImageByPc(opt: Options): {
1582
1580
  zoomTo: (level: number, center?: PointType | undefined, needTransition?: boolean | undefined) => Promise<void>;
1583
1581
  zoomFinished: () => Promise<void>;
1584
1582
  toggleZoom: () => void;
1583
+ setDisableZoom: (val: boolean) => void;
1585
1584
  };
1586
1585
  onPointerDown: (e: PointerEvent) => void;
1587
1586
  onWheel: (e: WheelEvent) => void;
1588
1587
  };
1589
- export declare function useScaleImageByMobile(opt: MobileOptions): {
1588
+ export declare function useScaleImageByMobile(opt: Options): {
1590
1589
  core: {
1591
1590
  touch: {
1592
1591
  move: (x: number, y: number) => void;
@@ -3153,6 +3152,7 @@ export declare function useScaleImageByMobile(opt: MobileOptions): {
3153
3152
  zoomTo: (level: number, center?: PointType | undefined, needTransition?: boolean | undefined) => Promise<void>;
3154
3153
  zoomFinished: () => Promise<void>;
3155
3154
  toggleZoom: () => void;
3155
+ setDisableZoom: (val: boolean) => void;
3156
3156
  };
3157
3157
  onTouchStart: (event: TouchEvent) => Promise<void>;
3158
3158
  onTouchMove: (event: TouchEvent) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.171",
3
+ "version": "0.0.173",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",