@wix/cli-app 1.1.10 → 1.1.11

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 (65) hide show
  1. package/build/{CreateVersionCommand-ZED4C5IK.js → CreateVersionCommand-RHTO3DA7.js} +2 -2
  2. package/build/{DevCommand-EOGURH5I.js → DevCommand-OFSQSCJW.js} +2 -2
  3. package/build/{GenerateCommand-2GP5ZDIG.js → GenerateCommand-43LJGGHV.js} +2 -2
  4. package/build/PreviewCommand-CEE6NMDS.js +4 -0
  5. package/build/{ServeCommand-UAJS2PA6.js → ServeCommand-R5SAKRKU.js} +2 -2
  6. package/build/{build-3JHPJZJI.js → build-IS5AWEWP.js} +2 -2
  7. package/build/{chunk-355OHM37.js → chunk-2BVF7R6U.js} +2 -2
  8. package/build/{chunk-NXZW6FWB.js → chunk-2MVU7B3I.js} +6 -6
  9. package/build/chunk-2MVU7B3I.js.map +1 -0
  10. package/build/{chunk-OTVLQNCK.js → chunk-47TDKY2B.js} +2 -2
  11. package/build/{chunk-QE2ZMSXG.js → chunk-5IXE5FNR.js} +2 -2
  12. package/build/{chunk-OXEFT2HH.js → chunk-7BWMEPZ3.js} +2 -2
  13. package/build/{chunk-JBF5X4QY.js → chunk-7WZDL63V.js} +2 -2
  14. package/build/chunk-BPHZBR73.js +4 -0
  15. package/build/chunk-BPHZBR73.js.map +1 -0
  16. package/build/{chunk-M4WZBOPY.js → chunk-EQI25LY6.js} +2 -2
  17. package/build/{chunk-DYVKPZDH.js → chunk-GNLLOWHY.js} +2 -2
  18. package/build/chunk-GNLLOWHY.js.map +1 -0
  19. package/build/chunk-HNH75HDQ.js +4 -0
  20. package/build/chunk-HNH75HDQ.js.map +1 -0
  21. package/build/{chunk-WK54N4GD.js → chunk-JCBTQBIR.js} +2 -2
  22. package/build/{chunk-LIHTNDQX.js → chunk-JWWXSIBF.js} +2 -2
  23. package/build/{chunk-LIHTNDQX.js.map → chunk-JWWXSIBF.js.map} +1 -1
  24. package/build/{chunk-F35NSBUP.js → chunk-QWDVUZEW.js} +2 -2
  25. package/build/chunk-QWDVUZEW.js.map +1 -0
  26. package/build/{chunk-BSEV5LHK.js → chunk-RJ43KJ3G.js} +2 -2
  27. package/build/{chunk-3RXBIY4X.js → chunk-UBWBH64V.js} +2 -2
  28. package/build/{chunk-T2HZ7OVC.js → chunk-WV4KTPXI.js} +2 -2
  29. package/build/chunk-WV4KTPXI.js.map +1 -0
  30. package/build/chunk-YHWDL3DF.js +4 -0
  31. package/build/{chunk-J3Q3DHMD.js.map → chunk-YHWDL3DF.js.map} +1 -1
  32. package/build/{chunk-BASMMNVW.js → chunk-ZHEN7NIQ.js} +2 -2
  33. package/build/index.js +1 -1
  34. package/build/{preview-EFIEGFXF.js → preview-6XHIXIDA.js} +2 -2
  35. package/build/render-command-MG2TJRUD.js +4 -0
  36. package/build/{render-command-UUN7DFLA.js.map → render-command-MG2TJRUD.js.map} +1 -1
  37. package/package.json +3 -3
  38. package/build/PreviewCommand-KR2XGCFF.js +0 -4
  39. package/build/chunk-BYI27HUJ.js +0 -4
  40. package/build/chunk-BYI27HUJ.js.map +0 -1
  41. package/build/chunk-DYVKPZDH.js.map +0 -1
  42. package/build/chunk-F35NSBUP.js.map +0 -1
  43. package/build/chunk-J3Q3DHMD.js +0 -4
  44. package/build/chunk-JCBXLFRW.js +0 -4
  45. package/build/chunk-JCBXLFRW.js.map +0 -1
  46. package/build/chunk-NXZW6FWB.js.map +0 -1
  47. package/build/chunk-T2HZ7OVC.js.map +0 -1
  48. package/build/render-command-UUN7DFLA.js +0 -4
  49. /package/build/{CreateVersionCommand-ZED4C5IK.js.map → CreateVersionCommand-RHTO3DA7.js.map} +0 -0
  50. /package/build/{DevCommand-EOGURH5I.js.map → DevCommand-OFSQSCJW.js.map} +0 -0
  51. /package/build/{GenerateCommand-2GP5ZDIG.js.map → GenerateCommand-43LJGGHV.js.map} +0 -0
  52. /package/build/{PreviewCommand-KR2XGCFF.js.map → PreviewCommand-CEE6NMDS.js.map} +0 -0
  53. /package/build/{ServeCommand-UAJS2PA6.js.map → ServeCommand-R5SAKRKU.js.map} +0 -0
  54. /package/build/{build-3JHPJZJI.js.map → build-IS5AWEWP.js.map} +0 -0
  55. /package/build/{chunk-355OHM37.js.map → chunk-2BVF7R6U.js.map} +0 -0
  56. /package/build/{chunk-OTVLQNCK.js.map → chunk-47TDKY2B.js.map} +0 -0
  57. /package/build/{chunk-QE2ZMSXG.js.map → chunk-5IXE5FNR.js.map} +0 -0
  58. /package/build/{chunk-OXEFT2HH.js.map → chunk-7BWMEPZ3.js.map} +0 -0
  59. /package/build/{chunk-JBF5X4QY.js.map → chunk-7WZDL63V.js.map} +0 -0
  60. /package/build/{chunk-M4WZBOPY.js.map → chunk-EQI25LY6.js.map} +0 -0
  61. /package/build/{chunk-WK54N4GD.js.map → chunk-JCBTQBIR.js.map} +0 -0
  62. /package/build/{chunk-BSEV5LHK.js.map → chunk-RJ43KJ3G.js.map} +0 -0
  63. /package/build/{chunk-3RXBIY4X.js.map → chunk-UBWBH64V.js.map} +0 -0
  64. /package/build/{chunk-BASMMNVW.js.map → chunk-ZHEN7NIQ.js.map} +0 -0
  65. /package/build/{preview-EFIEGFXF.js.map → preview-6XHIXIDA.js.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{A as Ae,D as Lo,a as ut,b as ct,d as Q,e as Ee,f as Ro,g as w,l as Po,q as Kt,r as No,s as Xt,t as lt,u as Do,w as Te,x as qo}from"./chunk-QE2ZMSXG.js";import{a as Vt}from"./chunk-JBF5X4QY.js";import{a as fe,c as G,d as oe,f as So,g as Fo,h as k,i as _e,l as Io,m as ko,n as Yt}from"./chunk-DYVKPZDH.js";import{a as P,b as $,c as x,d as Oo,e as V,f as be,g as d,h as i}from"./chunk-HFDLXX7R.js";var He=x(W=>{"use strict";i();Object.defineProperty(W,"__esModule",{value:!0});W.ORIGINAL_PROTOCOL_HEADER=W.ORIGINAL_HOST_HEADER=W.ORIGINAL_URL_HEADER=W.SSR_PROTOCOL=W.SSR_HOST=W.NO_SCENARIO_FOUND=void 0;W.NO_SCENARIO_FOUND="NO_SCENARIO_FOUND";W.SSR_HOST="www.wix.com";W.SSR_PROTOCOL="http";W.ORIGINAL_URL_HEADER="x-wix-metro-original-url";W.ORIGINAL_HOST_HEADER="x-wix-metro-original-host";W.ORIGINAL_PROTOCOL_HEADER="x-wix-metro-original-protocol"});function Mo(){if(typeof document=="object")return document}function me(){return typeof self=="object"?self:global}var Me=$(()=>{"use strict";i()});function jo(t){let e=Pa(t);return e?e.split("=")[1]:""}function Ra(){let t=Mo();return t&&t.cookie?decodeURIComponent(t.cookie).split(";"):[]}function Pa(t){return Ra().filter(e=>t===e.split("=")[0].trim())[0]}var Bo=$(()=>{"use strict";i();Me()});function $o(){let t=jo(Na);return{[Da]:t}}var Na,Da,Go=$(()=>{"use strict";i();Bo();Na="XSRF-TOKEN",Da="x-xsrf-token"});function Wo(){let t=La();return{[qa]:t}}function La(){let t=me();return t&&t.commonConfig&&typeof t.commonConfig.brand=="string"?t.commonConfig.brand:""}var qa,zo=$(()=>{"use strict";i();Me();qa="x-wix-brand"});function Jo(){return Ha()||Ua()||Ma()}function Ua(){let t=me();if(t&&t.Wix&&t.Wix.Utils&&typeof t.Wix.Utils._getConsentPolicyHeader=="function")return t.Wix.Utils._getConsentPolicyHeader()}function Ha(){let t=me();if(t&&t.consentPolicyManager&&typeof t.consentPolicyManager._getConsentPolicyHeader=="function")return t.consentPolicyManager._getConsentPolicyHeader()}function Ma(){return{}}var Vo=$(()=>{"use strict";i();Me()});function Yo(t){return{authorization:t}}var Ko=$(()=>{"use strict";i()});function Xo(){return ja()?!!process.env.TEAMCITY_VERSION||!!process.env.BUILDKITE:!1}function ja(){return typeof process<"u"&&process.versions?.node!=null}var Zo=$(()=>{"use strict";i()});function Qo(t){let e=process.env.ARTIFACT_ID??process.env.APP_NAME??"";return{"X-Wix-Client-Artifact-Id":t??(Xo()?"":e)}}var en=$(()=>{"use strict";i();Zo()});function Wa(){let e=me()?.commonConfig;if(!e)return null;let r={},o=!1;return Object.keys(e).forEach(n=>{let s=Ga[n];s?(r[s]=e[n],o=!0):Ba.indexOf(n)<0&&typeof e[n]!="function"&&(r[n]=e[n],o=!0)}),o?r:null}var Ba,$a,Ga,tn,rn=$(()=>{"use strict";i();Me();Ba=["consentPolicy","consentPolicyHeader"],$a="commonConfig",Ga={bsi:"BSI"};tn=()=>{let t=Wa(),e=t?JSON.stringify(t):"";return{[$a]:encodeURIComponent(e)}}});var on=x((dt,je)=>{"use strict";i();(function(t){var e=typeof dt=="object"&&dt,r=typeof je=="object"&&je&&je.exports==e&&je,o=typeof global=="object"&&global;(o.global===o||o.window===o)&&(t=o);var n=function(m){this.message=m};n.prototype=new Error,n.prototype.name="InvalidCharacterError";var s=function(m){throw new n(m)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c=function(m){m=String(m).replace(l,"");var y=m.length;y%4==0&&(m=m.replace(/==?$/,""),y=m.length),(y%4==1||/[^+a-zA-Z0-9/]/.test(m))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var b=0,C,_,F="",H=-1;++H<y;)_=a.indexOf(m.charAt(H)),C=b%4?C*64+_:_,b++%4&&(F+=String.fromCharCode(255&C>>(-2*b&6)));return F},v=function(m){m=String(m),/[^\0-\xFF]/.test(m)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var y=m.length%3,b="",C=-1,_,F,H,I,A=m.length-y;++C<A;)_=m.charCodeAt(C)<<16,F=m.charCodeAt(++C)<<8,H=m.charCodeAt(++C),I=_+F+H,b+=a.charAt(I>>18&63)+a.charAt(I>>12&63)+a.charAt(I>>6&63)+a.charAt(I&63);return y==2?(_=m.charCodeAt(C)<<8,F=m.charCodeAt(++C),I=_+F,b+=a.charAt(I>>10)+a.charAt(I>>4&63)+a.charAt(I<<2&63)+"="):y==1&&(I=m.charCodeAt(C),b+=a.charAt(I>>2)+a.charAt(I<<4&63)+"=="),b},p={encode:v,decode:c,version:"1.0.0"};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)define(function(){return p});else if(e&&!e.nodeType)if(r)r.exports=p;else for(var h in p)p.hasOwnProperty(h)&&(e[h]=p[h]);else t.base64=p})(dt)});function sn({lang:t,locale:e,isPrimaryLanguage:r,signedInstance:o}){if(Ja({lang:t,locale:e,isPrimaryLanguage:r})){let n=Va(o);if(n!==void 0)return{[za]:[t,e,r?.toString(),n].join("|")}}return{}}function Ja({lang:t,locale:e,isPrimaryLanguage:r}){return t&&e&&/^(true|false)$/.test(r?.toString()||"")}function Va(t){try{let e=t?.startsWith("wixcode")?t?.split(".")[2]:t?.split(".")[1];if(e)return JSON.parse(nn.default.decode(e)).instanceId}catch{}}var nn,za,an=$(()=>{"use strict";i();nn=V(on()),za="x-wix-linguist"});var Be,un=$(()=>{"use strict";i();Be=class extends Error{constructor(e,r,o){super(`WixHeadersValidationError: expected ${r} to be ${e} but got ${JSON.stringify(o)}`)}}});function cn(t,e){if(typeof e!="boolean")throw new Be("boolean",t,e)}function ln(t,e){if(typeof e!="string")throw new Be("string",t,e)}var dn=$(()=>{"use strict";i();un()});var pn={};Oo(pn,{createHeaders:()=>Ya});function Ya(t={}){t={csrf:!0,signedInstance:"",...t},Ka(t);let e=[Wo(),Jo(),Yo(t.signedInstance),Qo(t.artifactId),tn(),sn({signedInstance:t.signedInstance,...t.multilingualOptions})];return t.csrf&&e.push($o()),e.filter(r=>Object.values(r).every(o=>o)).reduce((r,o)=>({...r,...o}),{})}function Ka(t){cn("opts.csrf",t.csrf),ln("opts.signedInstance",t.signedInstance)}var fn=$(()=>{"use strict";i();Go();zo();Vo();Ko();en();rn();an();dn()});var er=x(le=>{"use strict";i();Object.defineProperty(le,"__esModule",{value:!0});le.isNode=le.isWebWorker=le.isBrowser=void 0;function Xa(){return typeof window<"u"}le.isBrowser=Xa;function Za(){var t;return typeof self=="object"&&((t=self?.constructor)===null||t===void 0?void 0:t.name)==="DedicatedWorkerGlobalScope"}le.isWebWorker=Za;function Qa(){var t;return typeof process<"u"&&((t=process==null?void 0:process.versions)===null||t===void 0?void 0:t.node)!=null}le.isNode=Qa});var pt=x(T=>{"use strict";i();Object.defineProperty(T,"__esModule",{value:!0});T.toSearchQueryParams=T.shouldAllowUnmocked=T.isHttpMockServerEnabled=T.getGlobalConfig=T.changeHost=T.extractHost=T.extractProtocol=T.resolveProtocol=T.resolveHost=T.extractProp=T.silent=T.isAbsoluteUrl=void 0;var mn=He(),tr=er();function eu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return/(^https?:)|(^\/\/)/.test(t)}T.isAbsoluteUrl=eu;async function tu(t){try{await t()}catch{}}T.silent=tu;function ru(t,e){return e.split(".").filter(r=>r).reduce((r,o)=>r[o],t)}T.extractProp=ru;function ou(t){return t.baseURL?gn(t.baseURL):t.isSSR?mn.SSR_HOST:typeof self<"u"&&self.location?self.location.host:""}T.resolveHost=ou;function nu(t){return t.baseURL?hn(t.baseURL):t.isSSR?mn.SSR_PROTOCOL:typeof self<"u"&&self.location?self.location.protocol:""}T.resolveProtocol=nu;function hn(t){try{return new URL(t).protocol}catch{return vn(t).protocol}}T.extractProtocol=hn;function gn(t){let e;try{e=new URL(t)}catch{e=new URL(`http:${t}`)}try{return e.host}catch{return vn(t).host}}T.extractHost=gn;function vn(t){let e=new RegExp("^(.*:)//([A-Za-z0-9-.]+)(:[0-9]+)?(.*)$");try{let r=e.exec(t);return{protocol:r[1],host:r[2]}}catch{return{protocol:"http:",host:""}}}function iu(t,e){let r;try{r=new URL(t),r.host=e,r.protocol="http"}catch{r=new URL(`http://${e}`),r.pathname=t}return r.toString()}T.changeHost=iu;function rr(){let t={httpMockServer:{enabled:!1}},e;if((0,tr.isNode)()&&process.env.HTTP_CLIENT_GLOBAL_CONFIG)try{e=JSON.parse(process.env.HTTP_CLIENT_GLOBAL_CONFIG)}catch{}return e||((0,tr.isBrowser)()?e=window._httpClientGlobalConfig:(0,tr.isWebWorker)()),e||t}T.getGlobalConfig=rr;function su(){return rr().httpMockServer.enabled}T.isHttpMockServerEnabled=su;function au(){return rr().httpMockServer.allowUnmocked}T.shouldAllowUnmocked=au;function uu(t){return Object.entries(t).map(([e,r])=>`${e}=${encodeURIComponent(r)}`).flat().join("&")}T.toSearchQueryParams=uu});var yn=x((Lp,cu)=>{cu.exports=["wix.com","editorx.com","wix-code.com","wixapps.net","wixprod.net"]});var ft=x(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.isWixDomain=de.composeHeaders=de.requestIdOrEmptyString=void 0;var lu=(ct(),be(ut)),du=(fn(),be(pn)),xn=pt(),pu=lu.__importDefault(yn());function fu(t){var e;return((e=t?.headers)===null||e===void 0?void 0:e["x-wix-request-id"])||""}de.requestIdOrEmptyString=fu;var mu=({url:t,disableWixHeaders:e,wixHeadersOpts:r})=>!e&&wn(t)?(0,du.createHeaders)(r):{};de.composeHeaders=mu;function wn(t){if(!(0,xn.isAbsoluteUrl)(t))return!0;let r=`.${(0,xn.extractHost)(t)}`;return!!pu.default.find(n=>r.endsWith(`.${n}`))}de.isWixDomain=wn});var or=x(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.createHttpError=ie.HttpError=ie.axiosErrorFields=void 0;var hu=ft();ie.axiosErrorFields=["code","config","request","response","toJSON","__CANCEL__"];var mt=class t extends Error{constructor(e){super(e.message),this.isWixHttpError=!0,Object.setPrototypeOf(this,t.prototype),ie.axiosErrorFields.forEach(r=>{this[r]=e[r]})}get requestId(){return(0,hu.requestIdOrEmptyString)(this.response)}};ie.HttpError=mt;function gu(...t){return new mt(...t)}ie.createHttpError=gu});var nr=x((Bp,Cn)=>{"use strict";i();Cn.exports=function(e,r){return function(){for(var n=new Array(arguments.length),s=0;s<n.length;s++)n[s]=arguments[s];return e.apply(r,n)}}});var j=x((Gp,En)=>{"use strict";i();var vu=nr(),he=Object.prototype.toString;function ar(t){return he.call(t)==="[object Array]"}function ir(t){return typeof t>"u"}function yu(t){return t!==null&&!ir(t)&&t.constructor!==null&&!ir(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function xu(t){return he.call(t)==="[object ArrayBuffer]"}function wu(t){return typeof FormData<"u"&&t instanceof FormData}function Cu(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function bu(t){return typeof t=="string"}function _u(t){return typeof t=="number"}function bn(t){return t!==null&&typeof t=="object"}function ht(t){if(he.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Eu(t){return he.call(t)==="[object Date]"}function Tu(t){return he.call(t)==="[object File]"}function Au(t){return he.call(t)==="[object Blob]"}function _n(t){return he.call(t)==="[object Function]"}function Ou(t){return bn(t)&&_n(t.pipe)}function Su(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Fu(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Iu(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ur(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ar(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}function sr(){var t={};function e(n,s){ht(t[s])&&ht(n)?t[s]=sr(t[s],n):ht(n)?t[s]=sr({},n):ar(n)?t[s]=n.slice():t[s]=n}for(var r=0,o=arguments.length;r<o;r++)ur(arguments[r],e);return t}function ku(t,e,r){return ur(e,function(n,s){r&&typeof n=="function"?t[s]=vu(n,r):t[s]=n}),t}function Ru(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}En.exports={isArray:ar,isArrayBuffer:xu,isBuffer:yu,isFormData:wu,isArrayBufferView:Cu,isString:bu,isNumber:_u,isObject:bn,isPlainObject:ht,isUndefined:ir,isDate:Eu,isFile:Tu,isBlob:Au,isFunction:_n,isStream:Ou,isURLSearchParams:Su,isStandardBrowserEnv:Iu,forEach:ur,merge:sr,extend:ku,trim:Fu,stripBOM:Ru}});var gt=x((zp,Tn)=>{"use strict";i();Tn.exports=function(e,r,o,n,s){return e.config=r,o&&(e.code=o),e.request=n,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}});var vt=x((Vp,An)=>{"use strict";i();var Pu=gt();An.exports=function(e,r,o,n,s){var a=new Error(e);return Pu(a,r,o,n,s)}});var cr=x((Kp,On)=>{"use strict";i();var Nu=vt();On.exports=function(e,r,o){var n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):r(Nu("Request failed with status code "+o.status,o.config,null,o.request,o))}});var Fn=x((Zp,Sn)=>{"use strict";i();Sn.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var kn=x((ef,In)=>{"use strict";i();In.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var lr=x((rf,Rn)=>{"use strict";i();var Du=Fn(),qu=kn();Rn.exports=function(e,r){return e&&!Du(r)?qu(e,r):r}});var yt=x((nf,Nn)=>{"use strict";i();var Oe=j();function Pn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Nn.exports=function(e,r,o){if(!r)return e;var n;if(o)n=o(r);else if(Oe.isURLSearchParams(r))n=r.toString();else{var s=[];Oe.forEach(r,function(c,v){c===null||typeof c>"u"||(Oe.isArray(c)?v=v+"[]":c=[c],Oe.forEach(c,function(h){Oe.isDate(h)?h=h.toISOString():Oe.isObject(h)&&(h=JSON.stringify(h)),s.push(Pn(v)+"="+Pn(h))}))}),n=s.join("&")}if(n){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}});var qn=x((af,Dn)=>{"use strict";i();var Se=1e3,Fe=Se*60,Ie=Fe*60,ge=Ie*24,Lu=ge*7,Uu=ge*365.25;Dn.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Hu(t);if(r==="number"&&isFinite(t))return e.long?ju(t):Mu(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Hu(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*Uu;case"weeks":case"week":case"w":return r*Lu;case"days":case"day":case"d":return r*ge;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ie;case"minutes":case"minute":case"mins":case"min":case"m":return r*Fe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Se;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Mu(t){var e=Math.abs(t);return e>=ge?Math.round(t/ge)+"d":e>=Ie?Math.round(t/Ie)+"h":e>=Fe?Math.round(t/Fe)+"m":e>=Se?Math.round(t/Se)+"s":t+"ms"}function ju(t){var e=Math.abs(t);return e>=ge?xt(t,e,ge,"day"):e>=Ie?xt(t,e,Ie,"hour"):e>=Fe?xt(t,e,Fe,"minute"):e>=Se?xt(t,e,Se,"second"):t+" ms"}function xt(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}});var dr=x((cf,Ln)=>{"use strict";i();function Bu(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=n,r.enabled=a,r.humanize=qn(),r.destroy=v,Object.keys(t).forEach(p=>{r[p]=t[p]}),r.names=[],r.skips=[],r.formatters={};function e(p){let h=0;for(let m=0;m<p.length;m++)h=(h<<5)-h+p.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=e;function r(p){let h,m=null,y,b;function C(..._){if(!C.enabled)return;let F=C,H=Number(new Date),I=H-(h||H);F.diff=I,F.prev=h,F.curr=H,h=H,_[0]=r.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let A=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(Ce,ot)=>{if(Ce==="%%")return"%";A++;let ue=r.formatters[ot];if(typeof ue=="function"){let nt=_[A];Ce=ue.call(F,nt),_.splice(A,1),A--}return Ce}),r.formatArgs.call(F,_),(F.log||r.log).apply(F,_)}return C.namespace=p,C.useColors=r.useColors(),C.color=r.selectColor(p),C.extend=o,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(y!==r.namespaces&&(y=r.namespaces,b=r.enabled(p)),b),set:_=>{m=_}}),typeof r.init=="function"&&r.init(C),C}function o(p,h){let m=r(this.namespace+(typeof h>"u"?":":h)+p);return m.log=this.log,m}function n(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let h,m=(typeof p=="string"?p:"").split(/[\s,]+/),y=m.length;for(h=0;h<y;h++)m[h]&&(p=m[h].replace(/\*/g,".*?"),p[0]==="-"?r.skips.push(new RegExp("^"+p.slice(1)+"$")):r.names.push(new RegExp("^"+p+"$")))}function s(){let p=[...r.names.map(l),...r.skips.map(l).map(h=>"-"+h)].join(",");return r.enable(""),p}function a(p){if(p[p.length-1]==="*")return!0;let h,m;for(h=0,m=r.skips.length;h<m;h++)if(r.skips[h].test(p))return!1;for(h=0,m=r.names.length;h<m;h++)if(r.names[h].test(p))return!0;return!1}function l(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}function c(p){return p instanceof Error?p.stack||p.message:p}function v(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ln.exports=Bu});var Un=x((Y,wt)=>{"use strict";i();Y.formatArgs=Gu;Y.save=Wu;Y.load=zu;Y.useColors=$u;Y.storage=Ju();Y.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Y.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function $u(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Gu(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+wt.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}Y.log=console.debug||console.log||(()=>{});function Wu(t){try{t?Y.storage.setItem("debug",t):Y.storage.removeItem("debug")}catch{}}function zu(){let t;try{t=Y.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Ju(){try{return localStorage}catch{}}wt.exports=dr()(Y);var{formatters:Vu}=wt.exports;Vu.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Mn={};Oo(Mn,{createSupportsColor:()=>pr,default:()=>ec});import fr from"node:process";import Yu from"node:os";import Hn from"node:tty";function K(t,e=fr.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}function Ku(){if("FORCE_COLOR"in O)return O.FORCE_COLOR==="true"?1:O.FORCE_COLOR==="false"?0:O.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(O.FORCE_COLOR,10),3)}function Xu(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Zu(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let o=Ku();o!==void 0&&(Ct=o);let n=r?Ct:o;if(n===0)return 0;if(r){if(K("color=16m")||K("color=full")||K("color=truecolor"))return 3;if(K("color=256"))return 2}if(t&&!e&&n===void 0)return 0;let s=n||0;if(O.TERM==="dumb")return s;if(fr.platform==="win32"){let a=Yu.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in O)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(a=>a in O)||O.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in O)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in O&&"AGENT_NAME"in O)return 1;if(O.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in O){let a=Number.parseInt((O.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(O.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(O.TERM)||"COLORTERM"in O?1:s}function pr(t,e={}){let r=Zu(t,{streamIsTTY:t&&t.isTTY,...e});return Xu(r)}var O,Ct,Qu,ec,jn=$(()=>{"use strict";i();({env:O}=fr);K("no-color")||K("no-colors")||K("color=false")||K("color=never")?Ct=0:(K("color")||K("colors")||K("color=true")||K("color=always"))&&(Ct=1);Qu={stdout:pr({isTTY:Hn.isatty(1)}),stderr:pr({isTTY:Hn.isatty(2)})},ec=Qu});var $n=x((N,_t)=>{"use strict";i();var tc=P("tty"),bt=P("util");N.init=uc;N.log=ic;N.formatArgs=oc;N.save=sc;N.load=ac;N.useColors=rc;N.destroy=bt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");N.colors=[6,2,3,4,5,1];try{let t=(jn(),be(Mn));t&&(t.stderr||t).level>=2&&(N.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}N.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,s)=>s.toUpperCase()),o=process.env[e];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),t[r]=o,t},{});function rc(){return"colors"in N.inspectOpts?!!N.inspectOpts.colors:tc.isatty(process.stderr.fd)}function oc(t){let{namespace:e,useColors:r}=this;if(r){let o=this.color,n="\x1B[3"+(o<8?o:"8;5;"+o),s=` ${n};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
3
+ import{A as Ae,D as Lo,a as ut,b as ct,d as Q,e as Ee,f as ko,g as w,l as Po,q as Kt,r as No,s as Xt,t as lt,u as Do,w as Te,x as qo}from"./chunk-5IXE5FNR.js";import{a as Vt}from"./chunk-7WZDL63V.js";import{a as fe,c as G,d as oe,f as So,g as Fo,h as R,i as _e,l as Io,m as Ro,n as Yt}from"./chunk-GNLLOWHY.js";import{a as P,b as $,c as x,d as Oo,e as V,f as be,g as d,h as i}from"./chunk-HFDLXX7R.js";var He=x(W=>{"use strict";i();Object.defineProperty(W,"__esModule",{value:!0});W.ORIGINAL_PROTOCOL_HEADER=W.ORIGINAL_HOST_HEADER=W.ORIGINAL_URL_HEADER=W.SSR_PROTOCOL=W.SSR_HOST=W.NO_SCENARIO_FOUND=void 0;W.NO_SCENARIO_FOUND="NO_SCENARIO_FOUND";W.SSR_HOST="www.wix.com";W.SSR_PROTOCOL="http";W.ORIGINAL_URL_HEADER="x-wix-metro-original-url";W.ORIGINAL_HOST_HEADER="x-wix-metro-original-host";W.ORIGINAL_PROTOCOL_HEADER="x-wix-metro-original-protocol"});function Mo(){if(typeof document=="object")return document}function me(){return typeof self=="object"?self:global}var Me=$(()=>{"use strict";i()});function jo(t){let e=Pa(t);return e?e.split("=")[1]:""}function ka(){let t=Mo();return t&&t.cookie?decodeURIComponent(t.cookie).split(";"):[]}function Pa(t){return ka().filter(e=>t===e.split("=")[0].trim())[0]}var Bo=$(()=>{"use strict";i();Me()});function $o(){let t=jo(Na);return{[Da]:t}}var Na,Da,Go=$(()=>{"use strict";i();Bo();Na="XSRF-TOKEN",Da="x-xsrf-token"});function Wo(){let t=La();return{[qa]:t}}function La(){let t=me();return t&&t.commonConfig&&typeof t.commonConfig.brand=="string"?t.commonConfig.brand:""}var qa,zo=$(()=>{"use strict";i();Me();qa="x-wix-brand"});function Jo(){return Ha()||Ua()||Ma()}function Ua(){let t=me();if(t&&t.Wix&&t.Wix.Utils&&typeof t.Wix.Utils._getConsentPolicyHeader=="function")return t.Wix.Utils._getConsentPolicyHeader()}function Ha(){let t=me();if(t&&t.consentPolicyManager&&typeof t.consentPolicyManager._getConsentPolicyHeader=="function")return t.consentPolicyManager._getConsentPolicyHeader()}function Ma(){return{}}var Vo=$(()=>{"use strict";i();Me()});function Yo(t){return{authorization:t}}var Ko=$(()=>{"use strict";i()});function Xo(){return ja()?!!process.env.TEAMCITY_VERSION||!!process.env.BUILDKITE:!1}function ja(){return typeof process<"u"&&process.versions?.node!=null}var Zo=$(()=>{"use strict";i()});function Qo(t){let e=process.env.ARTIFACT_ID??process.env.APP_NAME??"";return{"X-Wix-Client-Artifact-Id":t??(Xo()?"":e)}}var en=$(()=>{"use strict";i();Zo()});function Wa(){let e=me()?.commonConfig;if(!e)return null;let r={},o=!1;return Object.keys(e).forEach(n=>{let s=Ga[n];s?(r[s]=e[n],o=!0):Ba.indexOf(n)<0&&typeof e[n]!="function"&&(r[n]=e[n],o=!0)}),o?r:null}var Ba,$a,Ga,tn,rn=$(()=>{"use strict";i();Me();Ba=["consentPolicy","consentPolicyHeader"],$a="commonConfig",Ga={bsi:"BSI"};tn=()=>{let t=Wa(),e=t?JSON.stringify(t):"";return{[$a]:encodeURIComponent(e)}}});var on=x((dt,je)=>{"use strict";i();(function(t){var e=typeof dt=="object"&&dt,r=typeof je=="object"&&je&&je.exports==e&&je,o=typeof global=="object"&&global;(o.global===o||o.window===o)&&(t=o);var n=function(m){this.message=m};n.prototype=new Error,n.prototype.name="InvalidCharacterError";var s=function(m){throw new n(m)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c=function(m){m=String(m).replace(l,"");var y=m.length;y%4==0&&(m=m.replace(/==?$/,""),y=m.length),(y%4==1||/[^+a-zA-Z0-9/]/.test(m))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var b=0,C,_,F="",H=-1;++H<y;)_=a.indexOf(m.charAt(H)),C=b%4?C*64+_:_,b++%4&&(F+=String.fromCharCode(255&C>>(-2*b&6)));return F},v=function(m){m=String(m),/[^\0-\xFF]/.test(m)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var y=m.length%3,b="",C=-1,_,F,H,I,A=m.length-y;++C<A;)_=m.charCodeAt(C)<<16,F=m.charCodeAt(++C)<<8,H=m.charCodeAt(++C),I=_+F+H,b+=a.charAt(I>>18&63)+a.charAt(I>>12&63)+a.charAt(I>>6&63)+a.charAt(I&63);return y==2?(_=m.charCodeAt(C)<<8,F=m.charCodeAt(++C),I=_+F,b+=a.charAt(I>>10)+a.charAt(I>>4&63)+a.charAt(I<<2&63)+"="):y==1&&(I=m.charCodeAt(C),b+=a.charAt(I>>2)+a.charAt(I<<4&63)+"=="),b},p={encode:v,decode:c,version:"1.0.0"};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)define(function(){return p});else if(e&&!e.nodeType)if(r)r.exports=p;else for(var h in p)p.hasOwnProperty(h)&&(e[h]=p[h]);else t.base64=p})(dt)});function sn({lang:t,locale:e,isPrimaryLanguage:r,signedInstance:o}){if(Ja({lang:t,locale:e,isPrimaryLanguage:r})){let n=Va(o);if(n!==void 0)return{[za]:[t,e,r?.toString(),n].join("|")}}return{}}function Ja({lang:t,locale:e,isPrimaryLanguage:r}){return t&&e&&/^(true|false)$/.test(r?.toString()||"")}function Va(t){try{let e=t?.startsWith("wixcode")?t?.split(".")[2]:t?.split(".")[1];if(e)return JSON.parse(nn.default.decode(e)).instanceId}catch{}}var nn,za,an=$(()=>{"use strict";i();nn=V(on()),za="x-wix-linguist"});var Be,un=$(()=>{"use strict";i();Be=class extends Error{constructor(e,r,o){super(`WixHeadersValidationError: expected ${r} to be ${e} but got ${JSON.stringify(o)}`)}}});function cn(t,e){if(typeof e!="boolean")throw new Be("boolean",t,e)}function ln(t,e){if(typeof e!="string")throw new Be("string",t,e)}var dn=$(()=>{"use strict";i();un()});var pn={};Oo(pn,{createHeaders:()=>Ya});function Ya(t={}){t={csrf:!0,signedInstance:"",...t},Ka(t);let e=[Wo(),Jo(),Yo(t.signedInstance),Qo(t.artifactId),tn(),sn({signedInstance:t.signedInstance,...t.multilingualOptions})];return t.csrf&&e.push($o()),e.filter(r=>Object.values(r).every(o=>o)).reduce((r,o)=>({...r,...o}),{})}function Ka(t){cn("opts.csrf",t.csrf),ln("opts.signedInstance",t.signedInstance)}var fn=$(()=>{"use strict";i();Go();zo();Vo();Ko();en();rn();an();dn()});var er=x(le=>{"use strict";i();Object.defineProperty(le,"__esModule",{value:!0});le.isNode=le.isWebWorker=le.isBrowser=void 0;function Xa(){return typeof window<"u"}le.isBrowser=Xa;function Za(){var t;return typeof self=="object"&&((t=self?.constructor)===null||t===void 0?void 0:t.name)==="DedicatedWorkerGlobalScope"}le.isWebWorker=Za;function Qa(){var t;return typeof process<"u"&&((t=process==null?void 0:process.versions)===null||t===void 0?void 0:t.node)!=null}le.isNode=Qa});var pt=x(T=>{"use strict";i();Object.defineProperty(T,"__esModule",{value:!0});T.toSearchQueryParams=T.shouldAllowUnmocked=T.isHttpMockServerEnabled=T.getGlobalConfig=T.changeHost=T.extractHost=T.extractProtocol=T.resolveProtocol=T.resolveHost=T.extractProp=T.silent=T.isAbsoluteUrl=void 0;var mn=He(),tr=er();function eu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return/(^https?:)|(^\/\/)/.test(t)}T.isAbsoluteUrl=eu;async function tu(t){try{await t()}catch{}}T.silent=tu;function ru(t,e){return e.split(".").filter(r=>r).reduce((r,o)=>r[o],t)}T.extractProp=ru;function ou(t){return t.baseURL?gn(t.baseURL):t.isSSR?mn.SSR_HOST:typeof self<"u"&&self.location?self.location.host:""}T.resolveHost=ou;function nu(t){return t.baseURL?hn(t.baseURL):t.isSSR?mn.SSR_PROTOCOL:typeof self<"u"&&self.location?self.location.protocol:""}T.resolveProtocol=nu;function hn(t){try{return new URL(t).protocol}catch{return vn(t).protocol}}T.extractProtocol=hn;function gn(t){let e;try{e=new URL(t)}catch{e=new URL(`http:${t}`)}try{return e.host}catch{return vn(t).host}}T.extractHost=gn;function vn(t){let e=new RegExp("^(.*:)//([A-Za-z0-9-.]+)(:[0-9]+)?(.*)$");try{let r=e.exec(t);return{protocol:r[1],host:r[2]}}catch{return{protocol:"http:",host:""}}}function iu(t,e){let r;try{r=new URL(t),r.host=e,r.protocol="http"}catch{r=new URL(`http://${e}`),r.pathname=t}return r.toString()}T.changeHost=iu;function rr(){let t={httpMockServer:{enabled:!1}},e;if((0,tr.isNode)()&&process.env.HTTP_CLIENT_GLOBAL_CONFIG)try{e=JSON.parse(process.env.HTTP_CLIENT_GLOBAL_CONFIG)}catch{}return e||((0,tr.isBrowser)()?e=window._httpClientGlobalConfig:(0,tr.isWebWorker)()),e||t}T.getGlobalConfig=rr;function su(){return rr().httpMockServer.enabled}T.isHttpMockServerEnabled=su;function au(){return rr().httpMockServer.allowUnmocked}T.shouldAllowUnmocked=au;function uu(t){return Object.entries(t).map(([e,r])=>`${e}=${encodeURIComponent(r)}`).flat().join("&")}T.toSearchQueryParams=uu});var yn=x((Lp,cu)=>{cu.exports=["wix.com","editorx.com","wix-code.com","wixapps.net","wixprod.net"]});var ft=x(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.isWixDomain=de.composeHeaders=de.requestIdOrEmptyString=void 0;var lu=(ct(),be(ut)),du=(fn(),be(pn)),xn=pt(),pu=lu.__importDefault(yn());function fu(t){var e;return((e=t?.headers)===null||e===void 0?void 0:e["x-wix-request-id"])||""}de.requestIdOrEmptyString=fu;var mu=({url:t,disableWixHeaders:e,wixHeadersOpts:r})=>!e&&wn(t)?(0,du.createHeaders)(r):{};de.composeHeaders=mu;function wn(t){if(!(0,xn.isAbsoluteUrl)(t))return!0;let r=`.${(0,xn.extractHost)(t)}`;return!!pu.default.find(n=>r.endsWith(`.${n}`))}de.isWixDomain=wn});var or=x(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.createHttpError=ie.HttpError=ie.axiosErrorFields=void 0;var hu=ft();ie.axiosErrorFields=["code","config","request","response","toJSON","__CANCEL__"];var mt=class t extends Error{constructor(e){super(e.message),this.isWixHttpError=!0,Object.setPrototypeOf(this,t.prototype),ie.axiosErrorFields.forEach(r=>{this[r]=e[r]})}get requestId(){return(0,hu.requestIdOrEmptyString)(this.response)}};ie.HttpError=mt;function gu(...t){return new mt(...t)}ie.createHttpError=gu});var nr=x((Bp,Cn)=>{"use strict";i();Cn.exports=function(e,r){return function(){for(var n=new Array(arguments.length),s=0;s<n.length;s++)n[s]=arguments[s];return e.apply(r,n)}}});var j=x((Gp,En)=>{"use strict";i();var vu=nr(),he=Object.prototype.toString;function ar(t){return he.call(t)==="[object Array]"}function ir(t){return typeof t>"u"}function yu(t){return t!==null&&!ir(t)&&t.constructor!==null&&!ir(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function xu(t){return he.call(t)==="[object ArrayBuffer]"}function wu(t){return typeof FormData<"u"&&t instanceof FormData}function Cu(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function bu(t){return typeof t=="string"}function _u(t){return typeof t=="number"}function bn(t){return t!==null&&typeof t=="object"}function ht(t){if(he.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Eu(t){return he.call(t)==="[object Date]"}function Tu(t){return he.call(t)==="[object File]"}function Au(t){return he.call(t)==="[object Blob]"}function _n(t){return he.call(t)==="[object Function]"}function Ou(t){return bn(t)&&_n(t.pipe)}function Su(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Fu(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Iu(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ur(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ar(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}function sr(){var t={};function e(n,s){ht(t[s])&&ht(n)?t[s]=sr(t[s],n):ht(n)?t[s]=sr({},n):ar(n)?t[s]=n.slice():t[s]=n}for(var r=0,o=arguments.length;r<o;r++)ur(arguments[r],e);return t}function Ru(t,e,r){return ur(e,function(n,s){r&&typeof n=="function"?t[s]=vu(n,r):t[s]=n}),t}function ku(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}En.exports={isArray:ar,isArrayBuffer:xu,isBuffer:yu,isFormData:wu,isArrayBufferView:Cu,isString:bu,isNumber:_u,isObject:bn,isPlainObject:ht,isUndefined:ir,isDate:Eu,isFile:Tu,isBlob:Au,isFunction:_n,isStream:Ou,isURLSearchParams:Su,isStandardBrowserEnv:Iu,forEach:ur,merge:sr,extend:Ru,trim:Fu,stripBOM:ku}});var gt=x((zp,Tn)=>{"use strict";i();Tn.exports=function(e,r,o,n,s){return e.config=r,o&&(e.code=o),e.request=n,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}});var vt=x((Vp,An)=>{"use strict";i();var Pu=gt();An.exports=function(e,r,o,n,s){var a=new Error(e);return Pu(a,r,o,n,s)}});var cr=x((Kp,On)=>{"use strict";i();var Nu=vt();On.exports=function(e,r,o){var n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):r(Nu("Request failed with status code "+o.status,o.config,null,o.request,o))}});var Fn=x((Zp,Sn)=>{"use strict";i();Sn.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var Rn=x((ef,In)=>{"use strict";i();In.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var lr=x((rf,kn)=>{"use strict";i();var Du=Fn(),qu=Rn();kn.exports=function(e,r){return e&&!Du(r)?qu(e,r):r}});var yt=x((nf,Nn)=>{"use strict";i();var Oe=j();function Pn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Nn.exports=function(e,r,o){if(!r)return e;var n;if(o)n=o(r);else if(Oe.isURLSearchParams(r))n=r.toString();else{var s=[];Oe.forEach(r,function(c,v){c===null||typeof c>"u"||(Oe.isArray(c)?v=v+"[]":c=[c],Oe.forEach(c,function(h){Oe.isDate(h)?h=h.toISOString():Oe.isObject(h)&&(h=JSON.stringify(h)),s.push(Pn(v)+"="+Pn(h))}))}),n=s.join("&")}if(n){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}});var qn=x((af,Dn)=>{"use strict";i();var Se=1e3,Fe=Se*60,Ie=Fe*60,ge=Ie*24,Lu=ge*7,Uu=ge*365.25;Dn.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Hu(t);if(r==="number"&&isFinite(t))return e.long?ju(t):Mu(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Hu(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*Uu;case"weeks":case"week":case"w":return r*Lu;case"days":case"day":case"d":return r*ge;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ie;case"minutes":case"minute":case"mins":case"min":case"m":return r*Fe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Se;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Mu(t){var e=Math.abs(t);return e>=ge?Math.round(t/ge)+"d":e>=Ie?Math.round(t/Ie)+"h":e>=Fe?Math.round(t/Fe)+"m":e>=Se?Math.round(t/Se)+"s":t+"ms"}function ju(t){var e=Math.abs(t);return e>=ge?xt(t,e,ge,"day"):e>=Ie?xt(t,e,Ie,"hour"):e>=Fe?xt(t,e,Fe,"minute"):e>=Se?xt(t,e,Se,"second"):t+" ms"}function xt(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}});var dr=x((cf,Ln)=>{"use strict";i();function Bu(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=n,r.enabled=a,r.humanize=qn(),r.destroy=v,Object.keys(t).forEach(p=>{r[p]=t[p]}),r.names=[],r.skips=[],r.formatters={};function e(p){let h=0;for(let m=0;m<p.length;m++)h=(h<<5)-h+p.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=e;function r(p){let h,m=null,y,b;function C(..._){if(!C.enabled)return;let F=C,H=Number(new Date),I=H-(h||H);F.diff=I,F.prev=h,F.curr=H,h=H,_[0]=r.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let A=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(Ce,ot)=>{if(Ce==="%%")return"%";A++;let ue=r.formatters[ot];if(typeof ue=="function"){let nt=_[A];Ce=ue.call(F,nt),_.splice(A,1),A--}return Ce}),r.formatArgs.call(F,_),(F.log||r.log).apply(F,_)}return C.namespace=p,C.useColors=r.useColors(),C.color=r.selectColor(p),C.extend=o,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(y!==r.namespaces&&(y=r.namespaces,b=r.enabled(p)),b),set:_=>{m=_}}),typeof r.init=="function"&&r.init(C),C}function o(p,h){let m=r(this.namespace+(typeof h>"u"?":":h)+p);return m.log=this.log,m}function n(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let h,m=(typeof p=="string"?p:"").split(/[\s,]+/),y=m.length;for(h=0;h<y;h++)m[h]&&(p=m[h].replace(/\*/g,".*?"),p[0]==="-"?r.skips.push(new RegExp("^"+p.slice(1)+"$")):r.names.push(new RegExp("^"+p+"$")))}function s(){let p=[...r.names.map(l),...r.skips.map(l).map(h=>"-"+h)].join(",");return r.enable(""),p}function a(p){if(p[p.length-1]==="*")return!0;let h,m;for(h=0,m=r.skips.length;h<m;h++)if(r.skips[h].test(p))return!1;for(h=0,m=r.names.length;h<m;h++)if(r.names[h].test(p))return!0;return!1}function l(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}function c(p){return p instanceof Error?p.stack||p.message:p}function v(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Ln.exports=Bu});var Un=x((Y,wt)=>{"use strict";i();Y.formatArgs=Gu;Y.save=Wu;Y.load=zu;Y.useColors=$u;Y.storage=Ju();Y.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Y.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function $u(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Gu(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+wt.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}Y.log=console.debug||console.log||(()=>{});function Wu(t){try{t?Y.storage.setItem("debug",t):Y.storage.removeItem("debug")}catch{}}function zu(){let t;try{t=Y.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Ju(){try{return localStorage}catch{}}wt.exports=dr()(Y);var{formatters:Vu}=wt.exports;Vu.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Mn={};Oo(Mn,{createSupportsColor:()=>pr,default:()=>ec});import fr from"node:process";import Yu from"node:os";import Hn from"node:tty";function K(t,e=fr.argv){let r=t.startsWith("-")?"":t.length===1?"-":"--",o=e.indexOf(r+t),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}function Ku(){if("FORCE_COLOR"in O)return O.FORCE_COLOR==="true"?1:O.FORCE_COLOR==="false"?0:O.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(O.FORCE_COLOR,10),3)}function Xu(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Zu(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let o=Ku();o!==void 0&&(Ct=o);let n=r?Ct:o;if(n===0)return 0;if(r){if(K("color=16m")||K("color=full")||K("color=truecolor"))return 3;if(K("color=256"))return 2}if(t&&!e&&n===void 0)return 0;let s=n||0;if(O.TERM==="dumb")return s;if(fr.platform==="win32"){let a=Yu.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in O)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(a=>a in O)||O.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in O)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in O&&"AGENT_NAME"in O)return 1;if(O.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in O){let a=Number.parseInt((O.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(O.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(O.TERM)||"COLORTERM"in O?1:s}function pr(t,e={}){let r=Zu(t,{streamIsTTY:t&&t.isTTY,...e});return Xu(r)}var O,Ct,Qu,ec,jn=$(()=>{"use strict";i();({env:O}=fr);K("no-color")||K("no-colors")||K("color=false")||K("color=never")?Ct=0:(K("color")||K("colors")||K("color=true")||K("color=always"))&&(Ct=1);Qu={stdout:pr({isTTY:Hn.isatty(1)}),stderr:pr({isTTY:Hn.isatty(2)})},ec=Qu});var $n=x((N,_t)=>{"use strict";i();var tc=P("tty"),bt=P("util");N.init=uc;N.log=ic;N.formatArgs=oc;N.save=sc;N.load=ac;N.useColors=rc;N.destroy=bt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");N.colors=[6,2,3,4,5,1];try{let t=(jn(),be(Mn));t&&(t.stderr||t).level>=2&&(N.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}N.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,s)=>s.toUpperCase()),o=process.env[e];return/^(yes|on|true|enabled)$/i.test(o)?o=!0:/^(no|off|false|disabled)$/i.test(o)?o=!1:o==="null"?o=null:o=Number(o),t[r]=o,t},{});function rc(){return"colors"in N.inspectOpts?!!N.inspectOpts.colors:tc.isatty(process.stderr.fd)}function oc(t){let{namespace:e,useColors:r}=this;if(r){let o=this.color,n="\x1B[3"+(o<8?o:"8;5;"+o),s=` ${n};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
4
4
  `).join(`
5
5
  `+s),t.push(n+"m+"+_t.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=nc()+e+" "+t[0]}function nc(){return N.inspectOpts.hideDate?"":new Date().toISOString()+" "}function ic(...t){return process.stderr.write(bt.format(...t)+`
6
6
  `)}function sc(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ac(){return process.env.DEBUG}function uc(t){t.inspectOpts={};let e=Object.keys(N.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=N.inspectOpts[e[r]]}_t.exports=dr()(N);var{formatters:Bn}=_t.exports;Bn.o=function(t){return this.inspectOpts.colors=this.useColors,bt.inspect(t,this.inspectOpts).split(`
7
- `).map(e=>e.trim()).join(" ")};Bn.O=function(t){return this.inspectOpts.colors=this.useColors,bt.inspect(t,this.inspectOpts)}});var Gn=x((vf,mr)=>{"use strict";i();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mr.exports=Un():mr.exports=$n()});var zn=x((xf,Wn)=>{"use strict";i();var $e;Wn.exports=function(){if(!$e){try{$e=Gn()("follow-redirects")}catch{}typeof $e!="function"&&($e=function(){})}$e.apply(null,arguments)}});var Or=x((Cf,Ar)=>{"use strict";i();var ze=P("url"),Ge=ze.URL,cc=P("http"),lc=P("https"),xr=P("stream").Writable,wr=P("assert"),Jn=zn(),Cr=!1;try{wr(new Ge)}catch(t){Cr=t.code==="ERR_INVALID_URL"}var dc=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],br=["abort","aborted","connect","error","socket","timeout"],_r=Object.create(null);br.forEach(function(t){_r[t]=function(e,r,o){this._redirectable.emit(t,e,r,o)}});var gr=Je("ERR_INVALID_URL","Invalid URL",TypeError),vr=Je("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),pc=Je("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",vr),fc=Je("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),mc=Je("ERR_STREAM_WRITE_AFTER_END","write after end"),hc=xr.prototype.destroy||Yn;function z(t,e){xr.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(o){try{r._processResponse(o)}catch(n){r.emit("error",n instanceof vr?n:new vr({cause:n}))}},this._performRequest()}z.prototype=Object.create(xr.prototype);z.prototype.abort=function(){Tr(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};z.prototype.destroy=function(t){return Tr(this._currentRequest,t),hc.call(this,t),this};z.prototype.write=function(t,e,r){if(this._ending)throw new mc;if(!ve(t)&&!yc(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(We(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new fc),this.abort())};z.prototype.end=function(t,e,r){if(We(t)?(r=t,t=e=null):We(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var o=this,n=this._currentRequest;this.write(t,e,function(){o._ended=!0,n.end(null,null,r)}),this._ending=!0}};z.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};z.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};z.prototype.setTimeout=function(t,e){var r=this;function o(a){a.setTimeout(t),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function n(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),o(a)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",n)}return e&&this.on("timeout",e),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",o),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){z.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(z.prototype,t,{get:function(){return this._currentRequest[t]}})});z.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};z.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=e.request(this._options,this._onNativeResponse);o._redirectable=this;for(var n of br)o.on(n,_r[n]);if(this._currentUrl=/^\//.test(this._options.path)?ze.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,l=this._requestBodyBuffers;(function c(v){if(o===a._currentRequest)if(v)a.emit("error",v);else if(s<l.length){var p=l[s++];o.finished||o.write(p.data,p.encoding,c)}else a._ended&&o.end()})()}};z.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Tr(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new pc;var o,n=this._options.beforeRedirect;n&&(o=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hr(/^content-/i,this._options.headers));var a=hr(/^host$/i,this._options.headers),l=Er(this._currentUrl),c=a||l.host,v=/^\w+:/.test(r)?this._currentUrl:ze.format(Object.assign(l,{host:c})),p=gc(r,v);if(Jn("redirecting to",p.href),this._isRedirect=!0,yr(p,this._options),(p.protocol!==l.protocol&&p.protocol!=="https:"||p.host!==c&&!vc(p.host,c))&&hr(/^(?:authorization|cookie)$/i,this._options.headers),We(n)){var h={headers:t.headers,statusCode:e},m={url:v,method:s,headers:o};n(this._options,h,m),this._sanitizeOptions(this._options)}this._performRequest()};function Vn(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(o){var n=o+":",s=r[n]=t[o],a=e[o]=Object.create(s);function l(v,p,h){return xc(v)?v=yr(v):ve(v)?v=yr(Er(v)):(h=p,p=Kn(v),v={protocol:n}),We(p)&&(h=p,p=null),p=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},v,p),p.nativeProtocols=r,!ve(p.host)&&!ve(p.hostname)&&(p.hostname="::1"),wr.equal(p.protocol,n,"protocol mismatch"),Jn("options",p),new z(p,h)}function c(v,p,h){var m=a.request(v,p,h);return m.end(),m}Object.defineProperties(a,{request:{value:l,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function Yn(){}function Er(t){var e;if(Cr)e=new Ge(t);else if(e=Kn(ze.parse(t)),!ve(e.protocol))throw new gr({input:t});return e}function gc(t,e){return Cr?new Ge(t,e):Er(ze.resolve(e,t))}function Kn(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new gr({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new gr({input:t.href||t});return t}function yr(t,e){var r=e||{};for(var o of dc)r[o]=t[o];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function hr(t,e){var r;for(var o in e)t.test(o)&&(r=e[o],delete e[o]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Je(t,e,r){function o(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return o.prototype=new(r||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),o}function Tr(t,e){for(var r of br)t.removeListener(r,_r[r]);t.on("error",Yn),t.destroy(e)}function vc(t,e){wr(ve(t)&&ve(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function ve(t){return typeof t=="string"||t instanceof String}function We(t){return typeof t=="function"}function yc(t){return typeof t=="object"&&"length"in t}function xc(t){return Ge&&t instanceof Ge}Ar.exports=Vn({http:cc,https:lc});Ar.exports.wrap=Vn});var Sr=x((_f,wc)=>{wc.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var Tt=x((Ef,ti)=>{"use strict";i();var Ve=j(),Xn=cr(),Cc=lr(),bc=yt(),_c=P("http"),Ec=P("https"),Tc=Or().http,Ac=Or().https,Zn=P("url"),Oc=P("zlib"),Sc=Sr(),Et=vt(),Fr=gt(),Qn=/https:?/;function ei(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var o=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+o}t.beforeRedirect=function(s){s.headers.host=s.host,ei(s,e,s.href)}}ti.exports=function(e){return new Promise(function(o,n){var s=function(E){o(E)},a=function(E){n(E)},l=e.data,c=e.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+Sc.version,l&&!Ve.isStream(l)){if(!Buffer.isBuffer(l))if(Ve.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else if(Ve.isString(l))l=Buffer.from(l,"utf-8");else return a(Et("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c["Content-Length"]=l.length}var v=void 0;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";v=p+":"+h}var m=Cc(e.baseURL,e.url),y=Zn.parse(m),b=y.protocol||"http:";if(!v&&y.auth){var C=y.auth.split(":"),_=C[0]||"",F=C[1]||"";v=_+":"+F}v&&delete c.Authorization;var H=Qn.test(b),I=H?e.httpsAgent:e.httpAgent,A={path:bc(y.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:I,agents:{http:e.httpAgent,https:e.httpsAgent},auth:v};e.socketPath?A.socketPath=e.socketPath:(A.hostname=y.hostname,A.port=y.port);var Z=e.proxy;if(!Z&&Z!==!1){var Ce=b.slice(0,-1)+"_proxy",ot=process.env[Ce]||process.env[Ce.toUpperCase()];if(ot){var ue=Zn.parse(ot),nt=process.env.no_proxy||process.env.NO_PROXY,Co=!0;if(nt){var _a=nt.split(",").map(function(E){return E.trim()});Co=!_a.some(function(E){return E?E==="*"||E[0]==="."&&y.hostname.substr(y.hostname.length-E.length)===E?!0:y.hostname===E:!1})}if(Co&&(Z={host:ue.hostname,port:ue.port,protocol:ue.protocol},ue.auth)){var bo=ue.auth.split(":");Z.auth={username:bo[0],password:bo[1]}}}}Z&&(A.headers.host=y.hostname+(y.port?":"+y.port:""),ei(A,Z,b+"//"+y.hostname+(y.port?":"+y.port:"")+A.path));var it,_o=H&&(Z?Qn.test(Z.protocol):!0);e.transport?it=e.transport:e.maxRedirects===0?it=_o?Ec:_c:(e.maxRedirects&&(A.maxRedirects=e.maxRedirects),it=_o?Ac:Tc),e.maxBodyLength>-1&&(A.maxBodyLength=e.maxBodyLength);var M=it.request(A,function(E){if(!M.aborted){var pe=E,st=E.req||M;if(E.statusCode!==204&&st.method!=="HEAD"&&e.decompress!==!1)switch(E.headers["content-encoding"]){case"gzip":case"compress":case"deflate":pe=pe.pipe(Oc.createUnzip()),delete E.headers["content-encoding"];break}var at={status:E.statusCode,statusText:E.statusMessage,headers:E.headers,config:e,request:st};if(e.responseType==="stream")at.data=pe,Xn(s,a,at);else{var Eo=[],To=0;pe.on("data",function(re){Eo.push(re),To+=re.length,e.maxContentLength>-1&&To>e.maxContentLength&&(pe.destroy(),a(Et("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,st)))}),pe.on("error",function(re){M.aborted||a(Fr(re,e,null,st))}),pe.on("end",function(){var re=Buffer.concat(Eo);e.responseType!=="arraybuffer"&&(re=re.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(re=Ve.stripBOM(re))),at.data=re,Xn(s,a,at)})}}});if(M.on("error",function(E){M.aborted&&E.code!=="ERR_FR_TOO_MANY_REDIRECTS"||a(Fr(E,e,null,M))}),e.timeout){var Jt=parseInt(e.timeout,10);if(isNaN(Jt)){a(Et("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",M));return}M.setTimeout(Jt,function(){M.abort(),a(Et("timeout of "+Jt+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",M))})}e.cancelToken&&e.cancelToken.promise.then(function(E){M.aborted||(M.abort(),a(E))}),Ve.isStream(l)?l.on("error",function(E){a(Fr(E,e,null,M))}).pipe(M):M.end(l)})}});var oi=x((Af,ri)=>{"use strict";i();var Fc=j();function At(){this.handlers=[]}At.prototype.use=function(e,r,o){return this.handlers.push({fulfilled:e,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};At.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};At.prototype.forEach=function(e){Fc.forEach(this.handlers,function(o){o!==null&&e(o)})};ri.exports=At});var ii=x((Sf,ni)=>{"use strict";i();var Ic=j();ni.exports=function(e,r){Ic.forEach(e,function(n,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=n,delete e[s])})}});var ai=x((If,si)=>{"use strict";i();var Ot=j();si.exports=Ot.isStandardBrowserEnv()?function(){return{write:function(r,o,n,s,a,l){var c=[];c.push(r+"="+encodeURIComponent(o)),Ot.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),Ot.isString(s)&&c.push("path="+s),Ot.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var ci=x((Rf,ui)=>{"use strict";i();var Ir=j(),kc=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];ui.exports=function(e){var r={},o,n,s;return e&&Ir.forEach(e.split(`
8
- `),function(l){if(s=l.indexOf(":"),o=Ir.trim(l.substr(0,s)).toLowerCase(),n=Ir.trim(l.substr(s+1)),o){if(r[o]&&kc.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([n]):r[o]=r[o]?r[o]+", "+n:n}}),r}});var pi=x((Nf,di)=>{"use strict";i();var li=j();di.exports=li.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function n(s){var a=s;return e&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=n(window.location.href),function(a){var l=li.isString(a)?n(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}()});var Rr=x((qf,fi)=>{"use strict";i();var St=j(),Rc=cr(),Pc=ai(),Nc=yt(),Dc=lr(),qc=ci(),Lc=pi(),kr=vt();fi.exports=function(e){return new Promise(function(o,n){var s=e.data,a=e.headers,l=e.responseType;St.isFormData(s)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(v+":"+p)}var h=Dc(e.baseURL,e.url);c.open(e.method.toUpperCase(),Nc(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(c){var b="getAllResponseHeaders"in c?qc(c.getAllResponseHeaders()):null,C=!l||l==="text"||l==="json"?c.responseText:c.response,_={data:C,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};Rc(o,n,_),c=null}}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(n(kr("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){n(kr("Network Error",e,null,c)),c=null},c.ontimeout=function(){var C="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),n(kr(C,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},St.isStandardBrowserEnv()){var y=(e.withCredentials||Lc(h))&&e.xsrfCookieName?Pc.read(e.xsrfCookieName):void 0;y&&(a[e.xsrfHeaderName]=y)}"setRequestHeader"in c&&St.forEach(a,function(C,_){typeof s>"u"&&_.toLowerCase()==="content-type"?delete a[_]:c.setRequestHeader(_,C)}),St.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(C){c&&(c.abort(),n(C),c=null)}),s||(s=null),c.send(s)})}});var It=x((Uf,gi)=>{"use strict";i();var D=j(),mi=ii(),Uc=gt(),Hc={"Content-Type":"application/x-www-form-urlencoded"};function hi(t,e){!D.isUndefined(t)&&D.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Mc(){var t;return typeof XMLHttpRequest<"u"?t=Rr():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Tt()),t}function jc(t,e,r){if(D.isString(t))try{return(e||JSON.parse)(t),D.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(t)}var Ft={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Mc(),transformRequest:[function(e,r){return mi(r,"Accept"),mi(r,"Content-Type"),D.isFormData(e)||D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e)?e:D.isArrayBufferView(e)?e.buffer:D.isURLSearchParams(e)?(hi(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):D.isObject(e)||r&&r["Content-Type"]==="application/json"?(hi(r,"application/json"),jc(e)):e}],transformResponse:[function(e){var r=this.transitional,o=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,s=!o&&this.responseType==="json";if(s||n&&D.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?Uc(a,this,"E_JSON_PARSE"):a}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Ft.headers={common:{Accept:"application/json, text/plain, */*"}};D.forEach(["delete","get","head"],function(e){Ft.headers[e]={}});D.forEach(["post","put","patch"],function(e){Ft.headers[e]=D.merge(Hc)});gi.exports=Ft});var yi=x((Mf,vi)=>{"use strict";i();var Bc=j(),$c=It();vi.exports=function(e,r,o){var n=this||$c;return Bc.forEach(o,function(a){e=a.call(n,e,r)}),e}});var Pr=x((Bf,xi)=>{"use strict";i();xi.exports=function(e){return!!(e&&e.__CANCEL__)}});var bi=x((Gf,Ci)=>{"use strict";i();var wi=j(),Nr=yi(),Gc=Pr(),Wc=It();function Dr(t){t.cancelToken&&t.cancelToken.throwIfRequested()}Ci.exports=function(e){Dr(e),e.headers=e.headers||{},e.data=Nr.call(e,e.data,e.headers,e.transformRequest),e.headers=wi.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),wi.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var r=e.adapter||Wc.adapter;return r(e).then(function(n){return Dr(e),n.data=Nr.call(e,n.data,n.headers,e.transformResponse),n},function(n){return Gc(n)||(Dr(e),n&&n.response&&(n.response.data=Nr.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})}});var qr=x((zf,_i)=>{"use strict";i();var L=j();_i.exports=function(e,r){r=r||{};var o={},n=["url","method","data"],s=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function c(m,y){return L.isPlainObject(m)&&L.isPlainObject(y)?L.merge(m,y):L.isPlainObject(y)?L.merge({},y):L.isArray(y)?y.slice():y}function v(m){L.isUndefined(r[m])?L.isUndefined(e[m])||(o[m]=c(void 0,e[m])):o[m]=c(e[m],r[m])}L.forEach(n,function(y){L.isUndefined(r[y])||(o[y]=c(void 0,r[y]))}),L.forEach(s,v),L.forEach(a,function(y){L.isUndefined(r[y])?L.isUndefined(e[y])||(o[y]=c(void 0,e[y])):o[y]=c(void 0,r[y])}),L.forEach(l,function(y){y in r?o[y]=c(e[y],r[y]):y in e&&(o[y]=c(void 0,e[y]))});var p=n.concat(s).concat(a).concat(l),h=Object.keys(e).concat(Object.keys(r)).filter(function(y){return p.indexOf(y)===-1});return L.forEach(h,v),o}});var Si=x((Vf,Oi)=>{"use strict";i();var Ti=Sr(),Lr={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Lr[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});var Ei={},zc=Ti.version.split(".");function Ai(t,e){for(var r=e?e.split("."):zc,o=t.split("."),n=0;n<3;n++){if(r[n]>o[n])return!0;if(r[n]<o[n])return!1}return!1}Lr.transitional=function(e,r,o){var n=r&&Ai(r);function s(a,l){return"[Axios v"+Ti.version+"] Transitional option '"+a+"'"+l+(o?". "+o:"")}return function(a,l,c){if(e===!1)throw new Error(s(l," has been removed in "+r));return n&&!Ei[l]&&(Ei[l]=!0,console.warn(s(l," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,l,c):!0}};function Jc(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var o=Object.keys(t),n=o.length;n-- >0;){var s=o[n],a=e[s];if(a){var l=t[s],c=l===void 0||a(l,s,t);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}Oi.exports={isOlderVersion:Ai,assertOptions:Jc,validators:Lr}});var Ni=x((Kf,Pi)=>{"use strict";i();var ki=j(),Vc=yt(),Fi=oi(),Ii=bi(),kt=qr(),Ri=Si(),ke=Ri.validators;function Ye(t){this.defaults=t,this.interceptors={request:new Fi,response:new Fi}}Ye.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=kt(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Ri.assertOptions(r,{silentJSONParsing:ke.transitional(ke.boolean,"1.0.0"),forcedJSONParsing:ke.transitional(ke.boolean,"1.0.0"),clarifyTimeoutError:ke.transitional(ke.boolean,"1.0.0")},!1);var o=[],n=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(n=n&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});var s=[];this.interceptors.response.forEach(function(m){s.push(m.fulfilled,m.rejected)});var a;if(!n){var l=[Ii,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(s),a=Promise.resolve(e);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=e;o.length;){var v=o.shift(),p=o.shift();try{c=v(c)}catch(h){p(h);break}}try{a=Ii(c)}catch(h){return Promise.reject(h)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};Ye.prototype.getUri=function(e){return e=kt(this.defaults,e),Vc(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};ki.forEach(["delete","get","head","options"],function(e){Ye.prototype[e]=function(r,o){return this.request(kt(o||{},{method:e,url:r,data:(o||{}).data}))}});ki.forEach(["post","put","patch"],function(e){Ye.prototype[e]=function(r,o,n){return this.request(kt(n||{},{method:e,url:r,data:o}))}});Pi.exports=Ye});var Hr=x((Zf,Di)=>{"use strict";i();function Ur(t){this.message=t}Ur.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ur.prototype.__CANCEL__=!0;Di.exports=Ur});var Li=x((em,qi)=>{"use strict";i();var Yc=Hr();function Rt(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(n){e=n});var r=this;t(function(n){r.reason||(r.reason=new Yc(n),e(r.reason))})}Rt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Rt.source=function(){var e,r=new Rt(function(n){e=n});return{token:r,cancel:e}};qi.exports=Rt});var Hi=x((rm,Ui)=>{"use strict";i();Ui.exports=function(e){return function(o){return e.apply(null,o)}}});var ji=x((nm,Mi)=>{"use strict";i();Mi.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Gi=x((sm,Mr)=>{"use strict";i();var Bi=j(),Kc=nr(),Pt=Ni(),Xc=qr(),Zc=It();function $i(t){var e=new Pt(t),r=Kc(Pt.prototype.request,e);return Bi.extend(r,Pt.prototype,e),Bi.extend(r,e),r}var ee=$i(Zc);ee.Axios=Pt;ee.create=function(e){return $i(Xc(ee.defaults,e))};ee.Cancel=Hr();ee.CancelToken=Li();ee.isCancel=Pr();ee.all=function(e){return Promise.all(e)};ee.spread=Hi();ee.isAxiosError=ji();Mr.exports=ee;Mr.exports.default=ee});var zi=x((um,Wi)=>{"use strict";i();Wi.exports=Gi()});var Ji=x(se=>{"use strict";i();Object.defineProperty(se,"__esModule",{value:!0});se.getUrlHeaders=se.buildAllHeaders=se.buildOptions=void 0;var jr=He(),Qc=ft(),Re=pt(),el=({requestOptions:t,urlObject:e,headers:r,globalConfig:o={httpMockServer:{enabled:!1}}})=>{let{url:n,params:s}=t;if(s&&typeof s!="object")throw new Error("Search params must be an object");let a=ol(n,o);return Object.assign(Object.assign(Object.assign({},t),a),{headers:r})};se.buildOptions=el;var tl=(t,e,r={httpMockServer:{enabled:!1}},o)=>{let{url:n,disableWixHeaders:s,headers:a}=t,l=(0,Qc.composeHeaders)({url:n,disableWixHeaders:s,wixHeadersOpts:e}),c=(0,se.getUrlHeaders)(r,t,o);return Object.assign(Object.assign(Object.assign({},l),il(a)),c)};se.buildAllHeaders=tl;var rl=(t,e,r)=>{let{url:o,params:n}=e,{host:s,protocol:a}=r;return t.httpMockServer.enabled?{[jr.ORIGINAL_URL_HEADER]:nl(o,n),[jr.ORIGINAL_HOST_HEADER]:(0,Re.isAbsoluteUrl)(o)?(0,Re.extractHost)(o):s,[jr.ORIGINAL_PROTOCOL_HEADER]:(0,Re.isAbsoluteUrl)(o)?(0,Re.extractProtocol)(o):a}:{}};se.getUrlHeaders=rl;function ol(t,e){if(e.httpMockServer.enabled){let r=new URL(e.httpMockServer.mockServerUrl);return{url:(0,Re.changeHost)(t,r.host)}}return{}}function nl(t,e){let{pathname:r,searchParams:o}=new URL(t,"http://unused.com");if(e=e||o,e){let n=(0,Re.toSearchQueryParams)(e)||e.toString(),s=n?`?${n}`:"";return`${r}${s}`}return r}function il(t){return t=t||{},Object.keys(t).reduce((r,o)=>Object.assign(Object.assign({},r),{[o.toLowerCase()]:t[o]}),{})}});var Xi=x(Ne=>{"use strict";i();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createHttpClient=Ne.HttpClient=void 0;var Yi=(ct(),be(ut)),Ke=Yi.__importDefault(zi()),sl=Yi.__importDefault(Rr()),Br=He(),Ki=er(),al=or(),Vi=ft(),Nt=Ji(),ne=pt(),Pe=class{constructor(e={}){this.opts=e,this.opts=ul(this.opts),this.client=Ke.default.create(this.opts),this.flags={sanitizerPocEnabled:pl()}}static isHttpError(e){return!!e?.isWixHttpError}async request(e,r){var o,n;let s=(0,ne.resolveHost)(this.opts),l={protocol:(0,ne.resolveProtocol)(this.opts),host:s},c=typeof e=="function"?e({isSSR:this.opts.isSSR,host:s}):e,v=r?.signedInstance||await((n=(o=this.opts).getAppToken)===null||n===void 0?void 0:n.call(o))||"",p=this.getHeaders(c,v,l),h=(0,Nt.buildOptions)({requestOptions:c,urlObject:l,headers:p,globalConfig:(0,ne.getGlobalConfig)()});this.opts.isSSR&&(h.baseURL=this.opts.baseURL?this.opts.baseURL:`${Br.SSR_PROTOCOL}://${Br.SSR_HOST}`);try{let m=await this.client.request(h).catch(y=>this.maybeFallbackRequest(y,c,l,v));return this.transformResponse(m,c)}catch(m){this.handleRequestError(m,h)}}async get(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"GET"});return this.request(o)}async delete(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"DELETE"});return this.request(o)}async head(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"HEAD"});return this.request(o)}async options(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"OPTIONS"});return this.request(o)}async post(e,r,o){let n=Object.assign(Object.assign({},o),{url:e,data:r,method:"POST"});return this.request(n)}async put(e,r,o){let n=Object.assign(Object.assign({},o),{url:e,data:r,method:"PUT"});return this.request(n)}async patch(e,r,o){let n=Object.assign(Object.assign({},o),{url:e,data:r,method:"PATCH"});return this.request(n)}get CancelToken(){return Ke.default.CancelToken}get isCancel(){return Ke.default.isCancel}getHeaders(e,r,o){if(typeof this.opts.createHeaders=="function")return this.getCustomHeaders(e,r,o);let n={signedInstance:r,artifactId:this.opts.artifactId,csrf:!1,multilingualOptions:this.opts.multilingualOptions};return(0,Nt.buildAllHeaders)(e,n,(0,ne.getGlobalConfig)(),o)}getCustomHeaders(e,r,o){let{url:n}=e,s=r&&(0,Vi.isWixDomain)(n)?{authorization:r}:{},a=this.opts.createHeaders(),l=(0,Nt.getUrlHeaders)((0,ne.getGlobalConfig)(),e,o);return Object.assign(Object.assign(Object.assign({},l),a),s)}handleRequestError(e,r){let o=(0,al.createHttpError)(e);throw(0,ne.silent)(()=>{var n;return(n=r.onError)===null||n===void 0?void 0:n.call(r,o)}),o}maybeFallbackRequest(e,r,o,n){var s,a,l;if((0,ne.isHttpMockServerEnabled)()&&(0,ne.shouldAllowUnmocked)()&&((s=e.response)===null||s===void 0?void 0:s.status)===404&&((l=(a=e.response)===null||a===void 0?void 0:a.data)===null||l===void 0?void 0:l.msg)===Br.NO_SCENARIO_FOUND){let v=this.getHeaders(r,n,o),p=(0,Nt.buildOptions)({requestOptions:r,urlObject:o,headers:v});return this.client.request(p)}throw e}transformResponse(e,r){let o=(0,Vi.requestIdOrEmptyString)(e),n=ll(e,r,this.flags);return Object.assign(Object.assign({},e),{data:n,requestId:o})}};Ne.HttpClient=Pe;Pe.CancelToken=Ke.default.CancelToken;Pe.isCancel=Ke.default.isCancel;function ul(t){let e=t.adapter;return e||(e=sl.default,(0,Ki.isNode)()&&(e=cl())),Object.assign({adapter:e,isSSR:!1},t)}function cl(){return typeof __webpack_require__=="function"?__non_webpack_require__("axios/lib/adapters/http"):Tt()}function ll(t,e,r){let o=dl(t,r);if(e._pickResponseBody&&(o=(0,ne.extractProp)(t.data,e._pickResponseBody)),e._logs){let n=(0,ne.extractProp)(t.data,e._logs);n?.length&&n.map(s=>console.log(...s))}return o}function dl(t,e){try{if(e.sanitizerPocEnabled){let r=performance.now(),o=new Sanitizer;if(t.headers["content-type"].includes("application/json")){console.log("[+] JSON Response detected, sanitizing data");let n=function(a){try{return Object.keys(a).forEach(l=>{typeof a[l]=="string"?a[l]=o.sanitizeFor("span",a[l]).innerHTML:typeof a[l]=="object"&&(a[l]=n(a[l]))}),a}catch(l){console.log(l)}},s=performance.now();return console.log(`Time taken: ${s-r} milliseconds.`),n(t.data)}}}catch(r){console.log("[+] Sanitizer API not supported: %o",r)}return t.data}function pl(){var t;try{return(0,Ki.isBrowser)()&&new URLSearchParams(((t=window?.location)===null||t===void 0?void 0:t.hash)||"").get("sanitizerPOC")==="true"}catch{return!1}}function fl(...t){return new Pe(...t)}Ne.createHttpClient=fl});var Zi=x(De=>{"use strict";i();Object.defineProperty(De,"__esModule",{value:!0});De.HttpClient=De.createHttpClient=void 0;var ml=(ct(),be(ut)),hl=ml.__importDefault(Tt()),gl=Xi(),Dt=class extends gl.HttpClient{constructor(e={}){super(Object.assign({adapter:hl.default},e))}};De.HttpClient=Dt;function vl(...t){return new Dt(...t)}De.createHttpClient=vl});var es=x(Qi=>{"use strict";i();Object.defineProperty(Qi,"__esModule",{value:!0})});var qt=x(q=>{"use strict";i();Object.defineProperty(q,"__esModule",{value:!0});q.HttpClient=q.createHttpClient=q.HttpError=q.createHttpError=q.ORIGINAL_URL_HEADER=q.ORIGINAL_PROTOCOL_HEADER=q.ORIGINAL_HOST_HEADER=void 0;var yl=(ct(),be(ut)),$r=He();Object.defineProperty(q,"ORIGINAL_HOST_HEADER",{enumerable:!0,get:function(){return $r.ORIGINAL_HOST_HEADER}});Object.defineProperty(q,"ORIGINAL_PROTOCOL_HEADER",{enumerable:!0,get:function(){return $r.ORIGINAL_PROTOCOL_HEADER}});Object.defineProperty(q,"ORIGINAL_URL_HEADER",{enumerable:!0,get:function(){return $r.ORIGINAL_URL_HEADER}});var ts=or();Object.defineProperty(q,"createHttpError",{enumerable:!0,get:function(){return ts.createHttpError}});Object.defineProperty(q,"HttpError",{enumerable:!0,get:function(){return ts.HttpError}});var rs=Zi();Object.defineProperty(q,"createHttpClient",{enumerable:!0,get:function(){return rs.createHttpClient}});Object.defineProperty(q,"HttpClient",{enumerable:!0,get:function(){return rs.HttpClient}});yl.__exportStar(es(),q)});var fs=x((ih,ps)=>{"use strict";i();function X(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}ps.exports=X;X.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};X.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};X.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},r),this._options.unref&&this._timer.unref(),!0};X.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};X.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};X.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};X.prototype.start=X.prototype.try;X.prototype.errors=function(){return this._errors};X.prototype.attempts=function(){return this._attempts};X.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,o=0;o<this._errors.length;o++){var n=this._errors[o],s=n.message,a=(t[s]||0)+1;t[s]=a,a>=r&&(e=n,r=a)}return e}});var ms=x(xe=>{"use strict";i();var Rl=fs();xe.operation=function(t){var e=xe.timeouts(t);return new Rl(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};xe.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<e.retries;n++)o.push(this.createTimeout(n,e));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,e)),o.sort(function(s,a){return s-a}),o};xe.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,o=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return o=Math.min(o,e.maxTimeout),o};xe.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var o in t)typeof t[o]=="function"&&r.push(o)}for(var n=0;n<r.length;n++){var s=r[n],a=t[s];t[s]=function(c){var v=xe.operation(e),p=Array.prototype.slice.call(arguments,1),h=p.pop();p.push(function(m){v.retry(m)||(m&&(arguments[0]=v.mainError()),h.apply(this,arguments))}),v.attempt(function(){c.apply(t,p)})}.bind(t,a),t[s].options=e}}});var gs=x((ch,hs)=>{"use strict";i();hs.exports=ms()});var ho=x((tv,Xs)=>{"use strict";i();var Ks=P("fs"),mo;function wd(){try{return Ks.statSync("/.dockerenv"),!0}catch{return!1}}function Cd(){try{return Ks.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Xs.exports=()=>(mo===void 0&&(mo=wd()||Cd()),mo)});var ea=x((ov,go)=>{"use strict";i();var bd=P("os"),_d=P("fs"),Zs=ho(),Qs=()=>{if(process.platform!=="linux")return!1;if(bd.release().toLowerCase().includes("microsoft"))return!Zs();try{return _d.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Zs():!1}catch{return!1}};process.env.__IS_WSL_TEST__?go.exports=Qs:go.exports=Qs()});var ra=x((iv,ta)=>{"use strict";i();ta.exports=(t,e,r)=>{let o=n=>Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let n=r();return o(n),n},set(n){o(n)}}),t}});var ca=x((av,ua)=>{"use strict";i();var Ed=P("path"),Td=P("child_process"),{promises:Bt,constants:aa}=P("fs"),jt=ea(),Ad=ho(),yo=ra(),oa=Ed.join(d,"xdg-open"),{platform:Ue,arch:na}=process,Od=()=>{try{return Bt.statSync("/run/.containerenv"),!0}catch{return!1}},vo;function Sd(){return vo===void 0&&(vo=Od()||Ad()),vo}var Fd=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",o=!1;try{await Bt.access(r,aa.F_OK),o=!0}catch{}if(!o)return t;let n=await Bt.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(n);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),ia=async(t,e)=>{let r;for(let o of t)try{return await e(o)}catch(n){r=n}throw r},$t=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return ia(t.app,l=>$t({...t,app:l}));let{name:e,arguments:r=[]}=t.app||{};if(r=[...r],Array.isArray(e))return ia(e,l=>$t({...t,app:{name:l,arguments:r}}));let o,n=[],s={};if(Ue==="darwin")o="open",t.wait&&n.push("--wait-apps"),t.background&&n.push("--background"),t.newInstance&&n.push("--new"),e&&n.push("-a",e);else if(Ue==="win32"||jt&&!Sd()&&!e){let l=await Fd();o=jt?`${l}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,n.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),jt||(s.windowsVerbatimArguments=!0);let c=["Start"];t.wait&&c.push("-Wait"),e?(c.push(`"\`"${e}\`""`,"-ArgumentList"),t.target&&r.unshift(t.target)):t.target&&c.push(`"${t.target}"`),r.length>0&&(r=r.map(v=>`"\`"${v}\`""`),c.push(r.join(","))),t.target=Buffer.from(c.join(" "),"utf16le").toString("base64")}else{if(e)o=e;else{let l=!d||d==="/",c=!1;try{await Bt.access(oa,aa.X_OK),c=!0}catch{}o=process.versions.electron||Ue==="android"||l||!c?"xdg-open":oa}r.length>0&&n.push(...r),t.wait||(s.stdio="ignore",s.detached=!0)}t.target&&n.push(t.target),Ue==="darwin"&&r.length>0&&n.push("--args",...r);let a=Td.spawn(o,n,s);return t.wait?new Promise((l,c)=>{a.once("error",c),a.once("close",v=>{if(!t.allowNonzeroExitCode&&v>0){c(new Error(`Exited with code ${v}`));return}l(a)})}):(a.unref(),a)},xo=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return $t({...e,target:t})},Id=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=e||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return $t({...e,app:{name:t,arguments:r}})};function sa(t){if(typeof t=="string"||Array.isArray(t))return t;let{[na]:e}=t;if(!e)throw new Error(`${na} is not supported`);return e}function wo({[Ue]:t},{wsl:e}){if(e&&jt)return sa(e);if(!t)throw new Error(`${Ue} is not supported`);return sa(t)}var Gt={};yo(Gt,"chrome",()=>wo({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));yo(Gt,"firefox",()=>wo({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));yo(Gt,"edge",()=>wo({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));xo.apps=Gt;xo.openApp=Id;ua.exports=xo});i();import Ea,{createContext as Ta,useContext as Aa}from"react";var Uo=Ta(null),Oa=function({children:t,value:e}){return Ea.createElement(Uo.Provider,{value:e},t)},Zt=()=>{let t=Aa(Uo);if(t===null)throw new Error("useBiLogger() cannot be used without an <BiProvider>");return t};i();i();import Sa,{createContext as Fa,useContext as Ia}from"react";var Ho=Fa(null),ka=t=>Sa.createElement(Ho.Provider,{...t}),Qt=()=>{let t=Ia(Ho);if(t===null)throw new Error("useErrorReporter() cannot be used without an <ErrorReporterProvider>");return t};i();i();var os=V(qt(),1),xl={backoffice:"https://manage.wix.com",editor:"https://editor.wix.com",code:"https://code.wix.com",general:"https://www.wix.com",standalone:void 0};function Gr({getAppToken:t,type:e}){return(0,os.createHttpClient)({baseURL:xl[e],...e!=="standalone"?{getAppToken:t}:{},createHeaders:()=>({"X-XSRF-TOKEN":"nocheck",Cookie:"XSRF-TOKEN=nocheck","User-Agent":"wix-cli"})})}i();var ns=V(qt(),1);function Wr(t){return ns.HttpClient.isHttpError(t)}i();import{createElement as Fl,useMemo as Il}from"react";i();var Vr=V(fe(),1);import u from"react";i();function Lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function is(){return typeof WeakMap<"u"?new WeakMap:wl()}function wl(){return{add:Lt,delete:Lt,get:Lt,set:Lt,has:function(t){return!1}}}var Cl=Object.prototype.hasOwnProperty,Jr=function(t,e){return Cl.call(t,e)};function zr(t,e){for(var r in e)Jr(e,r)&&(t[r]=e[r]);return t}var bl=/^[ \t]*(?:\r\n|\r|\n)/,_l=/(?:\r\n|\r|\n)[ \t]*$/,El=/^(?:[\r\n]|$)/,Tl=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,Al=/^[ \t]*[\r\n][ \t\r\n]*$/;function ss(t,e,r){var o=0,n=t[0].match(Tl);n&&(o=n[1].length);var s="(\\r\\n|\\r|\\n).{0,"+o+"}",a=new RegExp(s,"g");e&&(t=t.slice(1));var l=r.newline,c=r.trimLeadingNewline,v=r.trimTrailingNewline,p=typeof l=="string",h=t.length,m=t.map(function(y,b){return y=y.replace(a,"$1"),b===0&&c&&(y=y.replace(bl,"")),b===h-1&&v&&(y=y.replace(_l,"")),p&&(y=y.replace(/\r\n|\n|\r/g,function(C){return l})),y});return m}function Ol(t,e){for(var r="",o=0,n=t.length;o<n;o++)r+=t[o],o<n-1&&(r+=e[o]);return r}function Sl(t){return Jr(t,"raw")&&Jr(t,"length")}function as(t){var e=is(),r=is();function o(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(Sl(s)){var c=s,v=(a[0]===o||a[0]===te)&&Al.test(c[0])&&El.test(c[1]),p=v?r:e,h=p.get(c);if(h||(h=ss(c,v,t),p.set(c,h)),a.length===0)return h[0];var m=Ol(h,v?a.slice(1):a);return m}else return as(zr(zr({},t),s||{}))}var n=zr(o,{string:function(s){return ss([s],!1,t)[0]}});return n}var te=as({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=te,Object.defineProperty(te,"__esModule",{value:!0}),te.default=te,te.outdent=te}catch{}i();import ye from"react";var g=({message:t,explanation:e,hint:r})=>ye.createElement(Q,{flexDirection:"column"},ye.createElement(Kt,{type:"error"},t),e&&ye.createElement(Kt,{type:"warning"},e),r&&ye.createElement(Q,{paddingTop:1,columnGap:1},ye.createElement(Po,null),typeof r=="string"?ye.createElement(w,null,r):r)),R=({message:t,explanation:e,hint:r})=>ye.createElement(g,{message:t,explanation:e,hint:r??"This is probably a temporary system error and has been logged. Try again shortly."});function cs(t){return(0,Vr.match)(t,{UnknownFailure:({error:e})=>()=>u.createElement(u.Fragment,null,u.createElement(w,{skin:"error"},"Oh no, seems like the CLI encountered an unexpected error:"),e instanceof Error?u.createElement(w,{skin:"error"},e.message):u.createElement(w,null,JSON.stringify(e))),FailedToGetDeviceCode:()=>()=>u.createElement(R,{message:"An error occured while logging in: Failed to issue a login device code"}),FailedToGetAuthToken:()=>()=>u.createElement(R,{message:"An error occured while logging in: Failed to issue refresh token"}),FailedToRefreshTokenForSite:()=>()=>u.createElement(R,{message:"An error occured while logging in: Failed to issue refresh token for site"}),FailedToRenewAuthToken:()=>()=>u.createElement(R,{message:"Failed to renew access token."}),FailedToRenewAuthTokenSiteNotFound:({siteId:e})=>()=>u.createElement(g,{message:`Authenticate failed, your configured development site (${e}) could not be accessed`,hint:"Make sure the site exists and you still have access to it"}),FailedToRevokeRefreshToken:({email:e})=>()=>u.createElement(R,{message:"An error occured while trying to logout: Failed to revoke refresh token!",explanation:`Wix CLI is still logged in to account ${e}`}),FailedToFetchPackageJson:()=>()=>u.createElement(R,{message:"Failed to fetch package data."}),LatestVersionOfCreateAppRequired:({currentVersion:e,latestVersion:r,updateCommand:o})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Generating a Wix App is only supported using the latest version (",r,") of ",u.createElement(w,{bold:!0},"@wix/create-app")," (current:"," ",e,")"),hint:u.createElement(w,null,"Make sure you are using the following command:",u.createElement(Ee,null),u.createElement(w,{bold:!0},o),u.createElement(Ee,null),"If the problem persists, try clearing your package manager's cache")}),EmptyDirectoryRequiredAppGeneration:({folder:e})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Generating a Wix App requires an empty directory but"," ",u.createElement(w,{bold:!0},e)," already exists and isn't empty"),hint:u.createElement(w,null,"Choose a different project name or delete the existing"," ",u.createElement(w,{bold:!0},e)," folder")}),InvalidNewPackageName:({packageName:e,validations:r})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Generating a Wix App requires a valid npm package name for the generated ",u.createElement(w,{bold:!0},"package.json")," ",u.createElement(Ee,null),"The name ",u.createElement(w,{bold:!0},e)," failed the following validations:",u.createElement(Ee,null),r.map((o,n)=>u.createElement(w,{key:n},u.createElement(Ee,null),"- ",o))),hint:"Choose a different project name that follows the validations above"}),SiteSelectorTimedout:()=>()=>u.createElement(g,{message:"Waiting for application installation timed out."}),TypeErrorInvalidUrl:()=>()=>u.createElement(g,{message:"Invalid assets URL."}),UnsupportedPackageManager:({packageManagerName:e})=>()=>u.createElement(g,{message:"Generating a Wix App requires the usage of a supported package manager",hint:`Expected Yarn or NPM but ${e?`got ${e}`:"failed to detect a package manager"}`}),UnsupportedPackageManagerWorkspaces:({packageManagerName:e})=>()=>u.createElement(g,{message:`Generating a Wix App inside ${e} workspaces is not supported`}),FailedToGetDeveloperApps:()=>()=>u.createElement(R,{message:"Failed to get the list of your applications"}),FailedToCreateDevCenterApp:()=>()=>u.createElement(R,{message:"Failed to register your application in Wix Dev Center"}),SitePermissionDenied:({siteId:e})=>()=>u.createElement(g,{message:`You don't have permissions to site ${e}`}),AppPermissionDenied:({appId:e})=>()=>u.createElement(g,{message:`You don't have permissions to application ${e}`}),FailedToUpdateTelemetryConfig:()=>()=>u.createElement(g,{message:"Failed to change telemetry preferences"}),FailedToInstallPackage:({packageName:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to install npm package ${e}. Cause: ${o}`})},FailedToResolveNpmDependencies:()=>()=>u.createElement(R,{message:"Failed to resolve npm dependencies"}),FailedToInstallPackages:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to install npm packages. Cause: ${r}`})},FailedMigrationToAnyNpm:()=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Could not start the migration process"),hint:u.createElement(w,null,"Make sure that your package.json does not have packages installed outside of dev dependencies")}),DeprecatedVersion:({currentVersion:e})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,`Your version of the Wix CLI (${e}) is`,u.createElement(w,{bold:!0}," deprecated"),"."),hint:"Please update to the latest version to continue"}),FailedToUninstallPackage:({packageName:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to uninstall npm package ${e}. Cause: ${o}`})},FailedToSyncToRevision:({revision:e})=>()=>u.createElement(g,{message:`Failed to sync the local project to revision ${e}`}),FailedToCreateVersion:()=>()=>u.createElement(g,{message:"Wix CLI failed to create version for your app"}),FailedToReadCache:({path:e})=>()=>u.createElement(g,{message:`Failed to read cache file at ${e}.`}),FailedToWriteCache:({path:e})=>()=>u.createElement(g,{message:`Failed to write cache file at ${e}.`}),UploadApplicationFailed:()=>()=>u.createElement(g,{message:"Failed to upload the application"}),BuiltProjectNeeded:()=>()=>u.createElement(g,{message:"Can not find build output, please execute `wix app build` to build your app before proceeding"}),UnsupportedWixInstallCommand:()=>()=>u.createElement(g,{message:"`wix install` is not supported now. Please use `wix install <package-name>`"}),WixUninstallMissingPackageName:()=>()=>u.createElement(g,{message:"Please specify a package name"}),FailedToReadJson:({filePath:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to read ${e}. Cause: ${o}`})},InvalidJsonFile:({filePath:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Invalid JSON file located at ${e}. Cause: ${o}`})},FailedToWriteWixLock:()=>()=>u.createElement(g,{message:"Failed to write 'wix.lock'"}),InvalidVeloConfigJson:({configFilename:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Invalid ${e}, make sure it's configured correctly. Cause: ${o}`})},DashboardPageConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard page config not found at ${e}`}),EmbeddedScriptConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Embedded script config not found at ${e}`}),CustomElementConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Custom element config not found at ${e}`}),NoExtensionsFound:()=>()=>u.createElement(g,{message:"Your project doesn't seem to have any extensions.",explanation:"Extensions are the building blocks of your app.",hint:"Make sure it is configured properly, or read our documentation (\u200Bhttps://wix.to/b7o4Ml0) to start developing your first extension."}),NoPagesDirectoryFound:({srcDir:e})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"No ",u.createElement(w,{bold:!0},"pages")," directory was found under"," ",u.createElement(w,{bold:!0},e),"."),hint:u.createElement(w,null,"Consider re-cloning the project repository or creating a"," ",u.createElement(w,{bold:!0},"pages")," directory under ",u.createElement(w,{bold:!0},e),".")}),DashboardPagePluginConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard page plugin config not found at ${e}`}),DashboardMenuPluginConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard menu plugin config not found at ${e}`}),DashboardModalConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard modal config not found at ${e}`}),InvalidConfigSchemaError:({configPath:e,zodError:r})=>()=>u.createElement(g,{message:te`
7
+ `).map(e=>e.trim()).join(" ")};Bn.O=function(t){return this.inspectOpts.colors=this.useColors,bt.inspect(t,this.inspectOpts)}});var Gn=x((vf,mr)=>{"use strict";i();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mr.exports=Un():mr.exports=$n()});var zn=x((xf,Wn)=>{"use strict";i();var $e;Wn.exports=function(){if(!$e){try{$e=Gn()("follow-redirects")}catch{}typeof $e!="function"&&($e=function(){})}$e.apply(null,arguments)}});var Or=x((Cf,Ar)=>{"use strict";i();var ze=P("url"),Ge=ze.URL,cc=P("http"),lc=P("https"),xr=P("stream").Writable,wr=P("assert"),Jn=zn(),Cr=!1;try{wr(new Ge)}catch(t){Cr=t.code==="ERR_INVALID_URL"}var dc=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],br=["abort","aborted","connect","error","socket","timeout"],_r=Object.create(null);br.forEach(function(t){_r[t]=function(e,r,o){this._redirectable.emit(t,e,r,o)}});var gr=Je("ERR_INVALID_URL","Invalid URL",TypeError),vr=Je("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),pc=Je("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",vr),fc=Je("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),mc=Je("ERR_STREAM_WRITE_AFTER_END","write after end"),hc=xr.prototype.destroy||Yn;function z(t,e){xr.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(o){try{r._processResponse(o)}catch(n){r.emit("error",n instanceof vr?n:new vr({cause:n}))}},this._performRequest()}z.prototype=Object.create(xr.prototype);z.prototype.abort=function(){Tr(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};z.prototype.destroy=function(t){return Tr(this._currentRequest,t),hc.call(this,t),this};z.prototype.write=function(t,e,r){if(this._ending)throw new mc;if(!ve(t)&&!yc(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(We(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new fc),this.abort())};z.prototype.end=function(t,e,r){if(We(t)?(r=t,t=e=null):We(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var o=this,n=this._currentRequest;this.write(t,e,function(){o._ended=!0,n.end(null,null,r)}),this._ending=!0}};z.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};z.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};z.prototype.setTimeout=function(t,e){var r=this;function o(a){a.setTimeout(t),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function n(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),o(a)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",n)}return e&&this.on("timeout",e),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",o),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){z.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(z.prototype,t,{get:function(){return this._currentRequest[t]}})});z.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};z.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=e.request(this._options,this._onNativeResponse);o._redirectable=this;for(var n of br)o.on(n,_r[n]);if(this._currentUrl=/^\//.test(this._options.path)?ze.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,l=this._requestBodyBuffers;(function c(v){if(o===a._currentRequest)if(v)a.emit("error",v);else if(s<l.length){var p=l[s++];o.finished||o.write(p.data,p.encoding,c)}else a._ended&&o.end()})()}};z.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Tr(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new pc;var o,n=this._options.beforeRedirect;n&&(o=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hr(/^content-/i,this._options.headers));var a=hr(/^host$/i,this._options.headers),l=Er(this._currentUrl),c=a||l.host,v=/^\w+:/.test(r)?this._currentUrl:ze.format(Object.assign(l,{host:c})),p=gc(r,v);if(Jn("redirecting to",p.href),this._isRedirect=!0,yr(p,this._options),(p.protocol!==l.protocol&&p.protocol!=="https:"||p.host!==c&&!vc(p.host,c))&&hr(/^(?:authorization|cookie)$/i,this._options.headers),We(n)){var h={headers:t.headers,statusCode:e},m={url:v,method:s,headers:o};n(this._options,h,m),this._sanitizeOptions(this._options)}this._performRequest()};function Vn(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(o){var n=o+":",s=r[n]=t[o],a=e[o]=Object.create(s);function l(v,p,h){return xc(v)?v=yr(v):ve(v)?v=yr(Er(v)):(h=p,p=Kn(v),v={protocol:n}),We(p)&&(h=p,p=null),p=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},v,p),p.nativeProtocols=r,!ve(p.host)&&!ve(p.hostname)&&(p.hostname="::1"),wr.equal(p.protocol,n,"protocol mismatch"),Jn("options",p),new z(p,h)}function c(v,p,h){var m=a.request(v,p,h);return m.end(),m}Object.defineProperties(a,{request:{value:l,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function Yn(){}function Er(t){var e;if(Cr)e=new Ge(t);else if(e=Kn(ze.parse(t)),!ve(e.protocol))throw new gr({input:t});return e}function gc(t,e){return Cr?new Ge(t,e):Er(ze.resolve(e,t))}function Kn(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new gr({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new gr({input:t.href||t});return t}function yr(t,e){var r=e||{};for(var o of dc)r[o]=t[o];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function hr(t,e){var r;for(var o in e)t.test(o)&&(r=e[o],delete e[o]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Je(t,e,r){function o(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return o.prototype=new(r||Error),Object.defineProperties(o.prototype,{constructor:{value:o,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),o}function Tr(t,e){for(var r of br)t.removeListener(r,_r[r]);t.on("error",Yn),t.destroy(e)}function vc(t,e){wr(ve(t)&&ve(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function ve(t){return typeof t=="string"||t instanceof String}function We(t){return typeof t=="function"}function yc(t){return typeof t=="object"&&"length"in t}function xc(t){return Ge&&t instanceof Ge}Ar.exports=Vn({http:cc,https:lc});Ar.exports.wrap=Vn});var Sr=x((_f,wc)=>{wc.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var Tt=x((Ef,ti)=>{"use strict";i();var Ve=j(),Xn=cr(),Cc=lr(),bc=yt(),_c=P("http"),Ec=P("https"),Tc=Or().http,Ac=Or().https,Zn=P("url"),Oc=P("zlib"),Sc=Sr(),Et=vt(),Fr=gt(),Qn=/https:?/;function ei(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var o=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+o}t.beforeRedirect=function(s){s.headers.host=s.host,ei(s,e,s.href)}}ti.exports=function(e){return new Promise(function(o,n){var s=function(E){o(E)},a=function(E){n(E)},l=e.data,c=e.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+Sc.version,l&&!Ve.isStream(l)){if(!Buffer.isBuffer(l))if(Ve.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else if(Ve.isString(l))l=Buffer.from(l,"utf-8");else return a(Et("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c["Content-Length"]=l.length}var v=void 0;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";v=p+":"+h}var m=Cc(e.baseURL,e.url),y=Zn.parse(m),b=y.protocol||"http:";if(!v&&y.auth){var C=y.auth.split(":"),_=C[0]||"",F=C[1]||"";v=_+":"+F}v&&delete c.Authorization;var H=Qn.test(b),I=H?e.httpsAgent:e.httpAgent,A={path:bc(y.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:I,agents:{http:e.httpAgent,https:e.httpsAgent},auth:v};e.socketPath?A.socketPath=e.socketPath:(A.hostname=y.hostname,A.port=y.port);var Z=e.proxy;if(!Z&&Z!==!1){var Ce=b.slice(0,-1)+"_proxy",ot=process.env[Ce]||process.env[Ce.toUpperCase()];if(ot){var ue=Zn.parse(ot),nt=process.env.no_proxy||process.env.NO_PROXY,Co=!0;if(nt){var _a=nt.split(",").map(function(E){return E.trim()});Co=!_a.some(function(E){return E?E==="*"||E[0]==="."&&y.hostname.substr(y.hostname.length-E.length)===E?!0:y.hostname===E:!1})}if(Co&&(Z={host:ue.hostname,port:ue.port,protocol:ue.protocol},ue.auth)){var bo=ue.auth.split(":");Z.auth={username:bo[0],password:bo[1]}}}}Z&&(A.headers.host=y.hostname+(y.port?":"+y.port:""),ei(A,Z,b+"//"+y.hostname+(y.port?":"+y.port:"")+A.path));var it,_o=H&&(Z?Qn.test(Z.protocol):!0);e.transport?it=e.transport:e.maxRedirects===0?it=_o?Ec:_c:(e.maxRedirects&&(A.maxRedirects=e.maxRedirects),it=_o?Ac:Tc),e.maxBodyLength>-1&&(A.maxBodyLength=e.maxBodyLength);var M=it.request(A,function(E){if(!M.aborted){var pe=E,st=E.req||M;if(E.statusCode!==204&&st.method!=="HEAD"&&e.decompress!==!1)switch(E.headers["content-encoding"]){case"gzip":case"compress":case"deflate":pe=pe.pipe(Oc.createUnzip()),delete E.headers["content-encoding"];break}var at={status:E.statusCode,statusText:E.statusMessage,headers:E.headers,config:e,request:st};if(e.responseType==="stream")at.data=pe,Xn(s,a,at);else{var Eo=[],To=0;pe.on("data",function(re){Eo.push(re),To+=re.length,e.maxContentLength>-1&&To>e.maxContentLength&&(pe.destroy(),a(Et("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,st)))}),pe.on("error",function(re){M.aborted||a(Fr(re,e,null,st))}),pe.on("end",function(){var re=Buffer.concat(Eo);e.responseType!=="arraybuffer"&&(re=re.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(re=Ve.stripBOM(re))),at.data=re,Xn(s,a,at)})}}});if(M.on("error",function(E){M.aborted&&E.code!=="ERR_FR_TOO_MANY_REDIRECTS"||a(Fr(E,e,null,M))}),e.timeout){var Jt=parseInt(e.timeout,10);if(isNaN(Jt)){a(Et("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",M));return}M.setTimeout(Jt,function(){M.abort(),a(Et("timeout of "+Jt+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",M))})}e.cancelToken&&e.cancelToken.promise.then(function(E){M.aborted||(M.abort(),a(E))}),Ve.isStream(l)?l.on("error",function(E){a(Fr(E,e,null,M))}).pipe(M):M.end(l)})}});var oi=x((Af,ri)=>{"use strict";i();var Fc=j();function At(){this.handlers=[]}At.prototype.use=function(e,r,o){return this.handlers.push({fulfilled:e,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};At.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};At.prototype.forEach=function(e){Fc.forEach(this.handlers,function(o){o!==null&&e(o)})};ri.exports=At});var ii=x((Sf,ni)=>{"use strict";i();var Ic=j();ni.exports=function(e,r){Ic.forEach(e,function(n,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=n,delete e[s])})}});var ai=x((If,si)=>{"use strict";i();var Ot=j();si.exports=Ot.isStandardBrowserEnv()?function(){return{write:function(r,o,n,s,a,l){var c=[];c.push(r+"="+encodeURIComponent(o)),Ot.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),Ot.isString(s)&&c.push("path="+s),Ot.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var ci=x((kf,ui)=>{"use strict";i();var Ir=j(),Rc=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];ui.exports=function(e){var r={},o,n,s;return e&&Ir.forEach(e.split(`
8
+ `),function(l){if(s=l.indexOf(":"),o=Ir.trim(l.substr(0,s)).toLowerCase(),n=Ir.trim(l.substr(s+1)),o){if(r[o]&&Rc.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([n]):r[o]=r[o]?r[o]+", "+n:n}}),r}});var pi=x((Nf,di)=>{"use strict";i();var li=j();di.exports=li.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function n(s){var a=s;return e&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=n(window.location.href),function(a){var l=li.isString(a)?n(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}()});var kr=x((qf,fi)=>{"use strict";i();var St=j(),kc=cr(),Pc=ai(),Nc=yt(),Dc=lr(),qc=ci(),Lc=pi(),Rr=vt();fi.exports=function(e){return new Promise(function(o,n){var s=e.data,a=e.headers,l=e.responseType;St.isFormData(s)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(v+":"+p)}var h=Dc(e.baseURL,e.url);c.open(e.method.toUpperCase(),Nc(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(c){var b="getAllResponseHeaders"in c?qc(c.getAllResponseHeaders()):null,C=!l||l==="text"||l==="json"?c.responseText:c.response,_={data:C,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};kc(o,n,_),c=null}}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(n(Rr("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){n(Rr("Network Error",e,null,c)),c=null},c.ontimeout=function(){var C="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),n(Rr(C,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},St.isStandardBrowserEnv()){var y=(e.withCredentials||Lc(h))&&e.xsrfCookieName?Pc.read(e.xsrfCookieName):void 0;y&&(a[e.xsrfHeaderName]=y)}"setRequestHeader"in c&&St.forEach(a,function(C,_){typeof s>"u"&&_.toLowerCase()==="content-type"?delete a[_]:c.setRequestHeader(_,C)}),St.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(C){c&&(c.abort(),n(C),c=null)}),s||(s=null),c.send(s)})}});var It=x((Uf,gi)=>{"use strict";i();var D=j(),mi=ii(),Uc=gt(),Hc={"Content-Type":"application/x-www-form-urlencoded"};function hi(t,e){!D.isUndefined(t)&&D.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Mc(){var t;return typeof XMLHttpRequest<"u"?t=kr():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Tt()),t}function jc(t,e,r){if(D.isString(t))try{return(e||JSON.parse)(t),D.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(t)}var Ft={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Mc(),transformRequest:[function(e,r){return mi(r,"Accept"),mi(r,"Content-Type"),D.isFormData(e)||D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e)?e:D.isArrayBufferView(e)?e.buffer:D.isURLSearchParams(e)?(hi(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):D.isObject(e)||r&&r["Content-Type"]==="application/json"?(hi(r,"application/json"),jc(e)):e}],transformResponse:[function(e){var r=this.transitional,o=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,s=!o&&this.responseType==="json";if(s||n&&D.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?Uc(a,this,"E_JSON_PARSE"):a}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Ft.headers={common:{Accept:"application/json, text/plain, */*"}};D.forEach(["delete","get","head"],function(e){Ft.headers[e]={}});D.forEach(["post","put","patch"],function(e){Ft.headers[e]=D.merge(Hc)});gi.exports=Ft});var yi=x((Mf,vi)=>{"use strict";i();var Bc=j(),$c=It();vi.exports=function(e,r,o){var n=this||$c;return Bc.forEach(o,function(a){e=a.call(n,e,r)}),e}});var Pr=x((Bf,xi)=>{"use strict";i();xi.exports=function(e){return!!(e&&e.__CANCEL__)}});var bi=x((Gf,Ci)=>{"use strict";i();var wi=j(),Nr=yi(),Gc=Pr(),Wc=It();function Dr(t){t.cancelToken&&t.cancelToken.throwIfRequested()}Ci.exports=function(e){Dr(e),e.headers=e.headers||{},e.data=Nr.call(e,e.data,e.headers,e.transformRequest),e.headers=wi.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),wi.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var r=e.adapter||Wc.adapter;return r(e).then(function(n){return Dr(e),n.data=Nr.call(e,n.data,n.headers,e.transformResponse),n},function(n){return Gc(n)||(Dr(e),n&&n.response&&(n.response.data=Nr.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})}});var qr=x((zf,_i)=>{"use strict";i();var L=j();_i.exports=function(e,r){r=r||{};var o={},n=["url","method","data"],s=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function c(m,y){return L.isPlainObject(m)&&L.isPlainObject(y)?L.merge(m,y):L.isPlainObject(y)?L.merge({},y):L.isArray(y)?y.slice():y}function v(m){L.isUndefined(r[m])?L.isUndefined(e[m])||(o[m]=c(void 0,e[m])):o[m]=c(e[m],r[m])}L.forEach(n,function(y){L.isUndefined(r[y])||(o[y]=c(void 0,r[y]))}),L.forEach(s,v),L.forEach(a,function(y){L.isUndefined(r[y])?L.isUndefined(e[y])||(o[y]=c(void 0,e[y])):o[y]=c(void 0,r[y])}),L.forEach(l,function(y){y in r?o[y]=c(e[y],r[y]):y in e&&(o[y]=c(void 0,e[y]))});var p=n.concat(s).concat(a).concat(l),h=Object.keys(e).concat(Object.keys(r)).filter(function(y){return p.indexOf(y)===-1});return L.forEach(h,v),o}});var Si=x((Vf,Oi)=>{"use strict";i();var Ti=Sr(),Lr={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Lr[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});var Ei={},zc=Ti.version.split(".");function Ai(t,e){for(var r=e?e.split("."):zc,o=t.split("."),n=0;n<3;n++){if(r[n]>o[n])return!0;if(r[n]<o[n])return!1}return!1}Lr.transitional=function(e,r,o){var n=r&&Ai(r);function s(a,l){return"[Axios v"+Ti.version+"] Transitional option '"+a+"'"+l+(o?". "+o:"")}return function(a,l,c){if(e===!1)throw new Error(s(l," has been removed in "+r));return n&&!Ei[l]&&(Ei[l]=!0,console.warn(s(l," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,l,c):!0}};function Jc(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var o=Object.keys(t),n=o.length;n-- >0;){var s=o[n],a=e[s];if(a){var l=t[s],c=l===void 0||a(l,s,t);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}Oi.exports={isOlderVersion:Ai,assertOptions:Jc,validators:Lr}});var Ni=x((Kf,Pi)=>{"use strict";i();var Ri=j(),Vc=yt(),Fi=oi(),Ii=bi(),Rt=qr(),ki=Si(),Re=ki.validators;function Ye(t){this.defaults=t,this.interceptors={request:new Fi,response:new Fi}}Ye.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=Rt(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&ki.assertOptions(r,{silentJSONParsing:Re.transitional(Re.boolean,"1.0.0"),forcedJSONParsing:Re.transitional(Re.boolean,"1.0.0"),clarifyTimeoutError:Re.transitional(Re.boolean,"1.0.0")},!1);var o=[],n=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(n=n&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});var s=[];this.interceptors.response.forEach(function(m){s.push(m.fulfilled,m.rejected)});var a;if(!n){var l=[Ii,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(s),a=Promise.resolve(e);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=e;o.length;){var v=o.shift(),p=o.shift();try{c=v(c)}catch(h){p(h);break}}try{a=Ii(c)}catch(h){return Promise.reject(h)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};Ye.prototype.getUri=function(e){return e=Rt(this.defaults,e),Vc(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Ri.forEach(["delete","get","head","options"],function(e){Ye.prototype[e]=function(r,o){return this.request(Rt(o||{},{method:e,url:r,data:(o||{}).data}))}});Ri.forEach(["post","put","patch"],function(e){Ye.prototype[e]=function(r,o,n){return this.request(Rt(n||{},{method:e,url:r,data:o}))}});Pi.exports=Ye});var Hr=x((Zf,Di)=>{"use strict";i();function Ur(t){this.message=t}Ur.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ur.prototype.__CANCEL__=!0;Di.exports=Ur});var Li=x((em,qi)=>{"use strict";i();var Yc=Hr();function kt(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(n){e=n});var r=this;t(function(n){r.reason||(r.reason=new Yc(n),e(r.reason))})}kt.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};kt.source=function(){var e,r=new kt(function(n){e=n});return{token:r,cancel:e}};qi.exports=kt});var Hi=x((rm,Ui)=>{"use strict";i();Ui.exports=function(e){return function(o){return e.apply(null,o)}}});var ji=x((nm,Mi)=>{"use strict";i();Mi.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Gi=x((sm,Mr)=>{"use strict";i();var Bi=j(),Kc=nr(),Pt=Ni(),Xc=qr(),Zc=It();function $i(t){var e=new Pt(t),r=Kc(Pt.prototype.request,e);return Bi.extend(r,Pt.prototype,e),Bi.extend(r,e),r}var ee=$i(Zc);ee.Axios=Pt;ee.create=function(e){return $i(Xc(ee.defaults,e))};ee.Cancel=Hr();ee.CancelToken=Li();ee.isCancel=Pr();ee.all=function(e){return Promise.all(e)};ee.spread=Hi();ee.isAxiosError=ji();Mr.exports=ee;Mr.exports.default=ee});var zi=x((um,Wi)=>{"use strict";i();Wi.exports=Gi()});var Ji=x(se=>{"use strict";i();Object.defineProperty(se,"__esModule",{value:!0});se.getUrlHeaders=se.buildAllHeaders=se.buildOptions=void 0;var jr=He(),Qc=ft(),ke=pt(),el=({requestOptions:t,urlObject:e,headers:r,globalConfig:o={httpMockServer:{enabled:!1}}})=>{let{url:n,params:s}=t;if(s&&typeof s!="object")throw new Error("Search params must be an object");let a=ol(n,o);return Object.assign(Object.assign(Object.assign({},t),a),{headers:r})};se.buildOptions=el;var tl=(t,e,r={httpMockServer:{enabled:!1}},o)=>{let{url:n,disableWixHeaders:s,headers:a}=t,l=(0,Qc.composeHeaders)({url:n,disableWixHeaders:s,wixHeadersOpts:e}),c=(0,se.getUrlHeaders)(r,t,o);return Object.assign(Object.assign(Object.assign({},l),il(a)),c)};se.buildAllHeaders=tl;var rl=(t,e,r)=>{let{url:o,params:n}=e,{host:s,protocol:a}=r;return t.httpMockServer.enabled?{[jr.ORIGINAL_URL_HEADER]:nl(o,n),[jr.ORIGINAL_HOST_HEADER]:(0,ke.isAbsoluteUrl)(o)?(0,ke.extractHost)(o):s,[jr.ORIGINAL_PROTOCOL_HEADER]:(0,ke.isAbsoluteUrl)(o)?(0,ke.extractProtocol)(o):a}:{}};se.getUrlHeaders=rl;function ol(t,e){if(e.httpMockServer.enabled){let r=new URL(e.httpMockServer.mockServerUrl);return{url:(0,ke.changeHost)(t,r.host)}}return{}}function nl(t,e){let{pathname:r,searchParams:o}=new URL(t,"http://unused.com");if(e=e||o,e){let n=(0,ke.toSearchQueryParams)(e)||e.toString(),s=n?`?${n}`:"";return`${r}${s}`}return r}function il(t){return t=t||{},Object.keys(t).reduce((r,o)=>Object.assign(Object.assign({},r),{[o.toLowerCase()]:t[o]}),{})}});var Xi=x(Ne=>{"use strict";i();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createHttpClient=Ne.HttpClient=void 0;var Yi=(ct(),be(ut)),Ke=Yi.__importDefault(zi()),sl=Yi.__importDefault(kr()),Br=He(),Ki=er(),al=or(),Vi=ft(),Nt=Ji(),ne=pt(),Pe=class{constructor(e={}){this.opts=e,this.opts=ul(this.opts),this.client=Ke.default.create(this.opts),this.flags={sanitizerPocEnabled:pl()}}static isHttpError(e){return!!e?.isWixHttpError}async request(e,r){var o,n;let s=(0,ne.resolveHost)(this.opts),l={protocol:(0,ne.resolveProtocol)(this.opts),host:s},c=typeof e=="function"?e({isSSR:this.opts.isSSR,host:s}):e,v=r?.signedInstance||await((n=(o=this.opts).getAppToken)===null||n===void 0?void 0:n.call(o))||"",p=this.getHeaders(c,v,l),h=(0,Nt.buildOptions)({requestOptions:c,urlObject:l,headers:p,globalConfig:(0,ne.getGlobalConfig)()});this.opts.isSSR&&(h.baseURL=this.opts.baseURL?this.opts.baseURL:`${Br.SSR_PROTOCOL}://${Br.SSR_HOST}`);try{let m=await this.client.request(h).catch(y=>this.maybeFallbackRequest(y,c,l,v));return this.transformResponse(m,c)}catch(m){this.handleRequestError(m,h)}}async get(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"GET"});return this.request(o)}async delete(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"DELETE"});return this.request(o)}async head(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"HEAD"});return this.request(o)}async options(e,r){let o=Object.assign(Object.assign({},r),{url:e,method:"OPTIONS"});return this.request(o)}async post(e,r,o){let n=Object.assign(Object.assign({},o),{url:e,data:r,method:"POST"});return this.request(n)}async put(e,r,o){let n=Object.assign(Object.assign({},o),{url:e,data:r,method:"PUT"});return this.request(n)}async patch(e,r,o){let n=Object.assign(Object.assign({},o),{url:e,data:r,method:"PATCH"});return this.request(n)}get CancelToken(){return Ke.default.CancelToken}get isCancel(){return Ke.default.isCancel}getHeaders(e,r,o){if(typeof this.opts.createHeaders=="function")return this.getCustomHeaders(e,r,o);let n={signedInstance:r,artifactId:this.opts.artifactId,csrf:!1,multilingualOptions:this.opts.multilingualOptions};return(0,Nt.buildAllHeaders)(e,n,(0,ne.getGlobalConfig)(),o)}getCustomHeaders(e,r,o){let{url:n}=e,s=r&&(0,Vi.isWixDomain)(n)?{authorization:r}:{},a=this.opts.createHeaders(),l=(0,Nt.getUrlHeaders)((0,ne.getGlobalConfig)(),e,o);return Object.assign(Object.assign(Object.assign({},l),a),s)}handleRequestError(e,r){let o=(0,al.createHttpError)(e);throw(0,ne.silent)(()=>{var n;return(n=r.onError)===null||n===void 0?void 0:n.call(r,o)}),o}maybeFallbackRequest(e,r,o,n){var s,a,l;if((0,ne.isHttpMockServerEnabled)()&&(0,ne.shouldAllowUnmocked)()&&((s=e.response)===null||s===void 0?void 0:s.status)===404&&((l=(a=e.response)===null||a===void 0?void 0:a.data)===null||l===void 0?void 0:l.msg)===Br.NO_SCENARIO_FOUND){let v=this.getHeaders(r,n,o),p=(0,Nt.buildOptions)({requestOptions:r,urlObject:o,headers:v});return this.client.request(p)}throw e}transformResponse(e,r){let o=(0,Vi.requestIdOrEmptyString)(e),n=ll(e,r,this.flags);return Object.assign(Object.assign({},e),{data:n,requestId:o})}};Ne.HttpClient=Pe;Pe.CancelToken=Ke.default.CancelToken;Pe.isCancel=Ke.default.isCancel;function ul(t){let e=t.adapter;return e||(e=sl.default,(0,Ki.isNode)()&&(e=cl())),Object.assign({adapter:e,isSSR:!1},t)}function cl(){return typeof __webpack_require__=="function"?__non_webpack_require__("axios/lib/adapters/http"):Tt()}function ll(t,e,r){let o=dl(t,r);if(e._pickResponseBody&&(o=(0,ne.extractProp)(t.data,e._pickResponseBody)),e._logs){let n=(0,ne.extractProp)(t.data,e._logs);n?.length&&n.map(s=>console.log(...s))}return o}function dl(t,e){try{if(e.sanitizerPocEnabled){let r=performance.now(),o=new Sanitizer;if(t.headers["content-type"].includes("application/json")){console.log("[+] JSON Response detected, sanitizing data");let n=function(a){try{return Object.keys(a).forEach(l=>{typeof a[l]=="string"?a[l]=o.sanitizeFor("span",a[l]).innerHTML:typeof a[l]=="object"&&(a[l]=n(a[l]))}),a}catch(l){console.log(l)}},s=performance.now();return console.log(`Time taken: ${s-r} milliseconds.`),n(t.data)}}}catch(r){console.log("[+] Sanitizer API not supported: %o",r)}return t.data}function pl(){var t;try{return(0,Ki.isBrowser)()&&new URLSearchParams(((t=window?.location)===null||t===void 0?void 0:t.hash)||"").get("sanitizerPOC")==="true"}catch{return!1}}function fl(...t){return new Pe(...t)}Ne.createHttpClient=fl});var Zi=x(De=>{"use strict";i();Object.defineProperty(De,"__esModule",{value:!0});De.HttpClient=De.createHttpClient=void 0;var ml=(ct(),be(ut)),hl=ml.__importDefault(Tt()),gl=Xi(),Dt=class extends gl.HttpClient{constructor(e={}){super(Object.assign({adapter:hl.default},e))}};De.HttpClient=Dt;function vl(...t){return new Dt(...t)}De.createHttpClient=vl});var es=x(Qi=>{"use strict";i();Object.defineProperty(Qi,"__esModule",{value:!0})});var qt=x(q=>{"use strict";i();Object.defineProperty(q,"__esModule",{value:!0});q.HttpClient=q.createHttpClient=q.HttpError=q.createHttpError=q.ORIGINAL_URL_HEADER=q.ORIGINAL_PROTOCOL_HEADER=q.ORIGINAL_HOST_HEADER=void 0;var yl=(ct(),be(ut)),$r=He();Object.defineProperty(q,"ORIGINAL_HOST_HEADER",{enumerable:!0,get:function(){return $r.ORIGINAL_HOST_HEADER}});Object.defineProperty(q,"ORIGINAL_PROTOCOL_HEADER",{enumerable:!0,get:function(){return $r.ORIGINAL_PROTOCOL_HEADER}});Object.defineProperty(q,"ORIGINAL_URL_HEADER",{enumerable:!0,get:function(){return $r.ORIGINAL_URL_HEADER}});var ts=or();Object.defineProperty(q,"createHttpError",{enumerable:!0,get:function(){return ts.createHttpError}});Object.defineProperty(q,"HttpError",{enumerable:!0,get:function(){return ts.HttpError}});var rs=Zi();Object.defineProperty(q,"createHttpClient",{enumerable:!0,get:function(){return rs.createHttpClient}});Object.defineProperty(q,"HttpClient",{enumerable:!0,get:function(){return rs.HttpClient}});yl.__exportStar(es(),q)});var fs=x((ih,ps)=>{"use strict";i();function X(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}ps.exports=X;X.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};X.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};X.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},r),this._options.unref&&this._timer.unref(),!0};X.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};X.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};X.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};X.prototype.start=X.prototype.try;X.prototype.errors=function(){return this._errors};X.prototype.attempts=function(){return this._attempts};X.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,o=0;o<this._errors.length;o++){var n=this._errors[o],s=n.message,a=(t[s]||0)+1;t[s]=a,a>=r&&(e=n,r=a)}return e}});var ms=x(xe=>{"use strict";i();var kl=fs();xe.operation=function(t){var e=xe.timeouts(t);return new kl(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};xe.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<e.retries;n++)o.push(this.createTimeout(n,e));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,e)),o.sort(function(s,a){return s-a}),o};xe.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,o=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return o=Math.min(o,e.maxTimeout),o};xe.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var o in t)typeof t[o]=="function"&&r.push(o)}for(var n=0;n<r.length;n++){var s=r[n],a=t[s];t[s]=function(c){var v=xe.operation(e),p=Array.prototype.slice.call(arguments,1),h=p.pop();p.push(function(m){v.retry(m)||(m&&(arguments[0]=v.mainError()),h.apply(this,arguments))}),v.attempt(function(){c.apply(t,p)})}.bind(t,a),t[s].options=e}}});var gs=x((ch,hs)=>{"use strict";i();hs.exports=ms()});var ho=x((tv,Xs)=>{"use strict";i();var Ks=P("fs"),mo;function wd(){try{return Ks.statSync("/.dockerenv"),!0}catch{return!1}}function Cd(){try{return Ks.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}Xs.exports=()=>(mo===void 0&&(mo=wd()||Cd()),mo)});var ea=x((ov,go)=>{"use strict";i();var bd=P("os"),_d=P("fs"),Zs=ho(),Qs=()=>{if(process.platform!=="linux")return!1;if(bd.release().toLowerCase().includes("microsoft"))return!Zs();try{return _d.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Zs():!1}catch{return!1}};process.env.__IS_WSL_TEST__?go.exports=Qs:go.exports=Qs()});var ra=x((iv,ta)=>{"use strict";i();ta.exports=(t,e,r)=>{let o=n=>Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let n=r();return o(n),n},set(n){o(n)}}),t}});var ca=x((av,ua)=>{"use strict";i();var Ed=P("path"),Td=P("child_process"),{promises:Bt,constants:aa}=P("fs"),jt=ea(),Ad=ho(),yo=ra(),oa=Ed.join(d,"xdg-open"),{platform:Ue,arch:na}=process,Od=()=>{try{return Bt.statSync("/run/.containerenv"),!0}catch{return!1}},vo;function Sd(){return vo===void 0&&(vo=Od()||Ad()),vo}var Fd=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",o=!1;try{await Bt.access(r,aa.F_OK),o=!0}catch{}if(!o)return t;let n=await Bt.readFile(r,{encoding:"utf8"}),s=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(n);return s?(e=s.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),ia=async(t,e)=>{let r;for(let o of t)try{return await e(o)}catch(n){r=n}throw r},$t=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return ia(t.app,l=>$t({...t,app:l}));let{name:e,arguments:r=[]}=t.app||{};if(r=[...r],Array.isArray(e))return ia(e,l=>$t({...t,app:{name:l,arguments:r}}));let o,n=[],s={};if(Ue==="darwin")o="open",t.wait&&n.push("--wait-apps"),t.background&&n.push("--background"),t.newInstance&&n.push("--new"),e&&n.push("-a",e);else if(Ue==="win32"||jt&&!Sd()&&!e){let l=await Fd();o=jt?`${l}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,n.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),jt||(s.windowsVerbatimArguments=!0);let c=["Start"];t.wait&&c.push("-Wait"),e?(c.push(`"\`"${e}\`""`,"-ArgumentList"),t.target&&r.unshift(t.target)):t.target&&c.push(`"${t.target}"`),r.length>0&&(r=r.map(v=>`"\`"${v}\`""`),c.push(r.join(","))),t.target=Buffer.from(c.join(" "),"utf16le").toString("base64")}else{if(e)o=e;else{let l=!d||d==="/",c=!1;try{await Bt.access(oa,aa.X_OK),c=!0}catch{}o=process.versions.electron||Ue==="android"||l||!c?"xdg-open":oa}r.length>0&&n.push(...r),t.wait||(s.stdio="ignore",s.detached=!0)}t.target&&n.push(t.target),Ue==="darwin"&&r.length>0&&n.push("--args",...r);let a=Td.spawn(o,n,s);return t.wait?new Promise((l,c)=>{a.once("error",c),a.once("close",v=>{if(!t.allowNonzeroExitCode&&v>0){c(new Error(`Exited with code ${v}`));return}l(a)})}):(a.unref(),a)},xo=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return $t({...e,target:t})},Id=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `name`");let{arguments:r=[]}=e||{};if(r!=null&&!Array.isArray(r))throw new TypeError("Expected `appArguments` as Array type");return $t({...e,app:{name:t,arguments:r}})};function sa(t){if(typeof t=="string"||Array.isArray(t))return t;let{[na]:e}=t;if(!e)throw new Error(`${na} is not supported`);return e}function wo({[Ue]:t},{wsl:e}){if(e&&jt)return sa(e);if(!t)throw new Error(`${Ue} is not supported`);return sa(t)}var Gt={};yo(Gt,"chrome",()=>wo({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));yo(Gt,"firefox",()=>wo({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));yo(Gt,"edge",()=>wo({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));xo.apps=Gt;xo.openApp=Id;ua.exports=xo});i();import Ea,{createContext as Ta,useContext as Aa}from"react";var Uo=Ta(null),Oa=function({children:t,value:e}){return Ea.createElement(Uo.Provider,{value:e},t)},Zt=()=>{let t=Aa(Uo);if(t===null)throw new Error("useBiLogger() cannot be used without an <BiProvider>");return t};i();i();import Sa,{createContext as Fa,useContext as Ia}from"react";var Ho=Fa(null),Ra=t=>Sa.createElement(Ho.Provider,{...t}),Qt=()=>{let t=Ia(Ho);if(t===null)throw new Error("useErrorReporter() cannot be used without an <ErrorReporterProvider>");return t};i();i();var os=V(qt(),1),xl={backoffice:"https://manage.wix.com",editor:"https://editor.wix.com",code:"https://code.wix.com",general:"https://www.wix.com",standalone:void 0};function Gr({getAppToken:t,type:e}){return(0,os.createHttpClient)({baseURL:xl[e],...e!=="standalone"?{getAppToken:t}:{},createHeaders:()=>({"X-XSRF-TOKEN":"nocheck",Cookie:"XSRF-TOKEN=nocheck","User-Agent":"wix-cli"})})}i();var ns=V(qt(),1);function Wr(t){return ns.HttpClient.isHttpError(t)}i();import{createElement as Fl,useMemo as Il}from"react";i();var Vr=V(fe(),1);import u from"react";i();function Lt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function is(){return typeof WeakMap<"u"?new WeakMap:wl()}function wl(){return{add:Lt,delete:Lt,get:Lt,set:Lt,has:function(t){return!1}}}var Cl=Object.prototype.hasOwnProperty,Jr=function(t,e){return Cl.call(t,e)};function zr(t,e){for(var r in e)Jr(e,r)&&(t[r]=e[r]);return t}var bl=/^[ \t]*(?:\r\n|\r|\n)/,_l=/(?:\r\n|\r|\n)[ \t]*$/,El=/^(?:[\r\n]|$)/,Tl=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,Al=/^[ \t]*[\r\n][ \t\r\n]*$/;function ss(t,e,r){var o=0,n=t[0].match(Tl);n&&(o=n[1].length);var s="(\\r\\n|\\r|\\n).{0,"+o+"}",a=new RegExp(s,"g");e&&(t=t.slice(1));var l=r.newline,c=r.trimLeadingNewline,v=r.trimTrailingNewline,p=typeof l=="string",h=t.length,m=t.map(function(y,b){return y=y.replace(a,"$1"),b===0&&c&&(y=y.replace(bl,"")),b===h-1&&v&&(y=y.replace(_l,"")),p&&(y=y.replace(/\r\n|\n|\r/g,function(C){return l})),y});return m}function Ol(t,e){for(var r="",o=0,n=t.length;o<n;o++)r+=t[o],o<n-1&&(r+=e[o]);return r}function Sl(t){return Jr(t,"raw")&&Jr(t,"length")}function as(t){var e=is(),r=is();function o(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];if(Sl(s)){var c=s,v=(a[0]===o||a[0]===te)&&Al.test(c[0])&&El.test(c[1]),p=v?r:e,h=p.get(c);if(h||(h=ss(c,v,t),p.set(c,h)),a.length===0)return h[0];var m=Ol(h,v?a.slice(1):a);return m}else return as(zr(zr({},t),s||{}))}var n=zr(o,{string:function(s){return ss([s],!1,t)[0]}});return n}var te=as({trimLeadingNewline:!0,trimTrailingNewline:!0});if(typeof module<"u")try{module.exports=te,Object.defineProperty(te,"__esModule",{value:!0}),te.default=te,te.outdent=te}catch{}i();import ye from"react";var g=({message:t,explanation:e,hint:r})=>ye.createElement(Q,{flexDirection:"column"},ye.createElement(Kt,{type:"error"},t),e&&ye.createElement(Kt,{type:"warning"},e),r&&ye.createElement(Q,{paddingTop:1,columnGap:1},ye.createElement(Po,null),typeof r=="string"?ye.createElement(w,null,r):r)),k=({message:t,explanation:e,hint:r})=>ye.createElement(g,{message:t,explanation:e,hint:r??"This is probably a temporary system error and has been logged. Try again shortly."});function cs(t){return(0,Vr.match)(t,{UnknownFailure:({error:e})=>()=>u.createElement(u.Fragment,null,u.createElement(w,{skin:"error"},"Oh no, seems like the CLI encountered an unexpected error:"),e instanceof Error?u.createElement(w,{skin:"error"},e.message):u.createElement(w,null,JSON.stringify(e))),FailedToGetDeviceCode:()=>()=>u.createElement(k,{message:"An error occured while logging in: Failed to issue a login device code"}),FailedToGetAuthToken:()=>()=>u.createElement(k,{message:"An error occured while logging in: Failed to issue refresh token"}),FailedToRefreshTokenForSite:()=>()=>u.createElement(k,{message:"An error occured while logging in: Failed to issue refresh token for site"}),FailedToRenewAuthToken:()=>()=>u.createElement(k,{message:"Failed to renew access token."}),FailedToRenewAuthTokenSiteNotFound:({siteId:e})=>()=>u.createElement(g,{message:`Authenticate failed, your configured development site (${e}) could not be accessed`,hint:"Make sure the site exists and you still have access to it"}),FailedToRevokeRefreshToken:({email:e})=>()=>u.createElement(k,{message:"An error occured while trying to logout: Failed to revoke refresh token!",explanation:`Wix CLI is still logged in to account ${e}`}),FailedToFetchPackageJson:()=>()=>u.createElement(k,{message:"Failed to fetch package data."}),LatestVersionOfCreateAppRequired:({currentVersion:e,latestVersion:r,updateCommand:o})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Generating a Wix App is only supported using the latest version (",r,") of ",u.createElement(w,{bold:!0},"@wix/create-app")," (current:"," ",e,")"),hint:u.createElement(w,null,"Make sure you are using the following command:",u.createElement(Ee,null),u.createElement(w,{bold:!0},o),u.createElement(Ee,null),"If the problem persists, try clearing your package manager's cache")}),EmptyDirectoryRequiredAppGeneration:({folder:e})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Generating a Wix App requires an empty directory but"," ",u.createElement(w,{bold:!0},e)," already exists and isn't empty"),hint:u.createElement(w,null,"Choose a different project name or delete the existing"," ",u.createElement(w,{bold:!0},e)," folder")}),InvalidNewPackageName:({packageName:e,validations:r})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Generating a Wix App requires a valid npm package name for the generated ",u.createElement(w,{bold:!0},"package.json")," ",u.createElement(Ee,null),"The name ",u.createElement(w,{bold:!0},e)," failed the following validations:",u.createElement(Ee,null),r.map((o,n)=>u.createElement(w,{key:n},u.createElement(Ee,null),"- ",o))),hint:"Choose a different project name that follows the validations above"}),SiteSelectorTimedout:()=>()=>u.createElement(g,{message:"Waiting for application installation timed out."}),TypeErrorInvalidUrl:()=>()=>u.createElement(g,{message:"Invalid assets URL."}),UnsupportedPackageManager:({packageManagerName:e})=>()=>u.createElement(g,{message:"Generating a Wix App requires the usage of a supported package manager",hint:`Expected Yarn or NPM but ${e?`got ${e}`:"failed to detect a package manager"}`}),UnsupportedPackageManagerWorkspaces:({packageManagerName:e})=>()=>u.createElement(g,{message:`Generating a Wix App inside ${e} workspaces is not supported`}),FailedToGetDeveloperApps:()=>()=>u.createElement(k,{message:"Failed to get the list of your applications"}),FailedToCreateDevCenterApp:()=>()=>u.createElement(k,{message:"Failed to register your application in Wix Dev Center"}),SitePermissionDenied:({siteId:e})=>()=>u.createElement(g,{message:`You don't have permissions to site ${e}`}),AppPermissionDenied:({appId:e})=>()=>u.createElement(g,{message:`You don't have permissions to application ${e}`}),FailedToUpdateTelemetryConfig:()=>()=>u.createElement(g,{message:"Failed to change telemetry preferences"}),FailedToInstallPackage:({packageName:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to install npm package ${e}. Cause: ${o}`})},FailedToResolveNpmDependencies:()=>()=>u.createElement(k,{message:"Failed to resolve npm dependencies"}),FailedToInstallPackages:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to install npm packages. Cause: ${r}`})},FailedMigrationToAnyNpm:()=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"Could not start the migration process"),hint:u.createElement(w,null,"Make sure that your package.json does not have packages installed outside of dev dependencies")}),DeprecatedVersion:({currentVersion:e})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,`Your version of the Wix CLI (${e}) is`,u.createElement(w,{bold:!0}," deprecated"),"."),hint:"Please update to the latest version to continue"}),FailedToUninstallPackage:({packageName:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to uninstall npm package ${e}. Cause: ${o}`})},FailedToSyncToRevision:({revision:e})=>()=>u.createElement(g,{message:`Failed to sync the local project to revision ${e}`}),FailedToCreateVersion:()=>()=>u.createElement(g,{message:"Wix CLI failed to create version for your app"}),FailedToReadCache:({path:e})=>()=>u.createElement(g,{message:`Failed to read cache file at ${e}.`}),FailedToWriteCache:({path:e})=>()=>u.createElement(g,{message:`Failed to write cache file at ${e}.`}),UploadApplicationFailed:()=>()=>u.createElement(g,{message:"Failed to upload the application"}),BuiltProjectNeeded:()=>()=>u.createElement(g,{message:"Can not find build output, please execute `wix app build` to build your app before proceeding"}),UnsupportedWixInstallCommand:()=>()=>u.createElement(g,{message:"`wix install` is not supported now. Please use `wix install <package-name>`"}),WixUninstallMissingPackageName:()=>()=>u.createElement(g,{message:"Please specify a package name"}),FailedToReadJson:({filePath:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to read ${e}. Cause: ${o}`})},InvalidJsonFile:({filePath:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Invalid JSON file located at ${e}. Cause: ${o}`})},FailedToWriteWixLock:()=>()=>u.createElement(g,{message:"Failed to write 'wix.lock'"}),InvalidVeloConfigJson:({configFilename:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Invalid ${e}, make sure it's configured correctly. Cause: ${o}`})},DashboardPageConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard page config not found at ${e}`}),EmbeddedScriptConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Embedded script config not found at ${e}`}),CustomElementConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Custom element config not found at ${e}`}),NoExtensionsFound:()=>()=>u.createElement(g,{message:"Your project doesn't seem to have any extensions.",explanation:"Extensions are the building blocks of your app.",hint:"Make sure it is configured properly, or read our documentation (\u200Bhttps://wix.to/b7o4Ml0) to start developing your first extension."}),NoPagesDirectoryFound:({srcDir:e})=>()=>u.createElement(g,{message:u.createElement(u.Fragment,null,"No ",u.createElement(w,{bold:!0},"pages")," directory was found under"," ",u.createElement(w,{bold:!0},e),"."),hint:u.createElement(w,null,"Consider re-cloning the project repository or creating a"," ",u.createElement(w,{bold:!0},"pages")," directory under ",u.createElement(w,{bold:!0},e),".")}),DashboardPagePluginConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard page plugin config not found at ${e}`}),DashboardMenuPluginConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard menu plugin config not found at ${e}`}),DashboardModalConfigNotFound:({configPath:e})=>()=>u.createElement(g,{message:`Dashboard modal config not found at ${e}`}),InvalidConfigSchemaError:({configPath:e,zodError:r})=>()=>u.createElement(g,{message:te`
9
9
  Invalid configuration found at \`${e}\`:
10
10
  The following errors were found:
11
11
  ${r.errors.map(us).join(`
@@ -17,11 +17,11 @@ import{A as Ae,D as Lo,a as ut,b as ct,d as Q,e as Ee,f as Ro,g as w,l as Po,q a
17
17
  Failed to update files.
18
18
  Failed to sync changes from local files to the Dev Editor
19
19
  Still watching local files and will continue to sync changes...
20
- `}),FailedToWatchFiles:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to watch files. Cause: ${r}`})},FailedToCreateGridApp:({error:e})=>()=>u.createElement(g,{message:"Failed to create an isolated environment.",explanation:e}),DeviceCodeTimedOut:()=>()=>u.createElement(g,{message:"The device code has not been approved in the time allocated, please start the login process again."}),DuplicateComponentIdsError:({issues:e})=>{let r=({issue:n})=>{let s=a=>(0,Vr.match)(a,{page:()=>"page","page-plugin":()=>"page plugin","menu-plugin":()=>"menu plugin","sidebar-category":()=>"sidebar category","embedded-script":()=>"embedded script","custom-element":()=>"custom element",modal:()=>"modal"});return u.createElement(Q,{flexDirection:"column"},u.createElement(w,null,u.createElement(w,{bold:!0},"Duplicate ID: "),n.id),u.createElement(w,{bold:!0},"Extensions:"),n.components.map(({name:a,path:l,type:c})=>u.createElement(w,{key:l},"[",s(c),"] ",a," (",l,")")),u.createElement(w,null,u.createElement(w,{bold:!0},"Possible GUID: "),n.suggestedId))},o=u.createElement(Q,{flexDirection:"column",rowGap:1},u.createElement(w,null,"You can use the provided suggested GUIDs as the ID of the newly created extension."),e.map(n=>u.createElement(r,{issue:n,key:n.id})));return()=>u.createElement(g,{message:"Found multiple extensions with the same id, this might happen if you copy paste folders.",hint:o})},FailedToGetPackageDetails:()=>()=>u.createElement(g,{message:"Failed to get package info."}),InvalidCreateAppResponse:()=>()=>u.createElement(g,{message:"`createApp` returned an invalid response."}),InvalidDeployAppResponse:()=>()=>u.createElement(g,{message:"Got unexpected response from server. Make sure you are running a supported version of the Velo CLI."}),InvalidGetDeploymentResponse:()=>()=>u.createElement(g,{message:"Got unexpected response from server. Please try again later.."}),FailedToGetPagesDiff:()=>()=>u.createElement(g,{message:"Failed to request pages diff."}),InvalidViteBuildOutput:()=>()=>u.createElement(g,{message:"Invalid vite build output"}),ViteModuleBundleNotFound:()=>()=>u.createElement(g,{message:"Could not find module bundle in vite build output"}),ViteFileNotFoundInOutput:({fileName:e})=>()=>u.createElement(g,{message:`Could not find ${e} in vite build output`}),FailedToCreatePresignedUrl:()=>()=>u.createElement(g,{message:"Failed to create a presigned upload url"}),FailedToUploadApplicationFiles:()=>()=>u.createElement(g,{message:"Failed to upload the application files"}),FailedToVerifyDeployment:()=>()=>u.createElement(g,{message:"Deployment was not finished within the desired timeframe, please try again later."}),FailedToGetUserInfo:()=>()=>u.createElement(g,{message:"Failed to get user information."}),FailedToCreateDevelopmentSite:()=>()=>u.createElement(g,{message:"Failed to create a Development Site"}),FailedToGetDevelopmentSites:()=>()=>u.createElement(g,{message:"Failed to request development sites."}),FailedToGetDevelopmentSitesLimit:()=>()=>u.createElement(g,{message:"Failed to request development sites limit."}),FailedToQuerySites:()=>()=>u.createElement(g,{message:"Failed to request sites list."}),FailedToGetSite:()=>()=>u.createElement(g,{message:"Failed to get information about your configured Development Site"}),FailedToDeploySite:()=>()=>u.createElement(g,{message:"Failed to deploy site."}),FailedToPublishDeployment:()=>()=>u.createElement(R,{message:"Failed to publish site."}),SiteNotFound:()=>()=>u.createElement(g,{message:"Site not found."}),FailedToSaveDevelopmentSite:({path:e})=>()=>u.createElement(g,{message:"Failed to save the current development site.",hint:`Make sure the \`${e}\` file has proper permissions and is accessible`}),FailedToBuildApp:()=>()=>u.createElement(g,{message:"Failed to build the application.",hint:"Please check the build output for more information"}),FailedToCheckIfAppInstalled:()=>()=>u.createElement(g,{message:"Failed to fetch site installation details"}),FailedToInitializeGitRepo:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to initialize git repo. Cause: ${r}`})},FailedToInstallDependencies:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to install dependencies. Cause: ${r}`})},FailedToCommitChanges:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to commit changes. Cause: ${r}`})},FailedToDeleteAuthData:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to delete auth data: ${r}`})},FailedToDeleteLegacyAuthData:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to delete legacy auth data: ${r}`})},FailedToSaveAuthData:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to save auth data: ${r}`})},FailedToWriteJson:({filePath:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to write JSON at path: ${e}. Cause: ${o}`})},TemplatePathNotFound:({templatePath:e})=>()=>u.createElement(g,{message:`Template path not found: ${e}`,hint:"Make sure the template path exists in the remote repository"}),FailedToCloneRepo:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to clone repo: ${r}`,hint:"Make sure the Git URL is correct and that your local Git is configured properly to access the remote repository"})},InvalidGitUrl:({url:e})=>()=>u.createElement(g,{message:`Invalid Git URL: ${e}`,hint:"Make sure the Git URL is in the correct format"}),AuthenticationRequired:()=>()=>u.createElement(g,{message:"You have to already be logged in to run this command."}),SiteConfiguredRequired:()=>()=>u.createElement(g,{message:"You must configure the development site before running this command, or provide a site-id in the command options."}),FailedAddingPackageToWorkspace:()=>()=>u.createElement(g,{message:"Could not add package to the workspaces configuration. Please add it as instructed by your package manager.",hint:u.createElement(w,null,"Full error can be found in ",u.createElement(w,{bold:!0},"wix-error.log"))}),FailedToGenerateSelfsignedCertificate:()=>()=>u.createElement(g,{message:"Failed to generate a Selfsigned certificate for development."}),NonInteractiveTerminal:()=>()=>u.createElement(g,{message:"This command is not supported in non-interactive terminals. Please run the command in an interactive terminal (TTY)."}),FailedToResolveViteOrigin:()=>()=>u.createElement(g,{message:"Failed to resolve the base url for CSS asset urls"}),FailedToCreateAppRelease:()=>()=>u.createElement(R,{message:"Failed to create an app configuration in dev center."}),FailedToUpdateAppRelease:()=>()=>u.createElement(R,{message:"Failed to update an app configuration in dev center."}),FailedToCheckDeprecatedStatus:()=>()=>u.createElement(R,{message:"Failed to check cli version deprecated status."}),FailedToGetResolveNpmDependenciesResult:()=>()=>u.createElement(R,{message:"Failed to resolve Wix's lockfile."}),CliAppVersionMismatch:({cliVersion:e,cliAppVersion:r})=>()=>u.createElement(g,{message:u.createElement(w,null,"The versions of ",u.createElement(w,{bold:!0},"@wix/cli")," (",e,") and"," ",u.createElement(w,{bold:!0},"@wix/cli-app")," (",r,") dependencies do not match"),hint:u.createElement(w,null,"Align their versions in your ",u.createElement(w,{bold:!0},"package.json")," and re-install dependencies")}),FailedToGetAppValidity:()=>()=>u.createElement(g,{message:"Failed to get validation status for app version from dev center"}),InvalidEmbeddedScriptParameterNames:({templateFilename:e,invalidParameters:r})=>()=>u.createElement(g,{message:`Invalid embedded script template in ${e}`,hint:`Dynamic parameters can only include letters, but some include invalid names: ${r.join(", ")}`}),InvalidEmbeddedScriptTemplate:({templateFilename:e,errorMessage:r})=>()=>u.createElement(g,{message:`Invalid embedded script template in ${e}`,hint:r}),InvalidCustomElementTagName:({tagName:e,errorMessage:r})=>()=>u.createElement(g,{message:u.createElement(w,null,"We use name of folder as tagName for your custom element. Unfortunatly, ",u.createElement(w,{bold:!0},e)," is invalid tagName. Reason: ",r),hint:u.createElement(w,null,"You can find rules for tagName here:"," ",u.createElement(w,{bold:!0},"https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names"))}),FailedToCreateSiteOverride:()=>()=>u.createElement(R,{message:"Failed to create site override configuration"}),FailedToGetPipelineErrorInfo:()=>()=>u.createElement(R,{message:"Failed to get error details"}),FailedToGetDeploymentStatus:()=>()=>u.createElement(R,{message:"Failed to get deployment status"})})}function U(t){return t instanceof Error?t.message:JSON.stringify(t)}function us(t){let e=t.path.join(".");return e?`- \`${e}\`: ${t.message}`:`- ${t.message}`}var Yr=({error:t,systemErrorOverride:e})=>Il(()=>{let r=Fo(t);return So(r)&&e?e:Fl(cs(r.cliCode))},[t,e]);i();import ba from"react";i();import{createContext as kl}from"react";var Ut=kl(null);i();i();i();i();var Kr=class{value;next;constructor(e){this.value=e}},Xe=class{#e;#t;#r;constructor(){this.clear()}enqueue(e){let r=new Kr(e);this.#e?(this.#t.next=r,this.#t=r):(this.#e=r,this.#t=r),this.#r++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#r--,e.value}clear(){this.#e=void 0,this.#t=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}};function Xr(t){if(!((Number.isInteger(t)||t===Number.POSITIVE_INFINITY)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new Xe,r=0,o=()=>{r--,e.size>0&&e.dequeue()()},n=async(l,c,v)=>{r++;let p=(async()=>l(...v))();c(p);try{await p}catch{}o()},s=(l,c,v)=>{e.enqueue(n.bind(void 0,l,c,v)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},a=(l,...c)=>new Promise(v=>{s(l,v,c)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),a}var B=V(fe(),1);i();i();var qe=class extends Error{constructor(e){super(e),this.name="TimeoutError"}},Zr=class extends Error{constructor(e){super(),this.name="AbortError",this.message=e}},ls=t=>globalThis.DOMException===void 0?new Zr(t):new DOMException(t),ds=t=>{let e=t.reason===void 0?ls("This operation was aborted."):t.reason;return e instanceof Error?e:ls(e)};function Qr(t,e){let{milliseconds:r,fallback:o,message:n,customTimers:s={setTimeout,clearTimeout}}=e,a,c=new Promise((v,p)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(e.signal){let{signal:m}=e;m.aborted&&p(ds(m)),m.addEventListener("abort",()=>{p(ds(m))})}if(r===Number.POSITIVE_INFINITY){t.then(v,p);return}let h=new qe;a=s.setTimeout.call(void 0,()=>{if(o){try{v(o())}catch(m){p(m)}return}typeof t.cancel=="function"&&t.cancel(),n===!1?v():n instanceof Error?p(n):(h.message=n??`Promise timed out after ${r} milliseconds`,p(h))},r),(async()=>{try{v(await t)}catch(m){p(m)}})()}).finally(()=>{c.clear()});return c.clear=()=>{s.clearTimeout.call(void 0,a),a=void 0},c}var eo=Symbol("resolveValue");async function Ze(t,e={}){let{interval:r=20,timeout:o=Number.POSITIVE_INFINITY,before:n=!0}=e,s,a=!1,l=new Promise((c,v)=>{let p=async()=>{try{let h=await t();if(typeof h=="object"&&h[eo])c(h[eo]);else{if(typeof h!="boolean")throw new TypeError("Expected condition to return a boolean");h===!0?c():a||(s=setTimeout(p,r))}}catch(h){v(h)}};n?p():s=setTimeout(p,r)});if(o===Number.POSITIVE_INFINITY)return l;try{return await Qr(l,typeof o=="number"?{milliseconds:o}:o)}finally{a=!0,clearTimeout(s)}}Ze.resolveWith=t=>({[eo]:t});i();i();var ys=V(gs(),1),Pl=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed"]),to=class extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}},Nl=(t,e,r)=>{let o=r.retries-(e-1);return t.attemptNumber=e,t.retriesLeft=o,t},Dl=t=>Pl.has(t),vs=t=>globalThis.DOMException===void 0?new Error(t):new DOMException(t);async function Qe(t,e){return new Promise((r,o)=>{e={onFailedAttempt(){},retries:10,...e};let n=ys.default.operation(e);n.attempt(async s=>{try{r(await t(s))}catch(a){if(!(a instanceof Error)){o(new TypeError(`Non-error was thrown: "${a}". You should only throw errors.`));return}if(a instanceof to)n.stop(),o(a.originalError);else if(a instanceof TypeError&&!Dl(a.message))n.stop(),o(a);else{Nl(a,s,e);try{await e.onFailedAttempt(a)}catch(l){o(l);return}n.retry(a)||o(n.mainError())}}}),e.signal&&!e.signal.aborted&&e.signal.addEventListener("abort",()=>{n.stop();let s=e.signal.reason===void 0?vs("The operation was aborted."):e.signal.reason;o(s instanceof Error?s:vs(s))},{once:!0})})}i();i();i();i();function xs(t=""){let[e,r]=ql(t);return r?{schemaName:r,schemaType:e}:{schemaName:e}}var ql=t=>t.split("#");i();i();function ws(t,e,r,o){let n=t;for(let s of e.split(".")){if(!n)return r;n=n[s]}return`${n}${o}`}var Ll="_",Ul=["wix.com","editorx.com"],Hl=["42.wixprod.net","uw2-edt-1.wixprod.net"],Ml="dev.wix-code.com",jl=/{(.*)}/,Bl=new RegExp(`\\.(${Ul.join("|")})$`),$l=new RegExp(`\\.(${Hl.join("|")})$`),Gl=new RegExp(`.*\\.${Ml}$`);function Cs(t){let e=Jl(t.host),r=Yl(e,t.domainToMappings),o=Wl(t.protoPath,t.data||{});return Kl(o,r)}function Wl(t,e){return t.split("/").map(r=>zl(r,e)).join("/")}function zl(t,e){let r=t.match(jl)||[],o=r[1];if(o){let n=t.replace(r[0],"");return ws(e,o,t,n)}return t}function Jl(t){return Vl(t).replace(Bl,"._base_domain_").replace($l,"._api_base_domain_").replace(Gl,"*.dev.wix-code.com")}function Vl(t){return t.replace("create.editorx.com","editor.editorx.com")}function Yl(t,e){let r=e[t]||e[Ll];return!r&&Xl(t)?e[Zl]:r}function Kl(t,e){let r=e?.find(o=>t.startsWith(o.destPath));return r?r.srcPath+t.slice(r.destPath.length):t}function Xl(t){return!!t.match(/\._base_domain_$/)}var Zl="www._base_domain_";i();function bs(t,e=""){let r={};return Object.entries(t).forEach(([o,n])=>{let s=n!==null&&typeof n=="object"&&!Array.isArray(n),a=Ql(e,o);if(s){let l=bs(n,a);Object.assign(r,l)}else r[a]=n}),r}function Ql(t,e){return`${t}${t?".":""}${e}`}function _s(t){let e=bs(t);return Object.entries(e).reduce((r,[o,n])=>((Array.isArray(n)?n:[n]).forEach(a=>{a!=null&&r.append(o,a)}),r),new URLSearchParams)}i();i();var S;(function(t){t[t.TO_JSON=0]="TO_JSON",t[t.FROM_JSON=1]="FROM_JSON"})(S||(S={}));i();function Es(t,e={},r){return function(n={},s){return typeof n=="string"?n:a(t,n);function a(p,h){let m={};return[null,void 0].includes(h)?h:(Object.entries(h).forEach(([y,b])=>{let C=p[y],{schemaName:_,schemaType:F}=xs(C),H=F==="Map",I=c(_)?.checkRepetable?.(b)??Array.isArray(b),A;I?A=b.map(Z=>l(Z,_)):H?A=v(b,_):A=l(b,_),m[y]=A}),m)}function l(p,h){if(!h)return p;let m=e[h];if(c(h))return c(h).transform(p);if(m)return a(m,p);throw new Error(`${h} is neither schema nor serializable type`)}function c(p){return r[p]?.[s]}function v(p,h){return Object.entries(p).reduce((m,[y,b])=>(m[y]=l(b,h),m),{})}}}i();i();var Ts={types:["google.protobuf.Timestamp"],[S.TO_JSON]:{transform:t=>t?.toISOString()},[S.FROM_JSON]:{transform:t=>t?new Date(t):void 0}};i();var As={types:["google.protobuf.FieldMask"],[S.TO_JSON]:{transform:t=>t.join(","),checkRepetable:t=>t.some(e=>Array.isArray(e))},[S.FROM_JSON]:{transform:t=>typeof t=="object"?t.paths:t.split(",")}};i();var Os={types:["google.protobuf.BytesValue","BYTES"],[S.TO_JSON]:{transform:t=>{let e=t.reduce((r,o)=>r+String.fromCharCode(o),"");return btoa(e)}},[S.FROM_JSON]:{transform:t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0))}};i();var Ss={types:["google.protobuf.Duration"],[S.TO_JSON]:{transform:({seconds:t="0",nanos:e=0})=>{let r="";return e!==0&&(r=`.${e.toString().padStart(9,"0")}`),`${t}${r}s`}},[S.FROM_JSON]:{transform:t=>{let[e,r]=t.substring(0,t.length-1).split(".");return{seconds:e,nanos:ed(r)}}}};function ed(t){let e=0;if(t!==void 0){let r=3-t.length/3;e=parseInt(t,10)*Math.pow(1e3,r)}return e}i();var Fs={types:["FLOAT","DOUBLE","google.protobuf.FloatValue","google.protobuf.DoubleValue"],[S.TO_JSON]:{transform:t=>isFinite(t)?t:t.toString()},[S.FROM_JSON]:{transform:t=>t==="NaN"?NaN:t==="Infinity"?1/0:t==="-Infinity"?-1/0:t}};var Is=[Ts,As,Os,Ss,Fs];i();function ks(t){return t.reduce((e,r)=>{let o=r.types.reduce((n,s)=>({...n,[s]:r}),{});return{...e,...o}},{})}var td=ks([...Is]);function we(t,e={}){let r=Es(t,e,td);return{fromJSON(o){let n=rd(o)||o;return r(n,S.FROM_JSON)},toJSON(o){return r(o,S.TO_JSON)}}}function rd(t){try{return JSON.parse(t)}catch{}}var od={},nd={};var id={body:"BYTES"},sd={body:"BYTES"},ad={},ud={};function ro(t){var e={"manage._base_domain_":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"www.wixapis.com":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"users._base_domain_":[{srcPath:"/v1/oauth/device/verify",destPath:"/v1/oauth/device/verify"},{srcPath:"/v1/oauth/manage/user-code",destPath:"/v1/oauth/manage/user-code"}],_:[{srcPath:"/_api/oauth2",destPath:"/v1/oauth"}]};return Cs(Object.assign(t,{domainToMappings:e}))}function oo(t){var e=we(id,{}),r=e.toJSON,o=e.fromJSON,n=we(sd,{}).fromJSON;function s(a){var l=a.host,c=r(t),v={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Token",url:ro({protoPath:"/v1/oauth/token",data:c,host:l}),data:c,transformResponse:n};return v}return s.fromReq=o,s.__isAmbassador=!0,s}function Rs(t){var e=we(od,{}),r=e.toJSON,o=e.fromJSON,n=we(nd,{}).fromJSON;function s(a){var l=a.host,c=r(t),v={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceCode",url:ro({protoPath:"/v1/oauth/device/code",data:c,host:l}),params:_s(c),transformResponse:n};return v}return s.fromReq=o,s.__isAmbassador=!0,s}function Ps(t){var e=we(ad,{}),r=e.toJSON,o=e.fromJSON,n=we(ud,{}).fromJSON;function s(a){var l=a.host,c=r(t),v={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.RevokeRefreshToken",url:ro({protoPath:"/v1/oauth/revoke",data:c,host:l}),data:c,transformResponse:n};return v}return s.fromReq=o,s.__isAmbassador=!0,s}var et=V(fe(),1);i();var Ns=k.object({deviceCode:k.string(),verificationUri:k.string().url(),userCode:k.string(),expiresIn:k.number()}),no=k.object({access_token:k.string(),refresh_token:k.string(),expires_in:k.number()}).transform(t=>({accessToken:t.access_token,refreshToken:t.refresh_token,expiresIn:t.expires_in})),io=k.object({userId:k.string().uuid(),email:k.string().email()}),Ds=k.object({accessToken:k.string(),refreshToken:k.string(),expiresIn:k.number(),issuedAt:k.number()}),qs=Ds.extend({userInfo:io});var{FailedToGetAuthToken:cd,FailedToGetDeviceCode:ld,FailedToRenewAuthToken:dd,FailedToRenewAuthTokenSiteNotFound:pd,FailedToRevokeRefreshToken:fd}=oe,so="6f95cec8-3e98-48b9-b4e5-1fb92fcd9973",Ls=()=>Math.floor(Date.now()/1e3),tt=class extends Error{},Us=(0,et.variant)({TokenRenewed:(0,et.fields)(),RefreshTokenRevoked:(0,et.fields)()}),ao=class{constructor(e){this.httpClient=e;let{minRetryTimeout:r}=_e();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;async requestDeviceCode(e={}){try{let{data:r}=await Qe(()=>this.httpClient.request(Rs({...e,clientId:so})),this.retryOptions);return Ns.parse(r)}catch(r){throw new G({code:ld(),cause:r})}}async createToken(e){try{let r={clientId:so,grantType:"urn:ietf:params:oauth:grant-type:device_code",scope:"offline_access",...e},{data:o}=await Qe(()=>this.httpClient.request(oo(r)),this.retryOptions);return{...no.parse(o),issuedAt:Ls()}}catch(r){throw Wr(r)&&(r.response?.data?.message==="Device code is not yet verified"||r.response?.data?.error==="authorization_pending")?new tt("Device code is not yet verified."):new G({code:cd(),cause:r})}}async renewToken(e){try{let r={clientId:so,grantType:"refresh_token",...e},{data:o}=await Qe(()=>this.httpClient.request(oo(r)),this.retryOptions),n=no.parse(o);return Us.TokenRenewed({...n,issuedAt:Ls()})}catch(r){if(Wr(r)){if(r.response?.status===400&&r.response?.data?.error==="invalid_grant")return Us.RefreshTokenRevoked({cause:r,siteId:e.siteId});if(e.siteId&&r.response?.status===404&&r.response?.data?.details?.applicationError?.code==="SITE_NOT_FOUND")throw new G({code:pd({siteId:e.siteId}),cause:r})}throw new G({code:dd(),cause:r})}}async revokeRefreshToken(e,{email:r}){try{let{data:o}=await this.httpClient.request(Ps(e));return o}catch(o){throw new G({code:fd({email:r}),info:{email:r},cause:o})}}async userInfo({accessToken:e}){try{let r=Gr({type:"backoffice",getAppToken:async()=>e}),{data:o}=await r.get("/_serverless/wix-cli-userinfo/userinfo");return io.parse(o)}catch(r){throw new G({code:oe.FailedToGetUserInfo(),cause:r})}}},Le=new ao(Gr({type:"backoffice"}));i();import{unlink as md,rm as hd}from"node:fs/promises";import{resolve as Ht}from"node:path";var ae=V(fe(),1);function Hs(){return Ht(Vt(),"auth.json")}function co(){return Ht(Vt(),"auth")}function Ms(){return Ht(co(),"account.json")}function gd(t){return Ht(co(),`${t}.json`)}var uo=(0,ae.variant)({Authenticated:(0,ae.fields)(),Unauthenticated:{},Expired:(0,ae.fields)()});async function js(){let t=Ms();if(!await Yt(t))return uo.Unauthenticated();let e=await ko(t),r=qs.parse(e);return po(r)?uo.Authenticated(r):uo.Expired(r)}var Pg=(0,ae.variant)({Authenticated:(0,ae.fields)(),Unauthenticated:{},Expired:(0,ae.fields)()});async function lo(t,e){try{let r=e?gd(e):Ms();await Io(r,t)}catch(r){throw new G({code:oe.FailedToSaveAuthData({cause:r})})}}async function Bs(){try{await hd(co(),{recursive:!0,force:!0})}catch(t){throw new G({code:oe.FailedToDeleteAuthData({cause:t})})}}async function $s(){try{await md(Hs())}catch(t){throw new G({code:oe.FailedToDeleteLegacyAuthData({cause:t})})}}async function Mt(){return Yt(Hs())}function po(t){let e=Math.floor(Date.now()/1e3),r=10*60,o=t.expiresIn-r;return t.issuedAt+o>e}var Gs=t=>1e3*t;async function vd({deviceCode:t,expiresIn:e},{signal:r}){try{let o=await Ze(async()=>{try{let a=await Le.createToken({deviceCode:t});return Ze.resolveWith(a)}catch(a){if(a instanceof tt)return!1;throw a}},{interval:_e().waitForLoginInterval??Gs(3),timeout:{milliseconds:Gs(e),signal:r}}),n=await Le.userInfo({accessToken:o.accessToken}),s={...o,userInfo:n};return await Bs(),await Mt()&&await $s(),await lo(s),s}catch(o){throw o instanceof qe?new G({code:oe.DeviceCodeTimedOut()}):o}}var Ws=(0,B.variant)({Ok:(0,B.payload)(),Error:(0,B.fields)()});async function Js({refreshToken:t,userInfo:e}){let r=await Le.renewToken({refreshToken:t});return(0,B.match)(r,{TokenRenewed:async o=>{let n={userInfo:e,...o};return await lo(n),Ws.Ok(n)},RefreshTokenRevoked:({cause:o})=>Ws.Error({cause:o})})}async function yd(){let t=await js();return(0,B.match)(t,{Authenticated:e=>e,Unauthenticated:()=>null,Expired:async e=>{let r=await Js(e);return(0,B.match)(r,{Ok:B.unpack,Error:(0,B.constant)(null)})}})}function zs({userInfo:t,...e}){let r=Xr(1),o={...e};return{getAccessToken:()=>r(async()=>{if(po(o))return o.accessToken;let n=await Js({...o,userInfo:t});return(0,B.match)(n,{Ok:({payload:s})=>(o=s,o.accessToken),Error:({cause:s})=>{throw new G({code:oe.FailedToRenewAuthToken(),cause:s})}})}),getRefreshToken:()=>o.refreshToken,userInfo:t}}var rt={async isLoggedIn(){let t=await yd();return t?zs(t):null},async login({deviceCode:t,signal:e}){let r=await vd(t,{signal:e});return zs(r)}};i();var wa=V(fe(),1);import zt from"react";i();import ha from"react";i();function fo(t){return{evid:5212,src:11,endpoint:"wix-cli",params:t}}function Jg(t){return{evid:5208,src:11,endpoint:"wix-cli",params:t}}function Vg(t){return{evid:5201,src:11,endpoint:"wix-cli",params:t}}function Yg(t){return{evid:5209,src:11,endpoint:"wix-cli",params:t}}function Vs(t){return{evid:5211,src:11,endpoint:"wix-cli",params:t}}function Kg(t){return{evid:5210,src:11,endpoint:"wix-cli",params:t}}function Xg(t){return{evid:5200,src:11,endpoint:"wix-cli",params:t}}var ga=V(fe(),1);var Ys={"login.instructions_title":"Authorize the CLI to access your Wix account:","login.instructions_details":`1. Copy this code to the clipboard: <0>{code}</0>
21
- 2. Press <1/> to connect to <2/> then paste the code`,"login.legacy_auth_notice":"We implemented a new and more secure login method. You'll need to re-login to continue using the CLI.","login.error_opening_browser":"Failed to open browser, please try opening <0/> manually."};i();import J,{useState as kd}from"react";i();var pa=V(ca(),1);i();var la=V(qt(),1);async function da(t,e){await(0,la.createHttpClient)().post(t,void 0,{params:{url:e}})}async function fa(t){let{userBrowserTestEndpoint:e}=_e();e?await da(e,t):await(0,pa.default)(t,{background:!0})}var ma=({userCode:t,verificationUri:e})=>{let{reportError:r}=Qt(),[o,n]=kd(null);return Ro((s,a)=>{a.return&&fa(e).catch(l=>{r(l),n(l)})}),J.createElement(J.Fragment,null,J.createElement(Ae,{i18nKey:"login.instructions_title"}),J.createElement(Q,{flexDirection:"column",marginTop:1,marginBottom:1,marginLeft:2},J.createElement(Ae,{i18nKey:"login.instructions_details",components:[J.createElement(w,{skin:"legacyBlue"}),J.createElement(No,{value:"enter"}),J.createElement(Xt,{url:e})],values:{code:t}})),o&&J.createElement(J.Fragment,null,J.createElement(Q,{flexDirection:"column",marginBottom:1},J.createElement(Yr,{error:o})),J.createElement(Ae,{i18nKey:"login.error_opening_browser",components:[J.createElement(Xt,{url:e})]})))};var va=({loginFn:t,onLogin:e,onError:r})=>{let o=Zt();function n(l){o.report(fo({isSuccess:!1,...l instanceof Error?{errorType:l.name}:{errorType:"unknown",errorMessage:JSON.stringify(l)}})),r(l)}let s=qo(async({signal:l},c)=>{try{let v=await t({deviceCode:c,signal:l});o.report(fo({isSuccess:!0})),e(v)}catch(v){n(v)}}),{status:a}=Te(async()=>(o.report(Vs({})),Le.requestDeviceCode()),[],{onSuccess:l=>{s.execute(l)},onError:n});return(0,ga.match)(a,{Error:()=>null,Loading:()=>ha.createElement(lt,null),Success:({result:{userCode:l,verificationUri:c}})=>ha.createElement(ma,{userCode:l,verificationUri:c})})};i();var ya=V(fe(),1);import Wt from"react";var xa=({children:t})=>{let{status:e}=Te(Mt,[],{onError:()=>{}});return(0,ya.match)(e,{Error:()=>null,Loading:()=>null,Success:({result:r})=>Wt.createElement(Wt.Fragment,null,r&&Wt.createElement(Q,{marginBottom:1},Wt.createElement(Ae,{i18nKey:"login.legacy_auth_notice"})),t)})};var Ca=({authStrategy:{login:t,isLoggedIn:e},onLogin:r,onError:o,children:n})=>{let{status:s,merge:a}=Te(e,[],{onSuccess:l=>{l&&r(l)},onError:o});return(0,wa.match)(s,{Loading:()=>zt.createElement(lt,null),Error:()=>null,Success:({result:l})=>l===null?zt.createElement(Lo,{messages:Ys},zt.createElement(xa,null,zt.createElement(va,{loginFn:t,onLogin:c=>{a({result:c}),r(c)},onError:o}))):n(l)})};var Rd=({children:t,onError:e,onLogin:r})=>{let o=Do();return ba.createElement(Ca,{authStrategy:rt,onLogin:({userInfo:n})=>r?.(n),onError:e??o},({getAccessToken:n,userInfo:s})=>ba.createElement(Ut.Provider,{value:{getAccessToken:n,userInfo:s}},t))};i();i();import{useContext as Pd}from"react";function Nd(){let t=Pd(Ut);if(!t)throw new Error("useAuth() cannot be used without an <AuthProvider>");return t}var{isLoggedIn:ry}=rt;export{qe as a,Ze as b,Qe as c,Cs as d,_s as e,we as f,qt as g,Gr as h,Wr as i,Nd as j,Oa as k,Zt as l,Jg as m,Vg as n,Yg as o,Kg as p,Xg as q,fa as r,Yr as s,ka as t,Qt as u,Rd as v,ry as w};
20
+ `}),FailedToWatchFiles:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to watch files. Cause: ${r}`})},FailedToCreateGridApp:({error:e})=>()=>u.createElement(g,{message:"Failed to create an isolated environment.",explanation:e}),DeviceCodeTimedOut:()=>()=>u.createElement(g,{message:"The device code has not been approved in the time allocated, please start the login process again."}),DuplicateComponentIdsError:({issues:e})=>{let r=({issue:n})=>{let s=a=>(0,Vr.match)(a,{page:()=>"page","page-plugin":()=>"page plugin","menu-plugin":()=>"menu plugin","sidebar-category":()=>"sidebar category","embedded-script":()=>"embedded script","custom-element":()=>"custom element",modal:()=>"modal"});return u.createElement(Q,{flexDirection:"column"},u.createElement(w,null,u.createElement(w,{bold:!0},"Duplicate ID: "),n.id),u.createElement(w,{bold:!0},"Extensions:"),n.components.map(({name:a,path:l,type:c})=>u.createElement(w,{key:l},"[",s(c),"] ",a," (",l,")")),u.createElement(w,null,u.createElement(w,{bold:!0},"Possible GUID: "),n.suggestedId))},o=u.createElement(Q,{flexDirection:"column",rowGap:1},u.createElement(w,null,"You can use the provided suggested GUIDs as the ID of the newly created extension."),e.map(n=>u.createElement(r,{issue:n,key:n.id})));return()=>u.createElement(g,{message:"Found multiple extensions with the same id, this might happen if you copy paste folders.",hint:o})},FailedToGetPackageDetails:()=>()=>u.createElement(g,{message:"Failed to get package info."}),InvalidCreateAppResponse:()=>()=>u.createElement(g,{message:"`createApp` returned an invalid response."}),InvalidDeployAppResponse:()=>()=>u.createElement(g,{message:"Got unexpected response from server. Make sure you are running a supported version of the Velo CLI."}),InvalidGetDeploymentResponse:()=>()=>u.createElement(g,{message:"Got unexpected response from server. Please try again later.."}),FailedToGetPagesDiff:()=>()=>u.createElement(g,{message:"Failed to request pages diff."}),InvalidViteBuildOutput:()=>()=>u.createElement(g,{message:"Invalid vite build output"}),ViteModuleBundleNotFound:()=>()=>u.createElement(g,{message:"Could not find module bundle in vite build output"}),ViteFileNotFoundInOutput:({fileName:e})=>()=>u.createElement(g,{message:`Could not find ${e} in vite build output`}),FailedToCreatePresignedUrl:()=>()=>u.createElement(g,{message:"Failed to create a presigned upload url"}),FailedToUploadApplicationFiles:()=>()=>u.createElement(g,{message:"Failed to upload the application files"}),FailedToVerifyDeployment:()=>()=>u.createElement(g,{message:"Deployment was not finished within the desired timeframe, please try again later."}),FailedToGetUserInfo:()=>()=>u.createElement(g,{message:"Failed to get user information."}),FailedToCreateDevelopmentSite:()=>()=>u.createElement(g,{message:"Failed to create a Development Site"}),FailedToGetDevelopmentSites:()=>()=>u.createElement(g,{message:"Failed to request development sites."}),FailedToGetDevelopmentSitesLimit:()=>()=>u.createElement(g,{message:"Failed to request development sites limit."}),FailedToQuerySites:()=>()=>u.createElement(g,{message:"Failed to request sites list."}),FailedToGetSite:()=>()=>u.createElement(g,{message:"Failed to get information about your configured Development Site"}),FailedToDeploySite:()=>()=>u.createElement(g,{message:"Failed to deploy site."}),FailedToPublishDeployment:()=>()=>u.createElement(k,{message:"Failed to publish site."}),FailedToSaveDevelopmentSite:({path:e})=>()=>u.createElement(g,{message:"Failed to save the current development site.",hint:`Make sure the \`${e}\` file has proper permissions and is accessible`}),FailedToBuildApp:()=>()=>u.createElement(g,{message:"Failed to build the application.",hint:"Please check the build output for more information"}),FailedToCheckIfAppInstalled:()=>()=>u.createElement(g,{message:"Failed to fetch site installation details"}),FailedToInitializeGitRepo:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to initialize git repo. Cause: ${r}`})},FailedToInstallDependencies:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to install dependencies. Cause: ${r}`})},FailedToCommitChanges:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to commit changes. Cause: ${r}`})},FailedToDeleteAuthData:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to delete auth data: ${r}`})},FailedToDeleteLegacyAuthData:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to delete legacy auth data: ${r}`})},FailedToSaveAuthData:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to save auth data: ${r}`})},FailedToWriteJson:({filePath:e,cause:r})=>{let o=U(r);return()=>u.createElement(g,{message:`Failed to write JSON at path: ${e}. Cause: ${o}`})},TemplatePathNotFound:({templatePath:e})=>()=>u.createElement(g,{message:`Template path not found: ${e}`,hint:"Make sure the template path exists in the remote repository"}),FailedToCloneRepo:({cause:e})=>{let r=U(e);return()=>u.createElement(g,{message:`Failed to clone repo: ${r}`,hint:"Make sure the Git URL is correct and that your local Git is configured properly to access the remote repository"})},InvalidGitUrl:({url:e})=>()=>u.createElement(g,{message:`Invalid Git URL: ${e}`,hint:"Make sure the Git URL is in the correct format"}),AuthenticationRequired:()=>()=>u.createElement(g,{message:"You have to already be logged in to run this command."}),SiteConfiguredRequired:()=>()=>u.createElement(g,{message:"You must configure the development site before running this command, or provide a site-id in the command options."}),FailedAddingPackageToWorkspace:()=>()=>u.createElement(g,{message:"Could not add package to the workspaces configuration. Please add it as instructed by your package manager.",hint:u.createElement(w,null,"Full error can be found in ",u.createElement(w,{bold:!0},"wix-error.log"))}),FailedToGenerateSelfsignedCertificate:()=>()=>u.createElement(g,{message:"Failed to generate a Selfsigned certificate for development."}),NonInteractiveTerminal:()=>()=>u.createElement(g,{message:"This command is not supported in non-interactive terminals. Please run the command in an interactive terminal (TTY)."}),FailedToResolveViteOrigin:()=>()=>u.createElement(g,{message:"Failed to resolve the base url for CSS asset urls"}),FailedToCreateAppRelease:()=>()=>u.createElement(k,{message:"Failed to create an app configuration in dev center."}),FailedToUpdateAppRelease:()=>()=>u.createElement(k,{message:"Failed to update an app configuration in dev center."}),FailedToCheckDeprecatedStatus:()=>()=>u.createElement(k,{message:"Failed to check cli version deprecated status."}),FailedToGetResolveNpmDependenciesResult:()=>()=>u.createElement(k,{message:"Failed to resolve Wix's lockfile."}),CliAppVersionMismatch:({cliVersion:e,cliAppVersion:r})=>()=>u.createElement(g,{message:u.createElement(w,null,"The versions of ",u.createElement(w,{bold:!0},"@wix/cli")," (",e,") and"," ",u.createElement(w,{bold:!0},"@wix/cli-app")," (",r,") dependencies do not match"),hint:u.createElement(w,null,"Align their versions in your ",u.createElement(w,{bold:!0},"package.json")," and re-install dependencies")}),FailedToGetAppValidity:()=>()=>u.createElement(g,{message:"Failed to get validation status for app version from dev center"}),InvalidEmbeddedScriptParameterNames:({templateFilename:e,invalidParameters:r})=>()=>u.createElement(g,{message:`Invalid embedded script template in ${e}`,hint:`Dynamic parameters can only include letters, but some include invalid names: ${r.join(", ")}`}),InvalidEmbeddedScriptTemplate:({templateFilename:e,errorMessage:r})=>()=>u.createElement(g,{message:`Invalid embedded script template in ${e}`,hint:r}),InvalidCustomElementTagName:({tagName:e,errorMessage:r})=>()=>u.createElement(g,{message:u.createElement(w,null,"We use name of folder as tagName for your custom element. Unfortunatly, ",u.createElement(w,{bold:!0},e)," is invalid tagName. Reason: ",r),hint:u.createElement(w,null,"You can find rules for tagName here:"," ",u.createElement(w,{bold:!0},"https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names"))}),FailedToCreateSiteOverride:()=>()=>u.createElement(k,{message:"Failed to create site override configuration"}),FailedToGetPipelineErrorInfo:()=>()=>u.createElement(k,{message:"Failed to get error details"}),FailedToGetDeploymentStatus:()=>()=>u.createElement(k,{message:"Failed to get deployment status"})})}function U(t){return t instanceof Error?t.message:JSON.stringify(t)}function us(t){let e=t.path.join(".");return e?`- \`${e}\`: ${t.message}`:`- ${t.message}`}var Yr=({error:t,systemErrorOverride:e})=>Il(()=>{let r=Fo(t);return So(r)&&e?e:Fl(cs(r.cliCode))},[t,e]);i();import ba from"react";i();import{createContext as Rl}from"react";var Ut=Rl(null);i();i();i();i();var Kr=class{value;next;constructor(e){this.value=e}},Xe=class{#e;#t;#r;constructor(){this.clear()}enqueue(e){let r=new Kr(e);this.#e?(this.#t.next=r,this.#t=r):(this.#e=r,this.#t=r),this.#r++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#r--,e.value}clear(){this.#e=void 0,this.#t=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}};function Xr(t){if(!((Number.isInteger(t)||t===Number.POSITIVE_INFINITY)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new Xe,r=0,o=()=>{r--,e.size>0&&e.dequeue()()},n=async(l,c,v)=>{r++;let p=(async()=>l(...v))();c(p);try{await p}catch{}o()},s=(l,c,v)=>{e.enqueue(n.bind(void 0,l,c,v)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},a=(l,...c)=>new Promise(v=>{s(l,v,c)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),a}var B=V(fe(),1);i();i();var qe=class extends Error{constructor(e){super(e),this.name="TimeoutError"}},Zr=class extends Error{constructor(e){super(),this.name="AbortError",this.message=e}},ls=t=>globalThis.DOMException===void 0?new Zr(t):new DOMException(t),ds=t=>{let e=t.reason===void 0?ls("This operation was aborted."):t.reason;return e instanceof Error?e:ls(e)};function Qr(t,e){let{milliseconds:r,fallback:o,message:n,customTimers:s={setTimeout,clearTimeout}}=e,a,c=new Promise((v,p)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(e.signal){let{signal:m}=e;m.aborted&&p(ds(m)),m.addEventListener("abort",()=>{p(ds(m))})}if(r===Number.POSITIVE_INFINITY){t.then(v,p);return}let h=new qe;a=s.setTimeout.call(void 0,()=>{if(o){try{v(o())}catch(m){p(m)}return}typeof t.cancel=="function"&&t.cancel(),n===!1?v():n instanceof Error?p(n):(h.message=n??`Promise timed out after ${r} milliseconds`,p(h))},r),(async()=>{try{v(await t)}catch(m){p(m)}})()}).finally(()=>{c.clear()});return c.clear=()=>{s.clearTimeout.call(void 0,a),a=void 0},c}var eo=Symbol("resolveValue");async function Ze(t,e={}){let{interval:r=20,timeout:o=Number.POSITIVE_INFINITY,before:n=!0}=e,s,a=!1,l=new Promise((c,v)=>{let p=async()=>{try{let h=await t();if(typeof h=="object"&&h[eo])c(h[eo]);else{if(typeof h!="boolean")throw new TypeError("Expected condition to return a boolean");h===!0?c():a||(s=setTimeout(p,r))}}catch(h){v(h)}};n?p():s=setTimeout(p,r)});if(o===Number.POSITIVE_INFINITY)return l;try{return await Qr(l,typeof o=="number"?{milliseconds:o}:o)}finally{a=!0,clearTimeout(s)}}Ze.resolveWith=t=>({[eo]:t});i();i();var ys=V(gs(),1),Pl=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed"]),to=class extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}},Nl=(t,e,r)=>{let o=r.retries-(e-1);return t.attemptNumber=e,t.retriesLeft=o,t},Dl=t=>Pl.has(t),vs=t=>globalThis.DOMException===void 0?new Error(t):new DOMException(t);async function Qe(t,e){return new Promise((r,o)=>{e={onFailedAttempt(){},retries:10,...e};let n=ys.default.operation(e);n.attempt(async s=>{try{r(await t(s))}catch(a){if(!(a instanceof Error)){o(new TypeError(`Non-error was thrown: "${a}". You should only throw errors.`));return}if(a instanceof to)n.stop(),o(a.originalError);else if(a instanceof TypeError&&!Dl(a.message))n.stop(),o(a);else{Nl(a,s,e);try{await e.onFailedAttempt(a)}catch(l){o(l);return}n.retry(a)||o(n.mainError())}}}),e.signal&&!e.signal.aborted&&e.signal.addEventListener("abort",()=>{n.stop();let s=e.signal.reason===void 0?vs("The operation was aborted."):e.signal.reason;o(s instanceof Error?s:vs(s))},{once:!0})})}i();i();i();i();function xs(t=""){let[e,r]=ql(t);return r?{schemaName:r,schemaType:e}:{schemaName:e}}var ql=t=>t.split("#");i();i();function ws(t,e,r,o){let n=t;for(let s of e.split(".")){if(!n)return r;n=n[s]}return`${n}${o}`}var Ll="_",Ul=["wix.com","editorx.com"],Hl=["42.wixprod.net","uw2-edt-1.wixprod.net"],Ml="dev.wix-code.com",jl=/{(.*)}/,Bl=new RegExp(`\\.(${Ul.join("|")})$`),$l=new RegExp(`\\.(${Hl.join("|")})$`),Gl=new RegExp(`.*\\.${Ml}$`);function Cs(t){let e=Jl(t.host),r=Yl(e,t.domainToMappings),o=Wl(t.protoPath,t.data||{});return Kl(o,r)}function Wl(t,e){return t.split("/").map(r=>zl(r,e)).join("/")}function zl(t,e){let r=t.match(jl)||[],o=r[1];if(o){let n=t.replace(r[0],"");return ws(e,o,t,n)}return t}function Jl(t){return Vl(t).replace(Bl,"._base_domain_").replace($l,"._api_base_domain_").replace(Gl,"*.dev.wix-code.com")}function Vl(t){return t.replace("create.editorx.com","editor.editorx.com")}function Yl(t,e){let r=e[t]||e[Ll];return!r&&Xl(t)?e[Zl]:r}function Kl(t,e){let r=e?.find(o=>t.startsWith(o.destPath));return r?r.srcPath+t.slice(r.destPath.length):t}function Xl(t){return!!t.match(/\._base_domain_$/)}var Zl="www._base_domain_";i();function bs(t,e=""){let r={};return Object.entries(t).forEach(([o,n])=>{let s=n!==null&&typeof n=="object"&&!Array.isArray(n),a=Ql(e,o);if(s){let l=bs(n,a);Object.assign(r,l)}else r[a]=n}),r}function Ql(t,e){return`${t}${t?".":""}${e}`}function _s(t){let e=bs(t);return Object.entries(e).reduce((r,[o,n])=>((Array.isArray(n)?n:[n]).forEach(a=>{a!=null&&r.append(o,a)}),r),new URLSearchParams)}i();i();var S;(function(t){t[t.TO_JSON=0]="TO_JSON",t[t.FROM_JSON=1]="FROM_JSON"})(S||(S={}));i();function Es(t,e={},r){return function(n={},s){return typeof n=="string"?n:a(t,n);function a(p,h){let m={};return[null,void 0].includes(h)?h:(Object.entries(h).forEach(([y,b])=>{let C=p[y],{schemaName:_,schemaType:F}=xs(C),H=F==="Map",I=c(_)?.checkRepetable?.(b)??Array.isArray(b),A;I?A=b.map(Z=>l(Z,_)):H?A=v(b,_):A=l(b,_),m[y]=A}),m)}function l(p,h){if(!h)return p;let m=e[h];if(c(h))return c(h).transform(p);if(m)return a(m,p);throw new Error(`${h} is neither schema nor serializable type`)}function c(p){return r[p]?.[s]}function v(p,h){return Object.entries(p).reduce((m,[y,b])=>(m[y]=l(b,h),m),{})}}}i();i();var Ts={types:["google.protobuf.Timestamp"],[S.TO_JSON]:{transform:t=>t?.toISOString()},[S.FROM_JSON]:{transform:t=>t?new Date(t):void 0}};i();var As={types:["google.protobuf.FieldMask"],[S.TO_JSON]:{transform:t=>t.join(","),checkRepetable:t=>t.some(e=>Array.isArray(e))},[S.FROM_JSON]:{transform:t=>typeof t=="object"?t.paths:t.split(",")}};i();var Os={types:["google.protobuf.BytesValue","BYTES"],[S.TO_JSON]:{transform:t=>{let e=t.reduce((r,o)=>r+String.fromCharCode(o),"");return btoa(e)}},[S.FROM_JSON]:{transform:t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0))}};i();var Ss={types:["google.protobuf.Duration"],[S.TO_JSON]:{transform:({seconds:t="0",nanos:e=0})=>{let r="";return e!==0&&(r=`.${e.toString().padStart(9,"0")}`),`${t}${r}s`}},[S.FROM_JSON]:{transform:t=>{let[e,r]=t.substring(0,t.length-1).split(".");return{seconds:e,nanos:ed(r)}}}};function ed(t){let e=0;if(t!==void 0){let r=3-t.length/3;e=parseInt(t,10)*Math.pow(1e3,r)}return e}i();var Fs={types:["FLOAT","DOUBLE","google.protobuf.FloatValue","google.protobuf.DoubleValue"],[S.TO_JSON]:{transform:t=>isFinite(t)?t:t.toString()},[S.FROM_JSON]:{transform:t=>t==="NaN"?NaN:t==="Infinity"?1/0:t==="-Infinity"?-1/0:t}};var Is=[Ts,As,Os,Ss,Fs];i();function Rs(t){return t.reduce((e,r)=>{let o=r.types.reduce((n,s)=>({...n,[s]:r}),{});return{...e,...o}},{})}var td=Rs([...Is]);function we(t,e={}){let r=Es(t,e,td);return{fromJSON(o){let n=rd(o)||o;return r(n,S.FROM_JSON)},toJSON(o){return r(o,S.TO_JSON)}}}function rd(t){try{return JSON.parse(t)}catch{}}var od={},nd={};var id={body:"BYTES"},sd={body:"BYTES"},ad={},ud={};function ro(t){var e={"manage._base_domain_":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"www.wixapis.com":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"users._base_domain_":[{srcPath:"/v1/oauth/device/verify",destPath:"/v1/oauth/device/verify"},{srcPath:"/v1/oauth/manage/user-code",destPath:"/v1/oauth/manage/user-code"}],_:[{srcPath:"/_api/oauth2",destPath:"/v1/oauth"}]};return Cs(Object.assign(t,{domainToMappings:e}))}function oo(t){var e=we(id,{}),r=e.toJSON,o=e.fromJSON,n=we(sd,{}).fromJSON;function s(a){var l=a.host,c=r(t),v={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Token",url:ro({protoPath:"/v1/oauth/token",data:c,host:l}),data:c,transformResponse:n};return v}return s.fromReq=o,s.__isAmbassador=!0,s}function ks(t){var e=we(od,{}),r=e.toJSON,o=e.fromJSON,n=we(nd,{}).fromJSON;function s(a){var l=a.host,c=r(t),v={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceCode",url:ro({protoPath:"/v1/oauth/device/code",data:c,host:l}),params:_s(c),transformResponse:n};return v}return s.fromReq=o,s.__isAmbassador=!0,s}function Ps(t){var e=we(ad,{}),r=e.toJSON,o=e.fromJSON,n=we(ud,{}).fromJSON;function s(a){var l=a.host,c=r(t),v={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.RevokeRefreshToken",url:ro({protoPath:"/v1/oauth/revoke",data:c,host:l}),data:c,transformResponse:n};return v}return s.fromReq=o,s.__isAmbassador=!0,s}var et=V(fe(),1);i();var Ns=R.object({deviceCode:R.string(),verificationUri:R.string().url(),userCode:R.string(),expiresIn:R.number()}),no=R.object({access_token:R.string(),refresh_token:R.string(),expires_in:R.number()}).transform(t=>({accessToken:t.access_token,refreshToken:t.refresh_token,expiresIn:t.expires_in})),io=R.object({userId:R.string().uuid(),email:R.string().email()}),Ds=R.object({accessToken:R.string(),refreshToken:R.string(),expiresIn:R.number(),issuedAt:R.number()}),qs=Ds.extend({userInfo:io});var{FailedToGetAuthToken:cd,FailedToGetDeviceCode:ld,FailedToRenewAuthToken:dd,FailedToRenewAuthTokenSiteNotFound:pd,FailedToRevokeRefreshToken:fd}=oe,so="6f95cec8-3e98-48b9-b4e5-1fb92fcd9973",Ls=()=>Math.floor(Date.now()/1e3),tt=class extends Error{},Us=(0,et.variant)({TokenRenewed:(0,et.fields)(),RefreshTokenRevoked:(0,et.fields)()}),ao=class{constructor(e){this.httpClient=e;let{minRetryTimeout:r}=_e();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;async requestDeviceCode(e={}){try{let{data:r}=await Qe(()=>this.httpClient.request(ks({...e,clientId:so})),this.retryOptions);return Ns.parse(r)}catch(r){throw new G({code:ld(),cause:r})}}async createToken(e){try{let r={clientId:so,grantType:"urn:ietf:params:oauth:grant-type:device_code",scope:"offline_access",...e},{data:o}=await Qe(()=>this.httpClient.request(oo(r)),this.retryOptions);return{...no.parse(o),issuedAt:Ls()}}catch(r){throw Wr(r)&&(r.response?.data?.message==="Device code is not yet verified"||r.response?.data?.error==="authorization_pending")?new tt("Device code is not yet verified."):new G({code:cd(),cause:r})}}async renewToken(e){try{let r={clientId:so,grantType:"refresh_token",...e},{data:o}=await Qe(()=>this.httpClient.request(oo(r)),this.retryOptions),n=no.parse(o);return Us.TokenRenewed({...n,issuedAt:Ls()})}catch(r){if(Wr(r)){if(r.response?.status===400&&r.response?.data?.error==="invalid_grant")return Us.RefreshTokenRevoked({cause:r,siteId:e.siteId});if(e.siteId&&r.response?.status===404&&r.response?.data?.details?.applicationError?.code==="SITE_NOT_FOUND")throw new G({code:pd({siteId:e.siteId}),cause:r})}throw new G({code:dd(),cause:r})}}async revokeRefreshToken(e,{email:r}){try{let{data:o}=await this.httpClient.request(Ps(e));return o}catch(o){throw new G({code:fd({email:r}),info:{email:r},cause:o})}}async userInfo({accessToken:e}){try{let r=Gr({type:"backoffice",getAppToken:async()=>e}),{data:o}=await r.get("/_serverless/wix-cli-userinfo/userinfo");return io.parse(o)}catch(r){throw new G({code:oe.FailedToGetUserInfo(),cause:r})}}},Le=new ao(Gr({type:"backoffice"}));i();import{unlink as md,rm as hd}from"node:fs/promises";import{resolve as Ht}from"node:path";var ae=V(fe(),1);function Hs(){return Ht(Vt(),"auth.json")}function co(){return Ht(Vt(),"auth")}function Ms(){return Ht(co(),"account.json")}function gd(t){return Ht(co(),`${t}.json`)}var uo=(0,ae.variant)({Authenticated:(0,ae.fields)(),Unauthenticated:{},Expired:(0,ae.fields)()});async function js(){let t=Ms();if(!await Yt(t))return uo.Unauthenticated();let e=await Ro(t),r=qs.parse(e);return po(r)?uo.Authenticated(r):uo.Expired(r)}var Pg=(0,ae.variant)({Authenticated:(0,ae.fields)(),Unauthenticated:{},Expired:(0,ae.fields)()});async function lo(t,e){try{let r=e?gd(e):Ms();await Io(r,t)}catch(r){throw new G({code:oe.FailedToSaveAuthData({cause:r})})}}async function Bs(){try{await hd(co(),{recursive:!0,force:!0})}catch(t){throw new G({code:oe.FailedToDeleteAuthData({cause:t})})}}async function $s(){try{await md(Hs())}catch(t){throw new G({code:oe.FailedToDeleteLegacyAuthData({cause:t})})}}async function Mt(){return Yt(Hs())}function po(t){let e=Math.floor(Date.now()/1e3),r=10*60,o=t.expiresIn-r;return t.issuedAt+o>e}var Gs=t=>1e3*t;async function vd({deviceCode:t,expiresIn:e},{signal:r}){try{let o=await Ze(async()=>{try{let a=await Le.createToken({deviceCode:t});return Ze.resolveWith(a)}catch(a){if(a instanceof tt)return!1;throw a}},{interval:_e().waitForLoginInterval??Gs(3),timeout:{milliseconds:Gs(e),signal:r}}),n=await Le.userInfo({accessToken:o.accessToken}),s={...o,userInfo:n};return await Bs(),await Mt()&&await $s(),await lo(s),s}catch(o){throw o instanceof qe?new G({code:oe.DeviceCodeTimedOut()}):o}}var Ws=(0,B.variant)({Ok:(0,B.payload)(),Error:(0,B.fields)()});async function Js({refreshToken:t,userInfo:e}){let r=await Le.renewToken({refreshToken:t});return(0,B.match)(r,{TokenRenewed:async o=>{let n={userInfo:e,...o};return await lo(n),Ws.Ok(n)},RefreshTokenRevoked:({cause:o})=>Ws.Error({cause:o})})}async function yd(){let t=await js();return(0,B.match)(t,{Authenticated:e=>e,Unauthenticated:()=>null,Expired:async e=>{let r=await Js(e);return(0,B.match)(r,{Ok:B.unpack,Error:(0,B.constant)(null)})}})}function zs({userInfo:t,...e}){let r=Xr(1),o={...e};return{getAccessToken:()=>r(async()=>{if(po(o))return o.accessToken;let n=await Js({...o,userInfo:t});return(0,B.match)(n,{Ok:({payload:s})=>(o=s,o.accessToken),Error:({cause:s})=>{throw new G({code:oe.FailedToRenewAuthToken(),cause:s})}})}),getRefreshToken:()=>o.refreshToken,userInfo:t}}var rt={async isLoggedIn(){let t=await yd();return t?zs(t):null},async login({deviceCode:t,signal:e}){let r=await vd(t,{signal:e});return zs(r)}};i();var wa=V(fe(),1);import zt from"react";i();import ha from"react";i();function fo(t){return{evid:5212,src:11,endpoint:"wix-cli",params:t}}function Jg(t){return{evid:5208,src:11,endpoint:"wix-cli",params:t}}function Vg(t){return{evid:5201,src:11,endpoint:"wix-cli",params:t}}function Yg(t){return{evid:5209,src:11,endpoint:"wix-cli",params:t}}function Vs(t){return{evid:5211,src:11,endpoint:"wix-cli",params:t}}function Kg(t){return{evid:5210,src:11,endpoint:"wix-cli",params:t}}function Xg(t){return{evid:5200,src:11,endpoint:"wix-cli",params:t}}var ga=V(fe(),1);var Ys={"login.instructions_title":"Authorize the CLI to access your Wix account:","login.instructions_details":`1. Copy this code to the clipboard: <0>{code}</0>
21
+ 2. Press <1/> to connect to <2/> then paste the code`,"login.legacy_auth_notice":"We implemented a new and more secure login method. You'll need to re-login to continue using the CLI.","login.error_opening_browser":"Failed to open browser, please try opening <0/> manually."};i();import J,{useState as Rd}from"react";i();var pa=V(ca(),1);i();var la=V(qt(),1);async function da(t,e){await(0,la.createHttpClient)().post(t,void 0,{params:{url:e}})}async function fa(t){let{userBrowserTestEndpoint:e}=_e();e?await da(e,t):await(0,pa.default)(t,{background:!0})}var ma=({userCode:t,verificationUri:e})=>{let{reportError:r}=Qt(),[o,n]=Rd(null);return ko((s,a)=>{a.return&&fa(e).catch(l=>{r(l),n(l)})}),J.createElement(J.Fragment,null,J.createElement(Ae,{i18nKey:"login.instructions_title"}),J.createElement(Q,{flexDirection:"column",marginTop:1,marginBottom:1,marginLeft:2},J.createElement(Ae,{i18nKey:"login.instructions_details",components:[J.createElement(w,{skin:"legacyBlue"}),J.createElement(No,{value:"enter"}),J.createElement(Xt,{url:e})],values:{code:t}})),o&&J.createElement(J.Fragment,null,J.createElement(Q,{flexDirection:"column",marginBottom:1},J.createElement(Yr,{error:o})),J.createElement(Ae,{i18nKey:"login.error_opening_browser",components:[J.createElement(Xt,{url:e})]})))};var va=({loginFn:t,onLogin:e,onError:r})=>{let o=Zt();function n(l){o.report(fo({isSuccess:!1,...l instanceof Error?{errorType:l.name}:{errorType:"unknown",errorMessage:JSON.stringify(l)}})),r(l)}let s=qo(async({signal:l},c)=>{try{let v=await t({deviceCode:c,signal:l});o.report(fo({isSuccess:!0})),e(v)}catch(v){n(v)}}),{status:a}=Te(async()=>(o.report(Vs({})),Le.requestDeviceCode()),[],{onSuccess:l=>{s.execute(l)},onError:n});return(0,ga.match)(a,{Error:()=>null,Loading:()=>ha.createElement(lt,null),Success:({result:{userCode:l,verificationUri:c}})=>ha.createElement(ma,{userCode:l,verificationUri:c})})};i();var ya=V(fe(),1);import Wt from"react";var xa=({children:t})=>{let{status:e}=Te(Mt,[],{onError:()=>{}});return(0,ya.match)(e,{Error:()=>null,Loading:()=>null,Success:({result:r})=>Wt.createElement(Wt.Fragment,null,r&&Wt.createElement(Q,{marginBottom:1},Wt.createElement(Ae,{i18nKey:"login.legacy_auth_notice"})),t)})};var Ca=({authStrategy:{login:t,isLoggedIn:e},onLogin:r,onError:o,children:n})=>{let{status:s,merge:a}=Te(e,[],{onSuccess:l=>{l&&r(l)},onError:o});return(0,wa.match)(s,{Loading:()=>zt.createElement(lt,null),Error:()=>null,Success:({result:l})=>l===null?zt.createElement(Lo,{messages:Ys},zt.createElement(xa,null,zt.createElement(va,{loginFn:t,onLogin:c=>{a({result:c}),r(c)},onError:o}))):n(l)})};var kd=({children:t,onError:e,onLogin:r})=>{let o=Do();return ba.createElement(Ca,{authStrategy:rt,onLogin:({userInfo:n})=>r?.(n),onError:e??o},({getAccessToken:n,userInfo:s})=>ba.createElement(Ut.Provider,{value:{getAccessToken:n,userInfo:s}},t))};i();i();import{useContext as Pd}from"react";function Nd(){let t=Pd(Ut);if(!t)throw new Error("useAuth() cannot be used without an <AuthProvider>");return t}var{isLoggedIn:ry}=rt;export{qe as a,Ze as b,Qe as c,Cs as d,_s as e,we as f,qt as g,Gr as h,Wr as i,Nd as j,Oa as k,Zt as l,Jg as m,Vg as n,Yg as o,Kg as p,Xg as q,fa as r,Yr as s,Ra as t,Qt as u,kd as v,ry as w};
22
22
  /*! Bundled license information:
23
23
 
24
24
  base-64/base64.js:
25
25
  (*! https://mths.be/base64 v1.0.0 by @mathias | MIT license *)
26
26
  */
27
- //# sourceMappingURL=chunk-NXZW6FWB.js.map
27
+ //# sourceMappingURL=chunk-2MVU7B3I.js.map