1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,235387,e=>{"use strict";let t=new Set(["in_progress","paused","completed"]),l=e=>{if("number"==typeof e&&Number.isFinite(e))return e>0?e:null;if("string"!=typeof e)return null;let t=e.trim().replace(/\s/g,"");if(!t)return null;t.includes(",")&&t.includes(".")?t=t.lastIndexOf(",")>t.lastIndexOf(".")?t.replace(/\./g,"").replace(",","."):t.replace(/,/g,""):t.includes(",")?t=t.replace(",","."):t.includes(".")&&(t.match(/\./g)||[]).length>1&&(t=t.replace(/\./g,""));let l=Number(t=t.replace(/[^0-9.-]/g,""));return Number.isFinite(l)&&l>0?l:null};e.s(["getListingPrice",0,(e,a=[])=>{let s,n;for(let e of a){let t=l(e);if(null!==t)return t}return"string"==typeof e.status&&t.has(e.status)?(s=l(e.expectedPriceMin),n=l(e.expectedPriceMax),null!==s&&null!==n?Math.round((s+n)/2):s??n):null},"parsePriceNumber",0,l])},763479,228118,147470,698778,e=>{"use strict";var t,l,a=e.i(949866),s=e.i(514918);let n=/^(?:-+|â|â|\/|n\/?a|k\.?\s?a\.?|keine?|nein|nichts|ohne|entf(?:ällt|\.)?|keine?\s+(?:weiteren?\s+|sonstigen?\s+|besonderen?\s+)?(?:hinweise?|angaben?|informationen?|anmerkungen?|bemerkungen?))\.?$/i;function r(e){let t=(e??"").trim();return!t||n.test(t)}function i(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} und ${e[e.length-1]}`}e.i(443366);var o=e.i(141592),c=e.i(453872),d=e.i(724320),u=e.i(828255),h=e.i(194822),m=e.i(340337),p=e.i(466743),g=e.i(451004);let{entries:x,setPrototypeOf:f,isFrozen:b,getPrototypeOf:k,getOwnPropertyDescriptor:v}=Object,{freeze:y,seal:j,create:N}=Object,{apply:w,construct:S}="u">typeof Reflect&&Reflect;y||(y=function(e){return e}),j||(j=function(e){return e}),w||(w=function(e,t){for(var l=arguments.length,a=Array(l>2?l-2:0),s=2;s<l;s++)a[s-2]=arguments[s];return e.apply(t,a)}),S||(S=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),a=1;a<t;a++)l[a-1]=arguments[a];return new e(...l)});let E=P(Array.prototype.forEach),A=P(Array.prototype.lastIndexOf),T=P(Array.prototype.pop),C=P(Array.prototype.push),R=P(Array.prototype.splice),I=P(String.prototype.toLowerCase),$=P(String.prototype.toString),L=P(String.prototype.match),M=P(String.prototype.replace),z=P(String.prototype.indexOf),D=P(String.prototype.trim),_=P(Object.prototype.hasOwnProperty),F=P(RegExp.prototype.test),G=(t=TypeError,function(){for(var e=arguments.length,l=Array(e),a=0;a<e;a++)l[a]=arguments[a];return S(t,l)});function P(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var l=arguments.length,a=Array(l>1?l-1:0),s=1;s<l;s++)a[s-1]=arguments[s];return w(e,t,a)}}function B(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;f&&f(e,null);let a=t.length;for(;a--;){let s=t[a];if("string"==typeof s){let e=l(s);e!==s&&(b(t)||(t[a]=e),s=e)}e[s]=!0}return e}function O(e){let t=N(null);for(let[l,a]of x(e))_(e,l)&&(Array.isArray(a)?t[l]=function(e){for(let t=0;t<e.length;t++)_(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[l]=O(a):t[l]=a);return t}function U(e,t){for(;null!==e;){let l=v(e,t);if(l){if(l.get)return P(l.get);if("function"==typeof l.value)return P(l.value)}e=k(e)}return function(){return null}}let H=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),K=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),q=y(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=y(["#text"]),X=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Q=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ee=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),et=j(/\{\{[\w\W]*|[\w\W]*\}\}/gm),el=j(/<%[\w\W]*|[\w\W]*%>/gm),ea=j(/\$\{[\w\W]*/gm),es=j(/^data-[\-\w.\u00B7-\uFFFF]+$/),en=j(/^aria-[\-\w]+$/),er=j(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ei=j(/^(?:\w+script|data):/i),eo=j(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ec=j(/^html$/i);var ed=Object.freeze({__proto__:null,ARIA_ATTR:en,ATTR_WHITESPACE:eo,CUSTOM_ELEMENT:j(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:es,DOCTYPE_NAME:ec,ERB_EXPR:el,IS_ALLOWED_URI:er,IS_SCRIPT_OR_DATA:ei,MUSTACHE_EXPR:et,TMPLIT_EXPR:ea});let eu=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let l=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(l=t.getAttribute(a));let s="dompurify"+(l?"#"+l:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}},eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var em=function e(){let t,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=t=>e(t);if(a.version="3.3.3",a.removed=[],!l||!l.document||9!==l.document.nodeType||!l.Element)return a.isSupported=!1,a;let{document:s}=l,n=s,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:c,Element:d,NodeFilter:u,NamedNodeMap:h=l.NamedNodeMap||l.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:g}=l,f=d.prototype,b=U(f,"cloneNode"),k=U(f,"remove"),v=U(f,"nextSibling"),j=U(f,"childNodes"),w=U(f,"parentNode");if("function"==typeof o){let e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let S="",{implementation:P,createNodeIterator:et,createDocumentFragment:el,getElementsByTagName:ea}=s,{importNode:es}=n,en=eh();a.isSupported="function"==typeof x&&"function"==typeof w&&P&&void 0!==P.createHTMLDocument;let{MUSTACHE_EXPR:ei,ERB_EXPR:eo,TMPLIT_EXPR:em,DATA_ATTR:ep,ARIA_ATTR:eg,IS_SCRIPT_OR_DATA:ex,ATTR_WHITESPACE:ef,CUSTOM_ELEMENT:eb}=ed,{IS_ALLOWED_URI:ek}=ed,ev=null,ey=B({},[...H,...W,...K,...V,...Y]),ej=null,eN=B({}
vendor: 4,447 bytes, line 1
1,[...X,...Q,...J,...ee]),ew=Object.seal(N(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eS=null,eE=null,eA=Object.seal(N(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eT=!0,eC=!0,eR=!1,eI=!0,e$=!1,eL=!0,eM=!1,ez=!1,eD=!1,e_=!1,eF=!1,eG=!1,eP=!0,eB=!1,eO=!0,eU=!1,eH={},eW=null,eK=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eq=null,eV=B({},["audio","video","img","source","image","track"]),eZ=null,eY=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eX="http://www.w3.org/1998/Math/MathML",eQ="http://www.w3.org/2000/svg",eJ="http://www.w3.org/1999/xhtml",e0=eJ,e1=!1,e2=null,e3=B({},[eX,eQ,eJ],$),e5=B({},["mi","mo","mn","ms","mtext"]),e4=B({},["annotation-xml"]),e7=B({},["title","style","font","a","script"]),e6=null,e8=["application/xhtml+xml","text/html"],e9=null,te=null,tt=s.createElement("form"),tl=function(e){return e instanceof RegExp||e instanceof Function},ta=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=O(e),e9="application/xhtml+xml"===(e6=-1===e8.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?$:I,ev=_(e,"ALLOWED_TAGS")?B({},e.ALLOWED_TAGS,e9):ey,ej=_(e,"ALLOWED_ATTR")?B({},e.ALLOWED_ATTR,e9):eN,e2=_(e,"ALLOWED_NAMESPACES")?B({},e.ALLOWED_NAMESPACES,$):e3,eZ=_(e,"ADD_URI_SAFE_ATTR")?B(O(eY),e.ADD_URI_SAFE_ATTR,e9):eY,eq=_(e,"ADD_DATA_URI_TAGS")?B(O(eV),e.ADD_DATA_URI_TAGS,e9):eV,eW=_(e,"FORBID_CONTENTS")?B({},e.FORBID_CONTENTS,e9):eK,eS=_(e,"FORBID_TAGS")?B({},e.FORBID_TAGS,e9):O({}),eE=_(e,"FORBID_ATTR")?B({},e.FORBID_ATTR,e9):O({}),eH=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,eT=!1!==e.ALLOW_ARIA_ATTR,eC=!1!==e.ALLOW_DATA_ATTR,eR=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eI=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,e$=e.SAFE_FOR_TEMPLATES||!1,eL=!1!==e.SAFE_FOR_XML,eM=e.WHOLE_DOCUMENT||!1,e_=e.RETURN_DOM||!1,eF=e.RETURN_DOM_FRAGMENT||!1,eG=e.RETURN_TRUSTED_TYPE||!1,eD=e.FORCE_BODY||!1,eP=!1!==e.SANITIZE_DOM,eB=e.SANITIZE_NAMED_PROPS||!1,eO=!1!==e.KEEP_CONTENT,eU=e.IN_PLACE||!1,ek=e.ALLOWED_URI_REGEXP||er,e0=e.NAMESPACE||eJ,e5=e.MATHML_TEXT_INTEGRATION_POINTS||e5,e4=e.HTML_INTEGRATION_POINTS||e4,ew=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tl(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ew.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tl(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ew.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ew.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),e$&&(eC=!1),eF&&(e_=!0),eH&&(ev=B({},Y),ej=N(null),!0===eH.html&&(B(ev,H),B(ej,X)),!0===eH.svg&&(B(ev,W),B(ej,Q),B(ej,ee)),!0===eH.svgFilters&&(B(ev,K),B(ej,Q),B(ej,ee)),!0===eH.mathMl&&(B(ev,V),B(ej,J),B(ej,ee))),_(e,"ADD_TAGS")||(eA.tagCheck=null),_(e,"ADD_ATTR")||(eA.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?eA.tagCheck=e.ADD_TAGS:(ev===ey&&(ev=O(ev)),B(ev,e.ADD_TAGS,e9))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?eA.attributeCheck=e.ADD_ATTR:(ej===eN&&(ej=O(ej)),B(ej,e.ADD_ATTR,e9))),e.ADD_URI_SAFE_ATTR&&B(eZ,e.ADD_URI_SAFE_ATTR,e9),e.FORBID_CONTENTS&&(eW===eK&&(eW=O(eW)),B(eW,e.FORBID_CONTENTS,e9)),e.ADD_FORBID_CONTENTS&&(eW===eK&&(eW=O(eW)),B(eW,e.ADD_FORBID_CONTENTS,e9)),eO&&(ev["#text"]=!0),eM&&B(ev,["html","head","body"]),ev.table&&(B(ev,["tbody"]),delete eS.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=eu(g,r)),null!==t&&"string"==typeof S&&(S=t.createHTML(""));y&&y(e),te=e}},ts=B({},[...W,...K,...q]),tn=B({}
1,[...V,...Z]),tr=function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let l=I(e.tagName),a=I(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eQ?t.namespaceURI===eJ?"svg"===l:t.namespaceURI===eX?"svg"===l&&("annotation-xml"===a||e5[a]):!!ts[l]:e.namespaceURI===eX?t.namespaceURI===eJ?"math"===l:t.namespaceURI===eQ?"math"===l&&e4[a]:!!tn[l]:e.namespaceURI===eJ?(t.namespaceURI!==eQ||!!e4[a])&&(t.namespaceURI!==eX||!!e5[a])&&!tn[l]&&(e7[l]||!ts[l]):"application/xhtml+xml"===e6&&!!e2[e.namespaceURI])},ti=function(e){C(a.removed,{element:e});try{w(e).removeChild(e)}catch(t){k(e)}},to=function(e,t){try{C(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){C(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(e_||eF)try{ti(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tc=function(e){let l=null,a=null;if(eD)e="<remove></remove>"+e;else{let t=L(e,/^[\r\n\t ]+/);a=t&&t[0]}"application/xhtml+xml"===e6&&e0===eJ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let n=t?t.createHTML(e):e;if(e0===eJ)try{l=new p().parseFromString(n,e6)}catch(e){}if(!l||!l.documentElement){l=P.createDocument(e0,"template",null);try{l.documentElement.innerHTML=e1?S:n}catch(e){}}let r=l.body||l.documentElement;return(e&&a&&r.insertBefore(s.createTextNode(a),r.childNodes[0]||null),e0===eJ)?ea.call(l,eM?"html":"body")[0]:eM?l.documentElement:r},td=function(e){return et.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},tu=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},th=function(e){return"function"==typeof c&&e instanceof c};function tm(e,t,l){E(e,e=>{e.call(a,t,l,te)})}let tp=function(e){let t=null;if(tm(en.beforeSanitizeElements,e,null),tu(e))return ti(e),!0;let l=e9(e.nodeName);if(tm(en.uponSanitizeElement,e,{tagName:l,allowedTags:ev}),eL&&e.hasChildNodes()&&!th(e.firstElementChild)&&F(/<[/\w!]/g,e.innerHTML)&&F(/<[/\w!]/g,e.textContent)||7===e.nodeType||eL&&8===e.nodeType&&F(/<[/\w]/g,e.data))return ti(e),!0;if(!(eA.tagCheck instanceof Function&&eA.tagCheck(l))&&(!ev[l]||eS[l])){if(!eS[l]&&tx(l)&&(ew.tagNameCheck instanceof RegExp&&F(ew.tagNameCheck,l)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(l)))return!1;if(eO&&!eW[l]){let t=w(e)||e.parentNode,l=j(e)||e.childNodes;if(l&&t){let a=l.length;for(let s=a-1;s>=0;--s){let a=b(l[s],!0);a.__removalCount=(e.__removalCount||0)+1,t.insertBefore(a,v(e))}}}return ti(e),!0}return e instanceof d&&!tr(e)||("noscript"===l||"noembed"===l||"noframes"===l)&&F(/<\/no(script|embed|frames)/i,e.innerHTML)?(ti(e),!0):(e$&&3===e.nodeType&&(t=e.textContent,E([ei,eo,em],e=>{t=M(t,e," ")}),e.textContent!==t&&(C(a.removed,{element:e.cloneNode()}),e.textContent=t)),tm(en.afterSanitizeElements,e,null),!1)},tg=function(e,t,l){if(eE[t]||eP&&("id"===t||"name"===t)&&(l in s||l in tt))return!1;if(eC&&!eE[t]&&F(ep,t));else if(eT&&F(eg,t));else if(eA.attributeCheck instanceof Function&&eA.attributeCheck(t,e));else if(!ej[t]||eE[t]){if(!(tx(e)&&(ew.tagNameCheck instanceof RegExp&&F(ew.tagNameCheck,e)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(e))&&(ew.attributeNameCheck instanceof RegExp&&F(ew.attributeNameCheck,t)||ew.attributeNameCheck instanceof Function&&ew.attributeNameCheck(t,e))||"is"===t&&ew.allowCustomizedBuiltInElements&&(ew.tagNameCheck instanceof RegExp&&F(ew.tagNameCheck,l)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(l))))return!1}else if(eZ[t]);else if(F(ek,M(l,ef,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===z(l,"data:")&&eq[e]);else if(eR&&!F(ex,M(l,ef,"")));else if(l)return!1;return!0},tx=function(e){return"annotation-xml"!==e&&L(e,eb)},tf=function(e){tm(en.beforeSanitizeAttributes,e,null);let{attributes:l}=e;if(!l||tu(e))return;let s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ej,forceKeepAttr:void 0},n=l.length;for(;n--;){let{name:r,namespaceURI:i,value:o}=l[n],c=e9(r),d="value"===r?o:D(o);if(s.attrName=c,s.attrValue=d,s.keepAttr=!0,s.forceKeepAttr=void 0,tm(en.uponSanitizeAttribute,e,s),d=s.attrValue,eB&&("id"===c||"name"===c)&&(to(r,e),d="user-content-"+d),eL&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)||"attributename"===c&&L(d,"href")){to(r,e);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr||!eI&&F(/\/>/i,d)){to(r,e);continue}e$&&E([ei,eo,em],e=>{d=M(d,e," ")});let u=e9(e.nodeName);if(!tg(u,c,d)){to(r,e);continue}if(t&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(i);else switch(g.getAttributeType(u,c)){case"TrustedHTML":d=t.createHTML(d);break;case"TrustedScriptURL":d=t.createScriptURL(d)}if(d!==o)try{i?e.setAttributeNS(i,r,d):e.setAttribute(r,d),tu(e)?ti(e):T(a.removed)}catch(t){to(r,e)}}tm(en.afterSanitizeAttributes,e,null)},tb=function e(t){let l=null,a=td(t);for(tm(en.beforeSanitizeShadowDOM,t,null);l=a.nextNode();)tm(en.uponSanitizeShadowNode,l,null),tp(l),tf(l),l.content instanceof i&&e(l.content);tm(en.afterSanitizeShadowDOM,t,null)};return a.sanitize=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,r=null,o=null,d=null;if((e1=!e)&&(e="<!-->"),"string"!=typeof e&&!th(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw G("dirty is not a string, aborting")}else throw G("toString is not a function");if(!a.isSupported)return e;
1if(ez||ta(l),a.removed=[],"string"==typeof e&&(eU=!1),eU){if(e.nodeName){let t=e9(e.nodeName);if(!ev[t]||eS[t])throw G("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(r=(s=tc("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?s=r:s.appendChild(r);else{if(!e_&&!e$&&!eM&&-1===e.indexOf("<"))return t&&eG?t.createHTML(e):e;if(!(s=tc(e)))return e_?null:eG?S:""}s&&eD&&ti(s.firstChild);let u=td(eU?e:s);for(;o=u.nextNode();)tp(o),tf(o),o.content instanceof i&&tb(o.content);if(eU)return e;if(e_){if(eF)for(d=el.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return(ej.shadowroot||ej.shadowrootmode)&&(d=es.call(n,d,!0)),d}let h=eM?s.outerHTML:s.innerHTML;return eM&&ev["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&F(ec,s.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+h),e$&&E([ei,eo,em],e=>{h=M(h,e," ")}),t&&eG?t.createHTML(h):h},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ta(e),ez=!0},a.clearConfig=function(){te=null,ez=!1},a.isValidAttribute=function(e,t,l){return te||ta({}),tg(e9(e),e9(t),l)},a.addHook=function(e,t){"function"==typeof t&&C(en[e],t)},a.removeHook=function(e,t){if(void 0!==t){let l=A(en[e],t);return -1===l?void 0:R(en[e],l,1)[0]}return T(en[e])},a.removeHooks=function(e){en[e]=[]},a.removeAllHooks=function(){en=eh()},a}();function ep(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var eg=ep(),ex={exec:()=>null};function ef(e,t=""){let l="string"==typeof e?e:e.source,a={replace:(e,t)=>{let s="string"==typeof t?t:t.source;return s=s.replace(ek.caret,"$1"),l=l.replace(e,s),a},getRegex:()=>new RegExp(l,t)};return a}var eb=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ek={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},ev=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ey=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ej=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,eN=ef(ej).replace(/bull/g,ey).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ew=ef(ej).replace(/bull/g,ey).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),eS=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,eE=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eA=ef(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",eE).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),eT=ef(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ey).getRegex(),eC="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",eR=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,eI=ef("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
1)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",eR).replace("tag",eC).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),e$=ef(eS).replace("hr",ev).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eC).getRegex(),eL={blockquote:ef(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",e$).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:eA,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ev,html:eI,lheading:eN,list:eT,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:e$,table:ex,text:/^[^\n]+/},eM=ef("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ev).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eC).getRegex(),ez={...eL,lheading:ew,table:eM,paragraph:ef(eS).replace("hr",ev).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eM).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eC).getRegex()},eD={...eL,html:ef("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",eR).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ex,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ef(eS).replace("hr",ev).replace("heading",` *#{1,6} *[^ 2]`).replace("lheading",eN).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},e_=/^( {2,}|\\)\n(?!\s*$)/,eF=/[\p{P}\p{S}]/u,eG=/[\s\p{P}\p{S}]/u,eP=/[^\s\p{P}\p{S}]/u,eB=ef(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,eG).getRegex(),eO=/(?!~)[\p{P}\p{S}]/u,eU=ef(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",eb?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),eH=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,eW=ef(eH,"u").replace(/punct/g,eF).getRegex(),eK=ef(eH,"u").replace(/punct/g,eO).getRegex(),eq="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",eV=ef(eq,"gu").replace(/notPunctSpace/g,eP).replace(/punctSpace/g,eG).replace(/punct/g,eF).getRegex(),eZ=ef(eq,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,eO).getRegex(),eY=ef("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,eP).replace(/punctSpace/g,eG).replace(/punct/g,eF).getRegex(),eX=ef(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,eF).getRegex(),eQ=ef("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,eP).replace(/punctSpace/g,eG).replace(/punct/g,eF).getRegex(),eJ=ef(/\\(punct)/,"gu").replace(/punct/g,eF).getRegex(),e0=ef(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),e1=ef(eR).replace("(?:-->|$)","-->").getRegex(),e2=ef("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",e1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),e3=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,e5=ef(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",e3).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),e4=ef(/^!?\[(label)\]\[(ref)\]/).replace("label",e3).replace("ref",eE).getRegex(),e7=ef(/^!?\[(ref)\](?:\[\])?/).replace("ref",eE).getRegex(),e6=ef("reflink|nolink(?!\\()","g").replace("reflink",e4).replace("nolink",e7).getRegex(),e8=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,e9={_backpedal:ex,anyPunctuation:eJ,autolink:e0,blockSkip:eU,br:e_,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:ex,delLDelim:ex,delRDelim:ex,emStrongLDelim:eW,emStrongRDelimAst:eV,emStrongRDelimUnd:eY,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:e5,nolink:e7,punctuation:eB,reflink:e4,reflinkSearch:e6,tag:e2,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:ex},te={...e9,link:ef(/^!?\[(label)\]\((.*?)\)/).replace("label",e3).getRegex(),reflink:ef(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",e3).getRegex()},tt={...e9,emStrongRDelimAst:eZ,emStrongLDelim:eK,delLDelim:eX,delRDelim:eQ,url:ef(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",e8).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ef(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",e8).getRegex()},tl={...tt,br:ef(e_).replace("{2,}","*").getRegex(),text:ef(tt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ta={normal:eL,gfm:ez,pedantic:eD},ts={normal:e9,gfm:tt,breaks:tl,pedantic:te},tn={"&":"&","<":"<",">":">",'"':""","'":"'"},tr=e=>tn[e];function ti(e,t){if(t){if(ek.escapeTest.test(e))return e.replace(ek.escapeReplace,tr)}else if(ek.escapeTestNoEncode.test(e))return e.replace(ek.escapeReplaceNoEncode,tr);return e}function to(e){try{e=encodeURI(e).replace(ek.percentDecode,"%")}catch{return null}return e}function tc(e,t){let l=e.replace(ek.findPipe,(e,t,l)=>{let a=!1,s=t;for(;--s>=0&&"\\"===l[s];)a=!a;return a?"|":" |"}).split(ek.splitPipe),a=0;if(l[0].trim()||l.shift(),l.length>0&&!l.at(-1)?.trim()&&l.pop(),t)if(l.length>t)l.splice(t);else for(;l.length<t;)l.push("");for(;a<l.length;a++)l[a]=l[a].trim().replace(ek.slashPipe,"|");return l}function td(e,t,l){let a=e.length;if(0===a)return"";let s=0;for(;s<a;){let n=e.charAt(a-s-1);if(n!==t||l)if(n!==t&&l)s++;else break;else s++}return e.slice(0,a-s)}function tu(e,t,l,a,s){let n=t.href,r=t.title||null,i=e[1].replace(s.other.outputLinkReplace,"$1");a.state.inLink=!0;let o={type:"!"===e[0].charAt(0)?"image":"link",raw:l,href:n,title:r,text:i,tokens:a.inlineTokens(i)};return a.state.inLink=!1,o}var th=class{options;rules;lexer;constructor(e){this.options=e||eg}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:td(e,` 3`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],l=function(e,t,l){let a=e.match(l.other.indentCodeCompensation);if(null===a)return t;let s=a[1];return t.split(` 4`).map(e=>{let t=e.match(l.other.beginningSpace);if(null===t)return e;let[a]=t;return a.length>=s.length?e.slice(s.length):e}).join(` 5`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:l}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=td(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:td(t[0],` 6`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=td(t[0],` 7`).split(` 8`),l="",a="",s=[];for(;e.length>0;){let t=!1,n=[],r;for(r=0;r<e.length;r++)if(this.rules.other.blockquoteStart.test(e[r]))n.push(e[r]),t=!0;else if(t)break;else n.push(e[r]);e=e.slice(r);let i=n.join(` 9`),o=i.replace(this.rules.other.blockquoteSetextReplace,` 10 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");l=l?`${l} 11${i}`:i,a=a?`${a} 12${o}`:o;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,s,!0),this.lexer.state.top=c,
120===e.length)break;let d=s.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let t=d.raw+` 13`+e.join(` 14`),n=this.blockquote(t);s[s.length-1]=n,l=l.substring(0,l.length-d.raw.length)+n.raw,a=a.substring(0,a.length-d.text.length)+n.text;break}if(d?.type==="list"){let t=d.raw+` 15`+e.join(` 16`),n=this.list(t);s[s.length-1]=n,l=l.substring(0,l.length-d.raw.length)+n.raw,a=a.substring(0,a.length-d.raw.length)+n.raw,e=t.substring(s.at(-1).raw.length).split(` 17`);continue}}return{type:"blockquote",raw:l,tokens:s,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let l=t[1].trim(),a=l.length>1,s={type:"list",raw:"",ordered:a,start:a?+l.slice(0,-1):"",loose:!1,items:[]};l=a?`\\d{1,9}\\${l.slice(-1)}`:`\\${l}`,this.options.pedantic&&(l=a?l:"[*+-]");let n=this.rules.other.listItemRegex(l),r=!1;for(;e;){let l=!1,a="",i="";if(!(t=n.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let o=function(e,t=0){let l=t,a="";for(let t of e)if(" "===t){let e=4-l%4;a+=" ".repeat(e),l+=e}else a+=t,l++;return a}(t[2].split(` 18`,1)[0],t[1].length),c=e.split(` 19`,1)[0],d=!o.trim(),u=0;if(this.options.pedantic?(u=2,i=o.trimStart()):d?u=t[1].length+1:(u=(u=o.search(this.rules.other.nonSpaceChar))>4?1:u,i=o.slice(u),u+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(a+=c+` 20`,e=e.substring(c.length+1),l=!0),!l){let t=this.rules.other.nextBulletRegex(u),l=this.rules.other.hrRegex(u),s=this.rules.other.fencesBeginRegex(u),n=this.rules.other.headingBeginRegex(u),r=this.rules.other.htmlBeginRegex(u),h=this.rules.other.blockquoteBeginRegex(u);for(;e;){let m=e.split(` 21`,1)[0],p;if(c=m,p=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||n.test(c)||r.test(c)||h.test(c)||t.test(c)||l.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())i+=` 22`+p.slice(u);else{if(d||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(o)||n.test(o)||l.test(o))break;i+=` 23`+c}d=!c.trim(),a+=m+` 24`,e=e.substring(m.length+1),o=p.slice(u)}}s.loose||(r?s.loose=!0:this.rules.other.doubleBlankLine.test(a)&&(r=!0)),s.items.push({type:"list_item",raw:a,task:!!this.options.gfm&&this.rules.other.listIsTask.test(i),loose:!1,text:i,tokens:[]}),s.raw+=a}let i=s.items.at(-1);if(!i)return;for(let e of(i.raw=i.raw.trimEnd(),i.text=i.text.trimEnd(),s.raw=s.raw.trimEnd(),s.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let l={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=l.checked,s.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=l.raw+e.tokens[0].raw,e.tokens[0].text=l.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(l)):e.tokens.unshift({type:"paragraph",raw:l.raw,text:l.raw,tokens:[l]}):e.tokens.unshift(l)}}if(!s.loose){let t=e.tokens.filter(e=>"space"===e.type);s.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(s.loose)for(let e of s.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:l,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let l=tc(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 25`):[],n={type:"table",raw:t[0],header:[],align:[],rows:[]};if(l.length===a.length){for(let e of a)this.rules.other.tableAlignRight.test(e)?n.align.push("right"):this.rules.other.tableAlignCenter.test(e)?n.align.push("center"):this.rules.other.tableAlignLeft.test(e)?n.align.push("left"):n.align.push(null);for(let e=0;e<l.length;e++)n.header.push({text:l[e],tokens:this.lexer.inline(l[e]),header:!0,align:n.align[e]});for(let e of s)n.rows.push(tc(e,n.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:n.align[t]})));return n}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 26`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=td(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let l=0;l<e.length;l++)if("\\"===e[l])l++;else if("("===e[l])t++;else if(")"===e[l]&&--t<0)return l;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let l=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let l=t[2],a="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(l);e&&(l=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(l=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?l.slice(1):l.slice(1,-1)),tu(t,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let l;if((l=this.rules.inline.reflink.exec(e))||(l=this.rules.inline.nolink.exec(e))){let e=t[(l[2]||l[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=l[0].charAt(0);return{type:"text",raw:e,text:e}}return tu(l,e,l[0],this.lexer,this.rules)}}emStrong(e,t,l=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||!a[1]&&!a[2]&&!a[3]&&!a[4]||a[4]&&l.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[3])||!l||this.rules.inline.punctuation.exec(l))){let l=[...a[0]].length-1,s,n,r=l,i=0,o="*"===a[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+l);
26null!=(a=o.exec(t));){if(!(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]))continue;if(n=[...s].length,a[3]||a[4]){r+=n;continue}if((a[5]||a[6])&&l%3&&!((l+n)%3)){i+=n;continue}if((r-=n)>0)continue;n=Math.min(n,n+r+i);let t=[...a[0]][0].length,o=e.slice(0,l+a.index+t+n);if(Math.min(l,n)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(e),a=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return l&&a&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,l=""){let a=this.rules.inline.delLDelim.exec(e);if(a&&(!a[1]||!l||this.rules.inline.punctuation.exec(l))){let l=[...a[0]].length-1,s,n,r=l,i=this.rules.inline.delRDelim;for(i.lastIndex=0,t=t.slice(-1*e.length+l);null!=(a=i.exec(t));){if(!(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6])||(n=[...s].length)!==l)continue;if(a[3]||a[4]){r+=n;continue}if((r-=n)>0)continue;n=Math.min(n,n+r);let t=[...a[0]][0].length,i=e.slice(0,l+a.index+t+n),o=i.slice(l,-l);return{type:"del",raw:i,text:o,tokens:this.lexer.inlineTokens(o)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,l;return l="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:l,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,l;if("@"===t[2])l="mailto:"+(e=t[0]);else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0])e=t[0],l="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:l,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},tm=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||eg,this.options.tokenizer=this.options.tokenizer||new th,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:ek,block:ta.normal,inline:ts.normal};this.options.pedantic?(t.block=ta.pedantic,t.inline=ts.pedantic):this.options.gfm&&(t.block=ta.gfm,this.options.breaks?t.inline=ts.breaks:t.inline=ts.gfm),this.tokenizer.rules=t}static get rules(){return{block:ta,inline:ts}}static lex(t,l){return new e(l).lex(t)}static lexInline(t,l){return new e(l).inlineTokens(t)}lex(e){e=e.replace(ek.carriageReturn,` 27`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],l=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ek.tabCharGlobal," ").replace(ek.spaceLine,""));e;){let a;if(this.options.extensions?.block?.some(l=>!!(a=l.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let l=t.at(-1);1===a.raw.length&&void 0!==l?l.raw+=` 28`:t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let l=t.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(` 29`)?"":` 30`)+a.raw,l.text+=` 31`+a.text,this.inlineQueue.at(-1).src=l.text):t.push(a);continue}if((a=this.tokenizer.fences(e))||(a=this.tokenizer.heading(e))||(a=this.tokenizer.hr(e))||(a=this.tokenizer.blockquote(e))||(a=this.tokenizer.list(e))||(a=this.tokenizer.html(e))){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let l=t.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(` 32`)?"":` 33`)+a.raw,l.text+=` 34`+a.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}
34,t.push(a));continue}if((a=this.tokenizer.table(e))||(a=this.tokenizer.lheading(e))){e=e.substring(a.raw.length),t.push(a);continue}let s=e;if(this.options.extensions?.startBlock){let t=1/0,l=e.slice(1),a;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(a=e.call({lexer:this},l))&&a>=0&&(t=Math.min(t,a))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(a=this.tokenizer.paragraph(s))){let n=t.at(-1);l&&n?.type==="paragraph"?(n.raw+=(n.raw.endsWith(` 35`)?"":` 36`)+a.raw,n.text+=` 37`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(a),l=s.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let l=t.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(` 38`)?"":` 39`)+a.raw,l.text+=` 40`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):t.push(a);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let l;this.tokenizer.lexer=this;let a=e,s=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(a));)l=s[2]?s[2].length:0,a=a.slice(0,s.index+l)+"["+"a".repeat(s[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let n=!1,r="";for(;e;){let l;if(n||(r=""),n=!1,this.options.extensions?.inline?.some(a=>!!(l=a.call({lexer:this},e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)))continue;if((l=this.tokenizer.escape(e))||(l=this.tokenizer.tag(e))||(l=this.tokenizer.link(e))){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let a=t.at(-1);"text"===l.type&&a?.type==="text"?(a.raw+=l.raw,a.text+=l.text):t.push(l);continue}if((l=this.tokenizer.emStrong(e,a,r))||(l=this.tokenizer.codespan(e))||(l=this.tokenizer.br(e))||(l=this.tokenizer.del(e,a,r))||(l=this.tokenizer.autolink(e))||!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),t.push(l);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,l=e.slice(1),a;this.options.extensions.startInline.forEach(e=>{"number"==typeof(a=e.call({lexer:this},l))&&a>=0&&(t=Math.min(t,a))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(l=this.tokenizer.inlineText(s)){e=e.substring(l.raw.length),"_"!==l.raw.slice(-1)&&(r=l.raw.slice(-1)),n=!0;let a=t.at(-1);a?.type==="text"?(a.raw+=l.raw,a.text+=l.text):t.push(l);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},tp=class{options;parser;constructor(e){this.options=e||eg}space(e){return""}code({text:e,lang:t,escaped:l}){let a=(t||"").match(ek.notSpaceStart)?.[0],s=e.replace(ek.endingNewline,"")+` 41`;return a?'<pre><code class="language-'+ti(a)+'">'+(l?s:ti(s,!0))+`</code></pre> 42`:"<pre><code>"+(l?s:ti(s,!0))+`</code></pre> 43`}blockquote({tokens:e}){return`<blockquote> 44${this.parser.parse(e)}</blockquote> 45`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 46`}hr(e){return`<hr> 47`}list(e){let t=e.ordered,l=e.start,a="";for(let t=0;t<e.items.length;t++){let l=e.items[t];a+=this.listitem(l)}let s=t?"ol":"ul";return"<"+s+(t&&1!==l?' start="'+l+'"':"")+`> 48`+a+"</"+s+`> 49`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li> 50`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 51`}table(e){let t="",l="";for(let t=0;t<e.header.length;t++)l+=this.tablecell(e.header[t]);t+=this.tablerow({text:l});let a="";for(let t=0;t<e.rows.length;t++){let s=e.rows[t];l="";for(let e=0;e<s.length;e++)l+=this.tablecell(s[e]);a+=this.tablerow({text:l})}return a&&(a=`<tbody>${a}</tbody>`),`<table> 52<thead> 53`+t+`</thead> 54`+a+`</table> 55`}tablerow({text:e}){return`<tr> 56${e}</tr> 57`}tablecell(e){let t=this.parser.parseInline(e.tokens),l=e.header?"th":"td";return(e.align?`<${l} align="${e.align}">`:`<${l}>`)+t+`</${l}> 58`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ti(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:l}){let a=this.parser.parseInline(l),s=to(e);if(null===s)return a;let n='<a href="'+(e=s)+'"';return t&&(n+=' title="'+ti(t)+'"'),n+=">"+a+"</a>"}image({href:e,title:t,text:l,tokens:a}){a&&(l=this.parser.parseInline(a,this.parser.textRenderer));let s=to(e);if(null===s)return ti(l);e=s;let n=`<img src="${e}" alt="${ti(l)}"`;return t&&(n+=` title="${ti(t)}"`),n+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ti(e.text)}},tg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},tx=class e{options;renderer;textRenderer;constructor(e){this.options=e||eg,this.options.renderer=this.options.renderer||new tp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tg}static parse(t,l){return new e(l).parse(t)}static parseInline(t,l){return new e(l).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let l=0;l<e.length;l++){let a=e[l];
58if(this.options.extensions?.renderers?.[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){t+=e||"";continue}}switch(a.type){case"space":t+=this.renderer.space(a);break;case"hr":t+=this.renderer.hr(a);break;case"heading":t+=this.renderer.heading(a);break;case"code":t+=this.renderer.code(a);break;case"table":t+=this.renderer.table(a);break;case"blockquote":t+=this.renderer.blockquote(a);break;case"list":t+=this.renderer.list(a);break;case"checkbox":t+=this.renderer.checkbox(a);break;case"html":t+=this.renderer.html(a);break;case"def":t+=this.renderer.def(a);break;case"paragraph":t+=this.renderer.paragraph(a);break;case"text":t+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let l="";for(let a=0;a<e.length;a++){let s=e[a];if(this.options.extensions?.renderers?.[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){l+=e||"";continue}}switch(s.type){case"escape":case"text":l+=t.text(s);break;case"html":l+=t.html(s);break;case"link":l+=t.link(s);break;case"image":l+=t.image(s);break;case"checkbox":l+=t.checkbox(s);break;case"strong":l+=t.strong(s);break;case"em":l+=t.em(s);break;case"codespan":l+=t.codespan(s);break;case"br":l+=t.br(s);break;case"del":l+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return l}},tf=class{options;block;constructor(e){this.options=e||eg}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?tm.lex:tm.lexInline}provideParser(){return this.block?tx.parse:tx.parseInline}},tb=new class{defaults=ep();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tx;Renderer=tp;TextRenderer=tg;Lexer=tm;Tokenizer=th;Hooks=tf;constructor(...e){this.use(...e)}walkTokens(e,t){let l=[];for(let a of e)switch(l=l.concat(t.call(this,a)),a.type){case"table":for(let e of a.header)l=l.concat(this.walkTokens(e.tokens,t));for(let e of a.rows)for(let a of e)l=l.concat(this.walkTokens(a.tokens,t));break;case"list":l=l.concat(this.walkTokens(a.items,t));break;default:{let e=a;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(a=>{let s=e[a].flat(1/0);l=l.concat(this.walkTokens(s,t))}):e.tokens&&(l=l.concat(this.walkTokens(e.tokens,t)))}}return l}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let l={...e};if(l.async=this.defaults.async||l.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let l=t.renderers[e.name];l?t.renderers[e.name]=function(...t){let a=e.renderer.apply(this,t);return!1===a&&(a=l.apply(this,t)),a}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let l=t[e.level];l?l.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),l.extensions=t),e.renderer){let t=this.defaults.renderer||new tp(this.defaults);for(let l in e.renderer){if(!(l in t))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let a=e.renderer[l],s=t[l];t[l]=(...e)=>{let l=a.apply(t,e);return!1===l&&(l=s.apply(t,e)),l||""}}l.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new th(this.defaults);for(let l in e.tokenizer){if(!(l in t))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let a=e.tokenizer[l],s=t[l];t[l]=(...e)=>{let l=a.apply(t,e);return!1===l&&(l=s.apply(t,e)),l}}l.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new tf;for(let l in e.hooks){if(!(l in t))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let a=e.hooks[l],s=t[l];tf.passThroughHooks.has(l)?t[l]=e=>{if(this.defaults.async&&tf.passThroughHooksRespectAsync.has(l))return(async()=>{let l=await a.call(t,e);return s.call(t,l)})();let n=a.call(t,e);return s.call(t,n)}:t[l]=(...e)=>{if(this.defaults.async)return(async()=>{let l=await a.apply(t,e);
58return!1===l&&(l=await s.apply(t,e)),l})();let l=a.apply(t,e);return!1===l&&(l=s.apply(t,e)),l}}l.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,a=e.walkTokens;l.walkTokens=function(e){let l=[];return l.push(a.call(this,e)),t&&(l=l.concat(t.call(this,e))),l}}this.defaults={...this.defaults,...l}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return tm.lex(e,t??this.defaults)}parser(e,t){return tx.parse(e,t??this.defaults)}parseMarkdown(e){return(t,l)=>{let a={...l},s={...this.defaults,...a},n=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===a.async)return n(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return n(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return n(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let l=s.hooks?await s.hooks.preprocess(t):t,a=await (s.hooks?await s.hooks.provideLexer():e?tm.lex:tm.lexInline)(l,s),n=s.hooks?await s.hooks.processAllTokens(a):a;s.walkTokens&&await Promise.all(this.walkTokens(n,s.walkTokens));let r=await (s.hooks?await s.hooks.provideParser():e?tx.parse:tx.parseInline)(n,s);return s.hooks?await s.hooks.postprocess(r):r})().catch(n);try{s.hooks&&(t=s.hooks.preprocess(t));let l=(s.hooks?s.hooks.provideLexer():e?tm.lex:tm.lexInline)(t,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let a=(s.hooks?s.hooks.provideParser():e?tx.parse:tx.parseInline)(l,s);return s.hooks&&(a=s.hooks.postprocess(a)),a}catch(e){return n(e)}}}onError(e,t){return l=>{if(l.message+=` 59Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+ti(l.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(l);throw l}}};function tk(e,t){return tb.parse(e,t)}tk.options=tk.setOptions=function(e){return tb.setOptions(e),tk.defaults=tb.defaults,eg=tk.defaults,tk},tk.getDefaults=ep,tk.defaults=eg,tk.use=function(...e){return tb.use(...e),tk.defaults=tb.defaults,eg=tk.defaults,tk},tk.walkTokens=function(e,t){return tb.walkTokens(e,t)},tk.parseInline=tb.parseInline,tk.Parser=tx,tk.parser=tx.parse,tk.Renderer=tp,tk.TextRenderer=tg,tk.Lexer=tm,tk.lexer=tm.lex,tk.Tokenizer=th,tk.Hooks=tf,tk.parse=tk,tk.options,tk.setOptions,tk.use,tk.walkTokens,tk.parseInline,tx.parse,tm.lex;let tv=({content:e,className:t})=>{let l=(0,g.useMemo)(()=>{tk.setOptions({breaks:!0,gfm:!0});let t=tk.parse(e||"");return em.sanitize(t,{ALLOWED_TAGS:["p","br","strong","em","u","h1","h2","h3","h4","h5","h6","ul","ol","li","a","blockquote","code","pre","hr","table","thead","tbody","tr","th","td","img","div","span"],ALLOWED_ATTR:["href","target","rel","src","alt","title","class"]})},[e]);return l?(0,a.jsx)("div",{className:t,dangerouslySetInnerHTML:{__html:l}}):null};function ty({project:e,projectId:t,onProjectChange:l}){let s=(0,u.useProjectStore)(),[n,r]=(0,g.useState)(!1),[i,o]=(0,g.useState)(!1),[c,d]=(0,g.useState)(null),[x,f]=(0,g.useState)(!1),[b,k]=(0,g.useState)(!1),v=(e.aiDescription||"").trim(),y=(e.description||"").trim(),j=!!(v&&v!==y),N=!!(v&&!b&&(j||x)),w=(0,g.useCallback)(async()=>{if(t&&!n){d(null),k(!1),r(!0);try{let e=await fetch(`/api/projects/${encodeURIComponent(t)}/ai/sales-description`,{method:"POST",credentials:"include"});if(!e.ok){let t="KI-Beschreibung konnte nicht erstellt werden.";try{let l=await e.json();"string"==typeof l?.error&&l.error.trim()&&(t=l.error)}catch{}throw Error(t)}let a=await e.json();await s.updateProjectInStore(a),l?.(a),f(!0)}catch(e){d(e instanceof Error?e.message:"KI-Beschreibung konnte nicht erstellt werden.")}finally{r(!1)}}},[n,l,t,s]),S=(0,g.useCallback)(async()=>{if(v&&t&&!i)try{d(null),o(!0);let e=await s.updateProject(t,{description:v.slice(0,2e3)});if(!e)throw Error("Projekt konnte nicht aktualisiert werden.");l?.(e),f(!1),k(!0)}catch(e){d(e instanceof Error?e.message:"Projekt konnte nicht aktualisiert werden.")}finally{o(!1)}},[v,i,l,t,s]);return(0,a.jsxs)("div",{className:"mt-4 space-y-3 print:hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>void w(),disabled:n,className:"inline-flex items-center gap-2 rounded-lg border border-slate-200 bg-white px-3 py-2 text-xs font-semibold text-slate-700 shadow-sm transition hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-60",children:[n?(0,a.jsx)(m.Loader2,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(p.Sparkles,{className:"h-4 w-4"}),v?"KI-Beschreibung neu generieren":"KI-Beschreibung erstellen"]}),c?(0,a.jsx)("p",{className:"text-sm text-red-600",children:c}):null,N?(0,a.jsxs)("div",{className:"rounded-xl border border-blue-200 bg-blue-50 p-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-blue-700",children:"KI-Verkaufsbeschreibung"}),(0,a.jsxs)("button",{type:"button",onClick:()=>void S(),disabled:i,className:"inline-flex items-center justify-center gap-2 rounded-lg border border-blue-200 bg-white px-2 py-1 text-xs font-medium text-blue-700 shadow-sm transition hover:bg-blue-50 disabled:cursor-not-allowed disabled:opacity-60",children:[i?(0,a.jsx)(m.Loader2,{className:"h-3.5 w-3.5 animate-spin"}):(0,a.jsx)(h.CheckCircle2,{className:"h-3.5 w-3.5"}),"Akzeptieren"]})]}),(0,a.jsx)(tv,{content:v,className:"prose prose-sm mt-2 max-w-none text-slate-700"})]}):null]})}var tj=e.i(972820),tN=e.i(257468),tw=e.i(541934),tS=e.i(235387),tE=e.i(904940);let tA=e=>!e||"object"!=typeof e||Array.isArray(e)?{}:e,tT=e=>null!=e&&("string"==typeof e?e.trim().length>0:!Array.isArray(e)||e.length>0),tC=(...e)=>{for(let t of e)if(tT(t))return t},tR=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return null;let t=e.trim().replace(/\s/g,"");if(!t)return null;t.includes(",")&&t.includes(".")?t=t.lastIndexOf(",")>t.lastIndexOf(".")?t.replace(/\./g,"").replace(",","."):t.replace(/,/g,""):t.includes(",")?t=t.replace(",","."):t.includes(".")&&(t.match(/\./g)||[]).length>1&&(t=t.replace(/\./g,""));
59let l=Number(t=t.replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:null},tI=(e,t)=>{let l=tR(e);if(null===l)return null;let a=l.toLocaleString("de-DE",{maximumFractionDigits:2});return t?`${a} ${t}`:a},t$=e=>{let t=tR(e);return null===t?null:String(Math.round(t))},tL=e=>{let t=tR(e);return null===t?null:new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(t)},tM={EINFAMILIENHAUS:"Einfamilienhaus",MEHRFAMILIENHAUS:"Mehrfamilienhaus",DOPPELHAUSHAELFTE:"Doppelhaushälfte",REIHENHAUS:"Reihenhaus",REIHENMITTELHAUS:"Reihenmittelhaus",REIHENENDHAUS:"Reihenendhaus",ETAGENWOHNUNG:"Etagenwohnung",EIGENTUMSWOHNUNG:"Eigentumswohnung",WOHNUNG:"Wohnung",DACHGESCHOSSWOHNUNG:"Dachgeschosswohnung",ERDGESCHOSSWOHNUNG:"Erdgeschosswohnung",PENTHOUSE:"Penthouse",MAISONETTE:"Maisonette",LOFT:"Loft",VILLA:"Villa",BUNGALOW:"Bungalow",GRUNDSTUECK:"Grundstück",STELLPLATZ:"Stellplatz",GARAGE:"Garage",KAUF:"Kauf",MIETE:"Miete",FESTPREIS:"Festpreis",VERHANDLUNGSBASIS:"Verhandlungsbasis",AUF_ANFRAGE:"Auf Anfrage",SOFORT:"Sofort",NACH_VEREINBARUNG:"Nach Vereinbarung",ERSTBEZUG:"Erstbezug",NEUWERTIG:"Neuwertig",GEPFLEGT:"Gepflegt",GUT:"Gut",MODERNISIERT:"Modernisiert",RENOVIERUNGSBEDUERFTIG:"Renovierungsbedürftig",SANIERUNGSBEDUERFTIG:"Sanierungsbedürftig",EINFACH:"Einfach",NORMAL:"Normal",GEHOBEN:"Gehoben",LUXUS:"Luxus",MASSIV:"Massivbauweise",MASSIVBAU:"Massivbauweise",FERTIGBAU:"Fertigbauweise",HOLZBAU:"Holzbauweise",STAHLBETON:"Stahlbeton",SEHR_GUT:"Sehr gut",BEFRIEDIGEND:"Befriedigend",NEBENSTRASSE:"NebenstraÃe",FUSSGAENGERZONE:"FuÃgängerzone",DOPPEL:"Doppelverglasung",WOHNKUECHE:"Wohnküche",LUXURIOES:"Luxuriös",LEBHAFT:"Lebhaft",LTE:"LTE","5G":"5G",PARKETT:"Parkett",LAMINAT:"Laminat",FLIESEN:"Fliesen",TEPPICH:"Teppich",VINYL:"Vinyl",NATURSTEIN:"Naturstein",FERTIGHAUS:"Fertighaus",HOLZ:"Holz",HOLZ_ALUMINIUM:"Holz/Aluminium",KUNSTSTOFF:"Kunststoff",ALUMINIUM:"Aluminium",EINFACH_VERGLAST:"Einfachverglasung",ZWEIFACH:"Zweifachverglasung",DREIFACH:"Dreifachverglasung",OFFEN:"Offene Küche",GESCHLOSSEN:"Geschlossene Küche",KOCHNISCHE:"Kochnische",NORD:"Nord",NORDOST:"Nordost",OST:"Ost",SUEDOST:"Südost",SUED:"Süd",SUEDWEST:"Südwest",WEST:"West",NORDWEST:"Nordwest",BALKON:"Balkon",TERRASSE:"Terrasse",LOGGIA:"Loggia",DACHTERRASSE:"Dachterrasse",TIEFGARAGE:"Tiefgarage",CARPORT:"Carport",AUSSENSTELLPLATZ:"AuÃenstellplatz",DUPLEX:"Duplex-Stellplatz",GLASFASER:"Glasfaser",KABEL:"Kabel",DSL:"DSL",SEHR_RUHIG:"Sehr ruhig",RUHIG:"Ruhig",MITTEL:"Mittel",LAUT:"Laut",ANLIEGERSTRASSE:"AnliegerstraÃe",WOHNSTRASSE:"WohnstraÃe",HAUPTSTRASSE:"HauptstraÃe",SPIELSTRASSE:"SpielstraÃe",SACKGASSE:"Sackgasse",ALLEINEIGENTUM:"Alleineigentum",TEILEIGENTUM:"Teileigentum",GEMEINSCHAFTSEIGENTUM:"Gemeinschaftseigentum",VERBRAUCHSAUSWEIS:"Verbrauchsausweis",BEDARFSAUSWEIS:"Bedarfsausweis",ZENTRALHEIZUNG:"Zentralheizung",ETAGENHEIZUNG:"Etagenheizung",FUSSBODENHEIZUNG:"FuÃbodenheizung",FERNWAERME:"Fernwärme",WAERMEPUMPE:"Wärmepumpe",GASHEIZUNG:"Gasheizung",GAS:"Gas",OELHEIZUNG:"Ãlheizung",OEL:"Ãl",PELLETS:"Pellets",STROM:"Strom",SOLAR:"Solar",HEIZKOERPER:"Heizkörper",KLASSISCH:"Klassisch",MODERN:"Modern",JUGENDSTIL:"Jugendstil",GRUENDERZEIT:"Gründerzeit",BAUHAUS:"Bauhaus",LANDHAUS:"Landhaus"},tz=e=>{if(!tT(e))return null;if(Array.isArray(e)){let t=e.map(e=>tz(e)).filter(Boolean);return t.length>0?t.join(", "):null}if(e&&"object"==typeof e)return tz(e.title||e.value||e.id);let t=String(e).trim(),l=tM[t.toUpperCase()];return l||(/\p{Ll}/u.test(t)&&!t.includes("_")?t:t.replace(/_/g," ").toLowerCase().replace(/(^|[\s/(-])(\p{Ll})/gu,(e,t,l)=>t+l.toUpperCase()).replace(/Doppelhaushaelfte/g,"Doppelhaushälfte").replace(/Grundstueck/g,"Grundstück"))},tD=e=>e&&e.replace(/\.(pdf|jpe?g|png|webp|heic|docx?|xlsx?)$/i,"").replace(/[_]+/g," ").replace(/(\p{Ll})(\d{2,})/gu,"$1 $2").replace(/\s{2,}/g," ").trim()||"Dokument",t_=e=>tT(e)?String(e).trim():null,tF=(e,t={})=>"boolean"!=typeof e?null:e?"Ja":t.showNo?"Nein":null,tG=e=>{if("string"!=typeof e||!e.trim())return null;let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("de-DE")},tP=e=>{if("string"==typeof e)return e.trim()||null;let t=tA(tA(e).root),l=Array.isArray(t.children)?t.children:null;if(!l)return null;let a=e=>{let t=tA(e);return"string"==typeof t.text?t.text:(Array.isArray(t.children)?t.children:[]).map(a).join("")},s=l.map(a).map(e=>
59e.trim()).filter(Boolean);return s.length>0?s.join("\n\n"):null},tB=[[/wohn.*k(ü|ue)che|k(ü|ue)che.*wohn/i,"Wohnen und Küche"],[/wohnzimmer|wohnen|wohnbereich|living/i,"Wohnzimmer"],[/k(ü|ue)che|kitchen/i,"Küche"],[/esszimmer|essen|dining/i,"Essbereich"],[/schlaf|bedroom/i,"Schlafzimmer"],[/kinder/i,"Kinderzimmer"],[/arbeits|b(ü|ue)ro|office/i,"Arbeitszimmer"],[/g(ä|ae)ste.?wc|gaeste/i,"Gäste-WC"],[/bad|bath|dusche/i,"Badezimmer"],[/loggia/i,"Loggia"],[/balkon|balcony/i,"Balkon"],[/terrasse|terrace/i,"Terrasse"],[/garten|garden/i,"Garten"],[/flur|diele|eingang|entree|hallway/i,"Flur"],[/keller|cellar/i,"Keller"],[/garage|stellplatz|carport|parking/i,"Stellplatz"],[/dach|attic/i,"Dachgeschoss"],[/treppe|stairs/i,"Treppenhaus"],[/aussen|auÃen|fassade|haus|front|exterior|strasse|straÃe/i,"AuÃenansicht"],[/aussicht|blick|view/i,"Aussicht"],[/grundriss|floor/i,"Grundriss"]],tO=/^(upload aus projektwizard|bild \d+|image|img)/i;function tU(e,t={}){let l=t.isPublicAccess??!1,a=tA(e.notaryData?.cd),n=tA(a.op),o=tA(n.addressDetails),c=tA(n.prices),d=tA(n.areas),u=tA(n.additionalInfo),h=tA(n.energy),m=tA(n.equipment),p=tA(n.travelTimes),g=tA(n.sale),x=tA(n.descriptionBlocks),f=tA(n.website),b=e.property?.basicData,k=b?.address,v=b?.rooms,y=b?.areas,j=b?.availability,N=e.property?.buildingDetails,w=e.property?.interiorFeatures,S=e.property?.exteriorArea,E=e.property?.technical,A=E?.energyCertificate,T=tA(A),C=e.property?.legalAndFinancial,R=e.property?.locationDetails,I=R?.infrastructure,$=e.property?.locationInfrastructure,L=tA($?.travelTimes),M=e.notaryData?.property,z=e.notaryData?.transaction,D=e.property?.propertyDescription,_=(e.images||[]).filter(e=>tT(e?.url||e?.filename)).map(e=>({...e,caption:(e=>{let t=e.alt&&!tO.test(e.alt.trim())?e.alt.trim():"";for(let l of[t,(e.filename||"").replace(/\.[a-z0-9]+$/i,"").replace(/%20/g," ")])if(l){for(let[e,t]of tB)if(e.test(l))return t}return t&&t.length<=40&&!/ - demo$/i.test(t)?t:t&&/ - demo$/i.test(t)?t.replace(/ - demo$/i,"").replace(/\s*\(.*\)$/,""):null})(e)})),F=(0,tS.getListingPrice)(e,[b?.price?.value,c.purchasePrice])??(0,tS.parsePriceNumber)(z?.purchasePrice),G=(t_(e.description)||tP(D?.mainDescription)||t_(x.objectDescription))?.replace(/([^\n])\n(?=[^\n\s*#>|-])/g,"$1\n\n")??null,P=t_(tC(b?.listingId,n.listingId)),B=tz(tC(b?.objectType,n.objectType)),O=tz(tC(b?.marketingType,n.marketingType)),U=!/MIETE/i.test(String(tC(b?.marketingType,n.marketingType)??"")),H=k?.showAddress!==!1||!l,W=[k?.street,k?.houseNumber].filter(Boolean).join(" "),K=[k?.zipCode,k?.city].filter(Boolean).join(" "),q=t_(k?.district??o.region),V=[K,q].filter(Boolean).join(", "),Z=H?[W,K].filter(Boolean).join(", "):V,Y=tR(tC(k?.latitude,e.location?.coordinates?.lat)),X=tR(tC(k?.longitude,e.location?.coordinates?.lng)),Q=k||e.location?{...k||{},street:t_(tC(k?.street,e.location?.address))||void 0,zipCode:t_(tC(k?.zipCode,e.location?.postalCode))||void 0,city:t_(tC(k?.city,e.location?.city))||void 0,country:t_(tC(k?.country,e.location?.country))||void 0,...null!==Y&&null!==X?{latitude:Y,longitude:X}:{}}:null,J=!!(Q&&(tT(Q.latitude)||tT(Q.longitude)||tT(Q.street)||tT(Q.zipCode)||tT(Q.city))),ee=b?.price?.priceType==="AUF_ANFRAGE"||!0===c.priceOnRequest?"Auf Anfrage":b?.price?.priceType==="VERHANDLUNGSBASIS"||!0===c.priceNegotiable?"Verhandlungsbasis":b?.price?.priceType==="FESTPREIS"?"Festpreis":null,et=tR(tC(y?.livingArea,d.livingArea)),el=tR(tC(y?.usableArea,d.usableLivingArea)),ea=tR(tC(y?.propertyArea,d.propertyArea)),es=tR(tC(v?.total,d.rooms)),en=tR(tC(v?.bedrooms,d.bedrooms)),er=tR(tC(v?.bathrooms,d.bathrooms)),ei=tR(tC(N?.constructionYear,h.constructionYear)),eo=(0,s.effectiveModernizationYear)(N?.lastModernizationYear,ei),ec=t_(tC(d.floorLabel,N?.floor)),ed=tR(tC(N?.totalFloors,d.floorCount)),eu=F&&et?F/et:null,eh=t_(tC(A?.efficiencyClass,h.efficiencyClass)),em=tI(tC(A?.finalEnergyValue,h.energyConsumptionValue),"kWh/(m²·a)"),ep=tz(tC(E?.heating?.type,h.heatingType)),eg={efficiencyClass:eh?eh.toUpperCase().replace("_PLUS","+"):null,finalEnergyValue:em,certificateType:tz(tC(A?.type,h.certificateType)),primarySource:tz(tC(A?.primaryEnergySource,h.mainEnergySource)),heatingType:ep,heatGeneratorYear:t$(tC(A?.yearOfHeatGenerator,h.systemTechnologyYear)),validUntil:tG(tC(A?.validUntil,h.validUntil))},ex=Object.values(eg).some(e=>tT(e)),ef=[];et&&ef.push({icon:"area",label:"Wohnfläche",value:tI(et,"m²")||""}),es&&ef.push({icon:"rooms",label:"Zimmer",value:tI(es)||""}),en&&ef.push({icon:"bed",label:"Schlafzimmer",value:tI(en)||""}),er&&ef.push({icon:"bath",label:"Badezimmer",value:tI(er)||""}
59),ea&&ef.push({icon:"plot",label:"Grundstück",value:tI(ea,"m²")||""}),ei&&ef.push({icon:"year",label:"Baujahr",value:t$(ei)||""}),ec&&!et?ef.push({icon:"floor",label:"Etage",value:ec}):ec&&ef.length<6&&ef.push({icon:"floor",label:"Etage",value:ed?`${ec} von ${tI(ed)}`:ec}),eg.efficiencyClass&&ef.length<6&&ef.push({icon:"energy",label:"Energieklasse",value:eg.efficiencyClass});let eb=[],ek=(e,t,l,a)=>{e&&eb.push({icon:t,label:l,detail:a||null})},ev=[tz(w?.kitchen?.kitchenType),t_(w?.kitchen?.applianceBrand)].filter(Boolean).join(" · ");ek(!0===tC(w?.kitchen?.hasFittedKitchen,m.hasFittedKitchen),"kitchen","Einbauküche",ev);let ey=tz(S?.balconyTerrace?.type),ej=[tI(tC(S?.balconyTerrace?.area,d.balconyTerraceArea),"m²"),tz(S?.balconyTerrace?.orientation)].filter(Boolean).join(" · ");ek(!!ey||!0===m.hasBalconyOrTerrace,"balcony",ey||"Balkon/Terrasse",ej),ek(!0===tC(S?.hasGarden,m.hasGarden),"garden","Garten",tI(tC(S?.gardenArea,d.gardenArea),"m²"));let eN=tz(tC(S?.parking?.type,u.parkingType)),ew=tI(tC(S?.parking?.count,u.parkingCount));ek(!!(eN||ew),"parking",eN||"Stellplatz",ew?`${ew} Stellplatz${"1"===ew?"":"e"}`:null),ek(!0===tC(N?.hasElevator,m.hasElevator),"elevator","Aufzug"),ek(!0===tC(w?.cellar?.hasCellar,m.hasCellar),"cellar","Keller",tI(w?.cellar?.cellarArea,"m²")),ek(!0===tC(w?.bathroom?.hasGuestToilet,m.hasGuestToilet),"wc","Gäste-WC"),ek(!0===tC(w?.hasFireplace,m.hasFireplace),"fireplace","Kamin"),ek(!0===tC(w?.hasSauna,m.hasSauna),"sauna","Sauna"),ek(!0===tC(N?.isBarrierFree,m.isBarrierFree),"barrierfree","Barrierefrei"),ek(!0===m.hasPool,"pool","Pool"),ek(!0===m.hasWinterGarden,"wintergarden","Wintergarten"),ek(!0===m.hasAirConditioning,"ac","Klimaanlage"),ek(!0===m.hasStorageRoom,"storage","Abstellraum");let eS=tz(E?.internet?.connectionType);ek(!!eS,"internet",eS||"Internet",tI(E?.internet?.maxSpeed,"Mbit/s")),ek(!0===E?.hasSmartHome,"smart","Smart Home"),ek(!0===tC(E?.security?.hasAlarmSystem,m.hasAlarmSystem),"alarm","Alarmanlage");let eE=tz(w?.windows?.glazing);ek(!!eE,"windows",eE||"Fenster",tz(w?.windows?.material)),ek(!0===w?.windows?.hasShutters,"shutters",w?.windows?.areShuttersElectric?"Elektrische Rollläden":"Rollläden"),ek(!!ep,"heating",ep||"Heizung",tz(E?.heating?.distribution)),ek(!!eo,"modernized","Modernisiert",t$(eo));let eA=t_(R?.micro?.view);ek(!!eA,"view","Aussicht",eA);let eT=R?.micro?.noiseLevel;ek("RUHIG"===eT||"SEHR_RUHIG"===eT,"quiet","Ruhige Lage"),ek(!0===tC(C?.isListedBuilding,m.isListedBuilding),"listed","Denkmalgeschützt");let eC=[],eR=(e,t,l,a)=>{let s=tR(a);s&&s>0&&eC.push({id:e,label:t,minutes:s,mode:l})};eR("pt","ÃPNV","walk",tC(L.walkToPublicTransport,p.walkToPublicTransport)),eR("station","Hauptbahnhof","drive",tC(L.driveToCentralStation,p.driveToCentralStation)),eR("highway","Autobahn","drive",tC(L.driveToHighway,p.driveToHighway)),eR("airport","Flughafen","drive",tC(L.driveToAirport,p.driveToAirport));let eI=tR($?.locationScore?.score),e$=null!==eI?{score:Math.round(eI),label:t_($?.locationScore?.label),reason:t_($?.locationScore?.reason)}:null,eL=[{id:"stammdaten",title:"Stammdaten",items:[{label:"Inserat-ID",value:P},{label:"Objekttyp",value:B},{label:"Vermarktungsart",value:O},{label:"Verfügbarkeit",value:tz(tC(j?.status,u.availableFrom?"NACH_VEREINBARUNG":void 0))},{label:"Verfügbar ab",value:t_(tC(j?.date,u.availableFrom))},{label:"Vermietet",value:tF(u.isRented,{showNo:!0})}]},{id:"adresse",title:"Adresse",items:[{label:"StraÃe",value:H?t_(W):null},{label:"PLZ / Ort",value:t_(K)},{label:"Stadtteil / Region",value:q},{label:"Land",value:t_(tC(k?.country,e.location?.country))},{label:"Flur",value:t_(tC(o.flur,M?.landRegistryDistrict))},{label:"Flurstück",value:t_(tC(o.parcel,M?.parcelNumber))},{label:"Gemarkung",value:t_(tC(o.gemarkung,M?.landRegistrySheet))}]},{id:"preise",title:"Preise und Kosten",items:[{label:U?"Kaufpreis":"Preis",value:tL(F)},{label:"Preisart",value:ee},{label:"Preis pro m²",value:eu?tI(Math.round(eu),"â¬/m²"):null},{label:"Kaufpreis laut Notar",value:tL(z?.purchasePrice)},{label:"Kaltmiete",value:tL(c.coldRent)},{label:"Warmmiete",value:tL(c.warmRent)},{label:"Heizkosten",value:tL(c.heatingCosts)},{label:"Nebenkosten",value:tL(c.additionalCosts)},{label:"Heizkosten in Nebenkosten enthalten",value:tF(c.heatingCostsInAdditionalCosts,{showNo:!0})},{label:"Nicht umlagefähige Kosten",value:tL(c.nonAllocableCosts)},{label:"Hausgeld pro Monat",value:tL(C?.monthlyServiceCharge)},{label:"Instandhaltungsrücklage",value:tL(C?.maintenanceReserveContribution)},{label:"Stellplatzpreis",value:tL(S?.parking?.price)},{label:"Stellplatzmiete",value:tL(S?.parking?.monthlyRent)}]},{id:"flaechen",title:"Flächen und Räume",items:[{label:"Wohnfläche",value:tI(et,"m²")},{label:"Nutzfläche",value:tI(el,"m²")},{label:"Grundstücksfläche",value:tI(ea,"m²")},{label:"Zimmer gesamt",value:tI(es)},{label:"Schlafzimmer",value:en?tI(en):null},{label:"Badezimmer",value:tI(er)},{label:"Balkon-/Terrassenfläche",value:tI(tC(S?.balconyTerrace?.area,d.balconyTerraceArea),"m²")}
59,{label:"Gartenfläche",value:tI(tC(S?.gardenArea,d.gardenArea),"m²")},{label:"Kellerfläche",value:tI(w?.cellar?.cellarArea,"m²")},{label:"Deckenhöhe",value:tI(w?.ceilingHeight,"m")},{label:"Etage",value:ec},{label:"Etagenanzahl",value:tI(ed)}]},{id:"gebaeude",title:"Gebäude und Ausstattung",items:[{label:"Baujahr",value:t$(ei)},{label:"Modernisierung",value:t$(eo)},{label:"Zustand",value:tz(tC(N?.condition,u.condition))},{label:"Ausstattungsqualität",value:tz(tC(w?.quality,u.quality))},{label:"Bauweise",value:tz(N?.constructionMethod)},{label:"Architekturstil",value:tz(N?.architecturalStyle)},{label:"Gebäudetyp",value:tz(N?.buildingType)},{label:"Barrierefrei",value:tF(tC(N?.isBarrierFree,m.isBarrierFree))},{label:"Aufzug",value:tF(tC(N?.hasElevator,m.hasElevator))},{label:"Einbauküche",value:tF(tC(w?.kitchen?.hasFittedKitchen,m.hasFittedKitchen))},{label:"Küchentyp",value:tz(w?.kitchen?.kitchenType)},{label:"Küchengeräte",value:t_(w?.kitchen?.applianceBrand)},{label:"Gäste-WC",value:tF(tC(w?.bathroom?.hasGuestToilet,m.hasGuestToilet))},{label:"Bad mit Fenster",value:tF(w?.bathroom?.hasWindow)},{label:"Keller",value:tF(tC(w?.cellar?.hasCellar,m.hasCellar))},{label:"Kamin",value:tF(tC(w?.hasFireplace,m.hasFireplace))},{label:"Sauna",value:tF(tC(w?.hasSauna,m.hasSauna))},{label:"Bodenbelag",value:t_(m.floorCoveringType)},{label:"Fenster",value:tz(w?.windows?.material)},{label:"Verglasung",value:tz(w?.windows?.glazing)},{label:"Rollläden",value:tF(w?.windows?.hasShutters)},{label:"Rollläden elektrisch",value:tF(w?.windows?.areShuttersElectric)},{label:"Garten",value:tF(tC(S?.hasGarden,m.hasGarden))},{label:"Balkon/Terrasse",value:ey},{label:"Ausrichtung Balkon/Terrasse",value:tz(S?.balconyTerrace?.orientation)},{label:"Loggia",value:tF(m.hasLoggia)},{label:"Pool",value:tF(m.hasPool)},{label:"Wintergarten",value:tF(m.hasWinterGarden)},{label:"Klimaanlage",value:tF(m.hasAirConditioning)},{label:"Abstellraum",value:tF(m.hasStorageRoom)},{label:"Stellplatztyp",value:eN},{label:"Stellplätze",value:ew},{label:"Badtyp",value:t_(m.bathType)},{label:"Feriengeeignet",value:tF(m.holidaySuitable)}]},{id:"energie",title:"Energie und Technik",items:[{label:"Heizungsart",value:ep},{label:"Wärmeverteilung",value:tz(E?.heating?.distribution)},{label:"Energieausweis vorhanden",value:tF(tC(A?.isAvailable,h.certificateStatus?"KEINE_ANGABE"!==h.certificateStatus:void 0))},{label:"Energieausweis-Typ",value:eg.certificateType}
59,{label:"Energieeffizienzklasse",value:eg.efficiencyClass},{label:"Endenergiebedarf/-verbrauch",value:eg.finalEnergyValue},{label:"Wesentlicher Energieträger",value:eg.primarySource},{label:"Ausweis gültig bis",value:eg.validUntil},{label:"Ausstellungsjahr-Kategorie",value:t_(tC(T.issueDateCategory,h.issueYear))},{label:"Ausgestellt am",value:tG(h.issuedAt)},{label:"Baujahr Wärmeerzeuger",value:eg.heatGeneratorYear},{label:"CO2-Emissionen",value:tI(h.co2Emissions,"kg/(m²·a)")},{label:"Energiewert Strom",value:tI(h.energyValueElectricity)},{label:"Energiewert Wärme",value:tI(h.energyValueHeat)},{label:"Warmwasser enthalten",value:tF(tC(T.hotWaterIncluded,h.hotWaterIncluded))},{label:"Smart Home",value:tF(E?.hasSmartHome)},{label:"Alarmanlage",value:tF(E?.security?.hasAlarmSystem)},{label:"Internetanschluss",value:eS},{label:"Max. Internet-Speed",value:tI(E?.internet?.maxSpeed,"Mbit/s")}]},{id:"lage",title:"Lage und Umfeld",items:[{label:"StraÃentyp",value:tz(R?.micro?.streetType)},{label:"Nachbarschaft",value:t_(R?.micro?.neighborhood)},{label:"Ausrichtung",value:tz(R?.micro?.orientation)},{label:"Ausblick",value:eA},{label:"Lärmniveau",value:tz(eT)},...eC.map(e=>({label:`${e.label} ${"walk"===e.mode?"zu FuÃ":"mit dem Auto"}`,value:`${tI(e.minutes)} Min.`})),{label:"Verkehr",value:t_(I?.transportation)},{label:"Einkaufen",value:t_(I?.shopping)},{label:"Bildung",value:t_(I?.education)},{label:"Gesundheit",value:t_(I?.health)},{label:"Freizeit",value:t_(I?.leisure)}]},{id:"rechtliches",title:"Rechtliches",items:[{label:"Eigentumsform",value:tz(C?.ownershipType)},{label:"Erbpacht",value:tF(C?.isLeasehold)},{label:"Erbpacht Laufzeit",value:tI(C?.leaseholdDetails?.duration,"Jahre")},{label:"Erbpachtzins pro Jahr",value:tL(C?.leaseholdDetails?.annualRent)},{label:"Denkmalschutz",value:tF(tC(C?.isListedBuilding,m.isListedBuilding))},{label:"Miteigentumsanteil",value:t_(g.coOwnershipShare)},{label:"Amtsgericht",value:t_(g.districtCourt)},{label:"Grundbuchblatt",value:t_(g.landRegisterSheet)},{label:"Grundbuch von",value:t_(g.landRegisterOf)},{label:"Wertansatz von",value:tL(g.valuationFrom)},{label:"Wertansatz bis",value:tL(g.valuationTo)},{label:"Vermittlungsdatum",value:tG(g.mediationDate)},{label:"Realisierter Preis",value:tL(g.realizedPrice)}]}].map(e=>({...e,items:e.items.filter(e=>tT(e.value))})).filter(e=>e.items.length>0),eM=[],ez=(e,t,l)=>{let a=t_(l);!a||a===G||r(a)||eM.some(e=>e.text===a)||eM.push({id:e,label:t,text:a})};ez("location","Lagebeschreibung",x.locationDescription),ez("equipment","Ausstattung",x.equipmentDescription),ez("other","Weitere Informationen",x.otherDescription),ez("other","Weitere Informationen",D?.targetGroup);let eD=t_(f.propertyUrl);eD&&eM.push({id:"url",label:"Objekt-URL",text:eD});let e_=(e=>{let t=new Set,l={floorPlans:[],energyCertificate:null,businessPlan:null,others:[],total:0};for(let a of e||[]){let e=tA(a.file),s=t_("string"==typeof a.file?a.file:e.url);if(!s||t.has(s))continue;t.add(s);let n=t_(e.mimeType),r={id:String(a.id??s),name:tD(t_(a.name)||t_(e.filename)),url:s,isImage:!!n?.startsWith("image/"),mimeType:n,width:tR(e.width),height:tR(e.height)};l.total+=1;let i=`${r.name} ${t_(e.filename)||""}`;"floorplan"===a.category||/grundriss|floor.?plan/i.test(i)?l.floorPlans.push(r):!l.energyCertificate&&/energieausw|energy/i.test(i)?l.energyCertificate=r:!l.businessPlan&&/wirtschaftsplan|hausgeld|abrechnung/i.test(i)?l.businessPlan=r:l.others.push(r)}return l})(e.documents),eF=($?.pointsOfInterest||[]).map((e,t)=>({id:String(e.id??`${e.name??"poi"}-${t}`),name:t_(e.name)||"",category:t_(e.category),minutes:tR(e.duration),mode:"driving"===e.travelMode?"drive":"walk",distanceMeters:tR(e.distanceMeters)})).filter(e=>e.name),eG=(0,tE.getBundeslandForZip)(k?.zipCode??void 0),eP="boolean"==typeof u.isRented?u.isRented:null,eB=String(tC(d.floorLabel,N?.floor)??""),eO=function(e){let t=[],l=[],a=(...e)=>{for(let l of e)t.includes(l)||t.push(l)},s=e=>{l.includes(e)||l.push(e)},n=(e.objectType??"").toUpperCase(),r=e.rooms??null,o=e.livingArea??null,c=e.isBarrierFree||e.hasElevator||0===e.floor,d=/RENOVIERUNG|SANIERUNG/.test((e.condition??"").toUpperCase());if(e.isRented&&(a("Kapitalanleger"),s("vermietet übergeben, Mieteinnahmen ab dem ersten Tag")),"EIGENTUMSWOHNUNG"===n){let t=null!==o&&o<35||null===o&&null!==r&&r<=1,l=!t&&null!==r&&r<=1.5&&(null===o||o<50);
59t?(a("Singles","Studierende und Azubis","Pendler","Kapitalanleger"),s("kompaktes Apartment, gut vermietbar")):l?(a("Singles","Pendler","Kapitalanleger"),s("kompakter Grundriss, leicht zu vermieten")):!t&&!l&&(null!==r&&r<=2.5&&(null===o||o<85)||null===r&&null!==o&&o<70)?(a("Singles","Paare","Kapitalanleger"),s("gut geschnittene GröÃe für ein bis zwei Personen")):null!==r&&r>=4||null!==o&&o>=95?(a("Familien","Eigennutzer mit Platzbedarf"),s("genug Zimmer für Kinder oder Homeoffice")):(a("Paare","kleine Familien","Kapitalanleger"),s("Platz für Familie oder Arbeitszimmer")),c&&(null===r||r<=3)&&(a("Senioren"),s(e.isBarrierFree?"barrierefrei":e.hasElevator?"Aufzug im Haus":"im Erdgeschoss ohne Treppen")),e.hasGarden?s("eigener Garten"):e.balconyLabel&&s(`${e.balconyLabel} als Freisitz`)}else"EINFAMILIENHAUS"===n||"DOPPELHAUSHAELFTE"===n||"REIHENHAUS"===n?(a("Familien"),s(null!==r&&r>=6?"Platz für mehrere Generationen unter einem Dach":"EINFAMILIENHAUS"===n?"freistehendes Haus mit Platz für Kinder":"eigenes Haus statt Mietwohnung, mit Platz für Kinder"),(e.hasGarden||(e.plotArea??0)>=300)&&s("Garten für Kinder und Haustiere"),e.isBarrierFree&&(a("Senioren"),s("barrierefrei")),null!==r&&r>=6&&a("Mehrgenerationen-Haushalte"),"EINFAMILIENHAUS"!==n&&a("Umsteiger von der Mietwohnung")):"MEHRFAMILIENHAUS"===n?(a("Kapitalanleger"),s("mehrere Einheiten, laufende Mieteinnahmen"),(e.numberOfUnits??0)>0&&(e.numberOfUnits??0)<=3&&(a("Eigennutzer mit Einliegerwohnung","Mehrgenerationen-Haushalte"),s("selbst wohnen und den Rest vermieten"))):"GRUNDSTUECK"===n&&(a("Bauherren","Bauträger"),s("Grundstück für das eigene Bauvorhaben"));d&&(a("Käufer mit Renovierungsplänen"),s("Potenzial, eigene Vorstellungen umzusetzen"));let u=e.walk??{},h=e.drive??{},m=(e,t)=>"number"==typeof e&&e>0&&e<=t,p="GRUNDSTUECK"!==n&&"MEHRFAMILIENHAUS"!==n,g=t.includes("Familien")||t.includes("kleine Familien");p&&m(u.school,10)&&g&&s(`Schule oder Kita in ${u.school} Min. zu Fu\xdf`),g&&m(u.park,10)&&s("Grün zum Spielen in der Nähe"),p&&m(u.shopping,10)&&m(u.doctor,10)&&(t.includes("Senioren")||c)&&("EIGENTUMSWOHNUNG"===n&&c&&a("Senioren"),s("Einkauf und Arzt zu Fuà erreichbar"));let x=m(u.transit,5)||e.goodTransit||m(h.station,15)||m(h.highway,10);p&&x&&("EIGENTUMSWOHNUNG"===n&&a("Pendler"),s(m(h.highway,10)?`Autobahn in ${h.highway} Min.`:m(h.station,15)?`Bahnhof in ${h.station} Min.`:"Bus und Bahn vor der Tür"));let f=e.price??0;f>0&&("EIGENTUMSWOHNUNG"===n&&f<=2e5||"EIGENTUMSWOHNUNG"!==n&&p&&f<=35e4)&&(a("EIGENTUMSWOHNUNG"===n?"Erstkäufer":"junge Familien"),s("bezahlbarer Einstieg ins Eigentum")),e.quietLocation&&s("ruhige Lage"),e.hasParking&&s("eigener Stellplatz");let b=t.slice(0,4),k=l.slice(0,5);return{groups:t,reasons:l,text:b.length?`${i(b)}.${k.length?` Warum: ${i(k)}.`:""}`:""}}({objectType:String(tC(b?.objectType,n.objectType)??""),rooms:es,livingArea:et,plotArea:ea,floor:/^(0|EG|erdgeschoss|hochparterre)$/i.test(eB.trim())?0:tR(N?.floor),hasElevator:!0===tC(N?.hasElevator,m.hasElevator),isBarrierFree:!0===tC(N?.isBarrierFree,m.isBarrierFree),hasGarden:!0===tC(S?.hasGarden,m.hasGarden),balconyLabel:ey,hasParking:!!(eN||ew),isRented:eP,condition:String(tC(N?.condition,u.condition)??""),numberOfUnits:tR(b?.numberOfUnits),quietLocation:"RUHIG"===eT||"SEHR_RUHIG"===eT,goodTransit:eC.some(e=>"pt"===e.id&&e.minutes<=5),price:F,walk:function(e){let t={};for(let l of e){if("walk"!==l.mode||!l.minutes)continue;let e=tW.find(([e])=>e.test(`${l.category??""} ${l.name}`))?.[1];e&&(void 0===t[e]||l.minutes<(t[e]??0))&&(t[e]=Math.round(l.minutes))}return t}(eF),drive:{station:eC.find(e=>"station"===e.id)?.minutes,highway:eC.find(e=>"highway"===e.id)?.minutes}}),eU=[],eH=es?`${tI(es)}-Zimmer-`:"";if(B&&eU.push(`${eH}${B}${et?` mit ${tI(et,"m²")} Wohnfl\xe4che`:""}`),eA&&eU.push(eA),ey){let e=tz(S?.balconyTerrace?.orientation);eU.push(`${ey}${e?` mit ${e}-Ausrichtung`:""}`)}eN&&eU.push(ew&&"1"!==ew?`${ew} \xd7 ${eN}`:eN),!0===tC(w?.kitchen?.hasFittedKitchen,m.hasFittedKitchen)&&eU.push("Einbauküche vorhanden"),!0===tC(w?.cellar?.hasCellar,m.hasCellar)&&eU.push("Eigenes Kellerabteil"),("RUHIG"===eT||"SEHR_RUHIG"===eT)&&eU.push("Ruhige Wohnlage"),eg.efficie
59ncyClass&&/^A|^B/.test(eg.efficiencyClass)&&eU.push(`Energieeffizienzklasse ${eg.efficiencyClass}`),eo&&eU.push(`Modernisiert ${t$(eo)}`),eU.push("Direkt vom Eigentümer, ohne Käuferprovision");let eW=[B,et?tI(et,"m²"):null,es?`${tI(es)} Zimmer`:null,ei?`Baujahr ${t$(ei)}`:null].filter(Boolean).join(" · "),eK=[U?"Zum Verkauf":"Zur Miete",B,O&&O!==B?O:null].filter(e=>!!e);return{title:e.title,badges:eK,isSale:U,objectType:B,listingId:P,locationLine:V||Z,addressLine:Z,showAddress:H,mapAddress:Q,hasMapLocation:J,price:F,priceFormatted:tL(F)||"Auf Anfrage",priceType:ee,pricePerSqm:eu?tI(Math.round(eu),"â¬/m²"):null,monthlyServiceCharge:tL(C?.monthlyServiceCharge),description:G,targetGroup:eO.text||null,locationText:t_(R?.macro?.districtImage),softFactors:tP(D?.softFactorsAndPotential),keyFacts:ef,highlights:eb,energy:eg,hasEnergyData:ex,travelTimes:eC,locationScore:e$,sections:eL,textBlocks:eM,images:_,availability:tz(j?.status),isRented:eP,documents:e_,pointsOfInterest:eF,bundesland:eG,maintenanceReserveTotal:tL(tA(C).maintenanceReserveTotal),usps:eU.slice(0,7),subline:eW}}function tH(e,t=["energie","lage"]){return e.sections.filter(e=>!t.includes(e.id)).map(e=>"gebaeude"===e.id?{...e,title:"Gebäude und Bauweise",items:e.items.filter(e=>"Ja"!==e.value&&"Nein"!==e.value)}:e).filter(e=>e.items.length>0)}let tW=[[/schule|kita|kindergarten/i,"school"],[/supermarkt|einkauf/i,"shopping"],[/arzt|apotheke/i,"doctor"],[/park/i,"park"],[/öpnv|bus|bahn|haltestelle/i,"transit"]];function tK(e){return(e.sections.find(e=>"lage"===e.id)?.items??[]).filter(e=>!/zu FuÃ|mit dem Auto/.test(e.label)).map(e=>`${e.label}: ${e.value}`)}function tq(e){let t=[];for(let l of e.documents.floorPlans)t.push({id:l.id,label:l.name,url:l.url,kind:"floorplan"});if(e.documents.energyCertificate){let l=e.documents.energyCertificate;t.push({id:l.id,label:"Energieausweis",url:l.url,kind:"energy"})}if(e.documents.businessPlan){let l=e.documents.businessPlan;t.push({id:l.id,label:l.name,url:l.url,kind:"business"})}for(let l of e.documents.others)t.push({id:l.id,label:l.name,url:l.url,kind:"other"});return t}let tV=(0,c.default)(()=>e.A(532012),{loadableGenerated:{modules:[801342]},ssr:!1}),tZ=e=>!e||"object"!=typeof e||Array.isArray(e)?{}:e,tY=e=>null!=e&&("string"==typeof e?e.trim().length>0:!Array.isArray(e)||e.length>0),tX=(...e)=>{for(let t of e)if(tY(t))return t},tQ=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return null;let t=e.trim().replace(/\s/g,"");if(!t)return null;t.includes(",")&&t.includes(".")?t=t.lastIndexOf(",")>t.lastIndexOf(".")?t.replace(/\./g,"").replace(",","."):t.replace(/,/g,""):t.includes(",")?t=t.replace(",","."):t.includes(".")&&(t.match(/\./g)||[]).length>1&&(t=t.replace(/\./g,""));let l=Number(t=t.replace(/[^0-9.-]/g,""));return Number.isFinite(l)?l:null},tJ=(e,t)=>{let l=tQ(e);if(null===l)return null;let a=l.toLocaleString("de-DE",{maximumFractionDigits:2});return t?`${a} ${t}`:a},t0=e=>{let t=tQ(e);return null===t?null:new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(t)},t1=e=>tY(e)?String(e).trim():null,t2=(e,t={})=>"boolean"!=typeof e?null:e?"Ja":t.showNo?"Nein":null,t3=e=>{let t=tJ(e);return null===t?null:t.replace(/\./g,"")},t5=e=>{if("string"!=typeof e||!e.trim())return null;let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("de-DE")},t4=({title:e,items:t,columns:l=2})=>{let s=t.filter(e=>tY(e.value));return 0===s.length?null:(0,a.jsxs)("section",{className:"border-t border-[#dedbd3] pt-8",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold tracking-tight text-[#20232d]",children:e}),(0,a.jsx)("div",{className:"divide-y divide-[#dedbd3]",children:s.map(t=>(0,a.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_minmax(0,1.6fr)] gap-4 py-3 text-base",children:[(0,a.jsx)("p",{className:"min-w-0 break-words text-[#727887] [hyphens:auto]",children:t.label}),(0,a.jsx)("p",{className:"min-w-0 break-words font-medium text-[#20232d]",children:t.value})]},`${e}-${t.label}`))})]})},t7=({title:e,icon:t,items:l})=>{let s=l.filter(e=>tY(e.value));return 0===s.length?null:(0,a.jsxs)("section",{className:"border-t border-[#dedbd3] pt-8",children:[(0,a.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[t?(0,a.jsx)("span",{className:"text-[#5aa273]",children:t}):null,(0,a.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-[#20232d]",children:e})]}),(0,a.jsx)("div",{className:"divide-y divide-[#dedbd3]",children:s.map(t=>(0,a.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_minmax(0,1.6fr)] gap-4 py-3 text-base",children:[(0,a.jsx)("div",{className:"min-w-0 break-words text-[#727887] [hyphens:auto]",children:t.label}),(0,a.jsx)("div",{className:"min-w-0 break-words font-medium text-[#20232d]",children:t.value})]},`${e}-${t.label}`))})]})},t6=({allImages:e,projectTitle:t,projectId:l,isPublicAccess:s,onProjectRefresh:n})=>(0,a.jsx)("section",{className:"mx-auto max-w-[1850px] px-4 pt-6 sm:px-8 lg:px-12",children:(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:e.length>0?(0,a.jsx)(tw.ProjectImageGallery,{images:e,projectTitle:t,enableSorting:!s,projectId:l,onImagesChanged:n}):(0,a.jsx)("div",{className:"flex min-h-[420px] items-center justify-center rounded-lg bg-white",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,a.jsx)(d.default,{src:"/loader.gif",alt:"Tanzender Sloothy",width:176,height:176,unoptimized:!0,className:"h-44 w-44 object-contain"}),(0,a.jsx)("p",{className:"text-sm font-medium text-[#727887]",children:"Bilder werden vorbereitet"})]})})})}),t8=(0,o.observer)(function({project:e,projectId:t,isPublicAccess:l=!1,onProjectChange:n,onProjectRefresh:i}){let{modalStore:o}=(0,u.useStore)(),c=tU(e,{isPublicAccess:l}).targetGroup,d=tZ(e.notaryData?.cd),h=tZ(d.op),m=tZ(h.addressDetail
59s),p=tZ(h.prices),g=tZ(h.areas),x=tZ(h.additionalInfo),f=tZ(h.energy),b=tZ(h.equipment),k=tZ(h.travelTimes),v=tZ(h.sale),y=tZ(h.descriptionBlocks),j=tZ(h.website),N=e.property?.basicData,w=N?.address,S=N?.rooms,E=N?.areas,A=N?.availability,T=e.property?.buildingDetails,C=e.property?.interiorFeatures,R=e.property?.exteriorArea,I=e.property?.technical,$=tZ(I?.energyCertificate),L=e.property?.legalAndFinancial,M=e.property?.locationDetails,z=M?.infrastructure,D=tZ(e.property?.locationInfrastructure?.travelTimes),_=e.notaryData?.property,F=e.notaryData?.transaction,G=(e.images||[]).filter(e=>tY(e?.url||e?.filename)),P=(0,tS.getListingPrice)(e,[N?.price?.value,p.purchasePrice])??(0,tS.parsePriceNumber)(F?.purchasePrice),B=e.description||t1(y.objectDescription),O=t1(tX(N?.listingId,h.listingId)),U=tz(tX(N?.objectType,h.objectType)),H=tz(tX(N?.marketingType,h.marketingType)),W=[[w?.street,w?.houseNumber].filter(Boolean).join(" "),[w?.zipCode,w?.city].filter(Boolean).join(" ")].filter(Boolean).join(", "),K=tQ(tX(w?.latitude,e.location?.coordinates?.lat)),q=tQ(tX(w?.longitude,e.location?.coordinates?.lng)),V=w||e.location?{...w||{},street:t1(tX(w?.street,e.location?.address))||void 0,zipCode:t1(tX(w?.zipCode,e.location?.postalCode))||void 0,city:t1(tX(w?.city,e.location?.city))||void 0,country:t1(tX(w?.country,e.location?.country))||void 0,...null!==K&&null!==q?{latitude:K,longitude:q}:{}}:null,Z=!!(V&&(tY(V.latitude)||tY(V.longitude)||tY(V.street)||tY(V.zipCode)||tY(V.city))),Y=N?.price?.priceType==="AUF_ANFRAGE"||!0===p.priceOnRequest?"Auf Anfrage":N?.price?.priceType==="VERHANDLUNGSBASIS"||!0===p.priceNegotiable?"Verhandlungsbasis":N?.price?.priceType==="FESTPREIS"?"Festpreis":null,X=tQ(tX(E?.livingArea,g.livingArea)),Q=tQ(tX(S?.total,g.rooms)),J=P&&X?P/X:null,ee=[[w?.zipCode,w?.city].filter(Boolean).join(" "),t1(w?.district??m.region)].filter(Boolean).join(", ");return(0,a.jsxs)("div",{"data-listing-template":"standard",className:"min-h-screen bg-[#fbfaf8] pb-20 text-[#20232d]",children:[(0,a.jsx)(t6,{allImages:G,projectTitle:e.title,projectId:t,isPublicAccess:l,onProjectRefresh:i}),(0,a.jsxs)("div",{className:"mx-auto grid grid-cols-1 max-w-[1700px] gap-12 px-4 pt-14 sm:px-8 lg:px-12 xl:grid-cols-[minmax(0,1fr)_400px] xl:gap-14",children:[(0,a.jsxs)("main",{className:"space-y-10",children:[(0,a.jsxs)("section",{children:[(0,a.jsxs)("div",{className:"mb-7 flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"rounded-full bg-[#e7f2eb] px-3 py-1 text-xs font-semibold text-[#4f996b]",children:"sale"===e.projectType?"Zum Verkauf":"Zur Miete"}),U?(0,a.jsx)("span",{className:"rounded-full bg-[#efeee9] px-3 py-1 text-xs font-semibold text-[#727887]",children:U}):null,H?(0,a.jsx)("span",{className:"rounded-full bg-[#efeee9] px-3 py-1 text-xs font-semibold text-[#727887]",children:H}):null]}),(0,a.jsx)("h1",{className:"max-w-5xl break-words [hyphens:auto] text-2xl font-black leading-[1.08] tracking-[-0.025em] text-[#20232d] sm:text-3xl lg:text-4xl",children:e.title}),ee||W?(0,a.jsxs)("div",{className:"mt-8 flex items-center gap-3 text-xl text-[#20232d]",children:[(0,a.jsx)(tN.Icons.Location,{size:24,className:"text-[#5aa273]"}),(0,a.jsx)("span",{children:ee||W})]}):null,B||!l?(0,a.jsxs)("div",{className:"mt-8 max-w-5xl text-xl leading-relaxed text-[#20232d]",children:[B?(0,a.jsx)(tv,{content:B,className:"prose prose-xl max-w-none prose-p:text-[#20232d] text-justify [hyphens:auto] [&_p+p]:mt-4"}):(0,a.jsx)("p",{children:"Keine Beschreibung hinterlegt."}),c?(0,a.jsxs)("p",{className:"mt-6 rounded-xl bg-[#f3f8f4] px-5 py-4 text-lg leading-relaxed text-[#20232d]",children:[(0,a.jsx)("span",{className:"mr-2 font-semibold text-[#3b7d52]",children:"Passt zu:"}),c]}):null,l?null:(0,a.jsx)(ty,{project:e,projectId:t,onProjectChange:n})]}):null]}),(0,a.jsxs)("section",{className:"grid grid-cols-2 gap-6 border-t border-[#dedbd3] pt-9 sm:grid-cols-3 sm:gap-8",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xl font-black tracking-tight text-[#20232d] sm:text-2xl",children:t0(P)||"Auf Anfrage"}),(0,a.jsxs)("p",{className:"mt-2 text-lg text-[#727887]",children:[Y?`${Y} \xb7 `:"",J?`${tJ(J,"â¬/m²")}`:"Kaufpreis"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xl font-black tracking-tight text-[#20232d] sm:text-2xl",children:Q?tJ(Q):"Noch offen"}),(0,a.jsx)("p",{className:"mt-2 text-lg text-[#727887]",children:"Zimmer"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xl font-black tracking-tight text-[#20232d] sm:text-2xl",children:X?tJ(X,"m²"):"Noch offen"}),(0,a.jsx)("p",{className:"mt-2 text-lg text-[#727887]",children:"Wohnfläche"})]})]}),(0,a.jsx)(t7,{title:"Projektübersicht",icon:(0,a.jsx)(tN.Icons.Building,{size:28,variant:"Bold"}),items:[{label:"Wohnfläche",value:tJ(tX(E?.livingArea,g.livingArea),"m²")},{label:"Nutzfläche",value:tJ(tX(E?.usableArea,g.usableLivingArea),"m²")},{label:"Grundstück",value:tJ(tX(E?.propertyArea,g.propertyArea),"m²")},{label:"Zimmer",value:tJ(tX(S?.total,g.rooms))},{label:"Schlafzimmer",value:tJ(tX(S?.bedrooms,g.bedrooms))},{label:"Badezimmer",value:tJ(tX(S?.bathrooms,g.bathrooms))},{label:"Immobilientyp",value:U}
59,{label:"Baujahr",value:t3(tX(T?.constructionYear,f.constructionYear))},{label:"Zustand",value:tz(tX(T?.condition,x.condition))}]}),(0,a.jsxs)("div",{className:"space-y-10",children:[(0,a.jsx)(t4,{title:"Stammdaten",items:[{label:"Inserat-ID",value:O},{label:"Objekttyp",value:U},{label:"Vermarktungsart",value:H},{label:"Verfügbarkeit",value:tz(tX(A?.status,x.availableFrom?"NACH_VEREINBARUNG":void 0))},{label:"Verfügbar ab",value:t1(tX(A?.date,x.availableFrom))},{label:"Vermietet",value:t2(x.isRented,{showNo:!0})}],columns:3}),(0,a.jsx)(t4,{title:"Adresse und Flurstücke",items:[{label:"StraÃe",value:t1(w?.street)},{label:"Hausnummer",value:t1(w?.houseNumber)},{label:"PLZ",value:t1(w?.zipCode)},{label:"Stadt",value:t1(w?.city)},{label:"Region",value:t1(w?.district??m.region)},{label:"Land",value:t1(tX(w?.country,e.location?.country))},{label:"Flur",value:t1(tX(m.flur,_?.landRegistryDistrict))},{label:"Flurstück",value:t1(tX(m.parcel,_?.parcelNumber))},{label:"Gemarkung",value:t1(tX(m.gemarkung,_?.landRegistrySheet))}],columns:3}),(0,a.jsx)(t4,{title:"Preise",items:[{label:"Verkaufspreis",value:t0(P)},{label:"Kaufpreis laut Notar",value:t0(F?.purchasePrice)},{label:"Kaltmiete",value:t0(p.coldRent)},{label:"Warmmiete",value:t0(p.warmRent)},{label:"Heizkosten",value:t0(p.heatingCosts)},{label:"Nebenkosten",value:t0(p.additionalCosts)},{label:"Heizkosten in Nebenkosten enthalten",value:t2(p.heatingCostsInAdditionalCosts,{showNo:!0})},{label:"Nicht umlagefähige Kosten",value:t0(p.nonAllocableCosts)},{label:"Hausgeld pro Monat",value:t0(L?.monthlyServiceCharge)},{label:"Instandhaltungsrücklage",value:t0(L?.maintenanceReserveContribution)},{label:"Stellplatzpreis",value:t0(R?.parking?.price)},{label:"Stellplatzmiete",value:t0(R?.parking?.monthlyRent)}],columns:3}),(0,a.jsx)(t4,{title:"Flächen und Räume",items:[{label:"Wohnfläche",value:tJ(tX(E?.livingArea,g.livingArea),"m²")},{label:"Nutzfläche",value:tJ(tX(E?.usableArea,g.usableLivingArea),"m²")},{label:"Grundstücksfläche",value:tJ(tX(E?.propertyArea,g.propertyArea),"m²")},{label:"Zimmer gesamt",value:tJ(tX(S?.total,g.rooms))},{label:"Schlafzimmer",value:tJ(tX(S?.bedrooms,g.bedrooms))},{label:"Badezimmer",value:tJ(tX(S?.bathrooms,g.bathrooms))},{label:"Balkon-/Terrassenfläche",value:tJ(tX(R?.balconyTerrace?.area,g.balconyTerraceArea),"m²")},{label:"Gartenfläche",value:tJ(tX(R?.gardenArea,g.gardenArea),"m²")},{label:"Etage",value:t1(tX(g.floorLabel,T?.floor))},{label:"Etagenanzahl",value:tJ(tX(T?.totalFloors,g.floorCount))}],columns:3}),(0,a.jsx)(t4,{title:"Gebäude und Ausstattung",items:[{label:"Baujahr",value:t3(tX(T?.constructionYear,f.constructionYear))},{label:"Modernisierung",value:tJ((0,s.effectiveModernizationYear)(T?.lastModernizationYear,tX(T?.constructionYear,f.constructionYear)))},{label:"Zustand",value:tz(tX(T?.condition,x.condition))},{label:"Ausstattungsqualität",value:tz(tX(C?.quality,x.quality))},{label:"Bauweise",value:tz(T?.constructionMethod)},{label:"Architekturstil",value:tz(T?.architecturalStyle)}
59,{label:"Gebäudetyp",value:tz(T?.buildingType)},{label:"Barrierefrei",value:t2(tX(T?.isBarrierFree,b.isBarrierFree))},{label:"Aufzug",value:t2(tX(T?.hasElevator,b.hasElevator))},{label:"Einbauküche",value:t2(tX(C?.kitchen?.hasFittedKitchen,b.hasFittedKitchen))},{label:"Gäste-WC",value:t2(tX(C?.bathroom?.hasGuestToilet,b.hasGuestToilet))},{label:"Keller",value:t2(tX(C?.cellar?.hasCellar,b.hasCellar))},{label:"Kamin",value:t2(tX(C?.hasFireplace,b.hasFireplace))},{label:"Sauna",value:t2(tX(C?.hasSauna,b.hasSauna))},{label:"Garten",value:t2(tX(R?.hasGarden,b.hasGarden))},{label:"Balkon/Terrasse",value:t2(tX(b.hasBalconyOrTerrace,R?.balconyTerrace?.type))},{label:"Loggia",value:t2(b.hasLoggia)},{label:"Pool",value:t2(b.hasPool)},{label:"Wintergarten",value:t2(b.hasWinterGarden)},{label:"Klimaanlage",value:t2(b.hasAirConditioning)},{label:"Alarmanlage",value:t2(tX(I?.security?.hasAlarmSystem,b.hasAlarmSystem))},{label:"Abstellraum",value:t2(b.hasStorageRoom)},{label:"Denkmalgeschützt",value:t2(tX(L?.isListedBuilding,b.isListedBuilding))},{label:"Feriengeeignet",value:t2(b.holidaySuitable)},{label:"Balkon/Terrasse Typ",value:tz(R?.balconyTerrace?.type)},{label:"Balkon/Terrasse Ausrichtung",value:tz(R?.balconyTerrace?.orientation)},{label:"Stellplatztyp",value:tz(tX(R?.parking?.type,x.parkingType))},{label:"Stellplätze",value:tJ(tX(R?.parking?.count,x.parkingCount))},{label:"Badtyp",value:t1(b.bathType)},{label:"Bodenbelag",value:t1(b.floorCoveringType)}],columns:3}),(0,a.jsx)(t4,{title:"Energie und Technik",items:[{label:"Heizungsart",value:tz(tX(I?.heating?.type,f.heatingType))},{label:"Wärmeverteilung",value:tz(I?.heating?.distribution)},{label:"Energieausweis vorhanden",value:t2(tX(I?.energyCertificate?.isAvailable,f.certificateStatus?"KEINE_ANGABE"!==f.certificateStatus:void 0))},{label:"Energieausweis-Typ",value:tz(tX(I?.energyCertificate?.type,f.certificateType))},{label:"Energieeffizienzklasse",value:tz(tX(I?.energyCertificate?.efficiencyClass,f.efficiencyClass))},{label:"Endenergiebedarf/-verbrauch",value:tJ(tX(I?.energyCertificate?.finalEnergyValue,f.energyConsumptionValue),"kWh/(m²*a)")},{label:"Wesentlicher Energieträger",value:tz(tX(I?.energyCertificate?.primaryEnergySource,f.mainEnergySource))},{label:"Ausweis gültig bis",value:t5(tX(I?.energyCertificate?.validUntil,f.validUntil))},{label:"Ausstellungsjahr-Kategorie",value:t1(tX($.issueDateCategory,f.issueYear))},{label:"Ausgestellt am",value:t5(f.issuedAt)},{label:"Baujahr Wärmeerzeuger",value:tJ(tX(I?.energyCertificate?.yearOfHeatGenerator,f.systemTechnologyYear))},{label:"CO2-Emissionen",value:tJ(f.co2Emissions,"kg/m²*a")},{label:"Energiewert Strom",value:tJ(f.energyValueElectricity)},{label:"Energiewert Wärme",value:tJ(f.energyValueHeat)},{label:"Warmwasser enthalten",value:t2(f.hotWaterIncluded)},{label:"Smart Home",value:t2(I?.hasSmartHome)},{label:"Internetanschluss",value:tz(I?.internet?.connectionType)},{label:"Max. Internet-Speed",value:tJ(I?.internet?.maxSpeed,"Mbit/s")}],columns:3}),(0,a.jsx)(t4,{title:"Lage, Umfeld und Erreichbarkeit",items:[{label:"Mikrolage - StraÃentyp",value:tz(M?.micro?.streetType)},{label:"Mikrolage - Nachbarschaft",value:t1(M?.micro?.neighborhood)},{label:"Ausrichtung",value:tz(M?.micro?.orientation)},{label:"Ausblick",value:t1(M?.micro?.view)},{label:"Lärmniveau",value:tz(M?.micro?.noiseLevel)},{label:"ÃPNV zu FuÃ",value:tJ(tX(D.walkToPublicTransport,k.walkToPublicTransport),"Min.")},{label:"Autobahn mit Auto",value:tJ(tX(D.driveToHighway,k.driveToHighway),"Min.")},{label:"Hauptbahnhof mit Auto",value:tJ(tX(D.driveToCentralStation,k.driveToCentralStation),"Min.")},{label:"Flughafen mit Auto",value:tJ(tX(D.driveToAirport,k.driveToAirport),"Min.")},{label:"Infrastruktur - Verkehr",value:t1(z?.transportation)},{label:"Infrastruktur - Einkauf",value:t1(z?.shopping)},{label:"Infrastruktur - Bildung",value:t1(z?.education)},{label:"Infrastruktur - Gesundheit",value:t1(z?.health)},{label:"Infrastruktur - Freizeit",value:t1(z?.leisure)}],columns:3}),(0,a.jsx)(t4,{title:"Rechtliches und weitere Verkaufsdaten",items:[{label:"Eigentumsform",value:tz(L?.ownershipType)},{label:"Erbpacht",value:t2(L?.isLeasehold)},{label:"Erbpacht Laufzeit",value:tJ(L?.leaseholdDetails?.duration,"Jahre")},{label:"Erbpachtzins pro Jahr",value:t0(L?.leaseholdDetails?.annualRent)},{label:"Miteigentumsanteil",value:t1(v.coOwnershipShare)},{label:"Amtsgericht",value:t1(v.districtCourt)},{label:"Grundbuchblatt",value:t1(v.landRegisterSheet)},{label:"Grundbuch von",value:t1(v.landRegisterOf)},{label:"Wertansatz von",value:t0(v.valuationFrom)},{label:"Wertansatz bis",value:t0(v.valuationTo)},{label:"Vermittlungsdatum",value:t5(v.mediationDate)},{label:"Realisierter Preis",value:t0(v.realizedPrice)}],columns:3}),(tY(y.objectDescription)||tY(y.locationDescription)||tY(y.equipmentDescription)||tY(y.otherDescription)||tY(e.property?.propertyDescription?.targetGroup)||tY(j.propertyUrl))&&(0,a.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-6 shadow-sm",children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:"Objekttexte"}),(0,a.jsxs)("div",{className:"mt-4 space-y-4",children:[tY(y.objectDescription)?(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-muted/20 p-4",children:[(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Objektbeschreibung"}),(0,a.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-sm text-foreground",children:String(y.objectDescription)})]}):null,tY(y.locationDescription)?(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-muted/20 p-4",children:[(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Lagebeschreibung"}),(0,a.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-sm text-foreground",children:String(y.locationDescription)})]}):null,tY(y.equipmentDescription)?(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-muted/20 p-4",children:[(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Ausstattungsbeschreibung"}),(0,a.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-sm text-foreground",children:String(y.equipmentDescription)})]}):null,r(String(tX(y.otherDescription,e.property?.propertyDescription?.targetGroup)??""))?null:(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-muted/20 p-4",children:[(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Weitere Informationen"}),(0,a.jsx)("p",{className:"mt-1 whitespace-pre-wrap text-sm text-foreground",children:String(tX(y.otherDescription,e.property?.propertyDescription?.targetGroup))})]}),tY(j.propertyUrl)?(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-muted/20 p-4",children:[(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"Objekt-URL"}),(0,a.jsx)("a",{className:"mt-1 block break-all text-sm font-medium text-emerald-700 hover:text-emerald-600",href:String(j.propertyUrl),target:"_blank",rel:"noreferrer",children:String(j.propertyUrl)})]}):null]})]})]})]}),(0,a.jsxs)("aside",{className:"space-y-6 xl:sticky xl:top-8 xl:self-start",children:[Z&&V?(0,a.jsx)("div",{className:"h-[300px] overflow-hidden rounded-[1.5rem] border border-[#dedbd3] bg-[#efeee9] shadow-sm",children:(0,a.jsx)(tV,{address:V,showStyleToggle:!1})}):null,(0,a.jsxs)("section",{className:"rounded-[1.5rem] border border-[#dedbd3] bg-white p-7 shadow-[0_10px_30px_rgba(32,35,45,0.10)]",children:[(0,a.jsx)("p",{className:"text-sm font-medium uppercase tracking-[0.08em] text-[#727887]",children:"Anbieter"}),(0,a.jsx)("h2",{className:"mt-3 text-2xl font-bold text-[#20232d]",children:"Sloothy · Privatverkäufer"}),(0,a.jsx)("p",{className:"mt-5 text-lg leading-relaxed text-[#727887]",children:"Dieses Inserat wird direkt über die Sloothy-Plattform vermarktet â ohne Käuferprovision."}),(0,a.jsxs)(tj.Button,{onClick:()=>o.openModal({type:"interest",props:{projectId:t,projectTitle:e.title}}
59),className:"mt-7 w-full rounded-xl !bg-[#5aa273] py-6 text-lg font-semibold !text-white shadow-md hover:!bg-[#4f996b]",children:[(0,a.jsx)(tN.Icons.Sms,{size:22,className:"mr-3"}),"Anbieter kontaktieren"]}),O?(0,a.jsxs)("p",{className:"mt-5 text-base text-[#727887]",children:["Inserat-ID: ",O]}):null]}),(0,a.jsxs)("section",{className:"rounded-[1.5rem] border border-[#dedbd3] bg-[#fbfaf8] p-7 shadow-sm",children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-[#20232d]",children:"Sie verkaufen selbst?"}),(0,a.jsx)("p",{className:"mt-3 text-base leading-relaxed text-[#727887]",children:"Stellen Sie Ihre Immobilie mit Sloothy in wenigen Schritten online."}),(0,a.jsx)("a",{href:"/haus-verkaufen",className:"mt-6 flex h-12 items-center justify-center rounded-xl border border-[#dedbd3] bg-white text-base font-semibold text-[#20232d] shadow-sm transition hover:bg-[#f4f2ee]",children:"Mehr erfahren"})]})]})]})]})});var t9=e.i(288644),le=e.i(168896);let lt=(0,le.default)("air-vent",[["path",{d:"M18 17.5a2.5 2.5 0 1 1-4 2.03V12",key:"yd12zl"}],["path",{d:"M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"larmp2"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"M6.6 15.572A2 2 0 1 0 10 17v-5",key:"1x1kqn"}]]),ll=(0,le.default)("armchair",[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]),la=(0,le.default)("bath",[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]]),ls=(0,le.default)("bed-double",[["path",{d:"M2 20v-8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v8",key:"1k78r4"}],["path",{d:"M4 10V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4",key:"fb3tl2"}],["path",{d:"M12 4v6",key:"1dcgq2"}],["path",{d:"M2 18h20",key:"ajqnye"}]]);e.s(["BedDouble",0,ls],228118);var ln=e.i(760218),lr=e.i(115774),li=e.i(297423);let lo=(0,le.default)("car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);var lc=e.i(959908);let ld=(0,le.default)("chef-hat",[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]]);var lu=e.i(5461),lh=e.i(610253);let lm=(0,le.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]),lp=(0,le.default)("door-open",[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]]);var lg=e.i(617409);let lx=(0,le.default)("ear",[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]]);var lf=e.i(312158);let lb=(0,le.default)("fence",[["path",{d:"M4 3 2 5v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"1n2rgs"}],["path",{d:"M6 8h4",key:"utf9t1"}],["path",{d:"M6 18h4",key:"12yh4b"}],["path",{d:"m12 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"3ha7mj"}
59],["path",{d:"M14 8h4",key:"1r8wg2"}],["path",{d:"M14 18h4",key:"1t3kbu"}],["path",{d:"m20 3-2 2v15c0 .6.4 1 1 1h2c.6 0 1-.4 1-1V5Z",key:"dfd4e2"}]]);var lk=e.i(594737),lv=e.i(792229);let ly=(0,le.default)("footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]),lj=(0,le.default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]),lN=(0,le.default)("hammer",[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]);var lw=e.i(373292),lS=e.i(993660),lE=e.i(297160);let lA=(0,le.default)("leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);var lT=e.i(463084);let lC=(0,le.default)("move-vertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]),lR=(0,le.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),lI=(0,le.default)("person-standing",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]]);var l$=e.i(566220);let lL=(0,le.default)("ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);var lM=e.i(658487);let lz=(0,le.default)("thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);var lD=e.i(186734),l_=e.i(359749);let lF=(0,le.default)("warehouse",[["path",{d:"M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11",key:"pb2vm6"}],["path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z",key:"doq5xv"}],["path",{d:"M6 13h12",key:"yf64js"}],["path",{d:"M6 17h12",key:"1jwigz"}]]),lG=(0,le.default)("waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);var lP=e.i(746453),lB=e.i(189321),lO=e.i(793283),lU=e.i(378255);let lH={area:lL,rooms:lE.LayoutGrid,bed:ls,bath:la,plot:lb,year:li.CalendarDays,floor:lS.Layers,energy:lO.Zap,parking:lo,garden:l_.Trees,balcony:lM.Sun},lW={kitchen:ld,elevator:lC,cellar:lF,garden:l_.Trees,balcony:lM.Sun,parking:lo,internet:lP.Wifi,smart:lm,alarm:ln.Bell,wc:lp,fireplace:lv.Flame,sauna:lz,barrierfree:lI,pool:lG,wintergarden:lA,ac:lt,storage:lR,shutters:ll,windows:lE.LayoutGrid,view:lf.Eye,quiet:lx,modernized:lN,listed:lw.Landmark,heating:lj},lK={pt:lr.Bus,station:lD.TrainFront,highway:lo,airport:l$.Plane};function lq(e,t){let{modalStore:l}=(0,u.useStore)();return()=>l.openModal({type:"interest",props:{projectId:e,projectTitle:t}})}function lV({fact:e,className:t,iconClassName:l,valueClassName:s,labelClassName:n}){let r=lH[e.icon];return(0,a.jsxs)("div",{className:(0,lU.cn)("flex items-center gap-3",t),children:[(0,a.jsx)(r,{className:(0,lU.cn)("h-5 w-5 shrink-0",l),strokeWidth:1.75}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:(0,lU.cn)("truncate text-base font-semibold leading-tight",s),children:e.value}),(0,a.jsx)("p",{className:(0,lU.cn)("truncate text-xs",n),children:e.label})]})]})}function lZ({item:e,className:t,iconClassName:l}){let s=lW[e.icon];return(0,a.jsxs)("span",{className:(0,lU.cn)("inline-flex items-center gap-2 rounded-full border px-3.5 py-1.5 text-sm font-medium",t),children:[(0,a.jsx)(s,{className:(0,lU.cn)("h-4 w-4 shrink-0",l),strokeWidth:1.75}),(0,a.jsxs)("span",{children:[e.label,e.detail?(0,a.jsxs)("span",{className:"font-normal opacity-70",children:[" · ",e.detail]}):null]})]})}function lY({item:e,className:t,iconWrapClassName:l,detailClassName:s}){let n=lW[e.icon];return(0,a.jsxs)("div",{className:(0,lU.cn)("flex items-start gap-3",t),children:[(0,a.jsx)("span",{className:(0,lU.cn)("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",l),children:(0,a.jsx)(n,{className:"h-[18px] w-[18px]",strokeWidth:1.75})}),(0,a.jsxs)("div",{className:"min-w-0 pt-1",children:[(0,a.jsx)("p",{className:"text-sm font-semibold leading-tight",children:e.label}),e.detail?(0,a.jsx)("p",{className:(0,lU.cn)("mt-0.5 text-xs",s),children:e.detail}):null]})]})}let lX=["A+","A","B","C","D","E","F","G","H"],lQ={"A+":"#1f8a4c",A:"#2f9e5a",B:"#5cb85c",C:"#9acd32",D:"#f2c811",E:"#f5a623",F:"#ef7d2b",G:"#e2482d",H:"#c62828"};
59function lJ({efficiencyClass:e,className:t,compact:l=!1,dark:s=!1}){let n=e?.toUpperCase()??null;return(0,a.jsx)("div",{className:(0,lU.cn)("flex items-end gap-1",t),role:"img","aria-label":"Energieeffizienzklasse",children:lX.map(e=>{let t=n===e;return(0,a.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-1",children:[(0,a.jsx)("div",{className:(0,lU.cn)("w-full rounded-sm transition-all",l?"h-1.5":"h-2",t&&(l?"h-3":"h-4")),style:{backgroundColor:lQ[e],opacity:n&&!t?s?.35:.3:1}}),(0,a.jsx)("span",{className:(0,lU.cn)("text-[10px] font-semibold tabular-nums",t?"opacity-100":"opacity-50"),children:e})]},e)})})}function l0({items:e,className:t,rowClassName:l,iconClassName:s,mutedClassName:n}){return 0===e.length?null:(0,a.jsx)("ul",{className:(0,lU.cn)("grid grid-cols-1 gap-2",t),children:e.map(e=>{let t=lK[e.id]??t9.MapPin,r="walk"===e.mode?ly:lo;return(0,a.jsxs)("li",{className:(0,lU.cn)("flex items-center gap-3",l),children:[(0,a.jsx)(t,{className:(0,lU.cn)("h-4 w-4 shrink-0",s),strokeWidth:1.75}),(0,a.jsx)("span",{className:"min-w-0 flex-1 text-sm font-medium",children:e.label}),(0,a.jsxs)("span",{className:(0,lU.cn)("flex items-center gap-1.5 text-sm tabular-nums",n),children:[(0,a.jsx)(r,{className:"h-3.5 w-3.5",strokeWidth:1.75}),e.minutes," Min."]})]},e.id)})})}function l1({score:e,size:t=64,trackClassName:l,className:s}){let n=(t-8)/2,r=2*Math.PI*n,i=Math.max(0,Math.min(100,e));return(0,a.jsxs)("div",{className:(0,lU.cn)("relative shrink-0",s),style:{width:t,height:t},children:[(0,a.jsxs)("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,role:"img","aria-label":`Lage-Score ${i} von 100`,children:[(0,a.jsx)("title",{children:"Lage-Score"}),(0,a.jsx)("circle",{cx:t/2,cy:t/2,r:n,fill:"none",strokeWidth:6,className:(0,lU.cn)("stroke-current opacity-15",l)}),(0,a.jsx)("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"#5aa273",strokeWidth:6,strokeLinecap:"round",strokeDasharray:r,strokeDashoffset:r*(1-i/100),transform:`rotate(-90 ${t/2} ${t/2})`})]}),(0,a.jsx)("span",{className:"absolute inset-0 flex items-center justify-center text-sm font-bold tabular-nums",children:i})]})}function l2({items:e,className:t,rowClassName:l,labelClassName:s,valueClassName:n}){return(0,a.jsx)("dl",{className:(0,lU.cn)("divide-y",t),children:e.map(e=>(0,a.jsxs)("div",{className:(0,lU.cn)("grid grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)] gap-4 py-2.5 text-sm",l),children:[(0,a.jsx)("dt",{className:(0,lU.cn)("min-w-0 break-words leading-snug [hyphens:auto]",s),children:e.label}),(0,a.jsx)("dd",{className:(0,lU.cn)("min-w-0 break-words font-medium leading-snug",n),children:e.value})]},e.label))})}function l3({onClick:e,children:t,className:l,icon:s=lT.MessageSquare}){return(0,a.jsxs)("button",{type:"button",onClick:e,className:(0,lU.cn)("inline-flex h-12 w-full items-center justify-center gap-2.5 rounded-xl bg-[#5aa273] px-6 text-base font-semibold text-[#ffffff] shadow-[0_8px_20px_rgba(90,162,115,0.28)] transition hover:bg-[#4f996b] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#5aa273]/50",l),children:[(0,a.jsx)(s,{className:"h-5 w-5",strokeWidth:2}),t]})}function l5({price:e,subline:t,onClick:l,visible:s,dark:n=!1}){return s?(0,a.jsx)("div",{className:(0,lU.cn)("no-print fixed inset-x-0 bottom-0 z-40 border-t px-4 pb-[max(env(safe-area-inset-bottom),12px)] pt-3 backdrop-blur-xl lg:hidden",n?"border-[#ffffff]/10 bg-[#14171c]/90 text-[#f3efe7]":"border-[#dedbd3] bg-[#ffffff]/92 text-[#20232d]"),children:(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate text-lg font-bold leading-tight",children:e}),t?(0,a.jsx)("p",{className:"truncate text-xs opacity-70",children:t}):null]}),(0,a.jsxs)("button",{type:"button",onClick:l,className:"inline-flex h-11 shrink-0 items-center gap-2 rounded-xl bg-[#5aa273] px-5 text-sm font-semibold text-[#ffffff] shadow-md transition hover:bg-[#4f996b]",children:[(0,a.jsx)(lT.MessageSquare,{className:"h-4 w-4",strokeWidth:2}),"Anfragen"]})]})}):null}function l4({children:e,className:t}){return(0,a.jsxs)("li",{className:(0,lU.cn)("flex items-start gap-2.5 text-sm",t),children:[(0,a.jsx)(lc.Check,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#5aa273]",strokeWidth:2.5}),(0,a.jsx)("span",{children:e})]})}function l7({text:e,className:t,paragraphClassName:l}){let s=new Map,n=e=>{let t=(s.get(e)??0)+1;return s.set(e,t),`${e.slice(0,24)}#${e.length}#${t}`},r=e.split(/\n{2,}|\r\n{2,}/).map(e=>
59e.trim()).filter(Boolean);return(0,a.jsx)("div",{className:(0,lU.cn)("space-y-4",t),children:r.map(e=>{let t=e.split(/\n/);return(0,a.jsx)("p",{className:l,children:t.map((e,l)=>(0,a.jsxs)("span",{children:[e,l<t.length-1?(0,a.jsx)("br",{}):null]},n(e)))},n(e))})})}function l6({images:e,index:t,onClose:l,onIndexChange:s}){if((0,g.useEffect)(()=>{if(null===t)return;let a=a=>{"Escape"===a.key&&l(),"ArrowRight"===a.key&&s((t+1)%e.length),"ArrowLeft"===a.key&&s((t-1+e.length)%e.length)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e.length,t,l,s]),null===t||!e[t])return null;let n=e[t],r=n.url||n.filename||"";return(0,a.jsxs)("div",{className:"no-print fixed inset-0 z-[60] flex items-center justify-center bg-[#000000]/90 p-4",role:"dialog","aria-modal":"true","aria-label":"Bildansicht",children:[(0,a.jsx)("button",{type:"button",onClick:l,className:"absolute inset-0 h-full w-full cursor-zoom-out","aria-label":"SchlieÃen"}),(0,a.jsx)("button",{type:"button",onClick:l,className:"absolute right-4 top-4 z-10 flex h-11 w-11 items-center justify-center rounded-full bg-[#ffffff]/10 text-[#ffffff] hover:bg-[#ffffff]/20","aria-label":"SchlieÃen",children:(0,a.jsx)(lB.X,{className:"h-5 w-5"})}),e.length>1?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>s((t-1+e.length)%e.length),className:"absolute left-3 top-1/2 z-10 flex h-11 w-11 -translate-y-1/2 items-center justify-center rounded-full bg-[#ffffff]/10 text-[#ffffff] hover:bg-[#ffffff]/20","aria-label":"Vorheriges Bild",children:(0,a.jsx)(lu.ChevronLeft,{className:"h-6 w-6"})}),(0,a.jsx)("button",{type:"button",onClick:()=>s((t+1)%e.length),className:"absolute right-3 top-1/2 z-10 flex h-11 w-11 -translate-y-1/2 items-center justify-center rounded-full bg-[#ffffff]/10 text-[#ffffff] hover:bg-[#ffffff]/20","aria-label":"Nächstes Bild",children:(0,a.jsx)(lh.ChevronRight,{className:"h-6 w-6"})})]}):null,(0,a.jsxs)("figure",{className:"relative z-[1] flex max-h-full max-w-6xl flex-col items-center gap-3",children:[(0,a.jsx)("img",{src:r,alt:n.alt||n.caption||"",className:"max-h-[82vh] max-w-full rounded-lg object-contain"}),(0,a.jsxs)("figcaption",{className:"text-sm text-[#ffffff]/80",children:[n.caption?`${n.caption} \xb7 `:"",t+1," / ",e.length]})]})]})}let l8=[{cls:"A+",from:0,to:30,color:"#0f8a3c"},{cls:"A",from:30,to:50,color:"#3aa03f"},{cls:"B",from:50,to:75,color:"#7cc242"},{cls:"C",from:75,to:100,color:"#c6d92d"},{cls:"D",from:100,to:130,color:"#f5e614"},{cls:"E",from:130,to:160,color:"#f8b21b"},{cls:"F",from:160,to:200,color:"#ef7f1a"},{cls:"G",from:200,to:250,color:"#e8451c"},{cls:"H",from:250,to:300,color:"#c8181c"}];function l9({value:e,efficiencyClass:t,className:l,dark:s=!1}){let n=null!==e?Math.max(0,Math.min(300,e)):null,r=t?.toUpperCase()??null;return(0,a.jsxs)("div",{className:(0,lU.cn)("w-full",l),"aria-hidden":"true",children:[null!==n?(0,a.jsx)("div",{className:"relative mb-1 h-6",children:(0,a.jsxs)("div",{className:"absolute whitespace-nowrap rounded-md bg-[#20232d] px-2 py-0.5 text-[11px] font-bold text-[#ffffff]",style:{left:`${n/300*100}%`,transform:`translateX(${n/300<.15?-8:n/300>.85?-92:-50}%)`},children:[e?.toLocaleString("de-DE",{maximumFractionDigits:1})," ","kWh/(m²·a)"]})}):null,(0,a.jsxs)("div",{className:"relative flex h-7 w-full overflow-hidden rounded-md",children:[l8.map(e=>(0,a.jsx)("div",{className:"flex items-center justify-center text-[11px] font-bold text-[#ffffff]",style:{width:`${(e.to-e.from)/300*100}%`,backgroundColor:e.color,opacity:r&&r!==e.cls?.55:1,outline:r===e.cls?"2px solid #20232d":"none",outlineOffset:"-2px"},children:e.cls},e.cls)),null!==n?(0,a.jsx)("div",{className:"absolute top-0 h-full w-0.5 -translate-x-1/2 bg-[#20232d]",style:{left:`${n/300*100}%`}}):null]}),(0,a.jsxs)("div",{className:(0,lU.cn)("mt-1 flex justify-between text-[10px] tabular-nums",s?"text-[#a7a39a]":"text-[#727887]"),children:[[0,50,100,150,200,250].map(e=>(0,a.jsx)("span",{children:e},e)),(0,a.jsx)("span",{children:">250"})]})]})}function ae({items:e,className:t,bulletClassName:l="bg-[#5aa273]",textClassName:s}){return 0===e.length?null:(0,a.jsx)("ul",{className:(0,lU.cn)("space-y-1.5",t),children:e.map(e=>(0,a.jsxs)("li",{className:(0,lU.cn)("flex items-start gap-2.5 text-sm",s),children:[(0,a.jsx)("span",{className:(0,lU.cn)("mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full",l)}),(0,a.jsx)("span",{children:e})]},e))})}function at({items:e,className:t,rowClassName:l,iconClassName:s,mutedClassName:n}){return 0===e.length?null:(0,a.jsx)("ul",{className:(0,lU.cn)("space-y-2",t),children:e.map(e=>(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:(0,lU.cn)("flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-semibold transition hover:opacity-80",l),children:[(0,a.jsx)(lk.FileText,{className:(0,lU.cn)("h-4 w-4 shrink-0",s),strokeWidth:1.75}),(0,a.jsx)("span",{className:"line-clamp-2 min-w-0 flex-1 [overflow-wrap:anywhere]",children:e.label}),(0,a.jsx)(lg.Download,{className:(0,lU.cn)("h-4 w-4 shrink-0",n),strokeWidth:1.75})]})},e.id))})}let al=(0,c.default)(()=>
59e.A(532012),{loadableGenerated:{modules:[801342]},ssr:!1}),aa="text-[#20232d]",as="text-[#727887]",an="border-[#e6e3dc]",ar=({title:e,children:t})=>(0,a.jsxs)("section",{className:`border-t ${an} pt-8`,children:[(0,a.jsx)("h2",{className:`mb-5 text-xs font-semibold uppercase tracking-[0.2em] ${as}`,children:e}),t]}),ai=(0,o.observer)(function({project:e,projectId:t,isPublicAccess:l=!1,onProjectChange:s,onProjectRefresh:n}){let r=tU(e,{isPublicAccess:l}),i=lq(t,e.title),o=tK(r);return(0,a.jsxs)("div",{"data-listing-template":"clear",className:`min-h-screen bg-white pb-24 lg:pb-20 ${aa}`,children:[(0,a.jsxs)("div",{className:"mx-auto max-w-[900px] px-5 pt-10 sm:px-8",children:[(0,a.jsxs)("header",{children:[(0,a.jsx)("p",{className:`text-xs font-semibold uppercase tracking-[0.2em] ${as}`,children:r.badges.join(" · ")}),(0,a.jsx)("h1",{className:`mt-4 break-words [hyphens:auto] text-3xl font-black leading-[1.08] tracking-[-0.025em] sm:text-[2.75rem] ${aa}`,children:r.title}),r.locationLine?(0,a.jsxs)("p",{className:`mt-4 flex items-center gap-2 text-lg ${as}`,children:[(0,a.jsx)(t9.MapPin,{className:"h-5 w-5 text-[#5aa273]",strokeWidth:1.75}),r.locationLine]}):null,(0,a.jsxs)("div",{className:`mt-8 flex flex-col gap-6 border-y ${an} py-6 sm:flex-row sm:items-center sm:justify-between`,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:`text-4xl font-black tabular-nums tracking-tight sm:text-5xl ${aa}`,children:r.priceFormatted}),(0,a.jsx)("p",{className:`mt-1.5 text-sm ${as}`,children:[r.isSale?"Kaufpreis":"Miete",r.priceType,r.pricePerSqm].filter(Boolean).join(" · ")})]}),(0,a.jsx)(l3,{onClick:i,className:"sm:w-auto sm:px-7",children:"Anbieter kontaktieren"})]}),r.keyFacts.length>0?(0,a.jsx)("ul",{className:`mt-5 flex flex-wrap gap-x-6 gap-y-2 text-base ${aa}`,children:r.keyFacts.map(e=>(0,a.jsxs)("li",{className:"flex items-baseline gap-1.5",children:[(0,a.jsx)("span",{className:"font-semibold tabular-nums",children:e.value}),(0,a.jsx)("span",{className:`text-sm ${as}`,children:e.label})]},e.label))}):null]}),(0,a.jsx)("div",{className:"mt-10",children:r.images.length>0?(0,a.jsx)(tw.ProjectImageGallery,{images:r.images,projectTitle:r.title,enableSorting:!l,projectId:t,onImagesChanged:n}):(0,a.jsxs)("div",{className:"flex h-[360px] flex-col items-center justify-center gap-4 roun
59ded-xl bg-[#f7f5f1]",children:[(0,a.jsx)(d.default,{src:"/loader.gif",alt:"Sloothy",width:144,height:144,unoptimized:!0,className:"h-36 w-36 object-contain"}),(0,a.jsx)("p",{className:`text-sm font-medium ${as}`,children:"Bilder werden vorbereitet"})]})}),(0,a.jsxs)("div",{className:"mt-12 space-y-12",children:[(r.description||!l)&&(0,a.jsxs)(ar,{title:"Beschreibung",children:[r.description?(0,a.jsx)(tv,{content:r.description,className:"prose prose-lg max-w-none prose-p:leading-[1.75] prose-p:text-[#20232d] [&_p]:text-justify [&_p]:[hyphens:auto] [&_p+p]:mt-4"}):(0,a.jsx)("p",{className:as,children:"Keine Beschreibung hinterlegt."}),r.targetGroup?(0,a.jsxs)("p",{className:`mt-6 rounded-xl bg-[#f7f5f1] px-5 py-4 text-base leading-relaxed ${aa}`,children:[(0,a.jsx)("span",{className:"mr-2 font-semibold",children:"Passt zu:"}),r.targetGroup]}):null,l?null:(0,a.jsx)(ty,{project:e,projectId:t,onProjectChange:s})]}),r.highlights.length>0?(0,a.jsx)(ar,{title:"Ausstattung",children:(0,a.jsx)("ul",{className:"grid grid-cols-1 gap-x-8 gap-y-3 sm:grid-cols-2",children:r.highlights.map(e=>(0,a.jsxs)(l4,{className:`text-base ${aa}`,children:[e.label,e.detail?(0,a.jsxs)("span",{className:as,children:[" · ",e.detail]}):null]},`${e.icon}-${e.label}`))})}):null,r.hasEnergyData?(0,a.jsx)(ar,{title:"Energie",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-[200px_minmax(0,1fr)] sm:items-start",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:`text-5xl font-black tabular-nums ${aa}`,children:r.energy.efficiencyClass??"â"}),(0,a.jsx)("p",{className:`mt-1 text-sm ${as}`,children:"Energieeffizienzklasse"}),(0,a.jsx)(lJ,{efficiencyClass:r.energy.efficiencyClass,compact:!0,className:"mt-4"})]}),(0,a.jsx)(l2,{items:[{label:"Endenergie",value:r.energy.finalEnergyValue},{label:"Ausweisart",value:r.energy.certificateType},{label:"Energieträger",value:r.energy.primarySource},{label:"Heizung",value:r.energy.heatingType},{label:"Wärmeerzeuger Baujahr",value:r.energy.heatGeneratorYear},{label:"Gültig bis",value:r.energy.validUntil}].filter(e=>e.value),className:"divide-[#efece6]",labelClassName:as,valueClassName:aa})]})}):null,(r.hasMapLocation||r.travelTimes.length>0||r.locationText||r.locationScore)&&(0,a.jsxs)(ar,{title:"Lage",children:[r.hasMapLocation&&r.mapAddress?(0,a.jsx)("div",{className:"h-[320px] overflow-hidden rounded-2xl bg-[#f7f5f1]",children:(0,a.jsx)(al,{address:r.mapAddress,showStyleToggle:!1})}):null,(0,a.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-8 sm:grid-cols-[minmax(0,1fr)_240px]",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[r.locationText?(0,a.jsx)(l7,{text:r.locationText,paragraphClassName:`text-base leading-[1.75] ${aa}`}):null,(0,a.jsx)(ae,{items:o,textClassName:aa}),r.locationScore?(0,a.jsxs)("p",{className:`text-sm ${as}`,children:[(0,a.jsxs)("span",{className:`font-semibold ${aa}`,children:["Lage-Score ",r.locationScore.score,"/100",r.locationScore.label?` \xb7 ${r.locationScore.label}`:""]}),r.locationScore.reason?` - ${r.locationScore.reason}`:""]}):null]}),r.travelTimes.length>0?(0,a.jsx)(l0,{items:r.travelTimes,iconClassName:"text-[#5aa273]",mutedClassName:as}):null]})]}),tH(r).map(e=>(0,a.jsx)(ar,{title:e.title,children:(0,a.jsx)(l2,{items:e.items,className:"divide-[#efece6]",rowClassName:"grid-cols-[minmax(0,1fr)_minmax(0,1.6fr)] py-3 text-base",labelClassName:as,valueClassName:aa})},e.id)),r.textBlocks.map(e=>(0,a.jsx)(ar,{title:e.label,children:"url"===e.id?(0,a.jsx)("a",{href:e.text,target:"_blank",rel:"noreferrer",className:"break-all text-base font-medium text-[#3a9168] hover:underline",children:e.text}):(0,a.jsx)(l7,{text:e.text,paragraphClassName:`text-base leading-[1.75] ${aa}`})},e.id)),(0,a.jsxs)("section",{className:"rounded-[1.75rem] bg-[#20232d] px-6 py-9 text-[#ffffff] sm:px-10",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.2em] text-[#8fd9b4]",children:"Kontakt"}),(0,a.jsx)("h2",{className:"mt-2 text-2xl font-black tracking-tight sm:text-3xl",children:"Interesse? Schreiben Sie dem Eigentümer."}),(0,a.jsx)("p",{className:"mt-2 max-w-lg text-base text-[#ffffff]/70",children:"Dieses Inserat wird direkt über Sloothy vermarktet, ohne Käuferprovision."}),(0,a.jsxs)("div",{className:"mt-6 flex flex-col gap-4 sm:flex-row sm:items-center",children:[(0,a.jsx)(l3,{onClick:i,className:"sm:w-auto
59sm:px-7",children:"Anbieter kontaktieren"}),(0,a.jsxs)("p",{className:"text-sm text-[#ffffff]/60",children:[r.priceFormatted,r.listingId?` \xb7 Inserat-ID ${r.listingId}`:""]})]})]})]})]}),(0,a.jsx)(l5,{price:r.priceFormatted,subline:r.locationLine,onClick:i,visible:l})]})});var ao=e.i(950004);let ac=(0,c.default)(()=>e.A(532012),{loadableGenerated:{modules:[801342]},ssr:!1}),ad="text-[#20232d]",au="text-[#727887]",ah="border-[#dedbd3]",am=({index:e,children:t})=>(0,a.jsxs)("div",{className:"mb-5 flex items-baseline gap-3",children:[(0,a.jsx)("span",{className:"text-xs font-semibold tabular-nums tracking-[0.18em] text-[#5aa273]",children:e}),(0,a.jsx)("h2",{className:`text-xl font-bold tracking-tight sm:text-2xl ${ad}`,children:t})]}),ap=(0,o.observer)(function({project:e,projectId:t,isPublicAccess:l=!1,onProjectChange:s,onProjectRefresh:n}){let r=tU(e,{isPublicAccess:l}),i=lq(t,e.title),o=r.images[0],c=o?.url||o?.filename||null,u=tq(r),h=tK(r),m=0,p=()=>String(++m).padStart(2,"0");return(0,a.jsxs)("div",{"data-listing-template":"editorial",className:`min-h-screen bg-[#fbfaf8] pb-24 lg:pb-16 ${ad}`,children:[(0,a.jsxs)("section",{className:"mx-auto max-w-[1500px] px-4 pt-5 sm:px-8 lg:px-10",children:[(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-[1.75rem] bg-[#efeee9]",children:[c?(0,a.jsx)("img",{src:c,alt:o?.alt||e.title,className:"h-[118vw] max-h-[620px] min-h-[360px] w-full object-cover sm:h-[56vw]"}):(0,a.jsxs)("div",{className:"flex h-[420px] w-full flex-col items-center justify-center gap-4",children:[(0,a.jsx)(d.default,{src:"/loader.gif",alt:"Sloothy",width:144,height:144,unoptimized:!0,className:"h-36 w-36 object-contain"}),(0,a.jsx)("p",{className:`text-sm font-medium ${au}`,children:"Bilder werden vorbereitet"})]}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-[#14171c]/90 via-[#14171c]/45 via-45% to-[#14171c]/10"}),(0,a.jsx)("div",{className:"absolute left-5 top-5 flex flex-wrap gap-2 sm:left-8 sm:top-8",children:r.badges.map((e,t)=>(0,a.jsx)("span",{className:0===t?"rounded-full bg-[#5aa273] px-3 py-1 text-xs font-semibold text-[#ffffff] shadow-sm":"rounded-full bg-[#ffffff]/90 px-3 py-1 text-xs font-semibold text-[#20232d] backdrop-blur",children:e},e))}),r.images.length>1?(0,a.jsxs)("span",{className:"absolute right-5 top-5 hidden items-center gap-1.5 rounded-full bg-[#000000]/45 px-3 py-1 text-xs font-medium text-[#ffffff] backdrop-blur sm:inline-flex sm:right-8 sm:top-8",children:[(0,a.jsx)(ao.Images,{className:"h-3.5 w-3.5",strokeWidth:2}),r.images.length," Fotos"]}):null,(0,a.jsx)("div",{className:"absolute inset-x-0 bottom-0 p-5 sm:p-8 lg:p-10",children:(0,a.jsxs)("div",{className:"flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between",children:[(0,a.jsxs)("div",{className:"max-w-3xl",children:[(0,a.jsx)("h1",{className:"break-words [hyphens:auto] text-2xl font-black leading-[1.05] tracking-[-0.02em] text-[#ffffff] [text-shadow:0_2px_18px_rgba(0,0,0,0.55)] sm:text-4xl lg:text-[2.75rem]",children:r.title}),r.locationLine?(0,a.jsxs)("p",{className:"mt-3 flex items-center gap-2 text-base text-[#ffffff]/90 sm:text-lg",children:[(0,a.jsx)(t9.MapPin,{className:"h-5 w-5 shrink-0",strokeWidth:1.75}),r.locationLine]}):null]}),(0,a.jsxs)("div",{className:"hidden shrink-0 rounded-2xl bg-[#ffffff]/95 px-5 py-4 shadow-lg backdrop-blur sm:block lg:text-right",children:[(0,a.jsxs)("p",{className:`text-xs font-semibold uppercase tracking-[0.12em] ${au}`,children:[r.isSale?"Kaufpreis":"Miete",r.priceType?` \xb7 ${r.priceType}`:""]}),(0,a.jsx)("p",{className:`mt-1 text-2xl font-black tabular-nums tracking-tight sm:text-3xl ${ad}`,children:r.priceFormatted}),r.pricePerSqm?(0,a.jsx)("p",{className:`mt-0.5 text-sm ${au}`,children:r.pricePerSqm}):null]})]})})]}),(0,a.jsxs)("div",{className:`mt-4 flex items-end justify-between rounded-2xl border ${ah} bg-white px-5 py-4 sm:hidden`,children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:`text-xs font-semibold uppercase tracking-[0.12em] ${au}`,children:[r.isSale?"Kaufpreis":"Miete",r.priceType?` \xb7 ${r.priceType}`:""]}),(0,a.jsx)("p",{className:`mt-1 text-2xl font-black tabular-nums tracking-tight ${ad}`,children:r.priceFormatted})]}),r.pricePerSqm?(0,a.jsx)("p",{className:`text-sm ${au}`,children:r.pricePerSqm}):null]}),r.keyFacts.length>0?(0,a.jsx)("div",{className:`mt-4 grid grid-cols-2 gap-x-6 gap-y-4 rounded-2xl border ${ah} bg-white px-5 py-4 sm:grid-cols-3 lg:grid-cols-6 lg:px-8`,children:r.keyFacts.map(e=>(0,a.jsx)(lV,{fact:e,iconClassName:"text-[#5aa273]",valueClassName:ad,labelClassName:au},e.label))}):null]}),(0,a.jsxs)("div",{className:"mx-auto grid grid-cols-1 max-w-[1500px] gap-10 px-4 pt-10 sm:px-8 lg:px-10 xl:grid-cols-[minmax(0,1fr)_360px] xl:gap-12",children:[(0,a.jsxs)("main",{className:"@container min-w-0 space-y-12",children:[(r.description||!l)&&(0,a.jsxs)("section",{children:[(0,a.jsx)(am,{index:p(),children:"Ãber diese Immobilie"}),r.description?(0,a.jsx)(tv,{content:r.description,className:"prose prose-lg max-w-none prose-p:leading-relaxed prose-p:text-[#20232d] first-of-type:prose-p:text-xl first-of-type:prose-p:font-medium [&_p]:text-justify [&_p]:[hyphens:auto] [&_p+p]:mt-4"}):(0,a.jsx)("p",{className:au,children:"Keine Beschreibung hinterlegt."}),r.targetGroup?(0,a.jsxs)("div",{className:"mt-6 rounded-2xl border border-[#cfeadb] bg-[#f2faf5] px-5 py-4",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-[#3a9168]",children:"Für wen passt das Objekt"}),(0,a.jsx)("p",{className:`mt-1.5 text-base leading-relaxed ${ad}`,children:r.targetGroup})]}):null,l?null:(0,a.jsx)(ty,{project:e,projectId:t,onProjectChange:s})]}),r.highlights.length>0?(0,a.jsxs)("section",{children:[(0,a.jsx)(am,{index:p(),children:"Das spricht für das Objekt"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2.5",children:r.highlights.map(e=>(0,a.jsx)(lZ,{item:e,className:`border-[#dedbd3] bg-white ${ad}`,iconClassName:"text-[#5aa273]"}
59,`${e.icon}-${e.label}`))})]}):null,r.images.length>0?(0,a.jsxs)("section",{children:[(0,a.jsx)(am,{index:p(),children:"Bilder"}),(0,a.jsx)(tw.ProjectImageGallery,{images:r.images,projectTitle:r.title,enableSorting:!l,projectId:t,onImagesChanged:n})]}):null,(r.hasMapLocation||r.travelTimes.length>0||r.locationText||r.locationScore)&&(0,a.jsxs)("section",{children:[(0,a.jsx)(am,{index:p(),children:"Lage und Umgebung"}),(0,a.jsxs)("div",{className:`overflow-hidden rounded-2xl border ${ah} bg-white`,children:[r.hasMapLocation&&r.mapAddress?(0,a.jsx)("div",{className:"h-[320px] bg-[#efeee9]",children:(0,a.jsx)(ac,{address:r.mapAddress,showStyleToggle:!1})}):null,(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 p-5 sm:p-6 @3xl:grid-cols-[minmax(0,1fr)_260px]",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[r.locationLine?(0,a.jsxs)("p",{className:`flex items-center gap-2 text-base font-semibold ${ad}`,children:[(0,a.jsx)(t9.MapPin,{className:"h-4 w-4 text-[#5aa273]",strokeWidth:2}),r.addressLine||r.locationLine]}):null,r.locationText?(0,a.jsx)(l7,{text:r.locationText,paragraphClassName:`text-base leading-relaxed ${ad}`}):null,(0,a.jsx)(ae,{items:h,textClassName:ad}),r.locationScore?(0,a.jsxs)("div",{className:"flex items-center gap-4 roun
59ded-xl bg-[#fbfaf8] p-4",children:[(0,a.jsx)(l1,{score:r.locationScore.score,size:60,trackClassName:"text-[#20232d]"}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:`text-sm font-semibold ${ad}`,children:["Lage-Score"," ",r.locationScore.label?`\xb7 ${r.locationScore.label}`:""]}),r.locationScore.reason?(0,a.jsx)("p",{className:`mt-0.5 text-sm ${au}`,children:r.locationScore.reason}):null]})]}):null]}),r.travelTimes.length>0?(0,a.jsxs)("div",{className:"rounded-xl bg-[#fbfaf8] p-4",children:[(0,a.jsx)("p",{className:`mb-3 text-xs font-semibold uppercase tracking-[0.12em] ${au}`,children:"Erreichbarkeit"}),(0,a.jsx)(l0,{items:r.travelTimes,iconClassName:"text-[#5aa273]",mutedClassName:au})]}):null]})]})]}),r.hasEnergyData?(0,a.jsxs)("section",{children:[(0,a.jsx)(am,{index:p(),children:"Energie"}),(0,a.jsxs)("div",{className:`grid grid-cols-1 gap-6 rounded-2xl border ${ah} bg-white p-5 sm:p-6 @3xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]`,children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,a.jsx)("span",{className:`text-4xl font-black tabular-nums ${ad}`,children:r.energy.efficiencyClass??"â"}),(0,a.jsx)("span",{className:`text-sm ${au}`,children:"Energieeffizienzklasse"})]}),(0,a.jsx)(lJ,{efficiencyClass:r.energy.efficiencyClass,className:"mt-4"})]}),(0,a.jsx)(l2,{items:[{label:"Endenergie",value:r.energy.finalEnergyValue},{label:"Ausweisart",value:r.energy.certificateType},{label:"Energieträger",value:r.energy.primarySource},{label:"Heizung",value:r.energy.heatingType},{label:"Wärmeerzeuger Baujahr",value:r.energy.heatGeneratorYear},{label:"Gültig bis",value:r.energy.validUntil}].filter(e=>e.value),className:"divide-[#efeee9]",labelClassName:au,valueClassName:ad})]})]}):null,tH(r).length>0?(0,a.jsxs)("section",{children:[(0,a.jsx)(am,{index:p(),children:"Weitere Angaben"}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-x-10 gap-y-8 @3xl:grid-cols-2",children:tH(r).map(e=>(0,a.jsxs)("div",{className:"break-inside-avoid",children:[(0,a.jsx)("h3",{className:`mb-2 border-b-2 border-[#20232d] pb-2 text-sm font-bold uppercase tracking-[0.1em] ${ad}`,children:e.title}),(0,a.jsx)(l2,{items:e.items,className:"divide-[#e9e6df]",labelClassName:au,valueClassName:ad})]},e.id))})]}):null,r.textBlocks.length>0?(0,a.jsxs)("section",{children:[(0,a.jsx)(am,{index:p(),children:"Weitere Informationen"}),(0,a.jsx)("div",{className:"space-y-6",children:r.textBlocks.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:`mb-1.5 text-xs font-semibold uppercase tracking-[0.12em] ${au}`,children:e.label}),"url"===e.id?(0,a.jsx)("a",{href:e.text,target:"_blank",rel:"noreferrer",className:"break-all text-base font-medium text-[#3a9168] hover:underline",children:e.text}):(0,a.jsx)(l7,{text:e.text,paragraphClassName:`text-base leading-relaxed ${ad}`})]},e.id))})]}):null]}),(0,a.jsxs)("aside",{className:"space-y-5 xl:sticky xl:top-6 xl:self-start",children:[(0,a.jsxs)("section",{className:`rounded-[1.5rem] border ${ah} bg-white p-6 shadow-[0_14px_36px_rgba(32,35,45,0.08)]`,children:[(0,a.jsx)("p",{className:`text-xs font-semibold uppercase tracking-[0.12em] ${au}`,children:r.isSale?"Kaufpreis":"Miete"}),(0,a.jsx)("p",{className:`mt-1 text-3xl font-black tabular-nums tracking-tight ${ad}`,children:r.priceFormatted}),(0,a.jsx)("p",{className:`mt-1 text-sm ${au}`,children:[r.priceType,r.pricePerSqm].filter(Boolean).join(" · ")||" "}),r.monthlyServiceCharge?(0,a.jsxs)("p",{className:`mt-3 border-t ${ah} pt-3 text-sm ${au}`,children:["Hausgeld"," ",(0,a.jsx)("span",{className:`font-semibold ${ad}`,children:r.monthlyServiceCharge})," ","/ Monat"]}):null,(0,a.jsx)(l3,{onClick:i,className:"mt-5",children:"Anbieter kontaktieren"}),(0,a.jsx)("p",{className:`mt-4 text-sm leading-relaxed ${au}`,children:"Verkauf direkt vom Eigentümer über Sloothy - ohne Käuferprovision."}),r.listingId?(0,a.jsxs)("p",{className:`mt-3 text-xs ${au}`,children:["Inserat-ID ",r.listingId]}):null]}),u.length>0?(0,a.jsxs)("section",{className:`rounded-[1.5rem] border ${ah} bg-white p-6`,children:[(0,a.jsx)("p",{className:`text-xs font-semibold uppercase tracking-[0.12em] ${au}`,children:"Unterlagen"}),(0,a.jsx)(at,{items:u,className:"mt-3",rowClassName:`border ${ah} bg-[#fbfaf8] ${ad}`,iconClassName:"text-[#5aa273]",mutedClassName:au})]}):null,(0,a.jsxs)("section",{className:`rounded-[1.5rem] border ${ah} bg-[#f4f2ee] p-6`,children:[(0,a.jsx)("h2",{className:`text-base font-bold ${ad}`,children:"Sie verkaufen selbst?"}),(0,a.jsx)("p",{className:`mt-1.5 text-sm leading-relaxed ${au}`,children:"Stellen Sie Ihre Immobilie mit Sloothy in wenigen Schritten online."}),(0,a.jsx)("a",{href:"/haus-verkaufen",className:`mt-4 flex h-11 items-center justify-center rounded-xl border ${ah} bg-white text-sm font-semibold ${ad} transition hover:bg-[#fbfaf8]`,children:"Mehr erfahren"})]})]})]}),(0,a.jsx)(l5,{price:r.priceFormatted,subline:r.locationLine,onClick:i,visible:l})]})}),ag={"Baden-Württemberg":5,Bayern:3.5,Berlin:6,Brandenburg:6.5,Bremen:5.5,Hamburg:5.5,Hessen:6,"Mecklenburg-Vorpommern":6,Niedersachsen:5,"Nordrhein-Westfalen":6.5,"Rheinland-Pfalz":5,Saarland:6.5,Sachsen:5.5,"Sachsen-Anhalt":5,"Schleswig-Holstein":6.5,Thüringen:5};function ax(e,t,l=3.8,a=2,s=10){let n=Math.round(e.total*t/100),r=Math.max(0,e.total-n),i=l/100,o=a/100,c=r*(i+o),d=1+i,u=i>0?Math.max(0,r*d**s-c*(d**s-1)/i):Math.max(0,r-c*s),h=i>0&&o>0?Math.log(1+i/o)/Math.log(1+i):r/c,m=r-u;return{equityRate:t,equity:n,loan:r,monthlyRate:c/12,remainingDebt:u,repaidAfterFixed:m,termYears:h,loanToValue:e.price>0?r/e.price:0,firstYearInterest:r*i,firstYearRepayment:r*o,interestPaidFixed:Math.max(0,c*s-m)}}let af=(e,t=2)=>
59`${e.toLocaleString("de-DE",{minimumFractionDigits:t,maximumFractionDigits:t})} %`,ab=(0,c.default)(()=>e.A(532012),{loadableGenerated:{modules:[801342]},ssr:!1}),ak=({t:e,children:t,className:l})=>(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",e.accent,l),children:t}),av=({items:e,t,onStrong:l=!1,className:s,size:n="base"})=>(0,a.jsx)("ul",{className:(0,lU.cn)("space-y-2.5",s),children:e.map(e=>(0,a.jsxs)("li",{className:(0,lU.cn)("flex items-start gap-3 leading-relaxed","sm"===n?"text-sm":"text-base"),children:[(0,a.jsx)("span",{className:(0,lU.cn)("mt-[9px] h-2 w-2 shrink-0 rounded-full",l?"bg-current opacity-60":t.bullet)}),(0,a.jsx)("span",{children:e})]},e))}),ay=({rows:e,t,className:l,highlightLast:s=!1})=>{let n=e.filter(e=>e.value);return 0===n.length?null:(0,a.jsx)("dl",{className:(0,lU.cn)("divide-y px-6 py-2 sm:px-7",t.strong,t.strongDivide,t.radius,l),children:n.map((e,t)=>{let l=s&&t===n.length-1;return(0,a.jsxs)("div",{className:(0,lU.cn)("grid grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)] gap-4 py-3",l&&"text-lg font-extrabold"),children:[(0,a.jsx)("dt",{className:"min-w-0 break-words font-semibold [hyphens:auto]",children:e.label}),(0,a.jsx)("dd",{className:(0,lU.cn)("break-words tabular-nums",!l&&"font-normal"),children:e.value})]},e.label)})})},aj=({rows:e,t,className:l,emphasizeLast:s=!1})=>{let n=e.filter(e=>e.value);return 0===n.length?null:(0,a.jsx)("dl",{className:(0,lU.cn)("divide-y",t.divide,l),children:n.map((e,l)=>{let r=s&&l===n.length-1;return(0,a.jsxs)("div",{className:(0,lU.cn)("flex items-baseline justify-between gap-4 py-3",r?"text-base font-extrabold":"text-sm"),children:[(0,a.jsx)("dt",{className:(0,lU.cn)("min-w-0",r?t.ink:t.muted),children:e.label}),(0,a.jsx)("dd",{className:(0,lU.cn)("shrink-0 text-right font-semibold tabular-nums",t.ink,r&&"text-xl"),children:e.value})]},e.label)})})},aN=({t:e,children:t,className:l,strong:s=!1,panel:n=!1})=>(0,a.jsx)("div",{className:(0,lU.cn)("h-full p-6 sm:p-7",e.radius,s?e.strong:n?e.panel:(0,lU.cn)(e.surface,"border",e.line),l),children:t});function aw({m:e,t,image:l,onImageClick:s,title:n="Ãberblick Immobilie",reverse:r=!1,hideTitle:i=!1}){let o=l?.url||l?.filename;return(0,a.jsx)("div",{className:"@container/ov",children:(0,a.jsxs)("div",{className:(0,lU.cn)("grid grid-cols-1 gap-8 @3xl/ov:grid-cols-2 @3xl/ov:items-center @3xl/ov:gap-12",r&&"@3xl/ov:[&>*:first-child]:order-2"),children:[o?(0,a.jsxs)("button",{type:"button",onClick:s,className:(0,lU.cn)("group relative block aspect-[4/3] w-full overflow-hidden text-left",t.radius,t.panel),"aria-label":"Bild vergröÃern",children:[(0,a.jsx)("img",{src:o,alt:l?.alt||l?.caption||"",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"}),l?.caption?(0,a.jsx)("span",{className:"absolute bottom-3 left-3 rounded-md bg-[#000000]/55 px-2.5 py-1 text-xs font-semibold text-[#ffffff] backdrop-blur",children:l.caption}):null]}):(0,a.jsx)("div",{className:(0,lU.cn)("aspect-[4/3] w-full",t.radius,t.panel)}),(0,a.jsxs)("div",{children:[i?null:(0,a.jsx)("h2",{className:(0,lU.cn)("text-3xl font-extrabold tracking-[-0.02em] sm:text-4xl",t.ink),children:n}),(0,a.jsx)(av,{items:e.usps,t:t,className:(0,lU.cn)(i?"":"mt-6",t.ink)}),e.keyFacts.length>0?(0,a.jsx)("div",{className:(0,lU.cn)("mt-7 grid grid-cols-2 gap-4 border-t pt-6 @xl/ov:grid-cols-4",t.line),children:e.keyFacts.slice(0,4).map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:(0,lU.cn)("whitespace-nowrap text-xl font-extrabold tabular-nums leading-none @4xl/ov:text-2xl",t.ink),children:e.value}),(0,a.jsx)("p",{className:(0,lU.cn)("mt-1.5 text-xs",t.muted),children:e.label})]},e.label))}):null]})]})})}function aS({m:e,t,aside:l="highlights"}){let s=tq(e),n=e.highlights.slice(0,10).map(e=>e.detail?`${e.label} \xb7 ${e.detail}`:e.label);return(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[(0,a.jsx)(ay,{rows:[{label:"Objekttyp",value:e.objectType},{label:"Wohnfläche",value:e.keyFacts.find(e=>"area"===e.icon)?.value??null},{label:"Grundstück",value:e.keyFacts.find(e=>"plot"===e.icon)?.value??null},{label:"Zimmer",value:e.keyFacts.find(e=>"rooms"===e.icon)?.value??null},{label:"Schlafzimmer",value:e.keyFacts.find(e=>"bed"===e.icon)?.value??null},{label:"Badezimmer",value:e.keyFacts.find(e=>"bath"===e.icon)?.value??null}
59,{label:"Baujahr",value:e.keyFacts.find(e=>"year"===e.icon)?.value??null},{label:"Etage",value:e.keyFacts.find(e=>"floor"===e.icon)?.value??null},{label:"Stellplatz",value:e.highlights.find(e=>"parking"===e.icon)?.label??null},{label:"Hausgeld",value:e.monthlyServiceCharge?`${e.monthlyServiceCharge} / Monat`:null},{label:"Verfügbar",value:e.availability},{label:e.isSale?"Kaufpreis":"Miete",value:e.priceFormatted}],t:t,highlightLast:!0,className:"h-full"}),(0,a.jsx)(aN,{t:t,children:"documents"===l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:(0,lU.cn)("text-xl font-extrabold",t.ink),children:"Unterlagen zum Objekt"}),s.length>0?(0,a.jsx)(at,{items:s,className:"mt-4",rowClassName:(0,lU.cn)("border",t.line,t.panel,t.ink),iconClassName:t.accent,mutedClassName:t.muted}):(0,a.jsx)("p",{className:(0,lU.cn)("mt-4",t.muted),children:"Unterlagen erhalten Sie auf Anfrage."}),(0,a.jsx)("p",{className:(0,lU.cn)("mt-4 text-xs leading-relaxed",t.muted),children:"Weitere Dokumente wie Grundbuchauszug oder Teilungserklärung stellt der Eigentümer auf Anfrage bereit."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:(0,lU.cn)("text-xl font-extrabold",t.ink),children:"Besonderheiten"}),n.length>0?(0,a.jsx)(av,{items:n,t:t,className:(0,lU.cn)("mt-4",t.ink)}):(0,a.jsx)("p",{className:(0,lU.cn)("mt-4",t.muted),children:"Ausstattungsdetails folgen."})]})})]})})}function aE({m:e,t,project:l,mapHeight:s="h-[340px] lg:h-[420px]",showMap:n=!0}){let r=[...(e.sections.find(e=>"lage"===e.id)?.items??[]).filter(e=>!/zu FuÃ|mit dem Auto/.test(e.label)).map(e=>`${e.label}: ${e.value}`),...e.addressLine&&e.showAddress?[`Adresse: ${e.addressLine}`]:[]].slice(0,7),i=(l.property?.locationInfrastructure?.pointsOfInterest||[]).map(e=>({name:e.name??void 0,category:e.category??void 0,travelMode:e.travelMode??void 0,duration:e.duration??void 0,durationUnit:e.durationUnit??void 0,distanceMeters:e.distanceMeters??void 0,latitude:e.latitude??void 0,longitude:e.longitude??void 0})),o=e.travelTimes.length>0||e.pointsOfInterest.length>0,c=({children:e})=>(0,a.jsx)("div",{className:(0,lU.cn)("px-6 py-3 text-center text-sm font-bold",t.strong,t.radius,"rounded-b-none"),children:e});return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[(0,a.jsxs)(aN,{t:t,strong:!0,children:[(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",t.strongAccent),children:"Makrolage"}),e.locationText?(0,a.jsx)(l7,{text:e.locationText,className:"mt-3 space-y-3",paragraphClassName:"text-base leading-relaxed opacity-90"}):(0,a.jsx)("p",{className:"mt-3 opacity-80",children:e.locationLine}),e.locationScore?(0,a.jsxs)("div",{className:(0,lU.cn)("mt-6 flex items-center gap-4 border-t pt-5",t.dark?"border-[#14171c]/10":"border-[#ffffff]/15"),children:[(0,a.jsx)(l1,{score:e.locationScore.score,size:56,trackClassName:"text-current"}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-bold",children:["Lage-Score",e.locationScore.label?` \xb7 ${e.locationScore.label}`:""]}),e.locationScore.reason?(0,a.jsx)("p",{className:(0,lU.cn)("text-xs",t.strongMuted),children:e.locationScore.reason}):null]})]}):null]}),(0,a.jsxs)(aN,{t:t,panel:!0,children:[(0,a.jsx)(ak,{t:t,children:"Mikrolage"}),r.length>0?(0,a.jsx)(av,{items:r,t:t,className:(0,lU.cn)("mt-3",t.ink)}):(0,a.jsx)("p",{className:(0,lU.cn)("mt-3",t.muted),children:e.locationLine})]})]})}),n&&e.hasMapLocation&&e.mapAddress?(0,a.jsx)("div",{className:(0,lU.cn)("overflow-hidden border",s,t.radiu
59s,t.line,t.panel),children:(0,a.jsx)(ab,{address:e.mapAddress,showStyleToggle:!1,pointsOfInterest:i})}):null,o?(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[e.travelTimes.length>0?(0,a.jsxs)("div",{className:(0,lU.cn)("overflow-hidden border",t.radius,t.line,t.surface),children:[(0,a.jsx)(c,{children:"Infrastrukturelle Anbindung"}),(0,a.jsx)("ul",{className:(0,lU.cn)("divide-y",t.divide),children:e.travelTimes.map(e=>{let l=lK[e.id]??t9.MapPin,s="walk"===e.mode?ly:lo;return(0,a.jsxs)("li",{className:"flex items-center gap-3.5 px-5 py-3.5 sm:px-6",children:[(0,a.jsx)("span",{className:(0,lU.cn)("flex h-10 w-10 shrink-0 items-center justify-center rounded-xl",t.accentSoft),children:(0,a.jsx)(l,{className:"h-[18px] w-[18px]",strokeWidth:1.75})}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:(0,lU.cn)("block font-semibold",t.ink),children:e.label}),(0,a.jsxs)("span",{className:(0,lU.cn)("mt-0.5 flex items-center gap-1.5 text-sm",t.muted),children:[(0,a.jsx)(s,{className:"h-3.5 w-3.5 shrink-0"}),"walk"===e.mode?"zu FuÃ":"mit dem Auto"]})]}),(0,a.jsxs)("span",{className:(0,lU.cn)("shrink-0 whitespace-nowrap text-right text-lg font-bold tabular-nums",t.ink),children:[e.minutes,(0,a.jsx)("span",{className:(0,lU.cn)("ml-1 text-sm font-medium",t.muted),children:"Min."})]})]},e.id)})})]}):null,e.pointsOfInterest.length>0?(0,a.jsxs)("div",{className:(0,lU.cn)("overflow-hidden border",t.radius,t.line,t.surface),children:[(0,a.jsx)(c,{children:"Nahversorgung und Einrichtungen"}),(0,a.jsx)("ul",{className:(0,lU.cn)("divide-y",t.divide),children:e.pointsOfInterest.slice(0,8).map(e=>{let l="walk"===e.mode?ly:lo,s=e.distanceMeters?`${(e.distanceMeters/1e3).toLocaleString("de-DE",{maximumFractionDigits:1})} km`:null,n=[e.category,s].filter(Boolean).join(" · ");return(0,a.jsxs)("li",{className:"flex items-center gap-3.5 px-5 py-3.5 sm:px-6",children:[(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:(0,lU.cn)("block break-words font-semibold [hyphens:auto]",t.ink),children:e.name}),n?(0,a.jsx)("span",{className:(0,lU.cn)("mt-0.5 block text-sm",t.muted),children:n}):null]}),e.minutes?(0,a.jsxs)("span",{className:(0,lU.cn)("inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full px-2.5 py-1 text-sm font-semibold tabular-nums",t.accentSoft),children:[(0,a.jsx)(l,{className:"h-3.5 w-3.5"}),e.minutes," Min."]}):null]},e.id)})})]}):null]})}):null]})}function aA({m:e,t,image:l,onImageClick:s,controls:n,title:r="Objektbeschreibung",layout:i="split",hideTitle:o=!1}){let c=l?.url||l?.filename,d=t.dark?"prose prose-lg prose-invert max-w-none prose-p:leading-[1.75] prose-p:text-[#d9d4ca] [&_p]:text-justify [&_p]:[hyphens:auto] [&_p+p]:mt-4":"prose prose-lg max-w-none prose-p:leading-[1.75] prose-p:text-[#20232d] [&_p]:text-justify [&_p]:[hyphens:auto] [&_p+p]:mt-4",u=(0,a.jsxs)("div",{children:[o?null:(0,a.jsx)("h2",{className:(0,lU.cn)("text-3xl font-extrabold tracking-[-0.02em] sm:text-4xl",t.ink),children:r}),(0,a.jsx)("div",{className:o?"":"mt-5",children:e.description?(0,a.jsx)(tv,{content:e.description,className:d}):(0,a.jsx)("p",{className:t.muted,children:"Keine Beschreibung hinterlegt."})}),e.targetGroup?(0,a.jsxs)("div",{className:(0,lU.cn)("mt-6 px-5 py-4",t.strong,t.radius),children:[(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",t.strongAccent),children:"Für wen passt das Objekt"}),(0,a.jsx)("p",{className:"mt-1.5 text-base leading-relaxed",children:e.targetGroup})]}):null,n?(0,a.jsx)("div",{className:"no-print mt-4",children:n}):null]});return"stack"!==i&&c?(0,a.jsx)("div",{className:"@container/desc",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-8 @3xl/desc:grid-cols-2 @3xl/desc:gap-12",children:[(0,a.jsxs)("button",{type:"button",onClick:s,className:(0,lU.cn)("group relative block aspect-[3/4] w-full overflow-hidden text-left @3xl/desc:sticky @3xl/desc:top-20",t.radius,t.panel),"aria-label":"Bild vergröÃern",children:[(0,a.jsx)("img",{src:c,alt:l?.alt||l?.caption||"",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"}),l?.caption?(0,a.jsx)("span",{className:"absolute bottom-3 left-3 rounded-md bg-[#000000]/55 px-2.5 py-1 text-xs font-semibold text-[#ffffff] backdrop-blur",children:l.caption}):null]}),u]})}):u}let aT=e=>"boolean"==typeof e?e:null;function aC({m:e,t,project:l,tableRows:s=12}){let n=[{label:"Aufzug",value:aT(l.property?.buildingDetails?.hasElevator)},{label:"Barrierefrei",value:aT(l.property?.buildingDetails?.isBarrierFree)},{label:"Einbauküche",value:aT(l.property?.interiorFeatures?.kitchen?.hasFittedKitchen)},{label:"Keller",value:aT(l.property?.interiorFeatures?.cellar?.hasCellar)},{label:"Gäste-WC",value:aT(l.property?.interiorFeatures?.bathroom?.hasGuestToilet)},{label:"Rollläden",value:aT(l.property?.interiorFeatures?.windows?.hasShutters)},{label:"Smart Home",value:aT(l.property?.technical?.hasSmartHome)},{label:"Alarmanlage",value:aT(l.property?.technical?.security?.hasAlarmSystem)},{label:"Kamin",value:aT(l.property?.interiorFeatures?.hasFireplace)},{label:"Sauna",value:aT(l.property?.interiorFeatures?.hasSauna)}].filter(e=>null!==e.value),r=(tH(e).find(e=>"gebaeude"===e.id)?.items??[]).slice(0,s);return(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[e.highlights.length>0?(0,a.jsx)("ul",{className:"grid grid-cols-1 gap-3 @md:grid-cols-2",children:e.highlights.slice(0,10).map(e=>{let l=lW[e.icon];return(0,a.jsxs)("li",{className:(0,lU.cn)("flex items-start gap-3 border px-4 py-3",t.radius,t.line,t.surface),children:[(0,a.jsx)("span",{className:(0,lU.cn)("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",t.accentSoft),children:(0,a.jsx)(l,{className:"h-[18px] w-[18px]",strokeWidth:1.75})}),(0,a.jsxs)("span",{className:"min-w-0 pt-1",children:[(0,a.jsx)("span",{className:(0,lU.cn)("block truncate text-sm font-bold",t.ink),children:e.label}),e.detail?(0,a.jsx)("span",{className:(0,lU.cn)("block truncate text-xs",t.muted),children:e.detail}):null]})]},`${e.icon}-${e.label}`)})}):null,n.length>0?(0,a.jsxs)("div",{className:(0,lU.cn)("flex-1 p-6",t.radius,t.panel),children:[(0,a.jsx)(ak,{t:t,children:"Check"}),(0,a.jsx)("ul",{className:"mt-3 grid grid-cols-1 gap-x-8 gap-y-2 @sm:grid-cols-2",children:n.map(e=>(0,a.jsxs)("li",{className:(0,lU.cn)("flex items-center justify-between gap-3 text-sm",t.ink),children:[(0,a.jsx)("span",{children:e.label}),e.value?(0,a.jsx)(lc.Check,{className:(0,lU.cn)("h-4 w-4",t.accent),strokeWidth:2.5}):(0,a.jsx)(lB.X,{className:(0,lU.cn)("h-4 w-4 opacity-40",t.muted),strokeWidth:2.5})]},e.label))})]}):null]}),(0,a.jsx)(ay,{rows:r,t:t,className:"h-full"})]})})}function aR({m:e,t}){if(!e.hasEnergyData)return null;let l=tR(e.energy.finalEnergyValue?.replace(/[^\d,.-]/g,""));return(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[(0,a.jsxs)(aN,{t:t,children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",t.muted),children:"Energieeffizienzklasse"}),(0,a.jsx)("p",{className:(0,lU.cn)("mt-2 text-6xl font-extrabold leading-none tabular-nums",t.ink),children:e.energy.efficiencyClass??"â"})]}),(0,a.jsx)("p",{className:(0,lU.cn)("text-sm",t.muted),children:[e.energy.certificateType,e.energy.primarySource].filter(
59Boolean).join(" · ")})]}),(0,a.jsx)(l9,{value:l,efficiencyClass:e.energy.efficiencyClass,className:"mt-8",dark:t.dark}),(0,a.jsx)("p",{className:(0,lU.cn)("mt-2 text-xs",t.muted),children:"Endenergieverbrauch bzw. -bedarf dieses Gebäudes in kWh/(m²·a)"})]}),(0,a.jsxs)("div",{className:"flex h-full flex-col gap-4",children:[(0,a.jsx)(ay,{t:t,className:"flex-1",rows:[{label:"Ausweisart",value:e.energy.certificateType},{label:"Endenergie",value:e.energy.finalEnergyValue},{label:"Energieträger",value:e.energy.primarySource},{label:"Heizung",value:e.energy.heatingType},{label:"Baujahr Wärmeerzeuger",value:e.energy.heatGeneratorYear},{label:"Gültig bis",value:e.energy.validUntil}]}),e.documents.energyCertificate?(0,a.jsxs)("a",{href:e.documents.energyCertificate.url,target:"_blank",rel:"noreferrer",className:(0,lU.cn)("no-print flex items-center gap-3 border px-5 py-4 text-sm font-semibold transition hover:opacity-80",t.radius,t.line,t.surface,t.ink),children:[(0,a.jsx)(lk.FileText,{className:(0,lU.cn)("h-5 w-5 shrink-0",t.accent)}),(0,a.jsx)("span",{className:"min-w-0 flex-1",children:"Energieausweis ansehen"}),(0,a.jsx)(lg.Download,{className:(0,lU.cn)("h-4 w-4 shrink-0",t.muted)})]}):null]})]})})}function aI({m:e,t}){let l=[{label:"Hausgeld gesamt",value:e.monthlyServiceCharge?`${e.monthlyServiceCharge} / Monat`:null},{label:"davon Instandhaltungsrücklage",value:e.sections.find(e=>"preise"===e.id)?.items.find(e=>"Instandhaltungsrücklage"===e.label)?.value??null},{label:"Rücklage der Gemeinschaft gesamt",value:e.maintenanceReserveTotal},{label:"Eigentumsform",value:e.sections.find(e=>"rechtliches"===e.id)?.items.find(e=>"Eigentumsform"===e.label)?.value??null},{label:"Preis pro m²",value:e.pricePerSqm}],s=[e.availability?`Verf\xfcgbar: ${e.availability}`:null,!0===e.isRented?"Aktuell vermietet":!1===e.isRented?"Aktuell nicht vermietet, frei für Eigennutzer":null,"Eigennutzung oder Kapitalanlage möglich","Keine Käuferprovision, Verkauf direkt vom Eigentümer",e.documents.total>0?`${e.documents.total} Unterlagen liegen vor`:null].filter(e=>!!e);return(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[(0,a.jsxs)(aN,{t:t,children:[(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",t.muted),children:"Kosten und Rücklage"}),(0,a.jsx)(aj,{rows:l,t:t,className:"mt-3"}),l.some(e=>e.value)?null:(0,a.jsx)("p",{className:(0,lU.cn)("mt-3 text-sm",t.muted),children:"Angaben zu laufenden Kosten folgen."})]}),(0,a.jsxs)(aN,{t:t,strong:!0,children:[(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",t.strongAccent),children:"Gut zu wissen"}),(0,a.jsx)(av,{items:s,t:t,onStrong:!0,className:"mt-3"}),e.documents.businessPlan?(0,a.jsxs)("a",{href:e.documents.businessPlan.url,target:"_blank",rel:"noreferrer",className:(0,lU.cn)("no-print mt-6 flex items-center gap-3 rounded-xl px-4 py-3 text-sm font-semibold",t.dark?"bg-[#14171c]/8 hover:bg-[#14171c]/12":"bg-[#ffffff]/10 hover:bg-[#ffffff]/15"),children:[(0,a.jsx)(lk.FileText,{className:(0,lU.cn)("h-5 w-5 shrink-0",t.strongAccent)}),(0,a.jsx)("span",{className:"min-w-0 flex-1 [overflow-wrap:anywhere]",children:e.documents.businessPlan.name}),(0,a.jsx)(lg.Download,{className:(0,lU.cn)("h-4 w-4 shrink-0",t.strongMuted)})]}):null]})]})})}let a$=({value:e,label:t,t:l,strong:s=!1})=>(0,a.jsxs)("div",{className:(0,lU.cn)("flex h-full flex-col items-center justify-center px-3 py-5 text-center",l.radius,s?l.strong:(0,lU.cn)(l.surface,"border",l.line)),children:[(0,a.jsx)("span",{className:"whitespace-nowrap text-xl font-extrabold tabular-nums tracking-tight @md:text-2xl",children:e}),(0,a.jsx)("span",{className:(0,lU.cn)("mt-1.5 text-xs font-medium",s?l.strongMuted:l.muted),children:t})]});function aL({m:e,t}){let[l,s]=(0,g.useState)(20),n=e.price??0,r=(0,g.useMemo)(()=>{var t;let l,a,s,r;return a=Math.round(n*(l=((t=e.bundesland)?ag[t]:void 0)??5)/100),{price:n,transferTaxRate:l,transferTax:a,notaryRate:2,notary:s=Math.round(2*n/100),brokerRate:0,broker:r=Math.round(0*n/100),total:n+a+s+r,bundesland:t}},[n,e.bundesland]),i=(0,g.useMemo)(()=>[10,30].map(e=>ax(r,e)),[r]),o=(0,g.useMemo)(()=>ax(r,l),[r,l]);if(!n)return null;
59let c=e=>tL(Math.round(e))||"",d=tR(e.monthlyServiceCharge?.replace(/[^\d,.-]/g,""))??0,u=[{label:"Gesamtkosten inkl. Nebenkosten",value:c(r.total)},{label:`Eigenkapital (${o.equityRate} %)`,value:c(o.equity)},{label:"Darlehen",value:c(o.loan)},{label:"Monatsrate",value:c(o.monthlyRate)},{label:"Rate inkl. Hausgeld",value:c(o.monthlyRate+d)},{label:"Beleihungsauslauf",value:af(100*o.loanToValue,0)},{label:"Restschuld nach 10 J.",value:c(o.remainingDebt)},{label:"Kalk. Laufzeit",value:`${Math.round(o.termYears)} Jahre`}];return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"@container/kpi",children:(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3 @2xl/kpi:grid-cols-4",children:u.map((e,l)=>(0,a.jsx)(a$,{value:e.value,label:e.label,t:t,strong:3===l},e.label))})}),(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[(0,a.jsxs)(aN,{t:t,children:[(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",t.muted),children:"Eckdaten und Kaufnebenkosten"}),(0,a.jsx)("div",{className:"@container/eck mt-4",children:(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-2 @sm/eck:gap-3",children:[(0,a.jsx)(a$,{t:t,strong:!0,value:af(2),label:"Anfängliche Tilgung"}),(0,a.jsx)(a$,{t:t,strong:!0,value:af(3.8),label:"Sollzins p.a."}),(0,a.jsx)(a$,{t:t,strong:!0,value:af(function(e=3.8){return((1+e/100/12)**12-1)*100}()),label:"Effektivzins"})]})}),(0,a.jsx)(aj,{t:t,className:"mt-5",emphasizeLast:!0,rows:[{label:"Kaufpreis",value:c(r.price)},{label:`+ ${af(r.transferTaxRate,1)} Grunderwerbsteuer${r.bundesland?` (${r.bundesland})`:""}`,value:c(r.transferTax)},{label:`+ ${af(r.notaryRate,1)} Notar und Grundbuch`,value:c(r.notary)},{label:"+ Käuferprovision",value:"0 â¬"},{label:"Gesamtkosten",value:c(r.total)}]}),(0,a.jsxs)("p",{className:(0,lU.cn)("mt-3 text-xs",t.muted),children:["Zinsbindung ",10," Jahre · Zinsanteil im 1. Jahr ",c(o.firstYearInterest)," · Tilgungsanteil"," ",c(o.firstYearRepayment)]})]}),(0,a.jsxs)(aN,{t:t,panel:!0,children:[(0,a.jsx)("p",{className:(0,lU.cn)("text-xs font-bold uppercase tracking-[0.14em]",t.muted),children:"Varianten nach Eigenkapital"}),(0,a.jsx)("div",{className:"@container/var mt-4 space-y-3",children:i.map(e=>(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3 @md/var:grid-cols-[88px_112px_minmax(0,1fr)]",children:[(0,a.jsx)(a$,{t:t,strong:!0,value:`${e.equityRate} %`,label:"Eigenkapital"}),(0,a.jsx)(a$,{t:t,value:c(e.monthlyRate),label:"Monatsrate"}),(0,a.jsxs)("div",{className:(0,lU.cn)("col-span-2 flex flex-col justify-center gap-1.5 border px-4 py-3 text-xs @md/var:col-span-1 @md/var:text-sm",t.radius,t.line,t.surface),children:[(0,a.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,a.jsx)("span",{className:t.muted,children:"Darlehen"}),(0,a.jsx)("span",{className:(0,lU.cn)("font-semibold tabular-nums",t.ink),children:c(e.loan)})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,a.jsx)("span",{className:t.muted,children:"Eigenkapital"}),(0,a.jsx)("span",{className:(0,lU.cn)("font-semibold tabular-nums",t.ink),children:c(e.equity)})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,a.jsxs)("span",{className:t.muted,children:["Restschuld ",10," J."]}),(0,a.jsx)("span",{className:(0,lU.cn)("font-semibold tabular-nums",t.ink),children:c(e.remainingDebt)})]})]})]},e.equityRate))}),(0,a.jsxs)("div",{className:(0,lU.cn)("no-print mt-4 border p-5",t.radius,t.line,t.surface),children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,a.jsxs)("label",{htmlFor:"listing-equity",className:(0,lU.cn)("text-sm font-semibold",t.ink),children:["Ihr Eigenkapital: ",l," % (",c(o.equity),")"]}),(0,a.jsx)("span",{className:(0,lU.cn)("text-xs",t.muted),children:"Monatsrate"})]}),(0,a.jsx)("input",{id:"listing-equity",type:"range",min:0,max:60,step:5,value:l,onChange:e=>s(Number(e.target.value)),className:"mt-3 w-full accent-[#215d43]"}),(0,a.jsx)("p",{className:(0,lU.cn)("mt-2 text-3xl font-extrabold tabular-nums",t.ink),children:c(o.monthlyRate)}),(0,a.jsxs)("p",{className:(0,lU.cn)("text-xs",t.muted),children:["Darlehen ",c(o.loan)," · getilgt nach"," ",10," Jahren"," ",c(o.repaidAfterFixed)," · Zinskosten bis dahin"," ",c(o.interestPaidFixed)]})]})]})]})}),(0,a.jsxs)("p",{className:(0,lU.cn)("max-w-3xl text-xs leading-relaxed",t.muted),children:["Berechnungsbeispiel auf Basis von Annahmen (Sollzins"," ",af(3.8),", Tilgung"," ",af(2),", Notar und Grundbuch pauschal, Grunderwerbsteuer nach Bundesland). Kein Angebot, Konditionen hängen von Bonität, Beleihung und Marktlage ab."]})]})}function aM({m:e,t}){if(0===e.documents.floorPlans.length)return null;let l=(e.sections.find(e=>"flaechen"===e.id)?.items??[]).map(e=>`${e.label}: ${e.value}`);return(0,a.jsx)("div",{className:"@container",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5 @3xl:grid-cols-2 @3xl:items-stretch",children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-4",children:e.documents.floorPlans.map(e=>e.isImage?(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:(0,lU.cn)("flex max-h-[560px] flex-1 items-center justify-center overflow-hidden border p-4",t.radius,t.line,"bg-[#ffffff]"),children:(0,a.jsx)("img",{src:e.url,alt:e.name,className:"max-h-[520px] w-auto max-w-full object-contain"})},e.id):(0,a.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:(0,lU.cn)("flex items-center gap-3 border px-5 py-4 text-sm font-semibold",t.radius,t.line,t.surface,t.ink),children:[(0,a.jsx)(lk.FileText,{className:(0,lU.cn)("h-5 w-5 shrink-0",t.accent)}),e.name]},e.id))}
59),(0,a.jsxs)(aN,{t:t,panel:!0,children:[(0,a.jsx)(ak,{t:t,children:"Raumaufteilung"}),(0,a.jsx)(av,{items:l,t:t,className:(0,lU.cn)("mt-3",t.ink)})]})]})})}function az({m:e,t,ids:l=["stammdaten","adresse","preise","flaechen","rechtliches"]}){let s=e.sections.filter(e=>l.includes(e.id));return 0===s.length&&0===e.textBlocks.length?null:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"grid grid-cols-1 gap-x-10 gap-y-8 md:grid-cols-2 xl:grid-cols-3",children:s.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:(0,lU.cn)("mb-2 border-b-2 pb-2 text-sm font-bold uppercase tracking-[0.1em]",t.ink,t.dark?"border-[#f3efe7]":"border-[#215d43]"),children:e.title}),(0,a.jsx)("dl",{className:(0,lU.cn)("divide-y",t.divide),children:e.items.map(e=>(0,a.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_minmax(0,1.3fr)] gap-3 py-2 text-sm",children:[(0,a.jsx)("dt",{className:(0,lU.cn)("break-words",t.muted),children:e.label}),(0,a.jsx)("dd",{className:(0,lU.cn)("break-words font-medium",t.ink),children:e.value})]},e.label))})]},e.id))}),e.textBlocks.length>0?(0,a.jsx)("div",{className:"mt-10 space-y-6",children:e.textBlocks.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:(0,lU.cn)("mb-1.5 text-xs font-bold uppercase tracking-[0.14em]",t.muted),children:e.label}),"url"===e.id?(0,a.jsx)("a",{href:e.text,target:"_blank",rel:"noreferrer",className:(0,lU.cn)("break-all font-medium hover:underline",t.accent),children:e.text}):(0,a.jsx)(l7,{text:e.text,paragraphClassName:(0,lU.cn)("text-base leading-relaxed",t.ink)})]},e.id))}):null]})}function aD({images:e,t,onImageClick:l}){return 0===e.length?null:(0,a.jsx)("div",{className:"@container space-y-4",children:(function(e){let t=[],l=["oneTwo","two","three"],a=0,s=0;for(;a<e.length;){let n=e.length-a,r=l[s%l.length],i="two"===r?2:3;n<i&&(r="two",i=n),t.push({pattern:r,items:e.slice(a,a+i)}),a+=i,s+=1}return t})(e).map((e,s)=>(0,a.jsx)("div",{className:(0,lU.cn)("grid gap-4","two"===e.pattern&&"@md:grid-cols-2","three"===e.pattern&&"@md:grid-cols-3","oneTwo"===e.pattern&&"@md:grid-cols-[minmax(0,1.6fr)_minmax(0,1fr)] @md:grid-rows-2"),children:e.items.map((n,r)=>{let i=n.url||n.filename||"";return(0,a.jsxs)("button",{type:"button",onClick:()=>l(n),className:(0,lU.cn)("group relative block w-full overflow-hidden text-left",t.radius,t.panel,"oneTwo"===e.pattern&&0===r?"aspect-[4/3] @md:row-span-2 @md:aspect-auto @md:h-full":"aspect-[4/3]","three"===e.pattern&&"aspect-[3/4]"),"aria-label":n.caption?`${n.caption} vergr\xf6\xdfern`:"Bild vergröÃern",children:[(0,a.jsx)("img",{src:i,alt:n.alt||n.caption||"",loading:"eager",decoding:"async",className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"}),n.caption?(0,a.jsx)("span",{className:"absolute bottom-3 left-3 rounded-md bg-[#000000]/55 px-2.5 py-1 text-xs font-semibold text-[#ffffff] backdrop-blur",children:n.caption}):null]},n.id??`${s}-${r}`)})},`${e.pattern}-${e.items[0]?.id??s}`))})}let a_={ink:"text-[#16241d]",muted:"text-[#5f6b64]",line:"border-[#dde4df]",surface:"bg-[#ffffff]",panel:"bg-[#f3f6f4]",accent:"text-[#3a9168]",accentSoft:"bg-[#e7f2eb] text-[#215d43]",strong:"bg-[#215d43] text-[#ffffff]",strongMuted:"text-[#ffffff]/75",strongAccent:"text-[#8fd9b4]",strongDivide:"divide-[#ffffff]/20",divide:"divide-[#e6ece8]",radius:"rounded-2xl",bullet:"bg-[#3a9168]",dark:!1},aF={fontFamily:'"Work Sans", system-ui, -apple-system, sans-serif'},aG=({light:e=!1,className:t})=>(0,a.jsxs)("div",{className:(0,lU.cn)("flex items-center gap-2",t),children:[(0,a.jsx)(d.default,{src:"/sloothy-logo-framed.png",alt:"Sloothy Logo",width:32,height:32,className:"h-8 w-8 object-contain"}),(0,a.jsxs)("span",{className:(0,lU.cn)("text-base font-bold tracking-tight",e?"text-[#ffffff]":a_.ink),children:["Sloothy",(0,a.jsx)("sup",{className:"ml-0.5 text-[9px] font-semibold",children:"®"})]})]}),aP=({id:e,number:t,label:l,title:s,children:n,tone:r="light"})=>(0,a.jsx)("section",{id:e,"data-chapter":e,className:(0,lU.cn)("page-break-section scroll-mt-20 print:break-inside-avoid-page","panel"===r&&a_.panel,"green"===r&&"bg-[#215d43] text-[#ffffff]"),children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1180px] px-5 py-14 sm:px-8 lg:py-20 print:px-8 print:py-8",children:[(0,a.jsx)("div",{className:"mb-8",children:(0,a.jsxs)("span",{className:(0,lU.cn)("inline-flex h-8 items-center gap-2 rounded-md px-3 text-xs font-bold uppercase tracking-[0.14em]","green"===r?"bg-[#ffffff]/15 text-[#ffffff]":"bg-[#215d43] text-[#ffffff]"),children:[(0,a.jsx)("span",{className:"tabular-nums",children:String(t).padStart(2,"0")}),(0,a.jsx)("span",{className:"h-3 w-px bg-[#ffffff]/40"}),l]})}),s?(0,a.jsx)("h2",{className:(0,lU.cn)("mb-8 text-3xl font-extrabold tracking-[-0.02em] sm:text-4xl","green"===r?"text-[#ffffff]":a_.ink),children:s}):null,n]})}),aB=(0,o.observer)(function({project:e,projectId:t,isPublicAccess:l=!1,onProjectChange:s}){let n=tU(e,{isPublicAccess:l}),r=lq(t,e.title),[i,o]=(0,g.useState)(null),c=(0,g.useCallback)(()=>o(null),[]),d=e=>e?()=>o(n.images.indexOf(e)):void 0,u=n.images[0],h=n.images[1]??n.images[0],m=n.images[2]??n.images[1]??n.images[0],p=n.images.length>3?n.images.slice(3):n.images.slice(1),x=n.sections.some(e=>["stammdaten","adresse","flaechen","rechtliches","preise"].includes(e.id)),f=[{id:"ueberblick",label:"Ãberblick"},{id:"fakten",label:"Zahlen & Fakten"},{id:"lage",label:"Lage"},{id:"beschreibung",label:"Beschreibung"},{id:"ausstattung",label:"Ausstattung"},...n.hasEnergyData?[{id:"energie",label:"Energie"}]:[],{id:"kosten",label:"Kosten"},...n.documents.floorPlans.length>0?[{id:"grundriss",label:"Grundriss"}]:[],...p.length>0?[{id:"impressionen",label:"Impressionen"}]:[],...n.price?[{id:"finanzierung",label:"Finanzierung"}]:[],{id:"kontakt",label:"Kontakt"},...x?[{id:"objektdaten",label:"Objektdaten"}]:[],{id:"rechtliches",label:"Rechtliches"}],b=e=>f.findIndex(t=>t.id===e)+1;return(0,a.jsxs)("div",{"data-listing-template":"expose",className:(0,lU.cn)("min-h-screen bg-[#fbfaf8] pb-24 lg:pb-0",a_.ink),style:aF,children:[(0,a.jsxs)("section",{className:"relative min-h-[640px] overflow-hidden bg-[#215d43] text-[#ffffff] lg:min-h-[720px] print:h-[272mm] print:min-h-0",children:[u?(0,a.jsx)("img",{src:u.url||u.filename||"",alt:u.alt||u.caption||e.title,className:"absolute inset-0 h-full w-full object-cover"}):null,(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[#215d43] via-[#215d43]/80 to-[#215d43]/10"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#14312a]/80 via-trans
59parent to-transparent"}),(0,a.jsxs)("div",{className:"relative mx-auto flex min-h-[640px] max-w-[1180px] flex-col justify-between px-5 py-8 sm:px-8 lg:min-h-[720px] lg:py-10 print:h-full print:min-h-0",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("span",{className:"inline-flex max-w-full items-center rounded-md bg-[#ffffff] px-3.5 py-2 text-sm font-bold text-[#215d43]",children:(0,a.jsxs)("span",{className:"truncate",children:["Exposé | ",n.addressLine||n.locationLine||e.title]})}),(0,a.jsx)(aG,{light:!0,className:"hidden lg:flex"})]}),(0,a.jsxs)("div",{className:"mt-16 max-w-3xl lg:mt-0",children:[(0,a.jsx)("h1",{className:"break-words [hyphens:auto] text-[2.1rem] font-extrabold leading-[1.05] tracking-[-0.02em] sm:text-5xl lg:text-[3.6rem]",children:n.title}),n.subline?(0,a.jsx)("p",{className:"mt-5 text-lg text-[#ffffff]/85 sm:text-xl",children:n.subline}):null,(0,a.jsxs)("div",{className:"mt-8 flex flex-wrap items-center gap-4",children:[(0,a.jsxs)("div",{className:"rounded-xl bg-[#ffffff] px-5 py-3 text-[#16241d]",children:[(0,a.jsxs)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-[#5f6b64]",children:[n.isSale?"Kaufpreis":"Miete",n.priceType?` \xb7 ${n.priceType}`:""]}),(0,a.jsx)("p",{className:"text-2xl font-extrabold tabular-nums tracking-tight",children:n.priceFormatted})]}),(0,a.jsx)(l3,{onClick:r,className:"w-auto bg-[#8fd9b4] px-6 text-[#14312a] shadow-none hover:bg-[#a5e3c3]",children:"Besichtigung anfragen"})]})]}),(0,a.jsxs)("div",{className:"mt-12 flex items-end justify-between gap-6",children:[(0,a.jsx)("ol",{className:"hidden flex-wrap gap-x-5 gap-y-1 text-xs font-medium text-[#ffffff]/70 md:flex",children:f.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"tabular-nums text-[#8fd9b4]",children:String(t+1).padStart(2,"0")}),e.label]},e.id))}),(0,a.jsx)(aG,{light:!0,className:"lg:hidden"})]})]})]}),(0,a.jsx)("nav",{className:(0,lU.cn)("no-print sticky top-0 z-30 border-b bg-[#fbfaf8]/92 backdrop-blur",a_.line),"aria-label":"Kapitel",children:(0,a.jsx)("div",{className:"mx-auto flex max-w-[1180px] gap-1 overflow-x-auto px-3 py-2 sm:px-6 [scrollbar-width:none]",children:f.map((e,t)=>(0,a.jsxs)("button",{type:"button",onClick:()=>{let t;return t=e.id,document.getElementById(t)?.scrollIntoView({behavior:"smooth",block:"start"})},className:(0,lU.cn)("flex shrink-0 items-center gap-1.5 rounded-full px-3 py-1.5 text-xs font-semibold transition hover:bg-[#e7f2eb] hover:text-[#215d43]",a_.muted),children:[(0,a.jsx)("span",{className:"tabular-nums text-[#3a9168]",children:String(t+1).padStart(2,"0")}),e.label]},e.id))})}),(0,a.jsx)(aP,{id:"ueberblick",number:b("ueberblick"),label:"Ãberblick",children:(0,a.jsx)(aw,{m:n,t:a_,image:h,onImageClick:d(h)})}),(0,a.jsx)(aP,{id:"fakten",number:b("fakten"),label:"Zahlen & Fakten",title:"Zahlen & Fakten",tone:"panel",children:(0,a.jsx)(aS,{m:n,t:a_,aside:"documents"})}),(0,a.jsx)(aP,{id:"lage",number:b("lage"),label:"Lage",title:n.locationLine?`Lage: ${n.locationLine}`:"Lage",children:(0,a.jsx)(aE,{m:n,t:a_,project:e})}),(0,a.jsx)(aP,{id:"beschreibung",number:b("beschreibung"),label:"Objektbeschreibung",tone:"panel",children:(0,a.jsx)(aA,{m:n,t:a_,image:m,onImageClick:d(m),controls:l?null:(0,a.jsx)(ty,{project:e,projectId:t,onProjectChange:s})})}),(0,a.jsx)(aP,{id:"ausstattung",number:b("ausstattung"),label:"Ausstattung",title:"So ist das Objekt ausgestattet",children:(0,a.jsx)(aC,{m:n,t:a_,project:e})}),n.hasEnergyData?(0,a.jsx)(aP,{id:"energie",number:b("energie"),label:"Energie",title:"Bauweise und Energie",tone:"panel",children:(0,a.jsx)(aR,{m:n,t:a_})}):null,(0,a.jsx)(aP,{id:"kosten",number:b("kosten"),label:"Kosten",title:"Laufende Kosten und Wirtschaftsplan",children:(0,a.jsx)(aI,{m:n,t:a_})}),n.documents.floorPlans.length>0?(0,a.jsx)(aP,{id:"grundriss",number:b("grundriss"),label:"Grundriss",title:"Grundriss und Raumaufteilung",tone:"panel",children:(0,a.jsx)(aM,{m:n,t:a_})}):null,p.length>0?(0,a.jsx)(aP,{id:"impressionen",number:b("impressionen"),label:"Impressionen",title:`${n.images.length} Einblicke`,children:(0,a.jsx)(aD,{images:p,t:a_,onImageClick:e=>o(n.images.indexOf(e))})}):null,n.price?(0,a.jsx)(aP,{id:"finanzierung",number:b("finanzierung"),label:"Finanzierung",title:"Finanzierungsbeispiel",tone:"panel",children:(0,a.jsx)(aL,{m:n,t:a_})}):null,(0,a.jsx)(aP,{id:"kontakt",number:b("kontakt"),label:"Kontakt",tone:"green",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-[minmax(0,1.2fr)_minmax(0,0.8fr)] lg:items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.14em] text-[#8fd9b4]",children:"Anbieter"}),(0,a.jsx)("h2",{className:"mt-2 text-3xl font-extrabold tracking-[-0.02em] sm:text-4xl",children:"Vereinbaren Sie jetzt Ihren Besichtigungstermin"}),(0,a.jsx)("p",{className:"mt-4 max-w-xl text-lg text-[#ffffff]/85",children:"Dieses Objekt wird direkt vom Eigentümer über Sloothy angeboten. Ihre Anfrage geht ohne Umweg an den Verkäufer, ohne Käuferprovision."}),(0,a.jsx)("ul",{className:"mt-6 grid grid-cols-1 gap-2 sm:grid-cols-2",children:["Keine Käuferprovision","Direkter Kontakt zum Eigentümer",n.documents.total>0?`${n.documents.total} Unterlagen digital verf\xfcgbar`:"Unterlagen auf Anfrage",n.documents.energyCertificate?"Energieausweis liegt vor":n.energy.efficiencyClass?`Energieklasse ${n.energy.efficiencyClass}`:"Energiedaten auf Anfrage"].map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2.5 text-sm",children:[(0,a.jsx)(lc.Check,{className:"h-4 w-4 shrink-0 text-[#8fd9b4]",strokeWidth:2.5}),e]},e))}),(0,a.jsxs)("div",{className:"mt-8 flex flex-wrap items-center gap-4",children:[(0,a.jsx)(l3,{onClick:r,className:"w-auto bg-[#ffffff] px-7 text-[#215d43] shadow-none hover:bg-[#f2faf5]",children:"Anbieter kontaktieren"}),(0,a.jsxs)("div",{className:"text-sm text-[#ffffff]/80",children:[(0,a.jsx)("p",{className:"font-bold text-[#ffffff]",children:n.priceFormatted}),n.listingId?(0,a.jsxs)("p",{children:["Inserat-ID ",n.listingId]}):null]})]})]}),(0,a.jsxs)("div",{className:"rounded-[1.75rem] bg-[#ffffff] p-7 text-[#16241d]",children:[(0,a.jsx)(aG,{}),(0,a.jsx)("p",{className:"mt-5 text-xl font-extrabold tracking-tight",children:"Sie verkaufen selbst?"}),(0,a.jsx)("p",{className:(0,lU.cn)("mt-2 text-sm leading-relaxed",a_.muted),children:"Mit Sloothy stellen Eigentümer ihre Immobilie in wenigen Schritten online: Unterlagen, Preis-Einordnung, Exposé und Anfragen an einem Ort."}),(0,a.jsx)("a",{href:"/haus-verkaufen",className:(0,lU.cn)("mt-5 inline-flex h-11 items-center justify-center rounded-xl border px-5 text-sm font-semibold transition hover:bg-[#f3f6f4]",a_.line,a_.ink),children:"Mehr erfahren"})]})]})}),x?(0,a.jsx)(aP,{id:"objektdaten",number:b("objektdaten"),label:"Objektdaten",title:"Alle Angaben im Ãberblick",children:(0,a.jsx)(az,{m:n,t:a_})}):null,(0,a.jsxs)(aP,{id:"rechtliches",number:b("rechtliches"),label:"Rechtliches",tone:"green",children:[(0,a.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight sm:text-3xl",children:"Haftungsausschluss und Provision"}),(0,a.jsxs)("div",{className:"mt-6 max-w-4xl space-y-4 text-sm leading-relaxed text-[#ffffff]/85",children:[(0,a.jsx)("p",{children:"Alle Informationen, Angaben, Darstellungen und Berechnungen in diesem Exposé beruhen auf Angaben des Eigentümers sowie auf den von ihm bereitgestellten Unterlagen. Sloothy hat diese Angaben nicht in allen Punkten überprüft und übernimmt keine Gewähr für Richtigkeit und Vollständigkeit. Ãnderungen und Zwischenverkauf bleiben vorbehalten."}),(0,a.jsx)("p",{children:"Sofern einzelne Aufnahmen digital nachbearbeitet oder virtuell möbliert wurden, handelt es sich um unverbindliche Gestaltungsvorschläge. Gezeigte Möbel und Ausstattungsgegenstände sind nicht Bestandteil des Kaufgegenstandes. MaÃgeblich ist ausschlieÃlich der tatsächliche Objektzustand, den Sie im Rahmen einer Besichtigung selbst in Augenschein nehmen können."}),(0,a.jsx)("p",{children:"Dieses Objekt wird vom Eigentümer selbst über die Sloothy-Plattform angeboten. Für Kaufinteressenten fällt keine Maklerprovision an. Das Finanzierungsbeispiel ist eine Modellrechnung auf Basis von Annahmen und stellt kein Angebot dar."})]}),(0,a.jsxs)("div",{className:"mt-10 flex flex-wrap items-center justify-between gap-4 border-t border-[#ffffff]/15 pt-6 text-xs text-[#ffffff]/70",children:[(0,a.jsx)(aG,{light:!0}),(0,a.jsxs)("span",{children:["Exposé erstellt mit Sloothy ·"," ",new Date().toLocaleDateString("de-DE"),n.listingId?` \xb7 Inserat-ID ${n.listingId}`:""]})]})]}),(0,a.jsx)(l6,{images:n.images,index:i,onClose:c,onIndexChange:o}),(0,a.jsx)(l5,{price:n.priceFormatted,subline:n.locationLine,onClick:r,visible:l})]})}),aO=(0,c.default)(()=>
59e.A(532012),{loadableGenerated:{modules:[801342]},ssr:!1}),aU="bg-[#1c2028]",aH="text-[#f3efe7]",aW="text-[#a7a39a]",aK="border-[#ffffff]/10",aq="text-[#8fd9b4]",aV="font-[family-name:Georgia,serif]",aZ=({children:e,center:t=!1})=>(0,a.jsx)("p",{className:`mb-3 text-[11px] font-semibold uppercase tracking-[0.28em] ${aq} ${t?"text-center":""}`,children:e}),aY=({children:e,center:t=!1})=>(0,a.jsx)("h2",{className:`${aV} text-3xl font-normal tracking-tight sm:text-4xl ${aH} ${t?"text-center":""}`,children:e}),aX=(0,o.observer)(function({project:e,projectId:t,isPublicAccess:l=!1,onProjectChange:s,onProjectRefresh:n}){let r=tU(e,{isPublicAccess:l}),i=lq(t,e.title),o=r.images[0],c=o?.url||o?.filename||null,u=tK(r);return(0,a.jsxs)("div",{"data-listing-template":"prestige",className:`min-h-screen bg-[#14171c] pb-24 lg:pb-20 ${aH}`,children:[(0,a.jsxs)("section",{className:"relative",children:[(0,a.jsxs)("div",{className:"relative h-[70vh] max-h-[760px] min-h-[460px] w-full overflow-hidden",children:[c?(0,a.jsx)("img",{src:c,alt:o?.alt||e.title,className:"h-full w-full object-cover"}):(0,a.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-4 bg-[#1c2028]",children:[(0,a.jsx)(d.default,{src:"/loader.gif",alt:"Sloothy",width:144,height:144,unoptimized:!0,className:"h-36 w-36 object-contain"}),(0,a.jsx)("p",{className:`text-sm ${aW}`,children:"Bilder werden vorbereitet"})]}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-[#14171c]/55 via-transparent to-[#14171c]"}),(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-r from-[#14171c]/35 via-trans
59parent to-[#14171c]/35"})]}),(0,a.jsxs)("div",{className:"relative mx-auto -mt-44 max-w-4xl px-5 text-center sm:-mt-52",children:[(0,a.jsx)("p",{className:`text-[11px] font-semibold uppercase tracking-[0.32em] ${aq}`,children:r.badges.join(" · ")}),(0,a.jsx)("h1",{className:`${aV} mt-4 break-words [hyphens:auto] text-3xl font-normal leading-[1.08] tracking-[-0.01em] sm:text-5xl lg:text-[3.6rem] ${aH}`,children:r.title}),r.locationLine?(0,a.jsxs)("p",{className:`mt-4 flex items-center justify-center gap-2 text-base ${aW}`,children:[(0,a.jsx)(t9.MapPin,{className:"h-4 w-4",strokeWidth:1.5}),r.locationLine]}):null,(0,a.jsx)("p",{className:"mt-8 text-4xl font-light tabular-nums tracking-tight sm:text-5xl",children:r.priceFormatted}),(0,a.jsx)("p",{className:`mt-2 text-sm ${aW}`,children:[r.isSale?"Kaufpreis":"Miete",r.priceType,r.pricePerSqm].filter(Boolean).join(" · ")}),(0,a.jsx)("div",{className:"mt-8 flex justify-center",children:(0,a.jsx)(l3,{onClick:i,className:"w-auto bg-[#f3efe7] px-8 text-[#14171c] shadow-none hover:bg-[#ffffff]",children:"Anbieter kontaktieren"})})]}),r.keyFacts.length>0?(0,a.jsx)("div",{className:"mx-auto mt-16 max-w-5xl px-5",children:(0,a.jsx)("div",{className:`grid grid-cols-2 divide-[#ffffff]/10 border-y ${aK} sm:grid-cols-3 lg:grid-cols-6 lg:divide-x`,children:r.keyFacts.map(e=>(0,a.jsxs)("div",{className:"min-w-0 px-3 py-5 text-center",children:[(0,a.jsx)("p",{className:"text-xl font-light tabular-nums sm:text-2xl",children:e.value}),(0,a.jsx)("p",{className:`mt-1 text-[11px] uppercase tracking-[0.12em] ${aW}`,children:e.label})]},e.label))})}):null]}),(r.description||!l)&&(0,a.jsxs)("section",{className:"mx-auto mt-20 max-w-3xl px-5",children:[(0,a.jsx)(aZ,{center:!0,children:"Die Immobilie"}),(0,a.jsx)(aY,{center:!0,children:"Ein Zuhause mit Charakter"}),(0,a.jsxs)("div",{className:"mt-8",children:[r.description?(0,a.jsx)(tv,{content:r.description,className:"prose prose-lg prose-invert max-w-none prose-p:leading-[1.8] prose-p:text-[#d9d4ca] [&_p]:text-justify [&_p]:[hyphens:auto] [&_p+p]:mt-4"}):(0,a.jsx)("p",{className:`text-center ${aW}`,children:"Keine Beschreibung hinterlegt."}),r.targetGroup?(0,a.jsx)("p",{className:`${aV} mt-8 border-l-2 border-[#8fd9b4] pl-5 text-lg italic leading-relaxed ${aH}`,children:r.targetGroup}):null,l?null:(0,a.jsx)("div",{className:"mt-6 rounded-xl bg-[#ffffff]/5 p-4",children:(0,a.jsx)(ty,{project:e,projectId:t,onProjectChange:s})})]})]}),r.images.length>0?(0,a.jsxs)("section",{className:"mx-auto mt-20 max-w-6xl px-5",children:[(0,a.jsx)(aZ,{center:!0,children:"Einblicke"}),(0,a.jsxs)(aY,{center:!0,children:[r.images.length," Impressionen"]}),(0,a.jsx)("div",{className:"mt-8",children:(0,a.jsx)(tw.ProjectImageGallery,{images:r.images,projectTitle:r.title,enableSorting:!l,projectId:t,onImagesChanged:n})})]}):null,(r.highlights.length>0||r.hasEnergyData)&&(0,a.jsx)("section",{className:"mx-auto mt-20 max-w-6xl px-5",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]",children:[r.highlights.length>0?(0,a.jsxs)("div",{children:[(0,a.jsx)(aZ,{children:"Ausstattung"}),(0,a.jsx)(aY,{children:"Was dieses Objekt bietet"}),(0,a.jsx)("ul",{className:"mt-7 grid grid-cols-1 gap-x-8 sm:grid-cols-2",children:r.highlights.map(e=>{let t=lW[e.icon];return(0,a.jsxs)("li",{className:`flex items-center gap-3 border-b ${aK} py-3`,children:[(0,a.jsx)(t,{className:`h-4 w-4 shrink-0 ${aq}`,strokeWidth:1.5}),(0,a.jsxs)("span",{className:"text-sm",children:[e.label,e.detail?(0,a.jsxs)("span",{className:aW,children:[" · ",e.detail]}):null]})]},`${e.icon}-${e.label}`)})})]}):null,r.hasEnergyData?(0,a.jsxs)("div",{className:`rounded-2xl border ${aK} ${aU} p-6 lg:self-start`,children:[(0,a.jsx)(aZ,{children:"Energie"}),(0,a.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,a.jsx)("span",{className:"text-5xl font-light tabular-nums",children:r.energy.efficiencyClass??"â"}),(0,a.jsx)("span",{className:`text-sm ${aW}`,children:"Effizienzklasse"})]}),(0,a.jsx)(lJ,{efficiencyClass:r.energy.efficiencyClass,dark:!0,className:"mt-4"}),(0,a.jsx)(l2,{items:[{label:"Endenergie",value:r.energy.finalEnergyValue},{label:"Ausweisart",value:r.energy.certificateType},{label:"Energieträger",value:r.energy.primarySource},{label:"Heizung",value:r.energy.heatingType},{label:"Wärmeerzeuger",value:r.energy.heatGeneratorYear}].filter(e=>e.value),className:"mt-4 divide-[#ffffff]/10",labelClassName:aW,valueClassName:aH})]}):null]})}),(r.hasMapLocation||r.travelTimes.length>0||r.locationText)&&(0,a.jsxs)("section",{className:"mx-auto mt-20 max-w-6xl px-5",children:[(0,a.jsx)(aZ,{children:"Lage"}),(0,a.jsx)(aY,{children:r.locationLine||"Umgebung"}),(0,a.jsxs)("div",{className:`mt-8 grid grid-cols-1 overflow-hidden rounded-2xl border ${aK} ${aU} lg:grid-cols-[minmax(0,1fr)_360px]`,children:[r.hasMapLocation&&r.mapAddress?(0,a.jsx)("div",{className:"h-[340px] lg:h-[440px]",children:(0,a.jsx)(aO,{address:r.mapAddress,showStyleToggle:!1})}):null,(0,a.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,a.jsx)(ae,{items:u,bulletClassName:"bg-[#8fd9b4]",textClassName:aH}),r.locationScore?(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(l1,{score:r.locationScore.score,size:60,trackClassName:"text-white"}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-semibold",children:["Lage-Score",r.locationScore.label?` \xb7 ${r.locationScore.label}`:""]}),r.locationScore.reason?(0,a.jsx)("p",{className:`mt-0.5 text-xs ${aW}`,children:r.locationScore.reason}):null]})]}):null,r.travelTimes.length>0?(0,a.jsx)(l0,{items:r.travelTimes,rowClassName:`border-b ${aK} pb-2`,iconClassName:aq,mutedClassName:aW}):null,r.locationText?(0,a.jsx)(l7,{text:r.locationText,paragraphClassName:`text-sm leading-relaxed ${aW}`}):null]})]})]}),tH(r).length>0?(0,a.jsxs)("section",{className:"mx-auto mt-20 max-w-6xl px-5",children:[(0,a.jsx)(aZ,{children:"Daten"}),(0,a.jsx)(aY,{children:"Weitere Angaben"}),(0,a.jsx)("div",{className:"mt-8 grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3",children:tH(r).map(e=>(0,a.jsxs)("div",{className:`rounded-2xl border ${aK} ${aU} p-5`,children:[(0,a.jsx)("h3",{className:`${aV} mb-2 text-lg ${aH}`,children:e.title}),(0,a.jsx)(l2,{items:e.items,className:"divide-[#ffffff]/10",labelClassName:aW,valueClassName:aH})]},e.id))})]}):null,r.textBlocks.length>0?(0,a.jsxs)("section",{className:"mx-auto mt-20 max-w-3xl px-5",children:[(0,a.jsx)(aZ,{children:"Mehr"}),(0,a.jsx)(aY,{children:"Weitere Informationen"}),(0,a.jsx)("div",{className:"mt-8 space-y-6",children:r.textBlocks.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:`mb-1.5 text-[11px] font-semibold uppercase tracking-[0.2em] ${aW}`,children:e.label}),"url"===e.id?(0,a.jsx)("a",{href:e.text,target:"_blank",rel:"noreferrer",className:`break-all ${aq} hover:underline`,children:e.text}):(0,a.jsx)(l7,{text:e.text,paragraphClassName:"text-base leading-relaxed text-[#d9d4ca]"})]},e.id))})]}):null,(0,a.jsx)("section",{className:"mx-auto mt-24 max-w-3xl px-5",children:(0,a.jsxs)("div",{className:"rounded-[2rem] bg-[#f3efe7] px-6 py-10 text-center text-[#20232d] sm:px-12",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.28em] text-[#3a9168]",children:"Kontakt"}),(0,a.jsx)("h2",{className:`${aV} mt-3 text-3xl sm:text-4xl`,children:"Interesse an dieser Immobilie?"}),(0,a.jsx)("p",{className:"mx-auto mt-3 max-w-md text-base text-[#727887]",children:"Verkauf direkt vom Eigentümer über Sloothy. Ohne Käuferprovision."}),(0,a.jsx)("p",{className:"mt-6 text-3xl font-light tabular-nums",children:r.priceFormatted}),(0,a.jsx)("div",{className:"mt-6 flex justify-center",children:(0,a.jsx)(l3,{onClick:i,className:"w-auto px-8",children:"Anbieter kontaktieren"})}),r.listingId?(0,a.jsxs)("p",{className:"mt-5 text-xs text-[#727887]",children:["Inserat-ID ",r.listingId]}):null]})}),(0,a.jsx)(l5,{price:r.priceFormatted,subline:r.locationLine,onClick:i,visible:l,dark:!0})]})});var aQ=e.i(888551);let aJ=(0,c.default)(()=>
59e.A(532012),{loadableGenerated:{modules:[801342]},ssr:!1}),a0="text-[#20232d]",a1="text-[#727887]",a2="border-[#dedbd3]",a3=({children:e})=>(0,a.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.16em] text-[#5aa273]",children:e}),a5=({children:e})=>(0,a.jsx)("h2",{className:`text-2xl font-black tracking-tight sm:text-3xl ${a0}`,children:e}),a4=(0,o.observer)(function({project:e,projectId:t,isPublicAccess:l=!1,onProjectChange:s,onProjectRefresh:n}){let r=tU(e,{isPublicAccess:l}),i=lq(t,e.title),o=tK(r);return(0,a.jsxs)("div",{"data-listing-template":"showcase",className:`min-h-screen bg-white pb-24 lg:pb-16 ${a0}`,children:[(0,a.jsxs)("div",{className:"mx-auto max-w-[1500px] px-4 pt-5 sm:px-8 lg:px-10",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 xl:grid-cols-[minmax(0,1fr)_400px] xl:items-start",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[r.images.length>0?(0,a.jsx)(tw.ProjectImageGallery,{images:r.images,projectTitle:r.title,enableSorting:!l,projectId:t,onImagesChanged:n}):(0,a.jsxs)("div",{className:"flex h-[420px] flex-col items-center justify-center gap-4 roun
59ded-xl bg-[#f4f2ee]",children:[(0,a.jsx)(d.default,{src:"/loader.gif",alt:"Sloothy",width:144,height:144,unoptimized:!0,className:"h-36 w-36 object-contain"}),(0,a.jsx)("p",{className:`text-sm font-medium ${a1}`,children:"Bilder werden vorbereitet"})]}),(0,a.jsxs)("div",{className:"mt-7",children:[(0,a.jsx)("div",{className:"mb-3 flex flex-wrap gap-2",children:r.badges.map((e,t)=>(0,a.jsx)("span",{className:0===t?"rounded-md bg-[#20232d] px-2.5 py-1 text-xs font-semibold uppercase tracking-wide text-[#ffffff]":`rounded-md border ${a2} px-2.5 py-1 text-xs font-semibold uppercase tracking-wide ${a1}`,children:e},e))}),(0,a.jsx)("h1",{className:`max-w-4xl break-words [hyphens:auto] text-3xl font-black leading-[1.05] tracking-[-0.025em] sm:text-4xl lg:text-[2.9rem] ${a0}`,children:r.title}),r.locationLine?(0,a.jsxs)("p",{className:`mt-3 flex items-center gap-2 text-lg ${a1}`,children:[(0,a.jsx)(t9.MapPin,{className:"h-5 w-5 text-[#5aa273]",strokeWidth:1.75}),r.locationLine]}):null]})]}),(0,a.jsxs)("aside",{className:"xl:sticky xl:top-6",children:[(0,a.jsxs)("div",{className:"overflow-hidden rounded-[1.5rem] bg-[#215d43] text-[#ffffff] shadow-[0_20px_50px_rgba(33,93,67,0.28)]",children:[(0,a.jsxs)("div",{className:"p-6 sm:p-7",children:[(0,a.jsxs)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-[#ffffff]/70",children:[r.isSale?"Kaufpreis":"Miete",r.priceType?` \xb7 ${r.priceType}`:""]}),(0,a.jsx)("p",{className:"mt-1.5 text-[2.35rem] font-black leading-none tabular-nums tracking-tight",children:r.priceFormatted}),r.pricePerSqm?(0,a.jsx)("p",{className:"mt-2 text-sm text-[#ffffff]/75",children:r.pricePerSqm}):null,r.keyFacts.length>0?(0,a.jsx)("div",{className:"mt-6 grid grid-cols-2 gap-x-4 gap-y-4 border-t border-[#ffffff]/15 pt-5",children:r.keyFacts.slice(0,6).map(e=>{let t=lH[e.icon];return(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsx)(t,{className:"h-4 w-4 shrink-0 text-[#ffffff]/70",strokeWidth:1.75}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"truncate text-sm font-semibold leading-tight",children:e.value}),(0,a.jsx)("p",{className:"truncate text-[11px] text-[#ffffff]/65",children:e.label})]})]},e.label)})}):null,(0,a.jsx)(l3,{onClick:i,className:"mt-6 bg-white text-[#215d43] shadow-none hover:bg-[#f2faf5]",children:"Besichtigung anfragen"}),(0,a.jsxs)("p",{className:"mt-3 flex items-center gap-2 text-xs text-[#ffffff]/70",children:[(0,a.jsx)(aQ.ShieldCheck,{className:"h-4 w-4",strokeWidth:1.75}),"Direkt vom Eigentümer, keine Käuferprovision"]})]}),r.listingId?(0,a.jsxs)("div",{className:"border-t border-[#ffffff]/10 bg-[#1b4d37] px-6 py-3 text-xs text-[#ffffff]/60 sm:px-7",children:["Inserat-ID ",r.listingId]}):null]}),r.hasEnergyData?(0,a.jsxs)("div",{className:`mt-4 rounded-[1.25rem] border ${a2} p-5`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("p",{className:`text-xs font-semibold uppercase tracking-[0.12em] ${a1}`,children:"Energieklasse"}),(0,a.jsx)("span",{className:`text-xl font-black ${a0}`,children:r.energy.efficiencyClass??"â"})]}),(0,a.jsx)(lJ,{efficiencyClass:r.energy.efficiencyClass,compact:!0,className:"mt-3"}),r.energy.finalEnergyValue||r.energy.heatingType?(0,a.jsx)("p",{className:`mt-3 text-xs ${a1}`,children:[r.energy.finalEnergyValue,r.energy.heatingType,r.energy.certificateType].filter(Boolean).join(" · ")}):null]}):null]})]}),r.highlights.length>0?(0,a.jsxs)("section",{className:"mt-14",children:[(0,a.jsx)(a3,{children:"Ausstattung"}),(0,a.jsx)(a5,{children:"Was dieses Objekt besonders macht"}),(0,a.jsx)("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:r.highlights.map(e=>(0,a.jsx)(lY,{item:e,className:`rounded-2xl border ${a2} bg-[#fbfaf8] p-4`,iconWrapClassName:"bg-[#e7f2eb] text-[#3a9168]",detailClassName:a1},`${e.icon}-${e.label}`))})]}):null,(r.description||!l)&&(0,a.jsxs)("section",{className:"mt-14 grid grid-cols-1 gap-8 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(a3,{children:"Beschreibung"}),(0,a.jsx)(a5,{children:"Ãber diese Immobilie"}),(0,a.jsxs)("div",{className:"mt-5",children:[r.description?(0,a.jsx)(tv,{content:r.description,className:"prose prose-lg max-w-none prose-p:leading-relaxed prose-p:text-[#20232d] [&_p]:text-justify [&_p]:[hyphens:auto] [&_p+p]:mt-4"}):(0,a.jsx)("p",{className:a1,children:"Keine Beschreibung hinterlegt."}),l?null:(0,a.jsx)(ty,{project:e,projectId:t,onProjectChange:s})]})]}),r.targetGroup||r.softFactors?(0,a.jsxs)("div",{className:"space-y-4 lg:pt-14",children:[r.targetGroup?(0,a.jsxs)("div",{className:"rounded-2xl bg-[#f2faf5] p-5",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-[#3a9168]",children:"Zielgruppe"}),(0,a.jsx)("p",{className:`mt-2 text-base leading-relaxed ${a0}`,children:r.targetGroup})]}):null,r.softFactors?(0,a.jsxs)("div",{className:`rounded-2xl border ${a2} p-5`,children:[(0,a.jsx)("p",{className:`text-xs font-semibold uppercase tracking-[0.12em] ${a1}`,children:"Potenzial"}),(0,a.jsx)(l7,{text:r.softFactors,className:"mt-2 space-y-2",paragraphClassName:`text-sm leading-relaxed ${a0}`})]}):null]}):null]}),(r.hasMapLocation||r.travelTimes.length>0||r.locationText)&&(0,a.jsxs)("section",{className:"mt-14",children:[(0,a.jsx)(a3,{children:"Lage"}),(0,a.jsx)(a5,{children:r.locationLine||"Umgebung"}),(0,a.jsxs)("div",{className:`mt-6 grid grid-cols-1 overflow-hidden rounded-[1.5rem] border ${a2} lg:grid-cols-[minmax(0,1fr)_340px]`,children:[r.hasMapLocation&&r.mapAddress?(0,a.jsx)("div",{className:"h-[340px] bg-[#efeee9] lg:h-[420px]",children:(0,a.jsx)(aJ,{address:r.mapAddress,showStyleToggle:!1})}):null,(0,a.jsxs)("div",{className:"flex flex-col gap-5 bg-[#fbfaf8] p-6",children:[(0,a.jsx)(ae,{items:o,textClassName:a0}),r.locationScore?(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(l1,{score:r.locationScore.score,size:64,trackClassName:"text-[#20232d]"}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:`text-sm font-bold ${a0}`,children:["Lage-Score",r.locationScore.label?` \xb7 ${r.locationScore.label}`:""]}),r.locationScore.reason?(0,a.jsx)("p",{className:`mt-0.5 text-xs leading-relaxed ${a1}`,children:r.locationScore.reason}):null]})]}):null,r.travelTimes.length>0?(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:`mb-2 text-xs font-semibold uppercase tracking-[0.12em] ${a1}`,children:"Erreichbarkeit"}),(0,a.jsx)(l0,{items:r.travelTimes,rowClassName:`rounded-lg border ${a2} bg-white px-3 py-2`,iconClassName:"text-[#5aa273]",mutedClassName:a1})]}):null,r.locationText?(0,a.jsx)(l7,{text:r.locationText,paragraphClassName:`text-sm leading-relaxed ${a0}`}):null]})]})]}),tH(r).length>0?(0,a.jsxs)("section",{className:"mt-14",children:[(0,a.jsx)(a3,{children:"Daten"}),(0,a.jsx)(a5,{children:"Weitere Angaben im Ãberblick"}),(0,a.jsx)("div",{className:"mt-6 grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3",children:tH(r).map(e=>(0,a.jsxs)("div",{className:`rounded-2xl border ${a2} bg-white p-5`,children:[(0,a.jsx)("h3",{className:`mb-2 text-base font-bold ${a0}`,children:e.title}),(0,a.jsx)(l2,{items:e.items,className:"divide-[#efeee9]",labelClassName:a1,valueClassName:a0})]},e.id))})]}):null,r.textBlocks.length>0?(0,a.jsxs)("section",{className:"mt-14 max-w-4xl",children:[(0,a.jsx)(a3,{children:"Mehr"}),(0,a.jsx)(a5,{children:"Weitere Informationen"}),(0,a.jsx)("div",{className:"mt-6 space-y-6",children:r.textBlocks.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:`mb-1.5 text-xs font-semibold uppercase tracking-[0.12em] ${a1}`,children:e.label}),"url"===e.id?(0,a.jsx)("a",{href:e.text,target:"_blank",rel:"noreferrer",className:"break-all font-medium text-[#3a9168] hover:underline",children:e.text}):(0,a.jsx)(l7,{text:e.text,paragraphClassName:`text-base leading-relaxed ${a0}`})]},e.id))})]}):null,(0,a.jsx)("section",{className:"mt-16 rounded-[1.75rem] bg-[#f2faf5] px-6 py-8 sm:px-10 sm:py-10",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-[#3a9168]",children:"Interesse?"}),(0,a.jsx)("h2",{className:`mt-1.5 text-2xl font-black tracking-tight sm:text-3xl ${a0}`,children:"Besichtigung anfragen oder Fragen stellen"}),(0,a.jsx)("p",{className:`mt-2 max-w-xl text-base ${a1}`,children:"Ihre Anfrage geht direkt an den Eigentümer. Ohne Makler, ohne Käuferprovision."})]}),(0,a.jsx)(l3,{onClick:i,className:"lg:w-auto lg:px-8",children:"Anbieter kontaktieren"})]})})]}),(0,a.jsx)(l5,{price:r.priceFormatted,subline:r.locationLine,onClick:i,visible:l})]})});var a7=((l={}).APP_STANDARD="app_standard",l.EXPOSE="expose",l.EDITORIAL="editorial",l.SHOWCASE="showcase",l.PRESTIGE="prestige",l.CLEAR="clear",l);let a6={app_standard:{id:"app_standard",name:"Standard",description:"Galerie oben, Text und Tabellen darunter - ruhig und vertraut",swatch:{background:"#fbfaf8",surface:"#ffffff",accent:"#5aa273",ink:"#20232d"}},expose:{id:"expose",name:"Exposé",description:"Kapitel wie im Makler-Exposé: Cover, Lage, Ausstattung, Energie, Grundriss, Finanzierung, Kontakt - druckfertig",swatch:{background:"#215d43",surface:"#ffffff",accent:"#8fd9b4",ink:"#ffffff"}},editorial:{id:"editorial",name:"Magazin",description:"GroÃes Titelbild mit Headline, Eckdaten-Leiste, redaktioneller Aufbau",swatch:{background:"#fbfaf8",surface:"#20232d",accent:"#5aa273",ink:"#ffffff"}},showcase:{id:"showcase",name:"Galerie",description:"Bildstark mit grüner Preis-Karte, Highlight-Kacheln und groÃer Karte",swatch:{background:"#ffffff",surface:"#215d43",accent:"#e7f2eb",ink:"#ffffff"}}
59,prestige:{id:"prestige",name:"Abend",description:"Dunkle Bühne, zentrierte Headline, elegant für hochwertige Objekte",swatch:{background:"#14171c",surface:"#1c2028",accent:"#8fd9b4",ink:"#f3efe7"}},clear:{id:"clear",name:"Klar",description:"Eine Spalte, viel Luft, Preis und Fakten zuerst - schnell erfassbar",swatch:{background:"#ffffff",surface:"#f7f5f1",accent:"#5aa273",ink:"#20232d"}}},a8="app_standard";e.s(["DEFAULT_TEMPLATE",0,a8,"ProjectTemplate",()=>a7,"TEMPLATE_REGISTRY",0,a6,"getAllTemplates",0,function(){return Object.values(a6)}],147470),e.s(["TemplateSwatch",0,function({template:e,className:t}){let{background:l,surface:s,accent:n,ink:r}=e.swatch;return(0,a.jsxs)("div",{className:(0,lU.cn)("relative h-10 w-14 shrink-0 overflow-hidden rounded-md border border-black/10",t),style:{backgroundColor:l},"aria-hidden":"true",children:[(0,a.jsx)("div",{className:"absolute inset-x-1.5 top-1.5 h-4 rounded-sm",style:{backgroundColor:s}}),(0,a.jsx)("div",{className:"absolute left-1.5 top-[26px] h-1 w-6 rounded-full",style:{backgroundColor:r,opacity:.55}}),(0,a.jsx)("div",{className:"absolute left-1.5 top-[31px] h-1 w-4 rounded-full",style:{backgroundColor:r,opacity:.3}}),(0,a.jsx)("div",{className:"absolute bottom-1.5 right-1.5 h-2.5 w-4 rounded-sm",style:{backgroundColor:n}})]})}],698778);let a9={[a7.APP_STANDARD]:t8,[a7.EXPOSE]:aB,[a7.EDITORIAL]:ap,[a7.SHOWCASE]:a4,[a7.PRESTIGE]:aX,[a7.CLEAR]:ai};e.s(["getTemplateComponent",0,function(e){return a9[e]||a9[a8]}],763479)}]);
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.