PageSourceSearch

https://eco-uplift.com/2231.abf5a83fbff19549.js

js eco-uplift.com collected 2026-10-07 08:22:12 UTC 12,850 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkBioInstinct=self.webpackChunkBioInstinct||[]).push([[2231],{90295:(N,B,n)=>{n.d(B,{Z:()=>m});class m{constructor(p){this.size=0,this._start=0,this.maxSize=p,this._buffer=new Array(p)}get entries(){return this._buffer}enqueue(p){if(this.size===this.maxSize){const T=this._buffer[this._start];return this._buffer[this._start]=p,this._start=(this._start+1)%this.maxSize,T}return this._buffer[(this._start+this.size++)%this.maxSize]=p,null}dequeue(){if(0===this.size)return null;const p=this._buffer[this._start];return this._buffer[this._start]=null,this.size--,this._start=(this._start+1)%this.maxSize,p}peek(){return 0===this.size?null:this._buffer[this._start]}find(p){if(0===this.size)return null;for(const T of this._buffer)if(null!=T&&p(T))return T;return null}clear(p){let T=this.dequeue();for(;null!=T;)p&&p(T),T=this.dequeue()}}},29085:(N,B,n)=>{n.d(B,{EG:()=>F,Op:()=>h,S2:()=>_});var m=n(10842),G=n(62209);const p=new G.Z,T=new G.Z,Z=new G.Z,E={esriGeometryPoint:m.fQ,esriGeometryPolyline:m.J6,esriGeometryPolygon:m.eG,esriGeometryMultipoint:m.Iv};function F(o,l,a,c=o.hasZ,O=o.hasM){if(null==l)return null;const R=o.hasZ&&c,j=o.hasM&&O;if(a){const P=(0,m.Nh)(Z,l,o.hasZ,o.hasM,"esriGeometryPoint",a,c,O);return(0,m.fQ)(P,R,j)}return(0,m.fQ)(l,R,j)}function h(o,l,a,c,O,R,j=l,P=a){const i=l&&j,s=a&&P,t=null!=c?"coords"in c?c:c.geometry:null;if(null==t)return null;if(O){let u=(0,m.zj)(T,t,l,a,o,O,j,P);return R&&(u=(0,m.Nh)(Z,u,i,s,o,R)),E[o]?.(u,i,s)??null}if(R){const u=(0,m.Nh)(Z,t,l,a,o,R,j,P);return E[o]?.(u,i,s)??null}return(0,m.hY)(p,t,l,a,j,P),E[o]?.(p,i,s)??null}function _(o){return o&&d in o?JSON.parse(JSON.stringify(o,f)):o}const d="_geVersion",f=(o,l)=>o!==d?l:void 0},44452:(N,B,n)=>{n.d(B,{Ti:()=>f,Up:()=>o,j6:()=>a});var m=n(49671),G=n(84303),p=n(49602),T=n(51208),Z=n(14138),E=n(40637),F=n(93566),h=n(33721),_=n(58829);const d=new G.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({});function o(t,u,v){return l.apply(this,arguments)}function l(){return(l=(0,m.Z)(function*(t,u,v){const{outFields:S,orderByFields:y,groupByFieldsForStatistics:U,outStatistics:r}=t;if(S)for(let e=0;e<S.length;e++)S[e]=S[e].trim();if(y)for(let e=0;e<y.length;e++)y[e]=y[e].trim();if(U)for(let e=0;e<U.length;e++)U[e]=U[e].trim();if(r)for(let e=0;e<r.length;e++)r[e].onStatisticField&&(r[e].onStatisticField=r[e].onStatisticField.trim());return t.geometry&&!t.outSR&&(t.outSR=t.geometry.spatialReference),a(t,u,v)})).apply(this,arguments)}function a(t,u,v){return c.apply(this,arguments)}function c(){return c=(0,m.Z)(function*(t,u,v){if(!t)return null;let{where:S}=t;if(t.where=S=S?.trim(),(!S||/^1 *= *1$/.test(S)||u&&u===S)&&(t.where=null),!t.geometry)return t;let y=yield function j(t){return P.apply(this,arguments)}(t);if(t.distance=0,t.units=null,"esriSpatialRelEnvelopeIntersects"===t.spatialRel){const{spatialReference:U}=t.geometry;y=(0,Z.aO)(y),y.spatialReference=U}if(y){yield(0,_._W)(y.spatialReference,v),y=function R(t,u){const v=t.spatialReference;return O(t,u)&&(0,E.YX)(t)?{spatialReference:v,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:t}(y,v);const U=(yield(0,F.aX)((0,E.im)(y)))[0];if(null==U)throw f;const r="quantizationParameters"in t&&t.quantizationParameters?.tolerance||"maxAllowableOffset"in t&&t.maxAllowableOffset||0,e=r&&O(y,v)?{densificationStep:8*r}:void 0,g=U.toJSON(),I=(0,_.iV)(g,g.spatialReference,v,e);if(!I)throw f;I.spatialReference=v,t.geometry=I}return t}),c.apply(this,arguments)}function O(t,u){if(!t)return!1;const v=t.spatialReference;return((0,E.YX)(t)||(0,E.oU)(t)||(0,E.l9)(t))&&!(0,h.fS)(v,u)&&!(0,T.canProjectWithoutEngine)(v,u)}function P(){return P=(0,m.Z)(function*(t){const{distance:u,units:v}=t,S=t.geometry;if(null==u||"vertexAttributes"in S)return S;const y=S.spatialReference,U=v?d.fromJSON(v):(0,p.qE)(y),r=y&&((0,h.sT)(y)||(0,h.sS)(y))?S:yield(0,_._W)(y,h.Zn).then(()=>(0,_.iV)(S,h.Zn));return(yield function i(){return s.apply(this,arguments)}())(r.spatialReference,r,u,U)}),P.apply(this,arguments)}function s(){return(s=(0,m.Z)(function*(){return(yield n.e(8592).then(n.bind(n,49574))).geodesicBuffer})).apply(this,arguments)}},51089:(N,B,n)=>{n.d(B,{hN:()=>U,P0:()=>S,cW:()=>v});var m=n(49671),G=n(57964),p=n(5825),T=n(26230),E=n(40637),F=n(33721);function h(r,e){return r?e?4:3:e?3:2}function f(r,e,g,I,A){if(!r)return!1;const x=h(e,g),{coords:M,lengths:C}=r;let b=!1,D=0;for(const w of C)b=o(b,M,x,D,w,I,A),D+=w*x;return b}function o(r,e,g,I,A,x,M){let C=r,b=I;for(let D=I,w=I+A*g;D<w;D+=g){b=D+g,b===w&&(b=I);const L=e[D],z=e[D+1],W=e[b+1];(z<M&&W>=M||W<M&&z>=M)&&L+(M-z)/(W-z)*(e[b]-L)<x&&(C=!C)}return C}var l=n(10842),a=n(62209),c=n(29085),O=n(58829);const R="unsupported-query",j={esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"intersects",esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:null},P={spatialRelationship:{esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},queryGeometry:{esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},layerGeometry:{esriGeometryPoint:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1}};function v(r,e,g,I,A){if((0,E.oU)(e)&&"esriGeometryPoint"===g&&("esriSpatialRelIntersects"===r||"esriSpatialRelContains"===r)){const x=(0,l.Uy)(new a.Z,e,!1,!1);return Promise.resolve(M=>function _(r,e,g,I){return f(r,e,g,I.coords[0],I.coords[1])}(x,!1,!1,M))}if((0,E.oU)(e)&&"esriGeometryMultipoint"===g){const x=(0,l.Uy)(new a.Z,e,!1,!1);if("esriSpatialRelContains"===r)return Promise.resolve(M=>function d(r,e,g,I,A,x){const M=h(A,x),{coords:C,lengths:b}=I;if(!b)return!1;for(let D=0,w=0;D<b.length;D++,w+=M)if(!f(r,e,g,C[w],C[w+1]))return!1;return!0}(x,!1,!1,M,I,A))}if((0,E.YX)(e)&&"esriGeometryPoint"===g&&("esriSpatialRelIntersects"===r||"esriSpatialRelContains"===r))return Promise.resolve(x=>(0,p.aV)(e,(0,c.Op)(g,I,A,x)));if((0,E.YX)(e)&&"esriGeometryMultipoint"===g&&"esriSpatialRelContains"===r)return Promise.resolve(x=>(0,p.lQ)(e,(0,c.Op)(g,I,A,x)));if((0,E.YX)(e)&&"esriSpatialRelIntersects"===r){const x=function Z(r){return"mesh"===r?T.h_:(0,T.IY)(r)}(g);return Promise.resolve(M=>x(e,(0,c.Op)(g,I,A,M)))}return function u(){return n.e(8592).then(n.bind(n,49574))}().then(x=>{const M=x[j[r]].bind(null,e.spatialReference,e);return C=>M((0,c.Op)(g,I,A,C))})}function S(r,e,g){return y.apply(this,arguments)}function y(){return(y=(0,m.Z)(function*(r,e,g){const{spatialRel:I,geometry:A}=r;if(A){if(!function i(r){return null!=r&&!0===P.spatialRelationship[r]}(I))throw new G.Z(R,"Unsupported query spatial relationship",{query:r});if((0,F.JY)(A.spatialReference)&&(0,F.JY)(g)){if(!function s(r){return null!=r&&!0===P.queryGeometry[(0,E.Ji)(r)]}(A))throw new G.Z(R,"Unsupported query geometry type",{query:r});if(!function t(r){return null!=r&&!0===P.layerGeometry[r]}(e))throw new G.Z(R,"Unsupported layer geometry type",{query:r});if(r.outSR)return(0,O._W)(r.geometry?.spatialReference,r.outSR)}}})).apply(this,arguments)}function U(r){if((0,E.YX)(r))return!0;
1if((0,E.oU)(r)){for(const e of r.rings)if(5!==e.length||e[0][0]!==e[1][0]||e[0][0]!==e[4][0]||e[2][0]!==e[3][0]||e[0][1]!==e[3][1]||e[0][1]!==e[4][1]||e[1][1]!==e[2][1])return!1;return!0}return!1}},21418:(N,B,n)=>{n.d(B,{R:()=>G,y:()=>T});var m=n(49671);function G(h,_){return p.apply(this,arguments)}function p(){return(p=(0,m.Z)(function*(h,_){if(!h)return null;const d=_.featureAdapter,{startTimeField:f,endTimeField:o}=h;let l=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if(f&&o)yield _.forEach(c=>{const O=d.getAttribute(c,f),R=d.getAttribute(c,o);null==O||isNaN(O)||(l=Math.min(l,O)),null==R||isNaN(R)||(a=Math.max(a,R))});else{const c=f||o;yield _.forEach(O=>{const R=d.getAttribute(O,c);null==R||isNaN(R)||(l=Math.min(l,R),a=Math.max(a,R))})}return{start:l,end:a}})).apply(this,arguments)}function T(h,_,d){if(!_||!h)return null;const{startTimeField:f,endTimeField:o}=h;if(!f&&!o)return null;const{start:l,end:a}=_;if(null===l&&null===a)return null;if(void 0===l&&void 0===a)return()=>!1;const c=d.getAttributeAsTimestamp?.bind(d)??d.getAttribute.bind(d);return f&&o?function Z(h,_,d,f,o){return null!=f&&null!=o?l=>{const a=h(l,_),c=h(l,d);return(null==a||a<=o)&&(null==c||c>=f)}:null!=f?l=>{const a=h(l,d);return null==a||a>=f}:null!=o?l=>{const a=h(l,_);return null==a||a<=o}:void 0}(c,f,o,l,a):function E(h,_,d,f){return null!=d&&null!=f&&d===f?o=>h(o,_)===d:null!=d&&null!=f?o=>{const l=h(o,_);return null!=l&&l>=d&&l<=f}:null!=d?o=>{const l=h(o,_);return null!=l&&l>=d}:null!=f?o=>{const l=h(o,_);return null!=l&&l<=f}:void 0}(c,f||o,l,a)}},95251:(N,B,n)=>{n.r(B),n.d(B,{default:()=>j});var m=n(49671),G=n(57964),p=n(4703),T=n(45425),Z=n(43585),E=n(44452),F=n(51089),h=n(21418),_=n(5491),d=n(12915),f=n(38955);const o=p.Z.getLogger("esri.views.2d.layers.features.support.whereUtils"),l={getAttribute:(P,i)=>P.readAttribute(i)};function c(){return(c=(0,m.Z)(function*(P,i){try{const s=yield(0,f.E)(P,i);if(!s.isStandardized){const t=new G.Z("mapview - bad input","Unable to apply filter's definition expression, as expression is not standardized.",s);o.error(t)}return t=>{const u=t.readArcadeFeature();return s.testFeature(u,l)}}catch{return o.warn("mapview-bad-where-clause","Encountered an error when evaluating where clause",P),t=>!0}})).apply(this,arguments)}class j{constructor(i){this._geometryBounds=(0,T.Ue)(),this._idToVisibility=new Map,this._serviceInfo=i}get hash(){return this._hash}check(i){return this._applyFilter(i)}clear(){const i=this._resetAllHiddenIds();return this.update(),{show:i,hide:[]}}invalidate(){this._idToVisibility.forEach((i,s)=>{this._idToVisibility.set(s,0)})}setKnownIds(i){for(const s of i)this._idToVisibility.set(s,1)}setTrue(i){const s=[],t=[],u=new Set(i);return this._idToVisibility.forEach((v,S)=>{const y=!!(1&this._idToVisibility.get(S)),U=u.has(S);!y&&U?s.push(S):y&&!U&&t.push(S),this._idToVisibility.set(S,U?3:0)}),{show:s,hide:t}}createQuery(){const{geometry:i,spatialRel:s,where:t,timeExtent:u,objectIds:v}=this;return _.Z.fromJSON({geometry:i,spatialRel:s,where:t,timeExtent:u,objectIds:v})}update(i,s){var t=this;return(0,m.Z)(function*(){t._hash=JSON.stringify(i);const u=yield(0,E.j6)(i,null,s);yield Promise.all([t._setGeometryFilter(u),t._setIdFilter(u),t._setAttributeFilter(u),t._setTimeFilter(u)])})()}_setAttributeFilter(i){var s=this;return(0,m.Z)(function*(){if(!i?.where)return s._clause=null,void(s.where=null);s._clause=yield function a(P,i){return c.apply(this,arguments)}(i.where,s._serviceInfo.fieldsIndex),s.where=i.where})()}_setIdFilter(i){this._idsToShow=i?.objectIds&&new Set(i.objectIds),this._idsToHide=i?.hiddenIds&&new Set(i.hiddenIds),this.objectIds=i?.objectIds}_setGeometryFilter(i){var s=this;return(0,m.Z)(function*(){if(!i?.geometry)return s._spatialQueryOperator=null,s.geometry=null,void(s.spatialRel=null);const t=i.geometry,u=i.spatialRel||"esriSpatialRelIntersects",v=yield(0,F.cW)(u,t,s._serviceInfo.geometryType,s._serviceInfo.hasZ,s._serviceInfo.hasM);(0,Z.$P)(s._geometryBounds,t),s._spatialQueryOperator=v,s.geometry=t,s.spatialRel=u})()}_setTimeFilter(i){if(this.timeExtent=this._timeOperator=null,i?.timeExtent)if(this._serviceInfo.timeInfo)this.timeExtent=i.timeExtent,this._timeOperator=(0,h.y)(this._serviceInfo.timeInfo,i.timeExtent,d.k);
1else{const s=new G.Z("feature-layer-view:time-filter-not-available","Unable to apply time filter, as layer doesn't have time metadata.",i.timeExtent);p.Z.getLogger("esri.views.2d.layers.features.controllers.FeatureFilter").error(s)}}_applyFilter(i){return this._filterByGeometry(i)&&this._filterById(i)&&this._filterByTime(i)&&this._filterByExpression(i)}_filterByExpression(i){return!this.where||this._clause(i)}_filterById(i){return(!this._idsToHide?.size||!this._idsToHide.has(i.getObjectId()))&&(!this._idsToShow?.size||this._idsToShow.has(i.getObjectId()))}_filterByGeometry(i){if(!this.geometry)return!0;const s=i.readHydratedGeometry();return!!s&&this._spatialQueryOperator(s)}_filterByTime(i){return null==this._timeOperator||this._timeOperator(i)}_resetAllHiddenIds(){const i=[];return this._idToVisibility.forEach((s,t)=>{1&s||(this._idToVisibility.set(t,1),i.push(t))}),i}}}}]);

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.