@wix/cli 1.1.42 → 1.1.43

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.
Files changed (43) hide show
  1. package/build/{LoginCommand-E2VZNV57.js → LoginCommand-CGBFNGX7.js} +2 -2
  2. package/build/{LogoutCommand-EIF7UQCW.js → LogoutCommand-SQMPWE2Z.js} +2 -2
  3. package/build/{chunk-WV6O4I6K.js → chunk-6UKTFHIT.js} +2 -2
  4. package/build/{chunk-66BJ73D4.js → chunk-75LUETYR.js} +2 -2
  5. package/build/{chunk-DZP3GQQE.js → chunk-ACTAIGWA.js} +2 -2
  6. package/build/{chunk-QZRJ54GP.js → chunk-DGQKIB5L.js} +2 -2
  7. package/build/{chunk-CRMNV6TC.js → chunk-DUM2ZCCI.js} +2 -2
  8. package/build/chunk-G55TTMWE.js +6 -0
  9. package/build/chunk-G55TTMWE.js.map +1 -0
  10. package/build/{chunk-UKFNVTCA.js → chunk-PVZF2B55.js} +2 -2
  11. package/build/{chunk-C4YJFHLC.js → chunk-QAAJK3GC.js} +2 -2
  12. package/build/{chunk-C4YJFHLC.js.map → chunk-QAAJK3GC.js.map} +1 -1
  13. package/build/{chunk-HSRXZLET.js → chunk-Y47HDJI3.js} +2 -2
  14. package/build/{dev-4644FK6U.js → dev-TUFLYMKF.js} +2 -2
  15. package/build/index.js +3 -3
  16. package/build/{install-QPOEAL4P.js → install-YEMFIUP5.js} +2 -2
  17. package/build/{preview-LSA35XV3.js → preview-VQZYPOVH.js} +2 -2
  18. package/build/{publish-YARINRCG.js → publish-CK7HEF4E.js} +2 -2
  19. package/build/{render-command-6SU3FDH4.js → render-command-EGV3OP37.js} +2 -2
  20. package/build/{src-D7FRKYAG.js → src-S6J3ZUBK.js} +2 -2
  21. package/build/{sync-types-3VZR22AM.js → sync-types-DRU4GIWT.js} +2 -2
  22. package/build/{uninstall-7RYNGJHY.js → uninstall-S4LM37YV.js} +2 -2
  23. package/build/xdg-open +338 -137
  24. package/package.json +2 -2
  25. package/build/chunk-DWUKJO5Z.js +0 -5
  26. package/build/chunk-DWUKJO5Z.js.map +0 -1
  27. /package/build/{LoginCommand-E2VZNV57.js.map → LoginCommand-CGBFNGX7.js.map} +0 -0
  28. /package/build/{LogoutCommand-EIF7UQCW.js.map → LogoutCommand-SQMPWE2Z.js.map} +0 -0
  29. /package/build/{chunk-WV6O4I6K.js.map → chunk-6UKTFHIT.js.map} +0 -0
  30. /package/build/{chunk-66BJ73D4.js.map → chunk-75LUETYR.js.map} +0 -0
  31. /package/build/{chunk-DZP3GQQE.js.map → chunk-ACTAIGWA.js.map} +0 -0
  32. /package/build/{chunk-QZRJ54GP.js.map → chunk-DGQKIB5L.js.map} +0 -0
  33. /package/build/{chunk-CRMNV6TC.js.map → chunk-DUM2ZCCI.js.map} +0 -0
  34. /package/build/{chunk-UKFNVTCA.js.map → chunk-PVZF2B55.js.map} +0 -0
  35. /package/build/{chunk-HSRXZLET.js.map → chunk-Y47HDJI3.js.map} +0 -0
  36. /package/build/{dev-4644FK6U.js.map → dev-TUFLYMKF.js.map} +0 -0
  37. /package/build/{install-QPOEAL4P.js.map → install-YEMFIUP5.js.map} +0 -0
  38. /package/build/{preview-LSA35XV3.js.map → preview-VQZYPOVH.js.map} +0 -0
  39. /package/build/{publish-YARINRCG.js.map → publish-CK7HEF4E.js.map} +0 -0
  40. /package/build/{render-command-6SU3FDH4.js.map → render-command-EGV3OP37.js.map} +0 -0
  41. /package/build/{src-D7FRKYAG.js.map → src-S6J3ZUBK.js.map} +0 -0
  42. /package/build/{sync-types-3VZR22AM.js.map → sync-types-DRU4GIWT.js.map} +0 -0
  43. /package/build/{uninstall-7RYNGJHY.js.map → uninstall-S4LM37YV.js.map} +0 -0
