(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,775593,e=>{"use strict";var t=e.i(16043);let i=t.forwardRef(function({title:e,titleId:i,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))});e.s(["f",0,i],775593)},575731,e=>{"use strict";var t=e.i(16043);let i=t.forwardRef(function({title:e,titleId:i,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"}))});e.s(["f",0,i],575731)},815193,346078,e=>{"use strict";let t,i;var s=e.i(16043),l=e.i(18728);function n(e,t,i){let s,l=i.initialDeps??[],n=!0;function r(){let r=e();return(r.length!==l.length||r.some((e,t)=>l[t]!==e))&&(l=r,s=t(...r),(null==i?void 0:i.onChange)&&!(n&&i.skipInitialOnChange)&&i.onChange(s),n=!1),s}return r.updateDeps=e=>{l=e},r}function r(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let o=(e,t)=>1.01>Math.abs(e-t),a=()=>{if(void 0!==t)return t;if("u"0},u={capture:!0,passive:!0};class h{constructor(e){this.host=e,this._touch=null,this.inMotion=()=>null!==this._touch&&"lateFling"!==this._touch.phase,this.dragging=()=>{var e;return(null==(e=this._touch)?void 0:e.phase)==="down"&&this._touch.moved},this.tail=()=>{var e;return(null==(e=this._touch)?void 0:e.phase)==="tail"?this._touch.moved?"fling":"tap":null},this.onScroll=({isScrolling:e,ownReadBack:t,moved:i,external:s})=>{var l,n,r;return e&&(null==(l=this._touch)?void 0:l.phase)==="tail"?this._openTail(this._touch.moved||!t,!1):(null==(n=this._touch)?void 0:n.phase)==="lateFling"&&(this.host.now()>this._touch.until?this._touch=null:s&&e&&i&&this._openTail(!0,!1)),!t&&!!e&&!!i&&(null==(r=this._touch)?void 0:r.phase)==="down"&&(this._touch.moved=!0,!0)},this.touchStart=()=>{this.end(),this._touch={phase:"down",moved:!1}},this.touchEnd=()=>{var e;let t=(null==(e=this._touch)?void 0:e.phase)==="down"&&this._touch.moved;this.end(),this._openTail(t,t)},this.end=()=>{var e;let t=this.host.getWindow();(null==(e=this._touch)?void 0:e.phase)==="tail"&&null!=t&&t.clearTimeout(this._touch.timerId),this._touch=null},this.listen=e=>{let t=()=>this.touchStart(),i=()=>this.touchEnd();return e.addEventListener("touchstart",t,u),e.addEventListener("touchend",i,u),e.addEventListener("touchcancel",i,u),()=>{e.removeEventListener("touchstart",t,u),e.removeEventListener("touchend",i,u),e.removeEventListener("touchcancel",i,u),this.end()}},this._openTail=(e,t)=>{let i=this.host.getWindow();if(!a()||null==i)return;this.end();let s={phase:"tail",moved:e,awaitingFling:t,timerId:i.setTimeout(()=>{this.host.tailStillMoving()?this._openTail(s.moved,s.awaitingFling):(this._touch=s.awaitingFling?{phase:"lateFling",until:this.host.now()+1e3}:null,this.host.onTailClosed())},150)};this._touch=s}}get touch(){return this._touch}}let c=e=>{let{clientWidth:t,clientHeight:i}=e;return{width:t,height:i}},d=e=>{let t=new Set;return{schedule:i=>{let s=e.requestAnimationFrame(()=>{t.delete(s),i()});t.add(s)},cancel:()=>{t.forEach(t=>e.cancelAnimationFrame(t)),t.clear()}}},f=e=>e,m=e=>{let t=e.overscan*Math.max(e.lanes??1,1),i=Math.max(e.startIndex-t,0),s=Math.min(e.endIndex+t,e.count-1)-i+1,l=Array(s);for(let e=0;e{let i=e.scrollElement;if(!i)return;let s=e.targetWindow;if(!s)return;let l=e=>{let{width:i,height:s}=e;t({width:Math.round(i),height:Math.round(s)})};if(l(c(i)),!s.ResizeObserver)return()=>{};let n=d(s),r=new s.ResizeObserver(()=>{let t=()=>{l(c(i))};e.options.useAnimationFrameWithResizeObserver?n.schedule(t):t()});return r.observe(i,{box:"content-box"}),()=>{r.unobserve(i),n.cancel()}},g={passive:!0},v=(e,t)=>{let i=e.scrollElement;if(!i)return;let s=()=>{t({width:i.innerWidth,height:i.innerHeight})};return s(),i.addEventListener("resize",s,g),()=>{i.removeEventListener("resize",s)}},S="u"{var s,l;let n,r=e.scrollElement;if(!r)return;let o=e.targetWindow;if(!o)return;let a=e.options.useScrollendEvent&&S,u=0,h=a?null:(s=()=>t(i(r),!1),l=e.options.isScrollingResetDelay,Object.assign(function(...e){o.clearTimeout(n),n=o.setTimeout(()=>s.apply(this,e),l)},{cancel:()=>{o.clearTimeout(n)}})),c=e=>()=>{u=i(r),null==h||h(),t(u,e)},d=c(!0),f=c(!1);return r.addEventListener("scroll",d,g),a&&r.addEventListener("scrollend",f,g),()=>{r.removeEventListener("scroll",d),a&&r.removeEventListener("scrollend",f),null==h||h.cancel()}},b=(e,t)=>_(e,t,t=>{let{horizontal:i,isRtl:s}=e.options;return i?t.scrollLeft*(s&&-1||1):t.scrollTop}),w=(e,t)=>_(e,t,t=>e.options.horizontal?t.scrollX:t.scrollY),y=(e,t,i)=>{if(i.options.useCachedMeasurements){let t=i.indexFromElement(e),s=i.options.getItemKey(t);return i.itemSizeCache.get(s)??i.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[i.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=i.indexFromElement(e),s=i.options.getItemKey(t),l=i.itemSizeCache.get(s);if(void 0!==l)return l}return e[i.options.horizontal?"offsetWidth":"offsetHeight"]},x=(e,{adjustments:t=0,behavior:i},s)=>{var l,n;null==(n=null==(l=s.scrollElement)?void 0:l.scrollTo)||n.call(l,{[s.options.horizontal?"left":"top"]:e+t,behavior:i})},O=(e,t)=>"smooth"===e?t?"smoothLanded":"smooth":"instant",k=e=>(null==e?void 0:e.phase)==="smooth"||(null==e?void 0:e.phase)==="smoothLanded";class M{constructor(e){let t,i,s,l;this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._iosGesture=new h({getWindow:()=>this.targetWindow,now:()=>this.now(),tailStillMoving:()=>{let e=this.scrollState;if((null==e?void 0:e.phase)!=="queued"||null!==this.pendingWrite)return!1;let t=this._readElementOffset();return!(null===t||null===this._lastElementOffset||1>Math.abs(t-this._lastElementOffset))&&(this._lastElementOffset=t,e.samples=[...e.samples??[],{t:this.now(),offset:t}],!0)},onTailClosed:()=>{let e=this.scrollState;(null==e?void 0:e.phase)==="queued"&&function(e){let t=e[e.length-1];if(void 0===t)return!1;let i=e.length-2;for(;i>=0&&t.t-e[i].t<40;)i--;if(i<0)return!1;let s=e[i];return Math.abs(t.offset-s.offset)/(t.t-s.t)>=.05}(e.samples??[])&&(this.scrollState=null),this._flushHoldIfReady(!0),this._writeAwaitingCommand()}}),this._lastElementOffset=null,this.pendingWrite=null,this._clampedAdjustment=null,this.elementsCache=new Map,this._resizeBatch=null,this.now=()=>{var e,t,i;return(null==(i=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:i.call(t))??Date.now()},this.observer=(t=null,i=null,s=()=>{if(t)return t;let e=this.targetWindow;if(!e||!e.ResizeObserver)return null;let s=i=d(e);return t=new e.ResizeObserver(e=>{let t=()=>{let t={sync:!1};this._resizeBatch=t;try{e.forEach(l)}finally{this._resizeBatch=null,t.notify&&(this.notify(t.sync),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment())}};this.options.useAnimationFrameWithResizeObserver?s.schedule(t):t()})},l=e=>{let t=e.target,i=this.indexFromElement(t);if(!t.isConnected){for(let[e,i]of(this.observer.unobserve(t),this.elementsCache))if(i===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(i)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(t,e,this))},{disconnect:()=>{var e;null==(e=s())||e.disconnect(),null==i||i.cancel(),t=null,i=null},observe:e=>{var t;return null==(t=s())?void 0:t.observe(e,{box:"border-box"})},unobserve:e=>{var t;return null==(t=s())?void 0:t.unobserve(e)}}),this.range=null,this.setOptions=e=>{var t;let i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:f,rangeExtractor:m,onChange:()=>{},measureElement:y,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let s=e[t];void 0!==s&&(i[t]=s)}let s=this.options,l=null,n=null,r=!1;if(void 0!==s&&s.enabled&&i.enabled&&"end"===i.anchorTo&&null!==this.scrollElement){let e=s.count,o=i.count,a=this.getMeasurements(),u=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??a,h=e=>{var t;return"object"==typeof(t=u[e])?t.key:t},c=e>0?h(0):null,d=e>0?h(e-1):null;if(o!==e||e>0&&o>0&&(i.getItemKey(0)!==c||i.getItemKey(o-1)!==d)){r=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??a[0]:null;t&&(l=[t.key,this.getScrollOffset()-t.start]);let u=!0===i.followOnAppend?"auto":i.followOnAppend||null;u&&o>0&&this.isAtEnd(s.scrollEndThreshold)&&(0===e||i.getItemKey(o-1)!==d)&&(o>e||function(e,t,i,s){if(0===t)return!1;let l=s(0),n=new Set,r=0;for(;r=t)return!1;for(let e=0;e{var t,i;null==(i=(t=this.options).onChange)||i.call(t,this,e)},this.maybeNotify=n(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{var e;this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,null==(e=this._momentumStop)||e.restore(),this._momentumStop=null,this.isScrolling=!1,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._clampedAdjustment=null,this.pendingWrite=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{var i,s,l,n;let r=t?this._elementMaxScrollOffset():null,a=this._reportedOverscroll;this._reportedOverscroll=e<0||null!==r&&e>r+1;let u=e;this._lastElementOffset=u,e=this._toLayoutOffset(e);let h=this._classifyScrollEvent(e,t,r);if("spurious"===h)return;"readBack"===h?e=this.pendingWrite.target:"clampedReadBack"===h&&(null==(i=this.scrollState)?void 0:i.index)!=null&&ethis.getScrollStateTarget(this.scrollState)})&&(this.scrollState=null),this.pendingWrite=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null);let c=this.getScrollOffset(),d=this.scrollDirection;this.scrollDirection=t?c===e?this.scrollDirection:ce-t.t<=200),{t:e,offset:u}],(null!==d&&this.scrollDirection!==d||function(e){let t=e[e.length-1];if(void 0===t)return!1;let i=e.length-2;for(;i>=0&&t.t-e[i].t<40;)i--;if(i<0)return!1;let s=e[i],l=i-1;for(;l>=0&&s.t-e[l].t<40;)l--;if(l<0)return!1;let n=e[l],r=(t.offset-s.offset)/(t.t-s.t),o=(s.offset-n.offset)/(s.t-n.t);return r*o>=0&&Math.abs(r)>=2*Math.abs(o)&&Math.abs(r)-Math.abs(o)>=.8}(f.samples))&&(this.scrollState=null)}this._iosGesture.onScroll({isScrolling:t,ownReadBack:"readBack"===h,moved:e!==c,external:"external"===h&&(null==(s=this.scrollState)?void 0:s.phase)!=="smooth"&&(null==(l=this.scrollState)?void 0:l.phase)!=="smoothFinishing"})&&(null==(n=this.scrollState)?void 0:n.phase)==="queued"&&(this.scrollState=null),this._flushHoldIfReady(!0),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement&&this.unsubs.push(this._iosGesture.listen(this.scrollElement)),this._scrollToOffset(this.getScrollOffset())}this._noteClampMax();let i=this.pendingScrollAnchor;this.pendingScrollAnchor=null,i&&this.scrollElement&&this.options.enabled&&("anchor"===i.kind?this._canWriteScroll()?k(this.scrollState)&&!o(this.getScrollOffset()-i.delta,this.scrollState.lastTargetOffset)||(this._followOffsetTarget(i.delta),this._scrollToOffset(this.getScrollOffset())):(this._holdOffset+=i.delta,this._followOffsetTarget(i.delta),this.notify(!1)):this.scrollToEnd({behavior:i.behavior})),this._flushHoldIfReady(!1),this._retryClampedAdjustment()},this._classifyScrollEvent=(e,t,i)=>{var s;return function({offset:e,isScrolling:t,elementMax:i,holdOffset:s,scrollOffset:l,pendingWrite:n,clampedMaxAtWrite:r}){var o;return t&&null===n&&e===l?"spurious":null!==n&&1.5>Math.abs(e-n.target)?"readBack":null!==n&&!n.smooth&&null!==i&&n.target>i+s+.5&&1.5>Math.abs(e-(i+s))||null!==n&&!n.smooth&&(null==(o=n.lowMaxes)?void 0:o.some(t=>1.5>Math.abs(e-t)))?"clampedReadBack":null!==r&&1.5>Math.abs(e-r)?"clampedEcho":"external"}({offset:e,isScrolling:t,elementMax:i,holdOffset:this._holdOffset,scrollOffset:this.scrollOffset,pendingWrite:this.pendingWrite,clampedMaxAtWrite:(null==(s=this._clampedAdjustment)?void 0:s.maxAtWrite)??null})},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,i=this.getMaxScrollOffset();i>t+.5&&(this._clampedAdjustment=e>i+.5?{target:e,maxAtWrite:i}:null,this._scrollToOffset(e))},this._writeAwaitingCommand=()=>{let e=this.scrollState;if(null===e||"queued"!==e.phase)return;let{behavior:t}=e;this.getMeasurements();let i=this.getScrollStateTarget(e);e.lastTargetOffset=i,this._clampedAdjustment=null,e.phase=O(t,null!=e.index&&o(i,this.getScrollOffset())),this._scrollToOffset(i,{behavior:t}),this.scheduleScrollReconcile()},this._readElementOffset=()=>{let e=this.scrollElement;if(null==e)return null;let{horizontal:t,isRtl:i}=this.options;return"number"==typeof e.scrollTop?t?e.scrollLeft*(i&&-1||1):e.scrollTop:"number"==typeof e.scrollY?t?e.scrollX:e.scrollY:null},this._canWriteScroll=()=>!(a()&&this._iosGesture.inMotion())&&!this._reportedOverscroll,this._flushHoldIfReady=e=>{var t;if(0===this._holdOffset||!this.scrollElement||!this.options.enabled||!this._canWriteScroll()||(null==(t=this.scrollState)?void 0:t.phase)==="smooth")return;this._holdOffset=0,null!==this.scrollOffset&&this.scrollOffset<0&&(this.scrollOffset=0),this.notify(e);let i=this.getCommandWrittenOffset()??this.getScrollOffset();this._clampedAdjustment=this._clampedBy(i),this._scrollToOffset(i)},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=n(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,i,s,l,n,r,o)=>(void 0!==this.prevLanes&&this.prevLanes!==n&&(this.lanesChangedFlag=!0),this.prevLanes=n,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:l,lanes:n,laneAssignmentMode:r,gap:o}),{key:!1}),this.isIndexInRange=e=>e>=0&&e[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:l,lanes:n,laneAssignmentMode:r,gap:o},a)=>{var u,h;let c=this.itemSizeCache;if(!l)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===n){let l,n,r=2*e,a=null==(u=this._singleLaneMeasurements)?void 0:u.flat;if(!a||a.length0&&e.set(a.subarray(0,2*d)),a=e}let f=0===d?Array(e):this._singleLaneMeasurements.items.slice();if(0===d)l=t+i;else{let e=d-1;l=a[2*e]+a[2*e+1]+o}for(let t=d;t=48&&i<=57){let i=+t;if(Number.isInteger(i)&&i>=0&&i1){let s=m[e=h],l=void 0!==s?f[s]:void 0;a=l?l.end+o:t+i}else if(g===n){let t=0,i=p[0],s=m[0];for(let e=1;ethis.options.debug}),this.calculateRange=n(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,i,s)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,i,s,l){let n=e.length-1;if(e.length<=s)return{startIndex:0,endIndex:n};if(1===s&&null!==l){let e=function(e,t,i){let s=0;for(;s<=t;){let l=(s+t)/2|0,n=e[2*l];if(ni))return l;t=l-1}}return s>0?s-1:0}(l,n,i),s=e,r=i+t;for(;se[t].start,i),o=r;if(1===s)for(;o1){let l=Array(s).fill(0);for(;oe=0&&a.some(e=>e>=i);){let t=e[r];a[t.lane]=t.start,r--}r=Math.max(0,r-r%s),o=Math.min(n,o+(s-1-o%s))}return{startIndex:r,endIndex:o}}(e,t,i,s,1===s&&null!==this._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=n(()=>{let e=null,t=null,i=this.calculateRange();return i&&(e=i.startIndex,t=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t,this.options.lanes]},(e,t,i,s,l,n)=>null===s||null===l?[]:e({startIndex:s,endIndex:l,overscan:t,count:i,lanes:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,i=e.getAttribute(t);return i?parseInt(i,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!k(this.scrollState))return!0;let i=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==i&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-t),l=Math.min(this.options.count-1,i+t);return e>=s&&e<=l}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let i=this.options.getItemKey(t),s=this.elementsCache.get(i);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var i,s,l;let n,r,o;if(!this.isIndexInRange(e))return;(null==(i=this._resizeBatch)?void 0:i.sync)&&this.getMeasurements();let a=null==(s=this._singleLaneMeasurements)?void 0:s.flat;if(1===this.options.lanes&&null!=a)o=this.options.getItemKey(e),r=a[2*e],n=a[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;o=t.key,r=t.start,n=t.size}let u=this.itemSizeCache.get(o)??n,h=t-u;if(0!==h){let i="end"===this.options.anchorTo&&!k(this.scrollState)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,s=i?this._getLayoutTotalSize():0,a=this.getScrollOffset(),c=this.itemSizeCache.has(o)?r+u<=a&&"backward"!==this.scrollDirection:r[this.getVirtualIndexes(),this.getMeasurements(),this._holdOffset],(e,t,i)=>{let s=[];for(let l=0,n=e.length;lthis.options.debug}),this.getVirtualItemForOffset=e=>{var t;let i=this.getMeasurements();if(0===i.length)return;let s=null==(t=this._singleLaneMeasurements)?void 0:t.flat,l=1===this.options.lanes&&null!=s,n=I(0,i.length-1,l?e=>s[2*e]:e=>r(i[e]).start,e);return r(i[n])},this._noteClampMax=()=>{if(!this._awaitingCommandReadBack())return;let e=this._elementMaxScrollOffset();if(null===e)return;let t=this.pendingWrite,i=Math.max(e,0)+this._holdOffset;if(i>=t.target)return;let s=t.lowMaxes??(t.lowMaxes=[]);s[s.length-1]!==i&&s.push(i)},this.getMaxScrollOffset=()=>(this._elementMaxScrollOffset()??0)+this._holdOffset,this._toLayoutOffset=e=>{var t;let i=e+this._holdOffset;return(null==(t=this.pendingScrollAnchor)?void 0:t.kind)==="anchor"&&(i+=this.pendingScrollAnchor.delta),i},this._elementMaxScrollOffset=()=>{let e=this.scrollElement;if(null===e)return null;if("scrollHeight"in e)return this.options.horizontal?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight;if("document"in e){let t=e.document.documentElement;return this.options.horizontal?t.scrollWidth-e.innerWidth:t.scrollHeight-e.innerHeight}return null},this._momentumStop=null,this._stopMomentum=e=>{let t=this.scrollElement,i=this.targetWindow;if(null===t||null===i)return;let s="document"in t?t.document.scrollingElement:t;if(!(null==s?void 0:s.style))return;if(this._momentumStop){this._momentumStop.done=e;return}let{style:l}=s,n=this.options.horizontal?"overflow-x":"overflow-y",r=l.getPropertyValue(n),o=l.getPropertyPriority(n);l.setProperty(n,"hidden","important");let a={restore:()=>"hidden"===l.getPropertyValue(n)&&"important"===l.getPropertyPriority(n)&&(l.setProperty(n,r,o),!0),done:e};this._momentumStop=a,i.requestAnimationFrame(()=>i.requestAnimationFrame(()=>{this._momentumStop===a&&(this._momentumStop=null,a.restore()&&a.done())}))},this._clampedBy=e=>{let t=this._elementMaxScrollOffset();if(null===t)return null;let i=t+this._holdOffset;return e>i+.5?{target:e,maxAtWrite:i}:null},this.getVirtualDistanceFromEnd=()=>Math.max(this._getLayoutTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,i=0)=>{if(!this.scrollElement)return 0;let s=this.getSize(),l=this.getScrollOffset();return"auto"===t&&(t=e>=l+s?"end":"start"),"center"===t?e+=(i-s)/2:"end"===t&&(e-=s),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.getSize(),s=this.getScrollOffset(),l=this.measurementsCache[e];if(!l)return;if("auto"===t)if(l.end>=s+i-this.options.scrollPaddingEnd)t="end";else{if(!(l.start<=s+this.options.scrollPaddingStart))return[s,t];t="start"}if("end"===t&&e===this.options.count-1){let e=this.getMaxScrollOffset();return[Math.max(Math.min(e-this.options.paddingEnd+this.options.scrollPaddingEnd,e),0),t]}let n="end"===t?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(n,t,l.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:i="auto"}={})=>{this._startScroll({index:null,align:t},this.getOffsetForAlignment(e,t),i,"absolute")},this.scrollToIndex=(e,{align:t="auto",behavior:i="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let s=this.getOffsetForIndex(e,t);if(!s)return;let[l,n]=s;this._startScroll({index:e,align:n},l,i,"absolute")},this.scrollBy=(e,{behavior:t="auto"}={})=>{let i=this.getOffsetForAlignment((this.getCommandWrittenOffset()??this.getScrollOffset())+e,"start");this._startScroll({index:null,align:"start"},i,t,"relative")},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this._startScroll({index:this.options.count-1,align:"end",toEnd:!0},Math.max(this.getMaxScrollOffset(),0),e,"absolute"):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.cancelScroll=()=>{null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null},this.getTotalSize=()=>Math.max(this._getLayoutTotalSize()-this._holdOffset,0),this._getLayoutTotalSize=()=>{var e,t;let i,s=this.getMeasurements();if(0===s.length)i=this.options.paddingStart;else if(1===this.options.lanes){let l=s.length-1,n=null==(e=this._singleLaneMeasurements)?void 0:e.flat;i=null!=n?n[2*l]+n[2*l+1]:(null==(t=s[l])?void 0:t.end)??0}else{let e=Array(this.options.lanes).fill(null),t=s.length-1;for(;t>=0&&e.some(e=>null===e);){let i=s[t];null===e[i.lane]&&(e[i.lane]=i.end),t--}i=Math.max(...e.filter(e=>null!==e))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:i}={})=>{let s={target:e+(t??0),smooth:"smooth"===i};return this.pendingWrite=s,this.options.scrollToFn(e-this._holdOffset,{behavior:i,adjustments:t},this),s},this.getCommandWrittenOffset=()=>null===this.scrollState||null===this.pendingWrite||this.pendingWrite.smooth?null:this.pendingWrite.target,this._awaitingCommandReadBack=()=>{let e=this.getCommandWrittenOffset();return!(a()&&this._iosGesture.dragging())&&null!==e&&!o(e,this.getScrollOffset())},this._followOffsetTarget=e=>{null!==this.scrollState&&null==this.scrollState.index&&(this.scrollState.lastTargetOffset+=e)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}get scrollAdjustments(){return 0}applyScrollAdjustment(e,t){if(0===e)return!1;if(this._followOffsetTarget(e),!this._canWriteScroll())return this._holdOffset+=e,null!==this.scrollOffset&&(this.scrollOffset+=e),!0;{let i=this.getScrollOffset();this._clampedAdjustment=this._clampedBy(i+e);let s=this._scrollToOffset(i,{adjustments:e,behavior:t});return null!==this.scrollOffset&&(this.pendingWrite===s&&(this.scrollOffset+=e),this.scrollOffset<0&&(this.scrollOffset=0)),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}getScrollStateTarget(e){let t=e.toEnd?[Math.max(this.getMaxScrollOffset(),0)]:null!=e.index?this.getOffsetForIndex(e.index,e.align):void 0;return t?t[0]:e.lastTargetOffset}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}if("queued"===this.scrollState.phase)return void this.scheduleScrollReconcile();this.getMeasurements();let e=this.getScrollStateTarget(this.scrollState),t=null==this.scrollState.index?1:this.options.useAnimationFrameWithResizeObserver?3:2,i=e!==this.scrollState.lastTargetOffset;if(!i&&o(e,this.getScrollOffset())){if("smooth"===this.scrollState.phase?this.scrollState.phase="smoothLanded":"smoothFinishing"===this.scrollState.phase&&(this.scrollState.phase="instant"),this.scrollState.stableFrames++,this.scrollState.stableFrames>=t){this.getScrollOffset()!==e&&this._scrollToOffset(e,{behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,i){let t=this.getSize()||600,i=Math.abs(e-this.getScrollOffset()),s=k(this.scrollState)&&i>t;this.scrollState.lastTargetOffset=e,s?this.scrollState.phase="smooth":"smooth"===this.scrollState.phase?this.scrollState.phase="smoothFinishing":"smoothLanded"===this.scrollState.phase&&(this.scrollState.phase="instant"),this._scrollToOffset(e,{behavior:s?"smooth":"auto"})}this.scheduleScrollReconcile()}_startScroll(e,t,s,l){let n=this._iosGesture.tail();if("absolute"===l&&null!==n){if("fling"===n&&(void 0!==i?i:i=a()&&"u">typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("overflow-anchor: auto"))){this._stopMomentum(()=>{let e=this.scrollState;(null==e?void 0:e.phase)!=="queued"||"fling"!==this._iosGesture.tail()||this._reportedOverscroll||(this._iosGesture.end(),this._flushHoldIfReady(!0),this._writeAwaitingCommand())}),this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,phase:"queued",behavior:s,samples:[]},this.scheduleScrollReconcile();return}this._iosGesture.end()}this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,behavior:s,phase:O(s,null!=e.index&&o(t,this.getScrollOffset()))},this._scrollToOffset(t,{behavior:s}),this.scheduleScrollReconcile()}}let I=(e,t,i,s)=>{for(;e<=t;){let l=(e+t)/2|0,n=i(l);if(ns))return l;t=l-1}}return e>0?e-1:0};e.s(["O",0,M,"l",0,m,"J",0,x,"A",0,b,"K",0,p,"i",0,w,"E",0,v,"j",0,x],346078);let R="u">typeof document?s.useLayoutEffect:s.useEffect;function E({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:i="transform",...n}){let r=s.useReducer(e=>e+1,0)[1],o=s.useRef({enabled:t,mode:i,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=t,o.current.mode=i;let a=s.useRef(!1),u=e=>{let t=o.current;if(!t.enabled||!t.container)return;let i=e.getTotalSize();if(i!==t.lastSize){t.lastSize=i;let s=e.options.horizontal?"width":"height";t.container.style[s]=`${i}px`}},h=(e,t,i)=>{let s=o.current,l=!!e.options.horizontal,n=t.start-e.options.scrollMargin;s.lastPositions.get(i)!==n&&(s.lastPositions.set(i,n),"transform"===s.mode?i.style.transform=l?`translate3d(${n}px, 0, 0)`:`translate3d(0, ${n}px, 0)`:i.style[l?"left":"top"]=`${n}px`)},c=e=>{let t=o.current;if(t.enabled&&t.container)for(let t of(u(e),e.getVirtualItems())){let i=e.elementsCache.get(t.key);i&&h(e,t,i)}},d={...n,onChange:(t,i)=>{var s;let u=o.current,h=!0;if(u.enabled){c(t);let e=t.range,i=u.prevRange;(h=!i||i.isScrolling!==t.isScrolling||i.startIndex!==(null==e?void 0:e.startIndex)||i.endIndex!==(null==e?void 0:e.endIndex))&&(u.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}h&&(e&&i&&!a.current?(0,l.flushSync)(r):r()),null==(s=n.onChange)||s.call(n,t,i)}},[f]=s.useState(()=>{let e=new M(d),t=e.measureElement;return e.measureElement=i=>{a.current=!0;try{t(i)}finally{a.current=!1}let s=o.current;if(null!==i&&s.enabled&&s.container){let t=e.measurementsCache[e.indexFromElement(i)];t&&h(e,t,i)}},Object.assign(e,{containerRef:t=>{let i=o.current;i.container=t,i.lastSize=null,null!==t&&c(e)}})});return f.setOptions(d),R(()=>f._didMount(),[]),R(()=>(u(f),f._willUpdate())),R(()=>{c(f)}),f}e.s(["s",0,function(e){return E({observeElementRect:p,observeElementOffset:b,scrollToFn:x,...e})},"V",0,function(e){return E({getScrollElement:()=>"u">typeof document?window:null,observeElementRect:v,observeElementOffset:w,scrollToFn:x,initialOffset:()=>"u">typeof document?window.scrollY:0,...e})}],815193)},773151,e=>{"use strict";var t=e.i(651681);let i={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};i.node;let s=(0,t.f)(i);e.s(["f",0,s],773151)},149423,e=>{"use strict";var t=e.i(651681);let i={name:"list-filter",size:24,node:[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]};i.node;let s=(0,t.f)(i);e.s(["f",0,s],149423)},601083,e=>{"use strict";var t=e.i(16043);function i(e,i,s,l){var n=this,r=(0,t.useRef)(null),o=(0,t.useRef)(0),a=(0,t.useRef)(0),u=(0,t.useRef)(null),h=(0,t.useRef)([]),c=(0,t.useRef)(),d=(0,t.useRef)(),f=(0,t.useRef)(e),m=(0,t.useRef)(!0),p=(0,t.useRef)(),g=(0,t.useRef)();f.current=e;var v="u">typeof window,S=!i&&0!==i&&v;if("function"!=typeof e)throw TypeError("Expected a function");i=+i||0;var _=!!(s=s||{}).leading,b=!("trailing"in s)||!!s.trailing,w=!!s.flushOnExit&&b,y="maxWait"in s,x="debounceOnServer"in s&&!!s.debounceOnServer,O=y?Math.max(+s.maxWait||0,i):null,k=(0,t.useMemo)(function(){var e=function(e){var t=h.current,i=c.current;return h.current=c.current=null,o.current=e,a.current=a.current||e,d.current=f.current.apply(i,t)},t=function(e,t){S&&cancelAnimationFrame(u.current),u.current=S?requestAnimationFrame(e):setTimeout(e,t)},s=function(e){if(!m.current)return!1;var t=e-r.current;return!r.current||t>=i||t<0||y&&e-o.current>=O},k=function(t){return u.current=null,b&&h.current?e(t):(h.current=c.current=null,d.current)},M=function e(){var l=Date.now();if(_&&a.current===o.current&&I(),s(l))return k(l);if(m.current){var n=i-(l-r.current);t(e,y?Math.min(n,O-(l-o.current)):n)}},I=function(){l&&l({})},R=function(){if(v||x){var l,a=Date.now(),f=s(a);if(h.current=[].slice.call(arguments),c.current=n,r.current=a,w&&!p.current&&(p.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&g.current.flush()},null==(l=globalThis.document)||null==l.addEventListener||l.addEventListener("visibilitychange",p.current)),f){if(!u.current&&m.current)return o.current=r.current,t(M,i),_?e(r.current):d.current;if(y)return t(M,i),e(r.current)}return u.current||t(M,i),d.current}};return R.cancel=function(){var e=u.current;e&&(S?cancelAnimationFrame(u.current):clearTimeout(u.current)),o.current=0,h.current=r.current=c.current=u.current=null,e&&l&&l({})},R.isPending=function(){return!!u.current},R.flush=function(){return u.current?k(Date.now()):d.current},R},[_,y,i,O,b,w,S,v,x,l]);return g.current=k,(0,t.useEffect)(function(){return m.current=!0,function(){var e;w&&g.current.flush(),p.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",p.current),p.current=null),m.current=!1}},[w]),k}function s(e,t){return e===t}e.s(["k",0,function(e,l,n){var r=n&&n.equalityFn||s,o=(0,t.useRef)(e),a=(0,t.useState)({})[1],u=i((0,t.useCallback)(function(e){o.current=e,a({})},[a]),l,n,a),h=(0,t.useRef)(e);return r(h.current,e)||(u(e),h.current=e),[o.current,u]},"s",0,i])},706792,e=>{"use strict";var t=e.i(140691);let i={Token:"token",Unit:"unit",Schedule:"schedule"};i.Token,i.Token,i.Unit,i.Token,i.Token,i.Token,i.Token,i.Token,i.Token,i.Token,i.Token,i.Token,i.Unit;let s=["Image Input","Input Image"],l=["Image Output","Output Image"];e.s(["H",0,i,"T",0,function(e){let t=e.filter(e=>e.kind===i.Token),n=t.find(e=>"Input Price"===e.sku_label),r=t.find(e=>"Output Price"===e.sku_label),o=t.find(e=>{var t;return t=e.sku_label,l.includes(t)}),a=t.find(e=>{var t;return t=e.sku_label,s.includes(t)})??n;return a&&o?{media:"image",inputItem:a,outputItem:o}:n&&r?{media:"text",inputItem:n,outputItem:r}:void 0},"U",0,function(e){let s=e.filter(e=>e.kind===i.Unit&&!0!==e.isServerTool),l=s[0];if(!l)return;let n=void 0!==l.tiers&&l.tiers.length>1,r=n||s.length>1;if(n){let e=(0,t.I)(1/0),i=l.price;for(let s of l.tiers){let l=(0,t.I)(s.price);l.gt(0)&&l.lt(e)&&(e=l,i=s.price)}return{price:i,displayMultiplier:l.displayMultiplier,unitLabel:l.unitLabel,hasDetails:r}}return{price:l.price,displayMultiplier:l.displayMultiplier,unitLabel:l.unitLabel,hasDetails:r}}])},894868,e=>{"use strict";var t=e.i(659350),i=e.i(663456),s=e.i(136562),l=e.i(829622),n=e.i(722841),r=e.i(987457);e.s(["f",0,function(e){let o,a,u,h,c,d,f,m=(0,i.c)(25),{author:p,permaslug:g,iconUri:v,className:S,frame:_,frameRingClassName:b,bare:w}=e,y=void 0!==_&&_,x=void 0!==w&&w;if(m[0]!==p||m[1]!==x||m[2]!==S||m[3]!==y||m[4]!==b||m[5]!==v||m[6]!==g){c=Symbol.for("react.early_return_sentinel");e:{if(a=null==g?(0,n.$)(p,v):(0,n.h)({permaslug:g,author:p,iconUri:v}),x){let e;m[12]!==S?(e=(0,s.f)("flex size-6 shrink-0 items-center justify-center","[&_img]:object-contain",S),m[12]=S,m[13]=e):e=m[13],c=(0,t.jsx)("div",{className:e,children:(0,t.jsx)(l.RemoteFavicon,{className:(0,s.f)("size-full overflow-hidden",a?.className),faviconFor:p,imgSrc:a.url,imgSrcDark:a.darkUrl,size:256})});break e}if(y){c=(0,t.jsx)(r.f,{className:S,ringClassName:b,children:(0,t.jsx)(l.RemoteFavicon,{className:(0,s.f)("size-full",a?.className),faviconFor:p,imgSrc:a.url,imgSrcDark:a.darkUrl,size:256})});break e}m[14]!==S?(h=(0,s.f)("flex items-center justify-center","size-6 shrink-0 rounded-full border","bg-background p-1",S),m[14]=S,m[15]=h):h=m[15],o=l.RemoteFavicon,u=(0,s.f)("overflow-hidden rounded-full",a?.className)}m[0]=p,m[1]=x,m[2]=S,m[3]=y,m[4]=b,m[5]=v,m[6]=g,m[7]=o,m[8]=a,m[9]=u,m[10]=h,m[11]=c}else o=m[7],a=m[8],u=m[9],h=m[10],c=m[11];return c!==Symbol.for("react.early_return_sentinel")?c:(m[16]!==o||m[17]!==p||m[18]!==a.darkUrl||m[19]!==a.url||m[20]!==u?(d=(0,t.jsx)(o,{className:u,faviconFor:p,imgSrc:a.url,imgSrcDark:a.darkUrl,size:256}),m[16]=o,m[17]=p,m[18]=a.darkUrl,m[19]=a.url,m[20]=u,m[21]=d):d=m[21],m[22]!==h||m[23]!==d?(f=(0,t.jsx)("div",{className:h,children:d}),m[22]=h,m[23]=d,m[24]=f):f=m[24],f)}])},987457,e=>{"use strict";var t=e.i(659350),i=e.i(663456),s=e.i(136562);e.s(["f",0,function(e){let l,n,r,o,a,u,h=(0,i.c)(15),{children:c,className:d,variant:f,decorative:m,ringClassName:p}=e,g=void 0!==m&&m||void 0;h[0]!==d?(l=(0,s.f)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",d),h[0]=d,h[1]=l):l=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.f)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),h[2]=n):n=h[2],h[3]!==c?(r=(0,t.jsx)("div",{className:n,children:c}),h[3]=c,h[4]=r):r=h[4];let v="app"===(void 0===f?"default":f)&&"dark:inset-px dark:ring-white";return h[5]!==p||h[6]!==v?(o=(0,s.f)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",v,p),h[5]=p,h[6]=v,h[7]=o):o=h[7],h[8]!==o?(a=(0,t.jsx)("div",{"aria-hidden":!0,className:o}),h[8]=o,h[9]=a):a=h[9],h[10]!==g||h[11]!==l||h[12]!==r||h[13]!==a?(u=(0,t.jsxs)("div",{"aria-hidden":g,className:l,children:[r,a]}),h[10]=g,h[11]=l,h[12]=r,h[13]=a,h[14]=u):u=h[14],u}])},722841,e=>{"use strict";var t=e.i(51365);let i=[["microsoft/mai-",(0,t.r)("MAI.png")]];var s=e.i(771271);function l(e){return e.toLowerCase()}let n=new Map([[l(s.R.OpenAI),{url:(0,t.r)("OpenAI.svg"),className:"dark:invert"}],[l(s.R.Perplexity),{url:(0,t.r)("Perplexity.png")}],[l(s.R.Poolside),{url:(0,t.r)("poolside-logomark-solid-color.svg")}],[l(s.R.Perceptron),{url:(0,t.e)("https://www.perceptron.inc")}],["voyageai",{url:(0,t.e)("https://www.voyageai.com")}],[l(s.R.GoogleAIStudio),{url:(0,t.r)("GoogleAIStudio.svg")}],[l(s.R.Anthropic),{url:(0,t.r)("Anthropic.svg")}],[l(s.R.ClaudeOnAws),{url:(0,t.r)("Anthropic.svg")}],[l(s.R.Cohere),{url:(0,t.r)("Cohere.png")}],[l(s.R.Deepgram),{url:(0,t.r)("Deepgram.svg"),className:"dark:invert"}],[l(s.R.DeepSeek),{url:(0,t.r)("DeepSeek.png")}],[l(s.R.Together),{url:(0,t.e)("https://www.together.ai/")}],[l(s.R.Infermatic),{url:(0,t.e)("https://infermatic.ai/")}],[l(s.R.HuggingFace),{url:(0,t.e)("https://huggingface.co/")}],[l(s.R.Unbiased),{url:(0,t.r)("Unbiased.png")}],[l(s.R.AI21),{url:(0,t.e)("https://ai21.com/")}],[l(s.R.Featherless),{url:(0,t.e)("https://featherless.ai/")}],[l(s.R.Reflection),{url:(0,t.e)("https://railway.app/")}],[l(s.R.Inflection),{url:(0,t.e)("https://inflection.ai/")}],[l(s.R.Minimax),{url:(0,t.e)("https://minimaxi.com/")}],[l(s.R.Liquid),{url:(0,t.r)("Liquid.png"),className:"dark:invert"}],[l(s.R.Inception),{url:(0,t.r)("Inception.svg"),className:"dark:invert"}],[l(s.R.Relace),{url:(0,t.e)("https://www.relace.ai")}],[l(s.R.Sourceful),{url:(0,t.e)("https://www.sourceful.com/")}],[l(s.R.Speechify),{url:(0,t.e)("https://speechify.ai/")}],[l(s.R.BytePlus),{url:(0,t.e)("https://www.byteplus.com")}],[l(s.R.Xiaomi),{url:(0,t.e)("https://www.mi.com")}],["arcee-ai",{url:(0,t.e)("https://www.arcee.ai")}],[l(s.R.AssemblyAI),{url:(0,t.e)("https://www.assemblyai.com/")}],["fish-audio",{url:(0,t.e)("https://fish.audio/")}],[l(s.R.ElevenLabs),{url:(0,t.e)("https://elevenlabs.io/"),className:"dark:invert"}],["z-ai",{url:(0,t.e)("https://z.ai/"),className:"dark:invert"}],["moonshotai",{url:(0,t.r)("MoonshotAI.png")}],["morph",{url:(0,t.e)("https://morphllm.com")}],[l(s.R.TypeSafe),{url:(0,t.e)("https://typesafe.ai")}],["qwen",{url:(0,t.r)("Qwen.png")}],["google",{url:(0,t.r)("GoogleGemini.svg")}],["microsoft",{url:(0,t.r)("Microsoft.svg")}],["nousresearch",{url:(0,t.e)("https://nousresearch.com/")}],["nvidia",{url:(0,t.e)("https://nvidia.com/")}],["meta-llama",{url:(0,t.r)("Meta.png")}],["meta",{url:(0,t.r)("Meta.png")}],["databricks",{url:(0,t.e)("https://databricks.com/")}],["openrouter",{url:(0,t.r)("openrouter-glyph-light.svg"),darkUrl:(0,t.r)("openrouter-glyph-dark.svg")}],["mistralai",{url:(0,t.r)("Mistral.png")}],["x-ai",{url:(0,t.e)("https://x.ai/")}],["amazon",{url:(0,t.e)("https://nova.amazon.com/")}],["aion-labs",{url:(0,t.e)("https://www.aionlabs.ai/")}],["allenai",{url:(0,t.e)("https://allenai.org/")}],["switchpoint",{url:(0,t.e)("https://switchpoint.dev/")}],["thedrummer",{url:(0,t.r)("TheDrummer.png")}],["deepcogito",{url:(0,t.e)("https://www.deepcogito.com/")}],["baidu",{url:(0,t.e)("https://www.baidu.com/")}],["kwaipilot",{url:(0,t.r)("Kwaipilot.png")}],["kwaivgi",{url:(0,t.r)("KlingAI.png")}],["black-forest-labs",{url:(0,t.e)("https://bfl.ai")}],["prime-intellect",{url:(0,t.e)("https://www.primeintellect.ai/")}],["primeintellect",{url:(0,t.e)("https://www.primeintellect.ai/")}],["essentialai",{url:(0,t.e)("https://www.essential.ai/")}],["bytedance-seed",{url:(0,t.e)("https://seed.bytedance.com/")}],[l(s.R.Seed),{url:(0,t.e)("https://seed.bytedance.com/")}],["writer",{url:(0,t.e)("https://writer.com/"),className:"dark:invert"}],["stepfun",{url:(0,t.e)("https://platform.stepfun.ai/")}],["stepfun-ai",{url:(0,t.e)("https://platform.stepfun.ai/")}],[l(s.R.Recraft),{url:(0,t.r)("Recraft.svg"),className:"dark:invert"}],["bytedance",{url:(0,t.e)("https://seed.bytedance.com/")}],["alibaba",{url:(0,t.e)("https://www.alibabacloud.com")}],["inclusionai",{url:(0,t.e)("https://www.inclusion-ai.org/")}],["tencent",{url:(0,t.r)("Tencent.png")}],["ibm-granite",{url:(0,t.r)("IBMGranite.svg"),className:"dark:invert"}],["nex-agi",{url:(0,t.r)("NexAGI.svg"),className:"dark:invert"}],[l(s.R.Unbiased),{url:(0,t.r)("Unbiased.png")}],["apodex",{url:(0,t.r)("Apodex.svg"),darkUrl:(0,t.r)("Apodex-dark.svg")}],["elorian",{url:(0,t.r)("Elorian.svg"),darkUrl:(0,t.r)("Elorian-dark.svg")}],["xingchen-agi",{url:(0,t.r)("XingChen-Shield.png")}],["prism-ml",{url:(0,t.r)("PrismML.svg"),darkUrl:(0,t.r)("PrismML-dark.svg")}],["thinkingmachines",{url:(0,t.e)("https://thinkingmachines.ai/")}],["sakana",{url:(0,t.e)("https://sakana.ai")}],[l(s.R.HeyGen),{url:(0,t.e)("https://heygen.com")}],["zyphra",{url:(0,t.r)("Zyphra.svg"),className:"dark:invert"}],["sesame",{url:(0,t.e)("https://www.sesame.com")}],["canopylabs",{url:(0,t.e)("https://canopylabs.ai"),className:"dark:invert"}],["hexgrad",{url:(0,t.r)("Hexgrad.png")}],[l(s.R.Krea),{url:(0,t.e)("https://www.krea.ai")}],[l(s.R.Runway),{url:(0,t.e)("https://runwayml.com")}],[l(s.R.Upstage),{url:(0,t.e)("https://www.upstage.ai/")}],[l(s.R.Fireworks),{url:(0,t.e)("https://fireworks.ai")}],["stealth",{url:(0,t.r)("Stealth.svg"),className:"invert-0 dark:invert"}],[l(s.R.Recursive),{url:(0,t.r)("Recursive.svg"),className:"dark:invert"}],["ricursiveai",{url:(0,t.r)("RicursiveAI.svg"),darkUrl:(0,t.r)("RicursiveAI-dark.svg")}]]),r=/^\/(?![/\\])/u,o=/^data:image\//iu;function a(e,i){var s;let l=n.get(e.toLowerCase());return i&&(!i.startsWith("data:")||o.test(i))?(s=l?.className,r.test(i)||o.test(i)?{url:i}:i.startsWith("//")?{url:(0,t.e)(`https:${i}`)}:i.startsWith("http")?{url:(0,t.e)(i)}:{url:(0,t.r)(i),className:s}):l??{url:t.t}}e.s(["$",0,a,"h",0,function({permaslug:e,author:t,iconUri:s}){let l,n=(l=e.toLowerCase().replace(/^~/u,""),i.find(([e])=>l.startsWith(e))?.[1]??null);return null!==n?{url:n}:a(t,s)}],722841)},829622,e=>{"use strict";var t=e.i(659350),i=e.i(663456),s=e.i(214051),l=e.i(51365),n=e.i(288265),r=e.i(16043);e.s(["RemoteFavicon",0,function(e){let o,a,u,h,c,d,f,m,p,g,v,S,_,b=(0,i.c)(55),w=(0,n.f)(),[y,x]=(0,r.useState)(null),[O,k]=(0,r.useState)(null),[M,I]=(0,r.useState)(!1),[R,E]=(0,r.useState)(!1),T=e.size||256;b[0]!==M||b[1]!==R||b[2]!==e.curatedIconAppId||b[3]!==e.faviconFor||b[4]!==e.imgSrc||b[5]!==T?(o=function({faviconFor:e,size:t,didCuratedIconFail:i,didSiteIconFail:s,curatedIconAppId:n,imgSrc:r}){if(r)return{source:"given",src:r};if(void 0!==n&&(0,l.Q)(e)&&!i)return{source:"curated",src:(0,l.$)(e)?e:(0,l.g)(n)};let o=s?(0,l.Z)(e):null;return null!==o?{source:"parent-site",src:(0,l.e)(o,t)}:{source:"site",src:(0,l.e)(e,t)}}({faviconFor:e.faviconFor,size:T,didCuratedIconFail:M,didSiteIconFail:R,curatedIconAppId:e.curatedIconAppId,imgSrc:e.imgSrc}),b[0]=M,b[1]=R,b[2]=e.curatedIconAppId,b[3]=e.faviconFor,b[4]=e.imgSrc,b[5]=T,b[6]=o):o=b[6];let{source:A,src:C}=o;b[7]!==e.faviconFor||b[8]!==T||b[9]!==A?(a=t=>{"site"!==A||T<=16||t>16||null!==(0,l.Z)(e.faviconFor)&&E(!0)},b[7]=e.faviconFor,b[8]=T,b[9]=A,b[10]=a):a=b[10];let z=a;b[11]!==e.faviconFor||b[12]!==A?(u=t=>{switch(A){case"curated":if((0,l.$)(e.faviconFor))return void x(t);I(!0);return;case"site":if(null===(0,l.Z)(e.faviconFor))return void x(t);E(!0);return;case"given":case"parent-site":return void x(t);default:x(t)}},b[11]=e.faviconFor,b[12]=A,b[13]=u):u=b[13];let L=u;b[14]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{x(null)},b[14]=h):h=b[14],b[15]!==C?(c=[C],b[15]=C,b[16]=c):c=b[16],(0,r.useEffect)(h,c),b[17]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{I(!1),E(!1)},b[17]=d):d=b[17],b[18]!==e.curatedIconAppId||b[19]!==e.faviconFor||b[20]!==e.imgSrc||b[21]!==T?(f=[e.faviconFor,e.curatedIconAppId,e.imgSrc,T],b[18]=e.curatedIconAppId,b[19]=e.faviconFor,b[20]=e.imgSrc,b[21]=T,b[22]=f):f=b[22],(0,r.useEffect)(d,f),b[23]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{k(null)},b[23]=m):m=b[23],b[24]!==e.imgSrcDark?(p=[e.imgSrcDark],b[24]=e.imgSrcDark,b[25]=p):p=b[25],(0,r.useEffect)(m,p),b[26]!==w||b[27]!==e.faviconFor?(g=w("Favicon for {faviconFor}",{faviconFor:e.faviconFor}),b[26]=w,b[27]=e.faviconFor,b[28]=g):g=b[28],b[29]!==T||b[30]!==g?(v={width:T,height:T,alt:g,className:"h-full w-full object-cover"},b[29]=T,b[30]=g,b[31]=v):v=b[31];let F=v;if(e.imgSrcDark){let i,l,n;return b[32]!==y||b[33]!==F||b[34]!==L||b[35]!==z||b[36]!==C?(i=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:y?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(s.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...F,src:C,onError:e=>L(e.toString()),onLoad:e=>z(e.currentTarget.naturalWidth)})}),b[32]=y,b[33]=F,b[34]=L,b[35]=z,b[36]=C,b[37]=i):i=b[37],b[38]!==O||b[39]!==F||b[40]!==e.imgSrcDark?(l=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:O?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(s.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...F,src:e.imgSrcDark,onError:e=>k(e.toString())})}),b[38]=O,b[39]=F,b[40]=e.imgSrcDark,b[41]=l):l=b[41],b[42]!==e.className||b[43]!==i||b[44]!==l?(n=(0,t.jsxs)("div",{className:e.className,children:[i,l]}),b[42]=e.className,b[43]=i,b[44]=l,b[45]=n):n=b[45],n}return b[46]!==y||b[47]!==F||b[48]!==L||b[49]!==z||b[50]!==C?(S=y?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(s.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...F,src:C,loading:"lazy",decoding:"async",onError:e=>L(e.toString()),onLoad:e=>z(e.currentTarget.naturalWidth)})}),b[46]=y,b[47]=F,b[48]=L,b[49]=z,b[50]=C,b[51]=S):S=b[51],b[52]!==e.className||b[53]!==S?(_=(0,t.jsx)("div",{className:e.className,children:S}),b[52]=e.className,b[53]=S,b[54]=_):_=b[54],_}])},808125,e=>{"use strict";var t=e.i(667417),i=e.i(387086);let s={[t.D.Text]:(0,i.b)("Text"),[t.D.Image]:(0,i.b)("Image"),[t.D.File]:(0,i.b)("File"),[t.D.Audio]:(0,i.b)("Audio"),[t.D.Video]:(0,i.b)("Video")},l={[t.j.Text]:(0,i.b)("Text"),[t.j.Image]:(0,i.b)("Image"),[t.j.Embeddings]:(0,i.b)("Embeddings"),[t.j.Audio]:(0,i.b)("Audio"),[t.j.Video]:(0,i.b)("Video"),[t.j.Rerank]:(0,i.b)("Rerank"),[t.j.Decisions]:(0,i.b)("Decisions"),[t.j.TTS]:(0,i.b)("Speech"),[t.j.Transcription]:(0,i.b)("Transcription")};e.s(["Z",0,s,"L",0,l])},503741,e=>{"use strict";var t=e.i(989487),i=e.i(960773);e.s(["m",0,"v3","D",0,{Playground:"model_page_playground",SidePanelSeed:"model_page_sidepanel_seed",PlaygroundSection:"model_page_playground_section"},"O",0,function(e){let s=Object.fromEntries(Object.entries(e).map(([e,i])=>[(0,t.h)(e),i]));i.j.capture("playground_v3:fetch_responses",s)}])},932061,e=>{"use strict";var t=e.i(339814),i=e.i(385190);e.s(["f",0,function(e,s){return(0,t.o)(e,s,{locale:i.L})}])},51365,e=>{"use strict";e.i(640216);let t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),i=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,s=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),l=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i,n=i("https://huggingface.co/");e.s(["t",0,n,"g",0,e=>`/api/frontend/v1/apps/${e}/icon`,"e",0,i,"r",0,e=>`/images/icons/${e}`,"Z",0,e=>{let i=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===i)return null;let l=i.split(".").slice(1);if(l.length<2||2===l.length&&2===(l[1]??"").length&&t.has(l[0]??""))return null;let n=l.join(".");return[...s].some(e=>n===e||n.endsWith(`.${e}`))?null:`https://${n}`},"Q",0,e=>{try{return l.test(new URL(e).pathname)}catch{return!1}},"$",0,e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}}],51365)},989487,e=>{"use strict";let t=/(?<=[\p{Ll}\d])(?=\p{Lu})|(?<=\p{Lu})(?=\p{Lu}\p{Ll})/u,i=/(?<=[\p{Ll}\d])(?=\p{Lu})|(?<=\p{Lu})(?=\p{Lu}\p{Ll})|(?<=\d)(?=\p{Ll})|(?<=\p{L})(?=\d)/u;function s(e,{style:l,options:n={}}){let r=0,o=e.length;for(;rr&&n.suffixCharacters?.includes(e.charAt(o-1));)o--;let a=(n.split??(e=>(function(e,s){let l=e.match(/[\p{L}\d]+/giu);if(null===l)return[];let n=s?i:t;if(1===l.length)return l[0].split(n);let r=[];for(let e of l)for(let t of e.split(n))r.push(t);return r})(e,n.separateNumbers)))(e.slice(r,o)),u=n.locale,h=n.locale,c=!1===u?e=>e.toLowerCase():e=>e.toLocaleLowerCase(u),d=!1===h?e=>e.toUpperCase():e=>e.toLocaleUpperCase(h),f="camel"===l||"pascal"===l,m=(e,t)=>{let i=e[0];return(f&&!n.mergeAmbiguousCharacters&&t>0&&/^[0-9]$/.test(i)?"_":"")+d(i)+c(e.slice(1))},p=m;"lower"===l&&(p=c),"camel"===l&&(p=(e,t)=>0===t?c(e):m(e,t)),"sentence"===l&&(p=(e,t)=>0===t?m(e,t):c(e));let g=a.map(p);return e.slice(0,r)+g.join(n.delimiter??(f?"":" "))+e.slice(o)}e.s(["j",0,function(e,t){return s(e,{style:"capital",options:t})},"O",0,function(e,t){return s(e,{style:"lower",options:{delimiter:"-",...t}})},"F",0,function(e,t){return s(e,{style:"sentence",options:t})},"h",0,function(e,t){return s(e,{style:"lower",options:{delimiter:"_",...t}})}])},640216,e=>{"use strict";var t=e.i(914571),i=e.i(647204),s=e.i(30012);function l(e){let t=e.replaceAll(/^\[|\]$/g,""),i=a(t);if(i)return l(i);if(n(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let s=r(t);if(s)return s.slice(0,15).every(e=>0===e)&&(0===s[15]||1===s[15]);let o=u(t);return"localhost"===o||o.endsWith(".localhost")||o.includes(":")}function n(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function r(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),i=t.indexOf("%");if(-1!==i){if(0===i||i===t.length-1)return null;t=t.slice(0,i)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let i=t.slice(e+1);if(!n(i))return null;let s=i.split(".").map(Number),l=(s[0]??0)<<8|(s[1]??0),r=(s[2]??0)<<8|(s[3]??0);t=`${t.slice(0,e+1)}${l.toString(16)}:${r.toString(16)}`}let s=t.indexOf("::");if(s!==t.lastIndexOf("::"))return null;let l=-1!==s?function(e,t){let i=e.slice(0,t),s=e.slice(t+2),l=""===i?[]:i.split(":"),n=""===s?[]:s.split(":");if(l.some(e=>""===e)||n.some(e=>""===e))return null;let r=8-l.length-n.length;return r<1?null:[...l,...Array.from({length:r},()=>"0"),...n]}(t,s):t.split(":");return null===l||8!==l.length||l.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:l.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function o(e){return 254===e[0]&&((e[1]??0)&192)==128}function a(e){let t=r(e);if(null===t)return null;let i=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],s=t.slice(0,12).every(e=>0===e),l=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!i&&!s||s&&l?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function u(e){let t=e.toLowerCase(),i=t.length;for(;i>0&&"."===t[i-1];)i-=1;return t.slice(0,i)}t.n,e.s(["b",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&l(e.hostname)},"i",0,function(e){let t=u(e);return"cfargotunnel.com"===t||t.endsWith(".cfargotunnel.com")},"y",0,l,"r",0,function(e){let t=u(e);return"openrouter.ai"===t||t.endsWith(".openrouter.ai")},"E",0,function(e,t={}){let h,c,d,f;try{h=new URL(e)}catch{return(0,i.Y)("Invalid URL format")}let m=h.hostname.toLowerCase(),p=h.protocol,g=(0,s.T)()&&!0;if(l(m)&&g)return"http:"!==p&&"https:"!==p?(0,i.Y)("Only HTTP and HTTPS protocols are allowed"):(0,i.N)(!0);if(l(m))return(0,i.Y)("Localhost URLs are not allowed");if(function e(t){let i=a(t.replaceAll(/^\[|\]$/g,""));if(i)return e(i)||l(i);if(n(t)){let e=t.split(".").map(Number);if(4!==e.length||e.some(e=>Number.isNaN(e)))return!1;let[i,s]=e;return void 0!==i&&void 0!==s&&(10===i||172===i&&s>=16&&s<=31||192===i&&168===s||100===i&&s>=64&&s<=127||169===i&&254===s)}if(null!==r(t)){let e=r(t);return null!==e&&(((e[0]??0)&254)==252||o(e))}return!1}(m))return(0,i.Y)("Private IP addresses are not allowed");if(function(e){if(n(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==r(e)){let t=r(e);return null!==t&&o(t)}return!1}(m)||"metadata.google.internal"===(c=u(m))||c.endsWith(".metadata.google.internal")||(d=u(m)).endsWith(".svc")||d.endsWith(".svc.cluster.local")||d.endsWith(".cluster.local")||(f=u(m)).endsWith(".internal")||f.endsWith(".local"))return(0,i.Y)("Unsupported URL, public internet addresses only");if(!g&&"https:"!==p){if(!t.allowHttp)return(0,i.Y)("Only HTTPS URLs are allowed");if("http:"!==p)return(0,i.Y)("Only HTTP and HTTPS protocols are allowed")}return g&&"http:"!==p&&"https:"!==p?(0,i.Y)("Only HTTP and HTTPS protocols are allowed in dev"):(0,i.N)(!0)}],640216)},690387,e=>{"use strict";var t=e.i(293747),i=e.i(706792),s=e.i(140691);let l="/M tokens",n=["prompt","completion","request","image","image_token","image_output","audio","audio_output","input_audio_cache","input_cache_read","input_cache_write","input_cache_write_1h","web_search","internal_reasoning"];function r(e){return e.length>0&&!e.some(e=>!(0,s.I)(e.price).isZero()||e.tiers?.some(e=>!(0,s.I)(e.price).isZero())===!0)}function o(e,l,n){if(0===l.length)return;let r=n?.keepTrailingZeroes?"model-price-fixed":"model-price",o=l.filter(e=>"token"===e.kind),h=(0,i.T)(l);if(h)return function({locale:e,preset:i},{media:l,inputItem:n,outputItem:r}){return{kind:"standard-tokens",media:l,inputPrice:(0,t.f)((0,s.I)(n.price).times(n.displayMultiplier),{locale:e,preset:i})??"—",inputUnit:u(n),outputPrice:(0,t.f)((0,s.I)(r.price).times(r.displayMultiplier),{locale:e,preset:i})??"—",outputUnit:u(r)}}({locale:e,preset:r},h);let c=(0,i.U)(l);if(!c){if(o[0]){let i=o[0],r=`${(0,t.f)((0,s.I)(i.price).times(i.displayMultiplier),{locale:e,preset:n?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,h=u(i);return{kind:"custom",label:a(r,h),priceOnly:r,unit:h,hasDetails:l.length>1}}return}let d=`${(0,t.f)((0,s.I)(c.price).times(c.displayMultiplier),{locale:e,preset:n?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,f=c.unitLabel;return{kind:"custom",label:c.hasDetails?`from ${a(d,f)}`:a(d,f),priceOnly:c.hasDetails?`from ${d}`:d,unit:f,hasDetails:c.hasDetails}}function a(e,t){var i;return`${e}${(i=t)?i.startsWith("/")?i:` ${i}`:""}`}function u(e){if("token"===e.kind){if(1e6===e.displayMultiplier)return l;if(1e3===e.displayMultiplier)return"/K tokens"}return e.unitLabel}e.s(["z",0,1e6,"u",0,function(e,i,n){return o(e,n)??function(e,i){if(i&&(0,s.I)(i.prompt).isFinite()&&(0,s.I)(i.completion).isFinite()&&!((0,s.I)(i.prompt).isZero()&&(0,s.I)(i.completion).isZero()))return{kind:"standard-tokens",media:"text",inputPrice:(0,t.f)((0,s.I)(i.prompt).times(1e6),{locale:e,preset:"model-price"})??"—",inputUnit:l,outputPrice:(0,t.f)((0,s.I)(i.completion).times(1e6),{locale:e,preset:"model-price"})??"—",outputUnit:l}}(e,i?.pricing)},"J",0,o,"w",0,u,"C",0,r,"h",0,function(e,t){var i;return e?.is_free===!0||(t.length>0?r(t):!!(i=e?.pricing)&&n.every(e=>{let t=i[e];return void 0===t||(0,s.I)(t).isZero()}))},"i",0,a])},700050,e=>{"use strict";var t=e.i(960773),i=e.i(503741),s=e.i(989487);function l(e,l){let n=`playground_${i.m}:${e}`,r=Object.fromEntries(Object.entries(l||{}).map(([e,t])=>[(0,s.h)(e),t]));t.j.capture(n,r)}e.s(["q",0,function(e){l("artifact_create",e)},"l",0,function(e){l("artifact_delete",e)},"J",0,function(e){l("artifact_version_create",e)},"s",0,function(e){l("aspect_ratio_select",e)},"X",0,function(e){l("character_duplicate",e)},"D",0,function(e){l("character_remove",e)},"E",0,function(e){l("character_restore",e)},"K",0,function(e){for(let t of e.modelSlugs)l("character_add",{model:t,source:e.source})},"u",0,function(e){l("citation_icons_expand",e)},"P",0,function(e){l("conversation_search_open",e)},"t",0,function(e){l("intern_turn",e)},"p",0,function(e){l("message_delete",e)},"L",0,function(e){l("message_send_init",e)},"z",0,function(e){l("model_pin",e)},"g",0,function(e){l("model_preset_click",e)},"T",0,function(e){l("model_unpin",e)},"Y",0,function(e){l("pinned_model_select",e)},"v",0,function(e){l("preset_apply",e)},"m",0,function(e){l("prompt_preset_click",e)},"r",0,function(){l("room_clear_characters")},"i",0,function(){l("room_clear_history")},"w",0,function(e){l("room_create",e)},"b",0,function(e){l("room_delete",e)},"U",0,function(e){l("room_delete_all",e)},"j",0,function(e){l("room_duplicate",e)},"e",0,function(){l("room_export_chat")},"V",0,function(){l("room_export_markdown")},"x",0,function(){l("room_import")},"Z",0,function(e){l("room_load_complete",e)},"F",0,function(e){l("room_load_failed",e)},"C",0,function(e){l("room_load_triggered",e)},"M",0,function(){l("room_share_models")},"a",0,function(e){l("room_summary_title_generated",e)},"n",0,function(e){l("room_update_title",e)},"G",0,function(e){l("tool_chip_expand",e)},"h",0,function(){l("tool_docs_click")},"_",0,function(e){l("tool_toggle",e)}])}]); //# sourceMappingURL=41qv-pv2gjfey.js.map