homebridge-config-ui-x 5.0.0-beta.6 → 5.0.0-beta.60
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/CHANGELOG.md +384 -20
- package/CONTRIBUTING.md +5 -4
- package/LICENSE +1 -1
- package/config.schema.json +34 -144
- package/dist/bin/hb-service.d.ts +2 -2
- package/dist/bin/hb-service.js +51 -50
- package/dist/bin/hb-service.js.map +1 -1
- package/dist/bin/platforms/darwin.js +2 -2
- package/dist/bin/platforms/darwin.js.map +1 -1
- package/dist/bin/platforms/win32.js +4 -2
- package/dist/bin/platforms/win32.js.map +1 -1
- package/dist/bin/standalone.js +1 -0
- package/dist/bin/standalone.js.map +1 -1
- package/dist/core/auth/auth.controller.d.ts +2 -2
- package/dist/core/auth/auth.controller.js.map +1 -1
- package/dist/core/auth/auth.module.js +1 -1
- package/dist/core/auth/auth.module.js.map +1 -1
- package/dist/core/auth/auth.service.js +10 -10
- package/dist/core/auth/auth.service.js.map +1 -1
- package/dist/core/auth/jwt.strategy.d.ts +3 -1
- package/dist/core/config/config.service.d.ts +4 -6
- package/dist/core/config/config.service.js +9 -9
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/core/config/config.startup.js +2 -2
- package/dist/core/config/config.startup.js.map +1 -1
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js +3 -3
- package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
- package/dist/index.js +6 -77
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/modules/accessories/accessories.controller.js +5 -5
- package/dist/modules/accessories/accessories.controller.js.map +1 -1
- package/dist/modules/accessories/accessories.service.js +8 -7
- package/dist/modules/accessories/accessories.service.js.map +1 -1
- package/dist/modules/backup/backup.controller.js +7 -7
- package/dist/modules/backup/backup.controller.js.map +1 -1
- package/dist/modules/backup/backup.service.d.ts +1 -0
- package/dist/modules/backup/backup.service.js +57 -89
- package/dist/modules/backup/backup.service.js.map +1 -1
- package/dist/modules/child-bridges/child-bridges.service.js +0 -7
- package/dist/modules/child-bridges/child-bridges.service.js.map +1 -1
- package/dist/modules/config-editor/config-editor.controller.d.ts +1 -1
- package/dist/modules/config-editor/config-editor.controller.js +8 -8
- package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
- package/dist/modules/config-editor/config-editor.service.d.ts +1 -1
- package/dist/modules/config-editor/config-editor.service.js +62 -64
- package/dist/modules/config-editor/config-editor.service.js.map +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +1 -1
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +13 -11
- package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
- package/dist/modules/log/log.gateway.d.ts +2 -1
- package/dist/modules/log/log.gateway.js.map +1 -1
- package/dist/modules/log/log.service.js +3 -3
- package/dist/modules/log/log.service.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.controller.js +3 -3
- package/dist/modules/platform-tools/docker/docker.controller.js.map +1 -1
- package/dist/modules/platform-tools/docker/docker.service.js +1 -1
- package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.controller.js +3 -3
- package/dist/modules/platform-tools/hb-service/hb-service.controller.js.map +1 -1
- package/dist/modules/platform-tools/hb-service/hb-service.service.js +6 -6
- package/dist/modules/platform-tools/hb-service/hb-service.service.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.controller.js +2 -2
- package/dist/modules/platform-tools/linux/linux.controller.js.map +1 -1
- package/dist/modules/platform-tools/linux/linux.service.js +2 -2
- package/dist/modules/platform-tools/linux/linux.service.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.gateway.d.ts +2 -1
- package/dist/modules/platform-tools/terminal/terminal.gateway.js.map +1 -1
- package/dist/modules/platform-tools/terminal/terminal.service.js +2 -2
- package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
- package/dist/modules/plugins/plugins.controller.js +4 -4
- package/dist/modules/plugins/plugins.controller.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +4 -1
- package/dist/modules/plugins/plugins.service.js +174 -103
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/server/server.controller.d.ts +22 -2
- package/dist/modules/server/server.controller.js +86 -18
- package/dist/modules/server/server.controller.js.map +1 -1
- package/dist/modules/server/server.service.d.ts +24 -6
- package/dist/modules/server/server.service.js +186 -67
- package/dist/modules/server/server.service.js.map +1 -1
- package/dist/modules/status/status.controller.d.ts +0 -1
- package/dist/modules/status/status.controller.js +3 -4
- package/dist/modules/status/status.controller.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +1 -1
- package/dist/modules/status/status.service.d.ts +1 -1
- package/dist/modules/status/status.service.js +17 -41
- package/dist/modules/status/status.service.js.map +1 -1
- package/dist/modules/users/users.controller.js +7 -7
- package/dist/modules/users/users.controller.js.map +1 -1
- package/dist/self-check.js +6 -6
- package/dist/self-check.js.map +1 -1
- package/package.json +45 -43
- package/public/3rdpartylicenses.txt +119 -62
- package/public/assets/hap-icons/airpurifier.svg +49 -16
- package/public/assets/hap-icons/airquality.svg +24 -13
- package/public/assets/hap-icons/co-sensor.svg +72 -0
- package/public/assets/hap-icons/co2-sensor.svg +72 -0
- package/public/assets/hap-icons/contactsensor-closed.svg +35 -2
- package/public/assets/hap-icons/contactsensor-open.svg +80 -2
- package/public/assets/hap-icons/door-closed.svg +32 -2
- package/public/assets/hap-icons/door-open.svg +48 -2
- package/public/assets/hap-icons/fan-off.svg +24 -13
- package/public/assets/hap-icons/fan-on.svg +24 -13
- package/public/assets/hap-icons/garagedoor.svg +24 -13
- package/public/assets/hap-icons/humidity.svg +24 -13
- package/public/assets/hap-icons/irrigation-system.svg +47 -18
- package/public/assets/hap-icons/leaksensor.svg +52 -2
- package/public/assets/hap-icons/light.svg +47 -28
- package/public/assets/hap-icons/lightbulb.svg +24 -13
- package/public/assets/hap-icons/lock-locked.svg +24 -13
- package/public/assets/hap-icons/lock-unlocked.svg +24 -13
- package/public/assets/hap-icons/motionsensor.svg +100 -2
- package/public/assets/hap-icons/occupancysensor.svg +97 -2
- package/public/assets/hap-icons/outlet.svg +24 -13
- package/public/assets/hap-icons/securitysystem-active.svg +102 -2
- package/public/assets/hap-icons/securitysystem-off.svg +68 -2
- package/public/assets/hap-icons/smokesensor.svg +42 -9
- package/public/assets/hap-icons/speaker.svg +29 -13
- package/public/assets/hap-icons/statelessprogrammableswitch.svg +51 -2
- package/public/assets/hap-icons/switch.svg +24 -13
- package/public/assets/hap-icons/television.svg +15 -4
- package/public/assets/hap-icons/temperature.svg +24 -13
- package/public/assets/hap-icons/unknown.svg +24 -13
- package/public/assets/hap-icons/valve-generic.svg +27 -16
- package/public/assets/hap-icons/valve-irrigation.svg +37 -21
- package/public/assets/hap-icons/valve-showerhead.svg +52 -0
- package/public/assets/hap-icons/valve-waterfaucet.svg +21 -0
- package/public/assets/hap-icons/window-closed.svg +85 -2
- package/public/assets/hap-icons/window-open.svg +136 -2
- package/public/assets/hap-icons/windowcovering-closed.svg +45 -49
- package/public/assets/hap-icons/windowcovering-open.svg +40 -44
- package/public/assets/homebridge-color-round.svg +36 -1
- package/public/assets/homebridge-logo.svg +11 -1
- package/public/assets/mask-icon.svg +5 -1
- package/public/chunk-2HDJYV7P.js +1 -0
- package/public/chunk-2PYGXL3S.js +1 -0
- package/public/chunk-3JURJEIZ.js +1 -0
- package/public/chunk-3MYZ74PN.js +1 -0
- package/public/{chunk-CCUID66K.js → chunk-3NAAMMFZ.js} +1 -1
- package/public/chunk-3R3PVZG7.js +1 -0
- package/public/{chunk-BKUGARB4.js → chunk-44K5XVZH.js} +1 -1
- package/public/chunk-4UVD743J.js +1 -0
- package/public/chunk-5HMI3475.js +1 -0
- package/public/{chunk-NW6AFAD7.js → chunk-6OMIETCH.js} +1 -1
- package/public/chunk-6ZN4TBLM.js +7 -0
- package/public/chunk-7C3VZ3TZ.js +1 -0
- package/public/chunk-7IAYSGNN.js +1 -0
- package/public/{chunk-NWD4LL6Q.js → chunk-7X5P6T37.js} +1 -1
- package/public/chunk-ABI2LUSA.js +1 -0
- package/public/{chunk-QE7DO6J3.js → chunk-AFY7IWPI.js} +2 -2
- package/public/chunk-B75MYCJS.js +1 -0
- package/public/chunk-BC4ZZQWV.js +1 -0
- package/public/chunk-BS6X2RZL.js +1 -0
- package/public/chunk-BTB3JIDJ.js +1 -0
- package/public/chunk-CLRF6AUJ.js +6 -0
- package/public/{chunk-WNWWUCCZ.js → chunk-CUKPSGYS.js} +1 -1
- package/public/chunk-CYW4JA4J.js +1 -0
- package/public/{chunk-WHJSVGC7.js → chunk-D33FRRVF.js} +1 -1
- package/public/chunk-D6DBYUFZ.js +1 -0
- package/public/chunk-DBUCH6BG.js +1 -0
- package/public/chunk-DNQFYNG6.js +1 -0
- package/public/chunk-F5ICJKYI.js +8 -0
- package/public/chunk-FETTFNJ2.js +1 -0
- package/public/{chunk-6TCHCTXZ.js → chunk-G5LGUOIC.js} +1 -1
- package/public/chunk-GDFC3M3E.js +2 -0
- package/public/chunk-GLHOQ5NF.js +1 -0
- package/public/chunk-GSGK2SKG.js +1 -0
- package/public/chunk-H2GFXLCD.js +1 -0
- package/public/chunk-H2OOFTLR.js +1 -0
- package/public/chunk-HEMNUWDO.js +1 -0
- package/public/{chunk-3KDOQQBM.js → chunk-HGUYWCTI.js} +2 -2
- package/public/chunk-I275JECR.js +1 -0
- package/public/{chunk-JZZQRLNW.js → chunk-I6OD3CV4.js} +1 -1
- package/public/chunk-IGYTH5AX.js +14 -0
- package/public/chunk-IPT5RIJX.js +1 -0
- package/public/chunk-J4CB3RFZ.js +1 -0
- package/public/chunk-KFR3ZGJZ.js +1 -0
- package/public/chunk-KKIRFTQL.js +5 -0
- package/public/{chunk-7EUQWCP5.js → chunk-KPW2P5T4.js} +1 -1
- package/public/chunk-L3LMIZ4T.js +1 -0
- package/public/chunk-L4DBDSHB.js +1 -0
- package/public/chunk-LCRNBCRA.js +1 -0
- package/public/chunk-LZSQNNXJ.js +1 -0
- package/public/chunk-MMD3VZMJ.js +20 -0
- package/public/chunk-MOCPJJF3.js +1 -0
- package/public/chunk-NAFR5P6T.js +1 -0
- package/public/chunk-NRSBQVRN.js +1 -0
- package/public/chunk-O5XYQE2Q.js +23 -0
- package/public/chunk-OBOD4WBI.js +1 -0
- package/public/chunk-OI57SN2B.js +1 -0
- package/public/{chunk-4IKE4OKZ.js → chunk-OJE7KDWZ.js} +1 -1
- package/public/chunk-OXOBBTSH.js +1 -0
- package/public/chunk-PCYP2KRX.js +1 -0
- package/public/{chunk-EA5J2VEJ.js → chunk-QCVDY2FW.js} +1 -1
- package/public/chunk-QGLICWXR.js +1 -0
- package/public/chunk-QJ75M7UB.js +1 -0
- package/public/chunk-RFWUHIJ5.js +1 -0
- package/public/chunk-T2YC5S4T.js +1 -0
- package/public/chunk-TCXWRDYD.js +1 -0
- package/public/chunk-TEFE7EK6.js +1 -0
- package/public/chunk-TWDTF4UX.js +1 -0
- package/public/{chunk-QXT6R24L.js → chunk-TYEF6KNJ.js} +1 -1
- package/public/chunk-UCQRW7SR.js +1 -0
- package/public/chunk-VDSVEHQG.js +1 -0
- package/public/chunk-W2INV3O5.js +5 -0
- package/public/chunk-WACROBL3.js +1 -0
- package/public/chunk-WGP32ABK.js +1 -0
- package/public/chunk-XSS6G7LC.js +1 -0
- package/public/chunk-YCBC3C3V.js +1 -0
- package/public/chunk-YET3EKNI.js +1 -0
- package/public/chunk-YTVVSAM2.js +1 -0
- package/public/chunk-YU3C2YTO.js +32 -0
- package/public/chunk-YWMHIHWJ.js +1 -0
- package/public/chunk-Z7QXZUQS.js +1 -0
- package/public/chunk-ZB3BYZDQ.js +1 -0
- package/public/chunk-ZIXTTJ4W.js +1 -0
- package/public/chunk-ZZQJ3DGD.js +1 -0
- package/public/index.html +2 -2
- package/public/main-26CAD2XH.js +1 -0
- package/public/media/fa-brands-400-Q3XCMWHQ.woff2 +0 -0
- package/public/media/{fa-brands-400-KOKGDU7E.ttf → fa-brands-400-R2XQZCET.ttf} +0 -0
- package/public/media/fa-regular-400-QSNYFYRT.woff2 +0 -0
- package/public/media/{fa-regular-400-IPMAEX5Y.ttf → fa-regular-400-XUOPSR7E.ttf} +0 -0
- package/public/media/fa-solid-900-5ZUYHGA7.woff2 +0 -0
- package/public/media/{fa-solid-900-SRFFQLRM.ttf → fa-solid-900-PJNKLK6W.ttf} +0 -0
- package/public/polyfills-JFMQVUE2.js +2 -0
- package/public/styles-6IKEC5B4.css +1 -0
- package/scripts/upgrade-install-plugin.sh +1 -1
- package/public/chunk-2J6XFH3T.js +0 -1
- package/public/chunk-2KNNQ3N3.js +0 -1
- package/public/chunk-3FKHRKWG.js +0 -1
- package/public/chunk-3IX3CLER.js +0 -1
- package/public/chunk-3YHN3VHA.js +0 -1
- package/public/chunk-4AVEC3ZU.js +0 -1
- package/public/chunk-5BHGCTWL.js +0 -5
- package/public/chunk-62ADZGBJ.js +0 -6
- package/public/chunk-6GHV2TKM.js +0 -1
- package/public/chunk-6SC3OCKT.js +0 -8
- package/public/chunk-BCHM64F4.js +0 -1
- package/public/chunk-BPMSJ2VF.js +0 -1
- package/public/chunk-C2ERQ3FX.js +0 -1
- package/public/chunk-C6NH5RUO.js +0 -1
- package/public/chunk-CUPS2NE5.js +0 -1
- package/public/chunk-D6EUS4KM.js +0 -1
- package/public/chunk-DNZYDCPW.js +0 -1
- package/public/chunk-E3OHYYGW.js +0 -23
- package/public/chunk-EMKXES77.js +0 -14
- package/public/chunk-G7AVJCRN.js +0 -1
- package/public/chunk-HSJSWZHD.js +0 -1
- package/public/chunk-HYBTNEG3.js +0 -1
- package/public/chunk-J34SI644.js +0 -1
- package/public/chunk-JD7YSN6P.js +0 -1
- package/public/chunk-JL3HH376.js +0 -1
- package/public/chunk-JN46TW24.js +0 -1
- package/public/chunk-JPWCYJWM.js +0 -1
- package/public/chunk-JQVXXNK7.js +0 -1
- package/public/chunk-JW6PX64L.js +0 -1
- package/public/chunk-JXEJU7V3.js +0 -1
- package/public/chunk-K53Q52AX.js +0 -1
- package/public/chunk-KD3Z24TB.js +0 -1
- package/public/chunk-KPCZLNW7.js +0 -1
- package/public/chunk-KQJ7ONUG.js +0 -1
- package/public/chunk-KUOCPYMN.js +0 -1
- package/public/chunk-KXMGIDLQ.js +0 -1
- package/public/chunk-KZLHFU5K.js +0 -1
- package/public/chunk-LJHUPCL3.js +0 -32
- package/public/chunk-MTMEA6JC.js +0 -1
- package/public/chunk-N5BZ3IQD.js +0 -1
- package/public/chunk-N5UE2QRB.js +0 -1
- package/public/chunk-NGAJQJ5T.js +0 -1
- package/public/chunk-NNATGODS.js +0 -1
- package/public/chunk-NZNNTHFQ.js +0 -1
- package/public/chunk-ORPWYWCL.js +0 -5
- package/public/chunk-OSDZN4BY.js +0 -1
- package/public/chunk-PREJ7FYU.js +0 -1
- package/public/chunk-QHPDGSZ6.js +0 -1
- package/public/chunk-RBHJOIVB.js +0 -1
- package/public/chunk-RRHDXAZE.js +0 -1
- package/public/chunk-T7MCUROV.js +0 -1
- package/public/chunk-TCSXGQNF.js +0 -1
- package/public/chunk-TTENUNEO.js +0 -1
- package/public/chunk-TXOB7R5K.js +0 -7
- package/public/chunk-UEX6RTZJ.js +0 -1
- package/public/chunk-UG5DK2RQ.js +0 -2
- package/public/chunk-UG6ZOHXY.js +0 -1
- package/public/chunk-UN5422JY.js +0 -1
- package/public/chunk-VAJZ7KCO.js +0 -1
- package/public/chunk-VBCYNIMT.js +0 -1
- package/public/chunk-WHJOLAED.js +0 -1
- package/public/chunk-WJFAG3CM.js +0 -20
- package/public/chunk-YN5SJ37A.js +0 -1
- package/public/chunk-YR3ETJZY.js +0 -1
- package/public/chunk-YRD5IXFM.js +0 -1
- package/public/chunk-Z4A7KLCA.js +0 -1
- package/public/chunk-ZT23DWNL.js +0 -1
- package/public/main-LYJIIXIC.js +0 -1
- package/public/media/01-RQ3S2L53.png +0 -0
- package/public/media/02-VNCG2I2A.png +0 -0
- package/public/media/03-HI42L4ZG.png +0 -0
- package/public/media/04-FJLL55LZ.png +0 -0
- package/public/media/05-V3EO6SPT.png +0 -0
- package/public/media/06-EOJZCQZN.png +0 -0
- package/public/media/07-KMKB5PBD.png +0 -0
- package/public/media/08-UQJRF6B2.png +0 -0
- package/public/media/09-2DJQFRHH.png +0 -0
- package/public/media/arrow_left-CQT7FZM7.svg +0 -4
- package/public/media/arrow_right-SBUDRR2G.svg +0 -4
- package/public/media/fa-brands-400-6PJPV6JM.woff2 +0 -0
- package/public/media/fa-regular-400-OHB6J4OK.woff2 +0 -0
- package/public/media/fa-solid-900-ABTK6BNK.woff2 +0 -0
- package/public/polyfills-C6JHVXJJ.js +0 -2
- package/public/scripts-6GVLYD7F.js +0 -62
- package/public/styles-EG5MFQEM.css +0 -1
- /package/public/assets/{bootstrap-4 → bootstrap-5}/cssframework/assets.json +0 -0
package/public/chunk-UG5DK2RQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$a as tt,$c as ee,Ea as ve,Ga as M,H as $e,Ha as Ee,Ic as it,Jc as at,Ka as Ye,L as Xe,La as Te,Ma as Ke,Na as N,Pa as we,Pc as H,Qc as ct,Rc as lt,Sc as R,T as me,Ua as V,Va as L,Wa as C,Xa as qe,Ya as Qe,Za as He,_a as et,a as B,aa as Ge,ab as nt,b as ze,bb as rt,cb as S,ea as b,fa as D,h as he,ha as v,hb as $,ia as ye,k as fe,ka as w,ma as d,md as dt,na as T,nd as ut,ob as st,pd as te,q as Ve,qa as ge,r as pe,rd as ne,sa as Je,sb as Re,ta as Ze,ua as We,wb as ot,x as z,xb as q,yb as Q,zb as be}from"./chunk-TXOB7R5K.js";var G=class{},se=class{},A=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
2
|
-
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let s=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(s,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let s=(t.op==="a"?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>o.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let n=t.toLowerCase();this.maybeSetNormalizedName(t,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),s=t.toLowerCase();this.headers.set(s,n),this.maybeSetNormalizedName(t,s)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var Ae=class{encodeKey(t){return ht(t)}encodeValue(t){return ht(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Ft(r,t){let e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let o=s.indexOf("="),[i,c]=o==-1?[t.decodeKey(s),""]:[t.decodeKey(s.slice(0,o)),t.decodeValue(s.slice(o+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var Bt=/%(\d[a-f0-9])/gi,zt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ht(r){return encodeURIComponent(r).replace(Bt,(t,e)=>{var n;return(n=zt[e])!=null?n:t})}function re(r){return`${r}`}var P=class r{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ae,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ft(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],s=Array.isArray(n)?n.map(re):[re(n)];this.map.set(e,s)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let s=t[n];Array.isArray(s)?s.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:s,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new r({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(re(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],s=n.indexOf(re(t.value));s!==-1&&n.splice(s,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var De=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Vt(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ft(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function pt(r){return typeof Blob<"u"&&r instanceof Blob}function mt(r){return typeof FormData<"u"&&r instanceof FormData}function $t(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var X=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,e,n,s){var i,c;this.url=e,this.method=t.toUpperCase();let o;if(Vt(this.method)||s?(this.body=n!==void 0?n:null,o=s):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),(i=this.headers)!=null||(this.headers=new A),(c=this.context)!=null||(this.context=new De),!this.params)this.params=new P,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let l=e.indexOf("?"),p=l===-1?"?":l<e.length-1?"&":"";this.urlWithParams=e+p+a}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ft(this.body)||pt(this.body)||mt(this.body)||$t(this.body)?this.body:this.body instanceof P?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||mt(this.body)?null:pt(this.body)?this.body.type||null:ft(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){var y,g,_,u;let e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,o=(y=t.transferCache)!=null?y:this.transferCache,i=t.body!==void 0?t.body:this.body,c=(g=t.withCredentials)!=null?g:this.withCredentials,a=(_=t.reportProgress)!=null?_:this.reportProgress,l=t.headers||this.headers,p=t.params||this.params,m=(u=t.context)!=null?u:this.context;return t.setHeaders!==void 0&&(l=Object.keys(t.setHeaders).reduce((h,E)=>h.set(E,t.setHeaders[E]),l)),t.setParams&&(p=Object.keys(t.setParams).reduce((h,E)=>h.set(E,t.setParams[E]),p)),new r(e,n,i,{params:p,headers:l,context:m,reportProgress:a,responseType:s,withCredentials:c,transferCache:o})}},I=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(I||{}),J=class{headers;status;statusText;url;ok;type;constructor(t,e=200,n="OK"){this.headers=t.headers||new A,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},oe=class r extends J{constructor(t={}){super(t)}type=I.ResponseHeader;clone(t={}){return new r({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Z=class r extends J{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=I.Response;clone(t={}){return new r({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},O=class extends J{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Tt=200,Xt=204;function Me(r,t){return{body:t,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Gt=(()=>{class r{handler;constructor(e){this.handler=e}request(e,n,s={}){let o;if(e instanceof X)o=e;else{let a;s.headers instanceof A?a=s.headers:a=new A(s.headers);let l;s.params&&(s.params instanceof P?l=s.params:l=new P({fromObject:s.params})),o=new X(e,n,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let i=pe(o).pipe(Xe(a=>this.handler.handle(a)));if(e instanceof X||s.observe==="events")return i;let c=i.pipe($e(a=>a instanceof Z));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(z(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(z(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(z(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(z(a=>a.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new P().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,s={}){return this.request("PATCH",e,Me(s,n))}post(e,n,s={}){return this.request("POST",e,Me(s,n))}put(e,n,s={}){return this.request("PUT",e,Me(s,n))}static \u0275fac=function(n){return new(n||r)(d(G))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),Jt=/^\)\]\}',?\n/,Zt="X-Request-URL";function yt(r){if(r.url)return r.url;let t=Zt.toLocaleLowerCase();return r.headers.get(t)}var Wt=(()=>{var t,e;class r{fetchImpl=(e=(t=T(Oe,{optional:!0}))==null?void 0:t.fetch)!=null?e:(...s)=>globalThis.fetch(...s);ngZone=T(M);handle(s){return new fe(o=>{let i=new AbortController;return this.doRequest(s,i.signal,o).then(Pe,c=>o.error(new O({error:c}))),()=>i.abort()})}doRequest(s,o,i){return he(this,null,function*(){var u,h,E,x;let c=this.createRequestInit(s),a;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(s.urlWithParams,B({signal:o},c)));Yt(f),i.next({type:I.Sent}),a=yield f}catch(f){i.error(new O({error:f,status:(u=f.status)!=null?u:0,statusText:f.statusText,url:s.urlWithParams,headers:f.headers}));return}let l=new A(a.headers),p=a.statusText,m=(h=yt(a))!=null?h:s.urlWithParams,y=a.status,g=null;if(s.reportProgress&&i.next(new oe({headers:l,status:y,statusText:p,url:m})),a.body){let f=a.headers.get("content-length"),k=[],le=a.body.getReader(),j=0,de,U,Fe=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>he(this,null,function*(){for(;;){let{done:F,value:ue}=yield le.read();if(F)break;if(k.push(ue),j+=ue.length,s.reportProgress){U=s.responseType==="text"?(U!=null?U:"")+(de!=null?de:de=new TextDecoder).decode(ue,{stream:!0}):void 0;let Be=()=>i.next({type:I.DownloadProgress,total:f?+f:void 0,loaded:j,partialText:U});Fe?Fe.run(Be):Be()}}}));let Ct=this.concatChunks(k,j);try{let F=(E=a.headers.get("Content-Type"))!=null?E:"";g=this.parseBody(s,Ct,F)}catch(F){i.error(new O({error:F,headers:new A(a.headers),status:a.status,statusText:a.statusText,url:(x=yt(a))!=null?x:s.urlWithParams}));return}}y===0&&(y=g?Tt:0),y>=200&&y<300?(i.next(new Z({body:g,headers:l,status:y,statusText:p,url:m})),i.complete()):i.error(new O({error:g,headers:l,status:y,statusText:p,url:m}))})}parseBody(s,o,i){switch(s.responseType){case"json":let c=new TextDecoder().decode(o).replace(Jt,"");return c===""?null:JSON.parse(c);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(s){let o={},i=s.withCredentials?"include":void 0;if(s.headers.forEach((c,a)=>o[c]=a.join(",")),s.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!s.headers.has("Content-Type")){let c=s.detectContentTypeHeader();c!==null&&(o["Content-Type"]=c)}return{body:s.serializeBody(),method:s.method,headers:o,credentials:i}}concatChunks(s,o){let i=new Uint8Array(o),c=0;for(let a of s)i.set(a,c),c+=a.length;return i}static \u0275fac=function(o){return new(o||r)};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),Oe=class{};function Pe(){}function Yt(r){r.then(Pe,Pe)}function wt(r,t){return t(r)}function Kt(r,t){return(e,n)=>t.intercept(e,{handle:s=>r(s,n)})}function qt(r,t,e){return(n,s)=>We(e,()=>t(n,o=>r(o,s)))}var Qt=new w(""),Ie=new w(""),Ht=new w(""),Rt=new w("",{providedIn:"root",factory:()=>!0});function en(){let r=null;return(t,e)=>{var o;r===null&&(r=((o=T(Qt,{optional:!0}))!=null?o:[]).reduceRight(Kt,wt));let n=T(ve);if(T(Rt)){let i=n.add();return r(t,e).pipe(me(()=>n.remove(i)))}else return r(t,e)}}var gt=(()=>{class r extends G{backend;injector;chain=null;pendingTasks=T(ve);contributeToStability=T(Rt);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ie),...this.injector.get(Ht,[])]));this.chain=n.reduceRight((s,o)=>qt(s,o,this.injector),wt)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,s=>this.backend.handle(s)).pipe(me(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||r)(d(se),d(Ze))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})();var tn=/^\)\]\}',?\n/;function nn(r){return"responseURL"in r&&r.responseURL?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):null}var vt=(()=>{class r{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new b(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Ve(n.\u0275loadImpl()):pe(null)).pipe(Ge(()=>new fe(o=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((u,h)=>i.setRequestHeader(u,h.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let u=e.detectContentTypeHeader();u!==null&&i.setRequestHeader("Content-Type",u)}if(e.responseType){let u=e.responseType.toLowerCase();i.responseType=u!=="json"?u:"text"}let c=e.serializeBody(),a=null,l=()=>{if(a!==null)return a;let u=i.statusText||"OK",h=new A(i.getAllResponseHeaders()),E=nn(i)||e.url;return a=new oe({headers:h,status:i.status,statusText:u,url:E}),a},p=()=>{let{headers:u,status:h,statusText:E,url:x}=l(),f=null;h!==Xt&&(f=typeof i.response>"u"?i.responseText:i.response),h===0&&(h=f?Tt:0);let k=h>=200&&h<300;if(e.responseType==="json"&&typeof f=="string"){let le=f;f=f.replace(tn,"");try{f=f!==""?JSON.parse(f):null}catch(j){f=le,k&&(k=!1,f={error:j,text:f})}}k?(o.next(new Z({body:f,headers:u,status:h,statusText:E,url:x||void 0})),o.complete()):o.error(new O({error:f,headers:u,status:h,statusText:E,url:x||void 0}))},m=u=>{let{url:h}=l(),E=new O({error:u,status:i.status||0,statusText:i.statusText||"Unknown Error",url:h||void 0});o.error(E)},y=!1,g=u=>{y||(o.next(l()),y=!0);let h={type:I.DownloadProgress,loaded:u.loaded};u.lengthComputable&&(h.total=u.total),e.responseType==="text"&&i.responseText&&(h.partialText=i.responseText),o.next(h)},_=u=>{let h={type:I.UploadProgress,loaded:u.loaded};u.lengthComputable&&(h.total=u.total),o.next(h)};return i.addEventListener("load",p),i.addEventListener("error",m),i.addEventListener("timeout",m),i.addEventListener("abort",m),e.reportProgress&&(i.addEventListener("progress",g),c!==null&&i.upload&&i.upload.addEventListener("progress",_)),i.send(c),o.next({type:I.Sent}),()=>{i.removeEventListener("error",m),i.removeEventListener("abort",m),i.removeEventListener("load",p),i.removeEventListener("timeout",m),e.reportProgress&&(i.removeEventListener("progress",g),c!==null&&i.upload&&i.upload.removeEventListener("progress",_)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(n){return new(n||r)(d(ne))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),bt=new w(""),rn="XSRF-TOKEN",sn=new w("",{providedIn:"root",factory:()=>rn}),on="X-XSRF-TOKEN",an=new w("",{providedIn:"root",factory:()=>on}),ie=class{},cn=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ee(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||r)(d(R),d(N),d(sn))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})();function ln(r,t){let e=r.url.toLowerCase();if(!T(bt)||r.method==="GET"||r.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(r);let n=T(ie).getToken(),s=T(an);return n!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,n)})),t(r)}var Mt=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(Mt||{});function dn(r,t){return{\u0275kind:r,\u0275providers:t}}function Qn(...r){let t=[Gt,vt,gt,{provide:G,useExisting:gt},{provide:se,useFactory:()=>{var e;return(e=T(Wt,{optional:!0}))!=null?e:T(vt)}},{provide:Ie,useValue:ln,multi:!0},{provide:bt,useValue:!0},{provide:ie,useClass:cn}];for(let e of r)t.push(...e.\u0275providers);return ge(t)}var Et=new w("");function Hn(){return dn(Mt.LegacyInterceptors,[{provide:Et,useFactory:en},{provide:Ie,useExisting:Et,multi:!0}])}var Se=class extends lt{supportsDOMEvents=!0},_e=class r extends Se{static makeCurrent(){ct(new r)}onAndCancel(t,e,n){return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=hn();return e==null?null:fn(e)}resetBaseElement(){W=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ee(document.cookie,t)}},W=null;function hn(){return W=W||document.querySelector("base"),W?W.getAttribute("href"):null}function fn(r){return new URL(r,document.baseURI).pathname}var ke=class{addToWindow(t){D.getAngularTestability=(n,s=!0)=>{let o=t.findTestabilityInTree(n,s);if(o==null)throw new b(5103,!1);return o},D.getAllAngularTestabilities=()=>t.getAllTestabilities(),D.getAllAngularRootElements=()=>t.getAllRootElements();let e=n=>{let s=D.getAllAngularTestabilities(),o=s.length,i=function(){o--,o==0&&n()};s.forEach(c=>{c.whenStable(i)})};D.frameworkStabilizers||(D.frameworkStabilizers=[]),D.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,n){if(e==null)return null;let s=t.getTestability(e);return s!=null?s:n?H().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},pn=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||r)};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),Le=new w(""),Nt=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(s=>{s.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,s){return this._findPluginFor(n).addEventListener(e,n,s)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new b(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||r)(d(Le),d(M))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),ae=class{_doc;constructor(t){this._doc=t}manager},Ce="ng-app-id";function At(r){for(let t of r)t.remove()}function Dt(r,t){let e=t.createElement("style");return e.textContent=r,e}function mn(r,t,e){var s;let n=(s=r.head)==null?void 0:s.querySelectorAll(`style[${Ce}="${t}"]`);if(n)for(let o of n)o.textContent&&(o.removeAttribute(Ce),e.set(o.textContent,{usage:0,elements:[o]}))}function xe(r,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var St=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,s,o={}){this.doc=e,this.appId=n,this.nonce=s,this.isServer=te(o),mn(e,n,this.inline),this.hosts.add(e.head)}addStyles(e,n){for(let s of e)this.addUsage(s,this.inline,Dt);n==null||n.forEach(s=>this.addUsage(s,this.external,xe))}removeStyles(e,n){for(let s of e)this.removeUsage(s,this.inline);n==null||n.forEach(s=>this.removeUsage(s,this.external))}addUsage(e,n,s){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,s(e,this.doc)))})}removeUsage(e,n){let s=n.get(e);s&&(s.usage--,s.usage<=0&&(At(s.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])At(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:s}]of this.inline)s.push(this.addElement(e,Dt(n,this.doc)));for(let[n,{elements:s}]of this.external)s.push(this.addElement(e,xe(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Ce,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||r)(d(R),d(Te),d(we,8),d(N))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),Ne={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ue=/%COMP%/g,_t="%COMP%",yn=`_nghost-${_t}`,gn=`_ngcontent-${_t}`,vn=!0,En=new w("",{providedIn:"root",factory:()=>vn});function Tn(r){return gn.replace(Ue,r)}function wn(r){return yn.replace(Ue,r)}function kt(r,t){return t.map(e=>e.replace(Ue,r))}var Ot=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,s,o,i,c,a,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=i,this.platformId=c,this.ngZone=a,this.nonce=l,this.platformIsServer=te(c),this.defaultRenderer=new Y(e,i,a,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===V.ShadowDom&&(n=ze(B({},n),{encapsulation:V.Emulated}));let s=this.getOrCreateRenderer(e,n);return s instanceof ce?s.applyToHost(e):s instanceof K&&s.applyStyles(),s}getOrCreateRenderer(e,n){let s=this.rendererByCompId,o=s.get(n.id);if(!o){let i=this.doc,c=this.ngZone,a=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(n.encapsulation){case V.Emulated:o=new ce(a,l,n,this.appId,p,i,c,m);break;case V.ShadowDom:return new je(a,l,e,n,i,c,this.nonce,m);default:o=new K(a,l,n,p,i,c,m);break}s.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(n){return new(n||r)(d(Nt),d(St),d(Te),d(En),d(R),d(N),d(M),d(we))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),Y=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,n,s){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=s}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(Ne[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Pt(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(Pt(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new b(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;let o=Ne[s];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let s=Ne[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&($.DashCase|$.Important)?t.style.setProperty(e,n,s&$.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&$.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n){if(typeof t=="string"&&(t=H().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(n))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function Pt(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var je=class extends Y{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,n,s,o,i,c,a){var m;super(t,o,i,a),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=kt(s.id,s.styles);for(let y of l){let g=document.createElement("style");c&&g.setAttribute("nonce",c),g.textContent=y,this.shadowRoot.appendChild(g)}let p=(m=s.getExternalStyles)==null?void 0:m.call(s);if(p)for(let y of p){let g=xe(y,o);c&&g.setAttribute("nonce",c),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},K=class extends Y{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,n,s,o,i,c,a){var l;super(t,o,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=s,this.styles=a?kt(a,n.styles):n.styles,this.styleUrls=(l=n.getExternalStyles)==null?void 0:l.call(n,a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ce=class extends K{contentAttr;hostAttr;constructor(t,e,n,s,o,i,c,a){let l=s+"-"+n.id;super(t,e,n,o,i,c,a,l),this.contentAttr=Tn(l),this.hostAttr=wn(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}},Rn=(()=>{class r extends ae{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s){return e.addEventListener(n,s,!1),()=>this.removeEventListener(e,n,s)}removeEventListener(e,n,s){return e.removeEventListener(n,s)}static \u0275fac=function(n){return new(n||r)(d(R))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})(),It=["alt","control","meta","shift"],bn={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Mn={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},An=(()=>{class r extends ae{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,n,s){let o=r.parseEventName(n),i=r.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>H().onAndCancel(e,o.domEventName,i))}static parseEventName(e){let n=e.toLowerCase().split("."),s=n.shift();if(n.length===0||!(s==="keydown"||s==="keyup"))return null;let o=r._normalizeKey(n.pop()),i="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),i="code."),It.forEach(l=>{let p=n.indexOf(l);p>-1&&(n.splice(p,1),i+=l+".")}),i+=o,n.length!=0||o.length===0)return null;let a={};return a.domEventName=s,a.fullKey=i,a}static matchEventFullKeyCode(e,n){let s=bn[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(s=e.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),It.forEach(i=>{if(i!==s){let c=Mn[i];c(e)&&(o+=i+".")}}),o+=s,o===n)}static eventCallback(e,n,s){return o=>{r.matchEventFullKeyCode(o,e)&&s.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||r)(d(R))};static \u0275prov=v({token:r,factory:r.\u0275fac})}return r})();function Tr(r,t){return at(B({rootComponent:r},Dn(t)))}function Dn(r){var t;return{appProviders:[...Lt,...(t=r==null?void 0:r.providers)!=null?t:[]],platformProviders:Nn}}function On(){_e.makeCurrent()}function Pn(){return new Ee}function In(){return Ye(document),document}var Nn=[{provide:N,useValue:ut},{provide:Ke,useValue:On,multi:!0},{provide:R,useFactory:In,deps:[]}];var Sn=new w(""),_n=[{provide:q,useClass:ke,deps:[]},{provide:ot,useClass:Q,deps:[M,be,q]},{provide:Q,useClass:Q,deps:[M,be,q]}],Lt=[{provide:Je,useValue:"root"},{provide:Ee,useFactory:Pn,deps:[]},{provide:Le,useClass:Rn,multi:!0,deps:[R,M,N]},{provide:Le,useClass:An,multi:!0,deps:[R]},Ot,St,Nt,{provide:st,useExisting:Ot},{provide:ne,useClass:pn,deps:[]},[]],wr=(()=>{class r{constructor(e){}static \u0275fac=function(n){return new(n||r)(d(Sn,12))};static \u0275mod=Re({type:r});static \u0275inj=ye({providers:[...Lt,..._n],imports:[dt,it]})}return r})();var Rr=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||r)(d(R))};static \u0275prov=v({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var kn=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=v({token:r,factory:function(n){let s=null;return n?s=new(n||r):s=d(Ln),s},providedIn:"root"})}return r})(),Ln=(()=>{class r extends kn{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case S.NONE:return n;case S.HTML:return C(n,"HTML")?L(n):rt(this._doc,String(n)).toString();case S.STYLE:return C(n,"Style")?L(n):n;case S.SCRIPT:if(C(n,"Script"))return L(n);throw new b(5200,!1);case S.URL:return C(n,"URL")?L(n):nt(String(n));case S.RESOURCE_URL:if(C(n,"ResourceURL"))return L(n);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(e){return qe(e)}bypassSecurityTrustStyle(e){return Qe(e)}bypassSecurityTrustScript(e){return He(e)}bypassSecurityTrustUrl(e){return et(e)}bypassSecurityTrustResourceUrl(e){return tt(e)}static \u0275fac=function(n){return new(n||r)(d(R))};static \u0275prov=v({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{se as a,P as b,I as c,Z as d,Gt as e,Qt as f,Qn as g,Hn as h,Ot as i,Tr as j,wr as k,Rr as l,kn as m};
|
package/public/chunk-UG6ZOHXY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-JW6PX64L.js";import"./chunk-PREJ7FYU.js";import"./chunk-QXT6R24L.js";import{g as n}from"./chunk-NZNNTHFQ.js";import"./chunk-4IKE4OKZ.js";import"./chunk-J34SI644.js";import"./chunk-3YHN3VHA.js";import"./chunk-UG5DK2RQ.js";import{c as m}from"./chunk-3IX3CLER.js";import{ia as t,md as i,sb as r}from"./chunk-TXOB7R5K.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-UEX6RTZJ.js").then(o=>o.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-UN5422JY.js").then(o=>o.ShutdownLinuxComponent)}],u=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n.forChild(d),n]})}return o})();var g=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i,m.forChild(),u]})}return o})();export{g as LinuxModule};
|
package/public/chunk-UN5422JY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-PREJ7FYU.js";import"./chunk-3YHN3VHA.js";import"./chunk-UG5DK2RQ.js";import"./chunk-3IX3CLER.js";import"./chunk-TXOB7R5K.js";export{a as ShutdownLinuxComponent};
|
package/public/chunk-VAJZ7KCO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as f}from"./chunk-E3OHYYGW.js";import{a as s}from"./chunk-T7MCUROV.js";import"./chunk-ZT23DWNL.js";import"./chunk-6TCHCTXZ.js";import"./chunk-LJHUPCL3.js";import"./chunk-EMKXES77.js";import"./chunk-7EUQWCP5.js";import"./chunk-WNWWUCCZ.js";import"./chunk-6SC3OCKT.js";import"./chunk-CCUID66K.js";import"./chunk-QE7DO6J3.js";import"./chunk-BKUGARB4.js";import"./chunk-BPMSJ2VF.js";import"./chunk-WHJOLAED.js";import"./chunk-JZZQRLNW.js";import"./chunk-KQJ7ONUG.js";import{q as p}from"./chunk-ORPWYWCL.js";import{y as u,z as l}from"./chunk-QHPDGSZ6.js";import"./chunk-QXT6R24L.js";import{g as e}from"./chunk-NZNNTHFQ.js";import"./chunk-4IKE4OKZ.js";import"./chunk-J34SI644.js";import"./chunk-3YHN3VHA.js";import"./chunk-UG5DK2RQ.js";import{c as m}from"./chunk-3IX3CLER.js";import{ia as t,md as n,sb as r}from"./chunk-TXOB7R5K.js";var g=[{path:"",loadComponent:()=>import("./chunk-KZLHFU5K.js").then(o=>o.PluginsComponent)}],d=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[e.forChild(g),e]})}return o})();var v=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,u,l,m.forChild(),p,f,d,s]})}return o})();export{v as PluginsModule};
|
package/public/chunk-VBCYNIMT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C,b as y,c as $,d as j}from"./chunk-D6EUS4KM.js";import"./chunk-QE7DO6J3.js";import{q as h}from"./chunk-ORPWYWCL.js";import{y as g,z as v}from"./chunk-QHPDGSZ6.js";import{d as U,g as n}from"./chunk-NZNNTHFQ.js";import"./chunk-4IKE4OKZ.js";import"./chunk-J34SI644.js";import{b as c,j as M}from"./chunk-3YHN3VHA.js";import"./chunk-UG5DK2RQ.js";import{a as u,c as d}from"./chunk-3IX3CLER.js";import{h as a,ha as f,ia as i,md as l,na as e,sb as s,w as p}from"./chunk-TXOB7R5K.js";var m=(()=>{class r{$api=e(c);$router=e(U);$toastr=e(M);$translate=e(u);resolve(){return a(this,null,function*(){try{return yield p(this.$api.get("/users"))}catch(o){console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();var F=[{path:"",loadComponent:()=>import("./chunk-DNZYDCPW.js").then(r=>r.UsersComponent),resolve:{homebridgeUsers:m}}],b=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({imports:[n.forChild(F),n]})}return r})();var Y=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=s({type:r});static \u0275inj=i({providers:[m],imports:[l,g,v,d.forChild(),h,b,$,j,y,C]})}return r})();export{Y as UsersModule};
|
package/public/chunk-WHJOLAED.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as h}from"./chunk-TXOB7R5K.js";var P=h((Zn,ue)=>{var rt="2.0.0",tt=Number.MAX_SAFE_INTEGER||9007199254740991,st=16,nt=250,it=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:st,MAX_SAFE_BUILD_LENGTH:nt,MAX_SAFE_INTEGER:tt,RELEASE_TYPES:it,SEMVER_SPEC_VERSION:rt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var v=h((Jn,Ee)=>{var ot=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ee.exports=ot});var w=h((T,fe)=>{var{MAX_SAFE_COMPONENT_LENGTH:Y,MAX_SAFE_BUILD_LENGTH:lt,MAX_LENGTH:at}=P(),ct=v();T=fe.exports={};var ut=T.re=[],Et=T.safeRe=[],l=T.src=[],a=T.t={},ft=0,B="[a-zA-Z0-9-]",ht=[["\\s",1],["\\d",at],[B,lt]],pt=t=>{for(let[e,r]of ht)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},p=(t,e,r)=>{let s=pt(e),n=ft++;ct(t,n,e),a[t]=n,l[n]=e,ut[n]=new RegExp(e,r?"g":void 0),Et[n]=new RegExp(s,r?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*");p("NUMERICIDENTIFIERLOOSE","\\d+");p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${B}*`);p("MAINVERSION",`(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})`);p("MAINVERSIONLOOSE",`(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})`);p("PRERELEASEIDENTIFIER",`(?:${l[a.NUMERICIDENTIFIER]}|${l[a.NONNUMERICIDENTIFIER]})`);p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[a.NUMERICIDENTIFIERLOOSE]}|${l[a.NONNUMERICIDENTIFIER]})`);p("PRERELEASE",`(?:-(${l[a.PRERELEASEIDENTIFIER]}(?:\\.${l[a.PRERELEASEIDENTIFIER]})*))`);p("PRERELEASELOOSE",`(?:-?(${l[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[a.PRERELEASEIDENTIFIERLOOSE]})*))`);p("BUILDIDENTIFIER",`${B}+`);p("BUILD",`(?:\\+(${l[a.BUILDIDENTIFIER]}(?:\\.${l[a.BUILDIDENTIFIER]})*))`);p("FULLPLAIN",`v?${l[a.MAINVERSION]}${l[a.PRERELEASE]}?${l[a.BUILD]}?`);p("FULL",`^${l[a.FULLPLAIN]}$`);p("LOOSEPLAIN",`[v=\\s]*${l[a.MAINVERSIONLOOSE]}${l[a.PRERELEASELOOSE]}?${l[a.BUILD]}?`);p("LOOSE",`^${l[a.LOOSEPLAIN]}$`);p("GTLT","((?:<|>)?=?)");p("XRANGEIDENTIFIERLOOSE",`${l[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);p("XRANGEIDENTIFIER",`${l[a.NUMERICIDENTIFIER]}|x|X|\\*`);p("XRANGEPLAIN",`[v=\\s]*(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:${l[a.PRERELEASE]})?${l[a.BUILD]}?)?)?`);p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:${l[a.PRERELEASELOOSE]})?${l[a.BUILD]}?)?)?`);p("XRANGE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAIN]}$`);p("XRANGELOOSE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAINLOOSE]}$`);p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Y}})(?:\\.(\\d{1,${Y}}))?(?:\\.(\\d{1,${Y}}))?`);p("COERCE",`${l[a.COERCEPLAIN]}(?:$|[^\\d])`);p("COERCEFULL",l[a.COERCEPLAIN]+`(?:${l[a.PRERELEASE]})?(?:${l[a.BUILD]})?(?:$|[^\\d])`);p("COERCERTL",l[a.COERCE],!0);p("COERCERTLFULL",l[a.COERCEFULL],!0);p("LONETILDE","(?:~>?)");p("TILDETRIM",`(\\s*)${l[a.LONETILDE]}\\s+`,!0);T.tildeTrimReplace="$1~";p("TILDE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAIN]}$`);p("TILDELOOSE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAINLOOSE]}$`);p("LONECARET","(?:\\^)");p("CARETTRIM",`(\\s*)${l[a.LONECARET]}\\s+`,!0);T.caretTrimReplace="$1^";p("CARET",`^${l[a.LONECARET]}${l[a.XRANGEPLAIN]}$`);p("CARETLOOSE",`^${l[a.LONECARET]}${l[a.XRANGEPLAINLOOSE]}$`);p("COMPARATORLOOSE",`^${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]})$|^$`);p("COMPARATOR",`^${l[a.GTLT]}\\s*(${l[a.FULLPLAIN]})$|^$`);p("COMPARATORTRIM",`(\\s*)${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]}|${l[a.XRANGEPLAIN]})`,!0);T.comparatorTrimReplace="$1$2$3";p("HYPHENRANGE",`^\\s*(${l[a.XRANGEPLAIN]})\\s+-\\s+(${l[a.XRANGEPLAIN]})\\s*$`);p("HYPHENRANGELOOSE",`^\\s*(${l[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[a.XRANGEPLAINLOOSE]})\\s*$`);p("STAR","(<|>)?=?\\s*\\*");p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var F=h((Qn,he)=>{var Rt=Object.freeze({loose:!0}),$t=Object.freeze({}),mt=t=>t?typeof t!="object"?Rt:t:$t;he.exports=mt});var W=h((ei,$e)=>{var pe=/^[0-9]+$/,Re=(t,e)=>{let r=pe.test(t),s=pe.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},It=(t,e)=>Re(e,t);$e.exports={compareIdentifiers:Re,rcompareIdentifiers:It}});var L=h((ri,Ne)=>{var j=v(),{MAX_LENGTH:me,MAX_SAFE_INTEGER:X}=P(),{safeRe:Ie,t:Le}=w(),Lt=F(),{compareIdentifiers:g}=W(),z=class t{constructor(e,r){if(r=Lt(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>me)throw new TypeError(`version is longer than ${me} characters`);j("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=e.trim().match(r.loose?Ie[Le.LOOSE]:Ie[Le.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>X||this.major<0)throw new TypeError("Invalid major version");if(this.minor>X||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>X||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&i<X)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(j("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),g(this.major,e.major)||g(this.minor,e.minor)||g(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let s=this.prerelease[r],n=e.prerelease[r];if(j("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return g(s,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let s=this.build[r],n=e.build[r];if(j("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return g(s,n)}while(++r)}inc(e,r,s){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];s===!1&&(i=[r]),g(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ne.exports=z});var q=h((ti,de)=>{var Oe=L(),Nt=(t,e,r=!1)=>{if(t instanceof Oe)return t;try{return new Oe(t,e)}catch(s){if(!r)return null;throw s}};de.exports=Nt});var Se=h((si,Ae)=>{var Ot=q(),dt=(t,e)=>{let r=Ot(t,e);return r?r.version:null};Ae.exports=dt});var qe=h((ni,Te)=>{var At=q(),St=(t,e)=>{let r=At(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Te.exports=St});var Pe=h((ii,ge)=>{var we=L(),Tt=(t,e,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new we(t instanceof we?t.version:t,r).inc(e,s,n).version}catch{return null}};ge.exports=Tt});var Ce=h((oi,xe)=>{var ve=q(),qt=(t,e)=>{let r=ve(t,null,!0),s=ve(e,null,!0),n=r.compare(s);if(n===0)return null;let i=n>0,o=i?r:s,c=i?s:r,u=!!o.prerelease.length;if(!!c.prerelease.length&&!u)return!c.patch&&!c.minor?"major":o.patch?"patch":o.minor?"minor":"major";let $=u?"pre":"";return r.major!==s.major?$+"major":r.minor!==s.minor?$+"minor":r.patch!==s.patch?$+"patch":"prerelease"};xe.exports=qt});var Ge=h((li,De)=>{var wt=L(),gt=(t,e)=>new wt(t,e).major;De.exports=gt});var Fe=h((ai,ye)=>{var Pt=L(),vt=(t,e)=>new Pt(t,e).minor;ye.exports=vt});var Xe=h((ci,je)=>{var xt=L(),Ct=(t,e)=>new xt(t,e).patch;je.exports=Ct});var Ve=h((ui,Ue)=>{var Dt=q(),Gt=(t,e)=>{let r=Dt(t,e);return r&&r.prerelease.length?r.prerelease:null};Ue.exports=Gt});var A=h((Ei,He)=>{var _e=L(),yt=(t,e,r)=>new _e(t,r).compare(new _e(e,r));He.exports=yt});var ke=h((fi,be)=>{var Ft=A(),jt=(t,e,r)=>Ft(e,t,r);be.exports=jt});var Ye=h((hi,Me)=>{var Xt=A(),Ut=(t,e)=>Xt(t,e,!0);Me.exports=Ut});var U=h((pi,We)=>{var Be=L(),Vt=(t,e,r)=>{let s=new Be(t,r),n=new Be(e,r);return s.compare(n)||s.compareBuild(n)};We.exports=Vt});var Ke=h((Ri,ze)=>{var _t=U(),Ht=(t,e)=>t.sort((r,s)=>_t(r,s,e));ze.exports=Ht});var Je=h(($i,Ze)=>{var bt=U(),kt=(t,e)=>t.sort((r,s)=>bt(s,r,e));Ze.exports=kt});var x=h((mi,Qe)=>{var Mt=A(),Yt=(t,e,r)=>Mt(t,e,r)>0;Qe.exports=Yt});var V=h((Ii,er)=>{var Bt=A(),Wt=(t,e,r)=>Bt(t,e,r)<0;er.exports=Wt});var K=h((Li,rr)=>{var zt=A(),Kt=(t,e,r)=>zt(t,e,r)===0;rr.exports=Kt});var Z=h((Ni,tr)=>{var Zt=A(),Jt=(t,e,r)=>Zt(t,e,r)!==0;tr.exports=Jt});var _=h((Oi,sr)=>{var Qt=A(),es=(t,e,r)=>Qt(t,e,r)>=0;sr.exports=es});var H=h((di,nr)=>{var rs=A(),ts=(t,e,r)=>rs(t,e,r)<=0;nr.exports=ts});var J=h((Ai,ir)=>{var ss=K(),ns=Z(),is=x(),os=_(),ls=V(),as=H(),cs=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return ss(t,r,s);case"!=":return ns(t,r,s);case">":return is(t,r,s);case">=":return os(t,r,s);case"<":return ls(t,r,s);case"<=":return as(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};ir.exports=cs});var lr=h((Si,or)=>{var us=L(),Es=q(),{safeRe:b,t:k}=w(),fs=(t,e)=>{if(t instanceof us)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?b[k.COERCEFULL]:b[k.COERCE]);else{let u=e.includePrerelease?b[k.COERCERTLFULL]:b[k.COERCERTL],R;for(;(R=u.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||R.index+R[0].length!==r.index+r[0].length)&&(r=R),u.lastIndex=R.index+R[1].length+R[2].length;u.lastIndex=-1}if(r===null)return null;let s=r[2],n=r[3]||"0",i=r[4]||"0",o=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return Es(`${s}.${n}.${i}${o}${c}`,e)};or.exports=fs});var cr=h((Ti,ar)=>{var Q=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,r)}return this}};ar.exports=Q});var S=h((qi,hr)=>{var hs=/\s+/g,ee=class t{constructor(e,r){if(r=Rs(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof re)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(hs," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(n=>!Er(n[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&ds(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let s=0;s<r.length;s++)s>0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let s=((this.options.includePrerelease&&Ns)|(this.options.loose&&Os))+":"+e,n=ur.get(s);if(n)return n;let i=this.options.loose,o=i?d[N.HYPHENRANGELOOSE]:d[N.HYPHENRANGE];e=e.replace(o,Cs(this.options.includePrerelease)),m("hyphen replace",e),e=e.replace(d[N.COMPARATORTRIM],ms),m("comparator trim",e),e=e.replace(d[N.TILDETRIM],Is),m("tilde trim",e),e=e.replace(d[N.CARETTRIM],Ls),m("caret trim",e);let c=e.split(" ").map(E=>As(E,this.options)).join(" ").split(/\s+/).map(E=>xs(E,this.options));i&&(c=c.filter(E=>(m("loose invalid filter",E,this.options),!!E.match(d[N.COMPARATORLOOSE])))),m("range list",c);let u=new Map,R=c.map(E=>new re(E,this.options));for(let E of R){if(Er(E))return[E];u.set(E.value,E)}u.size>1&&u.has("")&&u.delete("");let $=[...u.values()];return ur.set(s,$),$}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>fr(s,r)&&e.set.some(n=>fr(n,r)&&s.every(i=>n.every(o=>i.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new $s(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Ds(this.set[r],e,this.options))return!0;return!1}};hr.exports=ee;var ps=cr(),ur=new ps,Rs=F(),re=C(),m=v(),$s=L(),{safeRe:d,t:N,comparatorTrimReplace:ms,tildeTrimReplace:Is,caretTrimReplace:Ls}=w(),{FLAG_INCLUDE_PRERELEASE:Ns,FLAG_LOOSE:Os}=P(),Er=t=>t.value==="<0.0.0-0",ds=t=>t.value==="",fr=(t,e)=>{let r=!0,s=t.slice(),n=s.pop();for(;r&&s.length;)r=s.every(i=>n.intersects(i,e)),n=s.pop();return r},As=(t,e)=>(m("comp",t,e),t=qs(t,e),m("caret",t),t=Ss(t,e),m("tildes",t),t=gs(t,e),m("xrange",t),t=vs(t,e),m("stars",t),t),O=t=>!t||t.toLowerCase()==="x"||t==="*",Ss=(t,e)=>t.trim().split(/\s+/).map(r=>Ts(r,e)).join(" "),Ts=(t,e)=>{let r=e.loose?d[N.TILDELOOSE]:d[N.TILDE];return t.replace(r,(s,n,i,o,c)=>{m("tilde",t,s,n,i,o,c);let u;return O(n)?u="":O(i)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:O(o)?u=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:c?(m("replaceTilde pr",c),u=`>=${n}.${i}.${o}-${c} <${n}.${+i+1}.0-0`):u=`>=${n}.${i}.${o} <${n}.${+i+1}.0-0`,m("tilde return",u),u})},qs=(t,e)=>t.trim().split(/\s+/).map(r=>ws(r,e)).join(" "),ws=(t,e)=>{m("caret",t,e);let r=e.loose?d[N.CARETLOOSE]:d[N.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(n,i,o,c,u)=>{m("caret",t,n,i,o,c,u);let R;return O(i)?R="":O(o)?R=`>=${i}.0.0${s} <${+i+1}.0.0-0`:O(c)?i==="0"?R=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:R=`>=${i}.${o}.0${s} <${+i+1}.0.0-0`:u?(m("replaceCaret pr",u),i==="0"?o==="0"?R=`>=${i}.${o}.${c}-${u} <${i}.${o}.${+c+1}-0`:R=`>=${i}.${o}.${c}-${u} <${i}.${+o+1}.0-0`:R=`>=${i}.${o}.${c}-${u} <${+i+1}.0.0-0`):(m("no pr"),i==="0"?o==="0"?R=`>=${i}.${o}.${c}${s} <${i}.${o}.${+c+1}-0`:R=`>=${i}.${o}.${c}${s} <${i}.${+o+1}.0-0`:R=`>=${i}.${o}.${c} <${+i+1}.0.0-0`),m("caret return",R),R})},gs=(t,e)=>(m("replaceXRanges",t,e),t.split(/\s+/).map(r=>Ps(r,e)).join(" ")),Ps=(t,e)=>{t=t.trim();let r=e.loose?d[N.XRANGELOOSE]:d[N.XRANGE];return t.replace(r,(s,n,i,o,c,u)=>{m("xRange",t,s,n,i,o,c,u);let R=O(i),$=R||O(o),E=$||O(c),I=E;return n==="="&&I&&(n=""),u=e.includePrerelease?"-0":"",R?n===">"||n==="<"?s="<0.0.0-0":s="*":n&&I?($&&(o=0),c=0,n===">"?(n=">=",$?(i=+i+1,o=0,c=0):(o=+o+1,c=0)):n==="<="&&(n="<",$?i=+i+1:o=+o+1),n==="<"&&(u="-0"),s=`${n+i}.${o}.${c}${u}`):$?s=`>=${i}.0.0${u} <${+i+1}.0.0-0`:E&&(s=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),m("xRange return",s),s})},vs=(t,e)=>(m("replaceStars",t,e),t.trim().replace(d[N.STAR],"")),xs=(t,e)=>(m("replaceGTE0",t,e),t.trim().replace(d[e.includePrerelease?N.GTE0PRE:N.GTE0],"")),Cs=t=>(e,r,s,n,i,o,c,u,R,$,E,I)=>(O(s)?r="":O(n)?r=`>=${s}.0.0${t?"-0":""}`:O(i)?r=`>=${s}.${n}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,O(R)?u="":O($)?u=`<${+R+1}.0.0-0`:O(E)?u=`<${R}.${+$+1}.0-0`:I?u=`<=${R}.${$}.${E}-${I}`:t?u=`<${R}.${$}.${+E+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),Ds=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(m(t[s].semver),t[s].semver!==re.ANY&&t[s].semver.prerelease.length>0){let n=t[s].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var C=h((wi,Lr)=>{var D=Symbol("SemVer ANY"),ne=class t{static get ANY(){return D}constructor(e,r){if(r=pr(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),se("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,se("comp",this)}parse(e){let r=this.options.loose?Rr[$r.COMPARATORLOOSE]:Rr[$r.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new mr(s[2],this.options.loose):this.semver=D}toString(){return this.value}test(e){if(se("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if(typeof e=="string")try{e=new mr(e,this.options)}catch{return!1}return te(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Ir(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Ir(this.value,r).test(e.semver):(r=pr(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||te(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||te(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Lr.exports=ne;var pr=F(),{safeRe:Rr,t:$r}=w(),te=J(),se=v(),mr=L(),Ir=S()});var G=h((gi,Nr)=>{var Gs=S(),ys=(t,e,r)=>{try{e=new Gs(e,r)}catch{return!1}return e.test(t)};Nr.exports=ys});var dr=h((Pi,Or)=>{var Fs=S(),js=(t,e)=>new Fs(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));Or.exports=js});var Sr=h((vi,Ar)=>{var Xs=L(),Us=S(),Vs=(t,e,r)=>{let s=null,n=null,i=null;try{i=new Us(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!s||n.compare(o)===-1)&&(s=o,n=new Xs(s,r))}),s};Ar.exports=Vs});var qr=h((xi,Tr)=>{var _s=L(),Hs=S(),bs=(t,e,r)=>{let s=null,n=null,i=null;try{i=new Hs(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!s||n.compare(o)===1)&&(s=o,n=new _s(s,r))}),s};Tr.exports=bs});var Pr=h((Ci,gr)=>{var ie=L(),ks=S(),wr=x(),Ms=(t,e)=>{t=new ks(t,e);let r=new ie("0.0.0");if(t.test(r)||(r=new ie("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){let n=t.set[s],i=null;n.forEach(o=>{let c=new ie(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!i||wr(c,i))&&(i=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||wr(r,i))&&(r=i)}return r&&t.test(r)?r:null};gr.exports=Ms});var xr=h((Di,vr)=>{var Ys=S(),Bs=(t,e)=>{try{return new Ys(t,e).range||"*"}catch{return null}};vr.exports=Bs});var M=h((Gi,yr)=>{var Ws=L(),Gr=C(),{ANY:zs}=Gr,Ks=S(),Zs=G(),Cr=x(),Dr=V(),Js=H(),Qs=_(),en=(t,e,r,s)=>{t=new Ws(t,s),e=new Ks(e,s);let n,i,o,c,u;switch(r){case">":n=Cr,i=Js,o=Dr,c=">",u=">=";break;case"<":n=Dr,i=Qs,o=Cr,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Zs(t,e,s))return!1;for(let R=0;R<e.set.length;++R){let $=e.set[R],E=null,I=null;if($.forEach(f=>{f.semver===zs&&(f=new Gr(">=0.0.0")),E=E||f,I=I||f,n(f.semver,E.semver,s)?E=f:o(f.semver,I.semver,s)&&(I=f)}),E.operator===c||E.operator===u||(!I.operator||I.operator===c)&&i(t,I.semver))return!1;if(I.operator===u&&o(t,I.semver))return!1}return!0};yr.exports=en});var jr=h((yi,Fr)=>{var rn=M(),tn=(t,e,r)=>rn(t,e,">",r);Fr.exports=tn});var Ur=h((Fi,Xr)=>{var sn=M(),nn=(t,e,r)=>sn(t,e,"<",r);Xr.exports=nn});var Hr=h((ji,_r)=>{var Vr=S(),on=(t,e,r)=>(t=new Vr(t,r),e=new Vr(e,r),t.intersects(e,r));_r.exports=on});var kr=h((Xi,br)=>{var ln=G(),an=A();br.exports=(t,e,r)=>{let s=[],n=null,i=null,o=t.sort(($,E)=>an($,E,r));for(let $ of o)ln($,e,r)?(i=$,n||(n=$)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);let c=[];for(let[$,E]of s)$===E?c.push($):!E&&$===o[0]?c.push("*"):E?$===o[0]?c.push(`<=${E}`):c.push(`${$} - ${E}`):c.push(`>=${$}`);let u=c.join(" || "),R=typeof e.raw=="string"?e.raw:String(e);return u.length<R.length?u:e}});var Kr=h((Ui,zr)=>{var Mr=S(),le=C(),{ANY:oe}=le,y=G(),ae=A(),cn=(t,e,r={})=>{if(t===e)return!0;t=new Mr(t,r),e=new Mr(e,r);let s=!1;e:for(let n of t.set){for(let i of e.set){let o=En(n,i,r);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},un=[new le(">=0.0.0-0")],Yr=[new le(">=0.0.0")],En=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===oe){if(e.length===1&&e[0].semver===oe)return!0;r.includePrerelease?t=un:t=Yr}if(e.length===1&&e[0].semver===oe){if(r.includePrerelease)return!0;e=Yr}let s=new Set,n,i;for(let f of t)f.operator===">"||f.operator===">="?n=Br(n,f,r):f.operator==="<"||f.operator==="<="?i=Wr(i,f,r):s.add(f.semver);if(s.size>1)return null;let o;if(n&&i){if(o=ae(n.semver,i.semver,r),o>0)return null;if(o===0&&(n.operator!==">="||i.operator!=="<="))return null}for(let f of s){if(n&&!y(f,String(n),r)||i&&!y(f,String(i),r))return null;for(let et of e)if(!y(f,String(et),r))return!1;return!0}let c,u,R,$,E=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,I=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;E&&E.prerelease.length===1&&i.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let f of e){if($=$||f.operator===">"||f.operator===">=",R=R||f.operator==="<"||f.operator==="<=",n){if(I&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===I.major&&f.semver.minor===I.minor&&f.semver.patch===I.patch&&(I=!1),f.operator===">"||f.operator===">="){if(c=Br(n,f,r),c===f&&c!==n)return!1}else if(n.operator===">="&&!y(n.semver,String(f),r))return!1}if(i){if(E&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===E.major&&f.semver.minor===E.minor&&f.semver.patch===E.patch&&(E=!1),f.operator==="<"||f.operator==="<="){if(u=Wr(i,f,r),u===f&&u!==i)return!1}else if(i.operator==="<="&&!y(i.semver,String(f),r))return!1}if(!f.operator&&(i||n)&&o!==0)return!1}return!(n&&R&&!i&&o!==0||i&&$&&!n&&o!==0||I||E)},Br=(t,e,r)=>{if(!t)return e;let s=ae(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},Wr=(t,e,r)=>{if(!t)return e;let s=ae(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};zr.exports=cn});var Kn=h((Vi,Qr)=>{var ce=w(),Zr=P(),fn=L(),Jr=W(),hn=q(),pn=Se(),Rn=qe(),$n=Pe(),mn=Ce(),In=Ge(),Ln=Fe(),Nn=Xe(),On=Ve(),dn=A(),An=ke(),Sn=Ye(),Tn=U(),qn=Ke(),wn=Je(),gn=x(),Pn=V(),vn=K(),xn=Z(),Cn=_(),Dn=H(),Gn=J(),yn=lr(),Fn=C(),jn=S(),Xn=G(),Un=dr(),Vn=Sr(),_n=qr(),Hn=Pr(),bn=xr(),kn=M(),Mn=jr(),Yn=Ur(),Bn=Hr(),Wn=kr(),zn=Kr();Qr.exports={parse:hn,valid:pn,clean:Rn,inc:$n,diff:mn,major:In,minor:Ln,patch:Nn,prerelease:On,compare:dn,rcompare:An,compareLoose:Sn,compareBuild:Tn,sort:qn,rsort:wn,gt:gn,lt:Pn,eq:vn,neq:xn,gte:Cn,lte:Dn,cmp:Gn,coerce:yn,Comparator:Fn,Range:jn,satisfies:Xn,toComparators:Un,maxSatisfying:Vn,minSatisfying:_n,minVersion:Hn,validRange:bn,outside:kn,gtr:Mn,ltr:Yn,intersects:Bn,simplifyRange:Wn,subset:zn,SemVer:fn,re:ce.re,src:ce.src,tokens:ce.t,SEMVER_SPEC_VERSION:Zr.SEMVER_SPEC_VERSION,RELEASE_TYPES:Zr.RELEASE_TYPES,compareIdentifiers:Jr.compareIdentifiers,rcompareIdentifiers:Jr.rcompareIdentifiers}});export{Kn as a};
|
package/public/chunk-WJFAG3CM.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{a as ee}from"./chunk-EA5J2VEJ.js";import{a as Q,b as ne}from"./chunk-EMKXES77.js";import{a as X,b as Z}from"./chunk-7EUQWCP5.js";import{a as G}from"./chunk-JZZQRLNW.js";import{m as U,n as W,o as Y}from"./chunk-ORPWYWCL.js";import{c as q,e as z,l as J,y as K}from"./chunk-QHPDGSZ6.js";import{b as F}from"./chunk-NZNNTHFQ.js";import{b as N}from"./chunk-J34SI644.js";import{b as k,j as V}from"./chunk-3YHN3VHA.js";import{a as T,b as M}from"./chunk-3IX3CLER.js";import{$b as C,Bc as l,Cc as c,Dc as O,Kb as w,Lb as y,Mb as v,Rb as g,Tb as I,Ub as H,Vb as j,Wb as r,Xb as a,Yb as _,cc as h,dc as d,g as oe,h as S,ib as n,kd as L,na as m,nc as b,oc as x,pb as D,pc as $,rb as E,sc as P,tc as R,uc as B,w as A,xa as p,ya as f}from"./chunk-TXOB7R5K.js";function ae(o,u){o&1&&(r(0,"div",6),_(1,"i",14),a())}function se(o,u){if(o&1){let e=C();r(0,"tr")(1,"td",15),b(2),l(3,"date"),a(),r(4,"td",16)(5,"a",17),h("click",function(){let t=p(e).$implicit,s=d(2);return f(s.restore(t.id))}),b(6),l(7,"translate"),_(8,"i",18),a()()()}if(o&2){let e=u.$implicit;n(2),x(O(3,2,e.timestamp,"medium")),n(4),$(" ",c(7,5,"config.restore.copy_to_editor")," ")}}function le(o,u){if(o&1&&(r(0,"table",7)(1,"tbody"),H(2,se,9,7,"tr",null,I),a()()),o&2){let e=d();n(2),j(e.backupList)}}function de(o,u){o&1&&(r(0,"div")(1,"h3",11),b(2),l(3,"translate"),a()()),o&2&&(n(2),x(c(3,1,"config.restore.no_backups")))}function ce(o,u){if(o&1){let e=C();r(0,"button",19),l(1,"translate"),h("click",function(){p(e);let t=d();return f(t.deleteAllBackups())}),b(2),l(3,"translate"),a()}o&2&&(y("aria-label",c(1,2,"form.button_remove")),n(2),$(" ",c(3,4,"form.button_remove")," "))}var te=(()=>{class o{$activeModal=m(U);$api=m(k);$toastr=m(V);$translate=m(T);loading=!0;backupList=[];ngOnInit(){this.$api.get("/config-editor/backups").subscribe({next:e=>{this.loading=!1,this.backupList=e},error:e=>{this.loading=!1,console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error"))}})}restore(e){return this.$activeModal.close(e)}deleteAllBackups(){return this.$api.delete("/config-editor/backups").subscribe({next:()=>{this.$activeModal.dismiss(),this.$toastr.success(this.$translate.instant("config.restore.toast_backups_deleted"),this.$translate.instant("toast.title_success"))},error:e=>{console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],decls:22,vars:16,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"text-center","primary-text"],[1,"table","table-borderless","table-hover","table-sm"],[1,"modal-footer","justify-content-between"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-right"],["type","button",1,"btn","btn-danger","mr-auto"],[1,"fa","fa-fw","fa-cog","fa-spin",2,"font-size","75px"],[1,"w-100"],["nowrap",""],[1,"card-link",3,"click"],[1,"fas","fa-fw","fa-arrow-right"],["type","button",1,"btn","btn-danger","mr-auto",3,"click"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"div",1)(2,"h5",2),b(3),l(4,"translate"),a(),r(5,"button",3),l(6,"translate"),h("click",function(){return t.$activeModal.dismiss("Dismiss")}),r(7,"span",4),b(8,"\xD7"),a()()(),r(9,"div",5),w(10,ae,2,0,"div",6)(11,le,4,0,"table",7)(12,de,4,3,"div"),a(),r(13,"div",8)(14,"div",9)(15,"button",10),l(16,"translate"),h("click",function(){return t.$activeModal.dismiss("Dismiss")}),b(17),l(18,"translate"),a()(),_(19,"div",11),r(20,"div",12),w(21,ce,4,6,"button",13),a()()()),i&2&&(n(3),x(c(4,8,"config.restore.title_restore_homebridge_backup")),n(2),y("aria-label",c(6,10,"form.button_close")),n(5),g(t.loading?10:-1),n(),g(!t.loading&&t.backupList&&t.backupList.length?11:-1),n(),g(!t.loading&&(!t.backupList||!t.backupList.length)?12:-1),n(3),y("aria-label",c(16,12,"form.button_close")),n(2),$(" ",c(18,14,"form.button_close")," "),n(4),g(!t.loading&&t.backupList.length?21:-1))},dependencies:[L,M],encapsulation:2})}return o})();var ie=oe(ne(),1);function me(o,u){if(o&1){let e=C();r(0,"button",13),l(1,"translate"),l(2,"translate"),h("click",function(){p(e);let t=d();return f(t.onExportConfig())}),_(3,"i",14),a()}o&2&&(v("ngbTooltip",c(1,2,"form.button_download")),y("aria-label",c(2,4,"form.button_download")))}function pe(o,u){if(o&1){let e=C();r(0,"button",15),l(1,"translate"),l(2,"translate"),h("click",function(){p(e);let t=d();return f(t.onCancelRestore())}),_(3,"i",16),a()}if(o&2){let e=d();v("disabled",e.saveInProgress)("ngbTooltip",c(1,3,"form.button_cancel")),y("aria-label",c(2,5,"form.button_cancel"))}}function fe(o,u){if(o&1){let e=C();r(0,"button",13),l(1,"translate"),l(2,"translate"),h("click",function(){p(e);let t=d();return f(t.onRestore())}),_(3,"i",17),a()}o&2&&(v("ngbTooltip",c(1,2,"form.button_restore")),y("aria-label",c(2,4,"form.button_restore")))}function ge(o,u){o&1&&_(0,"i",8)}function ue(o,u){o&1&&_(0,"i",9)}function he(o,u){if(o&1){let e=C();r(0,"ngx-monaco-editor",18),h("onInit",function(t){p(e);let s=d();return f(s.onEditorInit(t))})("keydown.control.s",function(t){p(e);let s=d();return t.preventDefault(),f(s.onSave())})("keydown.meta.s",function(t){p(e);let s=d();return t.preventDefault(),f(s.onSave())}),a()}if(o&2){let e=d();v("options",e.editorOptions)("model",e.monacoEditorModel)}}function be(o,u){if(o&1){let e=C();r(0,"ngx-monaco-diff-editor",19),h("onInit",function(t){p(e);let s=d();return f(s.onInitDiffEditor(t))})("keydown.control.s",function(t){p(e);let s=d();return t.preventDefault(),f(s.onSave())})("keydown.meta.s",function(t){p(e);let s=d();return t.preventDefault(),f(s.onSave())}),a()}if(o&2){let e=d();v("options",e.editorOptions)("originalModel",e.monacoEditorModel)("modifiedModel",e.monacoEditorModel)}}function _e(o,u){if(o&1){let e=C();r(0,"textarea",20),B("ngModelChange",function(t){p(e);let s=d();return R(s.homebridgeConfig,t)||(s.homebridgeConfig=t),f(t)}),b(1," "),a()}if(o&2){let e=d();P("ngModel",e.homebridgeConfig)}}var qe=(()=>{class o{$api=m(k);$md=m(G);$modal=m(W);$monacoEditor=m(ee);$route=m(F);$renderer=m(D);$settings=m(N);$toastr=m(V);$translate=m(T);homebridgeConfig;originalConfig;saveInProgress;isMobile=!1;monacoEditor;editorOptions;monacoEditorModel;editorDecorations=[];lastHeight;visualViewPortEventCallback;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"json",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0};let e=document.querySelector(".content");this.$renderer.setStyle(e,"height","100%"),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),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(i=>{this.homebridgeConfig=i.config}),this.monacoEditorModel={value:"{}",language:"json",uri:window.monaco?window.monaco.Uri.parse("a://homebridge/config.json"):void 0},window.monaco?this.setMonacoEditorModel():this.$monacoEditor.readyEvent.subscribe({next:()=>{this.setMonacoEditorModel()}})}onEditorInit(e){window.editor=e,this.monacoEditor=e,this.monacoEditor.getModel().setValue(this.homebridgeConfig)}onInitDiffEditor(e){this.monacoEditor=e.modifiedEditor,e.getModel().original.setValue(this.originalConfig),e.getModel().modified.setValue(this.homebridgeConfig),window.editor=e}onSave(){return S(this,null,function*(){if(!this.saveInProgress){this.monacoEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[])),this.saveInProgress=!0;try{if(!this.isMobile){yield this.monacoEditor.getAction("editor.action.formatDocument").run();let i=window.monaco.editor.getModelMarkers({owner:"json"});for(let t of i)if(t.message==="Duplicate object key"){this.saveInProgress=!1,this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"));return}this.homebridgeConfig=this.monacoEditor.getModel().getValue()}let e=this.parseConfigFromEditor();this.homebridgeConfig=JSON.stringify(e,null,4),typeof e.bridge!="object"?this.$toastr.error(this.$translate.instant("config.config_bridge_missing"),this.$translate.instant("toast.title_error")):/^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/i.test(e.bridge.username)?e.accessories&&!Array.isArray(e.accessories)?this.$toastr.error(this.$translate.instant("config.config_accessory_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&!Array.isArray(e.platforms)?this.$toastr.error(this.$translate.instant("config.config_platform_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&Array.isArray(e.platforms)&&!this.validateSection(e.platforms,"platform")||e.accessories&&Array.isArray(e.accessories)&&!this.validateSection(e.accessories,"accessory")||e.plugins&&Array.isArray(e.plugins)&&!this.validatePlugins(e.plugins,"plugins")||e.disabledPlugins&&Array.isArray(e.disabledPlugins)&&!this.validatePlugins(e.disabledPlugins,"disabledPlugins")||(yield this.saveConfig(e),this.originalConfig=""):this.$toastr.error(this.$translate.instant("config.config_username_error"),this.$translate.instant("toast.title_error"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}parseConfigFromEditor(){try{return JSON.parse(this.homebridgeConfig)}catch{let i=ie.default.parse(this.homebridgeConfig);return this.homebridgeConfig=JSON.stringify(i,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig),i}}saveConfig(e){return S(this,null,function*(){try{let i=yield A(this.$api.post("/config-editor",e));this.homebridgeConfig=JSON.stringify(i,null,4),this.$modal.open(Q,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("config.failed_to_save_config"),this.$translate.instant("toast.title_error"))}})}onRestore(){this.$modal.open(te,{size:"lg",backdrop:"static"}).result.then(e=>{this.originalConfig||(this.originalConfig=this.homebridgeConfig),this.$api.get(`/config-editor/backups/${e}`).subscribe({next:i=>{this.$toastr.info(this.$translate.instant("config.restore.confirm"),this.$translate.instant("config.title_backup_loaded")),this.homebridgeConfig=JSON.stringify(i,null,4),this.monacoEditor&&window.editor.modifiedEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[]),this.monacoEditor.executeEdits("beautifier",[{identifier:"delete",range:new monaco.Range(1,1,this.monacoEditor.getModel().getLineCount()+10,1),text:"",forceMoveMarkers:!0}]),this.monacoEditor.executeEdits("beautifier",[{identifier:"insert",range:new monaco.Range(1,1,1,1),text:this.homebridgeConfig,forceMoveMarkers:!0}]))},error:i=>{console.error(i),this.$toastr.error(i.error.message||this.$translate.instant("backup.load_error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}onExportConfig(){let e=`data:text/json;charset=utf-8,${encodeURIComponent(this.homebridgeConfig)}`,i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("download","config.json"),document.body.appendChild(i),i.click(),i.remove()}onCancelRestore(){this.homebridgeConfig=this.originalConfig,this.originalConfig=""}validateSection(e,i){for(let t of e){if(typeof t!="object"||Array.isArray(t))return this.$toastr.error(this.$translate.instant("config.error_blocks_objects",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1;if(!t[i])return this.$toastr.error(this.$translate.instant("config.error_blocks_type",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1;if(typeof t[i]!="string")return this.$toastr.error(this.$translate.instant("config.error_string_type",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1}return!0}validatePlugins(e,i){for(let t of e)if(typeof t!="string")return this.$toastr.error(this.$translate.instant("config.error_string_array",{key:i}),this.$translate.instant("toast.title_error")),!1;return!0}highlightOffendingArrayItem(e){this.monacoEditor&&(e=JSON.stringify(e,null,4).split(`
|
|
2
|
-
`).map(i=>` ${i}`).join(`
|
|
3
|
-
`),setTimeout(()=>{let i=this.monacoEditor.getModel().findMatches(e);if(i.length){let t=i[0].range,s=new monaco.Range(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn);this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[{range:s,options:{isWholeLine:!0,linesDecorationsClassName:"hb-monaco-editor-line-error"}}])}},200))}setMonacoEditorModel(){if(window.monaco.languages.json.jsonDefaults.diagnosticsOptions.schemas.some(i=>i.uri==="http://homebridge/config.json"))return;let e=monaco.Uri.parse("a://homebridge/config.json");window.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!1,validate:!0,schemas:[{uri:"http://homebridge/config.json",fileMatch:[e.toString()],schema:{type:"object",required:["bridge"],properties:{bridge:{type:"object",required:["name","username","port","pin"],properties:{name:{type:"string",description:`The Homebridge instance name.
|
|
4
|
-
This should be unique if you are running multiple instances of Homebridge.`,default:"Homebridge"},username:{type:"string",description:`Homebridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
|
|
5
|
-
You should change this pin if you need to re-pair your instance with HomeKit.
|
|
6
|
-
Example: 0E:89:49:64:91:86`,default:"0E:89:49:64:91:86",pattern:"^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"},port:{type:"number",description:`The port Homebridge listens on.
|
|
7
|
-
If running more than one instance of Homebridge on the same server make sure each instance is given a unique port.`,default:51173,minimum:1025,maximum:65534},pin:{type:"string",description:`The Homebridge instance pin.
|
|
8
|
-
This is used when pairing Homebridge to HomeKit.
|
|
9
|
-
Example: 630-27-655`,default:"630-27-655",pattern:"^([0-9]{3}-[0-9]{2}-[0-9]{3})$"},manufacturer:{type:"string",description:"The bridge manufacturer to be displayed in HomeKit"},firmwareRevision:{type:"string",description:"The bridge firmware version to be displayed in HomeKit"},model:{type:"string",description:"The bridge model to be displayed in HomeKit"},bind:{description:`A string or an array of strings with the name(s) of the network interface(s) Homebridge should bind to.
|
|
10
|
-
|
|
11
|
-
Requires Homebridge v1.3 or later.`,type:["string","array"],items:{type:"string",description:"Network Interface name that Homebridge should bind to."}}},default:{name:"Homebridge",username:"0E:89:49:64:91:86",port:51173,pin:"6302-7655"}},mdns:{type:"object",properties:{interface:{type:"string",description:`The interface or IP address of the interface you want Homebridge to listen on. This is useful if your server has multiple interfaces.
|
|
12
|
-
|
|
13
|
-
Depreciated as of Homebridge v1.3.0 - use bridge.bind instead.`},legacyAdvertiser:{type:"boolean",description:"Set to `false` to use the new mdns library, ciao."}},default:{legacyAdvertiser:!1}},plugins:{type:"array",description:"An array of plugins that should be selectively enabled. Remove this array to enable all plugins.",items:{type:"string",description:`The full plugin npm package name.
|
|
14
|
-
Example: homebridge-dummy`},default:["homebridge-config-ui-x"]},disabledPlugins:{type:"array",description:`An array of plugins that should be disabled.
|
|
15
|
-
|
|
16
|
-
Requires Homebridge v1.3 or later.`,items:{type:"string",description:`The full plugin npm package name.
|
|
17
|
-
Example: homebridge-dummy`},default:[]},ports:{type:"object",description:"The range of ports that should be used for certain accessories like cameras and TVs",required:["start","end"],properties:{start:{type:"number",default:52100,minimum:1025,maximum:65534},end:{type:"number",default:52150,minimum:1025,maximum:65534}},default:{start:52100,end:52150}},platforms:{type:"array",description:`Any plugin that exposes a platform should have it's config entered in this array.
|
|
18
|
-
Separate each plugin config block using a comma.`,items:{type:"object",required:["platform"],anyOf:[{type:"object",required:["platform"],properties:{platform:{type:"string",description:"This is used by Homebridge to identify which plugin this platform belongs to.",not:{enum:["config"]}},name:{type:"string",description:"The name of the platform."}}},{type:"object",properties:{platform:{type:"string",description:`Homebridge UI platform name must be set to "config".
|
|
19
|
-
Do Not Change!`,oneOf:[{enum:"config"}]},name:{type:"string",description:"The name used in the Homebridge log."}}}]}},accessories:{type:"array",description:`Any plugin that exposes an accessory should have it's config entered in this array.
|
|
20
|
-
Separate each plugin config block using a comma.`,items:{type:"object",required:["accessory","name"],properties:{accessory:{type:"string",description:"This is used by Homebridge to identify which plugin this accessory belongs to."},name:{type:"string",description:"The name of the accessory."}}}}}}}]}),this.monacoEditorModel.uri=monaco.Uri.parse("a://homebridge/config.json")}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)}ngOnDestroy(){let e=document.querySelector(".content");this.$renderer.removeStyle(e,"height"),window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],decls:18,vars:18,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-right"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0",3,"ngbTooltip"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-danger","waves-effect","my-0",3,"disabled","ngbTooltip"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","mr-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModel"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0",3,"click","ngbTooltip"],[1,"fas","fa-fw","fa-download"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-danger","waves-effect","my-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-times"],[1,"fas","fa-fw","fa-history"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModelChange","ngModel"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),b(4),l(5,"translate"),a()(),r(6,"div",4),w(7,me,4,6,"button",5)(8,pe,4,7,"button",6)(9,fe,4,6,"button",5),r(10,"button",7),l(11,"translate"),l(12,"translate"),h("click",function(){return t.onSave()}),w(13,ge,1,0,"i",8)(14,ue,1,0,"i",9),a()()(),w(15,he,1,2,"ngx-monaco-editor",10)(16,be,1,3,"ngx-monaco-diff-editor",11)(17,_e,2,1,"textarea",12),a()),i&2&&(n(4),x(c(5,12,"menu.config_json_editor")),n(3),g(t.originalConfig?-1:7),n(),g(t.originalConfig?8:-1),n(),g(t.originalConfig?-1:9),n(),v("disabled",t.saveInProgress)("ngbTooltip",c(11,14,"form.button_save")),y("aria-label",c(12,16,"form.button_save")),n(3),g(t.saveInProgress?-1:13),n(),g(t.saveInProgress?14:-1),n(),g(!t.isMobile&&!t.originalConfig?15:-1),n(),g(!t.isMobile&&t.originalConfig?16:-1),n(),g(t.isMobile?17:-1))},dependencies:[Y,X,Z,K,q,z,J,M],encapsulation:2})}return o})();export{qe as a};
|
package/public/chunk-YN5SJ37A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as N,b as U}from"./chunk-BKUGARB4.js";import{m as H}from"./chunk-ORPWYWCL.js";import{a as D}from"./chunk-QXT6R24L.js";import{d as V}from"./chunk-NZNNTHFQ.js";import{b as E,j as z}from"./chunk-3YHN3VHA.js";import{c as I,d as w}from"./chunk-UG5DK2RQ.js";import{a as P,b as A}from"./chunk-3IX3CLER.js";import{$b as R,Bc as l,Cc as d,Dc as F,Kb as f,Lb as S,Mb as b,Rb as c,Wb as a,Xb as o,Yb as u,cc as x,dc as p,g as $,h as k,ib as i,na as _,nc as s,oc as h,pc as v,rb as y,xa as C,xc as B,ya as g}from"./chunk-TXOB7R5K.js";var M=$(N(),1),W=$(U(),1);var j=t=>({maxBackupSizeText:t});function q(t,m){if(t&1&&(a(0,"div"),u(1,"input",11),o()),t&2){let e=p(2);i(),b("value",e.selectedBackup.fileName)}}function O(t,m){if(t&1){let e=R();a(0,"div",10)(1,"input",12),x("change",function(n){C(e);let T=p(2);return g(T.handleRestoreFileInput(n.target.files))}),o(),a(2,"label",13),s(3),l(4,"translate"),o()()}if(t&2){let e=p(2);i(3),v(" ",d(4,1,(e.selectedFile==null?null:e.selectedFile.name)||"backup.label_choose_backup_file_to_restore")," ")}}function G(t,m){if(t&1&&(a(0,"div",5)(1,"div",8),u(2,"i",9),o(),a(3,"p"),s(4),l(5,"translate"),o(),a(6,"ul")(7,"li"),s(8),l(9,"translate"),o(),a(10,"li"),s(11),l(12,"translate"),o(),a(13,"li"),s(14),l(15,"translate"),o()(),f(16,q,2,1,"div")(17,O,5,3,"div",10),o()),t&2){let e=p();i(4),h(d(5,6,"backup.restore_help_one")),i(4),h(d(9,8,"backup.restore_help_two")),i(3),h(F(12,10,"backup.restore_max_size",B(15,j,e.maxFileSizeText))),i(3),h(d(15,13,"backup.restore_warning")),i(2),c(e.selectedBackup?16:-1),i(),c(e.selectedBackup?-1:17)}}function J(t,m){t&1&&u(0,"i",19)}function K(t,m){if(t&1&&(a(0,"span"),s(1),o()),t&2){let e=p(3);i(),v("",e.uploadPercent,"% - ")}}function L(t,m){t&1&&(a(0,"span"),s(1," Extracting Archive"),o())}function Q(t,m){t&1&&(a(0,"span"),s(1),l(2,"translate"),o()),t&2&&(i(),v(" ",d(2,1,"backup.label_uploading"),""))}function X(t,m){if(t&1&&(a(0,"span"),f(1,J,1,0,"i",19)(2,K,2,1,"span")(3,L,2,0,"span")(4,Q,3,3,"span"),o()),t&2){let e=p(2);i(),c(!e.uploadPercent||e.uploadPercent===100?1:-1),i(),c(e.uploadPercent&&e.uploadPercent!==100?2:-1),i(),c(e.uploadPercent===100?3:-1),i(),c(e.uploadPercent!==100?4:-1)}}function Y(t,m){t&1&&(a(0,"span"),s(1),l(2,"translate"),o()),t&2&&(i(),h(d(2,1,"form.button_restore")))}function Z(t,m){if(t&1){let e=R();a(0,"div",7)(1,"div",14)(2,"button",15),l(3,"translate"),x("click",function(){C(e);let n=p();return g(n.$activeModal.dismiss("Dismiss"))}),s(4),l(5,"translate"),o()(),u(6,"div",16),a(7,"div",17)(8,"button",18),x("click",function(){C(e);let n=p();return g(n.onRestoreBackupClick())}),f(9,X,5,4,"span")(10,Y,3,3,"span"),o()()()}if(t&2){let e=p();i(2),b("disabled",e.clicked),S("aria-label",d(3,6,"form.button_close")),i(2),v(" ",d(5,8,"form.button_close")," "),i(4),b("disabled",!e.selectedBackup&&!e.selectedFile||e.clicked),i(),c(e.clicked?9:-1),i(),c(e.clicked?-1:10)}}function ee(t,m){if(t&1){let e=R();a(0,"div",7),u(1,"div",14),a(2,"div",16)(3,"button",20),x("click",function(){C(e);let n=p();return g(n.postBackupRestart())}),s(4),l(5,"translate"),o()(),u(6,"div",17),o()}t&2&&(i(4),v(" ",d(5,1,"menu.hbrestart.title")," "))}var me=(()=>{class t{$activeModal=_(H);$api=_(E);$route=_(V);$toastr=_(z);$translate=_(P);$ws=_(D);setupWizardRestore=!1;selectedBackup=null;clicked=!1;maxFileSizeText=globalThis.backup.maxBackupSizeText;selectedFile;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;restoreArchiveType="homebridge";uploadPercent=0;term=new M.Terminal;termTarget;fitAddon=new W.FitAddon;io;ngOnInit(){return k(this,null,function*(){this.io=this.$ws.connectToNamespace("backup"),this.termTarget=document.getElementById("plugin-log-output"),this.term.open(this.termTarget),this.fitAddon.fit(),this.io.socket.on("stdout",e=>{this.term.write(e)}),this.setupWizardRestore&&(this.restoreStarted=!0,this.restoreInProgress=!0,this.startRestore())})}onRestoreBackupClick(){this.selectedBackup?this.restoreScheduledBackup():this.restoreArchiveType==="homebridge"?this.uploadHomebridgeArchive():this.restoreArchiveType==="hbfx"&&this.uploadHbfxArchive()}uploadHomebridgeArchive(){this.term.reset(),this.clicked=!0;let e=new FormData;e.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore",e).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:r=>{var n;console.error(r),this.$toastr.error(((n=r.error)==null?void 0:n.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})}restoreScheduledBackup(){return k(this,null,function*(){this.term.reset(),this.clicked=!0,this.$api.post(`/backup/scheduled-backups/${this.selectedBackup.id}/restore`,{}).subscribe({next:()=>{this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startRestore()},500),this.clicked=!1},error:e=>{var r;console.error(e),this.$toastr.error(((r=e.error)==null?void 0:r.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error")),this.clicked=!1}})})}startRestore(){return k(this,null,function*(){this.io.request("do-restore").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success")),this.setupWizardRestore&&this.postBackupRestart()},error:e=>{this.restoreFailed=!0,console.error(e),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}uploadHbfxArchive(){this.term.reset(),this.clicked=!0;let e=new FormData;e.append("restoreArchive",this.selectedFile,this.selectedFile.name),this.$api.post("/backup/restore/hbfx",e,{reportProgress:!0,observe:"events"}).subscribe({next:r=>{r.type===I.UploadProgress?this.uploadPercent=Math.round(100*r.loaded/r.total):r instanceof w&&(this.restoreStarted=!0,this.restoreInProgress=!0,setTimeout(()=>{this.startHbfxRestore()},500),this.clicked=!1)},error:r=>{var n;this.clicked=!1,console.error(r),this.$toastr.error(((n=r.error)==null?void 0:n.message)||this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})}startHbfxRestore(){return k(this,null,function*(){this.io.request("do-restore-hbfx").subscribe({next:()=>{this.restoreInProgress=!1,this.$toastr.success(this.$translate.instant("backup.backup_restored"),this.$translate.instant("toast.title_success"))},error:e=>{this.restoreFailed=!0,console.error(e),this.$toastr.error(this.$translate.instant("backup.restore_failed"),this.$translate.instant("toast.title_error"))}})})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.selectedFile.name.endsWith(".hbfx")?this.restoreArchiveType="hbfx":this.restoreArchiveType="homebridge"):delete this.selectedFile}postBackupRestart(){this.$api.put("/backup/restart",{}).subscribe({next:()=>{this.$activeModal.close(!0),this.$route.navigate(["/"])},error:()=>{}})}ngOnDestroy(){this.io.end()}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=y({type:t,selectors:[["ng-component"]],inputs:{setupWizardRestore:"setupWizardRestore",selectedBackup:"selectedBackup"},decls:13,vars:11,consts:[[1,"modal-content","hb-backup-modal"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal",1,"close",3,"click","disabled"],["aria-hidden","true"],[1,"modal-body"],["id","plugin-log-output",1,"modal-body",3,"hidden"],[1,"modal-footer","justify-content-between"],[1,"text-center","mt-2","mb-3"],[1,"fas","fa-fw","fa-hard-drive","primary-text",2,"font-size","75px"],[1,"custom-file"],["type","text","disabled","",1,"form-control","custom-input",3,"value"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz, .hbfx",1,"custom-file-input",3,"change"],["for","restoreFileUpload",1,"custom-file-label"],[1,"text-left"],["type","button","data-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-center"],[1,"text-right"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click","disabled"],[1,"fa","fa-fw","fa-circle-notch","fa-spin"],["type","button","data-dismiss","modal",1,"btn","btn-primary",3,"click"]],template:function(r,n){r&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),s(3),l(4,"translate"),o(),a(5,"button",3),l(6,"translate"),x("click",function(){return n.$activeModal.dismiss("Dismiss")}),a(7,"span",4),s(8,"\xD7"),o()()(),f(9,G,18,17,"div",5),u(10,"div",6),f(11,Z,11,10,"div",7)(12,ee,7,3,"div",7),o()),r&2&&(i(3),h(d(4,7,"form.button_restore")),i(2),b("disabled",n.restoreInProgress),S("aria-label",d(6,9,"form.button_close")),i(4),c(!n.restoreStarted&&!n.setupWizardRestore?9:-1),i(),b("hidden",!n.restoreStarted),i(),c(!n.restoreStarted||n.restoreFailed===!0?11:-1),i(),c(!n.restoreInProgress&&n.restoreStarted?12:-1))},dependencies:[A],encapsulation:2})}return t})();export{me as a};
|