package/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as Et}from"./chunk-KRD4NQZH.js";import{a as y,b as T,c as xt}from"./chunk-C4YJFHLC.js";import{a as A}from"./chunk-WY4PNXSL.js";import{a as ye}from"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import{a as bt,b as $e}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as vt,i as At}from"./chunk-DWUKJO5Z.js";import{b as gt,e as _t,f as Ct,g as Ot}from"./chunk-PAIXCGVA.js";import{a as B,v as wt}from"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import{c as xe}from"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as V}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{d as mt,h as ht,i as L,j as pt}from"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import{a as G,b as dt,c as ft}from"./chunk-NWTFQJ5S.js";import{a as Ee,c as D,e as j}from"./chunk-XB57BXPK.js";import{a as P,c as w,e as S,g as __dirname,i as m}from"./chunk-UO4ZAUJK.js";var W=w(K=>{"use strict";m();var R=class extends Error{constructor(t,e,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}},J=class extends R{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};K.CommanderError=R;K.InvalidArgumentError=J});var q=w(Y=>{"use strict";m();var{InvalidArgumentError:Ie}=W(),z=class{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,e){return e===this.defaultValue||!Array.isArray(e)?[t]:e.concat(t)}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new Ie(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Fe(o){let t=o.name()+(o.variadic===!0?"...":"");return o.required?"<"+t+">":"["+t+"]"}Y.Argument=z;Y.humanReadableArgName=Fe});var X=w(St=>{"use strict";m();var{humanReadableArgName:Pe}=q(),Q=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(t){let e=t.commands.filter(i=>!i._hidden),n=t._getHelpCommand();return n&&!n._hidden&&e.push(n),this.sortSubcommands&&e.sort((i,r)=>i.name().localeCompare(r.name())),e}compareOptions(t,e){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(t).localeCompare(n(e))}visibleOptions(t){let e=t.options.filter(i=>!i.hidden),n=t._getHelpOption();if(n&&!n.hidden){let i=n.short&&t._findOption(n.short),r=n.long&&t._findOption(n.long);!i&&!r?e.push(n):n.long&&!r?e.push(t.createOption(n.long,n.description)):n.short&&!i&&e.push(t.createOption(n.short,n.description))}return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let e=[];for(let n=t.parent;n;n=n.parent){let i=n.options.filter(r=>!r.hidden);e.push(...i)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(e=>{e.description=e.description||t._argsDescription[e.name()]||""}),t.registeredArguments.find(e=>e.description)?t.registeredArguments:[]}subcommandTerm(t){let e=t.registeredArguments.map(n=>Pe(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce((n,i)=>Math.max(n,e.subcommandTerm(i).length),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce((n,i)=>Math.max(n,e.argumentTerm(i).length),0)}commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let n="";for(let i=t.parent;i;i=i.parent)n=i.name()+" "+n;return n+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let e=[];return t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&e.push(`env: ${t.envVar}`),e.length>0?`${t.description} (${e.join(", ")})`:t.description}argumentDescription(t){let e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){let n=`(${e.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatHelp(t,e){let n=e.padWidth(t,e),i=e.helpWidth||80,r=2,a=2;function l(d,x){if(x){let U=`${d.padEnd(n+a)}${x}`;return e.wrap(U,i-r,n+a)}return d}function s(d){return d.join(`
3
+ import{a as Et}from"./chunk-KRD4NQZH.js";import{a as y,b as T,c as xt}from"./chunk-QAAJK3GC.js";import{a as A}from"./chunk-WY4PNXSL.js";import{a as ye}from"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import{a as bt,b as $e}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as vt,i as At}from"./chunk-G55TTMWE.js";import{b as gt,e as _t,f as Ct,g as Ot}from"./chunk-PAIXCGVA.js";import{a as B,v as wt}from"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import{c as xe}from"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as V}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{d as mt,h as ht,i as L,j as pt}from"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import{a as G,b as dt,c as ft}from"./chunk-NWTFQJ5S.js";import{a as Ee,c as D,e as j}from"./chunk-XB57BXPK.js";import{a as P,c as w,e as S,g as __dirname,i as m}from"./chunk-UO4ZAUJK.js";var W=w(K=>{"use strict";m();var R=class extends Error{constructor(t,e,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}},J=class extends R{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};K.CommanderError=R;K.InvalidArgumentError=J});var q=w(Y=>{"use strict";m();var{InvalidArgumentError:Ie}=W(),z=class{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,e){return e===this.defaultValue||!Array.isArray(e)?[t]:e.concat(t)}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new Ie(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Fe(o){let t=o.name()+(o.variadic===!0?"...":"");return o.required?"<"+t+">":"["+t+"]"}Y.Argument=z;Y.humanReadableArgName=Fe});var X=w(St=>{"use strict";m();var{humanReadableArgName:Pe}=q(),Q=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(t){let e=t.commands.filter(i=>!i._hidden),n=t._getHelpCommand();return n&&!n._hidden&&e.push(n),this.sortSubcommands&&e.sort((i,r)=>i.name().localeCompare(r.name())),e}compareOptions(t,e){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(t).localeCompare(n(e))}visibleOptions(t){let e=t.options.filter(i=>!i.hidden),n=t._getHelpOption();if(n&&!n.hidden){let i=n.short&&t._findOption(n.short),r=n.long&&t._findOption(n.long);!i&&!r?e.push(n):n.long&&!r?e.push(t.createOption(n.long,n.description)):n.short&&!i&&e.push(t.createOption(n.short,n.description))}return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let e=[];for(let n=t.parent;n;n=n.parent){let i=n.options.filter(r=>!r.hidden);e.push(...i)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(e=>{e.description=e.description||t._argsDescription[e.name()]||""}),t.registeredArguments.find(e=>e.description)?t.registeredArguments:[]}subcommandTerm(t){let e=t.registeredArguments.map(n=>Pe(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce((n,i)=>Math.max(n,e.subcommandTerm(i).length),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce((n,i)=>Math.max(n,e.argumentTerm(i).length),0)}commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let n="";for(let i=t.parent;i;i=i.parent)n=i.name()+" "+n;return n+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let e=[];return t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&e.push(`env: ${t.envVar}`),e.length>0?`${t.description} (${e.join(", ")})`:t.description}argumentDescription(t){let e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){let n=`(${e.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatHelp(t,e){let n=e.padWidth(t,e),i=e.helpWidth||80,r=2,a=2;function l(d,x){if(x){let U=`${d.padEnd(n+a)}${x}`;return e.wrap(U,i-r,n+a)}return d}function s(d){return d.join(`
4
4
  `).replace(/^/gm," ".repeat(r))}let c=[`Usage: ${e.commandUsage(t)}`,""],u=e.commandDescription(t);u.length>0&&(c=c.concat([e.wrap(u,i,0),""]));let h=e.visibleArguments(t).map(d=>l(e.argumentTerm(d),e.argumentDescription(d)));h.length>0&&(c=c.concat(["Arguments:",s(h),""]));let p=e.visibleOptions(t).map(d=>l(e.optionTerm(d),e.optionDescription(d)));if(p.length>0&&(c=c.concat(["Options:",s(p),""])),this.showGlobalOptions){let d=e.visibleGlobalOptions(t).map(x=>l(e.optionTerm(x),e.optionDescription(x)));d.length>0&&(c=c.concat(["Global Options:",s(d),""]))}let _=e.visibleCommands(t).map(d=>l(e.subcommandTerm(d),e.subcommandDescription(d)));return _.length>0&&(c=c.concat(["Commands:",s(_),""])),c.join(`
5
5
  `)}padWidth(t,e){return Math.max(e.longestOptionTermLength(t,e),e.longestGlobalOptionTermLength(t,e),e.longestSubcommandTermLength(t,e),e.longestArgumentTermLength(t,e))}wrap(t,e,n,i=40){let r=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",a=new RegExp(`[\\n][${r}]+`);if(t.match(a))return t;let l=e-n;if(l<i)return t;let s=t.slice(0,n),c=t.slice(n).replace(`\r
6
6
  `,`
@@ -23,7 +23,7 @@ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[t]?this._life
23
23
  Expecting one of '${n.join("', '")}'`);let i=`${t}Help`;return this.on(i,r=>{let a;typeof e=="function"?a=e({error:r.error,command:r.command}):a=e,a&&r.write(`${a}
24
24
  `)}),this}_outputHelpIfRequested(t){let e=this._getHelpOption();e&&t.find(i=>e.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function It(o){return o.map(t=>{if(!t.startsWith("--inspect"))return t;let e,n="127.0.0.1",i="9229",r;return(r=t.match(/^(--inspect(-brk)?)$/))!==null?e=r[1]:(r=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(e=r[1],/^\d+$/.test(r[3])?i=r[3]:n=r[3]):(r=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(e=r[1],n=r[3],i=r[4]),e&&i!=="0"?`${e}=${n}:${parseInt(i)+1}`:t})}Ft.Command=st});var Mt=w(O=>{"use strict";m();var{Argument:Dt}=q(),{Command:at}=Pt(),{CommanderError:Be,InvalidArgumentError:jt}=W(),{Help:Je}=X(),{Option:Wt}=nt();O.program=new at;O.createCommand=o=>new at(o);O.createOption=(o,t)=>new Wt(o,t);O.createArgument=(o,t)=>new Dt(o,t);O.Command=at;O.Option=Wt;O.Argument=Dt;O.Help=Je;O.CommanderError=Be;O.InvalidArgumentError=jt;O.InvalidOptionArgumentError=jt});var Rt=w((C,Lt)=>{"use strict";m();var v=Mt();C=Lt.exports={};C.program=new v.Command;C.Argument=v.Argument;C.Command=v.Command;C.CommanderError=v.CommanderError;C.Help=v.Help;C.InvalidArgumentError=v.InvalidArgumentError;C.InvalidOptionArgumentError=v.InvalidArgumentError;C.Option=v.Option;C.createCommand=o=>new v.Command(o);C.createOption=(o,t)=>new v.Option(o,t);C.createArgument=(o,t)=>new v.Argument(o,t)});var Xt=w((qi,Qt)=>{"use strict";m();var Ke=$e();Qt.exports=o=>typeof o=="string"?o.replace(Ke(),""):o});var ut=w((Ui,Zt)=>{"use strict";m();var ze=Xt(),Ye=ye();Zt.exports=function(o){return Ye(ze(o))}});var te=w((Bi,k)=>{"use strict";m();var E=ut();function N(o,t){return Array.apply(null,{length:t+1}).join(o).slice(0,t)}function Qe(o,t,e){o=o??"",o=String(o);var n=t-E(o);return n<=0?o:o+N(e||" ",n)}function Xe(o,t,e){o=o??"",o=String(o);var n=t-E(o);if(n<=0)return o;var i=Math.floor(n/2),r=n-i;return N(e||" ",i)+o+N(e||" ",r)}function Ze(o,t,e){o=o??"",o=String(o);var n=t-E(o);return n<=0?o:N(e||" ",n)+o}function tn(o,t){function e(n,i){return n.trim().split(" ").reduce(function(r,a){var l=r[r.length-1];return l&&E(l.join(" "))+E(a)<i?r[r.length-1].push(a):r.push([a]),r},[]).map(function(r){return r.join(" ")})}return o.split(`
25
25
  `).map(function(n){return e(n,t)}).reduce(function(n,i){return n.concat(i)},[])}function en(o,t,e){o=o.trim();for(var n=[],i=o.split(" "),r="",a=E(e);r||i.length;){if(r){var l=r;r=""}else var l=i.shift();if(E(l)>t){for(var s=0,c=0,u=t-a;s<l.length;){var h=E(l.charAt(s));if(h+c>u)break;c+=h,++s}r=l.slice(s),l=l.slice(0,s),l+=e}n.push(l)}return n.join(" ")}function nn(o,t){if(o=o??"",o=String(o),t==1/0)return o;for(var e=0,n=0;e<o.length;){var i=E(o.charAt(e));if(i+n>t)break;n+=i,++e}return o.slice(0,e)}k.exports.padRight=Qe;k.exports.padCenter=Xe;k.exports.padLeft=Ze;k.exports.splitIntoLines=tn;k.exports.splitLongWords=en;k.exports.truncateString=nn});var oe=w((Ki,re)=>{"use strict";m();var lt=ut(),F=te(),rn=F.padRight,on=F.padCenter,sn=F.padLeft,ee=F.splitIntoLines,an=F.splitLongWords,cn=F.truncateString,ie=function(t){return t.toUpperCase()},un=function(t,e,n){return t},ln=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:ie,dataTransform:un});re.exports=function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=t.config||{};delete t.config;var n=t.maxLineWidth||1/0;n==="auto"&&(n=process.stdout.columns||1/0),delete t.maxLineWidth,t=ne({},ln,t),t.config=t.config||Object.create(null),t.spacing=t.spacing||`
26
- `,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var i=t.columns||[];o=dn(o,i),i.length||o.forEach(function(s){for(var c in s)i.indexOf(c)===-1&&i.push(c)});var r=i.reduce(function(s,c){var u=Object.create(t);return s[c]=ne(u,e[c]),s},Object.create(null));i.forEach(function(s){var c=r[s];c.name=s,c.maxWidth=Math.ceil(c.maxWidth),c.minWidth=Math.ceil(c.minWidth),c.truncate=!!c.truncate,c.align=c.align||"left"}),o=o.map(function(s){var c=Object.create(null);return i.forEach(function(u){c[u]=s[u]!=null?s[u]:"",c[u]=""+c[u],r[u].preserveNewLines?c[u]=c[u].replace(/[^\S\n]/gmi," "):c[u]=c[u].replace(/\s/gmi," ")}),c}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=Object.create(c);u[s]=c.dataTransform(u[s],p,h);var _=Object.keys(p);if(_.indexOf("name")!==-1){if(c.headingTransform!==ie)return;c.headingTransform=function(d){return d}}return _.forEach(function(d){return c[d]=p[d]}),u})});var a={};t.showHeaders&&(i.forEach(function(s){var c=r[s];if(!c.showHeaders){a[s]="";return}a[s]=c.headingTransform(c.name)}),o.unshift(a)),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s]}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,lt(h))))},0)}),i.forEach(function(s){var c=r[s];o=o.map(function(u){return u[s]=an(u[s],c.width,c.truncateMarker),u})}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=u[s];if(u[s]=ee(p,c.width),c.truncate&&u[s].length>1){u[s]=ee(p,c.width-lt(c.truncateMarker));var _=u[s][0];pn(_,c.truncateMarker)||(u[s][0]+=c.truncateMarker),u[s]=u[s].slice(0,1)}return u})}),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s].reduce(function(h,p){return h>=c.maxWidth?h:Math.max(h,Math.min(c.maxWidth,Math.max(c.minWidth,lt(p))))},0)}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,h)))},0)});var l=mn(o,r,i,t.paddingChr);return l.reduce(function(s,c){return s.concat(c.reduce(function(u,h){return u.concat(h.join(t.columnSplitter))},[]))},[]).map(function(s){return cn(s,n)}).join(t.spacing)};function mn(o,t,e,n){return o.map(function(i){var r=[],a=0;e.forEach(function(c){a=Math.max(a,i[c].length)});for(var l=function(u){r[u]=r[u]||[],e.forEach(function(h){var p=t[h],_=i[h][u]||"";p.align==="right"?r[u].push(sn(_,p.width,n)):p.align==="center"||p.align==="centre"?r[u].push(on(_,p.width,n)):r[u].push(rn(_,p.width,n))})},s=0;s<a;s++)l(s);return r})}function ne(){return Object.assign?Object.assign.apply(Object,arguments):hn.apply(void 0,arguments)}function hn(o,t){"use strict";if(o==null)throw new TypeError("Cannot convert first argument to object");for(var e=Object(o),n=!1,i,r=1;r<arguments.length;r++){var a=arguments[r];if(a!=null){for(var l=Object.keys(Object(a)),s=0,c=l.length;s<c;s++){var u=l[s];try{var h=Object.getOwnPropertyDescriptor(a,u);h!==void 0&&h.enumerable&&(e[u]=a[u])}catch(p){n||(n=!0,i=p)}}if(n)throw i}}return e}function pn(o,t,e){e=e||o.length,e=e-t.length;var n=o.lastIndexOf(t);return n!==-1&&n===e}function dn(o,t){if(Array.isArray(o))return o;var e=[];for(var n in o){var i={};i[t[0]||"key"]=n,i[t[1]||"value"]=o[n],e.push(i)}return e}});m();import{cwd as On}from"node:process";m();import{cwd as Se}from"node:process";import{join as ke}from"node:path";var yt=S(Ee(),1);var He=G.object({deprecated:G.string().optional()});async function $t(o){let t=null;try{let{version:e,name:n}=T,i=Ct({filePath:_t(ke(__dirname,".."),ht)}),r=await i.get();t=Ve(r),t||(t={...await Te({packageName:n,packageVersion:e})},await i.set(t))}catch(e){let n=new D({code:j.FailedToCheckDeprecatedStatus(),cause:e});o.reportError(n),gt(L(Se()),n)}if(t?.deprecated)throw new D({code:j.DeprecatedVersion({currentVersion:T.version})})}function Ve(o){return(0,yt.match)(o,{Exists:({data:t})=>{let e=He.safeParse(t);return e.success?e.data:null},NotExists:()=>null})}async function Te({packageName:o,packageVersion:t}){let e=dt(),n=bt(o,{version:t,registryUrl:e.registryUrl}),i=await At(n,{milliseconds:5e3,message:"Reached timeout while fetching Wix CLI package details"});if(i instanceof Error)throw i;return{deprecated:i.deprecated}}m();m();var qt=S(Rt(),1),{program:Xn,createCommand:g,createArgument:Zn,createOption:ti,CommanderError:ei,InvalidArgumentError:ni,InvalidOptionArgumentError:ii,Command:Nt,Argument:Ut,Option:I,Help:ri}=qt.default;m();m();m();var Gt=(o,t)=>{let e=A();return g("dev").option("-s, --https",e("site_dev_command_def.option.https")).addOption(new I("-w, --experimental-wml","experimental export/import using WML").hideHelp()).description(e("site_dev_command_def.description")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-GNB45EMQ.js"),{dev:a}=await import("./dev-4644FK6U.js");await r(i,o,t,()=>a(o,n))})};m();var Bt=(o,t)=>{let e=A();return g("install").description(e("site_install_command_def.description")).argument("[package]",e("site_install_command_def.argument.package")).option("--yarn",e("site_install_command_def.option.yarn")).option("--npm",e("site_install_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-GNB45EMQ.js"),{install:l}=await import("./install-QPOEAL4P.js");await a(r,o,t,()=>l(o,i,n))})};m();var Jt=(o,t)=>{let e=A();return g("preview").description(e("site_preview_command_def.description")).addOption(new I("--source <local|remote>",e("site_preview_command_def.option.source")).choices(["local","remote"])).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-GNB45EMQ.js"),{preview:a}=await import("./preview-LSA35XV3.js");await r(i,o,t,()=>a(o,n))})};m();var Kt=(o,t)=>{let e=A();return g("publish").description(e("site_publish_command_def.description")).addOption(new I("--source <local|remote>",e("site_publish_command_def.option.source")).choices(["local","remote"])).option("-y, --approve-preview",e("site_publish_command_def.option.approve_preview")).option("-f, --force",e("site_publish_command_def.option.force")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-GNB45EMQ.js"),{publish:a}=await import("./publish-YARINRCG.js");await r(i,o,t,()=>a(o,n))})};m();var zt=(o,t)=>g("sync-types").action(async(e,n)=>{let{runCommand:i}=await import("./run-command-GNB45EMQ.js"),{syncTypes:r}=await import("./sync-types-3VZR22AM.js");await i(n,o,t,()=>r(o))});m();var Yt=(o,t)=>{let e=A();return g("uninstall").description(e("site_uninstall_command_def.description")).argument("<package>",e("site_uninstall_command_def.argument.package")).option("--yarn",e("site_uninstall_command_def.option.yarn")).option("--npm",e("site_uninstall_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-GNB45EMQ.js"),{uninstall:l}=await import("./uninstall-7RYNGJHY.js");await a(r,o,t,()=>l(o,i,n))})};var ct=async function(t,e){return g("site").addCommand(Gt(t,e)).addCommand(Bt(t,e)).addCommand(Jt(t,e)).addCommand(Kt(t,e)).addCommand(zt(t,e),{hidden:!0}).addCommand(Yt(t,e))};m();import{EOL as $}from"node:os";var ae=S(oe(),1);m();var se="https://wix.to/YASTRGa";var ce={commandUsage(o){return`${V.bold(o.name())} ${o.usage()}`},sortSubcommands:!0,sortOptions:!0,formatHelp(o,t){let e=`${V.dim("Usage:")}
26
+ `,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var i=t.columns||[];o=dn(o,i),i.length||o.forEach(function(s){for(var c in s)i.indexOf(c)===-1&&i.push(c)});var r=i.reduce(function(s,c){var u=Object.create(t);return s[c]=ne(u,e[c]),s},Object.create(null));i.forEach(function(s){var c=r[s];c.name=s,c.maxWidth=Math.ceil(c.maxWidth),c.minWidth=Math.ceil(c.minWidth),c.truncate=!!c.truncate,c.align=c.align||"left"}),o=o.map(function(s){var c=Object.create(null);return i.forEach(function(u){c[u]=s[u]!=null?s[u]:"",c[u]=""+c[u],r[u].preserveNewLines?c[u]=c[u].replace(/[^\S\n]/gmi," "):c[u]=c[u].replace(/\s/gmi," ")}),c}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=Object.create(c);u[s]=c.dataTransform(u[s],p,h);var _=Object.keys(p);if(_.indexOf("name")!==-1){if(c.headingTransform!==ie)return;c.headingTransform=function(d){return d}}return _.forEach(function(d){return c[d]=p[d]}),u})});var a={};t.showHeaders&&(i.forEach(function(s){var c=r[s];if(!c.showHeaders){a[s]="";return}a[s]=c.headingTransform(c.name)}),o.unshift(a)),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s]}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,lt(h))))},0)}),i.forEach(function(s){var c=r[s];o=o.map(function(u){return u[s]=an(u[s],c.width,c.truncateMarker),u})}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=u[s];if(u[s]=ee(p,c.width),c.truncate&&u[s].length>1){u[s]=ee(p,c.width-lt(c.truncateMarker));var _=u[s][0];pn(_,c.truncateMarker)||(u[s][0]+=c.truncateMarker),u[s]=u[s].slice(0,1)}return u})}),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s].reduce(function(h,p){return h>=c.maxWidth?h:Math.max(h,Math.min(c.maxWidth,Math.max(c.minWidth,lt(p))))},0)}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,h)))},0)});var l=mn(o,r,i,t.paddingChr);return l.reduce(function(s,c){return s.concat(c.reduce(function(u,h){return u.concat(h.join(t.columnSplitter))},[]))},[]).map(function(s){return cn(s,n)}).join(t.spacing)};function mn(o,t,e,n){return o.map(function(i){var r=[],a=0;e.forEach(function(c){a=Math.max(a,i[c].length)});for(var l=function(u){r[u]=r[u]||[],e.forEach(function(h){var p=t[h],_=i[h][u]||"";p.align==="right"?r[u].push(sn(_,p.width,n)):p.align==="center"||p.align==="centre"?r[u].push(on(_,p.width,n)):r[u].push(rn(_,p.width,n))})},s=0;s<a;s++)l(s);return r})}function ne(){return Object.assign?Object.assign.apply(Object,arguments):hn.apply(void 0,arguments)}function hn(o,t){"use strict";if(o==null)throw new TypeError("Cannot convert first argument to object");for(var e=Object(o),n=!1,i,r=1;r<arguments.length;r++){var a=arguments[r];if(a!=null){for(var l=Object.keys(Object(a)),s=0,c=l.length;s<c;s++){var u=l[s];try{var h=Object.getOwnPropertyDescriptor(a,u);h!==void 0&&h.enumerable&&(e[u]=a[u])}catch(p){n||(n=!0,i=p)}}if(n)throw i}}return e}function pn(o,t,e){e=e||o.length,e=e-t.length;var n=o.lastIndexOf(t);return n!==-1&&n===e}function dn(o,t){if(Array.isArray(o))return o;var e=[];for(var n in o){var i={};i[t[0]||"key"]=n,i[t[1]||"value"]=o[n],e.push(i)}return e}});m();import{cwd as On}from"node:process";m();import{cwd as Se}from"node:process";import{join as ke}from"node:path";var yt=S(Ee(),1);var He=G.object({deprecated:G.string().optional()});async function $t(o){let t=null;try{let{version:e,name:n}=T,i=Ct({filePath:_t(ke(__dirname,".."),ht)}),r=await i.get();t=Ve(r),t||(t={...await Te({packageName:n,packageVersion:e})},await i.set(t))}catch(e){let n=new D({code:j.FailedToCheckDeprecatedStatus(),cause:e});o.reportError(n),gt(L(Se()),n)}if(t?.deprecated)throw new D({code:j.DeprecatedVersion({currentVersion:T.version})})}function Ve(o){return(0,yt.match)(o,{Exists:({data:t})=>{let e=He.safeParse(t);return e.success?e.data:null},NotExists:()=>null})}async function Te({packageName:o,packageVersion:t}){let e=dt(),n=bt(o,{version:t,registryUrl:e.registryUrl}),i=await At(n,{milliseconds:5e3,message:"Reached timeout while fetching Wix CLI package details"});if(i instanceof Error)throw i;return{deprecated:i.deprecated}}m();m();var qt=S(Rt(),1),{program:Xn,createCommand:g,createArgument:Zn,createOption:ti,CommanderError:ei,InvalidArgumentError:ni,InvalidOptionArgumentError:ii,Command:Nt,Argument:Ut,Option:I,Help:ri}=qt.default;m();m();m();var Gt=(o,t)=>{let e=A();return g("dev").option("-s, --https",e("site_dev_command_def.option.https")).addOption(new I("-w, --experimental-wml","experimental export/import using WML").hideHelp()).description(e("site_dev_command_def.description")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-GNB45EMQ.js"),{dev:a}=await import("./dev-TUFLYMKF.js");await r(i,o,t,()=>a(o,n))})};m();var Bt=(o,t)=>{let e=A();return g("install").description(e("site_install_command_def.description")).argument("[package]",e("site_install_command_def.argument.package")).option("--yarn",e("site_install_command_def.option.yarn")).option("--npm",e("site_install_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-GNB45EMQ.js"),{install:l}=await import("./install-YEMFIUP5.js");await a(r,o,t,()=>l(o,i,n))})};m();var Jt=(o,t)=>{let e=A();return g("preview").description(e("site_preview_command_def.description")).addOption(new I("--source <local|remote>",e("site_preview_command_def.option.source")).choices(["local","remote"])).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-GNB45EMQ.js"),{preview:a}=await import("./preview-VQZYPOVH.js");await r(i,o,t,()=>a(o,n))})};m();var Kt=(o,t)=>{let e=A();return g("publish").description(e("site_publish_command_def.description")).addOption(new I("--source <local|remote>",e("site_publish_command_def.option.source")).choices(["local","remote"])).option("-y, --approve-preview",e("site_publish_command_def.option.approve_preview")).option("-f, --force",e("site_publish_command_def.option.force")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-GNB45EMQ.js"),{publish:a}=await import("./publish-CK7HEF4E.js");await r(i,o,t,()=>a(o,n))})};m();var zt=(o,t)=>g("sync-types").action(async(e,n)=>{let{runCommand:i}=await import("./run-command-GNB45EMQ.js"),{syncTypes:r}=await import("./sync-types-DRU4GIWT.js");await i(n,o,t,()=>r(o))});m();var Yt=(o,t)=>{let e=A();return g("uninstall").description(e("site_uninstall_command_def.description")).argument("<package>",e("site_uninstall_command_def.argument.package")).option("--yarn",e("site_uninstall_command_def.option.yarn")).option("--npm",e("site_uninstall_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-GNB45EMQ.js"),{uninstall:l}=await import("./uninstall-S4LM37YV.js");await a(r,o,t,()=>l(o,i,n))})};var ct=async function(t,e){return g("site").addCommand(Gt(t,e)).addCommand(Bt(t,e)).addCommand(Jt(t,e)).addCommand(Kt(t,e)).addCommand(zt(t,e),{hidden:!0}).addCommand(Yt(t,e))};m();import{EOL as $}from"node:os";var ae=S(oe(),1);m();var se="https://wix.to/YASTRGa";var ce={commandUsage(o){return`${V.bold(o.name())} ${o.usage()}`},sortSubcommands:!0,sortOptions:!0,formatHelp(o,t){let e=`${V.dim("Usage:")}
27
27
  ${t.commandUsage(o)}`,n=t.visibleCommands(o).map(h=>({term:h.name(),usage:h.usage(),description:t.commandDescription(h)})),i=t.visibleOptions(o).map(h=>({term:t.optionTerm(h),description:t.optionDescription(h)})),r=(0,ae.default)([...n,...i],{showHeaders:!1,columnSplitter:" "}).split($).map(h=>` ${h}`),a=r.splice(n.length),l=r,s=`${V.dim("Commands:")}${$}${l.join($)}`,c=`${V.dim("Options:")}${$}${a.join($)}`,u=`${V.dim("Learn More:")}
28
- Learn more at ${se}${$}`;return`${[e,s,c,u].join($.repeat(2))}${$}`}};m();var le=S(B(),1);m();function H(){return wt(Et)}function ue(){let o=H();return o.t.bind(o)}var me=o=>{let t=H();return g("login").description(t.t("login_command.description")).option("--api-key <token>",t.t("login_command.option.api_key")).action(async(e,n)=>{let{apiKey:i}=e,{getUserInfo:r}=await import("./src-D7FRKYAG.js"),{LoginCommand:a}=await import("./LoginCommand-E2VZNV57.js"),{renderCommand:l}=await import("./render-command-6SU3FDH4.js"),s=await r();await l(n,o,le.default.createElement(a,{apiKeyToken:i,userInfo:s}))})};m();var he=S(B(),1);var pe=o=>{let t=H();return g("whoami").description(t.t("whoami_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-D7FRKYAG.js"),{WhoamiCommand:r}=await import("./WhoamiCommand-ZDSABBMG.js"),{renderCommand:a}=await import("./render-command-6SU3FDH4.js"),l=await i();await a(n,o,he.default.createElement(r,{userInfo:l}))})};m();var de=S(B(),1);var fe=o=>{let t=H();return g("logout").description(t.t("logout_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-D7FRKYAG.js"),{LogoutCommand:r}=await import("./LogoutCommand-EIF7UQCW.js"),{renderCommand:a}=await import("./render-command-6SU3FDH4.js"),l=await i();await a(n,o,de.default.createElement(r,{userInfo:l}))})};m();var ge=()=>{let o=ue();return g("telemetry").description(o("telemetry_command.description")).addArgument(new Ut("<state>","").choices(["on","off"])).action(async t=>{let{updateUserConfig:e}=await import("./src-CCWGRSX4.js"),{CliError:n,CliErrorCode:i}=await import("./src-MRLKTCAZ.js"),{createLogger:r}=await import("./src-ZUXRDORN.js"),a=r();try{await e({telemetry:t==="on"}),a.log(o("telemetry_command.state_updated",{state:t}))}catch(l){throw new n({code:i.FailedToUpdateTelemetryConfig(),cause:l})}})};m();var _e=S(xe(),1);import{cwd as fn}from"node:process";import{createRequire as gn}from"node:module";import{join as _n}from"node:path";import{pathToFileURL as Cn}from"node:url";var Ce=gn(_n(fn(),"dummy.js"));async function we(){try{let o=Ce.resolve("@wix/cli-app");return wn(),await import(Cn(o).href)}catch(o){if(o instanceof Error&&"code"in o&&o.code==="MODULE_NOT_FOUND")return null;throw o}}function wn(){let o=Ce("@wix/cli-app/package.json").version;if((0,_e.default)(o)===null&&y!==o)throw new D({code:j.CliAppVersionMismatch({cliVersion:y,cliAppVersion:o})})}async function Oe(o,t){let e=new Nt;e.name("wix"),e.version(y,"-v, --version","Output the version number"),e.enablePositionalOptions(!0),e.helpOption("-h, --help","Display help for command"),e.addHelpCommand(!1),e.configureHelp(ce);let n=await we();return n&&e.addCommand(await n.getRootCommand({biLogger:t,errorReporter:o},y)),(await ct({biLogger:t,errorReporter:o},y)).commands.forEach(r=>{e.addCommand(r)}),e.addCommand(me({errorReporter:o,biLogger:t})).addCommand(pe({errorReporter:o,biLogger:t})).addCommand(fe({errorReporter:o,biLogger:t})).addCommand(ge()),e}m();var ve=o=>o.parent?`${ve(o.parent)} ${o.name()}`.trim():o.name();function Ae(o,{errorReporter:t}){o.hook("preAction",(e,n)=>{let i=ve(n);t.setContext("command info",{command:i,opts:n.opts(),args:n.args})})}ft();var be=On();async function vn(){let{default:o}=await import("./update-notifier-LCY3CRNY.js");o({pkg:T,updateCheckInterval:864e5,shouldNotifyInNpmScript:!0}).notify()}function An(){let{handler:o,errorReporter:t,registerToProcessErrors:e}=Ot({dsn:mt,release:T.version,debugOutputPath:L(be),userFeedbackCachePath:pt(be)});return e(),{errorHandler:o,errorReporter:t}}var{errorHandler:bn,errorReporter:M}=An();try{let o=await vt();o&&M.setUser({id:o.userId});let{biLogger:t}=await xt(M,o?.userId);await vn(),await $t(M);let e=await Oe(M,t);Ae(e,{errorReporter:M}),await e.parseAsync()}catch(o){bn({error:o})}
28
+ Learn more at ${se}${$}`;return`${[e,s,c,u].join($.repeat(2))}${$}`}};m();var le=S(B(),1);m();function H(){return wt(Et)}function ue(){let o=H();return o.t.bind(o)}var me=o=>{let t=H();return g("login").description(t.t("login_command.description")).option("--api-key <token>",t.t("login_command.option.api_key")).action(async(e,n)=>{let{apiKey:i}=e,{getUserInfo:r}=await import("./src-S6J3ZUBK.js"),{LoginCommand:a}=await import("./LoginCommand-CGBFNGX7.js"),{renderCommand:l}=await import("./render-command-EGV3OP37.js"),s=await r();await l(n,o,le.default.createElement(a,{apiKeyToken:i,userInfo:s}))})};m();var he=S(B(),1);var pe=o=>{let t=H();return g("whoami").description(t.t("whoami_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-S6J3ZUBK.js"),{WhoamiCommand:r}=await import("./WhoamiCommand-ZDSABBMG.js"),{renderCommand:a}=await import("./render-command-EGV3OP37.js"),l=await i();await a(n,o,he.default.createElement(r,{userInfo:l}))})};m();var de=S(B(),1);var fe=o=>{let t=H();return g("logout").description(t.t("logout_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-S6J3ZUBK.js"),{LogoutCommand:r}=await import("./LogoutCommand-SQMPWE2Z.js"),{renderCommand:a}=await import("./render-command-EGV3OP37.js"),l=await i();await a(n,o,de.default.createElement(r,{userInfo:l}))})};m();var ge=()=>{let o=ue();return g("telemetry").description(o("telemetry_command.description")).addArgument(new Ut("<state>","").choices(["on","off"])).action(async t=>{let{updateUserConfig:e}=await import("./src-CCWGRSX4.js"),{CliError:n,CliErrorCode:i}=await import("./src-MRLKTCAZ.js"),{createLogger:r}=await import("./src-ZUXRDORN.js"),a=r();try{await e({telemetry:t==="on"}),a.log(o("telemetry_command.state_updated",{state:t}))}catch(l){throw new n({code:i.FailedToUpdateTelemetryConfig(),cause:l})}})};m();var _e=S(xe(),1);import{cwd as fn}from"node:process";import{createRequire as gn}from"node:module";import{join as _n}from"node:path";import{pathToFileURL as Cn}from"node:url";var Ce=gn(_n(fn(),"dummy.js"));async function we(){try{let o=Ce.resolve("@wix/cli-app");return wn(),await import(Cn(o).href)}catch(o){if(o instanceof Error&&"code"in o&&o.code==="MODULE_NOT_FOUND")return null;throw o}}function wn(){let o=Ce("@wix/cli-app/package.json").version;if((0,_e.default)(o)===null&&y!==o)throw new D({code:j.CliAppVersionMismatch({cliVersion:y,cliAppVersion:o})})}async function Oe(o,t){let e=new Nt;e.name("wix"),e.version(y,"-v, --version","Output the version number"),e.enablePositionalOptions(!0),e.helpOption("-h, --help","Display help for command"),e.addHelpCommand(!1),e.configureHelp(ce);let n=await we();return n&&e.addCommand(await n.getRootCommand({biLogger:t,errorReporter:o},y)),(await ct({biLogger:t,errorReporter:o},y)).commands.forEach(r=>{e.addCommand(r)}),e.addCommand(me({errorReporter:o,biLogger:t})).addCommand(pe({errorReporter:o,biLogger:t})).addCommand(fe({errorReporter:o,biLogger:t})).addCommand(ge()),e}m();var ve=o=>o.parent?`${ve(o.parent)} ${o.name()}`.trim():o.name();function Ae(o,{errorReporter:t}){o.hook("preAction",(e,n)=>{let i=ve(n);t.setContext("command info",{command:i,opts:n.opts(),args:n.args})})}ft();var be=On();async function vn(){let{default:o}=await import("./update-notifier-LCY3CRNY.js");o({pkg:T,updateCheckInterval:864e5,shouldNotifyInNpmScript:!0}).notify()}function An(){let{handler:o,errorReporter:t,registerToProcessErrors:e}=Ot({dsn:mt,release:T.version,debugOutputPath:L(be),userFeedbackCachePath:pt(be)});return e(),{errorHandler:o,errorReporter:t}}var{errorHandler:bn,errorReporter:M}=An();try{let o=await vt();o&&M.setUser({id:o.userId});let{biLogger:t}=await xt(M,o?.userId);await vn(),await $t(M);let e=await Oe(M,t);Ae(e,{errorReporter:M}),await e.parseAsync()}catch(o){bn({error:o})}
29
29
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as h,b as C,c as D,d as j,f as N}from"./chunk-66BJ73D4.js";import"./chunk-DZP3GQQE.js";import{b as P}from"./chunk-WV6O4I6K.js";import"./chunk-6TDWVLRD.js";import{a as I}from"./chunk-HSRXZLET.js";import{a as y,b as u,c as m,d as w}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as f}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import"./chunk-DWUKJO5Z.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import{b as g,c as d}from"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{c,e as s}from"./chunk-XB57BXPK.js";import{i as t}from"./chunk-UO4ZAUJK.js";t();t();import{cwd as E}from"node:process";t();async function x(e,o,n,a,r){let i;try{e?(i=r.logDependencyInstalling(e,null),await j(e,null,o.projectFolder,a)):(i=r.logAllDependenciesInstalling(),await N(o.projectFolder,a)),await D(o.projectFolder,{authState:n})}finally{i&&i()}}t();import{unlink as k}from"node:fs/promises";t();async function M(e){let o=await g(m(e));try{return u.parse(o)}catch(n){throw new c({code:s.InvalidVeloConfigJson({configFilename:y,cause:n})})}}var A=async(e,o)=>{let n=m(e);if(await d(n))try{o.logMigratingToAnyNpm();let a=await M(e);await C(e,a),await k(n),o.logMigrationToAnyNpmCompletedSuccessfully()}catch(a){throw o.logMigrationToAnyNpmFailed(a),a}};async function T({biLogger:e,errorReporter:o},n,a){let r=await w(E()),i=await I({metaSiteId:r.metaSiteId,biLogger:e,errorReporter:o}),F=f(),p=P({t:F}),S=a?.trim()??null,l;n.yarn?l="yarn":n.npm?l="npm":l=await h(r.projectFolder),await A(r.projectFolder,p),await x(S,r,i,l,p)}export{T as install};
4
- //# sourceMappingURL=install-QPOEAL4P.js.map
3
+ import{a as h,b as C,c as D,d as j,f as N}from"./chunk-75LUETYR.js";import"./chunk-ACTAIGWA.js";import{b as P}from"./chunk-6UKTFHIT.js";import"./chunk-6TDWVLRD.js";import{a as I}from"./chunk-Y47HDJI3.js";import{a as y,b as u,c as m,d as w}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as f}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import"./chunk-G55TTMWE.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import{b as g,c as d}from"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{c,e as s}from"./chunk-XB57BXPK.js";import{i as t}from"./chunk-UO4ZAUJK.js";t();t();import{cwd as E}from"node:process";t();async function x(e,o,n,a,r){let i;try{e?(i=r.logDependencyInstalling(e,null),await j(e,null,o.projectFolder,a)):(i=r.logAllDependenciesInstalling(),await N(o.projectFolder,a)),await D(o.projectFolder,{authState:n})}finally{i&&i()}}t();import{unlink as k}from"node:fs/promises";t();async function M(e){let o=await g(m(e));try{return u.parse(o)}catch(n){throw new c({code:s.InvalidVeloConfigJson({configFilename:y,cause:n})})}}var A=async(e,o)=>{let n=m(e);if(await d(n))try{o.logMigratingToAnyNpm();let a=await M(e);await C(e,a),await k(n),o.logMigrationToAnyNpmCompletedSuccessfully()}catch(a){throw o.logMigrationToAnyNpmFailed(a),a}};async function T({biLogger:e,errorReporter:o},n,a){let r=await w(E()),i=await I({metaSiteId:r.metaSiteId,biLogger:e,errorReporter:o}),F=f(),p=P({t:F}),S=a?.trim()??null,l;n.yarn?l="yarn":n.npm?l="npm":l=await h(r.projectFolder),await A(r.projectFolder,p),await x(S,r,i,l,p)}export{T as install};
4
+ //# sourceMappingURL=install-YEMFIUP5.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as b,b as _,e as a,f as h}from"./chunk-UKFNVTCA.js";import{f as w,i as s}from"./chunk-CRMNV6TC.js";import"./chunk-DZP3GQQE.js";import{b as d}from"./chunk-WV6O4I6K.js";import"./chunk-6TDWVLRD.js";import{a as v}from"./chunk-HSRXZLET.js";import{d as n}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as l}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import"./chunk-DWUKJO5Z.js";import{b as p}from"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{i as c}from"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import{e as C,i as t}from"./chunk-UO4ZAUJK.js";t();t();import{cwd as x,exit as D}from"node:process";var f=C(b(),1);async function I({biLogger:u,errorReporter:g},m){let r=await n(x()),y=await v({metaSiteId:r.metaSiteId,biLogger:u,errorReporter:g}),S=l(),e=d({t:S}),i=await _(o=>p(c(r.projectFolder),o)),P=(m.source?{value:m.source}:await(0,f.default)({type:"select",name:"value",message:e.t("preview_command.prompt_what_to_preview"),choices:[{title:i?e.t("preview_command.prompt_what_to_preview_choice_latest",{branchName:i}):e.t("preview_command.prompt_what_to_preview_choice_latest_fallback"),value:"remote"},{title:e.t("preview_command.prompt_what_to_preview_choice_local"),value:"local"}]},{onCancel:()=>{e.logAborting(),D(130)}})).value==="local"?a.local():a.remote({});e.logCreatingPreview();try{let o=await h({model:r,operation:w.RC,source:P,authState:y});e.logPreviewCreated(o.deploymentShortUrl??o.deploymentUrl)}catch(o){if(s(o))e.logPreviewUnsupported();else throw o}}export{I as preview};
4
- //# sourceMappingURL=preview-LSA35XV3.js.map
3
+ import{a as b,b as _,e as a,f as h}from"./chunk-PVZF2B55.js";import{f as w,i as s}from"./chunk-DUM2ZCCI.js";import"./chunk-ACTAIGWA.js";import{b as d}from"./chunk-6UKTFHIT.js";import"./chunk-6TDWVLRD.js";import{a as v}from"./chunk-Y47HDJI3.js";import{d as n}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as l}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import"./chunk-G55TTMWE.js";import{b as p}from"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{i as c}from"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import{e as C,i as t}from"./chunk-UO4ZAUJK.js";t();t();import{cwd as x,exit as D}from"node:process";var f=C(b(),1);async function I({biLogger:u,errorReporter:g},m){let r=await n(x()),y=await v({metaSiteId:r.metaSiteId,biLogger:u,errorReporter:g}),S=l(),e=d({t:S}),i=await _(o=>p(c(r.projectFolder),o)),P=(m.source?{value:m.source}:await(0,f.default)({type:"select",name:"value",message:e.t("preview_command.prompt_what_to_preview"),choices:[{title:i?e.t("preview_command.prompt_what_to_preview_choice_latest",{branchName:i}):e.t("preview_command.prompt_what_to_preview_choice_latest_fallback"),value:"remote"},{title:e.t("preview_command.prompt_what_to_preview_choice_local"),value:"local"}]},{onCancel:()=>{e.logAborting(),D(130)}})).value==="local"?a.local():a.remote({});e.logCreatingPreview();try{let o=await h({model:r,operation:w.RC,source:P,authState:y});e.logPreviewCreated(o.deploymentShortUrl??o.deploymentUrl)}catch(o){if(s(o))e.logPreviewUnsupported();else throw o}}export{I as preview};
4
+ //# sourceMappingURL=preview-VQZYPOVH.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as Z,b as j,c as B,d as J,e as g,f as C,g as M}from"./chunk-UKFNVTCA.js";import{f as k,i as N}from"./chunk-CRMNV6TC.js";import{b as d}from"./chunk-DZP3GQQE.js";import{a as h,b as G}from"./chunk-WV6O4I6K.js";import"./chunk-6TDWVLRD.js";import{a as O}from"./chunk-HSRXZLET.js";import{d as A}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as F}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import{d as I,e as q,f as D}from"./chunk-DWUKJO5Z.js";import{b as L}from"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as w}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{i as E}from"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{a as Y,c as P,e as R}from"./chunk-XB57BXPK.js";import{e as U,i as s}from"./chunk-UO4ZAUJK.js";s();s();import{URL as ie}from"node:url";import{cwd as re,exit as se}from"node:process";var _=U(Z(),1),W=U(Y(),1);s();s();var ee={},te={};function oe(o){var t={"bo._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"wixbo.ai":[{srcPath:"/_serverless/typok",destPath:""}],"editor._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"blocks._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"create.editorx":[{srcPath:"/_serverless/typok",destPath:""}]};return I(Object.assign(o,{domainToMappings:t}))}function $(o){var t=D(ee,{}),l=t.toJSON,a=t.fromJSON,i=D(te,{}).fromJSON;function n(e){var m=e.host,y=l(o),c={entityFqdn:"wix.typok.v1.siterevision",method:"GET",methodFqn:"wix.typok.v1.SiteRevisionService.GetSiteRevision",url:oe({protoPath:"/v1/site-revision",data:y,host:m}),params:q(y),transformResponse:i};return c}return n.fromReq=a,n.__isAmbassador=!0,n}var z=async o=>{try{return(await h({type:"editor",authState:o.authState},$({}))).data.siteRevision?.revision??null}catch(t){o.logger.logFailedToGetLatestRevision(t)}return null};var ae=o=>{let t=new ie(o);return`${t.protocol}//${t.host}${t.pathname}`};async function le({biLogger:o,errorReporter:t},l){let a=await A(re()),i=await O({metaSiteId:a.metaSiteId,biLogger:o,errorReporter:t}),n=F(),e=G({t:n}),m=await j(r=>L(E(a.projectFolder),r)),c=(l.source?{value:l.source}:await(0,_.default)({type:"select",name:"value",message:e.t("publish_command.prompt_what_to_publish"),choices:[{title:w.cyan(m?e.t("publish_command.prompt_what_to_publish_choice_remote",{branchName:m}):e.t("publish_command.prompt_what_to_publish_choice_remote_fallback")),value:"remote"},{title:w.cyan(e.t("publish_command.prompt_what_to_publish_choice_local")),value:"local"}]},{onCancel:()=>{e.logAborting(),se(130)}})).value==="local"?g.local():g.remote({}),v,b=e.logPreviewing();try{v=await C({model:a,operation:k.RC,source:c,authState:i}),b.success()}catch(r){if(N(r))b.stop(),e.logPreviewUnsupported();else throw b.fail(),r}let V=await z({authState:i,logger:e}),H=v?.deployedRevision??a.revision;if(e.logPublishRevision({branchName:m,isLocalDeployment:(0,W.isType)(c,g.local),currentRevision:H,latestRevision:V,preview:v}),(l.approvePreview?{value:!0}:await(0,_.default)({type:"confirm",name:"value",message:e.t("publish_command.prompt_continue_with_publish"),initial:!0})).value){let r=e.logDeploying(),x=v??await C({model:a,authState:i,operation:k.GA,source:c}),{deploymentId:T,deploymentUrl:K,isPublishPipelineDeployment:Q}=x,f;try{f=Q?await M({deploymentId:T,authState:i}):d.SUCCESS}catch(u){throw r.fail(),u}f===d.SUCCESS&&r.success();let S;if(f===d.ERROR){r.fail();try{let{data:p}=await h({type:"editor",authState:i},J({deploymentId:x.deploymentId,deploymentPipelinesIds:["5c696513-2584-4f19-ae0f-a559dd649482"]}),{retries:2});if(p.pipelinesDescription?.length){let{pipelinesDescription:X}=p;e.logPipelineErrorInformation({pipelinesDescription:X})}}catch(p){throw new P({code:R.FailedToGetPipelineErrorInfo(),cause:p})}e.logForceDeployWarning(),S=(l.force?{value:!0}:await(0,_.default)({type:"confirm",name:"value",message:n("publish_command.prompt_publish_with_error"),initial:!0})).value}if(f===d.SUCCESS||S){let u=e.logPublishing();try{await h({type:"editor",authState:i},B({deploymentId:T,skipPipelineCheck:S}),{retries:2})}catch(p){throw u.fail(),new P({code:R.FailedToPublishDeployment(),cause:p})}u.success({siteUrl:ae(K)})}}else e.logPublishAborted()}export{le as publish};
4
- //# sourceMappingURL=publish-YARINRCG.js.map
3
+ import{a as Z,b as j,c as B,d as J,e as g,f as C,g as M}from"./chunk-PVZF2B55.js";import{f as k,i as N}from"./chunk-DUM2ZCCI.js";import{b as d}from"./chunk-ACTAIGWA.js";import{a as h,b as G}from"./chunk-6UKTFHIT.js";import"./chunk-6TDWVLRD.js";import{a as O}from"./chunk-Y47HDJI3.js";import{d as A}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as F}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import{d as I,e as q,f as D}from"./chunk-G55TTMWE.js";import{b as L}from"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as w}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{i as E}from"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{a as Y,c as P,e as R}from"./chunk-XB57BXPK.js";import{e as U,i as s}from"./chunk-UO4ZAUJK.js";s();s();import{URL as ie}from"node:url";import{cwd as re,exit as se}from"node:process";var _=U(Z(),1),W=U(Y(),1);s();s();var ee={},te={};function oe(o){var t={"bo._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"wixbo.ai":[{srcPath:"/_serverless/typok",destPath:""}],"editor._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"blocks._base_domain_":[{srcPath:"/_serverless/typok",destPath:""}],"create.editorx":[{srcPath:"/_serverless/typok",destPath:""}]};return I(Object.assign(o,{domainToMappings:t}))}function $(o){var t=D(ee,{}),l=t.toJSON,a=t.fromJSON,i=D(te,{}).fromJSON;function n(e){var m=e.host,y=l(o),c={entityFqdn:"wix.typok.v1.siterevision",method:"GET",methodFqn:"wix.typok.v1.SiteRevisionService.GetSiteRevision",url:oe({protoPath:"/v1/site-revision",data:y,host:m}),params:q(y),transformResponse:i};return c}return n.fromReq=a,n.__isAmbassador=!0,n}var z=async o=>{try{return(await h({type:"editor",authState:o.authState},$({}))).data.siteRevision?.revision??null}catch(t){o.logger.logFailedToGetLatestRevision(t)}return null};var ae=o=>{let t=new ie(o);return`${t.protocol}//${t.host}${t.pathname}`};async function le({biLogger:o,errorReporter:t},l){let a=await A(re()),i=await O({metaSiteId:a.metaSiteId,biLogger:o,errorReporter:t}),n=F(),e=G({t:n}),m=await j(r=>L(E(a.projectFolder),r)),c=(l.source?{value:l.source}:await(0,_.default)({type:"select",name:"value",message:e.t("publish_command.prompt_what_to_publish"),choices:[{title:w.cyan(m?e.t("publish_command.prompt_what_to_publish_choice_remote",{branchName:m}):e.t("publish_command.prompt_what_to_publish_choice_remote_fallback")),value:"remote"},{title:w.cyan(e.t("publish_command.prompt_what_to_publish_choice_local")),value:"local"}]},{onCancel:()=>{e.logAborting(),se(130)}})).value==="local"?g.local():g.remote({}),v,b=e.logPreviewing();try{v=await C({model:a,operation:k.RC,source:c,authState:i}),b.success()}catch(r){if(N(r))b.stop(),e.logPreviewUnsupported();else throw b.fail(),r}let V=await z({authState:i,logger:e}),H=v?.deployedRevision??a.revision;if(e.logPublishRevision({branchName:m,isLocalDeployment:(0,W.isType)(c,g.local),currentRevision:H,latestRevision:V,preview:v}),(l.approvePreview?{value:!0}:await(0,_.default)({type:"confirm",name:"value",message:e.t("publish_command.prompt_continue_with_publish"),initial:!0})).value){let r=e.logDeploying(),x=v??await C({model:a,authState:i,operation:k.GA,source:c}),{deploymentId:T,deploymentUrl:K,isPublishPipelineDeployment:Q}=x,f;try{f=Q?await M({deploymentId:T,authState:i}):d.SUCCESS}catch(u){throw r.fail(),u}f===d.SUCCESS&&r.success();let S;if(f===d.ERROR){r.fail();try{let{data:p}=await h({type:"editor",authState:i},J({deploymentId:x.deploymentId,deploymentPipelinesIds:["5c696513-2584-4f19-ae0f-a559dd649482"]}),{retries:2});if(p.pipelinesDescription?.length){let{pipelinesDescription:X}=p;e.logPipelineErrorInformation({pipelinesDescription:X})}}catch(p){throw new P({code:R.FailedToGetPipelineErrorInfo(),cause:p})}e.logForceDeployWarning(),S=(l.force?{value:!0}:await(0,_.default)({type:"confirm",name:"value",message:n("publish_command.prompt_publish_with_error"),initial:!0})).value}if(f===d.SUCCESS||S){let u=e.logPublishing();try{await h({type:"editor",authState:i},B({deploymentId:T,skipPipelineCheck:S}),{retries:2})}catch(p){throw u.fail(),new P({code:R.FailedToPublishDeployment(),cause:p})}u.success({siteUrl:ae(K)})}}else e.logPublishAborted()}export{le as publish};
4
+ //# sourceMappingURL=publish-CK7HEF4E.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as p}from"./chunk-KRD4NQZH.js";import{d as f}from"./chunk-C4YJFHLC.js";import"./chunk-6WLGSATJ.js";import{h as c,j as s}from"./chunk-PAIXCGVA.js";import{a as C,q as n,w as d}from"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import{e as v,i}from"./chunk-UO4ZAUJK.js";i();var e=v(C(),1);async function g(t,{biLogger:r,errorReporter:m},o){await y(t,{biLogger:r,errorReporter:m},async()=>{await n(e.default.createElement(s,{value:r},e.default.createElement(c,{value:m},e.default.createElement(d,{messages:p},o))))})}async function y(t,r,m){let o=f(r.biLogger,t);try{await m(),o.succeed()}catch(a){throw o.failed(a),a}}export{g as renderCommand};
4
- //# sourceMappingURL=render-command-6SU3FDH4.js.map
3
+ import{a as p}from"./chunk-KRD4NQZH.js";import{d as f}from"./chunk-QAAJK3GC.js";import"./chunk-6WLGSATJ.js";import{h as c,j as s}from"./chunk-PAIXCGVA.js";import{a as C,q as n,w as d}from"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import{e as v,i}from"./chunk-UO4ZAUJK.js";i();var e=v(C(),1);async function g(t,{biLogger:r,errorReporter:m},o){await y(t,{biLogger:r,errorReporter:m},async()=>{await n(e.default.createElement(s,{value:r},e.default.createElement(c,{value:m},e.default.createElement(d,{messages:p},o))))})}async function y(t,r,m){let o=f(r.biLogger,t);try{await m(),o.succeed()}catch(a){throw o.failed(a),a}}export{g as renderCommand};
4
+ //# sourceMappingURL=render-command-EGV3OP37.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{g as a,k as b,l as c,m as d,o as e,p as f,q as g,r as h,s as i}from"./chunk-DWUKJO5Z.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import"./chunk-UO4ZAUJK.js";export{f as AccountAuthProvider,d as ApiKeyLogin,e as Login,g as SiteAuthProvider,h as authenticateWithSiteId,a as getUserInfo,i as isLoggedInToAccount,b as logout,c as useAuth};
4
- //# sourceMappingURL=src-D7FRKYAG.js.map
3
+ import{g as a,k as b,l as c,m as d,o as e,p as f,q as g,r as h,s as i}from"./chunk-G55TTMWE.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import"./chunk-UO4ZAUJK.js";export{f as AccountAuthProvider,d as ApiKeyLogin,e as Login,g as SiteAuthProvider,h as authenticateWithSiteId,a as getUserInfo,i as isLoggedInToAccount,b as logout,c as useAuth};
4
+ //# sourceMappingURL=src-S6J3ZUBK.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{b as a,c as b}from"./chunk-QZRJ54GP.js";import"./chunk-HSRXZLET.js";import"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import"./chunk-6WLGSATJ.js";import"./chunk-2U7VPZZN.js";import"./chunk-U37RKZCU.js";import"./chunk-DWUKJO5Z.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import"./chunk-UO4ZAUJK.js";export{b as syncTypes,a as syncTypesWithAuth};
4
- //# sourceMappingURL=sync-types-3VZR22AM.js.map
3
+ import{b as a,c as b}from"./chunk-DGQKIB5L.js";import"./chunk-Y47HDJI3.js";import"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import"./chunk-6WLGSATJ.js";import"./chunk-2U7VPZZN.js";import"./chunk-U37RKZCU.js";import"./chunk-G55TTMWE.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import"./chunk-XB57BXPK.js";import"./chunk-UO4ZAUJK.js";export{b as syncTypes,a as syncTypesWithAuth};
4
+ //# sourceMappingURL=sync-types-DRU4GIWT.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as s,c as f,e as w}from"./chunk-66BJ73D4.js";import"./chunk-DZP3GQQE.js";import{b as g}from"./chunk-WV6O4I6K.js";import"./chunk-6TDWVLRD.js";import{a as d}from"./chunk-HSRXZLET.js";import{d as p}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as l}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import"./chunk-DWUKJO5Z.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{c as t,e as n}from"./chunk-XB57BXPK.js";import{i as o}from"./chunk-UO4ZAUJK.js";o();o();import{cwd as h}from"node:process";async function j(i,c,y){let e=await p(h()),u=l(),k=g({t:u}),P=await d({metaSiteId:e.metaSiteId,biLogger:i.biLogger,errorReporter:i.errorReporter}),a=y.trim();if(!a)throw new t({code:n.WixUninstallMissingPackageName()});let r;c.yarn?r="yarn":c.npm?r="npm":r=await s(e.projectFolder);let M=k.logDependencyUninstalling(a);try{await w(a,e.projectFolder,r),await f(e.projectFolder,{authState:P})}catch(m){throw new t({code:n.FailedToUninstallPackage({packageName:a,cause:m}),cause:m,info:{model:e}})}M()}export{j as uninstall};
4
- //# sourceMappingURL=uninstall-7RYNGJHY.js.map
3
+ import{a as s,c as f,e as w}from"./chunk-75LUETYR.js";import"./chunk-ACTAIGWA.js";import{b as g}from"./chunk-6UKTFHIT.js";import"./chunk-6TDWVLRD.js";import{a as d}from"./chunk-Y47HDJI3.js";import{d as p}from"./chunk-LCQ5YWX3.js";import"./chunk-CCZ55TG3.js";import{a as l}from"./chunk-WY4PNXSL.js";import"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import"./chunk-G55TTMWE.js";import"./chunk-PAIXCGVA.js";import"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import"./chunk-NWTFQJ5S.js";import{c as t,e as n}from"./chunk-XB57BXPK.js";import{i as o}from"./chunk-UO4ZAUJK.js";o();o();import{cwd as h}from"node:process";async function j(i,c,y){let e=await p(h()),u=l(),k=g({t:u}),P=await d({metaSiteId:e.metaSiteId,biLogger:i.biLogger,errorReporter:i.errorReporter}),a=y.trim();if(!a)throw new t({code:n.WixUninstallMissingPackageName()});let r;c.yarn?r="yarn":c.npm?r="npm":r=await s(e.projectFolder);let M=k.logDependencyUninstalling(a);try{await w(a,e.projectFolder,r),await f(e.projectFolder,{authState:P})}catch(m){throw new t({code:n.FailedToUninstallPackage({packageName:a,cause:m}),cause:m,info:{model:e}})}M()}export{j as uninstall};
4
+ //# sourceMappingURL=uninstall-S4LM37YV.js.map