PageSourceSearch

https://a.zabedu.ru/static/assets/8ac6b2972df7c183a2ba.chunk.js

js zabedu.ru collected 2026-09-24 21:11:30 UTC 9,173 bytes, 3 lines download raw bytes

1"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[7883],{832:(t,e,o)=>{o.d(e,{c:()=>k,y:()=>v});var a=o(2404),r=o.n(a),l=o(2445),n=o(24002),i=o(67413),s=o(35942),c=o(14503),u=o(28027),d=o(50871),p=o(98456),f=o(48238),m=o(92123),h=o(51316),g=o(99894);const{getScale:b}=c;function y(t,e){const o=t.color_picker||{r:0,g:0,b:0,a:1},a=[o.r,o.g,o.b,255*o.a],r=t.color_scheme,l=b(r);let n={};return t.color_scheme_type===m.wP.color_breakpoints?n=(0,h.BK)(t.color_breakpoints):e.forEach((e=>{if(null!=e.cat_color&&!n.hasOwnProperty(e.cat_color)){let r;r=t.dimension?(0,d.hexToRGB)(l(e.cat_color,t.sliceId),255*o.a):a,n[e.cat_color]={color:r,enabled:!0}}})),n}const C=t=>{const e=(0,n.useRef)(null),o=(0,n.useCallback)((()=>{let e={...t.viewport};return t.formData.autozoom&&(e=(0,f.A)(e,{width:t.width,height:t.height,points:t.getPoints(t.payload.data.features||[])})),e.zoom<0&&(e.zoom=0),e}),[t]),[a,r]=(0,n.useState)(y(t.formData,t.payload.data.features||[])),[i,c]=(0,n.useState)(t.payload.form_data),[h,C]=(0,n.useState)(o());(0,n.useEffect)((()=>{if(t.payload.form_data!==i){const e=t.payload.data.features||[],a=y(t.formData,e);C(o()),c(t.payload.form_data),r(a)}}),[o,t,i]);const _=(0,n.useCallback)((t=>{const{current:o}=e;o&&o.setTooltip(t)}),[]),v=(0,n.useCallback)(((t,e,o)=>{const a=e.color_scheme,r=b(a);let l;switch(o){case m.wP.fixed_color:return l=e.color_picker||{r:0,g:0,b:0,a:100},t.map((t=>({...t,color:[l.r,l.g,l.b,255*l.a]})));case m.wP.categorical_palette:return t.map((t=>({...t,color:(0,d.hexToRGB)(r(t.cat_color,e.slice_id))})));case m.wP.color_breakpoints:{const o=e.deafult_breakpoint_color?[e.deafult_breakpoint_color.r,e.deafult_breakpoint_color.g,e.deafult_breakpoint_color.b,255*e.deafult_breakpoint_color.a]:[g.DL.r,g.DL.g,g.DL.b,255*g.DL.a];return t.map((t=>{var a;const r=null==(a=e.color_breakpoints)?void 0:a.find((e=>t.metric>=e.minValue&&t.metric<=e.maxValue));return{...t,color:r?[null==r?void 0:r.color.r,null==r?void 0:r.color.g,null==r?void 0:r.color.b,255*(null==r?void 0:r.color.a)]:o}}))}default:return[]}}),[]),k=(0,n.useCallback)((()=>{const{getLayer:e,getHighlightLayer:o,payload:r,formData:l,onAddFilter:n,onContextMenu:i,filterState:s,setDataMask:c,emitCrossFilters:u}=t;let d=r.data.features?[...r.data.features]:[];const f=l.color_scheme_type;d=v(d,l,f),l.js_data_mutator&&(d=(0,p.A)(l.js_data_mutator)(d)),l.dimension&&(d=d.filter((t=>{var e;return null==(e=a[t.cat_color])?void 0:e.enabled})));const m={formData:l,payload:{...r,data:{...r.data,features:d}},onAddFilter:n,setTooltip:_,datasource:t.datasource,onContextMenu:i,filterState:s,setDataMask:c,emitCrossFilters:u},h=e(m);return u&&null!=s&&s.value&&o?[h,o(m)]:[h]}),[v,a,t,_]),D=(0,n.useCallback)((t=>{const e=a[t],o={...a,[t]:{...e,enabled:!e.enabled}};Object.values(o).every((t=>!t.enabled))&&Object.values(o).forEach((t=>{t.enabled=!0})),r(o)}),[a]),x=(0,n.useCallback)((t=>{const e={...a};Object.values(e).forEach((t=>{t.enabled=!1})),e[t].enabled=!0,r(e)}),[a]);return(0,l.FD)("div",{style:{position:"relative"},children:[(0,l.Y)(s.S,{ref:e,viewport:h,layers:k(),setControlValue:t.setControlValue,mapStyle:t.formData.mapbox_style,mapboxApiAccessToken:t.mapboxApiKey,width:t.width,height:t.height}),(0,l.Y)(u.A,{forceCategorical:!0,categories:a,format:t.formData.legend_format,position:t.formData.legend_position,showSingleCategory:x,toggleCategory:D})]})},_=(0,n.memo)(C);function v(t,e,o){return(0,n.memo)((a=>{const c=(0,n.useRef)(),d=(0,i.Z)(a.formData),p=(0,i.Z)(a.filterState),m=(0,i.Z)(a.payload),[g,b]=(0,n.useState)((0,h.BK)(a.formData.color_breakpoints)||[]),[y,C]=(0,n.useState)((()=>{const{width:t,height:o,formData:r}=a;return r.autozoom?(0,f.A)(a.viewport,{width:t,height:o,points:e(a.payload.data.features)}):a.viewport})()),_=(0,n.useCallback)((t=>{const{current:e}=c;e&&(null==e||e.setTooltip(t))}),[]),v=(0,n.useCallback)((e=>{const{formData:a,payload:r,onAddFilter:l,filterState:n,setDataMask:i,onContextMenu:s,emitCrossFilters:c}=e,u={formData:a,payload:r,onAddFilter:l,setTooltip:_,setDataMask:i,onContextMenu:s,filterState:n,emitCrossFilters:c},d=t(u);return c&&null!=n&&n.value&&o?[d,o(u)]:[d]}),[_]);(0,n.useEffect)((()=>{const t=(0,h.BK)(a.formData.color_breakpoints);b(t)}),[a]);
1const[k,D]=(0,n.useState)(v(a));(0,n.useEffect)((()=>{const t={...d,...p,viewport:null},e={...a.formData,...a.filterState,viewport:null};r()(t,e)&&m===a.payload||D(v(a))}),[v,d,p,m,a]);const{formData:x,payload:w,setControlValue:S,height:M,width:A}=a;return(0,l.FD)("div",{style:{position:"relative"},children:[(0,l.Y)(s.S,{ref:c,mapboxApiAccessToken:w.data.mapboxApiKey,viewport:y,layers:k,mapStyle:x.mapbox_style,setControlValue:S,width:A,height:M,onViewportChange:C}),(0,l.Y)(u.A,{forceCategorical:!0,categories:g,format:a.formData.legend_format,position:a.formData.legend_position})]})}))}function k(t,e,o){return function(a){const{datasource:r,formData:n,height:i,payload:s,setControlValue:c,viewport:u,width:d,setDataMask:p,filterState:f,onContextMenu:m,emitCrossFilters:h}=a;return(0,l.Y)(_,{datasource:r,formData:n,mapboxApiKey:s.data.mapboxApiKey,setControlValue:c,viewport:u,getLayer:t,getHighlightLayer:o,payload:s,getPoints:e,width:d,height:i,setDataMask:p,onContextMenu:m,filterState:f,emitCrossFilters:h})}}},4291:(t,e,o)=>{function a({dataBounds:t,getBinId:e,padding:o=0}){const a=[t[0],t[1],[t[0][0],t[1][1]],[t[1][0],t[0][1]]].map((t=>e(t))),r=Math.min(...a.map((t=>t[0])))-o,l=Math.min(...a.map((t=>t[1])))-o;return[[r,Math.max(...a.map((t=>t[0])))+o+1],[l,Math.max(...a.map((t=>t[1])))+o+1]]}o.d(e,{O:()=>a})},28027:(t,e,o)=>{o.d(e,{A:()=>u});var a=o(2445),r=o(24002),l=o(50290),n=o(29898);const i=l.I4.div`
2  ${({theme:t})=>`\n    font-size: ${t.fontSizeSM}px;\n    position: absolute;\n    background: ${t.colorBgElevated};\n    box-shadow: 0 0 ${t.sizeUnit}px ${t.colorBorderSecondary};\n    margin: ${6*t.sizeUnit}px;\n    padding: ${3*t.sizeUnit}px ${5*t.sizeUnit}px;\n    outline: none;\n    overflow-y: scroll;\n    max-height: 200px;\n\n    & ul {\n      list-style: none;\n      padding-left: 0;\n      margin: 0;\n\n      & li a {\n        display: flex;\n        color: ${t.colorText};\n        text-decoration: none;\n        padding: ${t.sizeUnit}px 0;\n\n        & span {\n          margin-right: ${t.sizeUnit}px;\n        }\n      }\n    }\n  `}
3`,s=" - ",c=({format:t=null,forceCategorical:e=!1,position:o="tr",categories:r={},toggleCategory:l=()=>{},showSingleCategory:c=()=>{}})=>{const u=o=>{if(!t||e)return o;const a=parseFloat(o);return(0,n.ZV)(t,a)},d=e=>{if(!t)return e;if(e.includes(s)){const t=e.split(s);return u(t[0])+s+u(t[1])}return u(e)};if(0===Object.keys(r).length||null===o)return null;const p=Object.entries(r).map((([t,e])=>{var o;const r={color:`rgba(${null==(o=e.color)?void 0:o.join(", ")})`},n=e.enabled?"◼":"◻";return(0,a.Y)("li",{children:(0,a.FD)("a",{href:"#",role:"button",onClick:()=>l(t),onDoubleClick:()=>c(t),children:[(0,a.Y)("span",{style:r,children:n})," ",d(t)]})},t)})),f="t"===(null==o?void 0:o.charAt(0))?"top":"bottom",m="r"===(null==o?void 0:o.charAt(1))?"right":"left",h={position:"absolute",[f]:"0px",[m]:"10px"};return(0,a.Y)(i,{className:"dupa",style:h,children:(0,a.Y)("ul",{children:p})})},u=(0,r.memo)(c)},83177:(t,e,o)=>{o.r(e),o.d(e,{default:()=>g,getHighlightLayer:()=>h,getLayer:()=>f,getPoints:()=>m});var a=o(2445),r=o(15653),l=o(43850),n=o(74098),i=o(83860),s=o(98456),c=o(832),u=o(52480),d=o(51316);function p(t){var e;return(0,a.FD)("div",{className:"deckgl-tooltip",children:[(0,a.Y)(u.A,{label:(0,n.t)("Centroid (Longitude and Latitude): "),value:`(${null==t?void 0:t.coordinate[0]}, ${null==t?void 0:t.coordinate[1]})`}),(0,a.Y)(u.A,{label:(0,n.t)("Threshold: "),value:`${null==t||null==(e=t.object)||null==(e=e.contour)?void 0:e.threshold}`})]})}const f=function({formData:t,payload:e,filterState:o,setDataMask:a,onContextMenu:l,setTooltip:n,emitCrossFilters:c}){const u=t,{aggregation:d="SUM",js_data_mutator:f,contours:m,cellSize:h="200"}=u;let g=e.data.features;const b=null==m?void 0:m.map((t=>{const{lowerThreshold:e,upperThreshold:o,color:a,strokeWidth:r}=t;return o?{threshold:[e,o],color:[a.r,a.g,a.b]}:{threshold:e,color:[a.r,a.g,a.b],strokeWidth:r}}));return f&&(g=(0,s.A)(u.js_data_mutator)(g)),new r.A({id:`contourLayer-${u.slice_id}`,data:g,contours:b,cellSize:Number(h||"200"),aggregation:d.toUpperCase(),getPosition:t=>t.position,getWeight:t=>t.weight||0,...(0,i.T$)({formData:u,setTooltip:n,setTooltipContent:p,onContextMenu:l,setDataMask:a,filterState:o,emitCrossFilters:c})})};function m(t){return t.map((t=>t.position))}const h=function({formData:t,filterState:e,setDataMask:o,onContextMenu:a,setTooltip:r,emitCrossFilters:n}){const s=t,c=null==e?void 0:e.value[0],u=null==e?void 0:e.value[1],f=c[0],m=u[0],h=c[1],g=u[1],b=[[f,h],[m,h],[m,g],[f,g],[f,h]];return new l.A({id:`contour-highlight-layer-${s.slice_id}`,data:[{polygon:b}],getPolygon:t=>t.polygon,getFillColor:[d.Fe[0],d.Fe[1],d.Fe[2],100],getLineColor:d.Fe,getLineWidth:4,filled:!0,stroked:!0,...(0,i.T$)({formData:s,setTooltip:r,setTooltipContent:p,onContextMenu:a,setDataMask:o,filterState:e,emitCrossFilters:n})})},g=(0,c.y)(f,m,h)}}]);

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.