varZ3=t=>{throwTypeError(t)};varsv=(t,e,r)=>e.has(t)||Z3("Cannot "+r);varba=(t,e,r)=>(sv(t,e,"read from private field"),r?r.call(t):e.get(t)),vl=(t,e,r)=>e.has(t)?Z3("Cannot add the same private member more than once"):einstanceofWeakSet?e.add(t):e.set(t,r),_s=(t,e,r,n)=>(sv(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),yl=(t,e,r)=>(sv(t,e,"access private method"),r);varJ3=(t,e,r,n)=>({set_(a){_s(t,e,a,r)},get_(){returnba(t,e,n)}});varYf=Array.isArray,AV=Array.prototype.indexOf,Tp=Array.prototype.includes,tS=Array.from,K2=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,H8=Object.getOwnPropertyDescriptors,Y8=Object.prototype,RV=Array.prototype,rS=Object.getPrototypeOf,eD=Object.isExtensible;functionGh(t){returntypeoft=="function"}constGe=()=>{};functionOV(t){returnt()}functionRA(t){for(vare=0;e<t.length;e++)t[e]()}functionV8(){vart,e,r=newPromise((n,a)=>{t=n,e=a});return{promise:r,resolve:t,reject:e}}functionNV(t,e,r=!1){returnt===void0?r?e():e:t}functionj2(t,e){if(Array.isArray(t))returnt;if(!(Symbol.iteratorint))returnArray.from(t);constr=[];for(constnoft)if(r.push(n),r.length===e)break;returnr}constdi=2,ff=4,Vf=8,Q2=1<<24,Kl=16,Jc=32,Xu=64,X2=128,Do=512,Wi=1024,ji=2048,eu=4096,io=8192,xc=16384,Wf=32768,zl=65536,OA=1<<17,Z2=1<<18,uh=1<<19,W8=1<<20,Oc=1<<25,th=32768,NA=1<<21,J2=1<<22,Du=1<<23,Fl=Symbol("$state"),eO=Symbol("legacy props"),IV=Symbol(""),Jh=newclassextendsError{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xV=1,nS=3,tu=8;functionK8(t){thrownewError("https://svelte.dev/e/experimental_async_required")}functionKp(t){thrownewError("https://svelte.dev/e/lifecycle_outside_component")}functionDV(){thrownewError("https://svelte.dev/e/missing_context")}functionMV(){thrownewError("https://svelte.dev/e/async_derived_orphan")}functionkV(t){thrownewError("https://svelte.dev/e/effect_in_teardown")}functionPV(){thrownewError("https://svelte.dev/e/effect_in_unowned_derived")}functionLV(t){thrownewError("https://svelte.dev/e/effect_orphan")}functionFV(){thrownewError("https://svelte.dev/e/effect_update_depth_exceeded")}functionBV(){thrownewError("https://svelte.dev/e/fork_discarded")}functionUV(){thrownewError("https://svelte.dev/e/fork_timing")}functionGV(){thrownewError("https://svelte.dev/e/get_abort_signal_outside_reaction")}functionqV(){thrownewError("https://svelte.dev/e/hydration_failed")}functionj8(t){thrownewError("https://svelte.dev/e/lifecycle_legacy_only")}functionzV(t){thrownewError("https://svelte.dev/e/props_invalid_value")}function$V(){thrownewError("https://svelte.dev/e/state_descriptors_fixed")}functionHV(){thrownewError("https://svelte.dev/e/state_prototype_fixed")}functionYV(){thrownewError("https://svelte.dev/e/state_unsafe_mutation")}functionVV(){thrownewError("https://svelte.dev/e/svelte_boundary_reset_onerror")}constWV=1,KV=2,Q8=4,jV=8,QV=16,XV=1,ZV=2,JV=4,eW=8,tW=16,rW=1,nW=2,aW=4,iW=1,sW=2,X8="[",aS="[!",tO="]",rh={},bi=Symbol(),oW="http://www.w3.org/1999/xhtml",lW="http://www.w3.org/2000/svg",Z8="@attach";functioncW(t){console.warn("https://svelte.dev/e/hydratable_missing_but_expected")}functionKf(t){console.warn("https://svelte.dev/e/hydration_mismatch")}functionuW(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}functiondW(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}letNr=!1;functioncs(t){Nr=t}lettn;functionGa(t){if(t===null)throwKf(),rh;returntn=t}functionLo(){returnGa(uo(tn))}functionY(t){if(Nr){if(uo(tn)!==null)throwKf(),rh;tn=t}}functionet(t=1){if(Nr){for(vare=t,r=tn;e--;)r=uo(r);tn=r}}functionL1(t=!0){for(vare=0,r=tn;;){if(r.nodeType===tu){varn=r.data;if(n===tO){if(e===0)returnr;e-=1}else(n===X8||n===aS)&&(e+=1)}vara=uo(r);t&&r.remove(),r=a}}functionJ8(t){if(!t||t.nodeType!==tu)throwKf(),rh;returnt.data}functioneF(t){returnt===this.v}functionrO(t,e){returnt!=t?e==e:t!==e||t!==null&&typeoft=="object"||typeoft=="function"}functiontF(t){return!rO(t,this.v)}letjp=!1;functionhW(){jp=!0}constpW=[];functionop(t,e=!1,r=!1){returnb1(t,newMap,"",pW,null,r)}functionb1(t,e,r,n,a=null,i=!1){if(typeoft=="object"&&t!==null){vars=e.get(t);if(s!==void0)returns;if(tinstanceofMap)returnnewMap(t);if(tinstanceofSet)returnnewSet(t);if(Yf(t)){varo=Array(t.length);e.set(t,o),a!==null&&e.set(a,o);for(varl=0;l<t.length;l+=1){varc=t[l];lint&&(o[l]=b1(c,e,r,n,null,i))}returno}if(rS(t)===Y8){o={},e.set(t,o),a!==null&&e.set(a,o);for(varuint)o[u]=b1(t[u],e,r,n,null,i);returno}if(tinstanceofDate)returnstructuredClone(t);if(typeoft.toJSON=="function"&&!i)returnb1(t.toJSON(),e,r,n,t)}if(tinstanceofEventTarget)returnt;try{returnstructuredClone(t)}catch{returnt}}letqn=null;functionCp(t){qn=t}functionmW(){constt={};return[()=>(iS(t)||DV(),$l(t)),e=>Zu(t,e)]}function$l(t){returnsS().get(t)}functionZu(t,e){returnsS().set(t,e)Line truncated
`," ")),e.hidden===!1&&(e.hidden=void 0,delete e.hidden),e.disabled===!1&&(e.disabled=void 0,delete e.disabled),e}const WQ={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},KQ=FO(WQ),LB=typeof window<"u"?window:void 0;function jQ(t){let e=t.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var QQ=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],XQ=["difference","intersection","symmetricDifference","union"],DD=!1;class ds extends Set{#e=new Map;#t=be(0);#r=be(0);#n=il||-1;constructor(e){if(super(),e){for(var r of e)super.add(r);this.#r.v=super.size}DD||this.#a()}#i(e){return il===this.#n?be(e):Uc(e)}#a(){DD=!0;var e=ds.prototype,r=Set.prototype;for(const n of QQ)e[n]=function(...a){return p(this.#t),r[n].apply(this,a)};for(const n of XQ)e[n]=function(...a){p(this.#t);var i=r[n].apply(this,a);return new ds(i)}}has(e){var r=super.has(e),n=this.#e,a=n.get(e);if(a===void 0){if(!r)return p(this.#t),!1;a=this.#i(!0),n.set(e,a)}return p(a),r}add(e){return super.has(e)||(super.add(e),k(this.#r,super.size),to(this.#t)),this}delete(e){var r=super.delete(e),n=this.#e,a=n.get(e);return a!==void 0&&(n.delete(e),k(a,!1)),r&&(k(this.#r,super.size),to(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var r of e.values())k(r,!1);e.clear(),k(this.#r,0),to(this.#t)}}keys(){return this.values()}values(){return p(this.#t),super.values()}entries(){return p(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return p(this.#r)}}class xi extends Map{#e=new Map;#t=be(0);#r=be(0);#n=il||-1;constructor(e){if(super(),e){for(var[r,n]of e)super.set(r,n);this.#r.v=super.size}}#i(e){return il===this.#n?be(e):Uc(e)}has(e){var r=this.#e,n=r.get(e);if(n===void 0){var a=super.get(e);if(a!==void 0)n=this.#i(0),r.set(e,n);else return p(this.#t),!1}return p(n),!0}forEach(e,r){this.#a(),super.forEach(e,r)}get(e){var r=this.#e,n=r.get(e);if(n===void 0){var a=super.get(e);if(a!==void 0)n=this.#i(0),r.set(e,n);else{p(this.#t);return}}return p(n),super.get(e)}set(e,r){var n=this.#e,a=n.get(e),i=super.get(e),s=super.set(e,r),o=this.#t;if(a===void 0)a=this.#i(0),n.set(e,a),k(this.#r,super.size),to(o);else if(i!==r){to(a);var l=o.reactions===null?null:new Set(o.reactions),c=l===null||!a.reactions?.every(u=>l.has(u));c&&to(o)}return s}delete(e){var r=this.#e,n=r.get(e),a=super.delete(e);return n!==void 0&&(r.delete(e),k(this.#r,super.size),k(n,-1),to(this.#t)),a}clear(){if(super.size!==0){super.clear();var e=this.#e;k(this.#r,0);for(var r of e.values())k(r,-1);to(this.#t),e.clear()}}#a(){p(this.#t);var e=this.#e;if(this.#r.v!==e.size){for(var r of super.keys())if(!e.has(r)){var n=this.#i(0);e.set(r,n)}}for([,n]of this.#e)p(n)}keys(){return p(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return p(this.#r),super.size}}class ZQ{#e;#t;constructor(e,r){this.#e=e,this.#t=Ju(r)}get current(){return this.#t(),this.#e()}}const JQ=/\(.+\)/,eX=new Set(["all","print","screen","and","or","not","only"]);class FB extends ZQ{constructor(e,r){let n=JQ.test(e)||e.split(/[\s,]+/).some(i=>eX.has(i.trim()))?e:`(${e})`;const a=window.matchMedia(n);super(()=>a.matches,i=>Kr(a,"change",i))}}let tX=class{#e;#t;constructor(e={}){const{window:r=LB,document:n=r?.document}=e;r!==void 0&&(this.#e=n,this.#t=Ju(a=>{const i=Kr(r,"focusin",a),s=Kr(r,"focusout",a);return()=>{i(),s()}}))}get current(){return this.#t?.(),this.#e?jQ(this.#e):null}};new tX;function BB(t){return typeof t=="function"}function rX(t,e){if(BB(t)){const n=t();return n===void 0?e:n}return t===void 0?e:t}let ka=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return iS(this.#t)}get(){const e=$l(this.#t);if(e===void 0)throw new Error(`Context"${this.#e}"notfound`);return e}getOr(e){const r=$l(this.#t);return r===void 0?e:r}set(e){return Zu(this.#t,e)}};function vS(t,e){let r=be(null);const n=F(()=>rX(e,250));function a(...i){if(p(r))p(r).timeout&&clearTimeout(p(r).timeout);else{let s,o;const l=new Promise((c,u)=>{s=c,o=u});k(r,{timeout:null,runner:null,promise:l,resolve:s,reject:o},!0)}return p(r).runner=async()=>{if(!p(r))return;const s=p(r);k(r,null);try{s.resolve(await t.apply(this,i))}catch(o){s.reject(o)}},p(r).timeout=setTimeout(p(r).runner,p(n)),p(r).promise}return a.cancel=async()=>{(!p(r)||p(r).timeout===null)&&(await new Promise(i=>setTimeout(i,0)),!p(r)||p(r).timeout===null)||(clearTimeout(p(r).timeout),p(r).reject("Cancelled"),k(r,null))},a.runScheduledNow=async()=>{(!p(r)||!p(r).timeout)&&(await new Promise(i=>setTimeout(i,0)),!p(r)||!p(r).timeout)||(clearTimeout(p(r).timeout),p(r).timeout=null,await p(r).runner?.())},Object.defineProperty(a,"pending",{enumerable:!0,get(){return!!p(r)?.timeout}}),a}function nX(t,e){switch(t){c
Line truncated
varZ3=t=>{throwTypeError(t)};varov=(t,e,r)=>e.has(t)||Z3("Cannot "+r);varba=(t,e,r)=>(ov(t,e,"read from private field"),r?r.call(t):e.get(t)),vl=(t,e,r)=>e.has(t)?Z3("Cannot add the same private member more than once"):einstanceofWeakSet?e.add(t):e.set(t,r),_s=(t,e,r,n)=>(ov(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),yl=(t,e,r)=>(ov(t,e,"access private method"),r);varJ3=(t,e,r,n)=>({set_(a){_s(t,e,a,r)},get_(){returnba(t,e,n)}});varYf=Array.isArray,AV=Array.prototype.indexOf,Tp=Array.prototype.includes,tS=Array.from,j2=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,H8=Object.getOwnPropertyDescriptors,Y8=Object.prototype,RV=Array.prototype,rS=Object.getPrototypeOf,eD=Object.isExtensible;functionGh(t){returntypeoft=="function"}constqe=()=>{};functionOV(t){returnt()}functionOA(t){for(vare=0;e<t.length;e++)t[e]()}functionV8(){vart,e,r=newPromise((n,a)=>{t=n,e=a});return{promise:r,resolve:t,reject:e}}functionNV(t,e,r=!1){returnt===void0?r?e():e:t}functionQ2(t,e){if(Array.isArray(t))returnt;if(!(Symbol.iteratorint))returnArray.from(t);constr=[];for(constnoft)if(r.push(n),r.length===e)break;returnr}constdi=2,ff=4,Vf=8,X2=1<<24,Kl=16,Jc=32,Xu=64,Z2=128,Do=512,Wi=1024,ji=2048,eu=4096,io=8192,xc=16384,Wf=32768,zl=65536,NA=1<<17,J2=1<<18,uh=1<<19,W8=1<<20,Oc=1<<25,th=32768,IA=1<<21,eO=1<<22,Du=1<<23,Fl=Symbol("$state"),tO=Symbol("legacy props"),IV=Symbol(""),Jh=newclassextendsError{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xV=1,nS=3,tu=8;functionK8(t){thrownewError("https://svelte.dev/e/experimental_async_required")}functionKp(t){thrownewError("https://svelte.dev/e/lifecycle_outside_component")}functionDV(){thrownewError("https://svelte.dev/e/missing_context")}functionMV(){thrownewError("https://svelte.dev/e/async_derived_orphan")}functionkV(t){thrownewError("https://svelte.dev/e/effect_in_teardown")}functionPV(){thrownewError("https://svelte.dev/e/effect_in_unowned_derived")}functionLV(t){thrownewError("https://svelte.dev/e/effect_orphan")}functionFV(){thrownewError("https://svelte.dev/e/effect_update_depth_exceeded")}functionBV(){thrownewError("https://svelte.dev/e/fork_discarded")}functionUV(){thrownewError("https://svelte.dev/e/fork_timing")}functionGV(){thrownewError("https://svelte.dev/e/get_abort_signal_outside_reaction")}functionqV(){thrownewError("https://svelte.dev/e/hydration_failed")}functionj8(t){thrownewError("https://svelte.dev/e/lifecycle_legacy_only")}functionzV(t){thrownewError("https://svelte.dev/e/props_invalid_value")}function$V(){thrownewError("https://svelte.dev/e/state_descriptors_fixed")}functionHV(){thrownewError("https://svelte.dev/e/state_prototype_fixed")}functionYV(){thrownewError("https://svelte.dev/e/state_unsafe_mutation")}functionVV(){thrownewError("https://svelte.dev/e/svelte_boundary_reset_onerror")}constWV=1,KV=2,Q8=4,jV=8,QV=16,XV=1,ZV=2,JV=4,eW=8,tW=16,rW=1,nW=2,aW=4,iW=1,sW=2,X8="[",aS="[!",rO="]",rh={},bi=Symbol(),oW="http://www.w3.org/1999/xhtml",lW="http://www.w3.org/2000/svg",Z8="@attach";functioncW(t){console.warn("https://svelte.dev/e/hydratable_missing_but_expected")}functionKf(t){console.warn("https://svelte.dev/e/hydration_mismatch")}functionuW(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}functiondW(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}letNr=!1;functioncs(t){Nr=t}lettn;functionGa(t){if(t===null)throwKf(),rh;returntn=t}functionLo(){returnGa(uo(tn))}functionY(t){if(Nr){if(uo(tn)!==null)throwKf(),rh;tn=t}}functionet(t=1){if(Nr){for(vare=t,r=tn;e--;)r=uo(r);tn=r}}functionL1(t=!0){for(vare=0,r=tn;;){if(r.nodeType===tu){varn=r.data;if(n===rO){if(e===0)returnr;e-=1}else(n===X8||n===aS)&&(e+=1)}vara=uo(r);t&&r.remove(),r=a}}functionJ8(t){if(!t||t.nodeType!==tu)throwKf(),rh;returnt.data}functioneF(t){returnt===this.v}functionnO(t,e){returnt!=t?e==e:t!==e||t!==null&&typeoft=="object"||typeoft=="function"}functiontF(t){return!nO(t,this.v)}letjp=!1;functionhW(){jp=!0}constpW=[];functionop(t,e=!1,r=!1){returnb1(t,newMap,"",pW,null,r)}functionb1(t,e,r,n,a=null,i=!1){if(typeoft=="object"&&t!==null){vars=e.get(t);if(s!==void0)returns;if(tinstanceofMap)returnnewMap(t);if(tinstanceofSet)returnnewSet(t);if(Yf(t)){varo=Array(t.length);e.set(t,o),a!==null&&e.set(a,o);for(varl=0;l<t.length;l+=1){varc=t[l];lint&&(o[l]=b1(c,e,r,n,null,i))}returno}if(rS(t)===Y8){o={},e.set(t,o),a!==null&&e.set(a,o);for(varuint)o[u]=b1(t[u],e,r,n,null,i);returno}if(tinstanceofDate)returnstructuredClone(t);if(typeoft.toJSON=="function"&&!i)returnb1(t.toJSON(),e,r,n,t)}if(tinstanceofEventTarget)returnt;try{returnstructuredClone(t)}catch{returnt}}letqn=null;functionCp(t){qn=t}functionmW(){constt={};return[()=>(iS(t)||DV(),$l(t)),e=>Zu(t,e)]}function$l(t){returnsS().get(t)}functionZu(t,e){returnsS().set(t,e)Line truncated
`,E5="unknown type",v5="Binary content",nae={[ta.JPEG]:"jpg",[ta.JPG]:"jpg",[ta.PNG]:"png",[ta.GIF]:"gif",[ta.WEBP]:"webp"},aae=8,iae=20,sae=19,oae=/[^a-z0-9]/gi,lae="_",cae=/_+/g,nG="T",uae="_",dae=":",hae="-",lc=-1,pae="/",y5="-",mae=":",T5=/^(I?Q\d+(_[A-Z0-9]+)*|F\d+|BF\d+|MXFP\d+(_[A-Z0-9]+)*)$/i,fae=/^UD$/i,gae=/^\d+(\.\d+)?[BbMmKkTt]$/,_ae=/^[Aa]\d+(\.\d+)?[BbMmKkTt]$/,bae=new Set(["GGUF","GGML"]),C5=1e6,Sae=2e3,w5={TOKENS_PER_SECOND:"t/s"},_c={apiKey:"",systemMessage:"",showSystemMessage:!0,theme:Gl.SYSTEM,showThoughtInProgress:!1,disableReasoningParsing:!1,excludeReasoningFromContext:!1,showRawOutputSwitch:!1,keepStatsVisible:!1,showMessageStats:!0,askForTitleConfirmation:!1,pasteLongTextToFileLen:2500,copyTextAttachmentsAsPlainText:!1,pdfAsImage:!1,disableAutoScroll:!1,renderUserContentAsMarkdown:!1,alwaysShowSidebarOnDesktop:!1,autoShowSidebarOnNewChat:!0,autoMicOnEmpty:!1,fullHeightCodeBlocks:!1,showRawModelNames:!1,mcpServers:"[]",mcpServerUsageStats:"{}",agenticMaxTurns:10,agenticMaxToolPreviewLines:25,showToolCallInProgress:!1,alwaysShowAgenticTurns:!1,samplers:"",backend_sampling:!1,temperature:void 0,dynatemp_range:void 0,dynatemp_exponent:void 0,top_k:void 0,top_p:void 0,min_p:void 0,xtc_probability:void 0,xtc_threshold:void 0,typ_p:void 0,repeat_last_n:void 0,repeat_penalty:void 0,presence_penalty:void 0,frequency_penalty:void 0,dry_multiplier:void 0,dry_base:void 0,dry_allowed_length:void 0,dry_penalty_last_n:void 0,max_tokens:void 0,custom:"",preEncodeConversation:!1,pyInterpreterEnabled:!1,enableContinueGeneration:!1},fu={apiKey:"Set the API Key if you are using <code>--api-key</code> option for the server.",systemMessage:"The starting message that defines how model should behave.",showSystemMessage:"Display the system message at the top of each conversation.",theme:"Choose the color theme for the interface. You can choose between System (follows your device settings), Light, or Dark.",pasteLongTextToFileLen:"On pasting long text, it will be converted to a file. You can control the file length by setting the value of this parameter. Value 0 means disable.",copyTextAttachmentsAsPlainText:"When copying a message with text attachments, combine them into a single plain text string instead of a special format that can be pasted back as attachments.",samplers:'The order at which samplers are applied, in simplified way. Default is "top_k;typ_p;top_p;min_p;temperature": top_k->typ_p->top_p->min_p->temperature',backend_sampling:"Enable backend-based samplers. When enabled, supported samplers run on the accelerator backend for faster sampling.",temperature:"Controls the randomness of the generated text by affecting the probability distribution of the output tokens. Higher = more random, lower = more focused.",dynatemp_range:"Addon for the temperature sampler. The added value to the range of dynamic temperature, which adjusts probabilities by entropy of tokens.",dynatemp_exponent:"Addon for the temperature sampler. Smoothes out the probability redistribution based on the most probable token.",top_k:"Keeps only k top tokens.",top_p:"Limits tokens to those that together have a cumulative probability of at least p",min_p:"Limits tokens based on the minimum probability for a token to be considered, relative to the probability of the most likely token.",xtc_probability:"XTC sampler cuts out top tokens; this parameter controls the chance of cutting tokens at all. 0 disables XTC.",xtc_threshold:"XTC sampler cuts out top tokens; this parameter controls the token probability that is required to cut that token.",typ_p:"Sorts and limits tokens based on the difference between log-probability and entropy.",repeat_last_n:"Last n tokens to consider for penalizing repetition",repeat_penalty:"Controls the repetition of token sequences in the generated text",presence_penalty:"Limits tokens based on whether they appear in the output or not.",frequency_penalty:"Limits tokens based on how often they appear in the output.",dry_multiplier:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling multiplier.",dry_base:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling base value.",dry_allowed_length:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the allowed length for DRY sampling.",dry_penalty_last_n:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets DRY penalty for the last n tokens.",max_tokens:"The maximum number of token per output. Use -1 for infinite (no limit).",custom:"Custom JSON parameters to send to the API. Must be valid JSON format.",showThoughtInProgress:"Expand thought process by default when generating messages.",disableReasoningParsing:"Send reasoning_format=none so the server returns thinking tokens inline instead of extracting them into a separate field.",excludeReasoningFromContext:"S
Line truncated
`,E5="unknown type",v5="Binary content",nae={[ta.JPEG]:"jpg",[ta.JPG]:"jpg",[ta.PNG]:"png",[ta.GIF]:"gif",[ta.WEBP]:"webp"},aae=8,iae=20,sae=19,oae=/[^a-z0-9]/gi,lae="_",cae=/_+/g,nG="T",uae="_",dae=":",hae="-",lc=-1,pae="/",y5="-",mae=":",T5=/^(I?Q\d+(_[A-Z0-9]+)*|F\d+|BF\d+|MXFP\d+(_[A-Z0-9]+)*)$/i,fae=/^UD$/i,gae=/^\d+(\.\d+)?[BbMmKkTt]$/,_ae=/^[Aa]\d+(\.\d+)?[BbMmKkTt]$/,bae=new Set(["GGUF","GGML"]),C5=1e6,Sae=2e3,w5={TOKENS_PER_SECOND:"t/s"},_c={apiKey:"",systemMessage:"",showSystemMessage:!0,theme:Gl.SYSTEM,showThoughtInProgress:!1,disableReasoningParsing:!1,excludeReasoningFromContext:!1,showRawOutputSwitch:!1,keepStatsVisible:!1,showMessageStats:!0,askForTitleConfirmation:!1,pasteLongTextToFileLen:2500,copyTextAttachmentsAsPlainText:!1,pdfAsImage:!1,disableAutoScroll:!1,renderUserContentAsMarkdown:!1,alwaysShowSidebarOnDesktop:!1,autoShowSidebarOnNewChat:!0,sendOnEnter:!0,autoMicOnEmpty:!1,fullHeightCodeBlocks:!1,showRawModelNames:!1,mcpServers:"[]",mcpServerUsageStats:"{}",agenticMaxTurns:10,agenticMaxToolPreviewLines:25,showToolCallInProgress:!1,alwaysShowAgenticTurns:!1,samplers:"",backend_sampling:!1,temperature:void 0,dynatemp_range:void 0,dynatemp_exponent:void 0,top_k:void 0,top_p:void 0,min_p:void 0,xtc_probability:void 0,xtc_threshold:void 0,typ_p:void 0,repeat_last_n:void 0,repeat_penalty:void 0,presence_penalty:void 0,frequency_penalty:void 0,dry_multiplier:void 0,dry_base:void 0,dry_allowed_length:void 0,dry_penalty_last_n:void 0,max_tokens:void 0,custom:"",preEncodeConversation:!1,pyInterpreterEnabled:!1,enableContinueGeneration:!1},fu={apiKey:"Set the API Key if you are using <code>--api-key</code> option for the server.",systemMessage:"The starting message that defines how model should behave.",showSystemMessage:"Display the system message at the top of each conversation.",theme:"Choose the color theme for the interface. You can choose between System (follows your device settings), Light, or Dark.",pasteLongTextToFileLen:"On pasting long text, it will be converted to a file. You can control the file length by setting the value of this parameter. Value 0 means disable.",copyTextAttachmentsAsPlainText:"When copying a message with text attachments, combine them into a single plain text string instead of a special format that can be pasted back as attachments.",samplers:'The order at which samplers are applied, in simplified way. Default is "top_k;typ_p;top_p;min_p;temperature": top_k->typ_p->top_p->min_p->temperature',backend_sampling:"Enable backend-based samplers. When enabled, supported samplers run on the accelerator backend for faster sampling.",temperature:"Controls the randomness of the generated text by affecting the probability distribution of the output tokens. Higher = more random, lower = more focused.",dynatemp_range:"Addon for the temperature sampler. The added value to the range of dynamic temperature, which adjusts probabilities by entropy of tokens.",dynatemp_exponent:"Addon for the temperature sampler. Smoothes out the probability redistribution based on the most probable token.",top_k:"Keeps only k top tokens.",top_p:"Limits tokens to those that together have a cumulative probability of at least p",min_p:"Limits tokens based on the minimum probability for a token to be considered, relative to the probability of the most likely token.",xtc_probability:"XTC sampler cuts out top tokens; this parameter controls the chance of cutting tokens at all. 0 disables XTC.",xtc_threshold:"XTC sampler cuts out top tokens; this parameter controls the token probability that is required to cut that token.",typ_p:"Sorts and limits tokens based on the difference between log-probability and entropy.",repeat_last_n:"Last n tokens to consider for penalizing repetition",repeat_penalty:"Controls the repetition of token sequences in the generated text",presence_penalty:"Limits tokens based on whether they appear in the output or not.",frequency_penalty:"Limits tokens based on how often they appear in the output.",dry_multiplier:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling multiplier.",dry_base:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling base value.",dry_allowed_length:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the allowed length for DRY sampling.",dry_penalty_last_n:"DRY sampling reduces repetition in generated text even across long contexts. This parameter sets DRY penalty for the last n tokens.",max_tokens:"The maximum number of token per output. Use -1 for infinite (no limit).",custom:"Custom JSON parameters to send to the API. Must be valid JSON format.",showThoughtInProgress:"Expand thought process by default when generating messages.",disableReasoningParsing:"Send reasoning_format=none so the server returns thinking tokens inline instead of extracting them into a separate field.",excludeReasonin
Line truncated
`,1;if(vo>1e5&&vo>gr.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Fn+=yr,yr.length}const $a=Ui(Gt);if(!$a)throw st(kt.replace("{}",Gt)),new Error('Unknown language: "'+Gt+'"');const du=zt($a);let ic="",ar=Un||du;const Sl={},ga=new Tt.__emitter(Tt);Ah();let Fn="",_a=0,ni=0,vo=0,Ci=!1;try{if($a.__emitTokens)$a.__emitTokens(Cr,ga);else{for(ar.matcher.considerAll();;){vo++,Ci?Ci=!1:ar.matcher.considerAll(),ar.matcher.lastIndex=ni;const Qt=ar.matcher.exec(Cr);if(!Qt)break;const gr=Cr.substring(ni,Qt.index),yr=ac(gr,Qt);ni=Qt.index+yr}ac(Cr.substring(ni))}return ga.finalize(),ic=ga.toHTML(),{language:Gt,value:ic,relevance:_a,illegal:!1,_emitter:ga,_top:ar}}catch(Qt){if(Qt.message&&Qt.message.includes("Illegal"))return{language:Gt,value:Ft(Cr),illegal:!0,relevance:0,_illegalBy:{message:Qt.message,index:ni,context:Cr.slice(ni-100,ni+100),mode:Qt.mode,resultSoFar:ic},_emitter:ga};if(Pt)return{language:Gt,value:Ft(Cr),illegal:!1,relevance:0,errorRaised:Qt,_emitter:ga,_top:ar};throw Qt}}function vr(Gt){const Cr={value:Ft(Gt),illegal:!1,relevance:0,_top:bt,_emitter:new Tt.__emitter(Tt)};return Cr._emitter.addText(Gt),Cr}function Ln(Gt,Cr){Cr=Cr||Tt.languages||Object.keys(Xe);const ln=vr(Gt),Un=Cr.filter(Ui).filter(So).map(gi=>On(gi,Gt,!1));Un.unshift(ln);const fa=Un.sort((gi,gn)=>{if(gi.relevance!==gn.relevance)return gn.relevance-gi.relevance;if(gi.language&&gn.language){if(Ui(gi.language).supersetOf===gn.language)return 1;if(Ui(gn.language).supersetOf===gi.language)return-1}return 0}),[Vr,Gs]=fa,nc=Vr;return nc.secondBest=Gs,nc}function Bs(Gt,Cr,ln){const Un=Cr&&pt[Cr]||ln;Gt.classList.add("hljs"),Gt.classList.add(`language-${Un}`)}function fi(Gt){let Cr=null;const ln=Dt(Gt);if(St(ln))return;if(Ho("before:highlightElement",{el:Gt,language:ln}),Gt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Gt);return}if(Gt.children.length>0&&(Tt.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Gt)),Tt.throwUnescapedHTML))throw new Ot("One of your code blocks includes unescaped HTML.",Gt.innerHTML);Cr=Gt;const Un=Cr.textContent,fa=ln?ur(Un,{language:ln,ignoreIllegals:!0}):Ln(Un);Gt.innerHTML=fa.value,Gt.dataset.highlighted="yes",Bs(Gt,ln,fa.language),Gt.result={language:fa.language,re:fa.relevance,relevance:fa.relevance},fa.secondBest&&(Gt.secondBest={language:fa.secondBest.language,relevance:fa.secondBest.relevance}),Ho("after:highlightElement",{el:Gt,result:fa,text:Un})}function _o(Gt){Tt=tr(Tt,Gt)}const gs=()=>{ri(),Ae("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Qi(){ri(),Ae("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let bo=!1;function ri(){function Gt(){ri()}if(document.readyState==="loading"){bo||window.addEventListener("DOMContentLoaded",Gt,!1),bo=!0;return}document.querySelectorAll(Tt.cssSelector).forEach(fi)}function cu(Gt,Cr){let ln=null;try{ln=Cr(Re)}catch(Un){if(st("Language definition for '{}' could not be registered.".replace("{}",Gt)),Pt)st(Un);else throw Un;ln=bt}ln.name||(ln.name=Gt),Xe[Gt]=ln,ln.rawDefinition=Cr.bind(null,Re),ln.aliases&&ia(ln.aliases,{languageName:Gt})}function Xi(Gt){delete Xe[Gt];for(const Cr of Object.keys(pt))pt[Cr]===Gt&&delete pt[Cr]}function rc(){return Object.keys(Xe)}function Ui(Gt){return Gt=(Gt||"").toLowerCase(),Xe[Gt]||Xe[pt[Gt]]}function ia(Gt,{languageName:Cr}){typeof Gt=="string"&&(Gt=[Gt]),Gt.forEach(ln=>{pt[ln.toLowerCase()]=Cr})}function So(Gt){const Cr=Ui(Gt);return Cr&&!Cr.disableAutodetect}function Us(Gt){Gt["before:highlightBlock"]&&!Gt["before:highlightElement"]&&(Gt["before:highlightElement"]=Cr=>{Gt["before:highlightBlock"](Object.assign({block:Cr.el},Cr))}),Gt["after:highlightBlock"]&&!Gt["after:highlightElement"]&&(Gt["after:highlightElement"]=Cr=>{Gt["after:highlightBlock"](Object.assign({block:Cr.el},Cr))})}function wh(Gt){Us(Gt),Ct.push(Gt)}function gl(Gt){const Cr=Ct.indexOf(Gt);Cr!==-1&&Ct.splice(Cr,1)}function Ho(Gt,Cr){const ln=Gt;Ct.forEach(function(Un){Un[ln]&&Un[ln](Cr)})}function pd(Gt){return Ae("10.7.0","highlightBlock will be removed entirely in v12.0"),Ae("10.7.0","Please use highlightElement now."),fi(Gt)}Object.assign(Re,{highlight:ur,highlightAuto:Ln,highlightAll:ri,highlightElement:fi,highlightBlock:pd,configure:_o,initHighlighting:gs,initHighlightingOnLoad:Qi,registerLanguage:cu,unregisterLanguage:Xi,listLanguages:rc,getLanguage:Ui,registerAliases:ia,autoDetection:So,inherit:tr,addPlugin:wh,removePlugin:gl}),Re.debugMode=function(){Pt=!1},Re.safeMode=function(){Pt=!0},Re.versionString=lt,Re.regex={concat:g,lookahead:h,either:_,optional:f,anyNumberOfTimes:m};for(const Gt in _e)typeof _e[Gt]=="object"&&t(_e[Gt]);return Object.assign(Re,_e),Re},xt=yt({})
Line truncated
`},f]}}return mT=a,mT}var fT,mk;function Ase(){if(mk)return fT;mk=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",a="\\]|\\?>",i={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("<!--","-->",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+n},c={className:"symbol",begin:"'"+r+"'"},u=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[c]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[s]}},o,l].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return fT=t,fT}var gT,fk;function Rse(){if(fk)return gT;fk=1;function t(e){const n=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(D=>D+"(?![a-zA-Z@:_])")),a=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(D=>D+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:a},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},l={className:"params",relevance:0,begin:/#+\d?/},c={variants:s},u={className:"built_in",relevance:0,begin:/[$&^_]/},d={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},h=e.COMMENT("%","$",{relevance:0}),m=[o,l,c,u,d,h],f={begin:/\{/,end:/\}/,relevance:0,contains:["self",...m]},g=e.inheri
Line truncated
]`,g={scope:"string",variants:[d,u,h,m]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},_=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:S,literal:(K=>{const z=[];return K.forEach(ne=>{z.push(ne),ne.toLowerCase()===ne?z.push(ne.toUpperCase()):z.push(ne.toLowerCase())}),z})(_),built_in:E},T=K=>K.map(z=>z.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,r.concat(f,"+"),r.concat("(?!",T(E).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},A=r.concat(a,"\\b(?!\\()"),I={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,r.concat(/::/,r.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[i,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},x={scope:"attr",match:r.concat(a,r.lookahead(":"),r.lookahead(/(?!::)/))},D={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[x,o,I,e.C_BLOCK_COMMENT_MODE,g,b,w]},$={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",T(S).join("\\b|"),"|",T(E).join("\\b|"),"\\b)"),a,r.concat(f,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[D]};D.contains.push($);const H=[x,I,e.C_BLOCK_COMMENT_MODE,g,b,w],G={begin:r.concat(/#\[\s*\\?/,r.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:_,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:_,keyword:["new","array"]},contains:["self",...H]},...H,{scope:"meta",variants:[{match:i},{match:s}]}]};return{case_insensitive:!1,keywords:v,contains:[G,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},o,$,I,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",G,o,I,e.C_BLOCK_COMMENT_MODE,g,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywor
Line truncated
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return OC=t,OC}var NC,O9;function Goe(){if(O9)return NC;O9=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},a={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,a,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,a]}]}}return NC=t,NC}var IC,N9;function qoe(){if(N9)return IC;N9=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return IC=t,IC}var xC,I9;function zoe(){if(I9)return xC;I9=1;function t(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},a={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSiLine truncated
`,1;if(vo>1e5&&vo>gr.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Fn+=yr,yr.length}const $a=Ui(Gt);if(!$a)throw st(kt.replace("{}",Gt)),new Error('Unknown language: "'+Gt+'"');const du=zt($a);let ic="",ar=Un||du;const Sl={},ga=new Tt.__emitter(Tt);Ah();let Fn="",_a=0,ni=0,vo=0,Ci=!1;try{if($a.__emitTokens)$a.__emitTokens(Cr,ga);else{for(ar.matcher.considerAll();;){vo++,Ci?Ci=!1:ar.matcher.considerAll(),ar.matcher.lastIndex=ni;const Qt=ar.matcher.exec(Cr);if(!Qt)break;const gr=Cr.substring(ni,Qt.index),yr=ac(gr,Qt);ni=Qt.index+yr}ac(Cr.substring(ni))}return ga.finalize(),ic=ga.toHTML(),{language:Gt,value:ic,relevance:_a,illegal:!1,_emitter:ga,_top:ar}}catch(Qt){if(Qt.message&&Qt.message.includes("Illegal"))return{language:Gt,value:Ft(Cr),illegal:!0,relevance:0,_illegalBy:{message:Qt.message,index:ni,context:Cr.slice(ni-100,ni+100),mode:Qt.mode,resultSoFar:ic},_emitter:ga};if(Pt)return{language:Gt,value:Ft(Cr),illegal:!1,relevance:0,errorRaised:Qt,_emitter:ga,_top:ar};throw Qt}}function vr(Gt){const Cr={value:Ft(Gt),illegal:!1,relevance:0,_top:bt,_emitter:new Tt.__emitter(Tt)};return Cr._emitter.addText(Gt),Cr}function Ln(Gt,Cr){Cr=Cr||Tt.languages||Object.keys(Xe);const ln=vr(Gt),Un=Cr.filter(Ui).filter(So).map(gi=>On(gi,Gt,!1));Un.unshift(ln);const fa=Un.sort((gi,gn)=>{if(gi.relevance!==gn.relevance)return gn.relevance-gi.relevance;if(gi.language&&gn.language){if(Ui(gi.language).supersetOf===gn.language)return 1;if(Ui(gn.language).supersetOf===gi.language)return-1}return 0}),[Vr,Gs]=fa,nc=Vr;return nc.secondBest=Gs,nc}function Bs(Gt,Cr,ln){const Un=Cr&&pt[Cr]||ln;Gt.classList.add("hljs"),Gt.classList.add(`language-${Un}`)}function fi(Gt){let Cr=null;const ln=Dt(Gt);if(St(ln))return;if(Ho("before:highlightElement",{el:Gt,language:ln}),Gt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Gt);return}if(Gt.children.length>0&&(Tt.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Gt)),Tt.throwUnescapedHTML))throw new Ot("One of your code blocks includes unescaped HTML.",Gt.innerHTML);Cr=Gt;const Un=Cr.textContent,fa=ln?ur(Un,{language:ln,ignoreIllegals:!0}):Ln(Un);Gt.innerHTML=fa.value,Gt.dataset.highlighted="yes",Bs(Gt,ln,fa.language),Gt.result={language:fa.language,re:fa.relevance,relevance:fa.relevance},fa.secondBest&&(Gt.secondBest={language:fa.secondBest.language,relevance:fa.secondBest.relevance}),Ho("after:highlightElement",{el:Gt,result:fa,text:Un})}function _o(Gt){Tt=tr(Tt,Gt)}const gs=()=>{ri(),Ae("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Qi(){ri(),Ae("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let bo=!1;function ri(){function Gt(){ri()}if(document.readyState==="loading"){bo||window.addEventListener("DOMContentLoaded",Gt,!1),bo=!0;return}document.querySelectorAll(Tt.cssSelector).forEach(fi)}function cu(Gt,Cr){let ln=null;try{ln=Cr(Re)}catch(Un){if(st("Language definition for '{}' could not be registered.".replace("{}",Gt)),Pt)st(Un);else throw Un;ln=bt}ln.name||(ln.name=Gt),Xe[Gt]=ln,ln.rawDefinition=Cr.bind(null,Re),ln.aliases&&ia(ln.aliases,{languageName:Gt})}function Xi(Gt){delete Xe[Gt];for(const Cr of Object.keys(pt))pt[Cr]===Gt&&delete pt[Cr]}function rc(){return Object.keys(Xe)}function Ui(Gt){return Gt=(Gt||"").toLowerCase(),Xe[Gt]||Xe[pt[Gt]]}function ia(Gt,{languageName:Cr}){typeof Gt=="string"&&(Gt=[Gt]),Gt.forEach(ln=>{pt[ln.toLowerCase()]=Cr})}function So(Gt){const Cr=Ui(Gt);return Cr&&!Cr.disableAutodetect}function Us(Gt){Gt["before:highlightBlock"]&&!Gt["before:highlightElement"]&&(Gt["before:highlightElement"]=Cr=>{Gt["before:highlightBlock"](Object.assign({block:Cr.el},Cr))}),Gt["after:highlightBlock"]&&!Gt["after:highlightElement"]&&(Gt["after:highlightElement"]=Cr=>{Gt["after:highlightBlock"](Object.assign({block:Cr.el},Cr))})}function wh(Gt){Us(Gt),Ct.push(Gt)}function gl(Gt){const Cr=Ct.indexOf(Gt);Cr!==-1&&Ct.splice(Cr,1)}function Ho(Gt,Cr){const ln=Gt;Ct.forEach(function(Un){Un[ln]&&Un[ln](Cr)})}function pd(Gt){return Ae("10.7.0","highlightBlock will be removed entirely in v12.0"),Ae("10.7.0","Please use highlightElement now."),fi(Gt)}Object.assign(Re,{highlight:ur,highlightAuto:Ln,highlightAll:ri,highlightElement:fi,highlightBlock:pd,configure:_o,initHighlighting:gs,initHighlightingOnLoad:Qi,registerLanguage:cu,unregisterLanguage:Xi,listLanguages:rc,getLanguage:Ui,registerAliases:ia,autoDetection:So,inherit:tr,addPlugin:wh,removePlugin:gl}),Re.debugMode=function(){Pt=!1},Re.safeMode=function(){Pt=!0},Re.versionString=lt,Re.regex={concat:g,lookahead:h,either:_,optional:f,anyNumberOfTimes:m};for(const Gt in _e)typeof _e[Gt]=="object"&&t(_e[Gt]);return Object.assign(Re,_e),Re},xt=yt({})
Line truncated
`},f]}}return fT=a,fT}var gT,mk;function Ase(){if(mk)return gT;mk=1;function t(e){const r="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",a="\\]|\\?>",i={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},s=e.COMMENT("<!--","-->",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},l={className:"meta",begin:"\\[/noprocess|"+n},c={className:"symbol",begin:"'"+r+"'"},u=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[c]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[s]}},o,l,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:a,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[s]}},o,l].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return gT=t,gT}var _T,fk;function Rse(){if(fk)return _T;fk=1;function t(e){const n=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(D=>D+"(?![a-zA-Z@:_])")),a=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(D=>D+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],s=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],o={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:a},{endsParent:!0,variants:s},{endsParent:!0,relevance:0,variants:i}]},l={className:"params",relevance:0,begin:/#+\d?/},c={variants:s},u={className:"built_in",relevance:0,begin:/[$&^_]/},d={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},h=e.COMMENT("%","$",{relevance:0}),m=[o,l,c,u,d,h],f={begin:/\{/,end:/\}/,relevance:0,contains:["self",...m]},g=e.inheri
Line truncated
]`,g={scope:"string",variants:[d,u,h,m]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},_=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],E=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:S,literal:(K=>{const z=[];return K.forEach(ne=>{z.push(ne),ne.toLowerCase()===ne?z.push(ne.toUpperCase()):z.push(ne.toLowerCase())}),z})(_),built_in:E},T=K=>K.map(z=>z.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,r.concat(f,"+"),r.concat("(?!",T(E).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},A=r.concat(a,"\\b(?!\\()"),I={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,r.concat(/::/,r.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[i,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},x={scope:"attr",match:r.concat(a,r.lookahead(":"),r.lookahead(/(?!::)/))},D={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[x,o,I,e.C_BLOCK_COMMENT_MODE,g,b,w]},$={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",T(S).join("\\b|"),"|",T(E).join("\\b|"),"\\b)"),a,r.concat(f,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[D]};D.contains.push($);const H=[x,I,e.C_BLOCK_COMMENT_MODE,g,b,w],G={begin:r.concat(/#\[\s*\\?/,r.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:_,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:_,keyword:["new","array"]},contains:["self",...H]},...H,{scope:"meta",variants:[{match:i},{match:s}]}]};return{case_insensitive:!1,keywords:v,contains:[G,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},o,$,I,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",G,o,I,e.C_BLOCK_COMMENT_MODE,g,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywor
Line truncated
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return NC=t,NC}var IC,O9;function Goe(){if(O9)return IC;O9=1;function t(e){const r="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},a={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,a,n,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,a]}]}}return IC=t,IC}var xC,N9;function qoe(){if(N9)return xC;N9=1;function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return xC=t,xC}var DC,I9;function zoe(){if(I9)return DC;I9=1;function t(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},a={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],o=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSiLine truncated
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return kC=t,kC}var PC,k9;function Voe(){if(k9)return PC;k9=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return PC=t,PC}var LC,P9;function Woe(){if(P9)return LC;P9=1;const t=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],a=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target
Line truncated
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return PC=t,PC}var LC,k9;function Voe(){if(k9)return LC;k9=1;function t(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return LC=t,LC}var FC,P9;function Woe(){if(P9)return FC;P9=1;const t=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n=[...e,...r],a=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target
Line truncated
`).filter(s=>s),a=Math.min(...n.map(s=>s.length-s.trimStart().length)),i=n.map(s=>s.slice(a)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const e=Function,r=this?.args,a=[...(this?.content??[""]).map(i=>`${i}`)];return new e(...r,a.join(`
`))}}const Nde={major:4,minor:2,patch:1},pa=vt("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Nde;const n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(const a of n)for(const i of a._zod.onattach)i(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const a=(s,o,l)=>{let c=ep(s),u;for(const d of o){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(c)continue;const h=s.issues.length,m=d._zod.check(s);if(m instanceof Promise&&l?.async===!1)throw new fp;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,s.issues.length!==h&&(c||(c=ep(s,h)))});else{if(s.issues.length===h)continue;c||(c=ep(s,h))}}return u?u.then(()=>s):s},i=(s,o,l)=>{if(ep(s))return s.aborted=!0,s;const c=a(o,n,l);if(c instanceof Promise){if(l.async===!1)throw new fp;return c.then(u=>t._zod.parse(u,l))}return t._zod.parse(c,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){const c=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,o)):i(c,s,o)}const l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new fp;return l.then(c=>a(c,n,o))}return a(l,n,o)}}t["~standard"]={validate:a=>{try{const i=PG(t,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return kue(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),UI=vt("$ZodString",(t,e)=>{pa.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??cde(t._zod.bag),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),ya=vt("$ZodStringFormat",(t,e)=>{jS.init(t,e),UI.init(t,e)}),Ide=vt("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Que),ya.init(t,e)}),xde=vt("$ZodUUID",(t,e)=>{if(e.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`InvalidUUIDversion:"${e.version}"`);e.pattern??(e.pattern=y4(n))}else e.pattern??(e.pattern=y4());ya.init(t,e)}),Dde=vt("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Xue),ya.init(t,e)}),Mde=vt("$ZodURL",(t,e)=>{ya.init(t,e),t._zod.check=r=>{try{const n=r.value.trim(),a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=a.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),kde=vt("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Jue()),ya.init(t,e)}),Pde=vt("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Kue),ya.init(t,e)}),Lde=vt("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=$ue),ya.init(t,e)}),Fde=vt("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Hue),ya.init(t,e)}),Bde=vt("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Yue),ya.init(t,e)}),Ude=vt("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Vue),ya.init(t,e)}),Gde=vt("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Wue),ya.init(t,e)}),qde=vt("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=lde(e)),ya.init(t,e)}),zde=vt("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=sde),ya.init(t,e)}),$de=vt("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=ode(e)),ya.init(t,e)}),Hde=vt("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=jue),ya.init(t,e)}),Yde=vt("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=ede),ya.init(t,e),t._zod.bag.format="ipv4"}),Vde=vt("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=tde),ya.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Wde=vt("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=rde),ya.init(t,e)}),Kde=vt("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=nde),ya.init(t,e),t._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[a,i]=n;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function zG(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const jde=vt("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ade),ya.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{zG(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function Qde(t){if(!LG.test(t))return!1;const e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=
Line truncated
`))}}const Nde={major:4,minor:2,patch:1},pa=vt("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Nde;const n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(const a of n)for(const i of a._zod.onattach)i(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const a=(s,o,l)=>{let c=ep(s),u;for(const d of o){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(c)continue;const h=s.issues.length,m=d._zod.check(s);if(m instanceof Promise&&l?.async===!1)throw new fp;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,s.issues.length!==h&&(c||(c=ep(s,h)))});else{if(s.issues.length===h)continue;c||(c=ep(s,h))}}return u?u.then(()=>s):s},i=(s,o,l)=>{if(ep(s))return s.aborted=!0,s;const c=a(o,n,l);if(c instanceof Promise){if(l.async===!1)throw new fp;return c.then(u=>t._zod.parse(u,l))}return t._zod.parse(c,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){const c=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,o)):i(c,s,o)}const l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new fp;return l.then(c=>a(c,n,o))}return a(l,n,o)}}t["~standard"]={validate:a=>{try{const i=PG(t,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return kue(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),GI=vt("$ZodString",(t,e)=>{pa.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??cde(t._zod.bag),t._zod.parse=(r,n)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),ya=vt("$ZodStringFormat",(t,e)=>{QS.init(t,e),GI.init(t,e)}),Ide=vt("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Que),ya.init(t,e)}),xde=vt("$ZodUUID",(t,e)=>{if(e.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`InvalidUUIDversion:"${e.version}"`);e.pattern??(e.pattern=y4(n))}else e.pattern??(e.pattern=y4());ya.init(t,e)}),Dde=vt("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Xue),ya.init(t,e)}),Mde=vt("$ZodURL",(t,e)=>{ya.init(t,e),t._zod.check=r=>{try{const n=r.value.trim(),a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=a.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),kde=vt("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Jue()),ya.init(t,e)}),Pde=vt("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Kue),ya.init(t,e)}),Lde=vt("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=$ue),ya.init(t,e)}),Fde=vt("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Hue),ya.init(t,e)}),Bde=vt("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Yue),ya.init(t,e)}),Ude=vt("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Vue),ya.init(t,e)}),Gde=vt("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Wue),ya.init(t,e)}),qde=vt("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=lde(e)),ya.init(t,e)}),zde=vt("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=sde),ya.init(t,e)}),$de=vt("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=ode(e)),ya.init(t,e)}),Hde=vt("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=jue),ya.init(t,e)}),Yde=vt("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=ede),ya.init(t,e),t._zod.bag.format="ipv4"}),Vde=vt("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=tde),ya.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Wde=vt("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=rde),ya.init(t,e)}),Kde=vt("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=nde),ya.init(t,e),t._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[a,i]=n;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function zG(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const jde=vt("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=ade),ya.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{zG(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function Qde(t){if(!LG.test(t))return!1;const e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=
Line truncated
`)}m.write("payload.value = newResult;"),m.write("return payload;");const S=m.compile();return(E,y)=>S(h,E,y)};let i;const s=Mf,o=!OG.jitless,c=o&&vue.value,u=e.catchall;let d;t._zod.parse=(h,m)=>{d??(d=n.value);const f=h.value;return s(f)?o&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=a(e.shape)),h=i(h,m),u?YG([],f,h,m,d,t):h):r(h,m):(h.issues.push({expected:"object",code:"invalid_type",input:f,inst:t}),h)}});function C4(t,e,r,n){for(const i of t)if(i.issues.length===0)return e.value=i.value,e;const a=t.filter(i=>!ep(i));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>$u(s,n,zu())))}),e)}const VG=vt("$ZodUnion",(t,e)=>{pa.init(t,e),ra(t._zod,"optin",()=>e.options.some(a=>a._zod.optin==="optional")?"optional":void 0),ra(t._zod,"optout",()=>e.options.some(a=>a._zod.optout==="optional")?"optional":void 0),ra(t._zod,"values",()=>{if(e.options.every(a=>a._zod.values))return new Set(e.options.flatMap(a=>Array.from(a._zod.values)))}),ra(t._zod,"pattern",()=>{if(e.options.every(a=>a._zod.pattern)){const a=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${a.map(i=>PI(i.source)).join("|")})$`)}});const r=e.options.length===1,n=e.options[0]._zod.run;t._zod.parse=(a,i)=>{if(r)return n(a,i);let s=!1;const o=[];for(const l of e.options){const c=l._zod.run({value:a.value,issues:[]},i);if(c instanceof Promise)o.push(c),s=!0;else{if(c.issues.length===0)return c;o.push(c)}}return s?Promise.all(o).then(l=>C4(l,a,t,i)):C4(o,a,t,i)}}),uhe=vt("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,VG.init(t,e);const r=t._zod.parse;ra(t._zod,"propValues",()=>{const a={};for(const i of e.options){const s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invaliddiscriminatedunionoptionatindex"${e.options.indexOf(i)}"`);for(const[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(const c of l)a[o].add(c)}}return a});const n=VS(()=>{const a=e.options,i=new Map;for(const s of a){const o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invaliddiscriminatedunionoptionatindex"${e.options.indexOf(s)}"`);for(const l of o){if(i.has(l))throw new Error(`Duplicatediscriminatorvalue"${String(l)}"`);i.set(l,s)}}return i});t._zod.parse=(a,i)=>{const s=a.value;if(!Mf(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;const o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,i):e.unionFallback?r(a,i):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),a)}}),dhe=vt("$ZodIntersection",(t,e)=>{pa.init(t,e),t._zod.parse=(r,n)=>{const a=r.value,i=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>w4(r,l,c)):w4(r,i,s)}});function AR(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Bp(t)&&Bp(e)){const r=Object.keys(e),n=Object.keys(t).filter(i=>r.indexOf(i)!==-1),a={...t,...e};for(const i of n){const s=AR(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};a[i]=s.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<t.length;n++){const a=t[n],i=e[n],s=AR(a,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function w4(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),ep(t))return t;const n=AR(e.value,r.value);if(!n.valid)throw new Error(`Unmergableintersection.Errorpath:${JSON.stringify(n.mergeErrorPath)}`);return t.value=n.data,t}const hhe=vt("$ZodRecord",(t,e)=>{pa.init(t,e),t._zod.parse=(r,n)=>{const a=r.value;if(!Bp(a))return r.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),r;const i=[],s=e.keyType._zod.values;if(s){r.value={};const o=new Set;for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){o.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:a[c],issues:[]},n);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&r.issues.push(...tp(c,d.issues)),r.value[c]=d.value})):(u.issues.length&&r.issues.push(...tp(c,u.issues)),r.value[c]=u.value)}let l;for(const c in a)o.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{r.value={};for(const o of Reflect.ownKeys(a)){if(o==="__proto__")continue;const l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?r.value[o]=a[o]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(u=>$u(u,n,zu())),input:o,path:[o],inst:t});continue}c
Line truncated
`)}m.write("payload.value = newResult;"),m.write("return payload;");const S=m.compile();return(E,y)=>S(h,E,y)};let i;const s=Mf,o=!OG.jitless,c=o&&vue.value,u=e.catchall;let d;t._zod.parse=(h,m)=>{d??(d=n.value);const f=h.value;return s(f)?o&&c&&m?.async===!1&&m.jitless!==!0?(i||(i=a(e.shape)),h=i(h,m),u?YG([],f,h,m,d,t):h):r(h,m):(h.issues.push({expected:"object",code:"invalid_type",input:f,inst:t}),h)}});function C4(t,e,r,n){for(const i of t)if(i.issues.length===0)return e.value=i.value,e;const a=t.filter(i=>!ep(i));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(i=>i.issues.map(s=>$u(s,n,zu())))}),e)}const VG=vt("$ZodUnion",(t,e)=>{pa.init(t,e),ra(t._zod,"optin",()=>e.options.some(a=>a._zod.optin==="optional")?"optional":void 0),ra(t._zod,"optout",()=>e.options.some(a=>a._zod.optout==="optional")?"optional":void 0),ra(t._zod,"values",()=>{if(e.options.every(a=>a._zod.values))return new Set(e.options.flatMap(a=>Array.from(a._zod.values)))}),ra(t._zod,"pattern",()=>{if(e.options.every(a=>a._zod.pattern)){const a=e.options.map(i=>i._zod.pattern);return new RegExp(`^(${a.map(i=>LI(i.source)).join("|")})$`)}});const r=e.options.length===1,n=e.options[0]._zod.run;t._zod.parse=(a,i)=>{if(r)return n(a,i);let s=!1;const o=[];for(const l of e.options){const c=l._zod.run({value:a.value,issues:[]},i);if(c instanceof Promise)o.push(c),s=!0;else{if(c.issues.length===0)return c;o.push(c)}}return s?Promise.all(o).then(l=>C4(l,a,t,i)):C4(o,a,t,i)}}),uhe=vt("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,VG.init(t,e);const r=t._zod.parse;ra(t._zod,"propValues",()=>{const a={};for(const i of e.options){const s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invaliddiscriminatedunionoptionatindex"${e.options.indexOf(i)}"`);for(const[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(const c of l)a[o].add(c)}}return a});const n=WS(()=>{const a=e.options,i=new Map;for(const s of a){const o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invaliddiscriminatedunionoptionatindex"${e.options.indexOf(s)}"`);for(const l of o){if(i.has(l))throw new Error(`Duplicatediscriminatorvalue"${String(l)}"`);i.set(l,s)}}return i});t._zod.parse=(a,i)=>{const s=a.value;if(!Mf(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;const o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,i):e.unionFallback?r(a,i):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),a)}}),dhe=vt("$ZodIntersection",(t,e)=>{pa.init(t,e),t._zod.parse=(r,n)=>{const a=r.value,i=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>w4(r,l,c)):w4(r,i,s)}});function RR(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Bp(t)&&Bp(e)){const r=Object.keys(e),n=Object.keys(t).filter(i=>r.indexOf(i)!==-1),a={...t,...e};for(const i of n){const s=RR(t[i],e[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};a[i]=s.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<t.length;n++){const a=t[n],i=e[n],s=RR(a,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function w4(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issues.length&&t.issues.push(...r.issues),ep(t))return t;const n=RR(e.value,r.value);if(!n.valid)throw new Error(`Unmergableintersection.Errorpath:${JSON.stringify(n.mergeErrorPath)}`);return t.value=n.data,t}const hhe=vt("$ZodRecord",(t,e)=>{pa.init(t,e),t._zod.parse=(r,n)=>{const a=r.value;if(!Bp(a))return r.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),r;const i=[],s=e.keyType._zod.values;if(s){r.value={};const o=new Set;for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){o.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:a[c],issues:[]},n);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&r.issues.push(...tp(c,d.issues)),r.value[c]=d.value})):(u.issues.length&&r.issues.push(...tp(c,u.issues)),r.value[c]=u.value)}let l;for(const c in a)o.has(c)||(l=l??[],l.push(c));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{r.value={};for(const o of Reflect.ownKeys(a)){if(o==="__proto__")continue;const l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?r.value[o]=a[o]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(u=>$u(u,n,zu())),input:o,path:[o],inst:t});continue}c
Line truncated
Setthe\`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(constioft.seen.entries()){consts=i[1];if(e===i[0]){a(i);continue}if(t.external){constl=t.external.registry.get(i[0])?.id;if(e!==i[0]&&l){a(i);continue}}if(t.metadataRegistry.get(i[0])?.id){a(i);continue}if(s.cycle){a(i);continue}if(s.count>1&&t.reused==="ref"){a(i);continue}}}functionZG(t,e){constr=t.seen.get(e);if(!r)thrownewError("Unprocessed schema. This is a bug in Zod.");constn=s=>{consto=t.seen.get(s),l=o.def??o.schema,c={...l};if(o.ref===null)return;constu=o.ref;if(o.ref=null,u){n(u);constd=t.seen.get(u).schema;d.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(d)):(Object.assign(l,d),Object.assign(l,c))}o.isParent||t.override({zodSchema:s,jsonSchema:l,path:o.path??[]})};for(constsof[...t.seen.entries()].reverse())n(s[0]);consta={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){consts=t.external.registry.get(e)?.id;if(!s)thrownewError("Schema is missing an `id` property");a.$id=t.external.uri(s)}Object.assign(a,r.def??r.schema);consti=t.external?.defs??{};for(constsoft.seen.entries()){consto=s[1];o.def&&o.defId&&(i[o.defId]=o.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{consts=JSON.parse(JSON.stringify(a));returnObject.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:Eb(e,"input"),output:Eb(e,"output")}},enumerable:!1,writable:!1}),s}catch{thrownewError("Error converting schema to JSON.")}}functionrs(t,e){constr=e??{seen:newSet};if(r.seen.has(t))return!1;r.seen.add(t);constn=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")returnrs(n.element,r);if(n.type==="set")returnrs(n.valueType,r);if(n.type==="lazy")returnrs(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")returnrs(n.innerType,r);if(n.type==="intersection")returnrs(n.left,r)||rs(n.right,r);if(n.type==="record"||n.type==="map")returnrs(n.keyType,r)||rs(n.valueType,r);if(n.type==="pipe")returnrs(n.in,r)||rs(n.out,r);if(n.type==="object"){for(constainn.shape)if(rs(n.shape[a],r))return!0;return!1}if(n.type==="union"){for(constaofn.options)if(rs(a,r))return!0;return!1}if(n.type==="tuple"){for(constaofn.items)if(rs(a,r))return!0;return!!(n.rest&&rs(n.rest,r))}return!1}constype=(t,e={})=>r=>{constn=QG({...r,processors:e});returnhi(t,n),XG(n,t),ZG(n,t)},Eb=(t,e)=>r=>{const{libraryOptions:n,target:a}=r??{},i=QG({...n??{},target:a,io:e,processors:{}});returnhi(t,i),XG(i,t),ZG(i,t)},Tpe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Cpe=(t,e,r,n)=>{consta=r;a.type="string";const{minimum:i,maximum:s,format:o,patterns:l,contentEncoding:c}=t._zod.bag;if(typeofi=="number"&&(a.minLength=i),typeofs=="number"&&(a.maxLength=s),o&&(a.format=Tpe[o]??o,a.format===""&&deletea.format),c&&(a.contentEncoding=c),l&&l.size>0){constu=[...l];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},wpe=(t,e,r,n)=>{consta=r,{minimum:i,maximum:s,format:o,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=t._zod.bag;typeofo=="string"&&o.includes("int")?a.type="integer":a.type="number",typeofu=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u),typeofi=="number"&&(a.minimum=i,typeofu=="number"&&e.target!=="draft-04"&&(u>=i?deletea.minimum:deletea.exclusiveMinimum)),typeofc=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c),typeofs=="number"&&(a.maximum=s,typeofc=="number"&&e.target!=="draft-04"&&(c<=s?deletea.maximum:deletea.exclusiveMaximum)),typeofl=="number"&&(a.multipleOf=l)},Ape=(t,e,r,n)=>{r.type="boolean"},Rpe=(t,e,r,n)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ope=(t,e,r,n)=>{r.not={}},Npe=(t,e,r,n)=>{},Ipe=(t,e,r,n)=>{},xpe=(t,e,r,n)=>{consta=t._zod.def,i=NG(a.entries);i.every(s=>typeofs=="number")&&(r.type="number"),i.every(s=>typeofs=="string")&&(r.type="string"),r.enum=i},Dpe=(t,e,r,n)=>{consta=t._zod.def,i=[];for(constsofa.values)if(s===void0){if(e.unrepresentable==="throw")thrownewError("Literal `undefined` cannot be represented in JSON Schema")}elseif(typeofs=="bigint"){if(e.unrepresentable==="throw")thrownewError("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}elsei.push(s);if(i.length!==0)if(i.length===1){consts=i[0];r.type=s===null?"null":typeofs,e.Line truncated
`:""},this._extScope=O,this._scope=new r.Scope({parent:O}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(O){return this._scope.name(O)}scopeName(O){return this._extScope.name(O)}scopeValue(O,U){const re=this._extScope.value(O,U);return(this._values[re.prefix]||(this._values[re.prefix]=new Set)).add(re),re}getScopeValue(O,U){return this._extScope.getValue(O,U)}scopeRefs(O){return this._extScope.scopeRefs(O,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(O,U,re,te){const ue=this._scope.toName(U);return re!==void 0&&te&&(this._constants[ue.str]=re),this._leafNode(new s(O,ue,re)),ue}const(O,U,re){return this._def(r.varKinds.const,O,U,re)}let(O,U,re){return this._def(r.varKinds.let,O,U,re)}var(O,U,re){return this._def(r.varKinds.var,O,U,re)}assign(O,U,re){return this._leafNode(new o(O,U,re))}add(O,U){return this._leafNode(new l(O,t.operators.ADD,U))}code(O){return typeof O=="function"?O():O!==e.nil&&this._leafNode(new h(O)),this}object(...O){const U=["{"];for(const[re,te]of O)U.length>1&&U.push(","),U.push(re),(re!==te||this.opts.es5)&&(U.push(":"),(0,e.addCodeArg)(U,te));return U.push("}"),new e._Code(U)}if(O,U,re){if(this._blockNode(new _(O)),U&&re)this.code(U).else().code(re).endIf();else if(U)this.code(U).endIf();else if(re)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(O){return this._elseNode(new _(O))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(_,b)}_for(O,U){return this._blockNode(O),U&&this.code(U).endFor(),this}for(O,U){return this._for(new E(O),U)}forRange(O,U,re,te,ue=this.opts.es5?r.varKinds.var:r.varKinds.let){const de=this._scope.toName(O);return this._for(new y(ue,de,U,re),()=>te(de))}forOf(O,U,re,te=r.varKinds.const){const ue=this._scope.toName(O);if(this.opts.es5){const de=U instanceof e.Name?U:this.var("_arr",U);return this.forRange("_i",0,(0,e._)`${de}.length`,_e=>{this.var(ue,(0,e._)`${de}[${_e}]`),re(ue)})}return this._for(new v("of",te,ue,U),()=>re(ue))}forIn(O,U,re,te=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(O,(0,e._)`Object.keys(${U})`,re);const ue=this._scope.toName(O);return this._for(new v("in",te,ue,U),()=>re(ue))}endFor(){return this._endBlockNode(S)}label(O){return this._leafNode(new c(O))}break(O){return this._leafNode(new u(O))}return(O){const U=new w;if(this._blockNode(U),this.code(O),U.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(O,U,re){if(!U&&!re)throw new Error('CodeGen: "try" without "catch" and "finally"');const te=new A;if(this._blockNode(te),this.code(O),U){const ue=this.name("e");this._currNode=te.catch=new I(ue),U(ue)}return re&&(this._currNode=te.finally=new x,this.code(re)),this._endBlockNode(I,x)}throw(O){return this._leafNode(new d(O))}block(O,U){return this._blockStarts.push(this._nodes.length),O&&this.code(O).endBlock(U),this}endBlock(O){const U=this._blockStarts.pop();if(U===void 0)throw new Error("CodeGen: not in self-balancing block");const re=this._nodes.length-U;if(re<0||O!==void 0&&re!==O)throw new Error(`CodeGen:wrongnumberofnodes:${re}vs${O}expected`);return this._nodes.length=U,this}func(O,U=e.nil,re,te){return this._blockNode(new T(O,U,re)),te&&this.code(te).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(O=1){for(;O-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(O){return this._currNode.nodes.push(O),this}_blockNode(O){this._currNode.nodes.push(O),this._nodes.push(O)}_endBlockNode(O,U){const re=this._currNode;if(re instanceof O||U&&re instanceof U)return this._nodes.pop(),this;throw new Error(`CodeGen:notinblock"${U?`${O.kind}/${U.kind}`:O.kind}"`)}_elseNode(O){const U=this._currNode;if(!(U instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=U.else=O,this}get _root(){return this._nodes[0]}get _currNode(){const O=this._nodes;return O[O.length-1]}set _currNode(O){const U=this._nodes;U[U.length-1]=O}}t.CodeGen=D;function $(N,O){for(const U in O)N[U]=(N[U]||0)+(O[U]||0);return N}function H(N,O){return O instanceof e._CodeOrName?$(N,O.names):N}function G(N,O,U){if(N instanceof e.Name)return re(N);if(!te(N))return N;return new e._Code(N._items.reduce((ue,de)=>(de instanceof e.Name&&(de=re(de)),de instanceof e._Code?ue.push(...de._items):ue.push(de),ue),[]));function re(ue){const de=U[ue.str];return de===void 0||O[ue.str]!==1?ue:(delete O[ue.str],de)}function te(ue){return ue instanceof e._Code&&ue._items.some(de=>de instanceof e.Name&&O[de.str]===1&&U[de.str]!==void 0)}}function K(N,O){for(const U in O)N[U]=(N[U]||0)-(O[U]||0)}function z(N){return typeof N=="boolean"||typeof N=="number"||N===null?!N:(0,e._)`!${Z(N)}`}t.not=z;const ne=B(t.operators.AND);function W(...N){return N.reduce(ne)}t.and=W;const ie=B(t.operators.OR);function M(...N){return N.reduce(ie)}t.or=M;function B(N){return(O,U)=>O===e.nil?U:U===e.nil?O:(0,e._
Line truncated
Setthe\`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(constioft.seen.entries()){consts=i[1];if(e===i[0]){a(i);continue}if(t.external){constl=t.external.registry.get(i[0])?.id;if(e!==i[0]&&l){a(i);continue}}if(t.metadataRegistry.get(i[0])?.id){a(i);continue}if(s.cycle){a(i);continue}if(s.count>1&&t.reused==="ref"){a(i);continue}}}functionZG(t,e){constr=t.seen.get(e);if(!r)thrownewError("Unprocessed schema. This is a bug in Zod.");constn=s=>{consto=t.seen.get(s),l=o.def??o.schema,c={...l};if(o.ref===null)return;constu=o.ref;if(o.ref=null,u){n(u);constd=t.seen.get(u).schema;d.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(d)):(Object.assign(l,d),Object.assign(l,c))}o.isParent||t.override({zodSchema:s,jsonSchema:l,path:o.path??[]})};for(constsof[...t.seen.entries()].reverse())n(s[0]);consta={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){consts=t.external.registry.get(e)?.id;if(!s)thrownewError("Schema is missing an `id` property");a.$id=t.external.uri(s)}Object.assign(a,r.def??r.schema);consti=t.external?.defs??{};for(constsoft.seen.entries()){consto=s[1];o.def&&o.defId&&(i[o.defId]=o.def)}t.external||Object.keys(i).length>0&&(t.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{consts=JSON.parse(JSON.stringify(a));returnObject.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:Eb(e,"input"),output:Eb(e,"output")}},enumerable:!1,writable:!1}),s}catch{thrownewError("Error converting schema to JSON.")}}functionrs(t,e){constr=e??{seen:newSet};if(r.seen.has(t))return!1;r.seen.add(t);constn=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")returnrs(n.element,r);if(n.type==="set")returnrs(n.valueType,r);if(n.type==="lazy")returnrs(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")returnrs(n.innerType,r);if(n.type==="intersection")returnrs(n.left,r)||rs(n.right,r);if(n.type==="record"||n.type==="map")returnrs(n.keyType,r)||rs(n.valueType,r);if(n.type==="pipe")returnrs(n.in,r)||rs(n.out,r);if(n.type==="object"){for(constainn.shape)if(rs(n.shape[a],r))return!0;return!1}if(n.type==="union"){for(constaofn.options)if(rs(a,r))return!0;return!1}if(n.type==="tuple"){for(constaofn.items)if(rs(a,r))return!0;return!!(n.rest&&rs(n.rest,r))}return!1}constype=(t,e={})=>r=>{constn=QG({...r,processors:e});returnhi(t,n),XG(n,t),ZG(n,t)},Eb=(t,e)=>r=>{const{libraryOptions:n,target:a}=r??{},i=QG({...n??{},target:a,io:e,processors:{}});returnhi(t,i),XG(i,t),ZG(i,t)},Tpe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Cpe=(t,e,r,n)=>{consta=r;a.type="string";const{minimum:i,maximum:s,format:o,patterns:l,contentEncoding:c}=t._zod.bag;if(typeofi=="number"&&(a.minLength=i),typeofs=="number"&&(a.maxLength=s),o&&(a.format=Tpe[o]??o,a.format===""&&deletea.format),c&&(a.contentEncoding=c),l&&l.size>0){constu=[...l];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},wpe=(t,e,r,n)=>{consta=r,{minimum:i,maximum:s,format:o,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=t._zod.bag;typeofo=="string"&&o.includes("int")?a.type="integer":a.type="number",typeofu=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u),typeofi=="number"&&(a.minimum=i,typeofu=="number"&&e.target!=="draft-04"&&(u>=i?deletea.minimum:deletea.exclusiveMinimum)),typeofc=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c),typeofs=="number"&&(a.maximum=s,typeofc=="number"&&e.target!=="draft-04"&&(c<=s?deletea.maximum:deletea.exclusiveMaximum)),typeofl=="number"&&(a.multipleOf=l)},Ape=(t,e,r,n)=>{r.type="boolean"},Rpe=(t,e,r,n)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ope=(t,e,r,n)=>{r.not={}},Npe=(t,e,r,n)=>{},Ipe=(t,e,r,n)=>{},xpe=(t,e,r,n)=>{consta=t._zod.def,i=NG(a.entries);i.every(s=>typeofs=="number")&&(r.type="number"),i.every(s=>typeofs=="string")&&(r.type="string"),r.enum=i},Dpe=(t,e,r,n)=>{consta=t._zod.def,i=[];for(constsofa.values)if(s===void0){if(e.unrepresentable==="throw")thrownewError("Literal `undefined` cannot be represented in JSON Schema")}elseif(typeofs=="bigint"){if(e.unrepresentable==="throw")thrownewError("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}elsei.push(s);if(i.length!==0)if(i.length===1){consts=i[0];r.type=s===null?"null":typeofs,e.Line truncated
`:""},this._extScope=O,this._scope=new r.Scope({parent:O}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(O){return this._scope.name(O)}scopeName(O){return this._extScope.name(O)}scopeValue(O,U){const re=this._extScope.value(O,U);return(this._values[re.prefix]||(this._values[re.prefix]=new Set)).add(re),re}getScopeValue(O,U){return this._extScope.getValue(O,U)}scopeRefs(O){return this._extScope.scopeRefs(O,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(O,U,re,te){const ue=this._scope.toName(U);return re!==void 0&&te&&(this._constants[ue.str]=re),this._leafNode(new s(O,ue,re)),ue}const(O,U,re){return this._def(r.varKinds.const,O,U,re)}let(O,U,re){return this._def(r.varKinds.let,O,U,re)}var(O,U,re){return this._def(r.varKinds.var,O,U,re)}assign(O,U,re){return this._leafNode(new o(O,U,re))}add(O,U){return this._leafNode(new l(O,t.operators.ADD,U))}code(O){return typeof O=="function"?O():O!==e.nil&&this._leafNode(new h(O)),this}object(...O){const U=["{"];for(const[re,te]of O)U.length>1&&U.push(","),U.push(re),(re!==te||this.opts.es5)&&(U.push(":"),(0,e.addCodeArg)(U,te));return U.push("}"),new e._Code(U)}if(O,U,re){if(this._blockNode(new _(O)),U&&re)this.code(U).else().code(re).endIf();else if(U)this.code(U).endIf();else if(re)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(O){return this._elseNode(new _(O))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(_,b)}_for(O,U){return this._blockNode(O),U&&this.code(U).endFor(),this}for(O,U){return this._for(new E(O),U)}forRange(O,U,re,te,ue=this.opts.es5?r.varKinds.var:r.varKinds.let){const de=this._scope.toName(O);return this._for(new y(ue,de,U,re),()=>te(de))}forOf(O,U,re,te=r.varKinds.const){const ue=this._scope.toName(O);if(this.opts.es5){const de=U instanceof e.Name?U:this.var("_arr",U);return this.forRange("_i",0,(0,e._)`${de}.length`,_e=>{this.var(ue,(0,e._)`${de}[${_e}]`),re(ue)})}return this._for(new v("of",te,ue,U),()=>re(ue))}forIn(O,U,re,te=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(O,(0,e._)`Object.keys(${U})`,re);const ue=this._scope.toName(O);return this._for(new v("in",te,ue,U),()=>re(ue))}endFor(){return this._endBlockNode(S)}label(O){return this._leafNode(new c(O))}break(O){return this._leafNode(new u(O))}return(O){const U=new w;if(this._blockNode(U),this.code(O),U.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(O,U,re){if(!U&&!re)throw new Error('CodeGen: "try" without "catch" and "finally"');const te=new A;if(this._blockNode(te),this.code(O),U){const ue=this.name("e");this._currNode=te.catch=new I(ue),U(ue)}return re&&(this._currNode=te.finally=new x,this.code(re)),this._endBlockNode(I,x)}throw(O){return this._leafNode(new d(O))}block(O,U){return this._blockStarts.push(this._nodes.length),O&&this.code(O).endBlock(U),this}endBlock(O){const U=this._blockStarts.pop();if(U===void 0)throw new Error("CodeGen: not in self-balancing block");const re=this._nodes.length-U;if(re<0||O!==void 0&&re!==O)throw new Error(`CodeGen:wrongnumberofnodes:${re}vs${O}expected`);return this._nodes.length=U,this}func(O,U=e.nil,re,te){return this._blockNode(new T(O,U,re)),te&&this.code(te).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(O=1){for(;O-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(O){return this._currNode.nodes.push(O),this}_blockNode(O){this._currNode.nodes.push(O),this._nodes.push(O)}_endBlockNode(O,U){const re=this._currNode;if(re instanceof O||U&&re instanceof U)return this._nodes.pop(),this;throw new Error(`CodeGen:notinblock"${U?`${O.kind}/${U.kind}`:O.kind}"`)}_elseNode(O){const U=this._currNode;if(!(U instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=U.else=O,this}get _root(){return this._nodes[0]}get _currNode(){const O=this._nodes;return O[O.length-1]}set _currNode(O){const U=this._nodes;U[U.length-1]=O}}t.CodeGen=D;function $(N,O){for(const U in O)N[U]=(N[U]||0)+(O[U]||0);return N}function H(N,O){return O instanceof e._CodeOrName?$(N,O.names):N}function G(N,O,U){if(N instanceof e.Name)return re(N);if(!te(N))return N;return new e._Code(N._items.reduce((ue,de)=>(de instanceof e.Name&&(de=re(de)),de instanceof e._Code?ue.push(...de._items):ue.push(de),ue),[]));function re(ue){const de=U[ue.str];return de===void 0||O[ue.str]!==1?ue:(delete O[ue.str],de)}function te(ue){return ue instanceof e._Code&&ue._items.some(de=>de instanceof e.Name&&O[de.str]===1&&U[de.str]!==void 0)}}function K(N,O){for(const U in O)N[U]=(N[U]||0)-(O[U]||0)}function z(N){return typeof N=="boolean"||typeof N=="number"||N===null?!N:(0,e._)`!${Z(N)}`}t.not=z;const ne=B(t.operators.AND);function W(...N){return N.reduce(ne)}t.and=W;const ie=B(t.operators.OR);function M(...N){return N.reduce(ie)}t.or=M;function B(N){return(O,U)=>O===e.nil?U:U===e.nil?O:(0,e._
Line truncated
deps:${u}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(l){const[c,u]=i(l);s(l,c),o(l,u)}};function i({schema:l}){const c={},u={};for(const d in l){if(d==="__proto__")continue;const h=Array.isArray(l[d])?c:u;h[d]=l[d]}return[c,u]}function s(l,c=l.schema){const{gen:u,data:d,it:h}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const f in c){const g=c[f];if(g.length===0)continue;const b=(0,n.propertyInData)(u,d,f,h.opts.ownProperties);l.setParams({property:f,depsCount:g.length,deps:g.join(", ")}),h.allErrors?u.if(b,()=>{for(const _ of g)(0,n.checkReportMissingProp)(l,_)}):(u.if((0,e._)`${b}&&(${(0,n.checkMissingProp)(l,g,m)})`),(0,n.reportMissingProp)(l,m),u.else())}}t.validatePropertyDeps=s;function o(l,c=l.schema){const{gen:u,data:d,keyword:h,it:m}=l,f=u.name("valid");for(const g in c)(0,r.alwaysValidSchema)(m,c[g])||(u.if((0,n.propertyInData)(u,d,g,m.opts.ownProperties),()=>{const b=l.subschema({keyword:h,schemaProp:g},f);l.mergeValidEvaluated(b,f)},()=>u.var(f,!0)),l.ok(f))}t.validateSchemaDeps=o,t.default=a}(Ew)),Ew}var Y_={},FP;function C_e(){if(FP)return Y_;FP=1,Object.defineProperty(Y_,"__esModule",{value:!0});const t=Rn(),e=zn(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,t._)`{propertyName:${a.propertyName}}`},code(a){const{gen:i,schema:s,data:o,it:l}=a;if((0,e.alwaysValidSchema)(l,s))return;const c=i.name("valid");i.forIn("key",o,u=>{a.setParams({propertyName:u}),a.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),i.if((0,t.not)(c),()=>{a.error(!0),l.allErrors||i.break()})}),a.ok(c)}};return Y_.default=n,Y_}var V_={},BP;function Vq(){if(BP)return V_;BP=1,Object.defineProperty(V_,"__esModule",{value:!0});const t=pl(),e=Rn(),r=nd(),n=zn(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty:${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:c,data:u,errsCount:d,it:h}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:m,opts:f}=h;if(h.props=!0,f.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,l))return;const g=(0,t.allSchemaProperties)(c.properties),b=(0,t.allSchemaProperties)(c.patternProperties);_(),s.ok((0,e._)`${d}===${r.default.errors}`);function _(){o.forIn("key",u,T=>{!g.length&&!b.length?y(T):o.if(S(T),()=>y(T))})}function S(T){let w;if(g.length>8){const A=(0,n.schemaRefOrVal)(h,c.properties,"properties");w=(0,t.isOwnProperty)(o,A,T)}else g.length?w=(0,e.or)(...g.map(A=>(0,e._)`${T}===${A}`)):w=e.nil;return b.length&&(w=(0,e.or)(w,...b.map(A=>(0,e._)`${(0,t.usePattern)(s,A)}.test(${T})`))),(0,e.not)(w)}function E(T){o.code((0,e._)`delete${u}[${T}]`)}function y(T){if(f.removeAdditional==="all"||f.removeAdditional&&l===!1){E(T);return}if(l===!1){s.setParams({additionalProperty:T}),s.error(),m||o.break();return}if(typeof l=="object"&&!(0,n.alwaysValidSchema)(h,l)){const w=o.name("valid");f.removeAdditional==="failing"?(v(T,w,!1),o.if((0,e.not)(w),()=>{s.reset(),E(T)})):(v(T,w),m||o.if((0,e.not)(w),()=>o.break()))}}function v(T,w,A){const I={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};A===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(I,w)}}};return V_.default=i,V_}var W_={},UP;function w_e(){if(UP)return W_;UP=1,Object.defineProperty(W_,"__esModule",{value:!0});const t=aE(),e=pl(),r=zn(),n=Vq(),a={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,parentSchema:l,data:c,it:u}=i;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(u,n.default,"additionalProperties"));const d=(0,e.allSchemaProperties)(o);for(const b of d)u.definedProperties.add(b);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),u.props));const h=d.filter(b=>!(0,r.alwaysValidSchema)(u,o[b]));if(h.length===0)return;const m=s.name("valid");for(const b of h)f(b)?g(b):(s.if((0,e.propertyInData)(s,c,b,u.opts.ownProperties)),g(b),u.allErrors||s.else().var(m,!0),s.endIf()),i.it.definedProperties.add(b),i.ok(m);function f(b){return u.opts.useDefaults&&!u.compositeRule&&o[b].default!==void 0}function g(b){i.subschema({keyword:"properties",schemaProp:b,dataProp:b},m)}}};return W_.default=a,W_}var K_={},GP;function A_e(){if(GP)return K_;GP=1,Object.defineProperty(K_,"__esModule",{value:!0});const t=pl(),e=Rn(),r=zn(),n=zn(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,data:l,parentSchema:c,it:u}=i,{opts:d}=u,h=(0,t.allSchemaProperties)(o),m=h.filter(y=>(0,r.alwaysValidSchema)(u,o[y]));if(h.length===0||m.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const f=d.strictSchema&&!d.allowMatch
Line truncated
`:""},this._extScope=O,this._scope=new r.Scope({parent:O}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(O){return this._scope.name(O)}scopeName(O){return this._extScope.name(O)}scopeValue(O,U){const re=this._extScope.value(O,U);return(this._values[re.prefix]||(this._values[re.prefix]=new Set)).add(re),re}getScopeValue(O,U){return this._extScope.getValue(O,U)}scopeRefs(O){return this._extScope.scopeRefs(O,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(O,U,re,te){const ue=this._scope.toName(U);return re!==void 0&&te&&(this._constants[ue.str]=re),this._leafNode(new s(O,ue,re)),ue}const(O,U,re){return this._def(r.varKinds.const,O,U,re)}let(O,U,re){return this._def(r.varKinds.let,O,U,re)}var(O,U,re){return this._def(r.varKinds.var,O,U,re)}assign(O,U,re){return this._leafNode(new o(O,U,re))}add(O,U){return this._leafNode(new l(O,t.operators.ADD,U))}code(O){return typeof O=="function"?O():O!==e.nil&&this._leafNode(new h(O)),this}object(...O){const U=["{"];for(const[re,te]of O)U.length>1&&U.push(","),U.push(re),(re!==te||this.opts.es5)&&(U.push(":"),(0,e.addCodeArg)(U,te));return U.push("}"),new e._Code(U)}if(O,U,re){if(this._blockNode(new _(O)),U&&re)this.code(U).else().code(re).endIf();else if(U)this.code(U).endIf();else if(re)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(O){return this._elseNode(new _(O))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(_,b)}_for(O,U){return this._blockNode(O),U&&this.code(U).endFor(),this}for(O,U){return this._for(new E(O),U)}forRange(O,U,re,te,ue=this.opts.es5?r.varKinds.var:r.varKinds.let){const de=this._scope.toName(O);return this._for(new y(ue,de,U,re),()=>te(de))}forOf(O,U,re,te=r.varKinds.const){const ue=this._scope.toName(O);if(this.opts.es5){const de=U instanceof e.Name?U:this.var("_arr",U);return this.forRange("_i",0,(0,e._)`${de}.length`,_e=>{this.var(ue,(0,e._)`${de}[${_e}]`),re(ue)})}return this._for(new v("of",te,ue,U),()=>re(ue))}forIn(O,U,re,te=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(O,(0,e._)`Object.keys(${U})`,re);const ue=this._scope.toName(O);return this._for(new v("in",te,ue,U),()=>re(ue))}endFor(){return this._endBlockNode(S)}label(O){return this._leafNode(new c(O))}break(O){return this._leafNode(new u(O))}return(O){const U=new w;if(this._blockNode(U),this.code(O),U.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(O,U,re){if(!U&&!re)throw new Error('CodeGen: "try" without "catch" and "finally"');const te=new A;if(this._blockNode(te),this.code(O),U){const ue=this.name("e");this._currNode=te.catch=new I(ue),U(ue)}return re&&(this._currNode=te.finally=new x,this.code(re)),this._endBlockNode(I,x)}throw(O){return this._leafNode(new d(O))}block(O,U){return this._blockStarts.push(this._nodes.length),O&&this.code(O).endBlock(U),this}endBlock(O){const U=this._blockStarts.pop();if(U===void 0)throw new Error("CodeGen: not in self-balancing block");const re=this._nodes.length-U;if(re<0||O!==void 0&&re!==O)throw new Error(`CodeGen:wrongnumberofnodes:${re}vs${O}expected`);return this._nodes.length=U,this}func(O,U=e.nil,re,te){return this._blockNode(new T(O,U,re)),te&&this.code(te).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(O=1){for(;O-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(O){return this._currNode.nodes.push(O),this}_blockNode(O){this._currNode.nodes.push(O),this._nodes.push(O)}_endBlockNode(O,U){const re=this._currNode;if(re instanceof O||U&&re instanceof U)return this._nodes.pop(),this;throw new Error(`CodeGen:notinblock"${U?`${O.kind}/${U.kind}`:O.kind}"`)}_elseNode(O){const U=this._currNode;if(!(U instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=U.else=O,this}get _root(){return this._nodes[0]}get _currNode(){const O=this._nodes;return O[O.length-1]}set _currNode(O){const U=this._nodes;U[U.length-1]=O}}t.CodeGen=D;function $(N,O){for(const U in O)N[U]=(N[U]||0)+(O[U]||0);return N}function H(N,O){return O instanceof e._CodeOrName?$(N,O.names):N}function G(N,O,U){if(N instanceof e.Name)return re(N);if(!te(N))return N;return new e._Code(N._items.reduce((ue,de)=>(de instanceof e.Name&&(de=re(de)),de instanceof e._Code?ue.push(...de._items):ue.push(de),ue),[]));function re(ue){const de=U[ue.str];return de===void 0||O[ue.str]!==1?ue:(delete O[ue.str],de)}function te(ue){return ue instanceof e._Code&&ue._items.some(de=>de instanceof e.Name&&O[de.str]===1&&U[de.str]!==void 0)}}function K(N,O){for(const U in O)N[U]=(N[U]||0)-(O[U]||0)}function z(N){return typeof N=="boolean"||typeof N=="number"||N===null?!N:(0,e._)`!${Z(N)}`}t.not=z;const ne=B(t.operators.AND);function W(...N){return N.reduce(ne)}t.and=W;const ie=B(t.operators.OR);function M(...N){return N.reduce(ie)}t.or=M;function B(N){return(O,U)=>O===e.nil?U:U===e.nil?O:(0,e._
Line truncated
deps:${u}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(l){const[c,u]=i(l);s(l,c),o(l,u)}};function i({schema:l}){const c={},u={};for(const d in l){if(d==="__proto__")continue;const h=Array.isArray(l[d])?c:u;h[d]=l[d]}return[c,u]}function s(l,c=l.schema){const{gen:u,data:d,it:h}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const f in c){const g=c[f];if(g.length===0)continue;const b=(0,n.propertyInData)(u,d,f,h.opts.ownProperties);l.setParams({property:f,depsCount:g.length,deps:g.join(", ")}),h.allErrors?u.if(b,()=>{for(const _ of g)(0,n.checkReportMissingProp)(l,_)}):(u.if((0,e._)`${b}&&(${(0,n.checkMissingProp)(l,g,m)})`),(0,n.reportMissingProp)(l,m),u.else())}}t.validatePropertyDeps=s;function o(l,c=l.schema){const{gen:u,data:d,keyword:h,it:m}=l,f=u.name("valid");for(const g in c)(0,r.alwaysValidSchema)(m,c[g])||(u.if((0,n.propertyInData)(u,d,g,m.opts.ownProperties),()=>{const b=l.subschema({keyword:h,schemaProp:g},f);l.mergeValidEvaluated(b,f)},()=>u.var(f,!0)),l.ok(f))}t.validateSchemaDeps=o,t.default=a}(vw)),vw}var Y_={},FP;function C_e(){if(FP)return Y_;FP=1,Object.defineProperty(Y_,"__esModule",{value:!0});const t=Rn(),e=zn(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,t._)`{propertyName:${a.propertyName}}`},code(a){const{gen:i,schema:s,data:o,it:l}=a;if((0,e.alwaysValidSchema)(l,s))return;const c=i.name("valid");i.forIn("key",o,u=>{a.setParams({propertyName:u}),a.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),i.if((0,t.not)(c),()=>{a.error(!0),l.allErrors||i.break()})}),a.ok(c)}};return Y_.default=n,Y_}var V_={},BP;function Vq(){if(BP)return V_;BP=1,Object.defineProperty(V_,"__esModule",{value:!0});const t=pl(),e=Rn(),r=nd(),n=zn(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty:${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:c,data:u,errsCount:d,it:h}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:m,opts:f}=h;if(h.props=!0,f.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,l))return;const g=(0,t.allSchemaProperties)(c.properties),b=(0,t.allSchemaProperties)(c.patternProperties);_(),s.ok((0,e._)`${d}===${r.default.errors}`);function _(){o.forIn("key",u,T=>{!g.length&&!b.length?y(T):o.if(S(T),()=>y(T))})}function S(T){let w;if(g.length>8){const A=(0,n.schemaRefOrVal)(h,c.properties,"properties");w=(0,t.isOwnProperty)(o,A,T)}else g.length?w=(0,e.or)(...g.map(A=>(0,e._)`${T}===${A}`)):w=e.nil;return b.length&&(w=(0,e.or)(w,...b.map(A=>(0,e._)`${(0,t.usePattern)(s,A)}.test(${T})`))),(0,e.not)(w)}function E(T){o.code((0,e._)`delete${u}[${T}]`)}function y(T){if(f.removeAdditional==="all"||f.removeAdditional&&l===!1){E(T);return}if(l===!1){s.setParams({additionalProperty:T}),s.error(),m||o.break();return}if(typeof l=="object"&&!(0,n.alwaysValidSchema)(h,l)){const w=o.name("valid");f.removeAdditional==="failing"?(v(T,w,!1),o.if((0,e.not)(w),()=>{s.reset(),E(T)})):(v(T,w),m||o.if((0,e.not)(w),()=>o.break()))}}function v(T,w,A){const I={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};A===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(I,w)}}};return V_.default=i,V_}var W_={},UP;function w_e(){if(UP)return W_;UP=1,Object.defineProperty(W_,"__esModule",{value:!0});const t=iE(),e=pl(),r=zn(),n=Vq(),a={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,parentSchema:l,data:c,it:u}=i;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(u,n.default,"additionalProperties"));const d=(0,e.allSchemaProperties)(o);for(const b of d)u.definedProperties.add(b);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),u.props));const h=d.filter(b=>!(0,r.alwaysValidSchema)(u,o[b]));if(h.length===0)return;const m=s.name("valid");for(const b of h)f(b)?g(b):(s.if((0,e.propertyInData)(s,c,b,u.opts.ownProperties)),g(b),u.allErrors||s.else().var(m,!0),s.endIf()),i.it.definedProperties.add(b),i.ok(m);function f(b){return u.opts.useDefaults&&!u.compositeRule&&o[b].default!==void 0}function g(b){i.subschema({keyword:"properties",schemaProp:b,dataProp:b},m)}}};return W_.default=a,W_}var K_={},GP;function A_e(){if(GP)return K_;GP=1,Object.defineProperty(K_,"__esModule",{value:!0});const t=pl(),e=Rn(),r=zn(),n=zn(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,data:l,parentSchema:c,it:u}=i,{opts:d}=u,h=(0,t.allSchemaProperties)(o),m=h.filter(y=>(0,r.alwaysValidSchema)(u,o[y]));if(h.length===0||m.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const f=d.strictSchema&&!d.allowMatch
Line truncated
`:""},this._extScope=O,this._scope=new r.Scope({parent:O}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(O){return this._scope.name(O)}scopeName(O){return this._extScope.name(O)}scopeValue(O,U){const re=this._extScope.value(O,U);return(this._values[re.prefix]||(this._values[re.prefix]=new Set)).add(re),re}getScopeValue(O,U){return this._extScope.getValue(O,U)}scopeRefs(O){return this._extScope.scopeRefs(O,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(O,U,re,te){const ue=this._scope.toName(U);return re!==void 0&&te&&(this._constants[ue.str]=re),this._leafNode(new s(O,ue,re)),ue}const(O,U,re){return this._def(r.varKinds.const,O,U,re)}let(O,U,re){return this._def(r.varKinds.let,O,U,re)}var(O,U,re){return this._def(r.varKinds.var,O,U,re)}assign(O,U,re){return this._leafNode(new o(O,U,re))}add(O,U){return this._leafNode(new l(O,t.operators.ADD,U))}code(O){return typeof O=="function"?O():O!==e.nil&&this._leafNode(new h(O)),this}object(...O){const U=["{"];for(const[re,te]of O)U.length>1&&U.push(","),U.push(re),(re!==te||this.opts.es5)&&(U.push(":"),(0,e.addCodeArg)(U,te));return U.push("}"),new e._Code(U)}if(O,U,re){if(this._blockNode(new _(O)),U&&re)this.code(U).else().code(re).endIf();else if(U)this.code(U).endIf();else if(re)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(O){return this._elseNode(new _(O))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(_,b)}_for(O,U){return this._blockNode(O),U&&this.code(U).endFor(),this}for(O,U){return this._for(new E(O),U)}forRange(O,U,re,te,ue=this.opts.es5?r.varKinds.var:r.varKinds.let){const de=this._scope.toName(O);return this._for(new y(ue,de,U,re),()=>te(de))}forOf(O,U,re,te=r.varKinds.const){const ue=this._scope.toName(O);if(this.opts.es5){const de=U instanceof e.Name?U:this.var("_arr",U);return this.forRange("_i",0,(0,e._)`${de}.length`,_e=>{this.var(ue,(0,e._)`${de}[${_e}]`),re(ue)})}return this._for(new v("of",te,ue,U),()=>re(ue))}forIn(O,U,re,te=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(O,(0,e._)`Object.keys(${U})`,re);const ue=this._scope.toName(O);return this._for(new v("in",te,ue,U),()=>re(ue))}endFor(){return this._endBlockNode(S)}label(O){return this._leafNode(new c(O))}break(O){return this._leafNode(new u(O))}return(O){const U=new w;if(this._blockNode(U),this.code(O),U.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(O,U,re){if(!U&&!re)throw new Error('CodeGen: "try" without "catch" and "finally"');const te=new A;if(this._blockNode(te),this.code(O),U){const ue=this.name("e");this._currNode=te.catch=new I(ue),U(ue)}return re&&(this._currNode=te.finally=new x,this.code(re)),this._endBlockNode(I,x)}throw(O){return this._leafNode(new d(O))}block(O,U){return this._blockStarts.push(this._nodes.length),O&&this.code(O).endBlock(U),this}endBlock(O){const U=this._blockStarts.pop();if(U===void 0)throw new Error("CodeGen: not in self-balancing block");const re=this._nodes.length-U;if(re<0||O!==void 0&&re!==O)throw new Error(`CodeGen:wrongnumberofnodes:${re}vs${O}expected`);return this._nodes.length=U,this}func(O,U=e.nil,re,te){return this._blockNode(new T(O,U,re)),te&&this.code(te).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(O=1){for(;O-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(O){return this._currNode.nodes.push(O),this}_blockNode(O){this._currNode.nodes.push(O),this._nodes.push(O)}_endBlockNode(O,U){const re=this._currNode;if(re instanceof O||U&&re instanceof U)return this._nodes.pop(),this;throw new Error(`CodeGen:notinblock"${U?`${O.kind}/${U.kind}`:O.kind}"`)}_elseNode(O){const U=this._currNode;if(!(U instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=U.else=O,this}get _root(){return this._nodes[0]}get _currNode(){const O=this._nodes;return O[O.length-1]}set _currNode(O){const U=this._nodes;U[U.length-1]=O}}t.CodeGen=D;function $(N,O){for(const U in O)N[U]=(N[U]||0)+(O[U]||0);return N}function H(N,O){return O instanceof e._CodeOrName?$(N,O.names):N}function G(N,O,U){if(N instanceof e.Name)return re(N);if(!te(N))return N;return new e._Code(N._items.reduce((ue,de)=>(de instanceof e.Name&&(de=re(de)),de instanceof e._Code?ue.push(...de._items):ue.push(de),ue),[]));function re(ue){const de=U[ue.str];return de===void 0||O[ue.str]!==1?ue:(delete O[ue.str],de)}function te(ue){return ue instanceof e._Code&&ue._items.some(de=>de instanceof e.Name&&O[de.str]===1&&U[de.str]!==void 0)}}function K(N,O){for(const U in O)N[U]=(N[U]||0)-(O[U]||0)}function z(N){return typeof N=="boolean"||typeof N=="number"||N===null?!N:(0,e._)`!${Z(N)}`}t.not=z;const ne=B(t.operators.AND);function W(...N){return N.reduce(ne)}t.and=W;const ie=B(t.operators.OR);function M(...N){return N.reduce(ie)}t.or=M;function B(N){return(O,U)=>O===e.nil?U:U===e.nil?O:(0,e._
Line truncated
deps:${u}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(l){const[c,u]=i(l);s(l,c),o(l,u)}};function i({schema:l}){const c={},u={};for(const d in l){if(d==="__proto__")continue;const h=Array.isArray(l[d])?c:u;h[d]=l[d]}return[c,u]}function s(l,c=l.schema){const{gen:u,data:d,it:h}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const f in c){const g=c[f];if(g.length===0)continue;const b=(0,n.propertyInData)(u,d,f,h.opts.ownProperties);l.setParams({property:f,depsCount:g.length,deps:g.join(", ")}),h.allErrors?u.if(b,()=>{for(const _ of g)(0,n.checkReportMissingProp)(l,_)}):(u.if((0,e._)`${b}&&(${(0,n.checkMissingProp)(l,g,m)})`),(0,n.reportMissingProp)(l,m),u.else())}}t.validatePropertyDeps=s;function o(l,c=l.schema){const{gen:u,data:d,keyword:h,it:m}=l,f=u.name("valid");for(const g in c)(0,r.alwaysValidSchema)(m,c[g])||(u.if((0,n.propertyInData)(u,d,g,m.opts.ownProperties),()=>{const b=l.subschema({keyword:h,schemaProp:g},f);l.mergeValidEvaluated(b,f)},()=>u.var(f,!0)),l.ok(f))}t.validateSchemaDeps=o,t.default=a}(Nw)),Nw}var I0={},W6;function I0e(){if(W6)return I0;W6=1,Object.defineProperty(I0,"__esModule",{value:!0});const t=fn(),e=$n(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,t._)`{propertyName:${a.propertyName}}`},code(a){const{gen:i,schema:s,data:o,it:l}=a;if((0,e.alwaysValidSchema)(l,s))return;const c=i.name("valid");i.forIn("key",o,u=>{a.setParams({propertyName:u}),a.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),i.if((0,t.not)(c),()=>{a.error(!0),l.allErrors||i.break()})}),a.ok(c)}};return I0.default=n,I0}var x0={},K6;function Xq(){if(K6)return x0;K6=1,Object.defineProperty(x0,"__esModule",{value:!0});const t=ml(),e=fn(),r=ad(),n=$n(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty:${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:c,data:u,errsCount:d,it:h}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:m,opts:f}=h;if(h.props=!0,f.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,l))return;const g=(0,t.allSchemaProperties)(c.properties),b=(0,t.allSchemaProperties)(c.patternProperties);_(),s.ok((0,e._)`${d}===${r.default.errors}`);function _(){o.forIn("key",u,T=>{!g.length&&!b.length?y(T):o.if(S(T),()=>y(T))})}function S(T){let w;if(g.length>8){const A=(0,n.schemaRefOrVal)(h,c.properties,"properties");w=(0,t.isOwnProperty)(o,A,T)}else g.length?w=(0,e.or)(...g.map(A=>(0,e._)`${T}===${A}`)):w=e.nil;return b.length&&(w=(0,e.or)(w,...b.map(A=>(0,e._)`${(0,t.usePattern)(s,A)}.test(${T})`))),(0,e.not)(w)}function E(T){o.code((0,e._)`delete${u}[${T}]`)}function y(T){if(f.removeAdditional==="all"||f.removeAdditional&&l===!1){E(T);return}if(l===!1){s.setParams({additionalProperty:T}),s.error(),m||o.break();return}if(typeof l=="object"&&!(0,n.alwaysValidSchema)(h,l)){const w=o.name("valid");f.removeAdditional==="failing"?(v(T,w,!1),o.if((0,e.not)(w),()=>{s.reset(),E(T)})):(v(T,w),m||o.if((0,e.not)(w),()=>o.break()))}}function v(T,w,A){const I={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};A===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(I,w)}}};return x0.default=i,x0}var D0={},j6;function x0e(){if(j6)return D0;j6=1,Object.defineProperty(D0,"__esModule",{value:!0});const t=lE(),e=ml(),r=$n(),n=Xq(),a={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,parentSchema:l,data:c,it:u}=i;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(u,n.default,"additionalProperties"));const d=(0,e.allSchemaProperties)(o);for(const b of d)u.definedProperties.add(b);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),u.props));const h=d.filter(b=>!(0,r.alwaysValidSchema)(u,o[b]));if(h.length===0)return;const m=s.name("valid");for(const b of h)f(b)?g(b):(s.if((0,e.propertyInData)(s,c,b,u.opts.ownProperties)),g(b),u.allErrors||s.else().var(m,!0),s.endIf()),i.it.definedProperties.add(b),i.ok(m);function f(b){return u.opts.useDefaults&&!u.compositeRule&&o[b].default!==void 0}function g(b){i.subschema({keyword:"properties",schemaProp:b,dataProp:b},m)}}};return D0.default=a,D0}var M0={},Q6;function D0e(){if(Q6)return M0;Q6=1,Object.defineProperty(M0,"__esModule",{value:!0});const t=ml(),e=fn(),r=$n(),n=$n(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,data:l,parentSchema:c,it:u}=i,{opts:d}=u,h=(0,t.allSchemaProperties)(o),m=h.filter(y=>(0,r.alwaysValidSchema)(u,o[y]));if(h.length===0||m.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const f=d.strictSchema&&!d.allowMatch
Line truncated
deps:${u}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(l){const[c,u]=i(l);s(l,c),o(l,u)}};function i({schema:l}){const c={},u={};for(const d in l){if(d==="__proto__")continue;const h=Array.isArray(l[d])?c:u;h[d]=l[d]}return[c,u]}function s(l,c=l.schema){const{gen:u,data:d,it:h}=l;if(Object.keys(c).length===0)return;const m=u.let("missing");for(const f in c){const g=c[f];if(g.length===0)continue;const b=(0,n.propertyInData)(u,d,f,h.opts.ownProperties);l.setParams({property:f,depsCount:g.length,deps:g.join(", ")}),h.allErrors?u.if(b,()=>{for(const _ of g)(0,n.checkReportMissingProp)(l,_)}):(u.if((0,e._)`${b}&&(${(0,n.checkMissingProp)(l,g,m)})`),(0,n.reportMissingProp)(l,m),u.else())}}t.validatePropertyDeps=s;function o(l,c=l.schema){const{gen:u,data:d,keyword:h,it:m}=l,f=u.name("valid");for(const g in c)(0,r.alwaysValidSchema)(m,c[g])||(u.if((0,n.propertyInData)(u,d,g,m.opts.ownProperties),()=>{const b=l.subschema({keyword:h,schemaProp:g},f);l.mergeValidEvaluated(b,f)},()=>u.var(f,!0)),l.ok(f))}t.validateSchemaDeps=o,t.default=a}(Iw)),Iw}var I0={},W6;function I0e(){if(W6)return I0;W6=1,Object.defineProperty(I0,"__esModule",{value:!0});const t=fn(),e=$n(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,t._)`{propertyName:${a.propertyName}}`},code(a){const{gen:i,schema:s,data:o,it:l}=a;if((0,e.alwaysValidSchema)(l,s))return;const c=i.name("valid");i.forIn("key",o,u=>{a.setParams({propertyName:u}),a.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),i.if((0,t.not)(c),()=>{a.error(!0),l.allErrors||i.break()})}),a.ok(c)}};return I0.default=n,I0}var x0={},K6;function Xq(){if(K6)return x0;K6=1,Object.defineProperty(x0,"__esModule",{value:!0});const t=ml(),e=fn(),r=ad(),n=$n(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty:${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:c,data:u,errsCount:d,it:h}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:m,opts:f}=h;if(h.props=!0,f.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,l))return;const g=(0,t.allSchemaProperties)(c.properties),b=(0,t.allSchemaProperties)(c.patternProperties);_(),s.ok((0,e._)`${d}===${r.default.errors}`);function _(){o.forIn("key",u,T=>{!g.length&&!b.length?y(T):o.if(S(T),()=>y(T))})}function S(T){let w;if(g.length>8){const A=(0,n.schemaRefOrVal)(h,c.properties,"properties");w=(0,t.isOwnProperty)(o,A,T)}else g.length?w=(0,e.or)(...g.map(A=>(0,e._)`${T}===${A}`)):w=e.nil;return b.length&&(w=(0,e.or)(w,...b.map(A=>(0,e._)`${(0,t.usePattern)(s,A)}.test(${T})`))),(0,e.not)(w)}function E(T){o.code((0,e._)`delete${u}[${T}]`)}function y(T){if(f.removeAdditional==="all"||f.removeAdditional&&l===!1){E(T);return}if(l===!1){s.setParams({additionalProperty:T}),s.error(),m||o.break();return}if(typeof l=="object"&&!(0,n.alwaysValidSchema)(h,l)){const w=o.name("valid");f.removeAdditional==="failing"?(v(T,w,!1),o.if((0,e.not)(w),()=>{s.reset(),E(T)})):(v(T,w),m||o.if((0,e.not)(w),()=>o.break()))}}function v(T,w,A){const I={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};A===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(I,w)}}};return x0.default=i,x0}var D0={},j6;function x0e(){if(j6)return D0;j6=1,Object.defineProperty(D0,"__esModule",{value:!0});const t=cE(),e=ml(),r=$n(),n=Xq(),a={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,parentSchema:l,data:c,it:u}=i;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&n.default.code(new t.KeywordCxt(u,n.default,"additionalProperties"));const d=(0,e.allSchemaProperties)(o);for(const b of d)u.definedProperties.add(b);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),u.props));const h=d.filter(b=>!(0,r.alwaysValidSchema)(u,o[b]));if(h.length===0)return;const m=s.name("valid");for(const b of h)f(b)?g(b):(s.if((0,e.propertyInData)(s,c,b,u.opts.ownProperties)),g(b),u.allErrors||s.else().var(m,!0),s.endIf()),i.it.definedProperties.add(b),i.ok(m);function f(b){return u.opts.useDefaults&&!u.compositeRule&&o[b].default!==void 0}function g(b){i.subschema({keyword:"properties",schemaProp:b,dataProp:b},m)}}};return D0.default=a,D0}var M0={},Q6;function D0e(){if(Q6)return M0;Q6=1,Object.defineProperty(M0,"__esModule",{value:!0});const t=ml(),e=fn(),r=$n(),n=$n(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:s,schema:o,data:l,parentSchema:c,it:u}=i,{opts:d}=u,h=(0,t.allSchemaProperties)(o),m=h.filter(y=>(0,r.alwaysValidSchema)(u,o[y]));if(h.length===0||m.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const f=d.strictSchema&&!d.allowMatch
Line truncated
`;break;case"id":o=b.includes("\0")?void 0:b;break;case"retry":/^\d+$/.test(b)?n(parseInt(b,10)):r(new f7(`Invalid\`retry\` value: "${b}"`,{type:"invalid-retry",value:b,line:_}));break;default:r(newf7(`Unknown field "${g.length>20?`${g.slice(0,20)}…`:g}"`,{type:"unknown-field",field:g,value:b,line:_}));break}}functionm(){l.length>0&&e({id:o,event:c||void0,data:l.endsWith(`
`)){s.insertNode(document.createTextNode(a)),this.editorDiv.normalize(),i.collapseToStart();return}const{startContainer:o,startOffset:l}=s,c=[],u=[];if(o.nodeType===Node.TEXT_NODE){const m=o.parentElement;if(u.push(o.nodeValue.slice(l).replaceAll(j0,"")),m!==this.editorDiv){let f=c;for(const g of this.editorDiv.childNodes){if(g===m){f=u;continue}f.push(oi.#c(g))}}c.push(o.nodeValue.slice(0,l).replaceAll(j0,""))}else if(o===this.editorDiv){let m=c,f=0;for(const g of this.editorDiv.childNodes)f++===l&&(m=u),m.push(oi.#c(g))}this.#t=`${c.join(`
`),position:f,pageIndex:g-1,rect:l.slice(0),rotation:c,annotationElementId:u,id:u,deleted:!1,popupRef:d,comment:h?.str||null}}const i=await super.deserialize(e,r,n);return i.#i=e.fontSize,i.#e=kr.makeHexColor(...e.color),i.#t=oi.#m(e.value),i._initialData=a,e.comment&&i.setCommentData(e.comment),i}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const r=oi._internalPadding*this.parentScale,n=this.getRect(r,r),a=Br._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#e),i={annotationType:Jr.FREETEXT,color:a,fontSize:this.#i,value:this.#u(),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return this.addComment(i),e?(i.isCopy=!0,i):this.annotationElementId&&!this.#f(i)?null:(i.id=this.annotationElementId,i)}#f(e){const{value:r,fontSize:n,color:a,pageIndex:i}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==r||e.fontSize!==n||e.color.some((s,o)=>s!==a[o])||e.pageIndex!==i}renderAnnotationElement(e){const r=super.renderAnnotationElement(e),{style:n}=r;n.fontSize=`calc(${this.#i}px*var(--total-scale-factor))`,n.color=this.#e,r.replaceChildren();for(const s of this.#t.split(`
`)){const o=document.createElement("div");o.append(s?document.createTextNode(s):document.createElement("br")),r.append(o)}const a=oi._internalPadding*this.parentScale,i={rect:this.getRect(a,a)};return i.popup=this.hasEditedComment?this.comment:{text:this.#t},e.updateEdited(i),r}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}}class Sr{static PRECISION=1e-4;toSVGPath(){Jn("Abstract method `toSVGPath` must be implemented.")}get box(){Jn("Abstract getter `box` must be implemented.")}serialize(e,r){Jn("Abstract method `serialize` must be implemented.")}static _rescale(e,r,n,a,i,s){s||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)s[o]=r+e[o]*a,s[o+1]=n+e[o+1]*i;return s}static _rescaleAndSwap(e,r,n,a,i,s){s||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)s[o]=r+e[o+1]*a,s[o+1]=n+e[o]*i;return s}static _translate(e,r,n,a){a||=new Float32Array(e.length);for(let i=0,s=e.length;i<s;i+=2)a[i]=r+e[i],a[i+1]=n+e[i+1];return a}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,r,n,a,i){switch(i){case 90:return[1-r/n,e/a];case 180:return[1-e/n,1-r/a];case 270:return[r/n,1-e/a];default:return[e/n,r/a]}}static _normalizePagePoint(e,r,n){switch(n){case 90:return[1-r,e];case 180:return[1-e,1-r];case 270:return[r,1-e];default:return[e,r]}}static createBezierPoints(e,r,n,a,i,s){return[(e+5*n)/6,(r+5*a)/6,(5*n+i)/6,(5*a+s)/6,(n+i)/2,(a+s)/2]}}class Kd{#e;#t=[];#r;#n;#i=[];#a=new Float32Array(18);#s;#o;#l;#c;#d;#u;#m=[];static#f=8;static#p=2;static#h=Kd.#f+Kd.#p;constructor({x:e,y:r},n,a,i,s,o=0){this.#e=n,this.#u=i*a,this.#n=s,this.#a.set([NaN,NaN,NaN,NaN,e,r],6),this.#r=o,this.#c=Kd.#f*a,this.#l=Kd.#h*a,this.#d=a,this.#m.push(e,r)}isEmpty(){return isNaN(this.#a[8])}#g(){const e=this.#a.subarray(4,6),r=this.#a.subarray(16,18),[n,a,i,s]=this.#e;return[(this.#s+(e[0]-r[0])/2-n)/i,(this.#o+(e[1]-r[1])/2-a)/s,(this.#s+(r[0]-e[0])/2-n)/i,(this.#o+(r[1]-e[1])/2-a)/s]}add({x:e,y:r}){this.#s=e,this.#o=r;const[n,a,i,s]=this.#e;let[o,l,c,u]=this.#a.subarray(8,12);const d=e-c,h=r-u,m=Math.hypot(d,h);if(m<this.#l)return!1;const f=m-this.#c,g=f/m,b=g*d,_=g*h;let S=o,E=l;o=c,l=u,c+=b,u+=_,this.#m?.push(e,r);const y=-_/f,v=b/f,T=y*this.#u,w=v*this.#u;return this.#a.set(this.#a.subarray(2,8),0),this.#a.set([c+T,u+w],4),this.#a.set(this.#a.subarray(14,18),12),this.#a.set([c-T,u-w],16),isNaN(this.#a[6])?(this.#i.length===0&&(this.#a.set([o+T,l+w],2),this.#i.push(NaN,NaN,NaN,NaN,(o+T-n)/i,(l+w-a)/s),this.#a.set([o-T,l-w],14),this.#t.push(NaN,NaN,NaN,NaN,(o-T-n)/i,(l-w-a)/s)),this.#a.set([S,E,o,l,c,u],6),!this.isEmpty()):(this.#a.set([S,E,o,l,c,u],6),Math.abs(Math.atan2(E-l,S-o)-Math.atan2(_,b))<Math.PI/2?([o,l,c,u]=this.#a.subarray(2,6),this.#i.push(NaN,NaN,NaN,NaN,((o+c)/2-n)/i,((l+u)/2-a)/s),[o,l,S,E]=this.#a.subarray(14,18),this.#t.push(NaN,NaN,NaN,NaN,((S+o)/2-n)/i,((E+l)/2-a)/s),!0):([S,E,o,l,c,u]=this.#a.subarray(0,6),this.#i.push(((S+5*o)/6-n)/i,((E+5*l)/6-a)/s,((5*o+c)/6-n)/i,((5*l+u)/6-a)/s,((o+c)/2-n)/i,((l+u)/2-a)/s),[c,u,o,l,S,E]=this.#a.subarray(12,18),this.#t.push(((S+5*o)/6-n)/i,((E+5*l)/6-a)/s,((5*o+c)/6-n)/i,((5*l+u)/6-a)/s,((o+c)/2-n)/i,((l+u)/2-a)/s),!0))}toSVGPath(){if(this.isEmpty())return"";const e=this.#i,r=this.#t;if(isNaN(this.#a[6])&&!this.isEmpty())return this.#S();const n=[];n.push(`M${e[4]}${e[5]}`);for(let a=6;a<e.length;a+=6)isNaN(e[a])?n.push(`L${e[a+4]}${e[a+5]}`):n.push(`C${e[a]}${e[a+1]}${e[a+2]}${e[a+3]}${e[a+4]}${e[a+5]}`);this.#E(n);for(let a=r.length-6;a>=6;a-=6)isNaN(r[a])?n.push(`L${r[a+4]}${r[a+5]}`):n.push(`C${r[a]}${r[a+1]}${r[a+2]}${r[a+3]}${r[a+4]}${r[a+5]}`);return this.#_(n),n.join(" ")}#S(){const[e,r,n,a]=this.#e,[i,s,o,l]=this.#g();return`M${(this.#a[2]-e)/n}${(this.#a[3]-r)/a}L${(this.#a[4]-e)/n}${(this.#a[5]-r)/a}L${i}${s}L${o}${l}L${(this.#a[16]-e)/n}${(this.#a[17]-r)/a}L${(this.#a[14]-e)/n}${(this.#a[15]-r)/a}Z`}#_(e){const r=this.#t;e.push(`L${r[4]}${r[5]}Z`)}#E(e){const[r,n,a,i]=this.#e,s=this.#a.subarray(4,6),o=this.#a.subarray(16,18),[l,c,u,d]=this.#g();e.push(`L${(s[0]-r)/a}${(s[1]-n)/i}L${l}${c}L${u}${d}L${(o[0]-r)/a}${(o[1]-n)/i}`)}newFreeDrawOutline(e,r,n,a,i,s){return new qz(e,r,n,a,i,s)}getOutlines(){const e=this.#i,r=this.#t,n=this.#a,[a,i,s,o]=this.#e,l=new Float32Array((this.#m?.length??0)+2);for(let d=0,h=l.length-2;d<h;d+=2)l[d]=(this.#m[d]-a)/s,l[d+1]=(this.#m[d+1]-i)/o;if(l[l.length-2]=(this.#s-a)/s,l[l.length-1]=(this.#o-i)/o,isNaN(n[6])&&!this.isEmpty())return this.#v(l);const c=new Float32Array(this.#i.length+24+this.#t.length);let u=e.length;for(let d=0;d<u;d+=2){if(isNaN(e[d])){c[d]=c[d+1]=NaN;continue}c[d]=e[d],c[d+1]=e[d+1]}u=this.#T(c,u);for(let d=r.length-6;d>=6;d-=6)for(let h=0;h<6;h+=2){if(isNaN(r[d+h])){c[u]=c[u+1]=NaN,u+=2;continue}c[u]=r[d+h],c[u+1]=r[d+h+1],u+=2}return this.#b(c,u),this.newFreeDrawOutline(c,l,this.#e,this.#d,this.#r,this.#n)}#v(e){const r=this.#a,[n,a,i,s]=this.#e,[o,l,c,u]=this.#g(),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(r[2]
Line truncated
`)}catch(e){throw console.error("Error converting PDF to text:",e),new Error(`FailedtoconvertPDFtotext:${einstanceofError?e.message:"Unknown error"}`)}}async function Hz(t,e=1.5){try{const r=await $z(t),n=await Ax(r).promise,a=[];for(let i=1;i<=n.numPages;i++){const s=await n.getPage(i),o=s.getViewport({scale:e}),l=document.createElement("canvas"),c=l.getContext("2d");if(l.width=o.width,l.height=o.height,!c)throw new Error("Failed to get 2D context from canvas");const u=s.render({canvasContext:c,viewport:o,canvas:l});a.push(u.promise.then(()=>l.toDataURL(ta.PNG)))}return await Promise.all(a)}catch(r){throw console.error("Error converting PDF to images:",r),new Error(`FailedtoconvertPDFtoimages:${rinstanceofError?r.message:"Unknown error"}`)}}function Yz(t,e="white"){return new Promise((r,n)=>{try{const a=new Image;a.onload=()=>{const i=document.createElement("canvas"),s=i.getContext("2d");if(!s){n(new Error("Failed to get 2D canvas context."));return}const o=a.naturalWidth||300,l=a.naturalHeight||300;i.width=o,i.height=l,e&&(s.fillStyle=e,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,o,l),r(i.toDataURL(ta.PNG))},a.onerror=()=>{n(new Error("Failed to load SVG image. Ensure the SVG data is valid."))},a.src=t}catch(a){const s=`ErrorconvertingSVGtoPNG:${ainstanceofError?a.message:String(a)}`;console.error(s,a),n(new Error(s))}})}function Vz(t){return t===ta.SVG}function Wz(t,e="white"){return new Promise((r,n)=>{try{const a=new Image;a.onload=()=>{const i=document.createElement("canvas"),s=i.getContext("2d");if(!s){n(new Error("Failed to get 2D canvas context."));return}const o=a.naturalWidth||300,l=a.naturalHeight||300;i.width=o,i.height=l,e&&(s.fillStyle=e,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,o,l),r(i.toDataURL(ta.PNG))},a.onerror=()=>{n(new Error("Failed to load WebP image. Ensure the WebP data is valid."))},a.src=t}catch(a){const s=`ErrorconvertingWebPtoPNG:${ainstanceofError?a.message:String(a)}`;console.error(s,a),n(new Error(s))}})}function Kz(t){return t===ta.WEBP}class li{static async sendMessage(e,r={},n,a){const{stream:i,onChunk:s,onComplete:o,onError:l,onReasoningChunk:c,onToolCallChunk:u,onModel:d,onTimings:h,tools:m,temperature:f,max_tokens:g,dynatemp_range:b,dynatemp_exponent:_,top_k:S,top_p:E,min_p:y,xtc_probability:v,xtc_threshold:T,typ_p:w,repeat_last_n:A,repeat_penalty:I,presence_penalty:x,frequency_penalty:D,dry_multiplier:$,dry_base:H,dry_allowed_length:G,dry_penalty_last_n:K,samplers:z,backend_sampling:ne,custom:W,timings_per_token:ie,disableReasoningParsing:M,excludeReasoningFromContext:B}=r,Z=e.map(O=>{if("id"in O&&"convId"in O&&"timestamp"in O){const U=O;return li.convertDbMessageToApiChatMessageData(U)}else return O}).filter(O=>O.role===Jt.SYSTEM?(typeof O.content=="string"?O.content:"").trim().length>0:!0);r.model&&!er.modelSupportsVision(r.model)&&Z.forEach(O=>{Array.isArray(O.content)&&(O.content=O.content.filter(U=>U.type===Hi.IMAGE_URL?(console.info(`[ChatService]Skippingimageattachmentinmessagehistory(model"${r.model}"doesnotsupportvision)`),!1):!0),O.content.length===1&&O.content[0].type===Hi.TEXT&&(O.content=O.content[0].text))});const N={messages:Z.map(O=>{const U={role:O.role,content:O.content,tool_calls:O.tool_calls,tool_call_id:O.tool_call_id};return!B&&O.reasoning_content&&(U.reasoning_content=O.reasoning_content),U}),stream:i,return_progress:i?!0:void 0,tools:m&&m.length>0?m:void 0};if(r.model&&(N.model=r.model),N.reasoning_format=M?mR.NONE:mR.AUTO,f!==void 0&&(N.temperature=f),g!==void 0&&(N.max_tokens=g!==null&&g!==0?g:-1),b!==void 0&&(N.dynatemp_range=b),_!==void 0&&(N.dynatemp_exponent=_),S!==void 0&&(N.top_k=S),E!==void 0&&(N.top_p=E),y!==void 0&&(N.min_p=y),v!==void 0&&(N.xtc_probability=v),T!==void 0&&(N.xtc_threshold=T),w!==void 0&&(N.typ_p=w),A!==void 0&&(N.repeat_last_n=A),I!==void 0&&(N.repeat_penalty=I),x!==void 0&&(N.presence_penalty=x),D!==void 0&&(N.frequency_penalty=D),$!==void 0&&(N.dry_multiplier=$),H!==void 0&&(N.dry_base=H),G!==void 0&&(N.dry_allowed_length=G),K!==void 0&&(N.dry_penalty_last_n=K),z!==void 0&&(N.samplers=typeof z=="string"?z.split(";").filter(O=>O.trim()):z),ne!==void 0&&(N.backend_sampling=ne),ie!==void 0&&(N.timings_per_token=ie),W)try{const O=typeof W=="string"?JSON.parse(W):W;Object.assign(N,O)}catch(O){console.warn("Failed to parse custom parameters:",O)}try{const O=await fetch("./v1/chat/completions",{method:"POST",headers:hb(),body:JSON.stringify(N),signal:a});if(!O.ok){const U=await li.parseErrorResponse(O);throw l&&l(U),U}if(i){await li.handleStreamResponse(O,s,o,l,c,u,d,h,n,a);return}else return li.handleNonStreamResponse(O,o,l,u,d)}catch(O){if(Oo(O)){console.log("Chat completion request was aborted");return}let U;throw O instanceof Error?O.name==="TypeError"&&O.message.includes("fetch")?(U=new Error("Unable to connect to server - please check if the server is running"),U.name="NetworkError"):O.message.includes("ECONNREFUSED")?(U=new Error("Connection refused - se
Line truncated
`);w=x.pop()||"";for(const D of x){if(u?.aborted)break;if(D.startsWith(ho.DATA)){const $=D.slice(6);if($==="[DONE]"){_=!0;continue}try{const H=JSON.parse($),G=H.choices[0]?.delta?.content,K=H.choices[0]?.delta?.reasoning_content,z=H.choices[0]?.delta?.tool_calls,ne=H.timings,W=H.prompt_progress,ie=li.extractModelName(H);ie&&!S&&(S=!0,o?.(ie)),W&&li.notifyTimings(void 0,W,l),ne&&(li.notifyTimings(ne,W,l),b=ne),G&&(v(),m+=G,u?.aborted||r?.(G)),K&&(v(),f+=K,u?.aborted||i?.(K)),T(z)}catch(H){console.error("Error parsing JSON chunk:",H)}}}if(u?.aborted)break}if(u?.aborted)return;if(_){v();const A=g.length>0?JSON.stringify(g):void 0;n?.(m,f||void 0,b,A)}}catch(w){const A=w instanceof Error?w:new Error("Stream error");throw a?.(A),A}finally{d.releaseLock()}}static async handleNonStreamResponse(e,r,n,a,i){try{const s=await e.text();if(!s.trim())throw new Error("No response received from server. Please try again.");const o=JSON.parse(s),l=li.extractModelName(o);l&&i?.(l);const c=o.choices[0]?.message?.content||"",u=o.choices[0]?.message?.reasoning_content,d=o.choices[0]?.message?.tool_calls;let h;if(d&&d.length>0){const m=li.mergeToolCallDeltas([],d);m.length>0&&(h=JSON.stringify(m),h&&a?.(h))}if(!c.trim()&&!h)throw new Error("No response received from server. Please try again.");return r?.(c,u,void 0,h),c}catch(s){const o=s instanceof Error?s:new Error("Parse error");throw n?.(o),o}}static mergeToolCallDeltas(e,r,n=0){const a=e.map(i=>({...i,function:i.function?{...i.function}:void 0}));for(const i of r){const s=typeof i.index=="number"&&i.index>=0?i.index+n:a.length;for(;a.length<=s;)a.push({function:void 0});const o=a[s];if(i.id&&(o.id=i.id),i.type&&(o.type=i.type),i.function){const l=o.function?{...o.function}:{};i.function.name&&(l.name=i.function.name),i.function.arguments&&(l.arguments=(l.arguments??"")+i.function.arguments),o.function=l}}return a}static convertDbMessageToApiChatMessageData(e){if(e.role===Jt.TOOL&&e.toolCallId)return{role:Jt.TOOL,content:e.content,tool_call_id:e.toolCallId};let r;if(e.toolCalls)try{r=JSON.parse(e.toolCalls)}catch{}if(!e.extra||e.extra.length===0){const h={role:e.role,content:e.content};return e.reasoningContent&&(h.reasoning_content=e.reasoningContent),r&&r.length>0&&(h.tool_calls=r),h}const n=[];e.content&&n.push({type:Hi.TEXT,text:e.content});const a=e.extra.filter(h=>h.type===Qr.IMAGE);for(const h of a)n.push({type:Hi.IMAGE_URL,image_url:{url:h.base64Url}});const i=e.extra.filter(h=>h.type===Qr.TEXT);for(const h of i)n.push({type:Hi.TEXT,text:wm("File",h.name,h.content)});const s=e.extra.filter(h=>h.type===Qr.LEGACY_CONTEXT);for(const h of s)n.push({type:Hi.TEXT,text:wm("File",h.name,h.content)});const o=e.extra.filter(h=>h.type===Qr.AUDIO);for(const h of o)n.push({type:Hi.INPUT_AUDIO,input_audio:{data:h.base64Data,format:h.mimeType.includes("wav")?"wav":"mp3"}});const l=e.extra.filter(h=>h.type===Qr.PDF);for(const h of l)if(h.processedAsImages&&h.images)for(let m=0;m<h.images.length;m++)n.push({type:Hi.IMAGE_URL,image_url:{url:h.images[m]}});else n.push({type:Hi.TEXT,text:wm(Ure,h.name,h.content)});const c=e.extra.filter(h=>h.type===Qr.MCP_PROMPT);for(const h of c)n.push({type:Hi.TEXT,text:wm(Gre,h.name,h.content,h.serverName)});const u=e.extra.filter(h=>h.type===Qr.MCP_RESOURCE);for(const h of u)n.push({type:Hi.TEXT,text:wm(qre,h.name,h.content,h.serverName)});const d={role:e.role,content:n};return e.reasoningContent&&(d.reasoning_content=e.reasoningContent),r&&r.length>0&&(d.tool_calls=r),d}static stripReasoningContent(e){const r=n=>n.replace(eh.REASONING_BLOCK,"").trim();return typeof e=="string"?r(e):e.map(n=>n.type===Hi.TEXT&&n.text?{...n,text:r(n.text)}:n)}static async parseErrorResponse(e){try{const r=await e.text(),n=JSON.parse(r),a=n.error?.message||"Unknown server error",i=new Error(a);return i.name=e.status===400?"ServerError":"HttpError",n.error&&"n_prompt_tokens"in n.error&&"n_ctx"in n.error&&(i.contextInfo={n_prompt_tokens:n.error.n_prompt_tokens,n_ctx:n.error.n_ctx}),i}catch{const r=new Error(`Servererror(${e.status}):${e.statusText}`);return r.name="HttpError",r}}static extractModelName(e){const r=c=>typeof c=="object"&&c!==null?c:void 0,n=c=>typeof c=="string"&&c.trim()?c.trim():void 0,a=r(e);if(!a)return;const i=n(a.model);if(i)return i;const s=Array.isArray(a.choices)?r(a.choices[0]):void 0;if(!s)return;const o=n(r(s.delta)?.model);if(o)return o;const l=n(r(s.message)?.model);if(l)return l}static notifyTimings(e,r,n){!n||!e&&!r||n(e,r)}}class jh{static async list(){return SR(u_.LIST)}static async listRouter(){return SR(u_.LIST)}static async load(e,r){const n={model:e};return r&&r.length>0&&(n.extra_args=r),R5(u_.LOAD,n)}static async unload(e){return R5(u_.UNLOAD,{model:e})}static isModelLoaded(e){return e.status.value===Si.LOADED}static isModelLoading(e){return e.status.value===Si.LOADING}static parseModelId(e){const r={raw:e,orgName:null,modelName:null,params:null,activatedParams:null,quantization:null,tags:[]},n=e.indexOf(mae);let a;n!==lc?(r.quan
Line truncated
`)){const o=document.createElement("div");o.append(s?document.createTextNode(s):document.createElement("br")),r.append(o)}const a=oi._internalPadding*this.parentScale,i={rect:this.getRect(a,a)};return i.popup=this.hasEditedComment?this.comment:{text:this.#t},e.updateEdited(i),r}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}}class Sr{static PRECISION=1e-4;toSVGPath(){Jn("Abstract method `toSVGPath` must be implemented.")}get box(){Jn("Abstract getter `box` must be implemented.")}serialize(e,r){Jn("Abstract method `serialize` must be implemented.")}static _rescale(e,r,n,a,i,s){s||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)s[o]=r+e[o]*a,s[o+1]=n+e[o+1]*i;return s}static _rescaleAndSwap(e,r,n,a,i,s){s||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)s[o]=r+e[o+1]*a,s[o+1]=n+e[o]*i;return s}static _translate(e,r,n,a){a||=new Float32Array(e.length);for(let i=0,s=e.length;i<s;i+=2)a[i]=r+e[i],a[i+1]=n+e[i+1];return a}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,r,n,a,i){switch(i){case 90:return[1-r/n,e/a];case 180:return[1-e/n,1-r/a];case 270:return[r/n,1-e/a];default:return[e/n,r/a]}}static _normalizePagePoint(e,r,n){switch(n){case 90:return[1-r,e];case 180:return[1-e,1-r];case 270:return[r,1-e];default:return[e,r]}}static createBezierPoints(e,r,n,a,i,s){return[(e+5*n)/6,(r+5*a)/6,(5*n+i)/6,(5*a+s)/6,(n+i)/2,(a+s)/2]}}class Kd{#e;#t=[];#r;#n;#i=[];#a=new Float32Array(18);#s;#o;#l;#c;#d;#u;#m=[];static#f=8;static#p=2;static#h=Kd.#f+Kd.#p;constructor({x:e,y:r},n,a,i,s,o=0){this.#e=n,this.#u=i*a,this.#n=s,this.#a.set([NaN,NaN,NaN,NaN,e,r],6),this.#r=o,this.#c=Kd.#f*a,this.#l=Kd.#h*a,this.#d=a,this.#m.push(e,r)}isEmpty(){return isNaN(this.#a[8])}#g(){const e=this.#a.subarray(4,6),r=this.#a.subarray(16,18),[n,a,i,s]=this.#e;return[(this.#s+(e[0]-r[0])/2-n)/i,(this.#o+(e[1]-r[1])/2-a)/s,(this.#s+(r[0]-e[0])/2-n)/i,(this.#o+(r[1]-e[1])/2-a)/s]}add({x:e,y:r}){this.#s=e,this.#o=r;const[n,a,i,s]=this.#e;let[o,l,c,u]=this.#a.subarray(8,12);const d=e-c,h=r-u,m=Math.hypot(d,h);if(m<this.#l)return!1;const f=m-this.#c,g=f/m,b=g*d,_=g*h;let S=o,E=l;o=c,l=u,c+=b,u+=_,this.#m?.push(e,r);const y=-_/f,v=b/f,T=y*this.#u,w=v*this.#u;return this.#a.set(this.#a.subarray(2,8),0),this.#a.set([c+T,u+w],4),this.#a.set(this.#a.subarray(14,18),12),this.#a.set([c-T,u-w],16),isNaN(this.#a[6])?(this.#i.length===0&&(this.#a.set([o+T,l+w],2),this.#i.push(NaN,NaN,NaN,NaN,(o+T-n)/i,(l+w-a)/s),this.#a.set([o-T,l-w],14),this.#t.push(NaN,NaN,NaN,NaN,(o-T-n)/i,(l-w-a)/s)),this.#a.set([S,E,o,l,c,u],6),!this.isEmpty()):(this.#a.set([S,E,o,l,c,u],6),Math.abs(Math.atan2(E-l,S-o)-Math.atan2(_,b))<Math.PI/2?([o,l,c,u]=this.#a.subarray(2,6),this.#i.push(NaN,NaN,NaN,NaN,((o+c)/2-n)/i,((l+u)/2-a)/s),[o,l,S,E]=this.#a.subarray(14,18),this.#t.push(NaN,NaN,NaN,NaN,((S+o)/2-n)/i,((E+l)/2-a)/s),!0):([S,E,o,l,c,u]=this.#a.subarray(0,6),this.#i.push(((S+5*o)/6-n)/i,((E+5*l)/6-a)/s,((5*o+c)/6-n)/i,((5*l+u)/6-a)/s,((o+c)/2-n)/i,((l+u)/2-a)/s),[c,u,o,l,S,E]=this.#a.subarray(12,18),this.#t.push(((S+5*o)/6-n)/i,((E+5*l)/6-a)/s,((5*o+c)/6-n)/i,((5*l+u)/6-a)/s,((o+c)/2-n)/i,((l+u)/2-a)/s),!0))}toSVGPath(){if(this.isEmpty())return"";const e=this.#i,r=this.#t;if(isNaN(this.#a[6])&&!this.isEmpty())return this.#S();const n=[];n.push(`M${e[4]}${e[5]}`);for(let a=6;a<e.length;a+=6)isNaN(e[a])?n.push(`L${e[a+4]}${e[a+5]}`):n.push(`C${e[a]}${e[a+1]}${e[a+2]}${e[a+3]}${e[a+4]}${e[a+5]}`);this.#E(n);for(let a=r.length-6;a>=6;a-=6)isNaN(r[a])?n.push(`L${r[a+4]}${r[a+5]}`):n.push(`C${r[a]}${r[a+1]}${r[a+2]}${r[a+3]}${r[a+4]}${r[a+5]}`);return this.#_(n),n.join(" ")}#S(){const[e,r,n,a]=this.#e,[i,s,o,l]=this.#g();return`M${(this.#a[2]-e)/n}${(this.#a[3]-r)/a}L${(this.#a[4]-e)/n}${(this.#a[5]-r)/a}L${i}${s}L${o}${l}L${(this.#a[16]-e)/n}${(this.#a[17]-r)/a}L${(this.#a[14]-e)/n}${(this.#a[15]-r)/a}Z`}#_(e){const r=this.#t;e.push(`L${r[4]}${r[5]}Z`)}#E(e){const[r,n,a,i]=this.#e,s=this.#a.subarray(4,6),o=this.#a.subarray(16,18),[l,c,u,d]=this.#g();e.push(`L${(s[0]-r)/a}${(s[1]-n)/i}L${l}${c}L${u}${d}L${(o[0]-r)/a}${(o[1]-n)/i}`)}newFreeDrawOutline(e,r,n,a,i,s){return new qz(e,r,n,a,i,s)}getOutlines(){const e=this.#i,r=this.#t,n=this.#a,[a,i,s,o]=this.#e,l=new Float32Array((this.#m?.length??0)+2);for(let d=0,h=l.length-2;d<h;d+=2)l[d]=(this.#m[d]-a)/s,l[d+1]=(this.#m[d+1]-i)/o;if(l[l.length-2]=(this.#s-a)/s,l[l.length-1]=(this.#o-i)/o,isNaN(n[6])&&!this.isEmpty())return this.#v(l);const c=new Float32Array(this.#i.length+24+this.#t.length);let u=e.length;for(let d=0;d<u;d+=2){if(isNaN(e[d])){c[d]=c[d+1]=NaN;continue}c[d]=e[d],c[d+1]=e[d+1]}u=this.#T(c,u);for(let d=r.length-6;d>=6;d-=6)for(let h=0;h<6;h+=2){if(isNaN(r[d+h])){c[u]=c[u+1]=NaN,u+=2;continue}c[u]=r[d+h],c[u+1]=r[d+h+1],u+=2}return this.#b(c,u),this.newFreeDrawOutline(c,l,this.#e,this.#d,this.#r,this.#n)}#v(e){const r=this.#a,[n,a,i,s]=this.#e,[o,l,c,u]=this.#g(),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(r[2]
Line truncated
`)}catch(e){throw console.error("Error converting PDF to text:",e),new Error(`FailedtoconvertPDFtotext:${einstanceofError?e.message:"Unknown error"}`)}}async function Hz(t,e=1.5){try{const r=await $z(t),n=await Rx(r).promise,a=[];for(let i=1;i<=n.numPages;i++){const s=await n.getPage(i),o=s.getViewport({scale:e}),l=document.createElement("canvas"),c=l.getContext("2d");if(l.width=o.width,l.height=o.height,!c)throw new Error("Failed to get 2D context from canvas");const u=s.render({canvasContext:c,viewport:o,canvas:l});a.push(u.promise.then(()=>l.toDataURL(ta.PNG)))}return await Promise.all(a)}catch(r){throw console.error("Error converting PDF to images:",r),new Error(`FailedtoconvertPDFtoimages:${rinstanceofError?r.message:"Unknown error"}`)}}function Yz(t,e="white"){return new Promise((r,n)=>{try{const a=new Image;a.onload=()=>{const i=document.createElement("canvas"),s=i.getContext("2d");if(!s){n(new Error("Failed to get 2D canvas context."));return}const o=a.naturalWidth||300,l=a.naturalHeight||300;i.width=o,i.height=l,e&&(s.fillStyle=e,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,o,l),r(i.toDataURL(ta.PNG))},a.onerror=()=>{n(new Error("Failed to load SVG image. Ensure the SVG data is valid."))},a.src=t}catch(a){const s=`ErrorconvertingSVGtoPNG:${ainstanceofError?a.message:String(a)}`;console.error(s,a),n(new Error(s))}})}function Vz(t){return t===ta.SVG}function Wz(t,e="white"){return new Promise((r,n)=>{try{const a=new Image;a.onload=()=>{const i=document.createElement("canvas"),s=i.getContext("2d");if(!s){n(new Error("Failed to get 2D canvas context."));return}const o=a.naturalWidth||300,l=a.naturalHeight||300;i.width=o,i.height=l,e&&(s.fillStyle=e,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,o,l),r(i.toDataURL(ta.PNG))},a.onerror=()=>{n(new Error("Failed to load WebP image. Ensure the WebP data is valid."))},a.src=t}catch(a){const s=`ErrorconvertingWebPtoPNG:${ainstanceofError?a.message:String(a)}`;console.error(s,a),n(new Error(s))}})}function Kz(t){return t===ta.WEBP}class li{static async sendMessage(e,r={},n,a){const{stream:i,onChunk:s,onComplete:o,onError:l,onReasoningChunk:c,onToolCallChunk:u,onModel:d,onTimings:h,tools:m,temperature:f,max_tokens:g,dynatemp_range:b,dynatemp_exponent:_,top_k:S,top_p:E,min_p:y,xtc_probability:v,xtc_threshold:T,typ_p:w,repeat_last_n:A,repeat_penalty:I,presence_penalty:x,frequency_penalty:D,dry_multiplier:$,dry_base:H,dry_allowed_length:G,dry_penalty_last_n:K,samplers:z,backend_sampling:ne,custom:W,timings_per_token:ie,disableReasoningParsing:M,excludeReasoningFromContext:B}=r,Z=e.map(O=>{if("id"in O&&"convId"in O&&"timestamp"in O){const U=O;return li.convertDbMessageToApiChatMessageData(U)}else return O}).filter(O=>O.role===Jt.SYSTEM?(typeof O.content=="string"?O.content:"").trim().length>0:!0);r.model&&!er.modelSupportsVision(r.model)&&Z.forEach(O=>{Array.isArray(O.content)&&(O.content=O.content.filter(U=>U.type===Hi.IMAGE_URL?(console.info(`[ChatService]Skippingimageattachmentinmessagehistory(model"${r.model}"doesnotsupportvision)`),!1):!0),O.content.length===1&&O.content[0].type===Hi.TEXT&&(O.content=O.content[0].text))});const N={messages:Z.map(O=>{const U={role:O.role,content:O.content,tool_calls:O.tool_calls,tool_call_id:O.tool_call_id};return!B&&O.reasoning_content&&(U.reasoning_content=O.reasoning_content),U}),stream:i,return_progress:i?!0:void 0,tools:m&&m.length>0?m:void 0};if(r.model&&(N.model=r.model),N.reasoning_format=M?fR.NONE:fR.AUTO,f!==void 0&&(N.temperature=f),g!==void 0&&(N.max_tokens=g!==null&&g!==0?g:-1),b!==void 0&&(N.dynatemp_range=b),_!==void 0&&(N.dynatemp_exponent=_),S!==void 0&&(N.top_k=S),E!==void 0&&(N.top_p=E),y!==void 0&&(N.min_p=y),v!==void 0&&(N.xtc_probability=v),T!==void 0&&(N.xtc_threshold=T),w!==void 0&&(N.typ_p=w),A!==void 0&&(N.repeat_last_n=A),I!==void 0&&(N.repeat_penalty=I),x!==void 0&&(N.presence_penalty=x),D!==void 0&&(N.frequency_penalty=D),$!==void 0&&(N.dry_multiplier=$),H!==void 0&&(N.dry_base=H),G!==void 0&&(N.dry_allowed_length=G),K!==void 0&&(N.dry_penalty_last_n=K),z!==void 0&&(N.samplers=typeof z=="string"?z.split(";").filter(O=>O.trim()):z),ne!==void 0&&(N.backend_sampling=ne),ie!==void 0&&(N.timings_per_token=ie),W)try{const O=typeof W=="string"?JSON.parse(W):W;Object.assign(N,O)}catch(O){console.warn("Failed to parse custom parameters:",O)}try{const O=await fetch("./v1/chat/completions",{method:"POST",headers:hb(),body:JSON.stringify(N),signal:a});if(!O.ok){const U=await li.parseErrorResponse(O);throw l&&l(U),U}if(i){await li.handleStreamResponse(O,s,o,l,c,u,d,h,n,a);return}else return li.handleNonStreamResponse(O,o,l,u,d)}catch(O){if(Oo(O)){console.log("Chat completion request was aborted");return}let U;throw O instanceof Error?O.name==="TypeError"&&O.message.includes("fetch")?(U=new Error("Unable to connect to server - please check if the server is running"),U.name="NetworkError"):O.message.includes("ECONNREFUSED")?(U=new Error("Connection refused - se
Line truncated
`);w=x.pop()||"";for(const D of x){if(u?.aborted)break;if(D.startsWith(ho.DATA)){const $=D.slice(6);if($==="[DONE]"){_=!0;continue}try{const H=JSON.parse($),G=H.choices[0]?.delta?.content,K=H.choices[0]?.delta?.reasoning_content,z=H.choices[0]?.delta?.tool_calls,ne=H.timings,W=H.prompt_progress,ie=li.extractModelName(H);ie&&!S&&(S=!0,o?.(ie)),W&&li.notifyTimings(void 0,W,l),ne&&(li.notifyTimings(ne,W,l),b=ne),G&&(v(),m+=G,u?.aborted||r?.(G)),K&&(v(),f+=K,u?.aborted||i?.(K)),T(z)}catch(H){console.error("Error parsing JSON chunk:",H)}}}if(u?.aborted)break}if(u?.aborted)return;if(_){v();const A=g.length>0?JSON.stringify(g):void 0;n?.(m,f||void 0,b,A)}}catch(w){const A=w instanceof Error?w:new Error("Stream error");throw a?.(A),A}finally{d.releaseLock()}}static async handleNonStreamResponse(e,r,n,a,i){try{const s=await e.text();if(!s.trim())throw new Error("No response received from server. Please try again.");const o=JSON.parse(s),l=li.extractModelName(o);l&&i?.(l);const c=o.choices[0]?.message?.content||"",u=o.choices[0]?.message?.reasoning_content,d=o.choices[0]?.message?.tool_calls;let h;if(d&&d.length>0){const m=li.mergeToolCallDeltas([],d);m.length>0&&(h=JSON.stringify(m),h&&a?.(h))}if(!c.trim()&&!h)throw new Error("No response received from server. Please try again.");return r?.(c,u,void 0,h),c}catch(s){const o=s instanceof Error?s:new Error("Parse error");throw n?.(o),o}}static mergeToolCallDeltas(e,r,n=0){const a=e.map(i=>({...i,function:i.function?{...i.function}:void 0}));for(const i of r){const s=typeof i.index=="number"&&i.index>=0?i.index+n:a.length;for(;a.length<=s;)a.push({function:void 0});const o=a[s];if(i.id&&(o.id=i.id),i.type&&(o.type=i.type),i.function){const l=o.function?{...o.function}:{};i.function.name&&(l.name=i.function.name),i.function.arguments&&(l.arguments=(l.arguments??"")+i.function.arguments),o.function=l}}return a}static convertDbMessageToApiChatMessageData(e){if(e.role===Jt.TOOL&&e.toolCallId)return{role:Jt.TOOL,content:e.content,tool_call_id:e.toolCallId};let r;if(e.toolCalls)try{r=JSON.parse(e.toolCalls)}catch{}if(!e.extra||e.extra.length===0){const h={role:e.role,content:e.content};return e.reasoningContent&&(h.reasoning_content=e.reasoningContent),r&&r.length>0&&(h.tool_calls=r),h}const n=[];e.content&&n.push({type:Hi.TEXT,text:e.content});const a=e.extra.filter(h=>h.type===Qr.IMAGE);for(const h of a)n.push({type:Hi.IMAGE_URL,image_url:{url:h.base64Url}});const i=e.extra.filter(h=>h.type===Qr.TEXT);for(const h of i)n.push({type:Hi.TEXT,text:wm("File",h.name,h.content)});const s=e.extra.filter(h=>h.type===Qr.LEGACY_CONTEXT);for(const h of s)n.push({type:Hi.TEXT,text:wm("File",h.name,h.content)});const o=e.extra.filter(h=>h.type===Qr.AUDIO);for(const h of o)n.push({type:Hi.INPUT_AUDIO,input_audio:{data:h.base64Data,format:h.mimeType.includes("wav")?"wav":"mp3"}});const l=e.extra.filter(h=>h.type===Qr.PDF);for(const h of l)if(h.processedAsImages&&h.images)for(let m=0;m<h.images.length;m++)n.push({type:Hi.IMAGE_URL,image_url:{url:h.images[m]}});else n.push({type:Hi.TEXT,text:wm(Ure,h.name,h.content)});const c=e.extra.filter(h=>h.type===Qr.MCP_PROMPT);for(const h of c)n.push({type:Hi.TEXT,text:wm(Gre,h.name,h.content,h.serverName)});const u=e.extra.filter(h=>h.type===Qr.MCP_RESOURCE);for(const h of u)n.push({type:Hi.TEXT,text:wm(qre,h.name,h.content,h.serverName)});const d={role:e.role,content:n};return e.reasoningContent&&(d.reasoning_content=e.reasoningContent),r&&r.length>0&&(d.tool_calls=r),d}static stripReasoningContent(e){const r=n=>n.replace(eh.REASONING_BLOCK,"").trim();return typeof e=="string"?r(e):e.map(n=>n.type===Hi.TEXT&&n.text?{...n,text:r(n.text)}:n)}static async parseErrorResponse(e){try{const r=await e.text(),n=JSON.parse(r),a=n.error?.message||"Unknown server error",i=new Error(a);return i.name=e.status===400?"ServerError":"HttpError",n.error&&"n_prompt_tokens"in n.error&&"n_ctx"in n.error&&(i.contextInfo={n_prompt_tokens:n.error.n_prompt_tokens,n_ctx:n.error.n_ctx}),i}catch{const r=new Error(`Servererror(${e.status}):${e.statusText}`);return r.name="HttpError",r}}static extractModelName(e){const r=c=>typeof c=="object"&&c!==null?c:void 0,n=c=>typeof c=="string"&&c.trim()?c.trim():void 0,a=r(e);if(!a)return;const i=n(a.model);if(i)return i;const s=Array.isArray(a.choices)?r(a.choices[0]):void 0;if(!s)return;const o=n(r(s.delta)?.model);if(o)return o;const l=n(r(s.message)?.model);if(l)return l}static notifyTimings(e,r,n){!n||!e&&!r||n(e,r)}}class jh{static async list(){return ER(u_.LIST)}static async listRouter(){return ER(u_.LIST)}static async load(e,r){const n={model:e};return r&&r.length>0&&(n.extra_args=r),R5(u_.LOAD,n)}static async unload(e){return R5(u_.UNLOAD,{model:e})}static isModelLoaded(e){return e.status.value===Si.LOADED}static isModelLoading(e){return e.status.value===Si.LOADING}static parseModelId(e){const r={raw:e,orgName:null,modelName:null,params:null,activatedParams:null,quantization:null,tags:[]},n=e.indexOf(mae);let a;n!==lc?(r.quan
Line truncated
`)),u+=o.move(l),c(),u}function Gxe(t,e,r){return(r?"":" ")+t}function Jx(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");returne}functionqxe(t,e,r,n){consta=Jx(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");leto=r.enter("label");constl=r.createTracker(n);letc=l.move("[");returnc+=l.move(r.safe(r.associationId(t),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!t.url||/[\0- \u007F]/.test(t.url)?(o=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=r.enter("destinationRaw"),c+=l.move(r.safe(t.url,{before:c,after:t.title?" ":`
`)),u+=o.move(l),c(),u}function zxe(t,e,r){return(r?"":" ")+t}function Jx(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");returne}function$xe(t,e,r,n){consta=Jx(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");leto=r.enter("label");constl=r.createTracker(n);letc=l.move("[");returnc+=l.move(r.safe(r.associationId(t),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!t.url||/[\0- \u007F]/.test(t.url)?(o=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=r.enter("destinationRaw"),c+=l.move(r.safe(t.url,{before:c,after:t.title?" ":`
pleasereportwhatinputcausedthisbug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}d8.hasOwnProperty(r[0])&&!la[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=d8[r[0]]+r.slice(1));var i=Gke.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(la[this.mode][r]){this.settings.strict&&this.mode==="math"&&L2.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=la[this.mode][r].group,l=Xs.range(e),c;if(DMe.hasOwnProperty(o)){var u=o;c={type:"atom",mode:this.mode,family:u,loc:l,text:r}}else c={type:o,mode:this.mode,loc:l,text:r};s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(cH(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Xs.range(e),text:r};else return null;if(this.consume(),i)for(var d=0;d<i[0].length;d++){var h=i[0][d];if(!_A[h])throw new qt("Unknown accent ' "+h+"'",e);var m=_A[h][this.mode]||_A[h].text;if(!m)throw new qt("Accent "+h+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:Xs.range(e),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}}PE.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var y3=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new PE(e,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new qt("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new Po("\\df@tag")])}]}return a},tY=function(e,r,n){r.textContent="";var a=T3(e,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),tY=function(){throw new qt("KaTeX doesn't work in quirks mode.")});var Yke=function(e,r){var n=T3(e,r).toMarkup();return n},Vke=function(e,r){var n=new a3(r);return y3(e,n)},rY=function(e,r,n){if(n.throwOnError||!(e instanceof qt))throw e;var a=ct.makeSpan(["katex-error"],[new Uo(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},T3=function(e,r){var n=new a3(r);try{var a=y3(e,n);return tke(a,e,n)}catch(i){return rY(i,e,n)}},Wke=function(e,r){var n=new a3(r);try{var a=y3(e,n);return rke(a,e,n)}catch(i){return rY(i,e,n)}},Kke="0.16.22",jke={Span:Pg,Anchor:o3,SymbolNode:Uo,SvgNode:Qc,PathNode:ju,LineNode:P2},h8={version:Kke,render:tY,renderToString:Yke,ParseError:qt,SETTINGS_SCHEMA:k1,__parse:Vke,__renderToDomTree:T3,__renderToHTMLTree:Wke,__setFontMetrics:CMe,__defineSymbol:Q,__defineFunction:dr,__defineMacro:ve,__domTree:jke};const Qke={};function Xke(t){const e=this,r=t||Qke,n=e.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(j5e(r)),i.push(q5e()),s.push(z5e(r))}const p8=function(t,e,r){const n=Dg(r);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(n(t.children[e],e,t))return t.children[e]},Th=function(t){if(t==null)return e9e;if(typeof t=="string")return Jke(t);if(typeof t=="object")return Zke(t);if(typeof t=="function")return C3(t);throw new Error("Expected function, string, or array as `test`")};function Zke(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=Th(t[r]);return C3(n);function n(...a){let i=-1;for(;++i<e.length;)if(e[i].apply(this,a))return!0;return!1}}function Jke(t){return C3(e);function e(r){return r.tagName===t}}function C3(t){return e;function e(r,n,a){return!!(t9e(r)&&t.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function e9e(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function t9e(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const m8=/\n/g,f8=/[\t ]+/g,z2=Th("br"),g8=Th(l9e),r9e=Th("p"),_8=Th("tr"),n9e=Th(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",o9e,c9e]),nY=Th(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1"
Line truncated
`:r9e(t)?(o=2,l=2):nY(t)&&(o=1,l=1);++i<a.length;)s=s.concat(iY(a[i],t,{whitespace:n,breakBefore:i?void 0:o,breakAfter:i<a.length-1?z2(a[i+1]):l}));return g8(t)&&p8(e,t,g8)&&s.push(" "),o&&s.unshift(o),l&&s.push(l),s}function sY(t,e){const r=String(t.value),n=[],a=[];let i=0;for(;i<=r.length;){m8.lastIndex=i;const l=m8.exec(r),c=l&&"index"in l?l.index:r.length;n.push(s9e(r.slice(i,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?e.breakBefore:!0,c===r.length?e.breakAfter:!0)),i=c+1}let s=-1,o;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(a.push(n[s]),o=void 0):n[s]?(typeof o=="number"&&a.push(o),a.push(n[s]),o=0):(s===0||s===n.length-1)&&a.push(0);return a}function i9e(t){return[String(t.value)]}function s9e(t,e,r){const n=[];let a=0,i;for(;a<t.length;){f8.lastIndex=a;const s=f8.exec(t);i=s?s.index:t.length,!a&&!i&&s&&!e&&n.push(""),a!==i&&n.push(t.slice(a,i)),a=s?i+s[0].length:i}return a!==i&&!r&&n.push(""),n.join(" ")}function oY(t,e){if(t.type==="element"){const r=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}function o9e(t){return!!(t.properties||{}).hidden}function l9e(t){return t.tagName==="td"||t.tagName==="th"}function c9e(t){return t.tagName==="dialog"&&!(t.properties||{}).open}function u9e(t){const e="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",h="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч актив
Line truncated
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}function WPe(t){const e="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},n={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:e+":",relevance:0},t.C_NUMBER_MODE,n,r,{begin:"\\|[ ]*"+e+"([ ]+"+e+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+e}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,r,t.C_NUMBER_MODE,n]}]}}function KPe(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}function jPe(t){const e={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},n={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],i=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],s=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateLine truncated
pleasereportwhatinputcausedthisbug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}d8.hasOwnProperty(r[0])&&!la[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=d8[r[0]]+r.slice(1));var i=zke.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(la[this.mode][r]){this.settings.strict&&this.mode==="math"&&F2.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=la[this.mode][r].group,l=Xs.range(e),c;if(kMe.hasOwnProperty(o)){var u=o;c={type:"atom",mode:this.mode,family:u,loc:l,text:r}}else c={type:o,mode:this.mode,loc:l,text:r};s=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(cH(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:Xs.range(e),text:r};else return null;if(this.consume(),i)for(var d=0;d<i[0].length;d++){var h=i[0][d];if(!bA[h])throw new qt("Unknown accent ' "+h+"'",e);var m=bA[h][this.mode]||bA[h].text;if(!m)throw new qt("Accent "+h+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:Xs.range(e),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}}LE.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var y3=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new LE(e,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new qt("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new Po("\\df@tag")])}]}return a},tY=function(e,r,n){r.textContent="";var a=T3(e,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),tY=function(){throw new qt("KaTeX doesn't work in quirks mode.")});var Wke=function(e,r){var n=T3(e,r).toMarkup();return n},Kke=function(e,r){var n=new a3(r);return y3(e,n)},rY=function(e,r,n){if(n.throwOnError||!(e instanceof qt))throw e;var a=ct.makeSpan(["katex-error"],[new Uo(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},T3=function(e,r){var n=new a3(r);try{var a=y3(e,n);return nke(a,e,n)}catch(i){return rY(i,e,n)}},jke=function(e,r){var n=new a3(r);try{var a=y3(e,n);return ake(a,e,n)}catch(i){return rY(i,e,n)}},Qke="0.16.22",Xke={Span:Pg,Anchor:o3,SymbolNode:Uo,SvgNode:Qc,PathNode:ju,LineNode:L2},h8={version:Qke,render:tY,renderToString:Wke,ParseError:qt,SETTINGS_SCHEMA:k1,__parse:Kke,__renderToDomTree:T3,__renderToHTMLTree:jke,__setFontMetrics:AMe,__defineSymbol:Q,__defineFunction:dr,__defineMacro:ve,__domTree:Xke};const Zke={};function Jke(t){const e=this,r=t||Zke,n=e.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(X5e(r)),i.push($5e()),s.push(H5e(r))}const p8=function(t,e,r){const n=Dg(r);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(n(t.children[e],e,t))return t.children[e]},Th=function(t){if(t==null)return r9e;if(typeof t=="string")return t9e(t);if(typeof t=="object")return e9e(t);if(typeof t=="function")return C3(t);throw new Error("Expected function, string, or array as `test`")};function e9e(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=Th(t[r]);return C3(n);function n(...a){let i=-1;for(;++i<e.length;)if(e[i].apply(this,a))return!0;return!1}}function t9e(t){return C3(e);function e(r){return r.tagName===t}}function C3(t){return e;function e(r,n,a){return!!(n9e(r)&&t.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function r9e(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function n9e(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const m8=/\n/g,f8=/[\t ]+/g,$2=Th("br"),g8=Th(u9e),a9e=Th("p"),_8=Th("tr"),i9e=Th(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",c9e,d9e]),nY=Th(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1"
Line truncated
`:a9e(t)?(o=2,l=2):nY(t)&&(o=1,l=1);++i<a.length;)s=s.concat(iY(a[i],t,{whitespace:n,breakBefore:i?void 0:o,breakAfter:i<a.length-1?$2(a[i+1]):l}));return g8(t)&&p8(e,t,g8)&&s.push(" "),o&&s.unshift(o),l&&s.push(l),s}function sY(t,e){const r=String(t.value),n=[],a=[];let i=0;for(;i<=r.length;){m8.lastIndex=i;const l=m8.exec(r),c=l&&"index"in l?l.index:r.length;n.push(l9e(r.slice(i,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?e.breakBefore:!0,c===r.length?e.breakAfter:!0)),i=c+1}let s=-1,o;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(a.push(n[s]),o=void 0):n[s]?(typeof o=="number"&&a.push(o),a.push(n[s]),o=0):(s===0||s===n.length-1)&&a.push(0);return a}function o9e(t){return[String(t.value)]}function l9e(t,e,r){const n=[];let a=0,i;for(;a<t.length;){f8.lastIndex=a;const s=f8.exec(t);i=s?s.index:t.length,!a&&!i&&s&&!e&&n.push(""),a!==i&&n.push(t.slice(a,i)),a=s?i+s[0].length:i}return a!==i&&!r&&n.push(""),n.join(" ")}function oY(t,e){if(t.type==="element"){const r=t.properties||{};switch(t.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}function c9e(t){return!!(t.properties||{}).hidden}function u9e(t){return t.tagName==="td"||t.tagName==="th"}function d9e(t){return t.tagName==="dialog"&&!(t.properties||{}).open}function h9e(t){const e="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",h="разделительстраниц разделительстрок символтабуляции "+"ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон "+"acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч актив
Line truncated
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}function jPe(t){const e="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},n={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:e+":",relevance:0},t.C_NUMBER_MODE,n,r,{begin:"\\|[ ]*"+e+"([ ]+"+e+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+e}]},{begin:"#\\(",end:"\\)",contains:[t.APOS_STRING_MODE,r,t.C_NUMBER_MODE,n]}]}}function QPe(t){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},t.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},t.inherit(t.APOS_STRING_MODE,{className:"string",relevance:0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}function XPe(t){const e={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},n={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],i=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],s=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateLine truncated
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ ]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function ZPe(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}const JPe=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),e6e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],t6e=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r6e=[...e6e,...t6e],n6e=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a6e=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),i6e=["after","backdrop","before","cu
Line truncated
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},t.COMMENT("^[ ]*\\*.*$",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}function e6e(t){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*!","\\*/"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}const t6e=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r6e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n6e=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a6e=[...r6e,...n6e],i6e=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s6e=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o6e=["after","backdrop","before","cu
Line truncated
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}function c6e(t){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}function u6e(t){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}function d6e(t){const e=t.regex,r=/[a-zA-Z_][a-zA-Z0-9_]*/,n={className:"number",variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[t.COMMENT(";[ \\t]*#","$"),t.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:e.concat(/\$/,e.optional(/::/),r,"(::",r,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[n]}]},{className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},n]}}function h6e(t){const e=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:e,literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...e,"set","list","map"]},end:">",contains:["self"]}]}}function p6e(t){const e={className:"number",begin:"[1-9][0-9]*",relevance:0},r={className:"symbol",begin:":[^\\]]+"},n={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",e,r]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",e,t.QUOTE_STRING_MODE,r]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[n,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},t.CO
Line truncated
`},c]}}const e7e=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t7e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r7e=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],n7e=[...t7e,...r7e],a7e=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),pY=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),mY=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),i7e=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-t
Line truncated
]`,f={scope:"string",variants:[u,c,d,h]},g={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],S=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],y={keyword:_,literal:(G=>{const K=[];return G.forEach(z=>{K.push(z),z.toLowerCase()===z?K.push(z.toUpperCase()):K.push(z.toLowerCase())}),K})(b),built_in:S},v=G=>G.map(K=>K.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,e.concat(m,"+"),e.concat("(?!",v(S).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},w=e.concat(n,"\\b(?!\\()"),A={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,e.concat(/::/,e.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[a,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},I={scope:"attr",match:e.concat(n,e.lookahead(":"),e.lookahead(/(?!::)/))},x={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[I,s,A,t.C_BLOCK_COMMENT_MODE,f,g,T]},D={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",v(_).join("\\b|"),"|",v(S).join("\\b|"),"\\b)"),n,e.concat(m,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[x]};x.contains.push(D);const $=[I,A,t.C_BLOCK_COMMENT_MODE,f,g,T],H={begin:e.concat(/#\[\s*\\?/,e.either(a,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...$]},...$,{scope:"meta",variants:[{match:a},{match:i}]}]};return{case_insensitive:!1,keywords:y,contains:[H,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,D,A,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},T,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:y,contains:["self",H,s,A,t.C_BLOCK_COMMENT_MODE,f,g]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"cl
Line truncated
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}function d6e(t){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}function h6e(t){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}function p6e(t){const e=t.regex,r=/[a-zA-Z_][a-zA-Z0-9_]*/,n={className:"number",variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[t.COMMENT(";[ \\t]*#","$"),t.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:e.concat(/\$/,e.optional(/::/),r,"(::",r,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[n]}]},{className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.inherit(t.QUOTE_STRING_MODE,{illegal:null})]},n]}}function m6e(t){const e=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:e,literal:"true false"},contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[t.inherit(t.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...e,"set","list","map"]},end:">",contains:["self"]}]}}function f6e(t){const e={className:"number",begin:"[1-9][0-9]*",relevance:0},r={className:"symbol",begin:":[^\\]]+"},n={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",e,r]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",e,t.QUOTE_STRING_MODE,r]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[n,a,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},t.CO
Line truncated
`},c]}}const r7e=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),n7e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a7e=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],i7e=[...n7e,...a7e],s7e=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),pY=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),mY=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),o7e=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-t
Line truncated
]`,f={scope:"string",variants:[u,c,d,h]},g={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],_=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],S=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],y={keyword:_,literal:(G=>{const K=[];return G.forEach(z=>{K.push(z),z.toLowerCase()===z?K.push(z.toUpperCase()):K.push(z.toLowerCase())}),K})(b),built_in:S},v=G=>G.map(K=>K.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,e.concat(m,"+"),e.concat("(?!",v(S).join("\\b|"),"\\b)"),a],scope:{1:"keyword",4:"title.class"}}]},w=e.concat(n,"\\b(?!\\()"),A={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[a,e.concat(/::/,e.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[a,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[a,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},I={scope:"attr",match:e.concat(n,e.lookahead(":"),e.lookahead(/(?!::)/))},x={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[I,s,A,t.C_BLOCK_COMMENT_MODE,f,g,T]},D={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",v(_).join("\\b|"),"|",v(S).join("\\b|"),"\\b)"),n,e.concat(m,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[x]};x.contains.push(D);const $=[I,A,t.C_BLOCK_COMMENT_MODE,f,g,T],H={begin:e.concat(/#\[\s*\\?/,e.either(a,i)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...$]},...$,{scope:"meta",variants:[{match:a},{match:i}]}]};return{case_insensitive:!1,keywords:y,contains:[H,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,D,A,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},T,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:y,contains:["self",H,s,A,t.C_BLOCK_COMMENT_MODE,f,g]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"cl
Line truncated
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.