@arcgis/coding-components 5.1.0-next.131 → 5.1.0-next.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{5BR425MH.js → RITVVIPL.js} +2 -2
- package/dist/cdn/assets/arcade-editor/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/editor-profile/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +4 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as F}from"./64X4ILDM.js";import c from"./6PSJVCHI.js";import b from"./CNVP3YSG.js";import a from"./ZHZFKZA7.js";import{c as ie,d as se}from"./UN7LGHT2.js";import"./HLDSPJ74.js";import"./ER2MKLVA.js";import{d as oe}from"./G2ZAUSTE.js";import{a as te}from"./SB3MM5EM.js";import"./KCU2C44H.js";import"./GS2ISVXJ.js";import"./6G5URSC7.js";import"./MP6Z45SA.js";import"./6C52UOYL.js";import{E as W,F as K,G as X,H as Z,I,K as ee,h as Q,j as l,k as j,l as R,t as H,w as G,x as J,y as Y}from"./REL6OK2I.js";import{a as w}from"./Y3KOWWO5.js";import"./B3UMUBOI.js";import"./CF3TERM3.js";import"./Z5ZZ36DQ.js";import"./LLPQEURF.js";import"./3TTFCHAA.js";export default $arcgis.t(([xe,ne,Se,re,ce,{getDeclaredVoxelMembers:Te,getDeclaredPixelMembers:Ae},Ce,{property:g,subclass:Ie},{G:q,w:ae,x:V},,P])=>{var A=class extends Y{constructor(e){if(super(e),this.it=R,e.type!==G.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===R||e==null)return this._t=void 0,this.it=e;if(e===j)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};A.directiveName="unsafeHTML",A.resultType=1;var C=J(A);var Me=Q`:host(:not([closed])){container-type:size;--calcite-block-border-color: var(--calcite-color-transparent);box-sizing:border-box;.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}@container (max-width: 380px){.hidden-below-380{display:none}}@container (min-width: 380px){.hidden-above-380{display:none}}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:var(--calcite-spacing-sm);display:flex;flex-direction:column;max-height:75cqb;overflow-y:auto;>*{margin-block-end:.5rem}>*:last-child,.terms-label{margin-block-end:0}calcite-text-area{--calcite-text-area-min-height: 4rem}calcite-notice{margin-block-start:0}}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}.feedback-footer{display:flex;justify-content:flex-end;gap:.5rem;width:100%}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}calcite-list-item calcite-button{margin-inline-end:.25rem}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none;flex-direction:column}calcite-text-area{height:auto;overflow:hidden;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.contained-popover-or-tooltip{--calcite-popover-max-size-x: 100%;--calcite-tooltip-max-size-x: 100%}.info-heading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-1);margin:0}.info-heading-row{display:flex;align-items:center;gap:var(--calcite-spacing-sm);flex-wrap:wrap}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.suggestions{display:flex;flex-direction:row;gap:var(--calcite-spacing-xs);flex-wrap:wrap}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=heading] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}.contained{max-width:100%;max-height:100%;max-width:100cqi;max-height:75cqb;overflow-y:auto}.submission-notice{--calcite-notice-border-color: transparent;margin-block:0;width:100%;--calcite-font-size-relative-base: var(--calcite-font-size--2)}.border-block-end{border-block-end:1px solid var(--calcite-color-border-3)}.round-top{border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0}}:host([closed]){display:none}`,$=class extends Error{constructor({message:e,code:t,subCode:i,details:s,source:n}){super(e),this.name="ArcadeAssistantError",this.code=t,this.subCode=i,this.details=s,this.source=n}};function le(a){if(!a)return;let e=a.indexOf('{"error":');if(e!==-1)try{let t=a.slice(e),i=JSON.parse(t);if(i&&typeof i=="object"&&i.error)return i.error}catch{return}}async function Ee(a){let{baseUrl:e,skillId:t,message:i,authToken:s,previousConversationId:n,context:c}=a,p=t?`${e}/skills/${t}/chat`:`${e}/chat`,r=[],o={message:i,context:c};n&&(o.conversation_id=n);let u;try{u=await ne(p,{method:"post",headers:{"Content-Type":"application/json",token:s},body:JSON.stringify(o),responseType:"json"})}catch(b){let f=b,x=f.details?.rawResponse||f.message||String(b),S=le(x);throw S?new $(S):b}let d=u.data;r.push(d);let v=d.conversationId,z=d.inquiryId,k=d.sequenceNumber;async function M(){let b=0,f=100;for(;b<f;){await new Promise(T=>setTimeout(T,1e3));let x=Re(v,k,z),S;try{S=await ne(p,{method:"post",headers:{"Content-Type":"application/json",token:s},body:JSON.stringify(x),responseType:"json"})}catch(T){let L=T,ke=L.details?.rawResponse||L.message||String(T),B=le(ke);throw B?new $(B):T}let y=S.data;if(y.context?.kind==="ArcgisErrorAsContext"&&y.context.error)throw new $({message:y.context.error.message||"ArcGIS Assistant error",code:y.context.error.code,subCode:y.context.error.subCode,details:y.context.error.details,source:"polling-response"});if(r.push(y),k=y.sequenceNumber,b++,!y.hasMore)break}if(b===f)throw new $({message:"Request timed out",code:"TIMEOUT",source:"polling"})}let E=120*1e3;return await Promise.race([M(),new Promise((b,f)=>setTimeout(()=>f(new $({message:"Request timed out",code:"TIMEOUT",source:"hard-timeout"})),E))]),r}function Re(a,e,t){return{conversationId:a,inquiryId:t,ackSequenceNumber:e}}function Ve(a){return a.message.match(/Error in prompt shield/u)?"I'm having trouble with this request. Try again by rephrasing the question.":a.code==="TIMEOUT"?"Request timed out. Try again by re-asking the same question or rephrasing it.":a.message}var qe=({notices:a})=>a.length?l`<div class="border-block-end">${F(a,e=>e.id??e.title,e=>l`<calcite-notice class="submission-notice" .icon=${e.icon} .kind=${e.kind} scale=s open .closable=${e.closable} @calciteNoticeClose=${()=>e.onClose?.()}><div slot=title>${e.title}</div>${e.message&&l`<div slot=message>${e.message}</div>`||""}${e.actionLinkMessage&&e.onAction&&l`<calcite-link slot=link @click=${()=>e.onAction?.()}>${e.actionLinkMessage}</calcite-link>`||""}</calcite-notice>`)}</div>`:null,Pe=a=>{let e=a.value.length,t=72,i=180,s=a.offsetWidth,n=Math.max(1,Math.floor(s/8)),c=Math.ceil(e/n),p=t+(c-2)*24;a.style.setProperty("--calcite-text-area-min-height",`${Math.min(p,i)}px`)},Fe=({promptValidationMessage:a,errorMessage:e,contextTooBig:t,contextReducedNoticeDismissed:i,setContextReducedNoticeDismissed:s,setErrorMessage:n,messages:c})=>{let p=[];if(a&&p.push({id:"prompt-validation",kind:"danger",icon:"exclamation-mark-triangle",title:a,closable:!0}),e&&p.push({id:"assistant-error",kind:"danger",icon:"exclamation-mark-triangle",title:e,closable:!0,onClose:()=>n(void 0)}),t&&!i){let r=c.contextreduced??"Context reduced",o=c.contextreducedmessage??"The editor profile is too large for the assistant. It has been reduced in the assistant in order to ensure a successful request.";p.push({id:"context-reduced",kind:"warning",icon:"exclamation-mark-triangle",title:r,message:o,closable:!0,onClose:()=>s(!0)})}return p};function Ne({messages:a}){return l`<calcite-chip slot=header-actions-end scale=s appearance=outline-fill .label=${a.beta??"Beta"}>${a.beta??"Beta"}</calcite-chip>`}function De({popoverContent:a,messages:e}){return l`<calcite-action icon=information slot=header-actions-end id=legal-disclaimer text></calcite-action><calcite-popover reference-element=legal-disclaimer .label=${e.legaldisclaimer??"Legal disclaimer"} placement=bottom auto-close focus-trap-disabled><div class="contained">${a}</div></calcite-popover>`}function _e({errorMessage:a,slot:e}){return l`<div class="error-display"><calcite-input-message id=error-message status=invalid icon=exclamation-mark-triangle scale=m slot=${e??I}>${a}</calcite-input-message></div>`}function Ue({active:a,setActive:e,messages:t}){return l`<calcite-alert slot=alerts .open=${a} placement=bottom kind=success icon=check-circle-f auto-close @calciteAlertClose=${()=>e(!1)} .label=${t.expressionapplied??"Expression applied"}><div slot=message>${t.expressionapplied??"Expression applied to editor."}</div></calcite-alert>`}function Oe({context:a,messages:e}){return a?l`<div class="gaps">${a.profileId&&l`<calcite-popover auto-close placement=top .label=${(e.profilecontextlabel??"Profile context: {profileId}").replace("{profileId}",a.profileId)} reference-element=profile-context-button class="context-popover contained-popover-or-tooltip"><p>${(e.profilecontextlabel??"Profile context: {profileId}").replace("{profileId}",a.profileId)}</p></calcite-popover><calcite-button round kind=neutral icon-start=map-information id=profile-context-button scale=s></calcite-button>`||""}</div>`:null}function ze({isDisabled:a,isReadOnly:e,setQuestion:t,setIsViewingResult:i,textAreaRef:s,question:n,errorMessage:c,setErrorMessage:p,promptValidationMessage:r,setPromptValidationMessage:o,submitQuestion:u,messages:d,mode:v,assistantRef:z,context:k,contextReducedNoticeDismissed:M,setContextReducedNoticeDismissed:E}){let b=k?.contextTooLarge??!1,f=Fe({promptValidationMessage:r,errorMessage:c,contextTooBig:b,contextReducedNoticeDismissed:M,setContextReducedNoticeDismissed:E,setErrorMessage:p,messages:d});return l`<div class="text-area-wrapper">${qe({notices:f})}<calcite-text-area scale=s resize=vertical .readOnly=${a||e} class=${Z(f.length?"submission-text-area":"submission-text-area round-top")} .placeholder=${d.askaquestion??`Specify the calculation or logic you need in an Arcade expression. (e.g., 'Return "Yes" if value > 10')`} .value=${n} @calciteTextAreaInput=${x=>{Pe(x.target),t(x.target.value)}} ${K(s)}><div class="submission-actions-wrapper" slot=footer-start><div class="submission-actions">${k&&Oe({context:k,messages:d})||""}<div class="align-inline-end gaps"><calcite-button round kind=neutral .hidden=${v!=="refine"} icon-start=arrow-left icon-flip-rtl=both appearance=solid scale=s .disabled=${a} @click=${async()=>{i(!1),t("")}} .label=${d.startover??"Start Over"} class="hidden-above-380" id=small-start-over-button></calcite-button><calcite-tooltip reference-element=small-start-over-button placement=top-start class="hidden-above-380">${d.startover??"Start Over"}</calcite-tooltip><calcite-button round kind=neutral .hidden=${v!=="refine"} icon-start=arrow-left icon-flip-rtl=both appearance=solid .disabled=${a} @click=${async()=>{i(!1),t("")}} class="hidden-below-380" scale=s>${d.startover??"Start Over"}</calcite-button><calcite-button round scale=s icon-end=effects appearance=solid .loading=${a} .disabled=${a} @click=${async()=>{if(p(""),!n){o(d.enteraprompt??"Please enter a prompt");return}o(void 0),await u()}} class="hidden-below-380">${v==="prompt"?d.ask??"Generate":d.refine??"Refine"}</calcite-button><calcite-button round scale=s icon-end=effects appearance=solid .loading=${a} .disabled=${a} id=small-submit-button @click=${async()=>{if(p(""),!n){o(d.enteraprompt??"Please enter a prompt");return}o(void 0),await u()}} class="hidden-above-380" .label=${v==="prompt"?d.ask??"Generate":d.refine??"Refine"}></calcite-button><calcite-tooltip reference-element=small-submit-button placement=top-start class="hidden-above-380">${v==="prompt"?d.ask??"Generate":d.refine??"Refine"}</calcite-tooltip></div></div></div></calcite-text-area></div>`}var Le="https://www.esri.com/en-us/privacy/privacy-statements/privacy-supplement",Be="https://www.esri.com/en-us/privacy/privacy-statements";function Qe({setOpen:a,messages:e,feedback:t,learnMoreUrl:i,setFeedback:s,onSubmit:n}){return t.active?l`<calcite-sheet class="feedback-sheet" .label=${e.feedback??"Feedback"} slot=sheets display-mode=float position=block-end .open=${t.active} @calciteSheetClose=${()=>a(!1)}><calcite-panel .heading=${e.submitfeedback??"Submit feedback to Esri"} scale=s><div class="feedback-content"><calcite-text-area scale=s resize=vertical .value=${t.text} @calciteTextAreaInput=${c=>s({...t,text:c.target.value})} .disabled=${t.submitting} .placeholder=${e.donotincludepersonalinfo??"Do not include personal or sensitive information"} rows=3></calcite-text-area><calcite-label layout=inline scale=s class="terms-label"><calcite-checkbox scale=l .checked=${t.termsAccepted} @calciteCheckboxChange=${c=>{s({...t,termsAccepted:c.target.checked})}} .disabled=${t.submitting}></calcite-checkbox><span>${C((e.agreement??"I agree to the {EsriPrivacyStatement} (and {Supplement}).").replace("{EsriPrivacyStatement}",`<calcite-link href=${Be} target="_blank">${e.esriprivacystatement??"Esri Privacy Statement"}</calcite-link>`).replace("{Supplement}",`<calcite-link href=${Le} target="_blank">${e.supplement??"Supplement"}</calcite-link>`))}</span></calcite-label><calcite-notice scale=s open closable><span slot=message>${C((e.feedbackhelps??"Your feedback will be used to improve Esri products and services. {LearnMore} about how this data is used.").replace("{LearnMore}",`<calcite-link href=${i} target="_blank">${e.learnmore??"Learn more"}</calcite-link>`))}</span></calcite-notice></div><div slot=footer class="feedback-footer"><calcite-button kind=neutral appearance=outline @click=${()=>a(!1)} .disabled=${t.submitting}>${e.cancel??"Cancel"}</calcite-button><calcite-button @click=${n} .disabled=${!t.termsAccepted||t.submitting} .loading=${t.submitting} data-testid=submit-feedback-button>${e.submit??"Submit"}</calcite-button></div></calcite-panel></calcite-sheet>`:null}function de({promptingEnabled:a,messages:e,slot:t,helpTopicUrl:i}){return l`<calcite-block .label=${e.assistantinformation??"Assistant information"} slot=${t??I} expanded class="info-block" scale=s><div class="info-heading-row"><h1 class="info-heading">${e.introducing??"Introducing Arcade Assistant (beta)"}</h1><calcite-chip .label=${e.new??"New"} kind=brand scale=s>${e.new??"New"}</calcite-chip></div>${a?l`<p>${e.capabilities??"The assistant uses artificial intelligence to generate Arcade expressions."}</p><p>${e.keepinmind??"Keep in mind the following:"}<ul><li>${e.beconsise??"Be concise, but also clear in your request"}</li><li>${e.avoidambiguity??"Avoid ambiguity and vagueness"}</li><li>${e.moredetails??"you do not need to use exact field names in your instructions, but more detail is generally better"}</li></ul>${C((e.seedocumentation??"Please see the {documentation} for more information, including limitations and additional resources.").replace("{documentation}",`<calcite-link href=${i} target="_blank">${e.documentation??"documentation"}</calcite-link>`))}</p>`:l`<p>${e.useofassistant??"The assistant uses artificial intelligence to generate Arcade expressions. To enable Arcade Assistant (beta), the following must be true:"}</p><ul><li>${e.enabledinorg??"AI assistants are enabled in the organization settings"}</li><li>${e.enabledbetaapps??"Beta apps and capabilities are not blocked"}</li><li>${e.enabledroleprivilege??"Your role privilege allows you to use AI assistants"}</li></ul>`}</calcite-block>`}function je({messages:a,onProceed:e,onExit:t,helpTopicUrl:i}){return l`<calcite-dialog close-disabled placement=top .heading=${a.welcome??"Welcome to the new assistant experience"} slot=dialogs open width-scale=m id=welcome-dialog><h3 class="unstyled-h3">${a.beforeyougetstarted??"Before you get started be aware:"}</h3><ul><li>${a.maybeincorrect??"AI generated code may occasionally be incorrect or biased. Review carefully."}</li><li>${C((a.pleasereadhelp??"Read the Arcade Assistant (beta) {helpTopic} to get started and learn details on security, privacy and limitations.").replace("{helpTopic}",`<calcite-link href=${i} target="_blank">${a.helptopic??"help topic"}</calcite-link>`))}</li></ul><calcite-button id=welcome-proceed slot=footer-end @click=${e}>${a.proceed??"Proceed"}</calcite-button><calcite-button id=welcome-decline slot=footer-start @click=${t} kind=neutral>${a.exit??"Exit"}</calcite-button></calcite-dialog>`}function He({messages:a,suggestions:e,onSuggestionClick:t}){return l`<calcite-block .heading=${a.promptsuggestions} expanded collapsible id=suggestion-block scale=s><div class="suggestions">${e.map(i=>l`<calcite-button round scale=s appearance=outline-fill kind=neutral .label=${a.promptsuggestion} class="suggestion-button" @click=${()=>t?.(i)}>${i}</calcite-button>`)}</div></calcite-block>`}var pe=200;function ue({hidden:a=!1,expanded:e=!1,messages:t,cards:i,heading:s,collapsible:n=!1,showEffectsIcon:c=!1,onCopyCode:p,standalone:r}){return l`<calcite-block .hidden=${a} id=result-block .heading=${s??t.besteffort??"Here is the assistant's best effort"} .expanded=${e} .collapsible=${n}>${c&&l`<calcite-chip .label=${t.assistantresponses??"Assistant responses"} slot=content-start icon=effects scale=m class="suggestion-chips"></calcite-chip>`||""}<calcite-card-group .label=${t.assistantresponses??"Assistant responses"}>${F(i,o=>o.conversationId,o=>l`<calcite-card><div slot=heading><div class="prior-prompt"><span>${o.priorPrompt.length>pe?`${o.priorPrompt.slice(0,pe)}...`:o.priorPrompt}</span><calcite-action icon=duplicate scale=s slot=actions-end class="copy-prompt-button" text .id=${`copy-prompt-${o.conversationId}-${r?"standalone":"list"}`} @click=${u=>{let d=u.currentTarget;navigator.clipboard.writeText(o.priorPrompt).then(()=>{d.setAttribute("data-copied","true"),setTimeout(()=>d.removeAttribute("data-copied"),1500)})}}></calcite-action><calcite-popover .referenceElement=${`copy-prompt-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-feedback" .label=${t.copiedsuccessfully??"copied successfully"} open trigger-disabled><span>${t.copiedsuccessfully??"copied successfully"}</span></calcite-popover><calcite-tooltip .referenceElement=${`copy-prompt-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-tooltip">${t.copyprompttoclipboard??"Copy prompt to clipboard"}</calcite-tooltip></div>${o.message&&r&&l`<div class="response-error-container">${_e({errorMessage:o.message})}</div>`||""}</div><div><div class="code-response-wrapper"><div class="positioned-code-content"><calcite-chip-group .label=${t.responsecontext??"Response Context"} scale=s>${o.message&&!r&&l`<calcite-tooltip .referenceElement=${`response-chip-${o.conversationId}-error`} placement=top-start>${o.message}</calcite-tooltip><calcite-chip .id=${`response-chip-${o.conversationId}-error`} .label=${t.error??"Error"} scale=s appearance=outline icon=exclamation-mark-triangle-f class="response-error-chip"></calcite-chip>`||""}${Ge({card:o,messages:t})}</calcite-chip-group></div><details class="collapsible-code" open><summary>Code response</summary><arcgis-code-viewer language=arcade round>${o.code}</arcgis-code-viewer></details></div></div><div slot=footer-start class="feedback-actions"><calcite-button class="add-to-editor-button hidden-above-380" @click=${()=>o.onAddToEditor("add")} scale=s icon-start=plus round .label=${t.addtoeditor??"Add to editor"} .id=${`add-to-editor-button-${o.conversationId}-${r?"standalone":"list"}`}></calcite-button><calcite-tooltip class="hidden-above-380" .referenceElement=${`add-to-editor-button-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start>${t.addtoeditor??"Add to editor"}</calcite-tooltip><calcite-button class="add-to-editor-button hidden-below-380" @click=${()=>o.onAddToEditor("add")} scale=s icon-start=plus round>${t.addtoeditor??"Add to editor"}</calcite-button><calcite-button round icon-start=file-code kind=neutral scale=s @click=${()=>o.onAddToEditor("replace")} class="response-secondary-action-button" .id=${`replace-${o.conversationId}-${r?"standalone":"list"}`}></calcite-button><calcite-tooltip .referenceElement=${`replace-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start><span>${t.replaceineditor??"Replace all code in editor"}</span></calcite-tooltip><calcite-button round icon-start=copy-to-clipboard kind=neutral scale=s @click=${u=>{let d=u.currentTarget;p(o.code).then(()=>{d.setAttribute("data-copied","true"),setTimeout(()=>d.removeAttribute("data-copied"),1500)})}} class="response-secondary-action-button" .id=${`copy-response-${o.conversationId}-${r?"standalone":"list"}`}></calcite-button><calcite-popover .referenceElement=${`copy-response-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-feedback" .label=${t.copiedsuccessfully??"copied successfully"} open trigger-disabled><span>${t.copiedsuccessfully??"copied successfully"}</span></calcite-popover><calcite-tooltip .referenceElement=${`copy-response-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-tooltip">${t.copytoclipboard??"Copy code to clipboard"}</calcite-tooltip></div><div slot=footer-end class="feedback-actions"><calcite-action .text=${t.thumbsup??"Thumbs up"} scale=s icon=thumbs-up @click=${o.onThumbsUp} .id=${`thumbs-up-${o.conversationId}-${r?"standalone":"list"}`}></calcite-action><calcite-tooltip .referenceElement=${`thumbs-up-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start><span>${t.helpful??"Helpful"}</span></calcite-tooltip><calcite-action .text=${t.thumbsdown??"Thumbs down"} scale=s icon=thumbs-down @click=${o.onThumbsDown} .id=${`thumbs-down-${o.conversationId}-${r?"standalone":"list"}`}></calcite-action><calcite-tooltip .referenceElement=${`thumbs-down-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start><span>${t.unhelpful??"Unhelpful"}</span></calcite-tooltip></div></calcite-card>`)}</calcite-card-group></calcite-block>`}var Ge=({card:a,messages:e})=>{let t=H(),i=`response-chip-profile-${a.conversationId}-${t}`,s=(e.profilecontextlabel??"Profile context: {profileId}").replace("{profileId}",a.profileId);return l`<calcite-tooltip .referenceElement=${i} placement=top-start class="contained-popover-or-tooltip">${s}</calcite-tooltip><calcite-chip .label=${a.profileId} scale=s appearance=outline icon=map-information id=${i??I}>${a.profileId}</calcite-chip>`},me=a=>a.type==="featureSet";function we(a){return a&&a!=="dataCatalogDatastore"?a:void 0}var N=a=>{if(!ae(a))return[];let e=[];return a.relationships?.forEach(t=>{e.push(t.toJSON())}),e},D=a=>a.length>0?{relationships:a}:{},Je=a=>oe(a).map(e=>({alias:e.alias,name:e.name,type:e.type,...e.domain?{domain:e.domain}:{}})),_=a=>a?{fields:Je(a)}:{fields:[]};async function he(a){let e=await a.loadSource(),t=V(e)&&e.isTable,i=N(e);return{name:a.name,type:"featureSet",isTable:t,..._(e?.fields),...D(i)}}async function $e(a){switch(a.type){case"feature":{let t=await a.loadSource(),i=N(t);return{name:a.name,type:a.type,..._(t?.fields),...D(i)}}case"featureSet":{let t=await a.loadSource(),i=V(t)&&t.isTable;return{name:a.name,type:"featureSet",...i?{isTable:i}:{},..._(t?.fields),...D(N(t))}}case"featureSetCollection":{let t=await a.loadSource(),i=t?.layers.filter(me)??[],s=t?.tables.filter(me)??[],n=await Promise.all(i.map(he)),c=await Promise.all(s.map(he));return{name:a.name,type:"featureSetCollection",layers:n,tables:c}}case"dictionary":{let t=await Promise.all(a.dictionaryVariables.filter(q).map($e));return{name:a.name,type:"dictionary",attributes:t}}case"pixel":{let t=await a.loadSource();if(!t)return{name:a.name,type:"pixel"};let i=await Ae(t);return{name:a.name,type:"pixel",members:i.map(ge)}}case"voxel":{let t=await a.loadSource();if(!t)return{name:a.name,type:"voxel"};let i=await Te(t);return{name:a.name,type:"voxel",members:i.map(ge)}}case"array":let e=we(a.elementType.type);return{name:a.name,type:"array",...e?{elementType:e}:{}};case"number":case"text":case"boolean":case"date":case"knowledgeGraph":case"dateOnly":case"geometry":case"time":return{name:a.name,type:a.type}}}function ge(a){if(a.type==="array"){let e=we(a.elementType.type);return{name:a.name,type:"array",...e?{elementType:e}:{}}}return{name:a.name,type:a.type}}async function Ye(a){return{variables:await Promise.all(a.variables.filter(q).map($e))}}var We=1e5;function Ke(a){let e=new TextEncoder().encode(a).length;return Math.ceil(e/3.5)}function U(a){return Ke(JSON.stringify(a))}function Xe(a){let e=i=>({name:i.name,type:i.type,...i.isTable?{isTable:i.isTable}:{},...i.relationships?{relationships:i.relationships}:{}}),t=i=>{switch(i.type){case"feature":case"featureSet":case"knowledgeGraph":return{name:i.name,type:i.type,..."isTable"in i&&i.isTable?{isTable:i.isTable}:{},..."relationships"in i?{relationships:i.relationships}:{}};case"featureSetCollection":return{name:i.name,type:"featureSetCollection",layers:i.layers.map(e),tables:i.tables.map(e)};case"dictionary":return{name:i.name,type:"dictionary",attributes:i.attributes.map(t)};case"pixel":case"voxel":return{name:i.name,type:i.type};case"array":return{name:i.name,type:"array",...i.elementType?{elementType:i.elementType}:{}};default:return i}};return{variables:a.variables.map(t)}}function Ze(a){let e=a.variables,t=e.length,i=e.find(n=>n.name==="$feature")??e.find(n=>n.type==="feature")??e[0],s=i?[i]:[];return{context:{variables:s},wasReduced:t!==s.length,reducedToVariableName:i?.name}}function et(a){return U(a)>We}var tt=Object.defineProperty,at=Object.getOwnPropertyDescriptor,h=(a,e,t,i)=>{for(var s=i>1?void 0:i?at(e,t):e,n=a.length-1,c;n>=0;n--)(c=a[n])&&(s=(i?c(e,t,s):c(s))||s);return i&&s&&tt(e,t,s),s},m=class extends Ce{constructor(a){super(a),this.viewMode="prompt",this.confirmationActive=!1,this.contextReducedNoticeDismissed=!1,this.splashActive=!0,this.isSubmitting=!1,this.question="",this.history=[],this.feedback={active:!1}}};h([g()],m.prototype,"viewMode",2);h([g()],m.prototype,"confirmationActive",2);h([g()],m.prototype,"contextReducedNoticeDismissed",2);h([g()],m.prototype,"splashActive",2);h([g()],m.prototype,"isSubmitting",2);h([g()],m.prototype,"errorMessage",2);h([g()],m.prototype,"promptValidationMessage",2);h([g()],m.prototype,"question",2);h([g()],m.prototype,"history",2);h([g()],m.prototype,"feedback",2);h([g()],m.prototype,"context",2);m=h([Ie("ArcadeAssistantViewState")],m);var it="arcade_generation",st="ArcadeCodeRequest",be="visualization",fe="ArcadeAssistant",ot=["your_comments","user_evaluation","question","answer","useragent","_source","version","context","extras","conversation_id","privacy_statement"],ve=[],ye=!0,O=class extends X{constructor(){super(...arguments),this.textAreaRef=W(),this.messages=te(),this._feedbackService=void 0,this.viewState=new m,this.handleFeedbackButton=(e,t)=>{this.updateViewState({feedback:{active:!0,value:e,item:t,termsAccepted:!1,text:"",submitting:!1}})},this.handleFeedbackSheetClose=()=>{this.updateViewState({feedback:{active:!1}})},this.handleFeedbackSubmit=async()=>{if(!this.viewState.feedback.active)return;this.updateViewState({feedback:{...this.viewState.feedback,submitting:!0}});let e=await this.ensureFeedbackService();if(!e){this.handleFeedbackSheetClose();return}let t=!1,i;this.viewState.feedback.item.conversationId===this.viewState.history[0]?.conversationId&&this.viewState.viewMode==="result"?(i=this.viewState.context,t=!0):i=this.viewState.feedback.item.contextSnapshot;let s=re.applicationName;!s&&!this.appVersion&&w("warn",this,"esriConfig.applicationName is not set. Consider setting it to help identify the application version in feedback.");let{value:n,text:c,termsAccepted:p,item:{question:r,formattedScript:o,conversationId:u}}=this.viewState.feedback,d={user_evaluation:n,your_comments:c||void 0,question:r??"",answer:this.encodeAnswerForFeedback(o),useragent:navigator.userAgent,_source:fe,version:this.appVersion||s||"NOT_SET",context:i?JSON.stringify({...i,isSnapshot:!t}):"",extras:i?.profileId??"",conversation_id:u??"",privacy_statement:p?"I_agree":""};try{await e.applyEdits({addFeatures:[new ce({attributes:d})]})}catch(v){w("error",this,"Error submitting feedback.",{detail:{error:v}})}this.handleFeedbackSheetClose()},this.handleClose=e=>{this.closed=!0,this.closePanel?.(e)},this.setQuestionState=e=>{this.updateViewState({question:e,promptValidationMessage:void 0})},this.setFeedbackState=e=>{this.updateViewState({feedback:e})},this.onSuggestionClick=e=>{this.textAreaRef.value&&(this.textAreaRef.value.value=e,this.textAreaRef.value.setFocus(),this.setQuestionState(e))},this.helpBase="",this.promptingEnabled=!1,this.closed=!1,this.disableQuestionAnswerLogging=!1}static{this.properties={closePanel:0,insertText:0,helpBase:1,promptingEnabled:5,portalUrl:1,serviceUrl:1,closed:7,editorRef:0,feedbackServiceUrl:1,appVersion:1,diagnostics:0,disableQuestionAnswerLogging:5}}static{this.styles=Me}get disclaimerComment(){return`// ${this.messages.disclaimercomment}
|
|
3
|
-
// ${this.messages.disclaimerpt2??"AI-generated content may be inaccurate. Review before using."}`}get assistantOverviewDocUrl(){return`${this.helpBase??"https://doc.arcgis.com/en/arcgis-online/"}create-maps/understand-arcade-assistant.htm`}get usingTheAssitantDocUrl(){return`${this.helpBase??"https://doc.arcgis.com/en/arcgis-online/"}create-maps/understand-arcade-assistant.htm`}async openPrompt(e){if(this.closed=!1,!this.promptingEnabled)return;e&&this.updateViewState({question:e,viewMode:"prompt"});let t=this.textAreaRef.value;t&&t.setFocus()}async destroy(){}connectedCallback(){super.connectedCallback(),this.updateViewState({history:ve,splashActive:ye})}
|
|
2
|
+
import{a as F}from"./64X4ILDM.js";import c from"./6PSJVCHI.js";import b from"./CNVP3YSG.js";import a from"./ZHZFKZA7.js";import{c as ie,d as se}from"./UN7LGHT2.js";import"./HLDSPJ74.js";import"./ER2MKLVA.js";import{d as oe}from"./G2ZAUSTE.js";import{a as te}from"./SB3MM5EM.js";import"./KCU2C44H.js";import"./GS2ISVXJ.js";import"./6G5URSC7.js";import"./MP6Z45SA.js";import"./6C52UOYL.js";import{E as W,F as K,G as X,H as Z,I,K as ee,h as Q,j as l,k as j,l as R,t as H,w as G,x as J,y as Y}from"./REL6OK2I.js";import{a as w}from"./Y3KOWWO5.js";import"./B3UMUBOI.js";import"./CF3TERM3.js";import"./Z5ZZ36DQ.js";import"./LLPQEURF.js";import"./3TTFCHAA.js";export default $arcgis.t(([xe,ne,Se,re,ce,{getDeclaredVoxelMembers:Te,getDeclaredPixelMembers:Ae},Ce,{property:g,subclass:Ie},{G:P,w:ae,x:V},,q])=>{var A=class extends Y{constructor(e){if(super(e),this.it=R,e.type!==G.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===R||e==null)return this._t=void 0,this.it=e;if(e===j)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};A.directiveName="unsafeHTML",A.resultType=1;var C=J(A);var Me=Q`:host(:not([closed])){container-type:size;--calcite-block-border-color: var(--calcite-color-transparent);box-sizing:border-box;.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}@container (max-width: 380px){.hidden-below-380{display:none}}@container (min-width: 380px){.hidden-above-380{display:none}}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:var(--calcite-spacing-sm);display:flex;flex-direction:column;max-height:75cqb;overflow-y:auto;>*{margin-block-end:.5rem}>*:last-child,.terms-label{margin-block-end:0}calcite-text-area{--calcite-text-area-min-height: 4rem}calcite-notice{margin-block-start:0}}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}.feedback-footer{display:flex;justify-content:flex-end;gap:.5rem;width:100%}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}calcite-list-item calcite-button{margin-inline-end:.25rem}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none;flex-direction:column}calcite-text-area{height:auto;overflow:hidden;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.contained-popover-or-tooltip{--calcite-popover-max-size-x: 100%;--calcite-tooltip-max-size-x: 100%}.info-heading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-1);margin:0}.info-heading-row{display:flex;align-items:center;gap:var(--calcite-spacing-sm);flex-wrap:wrap}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.suggestions{display:flex;flex-direction:row;gap:var(--calcite-spacing-xs);flex-wrap:wrap}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=heading] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}.contained{max-width:100%;max-height:100%;max-width:100cqi;max-height:75cqb;overflow-y:auto}.submission-notice{--calcite-notice-border-color: transparent;margin-block:0;width:100%;--calcite-font-size-relative-base: var(--calcite-font-size--2)}.border-block-end{border-block-end:1px solid var(--calcite-color-border-3)}.round-top{border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0}}:host([closed]){display:none}`,$=class extends Error{constructor({message:e,code:t,subCode:i,details:s,source:n}){super(e),this.name="ArcadeAssistantError",this.code=t,this.subCode=i,this.details=s,this.source=n}};function le(a){if(!a)return;let e=a.indexOf('{"error":');if(e!==-1)try{let t=a.slice(e),i=JSON.parse(t);if(i&&typeof i=="object"&&i.error)return i.error}catch{return}}async function Ee(a){let{baseUrl:e,skillId:t,message:i,authToken:s,previousConversationId:n,context:c}=a,p=t?`${e}/skills/${t}/chat`:`${e}/chat`,r=[],o={message:i,context:c};n&&(o.conversation_id=n);let u;try{u=await ne(p,{method:"post",headers:{"Content-Type":"application/json",token:s},body:JSON.stringify(o),responseType:"json"})}catch(b){let f=b,x=f.details?.rawResponse||f.message||String(b),S=le(x);throw S?new $(S):b}let d=u.data;r.push(d);let v=d.conversationId,z=d.inquiryId,k=d.sequenceNumber;async function M(){let b=0,f=100;for(;b<f;){await new Promise(T=>setTimeout(T,1e3));let x=Re(v,k,z),S;try{S=await ne(p,{method:"post",headers:{"Content-Type":"application/json",token:s},body:JSON.stringify(x),responseType:"json"})}catch(T){let L=T,ke=L.details?.rawResponse||L.message||String(T),B=le(ke);throw B?new $(B):T}let y=S.data;if(y.context?.kind==="ArcgisErrorAsContext"&&y.context.error)throw new $({message:y.context.error.message||"ArcGIS Assistant error",code:y.context.error.code,subCode:y.context.error.subCode,details:y.context.error.details,source:"polling-response"});if(r.push(y),k=y.sequenceNumber,b++,!y.hasMore)break}if(b===f)throw new $({message:"Request timed out",code:"TIMEOUT",source:"polling"})}let E=120*1e3;return await Promise.race([M(),new Promise((b,f)=>setTimeout(()=>f(new $({message:"Request timed out",code:"TIMEOUT",source:"hard-timeout"})),E))]),r}function Re(a,e,t){return{conversationId:a,inquiryId:t,ackSequenceNumber:e}}function Ve(a){return a.message.match(/Error in prompt shield/u)?"I'm having trouble with this request. Try again by rephrasing the question.":a.code==="TIMEOUT"?"Request timed out. Try again by re-asking the same question or rephrasing it.":a.message}var Pe=({notices:a})=>a.length?l`<div class="border-block-end">${F(a,e=>e.id??e.title,e=>l`<calcite-notice class="submission-notice" .icon=${e.icon} .kind=${e.kind} scale=s open .closable=${e.closable} @calciteNoticeClose=${()=>e.onClose?.()}><div slot=title>${e.title}</div>${e.message&&l`<div slot=message>${e.message}</div>`||""}${e.actionLinkMessage&&e.onAction&&l`<calcite-link slot=link @click=${()=>e.onAction?.()}>${e.actionLinkMessage}</calcite-link>`||""}</calcite-notice>`)}</div>`:null,qe=a=>{let e=a.value.length,t=72,i=180,s=a.offsetWidth,n=Math.max(1,Math.floor(s/8)),c=Math.ceil(e/n),p=t+(c-2)*24;a.style.setProperty("--calcite-text-area-min-height",`${Math.min(p,i)}px`)},Fe=({promptValidationMessage:a,errorMessage:e,contextTooBig:t,contextReducedNoticeDismissed:i,setContextReducedNoticeDismissed:s,setErrorMessage:n,messages:c})=>{let p=[];if(a&&p.push({id:"prompt-validation",kind:"danger",icon:"exclamation-mark-triangle",title:a,closable:!0}),e&&p.push({id:"assistant-error",kind:"danger",icon:"exclamation-mark-triangle",title:e,closable:!0,onClose:()=>n(void 0)}),t&&!i){let r=c.contextreduced??"Context reduced",o=c.contextreducedmessage??"The editor profile is too large for the assistant. It has been reduced in the assistant in order to ensure a successful request.";p.push({id:"context-reduced",kind:"warning",icon:"exclamation-mark-triangle",title:r,message:o,closable:!0,onClose:()=>s(!0)})}return p};function Ne({messages:a}){return l`<calcite-chip slot=header-actions-end scale=s appearance=outline-fill .label=${a.beta??"Beta"}>${a.beta??"Beta"}</calcite-chip>`}function De({popoverContent:a,messages:e}){return l`<calcite-action icon=information slot=header-actions-end id=legal-disclaimer text></calcite-action><calcite-popover reference-element=legal-disclaimer .label=${e.legaldisclaimer??"Legal disclaimer"} placement=bottom auto-close focus-trap-disabled><div class="contained">${a}</div></calcite-popover>`}function _e({errorMessage:a,slot:e}){return l`<div class="error-display"><calcite-input-message id=error-message status=invalid icon=exclamation-mark-triangle scale=m slot=${e??I}>${a}</calcite-input-message></div>`}function Ue({active:a,setActive:e,messages:t}){return l`<calcite-alert slot=alerts .open=${a} placement=bottom kind=success icon=check-circle-f auto-close @calciteAlertClose=${()=>e(!1)} .label=${t.expressionapplied??"Expression applied"}><div slot=message>${t.expressionapplied??"Expression applied to editor."}</div></calcite-alert>`}function Oe({context:a,messages:e}){return a?l`<div class="gaps">${a.profileId&&l`<calcite-popover auto-close placement=top .label=${(e.profilecontextlabel??"Profile context: {profileId}").replace("{profileId}",a.profileId)} reference-element=profile-context-button class="context-popover contained-popover-or-tooltip"><p>${(e.profilecontextlabel??"Profile context: {profileId}").replace("{profileId}",a.profileId)}</p></calcite-popover><calcite-button round kind=neutral icon-start=map-information id=profile-context-button scale=s></calcite-button>`||""}</div>`:null}function ze({isDisabled:a,isReadOnly:e,setQuestion:t,setIsViewingResult:i,textAreaRef:s,question:n,errorMessage:c,setErrorMessage:p,promptValidationMessage:r,setPromptValidationMessage:o,submitQuestion:u,messages:d,mode:v,assistantRef:z,context:k,contextReducedNoticeDismissed:M,setContextReducedNoticeDismissed:E}){let b=k?.contextTooLarge??!1,f=Fe({promptValidationMessage:r,errorMessage:c,contextTooBig:b,contextReducedNoticeDismissed:M,setContextReducedNoticeDismissed:E,setErrorMessage:p,messages:d});return l`<div class="text-area-wrapper">${Pe({notices:f})}<calcite-text-area scale=s resize=vertical .readOnly=${a||e} class=${Z(f.length?"submission-text-area":"submission-text-area round-top")} .placeholder=${d.askaquestion??`Specify the calculation or logic you need in an Arcade expression. (e.g., 'Return "Yes" if value > 10')`} .value=${n} @calciteTextAreaInput=${x=>{qe(x.target),t(x.target.value)}} ${K(s)}><div class="submission-actions-wrapper" slot=footer-start><div class="submission-actions">${k&&Oe({context:k,messages:d})||""}<div class="align-inline-end gaps"><calcite-button round kind=neutral .hidden=${v!=="refine"} icon-start=arrow-left icon-flip-rtl=both appearance=solid scale=s .disabled=${a} @click=${async()=>{i(!1),t("")}} .label=${d.startover??"Start Over"} class="hidden-above-380" id=small-start-over-button></calcite-button><calcite-tooltip reference-element=small-start-over-button placement=top-start class="hidden-above-380">${d.startover??"Start Over"}</calcite-tooltip><calcite-button round kind=neutral .hidden=${v!=="refine"} icon-start=arrow-left icon-flip-rtl=both appearance=solid .disabled=${a} @click=${async()=>{i(!1),t("")}} class="hidden-below-380" scale=s>${d.startover??"Start Over"}</calcite-button><calcite-button round scale=s icon-end=effects appearance=solid .loading=${a} .disabled=${a} @click=${async()=>{if(p(""),!n){o(d.enteraprompt??"Please enter a prompt");return}o(void 0),await u()}} class="hidden-below-380">${v==="prompt"?d.ask??"Generate":d.refine??"Refine"}</calcite-button><calcite-button round scale=s icon-end=effects appearance=solid .loading=${a} .disabled=${a} id=small-submit-button @click=${async()=>{if(p(""),!n){o(d.enteraprompt??"Please enter a prompt");return}o(void 0),await u()}} class="hidden-above-380" .label=${v==="prompt"?d.ask??"Generate":d.refine??"Refine"}></calcite-button><calcite-tooltip reference-element=small-submit-button placement=top-start class="hidden-above-380">${v==="prompt"?d.ask??"Generate":d.refine??"Refine"}</calcite-tooltip></div></div></div></calcite-text-area></div>`}var Le="https://www.esri.com/en-us/privacy/privacy-statements/privacy-supplement",Be="https://www.esri.com/en-us/privacy/privacy-statements";function Qe({setOpen:a,messages:e,feedback:t,learnMoreUrl:i,setFeedback:s,onSubmit:n}){return t.active?l`<calcite-sheet class="feedback-sheet" .label=${e.feedback??"Feedback"} slot=sheets display-mode=float position=block-end .open=${t.active} @calciteSheetClose=${()=>a(!1)}><calcite-panel .heading=${e.submitfeedback??"Submit feedback to Esri"} scale=s><div class="feedback-content"><calcite-text-area scale=s resize=vertical .value=${t.text} @calciteTextAreaInput=${c=>s({...t,text:c.target.value})} .disabled=${t.submitting} .placeholder=${e.donotincludepersonalinfo??"Do not include personal or sensitive information"} rows=3></calcite-text-area><calcite-label layout=inline scale=s class="terms-label"><calcite-checkbox scale=l .checked=${t.termsAccepted} @calciteCheckboxChange=${c=>{s({...t,termsAccepted:c.target.checked})}} .disabled=${t.submitting}></calcite-checkbox><span>${C((e.agreement??"I agree to the {EsriPrivacyStatement} (and {Supplement}).").replace("{EsriPrivacyStatement}",`<calcite-link href=${Be} target="_blank">${e.esriprivacystatement??"Esri Privacy Statement"}</calcite-link>`).replace("{Supplement}",`<calcite-link href=${Le} target="_blank">${e.supplement??"Supplement"}</calcite-link>`))}</span></calcite-label><calcite-notice scale=s open closable><span slot=message>${C((e.feedbackhelps??"Your feedback will be used to improve Esri products and services. {LearnMore} about how this data is used.").replace("{LearnMore}",`<calcite-link href=${i} target="_blank">${e.learnmore??"Learn more"}</calcite-link>`))}</span></calcite-notice></div><div slot=footer class="feedback-footer"><calcite-button kind=neutral appearance=outline @click=${()=>a(!1)} .disabled=${t.submitting}>${e.cancel??"Cancel"}</calcite-button><calcite-button @click=${n} .disabled=${!t.termsAccepted||t.submitting} .loading=${t.submitting} data-testid=submit-feedback-button>${e.submit??"Submit"}</calcite-button></div></calcite-panel></calcite-sheet>`:null}function de({promptingEnabled:a,messages:e,slot:t,helpTopicUrl:i}){return l`<calcite-block .label=${e.assistantinformation??"Assistant information"} slot=${t??I} expanded class="info-block" scale=s><div class="info-heading-row"><h1 class="info-heading">${e.introducing??"Introducing Arcade Assistant (beta)"}</h1><calcite-chip .label=${e.new??"New"} kind=brand scale=s>${e.new??"New"}</calcite-chip></div>${a?l`<p>${e.capabilities??"The assistant uses artificial intelligence to generate Arcade expressions."}</p><p>${e.keepinmind??"Keep in mind the following:"}<ul><li>${e.beconsise??"Be concise, but also clear in your request"}</li><li>${e.avoidambiguity??"Avoid ambiguity and vagueness"}</li><li>${e.moredetails??"you do not need to use exact field names in your instructions, but more detail is generally better"}</li></ul>${C((e.seedocumentation??"Please see the {documentation} for more information, including limitations and additional resources.").replace("{documentation}",`<calcite-link href=${i} target="_blank">${e.documentation??"documentation"}</calcite-link>`))}</p>`:l`<p>${e.useofassistant??"The assistant uses artificial intelligence to generate Arcade expressions. To enable Arcade Assistant (beta), the following must be true:"}</p><ul><li>${e.enabledinorg??"AI assistants are enabled in the organization settings"}</li><li>${e.enabledbetaapps??"Beta apps and capabilities are not blocked"}</li><li>${e.enabledroleprivilege??"Your role privilege allows you to use AI assistants"}</li></ul>`}</calcite-block>`}function je({messages:a,onProceed:e,onExit:t,helpTopicUrl:i}){return l`<calcite-dialog close-disabled placement=top .heading=${a.welcome??"Welcome to the new assistant experience"} slot=dialogs open width-scale=m id=welcome-dialog><h3 class="unstyled-h3">${a.beforeyougetstarted??"Before you get started be aware:"}</h3><ul><li>${a.maybeincorrect??"AI generated code may occasionally be incorrect or biased. Review carefully."}</li><li>${C((a.pleasereadhelp??"Read the Arcade Assistant (beta) {helpTopic} to get started and learn details on security, privacy and limitations.").replace("{helpTopic}",`<calcite-link href=${i} target="_blank">${a.helptopic??"help topic"}</calcite-link>`))}</li></ul><calcite-button id=welcome-proceed slot=footer-end @click=${e}>${a.proceed??"Proceed"}</calcite-button><calcite-button id=welcome-decline slot=footer-start @click=${t} kind=neutral>${a.exit??"Exit"}</calcite-button></calcite-dialog>`}function He({messages:a,suggestions:e,onSuggestionClick:t}){return l`<calcite-block .heading=${a.promptsuggestions} expanded collapsible id=suggestion-block scale=s><div class="suggestions">${e.map(i=>l`<calcite-button round scale=s appearance=outline-fill kind=neutral .label=${a.promptsuggestion} class="suggestion-button" @click=${()=>t?.(i)}>${i}</calcite-button>`)}</div></calcite-block>`}var pe=200;function ue({hidden:a=!1,expanded:e=!1,messages:t,cards:i,heading:s,collapsible:n=!1,showEffectsIcon:c=!1,onCopyCode:p,standalone:r}){return l`<calcite-block .hidden=${a} id=result-block .heading=${s??t.besteffort??"Here is the assistant's best effort"} .expanded=${e} .collapsible=${n}>${c&&l`<calcite-chip .label=${t.assistantresponses??"Assistant responses"} slot=content-start icon=effects scale=m class="suggestion-chips"></calcite-chip>`||""}<calcite-card-group .label=${t.assistantresponses??"Assistant responses"}>${F(i,o=>o.conversationId,o=>l`<calcite-card><div slot=heading><div class="prior-prompt"><span>${o.priorPrompt.length>pe?`${o.priorPrompt.slice(0,pe)}...`:o.priorPrompt}</span><calcite-action icon=duplicate scale=s slot=actions-end class="copy-prompt-button" text .id=${`copy-prompt-${o.conversationId}-${r?"standalone":"list"}`} @click=${u=>{let d=u.currentTarget;navigator.clipboard.writeText(o.priorPrompt).then(()=>{d.setAttribute("data-copied","true"),setTimeout(()=>d.removeAttribute("data-copied"),1500)})}}></calcite-action><calcite-popover .referenceElement=${`copy-prompt-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-feedback" .label=${t.copiedsuccessfully??"copied successfully"} open trigger-disabled><span>${t.copiedsuccessfully??"copied successfully"}</span></calcite-popover><calcite-tooltip .referenceElement=${`copy-prompt-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-tooltip">${t.copyprompttoclipboard??"Copy prompt to clipboard"}</calcite-tooltip></div>${o.message&&r&&l`<div class="response-error-container">${_e({errorMessage:o.message})}</div>`||""}</div><div><div class="code-response-wrapper"><div class="positioned-code-content"><calcite-chip-group .label=${t.responsecontext??"Response Context"} scale=s>${o.message&&!r&&l`<calcite-tooltip .referenceElement=${`response-chip-${o.conversationId}-error`} placement=top-start>${o.message}</calcite-tooltip><calcite-chip .id=${`response-chip-${o.conversationId}-error`} .label=${t.error??"Error"} scale=s appearance=outline icon=exclamation-mark-triangle-f class="response-error-chip"></calcite-chip>`||""}${Ge({card:o,messages:t})}</calcite-chip-group></div><details class="collapsible-code" open><summary>Code response</summary><arcgis-code-viewer language=arcade round>${o.code}</arcgis-code-viewer></details></div></div><div slot=footer-start class="feedback-actions"><calcite-button class="add-to-editor-button hidden-above-380" @click=${()=>o.onAddToEditor("add")} scale=s icon-start=plus round .label=${t.addtoeditor??"Add to editor"} .id=${`add-to-editor-button-${o.conversationId}-${r?"standalone":"list"}`}></calcite-button><calcite-tooltip class="hidden-above-380" .referenceElement=${`add-to-editor-button-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start>${t.addtoeditor??"Add to editor"}</calcite-tooltip><calcite-button class="add-to-editor-button hidden-below-380" @click=${()=>o.onAddToEditor("add")} scale=s icon-start=plus round>${t.addtoeditor??"Add to editor"}</calcite-button><calcite-button round icon-start=file-code kind=neutral scale=s @click=${()=>o.onAddToEditor("replace")} class="response-secondary-action-button" .id=${`replace-${o.conversationId}-${r?"standalone":"list"}`}></calcite-button><calcite-tooltip .referenceElement=${`replace-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start><span>${t.replaceineditor??"Replace all code in editor"}</span></calcite-tooltip><calcite-button round icon-start=copy-to-clipboard kind=neutral scale=s @click=${u=>{let d=u.currentTarget;p(o.code).then(()=>{d.setAttribute("data-copied","true"),setTimeout(()=>d.removeAttribute("data-copied"),1500)})}} class="response-secondary-action-button" .id=${`copy-response-${o.conversationId}-${r?"standalone":"list"}`}></calcite-button><calcite-popover .referenceElement=${`copy-response-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-feedback" .label=${t.copiedsuccessfully??"copied successfully"} open trigger-disabled><span>${t.copiedsuccessfully??"copied successfully"}</span></calcite-popover><calcite-tooltip .referenceElement=${`copy-response-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start class="copy-tooltip">${t.copytoclipboard??"Copy code to clipboard"}</calcite-tooltip></div><div slot=footer-end class="feedback-actions"><calcite-action .text=${t.thumbsup??"Thumbs up"} scale=s icon=thumbs-up @click=${o.onThumbsUp} .id=${`thumbs-up-${o.conversationId}-${r?"standalone":"list"}`}></calcite-action><calcite-tooltip .referenceElement=${`thumbs-up-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start><span>${t.helpful??"Helpful"}</span></calcite-tooltip><calcite-action .text=${t.thumbsdown??"Thumbs down"} scale=s icon=thumbs-down @click=${o.onThumbsDown} .id=${`thumbs-down-${o.conversationId}-${r?"standalone":"list"}`}></calcite-action><calcite-tooltip .referenceElement=${`thumbs-down-${o.conversationId}-${r?"standalone":"list"}`} placement=top-start><span>${t.unhelpful??"Unhelpful"}</span></calcite-tooltip></div></calcite-card>`)}</calcite-card-group></calcite-block>`}var Ge=({card:a,messages:e})=>{let t=H(),i=`response-chip-profile-${a.conversationId}-${t}`,s=(e.profilecontextlabel??"Profile context: {profileId}").replace("{profileId}",a.profileId);return l`<calcite-tooltip .referenceElement=${i} placement=top-start class="contained-popover-or-tooltip">${s}</calcite-tooltip><calcite-chip .label=${a.profileId} scale=s appearance=outline icon=map-information id=${i??I}>${a.profileId}</calcite-chip>`},me=a=>a.type==="featureSet";function we(a){return a&&a!=="dataCatalogDatastore"?a:void 0}var N=a=>{if(!ae(a))return[];let e=[];return a.relationships?.forEach(t=>{e.push(t.toJSON())}),e},D=a=>a.length>0?{relationships:a}:{},Je=a=>oe(a).map(e=>({alias:e.alias,name:e.name,type:e.type,...e.domain?{domain:e.domain}:{}})),_=a=>a?{fields:Je(a)}:{fields:[]};async function he(a){let e=await a.loadSource(),t=V(e)&&e.isTable,i=N(e);return{name:a.name,type:"featureSet",isTable:t,..._(e?.fields),...D(i)}}async function $e(a){switch(a.type){case"feature":{let t=await a.loadSource(),i=N(t);return{name:a.name,type:a.type,..._(t?.fields),...D(i)}}case"featureSet":{let t=await a.loadSource(),i=V(t)&&t.isTable;return{name:a.name,type:"featureSet",...i?{isTable:i}:{},..._(t?.fields),...D(N(t))}}case"featureSetCollection":{let t=await a.loadSource(),i=t?.layers.filter(me)??[],s=t?.tables.filter(me)??[],n=await Promise.all(i.map(he)),c=await Promise.all(s.map(he));return{name:a.name,type:"featureSetCollection",layers:n,tables:c}}case"dictionary":{let t=await Promise.all(a.dictionaryVariables.filter(P).map($e));return{name:a.name,type:"dictionary",attributes:t}}case"pixel":{let t=await a.loadSource();if(!t)return{name:a.name,type:"pixel"};let i=await Ae(t);return{name:a.name,type:"pixel",members:i.map(ge)}}case"voxel":{let t=await a.loadSource();if(!t)return{name:a.name,type:"voxel"};let i=await Te(t);return{name:a.name,type:"voxel",members:i.map(ge)}}case"array":let e=we(a.elementType.type);return{name:a.name,type:"array",...e?{elementType:e}:{}};case"number":case"text":case"boolean":case"date":case"knowledgeGraph":case"dateOnly":case"geometry":case"time":return{name:a.name,type:a.type}}}function ge(a){if(a.type==="array"){let e=we(a.elementType.type);return{name:a.name,type:"array",...e?{elementType:e}:{}}}return{name:a.name,type:a.type}}async function Ye(a){return{variables:await Promise.all(a.variables.filter(P).map($e))}}var We=1e5;function Ke(a){let e=new TextEncoder().encode(a).length;return Math.ceil(e/3.5)}function U(a){return Ke(JSON.stringify(a))}function Xe(a){let e=i=>({name:i.name,type:i.type,...i.isTable?{isTable:i.isTable}:{},...i.relationships?{relationships:i.relationships}:{}}),t=i=>{switch(i.type){case"feature":case"featureSet":case"knowledgeGraph":return{name:i.name,type:i.type,..."isTable"in i&&i.isTable?{isTable:i.isTable}:{},..."relationships"in i?{relationships:i.relationships}:{}};case"featureSetCollection":return{name:i.name,type:"featureSetCollection",layers:i.layers.map(e),tables:i.tables.map(e)};case"dictionary":return{name:i.name,type:"dictionary",attributes:i.attributes.map(t)};case"pixel":case"voxel":return{name:i.name,type:i.type};case"array":return{name:i.name,type:"array",...i.elementType?{elementType:i.elementType}:{}};default:return i}};return{variables:a.variables.map(t)}}function Ze(a){let e=a.variables,t=e.length,i=e.find(n=>n.name==="$feature")??e.find(n=>n.type==="feature")??e[0],s=i?[i]:[];return{context:{variables:s},wasReduced:t!==s.length,reducedToVariableName:i?.name}}function et(a){return U(a)>We}var tt=Object.defineProperty,at=Object.getOwnPropertyDescriptor,h=(a,e,t,i)=>{for(var s=i>1?void 0:i?at(e,t):e,n=a.length-1,c;n>=0;n--)(c=a[n])&&(s=(i?c(e,t,s):c(s))||s);return i&&s&&tt(e,t,s),s},m=class extends Ce{constructor(a){super(a),this.viewMode="prompt",this.confirmationActive=!1,this.contextReducedNoticeDismissed=!1,this.splashActive=!0,this.isSubmitting=!1,this.question="",this.history=[],this.feedback={active:!1}}};h([g()],m.prototype,"viewMode",2);h([g()],m.prototype,"confirmationActive",2);h([g()],m.prototype,"contextReducedNoticeDismissed",2);h([g()],m.prototype,"splashActive",2);h([g()],m.prototype,"isSubmitting",2);h([g()],m.prototype,"errorMessage",2);h([g()],m.prototype,"promptValidationMessage",2);h([g()],m.prototype,"question",2);h([g()],m.prototype,"history",2);h([g()],m.prototype,"feedback",2);h([g()],m.prototype,"context",2);m=h([Ie("ArcadeAssistantViewState")],m);var it="arcade_generation",st="ArcadeCodeRequest",be="visualization",fe="ArcadeAssistant",ot=["your_comments","user_evaluation","question","answer","useragent","_source","version","context","extras","conversation_id","privacy_statement"],ve=[],ye=!0,O=class extends X{constructor(){super(...arguments),this.textAreaRef=W(),this.messages=te(),this._feedbackService=void 0,this.viewState=new m,this.handleFeedbackButton=(e,t)=>{this.updateViewState({feedback:{active:!0,value:e,item:t,termsAccepted:!1,text:"",submitting:!1}})},this.handleFeedbackSheetClose=()=>{this.updateViewState({feedback:{active:!1}})},this.handleFeedbackSubmit=async()=>{if(!this.viewState.feedback.active)return;this.updateViewState({feedback:{...this.viewState.feedback,submitting:!0}});let e=await this.ensureFeedbackService();if(!e){this.handleFeedbackSheetClose();return}let t=!1,i;this.viewState.feedback.item.conversationId===this.viewState.history[0]?.conversationId&&this.viewState.viewMode==="result"?(i=this.viewState.context??await this.getProfileAndMetadata(this.getModel()?.uri??""),t=!0):i=this.viewState.feedback.item.contextSnapshot;let s=re.applicationName;!s&&!this.appVersion&&w("warn",this,"esriConfig.applicationName is not set. Consider setting it to help identify the application version in feedback.");let{value:n,text:c,termsAccepted:p,item:{question:r,formattedScript:o,conversationId:u}}=this.viewState.feedback,d={user_evaluation:n,your_comments:c||void 0,question:r??"",answer:this.encodeAnswerForFeedback(o),useragent:navigator.userAgent,_source:fe,version:this.appVersion||s||"NOT_SET",context:i?JSON.stringify({...i,isSnapshot:!t}):"",extras:i?.profileId??"",conversation_id:u??"",privacy_statement:p?"I_agree":""};try{await e.applyEdits({addFeatures:[new ce({attributes:d})]})}catch(v){w("error",this,"Error submitting feedback.",{detail:{error:v}})}this.handleFeedbackSheetClose()},this.handleClose=e=>{this.closed=!0,this.closePanel?.(e)},this.setQuestionState=e=>{this.updateViewState({question:e,promptValidationMessage:void 0})},this.setFeedbackState=e=>{this.updateViewState({feedback:e})},this.onSuggestionClick=e=>{this.textAreaRef.value&&(this.textAreaRef.value.value=e,this.textAreaRef.value.setFocus(),this.setQuestionState(e))},this.helpBase="",this.promptingEnabled=!1,this.closed=!1,this.disableQuestionAnswerLogging=!1}static{this.properties={closePanel:0,insertText:0,helpBase:1,promptingEnabled:5,portalUrl:1,serviceUrl:1,closed:7,editorRef:0,feedbackServiceUrl:1,appVersion:1,diagnostics:0,disableQuestionAnswerLogging:5}}static{this.styles=Me}get disclaimerComment(){return`// ${this.messages.disclaimercomment}
|
|
3
|
+
// ${this.messages.disclaimerpt2??"AI-generated content may be inaccurate. Review before using."}`}get assistantOverviewDocUrl(){return`${this.helpBase??"https://doc.arcgis.com/en/arcgis-online/"}create-maps/understand-arcade-assistant.htm`}get usingTheAssitantDocUrl(){return`${this.helpBase??"https://doc.arcgis.com/en/arcgis-online/"}create-maps/understand-arcade-assistant.htm`}async openPrompt(e){if(this.closed=!1,!this.promptingEnabled)return;e&&this.updateViewState({question:e,viewMode:"prompt"});let t=this.textAreaRef.value;t&&t.setFocus()}async destroy(){}connectedCallback(){super.connectedCallback(),this.updateViewState({history:ve,splashActive:ye})}loaded(){let e=async()=>{let t=this.getModel();if(!t){this.updateViewState({context:void 0});return}let i=await this.getProfileAndMetadata(t.uri);this.updateViewState({context:i,contextReducedNoticeDismissed:i.contextTooLarge?!1:this.viewState.contextReducedNoticeDismissed})};this.manager.onLifecycle(()=>{e();let t=q.onModelContextDidChange(async()=>{e().catch(i=>{w("error",this,"Error setting context.",{detail:{error:i}})})});return{remove:()=>{t.dispose()}}})}disconnectedCallback(){super.disconnectedCallback(),ve=this.viewState.history,ye=this.viewState.splashActive,this.copySuccessTimer&&(clearTimeout(this.copySuccessTimer),this.copySuccessTimer=void 0)}createFeedbackContextSnapshot(e){let t=Xe(e.metadata);return{...e,metadata:t,estimatedTokens:U(t)}}encodeAnswerForFeedback(e){return encodeURIComponent(e??"")}updateViewState(e){this.viewState.set(e)}getHistoryCards(){return this.viewState.history.reduce((e,t)=>(!t.script||(e.push({priorPrompt:t.question,code:t.formattedScript||t.error||"",profileId:t.profile??be,onAddToEditor:i=>{ie(this.editorRef.editorInstance,t.formattedScript??"",i,this.disclaimerComment)},onThumbsUp:()=>this.handleFeedbackButton("good",t),onThumbsDown:()=>this.handleFeedbackButton("bad",t),conversationId:t.conversationId??"",message:t.message}),this.viewState.viewMode),e),[])}async ensureFeedbackService(){if(this._feedbackService)return this._feedbackService;if(!this.feedbackServiceUrl)return;let e=new Se({url:this.feedbackServiceUrl});await e.load();let t=ot.filter(i=>!e.fields.some(s=>s.name===i));if(t.length>0){w("error",this,`Missing the following fields in feedback service: ${t.join(", ")}. Feedback will not be logged.`);return}return this._feedbackService=e,e}async logInteractionToFeedbackService(e){if(this.disableQuestionAnswerLogging||!e.question)return;let t;try{t=await this.ensureFeedbackService()}catch(c){w("error",this,"Error initializing feedback service for interaction logging.",{detail:{error:c}});return}if(!t)return;let i=re.applicationName,s=e.contextSnapshot,n={question:e.question,answer:this.encodeAnswerForFeedback(e.answer),useragent:navigator.userAgent,_source:fe,version:this.appVersion||i||"NOT_SET",context:s?JSON.stringify({...s,isSnapshot:!0}):"",extras:s?.profileId??"",conversation_id:e.conversationId??"",privacy_statement:""};try{await t.applyEdits({addFeatures:[new ce({attributes:n})]})}catch(c){w("error",this,"Error logging arcade assistant question/answer interaction.",{detail:{error:c}})}}getModel(){return this.editorRef.editorInstance?.getModel()}async submitQuestion(){if(!this.viewState.question)return;let e=this.viewState.question;this.updateViewState({isSubmitting:!0,errorMessage:void 0});let t,i;try{let s=this.getModel();if(!s||!this.serviceUrl)return;let n=this.viewState.context??await this.getProfileAndMetadata(s.uri);t=this.createFeedbackContextSnapshot(n);let c=await this.getToken(),p=await Ee({baseUrl:this.serviceUrl,skillId:it,message:e,authToken:c,context:{kind:st,context:{profile_id:n.profileId,metadata:[n.metadata],editor_code:s.getValue(),...this.diagnostics?.length?{diagnostics:this.diagnostics}:{}}}});i=p?.[0]?.conversationId;let r=p.find(o=>o.context?.kind==="ArcadeCodeResponse");if(!r){await this.logInteractionToFeedbackService({question:e,answer:"No ArcadeCodeResponse returned.",contextSnapshot:t,conversationId:i});return}if(r.context?.kind==="ArcadeCodeResponse"){let o=this.createFeedbackContextSnapshot(n),u=se(r?.context?.arcadeCode?.code??"");this.updateViewState({history:[{script:r?.context?.arcadeCode?.code,formattedScript:u,error:void 0,question:e,profile:n.profileId,conversationId:r.conversationId,contextSnapshot:o,...r.message?{message:r.message}:{}},...this.viewState.history],viewMode:"result",errorMessage:void 0}),await this.logInteractionToFeedbackService({question:e,answer:u,contextSnapshot:t,conversationId:r.conversationId})}}catch(s){let n=s instanceof Error&&s.name==="ArcadeAssistantError"?Ve(s)||this.messages.erroroccurred||"An error occurred.":this.messages.erroroccurred||"An error occurred.";this.updateViewState({errorMessage:n}),await this.logInteractionToFeedbackService({question:e,answer:n,contextSnapshot:t,conversationId:i}),w("error",this,"Error submitting question",{detail:{error:s}})}finally{this.updateViewState({isSubmitting:!1})}}async getToken(){let{token:e}=await xe.getCredential(this.portalUrl);return e}async getProfileAndMetadata(e){let t=be,i=q.getEditorProfileForModel(e);i?.loaded||await i?.loadSource();let s=this.editorRef.profile;s&&"id"in s&&(t=s.id);let n=i?await Ye(i):{variables:[]},c=et(n),p=c?Ze(n):void 0,r=p?p.context:n,o=U(r);return{profileId:t,metadata:r,contextTooLarge:c,reducedToVariableName:p?.reducedToVariableName,estimatedTokens:o}}onCopyCode(e){let t=e?`${this.disclaimerComment}
|
|
4
4
|
${e}`:"";return navigator.clipboard.writeText(t)}render(){if(this.closed)return null;let e=this.viewState.viewMode==="result",t=this.getHistoryCards();return this.promptingEnabled?l`<calcite-flow><calcite-flow-item closable heading-level=2 .heading=${this.messages.arcadeassistant??"Arcade assistant"} @calciteFlowItemClose=${this.handleClose}>${this.viewState.splashActive&&l`<calcite-scrim></calcite-scrim>`||""}${Ne({messages:this.messages})}${De({messages:this.messages,popoverContent:de({promptingEnabled:this.promptingEnabled,messages:this.messages,helpTopicUrl:this.usingTheAssitantDocUrl})})}<calcite-shell class="unstyled-shell">${this.viewState.splashActive&&je({messages:this.messages,onProceed:()=>{this.updateViewState({splashActive:!1})},helpTopicUrl:this.assistantOverviewDocUrl,onExit:i=>this.closePanel?.(i)})||""}${Ue({active:this.viewState.confirmationActive,setActive:i=>this.updateViewState({confirmationActive:i}),messages:this.messages})}${ze({isDisabled:this.viewState.isSubmitting,isReadOnly:!1,setQuestion:this.setQuestionState,setIsViewingResult:i=>this.updateViewState({viewMode:i?"result":"prompt"}),mode:e?"refine":"prompt",textAreaRef:this.textAreaRef,question:this.viewState.question,errorMessage:this.viewState.errorMessage,setErrorMessage:i=>this.updateViewState({errorMessage:i}),promptValidationMessage:this.viewState.promptValidationMessage,setPromptValidationMessage:i=>this.updateViewState({promptValidationMessage:i}),submitQuestion:this.submitQuestion.bind(this),assistantRef:this.el,messages:this.messages,context:this.viewState.context,contextReducedNoticeDismissed:this.viewState.contextReducedNoticeDismissed,setContextReducedNoticeDismissed:i=>this.updateViewState({contextReducedNoticeDismissed:i})})}<calcite-block-group .label=${this.messages.interactiveblocks??"interactive blocks"}>${!e&&!this.viewState.isSubmitting&&He({messages:this.messages,suggestions:[this.messages.prompsuggestion1??"",this.messages.prompsuggestion2??""],onSuggestionClick:this.onSuggestionClick})||""}<calcite-block .hidden=${!this.viewState.isSubmitting} .heading=${this.messages.generatingresponse??"Generating response..."}></calcite-block>${ue({expanded:e,messages:this.messages,collapsible:!0,showEffectsIcon:!0,cards:t.length?[t[0]]:[],heading:this.messages.besteffort??"Here's the assistant's best effort",hidden:this.viewState.isSubmitting||!e,onCopyCode:this.onCopyCode.bind(this),standalone:!0})}${ue({expanded:!e,messages:this.messages,collapsible:!0,cards:e?t.slice(1):t,heading:this.messages.recentprompts??"Recent prompts",hidden:this.viewState.isSubmitting||this.viewState.history.length===0,onCopyCode:this.onCopyCode.bind(this)})}</calcite-block-group>${this.viewState.feedback.active?Qe({setOpen:this.handleFeedbackSheetClose,messages:this.messages,onSubmit:this.handleFeedbackSubmit,feedback:this.viewState.feedback,setFeedback:this.setFeedbackState,learnMoreUrl:this.assistantOverviewDocUrl}):null}</calcite-shell></calcite-flow-item></calcite-flow>`:l`<calcite-flow><calcite-flow-item .selected=${!e} closable heading-level=2 .heading=${this.messages.arcadeassistant??"Arcade assistant"} @calciteFlowItemClose=${this.handleClose}>${de({slot:"content-top",messages:this.messages,promptingEnabled:this.promptingEnabled,helpTopicUrl:this.usingTheAssitantDocUrl})}</calcite-flow-item></calcite-flow>`}};ee("arcgis-arcade-coding-assistant",O);return O},"identity/IdentityManager","request","layers/FeatureLayer","config","Graphic","applications/Components/arcadeEditorUtils","core/Accessor","core/accessorSupport/decorators",a,b,c)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"المساعدة","profilevariables":"متغيرات ملف تعريف","constantsandfunctions":"الدوال","suggestions":"الاقتراحات","run":"تشغيل","runanddebug":"تشغيل وتصحيح الأخطاء","continue":"متابعة","reset":"إعادة تعيين","stop":"إيقاف","lastresults":"أحدث النتائج","close":"إغلاق","output":"الناتج","console":"وحدة التحكم","log":"سجل","debugconsole":"وحدة التحكم في تصحيح الأخطاء","arcadeassistant":"مساعد Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"المساعدة","profilevariables":"متغيرات ملف تعريف","constantsandfunctions":"الدوال","suggestions":"الاقتراحات","run":"تشغيل","runanddebug":"تشغيل وتصحيح الأخطاء","continue":"متابعة","reset":"إعادة تعيين","stop":"إيقاف","lastresults":"أحدث النتائج","close":"إغلاق","output":"الناتج","console":"وحدة التحكم","log":"سجل","debugconsole":"وحدة التحكم في تصحيح الأخطاء","arcadeassistant":"مساعد Arcade","askarcadeassistant":"اسأل مساعد Arcade","askarcadeassistantprompt":"أصلح الأخطاء في البرنامج النصي الخاص بي","profileempty":"لا توجد أي متغيرات في هذا الملف التعريفي."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Помощ","profilevariables":"Променливи в профила","constantsandfunctions":"Функции","suggestions":"Предложения","run":"Изпълнение","runanddebug":"Изпълнение и отстраняване на грешки","continue":"Продължение","reset":"Нулиране","stop":"Стоп","lastresults":"Последни резултати","close":"Затваряне","output":"Изход","console":"Конзола","log":"Регистрационни файлове","debugconsole":"Отстраняване на грешки за конзола","arcadeassistant":"Aсистент в Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Помощ","profilevariables":"Променливи в профила","constantsandfunctions":"Функции","suggestions":"Предложения","run":"Изпълнение","runanddebug":"Изпълнение и отстраняване на грешки","continue":"Продължение","reset":"Нулиране","stop":"Стоп","lastresults":"Последни резултати","close":"Затваряне","output":"Изход","console":"Конзола","log":"Регистрационни файлове","debugconsole":"Отстраняване на грешки за конзола","arcadeassistant":"Aсистент в Arcade","askarcadeassistant":"Попитайте асистента в Arcade","askarcadeassistantprompt":"Отстрани грешките в моя скрипт","profileempty":"Този профил няма никакви променливи."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Pomoć","profilevariables":"Varijable profila","constantsandfunctions":"Funkcije","suggestions":"Prijedlozi","run":"Pokreni","runanddebug":"Pokreni i ispravi pogrešku","continue":"Nastavak","reset":"Vrati izvorno","stop":"Mjesto zaustavljanja","lastresults":"Posljednji rezultati","close":"Zatvori","output":"Izlaz","console":"Konzola","log":"Zapis","debugconsole":"Konzola za otklanjanje pogrešaka","arcadeassistant":"Arcade pomoćnik","askarcadeassistant":"
|
|
1
|
+
{"help":"Pomoć","profilevariables":"Varijable profila","constantsandfunctions":"Funkcije","suggestions":"Prijedlozi","run":"Pokreni","runanddebug":"Pokreni i ispravi pogrešku","continue":"Nastavak","reset":"Vrati izvorno","stop":"Mjesto zaustavljanja","lastresults":"Posljednji rezultati","close":"Zatvori","output":"Izlaz","console":"Konzola","log":"Zapis","debugconsole":"Konzola za otklanjanje pogrešaka","arcadeassistant":"Arcade pomoćnik","askarcadeassistant":"Pitaj Arcade pomoćnika","askarcadeassistantprompt":"Ispravi pogreške u moj skripti","profileempty":"Ovaj profil nema varijabli."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Ajuda","profilevariables":"Variables de perfil","constantsandfunctions":"Funcions","suggestions":"Suggeriments","run":"Execució","runanddebug":"Executa i depura","continue":"Continua","reset":"Restableix","stop":"Atura","lastresults":"Darrers resultats","close":"Tanca","output":"Sortida","console":"Consola","log":"Registre","debugconsole":"Consola de depuració","arcadeassistant":"Assistent d'Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Ajuda","profilevariables":"Variables de perfil","constantsandfunctions":"Funcions","suggestions":"Suggeriments","run":"Execució","runanddebug":"Executa i depura","continue":"Continua","reset":"Restableix","stop":"Atura","lastresults":"Darrers resultats","close":"Tanca","output":"Sortida","console":"Consola","log":"Registre","debugconsole":"Consola de depuració","arcadeassistant":"Assistent d'Arcade","askarcadeassistant":"Pregunteu-ho a l'Assistent d'Arcade","askarcadeassistantprompt":"Corregeix els errors al meu script","profileempty":"Aquest perfil no té cap variable."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Nápověda","profilevariables":"Proměnné profilu","constantsandfunctions":"Funkce","suggestions":"Návrhy","run":"Spustit","runanddebug":"Spustit a ladit","continue":"Pokračovat","reset":"Resetovat","stop":"Zastavit","lastresults":"Poslední výsledky","close":"Zavřít","output":"Výstup","console":"Konzole","log":"Záznam","debugconsole":"Ladicí konzole","arcadeassistant":"Asistent Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Nápověda","profilevariables":"Proměnné profilu","constantsandfunctions":"Funkce","suggestions":"Návrhy","run":"Spustit","runanddebug":"Spustit a ladit","continue":"Pokračovat","reset":"Resetovat","stop":"Zastavit","lastresults":"Poslední výsledky","close":"Zavřít","output":"Výstup","console":"Konzole","log":"Záznam","debugconsole":"Ladicí konzole","arcadeassistant":"Asistent Arcade","askarcadeassistant":"Zeptat se asistenta Arcade","askarcadeassistantprompt":"Opravit chyby v mém skriptu","profileempty":"Tento profil nemá žádné proměnné."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Hjælp","profilevariables":"Profilvariabler","constantsandfunctions":"Funktioner","suggestions":"Forslag","run":"Kør","runanddebug":"Kør og ret fejl","continue":"Fortsæt","reset":"Nulstil","stop":"Stop","lastresults":"Seneste resultater","close":"Luk","output":"Output","console":"Konsol","log":"Log","debugconsole":"Fejlretningskonsol","arcadeassistant":"Arcade-assistent","askarcadeassistant":"
|
|
1
|
+
{"help":"Hjælp","profilevariables":"Profilvariabler","constantsandfunctions":"Funktioner","suggestions":"Forslag","run":"Kør","runanddebug":"Kør og ret fejl","continue":"Fortsæt","reset":"Nulstil","stop":"Stop","lastresults":"Seneste resultater","close":"Luk","output":"Output","console":"Konsol","log":"Log","debugconsole":"Fejlretningskonsol","arcadeassistant":"Arcade-assistent","askarcadeassistant":"Spørg Arcade-assistenten","askarcadeassistantprompt":"Ret fejlene i mit script","profileempty":"Denne profil har ikke nogen variabler."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Hilfe","profilevariables":"Profilvariablen","constantsandfunctions":"Funktionen","suggestions":"Vorschläge","run":"Ausführen","runanddebug":"Ausführen und debuggen","continue":"Weiter","reset":"Zurücksetzen","stop":"Beenden","lastresults":"Letzte Ergebnisse","close":"Schließen","output":"Ausgabe","console":"Konsole","log":"Protokoll","debugconsole":"Konsole debuggen","arcadeassistant":"Arcade Assistant","askarcadeassistant":"
|
|
1
|
+
{"help":"Hilfe","profilevariables":"Profilvariablen","constantsandfunctions":"Funktionen","suggestions":"Vorschläge","run":"Ausführen","runanddebug":"Ausführen und debuggen","continue":"Weiter","reset":"Zurücksetzen","stop":"Beenden","lastresults":"Letzte Ergebnisse","close":"Schließen","output":"Ausgabe","console":"Konsole","log":"Protokoll","debugconsole":"Konsole debuggen","arcadeassistant":"Arcade Assistant","askarcadeassistant":"Arcade Assistant fragen","askarcadeassistantprompt":"Fehler im Skript korrigieren","profileempty":"Dieses Profil verfügt über keine Variablen."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Βοήθεια","profilevariables":"Μεταβλητές προφίλ","constantsandfunctions":"Συναρτήσεις","suggestions":"Προτάσεις","run":"Εκτέλεση","runanddebug":"Εκτέλεση και αποσφαλμάτωση","continue":"Συνέχεια","reset":"Επαναφορά","stop":"Τερματισμός","lastresults":"Τελευταία αποτελέσματα","close":"Κλείσιμο","output":"Έξοδος","console":"Κονσόλα","log":"Αρχείο καταγραφής","debugconsole":"Κονσόλα αποσφαλμάτωσης","arcadeassistant":"Βοηθός Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Βοήθεια","profilevariables":"Μεταβλητές προφίλ","constantsandfunctions":"Συναρτήσεις","suggestions":"Προτάσεις","run":"Εκτέλεση","runanddebug":"Εκτέλεση και αποσφαλμάτωση","continue":"Συνέχεια","reset":"Επαναφορά","stop":"Τερματισμός","lastresults":"Τελευταία αποτελέσματα","close":"Κλείσιμο","output":"Έξοδος","console":"Κονσόλα","log":"Αρχείο καταγραφής","debugconsole":"Κονσόλα αποσφαλμάτωσης","arcadeassistant":"Βοηθός Arcade","askarcadeassistant":"Ρωτήστε τον βοηθό Arcade","askarcadeassistantprompt":"Διόρθωσε τα σφάλματα στη δέσμη ενεργειών μου","profileempty":"Αυτό το προφίλ δεν καθόλου μεταβλητές."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Ayuda","profilevariables":"Variables de perfil","constantsandfunctions":"Funciones","suggestions":"Sugerencias","run":"Ejecutar","runanddebug":"Ejecutar y depurar","continue":"Continuar","reset":"Restablecer","stop":"Detener","lastresults":"Últimos resultados","close":"Cerrar","output":"Salida","console":"Consola","log":"Registro","debugconsole":"Consola de depuración","arcadeassistant":"Asistente de Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Ayuda","profilevariables":"Variables de perfil","constantsandfunctions":"Funciones","suggestions":"Sugerencias","run":"Ejecutar","runanddebug":"Ejecutar y depurar","continue":"Continuar","reset":"Restablecer","stop":"Detener","lastresults":"Últimos resultados","close":"Cerrar","output":"Salida","console":"Consola","log":"Registro","debugconsole":"Consola de depuración","arcadeassistant":"Asistente de Arcade","askarcadeassistant":"Preguntar al asistente de Arcade","askarcadeassistantprompt":"Corregir los errores de mi secuencia de comandos","profileempty":"Este perfil no tiene ninguna variable."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Abi","profilevariables":"Profiilimuutujad","constantsandfunctions":"Funktsioonid","suggestions":"Soovitused","run":"Käivita","runanddebug":"Käivita ja silu","continue":"Jätka","reset":"Lähtesta","stop":"Peata","lastresults":"Viimatised tulemused","close":"Sule","output":"Väljund","console":"Konsool","log":"Logi","debugconsole":"Debug-konsooli vead","arcadeassistant":"Arcade'i assistent","askarcadeassistant":"
|
|
1
|
+
{"help":"Abi","profilevariables":"Profiilimuutujad","constantsandfunctions":"Funktsioonid","suggestions":"Soovitused","run":"Käivita","runanddebug":"Käivita ja silu","continue":"Jätka","reset":"Lähtesta","stop":"Peata","lastresults":"Viimatised tulemused","close":"Sule","output":"Väljund","console":"Konsool","log":"Logi","debugconsole":"Debug-konsooli vead","arcadeassistant":"Arcade'i assistent","askarcadeassistant":"Küsige Arcade'i assistendilt","askarcadeassistantprompt":"Paranda minu skriptis olevad vead","profileempty":"Sellel profiilil pole muutujaid."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Ohje","profilevariables":"Profiilimuuttujat","constantsandfunctions":"Toiminnot","suggestions":"Ehdotukset","run":"Suorita","runanddebug":"Suorita ja tee vianmääritys","continue":"Jatka","reset":"Palauta","stop":"Lopeta","lastresults":"Viimeisimmät tulokset","close":"Sulje","output":"Tulosaineisto","console":"Konsoli","log":"Loki","debugconsole":"Tee konsolin vianmääritys","arcadeassistant":"Arcade-apuri","askarcadeassistant":"
|
|
1
|
+
{"help":"Ohje","profilevariables":"Profiilimuuttujat","constantsandfunctions":"Toiminnot","suggestions":"Ehdotukset","run":"Suorita","runanddebug":"Suorita ja tee vianmääritys","continue":"Jatka","reset":"Palauta","stop":"Lopeta","lastresults":"Viimeisimmät tulokset","close":"Sulje","output":"Tulosaineisto","console":"Konsoli","log":"Loki","debugconsole":"Tee konsolin vianmääritys","arcadeassistant":"Arcade-apuri","askarcadeassistant":"Kysy Arcade-apurilta","askarcadeassistantprompt":"Korjaa virheet komentosarjassani","profileempty":"Tällä profiililla ei ole muuttujia."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Aide","profilevariables":"Variables de profil","constantsandfunctions":"Fonctions","suggestions":"Suggestions","run":"Exécuter","runanddebug":"Exécuter et déboguer","continue":"Continuer","reset":"Réinitialiser","stop":"Arrêter","lastresults":"Derniers résultats","close":"Fermer","output":"Sortie","console":"Console","log":"Journal","debugconsole":"Déboguer la console","arcadeassistant":"Assistant Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Aide","profilevariables":"Variables de profil","constantsandfunctions":"Fonctions","suggestions":"Suggestions","run":"Exécuter","runanddebug":"Exécuter et déboguer","continue":"Continuer","reset":"Réinitialiser","stop":"Arrêter","lastresults":"Derniers résultats","close":"Fermer","output":"Sortie","console":"Console","log":"Journal","debugconsole":"Déboguer la console","arcadeassistant":"Assistant Arcade","askarcadeassistant":"Demander à l’assistant Arcade","askarcadeassistantprompt":"Corrige les erreurs dans mon script","profileempty":"Ce profil ne comporte aucune variable."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"עזרה","profilevariables":"משתני פרופיל","constantsandfunctions":"פונקציות","suggestions":"תכונות ליישום","run":"הרץ","runanddebug":"הרץ ואתר באגים","continue":"המשך","reset":"איפוס","stop":"עצור","lastresults":"תוצאות אחרונות","close":"סגירה","output":"פלט","console":"מסוף","log":"לוג","debugconsole":"מסוף איתור באגים","arcadeassistant":"עוזר Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"עזרה","profilevariables":"משתני פרופיל","constantsandfunctions":"פונקציות","suggestions":"תכונות ליישום","run":"הרץ","runanddebug":"הרץ ואתר באגים","continue":"המשך","reset":"איפוס","stop":"עצור","lastresults":"תוצאות אחרונות","close":"סגירה","output":"פלט","console":"מסוף","log":"לוג","debugconsole":"מסוף איתור באגים","arcadeassistant":"עוזר Arcade","askarcadeassistant":"שאל את עוזר Arcade","askarcadeassistantprompt":"תקן את השגיאות בסקריפט שלי","profileempty":"לפרופיל זה אין משתנים."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Pomoć","profilevariables":"Varijable profila","constantsandfunctions":"Funkcije","suggestions":"Prijedlozi","run":"Pokreni","runanddebug":"Pokreni i ispravi pogrešku","continue":"Nastavak","reset":"Vrati izvorno","stop":"Mjesto zaustavljanja","lastresults":"Posljednji rezultati","close":"Zatvori","output":"Izlaz","console":"Konzola","log":"Zapis","debugconsole":"Konzola za otklanjanje pogrešaka","arcadeassistant":"Arcade pomoćnik","askarcadeassistant":"
|
|
1
|
+
{"help":"Pomoć","profilevariables":"Varijable profila","constantsandfunctions":"Funkcije","suggestions":"Prijedlozi","run":"Pokreni","runanddebug":"Pokreni i ispravi pogrešku","continue":"Nastavak","reset":"Vrati izvorno","stop":"Mjesto zaustavljanja","lastresults":"Posljednji rezultati","close":"Zatvori","output":"Izlaz","console":"Konzola","log":"Zapis","debugconsole":"Konzola za otklanjanje pogrešaka","arcadeassistant":"Arcade pomoćnik","askarcadeassistant":"Pitaj Arcade pomoćnika","askarcadeassistantprompt":"Ispravi pogreške u moj skripti","profileempty":"Ovaj profil nema varijabli."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Súgó","profilevariables":"Profil változók","constantsandfunctions":"Függvények","suggestions":"Javaslatok","run":"Futtatás","runanddebug":"Futtatás és hibakeresés","continue":"Folytatás","reset":"Alaphelyzetbe állítás","stop":"Megálló","lastresults":"Legutóbbi eredmények","close":"Bezárás","output":"Kimenet","console":"Konzol","log":"Napló","debugconsole":"Hibakeresési konzol","arcadeassistant":"Arcade-segéd","askarcadeassistant":"
|
|
1
|
+
{"help":"Súgó","profilevariables":"Profil változók","constantsandfunctions":"Függvények","suggestions":"Javaslatok","run":"Futtatás","runanddebug":"Futtatás és hibakeresés","continue":"Folytatás","reset":"Alaphelyzetbe állítás","stop":"Megálló","lastresults":"Legutóbbi eredmények","close":"Bezárás","output":"Kimenet","console":"Konzol","log":"Napló","debugconsole":"Hibakeresési konzol","arcadeassistant":"Arcade-segéd","askarcadeassistant":"Kérdezze meg az Arcade-segédet","askarcadeassistantprompt":"Javítsa ki a hibákat a parancsfájlomban","profileempty":"Ez a profil nem rendelkezik változókkal."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Bantuan","profilevariables":"Variabel profil","constantsandfunctions":"Fungsi","suggestions":"Saran","run":"Jalankan","runanddebug":"Jalankan dan Debug","continue":"Terus-menerus (kontinyu)","reset":"Atur Ulang","stop":"Stop","lastresults":"Hasil terakhir","close":"Tutup","output":"Keluaran","console":"Konsol","log":"Catatan","debugconsole":"Konsol Debug","arcadeassistant":"Asisten Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Bantuan","profilevariables":"Variabel profil","constantsandfunctions":"Fungsi","suggestions":"Saran","run":"Jalankan","runanddebug":"Jalankan dan Debug","continue":"Terus-menerus (kontinyu)","reset":"Atur Ulang","stop":"Stop","lastresults":"Hasil terakhir","close":"Tutup","output":"Keluaran","console":"Konsol","log":"Catatan","debugconsole":"Konsol Debug","arcadeassistant":"Asisten Arcade","askarcadeassistant":"Tanya Asisten Arcade","askarcadeassistantprompt":"Perbaiki kesalahan dalam skrip saya","profileempty":"Profil ini tidak memiliki variabel."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Guida","profilevariables":"Variabili profilo","constantsandfunctions":"Funzioni","suggestions":"Suggerimenti","run":"Esegui","runanddebug":"Esecuzione e debug","continue":"Continua","reset":"Reimposta","stop":"Termine","lastresults":"Ultimi risultati","close":"Chiudi","output":"Output","console":"Console","log":"Log","debugconsole":"Console di debug","arcadeassistant":"Assistente Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Guida","profilevariables":"Variabili profilo","constantsandfunctions":"Funzioni","suggestions":"Suggerimenti","run":"Esegui","runanddebug":"Esecuzione e debug","continue":"Continua","reset":"Reimposta","stop":"Termine","lastresults":"Ultimi risultati","close":"Chiudi","output":"Output","console":"Console","log":"Log","debugconsole":"Console di debug","arcadeassistant":"Assistente Arcade","askarcadeassistant":"Chiedi all'assistente Arcade","askarcadeassistantprompt":"Correggi gli errori nello script","profileempty":"Questo profilo non ha variabili."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"ヘルプ","profilevariables":"プロファイル変数","constantsandfunctions":"関数","suggestions":"候補","run":"実行","runanddebug":"実行してデバッグ","continue":"続行","reset":"リセット","stop":"停止","lastresults":"最終結果","close":"閉じる","output":"出力","console":"コンソール","log":"ログ","debugconsole":"デバッグ コンソール","arcadeassistant":"Arcade アシスタント","askarcadeassistant":"
|
|
1
|
+
{"help":"ヘルプ","profilevariables":"プロファイル変数","constantsandfunctions":"関数","suggestions":"候補","run":"実行","runanddebug":"実行してデバッグ","continue":"続行","reset":"リセット","stop":"停止","lastresults":"最終結果","close":"閉じる","output":"出力","console":"コンソール","log":"ログ","debugconsole":"デバッグ コンソール","arcadeassistant":"Arcade アシスタント","askarcadeassistant":"Arcade アシスタントに質問する","askarcadeassistantprompt":"スクリプトのエラーを修正","profileempty":"このプロファイルには変数がありません。"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"도움말","profilevariables":"프로파일 변수","constantsandfunctions":"함수","suggestions":"제안","run":"실행","runanddebug":"실행 및 디버그","continue":"계속","reset":"재설정","stop":"중지","lastresults":"마지막 결과","close":"닫기","output":"결과","console":"콘솔","log":"로그","debugconsole":"디버그 콘솔","arcadeassistant":"Arcade 도우미","askarcadeassistant":"
|
|
1
|
+
{"help":"도움말","profilevariables":"프로파일 변수","constantsandfunctions":"함수","suggestions":"제안","run":"실행","runanddebug":"실행 및 디버그","continue":"계속","reset":"재설정","stop":"중지","lastresults":"마지막 결과","close":"닫기","output":"결과","console":"콘솔","log":"로그","debugconsole":"디버그 콘솔","arcadeassistant":"Arcade 도우미","askarcadeassistant":"Arcade 도우미에게 질문하기","askarcadeassistantprompt":"내 스크립트에서 오류 수정","profileempty":"이 프로필에는 변수가 없습니다."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Pagalba","profilevariables":"Profilio kintamieji","constantsandfunctions":"Funkcijos","suggestions":"Pasiūlymai","run":"Vykdyti","runanddebug":"Vykdyti ir derinti","continue":"Tęsti","reset":"Atkurti","stop":"Stabdyti","lastresults":"Paskutiniai rezultatai","close":"Uždaryti","output":"Išvestis","console":"Konsolė","log":"Žurnalas","debugconsole":"Derinimo konsolė","arcadeassistant":"Arcade asistentas","askarcadeassistant":"
|
|
1
|
+
{"help":"Pagalba","profilevariables":"Profilio kintamieji","constantsandfunctions":"Funkcijos","suggestions":"Pasiūlymai","run":"Vykdyti","runanddebug":"Vykdyti ir derinti","continue":"Tęsti","reset":"Atkurti","stop":"Stabdyti","lastresults":"Paskutiniai rezultatai","close":"Uždaryti","output":"Išvestis","console":"Konsolė","log":"Žurnalas","debugconsole":"Derinimo konsolė","arcadeassistant":"Arcade asistentas","askarcadeassistant":"Klauskite Arcade asistento","askarcadeassistantprompt":"Ištaisyti klaidas mano scenarijuje","profileempty":"Šiame puslapyje nėra kintamųjų."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Palīdzība","profilevariables":"Profila mainīgie","constantsandfunctions":"Funkcijas","suggestions":"Ierosinājumi","run":"Palaist","runanddebug":"Palaist un atkļūdot","continue":"Turpināt","reset":"Atiestatīt","stop":"Apturēt","lastresults":"Pēdējie rezultāti","close":"Aizvērt","output":"Izvade","console":"Konsole","log":"Žurnālfails","debugconsole":"Atkļūdošanas konsole","arcadeassistant":"Arcade asistents","askarcadeassistant":"
|
|
1
|
+
{"help":"Palīdzība","profilevariables":"Profila mainīgie","constantsandfunctions":"Funkcijas","suggestions":"Ierosinājumi","run":"Palaist","runanddebug":"Palaist un atkļūdot","continue":"Turpināt","reset":"Atiestatīt","stop":"Apturēt","lastresults":"Pēdējie rezultāti","close":"Aizvērt","output":"Izvade","console":"Konsole","log":"Žurnālfails","debugconsole":"Atkļūdošanas konsole","arcadeassistant":"Arcade asistents","askarcadeassistant":"Jautāt Arcade asistentam","askarcadeassistantprompt":"Labot kļūdas manā skriptā","profileempty":"Šim profilam nav neviena mainīgā."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Help","profilevariables":"Profielvariabelen","constantsandfunctions":"Functies","suggestions":"Suggesties","run":"Uitvoeren","runanddebug":"Uitvoeren en fouten opsporen","continue":"Doorgaan","reset":"Opnieuw instellen","stop":"Stoppen","lastresults":"Laatste resultaten","close":"Sluiten","output":"Uitvoer","console":"Console","log":"Log","debugconsole":"Fouten opsporen console","arcadeassistant":"Arcade-assistent","askarcadeassistant":"
|
|
1
|
+
{"help":"Help","profilevariables":"Profielvariabelen","constantsandfunctions":"Functies","suggestions":"Suggesties","run":"Uitvoeren","runanddebug":"Uitvoeren en fouten opsporen","continue":"Doorgaan","reset":"Opnieuw instellen","stop":"Stoppen","lastresults":"Laatste resultaten","close":"Sluiten","output":"Uitvoer","console":"Console","log":"Log","debugconsole":"Fouten opsporen console","arcadeassistant":"Arcade-assistent","askarcadeassistant":"Vraag het de Arcade-assistent","askarcadeassistantprompt":"Herstel de fouten in mijn script","profileempty":"Dit profiel bevat geen variabelen."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Hjelp","profilevariables":"Profilvariabler","constantsandfunctions":"Funksjoner","suggestions":"Forslag","run":"Kjør","runanddebug":"Kjør og feilsøk!","continue":"Fortsett","reset":"Tilbakestill","stop":"Stopp","lastresults":"Nyeste resultater","close":"Lukk","output":"Resultat","console":"Konsoll","log":"Logg","debugconsole":"Feilsøk konsollen","arcadeassistant":"Arcade-assistent","askarcadeassistant":"
|
|
1
|
+
{"help":"Hjelp","profilevariables":"Profilvariabler","constantsandfunctions":"Funksjoner","suggestions":"Forslag","run":"Kjør","runanddebug":"Kjør og feilsøk!","continue":"Fortsett","reset":"Tilbakestill","stop":"Stopp","lastresults":"Nyeste resultater","close":"Lukk","output":"Resultat","console":"Konsoll","log":"Logg","debugconsole":"Feilsøk konsollen","arcadeassistant":"Arcade-assistent","askarcadeassistant":"Spør Arcade Assistant","askarcadeassistantprompt":"Rett opp feil i skriptet mitt","profileempty":"Denne profilen har ingen variabler."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Pomoc","profilevariables":"Zmienne profilu","constantsandfunctions":"Funkcje","suggestions":"Sugestie","run":"Uruchom","runanddebug":"Uruchom i debuguj","continue":"Kontynuuj","reset":"Resetuj","stop":"Zatrzymaj","lastresults":"Ostatnie wyniki","close":"Zamknij","output":"Dane wynikowe","console":"Konsola","log":"Dziennik","debugconsole":"Konsola debugowania","arcadeassistant":"Asystent języka Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Pomoc","profilevariables":"Zmienne profilu","constantsandfunctions":"Funkcje","suggestions":"Sugestie","run":"Uruchom","runanddebug":"Uruchom i debuguj","continue":"Kontynuuj","reset":"Resetuj","stop":"Zatrzymaj","lastresults":"Ostatnie wyniki","close":"Zamknij","output":"Dane wynikowe","console":"Konsola","log":"Dziennik","debugconsole":"Konsola debugowania","arcadeassistant":"Asystent języka Arcade","askarcadeassistant":"Zapytaj asystenta Arcade","askarcadeassistantprompt":"Popraw błędy w moim skrypcie","profileempty":"Ten profil nie ma żadnych zmiennych."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Ajuda","profilevariables":"Variáveis de perfil","constantsandfunctions":"Funções","suggestions":"Sugestões","run":"Executar","runanddebug":"Executar e depurar","continue":"Continuar","reset":"Redefinir","stop":"Parar","lastresults":"Últimos resultados","close":"Fechar","output":"Saída","console":"Console","log":"Log","debugconsole":"Console de depurar","arcadeassistant":"Assistente do Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Ajuda","profilevariables":"Variáveis de perfil","constantsandfunctions":"Funções","suggestions":"Sugestões","run":"Executar","runanddebug":"Executar e depurar","continue":"Continuar","reset":"Redefinir","stop":"Parar","lastresults":"Últimos resultados","close":"Fechar","output":"Saída","console":"Console","log":"Log","debugconsole":"Console de depurar","arcadeassistant":"Assistente do Arcade","askarcadeassistant":"Perguntar ao Assistente do Arcade","askarcadeassistantprompt":"Corrigir os erros no meu script","profileempty":"Este perfil não tem variáveis."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Ajuda","profilevariables":"Variáveis de perfil","constantsandfunctions":"Funções","suggestions":"Sugestões","run":"Executar","runanddebug":"Executar e depurar","continue":"Continuar","reset":"Redefinir","stop":"Parar","lastresults":"Últimos resultados","close":"Fechar","output":"Saída","console":"Consola","log":"Registo","debugconsole":"Consola de depuração","arcadeassistant":"Assistente de Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Ajuda","profilevariables":"Variáveis de perfil","constantsandfunctions":"Funções","suggestions":"Sugestões","run":"Executar","runanddebug":"Executar e depurar","continue":"Continuar","reset":"Redefinir","stop":"Parar","lastresults":"Últimos resultados","close":"Fechar","output":"Saída","console":"Consola","log":"Registo","debugconsole":"Consola de depuração","arcadeassistant":"Assistente de Arcade","askarcadeassistant":"Perguntar ao Assistente de Arcade","askarcadeassistantprompt":"Corrigir os erros no meu script","profileempty":"Este perfil não tem variáveis."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Ajutor","profilevariables":"Variabile de profil","constantsandfunctions":"Funcţii","suggestions":"Sugestii","run":"Executare","runanddebug":"Executare și remediere","continue":"Continuați","reset":"Resetare","stop":"Oprire","lastresults":"Cele mai recente rezultate","close":"Închidere","output":"Ieşire","console":"Consolă","log":"Registru","debugconsole":"Remediere consolă","arcadeassistant":"Asistent Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Ajutor","profilevariables":"Variabile de profil","constantsandfunctions":"Funcţii","suggestions":"Sugestii","run":"Executare","runanddebug":"Executare și remediere","continue":"Continuați","reset":"Resetare","stop":"Oprire","lastresults":"Cele mai recente rezultate","close":"Închidere","output":"Ieşire","console":"Consolă","log":"Registru","debugconsole":"Remediere consolă","arcadeassistant":"Asistent Arcade","askarcadeassistant":"Întrebați Asistentul Arcade","askarcadeassistantprompt":"Remediază erorile din scriptul meu","profileempty":"Acest profil nu are nicio variabilă."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Справка","profilevariables":"Переменные профиля","constantsandfunctions":"Функции","suggestions":"Предложения","run":"Запустить","runanddebug":"Запуск и отладка","continue":"Продолжить","reset":"Сбросить","stop":"Остановить","lastresults":"Последние результаты","close":"Закрыть","output":"Выходные данные","console":"Консоль","log":"Журнал","debugconsole":"Консоль отладки","arcadeassistant":"Помощник Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Справка","profilevariables":"Переменные профиля","constantsandfunctions":"Функции","suggestions":"Предложения","run":"Запустить","runanddebug":"Запуск и отладка","continue":"Продолжить","reset":"Сбросить","stop":"Остановить","lastresults":"Последние результаты","close":"Закрыть","output":"Выходные данные","console":"Консоль","log":"Журнал","debugconsole":"Консоль отладки","arcadeassistant":"Помощник Arcade","askarcadeassistant":"Спросить помощника Arcade","askarcadeassistantprompt":"Исправить ошибки в моем скрипте","profileempty":"В этом профиле нет переменных."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Pomocník","profilevariables":"Premenné profilu","constantsandfunctions":"Funkcie","suggestions":"Návrhy","run":"Spustiť","runanddebug":"Spustiť a ladiť","continue":"Pokračovať","reset":"Resetovať","stop":"Stop","lastresults":"Posledné výsledky","close":"Zatvoriť","output":"Výstup","console":"Konzola","log":"Log","debugconsole":"Ladiť konzolu","arcadeassistant":"Arcade Assistant","askarcadeassistant":"
|
|
1
|
+
{"help":"Pomocník","profilevariables":"Premenné profilu","constantsandfunctions":"Funkcie","suggestions":"Návrhy","run":"Spustiť","runanddebug":"Spustiť a ladiť","continue":"Pokračovať","reset":"Resetovať","stop":"Stop","lastresults":"Posledné výsledky","close":"Zatvoriť","output":"Výstup","console":"Konzola","log":"Log","debugconsole":"Ladiť konzolu","arcadeassistant":"Arcade Assistant","askarcadeassistant":"Spýtať sa Arcade Assistant","askarcadeassistantprompt":"Opraviť chyby v mojom skripte","profileempty":"Tento profil nemá žiadne premenné."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Pomoč","profilevariables":"Spremenljivke profila","constantsandfunctions":"Funkcije","suggestions":"Predlogi","run":"Zaženi","runanddebug":"Zaženi in odpravi napake","continue":"Nadaljuj","reset":"Ponastavi","stop":"Ustavi","lastresults":"Zadnji rezultati","close":"Zapri","output":"Izhod","console":"Konzola","log":"Dnevnik","debugconsole":"Konzola za odpravljanje napak","arcadeassistant":"Pomočnik Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Pomoč","profilevariables":"Spremenljivke profila","constantsandfunctions":"Funkcije","suggestions":"Predlogi","run":"Zaženi","runanddebug":"Zaženi in odpravi napake","continue":"Nadaljuj","reset":"Ponastavi","stop":"Ustavi","lastresults":"Zadnji rezultati","close":"Zapri","output":"Izhod","console":"Konzola","log":"Dnevnik","debugconsole":"Konzola za odpravljanje napak","arcadeassistant":"Pomočnik Arcade","askarcadeassistant":"Vprašaj pomočnika Arcade","askarcadeassistantprompt":"Popravi napake v moji skripti","profileempty":"Ta profil nima spremenljivk."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Pomoć","profilevariables":"Promenljive profila","constantsandfunctions":"Funkcije","suggestions":"Predlozi","run":"Pokreni","runanddebug":"Pokreni i otkloni greške","continue":"Nastavi","reset":"Poništi","stop":"Zaustavi","lastresults":"Poslednji rezultati","close":"Zatvori","output":"Izlaz","console":"Konzola","log":"Evidencija","debugconsole":"Konzola za otklanjanje grešaka","arcadeassistant":"Arcade asistent","askarcadeassistant":"
|
|
1
|
+
{"help":"Pomoć","profilevariables":"Promenljive profila","constantsandfunctions":"Funkcije","suggestions":"Predlozi","run":"Pokreni","runanddebug":"Pokreni i otkloni greške","continue":"Nastavi","reset":"Poništi","stop":"Zaustavi","lastresults":"Poslednji rezultati","close":"Zatvori","output":"Izlaz","console":"Konzola","log":"Evidencija","debugconsole":"Konzola za otklanjanje grešaka","arcadeassistant":"Arcade asistent","askarcadeassistant":"Pitajte Arcade asistenta","askarcadeassistantprompt":"Popravi greške u mojoj skripti","profileempty":"Ovaj profil nema nijednu promenljivu."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Hjälp","profilevariables":"Profilvariabler","constantsandfunctions":"Funktioner","suggestions":"Förslag","run":"Kör","runanddebug":"Kör och felsök","continue":"Fortsätt","reset":"Återställ","stop":"Stoppa","lastresults":"Senaste resultat","close":"Stäng","output":"Utdata","console":"Konsol","log":"Logg","debugconsole":"Felsökningskonsol","arcadeassistant":"Arcade-assistent","askarcadeassistant":"
|
|
1
|
+
{"help":"Hjälp","profilevariables":"Profilvariabler","constantsandfunctions":"Funktioner","suggestions":"Förslag","run":"Kör","runanddebug":"Kör och felsök","continue":"Fortsätt","reset":"Återställ","stop":"Stoppa","lastresults":"Senaste resultat","close":"Stäng","output":"Utdata","console":"Konsol","log":"Logg","debugconsole":"Felsökningskonsol","arcadeassistant":"Arcade-assistent","askarcadeassistant":"Fråga Arcade-assistenten","askarcadeassistantprompt":"Åtgärda felen i mitt skript","profileempty":"Den här profilen har inte några variabler."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"ตัวช่วย","profilevariables":"ตัวแปรโปรไฟล์","constantsandfunctions":"ฟังก์ชั่น","suggestions":"แนะนำ","run":"ทำงาน","runanddebug":"รันและแก้ปัญหา","continue":"ดำเนินการต่อ","reset":"เริ่มใหม่","stop":"หยุด","lastresults":"ผลลัพธ์ล่าสุด","close":"ปิด","output":"ผลลัพธ์","console":"คอนโซล","log":"บันทึก","debugconsole":"คอนโซลการแก้ปัญหา","arcadeassistant":"ผู้ช่วย Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"ตัวช่วย","profilevariables":"ตัวแปรโปรไฟล์","constantsandfunctions":"ฟังก์ชั่น","suggestions":"แนะนำ","run":"ทำงาน","runanddebug":"รันและแก้ปัญหา","continue":"ดำเนินการต่อ","reset":"เริ่มใหม่","stop":"หยุด","lastresults":"ผลลัพธ์ล่าสุด","close":"ปิด","output":"ผลลัพธ์","console":"คอนโซล","log":"บันทึก","debugconsole":"คอนโซลการแก้ปัญหา","arcadeassistant":"ผู้ช่วย Arcade","askarcadeassistant":"สอบถามผู้ช่วย Arcade","askarcadeassistantprompt":"แก้ไขข้อผิดพลาดในสคริปต์ของฉัน","profileempty":"โปรไฟล์นี้ไม่มีตัวแปร"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Yardım","profilevariables":"Profil değişkenleri","constantsandfunctions":"İşlevler","suggestions":"Öneriler","run":"Çalıştır","runanddebug":"Çalıştır ve Hata Ayıkla","continue":"Devam","reset":"Sıfırla","stop":"Durdur","lastresults":"Son sonuçlar","close":"Kapat","output":"Çıktı","console":"Konsol","log":"İşlem Kaydı","debugconsole":"Hata Ayıklama Konsolu","arcadeassistant":"Arcade asistanı","askarcadeassistant":"
|
|
1
|
+
{"help":"Yardım","profilevariables":"Profil değişkenleri","constantsandfunctions":"İşlevler","suggestions":"Öneriler","run":"Çalıştır","runanddebug":"Çalıştır ve Hata Ayıkla","continue":"Devam","reset":"Sıfırla","stop":"Durdur","lastresults":"Son sonuçlar","close":"Kapat","output":"Çıktı","console":"Konsol","log":"İşlem Kaydı","debugconsole":"Hata Ayıklama Konsolu","arcadeassistant":"Arcade asistanı","askarcadeassistant":"Arcade Asistanına Sor","askarcadeassistantprompt":"Kodumdaki hataları düzelt","profileempty":"Bu profilde herhangi bir değişken yok."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Довідка","profilevariables":"Змінні профілю","constantsandfunctions":"Функції","suggestions":"Пропозиції","run":"Запустити","runanddebug":"Запустити та налагодити","continue":"Продовжити","reset":"Скинути","stop":"Стоп","lastresults":"Останні результати","close":"Закрити","output":"Виведення","console":"Консоль","log":"Журнал","debugconsole":"Консоль налагодження","arcadeassistant":"Асистент Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Довідка","profilevariables":"Змінні профілю","constantsandfunctions":"Функції","suggestions":"Пропозиції","run":"Запустити","runanddebug":"Запустити та налагодити","continue":"Продовжити","reset":"Скинути","stop":"Стоп","lastresults":"Останні результати","close":"Закрити","output":"Виведення","console":"Консоль","log":"Журнал","debugconsole":"Консоль налагодження","arcadeassistant":"Асистент Arcade","askarcadeassistant":"Запитати асистента Arcade","askarcadeassistantprompt":"Виправити помилки у моєму скрипті","profileempty":"Цей профіль не має змінних."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"Trợ giúp","profilevariables":"Biến số hồ sơ","constantsandfunctions":"Chức năng","suggestions":"Đề xuất","run":"Chạy","runanddebug":"Chạy và Gỡ lỗi","continue":"Tiếp","reset":"Thiết lập lại","stop":"Dừng","lastresults":"Kết quả cuối","close":"Đóng","output":"Đầu ra","console":"Bảng điều khiển","log":"Nhật ký","debugconsole":"Bảng điều khiển Gỡ lỗi","arcadeassistant":"Trợ lý Arcade","askarcadeassistant":"
|
|
1
|
+
{"help":"Trợ giúp","profilevariables":"Biến số hồ sơ","constantsandfunctions":"Chức năng","suggestions":"Đề xuất","run":"Chạy","runanddebug":"Chạy và Gỡ lỗi","continue":"Tiếp","reset":"Thiết lập lại","stop":"Dừng","lastresults":"Kết quả cuối","close":"Đóng","output":"Đầu ra","console":"Bảng điều khiển","log":"Nhật ký","debugconsole":"Bảng điều khiển Gỡ lỗi","arcadeassistant":"Trợ lý Arcade","askarcadeassistant":"Hỏi Trợ lý Arcade","askarcadeassistantprompt":"Sửa các lỗi trong script của tôi","profileempty":"Hồ sơ này không có bất kỳ biến nào."}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"帮助","profilevariables":"配置文件变量","constantsandfunctions":"函数","suggestions":"建议","run":"运行","runanddebug":"运行和调试","continue":"继续","reset":"重置","stop":"停止","lastresults":"最近结果","close":"关闭","output":"输出","console":"控制台","log":"日志","debugconsole":"调试控制台","arcadeassistant":"Arcade 助手","askarcadeassistant":"
|
|
1
|
+
{"help":"帮助","profilevariables":"配置文件变量","constantsandfunctions":"函数","suggestions":"建议","run":"运行","runanddebug":"运行和调试","continue":"继续","reset":"重置","stop":"停止","lastresults":"最近结果","close":"关闭","output":"输出","console":"控制台","log":"日志","debugconsole":"调试控制台","arcadeassistant":"Arcade 助手","askarcadeassistant":"询问 Arcade 助手","askarcadeassistantprompt":"修复脚本中的错误","profileempty":"此配置文件不具有任何变量。"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"說明","profilevariables":"設定檔變數","constantsandfunctions":"函數","suggestions":"建議","run":"執行","runanddebug":"執行和偵錯","continue":"繼續","reset":"重設","stop":"停止","lastresults":"前次幾個結果","close":"關閉","output":"輸出","console":"控制台","log":"記錄","debugconsole":"偵錯控制台","arcadeassistant":"Arcade Assistant","askarcadeassistant":"
|
|
1
|
+
{"help":"說明","profilevariables":"設定檔變數","constantsandfunctions":"函數","suggestions":"建議","run":"執行","runanddebug":"執行和偵錯","continue":"繼續","reset":"重設","stop":"停止","lastresults":"前次幾個結果","close":"關閉","output":"輸出","console":"控制台","log":"記錄","debugconsole":"偵錯控制台","arcadeassistant":"Arcade Assistant","askarcadeassistant":"詢問 Arcade Assistant","askarcadeassistantprompt":"修復我的指令碼中的錯誤","profileempty":"此設定檔沒有任何變數。"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"help":"說明","profilevariables":"設定檔變數","constantsandfunctions":"函數","suggestions":"建議","run":"執行","runanddebug":"執行和偵錯","continue":"繼續","reset":"重設","stop":"停止","lastresults":"前次幾個結果","close":"關閉","output":"輸出","console":"控制台","log":"記錄","debugconsole":"偵錯控制台","arcadeassistant":"Arcade Assistant","askarcadeassistant":"
|
|
1
|
+
{"help":"說明","profilevariables":"設定檔變數","constantsandfunctions":"函數","suggestions":"建議","run":"執行","runanddebug":"執行和偵錯","continue":"繼續","reset":"重設","stop":"停止","lastresults":"前次幾個結果","close":"關閉","output":"輸出","console":"控制台","log":"記錄","debugconsole":"偵錯控制台","arcadeassistant":"Arcade Assistant","askarcadeassistant":"詢問 Arcade Assistant","askarcadeassistantprompt":"修復我的指令碼中的錯誤","profileempty":"此設定檔沒有任何變數。"}
|
|
@@ -18278,7 +18278,7 @@ function se(t, e, r, n) {
|
|
|
18278
18278
|
const cr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
|
|
18279
18279
|
if (globalThis.esriConfig && (K4(cr, globalThis.esriConfig, !0), delete cr.has), !cr.assetsPath) {
|
|
18280
18280
|
{
|
|
18281
|
-
const t = "5.1.0-next.
|
|
18281
|
+
const t = "5.1.0-next.129";
|
|
18282
18282
|
cr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
|
|
18283
18283
|
}
|
|
18284
18284
|
cr.defaultAssetsPath = cr.assetsPath;
|