@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 20.8 kB
JavaScript
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5721],{68197:(t,e,o)=>{o.d(e,{A:()=>y});var r,i,s=o(40876),n=o(34727),l=o(56507);function a(t){return(0,n.qE)((0,l.Vr)(t),0,255)}function h(t,e,o){return t=Number(t),isNaN(t)?o:t<e?e:t>o?o:t}function p(t,e){const o=t.toString(16).padStart(2,"0");return e?o.slice(0,1):o}class y{static blendColors(t,e,o,r=new y){return r.r=Math.round(t.r+(e.r-t.r)*o),r.g=Math.round(t.g+(e.g-t.g)*o),r.b=Math.round(t.b+(e.b-t.b)*o),r.a=t.a+(e.a-t.a)*o,r._sanitize()}static fromRgb(t,e){const o=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(o){const t=o[2].split(/\s*,\s*/),r=o[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){const o=t[0];if("%"===o.charAt(o.length-1)){const o=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(o[3]=parseFloat(t[3])),y.fromArray(o,e)}return y.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return y.fromArray((0,s.z$)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new y){if("#"!==t[0]||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const o=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),s=5===t.length?15:parseInt(t.slice(4),16);return y.fromArray([o+16*o,r+16*r,i+16*i,(s+16*s)/255],e)}case 7:case 9:{const o=parseInt(t.slice(1,3),16),r=parseInt(t.slice(3,5),16),i=parseInt(t.slice(5,7),16),s=7===t.length?255:parseInt(t.slice(7),16);return y.fromArray([o,r,i,s/255],e)}default:return null}}static fromArray(t,e=new y){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const o=(0,s.V6)(t)?(0,s.TS)(t):null;return o&&y.fromArray(o,e)||y.fromRgb(t,e)||y.fromHex(t,e)}static fromJSON(t){return null!=t?new y([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?y.fromString(t,this):Array.isArray(t)?y.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof y||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,o=t?.digits??6,r=3===o||4===o,i=4===o||8===o,s=`#${p(this.r,r)}${p(this.g,r)}${p(this.b,r)}${i?p(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=y.AlphaMode.ALWAYS){const e=a(this.r),o=a(this.g),r=a(this.b);return t===y.AlphaMode.ALWAYS||1!==this.a?[e,o,r,a(255*this.a)]:[e,o,r]}clone(){return new y(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(h(this.r,0,255)),this.g=Math.round(h(this.g,0,255)),this.b=Math.round(h(this.b,0,255)),this.a=h(this.a,0,1),this}_set(t,e,o,r){this.r=t,this.g=e,this.b=o,this.a=r}}y.prototype.declaredClass="esri.Color",(i=(r=y).AlphaMode||(r.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},69540:(t,e,o)=>{o.d(e,{A:()=>c});var r=o(90237),i=o(69622),s=(o(44208),o(4718)),n=(o(53966),o(97768)),l=o(35666),a=o(88620),h=o(40608);const p=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,n.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,o=t.store,r={},i=new Map;for(const t in e){const n=e[t],a=o?.originOf(t),h=n.clonable;if(n.readOnly||!1===h||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[t];let y=null;y="function"==typeof h?h(p):"reference"===h?p:(0,s.TU)(p),null!=p&&null==y||(a===l.Gr.DEFAULTS?i.set(t,y):r[t]=y)}const h=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,a.oY)(h)?.store;if(t)for(const[e,o]of i)t.set(e,o,l.Gr.DEFAULTS)}return h}};return e=(0,r._)([(0,h.$)("esri.core.Clonable")],e),e};let y=class extends(p(i.A)){};y=(0,r._)([(0,h.$)("esri.core.Clonable")],y),(y||(y={})).ClonableMixin=p;const c=y},36708:(t,e,o)=>{o.d(e,{C_:()=>c,OH:()=>m,Vh:()=>g,on:()=>y,pc:()=>S,wB:()=>a,z7:()=>h}),o(60999),o(5503);var r=o(37955),i=o(36563),s=o(97768),n=o(74887),l=o(14012);function a(t,e,o={}){return p(t,e,o,u)}function h(t,e,o={}){return p(t,e,o,d)}function p(t,e,o={},r){let i=null;const n=o.once?(t,o)=>{r(t)&&((0,s.xt)(i),e(t,o))}:(t,o)=>{r(t)&&e(t,o)};if(i=(0,l.Cn)(t,n,o.sync,o.equals),o.initial){const e=t();n(e,e)}return i}function y(t,e,o,n={}){let l=null,h=null,p=null;function y(){l&&h&&(h.remove(),n.onListenerRemove?.(l),l=null,h=null)}function c(t){n.once&&n.once&&(0,s.xt)(p),o(t)}const u=a(t,((t,o)=>{y(),(0,r.wb)(t)&&(l=t,h=(0,r.on)(t,e,c),n.onListenerAdd?.(t))}),{sync:n.sync,initial:!0});return p=(0,i.hA)((()=>{u.remove(),y()})),p}function c(t,e){return function(t,e,o){if((0,n.G4)(o))return Promise.reject((0,n.NK)());const r=t();if(e?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((r,s)=>{l=(0,i.vE)([(0,n.u7)(o,(()=>{a(),s((0,n.NK)())})),p(t,(t=>{a(),r(t)}),{sync:!1,once:!0},e??u)])}))}(t,d,e)}function u(t){return!0}function d(t){return!!t}o(80559);const m={sync:!0},g={initial:!0},S={sync:!0,initial:!0}},50498:(t,e,o)=>{o.d(e,{Ye:()=>y,gy:()=>p,yR:()=>c});var r=o(66552),i=o(5443),s=o(91075),n=o(48526),l=o(86738),a=o(39829),h=o(82799);const p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),y=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),c={base:s.A,key:"type",typeMap:{extent:i.A,multipoint:n.A,point:l.A,polyline:h.A,polygon:a.A}}},65851:(t,e,o)=>{o.d(e,{A:()=>h});var r=o(90237),i=o(10107),s=(o(44208),o(53966),o(87811),o(40608)),n=o(31593),l=o(20378);let a=class extends l.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,r._)([(0,i.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":n.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,r._)([(0,i.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,s.$)("esri.symbols.FillSymbol")],a);const h=a},11831:(t,e,o)=>{o.d(e,{A:()=>c});var r,i=o(90237),s=o(25482),n=o(90629),l=o(10107),a=o(79901),h=(o(44208),o(87811),o(40608)),p=o(5760);let y=r=class extends s.A{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(t){return(0,n.cr)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,i._)([(0,l.MZ)({type:p.h9,json:{default:"none",write:!0}})],y.prototype,"decoration",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"family",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:(t,e,o)=>({enabled:!o||!o.textSymbol3D})}}})],y.prototype,"size",void 0),(0,i._)([(0,a.w)("size")],y.prototype,"castSize",null),(0,i._)([(0,l.MZ)({type:p._R,json:{default:"normal",write:!0}})],y.prototype,"style",void 0),(0,i._)([(0,l.MZ)({type:p.NM,json:{default:"normal",write:!0}})],y.prototype,"weight",void 0),y=r=(0,i._)([(0,h.$)("esri.symbols.Font")],y);const c=y},89420:(t,e,o)=>{o.d(e,{A:()=>p});var r=o(90237),i=o(90629),s=o(10107),n=o(56507),l=(o(44208),o(87811),o(40608)),a=o(20378);let h=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,r._)([(0,s.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],h.prototype,"angle",void 0),(0,r._)([(0,s.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],h.prototype,"xoffset",void 0),(0,r._)([(0,s.MZ)({type:Number,cast:i.cr,json:{write:!0}})],h.prototype,"yoffset",void 0),(0,r._)([(0,s.MZ)({cast:t=>"auto"===t?t:(0,n.GB)((0,i.cr)(t)),json:{write:!0}})],h.prototype,"size",void 0),h=(0,r._)([(0,l.$)("esri.symbols.MarkerSymbol")],h);const p=h},94985:(t,e,o)=>{o.d(e,{A:()=>m});var r,i=o(90237),s=o(68197),n=o(66552),l=o(4718),a=o(10107),h=(o(44208),o(53966),o(93223)),p=o(40608),y=o(65851),c=o(31593);const u=new n.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let d=r=class extends y.A{constructor(...t){super(...t),this.color=new s.A([0,0,0,.25]),this.outline=new c.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.style=t),e&&(r.outline=e),o&&(r.color=o),r}clone(){return new r({color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,i._)([(0,a.MZ)()],d.prototype,"color",void 0),(0,i._)([(0,a.MZ)()],d.prototype,"outline",void 0),(0,i._)([(0,h.e)({esriSFS:"simple-fill"},{readOnly:!0})],d.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"style",void 0),d=r=(0,i._)([(0,p.$)("esri.symbols.SimpleFillSymbol")],d);const m=d},31593:(t,e,o)=>{o.d(e,{A:()=>v});var r=o(90237),i=o(66552),s=o(4718),n=o(90629),l=o(10107),a=(o(44208),o(53966),o(93223)),h=o(40608),p=(o(87811),o(20378));let y=class extends p.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,r._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],y.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:Number,cast:n.cr,json:{write:!0}})],y.prototype,"width",void 0),y=(0,r._)([(0,h.$)("esri.symbols.LineSymbol")],y);const c=y;var u,d=o(68197),m=o(25482),g=o(36005),S=o(43937),f=o(83213);let b=u=class extends m.A{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,o,r){e[o]="web-map"===r?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,o,r){"web-map"===r?.origin||(e[o]=t)}clone(){return new u({color:(0,s.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,r._)([(0,l.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],b.prototype,"placement",void 0),(0,r._)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.MZ)({json:{origins:{"web-map":{write:!1}}}})],b.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:f.z})],b.prototype,"style",void 0),(0,r._)([(0,S.K)("style")],b.prototype,"writeStyle",null),(0,r._)([(0,l.MZ)({type:d.A,value:null,json:{write:{allowNull:!0}}})],b.prototype,"color",null),(0,r._)([(0,g.w)("color")],b.prototype,"readColor",null),(0,r._)([(0,S.K)("color")],b.prototype,"writeColor",null),b=u=(0,r._)([(0,h.$)("esri.symbols.LineSymbolMarker")],b);const w=b;var _;const M=new i.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let A=_=class extends c{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,o,r,i,s){if(t&&"string"!=typeof t)return t;const l={};return null!=t&&(l.style=t),null!=e&&(l.color=e),null!=o&&(l.width=(0,n.cr)(o)),null!=r&&(l.cap=r),null!=i&&(l.join=i),null!=s&&(l.miterLimit=(0,n.cr)(s)),l}clone(){return new _({color:(0,s.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,r._)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],A.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:M.apiValues,json:{read:M.read,write:M.write}})],A.prototype,"style",void 0),(0,r._)([(0,l.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&null==o?.origin})}}})],A.prototype,"cap",void 0),(0,r._)([(0,l.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&null==o?.origin})}}})],A.prototype,"join",void 0),(0,r._)([(0,l.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],A.prototype,"marker",void 0),(0,r._)([(0,l.MZ)({type:Number,json:{read:!1,write:!1}})],A.prototype,"miterLimit",void 0),A=_=(0,r._)([(0,h.$)("esri.symbols.SimpleLineSymbol")],A);const v=A},53930:(t,e,o)=>{o.d(e,{A:()=>S});var r,i=o(90237),s=o(68197),n=o(66552),l=o(4718),a=o(90629),h=o(10107),p=(o(44208),o(53966),o(93223)),y=o(40608),c=o(43937),u=o(89420),d=o(31593);const m=new n.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let g=r=class extends u.A{constructor(...t){super(...t),this.color=new s.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new d.A}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),null!=e&&(i.size=(0,a.cr)(e)),o&&(i.outline=o),r&&(i.color=r),i}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new r({angle:this.angle,color:(0,l.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,i._)([(0,h.MZ)()],g.prototype,"color",void 0),(0,i._)([(0,c.K)("color")],g.prototype,"writeColor",null),(0,i._)([(0,p.e)({esriSMS:"simple-marker"},{readOnly:!0})],g.prototype,"type",void 0),(0,i._)([(0,h.MZ)()],g.prototype,"size",void 0),(0,i._)([(0,h.MZ)({type:m.apiValues,json:{read:m.read,write:m.write}})],g.prototype,"style",void 0),(0,i._)([(0,h.MZ)({type:String,json:{write:!0}})],g.prototype,"path",null),(0,i._)([(0,h.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":d.A}},json:{default:null,write:!0}})],g.prototype,"outline",void 0),g=r=(0,i._)([(0,y.$)("esri.symbols.SimpleMarkerSymbol")],g);const S=g},20378:(t,e,o)=>{o.d(e,{A:()=>u});var r=o(90237),i=o(68197),s=o(66552),n=o(25482),l=o(10107),a=(o(44208),o(53966),o(87811),o(36005)),h=o(40608);const p=new s.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let y=0,c=class extends n.A{constructor(t){super(t),this.id="sym"+y++,this.type=null,this.color=new i.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,r._)([(0,l.MZ)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write,isRequired:!0}}})],c.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:i.A,json:{write:{allowNull:!0}}})],c.prototype,"color",void 0),(0,r._)([(0,a.w)("color")],c.prototype,"readColor",null),c=(0,r._)([(0,h.$)("esri.symbols.Symbol")],c);const u=c},68249:(t,e,o)=>{o.d(e,{A:()=>S});var r,i=o(90237),s=o(68197),n=o(4718),l=o(90629),a=o(10107),h=o(79901),p=o(93223),y=o(40608),c=o(43937),u=o(11831),d=o(20378),m=o(5760);let g=r=class extends d.A{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.A,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),o&&(r.color=o),r}writeLineWidth(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}castLineWidth(t){return(0,l.cr)(t)}writeLineHeight(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,n.o8)(this.backgroundColor),borderLineColor:(0,n.o8)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,n.o8)(this.color),font:this.font&&this.font.clone(),haloColor:(0,n.o8)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,i._)([(0,a.MZ)({type:s.A,json:{write:!0}})],g.prototype,"backgroundColor",void 0),(0,i._)([(0,a.MZ)({type:s.A,json:{write:!0}})],g.prototype,"borderLineColor",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0},cast:l.cr})],g.prototype,"borderLineSize",void 0),(0,i._)([(0,a.MZ)({type:u.A,json:{write:!0}})],g.prototype,"font",void 0),(0,i._)([(0,a.MZ)({...m.rM,json:{write:!0}})],g.prototype,"horizontalAlignment",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"kerning",void 0),(0,i._)([(0,a.MZ)({type:s.A,json:{write:!0}})],g.prototype,"haloColor",void 0),(0,i._)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"haloSize",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rightToLeft",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],g.prototype,"rotated",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"text",void 0),(0,i._)([(0,p.e)({esriTS:"text"},{readOnly:!0})],g.prototype,"type",void 0),(0,i._)([(0,a.MZ)({...m.x0,json:{write:!0}})],g.prototype,"verticalAlignment",void 0),(0,i._)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"xoffset",void 0),(0,i._)([(0,a.MZ)({type:Number,cast:l.cr,json:{write:!0}})],g.prototype,"yoffset",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],g.prototype,"angle",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"width",void 0),(0,i._)([(0,a.MZ)({type:Number})],g.prototype,"lineWidth",void 0),(0,i._)([(0,c.K)("lineWidth")],g.prototype,"writeLineWidth",null),(0,i._)([(0,h.w)("lineWidth")],g.prototype,"castLineWidth",null),(0,i._)([(0,a.MZ)(m.Tb)],g.prototype,"lineHeight",void 0),(0,i._)([(0,c.K)("lineHeight")],g.prototype,"writeLineHeight",null),g=r=(0,i._)([(0,y.$)("esri.symbols.TextSymbol")],g);const S=g},83213:(t,e,o)=>{o.d(e,{x:()=>r,z:()=>i});const r=["begin","end","begin-end"],i=["arrow","circle","square","diamond","cross","x"]},5760:(t,e,o)=>{o.d(e,{NM:()=>l,Tb:()=>a,_R:()=>n,h9:()=>s,rM:()=>h,x0:()=>p,y7:()=>y});var r=o(34727),i=o(56507);const s=["none","underline","line-through"],n=["normal","italic","oblique"],l=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,i.GB)(t);return 0===e?1:(0,r.qE)(e,.1,4)},nonNullable:!0},h={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},y=8}}]);