1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7776],{23910:function(t,r,e){var n=e(74288).Symbol;t.exports=n},73819:function(t){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},54506:function(t,r,e){var n=e(23910),o=e(4479),i=e(80910),u=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},65020:function(t,r,e){var n=e(23910),o=e(73819),i=e(25614),u=e(78371),a=1/0,s=n?n.prototype:void 0,f=s?s.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(u(r))return f?f.call(r):"";var e=r+"";return"0"==e&&1/r==-a?"-0":e}},17071:function(t,r,e){var n="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=n},4479:function(t,r,e){var n=e(23910),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,a),e=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(r?t[a]=e:delete t[a]),o}},80910:function(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},74288:function(t,r,e){var n=e(17071),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},25614:function(t){var r=Array.isArray;t.exports=r},10303:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},78371:function(t,r,e){var n=e(54506),o=e(10303);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},3641:function(t,r,e){var n=e(65020);t.exports=function(t){return null==t?"":n(t)}},50658:function(t,r,e){"use strict";e.d(r,{eT:function(){return l},qy:function(){return b},tZ:function(){return m},vs:function(){return g}});let n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/_key\s*==\s*['"](.*)['"]/,i=/^\d*:\d*$/;function u(t){return"number"==typeof t||"string"==typeof t&&/^\[\d+\]$/.test(t)}function a(t){return"string"==typeof t?o.test(t.trim()):"object"==typeof t&&"_key"in t}function s(t){if("string"==typeof t&&i.test(t))return!0;if(!Array.isArray(t)||2!==t.length)return!1;let[r,e]=t;return("number"==typeof r||""===r)&&("number"==typeof e||""===e)}function f(t){if(!Array.isArray(t))throw Error("Path is not an array");return t.reduce((t,r,e)=>{let n=typeof r;if("number"===n)return`${t}[${r}]`;if("string"===n)return`${t}${0===e?"":"."}${r}`;if(a(r)&&r._key)return`${t}[_key=="${r._key}"]`;if(Array.isArray(r)){let[e,n]=r;return`${t}[${e}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(r)}\``)},"")}function c(t){if("string"!=typeof t)throw Error("Path is not a string");let r=t.match(n);if(!r)throw Error("Invalid path string");return r.map(p)}function p(t){return u(t)?Number(t.replace(/[^\d]/g,"")):a(t)?{_key:t.match(o)[1]}:s(t)?function(t){let[r,e]=t.split(":").map(t=>""===t?t:Number(t));return[r,e]}(t):t}var l=Object.freeze({__proto__:null,fromString:c,get:function(t,r,e){let n="string"==typeof r?c(r):r;if(!Array.isArray(n))throw Error("Path must be an array or a string");let o=t;for(let t=0;t<n.length;t++){let r=n[t];if(u(r)){if(!Array.isArray(o))return e;o=o[r]}if(a(r)){if(!Array.isArray(o))return e;o=o.find(t=>t._key===r._key)}if("string"==typeof r&&(o="object"==typeof o&&null!==o?o[r]:void 0),typeof o>"u")return e}return o},isIndexSegment:u,isIndexTuple:s,isKeySegment:a,reKeySegment:o,toString:f});let y="drafts.";function d(t){return t.startsWith(y)}function h(t){return t.startsWith("versions.")}function b(t){return h(t)?y+g(t):d(t)?t:y+t}function g(t){return h(t)?t.split(".").slice(2).join("."):d(t)?t.slice(y.length):t}function m(t){let{baseUrl:r,workspace:e="default",tool:n="default",id:o,type:i,path:u,projectId:a,dataset:s}=t;if(!r)throw Error("baseUrl is required");if(!u)throw Error("path is required");if(!o)throw Error("id is required");if("/"!==r&&r.endsWith("/"))throw Error("baseUrl must not end with a slash");let c="default"===e?void 0:e,p="default"===n?void 0:n,l=g(o),y=Array.isArray(u)?f(u.map(t=>{if("string"==typeof t||"number"==typeof t)return t;if(""!==t._key)return{_key:t._key};if(-1!==t._index)return t._index;throw Error(`invalid segment:${JSON.stringify(t)}`)})):u,b=new URLSearchParams({baseUrl:r,id:l,type:i,path:y});if(c&&b.set("workspace",c),p&&b.set("tool",p),a&&b.set("projectId",a),s&&b.set("dataset",s),d(o)||h(o)){if(h(o)){let t=function(t){if(!h(t))return;let[r,e,...n]=t.split(".");return e}(o);b.set("perspective",t)}}else b.set("perspective","published");let m=["/"===r?"":r];c&&m.push(c);let v=["mode=presentation",`id=${l}`,`type=${i}`,`path=${encodeURIComponent(y)}`];return p&&v.push(`tool=${p}`),m.push("intent","edit",`${v.join(";")}?${b}`),m.join("/")}},51873:function(t,r,e){"use strict";e.d(r,{KG:function(){return function t(r){function e(t){return t?"string"==typeof t?n.eT.fromString(t):t:[]}function i(t){if(!t.id)throw Error("`id` is required to create a data attribute");if(!t.type)throw Error("`type` is required to create a data attribute");if(!t.path||!t.path.length)throw Error("`path` is required to create a data attribute");return function(t){let{id:r,path:e,baseUrl:i,tool:u,workspace:f,type:c}=t;return(0,o.is)(a,t)?[["id",(0,n.vs)(r)],["type",c],["path",s(n.eT.fromString(e))],["base",encodeURIComponent(i)],["workspace",f],["tool",u]].filter(([,t])=>!!t).map(t=>t.join("=")).join(";"):void 0}({baseUrl:t.baseUrl||"/",workspace:t.workspace,tool:t.tool,type:t.type,id:t.id,path:"str
1ing"==typeof t.path?t.path:n.eT.toString(t.path)})}let u=t=>i({...r,path:[...e(r.path),...e(t)]});return u.toString=function(){return i(r)},u.combine=function(e){return t({...r,...e})},u.scope=function(n){return t({...r,path:[...e(r.path),...e(n)]})},u}},ro:function(){return s},vS:function(){return h}});var n=e(50658),o=e(78624);let i=(0,o.zGw)((0,o.Z_8)(),(0,o.EiV)(1)),u=(0,o.jtO)(i),a=(0,o.Ryn)({baseUrl:i,dataset:u,id:i,path:i,projectId:u,tool:u,type:u,workspace:u});function s(t){let r="";for(let e of t){if("string"==typeof e){r&&(r+="."),r+=e;continue}if("number"==typeof e){r&&(r+=":"),r+=`${e}`;continue}if(null!==e&&Array.isArray(e)){r&&(r+=":"),r+=`${e.join(",")}}`;continue}if(e._key){r&&(r+=":"),r+=`${e._key}`;continue}}return r}let f=/^([\w-]+):(0|[1-9][0-9]*)$/,c=/^([\w-]+):([0-9]+),([0-9]+)$/,p=/^([\w-]+):([\w-]+)$/,l=(0,o.zGw)((0,o.Z_8)(),(0,o.EiV)(1)),y=(0,o.Ryn)({origin:l,href:l,data:(0,o.jtO)((0,o.IMB)((0,o.Z_8)(),(0,o._4T)()))});function d(t){let r=(0,o.AsG)(a,t);if(r.success)return r.output;let e=(0,o.AsG)(y,t);if(e.success)try{let t=new URL(e.output.href,typeof document>"u"?"https://example.com":location.origin);return t.searchParams.size>0?(0,o.Qc3)(a,Object.fromEntries(t.searchParams.entries())):e.output}catch(t){return console.error("Failed to parse sanity node",t),e.output}}function h(t){if("object"==typeof t&&null!==t)return d(t);try{let r=JSON.parse(t);return d(r)}catch{return function(t){let r=t.split(";").reduce((t,r)=>{let[e,o]=r.split("=");if(!e||r.includes("=")&&!o)return t;switch(e){case"id":t.id=o;break;case"type":t.type=o;break;case"path":t.path=n.eT.toString(function(t){let r=[];for(let e of t.split(".")){let t=f.exec(e);if(t){r.push(t[1],Number(t[2]));continue}let n=c.exec(e);if(n){r.push(n[1],[Number(n[2]),Number(n[3])]);continue}let o=p.exec(e);if(o){r.push(o[1],{_key:o[2]});continue}r.push(e)}return r}(o));break;case"base":t.baseUrl=decodeURIComponent(o);break;case"tool":t.tool=o;break;case"workspace":t.workspace=o;break;case"projectId":t.projectId=o;break;case"dataset":t.dataset=o}return t},{});if((0,o.is)(a,r))return r}(t)}}}}]);
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.