PageSourceSearch

https://rxburnplanner.com/assets/arcade-ptcRuOZN.js

js rxburnplanner.com collected 2026-10-05 11:48:03 UTC 8,232 bytes, 1 lines download raw bytes

1import{et as X,f as Z,hq as D,at as U,aB as ee,cx as V,I as te,eA as B,eC as G,eB as O,eZ as ae,hr as re}from"./index-CyVzZKgG.js";import{r as L}from"./arcadeEnvironment-G2YAnjBm.js";import{t as ne}from"./ImmutableArray-BPVd6ESQ.js";let b=null;function ce(e,n,r,o={}){const t=n.elementType,i="value",p=t.type==="array"?[{name:i,type:t.type,elementType:t.elementType}]:t.type==="dictionary"?[{name:i,type:t.type,properties:t.properties}]:[{name:i,type:t.type}];return new ne(e.map(c=>{const a={};return j(a,p,{[i]:c},r,o),a[i]}))}function oe(e,n,r={}){const o=e instanceof ae?new re({source:e.features,geometryType:e.geometryType,fields:e.fields,spatialReference:e.spatialReference}):e;return n.constructFeatureSet(o,r.spatialReference,null,!0,r.lruCache,r.interceptor)}function ie(e,n,r={}){const{spatialReference:o,interceptor:t,lruCache:i}=r;return typeof e=="string"?n.createFeatureSetCollectionFromService(e,o,i,t):n.createFeatureSetCollectionFromMap(e,o,i,t)}function se(e,n,r,o={}){const t=Object.create(null);return j(t,n.properties,e,r,o),new b.Dictionary(t)}function j(e,n,r,o,t={}){const i={};for(const p of Object.keys(r))i[p.toLowerCase()]=r[p];for(const p of n){const c=p.name.toLowerCase();if(t.variablesPreProcessed)e[c]=i[c];else switch(p.type){case"array":{const a=i[c];e[c]=a==null?null:ce(a,p,o,t);break}case"feature":{const a=i[c];e[c]=a==null?null:b.Feature.createFromGraphic(a,t==null?void 0:t.timeZone);break}case"featureSet":{const a=i[c];e[c]=a==null?null:o?oe(a,o,t):null;break}case"featureSetCollection":{const a=i[c];e[c]=a==null?null:o?ie(a,o,t):null;break}case"dictionary":{const a=i[c];e[c]=a==null?null:se(a,p,o,t);break}case"date":{const a=i[c];e[c]=a?a instanceof O?a:t!=null&&t.timeZone?O.dateJSAndZoneToArcadeDate(a,t==null?void 0:t.timeZone):O.dateJSToArcadeDate(a):null;break}case"dateOnly":{const a=i[c];e[c]=a?a instanceof G?a:G.fromReader(a):null;break}case"time":{const a=i[c];e[c]=a?a instanceof B?a:B.fromReader(a):null;break}case"knowledgeGraph":case"geometry":case"boolean":case"text":case"number":e[c]=i[c];break;case"voxel":{const a=i[c];e[c]=a==null?null:new b.Voxel(a,t==null?void 0:t.timeZone);break}case"pixel":{const a=i[c];e[c]=a==null?null:b.Pixel.fromImageryGraphic(a,t==null?void 0:t.timeZone);break}}}}function Y(e,n){for(const r of e)n.push(r),r.type==="dictionary"&&Y(r.properties,n);return n}function P(e,n,r,o,t){const{spatialReference:i,interceptor:p,lruCache:c,console:a,abortSignal:x,timeZone:C,services:v={portal:V.getDefault()},track:u}=r,g={vars:{},spatialReference:i,interceptor:p,timeZone:C,lrucache:c,useAsync:t,services:v,console:a,abortSignal:x,track:u};return n&&j(g.vars,e.variables,n,o,r),g}function w(e,n){switch(n.getArcadeType(e)){case"number":case"text":case"boolean":case"point":case"polygon":case"polyline":case"multipoint":case"extent":return e;case"date":return e.toJSDate();case"time":case"dateOnly":return e.toString();case"feature":{const r=(e.type,e),o="geometry"in r?r.geometry():null,t="readAttributes"in r?r.readAttributes():r.attributes;return new te({geometry:o,attributes:t})}case"dictionary":{const r=e,o=r.attributes,t={};for(const i of Object.keys(o))t[i]=w(r.field(i),n);return t}case"array":return("toArray"in e?e.toArray():e).map(r=>w(r,n))}return e}const M={variables:[{name:"$feature",type:"feature"},{name:"$layer",type:"featureSet"},{name:"$datastore",type:"featureSetCollection"},{name:"$map",type:"featureSetCollection"},{name:"$userInput",type:"geometry"},{name:"$graph",type:"knowledgeGraph"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]},J={variables:[{name:"$feature",type:"feature"},{name:"$aggregatedFeatures",type:"featureSet"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]},z={variables:[{name:"$voxel",type:"voxel"}]},q={variables:[{name:"$pixel",type:"pixel"},{name:"$imageCollectionItem",type:"feature"}]},N=new Map([["aggregate-field",{variables:[{name:"$feature",type:"feature"}]}],["form-constraint",{variables:[{name:"$feature",type:"feature"}]}],["feature-z",{variables:[{name:"$feature",type:"feature"}]}],["field-calculation",{variables:[{name:"$feature",type:"feature"},{name:"$datastore",type:"featureSetCollection"}]}],["form-calculation",{variables:[{name:"$feature",type:"feature"},{name:"$originalFeature",type:"feature"},{name:"$layer",type:"featureSet"},{name:"$featureSet",type:"featureSet"},{name:"$datastore",type:"featureSetCollection"},{name:"$map",type:"featureSetCollection"},{name:"$editContext",type:"dictionary",properties:[{name:"editType",type:"text"}]}]}],["labeling",{variables:[{name:"$feature",type:"feature"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]}],["popup",M],["popup-element",M],["popup-feature-reduction",J],["popup-element-feature-reduction",J],["visualization",{variables:[{name:"$feature",type:"feature"},{name:"$view",type:"dictionary",properties:[{name:"scale",type:"number"},{name:"timeProperties",type:"dictionary",properties:[{name:"currentStart",type:"date"},{name:"currentEnd",type:"date"},{name:"startIncluded",type:"boolean"},{name:"endIncluded",type:"boolean"}]}]}]}],["popup-voxel",z],["popup-element-voxel",z],["popup-imagery",q],["popup-element-imagery",q]]);function de(e){e==="feature-reduction-popup"?(D(U.getLogger("esri.arcade"),'profile name: "feature-reduction-popup"',{replacement:'"popup-feature-reduction"',version:"4.32",warnOnce:!0}),e="popup-feature-reduction"):e==="feature-reduction-popup-element"&&(D(U.getLogger("esri.arcade"),'profile name: "feature-reduction-popup-element"',{replacement:'"popup-element-feature-reduction"',version:"4.32",warnOnce:!0}),e="popup-element-feature-reduction");const n=N.get(e);if(!n){const r=Array.from(N.keys()).map(o=>`'${o}'`).join(", ");throw new Z("createArcadeProfile:invalid-profile-name",`Invalid profile name '${e}'. You must specify one of the following values: ${r}`)}return ee(n)}async function be(e,n,r={}){b||(b=await X());const{arcade:o,arcadeUtils:t,batchExec:{createBatchExecutor:i},aiServices:{BatchTranslationServiceFactory:p,PortalTranslationService:c}}=b,{loadScriptDependencies:a,referencesMember:x,scriptIsAsync:C}=o,v=Y(n.variables,[]).filter(s=>s.type==="featureSet"||s.type==="featureSetCollection").map(s=>L(s.name)),u=o.parseScript(e,v);
1if(!u)throw new Z("arcade:invalid-script","Unable to create SyntaxTree");const g=t.extractFieldNames(u),_=o.scriptTouchesGeometry(u),E=n.variables.map(s=>L(s.name)).filter(s=>x(u,s)),f=C(u,v);await a(u,f,v);const A=o.compileScript(u,{vars:Object.fromEntries(E.map(s=>[s,!0])),useAsync:f}),{lruCache:k,services:I}=r,T=o.featureSetUtils();return{execute:(s,m={})=>{if(f)throw new Z("arcade:invalid-execution-mode","Cannot execute the script in synchronous mode");const l={...I,...m.services},d={lruCache:k,...m,services:l},y=A(P(n,s,d,T,f));return m.rawOutput?y:w(y,t)},executeAsync:async(s,m={})=>{const l={...I,...m.services},d={lruCache:k,...m,services:l},y=await A(P(n,s,d,T,f));return m.rawOutput?y:w(y,t)},executeAsyncBatch:async(s,m,l={})=>{const d=[],y=i(s,async($,S)=>{const K=m($);try{const h={...F,translation:H.create(S)},Q={lruCache:k,...l,services:h},R=await A(P(n,K,Q,T,f)),W=l.rawOutput?R:w(R,t);d.push({id:S.id,result:{status:"fulfilled",value:W}})}catch(h){throw d.push({id:S.id,result:{status:"rejected",reason:h}}),h}},l.maxConcurrency??64,l.abortSignal),F={...I,...l.services},H=new p(y,F.translation??new c(F.portal??V.getDefault(),l.console));return await y.run(),d.sort(({id:$},{id:S})=>$-S).map(({result:$})=>$)},isAsync:f,variablesUsed:E,fieldsUsed:g,geometryUsed:_,syntaxTree:u}}export{be as createArcadeExecutor,de as createArcadeProfile};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.