homebridge-config-ui-x 5.4.2-beta.37 → 5.4.2-beta.38
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/dist/core/spa/spa.filter.js +3 -2
- package/dist/core/spa/spa.filter.js.map +1 -1
- package/package.json +2 -2
- package/public/{chunk-P5YAXACP.js → chunk-2CU24PAR.js} +1 -1
- package/public/{chunk-VMKJBULC.js → chunk-3D2ZRWV5.js} +1 -1
- package/public/{chunk-2AA6JX5R.js → chunk-3EINJ7RO.js} +1 -1
- package/public/{chunk-X7YPEFXQ.js → chunk-44E3JJYU.js} +1 -1
- package/public/{chunk-TJBMXIMS.js → chunk-4GQJHVCJ.js} +1 -1
- package/public/{chunk-ZZ3PNQCV.js → chunk-4HJOARLT.js} +1 -1
- package/public/{chunk-XVR5PO5K.js → chunk-4HPGUKU6.js} +1 -1
- package/public/{chunk-NZ7MYPJZ.js → chunk-4L2FVRYY.js} +1 -1
- package/public/{chunk-ENIRIFAZ.js → chunk-4XG34NBI.js} +1 -1
- package/public/{chunk-LHCF3MMU.js → chunk-56CKAVUQ.js} +1 -1
- package/public/chunk-5QLF3MX5.js +1 -0
- package/public/{chunk-YP7VO76N.js → chunk-5RJGXU6B.js} +1 -1
- package/public/{chunk-I5TETZ3I.js → chunk-5YEYAEII.js} +1 -1
- package/public/{chunk-4O73JKMD.js → chunk-62LDK4DK.js} +1 -1
- package/public/{chunk-LXFVNKLD.js → chunk-6DTD6NF3.js} +1 -1
- package/public/{chunk-4C4YI6E7.js → chunk-73QJ7UZE.js} +1 -1
- package/public/{chunk-D53WL7UT.js → chunk-7T4IWXQI.js} +1 -1
- package/public/{chunk-SGN6BUCA.js → chunk-A7SU4MHQ.js} +1 -1
- package/public/{chunk-YOAZTJFX.js → chunk-AACIDDLQ.js} +1 -1
- package/public/{chunk-FB6JMBLA.js → chunk-AMW2QEDC.js} +1 -1
- package/public/{chunk-N3PLAD2S.js → chunk-AN6CXFLV.js} +1 -1
- package/public/{chunk-3QYCAQXA.js → chunk-AWUNW2J3.js} +1 -1
- package/public/{chunk-TQON4PEW.js → chunk-BLQSJDJX.js} +1 -1
- package/public/{chunk-FSYVLNWZ.js → chunk-C2LTP57V.js} +1 -1
- package/public/{chunk-WWWGF75T.js → chunk-CNR7Q6WP.js} +1 -1
- package/public/{chunk-74ETBIBO.js → chunk-D2HNCCB6.js} +1 -1
- package/public/{chunk-LLGX7H2E.js → chunk-EEMZUVEP.js} +1 -1
- package/public/{chunk-M4JP7A5D.js → chunk-EGGCD7NL.js} +1 -1
- package/public/{chunk-MBGUT2JJ.js → chunk-EMFUHHPJ.js} +1 -1
- package/public/{chunk-7XG67XSY.js → chunk-EOXVJQVC.js} +1 -1
- package/public/{chunk-P325ISRZ.js → chunk-F5DKHSVR.js} +1 -1
- package/public/{chunk-DSZHROF5.js → chunk-F6ZYT566.js} +1 -1
- package/public/{chunk-4AMA2I7S.js → chunk-FAN2NWEB.js} +1 -1
- package/public/{chunk-GI7GTPWF.js → chunk-GA6RULVQ.js} +1 -1
- package/public/{chunk-VONVM67K.js → chunk-GPTPAPJK.js} +1 -1
- package/public/{chunk-2M4EMVZU.js → chunk-GUBPVSEO.js} +1 -1
- package/public/{chunk-2QWVRCJT.js → chunk-HNCP2WWB.js} +1 -1
- package/public/{chunk-KT4VIVBF.js → chunk-HQBRFFPL.js} +1 -1
- package/public/{chunk-WKP5AQIC.js → chunk-I3XZ3INN.js} +1 -1
- package/public/{chunk-VYQ356YN.js → chunk-IL6JW6PB.js} +1 -1
- package/public/chunk-JAVECCXC.js +1 -0
- package/public/{chunk-M5IQIUAS.js → chunk-JDTGCH74.js} +1 -1
- package/public/{chunk-FH4R4DUJ.js → chunk-K3JB54W5.js} +1 -1
- package/public/{chunk-F7ZV2JBO.js → chunk-KCLLEPG3.js} +1 -1
- package/public/{chunk-WDLO2LKE.js → chunk-L4ITLPJH.js} +1 -1
- package/public/{chunk-ECQJTOVP.js → chunk-NHATITBP.js} +1 -1
- package/public/{chunk-J3XG7P63.js → chunk-NIF4FOYP.js} +1 -1
- package/public/{chunk-7JR3FPKB.js → chunk-NLSMBGVR.js} +1 -1
- package/public/{chunk-RID3MVAU.js → chunk-PBLH7RVQ.js} +1 -1
- package/public/{chunk-V2XN5VIX.js → chunk-PRNMO4E2.js} +4 -4
- package/public/{chunk-PDYEJROE.js → chunk-QRSE3MJY.js} +1 -1
- package/public/{chunk-4UU3RZEP.js → chunk-QTUF3RXY.js} +1 -1
- package/public/{chunk-GKQKFOED.js → chunk-R7VTFW66.js} +1 -1
- package/public/{chunk-VID4VJYB.js → chunk-RZQTL2Q2.js} +1 -1
- package/public/{chunk-XOF4NGP2.js → chunk-SAEPWJ2M.js} +1 -1
- package/public/{chunk-GZTSZV57.js → chunk-SNDUU5P6.js} +1 -1
- package/public/{chunk-UGKYL4GC.js → chunk-TJZEXS2Y.js} +1 -1
- package/public/{chunk-DBFJEIJS.js → chunk-UCETYHHK.js} +1 -1
- package/public/{chunk-SKNY42PA.js → chunk-UWBMJLKP.js} +1 -1
- package/public/{chunk-ICMMGBDN.js → chunk-V73TVN3Q.js} +1 -1
- package/public/{chunk-XCE4GMMC.js → chunk-WJPDBSEM.js} +1 -1
- package/public/{chunk-7DPEZVCW.js → chunk-XEPRXBB6.js} +1 -1
- package/public/{chunk-APVR3TMK.js → chunk-XYZKK6BZ.js} +1 -1
- package/public/chunk-YE777NLH.js +1 -0
- package/public/{chunk-5IYSHGW6.js → chunk-Z4Y6D7PJ.js} +1 -1
- package/public/{chunk-2T23YUFT.js → chunk-ZKU2IWZQ.js} +1 -1
- package/public/{chunk-YMAWYUA6.js → chunk-ZX7APSEP.js} +1 -1
- package/public/index.html +2 -2
- package/public/{main-73FN4QK2.js → main-MLWNNPNC.js} +1 -1
- package/public/styles-643WFJRY.css +1 -0
- package/public/chunk-A7RLQSPX.js +0 -1
- package/public/chunk-RW6BV4KL.js +0 -1
- package/public/chunk-VVSMN6BE.js +0 -1
- package/public/styles-AUT3PDLG.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as G,C as Q,c as $,d as C,e as B,f as O,g as T,j as w,m as q,q as z,r as D,y as H,z as A}from"./chunk-
|
|
1
|
+
import{B as G,C as Q,c as $,d as C,e as B,f as O,g as T,j as w,m as q,q as z,r as D,y as H,z as A}from"./chunk-KCLLEPG3.js";import{b as K}from"./chunk-AMW2QEDC.js";import{d as U}from"./chunk-ZX7APSEP.js";import{b as J}from"./chunk-UWBMJLKP.js";import{l as j,p as W}from"./chunk-5RJGXU6B.js";import{Ac as L,Ga as x,Gb as E,Ib as M,Kc as N,La as i,M as I,Nc as V,Pb as v,Qb as F,Vb as g,Wa as k,Wb as h,Xb as R,Xc as P,gc as f,h as y,ja as p,lb as u,mb as c,mc as l,nc as d,rb as m,sb as r,tb as a,ub as s,w as S,xc as b}from"./chunk-PRNMO4E2.js";var Y=["password"],Z=["username"],ee=["otp"],te=e=>({background:e}),ie=e=>({anim:e}),X=e=>({"is-invalid":e});function ne(e,_){if(e&1&&(r(0,"div",8)(1,"span",12),s(2,"i",13),a(),s(3,"input",14,0),l(5,"translate"),a(),r(6,"div",8)(7,"span",12),s(8,"i",15),a(),s(9,"input",16,1),l(11,"translate"),a()),e&2){let n=M();i(3),m("placeholder",d(5,4,"users.label_username"))("ngClass",f(8,X,n.form.controls.username.dirty&&n.form.controls.username.errors)),i(6),m("placeholder",d(11,6,"users.label_password"))("ngClass",f(10,X,n.form.controls.password.dirty&&n.form.controls.password.errors))}}function oe(e,_){e&1&&(r(0,"div",8)(1,"span",12),s(2,"i",17),a(),s(3,"input",18,2),l(5,"translate"),a()),e&2&&(i(3),m("placeholder",d(5,1,"login.label_2fa_code")))}function ae(e,_){e&1&&(r(0,"div",9)(1,"div",12),s(2,"i",19),a(),r(3,"div",20)(4,"div",21),g(5),l(6,"translate"),a(),s(7,"div",22),l(8,"translate"),a()()),e&2&&(i(5),h(d(6,2,"login.invalid_credentials")),i(2),m("innerHTML",d(8,4,"login.invalid_credentials_2"),x))}function re(e,_){e&1&&(r(0,"div",9)(1,"div",12),s(2,"i",19),a(),r(3,"div",20)(4,"div",21),g(5),l(6,"translate"),a(),s(7,"div",22),l(8,"translate"),a()()),e&2&&(i(5),h(d(6,2,"login.invalid_code")),i(2),m("innerHTML",d(8,4,"login.invalid_credentials_2"),x))}var _e=(()=>{class e{$auth=p(K);$cdr=p(L);$router=p(U);$settings=p(J);targetRoute;validNonAdminRoutes=["/accessories","/plugins","/logs","/support"];passwordInput=b("password");usernameInput=b("username");otpInput=b("otp");backgroundStyle;invalidCredentials=!1;invalid2faCode=!1;twoFactorCodeRequired=!1;inProgress=!1;form;ngOnInit(){this.form=new T({username:new w(""),password:new w("")}),this.form.valueChanges.pipe(I(500)).subscribe(n=>{let o=this.passwordInput()?.nativeElement.value;o&&o!==n.password&&this.form.controls.password.setValue(o)}),this.targetRoute=window.sessionStorage.getItem("target_route")||"",this.setBackground()}ngAfterViewChecked(){this.$cdr.detectChanges()}onSubmit(){return y(this,null,function*(){this.invalidCredentials=!1,this.invalid2faCode=!1,this.inProgress=!0,document.getElementById("submit-button")?.blur();let n=this.passwordInput()?.nativeElement.value;n&&n!==this.form.get("password").value&&this.form.controls.password.setValue(n);let o=this.usernameInput()?.nativeElement.value;if(o&&o!==this.form.get("username").value&&this.form.controls.username.setValue(o),this.twoFactorCodeRequired){let t=this.otpInput()?.nativeElement.value;t&&t!==this.form.get("otp").value&&this.form.controls.username.setValue(t)}try{yield this.$auth.login(this.form.getRawValue()),!this.$auth.user.admin&&!this.validNonAdminRoutes.includes(this.targetRoute)&&(this.targetRoute="/"),this.$router.navigateByUrl(this.targetRoute),window.sessionStorage.removeItem("target_route")}catch(t){t.status===412?(this.form.controls.otp?(this.form.controls.otp.setErrors(["Invalid Code"]),this.invalid2faCode=!0):this.form.addControl("otp",new w("",[C.required,C.minLength(6),C.maxLength(6)])),this.twoFactorCodeRequired=!0,setTimeout(()=>{document.getElementById("form-ota").focus()},100)):this.invalidCredentials=!0}this.inProgress=!1})}setBackground(){return y(this,null,function*(){if(this.$settings.settingsLoaded||(yield S(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let n=`${W.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${n}') center/cover`}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=k({type:e,selectors:[["ng-component"]],viewQuery:function(o,t){o&1&&(v(t.passwordInput,Y,5),v(t.usernameInput,Z,5),v(t.otpInput,ee,5)),o&2&&F(3)},decls:15,vars:18,consts:[["username",""],["password",""],["otp",""],[1,"login-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","login-card","d-flex","py-4","flex-column"],["ngSrc","assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],["novalidate","",3,"ngSubmit","formGroup"],[1,"mb-4","text-center"],[1,"input-group","mb-4"],[1,"input-group","no-border","mb-4"],[1,"text-center"],["tabindex","3","id","submit-button","type","submit",1,"btn","btn-primary","mb-2",3,"disabled"],[1,"input-group-text","custom-input"],[1,"fas","fa-fw","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autofocus","","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"placeholder","ngClass"],[1,"fas","fa-fw","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","current-password","tabindex","2","required","",1,"form-control","custom-input",3,"placeholder","ngClass"],[1,"fas","fa-fw","fa-key","primary-text","fa-lg"],["formControlName","otp","type","text","id","form-ota","autofocus","","autocomplete","one-time-code","autocapitalize","none","inputmode","numeric","pattern","[0-9]*","tabindex","1",1,"form-control","custom-input",3,"placeholder"],[1,"fas","fa-fw","fa-exclamation-triangle","pink-text","fa-lg"],[1,"form-control","custom-input"],[1,"small","grey-text","fw-semibold"],[1,"small","grey-text",3,"innerHTML"]],template:function(o,t){o&1&&(r(0,"div",3)(1,"div",4),s(2,"img",5),r(3,"form",6),E("ngSubmit",function(){return t.onSubmit()}),r(4,"h4",7),g(5),l(6,"translate"),a(),u(7,ne,12,12),u(8,oe,6,3,"div",8),u(9,ae,9,6,"div",9),u(10,re,9,6,"div",9),r(11,"div",10)(12,"button",11),g(13),l(14,"translate"),a()()()()()),o&2&&(m("ngStyle",f(14,te,t.backgroundStyle))("ngClass",f(16,ie,!t.backgroundStyle)),i(3),m("formGroup",t.form),i(2),h(d(6,10,"setup.welcome_to_homebridge")),i(2),c(t.twoFactorCodeRequired?-1:7),i(),c(t.twoFactorCodeRequired?8:-1),i(),c(t.invalidCredentials?9:-1),i(),c(t.invalid2faCode?10:-1),i(2),m("disabled",t.form.invalid),i(),R(" ",d(14,12,"form.button_continue")," "))},dependencies:[V,G,q,$,B,O,H,A,Q,z,D,N,P,j],styles:["body{overflow:scroll!important} body.dark-mode .login-card{background-color:#2b2b2b;color:#fff}.login-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.login-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.login-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.login-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return e})();export{_e as LoginComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as i}from"./chunk-
|
|
1
|
+
import{g as i}from"./chunk-ZX7APSEP.js";import{Xa as e,fa as o}from"./chunk-PRNMO4E2.js";var m=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-XEPRXBB6.js").then(t=>t.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-AN6CXFLV.js").then(t=>t.ShutdownLinuxComponent)}],n=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[i.forChild(m),i]})}return t})();var c=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[n]})}return t})();export{c as LinuxModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ea as o,n as e}from"./chunk-
|
|
1
|
+
import{ea as o,n as e}from"./chunk-PRNMO4E2.js";var n=new e,f=(()=>{class t{readyEvent;constructor(){this.readyEvent=n}static \u0275fac=function(r){return new(r||t)};static \u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function d(){n.next(void 0)}export{f as a,d as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./chunk-
|
|
1
|
+
import{c as t}from"./chunk-ZKU2IWZQ.js";import{b as i}from"./chunk-D2HNCCB6.js";import{Xa as r,fa as o}from"./chunk-PRNMO4E2.js";var f=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=r({type:e});static \u0275inj=o({providers:[t],imports:[i]})}return e})();export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as I}from"./chunk-
|
|
1
|
+
import{m as I}from"./chunk-6DTD6NF3.js";import{l as H}from"./chunk-5RJGXU6B.js";import{Db as B,Eb as p,Ga as r,Hb as f,Ib as m,La as i,Ub as v,Vb as u,Wa as L,Wb as k,Xb as E,dc as g,ja as M,kb as x,lb as d,mb as c,mc as C,nc as b,oa as T,pa as y,vb as o,wb as a,xb as s}from"./chunk-PRNMO4E2.js";function S(t,_){if(t&1&&s(0,"i",14),t&2){let e=m();v(g("fas fa-fw ",e.faIconClass," mb-3"))}}function z(t,_){if(t&1&&s(0,"p",7),t&2){let e=m();p("innerHTML",e.message2,r)}}function h(t,_){if(t&1&&s(0,"p",7),t&2){let e=m();p("innerHTML",e.message3,r)}}function P(t,_){if(t&1){let e=B();o(0,"button",15),f("click",function(){T(e);let n=m();return y(n.closeModal())}),u(1),a()}if(t&2){let e=m();v(g("btn ",e.confirmButtonClass||"btn-primary")),i(),E(" ",e.confirmButtonLabel," ")}}var N=(()=>{class t{$activeModal=M(I);title;message;message2;message3;confirmButtonLabel;confirmButtonClass;faIconClass;dismissModal(){this.$activeModal.dismiss("Dismiss")}closeModal(){this.$activeModal.close()}static \u0275fac=function(l){return new(l||t)};static \u0275cmp=L({type:t,selectors:[["ng-component"]],inputs:{title:"title",message:"message",message2:"message2",message3:"message3",confirmButtonLabel:"confirmButtonLabel",confirmButtonClass:"confirmButtonClass",faIconClass:"faIconClass"},decls:20,vars:15,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[2,"font-size","75px",3,"class"],[1,"mb-0","text-center",3,"innerHTML"],[1,"mt-2","mb-0","text-center",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button","data-bs-dismiss","modal",3,"class"],[2,"font-size","75px"],["type","button","data-bs-dismiss","modal",3,"click"]],template:function(l,n){l&1&&(o(0,"div",0)(1,"div",1)(2,"h5",2),u(3),a(),o(4,"button",3),C(5,"translate"),f("click",function(){return n.dismissModal()}),a()(),o(6,"div",4),d(7,S,1,3,"i",5),s(8,"p",6),d(9,z,1,1,"p",7),d(10,h,1,1,"p",7),a(),o(11,"div",8)(12,"div",9)(13,"button",10),C(14,"translate"),f("click",function(){return n.dismissModal()}),u(15),C(16,"translate"),a()(),s(17,"div",11),o(18,"div",12),d(19,P,2,4,"button",13),a()()()),l&2&&(i(3),k(n.title),i(),x("aria-label",b(5,9,"form.button_close")),i(3),c(n.faIconClass?7:-1),i(),p("innerHTML",n.message,r),i(),c(n.message2?9:-1),i(),c(n.message3?10:-1),i(3),x("aria-label",b(14,11,"form.button_cancel")),i(2),E(" ",b(16,13,"form.button_cancel")," "),i(4),c(n.confirmButtonLabel?19:-1))},dependencies:[H],encapsulation:2})}return t})();export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r}from"./chunk-
|
|
1
|
+
import{g as r}from"./chunk-ZX7APSEP.js";import{Xa as e,fa as t}from"./chunk-PRNMO4E2.js";var m=[{path:"",loadComponent:()=>import("./chunk-XYZKK6BZ.js").then(o=>o.PowerOptionsComponent)}],n=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[r.forChild(m),r]})}return o})();var d=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[n]})}return o})();export{d as PowerOptionsModule};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Zv}from"./chunk-FH4R4DUJ.js";import{a as Tp,c as Lv,d as Gv,e as Jv,f as dn,g as mR,h as Pp}from"./chunk-LHCF3MMU.js";import{a as Fv}from"./chunk-ECQJTOVP.js";import{a as $v}from"./chunk-I5TETZ3I.js";import{a as Yv}from"./chunk-J3XG7P63.js";import{a as Vv,b as qv,c as Kv}from"./chunk-YOAZTJFX.js";import{a as Pa}from"./chunk-KT4VIVBF.js";import{a as Wv}from"./chunk-SGN6BUCA.js";import{a as dd,b as pd}from"./chunk-ZZ3PNQCV.js";import{a as ud,b as gd}from"./chunk-74ETBIBO.js";import{a as Ov}from"./chunk-DSZHROF5.js";import{a as od,b as rd,c as nd,d as ad,e as ld,f as cd,g as cn,m as zt,n as Di,o as Bv,p as Ev,q as Mv,r as Uv,s as Rv,t as Ko}from"./chunk-LXFVNKLD.js";import{A as Dv,B as Cs,C as Ta,a as xv,b as Fo,c as wr,e as li,f as Iv,h as Tv,i as Pv,j as zv,k as Av,l as cs,m as jv,o as Nv,p as Oo,s as ln,t as Vo,u as Ip,v as qo}from"./chunk-F7ZV2JBO.js";import{a as Lo}from"./chunk-TQON4PEW.js";import{d as Os}from"./chunk-YMAWYUA6.js";import{b as jt}from"./chunk-SKNY42PA.js";import{k as nt,l as At,n as at,p as $o,q as tt}from"./chunk-YP7VO76N.js";import{$ as Ca,$c as Cv,Ac as id,Ba as rn,D as pv,Db as ae,Ga as Ve,Gb as Q,Hb as ed,Ib as C,Ka as bv,Kc as Ni,La as m,Lc as Ro,M as sn,Mb as Sp,Mc as ai,Nb as Cp,Ob as xp,Pa as Yc,Pb as Bo,Qa as co,Qb as Eo,Rb as wv,Sa as br,Sb as Hs,Tb as Fs,Tc as sd,Ub as fe,Vb as A,Wa as we,Wb as le,Xa as nn,Xb as ie,Xc as Sv,Y as Hp,Ya as yr,Yb as Mo,Za as yv,Zb as td,a as be,ab as Ie,ac as dt,b as Xe,bb as vv,bc as ut,c as lv,cb as Jc,cc as gt,da as mv,dc as kv,e as w,ea as vi,ec as Hv,fa as on,fc as pt,g as ct,gc as Ss,h as he,ha as hv,hc as vr,ia as _v,ic as Si,ja as V,jc as an,k as cv,kb as pe,lb as R,mb as F,mc as N,n as Yi,nc as M,o as kp,oa as J,ob as wi,oc as Et,pa as Z,pb as ki,q as dv,qb as Hi,rb as I,sb as y,tb as b,ub as E,v as uv,vb as Zc,vc as Ci,w as Ue,wa as Wc,wb as Qc,wc as re,x as gv,xb as Xc,xc as Uo,ya as Do,yb as xa,za as fv,zb as Ia}from"./chunk-V2XN5VIX.js";var rw=w(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.formatNames=qs.fastFormats=qs.fullFormats=void 0;function Vs(e,i){return{validate:e,compare:i}}qs.fullFormats={date:Vs(tw,Np),time:Vs(Ap(!0),Dp),"date-time":Vs(Qv(!0),sw),"iso-time":Vs(Ap(),iw),"iso-date-time":Vs(Qv(),ow),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:vR,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:IR,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:wR,int32:{type:"number",validate:SR},int64:{type:"number",validate:CR},float:{type:"number",validate:ew},double:{type:"number",validate:ew},password:!0,binary:!0};qs.fastFormats=Xe(be({},qs.fullFormats),{date:Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Np),time:Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Dp),"date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,sw),"iso-time":Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,iw),"iso-date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ow),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});qs.formatNames=Object.keys(qs.fullFormats);function hR(e){return e%4===0&&(e%100!==0||e%400===0)}var _R=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,fR=[0,31,28,31,30,31,30,31,31,30,31,30,31];function tw(e){let i=_R.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],o=+i[3];return s>=1&&s<=12&&o>=1&&o<=(s===2&&hR(t)?29:fR[s])}function Np(e,i){if(e&&i)return e>i?1:e<i?-1:0}var zp=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Ap(e){return function(t){let s=zp.exec(t);if(!s)return!1;let o=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),h=+(s[7]||0);if(p>23||h>59||e&&!c)return!1;if(o<=23&&n<=59&&l<60)return!0;let f=n-h*u,S=o-p*u-(f<0?1:0);return(S===23||S===-1)&&(f===59||f===-1)&&l<61}}function Dp(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function iw(e,i){if(!(e&&i))return;let t=zp.exec(e),s=zp.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var jp=/t|\s/i;function Qv(e){let i=Ap(e);return function(s){let o=s.split(jp);return o.length===2&&tw(o[0])&&i(o[1])}}function sw(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function ow(e,i){if(!(e&&i))return;let[t,s]=e.split(jp),[o,n]=i.split(jp),l=Np(t,o);if(l!==void 0)return l||Dp(s,n)}var bR=/\/|:/,yR=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function vR(e){return bR.test(e)&&yR.test(e)}var Xv=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function wR(e){return Xv.lastIndex=0,Xv.test(e)}var kR=-(2**31),HR=2**31-1;function SR(e){return Number.isInteger(e)&&e<=HR&&e>=kR}function CR(e){return Number.isInteger(e)}function ew(){return!0}var xR=/[^\\]\\Z/;function IR(e){if(xR.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ja=w(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.regexpCode=et.getEsmExportName=et.getProperty=et.safeStringify=et.stringify=et.strConcat=et.addCodeArg=et.str=et._=et.nil=et._Code=et.Name=et.IDENTIFIER=et._CodeOrName=void 0;var za=class{};et._CodeOrName=za;et.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var kr=class extends za{constructor(i){if(super(),!et.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};et.Name=kr;var ds=class extends za{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof kr&&(t[s.str]=(t[s.str]||0)+1),t),{})}};et._Code=ds;et.nil=new ds("");function nw(e,...i){let t=[e[0]],s=0;for(;s<i.length;)Ep(t,i[s]),t.push(e[++s]);return new ds(t)}et._=nw;var Bp=new ds("+");function aw(e,...i){let t=[Aa(e[0])],s=0;for(;s<i.length;)t.push(Bp),Ep(t,i[s]),t.push(Bp,Aa(e[++s]));return TR(t),new ds(t)}et.str=aw;function Ep(e,i){i instanceof ds?e.push(...i._items):i instanceof kr?e.push(i):e.push(AR(i))}et.addCodeArg=Ep;function TR(e){let i=1;for(;i<e.length-1;){if(e[i]===Bp){let t=PR(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function PR(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof kr||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof kr))return`"${e}${i.slice(1)}`}function zR(e,i){return i.emptyStr()?e:e.emptyStr()?i:aw`${e}${i}`}et.strConcat=zR;function AR(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Aa(Array.isArray(e)?e.join(","):e)}function jR(e){return new ds(Aa(e))}et.stringify=jR;function Aa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}et.safeStringify=Aa;function NR(e){return typeof e=="string"&&et.IDENTIFIER.test(e)?new ds(`.${e}`):nw`[${e}]`}et.getProperty=NR;function DR(e){if(typeof e=="string"&&et.IDENTIFIER.test(e))return new ds(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}et.getEsmExportName=DR;function BR(e){return new ds(e.toString())}et.regexpCode=BR});var Rp=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.ValueScope=Ei.ValueScopeName=Ei.Scope=Ei.varKinds=Ei.UsedValueState=void 0;var Bi=ja(),Mp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},md=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(md||(Ei.UsedValueState=md={}));Ei.varKinds={const:new Bi.Name("const"),let:new Bi.Name("let"),var:new Bi.Name("var")};var hd=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof Bi.Name?i:this.name(i)}name(i){return new Bi.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Ei.Scope=hd;var _d=class extends Bi.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,Bi._)`.${new Bi.Name(t)}[${s}]`}};Ei.ValueScopeName=_d;var ER=(0,Bi._)`\n`,Up=class extends hd{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=Xe(be({},i),{_n:i.lines?ER:Bi.nil})}get(){return this._scope}name(i){return new _d(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(i),{prefix:n}=o,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let h=c.get(l);if(h)return h}else c=this._values[n]=new Map;c.set(l,o);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,o.setValue(t,{property:n,itemIndex:p}),o}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Bi._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let n=Bi.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,md.Started);let h=t(p);if(h){let f=this.opts.es5?Ei.varKinds.var:Ei.varKinds.const;n=(0,Bi._)`${n}${f} ${p} = ${h};${this.opts._n}`}else if(h=o?.(p))n=(0,Bi._)`${n}${h}${this.opts._n}`;else throw new Mp(p);u.set(p,md.Completed)})}return n}};Ei.ValueScope=Up});var ke=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.or=Oe.and=Oe.not=Oe.CodeGen=Oe.operators=Oe.varKinds=Oe.ValueScopeName=Oe.ValueScope=Oe.Scope=Oe.Name=Oe.regexpCode=Oe.stringify=Oe.getProperty=Oe.nil=Oe.strConcat=Oe.str=Oe._=void 0;var Je=ja(),xs=Rp(),Go=ja();Object.defineProperty(Oe,"_",{enumerable:!0,get:function(){return Go._}});Object.defineProperty(Oe,"str",{enumerable:!0,get:function(){return Go.str}});Object.defineProperty(Oe,"strConcat",{enumerable:!0,get:function(){return Go.strConcat}});Object.defineProperty(Oe,"nil",{enumerable:!0,get:function(){return Go.nil}});Object.defineProperty(Oe,"getProperty",{enumerable:!0,get:function(){return Go.getProperty}});Object.defineProperty(Oe,"stringify",{enumerable:!0,get:function(){return Go.stringify}});Object.defineProperty(Oe,"regexpCode",{enumerable:!0,get:function(){return Go.regexpCode}});Object.defineProperty(Oe,"Name",{enumerable:!0,get:function(){return Go.Name}});var wd=Rp();Object.defineProperty(Oe,"Scope",{enumerable:!0,get:function(){return wd.Scope}});Object.defineProperty(Oe,"ValueScope",{enumerable:!0,get:function(){return wd.ValueScope}});Object.defineProperty(Oe,"ValueScopeName",{enumerable:!0,get:function(){return wd.ValueScopeName}});Object.defineProperty(Oe,"varKinds",{enumerable:!0,get:function(){return wd.varKinds}});Oe.operators={GT:new Je._Code(">"),GTE:new Je._Code(">="),LT:new Je._Code("<"),LTE:new Je._Code("<="),EQ:new Je._Code("==="),NEQ:new Je._Code("!=="),NOT:new Je._Code("!"),OR:new Je._Code("||"),AND:new Je._Code("&&"),ADD:new Je._Code("+")};var uo=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},Fp=class extends uo{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?xs.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=gn(this.rhs,i,t)),this}get names(){return this.rhs instanceof Je._CodeOrName?this.rhs.names:{}}},bd=class extends uo{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof Je.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=gn(this.rhs,i,t),this}get names(){let i=this.lhs instanceof Je.Name?{}:be({},this.lhs.names);return vd(i,this.rhs)}},Op=class extends bd{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},Vp=class extends uo{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},qp=class extends uo{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},Kp=class extends uo{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},$p=class extends uo{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=gn(this.code,i,t),this}get names(){return this.code instanceof Je._CodeOrName?this.code.names:{}}},Na=class extends uo{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,o=s.length;for(;o--;){let n=s[o];n.optimizeNames(i,t)||(MR(i,n.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>Hr(i,t.names),{})}},go=class extends Na{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},Lp=class extends Na{},Gp=(()=>{class e extends go{}return e.kind="else",e})(),fd=(()=>{class e extends go{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let o=s.optimizeNodes();s=this.else=Array.isArray(o)?new Gp(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(gw(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=gn(this.condition,t,s),this}get names(){let t=super.names;return vd(t,this.condition),this.else&&Hr(t,this.else.names),t}}return e.kind="if",e})(),kd=(()=>{class e extends go{}return e.kind="for",e})(),Wp=class extends kd{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=gn(this.iteration,i,t),this}get names(){return Hr(super.names,this.iteration.names)}},Yp=class extends kd{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?xs.varKinds.var:this.varKind,{name:s,from:o,to:n}=this;return`for(${t} ${s}=${o}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=vd(super.names,this.from);return vd(i,this.to)}},yd=class extends kd{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=gn(this.iterable,i,t),this}get names(){return Hr(super.names,this.iterable.names)}},lw=(()=>{class e extends go{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),cw=(()=>{class e extends Na{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Jp=class extends go{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&Hr(i,this.catch.names),this.finally&&Hr(i,this.finally.names),i}},dw=(()=>{class e extends go{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),uw=(()=>{class e extends go{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Zp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Xe(be({},t),{_n:t.lines?`
|
|
1
|
+
import{a as Zv}from"./chunk-K3JB54W5.js";import{a as Tp,c as Lv,d as Gv,e as Jv,f as dn,g as mR,h as Pp}from"./chunk-56CKAVUQ.js";import{a as Fv}from"./chunk-NHATITBP.js";import{a as $v}from"./chunk-5YEYAEII.js";import{a as Yv}from"./chunk-NIF4FOYP.js";import{a as Vv,b as qv,c as Kv}from"./chunk-AACIDDLQ.js";import{a as Pa}from"./chunk-HQBRFFPL.js";import{a as Wv}from"./chunk-A7SU4MHQ.js";import{a as dd,b as pd}from"./chunk-4HJOARLT.js";import{a as ud,b as gd}from"./chunk-D2HNCCB6.js";import{a as Ov}from"./chunk-F6ZYT566.js";import{a as od,b as rd,c as nd,d as ad,e as ld,f as cd,g as cn,m as zt,n as Di,o as Bv,p as Ev,q as Mv,r as Uv,s as Rv,t as Ko}from"./chunk-6DTD6NF3.js";import{A as Dv,B as Cs,C as Ta,a as xv,b as Fo,c as wr,e as li,f as Iv,h as Tv,i as Pv,j as zv,k as Av,l as cs,m as jv,o as Nv,p as Oo,s as ln,t as Vo,u as Ip,v as qo}from"./chunk-KCLLEPG3.js";import{a as Lo}from"./chunk-BLQSJDJX.js";import{d as Os}from"./chunk-ZX7APSEP.js";import{b as jt}from"./chunk-UWBMJLKP.js";import{k as nt,l as At,n as at,p as $o,q as tt}from"./chunk-5RJGXU6B.js";import{$ as Ca,$c as Cv,Ac as id,Ba as rn,D as pv,Db as ae,Ga as Ve,Gb as Q,Hb as ed,Ib as C,Ka as bv,Kc as Ni,La as m,Lc as Ro,M as sn,Mb as Sp,Mc as ai,Nb as Cp,Ob as xp,Pa as Yc,Pb as Bo,Qa as co,Qb as Eo,Rb as wv,Sa as br,Sb as Hs,Tb as Fs,Tc as sd,Ub as fe,Vb as A,Wa as we,Wb as le,Xa as nn,Xb as ie,Xc as Sv,Y as Hp,Ya as yr,Yb as Mo,Za as yv,Zb as td,a as be,ab as Ie,ac as dt,b as Xe,bb as vv,bc as ut,c as lv,cb as Jc,cc as gt,da as mv,dc as kv,e as w,ea as vi,ec as Hv,fa as on,fc as pt,g as ct,gc as Ss,h as he,ha as hv,hc as vr,ia as _v,ic as Si,ja as V,jc as an,k as cv,kb as pe,lb as R,mb as F,mc as N,n as Yi,nc as M,o as kp,oa as J,ob as wi,oc as Et,pa as Z,pb as ki,q as dv,qb as Hi,rb as I,sb as y,tb as b,ub as E,v as uv,vb as Zc,vc as Ci,w as Ue,wa as Wc,wb as Qc,wc as re,x as gv,xb as Xc,xc as Uo,ya as Do,yb as xa,za as fv,zb as Ia}from"./chunk-PRNMO4E2.js";var rw=w(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.formatNames=qs.fastFormats=qs.fullFormats=void 0;function Vs(e,i){return{validate:e,compare:i}}qs.fullFormats={date:Vs(tw,Np),time:Vs(Ap(!0),Dp),"date-time":Vs(Qv(!0),sw),"iso-time":Vs(Ap(),iw),"iso-date-time":Vs(Qv(),ow),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:vR,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:IR,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:wR,int32:{type:"number",validate:SR},int64:{type:"number",validate:CR},float:{type:"number",validate:ew},double:{type:"number",validate:ew},password:!0,binary:!0};qs.fastFormats=Xe(be({},qs.fullFormats),{date:Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Np),time:Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Dp),"date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,sw),"iso-time":Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,iw),"iso-date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ow),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});qs.formatNames=Object.keys(qs.fullFormats);function hR(e){return e%4===0&&(e%100!==0||e%400===0)}var _R=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,fR=[0,31,28,31,30,31,30,31,31,30,31,30,31];function tw(e){let i=_R.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],o=+i[3];return s>=1&&s<=12&&o>=1&&o<=(s===2&&hR(t)?29:fR[s])}function Np(e,i){if(e&&i)return e>i?1:e<i?-1:0}var zp=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Ap(e){return function(t){let s=zp.exec(t);if(!s)return!1;let o=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),h=+(s[7]||0);if(p>23||h>59||e&&!c)return!1;if(o<=23&&n<=59&&l<60)return!0;let f=n-h*u,S=o-p*u-(f<0?1:0);return(S===23||S===-1)&&(f===59||f===-1)&&l<61}}function Dp(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function iw(e,i){if(!(e&&i))return;let t=zp.exec(e),s=zp.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var jp=/t|\s/i;function Qv(e){let i=Ap(e);return function(s){let o=s.split(jp);return o.length===2&&tw(o[0])&&i(o[1])}}function sw(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function ow(e,i){if(!(e&&i))return;let[t,s]=e.split(jp),[o,n]=i.split(jp),l=Np(t,o);if(l!==void 0)return l||Dp(s,n)}var bR=/\/|:/,yR=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function vR(e){return bR.test(e)&&yR.test(e)}var Xv=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function wR(e){return Xv.lastIndex=0,Xv.test(e)}var kR=-(2**31),HR=2**31-1;function SR(e){return Number.isInteger(e)&&e<=HR&&e>=kR}function CR(e){return Number.isInteger(e)}function ew(){return!0}var xR=/[^\\]\\Z/;function IR(e){if(xR.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ja=w(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.regexpCode=et.getEsmExportName=et.getProperty=et.safeStringify=et.stringify=et.strConcat=et.addCodeArg=et.str=et._=et.nil=et._Code=et.Name=et.IDENTIFIER=et._CodeOrName=void 0;var za=class{};et._CodeOrName=za;et.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var kr=class extends za{constructor(i){if(super(),!et.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};et.Name=kr;var ds=class extends za{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof kr&&(t[s.str]=(t[s.str]||0)+1),t),{})}};et._Code=ds;et.nil=new ds("");function nw(e,...i){let t=[e[0]],s=0;for(;s<i.length;)Ep(t,i[s]),t.push(e[++s]);return new ds(t)}et._=nw;var Bp=new ds("+");function aw(e,...i){let t=[Aa(e[0])],s=0;for(;s<i.length;)t.push(Bp),Ep(t,i[s]),t.push(Bp,Aa(e[++s]));return TR(t),new ds(t)}et.str=aw;function Ep(e,i){i instanceof ds?e.push(...i._items):i instanceof kr?e.push(i):e.push(AR(i))}et.addCodeArg=Ep;function TR(e){let i=1;for(;i<e.length-1;){if(e[i]===Bp){let t=PR(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function PR(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof kr||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof kr))return`"${e}${i.slice(1)}`}function zR(e,i){return i.emptyStr()?e:e.emptyStr()?i:aw`${e}${i}`}et.strConcat=zR;function AR(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Aa(Array.isArray(e)?e.join(","):e)}function jR(e){return new ds(Aa(e))}et.stringify=jR;function Aa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}et.safeStringify=Aa;function NR(e){return typeof e=="string"&&et.IDENTIFIER.test(e)?new ds(`.${e}`):nw`[${e}]`}et.getProperty=NR;function DR(e){if(typeof e=="string"&&et.IDENTIFIER.test(e))return new ds(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}et.getEsmExportName=DR;function BR(e){return new ds(e.toString())}et.regexpCode=BR});var Rp=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.ValueScope=Ei.ValueScopeName=Ei.Scope=Ei.varKinds=Ei.UsedValueState=void 0;var Bi=ja(),Mp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},md=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(md||(Ei.UsedValueState=md={}));Ei.varKinds={const:new Bi.Name("const"),let:new Bi.Name("let"),var:new Bi.Name("var")};var hd=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof Bi.Name?i:this.name(i)}name(i){return new Bi.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Ei.Scope=hd;var _d=class extends Bi.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,Bi._)`.${new Bi.Name(t)}[${s}]`}};Ei.ValueScopeName=_d;var ER=(0,Bi._)`\n`,Up=class extends hd{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=Xe(be({},i),{_n:i.lines?ER:Bi.nil})}get(){return this._scope}name(i){return new _d(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(i),{prefix:n}=o,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let h=c.get(l);if(h)return h}else c=this._values[n]=new Map;c.set(l,o);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,o.setValue(t,{property:n,itemIndex:p}),o}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Bi._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let n=Bi.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,md.Started);let h=t(p);if(h){let f=this.opts.es5?Ei.varKinds.var:Ei.varKinds.const;n=(0,Bi._)`${n}${f} ${p} = ${h};${this.opts._n}`}else if(h=o?.(p))n=(0,Bi._)`${n}${h}${this.opts._n}`;else throw new Mp(p);u.set(p,md.Completed)})}return n}};Ei.ValueScope=Up});var ke=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.or=Oe.and=Oe.not=Oe.CodeGen=Oe.operators=Oe.varKinds=Oe.ValueScopeName=Oe.ValueScope=Oe.Scope=Oe.Name=Oe.regexpCode=Oe.stringify=Oe.getProperty=Oe.nil=Oe.strConcat=Oe.str=Oe._=void 0;var Je=ja(),xs=Rp(),Go=ja();Object.defineProperty(Oe,"_",{enumerable:!0,get:function(){return Go._}});Object.defineProperty(Oe,"str",{enumerable:!0,get:function(){return Go.str}});Object.defineProperty(Oe,"strConcat",{enumerable:!0,get:function(){return Go.strConcat}});Object.defineProperty(Oe,"nil",{enumerable:!0,get:function(){return Go.nil}});Object.defineProperty(Oe,"getProperty",{enumerable:!0,get:function(){return Go.getProperty}});Object.defineProperty(Oe,"stringify",{enumerable:!0,get:function(){return Go.stringify}});Object.defineProperty(Oe,"regexpCode",{enumerable:!0,get:function(){return Go.regexpCode}});Object.defineProperty(Oe,"Name",{enumerable:!0,get:function(){return Go.Name}});var wd=Rp();Object.defineProperty(Oe,"Scope",{enumerable:!0,get:function(){return wd.Scope}});Object.defineProperty(Oe,"ValueScope",{enumerable:!0,get:function(){return wd.ValueScope}});Object.defineProperty(Oe,"ValueScopeName",{enumerable:!0,get:function(){return wd.ValueScopeName}});Object.defineProperty(Oe,"varKinds",{enumerable:!0,get:function(){return wd.varKinds}});Oe.operators={GT:new Je._Code(">"),GTE:new Je._Code(">="),LT:new Je._Code("<"),LTE:new Je._Code("<="),EQ:new Je._Code("==="),NEQ:new Je._Code("!=="),NOT:new Je._Code("!"),OR:new Je._Code("||"),AND:new Je._Code("&&"),ADD:new Je._Code("+")};var uo=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},Fp=class extends uo{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?xs.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=gn(this.rhs,i,t)),this}get names(){return this.rhs instanceof Je._CodeOrName?this.rhs.names:{}}},bd=class extends uo{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof Je.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=gn(this.rhs,i,t),this}get names(){let i=this.lhs instanceof Je.Name?{}:be({},this.lhs.names);return vd(i,this.rhs)}},Op=class extends bd{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},Vp=class extends uo{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},qp=class extends uo{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},Kp=class extends uo{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},$p=class extends uo{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=gn(this.code,i,t),this}get names(){return this.code instanceof Je._CodeOrName?this.code.names:{}}},Na=class extends uo{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,o=s.length;for(;o--;){let n=s[o];n.optimizeNames(i,t)||(MR(i,n.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>Hr(i,t.names),{})}},go=class extends Na{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},Lp=class extends Na{},Gp=(()=>{class e extends go{}return e.kind="else",e})(),fd=(()=>{class e extends go{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let o=s.optimizeNodes();s=this.else=Array.isArray(o)?new Gp(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(gw(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=gn(this.condition,t,s),this}get names(){let t=super.names;return vd(t,this.condition),this.else&&Hr(t,this.else.names),t}}return e.kind="if",e})(),kd=(()=>{class e extends go{}return e.kind="for",e})(),Wp=class extends kd{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=gn(this.iteration,i,t),this}get names(){return Hr(super.names,this.iteration.names)}},Yp=class extends kd{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?xs.varKinds.var:this.varKind,{name:s,from:o,to:n}=this;return`for(${t} ${s}=${o}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=vd(super.names,this.from);return vd(i,this.to)}},yd=class extends kd{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=gn(this.iterable,i,t),this}get names(){return Hr(super.names,this.iterable.names)}},lw=(()=>{class e extends go{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),cw=(()=>{class e extends Na{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Jp=class extends go{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&Hr(i,this.catch.names),this.finally&&Hr(i,this.finally.names),i}},dw=(()=>{class e extends go{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),uw=(()=>{class e extends go{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Zp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Xe(be({},t),{_n:t.lines?`
|
|
2
2
|
`:""}),this._extScope=i,this._scope=new xs.Scope({parent:i}),this._nodes=[new Lp]}toString(){return this._root.render(this.opts)}name(i){return this._scope.name(i)}scopeName(i){return this._extScope.name(i)}scopeValue(i,t){let s=this._extScope.value(i,t);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(i,t){return this._extScope.getValue(i,t)}scopeRefs(i){return this._extScope.scopeRefs(i,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(i,t,s,o){let n=this._scope.toName(t);return s!==void 0&&o&&(this._constants[n.str]=s),this._leafNode(new Fp(i,n,s)),n}const(i,t,s){return this._def(xs.varKinds.const,i,t,s)}let(i,t,s){return this._def(xs.varKinds.let,i,t,s)}var(i,t,s){return this._def(xs.varKinds.var,i,t,s)}assign(i,t,s){return this._leafNode(new bd(i,t,s))}add(i,t){return this._leafNode(new Op(i,Oe.operators.ADD,t))}code(i){return typeof i=="function"?i():i!==Je.nil&&this._leafNode(new $p(i)),this}object(...i){let t=["{"];for(let[s,o]of i)t.length>1&&t.push(","),t.push(s),(s!==o||this.opts.es5)&&(t.push(":"),(0,Je.addCodeArg)(t,o));return t.push("}"),new Je._Code(t)}if(i,t,s){if(this._blockNode(new fd(i)),t&&s)this.code(t).else().code(s).endIf();else if(t)this.code(t).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(i){return this._elseNode(new fd(i))}else(){return this._elseNode(new Gp)}endIf(){return this._endBlockNode(fd,Gp)}_for(i,t){return this._blockNode(i),t&&this.code(t).endFor(),this}for(i,t){return this._for(new Wp(i),t)}forRange(i,t,s,o,n=this.opts.es5?xs.varKinds.var:xs.varKinds.let){let l=this._scope.toName(i);return this._for(new Yp(n,l,t,s),()=>o(l))}forOf(i,t,s,o=xs.varKinds.const){let n=this._scope.toName(i);if(this.opts.es5){let l=t instanceof Je.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,Je._)`${l}.length`,c=>{this.var(n,(0,Je._)`${l}[${c}]`),s(n)})}return this._for(new yd("of",o,n,t),()=>s(n))}forIn(i,t,s,o=this.opts.es5?xs.varKinds.var:xs.varKinds.const){if(this.opts.ownProperties)return this.forOf(i,(0,Je._)`Object.keys(${t})`,s);let n=this._scope.toName(i);return this._for(new yd("in",o,n,t),()=>s(n))}endFor(){return this._endBlockNode(kd)}label(i){return this._leafNode(new Vp(i))}break(i){return this._leafNode(new qp(i))}return(i){let t=new cw;if(this._blockNode(t),this.code(i),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(cw)}try(i,t,s){if(!t&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Jp;if(this._blockNode(o),this.code(i),t){let n=this.name("e");this._currNode=o.catch=new dw(n),t(n)}return s&&(this._currNode=o.finally=new uw,this.code(s)),this._endBlockNode(dw,uw)}throw(i){return this._leafNode(new Kp(i))}block(i,t){return this._blockStarts.push(this._nodes.length),i&&this.code(i).endBlock(t),this}endBlock(i){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-t;if(s<0||i!==void 0&&s!==i)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${i} expected`);return this._nodes.length=t,this}func(i,t=Je.nil,s,o){return this._blockNode(new lw(i,t,s)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(lw)}optimize(i=1){for(;i-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(i){return this._currNode.nodes.push(i),this}_blockNode(i){this._currNode.nodes.push(i),this._nodes.push(i)}_endBlockNode(i,t){let s=this._currNode;if(s instanceof i||t&&s instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${i.kind}/${t.kind}`:i.kind}"`)}_elseNode(i){let t=this._currNode;if(!(t instanceof fd))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=i,this}get _root(){return this._nodes[0]}get _currNode(){let i=this._nodes;return i[i.length-1]}set _currNode(i){let t=this._nodes;t[t.length-1]=i}};Oe.CodeGen=Zp;function Hr(e,i){for(let t in i)e[t]=(e[t]||0)+(i[t]||0);return e}function vd(e,i){return i instanceof Je._CodeOrName?Hr(e,i.names):e}function gn(e,i,t){if(e instanceof Je.Name)return s(e);if(!o(e))return e;return new Je._Code(e._items.reduce((n,l)=>(l instanceof Je.Name&&(l=s(l)),l instanceof Je._Code?n.push(...l._items):n.push(l),n),[]));function s(n){let l=t[n.str];return l===void 0||i[n.str]!==1?n:(delete i[n.str],l)}function o(n){return n instanceof Je._Code&&n._items.some(l=>l instanceof Je.Name&&i[l.str]===1&&t[l.str]!==void 0)}}function MR(e,i){for(let t in i)e[t]=(e[t]||0)-(i[t]||0)}function gw(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Je._)`!${Qp(e)}`}Oe.not=gw;var UR=pw(Oe.operators.AND);function RR(...e){return e.reduce(UR)}Oe.and=RR;var FR=pw(Oe.operators.OR);function OR(...e){return e.reduce(FR)}Oe.or=OR;function pw(e){return(i,t)=>i===Je.nil?t:t===Je.nil?i:(0,Je._)`${Qp(i)} ${e} ${Qp(t)}`}function Qp(e){return e instanceof Je.Name?e:(0,Je._)`(${e})`}});var $e=w(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;var ft=ke(),VR=ja();function qR(e){let i={};for(let t of e)i[t]=!0;return i}qe.toHash=qR;function KR(e,i){return typeof i=="boolean"?i:Object.keys(i).length===0?!0:(_w(e,i),!fw(i,e.self.RULES.all))}qe.alwaysValidSchema=KR;function _w(e,i=e.schema){let{opts:t,self:s}=e;if(!t.strictSchema||typeof i=="boolean")return;let o=s.RULES.keywords;for(let n in i)o[n]||vw(e,`unknown keyword: "${n}"`)}qe.checkUnknownRules=_w;function fw(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(i[t])return!0;return!1}qe.schemaHasRules=fw;function $R(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&i.all[t])return!0;return!1}qe.schemaHasRulesButRef=$R;function LR({topSchemaRef:e,schemaPath:i},t,s,o){if(!o){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,ft._)`${t}`}return(0,ft._)`${e}${i}${(0,ft.getProperty)(s)}`}qe.schemaRefOrVal=LR;function GR(e){return bw(decodeURIComponent(e))}qe.unescapeFragment=GR;function WR(e){return encodeURIComponent(em(e))}qe.escapeFragment=WR;function em(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=em;function bw(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=bw;function YR(e,i){if(Array.isArray(e))for(let t of e)i(t);else i(e)}qe.eachItem=YR;function mw({mergeNames:e,mergeToName:i,mergeValues:t,resultToName:s}){return(o,n,l,c)=>{let u=l===void 0?n:l instanceof ft.Name?(n instanceof ft.Name?e(o,n,l):i(o,n,l),l):n instanceof ft.Name?(i(o,l,n),n):t(n,l);return c===ft.Name&&!(u instanceof ft.Name)?s(o,u):u}}qe.mergeEvaluated={props:mw({mergeNames:(e,i,t)=>e.if((0,ft._)`${t} !== true && ${i} !== undefined`,()=>{e.if((0,ft._)`${i} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,ft._)`${t} || {}`).code((0,ft._)`Object.assign(${t}, ${i})`))}),mergeToName:(e,i,t)=>e.if((0,ft._)`${t} !== true`,()=>{i===!0?e.assign(t,!0):(e.assign(t,(0,ft._)`${t} || {}`),tm(e,t,i))}),mergeValues:(e,i)=>e===!0?!0:be(be({},e),i),resultToName:yw}),items:mw({mergeNames:(e,i,t)=>e.if((0,ft._)`${t} !== true && ${i} !== undefined`,()=>e.assign(t,(0,ft._)`${i} === true ? true : ${t} > ${i} ? ${t} : ${i}`)),mergeToName:(e,i,t)=>e.if((0,ft._)`${t} !== true`,()=>e.assign(t,i===!0?!0:(0,ft._)`${t} > ${i} ? ${t} : ${i}`)),mergeValues:(e,i)=>e===!0?!0:Math.max(e,i),resultToName:(e,i)=>e.var("items",i)})};function yw(e,i){if(i===!0)return e.var("props",!0);let t=e.var("props",(0,ft._)`{}`);return i!==void 0&&tm(e,t,i),t}qe.evaluatedPropsToName=yw;function tm(e,i,t){Object.keys(t).forEach(s=>e.assign((0,ft._)`${i}${(0,ft.getProperty)(s)}`,!0))}qe.setEvaluated=tm;var hw={};function JR(e,i){return e.scopeValue("func",{ref:i,code:hw[i.code]||(hw[i.code]=new VR._Code(i.code))})}qe.useFunc=JR;var Xp=(function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e})(Xp||(qe.Type=Xp={}));function ZR(e,i,t){if(e instanceof ft.Name){let s=i===Xp.Num;return t?s?(0,ft._)`"[" + ${e} + "]"`:(0,ft._)`"['" + ${e} + "']"`:s?(0,ft._)`"/" + ${e}`:(0,ft._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,ft.getProperty)(e).toString():"/"+em(e)}qe.getErrorPath=ZR;function vw(e,i,t=e.opts.strictSchema){if(t){if(i=`strict mode: ${i}`,t===!0)throw new Error(i);e.self.logger.warn(i)}}qe.checkStrictMode=vw});var us=w(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var ci=ke(),QR={data:new ci.Name("data"),valCxt:new ci.Name("valCxt"),instancePath:new ci.Name("instancePath"),parentData:new ci.Name("parentData"),parentDataProperty:new ci.Name("parentDataProperty"),rootData:new ci.Name("rootData"),dynamicAnchors:new ci.Name("dynamicAnchors"),vErrors:new ci.Name("vErrors"),errors:new ci.Name("errors"),this:new ci.Name("this"),self:new ci.Name("self"),scope:new ci.Name("scope"),json:new ci.Name("json"),jsonPos:new ci.Name("jsonPos"),jsonLen:new ci.Name("jsonLen"),jsonPart:new ci.Name("jsonPart")};im.default=QR});var Da=w(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.extendErrors=di.resetErrorsCount=di.reportExtraError=di.reportError=di.keyword$DataError=di.keywordError=void 0;var Qe=ke(),Hd=$e(),xi=us();di.keywordError={message:({keyword:e})=>(0,Qe.str)`must pass "${e}" keyword validation`};di.keyword$DataError={message:({keyword:e,schemaType:i})=>i?(0,Qe.str)`"${e}" keyword must be ${i} ($data)`:(0,Qe.str)`"${e}" keyword is invalid ($data)`};function XR(e,i=di.keywordError,t,s){let{it:o}=e,{gen:n,compositeRule:l,allErrors:c}=o,u=Hw(e,i,t);s??(l||c)?ww(n,u):kw(o,(0,Qe._)`[${u}]`)}di.reportError=XR;function eF(e,i=di.keywordError,t){let{it:s}=e,{gen:o,compositeRule:n,allErrors:l}=s,c=Hw(e,i,t);ww(o,c),n||l||kw(s,xi.default.vErrors)}di.reportExtraError=eF;function tF(e,i){e.assign(xi.default.errors,i),e.if((0,Qe._)`${xi.default.vErrors} !== null`,()=>e.if(i,()=>e.assign((0,Qe._)`${xi.default.vErrors}.length`,i),()=>e.assign(xi.default.vErrors,null)))}di.resetErrorsCount=tF;function iF({gen:e,keyword:i,schemaValue:t,data:s,errsCount:o,it:n}){if(o===void 0)throw new Error("ajv implementation error");let l=e.name("err");e.forRange("i",o,xi.default.errors,c=>{e.const(l,(0,Qe._)`${xi.default.vErrors}[${c}]`),e.if((0,Qe._)`${l}.instancePath === undefined`,()=>e.assign((0,Qe._)`${l}.instancePath`,(0,Qe.strConcat)(xi.default.instancePath,n.errorPath))),e.assign((0,Qe._)`${l}.schemaPath`,(0,Qe.str)`${n.errSchemaPath}/${i}`),n.opts.verbose&&(e.assign((0,Qe._)`${l}.schema`,t),e.assign((0,Qe._)`${l}.data`,s))})}di.extendErrors=iF;function ww(e,i){let t=e.const("err",i);e.if((0,Qe._)`${xi.default.vErrors} === null`,()=>e.assign(xi.default.vErrors,(0,Qe._)`[${t}]`),(0,Qe._)`${xi.default.vErrors}.push(${t})`),e.code((0,Qe._)`${xi.default.errors}++`)}function kw(e,i){let{gen:t,validateName:s,schemaEnv:o}=e;o.$async?t.throw((0,Qe._)`new ${e.ValidationError}(${i})`):(t.assign((0,Qe._)`${s}.errors`,i),t.return(!1))}var Sr={keyword:new Qe.Name("keyword"),schemaPath:new Qe.Name("schemaPath"),params:new Qe.Name("params"),propertyName:new Qe.Name("propertyName"),message:new Qe.Name("message"),schema:new Qe.Name("schema"),parentSchema:new Qe.Name("parentSchema")};function Hw(e,i,t){let{createErrors:s}=e.it;return s===!1?(0,Qe._)`{}`:sF(e,i,t)}function sF(e,i,t={}){let{gen:s,it:o}=e,n=[oF(o,t),rF(e,t)];return nF(e,i,n),s.object(...n)}function oF({errorPath:e},{instancePath:i}){let t=i?(0,Qe.str)`${e}${(0,Hd.getErrorPath)(i,Hd.Type.Str)}`:e;return[xi.default.instancePath,(0,Qe.strConcat)(xi.default.instancePath,t)]}function rF({keyword:e,it:{errSchemaPath:i}},{schemaPath:t,parentSchema:s}){let o=s?i:(0,Qe.str)`${i}/${e}`;return t&&(o=(0,Qe.str)`${o}${(0,Hd.getErrorPath)(t,Hd.Type.Str)}`),[Sr.schemaPath,o]}function nF(e,{params:i,message:t},s){let{keyword:o,data:n,schemaValue:l,it:c}=e,{opts:u,propertyName:p,topSchemaRef:h,schemaPath:f}=c;s.push([Sr.keyword,o],[Sr.params,typeof i=="function"?i(e):i||(0,Qe._)`{}`]),u.messages&&s.push([Sr.message,typeof t=="function"?t(e):t]),u.verbose&&s.push([Sr.schema,l],[Sr.parentSchema,(0,Qe._)`${h}${f}`],[xi.default.data,n]),p&&s.push([Sr.propertyName,p])}});var Cw=w(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.boolOrEmptySchema=pn.topBoolOrEmptySchema=void 0;var aF=Da(),lF=ke(),cF=us(),dF={message:"boolean schema is false"};function uF(e){let{gen:i,schema:t,validateName:s}=e;t===!1?Sw(e,!1):typeof t=="object"&&t.$async===!0?i.return(cF.default.data):(i.assign((0,lF._)`${s}.errors`,null),i.return(!0))}pn.topBoolOrEmptySchema=uF;function gF(e,i){let{gen:t,schema:s}=e;s===!1?(t.var(i,!1),Sw(e)):t.var(i,!0)}pn.boolOrEmptySchema=gF;function Sw(e,i){let{gen:t,data:s}=e,o={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,aF.reportError)(o,dF,void 0,i)}});var sm=w(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getRules=mn.isJSONType=void 0;var pF=["string","number","integer","boolean","null","object","array"],mF=new Set(pF);function hF(e){return typeof e=="string"&&mF.has(e)}mn.isJSONType=hF;function _F(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Xe(be({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}mn.getRules=_F});var om=w(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.shouldUseRule=Wo.shouldUseGroup=Wo.schemaHasRulesForType=void 0;function fF({schema:e,self:i},t){let s=i.RULES.types[t];return s&&s!==!0&&xw(e,s)}Wo.schemaHasRulesForType=fF;function xw(e,i){return i.rules.some(t=>Iw(e,t))}Wo.shouldUseGroup=xw;function Iw(e,i){var t;return e[i.keyword]!==void 0||((t=i.definition.implements)===null||t===void 0?void 0:t.some(s=>e[s]!==void 0))}Wo.shouldUseRule=Iw});var Ba=w(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.reportTypeError=ui.checkDataTypes=ui.checkDataType=ui.coerceAndCheckDataType=ui.getJSONTypes=ui.getSchemaTypes=ui.DataType=void 0;var bF=sm(),yF=om(),vF=Da(),Ee=ke(),Tw=$e(),hn=(function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e})(hn||(ui.DataType=hn={}));function wF(e){let i=Pw(e.type);if(i.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!i.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&i.push("null")}return i}ui.getSchemaTypes=wF;function Pw(e){let i=Array.isArray(e)?e:e?[e]:[];if(i.every(bF.isJSONType))return i;throw new Error("type must be JSONType or JSONType[]: "+i.join(","))}ui.getJSONTypes=Pw;function kF(e,i){let{gen:t,data:s,opts:o}=e,n=HF(i,o.coerceTypes),l=i.length>0&&!(n.length===0&&i.length===1&&(0,yF.schemaHasRulesForType)(e,i[0]));if(l){let c=nm(i,s,o.strictNumbers,hn.Wrong);t.if(c,()=>{n.length?SF(e,i,n):am(e)})}return l}ui.coerceAndCheckDataType=kF;var zw=new Set(["string","number","integer","boolean","null"]);function HF(e,i){return i?e.filter(t=>zw.has(t)||i==="array"&&t==="array"):[]}function SF(e,i,t){let{gen:s,data:o,opts:n}=e,l=s.let("dataType",(0,Ee._)`typeof ${o}`),c=s.let("coerced",(0,Ee._)`undefined`);n.coerceTypes==="array"&&s.if((0,Ee._)`${l} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>s.assign(o,(0,Ee._)`${o}[0]`).assign(l,(0,Ee._)`typeof ${o}`).if(nm(i,o,n.strictNumbers),()=>s.assign(c,o))),s.if((0,Ee._)`${c} !== undefined`);for(let p of t)(zw.has(p)||p==="array"&&n.coerceTypes==="array")&&u(p);s.else(),am(e),s.endIf(),s.if((0,Ee._)`${c} !== undefined`,()=>{s.assign(o,c),CF(e,c)});function u(p){switch(p){case"string":s.elseIf((0,Ee._)`${l} == "number" || ${l} == "boolean"`).assign(c,(0,Ee._)`"" + ${o}`).elseIf((0,Ee._)`${o} === null`).assign(c,(0,Ee._)`""`);return;case"number":s.elseIf((0,Ee._)`${l} == "boolean" || ${o} === null
|
|
3
3
|
|| (${l} == "string" && ${o} && ${o} == +${o})`).assign(c,(0,Ee._)`+${o}`);return;case"integer":s.elseIf((0,Ee._)`${l} === "boolean" || ${o} === null
|
|
4
4
|
|| (${l} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,(0,Ee._)`+${o}`);return;case"boolean":s.elseIf((0,Ee._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf((0,Ee._)`${o} === "true" || ${o} === 1`).assign(c,!0);return;case"null":s.elseIf((0,Ee._)`${o} === "" || ${o} === 0 || ${o} === false`),s.assign(c,null);return;case"array":s.elseIf((0,Ee._)`${l} === "string" || ${l} === "number"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-TJZEXS2Y.js";import{g as i}from"./chunk-ZX7APSEP.js";import"./chunk-UWBMJLKP.js";import"./chunk-5RJGXU6B.js";import{Xa as r,fa as o}from"./chunk-PRNMO4E2.js";var a=[{path:"",loadComponent:()=>import("./chunk-HNCP2WWB.js").then(t=>t.SetupWizardComponent)}],u=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({imports:[i.forChild(a),i]})}return t})();var l=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({providers:[n],imports:[u]})}return t})();export{l as SetupWizardModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r}from"./chunk-
|
|
1
|
+
import{g as r}from"./chunk-ZX7APSEP.js";import{Xa as e,fa as t}from"./chunk-PRNMO4E2.js";var u=[{path:"",loadComponent:()=>import("./chunk-V73TVN3Q.js").then(o=>o.LogsComponent)}],n=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[r.forChild(u),r]})}return o})();var p=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[n]})}return o})();export{p as LogsModule};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{B as Y,C as Z,c as G,d as k,e as j,f as D,g as K,j as $,m as A,q as J,r as Q,y as X}from"./chunk-
|
|
1
|
+
import{B as Y,C as Z,c as G,d as k,e as j,f as D,g as K,j as $,m as A,q as J,r as Q,y as X}from"./chunk-KCLLEPG3.js";import{a as ae}from"./chunk-BLQSJDJX.js";import{b as oe}from"./chunk-AMW2QEDC.js";import{b as re}from"./chunk-UWBMJLKP.js";import{k as ee,l as te,n as ie,p as U,q as ne}from"./chunk-5RJGXU6B.js";import{Db as I,Ga as W,Gb as x,Ib as _,Kc as H,La as n,Nc as N,Sb as O,Vb as l,Wa as V,Wb as f,Xb as g,Xc as R,fc as L,gc as B,h as S,hc as E,hd as q,ja as w,kb as M,lb as z,mb as T,mc as a,nc as s,oa as C,pa as b,rb as m,sb as o,tb as r,ub as u,w as h}from"./chunk-PRNMO4E2.js";var pe=t=>({background:t}),de=t=>({anim:t}),ce=t=>({"progress-bar-animated":t}),me=()=>["restoring","restarting","restore-complete"],P=(t,d)=>({"is-valid":t,"is-invalid":d});function ue(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),u(4,"div",7),a(5,"translate"),o(6,"button",8),x("click",function(){C(e);let i=_();return b(i.onClickGettingStarted())}),l(7),a(8,"translate"),r(),o(9,"a",9),x("click",function(){C(e);let i=_();return b(i.onClickRestoreBackup())}),l(10),a(11,"translate"),r()()}t&2&&(n(2),f(s(3,4,"setup.welcome_to_homebridge")),n(2),m("innerHTML",s(5,6,"setup.intro"),W),n(3),g(" ",s(8,8,"setup.button_get_started")," "),n(3),f(s(11,10,"setup_wizard_restore")))}function ge(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"div",11)(8,"form",12),x("ngSubmit",function(){C(e);let i=_();return b(i.createFirstUser())}),o(9,"div",13)(10,"span",14),u(11,"i",15),r(),u(12,"input",16),a(13,"translate"),r(),o(14,"div",13)(15,"span",14),u(16,"i",17),r(),u(17,"input",18),a(18,"translate"),r(),o(19,"div",13)(20,"span",14),u(21,"i",17),r(),u(22,"input",19),a(23,"translate"),r(),o(24,"div",20)(25,"button",21),x("click",function(){C(e);let i=_();return b(i.onClickCancelRestore())}),l(26),a(27,"translate"),r(),o(28,"button",22),l(29),a(30,"translate"),r()()()()()}if(t&2){let e=_();n(2),f(s(3,16,"setup.create_account")),n(3),f(s(6,18,"setup_wizard_create_info")),n(3),m("formGroup",e.createUserForm),n(4),m("readonly",e.loading)("ngClass",E(30,P,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.valid,e.createUserForm.controls.username.dirty&&e.createUserForm.controls.username.invalid))("placeholder",s(13,20,"users.label_username")),n(5),m("readonly",e.loading)("ngClass",E(33,P,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.valid,e.createUserForm.controls.password.dirty&&e.createUserForm.controls.password.errors))("placeholder",s(18,22,"users.label_password")),n(5),m("readonly",e.loading)("ngClass",E(36,P,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.valid,e.createUserForm.controls.passwordConfirm.dirty&&e.createUserForm.controls.passwordConfirm.errors))("placeholder",s(23,24,"users.label_confirm_password")),n(3),m("disabled",e.restoreUploading),n(),g(" ",s(27,26,"form.button_back")," "),n(2),m("disabled",e.createUserForm.invalid||e.loading),n(),g(" ",s(30,28,"form.button_continue")," ")}}function _e(t,d){t&1&&(u(0,"i",25),l(1),a(2,"translate")),t&2&&(n(),g(" ",s(2,1,"backup.label_uploading")," "))}function fe(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"form.button_continue")," ")}function he(t,d){if(t&1){let e=I();o(0,"div",5)(1,"h4",6),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"input",23),x("change",function(i){C(e);let F=_();return b(F.handleRestoreFileInput(i.target.files))}),r(),o(8,"div",20)(9,"button",21),x("click",function(){C(e);let i=_();return b(i.onClickCancelRestore())}),l(10),a(11,"translate"),r(),o(12,"button",24),x("click",function(){C(e);let i=_();return b(i.onRestoreBackupClick())}),z(13,_e,3,3)(14,fe,2,3),r()()()}if(t&2){let e=_();n(2),f(s(3,6,"setup_wizard_restore")),n(3),f(s(6,8,"backup.restore_help_one")),n(4),m("disabled",e.restoreUploading),n(),g(" ",s(11,10,"form.button_back")," "),n(2),m("disabled",e.restoreUploading||!e.selectedFile),n(),T(e.restoreUploading?13:14)}}function we(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_restoring")," ")}function Ce(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_starting")," ")}function be(t,d){t&1&&(l(0),a(1,"translate")),t&2&&g(" ",s(1,1,"setup_wizard_complete")," ")}function xe(t,d){t&1&&(o(0,"a",27),l(1),a(2,"translate"),r()),t&2&&(n(),g(" ",s(2,1,"form.button_continue")," "))}function ve(t,d){if(t&1&&(o(0,"div",5)(1,"h4",6),z(2,we,2,3)(3,Ce,2,3)(4,be,2,3),r(),u(5,"div",26),z(6,xe,3,3,"a",27),r()),t&2){let e=_();n(2),T(e.step==="restoring"?2:e.step==="restarting"?3:e.step==="restore-complete"?4:-1),n(4),T(e.step==="restore-complete"?6:-1)}}function ye(t,d){t&1&&(o(0,"div",5)(1,"h4",28),l(2),a(3,"translate"),r(),o(4,"div",10),l(5),a(6,"translate"),r(),o(7,"a",29),l(8),a(9,"translate"),r()()),t&2&&(n(2),f(s(3,3,"setup_wizard_complete_title")),n(3),f(s(6,5,"setup_wizard_completed")),n(3),g(" ",s(9,7,"form.button_continue")," "))}var He=(()=>{class t{$api=w(ne);$auth=w(oe);$settings=w(re);$title=w(q);$toastr=w(ie);$translate=w(ee);$ws=w(ae);io;step="welcome";backgroundStyle;progress=1;restoreInProgress=!1;restoreStarted=!1;restoreFailed=!1;loading=!1;selectedFile;restoreUploading=!1;createUserForm=new K({username:new $("",[k.required]),password:new $("",[k.compose([k.required,k.minLength(4)])]),passwordConfirm:new $("",[k.required])},this.matchPassword);ngOnInit(){return S(this,null,function*(){this.$title.setTitle(this.$translate.instant("setup_wizard_page_title")),yield this.setBackground()})}onClickGettingStarted(){this.step="create-account",this.progress=50}onClickRestoreBackup(){this.step="restore-backup",this.progress=20}onClickCancelRestore(){this.selectedFile=null,this.step="welcome",this.progress=1}createFirstUser(){return S(this,null,function*(){this.loading=!0,this.progress=75;let e=this.createUserForm.getRawValue();e.name=e.username;try{yield h(this.$api.post("/setup-wizard/create-first-user",e)),this.$settings.env.setupWizardComplete=!0,this.progress=100,this.loading=!1,yield this.$auth.login({username:e.username,password:e.password}),this.step="setup-complete"}catch(p){this.loading=!1,this.progress=50,console.error(p),this.$toastr.error(p.message,this.$translate.instant("toast.title_error"))}})}handleRestoreFileInput(e){e.length?(this.selectedFile=e[0],this.progress=40):(delete this.selectedFile,this.progress=20)}onRestoreBackupClick(){return S(this,null,function*(){this.restoreUploading=!0,this.step="restoring",this.progress=60;try{let e=yield h(this.$api.get("/setup-wizard/get-setup-wizard-token"));window.localStorage.setItem(U.jwt.tokenKey,e.access_token),this.$auth.token=e.access_token,this.progress=65;let p=new FormData;p.append("restoreArchive",this.selectedFile,this.selectedFile.name),yield h(this.$api.post("/backup/restore",p)),this.progress=70,this.io=this.$ws.connectToNamespace("backup");let i=document.getElementById("output");this.io.socket.on("stdout",c=>{c.split(`
|
|
2
2
|
\r`).forEach(v=>{if(v&&!/^[⠇⠏⠋⠙⠹⠸]+$/.test(v)){let y=document.createElement("div"),le=/\x1B\[(\d{1,2}(;\d{1,2})?)?[mGK]/g;y.innerHTML=v.replace(le,""),v.includes("[0;31m")?y.classList.add("red-text"):v.includes("[0;32m")?y.classList.add("green-text"):v.includes("[0;33m")?y.classList.add("orange-text"):v.includes("[0;36m")&&y.classList.add("cyan-text"),i.appendChild(y),i.scrollTop=i.scrollHeight}})}),this.restoreStarted=!0,this.restoreInProgress=!0,this.progress=75,yield h(this.io.request("do-restore")),this.progress=80,this.restoreInProgress=!1,yield h(this.$api.put("/backup/restart",{})),this.step="restarting",this.progress=85,window.localStorage.removeItem(U.jwt.tokenKey),this.$auth.token=null;let F=document.createElement("div");F.classList.add("orange-text"),F.innerHTML="Starting Homebridge, please wait...",i.appendChild(F),i.scrollTop=i.scrollHeight,yield new Promise(c=>setTimeout(c,3e3)),this.progress=88,yield new Promise(c=>setTimeout(c,3e3)),this.progress=91,yield new Promise(c=>setTimeout(c,3e3)),this.progress=94,yield new Promise(c=>setTimeout(c,3e3)),this.progress=97,yield new Promise(c=>setTimeout(c,3e3)),this.progress=99;let se=setInterval(()=>S(this,null,function*(){try{yield h(this.$api.get("/auth/settings")),clearInterval(se),this.progress=100,this.restoreUploading=!1,this.step="restore-complete"}catch{}}),1e3)}catch(e){console.error(e),this.restoreUploading=!1,this.restoreFailed=!0,this.progress=20,this.step="restore-backup",this.$toastr.error(e.message,this.$translate.instant("toast.title_error"))}finally{this.io&&this.io.end()}})}setBackground(){return S(this,null,function*(){if(this.$settings.settingsLoaded||(yield h(this.$settings.onSettingsLoaded)),this.$settings.env.customWallpaperHash){let e=`${U.api.base}/auth/wallpaper/${this.$settings.env.customWallpaperHash}`;this.backgroundStyle=`url('${e}') center/cover`}})}matchPassword(e){let p=e.get("password").value,i=e.get("passwordConfirm").value;if(p!==i)e.get("passwordConfirm").setErrors({matchPassword:!0});else return null}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=V({type:t,selectors:[["ng-component"]],decls:10,vars:14,consts:[[1,"setup-container","gradient","d-flex","align-items-start","justify-content-center",3,"ngStyle","ngClass"],[1,"w-100","setup-card","d-flex","py-4","flex-column"],["ngSrc","assets/homebridge-color-round.svg","alt","Homebridge Logo","height","100","width","100","priority","true",1,"homebridge-logo","mx-auto","my-3"],[1,"progress","w-100","my-4"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","progress-bar-striped","bg-success",3,"ngClass"],[1,"w-100","d-flex","flex-column","align-items-center","mb-2"],[1,"mb-3","text-center"],[1,"mb-4","small","grey-text","text-center",3,"innerHTML"],["type","button",1,"btn","btn-lg","btn-primary","mb-4",3,"click"],["href","javascript:void(0)",1,"grey-text",3,"click"],[1,"mb-4","small","grey-text","text-center"],[1,"w-100"],["novalidate","",3,"ngSubmit","formGroup"],[1,"input-group","mb-4"],[1,"input-group-text","custom-input"],[1,"fas","fa-fw","fa-user","primary-text","fa-lg"],["formControlName","username","type","text","id","form-username","autocomplete","username","autocapitalize","none","tabindex","1","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"fas","fa-fw","fa-lock","primary-text","fa-lg"],["formControlName","password","type","password","id","form-pass","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],["formControlName","passwordConfirm","type","password","id","form-pass-confirm","autocomplete","new-password","tabindex","2","required","",1,"form-control","custom-input",3,"readonly","ngClass","placeholder"],[1,"mt-3","w-100","d-flex","justify-content-between"],["type","button",1,"btn","btn-elegant","ms-0",3,"click","disabled"],["type","submit",1,"btn","btn-primary",3,"disabled"],["type","file","id","restoreFileUpload","accept","application/gzip, .gz",1,"form-control","custom-input","mb-3",3,"change"],["type","button",1,"btn","btn-primary","me-0",3,"click","disabled"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],["id","output",1,"font-monospace","small","alert","alert-info","w-100","text-start","mt-1","mb-0"],["href","/login",1,"btn","btn-lg","btn-primary","mt-4"],[1,"mb-3"],["href","/",1,"btn","btn-lg","btn-primary"]],template:function(p,i){p&1&&(o(0,"div",0)(1,"div",1),u(2,"img",2),o(3,"div",3),u(4,"div",4),r(),z(5,ue,12,12,"div",5)(6,ge,31,39,"div",5)(7,he,15,12,"div",5)(8,ve,7,2,"div",5)(9,ye,10,9,"div",5),r()()),p&2&&(m("ngStyle",B(7,pe,i.backgroundStyle))("ngClass",B(9,de,!i.backgroundStyle)),n(4),O("width",i.progress+"%"),m("ngClass",B(11,ce,i.loading||i.restoreUploading)),M("aria-valuenow",i.progress),n(),T(i.step==="welcome"?5:i.step==="create-account"?6:i.step==="restore-backup"?7:L(13,me).includes(i.step)?8:i.step==="setup-complete"?9:-1))},dependencies:[H,R,Y,A,G,j,D,X,Z,J,Q,N,te],styles:["body{overflow:scroll!important} body.dark-mode .setup-card{background-color:#2b2b2b;color:#fff}.setup-container[_ngcontent-%COMP%]{z-index:-1;padding-top:2em;padding-bottom:2em;min-height:100%;background-size:300% 300%}.anim[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_gradient 20s ease infinite;-moz-animation:gradient 20s ease infinite;-o-animation:gradient 20s ease infinite;animation:_ngcontent-%COMP%_gradient 20s ease infinite}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:0 50%}50%{background-position:100% 50%}to{background-position:0 50%}}.setup-card[_ngcontent-%COMP%]{max-width:550px;border-radius:1rem;padding-right:25px;padding-left:25px;background-color:#ffffffe6}.setup-card[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{background-color:inherit!important}@media screen and (max-width: 575px){.setup-card[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em}}.homebridge-logo[_ngcontent-%COMP%]{margin-bottom:10px}.progress[_ngcontent-%COMP%]{background-color:#ddd}#output[_ngcontent-%COMP%]{height:200px;overflow-y:scroll;white-space:pre-wrap}"]})}return t})();export{He as SetupWizardComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as b}from"./chunk-
|
|
1
|
+
import{e as b}from"./chunk-PRNMO4E2.js";var L=b((p,v)=>{(function(d,r){typeof define=="function"&&define.amd?define([],r):typeof p<"u"?r():(r(),d.FileSaver={})})(p,function(){"use strict";function d(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function r(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function w(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,m=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!m?function(e,t,i){var n=a.URL||a.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin===location.origin?s(o):w(o.href)?r(e,t,i):s(o,o.target="_blank")):(o.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(o.href)},4e4),setTimeout(function(){s(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,i){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(d(e,i),t);else if(w(e))r(e,t,i);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){s(n)})}}:function(e,t,i,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return r(e,t,i);var o=e.type==="application/octet-stream",E=/constructor/i.test(a.HTMLElement)||a.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||o&&E||m)&&typeof FileReader<"u"){var u=new FileReader;u.onloadend=function(){var c=u.result;c=y?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},u.readAsDataURL(e)}else{var h=a.URL||a.webkitURL,f=h.createObjectURL(e);n?n.location=f:location.href=f,n=null,setTimeout(function(){h.revokeObjectURL(f)},4e4)}});a.saveAs=l.saveAs=l,typeof v<"u"&&(v.exports=l)})});export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as f,g as s}from"./chunk-
|
|
1
|
+
import{d as f,g as s}from"./chunk-ZX7APSEP.js";import{k as l,n as u,q as d}from"./chunk-5RJGXU6B.js";import{Xa as a,ea as m,fa as i,h as p,ja as e,w as c}from"./chunk-PRNMO4E2.js";var n=(()=>{class t{$api=e(d);$router=e(f);$toastr=e(u);$translate=e(l);resolve(){return p(this,null,function*(){try{return yield c(this.$api.get("/platform-tools/docker/startup-script"))}catch(r){console.error(r),this.$toastr.error(r.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(o){return new(o||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})();var S=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"startup-script",loadComponent:()=>import("./chunk-SAEPWJ2M.js").then(t=>t.StartupScriptComponent),resolve:{startupScript:n}},{path:"restart-container",loadComponent:()=>import("./chunk-4HPGUKU6.js").then(t=>t.ContainerRestartComponent)}],v=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({imports:[s.forChild(S),s]})}return t})();var T=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=a({type:t});static \u0275inj=i({providers:[n],imports:[v]})}return t})();export{T as DockerModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ea as e,n as r}from"./chunk-
|
|
1
|
+
import{ea as e,n as r}from"./chunk-PRNMO4E2.js";var i=(()=>{class t{raspberryPiThrottled=new r;formAuthEnabled=new r;static \u0275fac=function(o){return new(o||t)};static \u0275prov=e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-F5DKHSVR.js";import"./chunk-ZKU2IWZQ.js";import"./chunk-Z4Y6D7PJ.js";import"./chunk-D2HNCCB6.js";import"./chunk-6DTD6NF3.js";import"./chunk-KCLLEPG3.js";import"./chunk-BLQSJDJX.js";import"./chunk-AMW2QEDC.js";import{g as i}from"./chunk-ZX7APSEP.js";import"./chunk-UWBMJLKP.js";import"./chunk-5RJGXU6B.js";import{Xa as t,fa as e}from"./chunk-PRNMO4E2.js";var u=[{path:"",loadComponent:()=>import("./chunk-RZQTL2Q2.js").then(o=>o.AccessoriesComponent)}],c=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=t({type:o});static \u0275inj=e({imports:[i.forChild(u),i]})}return o})();var l=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=t({type:o});static \u0275inj=e({imports:[s,c]})}return o})();export{l as AccessoriesModule};
|