1"use strict";(self.webpackChunk_terrestris_shogun_gis_client=self.webpackChunk_terrestris_shogun_gis_client||[]).push([["2244"],{54616:function(e,t,n){n.r(t),n.d(t,{CollectionEvent:function(){return a}});var i=n(274),r=n(85215),s=n(43354);let o="length";class a extends s.default{constructor(e,t,n){super(e),this.element=t,this.index=n}}class u extends r.default{constructor(e,t){if(super(),this.on,this.once,this.un,t=t||{},this.unique_=!!t.unique,this.array_=e??[],this.unique_)for(let e=1,t=this.array_.length;e<t;++e)this.assertUnique_(this.array_[e],e);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let t=0,n=e.length;t<n;++t)this.push(e[t]);return this}forEach(e){let t=this.array_;for(let n=0,i=t.length;n<i;++n)e(t[n],n,t)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(o)}insertAt(e,t){if(e<0||e>this.getLength())throw Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new a(i.A.ADD,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){let t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){let t=this.array_;for(let n=0,i=t.length;n<i;++n)if(t[n]===e)return this.removeAt(n)}removeAt(e){if(e<0||e>=this.getLength())return;let t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new a(i.A.REMOVE,t,e)),t}setAt(e,t){if(e>=this.getLength())return void this.insertAt(e,t);if(e<0)throw Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(t,e);let n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new a(i.A.REMOVE,n,e)),this.dispatchEvent(new a(i.A.ADD,t,e))}updateLength_(){this.set(o,this.array_.length)}assertUnique_(e,t){let n=this.array_;for(let i=0,r=n.length;i<r;++i)if(n[i]===e&&i!==t)throw Error("Duplicate item added to a unique collection")}}t.default=u},274:function(e,t){t.A={ADD:"add",REMOVE:"remove"}},22772:function(e,t,n){n.r(t),n.d(t,{createStyleFunction:function(){return u}});var i=n(85215),r=n(17229),s=n(17353),o=n(55506);class a extends i.default{constructor(e){super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e&&("function"==typeof e.getSimplifiedGeometry?this.setGeometry(e):this.setProperties(e))}clone(){let e=new a,t=this.geometryName_;e.setGeometryName(t);let n=this.getPropertiesInternal();if(n){let i=this.getGeometry();for(let r in n)r===t&&i?e.set(r,i.clone()):e.set(r,n[r],!0)}let i=this.getStyle();return i&&e.setStyle(i),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,s.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);let e=this.getGeometry();e&&(this.geometryChangeKey_=(0,s.KT)(e,o.default.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?u(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){e!==this.geometryName_&&(this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_())}}function u(e){let t;return"function"==typeof e?e:(Array.isArray(e)?t=e:((0,r.v)("function"==typeof e.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[e]),function(){return t})}t.default=a},5888:function(e,t,n){var i=n(55506);t.A={SINGLECLICK:"singleclick",CLICK:i.default.CLICK,DBLCLICK:i.default.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},89267:function(e,t,n){n.r(t),n.d(t,{all:function(){return o}
1,altKeyOnly:function(){return a},altShiftKeysOnly:function(){return u},always:function(){return c},click:function(){return d},doubleClick:function(){return m},focus:function(){return l},focusWithTabindex:function(){return h},mouseActionButton:function(){return y},mouseOnly:function(){return L},never:function(){return f},noModifierKeys:function(){return p},penOnly:function(){return K},platformModifierKey:function(){return v},platformModifierKeyOnly:function(){return E},pointerMove:function(){return g},primaryAction:function(){return S},shiftKeyOnly:function(){return A},singleClick:function(){return _},targetNotEditable:function(){return C},touchOnly:function(){return F}});var i=n(5888),r=n(29991),s=n(44954);function o(e){let t=arguments;return function(e){let n=!0;for(let i=0,r=t.length;i<r&&(n=n&&t[i](e));++i);return n}}let a=function(e){let t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},u=function(e){let t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},l=function(e){let t=e.map.getTargetElement(),n=t.getRootNode(),i=e.map.getOwnerDocument().activeElement;return n instanceof ShadowRoot?n.host.contains(i):t.contains(i)},h=function(e){let t=e.map.getTargetElement(),n=t.getRootNode();return!(n instanceof ShadowRoot?n.host:t).hasAttribute("tabindex")||l(e)},c=r.TRUE,d=function(e){return e.type==i.A.CLICK},y=function(e){let t=e.originalEvent;return"pointerId"in t&&0==t.button&&!(s.WEBKIT&&s.MAC&&t.ctrlKey)},f=r.FALSE,g=function(e){return"pointermove"==e.type},_=function(e){return e.type==i.A.SINGLECLICK},m=function(e){return e.type==i.A.DBLCLICK},p=function(e){let t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},E=function(e){let t=e.originalEvent;return!t.altKey&&(s.MAC?t.metaKey:t.ctrlKey)&&!t.shiftKey},v=function(e){let t=e.originalEvent;return s.MAC?t.metaKey:t.ctrlKey},A=function(e){let t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},C=function(e){let t=e.originalEvent,n=t.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!t.target.isContentEditable},L=function(e){let t=e.originalEvent;return"pointerId"in t&&"mouse"==t.pointerType},F=function(e){let t=e.originalEvent;return"pointerId"in t&&"touch"===t.pointerType},K=function(e){let t=e.originalEvent;return"pointerId"in t&&"pen"===t.pointerType},S=function(e){let t=e.originalEvent;return"pointerId"in t&&t.isPrimary&&0===t.button}},77903:function(e,t,n){n.d(t,{k:function(){return i}});function i(e,t,n,i){let r=e[t],s=e[t+1],o=0;for(let a=t+i;a<n;a+=i){let t=e[a],n=e[a+1];o+=Math.sqrt((t-r)*(t-r)+(n-s)*(n-s)),r=t,s=n}return o}},52101:function(e,t,n){n.d(t,{D2:function(){return u},e4:function(){return a}});var i=n(85215),r=n(7773),s=n(48340);class o extends i.default{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(s.A.ACTIVE)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(s.A.ACTIVE,e)}setMap(e){this.map_=e}}function a(e,t,n){let i=e.getCenterInternal();if(i){let s=[i[0]+t[0],i[1]+t[1]];e.animateInternal({duration:void 0!==n?n:250,easing:r.linear,center:e.getConstrainedCenter(s)})}}function u(e,t,n,i){let s=e.getZoom();if(void 0===s)return;let o=e.getConstrainedZoom(s+t),a=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:r.easeOut})}t.Ay=o},48340:function(e,t){t.A={ACTIVE:"active"}},89173:function(e,t,n){n.r(t),n.d(t,{SelectEvent:function(){return g}});var i=n(54616),r=n(274),s=n(22772),o=n(19487),a=n(43354),u=n(89267),l=n(29991),h=n(64923),c=n(48069),d=n(94092),y=n(52101);let f="select";class g extends a.default{constructor(e,t,n,i){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=i}}let _={};class m extends y.Ay{constructor(e){let t;if(super(),this.on,this.once,this.un,e=e||{},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:u.singleClick,this.addCondition_=e.addCondition?e.addCondition:u.never,this.removeCondition_=e.removeCondition?e.removeCondition:u.never,this.toggleCondition_=e.toggleCondition?e.toggleCondition:u.shiftKeyOnly,this.multi_=!!e.multi&&e.multi,this.filter_=e.filter?e.filter:l.TRUE,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=void 0!==e.style?e.style:function(){let e=(0,c.createEditingStyle)();return(0,o.X$)(e.Polygon,e.LineString),(0,o.X$)(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}(),this.features_=e.features||new i.default,e.layers)if("function"==typeof e.layers)t=e.layers;else{const n=e.layers;t=function(e){return n.includes(e)}}else t=l.TRUE;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[(0,d.getUid)(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[(0,d.getUid)(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(r.A.ADD,this.boundAddFeature_),this.features_.addEventListener(r.A.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(r.A.ADD,this.boundAddFeature_),this.features_.removeEventListener(r.A.REMOVE,this.boundRemoveFeature_))}addFeature_(e){let t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){let e=this.findLayerOfFeature_(t);e&&this.addFeatureLayerAssociation_(t,e)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element),this.removeFeatureLayerAssociation_(e.element)}findLayerOfFeature_(e){return this.getMap().getAllLayers().find(function(t){if(t instanceof h.default&&t.getSource()&&t.getSource().hasFeature(e))return t})}getStyle(){return this.style_}applySelectedStyle_(e){let t=(0,d.getUid)(e);t in _||(_[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(e){let t=this.getMap().getInteractions().getArray();for(let n=t.length-1;n>=0;--n){let i=t[n];if(i!==this&&i instanceof m&&i.getStyle()&&-1!==i.getFeatures().getArray().lastIndexOf(e))return void e.setStyle(i.getStyle())}let n=(0,d.getUid)(e);e.setStyle(_[n]),delete _[n]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[(0,d.getUid)(e)]}
1selectFeature(e){let t=this.findLayerOfFeature_(e);if(!this.layerFilter_(t)||!this.filter_(e,t))return!1;let n=this.getFeatures();return!n.getArray().includes(e)&&(this.addFeatureLayerAssociation_(e,t),n.push(e),this.dispatchEvent(new g(f,[e],[],void 0)),!0)}deselectFeature(e){let t=this.getFeatures(),n=t.getArray().indexOf(e);return -1!==n&&(t.removeAt(n),this.dispatchEvent(new g(f,[],[e],void 0)),!0)}toggleFeature(e){this.deselectFeature(e)||this.selectFeature(e)}clearSelection(){let e=this.getFeatures();if(0!==e.getLength()){let t=e.getArray().slice();e.clear(),this.dispatchEvent(new g(f,[],t,void 0))}}handleEvent(e){if(!this.condition_(e))return!0;let t=this.addCondition_(e),n=this.removeCondition_(e),i=this.toggleCondition_(e),r=e.map,o=this.getFeatures(),a=[],u=[];if(t||n||i){r.forEachFeatureAtPixel(e.pixel,(e,r)=>{if(!(e instanceof s.default)||!this.filter_(e,r))return;let l=o.getArray().includes(e);return l&&(n||i)?a.push(e):!l&&(t||i)&&(this.addFeatureLayerAssociation_(e,r),u.push(e)),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=a.length-1;e>=0;--e)o.remove(a[e]);o.extend(u)}else{r.forEachFeatureAtPixel(e.pixel,(e,t)=>{if(e instanceof s.default&&this.filter_(e,t))return this.addFeatureLayerAssociation_(e,t),u.push(e),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=o.getLength()-1;e>=0;--e){let t=o.item(e),n=u.indexOf(t);-1===n?(o.removeAt(e),a.push(t)):u.splice(n,1)}0!==u.length&&o.extend(u)}return(u.length>0||a.length>0)&&this.dispatchEvent(new g(f,u,a,e)),!0}}t.default=m},94092:function(e,t,n){function i(){throw Error("Unimplemented abstract method.")}n.r(t),n.d(t,{VERSION:function(){return o},abstract:function(){return i},getUid:function(){return s}});let r=0;function s(e){return e.ol_uid||(e.ol_uid=String(++r))}let o="10.9.0"}}]); 2//# sourceMappingURL=2244.983fdc1d88b2b099.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.