homebridge-config-ui-x 5.9.1-beta.4 → 5.9.1-beta.5
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/package.json +1 -1
- package/public/{chunk-VHCZD2S4.js → chunk-2B5OWSC3.js} +1 -1
- package/public/{chunk-HEPKK2NF.js → chunk-2FJR6XQC.js} +1 -1
- package/public/{chunk-PY7IYLU2.js → chunk-3HBGELYS.js} +1 -1
- package/public/{chunk-LWW4UMH7.js → chunk-44XYFBM5.js} +1 -1
- package/public/{chunk-YMFBNYEN.js → chunk-6ERM546T.js} +1 -1
- package/public/{chunk-7TECHIAM.js → chunk-77M3IZ4C.js} +1 -1
- package/public/{chunk-5DEH7NPC.js → chunk-7D4XQLSJ.js} +1 -1
- package/public/{chunk-JICJM7P7.js → chunk-7TBAQWUN.js} +1 -1
- package/public/{chunk-WPPAIWDY.js → chunk-AIYX4NS4.js} +1 -1
- package/public/{chunk-XCM3VKFY.js → chunk-AKJJLD5T.js} +1 -1
- package/public/{chunk-6EU2WVST.js → chunk-BKXKUPVG.js} +1 -1
- package/public/{chunk-3YH7FXML.js → chunk-BRRZPIGK.js} +1 -1
- package/public/{chunk-3L72PBVL.js → chunk-CH5DGMHT.js} +1 -1
- package/public/{chunk-HHHDRU7N.js → chunk-DH2TJW4L.js} +1 -1
- package/public/{chunk-WOC25B3T.js → chunk-DSXYG3CG.js} +1 -1
- package/public/{chunk-FEQANZR6.js → chunk-DTNTNUUT.js} +1 -1
- package/public/{chunk-ND4C2ZR6.js → chunk-FJ6GKAK4.js} +1 -1
- package/public/{chunk-PFEUH44A.js → chunk-G35SECWL.js} +1 -1
- package/public/{chunk-Z7U3QJUA.js → chunk-GJ66SKPM.js} +1 -1
- package/public/{chunk-L6RYPM7H.js → chunk-GNRQH4AB.js} +1 -1
- package/public/{chunk-TOEOGXWQ.js → chunk-HKXJR5KL.js} +1 -1
- package/public/{chunk-SJRDO5CP.js → chunk-JJETSLQ4.js} +1 -1
- package/public/{chunk-HMMDL7KD.js → chunk-JWTK75HO.js} +1 -1
- package/public/{chunk-Y6IRT5JS.js → chunk-KBJV7WLE.js} +1 -1
- package/public/{chunk-7TSDWYDG.js → chunk-KGWI6FZF.js} +1 -1
- package/public/{chunk-AW2GCX53.js → chunk-KW5P4NKW.js} +1 -1
- package/public/{chunk-OELC77D2.js → chunk-L42PLXOO.js} +1 -1
- package/public/{chunk-ZVV3GLU5.js → chunk-LYJSUZOK.js} +1 -1
- package/public/{chunk-Q2YSAS5V.js → chunk-MYK6NVJR.js} +1 -1
- package/public/{chunk-Z5QZ2DBA.js → chunk-OCKA6D3S.js} +1 -1
- package/public/{chunk-TGLBHALK.js → chunk-P46GPSHG.js} +1 -1
- package/public/{chunk-KPCNAHX5.js → chunk-PLJKUNE6.js} +1 -1
- package/public/{chunk-HEISVQS4.js → chunk-PTULVU2C.js} +1 -1
- package/public/{chunk-RRCVDWSH.js → chunk-QF6D3UP6.js} +1 -1
- package/public/{chunk-WHHWVHCM.js → chunk-R7I7Q4BB.js} +1 -1
- package/public/{chunk-PQICUDQU.js → chunk-RENHBVOU.js} +1 -1
- package/public/{chunk-VHXEO3ZO.js → chunk-ROPHWVQU.js} +1 -1
- package/public/{chunk-ZGN3NVBG.js → chunk-RUAPRNAM.js} +1 -1
- package/public/chunk-SBZRBLBH.js +1 -0
- package/public/{chunk-GQ54RHG6.js → chunk-UOYJA7SU.js} +1 -1
- package/public/{chunk-DRPQVHQ2.js → chunk-V27MEAG5.js} +1 -1
- package/public/{chunk-JGWESVQR.js → chunk-V7BTNFCD.js} +1 -1
- package/public/{chunk-MV5HKFNH.js → chunk-W73PY2KW.js} +1 -1
- package/public/{chunk-PQA4VPZR.js → chunk-WLYALIGF.js} +1 -1
- package/public/{chunk-FHIQHPYX.js → chunk-XJDB5XC2.js} +1 -1
- package/public/{chunk-W5GBSAG3.js → chunk-XJSITZKB.js} +1 -1
- package/public/{chunk-LRQYSW4K.js → chunk-Y47OP5SR.js} +1 -1
- package/public/{chunk-YVMSP7ZU.js → chunk-YOVO5YUA.js} +1 -1
- package/public/{chunk-WHYMIPMR.js → chunk-Z4UZ2NAI.js} +1 -1
- package/public/{chunk-XNZMG6ZP.js → chunk-Z6FXBWOZ.js} +1 -1
- package/public/{chunk-PTRTXLSA.js → chunk-ZP5N6LI4.js} +1 -1
- package/public/{chunk-NRSMNHLO.js → chunk-ZVFO7MWG.js} +1 -1
- package/public/{chunk-EVBAJELE.js → chunk-ZX25HUUL.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-6UMQJXGA.js → main-3XD7WEKJ.js} +1 -1
- package/public/chunk-2OL4VJOK.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as zv}from"./chunk-VHXEO3ZO.js";import{a as ep,c as Cv,d as xv,e as Tv,f as $o,g as sU,h as tp}from"./chunk-ZGN3NVBG.js";import{a as yv}from"./chunk-46GAMPZC.js";import{a as Sv}from"./chunk-XFAARHWA.js";import{a as Pv}from"./chunk-W5GBSAG3.js";import{a as wv,b as kv,c as Hv}from"./chunk-4A2GGTS4.js";import{a as ga}from"./chunk-Q2JNFJIW.js";import{a as Iv}from"./chunk-YSLCQT67.js";import{a as $c,b as Ko}from"./chunk-VOHBPEFW.js";import{a as Lo,b as qo}from"./chunk-EGCKVLUA.js";import{a as vv}from"./chunk-WPPAIWDY.js";import{a as Oc,b as Fc,c as Vc,d as Lc,e as qc,f as Kc,g as Vo,m as Ct,n as ki,o as mv,p as _v,q as hv,r as fv,s as bv,t as Ir}from"./chunk-5SJKGEVE.js";import{A as pv,B as gs,C as ua,a as iv,b as Hr,c as ro,e as ei,f as sv,h as rv,i as ov,j as nv,k as av,l as Ji,m as lv,n as cv,o as dv,p as Sr,s as Fo,t as Cr,u as Xg,v as xr,w as uv,x as gv}from"./chunk-PJNMYOLO.js";import{a as Tr}from"./chunk-DRPQVHQ2.js";import{e as Ts}from"./chunk-5WBNDRQY.js";import{b as ht}from"./chunk-HEPKK2NF.js";import{k as ot,l as xt,n as nt,p as Pr,q as Ze}from"./chunk-PQA4VPZR.js";import{$ as Wg,$b as re,$c as Uc,Aa as Cs,Ab as na,Bb as aa,Bc as ui,Ca as xs,Cb as la,Cc as ne,Da as qy,Db as ca,Dc as wr,E as Ry,Eb as da,Fa as Is,Ga as Ky,Gc as us,H as By,Ha as $y,Hc as so,I as zc,Ib as se,Ic as Zy,J as Uy,Jc as Qy,La as Oe,Lb as Q,M as Gg,Ma as Gy,Mb as Dc,Nb as H,P as Ro,Pa as Wy,Qa as m,R as Oy,Rb as Nc,Rc as wi,Sa as Mi,Sb as Mc,Sc as kr,Ta as hr,Tb as Ec,Tc as Xt,Ub as br,Va as Zg,Vb as yr,Wb as Rc,Xb as ci,Ya as Bo,Yb as Ei,Za as jc,Zb as _e,_a as oa,_b as A,a as fe,aa as Ac,ab as Ps,ac as ie,b as Le,ba as Yg,bc as vr,bd as Xy,c as Dy,ca as ds,cc as Bc,da as Fy,db as ve,dd as ev,e as w,eb as fr,fb as Ws,fc as Xe,g as lt,gb as Yy,gc as et,h as ue,ha as Jg,hc as tt,hd as tv,i as Xr,ia as gt,ja as _r,jb as Ie,jc as Jy,k as eo,kc as Uo,la as Gs,lc as rt,ma as Vy,mc as vi,n as Ue,na as j,nc as io,o as Pc,ob as Qg,oc as di,p as $g,pb as ge,pc as Oo,qa as Ly,qb as U,r as Ny,rb as O,s as My,sa as W,sc as D,ta as Y,tb as Jt,tc as B,ub as Zt,uc as zt,vb as Qt,w as Ey,wa as ra,wb as S,x as Pe,xa as to,xb as b,y as Tc,yb as f,zb as E}from"./chunk-EQP5UP7Q.js";var Bv=w(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.formatNames=As.fastFormats=As.fullFormats=void 0;function zs(e,i){return{validate:e,compare:i}}As.fullFormats={date:zs(Nv,op),time:zs(sp(!0),np),"date-time":zs(Av(!0),Ev),"iso-time":zs(sp(),Mv),"iso-date-time":zs(Av(),Rv),duration:/^P(?!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}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:dU,int32:{type:"number",validate:pU},int64:{type:"number",validate:mU},float:{type:"number",validate:Dv},double:{type:"number",validate:Dv},password:!0,binary:!0};As.fastFormats=Le(fe({},As.fullFormats),{date:zs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,op),time:zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,np),"date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Ev),"iso-time":zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Mv),"iso-date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Rv),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});As.formatNames=Object.keys(As.fullFormats);function rU(e){return e%4===0&&(e%100!==0||e%400===0)}var oU=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,nU=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Nv(e){let i=oU.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],r=+i[3];return s>=1&&s<=12&&r>=1&&r<=(s===2&&rU(t)?29:nU[s])}function op(e,i){if(e&&i)return e>i?1:e<i?-1:0}var ip=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function sp(e){return function(t){let s=ip.exec(t);if(!s)return!1;let r=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),h=+(s[7]||0);if(p>23||h>59||e&&!c)return!1;if(r<=23&&n<=59&&l<60)return!0;let v=n-h*u,C=r-p*u-(v<0?1:0);return(C===23||C===-1)&&(v===59||v===-1)&&l<61}}function np(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function Mv(e,i){if(!(e&&i))return;let t=ip.exec(e),s=ip.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var rp=/t|\s/i;function Av(e){let i=sp(e);return function(s){let r=s.split(rp);return r.length===2&&Nv(r[0])&&i(r[1])}}function Ev(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function Rv(e,i){if(!(e&&i))return;let[t,s]=e.split(rp),[r,n]=i.split(rp),l=op(t,r);if(l!==void 0)return l||np(s,n)}var aU=/\/|:/,lU=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function cU(e){return aU.test(e)&&lU.test(e)}var jv=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function dU(e){return jv.lastIndex=0,jv.test(e)}var uU=-(2**31),gU=2**31-1;function pU(e){return Number.isInteger(e)&&e<=gU&&e>=uU}function mU(e){return Number.isInteger(e)}function Dv(){return!0}var _U=/[^\\]\\Z/;function hU(e){if(_U.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var _a=w(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.regexpCode=Ye.getEsmExportName=Ye.getProperty=Ye.safeStringify=Ye.stringify=Ye.strConcat=Ye.addCodeArg=Ye.str=Ye._=Ye.nil=Ye._Code=Ye.Name=Ye.IDENTIFIER=Ye._CodeOrName=void 0;var pa=class{};Ye._CodeOrName=pa;Ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var oo=class extends pa{constructor(i){if(super(),!Ye.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ye.Name=oo;var Zi=class extends pa{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof oo&&(t[s.str]=(t[s.str]||0)+1),t),{})}};Ye._Code=Zi;Ye.nil=new Zi("");function Uv(e,...i){let t=[e[0]],s=0;for(;s<i.length;)lp(t,i[s]),t.push(e[++s]);return new Zi(t)}Ye._=Uv;var ap=new Zi("+");function Ov(e,...i){let t=[ma(e[0])],s=0;for(;s<i.length;)t.push(ap),lp(t,i[s]),t.push(ap,ma(e[++s]));return fU(t),new Zi(t)}Ye.str=Ov;function lp(e,i){i instanceof Zi?e.push(...i._items):i instanceof oo?e.push(i):e.push(vU(i))}Ye.addCodeArg=lp;function fU(e){let i=1;for(;i<e.length-1;){if(e[i]===ap){let t=bU(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function bU(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof oo||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof oo))return`"${e}${i.slice(1)}`}function yU(e,i){return i.emptyStr()?e:e.emptyStr()?i:Ov`${e}${i}`}Ye.strConcat=yU;function vU(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ma(Array.isArray(e)?e.join(","):e)}function wU(e){return new Zi(ma(e))}Ye.stringify=wU;function ma(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ye.safeStringify=ma;function kU(e){return typeof e=="string"&&Ye.IDENTIFIER.test(e)?new Zi(`.${e}`):Uv`[${e}]`}Ye.getProperty=kU;function HU(e){if(typeof e=="string"&&Ye.IDENTIFIER.test(e))return new Zi(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ye.getEsmExportName=HU;function SU(e){return new Zi(e.toString())}Ye.regexpCode=SU});var up=w(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ValueScope=Si.ValueScopeName=Si.Scope=Si.varKinds=Si.UsedValueState=void 0;var Hi=_a(),cp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},Gc=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(Gc||(Si.UsedValueState=Gc={}));Si.varKinds={const:new Hi.Name("const"),let:new Hi.Name("let"),var:new Hi.Name("var")};var Wc=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof Hi.Name?i:this.name(i)}name(i){return new Hi.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Si.Scope=Wc;var Yc=class extends Hi.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,Hi._)`.${new Hi.Name(t)}[${s}]`}};Si.ValueScopeName=Yc;var CU=(0,Hi._)`\n`,dp=class extends Wc{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=Le(fe({},i),{_n:i.lines?CU:Hi.nil})}get(){return this._scope}name(i){return new Yc(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let r=this.toName(i),{prefix:n}=r,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let h=c.get(l);if(h)return h}else c=this._values[n]=new Map;c.set(l,r);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,r.setValue(t,{property:n,itemIndex:p}),r}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Hi._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,r=>{if(r.value===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return r.value.code},t,s)}_reduceValues(i,t,s={},r){let n=Hi.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,Gc.Started);let h=t(p);if(h){let v=this.opts.es5?Si.varKinds.var:Si.varKinds.const;n=(0,Hi._)`${n}${v} ${p} = ${h};${this.opts._n}`}else if(h=r?.(p))n=(0,Hi._)`${n}${h}${this.opts._n}`;else throw new cp(p);u.set(p,Gc.Completed)})}return n}};Si.ValueScope=dp});var we=w(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.or=Be.and=Be.not=Be.CodeGen=Be.operators=Be.varKinds=Be.ValueScopeName=Be.ValueScope=Be.Scope=Be.Name=Be.regexpCode=Be.stringify=Be.getProperty=Be.nil=Be.strConcat=Be.str=Be._=void 0;var Ge=_a(),ps=up(),zr=_a();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return zr._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return zr.str}});Object.defineProperty(Be,"strConcat",{enumerable:!0,get:function(){return zr.strConcat}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return zr.nil}});Object.defineProperty(Be,"getProperty",{enumerable:!0,get:function(){return zr.getProperty}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return zr.stringify}});Object.defineProperty(Be,"regexpCode",{enumerable:!0,get:function(){return zr.regexpCode}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return zr.Name}});var ed=up();Object.defineProperty(Be,"Scope",{enumerable:!0,get:function(){return ed.Scope}});Object.defineProperty(Be,"ValueScope",{enumerable:!0,get:function(){return ed.ValueScope}});Object.defineProperty(Be,"ValueScopeName",{enumerable:!0,get:function(){return ed.ValueScopeName}});Object.defineProperty(Be,"varKinds",{enumerable:!0,get:function(){return ed.varKinds}});Be.operators={GT:new Ge._Code(">"),GTE:new Ge._Code(">="),LT:new Ge._Code("<"),LTE:new Ge._Code("<="),EQ:new Ge._Code("==="),NEQ:new Ge._Code("!=="),NOT:new Ge._Code("!"),OR:new Ge._Code("||"),AND:new Ge._Code("&&"),ADD:new Ge._Code("+")};var Ys=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},gp=class extends Ys{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?ps.varKinds.var:this.varKind,r=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${r};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Wo(this.rhs,i,t)),this}get names(){return this.rhs instanceof Ge._CodeOrName?this.rhs.names:{}}},Zc=class extends Ys{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof Ge.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=Wo(this.rhs,i,t),this}get names(){let i=this.lhs instanceof Ge.Name?{}:fe({},this.lhs.names);return Xc(i,this.rhs)}},pp=class extends Zc{constructor(i,t,s,r){super(i,s,r),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},mp=class extends Ys{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},_p=class extends Ys{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},hp=class extends Ys{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},fp=class extends Ys{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=Wo(this.code,i,t),this}get names(){return this.code instanceof Ge._CodeOrName?this.code.names:{}}},ha=class extends Ys{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,r=s.length;for(;r--;){let n=s[r];n.optimizeNames(i,t)||(xU(i,n.names),s.splice(r,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>no(i,t.names),{})}},Js=class extends ha{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},bp=class extends ha{},yp=(()=>{class e extends Js{}return e.kind="else",e})(),Jc=(()=>{class e extends Js{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let r=s.optimizeNodes();s=this.else=Array.isArray(r)?new yp(r):r}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Kv(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Wo(this.condition,t,s),this}get names(){let t=super.names;return Xc(t,this.condition),this.else&&no(t,this.else.names),t}}return e.kind="if",e})(),td=(()=>{class e extends Js{}return e.kind="for",e})(),vp=class extends td{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=Wo(this.iteration,i,t),this}get names(){return no(super.names,this.iteration.names)}},wp=class extends td{constructor(i,t,s,r){super(),this.varKind=i,this.name=t,this.from=s,this.to=r}render(i){let t=i.es5?ps.varKinds.var:this.varKind,{name:s,from:r,to:n}=this;return`for(${t} ${s}=${r}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=Xc(super.names,this.from);return Xc(i,this.to)}},Qc=class extends td{constructor(i,t,s,r){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=r}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=Wo(this.iterable,i,t),this}get names(){return no(super.names,this.iterable.names)}},Fv=(()=>{class e extends Js{constructor(t,s,r){super(),this.name=t,this.args=s,this.async=r}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Vv=(()=>{class e extends ha{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),kp=class extends Js{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,r;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(r=this.finally)===null||r===void 0||r.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&no(i,this.catch.names),this.finally&&no(i,this.finally.names),i}},Lv=(()=>{class e extends Js{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),qv=(()=>{class e extends Js{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Hp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Le(fe({},t),{_n:t.lines?`
|
|
1
|
+
import{a as zv}from"./chunk-ROPHWVQU.js";import{a as ep,c as Cv,d as xv,e as Tv,f as $o,g as sU,h as tp}from"./chunk-RUAPRNAM.js";import{a as yv}from"./chunk-46GAMPZC.js";import{a as Sv}from"./chunk-XFAARHWA.js";import{a as Pv}from"./chunk-XJSITZKB.js";import{a as wv,b as kv,c as Hv}from"./chunk-4A2GGTS4.js";import{a as ga}from"./chunk-Q2JNFJIW.js";import{a as Iv}from"./chunk-YSLCQT67.js";import{a as $c,b as Ko}from"./chunk-VOHBPEFW.js";import{a as Lo,b as qo}from"./chunk-EGCKVLUA.js";import{a as vv}from"./chunk-AIYX4NS4.js";import{a as Oc,b as Fc,c as Vc,d as Lc,e as qc,f as Kc,g as Vo,m as Ct,n as ki,o as mv,p as _v,q as hv,r as fv,s as bv,t as Ir}from"./chunk-5SJKGEVE.js";import{A as pv,B as gs,C as ua,a as iv,b as Hr,c as ro,e as ei,f as sv,h as rv,i as ov,j as nv,k as av,l as Ji,m as lv,n as cv,o as dv,p as Sr,s as Fo,t as Cr,u as Xg,v as xr,w as uv,x as gv}from"./chunk-PJNMYOLO.js";import{a as Tr}from"./chunk-V27MEAG5.js";import{e as Ts}from"./chunk-5WBNDRQY.js";import{b as ht}from"./chunk-2FJR6XQC.js";import{k as ot,l as xt,n as nt,p as Pr,q as Ze}from"./chunk-WLYALIGF.js";import{$ as Wg,$b as re,$c as Uc,Aa as Cs,Ab as na,Bb as aa,Bc as ui,Ca as xs,Cb as la,Cc as ne,Da as qy,Db as ca,Dc as wr,E as Ry,Eb as da,Fa as Is,Ga as Ky,Gc as us,H as By,Ha as $y,Hc as so,I as zc,Ib as se,Ic as Zy,J as Uy,Jc as Qy,La as Oe,Lb as Q,M as Gg,Ma as Gy,Mb as Dc,Nb as H,P as Ro,Pa as Wy,Qa as m,R as Oy,Rb as Nc,Rc as wi,Sa as Mi,Sb as Mc,Sc as kr,Ta as hr,Tb as Ec,Tc as Xt,Ub as br,Va as Zg,Vb as yr,Wb as Rc,Xb as ci,Ya as Bo,Yb as Ei,Za as jc,Zb as _e,_a as oa,_b as A,a as fe,aa as Ac,ab as Ps,ac as ie,b as Le,ba as Yg,bc as vr,bd as Xy,c as Dy,ca as ds,cc as Bc,da as Fy,db as ve,dd as ev,e as w,eb as fr,fb as Ws,fc as Xe,g as lt,gb as Yy,gc as et,h as ue,ha as Jg,hc as tt,hd as tv,i as Xr,ia as gt,ja as _r,jb as Ie,jc as Jy,k as eo,kc as Uo,la as Gs,lc as rt,ma as Vy,mc as vi,n as Ue,na as j,nc as io,o as Pc,ob as Qg,oc as di,p as $g,pb as ge,pc as Oo,qa as Ly,qb as U,r as Ny,rb as O,s as My,sa as W,sc as D,ta as Y,tb as Jt,tc as B,ub as Zt,uc as zt,vb as Qt,w as Ey,wa as ra,wb as S,x as Pe,xa as to,xb as b,y as Tc,yb as f,zb as E}from"./chunk-EQP5UP7Q.js";var Bv=w(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.formatNames=As.fastFormats=As.fullFormats=void 0;function zs(e,i){return{validate:e,compare:i}}As.fullFormats={date:zs(Nv,op),time:zs(sp(!0),np),"date-time":zs(Av(!0),Ev),"iso-time":zs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._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv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(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:dU,int32:{type:"number",validate:pU},int64:{type:"number",validate:mU},float:{type:"number",validate:Dv},double:{type:"number",validate:Dv},password:!0,binary:!0};As.fastFormats=Le(fe({},As.fullFormats),{date:zs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,op),time:zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,np),"date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Ev),"iso-time":zs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Mv),"iso-date-time":zs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Rv),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});As.formatNames=Object.keys(As.fullFormats);function rU(e){return e%4===0&&(e%100!==0||e%400===0)}var oU=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,nU=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Nv(e){let i=oU.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],r=+i[3];return s>=1&&s<=12&&r>=1&&r<=(s===2&&rU(t)?29:nU[s])}function op(e,i){if(e&&i)return e>i?1:e<i?-1:0}var ip=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function sp(e){return function(t){let s=ip.exec(t);if(!s)return!1;let r=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),h=+(s[7]||0);if(p>23||h>59||e&&!c)return!1;if(r<=23&&n<=59&&l<60)return!0;let v=n-h*u,C=r-p*u-(v<0?1:0);return(C===23||C===-1)&&(v===59||v===-1)&&l<61}}function np(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function Mv(e,i){if(!(e&&i))return;let t=ip.exec(e),s=ip.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var rp=/t|\s/i;function Av(e){let i=sp(e);return function(s){let r=s.split(rp);return r.length===2&&Nv(r[0])&&i(r[1])}}function Ev(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function Rv(e,i){if(!(e&&i))return;let[t,s]=e.split(rp),[r,n]=i.split(rp),l=op(t,r);if(l!==void 0)return l||np(s,n)}var aU=/\/|:/,lU=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function cU(e){return aU.test(e)&&lU.test(e)}var jv=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function dU(e){return jv.lastIndex=0,jv.test(e)}var uU=-(2**31),gU=2**31-1;function pU(e){return Number.isInteger(e)&&e<=gU&&e>=uU}function mU(e){return Number.isInteger(e)}function Dv(){return!0}var _U=/[^\\]\\Z/;function hU(e){if(_U.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var _a=w(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.regexpCode=Ye.getEsmExportName=Ye.getProperty=Ye.safeStringify=Ye.stringify=Ye.strConcat=Ye.addCodeArg=Ye.str=Ye._=Ye.nil=Ye._Code=Ye.Name=Ye.IDENTIFIER=Ye._CodeOrName=void 0;var pa=class{};Ye._CodeOrName=pa;Ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var oo=class extends pa{constructor(i){if(super(),!Ye.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ye.Name=oo;var Zi=class extends pa{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof oo&&(t[s.str]=(t[s.str]||0)+1),t),{})}};Ye._Code=Zi;Ye.nil=new Zi("");function Uv(e,...i){let t=[e[0]],s=0;for(;s<i.length;)lp(t,i[s]),t.push(e[++s]);return new Zi(t)}Ye._=Uv;var ap=new Zi("+");function Ov(e,...i){let t=[ma(e[0])],s=0;for(;s<i.length;)t.push(ap),lp(t,i[s]),t.push(ap,ma(e[++s]));return fU(t),new Zi(t)}Ye.str=Ov;function lp(e,i){i instanceof Zi?e.push(...i._items):i instanceof oo?e.push(i):e.push(vU(i))}Ye.addCodeArg=lp;function fU(e){let i=1;for(;i<e.length-1;){if(e[i]===ap){let t=bU(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function bU(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof oo||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof oo))return`"${e}${i.slice(1)}`}function yU(e,i){return i.emptyStr()?e:e.emptyStr()?i:Ov`${e}${i}`}Ye.strConcat=yU;function vU(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ma(Array.isArray(e)?e.join(","):e)}function wU(e){return new Zi(ma(e))}Ye.stringify=wU;function ma(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ye.safeStringify=ma;function kU(e){return typeof e=="string"&&Ye.IDENTIFIER.test(e)?new Zi(`.${e}`):Uv`[${e}]`}Ye.getProperty=kU;function HU(e){if(typeof e=="string"&&Ye.IDENTIFIER.test(e))return new Zi(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ye.getEsmExportName=HU;function SU(e){return new Zi(e.toString())}Ye.regexpCode=SU});var up=w(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ValueScope=Si.ValueScopeName=Si.Scope=Si.varKinds=Si.UsedValueState=void 0;var Hi=_a(),cp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},Gc=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(Gc||(Si.UsedValueState=Gc={}));Si.varKinds={const:new Hi.Name("const"),let:new Hi.Name("let"),var:new Hi.Name("var")};var Wc=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof Hi.Name?i:this.name(i)}name(i){return new Hi.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Si.Scope=Wc;var Yc=class extends Hi.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,Hi._)`.${new Hi.Name(t)}[${s}]`}};Si.ValueScopeName=Yc;var CU=(0,Hi._)`\n`,dp=class extends Wc{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=Le(fe({},i),{_n:i.lines?CU:Hi.nil})}get(){return this._scope}name(i){return new Yc(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let r=this.toName(i),{prefix:n}=r,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let h=c.get(l);if(h)return h}else c=this._values[n]=new Map;c.set(l,r);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,r.setValue(t,{property:n,itemIndex:p}),r}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Hi._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,r=>{if(r.value===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return r.value.code},t,s)}_reduceValues(i,t,s={},r){let n=Hi.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,Gc.Started);let h=t(p);if(h){let v=this.opts.es5?Si.varKinds.var:Si.varKinds.const;n=(0,Hi._)`${n}${v} ${p} = ${h};${this.opts._n}`}else if(h=r?.(p))n=(0,Hi._)`${n}${h}${this.opts._n}`;else throw new cp(p);u.set(p,Gc.Completed)})}return n}};Si.ValueScope=dp});var we=w(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.or=Be.and=Be.not=Be.CodeGen=Be.operators=Be.varKinds=Be.ValueScopeName=Be.ValueScope=Be.Scope=Be.Name=Be.regexpCode=Be.stringify=Be.getProperty=Be.nil=Be.strConcat=Be.str=Be._=void 0;var Ge=_a(),ps=up(),zr=_a();Object.defineProperty(Be,"_",{enumerable:!0,get:function(){return zr._}});Object.defineProperty(Be,"str",{enumerable:!0,get:function(){return zr.str}});Object.defineProperty(Be,"strConcat",{enumerable:!0,get:function(){return zr.strConcat}});Object.defineProperty(Be,"nil",{enumerable:!0,get:function(){return zr.nil}});Object.defineProperty(Be,"getProperty",{enumerable:!0,get:function(){return zr.getProperty}});Object.defineProperty(Be,"stringify",{enumerable:!0,get:function(){return zr.stringify}});Object.defineProperty(Be,"regexpCode",{enumerable:!0,get:function(){return zr.regexpCode}});Object.defineProperty(Be,"Name",{enumerable:!0,get:function(){return zr.Name}});var ed=up();Object.defineProperty(Be,"Scope",{enumerable:!0,get:function(){return ed.Scope}});Object.defineProperty(Be,"ValueScope",{enumerable:!0,get:function(){return ed.ValueScope}});Object.defineProperty(Be,"ValueScopeName",{enumerable:!0,get:function(){return ed.ValueScopeName}});Object.defineProperty(Be,"varKinds",{enumerable:!0,get:function(){return ed.varKinds}});Be.operators={GT:new Ge._Code(">"),GTE:new Ge._Code(">="),LT:new Ge._Code("<"),LTE:new Ge._Code("<="),EQ:new Ge._Code("==="),NEQ:new Ge._Code("!=="),NOT:new Ge._Code("!"),OR:new Ge._Code("||"),AND:new Ge._Code("&&"),ADD:new Ge._Code("+")};var Ys=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},gp=class extends Ys{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?ps.varKinds.var:this.varKind,r=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${r};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Wo(this.rhs,i,t)),this}get names(){return this.rhs instanceof Ge._CodeOrName?this.rhs.names:{}}},Zc=class extends Ys{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof Ge.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=Wo(this.rhs,i,t),this}get names(){let i=this.lhs instanceof Ge.Name?{}:fe({},this.lhs.names);return Xc(i,this.rhs)}},pp=class extends Zc{constructor(i,t,s,r){super(i,s,r),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},mp=class extends Ys{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},_p=class extends Ys{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},hp=class extends Ys{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},fp=class extends Ys{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=Wo(this.code,i,t),this}get names(){return this.code instanceof Ge._CodeOrName?this.code.names:{}}},ha=class extends Ys{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,r=s.length;for(;r--;){let n=s[r];n.optimizeNames(i,t)||(xU(i,n.names),s.splice(r,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>no(i,t.names),{})}},Js=class extends ha{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},bp=class extends ha{},yp=(()=>{class e extends Js{}return e.kind="else",e})(),Jc=(()=>{class e extends Js{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let r=s.optimizeNodes();s=this.else=Array.isArray(r)?new yp(r):r}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Kv(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Wo(this.condition,t,s),this}get names(){let t=super.names;return Xc(t,this.condition),this.else&&no(t,this.else.names),t}}return e.kind="if",e})(),td=(()=>{class e extends Js{}return e.kind="for",e})(),vp=class extends td{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=Wo(this.iteration,i,t),this}get names(){return no(super.names,this.iteration.names)}},wp=class extends td{constructor(i,t,s,r){super(),this.varKind=i,this.name=t,this.from=s,this.to=r}render(i){let t=i.es5?ps.varKinds.var:this.varKind,{name:s,from:r,to:n}=this;return`for(${t} ${s}=${r}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=Xc(super.names,this.from);return Xc(i,this.to)}},Qc=class extends td{constructor(i,t,s,r){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=r}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=Wo(this.iterable,i,t),this}get names(){return no(super.names,this.iterable.names)}},Fv=(()=>{class e extends Js{constructor(t,s,r){super(),this.name=t,this.args=s,this.async=r}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Vv=(()=>{class e extends ha{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),kp=class extends Js{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,r;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(r=this.finally)===null||r===void 0||r.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&no(i,this.catch.names),this.finally&&no(i,this.finally.names),i}},Lv=(()=>{class e extends Js{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),qv=(()=>{class e extends Js{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Hp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Le(fe({},t),{_n:t.lines?`
|
|
2
2
|
`:""}),this._extScope=i,this._scope=new ps.Scope({parent:i}),this._nodes=[new bp]}toString(){return this._root.render(this.opts)}name(i){return this._scope.name(i)}scopeName(i){return this._extScope.name(i)}scopeValue(i,t){let s=this._extScope.value(i,t);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(i,t){return this._extScope.getValue(i,t)}scopeRefs(i){return this._extScope.scopeRefs(i,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(i,t,s,r){let n=this._scope.toName(t);return s!==void 0&&r&&(this._constants[n.str]=s),this._leafNode(new gp(i,n,s)),n}const(i,t,s){return this._def(ps.varKinds.const,i,t,s)}let(i,t,s){return this._def(ps.varKinds.let,i,t,s)}var(i,t,s){return this._def(ps.varKinds.var,i,t,s)}assign(i,t,s){return this._leafNode(new Zc(i,t,s))}add(i,t){return this._leafNode(new pp(i,Be.operators.ADD,t))}code(i){return typeof i=="function"?i():i!==Ge.nil&&this._leafNode(new fp(i)),this}object(...i){let t=["{"];for(let[s,r]of i)t.length>1&&t.push(","),t.push(s),(s!==r||this.opts.es5)&&(t.push(":"),(0,Ge.addCodeArg)(t,r));return t.push("}"),new Ge._Code(t)}if(i,t,s){if(this._blockNode(new Jc(i)),t&&s)this.code(t).else().code(s).endIf();else if(t)this.code(t).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(i){return this._elseNode(new Jc(i))}else(){return this._elseNode(new yp)}endIf(){return this._endBlockNode(Jc,yp)}_for(i,t){return this._blockNode(i),t&&this.code(t).endFor(),this}for(i,t){return this._for(new vp(i),t)}forRange(i,t,s,r,n=this.opts.es5?ps.varKinds.var:ps.varKinds.let){let l=this._scope.toName(i);return this._for(new wp(n,l,t,s),()=>r(l))}forOf(i,t,s,r=ps.varKinds.const){let n=this._scope.toName(i);if(this.opts.es5){let l=t instanceof Ge.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,Ge._)`${l}.length`,c=>{this.var(n,(0,Ge._)`${l}[${c}]`),s(n)})}return this._for(new Qc("of",r,n,t),()=>s(n))}forIn(i,t,s,r=this.opts.es5?ps.varKinds.var:ps.varKinds.const){if(this.opts.ownProperties)return this.forOf(i,(0,Ge._)`Object.keys(${t})`,s);let n=this._scope.toName(i);return this._for(new Qc("in",r,n,t),()=>s(n))}endFor(){return this._endBlockNode(td)}label(i){return this._leafNode(new mp(i))}break(i){return this._leafNode(new _p(i))}return(i){let t=new Vv;if(this._blockNode(t),this.code(i),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Vv)}try(i,t,s){if(!t&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let r=new kp;if(this._blockNode(r),this.code(i),t){let n=this.name("e");this._currNode=r.catch=new Lv(n),t(n)}return s&&(this._currNode=r.finally=new qv,this.code(s)),this._endBlockNode(Lv,qv)}throw(i){return this._leafNode(new hp(i))}block(i,t){return this._blockStarts.push(this._nodes.length),i&&this.code(i).endBlock(t),this}endBlock(i){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-t;if(s<0||i!==void 0&&s!==i)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${i} expected`);return this._nodes.length=t,this}func(i,t=Ge.nil,s,r){return this._blockNode(new Fv(i,t,s)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(Fv)}optimize(i=1){for(;i-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(i){return this._currNode.nodes.push(i),this}_blockNode(i){this._currNode.nodes.push(i),this._nodes.push(i)}_endBlockNode(i,t){let s=this._currNode;if(s instanceof i||t&&s instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${i.kind}/${t.kind}`:i.kind}"`)}_elseNode(i){let t=this._currNode;if(!(t instanceof Jc))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=i,this}get _root(){return this._nodes[0]}get _currNode(){let i=this._nodes;return i[i.length-1]}set _currNode(i){let t=this._nodes;t[t.length-1]=i}};Be.CodeGen=Hp;function no(e,i){for(let t in i)e[t]=(e[t]||0)+(i[t]||0);return e}function Xc(e,i){return i instanceof Ge._CodeOrName?no(e,i.names):e}function Wo(e,i,t){if(e instanceof Ge.Name)return s(e);if(!r(e))return e;return new Ge._Code(e._items.reduce((n,l)=>(l instanceof Ge.Name&&(l=s(l)),l instanceof Ge._Code?n.push(...l._items):n.push(l),n),[]));function s(n){let l=t[n.str];return l===void 0||i[n.str]!==1?n:(delete i[n.str],l)}function r(n){return n instanceof Ge._Code&&n._items.some(l=>l instanceof Ge.Name&&i[l.str]===1&&t[l.str]!==void 0)}}function xU(e,i){for(let t in i)e[t]=(e[t]||0)-(i[t]||0)}function Kv(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ge._)`!${Sp(e)}`}Be.not=Kv;var IU=$v(Be.operators.AND);function PU(...e){return e.reduce(IU)}Be.and=PU;var TU=$v(Be.operators.OR);function zU(...e){return e.reduce(TU)}Be.or=zU;function $v(e){return(i,t)=>i===Ge.nil?t:t===Ge.nil?i:(0,Ge._)`${Sp(i)} ${e} ${Sp(t)}`}function Sp(e){return e instanceof Ge.Name?e:(0,Ge._)`(${e})`}});var qe=w(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.checkStrictMode=Fe.getErrorPath=Fe.Type=Fe.useFunc=Fe.setEvaluated=Fe.evaluatedPropsToName=Fe.mergeEvaluated=Fe.eachItem=Fe.unescapeJsonPointer=Fe.escapeJsonPointer=Fe.escapeFragment=Fe.unescapeFragment=Fe.schemaRefOrVal=Fe.schemaHasRulesButRef=Fe.schemaHasRules=Fe.checkUnknownRules=Fe.alwaysValidSchema=Fe.toHash=void 0;var pt=we(),AU=_a();function jU(e){let i={};for(let t of e)i[t]=!0;return i}Fe.toHash=jU;function DU(e,i){return typeof i=="boolean"?i:Object.keys(i).length===0?!0:(Yv(e,i),!Jv(i,e.self.RULES.all))}Fe.alwaysValidSchema=DU;function Yv(e,i=e.schema){let{opts:t,self:s}=e;if(!t.strictSchema||typeof i=="boolean")return;let r=s.RULES.keywords;for(let n in i)r[n]||Xv(e,`unknown keyword: "${n}"`)}Fe.checkUnknownRules=Yv;function Jv(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(i[t])return!0;return!1}Fe.schemaHasRules=Jv;function NU(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&i.all[t])return!0;return!1}Fe.schemaHasRulesButRef=NU;function MU({topSchemaRef:e,schemaPath:i},t,s,r){if(!r){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,pt._)`${t}`}return(0,pt._)`${e}${i}${(0,pt.getProperty)(s)}`}Fe.schemaRefOrVal=MU;function EU(e){return Zv(decodeURIComponent(e))}Fe.unescapeFragment=EU;function RU(e){return encodeURIComponent(xp(e))}Fe.escapeFragment=RU;function xp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Fe.escapeJsonPointer=xp;function Zv(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Fe.unescapeJsonPointer=Zv;function BU(e,i){if(Array.isArray(e))for(let t of e)i(t);else i(e)}Fe.eachItem=BU;function Gv({mergeNames:e,mergeToName:i,mergeValues:t,resultToName:s}){return(r,n,l,c)=>{let u=l===void 0?n:l instanceof pt.Name?(n instanceof pt.Name?e(r,n,l):i(r,n,l),l):n instanceof pt.Name?(i(r,l,n),n):t(n,l);return c===pt.Name&&!(u instanceof pt.Name)?s(r,u):u}}Fe.mergeEvaluated={props:Gv({mergeNames:(e,i,t)=>e.if((0,pt._)`${t} !== true && ${i} !== undefined`,()=>{e.if((0,pt._)`${i} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,pt._)`${t} || {}`).code((0,pt._)`Object.assign(${t}, ${i})`))}),mergeToName:(e,i,t)=>e.if((0,pt._)`${t} !== true`,()=>{i===!0?e.assign(t,!0):(e.assign(t,(0,pt._)`${t} || {}`),Ip(e,t,i))}),mergeValues:(e,i)=>e===!0?!0:fe(fe({},e),i),resultToName:Qv}),items:Gv({mergeNames:(e,i,t)=>e.if((0,pt._)`${t} !== true && ${i} !== undefined`,()=>e.assign(t,(0,pt._)`${i} === true ? true : ${t} > ${i} ? ${t} : ${i}`)),mergeToName:(e,i,t)=>e.if((0,pt._)`${t} !== true`,()=>e.assign(t,i===!0?!0:(0,pt._)`${t} > ${i} ? ${t} : ${i}`)),mergeValues:(e,i)=>e===!0?!0:Math.max(e,i),resultToName:(e,i)=>e.var("items",i)})};function Qv(e,i){if(i===!0)return e.var("props",!0);let t=e.var("props",(0,pt._)`{}`);return i!==void 0&&Ip(e,t,i),t}Fe.evaluatedPropsToName=Qv;function Ip(e,i,t){Object.keys(t).forEach(s=>e.assign((0,pt._)`${i}${(0,pt.getProperty)(s)}`,!0))}Fe.setEvaluated=Ip;var Wv={};function UU(e,i){return e.scopeValue("func",{ref:i,code:Wv[i.code]||(Wv[i.code]=new AU._Code(i.code))})}Fe.useFunc=UU;var Cp=(function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e})(Cp||(Fe.Type=Cp={}));function OU(e,i,t){if(e instanceof pt.Name){let s=i===Cp.Num;return t?s?(0,pt._)`"[" + ${e} + "]"`:(0,pt._)`"['" + ${e} + "']"`:s?(0,pt._)`"/" + ${e}`:(0,pt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,pt.getProperty)(e).toString():"/"+xp(e)}Fe.getErrorPath=OU;function Xv(e,i,t=e.opts.strictSchema){if(t){if(i=`strict mode: ${i}`,t===!0)throw new Error(i);e.self.logger.warn(i)}}Fe.checkStrictMode=Xv});var Qi=w(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});var ti=we(),FU={data:new ti.Name("data"),valCxt:new ti.Name("valCxt"),instancePath:new ti.Name("instancePath"),parentData:new ti.Name("parentData"),parentDataProperty:new ti.Name("parentDataProperty"),rootData:new ti.Name("rootData"),dynamicAnchors:new ti.Name("dynamicAnchors"),vErrors:new ti.Name("vErrors"),errors:new ti.Name("errors"),this:new ti.Name("this"),self:new ti.Name("self"),scope:new ti.Name("scope"),json:new ti.Name("json"),jsonPos:new ti.Name("jsonPos"),jsonLen:new ti.Name("jsonLen"),jsonPart:new ti.Name("jsonPart")};Pp.default=FU});var fa=w(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.extendErrors=ii.resetErrorsCount=ii.reportExtraError=ii.reportError=ii.keyword$DataError=ii.keywordError=void 0;var We=we(),id=qe(),gi=Qi();ii.keywordError={message:({keyword:e})=>(0,We.str)`must pass "${e}" keyword validation`};ii.keyword$DataError={message:({keyword:e,schemaType:i})=>i?(0,We.str)`"${e}" keyword must be ${i} ($data)`:(0,We.str)`"${e}" keyword is invalid ($data)`};function VU(e,i=ii.keywordError,t,s){let{it:r}=e,{gen:n,compositeRule:l,allErrors:c}=r,u=iw(e,i,t);s??(l||c)?ew(n,u):tw(r,(0,We._)`[${u}]`)}ii.reportError=VU;function LU(e,i=ii.keywordError,t){let{it:s}=e,{gen:r,compositeRule:n,allErrors:l}=s,c=iw(e,i,t);ew(r,c),n||l||tw(s,gi.default.vErrors)}ii.reportExtraError=LU;function qU(e,i){e.assign(gi.default.errors,i),e.if((0,We._)`${gi.default.vErrors} !== null`,()=>e.if(i,()=>e.assign((0,We._)`${gi.default.vErrors}.length`,i),()=>e.assign(gi.default.vErrors,null)))}ii.resetErrorsCount=qU;function KU({gen:e,keyword:i,schemaValue:t,data:s,errsCount:r,it:n}){if(r===void 0)throw new Error("ajv implementation error");let l=e.name("err");e.forRange("i",r,gi.default.errors,c=>{e.const(l,(0,We._)`${gi.default.vErrors}[${c}]`),e.if((0,We._)`${l}.instancePath === undefined`,()=>e.assign((0,We._)`${l}.instancePath`,(0,We.strConcat)(gi.default.instancePath,n.errorPath))),e.assign((0,We._)`${l}.schemaPath`,(0,We.str)`${n.errSchemaPath}/${i}`),n.opts.verbose&&(e.assign((0,We._)`${l}.schema`,t),e.assign((0,We._)`${l}.data`,s))})}ii.extendErrors=KU;function ew(e,i){let t=e.const("err",i);e.if((0,We._)`${gi.default.vErrors} === null`,()=>e.assign(gi.default.vErrors,(0,We._)`[${t}]`),(0,We._)`${gi.default.vErrors}.push(${t})`),e.code((0,We._)`${gi.default.errors}++`)}function tw(e,i){let{gen:t,validateName:s,schemaEnv:r}=e;r.$async?t.throw((0,We._)`new ${e.ValidationError}(${i})`):(t.assign((0,We._)`${s}.errors`,i),t.return(!1))}var ao={keyword:new We.Name("keyword"),schemaPath:new We.Name("schemaPath"),params:new We.Name("params"),propertyName:new We.Name("propertyName"),message:new We.Name("message"),schema:new We.Name("schema"),parentSchema:new We.Name("parentSchema")};function iw(e,i,t){let{createErrors:s}=e.it;return s===!1?(0,We._)`{}`:$U(e,i,t)}function $U(e,i,t={}){let{gen:s,it:r}=e,n=[GU(r,t),WU(e,t)];return YU(e,i,n),s.object(...n)}function GU({errorPath:e},{instancePath:i}){let t=i?(0,We.str)`${e}${(0,id.getErrorPath)(i,id.Type.Str)}`:e;return[gi.default.instancePath,(0,We.strConcat)(gi.default.instancePath,t)]}function WU({keyword:e,it:{errSchemaPath:i}},{schemaPath:t,parentSchema:s}){let r=s?i:(0,We.str)`${i}/${e}`;return t&&(r=(0,We.str)`${r}${(0,id.getErrorPath)(t,id.Type.Str)}`),[ao.schemaPath,r]}function YU(e,{params:i,message:t},s){let{keyword:r,data:n,schemaValue:l,it:c}=e,{opts:u,propertyName:p,topSchemaRef:h,schemaPath:v}=c;s.push([ao.keyword,r],[ao.params,typeof i=="function"?i(e):i||(0,We._)`{}`]),u.messages&&s.push([ao.message,typeof t=="function"?t(e):t]),u.verbose&&s.push([ao.schema,l],[ao.parentSchema,(0,We._)`${h}${v}`],[gi.default.data,n]),p&&s.push([ao.propertyName,p])}});var rw=w(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.boolOrEmptySchema=Yo.topBoolOrEmptySchema=void 0;var JU=fa(),ZU=we(),QU=Qi(),XU={message:"boolean schema is false"};function eO(e){let{gen:i,schema:t,validateName:s}=e;t===!1?sw(e,!1):typeof t=="object"&&t.$async===!0?i.return(QU.default.data):(i.assign((0,ZU._)`${s}.errors`,null),i.return(!0))}Yo.topBoolOrEmptySchema=eO;function tO(e,i){let{gen:t,schema:s}=e;s===!1?(t.var(i,!1),sw(e)):t.var(i,!0)}Yo.boolOrEmptySchema=tO;function sw(e,i){let{gen:t,data:s}=e,r={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,JU.reportError)(r,XU,void 0,i)}});var Tp=w(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.getRules=Jo.isJSONType=void 0;var iO=["string","number","integer","boolean","null","object","array"],sO=new Set(iO);function rO(e){return typeof e=="string"&&sO.has(e)}Jo.isJSONType=rO;function oO(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Le(fe({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Jo.getRules=oO});var zp=w(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.shouldUseRule=Ar.shouldUseGroup=Ar.schemaHasRulesForType=void 0;function nO({schema:e,self:i},t){let s=i.RULES.types[t];return s&&s!==!0&&ow(e,s)}Ar.schemaHasRulesForType=nO;function ow(e,i){return i.rules.some(t=>nw(e,t))}Ar.shouldUseGroup=ow;function nw(e,i){var t;return e[i.keyword]!==void 0||((t=i.definition.implements)===null||t===void 0?void 0:t.some(s=>e[s]!==void 0))}Ar.shouldUseRule=nw});var ba=w(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.reportTypeError=si.checkDataTypes=si.checkDataType=si.coerceAndCheckDataType=si.getJSONTypes=si.getSchemaTypes=si.DataType=void 0;var aO=Tp(),lO=zp(),cO=fa(),Ne=we(),aw=qe(),Zo=(function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e})(Zo||(si.DataType=Zo={}));function dO(e){let i=lw(e.type);if(i.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!i.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&i.push("null")}return i}si.getSchemaTypes=dO;function lw(e){let i=Array.isArray(e)?e:e?[e]:[];if(i.every(aO.isJSONType))return i;throw new Error("type must be JSONType or JSONType[]: "+i.join(","))}si.getJSONTypes=lw;function uO(e,i){let{gen:t,data:s,opts:r}=e,n=gO(i,r.coerceTypes),l=i.length>0&&!(n.length===0&&i.length===1&&(0,lO.schemaHasRulesForType)(e,i[0]));if(l){let c=jp(i,s,r.strictNumbers,Zo.Wrong);t.if(c,()=>{n.length?pO(e,i,n):Dp(e)})}return l}si.coerceAndCheckDataType=uO;var cw=new Set(["string","number","integer","boolean","null"]);function gO(e,i){return i?e.filter(t=>cw.has(t)||i==="array"&&t==="array"):[]}function pO(e,i,t){let{gen:s,data:r,opts:n}=e,l=s.let("dataType",(0,Ne._)`typeof ${r}`),c=s.let("coerced",(0,Ne._)`undefined`);n.coerceTypes==="array"&&s.if((0,Ne._)`${l} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,()=>s.assign(r,(0,Ne._)`${r}[0]`).assign(l,(0,Ne._)`typeof ${r}`).if(jp(i,r,n.strictNumbers),()=>s.assign(c,r))),s.if((0,Ne._)`${c} !== undefined`);for(let p of t)(cw.has(p)||p==="array"&&n.coerceTypes==="array")&&u(p);s.else(),Dp(e),s.endIf(),s.if((0,Ne._)`${c} !== undefined`,()=>{s.assign(r,c),mO(e,c)});function u(p){switch(p){case"string":s.elseIf((0,Ne._)`${l} == "number" || ${l} == "boolean"`).assign(c,(0,Ne._)`"" + ${r}`).elseIf((0,Ne._)`${r} === null`).assign(c,(0,Ne._)`""`);return;case"number":s.elseIf((0,Ne._)`${l} == "boolean" || ${r} === null
|
|
3
3
|
|| (${l} == "string" && ${r} && ${r} == +${r})`).assign(c,(0,Ne._)`+${r}`);return;case"integer":s.elseIf((0,Ne._)`${l} === "boolean" || ${r} === null
|
|
4
4
|
|| (${l} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(c,(0,Ne._)`+${r}`);return;case"boolean":s.elseIf((0,Ne._)`${r} === "false" || ${r} === 0 || ${r} === null`).assign(c,!1).elseIf((0,Ne._)`${r} === "true" || ${r} === 1`).assign(c,!0);return;case"null":s.elseIf((0,Ne._)`${r} === "" || ${r} === 0 || ${r} === false`),s.assign(c,null);return;case"array":s.elseIf((0,Ne._)`${l} === "string" || ${l} === "number"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as r}from"./chunk-5WBNDRQY.js";import{eb as o,ja as e}from"./chunk-EQP5UP7Q.js";var m=[{path:"",loadComponent:()=>import("./chunk-
|
|
1
|
+
import{h as r}from"./chunk-5WBNDRQY.js";import{eb as o,ja as e}from"./chunk-EQP5UP7Q.js";var m=[{path:"",loadComponent:()=>import("./chunk-GNRQH4AB.js").then(t=>t.TerminalComponent),canDeactivate:[t=>t.canDeactivate?t.canDeactivate():!0]}],n=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=o({type:t});static \u0275inj=e({imports:[r.forChild(m),r]})}return t})();var s=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=o({type:t});static \u0275inj=e({imports:[n]})}return t})();export{s as TerminalModule};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./chunk-46GAMPZC.js";import{a as z}from"./chunk-XFAARHWA.js";import{B as $,c as E,e as y,l as k}from"./chunk-PJNMYOLO.js";import{c as D}from"./chunk-5WBNDRQY.js";import{b as O}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-46GAMPZC.js";import{a as z}from"./chunk-XFAARHWA.js";import{B as $,c as E,e as y,l as k}from"./chunk-PJNMYOLO.js";import{c as D}from"./chunk-5WBNDRQY.js";import{b as O}from"./chunk-2FJR6XQC.js";import{k as T,n as I,q as H}from"./chunk-WLYALIGF.js";import{Ib as g,Lb as _,Nb as a,Qa as p,_b as v,db as x,fc as b,gc as M,h as S,hc as V,na as r,qb as m,rb as u,sa as l,ta as c,wb as f,x as C,xb as d,yb as s,zb as w}from"./chunk-EQP5UP7Q.js";function A(i,h){i&1&&w(0,"i",6)}function L(i,h){i&1&&w(0,"i",7)}function F(i,h){if(i&1){let t=g();d(0,"ngx-monaco-editor",10),_("onInit",function(e){l(t);let o=a();return c(o.onEditorInit(e))})("keydown.control.s",function(e){l(t);let o=a();return e.preventDefault(),c(o.onSave())})("keydown.meta.s",function(e){l(t);let o=a();return e.preventDefault(),c(o.onSave())}),s()}if(i&2){let t=a();f("options",t.editorOptions)("model",t.monacoEditorModel)}}function W(i,h){if(i&1){let t=g();d(0,"textarea",11),V("ngModelChange",function(e){l(t);let o=a();return M(o.startupScript,e)||(o.startupScript=e),c(e)}),v(1," "),s()}if(i&2){let t=a();b("ngModel",t.startupScript)}}var tt=(()=>{class i{$api=r(H);$md=r(z);$route=r(D);$settings=r(O);$toastr=r(I);$translate=r(T);lastHeight;visualViewPortEventCallback;startupScript;saveInProgress;isMobile=!1;options={printMargin:!1};monacoEditor;editorOptions;monacoEditorModel;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"shell",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light"},this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(t=>{this.startupScript=t.startupScript.script}),this.monacoEditorModel={value:"",language:"shell"}}onEditorInit(t){this.monacoEditor=t,this.monacoEditor.getModel().setValue(this.startupScript)}onSave(){return S(this,null,function*(){if(!this.saveInProgress){if(this.saveInProgress=!0,this.isMobile||(yield this.monacoEditor.getAction("editor.action.formatDocument").run(),this.startupScript=this.monacoEditor.getModel().getValue()),!["#!/bin/sh","#!/bin/bash"].includes(this.startupScript.split(`
|
|
2
2
|
`)[0].trim())){this.$toastr.error(this.$translate.instant("platform.docker.must_use_hashbang"),this.$translate.instant("toast.title_error")),this.startupScript=`#!/bin/sh
|
|
3
3
|
|
|
4
4
|
${this.startupScript}`,this.isMobile||this.monacoEditor.getModel().setValue(this.startupScript),this.saveInProgress=!1;return}try{yield C(this.$api.put("/platform-tools/docker/startup-script",{script:this.startupScript})),this.$toastr.success(this.$translate.instant("platform.docker.restart_required"),this.$translate.instant("platform.docker.script_saved"))}catch(t){console.error(t),this.$toastr.error(t.message,this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}ngOnDestroy(){window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=x({type:i,selectors:[["ng-component"]],decls:11,vars:4,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0","font-monospace"],[1,"col-6","text-end"],[1,"btn","btn-primary","waves-effect","m-0",3,"click","disabled"],[1,"fas","fa-spinner","fa-pulse"],[1,"fas","fa-floppy-disk"],[1,"flex-grow-1","h-100","w-100","my-2",3,"options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModel"],[1,"flex-grow-1","h-100","w-100","my-2",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-2",3,"ngModelChange","ngModel"]],template:function(n,e){n&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),v(4,"startup.sh"),s()(),d(5,"div",4)(6,"button",5),_("click",function(){return e.onSave()}),m(7,A,1,0,"i",6)(8,L,1,0,"i",7),s()()(),m(9,F,1,2,"ngx-monaco-editor",8),m(10,W,2,1,"textarea",9),s()),n&2&&(p(6),f("disabled",e.saveInProgress),p(),u(e.saveInProgress?7:8),p(2),u(e.isMobile?-1:9),p(),u(e.isMobile?10:-1))},dependencies:[P,$,E,y,k],encapsulation:2})}return i})();export{tt as StartupScriptComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as H}from"./chunk-VOHBPEFW.js";import{a as L,b as S}from"./chunk-EGCKVLUA.js";import{m as T}from"./chunk-5SJKGEVE.js";import{l as B}from"./chunk-
|
|
1
|
+
import{b as H}from"./chunk-VOHBPEFW.js";import{a as L,b as S}from"./chunk-EGCKVLUA.js";import{m as T}from"./chunk-5SJKGEVE.js";import{l as B}from"./chunk-WLYALIGF.js";import{$b as I,Ib as k,La as f,Lb as b,Ma as O,Nb as d,Qa as o,Zb as y,_b as u,ac as M,db as v,jc as w,na as h,pb as C,qb as r,rb as l,sa as x,sc as g,ta as P,tc as _,wb as p,xb as i,yb as a,zb as m}from"./chunk-EQP5UP7Q.js";function E(t,c){if(t&1&&m(0,"i",16),t&2){let n=d();y(w("fas ",n.faIconClass," mb-3"))}}function z(t,c){if(t&1&&m(0,"h5",6),t&2){let n=d();p("innerHTML",n.subtitle,f)}}function V(t,c){if(t&1&&m(0,"p",8),t&2){let n=d();p("innerHTML",n.message2,f)}}function D(t,c){if(t&1&&m(0,"markdown",9),t&2){let n=d();p("data",n.markdownMessage2)}}function N(t,c){if(t&1){let n=k();i(0,"button",17),g(1,"translate"),b("click",function(){x(n);let e=d();return P(e.dismissModal())}),u(2),g(3,"translate"),a()}t&2&&(C("aria-label",_(1,2,"form.button_close")),o(2),M(" ",_(3,4,"form.button_close")," "))}function j(t,c){if(t&1){let n=k();i(0,"button",17),g(1,"translate"),b("click",function(){x(n);let e=d();return P(e.dismissModal())}),u(2),g(3,"translate"),a()}t&2&&(C("aria-label",_(1,2,"form.button_close")),o(2),M(" ",_(3,4,"form.button_close")," "))}function A(t,c){if(t&1&&(i(0,"a",15),u(1),m(2,"i",18),a()),t&2){let n=d();p("href",n.ctaButtonLink,O),o(),M(" ",n.ctaButtonLabel," ")}}var X=(()=>{class t{$activeModal=h(T);title;subtitle;message;message2;ctaButtonLabel;ctaButtonLink;faIconClass;markdownMessage2;dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(s){return new(s||t)};static \u0275cmp=v({type:t,selectors:[["ng-component"]],inputs:{title:"title",subtitle:"subtitle",message:"message",message2:"message2",ctaButtonLabel:"ctaButtonLabel",ctaButtonLink:"ctaButtonLink",faIconClass:"faIconClass",markdownMessage2:"markdownMessage2"},decls:19,vars:12,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[2,"font-size","75px",3,"class"],[1,"mb-3",3,"innerHTML"],[1,"mb-0",3,"innerHTML"],[1,"mb-0","mt-3",3,"innerHTML"],[1,"plugin-md",3,"data"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[2,"font-size","75px"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"fas","fa-external-link-alt"]],template:function(s,e){s&1&&(i(0,"div",0)(1,"div",1)(2,"h5",2),u(3),a(),i(4,"button",3),g(5,"translate"),b("click",function(){return e.dismissModal()}),a()(),i(6,"div",4),r(7,E,1,3,"i",5),r(8,z,1,1,"h5",6),m(9,"p",7),r(10,V,1,1,"p",8),r(11,D,1,1,"markdown",9),a(),i(12,"div",10)(13,"div",11),r(14,N,4,6,"button",12),a(),i(15,"div",13),r(16,j,4,6,"button",12),a(),i(17,"div",14),r(18,A,3,2,"a",15),a()()()),s&2&&(o(3),I(e.title),o(),C("aria-label",_(5,10,"form.button_close")),o(3),l(e.faIconClass?7:-1),o(),l(e.subtitle?8:-1),o(),p("innerHTML",e.message,f),o(),l(e.message2?10:-1),o(),l(e.markdownMessage2?11:-1),o(3),l(e.ctaButtonLink?14:-1),o(2),l(e.ctaButtonLink?-1:16),o(2),l(e.ctaButtonLink?18:-1))},dependencies:[S,L,H,B],styles:["[_nghost-%COMP%] .plugin-md{display:block!important;background-color:#f6f8fa!important;border-radius:6px!important;padding:16px!important;margin:16px auto!important;width:100%!important;max-width:632px!important}[_nghost-%COMP%] .plugin-md table{width:100%;max-width:600px;margin:0 auto!important;border-collapse:collapse;border:1px solid #d0d7de!important;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif!important;font-size:14px!important;color:#24292e!important}[_nghost-%COMP%] .plugin-md th, [_nghost-%COMP%] .plugin-md td{padding:6px 13px!important;border:1px solid #d0d7de!important;text-align:left;color:#24292e!important}[_nghost-%COMP%] .plugin-md th{background-color:#f6f8fa!important;font-weight:600!important;text-align:center!important}[_nghost-%COMP%] .plugin-md td[align=center]{text-align:center!important}[_nghost-%COMP%] .plugin-md tr{color:#24292e!important}[_nghost-%COMP%] .plugin-md tr:nth-child(odd){background-color:#fff!important}[_nghost-%COMP%] .plugin-md tr:nth-child(2n){background-color:#f6f8fa!important}[_nghost-%COMP%] .plugin-md tr:hover{background-color:#f0f2f5!important}[_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%]{background-color:#2b2b2b!important;color:#fff!important}[_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] table[_ngcontent-%COMP%], [_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] tr[_ngcontent-%COMP%], [_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] th[_ngcontent-%COMP%], [_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:#fff!important}[_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#3c3c3c!important}[_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd){background-color:#323232!important}[_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#2b2b2b!important}[_nghost-%COMP%] body.dark-mode[_ngcontent-%COMP%] .plugin-md[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#454545!important}"]})}return t})();export{X as a};
|