!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a090e3-19db-7b20-bf43-675096be7f0d")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,601432,e=>{"use strict";let t="remove",n="replace",i=Symbol.for("__MUTATIVE_PROXY_DRAFT__"),r=Symbol("__MUTATIVE_RAW_RETURN_SYMBOL__"),o=Symbol.iterator,a={mutable:"mutable",immutable:"immutable"},l={};function s(e,t){return e instanceof Map?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){if(t in e){let n=Reflect.getPrototypeOf(e);for(;n;){let e=Reflect.getOwnPropertyDescriptor(n,t);if(e)return e;n=Reflect.getPrototypeOf(n)}}}function p(e){return Object.getPrototypeOf(e)===Set.prototype}function d(e){return Object.getPrototypeOf(e)===Map.prototype}function c(e){var t;return null!=(t=e.copy)?t:e.original}function f(e){return!!g(e)}function g(e){return"object"!=typeof e?null:null==e?void 0:e[i]}function m(e){var t;let n=g(e);return n?null!=(t=n.copy)?t:n.original:e}function h(e,t){let n;return!!e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||Array.isArray(e)||e instanceof Map||e instanceof Set||!!(null==t?void 0:t.mark)&&((n=t.mark(e,a))===a.immutable||"function"==typeof n))}function b(e){return Array.isArray(e)?1:e instanceof Map?2:3*(e instanceof Set)}function _(e,t){return 2===b(e)?e.get(t):e[t]}function y(e,t,n){2===b(e)?e.set(t,n):e[t]=n}function v(e,t){let n=g(e);return(n?c(n):e)[t]}function z(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function x(e){if(e)for(;e.finalities.revoke.length>0;)e.finalities.revoke.pop()()}function w(e,t){return t?e:[""].concat(e).map(e=>{let t=`${e}`;return -1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")}let S=Object.prototype.propertyIsEnumerable;function M(e,t){let n;if(Array.isArray(e))return Array.prototype.concat.call(e);if(e instanceof Set)return p(e)?Set.prototype.difference?Set.prototype.difference.call(e,new Set):new Set(e.values()):new(Object.getPrototypeOf(e)).constructor(e.values());if(e instanceof Map)return d(e)?new Map(e):new(Object.getPrototypeOf(e)).constructor(e);if((null==t?void 0:t.mark)&&void 0!==(n=t.mark(e,a))&&n!==a.mutable){if(n===a.immutable){let t;return t=Object.create(Object.getPrototypeOf(e)),Reflect.ownKeys(e).forEach(n=>{let i=Reflect.getOwnPropertyDescriptor(e,n);if(i.enumerable&&i.configurable&&i.writable){t[n]=e[n];return}i.writable||(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(i={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[n]}),Reflect.defineProperty(t,n,i)}),t}if("function"==typeof n){if(t.enablePatches||t.enableAutoFreeze)throw Error("You can't use mark and patches or auto freeze together.");return n()}throw Error(`Unsupported mark result: ${n}`)}if("object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n]}),Object.getOwnPropertySymbols(e).forEach(n=>{S.call(e,n)&&(t[n]=e[n])}),t}else throw Error("Please check mark() to ensure that it is a stable marker draftable function.")}function E(e){e.copy||(e.copy=M(e.original,e.options))}function A(e){return f(e)?function e(t){if(!h(t))return m(t);if(Array.isArray(t))return t.map(e);if(t instanceof Map){let n=Array.from(t.entries()).map(([t,n])=>[t,e(n)]);return d(t)?new Map(n):new(Object.getPrototypeOf(t)).constructor(n)}if(t instanceof Set){let n=Array.from(t).map(e);return p(t)?new Set(n):new(Object.getPrototypeOf(t)).constructor(n)}let n=Object.create(Object.getPrototypeOf(t));for(let i in t)n[i]=e(t[i]);return n}(e):e}function O(e){var t;e.assignedMap=null!=(t=e.assignedMap)?t:new Map,!e.operated&&(e.operated=!0,e.parent&&O(e.parent))}function k(){throw Error("Cannot modify frozen object")}function j(e,t){let n=b(e);if(0===n)Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)});else if(1===n){let n=0;for(let i of e)t(n,i,e),n+=1}else e.forEach((n,i)=>t(i,n,e))}function R(e){3===e.type&&e.copy&&(e.copy.clear(),e.setMap.forEach(t=>{e.copy.add(m(t))}))}function P(e,t,n,i){if(e.operated&&e.assignedMap&&e.assignedMap.size>0&&!e.finalized){if(n&&i){let r=function e(t,n=[]){if(Object.hasOwnProperty.call(t,"key")){let e=t.parent.copy,i=g(_(e,t.key));if(null!==i&&(null==i?void 0:i.original)!==t.original)return null;let r=3===t.parent.type,o=r?Array.from(t.parent.setMap.keys()).indexOf(t.key):t.key;if(!(r&&e.size>o||s(e,o)))return null;n.push(o)}if(t.parent)return e(t.parent,n);n.reverse();try{var i=t.copy,r=n;for(let e=0;e{var l;let s=3===e.type?e.setMap:e.copy;if(z(_(s,t),n)){let n=r.original;r.copy&&(n=r.copy),R(e),P(e,i,o,a),e.options.enableAutoFreeze&&(e.options.updatedValues=null!=(l=e.options.updatedValues)?l:new WeakMap,e.options.updatedValues.set(n,r.original)),y(s,t,n)}}),e.options.enableAutoFreeze&&r.finalities!==e.finalities&&(e.options.enableAutoFreeze=!1)),h(n,e.options)&&e.finalities.draft.push(()=>{let i;z(_(3===e.type?e.setMap:e.copy,t),n)&&(i=3===e.type?e.setMap:e.copy,e.finalities.revoke.length>1&&e.assignedMap.get(t)&&i&&function e(t,n,i){if(f(t)||!h(t,i)||n.has(t)||Object.isFrozen(t))return;let r=t instanceof Set,o=r?new Map:void 0;if(n.add(t),j(t,(a,l)=>{var s;if(f(l)){let e=g(l);E(e),y(r?o:t,a,(null==(s=e.assignedMap)?void 0:s.size)||e.operated?e.copy:e.original)}else e(l,n,i)}),o){let e=Array.from(t);t.clear(),e.forEach(e=>{t.add(o.has(e)?o.get(e):e)})}}(_(i,t),e.finalities.handledSet,e.options))})}function T(e,i,r,o){let{pathAsArray:a=!0}=e.options.enablePatches;switch(e.type){case 0:case 2:return function({original:e,copy:i,assignedMap:r},o,a,l,u){r.forEach((r,p)=>{let d=_(e,p),c=A(_(i,p)),f=r?s(e,p)?n:"add":t;if(z(d,c)&&f===n)return;let g=w(o.concat(p),u);a.push(f===t?{op:f,path:g}:{op:f,path:g,value:c}),l.push("add"===f?{op:t,path:g}:f===t?{op:"add",path:g,value:d}:{op:n,path:g,value:d})})}(e,i,r,o,a);case 1:return function(e,i,r,o,a){let{original:l,assignedMap:s,options:u}=e,p=e.copy;p.length{if(!n.has(e)){let n=w(i.concat([l]),a);r.push({op:t,path:n,value:e}),o.unshift({op:"add",path:n,value:e})}l+=1}),l=0,n.forEach(n=>{if(!e.has(n)){let e=w(i.concat([l]),a);r.push({op:"add",path:e,value:n}),o.unshift({op:t,path:e,value:n})}l+=1})}(e,i,r,o,a)}}let C=(e,t,n=!1)=>{if("object"==typeof e&&null!==e&&(!h(e,t)||n)&&1)throw Error("Strict mode: Mutable data cannot be accessed directly, please use 'unsafe(callback)' wrap.")},D={get size(){return c(g(this)).size},has(e){return c(g(this)).has(e)},set(e,t){let n=g(this),i=c(n);return i.has(e)&&z(i.get(e),t)||(E(n),O(n),n.assignedMap.set(e,!0),n.copy.set(e,t),I(n,e,t,T)),this},delete(e){if(!this.has(e))return!1;let t=g(this);return E(t),O(t),t.original.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.copy.delete(e),!0},clear(){let e=g(this);if(this.size){for(let[t]of(E(e),O(e),e.assignedMap=new Map,e.original))e.assignedMap.set(t,!1);e.copy.clear()}},forEach(e,t){c(g(this)).forEach((n,i)=>{e.call(t,this.get(i),i,this)})},get(e){var t,n;let i=g(this),r=c(i).get(e),o=(null==(n=(t=i.options).mark)?void 0:n.call(t,r,a))===a.mutable;if(i.options.strict&&C(r,i.options,o),o||i.finalized||!h(r,i.options)||r!==i.original.get(e))return r;let s=l.createDraft({original:r,parentDraft:i,key:e,finalities:i.finalities,options:i.options});return E(i),i.copy.set(e,s),s},keys(){return c(g(this)).keys()},values(){let e=this.keys();return{[o]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}},entries(){let e=this.keys();return{[o]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let n=this.get(t.value);return{done:!1,value:[t.value,n]}}}},[o](){return this.entries()}},L=Reflect.ownKeys(D),V=(e,t,{isValuesIterator:n})=>()=>{var i,r;let o=t.next();if(o.done)return o;let s=o.value,u=e.setMap.get(s),p=g(u),d=(null==(r=(i=e.options).mark)?void 0:r.call(i,u,a))===a.mutable;if(e.options.strict&&C(s,e.options,d),!d&&!p&&h(s,e.options)&&!e.finalized&&e.original.has(s)){let t=l.createDraft({original:s,parentDraft:e,key:s,finalities:e.finalities,options:e.options});e.setMap.set(s,t),u=t}else p&&(u=p.proxy);return{done:!1,value:n?u:[u,u]}},F={get size(){return g(this).setMap.size},has(e){let t=g(this);if(t.setMap.has(e))return!0;E(t);let n=g(e);return!!(n&&t.setMap.has(n.original))},add(e){let t=g(this);return this.has(e)||(E(t),O(t),t.assignedMap.set(e,!0),t.setMap.set(e,e),I(t,e,e,T)),this},delete(e){if(!this.has(e))return!1;let t=g(this);E(t),O(t);let n=g(e);return n&&t.setMap.has(n.original)?(t.assignedMap.set(n.original,!1),t.setMap.delete(n.original)):(!n&&t.setMap.has(e)?t.assignedMap.set(e,!1):t.assignedMap.delete(e),t.setMap.delete(e))},clear(){if(!this.size)return;let e=g(this);for(let t of(E(e),O(e),e.original))e.assignedMap.set(t,!1);e.setMap.clear()},values(){let e=g(this);E(e);let t=e.setMap.keys();return{[Symbol.iterator]:()=>this.values(),next:V(e,t,{isValuesIterator:!0})}},entries(){let e=g(this);E(e);let t=e.setMap.keys();return{[Symbol.iterator]:()=>this.entries(),next:V(e,t,{isValuesIterator:!1})}},keys(){return this.values()},[o](){return this.values()},forEach(e,t){let n=this.values(),i=n.next();for(;!i.done;)e.call(t,i.value,i.value,this),i=n.next()}};Set.prototype.difference&&Object.assign(F,{intersection(e){return Set.prototype.intersection.call(new Set(this.values()),e)},union(e){return Set.prototype.union.call(new Set(this.values()),e)},difference(e){return Set.prototype.difference.call(new Set(this.values()),e)},symmetricDifference(e){return Set.prototype.symmetricDifference.call(new Set(this.values()),e)},isSubsetOf(e){return Set.prototype.isSubsetOf.call(new Set(this.values()),e)},isSupersetOf(e){return Set.prototype.isSupersetOf.call(new Set(this.values()),e)},isDisjointFrom(e){return Set.prototype.isDisjointFrom.call(new Set(this.values()),e)}});let N=Reflect.ownKeys(F),U={get(e,t,n){var r,o;let l,p=null==(r=e.copy)?void 0:r[t];if(p&&e.finalities.draftsCache.has(p))return p;if(t===i)return e;if(e.options.mark){let i="size"===t&&(e.original instanceof Map||e.original instanceof Set)?Reflect.get(e.original,t):Reflect.get(e.original,t,n);if((l=e.options.mark(i,a))===a.mutable)return e.options.strict&&C(i,e.options,!0),i}let d=c(e);if(d instanceof Map&&L.includes(t))return"size"===t?Object.getOwnPropertyDescriptor(D,"size").get.call(e.proxy):D[t].bind(e.proxy);if(d instanceof Set&&N.includes(t))return"size"===t?Object.getOwnPropertyDescriptor(F,"size").get.call(e.proxy):F[t].bind(e.proxy);if(!s(d,t)){let n=u(d,t);return n?"value"in n?n.value:null==(o=n.get)?void 0:o.call(e.proxy):void 0}let m=d[t];if(e.options.strict&&C(m,e.options),e.finalized||!h(m,e.options))return m;if(m===v(e.original,t)){if(E(e),e.copy[t]=q({original:e.original[t],parentDraft:e,key:1===e.type?Number(t):t,finalities:e.finalities,options:e.options}),"function"==typeof l){let n=g(e.copy[t]);return E(n),O(n),n.copy}return e.copy[t]}return f(m)&&e.finalities.draftsCache.add(m),m},set(e,t,n){var i;let r;if(3===e.type||2===e.type)throw Error("Map/Set draft does not support any property assignment.");if(1===e.type&&"length"!==t&&!(Number.isInteger(r=Number(t))&&r>=0&&(0===t||0===r||String(r)===String(t))))throw Error("Only supports setting array indices and the 'length' property.");let o=u(c(e),t);if(null==o?void 0:o.set)return o.set.call(e.proxy,n),!0;let a=v(c(e),t),l=g(a);return l&&z(l.original,n)?(e.copy[t]=n,e.assignedMap=null!=(i=e.assignedMap)?i:new Map,e.assignedMap.set(t,!1),!0):!!(z(n,a)&&(void 0!==n||s(e.original,t)))||(E(e),O(e),s(e.original,t)&&z(n,e.original[t])?e.assignedMap.delete(t):e.assignedMap.set(t,!0),e.copy[t]=n,I(e,t,n,T),!0)},has:(e,t)=>t in c(e),ownKeys:e=>Reflect.ownKeys(c(e)),getOwnPropertyDescriptor(e,t){let n=c(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i?{writable:!0,configurable:1!==e.type||"length"!==t,enumerable:i.enumerable,value:n[t]}:i},getPrototypeOf:e=>Reflect.getPrototypeOf(e.original),setPrototypeOf(){throw Error("Cannot call 'setPrototypeOf()' on drafts")},defineProperty(){throw Error("Cannot call 'defineProperty()' on drafts")},deleteProperty(e,t){var n;return 1===e.type?U.set.call(this,e,t,void 0,e.proxy):(void 0!==v(e.original,t)||t in e.original?(E(e),O(e),e.assignedMap.set(t,!1)):(e.assignedMap=null!=(n=e.assignedMap)?n:new Map,e.assignedMap.delete(t)),e.copy&&delete e.copy[t],!0)}};function q(e){let{original:t,parentDraft:n,key:i,finalities:r,options:o}=e,a=b(t),l={type:a,finalized:!1,parent:n,original:t,copy:null,proxy:null,finalities:r,options:o,setMap:3===a?new Map(t.entries()):void 0};(i||"key"in e)&&(l.key=i);let{proxy:s,revoke:u}=Proxy.revocable(1===a?Object.assign([],l):l,U);if(r.revoke.push(u),l.proxy=s,n)n.finalities.draft.push((e,t)=>{var r,o;let a=g(s),l=3===n.type?n.setMap:n.copy,u=_(l,i),p=g(u);if(p){let o=p.original;p.operated&&(o=m(u)),R(p),P(p,T,e,t),n.options.enableAutoFreeze&&(n.options.updatedValues=null!=(r=n.options.updatedValues)?r:new WeakMap,n.options.updatedValues.set(o,p.original)),y(l,i,o)}null==(o=a.callbacks)||o.forEach(n=>{n(e,t)})});else{let e=g(s);e.finalities.draft.push((t,n)=>{R(e),P(e,T,t,n)})}return s}function G(e){let{rootDraft:t,value:n,useRawReturn:i=!1,isRoot:r=!0}=e;j(n,(n,i,r)=>{let o=g(i);if(o&&t&&o.finalities===t.finalities){e.isContainDraft=!0;let t=o.original;if(r instanceof Set){let e=Array.from(r);r.clear(),e.forEach(e=>r.add(n===e?t:e))}else y(r,n,t)}else"object"==typeof i&&null!==i&&(e.value=i,e.isRoot=!1,G(e))}),r&&(e.isContainDraft||console.warn("The return value does not contain any draft, please use 'rawReturn()' to wrap the return value to improve performance."),i&&console.warn("The return value contains drafts, please don't use 'rawReturn()' to wrap the return value."))}function K(e){if(!f(e))throw Error(`current() is only used for Draft, parameter: ${e}`);return function e(t){var n;let i,r=g(t);if(!h(t,null==r?void 0:r.options))return t;let o=b(t);if(r&&!r.operated)return r.original;function a(){i=2===o?d(t)?new Map(t):new(Object.getPrototypeOf(t)).constructor(t):3===o?Array.from(r.setMap.values()):M(t,null==r?void 0:r.options)}if(r){r.finalized=!0;try{a()}finally{r.finalized=!1}}else i=t;if(j(i,(n,o)=>{if(r&&z(_(r.original,n),o))return;let l=e(o);l!==o&&(i===t&&a(),y(i,n,l))}),3===o){let e=null!=(n=null==r?void 0:r.original)?n:i;return p(e)?new Set(i):new(Object.getPrototypeOf(e)).constructor(i)}return i}(e)}l.createDraft=q;Object.prototype.constructor.toString(),e.s(["create",0,function e(t,i,o){var l,s,u,p;let d,c,m,_,y;if("function"==typeof t&&"function"!=typeof i)return function(n,...r){return e(n,e=>t.call(this,e,...r),i)};let v=o;if("function"!=typeof i&&(v=i),void 0!==v&&"[object Object]"!==Object.prototype.toString.call(v))throw Error(`Invalid options: ${v}, 'options' should be an object.`);v=Object.assign(Object.assign({},void 0),v);let w=f(t)?K(t):t,S=Array.isArray(v.mark)?(e,t)=>{for(let n of v.mark){if("function"!=typeof n)throw Error(`Invalid mark: ${n}, 'mark' should be a function.`);let i=n(e,t);if(i)return i}}:v.mark,M=null!=(l=v.enablePatches)&&l,E=null!=(s=v.strict)&&s,A={enableAutoFreeze:null!=(u=v.enableAutoFreeze)&&u,mark:S,strict:E,enablePatches:M};if(!h(w,A)&&"object"==typeof w&&null!==w)throw Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");let[O,j]=(_={draft:[],revoke:[],handledSet:new WeakSet,draftsCache:new WeakSet},A.enablePatches&&(c=[],m=[]),[y=(null==(p=A.mark)?void 0:p.call(A,w,a))!==a.mutable&&h(w,A)?q({original:w,parentDraft:null,finalities:_,options:A}):w,(e=[])=>{let[t,i,r]=function(e,t,i,r,o){var a;let l=g(e),s=null!=(a=null==l?void 0:l.original)?a:e,u=!!t.length;if(null==l?void 0:l.operated)for(;l.finalities.draft.length>0;)l.finalities.draft.pop()(i,r);let p=u?t[0]:l?l.operated?l.copy:l.original:e;return l&&x(l),o&&function e(t,n,i,r,o){{i=null!=i?i:new WeakMap,r=null!=r?r:[],o=null!=o?o:[];let e=i.has(t)?i.get(t):t;if(r.length>0){let t=r.indexOf(e);if(e&&"object"==typeof e&&-1!==t){if(r[0]===e)throw Error("Forbids circular reference");throw Error(`Forbids circular reference: ~/${o.slice(0,t).map((e,t)=>{if("symbol"==typeof e)return`[${e.toString()}]`;let n=r[t];return"object"==typeof e&&(n instanceof Map||n instanceof Set)?Array.from(n.keys()).indexOf(e):e}).join("/")}`)}r.push(e),o.push(n)}else r.push(e)}if(Object.isFrozen(t)||f(t)){r.pop(),o.pop();return}switch(b(t)){case 2:for(let[n,a]of t)e(n,n,i,r,o),e(a,n,i,r,o);t.set=t.clear=t.delete=k;break;case 3:for(let n of t)e(n,n,i,r,o);t.add=t.clear=t.delete=k;break;case 1:Object.freeze(t);let a=0;for(let n of t)e(n,a,i,r,o),a+=1;break;default:Object.freeze(t),Object.keys(t).forEach(n=>{e(t[n],n,i,r,o)})}r.pop(),o.pop()}(p,p,null==l?void 0:l.options.updatedValues),[p,i&&u?[{op:n,path:[],value:t[0]}]:i,r&&u?[{op:n,path:[],value:s}]:r]}(y,e,c,m,A.enableAutoFreeze);return A.enablePatches?[t,i,r]:t}]);if("function"!=typeof i){if(!h(w,A))throw Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");return[O,j]}try{d=i(O)}catch(e){throw x(g(O)),e}let R=e=>{let t=g(O);if(!f(e)){if(void 0!==e&&!z(e,O)&&(null==t?void 0:t.operated))throw Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");let n=null==e?void 0:e[r];if(n){let i=n[0];return A.strict&&"object"==typeof e&&null!==e&&G({rootDraft:t,value:e,useRawReturn:!0}),j([i])}if(void 0!==e)return"object"==typeof e&&null!==e&&G({rootDraft:t,value:e}),j([e])}if(e===O||void 0===e)return j([]);let n=g(e);if(A===n.options){if(n.operated)throw Error("Cannot return a modified child draft.");return j([K(e)])}return j([e])};return d instanceof Promise?d.then(R,e=>{throw x(g(O)),e}):R(d)}])},519158,e=>{"use strict";var t=e.i(217631);e.i(204067);var n=e.i(796805);n.z.enum(["workflow_id","benchmark_type","accuracy","score","total_tokens","total_cost","throughput","timestamp","duration"]),n.z.enum(["asc","desc"]),n.z.enum(["visible","hidden","all"]);let i=["tau_bench_verified_airline","gpqa_diamond","vgi_bench"],r=["vgi_bench"];i.filter(e=>!(0,t.isMember)(e,r)),e.s(["ROUTING_BENCHMARK_TYPES",0,i])},442160,235750,e=>{"use strict";var t=e.i(526073);let n={Developer:"developer",System:"system",UserOnly:"user-only"};var i=e.i(206210),r=e.i(475968),o=e.i(204067),a=e.i(796805),l=e.i(519158);let s=a.z.object({supports_multipart:a.z.boolean().nullish(),supports_implicit_caching:a.z.boolean().nullish(),supports_file_urls:a.z.boolean().nullish(),supports_base64_file_input:a.z.boolean().nullish().openapi({description:"Whether the endpoint accepts base64/data-URI file input. When this is false together with supports_file_urls=false, file input is effectively disabled on the endpoint and routing skips it for requests containing files."}),supports_native_web_search:a.z.boolean().nullish(),supports_native_web_fetch:a.z.boolean().nullish(),supports_native_apply_patch:a.z.boolean().nullish(),supports_native_bash:a.z.boolean().nullish(),supports_base64_video_input:a.z.boolean().nullish(),supports_video_urls:a.z.boolean().nullish(),supports_input_audio:a.z.boolean().nullish(),supports_voice_cloning:a.z.boolean().nullish(),supports_realtime:a.z.boolean().nullish(),disable_free_endpoint_limits:a.z.boolean().nullish(),reasoning_return_mechanism:a.z.enum(i.ReasoningReturnMechanism).nullish(),instruction_role_support:a.z.enum(n).nullish().openapi({description:"How leading instruction (developer/system) messages are mapped: 'developer' keeps developer, 'system' downgrades developer to system, 'user-only' downgrades both to a wrapped user message."}),supports_mid_session_system:a.z.boolean().nullish().openapi({description:"Whether the endpoint accepts system/developer messages after the first user/assistant turn. When false, mid-session instruction messages are downgraded to wrapped user messages."}),supports_tool_choice:a.z.object({literal_none:a.z.boolean().default(!0),literal_auto:a.z.boolean().default(!0),literal_required:a.z.boolean().default(!0),type_function:a.z.boolean().default(!0)}).default(()=>({literal_none:!0,literal_auto:!0,literal_required:!0,type_function:!0})),supported_parameters:a.z.object({response_format:a.z.boolean().nullish(),structured_outputs:a.z.boolean().nullish()}).nullish(),supports_document_url:a.z.unknown().transform(()=>null).optional(),should_send_reasoning_text_in_text_content:a.z.boolean().nullish().openapi({description:"[DEPRECATED] Use features.reasoning_return_mechanism instead.",deprecated:!0}),is_mandatory_reasoning:a.z.boolean().nullish().openapi({description:"[DEPRECATED] Use model.reasoning_config.is_mandatory_reasoning instead.",deprecated:!0})}),u=a.z.object({min:a.z.number().nullish(),max:a.z.number().nullish()});a.z.object({supported_resolutions:a.z.array(a.z.nativeEnum(r.VideoGenerationResolution)).nullish(),supported_aspect_ratios:a.z.array(a.z.nativeEnum(r.VideoAspectRatio)).nullish(),supported_sizes:a.z.array(a.z.nativeEnum(r.VideoSize)).nullish(),supported_durations:a.z.array(a.z.number().int().gt(0)).nullish(),supported_frame_images:a.z.array(a.z.nativeEnum(r.VideoFrameType)).nullish(),generate_audio:a.z.boolean().nullish(),seed:a.z.boolean().nullish(),upscale_factor:u.nullish(),creativity:a.z.array(a.z.number().int()).nullish()}).nullable();let p=a.z.object({min:a.z.number().int().nullish(),max:a.z.number().int().nullish()});a.z.object({resolutions:a.z.array(a.z.nativeEnum(t.ImageGenerationResolution)).nullish(),aspect_ratios:a.z.array(a.z.nativeEnum(t.ImageAspectRatio)).nullish(),output_formats:a.z.array(a.z.enum(["png","jpeg","webp","svg"])).nullish(),qualities:a.z.array(a.z.nativeEnum(t.ImageQuality)).nullish(),backgrounds:a.z.array(a.z.enum(["auto","transparent","opaque"])).nullish(),n:p.nullish(),input_references:p.nullish(),output_compression:p.nullish(),seed:a.z.boolean().nullish(),size:a.z.boolean().nullish()}).nullable(),a.z.object({voices:a.z.array(a.z.string()).nullish()}).nullable(),[...l.ROUTING_BENCHMARK_TYPES.map(e=>`benchmark:${e}`)],e.s(["EndpointFeaturesSchema",0,s,"isMandatoryReasoning",0,function(e){return!!e.model.reasoning_config?.is_mandatory_reasoning}],442160),e.i(358390);var d=e.i(963),c=e.i(586404);let f=a.z.string().transform(e=>""===e?null:e).nullable(),g=a.z.object({start_token:f.pipe(a.z.string().regex(/^<.*>$/,{message:"start_token must start with '<' and end with '>'"}).nullable()).nullish(),end_token:f.pipe(a.z.string().regex(/^<\/.*>$/,{message:"end_token must start with ''"}).nullable()).nullish(),system_prompt:f.nullish(),is_mandatory_reasoning:a.z.boolean().nullish(),supports_reasoning_effort:a.z.boolean().describe("Whether the model supports reasoning effort").nullish(),supports_reasoning_max_tokens:a.z.boolean().describe("Whether the model supports reasoning max tokens").nullish(),supported_reasoning_efforts:a.z.array(a.z.enum(i.ReasoningEffortValue)).describe("List of reasoning effort values the model accepts upstream").nullish(),default_reasoning_effort:a.z.enum(i.ReasoningEffortValue).nullish(),default_reasoning_enabled:a.z.boolean().describe("Default reasoning enabled state for the model. When true, reasoning is enabled by default; when false, disabled by default. User-specified values always override this.").nullish(),reasoning_return_mechanism:a.z.enum(i.ReasoningReturnMechanism).nullish().openapi({description:"Default mechanism for returning reasoning tokens. Can be overridden per-endpoint via endpoint features."})}),m=a.z.object({should_hoist_and_merge_system_messages:a.z.boolean().nullish().describe("Whether to hoist and merge system messages"),instruction_role_support:a.z.enum(n).nullish().describe("How leading instruction (developer/system) messages are mapped before reaching a chat-completions provider. 'developer' keeps the developer role, 'system' downgrades developer to system, 'user-only' downgrades both to a wrapped user message. Overridable per-endpoint."),supports_mid_session_system:a.z.boolean().nullish().describe("Whether the model accepts system/developer messages that appear after the first user/assistant turn. When false, mid-session instruction messages are downgraded to wrapped user messages. Overridable per-endpoint.")}),h=[d.InputModality.Text,d.InputModality.Image,d.InputModality.Audio,d.InputModality.Video],b=a.z.object({reasoning_config:g.nullish(),chat_template_config:m.nullish(),required_input_modalities:a.z.array(a.z.enum(h)).nullish().openapi({description:'Input modalities every request to the model must include, e.g. ["video"] for video-to-video-only models. Requests missing a required modality are rejected before dispatch. A required text modality is satisfied by the prompt. Currently enforced on the video generation request path.'})});function _(e){return!!e&&Object.values(e).some(c.isDefinedAndNotNull)}a.z.object({temperature:(0,o.zDouble)().min(0).max(2).nullish(),top_p:(0,o.zDouble)().min(0).max(1).nullish(),top_k:(0,o.zInt)().min(0).nullish(),frequency_penalty:(0,o.zDouble)().min(-2).max(2).nullish(),presence_penalty:(0,o.zDouble)().min(-2).max(2).nullish(),repetition_penalty:(0,o.zDouble)().min(0).max(2).nullish()}).strict().openapi("DefaultParameters",{description:"Default parameter values for a model",example:{temperature:.7,top_p:.9,top_k:0,frequency_penalty:0,presence_penalty:0,repetition_penalty:1}});let y={[i.ReasoningEffortValue.Max]:[i.ReasoningEffortValue.XHigh,i.ReasoningEffortValue.High,i.ReasoningEffortValue.Medium,i.ReasoningEffortValue.Low],[i.ReasoningEffortValue.XHigh]:[i.ReasoningEffortValue.High,i.ReasoningEffortValue.Medium,i.ReasoningEffortValue.Low],[i.ReasoningEffortValue.Minimal]:[i.ReasoningEffortValue.Low,i.ReasoningEffortValue.Medium,i.ReasoningEffortValue.High],[i.ReasoningEffortValue.None]:[],[i.ReasoningEffortValue.Low]:[i.ReasoningEffortValue.Medium,i.ReasoningEffortValue.High],[i.ReasoningEffortValue.Medium]:[i.ReasoningEffortValue.Low,i.ReasoningEffortValue.High],[i.ReasoningEffortValue.High]:[i.ReasoningEffortValue.Medium,i.ReasoningEffortValue.Low]};Object.values(i.ReasoningEffortValue).reverse().filter(e=>e!==i.ReasoningEffortValue.None);let v=a.z.enum(i.ReasoningEffortValue).openapi("ReasoningEffort",{example:i.ReasoningEffortValue.Medium});a.z.object({supported_efforts:a.z.array(v).nullish().describe("Allowed reasoning effort values for this model, in descending effort order (highest first). Null means no allowlist — all gateway effort values are accepted."),default_effort:v.optional().describe('Default reasoning effort when the client enables reasoning without specifying effort. Maps to `reasoning.effort` in chat requests. When `"none"`, prefer omitting effort unless the user explicitly disables reasoning.'),default_enabled:a.z.boolean().optional().describe("Default reasoning enabled state when the client does not set `reasoning.enabled`."),supports_max_tokens:a.z.boolean().optional().describe("Present and `true` when the model accepts `reasoning.max_tokens` in requests (Anthropic-style) instead of or in addition to `reasoning.effort`. Omitted otherwise."),mandatory:a.z.boolean().describe('When true, reasoning cannot be disabled and effort "none" is rejected.')}).openapi("ModelReasoning",{description:"Per-model reasoning effort configuration for client UI and request defaults.",example:{supported_efforts:["high","medium","low","minimal"],default_effort:"medium",default_enabled:!0,mandatory:!1}}),Object.values(i.ReasoningEffortValue),e.s(["ModelFeaturesSchema",0,b,"ReasoningConfigSchema",0,g,"deriveSupportsReasoning",0,function(e,t){return _(e)||t},"getSupportedReasoningEfforts",0,function(e){let t=e?.supported_reasoning_efforts;return t&&0!==t.length?t:null},"hasReasoningConfigured",0,_,"mapToSupportedReasoningEffort",0,function(e,t){if(!e)return;if(!t||0===t.length)return e;let n=new Set(t);if(n.has(e))return e;for(let t of y[e])if(n.has(t))return t}],235750)},69362,e=>{"use strict";let t={ChatCompletions:"chat-completions",Responses:"responses",AnthropicMessages:"anthropic-messages",Completions:"completions",Other:"other"},n=[{suffix:"/chat/completions",skin:t.ChatCompletions},{suffix:"/responses",skin:t.Responses},{suffix:"/messages",skin:t.AnthropicMessages},{suffix:"/completions",skin:t.Completions}];e.s(["API_SKIN_ROUTE_SUFFIXES",0,n,"ApiSkin",0,t])},526073,e=>{"use strict";e.s(["ImageAspectRatio",0,{"1:1":"1:1","1:2":"1:2","1:4":"1:4","1:8":"1:8","2:1":"2:1","2:3":"2:3","3:2":"3:2","3:4":"3:4","4:1":"4:1","4:3":"4:3","4:5":"4:5","5:4":"5:4","8:1":"8:1","9:16":"9:16","16:9":"16:9","9:19.5":"9:19.5","19.5:9":"19.5:9","9:20":"9:20","20:9":"20:9","9:21":"9:21","21:9":"21:9",auto:"auto"},"ImageGenerationResolution",0,{512:"512","1K":"1K","2K":"2K","4K":"4K"},"ImageQuality",0,{auto:"auto",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"}])},13589,e=>{"use strict";let t={Default:"default",Flex:"flex",Priority:"priority"},n={Flex:t.Flex,Priority:t.Priority};t.Priority;let i={Flex:n.Flex,Priority:n.Priority,Fast:"fast"};function r(e){return e===i.Fast?n.Priority:e}i.Flex,i.Priority,i.Fast,t.Default,t.Default,t.Priority,t.Default,e.s(["NonDefaultServiceTier",0,n,"OpenRouterServiceTier",0,t,"ServiceTierSpelling",0,i,"canonicalizeServiceTierSpelling",0,r,"getServiceTierSpellings",0,function(e){return Object.values(i).filter(t=>r(t)===e)}])},475968,e=>{"use strict";e.s(["VideoAspectRatio",0,{"16:9":"16:9","9:16":"9:16","1:1":"1:1","4:3":"4:3","3:4":"3:4","3:2":"3:2","2:3":"2:3","21:9":"21:9","9:21":"9:21"},"VideoFrameType",0,{first_frame:"first_frame",last_frame:"last_frame"},"VideoGenerationResolution",0,{"480p":"480p","720p":"720p","768p":"768p","1080p":"1080p","1K":"1K","2K":"2K","4K":"4K"},"VideoSize",0,{"480x480":"480x480","480x640":"480x640","480x720":"480x720","480x854":"480x854","480x1120":"480x1120","560x752":"560x752","640x480":"640x480","640x640":"640x640","720x480":"720x480","720x720":"720x720","720x960":"720x960","720x1080":"720x1080","720x1280":"720x1280","720x1680":"720x1680","752x560":"752x560","768x768":"768x768","768x1024":"768x1024","768x1152":"768x1152","768x1366":"768x1366","768x1792":"768x1792","834x1112":"834x1112","854x480":"854x480","960x720":"960x720","960x960":"960x960","992x432":"992x432","1024x768":"1024x768","1080x720":"1080x720","1080x1080":"1080x1080","1080x1440":"1080x1440","1080x1620":"1080x1620","1080x1920":"1080x1920","1080x2520":"1080x2520","1112x834":"1112x834","1120x480":"1120x480","1152x768":"1152x768","1280x720":"1280x720","1366x768":"1366x768","1440x1080":"1440x1080","1440x1440":"1440x1440","1440x1920":"1440x1920","1440x2160":"1440x2160","1440x2560":"1440x2560","1440x3360":"1440x3360","1470x630":"1470x630","1620x1080":"1620x1080","1680x720":"1680x720","1792x768":"1792x768","1920x1080":"1920x1080","1920x1440":"1920x1440","2160x1440":"2160x1440","2160x2160":"2160x2160","2160x2880":"2160x2880","2160x3240":"2160x3240","2160x3840":"2160x3840","2160x5040":"2160x5040","2520x1080":"2520x1080","2560x1440":"2560x1440","2880x2160":"2880x2160","3240x2160":"3240x2160","3360x1440":"3360x1440","3840x2160":"3840x2160","5040x2160":"5040x2160"}])},789280,e=>{"use strict";var t=e.i(586404);function n(){return"u">typeof globalThis&&"Summarizer"in globalThis}function i(){return r()?.model??null}function r(){if("u"n.call(e,t),create:t=>i.call(e,t)}}function a(e,t){var n,i;let r,o,a="function"!=typeof(r=s(n=e,"text"===t?"canCreateTextSession":"canCreateGenericSession"))?null:e=>r.call(n,e),u="function"!=typeof(o=s(i=e,"text"===t?"createTextSession":"createGenericSession"))?null:e=>o.call(i,e);return a&&u?{availability:async e=>(function(e){switch(e){case"readily":return"available";case"after-download":return"downloadable";case"no":return"unavailable";default:return e}})(await a(e)),create:async e=>(function(e){if("function"==typeof e.promptStreaming){var t;return{prompt:e.prompt??(t=e.promptStreaming.bind(e),async(e,n)=>{let i=[];for await(let r of y(t(e,n)))i.push(r);return i.join("")}),promptStreaming:e.promptStreaming.bind(e),destroy:e.destroy?.bind(e)??(()=>{})}}if("function"==typeof e.prompt){let t=e.prompt.bind(e);return{prompt:t,promptStreaming:(e,n)=>l(t,e,n),destroy:e.destroy?.bind(e)??(()=>{})}}throw Error("LanguageModel session is missing prompt APIs")})(await u(e))}:null}async function*l(e,t,n){yield await e(t,n)}function s(e,t){let n=d(e);return n?Reflect.get(n,t)??null:null}function u(e,t){return"function"==typeof s(e,t)}function p(e){let t=d(e);if(!t)return[];try{return Object.getOwnPropertyNames(t).sort()}catch{return[]}}function d(e){return"object"!=typeof e&&"function"!=typeof e||null===e?null:e}async function c(){return n()?Summarizer.availability({type:"headline",format:"plain-text",length:"short"}):null}async function f(e){let t=i();return t?t.availability(e):null}function g(e){return e.lengthComputable&&e.total>0?Math.round(e.loaded/e.total*100):e.loaded>=0&&e.loaded<=1?Math.round(100*e.loaded):Math.max(0,Math.min(100,Math.round(e.loaded)))}async function m(e){return b(e,{sharedContext:"This is a chat message sent to an AI assistant. Generate a concise title."})}async function h(e,t){let n=e.trim();if(!n)return null;let i=await _({input:n,options:t}),r=[];for await(let e of i)r.push(e);let o=r.join("").trim();return o.length>0?o:null}async function b(e,t){if(!n())return null;let i=e.trim();if(!i||"available"!==await Summarizer.availability({type:"headline",format:"plain-text",length:t?.length??"short"}))return null;let r=await Summarizer.create({type:"headline",format:"plain-text",length:t?.length??"short",sharedContext:t?.sharedContext});try{let e=(await r.summarize(i)).trim();if(!e)return null;let n=t?.maxLength??80;return e.slice(0,n)}finally{r.destroy()}}async function*_({input:e,signal:t,options:n,promptOptions:r}){let o=i();if(!o)throw Error("LanguageModel API is not available");let a=await o.availability(n);if("available"!==a)throw Error(`LanguageModel is ${a}`);let l=await o.create({...n,signal:t});try{let n=l.promptStreaming(e,{...r,signal:t});yield*y(n)}finally{l.destroy()}}async function*y(e){let t="",n=null;for await(let i of v(e)){if(!i)continue;null===n&&t.length>0&&(n=i.startsWith(t));let e=!0===n&&t.length>0?i.slice(t.length):i;t=!0===n?i:`${t}${i}`,e.length>0&&(yield e)}}async function*v(e){if("getReader"in e){let t=e.getReader();try{let e=await t.read();for(;!e.done;)yield e.value,e=await t.read()}finally{t.releaseLock()}return}yield*e}e.s(["getLanguageModelAvailability",0,f,"getLanguageModelDiagnostics",0,function(){let e="u"{t.addEventListener("downloadprogress",t=>{t instanceof ProgressEvent&&e(g(t))})}}).then(t=>{e(100),t.destroy()},e=>{t(e)}):t(Error("LanguageModel API is not available"))},"triggerSummarizerDownload",0,function(e,t,i){n()?Summarizer.create({type:"headline",format:"plain-text",length:"short",signal:i,monitor:t=>{t.addEventListener("downloadprogress",t=>{e(g(t))})}}).then(t=>{e(100),t.destroy()},e=>{t(e)}):t(Error("Summarizer API is not available"))}])},260715,e=>{"use strict";function t(e){try{let t=new URL(e);if(t.origin!==location.origin)return`${location.origin}${t.pathname}${t.search}`}catch{}return e}e.s(["createPublicPlaygroundTransport",0,function(){return{fetchApi:(e,t)=>fetch(e,t),rewriteUrl:t}}])},698716,e=>{"use strict";let t=["queued","processing"];[...t],e.s(["COST_BACKFILL_DELAY_MS",0,2e3,"COST_BACKFILL_MAX_ATTEMPTS",0,5,"MAX_CONSECUTIVE_FAILURES",0,5,"MAX_POLL_ATTEMPTS",0,360,"POLL_INTERVAL_MS",0,5e3,"VIDEO_FETCH_DELAYS_MS",0,[500,1e3,2e3,2e3,3e3,3e3,5e3,5e3,5e3,5e3],"VIDEO_FETCH_MAX_RETRIES",0,10,"VIDEO_ITEM_IN_FLIGHT_STATUSES",0,t,"VIDEO_JOB_STATUS_LABELS",0,{queued:"Queued",processing:"Generating video",loading:"Downloading video"}])},748151,e=>{"use strict";let t={Quality:"quality",Budget:"budget",Fast:"fast"},n=["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"],i=["~google/gemini-flash-latest","deepseek/deepseek-v4-flash","~moonshotai/kimi-latest"],r=["~google/gemini-flash-latest","deepseek/deepseek-v4-flash","~moonshotai/kimi-latest"],o=[{id:t.Quality,label:"Quality",emoji:"🏆",permaslugs:n},{id:t.Budget,label:"Budget",emoji:"💰",permaslugs:i},{id:t.Fast,label:"Fast",emoji:"⚡",permaslugs:r}],a=t.Quality;e.s(["BUDGET_PANEL",0,i,"DEFAULT_FUSION_ANALYST_SLUG",0,"~anthropic/claude-opus-latest","DEFAULT_MODEL_SET_ID",0,a,"FAST_FUSION_ANALYST_SLUG",0,"anthropic/claude-sonnet-5-20260630","FAST_PANEL",0,r,"FUSION_MODEL_SETS",0,o,"ModelSetId",0,t,"QUALITY_PANEL",0,n])},669804,e=>{"use strict";e.i(723157);var t=e.i(203088),n=e.i(958969),i=e.i(461790),r=e.i(748151);t.FusionPresetSlug.GeneralHigh,r.QUALITY_PANEL,r.DEFAULT_FUSION_ANALYST_SLUG,t.FusionPresetSlug.GeneralBudget,r.BUDGET_PANEL,r.DEFAULT_FUSION_ANALYST_SLUG,t.FusionPresetSlug.GeneralFast,r.FAST_PANEL,r.FAST_FUSION_ANALYST_SLUG;let o={[n.RouterModel.FusionFlash]:t.FusionPresetSlug.GeneralFast},a=[n.RouterModel.Fusion,...Object.keys(o)];e.s(["isFusionRouterSlug",0,function(e){return a.includes((0,i.getStandardSlug)(e.toLowerCase()))}],669804)},122901,e=>{"use strict";let t=e=>crypto.getRandomValues(new Uint8Array(e));var n,i=((n={}).Generate="gen",n.Embeddings="gen-emb",n.Character="char",n.Message="msg",n.Artifact="art",n.Generation="art-gen",n.ArtifactFile="art-file",n.ArtifactVersion="art-ver",n.ArtifactFileContent="art-file-cont",n.AssistantMessageItem="a-msg-item",n.Item="item",n.Chat="orc",n.StripeAddCredits="sac",n.VideoGeneration="gen-vid",n.Rerank="gen-rerank",n.TTS="gen-tts",n.Transcription="gen-stt",n.ImageGeneration="gen-img",n.Batch="batch",n.BatchGeneration="gen-batch",n.ServerToolCall="gen-tool",n.ServerToolCheckpoint="gen-tool-cp",n.Realtime="gen-rt",n.RealtimeCheckpoint="gen-rt-cp",n.Request="req",n);let r=((e,n=21)=>((e,t,n)=>{let i=256-256%e.length;if(256===i){let i=e.length-1;return (r=t)=>{if(!r)return"";let o="";for(;;){let t=n(r),a=r;for(;a--;)if((o+=e[t[a]&i]).length>=r)return o}}}let r=Math.ceil(409.6*t/i);return (o=t)=>{if(!o)return"";let a="";for(;;){let t=n(r),l=r;for(;l--;)if(t[l]=o)return a}}})(e,0|n,t))("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",20),o=/^[0-9a-zA-Z]{20}$/;e.s(["ORIDType",()=>i,"isValidOrid",0,function(e,t){let n=`${t}-`;if(!e.startsWith(n))return!1;let i=e.slice(n.length),r=i.indexOf("-");if(-1===r)return!1;let a=i.slice(0,r),l=i.slice(r+1),s=Number.parseInt(a,10);return!Number.isNaN(s)&&!(s<=0)&&o.test(l)},"orid",0,function(e){let t=Math.floor(Date.now()/1e3);return`${e}-${t}-${r()}`}],122901)},284175,e=>{"use strict";var t=e.i(526073),n=e.i(634723),i=e.i(609266),r=e.i(976927),o=e.i(204067),a=e.i(796805);let l=a.z.object({model:a.z.string().openapi({description:"The image generation model to use",example:"bytedance-seed/seedream-4.5"}),prompt:a.z.string().trim().min(1).openapi({description:"Text description of the desired image",example:"a red panda astronaut floating in space, studio lighting"}),n:(0,o.zInt)().min(1).max(10).optional().openapi({description:"Upper bound on the number of images to generate (1-10). Providers may return fewer images, and providers that only support single-image generation reject n > 1.",example:1}),quality:a.z.nativeEnum(t.ImageQuality).optional().openapi({description:"Rendering quality. Providers without a quality knob ignore this.",example:"high"}),background:a.z.enum(["auto","transparent","opaque"]).optional().openapi({description:"Background treatment. `transparent` requires an output_format that supports alpha (png or webp).",example:"auto"}),output_format:a.z.enum(["png","jpeg","webp"]).optional().openapi({description:"Encoding of the returned image bytes.",example:"png"}),output_compression:(0,o.zInt)().min(0).max(100).optional().openapi({description:"Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.",example:100}),user:a.z.string().optional().openapi({description:"A stable identifier for your end-users. Used to help detect and prevent abuse. Never sent to providers verbatim: for providers whose data policy requires user IDs, it is folded into a hashed, per-account upstream user identifier.",example:"end-user-abc123"})}),s=i.ProviderPreferencesSchema.pick({allow_fallbacks:!0,ignore:!0,only:!0,order:!0,sort:!0}).extend({options:r.ProviderOptionsSchema.optional().openapi({description:"Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.",example:{"black-forest-labs":{steps:40,guidance:3}}})}).openapi("ImageGenerationProviderPreferences",{description:"Provider routing preferences and provider-specific passthrough configuration.",example:{only:["google-ai-studio"],allow_fallbacks:!1}}),u=l.extend({output_format:a.z.enum(["png","jpeg","webp","svg"]).optional().openapi({description:"Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.",example:"png"}),aspect_ratio:a.z.nativeEnum(t.ImageAspectRatio).optional().openapi({description:"Normalized aspect ratio of the generated image. Providers clamp to their supported subset.",example:"16:9"}),resolution:a.z.nativeEnum(t.ImageGenerationResolution).optional().openapi({description:"Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.",example:"2K"}),size:a.z.string().optional().openapi({description:'Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.',example:"2K"}),seed:(0,o.zInt)().optional().openapi({description:"If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers."}),stream:a.z.boolean().optional().openapi({description:"If true, partial images are streamed as SSE events as they become available. Only supported by providers with native streaming (currently OpenAI). Non-streaming providers ignore this flag and return a buffered response."}),input_references:a.z.array(n.OpenAIChatCompletionsContentPartImageSchema).max(16).optional().openapi({description:"Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs."}),provider:s.optional()}).openapi("ImageGenerationRequest",{description:"Image generation request input",example:{model:"bytedance-seed/seedream-4.5",prompt:"a red panda astronaut floating in space, studio lighting"}});e.s(["ImageGenerationRequestSchema",0,u])},634723,e=>{"use strict";e.i(204067);var t=e.i(796805);let n=t.z.object({type:t.z.literal("text"),text:t.z.string()}).openapi("PredictionContentText",{description:"Text content part for a predicted output.",example:{type:"text",text:"Expected response"}}),i=t.z.object({type:t.z.literal("image_url"),image_url:t.z.object({url:t.z.string()})}).openapi("ContentPartImage",{example:{type:"image_url",image_url:{url:"https://example.com/image.png"}}});e.s(["OpenAIChatCompletionsContentPartImageSchema",0,i,"OpenAIChatCompletionsContentPartTextSchema",0,n])},555105,e=>{"use strict";e.i(687421),e.i(928803);var t=e.i(13589),n=e.i(217631);function i(e){return e.includes("/")?e.split("/")[0]:e}function r(e){if(!e.includes("/"))return null;let i=e.split("/").at(-1);return(0,n.isMember)(i,t.NonDefaultServiceTier)?i:null}e.s(["getDefaultRowSlugsByModel",0,function(e){let t=new Map;for(let n of e){if(void 0!==n.service_tier)continue;let e=t.get(n.model.permaslug)??new Set;e.add(n.provider_slug),t.set(n.model.permaslug,e)}return t},"getProviderBaseSlug",0,i,"isEndpointProviderInSet",0,function(e,n,o){return(function(e,n){let o=e.provider_slug;if(void 0===e.service_tier){let e,t,n=null===(e=r(o))?null:`${i(o)}/${e}`;return[...new Set([o,...null===n?[]:[n],null===(t=r(o))?o:o.slice(0,o.length-t.length-1),i(o)])]}let a=o.split("/").slice(0,-1).join("/");return[...new Set([...(function(e){if(void 0===e.service_tier)return[e.provider_slug];let n=e.provider_slug.split("/").slice(0,-1).join("/"),r=i(e.provider_slug),o=(0,t.getServiceTierSpellings)(e.service_tier);return[...new Set([...o.map(e=>`${n}/${e}`),...o.map(e=>`${r}/${e}`)])].filter(e=>!e.startsWith("/"))})(e).filter(e=>!n?.has(e)),...""===a?[]:[a],i(o)])]})(e,o).some(e=>n.has(e))}])},976927,e=>{"use strict";var t=e.i(687421),n=e.i(555105);e.i(204067);var i=e.i(796805);let r=i.z.record(i.z.string(),i.z.unknown()),o=[...Object.values(t.providerSlugMap),...t.deprecatedProviderSlugs],a=i.z.preprocess(e=>!e||"object"!=typeof e||Array.isArray(e)?e:Object.fromEntries(Object.entries(e).filter(([e])=>{var i;return i=e,void 0!==(0,t.getProviderFromSlug)((0,n.getProviderBaseSlug)(i))})),i.z.object(Object.fromEntries(o.map(e=>[e,r.optional()]))).partial().catchall(r)).openapi("ProviderOptions",{description:"Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.",example:{openai:{max_tokens:1e3}}});e.s(["ProviderOptionsSchema",0,a])},645907,e=>{"use strict";var t=e.i(475968),n=e.i(634723),i=e.i(976927),r=e.i(204067),o=e.i(796805),a=e.i(376100);let l=o.z.nativeEnum(t.VideoFrameType),s=n.OpenAIChatCompletionsContentPartImageSchema.extend({frame_type:l.openapi({description:"Whether this image represents the first or last frame of the video",example:"first_frame"})}).openapi("FrameImage",{example:{type:"image_url",image_url:{url:"https://example.com/image.png"},frame_type:"first_frame"}}),u=o.z.object({type:o.z.literal("audio_url"),audio_url:o.z.object({url:o.z.string()})}).openapi("ContentPartAudio",{example:{type:"audio_url",audio_url:{url:"https://example.com/audio.mp3"}}}),p=o.z.object({type:o.z.literal("video_url"),video_url:o.z.object({url:o.z.string()})}).openapi("ContentPartVideo",{example:{type:"video_url",video_url:{url:"https://example.com/clip.mp4"}}}),d=o.z.discriminatedUnion("type",[n.OpenAIChatCompletionsContentPartImageSchema,u,p]).openapi("InputReference",{description:"A reference asset used to guide video generation. Image references are supported by all providers; audio and video references are only honored by providers that support them (including BytePlus Seedance generation 2 and newer).",example:{type:"image_url",image_url:{url:"https://example.com/image.png"}},discriminator:{propertyName:"type",mapping:{image_url:"#/components/schemas/ContentPartImage",audio_url:"#/components/schemas/ContentPartAudio",video_url:"#/components/schemas/ContentPartVideo"}}}),c=o.z.object({prompt:o.z.string().optional().openapi({description:"Text prompt describing the video to generate. Optional for models that support generating a video from image input alone; required by all other models.",example:"A serene mountain landscape at sunset"}),model:o.z.string(),duration:o.z.number().int().min(1).optional().openapi({description:"Duration of the generated video in seconds",example:8}),upscale_factor:o.z.number().finite().positive().optional().openapi({description:"Upscale factor for video upscaling models only. This parameter is not supported by video generation models.",example:2}),creativity:o.z.number().int().optional().openapi({description:"Creativity level for video upscaling models only. This parameter is not supported by video generation models.",example:1}),resolution:o.z.nativeEnum(t.VideoGenerationResolution).optional().openapi({description:"Resolution of the generated video",example:"720p"}),aspect_ratio:o.z.nativeEnum(t.VideoAspectRatio).optional().openapi({description:"Aspect ratio of the generated video",example:"16:9"}),size:o.z.string().optional().openapi({description:'Exact pixel dimensions of the generated video in "WIDTHxHEIGHT" format (e.g. "1280x720"). Interchangeable with resolution + aspect_ratio.',example:"1280x720"}),input_references:o.z.array(d).optional().openapi({description:"Reference assets to guide video generation. Accepts image, audio, and video references. Audio and video references are only honored by providers that support them (including BytePlus Seedance generation 2 and newer); other providers use image references and ignore the rest."}),frame_images:o.z.array(s).optional().openapi({description:"Images to use as the first and/or last frame of the generated video. Each image must specify a frame_type of first_frame or last_frame."}),generate_audio:o.z.boolean().optional().openapi({description:"Whether to generate audio alongside the video. Defaults to the endpoint's generate_audio capability flag, false if not set.",example:!0}),seed:o.z.number().int().optional().openapi({description:"If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers."}),callback_url:o.z.string().url().optional().openapi({description:"URL to receive a webhook notification when the video generation job completes. Overrides the workspace-level default callback URL if set. Must be HTTPS.",example:"https://example.com/webhook"}),provider:o.z.object({options:i.ProviderOptionsSchema.optional().openapi({description:"Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.",example:{"google-vertex":{output_config:{effort:"low"}}}})}).optional().openapi({description:"Provider-specific passthrough configuration"})}).openapi("VideoGenerationRequest",{example:{model:"google/veo-3.1",prompt:"A serene mountain landscape at sunset",duration:8,resolution:"720p",aspect_ratio:"16:9"}}),f=o.z.object({cost:(0,r.zDouble)().nullish().openapi({description:"The cost of the video generation in USD."}),is_byok:o.z.boolean().optional().openapi({description:"Whether the request was made using a Bring Your Own Key configuration."})}).openapi("VideoGenerationUsage",{description:"Usage and cost information for the video generation. Available once the job has completed.",example:{cost:.5,is_byok:!1}}),g=o.z.object({id:o.z.string(),generation_id:o.z.string().optional().openapi({description:"The generation ID associated with this video generation job. Available once the job has been processed."}),polling_url:o.z.string(),status:o.z.nativeEnum(a.AsyncJobStatus),unsigned_urls:o.z.array(o.z.string()).optional(),usage:f.optional(),error:o.z.string().optional()}).openapi("VideoGenerationResponse",{example:{id:"job-abc123",generation_id:"gen-xyz789",polling_url:"/api/v1/videos/job-abc123",status:"pending"}});e.s(["VideoGenerationRequestSchema",0,c,"VideoGenerationResponseSchema",0,g])},286048,e=>{"use strict";var t,n=((t={}).Idle="idle",t.Generating="generating",t.Modified="modified",t.New="new",t.Removed="removed",t);e.s(["FileTreeStatus",()=>n])},22022,e=>{"use strict";var t=e.i(358390),n=e.i(963);let i="chrome/gemini-nano",r=`/chat?models=${i}`,o="Gemini Nano";e.s(["CHROME_GEMINI_NANO_CHAT_URL",0,r,"CHROME_GEMINI_NANO_LANGUAGE_MODEL_OPTIONS",0,{expectedInputs:[{type:"text",languages:["en"]},{type:"image"},{type:"audio"}],expectedOutputs:[{type:"text",languages:["en"]}]},"CHROME_GEMINI_NANO_MODEL_SLUG",0,i,"getChromeGeminiNanoCharacterDefaults",0,function(){return{name:o,description:"You are Gemini Nano running locally in Chrome. Answer directly and helpfully in the current browser session. Keep responses concise unless the user asks for detail, and mention when a request needs server-side tools, uploaded files, or external network access that this local browser model cannot use.",includeDefaultSystemPrompt:!1}},"getChromeGeminiNanoModelInfo",0,function(){return{slug:i,permaslug:i,hf_slug:null,created_at:"2026-06-09T00:00:00.000Z",updated_at:null,hf_updated_at:null,name:o,short_name:o,author:"google",author_display_name:"Chrome",description:"Runs Gemini Nano locally in Chrome through the browser Prompt API. Responses are generated in-browser for the current session.",model_version_group_id:null,context_length:4096,input_modalities:[n.InputModality.Text,n.InputModality.Image,n.InputModality.Audio],output_modalities:[n.OutputModality.Text],has_text_output:!0,instruct_type:null,group:t.ModelGroup.Gemini,default_system:null,default_stops:[],hidden:!1,router:null,warning_message:null,promotion_message:null,routing_error_message:null,required_attestation_types:[],is_private:!1,owner_clerk_user_id:null,supports_reasoning:!1,reasoning_config:null,features:null,default_parameters:null,default_order:[],quick_start_example_type:null,is_trainable_text:null,is_trainable_image:null,knowledge_cutoff:null,limit_rpm:null,limit_rpd:null,supported_tts_voices:null,endpoint:null}},"isChromeGeminiNanoAvailableInCurrentEnvironment",0,function(e){return e},"isChromeGeminiNanoModelSlug",0,function(e){return e===i}])},391927,e=>{"use strict";var t=e.i(586404);e.s(["serializeAdvisorRoster",0,function(e){return e?e.flatMap(e=>{let n=e.name?.trim(),i=(0,t.definedValues)({name:n||void 0,model:e.model||void 0,instructions:e.instructions||void 0,forward_transcript:e.forward_transcript,stream:e.stream,max_completion_tokens:e.max_completion_tokens,reasoning:e.reasoning,temperature:e.temperature});return 0===Object.keys(i).length?[]:[{type:"openrouter:advisor",parameters:i}]}):[]},"serializeSubagentRoster",0,function(e){return e?e.flatMap(e=>{let n=e.name?.trim(),i=(0,t.definedValues)({name:n||void 0,model:e.model||void 0,instructions:e.instructions||void 0,tools:e.tools&&e.tools.length>0?e.tools:void 0,max_tool_calls:e.max_tool_calls,max_completion_tokens:e.max_completion_tokens,reasoning:e.reasoning,temperature:e.temperature});return 0===Object.keys(i).length?[]:[{type:"openrouter:subagent",parameters:i}]}):[]}])},376100,e=>{"use strict";var t=e.i(204067),n=e.i(796805);let i={VideoGeneration:"video_generation",Batch:"batch",BatchStaging:"batch_staging"};i.Batch,i.BatchStaging;let r={Pending:"pending",InProgress:"in_progress",Completed:"completed",Failed:"failed",Cancelled:"cancelled",Expired:"expired"};r.Pending,r.InProgress,r.Completed,r.Failed,r.Cancelled,r.Expired,n.z.object({billable_entity_id:n.z.string(),workspace_id:n.z.string().optional(),job_type:n.z.nativeEnum(i),job_id:n.z.string(),model:n.z.string().optional(),provider_name:n.z.string().optional(),status:n.z.nativeEnum(r),provider_job_id:n.z.string().optional(),callback_url:n.z.string().optional(),estimated_cost:n.z.string(),is_byok:n.z.boolean().optional(),started_at:n.z.string(),api_key_id:(0,t.zInt)().optional(),provider_api_key_id:(0,t.zInt)().optional(),creator_user_id:n.z.string().optional(),credit_pool_id:n.z.string().optional(),result:n.z.unknown().optional(),generation_id:n.z.string().optional(),usage:n.z.record(n.z.string(),n.z.unknown()).optional(),request_id:n.z.string().optional(),api_path:n.z.string().optional(),endpoint_id:n.z.string().optional(),input_gcs_uri:n.z.string().optional(),output_gcs_uri:n.z.string().optional(),total_request_count:(0,t.zInt)().nonnegative().optional(),succeeded_request_count:(0,t.zInt)().nonnegative().optional(),failed_request_count:(0,t.zInt)().nonnegative().optional(),cancelled_request_count:(0,t.zInt)().nonnegative().optional(),completion_window:n.z.string().optional(),expires_at:n.z.string().optional(),upstream_input_file_id:n.z.string().optional(),upstream_output_file_id:n.z.string().optional()}),Object.keys(n.z.object({job_id:n.z.string(),billable_entity_id:n.z.string(),workspace_id:n.z.string().nullish(),status:n.z.nativeEnum(r),result:n.z.unknown(),provider_name:n.z.string().nullable(),model:n.z.string().nullable(),provider_job_id:n.z.string().nullable(),generation_id:n.z.string().nullable(),usage:n.z.record(n.z.string(),n.z.unknown()).nullable(),provider_api_key_id:n.z.coerce.number().int().nullable(),updated_at:n.z.string(),request_id:n.z.string().nullable(),api_path:n.z.string().nullable(),endpoint_id:n.z.string().nullable(),input_gcs_uri:n.z.string().nullable(),output_gcs_uri:n.z.string().nullable(),total_request_count:n.z.coerce.number().int().nonnegative().nullable(),succeeded_request_count:n.z.coerce.number().int().nonnegative().nullable(),failed_request_count:n.z.coerce.number().int().nonnegative().nullable(),cancelled_request_count:n.z.coerce.number().int().nonnegative().nullable(),completion_window:n.z.string().nullable(),expires_at:n.z.string().nullable(),upstream_input_file_id:n.z.string().nullable(),upstream_output_file_id:n.z.string().nullable()}).shape).join(", "),n.z.object({billable_entity_id:n.z.string(),job_id:n.z.string(),job_type:n.z.string(),model:n.z.string().nullable(),provider_name:n.z.string().nullable(),status:n.z.nativeEnum(r),started_at:n.z.string(),inserted_at:n.z.string(),updated_at:n.z.string(),estimated_cost:n.z.string().nullable(),usage:n.z.record(n.z.string(),n.z.unknown()).nullable(),provider_job_id:n.z.string().nullable(),generation_id:n.z.string().nullable(),result:n.z.unknown(),request_id:n.z.string().nullable(),api_path:n.z.string().nullable(),endpoint_id:n.z.string().nullable(),input_gcs_uri:n.z.string().nullable(),output_gcs_uri:n.z.string().nullable(),total_request_count:n.z.coerce.number().int().nonnegative().nullable(),succeeded_request_count:n.z.coerce.number().int().nonnegative().nullable(),failed_request_count:n.z.coerce.number().int().nonnegative().nullable(),cancelled_request_count:n.z.coerce.number().int().nonnegative().nullable(),completion_window:n.z.string().nullable(),expires_at:n.z.string().nullable(),upstream_input_file_id:n.z.string().nullable(),upstream_output_file_id:n.z.string().nullable()});let o=n.z.object({job_id:n.z.string(),job_type:n.z.string(),model:n.z.string().nullable(),provider_name:n.z.string().nullable(),status:n.z.nativeEnum(r),started_at:n.z.string(),estimated_cost:(0,t.zDouble)().nullable(),usage:(0,t.zDouble)().nullable(),generation_id:n.z.string().nullable(),error_message:n.z.string().nullable(),result_urls:n.z.array(n.z.string()).nullable(),request_id:n.z.string().nullable(),total_request_count:n.z.number().int().nonnegative().nullable(),succeeded_request_count:n.z.number().int().nonnegative().nullable(),failed_request_count:n.z.number().int().nonnegative().nullable(),cancelled_request_count:n.z.number().int().nonnegative().nullable(),completion_window:n.z.string().nullable(),expires_at:n.z.string().nullable()});n.z.object({data:n.z.array(o)});let a=n.z.object({total_estimated_cost:(0,t.zDouble)(),in_flight_async_job_count:n.z.number().int().nonnegative().optional()});n.z.object({data:a}),e.s(["AsyncJobStatus",0,r,"AsyncJobType",0,i,"PendingJobCostSummarySchema",0,a,"PublicAsyncJobSchema",0,o])}]); //# sourceMappingURL=00k46hqn1u2gy.js.map //# chunkId=01a090e3-19db-7b20-bf43-675096be7f0d