1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,746046,e=>{e.v(t=>Promise.all(["static/chunks/3ui1oplaojwgs.js"].map(t=>e.l(t))).then(()=>t(53305)))},349070,e=>{e.v(t=>Promise.all(["static/chunks/2b4h0tkyxflvt.js"].map(t=>e.l(t))).then(()=>t(482568)))},948148,e=>{"use strict";var t=e.i(861745);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let n=r(0,t.useTranslations),a=r(0,t.useFormatter);e.s(["useFormatter",0,a,"useTranslations",0,n])},679474,(e,t,r)=>{"use strict";var n=e.r(271645).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;r.c=function(e){return n.H.useMemoCache(e)}},500932,(e,t,r)=>{"use strict";e.i(247167),t.exports=e.r(679474)},563491,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645),a=e.i(948148),i=e.i(877028);e.s(["default",0,function(e){let s,o,l,u,c,f,h,d,p,g,m,y,_,w=(0,r.c)(27),{error:k,reset:v}=e,b=(0,a.useTranslations)("frontend");return w[0]!==k.message||w[1]!==k.name||w[2]!==k.stack?(s=()=>{(0,i.reportClientError)({message:`${k.name}: ${k.message}`,stack:k.stack,severity:"error"})},w[0]=k.message,w[1]=k.name,w[2]=k.stack,w[3]=s):s=w[3],w[4]!==k?(o=[k],w[4]=k,w[5]=o):o=w[5],(0,n.useEffect)(s,o),w[6]===Symbol.for("react.memo_cache_sentinel")?(l={margin:0,minHeight:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"1rem",fontFamily:"system-ui, sans-serif",textAlign:"center",padding:"2rem"},u={fontSize:"1.75rem",fontWeight:600},w[6]=l,w[7]=u):(l=w[6],u=w[7]),w[8]!==b?(c=b("app.global_error.ein_fehler_ist_aufgetreten"),w[8]=b,w[9]=c):c=w[9],w[10]!==c?(f=(0,t.jsx)("h1",{style:u,children:c}),w[10]=c,w[11]=f):f=w[11],w[12]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#555",maxWidth:"32rem"},w[12]=h):h=w[12],w[13]!==b?(d=b("app.global_error.es_ist_ein_unerwarteter_fehler_aufgetreten"),w[13]=b,w[14]=d):d=w[14],w[15]!==d?(p=(0,t.jsx)("p",{style:h,children:d}),w[15]=d,w[16]=p):p=w[16],w[17]===Symbol.for("react.memo_cache_sentinel")?(g={cursor:"pointer",borderRadius:"0.5rem",border:"1px solid #ccc",background:"#111",color:"#fff",padding:"0.5rem 1rem",fontSize:"0.875rem"},w[17]=g):g=w[17],w[18]!==b?(m=b("app.global_error.erneut_versuchen"),w[18]=b,w[19]=m):m=w[19],w[20]!==v||w[21]!==m?(y=(0,t.jsx)("button",{type:"button",onClick:v,style:g,children:m}),w[20]=v,w[21]=m,w[22]=y):y=w[22],w[23]!==y||w[24]!==f||w[25]!==p?(_=(0,t.jsx)("html",{lang:"de",children:(0,t.jsxs)("body",{style:l,children:[f,p,y]})}),w[23]=y,w[24]=f,w[25]=p,w[26]=_):_=w[26],_}])},728762,11005,584273,669851,e=>{"use strict";var t=e.i(123305),r=e.i(921382);async function n(){if((0,r.isNative)())try{let{registerPlugin:t}=await e.A(349070),r=t("StorageSweep");await r.clear()}catch{}}var a=e.i(848906);let i=["gathra_token","gathra_push_token","gathra_recent_admin_v1","gathra_sidebar_hidden_v1","gathra_stat_session","zeit-terminal-queue","gathra_hygiene_capture_queue_v1","gathra_wartung_capture_queue_v1","gathra_op_capture_queue_v1","gathra_kasse_counter_queue_v1","gathra_relogin_v1","gathra_who_v1"],s=["hfb_editor_draft_"];async function o(){(0,t.clearToken)();try{await fetch("/api/auth/clear",{method:"POST",cache:"no-store"})}catch{}try{let{unregisterWebPush:t}=await e.A(50955);await t({server:!1})}catch{}try{let{dropPushLocally:t}=await e.A(629264);await t()}catch{}for(let e of i)a.localStore.removeItem(e);for(let e of a.localStore.keys())s.some(t=>e.startsWith(t))&&a.localStore.removeItem(e);a.sessionStore.clear(),(async()=>{try{if(!("caches"in window))return;for(let e of(await caches.keys()))e.startsWith("gathra-")&&await caches.delete(e)}catch{}})(),n()}e.s(["endSession",0,o],11005);var l=e.i(87907);let u=["otp","consents","password"],c={otp:"/otp-einrichten",consents:"/zustimmungen",password:"/passwort-aendern"},f={otp_setup_required:"otp",consent_required:"consents",password_change_required:"password"};function h(e,t){let r="string"==typeof e&&Object.hasOwn(f,e)?f[e]:null;if(null===r)return null;let n=function(e){for(let t of u){let r=c[t];if(e===r||e.startsWith(r+"/"))return t}return null}(t);return null!==n&&u.indexOf(r)>=u.indexOf(n)?null:c[r]}e.s(["gateRedirect",0,h,"nextStepPath",0,function(e,t){if(Array.isArray(e)){for(let t of u)if(e.includes(t))return c[t]}return t}],584273);let d="gathra_relogin_v1",p="gathra_who_v1";function g(){try{return window.sessionStorage}catch{return null}}function m(e){if("string"!=typeof e||""===e||!e.startsWith("/")||e.startsWith("//")||e.startsWith("/\\")||/\s/.test(e))return null;let t=e.replace(/^\/(en|leicht)(?=\/|$)/,"")||"/";return/^\/(login|logout|abmelden)(?=[/?#]|$)/.test(t)?null:e}function y(e=g()){if(!e)return null;try{let t=e.getItem(p);return null!==t&&""!==t?t:null}catch{return null}}function _(e,t=g()){if(!t)return;let r={};"string"==typeof e.identifier&&""!==e.identifier&&(r.identifier=e.identifier);let n=m(e.next);n&&(r.next=n);try{0===Object.keys(r).length?t.removeItem(d):t.setItem(d,JSON.stringify(r))}catch{}}function w(){return m(window.location.pathname+window.location.search)}e.s(["currentPathForReturn",0,w,"reloginConsumer",0,function(e=g()){let t=null;return()=>t??=function(e=g()){if(!e)return{};try{let t=e.getItem(d);if(e.removeItem(d),!t)return{};let r=JSON.parse(t);if(!r||"object"!=typeof r)return{};let n={};"string"==typeof r.identifier&&""!==r.identifier&&(n.identifier=r.identifier);let a=m(r.next);return a&&(n.next=a),n}catch{return{}}}(e)},"rememberRelogin",0,_,"rememberWho",0,function(e,t=g()){if(t)try{null===e||""===e?t.removeItem(p):t.setItem(p,e)}catch{}},"whoIsHere",0,y],669851);let k="https://api.hallenfreibad-burgdorf.de/api",v=["en","leicht"];function b(){let e=window.location.pathname.split("/")[1];return v.includes(e)?e:"de"}function A(e){let t=b();return"de"===t?e:`/${t}${e}`}function S(){let e=window.location.pathname,t=e.split("/")[1];return v.includes(t)?e.slice(t.length+1)||"/":e}function x(e){try{let t=e.split(".")[1];if(!t)return null;let r=t.replace(/-/g,"+").replace(/_/g,"/");return r+="=".repeat((4-r.length%4)%4),JSON.parse(atob(r))}catch{return null}}let I="gathra:app-update-required";
1class T extends Error{status;errors;payload;requestId;constructor(e,t,r={},n={},a=null){super(e),this.name="ApiError",this.status=t,this.errors=r,this.payload=n,this.requestId=a}get code(){return"string"==typeof this.payload.code?this.payload.code:void 0}}let E=null;function R(e){return e instanceof T&&403===e.status&&"demo_locked"===e.code}function j(e){return e instanceof T&&404===e.status}async function P(e,t){try{return await e}catch(e){if(j(e))return t;throw e}}let $=null,q=new Map;function O(e){return e instanceof T&&(0,l.isReauthRequired)(e.status,e.payload)}async function N(e,r={}){if("GET"!==(r.method??"GET").toUpperCase()||void 0!==r.body||r.signal)return(0,l.retryAfterReauth)(()=>C(e,r,!1),O);let n=`${!1===r.auth?"pub":"auth"}:${(0,t.getToken)()?"tok":"anon"}:${e}`,a=q.get(n);if(a)return a;let i=(0,l.retryAfterReauth)(()=>C(e,r,!1),O).finally(()=>{q.delete(n)});return q.set(n,i),i}async function C(e,n,a){let i,{body:s,auth:l=!0,headers:u,...c}=n,f=new Headers(u);f.set("Accept","application/json"),f.has("Accept-Language")||f.set("Accept-Language",b());let d=(0,r.appVersionHeader)();""!==d&&f.set("X-App-Version",d),s instanceof FormData?i=s:void 0!==s&&(f.set("Content-Type","application/json"),i=JSON.stringify(s));let p=!1,g=(0,t.getToken)();g&&(f.set("Authorization",`Bearer ${g}`),p=l);let m=await fetch(`${k}${e}`,{...c,headers:f,body:i});if(401===m.status&&p){let r=(0,t.syncTokenFromStorage)();if(!a&&null!==r&&r!==g||!a&&"/auth/refresh"!==e&&await ($||($=(async()=>{let e=(0,t.getToken)();if(!e)return!1;try{let r=await fetch(`${k}/auth/refresh`,{method:"POST",headers:{Accept:"application/json",Authorization:`Bearer ${e}`}});if(!r.ok)return!1;let n=await r.json().catch(()=>null),a=n&&"object"==typeof n?n.token:null;if("string"==typeof a&&""!==a)return(0,t.setToken)(a),!0;return!1}catch{return!1}})().finally(()=>{$=null}))))return C(e,n,!0);await o(),S().startsWith("/login")||(_({identifier:y()??void 0,next:w()??void 0}),window.location.assign(A("/login?expired=1")))}if(204===m.status)return;let v=await m.json().catch(()=>null),x=v&&"object"==typeof v?v:{};if(403===m.status){let e=h(x.code,S());null!==e&&window.location.assign(A(e))}if(426===m.status&&"app_update_required"===x.error&&window.dispatchEvent(new CustomEvent(I,{detail:{minVersion:"string"==typeof x.min_version?x.min_version:""}})),!m.ok){let e="string"==typeof x.message?x.message:`Anfrage fehlgeschlagen (${m.status}).`,t="errors"in x&&x.errors?x.errors:{},r=m.headers.get("X-Request-Id")??("string"==typeof x.request_id?x.request_id:null);throw m.status>=500&&r&&(E={id:r,at:Date.now()}),new T(e,m.status,t,x,r)}return v}e.s(["API_BASE",0,k,"APP_UPDATE_REQUIRED_EVENT",0,I,"ApiError",0,T,"apiFetch",0,N,"apiOrigin",0,function(){try{return new URL(k).origin}catch{return null}},"currentLocale",0,b,"isDemoLocked",0,R,"isMissingPlugin",0,j,"isMissingRight",0,function(e){return e instanceof T&&403===e.status&&!R(e)},"isReauthError",0,O,"optionalPlugin",0,P,"readLongInputRefusal",0,function(e){if(!(e instanceof T)||422!==e.status||"input_too_long"!==e.payload.reason)return null;let t=e.payload.exception,r=t?.available===!0;return{chars:"number"==typeof e.payload.chars?e.payload.chars:0,max:"number"==typeof e.payload.max?e.payload.max:0,exceptionMax:r&&"number"==typeof t?.max?t.max:null}},"recentServerFailureId",0,function(e=6e4){return!E||Date.now()-E.at>e?null:E.id},"tokenExpiry",0,function(e=(0,t.getToken)()){if(!e)return null;let r=x(e)?.exp;return"number"==typeof r?1e3*r:null},"tokenLifetime",0,function(e=(0,t.getToken)()){if(!e)return null;let r=x(e);return"number"==typeof r?.exp&&"number"==typeof r?.iat?(r.exp-r.iat)*1e3:null}],728762)},877028,e=>{"use strict";var t=e.i(728762);let r=["ical","screen","bildschirm","terminal","kiosk","portal","bewerbung","einladung","treue-checkin","ticket-einlass","gruppen-einlass","zeit-terminal","hygiene-terminal","auftrag","buchung","bestellung"],n=new Map;function a(e){let t=JSON.stringify(e)??"",r=0;for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);n>127?r+=5:47===n&&(r+=1)}return t.length+r}function i(e){let i=(e.message??"").trim();if(""===i||!function(e){let t=Date.now();for(let[e,r]of n)t-r>5e3&&n.delete(e);return!n.has(e)&&(n.set(e,t),!0)}(`${i}::${e.stack??""}`))return;let s=function(e){let t={...e,message:e.message.slice(0,2e3),stack:e.stack?.slice(0,8e3),source:e.source?.slice(0,1e3),userAgent:e.userAgent?.slice(0,500)},r=15872;
1for(;t.stack&&a(t)>r;){let e=a(t)-r;t.stack=t.stack.slice(0,Math.max(0,t.stack.length-Math.max(80,Math.ceil(e/6))))}return a(t)>r&&(t.message=t.message.slice(0,500)),t}({message:i,stack:e.stack,source:function(e){if(!e)return"";let t=e;try{t=new URL(e,"https://placeholder.invalid").pathname}catch{t=e.split("?")[0]}return t.split("/").map((e,t,n)=>{let a=t>0?n[t-1].toLowerCase():"";return""!==e&&r.includes(a)?"<redacted>":e}).join("/")}(e.source??window.location.href),severity:e.severity??"error",userAgent:window.navigator.userAgent,request_id:e.requestId??(0,t.recentServerFailureId)()??void 0});(0,t.apiFetch)("/client-logs",{method:"POST",body:s,auth:!1,keepalive:!0}).catch(()=>{})}e.s(["reportClientError",0,i,"reportFromUnknown",0,function(e,r="error"){e instanceof Error?i({message:`${e.name}: ${e.message}`,stack:e.stack,severity:r,requestId:e instanceof t.ApiError?e.requestId:null}):i({message:String(e),severity:r})}],877028)},921382,e=>{"use strict";function t(){return window.Capacitor}function r(){let e=t();return"function"==typeof e?.isNativePlatform&&e.isNativePlatform()}let n="",a=0,i="",s="unknown";async function o(){if(r()&&""===n)try{let{App:t}=await e.A(746046),r=await t.getInfo();n=r.version,a=parseInt(r.build,10)||0,i=r.id}catch{}}e.s(["appVersionHeader",0,function(){if(""===n)return"";let e=a>0?`+${a}`:"",t="unknown"===s?"":`-${s}`;return`${n}${e}${t}`},"currentAppBuild",0,function(){return a},"currentAppPackage",0,function(){return i},"currentAppVersion",0,function(){return n},"isNative",0,r,"nativePlatform",0,function(){return t()?.getPlatform?.()??"web"},"primeAppVersion",0,o,"setAppChannel",0,function(e){s=e}])},629264,e=>{e.v(t=>Promise.all(["static/chunks/3xvw0a71bggka.js","static/chunks/03ue9fhmr1ha3.js"].map(t=>e.l(t))).then(()=>t(719251)))},87907,e=>{"use strict";let t="reauth_required",r=null,n=null,a=new Set;function i(){let e=null!==n;for(let t of a)t(e)}async function s(e,t,a){try{return await e()}catch(s){if(!t(s))throw s;if(a)try{a()}catch{}if(!await function(){if(n)return n;if(null===r)return Promise.resolve(!1);let e=r;return n=(async()=>{try{return await e()}catch{return!1}})().finally(()=>{n=null,i()}),i(),n}())throw s;return e()}}e.s(["REAUTH_DONE_MESSAGE",0,"gathra:reauth-done","isReauthPending",0,function(){return null!==n},"isReauthRequired",0,function(e,r){return 428===e&&null!==r&&"object"==typeof r&&(r.error===t||r.code===t)},"retryAfterReauth",0,s,"setReauthPrompter",0,function(e){r=e},"subscribeReauthPending",0,function(e){return a.add(e),()=>{a.delete(e)}}])},123305,848906,e=>{"use strict";function t(e){let t=new Map,r=!1,n=null,a=()=>{if(r)return n;r=!0;try{let t=window[e],r="__gathra_probe__";t.setItem(r,"1"),t.removeItem(r),n=t}catch{n=null}return n};return{getItem(e){if(t.has(e))return t.get(e)??null;try{return a()?.getItem(e)??null}catch{return null}},setItem(e,r){let n=a();if(n)try{return n.setItem(e,r),t.delete(e),!0}catch{}return t.set(e,r),!1},removeItem(e){t.delete(e);try{a()?.removeItem(e)}catch{}},keys(){let e=new Set(t.keys());try{let t=a();if(t)for(let r=0;r<t.length;r++){let n=t.key(r);null!==n&&e.add(n)}}catch{}return[...e]},clear(){t.clear();try{a()?.clear()}catch{}},get persistent(){return null!==a()}}}let r=t("localStorage"),n=t("sessionStorage");e.s(["localStore",0,r,"sessionStore",0,n],848906);let a="gathra_token",i=null;function s(){return r.getItem(a)}async function o(){i=s()}window.addEventListener("storage",e=>{e.key===a&&e.newValue&&(i=e.newValue)}),e.s(["clearToken",0,function(){i=null,r.removeItem(a)},"getToken",0,function(){return null!==i?i:i=s()},"hydrateToken",0,o,"setToken",0,function(e){i=e,r.setItem(a,e)},"syncTokenFromStorage",0,function(){return i=s()}],123305)},50955,e=>{e.v(t=>Promise.all(["static/chunks/357cq-jvku7kn.js","static/chunks/07dlxvwmo5gig.js","static/chunks/2lksr2sm5h54t.js"].map(t=>e.l(t))).then(()=>t(171691)))}]);
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.