import{L as jn,_ as ro,u as oo,r as z,Y as ao,t as lo,a7 as ho,C as co,N as uo,d as Yt,o as et,c as at,k as P,K as Hi,f as b,e as Q,w as tt,Q as Rn,R as In,j as Ki,F as _s,l as gt,m as ot,x as qi,G as fo,H as go,Z as wn,p as po,q as mo}from"./index.4144b0df.js";import _o from"./downloads.4cdbbcc5.js";import{_ as xo,a as yo}from"./zhankaiss.dd067ea4.js";import{_ as So,a as vo}from"./face.9a19de2e.js";import"./index.b8675889.js";/* empty css */import{u as xs}from"./useEcharts.4511b2cd.js";import"./linesGL.901ceb35.js";import{d as De}from"./download.1ecc0939.js";import{e as Co}from"./element-resize-detector.ff2fdb0d.js";import{i as Eo,ar as hi}from"./install.5b5161c6.js";import"./browser-detector.e77caf03.js";const Ro={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class Io extends Error{constructor(t){const e=Ro[t];super(e),this.code=t,this.name="AssertionError",this.message=e}}const gr=Io;function ut(n,t){if(!n)throw new gr(t)}const mt={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function zt(n){const t=we();for(let e=0,i=n.length;es&&(l=l|mt.RIGHT),ar&&(l=l|mt.ABOVE),l===mt.UNKNOWN&&(l=mt.INTERSECTING),l}function we(){return[1/0,1/0,-1/0,-1/0]}function Ze(n,t,e,i,s){return s?(s[0]=n,s[1]=t,s[2]=e,s[3]=i,s):[n,t,e,i]}function mr(n){return Ze(1/0,1/0,-1/0,-1/0,n)}function rn(n,t){const e=n[0],i=n[1];return Ze(e,i,e,i,t)}function Ao(n,t,e,i,s){const r=mr(s);return yr(r,n,t,e,i)}function _r(n,t){return n[0]==t[0]&&n[2]==t[2]&&n[1]==t[1]&&n[3]==t[3]}function xr(n,t){t[0]n[2]&&(n[2]=t[0]),t[1]n[3]&&(n[3]=t[1])}function yr(n,t,e,i,s){for(;e=t[0]&&n[1]<=t[3]&&n[3]>=t[1]}function ko(n){return n[2]=o&&p<=l),!i&&!!(r&mt.RIGHT)&&!(s&mt.RIGHT)&&(_=f-(d-l)*g,i=_>=a&&_<=h),!i&&!!(r&mt.BELOW)&&!(s&mt.BELOW)&&(p=d-(f-a)/g,i=p>=o&&p<=l),!i&&!!(r&mt.LEFT)&&!(s&mt.LEFT)&&(_=f-(d-o)*g,i=_>=a&&_<=h)}return i}function Rr(n,t){const e=t.getExtent(),i=_i(n);if(t.canWrapX()&&(i[0]=e[2])){const s=bt(e),o=Math.floor((i[0]-e[0])/s)*s;n[0]-=o,n[2]-=o}return n}function Po(n,t){if(t.canWrapX()){const e=t.getExtent();if(!isFinite(n[0])||!isFinite(n[2]))return[[e[0],n[1],e[2],n[3]]];Rr(n,t);const i=bt(e);if(bt(n)>i)return[[e[0],n[1],e[2],n[3]]];if(n[0]e[2])return[[n[0],n[1],e[2],n[3]],[e[0],n[1],n[2]-i,n[3]]]}return[n]}const Ct={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};class Go{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const Bo=Go;class No{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const He=No;function Wo(n,t,e){let i,s;e=e||yi;let r=0,o=n.length,a=!1;for(;r>1),s=+e(n[i],t),s<0?r=i+1:(o=i,a=!s);return a?r:~r}function yi(n,t){return n>t?1:n0?s-1:s}return i-1}if(e>0){for(let s=1;s0:!1}removeEventListener(t,e){const i=this.listeners_&&this.listeners_[t];if(i){const s=i.indexOf(e);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[s]=Si,++this.pendingRemovals_[t]):(i.splice(s,1),i.length===0&&delete this.listeners_[t]))}}}const Mr=zo;function $(){throw new Error("Unimplemented abstract method.")}let Vo=0;function st(n){return n.ol_uid||(n.ol_uid=String(++Vo))}function Zo(n){return Math.pow(n,3)}function Uo(n){return 1-Zo(1-n)}function jo(n){return 3*n*n-2*n*n*n}const he=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"";he.includes("firefox");const Ho=he.includes("safari")&&!he.includes("chrom");Ho&&(he.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(he));he.includes("webkit")&&he.includes("edge");he.includes("macintosh");const Jn=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,Ko=typeof Image<"u"&&Image.prototype.decode;(function(){let n=!1;try{const t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch{}return n})();function Pt(n,t,e,i){let s;return e&&e.length?s=e.shift():Jn?s=new OffscreenCanvas(n||300,t||300):s=document.createElement("canvas"),n&&(s.width=n),t&&(s.height=t),s.getContext("2d",i)}function qo(n){const t=n.canvas;t.width=1,t.height=1,n.clearRect(0,0,1,1)}const ht={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function jt(n,t,e,i,s){if(i&&i!==n&&(e=e.bind(i)),s){const o=e;e=function(){n.removeEventListener(t,e),o.apply(this,arguments)}}const r={target:n,type:t,listener:e};return n.addEventListener(t,e),r}function on(n,t,e,i){return jt(n,t,e,i,!0)}function Ht(n){n&&n.target&&(n.target.removeEventListener(n.type,n.listener),qn(n))}function Jo(n,t,e){const i=n;let s=!0,r=!1,o=!1;const a=[on(i,Ct.LOAD,function(){o=!0,r||t()})];return i.src&&Ko?(r=!0,i.decode().then(function(){s&&t()}).catch(function(l){s&&(o?t():e())})):a.push(on(i,Ct.ERROR,e)),function(){s=!1,a.forEach(Ht)}}const Ar={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class Qo{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Ar[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const Lr=Qo,Fi=6378137,We=Math.PI*Fi,$o=[-We,-We,We,We],ta=[-180,-85,180,85],Ji=Fi*Math.log(Math.tan(Math.PI/2));class ke extends Lr{constructor(t){super({code:t,units:"m",extent:$o,global:!0,worldExtent:ta,getPointResolution:function(e,i){return e/Math.cosh(i[1]/Fi)}})}}const ys=[new ke("EPSG:3857"),new ke("EPSG:102100"),new ke("EPSG:102113"),new ke("EPSG:900913"),new ke("http://www.opengis.net/def/crs/EPSG/0/3857"),new ke("http://www.opengis.net/gml/srs/epsg.xml#3857")];function ea(n,t,e){const i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;sJi?r=Ji:r<-Ji&&(r=-Ji),t[s+1]=r}return t}function ia(n,t,e){const i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;s1?(e=s,i=r):l>0&&(e+=o*l,i+=a*l)}return ze(n,t,e,i)}function ze(n,t,e,i){const s=e-n,r=i-t;return s*s+r*r}function Re(n){return n*Math.PI/180}function Cs(n,t){const e=n%t;return e*t<0?e+t:e}function Mt(n,t,e){return n+e*(t-n)}function ha(n,t){const e=Math.pow(10,t);return Math.round(n*e)/e}function ca(n,t){return n[0]+=+t[0],n[1]+=+t[1],n}function Tr(n,t){const e=n[0],i=n[1],s=t[0],r=t[1],o=s[0],a=s[1],l=r[0],h=r[1],c=l-o,u=h-a,d=c===0&&u===0?0:(c*(e-o)+u*(i-a))/(c*c+u*u||0);let f,g;return d<=0?(f=o,g=a):d>=1?(f=l,g=h):(f=o+d*c,g=a+d*u),[f,g]}function Ft(n,t){let e=!0;for(let i=n.length-1;i>=0;--i)if(n[i]!=t[i]){e=!1;break}return e}function ua(n,t){const e=Math.cos(t),i=Math.sin(t),s=n[0]*e-n[1]*i,r=n[1]*e+n[0]*i;return n[0]=s,n[1]=r,n}function Ci(n,t){const e=n[0]-t[0],i=n[1]-t[1];return e*e+i*i}function Es(n,t){return Math.sqrt(Ci(n,t))}function da(n,t){return Ci(n,Tr(n,t))}function fa(n,t){if(t.canWrapX()){const e=bt(t.getExtent()),i=ga(n,t,e);i&&(n[0]-=i*e)}return n}function ga(n,t,e){const i=t.getExtent();let s=0;return t.canWrapX()&&(n[0]i[2])&&(e=e||bt(i),s=Math.floor((n[0]-i[0])/e)),s}const Qn=63710088e-1;function pa(n,t,e){e=e||Qn;const i=Re(n[1]),s=Re(t[1]),r=(s-i)/2,o=Re(t[0]-n[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(s);return 2*e*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}function Mn(n,t){let e=0;for(let i=0,s=n.length;ikr.warn||console.warn(...n)}let Wn=!0;function xa(n){Wn=!(n===void 0?!0:n)}function Fr(n,t){if(t!==void 0){for(let e=0,i=n.length;e=-180&&n[0]<=180&&n[1]>=-90&&n[1]<=90&&(Wn=!1,_a("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),n}function ts(n,t){return n}function Xe(n,t){return n}function Ra(){Rs(ys),Rs(vs),Ca(vs,ys,ea,ia)}Ra();const Or={PROPERTYCHANGE:"propertychange"};class yn extends Mr{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(Ct.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,s=new Array(i);for(let r=0;rr&&(h-a)*(r-l)-(s-a)*(c-l)>0&&o++:c<=r&&(h-a)*(r-l)-(s-a)*(c-l)<0&&o--,a=h,l=c}return o!==0}function Br(n,t,e,i,s,r){if(e.length===0||!Se(n,t,e[0],i,s,r))return!1;for(let o=1,a=e.length;o=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:Gr(n,t,e,i,function(o,a){return Oo(s,o,a)}):!1}function ba(n,t,e,i,s){return!!(es(n,t,e,i,s)||Se(n,t,e,i,s[0],s[1])||Se(n,t,e,i,s[0],s[3])||Se(n,t,e,i,s[2],s[1])||Se(n,t,e,i,s[2],s[3]))}function Da(n,t,e,i,s){if(!ba(n,t,e[0],i,s))return!1;if(e.length===1)return!0;for(let r=1,o=e.length;r0;)this.pop()}extend(t){for(let e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new $i(se.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let i=0,s=e.length;i=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new $i(se.REMOVE,e,t)),e}setAt(t,e){const i=this.getLength();if(t>=i){this.insertAt(t,e);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const s=this.array_[t];this.array_[t]=e,this.dispatchEvent(new $i(se.REMOVE,s,t)),this.dispatchEvent(new $i(se.ADD,e,t))}updateLength_(){this.set(Ds.LENGTH,this.array_.length)}assertUnique_(t,e){for(let i=0,s=this.array_.length;ie;){if(i-e>600){var r=i-e+1,o=t-e+1,a=Math.log(r),l=.5*Math.exp(2*a/3),h=.5*Math.sqrt(a*l*(r-l)/r)*(o-r/2<0?-1:1),c=Math.max(e,Math.floor(t-o*l/r+h)),u=Math.min(i,Math.floor(t+(r-o)*l/r+h));Wr(n,t,c,u,s)}var d=n[t],f=e,g=i;for(ci(n,e,t),s(n[i],d)>0&&ci(n,e,i);f0;)g--}s(n[e],d)===0?ci(n,e,g):(g++,ci(n,g,i)),g<=t&&(e=g+1),t<=g&&(i=g-1)}}function ci(n,t,e){var i=n[t];n[t]=n[e],n[e]=i}function Ja(n,t){return nt?1:0}class Xr{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let e=this.data;const i=[];if(!en(t,e))return i;const s=this.toBBox,r=[];for(;e;){for(let o=0;o=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(s,r,e)}_split(t,e){const i=t[e],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);const o=this._chooseSplitIndex(i,r,s),a=Pe(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,Fe(i,this.toBBox),Fe(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)}_splitRoot(t,e){this.data=Pe([t,e]),this.data.height=t.height+1,this.data.leaf=!1,Fe(this.data,this.toBBox)}_chooseSplitIndex(t,e,i){let s,r=1/0,o=1/0;for(let a=e;a<=i-e;a++){const l=di(t,0,a,this.toBBox),h=di(t,a,i,this.toBBox),c=il(l,h),u=An(l)+An(h);c=e;h--){const c=t.children[h];fi(a,t.leaf?r(c):c),l+=tn(a)}return l}_adjustParentBBoxes(t,e,i){for(let s=i;s>=0;s--)fi(e[s],t)}_condense(t){for(let e=t.length-1,i;e>=0;e--)t[e].children.length===0?e>0?(i=t[e-1].children,i.splice(i.indexOf(t[e]),1)):this.clear():Fe(t[e],this.toBBox)}}function Qa(n,t,e){if(!e)return t.indexOf(n);for(let i=0;i=n.minX&&t.maxY>=n.minY}function Pe(n){return{children:n,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function ks(n,t,e,i,s){const r=[t,e];for(;r.length;){if(e=r.pop(),t=r.pop(),e-t<=i)continue;const o=t+Math.ceil((e-t)/i/2)*i;qa(n,o,t,e,s),r.push(t,o,o,e)}}class nl{constructor(t){this.rbush_=new Xr(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[st(e)]=i}load(t,e){const i=new Array(e.length);for(let s=0,r=e.length;s=200&&a.status<300){const h=t.getType();let c;h=="json"||h=="text"?c=a.responseText:h=="xml"?(c=a.responseXML,c||(c=new DOMParser().parseFromString(a.responseText,"application/xml"))):h=="arraybuffer"&&(c=a.response),c?r(t.readFeatures(c,{extent:e,featureProjection:s}),t.readProjection(c)):o()}else o()},a.onerror=o,a.send()}function Fs(n,t){return function(e,i,s,r,o){const a=this;al(n,t,e,i,s,function(l,h){a.addFeatures(l),r!==void 0&&r(l)},o||Si)}}class $t extends He{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class ll extends Aa{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=Si,this.format_=t.format,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(ut(this.format_,7),this.loader_=Fs(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:sl;const e=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=e?new Yn:null,this.loadedExtentsRtree_=new Yn,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,s;Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),!e&&i===void 0&&(i=new Xn(s)),s!==void 0&&this.addFeaturesInternal(s),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=st(t);if(!this.addToIndex_(e,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const s=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(s,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new $t(wt.ADDFEATURE,t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[jt(e,Ct.CHANGE,this.handleFeatureChange_,this),jt(e,Or.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,e){let i=!0;const s=e.getId();return s!==void 0&&(s.toString()in this.idIndex_?i=!1:this.idIndex_[s.toString()]=e),i&&(ut(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],s=[];for(let r=0,o=t.length;r{e||(e=!0,this.addFeature(i.element),e=!1)}),t.addEventListener(se.REMOVE,i=>{e||(e=!0,this.removeFeature(i.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(Ht);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const i=s=>{this.removeFeatureInternal(s)};this.featuresRtree_.forEach(i);for(const s in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[s])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new $t(wt.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(s){if(s.getGeometry().intersectsCoordinate(t))return e(s)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){if(i.getGeometry().intersectsExtent(t)){const r=e(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),vi(this.nullGeometryFeatures_)||Kn(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(i){e.push(i)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const s=Po(t,e);return[].concat(...s.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],s=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const l=[-1/0,-1/0,1/0,1/0];return e=e||wr,this.featuresRtree_.forEachInExtent(l,function(h){if(e(h)){const c=h.getGeometry(),u=a;if(a=c.closestPointXY(i,s,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new $t(wt.FEATURESLOADEND,void 0,c))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new $t(wt.FEATURESLOADERROR))}),s.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,function(s){if(_r(s.extent,t))return i=s,!0}),i&&e.remove(i)}removeFeature(t){if(!t)return;const e=st(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=st(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(Ht),delete this.featureChangeKeys_[e];const s=t.getId();return s!==void 0&&delete this.idIndex_[s.toString()],delete this.uidIndex_[e],this.dispatchEvent(new $t(wt.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(const i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){ut(this.format_,7),this.url_=t,this.setLoader(Fs(t,this.format_))}}const Yr=ll,q={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};class hl extends ce{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);typeof t.properties=="object"&&(delete e.properties,Object.assign(e,t.properties)),e[q.OPACITY]=t.opacity!==void 0?t.opacity:1,ut(typeof e[q.OPACITY]=="number",64),e[q.VISIBLE]=t.visible!==void 0?t.visible:!0,e[q.Z_INDEX]=t.zIndex,e[q.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,e[q.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,e[q.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,e[q.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=e.className!==void 0?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return e.opacity=yt(Math.round(this.getOpacity()*100)/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=i===void 0&&!e.managed?1/0:i,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return $()}getLayerStatesArray(t){return $()}getExtent(){return this.get(q.EXTENT)}getMaxResolution(){return this.get(q.MAX_RESOLUTION)}getMinResolution(){return this.get(q.MIN_RESOLUTION)}getMinZoom(){return this.get(q.MIN_ZOOM)}getMaxZoom(){return this.get(q.MAX_ZOOM)}getOpacity(){return this.get(q.OPACITY)}getSourceState(){return $()}getVisible(){return this.get(q.VISIBLE)}getZIndex(){return this.get(q.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(q.EXTENT,t)}setMaxResolution(t){this.set(q.MAX_RESOLUTION,t)}setMinResolution(t){this.set(q.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(q.MAX_ZOOM,t)}setMinZoom(t){this.set(q.MIN_ZOOM,t)}setOpacity(t){ut(typeof t=="number",64),this.set(q.OPACITY,t)}setVisible(t){this.set(q.VISIBLE,t)}setZIndex(t){this.set(q.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const cl=hl,zn={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Tt={ANIMATING:0,INTERACTING:1},kt={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};function Os(n,t,e){return function(i,s,r,o,a){if(!i)return;if(!s&&!t)return i;const l=t?0:r[0]*s,h=t?0:r[1]*s,c=a?a[0]:0,u=a?a[1]:0;let d=n[0]+l/2+c,f=n[2]-l/2+c,g=n[1]+h/2+u,p=n[3]-h/2+u;d>f&&(d=(f+d)/2,f=d),g>p&&(g=(p+g)/2,p=g);let _=yt(i[0],d,f),x=yt(i[1],g,p);if(o&&e&&s){const C=30*s;_+=-C*Math.log(1+Math.max(0,d-i[0])/C)+C*Math.log(1+Math.max(0,i[0]-f)/C),x+=-C*Math.log(1+Math.max(0,g-i[1])/C)+C*Math.log(1+Math.max(0,i[1]-p)/C)}return[_,x]}}function ul(n){return n}function rs(n,t,e,i){const s=bt(t)/e[0],r=xi(t)/e[1];return i?Math.min(n,Math.max(s,r)):Math.min(n,Math.min(s,r))}function os(n,t,e){let i=Math.min(n,t);const s=50;return i*=Math.log(1+s*Math.max(0,n/t-1))/s+1,e&&(i=Math.max(i,e),i/=Math.log(1+s*Math.max(0,e/n-1))/s+1),yt(i,e/2,t*2)}function dl(n,t,e,i){return t=t!==void 0?t:!0,function(s,r,o,a){if(s!==void 0){const l=n[0],h=n[n.length-1],c=e?rs(l,e,o,i):l;if(a)return t?os(s,c,h):yt(s,h,c);const u=Math.min(c,s),d=Math.floor(Ir(n,u,r));return n[d]>c&&d1)u=e;else if(d>0){for(let f=0;fs&&(s=h),r=a,o=l}return s}function _l(n,t,e,i,s){for(let r=0,o=e.length;r0;){const u=h.pop(),d=h.pop();let f=0;const g=n[d],p=n[d+1],_=n[u],x=n[u+1];for(let C=d+i;Cf&&(c=C,f=L)}f>s&&(l[(c-t)/i]=1,d+i0&&p>f)&&(g<0&&_0&&_>g)){h=u,c=d;continue}r[o++]=h,r[o++]=c,a=h,l=c,h=u,c=d}return r[o++]=h,r[o++]=c,o}function Sl(n,t,e,i,s,r,o,a){for(let l=0,h=e.length;lx&&(h=(c+u)/2,Br(n,t,e,i,h,g)&&(_=h,x=C)),c=u}return isNaN(_)&&(_=s[r]),o?(o.push(_,g,x),o):[_,g,x]}function El(n,t,e,i){for(;t0}function Rl(n,t,e,i,s){s=s!==void 0?s:!1;for(let r=0,o=e.length;r1&&typeof arguments[e-1]=="function"&&(i=arguments[e-1],--e);let s=0;for(;s0}getInteracting(){return this.hints_[Tt.INTERACTING]>0}cancelAnimations(){this.setHint(Tt.ANIMATING,-this.hints_[Tt.ANIMATING]);let t;for(let e=0,i=this.animations_.length;e=0;--i){const s=this.animations_[i];let r=!0;for(let o=0,a=s.length;o0?h/l.duration:1;c>=1?(l.complete=!0,c=1):r=!1;const u=l.easing(c);if(l.sourceCenter){const d=l.sourceCenter[0],f=l.sourceCenter[1],g=l.targetCenter[0],p=l.targetCenter[1];this.nextCenter_=l.targetCenter;const _=d+u*(g-d),x=f+u*(p-f);this.targetCenter_=[_,x]}if(l.sourceResolution&&l.targetResolution){const d=u===1?l.targetResolution:l.sourceResolution+u*(l.targetResolution-l.sourceResolution);if(l.anchor){const f=this.getViewportSize_(this.getRotation()),g=this.constraints_.resolution(d,0,f,!0);this.targetCenter_=this.calculateCenterZoom(g,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const d=u===1?Cs(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+u*(l.targetRotation-l.sourceRotation);if(l.anchor){const f=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(f,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),e=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(Tt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const o=s[0].callback;o&&nn(o,!0)}}this.animations_=this.animations_.filter(Boolean),e&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const s=this.getCenterInternal();return s!==void 0&&(i=[s[0]-e[0],s[1]-e[1]],ua(i,t-this.getRotation()),ca(i,e)),i}calculateCenterZoom(t,e){let i;const s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){const o=e[0]-t*(e[0]-s[0])/r,a=e[1]-t*(e[1]-s[1])/r;i=[o,a]}return i}getViewportSize_(t){const e=this.viewportSize_;if(t){const i=e[0],s=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(s*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(s*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&Ei(t,this.getProjection())}getCenterInternal(){return this.get(kt.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return ts(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();ut(e,1);const i=this.getResolution();ut(i!==void 0,2);const s=this.getRotation();return ut(s!==void 0,3),bo(e,i,s,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(kt.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(Xe(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=bt(t)/e[0],s=xi(t)/e[1];return Math.max(i,s)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,s=Math.log(e/i)/Math.log(t);return function(r){return e/Math.pow(t,r*s)}}getRotation(){return this.get(kt.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(i/s)/e;return function(o){return Math.log(i/o)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let s=this.getCenterInternal();const r=this.padding_;if(r){const o=this.getViewportSizeMinusPadding_();s=bn(s,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,i)}return{center:s.slice(0),projection:t!==void 0?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return e!==void 0&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e=this.minZoom_||0,i,s;if(this.resolutions_){const r=Ir(this.resolutions_,t,1);e=r,i=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=i/this.resolutions_[r+1]}else i=this.maxResolution_,s=this.zoomFactor_;return e+Math.log(i/t)/Math.log(s)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=yt(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,yt(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(ut(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){ut(!ko(t),25);const s=Xe(t,this.getProjection());i=Ys(s)}else if(t.getType()==="Circle"){const s=Xe(t.getExtent(),this.getProjection());i=Ys(s),i.rotate(this.getRotation(),_i(s))}else i=t;this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),s=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let a=1/0,l=1/0,h=-1/0,c=-1/0;for(let u=0,d=r.length;u{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let e;const i=this.getMapInternal();!t&&i&&(t=i.getView()),t instanceof zs?e={viewState:t.getState(),extent:t.calculateExtent()}:e=t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let s;e.layerStatesArray?s=e.layerStatesArray.find(o=>o.layer===this):s=this.getLayerState();const r=this.getExtent();return bl(s,e.viewState)&&(!r||Ot(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const i=this.getSource();if(i&&(e=i.getAttributions()),!e)return[];const s=t instanceof zs?t.getViewStateAndExtent():t;let r=e(s);return Array.isArray(r)||(r=[r]),r}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(q.MAP,t)}getMapInternal(){return this.get(q.MAP)}setMap(t){this.mapPrecomposeKey_&&(Ht(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Ht(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=jt(t,zn.PRECOMPOSE,function(e){const s=e.frameState.layerStatesArray,r=this.getLayerState(!1);ut(!s.some(function(o){return o.layer===r.layer}),67),s.push(r)},this),this.mapRenderKey_=jt(this,Ct.CHANGE,t.render,t),this.changed())}setSource(t){this.set(q.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function bl(n,t){if(!n.visible)return!1;const e=t.resolution;if(e=n.maxResolution)return!1;const i=t.zoom;return i>n.minZoom&&i<=n.maxZoom}const Dl=Tl;class kl extends Pr{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return $()}getData(t){return null}prepareFrame(t){return $()}renderFrame(t,e){return $()}loadedTileCallback(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i}createLoadedTileFinder(t,e,i){return(s,r)=>{const o=this.loadedTileCallback.bind(this,i,s);return t.forEachLoadedTile(e,s,r,o)}}forEachFeatureAtCoordinate(t,e,i,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){t.target.getState()===ht.LOADED&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=ht.LOADED&&e!=ht.ERROR&&t.addEventListener(Ct.CHANGE,this.boundHandleImageChange_),e==ht.IDLE&&(t.load(),e=t.getState()),e==ht.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const Fl=kl;class Ol extends He{constructor(t,e,i,s){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=s}}const Pl=Ol,Gl=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,Bl=/^([a-z]*)$|^hsla?\(.*\)$/i;function Ur(n){return typeof n=="string"?n:jr(n)}function Nl(n){const t=document.createElement("div");if(t.style.color=n,t.style.color!==""){document.body.appendChild(t);const e=getComputedStyle(t).color;return document.body.removeChild(t),e}return""}const Wl=function(){const t={};let e=0;return function(i){let s;if(t.hasOwnProperty(i))s=t[i];else{if(e>=1024){let r=0;for(const o in t)(r++&3)===0&&(delete t[o],--e)}s=Xl(i),t[i]=s,++e}return s}}();function dn(n){return Array.isArray(n)?n:Wl(n)}function Xl(n){let t,e,i,s,r;if(Bl.exec(n)&&(n=Nl(n)),Gl.exec(n)){const o=n.length-1;let a;o<=4?a=1:a=2;const l=o===4||o===8;t=parseInt(n.substr(1+0*a,a),16),e=parseInt(n.substr(1+1*a,a),16),i=parseInt(n.substr(1+2*a,a),16),l?s=parseInt(n.substr(1+3*a,a),16):s=255,a==1&&(t=(t<<4)+t,e=(e<<4)+e,i=(i<<4)+i,l&&(s=(s<<4)+s)),r=[t,e,i,s/255]}else n.startsWith("rgba(")?(r=n.slice(5,-1).split(",").map(Number),Vs(r)):n.startsWith("rgb(")?(r=n.slice(4,-1).split(",").map(Number),r.push(1),Vs(r)):ut(!1,14);return r}function Vs(n){return n[0]=yt(n[0]+.5|0,0,255),n[1]=yt(n[1]+.5|0,0,255),n[2]=yt(n[2]+.5|0,0,255),n[3]=yt(n[3],0,1),n}function jr(n){let t=n[0];t!=(t|0)&&(t=t+.5|0);let e=n[1];e!=(e|0)&&(e=e+.5|0);let i=n[2];i!=(i|0)&&(i=i+.5|0);const s=n[3]===void 0?1:Math.round(n[3]*100)/100;return"rgba("+t+","+e+","+i+","+s+")"}const Zs=[];let Ge=null;function Yl(){Ge=Pt(1,1,void 0,{willReadFrequently:!0})}class zl extends Fl{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=ae(),this.pixelTransform=ae(),this.inversePixelTransform=ae(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){Ge||Yl(),Ge.clearRect(0,0,1,1);let s;try{Ge.drawImage(t,e,i,1,1,0,0,1,1),s=Ge.getImageData(0,0,1,1).data}catch{return Ge=null,null}return s}getBackground(t){let i=this.getLayer().getBackground();return typeof i=="function"&&(i=i(t.viewState.resolution)),i||void 0}useContainer(t,e,i){const s=this.getLayer().getClassName();let r,o;if(t&&t.className===s&&(!i||t&&t.style.backgroundColor&&Me(dn(t.style.backgroundColor),dn(i)))){const a=t.firstElementChild;a instanceof HTMLCanvasElement&&(o=a.getContext("2d"))}if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){r=document.createElement("div"),r.className=s;let a=r.style;a.position="absolute",a.width="100%",a.height="100%",o=Pt();const l=o.canvas;r.appendChild(l),a=l.style,a.position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=o}!this.containerReused&&i&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const s=Cr(i),r=Er(i),o=vr(i),a=Sr(i);Et(e.coordinateToPixelTransform,s),Et(e.coordinateToPixelTransform,r),Et(e.coordinateToPixelTransform,o),Et(e.coordinateToPixelTransform,a);const l=this.inversePixelTransform;Et(l,s),Et(l,r),Et(l,o),Et(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}dispatchRenderEvent_(t,e,i){const s=this.getLayer();if(s.hasListener(t)){const r=new Pl(t,this.inversePixelTransform,i,e);s.dispatchEvent(r)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(zn.PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(zn.POSTRENDER,t,e)}getRenderTransform(t,e,i,s,r,o,a){const l=r/2,h=o/2,c=s/e,u=-c,d=-t[0]+a,f=-t[1];return Oi(this.tempTransform,l,h,c,u,-i,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const Vl=zl,Ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAXCAYAAAAP6L+eAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAP2SURBVDiNjZUxbxxVEMd/M+/tru9ufcbGNrIEggIButDRIsU1EqIyBRUSUiQ6QIpSGn8D4AOQD5CGgoYuEYiSjpOgiIgIMuAoji9n+273vRmKs8+OnShMs6vVvt/MPP3nP8L/CHcEgJ2T59NiGz99FcGf/eMp8BS2DdxCWLsA3zsBbuHsnCXQZwH9SxQQBghX0eEtIjURiOxRsEcBs29DCNxG2T7rSi4C5y0PEPZR3kX4lcAS+jATVoqzMw9bfKWD7Y6xjUDmT4xrZHYgXGp7EwF0eERY6xCBgh4lLJYdyvLIYtVOirLVouhrFaDSxdgILc4LwF/Axyd3PIduA7dR1lHuEgnEx3mxDJbLbtfitPWicUJZAQlzkexRmpxCW+t4ujuh3T8mDSDLuSuQJ6A1JU1dTqZpQRa8EvcquZd4EQAKaXOTpY2FTMx1knOYTNrxZLVPC6Qwr3YPGR4R0pi4uEAxTnVValqwYN3sXkeJPTepNVhXxRfMtRDREMgARiO21G/z7hhb/APTuZTWkEGNFEZAFmPIuZwm74h7t5RQ52xLLrak6x+8Ub311XXD+yreSxY7glfdrkXyYtgokeEyEueS+B1hGV1dRsGimpcpeKUaO5qsp8vvvFRufPieFP2tmZz0ZnZDI21KPvVIbLOHyQQdXIE5eLiMLHeQjYgcjTyEjofSPBrLvWrw+fsUL356XpqiXgb3xk0KvAhYDnVwaQqEe8ilATk4nOm0aREML9688dFF6EyfaHYUcUEvj/ocPNifjeJSD6fCy4C1QPPbjZvtP999Qjr6/sLZBGRHcqEYhpPFrcV5FX+i4o0a4xgz0ewuKao0nqWxv3+4fzz84tv04M51vP15JlGbaJAJTuuWWhfJ44yv9mcFylxuV080fJ9i5P0qTtNCqHJXsV6S2FP3LngleIyvffZ2e/frX1zk2NDDmNM4F2Hc8eKQdjQZHpPOKt7E+AnnAEs2St1emFqhx4YeWsqPs+uBqT4y1Ud275sfQ9ADMx1HSUeOTi1pSxhljvHBPh5FcHdOjceGkAdjeFg/ZqVc5GiaPZSWpMhTyV5iqItLk8WKSOutNjnrpFeFhkimxlg77xXM4TKEMIDAGuHgkCIUdVGLxcnEIgWKIqdeYa6pF0Lz0EZpZUw7hDzYIs1l8lTLfAXdzYTCCKt9AtO+js0CASHjtWqmGtmDEXl1SuIKmX8x7mCX9PeE0906S8AYpYNQow9GyGofp8F3G3yjxoZ72GANYxODC3KD2b46WS/OEOcamTGJNdrhMYl1mtXXmbJOw8szm4SZVbKJsXPCuTRRF6s/vR6YmRUnnZzG1snOO7fvnrtMn5rkOSEyg/8HfCwU8ZRvPMgAAAAASUVORK5CYII=",qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAXCAYAAAAP6L+eAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAQBSURBVDiNjZXPa11VEMc/M+ec+16S15TEJBJRC0WQvi79A9qN4MZlBF2ICxFcunIjtAVXroq4cuNSMItuXHXTgqV/gX1KsWIRDJg0aZKb9/LuPWfGxcvPpi3O5t7DZb5zZu58v18BcEc4jBsn3p+NaziAyOT5spAj0BsI14DVg/PiMwXWcVZwbhwXeVkBPQV6Fx1AoEcEIusk1klApEccrBK5gtJHAPHr6KluT934Oso14HsCb6BrhbDcQzdH6Hw6Ttps8flAYRvjMoV7OHMYA/x5IxJ3lLsoIwKFQJeEnIsUD0O3wBihg0+LFoIUwm4BMuuUAZT+IsZVjBunxyP+E2EAYW6KuNwl1dbrhFiSZK/EPRDRZgyVUDpJ2uFQc9HQnAu7DYXMRTL/ngUXvzOZ58YOqZt63RBKV8W6ufVuFTy1nsKkt7ZEkcZFxr4v424n7lPVDTXNKXAmwJGHyNpr6PIsYbhjSdU66jatGqeLeydoSQBeQtEg+43l/diRgGbqpkevW/van7A1IvdXcQbgDuGDj4kXZwhwrkqpdM19ulicUfWe4b2pSze/cO1s2N5vLUZMqoKbZxMXw1KcsnHT+IUpjPM4n0xmrP3LsLGP1sXDWIjZvJLoneI+LegMsfNuWnrvu+6lbz7UuXdeLcVnssapjHfUvAKLC9MoNcrD4y1SHiOakF5wwTzgKYiRongS9epofdLsSnrz0x86/a/fV+ZmKvFI5WG454GIrE0hg7mTwGcpI4hLcRR/zvf0yufp7S8/wvCmnQBt750lSeQCbn/gBHEcT4oVpIBP9vVk5OHP7ZPbt8rG7UcGVAErAT/fwYc19LeOCRIBFmbxeoTHIMUtt4i2GmTfik1Wzdv7+cn9W+0/Pz5Slz0XbaJKYy7ZVAsjbLmHnbrx4AH0p7Be0jJCMoXWgu5rsaCO2+7vX+W/bv7qSFbRsakMo+ehoWNrtLGOZgKFpckOH5AE7W/hjHDCTrGsraPjKHlopnUIum2Pv/3FVJ+a6tPium257Bq6Z0lH0zNhnG0ns41xDz8gyIFW3CEyIjBFYjxbDce5G4J1JVnVZlIVXN3FUcyDNN5KY4020zNhvNnstvM17QBKH8qhIE0o7ehgldiHsNkjzets3CulUrF4qBUYTot1u5pr11zauj0/Q3skRCdAD1VuIptXUJZQHhA2OsSFWQLjWa3NAgGh4D3VQmfHNnYorVKWA4W/sRdJ56GDCHfRwTraX0TXanS5QqiQjR1kYRanxhjh9LAjwJWjn3XGTQ4dBK5ifShA3hqReZ2WJZqFtxizRDMYkVmkpSbz2UHrHM/0WYIInDDTQ4uCY+8DWDlIPOF3J9t+Xhwlv8i7ziT8D4cG+A+S3jQF4r/VqQAAAABJRU5ErkJggg==",Hr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAANZSURBVDiNtZW9biRFEIC/qu6Z3dldn+VDRrJDAoIBEUB00fklSAn9DkSWH4EECTKIEJfBA2AkEgLIbpFOSBdYYOmMMMeNd3ZmuqsIdr2396NDQlxJJZVara+q668FwB3hRk637OflBL8xRZ7aL5O4gZ4inAA1wv767AHC22vA5RboFNxf7SA+Az1D56B1i1Ah7CFcrm/OMOY4P+DU2L850A30cwItYa8iUlHQUrLPaKMw4hHlxSEFM+L8HpEaAYRT5Jl0AuKOcobSEghElIjsRLKHxdLipIJFCx7FXCRna9KQSYOSD94i8QjjCON0VYObyMW/Jswh1BWRGWXTz8qQc6nmZS8eS11HImR3SeOgfZN0mFXNQM9AJnGOcUzehot/RwTiny1lyWwUQh6nZJXiozLGEvewTmLuLQ2xkOXIZYmE7vHyut8t6MkkKjJHGKzAkQfIxSE6EYJmKzTaeBysShKn2W0k5gUR3CVpCJ1mKfohBRNkt5g52thFj19d4vU9nPmqoDrfQw5KZHe8o5OJRTEvk8VK3SfmvjN675OPR4cfvetmu5rslmBTKeJE1MdtziWyEw9maD3balMg1u/AH7+i47GHYiBq6UUhXmZ8HEUrpDxi785Rtfv+9+nq52/yb1/eD+opmfchek/2nh6lQTnHONnuY2AGdNEVQ5MQ3bwQ8fJpY47uxjfu3I17H5xZ88tX5fmnP1pyvXbXafnitOrLpub/kE3EDVAkMUosOimrDIL0m5vWbaVCn/RJcohiU8QYXhzrOL8P9S5GkIyS+ixDMulVWSY3Lb0/46+fvm3Pv3ioLssQpHWkiyq9ZRkoJVNigLGPr3sZ8c8oLg4pJsKoyJMqVHmqZpMkcSruz7QbRh9UWx/SwkQX4xhbtOkulgxXLamGzBzn5DUOiHKJzy+x25k0q5ohE7oouoiu18uUn5jb45XmxwH9e2ShaYbYEq67DfR8a1+s5T8toazkLpNetYSUU+AI4xwjky6WDIQnHblZTm4tFhSLxeTWYjGV68WsatqF092G7qolcX/9/OegK/DJupLHZCryVUuiZaCi55Juo9DxJv3B7ww0pPpDEnMc1sV6YdGz8nYTec3KAZC4IrHPwP4KRk3ieF35LeDLvieB1/OZ/gOh5x9VRnDXPwAAAABJRU5ErkJggg==",Zl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAYAAADQBxWhAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJBSURBVEiJ7ZfPa9NgHMaf933j27jazTqRLq02tc0q6E4DZYfCEPwFuwzmwYPiQTz4H3gQ/wBRPHhxetB58CKIbKcNRKig11EGdutoHW6dP7aqXS2NTeKhjQSNW96tKyg+EEieNzyf9/3mG/KGwFY8kmCGmbJA+gD40TpVCKyMwWga8+9yAEAAgB0Ij1gUJ1oIchUxMWUsLD5hiEcSBDi/3cAGFXGru+sNZYaZaguwKWaYKdp8hm2TBdInQbBpYpMPhrimKr/62djgqMcIPxUBhm5c7eeaquhzhSXnYU/Ga47kZgYvDEfBdzAA4L2xoO13jZzqBwD9/cqa836uqeCaqoQf3RysFz+UAUCfzZcAAPp3ozT29K3zfkLV8F2n4TucCKgT9895nbUXFYYuPa7N5Mr29W8rrc3kyl/Gnr1GB5d2HR9Isj27A/pso4RsbzCwXrjxqVQGAN6rKsbq5/La81dZfNPrTiDgslKn7KYRaBIAQDL/4rI+V1jKn7w44TYu1EitkjC05/a1o9Hx0dMAQHycRsfvnem5c/2YSIZr964nfujgPjkZU6RISKYdMpOPaPupfycXyfg7yvsf+u9BrWpVBwDKGCFNz6w0PK8SfmUWhq9MSqFuX315pQYA8wNnH9aXP9ZEMjZVXhvYOBcDbhq6VXkqr8gHesvQ6nS2yDVVcduebKTqdLb4pzFC1fAttHZzvZEqlMDKtBEIAitDDUbT7YQajKYZSl9XaWenDIL4dgOJiSmrsPiS/HTa+AP1A194w/sdsoQRAAAAAElFTkSuQmCC";function Us(n){return jn({url:"equipment/contractors",method:"get",params:n})}function xe(n){return jn({url:"equipment/districtsBlocks",method:"get",params:n})}function Dn(n){return jn({url:"equipment/cityAndCount",method:"get",params:n})}class hs{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=ln(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new hs({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return $()}getImage(t){return $()}getHitDetectionImage(){return $()}getPixelRatio(t){return 1}getImageState(){return $()}getImageSize(){return $()}getOrigin(){return $()}getSize(){return $()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=ln(t)}listenImageChange(t){$()}load(){$()}unlistenImageChange(t){$()}}const Kr=hs;function Nt(n){return Array.isArray(n)?jr(n):n}const Ul=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),js=["style","variant","weight","size","lineHeight","family"],qr=function(n){const t=n.match(Ul);if(!t)return null;const e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,s=js.length;iMath.max(s,pn(n,r)),0);return e[t]=i,i}function Kl(n,t){const e=[],i=[],s=[];let r=0,o=0,a=0,l=0;for(let h=0,c=t.length;h<=c;h+=2){const u=t[h];if(u===` `||h===c){r=Math.max(r,o),s.push(o),o=0,a+=l;continue}const d=t[h+1]||n.font,f=pn(d,u);e.push(f),o+=f;const g=Hl(d);i.push(g),l=Math.max(l,g)}return{width:r,height:a,widths:e,heights:i,lineWidths:s}}function ql(n,t,e,i,s,r,o,a,l,h,c){n.save(),e!==1&&(n.globalAlpha*=e),t&&n.setTransform.apply(n,t),i.contextInstructions?(n.translate(l,h),n.scale(c[0],c[1]),Jl(i,n)):c[0]<0||c[1]<0?(n.translate(l,h),n.scale(c[0],c[1]),n.drawImage(i,s,r,o,a,0,0,o,a)):n.drawImage(i,s,r,o,a,l,h,o*c[0],a*c[1]),n.restore()}function Jl(n,t){const e=n.contextInstructions;for(let i=0,s=e.length;ithis.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];(t++&3)===0&&!i.hasListener()&&(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){const s=Ks(t,e,i);return s in this.cache_?this.cache_[s]:null}set(t,e,i,s){const r=Ks(t,e,i);this.cache_[r]=s,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function Ks(n,t,e){const i=e?Ur(e):"null";return t+":"+n+":"+i}const qs=new Ql;let ui=null;class $l extends Mr{constructor(t,e,i,s,r,o){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=s,this.canvas_={},this.color_=o,this.unlisten_=null,this.imageState_=r,this.size_=i,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===ht.LOADED){ui||(ui=Pt(1,1,void 0,{willReadFrequently:!0})),ui.drawImage(this.image_,0,0);try{ui.getImageData(0,0,1,1),this.tainted_=!1}catch{ui=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(Ct.CHANGE)}handleImageError_(){this.imageState_=ht.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=ht.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=Pt(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===ht.IDLE){this.image_||this.initializeImage_(),this.imageState_=ht.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=Jo(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==ht.LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const s=i.getContext("2d");s.scale(t,t),s.drawImage(e,0,0),s.globalCompositeOperation="multiply",s.fillStyle=Ur(this.color_),s.fillRect(0,0,i.width/t,i.height/t),s.globalCompositeOperation="destination-in",s.drawImage(e,0,0),this.canvas_[t]=i}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function th(n,t,e,i,s,r){let o=qs.get(t,i,r);return o||(o=new $l(n,t,e,i,s,r),qs.set(t,i,r,o)),o}function Js(n,t,e,i){return e!==void 0&&i!==void 0?[e/n,i/t]:e!==void 0?e/n:i!==void 0?i/t:1}class fs extends Kr{constructor(t){t=t||{};const e=t.opacity!==void 0?t.opacity:1,i=t.rotation!==void 0?t.rotation:0,s=t.scale!==void 0?t.scale:1,r=t.rotateWithView!==void 0?t.rotateWithView:!1;super({opacity:e,rotation:i,scale:s,displacement:t.displacement!==void 0?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=t.anchor!==void 0?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=t.anchorOrigin!==void 0?t.anchorOrigin:"top-left",this.anchorXUnits_=t.anchorXUnits!==void 0?t.anchorXUnits:"fraction",this.anchorYUnits_=t.anchorYUnits!==void 0?t.anchorYUnits:"fraction",this.crossOrigin_=t.crossOrigin!==void 0?t.crossOrigin:null;const o=t.img!==void 0?t.img:null;this.imgSize_=t.imgSize;let a=t.src;ut(!(a!==void 0&&o),4),ut(!o||o&&this.imgSize_,5),(a===void 0||a.length===0)&&o&&(a=o.src||st(o)),ut(a!==void 0&&a.length>0,6),ut(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),69);const l=t.src!==void 0?ht.IDLE:ht.LOADED;if(this.color_=t.color!==void 0?dn(t.color):null,this.iconImage_=th(o,a,this.imgSize_!==void 0?this.imgSize_:null,this.crossOrigin_,l,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{const u=this.getImage(1);if(u instanceof HTMLCanvasElement||u.src&&u.complete)h=u.width,c=u.height;else{this.initialOptions_=t;const d=()=>{if(this.unlistenImageChange(d),!this.initialOptions_)return;const f=this.iconImage_.getSize();this.setScale(Js(f[0],f[1],t.width,t.height))};this.listenImageChange(d);return}}h!==void 0&&this.setScale(Js(h,c,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new fs({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const s=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!s)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=s[0]),this.anchorYUnits_=="fraction"&&(t[1]*=s[1])}if(this.anchorOrigin_!="top-left"){if(!s)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+s[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+s[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=i[0]-e[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==ht.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){const t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==ht.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(Ct.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(Ct.CHANGE,t)}}const $r=fs;class gs{constructor(t){t=t||{},this.color_=t.color!==void 0?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=t.lineDash!==void 0?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new gs({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}const le=gs;class re{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=Qs,t.geometry!==void 0&&this.setGeometry(t.geometry),this.fill_=t.fill!==void 0?t.fill:null,this.image_=t.image!==void 0?t.image:null,this.renderer_=t.renderer!==void 0?t.renderer:null,this.hitDetectionRenderer_=t.hitDetectionRenderer!==void 0?t.hitDetectionRenderer:null,this.stroke_=t.stroke!==void 0?t.stroke:null,this.text_=t.text!==void 0?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&typeof t=="object"&&(t=t.clone()),new re({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){typeof t=="function"?this.geometryFunction_=t:typeof t=="string"?this.geometryFunction_=function(e){return e.get(t)}:t?t!==void 0&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=Qs,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function eh(n){let t;if(typeof n=="function")t=n;else{let e;Array.isArray(n)?e=n:(ut(typeof n.getZIndex=="function",41),e=[n]),t=function(){return e}}return t}let kn=null;function ih(n,t){if(!kn){const e=new pt({color:"rgba(255,255,255,0.4)"}),i=new le({color:"#3399CC",width:1.25});kn=[new re({image:new bi({fill:e,stroke:i,radius:5}),fill:e,stroke:i})]}return kn}function nh(){const n={},t=[255,255,255,1],e=[0,153,255,1],i=3;return n.Polygon=[new re({fill:new pt({color:[255,255,255,.5]})})],n.MultiPolygon=n.Polygon,n.LineString=[new re({stroke:new le({color:t,width:i+2})}),new re({stroke:new le({color:e,width:i})})],n.MultiLineString=n.LineString,n.Circle=n.Polygon.concat(n.LineString),n.Point=[new re({image:new bi({radius:i*2,fill:new pt({color:e}),stroke:new le({color:t,width:i/2})}),zIndex:1/0})],n.MultiPoint=n.Point,n.GeometryCollection=n.Polygon.concat(n.LineString,n.Point),n}function Qs(n){return n.getGeometry()}const ne=re,sh="#333";class ps{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=ln(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new pt({color:sh}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}clone(){const t=this.getScale();return new ps({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=ln(t!==void 0?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}const gi=ps;function rh(n,t,e,i,s,r,o){let a,l;const h=(e-t)/i;if(h===1)a=t;else if(h===2)a=t,l=s;else if(h!==0){let c=n[t],u=n[t+1],d=0;const f=[0];for(let _=t+i;_1?o:2,r=r||new Array(o);for(let c=0;c>1;sa&&(this.instructions.push([W.CUSTOM,a,h,t,i,ve]),this.hitDetectionInstructions.push([W.CUSTOM,a,h,t,s||i,ve]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([W.CUSTOM,a,h,t,i]),this.hitDetectionInstructions.push([W.CUSTOM,a,h,t,s||i]);break}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[W.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[W.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;t.reverse();let e;const i=t.length;let s,r,o=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){const e=t.fillStyle,i=[W.SET_FILL_STYLE,e];return typeof e!="string"&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[W.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,s=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=s||r!=t.currentLineDash&&!Me(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(i!==void 0&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=s,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[W.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=wo(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;xn(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const Gi=dh;class fh extends Gi{constructor(t,e,i,s){super(t,e,i,s),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,s);this.instructions.push([W.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([W.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const i=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,s);this.instructions.push([W.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([W.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const i=t.getAnchor(),s=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=s[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=s[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}const gh=fh;class ph extends Gi{constructor(t,e,i,s){super(t,e,i,s)}drawFlatCoordinates_(t,e,i,s){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,s,!1,!1),a=[W.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i}drawLineString(t,e){const i=this.state,s=i.strokeStyle,r=i.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([W.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Ii,wi],Ee);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(oe),this.endGeometry(e)}drawMultiLineString(t,e){const i=this.state,s=i.strokeStyle,r=i.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([W.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Ee);const o=t.getEnds(),a=t.getFlatCoordinates(),l=t.getStride();let h=0;for(let c=0,u=o.length;c=n){const g=(n-a+f)/f,p=Mt(h,u,g),_=Mt(c,d,g);l.push(p,_),r.push(l),l=[p,_],a==n&&(o+=s),a=0}else if(a0&&r.push(l),r}function yh(n,t,e,i,s){let r=e,o=e,a=0,l=0,h=e,c,u,d,f,g,p,_,x,C,E;for(u=e;un&&(l>a&&(a=l,r=h,o=u),l=0,h=u-s)),d=f,_=C,x=E),g=O,p=L}return l+=f,l>a?[h,u]:[r,o]}const pi={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class Sh extends Gi{constructor(t,e,i,s){super(t,e,i,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){const i=this.textFillState_,s=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!i&&!s)return;const o=this.coordinates;let a=o.length;const l=t.getType();let h=null,c=t.getStride();if(r.placement==="line"&&(l=="LineString"||l=="MultiLineString"||l=="Polygon"||l=="MultiPolygon")){if(!Ot(this.getBufferedMaxExtent(),t.getExtent()))return;let u;if(h=t.getFlatCoordinates(),l=="LineString")u=[h.length];else if(l=="MultiLineString")u=t.getEnds();else if(l=="Polygon")u=t.getEnds().slice(0,1);else if(l=="MultiPolygon"){const p=t.getEndss();u=[];for(let _=0,x=p.length;_{const E=o[(_+C)*2]===h[C*c]&&o[(_+C)*2+1]===h[C*c+1];return E||--_,E})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let f=r.padding;if(f!=Ce&&(r.scale[0]<0||r.scale[1]<0)){let _=r.padding[0],x=r.padding[1],C=r.padding[2],E=r.padding[3];r.scale[0]<0&&(x=-x,E=-E),r.scale[1]<0&&(_=-_,C=-C),f=[_,x,C,E]}const g=this.pixelRatio;this.instructions.push([W.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,f==Ce?Ce:f.map(function(_){return _*g}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]);const p=1/g;this.hitDetectionInstructions.push([W.DRAW_IMAGE,a,d,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[p,p],NaN,void 0,this.declutterImageWithText_,f,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,u]),this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,s=this.strokeKey_;t&&(s in this.strokeStates||(this.strokeStates[s]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||Li,justify:e.justify,textBaseline:e.textBaseline||gn,scale:e.scale});const o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,s=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const l=this.pixelRatio,h=pi[s.textBaseline],c=this.textOffsetY_*l,u=this.text_,d=i?i.lineWidth*Math.abs(s.scale[0])/2:0;this.instructions.push([W.DRAW_CHARS,t,e,h,s.overflow,a,s.maxAngle,l,c,r,d*l,u,o,1]),this.hitDetectionInstructions.push([W.DRAW_CHARS,t,e,h,s.overflow,a,s.maxAngle,1,c,r,d,u,o,1/l])}setTextStyle(t,e){let i,s,r;if(!t)this.text_="";else{const o=t.getFill();o?(s=this.textFillState_,s||(s={},this.textFillState_=s),s.fillStyle=Nt(o.getColor()||Kt)):(s=null,this.textFillState_=s);const a=t.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const g=a.getLineDash(),p=a.getLineDashOffset(),_=a.getWidth(),x=a.getMiterLimit();r.lineCap=a.getLineCap()||fn,r.lineDash=g?g.slice():Ii,r.lineDashOffset=p===void 0?wi:p,r.lineJoin=a.getLineJoin()||je,r.lineWidth=_===void 0?Ti:_,r.miterLimit=x===void 0?Mi:x,r.strokeStyle=Nt(a.getColor()||Ai)}i=this.textState_;const l=t.getFont()||Jr;jl(l);const h=t.getScaleArray();i.overflow=t.getOverflow(),i.font=l,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||gn,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||Ce,i.scale=h===void 0?[1,1]:h;const c=t.getOffsetX(),u=t.getOffsetY(),d=t.getRotateWithView(),f=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=u===void 0?0:u,this.textRotateWithView_=d===void 0?!1:d,this.textRotation_=f===void 0?0:f,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:st(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=s?typeof s.fillStyle=="string"?s.fillStyle:"|"+st(s.fillStyle):""}this.declutterImageWithText_=e}}const vh={Circle:nr,Default:Gi,Image:gh,LineString:mh,Polygon:nr,Text:Sh};class Ch{constructor(t,e,i,s){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=s,this.resolution_=i,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const s in i){const r=i[s].finish();t[e][s]=r}}return t}getBuilder(t,e){const i=t!==void 0?t.toString():"0";let s=this.buildersByZIndex_[i];s===void 0&&(s={},this.buildersByZIndex_[i]=s);let r=s[e];if(r===void 0){const o=vh[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),s[e]=r}return r}}const sr=Ch;function Eh(n,t,e,i,s,r,o,a,l,h,c,u){let d=n[t],f=n[t+1],g=0,p=0,_=0,x=0;function C(){g=d,p=f,t+=i,d=n[t],f=n[t+1],x+=_,_=Math.sqrt((d-g)*(d-g)+(f-p)*(f-p))}do C();while(tV[2]}else it=O>Z;const j=Math.PI,H=[],dt=X+i===t;t=X,_=0,x=U,d=n[t],f=n[t+1];let k;if(dt){C(),k=Math.atan2(f-p,d-g),it&&(k+=k>0?-j:j);const V=(Z+O)/2,B=(y+L)/2;return H[0]=[V,B,(Y-r)/2,k,s],H}s=s.replace(/\n/g," ");for(let V=0,B=s.length;V0?-j:j),k!==void 0){let Lt=I-k;if(Lt+=Lt>j?-2*j:Lt<-j?2*j:0,Math.abs(Lt)>o)return null}k=I;const J=V;let lt=0;for(;V0&&n.push(` `,""),n.push(t,""),n}class wh{constructor(t,e,i,s){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=s.instructions,this.coordinates=s.coordinates,this.coordinateCache_={},this.renderedTransform_=ae(),this.hitDetectionInstructions=s.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=s.fillStates||{},this.strokeStates=s.strokeStates||{},this.textStates=s.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,i,s){const r=t+e+i+s;if(this.labels_[r])return this.labels_[r];const o=s?this.strokeStates[s]:null,a=i?this.fillStates[i]:null,l=this.textStates[e],h=this.pixelRatio,c=[l.scale[0]*h,l.scale[1]*h],u=Array.isArray(t),d=l.justify?pi[l.justify]:or(Array.isArray(t)?t[0]:t,l.textAlign||Li),f=s&&o.lineWidth?o.lineWidth:0,g=u?t:t.split(` `).reduce(Ih,[]),{width:p,height:_,widths:x,heights:C,lineWidths:E}=Kl(l,g),O=p+f,L=[],X=(O+2)*c[0],U=(_+f)*c[1],Y={width:X<0?Math.floor(X):Math.ceil(X),height:U<0?Math.floor(U):Math.ceil(U),contextInstructions:L};(c[0]!=1||c[1]!=1)&&L.push("scale",c),s&&(L.push("strokeStyle",o.strokeStyle),L.push("lineWidth",f),L.push("lineCap",o.lineCap),L.push("lineJoin",o.lineJoin),L.push("miterLimit",o.miterLimit),L.push("setLineDash",[o.lineDash]),L.push("lineDashOffset",o.lineDashOffset)),i&&L.push("fillStyle",a.fillStyle),L.push("textBaseline","middle"),L.push("textAlign","center");const Z=.5-d;let y=d*O+Z*f;const it=[],j=[];let H=0,dt=0,k=0,V=0,B;for(let I=0,J=g.length;It?t-h:r,O=o+c>e?e-c:o,L=g[3]+E*d[0]+g[1],X=g[0]+O*d[1]+g[2],U=x-g[3],Y=C-g[0];(p||u!==0)&&(ee[0]=U,ie[0]=U,ee[1]=Y,Vt[1]=Y,Vt[0]=U+L,Zt[0]=Vt[0],Zt[1]=Y+X,ie[1]=Zt[1]);let Z;return u!==0?(Z=Oi(ae(),i,s,1,1,u,-i,-s),Et(Z,ee),Et(Z,Vt),Et(Z,Zt),Et(Z,ie),Ze(Math.min(ee[0],Vt[0],Zt[0],ie[0]),Math.min(ee[1],Vt[1],Zt[1],ie[1]),Math.max(ee[0],Vt[0],Zt[0],ie[0]),Math.max(ee[1],Vt[1],Zt[1],ie[1]),Oe)):Ze(Math.min(U,U+L),Math.min(Y,Y+X),Math.max(U,U+L),Math.max(Y,Y+X),Oe),f&&(x=Math.round(x),C=Math.round(C)),{drawImageX:x,drawImageY:C,drawImageW:E,drawImageH:O,originX:h,originY:c,declutterBox:{minX:Oe[0],minY:Oe[1],maxX:Oe[2],maxY:Oe[3],value:_},canvasTransform:Z,scale:d}}replayImageOrLabel_(t,e,i,s,r,o,a){const l=!!(o||a),h=s.declutterBox,c=t.canvas,u=a?a[2]*s.scale[0]/2:0;return h.minX-u<=c.width/e&&h.maxX+u>=0&&h.minY-u<=c.height/e&&h.maxY+u>=0&&(l&&this.replayTextBackground_(t,ee,Vt,Zt,ie,o,a),ql(t,s.canvasTransform,r,i,s.originX,s.originY,s.drawImageW,s.drawImageH,s.drawImageX,s.drawImageY,s.scale)),!0}fill_(t){if(this.alignFill_){const e=Et(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,s){const r=this.textStates[e],o=this.createLabel(t,e,s,i),a=this.strokeStates[i],l=this.pixelRatio,h=or(Array.isArray(t)?t[0]:t,r.textAlign||Li),c=pi[r.textBaseline||gn],u=a&&a.lineWidth?a.lineWidth:0,d=o.width/l-2*r.scale[0],f=h*d+2*(.5-h)*u,g=c*o.height/l+2*(.5-c)*u;return{label:o,anchorX:f,anchorY:g}}execute_(t,e,i,s,r,o,a,l){let h;this.pixelCoordinates_&&Me(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Ie(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Oa(this.renderedTransform_,i));let c=0;const u=s.length;let d=0,f,g,p,_,x,C,E,O,L,X,U,Y,Z=0,y=0,it=null,j=null;const H=this.coordinateCache_,dt=this.viewRotation_,k=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,V={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:dt},B=this.instructions!=s||this.overlaps?0:200;let I,J,lt,St;for(;cB&&(this.fill_(t),Z=0),y>B&&(t.stroke(),y=0),!Z&&!y&&(t.beginPath(),_=NaN,x=NaN),++c;break;case W.CIRCLE:d=M[1];const Lt=h[d],Gt=h[d+1],Bi=h[d+2],Ni=h[d+3],Wi=Bi-Lt,Xi=Ni-Gt,Yi=Math.sqrt(Wi*Wi+Xi*Xi);t.moveTo(Lt+Yi,Gt),t.arc(Lt,Gt,Yi,0,2*Math.PI,!0),++c;break;case W.CLOSE_PATH:t.closePath(),++c;break;case W.CUSTOM:d=M[1],f=M[2];const Qe=M[3],zi=M[4],Vi=M.length==6?M[5]:void 0;V.geometry=Qe,V.feature=I,c in H||(H[c]=[]);const ue=H[c];Vi?Vi(h,d,f,2,ue):(ue[0]=h[d],ue[1]=h[d+1],ue.length=2),zi(ue,V),++c;break;case W.DRAW_IMAGE:d=M[1],f=M[2],O=M[3],g=M[4],p=M[5];let $e=M[6];const ti=M[7],vn=M[8],Cn=M[9],Wt=M[10];let ei=M[11];const En=M[12];let Ae=M[13];const Zi=M[14],Rt=M[15];if(!O&&M.length>=20){L=M[19],X=M[20],U=M[21],Y=M[22];const vt=this.drawLabelWithPointPlacement_(L,X,U,Y);O=vt.label,M[3]=O;const v=M[23];g=(vt.anchorX-v)*this.pixelRatio,M[4]=g;const m=M[24];p=(vt.anchorY-m)*this.pixelRatio,M[5]=p,$e=O.height,M[6]=$e,Ae=O.width,M[13]=Ae}let ii;M.length>25&&(ii=M[25]);let ni,Le,de;M.length>17?(ni=M[16],Le=M[17],de=M[18]):(ni=Ce,Le=!1,de=!1),Wt&&k?ei+=dt:!Wt&&!k&&(ei-=dt);let si=0;for(;d0){if(!o||f!=="Image"&&f!=="Text"||o.includes(L)){const y=(d[Y]-3)/4,it=s-y%a,j=s-(y/a|0),H=r(L,X,it*it+j*j);if(H)return H}c.clearRect(0,0,a,a);break}}const p=Object.keys(this.executorsByZIndex_).map(Number);p.sort(yi);let _,x,C,E,O;for(_=p.length-1;_>=0;--_){const L=p[_].toString();for(C=this.executorsByZIndex_[L],x=Fn.length-1;x>=0;--x)if(f=Fn[x],E=C[f],E!==void 0&&(O=E.executeHitDetection(c,l,i,g,u),O))return O}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],s=e[1],r=e[2],o=e[3],a=[i,s,i,o,r,o,r,s];return Ie(a,0,8,2,t,a),a}isEmpty(){return vi(this.executorsByZIndex_)}execute(t,e,i,s,r,o,a){const l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(yi),this.maxExtent_&&(t.save(),this.clip(t,i)),o=o||Fn;let h,c,u,d,f,g;for(a&&l.reverse(),h=0,c=l.length;he)break;let l=i[a];l||(l=[],i[a]=l),l.push(((n+r)*t+(n+o))*4+3),r>0&&l.push(((n-r)*t+(n+o))*4+3),o>0&&(l.push(((n+r)*t+(n-o))*4+3),r>0&&l.push(((n-r)*t+(n-o))*4+3))}const s=[];for(let r=0,o=i.length;ru*this.pixelRatio_),lineDashOffset:(o||wi)*this.pixelRatio_,lineJoin:a!==void 0?a:je,lineWidth:(l!==void 0?l:Ti)*this.pixelRatio_,miterLimit:h!==void 0?h:Mi,strokeStyle:Nt(i||Ai)}}}setImageStyle(t){let e;if(!t||!(e=t.getSize())){this.image_=null;return}const i=t.getPixelRatio(this.pixelRatio_),s=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=s[0]*i,this.imageAnchorY_=s[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(!t)this.text_="";else{const e=t.getFill();if(!e)this.textFillState_=null;else{const f=e.getColor();this.textFillState_={fillStyle:Nt(f||Kt)}}const i=t.getStroke();if(!i)this.textStrokeState_=null;else{const f=i.getColor(),g=i.getLineCap(),p=i.getLineDash(),_=i.getLineDashOffset(),x=i.getLineJoin(),C=i.getWidth(),E=i.getMiterLimit();this.textStrokeState_={lineCap:g!==void 0?g:fn,lineDash:p||Ii,lineDashOffset:_||wi,lineJoin:x!==void 0?x:je,lineWidth:C!==void 0?C:Ti,miterLimit:E!==void 0?E:Mi,strokeStyle:Nt(f||Ai)}}const s=t.getFont(),r=t.getOffsetX(),o=t.getOffsetY(),a=t.getRotateWithView(),l=t.getRotation(),h=t.getScaleArray(),c=t.getText(),u=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:s!==void 0?s:Jr,textAlign:u!==void 0?u:Li,textBaseline:d!==void 0?d:gn},this.text_=c!==void 0?Array.isArray(c)?c.reduce((f,g,p)=>f+=p%2?" ":g,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}}const bh=Th,Bt=.5;function Dh(n,t,e,i,s,r,o){const a=n[0]*Bt,l=n[1]*Bt,h=Pt(a,l);h.imageSmoothingEnabled=!1;const c=h.canvas,u=new bh(h,Bt,s,null,o),d=e.length,f=Math.floor((256*256*256-1)/d),g={};for(let _=1;_<=d;++_){const x=e[_-1],C=x.getStyleFunction()||i;if(!i)continue;let E=C(x,r);if(!E)continue;Array.isArray(E)||(E=[E]);const L=(_*f).toString(16).padStart(7,"#00000");for(let X=0,U=E.length;X{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const i=[this.context.canvas.width,this.context.canvas.height];Et(this.pixelTransform,i);const s=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],u=i[0]*Bt,d=i[1]*Bt;c.push(this.getRenderTransform(s,r,o,Bt,u,d,0).slice());const f=h.getSource(),g=a.getExtent();if(f.getWrapX()&&a.canWrapX()&&!Ne(g,l)){let p=l[0];const _=bt(g);let x=0,C;for(;pg[2];)++x,C=_*x,c.push(this.getRenderTransform(s,r,o,Bt,u,d,C).slice()),p-=_}this.hitDetectionImageData_=Dh(i,c,this.renderedFeatures_,h.getStyleFunction(),l,r,o)}e(kh(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,s,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,l=this.getLayer(),h={},c=function(f,g,p){const _=st(f),x=h[_];if(x){if(x!==!0&&pu=f.forEachFeatureAtCoordinate(t,o,a,i,c,f===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(g=>g.value):null)),u}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const s=t.viewHints[Tt.ANIMATING],r=t.viewHints[Tt.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&s||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=t.extent,h=t.viewState,c=h.projection,u=h.resolution,d=t.pixelRatio,f=e.getRevision(),g=e.getRenderBuffer();let p=e.getRenderOrder();p===void 0&&(p=Oh);const _=h.center.slice(),x=xn(l,g*u),C=x.slice(),E=[x.slice()],O=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!Ne(O,t.extent)){const k=bt(O),V=Math.max(bt(x)/2,k);x[0]=O[0]-V,x[2]=O[2]+V,fa(_,c);const B=Rr(E[0],c);B[0]O[0]&&B[2]>O[2]&&E.push([B[0]-k,B[1],B[2]-k,B[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==f&&this.renderedRenderOrder_==p&&Ne(this.wrappedRenderedExtent_,x))return Me(this.renderedExtent_,C)||(this.hitDetectionImageData_=null,this.renderedExtent_=C),this.renderedCenter_=_,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const L=new sr(Un(u,d),x,u,d);let X;this.getLayer().getDeclutter()&&(X=new sr(Un(u,d),x,u,d));let U;for(let k=0,V=E.length;k{let V;const B=k.getStyleFunction()||e.getStyleFunction();if(B&&(V=B(k,u)),V){const I=this.renderFeature(k,Y,V,L,U,X);Z=Z&&!I}},it=ts(x),j=i.getFeaturesInExtent(it);p&&j.sort(p);for(let k=0,V=j.length;k0}}else if(t.type==Ut.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==Ut.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}const Qh=Jh,$h=function(n){const t=n.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},tc=wr,ec=function(n){return n.type==Ut.SINGLECLICK},ic=function(n){const t=n.originalEvent;return ut(t!==void 0,56),t.isPrimary&&t.button===0},cr=0,mi=1,ur=[0,0,0,0],Ve=[],Pn={MODIFYSTART:"modifystart",MODIFYEND:"modifyend"};class Gn extends He{constructor(t,e,i){super(t),this.features=e,this.mapBrowserEvent=i}}class nc extends Qh{constructor(t){super(t),this.on,this.once,this.un,this.boundHandleFeatureChange_=this.handleFeatureChange_.bind(this),this.condition_=t.condition?t.condition:ic,this.defaultDeleteCondition_=function(i){return $h(i)&&ec(i)},this.deleteCondition_=t.deleteCondition?t.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=t.insertVertexCondition?t.insertVertexCondition:tc,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new Yn,this.pixelTolerance_=t.pixelTolerance!==void 0?t.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new so({source:new Yr({useSpatialIndex:!1,wrapX:!!t.wrapX}),style:t.style?t.style:rc(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.hitDetection_=null;let e;if(t.features?e=t.features:t.source&&(this.source_=t.source,e=new Xn(this.source_.getFeatures()),this.source_.addEventListener(wt.ADDFEATURE,this.handleSourceAdd_.bind(this)),this.source_.addEventListener(wt.REMOVEFEATURE,this.handleSourceRemove_.bind(this))),!e)throw new Error("The modify interaction requires features, a source or a layer");t.hitDetection&&(this.hitDetection_=t.hitDetection),this.features_=e,this.features_.forEach(this.addFeature_.bind(this)),this.features_.addEventListener(se.ADD,this.handleFeatureAdd_.bind(this)),this.features_.addEventListener(se.REMOVE,this.handleFeatureRemove_.bind(this)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=t.snapToPointer===void 0?!this.hitDetection_:t.snapToPointer}addFeature_(t){const e=t.getGeometry();if(e){const s=this.SEGMENT_WRITERS_[e.getType()];s&&s(t,e)}const i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),t.addEventListener(Ct.CHANGE,this.boundHandleFeatureChange_)}willModifyFeatures_(t,e){if(!this.featuresBeingModified_){this.featuresBeingModified_=new Xn;const i=this.featuresBeingModified_.getArray();for(let s=0,r=e.length;s=0;--s){const r=i[s];for(let o=this.dragSegments_.length-1;o>=0;--o)this.dragSegments_[o][0]===r&&this.dragSegments_.splice(o,1);e.remove(r)}}setActive(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(t)}setMap(t){this.overlay_.setMap(t),super.setMap(t)}getOverlay(){return this.overlay_}handleSourceAdd_(t){t.feature&&this.features_.push(t.feature)}handleSourceRemove_(t){t.feature&&this.features_.remove(t.feature)}handleFeatureAdd_(t){this.addFeature_(t.element)}handleFeatureChange_(t){if(!this.changingFeature_){const e=t.target;this.removeFeature_(e),this.addFeature_(e)}}handleFeatureRemove_(t){this.removeFeature_(t.element)}writePointGeometry_(t,e){const i=e.getCoordinates(),s={feature:t,geometry:e,segment:[i,i]};this.rBush_.insert(e.getExtent(),s)}writeMultiPointGeometry_(t,e){const i=e.getCoordinates();for(let s=0,r=i.length;s=0;--h)this.insertVertex_(s[h],r)}return!!this.vertexFeature_}handleUpEvent(t){for(let e=this.dragSegments_.length-1;e>=0;--e){const i=this.dragSegments_[e][0],s=i.geometry;if(s.getType()==="Circle"){const r=s.getCenter(),o=i.featureSegments[0],a=i.featureSegments[1];o.segment[0]=r,o.segment[1]=r,a.segment[0]=r,a.segment[1]=r,this.rBush_.update(rn(r),o);let l=s;this.rBush_.update(l.getExtent(),a)}else this.rBush_.update(zt(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new Gn(Pn.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1}handlePointerMove_(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)}handlePointerAtPixel_(t,e,i){const s=i||e.getCoordinateFromPixel(t);e.getView().getProjection();const r=function(l,h){return dr(s,l)-dr(s,h)};let o,a;if(this.hitDetection_){const l=typeof this.hitDetection_=="object"?h=>h===this.hitDetection_:void 0;e.forEachFeatureAtPixel(t,(h,c,u)=>{u&&(u=new Ri(Ei(u.getCoordinates())));const d=u||h.getGeometry();if(d.getType()==="Point"&&h instanceof As&&this.features_.getArray().includes(h)){a=d;const f=h.getGeometry().getFlatCoordinates().slice(0,2);o=[{feature:h,geometry:a,segment:[f,f]}]}return!0},{layerFilter:l})}if(!o){const l=Xe(rn(s,ur)),h=e.getView().getResolution()*this.pixelTolerance_,c=ts(xn(l,h,ur));o=this.rBush_.getInExtent(c)}if(o&&o.length>0){const l=o.sort(r)[0],h=l.segment;let c=fr(s,l);const u=e.getPixelFromCoordinate(c);let d=Es(t,u);if(a||d<=this.pixelTolerance_){const f={};if(f[st(h)]=!0,this.snapToPointer_||(this.delta_[0]=c[0]-s[0],this.delta_[1]=c[1]-s[1]),l.geometry.getType()==="Circle"&&l.index===mi)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(c,[l.feature],[l.geometry]);else{const g=e.getPixelFromCoordinate(h[0]),p=e.getPixelFromCoordinate(h[1]),_=Ci(u,g),x=Ci(u,p);d=Math.sqrt(Math.min(_,x)),this.snappedToVertex_=d<=this.pixelTolerance_,this.snappedToVertex_&&(c=_>x?h[1]:h[0]),this.createOrUpdateVertexFeature_(c,[l.feature],[l.geometry]);const C={};C[st(l.geometry)]=!0;for(let E=1,O=o.length;E=0;--l)o=t[l],f=o[0],g=st(f.feature),f.depth&&(g+="-"+f.depth.join("-")),g in e||(e[g]={}),o[1]===0?(e[g].right=f,e[g].index=f.index):o[1]==1&&(e[g].left=f,e[g].index=f.index+1);for(g in e){switch(d=e[g].right,c=e[g].left,h=e[g].index,u=h-1,c!==void 0?f=c:f=d,u<0&&(u=0),a=f.geometry,r=a.getCoordinates(),s=r,i=!1,a.getType()){case"MultiLineString":r[f.depth[0]].length>2&&(r[f.depth[0]].splice(h,1),i=!0);break;case"LineString":r.length>2&&(r.splice(h,1),i=!0);break;case"MultiPolygon":s=s[f.depth[1]];case"Polygon":s=s[f.depth[0]],s.length>4&&(h==s.length-1&&(h=0),s.splice(h,1),i=!0,h===0&&(s.pop(),s.push(s[0]),u=s.length-1));break}if(i){this.setGeometryCoordinates_(a,r);const p=[];if(c!==void 0&&(this.rBush_.remove(c),p.push(c.segment[0])),d!==void 0&&(this.rBush_.remove(d),p.push(d.segment[1])),c!==void 0&&d!==void 0){const _={depth:f.depth,feature:f.feature,geometry:f.geometry,index:u,segment:p};this.rBush_.insert(zt(_.segment),_)}this.updateSegmentIndices_(a,h,f.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return i}setGeometryCoordinates_(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1}updateSegmentIndices_(t,e,i,s){this.rBush_.forEachInExtent(t.getExtent(),function(r){r.geometry===t&&(i===void 0||r.depth===void 0||Me(r.depth,i))&&r.index>e&&(r.index+=s)})}}function sc(n,t){return n.index-t.index}function dr(n,t,e){const i=t.geometry;if(i.getType()==="Circle"){let r=i;if(t.index===mi){const o=Ci(r.getCenter(),_t(n)),a=Math.sqrt(o)-r.getRadius();return a*a}}const s=_t(n);return Ve[0]=_t(t.segment[0]),Ve[1]=_t(t.segment[1]),da(s,Ve)}function fr(n,t,e){const i=t.geometry;if(i.getType()==="Circle"&&t.index===mi)return Ei(i.getClosestPoint(_t(n)));const s=_t(n);return Ve[0]=_t(t.segment[0]),Ve[1]=_t(t.segment[1]),Ei(Tr(s,Ve))}function rc(){const n=nh();return function(t,e){return n.Point}}const oc=nc;const At=n=>(po("data-v-455d1ef8"),n=n(),mo(),n),ac={class:"center"},lc=At(()=>P("div",{style:{width:"100%",height:"100%"},id:"cesiumContainer"},null,-1)),hc={class:"rightWra"},cc={class:"rightTop"},uc=At(()=>P("div",{class:"title"},[P("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),P("span",null,"\u4F4D\u7F6E\u5B9A\u4F4D")],-1)),dc={class:"depth"},fc={class:"rightCenter"},gc={key:0,class:"zoning"},pc={key:1,class:"LonAndLat"},mc={class:"LonAndLatDiv"},_c={class:"LonAndLatDiv"},xc={key:2,class:"LonAndLat"},yc={class:"LonDiv"},Sc={class:"inputDiv"},vc={class:"LatDiv"},Cc={class:"inputDiv"},Ec={class:"seach_button"},Rc={class:"rightbottom"},Ic=At(()=>P("div",{class:"title"},[P("div",{style:{width:"3px",height:"19px",opacity:"1",background:"rgba(100, 195, 164, 1)","margin-right":"12px"}}),P("span",null,"\u4FE1\u606F\u7EDF\u8BA1")],-1)),wc=["id"],Mc={key:0,style:{width:"14px"},src:Ke},Ac={key:1,style:{width:"14px"},src:qe},Lc=["id"],Tc={key:0,style:{width:"14px"},src:Ke},bc={key:1,style:{width:"14px"},src:qe},Dc=["id"],kc={key:0,style:{width:"14px"},src:Ke},Fc={key:1,style:{width:"14px"},src:qe},Oc=["id"],Pc={key:0,style:{width:"14px"},src:Ke},Gc={key:1,style:{width:"14px"},src:qe},Bc=["id"],Nc={key:0,style:{width:"14px"},src:Ke},Wc={key:1,style:{width:"14px"},src:qe},Xc=["id"],Yc={key:0,style:{width:"14px"},src:Ke},zc={key:1,style:{width:"14px"},src:qe},Vc={class:"chart_div"},Zc={class:"chart_div_title"},Uc=At(()=>P("img",{src:_o,style:{width:"14px",height:"14px",cursor:"pointer"}},null,-1)),jc={key:0,class:"Involution"},Hc=At(()=>P("img",{src:Hr},null,-1)),Kc={key:0},qc=At(()=>P("img",{src:Hr},null,-1)),Jc=At(()=>P("img",{src:xo},null,-1)),Qc=At(()=>P("img",{src:yo},null,-1)),$c={class:"tool"},tu=At(()=>P("img",{src:So,alt:""},null,-1)),eu=At(()=>P("img",{src:vo,alt:""},null,-1)),iu=At(()=>P("img",{src:Zl,alt:""},null,-1)),nu={class:"treeDiv"},su=["id"],ru={class:"farmlandTimeDivCenter"},ou={id:"popup",class:"ol-popup"},au=At(()=>P("div",{class:"pophead",style:{width:"100%"}},[P("div",{id:"popup-title",style:{"font-size":"20px","font-weight":"400","letter-spacing":"1px","line-height":"42px","padding-left":"20px","border-radius":"8px",margin:"20px",background:"rgba(100, 195, 164, 0.05)"}}),P("a",{href:"#",id:"popup-closer",class:"ol-popup-closer"})],-1)),lu={id:"popup-background"},hu=At(()=>P("div",{id:"popup-content",style:{padding:"10px","font-size":"14px"}},null,-1)),cu={id:"popup-pagination"},uu={__name:"index",setup(n){const t=oo();z([]),z(!1);let e=z(!1),i=z(!1),s=z(""),r=z([]),o=z(""),a=z(!1);z(""),z("");let l=z({Lon:"",Lat:""}),h=z({Lon:{londu:"",lonfen:"",lonmiao:""},Lat:{latdu:"",latfen:"",latmiao:""}});const c=z("null");let u=z(null),d=z([]),f=z("2"),g=z([]),p=z(1),_=z([]);const x={children:"children",label:"label"};let C=z(!0);z([]);let E=z([]),O=z([]),L=z([]),X=z("");z({});let U=z(""),Y=z(""),Z=z("\u9AD8\u6807\u51C6\u519C\u7530");ao(()=>g.value,(v,m)=>{v.length>m.length?v.filter(R=>{if(m.findIndex(G=>G===R)<0)return R}).forEach(R=>{k[R]?["\u571F\u5730\u786E\u6743","\u4E09\u8C03"].includes(R)?zi(V[R]):Qe(k[R]):B[R]&&(["\u571F\u5730\u786E\u6743","\u4E09\u8C03"].includes(R)?zi(V[R]):Qe(B[R]))}):v.length{if(v.findIndex(G=>G===R)<0)return R}).forEach(R=>{k[R]?I.getLayers().getArray().forEach((D,G)=>{D.A.name&&D.A.name==k[R].name&&I.getLayers().removeAt(G)}):B[R]&&!["\u571F\u5730\u786E\u6743","\u4E09\u8C03"].includes(R)?I.getLayers().getArray().forEach((D,G)=>{D.A.name&&D.A.name==B[R].name&&I.getLayers().removeAt(G)}):V[R]&&I.getLayers().getArray().forEach((D,G)=>{D.A.name&&D.A.name==V[R].name&&I.getLayers().removeAt(G)})})});let y=z([]),it=z(!1),j=z(!1);const H=[{label:"\u9AD8\u6807\u51C6\u519C\u7530",children:[{label:"\u9AD8\u6807\u51C6\u519C\u7530"}]},{label:"\u6C38\u4E45\u57FA\u672C\u519C\u7530",children:[{label:"\u6C38\u4E45\u57FA\u672C\u519C\u7530"}]},{label:"\u8015\u5730",children:[{label:"\u8015\u5730"}]},{label:"\u7CAE\u98DF\u529F\u80FD\u533A",children:[{label:"\u7247\u5757\u4FE1\u606F"},{label:"\u5730\u5757\u4FE1\u606F"}]},{label:"\u571F\u5730\u786E\u6743",children:[{label:"\u571F\u5730\u786E\u6743"}]},{label:"\u4E09\u8C03",children:[{label:"\u4E09\u8C03"}]}];let dt=z({2012:!0,2013:!0,2014:!0,2015:!0,2016:!0,2017:!0,2018:!0,2019:!0,2020:!0,2021:!0,2022:!0}),k={2012:{setOf:"T2012@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2013:{setOf:"T2013@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2014:{setOf:"T2014@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2015:{setOf:"T2015@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2016:{setOf:"T2016@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2017:{setOf:"T2017@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2018:{setOf:"T2018@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2019:{setOf:"T2019@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2020:{setOf:"T2020@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2021:{setOf:"T2021@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"},2022:{setOf:"T2022@gaobiaozhunnongtianxk",name:"map-gaobiaozhunnongtianxk"}},V={\u571F\u5730\u786E\u6743:{name:"DK3702112022WGS84",setOf:"tudiquequanxk"},\u4E09\u8C03:{name:"T2021DLTB",setOf:"sandiaoshujuWGS84"}},B={\u6C38\u4E45\u57FA\u672C\u519C\u7530:{setOf:"yongnongSanqusanxianWGS84@yongjiujibennongtianxk",name:"map-yongjiujibennongtianxk"},\u8015\u5730:{setOf:"gengbaoSanqusanxianWGS84@gengdibaohuxk",name:"map-gengdibaohuxk"},\u7247\u5757\u4FE1\u606F:{setOf:"LQPK3702112019WGS84@liangqupiankuaixk",name:"map-liangqupiankuaixk"},\u5730\u5757\u4FE1\u606F:{setOf:"LQDK3702112019WGS84@liangqudikuaixk",name:"map-liangqudikuaixk"},\u571F\u5730\u786E\u6743:{setOf:"DK3702112022WGS84@tudiquequanxk",name:"map-tudiquequanxk"},\u4E09\u8C03:{setOf:"T2021DLTB@sandiaoshujuWGS84",name:"map-sandiaoshujuWGS84"}};lo(()=>{M(),Lt(),ii(),Zi(),Rt("\u9AD8\u6807\u51C6\u519C\u7530");var v=window.location.host,m=/^(([-\u4E00-\u9FA5a-z0-9]{1,63})\.)+([\u4E00-\u9FA5a-z]{2,63})\.?$/;m.test(v)?(alert("\u8BF7\u4F7F\u7528\u91D1\u5B8F\u7F51\u8BBF\u95EE\u672C\u9875\u9762!"),ho().delView(t.currentRoute.value),t.go(-1)):console.log("\u91D1\u5B8F\u7F51");let w=document.querySelector(".rightWra");w.style.transform="translate(101%,0)",localStorage.setItem(t.currentRoute.value.path,!0)}),co(()=>{document.querySelector(".mode").style.display="none",window.document.querySelector("#screenfull").style.display="block"});let I=z(null);z(null);let J=z(null),lt=z(null),St=z(null);function M(){var v=document.querySelector(".center"),m=document.getElementById("cesiumContainer");I=new ol.Map({target:"cesiumContainer",controls:[],view:new ol.View({center:[119.88661841637813,35.85667692242919],zoom:11,maxZoom:16.5,projection:"EPSG:4326"}),layers:[new ol.layer.Tile({source:new ol.source.XYZ({url:`${serverAPI.tiandituLayers}`,projection:serverAPI.tiandituLayers=="http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?"EPSG:4326":"EPSG:3857"}),preload:20})]}),Xi(),Yi(),I.on("moveend",function(R){var D=I.getView().getZoom();D>=13?u.setVisible(!0):u.setVisible(!1)}),I.on("singleclick",function(R){y=z([]);var D=R.coordinate,G=D[0],F=D[1],A=I.getView();I.getView().getZoom(),A.animate({center:[G,F],duration:1e3}),g.value.forEach(N=>{B[N]?Je(R,B[N].setOf,`${serverAPI.geoserverUrl2}/${B[N].name}/rest/maps/${B[N].setOf}`,N):k[N]&&Je(R,k[N].setOf,`${serverAPI.geoserverUrl2}/${k[N].name}/rest/maps/${k[N].setOf}`,N)})});var w=new ResizeObserver(function(R){R.forEach(function(D){var G=D.contentRect.width,F=D.contentRect.height;m.style.width=G+"px",m.style.height=F+"px",I.updateSize()})});w.observe(v)}function Je(v,m,w,R){var D=new ol.geom.Point(v.coordinate),G=new ol.supermap.QueryByGeometryParameters({queryParams:{name:m},geometry:D});let F=document.querySelector("#popup-title"),A=z(null);var N=z(1),nt=1;new ol.supermap.QueryService(w).queryByGeometry(G,function(T){if(T.result.currentCount>0){y.value.push({name:R,information:T.result.recordsets[0].features.features[0].properties}),y.value.length>1?it.value=!0:it.value=!1,T.result.recordsets[0].features&&(St.setPosition(D.flatCoordinates),y.value[0].name>=2019?(F.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",J.innerHTML='

\u9879\u76EE\u540D\u79F0: '+y.value[0].information.XMMC+"

\u9879\u76EE\u7F16\u53F7: "+y.value[0].information.XMBH+"

\u9879\u76EE\u9762\u79EF: "+y.value[0].information.XMMJ+"

\u5730\u5757\u9762\u79EF: "+y.value[0].information.DKMJ+"

\u6807\u8BC6\u7801: "+y.value[0].information.BSM+"

\u5730\u5757\u7F16\u53F7: "+y.value[0].information.DKBH+"

\u9879\u76EE\u5E74\u4EFD: "+y.value[0].information.XMNF+"

"):y.value[0].name>=2011&&y.value[0].name<=2018?(F.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",J.innerHTML='

\u9879\u76EE\u540D\u79F0:'+y.value[0].information.XMMC+"

\u6807\u8BC6\u7801: "+y.value[0].information.BSM+"

\u5730\u5757\u9762\u79EF: "+y.value[0].information.DIKUAIAREA+"

\u5730\u5757\u7528\u9014/\u7C7B\u578B: "+y.value[0].information.DLBM+"

\u9879\u76EE\u7F16\u53F7: "+y.value[0].information.XMBH+"

"):y.value[0].name=="\u6C38\u4E45\u57FA\u672C\u519C\u7530"?(F.innerHTML="\u6C38\u4E45\u57FA\u672C\u519C\u7530",J.innerHTML='

\u7C7B\u578B: '+y.value[0].name+"

\u5730\u7C7B\u540D\u79F0: "+y.value[0].information.DLMC+"

\u6743\u5C5E\u6027\u8D28: "+y.value[0].information.QSXZ+"

\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: "+y.value[0].information.QSDWMC+"

\u5750\u843D\u5355\u4F4D\u540D\u79F0: "+y.value[0].information.ZLDWMC+"

\u6263\u9664\u5730\u7C7B\u7F16\u7801: "+y.value[0].information.KCDLBM+"

\u6263\u9664\u7CFB\u6570: "+y.value[0].information.KCXS+"

\u6263\u9664\u9762\u79EF: "+y.value[0].information.KCMJ+"

\u8015\u5730\u7C7B\u578B: "+y.value[0].information.GDLX+"

\u8015\u5730\u5761\u5EA6\u7EA7\u522B: "+y.value[0].information.GDPDJB+"

\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: "+y.value[0].information.ZZSXDM+"

\u79CD\u690D\u5C5E\u6027\u540D\u79F0: "+y.value[0].information.ZZSXMC+"

\u8015\u5730\u7B49\u7EA7: "+y.value[0].information.GDDJ+"

\u6570\u636E\u5E74\u4EFD: "+y.value[0].information.SJNF+"

\u4FDD\u62A4\u5F00\u59CB\u65F6\u95F4: "+y.value[0].information.BHKSSJ+"

\u6C38\u4E45\u57FA\u672C\u519C\u7530\u9762\u79EF: "+(y.value[0].information.YJJBNTMJ_Y/666).toFixed(2)+"(\u4EA9)

"):y.value[0].name=="\u8015\u5730"?(F.innerHTML="\u8015\u5730",J.innerHTML='

\u5730\u7C7B\u540D\u79F0: '+y.value[0].information.DLMC+"

\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: "+y.value[0].information.QSDWMC+"

\u5750\u843D\u5355\u4F4D\u540D\u79F0: "+y.value[0].information.ZLDWMC+"

\u6263\u9664\u5730\u7C7B\u7F16\u7801: "+y.value[0].information.KCDLBM+"

\u6263\u9664\u7CFB\u6570: "+y.value[0].information.KCXS+"

\u6263\u9664\u9762\u79EF: "+y.value[0].information.KCMJ+"

\u8015\u5730\u7C7B\u578B: "+y.value[0].information.GDLX+"

\u8015\u5730\u5761\u5EA6\u7EA7\u522B: "+y.value[0].information.GDPDJB+"

\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: "+y.value[0].information.ZZSXDM+"

\u79CD\u690D\u5C5E\u6027\u540D\u79F0: "+y.value[0].information.ZZSXMC+"

\u6570\u636E\u5E74\u4EFD: "+y.value[0].information.SJNF+"

\u56FE\u6591\u9762\u79EF: "+(y.value[0].information.TBMJ_YS/666).toFixed(2)+"(\u4EA9)

\u56FE\u6591\u5730\u7C7B\u9762\u79EF: "+(y.value[0].information.TBDLMJ_YS/666).toFixed(2)+"(\u4EA9)

"):y.value[0].name=="\u7247\u5757\u4FE1\u606F"?(F.innerHTML="\u7247\u5757\u4FE1\u606F",J.innerHTML='

\u6807\u8BC6\u7801: '+y.value[0].information.BSM+"

\u8981\u7D20\u4EE3\u7801: "+y.value[0].information.YSDM+"

\u4E24\u533A\u4EE3\u7801: "+y.value[0].information.LQDM+"

\u4E24\u533A\u7247\u5757\u4EE3\u7801: "+y.value[0].information.LQPKDM+"

\u4E24\u533A\u7247\u5757\u9762\u79EF(\u4EA9): "+y.value[0].information.LQPKMJM+"

\u7247\u5757\u7C7B\u578B: "+y.value[0].information.PKLX+"

"):y.value[0].name=="\u5730\u5757\u4FE1\u606F"?(F.innerHTML="\u5730\u5757\u4FE1\u606F",J.innerHTML='

\u6807\u8BC6\u7801: '+y.value[0].information.BSM+"

\u8981\u7D20\u4EE3\u7801: "+y.value[0].information.YSDM+"

\u4E24\u533A\u7247\u5757\u4EE3\u7801: "+y.value[0].information.LQPKDM+"

\u4E24\u533A\u7C7B\u578B: "+y.value[0].information.LQLX+"

\u533A\u57DF\u5212\u5206\u7C7B\u578B: "+y.value[0].information.QYHFLX+"

\u4E24\u533A\u5730\u5757\u4EE3\u7801: "+y.value[0].information.LQDKDM+"

\u4E24\u533A\u5730\u5757\u9762\u79EF(\u4EA9): "+y.value[0].information.LQDKMJM+"

\u98DE\u5165\u5730\u6807\u8BC6: "+y.value[0].information.FRDBS+"

\u5761\u5EA6\u7EA7\u522B: "+y.value[0].information.PDJB+"

\u662F\u5426\u9AD8\u6807\u51C6\u519C\u7530: "+y.value[0].information.SFGBZNT+"

\u7ECF\u8425\u4E3B\u4F53\u7C7B\u578B: "+y.value[0].information.JYZTLX+"

"):y.value[0].name=="\u571F\u5730\u786E\u6743"?(F.innerHTML="\u571F\u5730\u786E\u6743",a.value=!0,Us({dkbm:y.value[0].information.DKBM}).then(ct=>{let Qt=[];ct.data[0].cbdkxxes.forEach(me=>{Qt.push(me.cyxm)}),J.innerHTML='

\u8981\u7D20\u4EE3\u7801: '+y.value[0].information.YSDM+"

\u5730\u5757\u7F16\u7801: "+y.value[0].information.DKBM+"

\u5730\u5757\u540D\u79F0: "+y.value[0].information.DKMC+"

\u6240\u6709\u6743\u6027\u8D28: "+y.value[0].information.SYQXZ+"

\u5730\u5757\u7C7B\u522B:"+y.value[0].information.DKLB+"

\u571F\u5730\u5229\u7528\u7C7B\u578B: "+y.value[0].information.TDLYLX+"

\u5730\u529B\u7B49\u7EA7: "+y.value[0].information.DLDJ+"

\u571F\u5730\u7528\u9014: "+y.value[0].information.TDYT+"

\u662F\u5426\u57FA\u672C\u519C\u7530: "+y.value[0].information.SFJBNT+"

\u5B9E\u6D4B\u9762\u79EF\u4EA9: "+(y.value[0].information.SCMJ/666).toFixed(2)+"

\u627F\u5305\u65B9: "+ct.data[0].cbfmc+"

\u627F\u5305\u65B9\u5BB6\u5EAD\u6210\u5458:"+Qt.join(",")+"

",a.value=!1})):y.value[0].name=="\u4E09\u8C03"&&(F.innerHTML="\u4E09\u8C03",J.innerHTML='

\u6807\u8BC6\u7801: '+y.value[0].information.BSM+"

\u5730\u7C7B\u540D\u79F0: "+y.value[0].information.DLMC+"

\u56FE\u6591\u9762\u79EF: "+(y.value[0].information.TBMJ/666).toFixed(2)+"(\u4EA9)

\u5750\u843D\u5355\u4F4D\u540D\u79F0: "+y.value[0].information.ZLDWMC+"

\u6743\u5C5E\u6027\u8D28: "+y.value[0].information.QSXZ+"

\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: "+y.value[0].information.QSDWMC+"

\u8015\u5730\u5761\u5EA6\u7EA7\u522B: "+y.value[0].information.GDPDJB+"

\u98DE\u5165\u5730\u6807\u8BC6: "+y.value[0].information.FRDBS+"

\u79CD\u690D\u7C7B\u578B: "+y.value[0].information.ZZSXMC+"

"));var ft=I.getLayers().getArray().find(ct=>ct.get("id")==="zhezhao");I.removeLayer(ft),A=I.getLayers().getArray().find(ct=>ct.get("id")==="dianjigaoliang"),I.removeLayer(A);var It=new ol.format.GeoJSON().readFeatures(T.result.recordsets[0].features),K=new ol.source.Vector;K.addFeatures(It);const S=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(255, 219, 113, 1.0)",width:5})});var rt=new ol.layer.Vector({id:"dianjigaoliang",source:K,zIndex:9999});rt.setStyle(S),I.addLayer(rt)}}),lt.addEventListener("click",function(){A=I.getLayers().getArray().find(T=>T.get("id")==="dianjigaoliang"),I.removeLayer(A),St.setPosition(void 0)}),document.getElementById("popup-prev").addEventListener("click",function(){N.value>1&&(N.value--,xt(),N.value<=1&&(j.value=!1))}),document.getElementById("popup-next").addEventListener("click",function(T){var ft=y.value.length,It=Math.ceil(ft/nt);N.value=2019?(F.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",K.innerHTML='

\u7C7B\u578B: \u9AD8\u6807\u51C6\u519C\u7530

\u9879\u76EE\u7F16\u53F7: '+S.information.XMBH+"

\u9879\u76EE\u9762\u79EF: "+S.information.XMMJ+"

\u5730\u5757\u9762\u79EF: "+S.information.DKMJ+"

\u6807\u8BC6\u7801: "+S.information.BSM+"

\u5730\u5757\u7F16\u53F7: "+S.information.DKBH+"

\u9879\u76EE\u5E74\u4EFD: "+S.information.XMNF+'

\u9879\u76EE\u540D\u79F0: '+S.information.XMMC+"

"):S.name>=2011&&S.name<=2018?(F.innerHTML="\u9AD8\u6807\u51C6\u519C\u7530",K.innerHTML='

\u6807\u8BC6\u7801: '+S.information.BSM+"

\u5730\u5757\u9762\u79EF: "+S.information.DIKUAIAREA+"

\u5730\u5757\u7528\u9014/\u7C7B\u578B: "+S.information.DLBM+"

\u9879\u76EE\u7F16\u53F7: "+S.information.XMBH+'

\u9879\u76EE\u540D\u79F0:'+S.information.XMMC+"

"):S.name=="\u6C38\u4E45\u57FA\u672C\u519C\u7530"?(F.innerHTML="\u6C38\u4E45\u57FA\u672C\u519C\u7530",K.innerHTML='

\u7C7B\u578B: '+S.name+"

\u5730\u7C7B\u540D\u79F0: "+S.information.DLMC+"

\u6743\u5C5E\u6027\u8D28: "+S.information.QSXZ+"

\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: "+S.information.QSDWMC+"

\u5750\u843D\u5355\u4F4D\u540D\u79F0: "+S.information.ZLDWMC+"

\u6263\u9664\u5730\u7C7B\u7F16\u7801: "+S.information.KCDLBM+"

\u6263\u9664\u7CFB\u6570: "+S.information.KCXS+"

\u6263\u9664\u9762\u79EF: "+S.information.KCMJ+"

\u8015\u5730\u7C7B\u578B: "+S.information.GDLX+"

\u8015\u5730\u5761\u5EA6\u7EA7\u522B: "+S.information.GDPDJB+"

\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: "+S.information.ZZSXDM+"

\u79CD\u690D\u5C5E\u6027\u540D\u79F0: "+S.information.ZZSXMC+"

\u8015\u5730\u7B49\u7EA7: "+S.information.GDDJ+"

\u6570\u636E\u5E74\u4EFD: "+S.information.SJNF+"

\u4FDD\u62A4\u5F00\u59CB\u65F6\u95F4: "+S.information.BHKSSJ+"

\u6C38\u4E45\u57FA\u672C\u519C\u7530\u9762\u79EF: "+(S.information.YJJBNTMJ_Y/666).toFixed(2)+"(\u4EA9)

"):S.name=="\u8015\u5730"?(F.innerHTML="\u8015\u5730",K.innerHTML='

\u7C7B\u578B: '+S.name+"

\u5730\u7C7B\u540D\u79F0: "+S.information.DLMC+"

\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: "+S.information.QSDWMC+"

\u5750\u843D\u5355\u4F4D\u540D\u79F0: "+S.information.ZLDWMC+"

\u6263\u9664\u5730\u7C7B\u7F16\u7801: "+S.information.KCDLBM+"

\u6263\u9664\u7CFB\u6570: "+S.information.KCXS+"

\u6263\u9664\u9762\u79EF: "+S.information.KCMJ+"

\u8015\u5730\u7C7B\u578B: "+S.information.GDLX+"

\u8015\u5730\u5761\u5EA6\u7EA7\u522B: "+S.information.GDPDJB+"

\u79CD\u690D\u5C5E\u6027\u4EE3\u7801: "+S.information.ZZSXDM+"

\u79CD\u690D\u5C5E\u6027\u540D\u79F0: "+S.information.ZZSXMC+"

\u6570\u636E\u5E74\u4EFD: "+S.information.SJNF+"

\u56FE\u6591\u9762\u79EF: "+(S.information.TBMJ_YS/666).toFixed(2)+"(\u4EA9)

\u56FE\u6591\u5730\u7C7B\u9762\u79EF: "+(S.information.TBDLMJ_YS/666).toFixed(2)+"(\u4EA9)

"):S.name=="\u7247\u5757\u4FE1\u606F"?(F.innerHTML="\u7247\u5757\u4FE1\u606F",K.innerHTML='

\u7C7B\u578B: '+S.name+"

\u6807\u8BC6\u7801: "+S.information.BSM+"

\u8981\u7D20\u4EE3\u7801: "+S.information.YSDM+"

\u4E24\u533A\u4EE3\u7801: "+S.information.LQDM+"

\u4E24\u533A\u7247\u5757\u4EE3\u7801: "+S.information.LQPKDM+"

\u4E24\u533A\u7247\u5757\u9762\u79EF(\u4EA9): "+S.information.LQPKMJM+"

\u7247\u5757\u7C7B\u578B: "+S.information.PKLX+"

"):S.name=="\u5730\u5757\u4FE1\u606F"?(F.innerHTML="\u5730\u5757\u4FE1\u606F",K.innerHTML='

\u7C7B\u578B: '+S.name+"

\u6807\u8BC6\u7801: "+S.information.BSM+"

\u8981\u7D20\u4EE3\u7801: "+S.information.YSDM+"

\u4E24\u533A\u7247\u5757\u4EE3\u7801: "+S.information.LQPKDM+"

\u4E24\u533A\u7C7B\u578B: "+S.information.LQLX+"

\u533A\u57DF\u5212\u5206\u7C7B\u578B: "+S.information.QYHFLX+"

\u4E24\u533A\u5730\u5757\u4EE3\u7801: "+S.information.LQDKDM+"

\u4E24\u533A\u5730\u5757\u540D\u79F0: "+S.information.LQDKMC+"

\u4E24\u533A\u5730\u5757\u9762\u79EF(\u4EA9): "+S.information.LQDKMJM+"

\u98DE\u5165\u5730\u6807\u8BC6: "+S.information.FRDBS+"

\u5761\u5EA6\u7EA7\u522B: "+S.information.PDJB+"

\u662F\u5426\u9AD8\u6807\u51C6\u519C\u7530: "+S.information.SFGBZNT+"

\u7ECF\u8425\u4E3B\u4F53\u7C7B\u578B: "+S.information.JYZTLX+"

"):S.name=="\u571F\u5730\u786E\u6743"?(F.innerHTML="\u571F\u5730\u786E\u6743",a.value=!0,Us({dkbm:S.information.DKBM}).then(ct=>{let Qt=[];ct.data[0].cbdkxxes.forEach(me=>{Qt.push(me.cyxm)}),K.innerHTML='

\u7C7B\u578B: '+S.name+"

\u8981\u7D20\u4EE3\u7801: "+S.information.YSDM+"

\u5730\u5757\u7F16\u7801: "+S.information.DKBM+"

\u5730\u5757\u540D\u79F0: "+S.information.DKMC+"

\u6240\u6709\u6743\u6027\u8D28: "+S.information.SYQXZ+"

\u5730\u5757\u7C7B\u522B:"+S.information.DKLB+"

\u571F\u5730\u5229\u7528\u7C7B\u578B: "+S.information.TDLYLX+"

\u5730\u529B\u7B49\u7EA7: "+S.information.DLDJ+"

\u571F\u5730\u7528\u9014: "+S.information.TDYT+"

\u662F\u5426\u57FA\u672C\u519C\u7530: "+S.information.SFJBNT+"

\u5B9E\u6D4B\u9762\u79EF\u4EA9: "+(S.information.SCMJ/666).toFixed(2)+"

\u627F\u5305\u65B9: "+ct.data[0].cbfmc+"

\u627F\u5305\u65B9\u5BB6\u5EAD\u6210\u5458:"+Qt.join(",")+"

",a.value=!1})):S.name=="\u4E09\u8C03"&&(F.innerHTML="\u4E09\u8C03",K.innerHTML='

\u6807\u8BC6\u7801: '+S.information.BSM+"

\u5730\u7C7B\u540D\u79F0: "+S.information.DLMC+"

\u56FE\u6591\u9762\u79EF: "+(S.information.TBMJ/666).toFixed(2)+"(\u4EA9)

\u5750\u843D\u5355\u4F4D\u540D\u79F0: "+S.information.ZLDWMC+"

\u6743\u5C5E\u6027\u8D28: "+S.information.QSXZ+"

\u6743\u5C5E\u5355\u4F4D\u540D\u79F0: "+S.information.QSDWMC+"

\u8015\u5730\u5761\u5EA6\u7EA7\u522B: "+S.information.GDPDJB+"

\u98DE\u5165\u5730\u6807\u8BC6: "+S.information.FRDBS+"

\u79CD\u690D\u7C7B\u578B: "+S.information.ZZSXMC+"

")}}}const Lt=()=>{document.getElementById("popup"),J=document.getElementById("popup-content"),lt=document.getElementById("popup-closer"),St=new ol.Overlay({element:document.getElementById("popup"),positioning:"bottom-center",stopEvent:!0,offset:[0,-10]}),I.addOverlay(St)};function Gt(v,m){var w=I.getView();w.animate({center:[v,m],duration:1e3,zoom:17})}function Bi(v){let m="",w="",R="",D="",G="";!v.villageValue&&v.value?(w=`${serverAPI.geoserverUrl2}/data-liangquhuadingWGS84/rest/data`,m=v.value,R="XJQY3702112019WGS84",D="liangquhuadingWGS84",G="XJQYMC"):v.value&&v.villageValue&&(w=`${serverAPI.geoserverUrl2}/data-liangquhuadingWGS84/rest/data`,m=v.villageValue,R="CJQY3702112019WGS84",D="liangquhuadingWGS84",G="CJQYMC");var F=new ol.supermap.GetFeaturesBySQLParameters({queryParameter:{name:`${R}@${D}`,attributeFilter:`${G} like '%${m}%'`},datasetNames:[`${D}:${R}`]});new ol.supermap.FeatureService(w).getFeaturesBySQL(F,function(A){if(A.result.featureCount!=0){var N=I.getLayers().getArray().find(K=>K.get("id")==="zhezhao");I.removeLayer(N);var nt=I.getLayers().getArray().find(K=>K.get("id")==="dianjigaoliang");I.removeLayer(nt);var xt=new ol.format.GeoJSON().readFeatures(A.result.features),T=new ol.source.Vector;T.addFeatures(xt);const It=new ol.style.Style({stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var ft=new ol.layer.Vector({id:"dianjigaoliang",source:T});ft.setStyle(It),I.addLayer(ft),I.getView().fit(T.getExtent())}})}function Ni(v,m){const w=[];w.push(v.Lon),w.push(v.Lat),Wi(w,m.setOf,`${serverAPI.geoserverUrl2}/${m.name}/rest/maps/${m.setOf}`)}function Wi(v,m,w){var R=new ol.geom.Point(v),D=new ol.supermap.QueryByGeometryParameters({queryParams:{name:m},geometry:R});new ol.supermap.QueryService(w).queryByGeometry(D,function(G){if(G.result.currentCount>0){var F=I.getLayers().getArray().find(ft=>ft.get("id")==="zhezhao");I.removeLayer(F);var A=I.getLayers().getArray().find(ft=>ft.get("id")==="dianjigaoliang");I.removeLayer(A);var N=new ol.format.GeoJSON().readFeatures(G.result.recordsets[0].features),nt=new ol.source.Vector;nt.addFeatures(N);const T=new ol.style.Style({fill:new ol.style.Fill({color:"rgba(0, 255, 0, 0.1)"}),stroke:new ol.style.Stroke({color:"rgba(85, 255, 255, 1.0)",width:2})});var xt=new ol.layer.Vector({id:"dianjigaoliang",source:nt});xt.setStyle(T),I.addLayer(xt),I.getView().fit(nt.getExtent())}else Gt(v[0],v[1])})}const Xi=()=>{u=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl2+"/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"CJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999}),I.addLayer(u)},Yi=()=>{var v=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl2+"/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie",cacheEnabled:!1}),name:"XJQY3702112019WGS84",projection:"EPSG:4326",zIndex:9999});I.addLayer(v)},Qe=v=>{let m=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:`${serverAPI.geoserverUrl2}/${v.name}/rest/maps/${v.setOf}`,cacheEnabled:!1}),name:v.name,projection:"EPSG:4326",zIndex:v.name=="map-liangqudikuaixk"?9998:999});I.addLayer(m)},zi=v=>{let m=new ol.layer.Tile({source:new ol.source.TileSuperMapRest({url:serverAPI.geoserverUrl2+`/map-ugcv5-${v.name}${v.setOf}/rest/maps/${v.name}@${v.setOf}`,cacheEnabled:!1}),name:v.name,projection:"EPSG:4326"});I.addLayer(m)};z({label:[]});function Vi(){if(i.value=!i.value,i.value){let v=document.querySelector(".rightWra");v.style.transform="translate(0,0)"}else{let v=document.querySelector(".rightWra");v.style.transform="translate(101%,0)"}}const ue=(v,m)=>{let w=!1;if(d.value.forEach((R,D)=>{if(v.label==R)d.value.splice(D,1),w=!0;else if(v.label=="\u9AD8\u6807\u51C6\u519C\u7530")for(const G in k)d.value.indexOf(G)!==-1&&(d.value.splice(d.value.indexOf(G),1),w=!0,_.value=[])}),!w)if(v.label=="\u9AD8\u6807\u51C6\u519C\u7530")for(const R in k)d.value.push(R);else for(const R in B)v.label==R&&d.value.push(R);v.label=="\u9AD8\u6807\u51C6\u519C\u7530"&&(C.value=!C.value,C.value?dt=z({2012:!1,2013:!1,2014:!1,2015:!1,2016:!1,2017:!1,2018:!1,2019:!1,2020:!1,2021:!1,2022:!1}):dt=z({2012:!0,2013:!0,2014:!0,2015:!0,2016:!0,2017:!0,2018:!0,2019:!0,2020:!0,2021:!0,2022:!0})),_.value.forEach(R=>{d.value.indexOf(R)!==-1&&d.value.splice(d.value.indexOf(R),1)}),g.value=JSON.parse(JSON.stringify(d.value))},$e=(v,{node:m,data:w})=>{if(m.data.children)return v("span",{class:{gbz:!w.children}},m.label);switch(m.label){case"\u9AD8\u6807\u51C6\u519C\u7530":return v("span",{class:{gbz:!w.children},style:{"border-radius":"2px",background:" rgba(42, 167, 44, 1)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label);case"\u6C38\u4E45\u57FA\u672C\u519C\u7530":return v("span",{class:{yjjbnt:!w.children},style:{"border-radius":"2px",background:"rgba(242, 145, 61, 1)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label);case"\u8015\u5730":return v("span",{class:{gd:!w.children},style:{"border-radius":"2px",background:"rgba(242, 221, 61, 1)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label);case"\u7247\u5757\u4FE1\u606F":return v("span",{class:{pkxx:!w.children},style:{"border-radius":"2px",background:"rgba(255, 151, 148, 1)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label);case"\u5730\u5757\u4FE1\u606F":return v("span",{class:{dkxx:!w.children},style:{"border-radius":"2px",background:"rgba(114, 138, 223, 1)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label);case"\u7CAE\u98DF\u529F\u80FD\u533A":return v("span",{class:{gbz:!w.children},style:{"border-radius":"2px",background:"rgba(242, 145, 61, 1)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label);case"\u571F\u5730\u786E\u6743":return v("span",{class:{tdqq:!w.children},style:{"border-radius":"2px",background:"rgba(56, 192, 255, 1)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label);case"\u4E09\u8C03":return v("span",{class:{gbz:!w.children},style:{"border-radius":"2px",background:"rgba(0,255,0)",border:"2px solid rgba(254, 255, 181, 1)",padding:"5px 15px 5px 15px"}},m.label)}},ti=v=>{f.value=v},vn=()=>{s.value="",o.value="",l.value.Lon="",l.value.Lat="",h.value.Lon.londu="",h.value.Lon.lonfen="",h.value.Lon.lonmiao="",h.value.Lat.latdu="",h.value.Lat.latfen="",h.value.Lat.latmiao="";var v=I.getLayers().getArray().find(w=>w.get("id")==="dianjigaoliang");I.removeLayer(v);var m=I.getView();m.animate({center:["119.88661841637813","35.85667692242919"],duration:1e3,zoom:11})},Cn=()=>{f.value==1?Bi({villageValue:s.value,value:o.value}):f.value==2?o.value.length<1?wn.error("\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u884C\u653F\u533A\u5212"):Bi({villageValue:s.value,value:X.value}):f.value==3?l.value.Lon.length>0&&l.value.Lat.length>0?Gt(l.value.Lon,l.value.Lat):wn.error("\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6"):f.value==4&&(d.value.lengt>0?d.value.forEach(v=>{B[v]?Ni({Lon:Wt(h.value.Lon.londu,h.value.Lon.lonfen,h.value.Lon.lonmiao),Lat:Wt(h.value.Lat.latdu,h.value.Lat.latfen,h.value.Lat.latmiao)},B[v]):k[v]&&Ni({Lon:Wt(h.value.Lon.londu,h.value.Lon.lonfen,h.value.Lon.lonmiao),Lat:Wt(h.value.Lat.latdu,h.value.Lat.latfen,h.value.Lat.latmiao)},k[v])}):h.value.Lon.londu.length>0&&h.value.Lon.lonfen.length>0&&h.value.Lon.lonmiao.length>0&&h.value.Lat.latdu.length>0&&h.value.Lat.latfen.length>0&&h.value.Lat.latmiao.length>0?Gt(Wt(h.value.Lon.londu,h.value.Lon.lonfen,h.value.Lon.lonmiao),Wt(h.value.Lat.latdu,h.value.Lat.latfen,h.value.Lat.latmiao)):wn.error("\u8BF7\u8F93\u5165\u7ECF\u7EAC\u5EA6"))};function Wt(v,m,w){var R=0;w!=null&&w!==""&&(R=Number(w/60));var D=0;m!=null&&m!==""?D=(Number(m)+R)/60:D=R;var G=0;return v!=null&&v!==""?G=(Number(v)+D).toFixed(6):G=D.toFixed(6),G}const ei=v=>{let m=v.target.innerText;dt.value[m]=!dt.value[m],g.value.indexOf(m)==-1?(g.value.push(m),Qe(k[m]),_.value.indexOf(m)!==-1&&_.value.splice(_.value.indexOf(m),1)):(_.value.push(m),g.value.splice(g.value.indexOf(m),1),I.getLayers().getArray().forEach((w,R)=>{w.A.name&&w.A.source.options.url==`${serverAPI.geoserverUrl2}/${k[m].name}/rest/maps/${k[m].setOf}`&&I.getLayers().removeAt(R)}))},En=v=>{switch(v.target.innerText){case"\u9AD8\u6807\u51C6\u519C\u7530":p.value=1,Z.value="\u9AD8\u6807\u51C6\u519C\u7530",Rt("\u9AD8\u6807\u51C6\u519C\u7530");break;case"\u6C38\u4E45\u57FA\u672C\u519C\u7530":p.value=2,Z.value="\u6C38\u4E45\u57FA\u672C\u519C\u7530",Rt("\u6C38\u4E45\u57FA\u672C\u519C\u7530");break;case"\u8015\u5730":p.value=3,Z.value="\u8015\u5730",Rt("\u8015\u5730");break;case"\u7247\u5757\u4FE1\u606F":p.value=4,Z.value="\u7247\u5757\u4FE1\u606F",Rt("\u4E24\u533A\u7247\u5757");break;case"\u5730\u5757\u4FE1\u606F":p.value=5,Z.value="\u5730\u5757\u4FE1\u606F",Rt("\u4E24\u533A\u5730\u5757");break;case"\u571F\u5730\u786E\u6743":p.value=6,Z.value="\u571F\u5730\u786E\u6743",Rt("\u571F\u5730\u786E\u6743");break}},Ae=v=>{L.value.forEach(m=>{m.cjqydm==o.value&&(X.value=m.cjqymc)}),Dn({divisions:o.value}).then(m=>{r.value=m.data})},Zi=()=>{Dn().then(v=>{L.value=v.data})},Rt=v=>{xe({flag:v}).then(m=>{Y.value=m.data[m.data.length-1].zSum,U.value=m.data[m.data.length-1].zQuantity,E.value=m.data,vt()})},ii=v=>{Dn().then(m=>{O.value=m.data})},ni=v=>{switch(p.value){case 1:xe({flag:"\u9AD8\u6807\u51C6\u519C\u7530",whetherToDownload:!0}).then(m=>{De(m.data[m.data.length-1].downloadPath)});break;case 2:xe({flag:"\u6C38\u4E45\u57FA\u672C\u519C\u7530",whetherToDownload:!0}).then(m=>{De(m.data[m.data.length-1].downloadPath)});break;case 3:xe({flag:"\u8015\u5730",whetherToDownload:!0}).then(m=>{De(m.data[m.data.length-1].downloadPath)});break;case 4:xe({flag:"\u4E24\u533A\u7247\u5757",whetherToDownload:!0}).then(m=>{De(m.data[m.data.length-1].downloadPath)});break;case 5:xe({flag:"\u4E24\u533A\u5730\u5757",whetherToDownload:!0}).then(m=>{De(m.data[m.data.length-1].downloadPath)});break;case 6:xe({flag:"\u571F\u5730\u786E\u6743",whetherToDownload:!0}).then(m=>{De(m.data[m.data.length-1].downloadPath)});break}},Le=new ne({fill:new pt({color:"rgba(255, 255, 255, 0.2)"}),stroke:new le({color:"rgba(255, 219, 113, 1.0)",lineDash:[10,10],width:2}),image:new bi({radius:5,stroke:new le({color:"rgba(0, 0, 0, 0.7)"}),fill:new pt({color:"rgba(255, 255, 255, 0.2)"})})}),de=new ne({text:new gi({font:"12px Calibri,sans-serif",fill:new pt({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new pt({color:"rgba(0, 0, 0, 0.4)"}),padding:[2,2,2,2],textBaseline:"bottom",offsetY:-12}),image:new mn({radius:6,points:3,angle:Math.PI,displacement:[0,8],fill:new pt({color:"rgba(0, 0, 0, 0.4)"})})}),si=new ne({image:new bi({radius:5,stroke:new le({color:"rgba(0, 0, 0, 0.7)"}),fill:new pt({color:"rgba(0, 0, 0, 0.4)"})}),text:new gi({text:"Drag to modify",font:"12px Calibri,sans-serif",fill:new pt({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new pt({color:"rgba(0, 0, 0, 0.7)"}),padding:[2,2,2,2],textAlign:"left",offsetX:15})}),qt=[de];var ri,Dt,fe,ge;function Te(){ge&&(I.removeLayer(ge),ge=null),Dt&&(I.removeInteraction(Dt),Dt=null),fe=null}function Ui(){e.value=!e.value,Te(),li("length")}function oi(){e.value=!e.value,Te(),li("area")}function ji(){e.value=!e.value,Te()}const be=new ne({text:new gi({font:"12px Calibri,sans-serif",fill:new pt({color:"red"}),backgroundFill:new pt({color:"rgba(0, 0, 0, 0.4)"}),padding:[2,2,2,2],textAlign:"left",offsetX:15})}),Xt=new ne({text:new gi({font:"14px Calibri,sans-serif",fill:new pt({color:"rgba(255, 255, 255, 1)"}),backgroundFill:new pt({color:"rgba(0, 0, 0, 0.4)"}),padding:[3,3,3,3],textBaseline:"bottom",offsetY:-15}),image:new mn({radius:8,points:3,angle:Math.PI,displacement:[0,10],fill:new pt({color:"rgba(0, 0, 0, 0.4)"})})});var Jt=function(v){var m=br(v,{projection:I.getView().getProjection()}),w;return m>1e3?w=Math.round(m/1e3*100)/100+" km":w=Math.round(m*100)/100+" m",w},pe=function(v){var m=Dr(v,{projection:I.getView().getProjection()}),w;return m>1e4?w=Math.round(m/1e6*100)/100+" km\xB2":w=Math.round(m*100)/100+" m\xB2",w};function ai(v,m,w,R){const D=[Le],G=v.getGeometry(),F=G.getType();let A,N,nt;if((!w||w===F)&&(F==="Polygon"?(A=G.getInteriorPoint(),N=pe(G),nt=new $s(G.getCoordinates()[0])):F==="LineString"&&(A=new Ri(G.getLastCoordinate()),N=Jt(G),nt=G)),m&&nt){let xt=0;nt.forEachSegment(function(T,ft){const It=new $s([T,ft]),K=Jt(It);qt.length-1{m.indexOf(A.year)==-1&&(m.push(A.name),w.push(A.sum))}):p.value=="2"?E.value.forEach(A=>{m.push(A.name),w.push(A.sum),R.push(A.quantity?A.quantity:0)}):p.value=="3"?(E.value.forEach(A=>{m.push(A.name),w.push(A.sum),R.push(A.quantity?A.quantity:0)}),D.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new hi(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(A,N){},data:R})):p.value=="4"?(E.value.forEach(A=>{m.push(A.name),w.push(A.sum),R.push(A.quantity?A.quantity:0)}),D.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new hi(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(A,N){},data:R})):p.value=="5"?(E.value.forEach(A=>{m.push(A.name),w.push(A.sum),R.push(A.quantity?A.quantity:0)}),D.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new hi(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(A,N){},data:R})):p.value=="6"&&(E.value.forEach(A=>{m.push(A.name),w.push(A.sum),R.push(A.quantity?A.quantity:0)}),D.push({type:"bar",yAxisIndex:0,name:"\u6570\u91CF(\u4E2A)",barWidth:"15",itemStyle:{normal:{color:new hi(0,0,0,1,[{offset:0,color:"rgba(0, 209, 195, 0.8)"},{offset:1,color:"rgba(0, 209, 195, 0)"}],!1),barBorderRadius:[100,100,0,0]}},renderItem:function(A,N){},data:R}));let G=10/m.length*100;if(p.value==1){let xt=function(K,rt){const S=[];return K.forEach((ct,Qt)=>{const me=[];for(let ms=0;ms{A.indexOf(K.year)==-1&&A.push(K.year)}),E.value.forEach(K=>{let rt=[];A.forEach((S,ct)=>{S==K.year?rt.push(K.sum):rt.push(void 0)}),N.push(rt)}),N.forEach((K,rt)=>{nt.push(...xt(N[rt],`${E.value[rt].name}`))});let T={xAxis:A.map((K,rt)=>{const S=Array(A.length).fill("");return S[rt]=K+"\u5E74",{type:"category",position:"bottom",data:S,axisLine:{lineStyle:{color:"rgba(153, 153, 153, 1)"}}}}),grid:{top:"10%",left:"5%",right:"5%",bottom:"0%",containLabel:!0},yAxis:{type:"value",axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)"}},tooltip:{trigger:"axis",triggerOn:"click",enterable:!0,hideDelay:200,extraCssText:"max-width:200%;max-height:83%; overflow: auto;",axisPointer:{type:"shadow"},textStyle:{color:"#CFE3FC"},borderWidth:1,formatter:function(K){var rt='
';return K.forEach(S=>{if(S.value>0){for(let ct=0;ct
${E.value[ct].name}:
\u6295\u8D44\u91D1\u989D\uFF1A${E.value[ct].quantity} \u4E07\u5143
\u9762\u79EF\uFF1A${E.value[ct].sum} \u4EA9
`);rt+=""}}),rt}},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"78%",start:0,end:G/3,show:!0,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"35%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],series:nt},ft=window.document.querySelector(".Farmland_area");ft.style.height="350px",T&&v.setOption(T,{notMerge:!0,grid:{bottom:20}}),xs(v,T),Co().listenTo(c.value,()=>{uo(()=>{v.resize()})})}else{var F={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"rgba(9, 24, 48, 0.5)",borderColor:"rgba(75, 253, 238, 0.4)",textStyle:{color:"#CFE3FC"},borderWidth:1},grid:{left:"10px",right:"10px",top:"10px",bottom:"10px",containLabel:!0},toolbox:{show:!0,orient:"vertical",x:"right",y:"center"},dataZoom:[{type:"slider",width:"40%",zoomLock:!0,top:"90%",start:0,end:G/3,show:!1,showDataShadow:!1,showDetail:!1,fillerColor:"rgba(64, 158, 255)",borderRadius:"50%",moveHandleSize:0,moveHandleStyle:{},left:"35%",height:12,handleSize:"80%",handleIcon:"path://M512,512m-448,0a448,448,0,1,0,896,0a448,448,0,1,0,-896,0Z",handleStyle:{borderWidth:0,color:"rgba(64, 158, 255)"}},{type:"inside"}],xAxis:[{type:"category",boundaryGap:!0,axisTick:{show:!1},data:m,axisLine:{lineStyle:{color:"rgba(120, 160, 236, 1)"}},axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)",fontSize:14}}],yAxis:[{type:"value",axisTick:{show:!0},axisLine:{show:!0,lineStyle:{color:"rgba(120, 160, 236, 1)"},symbol:["none","arrow"],symbolSize:[5,12],symbolOffset:[0,10]},max:102,axisLabel:{interval:0,color:"rgba(153, 153, 153, 1)"},splitLine:{show:!1,lineStyle:{color:"rgba(39, 57, 75, 1)",width:1,type:"solid"}}}],series:D};let A=window.document.querySelector(".Farmland_area");A.style.height="70%",F&&v.setOption(F,{notMerge:!0,grid:{bottom:20}}),xs(v,F)}}return(v,m)=>{const w=Yt("el-option"),R=Yt("el-select"),D=Yt("el-input"),G=Yt("el-button"),F=Yt("el-col"),A=Yt("el-row"),N=Yt("el-icon"),nt=Yt("el-tooltip"),xt=Yt("el-tree");return et(),at("div",ac,[lc,P("div",hc,[P("div",cc,[uc,P("div",dc,[P("p",{class:Hi(b(f)=="2"?"SelectedDiv":""),onClick:m[0]||(m[0]=T=>ti(2))},"\u884C\u653F\u533A",2),P("p",{class:Hi(b(f)=="3"?"SelectedDiv":""),onClick:m[1]||(m[1]=T=>ti(3))},"\u7ECF\u7EAC\u5EA6",2),P("p",{class:Hi(b(f)=="4"?"SelectedDiv":""),onClick:m[2]||(m[2]=T=>ti(4))},"\u5EA6\u5206\u79D2",2)]),P("div",fc,[b(f)=="2"?(et(),at("div",gc,[Q(R,{onChange:m[3]||(m[3]=T=>Ae()),"popper-class":"select_city",modelValue:b(o),"onUpdate:modelValue":m[4]||(m[4]=T=>_s(o)?o.value=T:o=T),placeholder:"\u8BF7\u9009\u62E9\u9547"},{default:tt(()=>[(et(!0),at(Rn,null,In(b(O),T=>(et(),Ki(w,{key:T.cjqydm,label:T.cjqymc,value:T.cjqydm},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Q(R,{"popper-class":"select_city",modelValue:b(s),"onUpdate:modelValue":m[5]||(m[5]=T=>_s(s)?s.value=T:s=T),placeholder:"\u8BF7\u9009\u62E9\u6751"},{default:tt(()=>[(et(!0),at(Rn,null,In(b(r),T=>(et(),Ki(w,{key:T.cjqydm,label:T.cjqymc,value:T.cjqymc},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):gt("",!0),b(f)=="3"?(et(),at("div",pc,[P("div",mc,[ot(" \u7ECF\u5EA6\uFF1A "),Q(D,{class:"seach_input",modelValue:b(l).Lon,"onUpdate:modelValue":m[6]||(m[6]=T=>b(l).Lon=T),placeholder:"\u8BF7\u8F93\u5165\u7ECF\u5EA6",clearable:""},null,8,["modelValue"])]),P("div",_c,[ot(" \u7EAC\u5EA6\uFF1A "),Q(D,{class:"seach_input",modelValue:b(l).Lat,"onUpdate:modelValue":m[7]||(m[7]=T=>b(l).Lat=T),placeholder:"\u8BF7\u8F93\u5165\u7EAC\u5EA6",clearable:""},null,8,["modelValue"])])])):gt("",!0),b(f)=="4"?(et(),at("div",xc,[P("div",yc,[ot(" \u7ECF\u5EA6\uFF1A "),P("div",Sc,[Q(D,{class:"seach_input",modelValue:b(h).Lon.londu,"onUpdate:modelValue":m[8]||(m[8]=T=>b(h).Lon.londu=T),placeholder:"\u5EA6",clearable:""},{append:tt(()=>[ot("\xB0")]),_:1},8,["modelValue"]),Q(D,{class:"seach_input",modelValue:b(h).Lon.lonfen,"onUpdate:modelValue":m[9]||(m[9]=T=>b(h).Lon.lonfen=T),placeholder:"\u5206",clearable:""},{append:tt(()=>[ot("\u2032")]),_:1},8,["modelValue"]),Q(D,{class:"seach_input",modelValue:b(h).Lon.lonmiao,"onUpdate:modelValue":m[10]||(m[10]=T=>b(h).Lon.lonmiao=T),placeholder:"\u79D2",clearable:""},{append:tt(()=>[ot("\u2033")]),_:1},8,["modelValue"])])]),P("div",vc,[ot(" \u7EAC\u5EA6\uFF1A "),P("div",Cc,[Q(D,{class:"seach_input",modelValue:b(h).Lat.latdu,"onUpdate:modelValue":m[11]||(m[11]=T=>b(h).Lat.latdu=T),placeholder:"\u5EA6",clearable:""},{append:tt(()=>[ot("\xB0")]),_:1},8,["modelValue"]),Q(D,{class:"seach_input",modelValue:b(h).Lat.latfen,"onUpdate:modelValue":m[12]||(m[12]=T=>b(h).Lat.latfen=T),placeholder:"\u5206",clearable:""},{append:tt(()=>[ot("\u2032")]),_:1},8,["modelValue"]),Q(D,{class:"seach_input",modelValue:b(h).Lat.latmiao,"onUpdate:modelValue":m[13]||(m[13]=T=>b(h).Lat.latmiao=T),placeholder:"\u79D2",clearable:""},{append:tt(()=>[ot("\u2033")]),_:1},8,["modelValue"])])])])):gt("",!0)]),P("div",Ec,[Q(G,{class:"seach",onClick:m[14]||(m[14]=T=>Cn())},{default:tt(()=>[ot("\u67E5\u8BE2")]),_:1}),Q(G,{class:"resetting",onClick:m[15]||(m[15]=T=>vn())},{default:tt(()=>[ot("\u91CD\u7F6E")]),_:1})])]),P("div",Rc,[Ic,P("div",{class:"overview",onClick:m[16]||(m[16]=T=>En(T))},[Q(A,{gutter:10},{default:tt(()=>[Q(F,{span:8},{default:tt(()=>[P("div",{id:b(p)==1?"overviewItemSelect":"",class:"overviewItem"},[b(p)==1?(et(),at("img",Mc)):gt("",!0),ot(" \u9AD8\u6807\u51C6\u519C\u7530 "),b(p)==1?(et(),at("img",Ac)):gt("",!0)],8,wc)]),_:1}),Q(F,{span:8},{default:tt(()=>[P("div",{id:b(p)==2?"overviewItemSelect":"",class:"overviewItem"},[b(p)==2?(et(),at("img",Tc)):gt("",!0),ot(" \u6C38\u4E45\u57FA\u672C\u519C\u7530 "),b(p)==2?(et(),at("img",bc)):gt("",!0)],8,Lc)]),_:1}),Q(F,{span:8},{default:tt(()=>[P("div",{id:b(p)==3?"overviewItemSelect":"",class:"overviewItem"},[b(p)==3?(et(),at("img",kc)):gt("",!0),ot(" \u8015\u5730 "),b(p)==3?(et(),at("img",Fc)):gt("",!0)],8,Dc)]),_:1})]),_:1}),Q(A,{gutter:10},{default:tt(()=>[Q(F,{span:8},{default:tt(()=>[P("div",{id:b(p)==4?"overviewItemSelect":"",class:"overviewItem"},[b(p)==4?(et(),at("img",Pc)):gt("",!0),ot(" \u7247\u5757\u4FE1\u606F "),b(p)==4?(et(),at("img",Gc)):gt("",!0)],8,Oc)]),_:1}),Q(F,{span:8},{default:tt(()=>[P("div",{id:b(p)==5?"overviewItemSelect":"",class:"overviewItem"},[b(p)==5?(et(),at("img",Nc)):gt("",!0),ot(" \u5730\u5757\u4FE1\u606F "),b(p)==5?(et(),at("img",Wc)):gt("",!0)],8,Bc)]),_:1}),Q(F,{span:8},{default:tt(()=>[P("div",{id:b(p)==6?"overviewItemSelect":"",class:"overviewItem"},[b(p)==6?(et(),at("img",Yc)):gt("",!0),ot(" \u571F\u5730\u786E\u6743 "),b(p)==6?(et(),at("img",zc)):gt("",!0)],8,Xc)]),_:1})]),_:1})]),P("div",Vc,[P("div",Zc,[P("span",null,qi(b(Z)),1),P("p",{onClick:m[17]||(m[17]=T=>ni())},[ot(" \u4E0B\u8F7D \xA0 "),Uc])]),b(p)!==1?(et(),at("div",jc,[P("p",null,[Hc,ot(" \u603B\u9762\u79EF\uFF1A "),P("span",null,qi(b(Y)?b(Y):0)+" \u4EA9",1)]),[3,4,5,6].includes(b(p))?(et(),at("p",Kc,[qc,ot(" \u603B\u4E2A\u6570\uFF1A "),P("span",null,qi(b(U)?b(U):0),1)])):gt("",!0)])):gt("",!0),P("div",{ref_key:"Farmland_area",ref:c,class:"Farmland_area"},null,512)])]),P("div",{class:"rightFoldDiv",onClick:m[18]||(m[18]=T=>Vi())},[Q(nt,{disabled:!b(i),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u6536\u8D77",placement:"top"},{default:tt(()=>[b(i)?(et(),Ki(N,{key:0},{default:tt(()=>[Jc]),_:1})):gt("",!0)]),_:1},8,["disabled"]),Q(nt,{disabled:b(i),"hide-after":"0","show-arrow":!1,"show-after":"200",class:"box-item",effect:"dark",content:"\u5C55\u5F00",placement:"top"},{default:tt(()=>[b(i)?gt("",!0):(et(),Ki(N,{key:0},{default:tt(()=>[Qc]),_:1}))]),_:1},8,["disabled"])]),P("div",$c,[P("span",{onClick:Ui},[Q(nt,{class:"box-item",disabled:b(e),"show-arrow":!1,"hide-after":"0","show-after":"200",effect:"dark",content:"\u6D4B\u91CF\u7EBF",placement:"left",offset:"1"},{default:tt(()=>[tu]),_:1},8,["disabled"])]),P("span",{onClick:oi},[Q(nt,{class:"box-item",disabled:b(e),"show-arrow":!1,"hide-after":"0","show-after":"200",effect:"dark",content:"\u6D4B\u91CF\u9762",placement:"left",offset:"1"},{default:tt(()=>[eu]),_:1},8,["disabled"])]),P("span",{onClick:ji},[Q(nt,{class:"box-item",disabled:b(e),"show-arrow":!1,"hide-after":"0","show-after":"200",effect:"dark",content:"\u6E05\u9664",placement:"left",offset:"1"},{default:tt(()=>[iu]),_:1},8,["disabled"])])])]),P("div",nu,[Q(xt,{props:x,data:H,onCheck:ue,"render-content":$e,"show-checkbox":""})]),P("div",{class:"farmlandTimeDiv",id:b(C)?"appear":"",onClick:m[19]||(m[19]=T=>ei(T))},[P("div",ru,[(et(!0),at(Rn,null,In(b(k),(T,ft)=>(et(),at("div",{class:Hi({flag:b(dt)[ft]==!0}),key:T},qi(ft),3))),128))])],8,su),P("div",ou,[au,P("div",lu,[hu,fo(P("div",cu,[Q(G,{id:"popup-prev",disabled:!b(j)||b(a)},{default:tt(()=>[ot("\u4E0A\u4E00\u5C42")]),_:1},8,["disabled"]),Q(G,{id:"popup-next",disabled:b(j)||b(a)},{default:tt(()=>[ot("\u4E0B\u4E00\u5C42")]),_:1},8,["disabled"])],512),[[go,b(it)]])])])])}}},Ru=ro(uu,[["__scopeId","data-v-455d1ef8"]]);export{Ru as default};