@vuebro/runtime 1.2.21 → 1.3.0
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/README.md +1 -1
- package/dist/.vite/manifest.json +1 -1
- package/dist/assets/index-DeF6OznI.js +16 -0
- package/dist/assets/{loader-sfc.esm-browser.prod-2.3.32.js → loader-sfc.esm-browser.prod-2.3.33.js} +2214 -2213
- package/dist/assets/{shared-DC1v77v-.js → shared-DOpc0w84.js} +1 -1
- package/dist/assets/{unocss-qygxT6dr.js → unocss-BKXTr99u.js} +1 -1
- package/dist/assets/vue.esm-browser.prod-3.5.25.js +13 -0
- package/dist/index.html +3 -3
- package/package.json +9 -7
- package/dist/assets/index-CzKj8HRR.js +0 -1
- package/dist/assets/vue.esm-browser.prod-3.5.24.js +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{computed as Zt,toRef as vn,toRefs as In,reactive as $n,ref as Cn,watch as wn}from"vue";import{o as An}from"./unocss-qygxT6dr.js";function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var p=function i(){var m=!1;try{m=this instanceof i}catch{}return m?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};p.prototype=t.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var m=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(p,i,m.get?m:{enumerable:!0,get:function(){return e[i]}})}),p}function Dn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pt={exports:{}};const Vn={},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"})),Ln=Mn(Fn);var Xt;function Un(){return Xt||(Xt=1,(function(e){(function(){var t,p=0,i=[],m;for(m=0;m<256;m++)i[m]=(m+256).toString(16).substr(1);h.BUFFER_SIZE=4096,h.bin=l,h.clearBuffer=function(){t=null,p=0},h.test=function(_){return typeof _=="string"?/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_):!1};var s;typeof crypto<"u"?s=crypto:typeof window<"u"&&typeof window.msCrypto<"u"&&(s=window.msCrypto),typeof Dn=="function"?(s=s||Ln,e.exports=h):typeof window<"u"&&(window.uuid=h),h.randomBytes=(function(){if(s){if(s.randomBytes)return s.randomBytes;if(s.getRandomValues)return typeof Uint8Array.prototype.slice!="function"?function(_){var g=new Uint8Array(_);return s.getRandomValues(g),Array.from(g)}:function(_){var g=new Uint8Array(_);return s.getRandomValues(g),g}}return function(_){var g,P=[];for(g=0;g<_;g++)P.push(Math.floor(Math.random()*256));return P}})();function f(_){return(!t||p+_>h.BUFFER_SIZE)&&(p=0,t=h.randomBytes(h.BUFFER_SIZE)),t.slice(p,p+=_)}function l(){var _=f(16);return _[6]=_[6]&15|64,_[8]=_[8]&63|128,_}function h(){var _=l();return i[_[0]]+i[_[1]]+i[_[2]]+i[_[3]]+"-"+i[_[4]]+i[_[5]]+"-"+i[_[6]]+i[_[7]]+"-"+i[_[8]]+i[_[9]]+"-"+i[_[10]]+i[_[11]]+i[_[12]]+i[_[13]]+i[_[14]]+i[_[15]]}})()})(Pt)),Pt.exports}var zn=Un();const Ft=Ht(zn),Yt=!0,xt=(e,t)=>[...e].reverse().map(p=>({node:p,parent:t,siblings:e})),Kn=(e,{branch:t="branch",children:p="children",id:i="id",index:m="index",next:s="next",parent:f="parent",prev:l="prev",siblings:h="siblings"}={})=>{const _={[t]:{get(){const y=[this];for(;y[0]?.[f];)y.unshift(y[0][f]);return y}},[m]:{get(){return this[h].findIndex(y=>this[i]===y[i])}},[s]:{get(){return this[h][this[m]+1]}},[l]:{get(){return this[h][this[m]-1]}}},g=function*(y){const b=xt(y.value);for(;b.length;){const{node:o,parent:u,siblings:r}=b.pop()??{};o&&(o[f]!==u&&Object.defineProperty(o,f,{configurable:Yt,value:u}),o[h]!==r&&Object.defineProperty(o,h,{configurable:Yt,value:r}),Object.keys(_).some(a=>!(a in o))&&Object.defineProperties(o,_),yield o,b.push(...xt(o[p]??[],o)))}},P=Zt(()=>[...g(vn(e))]),$=Zt(()=>Object.fromEntries(P.value.map(y=>[y[i],y]))),w=(y,b)=>{const o=$.value[y];if(o){const[u]=P.value,r=o[m],a=o[s],v=r+1,n=o[f],d=o[l],E=r-1,O=o[h];switch(b){case"add":{const C=Ft();return O.splice(v,0,{[i]:C}),C}case"addChild":{const C=Ft();return Array.isArray(o[p])||(o[p]=[]),o[p].unshift({[i]:C}),C}case"down":r<O.length-1&&O[r]&&O[v]&&([O[r],O[v]]=[O[v],O[r]]);break;case"left":if(n?.[f])return n[h].splice(n[m]+1,0,...O.splice(r,1)),n[i];break;case"remove":{const C=a?.[i]??d?.[i]??n?.[i]??u?.[i];return O.splice(r,1),C}case"right":if(d){const C=d[p]??[],D=d[i];return d[p]=[...C,...O.splice(r,1)],D}break;case"up":r&&O[r]&&O[E]&&([O[E],O[r]]=[O[r],O[E]]);break}}};return{add:y=>w(y,"add"),addChild:y=>w(y,"addChild"),down:y=>w(y,"down"),kvNodes:$,left:y=>w(y,"left"),nodes:P,remove:y=>w(y,"remove"),right:y=>w(y,"right"),up:y=>w(y,"up")}};var Te={exports:{}},jt={},me={},we={},Rt={},Nt={},Ot={},er;function yt(){return er||(er=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class p extends t{constructor(r){if(super(),!e.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=p;class i extends t{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((a,v)=>`${a}${v}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((a,v)=>(v instanceof p&&(a[v.str]=(a[v.str]||0)+1),a),{})}}e._Code=i,e.nil=new i("");function m(u,...r){const a=[u[0]];let v=0;for(;v<r.length;)l(a,r[v]),a.push(u[++v]);return new i(a)}e._=m;const s=new i("+");function f(u,...r){const a=[w(u[0])];let v=0;for(;v<r.length;)a.push(s),l(a,r[v]),a.push(s,w(u[++v]));return h(a),new i(a)}e.str=f;function l(u,r){r instanceof i?u.push(...r._items):r instanceof p?u.push(r):u.push(P(r))}e.addCodeArg=l;function h(u){let r=1;for(;r<u.length-1;){if(u[r]===s){const a=_(u[r-1],u[r+1]);if(a!==void 0){u.splice(r-1,3,a);continue}u[r++]="+"}r++}}function _(u,r){if(r==='""')return u;if(u==='""')return r;if(typeof u=="string")return r instanceof p||u[u.length-1]!=='"'?void 0:typeof r!="string"?`${u.slice(0,-1)}${r}"`:r[0]==='"'?u.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(u instanceof p))return`"${u}${r.slice(1)}`}function g(u,r){return r.emptyStr()?u:u.emptyStr()?r:f`${u}${r}`}e.strConcat=g;function P(u){return typeof u=="number"||typeof u=="boolean"||u===null?u:w(Array.isArray(u)?u.join(","):u)}function $(u){return new i(w(u))}e.stringify=$;function w(u){return JSON.stringify(u).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=w;function y(u){return typeof u=="string"&&e.IDENTIFIER.test(u)?new i(`.${u}`):m`[${u}]`}e.getProperty=y;function b(u){if(typeof u=="string"&&e.IDENTIFIER.test(u))return new i(`${u}`);throw new Error(`CodeGen: invalid export name: ${u}, use explicit $id name mapping`)}e.getEsmExportName=b;function o(u){return new i(u.toString())}e.regexpCode=o})(Ot)),Ot}var kt={},tr;function rr(){return tr||(tr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=yt();class p extends Error{constructor(_){super(`CodeGen: "code" for ${_} not defined`),this.value=_.value}}var i;(function(h){h[h.Started=0]="Started",h[h.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class m{constructor({prefixes:_,parent:g}={}){this._names={},this._prefixes=_,this._parent=g}toName(_){return _ instanceof t.Name?_:this.name(_)}name(_){return new t.Name(this._newName(_))}_newName(_){const g=this._names[_]||this._nameGroup(_);return`${_}${g.index++}`}_nameGroup(_){var g,P;if(!((P=(g=this._parent)===null||g===void 0?void 0:g._prefixes)===null||P===void 0)&&P.has(_)||this._prefixes&&!this._prefixes.has(_))throw new Error(`CodeGen: prefix "${_}" is not allowed in this scope`);return this._names[_]={prefix:_,index:0}}}e.Scope=m;class s extends t.Name{constructor(_,g){super(g),this.prefix=_}setValue(_,{property:g,itemIndex:P}){this.value=_,this.scopePath=(0,t._)`.${new t.Name(g)}[${P}]`}}e.ValueScopeName=s;const f=(0,t._)`\n`;class l extends m{constructor(_){super(_),this._values={},this._scope=_.scope,this.opts={..._,_n:_.lines?f:t.nil}}get(){return this._scope}name(_){return new s(_,this._newName(_))}value(_,g){var P;if(g.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(_),{prefix:w}=$,y=(P=g.key)!==null&&P!==void 0?P:g.ref;let b=this._values[w];if(b){const r=b.get(y);if(r)return r}else b=this._values[w]=new Map;b.set(y,$);const o=this._scope[w]||(this._scope[w]=[]),u=o.length;return o[u]=g.ref,$.setValue(g,{property:w,itemIndex:u}),$}getValue(_,g){const P=this._values[_];if(P)return P.get(g)}scopeRefs(_,g=this._values){return this._reduceValues(g,P=>{if(P.scopePath===void 0)throw new Error(`CodeGen: name "${P}" has no value`);return(0,t._)`${_}${P.scopePath}`})}scopeCode(_=this._values,g,P){return this._reduceValues(_,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},g,P)}_reduceValues(_,g,P={},$){let w=t.nil;for(const y in _){const b=_[y];if(!b)continue;const o=P[y]=P[y]||new Map;b.forEach(u=>{if(o.has(u))return;o.set(u,i.Started);let r=g(u);if(r){const a=this.opts.es5?e.varKinds.var:e.varKinds.const;w=(0,t._)`${w}${a} ${u} = ${r};${this.opts._n}`}else if(r=$?.(u))w=(0,t._)`${w}${r}${this.opts._n}`;else throw new p(u);o.set(u,i.Completed)})}return w}}e.ValueScope=l})(kt)),kt}var nr;function J(){return nr||(nr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=yt(),p=rr();var i=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var m=rr();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return m.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return m.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return m.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return m.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(c,S){return this}}class f extends s{constructor(c,S,T){super(),this.varKind=c,this.name=S,this.rhs=T}render({es5:c,_n:S}){const T=c?p.varKinds.var:this.varKind,F=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${F};`+S}optimizeNames(c,S){if(c[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,c,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(c,S,T){super(),this.lhs=c,this.rhs=S,this.sideEffects=T}render({_n:c}){return`${this.lhs} = ${this.rhs};`+c}optimizeNames(c,S){if(!(this.lhs instanceof t.Name&&!c[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,c,S),this}get names(){const c=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(c,this.rhs)}}class h extends l{constructor(c,S,T,F){super(c,T,F),this.op=S}render({_n:c}){return`${this.lhs} ${this.op}= ${this.rhs};`+c}}class _ extends s{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`${this.label}:`+c}}class g extends s{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`break${this.label?` ${this.label}`:""};`+c}}class P extends s{constructor(c){super(),this.error=c}render({_n:c}){return`throw ${this.error};`+c}get names(){return this.error.names}}class $ extends s{constructor(c){super(),this.code=c}render({_n:c}){return`${this.code};`+c}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(c,S){return this.code=W(this.code,c,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class w extends s{constructor(c=[]){super(),this.nodes=c}render(c){return this.nodes.reduce((S,T)=>S+T.render(c),"")}optimizeNodes(){const{nodes:c}=this;let S=c.length;for(;S--;){const T=c[S].optimizeNodes();Array.isArray(T)?c.splice(S,1,...T):T?c[S]=T:c.splice(S,1)}return c.length>0?this:void 0}optimizeNames(c,S){const{nodes:T}=this;let F=T.length;for(;F--;){const U=T[F];U.optimizeNames(c,S)||(x(c,U.names),T.splice(F,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((c,S)=>K(c,S.names),{})}}class y extends w{render(c){return"{"+c._n+super.render(c)+"}"+c._n}}class b extends w{}class o extends y{}o.kind="else";class u extends y{constructor(c,S){super(S),this.condition=c}render(c){let S=`if(${this.condition})`+super.render(c);return this.else&&(S+="else "+this.else.render(c)),S}optimizeNodes(){super.optimizeNodes();const c=this.condition;if(c===!0)return this.nodes;let S=this.else;if(S){const T=S.optimizeNodes();S=this.else=Array.isArray(T)?new o(T):T}if(S)return c===!1?S instanceof u?S:S.nodes:this.nodes.length?this:new u(he(c),S instanceof u?[S]:S.nodes);if(!(c===!1||!this.nodes.length))return this}optimizeNames(c,S){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(c,S),!!(super.optimizeNames(c,S)||this.else))return this.condition=W(this.condition,c,S),this}get names(){const c=super.names;return z(c,this.condition),this.else&&K(c,this.else.names),c}}u.kind="if";class r extends y{}r.kind="for";class a extends r{constructor(c){super(),this.iteration=c}render(c){return`for(${this.iteration})`+super.render(c)}optimizeNames(c,S){if(super.optimizeNames(c,S))return this.iteration=W(this.iteration,c,S),this}get names(){return K(super.names,this.iteration.names)}}class v extends r{constructor(c,S,T,F){super(),this.varKind=c,this.name=S,this.from=T,this.to=F}render(c){const S=c.es5?p.varKinds.var:this.varKind,{name:T,from:F,to:U}=this;return`for(${S} ${T}=${F}; ${T}<${U}; ${T}++)`+super.render(c)}get names(){const c=z(super.names,this.from);return z(c,this.to)}}class n extends r{constructor(c,S,T,F){super(),this.loop=c,this.varKind=S,this.name=T,this.iterable=F}render(c){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(c)}optimizeNames(c,S){if(super.optimizeNames(c,S))return this.iterable=W(this.iterable,c,S),this}get names(){return K(super.names,this.iterable.names)}}class d extends y{constructor(c,S,T){super(),this.name=c,this.args=S,this.async=T}render(c){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(c)}}d.kind="func";class E extends w{render(c){return"return "+super.render(c)}}E.kind="return";class O extends y{render(c){let S="try"+super.render(c);return this.catch&&(S+=this.catch.render(c)),this.finally&&(S+=this.finally.render(c)),S}optimizeNodes(){var c,S;return super.optimizeNodes(),(c=this.catch)===null||c===void 0||c.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(c,S){var T,F;return super.optimizeNames(c,S),(T=this.catch)===null||T===void 0||T.optimizeNames(c,S),(F=this.finally)===null||F===void 0||F.optimizeNames(c,S),this}get names(){const c=super.names;return this.catch&&K(c,this.catch.names),this.finally&&K(c,this.finally.names),c}}class C extends y{constructor(c){super(),this.error=c}render(c){return`catch(${this.error})`+super.render(c)}}C.kind="catch";class D extends y{render(c){return"finally"+super.render(c)}}D.kind="finally";class V{constructor(c,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
1
|
+
import{computed as Zt,toRef as vn,toRefs as In,reactive as $n,ref as Cn,watch as wn}from"vue";import{o as An}from"./unocss-BKXTr99u.js";function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var p=function i(){var m=!1;try{m=this instanceof i}catch{}return m?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};p.prototype=t.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var m=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(p,i,m.get?m:{enumerable:!0,get:function(){return e[i]}})}),p}function Dn(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Pt={exports:{}};const Vn={},Fn=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"})),Ln=Mn(Fn);var Xt;function Un(){return Xt||(Xt=1,(function(e){(function(){var t,p=0,i=[],m;for(m=0;m<256;m++)i[m]=(m+256).toString(16).substr(1);h.BUFFER_SIZE=4096,h.bin=l,h.clearBuffer=function(){t=null,p=0},h.test=function(_){return typeof _=="string"?/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(_):!1};var s;typeof crypto<"u"?s=crypto:typeof window<"u"&&typeof window.msCrypto<"u"&&(s=window.msCrypto),typeof Dn=="function"?(s=s||Ln,e.exports=h):typeof window<"u"&&(window.uuid=h),h.randomBytes=(function(){if(s){if(s.randomBytes)return s.randomBytes;if(s.getRandomValues)return typeof Uint8Array.prototype.slice!="function"?function(_){var g=new Uint8Array(_);return s.getRandomValues(g),Array.from(g)}:function(_){var g=new Uint8Array(_);return s.getRandomValues(g),g}}return function(_){var g,P=[];for(g=0;g<_;g++)P.push(Math.floor(Math.random()*256));return P}})();function f(_){return(!t||p+_>h.BUFFER_SIZE)&&(p=0,t=h.randomBytes(h.BUFFER_SIZE)),t.slice(p,p+=_)}function l(){var _=f(16);return _[6]=_[6]&15|64,_[8]=_[8]&63|128,_}function h(){var _=l();return i[_[0]]+i[_[1]]+i[_[2]]+i[_[3]]+"-"+i[_[4]]+i[_[5]]+"-"+i[_[6]]+i[_[7]]+"-"+i[_[8]]+i[_[9]]+"-"+i[_[10]]+i[_[11]]+i[_[12]]+i[_[13]]+i[_[14]]+i[_[15]]}})()})(Pt)),Pt.exports}var zn=Un();const Ft=Ht(zn),Yt=!0,xt=(e,t)=>[...e].reverse().map(p=>({node:p,parent:t,siblings:e})),Kn=(e,{branch:t="branch",children:p="children",id:i="id",index:m="index",next:s="next",parent:f="parent",prev:l="prev",siblings:h="siblings"}={})=>{const _={[t]:{get(){const y=[this];for(;y[0]?.[f];)y.unshift(y[0][f]);return y}},[m]:{get(){return this[h].findIndex(y=>this[i]===y[i])}},[s]:{get(){return this[h][this[m]+1]}},[l]:{get(){return this[h][this[m]-1]}}},g=function*(y){const b=xt(y.value);for(;b.length;){const{node:o,parent:u,siblings:r}=b.pop()??{};o&&(o[f]!==u&&Object.defineProperty(o,f,{configurable:Yt,value:u}),o[h]!==r&&Object.defineProperty(o,h,{configurable:Yt,value:r}),Object.keys(_).some(a=>!(a in o))&&Object.defineProperties(o,_),yield o,b.push(...xt(o[p]??[],o)))}},P=Zt(()=>[...g(vn(e))]),$=Zt(()=>Object.fromEntries(P.value.map(y=>[y[i],y]))),w=(y,b)=>{const o=$.value[y];if(o){const[u]=P.value,r=o[m],a=o[s],v=r+1,n=o[f],d=o[l],E=r-1,O=o[h];switch(b){case"add":{const C=Ft();return O.splice(v,0,{[i]:C}),C}case"addChild":{const C=Ft();return Array.isArray(o[p])||(o[p]=[]),o[p].unshift({[i]:C}),C}case"down":r<O.length-1&&O[r]&&O[v]&&([O[r],O[v]]=[O[v],O[r]]);break;case"left":if(n?.[f])return n[h].splice(n[m]+1,0,...O.splice(r,1)),n[i];break;case"remove":{const C=a?.[i]??d?.[i]??n?.[i]??u?.[i];return O.splice(r,1),C}case"right":if(d){const C=d[p]??[],D=d[i];return d[p]=[...C,...O.splice(r,1)],D}break;case"up":r&&O[r]&&O[E]&&([O[E],O[r]]=[O[r],O[E]]);break}}};return{add:y=>w(y,"add"),addChild:y=>w(y,"addChild"),down:y=>w(y,"down"),kvNodes:$,left:y=>w(y,"left"),nodes:P,remove:y=>w(y,"remove"),right:y=>w(y,"right"),up:y=>w(y,"up")}};var Te={exports:{}},jt={},me={},we={},Rt={},Nt={},Ot={},er;function yt(){return er||(er=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class p extends t{constructor(r){if(super(),!e.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=p;class i extends t{constructor(r){super(),this._items=typeof r=="string"?[r]:r}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const r=this._items[0];return r===""||r==='""'}get str(){var r;return(r=this._str)!==null&&r!==void 0?r:this._str=this._items.reduce((a,v)=>`${a}${v}`,"")}get names(){var r;return(r=this._names)!==null&&r!==void 0?r:this._names=this._items.reduce((a,v)=>(v instanceof p&&(a[v.str]=(a[v.str]||0)+1),a),{})}}e._Code=i,e.nil=new i("");function m(u,...r){const a=[u[0]];let v=0;for(;v<r.length;)l(a,r[v]),a.push(u[++v]);return new i(a)}e._=m;const s=new i("+");function f(u,...r){const a=[w(u[0])];let v=0;for(;v<r.length;)a.push(s),l(a,r[v]),a.push(s,w(u[++v]));return h(a),new i(a)}e.str=f;function l(u,r){r instanceof i?u.push(...r._items):r instanceof p?u.push(r):u.push(P(r))}e.addCodeArg=l;function h(u){let r=1;for(;r<u.length-1;){if(u[r]===s){const a=_(u[r-1],u[r+1]);if(a!==void 0){u.splice(r-1,3,a);continue}u[r++]="+"}r++}}function _(u,r){if(r==='""')return u;if(u==='""')return r;if(typeof u=="string")return r instanceof p||u[u.length-1]!=='"'?void 0:typeof r!="string"?`${u.slice(0,-1)}${r}"`:r[0]==='"'?u.slice(0,-1)+r.slice(1):void 0;if(typeof r=="string"&&r[0]==='"'&&!(u instanceof p))return`"${u}${r.slice(1)}`}function g(u,r){return r.emptyStr()?u:u.emptyStr()?r:f`${u}${r}`}e.strConcat=g;function P(u){return typeof u=="number"||typeof u=="boolean"||u===null?u:w(Array.isArray(u)?u.join(","):u)}function $(u){return new i(w(u))}e.stringify=$;function w(u){return JSON.stringify(u).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=w;function y(u){return typeof u=="string"&&e.IDENTIFIER.test(u)?new i(`.${u}`):m`[${u}]`}e.getProperty=y;function b(u){if(typeof u=="string"&&e.IDENTIFIER.test(u))return new i(`${u}`);throw new Error(`CodeGen: invalid export name: ${u}, use explicit $id name mapping`)}e.getEsmExportName=b;function o(u){return new i(u.toString())}e.regexpCode=o})(Ot)),Ot}var kt={},tr;function rr(){return tr||(tr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=yt();class p extends Error{constructor(_){super(`CodeGen: "code" for ${_} not defined`),this.value=_.value}}var i;(function(h){h[h.Started=0]="Started",h[h.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class m{constructor({prefixes:_,parent:g}={}){this._names={},this._prefixes=_,this._parent=g}toName(_){return _ instanceof t.Name?_:this.name(_)}name(_){return new t.Name(this._newName(_))}_newName(_){const g=this._names[_]||this._nameGroup(_);return`${_}${g.index++}`}_nameGroup(_){var g,P;if(!((P=(g=this._parent)===null||g===void 0?void 0:g._prefixes)===null||P===void 0)&&P.has(_)||this._prefixes&&!this._prefixes.has(_))throw new Error(`CodeGen: prefix "${_}" is not allowed in this scope`);return this._names[_]={prefix:_,index:0}}}e.Scope=m;class s extends t.Name{constructor(_,g){super(g),this.prefix=_}setValue(_,{property:g,itemIndex:P}){this.value=_,this.scopePath=(0,t._)`.${new t.Name(g)}[${P}]`}}e.ValueScopeName=s;const f=(0,t._)`\n`;class l extends m{constructor(_){super(_),this._values={},this._scope=_.scope,this.opts={..._,_n:_.lines?f:t.nil}}get(){return this._scope}name(_){return new s(_,this._newName(_))}value(_,g){var P;if(g.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(_),{prefix:w}=$,y=(P=g.key)!==null&&P!==void 0?P:g.ref;let b=this._values[w];if(b){const r=b.get(y);if(r)return r}else b=this._values[w]=new Map;b.set(y,$);const o=this._scope[w]||(this._scope[w]=[]),u=o.length;return o[u]=g.ref,$.setValue(g,{property:w,itemIndex:u}),$}getValue(_,g){const P=this._values[_];if(P)return P.get(g)}scopeRefs(_,g=this._values){return this._reduceValues(g,P=>{if(P.scopePath===void 0)throw new Error(`CodeGen: name "${P}" has no value`);return(0,t._)`${_}${P.scopePath}`})}scopeCode(_=this._values,g,P){return this._reduceValues(_,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},g,P)}_reduceValues(_,g,P={},$){let w=t.nil;for(const y in _){const b=_[y];if(!b)continue;const o=P[y]=P[y]||new Map;b.forEach(u=>{if(o.has(u))return;o.set(u,i.Started);let r=g(u);if(r){const a=this.opts.es5?e.varKinds.var:e.varKinds.const;w=(0,t._)`${w}${a} ${u} = ${r};${this.opts._n}`}else if(r=$?.(u))w=(0,t._)`${w}${r}${this.opts._n}`;else throw new p(u);o.set(u,i.Completed)})}return w}}e.ValueScope=l})(kt)),kt}var nr;function J(){return nr||(nr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=yt(),p=rr();var i=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var m=rr();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return m.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return m.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return m.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return m.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(c,S){return this}}class f extends s{constructor(c,S,T){super(),this.varKind=c,this.name=S,this.rhs=T}render({es5:c,_n:S}){const T=c?p.varKinds.var:this.varKind,F=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${F};`+S}optimizeNames(c,S){if(c[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,c,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(c,S,T){super(),this.lhs=c,this.rhs=S,this.sideEffects=T}render({_n:c}){return`${this.lhs} = ${this.rhs};`+c}optimizeNames(c,S){if(!(this.lhs instanceof t.Name&&!c[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,c,S),this}get names(){const c=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(c,this.rhs)}}class h extends l{constructor(c,S,T,F){super(c,T,F),this.op=S}render({_n:c}){return`${this.lhs} ${this.op}= ${this.rhs};`+c}}class _ extends s{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`${this.label}:`+c}}class g extends s{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`break${this.label?` ${this.label}`:""};`+c}}class P extends s{constructor(c){super(),this.error=c}render({_n:c}){return`throw ${this.error};`+c}get names(){return this.error.names}}class $ extends s{constructor(c){super(),this.code=c}render({_n:c}){return`${this.code};`+c}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(c,S){return this.code=W(this.code,c,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class w extends s{constructor(c=[]){super(),this.nodes=c}render(c){return this.nodes.reduce((S,T)=>S+T.render(c),"")}optimizeNodes(){const{nodes:c}=this;let S=c.length;for(;S--;){const T=c[S].optimizeNodes();Array.isArray(T)?c.splice(S,1,...T):T?c[S]=T:c.splice(S,1)}return c.length>0?this:void 0}optimizeNames(c,S){const{nodes:T}=this;let F=T.length;for(;F--;){const U=T[F];U.optimizeNames(c,S)||(x(c,U.names),T.splice(F,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((c,S)=>K(c,S.names),{})}}class y extends w{render(c){return"{"+c._n+super.render(c)+"}"+c._n}}class b extends w{}class o extends y{}o.kind="else";class u extends y{constructor(c,S){super(S),this.condition=c}render(c){let S=`if(${this.condition})`+super.render(c);return this.else&&(S+="else "+this.else.render(c)),S}optimizeNodes(){super.optimizeNodes();const c=this.condition;if(c===!0)return this.nodes;let S=this.else;if(S){const T=S.optimizeNodes();S=this.else=Array.isArray(T)?new o(T):T}if(S)return c===!1?S instanceof u?S:S.nodes:this.nodes.length?this:new u(he(c),S instanceof u?[S]:S.nodes);if(!(c===!1||!this.nodes.length))return this}optimizeNames(c,S){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(c,S),!!(super.optimizeNames(c,S)||this.else))return this.condition=W(this.condition,c,S),this}get names(){const c=super.names;return z(c,this.condition),this.else&&K(c,this.else.names),c}}u.kind="if";class r extends y{}r.kind="for";class a extends r{constructor(c){super(),this.iteration=c}render(c){return`for(${this.iteration})`+super.render(c)}optimizeNames(c,S){if(super.optimizeNames(c,S))return this.iteration=W(this.iteration,c,S),this}get names(){return K(super.names,this.iteration.names)}}class v extends r{constructor(c,S,T,F){super(),this.varKind=c,this.name=S,this.from=T,this.to=F}render(c){const S=c.es5?p.varKinds.var:this.varKind,{name:T,from:F,to:U}=this;return`for(${S} ${T}=${F}; ${T}<${U}; ${T}++)`+super.render(c)}get names(){const c=z(super.names,this.from);return z(c,this.to)}}class n extends r{constructor(c,S,T,F){super(),this.loop=c,this.varKind=S,this.name=T,this.iterable=F}render(c){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(c)}optimizeNames(c,S){if(super.optimizeNames(c,S))return this.iterable=W(this.iterable,c,S),this}get names(){return K(super.names,this.iterable.names)}}class d extends y{constructor(c,S,T){super(),this.name=c,this.args=S,this.async=T}render(c){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(c)}}d.kind="func";class E extends w{render(c){return"return "+super.render(c)}}E.kind="return";class O extends y{render(c){let S="try"+super.render(c);return this.catch&&(S+=this.catch.render(c)),this.finally&&(S+=this.finally.render(c)),S}optimizeNodes(){var c,S;return super.optimizeNodes(),(c=this.catch)===null||c===void 0||c.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(c,S){var T,F;return super.optimizeNames(c,S),(T=this.catch)===null||T===void 0||T.optimizeNames(c,S),(F=this.finally)===null||F===void 0||F.optimizeNames(c,S),this}get names(){const c=super.names;return this.catch&&K(c,this.catch.names),this.finally&&K(c,this.finally.names),c}}class C extends y{constructor(c){super(),this.error=c}render(c){return`catch(${this.error})`+super.render(c)}}C.kind="catch";class D extends y{render(c){return"finally"+super.render(c)}}D.kind="finally";class V{constructor(c,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
2
2
|
`:""},this._extScope=c,this._scope=new p.Scope({parent:c}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(c){return this._scope.name(c)}scopeName(c){return this._extScope.name(c)}scopeValue(c,S){const T=this._extScope.value(c,S);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(c,S){return this._extScope.getValue(c,S)}scopeRefs(c){return this._extScope.scopeRefs(c,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(c,S,T,F){const U=this._scope.toName(S);return T!==void 0&&F&&(this._constants[U.str]=T),this._leafNode(new f(c,U,T)),U}const(c,S,T){return this._def(p.varKinds.const,c,S,T)}let(c,S,T){return this._def(p.varKinds.let,c,S,T)}var(c,S,T){return this._def(p.varKinds.var,c,S,T)}assign(c,S,T){return this._leafNode(new l(c,S,T))}add(c,S){return this._leafNode(new h(c,e.operators.ADD,S))}code(c){return typeof c=="function"?c():c!==t.nil&&this._leafNode(new $(c)),this}object(...c){const S=["{"];for(const[T,F]of c)S.length>1&&S.push(","),S.push(T),(T!==F||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,F));return S.push("}"),new t._Code(S)}if(c,S,T){if(this._blockNode(new u(c)),S&&T)this.code(S).else().code(T).endIf();else if(S)this.code(S).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(c){return this._elseNode(new u(c))}else(){return this._elseNode(new o)}endIf(){return this._endBlockNode(u,o)}_for(c,S){return this._blockNode(c),S&&this.code(S).endFor(),this}for(c,S){return this._for(new a(c),S)}forRange(c,S,T,F,U=this.opts.es5?p.varKinds.var:p.varKinds.let){const Z=this._scope.toName(c);return this._for(new v(U,Z,S,T),()=>F(Z))}forOf(c,S,T,F=p.varKinds.const){const U=this._scope.toName(c);if(this.opts.es5){const Z=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${Z}.length`,B=>{this.var(U,(0,t._)`${Z}[${B}]`),T(U)})}return this._for(new n("of",F,U,S),()=>T(U))}forIn(c,S,T,F=this.opts.es5?p.varKinds.var:p.varKinds.const){if(this.opts.ownProperties)return this.forOf(c,(0,t._)`Object.keys(${S})`,T);const U=this._scope.toName(c);return this._for(new n("in",F,U,S),()=>T(U))}endFor(){return this._endBlockNode(r)}label(c){return this._leafNode(new _(c))}break(c){return this._leafNode(new g(c))}return(c){const S=new E;if(this._blockNode(S),this.code(c),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(c,S,T){if(!S&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const F=new O;if(this._blockNode(F),this.code(c),S){const U=this.name("e");this._currNode=F.catch=new C(U),S(U)}return T&&(this._currNode=F.finally=new D,this.code(T)),this._endBlockNode(C,D)}throw(c){return this._leafNode(new P(c))}block(c,S){return this._blockStarts.push(this._nodes.length),c&&this.code(c).endBlock(S),this}endBlock(c){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-S;if(T<0||c!==void 0&&T!==c)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${c} expected`);return this._nodes.length=S,this}func(c,S=t.nil,T,F){return this._blockNode(new d(c,S,T)),F&&this.code(F).endFunc(),this}endFunc(){return this._endBlockNode(d)}optimize(c=1){for(;c-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(c){return this._currNode.nodes.push(c),this}_blockNode(c){this._currNode.nodes.push(c),this._nodes.push(c)}_endBlockNode(c,S){const T=this._currNode;if(T instanceof c||S&&T instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${c.kind}/${S.kind}`:c.kind}"`)}_elseNode(c){const S=this._currNode;if(!(S instanceof u))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=c,this}get _root(){return this._nodes[0]}get _currNode(){const c=this._nodes;return c[c.length-1]}set _currNode(c){const S=this._nodes;S[S.length-1]=c}}e.CodeGen=V;function K(k,c){for(const S in c)k[S]=(k[S]||0)+(c[S]||0);return k}function z(k,c){return c instanceof t._CodeOrName?K(k,c.names):k}function W(k,c,S){if(k instanceof t.Name)return T(k);if(!F(k))return k;return new t._Code(k._items.reduce((U,Z)=>(Z instanceof t.Name&&(Z=T(Z)),Z instanceof t._Code?U.push(...Z._items):U.push(Z),U),[]));function T(U){const Z=S[U.str];return Z===void 0||c[U.str]!==1?U:(delete c[U.str],Z)}function F(U){return U instanceof t._Code&&U._items.some(Z=>Z instanceof t.Name&&c[Z.str]===1&&S[Z.str]!==void 0)}}function x(k,c){for(const S in c)k[S]=(k[S]||0)-(c[S]||0)}function he(k){return typeof k=="boolean"||typeof k=="number"||k===null?!k:(0,t._)`!${I(k)}`}e.not=he;const pe=R(e.operators.AND);function Y(...k){return k.reduce(pe)}e.and=Y;const _e=R(e.operators.OR);function A(...k){return k.reduce(_e)}e.or=A;function R(k){return(c,S)=>c===t.nil?S:S===t.nil?c:(0,t._)`${I(c)} ${k} ${I(S)}`}function I(k){return k instanceof t.Name?k:(0,t._)`(${k})`}})(Nt)),Nt}var H={},sr;function Q(){if(sr)return H;sr=1,Object.defineProperty(H,"__esModule",{value:!0}),H.checkStrictMode=H.getErrorPath=H.Type=H.useFunc=H.setEvaluated=H.evaluatedPropsToName=H.mergeEvaluated=H.eachItem=H.unescapeJsonPointer=H.escapeJsonPointer=H.escapeFragment=H.unescapeFragment=H.schemaRefOrVal=H.schemaHasRulesButRef=H.schemaHasRules=H.checkUnknownRules=H.alwaysValidSchema=H.toHash=void 0;const e=J(),t=yt();function p(n){const d={};for(const E of n)d[E]=!0;return d}H.toHash=p;function i(n,d){return typeof d=="boolean"?d:Object.keys(d).length===0?!0:(m(n,d),!s(d,n.self.RULES.all))}H.alwaysValidSchema=i;function m(n,d=n.schema){const{opts:E,self:O}=n;if(!E.strictSchema||typeof d=="boolean")return;const C=O.RULES.keywords;for(const D in d)C[D]||v(n,`unknown keyword: "${D}"`)}H.checkUnknownRules=m;function s(n,d){if(typeof n=="boolean")return!n;for(const E in n)if(d[E])return!0;return!1}H.schemaHasRules=s;function f(n,d){if(typeof n=="boolean")return!n;for(const E in n)if(E!=="$ref"&&d.all[E])return!0;return!1}H.schemaHasRulesButRef=f;function l({topSchemaRef:n,schemaPath:d},E,O,C){if(!C){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,e._)`${E}`}return(0,e._)`${n}${d}${(0,e.getProperty)(O)}`}H.schemaRefOrVal=l;function h(n){return P(decodeURIComponent(n))}H.unescapeFragment=h;function _(n){return encodeURIComponent(g(n))}H.escapeFragment=_;function g(n){return typeof n=="number"?`${n}`:n.replace(/~/g,"~0").replace(/\//g,"~1")}H.escapeJsonPointer=g;function P(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")}H.unescapeJsonPointer=P;function $(n,d){if(Array.isArray(n))for(const E of n)d(E);else d(n)}H.eachItem=$;function w({mergeNames:n,mergeToName:d,mergeValues:E,resultToName:O}){return(C,D,V,K)=>{const z=V===void 0?D:V instanceof e.Name?(D instanceof e.Name?n(C,D,V):d(C,D,V),V):D instanceof e.Name?(d(C,V,D),D):E(D,V);return K===e.Name&&!(z instanceof e.Name)?O(C,z):z}}H.mergeEvaluated={props:w({mergeNames:(n,d,E)=>n.if((0,e._)`${E} !== true && ${d} !== undefined`,()=>{n.if((0,e._)`${d} === true`,()=>n.assign(E,!0),()=>n.assign(E,(0,e._)`${E} || {}`).code((0,e._)`Object.assign(${E}, ${d})`))}),mergeToName:(n,d,E)=>n.if((0,e._)`${E} !== true`,()=>{d===!0?n.assign(E,!0):(n.assign(E,(0,e._)`${E} || {}`),b(n,E,d))}),mergeValues:(n,d)=>n===!0?!0:{...n,...d},resultToName:y}),items:w({mergeNames:(n,d,E)=>n.if((0,e._)`${E} !== true && ${d} !== undefined`,()=>n.assign(E,(0,e._)`${d} === true ? true : ${E} > ${d} ? ${E} : ${d}`)),mergeToName:(n,d,E)=>n.if((0,e._)`${E} !== true`,()=>n.assign(E,d===!0?!0:(0,e._)`${E} > ${d} ? ${E} : ${d}`)),mergeValues:(n,d)=>n===!0?!0:Math.max(n,d),resultToName:(n,d)=>n.var("items",d)})};function y(n,d){if(d===!0)return n.var("props",!0);const E=n.var("props",(0,e._)`{}`);return d!==void 0&&b(n,E,d),E}H.evaluatedPropsToName=y;function b(n,d,E){Object.keys(E).forEach(O=>n.assign((0,e._)`${d}${(0,e.getProperty)(O)}`,!0))}H.setEvaluated=b;const o={};function u(n,d){return n.scopeValue("func",{ref:d,code:o[d.code]||(o[d.code]=new t._Code(d.code))})}H.useFunc=u;var r;(function(n){n[n.Num=0]="Num",n[n.Str=1]="Str"})(r||(H.Type=r={}));function a(n,d,E){if(n instanceof e.Name){const O=d===r.Num;return E?O?(0,e._)`"[" + ${n} + "]"`:(0,e._)`"['" + ${n} + "']"`:O?(0,e._)`"/" + ${n}`:(0,e._)`"/" + ${n}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,e.getProperty)(n).toString():"/"+g(n)}H.getErrorPath=a;function v(n,d,E=n.opts.strictSchema){if(E){if(d=`strict mode: ${d}`,E===!0)throw new Error(d);n.self.logger.warn(d)}}return H.checkStrictMode=v,H}var qe={},or;function $e(){if(or)return qe;or=1,Object.defineProperty(qe,"__esModule",{value:!0});const e=J(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return qe.default=t,qe}var ir;function _t(){return ir||(ir=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=J(),p=Q(),i=$e();e.keywordError={message:({keyword:o})=>(0,t.str)`must pass "${o}" keyword validation`},e.keyword$DataError={message:({keyword:o,schemaType:u})=>u?(0,t.str)`"${o}" keyword must be ${u} ($data)`:(0,t.str)`"${o}" keyword is invalid ($data)`};function m(o,u=e.keywordError,r,a){const{it:v}=o,{gen:n,compositeRule:d,allErrors:E}=v,O=P(o,u,r);a??(d||E)?h(n,O):_(v,(0,t._)`[${O}]`)}e.reportError=m;function s(o,u=e.keywordError,r){const{it:a}=o,{gen:v,compositeRule:n,allErrors:d}=a,E=P(o,u,r);h(v,E),n||d||_(a,i.default.vErrors)}e.reportExtraError=s;function f(o,u){o.assign(i.default.errors,u),o.if((0,t._)`${i.default.vErrors} !== null`,()=>o.if(u,()=>o.assign((0,t._)`${i.default.vErrors}.length`,u),()=>o.assign(i.default.vErrors,null)))}e.resetErrorsCount=f;function l({gen:o,keyword:u,schemaValue:r,data:a,errsCount:v,it:n}){if(v===void 0)throw new Error("ajv implementation error");const d=o.name("err");o.forRange("i",v,i.default.errors,E=>{o.const(d,(0,t._)`${i.default.vErrors}[${E}]`),o.if((0,t._)`${d}.instancePath === undefined`,()=>o.assign((0,t._)`${d}.instancePath`,(0,t.strConcat)(i.default.instancePath,n.errorPath))),o.assign((0,t._)`${d}.schemaPath`,(0,t.str)`${n.errSchemaPath}/${u}`),n.opts.verbose&&(o.assign((0,t._)`${d}.schema`,r),o.assign((0,t._)`${d}.data`,a))})}e.extendErrors=l;function h(o,u){const r=o.const("err",u);o.if((0,t._)`${i.default.vErrors} === null`,()=>o.assign(i.default.vErrors,(0,t._)`[${r}]`),(0,t._)`${i.default.vErrors}.push(${r})`),o.code((0,t._)`${i.default.errors}++`)}function _(o,u){const{gen:r,validateName:a,schemaEnv:v}=o;v.$async?r.throw((0,t._)`new ${o.ValidationError}(${u})`):(r.assign((0,t._)`${a}.errors`,u),r.return(!1))}const g={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function P(o,u,r){const{createErrors:a}=o.it;return a===!1?(0,t._)`{}`:$(o,u,r)}function $(o,u,r={}){const{gen:a,it:v}=o,n=[w(v,r),y(o,r)];return b(o,u,n),a.object(...n)}function w({errorPath:o},{instancePath:u}){const r=u?(0,t.str)`${o}${(0,p.getErrorPath)(u,p.Type.Str)}`:o;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,r)]}function y({keyword:o,it:{errSchemaPath:u}},{schemaPath:r,parentSchema:a}){let v=a?u:(0,t.str)`${u}/${o}`;return r&&(v=(0,t.str)`${v}${(0,p.getErrorPath)(r,p.Type.Str)}`),[g.schemaPath,v]}function b(o,{params:u,message:r},a){const{keyword:v,data:n,schemaValue:d,it:E}=o,{opts:O,propertyName:C,topSchemaRef:D,schemaPath:V}=E;a.push([g.keyword,v],[g.params,typeof u=="function"?u(o):u||(0,t._)`{}`]),O.messages&&a.push([g.message,typeof r=="function"?r(o):r]),O.verbose&&a.push([g.schema,d],[g.parentSchema,(0,t._)`${D}${V}`],[i.default.data,n]),C&&a.push([g.propertyName,C])}})(Rt)),Rt}var ar;function Hn(){if(ar)return we;ar=1,Object.defineProperty(we,"__esModule",{value:!0}),we.boolOrEmptySchema=we.topBoolOrEmptySchema=void 0;const e=_t(),t=J(),p=$e(),i={message:"boolean schema is false"};function m(l){const{gen:h,schema:_,validateName:g}=l;_===!1?f(l,!1):typeof _=="object"&&_.$async===!0?h.return(p.default.data):(h.assign((0,t._)`${g}.errors`,null),h.return(!0))}we.topBoolOrEmptySchema=m;function s(l,h){const{gen:_,schema:g}=l;g===!1?(_.var(h,!1),f(l)):_.var(h,!0)}we.boolOrEmptySchema=s;function f(l,h){const{gen:_,data:g}=l,P={gen:_,keyword:"false schema",data:g,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:l};(0,e.reportError)(P,i,void 0,h)}return we}var re={},be={},ur;function bn(){if(ur)return be;ur=1,Object.defineProperty(be,"__esModule",{value:!0}),be.getRules=be.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function p(m){return typeof m=="string"&&t.has(m)}be.isJSONType=p;function i(){const m={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...m,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},m.number,m.string,m.array,m.object],post:{rules:[]},all:{},keywords:{}}}return be.getRules=i,be}var ye={},cr;function En(){if(cr)return ye;cr=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.shouldUseRule=ye.shouldUseGroup=ye.schemaHasRulesForType=void 0;function e({schema:i,self:m},s){const f=m.RULES.types[s];return f&&f!==!0&&t(i,f)}ye.schemaHasRulesForType=e;function t(i,m){return m.rules.some(s=>p(i,s))}ye.shouldUseGroup=t;function p(i,m){var s;return i[m.keyword]!==void 0||((s=m.definition.implements)===null||s===void 0?void 0:s.some(f=>i[f]!==void 0))}return ye.shouldUseRule=p,ye}var lr;function gt(){if(lr)return re;lr=1,Object.defineProperty(re,"__esModule",{value:!0}),re.reportTypeError=re.checkDataTypes=re.checkDataType=re.coerceAndCheckDataType=re.getJSONTypes=re.getSchemaTypes=re.DataType=void 0;const e=bn(),t=En(),p=_t(),i=J(),m=Q();var s;(function(r){r[r.Correct=0]="Correct",r[r.Wrong=1]="Wrong"})(s||(re.DataType=s={}));function f(r){const a=l(r.type);if(a.includes("null")){if(r.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!a.length&&r.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');r.nullable===!0&&a.push("null")}return a}re.getSchemaTypes=f;function l(r){const a=Array.isArray(r)?r:r?[r]:[];if(a.every(e.isJSONType))return a;throw new Error("type must be JSONType or JSONType[]: "+a.join(","))}re.getJSONTypes=l;function h(r,a){const{gen:v,data:n,opts:d}=r,E=g(a,d.coerceTypes),O=a.length>0&&!(E.length===0&&a.length===1&&(0,t.schemaHasRulesForType)(r,a[0]));if(O){const C=y(a,n,d.strictNumbers,s.Wrong);v.if(C,()=>{E.length?P(r,a,E):o(r)})}return O}re.coerceAndCheckDataType=h;const _=new Set(["string","number","integer","boolean","null"]);function g(r,a){return a?r.filter(v=>_.has(v)||a==="array"&&v==="array"):[]}function P(r,a,v){const{gen:n,data:d,opts:E}=r,O=n.let("dataType",(0,i._)`typeof ${d}`),C=n.let("coerced",(0,i._)`undefined`);E.coerceTypes==="array"&&n.if((0,i._)`${O} == 'object' && Array.isArray(${d}) && ${d}.length == 1`,()=>n.assign(d,(0,i._)`${d}[0]`).assign(O,(0,i._)`typeof ${d}`).if(y(a,d,E.strictNumbers),()=>n.assign(C,d))),n.if((0,i._)`${C} !== undefined`);for(const V of v)(_.has(V)||V==="array"&&E.coerceTypes==="array")&&D(V);n.else(),o(r),n.endIf(),n.if((0,i._)`${C} !== undefined`,()=>{n.assign(d,C),$(r,C)});function D(V){switch(V){case"string":n.elseIf((0,i._)`${O} == "number" || ${O} == "boolean"`).assign(C,(0,i._)`"" + ${d}`).elseIf((0,i._)`${d} === null`).assign(C,(0,i._)`""`);return;case"number":n.elseIf((0,i._)`${O} == "boolean" || ${d} === null
|
|
3
3
|
|| (${O} == "string" && ${d} && ${d} == +${d})`).assign(C,(0,i._)`+${d}`);return;case"integer":n.elseIf((0,i._)`${O} === "boolean" || ${d} === null
|
|
4
4
|
|| (${O} === "string" && ${d} && ${d} == +${d} && !(${d} % 1))`).assign(C,(0,i._)`+${d}`);return;case"boolean":n.elseIf((0,i._)`${d} === "false" || ${d} === 0 || ${d} === null`).assign(C,!1).elseIf((0,i._)`${d} === "true" || ${d} === 1`).assign(C,!0);return;case"null":n.elseIf((0,i._)`${d} === "" || ${d} === 0 || ${d} === false`),n.assign(C,null);return;case"array":n.elseIf((0,i._)`${O} === "string" || ${O} === "number"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const Jt="default",ze="preflights",Ur="shortcuts",Yn="imports",Ir={[Yn]:-200,[ze]:-100,[Ur]:-10,[Jt]:0},Gn=/[\\:]?[\s'"`;{}]+/g;function Br(t){return t.split(Gn)}const Dr={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Br(t)}};function F(t=[]){return Array.isArray(t)?t:[t]}function st(t){return Array.from(new Set(t))}function Ze(t,e){return t.reduce((n,r)=>(n.findIndex(i=>e(r,i))===-1&&n.push(r),n),[])}function W(t){return typeof t=="string"}class Xn extends Set{_map=new Map;constructor(e){if(super(),e)for(const n of e)this.add(n)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function pe(t){return t instanceof Xn}function Nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function et(t){const e=t.length;let n=-1,r,o="";const i=t.charCodeAt(0);for(;++n<e;){if(r=t.charCodeAt(n),r===0){o+="�";continue}if(r===37){o+="\\%";continue}if(r===44){o+="\\,";continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&i===45){o+=`\\${r.toString(16)} `;continue}if(n===0&&e===1&&r===45){o+=`\\${t.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){o+=t.charAt(n);continue}o+=`\\${t.charAt(n)}`}return o}const he=et;function qr(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const Hr=/^\[(.+?)~?="(.*)"\]$/,Kr=/[\w\u00A0-\uFFFF%-?]/;function Yr(t){return t.match(Hr)}function je(t=""){return Kr.test(t)}function Gr(t){return typeof t=="function"?{match:t}:t}function Qe(t){return t.length===3}function Zt(t){return t!=null}function Xr(){}class Jr{_map=new Map;get(e,n){const r=this._map.get(e);if(r)return r.get(n)}getFallback(e,n,r){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(n)||o.set(n,r),o.get(n)}set(e,n,r){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(n,r),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,r])=>Array.from(r.entries()).map(([o,i])=>e(i,n,o)))}}class Zr extends Map{getFallback(e,n){const r=this.get(e);return r===void 0?(this.set(e,n),n):r}map(e){const n=[];return this.forEach((r,o)=>{n.push(e(r,o))}),n}flatMap(e){const n=[];return this.forEach((r,o)=>{n.push(...e(r,o))}),n}}function te(t){return W(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Qr(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>te(e)):[t]:[te(t)]}function to(t){return t.filter(([e,n],r)=>{if(e.startsWith("$$"))return!1;for(let o=r-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===n)return!1;return!0})}const Jn="__virtual_key__";function me(t){return t==null?"":to(t).map(([e,n])=>n!=null&&typeof n!="function"?e!==Jn?`${e}:${n};`:n:void 0).filter(Boolean).join("")}function qt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function xt(t,e,n=!1){const r=t,o=e;if(Array.isArray(o))return n&&Array.isArray(o)?[...r,...o]:[...o];const i={...r};return qt(r)&&qt(o)&&Object.keys(o).forEach(s=>{qt(r[s])&&qt(o[s])||Array.isArray(r[s])&&Array.isArray(o[s])?i[s]=xt(r[s],o[s],n):Object.assign(i,{[s]:o[s]})}),i}function Tt(t){let e,n,r;if(Array.isArray(t)){for(n=Array.from({length:e=t.length});e--;)n[e]=(r=t[e])&&typeof r=="object"?Tt(r):r;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:Tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(r=t[e])&&typeof r=="object"?Tt(r):r;return n}return t}function eo(t){return W(t[0])}function no(t){return W(t[0])}const Ht={};function ro(t=["-",":"]){const e=t.join("|");return Ht[e]||(Ht[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ht[e].lastIndex=0,Ht[e]}function oo(t,e=["-",":"],n=5){const r=ro(e);let o,i=t.toString();const s=new Set,a=new Map;do o=!1,i=i.replace(r,(f,u,p,h,m)=>{if(!e.includes(p))return f;o=!0,s.add(u+p);const g=m+u.length+p.length+1,$={length:f.length,items:[]};a.set(m,$);for(const v of[...h.matchAll(/\S+/g)]){const z=g+v.index;let b=a.get(z)?.items;b?a.delete(z):b=[{offset:z,length:v[0].length,className:v[0]}];for(const k of b)k.className=k.className==="~"?u:k.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),$.items.push(k)}return"$".repeat(f.length)}),n-=1;while(o&&n);let c;if(typeof t=="string"){c="";let f=0;for(const[u,p]of a)c+=t.slice(f,u),c+=p.items.map(h=>h.className).join(" "),f=u+p.length;c+=t.slice(f)}else{c=t;for(const[f,u]of a)c.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function io(t,e=["-",":"],n=5){const r=oo(t,e,n);return typeof t=="string"?r.expanded:t}const tn=new Set;function ao(t){tn.has(t)||(console.warn("[unocss]",t),tn.add(t))}function Zn(t){return F(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const en="_uno_resolved";async function so(t){let e=typeof t=="function"?await t():await t;if(en in e)return e;e={...e},Object.defineProperty(e,en,{value:!0,enumerable:!1});const n=e.shortcuts?Zn(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const r=o=>{o[2]||(o[2]={});const i=o[2];i.prefix==null&&e.prefix&&(i.prefix=F(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(r),e.rules?.forEach(r)}return e}async function Qn(t){const e=await so(t);if(!e.presets)return[e];const n=(await Promise.all((e.presets||[]).flatMap(F).flatMap(Qn))).flat();return[e,...n]}function lo(t){if(t.length===0)return{};const e=[],n=[];let r=!1;const o=[],i=[];for(const a of t){if(a.pipeline===!1){r=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&n.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}const s={pipeline:r?!1:{include:st(rn(...e)),exclude:st(rn(...n))}};return o.length&&(s.filesystem=st(o.flat())),i.length&&(s.inline=st(i.flat())),s}async function nn(t={},e={}){const n=Object.assign({},e,t),r=Ze((await Promise.all((n.presets||[]).flatMap(F).flatMap(Qn))).flat(),(y,C)=>y.name===C.name),o=[...r.filter(y=>y.enforce==="pre"),...r.filter(y=>!y.enforce),...r.filter(y=>y.enforce==="post")],i=[...o,n],s=[...i].reverse(),a=Object.assign({},Ir,...i.map(y=>y.layers));function c(y){return st(i.flatMap(C=>F(C[y]||[])))}const f=c("extractors");let u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Dr),u&&!f.includes(u)&&f.unshift(u),f.sort((y,C)=>(y.order||0)-(C.order||0));const p=c("rules"),h=p.length,m={},g=[];for(const[y,C]of p.entries()){const w=C[2]??(C[2]={});w.__index=y,eo(C)?F(w.prefix??"").forEach(A=>{m[A+C[0]]=C}):g.unshift(C)}const $={templates:st(i.flatMap(y=>F(y.autocomplete?.templates))),extractors:i.flatMap(y=>F(y.autocomplete?.extractors)).sort((y,C)=>(y.order||0)-(C.order||0)),shorthands:uo(i.map(y=>y.autocomplete?.shorthands||{}))};let v=c("separators");v.length||(v=[":","-"]);const z=c("content"),b=lo(z),k={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...n,blocklist:c("blocklist"),presets:o,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:co(i.map(y=>y.theme)),rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:$,variants:c("variants").map(Gr).sort((y,C)=>(y.order||0)-(C.order||0)),shortcuts:Zn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:v,details:n.details??n.envMode==="dev",content:b,transformers:Ze(c("transformers"),(y,C)=>y.name===C.name)},S=c("extendTheme");for(const y of S)k.theme=y(k.theme,k)||k.theme;for(const y of i)y?.configResolved?.(k);return k}function co(t){return t.map(e=>e?Tt(e):{}).reduce((e,n)=>xt(e,n),{})}function uo(t){return t.reduce((e,n)=>{const r={};for(const o in n){const i=n[o];Array.isArray(i)?r[o]=`(${i.join("|")})`:r[o]=i}return{...e,...r}},{})}function rn(...t){return t.flatMap(fo)}function fo(t){return Array.isArray(t)?t:t?[t]:[]}function Zu(t){return t}const po="66.5.7",D={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"};class We{constructor(e={},n={}){this.userConfig=e,this.defaults=n}version=po;events=qr();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},n={}){const r=new We(e,n);return r.config=await nn(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await nn(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,r=new Set){const o={original:e,code:e,id:n,extracted:r,envMode:this.config.envMode};for(const i of this.config.extractors){const s=await i.extract?.(o);if(s)if(pe(s)&&pe(r))for(const a of s)r.setCount(a,r.getCount(a)+s.getCount(a));else for(const a of s)r.add(a)}return r}makeContext(e,n){const r={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:D,variantHandlers:n[2],constructCSS:(...o)=>this.constructCustomCSS(r,...o),variantMatch:n};return r}async parseToken(e,n){if(this.blocked.has(e))return;const r=`${e}${n?` ${n}`:""}`;if(this.cache.has(r))return this.cache.get(r);const o=this.config.preprocess.reduce((c,f)=>f(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(r,null);return}const i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(r,null);return}const s=async c=>{const f=this.makeContext(e,[n||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);const u=await this.expandShortcut(f.currentSelector,f);return u?await this.stringifyShortcuts(f.variantMatch,f,u[0],u[1]):(await this.parseUtil(f.variantMatch,f))?.map(h=>this.stringifyUtil(h,f)).filter(Zt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(r,a),a;this.cache.set(r,null)}async generate(e,n={}){const{id:r,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=n,f=W(e)?await this.applyExtractors(e,r,c?new Xn:new Set):Array.isArray(e)?new Set(e):e;if(s){const w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(w):E).forEach(E=>{const A=E.trim();A&&!f.has(A)&&f.add(A)})}const u=a?"":`
|
|
1
|
+
const Jt="default",ze="preflights",Ur="shortcuts",Yn="imports",Ir={[Yn]:-200,[ze]:-100,[Ur]:-10,[Jt]:0},Gn=/[\\:]?[\s'"`;{}]+/g;function Br(t){return t.split(Gn)}const Dr={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Br(t)}};function F(t=[]){return Array.isArray(t)?t:[t]}function st(t){return Array.from(new Set(t))}function Ze(t,e){return t.reduce((n,r)=>(n.findIndex(i=>e(r,i))===-1&&n.push(r),n),[])}function W(t){return typeof t=="string"}class Xn extends Set{_map=new Map;constructor(e){if(super(),e)for(const n of e)this.add(n)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function pe(t){return t instanceof Xn}function Nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function et(t){const e=t.length;let n=-1,r,o="";const i=t.charCodeAt(0);for(;++n<e;){if(r=t.charCodeAt(n),r===0){o+="�";continue}if(r===37){o+="\\%";continue}if(r===44){o+="\\,";continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&i===45){o+=`\\${r.toString(16)} `;continue}if(n===0&&e===1&&r===45){o+=`\\${t.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){o+=t.charAt(n);continue}o+=`\\${t.charAt(n)}`}return o}const he=et;function qr(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const Hr=/^\[(.+?)~?="(.*)"\]$/,Kr=/[\w\u00A0-\uFFFF%-?]/;function Yr(t){return t.match(Hr)}function je(t=""){return Kr.test(t)}function Gr(t){return typeof t=="function"?{match:t}:t}function Qe(t){return t.length===3}function Zt(t){return t!=null}function Xr(){}class Jr{_map=new Map;get(e,n){const r=this._map.get(e);if(r)return r.get(n)}getFallback(e,n,r){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(n)||o.set(n,r),o.get(n)}set(e,n,r){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(n,r),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,r])=>Array.from(r.entries()).map(([o,i])=>e(i,n,o)))}}class Zr extends Map{getFallback(e,n){const r=this.get(e);return r===void 0?(this.set(e,n),n):r}map(e){const n=[];return this.forEach((r,o)=>{n.push(e(r,o))}),n}flatMap(e){const n=[];return this.forEach((r,o)=>{n.push(...e(r,o))}),n}}function te(t){return W(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Qr(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>te(e)):[t]:[te(t)]}function to(t){return t.filter(([e,n],r)=>{if(e.startsWith("$$"))return!1;for(let o=r-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===n)return!1;return!0})}const Jn="__virtual_key__";function me(t){return t==null?"":to(t).map(([e,n])=>n!=null&&typeof n!="function"?e!==Jn?`${e}:${n};`:n:void 0).filter(Boolean).join("")}function qt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function xt(t,e,n=!1){const r=t,o=e;if(Array.isArray(o))return n&&Array.isArray(o)?[...r,...o]:[...o];const i={...r};return qt(r)&&qt(o)&&Object.keys(o).forEach(s=>{qt(r[s])&&qt(o[s])||Array.isArray(r[s])&&Array.isArray(o[s])?i[s]=xt(r[s],o[s],n):Object.assign(i,{[s]:o[s]})}),i}function Tt(t){let e,n,r;if(Array.isArray(t)){for(n=Array.from({length:e=t.length});e--;)n[e]=(r=t[e])&&typeof r=="object"?Tt(r):r;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:Tt(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(r=t[e])&&typeof r=="object"?Tt(r):r;return n}return t}function eo(t){return W(t[0])}function no(t){return W(t[0])}const Ht={};function ro(t=["-",":"]){const e=t.join("|");return Ht[e]||(Ht[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ht[e].lastIndex=0,Ht[e]}function oo(t,e=["-",":"],n=5){const r=ro(e);let o,i=t.toString();const s=new Set,a=new Map;do o=!1,i=i.replace(r,(f,u,p,h,m)=>{if(!e.includes(p))return f;o=!0,s.add(u+p);const g=m+u.length+p.length+1,$={length:f.length,items:[]};a.set(m,$);for(const v of[...h.matchAll(/\S+/g)]){const z=g+v.index;let b=a.get(z)?.items;b?a.delete(z):b=[{offset:z,length:v[0].length,className:v[0]}];for(const k of b)k.className=k.className==="~"?u:k.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),$.items.push(k)}return"$".repeat(f.length)}),n-=1;while(o&&n);let c;if(typeof t=="string"){c="";let f=0;for(const[u,p]of a)c+=t.slice(f,u),c+=p.items.map(h=>h.className).join(" "),f=u+p.length;c+=t.slice(f)}else{c=t;for(const[f,u]of a)c.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function io(t,e=["-",":"],n=5){const r=oo(t,e,n);return typeof t=="string"?r.expanded:t}const tn=new Set;function ao(t){tn.has(t)||(console.warn("[unocss]",t),tn.add(t))}function Zn(t){return F(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const en="_uno_resolved";async function so(t){let e=typeof t=="function"?await t():await t;if(en in e)return e;e={...e},Object.defineProperty(e,en,{value:!0,enumerable:!1});const n=e.shortcuts?Zn(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const r=o=>{o[2]||(o[2]={});const i=o[2];i.prefix==null&&e.prefix&&(i.prefix=F(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(r),e.rules?.forEach(r)}return e}async function Qn(t){const e=await so(t);if(!e.presets)return[e];const n=(await Promise.all((e.presets||[]).flatMap(F).flatMap(Qn))).flat();return[e,...n]}function lo(t){if(t.length===0)return{};const e=[],n=[];let r=!1;const o=[],i=[];for(const a of t){if(a.pipeline===!1){r=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&n.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}const s={pipeline:r?!1:{include:st(rn(...e)),exclude:st(rn(...n))}};return o.length&&(s.filesystem=st(o.flat())),i.length&&(s.inline=st(i.flat())),s}async function nn(t={},e={}){const n=Object.assign({},e,t),r=Ze((await Promise.all((n.presets||[]).flatMap(F).flatMap(Qn))).flat(),(y,C)=>y.name===C.name),o=[...r.filter(y=>y.enforce==="pre"),...r.filter(y=>!y.enforce),...r.filter(y=>y.enforce==="post")],i=[...o,n],s=[...i].reverse(),a=Object.assign({},Ir,...i.map(y=>y.layers));function c(y){return st(i.flatMap(C=>F(C[y]||[])))}const f=c("extractors");let u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Dr),u&&!f.includes(u)&&f.unshift(u),f.sort((y,C)=>(y.order||0)-(C.order||0));const p=c("rules"),h=p.length,m={},g=[];for(const[y,C]of p.entries()){const w=C[2]??(C[2]={});w.__index=y,eo(C)?F(w.prefix??"").forEach(A=>{m[A+C[0]]=C}):g.unshift(C)}const $={templates:st(i.flatMap(y=>F(y.autocomplete?.templates))),extractors:i.flatMap(y=>F(y.autocomplete?.extractors)).sort((y,C)=>(y.order||0)-(C.order||0)),shorthands:uo(i.map(y=>y.autocomplete?.shorthands||{}))};let v=c("separators");v.length||(v=[":","-"]);const z=c("content"),b=lo(z),k={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...n,blocklist:c("blocklist"),presets:o,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:co(i.map(y=>y.theme)),rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:$,variants:c("variants").map(Gr).sort((y,C)=>(y.order||0)-(C.order||0)),shortcuts:Zn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:v,details:n.details??n.envMode==="dev",content:b,transformers:Ze(c("transformers"),(y,C)=>y.name===C.name)},S=c("extendTheme");for(const y of S)k.theme=y(k.theme,k)||k.theme;for(const y of i)y?.configResolved?.(k);return k}function co(t){return t.map(e=>e?Tt(e):{}).reduce((e,n)=>xt(e,n),{})}function uo(t){return t.reduce((e,n)=>{const r={};for(const o in n){const i=n[o];Array.isArray(i)?r[o]=`(${i.join("|")})`:r[o]=i}return{...e,...r}},{})}function rn(...t){return t.flatMap(fo)}function fo(t){return Array.isArray(t)?t:t?[t]:[]}function Zu(t){return t}const po="66.5.9",D={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"};class We{constructor(e={},n={}){this.userConfig=e,this.defaults=n}version=po;events=qr();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},n={}){const r=new We(e,n);return r.config=await nn(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await nn(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,r=new Set){const o={original:e,code:e,id:n,extracted:r,envMode:this.config.envMode};for(const i of this.config.extractors){const s=await i.extract?.(o);if(s)if(pe(s)&&pe(r))for(const a of s)r.setCount(a,r.getCount(a)+s.getCount(a));else for(const a of s)r.add(a)}return r}makeContext(e,n){const r={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:D,variantHandlers:n[2],constructCSS:(...o)=>this.constructCustomCSS(r,...o),variantMatch:n};return r}async parseToken(e,n){if(this.blocked.has(e))return;const r=`${e}${n?` ${n}`:""}`;if(this.cache.has(r))return this.cache.get(r);const o=this.config.preprocess.reduce((c,f)=>f(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(r,null);return}const i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(r,null);return}const s=async c=>{const f=this.makeContext(e,[n||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);const u=await this.expandShortcut(f.currentSelector,f);return u?await this.stringifyShortcuts(f.variantMatch,f,u[0],u[1]):(await this.parseUtil(f.variantMatch,f))?.map(h=>this.stringifyUtil(h,f)).filter(Zt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(r,a),a;this.cache.set(r,null)}async generate(e,n={}){const{id:r,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=n,f=W(e)?await this.applyExtractors(e,r,c?new Xn:new Set):Array.isArray(e)?new Set(e):e;if(s){const w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(w):E).forEach(E=>{const A=E.trim();A&&!f.has(A)&&f.add(A)})}const u=a?"":`
|
|
2
2
|
`,p=new Set([Jt]),h=c?new Map:new Set,m=new Map;let g={};const $=Array.from(f).map(async w=>{if(h.has(w))return;const E=await this.parseToken(w);if(E!=null){h instanceof Map?h.set(w,{data:E,count:pe(f)?f.getCount(w):-1}):h.add(w);for(const A of E){const B=A[3]||"",q=A[4]?.layer;m.has(B)||m.set(B,[]),m.get(B).push(A),q&&p.add(q)}}});await Promise.all($),await(async()=>{if(!i)return;const w={generator:this,theme:this.config.theme},E=new Set([]);this.config.preflights.forEach(({layer:A=ze})=>{p.add(A),E.add(A)}),g=Object.fromEntries(await Promise.all(Array.from(E).map(async A=>{const q=(await Promise.all(this.config.preflights.filter(X=>(X.layer||ze)===A).map(async X=>await X.getCSS(w)))).filter(Boolean).join(u);return[A,q]})))})();const v=this.config.sortLayers(Array.from(p).sort((w,E)=>(this.config.layers[w]??0)-(this.config.layers[E]??0)||w.localeCompare(E))),z={},b=this.config.outputToCssLayers,k=w=>{let E=w;return typeof b=="object"&&(E=b.cssLayerName?.(w)),E===null?null:E??w},S=(w=Jt)=>{if(z[w])return z[w];let E=Array.from(m).sort((q,X)=>(this.parentOrders.get(q[0])??0)-(this.parentOrders.get(X[0])??0)||q[0]?.localeCompare(X[0]||"")||0).map(([q,X])=>{const _=X.length,P=X.filter(T=>(T[4]?.layer||Jt)===w).sort((T,Q)=>T[0]-Q[0]||(T[4]?.sort||0)-(Q[4]?.sort||0)||T[5]?.currentSelector?.localeCompare(Q[5]?.currentSelector??"")||T[1]?.localeCompare(Q[1]||"")||T[2]?.localeCompare(Q[2]||"")||0).map(([,T,Q,,Dt,,fe])=>[[[(T&&go(T,o))??"",Dt?.sort??0]],Q,!!(fe??Dt?.noMerge)]);if(!P.length)return;const L=P.reverse().map(([T,Q,Dt],fe)=>{if(!Dt&&this.config.mergeSelectors)for(let ct=fe+1;ct<_;ct++){const it=P[ct];if(it&&!it[2]&&(T&&it[0]||T==null&&it[0]==null)&&it[1]===Q)return T&&it[0]&&it[0].push(...T),null}const de=T?st(T.sort((ct,it)=>ct[1]-it[1]||ct[0]?.localeCompare(it[0]||"")||0).map(ct=>ct[0]).filter(Boolean)):[];return de.length?`${de.join(`,${u}`)}{${Q}}`:Q}).filter(Boolean),N=Array.from(new Set(L)).reverse().join(u);if(!q)return N;const H=q.split(" $$ ");return`${H.join("{")}{${u}${N}${u}${"}".repeat(H.length)}`}).filter(Boolean).join(u);i&&(E=[g[w],E].filter(Boolean).join(u));let A;b&&E&&(A=k(w),A!==null&&(E=`@layer ${A}{${u}${E}${u}}`));const B=a?"":`/* layer: ${w}${A&&A!==w?`, alias: ${A}`:""} */${u}`;return z[w]=E?B+E:""},y=(w=v,E)=>{const A=w.filter(B=>!E?.includes(B));return[b&&A.length>0?`@layer ${A.map(k).filter(Zt).join(", ")};`:void 0,...A.map(B=>S(B)||"")].filter(Boolean).join(u)};return{get css(){return y()},layers:v,matched:h,getLayers:y,getLayer:S,setLayer:async(w,E)=>{const A=await E(S(w));return z[w]=A,A}}}async matchVariants(e,n){const r={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0;const[,,a,c]=i;for(;s;){s=!1;const f=i[1];for(const u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let p=await u.match(f,r);if(p){if(W(p)){if(p===f)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");const h=p.map(m=>{const g=m.matcher??f,$=[m,...a],v=new Set(c);return v.add(u),[i[0],g,$,v]});return(await Promise.all(h.map(m=>o(m)))).flat()}}i[1]=p.matcher??f,a.unshift(p),c.add(u),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,n||e,[],new Set])}applyVariants(e,n=e[4],r=e[1]){const i=n.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{const h=u.body?.(p.entries)||p.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],g=u.selector?.(p.selector,h);return(u.handle??yo)({...p,entries:h,selector:g||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:bo(r),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);const c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const f of this.config.postprocess)f(c);return c}constructCustomCSS(e,n,r){const o=te(n);if(W(o))return o;const{selector:i,entries:s,parent:a}=this.applyVariants([0,r||e.rawSelector,o,void 0,e.variantHandlers]),c=`${i}{${me(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(e,n,r=!1,o){const i=W(e)?await this.matchVariants(e):[e],s=async([c,f,u])=>{this.config.details&&(n.rules=n.rules??[]);const p={...n,variantHandlers:u},h=this.config.rulesStaticMap[f];if(h&&h[1]&&(r||!h[2]?.internal))return this.resolveCSSResult(c,h[1],h,p);for(const m of this.config.rulesDynamic){const[g,$,v]=m;if(v?.internal&&!r)continue;let z=f;if(v?.prefix){const y=F(v.prefix);if(o){const C=F(o);if(!y.some(w=>C.includes(w)))continue}else{const C=y.find(w=>f.startsWith(w));if(C==null)continue;z=f.slice(C.length)}}const b=z.match(g);if(!b)continue;let k=await $(b,p);if(!k)continue;if(typeof k!="string")if(Symbol.asyncIterator in k){const y=[];for await(const C of k)C&&y.push(C);k=y}else Symbol.iterator in k&&!Array.isArray(k)&&(k=Array.from(k).filter(Zt));const S=this.resolveCSSResult(c,k,m,p);if(S)return S}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(e,n,r,o)=>{const i=Qr(n).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(r),o.generator.activatedRules.add(r);const s=r[2];return i.map(a=>{if(W(a))return[s.__index,a,s];let c=o.variantHandlers,f=s;for(const u of a)u[0]===D.variants?typeof u[1]=="function"?c=u[1](c)||c:c=[...F(u[1]),...c]:u[0]===D.parent?c=[{parent:u[1]},...c]:u[0]===D.selector?c=[{selector:u[1]},...c]:u[0]===D.layer?c=[{layer:u[1]},...c]:u[0]===D.sort?f={...f,sort:u[1]}:u[0]===D.noMerge?f={...f,noMerge:u[1]}:u[0]===D.body&&(u[0]=Jn);return[s.__index,e,a,f,c]})}};stringifyUtil(e,n){if(!e)return;if(Qe(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:r,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(e),f=me(o);if(!f)return;const{layer:u,sort:p,...h}=e[3]??{},m={...h,layer:s??u,sort:a??p};return[e[0],r,f,i,m,this.config.details?n:void 0,c]}async expandShortcut(e,n,r=5){if(r===0)return;const o=this.config.details?f=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(f)}:Xr;let i,s,a,c;for(const f of this.config.shortcuts){let u=e;if(f[2]?.prefix){const h=F(f[2].prefix).find(m=>e.startsWith(m));if(h==null)continue;u=e.slice(h.length)}if(no(f)){if(f[0]===u){i=i||f[2],s=f[1],o(f);break}}else{const p=u.match(f[0]);if(p&&(s=f[1](p,n)),s){i=i||f[2],o(f);break}}}if(s&&(a=st(F(s).filter(W).map(f=>io(f.trim()).split(/\s+/g)).flat()),c=F(s).filter(f=>!W(f)).map(f=>({handles:[],value:f}))),!s){const f=W(e)?await this.matchVariants(e):[e];for(const u of f){const[p,h,m]=u;if(p!==h){const g=await this.expandShortcut(h,n,r-1);g&&(a=g[0].filter(W).map($=>p.replace(h,$)),c=g[0].filter($=>!W($)).map($=>({handles:[...$.handles,...m],value:$.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(F(a).map(async f=>(await this.expandShortcut(f,n,r-1))?.[0]||[f])),c].flat(2).filter(f=>!!f),i]}async stringifyShortcuts(e,n,r,o={layer:this.config.shortcutsLayer}){const i=new Zr,s=(await Promise.all(st(r).map(async u=>{const p=W(u)?await this.parseUtil(u,n,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",te(u.value),void 0,u.handles]];return!p&&this.config.warn&&ao(`unmatched utility "${u}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[a,,c]=e,f=[];for(const u of s){if(Qe(u)){f.push([u[0],void 0,u[1],void 0,u[2],n,void 0]);continue}const p=Object.fromEntries(u[2])[D.shortcutsNoMerge],h=[...u[4],...p?[]:c],{selector:m,entries:g,parent:$,sort:v,noMerge:z,layer:b}=this.applyVariants(u,h,a);i.getFallback(b??o.layer,new Jr).getFallback(m,$,[[],u[0]])[0].push([g,!!(z??u[3]?.noMerge),v??0])}return f.concat(i.flatMap((u,p)=>u.map(([h,m],g,$)=>{const v=(b,k,S)=>{const y=Math.max(...S.map(w=>w[1])),C=S.map(w=>w[0]);return(b?[C.flat(1)]:C).map(w=>{const E=me(w);if(E)return[m,g,E,$,{...o,noMerge:k,sort:y,layer:p},n,void 0]})};return[[h.filter(([,b])=>b).map(([b,,k])=>[b,k]),!0],[h.filter(([,b])=>!b).map(([b,,k])=>[b,k]),!1]].map(([b,k])=>[...v(!1,k,b.filter(([S])=>S.some(y=>y[0]===D.shortcutsNoMerge))),...v(!0,k,b.filter(([S])=>S.every(y=>y[0]!==D.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(n=>Array.isArray(n)?n[0]:n).some(n=>typeof n=="function"?n(e):W(n)?n===e:n.test(e))}getBlocked(e){const n=this.config.blocklist.find(r=>{const o=Array.isArray(r)?r[0]:r;return typeof o=="function"?o(e):W(o)?o===e:o.test(e)});return n?Array.isArray(n)?n:[n,void 0]:void 0}}async function ho(t,e){return await We.create(t,e)}const tr=/\s\$\$\s+/g;function mo(t){return tr.test(t)}function go(t,e){return mo(t)?t.replace(tr,e?` ${e} `:" "):e?`${e} ${t}`:t}const on=/^\[(.+?)(~?=)"(.*)"\]$/;function bo(t){return on.test(t)?t.replace(on,(e,n,r,o)=>`[${he(n)}${r}"${he(o)}"]`):`.${he(t)}`}function yo(t,e){return e(t)}function ko(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function an(t){return t.charAt(0).toUpperCase()+t.slice(1)}function sn(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var ln=["Webkit","Moz","ms"];function $o(t){const e={};function n(r){const o=e[r];if(o)return o;let i=ko(r);if(i!=="filter"&&i in t)return e[r]=sn(i);i=an(i);for(let s=0;s<ln.length;s++){const a=`${ln[s]}${i}`;if(a in t)return e[r]=sn(an(a))}return r}return({entries:r})=>r.forEach(o=>{o[0].startsWith("--")||(o[0]=n(o[0]))})}function vo(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}async function Qu(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,r=()=>n.documentElement,o=e.__unocss||{},i=Object.assign({},t,o.runtime),s=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(s.postprocess=F(s.postprocess)).unshift($o(n.createElement("div").style)),i.configResolved?.(o,s);const c=await ho(o,s),f=_=>i.inject?i.inject(_):r().prepend(_),u=()=>i.rootElement?i.rootElement():n.body,p=new Map;let h=!0;const m=new Set;let g,$,v=[];const z=()=>new Promise(_=>{v.push(_),$!=null&&clearTimeout($),$=setTimeout(()=>S().then(()=>{const P=v;v=[],P.forEach(L=>L())}),0)});function b(_,P=!1){if(_.nodeType!==1)return;const L=_;L.hasAttribute(a)&&L.removeAttribute(a),P&&L.querySelectorAll(`[${a}]`).forEach(N=>{N.removeAttribute(a)})}function k(_,P){let L=p.get(_);if(!L)if(L=n.createElement("style"),L.setAttribute("data-unocss-runtime-layer",_),p.set(_,L),P==null)f(L);else{const N=k(P),H=N.parentNode;H?H.insertBefore(L,N.nextSibling):f(L)}return L}async function S(){const _=[...m],P=await c.generate(_);return P.layers.reduce((N,H)=>(k(H,N).innerHTML=P.getLayer(H)??"",H),void 0),_.filter(N=>!P.matched.has(N)).forEach(N=>m.delete(N)),{...P,getStyleElement:N=>p.get(N),getStyleElements:()=>p}}async function y(_){const P=m.size;await c.applyExtractors(_,void 0,m),P!==m.size&&await z()}async function C(_=u()){const P=_&&_.outerHTML;P&&(await y(`${P} ${vo(P)}`),b(r()),b(_,!0))}const w=new MutationObserver(_=>{h||_.forEach(async P=>{if(P.target.nodeType!==1)return;const L=P.target;for(const N of p)if(L===N[1])return;if(P.type==="childList")P.addedNodes.forEach(async N=>{if(N.nodeType!==1)return;const H=N;g&&!g(H)||(await y(H.outerHTML),b(H))});else{if(g&&!g(L))return;if(P.attributeName!==a){const N=Array.from(L.attributes).map(T=>T.value?`${T.name}="${T.value}"`:T.name).join(" "),H=`<${L.tagName.toLowerCase()} ${N}>`;await y(H)}b(L)}})});let E=!1;function A(){if(E)return;const _=i.observer?.target?i.observer.target():u();_&&(w.observe(_,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),E=!0)}function B(){i.bypassDefined&&wo(c.blocked),C(),A()}function q(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",B):B()}const X=e.__unocss_runtime=e.__unocss_runtime={version:c.version,uno:c,async extract(_){W(_)||(_.forEach(P=>m.add(P)),_=""),await y(_)},extractAll:C,inspect(_){g=_},toggleObserver(_){_===void 0?h=!h:h=!!_,!E&&!h&&q()},update:S,presets:e.__unocss_runtime?.presets??{}};i.ready?.(X)!==!1&&(h=!1,q())}function wo(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let r;try{if(r=n.cssRules||n.rules,!r)continue;Array.from(r).flatMap(o=>o.selectorText?.split(/,/g)||[]).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),t.add(o))})}catch{continue}}return t}const er=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function xo(t={}){const e=t.prefix??"un-",n=t.prefixedOnly??!1,r=t.trueToNonValued??!1;let o;return{name:"attributify",match(i,{generator:s}){const a=Yr(i);if(!a)return;let c=a[1];if(c.startsWith(e))c=c.slice(e.length);else if(n)return;const f=a[2],[,u="",p=f]=f.match(er)||[];if(p==="~"||r&&p==="true"||!p)return`${u}${c}`;if(o==null){const h=s?.config?.separators?.join("|");h?o=new RegExp(`^(.*\\](?:${h}))(\\[[^\\]]+?\\])$`):o=!1}if(o){const[,h,m]=f.match(o)||[];if(m)return`${h}${u}${c}-${m}`}if(u&&p.match(/^[\d.]+$/)){const h=u.split(/([^:]*:)/g).filter(Boolean),m=h.pop()+p,g=h.join("");return[{matcher:`${u}${c}-${p}`},{matcher:`${g}${c}-${m}`}]}return`${u}${c}-${p}`}}}const So=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Eo=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,cn=/[\s'"`;>]+/;function Co(t){return{name:"attributify",extract:({content:e,cursor:n})=>{const r=e.matchAll(So);let o,i=0;for(const b of r){const[,k,S]=b,y=b.index+k.length;if(n>y&&n<=y+S.length){i=y,o=S;break}}if(!o)return null;const s=o.matchAll(Eo);let a=0,c,f;for(const b of s){const[k,S,y]=b,C=i+b.index;if(n>C&&n<=C+k.length){a=C,c=S,f=y?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;const u=!!t?.prefix&&c.startsWith(t.prefix);if(t?.prefixedOnly&&!u)return null;const p=u?c.slice(t.prefix.length):c;if(f===void 0)return{extracted:p,resolveReplacement(b){const k=u?t.prefix.length:0;return{start:a+k,end:a+c.length,replacement:b}}};const h=a+c.length+2;let m=cn.exec(f),g=0,$;for(;m;){const[b]=m;if(n>h+g&&n<=h+g+m.index){$=f.slice(g,g+m.index);break}g+=m.index+b.length,m=cn.exec(f.slice(g))}$===void 0&&($=f.slice(g));const[,v="",z]=$.match(er)||[];return{extracted:`${v}${p}-${z}`,transformSuggestions(b){return b.filter(k=>k.startsWith(`${v}${p}-`)).map(k=>v+k.slice(v.length+p.length+1))},resolveReplacement(b){return{start:g+h,end:g+h+$.length,replacement:v+b.slice(v.length+p.length+1)}}}}}}const zo=["v-bind:",":"],un=/[\s'"`;]+/g,ge=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,jo=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,nr=["placeholder","fill","opacity","stroke-opacity"];function Ao(t){const e=t?.ignoreAttributes??nr,n=t?.nonValuedAttribute??!0,r=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(ge)).flatMap(i=>Array.from((i[1]||"").matchAll(jo))).flatMap(([,i,...s])=>{const a=s.filter(Boolean).join("");if(e.includes(i))return[];for(const c of zo)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(je(i)&&n!==!1){const c=[`[${i}=""]`];return r&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(un).filter(je):ge.test(a)?(ge.lastIndex=0,this.extract({code:a})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:a.split(un).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}const tf=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??nr;const e=[xo(t)],n=[Ao(t)],r=[Co(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:n,options:t,autocomplete:{extractors:r},extractorDefault:t.strict?!1:void 0}},Ro="modulepreload",_o=function(t){return"/"+t},fn={},Oo=function(e,n,r){let o=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(u=>Promise.resolve(u).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");o=c(n.map(f=>{if(f=_o(f),f in fn)return;fn[f]=!0;const u=f.endsWith(".css"),p=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Ro,u||(h.as="script"),h.crossOrigin="",h.href=f,a&&h.setAttribute("nonce",a),document.head.appendChild(h),u)return new Promise((m,g)=>{h.addEventListener("load",m),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},Ae="__TAGIFY__",Po=/<([\w:-]+)/g;function Fo(t){const{prefix:e="",excludedTags:n=["b",/^h\d+$/,"table"]}=t;return{name:"tagify",extract({code:r}){return Array.from(r.matchAll(Po)).filter(({1:o})=>{for(const i of n)if(typeof i=="string"){if(o===i)return!1}else if(i.lastIndex=0,i.test(o))return!1;return o.startsWith(e)}).map(([,o])=>`${Ae}${o}`)}}}function Mo(t){const{extraProperties:e}=t,n=`${Ae}${t.prefix??""}`;return{name:"tagify",match(r){if(!r.startsWith(n))return;const o=r.slice(n.length),i={matcher:o,selector:s=>s.slice(Ae.length+1)};return e&&(typeof e=="function"?i.body=s=>[...s,...Object.entries(e(o)??{})]:i.body=s=>[...s,...Object.entries(e)]),i}}}const ef=(t={})=>{const{defaultExtractor:e=!0}=t,n=[Mo(t)],r=[Fo(t)];return{name:"@unocss/preset-tagify",variants:n,extractors:r,extractorDefault:e?void 0:!1}};var Lo=44,To=59,dn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rr=new Uint8Array(64),No=new Uint8Array(128);for(let t=0;t<dn.length;t++){const e=dn.charCodeAt(t);rr[t]=e,No[e]=t}function jt(t,e,n){let r=e-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),t.write(rr[o])}while(r>0);return e}var pn=1024*16,hn=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},Vo=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(pn)}write(t){const{buffer:e}=this;e[this.pos++]=t,this.pos===pn&&(this.out+=hn.decode(e),this.pos=0)}flush(){const{buffer:t,out:e,pos:n}=this;return n>0?e+hn.decode(t.subarray(0,n)):e}};function Wo(t){const e=new Vo;let n=0,r=0,o=0,i=0;for(let s=0;s<t.length;s++){const a=t[s];if(s>0&&e.write(To),a.length===0)continue;let c=0;for(let f=0;f<a.length;f++){const u=a[f];f>0&&e.write(Lo),c=jt(e,u[0],c),u.length!==1&&(n=jt(e,u[1],n),r=jt(e,u[2],r),o=jt(e,u[3],o),u.length!==4&&(i=jt(e,u[4],i)))}}return e.flush()}class ee{constructor(e){this.bits=e instanceof ee?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class Vt{constructor(e,n,r){this.start=e,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new Vt(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,r=this.original.slice(0,n),o=this.original.slice(n);this.original=r;const i=new Vt(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}function Uo(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const Io=Uo();class Bo{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Wo(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Io(this.toString())}}function Do(t){const e=t.split(`
|
|
3
3
|
`),n=e.filter(i=>/^\t+/.test(i)),r=e.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return" ";const o=r.reduce((i,s)=>{const a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function qo(t,e){const n=t.split(/[/\\]/),r=e.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let o=n.length;for(;o--;)n[o]=".."}return n.concat(r).join("/")}const Ho=Object.prototype.toString;function Ko(t){return Ho.call(t)==="[object Object]"}function mn(t){const e=t.split(`
|
|
4
4
|
`),n=[];for(let r=0,o=0;r<e.length;r++)n.push(o),o+=e[r].length+1;return function(o){let i=0,s=n.length;for(;i<s;){const f=i+s>>1;o<n[f]?s=f:i=f+1}const a=i-1,c=o-n[a];return{line:a,column:c}}}const Yo=/\w/;class Go{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,r,o){if(n.length){const i=n.length-1;let s=n.indexOf(`
|