sandforge 0.0.0-stage → 1.80.0
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/LICENSE +21 -0
- package/README.md +54 -2
- package/THIRD-PARTY-NOTICES.md +1624 -0
- package/bin/sandforge-autopilot.mjs +12 -0
- package/bin/sandforge-backup.mjs +12 -0
- package/bin/sandforge-checkpoint.mjs +12 -0
- package/bin/sandforge-cleanup.mjs +12 -0
- package/bin/sandforge-clone.mjs +12 -0
- package/bin/sandforge-compare.mjs +12 -0
- package/bin/sandforge-dataops.mjs +12 -0
- package/bin/sandforge-empty.mjs +12 -0
- package/bin/sandforge-env.mjs +12 -0
- package/bin/sandforge-frozen.mjs +12 -0
- package/bin/sandforge-mcp.mjs +12 -0
- package/bin/sandforge-monitor.mjs +12 -0
- package/bin/sandforge-seed.mjs +12 -0
- package/bin/sandforge-sync.mjs +12 -0
- package/bin/sandforge.mjs +12 -0
- package/lib/catalogue.en.json +1 -0
- package/lib/chunk-2BA2XKAY.mjs +7 -0
- package/lib/chunk-2CNCDM56.mjs +7 -0
- package/lib/chunk-2GTBABKU.mjs +7 -0
- package/lib/chunk-2NBYT7GR.mjs +7 -0
- package/lib/chunk-2UZPIMUC.mjs +7 -0
- package/lib/chunk-2YIV2OB2.mjs +7 -0
- package/lib/chunk-3F6Q5E7I.mjs +14 -0
- package/lib/chunk-3RZQZHEB.mjs +7 -0
- package/lib/chunk-3TJON4F3.mjs +7 -0
- package/lib/chunk-4HW535YJ.mjs +7 -0
- package/lib/chunk-4TLYUZD5.mjs +7 -0
- package/lib/chunk-4VS2V6WU.mjs +25 -0
- package/lib/chunk-5K5VLULK.mjs +7 -0
- package/lib/chunk-5LFSFYFJ.mjs +7 -0
- package/lib/chunk-5P4PHJRL.mjs +9 -0
- package/lib/chunk-5TC3QB4U.mjs +10 -0
- package/lib/chunk-66NMFCWX.mjs +7 -0
- package/lib/chunk-6XYKJSGX.mjs +7 -0
- package/lib/chunk-74Q6DORA.mjs +7 -0
- package/lib/chunk-7ABODJ4G.mjs +7 -0
- package/lib/chunk-7EANH5PY.mjs +68 -0
- package/lib/chunk-7EGQP6S4.mjs +7 -0
- package/lib/chunk-7F54PZUS.mjs +7 -0
- package/lib/chunk-7FFGJWHN.mjs +7 -0
- package/lib/chunk-7YDNUBO5.mjs +7 -0
- package/lib/chunk-A527W53V.mjs +7 -0
- package/lib/chunk-ADOAS63R.mjs +7 -0
- package/lib/chunk-AEKONPF4.mjs +7 -0
- package/lib/chunk-AV5SWEHP.mjs +9 -0
- package/lib/chunk-B5QQJ4SI.mjs +7 -0
- package/lib/chunk-BGUEWRK2.mjs +7 -0
- package/lib/chunk-BKDV4ENO.mjs +7 -0
- package/lib/chunk-BOGNK4LV.mjs +7 -0
- package/lib/chunk-BTWDMNN3.mjs +7 -0
- package/lib/chunk-BV6VTP3J.mjs +7 -0
- package/lib/chunk-BXU6WFMH.mjs +7 -0
- package/lib/chunk-BY2HJFFG.mjs +7 -0
- package/lib/chunk-BZ24IAP5.mjs +7 -0
- package/lib/chunk-CA5NAXSU.mjs +7 -0
- package/lib/chunk-CE6ZDGBB.mjs +7 -0
- package/lib/chunk-CEX3NEZL.mjs +7 -0
- package/lib/chunk-CHCHAE4B.mjs +7 -0
- package/lib/chunk-CHYDMRSV.mjs +7 -0
- package/lib/chunk-CION3VMZ.mjs +7 -0
- package/lib/chunk-COFG7Q6R.mjs +7 -0
- package/lib/chunk-CSBS5U5I.mjs +7 -0
- package/lib/chunk-CU2INBND.mjs +7 -0
- package/lib/chunk-DB7RBE5D.mjs +7 -0
- package/lib/chunk-DBB3EMIN.mjs +7 -0
- package/lib/chunk-DBFJB2B6.mjs +7 -0
- package/lib/chunk-DYFALGRT.mjs +7 -0
- package/lib/chunk-E5AHXLS6.mjs +7 -0
- package/lib/chunk-E5ZB3LU5.mjs +7 -0
- package/lib/chunk-EADHKH3A.mjs +7 -0
- package/lib/chunk-EFR2Y7E4.mjs +7 -0
- package/lib/chunk-EHQ3FX6X.mjs +7 -0
- package/lib/chunk-ELFXJHU7.mjs +7 -0
- package/lib/chunk-EMNC6YI4.mjs +7 -0
- package/lib/chunk-EQNW3UC2.mjs +7 -0
- package/lib/chunk-F2424IKX.mjs +7 -0
- package/lib/chunk-F43REJDZ.mjs +10 -0
- package/lib/chunk-F6GUDTOB.mjs +7 -0
- package/lib/chunk-FGRG7ANU.mjs +7 -0
- package/lib/chunk-FKG7Q3WH.mjs +7 -0
- package/lib/chunk-FPKYYFM7.mjs +7 -0
- package/lib/chunk-FQGHL7GR.mjs +259 -0
- package/lib/chunk-FXXLX4O6.mjs +7 -0
- package/lib/chunk-G35N4P7D.mjs +7 -0
- package/lib/chunk-GCOB7K5N.mjs +7 -0
- package/lib/chunk-GGD7ON3M.mjs +7 -0
- package/lib/chunk-GMY5427L.mjs +7 -0
- package/lib/chunk-GSG7WZHM.mjs +7 -0
- package/lib/chunk-GSKCGQIP.mjs +7 -0
- package/lib/chunk-HEKAZJRH.mjs +7 -0
- package/lib/chunk-HF6LAK3G.mjs +7 -0
- package/lib/chunk-HLWMJF6Y.mjs +7 -0
- package/lib/chunk-HOJYWTP7.mjs +20 -0
- package/lib/chunk-HS4YRX4J.mjs +7 -0
- package/lib/chunk-HXS7ORUF.mjs +11 -0
- package/lib/chunk-I7O6C2B5.mjs +8 -0
- package/lib/chunk-IC2C2GOF.mjs +8 -0
- package/lib/chunk-IFETCRWE.mjs +10 -0
- package/lib/chunk-IG2MTQRP.mjs +8 -0
- package/lib/chunk-IGYH7GMA.mjs +7 -0
- package/lib/chunk-INIQ23K6.mjs +7 -0
- package/lib/chunk-INIT2UKJ.mjs +7 -0
- package/lib/chunk-IOIWJ3DJ.mjs +7 -0
- package/lib/chunk-IQXHJEYB.mjs +7 -0
- package/lib/chunk-IWDREM66.mjs +7 -0
- package/lib/chunk-IZQZ6ZUF.mjs +7 -0
- package/lib/chunk-J525F5KI.mjs +7 -0
- package/lib/chunk-JEERQRLW.mjs +7 -0
- package/lib/chunk-JPUR2CFX.mjs +10 -0
- package/lib/chunk-JWTSEDIQ.mjs +7 -0
- package/lib/chunk-K2FBZIXY.mjs +7 -0
- package/lib/chunk-K327QKMD.mjs +7 -0
- package/lib/chunk-KBJ5VERV.mjs +7 -0
- package/lib/chunk-KDGMAGQR.mjs +7 -0
- package/lib/chunk-KRCA6IPH.mjs +8 -0
- package/lib/chunk-KYEDBS54.mjs +7 -0
- package/lib/chunk-L5FGY6YA.mjs +7 -0
- package/lib/chunk-L77FJZEP.mjs +10 -0
- package/lib/chunk-LKQ5RKIV.mjs +9 -0
- package/lib/chunk-LPBMBW3O.mjs +13 -0
- package/lib/chunk-LWW4U276.mjs +7 -0
- package/lib/chunk-M3ROUWDX.mjs +7 -0
- package/lib/chunk-M6P5ZZLE.mjs +7 -0
- package/lib/chunk-MFG4MUIO.mjs +9 -0
- package/lib/chunk-MHMH6MTP.mjs +7 -0
- package/lib/chunk-MILU7WFN.mjs +7 -0
- package/lib/chunk-MJU2PGZQ.mjs +15 -0
- package/lib/chunk-MJVTDA5Q.mjs +7 -0
- package/lib/chunk-MS4FJDFD.mjs +101 -0
- package/lib/chunk-MTMH6H2A.mjs +8 -0
- package/lib/chunk-MYW5QNGI.mjs +7 -0
- package/lib/chunk-N652NMZ4.mjs +441 -0
- package/lib/chunk-NTFIRZP6.mjs +7 -0
- package/lib/chunk-NTOVCTRS.mjs +7 -0
- package/lib/chunk-NZC67CGR.mjs +9 -0
- package/lib/chunk-O2HDYYUV.mjs +8 -0
- package/lib/chunk-OAZRPP4I.mjs +7 -0
- package/lib/chunk-OHWNPXWW.mjs +7 -0
- package/lib/chunk-OLSGVAIL.mjs +341 -0
- package/lib/chunk-OO6CLPEH.mjs +7 -0
- package/lib/chunk-OPXCV2KL.mjs +7 -0
- package/lib/chunk-P33PSCXK.mjs +7 -0
- package/lib/chunk-PJ5I73CK.mjs +7 -0
- package/lib/chunk-PTTHSSQO.mjs +7 -0
- package/lib/chunk-PZPJKATS.mjs +19 -0
- package/lib/chunk-Q3DM32KF.mjs +11 -0
- package/lib/chunk-QR3WELJQ.mjs +7 -0
- package/lib/chunk-QROPNEGY.mjs +14 -0
- package/lib/chunk-QSRAEUGZ.mjs +7 -0
- package/lib/chunk-QWT2C74M.mjs +7 -0
- package/lib/chunk-R3X3LV64.mjs +14 -0
- package/lib/chunk-RMBPOTD7.mjs +7 -0
- package/lib/chunk-RPI7LRTW.mjs +7 -0
- package/lib/chunk-RSWDYIHY.mjs +37 -0
- package/lib/chunk-SAR5622P.mjs +7 -0
- package/lib/chunk-SCKUIE3R.mjs +7 -0
- package/lib/chunk-SE4QEZUG.mjs +7 -0
- package/lib/chunk-SIHORWVK.mjs +7 -0
- package/lib/chunk-SOGQW4IG.mjs +7 -0
- package/lib/chunk-SOU4FRYN.mjs +7 -0
- package/lib/chunk-SRPWW4A2.mjs +10 -0
- package/lib/chunk-SU65Z2BA.mjs +7 -0
- package/lib/chunk-T62WNR54.mjs +7 -0
- package/lib/chunk-T63U4OZJ.mjs +7 -0
- package/lib/chunk-TLH7AD35.mjs +7 -0
- package/lib/chunk-TSLJUSLW.mjs +13 -0
- package/lib/chunk-TTFDUKUS.mjs +47 -0
- package/lib/chunk-TTKXMDBN.mjs +10 -0
- package/lib/chunk-TUACWKIH.mjs +7 -0
- package/lib/chunk-TW3N6W5Z.mjs +7 -0
- package/lib/chunk-TYYOBZMU.mjs +10 -0
- package/lib/chunk-TZE3Y7IQ.mjs +7 -0
- package/lib/chunk-UCD54V2M.mjs +7 -0
- package/lib/chunk-UNDIBZWG.mjs +7 -0
- package/lib/chunk-UNJA4J37.mjs +11 -0
- package/lib/chunk-VE6XKGGD.mjs +7 -0
- package/lib/chunk-VGW4MXXZ.mjs +7 -0
- package/lib/chunk-VS7ZXUII.mjs +824 -0
- package/lib/chunk-VXQLDM4R.mjs +7 -0
- package/lib/chunk-VYXMVJL5.mjs +7 -0
- package/lib/chunk-W622GUAW.mjs +8 -0
- package/lib/chunk-W7U5E5ZL.mjs +9 -0
- package/lib/chunk-WA7EYLAQ.mjs +7 -0
- package/lib/chunk-WIO4XO4F.mjs +7 -0
- package/lib/chunk-WR2GIKWE.mjs +7 -0
- package/lib/chunk-WR4Q363I.mjs +11 -0
- package/lib/chunk-WU3GLFZO.mjs +7 -0
- package/lib/chunk-WXAQ7FK3.mjs +115 -0
- package/lib/chunk-X5JYBPXP.mjs +7 -0
- package/lib/chunk-XAMBCQPU.mjs +7 -0
- package/lib/chunk-XCA5AONB.mjs +7 -0
- package/lib/chunk-XLXIPIEW.mjs +9 -0
- package/lib/chunk-XUWL6ZPC.mjs +7 -0
- package/lib/chunk-YAZO75G2.mjs +8 -0
- package/lib/chunk-YKKRIEH4.mjs +7 -0
- package/lib/chunk-YRQGKDHM.mjs +7 -0
- package/lib/chunk-YS4G22C2.mjs +7 -0
- package/lib/chunk-YYZL7UGV.mjs +7 -0
- package/lib/chunk-ZHJP7L3K.mjs +7 -0
- package/lib/chunk-ZM6OJGIG.mjs +7 -0
- package/lib/chunk-ZUTYVST5.mjs +7 -0
- package/lib/chunk-ZVAED4QV.mjs +7 -0
- package/lib/sandforge-autopilot.mjs +162 -0
- package/lib/sandforge-backup.mjs +103 -0
- package/lib/sandforge-checkpoint.mjs +354 -0
- package/lib/sandforge-cleanup.mjs +60 -0
- package/lib/sandforge-clone.mjs +7 -0
- package/lib/sandforge-compare.mjs +55 -0
- package/lib/sandforge-dataops.mjs +7 -0
- package/lib/sandforge-empty.mjs +140 -0
- package/lib/sandforge-env.mjs +355 -0
- package/lib/sandforge-frozen.mjs +272 -0
- package/lib/sandforge-mcp.mjs +40 -0
- package/lib/sandforge-monitor.mjs +43 -0
- package/lib/sandforge-seed.mjs +7 -0
- package/lib/sandforge-sync.mjs +7 -0
- package/lib/sandforge.mjs +28 -0
- package/package.json +52 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{W as S,X as I,Y as Ae,n as Ee,o as Ce,oa as re}from"./chunk-JPUR2CFX.mjs";import{t as v,u as Be}from"./chunk-LPBMBW3O.mjs";import{b as x}from"./chunk-GSKCGQIP.mjs";import{L as ve,N as V,O as Te,f as ye,ka as Ne}from"./chunk-VYXMVJL5.mjs";import{b as ne,f as Oe}from"./chunk-INIT2UKJ.mjs";import{k as we,l as ke,m as Se}from"./chunk-L77FJZEP.mjs";import{ca as K,da as Re}from"./chunk-A527W53V.mjs";import{b as P}from"./chunk-CA5NAXSU.mjs";import{b as be,e as ee,f as te,k as he,l as W}from"./chunk-7EANH5PY.mjs";function ot(e){return e.keptChanged+e.keptDependents+e.refused+(e.notVisible??0)}function Sn(e,t){return t?"cancelled":e.every(n=>ot(n)===0)?"success":e.some(n=>n.deleted>0)?"partial":"failure"}function En(e,t){return e!=="success"||!t||t.status==="success"?e:t.status==="cancelled"?"cancelled":"partial"}function Cn(e){return e.status}function An(e){return e.filter(t=>t.deleted+t.refused+(t.notReached??0)>0).map(t=>({...ye(t.objectApiName),deleted:t.deleted,failed:t.refused,...(t.notReached??0)>0?{notSent:t.notReached}:{}}))}function Bn(e,t,n,r=!1){let o=h=>e.objects.reduce((B,C)=>B+h(C),0),i=o(h=>h.deleted),a=o(h=>h.alreadyGone),m=o(h=>h.keptChanged+h.keptDependents),u=o(h=>h.refused),c=o(h=>h.notVisible??0);if(i+a===0&&(!r||e.status==="cancelled"||m+u+c===0))return;let g=r?void 0:n,y=o(h=>h.platformCopies??0),A=e.status==="cancelled"?Math.max(0,t+y-i-a-m-u-c):0;return{removedAt:e.finishedAt,deleted:(g?.deleted??0)+i,alreadyGone:(g?.alreadyGone??0)+a,kept:m,refused:u,...A>0?{notReached:A}:{},...c>0?{notVisible:c}:{}}}function vn(...e){let t=new Set,n=[];for(let r of e.flatMap(o=>o??[])){let o=`${r.first}|${r.last}|${r.userId.slice(0,15)}`;t.has(o)||(t.add(o),n.push(r))}return n.sort((r,o)=>Date.parse(r.first)-Date.parse(o.first))}var oe=5;function M(e,t,n=1/0){return[...new Set([...e,...t])].slice(0,n)}function D(e,t){return e===void 0&&t===void 0?void 0:(e??0)+(t??0)}function Tn(...e){let t=new Map;for(let n of e.flat()){let r=t.get(n.objectApiName);if(!r){t.set(n.objectApiName,{...n});continue}let o={notVisible:D(r.notVisible,n.notVisible),notReached:D(r.notReached,n.notReached),heldByAutomation:D(r.heldByAutomation,n.heldByAutomation),heldByAutomationAfterRun:D(r.heldByAutomationAfterRun,n.heldByAutomationAfterRun),heldByAutomationAlong:D(r.heldByAutomationAlong,n.heldByAutomationAlong),platformCopies:D(r.platformCopies,n.platformCopies)},i=M(r.automationHolders??[],n.automationHolders??[]),a=r.filesLeft||n.filesLeft?{count:(r.filesLeft?.count??0)+(n.filesLeft?.count??0),names:M(r.filesLeft?.names??[],n.filesLeft?.names??[],oe)}:void 0;t.set(n.objectApiName,{objectApiName:n.objectApiName,planned:r.planned+n.planned,deleted:r.deleted+n.deleted,alreadyGone:r.alreadyGone+n.alreadyGone,keptChanged:r.keptChanged+n.keptChanged,keptDependents:r.keptDependents+n.keptDependents,refused:r.refused+n.refused,...Object.fromEntries(Object.entries(o).filter(([,m])=>m!==void 0)),heldBy:M(r.heldBy,n.heldBy),...i.length>0?{automationHolders:i}:{},unchecked:M(r.unchecked,n.unchecked),reasons:M(r.reasons,n.reasons,oe),...a?{filesLeft:a}:{}})}return[...t.values()]}function Nn(...e){let t=new Map;for(let n of e.flat()){let r=t.get(n.objectApiName);if(!r){t.set(n.objectApiName,{...n,changedBy:{...n.changedBy}});continue}let o={...r.changedBy};for(let[a,m]of Object.entries(n.changedBy))o[a]=(o[a]??0)+m;let i=D(r.platformCopies,n.platformCopies);t.set(n.objectApiName,{objectApiName:n.objectApiName,planned:r.planned+n.planned,toDelete:r.toDelete+n.toDelete,alreadyGone:r.alreadyGone+n.alreadyGone,changedSince:r.changedSince+n.changedSince,keptChanged:r.keptChanged+n.keptChanged,changedBy:o,undeletable:r.undeletable+n.undeletable,notVisible:r.notVisible+n.notVisible,unread:r.unread+n.unread,...i!==void 0?{platformCopies:i}:{},reasons:M(r.reasons,n.reasons,oe)})}return[...t.values()]}import{AsyncLocalStorage as it}from"node:async_hooks";var je=new Set(["delete","hardDelete"]),de=1e4,Pe=5e4;function _n(e){switch(e){case"production":return;case"staging":return de;case"development":case"scratch":return Pe}}var xe=new it;function ie(){let e=xe.getStore();return e?.live?e:void 0}async function Pn(e,t){let n={approved:e.approved,live:!0};try{return await xe.run(n,t)}finally{n.live=!1}}var De=class{overrides=new Map;options;constructor(t){this.options=t??{}}check(t){let n=this.checkTier(t),{orgNameOf:r}=this.options;return!n.requiresConfirmation||!r?n:{...n,question:dt(t,r(t.orgId),this.options.questionWords)}}checkTier(t){switch(t.orgTier){case"production":return this.checkProduction(t);case"staging":return this.checkStaging(t);case"development":case"scratch":return this.checkDevelopment(t)}}setProductionOverride(t,n){this.overrides.set(t,n)}isProductionOverridden(t){return this.overrides.get(t)===!0}get canAskForConfirmation(){return this.options.requestConfirmation!==void 0||ie()!==void 0}async confirmIfNeeded(t,n){if(!t.allowed||!t.requiresConfirmation)return t.allowed;let r=ie();return r?r.approved:this.options.requestConfirmation?t.question===void 0?this.options.requestConfirmation(t.impactSummary,n):this.options.requestConfirmation(t.impactSummary,n,t.question):!0}declinedWithoutAsking(t,n){if(!(!t.allowed||!t.requiresConfirmation||ie())&&this.options.requestConfirmation)return this.options.declinesWithoutAsking?.(n)}async confirmRun(t){return this.options.requestRunConfirmation?await this.options.requestRunConfirmation(t)?"confirmed":"declined":"unavailable"}orgPhrase(t,n){let r=this.options.orgNameOf?.(t.orgId);return r?n.org(t.orgTier,r,!0):n.org(t.orgTier,t.orgId,!1)}checkProduction(t){let n=[],r=je.has(t.operation),o=this.isProductionOverridden(t.orgId);n.push(`Production operation: ${t.operation} on ${t.objectName} (${q(t.recordCount)} ${st(t)}${t.alsoWrites?`, plus ${t.alsoWrites}`:""})`);let i=this.options.questionWords??Ie;return t.operation==="deploy"?{allowed:!1,requiresConfirmation:!1,blockedReason:i.deployRefused(this.orgPhrase(t,i)),warnings:n,impactSummary:U(t)}:r&&!o?{allowed:!1,requiresConfirmation:!1,blockedReason:i.deleteRefused(t.operation==="hardDelete"?"hardDelete":"delete",this.orgPhrase(t,i)),warnings:n,impactSummary:U(t)}:(r&&o&&n.push("Production override is active \u2014 destructive operation permitted"),{allowed:!0,requiresConfirmation:!0,warnings:n,impactSummary:U(t)})}checkStaging(t){let n=[],r=je.has(t.operation),o=t.operation==="deploy",i=r||o||se(t.recordCount)>de;return r&&n.push(`Destructive operation (${t.operation}) on staging org \u2014 confirmation required`),o&&n.push("Metadata deployment on staging org \u2014 confirmation required"),se(t.recordCount)>de&&n.push(`Large volume operation: ${q(t.recordCount)} records on staging`),{allowed:!0,requiresConfirmation:i,warnings:n,impactSummary:U(t)}}checkDevelopment(t){let n=[];return se(t.recordCount)>Pe&&n.push(`Large volume operation: ${q(t.recordCount)} records on ${t.orgTier} org`),{allowed:!0,requiresConfirmation:!1,warnings:n,impactSummary:U(t)}}};function q(e){return e==="unknown"?"an unknown number of":typeof e=="number"?String(e):`at most ${e.atMost}`}function se(e){return e==="unknown"?0:typeof e=="number"?e:e.atMost}function st(e){return e.operation==="deploy"?"components":"records"}var xn="the related records the run adds",Ie={sentence:(e,t,n)=>{switch(e){case"insert":return`Insert ${t} into ${n}.`;case"update":return`Update ${t} in ${n}.`;case"upsert":return`Insert or update ${t} in ${n}.`;case"delete":return`Delete ${t} in ${n}.`;case"hardDelete":return`Permanently delete ${t} in ${n}.`;case"deploy":return`Deploy ${t} to ${n}.`}},counted:(e,t)=>t==="unknown"?`${e}s`:typeof t=="number"?`${t} ${e}${t===1?"":"s"}`:`at most ${t.atMost} ${e}s`,besides:(e,t)=>`${e}, plus ${t},`,org:(e,t,n)=>n?`the ${e} org "${t}"`:`the ${e} org ${t}`,deployRefused:e=>`SandForge deploys metadata only to a sandbox, a scratch org or a Developer Edition org, not to ${e}: bring the change there through your release process, as a change set or a deployment from source control.`,deleteRefused:(e,t)=>e==="hardDelete"?`Permanently deleting records is not allowed in ${t}.`:`Deleting records is not allowed in ${t}.`},at=new Set(["SeedData","SyncData","CloneData","AutopilotData"]);function dt(e,t,n=Ie){let r=e.operation==="deploy"?"component":"record",o=at.has(e.objectName)?"":` (${e.objectName})`,i=`${n.counted(r,e.recordCount)}${o}`,a=e.alsoWrites?n.besides(i,e.alsoWrites):i,m=t?n.org(e.orgTier,t,!0):n.org(e.orgTier,e.orgId,!1);return n.sentence(e.operation,a,m)}function U(e){if(e.operation==="deploy")return`DEPLOY ${q(e.recordCount)} component(s) (${e.objectName}) to ${e.orgTier} org ${e.orgId} [module: ${e.module}]`;let t=e.alsoWrites?`, plus ${e.alsoWrites},`:"";return`${e.operation.toUpperCase()} ${q(e.recordCount)} ${e.objectName} record(s)${t} on ${e.orgTier} org ${e.orgId} [module: ${e.module}]`}function J(e,t){return`${e} ${t}${e===1?"":"s"}`}var ct={cost:({records:e,objects:t,requests:n,seconds:r,megabytes:o,keepDays:i})=>`Checkpoint first: about ${J(e,"record")} of ${J(t,"object")}, ${J(n,"API request")}, ${r} s, ${o} MB on this machine, unencrypted, and none of the org's storage, `+(i===0?"kept until you delete it.":`kept ${J(i,"day")}.`),added:(e,t)=>`Added: ${e} \u2014 ${t}`,notHeld:(e,t)=>`Not in the checkpoint: ${e} \u2014 ${t}`,more:e=>`\u2026 and ${e} more`,unknown:"What an Apex trigger, or automation that could not be read, creates as the run writes is not known: a rewind leaves those records as they are."},ae=10;function ut(e){return e<=0?"0":Math.max(.1,Math.ceil(e/1048576*10-1e-9)/10).toFixed(1)}function In(e,t=ct){let{estimate:n}=e,r=[t.cost({records:n.records,objects:e.objects.length,requests:n.apiRequests,seconds:Math.ceil(n.seconds),megabytes:ut(n.bytes),keepDays:e.keepDays})],o=(i,a)=>{for(let{objectApiName:m,reason:u}of i.slice(0,ae))r.push(a(m,u));i.length>ae&&r.push(t.more(i.length-ae))};return o(e.added,t.added),o(e.notHeld,t.notHeld),r.push(t.unknown),r}import{randomUUID as lt}from"node:crypto";var ce="\0configStore:revision",ft="\0configStore";function mt(e){let t=e[ce]?.value;if(t!==void 0)try{let n=JSON.parse(t);return typeof n.writer=="string"&&typeof n.write=="number"?{writer:n.writer,write:n.write}:void 0}catch{return}}var Me=class{backend;logWarning;writer=lt();writes=0;written;constructor(t,n){this.backend=t,this.logWarning=n}initialize(){this.backend.getData()}get(t){let n=this.current()[t];if(n)try{return JSON.parse(n.value)}catch(r){let o=P(r);this.logWarning?.(`[ConfigStore] Failed to parse JSON for key "${t}": ${o}`);return}}set(t,n,r="general"){let o=JSON.stringify(n);this.update(i=>{let a=i[t];return a&&a.value===o&&a.category===r?!1:(i[t]={value:o,category:r},!0)})}delete(t){return this.update(n=>t in n?(delete n[t],!0):!1)}has(t){return t in this.current()}getByCategory(t){let n={};for(let[r,o]of Object.entries(this.current()))if(o.category===t)try{n[r]=JSON.parse(o.value)}catch(i){let a=P(i);this.logWarning?.(`[ConfigStore] Corrupted entry in category "${t}", key "${r}": ${a}`)}return n}getAllKeys(){return Object.keys(this.current()).filter(t=>t!==ce)}getKeysByPrefix(t){return this.getAllKeys().filter(n=>n.startsWith(t))}clearCategory(t){let n=0;return this.update(r=>{for(let[o,i]of Object.entries(r))i.category===t&&(delete r[o],n++);return n>0}),n}clearAll(){this.write({})}current(){let t=this.backend.getData(),n=mt(t);return this.written&&n?.writer===this.writer&&n.write<this.writes?this.written:t}update(t){let n={...this.current()},r=t(n);return r&&this.write(n),r}write(t){this.writes+=1,t[ce]={value:JSON.stringify({writer:this.writer,write:this.writes}),category:ft},this.backend.setData(t),this.written=t}};var pt=300,gt=1024,bt=160,ht=500,Ke=40,Rt=4,yt=3,Ot=3,wt=1,kt=1e3,St=1,$e=200,Et=60,Ct=50,At=Buffer.byteLength(`${JSON.stringify({Id:"0".repeat(18)})}
|
|
8
|
+
`),Bt="IsDeleted = false",Ve=4;function vt(e){return e.access?.kind==="perObject"?e.access.requests:0}var Tt=1,Nt=200,jt=3,Dt=1,_t=1,Je=2,Pt=3,xt=2e3,It=100,ze=["Id","SystemModstamp"],Le=23,j=2.5,b=.35,Mt=1,$t=.9,O=.5,pe=.25,T=.86,Lt="ContentVersion",Ft="ContentDocument",ue=200,Fe=150,R={apiRequests:0,seconds:0};function d(e,t){return{apiRequests:e,seconds:e*t}}function G(e){return{apiRequests:e,seconds:p(e,Ae)*b}}function l(...e){return e.reduce((t,n)=>({apiRequests:t.apiRequests+n.apiRequests,seconds:t.seconds+n.seconds}),R)}function p(e,t){return e>0?Math.ceil(e/t):0}function E(e){return p(e,x)}function Ye(e){return ne(e,ze).length}function Wt(e){return e.length>It?x/4:x}function Q(e,t){return p(e,Wt(t))*Ye(t)}function We(e,t){if(e.length===0)return 0;let n=2*(e.length-1)+2+2*(t-1);for(let r of e){let o=JSON.stringify(r,null,2),i=1;for(let a=o.indexOf(`
|
|
9
|
+
`);a>=0;a=o.indexOf(`
|
|
10
|
+
`,a+1))i++;n+=Buffer.byteLength(o,"utf8")+i*2*t}return n}function Ut(e){let t=gt+(e.printsBytes??0),n=[];for(let r of e.objects)t+=r.records*pt+Be(r.records,2),r.records>0&&(t+=bt),t+=(r.inBin??0)*At,t+=(r.links??0)*(Et+Ct),r.entry!==void 0&&n.push(r.entry);return t+We(n,2)+We(e.leftOut??[],3)}function Xn(e,t,n){let[,...r]=ne(t,ze),o=n==="scanAllLive"?Bt:void 0;return r.map(i=>Oe(e,i,o))}function Ue(e,t){return t.reduce((n,r)=>n+p(e,Math.max(1,r)),0)}function qt(e,t){if(e.records===0)return{pages:0,reads:0};let n=Math.floor(e.records/t),r=e.records-n*t,o=e.otherGroups??[];return{pages:n+(r>0?1:0),reads:n*Ue(t,o)+Ue(r,o)}}function Zn(e){let t=e.objects.length,n=p(e.described,I),r=e.describedAlone??0,o=G(p(e.counted??t,S)),i=(e.countedAlone??0)+p(e.recounted??0,S),a=o.apiRequests+i,m=G(p(t,S)),u=Math.min(e.pageRows,kt),c=0,g=0,y=0;for(let f of e.objects){y+=f.records;let w=qt(f,u);c+=w.pages,g+=w.reads}let A=H(e.objects.map(f=>$(f.inBin??0))),h=Gt(e.objects),B=e.objects.filter(f=>(f.stampedSince??0)>0),C=l(H(B.flatMap(f=>[$(f.stampedSince??0),1])),G(p(B.length,S))),F=c+g+(c>0?wt:0),s={guard:Rt,scope:yt+n+r,start:Ot,counts:a,bin:A.apiRequests,snapshot:F+h.apiRequests,stability:St+m.apiRequests+C.apiRequests};return{records:y,apiRequests:Object.values(s).reduce((f,w)=>f+w,0),requestsByPhase:s,seconds:Math.ceil(n*j+(r+i)*b+o.seconds+m.seconds+A.seconds+C.seconds+h.seconds+c*Mt+g*O),bytes:Ut(e)}}function Gt(e){let t=e.filter(o=>o.links!==void 0);if(t.length===0)return R;let n=0,r=0;for(let o of t)o.links===null?n+=p(p(o.records,$e),S):r+=o.links??0;return l(H(t.map(o=>$(o.links??0))),d(n,O),d(p(p(r,$e),S),O))}function $(e){return Math.max(1,p(e,xt))}function H(e){let t=0,n=0;for(let r=0;r<e.length;r+=S){let o=Math.max(1,...e.slice(r,r+S));t+=1,n+=o-1}return l(d(t,b),d(n,$t))}function Ht(e){let t=new Set([...e.held,...e.moved.map(n=>n.objectApiName)]);return l(G(p(e.objects,S)),H(e.moved.flatMap(({live:n,deleted:r})=>[$(n),$(r)])),G(p(t.size,S)))}function Xe(e){let t=e.reduce((n,r)=>n+E(r),0);return l(d(t*(jt-1),O),d(t,T))}function Qt(e){return l(...e.filter(t=>t.records>0).map(({records:t,cascades:n,described:r})=>{let o=E(t);return l(d(r?0:1,j),Xe([t]),d(o*p(n,S),b),d(o*Dt,O))}))}function le(e,t){let n=R;for(let r=e;r>0;r-=v){let o=Math.min(r,v);n=l(n,d(Je,b),d(Q(o,t),O),d(V([{rows:o}]),T),d(E(o),O))}return n}function Kt(e,t,n,r){return e===0||n===0?R:l(d(r?0:1,j),d((n+E(e))*p(t,S),b))}var Vt=W({childRelationships:he(W({childSObject:be().optional(),cascadeDelete:te().optional(),restrictedDelete:te().optional()}).loose()).nullish()}).loose();function er(e,t){let n=Vt.parse(e).childRelationships??[],r=n.filter(u=>u.cascadeDelete===!0),o=t?.worked,i={dependents:n.filter(u=>(u.cascadeDelete===!0||u.restrictedDelete===!0)&&(o===void 0||u.childSObject!==void 0&&o.has(u.childSObject))).length,cascades:r.length,cascadeChildren:[...new Set(r.flatMap(u=>u.childSObject===void 0?[]:[u.childSObject]))]};if(t===void 0)return i;let a=n.filter(u=>u.cascadeDelete===!0&&u.childSObject!==void 0&&!t.inCheckpoint.has(u.childSObject.toLowerCase())),m=a.filter(u=>u.childSObject!==void 0&&t.worked?.has(u.childSObject)===!0);return{...i,outside:{all:a.length,worked:m.length}}}function ge(e,t){return e?.get(t)??{dependents:Le,cascades:Le}}function Jt(e,t){if(e<Ee||t===Lt||t===Ft)return d(V([{rows:e}]),T);let n=Math.ceil(e/Ce),r=Math.ceil(e/n),o=R;for(let i=e;i>0;i-=r){let a=Math.min(i,r);o=l(o,{apiRequests:we({stateReads:Se(a)}),seconds:ke(a)})}return o}function fe(e,t=Number.POSITIVE_INFINITY){let n=e.filter(r=>r.records>0);return n.length===0?R:l(d(Pt,b),...n.map(({records:r,dependents:o,objectApiName:i})=>{let a=E(r),m=0;for(let c=r;c>0;c-=t)Math.min(c,t)>x&&m++;let u=m*o;return l(d(1,b),d(a,O),d(u+o*a,pe),Yt(i,a,u+o*a),Jt(r,i))}))}function zt(e,t,n){return l(...e.filter(({count:r})=>r>0).map(({objectApiName:r,count:o})=>{let{dependents:i}=ge(t,r),a=o>x?i:0;return l(d(n.has(r)?0:1,j),d(a+i*E(o),pe))}))}function Yt(e,t,n){return e===void 0||K[e]===void 0||Re.has(e)?R:l(d(1,b),d(t,O),d(n,pe),d(t,T))}function N(e){return e.toDelete.createdSince+e.toDelete.broughtBackSince}function z(e){return e.toBringBack.inBin+e.toBringBack.deletedWhileTaken+Z(e)}function Z(e){return e.toBringBack.carriers??0}function L(e){return e.toDelete.comesBackWithParent+Z(e)}function Y(e){return e.cannotUndo.filter(t=>t.reason==="deletedWithCreatedParent"||t.reason==="deletedWithParentOutside").reduce((t,n)=>t+n.count,0)}function X(e){return z(e)-Z(e)+e.toBringBack.withParent}function Ze(e){return e.toGiveBack.records+e.toBringBack.inBin+e.toBringBack.withParent}function me(e){return e.cannotUndo.filter(t=>t.reason==="goneForGood").reduce((t,n)=>t+n.count,0)}function _(e){return e.toRecreate??0}function Xt(e){return me(e)+_(e)}function Zt(e,t){let n=0;for(let r=e;r>0&&t>0;r-=v){let o=Math.min(r,v);n+=p(t*E(o),S)}return n}function et(e,t,n){let r=Xt(e);return{objectApiName:e.objectApiName,live:e.toGiveBack.records+e.touched+N(e)+e.unexplained,deleted:X(e)+L(e)+Y(e),valued:e.toGiveBack.records+e.touched+e.toBringBack.withParent,backTo:X(e)+Z(e)+Y(e)>0||t.undeletable===!1&&r>0,deletes:N(e),scans:r>0&&t.undeletable!==!1,whole:e.schemaDrift!==void 0,outside:n?.get(e.objectApiName)?.outside??{all:e.outside.length,worked:e.outside.length}}}function en(e,t,n,r){let o=et(e,t,n),i=e.toBringBack,a=r?0:L(e);return{...o,live:e.toGiveBack.records+e.touched+e.unexplained+X(e)+_(e)+a,deleted:N(e)+L(e)-a+Y(e),valued:e.toGiveBack.records+e.touched+i.inBin+i.withParent+_(e),backTo:Y(e)>0||t.undeletable===!1&&me(e)>0,scans:me(e)>0&&t.undeletable!==!1,deletes:a}}function tt(e,t,n,r,o,i=0,a,m=0){let u=[],c=[],g=0,y=0,A=0,h=!1,B=0;for(let{objectApiName:s,records:f,fields:w}of e){let k=t.get(s);if(k===void 0){n.has(s)&&u.push({objectApiName:s,live:0,deleted:0});continue}u.push({objectApiName:s,live:k.live,deleted:k.deleted}),g+=Q(k.valued,w),k.backTo&&!k.whole&&y++,k.scans&&c.push(H([$(f)])),k.deletes!==0&&(!k.whole&&!k.backTo&&A++,k.outside.all>0&&(h=!0),B+=Zt(k.deletes,k.outside.worked))}a!==void 0&&(h=!0);let C=a!==void 0?1:0,F=o===void 0?p(e.length+C,I):p(o.first+C,I)+p(o.later,I);return l(d(Tt,b),d(F,j),Ht({objects:e.length,held:e.filter(s=>s.records>0).map(s=>s.objectApiName),moved:u}),d(g,O),d(p(y,I),j),d(A,b),d(h?1:0,j),d(B,b),d(i,b),d(m,b),d(a?.requests??0,O),...c,d(p(p(r,Nt),S),b))}function nt(e){return e.files!==void 0?{requests:e.filesRequests??0}:void 0}function rt(e,t){let n=new Map(e.diff.objects.map(o=>[o.objectApiName,o])),r=new Map;for(let o of e.objects){let i=n.get(o.objectApiName);i&&r.set(o.objectApiName,t(i,o))}return r}function tn(e){let t=new Set(e.diff.objects.flatMap(n=>Object.keys(n.lastChangedBy)));return tt(e.objects,rt(e,(n,r)=>et(n,r,e.relationships)),new Set(e.diff.unread.map(n=>n.objectApiName)),t.size,e.diff.described,e.diff.parentsOutsideRequests??0,nt(e.diff),e.diff.fieldsRequests??0)}function qe(e,t,n=!1){let r=!t&&(n||e.diff.objects.some(i=>L(i)>0)),o=e.diff.described;return tt(e.objects,rt(e,(i,a)=>en(i,a,e.relationships,t)),new Set(e.diff.unread.map(i=>i.objectApiName)),r?1:0,o===void 0?void 0:{first:o.first+o.later,later:0},e.diff.parentsOutsideRequests??0,nt(e.diff),e.diff.fieldsRequests??0)}function nn(e){return l(...e.filter(t=>t>0).map(t=>l(d(1,b),d(E(t),T))))}var rn=new Set(["activateddate","activatedbyid"]);function on(e){return l(...e.filter(({objectApiName:t,records:n})=>n>0&&K[t]!==void 0).map(({records:t})=>l(d(1,b),d(E(t),T))))}function sn(e,t){return e*ht+t*Ke}function Ge(e){return l(d(Je,b),d(Ye(e),O),d(1,T),d(1,O))}function an(e,t,n,r){if(t===0)return R;let o=e==="Order"?n.find(c=>c.toLowerCase()==="status"):void 0,i=o===void 0?[]:[o],a=c=>l(le(c,n),o?le(c,i):R),m=l(Ge(n),o?Ge(i):R),u=d(Q(t,n),O);return l(a(t),r.held?l(u,m):R,r.held&&r.twice?l(a(t),m):R,r.nextPass?l(u,m):R)}function He(e,t,n,r){let o=r?.get(n.objectApiName)?.cascadeChildren;return o!==void 0?o.includes(t):e?.cascadeParents!==void 0&&e.cascadeParents.length===0?!1:e?.readOrder!==void 0&&n.readOrder!==void 0?e.readOrder<n.readOrder:!0}function dn(e){let t=e.diff.objects,n=new Map(e.objects.map(s=>[s.objectApiName,s])),r=s=>ge(e.relationships,s),o=e.diff.undoCannot?e.diff.undoCannot.reduce((s,{objectApiName:f,count:w})=>s.set(f,(s.get(f)??0)+w),new Map):void 0,i=e.diff.withParentDeleted?new Map(e.diff.withParentDeleted.map(({objectApiName:s,count:f})=>[s,f])):void 0,a=s=>{if(i!==void 0)return Math.max(0,N(s)-(i.get(s.objectApiName)??0));if(o===void 0||n.get(s.objectApiName)?.undeletable!==!1)return N(s);let f=(o.get(s.objectApiName)??0)-s.toDelete.comesBackWithParent;return Math.max(0,Math.min(N(s),f))},m=t.filter(s=>a(s)>0),u=t.filter(s=>L(s)>0),c=(s,f)=>f.some(w=>w.objectApiName!==s.objectApiName&&He(n.get(w.objectApiName),w.objectApiName,s,e.relationships)),g=(s,f)=>f.some(w=>{let k=n.get(w.objectApiName);return k!==void 0&&w.objectApiName!==s.objectApiName&&He(s,s.objectApiName,k,e.relationships)}),y=t.reduce((s,f)=>s+E(z(f)),0),A=e.reusesPreview!==!0&&t.some(s=>N(s)>0&&(e.relationships?.get(s.objectApiName)?.outside?.all??s.outside.length)>0),h=t.some(s=>z(s)>0&&r(s.objectApiName).cascades>0),B=l(d(h&&!A?1:0,j),Qt(t.map(s=>({records:z(s),cascades:r(s.objectApiName).cascades,described:e.reusesPreview!==!0}))),...t.map(s=>Kt(s.toBringBack.withParent,r(s.objectApiName).cascades,y,e.reusesPreview!==!0)),...t.map(s=>{let f=n.get(s.objectApiName);return f===void 0?R:an(s.objectApiName,Ze(s),f.fields,{held:c(f,m),twice:g(f,m),nextPass:c(f,u)})}),nn(t.map(_)),on(t.map(s=>({objectApiName:s.objectApiName,records:_(s)}))),fe(t.map(s=>({objectApiName:s.objectApiName,records:a(s),dependents:r(s.objectApiName).dependents})),re)),C=t.flatMap(s=>{let f=n.get(s.objectApiName),w=_(s);return w===0||f===void 0?[]:K[s.objectApiName]===void 0?[]:f.fields.some(k=>rn.has(k.toLowerCase()))?[le(w,f.fields)]:[]}),F=u.length>0||C.length>0?l(fe(u.map(s=>({objectApiName:s.objectApiName,records:L(s),dependents:r(s.objectApiName).dependents})),re),...C,qe(e,!0)):R;return l(d(_t,b),B,un(e.diff.files),qe(e,!1,C.length>0),F)}function cn(e){return e===void 0?0:e.unlink+e.relink+e.updateLinks}function un(e){return e===void 0?R:d(p(e.unlink,ue)+p(e.relink,ue)+p(e.updateLinks,ue),T)}function tr(e){let t=e.diff.objects,n=t.reduce((g,y)=>g+N(y)+y.toDelete.comesBackWithParent,0),r=t.reduce((g,y)=>g+y.toGiveBack.records,0),o=t.reduce((g,y)=>g+X(y),0),i=t.reduce((g,y)=>g+_(y),0),a=n+r+o+i,m=l(d(Ve+vt(e.diff),b),e.reusesPreview===!0?R:tn(e)),u=e.diff.files;if(a===0&&cn(u)===0)return{records:0,apiRequests:m.apiRequests,seconds:Math.ceil(m.seconds),bytes:0};let c=l(m,d(e.automationRequests,O),d(e.deliverabilityRequests??0,b),dn(e));return{records:a,apiRequests:c.apiRequests,seconds:Math.ceil(c.seconds),bytes:sn(t.reduce((g,y)=>g+Ze(y),0),n+o+2*i)+ln(u)}}function ln(e){return e===void 0?0:e.unlink*Fe+e.relink*Ke+e.updateLinks*Fe}var fn=1;function Qe(e,t){let n=R;for(let r=e;r>0;r-=v){let o=Math.min(r,v);n=l(n,d(fn,b),d(Q(o,t),O),d(V([{rows:o}]),T))}return n}function mn(e,t){let n=Math.min(e.givenBackHeld??0,e.givenBack),r=R;for(let o=e.givenBack;o>0;o-=v)r=l(r,d(Q(Math.min(o,v),t),O));return l(Qe(n,t),Qe(e.givenBack-n,t),r)}var pn=2;function gn(e){let t=Math.min(e.givenBackHeld??0,e.givenBack);return d(E(e.givenBack)+E(t)+E(e.givenBack-t),O)}function nr(e){let t=new Map(e.objects.map(c=>[c.objectApiName,c.fields])),n=e.rewound.reduce((c,g)=>c+g.deleted+g.broughtBack+g.givenBack,0),r=d(Ve,b);if(n===0)return{records:0,apiRequests:r.apiRequests,seconds:Math.ceil(r.seconds),bytes:0};let o=e.rewound.some(c=>c.deleted>0),i=e.rewound.some(c=>c.givenBack>0),a=new Set(e.rewound.filter(c=>c.broughtBack>0).map(c=>c.objectApiName)),m=o&&i?l(d(pn,b),...e.rewound.map(gn)):R,u=l(r,d(e.automationRequests,O),m,fe(e.rewound.map(c=>({objectApiName:c.objectApiName,records:c.broughtBack,dependents:ge(e.relationships,c.objectApiName).dependents}))),a.size>0?zt(e.along??[],e.relationships,a):R,Xe(e.rewound.map(c=>c.deleted)),...e.rewound.map(c=>mn(c,t.get(c.objectApiName)??[])));return{records:n,apiRequests:u.apiRequests,seconds:Math.ceil(u.seconds),bytes:0}}var bn={take:{what:"This checkpoint",then:"Take it once the org has requests to spare \u2014 the limit is counted over the last 24 hours \u2014 or pick fewer objects.",done:"No record was read."},rewind:{what:"This rewind",then:"Rewind once the org has requests to spare \u2014 the limit is counted over the last 24 hours \u2014 or rewind fewer of its objects at a time, which sends only theirs (the objects ticked in the preview, or --object on a command line).",done:"No record was read or written."},undo:{what:"This undo",then:"Undo the rewind once the org has requests to spare \u2014 the limit is counted over the last 24 hours \u2014 while the recycle bin still holds what it brings back.",done:"No record was read or written."}},hn=W({FileStorageMB:W({Max:ee(),Remaining:ee()}).loose()}).loose();async function rr(e,t){let n,r;try{n=await e.request({method:"GET",url:"/limits"}),r=await ve({request:()=>Promise.resolve(n)})}catch(a){throw new Error(`${t} did not say how many API requests it has left today: ${P(a)}`)}let o;try{o=await Ne({request:()=>Promise.resolve(n)})}catch(a){o={unread:P(a)}}let i=hn.safeParse(n);return{...r,emails:o,...i.success?{fileStorage:{max:i.data.FileStorageMB.Max,remaining:i.data.FileStorageMB.Remaining}}:{}}}var Rn={deliverability:e=>`to read whether ${e} delivers its emails`};function yn(e,t){if(e===void 0)return"";let n=Object.entries(Rn).flatMap(([r,o])=>{let i=e[r]??0;return i>0&&o?[{requests:i,words:o(t)}]:[]}).map(({requests:r,words:o},i)=>`${r}${i===0?" of them":""} ${o}`);return n.length>0?` (${n.join(", ")})`:""}function or(e,t,n,r){let o=Te(t,n);if(o.verdict!=="exceeds")return;let i=bn[e];return{code:"API_BUDGET",message:`${i.what} takes about ${o.estimate} API requests${yn(o.parts,r)}; ${r} has ${n.remaining} of its ${n.max} left today. ${i.then} ${i.done}`}}var On={rewind:{then:"Free file storage, then rewind again.",done:"Nothing was written."},undo:{then:"Free file storage, then undo the rewind again while the recycle bin still holds them.",done:"Nothing was written."}};function wn(e){let t=e/1048576;return t<1?`${Math.max(1,Math.round(t*10))/10} MB`:`${Math.ceil(t)} MB`}function ir(e,t,n,r){if(n===void 0||t.files===0||t.bytes<=n*1048576)return;let o=On[e];return{code:"FILE_STORAGE",message:`Bringing back ${t.files===1?"1 file":`${t.files} files`} takes ${wn(t.bytes)} of file storage; ${r} has ${n} MB left. ${o.then} ${o.done}`}}export{Sn as a,En as b,Cn as c,An as d,Bn as e,vn as f,Tn as g,Nn as h,_n as i,ie as j,Pn as k,De as l,xn as m,In as n,Me as o,kt as p,xt as q,b as r,Mt as s,T as t,Xn as u,Zn as v,er as w,dn as x,tr as y,nr as z,rr as A,or as B,ir as C};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{b as N,e as k}from"./chunk-O2HDYYUV.mjs";import{l as y}from"./chunk-FQGHL7GR.mjs";var S=class{deps;constructor(t){this.deps=t}async mapFields(t,n,r,i=0,a){let{recordCount:s,fieldRules:f,rows:d}=t;if(s<=0||f.length===0&&!d)return[];let u=f.filter(o=>o.ruleType==="ai_generate"),g=f.filter(o=>o.ruleType==="faker"),R=N(),O=f.filter(o=>o.ruleType!=="ai_generate"&&o.ruleType!=="faker").map(o=>G(o,R)),p=u.length>0?await this.deps.aiGenerator.generate(u,s):[],b=g.length>0?this.deps.fakerFallback.generate(g,s,i):[],m=I(u,p,s),V=m?this.deps.fakerFallback.generate(u.map(q),s,i):[];m&&r?.({fields:C(u,p,s),reason:p.length===0?"no-answer":"short-answer"});let D=[...u,...g],x=this.deps.random??Math.random,_=E(t),F=d?P(f,R,a):void 0,w=[];for(let o=0;o<s;o++){let l={};for(let c of O)l[c.fieldApiName]=L(c,i+o,n,x);p[o]&&Object.assign(l,p[o]);for(let c of m?u:[])(l[c.fieldApiName]===void 0||l[c.fieldApiName]===null)&&(l[c.fieldApiName]=V[o]?.[c.fieldApiName]??null);b[o]&&Object.assign(l,b[o]);for(let c of D)l[c.fieldApiName]=M(l[c.fieldApiName],c.config.maxLength);_&&typeof l[h]=="string"&&(l[T]=this.deps.fakerFallback.dateOf(j.test(l[h])?"pastDate":"futureDate"));let A=d?.[i+o];A&&F&&Object.assign(l,F(A)),w.push(l)}return w}};function P(e,t,n){let r=new Set(e.filter(a=>a.fieldType?.toLowerCase()==="phone").map(a=>a.fieldApiName)),i=new Map(e.flatMap(a=>a.config.maxLength!==void 0?[[a.fieldApiName,a.config.maxLength]]:[]));return a=>{let s=k(a.values,r,t);for(let[f,d]of Object.entries(s))s[f]=M(d,n?.get(f)??i.get(f));return s}}var h="StageName",T="CloseDate",j=/closed/i;function E(e){return e.objectApiName!=="Opportunity"?!1:e.fieldRules.find(n=>n.fieldApiName===T)?.ruleType==="faker"&&e.fieldRules.some(n=>n.fieldApiName===h)}function G(e,t){let n=e.config.picklistValues;if(e.ruleType!=="picklist_random"||!n)return e;let r=new Set(e.fieldType?.toLowerCase()==="phone"?[e.fieldApiName]:[]),i=n.map(a=>{let s=k({[e.fieldApiName]:a},r,t)[e.fieldApiName];return typeof s=="string"?s:a});return{...e,config:{...e.config,picklistValues:i}}}function M(e,t){if(typeof e!="string"||t===void 0||t<=0||e.length<=t)return e;let n=e.slice(0,t);if(/\s/.test(e.charAt(t)))return n.trimEnd();let r=n.search(/\s\S*$/);return r>0?n.slice(0,r).trimEnd():n}function C(e,t,n){return e.filter(r=>Array.from({length:n},(i,a)=>t[a]?.[r.fieldApiName]).some(i=>i==null)).map(r=>r.fieldApiName)}function I(e,t,n){return e.length===0?!1:t.length<n?!0:t.some(r=>e.some(i=>r[i.fieldApiName]===void 0||r[i.fieldApiName]===null))}function q(e){return{fieldApiName:e.fieldApiName,ruleType:"faker",config:{fakerMethod:"sentence"}}}function L(e,t,n,r=Math.random){switch(e.ruleType){case"static":return e.config.staticValue??null;case"random":return $(e,r);case"sequence":return U(e,t);case"picklist_random":return v(e,r);case"reference":return z(e,n,r);case"formula":return e.config.formula??null;case"regex":return Y(e,t);case"from_csv":return null;default:return null}}function $(e,t){let n=e.config.minValue??0,r=e.config.maxValue??1e3;return Math.floor(n+t()*(r-n+1))}function U(e,t){let n=e.config.sequenceStart??1,r=e.config.sequenceStep??1;return`${e.config.sequencePrefix??""}${n+t*r}`}function Y(e,t){let n=e.config.regexPattern;return n?y(n,t):null}function v(e,t){let n=e.config.picklistValues;if(!n||n.length===0)return null;let r=Math.floor(t()*n.length);return n[r]}function z(e,t,n){let r=e.config.referenceObject;if(!r)return null;let i=t.get(r);if(!i||i.length===0)return null;let a=Math.floor(n()*i.length);return i[a]}export{S as a,L as b};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a,b,c,d,e,f,g}from"./chunk-PJ5I73CK.mjs";import"./chunk-6XYKJSGX.mjs";import"./chunk-ZUTYVST5.mjs";import"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-NTOVCTRS.mjs";export{f as STANDARD_PRICEBOOK_MATCHED_NOTE,b as namesAPricebook,d as pricesHeldWithTheirs,e as pricesHeldWithTheirsNote,a as readStandardPricebooks,c as settleSyncPrices,g as withPricesSettled};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a,b}from"./chunk-UCD54V2M.mjs";import"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-NTOVCTRS.mjs";export{a as seedObjectAccess,b as templateTheOrgTakes};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a,b,c,d,e,f,g,h,i,j,k}from"./chunk-XAMBCQPU.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-NTOVCTRS.mjs";export{a as AGENT_CATALOG_API,b as AGENT_CATALOG_FIELDS,c as AGENT_TEST_NAME_FIELD,i as GUARD_TOPIC_NAMES,e as NO_AGENTFORCE_MESSAGE,d as NO_AGENT_MESSAGE,g as agentNamed,k as declaresVariable,h as proposedActions,j as proposedGuardTopic,f as readAgentCatalog};
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
function o(e){return e.split(/\s+/).filter(r=>r.length>0)}var l={en_US:o(`
|
|
8
|
+
Alice Bob Charlie Diana Eve Frank Grace Hank Ivy Jack Kate Leo Mia Noah Olivia
|
|
9
|
+
James Mary Robert Patricia John Jennifer Michael Linda David Elizabeth William Barbara
|
|
10
|
+
Richard Susan Joseph Jessica Thomas Sarah Charles Karen Christopher Lisa Daniel Nancy
|
|
11
|
+
Matthew Betty Anthony Sandra Mark Margaret Donald Ashley Steven Kimberly Andrew Emily
|
|
12
|
+
Paul Donna Joshua Michelle Kenneth Carol Kevin Amanda Brian Melissa George Deborah
|
|
13
|
+
Timothy Stephanie Ronald Dorothy Jason Rebecca Edward Sharon Jeffrey Laura Ryan Cynthia
|
|
14
|
+
Jacob Amy Gary Kathleen Nicholas Angela Eric Shirley Jonathan Brenda Stephen Emma Larry
|
|
15
|
+
Anna Justin Pamela Scott Nicole Brandon Samantha Benjamin Katherine Samuel Christine
|
|
16
|
+
Gregory Helen Alexander Debra Patrick Rachel Carolyn Raymond Janet Maria Dennis
|
|
17
|
+
Catherine Jerry Heather Tyler Aaron Julie Adam Joyce Nathan Victoria Henry Ruth
|
|
18
|
+
Zachary Virginia Douglas Lauren Peter Kelly Kyle Christina Ethan Evelyn Jeremy Judith
|
|
19
|
+
Walter Andrea Christian Hannah Keith Megan Roger Cheryl Terry Jacqueline Austin Martha
|
|
20
|
+
Sean Madison Gerald Teresa Carl Gloria Harold Sara Dylan Janice Arthur Ann Lawrence
|
|
21
|
+
Kathryn Jordan Abigail Jesse Sophia Bryan Frances Billy Jean Bruce Gabriel Judy Joe
|
|
22
|
+
Isabella Logan Julia Alan Juan Amber Albert Denise Willie Danielle Elijah
|
|
23
|
+
Marilyn Wayne Beverly Randy Charlotte Vincent Natalie Mason Theresa Roy Ralph
|
|
24
|
+
Brittany Bobby Doris Russell Kayla Bradley Alexis Philip Lori Eugene Marie Owen Chloe
|
|
25
|
+
`),fr_FR:o(`
|
|
26
|
+
Marie Pierre Jean Sophie Nicolas Camille Julien L\xE9a Thomas Emma Lucas Chlo\xE9 Hugo Manon
|
|
27
|
+
Antoine Louis Jade Gabriel Louise Arthur Alice Rapha\xEBl Lina Jules Rose Adam Anna Paul
|
|
28
|
+
Ambre L\xE9o Juliette Victor In\xE8s Nathan Mila Mathis Zo\xE9 Th\xE9o Lucie Maxime Clara Alexandre
|
|
29
|
+
Sarah Romain Laura Mathieu Pauline Guillaume Marion S\xE9bastien C\xE9line Vincent Isabelle
|
|
30
|
+
Fran\xE7ois Nathalie Laurent Sandrine Olivier Val\xE9rie Christophe St\xE9phanie Philippe
|
|
31
|
+
Catherine Michel Christine Alain Sylvie Patrick Martine \xC9ric Monique Fr\xE9d\xE9ric Fran\xE7oise
|
|
32
|
+
St\xE9phane Anne David V\xE9ronique Beno\xEEt H\xE9l\xE8ne J\xE9r\xF4me Caroline C\xE9dric Aur\xE9lie Damien \xC9milie
|
|
33
|
+
Florian \xC9lodie K\xE9vin M\xE9lanie Quentin Charlotte Bastien Margaux Cl\xE9ment Oc\xE9ane Adrien
|
|
34
|
+
Justine Baptiste Mathilde Benjamin Agathe Simon \xC9lise Valentin No\xE9mie Martin Margot
|
|
35
|
+
Robin H\xE9lo\xEFse Tristan Capucine Corentin Apolline Gaspard Victoire Alexis Jos\xE9phine R\xE9mi
|
|
36
|
+
Constance Yann Ga\xEBlle Lo\xEFc Sol\xE8ne Fabien Morgane J\xE9r\xE9my Audrey Thibault Amandine Arnaud
|
|
37
|
+
Virginie Gr\xE9goire Delphine Xavier Laetitia Bruno Florence Denis Brigitte Gilles Danielle
|
|
38
|
+
Thierry Chantal Yves Josiane Didier Annie Pascal Odile Serge Colette Herv\xE9 Jacqueline
|
|
39
|
+
Ren\xE9 Mireille G\xE9rard Ginette Bernard Simone Claude Yvette Daniel Nicole Jacques
|
|
40
|
+
Paulette Henri Jeanne Andr\xE9 Madeleine Marcel Suzanne Roger Denise Robert Germaine
|
|
41
|
+
Georges Marcelle Lucien Odette Raymond Huguette Maurice Lucienne \xC9mile Ren\xE9e Armand
|
|
42
|
+
Gis\xE8le \xC9tienne Raymonde L\xE9on L\xE9onie F\xE9lix Eug\xE9nie Joseph Albertine No\xE9 B\xE9r\xE9nice Axel
|
|
43
|
+
Tom Lou Nina Tim\xE9o Lisa Math\xE9o Romane Sacha
|
|
44
|
+
`),de_DE:o(`
|
|
45
|
+
Max Anna Lukas Lena Felix Marie Paul Sophia Leon Emma Jonas Mia Elias Hannah Ben Noah
|
|
46
|
+
Emilia Finn Lina Luis Ella Clara Matteo Leni Emil Ida Theo Lea Anton Mila Jakob Frieda
|
|
47
|
+
Moritz Lara Julian Laura Alexander Johanna Niklas Charlotte Tim Amelie Jan Leonie David
|
|
48
|
+
Luisa Fabian Sarah Tobias Julia Florian Katharina Sebastian Lisa Philipp Nina Daniel
|
|
49
|
+
Jana Simon Vanessa Benedikt Franziska Christian Sabine Stefan Andrea Thomas Claudia
|
|
50
|
+
Michael Petra Andreas Susanne Markus Nicole Martin Stefanie Frank Monika J\xFCrgen Birgit
|
|
51
|
+
Uwe Martina Wolfgang Heike Klaus Karin Dieter Ursula Peter Renate Hans Gisela Manfred
|
|
52
|
+
Ingrid Helmut Helga Gerhard Brigitte Werner Elke Rolf Christa Bernd Angelika Rainer
|
|
53
|
+
Gabriele Horst Barbara G\xFCnter Silke Dirk Anja Holger Kerstin Ralf Tanja Jens Melanie
|
|
54
|
+
Sven Daniela Kai Nadine Oliver Sandra Lars Bianca Torsten Christina Matthias Ines
|
|
55
|
+
Carsten Simone Volker Annette Heiko Doris Marco Ute Dennis Sonja Patrick Jutta Marcel
|
|
56
|
+
Karla Robin Greta Malte Mathilda Ole Paula Hannes Marlene Konstantin Pauline Vincent
|
|
57
|
+
Antonia Valentin Romy Johannes Elisa Leonard Isabell Maximilian Magdalena Carl Theresa
|
|
58
|
+
Oskar Helene Fritz Luise Karl Margarete Otto Hedwig Wilhelm Erna Heinrich Gertrud
|
|
59
|
+
Friedrich Irmgard Hermann Hildegard Ludwig Elfriede Kurt Lieselotte Ernst Waltraud
|
|
60
|
+
Walter Edith Rudolf Anneliese Bruno Rosemarie Arno Erika Lothar Marianne Norbert
|
|
61
|
+
Reinhard Gottfried Henriette Jonathan Merle Till Svenja Henrik Wiebke
|
|
62
|
+
`),es_ES:o(`
|
|
63
|
+
Carlos Mar\xEDa Alejandro Carmen Javier Luc\xEDa Miguel Marta Daniel Ana Pablo Elena Diego
|
|
64
|
+
Laura Sergio Antonio Isabel Manuel Pilar Francisco Dolores Jos\xE9 Teresa David Rosa Juan
|
|
65
|
+
Cristina Jes\xFAs Raquel Luis Mercedes \xC1ngel Sara Rafael Paula Fernando Beatriz Jorge Julia
|
|
66
|
+
Alberto Silvia \xC1lvaro Patricia Adri\xE1n Irene Rub\xE9n Nuria \xD3scar Roc\xEDo Iv\xE1n Alba Andr\xE9s
|
|
67
|
+
Andrea Ram\xF3n Claudia Enrique Sof\xEDa Vicente Marina Joaqu\xEDn Natalia Santiago Lorena V\xEDctor
|
|
68
|
+
Eva Mario Inmaculada Hugo Montserrat Jaime \xC1ngela Ignacio Susana Gonzalo Yolanda Marcos
|
|
69
|
+
Alicia Eduardo Concepci\xF3n Guillermo Esther Emilio Victoria Ricardo Rosario Roberto
|
|
70
|
+
Encarnaci\xF3n Tom\xE1s Noelia Salvador Ver\xF3nica Agust\xEDn Lidia Gabriel Miriam Mateo Carolina
|
|
71
|
+
Mart\xEDn Celia Lucas Ainhoa Nicol\xE1s Nerea Samuel Estela H\xE9ctor Gloria Leo Olga Iker
|
|
72
|
+
Vanesa Aitor Amparo Unai Bego\xF1a Asier Leire Xavier Jordi Pau Laia Marc Aina Arnau Clara
|
|
73
|
+
Pol Mireia Bruno Valeria Dar\xEDo Ximena Rodrigo Daniela Gael Carla Thiago Lola Luca Vega
|
|
74
|
+
Izan Candela Marco Abril Alonso Triana Enzo Jimena Eric Alma Aitana Ian Martina
|
|
75
|
+
Sebasti\xE1n Emma Felipe In\xE9s Gregorio Adela Juli\xE1n Rebeca Esteban Lourdes Ernesto
|
|
76
|
+
Milagros Ismael F\xE1tima Germ\xE1n Margarita Lorenzo Josefa Benito Juana Ramiro Francisca
|
|
77
|
+
Arturo Antonia Aurelio Manuela Fidel Gerardo Eulalia Leandro Maite Rosal\xEDa Bernardo
|
|
78
|
+
Cristian Pedro Ra\xFAl El\xEDas Ariadna Joel Leyre Hern\xE1n L\xEDa Sa\xFAl Mara Teo Gema Borja
|
|
79
|
+
Iratxe Ander Naia Oier Amaia Jacobo
|
|
80
|
+
`),ja_JP:o(`
|
|
81
|
+
Taro Hanako Yuki Kenji Sakura Haruto Yui Sota Hina Ren Mei Kaito Aoi Riku Mio Hiroshi
|
|
82
|
+
Akiko Takashi Yoko Satoshi Keiko Kazuo Michiko Makoto Naoko Daisuke Yumi Shota Ayaka
|
|
83
|
+
Kenta Misaki Yusuke Nanami Takumi Haruka Ryota Saki Kazuki Miyu Hayato Rin Yuto Yuna
|
|
84
|
+
Sora Koharu Minato Himari Itsuki Akari Hinata Mitsuki Asahi Tsumugi Yamato Ema Haruki
|
|
85
|
+
Mai Daiki Rika Tsubasa Chihiro Kosuke Erika Tomoya Kaori Naoki Megumi Shun Ayumi Yuya
|
|
86
|
+
Emi Ryo Kana Tatsuya Natsuki Shinji Asuka Hideki Eri Masato Mariko Atsushi Noriko Koji
|
|
87
|
+
Sachiko Hiroki Tomoko Akira Junko Shinichi Kumiko Masaki Reiko Kyoko Kiyoshi Hiromi
|
|
88
|
+
Osamu Yoshiko Tetsuya Mayumi Jun Miho Goro Chie Isamu Fumiko Ichiro Etsuko Jiro Kazuko
|
|
89
|
+
Saburo Masako Shiro Setsuko Taichi Kanako Kohei Momoka Ryusei Nozomi Sho Shiori Yuma Ami
|
|
90
|
+
Ryuji Rina Keita Chika Genki Honoka Kei Sayaka Masaru Yuko Nobuo Hisako Shigeru Teruko
|
|
91
|
+
Susumu Kimiko Tadashi Hatsue Toru Ayano Yasuo Sumire Yoshio Kotone Mamoru Miku Minoru
|
|
92
|
+
Wakana Hajime Yuzuki Noboru Kaede Takeshi Sana Hiroto Riko Kota Rena Sosuke Yuka
|
|
93
|
+
Tomohiro Aya Shoma Kyoka Kaname Fuka Ryunosuke Shizuka Seiji Aiko Takahiro Hitomi
|
|
94
|
+
Kunio Kazumi Haruo Kiyomi Fumio Shinobu Katsuo Tamaki Noriaki Mizuki Keisuke Mana
|
|
95
|
+
Hiroyuki Ryoko Tadao Midori Kenichi Natsumi Daichi Reina Shigeo Yoshie Toshio Masao
|
|
96
|
+
Harue Takao Junichi Sumiko Kengo Tomomi
|
|
97
|
+
`),pt_BR:o(`
|
|
98
|
+
Joao Ana Pedro Maria Lucas Juliana Gabriel Fernanda Rafael Camila Matheus Larissa Bruno
|
|
99
|
+
Beatriz Thiago Gustavo Mariana Felipe Amanda Rodrigo Let\xEDcia Leonardo Bruna Guilherme
|
|
100
|
+
Carolina Eduardo Aline Ricardo Patr\xEDcia Marcelo Vanessa Diego Nat\xE1lia Vin\xEDcius J\xE9ssica
|
|
101
|
+
Andr\xE9 Renata Daniel Gabriela Carlos Isabela Paulo Luana Marcos Bianca F\xE1bio D\xE9bora
|
|
102
|
+
Leandro Tatiana Alexandre Priscila Fernando Raquel Ant\xF4nio Sabrina Luiz Daniela
|
|
103
|
+
Francisco Adriana Jos\xE9 Simone Roberto Cristina S\xE9rgio Sandra J\xFAlio M\xE1rcia Henrique
|
|
104
|
+
Cl\xE1udia Caio Viviane Samuel Elaine Igor Luciana Arthur Alessandra Heitor Val\xE9ria
|
|
105
|
+
Bernardo Helena Davi Alice Miguel Laura Enzo Manuela Murilo Sophia Ot\xE1vio L\xEDvia
|
|
106
|
+
Benjamin Valentina Lorenzo Helo\xEDsa Theo Cec\xEDlia Nicolas Clara Pietro Elo\xE1 Joaquim
|
|
107
|
+
Lorena Bento Isadora Emanuel Yasmin Raul Rebeca Cau\xE3 Agatha Breno Mait\xEA Danilo Melissa
|
|
108
|
+
Kaique Pietra Wesley Stella Wellington Rayssa Anderson Tha\xEDs Everton Kelly Jefferson
|
|
109
|
+
Michele Rog\xE9rio Fabiana Reinaldo Silvana Ronaldo Rosana Edson Regina Cl\xE1udio L\xFAcia
|
|
110
|
+
Wagner S\xF4nia M\xE1rcio Vera Mauro Rita S\xEDlvio Denise Osvaldo Joana Gilberto Teresa Geraldo
|
|
111
|
+
Aparecida Raimundo Francisca Sebasti\xE3o Ant\xF4nia Benedito Ros\xE2ngela Valdir Marta Moacir
|
|
112
|
+
Neusa Nelson Irene Jorge C\xE9lia Renato Iara Augusto Dalva H\xE9lio Zilda Ivan Gl\xF3ria Alberto
|
|
113
|
+
Olga Cristiano Tiago Mirela Rafaela Vit\xF3ria Kau\xE3 Lara Nathan Giovanna Gael Liz Ravi
|
|
114
|
+
Esther Caetano \xCDris Levi Aurora Noah Hugo Catarina Rui In\xE1cio Mariah \xCDcaro Jade Tom\xE1s
|
|
115
|
+
`)},u={en_US:o(`
|
|
116
|
+
Smith Johnson Williams Brown Jones Garcia Miller Davis Rodriguez Martinez Hernandez
|
|
117
|
+
Lopez Gonzalez Wilson Anderson Thomas Taylor Moore Jackson Martin Lee Perez Thompson
|
|
118
|
+
White Harris Sanchez Clark Ramirez Lewis Robinson Walker Young Allen King Wright Scott
|
|
119
|
+
Torres Nguyen Hill Flores Green Adams Nelson Baker Hall Rivera Campbell Mitchell Carter
|
|
120
|
+
Roberts Gomez Phillips Evans Turner Diaz Parker Cruz Edwards Collins Reyes Stewart
|
|
121
|
+
Morris Morales Murphy Cook Rogers Gutierrez Ortiz Morgan Cooper Peterson Bailey Reed
|
|
122
|
+
Kelly Howard Ramos Kim Cox Ward Richardson Watson Brooks Chavez Wood James Bennett Gray
|
|
123
|
+
Mendoza Ruiz Hughes Price Alvarez Castillo Sanders Patel Myers Long Ross Foster Jimenez
|
|
124
|
+
Powell Jenkins Perry Russell Sullivan Bell Coleman Butler Henderson Barnes Gonzales
|
|
125
|
+
Fisher Vasquez Simmons Romero Jordan Patterson Alexander Hamilton Graham Reynolds
|
|
126
|
+
Griffin Wallace Moreno West Cole Hayes Bryant Herrera Gibson Ellis Tran Medina Aguilar
|
|
127
|
+
Stevens Murray Ford Castro Marshall Owens Harrison Fernandez McDonald Woods Washington
|
|
128
|
+
Kennedy Wells Vargas Henry Chen Freeman Webb Tucker Guzman Burns Crawford Olson Simpson
|
|
129
|
+
Porter Hunter Gordon Mendez Silva Shaw Snyder Mason Dixon Munoz Hunt Hicks Holmes Palmer
|
|
130
|
+
Wagner Black Robertson Boyd Rose Stone Salazar Fox Warren Mills Meyer Rice Schmidt Garza
|
|
131
|
+
Daniels Ferguson Nichols Stephens Soto Weaver Ryan Gardner Payne Grant Dunn Kelley
|
|
132
|
+
Spencer Hawkins Arnold Pierce Vazquez Hansen Peters Santos Hart Bradley Knight Elliott
|
|
133
|
+
Cunningham Duncan Armstrong Hudson Carroll Lane Riley Andrews Alvarado Ray Delgado Berry
|
|
134
|
+
Perkins Hoffman Johnston Matthews Pena Richards Contreras Willis Carpenter Lawrence
|
|
135
|
+
`),fr_FR:o(`
|
|
136
|
+
Dupont Martin Bernard Dubois Thomas Robert Richard Petit Durand Leroy Moreau Simon
|
|
137
|
+
Laurent Lefebvre Michel Roux David Bertrand Morel Fournier Girard Bonnet Lambert
|
|
138
|
+
Fontaine Rousseau Vincent Muller Lef\xE8vre Faure Andr\xE9 Mercier Blanc Gu\xE9rin Boyer Garnier
|
|
139
|
+
Chevalier Fran\xE7ois Legrand Gauthier Garcia Perrin Robin Cl\xE9ment Morin Nicolas Henry
|
|
140
|
+
Roussel Mathieu Gautier Masson Marchand Duval Denis Dumont Marie Lemaire No\xEBl Meyer
|
|
141
|
+
Dufour Meunier Brun Blanchard Giraud Joly Rivi\xE8re Lucas Brunet Gaillard Barbier Arnaud
|
|
142
|
+
Martinez G\xE9rard Roche Renard Schmitt Roy Leroux Colin Vidal Caron Picard Roger Fabre
|
|
143
|
+
Aubert Lemoine Renaud Dumas Lacroix Olivier Philippe Bourgeois Pierre Beno\xEEt Rey
|
|
144
|
+
Leclerc Payet Rolland Leclercq Guillaume Lecomte Lopez Jean Dupuy Guillot Hubert Berger
|
|
145
|
+
Carpentier Sanchez Dupuis Moulin Louis Deschamps Huet Vasseur Perez Boucher Fleury
|
|
146
|
+
Royer Klein Jacquet Adam Paris Poirier Marty Aubry Guyot Carr\xE9 Charles Renault
|
|
147
|
+
Charpentier M\xE9nard Maillard Baron Bertin Bailly Herv\xE9 Schneider Fernandez Collet L\xE9ger
|
|
148
|
+
Bouvier Julien Pr\xE9vost Millet Perrot Daniel Cousin Germain Breton Besson Langlois R\xE9my
|
|
149
|
+
Pelletier L\xE9v\xEAque Perrier Leblanc Barr\xE9 Lebrun Marchal Weber Mallet Hamon Boulanger
|
|
150
|
+
Jacob Monnier Michaud Rodriguez Guichard Gillet \xC9tienne Grondin Poulain Tessier
|
|
151
|
+
Chevallier Collin Chauvin Bouchet Gay Lema\xEEtre B\xE9nard Mar\xE9chal Humbert Reynaud Antoine
|
|
152
|
+
Hoarau Perret Barth\xE9lemy Cordier Pichon Lejeune Gilbert Lamy Delaunay Pasquier Carlier
|
|
153
|
+
Laporte Lebon Texier Riviere Granger Vallet Bousquet
|
|
154
|
+
`),de_DE:o(`
|
|
155
|
+
Schmidt Schneider Fischer Weber Meyer Wagner Becker Schulz Hoffmann Koch
|
|
156
|
+
Richter Wolf Bauer M\xFCller Sch\xE4fer Klein Schr\xF6der Neumann Schwarz Zimmermann
|
|
157
|
+
Braun Kr\xFCger Hofmann Hartmann Lange Schmitt Werner Schmitz Krause Meier Lehmann Schmid
|
|
158
|
+
Schulze Maier K\xF6hler Herrmann K\xF6nig Walter Mayer Huber Kaiser Fuchs Peters Lang Scholz
|
|
159
|
+
M\xF6ller Wei\xDF Jung Hahn Schubert Vogel Friedrich Keller G\xFCnther Frank Berger Winkler Roth
|
|
160
|
+
Beck Lorenz Baumann Franke Albrecht Schuster Simon Ludwig B\xF6hm Winter Kraus Martin
|
|
161
|
+
Schumacher Kr\xE4mer Vogt Stein J\xE4ger Otto Sommer Gro\xDF Seidel Heinrich Brandt Haas
|
|
162
|
+
Schreiber Graf Schulte Dietrich Ziegler Kuhn K\xFChn Pohl Engel Horn Busch Bergmann Thomas
|
|
163
|
+
Voigt Sauer Arnold Wolff Pfeiffer Ernst Lindner Franz B\xF6ttcher Beyer Seifert Fritz
|
|
164
|
+
H\xFCbner Kurz Kessler Kraft Jansen Ritter Wenzel Mertens Thiel Gerlach Ulrich Brinkmann
|
|
165
|
+
Naumann B\xF6hme Busse Riedel Kolb Herzog Sch\xFCtz Hesse Wendt Stark Schwab Martens Arndt
|
|
166
|
+
Rieger Schilling Zander Hartung Brandl Kirchner Steiner Marx Hauser Fiedler Reuter
|
|
167
|
+
Kramer Petersen Wirth Heinz Moser Funk Bender Thomsen Dittrich Pieper Kunz Schenk
|
|
168
|
+
Bach Witt Kuhlmann Lehner Weise Benz Paul Sander Vetter Ackermann Engelhardt
|
|
169
|
+
Harms Hagen Unger Seitz Maurer Bayer Reichert Frey Specht Nagel Roder
|
|
170
|
+
Ebert Siebert Bock Hein Kunze Jahn Wegner Otte Kaufmann Hermann Rothe Reinhardt Wiese
|
|
171
|
+
Freitag Pape Schott Dorn Nowak Ott Lohmann Beckmann Fr\xF6hlich R\xF6sler Scherer G\xF6rtz
|
|
172
|
+
`),es_ES:o(`
|
|
173
|
+
Garc\xEDa Rodr\xEDguez Gonz\xE1lez Fern\xE1ndez L\xF3pez Mart\xEDnez S\xE1nchez P\xE9rez G\xF3mez Mart\xEDn Jim\xE9nez
|
|
174
|
+
Ruiz Hern\xE1ndez D\xEDaz Moreno Mu\xF1oz \xC1lvarez Romero Alonso Guti\xE9rrez Navarro Torres
|
|
175
|
+
Dom\xEDnguez V\xE1zquez Ramos Gil Ram\xEDrez Serrano Blanco Molina Morales Su\xE1rez Ortega Delgado
|
|
176
|
+
Castro Ortiz Rubio Mar\xEDn Sanz N\xFA\xF1ez Iglesias Medina Garrido Cort\xE9s Castillo Santos
|
|
177
|
+
Lozano Guerrero Cano Prieto M\xE9ndez Cruz Calvo Gallego Vidal Le\xF3n M\xE1rquez Herrera Pe\xF1a
|
|
178
|
+
Flores Cabrera Campos Vega Fuentes Carrasco Diez Caballero Reyes Nieto Aguilar Pascual
|
|
179
|
+
Santana Herrero Lorenzo Montero Hidalgo Gim\xE9nez Ib\xE1\xF1ez Ferrer Dur\xE1n Santiago Ben\xEDtez
|
|
180
|
+
Mora Vicente Vargas Arias Carmona Crespo Rom\xE1n Pastor Soto S\xE1ez Velasco Moya Soler Parra
|
|
181
|
+
Esteban Bravo Gallardo Rojas Pardo Merino Franco Espinosa Izquierdo Lara Rivas Silva
|
|
182
|
+
Rivera Casado Arroyo Redondo Camacho Rey Vera Otero Luque Gal\xE1n Montes R\xEDos Sierra
|
|
183
|
+
Segura Carrillo Marcos Soriano Mendoza Robles Bernal Vila Valero Palacios Benito
|
|
184
|
+
Pereira Vallejo Varela Exp\xF3sito Andr\xE9s Guerra Bueno Mateo Villar Miranda Contreras
|
|
185
|
+
Mateos Aguilera Hurtado Rosa Ibarra Paredes Heredia Calder\xF3n Escobar Salazar Toledo
|
|
186
|
+
Cuesta Beltr\xE1n Salas Rico Plaza \xC1vila Pacheco Rueda Cordero Quintana Gracia Polo Fajardo
|
|
187
|
+
Manzano Rosales Tapia Barrera Acosta Berm\xFAdez Cabello Valencia Peinado Mesa Duarte
|
|
188
|
+
Maldonado Rinc\xF3n Figueroa Zamora Benavides Cisneros Ochoa Trujillo Salinas Villalobos
|
|
189
|
+
Barrios Escudero Sosa Andrade Guzm\xE1n Osorio Fuster Pons Mir Roca Casas Puig Alarc\xF3n
|
|
190
|
+
`),ja_JP:o(`
|
|
191
|
+
Tanaka Suzuki Takahashi Watanabe Ito Yamamoto Nakamura Kobayashi Kato Yoshida Yamada
|
|
192
|
+
Sasaki Yamaguchi Matsumoto Inoue Sato Kimura Hayashi Shimizu Yamazaki Mori Abe Ikeda
|
|
193
|
+
Hashimoto Yamashita Ishikawa Nakajima Maeda Fujita Ogawa Goto Okada Hasegawa Murakami
|
|
194
|
+
Kondo Ishii Saito Sakamoto Endo Aoki Fujii Nishimura Fukuda Ota Miura Fujiwara Okamoto
|
|
195
|
+
Matsuda Nakagawa Nakano Harada Ono Tamura Takeuchi Kaneko Wada Nakayama Ishida Ueda
|
|
196
|
+
Morita Hara Shibata Sakai Kudo Yokoyama Miyazaki Miyamoto Uchida Takagi Ando Taniguchi
|
|
197
|
+
Ohno Maruyama Imai Takada Fujimoto Takeda Murata Ueno Sugiyama Masuda Sugawara Hirano
|
|
198
|
+
Otsuka Chiba Kubo Matsui Iwasaki Sakurai Kinoshita Noguchi Matsuo Kikuchi Nomura Arai
|
|
199
|
+
Sano Onishi Sugimoto Hamada Ichikawa Furukawa Mizuno Komatsu Shimada Igarashi Kojima
|
|
200
|
+
Takano Taguchi Kitamura Yasuda Nakanishi Kawaguchi Hirata Kawasaki Iida Yoshikawa
|
|
201
|
+
Kubota Sawada Tsuji Seki Yoshimura Iwata Nakazawa Iwamoto Kawakami Sakaguchi Morimoto
|
|
202
|
+
Kuroda Hattori Higuchi Fukushima Nagai Matsuoka Akiyama Kitagawa Okazaki Tsuchiya
|
|
203
|
+
Hoshino Kawamura Takayama Hirai Tani Miyake Kanno Oshima Ochiai Kamata Hamaguchi
|
|
204
|
+
Nishida Nishikawa Okuda Ozawa Matsumura Murayama Shimomura Tsukamoto Takemoto Hino
|
|
205
|
+
Mochizuki Hirose Kumagai Azuma Hagiwara Okubo Nagata Hiraoka Kuwahara Kurosawa Amano
|
|
206
|
+
Oda Sekiguchi Yagi Nishiyama Ichinose Kono Asano Tsuda Minami Tsutsumi Oyama Yano
|
|
207
|
+
Kawabata Doi Mizutani Ozaki Shinohara Wakabayashi Ishihara Nakata Iwai Onodera Saeki
|
|
208
|
+
Kishi Fujisawa Fukui Hosokawa Kagawa Kamiya Nakatani Kanazawa Morikawa Hayakawa
|
|
209
|
+
Nagasawa Shiraishi Takamura
|
|
210
|
+
`),pt_BR:o(`
|
|
211
|
+
Silva Santos Oliveira Souza Rodrigues Ferreira Alves Pereira Lima Gomes Costa Ribeiro
|
|
212
|
+
Martins Carvalho Almeida Lopes Soares Fernandes Vieira Barbosa Rocha Dias Nascimento
|
|
213
|
+
Andrade Moreira Nunes Marques Machado Mendes Freitas Cardoso Ramos Gon\xE7alves Santana
|
|
214
|
+
Teixeira Ara\xFAjo Correia Monteiro Pinto Cavalcanti Batista Moura Campos Castro Cunha
|
|
215
|
+
Duarte Farias Melo Reis Azevedo Barros Borges Brito Cruz Fonseca Leite Macedo Medeiros
|
|
216
|
+
Miranda Morais Nogueira Pires Rezende Sales Siqueira Tavares Viana Xavier Aguiar Amaral
|
|
217
|
+
Antunes Bezerra Braga Bueno Caldeira Coelho Dantas Diniz Esteves Figueiredo Franco
|
|
218
|
+
Guimar\xE3es Jesus Lacerda Leal Magalh\xE3es Maia Matos Meireles Neves Pacheco Paiva Peixoto
|
|
219
|
+
Prado Queiroz Rangel Rios Sampaio Seixas Serra Toledo Valente Vasconcelos Vaz Amorim
|
|
220
|
+
Assis Bastos Cabral Calado Camargo Carneiro Chaves Couto Faria Feitosa Frota Galv\xE3o
|
|
221
|
+
Garcia Godoy Holanda Lins Lobo Luz Maciel Mattos Mesquita Mota Novaes Pimentel Porto
|
|
222
|
+
Ribas Salgado Sobral Telles Torres Uchoa Veloso Vilela Arruda Brand\xE3o Damasceno
|
|
223
|
+
Evangelista Falc\xE3o Fontes Freire Guerra Lustosa Marinho Mour\xE3o Paes Paix\xE3o Rosa
|
|
224
|
+
Saraiva Sim\xF5es Barreto Bittencourt Cordeiro Cerqueira Coutinho Fagundes Gusm\xE3o Leme
|
|
225
|
+
Lessa Mascarenhas Montenegro Muniz N\xF3brega Pedrosa Peres Quaresma Rabelo Rebou\xE7as
|
|
226
|
+
Sena Sodr\xE9 Ten\xF3rio Valadares Varela Vidal Zanetti Resende Moraes Arag\xE3o Bragan\xE7a
|
|
227
|
+
Medina Brum Fraga Goulart Lage Linhares Motta Nobre Pessoa Quintela Sarmento Tom\xE9
|
|
228
|
+
Vargas Werneck Ximenes Zago Carmo Dutra Gouveia Albuquerque
|
|
229
|
+
`)},M={en_US:o(`
|
|
230
|
+
Brantwell Corvane Halbrook Pellridge Quinmore Ashcombe Dunmore Everhart Glenwick
|
|
231
|
+
Harrowgate Ironvale Kestrelby Larkhaven Marlowick Northvale Oakhurst Pinecrest Thornbury
|
|
232
|
+
Upwell Vantor Wexley Yarrowby Zellmore Calloway Ellsworth Fenwick Stonebrook Wrenfield
|
|
233
|
+
Hartwell Bramblecote
|
|
234
|
+
`),fr_FR:o(`
|
|
235
|
+
Vercourt Lambrecq Dufrenois Morvanel Gaudri\xE8re Pelvoisin Varennel Hautemer Roussillac
|
|
236
|
+
Belcombe Chantelys Daumerac Fontclaire Joscaret Kervalec Lormanges Montbriel Navarrel
|
|
237
|
+
Orsenac Pradelis Quercyval Rivecourt Sablonnay Taverlac Valbrune Bressolles Cardinet
|
|
238
|
+
Dorvigny Escaloux Saint-Aubrac
|
|
239
|
+
`),de_DE:o(`
|
|
240
|
+
Kaltenbrunn Elbtaler Brennecke Auenfeld Steinhagel M\xFChlenkamp Hollerbach Rabenstein
|
|
241
|
+
Lindwurm Ostwald Achterberg Dornfeld Fallerstein Grimmelhof Haselbrink Ilmenhorst
|
|
242
|
+
Kornbach Lohwinkel Moorbeck Quellental Rothenwald Sandhagen Tannreuth Wiesengrund
|
|
243
|
+
Zwieselbrock Uhlenbrook Velmering Weidenkamp Brackwede Elsterhain
|
|
244
|
+
`),es_ES:o(`
|
|
245
|
+
Albarr\xE1n Valdeoro Guadalmar Pe\xF1alvar Riberalta Castellmar Arroyuelo Sotomonte
|
|
246
|
+
Puertoalba Encinar Alcorvia Berrocalia Doramonte Escalverde Fontanar Garrobal Hontalba
|
|
247
|
+
Lucenar Navalcruz Olmedal Pradoalto Robledal Torreluz Valcorba Almendrar Cortijuela
|
|
248
|
+
Jaramonte Linarejo Montejara Sauceda
|
|
249
|
+
`),ja_JP:o(`
|
|
250
|
+
Kawabe Midorigawa Hoshizora Kirisame Shirakaba Tsukinowa Hanamizuki Kuroiwa Minatogawa
|
|
251
|
+
Yamabuki Aozora Fuyumori Hikarizaka Isonami Kazahana Momijidani Natsukawa Oboro
|
|
252
|
+
Sakuragi Tobiume Umibe Yukishiro Akanegumo Hotaruno Kiribayashi Shiokaze Tsurugaoka
|
|
253
|
+
Yuugiri Komorebi Asagiri
|
|
254
|
+
`),pt_BR:o(`
|
|
255
|
+
Barrocal Verdejo Ribeirinha Aroeira Morroazul Caju\xEDna Jaboticaba Taquaral Ip\xEAzal
|
|
256
|
+
Pindorama Buritizal Carnaubal Jacarand\xE1 Mangueiral Palmeiral Quixabeira Sapucaia
|
|
257
|
+
Tamboril Umbuzeiro Vereda Cambu\xED Ingazeira Seriguela Ara\xE7\xE1 Goiabal Pitangueira
|
|
258
|
+
Juremal Angical Cajazeira Oiticica
|
|
259
|
+
`)},k={en_US:["{root} Industries","{root} Labs","{root} Systems","{root} Logistics","{root} Foods","{root} Analytics","{root} Partners","{root} Holdings","{root} Manufacturing","{root} Health","{root} Energy","{root} Software"],fr_FR:["Groupe {root}","Ateliers {root}","{root} SAS","Laboratoires {root}","Transports {root}","{root} Conseil","Maison {root}","Cabinet {root}","{root} Industries","Comptoir {root}","Optique {root}","Brasseries {root}"],de_DE:["{root} GmbH","{root} AG","{root} Maschinenbau GmbH","{root} Logistik AG","{root} & Partner","{root} Software GmbH","{root} Bau GmbH","{root} Elektrotechnik","{root} Feinkost","{root} Versicherung AG","{root} Chemie AG","{root} Medizintechnik"],es_ES:["Grupo {root}","Construcciones {root}","Transportes {root}","Bodegas {root}","Seguros {root}","Ingenier\xEDa {root}","Laboratorios {root}","{root} S.L.","Aceites {root}","Textiles {root}","Conservas {root}","Distribuciones {root}"],ja_JP:["{root} Shoji","{root} Denki","{root} Kogyo","{root} Seimitsu","{root} Foods","{root} Logistics","{root} Sangyo","{root} Kensetsu","{root} Shoken","{root} Software","{root} Seiyaku","{root} Tsusho"],pt_BR:["Construtora {root}","Grupo {root}","Transportadora {root}","Latic\xEDnios {root}","Tecelagem {root}","Seguradora {root}","Farm\xE1cias {root}","Metal\xFArgica {root}","{root} Ltda","Caf\xE9 {root}","Bioqu\xEDmica {root}","Distribuidora {root}"]},B={en_US:{names:["Main St","Oak Ave","Elm St","Park Blvd","Cedar Ln","Maple Dr","Pine St","Lake Rd","Hill St","River Rd","Washington Ave","Sunset Blvd"],format:"{n} {street}"},fr_FR:{names:["rue de la R\xE9publique","avenue Jean Jaur\xE8s","rue Victor Hugo","boulevard Pasteur","rue des Lilas","place de la Mairie","rue du Moulin","avenue de la Gare","rue Nationale","chemin des Vignes","rue des \xC9coles","all\xE9e des Tilleuls"],format:"{n} {street}"},de_DE:{names:["Hauptstra\xDFe","Bahnhofstra\xDFe","Gartenweg","Schulstra\xDFe","Lindenallee","Bergstra\xDFe","Kirchplatz","M\xFChlenweg","Dorfstra\xDFe","Am Markt","Rosenstra\xDFe","Waldweg"],format:"{street} {n}"},es_ES:{names:["Calle Mayor","Avenida de la Constituci\xF3n","Calle Real","Plaza de Espa\xF1a","Calle del Sol","Calle Nueva","Avenida del Mar","Calle San Jos\xE9","Camino Viejo","Calle de la Iglesia","Paseo del Prado","Calle Alta"],format:"{street} {n}"},ja_JP:{names:["Chuo","Honcho","Sakaecho","Midorimachi","Asahicho","Motomachi","Saiwaicho","Higashi","Kitamachi","Minamicho","Nishiki","Hanazono"],format:"{m}-{n} {street}"},pt_BR:{names:["Rua das Flores","Avenida Brasil","Rua S\xE3o Jo\xE3o","Rua XV de Novembro","Rua da Paz","Rua Sete de Setembro","Avenida Central","Rua do Com\xE9rcio","Travessa da Lapa","Rua das Palmeiras","Avenida Atl\xE2ntica","Rua Tiradentes"],format:"{street}, {n}"}},A={en_US:["Pacific","Midwest","Atlantic","Southwest","Northeast","Gulf"],fr_FR:["Ouest","Est","Sud","Nord","Centre","Atlantique"],de_DE:["Nord","S\xFCd","West","Ost","Mitte","Rhein"],es_ES:["Norte","Sur","Levante","Centro","Atl\xE1ntico","Mediterr\xE1neo"],ja_JP:["Kanto","Kansai","Kyushu","Tohoku","Chubu","Hokuriku"],pt_BR:["Sul","Nordeste","Norte","Centro-Oeste","Sudeste","Litoral"]};function y(e,r,a=0){let i=M[e],h=k[e],t=i[r%i.length],n=h[Math.floor(r/i.length)%h.length];if(a===0)return n.replace("{root}",t);let m=A[e],s=m[(a-1)%m.length],g=n.replace("{root}",`${t} ${s}`),S=Math.floor((a-1)/m.length);return S===0?g:`${g} ${S+1}`}function d(e){let r=k[e].length*M[e].length;return Array.from({length:r},(a,i)=>y(e,i))}var c={en_US:{firstNames:l.en_US,lastNames:u.en_US,cities:["New York","Los Angeles","Chicago","Houston","Phoenix","Philadelphia","San Antonio","San Diego","Dallas","Austin"],companies:d("en_US"),phoneFormats:["+1 212-555-01XX","+1 213-555-01XX","+1 312-555-01XX","+1 713-555-01XX","+1 602-555-01XX","+1 215-555-01XX","+1 210-555-01XX","+1 619-555-01XX","+1 214-555-01XX","+1 512-555-01XX"],phoneRange:{countryCode:"1",trunkPrefix:"1",nationalNumber:/^(?:[2-9]\d{2})?55501\d{2}$/},zipFormat:"#####",emailDomains:["example.com","example.net","example.org","company.example","mail.test"]},fr_FR:{firstNames:l.fr_FR,lastNames:u.fr_FR,cities:["Paris","Lyon","Marseille","Toulouse","Nice","Bordeaux","Strasbourg","Nantes","Lille","Rennes"],companies:d("fr_FR"),phoneFormats:["+33 1 99 00 XX XX","+33 2 61 91 XX XX","+33 3 53 01 XX XX","+33 4 65 71 XX XX","+33 5 36 49 XX XX","+33 6 39 98 XX XX"],phoneRange:{countryCode:"33",trunkPrefix:"0",nationalNumber:/^(?:19900|26191|35301|46571|53649|63998)\d{4}$/},zipFormat:"#####",emailDomains:["example.com","example.org","example.net","entreprise.example","courriel.test"]},de_DE:{firstNames:l.de_DE,lastNames:u.de_DE,cities:["Berlin","Munich","Hamburg","Frankfurt","Cologne","Stuttgart","Dusseldorf","Leipzig","Dresden","Hannover"],companies:d("de_DE"),phoneFormats:["+49 30 23125 XXX","+49 69 90009 XXX","+49 40 66969 XXX","+49 221 4710 XXX","+49 89 99998 XXX"],phoneRange:{countryCode:"49",trunkPrefix:"0",nationalNumber:/^(?:3023125|6990009|4066969|2214710|8999998)\d{3}$/},zipFormat:"#####",emailDomains:["example.com","example.net","example.org","firma.example","post.test"]},es_ES:{firstNames:l.es_ES,lastNames:u.es_ES,cities:["Madrid","Barcelona","Valencia","Seville","Zaragoza","Malaga","Bilbao","Murcia","Palma","Granada"],companies:d("es_ES"),phoneFormats:["+34 3XX XXX XXX"],phoneRange:{countryCode:"34",trunkPrefix:"",nationalNumber:/^3\d{8}$/},zipFormat:"#####",emailDomains:["example.com","example.org","example.net","empresa.example","correo.test"]},ja_JP:{firstNames:l.ja_JP,lastNames:u.ja_JP,cities:["Tokyo","Osaka","Yokohama","Nagoya","Sapporo","Fukuoka","Kobe","Kyoto","Sendai","Hiroshima"],companies:d("ja_JP"),phoneFormats:["+81 90-0XXX-XXXX"],phoneRange:{countryCode:"81",trunkPrefix:"0",nationalNumber:/^900\d{7}$/},zipFormat:"###-####",emailDomains:["example.com","example.net","example.org","kaisha.example","yubin.test"]},pt_BR:{firstNames:l.pt_BR,lastNames:u.pt_BR,cities:["Sao Paulo","Rio de Janeiro","Brasilia","Salvador","Fortaleza","Belo Horizonte","Manaus","Curitiba","Recife","Porto Alegre"],companies:d("pt_BR"),phoneFormats:["+55 11 90XXX-XXXX","+55 21 90XXX-XXXX","+55 61 90XXX-XXXX","+55 71 90XXX-XXXX","+55 85 90XXX-XXXX","+55 31 90XXX-XXXX","+55 92 90XXX-XXXX","+55 41 90XXX-XXXX","+55 81 90XXX-XXXX","+55 51 90XXX-XXXX"],phoneRange:{countryCode:"55",trunkPrefix:"0",nationalNumber:/^(?:[1-9]{2})?90\d{7}$/},zipFormat:"#####-###",emailDomains:["example.com","example.org","example.net","empresa.example","correio.test"]}},b=["example.com","example.net","example.org"],C=["example","invalid","test"];function X(e){let r=e.toLowerCase().replace(/\.$/,"");return b.some(a=>r===a||r.endsWith(`.${a}`))||C.some(a=>r.endsWith(`.${a}`))}function R(e){let r=e.trim(),a=r.replace(/\D/g,"");return r.startsWith("+")?a:a.startsWith("00")?a.slice(2):void 0}function f(e){let r=R(e);if(r!==void 0)return Object.keys(c).find(a=>r.startsWith(c[a].phoneRange.countryCode))}function F(e,r){let a=R(e),i=e.replace(/\D/g,"");return(r===void 0?Object.values(c):[p(r)]).some(({phoneRange:{countryCode:t,trunkPrefix:n,nationalNumber:m}})=>{let s=i;if(a!==void 0){if(!a.startsWith(t))return!1;s=a.slice(t.length)}let g=n!==""&&s.startsWith(n)?s.slice(n.length):s;return m.test(s)||m.test(g)})}function K(e,r){let a=p(e).phoneFormats;return z(a[r%a.length],Math.floor(r/a.length))}var L={en:"en_US",fr:"fr_FR",de:"de_DE",es:"es_ES",ja:"ja_JP",pt:"pt_BR"};function p(e){if(e in c)return c[e];let r=e.split("_")[0].toLowerCase(),a=L[r];return a?c[a]:c.en_US}function z(e,r){let a=e.split("X").length-1,i=10**a,h=(r%i+i)%i,t=String((h*7919+4027)%i).padStart(a,"0"),n=0;return e.replace(/X/g,()=>t[n++])}function v(e,r){let a=(r+1)*48271%2147483647;return e.replace(/#/g,()=>(a=a*48271%2147483647,String(a%10)))}export{l as a,u as b,B as c,y as d,d as e,c as f,X as g,f as h,F as i,K as j,p as k,v as l};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a as c}from"./chunk-MJVTDA5Q.mjs";import{od as a,pd as b}from"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-NTOVCTRS.mjs";export{c as ConditionalRouter,a as conditionDefect,b as evaluateCondition};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{e as R}from"./chunk-GGD7ON3M.mjs";var h="FIELD_CUSTOM_VALIDATION_EXCEPTION",y="INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST",_="FIELD_FILTER_VALIDATION_EXCEPTION",w="INACTIVE_OWNER_OR_USER",E=/\[(005[A-Za-z0-9]{12}(?:[A-Za-z0-9]{3})?)\]/,F="005",b=["CreatedById","LastModifiedById"];function A(t,e){if(t.statusCode!==w)return;let r=c(e,"OwnerId"),n=r===void 0?void 0:e[r],o=E.exec(t.message)?.[1];if(!(typeof n!="string"||o===void 0))return n.slice(0,15)===o.slice(0,15)?o.slice(0,15):void 0}function D(t,e,r){let n=c(e,"OwnerId");if(n===void 0||n.toLowerCase()===r?.toLowerCase())return;let o=e[n];if(!(typeof o!="string"||!o.startsWith(F)||t.fields.some(s=>s.toLowerCase()!=="ownerid")||!(E.test(t.message)?A(t,e)!==void 0:b.every(s=>c(e,s)===void 0))))return{field:n,refusedBy:"inactive-owner",reason:R(t)}}var S=new Map([[h,"validation-rule"],[y,"restricted-picklist"],[_,"lookup-filter"]]);function T(t){return t!=null&&t!==""}function c(t,e){let r=e.toLowerCase();return Object.keys(t).find(n=>n.toLowerCase()===r&&T(t[n]))}function P(t,e,r,n,o){if(!t||t.length===0)return;let i=new Map;for(let a of t){let s=S.get(a.statusCode);if(!s){let d=o?.inactiveOwner===!0&&a.statusCode===w?D(a,e,r):void 0;if(!d)return;i.has(d.field)||i.set(d.field,d);continue}let u=a.fields.map(d=>c(e,d)).filter(d=>d!==void 0&&d.toLowerCase()!==r?.toLowerCase());if(u.length===0||s==="lookup-filter"&&!u.every(d=>n?.(d)===!0))return;for(let d of u)i.has(d)||i.set(d,{field:d,refusedBy:s,reason:R(a)})}return[...i.values()]}function K(t){return(t??[]).some(e=>e.statusCode===h&&e.fields.length===0)}function B(t,e){let r=new Set(e.map(n=>n.field));return Object.fromEntries(Object.entries(t).filter(([n])=>!r.has(n)))}function j(t,e){let r=t??{rows:0,fields:[]};r.rows+=e.rows;for(let n of e.fields){let o=r.fields.find(i=>i.field===n.field&&i.reason===n.reason);o?o.rows+=n.rows:r.fields.push({...n})}return r}var k={"validation-rule":"a validation rule of the target refused it","restricted-picklist":"a restricted picklist of the target refused its value","lookup-filter":"a lookup filter of the target refused the record it names","inactive-owner":"the target holds the owner it names inactive"};function x(t){return(t?.fields??[]).map(({field:e,refusedBy:r="validation-rule",reason:n,rows:o,replacedWith:i})=>{let a=i===void 0?`written without ${e}`:`written with ${e} set to "${i}"`;return`, ${o} ${a}: ${k[r]}, ${n}`}).join("")}function V(t){let e=`${t.rows} record(s) written again without the fields the target refused them on${x(t)}`;return e.endsWith(".")?e:`${e}.`}var f=class{config;constructor(e){this.config={maxRetries:e?.maxRetries??3,initialDelay:e?.initialDelay??1e3,maxDelay:e?.maxDelay??3e4,backoffMultiplier:e?.backoffMultiplier??2,jitter:e?.jitter??!0}}calculateDelay(e){let r=this.config.initialDelay*Math.pow(this.config.backoffMultiplier,e),n=Math.min(r,this.config.maxDelay);if(!this.config.jitter)return n;let o=n/2;return Math.floor(o+Math.random()*o)}async execute(e){let r,n=0;for(let o=0;o<=this.config.maxRetries;o++)try{return{success:!0,result:await e(),attempts:o+1,totalDelay:n}}catch(i){if(r=i instanceof Error?i:new Error(String(i)),o<this.config.maxRetries){let a=this.calculateDelay(o);n+=a,await new Promise(s=>setTimeout(s,a))}}return{success:!1,error:r,attempts:this.config.maxRetries+1,totalDelay:n}}shouldRetry(e){return e<this.config.maxRetries}getConfig(){return{...this.config}}};var O="UNABLE_TO_LOCK_ROW",l=3,C=2e3,L=200,Z=`Rows the target refuses for a record lock go again on their own, up to ${l} times each: up to ${l} more requests for every ${L} of them, which no estimate made before the write can count.`,X=`rows the target refuses for a record lock go again, up to ${l} times each: up to ${l} more requests for every ${L} of them, not counted above`,I="CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY",v=/\bfirst error: UNABLE_TO_LOCK_ROW\b/,N=/^([A-Z][A-Z0-9_]*):\s*([\s\S]*)$/;function p(t,e){return t===O||t===I&&v.test(e)}function q(t,e){return e&&e.length>0?e.every(r=>p(r.statusCode,r.message)):t.length>0&&t.every(r=>{let n=N.exec(r.trim());return n!==null&&p(n[1],n[2])})}var $=new f({initialDelay:C});function U(t){return $.calculateDelay(t)}function H(t,e){return new Promise(r=>{if(e?.aborted){r();return}let n=()=>{clearTimeout(o),e?.removeEventListener("abort",n),r()},o=setTimeout(n,t);e?.addEventListener("abort",n,{once:!0})})}function W(t){return`sent again ${t===1?"once":`${t} times`}, waiting longer each time: the target still could not lock a record the write needed`}function J(t,e){return`${t} \u2014 ${W(e)}`}async function Q(t){let e=[...t.outcomes],r=new Map,n=e.flatMap((s,u)=>t.locked(s)?[u]:[]),o=n.length;for(let s=0;n.length>0&&s<l&&(await t.wait(U(s)),!t.stopped());s++){let u=n,d=await t.send(u);if(d.slice(0,u.length).forEach((m,g)=>{e[u[g]]=m,r.set(u[g],(r.get(u[g])??0)+1)}),d.length<u.length)break;n=u.filter(m=>t.locked(e[m]))}let i=0,a=0;for(let[s,u]of r)t.written(e[s])?i++:t.locked(e[s])&&(a++,e[s]=t.note(e[s],u));return{outcomes:e,refused:o,sentAgain:r.size,written:i,stillLocked:a,notSentAgain:o-r.size}}function ee(t,e){if(e.refused===0)return;let r=e.sentAgain-e.written-e.stillLocked,n=[`${e.written} written`,...e.stillLocked>0?[`${e.stillLocked} still refused for the lock`]:[],...r>0?[`${r} refused for another reason`]:[],...e.notSentAgain>0?[`${e.notSentAgain} not sent again: the run was stopped`]:[]];return`${e.refused} ${t} refused because the target could not lock a record their write needed (${O}), sent again up to ${l} times, waiting longer each time: ${n.join(", ")}`}export{y as a,_ as b,w as c,A as d,c as e,P as f,K as g,B as h,j as i,x as j,V as k,f as l,Z as m,X as n,q as o,H as p,J as q,Q as r,ee as s};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{b as c,l as p}from"./chunk-7EANH5PY.mjs";var T="SELECT Id, SobjectType, DeveloperName, NamespacePrefix FROM RecordType",d=p({Id:c().min(15),DeveloperName:c().min(1),NamespacePrefix:c().nullable().optional(),SobjectType:c().min(1).optional()}).loose();function y(e){return Array.isArray(e)?e.flatMap(r=>{let a=d.safeParse(r);if(!a.success)return[];let{Id:n,DeveloperName:t,NamespacePrefix:o,SobjectType:i}=a.data;return[{id:n,developerName:t,namespacePrefix:o||null,...i?{sobjectType:i}:{}}]}):[]}function s(e,r){return e?`${e}__${r}`:r}function N(e){return s(e.namespacePrefix,e.developerName)}function g(e){return{namespacePrefix:e.namespacePrefix??null,developerName:e.developerName}}function x(e){return`${e.sobjectType??""}::${e.namespacePrefix??""}::${e.developerName}`}function m(e){let r=e.indexOf("__");return r>0&&r<e.length-2?{namespacePrefix:e.slice(0,r),developerName:e.slice(r+2)}:{namespacePrefix:void 0,developerName:e}}function P(e,r,a){let n=u(m(e),r,a);if(!("ambiguous"in n))return n;let t=n.ambiguous.filter(o=>a(o).namespacePrefix===null);return t.length===1?{found:t[0]}:n}function u(e,r,a){let n=r.filter(t=>{let o=a(t);return o.developerName!==e.developerName?!1:e.namespacePrefix===void 0||o.namespacePrefix===e.namespacePrefix});return n.length===1?{found:n[0]}:n.length>1?{ambiguous:n}:{none:!0}}function f(e){let r=s(e.namespacePrefix,e.developerName);return e.namespacePrefix?`${r}, of package ${e.namespacePrefix}`:e.namespacePrefix===null?`${r}, the org's own`:r}function R(e,r,a,n){return`${r} names ${n.length} ${e} record types in ${a}: `+n.map(f).join(" and ")}export{T as a,y as b,s as c,N as d,g as e,x as f,m as g,P as h,u as i,R as j};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a as S,b as k}from"./chunk-UNDIBZWG.mjs";import{tb as m,ub as z,vb as E,wb as h}from"./chunk-TTFDUKUS.mjs";import{b as c,f as g,i as f,k as l,l as d}from"./chunk-7EANH5PY.mjs";var D=/\bid\.?\s*:\s*([A-Za-z0-9]{18}|[A-Za-z0-9]{15})(?![A-Za-z0-9])/i;function x(e,s){let t;if(/^[A-Za-z0-9]{15}$/.test(e))t=S(e);else if(k(e))t=e;else return;if(!(s&&!t.startsWith(s)))return t}function v(e){return D.exec(e)?.[1]}var R=d({statusCode:c().optional(),errorCode:c().optional(),message:c().optional(),fields:l(f()).optional(),duplicateResult:f().optional()}).loose(),p="UNKNOWN_ERROR";function y(e){if(typeof e=="string")return{statusCode:p,message:e,fields:[]};let s=R.safeParse(e);return s.success?{statusCode:s.data.statusCode??s.data.errorCode??p,message:s.data.message??"",fields:(s.data.fields??[]).filter(t=>typeof t=="string")}:{statusCode:p,message:"Unknown error",fields:[]}}var _=/^([A-Z][A-Z0-9_]*):([\s\S]*):([A-Za-z0-9_]+(?: [A-Za-z0-9_]+)*)? ?--$/;function M(e){let s=e.trim();if(!s.endsWith("--")||s.slice(0,-2).includes("--"))return;let t=_.exec(s);if(t)return{statusCode:t[1],message:t[2],fields:t[3]===void 0?[]:t[3].split(" ")}}var b=d({matchResults:l(d({entityType:c().optional(),matchRecords:l(d({record:d({Id:c().optional(),attributes:d({type:c().optional()}).loose().optional()}).loose().optional()}).loose()).optional()}).loose()).optional()}).loose(),I=d({id:c().nullish(),success:g(),created:g().optional(),errors:l(f()).optional()}).loose();function P(e){return e.statusCode===p?e.message:`${e.statusCode}: ${e.message}`}function A(e){if(typeof e=="string")return e;let s=R.safeParse(e);if(!s.success)return"Unknown error";let t=s.data.statusCode??s.data.errorCode,n=s.data.message??"",r=t?`${t}: ${n}`:n,i=(s.data.fields??[]).filter(a=>typeof a=="string");if(i.length===0)return r;let o=`[${i.join(", ")}]`;return r.includes(o)?r:r?`${r} ${o}`:o}var C=5;function T(e){let s=(e??[]).map(r=>A(r)).filter(r=>r!==""&&r!=="Unknown error");if(s.length===0)return"Unknown insert error";let t=s.slice(0,C).join("; "),n=s.length-C;return n>0?`${t} (and ${n} more)`:t}function O(e,s){let t=R.safeParse(e);if(!t.success)return[];if((t.data.statusCode??t.data.errorCode)!==m)return[];let n=b.safeParse(t.data.duplicateResult);if(!n.success)return[];let r=[];for(let i of n.data.matchResults??[])for(let{record:o}of i.matchRecords??[]){let a=[i.entityType,o?.attributes?.type].filter(u=>typeof u=="string");a.length===0||a.some(u=>u!==s)||o?.Id&&r.push(o.Id)}return r}function w(e,s){let t=I.safeParse(e);if(!t.success){let i="Salesforce returned a save result of an unexpected shape";return{id:"",success:!1,errors:[i],errorDetails:[y(i)]}}let n=t.data.errors??[],r=n.flatMap(i=>O(i,s));return{id:t.data.id??"",success:t.data.success,...t.data.created!==void 0?{created:t.data.created}:{},errors:n.map(A),errorDetails:n.map(y),...r.length>0?{duplicateMatchIds:r}:{}}}function Z(e,s){return(Array.isArray(e)?e:[e]).map(t=>w(t,s))}function L(e,s){if(e.success||e.errors.length===0)return{kind:"none"};let t=o=>h(o)||z(o);if(!e.errors.every(t))return{kind:"none"};let n=new Set,r=!1;for(let o of e.errors){if(!o.includes(E))continue;let a=v(o),u=a?x(a,s):void 0;u?n.add(u):r=!0}let i=e.duplicateMatchIds??[];e.errors.some(o=>o.includes(m))&&i.length===0&&(r=!0);for(let o of i){let a=x(o,s);a?n.add(a):r=!0}return r||n.size!==1?{kind:"unidentified"}:{kind:"linked",id:[...n][0]}}export{x as a,p as b,y as c,M as d,P as e,A as f,T as g,O as h,w as i,Z as j,L as k};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
var p=/[A-Za-z0-9_.$]/,h=/^[A-Za-z][A-Za-z0-9_]*$/;function x(t){let r=[],s=0,e=0;for(;e<t.length;){let n=t[e];if(n==="'"){for(e++;e<t.length&&t[e]!=="'";)e+=t[e]==="\\"?2:1;e++}else if(n==="(")s++,e++;else if(n===")")s=Math.max(0,s-1),e++;else if(p.test(n)){let o=e;for(;e<t.length&&p.test(t[e]);)e++;s===0&&r.push({text:t.slice(o,e),start:o,end:e})}else e++}return r}function C(t,r){let s=t[r].text.toLowerCase(),e=t[r+1]?.text.toLowerCase();return["where","with","having","limit","offset","for"].includes(s)?!0:s==="group"||s==="order"?e==="by":s==="all"?e==="rows":s==="using"?e==="scope":s==="update"&&(e==="tracking"||e==="viewstat")}function A(t,r){return t.split(/('(?:[^'\\]|\\.)*'?)/s).map((s,e)=>e%2===0?r(s):s).join("")}function w(t,r){let s=r?new RegExp(`(?<![\\w.$])${r}\\.`,"gi"):void 0;return A(t,e=>{let n=e.replace(/\s+/g," ");return s?n.replace(s,""):n}).trim()}function b(t,r){let s=r+2;if(!t[s]||C(t,s))return{at:s};let e=t[s].text.toLowerCase()==="as"?s+1:s;return t[e]&&h.test(t[e].text)?{alias:t[e].text,at:e+1}:{at:s}}var W=/^(?:all|(?:readonly|custom|standard|createable|updateable|lookup)_(?:true|false)|type_[a-z]\w*)$/i,S=/^(?:tolabel|convertcurrency|format)\s*\(\s*([A-Za-z][A-Za-z0-9_]*)\s*\)$/i;function _(t){let r=[],s=0,e=0;for(let n=0;n<t.length;n++){let o=t[n];if(o==="'")for(n++;n<t.length&&t[n]!=="'";)n+=t[n]==="\\"?2:1;else o==="("?s++:o===")"?s=Math.max(0,s-1):o===","&&s===0&&(r.push(t.slice(e,n)),e=n+1)}return r.push(t.slice(e)),r.map(n=>n.replace(/\s+/g," ").trim()).filter(n=>n!=="")}function v(t){let r=x(t),s=r.findIndex(i=>i.text.toLowerCase()==="select"),e=r.findIndex((i,f)=>f>s&&i.text.toLowerCase()==="from");if(s<0||e<0)return{every:t.replace(/\s+/g," ").trim().slice(0,80)};let n=t.slice(r[s].end,r[e].start),{alias:o}=b(r,e),c=i=>o&&i.toLowerCase().startsWith(`${o.toLowerCase()}.`)?i.slice(o.length+1):i,l=[];for(let i of _(n).map(c)){if(/^fields\s*\(/i.test(i)||W.test(i))return{every:i};let f=S.exec(i)?.[1]??(h.test(i)?i:void 0);f&&!l.some(d=>d.toLowerCase()===f.toLowerCase())&&l.push(f)}return l.every(i=>i.toLowerCase()==="id")?{every:l[0]??n.replace(/\s+/g," ").trim()}:{list:l}}function y(t){let r=x(t),s=r.findIndex(a=>a.text.toLowerCase()==="from"),e=r[s+1];if(s<0||!e||!h.test(e.text))return{otherClauses:[]};let{alias:n,at:o}=b(r,s),c=[];for(let a=o;a<r.length;a++)C(r,a)&&c.push(a);let l={object:e.text,otherClauses:[]},i=n?r[o-1].end:e.end,f=c.length>0?r[c[0]].start:t.length,d=t.slice(i,f).trim();return d!==""&&l.otherClauses.push(d),c.forEach((a,m)=>{let L=m+1<c.length?r[c[m+1]].start:t.length,g=r[a].text.toLowerCase(),u=t.slice(r[a].start,L).trim();g==="where"?l.where=w(u.slice(5),n):g==="order"?l.orderBy=w(u.replace(/^order\s+by/i,""),n):g==="limit"&&/^limit\s+\d+$/i.test(u)?l.limit=Number(u.slice(5)):l.otherClauses.push(u)}),l}export{v as a,y as b};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{A as y,B as z,C as A,D as B,E as C,F as D,G as E,H as F,I as G,J as H,K as I,L as J,M as K,N as L,O as M,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"./chunk-IFETCRWE.mjs";import"./chunk-TYYOBZMU.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-GGD7ON3M.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-NTOVCTRS.mjs";export{a as CHECKPOINT_DIR_MODE,b as CHECKPOINT_FILE_MODE,p as CHECKPOINT_FILE_PATH,D as CheckpointStoreError,c as DEFAULT_KEEP_DAYS,d as EXPIRY_WARNING_DAYS,I as OrgCheckpointStore,f as PREVIEW_KEEP_MS,e as RECYCLE_BIN_DAYS,L as acquireOrgLock,m as binFileOf,A as binReachSince,G as compressedFieldPrints,h as defaultCheckpointLocksDir,g as defaultCheckpointStoreRoot,x as expiresAtFor,z as expiresSoon,s as exportedFileIn,r as exportedFilesOf,n as filesDocumentsFileOf,o as filesLinksFileOf,j as indexFileOf,y as isExpired,q as isExportedPath,J as latestRewindOf,v as makePrivateDir,w as newFolderId,l as notInBinFileOf,H as openCheckpointStore,K as orgLockFileOf,M as orgLockHolder,i as organizationKey,t as previewDirOf,F as readFieldPrints,k as recreatedFileOf,u as rewindDirOf,B as scratchOrgExpired,C as scratchOrgExpiresSoon,E as storeRefusalWords};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a as A}from"./chunk-5LFSFYFJ.mjs";import{a as z,h as p}from"./chunk-TZE3Y7IQ.mjs";import{b as S}from"./chunk-CA5NAXSU.mjs";import{yb as C}from"./chunk-TTFDUKUS.mjs";import{b as g,f as b,k as w,l as m,o as j}from"./chunk-7EANH5PY.mjs";function H(r,n){return{describe:e=>r.describe(e),describeGlobal:()=>r.describeGlobal(),query:async e=>{let t=await r.query(e);return A(r.limitInfo,n),{totalSize:t.totalSize,records:t.records}},update:(e,t)=>r.sobject(e).update(t,{headers:C()}),destroy:(e,t)=>r.sobject(e).destroy(t)}}var u=200,P=30,I=100,M=4,y=10,q=/^[A-Za-z0-9]{15}(?:[A-Za-z0-9]{3})?$/;function B(r){return typeof r=="string"&&q.test(r)}function k(r,n=u){let e=[];for(let t=0;t<r.length;t+=n)e.push(r.slice(t,t+n).map(s=>`'${z(s)}'`).join(", "));return e}var L=m({success:b(),id:g().nullish(),errors:w(j([m({message:g()}).loose(),g()])).optional()}).loose(),W=m({name:g(),label:g(),queryable:b().optional(),createable:b().optional(),layoutable:b().optional()}).loose(),_=m({sobjects:w(W)}).loose();async function F(r){let n=_.parse(await r.describeGlobal());return new Map(n.sobjects.filter(e=>e.queryable===!0&&e.createable===!0&&e.layoutable===!0).map(e=>[e.name,e.label]))}async function E(r,n){let e=new Array(r.length),t=0,s=async()=>{for(;t<r.length;){let i=t++;e[i]=await r[i]()}};return await Promise.all(Array.from({length:Math.min(n,r.length)},s)),e}async function Q(r,n,e,t){if(e.length===0)return{related:[],uncounted:[]};let s=(n.childRelationships??[]).filter(o=>o.cascadeDelete===!0&&t.has(o.childSObject)),i=s.slice(0,P),a=new Set(s.slice(P).map(o=>t.get(o.childSObject)??o.childSObject)),l=k(e),h=await E(i.map(o=>async()=>{try{let c=p(o.childSObject),d=p(o.field),O=0;for(let T of l)O+=(await r.query(`SELECT COUNT() FROM ${c} WHERE ${d} IN (${T})`)).totalSize;return{relationship:o,records:O}}catch{return{relationship:o,records:null}}}),M),f=new Map;for(let{relationship:o,records:c}of h){let d=t.get(o.childSObject)??o.childSObject;if(c===null){a.add(d);continue}f.set(o.childSObject,(f.get(o.childSObject)??0)+c)}return{related:[...f].filter(([,o])=>o>0).map(([o,c])=>({objectApiName:o,label:t.get(o)??o,records:c})).sort((o,c)=>c.records-o.records||o.label.localeCompare(c.label)),uncounted:[...a].sort()}}async function Z(r,n,e,t,s=1){let i=p(n),a=[...new Set(["Id",...e])].map(p),l=a.join(", "),h=a.length>I?u/4:u,f=await E(k(t,h).map(o=>()=>r.query(`SELECT ${l} FROM ${i} WHERE Id IN (${o})`)),s),R=[];for(let o of f)for(let c of o.records){if(typeof c!="object"||c===null)continue;let d={...c};delete d.attributes,R.push(d)}return R}function x(r,n,e){let t=Array.isArray(r)?r:[r];for(let s of t){let i=L.safeParse(s);if(i.success&&i.data.success){e.done++;continue}if(e.failed++,e.errors.length<y){let a=i.success?i.data.errors?.[0]:void 0,l=typeof a=="string"?a:a?.message??"The org gave no reason.";e.errors.push({objectApiName:n,message:l})}}}async function J(r,n,e,t){let s={done:0,failed:0,errors:[]};for(let i=0;i<e.length&&!t?.aborted;i+=u){let a=e.slice(i,i+u);try{x(await r.update(n,[...a]),n,s)}catch(l){s.failed+=a.length,s.errors.length<y&&s.errors.push({objectApiName:n,message:S(l)})}}return s}async function V(r,n,e,t){let s={done:0,failed:0,errors:[]};for(let i=0;i<e.length&&!t?.aborted;i+=u){let a=e.slice(i,i+u);try{x(await r.destroy(n,[...a]),n,s)}catch(l){s.failed+=a.length,s.errors.length<y&&s.errors.push({objectApiName:n,message:S(l)})}}return s}function D(r,n){return n===0?"success":r===0?"failure":"partial"}function Y(r){let n=r.reduce((t,s)=>t+s.counts.done,0),e=r.reduce((t,s)=>t+s.counts.failed,0);return{status:D(n,e),done:n,failed:e,objects:r.map(t=>({objectApiName:t.objectApiName,done:t.counts.done,failed:t.counts.failed})),errors:r.flatMap(t=>t.counts.errors).slice(0,y)}}export{H as a,u as b,B as c,k as d,F as e,E as f,Q as g,Z as h,J as i,V as j,Y as k};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a,b}from"./chunk-WR4Q363I.mjs";import"./chunk-O2HDYYUV.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-NTOVCTRS.mjs";export{a as ScenarioCompileError,b as compileScenario};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
var _=new Set(["ContentVersion","Attachment","EmailMessage","Task"]),c=new Set(["Account","Contact","Lead"]),a=class{resolve(t,e){let n=t==="auto"?e>200?"bulk":"rest":t,o=n==="bulk"?1e4:200,s=Math.ceil(e/o);return{api:n,batchSize:o,batchCount:s}}};export{_ as a,c as b,a as c};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a,b,c,d,e,f,g}from"./chunk-WU3GLFZO.mjs";import"./chunk-IFETCRWE.mjs";import"./chunk-TYYOBZMU.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-GGD7ON3M.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-NTOVCTRS.mjs";export{c as acquireEnvLock,g as checkpointLockRefusal,a as defaultEnvLocksDir,b as envLockFileOf,d as envLockHolder,f as envLockLine,e as envLockRefusal};
|