PageSourceSearch

https://visitkumla.se/webapp-resource/4.5effb66519d9a73267f2ef9/36…/1737712914703/webapp-assets.js

js visitkumla.se collected 2026-09-25 00:10:09 UTC 25,050 bytes, 3 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'se.soleil.searchField|1.1.5',bundle: {}});
2AppRegistry.registerModule({applicationId:'se.soleil.searchField|1.1.5',path:'/main',module:function(define){'use strict';define(["router","app"],(function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}const o=(n(e).default?.portletId||"preview").replace(".","_");document.documentElement.classList.contains("sv-edit-mode");let r={};function i(t){r=t}function c(t){return t?r[t]:r}function l(){}const a=t=>t;function s(t){return t()}function u(){return Object.create(null)}function d(t){t.forEach(s)}function f(t){return"function"==typeof t}function h(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function p(t){return t&&f(t.destroy)?t.destroy:l}const m="undefined"!=typeof window;let g=m?()=>window.performance.now():()=>Date.now(),$=m?t=>requestAnimationFrame(t):l;const y=new Set;function v(t){y.forEach((e=>{e.c(t)||(y.delete(e),e.f())})),0!==y.size&&$(v)}let b=!1;function _(){b=!0}function x(){b=!1}function w(t,e,n,o){for(;t<e;){const r=t+(e-t>>1);n(r)<=o?t=r+1:e=r}return t}function E(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function P(t){const e=T("style");return function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(E(t),e),e.sheet}function k(t,e){if(b){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const o=e[n];void 0!==o.claim_order&&t.push(o)}e=t}const n=new Int32Array(e.length+1),o=new Int32Array(e.length);n[0]=-1;let r=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,c=(r>0&&e[n[r]].claim_order<=i?r+1:w(1,r,(t=>e[n[t]].claim_order),i))-1;o[t]=n[c]+1;const l=c+1;n[l]=t,r=Math.max(l,r)}const i=[],c=[];let l=e.length-1;for(let t=n[r]+1;0!=t;t=o[t-1]){for(i.push(e[t-1]);l>=t;l--)c.push(e[l]);l--}for(;l>=0;l--)c.push(e[l]);i.reverse(),c.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<c.length;e++){for(;n<i.length&&c[e].claim_order>=i[n].claim_order;)n++;const o=n<i.length?i[n]:null;t.insertBefore(c[e],o)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function N(t,e,n){b&&!n?k(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function T(t){return document.createElement(t)}function U(t){return document.createTextNode(t)}function A(){return U(" ")}function q(){return U("")}function I(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function j(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function C(t){return Array.from(t.childNodes)}function O(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function D(t,e,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];O(t);const i=(()=>{for(let o=t.claim_info.last_index;o<t.length;o++){const i=t[o];if(e(i)){const e=n(i);return void 0===e?t.splice(o,1):t[o]=e,r||(t.claim_info.last_index=o),i}}for(let o=t.claim_info.last_index-1;o>=0;o--){const i=t[o];if(e(i)){const e=n(i);return void 0===e?t.splice(o,1):t[o]=e,r?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=o,i}}return o()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function L(t,e,n){return function(t,e,n,o){return D(t,(t=>t.nodeName===e),(t=>{const e=[];for(let o=0;o<t.attributes.length;o++){const r=t.attributes[o];n[r.name]||e.push(r.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>o(e)))}(t,e,n,T)}function F(t,e){return D(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>U(e)),!0)}function B(t){return F(t," ")}function R(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function M(t,e){t.value=null==e?"":e}function z(t,e,n){t.classList[n?"add":"remove"](e)}function V(t,e){let{bubbles:n=!1,cancelable:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,o,e),r}const Q=new Map;let W,H=0;function G(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function J(t,e){const n={stylesheet:P(e),rules:{}};return Q.set(t,n),n}function K(t,e,n,o,r,i,c){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const a=16.666/o;let s="{\n";for(let t=0;t<=1;t+=a){const o=e+(n-e)*i(t);s+=100*t+`%{${c(o,1-o)}}\n`}const u=s+`100% {${c(n,1-n)}}\n}`,d=`__svelte_${G(u)}_${l}`,f=E(t),{stylesheet:h,rules:p}=Q.get(f)||J(f,t);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${o}ms linear ${r}ms 1 both`,H+=1,d}function X(t,e){const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),r=n.length-o.length;r&&(t.style.animation=o.join(", "),H-=r,H||$((()=>
2{H||(Q.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&S(e)})),Q.clear())})))}function Y(t){W=t}function Z(){const t=function(){if(!W)throw new Error("Function called outside component initialization");return W}();return function(e,n){let{cancelable:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.$$.callbacks[e];if(r){const i=V(e,n,{cancelable:o});return r.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}function tt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const et=[],nt=[],ot=[],rt=[],it=Promise.resolve();let ct=!1;function lt(){ct||(ct=!0,it.then(pt))}function at(){return lt(),it}function st(t){ot.push(t)}function ut(t){rt.push(t)}const dt=new Set;let ft,ht=0;function pt(){if(0!==ht)return;const t=W;do{try{for(;ht<et.length;){const t=et[ht];ht++,Y(t),mt(t.$$)}}catch(t){throw et.length=0,ht=0,t}for(Y(null),et.length=0,ht=0;nt.length;)nt.pop()();for(let t=0;t<ot.length;t+=1){const e=ot[t];dt.has(e)||(dt.add(e),e())}ot.length=0}while(et.length);for(;rt.length;)rt.pop()();ct=!1,dt.clear(),Y(t)}function mt(t){if(null!==t.fragment){t.update(),d(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(st)}}function gt(t,e,n){t.dispatchEvent(V(`${e?"intro":"outro"}${n}`))}const $t=new Set;let yt;function vt(){yt={r:0,c:[],p:yt}}function bt(){yt.r||d(yt.c),yt=yt.p}function _t(t,e){t&&t.i&&($t.delete(t),t.i(e))}function xt(t,e,n,o){if(t&&t.o){if($t.has(t))return;$t.add(t),yt.c.push((()=>{$t.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}const wt={duration:0};function Et(t,e,n,o){const r={direction:"both"};let i=e(t,n,r),c=o?0:1,s=null,u=null,h=null;function p(){h&&X(t,h)}function m(t,e){const n=t.b-c;return e*=Math.abs(n),{a:c,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function b(e){const{delay:n=0,duration:o=300,easing:r=a,tick:f=l,css:b}=i||wt,_={start:g()+n,b:e};e||(_.group=yt,yt.r+=1),s||u?u=_:(b&&(p(),h=K(t,c,e,o,n,r,b)),e&&f(0,1),s=m(_,o),st((()=>gt(t,e,"start"))),function(t){let e;0===y.size&&$(v),new Promise((n=>{y.add(e={c:t,f:n})}))}((e=>{if(u&&e>u.start&&(s=m(u,o),u=null,gt(t,s.b,"start"),b&&(p(),h=K(t,c,s.b,s.duration,0,r,i.css))),s)if(e>=s.end)f(c=s.b,1-c),gt(t,s.b,"end"),u||(s.b?p():--s.group.r||d(s.group.c)),s=null;else if(e>=s.start){const t=e-s.start;c=s.a+s.d*r(t/s.duration),f(c,1-c)}return!(!s&&!u)})))}return{run(t){f(i)?(ft||(ft=Promise.resolve(),ft.then((()=>{ft=null}))),ft).then((()=>{i=i(r),b(t)})):b(t)},end(){p(),s=u=null}}}function Pt(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function kt(t){t&&t.c()}function Nt(t,e){t&&t.l(e)}function St(t,e,n,o){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),o||st((()=>{const e=t.$$.on_mount.map(s).filter(f);t.$$.on_destroy?t.$$.on_destroy.push(...e):d(e),t.$$.on_mount=[]})),i.forEach(st)}function Tt(t,e){const n=t.$$;null!==n.fragment&&(d(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ut(t,e){-1===t.$$.dirty[0]&&(et.push(t),lt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function At(t,e,n,o,r,i,c){let a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const s=W;Y(t);const f=t.$$={fragment:null,ctx:[],props:i,update:l,not_equal:r,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:u(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};c&&c(f.root);let h=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){const o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&r(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),h&&Ut(t,e)),n})):[],f.update(),h=!0,d(f.before_update),f.fragment=!!o&&o(f.ctx),e.target){if(e.hydrate){_();const t=C(e.target);f.fragment&&f.fragment.l(t),t.forEach(S)}else f.fragment&&f.fragment.c();e.intro&&_t(t.$$.fragment),St(t,e.target,e.anchor,e.customElement),x(),pt()}Y(s)}class qt{$destroy(){Tt(this,1),this.$destroy=l}$on(t,e){if(!f(e))return l;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function It(t){const e=t-1;return e*e*e+1}function jt(t){let{delay:e=0,duration:n=400,easing:o=It}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
2const r=getComputedStyle(t),i=+r.opacity,c=parseFloat(r.height),l=parseFloat(r.paddingTop),a=parseFloat(r.paddingBottom),s=parseFloat(r.marginTop),u=parseFloat(r.marginBottom),d=parseFloat(r.borderTopWidth),f=parseFloat(r.borderBottomWidth);return{delay:e,duration:n,easing:o,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*i};height: ${t*c}px;padding-top: ${t*l}px;padding-bottom: ${t*a}px;margin-top: ${t*s}px;margin-bottom: ${t*u}px;border-top-width: ${t*d}px;border-bottom-width: ${t*f}px;`}}function Ct(t,e){function n(n){!t||t.contains(n.target)||n.defaultPrevented||e({node:t,target:n.target})}return document.addEventListener("click",n),{destroy(){document.removeEventListener("click",n)}}}function Ot(t,e){let{onEscape:n,onArrowUp:o,onArrowDown:r}=e;const i=t=>{switch(t.keyCode){case 27:n&&n(t);break;case 38:o&&(t.preventDefault(),o(t));break;case 40:r&&(t.preventDefault(),r(t))}};return t.addEventListener("keydown",i),{destroy(){t.removeEventListener("keydown",i)}}}let Dt;const Lt=(Ft=function(t){return e=t.json(),n=function(e){if(!t.ok)throw Error(e?.message||t?.statusText);return e},o?n?n(e):e:(e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e);var e,n,o},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(Ft.apply(this,t))}catch(t){return Promise.reject(t)}});var Ft;function Bt(t,e){if(t.indexOf("*")>-1)return t;return t.split(" ").map((t=>`+${e?e.concat(":"):""}(${t} ${t}*)`)).join(" ")}function Rt(t){let{types:e,excluded:n}=t;return[e&&e.length?`+svtype:(${e.join(" ")})`:void 0,n&&n.length?`-path:(${n.join(" ")})`:void 0].filter((t=>!!t)).join(" ")}function Mt(){const{index:t,types:e,excluded:n}=c()||{},o=`/rest-api/1/1/${t}/search`;return t=>{const r={query:Bt(t,"name.analyzed"),fields:["id","name"],filterQuery:Rt({types:e,excluded:n})};return fetch(o+function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{addQueryPrefix:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Object.keys(t).map((e=>{const n=t[e];if(n)return Array.isArray(n)?n.map((t=>`${encodeURIComponent(`${e}[]`)}=${encodeURIComponent(t)}`)).join("&"):`${encodeURIComponent(e)}=${encodeURIComponent(n)}`})).filter((t=>!!t)).join("&");return n?e?`?${n}`:n:""}(r,{addQueryPrefix:!0})).then(Lt).then((t=>t.map((t=>{let{id:e,name:n}=t;return{id:e.replace(".","_"),name:n}}))))}}function zt(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}function Vt(t,e,n){const o=t.slice();return o[14]=e[n].id,o[15]=e[n].name,o[17]=n,o}function Qt(t){let e,n,o,r,i,c,l,a=t[15]+"";function s(){return t[9](t[14])}return{c(){e=T("li"),n=U(a),o=A(),this.h()},l(t){e=L(t,"LI",{id:!0,"aria-selected":!0,role:!0,class:!0});var r=C(e);n=F(r,a),o=B(r),r.forEach(S),this.h()},h(){j(e,"id",r=t[14]),j(e,"aria-selected",i=t[0]?.id===t[14]),j(e,"role","option"),j(e,"class","suggestions-listbox-1ctpr6g")},m(t,r){N(t,e,r),k(e,n),k(e,o),c||(l=I(e,"click",s),c=!0)},p(o,c){t=o,8&c&&a!==(a=t[15]+"")&&R(n,a),8&c&&r!==(r=t[14])&&j(e,"id",r),9&c&&i!==(i=t[0]?.id===t[14])&&j(e,"aria-selected",i)},d(t){t&&S(e),c=!1,l()}}}function Wt(t){let e,n,r,i,c,a,s,u=t[3],d=[];for(let e=0;e<u.length;e+=1)d[e]=Qt(Vt(t,u,e));return{c(){e=T("ul");for(let t=0;t<d.length;t+=1)d[t].c();r=A(),i=T("div"),c=U(t[4]),this.h()},l(n){e=L(n,"UL",{id:!0,"aria-labelledby":!0,role:!0,class:!0});var o=C(e);for(let t=0;t<d.length;t+=1)d[t].l(o);o.forEach(S),r=B(n),i=L(n,"DIV",{class:!0,"aria-atomic":!0,"aria-live":!0});var l=C(i);c=F(l,t[4]),l.forEach(S),this.h()},h(){j(e,"id",`list_${o}`),j(e,"aria-labelledby",`label_${o}`),e.hidden=n=!t[1],j(e,"role","listbox"),j(e,"class","suggestions-listbox-1ctpr6g"),j(i,"class","sr-only"),j(i,"aria-atomic","true"),j(i,"aria-live","assertive")},m(n,o){N(n,e,o);for(let t=0;t<d.length;t+=1)d[t].m(e,null);N(n,r,o),N(n,i,o),k(i,c),a||(s=p(Ot.call(null,window,{onEscape:t[2]})),a=!0)},p(t,o){let[r]=o;if(41&r){let n;for(u=t[3],n=0;n<u.length;n+=1){const o=Vt(t,u,n);d[n]?d[n].p(o,r):(d[n]=Qt(o),d[n].c(),d[n].m(e,null))}for(;n<d.length;n+=1)d[n].d(1);d.length=u.length}2&r&&n!==(n=!t[1])&&(e.hidden=n),16&r&&R(c,t[4])},i:l,o:l,d(t){t&&S(e),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(d,t),t&&S(r),t&&S(i),a=!1,s()}}}function Ht(t,e,n){const o=zt((function(t){return n(0,c=u.find((e=>e.id===t))),function(t,e,n){if(n)return e?e(t()):t();try{var o=Promise.resolve(t());return e?o.then(e):o}catch(t){return Promise.reject(t)}}(at,(function(){a("click")}))})),r=zt((function(){return t=s(i),e=function(t){n(3,u=t),n(1,l=!!u.length),l&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";n(4,d=t),setTimeout((()=>{n(4,d="")}),500)}(`${u.length} sökförslag. Använd piltangent upp och ner för att navigera och enter för att välja. Pekskärmsanvändare, använd pekskärmen eller svepgester.`)},o?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t);var t,e,o}));let{query:i}=e,{selected:c}=e,{hasSuggestions:l=!1}=e;const a=Z(),s=Mt();let u=[],d="";return t.$$set=t=>{"query"in t&&n(6,i=t.query),"selected"in t&&n(0,c=t.selected),"hasSuggestions"in t&&n(1,l=t.hasSuggestions)},t.$$.update=()=>{var e,o;64&t.$$.dirty&&(i&&i.length>1?(e=r,o=300,clearTimeout(Dt),Dt=setTimeout(e,o)):(n(3,u=[]),n(1,l=!1)))},[c,l,function(){n(3,u=[]),n(1,l=!1),n(0,c=void 0)},u,d,o,i,function(){const t=u.findIndex((t=>{let{id:e}=t;return e===c?.id}));n(0,c=u[t+1]||u[0])},function(){const t=u.findIndex((t=>{let{id:e}=t;return e===c?.id}));n(0,c=u[t-1]||u[u.length-1])},t=>o(t)]}class Gt extends qt{constructor(t){super(),At(this,t,Ht,Wt,h,{query:6,selected:0,hasSuggestions:1,selectNext:7,selectPrevious:8,reset:2})}get selectNext(){return this.$$.ctx[7]}get selectPrevious(){return this.$$.ctx[8]}get reset(){return this.$$.ctx[2]}}function Jt(t){let e,n,r,i,c,l,a,s,u,f;function h(e){t[12](e)}function m(e){t[13](e)}let g={query:t[1]};return void 0!==t[0]&&(g.selected=t[0]),void 0!==t[2]&&(g.hasSuggestions=t[2]),c=new Gt({props:g}),t[11](c),nt.push((()=>Pt(c,"selected",h))),nt.push((()=>Pt(c,"hasSuggestions",m))),c.$on("click",t[14]),{c(){e=T("div"),n=T("input"),i=A(),kt(c.$$.fragment),this.h()},l(t){e=L(t,"DIV",{id:!0,role:!0,"aria-expanded":!0,"aria-owns":!0,"aria-haspopup":!0,"aria-labelledby":!0,"aria-controls":!0,class:!0});var o=C(e);n=L(o,"INPUT",{id:!0,type:!0,placeholder:!0,autocomplete:!0,"aria-controls":!0,"aria-autocomplete":!0,"aria-activedescendant":!0}),i=B(o),Nt(c.$$.fragment,o),o.forEach(S),this.h()},h(){j(n,"id",`input_${o}`),j(n,"type","search"),j(n,"placeholder",t[4]),j(n,"autocomplete","off"),j(n,"aria-controls",`list_${o}`),j(n,"aria-autocomplete","list"),j(n,"aria-activedescendant",r=t[0]?.id),j(e,"id",`combobox_${o}`),j(e,"role","combobox"),j(e,"aria-expanded",t[2]),j(e,"aria-owns",`list_${o}`),j(e,"aria-haspopup","listbox"),j(e,"aria-labelledby",`input_${o}`),j(e,"aria-controls",`combobox_${o}`),j(e,"class","suggestions-mcekk9")},m(o,r){N(o,e,r),k(e,n),M(n,t[1]),k(e,i),St(c,e,null),s=!0,u||(f=[I(n,"input",t[10]),p(Ot.call(null,n,{onArrowUp:t[6],onArrowDown:t[5]})),I(n,"focusout",t[8]),p(Ct.call(null,e,t[7]))],u=!0)},p(t,o){let[i]=o;(!s||1&i&&r!==(r=t[0]?.id))&&j(n,"aria-activedescendant",r),2&i&&M(n,t[1]);const u={};2&i&&(u.query=t[1]),!l&&1&i&&(l=!0,u.selected=t[0],ut((()=>l=!1))),!a&&4&i&&(a=!0,u.hasSuggestions=t[2],ut((()=>a=!1))),c.$set(u),(!s||4&i)&&j(e,"aria-expanded",t[2])},i(t){s||(_t(c.$$.fragment,t),s=!0)},o(t){xt(c.$$.fragment,t),s=!1},d(n){n&&S(e),t[11](null),Tt(c),u=!1,d(f)}}}function Kt(t,e,n){const{placeholder:o}=c();let r,i,{selected:l}=e,{query:a}=e,{isOpen:s}=e;return t.$$set=t=>{"selected"in t&&n(0,l=t.selected),"query"in t&&n(1,a=t.query),"isOpen"in t&&n(9,s=t.isOpen)},[l,a,r,i,o,function(){i.selectNext()},function(){i.selectPrevious()},function(t){let{node:e,target:o}=t;n(9,s=!s),s?(document.body.style.overflow="hidden",document.body.style.height="100%",document.body.style.width="100%",document.body.style.position="fixed",document.documentElement.style.overflow="hidden"):(document.body.style.overflow="",document.body.style.height="",document.body.style.width="",document.body.style.position="",document.documentElement.style.overflow=""),e.parentNode.contains(o)||i.reset()},function(t){let{relatedTarget:e}=t;e&&i.reset()}
2,s,function(){a=this.value,n(1,a)},function(t){nt[t?"unshift":"push"]((()=>{i=t,n(3,i)}))},function(t){l=t,n(0,l)},function(t){r=t,n(2,r)},function(e){tt.call(this,t,e)}]}class Xt extends qt{constructor(t){super(),At(this,t,Kt,Jt,h,{selected:0,query:1,isOpen:9})}}function Yt(t){let e,n,r;return{c(){e=T("input"),this.h()},l(t){e=L(t,"INPUT",{id:!0,name:!0,autocomplete:!0,placeholder:!0,type:!0}),this.h()},h(){j(e,"id",`input_${o}`),j(e,"name","query"),j(e,"autocomplete","off"),j(e,"placeholder",t[5]),j(e,"type","search")},m(o,i){N(o,e,i),M(e,t[1]),n||(r=I(e,"input",t[10]),n=!0)},p(t,n){2&n&&M(e,t[1])},i:l,o:l,d(t){t&&S(e),n=!1,r()}}}function Zt(t){let e,n,o,r,i,c,l;function a(e){t[8](e)}function s(e){t[9](e)}let u={};return void 0!==t[2]&&(u.selected=t[2]),void 0!==t[1]&&(u.query=t[1]),e=new Xt({props:u}),nt.push((()=>Pt(e,"selected",a))),nt.push((()=>Pt(e,"query",s))),e.$on("click",t[7]),{c(){kt(e.$$.fragment),r=A(),i=T("input"),this.h()},l(t){Nt(e.$$.fragment,t),r=B(t),i=L(t,"INPUT",{name:!0,type:!0}),this.h()},h(){j(i,"name","query"),j(i,"type","hidden"),i.value=c=t[2]?.name||t[1]},m(t,n){St(e,t,n),N(t,r,n),N(t,i,n),l=!0},p(t,r){const a={};!n&&4&r&&(n=!0,a.selected=t[2],ut((()=>n=!1))),!o&&2&r&&(o=!0,a.query=t[1],ut((()=>o=!1))),e.$set(a),(!l||6&r&&c!==(c=t[2]?.name||t[1]))&&(i.value=c)},i(t){l||(_t(e.$$.fragment,t),l=!0)},o(t){xt(e.$$.fragment,t),l=!1},d(t){Tt(e,t),t&&S(r),t&&S(i)}}}function te(t){let e,n,r,i,c,l,a,s,u,d;const f=[Zt,Yt],h=[];return c=function(t,e){return t[6]?0:1}(t),l=h[c]=f[c](t),{c(){e=T("form"),n=T("label"),r=U(t[4]),i=A(),l.c(),a=A(),s=T("button"),u=T("span"),this.h()},l(o){e=L(o,"FORM",{action:!0,method:!0,class:!0});var c=C(e);n=L(c,"LABEL",{id:!0,class:!0,for:!0});var d=C(n);r=F(d,t[4]),d.forEach(S),i=B(c),l.l(c),a=B(c),s=L(c,"BUTTON",{class:!0,type:!0});var f=C(s);u=L(f,"SPAN",{class:!0,"aria-hidden":!0}),C(u).forEach(S),f.forEach(S),c.forEach(S),this.h()},h(){j(n,"id",`label_${o}`),j(n,"class","sr-only"),j(n,"for",`input_${o}`),j(u,"class","bi bi-search search-form-m816mp"),j(u,"aria-hidden","true"),j(s,"class","env-button env-button--primary search-form-m816mp"),j(s,"type","submit"),j(e,"action",t[0]),j(e,"method","get"),j(e,"class","search-form-m816mp")},m(o,l){N(o,e,l),k(e,n),k(n,r),k(e,i),h[c].m(e,null),k(e,a),k(e,s),k(s,u),t[11](e),d=!0},p(t,n){let[o]=n;l.p(t,o),(!d||1&o)&&j(e,"action",t[0])},i(t){d||(_t(l),d=!0)},o(t){xt(l),d=!1},d(n){n&&S(e),h[c].d(),t[11](null)}}}function ee(t,e,n){const{label:o,placeholder:r,showSuggestions:i}=c();let l,a,{searchPageUri:s}=e,u="";return t.$$set=t=>{"searchPageUri"in t&&n(0,s=t.searchPageUri)},[s,u,l,a,o,r,i,function(){a.submit()},function(t){l=t,n(2,l)},function(t){u=t,n(1,u)},function(){u=this.value,n(1,u)},function(t){nt[t?"unshift":"push"]((()=>{a=t,n(3,a)}))}]}class ne extends qt{constructor(t){super(),At(this,t,ee,te,h,{searchPageUri:0})}}function oe(t){let e,n;return e=new ne({props:{searchPageUri:t[0]}}),{c(){kt(e.$$.fragment)},l(t){Nt(e.$$.fragment,t)},m(t,o){St(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.searchPageUri=t[0]),e.$set(o)},i(t){n||(_t(e.$$.fragment,t),n=!0)},o(t){xt(e.$$.fragment,t),n=!1},d(t){Tt(e,t)}}}function re(t){let e,n,o;let r=ie(t),i=t[3]&&ae(t);return{c(){r.c(),e=A(),i&&i.c(),n=q()},l(t){r.l(t),e=B(t),i&&i.l(t),n=q()},m(t,c){r.m(t,c),N(t,e,c),i&&i.m(t,c),N(t,n,c),o=!0},p(t,e){r.p(t,e),t[3]?i?(i.p(t,e),8&e&&_t(i,1)):(i=ae(t),i.c(),_t(i,1),i.m(n.parentNode,n)):i&&(vt(),xt(i,1,1,(()=>{i=null})),bt())},i(t){o||(_t(i),o=!0)},o(t){xt(i),o=!1},d(t){r.d(t),t&&S(e),i&&i.d(t),t&&S(n)}}}function ie(t){let e,n,o,r,i,c;function l(t,e){return t[3]?ce:le}let a=l(t),s=a(t);return{c(){e=T("button"),n=T("span"),o=A(),s.c(),this.h()},l(t){e=L(t,"BUTTON",{class:!0,"aria-expanded":!0});var r=C(e);n=L(r,"SPAN",{class:!0,"aria-hidden":!0}),C(n).forEach(S),o=B(r),s.l(r),r.forEach(S),this.h()},h(){j(n,"class","bi bi-search app-1td6lnt"),j(n,"aria-hidden","true"),j(e,"class","expand-button app-1td6lnt"),j(e,"aria-expanded",r=t[3].toString()),z(e,"active",t[3])},m(r,l){N(r,e,l),k(e,n),k(e,o),s.m(e,null),i||(c=I(e,"click",t[5]),i=!0)},p(t,n){a===(a=l(t))&&s?s.p(t,n):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),8&n&&r!==(r=t[3].toString())&&j(e,"aria-expanded",r),8&n&&z(e,"active",t[3])},d(t){t&&S(e),s.d(),i=!1,c()}}}function ce(t){let e,n;return{c(){e=T("span"),n=U("Stäng")},l(t){e=L(t,"SPAN",{});var o=C(e);n=F(o,"Stäng"),o.forEach(S)},m(t,o){N(t,e,o),k(e,n)},p:l,d(t){t&&S(e)}}}function le(t){let e,n;return{c(){e=T("span"),n=U(t[2])},l(o){e=L(o,"SPAN",{});var r=C(e);n=F(r,t[2]),r.forEach(S)},m(t,o){N(t,e,o),k(e,n)},p(t,e){4&e&&R(n,t[2])},d(t){t&&S(e)}}}function ae(t){let e,n,o,r,i,c;return n=new ne({props:{searchPageUri:t[0]}}),{c(){e=T("div"),kt(n.$$.fragment),this.h()},l(t){e=L(t,"DIV",{class:!0});var o=C(e);Nt(n.$$.fragment,o),o.forEach(S),this.h()},h(){j(e,"class","container app-1td6lnt")},m(o,l){N(o,e,l),St(n,e,null),r=!0,i||(c=I(e,"introend",t[8]),i=!0)},p(t,e){const o={};1&e&&(o.searchPageUri=t[0]),n.$set(o)},i(t){r||(_t(n.$$.fragment,t),st((()=>{o||(o=Et(e,jt,{duration:200},!0)),o.run(1)})),r=!0)},o(t){xt(n.$$.fragment,t),o||(o=Et(e,jt,{duration:200},!1)),o.run(0),r=!1},d(t){t&&S(e),Tt(n),t&&o&&o.end(),i=!1,c()}}}function se(t){let e,n,o,r,i,c;const l=[re,oe],a=[];function s(t,e){return t[1]?0:1}return n=s(t),o=a[n]=l[n](t),{c(){e=T("div"),o.c()},l(t){e=L(t,"DIV",{});var n=C(e);
2o.l(n),n.forEach(S)},m(o,l){N(o,e,l),a[n].m(e,null),t[9](e),r=!0,i||(c=[I(e,"focusout",t[7]),p(Ct.call(null,e,t[6]))],i=!0)},p(t,r){let[i]=r,c=n;n=s(t),n===c?a[n].p(t,i):(vt(),xt(a[c],1,1,(()=>{a[c]=null})),bt(),o=a[n],o?o.p(t,i):(o=a[n]=l[n](t),o.c()),_t(o,1),o.m(e,null))},i(t){r||(_t(o),r=!0)},o(t){xt(o),r=!1},d(o){o&&S(e),a[n].d(),t[9](null),i=!1,d(c)}}}function ue(t,e,n){let o,{searchPageUri:r}=e,{isExpandable:i}=e,{buttonText:c}=e,l=!1;function a(){l&&n(3,l=!1)}return t.$$set=t=>{"searchPageUri"in t&&n(0,r=t.searchPageUri),"isExpandable"in t&&n(1,i=t.isExpandable),"buttonText"in t&&n(2,c=t.buttonText)},[r,i,c,l,o,function(){n(3,l=!l),l?(document.body.style.overflow="hidden",document.body.style.height="100%",document.body.style.width="100%",document.body.style.position="fixed",document.documentElement.style.overflow="hidden"):(document.body.style.overflow="",document.body.style.height="",document.body.style.width="",document.body.style.position="",document.documentElement.style.overflow="")},a,function(t){let{relatedTarget:e}=t;e&&!o.contains(e)&&a()},function(){o.querySelector("input")?.focus()},function(t){nt[t?"unshift":"push"]((()=>{o=t,n(4,o)}))}]}class de extends qt{constructor(t){super(),At(this,t,ue,se,h,{searchPageUri:0,isExpandable:1,buttonText:2})}}return(t,e)=>{!function(t){let{target:e,props:n,intro:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(n);const r=e.childElementCount>0;new t({hydrate:r,target:e,props:n,intro:o})}(de,{props:t,target:e})}}));
3}});

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.