1"use strict";(self.webpackChunkactive_online_software_page=self.webpackChunkactive_online_software_page||[]).push([[796],{796:(e,t,r)=>{r.r(t),r.d(t,{encodeIntoResult:()=>f,stegaEncodeSourceMap:()=>v,stegaEncodeSourceMap$1:()=>x});var n=r(490);const o=/_key\s*==\s*['"](.*)['"]/;function s(e){if(!Array.isArray(e))throw new Error("Path is not an array");return e.reduce(((e,t,r)=>{const n=typeof t;if("number"===n)return`${e}[${t}]`;if("string"===n)return`${e}${0===r?"":"."}${t}`;if(function(e){return"string"==typeof e?o.test(e.trim()):"object"==typeof e&&"_key"in e}(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){const[r,n]=t;return`${e}[${r}:${n}]`}throw new Error(`Unsupported path segment \`${JSON.stringify(t)}\``)}),"")}const i={"\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","'":"\\'","\\":"\\\\"},a={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t","\\'":"'","\\\\":"\\"};function u(e){const t=[],r=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;let n;for(;null!==(n=r.exec(e));)if(void 0===n[1])if(void 0===n[2])if(void 0===n[3]);else{const e=n[3].replace(/\\(\\')/g,(e=>a[e]));t.push({_key:e,_index:-1})}else t.push(parseInt(n[2],10));else{const e=n[1].replace(/\\(\\|f|n|r|t|')/g,(e=>a[e]));t.push(e)}return t}function c(e){return e.map((e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw new Error(`invalid segment:${JSON.stringify(e)}`)}))}function l(e,t){if(!t?.mappings)return;const r=function(e){return`$${e.map((e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,(e=>i[e]))}']`:"number"==typeof e?`[${e}]`:""!==e._key?`[?(@._key=='${e._key.replace(/['\\]/g,(e=>i[e]))}')]`:`[${e._index}]`)).join("")}`}(e.map((e=>{if("string"==typeof e||"number"==typeof e)return e;if(-1!==e._index)return e._index;throw new Error(`invalid segment:${JSON.stringify(e)}`)})));if(void 0!==t.mappings[r])return{mapping:t.mappings[r],matchedPath:r,pathSuffix:""};const n=Object.entries(t.mappings).filter((e=>{let[t]=e;return r.startsWith(t)})).sort(((e,t)=>{let[r]=e,[n]=t;return n.length-r.length}));if(0==n.length)return;const[o,s]=n[0];return{mapping:s,matchedPath:o,pathSuffix:r.substring(o.length)}}function p(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(function(e){return null!==e&&Array.isArray(e)}(e))return e.map(((e,o)=>{if((0,n.u4)(e)){const n=e._key;if("string"==typeof n)return p(e,t,r.concat({_key:n,_index:o}))}return p(e,t,r.concat(o))}));if((0,n.u4)(e)){if("block"===e._type||"span"===e._type){const n={...e};return"block"===e._type?n.children=p(e.children,t,r.concat("children")):"span"===e._type&&(n.text=p(e.text,t,r.concat("text"))),n}return Object.fromEntries(Object.entries(e).map((e=>{let[n,o]=e;return[n,p(o,t,r.concat(n))]})))}return t(e,r)}function f(e,t,r){return p(e,((e,n)=>{if("string"!=typeof e)return e;const o=l(n,t);if(!o)return e;const{mapping:s,matchedPath:i}=o;if("value"!==s.type||"documentValue"!==s.source.type)return e;const a=t.documents[s.source.document],c=t.paths[s.source.path],p=u(i),f=u(c).concat(n.slice(p.length));return r({sourcePath:f,sourceDocument:a,resultPath:n,value:e})}))}const d=".",h=`drafts${d}`,g=`versions${d}`;function y(e){return e.startsWith(h)}function m(e){return e.startsWith(g)}function _(e){const{baseUrl:t,workspace:r="default",tool:n="default",id:o,type:i,path:a,projectId:u,dataset:l}=e;if(!t)throw new Error("baseUrl is required");if(!a)throw new Error("path is required");if(!o)throw new Error("id is required");if("/"!==t&&t.endsWith("/"))throw new Error("baseUrl must not end with a slash");const p="default"===r?void 0:r,f="default"===n?void 0:n,g=function(e){return m(e)?e.split(d).slice(2).join(d):y(e)?e.slice(h.length):e}(o),_=Array.isArray(a)?s(c(a)):a,$=new URLSearchParams({baseUrl:t,id:g,type:i,path:_});if(p&&$.set("workspace",p),f&&$.set("tool",f),u&&$.set("projectId",u),l&&$.set("dataset",l),function(e){return!y(e)&&!m(e)}(o))$.set("perspective","published");else if(m(o)){const e=function(e){if(!m(e))return;const[t,r,...n]=e.split(d);return r}(o);$.set("perspective",e)}const k=["/"===t?"":t];p&&k.push(p);const w=["mode=presentation",`id=${g}`,`type=${i}`,`path=${encodeURIComponent(_)}`];return f&&w.push(`tool=${f}`),k.push("intent","edit",`${w.join(";")}?${$}`),k.join("/")}const $=e=>{let{sourcePath:t,resultPath:r,value:n}=e;if(/^\d{4}-\d{2}-\d{2}/.test(o=n)&&Date.parse(o)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(n))return!1;var o;const s=t.at(-1);return!("slug"===t.at(-2)&&"current"===s||"string"==typeof s&&(s.startsWith("_")||s.endsWith("Id"))||t.some((e=>"meta"===e||"metadata"===e||"openGraph"===e||"seo"===e))||w(t)||w(r)||"string"==typeof s&&k.has(s))},k=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","textTheme","unit","url","username","variant","website"]);function w(e){return e.some((e=>"string"==typeof e&&null!==e.match(/type/i)))}const b=20;function v(e,t,r){const{filter:s,logger:i,enabled:a}=r;if(!a){const n="config.enabled must be true, don't call this function otherwise";throw i?.error?.(`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),new TypeError(n)}if(!t)return i?.error?.("[@sanity/client]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:r}),e;if(!r.studioUrl){const n="config.studioUrl must be defined";throw i?.error?.(`[@sanity/client]: ${n}`,{result:e,resultSourceMap:t,config:r}),new TypeError(n)}const u={encoded:[],skipped:[]},c=f(e,t,(e=>
1{let{sourcePath:t,sourceDocument:o,resultPath:a,value:c}=e;if(!1===("function"==typeof s?s({sourcePath:t,resultPath:a,filterDefault:$,sourceDocument:o,value:c}):$({sourcePath:t,resultPath:a,value:c})))return i&&u.skipped.push({path:U(t),value:`${c.slice(0,b)}${c.length>b?"...":""}`,length:c.length}),c;i&&u.encoded.push({path:U(t),value:`${c.slice(0,b)}${c.length>b?"...":""}`,length:c.length});const{baseUrl:l,workspace:p,tool:f}=function(e){let t="string"==typeof e?e:e.baseUrl;return"/"!==t&&(t=t.replace(/\/$/,"")),"string"==typeof e?{baseUrl:t}:{...e,baseUrl:t}}("function"==typeof r.studioUrl?r.studioUrl(o):r.studioUrl);if(!l)return c;const{_id:d,_type:h,_projectId:g,_dataset:y}=o;return(0,n.C)(c,{origin:"sanity.io",href:_({baseUrl:l,workspace:p,tool:f,id:d,type:h,path:t,...!r.omitCrossDatasetReferenceData&&{dataset:y,projectId:g}})},!1)}));if(i){const e=u.skipped.length,t=u.encoded.length;if((e||t)&&((i?.groupCollapsed||i.log)?.("[@sanity/client]: Encoding source map into result"),i.log?.(`[@sanity/client]: Paths encoded: ${u.encoded.length}, skipped: ${u.skipped.length}`)),u.encoded.length>0&&(i?.log?.("[@sanity/client]: Table of encoded paths"),(i?.table||i.log)?.(u.encoded)),u.skipped.length>0){const e=new Set;for(const{path:t}of u.skipped)e.add(t.replace(o,"0").replace(/\[\d+\]/g,"[]"));i?.log?.("[@sanity/client]: List of skipped paths",[...e.values()])}(e||t)&&i?.groupEnd?.()}return c}function U(e){return s(c(e))}var x=Object.freeze({__proto__:null,stegaEncodeSourceMap:v})}}]); 2//# sourceMappingURL=796.4e6e203b.chunk.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.