mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 19:42:07 +08:00
6 lines
11 KiB
JavaScript
6 lines
11 KiB
JavaScript
import{h as Pt,B as Dt,c as It,a as yt,u as $t,o as Ot,F as Rt,g as Ht,s as j,r as V,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.13-FNhVYeFi.js";import{c as ut,o as N,e as I,a as Gt,b as y,A as zt,s as Wt,H as qt,v as dt,D as pt,w as Kt,I as mt,i as Ut,J as jt}from"./@vue_shared@3.5.13-DbMIZLZJ.js";import{d as Vt}from"./@vue_reactivity@3.5.13-BUI-9P27.js";/**
|
|
* @vue/runtime-dom v3.5.13
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let B;const X=typeof window<"u"&&window.trustedTypes;if(X)try{B=X.createPolicy("vue",{createHTML:t=>t})}catch{}const ht=B?t=>B.createHTML(t):t=>t,Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1998/Math/MathML",g=typeof document<"u"?document:null,J=g&&g.createElement("template"),Zt={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const o=e==="svg"?g.createElementNS(Xt,t):e==="mathml"?g.createElementNS(Jt,t):n?g.createElement(t,{is:n}):g.createElement(t);return t==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:t=>g.createTextNode(t),createComment:t=>g.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>g.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,o,i){const r=n?n.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{J.innerHTML=ht(s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t);const c=J.content;if(s==="svg"||s==="mathml"){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}e.insertBefore(c,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},v="transition",w="animation",A=Symbol("_vtc"),gt={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vt=I({},yt,gt),Qt=t=>(t.displayName="Transition",t.props=vt,t),_e=Qt((t,{slots:e})=>Pt(Dt,Ct(t),e)),T=(t,e=[])=>{y(t)?t.forEach(n=>n(...e)):t&&t(...e)},Z=t=>t?y(t)?t.some(e=>e.length>1):t.length>1:!1;function Ct(t){const e={};for(const a in t)a in gt||(e[a]=t[a]);if(t.css===!1)return e;const{name:n="v",type:s,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=r,appearToClass:f=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=t,E=Yt(o),At=E&&E[0],wt=E&&E[1],{onBeforeEnter:F,onEnter:G,onEnterCancelled:z,onLeave:W,onLeaveCancelled:Lt,onBeforeAppear:Nt=F,onAppear:Mt=G,onAppearCancelled:_t=z}=e,$=(a,m,S,M)=>{a._enterCancelled=M,C(a,m?f:c),C(a,m?l:r),S&&S()},q=(a,m)=>{a._isLeaving=!1,C(a,p),C(a,b),C(a,d),m&&m()},K=a=>(m,S)=>{const M=a?Mt:G,U=()=>$(m,a,S);T(M,[m,U]),Q(()=>{C(m,a?u:i),h(m,a?f:c),Z(M)||Y(m,s,At,U)})};return I(e,{onBeforeEnter(a){T(F,[a]),h(a,i),h(a,r)},onBeforeAppear(a){T(Nt,[a]),h(a,u),h(a,l)},onEnter:K(!1),onAppear:K(!0),onLeave(a,m){a._isLeaving=!0;const S=()=>q(a,m);h(a,p),a._enterCancelled?(h(a,d),x()):(x(),h(a,d)),Q(()=>{a._isLeaving&&(C(a,p),h(a,b),Z(W)||Y(a,s,wt,S))}),T(W,[a,S])},onEnterCancelled(a){$(a,!1,void 0,!0),T(z,[a])},onAppearCancelled(a){$(a,!0,void 0,!0),T(_t,[a])},onLeaveCancelled(a){q(a),T(Lt,[a])}})}function Yt(t){if(t==null)return null;if(Gt(t))return[O(t.enter),O(t.leave)];{const e=O(t);return[e,e]}}function O(t){return zt(t)}function h(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[A]||(t[A]=new Set)).add(e)}function C(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[A];n&&(n.delete(e),n.size||(t[A]=void 0))}function Q(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let kt=0;function Y(t,e,n,s){const o=t._endId=++kt,i=()=>{o===t._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:r,timeout:c,propCount:u}=St(t,e);if(!r)return s();const l=r+"end";let f=0;const p=()=>{t.removeEventListener(l,d),i()},d=b=>{b.target===t&&++f>=u&&p()};setTimeout(()=>{f<u&&p()},c+1),t.addEventListener(l,d)}function St(t,e){const n=window.getComputedStyle(t),s=E=>(n[E]||"").split(", "),o=s(`${v}Delay`),i=s(`${v}Duration`),r=k(o,i),c=s(`${w}Delay`),u=s(`${w}Duration`),l=k(c,u);let f=null,p=0,d=0;e===v?r>0&&(f=v,p=r,d=i.length):e===w?l>0&&(f=w,p=l,d=u.length):(p=Math.max(r,l),f=p>0?r>l?v:w:null,d=f?f===v?i.length:u.length:0);const b=f===v&&/\b(transform|all)(,|$)/.test(s(`${v}Property`).toString());return{type:f,timeout:p,propCount:d,hasTransform:b}}function k(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,s)=>tt(n)+tt(t[s])))}function tt(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function x(){return document.body.offsetHeight}function te(t,e,n){const s=t[A];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const P=Symbol("_vod"),Tt=Symbol("_vsh"),Pe={beforeMount(t,{value:e},{transition:n}){t[P]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):L(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),L(t,!0),s.enter(t)):s.leave(t,()=>{L(t,!1)}):L(t,e))},beforeUnmount(t,{value:e}){L(t,e)}};function L(t,e){t.style.display=e?t[P]:"none",t[Tt]=!e}const ee=Symbol(""),ne=/(^|;)\s*display\s*:/;function se(t,e,n){const s=t.style,o=N(n);let i=!1;if(n&&!o){if(e)if(N(e))for(const r of e.split(";")){const c=r.slice(0,r.indexOf(":")).trim();n[c]==null&&_(s,c,"")}else for(const r in e)n[r]==null&&_(s,r,"");for(const r in n)r==="display"&&(i=!0),_(s,r,n[r])}else if(o){if(e!==n){const r=s[ee];r&&(n+=";"+r),s.cssText=n,i=ne.test(n)}}else e&&t.removeAttribute("style");P in t&&(t[P]=i?s.display:"",t[Tt]&&(s.display="none"))}const et=/\s*!important$/;function _(t,e,n){if(y(n))n.forEach(s=>_(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=oe(t,e);et.test(n)?t.setProperty(pt(s),n.replace(et,""),"important"):t[s]=n}}const nt=["Webkit","Moz","ms"],R={};function oe(t,e){const n=R[e];if(n)return n;let s=dt(e);if(s!=="filter"&&s in t)return R[e]=s;s=Kt(s);for(let o=0;o<nt.length;o++){const i=nt[o]+s;if(i in t)return R[e]=i}return e}const st="http://www.w3.org/1999/xlink";function ot(t,e,n,s,o,i=jt(e)){s&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(st,e.slice(6,e.length)):t.setAttributeNS(st,e,n):n==null||i&&!mt(n)?t.removeAttribute(e):t.setAttribute(e,i?"":Ut(n)?String(n):n)}function it(t,e,n,s,o){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?ht(n):n);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const c=i==="OPTION"?t.getAttribute("value")||"":t.value,u=n==null?t.type==="checkbox"?"on":"":String(n);(c!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let r=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=mt(n):n==null&&c==="string"?(n="",r=!0):c==="number"&&(n=0,r=!0)}try{t[e]=n}catch{}r&&t.removeAttribute(o||e)}function ie(t,e,n,s){t.addEventListener(e,n,s)}function re(t,e,n,s){t.removeEventListener(e,n,s)}const rt=Symbol("_vei");function ae(t,e,n,s,o=null){const i=t[rt]||(t[rt]={}),r=i[e];if(s&&r)r.value=s;else{const[c,u]=ce(e);if(s){const l=i[e]=ue(s,o);ie(t,c,l,u)}else r&&(re(t,c,r,u),i[e]=void 0)}}const at=/(?:Once|Passive|Capture)$/;function ce(t){let e;if(at.test(t)){e={};let s;for(;s=t.match(at);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):pt(t.slice(2)),e]}let H=0;const le=Promise.resolve(),fe=()=>H||(le.then(()=>H=0),H=Date.now());function ue(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ft(de(s,n.value),e,5,[s])};return n.value=t,n.attached=fe(),n}function de(t,e){if(y(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>o=>!o._stopped&&s&&s(o))}else return e}const ct=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,pe=(t,e,n,s,o,i)=>{const r=o==="svg";e==="class"?te(t,s,r):e==="style"?se(t,n,s):Wt(e)?qt(e)||ae(t,e,n,s,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):me(t,e,s,r))?(it(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&ot(t,e,s,r,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!N(s))?it(t,dt(e),s,i,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),ot(t,e,s,r))};function me(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&ct(e)&&ut(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ct(e)&&N(n)?!1:e in t}const bt=new WeakMap,Et=new WeakMap,D=Symbol("_moveCb"),lt=Symbol("_enterCb"),he=t=>(delete t.props.mode,t),ge=he({name:"TransitionGroup",props:I({},vt,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=xt(),s=$t();let o,i;return Ot(()=>{if(!o.length)return;const r=t.moveClass||`${t.name||"v"}-move`;if(!Te(o[0].el,n.vnode.el,r))return;o.forEach(ve),o.forEach(Ce);const c=o.filter(Se);x(),c.forEach(u=>{const l=u.el,f=l.style;h(l,r),f.transform=f.webkitTransform=f.transitionDuration="";const p=l[D]=d=>{d&&d.target!==l||(!d||/transform$/.test(d.propertyName))&&(l.removeEventListener("transitionend",p),l[D]=null,C(l,r))};l.addEventListener("transitionend",p)})}),()=>{const r=Vt(t),c=Ct(r);let u=r.tag||Rt;if(o=[],i)for(let l=0;l<i.length;l++){const f=i[l];f.el&&f.el instanceof Element&&(o.push(f),j(f,V(f,c,s,n)),bt.set(f,f.el.getBoundingClientRect()))}i=e.default?Ht(e.default()):[];for(let l=0;l<i.length;l++){const f=i[l];f.key!=null&&j(f,V(f,c,s,n))}return Bt(u,null,i)}}}),De=ge;function ve(t){const e=t.el;e[D]&&e[D](),e[lt]&&e[lt]()}function Ce(t){Et.set(t,t.el.getBoundingClientRect())}function Se(t){const e=bt.get(t),n=Et.get(t),s=e.left-n.left,o=e.top-n.top;if(s||o){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${o}px)`,i.transitionDuration="0s",t}}function Te(t,e,n){const s=t.cloneNode(),o=t[A];o&&o.forEach(c=>{c.split(/\s+/).forEach(u=>u&&s.classList.remove(u))}),n.split(/\s+/).forEach(c=>c&&s.classList.add(c)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=St(s);return i.removeChild(s),r}const be=I({patchProp:pe},Zt);let ft;function Ee(){return ft||(ft=It(be))}const Ie=(...t)=>{const e=Ee().createApp(...t),{mount:n}=e;return e.mount=s=>{const o=we(s);if(!o)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Ae(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e};function Ae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function we(t){return N(t)?document.querySelector(t):t}export{_e as T,De as a,Ie as c,Pe as v};
|