// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../../../chunks/tslib.es6 ../../../chunks/_rollupPluginBabelHelpers ../../../core/arrayUtils ../../../core/events ../../../core/maybe ../../../core/reactiveUtils ../../../core/accessorSupport/decorators/property ../../../core/has ../../../core/Logger ../../../core/accessorSupport/decorators/subclass ../../Widget ./GridViewModel ../../support/globalCss ../../support/widgetUtils ../../support/decorators/messageBundle ../../support/jsxFactory".split(" "),function(u,D,Kb,gb,Lb,ha,w,kg,lg,ud,vd, wd,xd,mg,yd,W){function X(b){const a=customElements.get(b.is);if(a){const c=a.version;c&&b.version&&c===b.version?console.warn(`The component ${b.is} has been loaded twice`):console.error(`Tried to define ${b.is} version ${b.version} when version ${a.version} is already in use. Something will probably break.`)}else Object.defineProperty(b,"version",{get(){return"24.3.13"}}),customElements.define(b.is,b)}function Mb(b,a){if(!Array.isArray(b)||!b.hasOwnProperty("raw"))throw Error("invalid template strings array"); return void 0!==Nb?Nb.createHTML(a):a}function ia(b,a,c=b,d){if(a===ja)return a;let e=void 0!==d?c._$Co?.[d]:c._$Cl;const f=va(a)?void 0:a._$litDirective$;return e?.constructor!==f&&(e?._$AO?.(!1),void 0===f?e=void 0:(e=new f(b),e._$AT(b,c,d)),void 0!==d?(c._$Co??(c._$Co=[]))[d]=e:c._$Cl=e),void 0!==e&&(a=ia(b,e._$AS(b,a.values),e,d)),a}function Ob(b){return b&&Object.prototype.hasOwnProperty.call(b,"__themes")}function zd(b=[]){return[b].flat(Infinity).filter(a=>{if(a instanceof hb)return!0;console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."); return!1})}function O(b,a,c={}){b&&Ob(customElements.get(b))&&console.warn(`The custom element definition for "${b}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`);a=zd(a);window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(b,a,c):Pb.push({themeFor:b,styles:a,include:c.include,moduleId:c.moduleId})}function ib(){return window.Vaadin&&window.Vaadin.styleModules? window.Vaadin.styleModules.getAllThemes():Pb}function Ad(b,a){return(b||"").split(" ").some(c=>(new RegExp(`^${c.split("*").join(".*")}$`,"u")).test(a))}function Bd(b=""){let a=0;b.startsWith("lumo-")||b.startsWith("material-")?a=1:b.startsWith("vaadin-")&&(a=2);return a}function Qb(b){const a=[];b.include&&[].concat(b.include).forEach(c=>{const d=ib().find(e=>e.moduleId===c);d?a.push(...Qb(d),...d.styles):console.warn(`Included moduleId ${c} not found in style registry`)},b.styles);return a}function Cd(b, a){const c=document.createElement("style");c.innerHTML=b.map(d=>d.cssText).join("\n");a.content.appendChild(c)}function Dd(b){const a=`${b}-default-theme`,c=ib().filter(d=>d.moduleId!==a&&Ad(d.themeFor,b)).map(d=>({...d,styles:[...Qb(d),...d.styles],includePriority:Bd(d.moduleId)})).sort((d,e)=>e.includePriority-d.includePriority);return 0d.moduleId===a)}function wa(b,a){if(b&&Ed.test(b)||"//"===b)return b;if(void 0===La){La=!1;try{const c=new URL("b","http://a");c.pathname= "c%20d";La="http://a/c%20d"===c.href}catch(c){}}a||=document.baseURI||window.location.href;if(La)try{return(new URL(b,a)).href}catch(c){return b}J||(J=document.implementation.createHTMLDocument("temp"),J.base=J.createElement("base"),J.head.appendChild(J.base),J.anchor=J.createElement("a"),J.body.appendChild(J.anchor));J.base.href=a;J.anchor.href=b;return J.anchor.href||b}function jb(b,a){return b.replace(Fd,function(c,d,e,f){return d+"'"+wa(e.replace(/["']/g,""),a)+"'"+f})}function kb(b){return b.substring(0, b.lastIndexOf("/")+1)}function Rb(b){b=jb((b.body?b.body:b).textContent,b.baseURI);const a=document.createElement("style");a.textContent=b;return a}function Gd(b){b=b.trim().split(/\s+/);const a=[];for(let g=0;gb.indexOf("-")?b:b.replace(Id,a=>a[1].toUpperCase()))}function Na(b){return Ma[b]||(Ma[b]=b.replace(Jd,"-$1").toLowerCase())}function Xb(b,a){let c=a.parentInfo&&Xb(b,a.parentInfo);if(c)for(let d=c.firstChild, e=0;d;d=d.nextSibling){if(a.parentIndex===e++)return d}else return b}function Kd(b,a,c){b=b._methodHost||b;return function(d){if(b[c])b[c](d,d.detail);else console.warn("listener method `"+c+"` not defined")}}function lb(b,a,c){let d=b[a];if(!d)d=b[a]={};else if(!b.hasOwnProperty(a)&&(d=b[a]=Object.create(b[a]),c))for(let e in d)for(b=d[e],a=d[e]=Array(b.length),c=0;c{h=h.info.methodInfo;--g;0===--e[h]&&f.push(h)});0!==g&&console.warn(`Computed graph for ${b.localName} incomplete; circular?`);b.constructor.__orderedComputedDeps=a}return a}function Od(b){const a=b.__computeInfo,c={};b=b[r.COMPUTE];const d=[];let e=0;for(let f in a){const g=a[f];e+=c[f]=g.args.filter(h=>!h.literal).length+(g.dynamicFn?1:0)}for(let f in b)a[f]||d.push(f);return{counts:c,ready:d,total:e}}function $b(b,a,c,d,e){a=nb(b,a,c,d,e);if(a===Aa)return!1;e=e.methodInfo;if(b.__dataHasAccessor&& b.__dataHasAccessor[e])return b._setPendingProperty(e,a,!0);b[e]=a;return!1}function ob(b,a,c,d,e,f,g){c.bindings=c.bindings||[];d={kind:d,target:e,parts:f,literal:g,isCompound:1!==f.length};c.bindings.push(d);if(d.target&&"attribute"!=d.kind&&"text"!=d.kind&&!d.isCompound&&"{"===d.parts[0].mode){let {event:n,negate:p}=d.parts[0];d.listenerEvent=n||Na(e)+"-changed";d.listenerNegate=p}c=a.nodeInfoList.length;for(g=0;gk.source.length&&"property"==h.kind&&!h.isCompound&&g.__isPropertyEffectsClient&& g.__dataHasAccessor&&g.__dataHasAccessor[h.target]?(c=c[a],a=h.target+a.slice(k.source.length),g._setPendingPropertyOrPath(a,c,!1,!0)&&b._enqueueClient(g)):(a=e.evaluator._evaluateBinding(b,k,a,c,d,f),a!==Aa&&(h.isCompound&&(c=g.__dataCompoundStorage[h.target],c[k.compoundIndex]=a,a=c.join("")),"attribute"===h.kind||"textContent"!==h.target&&("value"!==h.target||"input"!==g.localName&&"textarea"!==g.localName)||(a=void 0==a?"":a),Oa&&(a=Oa(a,h.target,h.kind,g)),"attribute"==h.kind?b._valueToNodeAttribute(g, a,h.target):(h=h.target,g.__isPropertyEffectsClient&&g.__dataHasAccessor&&g.__dataHasAccessor[h]?g[r.READ_ONLY]&&g[r.READ_ONLY][h]||g._setPendingProperty(h,a)&&b._enqueueClient(g):b._setUnmanagedPropertyToNode(g,h,a))))}function Qd(b,a,c){if(c.listenerEvent){let d=c.parts[0];b.addEventListener(c.listenerEvent,function(e){var f=c.target,g=d.source,h=d.negate;let k=e.detail,l=k&&k.path;l?(g+=l.slice(f.length),e=k&&k.value):e=e.currentTarget[f];a[r.READ_ONLY]&&a[r.READ_ONLY][g]||!a._setPendingPropertyOrPath(g, h?!e:e,!0,!!l)||k&&k.queueProperty||a._invalidateProperties()})}}function bc(b,a,c,d,e,f){f=a.static||f&&("object"!==typeof f||f[a.methodName]);e={methodName:a.methodName,args:a.args,methodInfo:e,dynamicFn:f};for(let g=0,h;g=c&&(c="#");switch(c){case "'":case '"':a.value=b.slice(1,-1);a.literal=!0;break;case "#":a.value=Number(b),a.literal=!0}a.literal||(a.rootProperty=Y(b),a.structured=0<=b.indexOf("."),a.structured&&(a.wildcard=".*"==b.slice(-2),a.wildcard&&(a.name=b.slice(0,-2))));return a}function dc(b,a,c){b=G(b,c);void 0===b&&(b=a[c]);return b}function ec(b,a,c,d){d={indexSplices:d};qb&&!b._overrideLegacyUndefined&&(a.splices=d);b.notifyPath(c+ ".splices",d);b.notifyPath(c+".length",a.length);qb&&!b._overrideLegacyUndefined&&(d.indexSplices=[])}function Ba(b,a,c,d,e,f){ec(b,a,c,[{index:d,addedCount:e,removed:f,object:a,type:"splice"}])}function Td(b){return b[0].toUpperCase()+b.substring(1)}function Ud(){rb=!1;const b=la.length;for(let a=0;a{throw d;})}}la.splice(0,b);fc+=b}function Vd(){const b=!!ma.size;ma.forEach(a=>{try{a.flush()}catch(c){setTimeout(()=>{throw c;})}});return b} function sb(b,a,c=b.getAttribute("dir")){a?b.setAttribute("dir",a):null!=c&&b.removeAttribute("dir")}function tb(b,a){return b.split(".").reduce((c,d)=>c?c[d]:void 0,a)}function gc(b){window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(b):b.querySelector("template")&&console.warn(`WARNING: