stdproject/frontend/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js

7 lines
100 KiB
JavaScript
Raw Normal View History

2025-05-30 13:43:31 +08:00
/**
* @vue/runtime-dom v3.5.16
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/var e,t;let n,l,r,i,s,o,a,u,c,f,p,d;function h(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return e=>e in t}let g={},m=[],_=()=>{},y=()=>!1,b=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),S=e=>e.startsWith("onUpdate:"),C=Object.assign,x=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},E=Object.prototype.hasOwnProperty,w=(e,t)=>E.call(e,t),k=Array.isArray,T=e=>"[object Map]"===F(e),A=e=>"[object Set]"===F(e),R=e=>"[object Date]"===F(e),O=e=>"[object RegExp]"===F(e),N=e=>"function"==typeof e,P=e=>"string"==typeof e,M=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,L=e=>(I(e)||N(e))&&N(e.then)&&N(e.catch),D=Object.prototype.toString,F=e=>D.call(e),V=e=>F(e).slice(8,-1),U=e=>"[object Object]"===F(e),j=e=>P(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,B=h(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},H=/-(\w)/g,W=$(e=>e.replace(H,(e,t)=>t?t.toUpperCase():"")),K=/\B([A-Z])/g,z=$(e=>e.replace(K,"-$1").toLowerCase()),q=$(e=>e.charAt(0).toUpperCase()+e.slice(1)),G=$(e=>e?`on${q(e)}`:""),J=(e,t)=>!Object.is(e,t),X=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Z=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Y=e=>{let t=parseFloat(e);return isNaN(t)?e:t},Q=e=>{let t=P(e)?Number(e):NaN;return isNaN(t)?e:t},ee=()=>n||(n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),et=h("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function en(e){if(k(e)){let t={};for(let n=0;n<e.length;n++){let l=e[n],r=P(l)?function(e){let t={};return e.replace(ei,"").split(el).forEach(e=>{if(e){let n=e.split(er);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}(l):en(l);if(r)for(let e in r)t[e]=r[e]}return t}if(P(e)||I(e))return e}let el=/;(?![^(]*\))/g,er=/:([^]+)/,ei=/\/\*[^]*?\*\//g;function es(e){let t="";if(P(e))t=e;else if(k(e))for(let n=0;n<e.length;n++){let l=es(e[n]);l&&(t+=l+" ")}else if(I(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function eo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!P(t)&&(e.class=es(t)),n&&(e.style=en(n)),e}let ea=h("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function eu(e,t){if(e===t)return!0;let n=R(e),l=R(t);if(n||l)return!!n&&!!l&&e.getTime()===t.getTime();if(n=M(e),l=M(t),n||l)return e===t;if(n=k(e),l=k(t),n||l)return!!n&&!!l&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=eu(e[l],t[l]);return n}(e,t);if(n=I(e),l=I(t),n||l){if(!n||!l||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let l=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(l&&!r||!l&&r||!eu(e[n],t[n]))return!1}}return String(e)===String(t)}function ec(e,t){return e.findIndex(e=>eu(e,t))}let ef=e=>!!(e&&!0===e.__v_isRef),ep=e=>P(e)?e:null==e?"":k(e)||I(e)&&(e.toString===D||!N(e.toString))?ef(e)?ep(e.value):JSON.stringify(e,ed,2):String(e),ed=(e,t)=>{if(ef(t))return ed(e,t.value);if(T(t))return{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],l)=>(e[eh(t,l)+" =>"]=n,e),{})};if(A(t))return{[`Set(${t.size})`]:[...t.values()].map(e=>eh(e))};if(M(t))return eh(t);if(I(t)&&!k(t)&&!U(t))return String(t);return t},eh=(e,t="")=>{var n;return M(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};class eg{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=l,!e&&l&&(this.index=(l.scopes||(l.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this
`===n[0]&&("PRE"===e.tagName||"TEXTAREA"===e.tagName)&&(n=n.slice(1)),e.textContent!==n&&(n0(e,0)||nz(),e.textContent=t.children)}if(u){if(g||!s||48&c){let t=e.tagName.includes("-");for(let r in u)(g&&(r.endsWith("value")||"indeterminate"===r)||b(r)&&!B(r)||"."===r[0]||t)&&l(e,r,null,u[r],void 0,n)}else if(u.onClick)l(e,"onClick",null,u.onClick,void 0,n);else if(4&c&&tm(u.style))for(let e in u.style)u.style[e]}(a=u&&u.onVnodeBeforeMount)&&iS(a,n,t),d&&nd(t,null,n,"beforeMount"),((a=u&&u.onVnodeMounted)||d||y)&&rY(()=>{a&&iS(a,n,t),y&&h.enter(e),d&&nd(t,null,n,"mounted")},r)}return e.nextSibling},p=(e,t,l,s,o,u,f)=>{f=f||!!t.dynamicChildren;let p=t.children,d=p.length;for(let t=0;t<d;t++){let h=f?p[t]:p[t]=im(p[t]),g=h.type===r1;e?(g&&!f&&t+1<d&&im(p[t+1]).type===r1&&(a(r(e.data.slice(h.children.length)),l,i(e)),e.data=h.children),e=c(e,h,s,o,u,f)):g&&!h.children?a(h.el=r(""),l):(n0(l,1)||nz(),n(null,h,l,null,s,o,nJ(l),u))}return e},d=(e,t,n,l,r,o)=>{let{slotScopeIds:c}=t;c&&(r=r?r.concat(c):c);let f=s(e),d=p(i(e),t,f,n,l,r,o);return d&&nX(d)&&"]"===d.data?i(t.anchor=d):(nz(),a(t.anchor=u("]"),f,d),d)},h=(e,t,l,r,a,u)=>{if(n0(e.parentElement,1)||nz(),t.el=null,u){let t=g(e);for(;;){let n=i(e);if(n&&n!==t)o(n);else break}}let c=i(e),f=s(e);return o(e),n(null,t,f,c,l,r,nJ(f),a),l&&(l.vnode.el=t.el,rK(l,t.el)),c},g=(e,t="[",n="]")=>{let l=0;for(;e;)if((e=i(e))&&nX(e)&&(e.data===t&&l++,e.data===n))if(0===l)return i(e);else l--;return e},m=(e,t,n)=>{let l=t.parentNode;l&&l.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},_=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),nl(),t._vnode=e;return}c(t.firstChild,e,null,null,null),nl(),t._vnode=e},c]}let nY="data-allow-mismatch",nQ={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function n0(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(nY);)e=e.parentElement;let n=e&&e.getAttribute(nY);if(null==n)return!1;{if(""===n)return!0;let e=n.split(",");return!!(0===t&&e.includes("children"))||n.split(",").includes(nQ[t])}}let n1=ee().requestIdleCallback||(e=>setTimeout(e,1)),n2=ee().cancelIdleCallback||(e=>clearTimeout(e)),n6=(e=1e4)=>t=>{let n=n1(t,{timeout:e});return()=>n2(n)},n8=e=>(t,n)=>{let l=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){l.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(function(e){let{top:t,left:n,bottom:l,right:r}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:s}=window;return(t>0&&t<i||l>0&&l<i)&&(n>0&&n<s||r>0&&r<s)}(e))return t(),l.disconnect(),!1;l.observe(e)}}),()=>l.disconnect()},n4=e=>t=>{if(e){let n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},n3=(e=[])=>(t,n)=>{P(e)&&(e=[e]);let l=!1,r=e=>{l||(l=!0,i(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},i=()=>{n(t=>{for(let n of e)t.removeEventListener(n,r)})};return n(t=>{for(let n of e)t.addEventListener(n,r,{once:!0})}),i},n5=e=>!!e.type.__asyncLoader;function n9(e){let t;N(e)&&(e={loader:e});let{loader:n,loadingComponent:l,errorComponent:r,delay:i=200,hydrate:s,timeout:o,suspensible:a=!0,onError:u}=e,c=null,f=0,p=()=>(f++,c=null,d()),d=()=>{let e;return c||(e=c=n().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),u)return new Promise((t,n)=>{u(e,()=>t(p()),()=>n(e),f+1)});throw e}).then(n=>e!==c&&c?c:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),t=n,n)))};return nj({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(e,n,l){let r=s?()=>{let t=s(()=>{l()},t=>(function(e,t){if(nX(e)&&"["===e.data){let n=1,l=e.nextSibling;for(;l;){if(1===l.nodeType){if(!1===t(l))break}else if(nX(l))if("]"===l.data){if(0==--n)break}else"["===l.data&&n++;l=l.nextSibling}}else t(e)})(e,t));t&&(n.bum||(n.bum=[])).push(t),(n.u||(n.u=[])).push(()=>!0)}:l;t?r():d().then(()=>!n.isUnmounted&&r())},get __asyncResolved(){return t},setup(){let e=iw;if(n$(e),t)return()=>n7(t,e);let n=t=>{c=null,t0(t,e,13,!r)};if(a&&e.suspense||iO)return d().then(t=>()=>n7(t,e)).catch(e=>(n(e),()=>r?ic(r