mirror of
https://gitee.com/onvia/ccc-tnt-psd2ui
synced 2024-12-28 12:37:43 +00:00
2 lines
56 KiB
JavaScript
2 lines
56 KiB
JavaScript
|
function e(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function t(e){if(E(e)){const n={};for(let r=0;r<e.length;r++){const o=e[r],l=N(o)?s(o):t(o);if(l)for(const e in l)n[e]=l[e]}return n}return N(e)||U(e)?e:void 0}const n=/;(?![^(]*\))/g,r=/:([^]+)/,o=/\/\*.*?\*\//gs;function s(e){const t={};return e.replace(o,"").split(n).forEach((e=>{if(e){const n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if(N(e))t=e;else if(E(e))for(let n=0;n<e.length;n++){const r=l(e[n]);r&&(t+=r+" ")}else if(U(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const i=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),c=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),u="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=e(u),f=e(u+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function p(e){return!!e||""===e}const d=/[>/="'\u0009\u000a\u000c\u0020]/,h={};const g={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},m=/["'&<>]/;function v(e){const t=""+e,n=m.exec(t);if(!n)return t;let r,o,s="",l=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}l!==o&&(s+=t.slice(l,o)),l=o+1,s+=r}return l!==o?s+t.slice(l,o):s}const y=/^-?>|<!--|-->|--!>|<!-$/g;function _(e,t){if(e===t)return!0;let n=A(e),r=A(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=V(e),r=V(t),n||r)return e===t;if(n=E(e),r=E(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=_(e[r],t[r]);return n}(e,t);if(n=U(e),r=U(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!_(e[n],t[n]))return!1}}return String(e)===String(t)}const b=(e,t)=>t&&t.__v_isRef?b(e,t.value):M(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:j(t)?{[`Set(${t.size})`]:[...t.values()]}:!U(t)||E(t)||D(t)?t:String(t),x={},w=[],S=()=>{},C=()=>!1,k=/^on[^a-z]/,O=e=>k.test(e),T=e=>e.startsWith("onUpdate:"),P=Object.assign,R=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},F=Object.prototype.hasOwnProperty,$=(e,t)=>F.call(e,t),E=Array.isArray,M=e=>"[object Map]"===W(e),j=e=>"[object Set]"===W(e),A=e=>"[object Date]"===W(e),I=e=>"function"==typeof e,N=e=>"string"==typeof e,V=e=>"symbol"==typeof e,U=e=>null!==e&&"object"==typeof e,B=e=>U(e)&&I(e.then)&&I(e.catch),L=Object.prototype.toString,W=e=>L.call(e),D=e=>"[object Object]"===W(e),H=e=>N(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},G=/-(\w)/g,K=q((e=>e.replace(G,((e,t)=>t?t.toUpperCase():"")))),J=/\B([A-Z])/g,X=q((e=>e.replace(J,"-$1").toLowerCase())),Z=q((e=>e.charAt(0).toUpperCase()+e.slice(1))),Q=q((e=>e?`on${Z(e)}`:"")),Y=(e,t)=>!Object.is(e,t),ee=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},te=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ne=e=>{const t=parseFloat(e);return
|