PageSourceSearch

https://winteragency.se/_next/static/chunks/8009.579ecc34e93f5c96.js

js winteragency.se collected 2026-09-25 21:05:54 UTC 13,035 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8009],{80624:function(e,t,r){r.d(t,{n8:function(){return a},uy:function(){return c}});var n={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},i={0:8203,1:8204,2:8205,3:65279},o=[,,,,].fill(String.fromCodePoint(i[0])).join("");function a(e,t,r="auto"){let n;return!0===r||"auto"===r&&(Number.isNaN(Number(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${n=JSON.stringify(t),`${o}${Array.from(n).map(e=>{let t=e.charCodeAt(0);if(t>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${n} on character ${e} (${t})`);return Array.from(t.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(i[e])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(i).map(e=>e.reverse())),Object.fromEntries(Object.entries(n).map(e=>e.reverse()));var l=`${Object.values(n).map(e=>`\\u{${e.toString(16)}}`).join("")}`,s=RegExp(`[${l}]{4,}`,"gu");function c(e){var t;return{cleaned:e.replace(s,""),encoded:(null==(t=e.match(s))?void 0:t[0])||""}}},78009:function(e,t,r){r.d(t,{e:function(){return T}});var n,i,o=r(99379),a=r(6640),l=r(7449),s=r(80624);let c={enabled:!1,filter:e=>e.filterDefault(e)};function u(e){let{stega:t={},...r}=e;return{clientConfig:r,stegaConfig:"boolean"==typeof t?{enabled:t}:t}}let f=(e,t)=>{let r=Object.assign({},c,Object.assign({},t,e));if("encodeSourceMap"in r)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client/stega'. Did you mean 'enabled'?");if("encodeSourceMapAtPath"in r)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client/stega'. Did you mean 'filter'?");if("boolean"!=typeof r.enabled)throw Error("config.enabled must be a boolean, received ".concat(r.enabled));if(r.enabled&&void 0===r.studioUrl)throw Error("config.studioUrl must be defined when config.enabled is true");if(r.enabled&&"string"!=typeof r.studioUrl&&"function"!=typeof r.studioUrl)throw Error("config.studioUrl must be a string or a function, received ".concat(r.studioUrl));return r};function p(e,t){let{stega:r={},...n}=e;return{fetchOptions:n,stegaConfig:f("boolean"==typeof r?{enabled:r}:r,t)}}let d="drafts.",g=/_key\s*==\s*['"](.*)['"]/;function h(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let n=typeof t;if("number"===n)return"".concat(e,"[").concat(t,"]");if("string"===n)return"".concat(e).concat(0===r?"":".").concat(t);if(("string"==typeof t?g.test(t.trim()):"object"==typeof t&&"_key"in t)&&t._key)return"".concat(e,'[_key=="').concat(t._key,'"]');if(Array.isArray(t)){let[r,n]=t;return"".concat(e,"[").concat(r,":").concat(n,"]")}throw Error("Unsupported path segment `".concat(JSON.stringify(t),"`"))},"")}let y={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},m={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function v(e){let t;let r=[],n=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;for(;null!==(t=n.exec(e));){if(void 0!==t[1]){let e=t[1].replace(/\\(\\|f|n|r|t|')/g,e=>m[e]);r.push(e);continue}if(void 0!==t[2]){r.push(parseInt(t[2],10));continue}if(void 0!==t[3]){let e=t[3].replace(/\\(\\')/g,e=>m[e]);r.push({_key:e,_index:-1});continue}}return r}function b(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 Error("invalid segment:".concat(JSON.stringify(e)))})}function w(e){return"object"==typeof e&&null!==e}let k=e=>{let{sourcePath:t,value:r}=e;if(Number.isNaN(Number(r))&&Date.parse(r)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(r))return!1;let n=t.at(-1);return!("slug"===t.at(-2)&&"current"===n||"string"==typeof n&&n.startsWith("_")||"number"==typeof n&&"marks"===t.at(-2)||"href"===n&&"number"==typeof t.at(-2)&&"markDefs"===t.at(-3)||"style"===n||"listItem"===n||t.some(e=>"meta"===e||"metadata"===e||"openGraph"===e||"seo"===e)||"string"==typeof n&&_.has(n))},_=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","unit","url","username","variant","website"]);function S(e,t,r){var n,i,o,a,l,c,u,f,p,m;let{filter:_,logger:S,enabled:E}=r;if(!E){let i="config.enabled must be true, don't call this function otherwise";throw null==(n=null==S?void 0:S.error)||n.call(S,"[@sanity/client/stega]: ".concat(i),{result:e,resultSourceMap:t,config:r}),TypeError(i)}if(!t)return null==(i=null==S?void 0:S.error)||i.call(S,"[@sanity/client/stega]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:r}),e;if(!r.studioUrl){let n="config.studioUrl must be defined";throw null==(o=null==S?void 0:S.error)||o.call(S,"[@sanity/client/stega]: ".concat(n),{result:e,resultSourceMap:t,config:r}),TypeError(n)}let C={encoded:[],skipped:[]},U=(m=e=>{var t;let n,{sourcePath:i,sourceDocument:o,resultPath:a,value:l}=e;if(("function"==typeof _?_({sourcePath:i,resultPath:a,filterDefault:k,sourceDocument:o,value:l}):k({sourcePath:i,resultPath:a,filterDefault:k,sourceDocument:o,value:l}))===!1)return S&&C.skipped.push({path:h(b(i)),value:"".concat(l.slice(0,20)).concat(l.length>20?"...":""),length:l.length}),l;S&&C.encoded.push({path:h(b(i)),value:"".concat(l.slice(0,20)).concat(l.length>20?"...":""),length:l.length});let{baseUrl:c,workspace:u,tool:f}
1=("/"!==(n="string"==typeof(t="function"==typeof r.studioUrl?r.studioUrl(o):r.studioUrl)?t:t.baseUrl)&&(n=n.replace(/\/$/,"")),"string"==typeof t)?{baseUrl:n}:{...t,baseUrl:n};if(!c)return l;let{_id:p,_type:g}=o;return(0,s.n8)(l,{origin:"sanity.io",href:function(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:o,path:a}=e;if(!t)throw Error("baseUrl is required");if(!a)throw Error("path is required");if(!i)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let l="default"===r?void 0:r,s="default"===n?void 0:n,c=i.startsWith(d)?i.slice(d.length):i,u=Array.isArray(a)?h(b(a)):a,f=new URLSearchParams({baseUrl:t,id:c,type:o,path:u});l&&f.set("workspace",l),s&&f.set("tool",s);let p=["/"===t?"":t];l&&p.push(l);let g=["mode=presentation","id=".concat(c),"type=".concat(o),"path=".concat(encodeURIComponent(u))];return s&&g.push("tool=".concat(s)),p.push("intent","edit","".concat(g.join(";"),"?").concat(f)),p.join("/")}({baseUrl:c,workspace:u,tool:f,id:p,type:g,path:i})},!1)},function e(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return null!==t&&Array.isArray(t)?t.map((t,i)=>{if(w(t)){let o=t._key;if("string"==typeof o)return e(t,r,n.concat({_key:o,_index:i}))}return e(t,r,n.concat(i))}):w(t)?Object.fromEntries(Object.entries(t).map(t=>{let[i,o]=t;return[i,e(o,r,n.concat(i))]})):r(t,n)}(e,(e,r)=>{if("string"!=typeof e)return e;let n=function(e,t){var r;if(!(null==t?void 0:t.mappings))return;let n=(r=e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(-1!==e._index)return e._index;throw Error("invalid segment:".concat(JSON.stringify(e)))}),"$".concat(r.map(e=>{if("string"==typeof e){let t=e.replace(/[\f\n\r\t'\\]/g,e=>y[e]);return"['".concat(t,"']")}if("number"==typeof e)return"[".concat(e,"]");if(""!==e._key){let t=e._key.replace(/['\\]/g,e=>y[e]);return"[?(@._key=='".concat(t,"')]")}return"[".concat(e._index,"]")}).join("")));if(void 0!==t.mappings[n])return{mapping:t.mappings[n],matchedPath:n,pathSuffix:""};let i=Object.entries(t.mappings).filter(e=>{let[t]=e;return n.startsWith(t)}).sort((e,t)=>{let[r]=e,[n]=t;return n.length-r.length});if(0==i.length)return;let[o,a]=i[0],l=n.substring(o.length);return{mapping:a,matchedPath:o,pathSuffix:l}}(r,t);if(!n)return e;let{mapping:i,matchedPath:o}=n;if("value"!==i.type||"documentValue"!==i.source.type)return e;let a=t.documents[i.source.document],l=t.paths[i.source.path],s=v(o);return m({sourcePath:v(l).concat(r.slice(s.length)),sourceDocument:a,resultPath:r,value:e})}));if(S){let e=C.skipped.length,t=C.encoded.length;if((e||t)&&(null==(a=(null==S?void 0:S.groupCollapsed)||S.log)||a("[@sanity/client/stega]: Encoding source map into result"),null==(l=S.log)||l.call(S,"[@sanity/client/stega]: Paths encoded: ".concat(C.encoded.length,", skipped: ").concat(C.skipped.length))),C.encoded.length>0&&(null==(c=null==S?void 0:S.log)||c.call(S,"[@sanity/client/stega]: Table of encoded paths"),null==(u=(null==S?void 0:S.table)||S.log)||u(C.encoded)),C.skipped.length>0){let e=new Set;for(let{path:t}of C.skipped)e.add(t.replace(g,"0").replace(/\[\d+\]/g,"[]"));null==(f=null==S?void 0:S.log)||f.call(S,"[@sanity/client/stega]: List of skipped paths",[...e.values()])}(e||t)&&(null==(p=null==S?void 0:S.groupEnd)||p.call(S))}return U}function E(e){return JSON.parse(JSON.stringify(e,(e,t)=>"string"!=typeof t?t:(0,s.uy)(t).cleaned))}var C=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},U=(e,t,r)=>(C(e,t,"read from private field"),r?r.call(e):t.get(e)),O=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},A=(e,t,r,n)=>(C(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);let N=class e extends a.u9{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.u_,{clientConfig:r,stegaConfig:i}=u(t);super(e,r),O(this,n,void 0),A(this,n,e),this.stegaConfig=f(i,c)}clone(){return new e(U(this,n),this.config())}config(e){if(void 0===e)return{...super.config(),stega:{...this.stegaConfig}};let{clientConfig:t,stegaConfig:r}=u(e);return super.config(t),this.stegaConfig=f(r,this.stegaConfig||{}),this}withConfig(t){let r=this.config(),{stegaConfig:i}=u(t||{});return new e(U(this,n),{...r,...t,stega:{...r.stega||{},...i||{}}})}fetch(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{stegaConfig:n,fetchOptions:i}=p(r,this.stegaConfig),o=t?E(t):t;if(!n.enabled)return super.fetch(e,o,i);let{filterResponse:a=!0}=i;return super.fetch(e,o,Object.assign({},i,{filterResponse:!1,resultSourceMap:"withKeyArraySelector"})).pipe((0,l.U)(e=>{let{result:t,resultSourceMap:r}=e,i=S(t,r,n);return a?i:{...e,result:i}}))}};n=new WeakMap;let j=class e extends a.aN{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.u_,{clientConfig:r,stegaConfig:n}=u(t);super(e,r),O(this,i,void 0),A(this,i,e),this.stegaConfig=f(n,c),this.observable=new N(e,t)}clone(){return new e(U(this,i),this.config())}config(e){if(void 0===e)return{...super.config(),stega:{...this.stegaConfig}};let{clientConfig:t,stegaConfig:r}=u(e);return super.config(t),this.stegaConfig=f(r,{...this.stegaConfig||{}}),this}withConfig(t){let r=this.config(),{stegaConfig:n}=u(t||{});return new e(U(this,i),{...r,...t,stega:{...r.stega||{},...n||{}}})}fetch(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{stegaConfig:n,fetchOptions:i}=p(r,this.stegaConfig),o=t?E(t):t;if(!n.enabled)return super.fetch(e,o,i);let{filterResponse:a=!0}=i;return super.fetch(e,o,Object.assign({},i,{filterResponse:!1,resultSourceMap:"withKeyArraySelector"})).then(e=>{let{result:t,resultSourceMap:r}=e,i=S(t,r,n);return a?i:{...e,result:i}})}};i=new WeakMap;let I=(0,a.if)(a.jR,j);I.requester;let M=I.createClient;var R=r(25566);let x=e=>{var t,r;let{encodeSourceMap:n=function(){try{return"true"===(void 0).SANITY_SOURCE_MAP}catch{}try{return"true"===R.env.SANITY_SOURCE_MAP}catch{}return!1}(),encodeSourceMapAtPath:i,studioUrl:a=function(){try{return(void 0).SANITY_STUDIO_URL}catch{}try{return R.env.SANITY_STUDIO_URL}catch{}}(),logger:l,...s}=e,c=!0===n;if("auto"===n&&(c=function(){try{return"preview"===(void 0).VERCEL_ENV}catch{}try{return"preview"===R.env.VERCEL_ENV}catch{}return!1}()),"string"==typeof n&&"auto"!==n)throw Error("Invalid value for encodeSourceMap: ".concat(n,". Did you mean 'auto'?"));try{if(c&&!1!==e.resultSourceMap){if(!a)return null==(t=null==l?void 0:l.error)||t.call(l,"[@sanity/preview-kit]: Content source map enabled client is enabled, but no studioUrl is provided. Falling back to @
1sanity/client"),(0,o.eI)(s);return null==(r=null==l?void 0:l.debug)||r.call(l,"[@sanity/preview-kit]: Creating source map enabled client"),M({...s,resultSourceMap:e.resultSourceMap?e.resultSourceMap:"withKeyArraySelector",stega:{enabled:!0,studioUrl:a,logger:l,filter:i?e=>i({path:e.sourcePath,filterDefault:()=>e.filterDefault(e)}):void 0}})}}catch(e){console.error("[@sanity/preview-kit]: Error creating client",e,"falling back to non-embedded sourcemap mode")}return(0,o.eI)(s)};var P=r(25566);function T(e){let{studioUrl:t=P.env.NEXT_PUBLIC_SANITY_STUDIO_URL,encodeSourceMap:r=!1}=e;return x({...e,studioUrl:t,encodeSourceMap:r})}}}]);

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.