PageSourceSearch

https://app.shoptic.ai/_next/static/chunks/2781.79e6599434e894cb.js

js shoptic.ai collected 2026-10-05 15:25:53 UTC 18,855 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2781],{12781:(t,e,i)=>{i.r(e),i.d(e,{NumberFlowElement:()=>L,NumberFlowGroup:()=>D,continuous:()=>$,default:()=>B,styles:()=>X,useCanAnimate:()=>J,useIsSupported:()=>H,usePrefersReducedMotion:()=>z});var n,s=i(12115);String.raw;let a=String.raw,r=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),l="u">typeof CSS&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),o="u">typeof matchMedia?matchMedia("(prefers-reduced-motion: reduce)"):null,h="--_number-flow-d-opacity",d="--_number-flow-d-width",p="--_number-flow-dx",u="--_number-flow-d",c=(()=>{try{return CSS.registerProperty({name:h,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:p,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:d,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:u,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),m="round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)",f=`calc(${m} * 2)`,g="var(--number-flow-mask-width, 0.5em)",v=`calc(${g} / var(--scale-x))`,y="#000 0, transparent 71%",w=a`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:1}.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(${d}) / var(--width));transform:translateX(var(${p})) scaleX(var(--scale-x));margin:0 calc(-1 * ${g});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${v},#000 calc(100% - ${v}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${f},#000 calc(100% - ${f}),transparent 100% ),radial-gradient(at bottom right,${y}),radial-gradient(at bottom left,${y}),radial-gradient(at top left,${y}),radial-gradient(at top right,${y});-webkit-mask-size:100% calc(100% - ${f} * 2),calc(100% - ${v} * 2) 100%,${v} ${f},${v} ${f},${v} ${f},${v} ${f};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${m} ${g};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${p})))}: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(${u})}.digit__num,.number .section::after{padding:${m} 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(${h}))}`,_=HTMLElement,b=a`:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:1}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:${m} 0}.symbol{white-space:pre}`,E=new WeakMap,$={onUpdate(t,e,i){let n,s;if(E.set(i,void 0),!i.computedTrend)return;let a=e.integer.concat(e.fraction).filter(t=>"integer"===t.type||"fraction"===t.type),r=t.integer.concat(t.fraction).filter(t=>"integer"===t.type||"fraction"===t.type),l=a.find(t=>!r.find(e=>e.pos===t.pos&&e.value===t.value)),o=r.find(t=>!a.find(e=>t.pos===e.pos&&t.value===e.value));E.set(i,(n=null==l?void 0:l.pos,s=null==o?void 0:o.pos,null==n?s:null==s?n:Math.max(n,s)))},getDelta(t,e,i){let n=E.get(i.flow);if(!(t-e)&&null!=n&&n>=i.pos)return i.length*i.flow.computedTrend}}
1,C=(t,e,i)=>{let n=document.createElement(t),[s,a]=Array.isArray(e)?[void 0,e]:[e,i];return s&&Object.assign(n,s),null==a||a.forEach(t=>n.appendChild(t)),n},x=l&&r&&c;class S extends _{constructor(){super(),this.created=!1,this.batched=!1;let{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,null==(e=this.shadowRoot)||e.getAnimations().forEach(t=>t.finish()))}set data(t){var e;if(null==t)return;let{pre:i,integer:n,fraction:s,post:a,value:r}=t;if(this.created){let l=this._data;this._data=t,this.computedTrend="function"==typeof this.trend?this.trend(l.value,r):this.trend,this.computedAnimated=x&&this._animated&&(!this.respectMotionPreference||!(null!=o&&o.matches))&&this.offsetWidth>0&&this.offsetHeight>0&&"visible"===this.ownerDocument.visibilityState,null==(e=this.plugins)||e.forEach(e=>{var i;return null==(i=e.onUpdate)?void 0:i.call(e,t,l,this)}),this.batched||this.willUpdate(),this._pre.update(i),this._num.update({integer:n,fraction:s}),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{}let e=document.createElement("style");this.nonce&&(e.nonce=this.nonce),e.textContent=w,this.shadowRoot.appendChild(e),this._pre=new U(this,i,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new R(this,n,s),this.shadowRoot.appendChild(this._num.el),this._post=new U(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.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();let t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(t=>t.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}}S.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:(t,e)=>Math.sign(e-t),respectMotionPreference:!0,plugins:void 0,digits:void 0};class R{constructor(t,e,i,{className:n,...s}={}){this.flow=t,this._integer=new k(t,e,{justify:"right",part:"integer"}),this._fraction=new k(t,i,{justify:"left",part:"fraction"}),this._inner=C("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=C("span",{...s,part:"number",className:`number ${n??""}`},[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(){let t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();let e=this._prevLeft-t.left,i=this.el.offsetWidth,n=this._prevWidth-i;this.el.style.setProperty("--width",String(i)),this.el.animate({[p]:[`${e}px`,"0px"],[d]:[n,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class A{constructor(t,e,{justify:i,className:n,...s},a){this.flow=t,this.children=new Map,this.onCharRemove=t=>()=>{this.children.delete(t)},this.justify=i;let r=e.map(t=>this.addChar(t).el);this.el=C("span",{...s,className:`section section--justify-${i} ${n??""}`},a?a(r):r)}addChar(t,{startDigitsAtZero:e=!1,...i}={}){let n="integer"===t.type||"fraction"===t.type?new P(this,t.type,e?0:t.value,t.pos,{...i,onRemove:this.onCharRemove(t.key)}):new N(this,t.type,t.value,{...i,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,n),n}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(t=>{var e,i;t.el.style.top=`${t.el.offsetTop}px`,t.el.style[this.justify]=`${e=t.el,"left"===this.justify?e.offsetLeft:((null==(i=e.offsetParent instanceof HTMLElement?e.offsetParent:null)?void 0:i.offsetWidth)??0)-e.offsetWidth-e.offsetLeft}px`}),t.forEach(t=>{t.el.setAttribute("inert",""),t.present=!1})}addNewAndUpdateExisting(t){let e=new Map,i=new Map,n="left"===this.justify,s=n?"prepe
1nd":"append";if(function(t,e,{reverse:i=!1}={}){let n=t.length;for(let s=i?n-1:0;i?s>=0:s<n;i?s--:s++)e(t[s],s)}(t,t=>{let n;this.children.has(t.key)?(n=this.children.get(t.key),i.set(t,n),this.unpop(n),n.present=!0):(n=this.addChar(t,{startDigitsAtZero:!0,animateIn:!0}),e.set(t,n)),this.el[s](n.el)},{reverse:n}),this.flow.computedAnimated){let t=this.el.getBoundingClientRect();e.forEach(e=>{e.willUpdate(t)})}e.forEach((t,e)=>{t.update(e.value)}),i.forEach((t,e)=>{t.update(e.value)})}willUpdate(){let t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(e=>e.willUpdate(t))}didUpdate(){let t=this.el.getBoundingClientRect();this.children.forEach(e=>e.didUpdate(t));let 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 k extends A{update(t){let e=new Map;this.children.forEach((i,n)=>{t.find(t=>t.key===n)||e.set(n,i),this.unpop(i)}),this.addNewAndUpdateExisting(t),e.forEach(t=>{t instanceof P&&t.update(0)}),this.pop(e)}}class U extends A{update(t){let e=new Map;this.children.forEach((i,n)=>{t.find(t=>t.key===n)||e.set(n,i)}),this.pop(e),this.addNewAndUpdateExisting(t)}}class j{constructor(t,e,{onRemove:i,animateIn:n=!1}
1={}){this.flow=t,this.el=e,this._present=!0,this._remove=()=>{var t;this.el.remove(),null==(t=this._onRemove)||t.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&n&&this.el.animate({[h]:[-.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({[h]: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 M extends j{constructor(t,e,i,n){super(t.flow,i,n),this.section=t,this.value=e,this.el=i}}class P extends M{constructor(t,e,i,n,s){var a,r;let l=((null==(r=null==(a=t.flow.digits)?void 0:a[n])?void 0:r.max)??9)+1,o=Array.from({length:l}).map((t,e)=>{let n=C("span",{className:"digit__num"},[document.createTextNode(String(e))]);return e!==i&&n.setAttribute("inert",""),n.style.setProperty("--n",String(e)),n}),h=C("span",{part:`digit ${e}-digit`,className:"digit"},o);h.style.setProperty("--current",String(i)),h.style.setProperty("--length",String(l)),super(t,i,h,s),this.pos=n,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=o,this.length=l}willUpdate(t){let e=this.el.getBoundingClientRect();this._prevValue=this.value;let i=e[this.section.justify]-t[this.section.justify],n=e.width/2;this._prevCenter="left"===this.section.justify?i+n:i-n}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){let e=this.el.getBoundingClientRect(),i=e[this.section.justify]-t[this.section.justify],n=e.width/2,s="left"===this.section.justify?i+n:i-n,a=this._prevCenter-s;a&&this.el.animate({transform:[`translateX(${a}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});let r=this.getDelta();r&&(this.el.classList.add("is-spinning"),this.el.animate({[u]:[-r,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(let e of this.flow.plugins){let i=null==(t=e.getDelta)?void 0:t.call(e,this.value,this._prevValue,this);if(null!=i)return i}let 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 N extends M{constructor(t,e,i,n){let s=C("span",{className:"symbol__value",textContent:i});super(t,i,C("span",{part:`symbol ${e}`,className:"symbol"},[s]),n),this.type=e,this._children=new Map,this._onChildRemove=t=>()=>{this._children.delete(t)},this._children.set(i,new j(this.flow,s,{onRemove:this._onChildRemove(i)}))}willUpdate(t){if("decimal"===this.type)return;let e=this.el.getBoundingClientRect();this._prevOffset=e[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){let e=this._children.get(this.value);e&&(e.present=!1);let i=this._children.get(t);if(i)i.present=!0;else{let e=C("span",{className:"symbol__value",textContent:t});this.el.appendChild(e),this._children.set(t,new j(this.flow,e,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if("decimal"===this.type)return;let 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"})}}let T=parseInt(null==(n=s.version.match(/^(\d+)\./))?void 0:n[1])>=19;class L extends S{attributeChangedCallback(t,e,i){this[t]=JSON.parse(i)}}L.observedAttributes=T?[]:["data","digits"],((t,e)=>{customElements.get(t)||customElements.define(t,e)})("number-flow-react",L);let F={},I=T?function(t){return t}:JSON.stringify;function O(t){let{transformTiming:e,spinTiming:i,opacityTiming:n,animated:s,respectMotionPreference:a,trend:r,plugins:l,...o}=t;return[{transformTiming:e,spinTiming:i,opacityTiming:n,animated:s,respectMotionPreference:a,trend:r,plugins:l},o]}class V extends s.Component{updateProperties(t){if(!this.el)return;this.el.batched=!this.props.isolate;let[e]=O(this.props);Object.entries(e).forEach(t=>{let[e,i]=t;this.el[e]=null!=i?i:L.defaultProps[e]}),(null==t?void 0:t.onAnimationsStart)&&this.el.removeEventListener("animationsstart",t.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),
1(null==t?void 0:t.onAnimationsFinish)&&this.el.removeEventListener("animationsfinish",t.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),T&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(t){if(this.updateProperties(t),t.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>{var t;return null==(t=this.props.group)?void 0:t.didUpdate()};if(!this.props.isolate){var e;return null==(e=this.el)||e.willUpdate(),()=>{var t;return null==(t=this.el)?void 0:t.didUpdate()}}}return null}componentDidUpdate(t,e,i){null==i||i()}handleRef(t){this.props.innerRef&&(this.props.innerRef.current=t),this.el=t}render(){let[t,{innerRef:e,className:i,data:n,nonce:a,willChange:r,isolate:l,group:o,digits:h,onAnimationsStart:d,onAnimationsFinish:p,...u}]=O(this.props);return s.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":r?"":void 0,class:i,nonce:a,...u,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:I(h),data:I(n)})}constructor(t){super(t),this.handleRef=this.handleRef.bind(this)}}let B=s.forwardRef(function(t,e){let{value:i,locales:n,format:a,prefix:r,suffix:l,...o}=t;s.useImperativeHandle(e,()=>h.current,[]);let h=s.useRef(),d=s.useContext(W);null==d||d.useRegister(h);let p=s.useMemo(()=>n?JSON.stringify(n):"",[n]),u=s.useMemo(()=>a?JSON.stringify(a):"",[a]),c=s.useMemo(()=>{var t,e;return function(t,e,i,n){let s=e.formatToParts(t);i&&s.unshift({type:"prefix",value:i}),n&&s.push({type:"suffix",value:n});let a=[],r=[],l=[],o=[],h={},d=t=>`${t}:${h[t]=(h[t]??-1)+1}`,p="",u=!1,c=!1;for(let t of s){p+=t.value;let e="minusSign"===t.type||"plusSign"===t.type?"sign":t.type;"integer"===e?(u=!0,r.push(...t.value.split("").map(t=>({type:e,value:parseInt(t)})))):"group"===e?r.push({type:e,value:t.value}):"decimal"===e?(c=!0,l.push({type:e,value:t.value,key:d(e)})):"fraction"===e?l.push(...t.value.split("").map(t=>({type:e,value:parseInt(t),key:d(e),pos:-1-h[e]}))):(u||c?o:a).push({type:e,value:t.value,key:d(e)})}let m=[];for(let t=r.length-1;t>=0;t--){let e=r[t];m.unshift("integer"===e.type?{...e,key:d(e.type),pos:h[e.type]}:{...e,key:d(e.type)})}return{pre:a,integer:m,fraction:l,post:o,valueAsString:p,value:"string"==typeof t?parseFloat(t):t}}(i,null!=(e=F[t="".concat(p,":").concat(u)])?e:F[t]=new Intl.NumberFormat(n,a),r,l)},[i,p,u,r,l]);return s.createElement(V,{...o,group:d,data:c,innerRef:h})}),W=s.createContext(void 0);function D(t){let{children:e}=t,i=s.useRef(new Set),n=s.useRef(!1),a=s.useRef(new WeakMap),r=s.useMemo(()=>({useRegister(t){s.useEffect(()=>(i.current.add(t),()=>{i.current.delete(t)}),[])},willUpdate(){n.current||(n.current=!0,i.current.forEach(t=>{let e=t.current;e&&e.created&&(e.willUpdate(),a.current.set(e,!0))}))},didUpdate(){i.current.forEach(t=>{let e=t.current;e&&a.current.get(e)&&(e.didUpdate(),a.current.delete(e))}),n.current=!1}}),[]);return s.createElement(W.Provider,{value:r},e)}let X=[b,((t="")=>a`:where(number-flow${t}){line-height:1}number-flow${t} > span{font-kerning:none;display:inline-block;padding:${f} 0}`)("-react"),w],H=()=>s.useSyncExternalStore(()=>()=>{},()=>x,()=>!1),z=()=>s.useSyncExternalStore(t=>(o?.addEventListener("change",t),()=>o?.removeEventListener("change",t)),()=>o.matches,()=>!1);function J({respectMotionPreference:t=!0}={}){let e=H(),i=z();return e&&(!t||!i)}}}]);

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.