1AppRegistry.registerBundle({applicationId:'se.soleil.searchField|1.0.1',bundle: {}}); 2AppRegistry.registerModule({applicationId:'se.soleil.searchField|1.0.1',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}}var r=n(e);const o=(r.default?.portletId||"preview").replace(".","_");document.documentElement.classList.contains("sv-edit-mode");let i={};function c(t){return t?i[t]:i}function a(t){let{target:e,props:n,intro:r=!1,hydrate:o=e.hasChildNodes()}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i=n,new t({hydrate:o,target:e,props:n,intro:r})}function l(){}const s=t=>t;function u(t,e){for(const n in e)t[n]=e[n];return t}function d(t){return t()}function f(){return Object.create(null)}function h(t){t.forEach(d)}function p(t){return"function"==typeof t}function $(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function g(t,e,n,r){return t[1]&&r?u(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e){const n={};e=new Set(e);for(const r in t)e.has(r)||"$"===r[0]||(n[r]=t[r]);return n}function v(t){return t&&p(t.destroy)?t.destroy:l}const y="undefined"!=typeof window;let b=y?()=>window.performance.now():()=>Date.now(),_=y?t=>requestAnimationFrame(t):l;const x=new Set;function w(t){x.forEach((e=>{e.c(t)||(x.delete(e),e.f())})),0!==x.size&&_(w)}let E=!1;function P(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function k(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function N(t){const e=j("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(k(t),e),e.sheet}function S(t,e){if(E){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 r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,c=(o>0&&e[n[o]].claim_order<=i?o+1:P(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[c]+1;const a=c+1;n[a]=t,o=Math.max(a,o)}const i=[],c=[];let a=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);a>=t;a--)c.push(e[a]);a--}for(;a>=0;a--)c.push(e[a]);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 r=n<i.length?i[n]:null;t.insertBefore(c[e],r)}}(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 U(t,e,n){E&&!n?S(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}function j(t){return document.createElement(t)}function q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function T(t){return document.createTextNode(t)}function C(){return T(" ")}function I(){return T("")}function D(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function L(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function O(t,e){for(const n in e)L(t,n,e[n])}function F(t){return Array.from(t.childNodes)}function M(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function B(t,e,n,r){return M(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function R(t,e,n){return B(t,e,n,j)}function z(t,e,n){return B(t,e,n,q)}function V(t,e){return M(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}),(()=>T(e)),!0)}function H(t){return V(t," ")}function Q(t,e){e=""+e,t.data!==e&&(t.data=e)}function W(t,e){t.value=null==e?"":e}function J(t,e,n){t.classList.toggle(e,!!n)}function G(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}const K=new Map;let X,Y=0;function Z(t,e,n,r,o,i,c){let a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let s="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);s+=100*t+`%{${c(r,1-r)}}\n`}const u=s+`100% {${c(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${a}`,f=k(t),{stylesheet:h,rules:p}=K.get(f)||function(t,e){const n={stylesheet:N(e),rules:{}};return K.set(t,n),n}(f,t);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const $=t.style.animation||"";return t.style.animation=`${$?`${$}, `:""}${d} ${r}ms linear ${o}
2ms 1 both`,Y+=1,d}function tt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),Y-=o,Y||_((()=>{Y||(K.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&A(e)})),K.clear())})))}function et(t){X=t}function nt(){const t=function(){if(!X)throw new Error("Function called outside component initialization");return X}();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.$$.callbacks[e];if(o){const i=G(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}function rt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ot=[],it=[];let ct=[];const at=[],lt=Promise.resolve();let st=!1;function ut(){st||(st=!0,lt.then(mt))}function dt(){return ut(),lt}function ft(t){ct.push(t)}function ht(t){at.push(t)}const pt=new Set;let $t,gt=0;function mt(){if(0!==gt)return;const t=X;do{try{for(;gt<ot.length;){const t=ot[gt];gt++,et(t),vt(t.$$)}}catch(t){throw ot.length=0,gt=0,t}for(et(null),ot.length=0,gt=0;it.length;)it.pop()();for(let t=0;t<ct.length;t+=1){const e=ct[t];pt.has(e)||(pt.add(e),e())}ct.length=0}while(ot.length);for(;at.length;)at.pop()();st=!1,pt.clear(),et(t)}function vt(t){if(null!==t.fragment){t.update(),h(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ft)}}function yt(t,e,n){t.dispatchEvent(G(`${e?"intro":"outro"}${n}`))}const bt=new Set;let _t;function xt(){_t={r:0,c:[],p:_t}}function wt(){_t.r||h(_t.c),_t=_t.p}function Et(t,e){t&&t.i&&(bt.delete(t),t.i(e))}function Pt(t,e,n,r){if(t&&t.o){if(bt.has(t))return;bt.add(t),_t.c.push((()=>{bt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const kt={duration:0};function Nt(t,e,n,r){let o,i=e(t,n,{direction:"both"}),c=r?0:1,a=null,u=null,d=null;function f(){d&&tt(t,d)}function $(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 g(e){const{delay:n=0,duration:r=300,easing:p=s,tick:g=l,css:m}=i||kt,v={start:b()+n,b:e};e||(v.group=_t,_t.r+=1),"inert"in t&&(e?void 0!==o&&(t.inert=o):(o=t.inert,t.inert=!0)),a||u?u=v:(m&&(f(),d=Z(t,c,e,r,n,p,m)),e&&g(0,1),a=$(v,r),ft((()=>yt(t,e,"start"))),function(t){let e;0===x.size&&_(w),new Promise((n=>{x.add(e={c:t,f:n})}))}((e=>{if(u&&e>u.start&&(a=$(u,r),u=null,yt(t,a.b,"start"),m&&(f(),d=Z(t,c,a.b,a.duration,0,p,i.css))),a)if(e>=a.end)g(c=a.b,1-c),yt(t,a.b,"end"),u||(a.b?f():--a.group.r||h(a.group.c)),a=null;else if(e>=a.start){const t=e-a.start;c=a.a+a.d*p(t/a.duration),g(c,1-c)}return!(!a&&!u)})))}return{run(t){p(i)?($t||($t=Promise.resolve(),$t.then((()=>{$t=null}))),$t).then((()=>{i=i({direction:t?"in":"out"}),g(t)})):g(t)},end(){f(),a=u=null}}}function St(t){return void 0!==t?.length?t:Array.from(t)}function Ut(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function At(t){t&&t.c()}function jt(t,e){t&&t.l(e)}function qt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),ft((()=>{const e=t.$$.on_mount.map(d).filter(p);t.$$.on_destroy?t.$$.on_destroy.push(...e):h(e),t.$$.on_mount=[]})),o.forEach(ft)}function Tt(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];ct.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),ct=e}(n.after_update),h(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ct(t,e,n,r,o,i){let c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const s=X;et(t);const u=t.$$={fragment:null,ctx:[],props:i,update:l,not_equal:o,bound:f(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:f(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};c&&c(u.root);let d=!1;if(u.ctx=n?n(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;
2return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),d&&function(t,e){-1===t.$$.dirty[0]&&(ot.push(t),ut(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],u.update(),d=!0,h(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){E=!0;const t=F(e.target);u.fragment&&u.fragment.l(t),t.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&Et(t.$$.fragment),qt(t,e.target,e.anchor),E=!1,mt()}et(s)}class It{$$=void 0;$$set=void 0;$destroy(){Tt(this,1),this.$destroy=l}$on(t,e){if(!p(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 Dt(t){const e=t-1;return e*e*e+1}function Lt(t){let{delay:e=0,duration:n=400,easing:r=Dt,axis:o="y"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=getComputedStyle(t),c=+i.opacity,a="y"===o?"height":"width",l=parseFloat(i[a]),s="y"===o?["top","bottom"]:["left","right"],u=s.map((t=>`${t[0].toUpperCase()}${t.slice(1)}`)),d=parseFloat(i[`padding${u[0]}`]),f=parseFloat(i[`padding${u[1]}`]),h=parseFloat(i[`margin${u[0]}`]),p=parseFloat(i[`margin${u[1]}`]),$=parseFloat(i[`border${u[0]}Width`]),g=parseFloat(i[`border${u[1]}Width`]);return{delay:e,duration:n,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*c};${a}: ${t*l}px;padding-${s[0]}: ${t*d}px;padding-${s[1]}: ${t*f}px;margin-${s[0]}: ${t*h}px;margin-${s[1]}: ${t*p}px;border-${s[0]}-width: ${t*$}px;border-${s[1]}-width: ${t*g}px;`}}function Ot(t){let e,n,r;const o=t[2].default,i=function(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}(o,t,t[1],null);let c=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"currentColor"},{viewBox:"0 0 16 16"},t[0]],a={};for(let t=0;t<c.length;t+=1)a=u(a,c[t]);return{c(){e=q("svg"),i&&i.c(),n=q("path"),this.h()},l(t){e=z(t,"svg",{xmlns:!0,width:!0,height:!0,fill:!0,viewBox:!0});var r=F(e);i&&i.l(r),n=z(r,"path",{d:!0}
2),F(n).forEach(A),r.forEach(A),this.h()},h(){L(n,"d","M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"),O(e,a),J(e,"bi",!0),J(e,"bi-search",!0)},m(t,o){U(t,e,o),i&&i.m(e,null),S(e,n),r=!0},p(t,n){let[l]=n;i&&i.p&&(!r||2&l)&&function(t,e,n,r,o,i){if(o){const c=g(e,n,r,i);t.p(c,o)}}(i,o,t,t[1],r?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}(o,t[1],l,null):function(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}(t[1]),null),O(e,a=function(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const c=t[i],a=e[i];if(a){for(const t in c)t in a||(r[t]=1);for(const t in a)o[t]||(n[t]=a[t],o[t]=1);t[i]=a}else for(const t in c)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}(c,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{fill:"currentColor"},{viewBox:"0 0 16 16"},1&l&&t[0]])),J(e,"bi",!0),J(e,"bi-search",!0)},i(t){r||(Et(i,t),r=!0)},o(t){Pt(i,t),r=!1},d(t){t&&A(e),i&&i.d(t)}}}function Ft(t,e,n){const r=[];let o=m(e,r),{$$slots:i={},$$scope:c}=e;return t.$$set=t=>{e=u(u({},e),function(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}(t)),n(0,o=m(e,r)),"$$scope"in t&&n(1,c=t.$$scope)},[o,c,i]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class Mt extends It{constructor(t){super(),Ct(this,t,Ft,Ot,$,{})}}function Bt(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)}}}var Rt=27,zt=38,Vt=40;function Ht(t,e){let{onEscape:n,onArrowUp:r,onArrowDown:o}=e;const i=t=>{switch(t.keyCode){case Rt:n&&n(t);break;case zt:r&&(t.preventDefault(),r(t));break;case Vt:o&&(t.preventDefault(),o(t))}};return t.addEventListener("keydown",i),{destroy(){t.removeEventListener("keydown",i)}}}let Qt;const Wt=(Jt=function(t){return e=t.json(),n=function(e){if(!t.ok)throw Error(e?.message||t?.statusText);return e},r?n?n(e):e:(e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e);var e,n,r},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(Jt.apply(this,t))}catch(t){return Promise.reject(t)}});var Jt;function Gt(t,e){if(t.indexOf("*")>-1)return t;return t.split(" ").map((t=>`+${e?e.concat(":"):""}(${t} ${t}*)`)).join(" ")}function Kt(t){let{types:e,excluded:n,included:r}=t;return[e&&e.length?`+svtype:(${e.join(" ")})`:void 0,n&&n.length?`-path:(${n.join(" ")})`:void 0,r&&r.length?`+path:(${r.join(" ")})`:void 0,'+(metadata.SearchHit:"Ja" metadata.SearchHit:"Default")'].filter((t=>!!t)).join(" ")}function Xt(){const{index:t,types:e,excluded:n,included:r}=c()||{},o=`/rest-api/1/1/${t}/search`;return t=>{const i={query:Gt(t,"name.analyzed"),fields:["id","name"],filterQuery:Kt({types:e,excluded:n,included:r})};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(null!=n&&""!==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:""}(i,{addQueryPrefix:!0})).then(Wt).then((t=>t.map((t=>{let{id:e,name:n}=t;return{id:e.replace(".","_"),name:n}}))))}}function Yt(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 Zt(t,e,n){const r=t.slice();return r[14]=e[n].id,r[15]=e[n].name,r}function te(t){let e,n,r,o,i,c,a,l=t[15]+"";function s(){return t[9](t[14])}return{c(){e=j("li"),n=T(l),r=C(),this.h()},l(t){e=R(t,"LI",{id:!0,"aria-selected":!0,role:!0,class:!0});var o=F(e);n=V(o,l),r=H(o),o.forEach(A),this.h()},h(){L(e,"id",o=t[14]),L(e,"aria-selected",i=t[0]?.id===t[14]),L(e,"role","option"),L(e,"class","suggestions-listbox-1t6eej8")},m(t,o){U(t,e,o),S(e,n),S(e,r),c||(a=D(e,"click",s),c=!0)},p(r,c){t=r,8&c&&l!==(l=t[15]+"")&&Q(n,l),8&c&&o!==(o=t[14])&&L(e,"id",o),9&c&&i!==(i=t[0]?.id===t[14])&&L(e,"aria-selected",i)},d(t){t&&A(e),c=!1,a()}}}function ee(t){let e,n,r,i,c,a,s,u=St(t[3]),d=[];for(let e=0;e<u.length;e+=1)d[e]=te(Zt(t,u,e));return{c(){e=j("ul");for(let t=0;t<d.length;t+=1)d[t].c();r=C(),i=j("div"),c=T(t[4]),this.h()}
2,l(n){e=R(n,"UL",{id:!0,"aria-labelledby":!0,role:!0,class:!0});var o=F(e);for(let t=0;t<d.length;t+=1)d[t].l(o);o.forEach(A),r=H(n),i=R(n,"DIV",{class:!0,"aria-atomic":!0,"aria-live":!0});var a=F(i);c=V(a,t[4]),a.forEach(A),this.h()},h(){L(e,"id",`list_${o}`),L(e,"aria-labelledby",`label_${o}`),e.hidden=n=!t[1],L(e,"role","listbox"),L(e,"class","suggestions-listbox-1t6eej8"),L(i,"class","sr-only"),L(i,"aria-atomic","true"),L(i,"aria-live","assertive")},m(n,o){U(n,e,o);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);U(n,r,o),U(n,i,o),S(i,c),a||(s=v(Ht.call(null,window,{onEscape:t[2]})),a=!0)},p(t,r){let[o]=r;if(41&o){let n;for(u=St(t[3]),n=0;n<u.length;n+=1){const r=Zt(t,u,n);d[n]?d[n].p(r,o):(d[n]=te(r),d[n].c(),d[n].m(e,null))}for(;n<d.length;n+=1)d[n].d(1);d.length=u.length}2&o&&n!==(n=!t[1])&&(e.hidden=n),16&o&&Q(c,t[4])},i:l,o:l,d(t){t&&(A(e),A(r),A(i)),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(d,t),a=!1,s()}}}function ne(t,e,n){const r=Yt((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 r=Promise.resolve(t());return e?r.then(e):r}catch(t){return Promise.reject(t)}}(dt,(function(){l("click")}))})),o=Yt((function(){return t=s(i),e=function(t){n(3,u=t),n(1,a=!!u.length),a&&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.`)},r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t);var t,e,r}));let{query:i}=e,{selected:c}=e,{hasSuggestions:a=!1}=e;const l=nt(),s=Xt();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,a=t.hasSuggestions)},t.$$.update=()=>{var e,r;64&t.$$.dirty&&(i&&i.length>1?(e=o,r=300,clearTimeout(Qt),Qt=setTimeout(e,r)):(n(3,u=[]),n(1,a=!1)))},[c,a,function(){n(3,u=[]),n(1,a=!1),n(0,c=void 0)},u,d,r,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=>r(t)]}class re extends It{constructor(t){super(),Ct(this,t,ne,ee,$,{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 oe(t){let e,n,r,i,c,a,l,s,u,d;function f(e){t[11](e)}function p(e){t[12](e)}let $={query:t[1]};return void 0!==t[0]&&($.selected=t[0]),void 0!==t[2]&&($.hasSuggestions=t[2]),c=new re({props:$}),t[10](c),it.push((()=>Ut(c,"selected",f))),it.push((()=>Ut(c,"hasSuggestions",p))),c.$on("click",t[13]),{c(){e=j("div"),n=j("input"),i=C(),At(c.$$.fragment),this.h()},l(t){e=R(t,"DIV",{id:!0,"aria-controls":!0,"aria-expanded":!0,"aria-haspopup":!0,"aria-labelledby":!0,"aria-owns":!0,role:!0,class:!0});var r=F(e);n=R(r,"INPUT",{id:!0,"aria-activedescendant":!0,"aria-autocomplete":!0,"aria-controls":!0,autocomplete:!0,placeholder:!0,type:!0}),i=H(r),jt(c.$$.fragment,r),r.forEach(A),this.h()},h(){L(n,"id",`input_${o}`),L(n,"aria-activedescendant",r=t[0]?.id),L(n,"aria-autocomplete","list"),L(n,"aria-controls",`list_${o}`),L(n,"autocomplete","off"),L(n,"placeholder",t[4]),L(n,"type","search"),L(e,"id",`combobox_${o}`),L(e,"aria-controls",`combobox_${o}`),L(e,"aria-expanded",t[2]),L(e,"aria-haspopup","listbox"),L(e,"aria-labelledby",`input_${o}`),L(e,"aria-owns",`list_${o}`),L(e,"role","combobox"),L(e,"class","suggestions-mcekk9")},m(r,o){U(r,e,o),S(e,n),W(n,t[1]),S(e,i),qt(c,e,null),s=!0,u||(d=[D(n,"input",t[9]),D(n,"focusout",t[8]),v(Ht.call(null,n,{onArrowUp:t[6],onArrowDown:t[5]})),v(Bt.call(null,e,t[7]))],u=!0)},p(t,o){let[i]=o;(!s||1&i&&r!==(r=t[0]?.id))&&L(n,"aria-activedescendant",r),2&i&&n.value!==t[1]&&W(n,t[1]);const u={};2&i&&(u.query=t[1]),!a&&1&i&&(a=!0,u.selected=t[0],ht((()=>a=!1))),!l&&4&i&&(l=!0,u.hasSuggestions=t[2],ht((()=>l=!1))),c.$set(u),(!s||4&i)&&L(e,"aria-expanded",t[2])},i(t){s||(Et(c.$$.fragment,t),s=!0)},o(t){Pt(c.$$.fragment,t),s=!1},d(n){n&&A(e),t[10](null),Tt(c),u=!1,h(d)}}}function ie(t,e,n){const{placeholder:r}=c();let o,i,{selected:a}=e,{query:l}=e;return t.$$set=t=>{"selected"in t&&n(0,a=t.selected),"query"in t&&n(1,l=t.query)},[a,l,o,i,r,function(){i.selectNext()},function(){i.selectPrevious()},function(t){let{node:e,target:n}=t;e.parentNode.contains(n)||i.reset()},function(t){let{relatedTarget:e}=t;e&&i.reset()}
2,function(){l=this.value,n(1,l)},function(t){it[t?"unshift":"push"]((()=>{i=t,n(3,i)}))},function(t){a=t,n(0,a)},function(t){o=t,n(2,o)},function(e){rt.call(this,t,e)}]}class ce extends It{constructor(t){super(),Ct(this,t,ie,oe,$,{selected:0,query:1})}}function ae(t){let e,n,r;return{c(){e=j("input"),this.h()},l(t){e=R(t,"INPUT",{id:!0,name:!0,autocomplete:!0,placeholder:!0,type:!0}),this.h()},h(){L(e,"id",`input_${o}`),L(e,"name","query"),L(e,"autocomplete","off"),L(e,"placeholder",t[5]),L(e,"type","search")},m(o,i){U(o,e,i),W(e,t[1]),n||(r=D(e,"input",t[11]),n=!0)},p(t,n){2&n&&e.value!==t[1]&&W(e,t[1])},i:l,o:l,d(t){t&&A(e),n=!1,r()}}}function le(t){let e,n,r,o,i,c,a;function l(e){t[9](e)}function s(e){t[10](e)}let u={};return void 0!==t[2]&&(u.selected=t[2]),void 0!==t[1]&&(u.query=t[1]),e=new ce({props:u}),it.push((()=>Ut(e,"selected",l))),it.push((()=>Ut(e,"query",s))),e.$on("click",t[8]),{c(){At(e.$$.fragment),o=C(),i=j("input"),this.h()},l(t){jt(e.$$.fragment,t),o=H(t),i=R(t,"INPUT",{name:!0,type:!0}),this.h()},h(){L(i,"name","query"),L(i,"type","hidden"),i.value=c=`${t[2]?.name||t[1]}`},m(t,n){qt(e,t,n),U(t,o,n),U(t,i,n),a=!0},p(t,o){const l={};!n&&4&o&&(n=!0,l.selected=t[2],ht((()=>n=!1))),!r&&2&o&&(r=!0,l.query=t[1],ht((()=>r=!1))),e.$set(l),(!a||6&o&&c!==(c=`${t[2]?.name||t[1]}`))&&(i.value=c)},i(t){a||(Et(e.$$.fragment,t),a=!0)},o(t){Pt(e.$$.fragment,t),a=!1},d(t){t&&(A(o),A(i)),Tt(e,t)}}}function se(t){let e,n,r,i,c,a,l,s,u,d,f,h,p,$;const g=[le,ae],m=[];return c=function(t,e){return t[7]?0:1}(t),a=m[c]=g[c](t),{c(){e=j("form"),n=j("label"),r=T(t[4]),i=C(),a.c(),l=C(),s=j("span"),u=C(),d=j("button"),f=j("span"),h=T(t[6]),this.h()},l(o){e=R(o,"FORM",{action:!0,method:!0,class:!0});var c=F(e);n=R(c,"LABEL",{id:!0,class:!0,for:!0});var p=F(n);r=V(p,t[4]),p.forEach(A),i=H(c),a.l(c),l=H(c),s=R(c,"SPAN",{class:!0,"aria-hidden":!0}
2),F(s).forEach(A),u=H(c),d=R(c,"BUTTON",{type:!0,class:!0});var $=F(d);f=R($,"SPAN",{});var g=F(f);h=V(g,t[6]),g.forEach(A),$.forEach(A),c.forEach(A),this.h()},h(){L(n,"id",`label_${o}`),L(n,"class","sr-only"),L(n,"for",`input_${o}`),L(s,"class","bi bi-search search-form-9jb39p"),L(s,"aria-hidden","true"),L(d,"type","submit"),L(d,"class","search-form-9jb39p"),L(e,"action",p=`${t[0]}?query=start`),L(e,"method","get"),L(e,"class","search-form-9jb39p")},m(o,a){U(o,e,a),S(e,n),S(n,r),S(e,i),m[c].m(e,null),S(e,l),S(e,s),S(e,u),S(e,d),S(d,f),S(f,h),t[12](e),$=!0},p(t,n){let[r]=n;a.p(t,r),(!$||1&r&&p!==(p=`${t[0]}?query=start`))&&L(e,"action",p)},i(t){$||(Et(a),$=!0)},o(t){Pt(a),$=!1},d(n){n&&A(e),m[c].d(),t[12](null)}}}function ue(t,e,n){const{label:r,placeholder:o,buttonText:i,showSuggestions:a}=c();let l,s,{searchPageUri:u}=e,d="";return t.$$set=t=>{"searchPageUri"in t&&n(0,u=t.searchPageUri)},[u,d,l,s,r,o,i,a,function(){s.submit()},function(t){l=t,n(2,l)},function(t){d=t,n(1,d)},function(){d=this.value,n(1,d)},function(t){it[t?"unshift":"push"]((()=>{s=t,n(3,s)}))}]}class de extends It{constructor(t){super(),Ct(this,t,ue,se,$,{searchPageUri:0})}}function fe(t){let e,n;return e=new de({props:{searchPageUri:t[0]}}),{c(){At(e.$$.fragment)},l(t){jt(e.$$.fragment,t)},m(t,r){qt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.searchPageUri=t[0]),e.$set(r)},i(t){n||(Et(e.$$.fragment,t),n=!0)},o(t){Pt(e.$$.fragment,t),n=!1},d(t){Tt(e,t)}}}function he(t){let e,n,r,o,i;const c=[$e,pe],a=[];e=0,n=a[0]=c[0](t);let l=t[3]&&ge(t);return{c(){n.c(),r=C(),l&&l.c(),o=I()},l(t){n.l(t),r=H(t),l&&l.l(t),o=I()},m(t,e){a[0].m(t,e),U(t,r,e),l&&l.m(t,e),U(t,o,e),i=!0},p(t,e){n.p(t,e),t[3]?l?(l.p(t,e),8&e&&Et(l,1)):(l=ge(t),l.c(),Et(l,1),l.m(o.parentNode,o)):l&&(xt(),Pt(l,1,1,(()=>{l=null})),wt())},i(t){i||(Et(n),Et(l),i=!0)},o(t){Pt(n),Pt(l),i=!1},d(t){t&&(A(r),A(o)),a[0].d(t),l&&l.d(t)}}}function pe(t){let e,n,r,o,i,c;return n=new Mt({props:{"aria-hidden":"true",fill:"#fff",height:20,width:20}}),{c(){e=j("a"),At(n.$$.fragment),r=C(),o=j("span"),i=T(t[2]),this.h()},l(c){e=R(c,"A",{class:!0,href:!0});var a=F(e);jt(n.$$.fragment,a),r=H(a),o=R(a,"SPAN",{class:!0});var l=F(o);i=V(l,t[2]),l.forEach(A),a.forEach(A),this.h()},h(){L(o,"class","sr-only"),L(e,"class","expand-button"),L(e,"href",t[0])},m(t,a){U(t,e,a),qt(n,e,null),S(e,r),S(e,o),S(o,i),c=!0},p(t,n){(!c||4&n)&&Q(i,t[2]),(!c||1&n)&&L(e,"href",t[0])},i(t){c||(Et(n.$$.fragment,t),c=!0)},o(t){Pt(n.$$.fragment,t),c=!1},d(t){t&&A(e),Tt(n)}}}function $e(t){let e,n,r,o,i,c,a,l,s;return n=new Mt({props:{"aria-hidden":"true",fill:"#fff",height:20,width:20}}),{c(){e=j("button"),At(n.$$.fragment),r=C(),o=j("span"),i=T(t[2]),this.h()},l(c){e=R(c,"BUTTON",{class:!0,"aria-expanded":!0});var a=F(e);jt(n.$$.fragment,a),r=H(a),o=R(a,"SPAN",{class:!0});var l=F(o);i=V(l,t[2]),l.forEach(A),a.forEach(A),this.h()},h(){L(o,"class","sr-only"),L(e,"class","expand-button app-11xzdi6"),L(e,"aria-expanded",c=t[3].toString()),J(e,"active",t[3])},m(c,u){U(c,e,u),qt(n,e,null),S(e,r),S(e,o),S(o,i),a=!0,l||(s=D(e,"click",t[5]),l=!0)},p(t,n){(!a||4&n)&&Q(i,t[2]),(!a||8&n&&c!==(c=t[3].toString()))&&L(e,"aria-expanded",c),(!a||8&n)&&J(e,"active",t[3])},i(t){a||(Et(n.$$.fragment,t),a=!0)},o(t){Pt(n.$$.fragment,t),a=!1},d(t){t&&A(e),Tt(n),l=!1,s()}}}function ge(t){let e,n,r,o,i,c;return n=new de({props:{searchPageUri:t[0]}}),{c(){e=j("div"),At(n.$$.fragment),this.h()},l(t){e=R(t,"DIV",{class:!0});var r=F(e);jt(n.$$.fragment,r),r.forEach(A),this.h()},h(){L(e,"class","container app-11xzdi6")},m(r,a){U(r,e,a),qt(n,e,null),o=!0,i||(c=D(e,"introend",t[8]),i=!0)},p(t,e){const r={};1&e&&(r.searchPageUri=t[0]),n.$set(r)},i(t){o||(Et(n.$$.fragment,t),t&&ft((()=>{o&&(r||(r=Nt(e,Lt,{duration:200},!0)),r.run(1))})),o=!0)},o(t){Pt(n.$$.fragment,t),t&&(r||(r=Nt(e,Lt,{duration:200},!1)),r.run(0)),o=!1},d(t){t&&A(e),Tt(n),t&&r&&r.end(),i=!1,c()}}}function me(t){let e,n,r,o,i,c;const a=[he,fe],l=[];function s(t,e){return t[1]?0:1}return n=s(t),r=l[n]=a[n](t),{c(){e=j("div"),r.c()},l(t){e=R(t,"DIV",{});var n=F(e);r.l(n),n.forEach(A)},m(r,a){U(r,e,a),l[n].m(e,null),t[9](e),o=!0,i||(c=[D(e,"focusout",t[7]),v(Bt.call(null,e,t[6]))],i=!0)},p(t,o){let[i]=o,c=n;n=s(t),n===c?l[n].p(t,i):(xt(),Pt(l[c],1,1,(()=>{l[c]=null})),wt(),r=l[n],r?r.p(t,i):(r=l[n]=a[n](t),r.c()),Et(r,1),r.m(e,null))},i(t){o||(Et(r),o=!0)},o(t){Pt(r),o=!1},d(r){r&&A(e),l[n].d(),t[9](null),i=!1,h(c)}}}function ve(t,e,n){let r,{searchPageUri:o}=e,{isExpandable:i}=e,{buttonText:c}=e,a=!1;function l(){a&&n(3,a=!1)}return t.$$set=t=>{"searchPageUri"in t&&n(0,o=t.searchPageUri),"isExpandable"in t&&n(1,i=t.isExpandable),"buttonText"in t&&n(2,c=t.buttonText)},[o,i,c,a,r,function(){n(3,a=!a)},l,function(t){let{relatedTarget:e}=t;e&&!r.contains(e)&&l()},function(){r.querySelector("input")?.focus()},function(t){it[t?"unshift":"push"]((()=>{r=t,n(4,r)}))}]}class ye extends It{constructor(t){super(),Ct(this,t,ve,me,$,{searchPageUri:0,isExpandable:1,buttonText:2})}}return(t,e)=>{a(ye,{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.