docserver/resources/sitehome_model/assets/js/unocss.js

10 lines
168 KiB
JavaScript
Raw Normal View History

2023-08-14 23:33:21 +00:00
/**
* Skipped minification because the original files appears to be already minified.
* Original file: /npm/@unocss/runtime@0.52.3/uno.global.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
"use strict";(()=>{var Ni=Object.defineProperty;var Hi=(e,t)=>{for(var r in t)Ni(e,r,{get:t[r],enumerable:!0})};function Y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ae(e){let t=e.length,r=-1,n,o="",a=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var et=ae;function T(e=[]){return Array.isArray(e)?e:[e]}function ce(e){return Array.from(new Set(e))}function j(e){return typeof e=="string"}function ge(e){return j(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function gn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ge(t)):[e]:[ge(e)]}function Gi(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function be(e){return e==null?"":Gi(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function tt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ar(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let a={...n};return tt(n)&&tt(o)&&Object.keys(o).forEach(i=>{tt(n[i])&&tt(o[i])||Array.isArray(n[i])&&Array.isArray(o[i])?a[i]=Ar(n[i],o[i],r):Object.assign(a,{[i]:o[i]})}),a}function Ce(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Ce(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Ce(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Ce(n):n;return r}return e}function bn(e){return j(e[0])}function hn(e){return j(e[0])}var Ii=/[\w\u00A0-\uFFFF-_:%-?]/,Or="$$shortcut-no-merge";function xn(e=""){return Ii.test(e)}function yn(e){return typeof e=="function"?{match:e}:e}function Pr(e){return e.length===3}function vn(e){return e!=null}function $n(){}var rt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,a])=>t(a,r,o)))}};var nt={};function Ki(e=["-",":"]){let t=e.join("|");return nt[t]||(nt[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),nt[t].lastIndex=0,nt[t]}function qi(e,t=["-",":"],r=5){let n=Ki(t),o=!1,a=e.toString(),i=new Set;do{let c=a;a=a.replace(n,(l,p,f,u)=>t.includes(f)?(i.add(p+f),u.split(/\s/g).filter(Boolean).map(g=>g==="~"?p:g.replace(/^(!?)(.*)/,`$1${p}${f}$2`)).join(" ")):l),o=a!==c,r-=1}while(o&&r);return{prefixes:Array.from(i),expanded:a,hasChanged:o}}function kn(e,t=["-",":"],r=5){let{expanded:n}=qi(e.toString(),t,r);return typeof e=="string"?n:e.length()?e.overwrite(0,e.length(),n):e}var wn=new Set;function X(e){wn.has(e)||(console.warn("[unocss]",e),wn.add(e))}function ot(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let a of o){let i=e[a](n);if(i!=null)return i}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var at=/[\\:]?[\s'"`;{}]+/g;function Yi(e){return[...new Set(e.split(at))]}var it={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Yi(e)}};function Sn(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(
`,f=new Set([st]),u=new Set,g=new Map,m={},C=Array.from(l).map(async y=>{if(u.has(y))return;let d=await this.parseToken(y);if(d!=null){u.add(y);for(let $ of d){let _=$[3]||"",D=$[4]?.layer;g.has(_)||g.set(_,[]),g.get(_).push($),D&&f.add(D)}}});await Promise.all(C),await(async()=>{if(!a)return;let y={generator:this,theme:this.config.theme},d=new Set([]);this.config.preflights.forEach(({layer:$=ct})=>{f.add($),d.add($)}),m=Object.fromEntries(await Promise.all(Array.from(d).map(async $=>{let D=(await Promise.all(this.config.preflights.filter(re=>(re.layer||ct)===$).map(async re=>await re.getCSS(y)))).filter(Boolean).join(p);return[$,D]})))})();let V=this.config.sortLayers(Array.from(f).sort((y,d)=>(this.config.layers[y]??0)-(this.config.layers[d]??0)||y.localeCompare(d))),R={},O=y=>{if(R[y])return R[y];let d=Array.from(g).sort((_,D)=>(this.parentOrders.get(_[0])??0)-(this.parentOrders.get(D[0])??0)||_[0]?.localeCompare(D[0]||"")||0).map(([_,D])=>{let re=D.length,me=D.filter(x=>(x[4]?.layer||st)===y).sort((x,w)=>x[0]-w[0]||(x[4]?.sort||0)-(w[4]?.sort||0)||x[5]?.currentSelector?.localeCompare(w[5]?.currentSelector??"")||x[1]?.localeCompare(w[1]||"")||x[2]?.localeCompare(w[2]||"")||0).map(([,x,w,,L,,H])=>[[[(x&&ts(x,o))??"",L?.sort??0]],w,!!(H??L?.noMerge)]);if(!me.length)return;let Qe=me.reverse().map(([x,w,L],H)=>{if(!L&&this.config.mergeSelectors)for(let oe=H+1;oe<re;oe++){let q=me[oe];if(q&&!q[2]&&(x&&q[0]||x==null&&q[0]==null)&&q[1]===w)return x&&q[0]&&q[0].push(...x),null}let ne=x?ce(x.sort((oe,q)=>oe[1]-q[1]||oe[0]?.localeCompare(q[0]||"")||0).map(oe=>oe[0]).filter(Boolean)):[];return ne.length?`${ne.join(`,${p}`)}{${w}}`:w}).filter(Boolean).reverse().join(p);if(!_)return Qe;let v=_.split(" $$ ");return`${v.join("{")}{${p}${Qe}${p}}${v.map(x=>"").join("}")}`}).filter(Boolean).join(p);a&&(d=[m[y],d].filter(Boolean).join(p));let $=c?"":`/* layer: ${y} */${p}`;return R[y]=d?$+d:""},E=(y=V,d)=>y.filter($=>!d?.includes($)).map($=>O($)||"").filter(Boolean).join(p);return{get css(){return E()},layers:V,matched:u,getLayers:E,getLayer:O}}async matchVariants(t,r){let n=new Set,o=[],a=r||t,i=!1,c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){i=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let p=await l.match(a,c);if(p){j(p)&&(p={matcher:p}),a=p.matcher,o.unshift(p),n.add(l),i=!0;break}}if(!i)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,a,o,n]}applyVariants(t,r=t[4],n=t[1]){let a=r.slice().sort((p,f)=>(p.order||0)-(f.order||0)).reduceRight((p,f)=>u=>{let g=f.body?.(u.entries)||u.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??ns)({...u,entries:g,selector:f.selector?.(u.selector,g)||u.selector,parent:m[0]||u.parent,parentOrder:m[1]||u.parentOrder,layer:f.layer||u.layer,sort:f.sort||u.sort},p)},p=>p)({prefix:"",selector:rs(n),pseudo:"",entries:t[2]}),{parent:i,parentOrder:c}=a;i!=null&&c!=null&&this.parentOrders.set(i,c);let l={selector:[a.prefix,a.selector,a.pseudo].join(""),entries:a.entries,parent:i,layer:a.layer,sort:a.sort,noMerge:a.noMerge};for(let p of this.config.postprocess)p(l);return l}constructCustomCSS(t,r,n){let o=ge(r);if(j(o))return o;let{selector:a,entries:i,parent:c}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${a}{${be(i)}}`;return c?`${c}{${l}}`:l}async parseUtil(t,r,n=!1,o){let[a,i,c]=j(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[i];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let f=l[0],u=ge(l[1]),g=l[2];return j(u)?[[f,u,g]]:[[f,a,u,g,c]]}r.variantHandlers=c;let{rulesDynamic:p}=this.config;for(let[f,u,g,m]of p){if(m?.internal&&!n)continue;let C=i;if(m?.prefix){let E=T(m.prefix);if(o){let y=T(o);if(!E.some(d=>y.includes(d)))continue}else{let y=E.find(d=>i.startsWith(d));if(y==null)continue;C=i.slice(y.length)}}let V=C.match(u);if(!V)continue;let R=await g(V,r);if(!R)continue;this.config.details&&r.rules.push([u,g,m]);let O=gn(R).filter(E=>E.length);if(O.length)return O.map(E=>j(E
${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var xr=[[/^fill-(.+)$/,z("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":s.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"stroke-width":t.lineWidth?.[e]??s.bracket.cssvar.fraction.px.number(e)}),{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":s.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??s.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,z("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":s.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var Jn=[gr,br,fr,ur,Ht,yt,$t,xr,xt,Jt,Qt,zt,Tt,jt,tr,wt,Et,Vt,rr,ft,vt,nr,or,cr,ir,Rt,Ot,At,Mt,lr,pr,It,Gt,qt,Yt,pt,Xt,Zt,er,_t,gt,bt,Ut,Oe,Pe,Ft,Wt,Dt,Lt,Bt,Nt,Ct,mr,ht,kt,Kt,hr].flat(1);var Kr={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",