1import{L as Y,k,x as N,M as J,g as $,o as C,N as Z,d as j,h as q,j as V,b as L,i as G,t as B,J as Q,E}from"./udrCdUOj.js";import{u as K}from"./hfk4IvCc.js";const y=(n,t,e)=>{const i=document.createElement(n),[s,r]=Array.isArray(t)?[void 0,t]:[t,e];return s&&Object.assign(i,s),r==null||r.forEach(a=>i.appendChild(a)),i},tt=(n,t)=>{var e;return t==="left"?n.offsetLeft:(((e=n.offsetParent instanceof HTMLElement?n.offsetParent:null)==null?void 0:e.offsetWidth)??0)-n.offsetWidth-n.offsetLeft},et=n=>n.offsetWidth>0&&n.offsetHeight>0,it=(n,t)=>{customElements.get(n)!==t&&customElements.define(n,t)};function st(n,t,{reverse:e=!1}={}){const i=n.length;for(let s=e?i-1:0;e?s>=0:s<i;e?s--:s++)t(n[s],s)}function nt(n,t,e,i){const s=t.formatToParts(n);e&&s.unshift({type:"prefix",value:e}),i&&s.push({type:"suffix",value:i});const r=[],a=[],o=[],h=[],l={},d=u=>`${u}:${l[u]=(l[u]??-1)+1}`;let g="",m=!1,f=!1;for(const u of s){g+=u.value;const c=u.type==="minusSign"||u.type==="plusSign"?"sign":u.type;c==="integer"?(m=!0,a.push(...u.value.split("").map(A=>({type:c,value:parseInt(A)})))):c==="group"?a.push({type:c,value:u.value}):c==="decimal"?(f=!0,o.push({type:c,value:u.value,key:d(c)})):c==="fraction"?o.push(...u.value.split("").map(A=>({type:c,value:parseInt(A),key:d(c),pos:-1-l[c]}))):(m||f?h:r).push({type:c,value:u.value,key:d(c)})}const w=[];for(let u=a.length-1;u>=0;u--){const c=a[u];w.unshift(c.type==="integer"?{...c,key:d(c.type),pos:l[c.type]}:{...c,key:d(c.type)})}return{pre:r,integer:w,fraction:o,post:h,valueAsString:g,value:typeof n=="string"?parseFloat(n):n}}const at=String.raw,rt=(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0})(),ot=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),D=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,S="--_number-flow-d-opacity",U="--_number-flow-d-width",T="--_number-flow-dx",M="--_number-flow-d",lt=(()=>{try{return CSS.registerProperty({name:S,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:T,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:U,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:M,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),ht="var(--number-flow-char-height, 1em)",v="var(--number-flow-mask-height, 0.25em)",F=`calc(${v} / 2)`,P="var(--number-flow-mask-width, 0.5em)",b=`calc(${P} / var(--scale-x))`,_="#000 0, transparent 71%",I=at`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${ht} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${U}) / var(--width));transform:translateX(var(${T})) scaleX(var(--scale-x));margin:0 calc(-1 * ${P});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${b},#000 calc(100% - ${b}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${v},#000 calc(100% - ${v}),transparent 100% ),radial-gradient(at bottom right,${_}),radial-gradient(at bottom left,${_}),radial-gradient(at top left,${_}),radial-gradient(at top right,${_});-webkit-mask-size:100% calc(100% - ${v} * 2),calc(100% - ${b} * 2) 100%,${b} ${v},${b} ${v},${b} ${v},${b} ${v};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${F} ${P};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${T})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${M})}.digit__num,.number .section::after{padding:${F} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${S}))}`,ct=HTMLElement,dt=ot&&rt&<let x;class p extends ct{constructor(){super(),this.created=!1,this.batched=!1;const{animated:t,...e}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,e)}get animated(){return this._animated}set animated(t){var e;this.animated!==t&&(this._animated=t,(e=this.shadowRoot)==null||e.getAnimations().forEach(i=>i.finish()))}set data(t){var e;if(t==null)return;const{pre:i,integer:s,fraction:r,post:a,value:o}=t;if(this.created){const h=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(h.value,o):this.trend,this.computedAnimated=dt&&this._animated&&(!this.respectMotionPreference||!(D!=null&&D.matches))&&et(this),(e=this.plugins)==null||e.forEach(l=>{var d;return(d=l.onUpdate)==null?void 0:d.call(l,t,h,this)}),this.batched||this.willUpdate(),this._pre.update(i),this._num.update({integer:s,fraction:r}),this._post.update(a),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}if(typeof CSSStyleSheet<"u"&&this.shadowRoot.adoptedStyleSheets)x||(x=new CSSStyleSheet,x.replaceSync(I)),this.shadowRoot.adoptedStyleSheets=[x];else{const h=document.createElement("style");h.textContent=I,this.shadowRoot.appendChild(h)}this._pre=new O(this,i,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new ut(this,s,r),this.shadowRoot.appendChild(this._num.el),this._post=new O(this,a,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.
1willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(e=>e.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}}p.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(n,t)=>Math.sign(t-n),respectMotionPreference:!0,plugins:void 0,digits:void 0};class ut{constructor(t,e,i,{className:s,...r}={}){this.flow=t,this._integer=new X(t,e,{justify:"right",part:"integer"}),this._fraction=new X(t,i,{justify:"left",part:"fraction"}),this._inner=y("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=y("span",{...r,part:"number",className:`number ${s??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:e}){this._integer.update(t),this._fraction.update(e)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const e=this._prevLeft-t.left,i=this.el.offsetWidth,s=this._prevWidth-i;this.el.style.setProperty("--width",String(i)),this.el.animate({[T]:[`${e}px`,"0px"],[U]:[s,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class W{constructor(t,e,{justify:i,className:s,...r},a){this.flow=t,this.children=new Map,this.onCharRemove=h=>()=>{this.children.delete(h)},this.justify=i;const o=e.map(h=>this.addChar(h).el);this.el=y("span",{...r,className:`section section--justify-${i} ${s??""}`},a?a(o):o)}addChar(t,{startDigitsAtZero:e=!1,...i}={}){const s=t.type==="integer"||t.type==="fraction"?new H(this,t.type,e?0:t.value,t.pos,{...i,onRemove:this.onCharRemove(t.key)}):new pt(this,t.type,t.value,{...i,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,s),s}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(e=>{e.el.style.top=`${e.el.offsetTop}px`,e.el.style[this.justify]=`${tt(e.el,this.justify)}px`}),t.forEach(e=>{e.el.setAttribute("inert",""),e.present=!1})}addNewAndUpdateExisting(t){const e=new Map,i=new Map,s=this.justify==="left",r=s?"prepend":"append";if(st(t,a=>{let o;this.children.has(a.key)?(o=this.children.get(a.key),i.set(a,o),this.unpop(o),o.present=!0):(o=this.addChar(a,{startDigitsAtZero:!0,animateIn:!0}),e.set(a,o)),this.el[r](o.el)},{reverse:s}),this.flow.computedAnimated){const a=this.el.getBoundingClientRect();e.forEach(o=>{o.willUpdate(a)})}e.forEach((a,o)=>{a.update(o.value)}),i.forEach((a,o)=>{a.update(o.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(e=>e.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(s=>s.didUpdate(t));const e=t[this.justify],i=this._prevOffset-e;i&&this.children.size&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class X extends W{update(t){const e=new Map;this.children.forEach((i,s)=>{t.find(r=>r.key===s)||e.set(s,i),this.unpop(i)}),this.addNewAndUpdateExisting(t),e.forEach(i=>{i instanceof H&&i.update(0)}),this.pop(e)}}class O extends W{update(t){const e=new Map;this.children.forEach((i,s)=>{t.find(r=>r.key===s)||e.set(s,i)}),this.pop(e),this.addNewAndUpdateExisting(t)}}let R=class{constructor(t,e,{onRemove:i,animateIn:s=!1}
1={}){this.flow=t,this.el=e,this._present=!0,this._remove=()=>{var r;this.el.remove(),(r=this._onRemove)==null||r.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&s&&this.el.animate({[S]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=i}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[S]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}};class z extends R{constructor(t,e,i,s){super(t.flow,i,s),this.section=t,this.value=e,this.el=i}}class H extends z{constructor(t,e,i,s,r){var a,o;const h=(((o=(a=t.flow.digits)==null?void 0:a[s])==null?void 0:o.max)??9)+1,l=Array.from({length:h}).map((g,m)=>{const f=y("span",{className:"digit__num"},[document.createTextNode(String(m))]);return m!==i&&f.setAttribute("inert",""),f.style.setProperty("--n",String(m)),f}),d=y("span",{part:`digit ${e}-digit`,className:"digit"},l);d.style.setProperty("--current",String(i)),d.style.setProperty("--length",String(h)),super(t,i,d,r),this.pos=s,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=l,this.length=h}willUpdate(t){const e=this.el.getBoundingClientRect();this._prevValue=this.value;const i=e[this.section.justify]-t[this.section.justify],s=e.width/2;this._prevCenter=this.section.justify==="left"?i+s:i-s}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((e,i)=>i===t?e.removeAttribute("inert"):e.setAttribute("inert","")),this.value=t}didUpdate(t){const e=this.el.getBoundingClientRect(),i=e[this.section.justify]-t[this.section.justify],s=e.width/2,r=this.section.justify==="left"?i+s:i-s,a=this._prevCenter-r;a&&this.el.animate({transform:[`translateX(${a}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const o=this.getDelta();o&&(this.el.classList.add("is-spinning"),this.el.animate({[M]:[-o,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const s of this.flow.plugins){const r=(t=s.getDelta)==null?void 0:t.call(s,this.value,this._prevValue,this);if(r!=null)return r}const e=this.value-this._prevValue,i=this.flow.computedTrend||Math.sign(e);return i<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:i>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:e}}class pt extends z{constructor(t,e,i,s){const r=y("span",{className:"symbol__value",textContent:i});super(t,i,y("span",{part:`symbol ${e}`,className:"symbol"},[r]),s),this.type=e,this._children=new Map,this._onChildRemove=a=>()=>{this._children.delete(a)},this._children.set(i,new R(this.flow,r,{onRemove:this._onChildRemove(i)}))}willUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect();this._prevOffset=e[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const e=this._children.get(this.value);e&&(e.present=!1);const i=this._children.get(t);if(i)i.present=!0;else{const s=y("span",{className:"symbol__value",textContent:t});this.el.appendChild(s),this._children.set(t,new R(this.flow,s,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],i=this._prevOffset-e;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const mt=Symbol(),ft=["batched","trend","plugins","animated","transformTiming","spinTiming","opacityTiming","respectMotionPreference","data-will-change","digits","innerHTML","data"],gt=Y({inheritAttrs:!1,__name:"index",props:{transformTiming:{default:()=>p.defaultProps.transformTiming},spinTiming:{default:()=>p.defaultProps.spinTiming},opacityTiming:{default:()=>p.defaultProps.opacityTiming},animated:{type:Boolean,default:()=>p.defaultProps.animated},respectMotionPreference:{type:Boolean,default:()=>p.defaultProps.respectMotionPreference},trend:{type:[Number,Function],default:()=>p.defaultProps.trend},plugins:{default:()=>p.defaultProps.plugins},digits:{default:()=>p.defaultProps.digits},locales:{},format:{},value:{},prefix:{},suffix:{},willChange:{type:Boolean,default:!1}},emits:["animationsstart","animationsfinish"],setup(n,{expose:t,emit:e}){const i=k();t({el:i});const s=e,r=N(()=>new Intl.NumberFormat(n.locales,n.format)),a=N(()=>nt(n.value,r.value,n.prefix,n.suffix)),o=void 0,h=J(mt,void 0);return h==null||h(i,a),(l,d)=>(C(),$("number-flow-vue",Z({ref_key:"el",ref:i},l.$attrs,{batched:!!j(h),trend:l.trend,plugins:l.plugins,animated:l.animated,transformTiming:l.transformTiming,spinTiming:l.spinTiming,opacityTiming:l.opacityTiming,respectMotionPreference:l.respectMotionPreference,"data-will-change":l.willChange?"":void 0,digits:l.digits,innerHTML:j(o),"data-allow-mismatch":"",onAnimationsstart:d[0]||(d[0]=g=>s("animationsstart")),onAnimationsfinish:d[1]||(d[1]=g=>s("animationsfinish")),data:a.value}),null,16,ft))}});it("number-flow-vue",p);const vt=["textContent"],yt=["textContent"],xt={__name:"Number",props:{blok:Object},setup(n){let t=n;const e=k(K(t.blok.spacing)),i=k(t.blok.value.trim()),s=k(t.blok.startValue.trim()),r=function(){setTimeout(()=>{s.value=i.value},1e3)},a=function(){s.value=t.blok.startValue.trim()};return(o,h)=>{var g,m,f,w;const l=V("editable"),d=V("seitwerk-scroll");return q((C(),$("div",{class:E(["font-bold",[e.value,{inline:n.blok.inline,"text-3xl md:text-6xl lg:text-6xl text-center":!n.blok.inline}]]),onIntersect:r,onUnintersect:a},[n.blok.textAfter?(C(),$("div",{key:0,class:"text-base text-center",style:Q({color:((g=n.blok.colorText)==null?void 0:g.color)??"inherit"}),textContent:B(n.blok.textBefore)},null,12,vt)):L("",!0),G(j(gt),{class:E([`sw-text-${(m=n.blok.color)==null?void 0:m.value}`]),value:s.value,prefix:n.blok.prefix??null,suffix:n.blok.suffix??null,trend:1,format:{minimumIntegerDigits:Math.round(i.value*1).toString().length}},null,8,["class","value","prefix","suffix","format"]),n.blok.textAfter?(C(),$("div",{key:1,class:E(["text-sm md:text-base font-medium border-t pt-4 text-left",[`sw-text-${(f=n.blok.colorText)==null?void 0:f.value}`,`border-t-${((w=n.blok.colorText)==null?void 0:w.value)??"black/30"}`]]),textContent:B(n.blok.textAfter)},null,10,yt)):L("",!0)],34)),[[l,n.blok],[d]])}}};export{xt as default};
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.