@zenovay/cli 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agency-Dbj7yVfX.js → agency-U9RMAwY0.js} +1 -1
- package/dist/{ai-CSVIDduV.js → ai-Bzfpn5Cl.js} +1 -1
- package/dist/alerts-Cq5jUD6e.js +3 -0
- package/dist/{analytical-screen-CWeGgpSN.js → analytical-screen-C3Bg9Tom.js} +1 -1
- package/dist/{analytics-BUHylv1O.js → analytics-ikBRZlc_.js} +2 -2
- package/dist/{annotation-D3vlo_vF.js → annotation-DdI6Q90G.js} +1 -1
- package/dist/api-DHG3UEN6.js +1 -0
- package/dist/api-keys-DGOHu_Hr.js +4 -0
- package/dist/api-v2-BkIXYqST.js +1 -0
- package/dist/api-v2-QwiBCPdo.js +1 -0
- package/dist/{audit-BJxdZFH_.js → audit-B-3NTV84.js} +1 -1
- package/dist/{bar-ezHCBAB6.js → bar-IyHiyxtL.js} +1 -1
- package/dist/bin.js +8 -8
- package/dist/{build-B4xwKqUv.js → build-C3yvXl-7.js} +1 -1
- package/dist/{build-CnnSWSp0.js → build-DAuIWHgM.js} +2 -2
- package/dist/{build-D-iShNvR.js → build-Dzo8dW9x.js} +1 -1
- package/dist/{chat-panel-CO8NXcry.js → chat-panel-DQBerjyR.js} +1 -1
- package/dist/check-B33XcEm5.js +1 -0
- package/dist/client-BBtg2JWN.js +5 -0
- package/dist/{commands-6c5O3emR.js → commands-Bb0OLaMv.js} +1 -1
- package/dist/companies-GJwj_Q-V.js +2 -0
- package/dist/{completions-B36oHri-.js → completions-B0_RnJmy.js} +1 -1
- package/dist/config-B2h9s46d.js +1 -0
- package/dist/config-CpAZr7L3.js +1 -0
- package/dist/consent-DmiWAuAh.js +21 -0
- package/dist/consent-scaffold-Cvulc6AM.js +380 -0
- package/dist/csv-emit-BUjr4egD.js +1 -0
- package/dist/csv-emit-D2wM2YFK.js +1 -0
- package/dist/{data-table-B9fR5fox.js → data-table-YAavcKBR.js} +1 -1
- package/dist/deploys-BV4zj4tN.js +2 -0
- package/dist/{detect-installed-4xsXxQEO.js → detect-installed-BNTkTlec.js} +1 -1
- package/dist/detect-installed-Cq9byxjs.js +1 -0
- package/dist/{devices-D5H5sfwz.js → devices-DVeKtRYT.js} +1 -1
- package/dist/{devtools-fgJRClDr.js → devtools-MlsxY7FF.js} +1 -1
- package/dist/{doctor-DGjS3Asp.js → doctor-DFlU-1Ig.js} +1 -1
- package/dist/{domains-DDoALyzB.js → domains-kDjyfCJs.js} +1 -1
- package/dist/{emit-B1QUHP72.js → emit-Dx7_jICa.js} +1 -1
- package/dist/{empty-state-Byy4cH8V.js → empty-state-Q_Zck5al.js} +1 -1
- package/dist/ensure-latest-DF5BdqAj.js +5 -0
- package/dist/ensure-latest-DuOvjVWn.js +1 -0
- package/dist/error-codes-BwJIGQ4w.js +1 -0
- package/dist/{error-codes-hYqmFURk.js → error-codes-eM1xnM06.js} +1 -1
- package/dist/errors-BFAnSwYC.js +2 -0
- package/dist/{events-tail-DJ92C_fR.js → events-tail-CwmfGHoq.js} +1 -1
- package/dist/examples-CFGOV8tW.js +1 -0
- package/dist/export-YoUVBNnR.js +4 -0
- package/dist/{fmt-0K2RPxmm.js → fmt-CGeRKWAv.js} +1 -1
- package/dist/{funnel-EHPxswOA.js → funnel-CWwQzatc.js} +1 -1
- package/dist/{geo-kSdYzGVU.js → geo-D3uTXHH8.js} +1 -1
- package/dist/globe-COHABocB.js +2 -0
- package/dist/goals-DH6mlkZ2.js +7 -0
- package/dist/{grid-D1VMrGh1.js → grid-DRl55ffm.js} +1 -1
- package/dist/{health-CnDZONUo.js → health-45U5Jk5j.js} +2 -2
- package/dist/health-C6xcL7LI.js +1 -0
- package/dist/heatmaps-Ly-6AXpp.js +1 -0
- package/dist/{home-Cd2AY_Zm.js → home-BGO4ODlm.js} +1 -1
- package/dist/init-B7PEYxLF.js +556 -0
- package/dist/init-DsgEZTz8.js +1 -0
- package/dist/insights-Bm_OAwNk.js +1 -0
- package/dist/{integrations-CHx8g-WQ.js → integrations-hwL96kCR.js} +1 -1
- package/dist/journeys-CtUPgyS9.js +1 -0
- package/dist/{keybar-BUSoZI4s.js → keybar-BEO4dRb4.js} +1 -1
- package/dist/line-YDSEOGQz.js +6 -0
- package/dist/live-dm1C-WLU.js +1 -0
- package/dist/{login-CtgZLqRt.js → login-BO7uqoP7.js} +1 -1
- package/dist/login-kOAceg4L.js +1 -0
- package/dist/logout-BHWTaLAK.js +4 -0
- package/dist/{metric-card-C4heNQ2p.js → metric-card-DZGut-iD.js} +1 -1
- package/dist/{notes-Cgqabp1E.js → notes-ov8XAJ9k.js} +1 -1
- package/dist/open-url-_ouKYKnD.js +1 -0
- package/dist/{pages-CcJAxq7P.js → pages-ZcsqB4U3.js} +1 -1
- package/dist/{panel-Cj6i0l7T.js → panel-Dp_R3_m7.js} +1 -1
- package/dist/{plans-DlMBmslO.js → plans-Cpf9uE0V.js} +1 -1
- package/dist/{profile-DzkDduTU.js → profile-CC4zGEF4.js} +1 -1
- package/dist/progress-row-Drmdb28V.js +3 -0
- package/dist/projects-RD-wuGWf.js +2 -0
- package/dist/{prompt-Bon7_cIE.js → prompt-CV690QnP.js} +1 -1
- package/dist/query-B_OUdBDl.js +8 -0
- package/dist/{range-tabs-DszfMIj9.js → range-tabs-Bku39Mwz.js} +1 -1
- package/dist/{resolve-site-CNsqwBUg.js → resolve-site-C5MafURV.js} +1 -1
- package/dist/retention-DeBxttjH.js +1 -0
- package/dist/revenue-Bi6IpU2c.js +2 -0
- package/dist/secrets-dYnrfXG6.js +1 -0
- package/dist/{self-test-CCMB8ARb.js → self-test-CIJtaLSw.js} +3 -3
- package/dist/sessions-Dh0tE8Jp.js +1 -0
- package/dist/{settings-BRV5grQt.js → settings-CZggY5Ki.js} +1 -1
- package/dist/share-C4nFUF1d.js +6 -0
- package/dist/{site-switcher-61_eD8OV.js → site-switcher-CcK0mjbo.js} +1 -1
- package/dist/{snippet-BP19_nBr.js → snippet-BLkb15B8.js} +1 -1
- package/dist/snippet-DnQ7mLah.js +1 -0
- package/dist/sources-5EVvHmKq.js +2 -0
- package/dist/stats-QnBXT-Yi.js +2 -0
- package/dist/{status-agent-DKmywYsS.js → status-agent-lNZc6R0h.js} +1 -1
- package/dist/{team-BBY8Ov1k.js → team-CmU9h3MH.js} +1 -1
- package/dist/{teams-FngswMsZ.js → teams-1Hsr2o1f.js} +1 -1
- package/dist/telemetry-BIY306xy.js +1 -0
- package/dist/{telemetry-D2WJ-c6E.js → telemetry-Cr2nUxnR.js} +1 -1
- package/dist/{telemetry-aqCE5mdP.js → telemetry-CzkkSv-B.js} +1 -1
- package/dist/{themes-CIdkNlPa.js → themes-Kmx_UjY8.js} +1 -1
- package/dist/{tier-D4sWqkfM.js → tier-DXChK2QD.js} +1 -1
- package/dist/token-store-BDqzv_hL.js +1 -0
- package/dist/token-store-BfCYYDKo.js +1 -0
- package/dist/{tour-D80AR9os.js → tour-DlPiEhdm.js} +1 -1
- package/dist/types-CNzaUVEd.js +1 -0
- package/dist/update-Dp2chVIt.js +1 -0
- package/dist/uptime-Db4LdNiE.js +1 -0
- package/dist/usage-CNcnF9Eg.js +3 -0
- package/dist/{use-4Um6npkd.js → use-Cp4W3E-g.js} +1 -1
- package/dist/{use-fullscreen-Dbm198Wc.js → use-fullscreen-BUZ7erD-.js} +1 -1
- package/dist/visitors-Cf9krSNW.js +2 -0
- package/dist/vitals-B9FQrjDM.js +2 -0
- package/dist/{webhooks-BqnlaHi8.js → webhooks-BkH_e7B3.js} +1 -1
- package/dist/webhooks-forward-Dy-BcJQG.js +2 -0
- package/dist/wizard-bin.js +1 -1
- package/dist/wrapper-Cbhmxx_u.js +1 -0
- package/dist/{ws-client-D6a9nnxG.js → ws-client-BLTio_tJ.js} +1 -1
- package/package.json +2 -2
- package/dist/alerts-B36FTO9G.js +0 -3
- package/dist/api-5gFG57HQ.js +0 -1
- package/dist/api-keys-DUw-5TlX.js +0 -4
- package/dist/api-v2-BR7hzTuE.js +0 -1
- package/dist/api-v2-Xlzx3R4O.js +0 -1
- package/dist/check-uBzZL5Tr.js +0 -1
- package/dist/client-B0e29shK.js +0 -5
- package/dist/companies-BPrF3d4x.js +0 -2
- package/dist/config-CMYK0kJ8.js +0 -1
- package/dist/config-UqHRhT5w.js +0 -1
- package/dist/csv-emit-BxHJ7j7N.js +0 -1
- package/dist/csv-emit-lUslInCX.js +0 -1
- package/dist/deploys-Dr9deDgl.js +0 -2
- package/dist/detect-installed-CIto_MNd.js +0 -1
- package/dist/ensure-latest-Bz_phsu7.js +0 -1
- package/dist/ensure-latest-tvfkaNCB.js +0 -5
- package/dist/error-codes-DBLAJrdR.js +0 -1
- package/dist/errors--UHMwsmt.js +0 -2
- package/dist/examples-DhizhBUV.js +0 -1
- package/dist/export-DFRdOUlA.js +0 -4
- package/dist/globe-B8t2rWZZ.js +0 -2
- package/dist/goals-DJr19pZK.js +0 -7
- package/dist/health-fEltttJl.js +0 -1
- package/dist/heatmaps-JbyMXKBZ.js +0 -1
- package/dist/init-BPEQGzEk.js +0 -632
- package/dist/init-BpJFjO6z.js +0 -1
- package/dist/insights-D0ZMi6pZ.js +0 -1
- package/dist/journeys-DXKtFSZO.js +0 -1
- package/dist/live-DtdC1haq.js +0 -1
- package/dist/login-CBKgO6mz.js +0 -1
- package/dist/logout-CiycvpV9.js +0 -4
- package/dist/open-url-CXk774kM.js +0 -1
- package/dist/progress-row-OMHPQ_d2.js +0 -8
- package/dist/projects-Dl3jIqCb.js +0 -2
- package/dist/query-IZQ_Dui5.js +0 -8
- package/dist/retention-D1szXBH4.js +0 -1
- package/dist/revenue-BUsjDu_x.js +0 -2
- package/dist/secrets-BRNtlgiq.js +0 -1
- package/dist/sessions-BkabV-hV.js +0 -1
- package/dist/share-DrGHZuOr.js +0 -6
- package/dist/snippet-5G7x1m5Q.js +0 -1
- package/dist/sources-A2wnMfsq.js +0 -2
- package/dist/stats-CNeIMu0G.js +0 -2
- package/dist/telemetry-BJdN1Wur.js +0 -1
- package/dist/token-store-DBc3US16.js +0 -1
- package/dist/token-store-D_L3jTBu.js +0 -1
- package/dist/update-DmlOB6vV.js +0 -1
- package/dist/uptime-ABA2oRKg.js +0 -1
- package/dist/usage-B7qK2a-n.js +0 -3
- package/dist/visitors-BckSC1cz.js +0 -2
- package/dist/vitals-ChzXaLws.js +0 -2
- package/dist/webhooks-forward-ddWe64s3.js +0 -2
- package/dist/wrapper-dh9pE9E0.js +0 -1
- /package/dist/{confirm-c6bJYu0k.js → confirm-DceekaUZ.js} +0 -0
- /package/dist/{examples-Dq96ZAfI.js → examples-0tV4QAF3.js} +0 -0
- /package/dist/{formatter-BNJtYaNo.js → formatter-DttnSHm0.js} +0 -0
- /package/dist/{globby-BLMApmD1.js → globby-BY_7ZmY6.js} +0 -0
- /package/dist/{index.umd-C1YID-U0.js → index.umd-BZ0lfdzs.js} +0 -0
- /package/dist/{keybar-deep-link-COvqJDJK.js → keybar-deep-link-Cw08hEXK.js} +0 -0
- /package/dist/{open-url-fCsVK-0L.js → open-url-jkmHg-yF.js} +0 -0
- /package/dist/{secrets-BuZxAMGS.js → secrets-Cv61WxMl.js} +0 -0
- /package/dist/{source-B4W8r7R6.js → source-CeRB5G0L.js} +0 -0
- /package/dist/{sparkline-B335kDNk.js → sparkline-B3VkJtaq.js} +0 -0
- /package/dist/{theme-NPi2CBu1.js → theme-DB11SY0h.js} +0 -0
- /package/dist/{ui-DhdtBOaE.js → ui-CRtHC4do.js} +0 -0
- /package/dist/{unknown-action-Cs7uoW1P.js → unknown-action-DlzA5dfq.js} +0 -0
- /package/dist/{wrapper-DO2hCcRG.js → wrapper-BvPZRHd3.js} +0 -0
package/dist/bin.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./check-
|
|
2
|
+
import"./check-B33XcEm5.js";import"./types-CNzaUVEd.js";import{configDir as e}from"./config-B2h9s46d.js";import{cleanupStaleUpdateBackups as t,ensureLatest as n}from"./ensure-latest-DF5BdqAj.js";import"./api-DHG3UEN6.js";import"./token-store-BDqzv_hL.js";import{normalizeError as r}from"./error-codes-eM1xnM06.js";import{EXAMPLES as i}from"./examples-0tV4QAF3.js";import"./index.umd-BZ0lfdzs.js";import{emit as a,flush as o,initTelemetry as s}from"./telemetry-CzkkSv-B.js";import{EventEmitter as c}from"events";import{fork as l}from"node:child_process";import u from"node:path";import{fileURLToPath as d}from"node:url";import{readFileSync as f}from"node:fs";function p(e){return e==null?[]:Array.isArray(e)?e:[e]}function m(e,t,n,r){var i,a=e[t],o=~r.string.indexOf(t)?n==null||n===!0?``:String(n):typeof n==`boolean`?n:~r.boolean.indexOf(t)?n===`false`?!1:n===`true`||(e._.push((i=+n,i*0==0?i:n)),!!n):(i=+n,i*0==0?i:n);e[t]=a==null?o:Array.isArray(a)?a.concat(o):[a,o]}function h(e,t){e||=[],t||={};var n,r,i,a,o,s={_:[]},c=0,l=0,u=0,d=e.length;let f=t.alias!==void 0,h=t.unknown!==void 0,g=t.default!==void 0;if(t.alias=t.alias||{},t.string=p(t.string),t.boolean=p(t.boolean),f)for(n in t.alias)for(r=t.alias[n]=p(t.alias[n]),c=0;c<r.length;c++)(t.alias[r[c]]=r.concat(n)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(r=t.alias[t.boolean[c]]||[],l=r.length;l-- >0;)t.boolean.push(r[l]);for(c=t.string.length;c-- >0;)for(r=t.alias[t.string[c]]||[],l=r.length;l-- >0;)t.string.push(r[l]);if(g){for(n in t.default)if(a=typeof t.default[n],r=t.alias[n]=t.alias[n]||[],t[a]!==void 0)for(t[a].push(n),c=0;c<r.length;c++)t[a].push(r[c])}let _=h?Object.keys(t.alias):[];for(c=0;c<d;c++){if(i=e[c],i===`--`){s._=s._.concat(e.slice(++c));break}for(l=0;l<i.length&&i.charCodeAt(l)===45;l++);if(l===0)s._.push(i);else if(i.substring(l,l+3)===`no-`){if(a=i.substring(l+3),h&&!~_.indexOf(a))return t.unknown(i);s[a]=!1}else{for(u=l+1;u<i.length&&i.charCodeAt(u)!==61;u++);for(a=i.substring(l,u),o=i.substring(++u)||c+1===d||(``+e[c+1]).charCodeAt(0)===45||e[++c],r=l===2?[a]:a,u=0;u<r.length;u++){if(a=r[u],h&&!~_.indexOf(a))return t.unknown(`-`.repeat(l)+a);m(s,a,u+1<r.length||o,t)}}}if(g)for(n in t.default)s[n]===void 0&&(s[n]=t.default[n]);if(f)for(n in s)for(r=t.alias[n]||[];r.length>0;)s[r.shift()]=s[n];return s}const g=e=>e.replace(/[<[].+/,``).trim(),_=e=>{let t=/<([^>]+)>/g,n=/\[([^\]]+)\]/g,r=[],i=e=>{let t=!1,n=e[1];return n.startsWith(`...`)&&(n=n.slice(3),t=!0),{required:e[0].startsWith(`<`),value:n,variadic:t}},a;for(;a=t.exec(e);)r.push(i(a));let o;for(;o=n.exec(e);)r.push(i(o));return r},ee=e=>{let t={alias:{},boolean:[]};for(let[n,r]of e.entries())if(r.names.length>1&&(t.alias[r.names[0]]=r.names.slice(1)),r.isBoolean)if(r.negated){let i=e.some((e,t)=>t!==n&&e.names.some(e=>r.names.includes(e))&&typeof e.required==`boolean`);i||t.boolean.push(r.names[0])}else t.boolean.push(r.names[0]);return t},v=e=>e.sort((e,t)=>e.length>t.length?-1:1)[0],y=(e,t)=>e.length>=t?e:`${e}${` `.repeat(t-e.length)}`,te=e=>e.replace(/([a-z])-([a-z])/g,(e,t,n)=>t+n.toUpperCase()),b=(e,t,n)=>{let r=0,i=t.length,a=e,o;for(;r<i;++r)o=a[t[r]],a=a[t[r]]=r===i-1?n:o??(~t[r+1].indexOf(`.`)||!(+t[r+1]>-1)?{}:[])},x=(e,t)=>{for(let n of Object.keys(t)){let r=t[n];r.shouldTransform&&(e[n]=Array.prototype.concat.call([],e[n]),typeof r.transformFunction==`function`&&(e[n]=e[n].map(r.transformFunction)))}},S=e=>{let t=/([^\\\/]+)$/.exec(e);return t?t[1]:``},C=e=>e.split(`.`).map((e,t)=>t===0?te(e):e).join(`.`);var w=class extends Error{constructor(e){super(e),this.name=this.constructor.name,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack}},ne=class{constructor(e,t,n){this.rawName=e,this.description=t,this.config=Object.assign({},n),e=e.replace(/\.\*/g,``),this.negated=!1,this.names=g(e).split(`,`).map(e=>{let t=e.trim().replace(/^-{1,2}/,``);return t.startsWith(`no-`)&&(this.negated=!0,t=t.replace(/^no-/,``)),C(t)}).sort((e,t)=>e.length>t.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null&&(this.config.default=!0),e.includes(`<`)?this.required=!0:e.includes(`[`)?this.required=!1:this.isBoolean=!0}};const re=process.argv,ie=`${process.platform}-${process.arch} node-${process.version}`;var T=class{constructor(e,t,n={},r){this.rawName=e,this.description=t,this.config=n,this.cli=r,this.options=[],this.aliasNames=[],this.name=g(e),this.args=_(e),this.examples=[]}usage(e){return this.usageText=e,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(e,t=`-v, --version`){return this.versionNumber=e,this.option(t,`Display version number`),this}example(e){return this.examples.push(e),this}option(e,t,n){let r=new ne(e,t,n);return this.options.push(r),this}alias(e){return this.aliasNames.push(e),this}action(e){return this.commandAction=e,this}isMatched(e){return this.name===e||this.aliasNames.includes(e)}get isDefaultCommand(){return this.name===``||this.aliasNames.includes(`!`)}get isGlobalCommand(){return this instanceof E}hasOption(e){return e=e.split(`.`)[0],this.options.find(t=>t.names.includes(e))}outputHelp(){let{name:e,commands:t}=this.cli,{versionNumber:n,options:r,helpCallback:i}=this.cli.globalCommand,a=[{body:`${e}${n?`/${n}`:``}`}];a.push({title:`Usage`,body:` $ ${e} ${this.usageText||this.rawName}`});let o=(this.isGlobalCommand||this.isDefaultCommand)&&t.length>0;if(o){let n=v(t.map(e=>e.rawName));a.push({title:`Commands`,body:t.map(e=>` ${y(e.rawName,n.length)} ${e.description}`).join(`
|
|
3
3
|
`)}),a.push({title:"For more info, run any command with the `--help` flag",body:t.map(t=>` $ ${e}${t.name===``?``:` ${t.name}`} --help`).join(`
|
|
4
4
|
`)})}let s=this.isGlobalCommand?r:[...this.options,...r||[]];if(!this.isGlobalCommand&&!this.isDefaultCommand&&(s=s.filter(e=>e.name!==`version`)),s.length>0){let e=v(s.map(e=>e.rawName));a.push({title:`Options`,body:s.map(t=>` ${y(t.rawName,e.length)} ${t.description} ${t.config.default===void 0?``:`(default: ${t.config.default})`}`).join(`
|
|
5
5
|
`)})}this.examples.length>0&&a.push({title:`Examples`,body:this.examples.map(t=>typeof t==`function`?t(e):t).join(`
|
|
6
6
|
`)}),i&&(a=i(a)||a),console.log(a.map(e=>e.title?`${e.title}:
|
|
7
7
|
${e.body}`:e.body).join(`
|
|
8
8
|
|
|
9
|
-
`))}outputVersion(){let{name:e}=this.cli,{versionNumber:t}=this.cli.globalCommand;t&&console.log(`${e}/${t} ${ie}`)}checkRequiredArgs(){let e=this.args.filter(e=>e.required).length;if(this.cli.args.length<e)throw new w(`missing required args for command \`${this.rawName}\``)}checkUnknownOptions(){let{options:e,globalCommand:t}=this.cli;if(!this.config.allowUnknownOptions){for(let n of Object.keys(e))if(n!==`--`&&!this.hasOption(n)&&!t.hasOption(n))throw new w(`Unknown option \`${n.length>1?`--${n}`:`-${n}`}\``)}}checkOptionValue(){let{options:e,globalCommand:t}=this.cli,n=[...t.options,...this.options];for(let t of n){let r=e[t.name.split(`.`)[0]];if(t.required){let e=n.some(e=>e.negated&&e.names.includes(t.name));if(r===!0||r===!1&&!e)throw new w(`option \`${t.rawName}\` value is missing`)}}}},E=class extends T{constructor(e){super(`@@global@@`,``,{},e)}},D=Object.assign,O=class extends c{constructor(e=``){super(),this.name=e,this.commands=[],this.rawArgs=[],this.args=[],this.options={},this.globalCommand=new E(this),this.globalCommand.usage(`<command> [options]`)}usage(e){return this.globalCommand.usage(e),this}command(e,t,n){let r=new T(e,t||``,n,this);return r.globalCommand=this.globalCommand,this.commands.push(r),r}option(e,t,n){return this.globalCommand.option(e,t,n),this}help(e){return this.globalCommand.option(`-h, --help`,`Display this message`),this.globalCommand.helpCallback=e,this.showHelpOnExit=!0,this}version(e,t=`-v, --version`){return this.globalCommand.version(e,t),this.showVersionOnExit=!0,this}example(e){return this.globalCommand.example(e),this}outputHelp(){this.matchedCommand?this.matchedCommand.outputHelp():this.globalCommand.outputHelp()}outputVersion(){this.globalCommand.outputVersion()}setParsedInfo({args:e,options:t},n,r){return this.args=e,this.options=t,n&&(this.matchedCommand=n),r&&(this.matchedCommandName=r),this}unsetMatchedCommand(){this.matchedCommand=void 0,this.matchedCommandName=void 0}parse(e=re,{run:t=!0}={}){this.rawArgs=e,this.name||=e[1]?S(e[1]):`cli`;let n=!0;for(let t of this.commands){let r=this.mri(e.slice(2),t),i=r.args[0];if(t.isMatched(i)){n=!1;let e=D(D({},r),{args:r.args.slice(1)});this.setParsedInfo(e,t,i),this.emit(`command:${i}`,t)}}if(n){for(let t of this.commands)if(t.name===``){n=!1;let r=this.mri(e.slice(2),t);this.setParsedInfo(r,t),this.emit(`command:!`,t)}}if(n){let t=this.mri(e.slice(2));this.setParsedInfo(t)}this.options.help&&this.showHelpOnExit&&(this.outputHelp(),t=!1,this.unsetMatchedCommand()),this.options.version&&this.showVersionOnExit&&this.matchedCommandName==null&&(this.outputVersion(),t=!1,this.unsetMatchedCommand());let r={args:this.args,options:this.options};return t&&this.runMatchedCommand(),!this.matchedCommand&&this.args[0]&&this.emit(`command:*`),r}mri(e,t){let n=[...this.globalCommand.options,...t?t.options:[]],r=ee(n),i=[],a=e.indexOf(`--`);a>-1&&(i=e.slice(a+1),e=e.slice(0,a));let o=h(e,r);o=Object.keys(o).reduce((e,t)=>D(D({},e),{[C(t)]:o[t]}),{_:[]});let s=o._,c={"--":i},l=t&&t.config.ignoreOptionDefaultValue?t.config.ignoreOptionDefaultValue:this.globalCommand.config.ignoreOptionDefaultValue,u=Object.create(null);for(let e of n){if(!l&&e.config.default!==void 0)for(let t of e.names)c[t]=e.config.default;Array.isArray(e.config.type)&&u[e.name]===void 0&&(u[e.name]=Object.create(null),u[e.name].shouldTransform=!0,u[e.name].transformFunction=e.config.type[0])}for(let e of Object.keys(o))if(e!==`_`){let t=e.split(`.`);b(c,t,o[e]),x(c,u)}return{args:s,options:c}}runMatchedCommand(){let{args:e,options:t,matchedCommand:n}=this;if(!n||!n.commandAction)return;n.checkUnknownOptions(),n.checkOptionValue(),n.checkRequiredArgs();let r=[];return n.args.forEach((t,n)=>{t.variadic?r.push(e.slice(n)):r.push(e[n])}),r.push(t),n.commandAction.apply(this,r)}};const k=(e=``)=>new O(e);function A(e=process.execPath){return!/(?:^|\/)(?:node|nodejs|bun|deno)(?:\.exe)?$/i.test(e.replace(/\\/g,`/`))}function j(e=process.execPath,t=process.argv){return A(e)?e:t[1]??e}var M=`@zenovay/cli`,N=`1.0.
|
|
9
|
+
`))}outputVersion(){let{name:e}=this.cli,{versionNumber:t}=this.cli.globalCommand;t&&console.log(`${e}/${t} ${ie}`)}checkRequiredArgs(){let e=this.args.filter(e=>e.required).length;if(this.cli.args.length<e)throw new w(`missing required args for command \`${this.rawName}\``)}checkUnknownOptions(){let{options:e,globalCommand:t}=this.cli;if(!this.config.allowUnknownOptions){for(let n of Object.keys(e))if(n!==`--`&&!this.hasOption(n)&&!t.hasOption(n))throw new w(`Unknown option \`${n.length>1?`--${n}`:`-${n}`}\``)}}checkOptionValue(){let{options:e,globalCommand:t}=this.cli,n=[...t.options,...this.options];for(let t of n){let r=e[t.name.split(`.`)[0]];if(t.required){let e=n.some(e=>e.negated&&e.names.includes(t.name));if(r===!0||r===!1&&!e)throw new w(`option \`${t.rawName}\` value is missing`)}}}},E=class extends T{constructor(e){super(`@@global@@`,``,{},e)}},D=Object.assign,O=class extends c{constructor(e=``){super(),this.name=e,this.commands=[],this.rawArgs=[],this.args=[],this.options={},this.globalCommand=new E(this),this.globalCommand.usage(`<command> [options]`)}usage(e){return this.globalCommand.usage(e),this}command(e,t,n){let r=new T(e,t||``,n,this);return r.globalCommand=this.globalCommand,this.commands.push(r),r}option(e,t,n){return this.globalCommand.option(e,t,n),this}help(e){return this.globalCommand.option(`-h, --help`,`Display this message`),this.globalCommand.helpCallback=e,this.showHelpOnExit=!0,this}version(e,t=`-v, --version`){return this.globalCommand.version(e,t),this.showVersionOnExit=!0,this}example(e){return this.globalCommand.example(e),this}outputHelp(){this.matchedCommand?this.matchedCommand.outputHelp():this.globalCommand.outputHelp()}outputVersion(){this.globalCommand.outputVersion()}setParsedInfo({args:e,options:t},n,r){return this.args=e,this.options=t,n&&(this.matchedCommand=n),r&&(this.matchedCommandName=r),this}unsetMatchedCommand(){this.matchedCommand=void 0,this.matchedCommandName=void 0}parse(e=re,{run:t=!0}={}){this.rawArgs=e,this.name||=e[1]?S(e[1]):`cli`;let n=!0;for(let t of this.commands){let r=this.mri(e.slice(2),t),i=r.args[0];if(t.isMatched(i)){n=!1;let e=D(D({},r),{args:r.args.slice(1)});this.setParsedInfo(e,t,i),this.emit(`command:${i}`,t)}}if(n){for(let t of this.commands)if(t.name===``){n=!1;let r=this.mri(e.slice(2),t);this.setParsedInfo(r,t),this.emit(`command:!`,t)}}if(n){let t=this.mri(e.slice(2));this.setParsedInfo(t)}this.options.help&&this.showHelpOnExit&&(this.outputHelp(),t=!1,this.unsetMatchedCommand()),this.options.version&&this.showVersionOnExit&&this.matchedCommandName==null&&(this.outputVersion(),t=!1,this.unsetMatchedCommand());let r={args:this.args,options:this.options};return t&&this.runMatchedCommand(),!this.matchedCommand&&this.args[0]&&this.emit(`command:*`),r}mri(e,t){let n=[...this.globalCommand.options,...t?t.options:[]],r=ee(n),i=[],a=e.indexOf(`--`);a>-1&&(i=e.slice(a+1),e=e.slice(0,a));let o=h(e,r);o=Object.keys(o).reduce((e,t)=>D(D({},e),{[C(t)]:o[t]}),{_:[]});let s=o._,c={"--":i},l=t&&t.config.ignoreOptionDefaultValue?t.config.ignoreOptionDefaultValue:this.globalCommand.config.ignoreOptionDefaultValue,u=Object.create(null);for(let e of n){if(!l&&e.config.default!==void 0)for(let t of e.names)c[t]=e.config.default;Array.isArray(e.config.type)&&u[e.name]===void 0&&(u[e.name]=Object.create(null),u[e.name].shouldTransform=!0,u[e.name].transformFunction=e.config.type[0])}for(let e of Object.keys(o))if(e!==`_`){let t=e.split(`.`);b(c,t,o[e]),x(c,u)}return{args:s,options:c}}runMatchedCommand(){let{args:e,options:t,matchedCommand:n}=this;if(!n||!n.commandAction)return;n.checkUnknownOptions(),n.checkOptionValue(),n.checkRequiredArgs();let r=[];return n.args.forEach((t,n)=>{t.variadic?r.push(e.slice(n)):r.push(e[n])}),r.push(t),n.commandAction.apply(this,r)}};const k=(e=``)=>new O(e);function A(e=process.execPath){return!/(?:^|\/)(?:node|nodejs|bun|deno)(?:\.exe)?$/i.test(e.replace(/\\/g,`/`))}function j(e=process.execPath,t=process.argv){return A(e)?e:t[1]??e}var M=`@zenovay/cli`,N=`1.0.35`,P=`Zenovay CLI — AI install wizard + full terminal analytics dashboard`,F=`module`,I={zenovay:`dist/bin.js`,zv:`dist/bin.js`},L=[`dist/**/*.js`,`dist/**/*.cjs`,`dist/**/*.mjs`,`dist/**/*.d.ts`,`README.md`,`LICENSE`,`THIRD-PARTY-NOTICES.md`],R={dev:`tsx src/bin.ts`,build:`tsdown`,"build:binaries":`tsx scripts/build-binaries.ts`,"build:ai-crawl":`cd packages/ai-crawl && tsdown`,typecheck:`tsc --noEmit`,lint:`eslint 'src/**/*.{ts,tsx}'`,test:`vitest run`,"test:watch":`vitest`,"test:all":`vitest run tests/unit tests/integration tests/security`,"test:release":`vitest run tests/e2e tests/update --testTimeout=600000`,"test:smoke":`vitest run tests/smoke --testTimeout=60000`,"test:update-golden":`UPDATE_GOLDEN=1 vitest run tests/e2e`,"render:globe":`tsx scripts/render-globe.ts`,smoke:`bash scripts/smoke-test.sh`},z={"@aws-sdk/client-s3":`^3.1036.0`,"@types/node":`^22.10.0`,"@types/react":`^18.3.12`,"@types/semver":`^7.5.8`,"@typescript-eslint/parser":`^8.61.0`,"@vitest/coverage-v8":`^4.1.10`,cac:`^6.7.14`,chalk:`^5.4.1`,"csv-parse":`^6.2.1`,diff:`^8.0.3`,eslint:`^9.16.0`,globby:`^14.1.0`,ink:`^5.1.0`,"ink-gradient":`^3.0.0`,"ink-select-input":`^6.0.0`,"ink-spinner":`^5.0.0`,"ink-testing-library":`^4.0.0`,"ink-text-input":`^6.0.0`,open:`^10.1.0`,react:`^18.3.1`,"react-devtools-core":`^4.19.1`,semver:`^7.6.3`,"string-width":`^7.2.0`,tsdown:`^0.9.0`,tsx:`^4.19.2`,typescript:`^5.7.2`,ulid:`^2.3.0`,vite:`^7`,vitest:`^4.1.10`,ws:`^8.18.0`,zod:`^3.23.8`},B={node:`>=20.0.0`},V=`pnpm@9.15.9`,ae={overrides:{"ws@>=8.0.0 <8.21.0":`>=8.21.0`}},H=`Zenovay <cli@zenovay.com>`,U=`SEE LICENSE IN LICENSE`,W=`https://cli.zenovay.com`,G={type:`git`,url:`git+https://github.com/zenovay/cli-zenovay.git`},K={url:`https://cli.zenovay.com/feedback`},q=[`zenovay`,`analytics`,`cli`,`tui`,`ai-agent`,`install-wizard`],J={name:M,version:N,description:P,type:F,bin:I,files:L,scripts:R,devDependencies:z,engines:B,packageManager:V,pnpm:ae,author:H,license:U,homepage:W,repository:G,bugs:K,keywords:q};const oe=u.dirname(d(import.meta.url)),Y=J.version,X=j();function se(){return A()}function ce(){if(process.env.ZENOVAY_BACKGROUND_UPDATE===`1`&&!(process.env.ZENOVAY_NO_UPDATE_CHECK===`1`||process.env.CI===`true`))try{let e=u.join(oe,`lib`,`update`,`worker.js`),t=l(e,[],{detached:!0,stdio:`ignore`,env:{...process.env,ZENOVAY_UPDATE_WORKER_FORK:`1`}});t.unref()}catch{}}const Z=k(`zenovay`);Z.version(Y);const Q=[`ANALYTICS`,`BEHAVIOR`,`INTELLIGENCE`,`OPERATIONS`,`MANAGE`,`ACCOUNT`];function le(e){let t=/\[([A-Z]+)\]/.exec(e),n=t?Q.indexOf(t[1]??``):-1;return n===-1?Q.length:n}Z.help(e=>{let t=e.filter(e=>{let t=e.title??``;return!/for more info/i.test(t)}),n=t.find(e=>e.title===`Options`);n&&typeof n.body==`string`&&(n.body=n.body.split(`
|
|
10
10
|
`).map(e=>e.includes(`--no-first-party`)||e.includes(`--no-crawler-tracking`)?e.replace(/\s+\(default: true\)\s*$/,``):e).join(`
|
|
11
11
|
`));let r=t.find(e=>e.title===`Commands`);r&&typeof r.body==`string`&&(r.body=r.body.split(`
|
|
12
12
|
`).map((e,t)=>({line:e,i:t,rank:le(e)})).sort((e,t)=>e.rank-t.rank||e.i-t.i).map(e=>e.line).join(`
|
|
13
|
-
`));let i=Z.matchedCommand;return i?.description&&t.splice(1,0,{body:` ${i.description}`}),t.push({body:"Run `zenovay <command> --help` for command-specific options and examples."}),t}),Z.option(`-q, --quiet`,`Suppress spinners + interactive UI; implies --json`),Z.option(`--team <id>`,"Team override for this command — id only (use `zenovay teams switch <name>` for name lookup)"),(process.argv.includes(`-q`)||process.argv.includes(`--quiet`))&&(process.env.ZENOVAY_FORMAT=`json`,process.argv.includes(`--json`)||process.argv.push(`--json`));let $;for(let e=0;e<process.argv.length;e++){let t=process.argv[e];if(!t)continue;if(t===`--team`){$=process.argv[e+1];break}let n=/^--team=(.+)$/.exec(t);if(n){$=n[1];break}}if($&&(process.env.ZENOVAY_TEAM_ID=$),!process.env.ZENOVAY_TEAM_ID)try{let t=u.join(e(),`config.json`),n=f(t,`utf8`),r=JSON.parse(n);r.currentTeamId&&(process.env.ZENOVAY_TEAM_ID=r.currentTeamId)}catch{}Z.command(`init`,`[OPERATIONS] AI install wizard — add Zenovay tracking to your codebase`).option(`--json`,`Emit NDJSON events to stdout`).option(`--yes`,`Auto-approve all diffs (for CI)`).option(`--review`,`Review each file write before it is applied`).option(`--skip-mcp`,`Skip MCP client install`).option(`--skip-verify`,`Skip first-event verification`).option(`--undo`,`Revert the file writes from the most recent init session`).option(`--no-first-party`,`Skip the same-origin /api/_z/* proxy setup (first-party tracking)`).option(`--no-crawler-tracking`,`Skip the AI-crawler beacon (middleware that reports AI crawler hits)`).option(`--host <host>`,`Deploy host for first-party tracking when it can't be auto-detected: cloudflare-pages | vercel | netlify | nextjs`).option(`--site-id <id>`,`Install for a specific site id (skips the picker)`).action(async e=>{let{initCommand:t}=await import(`./init-
|
|
13
|
+
`));let i=Z.matchedCommand;return i?.description&&t.splice(1,0,{body:` ${i.description}`}),t.push({body:"Run `zenovay <command> --help` for command-specific options and examples."}),t}),Z.option(`-q, --quiet`,`Suppress spinners + interactive UI; implies --json`),Z.option(`--team <id>`,"Team override for this command — id only (use `zenovay teams switch <name>` for name lookup)"),(process.argv.includes(`-q`)||process.argv.includes(`--quiet`))&&(process.env.ZENOVAY_FORMAT=`json`,process.argv.includes(`--json`)||process.argv.push(`--json`));let $;for(let e=0;e<process.argv.length;e++){let t=process.argv[e];if(!t)continue;if(t===`--team`){$=process.argv[e+1];break}let n=/^--team=(.+)$/.exec(t);if(n){$=n[1];break}}if($&&(process.env.ZENOVAY_TEAM_ID=$),!process.env.ZENOVAY_TEAM_ID)try{let t=u.join(e(),`config.json`),n=f(t,`utf8`),r=JSON.parse(n);r.currentTeamId&&(process.env.ZENOVAY_TEAM_ID=r.currentTeamId)}catch{}Z.command(`init`,`[OPERATIONS] AI install wizard — add Zenovay tracking to your codebase`).option(`--json`,`Emit NDJSON events to stdout`).option(`--yes`,`Auto-approve all diffs (for CI)`).option(`--review`,`Review each file write before it is applied`).option(`--skip-mcp`,`Skip MCP client install`).option(`--skip-verify`,`Skip first-event verification`).option(`--undo`,`Revert the file writes from the most recent init session`).option(`--no-first-party`,`Skip the same-origin /api/_z/* proxy setup (first-party tracking)`).option(`--no-crawler-tracking`,`Skip the AI-crawler beacon (middleware that reports AI crawler hits)`).option(`--host <host>`,`Deploy host for first-party tracking when it can't be auto-detected: cloudflare-pages | vercel | netlify | nextjs`).option(`--site-id <id>`,`Install for a specific site id (skips the picker)`).action(async e=>{let{initCommand:t}=await import(`./init-DsgEZTz8.js`),n=await t({cliVersion:Y,cwd:process.cwd(),json:e.json,yes:e.yes,review:e.review,skipMcp:e.skipMcp,skipVerify:e.skipVerify,undo:e.undo,firstParty:e.firstParty,crawlerTracking:e.crawlerTracking,host:e.host,siteId:e.siteId});process.exitCode=n}),Z.command(`consent [action]`,`[OPERATIONS] consent init - scaffold a consent mechanism for session replay / heatmaps`).option(`--dry-run`,`Print the plan and exit without writing anything`).option(`--yes`,`Skip the confirmation prompt (for CI)`).option(`--force`,`Allow replacing files that already exist`).action(async(e,t)=>{let{consentCommand:n}=await import(`./consent-DmiWAuAh.js`);process.exitCode=await n({cliVersion:Y,action:e,cwd:process.cwd(),dryRun:t.dryRun,yes:t.yes,force:t.force})}),Z.command(`login`,`[OPERATIONS] Authenticate via OAuth device flow`).option(`--json`,`Emit NDJSON events`).option(`--no-browser`,`Skip opening the browser automatically`).action(async e=>{let{loginCommand:t}=await import(`./login-kOAceg4L.js`),n=await t({cliVersion:Y,json:e.json,openBrowser:e.browser!==!1,onCode:e=>{process.stdout.write(`\n Open this URL to authorize the CLI:\n ${e.verificationUriComplete??e.verificationUri}\n Or enter code: ${e.userCode}\n\n`)}});!e.json&&n.email?process.stdout.write(`\n ✔ Logged in as ${n.email}\n Try \`zenovay overview\` to see your dashboard, or \`zenovay --help\` for the full command list.\n\n`):e.json||process.stdout.write(`
|
|
14
14
|
✔ Logged in.
|
|
15
15
|
|
|
16
|
-
`)}),Z.command(`logout`,`[OPERATIONS] Revoke current session and delete local auth`).option(`--json`,``).action(async e=>{let{logoutCommand:t}=await import(`./logout-
|
|
17
|
-
`:`\n✗ Unknown analytics sub-command: '${e}'\n Valid: live | funnels | goals | insights | profiles | companies. Run \`zenovay analytics --help\`\n`),process.exit(2)}}),Z.command(`overview`,"[ANALYTICS] Alias for `analytics`").option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,`Emit top-pages as CSV`).option(`--tsv`,`Emit top-pages as TSV`).option(`--ndjson`,`Emit top-pages as NDJSON (one row per line)`).action(async e=>{let{analyticsCommand:t}=await import(`./analytics-
|
|
18
|
-
`:`\n✗ Unknown events action: '${e??`(none)`}'\n Usage: zenovay events tail. Run \`zenovay events tail --help\`\n`),process.exit(2));let{eventsTailCommand:n}=await import(`./events-tail-DJ92C_fR.js`),r=await n({cliVersion:Y,siteId:t.siteId,json:t.json,filter:t.filter,forwardTo:t.forwardTo,replay24h:t.replay24h,setForwardSecret:t.setForwardSecret});process.exitCode=r}),Z.command(`health`,`[OPERATIONS] Run self-diagnostic checks`).option(`--json`,``).action(async e=>{let{healthCommand:t}=await import(`./health-fEltttJl.js`),n=await t({cliVersion:Y,binaryPath:X,json:e.json});process.exitCode=n}),Z.command(`annotation [action]`,`[OPERATIONS] annotation create [--type --message --occurred-at] (deploy / release / campaign / incident / custom)`).option(`--type <type>`,`One of: deploy, release, campaign, incident, custom`,{default:`custom`}).option(`--message <message>`,`Short description (1–500 chars)`,{default:``}).option(`--occurred-at <iso>`,`ISO 8601 timestamp (default: now)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async(e,t)=>{let n=e??`create`;if(n!==`create`){process.stderr.write(`Unknown annotation action: ${n}. Try: zenovay annotation create --type=deploy --message="..."\n`),process.exitCode=2;return}let{annotationCreateCommand:r}=await import(`./annotation-D3vlo_vF.js`),i=await r({cliVersion:Y,type:t.type,message:t.message,occurredAt:t.occurredAt,siteId:t.siteId,json:t.json});process.exitCode=i}),Z.command(`doctor`,`[OPERATIONS] AI-assisted self-healing`).option(`--json`,``).action(async e=>{let{doctorCommand:t}=await import(`./doctor-DGjS3Asp.js`),n=await t({cliVersion:Y,binaryPath:X,json:e.json});process.exitCode=n}),Z.command(`stats`,`[ANALYTICS] One-shot dashboard summary (scriptable by default)`).option(`--site-id <id>`,`Site ID`).option(`--range <range>`,`Time range: 24h | 7d | 30d`,{default:`24h`}).option(`--watch`,`Auto-refresh every 60s`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{statsCommand:t}=await import(`./stats-CNeIMu0G.js`),n=await t({cliVersion:Y,siteId:e.siteId,range:e.range,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`sources`,`[ANALYTICS] Traffic source breakdown with delta arrows`).option(`--site-id <id>`,`Site ID`).option(`--range, --period <p>`,`Time range: 7d | 30d | 90d | 1y (--period is a legacy alias)`,{default:`30d`}).option(`--compare <c>`,`Comparison window (use "prev" for period-over-period)`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{sourcesCommand:t}=await import(`./sources-A2wnMfsq.js`),n=await t({cliVersion:Y,siteId:e.siteId,period:e.period,compare:e.compare,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`vitals`,`[BEHAVIOR] Core Web Vitals dashboard (LCP / INP / CLS / TTFB / FCP) (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--url <path>`,`Filter to a single URL`).option(`--device <type>`,`Filter by device: mobile | desktop`).option(`--range, --window <w>`,`Time range: 24h | 7d | 30d | 90d (--window is a legacy alias)`,{default:`7d`}).option(`--watch`,`Auto-refresh every 5 minutes`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{vitalsCommand:t}=await import(`./vitals-ChzXaLws.js`),n=await t({cliVersion:Y,siteId:e.siteId,url:e.url,device:e.device,window:e.window,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`revenue`,`[ANALYTICS] MRR / ARR / transaction series`).option(`--site-id <id>`,`Site ID`).option(`--range <r>`,`Time range: 24h | 7d | 30d | 1y`,{default:`30d`}).option(`--watch`,`Auto-refresh every 5 minutes`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{revenueCommand:t}=await import(`./revenue-BUsjDu_x.js`),n=await t({cliVersion:Y,siteId:e.siteId,range:e.range,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`funnels`,`[BEHAVIOR] List available funnels (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{funnelCommand:t}=await import(`./funnel-EHPxswOA.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`themes`,`[OPERATIONS] List available themes with colored swatches`).option(`--validate <path>`,`Validate a custom theme JSON file`).option(`--json`,`Emit themes JSON to stdout`).action(async e=>{let{themesCommand:t}=await import(`./themes-CIdkNlPa.js`),n=await t({cliVersion:Y,validate:e.validate,json:e.json});process.exitCode=n}),Z.command(`completions [shell] [valuesType]`,`[OPERATIONS] Emit shell-completion script (bash | zsh | fish | nushell | pwsh)`).option(`--list`,`List supported shells`).action(async(e,t,n)=>{let{completionsCommand:r}=await import(`./completions-B36oHri-.js`),i=await r({shell:e,valuesType:t,list:n.list});process.exitCode=i}),Z.command(`query [sql]`,`[INTELLIGENCE] Restricted SQL REPL over the analytics schema (Scale+)`).option(`--site-id <id>`,`Site ID`).option(`--max-rows <n>`,`Cap result row count`,{default:1e3}).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async(e,t)=>{let{queryCommand:n}=await import(`./query-IZQ_Dui5.js`),r=await n({cliVersion:Y,siteId:t.siteId,sql:e,maxRows:typeof t.maxRows==`string`?Number(t.maxRows):t.maxRows,json:t.json,csv:t.csv,tsv:t.tsv,ndjson:t.ndjson});process.exitCode=r}),Z.command(`companies`,`[INTELLIGENCE] B2B identification feed (Scale+)`).option(`--site-id <id>`,`Site ID`).option(`--range, --window <w>`,`Time range: 24h | 7d | 30d | 90d (--window is a legacy alias)`,{default:`24h`}).option(`--limit <n>`,`Max rows`,{default:100}).option(`--new-only`,`Show only newly identified companies (first-seen in last hour)`).option(`--watch`,`Auto-refresh every 30s`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{companiesCommand:t}=await import(`./companies-BPrF3d4x.js`),n=await t({cliVersion:Y,siteId:e.siteId,window:e.window,limit:typeof e.limit==`string`?Number(e.limit):e.limit,newOnly:e.newOnly,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`projects`,`[OPERATIONS] List your tracked projects`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{projectsCommand:t}=await import(`./projects-Dl3jIqCb.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`deploys`,`[OPERATIONS] Recent deploy markers overlaid on charts`).option(`--site-id <id>`,`Site ID`).option(`--branch <name>`,`Filter to a single branch (e.g. main, develop)`).option(`--since <iso>`,`Only commits after this ISO timestamp`).option(`--limit <n>`,`Max rows`,{default:50}).option(`--connect`,`Print the GitHub-integration deep link in app.zenovay.com`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{deploysCommand:t}=await import(`./deploys-Dr9deDgl.js`),n=await t({cliVersion:Y,siteId:e.siteId,branch:e.branch,since:e.since,limit:typeof e.limit==`string`?Number(e.limit):e.limit,connect:e.connect,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`errors`,`[BEHAVIOR] Recent JS / HTTP error snapshot`).alias(`error`).option(`--site-id <id>`,`Site ID`).option(`--range, --window <w>`,`Time range: 24h | 7d | 30d | 90d (--window is a legacy alias)`,{default:`24h`}).option(`--limit <n>`,`Max errors to fetch`,{default:100}).option(`--search <q>`,`Filter by class or message substring`).option(`--watch`,`Auto-refresh every 30s`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{errorsCommand:t}=await import(`./errors--UHMwsmt.js`),n=await t({cliVersion:Y,siteId:e.siteId,window:e.window,limit:typeof e.limit==`string`?Number(e.limit):e.limit,search:e.search,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`funnel <id>`,`[BEHAVIOR] Funnel drop-off chart for a specific funnel (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--range, --window <w>`,`Time range: 7d | 30d (--window is a legacy alias)`,{default:`30d`}).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async(e,t)=>{let{funnelCommand:n}=await import(`./funnel-EHPxswOA.js`),r=await n({cliVersion:Y,siteId:t.siteId,funnelId:e,window:t.window,json:t.json,csv:t.csv,tsv:t.tsv,ndjson:t.ndjson});process.exitCode=r}),Z.command(`api-keys [action] [id]`,`[MANAGE] api-keys list | create [--name --scope] | delete <id>`).option(`--name <n>`,`Human-readable label (create)`).option(`--scope <scope>`,`read | write (create)`,{default:`read`}).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let{apiKeysCommand:r}=await import(`./api-keys-DUw-5TlX.js`),i=e??`list`;process.exitCode=await r({cliVersion:Y,action:i,id:t,name:n.name,scope:n.scope===`write`?`write`:`read`,yes:n.yes,json:n.json})}),Z.command(`domains [action] [arg]`,`[MANAGE] domains list | add <url> [--name] | delete <id>`).option(`--name <n>`,`Friendly project name (add; default: domain itself)`).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let{domainsCommand:r}=await import(`./domains-DDoALyzB.js`),i=e??`list`;process.exitCode=await r({cliVersion:Y,action:i,url:i===`add`?t:void 0,id:i===`delete`?t:void 0,name:n.name,yes:n.yes,json:n.json})}),Z.command(`team [action] [arg] [arg2]`,`[MANAGE] team list | invite <email> [--role] | remove <userId> | role <userId> <admin|member> (Pro+)`).option(`--role <role>`,`admin | member (invite)`,{default:`member`}).option(`--yes`,`Skip confirmation (remove)`).option(`--json`,``).action(async(e,t,n,r)=>{let{teamCommand:i}=await import(`./team-BBY8Ov1k.js`),a=e??`list`,o;a===`role`?o=n===`admin`?`admin`:`member`:a===`invite`&&(o=r.role===`admin`?`admin`:`member`),process.exitCode=await i({cliVersion:Y,action:a,email:a===`invite`?t:void 0,userId:a===`remove`||a===`role`?t:void 0,role:o,yes:r.yes,json:r.json})}),Z.command(`profile [action]`,`[ACCOUNT] profile show | edit [--name --notifications]`).option(`--name <n>`,`New display name (edit)`).option(`--notifications <pref>`,`email | none (edit)`).option(`--json`,``).action(async(e,t)=>{let n=e??`show`,r=t.notifications===`email`||t.notifications===`none`?t.notifications:void 0,{profileCommand:i}=await import(`./profile-DzkDduTU.js`);process.exitCode=await i({cliVersion:Y,action:n,name:t.name,notifications:r,json:t.json})}),Z.command(`plans [action] [arg] [arg2]`,`[ACCOUNT] plans info | upgrade <pro|scale> | cancel --yes | payment update`).option(`--yes`,"Required for `cancel`").option(`--json`,``).action(async(e,t,n,r)=>{let i=e??`info`,{plansCommand:a}=await import(`./plans-DlMBmslO.js`),o;if(i===`upgrade`&&t){let e=String(t).toLowerCase();(e===`pro`||e===`scale`||e===`enterprise`)&&(o=e)}let s=i===`payment`&&t===`update`||i===`payment`?`update`:void 0;process.exitCode=await a({cliVersion:Y,action:i,targetPlan:o,paymentAction:s,yes:r.yes,json:r.json})}),Z.command(`billing [action]`,"[ACCOUNT] Alias for `plans info`").option(`--json`,``).action(async(e,t)=>{let{plansCommand:n}=await import(`./plans-DlMBmslO.js`);process.exitCode=await n({cliVersion:Y,action:`info`,json:t.json})}),Z.command(`settings [action] [key] [value]`,`[ACCOUNT] settings get [key] | set <key> <value>`).option(`--json`,``).action(async(e,t,n,r)=>{let i=e??`get`,{settingsCommand:a}=await import(`./settings-BRV5grQt.js`);process.exitCode=await a({cliVersion:Y,action:i,key:t||void 0,value:n||void 0,json:r.json})}),Z.command(`integrations [action] [name]`,`[ACCOUNT] integrations list | connect <gsc|github> | disconnect <gsc|github>`).option(`--yes`,`Skip confirmation (disconnect)`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,i=t===`gsc`||t===`github`?t:void 0,{integrationsCommand:a}=await import(`./integrations-CHx8g-WQ.js`);process.exitCode=await a({cliVersion:Y,action:r,name:i,yes:n.yes,json:n.json})}),Z.command(`goals [action] [id]`,`[ACCOUNT] goals list | create [--name --type --target] | delete <id> (Pro+)`).option(`--name <n>`,`Goal name (create)`).option(`--type <t>`,`pageview | event (create)`).option(`--target <v>`,`URL pattern or event name (create)`).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,i=n.type===`event`||n.type===`pageview`?n.type:void 0,{goalsCommand:a}=await import(`./goals-DJr19pZK.js`);process.exitCode=await a({cliVersion:Y,action:r,id:t,name:n.name,type:i,target:n.target,yes:n.yes,json:n.json})}),Z.command(`notes [action] [id]`,`[ACCOUNT] notes list | create [--content --site-id] | delete <id>`).option(`--content <text>`,`Note body (create)`).option(`--site-id <id>`,`Attach to a specific site (create; defaults to current)`).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,{notesCommand:i}=await import(`./notes-Cgqabp1E.js`);process.exitCode=await i({cliVersion:Y,action:r,id:t,content:n.content,siteId:n.siteId,yes:n.yes,json:n.json})}),Z.command(`agency [action] [arg] [arg2]`,`[ACCOUNT] agency clients list | clients add [--email --name] | clients remove <id> | report send <clientId> (Scale+)`).option(`--email <e>`,`Client contact email (clients add)`).option(`--name <n>`,`Client name (clients add)`).option(`--yes`,`Skip confirmation (clients remove)`).option(`--json`,``).action(async(e,t,n,r)=>{let{agencyCommand:i}=await import(`./agency-Dbj7yVfX.js`),a=`clients-list`,o;e===`clients`?t===`add`?a=`clients-add`:t===`remove`?(a=`clients-remove`,o=n):a=`clients-list`:e===`report`&&t===`send`&&(a=`report-send`,o=n),process.exitCode=await i({cliVersion:Y,action:a,id:o,email:r.email,name:r.name,yes:r.yes,json:r.json})}),Z.command(`use [site]`,`[OPERATIONS] Set / show / reset your default site (used when --site-id is omitted)`).option(`--reset`,`Clear the stored default site`).option(`--show`,`Print the current default and exit`).option(`--json`,`Emit JSON`).action(async(e,t)=>{let{useCommand:n}=await import(`./use-4Um6npkd.js`),r=await n({cliVersion:Y,match:e,reset:t.reset,show:t.show,json:t.json});process.exitCode=r}),Z.command(`update`,`[OPERATIONS] Manually install the latest version`).option(`--check`,`Don't install — just print latest`).option(`--force-downgrade`,`Allow downgrading to an older version`).option(`--no-update-check`,`Disable auto-update for this invocation`).option(`--json`,``).action(async e=>{let{updateCommand:t}=await import(`./update-DmlOB6vV.js`);await t({cliVersion:Y,binaryPath:X,check:e.check,forceDowngrade:e.forceDowngrade,json:e.json})}),Z.command(`usage`,`[ACCOUNT] Current month events vs plan limits + headcounts`).option(`--json`,``).action(async e=>{let{usageCommand:t}=await import(`./usage-B7qK2a-n.js`);process.exitCode=await t({cliVersion:Y,json:e.json})}),Z.command(`globe`,`[ANALYTICS] Live 3D globe — visitors plotted on a Braille sphere`).option(`--site-id <id>`,`Site ID`).option(`--browser`,`Open the dashboard's Mapbox globe in your browser instead of the terminal version`).option(`--json`,``).action(async e=>{let{globeCommand:t}=await import(`./globe-B8t2rWZZ.js`);process.exitCode=await t({cliVersion:Y,siteId:e.siteId,browser:e.browser,json:e.json})}),Z.command(`webhooks [action] [arg]`,`[MANAGE] webhooks list | add <url> [--events] | delete <id> | rotate <id> | test <id> | forward [--to]`).option(`--events <list>`,`Comma-separated event types (add)`).option(`--yes`,`Skip confirmation (delete/rotate)`).option(`--to <url>`,`forward: local URL to POST events to (e.g. localhost:3000/webhook)`).option(`--site-id <id>`,`forward: Site ID`).option(`--sign`,`forward: HMAC-sign each forwarded request with X-Zenovay-Signature`).option(`--secret <hex>`,`forward: HMAC secret (auto-derived from tunnel key if --sign without --secret)`).option(`--max-retries <n>`,`forward: per-request retry count`,{default:3}).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`;if(r===`forward`){let{webhooksForwardCommand:e}=await import(`./webhooks-forward-ddWe64s3.js`);process.exitCode=await e({cliVersion:Y,to:n.to,siteId:n.siteId,sign:n.sign,secret:n.secret,maxRetries:typeof n.maxRetries==`string`?Number(n.maxRetries):n.maxRetries});return}let{webhooksCommand:i}=await import(`./webhooks-BqnlaHi8.js`);process.exitCode=await i({cliVersion:Y,action:r,url:r===`add`?t:void 0,id:r===`delete`||r===`rotate`||r===`test`?t:void 0,events:n.events,yes:n.yes,json:n.json})}),Z.command(`audit [action]`,`[ACCOUNT] audit list [--since --action --actor] | export [--format --out] (Pro+)`).option(`--range, --since <window>`,`Time range like 24h, 7d, 30d (list; --since is a legacy alias)`,{default:`7d`}).option(`--action <pattern>`,`Filter by action string (list)`).option(`--actor <userId>`,`Filter by actor user ID (list)`).option(`--format <fmt>`,`ndjson | csv | json (export)`,{default:`ndjson`}).option(`--out <file>`,`Output file path (export). Defaults to stdout`).option(`--json`,``).action(async(e,t)=>{let n=e??`list`,r=t.format??`ndjson`,{auditCommand:i}=await import(`./audit-BJxdZFH_.js`);process.exitCode=await i({cliVersion:Y,action:n,since:t.since,filterAction:t.action,actor:t.actor,format:r,out:t.out,json:t.json})}),Z.command(`share [action]`,`[ACCOUNT] share enable | disable | url — public dashboard share for the current site`).option(`--site-id <id>`,`Site ID (defaults to your current default site)`).option(`--yes`,`Skip confirmation (disable)`).option(`--json`,``).action(async(e,t)=>{let n=e??`url`,{shareCommand:r}=await import(`./share-DrGHZuOr.js`);process.exitCode=await r({cliVersion:Y,action:n,siteId:t.siteId,yes:t.yes,json:t.json})}),Z.command(`commands`,`[OPERATIONS] Emit the machine-readable command tree (for AI agents and shell-completion regen)`).option(`--json`,``).action(async e=>{let{commandsCommand:t}=await import(`./commands-6c5O3emR.js`);process.exitCode=await t({cliVersion:Y,json:e.json})}),Z.command(`teams [action] [arg]`,`[ACCOUNT] teams list | switch <name-or-id> | current | reset`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,{teamsCommand:i}=await import(`./teams-FngswMsZ.js`);process.exitCode=await i({cliVersion:Y,action:r,match:r===`switch`?t:void 0,json:n.json})}),Z.command(`self-test`,`[OPERATIONS] Functional smoke check across every read endpoint and your local install`).option(`--quick`,`Run a 10-test subset (faster)`).option(`--full`,`Include active security probes + CLI meta-tests (dev/CI use)`).option(`--verbose`,`Include full stdout/stderr per test`).option(`--parallel <n>`,`Concurrent subprocesses (default 4)`,{default:4}).option(`--json`,`Emit NDJSON one line per test result + final summary`).action(async e=>{let{selfTestCommand:t}=await import(`./self-test-CCMB8ARb.js`);process.exitCode=await t({cliVersion:Y,full:!!e.full,quick:!!e.quick,verbose:!!e.verbose,parallel:Number(e.parallel)||4,json:!!e.json})}),Z.command(`tour`,`[OPERATIONS] Interactive 8-step walkthrough of the CLI`).option(`--non-interactive`,`Print all 8 steps as a flat document (no prompts)`).action(async e=>{let{tourCommand:t}=await import(`./tour-D80AR9os.js`);process.exitCode=await t({cliVersion:Y,nonInteractive:!!(e[`non-interactive`]||e.nonInteractive)})}),Z.command(`alerts [action] [id]`,`[MANAGE] alerts list | create [--metric --op --threshold --window] | delete <id> (Pro+)`).option(`--site-id <id>`,`Site ID (defaults to your current default site)`).option(`--metric <name>`,`Metric to watch (visitors|pageviews|bounce_rate|errors|lcp|inp|cls|uptime|revenue)`).option(`--op <gt|lt>`,`Comparison operator`).option(`--threshold <num>`,`Numeric threshold`).option(`--window <e.g. 1h>`,`Rolling window (5m|1h|24h|7d)`).option(`--name <label>`,`Optional friendly label for the alert`).option(`--channel <chan>`,`Notification channel: in_app | email | webhook (default in_app)`).option(`--email <addr>`,`Notification email (required when --channel email)`).option(`--yes`,`Skip confirmation prompt on delete`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,i=new Set([`list`,`create`,`delete`]);i.has(r)||(process.stderr.write(n.json?JSON.stringify({type:`error`,code:`validation_failed`,message:`Unknown alerts action: ${e}`,hint:`Run zenovay alerts --help`})+`
|
|
19
|
-
`:`\n✗ Unknown action: '${e}'\n Valid: list | create | delete. Run \`zenovay alerts --help\`\n`),process.exit(2));let{alertsCommand:a}=await import(`./alerts-
|
|
20
|
-
`:`\n✗ Unknown export type: '${e}'\n Valid: analytics | sessions | heatmaps. Run \`zenovay export --help\`\n`),process.exit(2));let r=t.format??`csv`,{exportCommand:i}=await import(`./export-
|
|
16
|
+
`)}),Z.command(`logout`,`[OPERATIONS] Revoke current session and delete local auth`).option(`--json`,``).action(async e=>{let{logoutCommand:t}=await import(`./logout-BHWTaLAK.js`);await t({cliVersion:Y,json:e.json})}),Z.command(`ai`,`[INTELLIGENCE] 3-mode AI assistant (install / chat / mcp)`).option(`--mode <mode>`,`install | chat | mcp`).option(`--json`,``).action(async e=>{let{aiCommand:t}=await import(`./ai-Bzfpn5Cl.js`),n=await t({cliVersion:Y,cwd:process.cwd(),mode:e.mode,json:e.json});process.exitCode=n}),Z.command(`watch`,"[ANALYTICS] Alias for `analytics` (dashboard summary)").option(`--site-id <id>`,`Site ID`).option(`--interval <ms>`,`Poll interval ms (legacy; ignored by analytics)`,{default:15e3}).option(`--json`,``).option(`--csv`,`Emit top-pages as CSV`).option(`--tsv`,`Emit top-pages as TSV`).option(`--ndjson`,`Emit top-pages as NDJSON (one row per line)`).action(async e=>{let{analyticsCommand:t}=await import(`./analytics-ikBRZlc_.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`analytics [sub]`,`[ANALYTICS] Landing dashboard — visitors, pageviews, bounce, top pages. Subs: live | funnels | goals | insights | profiles | companies`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,`Emit top-pages as CSV`).option(`--tsv`,`Emit top-pages as TSV`).option(`--ndjson`,`Emit top-pages as NDJSON (one row per line)`).action(async(e,t)=>{switch(e){case void 0:{let{analyticsCommand:e}=await import(`./analytics-ikBRZlc_.js`);process.exitCode=await e({cliVersion:Y,siteId:t.siteId,json:t.json,csv:t.csv,tsv:t.tsv,ndjson:t.ndjson});return}case`live`:{let{liveCommand:e}=await import(`./live-dm1C-WLU.js`);process.exitCode=await e({cliVersion:Y,siteId:t.siteId,json:t.json});return}case`funnels`:{let{funnelCommand:e}=await import(`./funnel-CWwQzatc.js`);process.exitCode=await e({cliVersion:Y,siteId:t.siteId,json:t.json,csv:t.csv,tsv:t.tsv,ndjson:t.ndjson});return}case`goals`:{let{goalsCommand:e}=await import(`./goals-DH6mlkZ2.js`);process.exitCode=await e({cliVersion:Y,action:`list`,json:t.json});return}case`insights`:{let{insightsCommand:e}=await import(`./insights-Bm_OAwNk.js`);process.exitCode=await e({cliVersion:Y,siteId:t.siteId,json:t.json});return}case`profiles`:{let{visitorsCommand:e}=await import(`./visitors-Cf9krSNW.js`);process.exitCode=await e({cliVersion:Y,siteId:t.siteId,json:t.json});return}case`companies`:{let{companiesCommand:e}=await import(`./companies-GJwj_Q-V.js`);process.exitCode=await e({cliVersion:Y,siteId:t.siteId,json:t.json});return}default:process.stderr.write(t.json?JSON.stringify({type:`error`,code:`validation_failed`,message:`Unknown analytics sub-command: ${e}`,hint:`Valid: live | funnels | goals | insights | profiles | companies`})+`
|
|
17
|
+
`:`\n✗ Unknown analytics sub-command: '${e}'\n Valid: live | funnels | goals | insights | profiles | companies. Run \`zenovay analytics --help\`\n`),process.exit(2)}}),Z.command(`overview`,"[ANALYTICS] Alias for `analytics`").option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,`Emit top-pages as CSV`).option(`--tsv`,`Emit top-pages as TSV`).option(`--ndjson`,`Emit top-pages as NDJSON (one row per line)`).action(async e=>{let{analyticsCommand:t}=await import(`./analytics-ikBRZlc_.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`home`,`[ACCOUNT] Top-level summary — sites + this-week deltas`).option(`--json`,``).action(async e=>{let{homeCommand:t}=await import(`./home-BGO4ODlm.js`);process.exitCode=await t({cliVersion:Y,json:e.json})}),Z.command(`live`,`[ANALYTICS] Real-time visitors + globe + recent events (2s polling)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async e=>{let{liveCommand:t}=await import(`./live-dm1C-WLU.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json});process.exitCode=n}),Z.command(`pages`,`[ANALYTICS] Top pages by views — last 24h`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,`Emit pages as CSV`).option(`--tsv`,`Emit pages as TSV`).option(`--ndjson`,`Emit pages as NDJSON (one row per line)`).action(async e=>{let{pagesCommand:t}=await import(`./pages-ZcsqB4U3.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`devices`,`[ANALYTICS] Device / browser / OS breakdown — last 24h`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,`Emit devices as CSV`).option(`--tsv`,`Emit devices as TSV`).option(`--ndjson`,`Emit devices as NDJSON (one row per line)`).action(async e=>{let{devicesCommand:t}=await import(`./devices-DVeKtRYT.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`geo`,`[ANALYTICS] Countries + cities + globe — last 24h`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,`Emit countries as CSV`).option(`--tsv`,`Emit countries as TSV`).option(`--ndjson`,`Emit countries as NDJSON (one row per line)`).action(async e=>{let{geoCommand:t}=await import(`./geo-D3uTXHH8.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`retention`,`[BEHAVIOR] Cohort retention heatmap — D1 / D7 / D30 (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async e=>{let{retentionCommand:t}=await import(`./retention-DeBxttjH.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json});process.exitCode=n}),Z.command(`uptime`,`[BEHAVIOR] Uptime monitors with status + p95 (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async e=>{let{uptimeCommand:t}=await import(`./uptime-Db4LdNiE.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json});process.exitCode=n}),Z.command(`sessions`,`[BEHAVIOR] Recent session-replay list (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async e=>{let{sessionsCommand:t}=await import(`./sessions-Dh0tE8Jp.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json});process.exitCode=n}),Z.command(`heatmaps`,`[BEHAVIOR] Recent heatmap captures (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async e=>{let{heatmapsCommand:t}=await import(`./heatmaps-Ly-6AXpp.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json});process.exitCode=n}),Z.command(`journeys`,`[BEHAVIOR] Page-to-page transition flow (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async e=>{let{journeysCommand:t}=await import(`./journeys-CtUPgyS9.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json});process.exitCode=n}),Z.command(`insights`,`[INTELLIGENCE] AI-generated anomaly / trend / recommendation cards (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async e=>{let{insightsCommand:t}=await import(`./insights-Bm_OAwNk.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json});process.exitCode=n}),Z.command(`events [action]`,`[OPERATIONS] events tail [--filter --forward-to --replay-24h] — stream live events`).option(`--site-id <id>`,`Site ID`,{default:``}).option(`--filter <expr>`,`Filter expression (e.g. 'type=pageview AND country=US')`).option(`--forward-to <url>`,`POST each event to a webhook with HMAC-SHA256 signature`).option(`--replay-24h`,`Replay the last 24h before going live`).option(`--set-forward-secret <hex>`,`Persist the HMAC secret used by --forward-to`).option(`--json`,``).action(async(e,t)=>{e!==`tail`&&(process.stderr.write(t.json?JSON.stringify({type:`error`,code:`validation_failed`,message:`Unknown events action: ${e??`(none)`}`,hint:`Usage: zenovay events tail`})+`
|
|
18
|
+
`:`\n✗ Unknown events action: '${e??`(none)`}'\n Usage: zenovay events tail. Run \`zenovay events tail --help\`\n`),process.exit(2));let{eventsTailCommand:n}=await import(`./events-tail-CwmfGHoq.js`),r=await n({cliVersion:Y,siteId:t.siteId,json:t.json,filter:t.filter,forwardTo:t.forwardTo,replay24h:t.replay24h,setForwardSecret:t.setForwardSecret});process.exitCode=r}),Z.command(`health`,`[OPERATIONS] Run self-diagnostic checks`).option(`--json`,``).action(async e=>{let{healthCommand:t}=await import(`./health-C6xcL7LI.js`),n=await t({cliVersion:Y,binaryPath:X,json:e.json});process.exitCode=n}),Z.command(`annotation [action]`,`[OPERATIONS] annotation create [--type --message --occurred-at] (deploy / release / campaign / incident / custom)`).option(`--type <type>`,`One of: deploy, release, campaign, incident, custom`,{default:`custom`}).option(`--message <message>`,`Short description (1–500 chars)`,{default:``}).option(`--occurred-at <iso>`,`ISO 8601 timestamp (default: now)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).action(async(e,t)=>{let n=e??`create`;if(n!==`create`){process.stderr.write(`Unknown annotation action: ${n}. Try: zenovay annotation create --type=deploy --message="..."\n`),process.exitCode=2;return}let{annotationCreateCommand:r}=await import(`./annotation-DdI6Q90G.js`),i=await r({cliVersion:Y,type:t.type,message:t.message,occurredAt:t.occurredAt,siteId:t.siteId,json:t.json});process.exitCode=i}),Z.command(`doctor`,`[OPERATIONS] AI-assisted self-healing`).option(`--json`,``).action(async e=>{let{doctorCommand:t}=await import(`./doctor-DFlU-1Ig.js`),n=await t({cliVersion:Y,binaryPath:X,json:e.json});process.exitCode=n}),Z.command(`stats`,`[ANALYTICS] One-shot dashboard summary (scriptable by default)`).option(`--site-id <id>`,`Site ID`).option(`--range <range>`,`Time range: 24h | 7d | 30d`,{default:`24h`}).option(`--watch`,`Auto-refresh every 60s`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{statsCommand:t}=await import(`./stats-QnBXT-Yi.js`),n=await t({cliVersion:Y,siteId:e.siteId,range:e.range,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`sources`,`[ANALYTICS] Traffic source breakdown with delta arrows`).option(`--site-id <id>`,`Site ID`).option(`--range, --period <p>`,`Time range: 7d | 30d | 90d | 1y (--period is a legacy alias)`,{default:`30d`}).option(`--compare <c>`,`Comparison window (use "prev" for period-over-period)`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{sourcesCommand:t}=await import(`./sources-5EVvHmKq.js`),n=await t({cliVersion:Y,siteId:e.siteId,period:e.period,compare:e.compare,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`vitals`,`[BEHAVIOR] Core Web Vitals dashboard (LCP / INP / CLS / TTFB / FCP) (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--url <path>`,`Filter to a single URL`).option(`--device <type>`,`Filter by device: mobile | desktop`).option(`--range, --window <w>`,`Time range: 24h | 7d | 30d | 90d (--window is a legacy alias)`,{default:`7d`}).option(`--watch`,`Auto-refresh every 5 minutes`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{vitalsCommand:t}=await import(`./vitals-B9FQrjDM.js`),n=await t({cliVersion:Y,siteId:e.siteId,url:e.url,device:e.device,window:e.window,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`revenue`,`[ANALYTICS] MRR / ARR / transaction series`).option(`--site-id <id>`,`Site ID`).option(`--range <r>`,`Time range: 24h | 7d | 30d | 1y`,{default:`30d`}).option(`--watch`,`Auto-refresh every 5 minutes`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{revenueCommand:t}=await import(`./revenue-Bi6IpU2c.js`),n=await t({cliVersion:Y,siteId:e.siteId,range:e.range,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`funnels`,`[BEHAVIOR] List available funnels (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{funnelCommand:t}=await import(`./funnel-CWwQzatc.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`themes`,`[OPERATIONS] List available themes with colored swatches`).option(`--validate <path>`,`Validate a custom theme JSON file`).option(`--json`,`Emit themes JSON to stdout`).action(async e=>{let{themesCommand:t}=await import(`./themes-Kmx_UjY8.js`),n=await t({cliVersion:Y,validate:e.validate,json:e.json});process.exitCode=n}),Z.command(`completions [shell] [valuesType]`,`[OPERATIONS] Emit shell-completion script (bash | zsh | fish | nushell | pwsh)`).option(`--list`,`List supported shells`).action(async(e,t,n)=>{let{completionsCommand:r}=await import(`./completions-B0_RnJmy.js`),i=await r({shell:e,valuesType:t,list:n.list});process.exitCode=i}),Z.command(`query [sql]`,`[INTELLIGENCE] Restricted SQL REPL over the analytics schema (Scale+)`).option(`--site-id <id>`,`Site ID`).option(`--max-rows <n>`,`Cap result row count`,{default:1e3}).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async(e,t)=>{let{queryCommand:n}=await import(`./query-B_OUdBDl.js`),r=await n({cliVersion:Y,siteId:t.siteId,sql:e,maxRows:typeof t.maxRows==`string`?Number(t.maxRows):t.maxRows,json:t.json,csv:t.csv,tsv:t.tsv,ndjson:t.ndjson});process.exitCode=r}),Z.command(`companies`,`[INTELLIGENCE] B2B identification feed (Scale+)`).option(`--site-id <id>`,`Site ID`).option(`--range, --window <w>`,`Time range: 24h | 7d | 30d | 90d (--window is a legacy alias)`,{default:`24h`}).option(`--limit <n>`,`Max rows`,{default:100}).option(`--new-only`,`Show only newly identified companies (first-seen in last hour)`).option(`--watch`,`Auto-refresh every 30s`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{companiesCommand:t}=await import(`./companies-GJwj_Q-V.js`),n=await t({cliVersion:Y,siteId:e.siteId,window:e.window,limit:typeof e.limit==`string`?Number(e.limit):e.limit,newOnly:e.newOnly,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`projects`,`[OPERATIONS] List your tracked projects`).option(`--site-id <id>`,`Site ID`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{projectsCommand:t}=await import(`./projects-RD-wuGWf.js`),n=await t({cliVersion:Y,siteId:e.siteId,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`deploys`,`[OPERATIONS] Recent deploy markers overlaid on charts`).option(`--site-id <id>`,`Site ID`).option(`--branch <name>`,`Filter to a single branch (e.g. main, develop)`).option(`--since <iso>`,`Only commits after this ISO timestamp`).option(`--limit <n>`,`Max rows`,{default:50}).option(`--connect`,`Print the GitHub-integration deep link in app.zenovay.com`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{deploysCommand:t}=await import(`./deploys-BV4zj4tN.js`),n=await t({cliVersion:Y,siteId:e.siteId,branch:e.branch,since:e.since,limit:typeof e.limit==`string`?Number(e.limit):e.limit,connect:e.connect,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`errors`,`[BEHAVIOR] Recent JS / HTTP error snapshot`).alias(`error`).option(`--site-id <id>`,`Site ID`).option(`--range, --window <w>`,`Time range: 24h | 7d | 30d | 90d (--window is a legacy alias)`,{default:`24h`}).option(`--limit <n>`,`Max errors to fetch`,{default:100}).option(`--search <q>`,`Filter by class or message substring`).option(`--watch`,`Auto-refresh every 30s`).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async e=>{let{errorsCommand:t}=await import(`./errors-BFAnSwYC.js`),n=await t({cliVersion:Y,siteId:e.siteId,window:e.window,limit:typeof e.limit==`string`?Number(e.limit):e.limit,search:e.search,watch:e.watch,json:e.json,csv:e.csv,tsv:e.tsv,ndjson:e.ndjson});process.exitCode=n}),Z.command(`funnel <id>`,`[BEHAVIOR] Funnel drop-off chart for a specific funnel (Pro+)`).option(`--site-id <id>`,`Site ID`).option(`--range, --window <w>`,`Time range: 7d | 30d (--window is a legacy alias)`,{default:`30d`}).option(`--json`,``).option(`--csv`,``).option(`--tsv`,``).option(`--ndjson`,``).action(async(e,t)=>{let{funnelCommand:n}=await import(`./funnel-CWwQzatc.js`),r=await n({cliVersion:Y,siteId:t.siteId,funnelId:e,window:t.window,json:t.json,csv:t.csv,tsv:t.tsv,ndjson:t.ndjson});process.exitCode=r}),Z.command(`api-keys [action] [id]`,`[MANAGE] api-keys list | create [--name --scope] | delete <id>`).option(`--name <n>`,`Human-readable label (create)`).option(`--scope <scope>`,`read | write (create)`,{default:`read`}).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let{apiKeysCommand:r}=await import(`./api-keys-DGOHu_Hr.js`),i=e??`list`;process.exitCode=await r({cliVersion:Y,action:i,id:t,name:n.name,scope:n.scope===`write`?`write`:`read`,yes:n.yes,json:n.json})}),Z.command(`domains [action] [arg]`,`[MANAGE] domains list | add <url> [--name] | delete <id>`).option(`--name <n>`,`Friendly project name (add; default: domain itself)`).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let{domainsCommand:r}=await import(`./domains-kDjyfCJs.js`),i=e??`list`;process.exitCode=await r({cliVersion:Y,action:i,url:i===`add`?t:void 0,id:i===`delete`?t:void 0,name:n.name,yes:n.yes,json:n.json})}),Z.command(`team [action] [arg] [arg2]`,`[MANAGE] team list | invite <email> [--role] | remove <userId> | role <userId> <admin|member> (Pro+)`).option(`--role <role>`,`admin | member (invite)`,{default:`member`}).option(`--yes`,`Skip confirmation (remove)`).option(`--json`,``).action(async(e,t,n,r)=>{let{teamCommand:i}=await import(`./team-CmU9h3MH.js`),a=e??`list`,o;a===`role`?o=n===`admin`?`admin`:`member`:a===`invite`&&(o=r.role===`admin`?`admin`:`member`),process.exitCode=await i({cliVersion:Y,action:a,email:a===`invite`?t:void 0,userId:a===`remove`||a===`role`?t:void 0,role:o,yes:r.yes,json:r.json})}),Z.command(`profile [action]`,`[ACCOUNT] profile show | edit [--name --notifications]`).option(`--name <n>`,`New display name (edit)`).option(`--notifications <pref>`,`email | none (edit)`).option(`--json`,``).action(async(e,t)=>{let n=e??`show`,r=t.notifications===`email`||t.notifications===`none`?t.notifications:void 0,{profileCommand:i}=await import(`./profile-CC4zGEF4.js`);process.exitCode=await i({cliVersion:Y,action:n,name:t.name,notifications:r,json:t.json})}),Z.command(`plans [action] [arg] [arg2]`,`[ACCOUNT] plans info | upgrade <pro|scale> | cancel --yes | payment update`).option(`--yes`,"Required for `cancel`").option(`--json`,``).action(async(e,t,n,r)=>{let i=e??`info`,{plansCommand:a}=await import(`./plans-Cpf9uE0V.js`),o;if(i===`upgrade`&&t){let e=String(t).toLowerCase();(e===`pro`||e===`scale`||e===`enterprise`)&&(o=e)}let s=i===`payment`&&t===`update`||i===`payment`?`update`:void 0;process.exitCode=await a({cliVersion:Y,action:i,targetPlan:o,paymentAction:s,yes:r.yes,json:r.json})}),Z.command(`billing [action]`,"[ACCOUNT] Alias for `plans info`").option(`--json`,``).action(async(e,t)=>{let{plansCommand:n}=await import(`./plans-Cpf9uE0V.js`);process.exitCode=await n({cliVersion:Y,action:`info`,json:t.json})}),Z.command(`settings [action] [key] [value]`,`[ACCOUNT] settings get [key] | set <key> <value>`).option(`--json`,``).action(async(e,t,n,r)=>{let i=e??`get`,{settingsCommand:a}=await import(`./settings-CZggY5Ki.js`);process.exitCode=await a({cliVersion:Y,action:i,key:t||void 0,value:n||void 0,json:r.json})}),Z.command(`integrations [action] [name]`,`[ACCOUNT] integrations list | connect <gsc|github> | disconnect <gsc|github>`).option(`--yes`,`Skip confirmation (disconnect)`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,i=t===`gsc`||t===`github`?t:void 0,{integrationsCommand:a}=await import(`./integrations-hwL96kCR.js`);process.exitCode=await a({cliVersion:Y,action:r,name:i,yes:n.yes,json:n.json})}),Z.command(`goals [action] [id]`,`[ACCOUNT] goals list | create [--name --type --target] | delete <id> (Pro+)`).option(`--name <n>`,`Goal name (create)`).option(`--type <t>`,`pageview | event (create)`).option(`--target <v>`,`URL pattern or event name (create)`).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,i=n.type===`event`||n.type===`pageview`?n.type:void 0,{goalsCommand:a}=await import(`./goals-DH6mlkZ2.js`);process.exitCode=await a({cliVersion:Y,action:r,id:t,name:n.name,type:i,target:n.target,yes:n.yes,json:n.json})}),Z.command(`notes [action] [id]`,`[ACCOUNT] notes list | create [--content --site-id] | delete <id>`).option(`--content <text>`,`Note body (create)`).option(`--site-id <id>`,`Attach to a specific site (create; defaults to current)`).option(`--yes`,`Skip confirmation (delete)`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,{notesCommand:i}=await import(`./notes-ov8XAJ9k.js`);process.exitCode=await i({cliVersion:Y,action:r,id:t,content:n.content,siteId:n.siteId,yes:n.yes,json:n.json})}),Z.command(`agency [action] [arg] [arg2]`,`[ACCOUNT] agency clients list | clients add [--email --name] | clients remove <id> | report send <clientId> (Scale+)`).option(`--email <e>`,`Client contact email (clients add)`).option(`--name <n>`,`Client name (clients add)`).option(`--yes`,`Skip confirmation (clients remove)`).option(`--json`,``).action(async(e,t,n,r)=>{let{agencyCommand:i}=await import(`./agency-U9RMAwY0.js`),a=`clients-list`,o;e===`clients`?t===`add`?a=`clients-add`:t===`remove`?(a=`clients-remove`,o=n):a=`clients-list`:e===`report`&&t===`send`&&(a=`report-send`,o=n),process.exitCode=await i({cliVersion:Y,action:a,id:o,email:r.email,name:r.name,yes:r.yes,json:r.json})}),Z.command(`use [site]`,`[OPERATIONS] Set / show / reset your default site (used when --site-id is omitted)`).option(`--reset`,`Clear the stored default site`).option(`--show`,`Print the current default and exit`).option(`--json`,`Emit JSON`).action(async(e,t)=>{let{useCommand:n}=await import(`./use-Cp4W3E-g.js`),r=await n({cliVersion:Y,match:e,reset:t.reset,show:t.show,json:t.json});process.exitCode=r}),Z.command(`update`,`[OPERATIONS] Manually install the latest version`).option(`--check`,`Don't install — just print latest`).option(`--force-downgrade`,`Allow downgrading to an older version`).option(`--no-update-check`,`Disable auto-update for this invocation`).option(`--json`,``).action(async e=>{let{updateCommand:t}=await import(`./update-Dp2chVIt.js`);await t({cliVersion:Y,binaryPath:X,check:e.check,forceDowngrade:e.forceDowngrade,json:e.json})}),Z.command(`usage`,`[ACCOUNT] Current month events vs plan limits + headcounts`).option(`--json`,``).action(async e=>{let{usageCommand:t}=await import(`./usage-CNcnF9Eg.js`);process.exitCode=await t({cliVersion:Y,json:e.json})}),Z.command(`globe`,`[ANALYTICS] Live 3D globe — visitors plotted on a Braille sphere`).option(`--site-id <id>`,`Site ID`).option(`--browser`,`Open the dashboard's Mapbox globe in your browser instead of the terminal version`).option(`--json`,``).action(async e=>{let{globeCommand:t}=await import(`./globe-COHABocB.js`);process.exitCode=await t({cliVersion:Y,siteId:e.siteId,browser:e.browser,json:e.json})}),Z.command(`webhooks [action] [arg]`,`[MANAGE] webhooks list | add <url> [--events] | delete <id> | rotate <id> | test <id> | forward [--to]`).option(`--events <list>`,`Comma-separated event types (add)`).option(`--yes`,`Skip confirmation (delete/rotate)`).option(`--to <url>`,`forward: local URL to POST events to (e.g. localhost:3000/webhook)`).option(`--site-id <id>`,`forward: Site ID`).option(`--sign`,`forward: HMAC-sign each forwarded request with X-Zenovay-Signature`).option(`--secret <hex>`,`forward: HMAC secret (auto-derived from tunnel key if --sign without --secret)`).option(`--max-retries <n>`,`forward: per-request retry count`,{default:3}).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`;if(r===`forward`){let{webhooksForwardCommand:e}=await import(`./webhooks-forward-Dy-BcJQG.js`);process.exitCode=await e({cliVersion:Y,to:n.to,siteId:n.siteId,sign:n.sign,secret:n.secret,maxRetries:typeof n.maxRetries==`string`?Number(n.maxRetries):n.maxRetries});return}let{webhooksCommand:i}=await import(`./webhooks-BkH_e7B3.js`);process.exitCode=await i({cliVersion:Y,action:r,url:r===`add`?t:void 0,id:r===`delete`||r===`rotate`||r===`test`?t:void 0,events:n.events,yes:n.yes,json:n.json})}),Z.command(`audit [action]`,`[ACCOUNT] audit list [--since --action --actor] | export [--format --out] (Pro+)`).option(`--range, --since <window>`,`Time range like 24h, 7d, 30d (list; --since is a legacy alias)`,{default:`7d`}).option(`--action <pattern>`,`Filter by action string (list)`).option(`--actor <userId>`,`Filter by actor user ID (list)`).option(`--format <fmt>`,`ndjson | csv | json (export)`,{default:`ndjson`}).option(`--out <file>`,`Output file path (export). Defaults to stdout`).option(`--json`,``).action(async(e,t)=>{let n=e??`list`,r=t.format??`ndjson`,{auditCommand:i}=await import(`./audit-B-3NTV84.js`);process.exitCode=await i({cliVersion:Y,action:n,since:t.since,filterAction:t.action,actor:t.actor,format:r,out:t.out,json:t.json})}),Z.command(`share [action]`,`[ACCOUNT] share enable | disable | url — public dashboard share for the current site`).option(`--site-id <id>`,`Site ID (defaults to your current default site)`).option(`--yes`,`Skip confirmation (disable)`).option(`--json`,``).action(async(e,t)=>{let n=e??`url`,{shareCommand:r}=await import(`./share-C4nFUF1d.js`);process.exitCode=await r({cliVersion:Y,action:n,siteId:t.siteId,yes:t.yes,json:t.json})}),Z.command(`commands`,`[OPERATIONS] Emit the machine-readable command tree (for AI agents and shell-completion regen)`).option(`--json`,``).action(async e=>{let{commandsCommand:t}=await import(`./commands-Bb0OLaMv.js`);process.exitCode=await t({cliVersion:Y,json:e.json})}),Z.command(`teams [action] [arg]`,`[ACCOUNT] teams list | switch <name-or-id> | current | reset`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,{teamsCommand:i}=await import(`./teams-1Hsr2o1f.js`);process.exitCode=await i({cliVersion:Y,action:r,match:r===`switch`?t:void 0,json:n.json})}),Z.command(`self-test`,`[OPERATIONS] Functional smoke check across every read endpoint and your local install`).option(`--quick`,`Run a 10-test subset (faster)`).option(`--full`,`Include active security probes + CLI meta-tests (dev/CI use)`).option(`--verbose`,`Include full stdout/stderr per test`).option(`--parallel <n>`,`Concurrent subprocesses (default 4)`,{default:4}).option(`--json`,`Emit NDJSON one line per test result + final summary`).action(async e=>{let{selfTestCommand:t}=await import(`./self-test-CIJtaLSw.js`);process.exitCode=await t({cliVersion:Y,full:!!e.full,quick:!!e.quick,verbose:!!e.verbose,parallel:Number(e.parallel)||4,json:!!e.json})}),Z.command(`tour`,`[OPERATIONS] Interactive 8-step walkthrough of the CLI`).option(`--non-interactive`,`Print all 8 steps as a flat document (no prompts)`).action(async e=>{let{tourCommand:t}=await import(`./tour-DlPiEhdm.js`);process.exitCode=await t({cliVersion:Y,nonInteractive:!!(e[`non-interactive`]||e.nonInteractive)})}),Z.command(`alerts [action] [id]`,`[MANAGE] alerts list | create [--metric --op --threshold --window] | delete <id> (Pro+)`).option(`--site-id <id>`,`Site ID (defaults to your current default site)`).option(`--metric <name>`,`Metric to watch (visitors|pageviews|bounce_rate|errors|lcp|inp|cls|uptime|revenue)`).option(`--op <gt|lt>`,`Comparison operator`).option(`--threshold <num>`,`Numeric threshold`).option(`--window <e.g. 1h>`,`Rolling window (5m|1h|24h|7d)`).option(`--name <label>`,`Optional friendly label for the alert`).option(`--channel <chan>`,`Notification channel: in_app | email | webhook (default in_app)`).option(`--email <addr>`,`Notification email (required when --channel email)`).option(`--yes`,`Skip confirmation prompt on delete`).option(`--json`,``).action(async(e,t,n)=>{let r=e??`list`,i=new Set([`list`,`create`,`delete`]);i.has(r)||(process.stderr.write(n.json?JSON.stringify({type:`error`,code:`validation_failed`,message:`Unknown alerts action: ${e}`,hint:`Run zenovay alerts --help`})+`
|
|
19
|
+
`:`\n✗ Unknown action: '${e}'\n Valid: list | create | delete. Run \`zenovay alerts --help\`\n`),process.exit(2));let{alertsCommand:a}=await import(`./alerts-Cq5jUD6e.js`);process.exitCode=await a({cliVersion:Y,action:r,siteId:n[`site-id`]??n.siteId,metric:n.metric,op:n.op,threshold:n.threshold,window:n.window,name:n.name,channel:n.channel,email:n.email,id:t,yes:!!n.yes,json:!!n.json})}),Z.command(`export <type>`,`[OPERATIONS] Export data: analytics | sessions (Pro+) | heatmaps (Pro+)`).option(`--site-id <id>`,`Site ID (defaults to your current default site)`).option(`--range <range>`,`Time range: 7d | 30d | 90d`,{default:`30d`}).option(`--format <fmt>`,`Output format: csv | json`,{default:`csv`}).option(`--out <file>`,`Write to file instead of stdout`).option(`--json`,``).action(async(e,t)=>{let n=new Set([`analytics`,`sessions`,`heatmaps`]);n.has(e)||(process.stderr.write(t.json?JSON.stringify({type:`error`,code:`validation_failed`,message:`Unknown export type: ${e}`,hint:`Valid: analytics | sessions | heatmaps`})+`
|
|
20
|
+
`:`\n✗ Unknown export type: '${e}'\n Valid: analytics | sessions | heatmaps. Run \`zenovay export --help\`\n`),process.exit(2));let r=t.format??`csv`,{exportCommand:i}=await import(`./export-YoUVBNnR.js`);process.exitCode=await i({type:e,cliVersion:Y,siteId:t[`site-id`]||t.siteId,range:t.range,format:r,out:t.out,json:!!t.json})}),Z.command(`visitors`,`[ANALYTICS] Live visitor table with sortable rows`).option(`--site-id <id>`,`Site ID`).option(`--min-duration <seconds>`,`Filter to sessions ≥ N seconds`,{default:0}).option(`--json`,``).option(`--csv`,`Emit visitors as CSV`).option(`--tsv`,`Emit visitors as TSV`).option(`--ndjson`,`Emit visitors as NDJSON (one row per line)`).action(async e=>{let{visitorsCommand:t}=await import(`./visitors-Cf9krSNW.js`);process.exitCode=await t({cliVersion:Y,siteId:e.siteId,minDuration:Number(e[`min-duration`]||e.minDuration)||0,json:!!e.json,csv:!!e.csv,tsv:!!e.tsv,ndjson:!!e.ndjson})}),Z.command(`status`,"[OPERATIONS] Alias of `health` — self-diagnostic checks").option(`--json`,``).action(async e=>{let{healthCommand:t}=await import(`./health-C6xcL7LI.js`);process.exitCode=await t({cliVersion:Y,binaryPath:X,json:!!e.json})}),Z.command(`telemetry [action]`,`[OPERATIONS] Manage anonymous CLI telemetry (on / off / status)`).option(`--json`,``).action(async(e,t)=>{let{telemetryCommand:n}=await import(`./telemetry-Cr2nUxnR.js`);process.exitCode=await n({cliVersion:Y,action:e,json:!!t.json})}),Z.command(`status-agent`,`[OPERATIONS] Background daemon → tmux status bar + threshold alerts`).option(`--daemonize`,`Fork detached child + write PID file`).option(`--child`,`Internal flag — actual polling loop (used by --daemonize)`).option(`--stop`,`Stop the running daemon (read PID file → SIGTERM)`).option(`--install-tmux`,`Print the tmux conf snippet`).option(`--install-systemd`,`Print a systemd user-unit template`).option(`--install-launchd`,`Print a macOS launchd plist template`).option(`--notify-on <rules>`,`Comma-separated threshold rules, e.g. "error_rate>5,revenue_drop>20"`).option(`--site-id <id>`,`Site to poll (defaults to your saved default site)`).option(`--interval-ms <ms>`,`Poll interval ms (default 60000)`,{type:[Number]}).option(`--save-config`,`Persist --notify-on + --interval-ms to ~/.config/zenovay/config.json`).option(`--show-config`,`Print the persisted statusAgent config + exit`).action(async e=>{let{statusAgentCommand:t}=await import(`./status-agent-lNZc6R0h.js`);process.exitCode=await t({cliVersion:Y,daemonize:!!e.daemonize,child:!!e.child,stop:!!e.stop,installTmux:!!e.installTmux,installSystemd:!!e.installSystemd,installLaunchd:!!e.installLaunchd,saveConfig:!!e.saveConfig,showConfig:!!e.showConfig,notifyOn:e.notifyOn,siteId:e.siteId,intervalMs:Array.isArray(e.intervalMs)?e.intervalMs[0]:e.intervalMs})});const ue={events:`events tail`};for(let e of Z.commands){let t=ue[e.name]??e.name,n=i[t];if(n)for(let t of n)e.example(t)}Z.parse(process.argv,{run:!1}),(async()=>{se()&&await t(X),await n({binaryPath:X,currentVersion:Y,argv:process.argv}),ce();let i,c;try{let t=u.join(e(),`config.json`),n=f(t,`utf8`);i=JSON.parse(n).apiBase}catch{}try{let{readToken:e}=await import(`./token-store-BfCYYDKo.js`);c=(await e({strict:!1}))?.accessToken}catch{}await s({cliVersion:Y,apiBase:i,token:c}).catch(()=>void 0);let l=Date.now(),d=(()=>{let e=Z.matchedCommand;return e?.name})();a(`cli.startup`,{command:d});try{let e=Z.matchedCommand,t=process.argv.slice(2).filter(e=>!e.startsWith(`-`)),n=process.argv.includes(`--help`)||process.argv.includes(`-h`),r=process.argv.includes(`--version`)||process.argv.includes(`-v`);if(!e&&t.length>0&&!n&&(process.stderr.write(`Unknown command: \`${t.join(` `)}\`\nRun \`zenovay --help\` to see all commands.\n`),a(`cli.exit`,{command:d,exit_code:2,duration_ms:Date.now()-l,error_code:`unknown_command`}),await o().catch(()=>void 0),process.exit(2)),!e&&t.length===0&&!n&&!r){Z.outputHelp(),a(`cli.exit`,{command:`help`,exit_code:0,duration_ms:Date.now()-l}),await o().catch(()=>void 0);return}let i=e?.name,s=new Set([`login`,`logout`,`init`,`ai`,`completions`,`themes`,`update`,`health`,`status`,`doctor`,`telemetry`,`tour`,`commands`]),c=process.env.ZENOVAY_API_TOKEN?.trim();if(i&&!s.has(i)&&!c){let{readToken:e}=await import(`./token-store-BfCYYDKo.js`),t=await e({strict:!1}).catch(()=>null);if(!t){let e=process.env.ZENOVAY_FORMAT===`json`||process.argv.includes(`--json`)||process.argv.includes(`-q`)||process.argv.includes(`--quiet`);e?process.stderr.write(JSON.stringify({type:`error`,code:`not_authenticated`,message:`Not logged in. Run: zenovay login`})+`
|
|
21
21
|
`):process.stderr.write(`
|
|
22
22
|
✗ You are not logged in.
|
|
23
23
|
Run \`zenovay login\` to authenticate, then retry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Box_default as e,Static as t,Text as n,render_default as r,use_app_default as i,use_input_default as a,use_stdin_default as o}from"./build-
|
|
1
|
+
import{Box_default as e,Static as t,Text as n,render_default as r,use_app_default as i,use_input_default as a,use_stdin_default as o}from"./build-DAuIWHgM.js";import"./source-CeRB5G0L.js";export{r as render};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__commonJSMin as e,__require as t,__toESM as n}from"./chunk-DRPsrhU4.js";import{source_default as r}from"./source-B4W8r7R6.js";import*as i from"node:fs";import a from"node:os";import{PassThrough as o,Stream as s}from"node:stream";import c,{cwd as l,env as u}from"node:process";import{EventEmitter as d}from"node:events";import{Buffer as f}from"node:buffer";var p=e(exports=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+te(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(O,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+te(s,l);c+=ne(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+te(s,l++),c+=ne(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function k(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function A(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j={current:null},re={transition:null},M={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:re,ReactCurrentOwner:C};function ie(){throw Error(`act(...) is not supported in production builds of React.`)}exports.Children={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},exports.Component=_,exports.Fragment=r,exports.Profiler=a,exports.PureComponent=y,exports.StrictMode=i,exports.Suspense=l,exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,exports.act=ie,exports.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},exports.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},exports.createElement=T,exports.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},exports.createRef=function(){return{current:null}},exports.forwardRef=function(e){return{$$typeof:c,render:e}},exports.isValidElement=D,exports.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},exports.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},exports.startTransition=function(e){var t=re.transition;re.transition={};try{e()}finally{re.transition=t}},exports.unstable_act=ie,exports.useCallback=function(e,t){return j.current.useCallback(e,t)},exports.useContext=function(e){return j.current.useContext(e)},exports.useDebugValue=function(){},exports.useDeferredValue=function(e){return j.current.useDeferredValue(e)},exports.useEffect=function(e,t){return j.current.useEffect(e,t)},exports.useId=function(){return j.current.useId()},exports.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},exports.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},exports.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},exports.useMemo=function(e,t){return j.current.useMemo(e,t)},exports.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},exports.useRef=function(e){return j.current.useRef(e)},exports.useState=function(e){return j.current.useState(e)},exports.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},exports.useTransition=function(){return j.current.useTransition()},exports.version=`18.3.1`}),m=e((exports,t)=>{process.env.NODE_ENV!==`production`&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=`18.3.1`,r=Symbol.for(`react.element`),i=Symbol.for(`react.portal`),a=Symbol.for(`react.fragment`),o=Symbol.for(`react.strict_mode`),s=Symbol.for(`react.profiler`),c=Symbol.for(`react.provider`),l=Symbol.for(`react.context`),u=Symbol.for(`react.forward_ref`),d=Symbol.for(`react.suspense`),f=Symbol.for(`react.suspense_list`),p=Symbol.for(`react.memo`),m=Symbol.for(`react.lazy`),h=Symbol.for(`react.offscreen`),g=Symbol.iterator,_=`@@iterator`;function v(e){if(typeof e!=`object`||!e)return null;var t=g&&e[g]||e[_];return typeof t==`function`?t:null}var y={current:null},b={transition:null},x={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},S={current:null},C={},w=null;function T(e){w=e}C.setExtraStackFrame=function(e){w=e},C.getCurrentStack=null,C.getStackAddendum=function(){var e=``;w&&(e+=w);var t=C.getCurrentStack;return t&&(e+=t()||``),e};var E=!1,D=!1,ee=!1,O=!1,te=!1,ne={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:b,ReactCurrentOwner:S};ne.ReactDebugCurrentFrame=C,ne.ReactCurrentActQueue=x;function k(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];j(`warn`,e,n)}function A(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];j(`error`,e,n)}function j(e,t,n){var r=ne.ReactDebugCurrentFrame,i=r.getStackAddendum();i!==``&&(t+=`%s`,n=n.concat([i]));var a=n.map(function(e){return String(e)});a.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,a)}var re={};function M(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||`ReactClass`,i=r+`.`+t;re[i]||(A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),re[i]=!0)}var ie={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){M(e,`forceUpdate`)},enqueueReplaceState:function(e,t,n,r){M(e,`replaceState`)},enqueueSetState:function(e,t,n,r){M(e,`setState`)}},ae=Object.assign,oe={};Object.freeze(oe);function se(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ie}se.prototype.isReactComponent={},se.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},se.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var ce={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]},le=function(e,t){Object.defineProperty(se.prototype,e,{get:function(){k(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})};for(var ue in ce)ce.hasOwnProperty(ue)&&le(ue,ce[ue]);function de(){}de.prototype=se.prototype;function N(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ie}var fe=N.prototype=new de;fe.constructor=N,ae(fe,se.prototype),fe.isPureReactComponent=!0;function pe(){var e={current:null};return Object.seal(e),e}var me=Array.isArray;function he(e){return me(e)}function ge(e){var t=typeof Symbol==`function`&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n}function _e(e){try{return ve(e),!1}catch{return!0}}function ve(e){return``+e}function ye(e){if(_e(e))return A(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,ge(e)),ve(e)}function be(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function xe(e){return e.displayName||`Context`}function Se(e){if(e==null)return null;if(typeof e.tag==`number`&&A(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case a:return`Fragment`;case i:return`Portal`;case s:return`Profiler`;case o:return`StrictMode`;case d:return`Suspense`;case f:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case l:var t=e;return xe(t)+`.Consumer`;case c:var n=e;return xe(n._context)+`.Provider`;case u:return be(e,e.render,`ForwardRef`);case p:var r=e.displayName||null;return r===null?Se(e.type)||`Memo`:r;case m:var h=e,g=h._payload,_=h._init;try{return Se(_(g))}catch{return null}}return null}var Ce=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},Te,Ee,De;De={};function Oe(e){if(Ce.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ke(e){if(Ce.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ae(e,t){var n=function(){Te||(Te=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function je(e,t){var n=function(){Ee||(Ee=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`ref`,{get:n,configurable:!0})}function Me(e){if(typeof e.ref==`string`&&S.current&&e.__self&&S.current.stateNode!==e.__self){var t=Se(S.current.type);De[t]||(A(`Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref`,t,e.ref),De[t]=!0)}}var Ne=function(e,t,n,i,a,o,s){var c={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,`_self`,{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,`_source`,{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Pe(e,t,n){var r,i={},a=null,o=null,s=null,c=null;if(t!=null)for(r in Oe(t)&&(o=t.ref,Me(t)),ke(t)&&(ye(t.key),a=``+t.key),s=t.__self===void 0?null:t.__self,c=t.__source===void 0?null:t.__source,t)Ce.call(t,r)&&!we.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(l>1){for(var u=Array(l),d=0;d<l;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),i.children=u}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)i[r]===void 0&&(i[r]=f[r])}if(a||o){var p=typeof e==`function`?e.displayName||e.name||`Unknown`:e;a&&Ae(i,p),o&&je(i,p)}return Ne(e,a,o,s,c,S.current,i)}function Fe(e,t){var n=Ne(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function Ie(e,t,n){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var r,i=ae({},e.props),a=e.key,o=e.ref,s=e._self,c=e._source,l=e._owner;if(t!=null){Oe(t)&&(o=t.ref,l=S.current),ke(t)&&(ye(t.key),a=``+t.key);var u;for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Ce.call(t,r)&&!we.hasOwnProperty(r)&&(t[r]===void 0&&u!==void 0?i[r]=u[r]:i[r]=t[r])}var d=arguments.length-2;if(d===1)i.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];i.children=f}return Ne(e.type,a,o,s,c,l,i)}function Le(e){return typeof e==`object`&&!!e&&e.$$typeof===r}var Re=`.`,P=`:`;function F(e){var t=/[=:]/g,n={"=":`=0`,":":`=2`},r=e.replace(t,function(e){return n[e]});return`$`+r}var ze=!1,Be=/\/+/g;function I(e){return e.replace(Be,`$&/`)}function Ve(e,t){return typeof e==`object`&&e&&e.key!=null?(ye(e.key),F(``+e.key)):t.toString(36)}function He(e,t,n,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case r:case i:c=!0}}if(c){var l=e,u=o(l),d=a===``?Re+Ve(l,0):a;if(he(u)){var f=``;d!=null&&(f=I(d)+`/`),He(u,t,f,``,function(e){return e})}else u!=null&&(Le(u)&&(u.key&&(!l||l.key!==u.key)&&ye(u.key),u=Fe(u,n+(u.key&&(!l||l.key!==u.key)?I(``+u.key)+`/`:``)+d)),t.push(u));return 1}var p,m,h=0,g=a===``?Re:a+P;if(he(e))for(var _=0;_<e.length;_++)p=e[_],m=g+Ve(p,_),h+=He(p,t,n,m,o);else{var y=v(e);if(typeof y==`function`){var b=e;y===b.entries&&(ze||k(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),ze=!0);for(var x=y.call(b),S,C=0;!(S=x.next()).done;)p=S.value,m=g+Ve(p,C++),h+=He(p,t,n,m,o)}else if(s===`object`){var w=String(e);throw Error(`Objects are not valid as a React child (found: `+(w===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:w)+`). If you meant to render a collection of children, use an array instead.`)}}return h}function Ue(e,t,n){if(e==null)return e;var r=[],i=0;return He(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function L(e){var t=0;return Ue(e,function(){t++}),t}function We(e,t,n){Ue(e,function(){t.apply(this,arguments)},n)}function Ge(e){return Ue(e,function(e){return e})||[]}function Ke(e){if(!Le(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}function qe(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:c,_context:t};var n=!1,r=!1,i=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,A(`Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?`)),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,A(`Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?`)),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||(k("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),i=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t}var Je=-1,Ye=0,Xe=1,Ze=2;function Qe(e){if(e._status===Je){var t=e._result,n=t();if(n.then(function(t){if(e._status===Ye||e._status===Je){var n=e;n._status=Xe,n._result=t}},function(t){if(e._status===Ye||e._status===Je){var n=e;n._status=Ze,n._result=t}}),e._status===Je){var r=e;r._status=Ye,r._result=n}}if(e._status===Xe){var i=e._result;return i===void 0&&A(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
import{__commonJSMin as e,__require as t,__toESM as n}from"./chunk-DRPsrhU4.js";import{source_default as r}from"./source-CeRB5G0L.js";import*as i from"node:fs";import a from"node:os";import{PassThrough as o,Stream as s}from"node:stream";import c,{cwd as l,env as u}from"node:process";import{EventEmitter as d}from"node:events";import{Buffer as f}from"node:buffer";var p=e(exports=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function ne(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+te(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(O,`$&/`)+`/`),ne(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+te(s,l);c+=ne(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+te(s,l++),c+=ne(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function k(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function A(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j={current:null},re={transition:null},M={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:re,ReactCurrentOwner:C};function ie(){throw Error(`act(...) is not supported in production builds of React.`)}exports.Children={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},exports.Component=_,exports.Fragment=r,exports.Profiler=a,exports.PureComponent=y,exports.StrictMode=i,exports.Suspense=l,exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,exports.act=ie,exports.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},exports.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},exports.createElement=T,exports.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},exports.createRef=function(){return{current:null}},exports.forwardRef=function(e){return{$$typeof:c,render:e}},exports.isValidElement=D,exports.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},exports.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},exports.startTransition=function(e){var t=re.transition;re.transition={};try{e()}finally{re.transition=t}},exports.unstable_act=ie,exports.useCallback=function(e,t){return j.current.useCallback(e,t)},exports.useContext=function(e){return j.current.useContext(e)},exports.useDebugValue=function(){},exports.useDeferredValue=function(e){return j.current.useDeferredValue(e)},exports.useEffect=function(e,t){return j.current.useEffect(e,t)},exports.useId=function(){return j.current.useId()},exports.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},exports.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},exports.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},exports.useMemo=function(e,t){return j.current.useMemo(e,t)},exports.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},exports.useRef=function(e){return j.current.useRef(e)},exports.useState=function(e){return j.current.useState(e)},exports.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},exports.useTransition=function(){return j.current.useTransition()},exports.version=`18.3.1`}),m=e((exports,t)=>{process.env.NODE_ENV!==`production`&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=`18.3.1`,r=Symbol.for(`react.element`),i=Symbol.for(`react.portal`),a=Symbol.for(`react.fragment`),o=Symbol.for(`react.strict_mode`),s=Symbol.for(`react.profiler`),c=Symbol.for(`react.provider`),l=Symbol.for(`react.context`),u=Symbol.for(`react.forward_ref`),d=Symbol.for(`react.suspense`),f=Symbol.for(`react.suspense_list`),p=Symbol.for(`react.memo`),m=Symbol.for(`react.lazy`),h=Symbol.for(`react.offscreen`),g=Symbol.iterator,_=`@@iterator`;function v(e){if(typeof e!=`object`||!e)return null;var t=g&&e[g]||e[_];return typeof t==`function`?t:null}var y={current:null},b={transition:null},x={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},S={current:null},C={},w=null;function T(e){w=e}C.setExtraStackFrame=function(e){w=e},C.getCurrentStack=null,C.getStackAddendum=function(){var e=``;w&&(e+=w);var t=C.getCurrentStack;return t&&(e+=t()||``),e};var E=!1,D=!1,ee=!1,O=!1,te=!1,ne={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:b,ReactCurrentOwner:S};ne.ReactDebugCurrentFrame=C,ne.ReactCurrentActQueue=x;function k(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];j(`warn`,e,n)}function A(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];j(`error`,e,n)}function j(e,t,n){var r=ne.ReactDebugCurrentFrame,i=r.getStackAddendum();i!==``&&(t+=`%s`,n=n.concat([i]));var a=n.map(function(e){return String(e)});a.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,a)}var re={};function M(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||`ReactClass`,i=r+`.`+t;re[i]||(A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),re[i]=!0)}var ie={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){M(e,`forceUpdate`)},enqueueReplaceState:function(e,t,n,r){M(e,`replaceState`)},enqueueSetState:function(e,t,n,r){M(e,`setState`)}},ae=Object.assign,oe={};Object.freeze(oe);function se(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ie}se.prototype.isReactComponent={},se.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},se.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var ce={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]},le=function(e,t){Object.defineProperty(se.prototype,e,{get:function(){k(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})};for(var ue in ce)ce.hasOwnProperty(ue)&&le(ue,ce[ue]);function de(){}de.prototype=se.prototype;function N(e,t,n){this.props=e,this.context=t,this.refs=oe,this.updater=n||ie}var fe=N.prototype=new de;fe.constructor=N,ae(fe,se.prototype),fe.isPureReactComponent=!0;function pe(){var e={current:null};return Object.seal(e),e}var me=Array.isArray;function he(e){return me(e)}function ge(e){var t=typeof Symbol==`function`&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n}function _e(e){try{return ve(e),!1}catch{return!0}}function ve(e){return``+e}function ye(e){if(_e(e))return A(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,ge(e)),ve(e)}function be(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function xe(e){return e.displayName||`Context`}function Se(e){if(e==null)return null;if(typeof e.tag==`number`&&A(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case a:return`Fragment`;case i:return`Portal`;case s:return`Profiler`;case o:return`StrictMode`;case d:return`Suspense`;case f:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case l:var t=e;return xe(t)+`.Consumer`;case c:var n=e;return xe(n._context)+`.Provider`;case u:return be(e,e.render,`ForwardRef`);case p:var r=e.displayName||null;return r===null?Se(e.type)||`Memo`:r;case m:var h=e,g=h._payload,_=h._init;try{return Se(_(g))}catch{return null}}return null}var Ce=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},Te,Ee,De;De={};function Oe(e){if(Ce.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ke(e){if(Ce.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Ae(e,t){var n=function(){Te||(Te=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function je(e,t){var n=function(){Ee||(Ee=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`ref`,{get:n,configurable:!0})}function Me(e){if(typeof e.ref==`string`&&S.current&&e.__self&&S.current.stateNode!==e.__self){var t=Se(S.current.type);De[t]||(A(`Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref`,t,e.ref),De[t]=!0)}}var Ne=function(e,t,n,i,a,o,s){var c={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,`_self`,{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,`_source`,{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Pe(e,t,n){var r,i={},a=null,o=null,s=null,c=null;if(t!=null)for(r in Oe(t)&&(o=t.ref,Me(t)),ke(t)&&(ye(t.key),a=``+t.key),s=t.__self===void 0?null:t.__self,c=t.__source===void 0?null:t.__source,t)Ce.call(t,r)&&!we.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(l>1){for(var u=Array(l),d=0;d<l;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),i.children=u}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)i[r]===void 0&&(i[r]=f[r])}if(a||o){var p=typeof e==`function`?e.displayName||e.name||`Unknown`:e;a&&Ae(i,p),o&&je(i,p)}return Ne(e,a,o,s,c,S.current,i)}function Fe(e,t){var n=Ne(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function Ie(e,t,n){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var r,i=ae({},e.props),a=e.key,o=e.ref,s=e._self,c=e._source,l=e._owner;if(t!=null){Oe(t)&&(o=t.ref,l=S.current),ke(t)&&(ye(t.key),a=``+t.key);var u;for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Ce.call(t,r)&&!we.hasOwnProperty(r)&&(t[r]===void 0&&u!==void 0?i[r]=u[r]:i[r]=t[r])}var d=arguments.length-2;if(d===1)i.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];i.children=f}return Ne(e.type,a,o,s,c,l,i)}function Le(e){return typeof e==`object`&&!!e&&e.$$typeof===r}var Re=`.`,P=`:`;function F(e){var t=/[=:]/g,n={"=":`=0`,":":`=2`},r=e.replace(t,function(e){return n[e]});return`$`+r}var ze=!1,Be=/\/+/g;function I(e){return e.replace(Be,`$&/`)}function Ve(e,t){return typeof e==`object`&&e&&e.key!=null?(ye(e.key),F(``+e.key)):t.toString(36)}function He(e,t,n,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case r:case i:c=!0}}if(c){var l=e,u=o(l),d=a===``?Re+Ve(l,0):a;if(he(u)){var f=``;d!=null&&(f=I(d)+`/`),He(u,t,f,``,function(e){return e})}else u!=null&&(Le(u)&&(u.key&&(!l||l.key!==u.key)&&ye(u.key),u=Fe(u,n+(u.key&&(!l||l.key!==u.key)?I(``+u.key)+`/`:``)+d)),t.push(u));return 1}var p,m,h=0,g=a===``?Re:a+P;if(he(e))for(var _=0;_<e.length;_++)p=e[_],m=g+Ve(p,_),h+=He(p,t,n,m,o);else{var y=v(e);if(typeof y==`function`){var b=e;y===b.entries&&(ze||k(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),ze=!0);for(var x=y.call(b),S,C=0;!(S=x.next()).done;)p=S.value,m=g+Ve(p,C++),h+=He(p,t,n,m,o)}else if(s===`object`){var w=String(e);throw Error(`Objects are not valid as a React child (found: `+(w===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:w)+`). If you meant to render a collection of children, use an array instead.`)}}return h}function Ue(e,t,n){if(e==null)return e;var r=[],i=0;return He(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function L(e){var t=0;return Ue(e,function(){t++}),t}function We(e,t,n){Ue(e,function(){t.apply(this,arguments)},n)}function Ge(e){return Ue(e,function(e){return e})||[]}function Ke(e){if(!Le(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}function qe(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:c,_context:t};var n=!1,r=!1,i=!1,a={$$typeof:l,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,A(`Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?`)),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,A(`Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?`)),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||(k("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),i=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t}var Je=-1,Ye=0,Xe=1,Ze=2;function Qe(e){if(e._status===Je){var t=e._result,n=t();if(n.then(function(t){if(e._status===Ye||e._status===Je){var n=e;n._status=Xe,n._result=t}},function(t){if(e._status===Ye||e._status===Je){var n=e;n._status=Ze,n._result=t}}),e._status===Je){var r=e;r._status=Ye,r._result=n}}if(e._status===Xe){var i=e._result;return i===void 0&&A(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -159,7 +159,7 @@ Check the render method of %s.`,P(ac)||`Unknown`));var l=El(a,o);l.payload={elem
|
|
|
159
159
|
`,`
|
|
160
160
|
`).split(`
|
|
161
161
|
`).map(e=>Dn(e,t,n)).join(`
|
|
162
|
-
`)}function kn(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}const An=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,jn=[`\x1B`,``],Mn=e=>`${jn[0]}[${e}m`,Nn=(e,t,n)=>{let r=[];e=[...e];for(let n of e){let i=n;n.includes(`;`)&&(n=n.split(`;`)[0][0]+`0`);let a=mn.codes.get(Number.parseInt(n,10));if(a){let n=e.indexOf(a.toString());n===-1?r.push(Mn(t?a:i)):e.splice(n,1)}else if(t){r.push(Mn(0));break}else r.push(Mn(i))}if(t&&(r=r.filter((e,t)=>r.indexOf(e)===t),n!==void 0)){let e=Mn(mn.codes.get(Number.parseInt(n,10)));r=r.reduce((t,n)=>n===e?[n,...t]:[...t,n],[])}return r.join(``)};function Pn(e,t,n){let r=[...e],i=[],a=typeof n==`number`?n:r.length,o=!1,s,c=0,l=``;for(let[u,d]of r.entries()){let r=!1;if(jn.includes(d)){let t=/\d[^m]*/.exec(e.slice(u,u+18));s=t&&t.length>0?t[0]:void 0,c<a&&(o=!0,s!==void 0&&i.push(s))}else o&&d===`m`&&(o=!1,r=!0);if(!o&&!r&&c++,!An.test(d)&&kn(d.codePointAt())&&(c++,typeof n!=`number`&&a++),c>t&&c<=a)l+=d;else if(c===t&&!o&&s!==void 0)l=Nn(i);else if(c>=a){l+=Nn(i,!0,s);break}}return l}function Fn(e,t,n){if(e.charAt(t)===` `)return t;let r=n?1:-1;for(let n=0;n<=3;n++){let i=t+n*r;if(e.charAt(i)===` `)return i}return t}function In(e,t,n={}){let{position:r=`end`,space:i=!1,preferTruncationOnSpace:a=!1}=n,{truncationCharacter:o=`…`}=n;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!=`number`)throw TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return``;if(t===1)return o;let s=Zt(e);if(s<=t)return e;if(r===`start`){if(a){let n=Fn(e,s-t+1,!0);return o+Pn(e,n,s).trim()}return i===!0&&(o+=` `),o+Pn(e,s-t+Zt(o),s)}if(r===`middle`){i===!0&&(o=` ${o} `);let n=Math.floor(t/2);if(a){let r=Fn(e,n),i=Fn(e,s-(t-n)+1,!0);return Pn(e,0,r)+o+Pn(e,i,s).trim()}return Pn(e,0,n)+o+Pn(e,s-(t-n)+Zt(o),s)}if(r===`end`){if(a){let n=Fn(e,t-1);return Pn(e,0,n)+o}return i===!0&&(o=` ${o}`),Pn(e,0,t-Zt(o))+o}throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`)}const Ln={},Rn=(e,t,n)=>{let r=e+String(t)+String(n),i=Ln[r];if(i)return i;let a=e;if(n===`wrap`&&(a=On(e,t,{trim:!1,hard:!0})),n.startsWith(`truncate`)){let r=`end`;n===`truncate-middle`&&(r=`middle`),n===`truncate-start`&&(r=`start`),a=In(e,t,{position:r})}return Ln[r]=a,a};var zn=Rn;const Bn=e=>{let t=``;for(let n=0;n<e.childNodes.length;n++){let r=e.childNodes[n];if(r===void 0)continue;let i=``;r.nodeName===`#text`?i=r.nodeValue:((r.nodeName===`ink-text`||r.nodeName===`ink-virtual-text`)&&(i=Bn(r)),i.length>0&&typeof r.internal_transform==`function`&&(i=r.internal_transform(i,n))),t+=i}return t};var Vn=Bn;const Hn=e=>{let t={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e===`ink-virtual-text`?void 0:R.Node.create()};return e===`ink-text`&&t.yogaNode?.setMeasureFunc(Yn.bind(null,t)),t},Un=(e,t)=>{t.parentNode&&Gn(t.parentNode,t),t.parentNode=e,e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Zn(e)},Wn=(e,t,n)=>{t.parentNode&&Gn(t.parentNode,t),t.parentNode=e;let r=e.childNodes.indexOf(n);if(r>=0){e.childNodes.splice(r,0,t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,r);return}e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Zn(e)},Gn=(e,t)=>{t.yogaNode&&t.parentNode?.yogaNode?.removeChild(t.yogaNode),t.parentNode=void 0;let n=e.childNodes.indexOf(t);n>=0&&e.childNodes.splice(n,1),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Zn(e)},Kn=(e,t,n)=>{e.attributes[t]=n},qn=(e,t)=>{e.style=t},Jn=e=>{let t={nodeName:`#text`,nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return Qn(t,e),t},Yn=function(e,t){let n=e.nodeName===`#text`?e.nodeValue:Vn(e),r=tn(n);if(r.width<=t||r.width>=1&&t>0&&t<1)return r;let i=e.style?.textWrap??`wrap`,a=zn(n,t,i);return tn(a)},Xn=e=>{if(e?.parentNode)return e.yogaNode??Xn(e.parentNode)},Zn=e=>{let t=Xn(e);t?.markDirty()},Qn=(e,t)=>{typeof t!=`string`&&(t=String(t)),e.nodeValue=t,Zn(e)},$n=(e,t)=>{`position`in t&&e.setPositionType(t.position===`absolute`?R.POSITION_TYPE_ABSOLUTE:R.POSITION_TYPE_RELATIVE)},er=(e,t)=>{`margin`in t&&e.setMargin(R.EDGE_ALL,t.margin??0),`marginX`in t&&e.setMargin(R.EDGE_HORIZONTAL,t.marginX??0),`marginY`in t&&e.setMargin(R.EDGE_VERTICAL,t.marginY??0),`marginLeft`in t&&e.setMargin(R.EDGE_START,t.marginLeft||0),`marginRight`in t&&e.setMargin(R.EDGE_END,t.marginRight||0),`marginTop`in t&&e.setMargin(R.EDGE_TOP,t.marginTop||0),`marginBottom`in t&&e.setMargin(R.EDGE_BOTTOM,t.marginBottom||0)},tr=(e,t)=>{`padding`in t&&e.setPadding(R.EDGE_ALL,t.padding??0),`paddingX`in t&&e.setPadding(R.EDGE_HORIZONTAL,t.paddingX??0),`paddingY`in t&&e.setPadding(R.EDGE_VERTICAL,t.paddingY??0),`paddingLeft`in t&&e.setPadding(R.EDGE_LEFT,t.paddingLeft||0),`paddingRight`in t&&e.setPadding(R.EDGE_RIGHT,t.paddingRight||0),`paddingTop`in t&&e.setPadding(R.EDGE_TOP,t.paddingTop||0),`paddingBottom`in t&&e.setPadding(R.EDGE_BOTTOM,t.paddingBottom||0)},nr=(e,t)=>{`flexGrow`in t&&e.setFlexGrow(t.flexGrow??0),`flexShrink`in t&&e.setFlexShrink(typeof t.flexShrink==`number`?t.flexShrink:1),`flexWrap`in t&&(t.flexWrap===`nowrap`&&e.setFlexWrap(R.WRAP_NO_WRAP),t.flexWrap===`wrap`&&e.setFlexWrap(R.WRAP_WRAP),t.flexWrap===`wrap-reverse`&&e.setFlexWrap(R.WRAP_WRAP_REVERSE)),`flexDirection`in t&&(t.flexDirection===`row`&&e.setFlexDirection(R.FLEX_DIRECTION_ROW),t.flexDirection===`row-reverse`&&e.setFlexDirection(R.FLEX_DIRECTION_ROW_REVERSE),t.flexDirection===`column`&&e.setFlexDirection(R.FLEX_DIRECTION_COLUMN),t.flexDirection===`column-reverse`&&e.setFlexDirection(R.FLEX_DIRECTION_COLUMN_REVERSE)),`flexBasis`in t&&(typeof t.flexBasis==`number`?e.setFlexBasis(t.flexBasis):typeof t.flexBasis==`string`?e.setFlexBasisPercent(Number.parseInt(t.flexBasis,10)):e.setFlexBasis(NaN)),`alignItems`in t&&((t.alignItems===`stretch`||!t.alignItems)&&e.setAlignItems(R.ALIGN_STRETCH),t.alignItems===`flex-start`&&e.setAlignItems(R.ALIGN_FLEX_START),t.alignItems===`center`&&e.setAlignItems(R.ALIGN_CENTER),t.alignItems===`flex-end`&&e.setAlignItems(R.ALIGN_FLEX_END)),`alignSelf`in t&&((t.alignSelf===`auto`||!t.alignSelf)&&e.setAlignSelf(R.ALIGN_AUTO),t.alignSelf===`flex-start`&&e.setAlignSelf(R.ALIGN_FLEX_START),t.alignSelf===`center`&&e.setAlignSelf(R.ALIGN_CENTER),t.alignSelf===`flex-end`&&e.setAlignSelf(R.ALIGN_FLEX_END)),`justifyContent`in t&&((t.justifyContent===`flex-start`||!t.justifyContent)&&e.setJustifyContent(R.JUSTIFY_FLEX_START),t.justifyContent===`center`&&e.setJustifyContent(R.JUSTIFY_CENTER),t.justifyContent===`flex-end`&&e.setJustifyContent(R.JUSTIFY_FLEX_END),t.justifyContent===`space-between`&&e.setJustifyContent(R.JUSTIFY_SPACE_BETWEEN),t.justifyContent===`space-around`&&e.setJustifyContent(R.JUSTIFY_SPACE_AROUND),t.justifyContent===`space-evenly`&&e.setJustifyContent(R.JUSTIFY_SPACE_EVENLY))},rr=(e,t)=>{`width`in t&&(typeof t.width==`number`?e.setWidth(t.width):typeof t.width==`string`?e.setWidthPercent(Number.parseInt(t.width,10)):e.setWidthAuto()),`height`in t&&(typeof t.height==`number`?e.setHeight(t.height):typeof t.height==`string`?e.setHeightPercent(Number.parseInt(t.height,10)):e.setHeightAuto()),`minWidth`in t&&(typeof t.minWidth==`string`?e.setMinWidthPercent(Number.parseInt(t.minWidth,10)):e.setMinWidth(t.minWidth??0)),`minHeight`in t&&(typeof t.minHeight==`string`?e.setMinHeightPercent(Number.parseInt(t.minHeight,10)):e.setMinHeight(t.minHeight??0))},ir=(e,t)=>{`display`in t&&e.setDisplay(t.display===`flex`?R.DISPLAY_FLEX:R.DISPLAY_NONE)},ar=(e,t)=>{if(`borderStyle`in t){let n=t.borderStyle?1:0;t.borderTop!==!1&&e.setBorder(R.EDGE_TOP,n),t.borderBottom!==!1&&e.setBorder(R.EDGE_BOTTOM,n),t.borderLeft!==!1&&e.setBorder(R.EDGE_LEFT,n),t.borderRight!==!1&&e.setBorder(R.EDGE_RIGHT,n)}},or=(e,t)=>{`gap`in t&&e.setGap(R.GUTTER_ALL,t.gap??0),`columnGap`in t&&e.setGap(R.GUTTER_COLUMN,t.columnGap??0),`rowGap`in t&&e.setGap(R.GUTTER_ROW,t.rowGap??0)},sr=(e,t={})=>{$n(e,t),er(e,t),tr(e,t),nr(e,t),rr(e,t),ir(e,t),ar(e,t),or(e,t)};var cr=sr;if(c.env.DEV===`true`)try{await import(`./devtools-
|
|
162
|
+
`)}function kn(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}const An=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,jn=[`\x1B`,``],Mn=e=>`${jn[0]}[${e}m`,Nn=(e,t,n)=>{let r=[];e=[...e];for(let n of e){let i=n;n.includes(`;`)&&(n=n.split(`;`)[0][0]+`0`);let a=mn.codes.get(Number.parseInt(n,10));if(a){let n=e.indexOf(a.toString());n===-1?r.push(Mn(t?a:i)):e.splice(n,1)}else if(t){r.push(Mn(0));break}else r.push(Mn(i))}if(t&&(r=r.filter((e,t)=>r.indexOf(e)===t),n!==void 0)){let e=Mn(mn.codes.get(Number.parseInt(n,10)));r=r.reduce((t,n)=>n===e?[n,...t]:[...t,n],[])}return r.join(``)};function Pn(e,t,n){let r=[...e],i=[],a=typeof n==`number`?n:r.length,o=!1,s,c=0,l=``;for(let[u,d]of r.entries()){let r=!1;if(jn.includes(d)){let t=/\d[^m]*/.exec(e.slice(u,u+18));s=t&&t.length>0?t[0]:void 0,c<a&&(o=!0,s!==void 0&&i.push(s))}else o&&d===`m`&&(o=!1,r=!0);if(!o&&!r&&c++,!An.test(d)&&kn(d.codePointAt())&&(c++,typeof n!=`number`&&a++),c>t&&c<=a)l+=d;else if(c===t&&!o&&s!==void 0)l=Nn(i);else if(c>=a){l+=Nn(i,!0,s);break}}return l}function Fn(e,t,n){if(e.charAt(t)===` `)return t;let r=n?1:-1;for(let n=0;n<=3;n++){let i=t+n*r;if(e.charAt(i)===` `)return i}return t}function In(e,t,n={}){let{position:r=`end`,space:i=!1,preferTruncationOnSpace:a=!1}=n,{truncationCharacter:o=`…`}=n;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!=`number`)throw TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return``;if(t===1)return o;let s=Zt(e);if(s<=t)return e;if(r===`start`){if(a){let n=Fn(e,s-t+1,!0);return o+Pn(e,n,s).trim()}return i===!0&&(o+=` `),o+Pn(e,s-t+Zt(o),s)}if(r===`middle`){i===!0&&(o=` ${o} `);let n=Math.floor(t/2);if(a){let r=Fn(e,n),i=Fn(e,s-(t-n)+1,!0);return Pn(e,0,r)+o+Pn(e,i,s).trim()}return Pn(e,0,n)+o+Pn(e,s-(t-n)+Zt(o),s)}if(r===`end`){if(a){let n=Fn(e,t-1);return Pn(e,0,n)+o}return i===!0&&(o=` ${o}`),Pn(e,0,t-Zt(o))+o}throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`)}const Ln={},Rn=(e,t,n)=>{let r=e+String(t)+String(n),i=Ln[r];if(i)return i;let a=e;if(n===`wrap`&&(a=On(e,t,{trim:!1,hard:!0})),n.startsWith(`truncate`)){let r=`end`;n===`truncate-middle`&&(r=`middle`),n===`truncate-start`&&(r=`start`),a=In(e,t,{position:r})}return Ln[r]=a,a};var zn=Rn;const Bn=e=>{let t=``;for(let n=0;n<e.childNodes.length;n++){let r=e.childNodes[n];if(r===void 0)continue;let i=``;r.nodeName===`#text`?i=r.nodeValue:((r.nodeName===`ink-text`||r.nodeName===`ink-virtual-text`)&&(i=Bn(r)),i.length>0&&typeof r.internal_transform==`function`&&(i=r.internal_transform(i,n))),t+=i}return t};var Vn=Bn;const Hn=e=>{let t={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e===`ink-virtual-text`?void 0:R.Node.create()};return e===`ink-text`&&t.yogaNode?.setMeasureFunc(Yn.bind(null,t)),t},Un=(e,t)=>{t.parentNode&&Gn(t.parentNode,t),t.parentNode=e,e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Zn(e)},Wn=(e,t,n)=>{t.parentNode&&Gn(t.parentNode,t),t.parentNode=e;let r=e.childNodes.indexOf(n);if(r>=0){e.childNodes.splice(r,0,t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,r);return}e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Zn(e)},Gn=(e,t)=>{t.yogaNode&&t.parentNode?.yogaNode?.removeChild(t.yogaNode),t.parentNode=void 0;let n=e.childNodes.indexOf(t);n>=0&&e.childNodes.splice(n,1),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Zn(e)},Kn=(e,t,n)=>{e.attributes[t]=n},qn=(e,t)=>{e.style=t},Jn=e=>{let t={nodeName:`#text`,nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return Qn(t,e),t},Yn=function(e,t){let n=e.nodeName===`#text`?e.nodeValue:Vn(e),r=tn(n);if(r.width<=t||r.width>=1&&t>0&&t<1)return r;let i=e.style?.textWrap??`wrap`,a=zn(n,t,i);return tn(a)},Xn=e=>{if(e?.parentNode)return e.yogaNode??Xn(e.parentNode)},Zn=e=>{let t=Xn(e);t?.markDirty()},Qn=(e,t)=>{typeof t!=`string`&&(t=String(t)),e.nodeValue=t,Zn(e)},$n=(e,t)=>{`position`in t&&e.setPositionType(t.position===`absolute`?R.POSITION_TYPE_ABSOLUTE:R.POSITION_TYPE_RELATIVE)},er=(e,t)=>{`margin`in t&&e.setMargin(R.EDGE_ALL,t.margin??0),`marginX`in t&&e.setMargin(R.EDGE_HORIZONTAL,t.marginX??0),`marginY`in t&&e.setMargin(R.EDGE_VERTICAL,t.marginY??0),`marginLeft`in t&&e.setMargin(R.EDGE_START,t.marginLeft||0),`marginRight`in t&&e.setMargin(R.EDGE_END,t.marginRight||0),`marginTop`in t&&e.setMargin(R.EDGE_TOP,t.marginTop||0),`marginBottom`in t&&e.setMargin(R.EDGE_BOTTOM,t.marginBottom||0)},tr=(e,t)=>{`padding`in t&&e.setPadding(R.EDGE_ALL,t.padding??0),`paddingX`in t&&e.setPadding(R.EDGE_HORIZONTAL,t.paddingX??0),`paddingY`in t&&e.setPadding(R.EDGE_VERTICAL,t.paddingY??0),`paddingLeft`in t&&e.setPadding(R.EDGE_LEFT,t.paddingLeft||0),`paddingRight`in t&&e.setPadding(R.EDGE_RIGHT,t.paddingRight||0),`paddingTop`in t&&e.setPadding(R.EDGE_TOP,t.paddingTop||0),`paddingBottom`in t&&e.setPadding(R.EDGE_BOTTOM,t.paddingBottom||0)},nr=(e,t)=>{`flexGrow`in t&&e.setFlexGrow(t.flexGrow??0),`flexShrink`in t&&e.setFlexShrink(typeof t.flexShrink==`number`?t.flexShrink:1),`flexWrap`in t&&(t.flexWrap===`nowrap`&&e.setFlexWrap(R.WRAP_NO_WRAP),t.flexWrap===`wrap`&&e.setFlexWrap(R.WRAP_WRAP),t.flexWrap===`wrap-reverse`&&e.setFlexWrap(R.WRAP_WRAP_REVERSE)),`flexDirection`in t&&(t.flexDirection===`row`&&e.setFlexDirection(R.FLEX_DIRECTION_ROW),t.flexDirection===`row-reverse`&&e.setFlexDirection(R.FLEX_DIRECTION_ROW_REVERSE),t.flexDirection===`column`&&e.setFlexDirection(R.FLEX_DIRECTION_COLUMN),t.flexDirection===`column-reverse`&&e.setFlexDirection(R.FLEX_DIRECTION_COLUMN_REVERSE)),`flexBasis`in t&&(typeof t.flexBasis==`number`?e.setFlexBasis(t.flexBasis):typeof t.flexBasis==`string`?e.setFlexBasisPercent(Number.parseInt(t.flexBasis,10)):e.setFlexBasis(NaN)),`alignItems`in t&&((t.alignItems===`stretch`||!t.alignItems)&&e.setAlignItems(R.ALIGN_STRETCH),t.alignItems===`flex-start`&&e.setAlignItems(R.ALIGN_FLEX_START),t.alignItems===`center`&&e.setAlignItems(R.ALIGN_CENTER),t.alignItems===`flex-end`&&e.setAlignItems(R.ALIGN_FLEX_END)),`alignSelf`in t&&((t.alignSelf===`auto`||!t.alignSelf)&&e.setAlignSelf(R.ALIGN_AUTO),t.alignSelf===`flex-start`&&e.setAlignSelf(R.ALIGN_FLEX_START),t.alignSelf===`center`&&e.setAlignSelf(R.ALIGN_CENTER),t.alignSelf===`flex-end`&&e.setAlignSelf(R.ALIGN_FLEX_END)),`justifyContent`in t&&((t.justifyContent===`flex-start`||!t.justifyContent)&&e.setJustifyContent(R.JUSTIFY_FLEX_START),t.justifyContent===`center`&&e.setJustifyContent(R.JUSTIFY_CENTER),t.justifyContent===`flex-end`&&e.setJustifyContent(R.JUSTIFY_FLEX_END),t.justifyContent===`space-between`&&e.setJustifyContent(R.JUSTIFY_SPACE_BETWEEN),t.justifyContent===`space-around`&&e.setJustifyContent(R.JUSTIFY_SPACE_AROUND),t.justifyContent===`space-evenly`&&e.setJustifyContent(R.JUSTIFY_SPACE_EVENLY))},rr=(e,t)=>{`width`in t&&(typeof t.width==`number`?e.setWidth(t.width):typeof t.width==`string`?e.setWidthPercent(Number.parseInt(t.width,10)):e.setWidthAuto()),`height`in t&&(typeof t.height==`number`?e.setHeight(t.height):typeof t.height==`string`?e.setHeightPercent(Number.parseInt(t.height,10)):e.setHeightAuto()),`minWidth`in t&&(typeof t.minWidth==`string`?e.setMinWidthPercent(Number.parseInt(t.minWidth,10)):e.setMinWidth(t.minWidth??0)),`minHeight`in t&&(typeof t.minHeight==`string`?e.setMinHeightPercent(Number.parseInt(t.minHeight,10)):e.setMinHeight(t.minHeight??0))},ir=(e,t)=>{`display`in t&&e.setDisplay(t.display===`flex`?R.DISPLAY_FLEX:R.DISPLAY_NONE)},ar=(e,t)=>{if(`borderStyle`in t){let n=t.borderStyle?1:0;t.borderTop!==!1&&e.setBorder(R.EDGE_TOP,n),t.borderBottom!==!1&&e.setBorder(R.EDGE_BOTTOM,n),t.borderLeft!==!1&&e.setBorder(R.EDGE_LEFT,n),t.borderRight!==!1&&e.setBorder(R.EDGE_RIGHT,n)}},or=(e,t)=>{`gap`in t&&e.setGap(R.GUTTER_ALL,t.gap??0),`columnGap`in t&&e.setGap(R.GUTTER_COLUMN,t.columnGap??0),`rowGap`in t&&e.setGap(R.GUTTER_ROW,t.rowGap??0)},sr=(e,t={})=>{$n(e,t),er(e,t),tr(e,t),nr(e,t),rr(e,t),ir(e,t),ar(e,t),or(e,t)};var cr=sr;if(c.env.DEV===`true`)try{await import(`./devtools-MlsxY7FF.js`)}catch(e){if(e.code===`ERR_MODULE_NOT_FOUND`)console.warn(`The environment variable DEV is set to true, so Ink tried to import \`react-devtools-core\`,
|
|
163
163
|
but this failed as it was not installed. Debugging with React Devtools requires it.
|
|
164
164
|
|
|
165
165
|
To install use this command:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__commonJSMin as e,__toESM as t}from"./chunk-DRPsrhU4.js";import{Text as n,import_react as r}from"./build-CnnSWSp0.js";var i=e((exports,t)=>{t.exports={dots:{interval:80,frames:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`]},dots2:{interval:80,frames:[`⣾`,`⣽`,`⣻`,`⢿`,`⡿`,`⣟`,`⣯`,`⣷`]},dots3:{interval:80,frames:[`⠋`,`⠙`,`⠚`,`⠞`,`⠖`,`⠦`,`⠴`,`⠲`,`⠳`,`⠓`]},dots4:{interval:80,frames:[`⠄`,`⠆`,`⠇`,`⠋`,`⠙`,`⠸`,`⠰`,`⠠`,`⠰`,`⠸`,`⠙`,`⠋`,`⠇`,`⠆`]},dots5:{interval:80,frames:[`⠋`,`⠙`,`⠚`,`⠒`,`⠂`,`⠂`,`⠒`,`⠲`,`⠴`,`⠦`,`⠖`,`⠒`,`⠐`,`⠐`,`⠒`,`⠓`,`⠋`]},dots6:{interval:80,frames:[`⠁`,`⠉`,`⠙`,`⠚`,`⠒`,`⠂`,`⠂`,`⠒`,`⠲`,`⠴`,`⠤`,`⠄`,`⠄`,`⠤`,`⠴`,`⠲`,`⠒`,`⠂`,`⠂`,`⠒`,`⠚`,`⠙`,`⠉`,`⠁`]},dots7:{interval:80,frames:[`⠈`,`⠉`,`⠋`,`⠓`,`⠒`,`⠐`,`⠐`,`⠒`,`⠖`,`⠦`,`⠤`,`⠠`,`⠠`,`⠤`,`⠦`,`⠖`,`⠒`,`⠐`,`⠐`,`⠒`,`⠓`,`⠋`,`⠉`,`⠈`]},dots8:{interval:80,frames:`⠁.⠁.⠉.⠙.⠚.⠒.⠂.⠂.⠒.⠲.⠴.⠤.⠄.⠄.⠤.⠠.⠠.⠤.⠦.⠖.⠒.⠐.⠐.⠒.⠓.⠋.⠉.⠈.⠈`.split(`.`)},dots9:{interval:80,frames:[`⢹`,`⢺`,`⢼`,`⣸`,`⣇`,`⡧`,`⡗`,`⡏`]},dots10:{interval:80,frames:[`⢄`,`⢂`,`⢁`,`⡁`,`⡈`,`⡐`,`⡠`]},dots11:{interval:100,frames:[`⠁`,`⠂`,`⠄`,`⡀`,`⢀`,`⠠`,`⠐`,`⠈`]},dots12:{interval:80,frames:`⢀⠀.⡀⠀.⠄⠀.⢂⠀.⡂⠀.⠅⠀.⢃⠀.⡃⠀.⠍⠀.⢋⠀.⡋⠀.⠍⠁.⢋⠁.⡋⠁.⠍⠉.⠋⠉.⠋⠉.⠉⠙.⠉⠙.⠉⠩.⠈⢙.⠈⡙.⢈⠩.⡀⢙.⠄⡙.⢂⠩.⡂⢘.⠅⡘.⢃⠨.⡃⢐.⠍⡐.⢋⠠.⡋⢀.⠍⡁.⢋⠁.⡋⠁.⠍⠉.⠋⠉.⠋⠉.⠉⠙.⠉⠙.⠉⠩.⠈⢙.⠈⡙.⠈⠩.⠀⢙.⠀⡙.⠀⠩.⠀⢘.⠀⡘.⠀⠨.⠀⢐.⠀⡐.⠀⠠.⠀⢀.⠀⡀`.split(`.`)},dots13:{interval:80,frames:[`⣼`,`⣹`,`⢻`,`⠿`,`⡟`,`⣏`,`⣧`,`⣶`]},dots8Bit:{interval:80,frames:`⠀.⠁.⠂.⠃.⠄.⠅.⠆.⠇.⡀.⡁.⡂.⡃.⡄.⡅.⡆.⡇.⠈.⠉.⠊.⠋.⠌.⠍.⠎.⠏.⡈.⡉.⡊.⡋.⡌.⡍.⡎.⡏.⠐.⠑.⠒.⠓.⠔.⠕.⠖.⠗.⡐.⡑.⡒.⡓.⡔.⡕.⡖.⡗.⠘.⠙.⠚.⠛.⠜.⠝.⠞.⠟.⡘.⡙.⡚.⡛.⡜.⡝.⡞.⡟.⠠.⠡.⠢.⠣.⠤.⠥.⠦.⠧.⡠.⡡.⡢.⡣.⡤.⡥.⡦.⡧.⠨.⠩.⠪.⠫.⠬.⠭.⠮.⠯.⡨.⡩.⡪.⡫.⡬.⡭.⡮.⡯.⠰.⠱.⠲.⠳.⠴.⠵.⠶.⠷.⡰.⡱.⡲.⡳.⡴.⡵.⡶.⡷.⠸.⠹.⠺.⠻.⠼.⠽.⠾.⠿.⡸.⡹.⡺.⡻.⡼.⡽.⡾.⡿.⢀.⢁.⢂.⢃.⢄.⢅.⢆.⢇.⣀.⣁.⣂.⣃.⣄.⣅.⣆.⣇.⢈.⢉.⢊.⢋.⢌.⢍.⢎.⢏.⣈.⣉.⣊.⣋.⣌.⣍.⣎.⣏.⢐.⢑.⢒.⢓.⢔.⢕.⢖.⢗.⣐.⣑.⣒.⣓.⣔.⣕.⣖.⣗.⢘.⢙.⢚.⢛.⢜.⢝.⢞.⢟.⣘.⣙.⣚.⣛.⣜.⣝.⣞.⣟.⢠.⢡.⢢.⢣.⢤.⢥.⢦.⢧.⣠.⣡.⣢.⣣.⣤.⣥.⣦.⣧.⢨.⢩.⢪.⢫.⢬.⢭.⢮.⢯.⣨.⣩.⣪.⣫.⣬.⣭.⣮.⣯.⢰.⢱.⢲.⢳.⢴.⢵.⢶.⢷.⣰.⣱.⣲.⣳.⣴.⣵.⣶.⣷.⢸.⢹.⢺.⢻.⢼.⢽.⢾.⢿.⣸.⣹.⣺.⣻.⣼.⣽.⣾.⣿`.split(`.`)},sand:{interval:80,frames:`⠁.⠂.⠄.⡀.⡈.⡐.⡠.⣀.⣁.⣂.⣄.⣌.⣔.⣤.⣥.⣦.⣮.⣶.⣷.⣿.⡿.⠿.⢟.⠟.⡛.⠛.⠫.⢋.⠋.⠍.⡉.⠉.⠑.⠡.⢁`.split(`.`)},line:{interval:130,frames:[`-`,`\\`,`|`,`/`]},line2:{interval:100,frames:[`⠂`,`-`,`–`,`—`,`–`,`-`]},pipe:{interval:100,frames:[`┤`,`┘`,`┴`,`└`,`├`,`┌`,`┬`,`┐`]},simpleDots:{interval:400,frames:[`. `,`.. `,`...`,` `]},simpleDotsScrolling:{interval:200,frames:[`. `,`.. `,`...`,` ..`,` .`,` `]},star:{interval:70,frames:[`✶`,`✸`,`✹`,`✺`,`✹`,`✷`]},star2:{interval:80,frames:[`+`,`x`,`*`]},flip:{interval:70,frames:[`_`,`_`,`_`,`-`,"`","`",`'`,`´`,`-`,`_`,`_`,`_`]},hamburger:{interval:100,frames:[`☱`,`☲`,`☴`]},growVertical:{interval:120,frames:[`▁`,`▃`,`▄`,`▅`,`▆`,`▇`,`▆`,`▅`,`▄`,`▃`]},growHorizontal:{interval:120,frames:[`▏`,`▎`,`▍`,`▌`,`▋`,`▊`,`▉`,`▊`,`▋`,`▌`,`▍`,`▎`]},balloon:{interval:140,frames:[` `,`.`,`o`,`O`,`@`,`*`,` `]},balloon2:{interval:120,frames:[`.`,`o`,`O`,`°`,`O`,`o`,`.`]},noise:{interval:100,frames:[`▓`,`▒`,`░`]},bounce:{interval:120,frames:[`⠁`,`⠂`,`⠄`,`⠂`]},boxBounce:{interval:120,frames:[`▖`,`▘`,`▝`,`▗`]},boxBounce2:{interval:100,frames:[`▌`,`▀`,`▐`,`▄`]},triangle:{interval:50,frames:[`◢`,`◣`,`◤`,`◥`]},binary:{interval:80,frames:[`010010`,`001100`,`100101`,`111010`,`111101`,`010111`,`101011`,`111000`,`110011`,`110101`]},arc:{interval:100,frames:[`◜`,`◠`,`◝`,`◞`,`◡`,`◟`]},circle:{interval:120,frames:[`◡`,`⊙`,`◠`]},squareCorners:{interval:180,frames:[`◰`,`◳`,`◲`,`◱`]},circleQuarters:{interval:120,frames:[`◴`,`◷`,`◶`,`◵`]},circleHalves:{interval:50,frames:[`◐`,`◓`,`◑`,`◒`]},squish:{interval:100,frames:[`╫`,`╪`]},toggle:{interval:250,frames:[`⊶`,`⊷`]},toggle2:{interval:80,frames:[`▫`,`▪`]},toggle3:{interval:120,frames:[`□`,`■`]},toggle4:{interval:100,frames:[`■`,`□`,`▪`,`▫`]},toggle5:{interval:100,frames:[`▮`,`▯`]},toggle6:{interval:300,frames:[`ဝ`,`၀`]},toggle7:{interval:80,frames:[`⦾`,`⦿`]},toggle8:{interval:100,frames:[`◍`,`◌`]},toggle9:{interval:100,frames:[`◉`,`◎`]},toggle10:{interval:100,frames:[`㊂`,`㊀`,`㊁`]},toggle11:{interval:50,frames:[`⧇`,`⧆`]},toggle12:{interval:120,frames:[`☗`,`☖`]},toggle13:{interval:80,frames:[`=`,`*`,`-`]},arrow:{interval:100,frames:[`←`,`↖`,`↑`,`↗`,`→`,`↘`,`↓`,`↙`]},arrow2:{interval:80,frames:[`⬆️ `,`↗️ `,`➡️ `,`↘️ `,`⬇️ `,`↙️ `,`⬅️ `,`↖️ `]},arrow3:{interval:120,frames:[`▹▹▹▹▹`,`▸▹▹▹▹`,`▹▸▹▹▹`,`▹▹▸▹▹`,`▹▹▹▸▹`,`▹▹▹▹▸`]},bouncingBar:{interval:80,frames:[`[ ]`,`[= ]`,`[== ]`,`[=== ]`,`[====]`,`[ ===]`,`[ ==]`,`[ =]`,`[ ]`,`[ =]`,`[ ==]`,`[ ===]`,`[====]`,`[=== ]`,`[== ]`,`[= ]`]},bouncingBall:{interval:80,frames:[`( ● )`,`( ● )`,`( ● )`,`( ● )`,`( ●)`,`( ● )`,`( ● )`,`( ● )`,`( ● )`,`(● )`]},smiley:{interval:200,frames:[`😄 `,`😝 `]},monkey:{interval:300,frames:[`🙈 `,`🙈 `,`🙉 `,`🙊 `]},hearts:{interval:100,frames:[`💛 `,`💙 `,`💜 `,`💚 `,`❤️ `]},clock:{interval:100,frames:[`🕛 `,`🕐 `,`🕑 `,`🕒 `,`🕓 `,`🕔 `,`🕕 `,`🕖 `,`🕗 `,`🕘 `,`🕙 `,`🕚 `]},earth:{interval:180,frames:[`🌍 `,`🌎 `,`🌏 `]},material:{interval:17,frames:`█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁.██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁.███████▁▁▁▁▁▁▁▁▁▁▁▁▁.████████▁▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.██████████▁▁▁▁▁▁▁▁▁▁.███████████▁▁▁▁▁▁▁▁▁.█████████████▁▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁▁██████████████▁▁▁▁.▁▁▁██████████████▁▁▁.▁▁▁▁█████████████▁▁▁.▁▁▁▁██████████████▁▁.▁▁▁▁██████████████▁▁.▁▁▁▁▁██████████████▁.▁▁▁▁▁██████████████▁.▁▁▁▁▁██████████████▁.▁▁▁▁▁▁██████████████.▁▁▁▁▁▁██████████████.▁▁▁▁▁▁▁█████████████.▁▁▁▁▁▁▁█████████████.▁▁▁▁▁▁▁▁████████████.▁▁▁▁▁▁▁▁████████████.▁▁▁▁▁▁▁▁▁███████████.▁▁▁▁▁▁▁▁▁███████████.▁▁▁▁▁▁▁▁▁▁██████████.▁▁▁▁▁▁▁▁▁▁██████████.▁▁▁▁▁▁▁▁▁▁▁▁████████.▁▁▁▁▁▁▁▁▁▁▁▁▁███████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████.█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.██████▁▁▁▁▁▁▁▁▁▁▁▁▁█.████████▁▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.███████████▁▁▁▁▁▁▁▁▁.████████████▁▁▁▁▁▁▁▁.████████████▁▁▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁▁▁█████████████▁▁▁▁.▁▁▁▁▁████████████▁▁▁.▁▁▁▁▁████████████▁▁▁.▁▁▁▁▁▁███████████▁▁▁.▁▁▁▁▁▁▁▁█████████▁▁▁.▁▁▁▁▁▁▁▁█████████▁▁▁.▁▁▁▁▁▁▁▁▁█████████▁▁.▁▁▁▁▁▁▁▁▁█████████▁▁.▁▁▁▁▁▁▁▁▁▁█████████▁.▁▁▁▁▁▁▁▁▁▁▁████████▁.▁▁▁▁▁▁▁▁▁▁▁████████▁.▁▁▁▁▁▁▁▁▁▁▁▁███████▁.▁▁▁▁▁▁▁▁▁▁▁▁███████▁.▁▁▁▁▁▁▁▁▁▁▁▁▁███████.▁▁▁▁▁▁▁▁▁▁▁▁▁███████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁`.split(`.`)},moon:{interval:80,frames:[`🌑 `,`🌒 `,`🌓 `,`🌔 `,`🌕 `,`🌖 `,`🌗 `,`🌘 `]},runner:{interval:140,frames:[`🚶 `,`🏃 `]},pong:{interval:80,frames:`▐⠂ ▌.▐⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂▌.▐ ⠠▌.▐ ⡀▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐⠠ ▌`.split(`.`)},shark:{interval:120,frames:`▐|\\____________▌.▐_|\\___________▌.▐__|\\__________▌.▐___|\\_________▌.▐____|\\________▌.▐_____|\\_______▌.▐______|\\______▌.▐_______|\\_____▌.▐________|\\____▌.▐_________|\\___▌.▐__________|\\__▌.▐___________|\\_▌.▐____________|\\▌.▐____________/|▌.▐___________/|_▌.▐__________/|__▌.▐_________/|___▌.▐________/|____▌.▐_______/|_____▌.▐______/|______▌.▐_____/|_______▌.▐____/|________▌.▐___/|_________▌.▐__/|__________▌.▐_/|___________▌.▐/|____________▌`.split(`.`)},dqpb:{interval:100,frames:[`d`,`q`,`p`,`b`]},weather:{interval:100,frames:[`☀️ `,`☀️ `,`☀️ `,`🌤 `,`⛅️ `,`🌥 `,`☁️ `,`🌧 `,`🌨 `,`🌧 `,`🌨 `,`🌧 `,`🌨 `,`⛈ `,`🌨 `,`🌧 `,`🌨 `,`☁️ `,`🌥 `,`⛅️ `,`🌤 `,`☀️ `,`☀️ `]},christmas:{interval:400,frames:[`🌲`,`🎄`]},grenade:{interval:80,frames:[`، `,`′ `,` ´ `,` ‾ `,` ⸌`,` ⸊`,` |`,` ⁎`,` ⁕`,` ෴ `,` ⁓`,` `,` `,` `]},point:{interval:125,frames:[`∙∙∙`,`●∙∙`,`∙●∙`,`∙∙●`,`∙∙∙`]},layer:{interval:150,frames:[`-`,`=`,`≡`]},betaWave:{interval:80,frames:[`ρββββββ`,`βρβββββ`,`ββρββββ`,`βββρβββ`,`ββββρββ`,`βββββρβ`,`ββββββρ`]},fingerDance:{interval:160,frames:[`🤘 `,`🤟 `,`🖖 `,`✋ `,`🤚 `,`👆 `]},fistBump:{interval:80,frames:[`🤜 🤛 `,`🤜 🤛 `,`🤜 🤛 `,` 🤜 🤛 `,` 🤜🤛 `,` 🤜✨🤛 `,`🤜 ✨ 🤛 `]},soccerHeader:{interval:80,frames:[` 🧑⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `]},mindblown:{interval:160,frames:[`😐 `,`😐 `,`😮 `,`😮 `,`😦 `,`😦 `,`😧 `,`😧 `,`🤯 `,`💥 `,`✨ `,` `,` `,` `]},speaker:{interval:160,frames:[`🔈 `,`🔉 `,`🔊 `,`🔉 `]},orangePulse:{interval:100,frames:[`🔸 `,`🔶 `,`🟠 `,`🟠 `,`🔶 `]},bluePulse:{interval:100,frames:[`🔹 `,`🔷 `,`🔵 `,`🔵 `,`🔷 `]},orangeBluePulse:{interval:100,frames:[`🔸 `,`🔶 `,`🟠 `,`🟠 `,`🔶 `,`🔹 `,`🔷 `,`🔵 `,`🔵 `,`🔷 `]},timeTravel:{interval:100,frames:[`🕛 `,`🕚 `,`🕙 `,`🕘 `,`🕗 `,`🕖 `,`🕕 `,`🕔 `,`🕓 `,`🕒 `,`🕑 `,`🕐 `]},aesthetic:{interval:80,frames:[`▰▱▱▱▱▱▱`,`▰▰▱▱▱▱▱`,`▰▰▰▱▱▱▱`,`▰▰▰▰▱▱▱`,`▰▰▰▰▰▱▱`,`▰▰▰▰▰▰▱`,`▰▰▰▰▰▰▰`,`▰▱▱▱▱▱▱`]},dwarfFortress:{interval:80,frames:` ██████£££ .☺██████£££ .☺██████£££ .☺▓█████£££ .☺▓█████£££ .☺▒█████£££ .☺▒█████£££ .☺░█████£££ .☺░█████£££ .☺ █████£££ . ☺█████£££ . ☺█████£££ . ☺▓████£££ . ☺▓████£££ . ☺▒████£££ . ☺▒████£££ . ☺░████£££ . ☺░████£££ . ☺ ████£££ . ☺████£££ . ☺████£££ . ☺▓███£££ . ☺▓███£££ . ☺▒███£££ . ☺▒███£££ . ☺░███£££ . ☺░███£££ . ☺ ███£££ . ☺███£££ . ☺███£££ . ☺▓██£££ . ☺▓██£££ . ☺▒██£££ . ☺▒██£££ . ☺░██£££ . ☺░██£££ . ☺ ██£££ . ☺██£££ . ☺██£££ . ☺▓█£££ . ☺▓█£££ . ☺▒█£££ . ☺▒█£££ . ☺░█£££ . ☺░█£££ . ☺ █£££ . ☺█£££ . ☺█£££ . ☺▓£££ . ☺▓£££ . ☺▒£££ . ☺▒£££ . ☺░£££ . ☺░£££ . ☺ £££ . ☺£££ . ☺£££ . ☺▓££ . ☺▓££ . ☺▒££ . ☺▒££ . ☺░££ . ☺░££ . ☺ ££ . ☺££ . ☺££ . ☺▓£ . ☺▓£ . ☺▒£ . ☺▒£ . ☺░£ . ☺░£ . ☺ £ . ☺£ . ☺£ . ☺▓ . ☺▓ . ☺▒ . ☺▒ . ☺░ . ☺░ . ☺ . ☺ &. ☺ ☼&. ☺ ☼ &. ☺☼ &. ☺☼ & . ‼ & . ☺ & . ‼ & . ☺ & . ‼ & . ☺ & .‼ & . & . & . & ░ . & ▒ . & ▓ . & £ . & ░£ . & ▒£ . & ▓£ . & ££ . & ░££ . & ▒££ .& ▓££ .& £££ . ░£££ . ▒£££ . ▓£££ . █£££ . ░█£££ . ▒█£££ . ▓█£££ . ██£££ . ░██£££ . ▒██£££ . ▓██£££ . ███£££ . ░███£££ . ▒███£££ . ▓███£££ . ████£££ . ░████£££ . ▒████£££ . ▓████£££ . █████£££ . ░█████£££ . ▒█████£££ . ▓█████£££ . ██████£££ . ██████£££ `.split(`.`)}}}),a=e((exports,t)=>{let n=Object.assign({},i()),r=Object.keys(n);Object.defineProperty(n,`random`,{get(){let e=Math.floor(Math.random()*r.length),t=r[e];return n[t]}}),t.exports=n}),o=t(a(),1);function s({type:e=`dots`}){let[t,i]=(0,r.useState)(0),a=o.default[e];return(0,r.useEffect)(()=>{let e=setInterval(()=>{i(e=>{let t=e===a.frames.length-1;return t?0:e+1})},a.interval);return()=>{clearInterval(e)}},[a]),r.default.createElement(n,null,a.frames[t])}var c=s;export{c as build_default};
|
|
1
|
+
import{__commonJSMin as e,__toESM as t}from"./chunk-DRPsrhU4.js";import{Text as n,import_react as r}from"./build-DAuIWHgM.js";var i=e((exports,t)=>{t.exports={dots:{interval:80,frames:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`]},dots2:{interval:80,frames:[`⣾`,`⣽`,`⣻`,`⢿`,`⡿`,`⣟`,`⣯`,`⣷`]},dots3:{interval:80,frames:[`⠋`,`⠙`,`⠚`,`⠞`,`⠖`,`⠦`,`⠴`,`⠲`,`⠳`,`⠓`]},dots4:{interval:80,frames:[`⠄`,`⠆`,`⠇`,`⠋`,`⠙`,`⠸`,`⠰`,`⠠`,`⠰`,`⠸`,`⠙`,`⠋`,`⠇`,`⠆`]},dots5:{interval:80,frames:[`⠋`,`⠙`,`⠚`,`⠒`,`⠂`,`⠂`,`⠒`,`⠲`,`⠴`,`⠦`,`⠖`,`⠒`,`⠐`,`⠐`,`⠒`,`⠓`,`⠋`]},dots6:{interval:80,frames:[`⠁`,`⠉`,`⠙`,`⠚`,`⠒`,`⠂`,`⠂`,`⠒`,`⠲`,`⠴`,`⠤`,`⠄`,`⠄`,`⠤`,`⠴`,`⠲`,`⠒`,`⠂`,`⠂`,`⠒`,`⠚`,`⠙`,`⠉`,`⠁`]},dots7:{interval:80,frames:[`⠈`,`⠉`,`⠋`,`⠓`,`⠒`,`⠐`,`⠐`,`⠒`,`⠖`,`⠦`,`⠤`,`⠠`,`⠠`,`⠤`,`⠦`,`⠖`,`⠒`,`⠐`,`⠐`,`⠒`,`⠓`,`⠋`,`⠉`,`⠈`]},dots8:{interval:80,frames:`⠁.⠁.⠉.⠙.⠚.⠒.⠂.⠂.⠒.⠲.⠴.⠤.⠄.⠄.⠤.⠠.⠠.⠤.⠦.⠖.⠒.⠐.⠐.⠒.⠓.⠋.⠉.⠈.⠈`.split(`.`)},dots9:{interval:80,frames:[`⢹`,`⢺`,`⢼`,`⣸`,`⣇`,`⡧`,`⡗`,`⡏`]},dots10:{interval:80,frames:[`⢄`,`⢂`,`⢁`,`⡁`,`⡈`,`⡐`,`⡠`]},dots11:{interval:100,frames:[`⠁`,`⠂`,`⠄`,`⡀`,`⢀`,`⠠`,`⠐`,`⠈`]},dots12:{interval:80,frames:`⢀⠀.⡀⠀.⠄⠀.⢂⠀.⡂⠀.⠅⠀.⢃⠀.⡃⠀.⠍⠀.⢋⠀.⡋⠀.⠍⠁.⢋⠁.⡋⠁.⠍⠉.⠋⠉.⠋⠉.⠉⠙.⠉⠙.⠉⠩.⠈⢙.⠈⡙.⢈⠩.⡀⢙.⠄⡙.⢂⠩.⡂⢘.⠅⡘.⢃⠨.⡃⢐.⠍⡐.⢋⠠.⡋⢀.⠍⡁.⢋⠁.⡋⠁.⠍⠉.⠋⠉.⠋⠉.⠉⠙.⠉⠙.⠉⠩.⠈⢙.⠈⡙.⠈⠩.⠀⢙.⠀⡙.⠀⠩.⠀⢘.⠀⡘.⠀⠨.⠀⢐.⠀⡐.⠀⠠.⠀⢀.⠀⡀`.split(`.`)},dots13:{interval:80,frames:[`⣼`,`⣹`,`⢻`,`⠿`,`⡟`,`⣏`,`⣧`,`⣶`]},dots8Bit:{interval:80,frames:`⠀.⠁.⠂.⠃.⠄.⠅.⠆.⠇.⡀.⡁.⡂.⡃.⡄.⡅.⡆.⡇.⠈.⠉.⠊.⠋.⠌.⠍.⠎.⠏.⡈.⡉.⡊.⡋.⡌.⡍.⡎.⡏.⠐.⠑.⠒.⠓.⠔.⠕.⠖.⠗.⡐.⡑.⡒.⡓.⡔.⡕.⡖.⡗.⠘.⠙.⠚.⠛.⠜.⠝.⠞.⠟.⡘.⡙.⡚.⡛.⡜.⡝.⡞.⡟.⠠.⠡.⠢.⠣.⠤.⠥.⠦.⠧.⡠.⡡.⡢.⡣.⡤.⡥.⡦.⡧.⠨.⠩.⠪.⠫.⠬.⠭.⠮.⠯.⡨.⡩.⡪.⡫.⡬.⡭.⡮.⡯.⠰.⠱.⠲.⠳.⠴.⠵.⠶.⠷.⡰.⡱.⡲.⡳.⡴.⡵.⡶.⡷.⠸.⠹.⠺.⠻.⠼.⠽.⠾.⠿.⡸.⡹.⡺.⡻.⡼.⡽.⡾.⡿.⢀.⢁.⢂.⢃.⢄.⢅.⢆.⢇.⣀.⣁.⣂.⣃.⣄.⣅.⣆.⣇.⢈.⢉.⢊.⢋.⢌.⢍.⢎.⢏.⣈.⣉.⣊.⣋.⣌.⣍.⣎.⣏.⢐.⢑.⢒.⢓.⢔.⢕.⢖.⢗.⣐.⣑.⣒.⣓.⣔.⣕.⣖.⣗.⢘.⢙.⢚.⢛.⢜.⢝.⢞.⢟.⣘.⣙.⣚.⣛.⣜.⣝.⣞.⣟.⢠.⢡.⢢.⢣.⢤.⢥.⢦.⢧.⣠.⣡.⣢.⣣.⣤.⣥.⣦.⣧.⢨.⢩.⢪.⢫.⢬.⢭.⢮.⢯.⣨.⣩.⣪.⣫.⣬.⣭.⣮.⣯.⢰.⢱.⢲.⢳.⢴.⢵.⢶.⢷.⣰.⣱.⣲.⣳.⣴.⣵.⣶.⣷.⢸.⢹.⢺.⢻.⢼.⢽.⢾.⢿.⣸.⣹.⣺.⣻.⣼.⣽.⣾.⣿`.split(`.`)},sand:{interval:80,frames:`⠁.⠂.⠄.⡀.⡈.⡐.⡠.⣀.⣁.⣂.⣄.⣌.⣔.⣤.⣥.⣦.⣮.⣶.⣷.⣿.⡿.⠿.⢟.⠟.⡛.⠛.⠫.⢋.⠋.⠍.⡉.⠉.⠑.⠡.⢁`.split(`.`)},line:{interval:130,frames:[`-`,`\\`,`|`,`/`]},line2:{interval:100,frames:[`⠂`,`-`,`–`,`—`,`–`,`-`]},pipe:{interval:100,frames:[`┤`,`┘`,`┴`,`└`,`├`,`┌`,`┬`,`┐`]},simpleDots:{interval:400,frames:[`. `,`.. `,`...`,` `]},simpleDotsScrolling:{interval:200,frames:[`. `,`.. `,`...`,` ..`,` .`,` `]},star:{interval:70,frames:[`✶`,`✸`,`✹`,`✺`,`✹`,`✷`]},star2:{interval:80,frames:[`+`,`x`,`*`]},flip:{interval:70,frames:[`_`,`_`,`_`,`-`,"`","`",`'`,`´`,`-`,`_`,`_`,`_`]},hamburger:{interval:100,frames:[`☱`,`☲`,`☴`]},growVertical:{interval:120,frames:[`▁`,`▃`,`▄`,`▅`,`▆`,`▇`,`▆`,`▅`,`▄`,`▃`]},growHorizontal:{interval:120,frames:[`▏`,`▎`,`▍`,`▌`,`▋`,`▊`,`▉`,`▊`,`▋`,`▌`,`▍`,`▎`]},balloon:{interval:140,frames:[` `,`.`,`o`,`O`,`@`,`*`,` `]},balloon2:{interval:120,frames:[`.`,`o`,`O`,`°`,`O`,`o`,`.`]},noise:{interval:100,frames:[`▓`,`▒`,`░`]},bounce:{interval:120,frames:[`⠁`,`⠂`,`⠄`,`⠂`]},boxBounce:{interval:120,frames:[`▖`,`▘`,`▝`,`▗`]},boxBounce2:{interval:100,frames:[`▌`,`▀`,`▐`,`▄`]},triangle:{interval:50,frames:[`◢`,`◣`,`◤`,`◥`]},binary:{interval:80,frames:[`010010`,`001100`,`100101`,`111010`,`111101`,`010111`,`101011`,`111000`,`110011`,`110101`]},arc:{interval:100,frames:[`◜`,`◠`,`◝`,`◞`,`◡`,`◟`]},circle:{interval:120,frames:[`◡`,`⊙`,`◠`]},squareCorners:{interval:180,frames:[`◰`,`◳`,`◲`,`◱`]},circleQuarters:{interval:120,frames:[`◴`,`◷`,`◶`,`◵`]},circleHalves:{interval:50,frames:[`◐`,`◓`,`◑`,`◒`]},squish:{interval:100,frames:[`╫`,`╪`]},toggle:{interval:250,frames:[`⊶`,`⊷`]},toggle2:{interval:80,frames:[`▫`,`▪`]},toggle3:{interval:120,frames:[`□`,`■`]},toggle4:{interval:100,frames:[`■`,`□`,`▪`,`▫`]},toggle5:{interval:100,frames:[`▮`,`▯`]},toggle6:{interval:300,frames:[`ဝ`,`၀`]},toggle7:{interval:80,frames:[`⦾`,`⦿`]},toggle8:{interval:100,frames:[`◍`,`◌`]},toggle9:{interval:100,frames:[`◉`,`◎`]},toggle10:{interval:100,frames:[`㊂`,`㊀`,`㊁`]},toggle11:{interval:50,frames:[`⧇`,`⧆`]},toggle12:{interval:120,frames:[`☗`,`☖`]},toggle13:{interval:80,frames:[`=`,`*`,`-`]},arrow:{interval:100,frames:[`←`,`↖`,`↑`,`↗`,`→`,`↘`,`↓`,`↙`]},arrow2:{interval:80,frames:[`⬆️ `,`↗️ `,`➡️ `,`↘️ `,`⬇️ `,`↙️ `,`⬅️ `,`↖️ `]},arrow3:{interval:120,frames:[`▹▹▹▹▹`,`▸▹▹▹▹`,`▹▸▹▹▹`,`▹▹▸▹▹`,`▹▹▹▸▹`,`▹▹▹▹▸`]},bouncingBar:{interval:80,frames:[`[ ]`,`[= ]`,`[== ]`,`[=== ]`,`[====]`,`[ ===]`,`[ ==]`,`[ =]`,`[ ]`,`[ =]`,`[ ==]`,`[ ===]`,`[====]`,`[=== ]`,`[== ]`,`[= ]`]},bouncingBall:{interval:80,frames:[`( ● )`,`( ● )`,`( ● )`,`( ● )`,`( ●)`,`( ● )`,`( ● )`,`( ● )`,`( ● )`,`(● )`]},smiley:{interval:200,frames:[`😄 `,`😝 `]},monkey:{interval:300,frames:[`🙈 `,`🙈 `,`🙉 `,`🙊 `]},hearts:{interval:100,frames:[`💛 `,`💙 `,`💜 `,`💚 `,`❤️ `]},clock:{interval:100,frames:[`🕛 `,`🕐 `,`🕑 `,`🕒 `,`🕓 `,`🕔 `,`🕕 `,`🕖 `,`🕗 `,`🕘 `,`🕙 `,`🕚 `]},earth:{interval:180,frames:[`🌍 `,`🌎 `,`🌏 `]},material:{interval:17,frames:`█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁.██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁.███████▁▁▁▁▁▁▁▁▁▁▁▁▁.████████▁▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.██████████▁▁▁▁▁▁▁▁▁▁.███████████▁▁▁▁▁▁▁▁▁.█████████████▁▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁▁██████████████▁▁▁▁.▁▁▁██████████████▁▁▁.▁▁▁▁█████████████▁▁▁.▁▁▁▁██████████████▁▁.▁▁▁▁██████████████▁▁.▁▁▁▁▁██████████████▁.▁▁▁▁▁██████████████▁.▁▁▁▁▁██████████████▁.▁▁▁▁▁▁██████████████.▁▁▁▁▁▁██████████████.▁▁▁▁▁▁▁█████████████.▁▁▁▁▁▁▁█████████████.▁▁▁▁▁▁▁▁████████████.▁▁▁▁▁▁▁▁████████████.▁▁▁▁▁▁▁▁▁███████████.▁▁▁▁▁▁▁▁▁███████████.▁▁▁▁▁▁▁▁▁▁██████████.▁▁▁▁▁▁▁▁▁▁██████████.▁▁▁▁▁▁▁▁▁▁▁▁████████.▁▁▁▁▁▁▁▁▁▁▁▁▁███████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████.█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.██████▁▁▁▁▁▁▁▁▁▁▁▁▁█.████████▁▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.█████████▁▁▁▁▁▁▁▁▁▁▁.███████████▁▁▁▁▁▁▁▁▁.████████████▁▁▁▁▁▁▁▁.████████████▁▁▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.██████████████▁▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁██████████████▁▁▁▁▁.▁▁▁█████████████▁▁▁▁.▁▁▁▁▁████████████▁▁▁.▁▁▁▁▁████████████▁▁▁.▁▁▁▁▁▁███████████▁▁▁.▁▁▁▁▁▁▁▁█████████▁▁▁.▁▁▁▁▁▁▁▁█████████▁▁▁.▁▁▁▁▁▁▁▁▁█████████▁▁.▁▁▁▁▁▁▁▁▁█████████▁▁.▁▁▁▁▁▁▁▁▁▁█████████▁.▁▁▁▁▁▁▁▁▁▁▁████████▁.▁▁▁▁▁▁▁▁▁▁▁████████▁.▁▁▁▁▁▁▁▁▁▁▁▁███████▁.▁▁▁▁▁▁▁▁▁▁▁▁███████▁.▁▁▁▁▁▁▁▁▁▁▁▁▁███████.▁▁▁▁▁▁▁▁▁▁▁▁▁███████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁.▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁`.split(`.`)},moon:{interval:80,frames:[`🌑 `,`🌒 `,`🌓 `,`🌔 `,`🌕 `,`🌖 `,`🌗 `,`🌘 `]},runner:{interval:140,frames:[`🚶 `,`🏃 `]},pong:{interval:80,frames:`▐⠂ ▌.▐⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂▌.▐ ⠠▌.▐ ⡀▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐ ⠠ ▌.▐ ⠂ ▌.▐ ⠈ ▌.▐ ⠂ ▌.▐ ⠠ ▌.▐ ⡀ ▌.▐⠠ ▌`.split(`.`)},shark:{interval:120,frames:`▐|\\____________▌.▐_|\\___________▌.▐__|\\__________▌.▐___|\\_________▌.▐____|\\________▌.▐_____|\\_______▌.▐______|\\______▌.▐_______|\\_____▌.▐________|\\____▌.▐_________|\\___▌.▐__________|\\__▌.▐___________|\\_▌.▐____________|\\▌.▐____________/|▌.▐___________/|_▌.▐__________/|__▌.▐_________/|___▌.▐________/|____▌.▐_______/|_____▌.▐______/|______▌.▐_____/|_______▌.▐____/|________▌.▐___/|_________▌.▐__/|__________▌.▐_/|___________▌.▐/|____________▌`.split(`.`)},dqpb:{interval:100,frames:[`d`,`q`,`p`,`b`]},weather:{interval:100,frames:[`☀️ `,`☀️ `,`☀️ `,`🌤 `,`⛅️ `,`🌥 `,`☁️ `,`🌧 `,`🌨 `,`🌧 `,`🌨 `,`🌧 `,`🌨 `,`⛈ `,`🌨 `,`🌧 `,`🌨 `,`☁️ `,`🌥 `,`⛅️ `,`🌤 `,`☀️ `,`☀️ `]},christmas:{interval:400,frames:[`🌲`,`🎄`]},grenade:{interval:80,frames:[`، `,`′ `,` ´ `,` ‾ `,` ⸌`,` ⸊`,` |`,` ⁎`,` ⁕`,` ෴ `,` ⁓`,` `,` `,` `]},point:{interval:125,frames:[`∙∙∙`,`●∙∙`,`∙●∙`,`∙∙●`,`∙∙∙`]},layer:{interval:150,frames:[`-`,`=`,`≡`]},betaWave:{interval:80,frames:[`ρββββββ`,`βρβββββ`,`ββρββββ`,`βββρβββ`,`ββββρββ`,`βββββρβ`,`ββββββρ`]},fingerDance:{interval:160,frames:[`🤘 `,`🤟 `,`🖖 `,`✋ `,`🤚 `,`👆 `]},fistBump:{interval:80,frames:[`🤜 🤛 `,`🤜 🤛 `,`🤜 🤛 `,` 🤜 🤛 `,` 🤜🤛 `,` 🤜✨🤛 `,`🤜 ✨ 🤛 `]},soccerHeader:{interval:80,frames:[` 🧑⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `,`🧑 ⚽️ 🧑 `]},mindblown:{interval:160,frames:[`😐 `,`😐 `,`😮 `,`😮 `,`😦 `,`😦 `,`😧 `,`😧 `,`🤯 `,`💥 `,`✨ `,` `,` `,` `]},speaker:{interval:160,frames:[`🔈 `,`🔉 `,`🔊 `,`🔉 `]},orangePulse:{interval:100,frames:[`🔸 `,`🔶 `,`🟠 `,`🟠 `,`🔶 `]},bluePulse:{interval:100,frames:[`🔹 `,`🔷 `,`🔵 `,`🔵 `,`🔷 `]},orangeBluePulse:{interval:100,frames:[`🔸 `,`🔶 `,`🟠 `,`🟠 `,`🔶 `,`🔹 `,`🔷 `,`🔵 `,`🔵 `,`🔷 `]},timeTravel:{interval:100,frames:[`🕛 `,`🕚 `,`🕙 `,`🕘 `,`🕗 `,`🕖 `,`🕕 `,`🕔 `,`🕓 `,`🕒 `,`🕑 `,`🕐 `]},aesthetic:{interval:80,frames:[`▰▱▱▱▱▱▱`,`▰▰▱▱▱▱▱`,`▰▰▰▱▱▱▱`,`▰▰▰▰▱▱▱`,`▰▰▰▰▰▱▱`,`▰▰▰▰▰▰▱`,`▰▰▰▰▰▰▰`,`▰▱▱▱▱▱▱`]},dwarfFortress:{interval:80,frames:` ██████£££ .☺██████£££ .☺██████£££ .☺▓█████£££ .☺▓█████£££ .☺▒█████£££ .☺▒█████£££ .☺░█████£££ .☺░█████£££ .☺ █████£££ . ☺█████£££ . ☺█████£££ . ☺▓████£££ . ☺▓████£££ . ☺▒████£££ . ☺▒████£££ . ☺░████£££ . ☺░████£££ . ☺ ████£££ . ☺████£££ . ☺████£££ . ☺▓███£££ . ☺▓███£££ . ☺▒███£££ . ☺▒███£££ . ☺░███£££ . ☺░███£££ . ☺ ███£££ . ☺███£££ . ☺███£££ . ☺▓██£££ . ☺▓██£££ . ☺▒██£££ . ☺▒██£££ . ☺░██£££ . ☺░██£££ . ☺ ██£££ . ☺██£££ . ☺██£££ . ☺▓█£££ . ☺▓█£££ . ☺▒█£££ . ☺▒█£££ . ☺░█£££ . ☺░█£££ . ☺ █£££ . ☺█£££ . ☺█£££ . ☺▓£££ . ☺▓£££ . ☺▒£££ . ☺▒£££ . ☺░£££ . ☺░£££ . ☺ £££ . ☺£££ . ☺£££ . ☺▓££ . ☺▓££ . ☺▒££ . ☺▒££ . ☺░££ . ☺░££ . ☺ ££ . ☺££ . ☺££ . ☺▓£ . ☺▓£ . ☺▒£ . ☺▒£ . ☺░£ . ☺░£ . ☺ £ . ☺£ . ☺£ . ☺▓ . ☺▓ . ☺▒ . ☺▒ . ☺░ . ☺░ . ☺ . ☺ &. ☺ ☼&. ☺ ☼ &. ☺☼ &. ☺☼ & . ‼ & . ☺ & . ‼ & . ☺ & . ‼ & . ☺ & .‼ & . & . & . & ░ . & ▒ . & ▓ . & £ . & ░£ . & ▒£ . & ▓£ . & ££ . & ░££ . & ▒££ .& ▓££ .& £££ . ░£££ . ▒£££ . ▓£££ . █£££ . ░█£££ . ▒█£££ . ▓█£££ . ██£££ . ░██£££ . ▒██£££ . ▓██£££ . ███£££ . ░███£££ . ▒███£££ . ▓███£££ . ████£££ . ░████£££ . ▒████£££ . ▓████£££ . █████£££ . ░█████£££ . ▒█████£££ . ▓█████£££ . ██████£££ . ██████£££ `.split(`.`)}}}),a=e((exports,t)=>{let n=Object.assign({},i()),r=Object.keys(n);Object.defineProperty(n,`random`,{get(){let e=Math.floor(Math.random()*r.length),t=r[e];return n[t]}}),t.exports=n}),o=t(a(),1);function s({type:e=`dots`}){let[t,i]=(0,r.useState)(0),a=o.default[e];return(0,r.useEffect)(()=>{let e=setInterval(()=>{i(e=>{let t=e===a.frames.length-1;return t?0:e+1})},a.interval);return()=>{clearInterval(e)}},[a]),r.default.createElement(n,null,a.frames[t])}var c=s;export{c as build_default$1};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{emit as e}from"./telemetry-
|
|
1
|
+
import{emit as e}from"./telemetry-CzkkSv-B.js";import{Box_default as t,Static as n,Text as r,import_react as i,use_app_default as a,use_input_default as o}from"./build-DAuIWHgM.js";import{build_default$1 as s}from"./build-Dzo8dW9x.js";import{parseSseStream as c}from"./client-BBtg2JWN.js";import{Banner as l,Panel as u,useTheme as d}from"./panel-Dp_R3_m7.js";import{Keybar as f}from"./keybar-BEO4dRb4.js";const p=2048;async function*m(e){let t=[{role:`system`,content:h(e.context)},...e.transcript,{role:`user`,content:e.newUserMessage}],n;try{n=await e.api.openAiStream(`chat`,{messages:t,siteId:e.context.siteId},e.signal)}catch(e){yield{type:`error`,message:e.message??`request failed`};return}if(!n.ok){yield{type:`error`,message:`chat request failed (${n.status})`,code:String(n.status)};return}let r=parseInt(n.headers.get(`X-CLI-Queries-Today`)??`0`,10),i=parseInt(n.headers.get(`X-CLI-Queries-Daily-Limit`)??`0`,10),a=n.headers.get(`X-CLI-Tier`)??``;i>0&&(yield{type:`rate_limit`,used:r,limit:i,tier:a});let o=``;try{for await(let e of c(n))if(e.type===`delta`)o+=e.content,yield{type:`delta`,text:e.content};else if(e.type===`tool_start`)yield{type:`tool_start`,id:e.id,name:e.name};else if(e.type===`tool_result`)yield{type:`tool_result`,id:e.id,name:e.name,summary:e.summary,error:e.error};else if(e.type===`done`){yield{type:`done`,fullText:o};return}else if(e.type===`error`){yield{type:`error`,message:e.message,code:e.code};return}yield{type:`done`,fullText:o}}catch(e){if(e.name===`AbortError`){yield{type:`error`,message:`cancelled`,code:`aborted`};return}yield{type:`error`,message:e.message??`stream parse failed`}}}function h(e){let t=new Date().toISOString(),n=e.metricsSnapshot?g(e.metricsSnapshot,p):`(no live data yet)`,r=e.siteLabel?`${e.siteLabel}${e.siteId?` (id: ${e.siteId})`:``}`:e.siteId??`(no site)`;return[`You are the Zenovay AI assistant, embedded in the Zenovay terminal CLI.`,``,`The user is currently looking at the \`${e.commandName}\` view for their site ${r}.`,`They can ask questions about their analytics in plain English. Be concise`,`(≤200 words unless they ask for more). Cite specific numbers from the snapshot`,`below. Use plain text only — the terminal does not render markdown.`,``,`Current dashboard snapshot (live as of ${t}):`,n,``,`When you do not have enough data to answer, say so explicitly and tell`,`the user which command would surface that data (e.g. "run zenovay sources`,`--period 30d to get monthly trends"). Do NOT fabricate numbers.`].join(`
|
|
2
2
|
`)}function g(e,t){let n=JSON.stringify(e);if(n.length<=t)return JSON.stringify(e,null,2);let r=JSON.parse(n);for(let e=0;e<5;e+=1){r=_(r,10-e*2);let n=JSON.stringify(r);if(n.length<=t)return JSON.stringify(r,null,2)}let i=JSON.stringify(r).slice(0,t-16);return i+`… [truncated]`}function _(e,t){if(Array.isArray(e))return e.length>t?[...e.slice(0,t),`… ${e.length-t} more elided`]:e.map(e=>_(e,t));if(e&&typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=_(i,t);return n}return e}const v=30,y=6e4,b=[`What’s my top page today?`,`Where are most visitors coming from?`,`Show me the bounce-rate trend this week`,`Which pages have the highest bounce rate?`];function x(e){return e.replace(/^ask_/,``).replace(/_/g,` `)}function S(){let e=process.stdout.columns;return typeof e==`number`&&e>0?e:80}function C(e,t,n){if(t<=0)return{body:``,clipped:0};let r=e.split(`
|
|
3
3
|
`),i=[];for(let e of r)if(e.length<=n||n<=0)i.push(e);else for(let t=0;t<e.length;t+=n)i.push(e.slice(t,t+n));if(i.length<=t)return{body:e,clipped:0};let a=i.slice(i.length-t);return{body:a.join(`
|
|
4
4
|
`),clipped:i.length-t}}function w(e,t){let n=t.replace(/\r\n?/g,`
|